From 632f06ac5f9e5cffaf2cd6a23503a2cd4bc7836b Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sat, 29 Jul 2017 16:27:48 -0500 Subject: [PATCH] removed files attempting commit with fewer files; these are the ones removed --- src/app/aurelia_project/aurelia.json | 166 ------------------ src/app/aurelia_project/environments/dev.ts | 4 - src/app/aurelia_project/environments/prod.ts | 4 - src/app/aurelia_project/environments/stage.ts | 4 - .../aurelia_project/generators/attribute.json | 4 - .../aurelia_project/generators/attribute.ts | 38 ---- .../generators/binding-behavior.json | 4 - .../generators/binding-behavior.ts | 37 ---- .../aurelia_project/generators/component.json | 4 - .../aurelia_project/generators/component.ts | 49 ------ .../aurelia_project/generators/element.json | 4 - src/app/aurelia_project/generators/element.ts | 44 ----- .../aurelia_project/generators/generator.json | 4 - .../aurelia_project/generators/generator.ts | 65 ------- src/app/aurelia_project/generators/task.json | 4 - src/app/aurelia_project/generators/task.ts | 37 ---- .../generators/value-converter.json | 4 - .../generators/value-converter.ts | 37 ---- src/app/aurelia_project/tasks/build.json | 11 -- src/app/aurelia_project/tasks/build.ts | 26 --- src/app/aurelia_project/tasks/copy-files.ts | 45 ----- src/app/aurelia_project/tasks/process-css.ts | 10 -- .../aurelia_project/tasks/process-markup.ts | 17 -- src/app/aurelia_project/tasks/run.json | 16 -- src/app/aurelia_project/tasks/run.ts | 73 -------- src/app/aurelia_project/tasks/test.json | 16 -- src/app/aurelia_project/tasks/test.ts | 40 ----- src/app/aurelia_project/tasks/transpile.ts | 44 ----- src/app/favicon.ico | Bin 4127 -> 0 bytes src/app/karma.conf.js | 44 ----- src/app/scripts/vendor-bundle.js.map | 1 - src/app/src/app.html | 36 ---- src/app/src/app.ts | 80 --------- src/app/src/environment.ts | 4 - src/app/src/home.html | 11 -- src/app/src/home.ts | 10 -- src/app/src/lib/lock.min.js | 10 -- src/app/src/main.ts | 18 -- src/app/src/messages.ts | 3 - .../resources/elements/loading-indicator.ts | 15 -- src/app/src/resources/index.ts | 5 - src/app/src/styles.css | 35 ---- src/app/src/utility.ts | 3 - src/app/test/aurelia-karma.js | 87 --------- src/app/test/unit/app.spec.ts | 7 - src/app/test/unit/setup.ts | 3 - src/app/tsconfig.json | 27 --- src/app/tslint.json | 5 - src/app/typings.json | 5 - src/app/typings/globals/nprogress/index.d.ts | 113 ------------ .../typings/globals/nprogress/typings.json | 8 - src/app/typings/index.d.ts | 1 - 52 files changed, 1342 deletions(-) delete mode 100644 src/app/aurelia_project/aurelia.json delete mode 100644 src/app/aurelia_project/environments/dev.ts delete mode 100644 src/app/aurelia_project/environments/prod.ts delete mode 100644 src/app/aurelia_project/environments/stage.ts delete mode 100644 src/app/aurelia_project/generators/attribute.json delete mode 100644 src/app/aurelia_project/generators/attribute.ts delete mode 100644 src/app/aurelia_project/generators/binding-behavior.json delete mode 100644 src/app/aurelia_project/generators/binding-behavior.ts delete mode 100644 src/app/aurelia_project/generators/component.json delete mode 100644 src/app/aurelia_project/generators/component.ts delete mode 100644 src/app/aurelia_project/generators/element.json delete mode 100644 src/app/aurelia_project/generators/element.ts delete mode 100644 src/app/aurelia_project/generators/generator.json delete mode 100644 src/app/aurelia_project/generators/generator.ts delete mode 100644 src/app/aurelia_project/generators/task.json delete mode 100644 src/app/aurelia_project/generators/task.ts delete mode 100644 src/app/aurelia_project/generators/value-converter.json delete mode 100644 src/app/aurelia_project/generators/value-converter.ts delete mode 100644 src/app/aurelia_project/tasks/build.json delete mode 100644 src/app/aurelia_project/tasks/build.ts delete mode 100644 src/app/aurelia_project/tasks/copy-files.ts delete mode 100644 src/app/aurelia_project/tasks/process-css.ts delete mode 100644 src/app/aurelia_project/tasks/process-markup.ts delete mode 100644 src/app/aurelia_project/tasks/run.json delete mode 100644 src/app/aurelia_project/tasks/run.ts delete mode 100644 src/app/aurelia_project/tasks/test.json delete mode 100644 src/app/aurelia_project/tasks/test.ts delete mode 100644 src/app/aurelia_project/tasks/transpile.ts delete mode 100644 src/app/favicon.ico delete mode 100644 src/app/karma.conf.js delete mode 100644 src/app/scripts/vendor-bundle.js.map delete mode 100644 src/app/src/app.html delete mode 100644 src/app/src/app.ts delete mode 100644 src/app/src/environment.ts delete mode 100644 src/app/src/home.html delete mode 100644 src/app/src/home.ts delete mode 100644 src/app/src/lib/lock.min.js delete mode 100644 src/app/src/main.ts delete mode 100644 src/app/src/messages.ts delete mode 100644 src/app/src/resources/elements/loading-indicator.ts delete mode 100644 src/app/src/resources/index.ts delete mode 100644 src/app/src/styles.css delete mode 100644 src/app/src/utility.ts delete mode 100644 src/app/test/aurelia-karma.js delete mode 100644 src/app/test/unit/app.spec.ts delete mode 100644 src/app/test/unit/setup.ts delete mode 100644 src/app/tsconfig.json delete mode 100644 src/app/tslint.json delete mode 100644 src/app/typings.json delete mode 100644 src/app/typings/globals/nprogress/index.d.ts delete mode 100644 src/app/typings/globals/nprogress/typings.json delete mode 100644 src/app/typings/index.d.ts diff --git a/src/app/aurelia_project/aurelia.json b/src/app/aurelia_project/aurelia.json deleted file mode 100644 index 47c87f9..0000000 --- a/src/app/aurelia_project/aurelia.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "name": "my-prayer-journal", - "type": "project:application", - "platform": { - "id": "web", - "displayName": "Web", - "output": "scripts", - "index": "index.html", - "baseDir": "." - }, - "transpiler": { - "id": "typescript", - "displayName": "TypeScript", - "fileExtension": ".ts", - "dtsSource": [ - "./custom_typings/**/*.d.ts" - ], - "source": "src/**/*.ts" - }, - "markupProcessor": { - "id": "minimum", - "displayName": "Minimal Minification", - "fileExtension": ".html", - "source": "src/**/*.html" - }, - "cssProcessor": { - "id": "none", - "displayName": "None", - "fileExtension": ".css", - "source": "src/**/*.css" - }, - "editor": { - "id": "vscode", - "displayName": "Visual Studio Code" - }, - "unitTestRunner": { - "id": "karma", - "displayName": "Karma", - "source": "test/unit/**/*.ts" - }, - "paths": { - "root": "src", - "resources": "resources", - "elements": "resources/elements", - "attributes": "resources/attributes", - "valueConverters": "resources/value-converters", - "bindingBehaviors": "resources/binding-behaviors" - }, - "testFramework": { - "id": "jasmine", - "displayName": "Jasmine" - }, - "build": { - "targets": [ - { - "id": "web", - "displayName": "Web", - "output": "scripts", - "index": "index.html", - "baseDir": "." - } - ], - "loader": { - "type": "require", - "configTarget": "vendor-bundle.js", - "includeBundleMetadataInConfig": "auto", - "plugins": [ - { - "name": "text", - "extensions": [ - ".html", - ".css" - ], - "stub": true - } - ] - }, - "options": { - "minify": "stage & prod", - "sourcemaps": "dev & stage" - }, - "bundles": [ - { - "name": "app-bundle.js", - "source": [ - "[**/*.js]", - "**/*.{css,html}" - ] - }, - { - "name": "vendor-bundle.js", - "prepend": [ - "node_modules/bluebird/js/browser/bluebird.core.js", - "node_modules/aurelia-cli/lib/resources/scripts/configure-bluebird.js", - "node_modules/requirejs/require.js" - ], - "dependencies": [ - "aurelia-binding", - "aurelia-bootstrapper", - "aurelia-dependency-injection", - "aurelia-event-aggregator", - "aurelia-framework", - "aurelia-fetch-client", - "aurelia-history", - "aurelia-history-browser", - "aurelia-loader", - "aurelia-loader-default", - "aurelia-logging", - "aurelia-logging-console", - "aurelia-metadata", - "aurelia-pal", - "aurelia-pal-browser", - "aurelia-path", - "aurelia-polyfills", - "aurelia-route-recognizer", - "aurelia-router", - "aurelia-task-queue", - "aurelia-templating", - "aurelia-templating-binding", - "text", - { - "name": "aurelia-templating-resources", - "path": "../node_modules/aurelia-templating-resources/dist/amd", - "main": "aurelia-templating-resources" - }, - { - "name": "aurelia-templating-router", - "path": "../node_modules/aurelia-templating-router/dist/amd", - "main": "aurelia-templating-router" - }, - { - "name": "aurelia-testing", - "path": "../node_modules/aurelia-testing/dist/amd", - "main": "aurelia-testing", - "env": "dev" - }, - "jquery", - { - "name": "bootstrap", - "path": "../node_modules/bootstrap/dist", - "main": "js/bootstrap.min", - "deps": ["jquery"], - "exports": "$", - "resources": [ - "css/bootstrap.css" - ] - }, - { - "name": "nprogress", - "path": "../node_modules/nprogress", - "main": "nprogress", - "resources": [ - "nprogress.css" - ] - }, - { - "name": "auth0-lock", - "path": "lib", - "main": "lock.min", - "exports": "Auth0Lock" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/src/app/aurelia_project/environments/dev.ts b/src/app/aurelia_project/environments/dev.ts deleted file mode 100644 index 3495e9a..0000000 --- a/src/app/aurelia_project/environments/dev.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - debug: true, - testing: true -}; diff --git a/src/app/aurelia_project/environments/prod.ts b/src/app/aurelia_project/environments/prod.ts deleted file mode 100644 index da32a4b..0000000 --- a/src/app/aurelia_project/environments/prod.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - debug: false, - testing: false -}; diff --git a/src/app/aurelia_project/environments/stage.ts b/src/app/aurelia_project/environments/stage.ts deleted file mode 100644 index dafe69b..0000000 --- a/src/app/aurelia_project/environments/stage.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - debug: true, - testing: false -}; diff --git a/src/app/aurelia_project/generators/attribute.json b/src/app/aurelia_project/generators/attribute.json deleted file mode 100644 index ddf940c..0000000 --- a/src/app/aurelia_project/generators/attribute.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "attribute", - "description": "Creates a custom attribute class and places it in the project resources." -} diff --git a/src/app/aurelia_project/generators/attribute.ts b/src/app/aurelia_project/generators/attribute.ts deleted file mode 100644 index e661241..0000000 --- a/src/app/aurelia_project/generators/attribute.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {inject} from 'aurelia-dependency-injection'; -import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; - -@inject(Project, CLIOptions, UI) -export default class AttributeGenerator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the custom attribute?') - .then(name => { - let fileName = this.project.makeFileName(name); - let className = this.project.makeClassName(name); - - this.project.attributes.add( - ProjectItem.text(`${fileName}.ts`, this.generateSource(className)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(`Created ${fileName}.`)); - }); - } - - generateSource(className) { -return `import {autoinject} from 'aurelia-framework'; - -@autoinject() -export class ${className}CustomAttribute { - constructor(private element: Element) { } - - valueChanged(newValue, oldValue) { - - } -} - -` - } -} diff --git a/src/app/aurelia_project/generators/binding-behavior.json b/src/app/aurelia_project/generators/binding-behavior.json deleted file mode 100644 index 60906a1..0000000 --- a/src/app/aurelia_project/generators/binding-behavior.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "binding-behavior", - "description": "Creates a binding behavior class and places it in the project resources." -} diff --git a/src/app/aurelia_project/generators/binding-behavior.ts b/src/app/aurelia_project/generators/binding-behavior.ts deleted file mode 100644 index c7a7277..0000000 --- a/src/app/aurelia_project/generators/binding-behavior.ts +++ /dev/null @@ -1,37 +0,0 @@ -import {inject} from 'aurelia-dependency-injection'; -import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; - -@inject(Project, CLIOptions, UI) -export default class BindingBehaviorGenerator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the binding behavior?') - .then(name => { - let fileName = this.project.makeFileName(name); - let className = this.project.makeClassName(name); - - this.project.bindingBehaviors.add( - ProjectItem.text(`${fileName}.ts`, this.generateSource(className)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(`Created ${fileName}.`)); - }); - } - - generateSource(className) { -return `export class ${className}BindingBehavior { - bind(binding, source) { - - } - - unbind(binding, source) { - - } -} - -` - } -} diff --git a/src/app/aurelia_project/generators/component.json b/src/app/aurelia_project/generators/component.json deleted file mode 100644 index ec39075..0000000 --- a/src/app/aurelia_project/generators/component.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "component", - "description": "Creates a custom component class and template (view model and view), placing them in the project source folder (or optionally in sub folders)." -} \ No newline at end of file diff --git a/src/app/aurelia_project/generators/component.ts b/src/app/aurelia_project/generators/component.ts deleted file mode 100644 index 57e0a96..0000000 --- a/src/app/aurelia_project/generators/component.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { inject } from 'aurelia-dependency-injection'; -import { Project, ProjectItem, CLIOptions, UI } from 'aurelia-cli'; - -var path = require('path'); - -@inject(Project, CLIOptions, UI) -export default class ElementGenerator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - let self = this; - - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the component?') - .then(name => { - - return self.ui.ensureAnswer(this.options.args[1], 'What sub-folder would you like to add it to?\nIf it doesn\'t exist it will be created for you.\n\nDefault folder is the source folder (src).', ".") - .then(subFolders => { - - let fileName = this.project.makeFileName(name); - let className = this.project.makeClassName(name); - - self.project.root.add( - ProjectItem.text(path.join(subFolders, fileName + ".ts"), this.generateJSSource(className)), - ProjectItem.text(path.join(subFolders, fileName + ".html"), this.generateHTMLSource(className)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(`Created ${name} in the '${path.join(self.project.root.name, subFolders)}' folder`)); - }); - }); - } - - generateJSSource(className) { - return `export class ${className} { - message: string; - - constructor() { - this.message = 'Hello world'; - } -}` - } - - generateHTMLSource(className) { - return `` - } -} diff --git a/src/app/aurelia_project/generators/element.json b/src/app/aurelia_project/generators/element.json deleted file mode 100644 index 68d8c54..0000000 --- a/src/app/aurelia_project/generators/element.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "element", - "description": "Creates a custom element class and template, placing them in the project resources." -} diff --git a/src/app/aurelia_project/generators/element.ts b/src/app/aurelia_project/generators/element.ts deleted file mode 100644 index 01856be..0000000 --- a/src/app/aurelia_project/generators/element.ts +++ /dev/null @@ -1,44 +0,0 @@ -import {inject} from 'aurelia-dependency-injection'; -import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; - -@inject(Project, CLIOptions, UI) -export default class ElementGenerator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the custom element?') - .then(name => { - let fileName = this.project.makeFileName(name); - let className = this.project.makeClassName(name); - - this.project.elements.add( - ProjectItem.text(`${fileName}.ts`, this.generateJSSource(className)), - ProjectItem.text(`${fileName}.html`, this.generateHTMLSource(className)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(`Created ${fileName}.`)); - }); - } - - generateJSSource(className) { -return `import {bindable} from 'aurelia-framework'; - -export class ${className} { - @bindable value; - - valueChanged(newValue, oldValue) { - - } -} - -` - } - - generateHTMLSource(className) { -return `` - } -} diff --git a/src/app/aurelia_project/generators/generator.json b/src/app/aurelia_project/generators/generator.json deleted file mode 100644 index be946a5..0000000 --- a/src/app/aurelia_project/generators/generator.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "generator", - "description": "Creates a generator class and places it in the project generators folder." -} diff --git a/src/app/aurelia_project/generators/generator.ts b/src/app/aurelia_project/generators/generator.ts deleted file mode 100644 index 6eae3c7..0000000 --- a/src/app/aurelia_project/generators/generator.ts +++ /dev/null @@ -1,65 +0,0 @@ -import {inject} from 'aurelia-dependency-injection'; -import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; - -@inject(Project, CLIOptions, UI) -export default class GeneratorGenerator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the generator?') - .then(name => { - let fileName = this.project.makeFileName(name); - let className = this.project.makeClassName(name); - - this.project.generators.add( - ProjectItem.text(`${fileName}.ts`, this.generateSource(className)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(`Created ${fileName}.`)); - }); - } - - generateSource(className) { -return `import {autoinject} from 'aurelia-dependency-injection'; -import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; - -@autoinject() -export default class ${className}Generator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the new item?') - .then(name => { - let fileName = this.project.makeFileName(name); - let className = this.project.makeClassName(name); - - this.project.elements.add( - ProjectItem.text(\`\${fileName}.js\`, this.generateSource(className)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(\`Created \${fileName}.\`)); - }); - } - - generateSource(className) { -return \`import {bindable} from 'aurelia-framework'; - -export class \${className} { - @bindable value; - - valueChanged(newValue, oldValue) { - - } -} - -\` - } -} - -` - } -} diff --git a/src/app/aurelia_project/generators/task.json b/src/app/aurelia_project/generators/task.json deleted file mode 100644 index fd15bc6..0000000 --- a/src/app/aurelia_project/generators/task.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "task", - "description": "Creates a task and places it in the project tasks folder." -} diff --git a/src/app/aurelia_project/generators/task.ts b/src/app/aurelia_project/generators/task.ts deleted file mode 100644 index cc3b02e..0000000 --- a/src/app/aurelia_project/generators/task.ts +++ /dev/null @@ -1,37 +0,0 @@ -import {inject} from 'aurelia-dependency-injection'; -import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; - -@inject(Project, CLIOptions, UI) -export default class TaskGenerator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the task?') - .then(name => { - let fileName = this.project.makeFileName(name); - let functionName = this.project.makeFunctionName(name); - - this.project.tasks.add( - ProjectItem.text(`${fileName}.ts`, this.generateSource(functionName)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(`Created ${fileName}.`)); - }); - } - - generateSource(functionName) { -return `import * as gulp from 'gulp'; -import * as changed from 'gulp-changed'; -import * as project from '../aurelia.json'; - -export default function ${functionName}() { - return gulp.src(project.paths.???) - .pipe(changed(project.paths.output, {extension: '.???'})) - .pipe(gulp.dest(project.paths.output)); -} - -` - } -} diff --git a/src/app/aurelia_project/generators/value-converter.json b/src/app/aurelia_project/generators/value-converter.json deleted file mode 100644 index 1108122..0000000 --- a/src/app/aurelia_project/generators/value-converter.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "value-converter", - "description": "Creates a value converter class and places it in the project resources." -} diff --git a/src/app/aurelia_project/generators/value-converter.ts b/src/app/aurelia_project/generators/value-converter.ts deleted file mode 100644 index d75e9f6..0000000 --- a/src/app/aurelia_project/generators/value-converter.ts +++ /dev/null @@ -1,37 +0,0 @@ -import {inject} from 'aurelia-dependency-injection'; -import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; - -@inject(Project, CLIOptions, UI) -export default class ValueConverterGenerator { - constructor(private project: Project, private options: CLIOptions, private ui: UI) { } - - execute() { - return this.ui - .ensureAnswer(this.options.args[0], 'What would you like to call the value converter?') - .then(name => { - let fileName = this.project.makeFileName(name); - let className = this.project.makeClassName(name); - - this.project.valueConverters.add( - ProjectItem.text(`${fileName}.ts`, this.generateSource(className)) - ); - - return this.project.commitChanges() - .then(() => this.ui.log(`Created ${fileName}.`)); - }); - } - - generateSource(className) { -return `export class ${className}ValueConverter { - toView(value) { - - } - - fromView(value) { - - } -} - -` - } -} diff --git a/src/app/aurelia_project/tasks/build.json b/src/app/aurelia_project/tasks/build.json deleted file mode 100644 index 50f16ed..0000000 --- a/src/app/aurelia_project/tasks/build.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "build", - "description": "Builds and processes all application assets.", - "flags": [ - { - "name": "env", - "description": "Sets the build environment.", - "type": "string" - } - ] -} diff --git a/src/app/aurelia_project/tasks/build.ts b/src/app/aurelia_project/tasks/build.ts deleted file mode 100644 index 18fd55f..0000000 --- a/src/app/aurelia_project/tasks/build.ts +++ /dev/null @@ -1,26 +0,0 @@ -import * as gulp from 'gulp'; -import transpile from './transpile'; -import processMarkup from './process-markup'; -import processCSS from './process-css'; -import copyFiles from './copy-files'; -import {build} from 'aurelia-cli'; -import * as project from '../aurelia.json'; - -export default gulp.series( - readProjectConfiguration, - gulp.parallel( - transpile, - processMarkup, - processCSS, - copyFiles - ), - writeBundles -); - -function readProjectConfiguration() { - return build.src(project); -} - -function writeBundles() { - return build.dest(); -} diff --git a/src/app/aurelia_project/tasks/copy-files.ts b/src/app/aurelia_project/tasks/copy-files.ts deleted file mode 100644 index 48d135d..0000000 --- a/src/app/aurelia_project/tasks/copy-files.ts +++ /dev/null @@ -1,45 +0,0 @@ -import * as gulp from 'gulp'; -import * as path from 'path'; -import * as minimatch from 'minimatch'; -import * as changedInPlace from 'gulp-changed-in-place'; -import * as project from '../aurelia.json'; - -export default function copyFiles(done) { - if (typeof project.build.copyFiles !== 'object') { - done(); - return; - } - - const instruction = getNormalizedInstruction(); - const files = Object.keys(instruction); - - return gulp.src(files) - .pipe(changedInPlace({ firstPass: true })) - .pipe(gulp.dest(x => { - const filePath = prepareFilePath(x.path); - const key = files.find(f => minimatch(filePath, f)); - return instruction[key]; - })); -} - -function getNormalizedInstruction() { - const files = project.build.copyFiles; - let normalizedInstruction = {}; - - for (let key in files) { - normalizedInstruction[path.posix.normalize(key)] = files[key]; - } - - return normalizedInstruction; -} - -function prepareFilePath(filePath) { - let preparedPath = filePath.replace(process.cwd(), '').substring(1); - - //if we are running on windows we have to fix the path - if (/^win/.test(process.platform)) { - preparedPath = preparedPath.replace(/\\/g, '/'); - } - - return preparedPath; -} diff --git a/src/app/aurelia_project/tasks/process-css.ts b/src/app/aurelia_project/tasks/process-css.ts deleted file mode 100644 index 12c5ec6..0000000 --- a/src/app/aurelia_project/tasks/process-css.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as gulp from 'gulp'; -import * as changedInPlace from 'gulp-changed-in-place'; -import * as project from '../aurelia.json'; -import {build} from 'aurelia-cli'; - -export default function processCSS() { - return gulp.src(project.cssProcessor.source) - .pipe(changedInPlace({firstPass:true})) - .pipe(build.bundle()); -}; diff --git a/src/app/aurelia_project/tasks/process-markup.ts b/src/app/aurelia_project/tasks/process-markup.ts deleted file mode 100644 index 6646cfd..0000000 --- a/src/app/aurelia_project/tasks/process-markup.ts +++ /dev/null @@ -1,17 +0,0 @@ -import * as gulp from 'gulp'; -import * as htmlmin from 'gulp-htmlmin'; -import * as changedInPlace from 'gulp-changed-in-place'; -import * as project from '../aurelia.json'; -import {build} from 'aurelia-cli'; - -export default function processMarkup() { - return gulp.src(project.markupProcessor.source) - .pipe(changedInPlace({firstPass:true})) - .pipe(htmlmin({ - removeComments: true, - collapseWhitespace: true, - minifyCSS: true, - minifyJS: true - })) - .pipe(build.bundle()); -} \ No newline at end of file diff --git a/src/app/aurelia_project/tasks/run.json b/src/app/aurelia_project/tasks/run.json deleted file mode 100644 index 6f617e4..0000000 --- a/src/app/aurelia_project/tasks/run.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "run", - "description": "Builds the application and serves up the assets via a local web server, watching files for changes as you work.", - "flags": [ - { - "name": "env", - "description": "Sets the build environment.", - "type": "string" - }, - { - "name": "watch", - "description": "Watches source files for changes and refreshes the app automatically.", - "type": "boolean" - } - ] -} diff --git a/src/app/aurelia_project/tasks/run.ts b/src/app/aurelia_project/tasks/run.ts deleted file mode 100644 index fa869ba..0000000 --- a/src/app/aurelia_project/tasks/run.ts +++ /dev/null @@ -1,73 +0,0 @@ -import * as gulp from 'gulp'; -import * as browserSync from 'browser-sync'; -import * as historyApiFallback from 'connect-history-api-fallback/lib'; -import * as project from '../aurelia.json'; -import build from './build'; -import {CLIOptions} from 'aurelia-cli'; - -function onChange(path) { - console.log(`File Changed: ${path}`); -} - -function reload(done) { - browserSync.reload(); - done(); -} - -let serve = gulp.series( - build, - done => { - browserSync({ - online: false, - open: false, - port: 9000, - logLevel: 'silent', - server: { - baseDir: [project.platform.baseDir], - middleware: [historyApiFallback(), function(req, res, next) { - res.setHeader('Access-Control-Allow-Origin', '*'); - next(); - }] - } - }, function (err, bs) { - if (err) return done(err); - let urls = bs.options.get('urls').toJS(); - console.log(`Application Available At: ${urls.local}`); - console.log(`BrowserSync Available At: ${urls.ui}`); - done(); - }); - } -); - -let refresh = gulp.series( - build, - reload -); - -let watch = function(refreshCb, onChangeCb) { - return function(done) { - gulp.watch(project.transpiler.source, refreshCb).on('change', onChangeCb); - gulp.watch(project.markupProcessor.source, refreshCb).on('change', onChangeCb); - gulp.watch(project.cssProcessor.source, refreshCb).on('change', onChangeCb); - - //see if there are static files to be watched - if (typeof project.build.copyFiles === 'object') { - const files = Object.keys(project.build.copyFiles); - gulp.watch(files, refreshCb).on('change', onChangeCb); - } - }; -}; - -let run; - -if (CLIOptions.hasFlag('watch')) { - run = gulp.series( - serve, - watch(refresh, onChange) - ); -} else { - run = serve; -} - -export { run as default, watch }; - diff --git a/src/app/aurelia_project/tasks/test.json b/src/app/aurelia_project/tasks/test.json deleted file mode 100644 index 9e2a674..0000000 --- a/src/app/aurelia_project/tasks/test.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "test", - "description": "Runs all unit tests and reports the results.", - "flags": [ - { - "name": "env", - "description": "Sets the build environment.", - "type": "string" - }, - { - "name": "watch", - "description": "Watches test files for changes and re-runs the tests automatically.", - "type": "boolean" - } - ] -} diff --git a/src/app/aurelia_project/tasks/test.ts b/src/app/aurelia_project/tasks/test.ts deleted file mode 100644 index 7eff91a..0000000 --- a/src/app/aurelia_project/tasks/test.ts +++ /dev/null @@ -1,40 +0,0 @@ -import * as gulp from 'gulp'; -import {Server as Karma} from 'karma'; -import {CLIOptions} from 'aurelia-cli'; -import build from './build'; -import {watch} from './run'; -import * as path from 'path'; - -function log(message) { - console.log(message); //eslint-disable-line no-console -} - -function onChange(path) { - log(`File Changed: ${path}`); -} - -let karma = done => { - new Karma({ - configFile: path.join(__dirname, '/../../karma.conf.js'), - singleRun: !CLIOptions.hasFlag('watch') - }, done).start(); -}; - -let unit; - -if (CLIOptions.hasFlag('watch')) { - unit = gulp.series( - build, - gulp.parallel( - watch(build, onChange), - karma - ) - ); -} else { - unit = gulp.series( - build, - karma - ); -} - -export default unit; diff --git a/src/app/aurelia_project/tasks/transpile.ts b/src/app/aurelia_project/tasks/transpile.ts deleted file mode 100644 index a50ed96..0000000 --- a/src/app/aurelia_project/tasks/transpile.ts +++ /dev/null @@ -1,44 +0,0 @@ -import * as gulp from 'gulp'; -import * as changedInPlace from 'gulp-changed-in-place'; -import * as plumber from 'gulp-plumber'; -import * as sourcemaps from 'gulp-sourcemaps'; -import * as notify from 'gulp-notify'; -import * as rename from 'gulp-rename'; -import * as ts from 'gulp-typescript'; -import * as project from '../aurelia.json'; -import {CLIOptions, build} from 'aurelia-cli'; -import * as eventStream from 'event-stream'; - -function configureEnvironment() { - let env = CLIOptions.getEnvironment(); - - return gulp.src(`aurelia_project/environments/${env}.ts`) - .pipe(changedInPlace({firstPass:true})) - .pipe(rename('environment.ts')) - .pipe(gulp.dest(project.paths.root)); -} - -var typescriptCompiler = typescriptCompiler || null; - -function buildTypeScript() { - typescriptCompiler = ts.createProject('tsconfig.json', { - "typescript": require('typescript') - }); - - let dts = gulp.src(project.transpiler.dtsSource); - - let src = gulp.src(project.transpiler.source) - .pipe(changedInPlace({firstPass: true})); - - return eventStream.merge(dts, src) - .pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') })) - .pipe(sourcemaps.init()) - .pipe(typescriptCompiler()) - .pipe(sourcemaps.write({ sourceRoot: 'src' })) - .pipe(build.bundle()); -} - -export default gulp.series( - configureEnvironment, - buildTypeScript -); diff --git a/src/app/favicon.ico b/src/app/favicon.ico deleted file mode 100644 index 2a4d144da3377afc0807f707dc7b1fe7a27811c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4127 zcmZu!`%jzK8U75mA(&gZnpNoIs2NI1n)5elgf!Vh91kC3Z+K7YE2MTQ8cT zZK~8YYSk)R)^2L6MbjotYa1!sl1^%xskwD+mj1GJKlWeP^Y9*hM0DtRpZ9XU?_A#V zp7WXSZ-3I;-IkP)o1kf0lBd0;AKFfdH-j&&uYZ606By>n(`_x#_(R|%WDDk=aJ%o4 zrdiS{2DSiJHblbBGtl;Jk+`s?#SeN~ng>Vzaub0y$S@=m(g+cZTA`OAz4M@4h~YG- z7V_jrpuLc+X79xjbGH9z9~^-ns!YsEck6_?8TLN$RoJpP(6xxj2&q+?z-r>vM_{i= zR81xxp3eokuf~wpO;OP=7!3@HCp`V4BQ^&Q$A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svka+Y9&^m;N5tum?y-X$E zrYLncv~Ukp3wvH(Zd{cIiua2Kk0y)R#q|MYsi5Apzh5ear%zcJb%<5Wh4)XLZ&LKMG}#X$VVN(8_!_tHi;a8wC0ITcV65=H*+b zoLojPlbi+-JbA-A$S1!1jUH-%#Zd**50ZYp&CX+DbV4r{wGWh5Nadd7HtNPA6 zty9BX{llMt8YMcxcYr7hqYC0V!K_Vof*kdrA7V>FTvxu{n*QWvRuI7QU;zNCZ%)-A zk*{8XX16gKD@%1HZ94Z&eEu#RRfw?I<$rI!ED!wax6s=sbxi^`m*^L{G6XL_+v1`#sO}zzp*mQ03DM>N6i~%F&D)eJ_0c%S6_qz%%S^N zp{)I9JrYohF1Z4C1fuO!H}A^|$QEbE_3zXUoSv$}58i!RoB#j- diff --git a/src/app/karma.conf.js b/src/app/karma.conf.js deleted file mode 100644 index 1109182..0000000 --- a/src/app/karma.conf.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; -const path = require('path'); -const project = require('./aurelia_project/aurelia.json'); -const tsconfig = require('./tsconfig.json'); - -let testSrc = [ - { pattern: project.unitTestRunner.source, included: false }, - 'test/aurelia-karma.js' -]; - -let output = project.platform.output; -let appSrc = project.build.bundles.map(x => path.join(output, x.name)); -let entryIndex = appSrc.indexOf(path.join(output, project.build.loader.configTarget)); -let entryBundle = appSrc.splice(entryIndex, 1)[0]; -let files = [entryBundle].concat(testSrc).concat(appSrc); - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: [project.testFramework.id], - files: files, - exclude: [], - preprocessors: { - [project.unitTestRunner.source]: [project.transpiler.id] - }, - typescriptPreprocessor: { - typescript: require('typescript'), - options: tsconfig.compilerOptions - }, - reporters: ['progress'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false, - // client.args must be a array of string. - // Leave 'aurelia-root', project.paths.root in this order so we can find - // the root of the aurelia project. - client: { - args: ['aurelia-root', project.paths.root] - } - }); -}; diff --git a/src/app/scripts/vendor-bundle.js.map b/src/app/scripts/vendor-bundle.js.map deleted file mode 100644 index b6f34cb..0000000 --- a/src/app/scripts/vendor-bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///auth0.min.js","\\node_modules\\auth0-js\\build/webpack:/webpack/bootstrap 7b1004490308b0712546","webpack:///~/url-join/lib/url-join.js","webpack:///src/helper/object.js","webpack:///src/helper/window.js","webpack:///src/helper/assert.js","webpack:///~/qs/lib/index.js","webpack:///src/helper/response-handler.js","webpack:///~/qs/lib/formats.js","webpack:///~/qs/lib/utils.js","webpack:///src/version.js","webpack:///src/helper/request-builder.js","webpack:///src/helper/warn.js","webpack:///~/qs/lib/parse.js","webpack:///~/qs/lib/stringify.js","webpack:///~/superagent/lib/is-object.js","webpack:///~/base64-js/index.js","webpack:///~/idtoken-verifier/src/helpers/base64.js","webpack:///~/superagent/lib/client.js","webpack:///~/winchan/winchan.js","webpack:///src/authentication/index.js","webpack:///src/helper/base64_url.js","webpack:///src/helper/error.js","webpack:///src/web-auth/transaction-manager.js","webpack:///~/component-emitter/index.js","webpack:///~/crypto-js/core.js","webpack:///~/crypto-js/sha256.js","webpack:///~/idtoken-verifier/src/helpers/dummy-cache.js","webpack:///~/idtoken-verifier/src/helpers/error.js","webpack:///~/idtoken-verifier/src/helpers/jwks.js","webpack:///~/idtoken-verifier/src/helpers/rsa-verifier.js","webpack:///~/idtoken-verifier/src/index.js","webpack:///~/jsbn/index.js","webpack:///~/superagent/lib/is-function.js","webpack:///~/superagent/lib/request-base.js","webpack:///~/superagent/lib/response-base.js","webpack:///~/superagent/lib/should-retry.js","webpack:///~/superagent/lib/utils.js","webpack:///src/authentication/db-connection.js","webpack:///src/authentication/passwordless-authentication.js","webpack:///src/helper/cookies.js","webpack:///src/helper/iframe-handler.js","webpack:///src/helper/object-assign.js","webpack:///src/helper/parameters-whitelist.js","webpack:///src/helper/plugins.js","webpack:///src/helper/popup-handler.js","webpack:///src/helper/random.js","webpack:///src/helper/storage.js","webpack:///src/helper/storage/cookie.js","webpack:///src/helper/storage/dummy.js","webpack:///src/helper/storage/handler.js","webpack:///src/helper/url.js","webpack:///src/index.js","webpack:///src/management/index.js","webpack:///src/web-auth/cross-origin-authentication.js","webpack:///src/web-auth/index.js","webpack:///src/web-auth/popup.js","webpack:///src/web-auth/redirect.js","webpack:///src/web-auth/silent-authentication-handler.js","webpack:///src/web-auth/username-password.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_RESULT__","name","context","definition","undefined","normalize","str","options","replace","input","arguments","joined","slice","join","pick","object","keys","reduce","prev","key","getKeysNotIn","obj","allowedKeys","notAllowed","indexOf","push","objectValues","values","extend","params","unshift","objectAssign","get","apply","merge","base","with","object2","keys2","blacklist","blacklistedKeys","Object","camelToSnake","code","newKey","index","wasPrevNumber","wasPrevUppercase","length","charCodeAt","toLowerCase","snakeToCamel","parts","split","charAt","toUpperCase","shift","toSnakeCase","exceptions","assert","isArray","toCamelCase","global","redirect","url","window","location","getDocument","document","getWindow","attribute","o","attr","type","text","Error","variable","value","check","config","attributes","optional","message","a","condition","value_message","array","supportsIsArray","Array","toString","prototype","stringify","parse","formats","wrapCallback","cb","ignoreCasing","err","data","errObj","error","original","response","statusCode","statusText","body","error_code","status","description","errorDescription","error_description","details","policy","objectHelper","buildResponse","String","percentTwenties","default","formatters","RFC1738","RFC3986","has","hasOwnProperty","hexTable","i","arrayToObject","source","plainObjects","create","target","allowPrototypes","concat","mergeTarget","forEach","item","acc","decode","decodeURIComponent","e","encode","string","out","compact","references","refs","lookup","compacted","isRegExp","isBuffer","constructor","raw","RequestWrapper","req","request","method","_data","headers","_header","RequestObj","RequestBuilder","_sendTelemetry","_telemetryInfo","base64Url","version","abort","getMethod","getBody","getUrl","getHeaders","set","send","withCredentials","end","setCommonConfiguration","ongoingRequest","noHeaders","getTelemetryData","clientInfo","jsonClientInfo","JSON","post","patch","Warn","disableWarnings","warning","console","warn","utils","defaults","allowDots","arrayLimit","decoder","delimiter","depth","parameterLimit","strictNullHandling","parseValues","Infinity","val","part","pos","parseObject","chain","cleanRoot","parseInt","isNaN","parseArrays","parseKeys","givenKey","brackets","child","segment","exec","parent","opts","TypeError","tempObj","newObj","arrayPrefixGenerators","prefix","indices","repeat","toISO","Date","toISOString","encoder","encodeValuesOnly","serializeDate","date","skipNulls","generateArrayPrefix","filter","sort","formatter","keyValue","objKeys","format","arrayFormat","isObject","placeHoldersCount","b64","len","byteLength","toByteArray","j","l","tmp","placeHolders","arr","Arr","L","revLookup","tripletToBase64","num","encodeChunk","uint8","start","output","fromByteArray","extraBytes","maxChunkLength","len2","Uint8Array","padding","mod","pad","byteArrayToString","result","fromCharCode","stringToByteArray","byteArrayToHex","HEX","_hex","encodeString","btoa","encodeURIComponent","match","p1","decodeToString","atob","map","decodeToHEX","base64","noop","serialize","pairs","pushEncodedKeyValuePair","v","subkey","parseString","pair","parseHeader","line","field","lines","fields","pop","trim","isJSON","mime","test","Response","xhr","responseType","responseText","_setStatusProperties","header","getAllResponseHeaders","getResponseHeader","_setHeaderProperties","_responseType","_parseBody","Request","self","_query","on","res","rawResponse","callback","emit","new_err","_isResponseOK","del","fn","Emitter","RequestBase","isFunction","ResponseBase","shouldRetry","getXHR","XMLHttpRequest","protocol","ActiveXObject","s","serializeObject","types","html","json","xml","urlencoded","form","form-data","application/x-www-form-urlencoded","application/json","_parser","toError","msg","accept","auth","user","pass","username","password","query","attach","file","_getFormData","append","_formData","FormData","_maxRetries","_retries","_retry","_callback","clearTimeout","retries","crossDomainError","crossDomain","buffer","ca","agent","pipe","write","_appendQueryString","_sort","queryArr","substring","_isHost","_endCalled","_end","_setTimeouts","onreadystatechange","readyState","_responseTimeoutTimer","timedout","_aborted","handleProgress","direction","total","percent","hasListeners","onprogress","bind","upload","open","_withCredentials","contentType","_serializer","setRequestHeader","head","put","WinChan","addListener","w","event","attachEvent","addEventListener","removeListener","detachEvent","removeEventListener","isInternetExplorer","navigator","rv","ua","userAgent","appName","re","RegExp","parseFloat","$1","isFennec","isSupported","postMessage","extractOrigin","href","findRelay","frames","opener","host","RELAY_FRAME_NAME","CLOSE_CMD","isIE","cleanup","iframe","removeChild","closeInterval","clearInterval","onMessage","close","securityViolation","messageTarget","origin","d","relay_url","setTimeout","window_name","window_features","createElement","setAttribute","style","display","appendChild","contentWindow","popup","setInterval","closed","focus","onOpen","doPost","msgTarget","r","onDie","o_O","onUnload","ohWell","detach","winopts","arg","Authentication","domain","clientID","responseMode","redirectUri","scope","audience","_disableDeprecationWarnings","baseOptions","rootUrl","passwordless","PasswordlessAuthentication","dbConnection","DBConnection","urljoin","qs","responseHandler","parametersWhitelist","buildAuthorizeUrl","qString","nonce","auth0Client","connection_scope","oauthAuthorizeParams","buildLogoutUrl","loginWithDefaultDirectory","grantType","oauthToken","login","realm","oauthTokenParams","grant_type","loginWithResourceOwner","connection","getSSOData","withActiveDirectories","ldaps","client_id","userInfo","accessToken","delegation","getUserCountry","invalidJwt","TransactionManager","namespace","DEFAULT_NAMESPACE","keyLength","random","storage","process","transaction","generateTransaction","appState","state","randomString","setItem","getStoredTransaction","transactionData","getItem","removeItem","mixin","_callbacks","once","off","removeAllListeners","callbacks","splice","args","listeners","CryptoJS","Math","F","subtype","C","C_lib","lib","Base","overrides","mixIn","init","$super","instance","properties","propertyName","clone","WordArray","words","sigBytes","Hex","wordArray","thisWords","thatWords","thisSigBytes","thatSigBytes","clamp","thatByte","ceil","nBytes","rcache","m_w","m_z","mask","_r","C_enc","enc","hexChars","bite","hexStr","hexStrLength","substr","Latin1","latin1Chars","latin1Str","latin1StrLength","Utf8","escape","utf8Str","unescape","BufferedBlockAlgorithm","reset","_nDataBytes","_append","_process","doFlush","dataWords","dataSigBytes","blockSize","blockSizeBytes","nBlocksReady","max","_minBufferSize","nWordsReady","nBytesReady","min","offset","_doProcessBlock","processedWords","C_algo","Hasher","cfg","_doReset","update","messageUpdate","finalize","hash","_doFinalize","_createHelper","hasher","_createHmacHelper","HMAC","algo","H","K","isPrime","n","sqrtN","sqrt","factor","getFractionalBits","nPrime","pow","W","SHA256","_hash","M","b","f","g","h","gamma0x","gamma0","gamma1x","gamma1","ch","maj","sigma0","sigma1","t1","t2","nBitsTotal","nBitsLeft","floor","HmacSHA256","DummyCache","ConfigurationError","TokenValidationError","jwks","modulus","exp","getJWKS","iss","matchingKey","kid","RSAVerifier","BigInteger","getAlgorithmFromDigest","hDigestInfo","algName","DigestInfoHead","alg","sha1","sha224","sha256","sha384","sha512","md2","md5","ripemd160","DigestAlgs","verify","encsig","sig","bitLength","decryptedSig","modPowInt","digest","digestInfo","msgHash","IdTokenVerifier","parameters","jwksCache","expectedAlg","issuer","leeway","__disableExpirationCheck","supportedAlgs","token","jwt","headAndPayload","encoded","payload","signature","aud","iat","tnonce","expirationError","verifyExpAndIat","getRsaVerifier","rsaVerifier","now","expDate","iatDate","setUTCSeconds","_this","cachekey","keyInfo","fromNumber","fromString","nbi","am1","x","am2","xl","xh","am3","int2char","BI_RM","intAt","BI_RC","bnpCopyTo","t","bnpFromInt","DV","nbv","fromInt","bnpFromString","k","fromRadix","mi","sh","DB","ZERO","subTo","bnpClamp","DM","bnToString","negate","toRadix","km","bnNegate","bnAbs","bnCompareTo","nbits","bnBitLength","bnpDLShiftTo","bnpDRShiftTo","bnpLShiftTo","bs","cbs","bm","ds","bnpRShiftTo","bnpSubTo","bnpMultiplyTo","abs","y","am","bnpSquareTo","bnpDivRemTo","q","pm","pt","copyTo","ts","ms","nsh","lShiftTo","ys","y0","yt","F1","F2","d1","FV","d2","dlShiftTo","compareTo","ONE","qd","drShiftTo","rShiftTo","bnMod","divRemTo","Classic","cConvert","cRevert","cReduce","cMulTo","multiplyTo","cSqrTo","squareTo","bnpInvDigit","Montgomery","mp","invDigit","mpl","mph","um","mt2","montConvert","montRevert","montReduce","u0","montSqrTo","montMulTo","bnpIsEven","bnpExp","z","r2","convert","sqrTo","mulTo","revert","bnModPowInt","isEven","bnClone","bnIntValue","bnByteValue","bnShortValue","bnpChunkSize","LN2","log","bnSigNum","bnpToRadix","signum","cs","chunkSize","intValue","bnpFromRadix","dMultiply","dAddOffset","bnpFromNumber","testBit","bitwiseTo","shiftLeft","op_or","isProbablePrime","nextBytes","bnToByteArray","bnEquals","bnMin","bnMax","bnpBitwiseTo","op","op_and","bnAnd","bnOr","op_xor","bnXor","op_andnot","bnAndNot","bnNot","bnShiftLeft","bnShiftRight","lbit","bnGetLowestSetBit","cbit","bnBitCount","bnTestBit","bnpChangeBit","bnSetBit","changeBit","bnClearBit","bnFlipBit","bnpAddTo","bnAdd","addTo","bnSubtract","bnMultiply","bnSquare","bnDivide","bnRemainder","bnDivideAndRemainder","bnpDMultiply","bnpDAddOffset","NullExp","nNop","nMulTo","nSqrTo","bnPow","bnpMultiplyLowerTo","bnpMultiplyUpperTo","Barrett","q3","mu","divide","barrettConvert","barrettRevert","barrettReduce","multiplyUpperTo","multiplyLowerTo","barrettSqrTo","barrettMulTo","bnModPow","k1","g2","is1","bnGCD","getLowestSetBit","bnpModInt","bnModInverse","ac","u","subtract","add","bnIsProbablePrime","lowprimes","lplim","modInt","millerRabin","bnpMillerRabin","n1","shiftRight","modPow","rng_seed_int","rng_pool","rng_pptr","rng_psize","rng_seed_time","getTime","rng_get_byte","rng_state","prng_newstate","next","rng_get_bytes","ba","SecureRandom","Arcfour","S","ARC4init","ARC4next","dbits","canary","j_lm","inBrowser","BI_FP","rr","vv","byteValue","shortValue","equals","and","or","xor","andNot","not","bitCount","setBit","clearBit","flipBit","multiply","remainder","divideAndRemainder","modInverse","gcd","square","crypto","getRandomValues","appVersion","tag","_timer","timeout","_timeout","_responseTimeout","option","deadline","retry","count","then","resolve","reject","_fullfilledPromise","Promise","innerResolve","innerReject","catch","use","ok","_okCallback","getHeader","unset","redirects","_maxRedirects","toJSON","isObj","sortQuery","_timeoutError","reason","errno","ct","links","link","parseLinks","statusType","info","clientError","serverError","accepted","noContent","badRequest","unauthorized","notAcceptable","forbidden","notFound","ERROR_CODES","rel","cleanHeader","shouldStripCookie","signup","email","changePassword","buildVerifyUrl","verificationCode","phoneNumber","authParams","redirect_uri","response_type","cleanOption","days","expires","windowHandler","cookie","timeToExpire","setTime","toGMTString","read","cookies","nameEQ","erase","IframeHandler","timeoutCallback","eventListenerType","timeoutHandle","_destroyTimeout","transientMessageEventListener","proxyEventListener","eventValidator","isValid","windowHelper","_window","src","eventListener","eventSourceObject","timeoutHandler","eventData","sourceObject","destroy","assign","objectAssignPolyfill","to","nextSource","keysArray","nextIndex","nextKey","desc","getOwnPropertyDescriptor","enumerable","authorizeParams","tokenParams","PluginHandler","webAuth","plugins","pluginName","setWebAuth","extensibilityPoint","supports","PopupHandler","_current_popup","calculatePosition","width","height","screenX","screenLeft","screenY","screenTop","outerWidth","clientWidth","outerHeight","clientHeight","left","top","preload","popupPosition","popupOptions","windowFeatures","kill","load","relayUrl","winchanOptions","bytes","charset","cryptoObj","msCrypto","getStorage","force","StorageHandler","reload","CookieStorage","DummyStorage","localStorage","failover","Management","WebAuth","Authorization","getUser","userId","patchUserMetadata","userMetadata","user_metadata","linkUser","secondaryUserToken","link_with","CrossOriginAuthentication","getFragment","theWindow","createKey","coId","authenticateBody","credential_type","errorObject","authorizeOptions","loginTicket","login_ticket","co_id","sessionStorage","co_verifier","authorize","targetOrigin","evt","verifier","__tenant","__token_issuer","tenant","token_issuer","transactionManager","client","Redirect","Popup","crossOriginAuthentication","buildParseHashResponse","qsParams","appStatus","access_token","idToken","id_token","idTokenPayload","refreshToken","refresh_token","expiresIn","expires_in","tokenType","token_type","SilentAuthenticationHandler","parseHash","parsedQs","transactionNonce","_idTokenVerification","hashStr","applicationStatus","validateToken","validationError","decodedToken","renewAuth","handler","usePostMessage","postMessageDataType","prompt","authenticationUrl","transactionState","passwordlessStart","signupAndAuthorize","crossOriginAuthenticationCallback","logout","passwordlessVerify","urlHelper","buildPopupHandler","pluginHandler","getPopupHandler","popupHandler","popupOrigin","popOpts","owp","processParams","loginWithCredentials","signupAndLogin","UsernamePassword","usernamePassword","auth0","getCallbackHandler","getEventValidator","callbackValue","formHtml","div","_document","innerHTML","children","submit"],"mappings":";;;;;;;;CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,OAAA,cAAAH,GACA,gBAAAC,SACAA,QAAA,YAAAD,IAEAD,EAAA,MAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,GAGAR,EAAA,KDgBM,SAASL,EAAQD,EAASM,GAE/BL,EAAOD,QAAUM,EAAoB,KAKhC,SAASL,EAAQD,EAASM,GE7DhC,GAAAS,GAAAC,GAAA,SAAAC,EAAAC,EAAAC,GACA,mBAAAlB,MAAAD,QAAAC,EAAAD,QAAAmB,KACAJ,EAAA,EAAAC,EAAA,kBAAAD,KAAAJ,KAAAX,EAAAM,EAAAN,EAAAC,GAAAc,IAAAK,SAAAJ,IAAAf,EAAAD,QAAAgB,MAEC,UAAAZ,KAAA,WAED,QAAAiB,GAAAC,EAAAC,GAcA,MAXAD,KAAAE,QAAA,cAGAF,IAAAE,QAAA,sBAGAF,IAAAE,QAAA,wBAGAF,IAAAE,QAAA,mBAKA,kBACA,GAAAC,GAAAC,UACAH,IAEA,iBAAAG,WAAA,KAEAD,EAAAC,UAAA,GACAH,EAAAG,UAAA,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,UAAAsZ,MAAA,SAAAze,EAAAwF,GACA,GAAA/B,GACAyC,CAsBA,OApBAzC,GAAAka,EAAA9e,KAAAwe,YAAAC,QAAA,4BAEAtd,EAAAwV,SAAAxV,EAAAwV,UAAAxV,EAAAk/B,MAEAl/B,EAAA0G,EAAA1E,UAAAhC,GAAA,UAEAkG,EAAAQ,EACA/E,MAAA9C,KAAAwe,aACA,WACA,cACA,SACA,eACA,eACA,QACA,aAEAxb,KAAA7B,GAEAkG,EAAAQ,EAAAxD,YAAAgD,GAAA,gBAEArH,KAAAqK,QAAA2B,KAAApH,GAAA0G,KAAAjE,GAAAmE,IAAAwT,EAAArY,KAGA0kC,EAAA/kC,UAAAoO,SAAA,SAAAi3B,GACA,GAAAC,GACA51B,EACA61B,EAAA3J,EAAAn9B,aAEA6mC,GAAAC,EAAAlvB,cAAA,OACAivB,EAAAE,UAAAH,EACA31B,EAAA61B,EAAAxkC,KAAA0V,YAAA6uB,GAAAG,SAAA,GAEA/1B,EAAAg2B,UAGAnsC,EAAAD,QAAAyrC","file":"vendor-bundle.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"auth0-js\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"auth0-js\"] = factory();\n\telse\n\t\troot[\"auth0\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"auth0-js\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"auth0-js\"] = factory();\n\telse\n\t\troot[\"auth0\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(54);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (name, context, definition) {\n\t if (typeof module !== 'undefined' && module.exports) module.exports = definition();\n\t else if (true) !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t else context[name] = definition();\n\t})('urljoin', this, function () {\n\t\n\t function normalize (str, options) {\n\t\n\t // make sure protocol is followed by two slashes\n\t str = str.replace(/:\\//g, '://');\n\t\n\t // remove consecutive slashes\n\t str = str.replace(/([^:\\s])\\/+/g, '$1/');\n\t\n\t // remove trailing slash before parameters or hash\n\t str = str.replace(/\\/(\\?|&|#[^!])/g, '$1');\n\t\n\t // replace ? in parameters with &\n\t str = str.replace(/(\\?.+)\\?/g, '$1&');\n\t\n\t return str;\n\t }\n\t\n\t return function () {\n\t var input = arguments;\n\t var options = {};\n\t\n\t if (typeof arguments[0] === 'object') {\n\t // new syntax with array and options\n\t input = arguments[0];\n\t options = arguments[1] || {};\n\t }\n\t\n\t var joined = [].slice.call(input, 0).join('/');\n\t return normalize(joined, options);\n\t };\n\t\n\t});\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint-disable no-param-reassign */\n\t/* eslint-disable no-restricted-syntax */\n\t/* eslint-disable guard-for-in */\n\t\n\tvar assert = __webpack_require__(4);\n\tvar objectAssign = __webpack_require__(44);\n\t\n\tfunction pick(object, keys) {\n\t return keys.reduce(function(prev, key) {\n\t if (object[key]) {\n\t prev[key] = object[key];\n\t }\n\t return prev;\n\t }, {});\n\t}\n\t\n\tfunction getKeysNotIn(obj, allowedKeys) {\n\t var notAllowed = [];\n\t for (var key in obj) {\n\t if (allowedKeys.indexOf(key) === -1) {\n\t notAllowed.push(key);\n\t }\n\t }\n\t return notAllowed;\n\t}\n\t\n\tfunction objectValues(obj) {\n\t var values = [];\n\t for (var key in obj) {\n\t values.push(obj[key]);\n\t }\n\t return values;\n\t}\n\t\n\tfunction extend() {\n\t var params = objectValues(arguments);\n\t params.unshift({});\n\t return objectAssign.get().apply(undefined, params);\n\t}\n\t\n\tfunction merge(object, keys) {\n\t return {\n\t base: keys ? pick(object, keys) : object,\n\t with: function(object2, keys2) {\n\t object2 = keys2 ? pick(object2, keys2) : object2;\n\t return extend(this.base, object2);\n\t }\n\t };\n\t}\n\t\n\tfunction blacklist(object, blacklistedKeys) {\n\t return Object.keys(object).reduce(function(p, key) {\n\t if (blacklistedKeys.indexOf(key) === -1) {\n\t p[key] = object[key];\n\t }\n\t return p;\n\t }, {});\n\t}\n\t\n\tfunction camelToSnake(str) {\n\t var newKey = '';\n\t var index = 0;\n\t var code;\n\t var wasPrevNumber = true;\n\t var wasPrevUppercase = true;\n\t\n\t while (index < str.length) {\n\t code = str.charCodeAt(index);\n\t if (\n\t (!wasPrevUppercase && code >= 65 && code <= 90) ||\n\t (!wasPrevNumber && code >= 48 && code <= 57)\n\t ) {\n\t newKey += '_';\n\t newKey += str[index].toLowerCase();\n\t } else {\n\t newKey += str[index].toLowerCase();\n\t }\n\t wasPrevNumber = code >= 48 && code <= 57;\n\t wasPrevUppercase = code >= 65 && code <= 90;\n\t index++;\n\t }\n\t\n\t return newKey;\n\t}\n\t\n\tfunction snakeToCamel(str) {\n\t var parts = str.split('_');\n\t return parts.reduce(function(p, c) {\n\t return p + c.charAt(0).toUpperCase() + c.slice(1);\n\t }, parts.shift());\n\t}\n\t\n\tfunction toSnakeCase(object, exceptions) {\n\t if (typeof object !== 'object' || assert.isArray(object) || object === null) {\n\t return object;\n\t }\n\t exceptions = exceptions || [];\n\t\n\t return Object.keys(object).reduce(function(p, key) {\n\t var newKey = exceptions.indexOf(key) === -1 ? camelToSnake(key) : key;\n\t p[newKey] = toSnakeCase(object[key]);\n\t return p;\n\t }, {});\n\t}\n\t\n\tfunction toCamelCase(object, exceptions) {\n\t if (typeof object !== 'object' || assert.isArray(object) || object === null) {\n\t return object;\n\t }\n\t\n\t exceptions = exceptions || [];\n\t\n\t return Object.keys(object).reduce(function(p, key) {\n\t var newKey = exceptions.indexOf(key) === -1 ? snakeToCamel(key) : key;\n\t p[newKey] = toCamelCase(object[key]);\n\t return p;\n\t }, {});\n\t}\n\t\n\tmodule.exports = {\n\t toSnakeCase: toSnakeCase,\n\t toCamelCase: toCamelCase,\n\t blacklist: blacklist,\n\t merge: merge,\n\t pick: pick,\n\t getKeysNotIn: getKeysNotIn,\n\t extend: extend\n\t};\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {function redirect(url) {\n\t global.window.location = url;\n\t}\n\t\n\tfunction getDocument() {\n\t return global.window.document;\n\t}\n\t\n\tfunction getWindow() {\n\t return global.window;\n\t}\n\t\n\tmodule.exports = {\n\t redirect: redirect,\n\t getDocument: getDocument,\n\t getWindow: getWindow\n\t};\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 4 */\n/***/ function(module, exports) {\n\n\tvar toString = Object.prototype.toString;\n\t\n\tfunction attribute(o, attr, type, text) {\n\t type = type === 'array' ? 'object' : type;\n\t if (o && typeof o[attr] !== type) {\n\t throw new Error(text);\n\t }\n\t}\n\t\n\tfunction variable(o, type, text) {\n\t if (typeof o !== type) {\n\t throw new Error(text);\n\t }\n\t}\n\t\n\tfunction value(o, values, text) {\n\t if (values.indexOf(o) === -1) {\n\t throw new Error(text);\n\t }\n\t}\n\t\n\tfunction check(o, config, attributes) {\n\t if (!config.optional || o) {\n\t variable(o, config.type, config.message);\n\t }\n\t if (config.type === 'object' && attributes) {\n\t var keys = Object.keys(attributes);\n\t\n\t for (var index = 0; index < keys.length; index++) {\n\t var a = keys[index];\n\t if (!attributes[a].optional || o[a]) {\n\t if (!attributes[a].condition || attributes[a].condition(o)) {\n\t attribute(o, a, attributes[a].type, attributes[a].message);\n\t if (attributes[a].values) {\n\t value(o[a], attributes[a].values, attributes[a].value_message);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t}\n\t\n\t/**\n\t * Wrap `Array.isArray` Polyfill for IE9\n\t * source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray\n\t *\n\t * @param {Array} array\n\t * @private\n\t */\n\tfunction isArray(array) {\n\t if (this.supportsIsArray()) {\n\t return Array.isArray(array);\n\t }\n\t\n\t return toString.call(array) === '[object Array]';\n\t}\n\t\n\tfunction supportsIsArray() {\n\t return Array.isArray != null;\n\t}\n\t\n\tmodule.exports = {\n\t check: check,\n\t attribute: attribute,\n\t variable: variable,\n\t value: value,\n\t isArray: isArray,\n\t supportsIsArray: supportsIsArray\n\t};\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar stringify = __webpack_require__(13);\n\tvar parse = __webpack_require__(12);\n\tvar formats = __webpack_require__(7);\n\t\n\tmodule.exports = {\n\t formats: formats,\n\t parse: parse,\n\t stringify: stringify\n\t};\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar error = __webpack_require__(21);\n\tvar objectHelper = __webpack_require__(2);\n\t\n\tfunction wrapCallback(cb, options) {\n\t options = options || {};\n\t options.ignoreCasing = options.ignoreCasing ? options.ignoreCasing : false;\n\t\n\t return function(err, data) {\n\t var errObj;\n\t\n\t if (!err && !data) {\n\t return cb(error.buildResponse('generic_error', 'Something went wrong'));\n\t }\n\t\n\t if (!err && data.err) {\n\t err = data.err;\n\t data = null;\n\t }\n\t\n\t if (!err && data.error) {\n\t err = data;\n\t data = null;\n\t }\n\t\n\t if (err) {\n\t errObj = {\n\t original: err\n\t };\n\t\n\t if (err.response && err.response.statusCode) {\n\t errObj.statusCode = err.response.statusCode;\n\t }\n\t\n\t if (err.response && err.response.statusText) {\n\t errObj.statusText = err.response.statusText;\n\t }\n\t\n\t if (err.response && err.response.body) {\n\t err = err.response.body;\n\t }\n\t\n\t if (err.err) {\n\t err = err.err;\n\t }\n\t\n\t errObj.code = err.error || err.code || err.error_code || err.status || null;\n\t errObj.description =\n\t err.errorDescription ||\n\t err.error_description ||\n\t err.description ||\n\t err.error ||\n\t err.details ||\n\t err.err ||\n\t null;\n\t\n\t if (err.name) {\n\t errObj.name = err.name;\n\t }\n\t\n\t if (err.policy) {\n\t errObj.policy = err.policy;\n\t }\n\t\n\t return cb(errObj);\n\t }\n\t\n\t if (data.type && (data.type === 'text/html' || data.type === 'text/plain')) {\n\t return cb(null, data.text);\n\t }\n\t\n\t if (options.ignoreCasing) {\n\t return cb(null, data.body || data);\n\t }\n\t\n\t return cb(null, objectHelper.toCamelCase(data.body || data));\n\t };\n\t}\n\t\n\tmodule.exports = wrapCallback;\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar replace = String.prototype.replace;\n\tvar percentTwenties = /%20/g;\n\t\n\tmodule.exports = {\n\t 'default': 'RFC3986',\n\t formatters: {\n\t RFC1738: function (value) {\n\t return replace.call(value, percentTwenties, '+');\n\t },\n\t RFC3986: function (value) {\n\t return value;\n\t }\n\t },\n\t RFC1738: 'RFC1738',\n\t RFC3986: 'RFC3986'\n\t};\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar has = Object.prototype.hasOwnProperty;\n\t\n\tvar hexTable = (function () {\n\t var array = [];\n\t for (var i = 0; i < 256; ++i) {\n\t array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n\t }\n\t\n\t return array;\n\t}());\n\t\n\texports.arrayToObject = function (source, options) {\n\t var obj = options && options.plainObjects ? Object.create(null) : {};\n\t for (var i = 0; i < source.length; ++i) {\n\t if (typeof source[i] !== 'undefined') {\n\t obj[i] = source[i];\n\t }\n\t }\n\t\n\t return obj;\n\t};\n\t\n\texports.merge = function (target, source, options) {\n\t if (!source) {\n\t return target;\n\t }\n\t\n\t if (typeof source !== 'object') {\n\t if (Array.isArray(target)) {\n\t target.push(source);\n\t } else if (typeof target === 'object') {\n\t if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {\n\t target[source] = true;\n\t }\n\t } else {\n\t return [target, source];\n\t }\n\t\n\t return target;\n\t }\n\t\n\t if (typeof target !== 'object') {\n\t return [target].concat(source);\n\t }\n\t\n\t var mergeTarget = target;\n\t if (Array.isArray(target) && !Array.isArray(source)) {\n\t mergeTarget = exports.arrayToObject(target, options);\n\t }\n\t\n\t if (Array.isArray(target) && Array.isArray(source)) {\n\t source.forEach(function (item, i) {\n\t if (has.call(target, i)) {\n\t if (target[i] && typeof target[i] === 'object') {\n\t target[i] = exports.merge(target[i], item, options);\n\t } else {\n\t target.push(item);\n\t }\n\t } else {\n\t target[i] = item;\n\t }\n\t });\n\t return target;\n\t }\n\t\n\t return Object.keys(source).reduce(function (acc, key) {\n\t var value = source[key];\n\t\n\t if (Object.prototype.hasOwnProperty.call(acc, key)) {\n\t acc[key] = exports.merge(acc[key], value, options);\n\t } else {\n\t acc[key] = value;\n\t }\n\t return acc;\n\t }, mergeTarget);\n\t};\n\t\n\texports.decode = function (str) {\n\t try {\n\t return decodeURIComponent(str.replace(/\\+/g, ' '));\n\t } catch (e) {\n\t return str;\n\t }\n\t};\n\t\n\texports.encode = function (str) {\n\t // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n\t // It has been adapted here for stricter adherence to RFC 3986\n\t if (str.length === 0) {\n\t return str;\n\t }\n\t\n\t var string = typeof str === 'string' ? str : String(str);\n\t\n\t var out = '';\n\t for (var i = 0; i < string.length; ++i) {\n\t var c = string.charCodeAt(i);\n\t\n\t if (\n\t c === 0x2D || // -\n\t c === 0x2E || // .\n\t c === 0x5F || // _\n\t c === 0x7E || // ~\n\t (c >= 0x30 && c <= 0x39) || // 0-9\n\t (c >= 0x41 && c <= 0x5A) || // a-z\n\t (c >= 0x61 && c <= 0x7A) // A-Z\n\t ) {\n\t out += string.charAt(i);\n\t continue;\n\t }\n\t\n\t if (c < 0x80) {\n\t out = out + hexTable[c];\n\t continue;\n\t }\n\t\n\t if (c < 0x800) {\n\t out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n\t continue;\n\t }\n\t\n\t if (c < 0xD800 || c >= 0xE000) {\n\t out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n\t continue;\n\t }\n\t\n\t i += 1;\n\t c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n\t out += hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]; // eslint-disable-line max-len\n\t }\n\t\n\t return out;\n\t};\n\t\n\texports.compact = function (obj, references) {\n\t if (typeof obj !== 'object' || obj === null) {\n\t return obj;\n\t }\n\t\n\t var refs = references || [];\n\t var lookup = refs.indexOf(obj);\n\t if (lookup !== -1) {\n\t return refs[lookup];\n\t }\n\t\n\t refs.push(obj);\n\t\n\t if (Array.isArray(obj)) {\n\t var compacted = [];\n\t\n\t for (var i = 0; i < obj.length; ++i) {\n\t if (obj[i] && typeof obj[i] === 'object') {\n\t compacted.push(exports.compact(obj[i], refs));\n\t } else if (typeof obj[i] !== 'undefined') {\n\t compacted.push(obj[i]);\n\t }\n\t }\n\t\n\t return compacted;\n\t }\n\t\n\t var keys = Object.keys(obj);\n\t keys.forEach(function (key) {\n\t obj[key] = exports.compact(obj[key], refs);\n\t });\n\t\n\t return obj;\n\t};\n\t\n\texports.isRegExp = function (obj) {\n\t return Object.prototype.toString.call(obj) === '[object RegExp]';\n\t};\n\t\n\texports.isBuffer = function (obj) {\n\t if (obj === null || typeof obj === 'undefined') {\n\t return false;\n\t }\n\t\n\t return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n\t};\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\tmodule.exports = { raw: '8.7.0' };\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint-disable no-param-reassign */\n\tvar request = __webpack_require__(17);\n\tvar base64Url = __webpack_require__(20);\n\tvar version = __webpack_require__(9);\n\t\n\t// ------------------------------------------------ RequestWrapper\n\t\n\tfunction RequestWrapper(req) {\n\t this.request = req;\n\t this.method = req.method;\n\t this.url = req.url;\n\t this.body = req._data;\n\t this.headers = req._header;\n\t}\n\t\n\tRequestWrapper.prototype.abort = function() {\n\t this.request.abort();\n\t};\n\t\n\tRequestWrapper.prototype.getMethod = function() {\n\t return this.method;\n\t};\n\t\n\tRequestWrapper.prototype.getBody = function() {\n\t return this.body;\n\t};\n\t\n\tRequestWrapper.prototype.getUrl = function() {\n\t return this.url;\n\t};\n\t\n\tRequestWrapper.prototype.getHeaders = function() {\n\t return this.headers;\n\t};\n\t\n\t// ------------------------------------------------ RequestObj\n\t\n\tfunction RequestObj(req) {\n\t this.request = req;\n\t}\n\t\n\tRequestObj.prototype.set = function(key, value) {\n\t this.request = this.request.set(key, value);\n\t return this;\n\t};\n\t\n\tRequestObj.prototype.send = function(body) {\n\t this.request = this.request.send(body);\n\t return this;\n\t};\n\t\n\tRequestObj.prototype.withCredentials = function() {\n\t this.request = this.request.withCredentials();\n\t return this;\n\t};\n\t\n\tRequestObj.prototype.end = function(cb) {\n\t this.request = this.request.end(cb);\n\t return new RequestWrapper(this.request);\n\t};\n\t\n\t// ------------------------------------------------ RequestBuilder\n\t\n\tfunction RequestBuilder(options) {\n\t this._sendTelemetry = options._sendTelemetry === false ? options._sendTelemetry : true;\n\t this._telemetryInfo = options._telemetryInfo || null;\n\t this.headers = options.headers || {};\n\t}\n\t\n\tRequestBuilder.prototype.setCommonConfiguration = function(ongoingRequest, options) {\n\t options = options || {};\n\t\n\t if (options.noHeaders) {\n\t return ongoingRequest;\n\t }\n\t\n\t var headers = this.headers;\n\t ongoingRequest = ongoingRequest.set('Content-Type', 'application/json');\n\t\n\t var keys = Object.keys(this.headers);\n\t\n\t for (var a = 0; a < keys.length; a++) {\n\t ongoingRequest = ongoingRequest.set(keys[a], headers[keys[a]]);\n\t }\n\t\n\t if (this._sendTelemetry) {\n\t ongoingRequest = ongoingRequest.set('Auth0-Client', this.getTelemetryData());\n\t }\n\t return ongoingRequest;\n\t};\n\t\n\tRequestBuilder.prototype.getTelemetryData = function() {\n\t var clientInfo = this._telemetryInfo || { name: 'auth0.js', version: version.raw };\n\t var jsonClientInfo = JSON.stringify(clientInfo);\n\t return base64Url.encode(jsonClientInfo);\n\t};\n\t\n\tRequestBuilder.prototype.get = function(url, options) {\n\t return new RequestObj(this.setCommonConfiguration(request.get(url), options));\n\t};\n\t\n\tRequestBuilder.prototype.post = function(url, options) {\n\t return new RequestObj(this.setCommonConfiguration(request.post(url), options));\n\t};\n\t\n\tRequestBuilder.prototype.patch = function(url, options) {\n\t return new RequestObj(this.setCommonConfiguration(request.patch(url), options));\n\t};\n\t\n\tmodule.exports = RequestBuilder;\n\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\t/* eslint-disable no-console */\n\t\n\tfunction Warn(options) {\n\t this.disableWarnings = options.disableWarnings;\n\t}\n\t\n\tWarn.prototype.warning = function(message) {\n\t if (this.disableWarnings) {\n\t return;\n\t }\n\t\n\t console.warn(message);\n\t};\n\t\n\tmodule.exports = Warn;\n\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\t\n\tvar has = Object.prototype.hasOwnProperty;\n\t\n\tvar defaults = {\n\t allowDots: false,\n\t allowPrototypes: false,\n\t arrayLimit: 20,\n\t decoder: utils.decode,\n\t delimiter: '&',\n\t depth: 5,\n\t parameterLimit: 1000,\n\t plainObjects: false,\n\t strictNullHandling: false\n\t};\n\t\n\tvar parseValues = function parseQueryStringValues(str, options) {\n\t var obj = {};\n\t var parts = str.split(options.delimiter, options.parameterLimit === Infinity ? undefined : options.parameterLimit);\n\t\n\t for (var i = 0; i < parts.length; ++i) {\n\t var part = parts[i];\n\t var pos = part.indexOf(']=') === -1 ? part.indexOf('=') : part.indexOf(']=') + 1;\n\t\n\t var key, val;\n\t if (pos === -1) {\n\t key = options.decoder(part);\n\t val = options.strictNullHandling ? null : '';\n\t } else {\n\t key = options.decoder(part.slice(0, pos));\n\t val = options.decoder(part.slice(pos + 1));\n\t }\n\t if (has.call(obj, key)) {\n\t obj[key] = [].concat(obj[key]).concat(val);\n\t } else {\n\t obj[key] = val;\n\t }\n\t }\n\t\n\t return obj;\n\t};\n\t\n\tvar parseObject = function parseObjectRecursive(chain, val, options) {\n\t if (!chain.length) {\n\t return val;\n\t }\n\t\n\t var root = chain.shift();\n\t\n\t var obj;\n\t if (root === '[]') {\n\t obj = [];\n\t obj = obj.concat(parseObject(chain, val, options));\n\t } else {\n\t obj = options.plainObjects ? Object.create(null) : {};\n\t var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n\t var index = parseInt(cleanRoot, 10);\n\t if (\n\t !isNaN(index) &&\n\t root !== cleanRoot &&\n\t String(index) === cleanRoot &&\n\t index >= 0 &&\n\t (options.parseArrays && index <= options.arrayLimit)\n\t ) {\n\t obj = [];\n\t obj[index] = parseObject(chain, val, options);\n\t } else {\n\t obj[cleanRoot] = parseObject(chain, val, options);\n\t }\n\t }\n\t\n\t return obj;\n\t};\n\t\n\tvar parseKeys = function parseQueryStringKeys(givenKey, val, options) {\n\t if (!givenKey) {\n\t return;\n\t }\n\t\n\t // Transform dot notation to bracket notation\n\t var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\t\n\t // The regex chunks\n\t\n\t var brackets = /(\\[[^[\\]]*])/;\n\t var child = /(\\[[^[\\]]*])/g;\n\t\n\t // Get the parent\n\t\n\t var segment = brackets.exec(key);\n\t var parent = segment ? key.slice(0, segment.index) : key;\n\t\n\t // Stash the parent if it exists\n\t\n\t var keys = [];\n\t if (parent) {\n\t // If we aren't using plain objects, optionally prefix keys\n\t // that would overwrite object prototype properties\n\t if (!options.plainObjects && has.call(Object.prototype, parent)) {\n\t if (!options.allowPrototypes) {\n\t return;\n\t }\n\t }\n\t\n\t keys.push(parent);\n\t }\n\t\n\t // Loop through children appending to the array until we hit depth\n\t\n\t var i = 0;\n\t while ((segment = child.exec(key)) !== null && i < options.depth) {\n\t i += 1;\n\t if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n\t if (!options.allowPrototypes) {\n\t return;\n\t }\n\t }\n\t keys.push(segment[1]);\n\t }\n\t\n\t // If there's a remainder, just add whatever is left\n\t\n\t if (segment) {\n\t keys.push('[' + key.slice(segment.index) + ']');\n\t }\n\t\n\t return parseObject(keys, val, options);\n\t};\n\t\n\tmodule.exports = function (str, opts) {\n\t var options = opts || {};\n\t\n\t if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {\n\t throw new TypeError('Decoder has to be a function.');\n\t }\n\t\n\t options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter;\n\t options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth;\n\t options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit;\n\t options.parseArrays = options.parseArrays !== false;\n\t options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder;\n\t options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots;\n\t options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects;\n\t options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes;\n\t options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit;\n\t options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;\n\t\n\t if (str === '' || str === null || typeof str === 'undefined') {\n\t return options.plainObjects ? Object.create(null) : {};\n\t }\n\t\n\t var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n\t var obj = options.plainObjects ? Object.create(null) : {};\n\t\n\t // Iterate over the keys and setup the new object\n\t\n\t var keys = Object.keys(tempObj);\n\t for (var i = 0; i < keys.length; ++i) {\n\t var key = keys[i];\n\t var newObj = parseKeys(key, tempObj[key], options);\n\t obj = utils.merge(obj, newObj, options);\n\t }\n\t\n\t return utils.compact(obj);\n\t};\n\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar utils = __webpack_require__(8);\n\tvar formats = __webpack_require__(7);\n\t\n\tvar arrayPrefixGenerators = {\n\t brackets: function brackets(prefix) { // eslint-disable-line func-name-matching\n\t return prefix + '[]';\n\t },\n\t indices: function indices(prefix, key) { // eslint-disable-line func-name-matching\n\t return prefix + '[' + key + ']';\n\t },\n\t repeat: function repeat(prefix) { // eslint-disable-line func-name-matching\n\t return prefix;\n\t }\n\t};\n\t\n\tvar toISO = Date.prototype.toISOString;\n\t\n\tvar defaults = {\n\t delimiter: '&',\n\t encode: true,\n\t encoder: utils.encode,\n\t encodeValuesOnly: false,\n\t serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching\n\t return toISO.call(date);\n\t },\n\t skipNulls: false,\n\t strictNullHandling: false\n\t};\n\t\n\tvar stringify = function stringify( // eslint-disable-line func-name-matching\n\t object,\n\t prefix,\n\t generateArrayPrefix,\n\t strictNullHandling,\n\t skipNulls,\n\t encoder,\n\t filter,\n\t sort,\n\t allowDots,\n\t serializeDate,\n\t formatter,\n\t encodeValuesOnly\n\t) {\n\t var obj = object;\n\t if (typeof filter === 'function') {\n\t obj = filter(prefix, obj);\n\t } else if (obj instanceof Date) {\n\t obj = serializeDate(obj);\n\t } else if (obj === null) {\n\t if (strictNullHandling) {\n\t return encoder && !encodeValuesOnly ? encoder(prefix) : prefix;\n\t }\n\t\n\t obj = '';\n\t }\n\t\n\t if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {\n\t if (encoder) {\n\t var keyValue = encodeValuesOnly ? prefix : encoder(prefix);\n\t return [formatter(keyValue) + '=' + formatter(encoder(obj))];\n\t }\n\t return [formatter(prefix) + '=' + formatter(String(obj))];\n\t }\n\t\n\t var values = [];\n\t\n\t if (typeof obj === 'undefined') {\n\t return values;\n\t }\n\t\n\t var objKeys;\n\t if (Array.isArray(filter)) {\n\t objKeys = filter;\n\t } else {\n\t var keys = Object.keys(obj);\n\t objKeys = sort ? keys.sort(sort) : keys;\n\t }\n\t\n\t for (var i = 0; i < objKeys.length; ++i) {\n\t var key = objKeys[i];\n\t\n\t if (skipNulls && obj[key] === null) {\n\t continue;\n\t }\n\t\n\t if (Array.isArray(obj)) {\n\t values = values.concat(stringify(\n\t obj[key],\n\t generateArrayPrefix(prefix, key),\n\t generateArrayPrefix,\n\t strictNullHandling,\n\t skipNulls,\n\t encoder,\n\t filter,\n\t sort,\n\t allowDots,\n\t serializeDate,\n\t formatter,\n\t encodeValuesOnly\n\t ));\n\t } else {\n\t values = values.concat(stringify(\n\t obj[key],\n\t prefix + (allowDots ? '.' + key : '[' + key + ']'),\n\t generateArrayPrefix,\n\t strictNullHandling,\n\t skipNulls,\n\t encoder,\n\t filter,\n\t sort,\n\t allowDots,\n\t serializeDate,\n\t formatter,\n\t encodeValuesOnly\n\t ));\n\t }\n\t }\n\t\n\t return values;\n\t};\n\t\n\tmodule.exports = function (object, opts) {\n\t var obj = object;\n\t var options = opts || {};\n\t\n\t if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {\n\t throw new TypeError('Encoder has to be a function.');\n\t }\n\t\n\t var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter;\n\t var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;\n\t var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;\n\t var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;\n\t var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;\n\t var sort = typeof options.sort === 'function' ? options.sort : null;\n\t var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;\n\t var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;\n\t var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly;\n\t if (typeof options.format === 'undefined') {\n\t options.format = formats.default;\n\t } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {\n\t throw new TypeError('Unknown format option provided.');\n\t }\n\t var formatter = formats.formatters[options.format];\n\t var objKeys;\n\t var filter;\n\t\n\t if (typeof options.filter === 'function') {\n\t filter = options.filter;\n\t obj = filter('', obj);\n\t } else if (Array.isArray(options.filter)) {\n\t filter = options.filter;\n\t objKeys = filter;\n\t }\n\t\n\t var keys = [];\n\t\n\t if (typeof obj !== 'object' || obj === null) {\n\t return '';\n\t }\n\t\n\t var arrayFormat;\n\t if (options.arrayFormat in arrayPrefixGenerators) {\n\t arrayFormat = options.arrayFormat;\n\t } else if ('indices' in options) {\n\t arrayFormat = options.indices ? 'indices' : 'repeat';\n\t } else {\n\t arrayFormat = 'indices';\n\t }\n\t\n\t var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n\t\n\t if (!objKeys) {\n\t objKeys = Object.keys(obj);\n\t }\n\t\n\t if (sort) {\n\t objKeys.sort(sort);\n\t }\n\t\n\t for (var i = 0; i < objKeys.length; ++i) {\n\t var key = objKeys[i];\n\t\n\t if (skipNulls && obj[key] === null) {\n\t continue;\n\t }\n\t\n\t keys = keys.concat(stringify(\n\t obj[key],\n\t key,\n\t generateArrayPrefix,\n\t strictNullHandling,\n\t skipNulls,\n\t encode ? encoder : null,\n\t filter,\n\t sort,\n\t allowDots,\n\t serializeDate,\n\t formatter,\n\t encodeValuesOnly\n\t ));\n\t }\n\t\n\t return keys.join(delimiter);\n\t};\n\n\n/***/ },\n/* 14 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Check if `obj` is an object.\n\t *\n\t * @param {Object} obj\n\t * @return {Boolean}\n\t * @api private\n\t */\n\t\n\tfunction isObject(obj) {\n\t return null !== obj && 'object' === typeof obj;\n\t}\n\t\n\tmodule.exports = isObject;\n\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\t'use strict'\n\t\n\texports.byteLength = byteLength\n\texports.toByteArray = toByteArray\n\texports.fromByteArray = fromByteArray\n\t\n\tvar lookup = []\n\tvar revLookup = []\n\tvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\t\n\tvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\n\tfor (var i = 0, len = code.length; i < len; ++i) {\n\t lookup[i] = code[i]\n\t revLookup[code.charCodeAt(i)] = i\n\t}\n\t\n\trevLookup['-'.charCodeAt(0)] = 62\n\trevLookup['_'.charCodeAt(0)] = 63\n\t\n\tfunction placeHoldersCount (b64) {\n\t var len = b64.length\n\t if (len % 4 > 0) {\n\t throw new Error('Invalid string. Length must be a multiple of 4')\n\t }\n\t\n\t // the number of equal signs (place holders)\n\t // if there are two placeholders, than the two characters before it\n\t // represent one byte\n\t // if there is only one, then the three characters before it represent 2 bytes\n\t // this is just a cheap hack to not do indexOf twice\n\t return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0\n\t}\n\t\n\tfunction byteLength (b64) {\n\t // base64 is 4/3 + up to two characters of the original data\n\t return b64.length * 3 / 4 - placeHoldersCount(b64)\n\t}\n\t\n\tfunction toByteArray (b64) {\n\t var i, j, l, tmp, placeHolders, arr\n\t var len = b64.length\n\t placeHolders = placeHoldersCount(b64)\n\t\n\t arr = new Arr(len * 3 / 4 - placeHolders)\n\t\n\t // if there are placeholders, only get up to the last complete 4 chars\n\t l = placeHolders > 0 ? len - 4 : len\n\t\n\t var L = 0\n\t\n\t for (i = 0, j = 0; i < l; i += 4, j += 3) {\n\t tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]\n\t arr[L++] = (tmp >> 16) & 0xFF\n\t arr[L++] = (tmp >> 8) & 0xFF\n\t arr[L++] = tmp & 0xFF\n\t }\n\t\n\t if (placeHolders === 2) {\n\t tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4)\n\t arr[L++] = tmp & 0xFF\n\t } else if (placeHolders === 1) {\n\t tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2)\n\t arr[L++] = (tmp >> 8) & 0xFF\n\t arr[L++] = tmp & 0xFF\n\t }\n\t\n\t return arr\n\t}\n\t\n\tfunction tripletToBase64 (num) {\n\t return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]\n\t}\n\t\n\tfunction encodeChunk (uint8, start, end) {\n\t var tmp\n\t var output = []\n\t for (var i = start; i < end; i += 3) {\n\t tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n\t output.push(tripletToBase64(tmp))\n\t }\n\t return output.join('')\n\t}\n\t\n\tfunction fromByteArray (uint8) {\n\t var tmp\n\t var len = uint8.length\n\t var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n\t var output = ''\n\t var parts = []\n\t var maxChunkLength = 16383 // must be multiple of 3\n\t\n\t // go through the array every three bytes, we'll deal with trailing stuff later\n\t for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n\t parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n\t }\n\t\n\t // pad the end with zeros, but make sure to not forget the extra bytes\n\t if (extraBytes === 1) {\n\t tmp = uint8[len - 1]\n\t output += lookup[tmp >> 2]\n\t output += lookup[(tmp << 4) & 0x3F]\n\t output += '=='\n\t } else if (extraBytes === 2) {\n\t tmp = (uint8[len - 2] << 8) + (uint8[len - 1])\n\t output += lookup[tmp >> 10]\n\t output += lookup[(tmp >> 4) & 0x3F]\n\t output += lookup[(tmp << 2) & 0x3F]\n\t output += '='\n\t }\n\t\n\t parts.push(output)\n\t\n\t return parts.join('')\n\t}\n\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar base64 = __webpack_require__(15);\n\t\n\tfunction padding(str) {\n\t var mod = (str.length % 4);\n\t var pad = 4 - mod;\n\t\n\t if (mod === 0) {\n\t return str;\n\t }\n\t\n\t return str + (new Array(1 + pad)).join('=');\n\t}\n\t\n\tfunction byteArrayToString(array) {\n\t var result = \"\";\n\t for (var i = 0; i < array.length; i++) {\n\t result += String.fromCharCode(array[i]);\n\t }\n\t return result;\n\t}\n\t\n\tfunction stringToByteArray(str) {\n\t var arr = new Array(str.length);\n\t for (var a = 0; a < str.length; a++) {\n\t arr[a] = str.charCodeAt(a);\n\t }\n\t return arr;\n\t}\n\t\n\tfunction byteArrayToHex(raw) {\n\t var HEX = '';\n\t\n\t for (var i = 0; i < raw.length; i++) {\n\t var _hex = raw[i].toString(16);\n\t HEX += (_hex.length === 2 ? _hex : '0' + _hex);\n\t }\n\t\n\t return HEX;\n\t}\n\t\n\tfunction encodeString(str) {\n\t return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n\t return String.fromCharCode('0x' + p1);\n\t }))\n\t .replace(/\\+/g, '-') // Convert '+' to '-'\n\t .replace(/\\//g, '_'); // Convert '/' to '_';\n\t}\n\t\n\tfunction decodeToString(str) {\n\t str = padding(str)\n\t .replace(/\\-/g, '+') // Convert '-' to '+'\n\t .replace(/_/g, '/'); // Convert '_' to '/'\n\t\n\t return decodeURIComponent(atob(str).split('').map(function (c) {\n\t return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n\t }).join(''));\n\t}\n\t\n\tfunction decodeToHEX(str) {\n\t return byteArrayToHex(base64.toByteArray(padding(str)));\n\t}\n\t\n\tmodule.exports = {\n\t encodeString: encodeString,\n\t decodeToString: decodeToString,\n\t byteArrayToString: byteArrayToString,\n\t stringToByteArray: stringToByteArray,\n\t padding: padding,\n\t byteArrayToHex: byteArrayToHex,\n\t decodeToHEX: decodeToHEX\n\t};\n\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * Root reference for iframes.\n\t */\n\t\n\tvar root;\n\tif (typeof window !== 'undefined') { // Browser window\n\t root = window;\n\t} else if (typeof self !== 'undefined') { // Web Worker\n\t root = self;\n\t} else { // Other environments\n\t console.warn(\"Using browser-only version of superagent in non-browser environment\");\n\t root = this;\n\t}\n\t\n\tvar Emitter = __webpack_require__(23);\n\tvar RequestBase = __webpack_require__(33);\n\tvar isObject = __webpack_require__(14);\n\tvar isFunction = __webpack_require__(32);\n\tvar ResponseBase = __webpack_require__(34);\n\tvar shouldRetry = __webpack_require__(35);\n\t\n\t/**\n\t * Noop.\n\t */\n\t\n\tfunction noop(){};\n\t\n\t/**\n\t * Expose `request`.\n\t */\n\t\n\tvar request = exports = module.exports = function(method, url) {\n\t // callback\n\t if ('function' == typeof url) {\n\t return new exports.Request('GET', method).end(url);\n\t }\n\t\n\t // url first\n\t if (1 == arguments.length) {\n\t return new exports.Request('GET', method);\n\t }\n\t\n\t return new exports.Request(method, url);\n\t}\n\t\n\texports.Request = Request;\n\t\n\t/**\n\t * Determine XHR.\n\t */\n\t\n\trequest.getXHR = function () {\n\t if (root.XMLHttpRequest\n\t && (!root.location || 'file:' != root.location.protocol\n\t || !root.ActiveXObject)) {\n\t return new XMLHttpRequest;\n\t } else {\n\t try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {}\n\t try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {}\n\t try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {}\n\t try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {}\n\t }\n\t throw Error(\"Browser-only verison of superagent could not find XHR\");\n\t};\n\t\n\t/**\n\t * Removes leading and trailing whitespace, added to support IE.\n\t *\n\t * @param {String} s\n\t * @return {String}\n\t * @api private\n\t */\n\t\n\tvar trim = ''.trim\n\t ? function(s) { return s.trim(); }\n\t : function(s) { return s.replace(/(^\\s*|\\s*$)/g, ''); };\n\t\n\t/**\n\t * Serialize the given `obj`.\n\t *\n\t * @param {Object} obj\n\t * @return {String}\n\t * @api private\n\t */\n\t\n\tfunction serialize(obj) {\n\t if (!isObject(obj)) return obj;\n\t var pairs = [];\n\t for (var key in obj) {\n\t pushEncodedKeyValuePair(pairs, key, obj[key]);\n\t }\n\t return pairs.join('&');\n\t}\n\t\n\t/**\n\t * Helps 'serialize' with serializing arrays.\n\t * Mutates the pairs array.\n\t *\n\t * @param {Array} pairs\n\t * @param {String} key\n\t * @param {Mixed} val\n\t */\n\t\n\tfunction pushEncodedKeyValuePair(pairs, key, val) {\n\t if (val != null) {\n\t if (Array.isArray(val)) {\n\t val.forEach(function(v) {\n\t pushEncodedKeyValuePair(pairs, key, v);\n\t });\n\t } else if (isObject(val)) {\n\t for(var subkey in val) {\n\t pushEncodedKeyValuePair(pairs, key + '[' + subkey + ']', val[subkey]);\n\t }\n\t } else {\n\t pairs.push(encodeURIComponent(key)\n\t + '=' + encodeURIComponent(val));\n\t }\n\t } else if (val === null) {\n\t pairs.push(encodeURIComponent(key));\n\t }\n\t}\n\t\n\t/**\n\t * Expose serialization method.\n\t */\n\t\n\t request.serializeObject = serialize;\n\t\n\t /**\n\t * Parse the given x-www-form-urlencoded `str`.\n\t *\n\t * @param {String} str\n\t * @return {Object}\n\t * @api private\n\t */\n\t\n\tfunction parseString(str) {\n\t var obj = {};\n\t var pairs = str.split('&');\n\t var pair;\n\t var pos;\n\t\n\t for (var i = 0, len = pairs.length; i < len; ++i) {\n\t pair = pairs[i];\n\t pos = pair.indexOf('=');\n\t if (pos == -1) {\n\t obj[decodeURIComponent(pair)] = '';\n\t } else {\n\t obj[decodeURIComponent(pair.slice(0, pos))] =\n\t decodeURIComponent(pair.slice(pos + 1));\n\t }\n\t }\n\t\n\t return obj;\n\t}\n\t\n\t/**\n\t * Expose parser.\n\t */\n\t\n\trequest.parseString = parseString;\n\t\n\t/**\n\t * Default MIME type map.\n\t *\n\t * superagent.types.xml = 'application/xml';\n\t *\n\t */\n\t\n\trequest.types = {\n\t html: 'text/html',\n\t json: 'application/json',\n\t xml: 'application/xml',\n\t urlencoded: 'application/x-www-form-urlencoded',\n\t 'form': 'application/x-www-form-urlencoded',\n\t 'form-data': 'application/x-www-form-urlencoded'\n\t};\n\t\n\t/**\n\t * Default serialization map.\n\t *\n\t * superagent.serialize['application/xml'] = function(obj){\n\t * return 'generated xml here';\n\t * };\n\t *\n\t */\n\t\n\t request.serialize = {\n\t 'application/x-www-form-urlencoded': serialize,\n\t 'application/json': JSON.stringify\n\t };\n\t\n\t /**\n\t * Default parsers.\n\t *\n\t * superagent.parse['application/xml'] = function(str){\n\t * return { object parsed from str };\n\t * };\n\t *\n\t */\n\t\n\trequest.parse = {\n\t 'application/x-www-form-urlencoded': parseString,\n\t 'application/json': JSON.parse\n\t};\n\t\n\t/**\n\t * Parse the given header `str` into\n\t * an object containing the mapped fields.\n\t *\n\t * @param {String} str\n\t * @return {Object}\n\t * @api private\n\t */\n\t\n\tfunction parseHeader(str) {\n\t var lines = str.split(/\\r?\\n/);\n\t var fields = {};\n\t var index;\n\t var line;\n\t var field;\n\t var val;\n\t\n\t lines.pop(); // trailing CRLF\n\t\n\t for (var i = 0, len = lines.length; i < len; ++i) {\n\t line = lines[i];\n\t index = line.indexOf(':');\n\t field = line.slice(0, index).toLowerCase();\n\t val = trim(line.slice(index + 1));\n\t fields[field] = val;\n\t }\n\t\n\t return fields;\n\t}\n\t\n\t/**\n\t * Check if `mime` is json or has +json structured syntax suffix.\n\t *\n\t * @param {String} mime\n\t * @return {Boolean}\n\t * @api private\n\t */\n\t\n\tfunction isJSON(mime) {\n\t return /[\\/+]json\\b/.test(mime);\n\t}\n\t\n\t/**\n\t * Initialize a new `Response` with the given `xhr`.\n\t *\n\t * - set flags (.ok, .error, etc)\n\t * - parse header\n\t *\n\t * Examples:\n\t *\n\t * Aliasing `superagent` as `request` is nice:\n\t *\n\t * request = superagent;\n\t *\n\t * We can use the promise-like API, or pass callbacks:\n\t *\n\t * request.get('/').end(function(res){});\n\t * request.get('/', function(res){});\n\t *\n\t * Sending data can be chained:\n\t *\n\t * request\n\t * .post('/user')\n\t * .send({ name: 'tj' })\n\t * .end(function(res){});\n\t *\n\t * Or passed to `.send()`:\n\t *\n\t * request\n\t * .post('/user')\n\t * .send({ name: 'tj' }, function(res){});\n\t *\n\t * Or passed to `.post()`:\n\t *\n\t * request\n\t * .post('/user', { name: 'tj' })\n\t * .end(function(res){});\n\t *\n\t * Or further reduced to a single call for simple cases:\n\t *\n\t * request\n\t * .post('/user', { name: 'tj' }, function(res){});\n\t *\n\t * @param {XMLHTTPRequest} xhr\n\t * @param {Object} options\n\t * @api private\n\t */\n\t\n\tfunction Response(req) {\n\t this.req = req;\n\t this.xhr = this.req.xhr;\n\t // responseText is accessible only if responseType is '' or 'text' and on older browsers\n\t this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined')\n\t ? this.xhr.responseText\n\t : null;\n\t this.statusText = this.req.xhr.statusText;\n\t var status = this.xhr.status;\n\t // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n\t if (status === 1223) {\n\t status = 204;\n\t }\n\t this._setStatusProperties(status);\n\t this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders());\n\t // getAllResponseHeaders sometimes falsely returns \"\" for CORS requests, but\n\t // getResponseHeader still works. so we get content-type even if getting\n\t // other headers fails.\n\t this.header['content-type'] = this.xhr.getResponseHeader('content-type');\n\t this._setHeaderProperties(this.header);\n\t\n\t if (null === this.text && req._responseType) {\n\t this.body = this.xhr.response;\n\t } else {\n\t this.body = this.req.method != 'HEAD'\n\t ? this._parseBody(this.text ? this.text : this.xhr.response)\n\t : null;\n\t }\n\t}\n\t\n\tResponseBase(Response.prototype);\n\t\n\t/**\n\t * Parse the given body `str`.\n\t *\n\t * Used for auto-parsing of bodies. Parsers\n\t * are defined on the `superagent.parse` object.\n\t *\n\t * @param {String} str\n\t * @return {Mixed}\n\t * @api private\n\t */\n\t\n\tResponse.prototype._parseBody = function(str){\n\t var parse = request.parse[this.type];\n\t if(this.req._parser) {\n\t return this.req._parser(this, str);\n\t }\n\t if (!parse && isJSON(this.type)) {\n\t parse = request.parse['application/json'];\n\t }\n\t return parse && str && (str.length || str instanceof Object)\n\t ? parse(str)\n\t : null;\n\t};\n\t\n\t/**\n\t * Return an `Error` representative of this response.\n\t *\n\t * @return {Error}\n\t * @api public\n\t */\n\t\n\tResponse.prototype.toError = function(){\n\t var req = this.req;\n\t var method = req.method;\n\t var url = req.url;\n\t\n\t var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')';\n\t var err = new Error(msg);\n\t err.status = this.status;\n\t err.method = method;\n\t err.url = url;\n\t\n\t return err;\n\t};\n\t\n\t/**\n\t * Expose `Response`.\n\t */\n\t\n\trequest.Response = Response;\n\t\n\t/**\n\t * Initialize a new `Request` with the given `method` and `url`.\n\t *\n\t * @param {String} method\n\t * @param {String} url\n\t * @api public\n\t */\n\t\n\tfunction Request(method, url) {\n\t var self = this;\n\t this._query = this._query || [];\n\t this.method = method;\n\t this.url = url;\n\t this.header = {}; // preserves header name case\n\t this._header = {}; // coerces header names to lowercase\n\t this.on('end', function(){\n\t var err = null;\n\t var res = null;\n\t\n\t try {\n\t res = new Response(self);\n\t } catch(e) {\n\t err = new Error('Parser is unable to parse the response');\n\t err.parse = true;\n\t err.original = e;\n\t // issue #675: return the raw response if the response parsing fails\n\t if (self.xhr) {\n\t // ie9 doesn't have 'response' property\n\t err.rawResponse = typeof self.xhr.responseType == 'undefined' ? self.xhr.responseText : self.xhr.response;\n\t // issue #876: return the http status code if the response parsing fails\n\t err.status = self.xhr.status ? self.xhr.status : null;\n\t err.statusCode = err.status; // backwards-compat only\n\t } else {\n\t err.rawResponse = null;\n\t err.status = null;\n\t }\n\t\n\t return self.callback(err);\n\t }\n\t\n\t self.emit('response', res);\n\t\n\t var new_err;\n\t try {\n\t if (!self._isResponseOK(res)) {\n\t new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n\t new_err.original = err;\n\t new_err.response = res;\n\t new_err.status = res.status;\n\t }\n\t } catch(e) {\n\t new_err = e; // #985 touching res may cause INVALID_STATE_ERR on old Android\n\t }\n\t\n\t // #1000 don't catch errors from the callback to avoid double calling it\n\t if (new_err) {\n\t self.callback(new_err, res);\n\t } else {\n\t self.callback(null, res);\n\t }\n\t });\n\t}\n\t\n\t/**\n\t * Mixin `Emitter` and `RequestBase`.\n\t */\n\t\n\tEmitter(Request.prototype);\n\tRequestBase(Request.prototype);\n\t\n\t/**\n\t * Set Content-Type to `type`, mapping values from `request.types`.\n\t *\n\t * Examples:\n\t *\n\t * superagent.types.xml = 'application/xml';\n\t *\n\t * request.post('/')\n\t * .type('xml')\n\t * .send(xmlstring)\n\t * .end(callback);\n\t *\n\t * request.post('/')\n\t * .type('application/xml')\n\t * .send(xmlstring)\n\t * .end(callback);\n\t *\n\t * @param {String} type\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.type = function(type){\n\t this.set('Content-Type', request.types[type] || type);\n\t return this;\n\t};\n\t\n\t/**\n\t * Set Accept to `type`, mapping values from `request.types`.\n\t *\n\t * Examples:\n\t *\n\t * superagent.types.json = 'application/json';\n\t *\n\t * request.get('/agent')\n\t * .accept('json')\n\t * .end(callback);\n\t *\n\t * request.get('/agent')\n\t * .accept('application/json')\n\t * .end(callback);\n\t *\n\t * @param {String} accept\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.accept = function(type){\n\t this.set('Accept', request.types[type] || type);\n\t return this;\n\t};\n\t\n\t/**\n\t * Set Authorization field value with `user` and `pass`.\n\t *\n\t * @param {String} user\n\t * @param {String} [pass] optional in case of using 'bearer' as type\n\t * @param {Object} options with 'type' property 'auto', 'basic' or 'bearer' (default 'basic')\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.auth = function(user, pass, options){\n\t if (typeof pass === 'object' && pass !== null) { // pass is optional and can substitute for options\n\t options = pass;\n\t }\n\t if (!options) {\n\t options = {\n\t type: 'function' === typeof btoa ? 'basic' : 'auto',\n\t }\n\t }\n\t\n\t switch (options.type) {\n\t case 'basic':\n\t this.set('Authorization', 'Basic ' + btoa(user + ':' + pass));\n\t break;\n\t\n\t case 'auto':\n\t this.username = user;\n\t this.password = pass;\n\t break;\n\t \n\t case 'bearer': // usage would be .auth(accessToken, { type: 'bearer' })\n\t this.set('Authorization', 'Bearer ' + user);\n\t break; \n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Add query-string `val`.\n\t *\n\t * Examples:\n\t *\n\t * request.get('/shoes')\n\t * .query('size=10')\n\t * .query({ color: 'blue' })\n\t *\n\t * @param {Object|String} val\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.query = function(val){\n\t if ('string' != typeof val) val = serialize(val);\n\t if (val) this._query.push(val);\n\t return this;\n\t};\n\t\n\t/**\n\t * Queue the given `file` as an attachment to the specified `field`,\n\t * with optional `options` (or filename).\n\t *\n\t * ``` js\n\t * request.post('/upload')\n\t * .attach('content', new Blob(['hey!'], { type: \"text/html\"}))\n\t * .end(callback);\n\t * ```\n\t *\n\t * @param {String} field\n\t * @param {Blob|File} file\n\t * @param {String|Object} options\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.attach = function(field, file, options){\n\t if (file) {\n\t if (this._data) {\n\t throw Error(\"superagent can't mix .send() and .attach()\");\n\t }\n\t\n\t this._getFormData().append(field, file, options || file.name);\n\t }\n\t return this;\n\t};\n\t\n\tRequest.prototype._getFormData = function(){\n\t if (!this._formData) {\n\t this._formData = new root.FormData();\n\t }\n\t return this._formData;\n\t};\n\t\n\t/**\n\t * Invoke the callback with `err` and `res`\n\t * and handle arity check.\n\t *\n\t * @param {Error} err\n\t * @param {Response} res\n\t * @api private\n\t */\n\t\n\tRequest.prototype.callback = function(err, res){\n\t // console.log(this._retries, this._maxRetries)\n\t if (this._maxRetries && this._retries++ < this._maxRetries && shouldRetry(err, res)) {\n\t return this._retry();\n\t }\n\t\n\t var fn = this._callback;\n\t this.clearTimeout();\n\t\n\t if (err) {\n\t if (this._maxRetries) err.retries = this._retries - 1;\n\t this.emit('error', err);\n\t }\n\t\n\t fn(err, res);\n\t};\n\t\n\t/**\n\t * Invoke callback with x-domain error.\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype.crossDomainError = function(){\n\t var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n\t err.crossDomain = true;\n\t\n\t err.status = this.status;\n\t err.method = this.method;\n\t err.url = this.url;\n\t\n\t this.callback(err);\n\t};\n\t\n\t// This only warns, because the request is still likely to work\n\tRequest.prototype.buffer = Request.prototype.ca = Request.prototype.agent = function(){\n\t console.warn(\"This is not supported in browser version of superagent\");\n\t return this;\n\t};\n\t\n\t// This throws, because it can't send/receive data as expected\n\tRequest.prototype.pipe = Request.prototype.write = function(){\n\t throw Error(\"Streaming is not supported in browser version of superagent\");\n\t};\n\t\n\t/**\n\t * Compose querystring to append to req.url\n\t *\n\t * @api private\n\t */\n\t\n\tRequest.prototype._appendQueryString = function(){\n\t var query = this._query.join('&');\n\t if (query) {\n\t this.url += (this.url.indexOf('?') >= 0 ? '&' : '?') + query;\n\t }\n\t\n\t if (this._sort) {\n\t var index = this.url.indexOf('?');\n\t if (index >= 0) {\n\t var queryArr = this.url.substring(index + 1).split('&');\n\t if (isFunction(this._sort)) {\n\t queryArr.sort(this._sort);\n\t } else {\n\t queryArr.sort();\n\t }\n\t this.url = this.url.substring(0, index) + '?' + queryArr.join('&');\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Check if `obj` is a host object,\n\t * we don't want to serialize these :)\n\t *\n\t * @param {Object} obj\n\t * @return {Boolean}\n\t * @api private\n\t */\n\tRequest.prototype._isHost = function _isHost(obj) {\n\t // Native objects stringify to [object File], [object Blob], [object FormData], etc.\n\t return obj && 'object' === typeof obj && !Array.isArray(obj) && Object.prototype.toString.call(obj) !== '[object Object]';\n\t}\n\t\n\t/**\n\t * Initiate request, invoking callback `fn(res)`\n\t * with an instanceof `Response`.\n\t *\n\t * @param {Function} fn\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequest.prototype.end = function(fn){\n\t if (this._endCalled) {\n\t console.warn(\"Warning: .end() was called twice. This is not supported in superagent\");\n\t }\n\t this._endCalled = true;\n\t\n\t // store callback\n\t this._callback = fn || noop;\n\t\n\t // querystring\n\t this._appendQueryString();\n\t\n\t return this._end();\n\t};\n\t\n\tRequest.prototype._end = function() {\n\t var self = this;\n\t var xhr = this.xhr = request.getXHR();\n\t var data = this._formData || this._data;\n\t\n\t this._setTimeouts();\n\t\n\t // state change\n\t xhr.onreadystatechange = function(){\n\t var readyState = xhr.readyState;\n\t if (readyState >= 2 && self._responseTimeoutTimer) {\n\t clearTimeout(self._responseTimeoutTimer);\n\t }\n\t if (4 != readyState) {\n\t return;\n\t }\n\t\n\t // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n\t // result in the error \"Could not complete the operation due to error c00c023f\"\n\t var status;\n\t try { status = xhr.status } catch(e) { status = 0; }\n\t\n\t if (!status) {\n\t if (self.timedout || self._aborted) return;\n\t return self.crossDomainError();\n\t }\n\t self.emit('end');\n\t };\n\t\n\t // progress\n\t var handleProgress = function(direction, e) {\n\t if (e.total > 0) {\n\t e.percent = e.loaded / e.total * 100;\n\t }\n\t e.direction = direction;\n\t self.emit('progress', e);\n\t }\n\t if (this.hasListeners('progress')) {\n\t try {\n\t xhr.onprogress = handleProgress.bind(null, 'download');\n\t if (xhr.upload) {\n\t xhr.upload.onprogress = handleProgress.bind(null, 'upload');\n\t }\n\t } catch(e) {\n\t // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n\t // Reported here:\n\t // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n\t }\n\t }\n\t\n\t // initiate request\n\t try {\n\t if (this.username && this.password) {\n\t xhr.open(this.method, this.url, true, this.username, this.password);\n\t } else {\n\t xhr.open(this.method, this.url, true);\n\t }\n\t } catch (err) {\n\t // see #1149\n\t return this.callback(err);\n\t }\n\t\n\t // CORS\n\t if (this._withCredentials) xhr.withCredentials = true;\n\t\n\t // body\n\t if (!this._formData && 'GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) {\n\t // serialize stuff\n\t var contentType = this._header['content-type'];\n\t var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n\t if (!serialize && isJSON(contentType)) {\n\t serialize = request.serialize['application/json'];\n\t }\n\t if (serialize) data = serialize(data);\n\t }\n\t\n\t // set header fields\n\t for (var field in this.header) {\n\t if (null == this.header[field]) continue;\n\t xhr.setRequestHeader(field, this.header[field]);\n\t }\n\t\n\t if (this._responseType) {\n\t xhr.responseType = this._responseType;\n\t }\n\t\n\t // send stuff\n\t this.emit('request', this);\n\t\n\t // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n\t // We need null here if data is undefined\n\t xhr.send(typeof data !== 'undefined' ? data : null);\n\t return this;\n\t};\n\t\n\t/**\n\t * GET `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} [data] or fn\n\t * @param {Function} [fn]\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.get = function(url, data, fn){\n\t var req = request('GET', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.query(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * HEAD `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} [data] or fn\n\t * @param {Function} [fn]\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.head = function(url, data, fn){\n\t var req = request('HEAD', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * OPTIONS query to `url` with optional callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} [data] or fn\n\t * @param {Function} [fn]\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.options = function(url, data, fn){\n\t var req = request('OPTIONS', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * DELETE `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed} [data]\n\t * @param {Function} [fn]\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\tfunction del(url, data, fn){\n\t var req = request('DELETE', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\trequest['del'] = del;\n\trequest['delete'] = del;\n\t\n\t/**\n\t * PATCH `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed} [data]\n\t * @param {Function} [fn]\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.patch = function(url, data, fn){\n\t var req = request('PATCH', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * POST `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed} [data]\n\t * @param {Function} [fn]\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.post = function(url, data, fn){\n\t var req = request('POST', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\t\n\t/**\n\t * PUT `url` with optional `data` and callback `fn(res)`.\n\t *\n\t * @param {String} url\n\t * @param {Mixed|Function} [data] or fn\n\t * @param {Function} [fn]\n\t * @return {Request}\n\t * @api public\n\t */\n\t\n\trequest.put = function(url, data, fn){\n\t var req = request('PUT', url);\n\t if ('function' == typeof data) fn = data, data = null;\n\t if (data) req.send(data);\n\t if (fn) req.end(fn);\n\t return req;\n\t};\n\n\n/***/ },\n/* 18 */\n/***/ function(module, exports) {\n\n\tvar WinChan = (function() {\n\t var RELAY_FRAME_NAME = \"__winchan_relay_frame\";\n\t var CLOSE_CMD = \"die\";\n\t\n\t // a portable addListener implementation\n\t function addListener(w, event, cb) {\n\t if(w.attachEvent) w.attachEvent('on' + event, cb);\n\t else if (w.addEventListener) w.addEventListener(event, cb, false);\n\t }\n\t\n\t // a portable removeListener implementation\n\t function removeListener(w, event, cb) {\n\t if(w.detachEvent) w.detachEvent('on' + event, cb);\n\t else if (w.removeEventListener) w.removeEventListener(event, cb, false);\n\t }\n\t\n\t\n\t // checking for IE8 or above\n\t function isInternetExplorer() {\n\t if (typeof navigator === 'undefined') {\n\t return false;\n\t }\n\t\n\t var rv = -1; // Return value assumes failure.\n\t var ua = navigator.userAgent;\n\t if (navigator.appName === 'Microsoft Internet Explorer') {\n\t var re = new RegExp(\"MSIE ([0-9]{1,}[\\.0-9]{0,})\");\n\t if (re.exec(ua) != null)\n\t rv = parseFloat(RegExp.$1);\n\t }\n\t // IE > 11\n\t else if (ua.indexOf(\"Trident\") > -1) {\n\t var re = new RegExp(\"rv:([0-9]{2,2}[\\.0-9]{0,})\");\n\t if (re.exec(ua) !== null) {\n\t rv = parseFloat(RegExp.$1);\n\t }\n\t }\n\t\n\t return rv >= 8;\n\t }\n\t\n\t // checking Mobile Firefox (Fennec)\n\t function isFennec() {\n\t try {\n\t // We must check for both XUL and Java versions of Fennec. Both have\n\t // distinct UA strings.\n\t var userAgent = navigator.userAgent;\n\t return (userAgent.indexOf('Fennec/') != -1) || // XUL\n\t (userAgent.indexOf('Firefox/') != -1 && userAgent.indexOf('Android') != -1); // Java\n\t } catch(e) {}\n\t return false;\n\t }\n\t\n\t // feature checking to see if this platform is supported at all\n\t function isSupported() {\n\t return (typeof window !== 'undefined' && window.JSON && window.JSON.stringify &&\n\t window.JSON.parse && window.postMessage);\n\t }\n\t\n\t // given a URL, extract the origin. Taken from: https://github.com/firebase/firebase-simple-login/blob/d2cb95b9f812d8488bdbfba51c3a7c153ba1a074/js/src/simple-login/transports/WinChan.js#L25-L30\n\t function extractOrigin(url) {\n\t if (!/^https?:\\/\\//.test(url)) url = window.location.href;\n\t var m = /^(https?:\\/\\/[\\-_a-zA-Z\\.0-9:]+)/.exec(url);\n\t if (m) return m[1];\n\t return url;\n\t }\n\t\n\t // find the relay iframe in the opener\n\t function findRelay() {\n\t var loc = window.location;\n\t var frames = window.opener.frames;\n\t for (var i = frames.length - 1; i >= 0; i--) {\n\t try {\n\t if (frames[i].location.protocol === window.location.protocol &&\n\t frames[i].location.host === window.location.host &&\n\t frames[i].name === RELAY_FRAME_NAME)\n\t {\n\t return frames[i];\n\t }\n\t } catch(e) { }\n\t }\n\t return;\n\t }\n\t\n\t var isIE = isInternetExplorer();\n\t\n\t if (isSupported()) {\n\t /* General flow:\n\t * 0. user clicks\n\t * (IE SPECIFIC) 1. caller adds relay iframe (served from trusted domain) to DOM\n\t * 2. caller opens window (with content from trusted domain)\n\t * 3. window on opening adds a listener to 'message'\n\t * (IE SPECIFIC) 4. window on opening finds iframe\n\t * 5. window checks if iframe is \"loaded\" - has a 'doPost' function yet\n\t * (IE SPECIFIC5) 5a. if iframe.doPost exists, window uses it to send ready event to caller\n\t * (IE SPECIFIC5) 5b. if iframe.doPost doesn't exist, window waits for frame ready\n\t * (IE SPECIFIC5) 5bi. once ready, window calls iframe.doPost to send ready event\n\t * 6. caller upon reciept of 'ready', sends args\n\t */\n\t return {\n\t open: function(opts, cb) {\n\t if (!cb) throw \"missing required callback argument\";\n\t\n\t // test required options\n\t var err;\n\t if (!opts.url) err = \"missing required 'url' parameter\";\n\t if (!opts.relay_url) err = \"missing required 'relay_url' parameter\";\n\t if (err) setTimeout(function() { cb(err); }, 0);\n\t\n\t // supply default options\n\t if (!opts.window_name) opts.window_name = null;\n\t if (!opts.window_features || isFennec()) opts.window_features = undefined;\n\t\n\t // opts.params may be undefined\n\t\n\t var iframe;\n\t\n\t // sanity check, are url and relay_url the same origin?\n\t var origin = opts.origin || extractOrigin(opts.url);\n\t if (origin !== extractOrigin(opts.relay_url)) {\n\t return setTimeout(function() {\n\t cb('invalid arguments: origin of url and relay_url must match');\n\t }, 0);\n\t }\n\t\n\t var messageTarget;\n\t\n\t if (isIE) {\n\t // first we need to add a \"relay\" iframe to the document that's served\n\t // from the target domain. We can postmessage into a iframe, but not a\n\t // window\n\t iframe = document.createElement(\"iframe\");\n\t // iframe.setAttribute('name', framename);\n\t iframe.setAttribute('src', opts.relay_url);\n\t iframe.style.display = \"none\";\n\t iframe.setAttribute('name', RELAY_FRAME_NAME);\n\t document.body.appendChild(iframe);\n\t messageTarget = iframe.contentWindow;\n\t }\n\t\n\t var w = opts.popup || window.open(opts.url, opts.window_name, opts.window_features);\n\t if (opts.popup) {\n\t w.location.href = opts.url;\n\t }\n\t\n\t if (!messageTarget) messageTarget = w;\n\t\n\t // lets listen in case the window blows up before telling us\n\t var closeInterval = setInterval(function() {\n\t if (w && w.closed) {\n\t cleanup();\n\t if (cb) {\n\t cb('User closed the popup window');\n\t cb = null;\n\t }\n\t }\n\t }, 500);\n\t\n\t var req = JSON.stringify({a: 'request', d: opts.params});\n\t\n\t // cleanup on unload\n\t function cleanup() {\n\t if (iframe) document.body.removeChild(iframe);\n\t iframe = undefined;\n\t if (closeInterval) closeInterval = clearInterval(closeInterval);\n\t removeListener(window, 'message', onMessage);\n\t removeListener(window, 'unload', cleanup);\n\t if (w) {\n\t try {\n\t w.close();\n\t } catch (securityViolation) {\n\t // This happens in Opera 12 sometimes\n\t // see https://github.com/mozilla/browserid/issues/1844\n\t messageTarget.postMessage(CLOSE_CMD, origin);\n\t }\n\t }\n\t w = messageTarget = undefined;\n\t }\n\t\n\t addListener(window, 'unload', cleanup);\n\t\n\t function onMessage(e) {\n\t if (e.origin !== origin) { return; }\n\t try {\n\t var d = JSON.parse(e.data);\n\t } catch(err) {\n\t if (cb) {\n\t cb(err);\n\t } else {\n\t throw err;\n\t }\n\t }\n\t\n\t if (d.a === 'ready') {\n\t messageTarget.postMessage(req, origin);\n\t } else if (d.a === 'error') {\n\t cleanup();\n\t if (cb) {\n\t cb(d.d);\n\t cb = null;\n\t }\n\t } else if (d.a === 'response') {\n\t cleanup();\n\t if (cb) {\n\t cb(null, d.d);\n\t cb = null;\n\t }\n\t }\n\t }\n\t\n\t addListener(window, 'message', onMessage);\n\t\n\t return {\n\t close: cleanup,\n\t focus: function() {\n\t if (w) {\n\t try {\n\t w.focus();\n\t } catch (e) {\n\t // IE7 blows up here, do nothing\n\t }\n\t }\n\t }\n\t };\n\t },\n\t onOpen: function(cb) {\n\t var o = \"*\";\n\t var msgTarget = isIE ? findRelay() : window.opener;\n\t if (!msgTarget) throw \"can't find relay frame\";\n\t function doPost(msg) {\n\t msg = JSON.stringify(msg);\n\t if (isIE) msgTarget.doPost(msg, o);\n\t else msgTarget.postMessage(msg, o);\n\t }\n\t\n\t function onMessage(e) {\n\t // only one message gets through, but let's make sure it's actually\n\t // the message we're looking for (other code may be using\n\t // postmessage) - we do this by ensuring the payload can\n\t // be parsed, and it's got an 'a' (action) value of 'request'.\n\t var d;\n\t try {\n\t d = JSON.parse(e.data);\n\t } catch(err) { }\n\t if (!d || d.a !== 'request') return;\n\t removeListener(window, 'message', onMessage);\n\t o = e.origin;\n\t if (cb) {\n\t // this setTimeout is critically important for IE8 -\n\t // in ie8 sometimes addListener for 'message' can synchronously\n\t // cause your callback to be invoked. awesome.\n\t setTimeout(function() {\n\t cb(o, d.d, function(r) {\n\t cb = undefined;\n\t doPost({a: 'response', d: r});\n\t });\n\t }, 0);\n\t }\n\t }\n\t\n\t function onDie(e) {\n\t if (e.data === CLOSE_CMD) {\n\t try { window.close(); } catch (o_O) {}\n\t }\n\t }\n\t addListener(isIE ? msgTarget : window, 'message', onMessage);\n\t addListener(isIE ? msgTarget : window, 'message', onDie);\n\t\n\t // we cannot post to our parent that we're ready before the iframe\n\t // is loaded. (IE specific possible failure)\n\t try {\n\t doPost({a: \"ready\"});\n\t } catch(e) {\n\t // this code should never be exectued outside IE\n\t addListener(msgTarget, 'load', function(e) {\n\t doPost({a: \"ready\"});\n\t });\n\t }\n\t\n\t // if window is unloaded and the client hasn't called cb, it's an error\n\t var onUnload = function() {\n\t try {\n\t // IE8 doesn't like this...\n\t removeListener(isIE ? msgTarget : window, 'message', onDie);\n\t } catch (ohWell) { }\n\t if (cb) doPost({ a: 'error', d: 'client closed window' });\n\t cb = undefined;\n\t // explicitly close the window, in case the client is trying to reload or nav\n\t try { window.close(); } catch (e) { }\n\t };\n\t addListener(window, 'unload', onUnload);\n\t return {\n\t detach: function() {\n\t removeListener(window, 'unload', onUnload);\n\t }\n\t };\n\t }\n\t };\n\t } else {\n\t return {\n\t open: function(url, winopts, arg, cb) {\n\t setTimeout(function() { cb(\"unsupported browser\"); }, 0);\n\t },\n\t onOpen: function(cb) {\n\t setTimeout(function() { cb(\"unsupported browser\"); }, 0);\n\t }\n\t };\n\t }\n\t})();\n\t\n\tif (typeof module !== 'undefined' && module.exports) {\n\t module.exports = WinChan;\n\t}\n\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\t\n\tvar RequestBuilder = __webpack_require__(10);\n\tvar qs = __webpack_require__(5);\n\tvar objectHelper = __webpack_require__(2);\n\tvar assert = __webpack_require__(4);\n\tvar responseHandler = __webpack_require__(6);\n\tvar parametersWhitelist = __webpack_require__(45);\n\tvar Warn = __webpack_require__(11);\n\t\n\tvar PasswordlessAuthentication = __webpack_require__(41);\n\tvar DBConnection = __webpack_require__(40);\n\t\n\t/**\n\t * Creates a new Auth0 Authentication API client\n\t * @constructor\n\t * @param {Object} options\n\t * @param {String} options.domain your Auth0 domain\n\t * @param {String} options.clientID your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n\t * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} [options.responseType] type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n\t * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @see {@link https://auth0.com/docs/api/authentication}\n\t */\n\tfunction Authentication(options) {\n\t /* eslint-disable */\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t domain: { type: 'string', message: 'domain option is required' },\n\t clientID: { type: 'string', message: 'clientID option is required' },\n\t responseType: { optional: true, type: 'string', message: 'responseType is not valid' },\n\t responseMode: { optional: true, type: 'string', message: 'responseMode is not valid' },\n\t redirectUri: { optional: true, type: 'string', message: 'redirectUri is not valid' },\n\t scope: { optional: true, type: 'string', message: 'scope is not valid' },\n\t audience: { optional: true, type: 'string', message: 'audience is not valid' },\n\t _disableDeprecationWarnings: {\n\t optional: true,\n\t type: 'boolean',\n\t message: '_disableDeprecationWarnings option is not valid'\n\t },\n\t _sendTelemetry: {\n\t optional: true,\n\t type: 'boolean',\n\t message: '_sendTelemetry option is not valid'\n\t },\n\t _telemetryInfo: {\n\t optional: true,\n\t type: 'object',\n\t message: '_telemetryInfo option is not valid'\n\t }\n\t }\n\t );\n\t /* eslint-enable */\n\t\n\t this.baseOptions = options;\n\t\n\t this.baseOptions._sendTelemetry = this.baseOptions._sendTelemetry === false\n\t ? this.baseOptions._sendTelemetry\n\t : true;\n\t\n\t this.baseOptions.rootUrl = 'https://' + this.baseOptions.domain;\n\t\n\t this.request = new RequestBuilder(this.baseOptions);\n\t\n\t this.passwordless = new PasswordlessAuthentication(this.request, this.baseOptions);\n\t this.dbConnection = new DBConnection(this.request, this.baseOptions);\n\t\n\t this.warn = new Warn({\n\t disableWarnings: !!options._disableDeprecationWarnings\n\t });\n\t}\n\t\n\t/**\n\t * Builds and returns the `/authorize` url in order to initialize a new authN/authZ transaction\n\t *\n\t * @method buildAuthorizeUrl\n\t * @param {Object} options\n\t * @param {String} [options.domain] your Auth0 domain\n\t * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n\t * @param {String} options.redirectUri url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} options.responseType type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n\t * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n\t * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n\t * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n\t * @see {@link https://auth0.com/docs/api/authentication#social}\n\t */\n\tAuthentication.prototype.buildAuthorizeUrl = function(options) {\n\t var params;\n\t var qString;\n\t\n\t assert.check(options, { type: 'object', message: 'options parameter is not valid' });\n\t\n\t params = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'responseType',\n\t 'responseMode',\n\t 'redirectUri',\n\t 'scope',\n\t 'audience'\n\t ])\n\t .with(options);\n\t\n\t /* eslint-disable */\n\t assert.check(\n\t params,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t clientID: { type: 'string', message: 'clientID option is required' },\n\t redirectUri: { optional: true, type: 'string', message: 'redirectUri option is required' },\n\t responseType: { type: 'string', message: 'responseType option is required' },\n\t nonce: {\n\t type: 'string',\n\t message: 'nonce option is required',\n\t condition: function(o) {\n\t return o.responseType.indexOf('code') === -1 && o.responseType.indexOf('id_token') !== -1;\n\t }\n\t },\n\t scope: { optional: true, type: 'string', message: 'scope option is required' },\n\t audience: { optional: true, type: 'string', message: 'audience option is required' }\n\t }\n\t );\n\t /* eslint-enable */\n\t\n\t // eslint-disable-next-line\n\t if (this.baseOptions._sendTelemetry) {\n\t params.auth0Client = this.request.getTelemetryData();\n\t }\n\t\n\t if (params.connection_scope && assert.isArray(params.connection_scope)) {\n\t params.connection_scope = params.connection_scope.join(',');\n\t }\n\t\n\t params = objectHelper.toSnakeCase(params, ['auth0Client']);\n\t params = parametersWhitelist.oauthAuthorizeParams(this.warn, params);\n\t\n\t qString = qs.stringify(params);\n\t\n\t return urljoin(this.baseOptions.rootUrl, 'authorize', '?' + qString);\n\t};\n\t\n\t/**\n\t * Builds and returns the Logout url in order to initialize a new authN/authZ transaction\n\t *\n\t * If you want to navigate the user to a specific URL after the logout, set that URL at the returnTo parameter. The URL should be included in any the appropriate Allowed Logout URLs list:\n\t *\n\t * - If the client_id parameter is included, the returnTo URL must be listed in the Allowed Logout URLs set at the client level (see Setting Allowed Logout URLs at the App Level).\n\t * - If the client_id parameter is NOT included, the returnTo URL must be listed in the Allowed Logout URLs set at the account level (see Setting Allowed Logout URLs at the Account Level).\n\t * @method buildLogoutUrl\n\t * @param {Object} options\n\t * @param {String} [options.clientID] identifier of your client\n\t * @param {String} [options.returnTo] URL to be redirected after the logout\n\t * @param {Boolean} [options.federated] tells Auth0 if it should logout the user also from the IdP.\n\t * @see {@link https://auth0.com/docs/api/authentication#logout}\n\t */\n\tAuthentication.prototype.buildLogoutUrl = function(options) {\n\t var params;\n\t var qString;\n\t\n\t assert.check(options, {\n\t optional: true,\n\t type: 'object',\n\t message: 'options parameter is not valid'\n\t });\n\t\n\t params = objectHelper.merge(this.baseOptions, ['clientID']).with(options || {});\n\t\n\t // eslint-disable-next-line\n\t if (this.baseOptions._sendTelemetry) {\n\t params.auth0Client = this.request.getTelemetryData();\n\t }\n\t\n\t params = objectHelper.toSnakeCase(params, ['auth0Client', 'returnTo']);\n\t\n\t qString = qs.stringify(params);\n\t\n\t return urljoin(this.baseOptions.rootUrl, 'v2', 'logout', '?' + qString);\n\t};\n\t\n\t/**\n\t * @callback authorizeCallback\n\t * @param {Error} [err] error returned by Auth0 with the reason of the Auth failure\n\t * @param {Object} [result] result of the Auth request\n\t * @param {String} [result.accessToken] token that allows access to the specified resource server (identified by the audience parameter or by default Auth0's /userinfo endpoint)\n\t * @param {Number} [result.expiresIn] number of seconds until the access token expires\n\t * @param {String} [result.idToken] token that identifies the user\n\t * @param {String} [result.refreshToken] token that can be used to get new access tokens from Auth0. Note that not all clients can request them or the resource server might not allow them.\n\t */\n\t\n\t/**\n\t * @callback tokenCallback\n\t * @param {Error} [err] error returned by Auth0 with the reason of the Auth failure\n\t * @param {Object} [result] result of the Auth request\n\t * @param {String} result.accessToken token that allows access to the specified resource server (identified by the audience parameter or by default Auth0's /userinfo endpoint)\n\t * @param {Number} result.expiresIn number of seconds until the access token expires\n\t * @param {String} [result.idToken] token that identifies the user\n\t * @param {String} [result.refreshToken] token that can be used to get new access tokens from Auth0. Note that not all clients can request them or the resource server might not allow them.\n\t */\n\t\n\t/**\n\t * Makes a call to the `oauth/token` endpoint with `password` grant type to login to the default directory.\n\t *\n\t * @method loginWithDefaultDirectory\n\t * @param {Object} options\n\t * @param {String} options.username email or username of the user that will perform Auth\n\t * @param {String} options.password the password of the user that will perform Auth\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @param {tokenCallback} cb function called with the result of the request\n\t * @see {@link https://auth0.com/docs/api-auth/grant/password}\n\t */\n\tAuthentication.prototype.loginWithDefaultDirectory = function(options, cb) {\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t username: { type: 'string', message: 'username option is required' },\n\t password: { type: 'string', message: 'password option is required' },\n\t scope: { optional: true, type: 'string', message: 'scope option is required' },\n\t audience: { optional: true, type: 'string', message: 'audience option is required' }\n\t }\n\t );\n\t\n\t options.grantType = 'password';\n\t\n\t return this.oauthToken(options, cb);\n\t};\n\t\n\t/**\n\t * Makes a call to the `oauth/token` endpoint with `password-realm` grant type\n\t *\n\t * @method login\n\t * @param {Object} options\n\t * @param {String} options.username email or username of the user that will perform Auth\n\t * @param {String} options.password the password of the user that will perform Auth\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @param {Object} options.realm the HRD domain or the connection name where the user belongs to. e.g. `Username-Password-Authentication`\n\t * @param {tokenCallback} cb function called with the result of the request\n\t * @see {@link https://auth0.com/docs/api-auth/grant/password}\n\t */\n\tAuthentication.prototype.login = function(options, cb) {\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t username: { type: 'string', message: 'username option is required' },\n\t password: { type: 'string', message: 'password option is required' },\n\t realm: { type: 'string', message: 'realm option is required' },\n\t scope: { optional: true, type: 'string', message: 'scope option is required' },\n\t audience: { optional: true, type: 'string', message: 'audience option is required' }\n\t }\n\t );\n\t\n\t options.grantType = 'http://auth0.com/oauth/grant-type/password-realm';\n\t\n\t return this.oauthToken(options, cb);\n\t};\n\t\n\t/**\n\t * Makes a call to the `oauth/token` endpoint\n\t *\n\t * @method oauthToken\n\t * @private\n\t */\n\tAuthentication.prototype.oauthToken = function(options, cb) {\n\t var url;\n\t var body;\n\t\n\t assert.check(options, { type: 'object', message: 'options parameter is not valid' });\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'oauth', 'token');\n\t\n\t body = objectHelper.merge(this.baseOptions, ['clientID', 'scope', 'audience']).with(options);\n\t\n\t assert.check(\n\t body,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t clientID: { type: 'string', message: 'clientID option is required' },\n\t grantType: { type: 'string', message: 'grantType option is required' },\n\t scope: { optional: true, type: 'string', message: 'scope option is required' },\n\t audience: { optional: true, type: 'string', message: 'audience option is required' }\n\t }\n\t );\n\t\n\t body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\t body = parametersWhitelist.oauthTokenParams(this.warn, body);\n\t\n\t body.grant_type = body.grant_type;\n\t\n\t return this.request.post(url).send(body).end(responseHandler(cb));\n\t};\n\t\n\t/**\n\t * Performs authentication calling `/oauth/ro` endpoint with username\n\t * and password for a given connection name.\n\t *\n\t * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n\t * you should use {@link login} or {@link loginWithDefaultDirectory}.\n\t *\n\t * @method loginWithResourceOwner\n\t * @param {Object} options\n\t * @param {String} options.username email or username of the user that will perform Auth\n\t * @param {String} options.password the password of the user that will perform Auth\n\t * @param {Object} options.connection the connection name where the user belongs to. e.g. `Username-Password-Authentication`\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.device] name of the device/browser where the Auth was requested\n\t * @param {tokenCallback} cb function called with the result of the request\n\t */\n\tAuthentication.prototype.loginWithResourceOwner = function(options, cb) {\n\t var url;\n\t var body;\n\t\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t username: { type: 'string', message: 'username option is required' },\n\t password: { type: 'string', message: 'password option is required' },\n\t connection: { type: 'string', message: 'connection option is required' },\n\t scope: { optional: true, type: 'string', message: 'scope option is required' }\n\t }\n\t );\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'oauth', 'ro');\n\t\n\t body = objectHelper\n\t .merge(this.baseOptions, ['clientID', 'scope'])\n\t .with(options, ['username', 'password', 'scope', 'connection', 'device']);\n\t\n\t body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\t\n\t body.grant_type = body.grant_type || 'password';\n\t\n\t return this.request.post(url).send(body).end(responseHandler(cb));\n\t};\n\t\n\t/**\n\t * Makes a call to the `/ssodata` endpoint.\n\t * We recommend to avoid using this method and rely on your tenant hosted login page and using prompt=none via {@link renewAuth} method.\n\t *\n\t * @method getSSOData\n\t * @param {Boolean} withActiveDirectories tells Auth0 to return AD data\n\t * @param {Function} cb\n\t */\n\tAuthentication.prototype.getSSOData = function(withActiveDirectories, cb) {\n\t var url;\n\t var params = '';\n\t\n\t if (typeof withActiveDirectories === 'function') {\n\t cb = withActiveDirectories;\n\t withActiveDirectories = false;\n\t }\n\t\n\t assert.check(withActiveDirectories, {\n\t type: 'boolean',\n\t message: 'withActiveDirectories parameter is not valid'\n\t });\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t if (withActiveDirectories) {\n\t params =\n\t '?' +\n\t qs.stringify({\n\t ldaps: 1,\n\t client_id: this.baseOptions.clientID\n\t });\n\t }\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'user', 'ssodata', params);\n\t\n\t return this.request.get(url, { noHeaders: true }).withCredentials().end(responseHandler(cb));\n\t};\n\t\n\t/**\n\t * @callback userInfoCallback\n\t * @param {Error} [err] error returned by Auth0\n\t * @param {Object} [userInfo] user information\n\t */\n\t\n\t/**\n\t * Makes a call to the `/userinfo` endpoint and returns the user profile\n\t *\n\t * @method userInfo\n\t * @param {String} accessToken token issued to a user after Auth\n\t * @param {userInfoCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#get-user-info}\n\t */\n\tAuthentication.prototype.userInfo = function(accessToken, cb) {\n\t var url;\n\t\n\t assert.check(accessToken, { type: 'string', message: 'accessToken parameter is not valid' });\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'userinfo');\n\t\n\t return this.request\n\t .get(url)\n\t .set('Authorization', 'Bearer ' + accessToken)\n\t .end(responseHandler(cb, { ignoreCasing: true }));\n\t};\n\t\n\t/**\n\t * @callback delegationCallback\n\t * @param {Error} [err] error returned by Auth0 with the reason why the delegation failed\n\t * @param {Object} [result] result of the delegation request. The payload depends on what ai type was used\n\t */\n\t\n\t/**\n\t * Makes a call to the `/delegation` endpoint with either an `id_token` or `refresh_token`\n\t *\n\t * @method delegation\n\t * @param {Object} options\n\t * @param {String} [options.clientID] client identifier\n\t * @param {String} options.grantType grant type used for delegation. The only valid value is `urn:ietf:params:oauth:grant-type:jwt-bearer`\n\t * @param {String} [options.idToken] valid token of the user issued after Auth. If no `refresh_token` is provided this parameter is required\n\t * @param {String} [options.refreshToken] valid refresh token of the user issued after Auth. If no `id_token` is provided this parameter is required\n\t * @param {String} [options.target] the target client id of the delegation\n\t * @param {String} [options.scope] either `openid` or `openid profile email`\n\t * @param {String} [options.apiType] the api to be called\n\t * @param {delegationCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#delegation}\n\t */\n\tAuthentication.prototype.delegation = function(options, cb) {\n\t var url;\n\t var body;\n\t\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t grant_type: { type: 'string', message: 'grant_type option is required' }\n\t }\n\t );\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'delegation');\n\t\n\t body = objectHelper.merge(this.baseOptions, ['clientID']).with(options);\n\t\n\t body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\t\n\t return this.request.post(url).send(body).end(responseHandler(cb));\n\t};\n\t\n\t/**\n\t * Fetches the user country based on the ip.\n\t *\n\t * @method getUserCountry\n\t * @private\n\t * @param {Function} cb\n\t */\n\tAuthentication.prototype.getUserCountry = function(cb) {\n\t var url;\n\t\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'user', 'geoloc', 'country');\n\t\n\t return this.request.get(url).end(responseHandler(cb));\n\t};\n\t\n\tmodule.exports = Authentication;\n\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar base64 = __webpack_require__(15);\n\t\n\tfunction padding(str) {\n\t var mod = str.length % 4;\n\t var pad = 4 - mod;\n\t\n\t if (mod === 0) {\n\t return str;\n\t }\n\t\n\t return str + new Array(1 + pad).join('=');\n\t}\n\t\n\tfunction stringToByteArray(str) {\n\t var arr = new Array(str.length);\n\t for (var a = 0; a < str.length; a++) {\n\t arr[a] = str.charCodeAt(a);\n\t }\n\t return arr;\n\t}\n\t\n\tfunction byteArrayToString(array) {\n\t var result = '';\n\t for (var i = 0; i < array.length; i++) {\n\t result += String.fromCharCode(array[i]);\n\t }\n\t return result;\n\t}\n\t\n\tfunction encode(str) {\n\t return base64\n\t .fromByteArray(stringToByteArray(str))\n\t .replace(/\\+/g, '-') // Convert '+' to '-'\n\t .replace(/\\//g, '_'); // Convert '/' to '_'\n\t}\n\t\n\tfunction decode(str) {\n\t str = padding(str)\n\t .replace(/-/g, '+') // Convert '-' to '+'\n\t .replace(/_/g, '/'); // Convert '_' to '/'\n\t\n\t return byteArrayToString(base64.toByteArray(str));\n\t}\n\t\n\tmodule.exports = {\n\t encode: encode,\n\t decode: decode\n\t};\n\n\n/***/ },\n/* 21 */\n/***/ function(module, exports) {\n\n\tfunction buildResponse(error, description) {\n\t return {\n\t error: error,\n\t errorDescription: description\n\t };\n\t}\n\t\n\tfunction invalidJwt(description) {\n\t return buildResponse('invalid_token', description);\n\t}\n\t\n\tmodule.exports = {\n\t buildResponse: buildResponse,\n\t invalidJwt: invalidJwt\n\t};\n\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar random = __webpack_require__(48);\n\tvar storage = __webpack_require__(49);\n\t\n\tvar DEFAULT_NAMESPACE = 'com.auth0.auth.';\n\t\n\tfunction TransactionManager(options) {\n\t options = options || {};\n\t this.namespace = options.namespace || DEFAULT_NAMESPACE;\n\t this.keyLength = options.keyLength || 32;\n\t}\n\t\n\tTransactionManager.prototype.process = function(options) {\n\t var transaction;\n\t\n\t if (options.responseType.indexOf('code') !== -1) {\n\t return options;\n\t }\n\t\n\t if (options.responseType.indexOf('id_token') !== -1 && !!options.nonce) {\n\t return options;\n\t }\n\t\n\t transaction = this.generateTransaction(options.appState, options.state, options.nonce);\n\t\n\t options.state = transaction.state;\n\t\n\t if (options.responseType.indexOf('id_token') !== -1) {\n\t options.nonce = transaction.nonce;\n\t }\n\t\n\t return options;\n\t};\n\t\n\tTransactionManager.prototype.generateTransaction = function(appState, state, nonce) {\n\t var transaction = state || random.randomString(this.keyLength);\n\t nonce = nonce || random.randomString(this.keyLength);\n\t\n\t storage.setItem(this.namespace + transaction, {\n\t nonce: nonce,\n\t appState: appState\n\t });\n\t\n\t return {\n\t state: transaction,\n\t nonce: nonce\n\t };\n\t};\n\t\n\tTransactionManager.prototype.getStoredTransaction = function(transaction) {\n\t var transactionData;\n\t\n\t transactionData = storage.getItem(this.namespace + transaction);\n\t storage.removeItem(this.namespace + transaction);\n\t return transactionData;\n\t};\n\t\n\tmodule.exports = TransactionManager;\n\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\r\n\t/**\r\n\t * Expose `Emitter`.\r\n\t */\r\n\t\r\n\tif (true) {\r\n\t module.exports = Emitter;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Initialize a new `Emitter`.\r\n\t *\r\n\t * @api public\r\n\t */\r\n\t\r\n\tfunction Emitter(obj) {\r\n\t if (obj) return mixin(obj);\r\n\t};\r\n\t\r\n\t/**\r\n\t * Mixin the emitter properties.\r\n\t *\r\n\t * @param {Object} obj\r\n\t * @return {Object}\r\n\t * @api private\r\n\t */\r\n\t\r\n\tfunction mixin(obj) {\r\n\t for (var key in Emitter.prototype) {\r\n\t obj[key] = Emitter.prototype[key];\r\n\t }\r\n\t return obj;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Listen on the given `event` with `fn`.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\t\r\n\tEmitter.prototype.on =\r\n\tEmitter.prototype.addEventListener = function(event, fn){\r\n\t this._callbacks = this._callbacks || {};\r\n\t (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n\t .push(fn);\r\n\t return this;\r\n\t};\r\n\t\r\n\t/**\r\n\t * Adds an `event` listener that will be invoked a single\r\n\t * time then automatically removed.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\t\r\n\tEmitter.prototype.once = function(event, fn){\r\n\t function on() {\r\n\t this.off(event, on);\r\n\t fn.apply(this, arguments);\r\n\t }\r\n\t\r\n\t on.fn = fn;\r\n\t this.on(event, on);\r\n\t return this;\r\n\t};\r\n\t\r\n\t/**\r\n\t * Remove the given callback for `event` or all\r\n\t * registered callbacks.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\t\r\n\tEmitter.prototype.off =\r\n\tEmitter.prototype.removeListener =\r\n\tEmitter.prototype.removeAllListeners =\r\n\tEmitter.prototype.removeEventListener = function(event, fn){\r\n\t this._callbacks = this._callbacks || {};\r\n\t\r\n\t // all\r\n\t if (0 == arguments.length) {\r\n\t this._callbacks = {};\r\n\t return this;\r\n\t }\r\n\t\r\n\t // specific event\r\n\t var callbacks = this._callbacks['$' + event];\r\n\t if (!callbacks) return this;\r\n\t\r\n\t // remove all handlers\r\n\t if (1 == arguments.length) {\r\n\t delete this._callbacks['$' + event];\r\n\t return this;\r\n\t }\r\n\t\r\n\t // remove specific handler\r\n\t var cb;\r\n\t for (var i = 0; i < callbacks.length; i++) {\r\n\t cb = callbacks[i];\r\n\t if (cb === fn || cb.fn === fn) {\r\n\t callbacks.splice(i, 1);\r\n\t break;\r\n\t }\r\n\t }\r\n\t return this;\r\n\t};\r\n\t\r\n\t/**\r\n\t * Emit `event` with the given args.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Mixed} ...\r\n\t * @return {Emitter}\r\n\t */\r\n\t\r\n\tEmitter.prototype.emit = function(event){\r\n\t this._callbacks = this._callbacks || {};\r\n\t var args = [].slice.call(arguments, 1)\r\n\t , callbacks = this._callbacks['$' + event];\r\n\t\r\n\t if (callbacks) {\r\n\t callbacks = callbacks.slice(0);\r\n\t for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n\t callbacks[i].apply(this, args);\r\n\t }\r\n\t }\r\n\t\r\n\t return this;\r\n\t};\r\n\t\r\n\t/**\r\n\t * Return array of callbacks for `event`.\r\n\t *\r\n\t * @param {String} event\r\n\t * @return {Array}\r\n\t * @api public\r\n\t */\r\n\t\r\n\tEmitter.prototype.listeners = function(event){\r\n\t this._callbacks = this._callbacks || {};\r\n\t return this._callbacks['$' + event] || [];\r\n\t};\r\n\t\r\n\t/**\r\n\t * Check if this emitter has `event` handlers.\r\n\t *\r\n\t * @param {String} event\r\n\t * @return {Boolean}\r\n\t * @api public\r\n\t */\r\n\t\r\n\tEmitter.prototype.hasListeners = function(event){\r\n\t return !! this.listeners(event).length;\r\n\t};\r\n\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t;(function (root, factory) {\n\t\tif (true) {\n\t\t\t// CommonJS\n\t\t\tmodule.exports = exports = factory();\n\t\t}\n\t\telse if (typeof define === \"function\" && define.amd) {\n\t\t\t// AMD\n\t\t\tdefine([], factory);\n\t\t}\n\t\telse {\n\t\t\t// Global (browser)\n\t\t\troot.CryptoJS = factory();\n\t\t}\n\t}(this, function () {\n\t\n\t\t/**\n\t\t * CryptoJS core components.\n\t\t */\n\t\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\t\t /*\n\t\t * Local polyfil of Object.create\n\t\t */\n\t\t var create = Object.create || (function () {\n\t\t function F() {};\n\t\n\t\t return function (obj) {\n\t\t var subtype;\n\t\n\t\t F.prototype = obj;\n\t\n\t\t subtype = new F();\n\t\n\t\t F.prototype = null;\n\t\n\t\t return subtype;\n\t\t };\n\t\t }())\n\t\n\t\t /**\n\t\t * CryptoJS namespace.\n\t\t */\n\t\t var C = {};\n\t\n\t\t /**\n\t\t * Library namespace.\n\t\t */\n\t\t var C_lib = C.lib = {};\n\t\n\t\t /**\n\t\t * Base object for prototypal inheritance.\n\t\t */\n\t\t var Base = C_lib.Base = (function () {\n\t\n\t\n\t\t return {\n\t\t /**\n\t\t * Creates a new object that inherits from this object.\n\t\t *\n\t\t * @param {Object} overrides Properties to copy into the new object.\n\t\t *\n\t\t * @return {Object} The new object.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var MyType = CryptoJS.lib.Base.extend({\n\t\t * field: 'value',\n\t\t *\n\t\t * method: function () {\n\t\t * }\n\t\t * });\n\t\t */\n\t\t extend: function (overrides) {\n\t\t // Spawn\n\t\t var subtype = create(this);\n\t\n\t\t // Augment\n\t\t if (overrides) {\n\t\t subtype.mixIn(overrides);\n\t\t }\n\t\n\t\t // Create default initializer\n\t\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t\t subtype.init = function () {\n\t\t subtype.$super.init.apply(this, arguments);\n\t\t };\n\t\t }\n\t\n\t\t // Initializer's prototype is the subtype object\n\t\t subtype.init.prototype = subtype;\n\t\n\t\t // Reference supertype\n\t\t subtype.$super = this;\n\t\n\t\t return subtype;\n\t\t },\n\t\n\t\t /**\n\t\t * Extends this object and runs the init method.\n\t\t * Arguments to create() will be passed to init().\n\t\t *\n\t\t * @return {Object} The new object.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var instance = MyType.create();\n\t\t */\n\t\t create: function () {\n\t\t var instance = this.extend();\n\t\t instance.init.apply(instance, arguments);\n\t\n\t\t return instance;\n\t\t },\n\t\n\t\t /**\n\t\t * Initializes a newly created object.\n\t\t * Override this method to add some logic when your objects are created.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var MyType = CryptoJS.lib.Base.extend({\n\t\t * init: function () {\n\t\t * // ...\n\t\t * }\n\t\t * });\n\t\t */\n\t\t init: function () {\n\t\t },\n\t\n\t\t /**\n\t\t * Copies properties into this object.\n\t\t *\n\t\t * @param {Object} properties The properties to mix in.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * MyType.mixIn({\n\t\t * field: 'value'\n\t\t * });\n\t\t */\n\t\t mixIn: function (properties) {\n\t\t for (var propertyName in properties) {\n\t\t if (properties.hasOwnProperty(propertyName)) {\n\t\t this[propertyName] = properties[propertyName];\n\t\t }\n\t\t }\n\t\n\t\t // IE won't copy toString using the loop above\n\t\t if (properties.hasOwnProperty('toString')) {\n\t\t this.toString = properties.toString;\n\t\t }\n\t\t },\n\t\n\t\t /**\n\t\t * Creates a copy of this object.\n\t\t *\n\t\t * @return {Object} The clone.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var clone = instance.clone();\n\t\t */\n\t\t clone: function () {\n\t\t return this.init.prototype.extend(this);\n\t\t }\n\t\t };\n\t\t }());\n\t\n\t\t /**\n\t\t * An array of 32-bit words.\n\t\t *\n\t\t * @property {Array} words The array of 32-bit words.\n\t\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t\t */\n\t\t var WordArray = C_lib.WordArray = Base.extend({\n\t\t /**\n\t\t * Initializes a newly created word array.\n\t\t *\n\t\t * @param {Array} words (Optional) An array of 32-bit words.\n\t\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t\t */\n\t\t init: function (words, sigBytes) {\n\t\t words = this.words = words || [];\n\t\n\t\t if (sigBytes != undefined) {\n\t\t this.sigBytes = sigBytes;\n\t\t } else {\n\t\t this.sigBytes = words.length * 4;\n\t\t }\n\t\t },\n\t\n\t\t /**\n\t\t * Converts this word array to a string.\n\t\t *\n\t\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t\t *\n\t\t * @return {string} The stringified word array.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var string = wordArray + '';\n\t\t * var string = wordArray.toString();\n\t\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t\t */\n\t\t toString: function (encoder) {\n\t\t return (encoder || Hex).stringify(this);\n\t\t },\n\t\n\t\t /**\n\t\t * Concatenates a word array to this word array.\n\t\t *\n\t\t * @param {WordArray} wordArray The word array to append.\n\t\t *\n\t\t * @return {WordArray} This word array.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * wordArray1.concat(wordArray2);\n\t\t */\n\t\t concat: function (wordArray) {\n\t\t // Shortcuts\n\t\t var thisWords = this.words;\n\t\t var thatWords = wordArray.words;\n\t\t var thisSigBytes = this.sigBytes;\n\t\t var thatSigBytes = wordArray.sigBytes;\n\t\n\t\t // Clamp excess bits\n\t\t this.clamp();\n\t\n\t\t // Concat\n\t\t if (thisSigBytes % 4) {\n\t\t // Copy one byte at a time\n\t\t for (var i = 0; i < thatSigBytes; i++) {\n\t\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t\t }\n\t\t } else {\n\t\t // Copy one word at a time\n\t\t for (var i = 0; i < thatSigBytes; i += 4) {\n\t\t thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];\n\t\t }\n\t\t }\n\t\t this.sigBytes += thatSigBytes;\n\t\n\t\t // Chainable\n\t\t return this;\n\t\t },\n\t\n\t\t /**\n\t\t * Removes insignificant bits.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * wordArray.clamp();\n\t\t */\n\t\t clamp: function () {\n\t\t // Shortcuts\n\t\t var words = this.words;\n\t\t var sigBytes = this.sigBytes;\n\t\n\t\t // Clamp\n\t\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t\t words.length = Math.ceil(sigBytes / 4);\n\t\t },\n\t\n\t\t /**\n\t\t * Creates a copy of this word array.\n\t\t *\n\t\t * @return {WordArray} The clone.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var clone = wordArray.clone();\n\t\t */\n\t\t clone: function () {\n\t\t var clone = Base.clone.call(this);\n\t\t clone.words = this.words.slice(0);\n\t\n\t\t return clone;\n\t\t },\n\t\n\t\t /**\n\t\t * Creates a word array filled with random bytes.\n\t\t *\n\t\t * @param {number} nBytes The number of random bytes to generate.\n\t\t *\n\t\t * @return {WordArray} The random word array.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t\t */\n\t\t random: function (nBytes) {\n\t\t var words = [];\n\t\n\t\t var r = (function (m_w) {\n\t\t var m_w = m_w;\n\t\t var m_z = 0x3ade68b1;\n\t\t var mask = 0xffffffff;\n\t\n\t\t return function () {\n\t\t m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask;\n\t\t m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask;\n\t\t var result = ((m_z << 0x10) + m_w) & mask;\n\t\t result /= 0x100000000;\n\t\t result += 0.5;\n\t\t return result * (Math.random() > .5 ? 1 : -1);\n\t\t }\n\t\t });\n\t\n\t\t for (var i = 0, rcache; i < nBytes; i += 4) {\n\t\t var _r = r((rcache || Math.random()) * 0x100000000);\n\t\n\t\t rcache = _r() * 0x3ade67b7;\n\t\t words.push((_r() * 0x100000000) | 0);\n\t\t }\n\t\n\t\t return new WordArray.init(words, nBytes);\n\t\t }\n\t\t });\n\t\n\t\t /**\n\t\t * Encoder namespace.\n\t\t */\n\t\t var C_enc = C.enc = {};\n\t\n\t\t /**\n\t\t * Hex encoding strategy.\n\t\t */\n\t\t var Hex = C_enc.Hex = {\n\t\t /**\n\t\t * Converts a word array to a hex string.\n\t\t *\n\t\t * @param {WordArray} wordArray The word array.\n\t\t *\n\t\t * @return {string} The hex string.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t\t */\n\t\t stringify: function (wordArray) {\n\t\t // Shortcuts\n\t\t var words = wordArray.words;\n\t\t var sigBytes = wordArray.sigBytes;\n\t\n\t\t // Convert\n\t\t var hexChars = [];\n\t\t for (var i = 0; i < sigBytes; i++) {\n\t\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t\t hexChars.push((bite >>> 4).toString(16));\n\t\t hexChars.push((bite & 0x0f).toString(16));\n\t\t }\n\t\n\t\t return hexChars.join('');\n\t\t },\n\t\n\t\t /**\n\t\t * Converts a hex string to a word array.\n\t\t *\n\t\t * @param {string} hexStr The hex string.\n\t\t *\n\t\t * @return {WordArray} The word array.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t\t */\n\t\t parse: function (hexStr) {\n\t\t // Shortcut\n\t\t var hexStrLength = hexStr.length;\n\t\n\t\t // Convert\n\t\t var words = [];\n\t\t for (var i = 0; i < hexStrLength; i += 2) {\n\t\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t\t }\n\t\n\t\t return new WordArray.init(words, hexStrLength / 2);\n\t\t }\n\t\t };\n\t\n\t\t /**\n\t\t * Latin1 encoding strategy.\n\t\t */\n\t\t var Latin1 = C_enc.Latin1 = {\n\t\t /**\n\t\t * Converts a word array to a Latin1 string.\n\t\t *\n\t\t * @param {WordArray} wordArray The word array.\n\t\t *\n\t\t * @return {string} The Latin1 string.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t\t */\n\t\t stringify: function (wordArray) {\n\t\t // Shortcuts\n\t\t var words = wordArray.words;\n\t\t var sigBytes = wordArray.sigBytes;\n\t\n\t\t // Convert\n\t\t var latin1Chars = [];\n\t\t for (var i = 0; i < sigBytes; i++) {\n\t\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t\t latin1Chars.push(String.fromCharCode(bite));\n\t\t }\n\t\n\t\t return latin1Chars.join('');\n\t\t },\n\t\n\t\t /**\n\t\t * Converts a Latin1 string to a word array.\n\t\t *\n\t\t * @param {string} latin1Str The Latin1 string.\n\t\t *\n\t\t * @return {WordArray} The word array.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t\t */\n\t\t parse: function (latin1Str) {\n\t\t // Shortcut\n\t\t var latin1StrLength = latin1Str.length;\n\t\n\t\t // Convert\n\t\t var words = [];\n\t\t for (var i = 0; i < latin1StrLength; i++) {\n\t\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t\t }\n\t\n\t\t return new WordArray.init(words, latin1StrLength);\n\t\t }\n\t\t };\n\t\n\t\t /**\n\t\t * UTF-8 encoding strategy.\n\t\t */\n\t\t var Utf8 = C_enc.Utf8 = {\n\t\t /**\n\t\t * Converts a word array to a UTF-8 string.\n\t\t *\n\t\t * @param {WordArray} wordArray The word array.\n\t\t *\n\t\t * @return {string} The UTF-8 string.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t\t */\n\t\t stringify: function (wordArray) {\n\t\t try {\n\t\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t\t } catch (e) {\n\t\t throw new Error('Malformed UTF-8 data');\n\t\t }\n\t\t },\n\t\n\t\t /**\n\t\t * Converts a UTF-8 string to a word array.\n\t\t *\n\t\t * @param {string} utf8Str The UTF-8 string.\n\t\t *\n\t\t * @return {WordArray} The word array.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t\t */\n\t\t parse: function (utf8Str) {\n\t\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t\t }\n\t\t };\n\t\n\t\t /**\n\t\t * Abstract buffered block algorithm template.\n\t\t *\n\t\t * The property blockSize must be implemented in a concrete subtype.\n\t\t *\n\t\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t\t */\n\t\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t\t /**\n\t\t * Resets this block algorithm's data buffer to its initial state.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * bufferedBlockAlgorithm.reset();\n\t\t */\n\t\t reset: function () {\n\t\t // Initial values\n\t\t this._data = new WordArray.init();\n\t\t this._nDataBytes = 0;\n\t\t },\n\t\n\t\t /**\n\t\t * Adds new data to this block algorithm's buffer.\n\t\t *\n\t\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * bufferedBlockAlgorithm._append('data');\n\t\t * bufferedBlockAlgorithm._append(wordArray);\n\t\t */\n\t\t _append: function (data) {\n\t\t // Convert string to WordArray, else assume WordArray already\n\t\t if (typeof data == 'string') {\n\t\t data = Utf8.parse(data);\n\t\t }\n\t\n\t\t // Append\n\t\t this._data.concat(data);\n\t\t this._nDataBytes += data.sigBytes;\n\t\t },\n\t\n\t\t /**\n\t\t * Processes available data blocks.\n\t\t *\n\t\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t\t *\n\t\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t\t *\n\t\t * @return {WordArray} The processed data.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var processedData = bufferedBlockAlgorithm._process();\n\t\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t\t */\n\t\t _process: function (doFlush) {\n\t\t // Shortcuts\n\t\t var data = this._data;\n\t\t var dataWords = data.words;\n\t\t var dataSigBytes = data.sigBytes;\n\t\t var blockSize = this.blockSize;\n\t\t var blockSizeBytes = blockSize * 4;\n\t\n\t\t // Count blocks ready\n\t\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t\t if (doFlush) {\n\t\t // Round up to include partial blocks\n\t\t nBlocksReady = Math.ceil(nBlocksReady);\n\t\t } else {\n\t\t // Round down to include only full blocks,\n\t\t // less the number of blocks that must remain in the buffer\n\t\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t\t }\n\t\n\t\t // Count words ready\n\t\t var nWordsReady = nBlocksReady * blockSize;\n\t\n\t\t // Count bytes ready\n\t\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\t\n\t\t // Process blocks\n\t\t if (nWordsReady) {\n\t\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t\t // Perform concrete-algorithm logic\n\t\t this._doProcessBlock(dataWords, offset);\n\t\t }\n\t\n\t\t // Remove processed words\n\t\t var processedWords = dataWords.splice(0, nWordsReady);\n\t\t data.sigBytes -= nBytesReady;\n\t\t }\n\t\n\t\t // Return processed words\n\t\t return new WordArray.init(processedWords, nBytesReady);\n\t\t },\n\t\n\t\t /**\n\t\t * Creates a copy of this object.\n\t\t *\n\t\t * @return {Object} The clone.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var clone = bufferedBlockAlgorithm.clone();\n\t\t */\n\t\t clone: function () {\n\t\t var clone = Base.clone.call(this);\n\t\t clone._data = this._data.clone();\n\t\n\t\t return clone;\n\t\t },\n\t\n\t\t _minBufferSize: 0\n\t\t });\n\t\n\t\t /**\n\t\t * Abstract hasher template.\n\t\t *\n\t\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t\t */\n\t\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t\t /**\n\t\t * Configuration options.\n\t\t */\n\t\t cfg: Base.extend(),\n\t\n\t\t /**\n\t\t * Initializes a newly created hasher.\n\t\t *\n\t\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var hasher = CryptoJS.algo.SHA256.create();\n\t\t */\n\t\t init: function (cfg) {\n\t\t // Apply config defaults\n\t\t this.cfg = this.cfg.extend(cfg);\n\t\n\t\t // Set initial values\n\t\t this.reset();\n\t\t },\n\t\n\t\t /**\n\t\t * Resets this hasher to its initial state.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * hasher.reset();\n\t\t */\n\t\t reset: function () {\n\t\t // Reset data buffer\n\t\t BufferedBlockAlgorithm.reset.call(this);\n\t\n\t\t // Perform concrete-hasher logic\n\t\t this._doReset();\n\t\t },\n\t\n\t\t /**\n\t\t * Updates this hasher with a message.\n\t\t *\n\t\t * @param {WordArray|string} messageUpdate The message to append.\n\t\t *\n\t\t * @return {Hasher} This hasher.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * hasher.update('message');\n\t\t * hasher.update(wordArray);\n\t\t */\n\t\t update: function (messageUpdate) {\n\t\t // Append\n\t\t this._append(messageUpdate);\n\t\n\t\t // Update the hash\n\t\t this._process();\n\t\n\t\t // Chainable\n\t\t return this;\n\t\t },\n\t\n\t\t /**\n\t\t * Finalizes the hash computation.\n\t\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t\t *\n\t\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t\t *\n\t\t * @return {WordArray} The hash.\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var hash = hasher.finalize();\n\t\t * var hash = hasher.finalize('message');\n\t\t * var hash = hasher.finalize(wordArray);\n\t\t */\n\t\t finalize: function (messageUpdate) {\n\t\t // Final message update\n\t\t if (messageUpdate) {\n\t\t this._append(messageUpdate);\n\t\t }\n\t\n\t\t // Perform concrete-hasher logic\n\t\t var hash = this._doFinalize();\n\t\n\t\t return hash;\n\t\t },\n\t\n\t\t blockSize: 512/32,\n\t\n\t\t /**\n\t\t * Creates a shortcut function to a hasher's object interface.\n\t\t *\n\t\t * @param {Hasher} hasher The hasher to create a helper for.\n\t\t *\n\t\t * @return {Function} The shortcut function.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t\t */\n\t\t _createHelper: function (hasher) {\n\t\t return function (message, cfg) {\n\t\t return new hasher.init(cfg).finalize(message);\n\t\t };\n\t\t },\n\t\n\t\t /**\n\t\t * Creates a shortcut function to the HMAC's object interface.\n\t\t *\n\t\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t\t *\n\t\t * @return {Function} The shortcut function.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t\t */\n\t\t _createHmacHelper: function (hasher) {\n\t\t return function (message, key) {\n\t\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t\t };\n\t\t }\n\t\t });\n\t\n\t\t /**\n\t\t * Algorithm namespace.\n\t\t */\n\t\t var C_algo = C.algo = {};\n\t\n\t\t return C;\n\t\t}(Math));\n\t\n\t\n\t\treturn CryptoJS;\n\t\n\t}));\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t;(function (root, factory) {\n\t\tif (true) {\n\t\t\t// CommonJS\n\t\t\tmodule.exports = exports = factory(__webpack_require__(24));\n\t\t}\n\t\telse if (typeof define === \"function\" && define.amd) {\n\t\t\t// AMD\n\t\t\tdefine([\"./core\"], factory);\n\t\t}\n\t\telse {\n\t\t\t// Global (browser)\n\t\t\tfactory(root.CryptoJS);\n\t\t}\n\t}(this, function (CryptoJS) {\n\t\n\t\t(function (Math) {\n\t\t // Shortcuts\n\t\t var C = CryptoJS;\n\t\t var C_lib = C.lib;\n\t\t var WordArray = C_lib.WordArray;\n\t\t var Hasher = C_lib.Hasher;\n\t\t var C_algo = C.algo;\n\t\n\t\t // Initialization and round constants tables\n\t\t var H = [];\n\t\t var K = [];\n\t\n\t\t // Compute constants\n\t\t (function () {\n\t\t function isPrime(n) {\n\t\t var sqrtN = Math.sqrt(n);\n\t\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t\t if (!(n % factor)) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\n\t\t return true;\n\t\t }\n\t\n\t\t function getFractionalBits(n) {\n\t\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t\t }\n\t\n\t\t var n = 2;\n\t\t var nPrime = 0;\n\t\t while (nPrime < 64) {\n\t\t if (isPrime(n)) {\n\t\t if (nPrime < 8) {\n\t\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t\t }\n\t\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\t\n\t\t nPrime++;\n\t\t }\n\t\n\t\t n++;\n\t\t }\n\t\t }());\n\t\n\t\t // Reusable object\n\t\t var W = [];\n\t\n\t\t /**\n\t\t * SHA-256 hash algorithm.\n\t\t */\n\t\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t\t _doReset: function () {\n\t\t this._hash = new WordArray.init(H.slice(0));\n\t\t },\n\t\n\t\t _doProcessBlock: function (M, offset) {\n\t\t // Shortcut\n\t\t var H = this._hash.words;\n\t\n\t\t // Working variables\n\t\t var a = H[0];\n\t\t var b = H[1];\n\t\t var c = H[2];\n\t\t var d = H[3];\n\t\t var e = H[4];\n\t\t var f = H[5];\n\t\t var g = H[6];\n\t\t var h = H[7];\n\t\n\t\t // Computation\n\t\t for (var i = 0; i < 64; i++) {\n\t\t if (i < 16) {\n\t\t W[i] = M[offset + i] | 0;\n\t\t } else {\n\t\t var gamma0x = W[i - 15];\n\t\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t\t (gamma0x >>> 3);\n\t\n\t\t var gamma1x = W[i - 2];\n\t\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t\t (gamma1x >>> 10);\n\t\n\t\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t\t }\n\t\n\t\t var ch = (e & f) ^ (~e & g);\n\t\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\t\n\t\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\t\n\t\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t\t var t2 = sigma0 + maj;\n\t\n\t\t h = g;\n\t\t g = f;\n\t\t f = e;\n\t\t e = (d + t1) | 0;\n\t\t d = c;\n\t\t c = b;\n\t\t b = a;\n\t\t a = (t1 + t2) | 0;\n\t\t }\n\t\n\t\t // Intermediate hash value\n\t\t H[0] = (H[0] + a) | 0;\n\t\t H[1] = (H[1] + b) | 0;\n\t\t H[2] = (H[2] + c) | 0;\n\t\t H[3] = (H[3] + d) | 0;\n\t\t H[4] = (H[4] + e) | 0;\n\t\t H[5] = (H[5] + f) | 0;\n\t\t H[6] = (H[6] + g) | 0;\n\t\t H[7] = (H[7] + h) | 0;\n\t\t },\n\t\n\t\t _doFinalize: function () {\n\t\t // Shortcuts\n\t\t var data = this._data;\n\t\t var dataWords = data.words;\n\t\n\t\t var nBitsTotal = this._nDataBytes * 8;\n\t\t var nBitsLeft = data.sigBytes * 8;\n\t\n\t\t // Add padding\n\t\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t\t data.sigBytes = dataWords.length * 4;\n\t\n\t\t // Hash final blocks\n\t\t this._process();\n\t\n\t\t // Return final computed hash\n\t\t return this._hash;\n\t\t },\n\t\n\t\t clone: function () {\n\t\t var clone = Hasher.clone.call(this);\n\t\t clone._hash = this._hash.clone();\n\t\n\t\t return clone;\n\t\t }\n\t\t });\n\t\n\t\t /**\n\t\t * Shortcut function to the hasher's object interface.\n\t\t *\n\t\t * @param {WordArray|string} message The message to hash.\n\t\t *\n\t\t * @return {WordArray} The hash.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var hash = CryptoJS.SHA256('message');\n\t\t * var hash = CryptoJS.SHA256(wordArray);\n\t\t */\n\t\t C.SHA256 = Hasher._createHelper(SHA256);\n\t\n\t\t /**\n\t\t * Shortcut function to the HMAC's object interface.\n\t\t *\n\t\t * @param {WordArray|string} message The message to hash.\n\t\t * @param {WordArray|string} key The secret key.\n\t\t *\n\t\t * @return {WordArray} The HMAC.\n\t\t *\n\t\t * @static\n\t\t *\n\t\t * @example\n\t\t *\n\t\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t\t */\n\t\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t\t}(Math));\n\t\n\t\n\t\treturn CryptoJS.SHA256;\n\t\n\t}));\n\n/***/ },\n/* 26 */\n/***/ function(module, exports) {\n\n\tfunction DummyCache() {}\n\t\n\tDummyCache.prototype.get = function () {\n\t return null;\n\t};\n\t\n\tDummyCache.prototype.has = function () {\n\t return false;\n\t};\n\t\n\tDummyCache.prototype.set = function () {\n\t};\n\t\n\tmodule.exports = DummyCache;\n\n\n/***/ },\n/* 27 */\n/***/ function(module, exports) {\n\n\tfunction ConfigurationError(message) {\n\t this.name = 'ConfigurationError';\n\t this.message = (message || '');\n\t}\n\tConfigurationError.prototype = Error.prototype;\n\t\n\tfunction TokenValidationError(message) {\n\t this.name = 'TokenValidationError';\n\t this.message = (message || '');\n\t}\n\tTokenValidationError.prototype = Error.prototype;\n\t\n\tmodule.exports = {\n\t ConfigurationError: ConfigurationError,\n\t TokenValidationError: TokenValidationError\n\t};\n\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\tvar base64 = __webpack_require__(16);\n\tvar request = __webpack_require__(17);\n\t\n\tfunction process(jwks) {\n\t var modulus = base64.decodeToHEX(jwks.n);\n\t var exp = base64.decodeToHEX(jwks.e);\n\t\n\t return {\n\t modulus: modulus,\n\t exp: exp\n\t };\n\t}\n\t\n\tfunction getJWKS(options, cb) {\n\t var url = urljoin(options.iss, '.well-known', 'jwks.json');\n\t\n\t return request\n\t .get(url)\n\t .end(function (err, data) {\n\t var matchingKey = null;\n\t var a;\n\t var key;\n\t\n\t if (err) {\n\t cb(err);\n\t }\n\t\n\t // eslint-disable-next-line no-plusplus\n\t for (a = 0; a < data.body.keys.length && matchingKey === null; a++) {\n\t key = data.body.keys[a];\n\t if (key.kid === options.kid) {\n\t matchingKey = key;\n\t }\n\t }\n\t\n\t cb(null, process(matchingKey));\n\t });\n\t}\n\t\n\tmodule.exports = {\n\t process: process,\n\t getJWKS: getJWKS\n\t};\n\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\n\tBased on the work of Tom Wu\n\thttp://www-cs-students.stanford.edu/~tjw/jsbn/\n\thttp://www-cs-students.stanford.edu/~tjw/jsbn/LICENSE\n\t*/\n\t\n\tvar BigInteger = __webpack_require__(31).BigInteger;\n\tvar SHA256 = __webpack_require__(25);\n\t\n\tvar DigestInfoHead = {\n\t sha1: '3021300906052b0e03021a05000414',\n\t sha224: '302d300d06096086480165030402040500041c',\n\t sha256: '3031300d060960864801650304020105000420',\n\t sha384: '3041300d060960864801650304020205000430',\n\t sha512: '3051300d060960864801650304020305000440',\n\t md2: '3020300c06082a864886f70d020205000410',\n\t md5: '3020300c06082a864886f70d020505000410',\n\t ripemd160: '3021300906052b2403020105000414'\n\t};\n\t\n\tvar DigestAlgs = {\n\t sha256: SHA256\n\t};\n\t\n\tfunction RSAVerifier(modulus, exp) {\n\t this.n = null;\n\t this.e = 0;\n\t\n\t if (modulus != null && exp != null && modulus.length > 0 && exp.length > 0) {\n\t this.n = new BigInteger(modulus, 16);\n\t this.e = parseInt(exp, 16);\n\t } else {\n\t throw new Error('Invalid key data');\n\t }\n\t}\n\t\n\tfunction getAlgorithmFromDigest(hDigestInfo) {\n\t for (var algName in DigestInfoHead) {\n\t var head = DigestInfoHead[algName];\n\t var len = head.length;\n\t\n\t if (hDigestInfo.substring(0, len) === head) {\n\t return {\n\t alg: algName,\n\t hash: hDigestInfo.substring(len)\n\t };\n\t }\n\t }\n\t return [];\n\t}\n\t\n\t\n\tRSAVerifier.prototype.verify = function (msg, encsig) {\n\t encsig = encsig.replace(/[^0-9a-f]|[\\s\\n]]/ig, '');\n\t\n\t var sig = new BigInteger(encsig, 16);\n\t if (sig.bitLength() > this.n.bitLength()) {\n\t throw new Error('Signature does not match with the key modulus.');\n\t }\n\t\n\t var decryptedSig = sig.modPowInt(this.e, this.n);\n\t var digest = decryptedSig.toString(16).replace(/^1f+00/, '');\n\t\n\t var digestInfo = getAlgorithmFromDigest(digest);\n\t if (digestInfo.length === 0) {\n\t return false;\n\t }\n\t\n\t if (!DigestAlgs.hasOwnProperty(digestInfo.alg)) {\n\t throw new Error('Hashing algorithm is not supported.');\n\t }\n\t\n\t var msgHash = DigestAlgs[digestInfo.alg](msg).toString();\n\t return (digestInfo.hash === msgHash);\n\t};\n\t\n\tmodule.exports = RSAVerifier;\n\n\n/***/ },\n/* 30 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar RSAVerifier = __webpack_require__(29);\n\tvar base64 = __webpack_require__(16);\n\tvar jwks = __webpack_require__(28);\n\tvar error = __webpack_require__(27);\n\tvar DummyCache = __webpack_require__(26);\n\tvar supportedAlgs = ['RS256'];\n\t\n\tfunction IdTokenVerifier(parameters) {\n\t var options = parameters || {};\n\t\n\t this.jwksCache = options.jwksCache || new DummyCache();\n\t this.expectedAlg = options.expectedAlg || 'RS256';\n\t this.issuer = options.issuer;\n\t this.audience = options.audience;\n\t this.leeway = options.leeway || 0;\n\t this.__disableExpirationCheck = options.__disableExpirationCheck || false;\n\t\n\t if (this.leeway < 0 || this.leeway > 60) {\n\t throw new error.ConfigurationError('The leeway should be positive and lower than a minute.');\n\t }\n\t\n\t if (supportedAlgs.indexOf(this.expectedAlg) === -1) {\n\t throw new error.ConfigurationError('Algorithm ' + this.expectedAlg +\n\t ' is not supported. (Expected algs: [' + supportedAlgs.join(',') + '])');\n\t }\n\t}\n\t\n\tIdTokenVerifier.prototype.verify = function (token, nonce, cb) {\n\t var jwt = this.decode(token);\n\t\n\t if (jwt instanceof Error) {\n\t return cb(jwt, false);\n\t }\n\t\n\t /* eslint-disable vars-on-top */\n\t var headAndPayload = jwt.encoded.header + '.' + jwt.encoded.payload;\n\t var signature = base64.decodeToHEX(jwt.encoded.signature);\n\t\n\t var alg = jwt.header.alg;\n\t var kid = jwt.header.kid;\n\t\n\t var aud = jwt.payload.aud;\n\t var iss = jwt.payload.iss;\n\t var exp = jwt.payload.exp;\n\t var iat = jwt.payload.iat;\n\t var tnonce = jwt.payload.nonce || null;\n\t /* eslint-enable vars-on-top */\n\t\n\t if (this.issuer !== iss) {\n\t return cb(new error.TokenValidationError('Issuer ' + iss + ' is not valid.'), false);\n\t }\n\t\n\t if (this.audience !== aud) {\n\t return cb(new error.TokenValidationError('Audience ' + aud + ' is not valid.'), false);\n\t }\n\t\n\t if (this.expectedAlg !== alg) {\n\t return cb(new error.TokenValidationError('Algorithm ' + alg +\n\t ' is not supported. (Expected algs: [' + supportedAlgs.join(',') + '])'), false);\n\t }\n\t\n\t if (tnonce !== nonce) {\n\t return cb(new error.TokenValidationError('Nonce does not match.'), false);\n\t }\n\t\n\t var expirationError = this.verifyExpAndIat(exp, iat); // eslint-disable-line vars-on-top\n\t\n\t if (expirationError) {\n\t return cb(expirationError, false);\n\t }\n\t\n\t return this.getRsaVerifier(iss, kid, function (err, rsaVerifier) {\n\t if (err) {\n\t return cb(err);\n\t }\n\t if (rsaVerifier.verify(headAndPayload, signature)) {\n\t return cb(null, jwt.payload);\n\t }\n\t return cb(new error.TokenValidationError('Invalid signature.'));\n\t });\n\t};\n\t\n\tIdTokenVerifier.prototype.verifyExpAndIat = function (exp, iat) {\n\t var now = new Date();\n\t var expDate = new Date(0);\n\t var iatDate = new Date(0);\n\t\n\t if (this.__disableExpirationCheck) {\n\t return null;\n\t }\n\t\n\t expDate.setUTCSeconds(exp + this.leeway);\n\t\n\t if (now > expDate) {\n\t return new error.TokenValidationError('Expired token.');\n\t }\n\t\n\t iatDate.setUTCSeconds(iat - this.leeway);\n\t\n\t if (now < iatDate) {\n\t return new error.TokenValidationError('The token was issued in the future. ' +\n\t 'Please check your computed clock.');\n\t }\n\t\n\t return null;\n\t};\n\t\n\tIdTokenVerifier.prototype.getRsaVerifier = function (iss, kid, cb) {\n\t var _this = this;\n\t var cachekey = iss + kid;\n\t\n\t if (!this.jwksCache.has(cachekey)) {\n\t jwks.getJWKS({\n\t iss: iss,\n\t kid: kid\n\t }, function (err, keyInfo) {\n\t if (err) {\n\t cb(err);\n\t }\n\t _this.jwksCache.set(cachekey, keyInfo);\n\t cb(null, new RSAVerifier(keyInfo.modulus, keyInfo.exp));\n\t });\n\t } else {\n\t var keyInfo = this.jwksCache.get(cachekey); // eslint-disable-line vars-on-top\n\t cb(null, new RSAVerifier(keyInfo.modulus, keyInfo.exp));\n\t }\n\t};\n\t\n\tIdTokenVerifier.prototype.decode = function (token) {\n\t var parts = token.split('.');\n\t var header;\n\t var payload;\n\t\n\t if (parts.length !== 3) {\n\t return new error.TokenValidationError('Cannot decode a malformed JWT');\n\t }\n\t\n\t try {\n\t header = JSON.parse(base64.decodeToString(parts[0]));\n\t payload = JSON.parse(base64.decodeToString(parts[1]));\n\t } catch (e) {\n\t return new error.TokenValidationError('Token header or payload is not valid JSON');\n\t }\n\t\n\t return {\n\t header: header,\n\t payload: payload,\n\t encoded: {\n\t header: parts[0],\n\t payload: parts[1],\n\t signature: parts[2]\n\t }\n\t };\n\t};\n\t\n\tmodule.exports = IdTokenVerifier;\n\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t(function(){\n\t\n\t // Copyright (c) 2005 Tom Wu\n\t // All Rights Reserved.\n\t // See \"LICENSE\" for details.\n\t\n\t // Basic JavaScript BN library - subset useful for RSA encryption.\n\t\n\t // Bits per digit\n\t var dbits;\n\t\n\t // JavaScript engine analysis\n\t var canary = 0xdeadbeefcafe;\n\t var j_lm = ((canary&0xffffff)==0xefcafe);\n\t\n\t // (public) Constructor\n\t function BigInteger(a,b,c) {\n\t if(a != null)\n\t if(\"number\" == typeof a) this.fromNumber(a,b,c);\n\t else if(b == null && \"string\" != typeof a) this.fromString(a,256);\n\t else this.fromString(a,b);\n\t }\n\t\n\t // return new, unset BigInteger\n\t function nbi() { return new BigInteger(null); }\n\t\n\t // am: Compute w_j += (x*this_i), propagate carries,\n\t // c is initial carry, returns final carry.\n\t // c < 3*dvalue, x < 2*dvalue, this_i < dvalue\n\t // We need to select the fastest one that works in this environment.\n\t\n\t // am1: use a single mult and divide to get the high bits,\n\t // max digit bits should be 26 because\n\t // max internal value = 2*dvalue^2-2*dvalue (< 2^53)\n\t function am1(i,x,w,j,c,n) {\n\t while(--n >= 0) {\n\t var v = x*this[i++]+w[j]+c;\n\t c = Math.floor(v/0x4000000);\n\t w[j++] = v&0x3ffffff;\n\t }\n\t return c;\n\t }\n\t // am2 avoids a big mult-and-extract completely.\n\t // Max digit bits should be <= 30 because we do bitwise ops\n\t // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)\n\t function am2(i,x,w,j,c,n) {\n\t var xl = x&0x7fff, xh = x>>15;\n\t while(--n >= 0) {\n\t var l = this[i]&0x7fff;\n\t var h = this[i++]>>15;\n\t var m = xh*l+h*xl;\n\t l = xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff);\n\t c = (l>>>30)+(m>>>15)+xh*h+(c>>>30);\n\t w[j++] = l&0x3fffffff;\n\t }\n\t return c;\n\t }\n\t // Alternately, set max digit bits to 28 since some\n\t // browsers slow down when dealing with 32-bit numbers.\n\t function am3(i,x,w,j,c,n) {\n\t var xl = x&0x3fff, xh = x>>14;\n\t while(--n >= 0) {\n\t var l = this[i]&0x3fff;\n\t var h = this[i++]>>14;\n\t var m = xh*l+h*xl;\n\t l = xl*l+((m&0x3fff)<<14)+w[j]+c;\n\t c = (l>>28)+(m>>14)+xh*h;\n\t w[j++] = l&0xfffffff;\n\t }\n\t return c;\n\t }\n\t var inBrowser = typeof navigator !== \"undefined\";\n\t if(inBrowser && j_lm && (navigator.appName == \"Microsoft Internet Explorer\")) {\n\t BigInteger.prototype.am = am2;\n\t dbits = 30;\n\t }\n\t else if(inBrowser && j_lm && (navigator.appName != \"Netscape\")) {\n\t BigInteger.prototype.am = am1;\n\t dbits = 26;\n\t }\n\t else { // Mozilla/Netscape seems to prefer am3\n\t BigInteger.prototype.am = am3;\n\t dbits = 28;\n\t }\n\t\n\t BigInteger.prototype.DB = dbits;\n\t BigInteger.prototype.DM = ((1<= 0; --i) r[i] = this[i];\n\t r.t = this.t;\n\t r.s = this.s;\n\t }\n\t\n\t // (protected) set from integer value x, -DV <= x < DV\n\t function bnpFromInt(x) {\n\t this.t = 1;\n\t this.s = (x<0)?-1:0;\n\t if(x > 0) this[0] = x;\n\t else if(x < -1) this[0] = x+this.DV;\n\t else this.t = 0;\n\t }\n\t\n\t // return bigint initialized to value\n\t function nbv(i) { var r = nbi(); r.fromInt(i); return r; }\n\t\n\t // (protected) set from string and radix\n\t function bnpFromString(s,b) {\n\t var k;\n\t if(b == 16) k = 4;\n\t else if(b == 8) k = 3;\n\t else if(b == 256) k = 8; // byte array\n\t else if(b == 2) k = 1;\n\t else if(b == 32) k = 5;\n\t else if(b == 4) k = 2;\n\t else { this.fromRadix(s,b); return; }\n\t this.t = 0;\n\t this.s = 0;\n\t var i = s.length, mi = false, sh = 0;\n\t while(--i >= 0) {\n\t var x = (k==8)?s[i]&0xff:intAt(s,i);\n\t if(x < 0) {\n\t if(s.charAt(i) == \"-\") mi = true;\n\t continue;\n\t }\n\t mi = false;\n\t if(sh == 0)\n\t this[this.t++] = x;\n\t else if(sh+k > this.DB) {\n\t this[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh));\n\t }\n\t else\n\t this[this.t-1] |= x<= this.DB) sh -= this.DB;\n\t }\n\t if(k == 8 && (s[0]&0x80) != 0) {\n\t this.s = -1;\n\t if(sh > 0) this[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this[this.t-1] == c) --this.t;\n\t }\n\t\n\t // (public) return string representation in given radix\n\t function bnToString(b) {\n\t if(this.s < 0) return \"-\"+this.negate().toString(b);\n\t var k;\n\t if(b == 16) k = 4;\n\t else if(b == 8) k = 3;\n\t else if(b == 2) k = 1;\n\t else if(b == 32) k = 5;\n\t else if(b == 4) k = 2;\n\t else return this.toRadix(b);\n\t var km = (1< 0) {\n\t if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); }\n\t while(i >= 0) {\n\t if(p < k) {\n\t d = (this[i]&((1<>(p+=this.DB-k);\n\t }\n\t else {\n\t d = (this[i]>>(p-=k))&km;\n\t if(p <= 0) { p += this.DB; --i; }\n\t }\n\t if(d > 0) m = true;\n\t if(m) r += int2char(d);\n\t }\n\t }\n\t return m?r:\"0\";\n\t }\n\t\n\t // (public) -this\n\t function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }\n\t\n\t // (public) |this|\n\t function bnAbs() { return (this.s<0)?this.negate():this; }\n\t\n\t // (public) return + if this > a, - if this < a, 0 if equal\n\t function bnCompareTo(a) {\n\t var r = this.s-a.s;\n\t if(r != 0) return r;\n\t var i = this.t;\n\t r = i-a.t;\n\t if(r != 0) return (this.s<0)?-r:r;\n\t while(--i >= 0) if((r=this[i]-a[i]) != 0) return r;\n\t return 0;\n\t }\n\t\n\t // returns bit length of the integer x\n\t function nbits(x) {\n\t var r = 1, t;\n\t if((t=x>>>16) != 0) { x = t; r += 16; }\n\t if((t=x>>8) != 0) { x = t; r += 8; }\n\t if((t=x>>4) != 0) { x = t; r += 4; }\n\t if((t=x>>2) != 0) { x = t; r += 2; }\n\t if((t=x>>1) != 0) { x = t; r += 1; }\n\t return r;\n\t }\n\t\n\t // (public) return the number of bits in \"this\"\n\t function bnBitLength() {\n\t if(this.t <= 0) return 0;\n\t return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM));\n\t }\n\t\n\t // (protected) r = this << n*DB\n\t function bnpDLShiftTo(n,r) {\n\t var i;\n\t for(i = this.t-1; i >= 0; --i) r[i+n] = this[i];\n\t for(i = n-1; i >= 0; --i) r[i] = 0;\n\t r.t = this.t+n;\n\t r.s = this.s;\n\t }\n\t\n\t // (protected) r = this >> n*DB\n\t function bnpDRShiftTo(n,r) {\n\t for(var i = n; i < this.t; ++i) r[i-n] = this[i];\n\t r.t = Math.max(this.t-n,0);\n\t r.s = this.s;\n\t }\n\t\n\t // (protected) r = this << n\n\t function bnpLShiftTo(n,r) {\n\t var bs = n%this.DB;\n\t var cbs = this.DB-bs;\n\t var bm = (1<= 0; --i) {\n\t r[i+ds+1] = (this[i]>>cbs)|c;\n\t c = (this[i]&bm)<= 0; --i) r[i] = 0;\n\t r[ds] = c;\n\t r.t = this.t+ds+1;\n\t r.s = this.s;\n\t r.clamp();\n\t }\n\t\n\t // (protected) r = this >> n\n\t function bnpRShiftTo(n,r) {\n\t r.s = this.s;\n\t var ds = Math.floor(n/this.DB);\n\t if(ds >= this.t) { r.t = 0; return; }\n\t var bs = n%this.DB;\n\t var cbs = this.DB-bs;\n\t var bm = (1<>bs;\n\t for(var i = ds+1; i < this.t; ++i) {\n\t r[i-ds-1] |= (this[i]&bm)<>bs;\n\t }\n\t if(bs > 0) r[this.t-ds-1] |= (this.s&bm)<>= this.DB;\n\t }\n\t if(a.t < this.t) {\n\t c -= a.s;\n\t while(i < this.t) {\n\t c += this[i];\n\t r[i++] = c&this.DM;\n\t c >>= this.DB;\n\t }\n\t c += this.s;\n\t }\n\t else {\n\t c += this.s;\n\t while(i < a.t) {\n\t c -= a[i];\n\t r[i++] = c&this.DM;\n\t c >>= this.DB;\n\t }\n\t c -= a.s;\n\t }\n\t r.s = (c<0)?-1:0;\n\t if(c < -1) r[i++] = this.DV+c;\n\t else if(c > 0) r[i++] = c;\n\t r.t = i;\n\t r.clamp();\n\t }\n\t\n\t // (protected) r = this * a, r != this,a (HAC 14.12)\n\t // \"this\" should be the larger one if appropriate.\n\t function bnpMultiplyTo(a,r) {\n\t var x = this.abs(), y = a.abs();\n\t var i = x.t;\n\t r.t = i+y.t;\n\t while(--i >= 0) r[i] = 0;\n\t for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t);\n\t r.s = 0;\n\t r.clamp();\n\t if(this.s != a.s) BigInteger.ZERO.subTo(r,r);\n\t }\n\t\n\t // (protected) r = this^2, r != this (HAC 14.16)\n\t function bnpSquareTo(r) {\n\t var x = this.abs();\n\t var i = r.t = 2*x.t;\n\t while(--i >= 0) r[i] = 0;\n\t for(i = 0; i < x.t-1; ++i) {\n\t var c = x.am(i,x[i],r,2*i,0,1);\n\t if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) {\n\t r[i+x.t] -= x.DV;\n\t r[i+x.t+1] = 1;\n\t }\n\t }\n\t if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1);\n\t r.s = 0;\n\t r.clamp();\n\t }\n\t\n\t // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)\n\t // r != q, this != m. q or r may be null.\n\t function bnpDivRemTo(m,q,r) {\n\t var pm = m.abs();\n\t if(pm.t <= 0) return;\n\t var pt = this.abs();\n\t if(pt.t < pm.t) {\n\t if(q != null) q.fromInt(0);\n\t if(r != null) this.copyTo(r);\n\t return;\n\t }\n\t if(r == null) r = nbi();\n\t var y = nbi(), ts = this.s, ms = m.s;\n\t var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus\n\t if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); }\n\t else { pm.copyTo(y); pt.copyTo(r); }\n\t var ys = y.t;\n\t var y0 = y[ys-1];\n\t if(y0 == 0) return;\n\t var yt = y0*(1<1)?y[ys-2]>>this.F2:0);\n\t var d1 = this.FV/yt, d2 = (1<= 0) {\n\t r[r.t++] = 1;\n\t r.subTo(t,r);\n\t }\n\t BigInteger.ONE.dlShiftTo(ys,t);\n\t t.subTo(y,y); // \"negative\" y so we can replace sub with am later\n\t while(y.t < ys) y[y.t++] = 0;\n\t while(--j >= 0) {\n\t // Estimate quotient digit\n\t var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);\n\t if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out\n\t y.dlShiftTo(j,t);\n\t r.subTo(t,r);\n\t while(r[i] < --qd) r.subTo(t,r);\n\t }\n\t }\n\t if(q != null) {\n\t r.drShiftTo(ys,q);\n\t if(ts != ms) BigInteger.ZERO.subTo(q,q);\n\t }\n\t r.t = ys;\n\t r.clamp();\n\t if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder\n\t if(ts < 0) BigInteger.ZERO.subTo(r,r);\n\t }\n\t\n\t // (public) this mod a\n\t function bnMod(a) {\n\t var r = nbi();\n\t this.abs().divRemTo(a,null,r);\n\t if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);\n\t return r;\n\t }\n\t\n\t // Modular reduction using \"classic\" algorithm\n\t function Classic(m) { this.m = m; }\n\t function cConvert(x) {\n\t if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);\n\t else return x;\n\t }\n\t function cRevert(x) { return x; }\n\t function cReduce(x) { x.divRemTo(this.m,null,x); }\n\t function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }\n\t function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); }\n\t\n\t Classic.prototype.convert = cConvert;\n\t Classic.prototype.revert = cRevert;\n\t Classic.prototype.reduce = cReduce;\n\t Classic.prototype.mulTo = cMulTo;\n\t Classic.prototype.sqrTo = cSqrTo;\n\t\n\t // (protected) return \"-1/this % 2^DB\"; useful for Mont. reduction\n\t // justification:\n\t // xy == 1 (mod m)\n\t // xy = 1+km\n\t // xy(2-xy) = (1+km)(1-km)\n\t // x[y(2-xy)] = 1-k^2m^2\n\t // x[y(2-xy)] == 1 (mod m^2)\n\t // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2\n\t // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.\n\t // JS multiply \"overflows\" differently from C/C++, so care is needed here.\n\t function bnpInvDigit() {\n\t if(this.t < 1) return 0;\n\t var x = this[0];\n\t if((x&1) == 0) return 0;\n\t var y = x&3; // y == 1/x mod 2^2\n\t y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4\n\t y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8\n\t y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16\n\t // last step - calculate inverse mod DV directly;\n\t // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints\n\t y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits\n\t // we really want the negative inverse, and -DV < y < DV\n\t return (y>0)?this.DV-y:-y;\n\t }\n\t\n\t // Montgomery reduction\n\t function Montgomery(m) {\n\t this.m = m;\n\t this.mp = m.invDigit();\n\t this.mpl = this.mp&0x7fff;\n\t this.mph = this.mp>>15;\n\t this.um = (1<<(m.DB-15))-1;\n\t this.mt2 = 2*m.t;\n\t }\n\t\n\t // xR mod m\n\t function montConvert(x) {\n\t var r = nbi();\n\t x.abs().dlShiftTo(this.m.t,r);\n\t r.divRemTo(this.m,null,r);\n\t if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);\n\t return r;\n\t }\n\t\n\t // x/R mod m\n\t function montRevert(x) {\n\t var r = nbi();\n\t x.copyTo(r);\n\t this.reduce(r);\n\t return r;\n\t }\n\t\n\t // x = x/R mod m (HAC 14.32)\n\t function montReduce(x) {\n\t while(x.t <= this.mt2) // pad x so am has enough room later\n\t x[x.t++] = 0;\n\t for(var i = 0; i < this.m.t; ++i) {\n\t // faster way of calculating u0 = x[i]*mp mod DV\n\t var j = x[i]&0x7fff;\n\t var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM;\n\t // use am to combine the multiply-shift-add into one call\n\t j = i+this.m.t;\n\t x[j] += this.m.am(0,u0,x,i,0,this.m.t);\n\t // propagate carry\n\t while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; }\n\t }\n\t x.clamp();\n\t x.drShiftTo(this.m.t,x);\n\t if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);\n\t }\n\t\n\t // r = \"x^2/R mod m\"; x != r\n\t function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); }\n\t\n\t // r = \"xy/R mod m\"; x,y != r\n\t function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }\n\t\n\t Montgomery.prototype.convert = montConvert;\n\t Montgomery.prototype.revert = montRevert;\n\t Montgomery.prototype.reduce = montReduce;\n\t Montgomery.prototype.mulTo = montMulTo;\n\t Montgomery.prototype.sqrTo = montSqrTo;\n\t\n\t // (protected) true iff this is even\n\t function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; }\n\t\n\t // (protected) this^e, e < 2^32, doing sqr and mul with \"r\" (HAC 14.79)\n\t function bnpExp(e,z) {\n\t if(e > 0xffffffff || e < 1) return BigInteger.ONE;\n\t var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1;\n\t g.copyTo(r);\n\t while(--i >= 0) {\n\t z.sqrTo(r,r2);\n\t if((e&(1< 0) z.mulTo(r2,g,r);\n\t else { var t = r; r = r2; r2 = t; }\n\t }\n\t return z.revert(r);\n\t }\n\t\n\t // (public) this^e % m, 0 <= e < 2^32\n\t function bnModPowInt(e,m) {\n\t var z;\n\t if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m);\n\t return this.exp(e,z);\n\t }\n\t\n\t // protected\n\t BigInteger.prototype.copyTo = bnpCopyTo;\n\t BigInteger.prototype.fromInt = bnpFromInt;\n\t BigInteger.prototype.fromString = bnpFromString;\n\t BigInteger.prototype.clamp = bnpClamp;\n\t BigInteger.prototype.dlShiftTo = bnpDLShiftTo;\n\t BigInteger.prototype.drShiftTo = bnpDRShiftTo;\n\t BigInteger.prototype.lShiftTo = bnpLShiftTo;\n\t BigInteger.prototype.rShiftTo = bnpRShiftTo;\n\t BigInteger.prototype.subTo = bnpSubTo;\n\t BigInteger.prototype.multiplyTo = bnpMultiplyTo;\n\t BigInteger.prototype.squareTo = bnpSquareTo;\n\t BigInteger.prototype.divRemTo = bnpDivRemTo;\n\t BigInteger.prototype.invDigit = bnpInvDigit;\n\t BigInteger.prototype.isEven = bnpIsEven;\n\t BigInteger.prototype.exp = bnpExp;\n\t\n\t // public\n\t BigInteger.prototype.toString = bnToString;\n\t BigInteger.prototype.negate = bnNegate;\n\t BigInteger.prototype.abs = bnAbs;\n\t BigInteger.prototype.compareTo = bnCompareTo;\n\t BigInteger.prototype.bitLength = bnBitLength;\n\t BigInteger.prototype.mod = bnMod;\n\t BigInteger.prototype.modPowInt = bnModPowInt;\n\t\n\t // \"constants\"\n\t BigInteger.ZERO = nbv(0);\n\t BigInteger.ONE = nbv(1);\n\t\n\t // Copyright (c) 2005-2009 Tom Wu\n\t // All Rights Reserved.\n\t // See \"LICENSE\" for details.\n\t\n\t // Extended JavaScript BN functions, required for RSA private ops.\n\t\n\t // Version 1.1: new BigInteger(\"0\", 10) returns \"proper\" zero\n\t // Version 1.2: square() API, isProbablePrime fix\n\t\n\t // (public)\n\t function bnClone() { var r = nbi(); this.copyTo(r); return r; }\n\t\n\t // (public) return value as integer\n\t function bnIntValue() {\n\t if(this.s < 0) {\n\t if(this.t == 1) return this[0]-this.DV;\n\t else if(this.t == 0) return -1;\n\t }\n\t else if(this.t == 1) return this[0];\n\t else if(this.t == 0) return 0;\n\t // assumes 16 < DB < 32\n\t return ((this[1]&((1<<(32-this.DB))-1))<>24; }\n\t\n\t // (public) return value as short (assumes DB>=16)\n\t function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; }\n\t\n\t // (protected) return x s.t. r^x < DV\n\t function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }\n\t\n\t // (public) 0 if this == 0, 1 if this > 0\n\t function bnSigNum() {\n\t if(this.s < 0) return -1;\n\t else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0;\n\t else return 1;\n\t }\n\t\n\t // (protected) convert to radix string\n\t function bnpToRadix(b) {\n\t if(b == null) b = 10;\n\t if(this.signum() == 0 || b < 2 || b > 36) return \"0\";\n\t var cs = this.chunkSize(b);\n\t var a = Math.pow(b,cs);\n\t var d = nbv(a), y = nbi(), z = nbi(), r = \"\";\n\t this.divRemTo(d,y,z);\n\t while(y.signum() > 0) {\n\t r = (a+z.intValue()).toString(b).substr(1) + r;\n\t y.divRemTo(d,y,z);\n\t }\n\t return z.intValue().toString(b) + r;\n\t }\n\t\n\t // (protected) convert from radix string\n\t function bnpFromRadix(s,b) {\n\t this.fromInt(0);\n\t if(b == null) b = 10;\n\t var cs = this.chunkSize(b);\n\t var d = Math.pow(b,cs), mi = false, j = 0, w = 0;\n\t for(var i = 0; i < s.length; ++i) {\n\t var x = intAt(s,i);\n\t if(x < 0) {\n\t if(s.charAt(i) == \"-\" && this.signum() == 0) mi = true;\n\t continue;\n\t }\n\t w = b*w+x;\n\t if(++j >= cs) {\n\t this.dMultiply(d);\n\t this.dAddOffset(w,0);\n\t j = 0;\n\t w = 0;\n\t }\n\t }\n\t if(j > 0) {\n\t this.dMultiply(Math.pow(b,j));\n\t this.dAddOffset(w,0);\n\t }\n\t if(mi) BigInteger.ZERO.subTo(this,this);\n\t }\n\t\n\t // (protected) alternate constructor\n\t function bnpFromNumber(a,b,c) {\n\t if(\"number\" == typeof b) {\n\t // new BigInteger(int,int,RNG)\n\t if(a < 2) this.fromInt(1);\n\t else {\n\t this.fromNumber(a,c);\n\t if(!this.testBit(a-1))\t// force MSB set\n\t this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);\n\t if(this.isEven()) this.dAddOffset(1,0); // force odd\n\t while(!this.isProbablePrime(b)) {\n\t this.dAddOffset(2,0);\n\t if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this);\n\t }\n\t }\n\t }\n\t else {\n\t // new BigInteger(int,RNG)\n\t var x = new Array(), t = a&7;\n\t x.length = (a>>3)+1;\n\t b.nextBytes(x);\n\t if(t > 0) x[0] &= ((1< 0) {\n\t if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p)\n\t r[k++] = d|(this.s<<(this.DB-p));\n\t while(i >= 0) {\n\t if(p < 8) {\n\t d = (this[i]&((1<>(p+=this.DB-8);\n\t }\n\t else {\n\t d = (this[i]>>(p-=8))&0xff;\n\t if(p <= 0) { p += this.DB; --i; }\n\t }\n\t if((d&0x80) != 0) d |= -256;\n\t if(k == 0 && (this.s&0x80) != (d&0x80)) ++k;\n\t if(k > 0 || d != this.s) r[k++] = d;\n\t }\n\t }\n\t return r;\n\t }\n\t\n\t function bnEquals(a) { return(this.compareTo(a)==0); }\n\t function bnMin(a) { return(this.compareTo(a)<0)?this:a; }\n\t function bnMax(a) { return(this.compareTo(a)>0)?this:a; }\n\t\n\t // (protected) r = this op a (bitwise)\n\t function bnpBitwiseTo(a,op,r) {\n\t var i, f, m = Math.min(a.t,this.t);\n\t for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]);\n\t if(a.t < this.t) {\n\t f = a.s&this.DM;\n\t for(i = m; i < this.t; ++i) r[i] = op(this[i],f);\n\t r.t = this.t;\n\t }\n\t else {\n\t f = this.s&this.DM;\n\t for(i = m; i < a.t; ++i) r[i] = op(f,a[i]);\n\t r.t = a.t;\n\t }\n\t r.s = op(this.s,a.s);\n\t r.clamp();\n\t }\n\t\n\t // (public) this & a\n\t function op_and(x,y) { return x&y; }\n\t function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; }\n\t\n\t // (public) this | a\n\t function op_or(x,y) { return x|y; }\n\t function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; }\n\t\n\t // (public) this ^ a\n\t function op_xor(x,y) { return x^y; }\n\t function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; }\n\t\n\t // (public) this & ~a\n\t function op_andnot(x,y) { return x&~y; }\n\t function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; }\n\t\n\t // (public) ~this\n\t function bnNot() {\n\t var r = nbi();\n\t for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i];\n\t r.t = this.t;\n\t r.s = ~this.s;\n\t return r;\n\t }\n\t\n\t // (public) this << n\n\t function bnShiftLeft(n) {\n\t var r = nbi();\n\t if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r);\n\t return r;\n\t }\n\t\n\t // (public) this >> n\n\t function bnShiftRight(n) {\n\t var r = nbi();\n\t if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r);\n\t return r;\n\t }\n\t\n\t // return index of lowest 1-bit in x, x < 2^31\n\t function lbit(x) {\n\t if(x == 0) return -1;\n\t var r = 0;\n\t if((x&0xffff) == 0) { x >>= 16; r += 16; }\n\t if((x&0xff) == 0) { x >>= 8; r += 8; }\n\t if((x&0xf) == 0) { x >>= 4; r += 4; }\n\t if((x&3) == 0) { x >>= 2; r += 2; }\n\t if((x&1) == 0) ++r;\n\t return r;\n\t }\n\t\n\t // (public) returns index of lowest 1-bit (or -1 if none)\n\t function bnGetLowestSetBit() {\n\t for(var i = 0; i < this.t; ++i)\n\t if(this[i] != 0) return i*this.DB+lbit(this[i]);\n\t if(this.s < 0) return this.t*this.DB;\n\t return -1;\n\t }\n\t\n\t // return number of 1 bits in x\n\t function cbit(x) {\n\t var r = 0;\n\t while(x != 0) { x &= x-1; ++r; }\n\t return r;\n\t }\n\t\n\t // (public) return number of set bits\n\t function bnBitCount() {\n\t var r = 0, x = this.s&this.DM;\n\t for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x);\n\t return r;\n\t }\n\t\n\t // (public) true iff nth bit is set\n\t function bnTestBit(n) {\n\t var j = Math.floor(n/this.DB);\n\t if(j >= this.t) return(this.s!=0);\n\t return((this[j]&(1<<(n%this.DB)))!=0);\n\t }\n\t\n\t // (protected) this op (1<>= this.DB;\n\t }\n\t if(a.t < this.t) {\n\t c += a.s;\n\t while(i < this.t) {\n\t c += this[i];\n\t r[i++] = c&this.DM;\n\t c >>= this.DB;\n\t }\n\t c += this.s;\n\t }\n\t else {\n\t c += this.s;\n\t while(i < a.t) {\n\t c += a[i];\n\t r[i++] = c&this.DM;\n\t c >>= this.DB;\n\t }\n\t c += a.s;\n\t }\n\t r.s = (c<0)?-1:0;\n\t if(c > 0) r[i++] = c;\n\t else if(c < -1) r[i++] = this.DV+c;\n\t r.t = i;\n\t r.clamp();\n\t }\n\t\n\t // (public) this + a\n\t function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; }\n\t\n\t // (public) this - a\n\t function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; }\n\t\n\t // (public) this * a\n\t function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; }\n\t\n\t // (public) this^2\n\t function bnSquare() { var r = nbi(); this.squareTo(r); return r; }\n\t\n\t // (public) this / a\n\t function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }\n\t\n\t // (public) this % a\n\t function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; }\n\t\n\t // (public) [this/a,this%a]\n\t function bnDivideAndRemainder(a) {\n\t var q = nbi(), r = nbi();\n\t this.divRemTo(a,q,r);\n\t return new Array(q,r);\n\t }\n\t\n\t // (protected) this *= n, this >= 0, 1 < n < DV\n\t function bnpDMultiply(n) {\n\t this[this.t] = this.am(0,n-1,this,0,0,this.t);\n\t ++this.t;\n\t this.clamp();\n\t }\n\t\n\t // (protected) this += n << w words, this >= 0\n\t function bnpDAddOffset(n,w) {\n\t if(n == 0) return;\n\t while(this.t <= w) this[this.t++] = 0;\n\t this[w] += n;\n\t while(this[w] >= this.DV) {\n\t this[w] -= this.DV;\n\t if(++w >= this.t) this[this.t++] = 0;\n\t ++this[w];\n\t }\n\t }\n\t\n\t // A \"null\" reducer\n\t function NullExp() {}\n\t function nNop(x) { return x; }\n\t function nMulTo(x,y,r) { x.multiplyTo(y,r); }\n\t function nSqrTo(x,r) { x.squareTo(r); }\n\t\n\t NullExp.prototype.convert = nNop;\n\t NullExp.prototype.revert = nNop;\n\t NullExp.prototype.mulTo = nMulTo;\n\t NullExp.prototype.sqrTo = nSqrTo;\n\t\n\t // (public) this^e\n\t function bnPow(e) { return this.exp(e,new NullExp()); }\n\t\n\t // (protected) r = lower n words of \"this * a\", a.t <= n\n\t // \"this\" should be the larger one if appropriate.\n\t function bnpMultiplyLowerTo(a,n,r) {\n\t var i = Math.min(this.t+a.t,n);\n\t r.s = 0; // assumes a,this >= 0\n\t r.t = i;\n\t while(i > 0) r[--i] = 0;\n\t var j;\n\t for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t);\n\t for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i);\n\t r.clamp();\n\t }\n\t\n\t // (protected) r = \"this * a\" without lower n words, n > 0\n\t // \"this\" should be the larger one if appropriate.\n\t function bnpMultiplyUpperTo(a,n,r) {\n\t --n;\n\t var i = r.t = this.t+a.t-n;\n\t r.s = 0; // assumes a,this >= 0\n\t while(--i >= 0) r[i] = 0;\n\t for(i = Math.max(n-this.t,0); i < a.t; ++i)\n\t r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n);\n\t r.clamp();\n\t r.drShiftTo(1,r);\n\t }\n\t\n\t // Barrett modular reduction\n\t function Barrett(m) {\n\t // setup Barrett\n\t this.r2 = nbi();\n\t this.q3 = nbi();\n\t BigInteger.ONE.dlShiftTo(2*m.t,this.r2);\n\t this.mu = this.r2.divide(m);\n\t this.m = m;\n\t }\n\t\n\t function barrettConvert(x) {\n\t if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m);\n\t else if(x.compareTo(this.m) < 0) return x;\n\t else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; }\n\t }\n\t\n\t function barrettRevert(x) { return x; }\n\t\n\t // x = x mod m (HAC 14.42)\n\t function barrettReduce(x) {\n\t x.drShiftTo(this.m.t-1,this.r2);\n\t if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); }\n\t this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);\n\t this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);\n\t while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1);\n\t x.subTo(this.r2,x);\n\t while(x.compareTo(this.m) >= 0) x.subTo(this.m,x);\n\t }\n\t\n\t // r = x^2 mod m; x != r\n\t function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); }\n\t\n\t // r = x*y mod m; x,y != r\n\t function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }\n\t\n\t Barrett.prototype.convert = barrettConvert;\n\t Barrett.prototype.revert = barrettRevert;\n\t Barrett.prototype.reduce = barrettReduce;\n\t Barrett.prototype.mulTo = barrettMulTo;\n\t Barrett.prototype.sqrTo = barrettSqrTo;\n\t\n\t // (public) this^e % m (HAC 14.85)\n\t function bnModPow(e,m) {\n\t var i = e.bitLength(), k, r = nbv(1), z;\n\t if(i <= 0) return r;\n\t else if(i < 18) k = 1;\n\t else if(i < 48) k = 3;\n\t else if(i < 144) k = 4;\n\t else if(i < 768) k = 5;\n\t else k = 6;\n\t if(i < 8)\n\t z = new Classic(m);\n\t else if(m.isEven())\n\t z = new Barrett(m);\n\t else\n\t z = new Montgomery(m);\n\t\n\t // precomputation\n\t var g = new Array(), n = 3, k1 = k-1, km = (1< 1) {\n\t var g2 = nbi();\n\t z.sqrTo(g[1],g2);\n\t while(n <= km) {\n\t g[n] = nbi();\n\t z.mulTo(g2,g[n-2],g[n]);\n\t n += 2;\n\t }\n\t }\n\t\n\t var j = e.t-1, w, is1 = true, r2 = nbi(), t;\n\t i = nbits(e[j])-1;\n\t while(j >= 0) {\n\t if(i >= k1) w = (e[j]>>(i-k1))&km;\n\t else {\n\t w = (e[j]&((1<<(i+1))-1))<<(k1-i);\n\t if(j > 0) w |= e[j-1]>>(this.DB+i-k1);\n\t }\n\t\n\t n = k;\n\t while((w&1) == 0) { w >>= 1; --n; }\n\t if((i -= n) < 0) { i += this.DB; --j; }\n\t if(is1) {\t// ret == 1, don't bother squaring or multiplying it\n\t g[w].copyTo(r);\n\t is1 = false;\n\t }\n\t else {\n\t while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; }\n\t if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; }\n\t z.mulTo(r2,g[w],r);\n\t }\n\t\n\t while(j >= 0 && (e[j]&(1< 0) {\n\t x.rShiftTo(g,x);\n\t y.rShiftTo(g,y);\n\t }\n\t while(x.signum() > 0) {\n\t if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x);\n\t if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y);\n\t if(x.compareTo(y) >= 0) {\n\t x.subTo(y,x);\n\t x.rShiftTo(1,x);\n\t }\n\t else {\n\t y.subTo(x,y);\n\t y.rShiftTo(1,y);\n\t }\n\t }\n\t if(g > 0) y.lShiftTo(g,y);\n\t return y;\n\t }\n\t\n\t // (protected) this % n, n < 2^26\n\t function bnpModInt(n) {\n\t if(n <= 0) return 0;\n\t var d = this.DV%n, r = (this.s<0)?n-1:0;\n\t if(this.t > 0)\n\t if(d == 0) r = this[0]%n;\n\t else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n\t return r;\n\t }\n\t\n\t // (public) 1/this % m (HAC 14.61)\n\t function bnModInverse(m) {\n\t var ac = m.isEven();\n\t if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;\n\t var u = m.clone(), v = this.clone();\n\t var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1);\n\t while(u.signum() != 0) {\n\t while(u.isEven()) {\n\t u.rShiftTo(1,u);\n\t if(ac) {\n\t if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); }\n\t a.rShiftTo(1,a);\n\t }\n\t else if(!b.isEven()) b.subTo(m,b);\n\t b.rShiftTo(1,b);\n\t }\n\t while(v.isEven()) {\n\t v.rShiftTo(1,v);\n\t if(ac) {\n\t if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); }\n\t c.rShiftTo(1,c);\n\t }\n\t else if(!d.isEven()) d.subTo(m,d);\n\t d.rShiftTo(1,d);\n\t }\n\t if(u.compareTo(v) >= 0) {\n\t u.subTo(v,u);\n\t if(ac) a.subTo(c,a);\n\t b.subTo(d,b);\n\t }\n\t else {\n\t v.subTo(u,v);\n\t if(ac) c.subTo(a,c);\n\t d.subTo(b,d);\n\t }\n\t }\n\t if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO;\n\t if(d.compareTo(m) >= 0) return d.subtract(m);\n\t if(d.signum() < 0) d.addTo(m,d); else return d;\n\t if(d.signum() < 0) return d.add(m); else return d;\n\t }\n\t\n\t var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];\n\t var lplim = (1<<26)/lowprimes[lowprimes.length-1];\n\t\n\t // (public) test primality with certainty >= 1-.5^t\n\t function bnIsProbablePrime(t) {\n\t var i, x = this.abs();\n\t if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) {\n\t for(i = 0; i < lowprimes.length; ++i)\n\t if(x[0] == lowprimes[i]) return true;\n\t return false;\n\t }\n\t if(x.isEven()) return false;\n\t i = 1;\n\t while(i < lowprimes.length) {\n\t var m = lowprimes[i], j = i+1;\n\t while(j < lowprimes.length && m < lplim) m *= lowprimes[j++];\n\t m = x.modInt(m);\n\t while(i < j) if(m%lowprimes[i++] == 0) return false;\n\t }\n\t return x.millerRabin(t);\n\t }\n\t\n\t // (protected) true if probably prime (HAC 4.24, Miller-Rabin)\n\t function bnpMillerRabin(t) {\n\t var n1 = this.subtract(BigInteger.ONE);\n\t var k = n1.getLowestSetBit();\n\t if(k <= 0) return false;\n\t var r = n1.shiftRight(k);\n\t t = (t+1)>>1;\n\t if(t > lowprimes.length) t = lowprimes.length;\n\t var a = nbi();\n\t for(var i = 0; i < t; ++i) {\n\t //Pick bases at random, instead of starting at 2\n\t a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);\n\t var y = a.modPow(r,this);\n\t if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {\n\t var j = 1;\n\t while(j++ < k && y.compareTo(n1) != 0) {\n\t y = y.modPowInt(2,this);\n\t if(y.compareTo(BigInteger.ONE) == 0) return false;\n\t }\n\t if(y.compareTo(n1) != 0) return false;\n\t }\n\t }\n\t return true;\n\t }\n\t\n\t // protected\n\t BigInteger.prototype.chunkSize = bnpChunkSize;\n\t BigInteger.prototype.toRadix = bnpToRadix;\n\t BigInteger.prototype.fromRadix = bnpFromRadix;\n\t BigInteger.prototype.fromNumber = bnpFromNumber;\n\t BigInteger.prototype.bitwiseTo = bnpBitwiseTo;\n\t BigInteger.prototype.changeBit = bnpChangeBit;\n\t BigInteger.prototype.addTo = bnpAddTo;\n\t BigInteger.prototype.dMultiply = bnpDMultiply;\n\t BigInteger.prototype.dAddOffset = bnpDAddOffset;\n\t BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;\n\t BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;\n\t BigInteger.prototype.modInt = bnpModInt;\n\t BigInteger.prototype.millerRabin = bnpMillerRabin;\n\t\n\t // public\n\t BigInteger.prototype.clone = bnClone;\n\t BigInteger.prototype.intValue = bnIntValue;\n\t BigInteger.prototype.byteValue = bnByteValue;\n\t BigInteger.prototype.shortValue = bnShortValue;\n\t BigInteger.prototype.signum = bnSigNum;\n\t BigInteger.prototype.toByteArray = bnToByteArray;\n\t BigInteger.prototype.equals = bnEquals;\n\t BigInteger.prototype.min = bnMin;\n\t BigInteger.prototype.max = bnMax;\n\t BigInteger.prototype.and = bnAnd;\n\t BigInteger.prototype.or = bnOr;\n\t BigInteger.prototype.xor = bnXor;\n\t BigInteger.prototype.andNot = bnAndNot;\n\t BigInteger.prototype.not = bnNot;\n\t BigInteger.prototype.shiftLeft = bnShiftLeft;\n\t BigInteger.prototype.shiftRight = bnShiftRight;\n\t BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;\n\t BigInteger.prototype.bitCount = bnBitCount;\n\t BigInteger.prototype.testBit = bnTestBit;\n\t BigInteger.prototype.setBit = bnSetBit;\n\t BigInteger.prototype.clearBit = bnClearBit;\n\t BigInteger.prototype.flipBit = bnFlipBit;\n\t BigInteger.prototype.add = bnAdd;\n\t BigInteger.prototype.subtract = bnSubtract;\n\t BigInteger.prototype.multiply = bnMultiply;\n\t BigInteger.prototype.divide = bnDivide;\n\t BigInteger.prototype.remainder = bnRemainder;\n\t BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;\n\t BigInteger.prototype.modPow = bnModPow;\n\t BigInteger.prototype.modInverse = bnModInverse;\n\t BigInteger.prototype.pow = bnPow;\n\t BigInteger.prototype.gcd = bnGCD;\n\t BigInteger.prototype.isProbablePrime = bnIsProbablePrime;\n\t\n\t // JSBN-specific extension\n\t BigInteger.prototype.square = bnSquare;\n\t\n\t // Expose the Barrett function\n\t BigInteger.prototype.Barrett = Barrett\n\t\n\t // BigInteger interfaces not implemented in jsbn:\n\t\n\t // BigInteger(int signum, byte[] magnitude)\n\t // double doubleValue()\n\t // float floatValue()\n\t // int hashCode()\n\t // long longValue()\n\t // static BigInteger valueOf(long val)\n\t\n\t\t// Random number generator - requires a PRNG backend, e.g. prng4.js\n\t\n\t\t// For best results, put code like\n\t\t// \n\t\t// in your main HTML document.\n\t\n\t\tvar rng_state;\n\t\tvar rng_pool;\n\t\tvar rng_pptr;\n\t\n\t\t// Mix in a 32-bit integer into the pool\n\t\tfunction rng_seed_int(x) {\n\t\t rng_pool[rng_pptr++] ^= x & 255;\n\t\t rng_pool[rng_pptr++] ^= (x >> 8) & 255;\n\t\t rng_pool[rng_pptr++] ^= (x >> 16) & 255;\n\t\t rng_pool[rng_pptr++] ^= (x >> 24) & 255;\n\t\t if(rng_pptr >= rng_psize) rng_pptr -= rng_psize;\n\t\t}\n\t\n\t\t// Mix in the current time (w/milliseconds) into the pool\n\t\tfunction rng_seed_time() {\n\t\t rng_seed_int(new Date().getTime());\n\t\t}\n\t\n\t\t// Initialize the pool with junk if needed.\n\t\tif(rng_pool == null) {\n\t\t rng_pool = new Array();\n\t\t rng_pptr = 0;\n\t\t var t;\n\t\t if(typeof window !== \"undefined\" && window.crypto) {\n\t\t\tif (window.crypto.getRandomValues) {\n\t\t\t // Use webcrypto if available\n\t\t\t var ua = new Uint8Array(32);\n\t\t\t window.crypto.getRandomValues(ua);\n\t\t\t for(t = 0; t < 32; ++t)\n\t\t\t\trng_pool[rng_pptr++] = ua[t];\n\t\t\t}\n\t\t\telse if(navigator.appName == \"Netscape\" && navigator.appVersion < \"5\") {\n\t\t\t // Extract entropy (256 bits) from NS4 RNG if available\n\t\t\t var z = window.crypto.random(32);\n\t\t\t for(t = 0; t < z.length; ++t)\n\t\t\t\trng_pool[rng_pptr++] = z.charCodeAt(t) & 255;\n\t\t\t}\n\t\t }\n\t\t while(rng_pptr < rng_psize) { // extract some randomness from Math.random()\n\t\t\tt = Math.floor(65536 * Math.random());\n\t\t\trng_pool[rng_pptr++] = t >>> 8;\n\t\t\trng_pool[rng_pptr++] = t & 255;\n\t\t }\n\t\t rng_pptr = 0;\n\t\t rng_seed_time();\n\t\t //rng_seed_int(window.screenX);\n\t\t //rng_seed_int(window.screenY);\n\t\t}\n\t\n\t\tfunction rng_get_byte() {\n\t\t if(rng_state == null) {\n\t\t\trng_seed_time();\n\t\t\trng_state = prng_newstate();\n\t\t\trng_state.init(rng_pool);\n\t\t\tfor(rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr)\n\t\t\t rng_pool[rng_pptr] = 0;\n\t\t\trng_pptr = 0;\n\t\t\t//rng_pool = null;\n\t\t }\n\t\t // TODO: allow reseeding after first request\n\t\t return rng_state.next();\n\t\t}\n\t\n\t\tfunction rng_get_bytes(ba) {\n\t\t var i;\n\t\t for(i = 0; i < ba.length; ++i) ba[i] = rng_get_byte();\n\t\t}\n\t\n\t\tfunction SecureRandom() {}\n\t\n\t\tSecureRandom.prototype.nextBytes = rng_get_bytes;\n\t\n\t\t// prng4.js - uses Arcfour as a PRNG\n\t\n\t\tfunction Arcfour() {\n\t\t this.i = 0;\n\t\t this.j = 0;\n\t\t this.S = new Array();\n\t\t}\n\t\n\t\t// Initialize arcfour context from key, an array of ints, each from [0..255]\n\t\tfunction ARC4init(key) {\n\t\t var i, j, t;\n\t\t for(i = 0; i < 256; ++i)\n\t\t\tthis.S[i] = i;\n\t\t j = 0;\n\t\t for(i = 0; i < 256; ++i) {\n\t\t\tj = (j + this.S[i] + key[i % key.length]) & 255;\n\t\t\tt = this.S[i];\n\t\t\tthis.S[i] = this.S[j];\n\t\t\tthis.S[j] = t;\n\t\t }\n\t\t this.i = 0;\n\t\t this.j = 0;\n\t\t}\n\t\n\t\tfunction ARC4next() {\n\t\t var t;\n\t\t this.i = (this.i + 1) & 255;\n\t\t this.j = (this.j + this.S[this.i]) & 255;\n\t\t t = this.S[this.i];\n\t\t this.S[this.i] = this.S[this.j];\n\t\t this.S[this.j] = t;\n\t\t return this.S[(t + this.S[this.i]) & 255];\n\t\t}\n\t\n\t\tArcfour.prototype.init = ARC4init;\n\t\tArcfour.prototype.next = ARC4next;\n\t\n\t\t// Plug in your RNG constructor here\n\t\tfunction prng_newstate() {\n\t\t return new Arcfour();\n\t\t}\n\t\n\t\t// Pool size must be a multiple of 4 and greater than 32.\n\t\t// An array of bytes the size of the pool will be passed to init()\n\t\tvar rng_psize = 256;\n\t\n\t BigInteger.SecureRandom = SecureRandom;\n\t BigInteger.BigInteger = BigInteger;\n\t if (true) {\n\t exports = module.exports = BigInteger;\n\t } else {\n\t this.BigInteger = BigInteger;\n\t this.SecureRandom = SecureRandom;\n\t }\n\t\n\t}).call(this);\n\n\n/***/ },\n/* 32 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * Check if `fn` is a function.\n\t *\n\t * @param {Function} fn\n\t * @return {Boolean}\n\t * @api private\n\t */\n\tvar isObject = __webpack_require__(14);\n\t\n\tfunction isFunction(fn) {\n\t var tag = isObject(fn) ? Object.prototype.toString.call(fn) : '';\n\t return tag === '[object Function]';\n\t}\n\t\n\tmodule.exports = isFunction;\n\n\n/***/ },\n/* 33 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * Module of mixed-in functions shared between node and client code\n\t */\n\tvar isObject = __webpack_require__(14);\n\t\n\t/**\n\t * Expose `RequestBase`.\n\t */\n\t\n\tmodule.exports = RequestBase;\n\t\n\t/**\n\t * Initialize a new `RequestBase`.\n\t *\n\t * @api public\n\t */\n\t\n\tfunction RequestBase(obj) {\n\t if (obj) return mixin(obj);\n\t}\n\t\n\t/**\n\t * Mixin the prototype properties.\n\t *\n\t * @param {Object} obj\n\t * @return {Object}\n\t * @api private\n\t */\n\t\n\tfunction mixin(obj) {\n\t for (var key in RequestBase.prototype) {\n\t obj[key] = RequestBase.prototype[key];\n\t }\n\t return obj;\n\t}\n\t\n\t/**\n\t * Clear previous timeout.\n\t *\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.clearTimeout = function _clearTimeout(){\n\t clearTimeout(this._timer);\n\t clearTimeout(this._responseTimeoutTimer);\n\t delete this._timer;\n\t delete this._responseTimeoutTimer;\n\t return this;\n\t};\n\t\n\t/**\n\t * Override default response body parser\n\t *\n\t * This function will be called to convert incoming data into request.body\n\t *\n\t * @param {Function}\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.parse = function parse(fn){\n\t this._parser = fn;\n\t return this;\n\t};\n\t\n\t/**\n\t * Set format of binary response body.\n\t * In browser valid formats are 'blob' and 'arraybuffer',\n\t * which return Blob and ArrayBuffer, respectively.\n\t *\n\t * In Node all values result in Buffer.\n\t *\n\t * Examples:\n\t *\n\t * req.get('/')\n\t * .responseType('blob')\n\t * .end(callback);\n\t *\n\t * @param {String} val\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.responseType = function(val){\n\t this._responseType = val;\n\t return this;\n\t};\n\t\n\t/**\n\t * Override default request body serializer\n\t *\n\t * This function will be called to convert data set via .send or .attach into payload to send\n\t *\n\t * @param {Function}\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.serialize = function serialize(fn){\n\t this._serializer = fn;\n\t return this;\n\t};\n\t\n\t/**\n\t * Set timeouts.\n\t *\n\t * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.\n\t * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.\n\t *\n\t * Value of 0 or false means no timeout.\n\t *\n\t * @param {Number|Object} ms or {response, read, deadline}\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.timeout = function timeout(options){\n\t if (!options || 'object' !== typeof options) {\n\t this._timeout = options;\n\t this._responseTimeout = 0;\n\t return this;\n\t }\n\t\n\t for(var option in options) {\n\t switch(option) {\n\t case 'deadline':\n\t this._timeout = options.deadline;\n\t break;\n\t case 'response':\n\t this._responseTimeout = options.response;\n\t break;\n\t default:\n\t console.warn(\"Unknown timeout option\", option);\n\t }\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Set number of retry attempts on error.\n\t *\n\t * Failed requests will be retried 'count' times if timeout or err.code >= 500.\n\t *\n\t * @param {Number} count\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.retry = function retry(count){\n\t // Default to 1 if no count passed or true\n\t if (arguments.length === 0 || count === true) count = 1;\n\t if (count <= 0) count = 0;\n\t this._maxRetries = count;\n\t this._retries = 0;\n\t return this;\n\t};\n\t\n\t/**\n\t * Retry request\n\t *\n\t * @return {Request} for chaining\n\t * @api private\n\t */\n\t\n\tRequestBase.prototype._retry = function() {\n\t this.clearTimeout();\n\t\n\t // node\n\t if (this.req) {\n\t this.req = null;\n\t this.req = this.request();\n\t }\n\t\n\t this._aborted = false;\n\t this.timedout = false;\n\t\n\t return this._end();\n\t};\n\t\n\t/**\n\t * Promise support\n\t *\n\t * @param {Function} resolve\n\t * @param {Function} [reject]\n\t * @return {Request}\n\t */\n\t\n\tRequestBase.prototype.then = function then(resolve, reject) {\n\t if (!this._fullfilledPromise) {\n\t var self = this;\n\t if (this._endCalled) {\n\t console.warn(\"Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises\");\n\t }\n\t this._fullfilledPromise = new Promise(function(innerResolve, innerReject){\n\t self.end(function(err, res){\n\t if (err) innerReject(err); else innerResolve(res);\n\t });\n\t });\n\t }\n\t return this._fullfilledPromise.then(resolve, reject);\n\t}\n\t\n\tRequestBase.prototype.catch = function(cb) {\n\t return this.then(undefined, cb);\n\t};\n\t\n\t/**\n\t * Allow for extension\n\t */\n\t\n\tRequestBase.prototype.use = function use(fn) {\n\t fn(this);\n\t return this;\n\t}\n\t\n\tRequestBase.prototype.ok = function(cb) {\n\t if ('function' !== typeof cb) throw Error(\"Callback required\");\n\t this._okCallback = cb;\n\t return this;\n\t};\n\t\n\tRequestBase.prototype._isResponseOK = function(res) {\n\t if (!res) {\n\t return false;\n\t }\n\t\n\t if (this._okCallback) {\n\t return this._okCallback(res);\n\t }\n\t\n\t return res.status >= 200 && res.status < 300;\n\t};\n\t\n\t\n\t/**\n\t * Get request header `field`.\n\t * Case-insensitive.\n\t *\n\t * @param {String} field\n\t * @return {String}\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.get = function(field){\n\t return this._header[field.toLowerCase()];\n\t};\n\t\n\t/**\n\t * Get case-insensitive header `field` value.\n\t * This is a deprecated internal API. Use `.get(field)` instead.\n\t *\n\t * (getHeader is no longer used internally by the superagent code base)\n\t *\n\t * @param {String} field\n\t * @return {String}\n\t * @api private\n\t * @deprecated\n\t */\n\t\n\tRequestBase.prototype.getHeader = RequestBase.prototype.get;\n\t\n\t/**\n\t * Set header `field` to `val`, or multiple fields with one object.\n\t * Case-insensitive.\n\t *\n\t * Examples:\n\t *\n\t * req.get('/')\n\t * .set('Accept', 'application/json')\n\t * .set('X-API-Key', 'foobar')\n\t * .end(callback);\n\t *\n\t * req.get('/')\n\t * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })\n\t * .end(callback);\n\t *\n\t * @param {String|Object} field\n\t * @param {String} val\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.set = function(field, val){\n\t if (isObject(field)) {\n\t for (var key in field) {\n\t this.set(key, field[key]);\n\t }\n\t return this;\n\t }\n\t this._header[field.toLowerCase()] = val;\n\t this.header[field] = val;\n\t return this;\n\t};\n\t\n\t/**\n\t * Remove header `field`.\n\t * Case-insensitive.\n\t *\n\t * Example:\n\t *\n\t * req.get('/')\n\t * .unset('User-Agent')\n\t * .end(callback);\n\t *\n\t * @param {String} field\n\t */\n\tRequestBase.prototype.unset = function(field){\n\t delete this._header[field.toLowerCase()];\n\t delete this.header[field];\n\t return this;\n\t};\n\t\n\t/**\n\t * Write the field `name` and `val`, or multiple fields with one object\n\t * for \"multipart/form-data\" request bodies.\n\t *\n\t * ``` js\n\t * request.post('/upload')\n\t * .field('foo', 'bar')\n\t * .end(callback);\n\t *\n\t * request.post('/upload')\n\t * .field({ foo: 'bar', baz: 'qux' })\n\t * .end(callback);\n\t * ```\n\t *\n\t * @param {String|Object} name\n\t * @param {String|Blob|File|Buffer|fs.ReadStream} val\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\tRequestBase.prototype.field = function(name, val) {\n\t\n\t // name should be either a string or an object.\n\t if (null === name || undefined === name) {\n\t throw new Error('.field(name, val) name can not be empty');\n\t }\n\t\n\t if (this._data) {\n\t console.error(\".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()\");\n\t }\n\t\n\t if (isObject(name)) {\n\t for (var key in name) {\n\t this.field(key, name[key]);\n\t }\n\t return this;\n\t }\n\t\n\t if (Array.isArray(val)) {\n\t for (var i in val) {\n\t this.field(name, val[i]);\n\t }\n\t return this;\n\t }\n\t\n\t // val should be defined now\n\t if (null === val || undefined === val) {\n\t throw new Error('.field(name, val) val can not be empty');\n\t }\n\t if ('boolean' === typeof val) {\n\t val = '' + val;\n\t }\n\t this._getFormData().append(name, val);\n\t return this;\n\t};\n\t\n\t/**\n\t * Abort the request, and clear potential timeout.\n\t *\n\t * @return {Request}\n\t * @api public\n\t */\n\tRequestBase.prototype.abort = function(){\n\t if (this._aborted) {\n\t return this;\n\t }\n\t this._aborted = true;\n\t this.xhr && this.xhr.abort(); // browser\n\t this.req && this.req.abort(); // node\n\t this.clearTimeout();\n\t this.emit('abort');\n\t return this;\n\t};\n\t\n\t/**\n\t * Enable transmission of cookies with x-domain requests.\n\t *\n\t * Note that for this to work the origin must not be\n\t * using \"Access-Control-Allow-Origin\" with a wildcard,\n\t * and also must set \"Access-Control-Allow-Credentials\"\n\t * to \"true\".\n\t *\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.withCredentials = function(on){\n\t // This is browser-only functionality. Node side is no-op.\n\t if(on==undefined) on = true;\n\t this._withCredentials = on;\n\t return this;\n\t};\n\t\n\t/**\n\t * Set the max redirects to `n`. Does noting in browser XHR implementation.\n\t *\n\t * @param {Number} n\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.redirects = function(n){\n\t this._maxRedirects = n;\n\t return this;\n\t};\n\t\n\t/**\n\t * Convert to a plain javascript object (not JSON string) of scalar properties.\n\t * Note as this method is designed to return a useful non-this value,\n\t * it cannot be chained.\n\t *\n\t * @return {Object} describing method, url, and data of this request\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.toJSON = function(){\n\t return {\n\t method: this.method,\n\t url: this.url,\n\t data: this._data,\n\t headers: this._header\n\t };\n\t};\n\t\n\t\n\t/**\n\t * Send `data` as the request body, defaulting the `.type()` to \"json\" when\n\t * an object is given.\n\t *\n\t * Examples:\n\t *\n\t * // manual json\n\t * request.post('/user')\n\t * .type('json')\n\t * .send('{\"name\":\"tj\"}')\n\t * .end(callback)\n\t *\n\t * // auto json\n\t * request.post('/user')\n\t * .send({ name: 'tj' })\n\t * .end(callback)\n\t *\n\t * // manual x-www-form-urlencoded\n\t * request.post('/user')\n\t * .type('form')\n\t * .send('name=tj')\n\t * .end(callback)\n\t *\n\t * // auto x-www-form-urlencoded\n\t * request.post('/user')\n\t * .type('form')\n\t * .send({ name: 'tj' })\n\t * .end(callback)\n\t *\n\t * // defaults to x-www-form-urlencoded\n\t * request.post('/user')\n\t * .send('name=tobi')\n\t * .send('species=ferret')\n\t * .end(callback)\n\t *\n\t * @param {String|Object} data\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.send = function(data){\n\t var isObj = isObject(data);\n\t var type = this._header['content-type'];\n\t\n\t if (this._formData) {\n\t console.error(\".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()\");\n\t }\n\t\n\t if (isObj && !this._data) {\n\t if (Array.isArray(data)) {\n\t this._data = [];\n\t } else if (!this._isHost(data)) {\n\t this._data = {};\n\t }\n\t } else if (data && this._data && this._isHost(this._data)) {\n\t throw Error(\"Can't merge these send calls\");\n\t }\n\t\n\t // merge\n\t if (isObj && isObject(this._data)) {\n\t for (var key in data) {\n\t this._data[key] = data[key];\n\t }\n\t } else if ('string' == typeof data) {\n\t // default to x-www-form-urlencoded\n\t if (!type) this.type('form');\n\t type = this._header['content-type'];\n\t if ('application/x-www-form-urlencoded' == type) {\n\t this._data = this._data\n\t ? this._data + '&' + data\n\t : data;\n\t } else {\n\t this._data = (this._data || '') + data;\n\t }\n\t } else {\n\t this._data = data;\n\t }\n\t\n\t if (!isObj || this._isHost(data)) {\n\t return this;\n\t }\n\t\n\t // default to json\n\t if (!type) this.type('json');\n\t return this;\n\t};\n\t\n\t\n\t/**\n\t * Sort `querystring` by the sort function\n\t *\n\t *\n\t * Examples:\n\t *\n\t * // default order\n\t * request.get('/user')\n\t * .query('name=Nick')\n\t * .query('search=Manny')\n\t * .sortQuery()\n\t * .end(callback)\n\t *\n\t * // customized sort function\n\t * request.get('/user')\n\t * .query('name=Nick')\n\t * .query('search=Manny')\n\t * .sortQuery(function(a, b){\n\t * return a.length - b.length;\n\t * })\n\t * .end(callback)\n\t *\n\t *\n\t * @param {Function} sort\n\t * @return {Request} for chaining\n\t * @api public\n\t */\n\t\n\tRequestBase.prototype.sortQuery = function(sort) {\n\t // _sort default to true but otherwise can be a function or boolean\n\t this._sort = typeof sort === 'undefined' ? true : sort;\n\t return this;\n\t};\n\t\n\t/**\n\t * Invoke callback with timeout error.\n\t *\n\t * @api private\n\t */\n\t\n\tRequestBase.prototype._timeoutError = function(reason, timeout, errno){\n\t if (this._aborted) {\n\t return;\n\t }\n\t var err = new Error(reason + timeout + 'ms exceeded');\n\t err.timeout = timeout;\n\t err.code = 'ECONNABORTED';\n\t err.errno = errno;\n\t this.timedout = true;\n\t this.abort();\n\t this.callback(err);\n\t};\n\t\n\tRequestBase.prototype._setTimeouts = function() {\n\t var self = this;\n\t\n\t // deadline\n\t if (this._timeout && !this._timer) {\n\t this._timer = setTimeout(function(){\n\t self._timeoutError('Timeout of ', self._timeout, 'ETIME');\n\t }, this._timeout);\n\t }\n\t // response timeout\n\t if (this._responseTimeout && !this._responseTimeoutTimer) {\n\t this._responseTimeoutTimer = setTimeout(function(){\n\t self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');\n\t }, this._responseTimeout);\n\t }\n\t}\n\n\n/***/ },\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\n\t/**\n\t * Module dependencies.\n\t */\n\t\n\tvar utils = __webpack_require__(36);\n\t\n\t/**\n\t * Expose `ResponseBase`.\n\t */\n\t\n\tmodule.exports = ResponseBase;\n\t\n\t/**\n\t * Initialize a new `ResponseBase`.\n\t *\n\t * @api public\n\t */\n\t\n\tfunction ResponseBase(obj) {\n\t if (obj) return mixin(obj);\n\t}\n\t\n\t/**\n\t * Mixin the prototype properties.\n\t *\n\t * @param {Object} obj\n\t * @return {Object}\n\t * @api private\n\t */\n\t\n\tfunction mixin(obj) {\n\t for (var key in ResponseBase.prototype) {\n\t obj[key] = ResponseBase.prototype[key];\n\t }\n\t return obj;\n\t}\n\t\n\t/**\n\t * Get case-insensitive `field` value.\n\t *\n\t * @param {String} field\n\t * @return {String}\n\t * @api public\n\t */\n\t\n\tResponseBase.prototype.get = function(field){\n\t return this.header[field.toLowerCase()];\n\t};\n\t\n\t/**\n\t * Set header related properties:\n\t *\n\t * - `.type` the content type without params\n\t *\n\t * A response of \"Content-Type: text/plain; charset=utf-8\"\n\t * will provide you with a `.type` of \"text/plain\".\n\t *\n\t * @param {Object} header\n\t * @api private\n\t */\n\t\n\tResponseBase.prototype._setHeaderProperties = function(header){\n\t // TODO: moar!\n\t // TODO: make this a util\n\t\n\t // content-type\n\t var ct = header['content-type'] || '';\n\t this.type = utils.type(ct);\n\t\n\t // params\n\t var params = utils.params(ct);\n\t for (var key in params) this[key] = params[key];\n\t\n\t this.links = {};\n\t\n\t // links\n\t try {\n\t if (header.link) {\n\t this.links = utils.parseLinks(header.link);\n\t }\n\t } catch (err) {\n\t // ignore\n\t }\n\t};\n\t\n\t/**\n\t * Set flags such as `.ok` based on `status`.\n\t *\n\t * For example a 2xx response will give you a `.ok` of __true__\n\t * whereas 5xx will be __false__ and `.error` will be __true__. The\n\t * `.clientError` and `.serverError` are also available to be more\n\t * specific, and `.statusType` is the class of error ranging from 1..5\n\t * sometimes useful for mapping respond colors etc.\n\t *\n\t * \"sugar\" properties are also defined for common cases. Currently providing:\n\t *\n\t * - .noContent\n\t * - .badRequest\n\t * - .unauthorized\n\t * - .notAcceptable\n\t * - .notFound\n\t *\n\t * @param {Number} status\n\t * @api private\n\t */\n\t\n\tResponseBase.prototype._setStatusProperties = function(status){\n\t var type = status / 100 | 0;\n\t\n\t // status / class\n\t this.status = this.statusCode = status;\n\t this.statusType = type;\n\t\n\t // basics\n\t this.info = 1 == type;\n\t this.ok = 2 == type;\n\t this.redirect = 3 == type;\n\t this.clientError = 4 == type;\n\t this.serverError = 5 == type;\n\t this.error = (4 == type || 5 == type)\n\t ? this.toError()\n\t : false;\n\t\n\t // sugar\n\t this.accepted = 202 == status;\n\t this.noContent = 204 == status;\n\t this.badRequest = 400 == status;\n\t this.unauthorized = 401 == status;\n\t this.notAcceptable = 406 == status;\n\t this.forbidden = 403 == status;\n\t this.notFound = 404 == status;\n\t};\n\n\n/***/ },\n/* 35 */\n/***/ function(module, exports) {\n\n\tvar ERROR_CODES = [\n\t 'ECONNRESET',\n\t 'ETIMEDOUT',\n\t 'EADDRINFO',\n\t 'ESOCKETTIMEDOUT'\n\t];\n\t\n\t/**\n\t * Determine if a request should be retried.\n\t * (Borrowed from segmentio/superagent-retry)\n\t *\n\t * @param {Error} err\n\t * @param {Response} [res]\n\t * @returns {Boolean}\n\t */\n\tmodule.exports = function shouldRetry(err, res) {\n\t if (err && err.code && ~ERROR_CODES.indexOf(err.code)) return true;\n\t if (res && res.status && res.status >= 500) return true;\n\t // Superagent timeout\n\t if (err && 'timeout' in err && err.code == 'ECONNABORTED') return true;\n\t return false;\n\t};\n\n/***/ },\n/* 36 */\n/***/ function(module, exports) {\n\n\t\n\t/**\n\t * Return the mime type for the given `str`.\n\t *\n\t * @param {String} str\n\t * @return {String}\n\t * @api private\n\t */\n\t\n\texports.type = function(str){\n\t return str.split(/ *; */).shift();\n\t};\n\t\n\t/**\n\t * Return header field parameters.\n\t *\n\t * @param {String} str\n\t * @return {Object}\n\t * @api private\n\t */\n\t\n\texports.params = function(str){\n\t return str.split(/ *; */).reduce(function(obj, str){\n\t var parts = str.split(/ *= */);\n\t var key = parts.shift();\n\t var val = parts.shift();\n\t\n\t if (key && val) obj[key] = val;\n\t return obj;\n\t }, {});\n\t};\n\t\n\t/**\n\t * Parse Link header fields.\n\t *\n\t * @param {String} str\n\t * @return {Object}\n\t * @api private\n\t */\n\t\n\texports.parseLinks = function(str){\n\t return str.split(/ *, */).reduce(function(obj, str){\n\t var parts = str.split(/ *; */);\n\t var url = parts[0].slice(1, -1);\n\t var rel = parts[1].split(/ *= */)[1].slice(1, -1);\n\t obj[rel] = url;\n\t return obj;\n\t }, {});\n\t};\n\t\n\t/**\n\t * Strip content related fields from `header`.\n\t *\n\t * @param {Object} header\n\t * @return {Object} header\n\t * @api private\n\t */\n\t\n\texports.cleanHeader = function(header, shouldStripCookie){\n\t delete header['content-type'];\n\t delete header['content-length'];\n\t delete header['transfer-encoding'];\n\t delete header['host'];\n\t if (shouldStripCookie) {\n\t delete header['cookie'];\n\t }\n\t return header;\n\t};\n\n/***/ },\n/* 37 */,\n/* 38 */,\n/* 39 */,\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\t\n\tvar objectHelper = __webpack_require__(2);\n\tvar assert = __webpack_require__(4);\n\tvar responseHandler = __webpack_require__(6);\n\t\n\tfunction DBConnection(request, options) {\n\t this.baseOptions = options;\n\t this.request = request;\n\t}\n\t\n\t/**\n\t * @callback signUpCallback\n\t * @param {Error} [err] error returned by Auth0 with the reason why the signup failed\n\t * @param {Object} [result] result of the signup request\n\t * @param {Object} result.email user's email\n\t * @param {Object} result.emailVerified if the user's email was verified\n\t */\n\t\n\t/**\n\t * Creates a new user in a Auth0 Database connection\n\t *\n\t * @method signup\n\t * @param {Object} options\n\t * @param {String} options.email user email address\n\t * @param {String} options.password user password\n\t * @param {String} options.connection name of the connection where the user will be created\n\t * @param {signUpCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#signup}\n\t */\n\tDBConnection.prototype.signup = function(options, cb) {\n\t var url;\n\t var body;\n\t\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t connection: { type: 'string', message: 'connection option is required' },\n\t email: { type: 'string', message: 'email option is required' },\n\t password: { type: 'string', message: 'password option is required' }\n\t }\n\t );\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'dbconnections', 'signup');\n\t\n\t body = objectHelper.merge(this.baseOptions, ['clientID']).with(options);\n\t\n\t body = objectHelper.blacklist(body, ['scope']);\n\t\n\t body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\t\n\t return this.request.post(url).send(body).end(responseHandler(cb));\n\t};\n\t\n\t/**\n\t * @callback changePasswordCallback\n\t * @param {Error} [err] error returned by Auth0 with the reason why the request failed\n\t */\n\t\n\t/**\n\t * Request an email with instruction to change a user's password\n\t *\n\t * @method changePassword\n\t * @param {Object} options\n\t * @param {String} options.email address where the user will recieve the change password email. It should match the user's email in Auth0\n\t * @param {String} options.connection name of the connection where the user was created\n\t * @param {changePasswordCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#change-password}\n\t */\n\tDBConnection.prototype.changePassword = function(options, cb) {\n\t var url;\n\t var body;\n\t\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t connection: { type: 'string', message: 'connection option is required' },\n\t email: { type: 'string', message: 'email option is required' }\n\t }\n\t );\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'dbconnections', 'change_password');\n\t\n\t body = objectHelper.merge(this.baseOptions, ['clientID']).with(options, ['email', 'connection']);\n\t\n\t body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\t\n\t return this.request.post(url).send(body).end(responseHandler(cb));\n\t};\n\t\n\tmodule.exports = DBConnection;\n\n\n/***/ },\n/* 41 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\t\n\tvar objectHelper = __webpack_require__(2);\n\tvar assert = __webpack_require__(4);\n\tvar qs = __webpack_require__(5);\n\tvar responseHandler = __webpack_require__(6);\n\t\n\tfunction PasswordlessAuthentication(request, options) {\n\t this.baseOptions = options;\n\t this.request = request;\n\t}\n\t\n\tPasswordlessAuthentication.prototype.buildVerifyUrl = function(options) {\n\t var params;\n\t var qString;\n\t\n\t /* eslint-disable */\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t connection: { type: 'string', message: 'connection option is required' },\n\t verificationCode: { type: 'string', message: 'verificationCode option is required' },\n\t phoneNumber: {\n\t optional: false,\n\t type: 'string',\n\t message: 'phoneNumber option is required',\n\t condition: function(o) {\n\t return !o.email;\n\t }\n\t },\n\t email: {\n\t optional: false,\n\t type: 'string',\n\t message: 'email option is required',\n\t condition: function(o) {\n\t return !o.phoneNumber;\n\t }\n\t }\n\t }\n\t );\n\t /* eslint-enable */\n\t\n\t params = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'responseType',\n\t 'responseMode',\n\t 'redirectUri',\n\t 'scope',\n\t 'audience'\n\t ])\n\t .with(options);\n\t\n\t // eslint-disable-next-line\n\t if (this.baseOptions._sendTelemetry) {\n\t params.auth0Client = this.request.getTelemetryData();\n\t }\n\t\n\t params = objectHelper.toSnakeCase(params, ['auth0Client']);\n\t\n\t qString = qs.stringify(params);\n\t\n\t return urljoin(this.baseOptions.rootUrl, 'passwordless', 'verify_redirect', '?' + qString);\n\t};\n\t\n\tPasswordlessAuthentication.prototype.start = function(options, cb) {\n\t var url;\n\t var body;\n\t\n\t /* eslint-disable */\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t connection: { type: 'string', message: 'connection option is required' },\n\t send: {\n\t type: 'string',\n\t message: 'send option is required',\n\t values: ['link', 'code'],\n\t value_message: 'send is not valid ([link, code])'\n\t },\n\t phoneNumber: {\n\t optional: true,\n\t type: 'string',\n\t message: 'phoneNumber option is required',\n\t condition: function(o) {\n\t return o.send === 'code' || !o.email;\n\t }\n\t },\n\t email: {\n\t optional: true,\n\t type: 'string',\n\t message: 'email option is required',\n\t condition: function(o) {\n\t return o.send === 'link' || !o.phoneNumber;\n\t }\n\t },\n\t authParams: { optional: true, type: 'object', message: 'authParams option is required' }\n\t }\n\t );\n\t /* eslint-enable */\n\t\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'passwordless', 'start');\n\t\n\t body = objectHelper\n\t .merge(this.baseOptions, ['clientID', 'responseType', 'redirectUri', 'scope'])\n\t .with(options);\n\t\n\t if (body.scope) {\n\t body.authParams = body.authParams || {};\n\t body.authParams.scope = body.scope;\n\t }\n\t\n\t if (body.redirectUri) {\n\t body.authParams = body.authParams || {};\n\t body.authParams.redirect_uri = body.redirectUri;\n\t }\n\t\n\t if (body.responseType) {\n\t body.authParams = body.authParams || {};\n\t body.authParams.response_type = body.responseType;\n\t }\n\t\n\t delete body.redirectUri;\n\t delete body.responseType;\n\t delete body.scope;\n\t\n\t body = objectHelper.toSnakeCase(body, ['auth0Client', 'authParams']);\n\t\n\t return this.request.post(url).send(body).end(responseHandler(cb));\n\t};\n\t\n\tPasswordlessAuthentication.prototype.verify = function(options, cb) {\n\t var url;\n\t var cleanOption;\n\t\n\t /* eslint-disable */\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t connection: { type: 'string', message: 'connection option is required' },\n\t verificationCode: { type: 'string', message: 'verificationCode option is required' },\n\t phoneNumber: {\n\t optional: false,\n\t type: 'string',\n\t message: 'phoneNumber option is required',\n\t condition: function(o) {\n\t return !o.email;\n\t }\n\t },\n\t email: {\n\t optional: false,\n\t type: 'string',\n\t message: 'email option is required',\n\t condition: function(o) {\n\t return !o.phoneNumber;\n\t }\n\t }\n\t }\n\t );\n\t /* eslint-enable */\n\t\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t cleanOption = objectHelper.toSnakeCase(options, ['auth0Client']);\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'passwordless', 'verify');\n\t\n\t return this.request.post(url).send(cleanOption).end(responseHandler(cb));\n\t};\n\t\n\tmodule.exports = PasswordlessAuthentication;\n\n\n/***/ },\n/* 42 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar windowHandler = __webpack_require__(3);\n\tvar base64Url = __webpack_require__(20);\n\t\n\tfunction create(name, value, days) {\n\t var date;\n\t var expires;\n\t\n\t if (\n\t windowHandler.getDocument().cookie === undefined ||\n\t windowHandler.getDocument().cookie === null\n\t ) {\n\t throw new Error('cookie storage not available');\n\t }\n\t\n\t if (days) {\n\t var timeToExpire = days * 24 * 60 * 60 * 1000;\n\t date = new Date();\n\t date.setTime(date.getTime() + timeToExpire);\n\t expires = '; expires=' + date.toGMTString();\n\t } else {\n\t expires = '';\n\t }\n\t\n\t windowHandler.getDocument().cookie = name + '=' + base64Url.encode(value) + expires + '; path=/';\n\t}\n\t\n\tfunction read(name) {\n\t var i;\n\t var cookie;\n\t var cookies;\n\t var nameEQ = name + '=';\n\t\n\t if (\n\t windowHandler.getDocument().cookie === undefined ||\n\t windowHandler.getDocument().cookie === null\n\t ) {\n\t throw new Error('cookie storage not available');\n\t }\n\t\n\t cookies = windowHandler.getDocument().cookie.split(';');\n\t\n\t for (i = 0; i < cookies.length; i++) {\n\t cookie = cookies[i];\n\t while (cookie.charAt(0) === ' ') {\n\t cookie = cookie.substring(1, cookie.length);\n\t }\n\t if (cookie.indexOf(nameEQ) === 0) {\n\t return base64Url.decode(cookie.substring(nameEQ.length, cookie.length));\n\t }\n\t }\n\t\n\t return null;\n\t}\n\t\n\tfunction erase(name) {\n\t create(name, '', -1);\n\t}\n\t\n\tmodule.exports = {\n\t create: create,\n\t read: read,\n\t erase: erase\n\t};\n\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar windowHelper = __webpack_require__(3);\n\t\n\tfunction IframeHandler(options) {\n\t this.url = options.url;\n\t this.callback = options.callback;\n\t this.timeout = options.timeout || 60 * 1000;\n\t this.timeoutCallback = options.timeoutCallback || null;\n\t this.eventListenerType = options.eventListenerType || 'message';\n\t this.iframe = null;\n\t this.timeoutHandle = null;\n\t this._destroyTimeout = null;\n\t this.transientMessageEventListener = null;\n\t this.proxyEventListener = null;\n\t // If no event identifier specified, set default\n\t this.eventValidator = options.eventValidator || {\n\t isValid: function() {\n\t return true;\n\t }\n\t };\n\t\n\t if (typeof this.callback !== 'function') {\n\t throw new Error('options.callback must be a function');\n\t }\n\t}\n\t\n\tIframeHandler.prototype.init = function() {\n\t var _this = this;\n\t var _window = windowHelper.getWindow();\n\t\n\t this.iframe = _window.document.createElement('iframe');\n\t this.iframe.style.display = 'none';\n\t this.iframe.src = this.url;\n\t\n\t // Workaround to avoid using bind that does not work in IE8\n\t this.proxyEventListener = function(e) {\n\t _this.eventListener(e);\n\t };\n\t\n\t switch (this.eventListenerType) {\n\t case 'message':\n\t this.eventSourceObject = _window;\n\t break;\n\t case 'load':\n\t this.eventSourceObject = this.iframe;\n\t break;\n\t default:\n\t throw new Error('Unsupported event listener type: ' + this.eventListenerType);\n\t }\n\t\n\t this.eventSourceObject.addEventListener(this.eventListenerType, this.proxyEventListener, false);\n\t\n\t _window.document.body.appendChild(this.iframe);\n\t\n\t this.timeoutHandle = setTimeout(function() {\n\t _this.timeoutHandler();\n\t }, this.timeout);\n\t};\n\t\n\tIframeHandler.prototype.eventListener = function(event) {\n\t var eventData = { event: event, sourceObject: this.eventSourceObject };\n\t\n\t if (!this.eventValidator.isValid(eventData)) {\n\t return;\n\t }\n\t\n\t this.destroy();\n\t this.callback(eventData);\n\t};\n\t\n\tIframeHandler.prototype.timeoutHandler = function() {\n\t this.destroy();\n\t if (this.timeoutCallback) {\n\t this.timeoutCallback();\n\t }\n\t};\n\t\n\tIframeHandler.prototype.destroy = function() {\n\t var _this = this;\n\t var _window = windowHelper.getWindow();\n\t\n\t clearTimeout(this.timeoutHandle);\n\t\n\t this._destroyTimeout = setTimeout(function() {\n\t _this.eventSourceObject.removeEventListener(\n\t _this.eventListenerType,\n\t _this.proxyEventListener,\n\t false\n\t );\n\t _window.document.body.removeChild(_this.iframe);\n\t }, 0);\n\t};\n\t\n\tmodule.exports = IframeHandler;\n\n\n/***/ },\n/* 44 */\n/***/ function(module, exports) {\n\n\t/* eslint-disable no-continue */\n\t\n\tfunction get() {\n\t if (!Object.assign) {\n\t return objectAssignPolyfill;\n\t }\n\t\n\t return Object.assign;\n\t}\n\t\n\tfunction objectAssignPolyfill(target) {\n\t 'use strict';\n\t if (target === undefined || target === null) {\n\t throw new TypeError('Cannot convert first argument to object');\n\t }\n\t\n\t var to = Object(target);\n\t for (var i = 1; i < arguments.length; i++) {\n\t var nextSource = arguments[i];\n\t if (nextSource === undefined || nextSource === null) {\n\t continue;\n\t }\n\t\n\t var keysArray = Object.keys(Object(nextSource));\n\t for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n\t var nextKey = keysArray[nextIndex];\n\t var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n\t if (desc !== undefined && desc.enumerable) {\n\t to[nextKey] = nextSource[nextKey];\n\t }\n\t }\n\t }\n\t return to;\n\t}\n\t\n\tmodule.exports = {\n\t get: get,\n\t objectAssignPolyfill: objectAssignPolyfill\n\t};\n\n\n/***/ },\n/* 45 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar objectHelper = __webpack_require__(2);\n\t\n\tvar tokenParams = [\n\t // auth0\n\t 'realm',\n\t 'audience',\n\t // oauth2\n\t 'client_id',\n\t 'client_secret',\n\t 'redirect_uri',\n\t 'scope',\n\t 'code',\n\t 'grant_type',\n\t 'username',\n\t 'password',\n\t 'refresh_token',\n\t 'assertion',\n\t 'client_assertion',\n\t 'client_assertion_type',\n\t 'code_verifier'\n\t];\n\t\n\tvar authorizeParams = [\n\t // auth0\n\t 'connection',\n\t 'connection_scope',\n\t 'auth0Client',\n\t 'owp',\n\t 'device',\n\t\n\t 'protocol',\n\t '_csrf',\n\t '_intstate',\n\t 'login_ticket',\n\t\n\t // oauth2\n\t 'client_id',\n\t 'response_type',\n\t 'response_mode',\n\t 'redirect_uri',\n\t 'audience',\n\t 'scope',\n\t 'state',\n\t 'nonce',\n\t 'display',\n\t 'prompt',\n\t 'max_age',\n\t 'ui_locales',\n\t 'claims_locales',\n\t 'id_token_hint',\n\t 'login_hint',\n\t 'acr_values',\n\t 'claims',\n\t 'registration',\n\t 'request',\n\t 'request_uri',\n\t 'code_challenge',\n\t 'code_challenge_method'\n\t];\n\t\n\tfunction oauthAuthorizeParams(warn, params) {\n\t var notAllowed = objectHelper.getKeysNotIn(params, authorizeParams);\n\t\n\t if (notAllowed.length > 0) {\n\t warn.warning(\n\t 'Following parameters are not allowed on the `/authorize` endpoint: [' +\n\t notAllowed.join(',') +\n\t ']'\n\t );\n\t }\n\t\n\t return params;\n\t}\n\t\n\tfunction oauthTokenParams(warn, params) {\n\t return objectHelper.pick(params, tokenParams);\n\t}\n\t\n\tmodule.exports = {\n\t oauthTokenParams: oauthTokenParams,\n\t oauthAuthorizeParams: oauthAuthorizeParams\n\t};\n\n\n/***/ },\n/* 46 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar version = __webpack_require__(9);\n\t\n\tfunction PluginHandler(webAuth, plugins) {\n\t this.plugins = plugins;\n\t\n\t for (var a = 0; a < this.plugins.length; a++) {\n\t if (this.plugins[a].version !== version.raw) {\n\t var pluginName = '';\n\t\n\t if (this.plugins[a].constructor && this.plugins[a].constructor.name) {\n\t pluginName = this.plugins[a].constructor.name;\n\t }\n\t\n\t throw new Error(\n\t 'Plugin ' +\n\t pluginName +\n\t ' version (' +\n\t this.plugins[a].version +\n\t ') ' +\n\t 'is not compatible with the SDK version (' +\n\t version.raw +\n\t ')'\n\t );\n\t }\n\t\n\t this.plugins[a].setWebAuth(webAuth);\n\t }\n\t}\n\t\n\tPluginHandler.prototype.get = function(extensibilityPoint) {\n\t for (var a = 0; a < this.plugins.length; a++) {\n\t if (this.plugins[a].supports(extensibilityPoint)) {\n\t return this.plugins[a].init();\n\t }\n\t }\n\t\n\t return null;\n\t};\n\t\n\tmodule.exports = PluginHandler;\n\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint-disable no-restricted-syntax */\n\t/* eslint-disable guard-for-in */\n\tvar WinChan = __webpack_require__(18);\n\t\n\tvar windowHandler = __webpack_require__(3);\n\tvar objectHelper = __webpack_require__(2);\n\tvar qs = __webpack_require__(5);\n\t\n\tfunction PopupHandler() {\n\t this._current_popup = null;\n\t}\n\t\n\tPopupHandler.prototype.calculatePosition = function(options) {\n\t var width = options.width || 500;\n\t var height = options.height || 600;\n\t var _window = windowHandler.getWindow();\n\t\n\t var screenX = typeof _window.screenX !== 'undefined' ? _window.screenX : _window.screenLeft;\n\t var screenY = typeof _window.screenY !== 'undefined' ? _window.screenY : _window.screenTop;\n\t\n\t var outerWidth = typeof _window.outerWidth !== 'undefined'\n\t ? _window.outerWidth\n\t : _window.document.body.clientWidth;\n\t\n\t var outerHeight = typeof _window.outerHeight !== 'undefined'\n\t ? _window.outerHeight\n\t : _window.document.body.clientHeight;\n\t\n\t var left = (outerWidth - width) / 2;\n\t var top = (outerHeight - height) / 2;\n\t\n\t return { width: width, height: height, left: screenX + left, top: screenY + top };\n\t};\n\t\n\tPopupHandler.prototype.preload = function(options) {\n\t var _this = this;\n\t var _window = windowHandler.getWindow();\n\t var popupPosition = this.calculatePosition(options.popupOptions || {});\n\t var popupOptions = objectHelper.merge(popupPosition).with(options.popupOptions);\n\t var url = options.url || 'about:blank';\n\t var windowFeatures = qs.stringify(popupOptions, {\n\t encode: false,\n\t delimiter: ','\n\t });\n\t\n\t if (this._current_popup && !this._current_popup.closed) {\n\t return this._current_popup;\n\t }\n\t\n\t this._current_popup = _window.open(url, 'auth0_signup_popup', windowFeatures);\n\t\n\t this._current_popup.kill = function() {\n\t this.close();\n\t _this._current_popup = null;\n\t };\n\t\n\t return this._current_popup;\n\t};\n\t\n\tPopupHandler.prototype.load = function(url, relayUrl, options, cb) {\n\t var _this = this;\n\t var popupPosition = this.calculatePosition(options.popupOptions || {});\n\t var popupOptions = objectHelper.merge(popupPosition).with(options.popupOptions);\n\t\n\t var winchanOptions = objectHelper\n\t .merge({\n\t url: url,\n\t relay_url: relayUrl,\n\t window_features: qs.stringify(popupOptions, {\n\t delimiter: ',',\n\t encode: false\n\t }),\n\t popup: this._current_popup\n\t })\n\t .with(options);\n\t\n\t var popup = WinChan.open(winchanOptions, function(err, data) {\n\t _this._current_popup = null;\n\t return cb(err, data);\n\t });\n\t\n\t popup.focus();\n\t\n\t return popup;\n\t};\n\t\n\tmodule.exports = PopupHandler;\n\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar windowHelper = __webpack_require__(3);\n\t\n\tfunction randomString(length) {\n\t // eslint-disable-next-line\n\t var bytes = new Uint8Array(length);\n\t var result = [];\n\t var charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~';\n\t\n\t var cryptoObj = windowHelper.getWindow().crypto || windowHelper.getWindow().msCrypto;\n\t if (!cryptoObj) {\n\t return null;\n\t }\n\t\n\t var random = cryptoObj.getRandomValues(bytes);\n\t\n\t for (var a = 0; a < random.length; a++) {\n\t result.push(charset[random[a] % charset.length]);\n\t }\n\t\n\t return result.join('');\n\t}\n\t\n\tmodule.exports = {\n\t randomString: randomString\n\t};\n\n\n/***/ },\n/* 49 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar StorageHandler = __webpack_require__(52);\n\tvar storage;\n\t\n\tfunction getStorage(force) {\n\t if (!storage || force) {\n\t storage = new StorageHandler();\n\t }\n\t return storage;\n\t}\n\t\n\tmodule.exports = {\n\t getItem: function(key) {\n\t var value = getStorage().getItem(key);\n\t return value ? JSON.parse(value) : value;\n\t },\n\t removeItem: function(key) {\n\t return getStorage().removeItem(key);\n\t },\n\t setItem: function(key, value) {\n\t var json = JSON.stringify(value);\n\t return getStorage().setItem(key, json);\n\t },\n\t reload: function() {\n\t getStorage(true);\n\t }\n\t};\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar cookies = __webpack_require__(42);\n\t\n\tfunction CookieStorage() {}\n\t\n\tCookieStorage.prototype.getItem = function(key) {\n\t return cookies.read(key);\n\t};\n\t\n\tCookieStorage.prototype.removeItem = function(key) {\n\t cookies.erase(key);\n\t};\n\t\n\tCookieStorage.prototype.setItem = function(key, value) {\n\t cookies.create(key, value, 1);\n\t};\n\t\n\tmodule.exports = CookieStorage;\n\n\n/***/ },\n/* 51 */\n/***/ function(module, exports) {\n\n\tfunction DummyStorage() {}\n\t\n\tDummyStorage.prototype.getItem = function() {\n\t return null;\n\t};\n\t\n\tDummyStorage.prototype.removeItem = function() {};\n\t\n\tDummyStorage.prototype.setItem = function() {};\n\t\n\tmodule.exports = DummyStorage;\n\n\n/***/ },\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar windowHandler = __webpack_require__(3);\n\tvar DummyStorage = __webpack_require__(51);\n\tvar CookieStorage = __webpack_require__(50);\n\tvar Warn = __webpack_require__(11);\n\t\n\tfunction StorageHandler() {\n\t this.warn = new Warn({});\n\t this.storage = windowHandler.getWindow().localStorage || new CookieStorage();\n\t}\n\t\n\tStorageHandler.prototype.failover = function() {\n\t if (this.storage instanceof DummyStorage) {\n\t this.warn.warning('DummyStorage: ignore failover');\n\t return;\n\t } else if (this.storage instanceof CookieStorage) {\n\t this.warn.warning('CookieStorage: failing over DummyStorage');\n\t this.storage = new DummyStorage();\n\t } else {\n\t this.warn.warning('LocalStorage: failing over CookieStorage');\n\t this.storage = new CookieStorage();\n\t }\n\t};\n\t\n\tStorageHandler.prototype.getItem = function(key) {\n\t try {\n\t return this.storage.getItem(key);\n\t } catch (e) {\n\t this.warn.warning(e);\n\t this.failover();\n\t return this.getItem(key);\n\t }\n\t};\n\t\n\tStorageHandler.prototype.removeItem = function(key) {\n\t try {\n\t return this.storage.removeItem(key);\n\t } catch (e) {\n\t this.warn.warning(e);\n\t this.failover();\n\t return this.removeItem(key);\n\t }\n\t};\n\t\n\tStorageHandler.prototype.setItem = function(key, value) {\n\t try {\n\t return this.storage.setItem(key, value);\n\t } catch (e) {\n\t this.warn.warning(e);\n\t this.failover();\n\t return this.setItem(key, value);\n\t }\n\t};\n\t\n\tmodule.exports = StorageHandler;\n\n\n/***/ },\n/* 53 */\n/***/ function(module, exports) {\n\n\t// given a URL, extract the origin. Taken from: https://github.com/firebase/firebase-simple-login/blob/d2cb95b9f812d8488bdbfba51c3a7c153ba1a074/js/src/simple-login/transports/WinChan.js#L25-L30\n\tfunction extractOrigin(url) {\n\t if (!/^https?:\\/\\//.test(url)) url = window.location.href;\n\t var m = /^(https?:\\/\\/[-_a-zA-Z.0-9:]+)/.exec(url);\n\t if (m) return m[1];\n\t return url;\n\t}\n\t\n\tmodule.exports = {\n\t extractOrigin: extractOrigin\n\t};\n\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Authentication = __webpack_require__(19);\n\tvar Management = __webpack_require__(55);\n\tvar WebAuth = __webpack_require__(57);\n\tvar version = __webpack_require__(9);\n\t\n\tmodule.exports = {\n\t Authentication: Authentication,\n\t Management: Management,\n\t WebAuth: WebAuth,\n\t version: version.raw\n\t};\n\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\t\n\tvar RequestBuilder = __webpack_require__(10);\n\tvar assert = __webpack_require__(4);\n\tvar responseHandler = __webpack_require__(6);\n\t\n\t/**\n\t * Auth0 Management API Client (methods allowed to be called from the browser only)\n\t * @constructor\n\t * @param {Object} options\n\t * @param {Object} options.domain your Auth0 acount domain\n\t * @param {Object} options.token a valid API token\n\t */\n\tfunction Management(options) {\n\t /* eslint-disable */\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t domain: { type: 'string', message: 'domain option is required' },\n\t token: { type: 'string', message: 'token option is required' },\n\t _sendTelemetry: {\n\t optional: true,\n\t type: 'boolean',\n\t message: '_sendTelemetry option is not valid'\n\t },\n\t _telemetryInfo: {\n\t optional: true,\n\t type: 'object',\n\t message: '_telemetryInfo option is not valid'\n\t }\n\t }\n\t );\n\t /* eslint-enable */\n\t\n\t this.baseOptions = options;\n\t\n\t this.baseOptions.headers = { Authorization: 'Bearer ' + this.baseOptions.token };\n\t\n\t this.request = new RequestBuilder(this.baseOptions);\n\t this.baseOptions.rootUrl = urljoin('https://' + this.baseOptions.domain, 'api', 'v2');\n\t}\n\t\n\t/**\n\t * @callback userCallback\n\t * @param {Error} [err] failure reason for the failed request to Management API\n\t * @param {Object} [result] user profile\n\t */\n\t\n\t/**\n\t * Returns the user profile\n\t *\n\t * @method getUser\n\t * @param {String} userId identifier of the user to retrieve\n\t * @param {userCallback} cb\n\t * @see https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id\n\t */\n\tManagement.prototype.getUser = function(userId, cb) {\n\t var url;\n\t\n\t assert.check(userId, { type: 'string', message: 'userId parameter is not valid' });\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'users', userId);\n\t\n\t return this.request.get(url).end(responseHandler(cb, { ignoreCasing: true }));\n\t};\n\t\n\t/**\n\t * Updates the user metdata. It will patch the user metdata with the attributes sent.\n\t *\n\t *\n\t * @method patchUserMetadata\n\t * @param {String} userId\n\t * @param {Object} userMetadata\n\t * @param {userCallback} cb\n\t * @see {@link https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id}\n\t */\n\tManagement.prototype.patchUserMetadata = function(userId, userMetadata, cb) {\n\t var url;\n\t\n\t assert.check(userId, { type: 'string', message: 'userId parameter is not valid' });\n\t assert.check(userMetadata, { type: 'object', message: 'userMetadata parameter is not valid' });\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'users', userId);\n\t\n\t return this.request\n\t .patch(url)\n\t .send({ user_metadata: userMetadata })\n\t .end(responseHandler(cb, { ignoreCasing: true }));\n\t};\n\t\n\t/**\n\t * Link two users\n\t *\n\t * @method linkUser\n\t * @param {String} userId\n\t * @param {String} secondaryUserToken\n\t * @param {userCallback} cb\n\t * @see {@link https://auth0.com/docs/api/management/v2#!/Users/post_identities}\n\t */\n\tManagement.prototype.linkUser = function(userId, secondaryUserToken, cb) {\n\t var url;\n\t /* eslint-disable */\n\t assert.check(userId, { type: 'string', message: 'userId parameter is not valid' });\n\t assert.check(secondaryUserToken, {\n\t type: 'string',\n\t message: 'secondaryUserToken parameter is not valid'\n\t });\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t /* eslint-enable */\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'users', userId, 'identities');\n\t\n\t return this.request\n\t .post(url)\n\t .send({ link_with: secondaryUserToken })\n\t .end(responseHandler(cb, { ignoreCasing: true }));\n\t};\n\t\n\tmodule.exports = Management;\n\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\t\n\tvar windowHelper = __webpack_require__(3);\n\tvar objectHelper = __webpack_require__(2);\n\tvar RequestBuilder = __webpack_require__(10);\n\t\n\tfunction CrossOriginAuthentication(webAuth, options) {\n\t this.webAuth = webAuth;\n\t this.baseOptions = options;\n\t this.request = new RequestBuilder(options);\n\t}\n\t\n\tfunction getFragment(name) {\n\t var theWindow = windowHelper.getWindow();\n\t var value = '&' + theWindow.location.hash.substring(1);\n\t var parts = value.split('&' + name + '=');\n\t if (parts.length === 2) {\n\t return parts.pop().split('&').shift();\n\t }\n\t}\n\t\n\tfunction createKey(origin, coId) {\n\t return ['co/verifier', encodeURIComponent(origin), encodeURIComponent(coId)].join('/');\n\t}\n\t\n\t/**\n\t * Logs in the user with username and password using the cross origin authentication (/co/authenticate) flow. You can use either `username` or `email` to identify the user, but `username` will take precedence over `email`.\n\t * This only works when 3rd party cookies are enabled in the browser. After the /co/authenticate call, you'll have to use the {@link parseHash} function at the `redirectUri` specified in the constructor.\n\t *\n\t * @method login\n\t * @param {Object} options options used in the {@link authorize} call after the login_ticket is acquired\n\t * @param {String} [options.username] Username (mutually exclusive with email)\n\t * @param {String} [options.email] Email (mutually exclusive with username)\n\t * @param {String} options.password Password\n\t * @param {String} [options.realm] Realm used to authenticate the user, it can be a realm name or a database connection name\n\t * @param {crossOriginLoginCallback} cb Callback function called only when an authentication error, like invalid username or password, occurs. For other types of errors, there will be a redirect to the `redirectUri`.\n\t */\n\tCrossOriginAuthentication.prototype.login = function(options, cb) {\n\t var _this = this;\n\t var theWindow = windowHelper.getWindow();\n\t var url = urljoin(this.baseOptions.rootUrl, '/co/authenticate');\n\t var authenticateBody = {\n\t client_id: options.clientID || this.baseOptions.clientID,\n\t credential_type: 'password',\n\t username: options.username || options.email,\n\t password: options.password\n\t };\n\t var realm = options.realm || this.baseOptions.realm;\n\t if (realm) {\n\t authenticateBody.realm = realm;\n\t authenticateBody.credential_type = 'http://auth0.com/oauth/grant-type/password-realm';\n\t }\n\t this.request.post(url).withCredentials().send(authenticateBody).end(function(err, data) {\n\t if (err) {\n\t var errorObject = (err.response && err.response.body) || {\n\t error: 'request_error',\n\t error_description: JSON.stringify(err)\n\t };\n\t return cb(errorObject);\n\t }\n\t options = objectHelper.blacklist(options, ['username', 'password']);\n\t var authorizeOptions = objectHelper\n\t .merge(options)\n\t .with({ loginTicket: data.body.login_ticket });\n\t var key = createKey(_this.baseOptions.rootUrl, data.body.co_id);\n\t theWindow.sessionStorage[key] = data.body.co_verifier;\n\t _this.webAuth.authorize(authorizeOptions);\n\t });\n\t};\n\t\n\t/**\n\t * Runs the callback code for the cross origin authentication call. This method is meant to be called by the cross origin authentication callback url.\n\t *\n\t * @method callback\n\t */\n\tCrossOriginAuthentication.prototype.callback = function() {\n\t var targetOrigin = decodeURIComponent(getFragment('origin'));\n\t var theWindow = windowHelper.getWindow();\n\t\n\t theWindow.addEventListener('message', function(evt) {\n\t if (evt.data.type !== 'co_verifier_request') {\n\t return;\n\t }\n\t var key = createKey(evt.origin, evt.data.request.id);\n\t var verifier = theWindow.sessionStorage[key];\n\t theWindow.sessionStorage.removeItem(key);\n\t\n\t evt.source.postMessage(\n\t {\n\t type: 'co_verifier_response',\n\t response: {\n\t verifier: verifier\n\t }\n\t },\n\t evt.origin\n\t );\n\t });\n\t\n\t theWindow.parent.postMessage({ type: 'ready' }, targetOrigin);\n\t};\n\t\n\tmodule.exports = CrossOriginAuthentication;\n\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar IdTokenVerifier = __webpack_require__(30);\n\t\n\tvar assert = __webpack_require__(4);\n\tvar error = __webpack_require__(21);\n\tvar qs = __webpack_require__(5);\n\tvar PluginHandler = __webpack_require__(46);\n\tvar windowHelper = __webpack_require__(3);\n\tvar objectHelper = __webpack_require__(2);\n\tvar TransactionManager = __webpack_require__(22);\n\tvar Authentication = __webpack_require__(19);\n\tvar Redirect = __webpack_require__(59);\n\tvar Popup = __webpack_require__(58);\n\tvar SilentAuthenticationHandler = __webpack_require__(60);\n\tvar CrossOriginAuthentication = __webpack_require__(56);\n\t/**\n\t * Handles all the browser's AuthN/AuthZ flows\n\t * @constructor\n\t * @param {Object} options\n\t * @param {String} options.domain your Auth0 domain\n\t * @param {String} options.clientID your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n\t * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} [options.responseType] type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n\t * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @param {Array} [options.plugins]\n\t * @see {@link https://auth0.com/docs/api/authentication}\n\t */\n\tfunction WebAuth(options) {\n\t /* eslint-disable */\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t domain: { type: 'string', message: 'domain option is required' },\n\t clientID: { type: 'string', message: 'clientID option is required' },\n\t responseType: { optional: true, type: 'string', message: 'responseType is not valid' },\n\t responseMode: { optional: true, type: 'string', message: 'responseMode is not valid' },\n\t redirectUri: { optional: true, type: 'string', message: 'redirectUri is not valid' },\n\t scope: { optional: true, type: 'string', message: 'scope is not valid' },\n\t audience: { optional: true, type: 'string', message: 'audience is not valid' },\n\t leeway: { optional: true, type: 'number', message: 'leeway is not valid' },\n\t plugins: { optional: true, type: 'array', message: 'plugins is not valid' },\n\t _disableDeprecationWarnings: {\n\t optional: true,\n\t type: 'boolean',\n\t message: '_disableDeprecationWarnings option is not valid'\n\t },\n\t _sendTelemetry: {\n\t optional: true,\n\t type: 'boolean',\n\t message: '_sendTelemetry option is not valid'\n\t },\n\t _telemetryInfo: {\n\t optional: true,\n\t type: 'object',\n\t message: '_telemetryInfo option is not valid'\n\t }\n\t }\n\t );\n\t\n\t if (options.overrides) {\n\t assert.check(\n\t options.overrides,\n\t { type: 'object', message: 'overrides option is not valid' },\n\t {\n\t __tenant: { type: 'string', message: '__tenant option is required' },\n\t __token_issuer: { type: 'string', message: '__token_issuer option is required' }\n\t }\n\t );\n\t }\n\t /* eslint-enable */\n\t\n\t this.baseOptions = options;\n\t this.baseOptions.plugins = new PluginHandler(this, this.baseOptions.plugins || []);\n\t\n\t this.baseOptions._sendTelemetry = this.baseOptions._sendTelemetry === false\n\t ? this.baseOptions._sendTelemetry\n\t : true;\n\t\n\t this.baseOptions.tenant =\n\t (this.baseOptions.overrides && this.baseOptions.overrides.__tenant) ||\n\t this.baseOptions.domain.split('.')[0];\n\t\n\t this.baseOptions.token_issuer =\n\t (this.baseOptions.overrides && this.baseOptions.overrides.__token_issuer) ||\n\t 'https://' + this.baseOptions.domain + '/';\n\t\n\t this.transactionManager = new TransactionManager(this.baseOptions.transaction);\n\t\n\t this.client = new Authentication(this.baseOptions);\n\t this.redirect = new Redirect(this.client, this.baseOptions);\n\t this.popup = new Popup(this, this.baseOptions);\n\t this.crossOriginAuthentication = new CrossOriginAuthentication(this, this.baseOptions);\n\t}\n\t\n\t/**\n\t * Parse the url hash and extract the Auth response from a Auth flow started with {@link authorize}\n\t *\n\t * Only validates id_tokens signed by Auth0 using the RS256 algorithm using the public key exposed\n\t * by the `/.well-known/jwks.json` endpoint of your account.\n\t * Tokens signed with other algorithms, e.g. HS256 will not be accepted.\n\t *\n\t * @method parseHash\n\t * @param {Object} options\n\t * @param {String} options.hash the url hash. If not provided it will extract from window.location.hash\n\t * @param {String} [options.state] value originally sent in `state` parameter to {@link authorize} to mitigate XSRF\n\t * @param {String} [options.nonce] value originally sent in `nonce` parameter to {@link authorize} to prevent replay attacks\n\t * @param {String} [options._idTokenVerification] makes parseHash perform or skip `id_token` verification. We **strongly** recommend validating the `id_token` yourself if you disable the verification.\n\t * @param {authorizeCallback} cb\n\t */\n\tWebAuth.prototype.parseHash = function(options, cb) {\n\t var parsedQs;\n\t var err;\n\t var state;\n\t var transaction;\n\t var transactionNonce;\n\t\n\t if (!cb && typeof options === 'function') {\n\t cb = options;\n\t options = {};\n\t } else {\n\t options = options || {};\n\t }\n\t\n\t options._idTokenVerification = !(options._idTokenVerification === false);\n\t\n\t var _window = windowHelper.getWindow();\n\t\n\t var hashStr = options.hash === undefined ? _window.location.hash : options.hash;\n\t hashStr = hashStr.replace(/^#?\\/?/, '');\n\t\n\t parsedQs = qs.parse(hashStr);\n\t\n\t if (parsedQs.hasOwnProperty('error')) {\n\t err = error.buildResponse(parsedQs.error, parsedQs.error_description);\n\t\n\t if (parsedQs.state) {\n\t err.state = parsedQs.state;\n\t }\n\t\n\t return cb(err);\n\t }\n\t\n\t if (\n\t !parsedQs.hasOwnProperty('access_token') &&\n\t !parsedQs.hasOwnProperty('id_token') &&\n\t !parsedQs.hasOwnProperty('refresh_token')\n\t ) {\n\t return cb(null, null);\n\t }\n\t\n\t state = parsedQs.state || options.state;\n\t\n\t transaction = this.transactionManager.getStoredTransaction(state);\n\t transactionNonce = options.nonce || (transaction && transaction.nonce) || null;\n\t\n\t var applicationStatus = (transaction && transaction.appStatus) || null;\n\t if (parsedQs.id_token && options._idTokenVerification) {\n\t return this.validateToken(parsedQs.id_token, transactionNonce, function(\n\t validationError,\n\t payload\n\t ) {\n\t if (validationError) {\n\t return cb(validationError);\n\t }\n\t return cb(null, buildParseHashResponse(parsedQs, applicationStatus, payload));\n\t });\n\t }\n\t\n\t if (parsedQs.id_token) {\n\t var verifier = new IdTokenVerifier({\n\t issuer: this.baseOptions.token_issuer,\n\t audience: this.baseOptions.clientID,\n\t leeway: this.baseOptions.leeway || 0,\n\t __disableExpirationCheck: this.baseOptions.__disableExpirationCheck\n\t });\n\t\n\t var decodedToken = verifier.decode(parsedQs.id_token);\n\t cb(null, buildParseHashResponse(parsedQs, applicationStatus, decodedToken.payload));\n\t } else {\n\t cb(null, buildParseHashResponse(parsedQs, applicationStatus, null));\n\t }\n\t};\n\t\n\tfunction buildParseHashResponse(qsParams, appStatus, token) {\n\t return {\n\t accessToken: qsParams.access_token || null,\n\t idToken: qsParams.id_token || null,\n\t idTokenPayload: token || null,\n\t appStatus: appStatus || null,\n\t refreshToken: qsParams.refresh_token || null,\n\t state: qsParams.state || null,\n\t expiresIn: qsParams.expires_in ? parseInt(qsParams.expires_in, 10) : null,\n\t tokenType: qsParams.token_type || null,\n\t scope: qsParams.scope || null\n\t };\n\t}\n\t\n\t/**\n\t * @callback validateTokenCallback\n\t * @param {Error} [err] error returned by while validating the token\n\t * @param {Object} [payload] claims stored in the token\n\t */\n\t\n\t/**\n\t * Decodes the a JWT and verifies its nonce value\n\t *\n\t * @method validateToken\n\t * @private\n\t * @param {String} token\n\t * @param {String} nonce\n\t * @param {validateTokenCallback} cb\n\t */\n\tWebAuth.prototype.validateToken = function(token, nonce, cb) {\n\t var verifier = new IdTokenVerifier({\n\t issuer: this.baseOptions.token_issuer,\n\t audience: this.baseOptions.clientID,\n\t leeway: this.baseOptions.leeway || 0,\n\t __disableExpirationCheck: this.baseOptions.__disableExpirationCheck\n\t });\n\t\n\t verifier.verify(token, nonce, function(err, payload) {\n\t if (err) {\n\t return cb(error.invalidJwt(err.message));\n\t }\n\t\n\t cb(null, payload);\n\t });\n\t};\n\t\n\t/**\n\t * Executes a silent authentication transaction under the hood in order to fetch a new tokens for the current session.\n\t * This method requires that all Auth is performed with {@link authorize}\n\t * Watch out! If you're not using the hosted login page to do social logins, you have to use your own [social connection keys](https://manage.auth0.com/#/connections/social). If you use Auth0's dev keys, you'll always get `login_required` as an error when calling this method.\n\t *\n\t * @method renewAuth\n\t * @param {Object} options\n\t * @param {String} [options.domain] your Auth0 domain\n\t * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n\t * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} [options.responseType] type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n\t * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n\t * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n\t * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @param {String} [options.postMessageDataType] identifier data type to look for in postMessage event data, where events are initiated from silent callback urls, before accepting a message event is the event expected. A value of false means any postMessage event will trigger a callback.\n\t * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n\t */\n\tWebAuth.prototype.renewAuth = function(options, cb) {\n\t var handler;\n\t var usePostMessage = !!options.usePostMessage;\n\t var postMessageDataType = options.postMessageDataType || false;\n\t var _this = this;\n\t\n\t var params = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'redirectUri',\n\t 'responseType',\n\t 'scope',\n\t 'audience',\n\t '_csrf',\n\t 'state',\n\t '_instate',\n\t 'nonce'\n\t ])\n\t .with(options);\n\t\n\t params.responseType = params.responseType || 'token';\n\t params.responseMode = params.responseMode || 'fragment';\n\t if (!options.nonce) {\n\t params = this.transactionManager.process(params);\n\t }\n\t\n\t assert.check(params, { type: 'object', message: 'options parameter is not valid' });\n\t assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\t\n\t params.prompt = 'none';\n\t\n\t params = objectHelper.blacklist(params, ['usePostMessage', 'tenant', 'postMessageDataType']);\n\t\n\t handler = SilentAuthenticationHandler.create({\n\t authenticationUrl: this.client.buildAuthorizeUrl(params),\n\t postMessageDataType: postMessageDataType\n\t });\n\t\n\t handler.login(usePostMessage, function(err, hash) {\n\t if (typeof hash === 'object') {\n\t // hash was already parsed, so we just return it.\n\t // it's here to be backwards compatible and should be removed in the next major version.\n\t return cb(err, hash);\n\t }\n\t var transaction = _this.transactionManager.getStoredTransaction(params.state);\n\t var transactionNonce = options.nonce || (transaction && transaction.nonce) || null;\n\t var transactionState = options.state || (transaction && transaction.state) || null;\n\t _this.parseHash({ hash: hash, nonce: transactionNonce, state: transactionState }, cb);\n\t });\n\t};\n\t\n\t/**\n\t * Request an email with instruction to change a user's password\n\t *\n\t * @method changePassword\n\t * @param {Object} options\n\t * @param {String} options.email address where the user will recieve the change password email. It should match the user's email in Auth0\n\t * @param {String} options.connection name of the connection where the user was created\n\t * @param {changePasswordCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#change-password}\n\t */\n\tWebAuth.prototype.changePassword = function(options, cb) {\n\t return this.client.dbConnection.changePassword(options, cb);\n\t};\n\t\n\t/**\n\t * Starts a passwordless authentication transaction.\n\t *\n\t * @method passwordlessStart\n\t * @param {Object} options\n\t * @param {String} options.send what will be sent via email which could be `link` or `code`. For SMS `code` is the only one valud\n\t * @param {String} [options.phoneNumber] phone number where to send the `code`. This parameter is mutually exclusive with `email`\n\t * @param {String} [options.email] email where to send the `code` or `link`. This parameter is mutually exclusive with `phoneNumber`\n\t * @param {String} options.connection name of the passwordless connection\n\t * @param {Object} [options.authParams] additional Auth parameters when using `link`\n\t * @param {Function} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#passwordless}\n\t */\n\tWebAuth.prototype.passwordlessStart = function(options, cb) {\n\t return this.client.passwordless.start(options, cb);\n\t};\n\t\n\t/**\n\t * Creates a new user in a Auth0 Database connection\n\t *\n\t * @method signup\n\t * @param {Object} options\n\t * @param {String} options.email user email address\n\t * @param {String} options.password user password\n\t * @param {String} options.connection name of the connection where the user will be created\n\t * @param {signUpCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#signup}\n\t */\n\tWebAuth.prototype.signup = function(options, cb) {\n\t return this.client.dbConnection.signup(options, cb);\n\t};\n\t\n\t/**\n\t * Redirects to the hosted login page (`/authorize`) in order to start a new authN/authZ transaction.\n\t * After that, you'll have to use the {@link parseHash} function at the specified `redirectUri`.\n\t *\n\t * @method authorize\n\t * @param {Object} options\n\t * @param {String} [options.domain] your Auth0 domain\n\t * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n\t * @param {String} options.redirectUri url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} options.responseType type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n\t * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n\t * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n\t * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n\t */\n\tWebAuth.prototype.authorize = function(options) {\n\t var params = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'responseType',\n\t 'responseMode',\n\t 'redirectUri',\n\t 'scope',\n\t 'audience',\n\t '_csrf',\n\t 'state',\n\t '_instate',\n\t 'nonce'\n\t ])\n\t .with(options);\n\t\n\t assert.check(\n\t params,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t responseType: { type: 'string', message: 'responseType option is required' }\n\t }\n\t );\n\t\n\t params = this.transactionManager.process(params);\n\t\n\t windowHelper.redirect(this.client.buildAuthorizeUrl(params));\n\t};\n\t\n\t/**\n\t * Signs up a new user, automatically logs the user in after the signup and returns the user token.\n\t * The login will be done using /oauth/token with password-realm grant type.\n\t *\n\t * @method signupAndAuthorize\n\t * @param {Object} options\n\t * @param {String} options.email user email address\n\t * @param {String} options.password user password\n\t * @param {String} options.connection name of the connection where the user will be created\n\t * @param {tokenCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#signup}\n\t * @see {@link https://auth0.com/docs/api-auth/grant/password}\n\t */\n\tWebAuth.prototype.signupAndAuthorize = function(options, cb) {\n\t var _this = this;\n\t\n\t return this.client.dbConnection.signup(\n\t objectHelper.blacklist(options, ['popupHandler']),\n\t function(err) {\n\t if (err) {\n\t return cb(err);\n\t }\n\t options.realm = options.connection;\n\t if (!options.username) {\n\t options.username = options.email;\n\t }\n\t _this.client.login(options, cb);\n\t }\n\t );\n\t};\n\t\n\t/**\n\t * @callback crossOriginLoginCallback\n\t * @param {Error} [err] Authentication error returned by Auth0 with the reason why the request failed\n\t */\n\t\n\t/**\n\t * Logs in the user with username and password using the cross origin authentication (/co/authenticate) flow. You can use either `username` or `email` to identify the user, but `username` will take precedence over `email`.\n\t * This only works when 3rd party cookies are enabled in the browser. After the /co/authenticate call, you'll have to use the {@link parseHash} function at the `redirectUri` specified in the constructor.\n\t *\n\t * @method login\n\t * @param {Object} options options used in the {@link authorize} call after the login_ticket is acquired\n\t * @param {String} [options.username] Username (mutually exclusive with email)\n\t * @param {String} [options.email] Email (mutually exclusive with username)\n\t * @param {String} options.password Password\n\t * @param {String} [options.realm] Realm used to authenticate the user, it can be a realm name or a database connection name\n\t * @param {crossOriginLoginCallback} cb Callback function called only when an authentication error, like invalid username or password, occurs. For other types of errors, there will be a redirect to the `redirectUri`.\n\t */\n\tWebAuth.prototype.login = function(options, cb) {\n\t this.crossOriginAuthentication.login(options, cb);\n\t};\n\t\n\t/**\n\t * Runs the callback code for the cross origin authentication call. This method is meant to be called by the cross origin authentication callback url.\n\t *\n\t * @method crossOriginAuthenticationCallback\n\t */\n\tWebAuth.prototype.crossOriginAuthenticationCallback = function() {\n\t this.crossOriginAuthentication.callback();\n\t};\n\t\n\t/**\n\t * Redirects to the auth0 logout endpoint\n\t *\n\t * If you want to navigate the user to a specific URL after the logout, set that URL at the returnTo parameter. The URL should be included in any the appropriate Allowed Logout URLs list:\n\t *\n\t * - If the client_id parameter is included, the returnTo URL must be listed in the Allowed Logout URLs set at the client level (see Setting Allowed Logout URLs at the App Level).\n\t * - If the client_id parameter is NOT included, the returnTo URL must be listed in the Allowed Logout URLs set at the account level (see Setting Allowed Logout URLs at the Account Level).\n\t *\n\t * @method logout\n\t * @param {Object} options\n\t * @param {String} [options.clientID] identifier of your client\n\t * @param {String} [options.returnTo] URL to be redirected after the logout\n\t * @param {Boolean} [options.federated] tells Auth0 if it should logout the user also from the IdP.\n\t * @see {@link https://auth0.com/docs/api/authentication#logout}\n\t */\n\tWebAuth.prototype.logout = function(options) {\n\t windowHelper.redirect(this.client.buildLogoutUrl(options));\n\t};\n\t\n\t/**\n\t * Verifies the passwordless TOTP and redirects to finish the passwordless transaction\n\t *\n\t * @method passwordlessVerify\n\t * @param {Object} options\n\t * @param {String} options.type `sms` or `email`\n\t * @param {String} options.phoneNumber only if type = sms\n\t * @param {String} options.email only if type = email\n\t * @param {String} options.connection the connection name\n\t * @param {String} options.verificationCode the TOTP code\n\t * @param {Function} cb\n\t */\n\tWebAuth.prototype.passwordlessVerify = function(options, cb) {\n\t var _this = this;\n\t return this.client.passwordless.verify(options, function(err) {\n\t if (err) {\n\t return cb(err);\n\t }\n\t return windowHelper.redirect(_this.client.passwordless.buildVerifyUrl(options));\n\t });\n\t};\n\t\n\tmodule.exports = WebAuth;\n\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\tvar WinChan = __webpack_require__(18);\n\t\n\tvar urlHelper = __webpack_require__(53);\n\tvar assert = __webpack_require__(4);\n\tvar responseHandler = __webpack_require__(6);\n\tvar PopupHandler = __webpack_require__(47);\n\tvar objectHelper = __webpack_require__(2);\n\tvar Warn = __webpack_require__(11);\n\tvar TransactionManager = __webpack_require__(22);\n\t\n\tfunction Popup(webAuth, options) {\n\t this.baseOptions = options;\n\t this.client = webAuth.client;\n\t this.webAuth = webAuth;\n\t\n\t this.transactionManager = new TransactionManager(this.baseOptions.transaction);\n\t this.warn = new Warn({\n\t disableWarnings: !!options._disableDeprecationWarnings\n\t });\n\t}\n\t\n\t/**\n\t * Returns a new instance of the popup handler\n\t *\n\t * @method buildPopupHandler\n\t * @private\n\t */\n\tPopup.prototype.buildPopupHandler = function() {\n\t var pluginHandler = this.baseOptions.plugins.get('popup.getPopupHandler');\n\t\n\t if (pluginHandler) {\n\t return pluginHandler.getPopupHandler();\n\t }\n\t\n\t return new PopupHandler();\n\t};\n\t\n\t/**\n\t * Initializes the popup window and returns the instance to be used later in order to avoid being blocked by the browser.\n\t *\n\t * @method preload\n\t * @param {Object} options receives the window height and width and any other window feature to be sent to window.open\n\t */\n\tPopup.prototype.preload = function(options) {\n\t options = options || {};\n\t\n\t var popup = this.buildPopupHandler();\n\t\n\t popup.preload(options);\n\t return popup;\n\t};\n\t\n\t/**\n\t * Internal use.\n\t *\n\t * @method getPopupHandler\n\t * @private\n\t */\n\tPopup.prototype.getPopupHandler = function(options, preload) {\n\t if (options.popupHandler) {\n\t return options.popupHandler;\n\t }\n\t\n\t if (preload) {\n\t return this.preload(options);\n\t }\n\t\n\t return this.buildPopupHandler();\n\t};\n\t\n\t/**\n\t * Handles the popup logic for the callback page.\n\t *\n\t * @method callback\n\t * @param {Object} options\n\t * @param {String} options.hash the url hash. If not provided it will extract from window.location.hash\n\t * @param {String} [options.state] value originally sent in `state` parameter to {@link authorize} to mitigate XSRF\n\t * @param {String} [options.nonce] value originally sent in `nonce` parameter to {@link authorize} to prevent replay attacks\n\t * @param {String} [options._idTokenVerification] makes parseHash perform or skip `id_token` verification. We **strongly** recommend validating the `id_token` yourself if you disable the verification.\n\t * @see {@link parseHash}\n\t */\n\tPopup.prototype.callback = function(options) {\n\t var _this = this;\n\t WinChan.onOpen(function(popupOrigin, r, cb) {\n\t _this.webAuth.parseHash(options || {}, function(err, data) {\n\t return cb(err || data);\n\t });\n\t });\n\t};\n\t\n\t/**\n\t * Shows inside a new window the hosted login page (`/authorize`) in order to start a new authN/authZ transaction and post its result using `postMessage`.\n\t *\n\t * @method authorize\n\t * @param {Object} options\n\t * @param {String} [options.domain] your Auth0 domain\n\t * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n\t * @param {String} options.redirectUri url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} options.responseType type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n\t * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n\t * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n\t * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n\t * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n\t * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n\t * @param {Boolean} [options.owp] determines if Auth0 should render the relay page or not and the caller is responsible of handling the response.\n\t * @param {authorizeCallback} cb\n\t * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n\t */\n\tPopup.prototype.authorize = function(options, cb) {\n\t var popup;\n\t var url;\n\t var relayUrl;\n\t var popOpts = {};\n\t\n\t var pluginHandler = this.baseOptions.plugins.get('popup.authorize');\n\t\n\t var params = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'scope',\n\t 'domain',\n\t 'audience',\n\t 'responseType',\n\t 'redirectUri',\n\t '_csrf',\n\t 'state',\n\t '_instate',\n\t 'nonce'\n\t ])\n\t .with(objectHelper.blacklist(options, ['popupHandler']));\n\t\n\t assert.check(\n\t params,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t responseType: { type: 'string', message: 'responseType option is required' }\n\t }\n\t );\n\t\n\t // the relay page should not be necesary as long it happens in the same domain\n\t // (a redirectUri shoul be provided). It is necesary when using OWP\n\t relayUrl = urljoin(this.baseOptions.rootUrl, 'relay.html');\n\t\n\t // if a owp is enabled, it should use the owp flag\n\t if (options.owp) {\n\t // used by server to render the relay page instead of sending the chunk in the\n\t // url to the callback\n\t params.owp = true;\n\t } else {\n\t popOpts.origin = urlHelper.extractOrigin(params.redirectUri);\n\t relayUrl = params.redirectUri;\n\t }\n\t\n\t if (options.popupOptions) {\n\t popOpts.popupOptions = objectHelper.pick(options.popupOptions, ['width', 'height']);\n\t }\n\t\n\t if (pluginHandler) {\n\t params = pluginHandler.processParams(params);\n\t }\n\t\n\t params = this.transactionManager.process(params);\n\t\n\t delete params.domain;\n\t\n\t url = this.client.buildAuthorizeUrl(params);\n\t\n\t popup = this.getPopupHandler(options);\n\t\n\t return popup.load(url, relayUrl, popOpts, responseHandler(cb));\n\t};\n\t\n\t/**\n\t * Performs authentication with username/email and password with a database connection inside a new window\n\t *\n\t * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n\t * you should use {@link authorize} or {@link login}.\n\t *\n\t * @method loginWithCredentials\n\t * @param {Object} options\n\t * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} [options.responseType] type of the response used. It can be any of the values `code` and `token`\n\t * @param {String} [options.responseMode] how the AuthN response is encoded and redirected back to the client. Supported values are `query` and `fragment`\n\t * @param {String} [options.scope] scopes to be requested during AuthN. e.g. `openid email`\n\t * @param {credentialsCallback} cb\n\t */\n\tPopup.prototype.loginWithCredentials = function(options, cb) {\n\t var params;\n\t var popup;\n\t var url;\n\t var relayUrl;\n\t\n\t /* eslint-disable */\n\t assert.check(\n\t options,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t clientID: { optional: true, type: 'string', message: 'clientID option is required' },\n\t redirectUri: { optional: true, type: 'string', message: 'redirectUri option is required' },\n\t responseType: { optional: true, type: 'string', message: 'responseType option is required' },\n\t scope: { optional: true, type: 'string', message: 'scope option is required' },\n\t audience: { optional: true, type: 'string', message: 'audience option is required' }\n\t }\n\t );\n\t /* eslint-enable */\n\t\n\t popup = this.getPopupHandler(options);\n\t\n\t options = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'scope',\n\t 'domain',\n\t 'audience',\n\t '_csrf',\n\t 'state',\n\t '_instate',\n\t 'nonce'\n\t ])\n\t .with(objectHelper.blacklist(options, ['popupHandler']));\n\t\n\t params = objectHelper.pick(options, ['clientID', 'domain']);\n\t params.options = objectHelper.toSnakeCase(\n\t objectHelper.pick(options, ['password', 'connection', 'state', 'scope', '_csrf', 'device'])\n\t );\n\t params.options.username = options.username || options.email;\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'sso_dbconnection_popup', options.clientID);\n\t relayUrl = urljoin(this.baseOptions.rootUrl, 'relay.html');\n\t\n\t return popup.load(url, relayUrl, { params: params }, responseHandler(cb));\n\t};\n\t\n\t/**\n\t * Verifies the passwordless TOTP and redirects to finish the passwordless transaction\n\t *\n\t * @method passwordlessVerify\n\t * @param {Object} options\n\t * @param {String} options.type `sms` or `email`\n\t * @param {String} options.phoneNumber only if type = sms\n\t * @param {String} options.email only if type = email\n\t * @param {String} options.connection the connection name\n\t * @param {String} options.verificationCode the TOTP code\n\t * @param {Function} cb\n\t */\n\tPopup.prototype.passwordlessVerify = function(options, cb) {\n\t var _this = this;\n\t return this.client.passwordless.verify(\n\t objectHelper.blacklist(options, ['popupHandler']),\n\t function(err) {\n\t if (err) {\n\t return cb(err);\n\t }\n\t\n\t options.username = options.phoneNumber || options.email;\n\t options.password = options.verificationCode;\n\t\n\t delete options.email;\n\t delete options.phoneNumber;\n\t delete options.verificationCode;\n\t delete options.type;\n\t\n\t _this.client.loginWithResourceOwner(options, cb);\n\t }\n\t );\n\t};\n\t\n\t/**\n\t * Signs up a new user and automatically logs the user in after the signup.\n\t *\n\t * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n\t * you should use {@link authorize} or {@link signupAndAuthorize}.\n\t *\n\t * @method signupAndLogin\n\t * @param {Object} options\n\t * @param {String} options.email user email address\n\t * @param {String} options.password user password\n\t * @param {String} options.connection name of the connection where the user will be created\n\t * @param {credentialsCallback} cb\n\t */\n\tPopup.prototype.signupAndLogin = function(options, cb) {\n\t var _this = this;\n\t\n\t // Preload popup to avoid the browser to block it since the login happens later\n\t var popupHandler = this.getPopupHandler(options, true);\n\t options.popupHandler = popupHandler;\n\t\n\t return this.client.dbConnection.signup(\n\t objectHelper.blacklist(options, ['popupHandler']),\n\t function(err) {\n\t if (err) {\n\t if (popupHandler._current_popup) {\n\t popupHandler._current_popup.kill();\n\t }\n\t return cb(err);\n\t }\n\t _this.loginWithCredentials(options, cb);\n\t }\n\t );\n\t};\n\t\n\tmodule.exports = Popup;\n\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar UsernamePassword = __webpack_require__(61);\n\tvar objectHelper = __webpack_require__(2);\n\tvar Warn = __webpack_require__(11);\n\tvar assert = __webpack_require__(4);\n\t\n\tfunction Redirect(client, options) {\n\t this.baseOptions = options;\n\t this.client = client;\n\t\n\t this.warn = new Warn({\n\t disableWarnings: !!options._disableDeprecationWarnings\n\t });\n\t}\n\t\n\t/**\n\t * @callback credentialsCallback\n\t * @param {Error} [err] error returned by Auth0 with the reason of the Auth failure\n\t * @param {Object} [result] result of the AuthN request\n\t * @param {String} result.accessToken token that can be used with {@link userinfo}\n\t * @param {String} [result.idToken] token that identifies the user\n\t * @param {String} [result.refreshToken] token that can be used to get new access tokens from Auth0. Note that not all clients can request them or the resource server might not allow them.\n\t */\n\t\n\t/**\n\t * Performs authentication with username/email and password with a database connection\n\t *\n\t * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n\t * you should use {@link authorize} or {@link login}.\n\t *\n\t * @method loginWithCredentials\n\t * @param {Object} options\n\t * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n\t * @param {String} [options.responseType] type of the response used. It can be any of the values `code` and `token`\n\t * @param {String} [options.responseMode] how the AuthN response is encoded and redirected back to the client. Supported values are `query` and `fragment`\n\t * @param {String} [options.scope] scopes to be requested during AuthN. e.g. `openid email`\n\t * @param {credentialsCallback} cb\n\t */\n\tRedirect.prototype.loginWithCredentials = function(options, cb) {\n\t var usernamePassword;\n\t\n\t var params = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'redirectUri',\n\t 'tenant',\n\t 'responseType',\n\t 'responseMode',\n\t 'scope',\n\t 'audience',\n\t '_csrf',\n\t 'state',\n\t '_instate',\n\t 'nonce'\n\t ])\n\t .with(options);\n\t\n\t assert.check(\n\t params,\n\t { type: 'object', message: 'options parameter is not valid' },\n\t {\n\t responseType: { type: 'string', message: 'responseType option is required' }\n\t }\n\t );\n\t\n\t usernamePassword = new UsernamePassword(this.baseOptions);\n\t return usernamePassword.login(params, function(err, data) {\n\t if (err) {\n\t return cb(err);\n\t }\n\t return usernamePassword.callback(data);\n\t });\n\t};\n\t\n\t/**\n\t * Signs up a new user and automatically logs the user in after the signup.\n\t *\n\t * @method signupAndLogin\n\t * @param {Object} options\n\t * @param {String} options.email user email address\n\t * @param {String} options.password user password\n\t * @param {String} options.connection name of the connection where the user will be created\n\t * @param {credentialsCallback} cb\n\t */\n\tRedirect.prototype.signupAndLogin = function(options, cb) {\n\t var _this = this;\n\t return this.client.dbConnection.signup(options, function(err) {\n\t if (err) {\n\t return cb(err);\n\t }\n\t return _this.loginWithCredentials(options, cb);\n\t });\n\t};\n\t\n\tmodule.exports = Redirect;\n\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar IframeHandler = __webpack_require__(43);\n\t\n\tfunction SilentAuthenticationHandler(options) {\n\t this.authenticationUrl = options.authenticationUrl;\n\t this.timeout = options.timeout || 60 * 1000;\n\t this.handler = null;\n\t this.postMessageDataType = options.postMessageDataType || false;\n\t}\n\t\n\tSilentAuthenticationHandler.create = function(options) {\n\t return new SilentAuthenticationHandler(options);\n\t};\n\t\n\tSilentAuthenticationHandler.prototype.login = function(usePostMessage, callback) {\n\t this.handler = new IframeHandler({\n\t auth0: this.auth0,\n\t url: this.authenticationUrl,\n\t eventListenerType: usePostMessage ? 'message' : 'load',\n\t callback: this.getCallbackHandler(callback, usePostMessage),\n\t timeout: this.timeout,\n\t eventValidator: this.getEventValidator(),\n\t timeoutCallback: function() {\n\t callback(null, '#error=timeout&error_description=Timeout+during+authentication+renew.');\n\t },\n\t usePostMessage: usePostMessage || false\n\t });\n\t\n\t this.handler.init();\n\t};\n\t\n\tSilentAuthenticationHandler.prototype.getEventValidator = function() {\n\t var _this = this;\n\t return {\n\t isValid: function(eventData) {\n\t switch (eventData.event.type) {\n\t case 'message':\n\t // Default behaviour, return all message events.\n\t if (_this.postMessageDataType === false) {\n\t return true;\n\t }\n\t\n\t return (\n\t eventData.event.data.type && eventData.event.data.type === _this.postMessageDataType\n\t );\n\t\n\t case 'load': // Fall through to default\n\t default:\n\t return true;\n\t }\n\t }\n\t };\n\t};\n\t\n\tSilentAuthenticationHandler.prototype.getCallbackHandler = function(callback, usePostMessage) {\n\t return function(eventData) {\n\t var callbackValue;\n\t if (!usePostMessage) {\n\t callbackValue = eventData.sourceObject.contentWindow.location.hash;\n\t } else if (typeof eventData.event.data === 'object' && eventData.event.data.hash) {\n\t callbackValue = eventData.event.data.hash;\n\t } else {\n\t callbackValue = eventData.event.data;\n\t }\n\t callback(null, callbackValue);\n\t };\n\t};\n\t\n\tmodule.exports = SilentAuthenticationHandler;\n\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar urljoin = __webpack_require__(1);\n\t\n\tvar objectHelper = __webpack_require__(2);\n\tvar RequestBuilder = __webpack_require__(10);\n\tvar responseHandler = __webpack_require__(6);\n\tvar windowHelper = __webpack_require__(3);\n\t\n\tfunction UsernamePassword(options) {\n\t this.baseOptions = options;\n\t this.request = new RequestBuilder(options);\n\t}\n\t\n\tUsernamePassword.prototype.login = function(options, cb) {\n\t var url;\n\t var body;\n\t\n\t url = urljoin(this.baseOptions.rootUrl, 'usernamepassword', 'login');\n\t\n\t options.username = options.username || options.email; // eslint-disable-line\n\t\n\t options = objectHelper.blacklist(options, ['email']); // eslint-disable-line\n\t\n\t body = objectHelper\n\t .merge(this.baseOptions, [\n\t 'clientID',\n\t 'redirectUri',\n\t 'tenant',\n\t 'responseType',\n\t 'responseMode',\n\t 'scope',\n\t 'audience'\n\t ])\n\t .with(options);\n\t\n\t body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\t\n\t return this.request.post(url).send(body).end(responseHandler(cb));\n\t};\n\t\n\tUsernamePassword.prototype.callback = function(formHtml) {\n\t var div;\n\t var form;\n\t var _document = windowHelper.getDocument();\n\t\n\t div = _document.createElement('div');\n\t div.innerHTML = formHtml;\n\t form = _document.body.appendChild(div).children[0];\n\t\n\t form.submit();\n\t};\n\t\n\tmodule.exports = UsernamePassword;\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// auth0.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 7b1004490308b0712546","(function (name, context, definition) {\n if (typeof module !== 'undefined' && module.exports) module.exports = definition();\n else if (typeof define === 'function' && define.amd) define(definition);\n else context[name] = definition();\n})('urljoin', this, function () {\n\n function normalize (str, options) {\n\n // make sure protocol is followed by two slashes\n str = str.replace(/:\\//g, '://');\n\n // remove consecutive slashes\n str = str.replace(/([^:\\s])\\/+/g, '$1/');\n\n // remove trailing slash before parameters or hash\n str = str.replace(/\\/(\\?|&|#[^!])/g, '$1');\n\n // replace ? in parameters with &\n str = str.replace(/(\\?.+)\\?/g, '$1&');\n\n return str;\n }\n\n return function () {\n var input = arguments;\n var options = {};\n\n if (typeof arguments[0] === 'object') {\n // new syntax with array and options\n input = arguments[0];\n options = arguments[1] || {};\n }\n\n var joined = [].slice.call(input, 0).join('/');\n return normalize(joined, options);\n };\n\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/url-join/lib/url-join.js\n// module id = 1\n// module chunks = 0 1","/* eslint-disable no-param-reassign */\n/* eslint-disable no-restricted-syntax */\n/* eslint-disable guard-for-in */\n\nvar assert = require('./assert');\nvar objectAssign = require('./object-assign');\n\nfunction pick(object, keys) {\n return keys.reduce(function(prev, key) {\n if (object[key]) {\n prev[key] = object[key];\n }\n return prev;\n }, {});\n}\n\nfunction getKeysNotIn(obj, allowedKeys) {\n var notAllowed = [];\n for (var key in obj) {\n if (allowedKeys.indexOf(key) === -1) {\n notAllowed.push(key);\n }\n }\n return notAllowed;\n}\n\nfunction objectValues(obj) {\n var values = [];\n for (var key in obj) {\n values.push(obj[key]);\n }\n return values;\n}\n\nfunction extend() {\n var params = objectValues(arguments);\n params.unshift({});\n return objectAssign.get().apply(undefined, params);\n}\n\nfunction merge(object, keys) {\n return {\n base: keys ? pick(object, keys) : object,\n with: function(object2, keys2) {\n object2 = keys2 ? pick(object2, keys2) : object2;\n return extend(this.base, object2);\n }\n };\n}\n\nfunction blacklist(object, blacklistedKeys) {\n return Object.keys(object).reduce(function(p, key) {\n if (blacklistedKeys.indexOf(key) === -1) {\n p[key] = object[key];\n }\n return p;\n }, {});\n}\n\nfunction camelToSnake(str) {\n var newKey = '';\n var index = 0;\n var code;\n var wasPrevNumber = true;\n var wasPrevUppercase = true;\n\n while (index < str.length) {\n code = str.charCodeAt(index);\n if (\n (!wasPrevUppercase && code >= 65 && code <= 90) ||\n (!wasPrevNumber && code >= 48 && code <= 57)\n ) {\n newKey += '_';\n newKey += str[index].toLowerCase();\n } else {\n newKey += str[index].toLowerCase();\n }\n wasPrevNumber = code >= 48 && code <= 57;\n wasPrevUppercase = code >= 65 && code <= 90;\n index++;\n }\n\n return newKey;\n}\n\nfunction snakeToCamel(str) {\n var parts = str.split('_');\n return parts.reduce(function(p, c) {\n return p + c.charAt(0).toUpperCase() + c.slice(1);\n }, parts.shift());\n}\n\nfunction toSnakeCase(object, exceptions) {\n if (typeof object !== 'object' || assert.isArray(object) || object === null) {\n return object;\n }\n exceptions = exceptions || [];\n\n return Object.keys(object).reduce(function(p, key) {\n var newKey = exceptions.indexOf(key) === -1 ? camelToSnake(key) : key;\n p[newKey] = toSnakeCase(object[key]);\n return p;\n }, {});\n}\n\nfunction toCamelCase(object, exceptions) {\n if (typeof object !== 'object' || assert.isArray(object) || object === null) {\n return object;\n }\n\n exceptions = exceptions || [];\n\n return Object.keys(object).reduce(function(p, key) {\n var newKey = exceptions.indexOf(key) === -1 ? snakeToCamel(key) : key;\n p[newKey] = toCamelCase(object[key]);\n return p;\n }, {});\n}\n\nmodule.exports = {\n toSnakeCase: toSnakeCase,\n toCamelCase: toCamelCase,\n blacklist: blacklist,\n merge: merge,\n pick: pick,\n getKeysNotIn: getKeysNotIn,\n extend: extend\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/object.js\n// module id = 2\n// module chunks = 0","function redirect(url) {\n global.window.location = url;\n}\n\nfunction getDocument() {\n return global.window.document;\n}\n\nfunction getWindow() {\n return global.window;\n}\n\nmodule.exports = {\n redirect: redirect,\n getDocument: getDocument,\n getWindow: getWindow\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/window.js\n// module id = 3\n// module chunks = 0 1","var toString = Object.prototype.toString;\n\nfunction attribute(o, attr, type, text) {\n type = type === 'array' ? 'object' : type;\n if (o && typeof o[attr] !== type) {\n throw new Error(text);\n }\n}\n\nfunction variable(o, type, text) {\n if (typeof o !== type) {\n throw new Error(text);\n }\n}\n\nfunction value(o, values, text) {\n if (values.indexOf(o) === -1) {\n throw new Error(text);\n }\n}\n\nfunction check(o, config, attributes) {\n if (!config.optional || o) {\n variable(o, config.type, config.message);\n }\n if (config.type === 'object' && attributes) {\n var keys = Object.keys(attributes);\n\n for (var index = 0; index < keys.length; index++) {\n var a = keys[index];\n if (!attributes[a].optional || o[a]) {\n if (!attributes[a].condition || attributes[a].condition(o)) {\n attribute(o, a, attributes[a].type, attributes[a].message);\n if (attributes[a].values) {\n value(o[a], attributes[a].values, attributes[a].value_message);\n }\n }\n }\n }\n }\n}\n\n/**\n * Wrap `Array.isArray` Polyfill for IE9\n * source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray\n *\n * @param {Array} array\n * @private\n */\nfunction isArray(array) {\n if (this.supportsIsArray()) {\n return Array.isArray(array);\n }\n\n return toString.call(array) === '[object Array]';\n}\n\nfunction supportsIsArray() {\n return Array.isArray != null;\n}\n\nmodule.exports = {\n check: check,\n attribute: attribute,\n variable: variable,\n value: value,\n isArray: isArray,\n supportsIsArray: supportsIsArray\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/assert.js\n// module id = 4\n// module chunks = 0","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/qs/lib/index.js\n// module id = 5\n// module chunks = 0 1","var error = require('./error');\nvar objectHelper = require('./object');\n\nfunction wrapCallback(cb, options) {\n options = options || {};\n options.ignoreCasing = options.ignoreCasing ? options.ignoreCasing : false;\n\n return function(err, data) {\n var errObj;\n\n if (!err && !data) {\n return cb(error.buildResponse('generic_error', 'Something went wrong'));\n }\n\n if (!err && data.err) {\n err = data.err;\n data = null;\n }\n\n if (!err && data.error) {\n err = data;\n data = null;\n }\n\n if (err) {\n errObj = {\n original: err\n };\n\n if (err.response && err.response.statusCode) {\n errObj.statusCode = err.response.statusCode;\n }\n\n if (err.response && err.response.statusText) {\n errObj.statusText = err.response.statusText;\n }\n\n if (err.response && err.response.body) {\n err = err.response.body;\n }\n\n if (err.err) {\n err = err.err;\n }\n\n errObj.code = err.error || err.code || err.error_code || err.status || null;\n errObj.description =\n err.errorDescription ||\n err.error_description ||\n err.description ||\n err.error ||\n err.details ||\n err.err ||\n null;\n\n if (err.name) {\n errObj.name = err.name;\n }\n\n if (err.policy) {\n errObj.policy = err.policy;\n }\n\n return cb(errObj);\n }\n\n if (data.type && (data.type === 'text/html' || data.type === 'text/plain')) {\n return cb(null, data.text);\n }\n\n if (options.ignoreCasing) {\n return cb(null, data.body || data);\n }\n\n return cb(null, objectHelper.toCamelCase(data.body || data));\n };\n}\n\nmodule.exports = wrapCallback;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/response-handler.js\n// module id = 6\n// module chunks = 0","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nmodule.exports = {\n 'default': 'RFC3986',\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return value;\n }\n },\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/qs/lib/formats.js\n// module id = 7\n// module chunks = 0 1","'use strict';\n\nvar has = Object.prototype.hasOwnProperty;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nexports.arrayToObject = function (source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nexports.merge = function (target, source, options) {\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (Array.isArray(target)) {\n target.push(source);\n } else if (typeof target === 'object') {\n if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (Array.isArray(target) && !Array.isArray(source)) {\n mergeTarget = exports.arrayToObject(target, options);\n }\n\n if (Array.isArray(target) && Array.isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n if (target[i] && typeof target[i] === 'object') {\n target[i] = exports.merge(target[i], item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (Object.prototype.hasOwnProperty.call(acc, key)) {\n acc[key] = exports.merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nexports.decode = function (str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n};\n\nexports.encode = function (str) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = typeof str === 'string' ? str : String(str);\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D || // -\n c === 0x2E || // .\n c === 0x5F || // _\n c === 0x7E || // ~\n (c >= 0x30 && c <= 0x39) || // 0-9\n (c >= 0x41 && c <= 0x5A) || // a-z\n (c >= 0x61 && c <= 0x7A) // A-Z\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n out += hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]; // eslint-disable-line max-len\n }\n\n return out;\n};\n\nexports.compact = function (obj, references) {\n if (typeof obj !== 'object' || obj === null) {\n return obj;\n }\n\n var refs = references || [];\n var lookup = refs.indexOf(obj);\n if (lookup !== -1) {\n return refs[lookup];\n }\n\n refs.push(obj);\n\n if (Array.isArray(obj)) {\n var compacted = [];\n\n for (var i = 0; i < obj.length; ++i) {\n if (obj[i] && typeof obj[i] === 'object') {\n compacted.push(exports.compact(obj[i], refs));\n } else if (typeof obj[i] !== 'undefined') {\n compacted.push(obj[i]);\n }\n }\n\n return compacted;\n }\n\n var keys = Object.keys(obj);\n keys.forEach(function (key) {\n obj[key] = exports.compact(obj[key], refs);\n });\n\n return obj;\n};\n\nexports.isRegExp = function (obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nexports.isBuffer = function (obj) {\n if (obj === null || typeof obj === 'undefined') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/qs/lib/utils.js\n// module id = 8\n// module chunks = 0 1","module.exports = { raw: '8.7.0' };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/version.js\n// module id = 9\n// module chunks = 0 1","/* eslint-disable no-param-reassign */\nvar request = require('superagent');\nvar base64Url = require('./base64_url');\nvar version = require('../version');\n\n// ------------------------------------------------ RequestWrapper\n\nfunction RequestWrapper(req) {\n this.request = req;\n this.method = req.method;\n this.url = req.url;\n this.body = req._data;\n this.headers = req._header;\n}\n\nRequestWrapper.prototype.abort = function() {\n this.request.abort();\n};\n\nRequestWrapper.prototype.getMethod = function() {\n return this.method;\n};\n\nRequestWrapper.prototype.getBody = function() {\n return this.body;\n};\n\nRequestWrapper.prototype.getUrl = function() {\n return this.url;\n};\n\nRequestWrapper.prototype.getHeaders = function() {\n return this.headers;\n};\n\n// ------------------------------------------------ RequestObj\n\nfunction RequestObj(req) {\n this.request = req;\n}\n\nRequestObj.prototype.set = function(key, value) {\n this.request = this.request.set(key, value);\n return this;\n};\n\nRequestObj.prototype.send = function(body) {\n this.request = this.request.send(body);\n return this;\n};\n\nRequestObj.prototype.withCredentials = function() {\n this.request = this.request.withCredentials();\n return this;\n};\n\nRequestObj.prototype.end = function(cb) {\n this.request = this.request.end(cb);\n return new RequestWrapper(this.request);\n};\n\n// ------------------------------------------------ RequestBuilder\n\nfunction RequestBuilder(options) {\n this._sendTelemetry = options._sendTelemetry === false ? options._sendTelemetry : true;\n this._telemetryInfo = options._telemetryInfo || null;\n this.headers = options.headers || {};\n}\n\nRequestBuilder.prototype.setCommonConfiguration = function(ongoingRequest, options) {\n options = options || {};\n\n if (options.noHeaders) {\n return ongoingRequest;\n }\n\n var headers = this.headers;\n ongoingRequest = ongoingRequest.set('Content-Type', 'application/json');\n\n var keys = Object.keys(this.headers);\n\n for (var a = 0; a < keys.length; a++) {\n ongoingRequest = ongoingRequest.set(keys[a], headers[keys[a]]);\n }\n\n if (this._sendTelemetry) {\n ongoingRequest = ongoingRequest.set('Auth0-Client', this.getTelemetryData());\n }\n return ongoingRequest;\n};\n\nRequestBuilder.prototype.getTelemetryData = function() {\n var clientInfo = this._telemetryInfo || { name: 'auth0.js', version: version.raw };\n var jsonClientInfo = JSON.stringify(clientInfo);\n return base64Url.encode(jsonClientInfo);\n};\n\nRequestBuilder.prototype.get = function(url, options) {\n return new RequestObj(this.setCommonConfiguration(request.get(url), options));\n};\n\nRequestBuilder.prototype.post = function(url, options) {\n return new RequestObj(this.setCommonConfiguration(request.post(url), options));\n};\n\nRequestBuilder.prototype.patch = function(url, options) {\n return new RequestObj(this.setCommonConfiguration(request.patch(url), options));\n};\n\nmodule.exports = RequestBuilder;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/request-builder.js\n// module id = 10\n// module chunks = 0","/* eslint-disable no-console */\n\nfunction Warn(options) {\n this.disableWarnings = options.disableWarnings;\n}\n\nWarn.prototype.warning = function(message) {\n if (this.disableWarnings) {\n return;\n }\n\n console.warn(message);\n};\n\nmodule.exports = Warn;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/warn.js\n// module id = 11\n// module chunks = 0","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n arrayLimit: 20,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n parameterLimit: 1000,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = {};\n var parts = str.split(options.delimiter, options.parameterLimit === Infinity ? undefined : options.parameterLimit);\n\n for (var i = 0; i < parts.length; ++i) {\n var part = parts[i];\n var pos = part.indexOf(']=') === -1 ? part.indexOf('=') : part.indexOf(']=') + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part);\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos));\n val = options.decoder(part.slice(pos + 1));\n }\n if (has.call(obj, key)) {\n obj[key] = [].concat(obj[key]).concat(val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function parseObjectRecursive(chain, val, options) {\n if (!chain.length) {\n return val;\n }\n\n var root = chain.shift();\n\n var obj;\n if (root === '[]') {\n obj = [];\n obj = obj.concat(parseObject(chain, val, options));\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (\n !isNaN(index) &&\n root !== cleanRoot &&\n String(index) === cleanRoot &&\n index >= 0 &&\n (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = parseObject(chain, val, options);\n } else {\n obj[cleanRoot] = parseObject(chain, val, options);\n }\n }\n\n return obj;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys\n // that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while ((segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options);\n};\n\nmodule.exports = function (str, opts) {\n var options = opts || {};\n\n if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter;\n options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth;\n options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit;\n options.parseArrays = options.parseArrays !== false;\n options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder;\n options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots;\n options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects;\n options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes;\n options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit;\n options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options);\n obj = utils.merge(obj, newObj, options);\n }\n\n return utils.compact(obj);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/qs/lib/parse.js\n// module id = 12\n// module chunks = 0 1","'use strict';\n\nvar utils = require('./utils');\nvar formats = require('./formats');\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) { // eslint-disable-line func-name-matching\n return prefix + '[]';\n },\n indices: function indices(prefix, key) { // eslint-disable-line func-name-matching\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) { // eslint-disable-line func-name-matching\n return prefix;\n }\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaults = {\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar stringify = function stringify( // eslint-disable-line func-name-matching\n object,\n prefix,\n generateArrayPrefix,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n formatter,\n encodeValuesOnly\n) {\n var obj = object;\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix) : prefix;\n }\n\n obj = '';\n }\n\n if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix);\n return [formatter(keyValue) + '=' + formatter(encoder(obj))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (Array.isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (skipNulls && obj[key] === null) {\n continue;\n }\n\n if (Array.isArray(obj)) {\n values = values.concat(stringify(\n obj[key],\n generateArrayPrefix(prefix, key),\n generateArrayPrefix,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n formatter,\n encodeValuesOnly\n ));\n } else {\n values = values.concat(stringify(\n obj[key],\n prefix + (allowDots ? '.' + key : '[' + key + ']'),\n generateArrayPrefix,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n formatter,\n encodeValuesOnly\n ));\n }\n }\n\n return values;\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = opts || {};\n\n if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter;\n var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;\n var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;\n var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;\n var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;\n var sort = typeof options.sort === 'function' ? options.sort : null;\n var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;\n var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;\n var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly;\n if (typeof options.format === 'undefined') {\n options.format = formats.default;\n } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n var formatter = formats.formatters[options.format];\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (Array.isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (options.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = options.arrayFormat;\n } else if ('indices' in options) {\n arrayFormat = options.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (sort) {\n objKeys.sort(sort);\n }\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (skipNulls && obj[key] === null) {\n continue;\n }\n\n keys = keys.concat(stringify(\n obj[key],\n key,\n generateArrayPrefix,\n strictNullHandling,\n skipNulls,\n encode ? encoder : null,\n filter,\n sort,\n allowDots,\n serializeDate,\n formatter,\n encodeValuesOnly\n ));\n }\n\n return keys.join(delimiter);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/qs/lib/stringify.js\n// module id = 13\n// module chunks = 0 1","/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\n\nfunction isObject(obj) {\n return null !== obj && 'object' === typeof obj;\n}\n\nmodule.exports = isObject;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/superagent/lib/is-object.js\n// module id = 14\n// module chunks = 0","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction placeHoldersCount (b64) {\n var len = b64.length\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // the number of equal signs (place holders)\n // if there are two placeholders, than the two characters before it\n // represent one byte\n // if there is only one, then the three characters before it represent 2 bytes\n // this is just a cheap hack to not do indexOf twice\n return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0\n}\n\nfunction byteLength (b64) {\n // base64 is 4/3 + up to two characters of the original data\n return b64.length * 3 / 4 - placeHoldersCount(b64)\n}\n\nfunction toByteArray (b64) {\n var i, j, l, tmp, placeHolders, arr\n var len = b64.length\n placeHolders = placeHoldersCount(b64)\n\n arr = new Arr(len * 3 / 4 - placeHolders)\n\n // if there are placeholders, only get up to the last complete 4 chars\n l = placeHolders > 0 ? len - 4 : len\n\n var L = 0\n\n for (i = 0, j = 0; i < l; i += 4, j += 3) {\n tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]\n arr[L++] = (tmp >> 16) & 0xFF\n arr[L++] = (tmp >> 8) & 0xFF\n arr[L++] = tmp & 0xFF\n }\n\n if (placeHolders === 2) {\n tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[L++] = tmp & 0xFF\n } else if (placeHolders === 1) {\n tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[L++] = (tmp >> 8) & 0xFF\n arr[L++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var output = ''\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n output += lookup[tmp >> 2]\n output += lookup[(tmp << 4) & 0x3F]\n output += '=='\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + (uint8[len - 1])\n output += lookup[tmp >> 10]\n output += lookup[(tmp >> 4) & 0x3F]\n output += lookup[(tmp << 2) & 0x3F]\n output += '='\n }\n\n parts.push(output)\n\n return parts.join('')\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/base64-js/index.js\n// module id = 15\n// module chunks = 0","var base64 = require('base64-js');\n\nfunction padding(str) {\n var mod = (str.length % 4);\n var pad = 4 - mod;\n\n if (mod === 0) {\n return str;\n }\n\n return str + (new Array(1 + pad)).join('=');\n}\n\nfunction byteArrayToString(array) {\n var result = \"\";\n for (var i = 0; i < array.length; i++) {\n result += String.fromCharCode(array[i]);\n }\n return result;\n}\n\nfunction stringToByteArray(str) {\n var arr = new Array(str.length);\n for (var a = 0; a < str.length; a++) {\n arr[a] = str.charCodeAt(a);\n }\n return arr;\n}\n\nfunction byteArrayToHex(raw) {\n var HEX = '';\n\n for (var i = 0; i < raw.length; i++) {\n var _hex = raw[i].toString(16);\n HEX += (_hex.length === 2 ? _hex : '0' + _hex);\n }\n\n return HEX;\n}\n\nfunction encodeString(str) {\n return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {\n return String.fromCharCode('0x' + p1);\n }))\n .replace(/\\+/g, '-') // Convert '+' to '-'\n .replace(/\\//g, '_'); // Convert '/' to '_';\n}\n\nfunction decodeToString(str) {\n str = padding(str)\n .replace(/\\-/g, '+') // Convert '-' to '+'\n .replace(/_/g, '/'); // Convert '_' to '/'\n\n return decodeURIComponent(atob(str).split('').map(function (c) {\n return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n }).join(''));\n}\n\nfunction decodeToHEX(str) {\n return byteArrayToHex(base64.toByteArray(padding(str)));\n}\n\nmodule.exports = {\n encodeString: encodeString,\n decodeToString: decodeToString,\n byteArrayToString: byteArrayToString,\n stringToByteArray: stringToByteArray,\n padding: padding,\n byteArrayToHex: byteArrayToHex,\n decodeToHEX: decodeToHEX\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/idtoken-verifier/src/helpers/base64.js\n// module id = 16\n// module chunks = 0","/**\n * Root reference for iframes.\n */\n\nvar root;\nif (typeof window !== 'undefined') { // Browser window\n root = window;\n} else if (typeof self !== 'undefined') { // Web Worker\n root = self;\n} else { // Other environments\n console.warn(\"Using browser-only version of superagent in non-browser environment\");\n root = this;\n}\n\nvar Emitter = require('component-emitter');\nvar RequestBase = require('./request-base');\nvar isObject = require('./is-object');\nvar isFunction = require('./is-function');\nvar ResponseBase = require('./response-base');\nvar shouldRetry = require('./should-retry');\n\n/**\n * Noop.\n */\n\nfunction noop(){};\n\n/**\n * Expose `request`.\n */\n\nvar request = exports = module.exports = function(method, url) {\n // callback\n if ('function' == typeof url) {\n return new exports.Request('GET', method).end(url);\n }\n\n // url first\n if (1 == arguments.length) {\n return new exports.Request('GET', method);\n }\n\n return new exports.Request(method, url);\n}\n\nexports.Request = Request;\n\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest\n && (!root.location || 'file:' != root.location.protocol\n || !root.ActiveXObject)) {\n return new XMLHttpRequest;\n } else {\n try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {}\n }\n throw Error(\"Browser-only verison of superagent could not find XHR\");\n};\n\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\nvar trim = ''.trim\n ? function(s) { return s.trim(); }\n : function(s) { return s.replace(/(^\\s*|\\s*$)/g, ''); };\n\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n for (var key in obj) {\n pushEncodedKeyValuePair(pairs, key, obj[key]);\n }\n return pairs.join('&');\n}\n\n/**\n * Helps 'serialize' with serializing arrays.\n * Mutates the pairs array.\n *\n * @param {Array} pairs\n * @param {String} key\n * @param {Mixed} val\n */\n\nfunction pushEncodedKeyValuePair(pairs, key, val) {\n if (val != null) {\n if (Array.isArray(val)) {\n val.forEach(function(v) {\n pushEncodedKeyValuePair(pairs, key, v);\n });\n } else if (isObject(val)) {\n for(var subkey in val) {\n pushEncodedKeyValuePair(pairs, key + '[' + subkey + ']', val[subkey]);\n }\n } else {\n pairs.push(encodeURIComponent(key)\n + '=' + encodeURIComponent(val));\n }\n } else if (val === null) {\n pairs.push(encodeURIComponent(key));\n }\n}\n\n/**\n * Expose serialization method.\n */\n\n request.serializeObject = serialize;\n\n /**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var pair;\n var pos;\n\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n pos = pair.indexOf('=');\n if (pos == -1) {\n obj[decodeURIComponent(pair)] = '';\n } else {\n obj[decodeURIComponent(pair.slice(0, pos))] =\n decodeURIComponent(pair.slice(pos + 1));\n }\n }\n\n return obj;\n}\n\n/**\n * Expose parser.\n */\n\nrequest.parseString = parseString;\n\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'application/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n 'form': 'application/x-www-form-urlencoded',\n 'form-data': 'application/x-www-form-urlencoded'\n};\n\n/**\n * Default serialization map.\n *\n * superagent.serialize['application/xml'] = function(obj){\n * return 'generated xml here';\n * };\n *\n */\n\n request.serialize = {\n 'application/x-www-form-urlencoded': serialize,\n 'application/json': JSON.stringify\n };\n\n /**\n * Default parsers.\n *\n * superagent.parse['application/xml'] = function(str){\n * return { object parsed from str };\n * };\n *\n */\n\nrequest.parse = {\n 'application/x-www-form-urlencoded': parseString,\n 'application/json': JSON.parse\n};\n\n/**\n * Parse the given header `str` into\n * an object containing the mapped fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseHeader(str) {\n var lines = str.split(/\\r?\\n/);\n var fields = {};\n var index;\n var line;\n var field;\n var val;\n\n lines.pop(); // trailing CRLF\n\n for (var i = 0, len = lines.length; i < len; ++i) {\n line = lines[i];\n index = line.indexOf(':');\n field = line.slice(0, index).toLowerCase();\n val = trim(line.slice(index + 1));\n fields[field] = val;\n }\n\n return fields;\n}\n\n/**\n * Check if `mime` is json or has +json structured syntax suffix.\n *\n * @param {String} mime\n * @return {Boolean}\n * @api private\n */\n\nfunction isJSON(mime) {\n return /[\\/+]json\\b/.test(mime);\n}\n\n/**\n * Initialize a new `Response` with the given `xhr`.\n *\n * - set flags (.ok, .error, etc)\n * - parse header\n *\n * Examples:\n *\n * Aliasing `superagent` as `request` is nice:\n *\n * request = superagent;\n *\n * We can use the promise-like API, or pass callbacks:\n *\n * request.get('/').end(function(res){});\n * request.get('/', function(res){});\n *\n * Sending data can be chained:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' })\n * .end(function(res){});\n *\n * Or passed to `.send()`:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' }, function(res){});\n *\n * Or passed to `.post()`:\n *\n * request\n * .post('/user', { name: 'tj' })\n * .end(function(res){});\n *\n * Or further reduced to a single call for simple cases:\n *\n * request\n * .post('/user', { name: 'tj' }, function(res){});\n *\n * @param {XMLHTTPRequest} xhr\n * @param {Object} options\n * @api private\n */\n\nfunction Response(req) {\n this.req = req;\n this.xhr = this.req.xhr;\n // responseText is accessible only if responseType is '' or 'text' and on older browsers\n this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined')\n ? this.xhr.responseText\n : null;\n this.statusText = this.req.xhr.statusText;\n var status = this.xhr.status;\n // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n if (status === 1223) {\n status = 204;\n }\n this._setStatusProperties(status);\n this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders());\n // getAllResponseHeaders sometimes falsely returns \"\" for CORS requests, but\n // getResponseHeader still works. so we get content-type even if getting\n // other headers fails.\n this.header['content-type'] = this.xhr.getResponseHeader('content-type');\n this._setHeaderProperties(this.header);\n\n if (null === this.text && req._responseType) {\n this.body = this.xhr.response;\n } else {\n this.body = this.req.method != 'HEAD'\n ? this._parseBody(this.text ? this.text : this.xhr.response)\n : null;\n }\n}\n\nResponseBase(Response.prototype);\n\n/**\n * Parse the given body `str`.\n *\n * Used for auto-parsing of bodies. Parsers\n * are defined on the `superagent.parse` object.\n *\n * @param {String} str\n * @return {Mixed}\n * @api private\n */\n\nResponse.prototype._parseBody = function(str){\n var parse = request.parse[this.type];\n if(this.req._parser) {\n return this.req._parser(this, str);\n }\n if (!parse && isJSON(this.type)) {\n parse = request.parse['application/json'];\n }\n return parse && str && (str.length || str instanceof Object)\n ? parse(str)\n : null;\n};\n\n/**\n * Return an `Error` representative of this response.\n *\n * @return {Error}\n * @api public\n */\n\nResponse.prototype.toError = function(){\n var req = this.req;\n var method = req.method;\n var url = req.url;\n\n var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')';\n var err = new Error(msg);\n err.status = this.status;\n err.method = method;\n err.url = url;\n\n return err;\n};\n\n/**\n * Expose `Response`.\n */\n\nrequest.Response = Response;\n\n/**\n * Initialize a new `Request` with the given `method` and `url`.\n *\n * @param {String} method\n * @param {String} url\n * @api public\n */\n\nfunction Request(method, url) {\n var self = this;\n this._query = this._query || [];\n this.method = method;\n this.url = url;\n this.header = {}; // preserves header name case\n this._header = {}; // coerces header names to lowercase\n this.on('end', function(){\n var err = null;\n var res = null;\n\n try {\n res = new Response(self);\n } catch(e) {\n err = new Error('Parser is unable to parse the response');\n err.parse = true;\n err.original = e;\n // issue #675: return the raw response if the response parsing fails\n if (self.xhr) {\n // ie9 doesn't have 'response' property\n err.rawResponse = typeof self.xhr.responseType == 'undefined' ? self.xhr.responseText : self.xhr.response;\n // issue #876: return the http status code if the response parsing fails\n err.status = self.xhr.status ? self.xhr.status : null;\n err.statusCode = err.status; // backwards-compat only\n } else {\n err.rawResponse = null;\n err.status = null;\n }\n\n return self.callback(err);\n }\n\n self.emit('response', res);\n\n var new_err;\n try {\n if (!self._isResponseOK(res)) {\n new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n }\n } catch(e) {\n new_err = e; // #985 touching res may cause INVALID_STATE_ERR on old Android\n }\n\n // #1000 don't catch errors from the callback to avoid double calling it\n if (new_err) {\n self.callback(new_err, res);\n } else {\n self.callback(null, res);\n }\n });\n}\n\n/**\n * Mixin `Emitter` and `RequestBase`.\n */\n\nEmitter(Request.prototype);\nRequestBase(Request.prototype);\n\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function(type){\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function(type){\n this.set('Accept', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} [pass] optional in case of using 'bearer' as type\n * @param {Object} options with 'type' property 'auto', 'basic' or 'bearer' (default 'basic')\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function(user, pass, options){\n if (typeof pass === 'object' && pass !== null) { // pass is optional and can substitute for options\n options = pass;\n }\n if (!options) {\n options = {\n type: 'function' === typeof btoa ? 'basic' : 'auto',\n }\n }\n\n switch (options.type) {\n case 'basic':\n this.set('Authorization', 'Basic ' + btoa(user + ':' + pass));\n break;\n\n case 'auto':\n this.username = user;\n this.password = pass;\n break;\n \n case 'bearer': // usage would be .auth(accessToken, { type: 'bearer' })\n this.set('Authorization', 'Bearer ' + user);\n break; \n }\n return this;\n};\n\n/**\n * Add query-string `val`.\n *\n * Examples:\n *\n * request.get('/shoes')\n * .query('size=10')\n * .query({ color: 'blue' })\n *\n * @param {Object|String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.query = function(val){\n if ('string' != typeof val) val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `options` (or filename).\n *\n * ``` js\n * request.post('/upload')\n * .attach('content', new Blob(['hey!'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String|Object} options\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function(field, file, options){\n if (file) {\n if (this._data) {\n throw Error(\"superagent can't mix .send() and .attach()\");\n }\n\n this._getFormData().append(field, file, options || file.name);\n }\n return this;\n};\n\nRequest.prototype._getFormData = function(){\n if (!this._formData) {\n this._formData = new root.FormData();\n }\n return this._formData;\n};\n\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function(err, res){\n // console.log(this._retries, this._maxRetries)\n if (this._maxRetries && this._retries++ < this._maxRetries && shouldRetry(err, res)) {\n return this._retry();\n }\n\n var fn = this._callback;\n this.clearTimeout();\n\n if (err) {\n if (this._maxRetries) err.retries = this._retries - 1;\n this.emit('error', err);\n }\n\n fn(err, res);\n};\n\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function(){\n var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n err.crossDomain = true;\n\n err.status = this.status;\n err.method = this.method;\n err.url = this.url;\n\n this.callback(err);\n};\n\n// This only warns, because the request is still likely to work\nRequest.prototype.buffer = Request.prototype.ca = Request.prototype.agent = function(){\n console.warn(\"This is not supported in browser version of superagent\");\n return this;\n};\n\n// This throws, because it can't send/receive data as expected\nRequest.prototype.pipe = Request.prototype.write = function(){\n throw Error(\"Streaming is not supported in browser version of superagent\");\n};\n\n/**\n * Compose querystring to append to req.url\n *\n * @api private\n */\n\nRequest.prototype._appendQueryString = function(){\n var query = this._query.join('&');\n if (query) {\n this.url += (this.url.indexOf('?') >= 0 ? '&' : '?') + query;\n }\n\n if (this._sort) {\n var index = this.url.indexOf('?');\n if (index >= 0) {\n var queryArr = this.url.substring(index + 1).split('&');\n if (isFunction(this._sort)) {\n queryArr.sort(this._sort);\n } else {\n queryArr.sort();\n }\n this.url = this.url.substring(0, index) + '?' + queryArr.join('&');\n }\n }\n};\n\n/**\n * Check if `obj` is a host object,\n * we don't want to serialize these :)\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\nRequest.prototype._isHost = function _isHost(obj) {\n // Native objects stringify to [object File], [object Blob], [object FormData], etc.\n return obj && 'object' === typeof obj && !Array.isArray(obj) && Object.prototype.toString.call(obj) !== '[object Object]';\n}\n\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function(fn){\n if (this._endCalled) {\n console.warn(\"Warning: .end() was called twice. This is not supported in superagent\");\n }\n this._endCalled = true;\n\n // store callback\n this._callback = fn || noop;\n\n // querystring\n this._appendQueryString();\n\n return this._end();\n};\n\nRequest.prototype._end = function() {\n var self = this;\n var xhr = this.xhr = request.getXHR();\n var data = this._formData || this._data;\n\n this._setTimeouts();\n\n // state change\n xhr.onreadystatechange = function(){\n var readyState = xhr.readyState;\n if (readyState >= 2 && self._responseTimeoutTimer) {\n clearTimeout(self._responseTimeoutTimer);\n }\n if (4 != readyState) {\n return;\n }\n\n // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n var status;\n try { status = xhr.status } catch(e) { status = 0; }\n\n if (!status) {\n if (self.timedout || self._aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n };\n\n // progress\n var handleProgress = function(direction, e) {\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n }\n e.direction = direction;\n self.emit('progress', e);\n }\n if (this.hasListeners('progress')) {\n try {\n xhr.onprogress = handleProgress.bind(null, 'download');\n if (xhr.upload) {\n xhr.upload.onprogress = handleProgress.bind(null, 'upload');\n }\n } catch(e) {\n // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n }\n\n // initiate request\n try {\n if (this.username && this.password) {\n xhr.open(this.method, this.url, true, this.username, this.password);\n } else {\n xhr.open(this.method, this.url, true);\n }\n } catch (err) {\n // see #1149\n return this.callback(err);\n }\n\n // CORS\n if (this._withCredentials) xhr.withCredentials = true;\n\n // body\n if (!this._formData && 'GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) {\n // serialize stuff\n var contentType = this._header['content-type'];\n var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n if (!serialize && isJSON(contentType)) {\n serialize = request.serialize['application/json'];\n }\n if (serialize) data = serialize(data);\n }\n\n // set header fields\n for (var field in this.header) {\n if (null == this.header[field]) continue;\n xhr.setRequestHeader(field, this.header[field]);\n }\n\n if (this._responseType) {\n xhr.responseType = this._responseType;\n }\n\n // send stuff\n this.emit('request', this);\n\n // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n // We need null here if data is undefined\n xhr.send(typeof data !== 'undefined' ? data : null);\n return this;\n};\n\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.get = function(url, data, fn){\n var req = request('GET', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.head = function(url, data, fn){\n var req = request('HEAD', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * OPTIONS query to `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.options = function(url, data, fn){\n var req = request('OPTIONS', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * DELETE `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nfunction del(url, data, fn){\n var req = request('DELETE', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\nrequest['del'] = del;\nrequest['delete'] = del;\n\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function(url, data, fn){\n var req = request('PATCH', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.post = function(url, data, fn){\n var req = request('POST', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.put = function(url, data, fn){\n var req = request('PUT', url);\n if ('function' == typeof data) fn = data, data = null;\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/superagent/lib/client.js\n// module id = 17\n// module chunks = 0","var WinChan = (function() {\n var RELAY_FRAME_NAME = \"__winchan_relay_frame\";\n var CLOSE_CMD = \"die\";\n\n // a portable addListener implementation\n function addListener(w, event, cb) {\n if(w.attachEvent) w.attachEvent('on' + event, cb);\n else if (w.addEventListener) w.addEventListener(event, cb, false);\n }\n\n // a portable removeListener implementation\n function removeListener(w, event, cb) {\n if(w.detachEvent) w.detachEvent('on' + event, cb);\n else if (w.removeEventListener) w.removeEventListener(event, cb, false);\n }\n\n\n // checking for IE8 or above\n function isInternetExplorer() {\n if (typeof navigator === 'undefined') {\n return false;\n }\n\n var rv = -1; // Return value assumes failure.\n var ua = navigator.userAgent;\n if (navigator.appName === 'Microsoft Internet Explorer') {\n var re = new RegExp(\"MSIE ([0-9]{1,}[\\.0-9]{0,})\");\n if (re.exec(ua) != null)\n rv = parseFloat(RegExp.$1);\n }\n // IE > 11\n else if (ua.indexOf(\"Trident\") > -1) {\n var re = new RegExp(\"rv:([0-9]{2,2}[\\.0-9]{0,})\");\n if (re.exec(ua) !== null) {\n rv = parseFloat(RegExp.$1);\n }\n }\n\n return rv >= 8;\n }\n\n // checking Mobile Firefox (Fennec)\n function isFennec() {\n try {\n // We must check for both XUL and Java versions of Fennec. Both have\n // distinct UA strings.\n var userAgent = navigator.userAgent;\n return (userAgent.indexOf('Fennec/') != -1) || // XUL\n (userAgent.indexOf('Firefox/') != -1 && userAgent.indexOf('Android') != -1); // Java\n } catch(e) {}\n return false;\n }\n\n // feature checking to see if this platform is supported at all\n function isSupported() {\n return (typeof window !== 'undefined' && window.JSON && window.JSON.stringify &&\n window.JSON.parse && window.postMessage);\n }\n\n // given a URL, extract the origin. Taken from: https://github.com/firebase/firebase-simple-login/blob/d2cb95b9f812d8488bdbfba51c3a7c153ba1a074/js/src/simple-login/transports/WinChan.js#L25-L30\n function extractOrigin(url) {\n if (!/^https?:\\/\\//.test(url)) url = window.location.href;\n var m = /^(https?:\\/\\/[\\-_a-zA-Z\\.0-9:]+)/.exec(url);\n if (m) return m[1];\n return url;\n }\n\n // find the relay iframe in the opener\n function findRelay() {\n var loc = window.location;\n var frames = window.opener.frames;\n for (var i = frames.length - 1; i >= 0; i--) {\n try {\n if (frames[i].location.protocol === window.location.protocol &&\n frames[i].location.host === window.location.host &&\n frames[i].name === RELAY_FRAME_NAME)\n {\n return frames[i];\n }\n } catch(e) { }\n }\n return;\n }\n\n var isIE = isInternetExplorer();\n\n if (isSupported()) {\n /* General flow:\n * 0. user clicks\n * (IE SPECIFIC) 1. caller adds relay iframe (served from trusted domain) to DOM\n * 2. caller opens window (with content from trusted domain)\n * 3. window on opening adds a listener to 'message'\n * (IE SPECIFIC) 4. window on opening finds iframe\n * 5. window checks if iframe is \"loaded\" - has a 'doPost' function yet\n * (IE SPECIFIC5) 5a. if iframe.doPost exists, window uses it to send ready event to caller\n * (IE SPECIFIC5) 5b. if iframe.doPost doesn't exist, window waits for frame ready\n * (IE SPECIFIC5) 5bi. once ready, window calls iframe.doPost to send ready event\n * 6. caller upon reciept of 'ready', sends args\n */\n return {\n open: function(opts, cb) {\n if (!cb) throw \"missing required callback argument\";\n\n // test required options\n var err;\n if (!opts.url) err = \"missing required 'url' parameter\";\n if (!opts.relay_url) err = \"missing required 'relay_url' parameter\";\n if (err) setTimeout(function() { cb(err); }, 0);\n\n // supply default options\n if (!opts.window_name) opts.window_name = null;\n if (!opts.window_features || isFennec()) opts.window_features = undefined;\n\n // opts.params may be undefined\n\n var iframe;\n\n // sanity check, are url and relay_url the same origin?\n var origin = opts.origin || extractOrigin(opts.url);\n if (origin !== extractOrigin(opts.relay_url)) {\n return setTimeout(function() {\n cb('invalid arguments: origin of url and relay_url must match');\n }, 0);\n }\n\n var messageTarget;\n\n if (isIE) {\n // first we need to add a \"relay\" iframe to the document that's served\n // from the target domain. We can postmessage into a iframe, but not a\n // window\n iframe = document.createElement(\"iframe\");\n // iframe.setAttribute('name', framename);\n iframe.setAttribute('src', opts.relay_url);\n iframe.style.display = \"none\";\n iframe.setAttribute('name', RELAY_FRAME_NAME);\n document.body.appendChild(iframe);\n messageTarget = iframe.contentWindow;\n }\n\n var w = opts.popup || window.open(opts.url, opts.window_name, opts.window_features);\n if (opts.popup) {\n w.location.href = opts.url;\n }\n\n if (!messageTarget) messageTarget = w;\n\n // lets listen in case the window blows up before telling us\n var closeInterval = setInterval(function() {\n if (w && w.closed) {\n cleanup();\n if (cb) {\n cb('User closed the popup window');\n cb = null;\n }\n }\n }, 500);\n\n var req = JSON.stringify({a: 'request', d: opts.params});\n\n // cleanup on unload\n function cleanup() {\n if (iframe) document.body.removeChild(iframe);\n iframe = undefined;\n if (closeInterval) closeInterval = clearInterval(closeInterval);\n removeListener(window, 'message', onMessage);\n removeListener(window, 'unload', cleanup);\n if (w) {\n try {\n w.close();\n } catch (securityViolation) {\n // This happens in Opera 12 sometimes\n // see https://github.com/mozilla/browserid/issues/1844\n messageTarget.postMessage(CLOSE_CMD, origin);\n }\n }\n w = messageTarget = undefined;\n }\n\n addListener(window, 'unload', cleanup);\n\n function onMessage(e) {\n if (e.origin !== origin) { return; }\n try {\n var d = JSON.parse(e.data);\n } catch(err) {\n if (cb) {\n cb(err);\n } else {\n throw err;\n }\n }\n\n if (d.a === 'ready') {\n messageTarget.postMessage(req, origin);\n } else if (d.a === 'error') {\n cleanup();\n if (cb) {\n cb(d.d);\n cb = null;\n }\n } else if (d.a === 'response') {\n cleanup();\n if (cb) {\n cb(null, d.d);\n cb = null;\n }\n }\n }\n\n addListener(window, 'message', onMessage);\n\n return {\n close: cleanup,\n focus: function() {\n if (w) {\n try {\n w.focus();\n } catch (e) {\n // IE7 blows up here, do nothing\n }\n }\n }\n };\n },\n onOpen: function(cb) {\n var o = \"*\";\n var msgTarget = isIE ? findRelay() : window.opener;\n if (!msgTarget) throw \"can't find relay frame\";\n function doPost(msg) {\n msg = JSON.stringify(msg);\n if (isIE) msgTarget.doPost(msg, o);\n else msgTarget.postMessage(msg, o);\n }\n\n function onMessage(e) {\n // only one message gets through, but let's make sure it's actually\n // the message we're looking for (other code may be using\n // postmessage) - we do this by ensuring the payload can\n // be parsed, and it's got an 'a' (action) value of 'request'.\n var d;\n try {\n d = JSON.parse(e.data);\n } catch(err) { }\n if (!d || d.a !== 'request') return;\n removeListener(window, 'message', onMessage);\n o = e.origin;\n if (cb) {\n // this setTimeout is critically important for IE8 -\n // in ie8 sometimes addListener for 'message' can synchronously\n // cause your callback to be invoked. awesome.\n setTimeout(function() {\n cb(o, d.d, function(r) {\n cb = undefined;\n doPost({a: 'response', d: r});\n });\n }, 0);\n }\n }\n\n function onDie(e) {\n if (e.data === CLOSE_CMD) {\n try { window.close(); } catch (o_O) {}\n }\n }\n addListener(isIE ? msgTarget : window, 'message', onMessage);\n addListener(isIE ? msgTarget : window, 'message', onDie);\n\n // we cannot post to our parent that we're ready before the iframe\n // is loaded. (IE specific possible failure)\n try {\n doPost({a: \"ready\"});\n } catch(e) {\n // this code should never be exectued outside IE\n addListener(msgTarget, 'load', function(e) {\n doPost({a: \"ready\"});\n });\n }\n\n // if window is unloaded and the client hasn't called cb, it's an error\n var onUnload = function() {\n try {\n // IE8 doesn't like this...\n removeListener(isIE ? msgTarget : window, 'message', onDie);\n } catch (ohWell) { }\n if (cb) doPost({ a: 'error', d: 'client closed window' });\n cb = undefined;\n // explicitly close the window, in case the client is trying to reload or nav\n try { window.close(); } catch (e) { }\n };\n addListener(window, 'unload', onUnload);\n return {\n detach: function() {\n removeListener(window, 'unload', onUnload);\n }\n };\n }\n };\n } else {\n return {\n open: function(url, winopts, arg, cb) {\n setTimeout(function() { cb(\"unsupported browser\"); }, 0);\n },\n onOpen: function(cb) {\n setTimeout(function() { cb(\"unsupported browser\"); }, 0);\n }\n };\n }\n})();\n\nif (typeof module !== 'undefined' && module.exports) {\n module.exports = WinChan;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/winchan/winchan.js\n// module id = 18\n// module chunks = 0","var urljoin = require('url-join');\n\nvar RequestBuilder = require('../helper/request-builder');\nvar qs = require('qs');\nvar objectHelper = require('../helper/object');\nvar assert = require('../helper/assert');\nvar responseHandler = require('../helper/response-handler');\nvar parametersWhitelist = require('../helper/parameters-whitelist');\nvar Warn = require('../helper/warn');\n\nvar PasswordlessAuthentication = require('./passwordless-authentication');\nvar DBConnection = require('./db-connection');\n\n/**\n * Creates a new Auth0 Authentication API client\n * @constructor\n * @param {Object} options\n * @param {String} options.domain your Auth0 domain\n * @param {String} options.clientID your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} [options.responseType] type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @see {@link https://auth0.com/docs/api/authentication}\n */\nfunction Authentication(options) {\n /* eslint-disable */\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n domain: { type: 'string', message: 'domain option is required' },\n clientID: { type: 'string', message: 'clientID option is required' },\n responseType: { optional: true, type: 'string', message: 'responseType is not valid' },\n responseMode: { optional: true, type: 'string', message: 'responseMode is not valid' },\n redirectUri: { optional: true, type: 'string', message: 'redirectUri is not valid' },\n scope: { optional: true, type: 'string', message: 'scope is not valid' },\n audience: { optional: true, type: 'string', message: 'audience is not valid' },\n _disableDeprecationWarnings: {\n optional: true,\n type: 'boolean',\n message: '_disableDeprecationWarnings option is not valid'\n },\n _sendTelemetry: {\n optional: true,\n type: 'boolean',\n message: '_sendTelemetry option is not valid'\n },\n _telemetryInfo: {\n optional: true,\n type: 'object',\n message: '_telemetryInfo option is not valid'\n }\n }\n );\n /* eslint-enable */\n\n this.baseOptions = options;\n\n this.baseOptions._sendTelemetry = this.baseOptions._sendTelemetry === false\n ? this.baseOptions._sendTelemetry\n : true;\n\n this.baseOptions.rootUrl = 'https://' + this.baseOptions.domain;\n\n this.request = new RequestBuilder(this.baseOptions);\n\n this.passwordless = new PasswordlessAuthentication(this.request, this.baseOptions);\n this.dbConnection = new DBConnection(this.request, this.baseOptions);\n\n this.warn = new Warn({\n disableWarnings: !!options._disableDeprecationWarnings\n });\n}\n\n/**\n * Builds and returns the `/authorize` url in order to initialize a new authN/authZ transaction\n *\n * @method buildAuthorizeUrl\n * @param {Object} options\n * @param {String} [options.domain] your Auth0 domain\n * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n * @param {String} options.redirectUri url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} options.responseType type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n * @see {@link https://auth0.com/docs/api/authentication#social}\n */\nAuthentication.prototype.buildAuthorizeUrl = function(options) {\n var params;\n var qString;\n\n assert.check(options, { type: 'object', message: 'options parameter is not valid' });\n\n params = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'responseType',\n 'responseMode',\n 'redirectUri',\n 'scope',\n 'audience'\n ])\n .with(options);\n\n /* eslint-disable */\n assert.check(\n params,\n { type: 'object', message: 'options parameter is not valid' },\n {\n clientID: { type: 'string', message: 'clientID option is required' },\n redirectUri: { optional: true, type: 'string', message: 'redirectUri option is required' },\n responseType: { type: 'string', message: 'responseType option is required' },\n nonce: {\n type: 'string',\n message: 'nonce option is required',\n condition: function(o) {\n return o.responseType.indexOf('code') === -1 && o.responseType.indexOf('id_token') !== -1;\n }\n },\n scope: { optional: true, type: 'string', message: 'scope option is required' },\n audience: { optional: true, type: 'string', message: 'audience option is required' }\n }\n );\n /* eslint-enable */\n\n // eslint-disable-next-line\n if (this.baseOptions._sendTelemetry) {\n params.auth0Client = this.request.getTelemetryData();\n }\n\n if (params.connection_scope && assert.isArray(params.connection_scope)) {\n params.connection_scope = params.connection_scope.join(',');\n }\n\n params = objectHelper.toSnakeCase(params, ['auth0Client']);\n params = parametersWhitelist.oauthAuthorizeParams(this.warn, params);\n\n qString = qs.stringify(params);\n\n return urljoin(this.baseOptions.rootUrl, 'authorize', '?' + qString);\n};\n\n/**\n * Builds and returns the Logout url in order to initialize a new authN/authZ transaction\n *\n * If you want to navigate the user to a specific URL after the logout, set that URL at the returnTo parameter. The URL should be included in any the appropriate Allowed Logout URLs list:\n *\n * - If the client_id parameter is included, the returnTo URL must be listed in the Allowed Logout URLs set at the client level (see Setting Allowed Logout URLs at the App Level).\n * - If the client_id parameter is NOT included, the returnTo URL must be listed in the Allowed Logout URLs set at the account level (see Setting Allowed Logout URLs at the Account Level).\n * @method buildLogoutUrl\n * @param {Object} options\n * @param {String} [options.clientID] identifier of your client\n * @param {String} [options.returnTo] URL to be redirected after the logout\n * @param {Boolean} [options.federated] tells Auth0 if it should logout the user also from the IdP.\n * @see {@link https://auth0.com/docs/api/authentication#logout}\n */\nAuthentication.prototype.buildLogoutUrl = function(options) {\n var params;\n var qString;\n\n assert.check(options, {\n optional: true,\n type: 'object',\n message: 'options parameter is not valid'\n });\n\n params = objectHelper.merge(this.baseOptions, ['clientID']).with(options || {});\n\n // eslint-disable-next-line\n if (this.baseOptions._sendTelemetry) {\n params.auth0Client = this.request.getTelemetryData();\n }\n\n params = objectHelper.toSnakeCase(params, ['auth0Client', 'returnTo']);\n\n qString = qs.stringify(params);\n\n return urljoin(this.baseOptions.rootUrl, 'v2', 'logout', '?' + qString);\n};\n\n/**\n * @callback authorizeCallback\n * @param {Error} [err] error returned by Auth0 with the reason of the Auth failure\n * @param {Object} [result] result of the Auth request\n * @param {String} [result.accessToken] token that allows access to the specified resource server (identified by the audience parameter or by default Auth0's /userinfo endpoint)\n * @param {Number} [result.expiresIn] number of seconds until the access token expires\n * @param {String} [result.idToken] token that identifies the user\n * @param {String} [result.refreshToken] token that can be used to get new access tokens from Auth0. Note that not all clients can request them or the resource server might not allow them.\n */\n\n/**\n * @callback tokenCallback\n * @param {Error} [err] error returned by Auth0 with the reason of the Auth failure\n * @param {Object} [result] result of the Auth request\n * @param {String} result.accessToken token that allows access to the specified resource server (identified by the audience parameter or by default Auth0's /userinfo endpoint)\n * @param {Number} result.expiresIn number of seconds until the access token expires\n * @param {String} [result.idToken] token that identifies the user\n * @param {String} [result.refreshToken] token that can be used to get new access tokens from Auth0. Note that not all clients can request them or the resource server might not allow them.\n */\n\n/**\n * Makes a call to the `oauth/token` endpoint with `password` grant type to login to the default directory.\n *\n * @method loginWithDefaultDirectory\n * @param {Object} options\n * @param {String} options.username email or username of the user that will perform Auth\n * @param {String} options.password the password of the user that will perform Auth\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @param {tokenCallback} cb function called with the result of the request\n * @see {@link https://auth0.com/docs/api-auth/grant/password}\n */\nAuthentication.prototype.loginWithDefaultDirectory = function(options, cb) {\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n username: { type: 'string', message: 'username option is required' },\n password: { type: 'string', message: 'password option is required' },\n scope: { optional: true, type: 'string', message: 'scope option is required' },\n audience: { optional: true, type: 'string', message: 'audience option is required' }\n }\n );\n\n options.grantType = 'password';\n\n return this.oauthToken(options, cb);\n};\n\n/**\n * Makes a call to the `oauth/token` endpoint with `password-realm` grant type\n *\n * @method login\n * @param {Object} options\n * @param {String} options.username email or username of the user that will perform Auth\n * @param {String} options.password the password of the user that will perform Auth\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @param {Object} options.realm the HRD domain or the connection name where the user belongs to. e.g. `Username-Password-Authentication`\n * @param {tokenCallback} cb function called with the result of the request\n * @see {@link https://auth0.com/docs/api-auth/grant/password}\n */\nAuthentication.prototype.login = function(options, cb) {\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n username: { type: 'string', message: 'username option is required' },\n password: { type: 'string', message: 'password option is required' },\n realm: { type: 'string', message: 'realm option is required' },\n scope: { optional: true, type: 'string', message: 'scope option is required' },\n audience: { optional: true, type: 'string', message: 'audience option is required' }\n }\n );\n\n options.grantType = 'http://auth0.com/oauth/grant-type/password-realm';\n\n return this.oauthToken(options, cb);\n};\n\n/**\n * Makes a call to the `oauth/token` endpoint\n *\n * @method oauthToken\n * @private\n */\nAuthentication.prototype.oauthToken = function(options, cb) {\n var url;\n var body;\n\n assert.check(options, { type: 'object', message: 'options parameter is not valid' });\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'oauth', 'token');\n\n body = objectHelper.merge(this.baseOptions, ['clientID', 'scope', 'audience']).with(options);\n\n assert.check(\n body,\n { type: 'object', message: 'options parameter is not valid' },\n {\n clientID: { type: 'string', message: 'clientID option is required' },\n grantType: { type: 'string', message: 'grantType option is required' },\n scope: { optional: true, type: 'string', message: 'scope option is required' },\n audience: { optional: true, type: 'string', message: 'audience option is required' }\n }\n );\n\n body = objectHelper.toSnakeCase(body, ['auth0Client']);\n body = parametersWhitelist.oauthTokenParams(this.warn, body);\n\n body.grant_type = body.grant_type;\n\n return this.request.post(url).send(body).end(responseHandler(cb));\n};\n\n/**\n * Performs authentication calling `/oauth/ro` endpoint with username\n * and password for a given connection name.\n *\n * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n * you should use {@link login} or {@link loginWithDefaultDirectory}.\n *\n * @method loginWithResourceOwner\n * @param {Object} options\n * @param {String} options.username email or username of the user that will perform Auth\n * @param {String} options.password the password of the user that will perform Auth\n * @param {Object} options.connection the connection name where the user belongs to. e.g. `Username-Password-Authentication`\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.device] name of the device/browser where the Auth was requested\n * @param {tokenCallback} cb function called with the result of the request\n */\nAuthentication.prototype.loginWithResourceOwner = function(options, cb) {\n var url;\n var body;\n\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n username: { type: 'string', message: 'username option is required' },\n password: { type: 'string', message: 'password option is required' },\n connection: { type: 'string', message: 'connection option is required' },\n scope: { optional: true, type: 'string', message: 'scope option is required' }\n }\n );\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'oauth', 'ro');\n\n body = objectHelper\n .merge(this.baseOptions, ['clientID', 'scope'])\n .with(options, ['username', 'password', 'scope', 'connection', 'device']);\n\n body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\n body.grant_type = body.grant_type || 'password';\n\n return this.request.post(url).send(body).end(responseHandler(cb));\n};\n\n/**\n * Makes a call to the `/ssodata` endpoint.\n * We recommend to avoid using this method and rely on your tenant hosted login page and using prompt=none via {@link renewAuth} method.\n *\n * @method getSSOData\n * @param {Boolean} withActiveDirectories tells Auth0 to return AD data\n * @param {Function} cb\n */\nAuthentication.prototype.getSSOData = function(withActiveDirectories, cb) {\n var url;\n var params = '';\n\n if (typeof withActiveDirectories === 'function') {\n cb = withActiveDirectories;\n withActiveDirectories = false;\n }\n\n assert.check(withActiveDirectories, {\n type: 'boolean',\n message: 'withActiveDirectories parameter is not valid'\n });\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n if (withActiveDirectories) {\n params =\n '?' +\n qs.stringify({\n ldaps: 1,\n client_id: this.baseOptions.clientID\n });\n }\n\n url = urljoin(this.baseOptions.rootUrl, 'user', 'ssodata', params);\n\n return this.request.get(url, { noHeaders: true }).withCredentials().end(responseHandler(cb));\n};\n\n/**\n * @callback userInfoCallback\n * @param {Error} [err] error returned by Auth0\n * @param {Object} [userInfo] user information\n */\n\n/**\n * Makes a call to the `/userinfo` endpoint and returns the user profile\n *\n * @method userInfo\n * @param {String} accessToken token issued to a user after Auth\n * @param {userInfoCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#get-user-info}\n */\nAuthentication.prototype.userInfo = function(accessToken, cb) {\n var url;\n\n assert.check(accessToken, { type: 'string', message: 'accessToken parameter is not valid' });\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'userinfo');\n\n return this.request\n .get(url)\n .set('Authorization', 'Bearer ' + accessToken)\n .end(responseHandler(cb, { ignoreCasing: true }));\n};\n\n/**\n * @callback delegationCallback\n * @param {Error} [err] error returned by Auth0 with the reason why the delegation failed\n * @param {Object} [result] result of the delegation request. The payload depends on what ai type was used\n */\n\n/**\n * Makes a call to the `/delegation` endpoint with either an `id_token` or `refresh_token`\n *\n * @method delegation\n * @param {Object} options\n * @param {String} [options.clientID] client identifier\n * @param {String} options.grantType grant type used for delegation. The only valid value is `urn:ietf:params:oauth:grant-type:jwt-bearer`\n * @param {String} [options.idToken] valid token of the user issued after Auth. If no `refresh_token` is provided this parameter is required\n * @param {String} [options.refreshToken] valid refresh token of the user issued after Auth. If no `id_token` is provided this parameter is required\n * @param {String} [options.target] the target client id of the delegation\n * @param {String} [options.scope] either `openid` or `openid profile email`\n * @param {String} [options.apiType] the api to be called\n * @param {delegationCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#delegation}\n */\nAuthentication.prototype.delegation = function(options, cb) {\n var url;\n var body;\n\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n grant_type: { type: 'string', message: 'grant_type option is required' }\n }\n );\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'delegation');\n\n body = objectHelper.merge(this.baseOptions, ['clientID']).with(options);\n\n body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\n return this.request.post(url).send(body).end(responseHandler(cb));\n};\n\n/**\n * Fetches the user country based on the ip.\n *\n * @method getUserCountry\n * @private\n * @param {Function} cb\n */\nAuthentication.prototype.getUserCountry = function(cb) {\n var url;\n\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'user', 'geoloc', 'country');\n\n return this.request.get(url).end(responseHandler(cb));\n};\n\nmodule.exports = Authentication;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/authentication/index.js\n// module id = 19\n// module chunks = 0","var base64 = require('base64-js');\n\nfunction padding(str) {\n var mod = str.length % 4;\n var pad = 4 - mod;\n\n if (mod === 0) {\n return str;\n }\n\n return str + new Array(1 + pad).join('=');\n}\n\nfunction stringToByteArray(str) {\n var arr = new Array(str.length);\n for (var a = 0; a < str.length; a++) {\n arr[a] = str.charCodeAt(a);\n }\n return arr;\n}\n\nfunction byteArrayToString(array) {\n var result = '';\n for (var i = 0; i < array.length; i++) {\n result += String.fromCharCode(array[i]);\n }\n return result;\n}\n\nfunction encode(str) {\n return base64\n .fromByteArray(stringToByteArray(str))\n .replace(/\\+/g, '-') // Convert '+' to '-'\n .replace(/\\//g, '_'); // Convert '/' to '_'\n}\n\nfunction decode(str) {\n str = padding(str)\n .replace(/-/g, '+') // Convert '-' to '+'\n .replace(/_/g, '/'); // Convert '_' to '/'\n\n return byteArrayToString(base64.toByteArray(str));\n}\n\nmodule.exports = {\n encode: encode,\n decode: decode\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/base64_url.js\n// module id = 20\n// module chunks = 0","function buildResponse(error, description) {\n return {\n error: error,\n errorDescription: description\n };\n}\n\nfunction invalidJwt(description) {\n return buildResponse('invalid_token', description);\n}\n\nmodule.exports = {\n buildResponse: buildResponse,\n invalidJwt: invalidJwt\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/error.js\n// module id = 21\n// module chunks = 0","var random = require('../helper/random');\nvar storage = require('../helper/storage');\n\nvar DEFAULT_NAMESPACE = 'com.auth0.auth.';\n\nfunction TransactionManager(options) {\n options = options || {};\n this.namespace = options.namespace || DEFAULT_NAMESPACE;\n this.keyLength = options.keyLength || 32;\n}\n\nTransactionManager.prototype.process = function(options) {\n var transaction;\n\n if (options.responseType.indexOf('code') !== -1) {\n return options;\n }\n\n if (options.responseType.indexOf('id_token') !== -1 && !!options.nonce) {\n return options;\n }\n\n transaction = this.generateTransaction(options.appState, options.state, options.nonce);\n\n options.state = transaction.state;\n\n if (options.responseType.indexOf('id_token') !== -1) {\n options.nonce = transaction.nonce;\n }\n\n return options;\n};\n\nTransactionManager.prototype.generateTransaction = function(appState, state, nonce) {\n var transaction = state || random.randomString(this.keyLength);\n nonce = nonce || random.randomString(this.keyLength);\n\n storage.setItem(this.namespace + transaction, {\n nonce: nonce,\n appState: appState\n });\n\n return {\n state: transaction,\n nonce: nonce\n };\n};\n\nTransactionManager.prototype.getStoredTransaction = function(transaction) {\n var transactionData;\n\n transactionData = storage.getItem(this.namespace + transaction);\n storage.removeItem(this.namespace + transaction);\n return transactionData;\n};\n\nmodule.exports = TransactionManager;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/web-auth/transaction-manager.js\n// module id = 22\n// module chunks = 0","\r\n/**\r\n * Expose `Emitter`.\r\n */\r\n\r\nif (typeof module !== 'undefined') {\r\n module.exports = Emitter;\r\n}\r\n\r\n/**\r\n * Initialize a new `Emitter`.\r\n *\r\n * @api public\r\n */\r\n\r\nfunction Emitter(obj) {\r\n if (obj) return mixin(obj);\r\n};\r\n\r\n/**\r\n * Mixin the emitter properties.\r\n *\r\n * @param {Object} obj\r\n * @return {Object}\r\n * @api private\r\n */\r\n\r\nfunction mixin(obj) {\r\n for (var key in Emitter.prototype) {\r\n obj[key] = Emitter.prototype[key];\r\n }\r\n return obj;\r\n}\r\n\r\n/**\r\n * Listen on the given `event` with `fn`.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.on =\r\nEmitter.prototype.addEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n .push(fn);\r\n return this;\r\n};\r\n\r\n/**\r\n * Adds an `event` listener that will be invoked a single\r\n * time then automatically removed.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.once = function(event, fn){\r\n function on() {\r\n this.off(event, on);\r\n fn.apply(this, arguments);\r\n }\r\n\r\n on.fn = fn;\r\n this.on(event, on);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove the given callback for `event` or all\r\n * registered callbacks.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.off =\r\nEmitter.prototype.removeListener =\r\nEmitter.prototype.removeAllListeners =\r\nEmitter.prototype.removeEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n\r\n // all\r\n if (0 == arguments.length) {\r\n this._callbacks = {};\r\n return this;\r\n }\r\n\r\n // specific event\r\n var callbacks = this._callbacks['$' + event];\r\n if (!callbacks) return this;\r\n\r\n // remove all handlers\r\n if (1 == arguments.length) {\r\n delete this._callbacks['$' + event];\r\n return this;\r\n }\r\n\r\n // remove specific handler\r\n var cb;\r\n for (var i = 0; i < callbacks.length; i++) {\r\n cb = callbacks[i];\r\n if (cb === fn || cb.fn === fn) {\r\n callbacks.splice(i, 1);\r\n break;\r\n }\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Emit `event` with the given args.\r\n *\r\n * @param {String} event\r\n * @param {Mixed} ...\r\n * @return {Emitter}\r\n */\r\n\r\nEmitter.prototype.emit = function(event){\r\n this._callbacks = this._callbacks || {};\r\n var args = [].slice.call(arguments, 1)\r\n , callbacks = this._callbacks['$' + event];\r\n\r\n if (callbacks) {\r\n callbacks = callbacks.slice(0);\r\n for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n callbacks[i].apply(this, args);\r\n }\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Return array of callbacks for `event`.\r\n *\r\n * @param {String} event\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.listeners = function(event){\r\n this._callbacks = this._callbacks || {};\r\n return this._callbacks['$' + event] || [];\r\n};\r\n\r\n/**\r\n * Check if this emitter has `event` handlers.\r\n *\r\n * @param {String} event\r\n * @return {Boolean}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.hasListeners = function(event){\r\n return !! this.listeners(event).length;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/component-emitter/index.js\n// module id = 23\n// module chunks = 0",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory();\n\t}\n}(this, function () {\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\t /*\n\t * Local polyfil of Object.create\n\t */\n\t var create = Object.create || (function () {\n\t function F() {};\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }())\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var i = 0; i < thatSigBytes; i += 4) {\n\t thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t var r = (function (m_w) {\n\t var m_w = m_w;\n\t var m_z = 0x3ade68b1;\n\t var mask = 0xffffffff;\n\n\t return function () {\n\t m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask;\n\t m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask;\n\t var result = ((m_z << 0x10) + m_w) & mask;\n\t result /= 0x100000000;\n\t result += 0.5;\n\t return result * (Math.random() > .5 ? 1 : -1);\n\t }\n\t });\n\n\t for (var i = 0, rcache; i < nBytes; i += 4) {\n\t var _r = r((rcache || Math.random()) * 0x100000000);\n\n\t rcache = _r() * 0x3ade67b7;\n\t words.push((_r() * 0x100000000) | 0);\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t var processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/crypto-js/core.js\n// module id = 24\n// module chunks = 0",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/crypto-js/sha256.js\n// module id = 25\n// module chunks = 0","function DummyCache() {}\n\nDummyCache.prototype.get = function () {\n return null;\n};\n\nDummyCache.prototype.has = function () {\n return false;\n};\n\nDummyCache.prototype.set = function () {\n};\n\nmodule.exports = DummyCache;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/idtoken-verifier/src/helpers/dummy-cache.js\n// module id = 26\n// module chunks = 0","function ConfigurationError(message) {\n this.name = 'ConfigurationError';\n this.message = (message || '');\n}\nConfigurationError.prototype = Error.prototype;\n\nfunction TokenValidationError(message) {\n this.name = 'TokenValidationError';\n this.message = (message || '');\n}\nTokenValidationError.prototype = Error.prototype;\n\nmodule.exports = {\n ConfigurationError: ConfigurationError,\n TokenValidationError: TokenValidationError\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/idtoken-verifier/src/helpers/error.js\n// module id = 27\n// module chunks = 0","var urljoin = require('url-join');\nvar base64 = require('./base64');\nvar request = require('superagent');\n\nfunction process(jwks) {\n var modulus = base64.decodeToHEX(jwks.n);\n var exp = base64.decodeToHEX(jwks.e);\n\n return {\n modulus: modulus,\n exp: exp\n };\n}\n\nfunction getJWKS(options, cb) {\n var url = urljoin(options.iss, '.well-known', 'jwks.json');\n\n return request\n .get(url)\n .end(function (err, data) {\n var matchingKey = null;\n var a;\n var key;\n\n if (err) {\n cb(err);\n }\n\n // eslint-disable-next-line no-plusplus\n for (a = 0; a < data.body.keys.length && matchingKey === null; a++) {\n key = data.body.keys[a];\n if (key.kid === options.kid) {\n matchingKey = key;\n }\n }\n\n cb(null, process(matchingKey));\n });\n}\n\nmodule.exports = {\n process: process,\n getJWKS: getJWKS\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/idtoken-verifier/src/helpers/jwks.js\n// module id = 28\n// module chunks = 0","/*\nBased on the work of Tom Wu\nhttp://www-cs-students.stanford.edu/~tjw/jsbn/\nhttp://www-cs-students.stanford.edu/~tjw/jsbn/LICENSE\n*/\n\nvar BigInteger = require('jsbn').BigInteger;\nvar SHA256 = require('crypto-js/sha256');\n\nvar DigestInfoHead = {\n sha1: '3021300906052b0e03021a05000414',\n sha224: '302d300d06096086480165030402040500041c',\n sha256: '3031300d060960864801650304020105000420',\n sha384: '3041300d060960864801650304020205000430',\n sha512: '3051300d060960864801650304020305000440',\n md2: '3020300c06082a864886f70d020205000410',\n md5: '3020300c06082a864886f70d020505000410',\n ripemd160: '3021300906052b2403020105000414'\n};\n\nvar DigestAlgs = {\n sha256: SHA256\n};\n\nfunction RSAVerifier(modulus, exp) {\n this.n = null;\n this.e = 0;\n\n if (modulus != null && exp != null && modulus.length > 0 && exp.length > 0) {\n this.n = new BigInteger(modulus, 16);\n this.e = parseInt(exp, 16);\n } else {\n throw new Error('Invalid key data');\n }\n}\n\nfunction getAlgorithmFromDigest(hDigestInfo) {\n for (var algName in DigestInfoHead) {\n var head = DigestInfoHead[algName];\n var len = head.length;\n\n if (hDigestInfo.substring(0, len) === head) {\n return {\n alg: algName,\n hash: hDigestInfo.substring(len)\n };\n }\n }\n return [];\n}\n\n\nRSAVerifier.prototype.verify = function (msg, encsig) {\n encsig = encsig.replace(/[^0-9a-f]|[\\s\\n]]/ig, '');\n\n var sig = new BigInteger(encsig, 16);\n if (sig.bitLength() > this.n.bitLength()) {\n throw new Error('Signature does not match with the key modulus.');\n }\n\n var decryptedSig = sig.modPowInt(this.e, this.n);\n var digest = decryptedSig.toString(16).replace(/^1f+00/, '');\n\n var digestInfo = getAlgorithmFromDigest(digest);\n if (digestInfo.length === 0) {\n return false;\n }\n\n if (!DigestAlgs.hasOwnProperty(digestInfo.alg)) {\n throw new Error('Hashing algorithm is not supported.');\n }\n\n var msgHash = DigestAlgs[digestInfo.alg](msg).toString();\n return (digestInfo.hash === msgHash);\n};\n\nmodule.exports = RSAVerifier;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/idtoken-verifier/src/helpers/rsa-verifier.js\n// module id = 29\n// module chunks = 0","var RSAVerifier = require('./helpers/rsa-verifier');\nvar base64 = require('./helpers/base64');\nvar jwks = require('./helpers/jwks');\nvar error = require('./helpers/error');\nvar DummyCache = require('./helpers/dummy-cache');\nvar supportedAlgs = ['RS256'];\n\nfunction IdTokenVerifier(parameters) {\n var options = parameters || {};\n\n this.jwksCache = options.jwksCache || new DummyCache();\n this.expectedAlg = options.expectedAlg || 'RS256';\n this.issuer = options.issuer;\n this.audience = options.audience;\n this.leeway = options.leeway || 0;\n this.__disableExpirationCheck = options.__disableExpirationCheck || false;\n\n if (this.leeway < 0 || this.leeway > 60) {\n throw new error.ConfigurationError('The leeway should be positive and lower than a minute.');\n }\n\n if (supportedAlgs.indexOf(this.expectedAlg) === -1) {\n throw new error.ConfigurationError('Algorithm ' + this.expectedAlg +\n ' is not supported. (Expected algs: [' + supportedAlgs.join(',') + '])');\n }\n}\n\nIdTokenVerifier.prototype.verify = function (token, nonce, cb) {\n var jwt = this.decode(token);\n\n if (jwt instanceof Error) {\n return cb(jwt, false);\n }\n\n /* eslint-disable vars-on-top */\n var headAndPayload = jwt.encoded.header + '.' + jwt.encoded.payload;\n var signature = base64.decodeToHEX(jwt.encoded.signature);\n\n var alg = jwt.header.alg;\n var kid = jwt.header.kid;\n\n var aud = jwt.payload.aud;\n var iss = jwt.payload.iss;\n var exp = jwt.payload.exp;\n var iat = jwt.payload.iat;\n var tnonce = jwt.payload.nonce || null;\n /* eslint-enable vars-on-top */\n\n if (this.issuer !== iss) {\n return cb(new error.TokenValidationError('Issuer ' + iss + ' is not valid.'), false);\n }\n\n if (this.audience !== aud) {\n return cb(new error.TokenValidationError('Audience ' + aud + ' is not valid.'), false);\n }\n\n if (this.expectedAlg !== alg) {\n return cb(new error.TokenValidationError('Algorithm ' + alg +\n ' is not supported. (Expected algs: [' + supportedAlgs.join(',') + '])'), false);\n }\n\n if (tnonce !== nonce) {\n return cb(new error.TokenValidationError('Nonce does not match.'), false);\n }\n\n var expirationError = this.verifyExpAndIat(exp, iat); // eslint-disable-line vars-on-top\n\n if (expirationError) {\n return cb(expirationError, false);\n }\n\n return this.getRsaVerifier(iss, kid, function (err, rsaVerifier) {\n if (err) {\n return cb(err);\n }\n if (rsaVerifier.verify(headAndPayload, signature)) {\n return cb(null, jwt.payload);\n }\n return cb(new error.TokenValidationError('Invalid signature.'));\n });\n};\n\nIdTokenVerifier.prototype.verifyExpAndIat = function (exp, iat) {\n var now = new Date();\n var expDate = new Date(0);\n var iatDate = new Date(0);\n\n if (this.__disableExpirationCheck) {\n return null;\n }\n\n expDate.setUTCSeconds(exp + this.leeway);\n\n if (now > expDate) {\n return new error.TokenValidationError('Expired token.');\n }\n\n iatDate.setUTCSeconds(iat - this.leeway);\n\n if (now < iatDate) {\n return new error.TokenValidationError('The token was issued in the future. ' +\n 'Please check your computed clock.');\n }\n\n return null;\n};\n\nIdTokenVerifier.prototype.getRsaVerifier = function (iss, kid, cb) {\n var _this = this;\n var cachekey = iss + kid;\n\n if (!this.jwksCache.has(cachekey)) {\n jwks.getJWKS({\n iss: iss,\n kid: kid\n }, function (err, keyInfo) {\n if (err) {\n cb(err);\n }\n _this.jwksCache.set(cachekey, keyInfo);\n cb(null, new RSAVerifier(keyInfo.modulus, keyInfo.exp));\n });\n } else {\n var keyInfo = this.jwksCache.get(cachekey); // eslint-disable-line vars-on-top\n cb(null, new RSAVerifier(keyInfo.modulus, keyInfo.exp));\n }\n};\n\nIdTokenVerifier.prototype.decode = function (token) {\n var parts = token.split('.');\n var header;\n var payload;\n\n if (parts.length !== 3) {\n return new error.TokenValidationError('Cannot decode a malformed JWT');\n }\n\n try {\n header = JSON.parse(base64.decodeToString(parts[0]));\n payload = JSON.parse(base64.decodeToString(parts[1]));\n } catch (e) {\n return new error.TokenValidationError('Token header or payload is not valid JSON');\n }\n\n return {\n header: header,\n payload: payload,\n encoded: {\n header: parts[0],\n payload: parts[1],\n signature: parts[2]\n }\n };\n};\n\nmodule.exports = IdTokenVerifier;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/idtoken-verifier/src/index.js\n// module id = 30\n// module chunks = 0","(function(){\n\n // Copyright (c) 2005 Tom Wu\n // All Rights Reserved.\n // See \"LICENSE\" for details.\n\n // Basic JavaScript BN library - subset useful for RSA encryption.\n\n // Bits per digit\n var dbits;\n\n // JavaScript engine analysis\n var canary = 0xdeadbeefcafe;\n var j_lm = ((canary&0xffffff)==0xefcafe);\n\n // (public) Constructor\n function BigInteger(a,b,c) {\n if(a != null)\n if(\"number\" == typeof a) this.fromNumber(a,b,c);\n else if(b == null && \"string\" != typeof a) this.fromString(a,256);\n else this.fromString(a,b);\n }\n\n // return new, unset BigInteger\n function nbi() { return new BigInteger(null); }\n\n // am: Compute w_j += (x*this_i), propagate carries,\n // c is initial carry, returns final carry.\n // c < 3*dvalue, x < 2*dvalue, this_i < dvalue\n // We need to select the fastest one that works in this environment.\n\n // am1: use a single mult and divide to get the high bits,\n // max digit bits should be 26 because\n // max internal value = 2*dvalue^2-2*dvalue (< 2^53)\n function am1(i,x,w,j,c,n) {\n while(--n >= 0) {\n var v = x*this[i++]+w[j]+c;\n c = Math.floor(v/0x4000000);\n w[j++] = v&0x3ffffff;\n }\n return c;\n }\n // am2 avoids a big mult-and-extract completely.\n // Max digit bits should be <= 30 because we do bitwise ops\n // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)\n function am2(i,x,w,j,c,n) {\n var xl = x&0x7fff, xh = x>>15;\n while(--n >= 0) {\n var l = this[i]&0x7fff;\n var h = this[i++]>>15;\n var m = xh*l+h*xl;\n l = xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff);\n c = (l>>>30)+(m>>>15)+xh*h+(c>>>30);\n w[j++] = l&0x3fffffff;\n }\n return c;\n }\n // Alternately, set max digit bits to 28 since some\n // browsers slow down when dealing with 32-bit numbers.\n function am3(i,x,w,j,c,n) {\n var xl = x&0x3fff, xh = x>>14;\n while(--n >= 0) {\n var l = this[i]&0x3fff;\n var h = this[i++]>>14;\n var m = xh*l+h*xl;\n l = xl*l+((m&0x3fff)<<14)+w[j]+c;\n c = (l>>28)+(m>>14)+xh*h;\n w[j++] = l&0xfffffff;\n }\n return c;\n }\n var inBrowser = typeof navigator !== \"undefined\";\n if(inBrowser && j_lm && (navigator.appName == \"Microsoft Internet Explorer\")) {\n BigInteger.prototype.am = am2;\n dbits = 30;\n }\n else if(inBrowser && j_lm && (navigator.appName != \"Netscape\")) {\n BigInteger.prototype.am = am1;\n dbits = 26;\n }\n else { // Mozilla/Netscape seems to prefer am3\n BigInteger.prototype.am = am3;\n dbits = 28;\n }\n\n BigInteger.prototype.DB = dbits;\n BigInteger.prototype.DM = ((1<= 0; --i) r[i] = this[i];\n r.t = this.t;\n r.s = this.s;\n }\n\n // (protected) set from integer value x, -DV <= x < DV\n function bnpFromInt(x) {\n this.t = 1;\n this.s = (x<0)?-1:0;\n if(x > 0) this[0] = x;\n else if(x < -1) this[0] = x+this.DV;\n else this.t = 0;\n }\n\n // return bigint initialized to value\n function nbv(i) { var r = nbi(); r.fromInt(i); return r; }\n\n // (protected) set from string and radix\n function bnpFromString(s,b) {\n var k;\n if(b == 16) k = 4;\n else if(b == 8) k = 3;\n else if(b == 256) k = 8; // byte array\n else if(b == 2) k = 1;\n else if(b == 32) k = 5;\n else if(b == 4) k = 2;\n else { this.fromRadix(s,b); return; }\n this.t = 0;\n this.s = 0;\n var i = s.length, mi = false, sh = 0;\n while(--i >= 0) {\n var x = (k==8)?s[i]&0xff:intAt(s,i);\n if(x < 0) {\n if(s.charAt(i) == \"-\") mi = true;\n continue;\n }\n mi = false;\n if(sh == 0)\n this[this.t++] = x;\n else if(sh+k > this.DB) {\n this[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh));\n }\n else\n this[this.t-1] |= x<= this.DB) sh -= this.DB;\n }\n if(k == 8 && (s[0]&0x80) != 0) {\n this.s = -1;\n if(sh > 0) this[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this[this.t-1] == c) --this.t;\n }\n\n // (public) return string representation in given radix\n function bnToString(b) {\n if(this.s < 0) return \"-\"+this.negate().toString(b);\n var k;\n if(b == 16) k = 4;\n else if(b == 8) k = 3;\n else if(b == 2) k = 1;\n else if(b == 32) k = 5;\n else if(b == 4) k = 2;\n else return this.toRadix(b);\n var km = (1< 0) {\n if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); }\n while(i >= 0) {\n if(p < k) {\n d = (this[i]&((1<>(p+=this.DB-k);\n }\n else {\n d = (this[i]>>(p-=k))&km;\n if(p <= 0) { p += this.DB; --i; }\n }\n if(d > 0) m = true;\n if(m) r += int2char(d);\n }\n }\n return m?r:\"0\";\n }\n\n // (public) -this\n function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }\n\n // (public) |this|\n function bnAbs() { return (this.s<0)?this.negate():this; }\n\n // (public) return + if this > a, - if this < a, 0 if equal\n function bnCompareTo(a) {\n var r = this.s-a.s;\n if(r != 0) return r;\n var i = this.t;\n r = i-a.t;\n if(r != 0) return (this.s<0)?-r:r;\n while(--i >= 0) if((r=this[i]-a[i]) != 0) return r;\n return 0;\n }\n\n // returns bit length of the integer x\n function nbits(x) {\n var r = 1, t;\n if((t=x>>>16) != 0) { x = t; r += 16; }\n if((t=x>>8) != 0) { x = t; r += 8; }\n if((t=x>>4) != 0) { x = t; r += 4; }\n if((t=x>>2) != 0) { x = t; r += 2; }\n if((t=x>>1) != 0) { x = t; r += 1; }\n return r;\n }\n\n // (public) return the number of bits in \"this\"\n function bnBitLength() {\n if(this.t <= 0) return 0;\n return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM));\n }\n\n // (protected) r = this << n*DB\n function bnpDLShiftTo(n,r) {\n var i;\n for(i = this.t-1; i >= 0; --i) r[i+n] = this[i];\n for(i = n-1; i >= 0; --i) r[i] = 0;\n r.t = this.t+n;\n r.s = this.s;\n }\n\n // (protected) r = this >> n*DB\n function bnpDRShiftTo(n,r) {\n for(var i = n; i < this.t; ++i) r[i-n] = this[i];\n r.t = Math.max(this.t-n,0);\n r.s = this.s;\n }\n\n // (protected) r = this << n\n function bnpLShiftTo(n,r) {\n var bs = n%this.DB;\n var cbs = this.DB-bs;\n var bm = (1<= 0; --i) {\n r[i+ds+1] = (this[i]>>cbs)|c;\n c = (this[i]&bm)<= 0; --i) r[i] = 0;\n r[ds] = c;\n r.t = this.t+ds+1;\n r.s = this.s;\n r.clamp();\n }\n\n // (protected) r = this >> n\n function bnpRShiftTo(n,r) {\n r.s = this.s;\n var ds = Math.floor(n/this.DB);\n if(ds >= this.t) { r.t = 0; return; }\n var bs = n%this.DB;\n var cbs = this.DB-bs;\n var bm = (1<>bs;\n for(var i = ds+1; i < this.t; ++i) {\n r[i-ds-1] |= (this[i]&bm)<>bs;\n }\n if(bs > 0) r[this.t-ds-1] |= (this.s&bm)<>= this.DB;\n }\n if(a.t < this.t) {\n c -= a.s;\n while(i < this.t) {\n c += this[i];\n r[i++] = c&this.DM;\n c >>= this.DB;\n }\n c += this.s;\n }\n else {\n c += this.s;\n while(i < a.t) {\n c -= a[i];\n r[i++] = c&this.DM;\n c >>= this.DB;\n }\n c -= a.s;\n }\n r.s = (c<0)?-1:0;\n if(c < -1) r[i++] = this.DV+c;\n else if(c > 0) r[i++] = c;\n r.t = i;\n r.clamp();\n }\n\n // (protected) r = this * a, r != this,a (HAC 14.12)\n // \"this\" should be the larger one if appropriate.\n function bnpMultiplyTo(a,r) {\n var x = this.abs(), y = a.abs();\n var i = x.t;\n r.t = i+y.t;\n while(--i >= 0) r[i] = 0;\n for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t);\n r.s = 0;\n r.clamp();\n if(this.s != a.s) BigInteger.ZERO.subTo(r,r);\n }\n\n // (protected) r = this^2, r != this (HAC 14.16)\n function bnpSquareTo(r) {\n var x = this.abs();\n var i = r.t = 2*x.t;\n while(--i >= 0) r[i] = 0;\n for(i = 0; i < x.t-1; ++i) {\n var c = x.am(i,x[i],r,2*i,0,1);\n if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) {\n r[i+x.t] -= x.DV;\n r[i+x.t+1] = 1;\n }\n }\n if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1);\n r.s = 0;\n r.clamp();\n }\n\n // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)\n // r != q, this != m. q or r may be null.\n function bnpDivRemTo(m,q,r) {\n var pm = m.abs();\n if(pm.t <= 0) return;\n var pt = this.abs();\n if(pt.t < pm.t) {\n if(q != null) q.fromInt(0);\n if(r != null) this.copyTo(r);\n return;\n }\n if(r == null) r = nbi();\n var y = nbi(), ts = this.s, ms = m.s;\n var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus\n if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); }\n else { pm.copyTo(y); pt.copyTo(r); }\n var ys = y.t;\n var y0 = y[ys-1];\n if(y0 == 0) return;\n var yt = y0*(1<1)?y[ys-2]>>this.F2:0);\n var d1 = this.FV/yt, d2 = (1<= 0) {\n r[r.t++] = 1;\n r.subTo(t,r);\n }\n BigInteger.ONE.dlShiftTo(ys,t);\n t.subTo(y,y); // \"negative\" y so we can replace sub with am later\n while(y.t < ys) y[y.t++] = 0;\n while(--j >= 0) {\n // Estimate quotient digit\n var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);\n if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out\n y.dlShiftTo(j,t);\n r.subTo(t,r);\n while(r[i] < --qd) r.subTo(t,r);\n }\n }\n if(q != null) {\n r.drShiftTo(ys,q);\n if(ts != ms) BigInteger.ZERO.subTo(q,q);\n }\n r.t = ys;\n r.clamp();\n if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder\n if(ts < 0) BigInteger.ZERO.subTo(r,r);\n }\n\n // (public) this mod a\n function bnMod(a) {\n var r = nbi();\n this.abs().divRemTo(a,null,r);\n if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);\n return r;\n }\n\n // Modular reduction using \"classic\" algorithm\n function Classic(m) { this.m = m; }\n function cConvert(x) {\n if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);\n else return x;\n }\n function cRevert(x) { return x; }\n function cReduce(x) { x.divRemTo(this.m,null,x); }\n function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }\n function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); }\n\n Classic.prototype.convert = cConvert;\n Classic.prototype.revert = cRevert;\n Classic.prototype.reduce = cReduce;\n Classic.prototype.mulTo = cMulTo;\n Classic.prototype.sqrTo = cSqrTo;\n\n // (protected) return \"-1/this % 2^DB\"; useful for Mont. reduction\n // justification:\n // xy == 1 (mod m)\n // xy = 1+km\n // xy(2-xy) = (1+km)(1-km)\n // x[y(2-xy)] = 1-k^2m^2\n // x[y(2-xy)] == 1 (mod m^2)\n // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2\n // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.\n // JS multiply \"overflows\" differently from C/C++, so care is needed here.\n function bnpInvDigit() {\n if(this.t < 1) return 0;\n var x = this[0];\n if((x&1) == 0) return 0;\n var y = x&3; // y == 1/x mod 2^2\n y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4\n y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8\n y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16\n // last step - calculate inverse mod DV directly;\n // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints\n y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits\n // we really want the negative inverse, and -DV < y < DV\n return (y>0)?this.DV-y:-y;\n }\n\n // Montgomery reduction\n function Montgomery(m) {\n this.m = m;\n this.mp = m.invDigit();\n this.mpl = this.mp&0x7fff;\n this.mph = this.mp>>15;\n this.um = (1<<(m.DB-15))-1;\n this.mt2 = 2*m.t;\n }\n\n // xR mod m\n function montConvert(x) {\n var r = nbi();\n x.abs().dlShiftTo(this.m.t,r);\n r.divRemTo(this.m,null,r);\n if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);\n return r;\n }\n\n // x/R mod m\n function montRevert(x) {\n var r = nbi();\n x.copyTo(r);\n this.reduce(r);\n return r;\n }\n\n // x = x/R mod m (HAC 14.32)\n function montReduce(x) {\n while(x.t <= this.mt2) // pad x so am has enough room later\n x[x.t++] = 0;\n for(var i = 0; i < this.m.t; ++i) {\n // faster way of calculating u0 = x[i]*mp mod DV\n var j = x[i]&0x7fff;\n var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM;\n // use am to combine the multiply-shift-add into one call\n j = i+this.m.t;\n x[j] += this.m.am(0,u0,x,i,0,this.m.t);\n // propagate carry\n while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; }\n }\n x.clamp();\n x.drShiftTo(this.m.t,x);\n if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);\n }\n\n // r = \"x^2/R mod m\"; x != r\n function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); }\n\n // r = \"xy/R mod m\"; x,y != r\n function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }\n\n Montgomery.prototype.convert = montConvert;\n Montgomery.prototype.revert = montRevert;\n Montgomery.prototype.reduce = montReduce;\n Montgomery.prototype.mulTo = montMulTo;\n Montgomery.prototype.sqrTo = montSqrTo;\n\n // (protected) true iff this is even\n function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; }\n\n // (protected) this^e, e < 2^32, doing sqr and mul with \"r\" (HAC 14.79)\n function bnpExp(e,z) {\n if(e > 0xffffffff || e < 1) return BigInteger.ONE;\n var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1;\n g.copyTo(r);\n while(--i >= 0) {\n z.sqrTo(r,r2);\n if((e&(1< 0) z.mulTo(r2,g,r);\n else { var t = r; r = r2; r2 = t; }\n }\n return z.revert(r);\n }\n\n // (public) this^e % m, 0 <= e < 2^32\n function bnModPowInt(e,m) {\n var z;\n if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m);\n return this.exp(e,z);\n }\n\n // protected\n BigInteger.prototype.copyTo = bnpCopyTo;\n BigInteger.prototype.fromInt = bnpFromInt;\n BigInteger.prototype.fromString = bnpFromString;\n BigInteger.prototype.clamp = bnpClamp;\n BigInteger.prototype.dlShiftTo = bnpDLShiftTo;\n BigInteger.prototype.drShiftTo = bnpDRShiftTo;\n BigInteger.prototype.lShiftTo = bnpLShiftTo;\n BigInteger.prototype.rShiftTo = bnpRShiftTo;\n BigInteger.prototype.subTo = bnpSubTo;\n BigInteger.prototype.multiplyTo = bnpMultiplyTo;\n BigInteger.prototype.squareTo = bnpSquareTo;\n BigInteger.prototype.divRemTo = bnpDivRemTo;\n BigInteger.prototype.invDigit = bnpInvDigit;\n BigInteger.prototype.isEven = bnpIsEven;\n BigInteger.prototype.exp = bnpExp;\n\n // public\n BigInteger.prototype.toString = bnToString;\n BigInteger.prototype.negate = bnNegate;\n BigInteger.prototype.abs = bnAbs;\n BigInteger.prototype.compareTo = bnCompareTo;\n BigInteger.prototype.bitLength = bnBitLength;\n BigInteger.prototype.mod = bnMod;\n BigInteger.prototype.modPowInt = bnModPowInt;\n\n // \"constants\"\n BigInteger.ZERO = nbv(0);\n BigInteger.ONE = nbv(1);\n\n // Copyright (c) 2005-2009 Tom Wu\n // All Rights Reserved.\n // See \"LICENSE\" for details.\n\n // Extended JavaScript BN functions, required for RSA private ops.\n\n // Version 1.1: new BigInteger(\"0\", 10) returns \"proper\" zero\n // Version 1.2: square() API, isProbablePrime fix\n\n // (public)\n function bnClone() { var r = nbi(); this.copyTo(r); return r; }\n\n // (public) return value as integer\n function bnIntValue() {\n if(this.s < 0) {\n if(this.t == 1) return this[0]-this.DV;\n else if(this.t == 0) return -1;\n }\n else if(this.t == 1) return this[0];\n else if(this.t == 0) return 0;\n // assumes 16 < DB < 32\n return ((this[1]&((1<<(32-this.DB))-1))<>24; }\n\n // (public) return value as short (assumes DB>=16)\n function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; }\n\n // (protected) return x s.t. r^x < DV\n function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }\n\n // (public) 0 if this == 0, 1 if this > 0\n function bnSigNum() {\n if(this.s < 0) return -1;\n else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0;\n else return 1;\n }\n\n // (protected) convert to radix string\n function bnpToRadix(b) {\n if(b == null) b = 10;\n if(this.signum() == 0 || b < 2 || b > 36) return \"0\";\n var cs = this.chunkSize(b);\n var a = Math.pow(b,cs);\n var d = nbv(a), y = nbi(), z = nbi(), r = \"\";\n this.divRemTo(d,y,z);\n while(y.signum() > 0) {\n r = (a+z.intValue()).toString(b).substr(1) + r;\n y.divRemTo(d,y,z);\n }\n return z.intValue().toString(b) + r;\n }\n\n // (protected) convert from radix string\n function bnpFromRadix(s,b) {\n this.fromInt(0);\n if(b == null) b = 10;\n var cs = this.chunkSize(b);\n var d = Math.pow(b,cs), mi = false, j = 0, w = 0;\n for(var i = 0; i < s.length; ++i) {\n var x = intAt(s,i);\n if(x < 0) {\n if(s.charAt(i) == \"-\" && this.signum() == 0) mi = true;\n continue;\n }\n w = b*w+x;\n if(++j >= cs) {\n this.dMultiply(d);\n this.dAddOffset(w,0);\n j = 0;\n w = 0;\n }\n }\n if(j > 0) {\n this.dMultiply(Math.pow(b,j));\n this.dAddOffset(w,0);\n }\n if(mi) BigInteger.ZERO.subTo(this,this);\n }\n\n // (protected) alternate constructor\n function bnpFromNumber(a,b,c) {\n if(\"number\" == typeof b) {\n // new BigInteger(int,int,RNG)\n if(a < 2) this.fromInt(1);\n else {\n this.fromNumber(a,c);\n if(!this.testBit(a-1))\t// force MSB set\n this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);\n if(this.isEven()) this.dAddOffset(1,0); // force odd\n while(!this.isProbablePrime(b)) {\n this.dAddOffset(2,0);\n if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this);\n }\n }\n }\n else {\n // new BigInteger(int,RNG)\n var x = new Array(), t = a&7;\n x.length = (a>>3)+1;\n b.nextBytes(x);\n if(t > 0) x[0] &= ((1< 0) {\n if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p)\n r[k++] = d|(this.s<<(this.DB-p));\n while(i >= 0) {\n if(p < 8) {\n d = (this[i]&((1<>(p+=this.DB-8);\n }\n else {\n d = (this[i]>>(p-=8))&0xff;\n if(p <= 0) { p += this.DB; --i; }\n }\n if((d&0x80) != 0) d |= -256;\n if(k == 0 && (this.s&0x80) != (d&0x80)) ++k;\n if(k > 0 || d != this.s) r[k++] = d;\n }\n }\n return r;\n }\n\n function bnEquals(a) { return(this.compareTo(a)==0); }\n function bnMin(a) { return(this.compareTo(a)<0)?this:a; }\n function bnMax(a) { return(this.compareTo(a)>0)?this:a; }\n\n // (protected) r = this op a (bitwise)\n function bnpBitwiseTo(a,op,r) {\n var i, f, m = Math.min(a.t,this.t);\n for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]);\n if(a.t < this.t) {\n f = a.s&this.DM;\n for(i = m; i < this.t; ++i) r[i] = op(this[i],f);\n r.t = this.t;\n }\n else {\n f = this.s&this.DM;\n for(i = m; i < a.t; ++i) r[i] = op(f,a[i]);\n r.t = a.t;\n }\n r.s = op(this.s,a.s);\n r.clamp();\n }\n\n // (public) this & a\n function op_and(x,y) { return x&y; }\n function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; }\n\n // (public) this | a\n function op_or(x,y) { return x|y; }\n function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; }\n\n // (public) this ^ a\n function op_xor(x,y) { return x^y; }\n function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; }\n\n // (public) this & ~a\n function op_andnot(x,y) { return x&~y; }\n function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; }\n\n // (public) ~this\n function bnNot() {\n var r = nbi();\n for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i];\n r.t = this.t;\n r.s = ~this.s;\n return r;\n }\n\n // (public) this << n\n function bnShiftLeft(n) {\n var r = nbi();\n if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r);\n return r;\n }\n\n // (public) this >> n\n function bnShiftRight(n) {\n var r = nbi();\n if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r);\n return r;\n }\n\n // return index of lowest 1-bit in x, x < 2^31\n function lbit(x) {\n if(x == 0) return -1;\n var r = 0;\n if((x&0xffff) == 0) { x >>= 16; r += 16; }\n if((x&0xff) == 0) { x >>= 8; r += 8; }\n if((x&0xf) == 0) { x >>= 4; r += 4; }\n if((x&3) == 0) { x >>= 2; r += 2; }\n if((x&1) == 0) ++r;\n return r;\n }\n\n // (public) returns index of lowest 1-bit (or -1 if none)\n function bnGetLowestSetBit() {\n for(var i = 0; i < this.t; ++i)\n if(this[i] != 0) return i*this.DB+lbit(this[i]);\n if(this.s < 0) return this.t*this.DB;\n return -1;\n }\n\n // return number of 1 bits in x\n function cbit(x) {\n var r = 0;\n while(x != 0) { x &= x-1; ++r; }\n return r;\n }\n\n // (public) return number of set bits\n function bnBitCount() {\n var r = 0, x = this.s&this.DM;\n for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x);\n return r;\n }\n\n // (public) true iff nth bit is set\n function bnTestBit(n) {\n var j = Math.floor(n/this.DB);\n if(j >= this.t) return(this.s!=0);\n return((this[j]&(1<<(n%this.DB)))!=0);\n }\n\n // (protected) this op (1<>= this.DB;\n }\n if(a.t < this.t) {\n c += a.s;\n while(i < this.t) {\n c += this[i];\n r[i++] = c&this.DM;\n c >>= this.DB;\n }\n c += this.s;\n }\n else {\n c += this.s;\n while(i < a.t) {\n c += a[i];\n r[i++] = c&this.DM;\n c >>= this.DB;\n }\n c += a.s;\n }\n r.s = (c<0)?-1:0;\n if(c > 0) r[i++] = c;\n else if(c < -1) r[i++] = this.DV+c;\n r.t = i;\n r.clamp();\n }\n\n // (public) this + a\n function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; }\n\n // (public) this - a\n function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; }\n\n // (public) this * a\n function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; }\n\n // (public) this^2\n function bnSquare() { var r = nbi(); this.squareTo(r); return r; }\n\n // (public) this / a\n function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }\n\n // (public) this % a\n function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; }\n\n // (public) [this/a,this%a]\n function bnDivideAndRemainder(a) {\n var q = nbi(), r = nbi();\n this.divRemTo(a,q,r);\n return new Array(q,r);\n }\n\n // (protected) this *= n, this >= 0, 1 < n < DV\n function bnpDMultiply(n) {\n this[this.t] = this.am(0,n-1,this,0,0,this.t);\n ++this.t;\n this.clamp();\n }\n\n // (protected) this += n << w words, this >= 0\n function bnpDAddOffset(n,w) {\n if(n == 0) return;\n while(this.t <= w) this[this.t++] = 0;\n this[w] += n;\n while(this[w] >= this.DV) {\n this[w] -= this.DV;\n if(++w >= this.t) this[this.t++] = 0;\n ++this[w];\n }\n }\n\n // A \"null\" reducer\n function NullExp() {}\n function nNop(x) { return x; }\n function nMulTo(x,y,r) { x.multiplyTo(y,r); }\n function nSqrTo(x,r) { x.squareTo(r); }\n\n NullExp.prototype.convert = nNop;\n NullExp.prototype.revert = nNop;\n NullExp.prototype.mulTo = nMulTo;\n NullExp.prototype.sqrTo = nSqrTo;\n\n // (public) this^e\n function bnPow(e) { return this.exp(e,new NullExp()); }\n\n // (protected) r = lower n words of \"this * a\", a.t <= n\n // \"this\" should be the larger one if appropriate.\n function bnpMultiplyLowerTo(a,n,r) {\n var i = Math.min(this.t+a.t,n);\n r.s = 0; // assumes a,this >= 0\n r.t = i;\n while(i > 0) r[--i] = 0;\n var j;\n for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t);\n for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i);\n r.clamp();\n }\n\n // (protected) r = \"this * a\" without lower n words, n > 0\n // \"this\" should be the larger one if appropriate.\n function bnpMultiplyUpperTo(a,n,r) {\n --n;\n var i = r.t = this.t+a.t-n;\n r.s = 0; // assumes a,this >= 0\n while(--i >= 0) r[i] = 0;\n for(i = Math.max(n-this.t,0); i < a.t; ++i)\n r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n);\n r.clamp();\n r.drShiftTo(1,r);\n }\n\n // Barrett modular reduction\n function Barrett(m) {\n // setup Barrett\n this.r2 = nbi();\n this.q3 = nbi();\n BigInteger.ONE.dlShiftTo(2*m.t,this.r2);\n this.mu = this.r2.divide(m);\n this.m = m;\n }\n\n function barrettConvert(x) {\n if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m);\n else if(x.compareTo(this.m) < 0) return x;\n else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; }\n }\n\n function barrettRevert(x) { return x; }\n\n // x = x mod m (HAC 14.42)\n function barrettReduce(x) {\n x.drShiftTo(this.m.t-1,this.r2);\n if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); }\n this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);\n this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);\n while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1);\n x.subTo(this.r2,x);\n while(x.compareTo(this.m) >= 0) x.subTo(this.m,x);\n }\n\n // r = x^2 mod m; x != r\n function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); }\n\n // r = x*y mod m; x,y != r\n function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }\n\n Barrett.prototype.convert = barrettConvert;\n Barrett.prototype.revert = barrettRevert;\n Barrett.prototype.reduce = barrettReduce;\n Barrett.prototype.mulTo = barrettMulTo;\n Barrett.prototype.sqrTo = barrettSqrTo;\n\n // (public) this^e % m (HAC 14.85)\n function bnModPow(e,m) {\n var i = e.bitLength(), k, r = nbv(1), z;\n if(i <= 0) return r;\n else if(i < 18) k = 1;\n else if(i < 48) k = 3;\n else if(i < 144) k = 4;\n else if(i < 768) k = 5;\n else k = 6;\n if(i < 8)\n z = new Classic(m);\n else if(m.isEven())\n z = new Barrett(m);\n else\n z = new Montgomery(m);\n\n // precomputation\n var g = new Array(), n = 3, k1 = k-1, km = (1< 1) {\n var g2 = nbi();\n z.sqrTo(g[1],g2);\n while(n <= km) {\n g[n] = nbi();\n z.mulTo(g2,g[n-2],g[n]);\n n += 2;\n }\n }\n\n var j = e.t-1, w, is1 = true, r2 = nbi(), t;\n i = nbits(e[j])-1;\n while(j >= 0) {\n if(i >= k1) w = (e[j]>>(i-k1))&km;\n else {\n w = (e[j]&((1<<(i+1))-1))<<(k1-i);\n if(j > 0) w |= e[j-1]>>(this.DB+i-k1);\n }\n\n n = k;\n while((w&1) == 0) { w >>= 1; --n; }\n if((i -= n) < 0) { i += this.DB; --j; }\n if(is1) {\t// ret == 1, don't bother squaring or multiplying it\n g[w].copyTo(r);\n is1 = false;\n }\n else {\n while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; }\n if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; }\n z.mulTo(r2,g[w],r);\n }\n\n while(j >= 0 && (e[j]&(1< 0) {\n x.rShiftTo(g,x);\n y.rShiftTo(g,y);\n }\n while(x.signum() > 0) {\n if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x);\n if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y);\n if(x.compareTo(y) >= 0) {\n x.subTo(y,x);\n x.rShiftTo(1,x);\n }\n else {\n y.subTo(x,y);\n y.rShiftTo(1,y);\n }\n }\n if(g > 0) y.lShiftTo(g,y);\n return y;\n }\n\n // (protected) this % n, n < 2^26\n function bnpModInt(n) {\n if(n <= 0) return 0;\n var d = this.DV%n, r = (this.s<0)?n-1:0;\n if(this.t > 0)\n if(d == 0) r = this[0]%n;\n else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;\n return r;\n }\n\n // (public) 1/this % m (HAC 14.61)\n function bnModInverse(m) {\n var ac = m.isEven();\n if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;\n var u = m.clone(), v = this.clone();\n var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1);\n while(u.signum() != 0) {\n while(u.isEven()) {\n u.rShiftTo(1,u);\n if(ac) {\n if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); }\n a.rShiftTo(1,a);\n }\n else if(!b.isEven()) b.subTo(m,b);\n b.rShiftTo(1,b);\n }\n while(v.isEven()) {\n v.rShiftTo(1,v);\n if(ac) {\n if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); }\n c.rShiftTo(1,c);\n }\n else if(!d.isEven()) d.subTo(m,d);\n d.rShiftTo(1,d);\n }\n if(u.compareTo(v) >= 0) {\n u.subTo(v,u);\n if(ac) a.subTo(c,a);\n b.subTo(d,b);\n }\n else {\n v.subTo(u,v);\n if(ac) c.subTo(a,c);\n d.subTo(b,d);\n }\n }\n if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO;\n if(d.compareTo(m) >= 0) return d.subtract(m);\n if(d.signum() < 0) d.addTo(m,d); else return d;\n if(d.signum() < 0) return d.add(m); else return d;\n }\n\n var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];\n var lplim = (1<<26)/lowprimes[lowprimes.length-1];\n\n // (public) test primality with certainty >= 1-.5^t\n function bnIsProbablePrime(t) {\n var i, x = this.abs();\n if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) {\n for(i = 0; i < lowprimes.length; ++i)\n if(x[0] == lowprimes[i]) return true;\n return false;\n }\n if(x.isEven()) return false;\n i = 1;\n while(i < lowprimes.length) {\n var m = lowprimes[i], j = i+1;\n while(j < lowprimes.length && m < lplim) m *= lowprimes[j++];\n m = x.modInt(m);\n while(i < j) if(m%lowprimes[i++] == 0) return false;\n }\n return x.millerRabin(t);\n }\n\n // (protected) true if probably prime (HAC 4.24, Miller-Rabin)\n function bnpMillerRabin(t) {\n var n1 = this.subtract(BigInteger.ONE);\n var k = n1.getLowestSetBit();\n if(k <= 0) return false;\n var r = n1.shiftRight(k);\n t = (t+1)>>1;\n if(t > lowprimes.length) t = lowprimes.length;\n var a = nbi();\n for(var i = 0; i < t; ++i) {\n //Pick bases at random, instead of starting at 2\n a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);\n var y = a.modPow(r,this);\n if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {\n var j = 1;\n while(j++ < k && y.compareTo(n1) != 0) {\n y = y.modPowInt(2,this);\n if(y.compareTo(BigInteger.ONE) == 0) return false;\n }\n if(y.compareTo(n1) != 0) return false;\n }\n }\n return true;\n }\n\n // protected\n BigInteger.prototype.chunkSize = bnpChunkSize;\n BigInteger.prototype.toRadix = bnpToRadix;\n BigInteger.prototype.fromRadix = bnpFromRadix;\n BigInteger.prototype.fromNumber = bnpFromNumber;\n BigInteger.prototype.bitwiseTo = bnpBitwiseTo;\n BigInteger.prototype.changeBit = bnpChangeBit;\n BigInteger.prototype.addTo = bnpAddTo;\n BigInteger.prototype.dMultiply = bnpDMultiply;\n BigInteger.prototype.dAddOffset = bnpDAddOffset;\n BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;\n BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;\n BigInteger.prototype.modInt = bnpModInt;\n BigInteger.prototype.millerRabin = bnpMillerRabin;\n\n // public\n BigInteger.prototype.clone = bnClone;\n BigInteger.prototype.intValue = bnIntValue;\n BigInteger.prototype.byteValue = bnByteValue;\n BigInteger.prototype.shortValue = bnShortValue;\n BigInteger.prototype.signum = bnSigNum;\n BigInteger.prototype.toByteArray = bnToByteArray;\n BigInteger.prototype.equals = bnEquals;\n BigInteger.prototype.min = bnMin;\n BigInteger.prototype.max = bnMax;\n BigInteger.prototype.and = bnAnd;\n BigInteger.prototype.or = bnOr;\n BigInteger.prototype.xor = bnXor;\n BigInteger.prototype.andNot = bnAndNot;\n BigInteger.prototype.not = bnNot;\n BigInteger.prototype.shiftLeft = bnShiftLeft;\n BigInteger.prototype.shiftRight = bnShiftRight;\n BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;\n BigInteger.prototype.bitCount = bnBitCount;\n BigInteger.prototype.testBit = bnTestBit;\n BigInteger.prototype.setBit = bnSetBit;\n BigInteger.prototype.clearBit = bnClearBit;\n BigInteger.prototype.flipBit = bnFlipBit;\n BigInteger.prototype.add = bnAdd;\n BigInteger.prototype.subtract = bnSubtract;\n BigInteger.prototype.multiply = bnMultiply;\n BigInteger.prototype.divide = bnDivide;\n BigInteger.prototype.remainder = bnRemainder;\n BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;\n BigInteger.prototype.modPow = bnModPow;\n BigInteger.prototype.modInverse = bnModInverse;\n BigInteger.prototype.pow = bnPow;\n BigInteger.prototype.gcd = bnGCD;\n BigInteger.prototype.isProbablePrime = bnIsProbablePrime;\n\n // JSBN-specific extension\n BigInteger.prototype.square = bnSquare;\n\n // Expose the Barrett function\n BigInteger.prototype.Barrett = Barrett\n\n // BigInteger interfaces not implemented in jsbn:\n\n // BigInteger(int signum, byte[] magnitude)\n // double doubleValue()\n // float floatValue()\n // int hashCode()\n // long longValue()\n // static BigInteger valueOf(long val)\n\n\t// Random number generator - requires a PRNG backend, e.g. prng4.js\n\n\t// For best results, put code like\n\t// \n\t// in your main HTML document.\n\n\tvar rng_state;\n\tvar rng_pool;\n\tvar rng_pptr;\n\n\t// Mix in a 32-bit integer into the pool\n\tfunction rng_seed_int(x) {\n\t rng_pool[rng_pptr++] ^= x & 255;\n\t rng_pool[rng_pptr++] ^= (x >> 8) & 255;\n\t rng_pool[rng_pptr++] ^= (x >> 16) & 255;\n\t rng_pool[rng_pptr++] ^= (x >> 24) & 255;\n\t if(rng_pptr >= rng_psize) rng_pptr -= rng_psize;\n\t}\n\n\t// Mix in the current time (w/milliseconds) into the pool\n\tfunction rng_seed_time() {\n\t rng_seed_int(new Date().getTime());\n\t}\n\n\t// Initialize the pool with junk if needed.\n\tif(rng_pool == null) {\n\t rng_pool = new Array();\n\t rng_pptr = 0;\n\t var t;\n\t if(typeof window !== \"undefined\" && window.crypto) {\n\t\tif (window.crypto.getRandomValues) {\n\t\t // Use webcrypto if available\n\t\t var ua = new Uint8Array(32);\n\t\t window.crypto.getRandomValues(ua);\n\t\t for(t = 0; t < 32; ++t)\n\t\t\trng_pool[rng_pptr++] = ua[t];\n\t\t}\n\t\telse if(navigator.appName == \"Netscape\" && navigator.appVersion < \"5\") {\n\t\t // Extract entropy (256 bits) from NS4 RNG if available\n\t\t var z = window.crypto.random(32);\n\t\t for(t = 0; t < z.length; ++t)\n\t\t\trng_pool[rng_pptr++] = z.charCodeAt(t) & 255;\n\t\t}\n\t }\n\t while(rng_pptr < rng_psize) { // extract some randomness from Math.random()\n\t\tt = Math.floor(65536 * Math.random());\n\t\trng_pool[rng_pptr++] = t >>> 8;\n\t\trng_pool[rng_pptr++] = t & 255;\n\t }\n\t rng_pptr = 0;\n\t rng_seed_time();\n\t //rng_seed_int(window.screenX);\n\t //rng_seed_int(window.screenY);\n\t}\n\n\tfunction rng_get_byte() {\n\t if(rng_state == null) {\n\t\trng_seed_time();\n\t\trng_state = prng_newstate();\n\t\trng_state.init(rng_pool);\n\t\tfor(rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr)\n\t\t rng_pool[rng_pptr] = 0;\n\t\trng_pptr = 0;\n\t\t//rng_pool = null;\n\t }\n\t // TODO: allow reseeding after first request\n\t return rng_state.next();\n\t}\n\n\tfunction rng_get_bytes(ba) {\n\t var i;\n\t for(i = 0; i < ba.length; ++i) ba[i] = rng_get_byte();\n\t}\n\n\tfunction SecureRandom() {}\n\n\tSecureRandom.prototype.nextBytes = rng_get_bytes;\n\n\t// prng4.js - uses Arcfour as a PRNG\n\n\tfunction Arcfour() {\n\t this.i = 0;\n\t this.j = 0;\n\t this.S = new Array();\n\t}\n\n\t// Initialize arcfour context from key, an array of ints, each from [0..255]\n\tfunction ARC4init(key) {\n\t var i, j, t;\n\t for(i = 0; i < 256; ++i)\n\t\tthis.S[i] = i;\n\t j = 0;\n\t for(i = 0; i < 256; ++i) {\n\t\tj = (j + this.S[i] + key[i % key.length]) & 255;\n\t\tt = this.S[i];\n\t\tthis.S[i] = this.S[j];\n\t\tthis.S[j] = t;\n\t }\n\t this.i = 0;\n\t this.j = 0;\n\t}\n\n\tfunction ARC4next() {\n\t var t;\n\t this.i = (this.i + 1) & 255;\n\t this.j = (this.j + this.S[this.i]) & 255;\n\t t = this.S[this.i];\n\t this.S[this.i] = this.S[this.j];\n\t this.S[this.j] = t;\n\t return this.S[(t + this.S[this.i]) & 255];\n\t}\n\n\tArcfour.prototype.init = ARC4init;\n\tArcfour.prototype.next = ARC4next;\n\n\t// Plug in your RNG constructor here\n\tfunction prng_newstate() {\n\t return new Arcfour();\n\t}\n\n\t// Pool size must be a multiple of 4 and greater than 32.\n\t// An array of bytes the size of the pool will be passed to init()\n\tvar rng_psize = 256;\n\n BigInteger.SecureRandom = SecureRandom;\n BigInteger.BigInteger = BigInteger;\n if (typeof exports !== 'undefined') {\n exports = module.exports = BigInteger;\n } else {\n this.BigInteger = BigInteger;\n this.SecureRandom = SecureRandom;\n }\n\n}).call(this);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jsbn/index.js\n// module id = 31\n// module chunks = 0","/**\n * Check if `fn` is a function.\n *\n * @param {Function} fn\n * @return {Boolean}\n * @api private\n */\nvar isObject = require('./is-object');\n\nfunction isFunction(fn) {\n var tag = isObject(fn) ? Object.prototype.toString.call(fn) : '';\n return tag === '[object Function]';\n}\n\nmodule.exports = isFunction;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/superagent/lib/is-function.js\n// module id = 32\n// module chunks = 0","/**\n * Module of mixed-in functions shared between node and client code\n */\nvar isObject = require('./is-object');\n\n/**\n * Expose `RequestBase`.\n */\n\nmodule.exports = RequestBase;\n\n/**\n * Initialize a new `RequestBase`.\n *\n * @api public\n */\n\nfunction RequestBase(obj) {\n if (obj) return mixin(obj);\n}\n\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in RequestBase.prototype) {\n obj[key] = RequestBase.prototype[key];\n }\n return obj;\n}\n\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.clearTimeout = function _clearTimeout(){\n clearTimeout(this._timer);\n clearTimeout(this._responseTimeoutTimer);\n delete this._timer;\n delete this._responseTimeoutTimer;\n return this;\n};\n\n/**\n * Override default response body parser\n *\n * This function will be called to convert incoming data into request.body\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.parse = function parse(fn){\n this._parser = fn;\n return this;\n};\n\n/**\n * Set format of binary response body.\n * In browser valid formats are 'blob' and 'arraybuffer',\n * which return Blob and ArrayBuffer, respectively.\n *\n * In Node all values result in Buffer.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.responseType = function(val){\n this._responseType = val;\n return this;\n};\n\n/**\n * Override default request body serializer\n *\n * This function will be called to convert data set via .send or .attach into payload to send\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.serialize = function serialize(fn){\n this._serializer = fn;\n return this;\n};\n\n/**\n * Set timeouts.\n *\n * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.\n * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.\n *\n * Value of 0 or false means no timeout.\n *\n * @param {Number|Object} ms or {response, read, deadline}\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.timeout = function timeout(options){\n if (!options || 'object' !== typeof options) {\n this._timeout = options;\n this._responseTimeout = 0;\n return this;\n }\n\n for(var option in options) {\n switch(option) {\n case 'deadline':\n this._timeout = options.deadline;\n break;\n case 'response':\n this._responseTimeout = options.response;\n break;\n default:\n console.warn(\"Unknown timeout option\", option);\n }\n }\n return this;\n};\n\n/**\n * Set number of retry attempts on error.\n *\n * Failed requests will be retried 'count' times if timeout or err.code >= 500.\n *\n * @param {Number} count\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.retry = function retry(count){\n // Default to 1 if no count passed or true\n if (arguments.length === 0 || count === true) count = 1;\n if (count <= 0) count = 0;\n this._maxRetries = count;\n this._retries = 0;\n return this;\n};\n\n/**\n * Retry request\n *\n * @return {Request} for chaining\n * @api private\n */\n\nRequestBase.prototype._retry = function() {\n this.clearTimeout();\n\n // node\n if (this.req) {\n this.req = null;\n this.req = this.request();\n }\n\n this._aborted = false;\n this.timedout = false;\n\n return this._end();\n};\n\n/**\n * Promise support\n *\n * @param {Function} resolve\n * @param {Function} [reject]\n * @return {Request}\n */\n\nRequestBase.prototype.then = function then(resolve, reject) {\n if (!this._fullfilledPromise) {\n var self = this;\n if (this._endCalled) {\n console.warn(\"Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises\");\n }\n this._fullfilledPromise = new Promise(function(innerResolve, innerReject){\n self.end(function(err, res){\n if (err) innerReject(err); else innerResolve(res);\n });\n });\n }\n return this._fullfilledPromise.then(resolve, reject);\n}\n\nRequestBase.prototype.catch = function(cb) {\n return this.then(undefined, cb);\n};\n\n/**\n * Allow for extension\n */\n\nRequestBase.prototype.use = function use(fn) {\n fn(this);\n return this;\n}\n\nRequestBase.prototype.ok = function(cb) {\n if ('function' !== typeof cb) throw Error(\"Callback required\");\n this._okCallback = cb;\n return this;\n};\n\nRequestBase.prototype._isResponseOK = function(res) {\n if (!res) {\n return false;\n }\n\n if (this._okCallback) {\n return this._okCallback(res);\n }\n\n return res.status >= 200 && res.status < 300;\n};\n\n\n/**\n * Get request header `field`.\n * Case-insensitive.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nRequestBase.prototype.get = function(field){\n return this._header[field.toLowerCase()];\n};\n\n/**\n * Get case-insensitive header `field` value.\n * This is a deprecated internal API. Use `.get(field)` instead.\n *\n * (getHeader is no longer used internally by the superagent code base)\n *\n * @param {String} field\n * @return {String}\n * @api private\n * @deprecated\n */\n\nRequestBase.prototype.getHeader = RequestBase.prototype.get;\n\n/**\n * Set header `field` to `val`, or multiple fields with one object.\n * Case-insensitive.\n *\n * Examples:\n *\n * req.get('/')\n * .set('Accept', 'application/json')\n * .set('X-API-Key', 'foobar')\n * .end(callback);\n *\n * req.get('/')\n * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })\n * .end(callback);\n *\n * @param {String|Object} field\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.set = function(field, val){\n if (isObject(field)) {\n for (var key in field) {\n this.set(key, field[key]);\n }\n return this;\n }\n this._header[field.toLowerCase()] = val;\n this.header[field] = val;\n return this;\n};\n\n/**\n * Remove header `field`.\n * Case-insensitive.\n *\n * Example:\n *\n * req.get('/')\n * .unset('User-Agent')\n * .end(callback);\n *\n * @param {String} field\n */\nRequestBase.prototype.unset = function(field){\n delete this._header[field.toLowerCase()];\n delete this.header[field];\n return this;\n};\n\n/**\n * Write the field `name` and `val`, or multiple fields with one object\n * for \"multipart/form-data\" request bodies.\n *\n * ``` js\n * request.post('/upload')\n * .field('foo', 'bar')\n * .end(callback);\n *\n * request.post('/upload')\n * .field({ foo: 'bar', baz: 'qux' })\n * .end(callback);\n * ```\n *\n * @param {String|Object} name\n * @param {String|Blob|File|Buffer|fs.ReadStream} val\n * @return {Request} for chaining\n * @api public\n */\nRequestBase.prototype.field = function(name, val) {\n\n // name should be either a string or an object.\n if (null === name || undefined === name) {\n throw new Error('.field(name, val) name can not be empty');\n }\n\n if (this._data) {\n console.error(\".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()\");\n }\n\n if (isObject(name)) {\n for (var key in name) {\n this.field(key, name[key]);\n }\n return this;\n }\n\n if (Array.isArray(val)) {\n for (var i in val) {\n this.field(name, val[i]);\n }\n return this;\n }\n\n // val should be defined now\n if (null === val || undefined === val) {\n throw new Error('.field(name, val) val can not be empty');\n }\n if ('boolean' === typeof val) {\n val = '' + val;\n }\n this._getFormData().append(name, val);\n return this;\n};\n\n/**\n * Abort the request, and clear potential timeout.\n *\n * @return {Request}\n * @api public\n */\nRequestBase.prototype.abort = function(){\n if (this._aborted) {\n return this;\n }\n this._aborted = true;\n this.xhr && this.xhr.abort(); // browser\n this.req && this.req.abort(); // node\n this.clearTimeout();\n this.emit('abort');\n return this;\n};\n\n/**\n * Enable transmission of cookies with x-domain requests.\n *\n * Note that for this to work the origin must not be\n * using \"Access-Control-Allow-Origin\" with a wildcard,\n * and also must set \"Access-Control-Allow-Credentials\"\n * to \"true\".\n *\n * @api public\n */\n\nRequestBase.prototype.withCredentials = function(on){\n // This is browser-only functionality. Node side is no-op.\n if(on==undefined) on = true;\n this._withCredentials = on;\n return this;\n};\n\n/**\n * Set the max redirects to `n`. Does noting in browser XHR implementation.\n *\n * @param {Number} n\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.redirects = function(n){\n this._maxRedirects = n;\n return this;\n};\n\n/**\n * Convert to a plain javascript object (not JSON string) of scalar properties.\n * Note as this method is designed to return a useful non-this value,\n * it cannot be chained.\n *\n * @return {Object} describing method, url, and data of this request\n * @api public\n */\n\nRequestBase.prototype.toJSON = function(){\n return {\n method: this.method,\n url: this.url,\n data: this._data,\n headers: this._header\n };\n};\n\n\n/**\n * Send `data` as the request body, defaulting the `.type()` to \"json\" when\n * an object is given.\n *\n * Examples:\n *\n * // manual json\n * request.post('/user')\n * .type('json')\n * .send('{\"name\":\"tj\"}')\n * .end(callback)\n *\n * // auto json\n * request.post('/user')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // manual x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send('name=tj')\n * .end(callback)\n *\n * // auto x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // defaults to x-www-form-urlencoded\n * request.post('/user')\n * .send('name=tobi')\n * .send('species=ferret')\n * .end(callback)\n *\n * @param {String|Object} data\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.send = function(data){\n var isObj = isObject(data);\n var type = this._header['content-type'];\n\n if (this._formData) {\n console.error(\".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()\");\n }\n\n if (isObj && !this._data) {\n if (Array.isArray(data)) {\n this._data = [];\n } else if (!this._isHost(data)) {\n this._data = {};\n }\n } else if (data && this._data && this._isHost(this._data)) {\n throw Error(\"Can't merge these send calls\");\n }\n\n // merge\n if (isObj && isObject(this._data)) {\n for (var key in data) {\n this._data[key] = data[key];\n }\n } else if ('string' == typeof data) {\n // default to x-www-form-urlencoded\n if (!type) this.type('form');\n type = this._header['content-type'];\n if ('application/x-www-form-urlencoded' == type) {\n this._data = this._data\n ? this._data + '&' + data\n : data;\n } else {\n this._data = (this._data || '') + data;\n }\n } else {\n this._data = data;\n }\n\n if (!isObj || this._isHost(data)) {\n return this;\n }\n\n // default to json\n if (!type) this.type('json');\n return this;\n};\n\n\n/**\n * Sort `querystring` by the sort function\n *\n *\n * Examples:\n *\n * // default order\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery()\n * .end(callback)\n *\n * // customized sort function\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery(function(a, b){\n * return a.length - b.length;\n * })\n * .end(callback)\n *\n *\n * @param {Function} sort\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.sortQuery = function(sort) {\n // _sort default to true but otherwise can be a function or boolean\n this._sort = typeof sort === 'undefined' ? true : sort;\n return this;\n};\n\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequestBase.prototype._timeoutError = function(reason, timeout, errno){\n if (this._aborted) {\n return;\n }\n var err = new Error(reason + timeout + 'ms exceeded');\n err.timeout = timeout;\n err.code = 'ECONNABORTED';\n err.errno = errno;\n this.timedout = true;\n this.abort();\n this.callback(err);\n};\n\nRequestBase.prototype._setTimeouts = function() {\n var self = this;\n\n // deadline\n if (this._timeout && !this._timer) {\n this._timer = setTimeout(function(){\n self._timeoutError('Timeout of ', self._timeout, 'ETIME');\n }, this._timeout);\n }\n // response timeout\n if (this._responseTimeout && !this._responseTimeoutTimer) {\n this._responseTimeoutTimer = setTimeout(function(){\n self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');\n }, this._responseTimeout);\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/superagent/lib/request-base.js\n// module id = 33\n// module chunks = 0","\n/**\n * Module dependencies.\n */\n\nvar utils = require('./utils');\n\n/**\n * Expose `ResponseBase`.\n */\n\nmodule.exports = ResponseBase;\n\n/**\n * Initialize a new `ResponseBase`.\n *\n * @api public\n */\n\nfunction ResponseBase(obj) {\n if (obj) return mixin(obj);\n}\n\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in ResponseBase.prototype) {\n obj[key] = ResponseBase.prototype[key];\n }\n return obj;\n}\n\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nResponseBase.prototype.get = function(field){\n return this.header[field.toLowerCase()];\n};\n\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\nResponseBase.prototype._setHeaderProperties = function(header){\n // TODO: moar!\n // TODO: make this a util\n\n // content-type\n var ct = header['content-type'] || '';\n this.type = utils.type(ct);\n\n // params\n var params = utils.params(ct);\n for (var key in params) this[key] = params[key];\n\n this.links = {};\n\n // links\n try {\n if (header.link) {\n this.links = utils.parseLinks(header.link);\n }\n } catch (err) {\n // ignore\n }\n};\n\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\nResponseBase.prototype._setStatusProperties = function(status){\n var type = status / 100 | 0;\n\n // status / class\n this.status = this.statusCode = status;\n this.statusType = type;\n\n // basics\n this.info = 1 == type;\n this.ok = 2 == type;\n this.redirect = 3 == type;\n this.clientError = 4 == type;\n this.serverError = 5 == type;\n this.error = (4 == type || 5 == type)\n ? this.toError()\n : false;\n\n // sugar\n this.accepted = 202 == status;\n this.noContent = 204 == status;\n this.badRequest = 400 == status;\n this.unauthorized = 401 == status;\n this.notAcceptable = 406 == status;\n this.forbidden = 403 == status;\n this.notFound = 404 == status;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/superagent/lib/response-base.js\n// module id = 34\n// module chunks = 0","var ERROR_CODES = [\n 'ECONNRESET',\n 'ETIMEDOUT',\n 'EADDRINFO',\n 'ESOCKETTIMEDOUT'\n];\n\n/**\n * Determine if a request should be retried.\n * (Borrowed from segmentio/superagent-retry)\n *\n * @param {Error} err\n * @param {Response} [res]\n * @returns {Boolean}\n */\nmodule.exports = function shouldRetry(err, res) {\n if (err && err.code && ~ERROR_CODES.indexOf(err.code)) return true;\n if (res && res.status && res.status >= 500) return true;\n // Superagent timeout\n if (err && 'timeout' in err && err.code == 'ECONNABORTED') return true;\n return false;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/superagent/lib/should-retry.js\n// module id = 35\n// module chunks = 0","\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nexports.type = function(str){\n return str.split(/ *; */).shift();\n};\n\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.params = function(str){\n return str.split(/ *; */).reduce(function(obj, str){\n var parts = str.split(/ *= */);\n var key = parts.shift();\n var val = parts.shift();\n\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n\n/**\n * Parse Link header fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.parseLinks = function(str){\n return str.split(/ *, */).reduce(function(obj, str){\n var parts = str.split(/ *; */);\n var url = parts[0].slice(1, -1);\n var rel = parts[1].split(/ *= */)[1].slice(1, -1);\n obj[rel] = url;\n return obj;\n }, {});\n};\n\n/**\n * Strip content related fields from `header`.\n *\n * @param {Object} header\n * @return {Object} header\n * @api private\n */\n\nexports.cleanHeader = function(header, shouldStripCookie){\n delete header['content-type'];\n delete header['content-length'];\n delete header['transfer-encoding'];\n delete header['host'];\n if (shouldStripCookie) {\n delete header['cookie'];\n }\n return header;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/superagent/lib/utils.js\n// module id = 36\n// module chunks = 0","var urljoin = require('url-join');\n\nvar objectHelper = require('../helper/object');\nvar assert = require('../helper/assert');\nvar responseHandler = require('../helper/response-handler');\n\nfunction DBConnection(request, options) {\n this.baseOptions = options;\n this.request = request;\n}\n\n/**\n * @callback signUpCallback\n * @param {Error} [err] error returned by Auth0 with the reason why the signup failed\n * @param {Object} [result] result of the signup request\n * @param {Object} result.email user's email\n * @param {Object} result.emailVerified if the user's email was verified\n */\n\n/**\n * Creates a new user in a Auth0 Database connection\n *\n * @method signup\n * @param {Object} options\n * @param {String} options.email user email address\n * @param {String} options.password user password\n * @param {String} options.connection name of the connection where the user will be created\n * @param {signUpCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#signup}\n */\nDBConnection.prototype.signup = function(options, cb) {\n var url;\n var body;\n\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n connection: { type: 'string', message: 'connection option is required' },\n email: { type: 'string', message: 'email option is required' },\n password: { type: 'string', message: 'password option is required' }\n }\n );\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'dbconnections', 'signup');\n\n body = objectHelper.merge(this.baseOptions, ['clientID']).with(options);\n\n body = objectHelper.blacklist(body, ['scope']);\n\n body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\n return this.request.post(url).send(body).end(responseHandler(cb));\n};\n\n/**\n * @callback changePasswordCallback\n * @param {Error} [err] error returned by Auth0 with the reason why the request failed\n */\n\n/**\n * Request an email with instruction to change a user's password\n *\n * @method changePassword\n * @param {Object} options\n * @param {String} options.email address where the user will recieve the change password email. It should match the user's email in Auth0\n * @param {String} options.connection name of the connection where the user was created\n * @param {changePasswordCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#change-password}\n */\nDBConnection.prototype.changePassword = function(options, cb) {\n var url;\n var body;\n\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n connection: { type: 'string', message: 'connection option is required' },\n email: { type: 'string', message: 'email option is required' }\n }\n );\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'dbconnections', 'change_password');\n\n body = objectHelper.merge(this.baseOptions, ['clientID']).with(options, ['email', 'connection']);\n\n body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\n return this.request.post(url).send(body).end(responseHandler(cb));\n};\n\nmodule.exports = DBConnection;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/authentication/db-connection.js\n// module id = 40\n// module chunks = 0","var urljoin = require('url-join');\n\nvar objectHelper = require('../helper/object');\nvar assert = require('../helper/assert');\nvar qs = require('qs');\nvar responseHandler = require('../helper/response-handler');\n\nfunction PasswordlessAuthentication(request, options) {\n this.baseOptions = options;\n this.request = request;\n}\n\nPasswordlessAuthentication.prototype.buildVerifyUrl = function(options) {\n var params;\n var qString;\n\n /* eslint-disable */\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n connection: { type: 'string', message: 'connection option is required' },\n verificationCode: { type: 'string', message: 'verificationCode option is required' },\n phoneNumber: {\n optional: false,\n type: 'string',\n message: 'phoneNumber option is required',\n condition: function(o) {\n return !o.email;\n }\n },\n email: {\n optional: false,\n type: 'string',\n message: 'email option is required',\n condition: function(o) {\n return !o.phoneNumber;\n }\n }\n }\n );\n /* eslint-enable */\n\n params = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'responseType',\n 'responseMode',\n 'redirectUri',\n 'scope',\n 'audience'\n ])\n .with(options);\n\n // eslint-disable-next-line\n if (this.baseOptions._sendTelemetry) {\n params.auth0Client = this.request.getTelemetryData();\n }\n\n params = objectHelper.toSnakeCase(params, ['auth0Client']);\n\n qString = qs.stringify(params);\n\n return urljoin(this.baseOptions.rootUrl, 'passwordless', 'verify_redirect', '?' + qString);\n};\n\nPasswordlessAuthentication.prototype.start = function(options, cb) {\n var url;\n var body;\n\n /* eslint-disable */\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n connection: { type: 'string', message: 'connection option is required' },\n send: {\n type: 'string',\n message: 'send option is required',\n values: ['link', 'code'],\n value_message: 'send is not valid ([link, code])'\n },\n phoneNumber: {\n optional: true,\n type: 'string',\n message: 'phoneNumber option is required',\n condition: function(o) {\n return o.send === 'code' || !o.email;\n }\n },\n email: {\n optional: true,\n type: 'string',\n message: 'email option is required',\n condition: function(o) {\n return o.send === 'link' || !o.phoneNumber;\n }\n },\n authParams: { optional: true, type: 'object', message: 'authParams option is required' }\n }\n );\n /* eslint-enable */\n\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'passwordless', 'start');\n\n body = objectHelper\n .merge(this.baseOptions, ['clientID', 'responseType', 'redirectUri', 'scope'])\n .with(options);\n\n if (body.scope) {\n body.authParams = body.authParams || {};\n body.authParams.scope = body.scope;\n }\n\n if (body.redirectUri) {\n body.authParams = body.authParams || {};\n body.authParams.redirect_uri = body.redirectUri;\n }\n\n if (body.responseType) {\n body.authParams = body.authParams || {};\n body.authParams.response_type = body.responseType;\n }\n\n delete body.redirectUri;\n delete body.responseType;\n delete body.scope;\n\n body = objectHelper.toSnakeCase(body, ['auth0Client', 'authParams']);\n\n return this.request.post(url).send(body).end(responseHandler(cb));\n};\n\nPasswordlessAuthentication.prototype.verify = function(options, cb) {\n var url;\n var cleanOption;\n\n /* eslint-disable */\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n connection: { type: 'string', message: 'connection option is required' },\n verificationCode: { type: 'string', message: 'verificationCode option is required' },\n phoneNumber: {\n optional: false,\n type: 'string',\n message: 'phoneNumber option is required',\n condition: function(o) {\n return !o.email;\n }\n },\n email: {\n optional: false,\n type: 'string',\n message: 'email option is required',\n condition: function(o) {\n return !o.phoneNumber;\n }\n }\n }\n );\n /* eslint-enable */\n\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n cleanOption = objectHelper.toSnakeCase(options, ['auth0Client']);\n\n url = urljoin(this.baseOptions.rootUrl, 'passwordless', 'verify');\n\n return this.request.post(url).send(cleanOption).end(responseHandler(cb));\n};\n\nmodule.exports = PasswordlessAuthentication;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/authentication/passwordless-authentication.js\n// module id = 41\n// module chunks = 0","var windowHandler = require('./window');\nvar base64Url = require('./base64_url');\n\nfunction create(name, value, days) {\n var date;\n var expires;\n\n if (\n windowHandler.getDocument().cookie === undefined ||\n windowHandler.getDocument().cookie === null\n ) {\n throw new Error('cookie storage not available');\n }\n\n if (days) {\n var timeToExpire = days * 24 * 60 * 60 * 1000;\n date = new Date();\n date.setTime(date.getTime() + timeToExpire);\n expires = '; expires=' + date.toGMTString();\n } else {\n expires = '';\n }\n\n windowHandler.getDocument().cookie = name + '=' + base64Url.encode(value) + expires + '; path=/';\n}\n\nfunction read(name) {\n var i;\n var cookie;\n var cookies;\n var nameEQ = name + '=';\n\n if (\n windowHandler.getDocument().cookie === undefined ||\n windowHandler.getDocument().cookie === null\n ) {\n throw new Error('cookie storage not available');\n }\n\n cookies = windowHandler.getDocument().cookie.split(';');\n\n for (i = 0; i < cookies.length; i++) {\n cookie = cookies[i];\n while (cookie.charAt(0) === ' ') {\n cookie = cookie.substring(1, cookie.length);\n }\n if (cookie.indexOf(nameEQ) === 0) {\n return base64Url.decode(cookie.substring(nameEQ.length, cookie.length));\n }\n }\n\n return null;\n}\n\nfunction erase(name) {\n create(name, '', -1);\n}\n\nmodule.exports = {\n create: create,\n read: read,\n erase: erase\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/cookies.js\n// module id = 42\n// module chunks = 0","var windowHelper = require('./window');\n\nfunction IframeHandler(options) {\n this.url = options.url;\n this.callback = options.callback;\n this.timeout = options.timeout || 60 * 1000;\n this.timeoutCallback = options.timeoutCallback || null;\n this.eventListenerType = options.eventListenerType || 'message';\n this.iframe = null;\n this.timeoutHandle = null;\n this._destroyTimeout = null;\n this.transientMessageEventListener = null;\n this.proxyEventListener = null;\n // If no event identifier specified, set default\n this.eventValidator = options.eventValidator || {\n isValid: function() {\n return true;\n }\n };\n\n if (typeof this.callback !== 'function') {\n throw new Error('options.callback must be a function');\n }\n}\n\nIframeHandler.prototype.init = function() {\n var _this = this;\n var _window = windowHelper.getWindow();\n\n this.iframe = _window.document.createElement('iframe');\n this.iframe.style.display = 'none';\n this.iframe.src = this.url;\n\n // Workaround to avoid using bind that does not work in IE8\n this.proxyEventListener = function(e) {\n _this.eventListener(e);\n };\n\n switch (this.eventListenerType) {\n case 'message':\n this.eventSourceObject = _window;\n break;\n case 'load':\n this.eventSourceObject = this.iframe;\n break;\n default:\n throw new Error('Unsupported event listener type: ' + this.eventListenerType);\n }\n\n this.eventSourceObject.addEventListener(this.eventListenerType, this.proxyEventListener, false);\n\n _window.document.body.appendChild(this.iframe);\n\n this.timeoutHandle = setTimeout(function() {\n _this.timeoutHandler();\n }, this.timeout);\n};\n\nIframeHandler.prototype.eventListener = function(event) {\n var eventData = { event: event, sourceObject: this.eventSourceObject };\n\n if (!this.eventValidator.isValid(eventData)) {\n return;\n }\n\n this.destroy();\n this.callback(eventData);\n};\n\nIframeHandler.prototype.timeoutHandler = function() {\n this.destroy();\n if (this.timeoutCallback) {\n this.timeoutCallback();\n }\n};\n\nIframeHandler.prototype.destroy = function() {\n var _this = this;\n var _window = windowHelper.getWindow();\n\n clearTimeout(this.timeoutHandle);\n\n this._destroyTimeout = setTimeout(function() {\n _this.eventSourceObject.removeEventListener(\n _this.eventListenerType,\n _this.proxyEventListener,\n false\n );\n _window.document.body.removeChild(_this.iframe);\n }, 0);\n};\n\nmodule.exports = IframeHandler;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/iframe-handler.js\n// module id = 43\n// module chunks = 0","/* eslint-disable no-continue */\n\nfunction get() {\n if (!Object.assign) {\n return objectAssignPolyfill;\n }\n\n return Object.assign;\n}\n\nfunction objectAssignPolyfill(target) {\n 'use strict';\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nmodule.exports = {\n get: get,\n objectAssignPolyfill: objectAssignPolyfill\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/object-assign.js\n// module id = 44\n// module chunks = 0","var objectHelper = require('./object');\n\nvar tokenParams = [\n // auth0\n 'realm',\n 'audience',\n // oauth2\n 'client_id',\n 'client_secret',\n 'redirect_uri',\n 'scope',\n 'code',\n 'grant_type',\n 'username',\n 'password',\n 'refresh_token',\n 'assertion',\n 'client_assertion',\n 'client_assertion_type',\n 'code_verifier'\n];\n\nvar authorizeParams = [\n // auth0\n 'connection',\n 'connection_scope',\n 'auth0Client',\n 'owp',\n 'device',\n\n 'protocol',\n '_csrf',\n '_intstate',\n 'login_ticket',\n\n // oauth2\n 'client_id',\n 'response_type',\n 'response_mode',\n 'redirect_uri',\n 'audience',\n 'scope',\n 'state',\n 'nonce',\n 'display',\n 'prompt',\n 'max_age',\n 'ui_locales',\n 'claims_locales',\n 'id_token_hint',\n 'login_hint',\n 'acr_values',\n 'claims',\n 'registration',\n 'request',\n 'request_uri',\n 'code_challenge',\n 'code_challenge_method'\n];\n\nfunction oauthAuthorizeParams(warn, params) {\n var notAllowed = objectHelper.getKeysNotIn(params, authorizeParams);\n\n if (notAllowed.length > 0) {\n warn.warning(\n 'Following parameters are not allowed on the `/authorize` endpoint: [' +\n notAllowed.join(',') +\n ']'\n );\n }\n\n return params;\n}\n\nfunction oauthTokenParams(warn, params) {\n return objectHelper.pick(params, tokenParams);\n}\n\nmodule.exports = {\n oauthTokenParams: oauthTokenParams,\n oauthAuthorizeParams: oauthAuthorizeParams\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/parameters-whitelist.js\n// module id = 45\n// module chunks = 0","var version = require('../version');\n\nfunction PluginHandler(webAuth, plugins) {\n this.plugins = plugins;\n\n for (var a = 0; a < this.plugins.length; a++) {\n if (this.plugins[a].version !== version.raw) {\n var pluginName = '';\n\n if (this.plugins[a].constructor && this.plugins[a].constructor.name) {\n pluginName = this.plugins[a].constructor.name;\n }\n\n throw new Error(\n 'Plugin ' +\n pluginName +\n ' version (' +\n this.plugins[a].version +\n ') ' +\n 'is not compatible with the SDK version (' +\n version.raw +\n ')'\n );\n }\n\n this.plugins[a].setWebAuth(webAuth);\n }\n}\n\nPluginHandler.prototype.get = function(extensibilityPoint) {\n for (var a = 0; a < this.plugins.length; a++) {\n if (this.plugins[a].supports(extensibilityPoint)) {\n return this.plugins[a].init();\n }\n }\n\n return null;\n};\n\nmodule.exports = PluginHandler;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/plugins.js\n// module id = 46\n// module chunks = 0","/* eslint-disable no-restricted-syntax */\n/* eslint-disable guard-for-in */\nvar WinChan = require('winchan');\n\nvar windowHandler = require('./window');\nvar objectHelper = require('./object');\nvar qs = require('qs');\n\nfunction PopupHandler() {\n this._current_popup = null;\n}\n\nPopupHandler.prototype.calculatePosition = function(options) {\n var width = options.width || 500;\n var height = options.height || 600;\n var _window = windowHandler.getWindow();\n\n var screenX = typeof _window.screenX !== 'undefined' ? _window.screenX : _window.screenLeft;\n var screenY = typeof _window.screenY !== 'undefined' ? _window.screenY : _window.screenTop;\n\n var outerWidth = typeof _window.outerWidth !== 'undefined'\n ? _window.outerWidth\n : _window.document.body.clientWidth;\n\n var outerHeight = typeof _window.outerHeight !== 'undefined'\n ? _window.outerHeight\n : _window.document.body.clientHeight;\n\n var left = (outerWidth - width) / 2;\n var top = (outerHeight - height) / 2;\n\n return { width: width, height: height, left: screenX + left, top: screenY + top };\n};\n\nPopupHandler.prototype.preload = function(options) {\n var _this = this;\n var _window = windowHandler.getWindow();\n var popupPosition = this.calculatePosition(options.popupOptions || {});\n var popupOptions = objectHelper.merge(popupPosition).with(options.popupOptions);\n var url = options.url || 'about:blank';\n var windowFeatures = qs.stringify(popupOptions, {\n encode: false,\n delimiter: ','\n });\n\n if (this._current_popup && !this._current_popup.closed) {\n return this._current_popup;\n }\n\n this._current_popup = _window.open(url, 'auth0_signup_popup', windowFeatures);\n\n this._current_popup.kill = function() {\n this.close();\n _this._current_popup = null;\n };\n\n return this._current_popup;\n};\n\nPopupHandler.prototype.load = function(url, relayUrl, options, cb) {\n var _this = this;\n var popupPosition = this.calculatePosition(options.popupOptions || {});\n var popupOptions = objectHelper.merge(popupPosition).with(options.popupOptions);\n\n var winchanOptions = objectHelper\n .merge({\n url: url,\n relay_url: relayUrl,\n window_features: qs.stringify(popupOptions, {\n delimiter: ',',\n encode: false\n }),\n popup: this._current_popup\n })\n .with(options);\n\n var popup = WinChan.open(winchanOptions, function(err, data) {\n _this._current_popup = null;\n return cb(err, data);\n });\n\n popup.focus();\n\n return popup;\n};\n\nmodule.exports = PopupHandler;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/popup-handler.js\n// module id = 47\n// module chunks = 0","var windowHelper = require('./window');\n\nfunction randomString(length) {\n // eslint-disable-next-line\n var bytes = new Uint8Array(length);\n var result = [];\n var charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~';\n\n var cryptoObj = windowHelper.getWindow().crypto || windowHelper.getWindow().msCrypto;\n if (!cryptoObj) {\n return null;\n }\n\n var random = cryptoObj.getRandomValues(bytes);\n\n for (var a = 0; a < random.length; a++) {\n result.push(charset[random[a] % charset.length]);\n }\n\n return result.join('');\n}\n\nmodule.exports = {\n randomString: randomString\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/random.js\n// module id = 48\n// module chunks = 0","var StorageHandler = require('./storage/handler');\nvar storage;\n\nfunction getStorage(force) {\n if (!storage || force) {\n storage = new StorageHandler();\n }\n return storage;\n}\n\nmodule.exports = {\n getItem: function(key) {\n var value = getStorage().getItem(key);\n return value ? JSON.parse(value) : value;\n },\n removeItem: function(key) {\n return getStorage().removeItem(key);\n },\n setItem: function(key, value) {\n var json = JSON.stringify(value);\n return getStorage().setItem(key, json);\n },\n reload: function() {\n getStorage(true);\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/storage.js\n// module id = 49\n// module chunks = 0","var cookies = require('../cookies');\n\nfunction CookieStorage() {}\n\nCookieStorage.prototype.getItem = function(key) {\n return cookies.read(key);\n};\n\nCookieStorage.prototype.removeItem = function(key) {\n cookies.erase(key);\n};\n\nCookieStorage.prototype.setItem = function(key, value) {\n cookies.create(key, value, 1);\n};\n\nmodule.exports = CookieStorage;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/storage/cookie.js\n// module id = 50\n// module chunks = 0","function DummyStorage() {}\n\nDummyStorage.prototype.getItem = function() {\n return null;\n};\n\nDummyStorage.prototype.removeItem = function() {};\n\nDummyStorage.prototype.setItem = function() {};\n\nmodule.exports = DummyStorage;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/storage/dummy.js\n// module id = 51\n// module chunks = 0","var windowHandler = require('../window');\nvar DummyStorage = require('./dummy');\nvar CookieStorage = require('./cookie');\nvar Warn = require('../warn');\n\nfunction StorageHandler() {\n this.warn = new Warn({});\n this.storage = windowHandler.getWindow().localStorage || new CookieStorage();\n}\n\nStorageHandler.prototype.failover = function() {\n if (this.storage instanceof DummyStorage) {\n this.warn.warning('DummyStorage: ignore failover');\n return;\n } else if (this.storage instanceof CookieStorage) {\n this.warn.warning('CookieStorage: failing over DummyStorage');\n this.storage = new DummyStorage();\n } else {\n this.warn.warning('LocalStorage: failing over CookieStorage');\n this.storage = new CookieStorage();\n }\n};\n\nStorageHandler.prototype.getItem = function(key) {\n try {\n return this.storage.getItem(key);\n } catch (e) {\n this.warn.warning(e);\n this.failover();\n return this.getItem(key);\n }\n};\n\nStorageHandler.prototype.removeItem = function(key) {\n try {\n return this.storage.removeItem(key);\n } catch (e) {\n this.warn.warning(e);\n this.failover();\n return this.removeItem(key);\n }\n};\n\nStorageHandler.prototype.setItem = function(key, value) {\n try {\n return this.storage.setItem(key, value);\n } catch (e) {\n this.warn.warning(e);\n this.failover();\n return this.setItem(key, value);\n }\n};\n\nmodule.exports = StorageHandler;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/storage/handler.js\n// module id = 52\n// module chunks = 0","// given a URL, extract the origin. Taken from: https://github.com/firebase/firebase-simple-login/blob/d2cb95b9f812d8488bdbfba51c3a7c153ba1a074/js/src/simple-login/transports/WinChan.js#L25-L30\nfunction extractOrigin(url) {\n if (!/^https?:\\/\\//.test(url)) url = window.location.href;\n var m = /^(https?:\\/\\/[-_a-zA-Z.0-9:]+)/.exec(url);\n if (m) return m[1];\n return url;\n}\n\nmodule.exports = {\n extractOrigin: extractOrigin\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/helper/url.js\n// module id = 53\n// module chunks = 0","var Authentication = require('./authentication');\nvar Management = require('./management');\nvar WebAuth = require('./web-auth');\nvar version = require('./version');\n\nmodule.exports = {\n Authentication: Authentication,\n Management: Management,\n WebAuth: WebAuth,\n version: version.raw\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/index.js\n// module id = 54\n// module chunks = 0","var urljoin = require('url-join');\n\nvar RequestBuilder = require('../helper/request-builder');\nvar assert = require('../helper/assert');\nvar responseHandler = require('../helper/response-handler');\n\n/**\n * Auth0 Management API Client (methods allowed to be called from the browser only)\n * @constructor\n * @param {Object} options\n * @param {Object} options.domain your Auth0 acount domain\n * @param {Object} options.token a valid API token\n */\nfunction Management(options) {\n /* eslint-disable */\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n domain: { type: 'string', message: 'domain option is required' },\n token: { type: 'string', message: 'token option is required' },\n _sendTelemetry: {\n optional: true,\n type: 'boolean',\n message: '_sendTelemetry option is not valid'\n },\n _telemetryInfo: {\n optional: true,\n type: 'object',\n message: '_telemetryInfo option is not valid'\n }\n }\n );\n /* eslint-enable */\n\n this.baseOptions = options;\n\n this.baseOptions.headers = { Authorization: 'Bearer ' + this.baseOptions.token };\n\n this.request = new RequestBuilder(this.baseOptions);\n this.baseOptions.rootUrl = urljoin('https://' + this.baseOptions.domain, 'api', 'v2');\n}\n\n/**\n * @callback userCallback\n * @param {Error} [err] failure reason for the failed request to Management API\n * @param {Object} [result] user profile\n */\n\n/**\n * Returns the user profile\n *\n * @method getUser\n * @param {String} userId identifier of the user to retrieve\n * @param {userCallback} cb\n * @see https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id\n */\nManagement.prototype.getUser = function(userId, cb) {\n var url;\n\n assert.check(userId, { type: 'string', message: 'userId parameter is not valid' });\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'users', userId);\n\n return this.request.get(url).end(responseHandler(cb, { ignoreCasing: true }));\n};\n\n/**\n * Updates the user metdata. It will patch the user metdata with the attributes sent.\n *\n *\n * @method patchUserMetadata\n * @param {String} userId\n * @param {Object} userMetadata\n * @param {userCallback} cb\n * @see {@link https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id}\n */\nManagement.prototype.patchUserMetadata = function(userId, userMetadata, cb) {\n var url;\n\n assert.check(userId, { type: 'string', message: 'userId parameter is not valid' });\n assert.check(userMetadata, { type: 'object', message: 'userMetadata parameter is not valid' });\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n url = urljoin(this.baseOptions.rootUrl, 'users', userId);\n\n return this.request\n .patch(url)\n .send({ user_metadata: userMetadata })\n .end(responseHandler(cb, { ignoreCasing: true }));\n};\n\n/**\n * Link two users\n *\n * @method linkUser\n * @param {String} userId\n * @param {String} secondaryUserToken\n * @param {userCallback} cb\n * @see {@link https://auth0.com/docs/api/management/v2#!/Users/post_identities}\n */\nManagement.prototype.linkUser = function(userId, secondaryUserToken, cb) {\n var url;\n /* eslint-disable */\n assert.check(userId, { type: 'string', message: 'userId parameter is not valid' });\n assert.check(secondaryUserToken, {\n type: 'string',\n message: 'secondaryUserToken parameter is not valid'\n });\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n /* eslint-enable */\n\n url = urljoin(this.baseOptions.rootUrl, 'users', userId, 'identities');\n\n return this.request\n .post(url)\n .send({ link_with: secondaryUserToken })\n .end(responseHandler(cb, { ignoreCasing: true }));\n};\n\nmodule.exports = Management;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/management/index.js\n// module id = 55\n// module chunks = 0","var urljoin = require('url-join');\n\nvar windowHelper = require('../helper/window');\nvar objectHelper = require('../helper/object');\nvar RequestBuilder = require('../helper/request-builder');\n\nfunction CrossOriginAuthentication(webAuth, options) {\n this.webAuth = webAuth;\n this.baseOptions = options;\n this.request = new RequestBuilder(options);\n}\n\nfunction getFragment(name) {\n var theWindow = windowHelper.getWindow();\n var value = '&' + theWindow.location.hash.substring(1);\n var parts = value.split('&' + name + '=');\n if (parts.length === 2) {\n return parts.pop().split('&').shift();\n }\n}\n\nfunction createKey(origin, coId) {\n return ['co/verifier', encodeURIComponent(origin), encodeURIComponent(coId)].join('/');\n}\n\n/**\n * Logs in the user with username and password using the cross origin authentication (/co/authenticate) flow. You can use either `username` or `email` to identify the user, but `username` will take precedence over `email`.\n * This only works when 3rd party cookies are enabled in the browser. After the /co/authenticate call, you'll have to use the {@link parseHash} function at the `redirectUri` specified in the constructor.\n *\n * @method login\n * @param {Object} options options used in the {@link authorize} call after the login_ticket is acquired\n * @param {String} [options.username] Username (mutually exclusive with email)\n * @param {String} [options.email] Email (mutually exclusive with username)\n * @param {String} options.password Password\n * @param {String} [options.realm] Realm used to authenticate the user, it can be a realm name or a database connection name\n * @param {crossOriginLoginCallback} cb Callback function called only when an authentication error, like invalid username or password, occurs. For other types of errors, there will be a redirect to the `redirectUri`.\n */\nCrossOriginAuthentication.prototype.login = function(options, cb) {\n var _this = this;\n var theWindow = windowHelper.getWindow();\n var url = urljoin(this.baseOptions.rootUrl, '/co/authenticate');\n var authenticateBody = {\n client_id: options.clientID || this.baseOptions.clientID,\n credential_type: 'password',\n username: options.username || options.email,\n password: options.password\n };\n var realm = options.realm || this.baseOptions.realm;\n if (realm) {\n authenticateBody.realm = realm;\n authenticateBody.credential_type = 'http://auth0.com/oauth/grant-type/password-realm';\n }\n this.request.post(url).withCredentials().send(authenticateBody).end(function(err, data) {\n if (err) {\n var errorObject = (err.response && err.response.body) || {\n error: 'request_error',\n error_description: JSON.stringify(err)\n };\n return cb(errorObject);\n }\n options = objectHelper.blacklist(options, ['username', 'password']);\n var authorizeOptions = objectHelper\n .merge(options)\n .with({ loginTicket: data.body.login_ticket });\n var key = createKey(_this.baseOptions.rootUrl, data.body.co_id);\n theWindow.sessionStorage[key] = data.body.co_verifier;\n _this.webAuth.authorize(authorizeOptions);\n });\n};\n\n/**\n * Runs the callback code for the cross origin authentication call. This method is meant to be called by the cross origin authentication callback url.\n *\n * @method callback\n */\nCrossOriginAuthentication.prototype.callback = function() {\n var targetOrigin = decodeURIComponent(getFragment('origin'));\n var theWindow = windowHelper.getWindow();\n\n theWindow.addEventListener('message', function(evt) {\n if (evt.data.type !== 'co_verifier_request') {\n return;\n }\n var key = createKey(evt.origin, evt.data.request.id);\n var verifier = theWindow.sessionStorage[key];\n theWindow.sessionStorage.removeItem(key);\n\n evt.source.postMessage(\n {\n type: 'co_verifier_response',\n response: {\n verifier: verifier\n }\n },\n evt.origin\n );\n });\n\n theWindow.parent.postMessage({ type: 'ready' }, targetOrigin);\n};\n\nmodule.exports = CrossOriginAuthentication;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/web-auth/cross-origin-authentication.js\n// module id = 56\n// module chunks = 0","var IdTokenVerifier = require('idtoken-verifier');\n\nvar assert = require('../helper/assert');\nvar error = require('../helper/error');\nvar qs = require('qs');\nvar PluginHandler = require('../helper/plugins');\nvar windowHelper = require('../helper/window');\nvar objectHelper = require('../helper/object');\nvar TransactionManager = require('./transaction-manager');\nvar Authentication = require('../authentication');\nvar Redirect = require('./redirect');\nvar Popup = require('./popup');\nvar SilentAuthenticationHandler = require('./silent-authentication-handler');\nvar CrossOriginAuthentication = require('./cross-origin-authentication');\n/**\n * Handles all the browser's AuthN/AuthZ flows\n * @constructor\n * @param {Object} options\n * @param {String} options.domain your Auth0 domain\n * @param {String} options.clientID your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} [options.responseType] type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @param {Array} [options.plugins]\n * @see {@link https://auth0.com/docs/api/authentication}\n */\nfunction WebAuth(options) {\n /* eslint-disable */\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n domain: { type: 'string', message: 'domain option is required' },\n clientID: { type: 'string', message: 'clientID option is required' },\n responseType: { optional: true, type: 'string', message: 'responseType is not valid' },\n responseMode: { optional: true, type: 'string', message: 'responseMode is not valid' },\n redirectUri: { optional: true, type: 'string', message: 'redirectUri is not valid' },\n scope: { optional: true, type: 'string', message: 'scope is not valid' },\n audience: { optional: true, type: 'string', message: 'audience is not valid' },\n leeway: { optional: true, type: 'number', message: 'leeway is not valid' },\n plugins: { optional: true, type: 'array', message: 'plugins is not valid' },\n _disableDeprecationWarnings: {\n optional: true,\n type: 'boolean',\n message: '_disableDeprecationWarnings option is not valid'\n },\n _sendTelemetry: {\n optional: true,\n type: 'boolean',\n message: '_sendTelemetry option is not valid'\n },\n _telemetryInfo: {\n optional: true,\n type: 'object',\n message: '_telemetryInfo option is not valid'\n }\n }\n );\n\n if (options.overrides) {\n assert.check(\n options.overrides,\n { type: 'object', message: 'overrides option is not valid' },\n {\n __tenant: { type: 'string', message: '__tenant option is required' },\n __token_issuer: { type: 'string', message: '__token_issuer option is required' }\n }\n );\n }\n /* eslint-enable */\n\n this.baseOptions = options;\n this.baseOptions.plugins = new PluginHandler(this, this.baseOptions.plugins || []);\n\n this.baseOptions._sendTelemetry = this.baseOptions._sendTelemetry === false\n ? this.baseOptions._sendTelemetry\n : true;\n\n this.baseOptions.tenant =\n (this.baseOptions.overrides && this.baseOptions.overrides.__tenant) ||\n this.baseOptions.domain.split('.')[0];\n\n this.baseOptions.token_issuer =\n (this.baseOptions.overrides && this.baseOptions.overrides.__token_issuer) ||\n 'https://' + this.baseOptions.domain + '/';\n\n this.transactionManager = new TransactionManager(this.baseOptions.transaction);\n\n this.client = new Authentication(this.baseOptions);\n this.redirect = new Redirect(this.client, this.baseOptions);\n this.popup = new Popup(this, this.baseOptions);\n this.crossOriginAuthentication = new CrossOriginAuthentication(this, this.baseOptions);\n}\n\n/**\n * Parse the url hash and extract the Auth response from a Auth flow started with {@link authorize}\n *\n * Only validates id_tokens signed by Auth0 using the RS256 algorithm using the public key exposed\n * by the `/.well-known/jwks.json` endpoint of your account.\n * Tokens signed with other algorithms, e.g. HS256 will not be accepted.\n *\n * @method parseHash\n * @param {Object} options\n * @param {String} options.hash the url hash. If not provided it will extract from window.location.hash\n * @param {String} [options.state] value originally sent in `state` parameter to {@link authorize} to mitigate XSRF\n * @param {String} [options.nonce] value originally sent in `nonce` parameter to {@link authorize} to prevent replay attacks\n * @param {String} [options._idTokenVerification] makes parseHash perform or skip `id_token` verification. We **strongly** recommend validating the `id_token` yourself if you disable the verification.\n * @param {authorizeCallback} cb\n */\nWebAuth.prototype.parseHash = function(options, cb) {\n var parsedQs;\n var err;\n var state;\n var transaction;\n var transactionNonce;\n\n if (!cb && typeof options === 'function') {\n cb = options;\n options = {};\n } else {\n options = options || {};\n }\n\n options._idTokenVerification = !(options._idTokenVerification === false);\n\n var _window = windowHelper.getWindow();\n\n var hashStr = options.hash === undefined ? _window.location.hash : options.hash;\n hashStr = hashStr.replace(/^#?\\/?/, '');\n\n parsedQs = qs.parse(hashStr);\n\n if (parsedQs.hasOwnProperty('error')) {\n err = error.buildResponse(parsedQs.error, parsedQs.error_description);\n\n if (parsedQs.state) {\n err.state = parsedQs.state;\n }\n\n return cb(err);\n }\n\n if (\n !parsedQs.hasOwnProperty('access_token') &&\n !parsedQs.hasOwnProperty('id_token') &&\n !parsedQs.hasOwnProperty('refresh_token')\n ) {\n return cb(null, null);\n }\n\n state = parsedQs.state || options.state;\n\n transaction = this.transactionManager.getStoredTransaction(state);\n transactionNonce = options.nonce || (transaction && transaction.nonce) || null;\n\n var applicationStatus = (transaction && transaction.appStatus) || null;\n if (parsedQs.id_token && options._idTokenVerification) {\n return this.validateToken(parsedQs.id_token, transactionNonce, function(\n validationError,\n payload\n ) {\n if (validationError) {\n return cb(validationError);\n }\n return cb(null, buildParseHashResponse(parsedQs, applicationStatus, payload));\n });\n }\n\n if (parsedQs.id_token) {\n var verifier = new IdTokenVerifier({\n issuer: this.baseOptions.token_issuer,\n audience: this.baseOptions.clientID,\n leeway: this.baseOptions.leeway || 0,\n __disableExpirationCheck: this.baseOptions.__disableExpirationCheck\n });\n\n var decodedToken = verifier.decode(parsedQs.id_token);\n cb(null, buildParseHashResponse(parsedQs, applicationStatus, decodedToken.payload));\n } else {\n cb(null, buildParseHashResponse(parsedQs, applicationStatus, null));\n }\n};\n\nfunction buildParseHashResponse(qsParams, appStatus, token) {\n return {\n accessToken: qsParams.access_token || null,\n idToken: qsParams.id_token || null,\n idTokenPayload: token || null,\n appStatus: appStatus || null,\n refreshToken: qsParams.refresh_token || null,\n state: qsParams.state || null,\n expiresIn: qsParams.expires_in ? parseInt(qsParams.expires_in, 10) : null,\n tokenType: qsParams.token_type || null,\n scope: qsParams.scope || null\n };\n}\n\n/**\n * @callback validateTokenCallback\n * @param {Error} [err] error returned by while validating the token\n * @param {Object} [payload] claims stored in the token\n */\n\n/**\n * Decodes the a JWT and verifies its nonce value\n *\n * @method validateToken\n * @private\n * @param {String} token\n * @param {String} nonce\n * @param {validateTokenCallback} cb\n */\nWebAuth.prototype.validateToken = function(token, nonce, cb) {\n var verifier = new IdTokenVerifier({\n issuer: this.baseOptions.token_issuer,\n audience: this.baseOptions.clientID,\n leeway: this.baseOptions.leeway || 0,\n __disableExpirationCheck: this.baseOptions.__disableExpirationCheck\n });\n\n verifier.verify(token, nonce, function(err, payload) {\n if (err) {\n return cb(error.invalidJwt(err.message));\n }\n\n cb(null, payload);\n });\n};\n\n/**\n * Executes a silent authentication transaction under the hood in order to fetch a new tokens for the current session.\n * This method requires that all Auth is performed with {@link authorize}\n * Watch out! If you're not using the hosted login page to do social logins, you have to use your own [social connection keys](https://manage.auth0.com/#/connections/social). If you use Auth0's dev keys, you'll always get `login_required` as an error when calling this method.\n *\n * @method renewAuth\n * @param {Object} options\n * @param {String} [options.domain] your Auth0 domain\n * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} [options.responseType] type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @param {String} [options.postMessageDataType] identifier data type to look for in postMessage event data, where events are initiated from silent callback urls, before accepting a message event is the event expected. A value of false means any postMessage event will trigger a callback.\n * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n */\nWebAuth.prototype.renewAuth = function(options, cb) {\n var handler;\n var usePostMessage = !!options.usePostMessage;\n var postMessageDataType = options.postMessageDataType || false;\n var _this = this;\n\n var params = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'redirectUri',\n 'responseType',\n 'scope',\n 'audience',\n '_csrf',\n 'state',\n '_instate',\n 'nonce'\n ])\n .with(options);\n\n params.responseType = params.responseType || 'token';\n params.responseMode = params.responseMode || 'fragment';\n if (!options.nonce) {\n params = this.transactionManager.process(params);\n }\n\n assert.check(params, { type: 'object', message: 'options parameter is not valid' });\n assert.check(cb, { type: 'function', message: 'cb parameter is not valid' });\n\n params.prompt = 'none';\n\n params = objectHelper.blacklist(params, ['usePostMessage', 'tenant', 'postMessageDataType']);\n\n handler = SilentAuthenticationHandler.create({\n authenticationUrl: this.client.buildAuthorizeUrl(params),\n postMessageDataType: postMessageDataType\n });\n\n handler.login(usePostMessage, function(err, hash) {\n if (typeof hash === 'object') {\n // hash was already parsed, so we just return it.\n // it's here to be backwards compatible and should be removed in the next major version.\n return cb(err, hash);\n }\n var transaction = _this.transactionManager.getStoredTransaction(params.state);\n var transactionNonce = options.nonce || (transaction && transaction.nonce) || null;\n var transactionState = options.state || (transaction && transaction.state) || null;\n _this.parseHash({ hash: hash, nonce: transactionNonce, state: transactionState }, cb);\n });\n};\n\n/**\n * Request an email with instruction to change a user's password\n *\n * @method changePassword\n * @param {Object} options\n * @param {String} options.email address where the user will recieve the change password email. It should match the user's email in Auth0\n * @param {String} options.connection name of the connection where the user was created\n * @param {changePasswordCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#change-password}\n */\nWebAuth.prototype.changePassword = function(options, cb) {\n return this.client.dbConnection.changePassword(options, cb);\n};\n\n/**\n * Starts a passwordless authentication transaction.\n *\n * @method passwordlessStart\n * @param {Object} options\n * @param {String} options.send what will be sent via email which could be `link` or `code`. For SMS `code` is the only one valud\n * @param {String} [options.phoneNumber] phone number where to send the `code`. This parameter is mutually exclusive with `email`\n * @param {String} [options.email] email where to send the `code` or `link`. This parameter is mutually exclusive with `phoneNumber`\n * @param {String} options.connection name of the passwordless connection\n * @param {Object} [options.authParams] additional Auth parameters when using `link`\n * @param {Function} cb\n * @see {@link https://auth0.com/docs/api/authentication#passwordless}\n */\nWebAuth.prototype.passwordlessStart = function(options, cb) {\n return this.client.passwordless.start(options, cb);\n};\n\n/**\n * Creates a new user in a Auth0 Database connection\n *\n * @method signup\n * @param {Object} options\n * @param {String} options.email user email address\n * @param {String} options.password user password\n * @param {String} options.connection name of the connection where the user will be created\n * @param {signUpCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#signup}\n */\nWebAuth.prototype.signup = function(options, cb) {\n return this.client.dbConnection.signup(options, cb);\n};\n\n/**\n * Redirects to the hosted login page (`/authorize`) in order to start a new authN/authZ transaction.\n * After that, you'll have to use the {@link parseHash} function at the specified `redirectUri`.\n *\n * @method authorize\n * @param {Object} options\n * @param {String} [options.domain] your Auth0 domain\n * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n * @param {String} options.redirectUri url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} options.responseType type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n */\nWebAuth.prototype.authorize = function(options) {\n var params = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'responseType',\n 'responseMode',\n 'redirectUri',\n 'scope',\n 'audience',\n '_csrf',\n 'state',\n '_instate',\n 'nonce'\n ])\n .with(options);\n\n assert.check(\n params,\n { type: 'object', message: 'options parameter is not valid' },\n {\n responseType: { type: 'string', message: 'responseType option is required' }\n }\n );\n\n params = this.transactionManager.process(params);\n\n windowHelper.redirect(this.client.buildAuthorizeUrl(params));\n};\n\n/**\n * Signs up a new user, automatically logs the user in after the signup and returns the user token.\n * The login will be done using /oauth/token with password-realm grant type.\n *\n * @method signupAndAuthorize\n * @param {Object} options\n * @param {String} options.email user email address\n * @param {String} options.password user password\n * @param {String} options.connection name of the connection where the user will be created\n * @param {tokenCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#signup}\n * @see {@link https://auth0.com/docs/api-auth/grant/password}\n */\nWebAuth.prototype.signupAndAuthorize = function(options, cb) {\n var _this = this;\n\n return this.client.dbConnection.signup(\n objectHelper.blacklist(options, ['popupHandler']),\n function(err) {\n if (err) {\n return cb(err);\n }\n options.realm = options.connection;\n if (!options.username) {\n options.username = options.email;\n }\n _this.client.login(options, cb);\n }\n );\n};\n\n/**\n * @callback crossOriginLoginCallback\n * @param {Error} [err] Authentication error returned by Auth0 with the reason why the request failed\n */\n\n/**\n * Logs in the user with username and password using the cross origin authentication (/co/authenticate) flow. You can use either `username` or `email` to identify the user, but `username` will take precedence over `email`.\n * This only works when 3rd party cookies are enabled in the browser. After the /co/authenticate call, you'll have to use the {@link parseHash} function at the `redirectUri` specified in the constructor.\n *\n * @method login\n * @param {Object} options options used in the {@link authorize} call after the login_ticket is acquired\n * @param {String} [options.username] Username (mutually exclusive with email)\n * @param {String} [options.email] Email (mutually exclusive with username)\n * @param {String} options.password Password\n * @param {String} [options.realm] Realm used to authenticate the user, it can be a realm name or a database connection name\n * @param {crossOriginLoginCallback} cb Callback function called only when an authentication error, like invalid username or password, occurs. For other types of errors, there will be a redirect to the `redirectUri`.\n */\nWebAuth.prototype.login = function(options, cb) {\n this.crossOriginAuthentication.login(options, cb);\n};\n\n/**\n * Runs the callback code for the cross origin authentication call. This method is meant to be called by the cross origin authentication callback url.\n *\n * @method crossOriginAuthenticationCallback\n */\nWebAuth.prototype.crossOriginAuthenticationCallback = function() {\n this.crossOriginAuthentication.callback();\n};\n\n/**\n * Redirects to the auth0 logout endpoint\n *\n * If you want to navigate the user to a specific URL after the logout, set that URL at the returnTo parameter. The URL should be included in any the appropriate Allowed Logout URLs list:\n *\n * - If the client_id parameter is included, the returnTo URL must be listed in the Allowed Logout URLs set at the client level (see Setting Allowed Logout URLs at the App Level).\n * - If the client_id parameter is NOT included, the returnTo URL must be listed in the Allowed Logout URLs set at the account level (see Setting Allowed Logout URLs at the Account Level).\n *\n * @method logout\n * @param {Object} options\n * @param {String} [options.clientID] identifier of your client\n * @param {String} [options.returnTo] URL to be redirected after the logout\n * @param {Boolean} [options.federated] tells Auth0 if it should logout the user also from the IdP.\n * @see {@link https://auth0.com/docs/api/authentication#logout}\n */\nWebAuth.prototype.logout = function(options) {\n windowHelper.redirect(this.client.buildLogoutUrl(options));\n};\n\n/**\n * Verifies the passwordless TOTP and redirects to finish the passwordless transaction\n *\n * @method passwordlessVerify\n * @param {Object} options\n * @param {String} options.type `sms` or `email`\n * @param {String} options.phoneNumber only if type = sms\n * @param {String} options.email only if type = email\n * @param {String} options.connection the connection name\n * @param {String} options.verificationCode the TOTP code\n * @param {Function} cb\n */\nWebAuth.prototype.passwordlessVerify = function(options, cb) {\n var _this = this;\n return this.client.passwordless.verify(options, function(err) {\n if (err) {\n return cb(err);\n }\n return windowHelper.redirect(_this.client.passwordless.buildVerifyUrl(options));\n });\n};\n\nmodule.exports = WebAuth;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/web-auth/index.js\n// module id = 57\n// module chunks = 0","var urljoin = require('url-join');\nvar WinChan = require('winchan');\n\nvar urlHelper = require('../helper/url');\nvar assert = require('../helper/assert');\nvar responseHandler = require('../helper/response-handler');\nvar PopupHandler = require('../helper/popup-handler');\nvar objectHelper = require('../helper/object');\nvar Warn = require('../helper/warn');\nvar TransactionManager = require('./transaction-manager');\n\nfunction Popup(webAuth, options) {\n this.baseOptions = options;\n this.client = webAuth.client;\n this.webAuth = webAuth;\n\n this.transactionManager = new TransactionManager(this.baseOptions.transaction);\n this.warn = new Warn({\n disableWarnings: !!options._disableDeprecationWarnings\n });\n}\n\n/**\n * Returns a new instance of the popup handler\n *\n * @method buildPopupHandler\n * @private\n */\nPopup.prototype.buildPopupHandler = function() {\n var pluginHandler = this.baseOptions.plugins.get('popup.getPopupHandler');\n\n if (pluginHandler) {\n return pluginHandler.getPopupHandler();\n }\n\n return new PopupHandler();\n};\n\n/**\n * Initializes the popup window and returns the instance to be used later in order to avoid being blocked by the browser.\n *\n * @method preload\n * @param {Object} options receives the window height and width and any other window feature to be sent to window.open\n */\nPopup.prototype.preload = function(options) {\n options = options || {};\n\n var popup = this.buildPopupHandler();\n\n popup.preload(options);\n return popup;\n};\n\n/**\n * Internal use.\n *\n * @method getPopupHandler\n * @private\n */\nPopup.prototype.getPopupHandler = function(options, preload) {\n if (options.popupHandler) {\n return options.popupHandler;\n }\n\n if (preload) {\n return this.preload(options);\n }\n\n return this.buildPopupHandler();\n};\n\n/**\n * Handles the popup logic for the callback page.\n *\n * @method callback\n * @param {Object} options\n * @param {String} options.hash the url hash. If not provided it will extract from window.location.hash\n * @param {String} [options.state] value originally sent in `state` parameter to {@link authorize} to mitigate XSRF\n * @param {String} [options.nonce] value originally sent in `nonce` parameter to {@link authorize} to prevent replay attacks\n * @param {String} [options._idTokenVerification] makes parseHash perform or skip `id_token` verification. We **strongly** recommend validating the `id_token` yourself if you disable the verification.\n * @see {@link parseHash}\n */\nPopup.prototype.callback = function(options) {\n var _this = this;\n WinChan.onOpen(function(popupOrigin, r, cb) {\n _this.webAuth.parseHash(options || {}, function(err, data) {\n return cb(err || data);\n });\n });\n};\n\n/**\n * Shows inside a new window the hosted login page (`/authorize`) in order to start a new authN/authZ transaction and post its result using `postMessage`.\n *\n * @method authorize\n * @param {Object} options\n * @param {String} [options.domain] your Auth0 domain\n * @param {String} [options.clientID] your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard\n * @param {String} options.redirectUri url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} options.responseType type of the response used by OAuth 2.0 flow. It can be any space separated list of the values `code`, `token`, `id_token`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0}\n * @param {String} [options.responseMode] how the Auth response is encoded and redirected back to the client. Supported values are `query`, `fragment` and `form_post`. {@link https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes}\n * @param {String} [options.state] value used to mitigate XSRF attacks. {@link https://auth0.com/docs/protocols/oauth2/oauth-state}\n * @param {String} [options.nonce] value used to mitigate replay attacks when using Implicit Grant. {@link https://auth0.com/docs/api-auth/tutorials/nonce}\n * @param {String} [options.scope] scopes to be requested during Auth. e.g. `openid email`\n * @param {String} [options.audience] identifier of the resource server who will consume the access token issued after Auth\n * @param {Boolean} [options.owp] determines if Auth0 should render the relay page or not and the caller is responsible of handling the response.\n * @param {authorizeCallback} cb\n * @see {@link https://auth0.com/docs/api/authentication#authorize-client}\n */\nPopup.prototype.authorize = function(options, cb) {\n var popup;\n var url;\n var relayUrl;\n var popOpts = {};\n\n var pluginHandler = this.baseOptions.plugins.get('popup.authorize');\n\n var params = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'scope',\n 'domain',\n 'audience',\n 'responseType',\n 'redirectUri',\n '_csrf',\n 'state',\n '_instate',\n 'nonce'\n ])\n .with(objectHelper.blacklist(options, ['popupHandler']));\n\n assert.check(\n params,\n { type: 'object', message: 'options parameter is not valid' },\n {\n responseType: { type: 'string', message: 'responseType option is required' }\n }\n );\n\n // the relay page should not be necesary as long it happens in the same domain\n // (a redirectUri shoul be provided). It is necesary when using OWP\n relayUrl = urljoin(this.baseOptions.rootUrl, 'relay.html');\n\n // if a owp is enabled, it should use the owp flag\n if (options.owp) {\n // used by server to render the relay page instead of sending the chunk in the\n // url to the callback\n params.owp = true;\n } else {\n popOpts.origin = urlHelper.extractOrigin(params.redirectUri);\n relayUrl = params.redirectUri;\n }\n\n if (options.popupOptions) {\n popOpts.popupOptions = objectHelper.pick(options.popupOptions, ['width', 'height']);\n }\n\n if (pluginHandler) {\n params = pluginHandler.processParams(params);\n }\n\n params = this.transactionManager.process(params);\n\n delete params.domain;\n\n url = this.client.buildAuthorizeUrl(params);\n\n popup = this.getPopupHandler(options);\n\n return popup.load(url, relayUrl, popOpts, responseHandler(cb));\n};\n\n/**\n * Performs authentication with username/email and password with a database connection inside a new window\n *\n * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n * you should use {@link authorize} or {@link login}.\n *\n * @method loginWithCredentials\n * @param {Object} options\n * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} [options.responseType] type of the response used. It can be any of the values `code` and `token`\n * @param {String} [options.responseMode] how the AuthN response is encoded and redirected back to the client. Supported values are `query` and `fragment`\n * @param {String} [options.scope] scopes to be requested during AuthN. e.g. `openid email`\n * @param {credentialsCallback} cb\n */\nPopup.prototype.loginWithCredentials = function(options, cb) {\n var params;\n var popup;\n var url;\n var relayUrl;\n\n /* eslint-disable */\n assert.check(\n options,\n { type: 'object', message: 'options parameter is not valid' },\n {\n clientID: { optional: true, type: 'string', message: 'clientID option is required' },\n redirectUri: { optional: true, type: 'string', message: 'redirectUri option is required' },\n responseType: { optional: true, type: 'string', message: 'responseType option is required' },\n scope: { optional: true, type: 'string', message: 'scope option is required' },\n audience: { optional: true, type: 'string', message: 'audience option is required' }\n }\n );\n /* eslint-enable */\n\n popup = this.getPopupHandler(options);\n\n options = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'scope',\n 'domain',\n 'audience',\n '_csrf',\n 'state',\n '_instate',\n 'nonce'\n ])\n .with(objectHelper.blacklist(options, ['popupHandler']));\n\n params = objectHelper.pick(options, ['clientID', 'domain']);\n params.options = objectHelper.toSnakeCase(\n objectHelper.pick(options, ['password', 'connection', 'state', 'scope', '_csrf', 'device'])\n );\n params.options.username = options.username || options.email;\n\n url = urljoin(this.baseOptions.rootUrl, 'sso_dbconnection_popup', options.clientID);\n relayUrl = urljoin(this.baseOptions.rootUrl, 'relay.html');\n\n return popup.load(url, relayUrl, { params: params }, responseHandler(cb));\n};\n\n/**\n * Verifies the passwordless TOTP and redirects to finish the passwordless transaction\n *\n * @method passwordlessVerify\n * @param {Object} options\n * @param {String} options.type `sms` or `email`\n * @param {String} options.phoneNumber only if type = sms\n * @param {String} options.email only if type = email\n * @param {String} options.connection the connection name\n * @param {String} options.verificationCode the TOTP code\n * @param {Function} cb\n */\nPopup.prototype.passwordlessVerify = function(options, cb) {\n var _this = this;\n return this.client.passwordless.verify(\n objectHelper.blacklist(options, ['popupHandler']),\n function(err) {\n if (err) {\n return cb(err);\n }\n\n options.username = options.phoneNumber || options.email;\n options.password = options.verificationCode;\n\n delete options.email;\n delete options.phoneNumber;\n delete options.verificationCode;\n delete options.type;\n\n _this.client.loginWithResourceOwner(options, cb);\n }\n );\n};\n\n/**\n * Signs up a new user and automatically logs the user in after the signup.\n *\n * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n * you should use {@link authorize} or {@link signupAndAuthorize}.\n *\n * @method signupAndLogin\n * @param {Object} options\n * @param {String} options.email user email address\n * @param {String} options.password user password\n * @param {String} options.connection name of the connection where the user will be created\n * @param {credentialsCallback} cb\n */\nPopup.prototype.signupAndLogin = function(options, cb) {\n var _this = this;\n\n // Preload popup to avoid the browser to block it since the login happens later\n var popupHandler = this.getPopupHandler(options, true);\n options.popupHandler = popupHandler;\n\n return this.client.dbConnection.signup(\n objectHelper.blacklist(options, ['popupHandler']),\n function(err) {\n if (err) {\n if (popupHandler._current_popup) {\n popupHandler._current_popup.kill();\n }\n return cb(err);\n }\n _this.loginWithCredentials(options, cb);\n }\n );\n};\n\nmodule.exports = Popup;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/web-auth/popup.js\n// module id = 58\n// module chunks = 0","var UsernamePassword = require('./username-password');\nvar objectHelper = require('../helper/object');\nvar Warn = require('../helper/warn');\nvar assert = require('../helper/assert');\n\nfunction Redirect(client, options) {\n this.baseOptions = options;\n this.client = client;\n\n this.warn = new Warn({\n disableWarnings: !!options._disableDeprecationWarnings\n });\n}\n\n/**\n * @callback credentialsCallback\n * @param {Error} [err] error returned by Auth0 with the reason of the Auth failure\n * @param {Object} [result] result of the AuthN request\n * @param {String} result.accessToken token that can be used with {@link userinfo}\n * @param {String} [result.idToken] token that identifies the user\n * @param {String} [result.refreshToken] token that can be used to get new access tokens from Auth0. Note that not all clients can request them or the resource server might not allow them.\n */\n\n/**\n * Performs authentication with username/email and password with a database connection\n *\n * This method is not compatible with API Auth so if you need to fetch API tokens with audience\n * you should use {@link authorize} or {@link login}.\n *\n * @method loginWithCredentials\n * @param {Object} options\n * @param {String} [options.redirectUri] url that the Auth0 will redirect after Auth with the Authorization Response\n * @param {String} [options.responseType] type of the response used. It can be any of the values `code` and `token`\n * @param {String} [options.responseMode] how the AuthN response is encoded and redirected back to the client. Supported values are `query` and `fragment`\n * @param {String} [options.scope] scopes to be requested during AuthN. e.g. `openid email`\n * @param {credentialsCallback} cb\n */\nRedirect.prototype.loginWithCredentials = function(options, cb) {\n var usernamePassword;\n\n var params = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'redirectUri',\n 'tenant',\n 'responseType',\n 'responseMode',\n 'scope',\n 'audience',\n '_csrf',\n 'state',\n '_instate',\n 'nonce'\n ])\n .with(options);\n\n assert.check(\n params,\n { type: 'object', message: 'options parameter is not valid' },\n {\n responseType: { type: 'string', message: 'responseType option is required' }\n }\n );\n\n usernamePassword = new UsernamePassword(this.baseOptions);\n return usernamePassword.login(params, function(err, data) {\n if (err) {\n return cb(err);\n }\n return usernamePassword.callback(data);\n });\n};\n\n/**\n * Signs up a new user and automatically logs the user in after the signup.\n *\n * @method signupAndLogin\n * @param {Object} options\n * @param {String} options.email user email address\n * @param {String} options.password user password\n * @param {String} options.connection name of the connection where the user will be created\n * @param {credentialsCallback} cb\n */\nRedirect.prototype.signupAndLogin = function(options, cb) {\n var _this = this;\n return this.client.dbConnection.signup(options, function(err) {\n if (err) {\n return cb(err);\n }\n return _this.loginWithCredentials(options, cb);\n });\n};\n\nmodule.exports = Redirect;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/web-auth/redirect.js\n// module id = 59\n// module chunks = 0","var IframeHandler = require('../helper/iframe-handler');\n\nfunction SilentAuthenticationHandler(options) {\n this.authenticationUrl = options.authenticationUrl;\n this.timeout = options.timeout || 60 * 1000;\n this.handler = null;\n this.postMessageDataType = options.postMessageDataType || false;\n}\n\nSilentAuthenticationHandler.create = function(options) {\n return new SilentAuthenticationHandler(options);\n};\n\nSilentAuthenticationHandler.prototype.login = function(usePostMessage, callback) {\n this.handler = new IframeHandler({\n auth0: this.auth0,\n url: this.authenticationUrl,\n eventListenerType: usePostMessage ? 'message' : 'load',\n callback: this.getCallbackHandler(callback, usePostMessage),\n timeout: this.timeout,\n eventValidator: this.getEventValidator(),\n timeoutCallback: function() {\n callback(null, '#error=timeout&error_description=Timeout+during+authentication+renew.');\n },\n usePostMessage: usePostMessage || false\n });\n\n this.handler.init();\n};\n\nSilentAuthenticationHandler.prototype.getEventValidator = function() {\n var _this = this;\n return {\n isValid: function(eventData) {\n switch (eventData.event.type) {\n case 'message':\n // Default behaviour, return all message events.\n if (_this.postMessageDataType === false) {\n return true;\n }\n\n return (\n eventData.event.data.type && eventData.event.data.type === _this.postMessageDataType\n );\n\n case 'load': // Fall through to default\n default:\n return true;\n }\n }\n };\n};\n\nSilentAuthenticationHandler.prototype.getCallbackHandler = function(callback, usePostMessage) {\n return function(eventData) {\n var callbackValue;\n if (!usePostMessage) {\n callbackValue = eventData.sourceObject.contentWindow.location.hash;\n } else if (typeof eventData.event.data === 'object' && eventData.event.data.hash) {\n callbackValue = eventData.event.data.hash;\n } else {\n callbackValue = eventData.event.data;\n }\n callback(null, callbackValue);\n };\n};\n\nmodule.exports = SilentAuthenticationHandler;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/web-auth/silent-authentication-handler.js\n// module id = 60\n// module chunks = 0","var urljoin = require('url-join');\n\nvar objectHelper = require('../helper/object');\nvar RequestBuilder = require('../helper/request-builder');\nvar responseHandler = require('../helper/response-handler');\nvar windowHelper = require('../helper/window');\n\nfunction UsernamePassword(options) {\n this.baseOptions = options;\n this.request = new RequestBuilder(options);\n}\n\nUsernamePassword.prototype.login = function(options, cb) {\n var url;\n var body;\n\n url = urljoin(this.baseOptions.rootUrl, 'usernamepassword', 'login');\n\n options.username = options.username || options.email; // eslint-disable-line\n\n options = objectHelper.blacklist(options, ['email']); // eslint-disable-line\n\n body = objectHelper\n .merge(this.baseOptions, [\n 'clientID',\n 'redirectUri',\n 'tenant',\n 'responseType',\n 'responseMode',\n 'scope',\n 'audience'\n ])\n .with(options);\n\n body = objectHelper.toSnakeCase(body, ['auth0Client']);\n\n return this.request.post(url).send(body).end(responseHandler(cb));\n};\n\nUsernamePassword.prototype.callback = function(formHtml) {\n var div;\n var form;\n var _document = windowHelper.getDocument();\n\n div = _document.createElement('div');\n div.innerHTML = formHtml;\n form = _document.body.appendChild(div).children[0];\n\n form.submit();\n};\n\nmodule.exports = UsernamePassword;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/web-auth/username-password.js\n// module id = 61\n// module chunks = 0"],"sourceRoot":".."} \ No newline at end of file diff --git a/src/app/src/app.html b/src/app/src/app.html deleted file mode 100644 index 29a151b..0000000 --- a/src/app/src/app.html +++ /dev/null @@ -1,36 +0,0 @@ - \ No newline at end of file diff --git a/src/app/src/app.ts b/src/app/src/app.ts deleted file mode 100644 index 1bf737f..0000000 --- a/src/app/src/app.ts +++ /dev/null @@ -1,80 +0,0 @@ -import {Router, RouterConfiguration} from "aurelia-router" -import {EventAggregator} from "aurelia-event-aggregator" -import {inject} from "aurelia-framework" -import {HttpClient} from "aurelia-fetch-client" -import {PageTitle} from "./messages" -import {Auth0Lock} from "auth0-lock" - -@inject(EventAggregator, HttpClient) -export class App { - router: Router; - pageTitle: string; - - lock = new Auth0Lock('Of2s0RQCQ3mt3dwIkOBY5h85J9sXbF2n', 'djs-consulting.auth0.com', { - oidcConformant: true, - autoclose: true, - auth: { - redirectUrl: "http://localhost:8080/user/log-on", - responseType: 'token id_token', - audience: `https://djs-consulting.auth0.com/userinfo`, - params: { - scope: 'openid' - } - } - }) - - private setSession(authResult): void { - // Set the time that the access token will expire at - const expiresAt = JSON.stringify((authResult.expiresIn * 1000) + new Date().getTime()) - localStorage.setItem('access_token', authResult.accessToken) - localStorage.setItem('id_token', authResult.idToken) - localStorage.setItem('expires_at', expiresAt) - } - - public logoff(): void { - // Remove tokens and expiry time from localStorage - localStorage.removeItem('access_token') - localStorage.removeItem('id_token') - localStorage.removeItem('expires_at') - // Go back to the home route - this.router.navigateToRoute("") - } - - public isAuthenticated(): boolean { - // Check whether the current time is past the - // access token's expiry time - const expiresAt = JSON.parse(localStorage.getItem('expires_at')) - return new Date().getTime() < expiresAt - } - - constructor(private ea: EventAggregator, private http: HttpClient) { - this.ea.subscribe(PageTitle, msg => this.pageTitle = msg.title) - var self = this - this.lock.on('authenticated', (authResult) => { - if (authResult && authResult.accessToken && authResult.idToken) { - this.setSession(authResult) - this.router.navigateToRoute("") - } - }); - this.lock.on('authorization_error', (err) => { - this.router.navigateToRoute("") - console.log(err) - alert(`Error: ${err.error}. Check the console for further details.`) - }); - } - - configureRouter(config: RouterConfiguration, router: Router){ - config.title = "myPrayerJournal" - config.options.pushState = true - config.options.root = "/" - config.map([ - { route: "", moduleId: "home", name: "home", title: "Welcome" } - ]) - - this.router = router - } - - public logon() { - this.lock.show() - } -} \ No newline at end of file diff --git a/src/app/src/environment.ts b/src/app/src/environment.ts deleted file mode 100644 index 3495e9a..0000000 --- a/src/app/src/environment.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - debug: true, - testing: true -}; diff --git a/src/app/src/home.html b/src/app/src/home.html deleted file mode 100644 index 631b519..0000000 --- a/src/app/src/home.html +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/src/app/src/home.ts b/src/app/src/home.ts deleted file mode 100644 index 7e85b29..0000000 --- a/src/app/src/home.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {inject} from 'aurelia-framework'; -import {EventAggregator} from "aurelia-event-aggregator" -import {PageTitle} from "./messages" - -@inject(EventAggregator) -export class Home { - constructor(private ea: EventAggregator) { - this.ea.publish(new PageTitle("Welcome to myPrayerJournal")); - } -} \ No newline at end of file diff --git a/src/app/src/lib/lock.min.js b/src/app/src/lib/lock.min.js deleted file mode 100644 index a0ddd0c..0000000 --- a/src/app/src/lib/lock.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * lock v10.16.0 - * - * Author: Auth0 (http://auth0.com) - * Date: 5/8/2017, 8:23:20 PM - * License: MIT - * - */ -!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=366)}([function(t,e,n){"use strict";t.exports=n(26)},function(t,e,n){"use strict";function r(t,e,n,r,i,o){var a=jt(t,at.a.fromJS({clientBaseUrl:z(r,n),tenantBaseUrl:v(r,n),languageBaseUrl:b(r,n),auth:m(r),clientID:e,domain:n,emitEventFn:o,hookRunner:i,useTenantInfo:r.__useTenantInfo||!1,oidcConformant:r.oidcConformant||!1,hashCleanup:r.hashCleanup!==!1,allowedConnections:at.a.fromJS(r.allowedConnections||[]),ui:L(t,r),defaultADUsernameFromEmailPrefix:r.defaultADUsernameFromEmailPrefix!==!1,prefill:r.prefill||{}}));return a=lt.initI18n(a)}function i(t){return t.get("id")}function o(t){return Dt(t,"clientID")}function a(t){return Dt(t,"domain")}function s(t){return Dt(t,"clientBaseUrl")}function u(t){return Dt(t,"tenantBaseUrl")}function c(t){return Dt(t,"useTenantInfo")}function l(t){return Dt(t,"oidcConformant")}function M(t){return Dt(t,"languageBaseUrl")}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t=wt(t,"submitting",e),t=D(t),t=n&&!e?d(t,n):f(t)}function g(t){return mt(t,"submitting",!1)}function d(t,e){return wt(t,"globalError",e)}function h(t){return mt(t,"globalError","")}function f(t){return zt(t,"globalError")}function y(t,e){return wt(t,"globalSuccess",e)}function N(t){return mt(t,"globalSuccess","")}function D(t){return zt(t,"globalSuccess")}function j(t){return mt(t,"render",!1)}function I(t){return zt(t,"render")}function L(t,e){var r=!e.container&&(void 0===e.closable||!!e.closable),i=e.theme||{},o=i.labeledSubmitButton,a=i.hideMainScreenTitle,s=i.logo,u=i.primaryColor,c=i.authButtons,l=null!==e.avatar,M=e.avatar&&"function"==typeof e.avatar.url&&"function"==typeof e.avatar.displayName&&e.avatar,p=M||gt;return new at.a.fromJS({containerID:e.container||"auth0-lock-container-"+t,appendContainer:!e.container,autoclose:void 0!==e.autoclose&&(r&&e.autoclose),autofocus:void 0===e.autofocus?!(e.container||n.i(st.a)()):!!e.autofocus,avatar:l,avatarProvider:p,logo:"string"==typeof s?s:void 0,closable:r,hideMainScreenTitle:!!a,labeledSubmitButton:void 0===o||!!o,language:void 0===e.language?"en":pt()(e.language||"").toLowerCase(),dict:"object"===yt(e.languageDictionary)?e.languageDictionary:{},disableWarnings:void 0!==e.disableWarnings&&!!e.disableWarnings,mobile:void 0!==e.mobile&&!!e.mobile,popupOptions:void 0===e.popupOptions?{}:e.popupOptions,primaryColor:"string"==typeof u?u:void 0,rememberLastLogin:void 0===e.rememberLastLogin||!!e.rememberLastLogin,authButtonsTheme:"object"===(void 0===c?"undefined":yt(c))?c:{}})}function m(t){var e=t.auth||{},n=e.audience,r=e.connectionScopes,i=e.params,o=e.autoParseHash,a=e.redirect,s=e.redirectUrl,u=e.responseMode,c=e.responseType,l=e.sso,M=e.state,p=e.nonce,g=t.oidcConformant;if(n="string"==typeof n?n:void 0,r="object"===(void 0===r?"undefined":yt(r))?r:{},i="object"===(void 0===i?"undefined":yt(i))?i:{},s="string"==typeof s&&s?s:null,o="boolean"!=typeof o||o,a="boolean"!=typeof a||a,u="string"==typeof u?u:void 0,M="string"==typeof M?M:void 0,p="string"==typeof p?p:void 0,c="string"==typeof c?c:s?"code":"token",s=s||window.location.href,l="boolean"!=typeof l||l,g||"openid profile"!==pt()(i.scope||"")||O(t,"Usage of scope 'openid profile' is not recommended. See https://auth0.com/docs/scopes for more details."),g&&!a&&c.indexOf("id_token")>-1)throw new Error("It is not possible to request an 'id_token' while using popup mode.");if(!g&&n)throw new Error("It is not possible to use the `auth.audience` option when the `oidcConformant` flag is set to false");return g||i.scope||(i.scope="openid"),at.a.fromJS({audience:n,connectionScopes:r,params:i,autoParseHash:o,redirect:a,redirectUrl:s,responseMode:u,responseType:c,sso:l,state:M,nonce:p})}function w(t,e){return at.a.fromJS(e).merge(Dt(t,"auth")).toJS()}function z(t,e){if(t.clientBaseUrl&&"string"==typeof t.clientBaseUrl)return t.clientBaseUrl;if(t.configurationBaseUrl&&"string"==typeof t.configurationBaseUrl)return t.configurationBaseUrl;if(t.assetsUrl&&"string"==typeof t.assetsUrl)return t.assetsUrl;var r="https://"+e,i=n.i(ct.a)(r).hostname,o=".auth0.com";if(n.i(ut.a)(i,o)){var a=i.split(".");return a.length>3?"https://cdn."+a[a.length-3]+o:"https://cdn.auth0.com"}return r}function v(t,e){if(t.configurationBaseUrl&&"string"==typeof t.configurationBaseUrl)return it()(t.configurationBaseUrl,"info-v1.js");if(t.assetsUrl&&"string"==typeof t.assetsUrl)return t.assetsUrl;var e,r="https://"+e,i=n.i(ct.a)(r).hostname,o=".auth0.com",a="https://cdn.auth0.com",s=i.split("."),u=s[0];return n.i(ut.a)(i,o)?(e=s.length>3?"https://cdn."+s[s.length-3]+o:a,it()(e,"tenants","v1",u+".js")):it()(r,"info-v1.js")}function b(t,e){return t.languageBaseUrl&&"string"==typeof t.languageBaseUrl?t.languageBaseUrl:t.assetsUrl&&"string"==typeof t.assetsUrl?t.assetsUrl:"https://cdn.auth0.com"}function C(t){return wt(t,"render",!0)}function T(t,e){return wt(t,"loggedIn",e)}function E(t){return mt(t,"loggedIn",!1)}function k(t){return Dt(t,"defaultADUsernameFromEmailPrefix",!0)}function x(t){return Dt(t,"prefill",{})}function O(t,e){(ot.Map.isMap(t)?!Ot.disableWarnings(t):!t.disableWarnings)&&console&&console.warn&&console.warn(e)}function S(t,e){(ot.Map.isMap(t)?!Ot.disableWarnings(t):!t.disableWarnings)&&console&&console.error&&console.error(e)}function A(t){return mt(t,"allowedConnections")||Dt(t,"allowedConnections")}function U(t){for(var e=arguments.length,r=Array(e>2?e-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:void 0;if(1===arguments.length)return mt(t,"connections",n.i(ot.Map)()).filter(function(t,e){return"unknown"!==e}).valueSeq().flatten(!0);var a=mt(t,["connections",o],n.i(ot.List)());return r.length>0?a.filter(function(t){return~r.indexOf(t.get("strategy"))}):a}function _(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length,r=Array(n>2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:void 0,n=U(t);return 1===n.count()&&(!e||n.getIn([0,"type"])===e)}function Q(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=U(t).count(),r=arguments.length,i=Array(r>2?r-2:0),o=2;o0&&n===a}function B(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length,r=Array(n>2?n-2:0),i=2;i0}function P(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0}).sort(function(t,e){return r(t)-r(e)})}))}function H(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i2?n-2:0),i=2;i3&&void 0!==arguments[3]?arguments[3]:function(t){return z()(t).length>0},a=t.getIn(["field",e,"value"]),s=t.getIn(["field",e,"showInvalid"],!1),u=arguments.length,c=Array(u>4?u-4:0),l=4;l2?r-2:0),o=2;o2&&void 0!==arguments[2]?arguments[2]:new m.Map({});return t.getIn(["field",e],n)}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return g(t,e).get("value",n)}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return g(t,e).get("label",n)}function f(t){return d(t,"email")}function y(t){return d(t,"password")}function N(t){return d(t,"username")}function D(t){return!!t.getIn(["field","selecting"])}function j(t){var e=t.getIn(["field","selecting","name"]);return D(t)?L.a.createElement(v.a,{model:t,name:e,icon:t.getIn(["field","selecting","icon"]),iconUrl:t.getIn(["field","selecting","iconUrl"]),items:t.getIn(["field",e,"options"])}):null}var I=n(0),L=n.n(I),m=n(9),w=(n.n(m),n(35)),z=n.n(w),v=n(217),b=n(1);e.g=r,e.f=o,e.h=a,e.c=s,e.o=u,e.k=c,e.d=l,e.a=M,e.b=p,e.m=g,e.e=d,e.n=h,e.i=f,e.j=y,e.p=N,e.l=j;var C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:T(t)}function n(t){return a(t)?t:E(t)}function r(t){return s(t)?t:k(t)}function i(t){return o(t)&&!u(t)?t:x(t)}function o(t){return!(!t||!t[cn])}function a(t){return!(!t||!t[ln])}function s(t){return!(!t||!t[Mn])}function u(t){return a(t)||s(t)}function c(t){return!(!t||!t[pn])}function l(t){return t.value=!1,t}function M(t){t&&(t.value=!0)}function p(){}function g(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?d(t)+e:e}function f(){return!0}function y(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function N(t,e){return j(t,e,0)}function D(t,e){return j(t,e,e)}function j(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function I(t){this.next=t}function L(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function m(){return{value:void 0,done:!0}}function w(t){return!!b(t)}function z(t){return t&&"function"==typeof t.next}function v(t){var e=b(t);return e&&e.call(t)}function b(t){var e=t&&(mn&&t[mn]||t[wn]);if("function"==typeof e)return e}function C(t){return t&&"number"==typeof t.length}function T(t){return null===t||void 0===t?Y():o(t)?t.toSeq():P(t)}function E(t){return null===t||void 0===t?Y().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():Q(t)}function k(t){return null===t||void 0===t?Y():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():B(t)}function x(t){return(null===t||void 0===t?Y():o(t)?a(t)?t.entrySeq():t:B(t)).toSetSeq()}function O(t){this._array=t,this.size=t.length}function S(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function A(t){this._iterable=t,this.size=t.length||t.size}function U(t){this._iterator=t,this._iteratorCache=[]}function _(t){return!(!t||!t[vn])}function Y(){return bn||(bn=new O([]))}function Q(t){var e=Array.isArray(t)?new O(t).fromEntrySeq():z(t)?new U(t).fromEntrySeq():w(t)?new A(t).fromEntrySeq():"object"==typeof t?new S(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function B(t){var e=G(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function P(t){var e=G(t)||"object"==typeof t&&new S(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function G(t){return C(t)?new O(t):z(t)?new U(t):w(t)?new A(t):void 0}function R(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(e(s[1],r?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,n)}function Z(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new I(function(){var t=i[n?o-a:a];return a++>o?m():L(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function H(t,e){return e?W(e,t,"",{"":t}):V(t)}function W(t,e,n,r){return Array.isArray(e)?t.call(r,n,k(e).map(function(n,r){return W(t,n,r,e)})):F(e)?t.call(r,n,E(e).map(function(n,r){return W(t,n,r,e)})):e}function V(t){return Array.isArray(t)?k(t).map(V).toList():F(t)?E(t).map(V).toMap():t}function F(t){return t&&(t.constructor===Object||void 0===t.constructor)}function J(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function q(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&J(i[1],t)&&(n||J(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var l=t;t=e,e=l}var M=!0,p=e.__iterate(function(e,r){if(n?!t.has(e):i?!J(e,t.get(r,yn)):!J(t.get(r,yn),e))return M=!1,!1});return M&&t.size===p}function X(t,e){if(!(this instanceof X))return new X(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Cn)return Cn;Cn=this}}function K(t,e){if(!t)throw new Error(e)}function $(t,e,n){if(!(this instanceof $))return new $(t,e,n);if(K(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&((t=t.valueOf())===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)t/=4294967295,n^=t;return it(n)}if("string"===e)return t.length>_n?at(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ut(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function at(t){var e=Bn[t];return void 0===e&&(e=st(t),Qn===Yn&&(Qn=0,Bn={}),Qn++,Bn[t]=e),e}function st(t){for(var e=0,n=0;n0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function lt(t){K(t!==1/0,"Cannot perform this action with an infinite size.")}function Mt(t){return null===t||void 0===t?Lt():pt(t)&&!c(t)?t:Lt().withMutations(function(e){var r=n(t);lt(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function pt(t){return!(!t||!t[Pn])}function gt(t,e){this.ownerID=t,this.entries=e}function dt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function ht(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function ft(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function yt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Nt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&jt(t._root)}function Dt(t,e){return L(t,e[0],e[1])}function jt(t,e){return{node:t,index:0,__prev:e}}function It(t,e,n,r){var i=Object.create(Gn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Lt(){return Rn||(Rn=It(0))}function mt(t,e,n){var r,i;if(t._root){var o=l(Nn),a=l(Dn);if(r=wt(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===yn?-1:1:0)}else{if(n===yn)return t;i=1,r=new gt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?It(i,r):Lt()}function wt(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===yn?t:(M(s),M(a),new yt(e,r,[i,o]))}function zt(t){return t.constructor===yt||t.constructor===ft}function vt(t,e,n,r,i){if(t.keyHash===r)return new ft(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&fn,s=(0===n?r:r>>>n)&fn;return new dt(e,1<>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new ht(t,o+1,a)}function Et(t,e,r){for(var i=[],a=0;a>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Ut(t,e,n,r){var i=r?t:g(t);return i[e]=n,i}function _t(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),a=0,s=0;s0&&io?0:o-n,c=a-n;return c>hn&&(c=hn),function(){if(i===c)return qn;var t=e?--c:i++;return r&&r[t]}}function i(t,r,i){var s,u=t&&t.array,c=i>o?0:o-i>>r,l=1+(a-i>>r);return l>hn&&(l=hn),function(){for(;;){if(s){var t=s();if(t!==qn)return t;s=null}if(c===l)return qn;var o=e?--l:c++;s=n(u&&u[o],r-dn,i+(o<=t.size||e<0)return t.withMutations(function(t){e<0?Jt(t,e).set(0,n):Jt(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=l(Dn);return e>=Xt(t._capacity)?r=Wt(r,t.__ownerID,0,e,n,o):i=Wt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Rt(t._origin,t._capacity,t._level,i,r):t}function Wt(t,e,n,r,i,o){var a=r>>>n&fn,s=t&&a0){var c=t&&t.array[a],l=Wt(c,e,n-dn,r,i,o);return l===c?t:(u=Vt(t,e),u.array[a]=l,u)}return s&&t.array[a]===i?t:(M(o),u=Vt(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Vt(t,e){return e&&t&&e===t.ownerID?t:new Pt(t?t.array.slice():[],e)}function Ft(t,e){if(e>=Xt(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&fn],r-=dn;return n}}function Jt(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new p,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,c=t._root,l=0;a+l<0;)c=new Pt(c&&c.array.length?[void 0,c]:[],r),u+=dn,l+=1<=1<M?new Pt([],r):d;if(d&&g>M&&adn;y-=dn){var N=M>>>y&fn;f=f.array[N]=Vt(f.array[N],r)}f.array[M>>>dn&fn]=d}if(s=g)a-=g,s-=g,u=dn,c=null,h=h&&h.removeBefore(r,0,a);else if(a>i||g>>u&fn;if(D!==g>>>u&fn)break;D&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ga&&(a=c.size),o(u)||(c=c.map(function(t){return H(t)})),i.push(c)}return a>t.size&&(t=t.setSize(a)),Ot(t,e,i)}function Xt(t){return t>>dn<=hn&&a.size>=2*o.size?(i=a.filter(function(t,e){return void 0!==t&&s!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):te(r,i)}function re(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function se(t){var e=Ce(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Te,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return e(n,t,r)!==!1},n)},e.__iteratorUncached=function(e,n){if(e===Ln){var r=t.__iterator(e,n);return new I(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===In?jn:In,n)},e}function ue(t,e,n){var r=Ce(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,yn);return o===yn?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,a){return r(e.call(n,t,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(Ln,i);return new I(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return L(r,s,e.call(n,a[1],s,t),i)})},r}function ce(t,e){var n=Ce(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Te,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function le(t,e,n,r){var i=Ce(t);return r&&(i.has=function(r){var i=t.get(r,yn);return i!==yn&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,yn);return o!==yn&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(Ln,o),s=0;return new I(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(n,l,c,t))return L(i,r?c:s++,l,o)}})},i}function Me(t,e,n){var r=Mt().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}function pe(t,e,n){var r=a(t),i=(c(t)?Kt():Mt()).asMutable();t.__iterate(function(o,a){i.update(e.call(n,o,a,t),function(t){return t=t||[],t.push(r?[a,o]:o),t})});var o=be(t);return i.map(function(e){return we(t,o(e))})}function ge(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),y(e,n,i))return t;var o=N(e,i),a=D(n,i);if(o!==o||a!==a)return ge(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var c=Ce(t);return c.size=0===s?s:t.size&&s||void 0,!r&&_(t)&&s>=0&&(c.get=function(e,n){return e=h(this,e),e>=0&&es)return m();var t=i.next();return r||e===In?t:e===jn?L(e,u-1,void 0,t):L(e,u-1,t.value[1],t)})},c}function de(t,e,n){var r=Ce(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(Ln,i),s=!0;return new I(function(){if(!s)return m();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(n,c,u,o)?r===Ln?t:L(r,u,c,t):(s=!1,m())})},r}function he(t,e,n,r){var i=Ce(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return u++,i(t,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(Ln,o),u=!0,c=0;return new I(function(){var t,o,l;do{if(t=s.next(),t.done)return r||i===In?t:i===jn?L(i,c++,void 0,t):L(i,c++,t.value[1],t);var M=t.value;o=M[0],l=M[1],u&&(u=e.call(n,l,o,a))}while(u);return i===Ln?t:L(i,o,l,t)})},i}function fe(t,e){var r=a(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?Q(t):B(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&a(u)||s(t)&&s(u))return u}var c=new O(i);return r?c=c.toKeyedSeq():s(t)||(c=c.toSetSeq()),c=c.flatten(!0),c.size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),c}function ye(t,e,n){var r=Ce(t);return r.__iterateUncached=function(r,i){function a(t,c){var l=this;t.__iterate(function(t,i){return(!e||c0}function me(t,n,r){var i=Ce(t);return i.size=new O(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(In,e),i=0;!(n=r.next()).done&&t(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),v(i?t.reverse():t)}),a=0,s=!1;return new I(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?m():L(t,a++,n.apply(null,e.map(function(t){return t.value})))})},i}function we(t,e){return _(t)?e:t.constructor(e)}function ze(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function ve(t){return lt(t.size),d(t)}function be(t){return a(t)?n:s(t)?r:i}function Ce(t){return Object.create((a(t)?E:s(t)?k:x).prototype)}function Te(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function Ee(t,e){return t>e?1:te?-1:0}function on(t){if(t.size===1/0)return 0;var e=c(t),n=a(t),r=e?1:0;return an(t.__iterate(n?e?function(t,e){r=31*r+sn(ot(t),ot(e))|0}:function(t,e){r=r+sn(ot(t),ot(e))|0}:e?function(t){r=31*r+ot(t)|0}:function(t){r=r+ot(t)|0}),r)}function an(t,e){return e=kn(e,3432918353),e=kn(e<<15|e>>>-15,461845907),e=kn(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=kn(e^e>>>16,2246822507),e=kn(e^e>>>13,3266489909),e=it(e^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var un=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=a,e.isIndexed=s,e.isAssociative=u,e.isOrdered=c,e.Keyed=n,e.Indexed=r,e.Set=i;var cn="@@__IMMUTABLE_ITERABLE__@@",ln="@@__IMMUTABLE_KEYED__@@",Mn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",gn="delete",dn=5,hn=1<r?m():L(t,i,n[e?r-i++:i++])})},t(S,E),S.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},S.prototype.has=function(t){return this._object.hasOwnProperty(t)},S.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(t(n[a],a,this)===!1)return o+1}return o},S.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new I(function(){var a=r[e?i-o:o];return o++>i?m():L(t,a,n[a])})},S.prototype[pn]=!0,t(A,k),A.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=v(n),i=0;if(z(r))for(var o;!(o=r.next()).done&&t(o.value,i++,this)!==!1;);return i},A.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=v(n);if(!z(r))return new I(m);var i=0;return new I(function(){var e=r.next();return e.done?e:L(t,i++,e.value)})},t(U,k),U.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return L(t,i,r[i++])})};var bn;t(X,k),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(t,e){return this.has(t)?this._value:e},X.prototype.includes=function(t){return J(this._value,t)},X.prototype.slice=function(t,e){var n=this.size;return y(t,e,n)?this:new X(this._value,D(e,n)-N(t,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(t){return J(this._value,t)?0:-1},X.prototype.lastIndexOf=function(t){return J(this._value,t)?this.size:-1},X.prototype.__iterate=function(t,e){for(var n=0;n=0&&e=0&&nn?m():L(t,o++,a)})},$.prototype.equals=function(t){return t instanceof $?this._start===t._start&&this._end===t._end&&this._step===t._step:q(this,t)};var Tn;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var En,kn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t|=0,e|=0;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},xn=Object.isExtensible,On=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Sn="function"==typeof WeakMap;Sn&&(En=new WeakMap);var An=0,Un="__immutablehash__";"function"==typeof Symbol&&(Un=Symbol(Un));var _n=16,Yn=255,Qn=0,Bn={};t(Mt,et),Mt.of=function(){var t=un.call(arguments,0);return Lt().withMutations(function(e){for(var n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},Mt.prototype.toString=function(){return this.__toString("Map {","}")},Mt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Mt.prototype.set=function(t,e){return mt(this,t,e)},Mt.prototype.setIn=function(t,e){return this.updateIn(t,yn,function(){return e})},Mt.prototype.remove=function(t){return mt(this,t,yn)},Mt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return yn})},Mt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Mt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=St(this,ke(t),e,n);return r===yn?void 0:r},Mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Lt()},Mt.prototype.merge=function(){return Et(this,void 0,arguments)},Mt.prototype.mergeWith=function(t){return Et(this,t,un.call(arguments,1))},Mt.prototype.mergeIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,Lt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},Mt.prototype.mergeDeep=function(){return Et(this,kt,arguments)},Mt.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return Et(this,xt(t),e)},Mt.prototype.mergeDeepIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,Lt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},Mt.prototype.sort=function(t){return Kt(je(this,t))},Mt.prototype.sortBy=function(t,e){return Kt(je(this,e,t))},Mt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Mt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},Mt.prototype.asImmutable=function(){return this.__ensureOwner()},Mt.prototype.wasAltered=function(){return this.__altered},Mt.prototype.__iterator=function(t,e){return new Nt(this,t,e)},Mt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Mt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?It(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Mt.isMap=pt;var Pn="@@__IMMUTABLE_MAP__@@",Gn=Mt.prototype;Gn[Pn]=!0,Gn[gn]=Gn.remove,Gn.removeIn=Gn.deleteIn,gt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o=Zn)return bt(t,u,r,i);var d=t&&t===this.ownerID,h=d?u:g(u);return p?s?c===l-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),d?(this.entries=h,this):new gt(t,h)}},dt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=1<<((0===t?e:e>>>t)&fn),o=this.bitmap;return 0==(o&i)?r:this.nodes[At(o&i-1)].get(t+dn,e,n,r)},dt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&fn,u=1<=Hn)return Tt(t,p,c,s,d);if(l&&!d&&2===p.length&&zt(p[1^M]))return p[1^M];if(l&&d&&1===p.length&&zt(d))return d;var h=t&&t===this.ownerID,f=l?d?c:c^u:c|u,y=l?d?Ut(p,M,d,h):Yt(p,M,h):_t(p,M,d,h);return h?(this.bitmap=f,this.nodes=y,this):new dt(t,f,y)},ht.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=(0===t?e:e>>>t)&fn,o=this.nodes[i];return o?o.get(t+dn,e,n,r):r},ht.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&fn,u=i===yn,c=this.nodes,l=c[s];if(u&&!l)return this;var M=wt(l,t,e+dn,n,r,i,o,a);if(M===l)return this;var p=this.count;if(l){if(!M&&--p=0&&t>>e&fn;if(r>=this.array.length)return new Pt([],t);var i,o=0===r;if(e>0){var a=this.array[r];if((i=a&&a.removeBefore(t,e-dn,n))===a&&o)return this}if(o&&!i)return this;var s=Vt(this,t);if(!o)for(var u=0;u>>e&fn;if(r>=this.array.length)return this;var i;if(e>0){var o=this.array[r];if((i=o&&o.removeAfter(t,e-dn,n))===o&&r===this.array.length-1)return this}var a=Vt(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Jn,qn={};t(Kt,Mt),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Kt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Kt.prototype.set=function(t,e){return ne(this,t,e)},Kt.prototype.remove=function(t){return ne(this,t,yn)},Kt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Kt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Kt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Kt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Kt.isOrderedMap=$t,Kt.prototype[pn]=!0,Kt.prototype[gn]=Kt.prototype.remove;var Xn;t(re,E),re.prototype.get=function(t,e){return this._iter.get(t,e)},re.prototype.has=function(t){return this._iter.has(t)},re.prototype.valueSeq=function(){return this._iter.valueSeq()},re.prototype.reverse=function(){var t=this,e=ce(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},re.prototype.map=function(t,e){var n=this,r=ue(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},re.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?ve(this):0,function(i){return t(i,e?--n:n++,r)}),e)},re.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(In,e),r=e?ve(this):0;return new I(function(){var i=n.next();return i.done?i:L(t,e?--r:r++,i.value,i)})},re.prototype[pn]=!0,t(ie,k),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(In,e),r=0;return new I(function(){var e=n.next();return e.done?e:L(t,r++,e.value,e)})},t(oe,x),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},oe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(In,e);return new I(function(){var e=n.next();return e.done?e:L(t,e.value,e.value,e)})},t(ae,E),ae.prototype.entrySeq=function(){return this._iter.toSeq()},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){ze(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(In,e);return new I(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){ze(r);var i=o(r);return L(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ie.prototype.cacheResult=re.prototype.cacheResult=oe.prototype.cacheResult=ae.prototype.cacheResult=Te,t(xe,et),xe.prototype.toString=function(){return this.__toString(Se(this)+" {","}")},xe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},xe.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},xe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Oe(this,Lt()))},xe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Se(this));if(this._map&&!this._map.has(t)){if(e===this._defaultValues[t])return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Oe(this,n)},xe.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Oe(this,e)},xe.prototype.wasAltered=function(){return this._map.wasAltered()},xe.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},xe.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Oe(this,e,t):(this.__ownerID=t,this._map=e,this)};var Kn=xe.prototype;Kn[gn]=Kn.remove,Kn.deleteIn=Kn.removeIn=Gn.removeIn,Kn.merge=Gn.merge,Kn.mergeWith=Gn.mergeWith,Kn.mergeIn=Gn.mergeIn,Kn.mergeDeep=Gn.mergeDeep,Kn.mergeDeepWith=Gn.mergeDeepWith,Kn.mergeDeepIn=Gn.mergeDeepIn,Kn.setIn=Gn.setIn,Kn.update=Gn.update,Kn.updateIn=Gn.updateIn,Kn.withMutations=Gn.withMutations,Kn.asMutable=Gn.asMutable,Kn.asImmutable=Gn.asImmutable,t(_e,rt),_e.of=function(){return this(arguments)},_e.fromKeys=function(t){return this(n(t).keySeq())},_e.prototype.toString=function(){return this.__toString("Set {","}")},_e.prototype.has=function(t){return this._map.has(t)},_e.prototype.add=function(t){return Qe(this,this._map.set(t,!0))},_e.prototype.remove=function(t){return Qe(this,this._map.remove(t))},_e.prototype.clear=function(){return Qe(this,this._map.clear())},_e.prototype.union=function(){var t=un.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Fe(t,e)},We.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;lt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Fe(e,n)},We.prototype.pop=function(){return this.slice(1)},We.prototype.unshift=function(){return this.push.apply(this,arguments)},We.prototype.unshiftAll=function(t){return this.pushAll(t)},We.prototype.shift=function(){return this.pop.apply(this,arguments)},We.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Je()},We.prototype.slice=function(t,e){if(y(t,e,this.size))return this;var n=N(t,this.size);if(D(e,this.size)!==this.size)return nt.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Fe(r,i)},We.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Fe(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},We.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&t(r.value,n++,this)!==!1;)r=r.next;return n},We.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new I(function(){if(r){var e=r.value;return r=r.next,L(t,n++,e)}return m()})},We.isStack=Ve;var ir="@@__IMMUTABLE_STACK__@@",or=We.prototype;or[ir]=!0,or.withMutations=Gn.withMutations,or.asMutable=Gn.asMutable,or.asImmutable=Gn.asImmutable,or.wasAltered=Gn.wasAltered;var ar;e.Iterator=I,qe(e,{toArray:function(){lt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new re(this,!0)},toMap:function(){return Mt(this.toKeyedSeq())},toObject:function(){lt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Kt(this.toKeyedSeq())},toOrderedSet:function(){return Ge(a(this)?this.valueSeq():this)},toSet:function(){return _e(a(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return We(a(this)?this.valueSeq():this)},toList:function(){return Qt(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return we(this,fe(this,un.call(arguments,0)))},includes:function(t){return this.some(function(e){return J(e,t)})},entries:function(){return this.__iterator(Ln)},every:function(t,e){lt(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return we(this,le(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return lt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){lt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(jn)},map:function(t,e){return we(this,ue(this,t,e))},reduce:function(t,e,n){lt(this.size);var r,i;return arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return we(this,ce(this,!0))},slice:function(t,e){return we(this,ge(this,t,e,!0))},some:function(t,e){return!this.every($e(t),e)},sort:function(t){return we(this,je(this,t))},values:function(){return this.__iterator(In)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return d(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return Me(this,t,e)},equals:function(t){return q(this,t)},entrySeq:function(){var t=this;if(t._cache)return new O(t._cache);var e=t.toSeq().map(Ke).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter($e(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(f)},flatMap:function(t,e){return we(this,Ne(this,t,e))},flatten:function(t){return we(this,ye(this,t,!0))},fromEntrySeq:function(){return new ae(this)},get:function(t,e){return this.find(function(e,n){return J(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=ke(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,yn):yn)===yn)return e}return r},groupBy:function(t,e){return pe(this,t,e)},has:function(t){return this.get(t,yn)!==yn},hasIn:function(t){return this.getIn(t,yn)!==yn},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return J(e,t)})},keySeq:function(){return this.toSeq().map(Xe).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ie(this,t)},maxBy:function(t,e){return Ie(this,e,t)},min:function(t){return Ie(this,t?tn(t):rn)},minBy:function(t,e){return Ie(this,e?tn(e):rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return we(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return we(this,he(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile($e(t),e)},sortBy:function(t,e){return we(this,je(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return we(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return we(this,de(this,t,e))},takeUntil:function(t,e){return this.takeWhile($e(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=e.prototype;sr[cn]=!0,sr[zn]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=en,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,qe(n,{flip:function(){return we(this,se(this))},mapEntries:function(t,e){var n=this,r=0;return we(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return we(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var ur=n.prototype;return ur[ln]=!0,ur[zn]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+en(t)},qe(r,{toKeyedSeq:function(){return new re(this,!1)},filter:function(t,e){return we(this,le(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return we(this,ce(this,!1))},slice:function(t,e){return we(this,ge(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=N(t,t<0?this.count():this.size);var r=this.slice(0,t);return we(this,1===n?r:r.concat(g(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return we(this,ye(this,t,!1))},get:function(t,e){return t=h(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=h(this,t))>=0&&(void 0!==this.size?this.size===1/0||t-1;return r||Q.warn(t,"The `"+e+"` option will be ignored, because it is not one of the following allowed values: "+n.map(function(t){return JSON.stringify(t)}).join(", ")+"."),r}function a(t,e){var n=void 0===t[e]||"string"==typeof t[e]&&Z()(t[e]).length>0;return n||Q.warn(t,"The `"+e+"` option will be ignored, because it is not a non-empty string."),n}function s(e,n){var r=void 0===e[n]||t.Array.isArray(e[n]);return r||Q.warn(e,"The `"+n+"` option will be ignored, because it is not an array."),r}function u(e){var r=e.additionalSignUpFields,u=e.defaultDatabaseConnection,l=e.forgotPasswordLink,M=e.loginAfterSignUp,p=e.mustAcceptTerms,g=e.signUpLink,d=e.usernameStyle,h=c(e),f=h.initialScreen,y=h.screens;return o(e,"usernameStyle",["email","username"])||(d=void 0),a(e,"defaultDatabaseConnection")||(u=void 0),a(e,"forgotPasswordLink")||(l=void 0),a(e,"signUpLink")||(g=void 0),i(e,"mustAcceptTerms")||(p=void 0),s(e,"additionalSignUpFields")?r&&(r=r.reduce(function(n,r){var i=r.icon,o=r.name,a=r.options,s=r.placeholder,u=r.prefill,c=r.type,l=r.validator,M=!0,p=["email","username","password"];("string"!=typeof o||!o.match(/^[a-zA-Z0-9_]+$/)||p.indexOf(o)>-1)&&(Q.warn(e,"Ignoring an element of `additionalSignUpFields` because it does not contain valid `name` property. Every element of `additionalSignUpFields` must be an object with a `name` property that is a non-empty string consisting of letters, numbers and underscores. The following names are reserved, and therefore, cannot be used: "+p.join(", ")+"."),M=!1),"string"==typeof s&&s||(Q.warn(e,"Ignoring an element of `additionalSignUpFields` because it does not contain a valid `placeholder` property. Every element of `additionalSignUpFields` must have a `placeholder` property that is a non-empty string."),M=!1),void 0==i||"string"==typeof i&&i||(Q.warn(e,"When provided, the `icon` property of an element of `additionalSignUpFields` must be a non-empty string."),i=void 0),void 0==u||"string"==typeof u&&u||"function"==typeof u||(Q.warn(e,"When provided, the `prefill` property of an element of `additionalSignUpFields` must be a non-empty string or a function."),u=void 0);var g=["select","text","checkbox"];return void 0==c||"string"==typeof c&&g.indexOf(c)!==-1||(Q.warn(e,'When provided, the `type` property of an element of `additionalSignUpFields` must be one of the following strings: "'+g.join('", "')+'".'),c=void 0),void 0!=l&&"select"===c&&(Q.warn(e,'Elements of `additionalSignUpFields` with a "select" `type` cannot specify a `validator` function, all of its `options` are assumed to be valid.'),l=void 0),void 0!=l&&"function"!=typeof l&&(Q.warn(e,"When provided, the `validator` property of an element of `additionalSignUpFields` must be a function."),l=void 0),void 0!=a&&"select"!=c&&(Q.warn(e,'The `options` property can only by provided for an element of `additionalSignUpFields` when its `type` equals to "select"'),a=void 0),(void 0!=a&&!t.Array.isArray(a)&&"function"!=typeof a||"select"===c&&void 0===a)&&(Q.warn(e,'Ignoring an element of `additionalSignUpFields` because it has a "select" `type` but does not specify an `options` property that is an Array or a function.'),M=!1),M?n.concat([{icon:i,name:o,options:a,placeholder:s,prefill:u,type:c,validator:l}]):n},[]),r=Y.a.fromJS(r).map(function(t){return t.filter(function(t){return void 0!==t})})):r=void 0,M=M!==!1,n.i(_.Map)({additionalSignUpFields:r,defaultConnectionName:u,forgotPasswordLink:l,initialScreen:f,loginAfterSignUp:M,mustAcceptTerms:p,screens:y,signUpLink:g,usernameStyle:d}).filter(function(t){return void 0!==t}).toJS()}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{allowLogin:!0,allowSignUp:!0,allowForgotPassword:!0,initialScreen:void 0},n=t.allowForgotPassword,r=t.allowLogin,a=t.allowSignUp,s=t.initialScreen,u=[];return(r===!0||!i(t,"allowLogin")&&e.allowLogin||void 0===r&&e.allowLogin)&&u.push("login"),(a===!0||!i(t,"allowSignUp")&&e.allowSignUp||void 0===a&&e.allowSignUp)&&u.push("signUp"),(n===!0||!i(t,"allowForgotPassword")&&e.allowForgotPassword||void 0===n&&e.allowForgotPassword)&&u.push("forgotPassword"),u.push("mfaLogin"),o(t,"initialScreen",u)||(s=void 0),void 0===s&&(s=e.initialScreen||u[0]),{initialScreen:s,screens:new _.List(u)}}function l(t,e){var n=c(e,{allowLogin:D(t).contains("login"),allowSignUp:D(t).contains("signUp"),allowForgotPassword:D(t).contains("forgotPassword"),initialScreen:F(t,"initialScreen")}),r=n.initialScreen,i=n.screens;return t=X(t,"initialScreen",r),t=X(t,"screens",i)}function M(t){var e=p(t);return e&&Q.findConnection(t,e)}function p(t){return F(t,"defaultConnectionName")}function g(t){return n.i(H.b)(t)||M(t)||Q.connection(t,"database")}function d(t){return(g(t)||n.i(_.Map)()).get("name")}function h(t){return F(t,"forgotPasswordLink",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")}function f(t){return F(t,"signUpLink",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")}function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t=Q.clearGlobalError(t),t=Q.clearGlobalSuccess(t),t=n.i(B.a)(t,r),t=n.i(B.b)(t,r),X(t,"screen",e)}function N(t){return[q(t,"screen"),j(t),"login","signUp","forgotPassword","mfaLogin"].filter(function(e){return b(t,e)})[0]}function D(t){return q(t,"screens")||F(t,"screens",new _.List)}function j(t){return q(t,"initialScreen")||F(t,"initialScreen")}function I(t,e){return j(t)===e}function L(t){return(g(t)||n.i(_.Map)()).toJS().requireUsername}function m(t){return Q.hasSomeConnections(t,"database")?L(t)?F(t,"usernameStyle","any"):"email":Q.hasSomeConnections(t,"enterprise")&&n.i(W.i)(t)?"username":"email"}function w(t){return"email"===m(t)}function z(t){return n.i(B.e)(t,w(t)?"email":"username")}function v(t){return L(t)||"username"===F(t,"usernameStyle","email")}function b(t,e){var r=(g(t)||n.i(_.Map)()).toJS(),i=r.allowForgot,o=r.allowSignup;return!(i===!1&&"forgotPassword"===e)&&!(o===!1&&"signUp"===e)&&D(t).contains(e)}function C(t){return F(t,"loginAfterSignUp")}function T(t){return(g(t)||n.i(_.Map)()).get("passwordPolicy","none")}function E(t){return F(t,"additionalSignUpFields",n.i(_.List)())}function k(t){return F(t,"mustAcceptTerms",!1)}function x(t){return!k(t)||q(t,"termsAccepted",!1)}function O(t){return X(t,"termsAccepted",!x(t))}function S(t){return E(t).reduce(function(t,e){return"select"===e.get("type")?A(t,e):U(t,e)},t)}function A(t,e){var r=e.get("name"),i=["additionalSignUpField",r],o=e.get("prefill"),a=e.get("options"),s="function"==typeof o?void 0:o||"",u="function"==typeof a?void 0:a,c=function(t){return void 0!==s&&void 0!==u?n.i(B.f)(t,r,Y.a.fromJS(u),s):t};return void 0===s&&(t=n.i(G.d)(t,i.concat("prefill"),{recoverResult:"",successFn:function(t,e){return s=e,c(t)},syncFn:function(t,e){return o(e)}})),void 0===u&&(t=n.i(G.d)(t,i.concat("options"),{successFn:function(t,e){return u=e,c(t)},syncFn:function(t,e){return a(e)}})),void 0!==s&&void 0!==u&&(t=n.i(B.f)(t,r,Y.a.fromJS(u),s)),t}function U(t,e){var r=e.get("name"),i=["additionalSignUpField",r,"prefill"],o=e.get("prefill"),a=e.get("validator"),s="function"==typeof o?void 0:o||"";return t=void 0===s?n.i(G.d)(t,i,{recoverResult:"",successFn:function(t,e){return n.i(B.g)(t,r,e,a)},syncFn:function(t,e){return o(e)}}):n.i(B.g)(t,r,s,a)}var _=n(9),Y=n.n(_),Q=n(1),B=n(8),P=n(20),G=n(46),R=n(35),Z=n.n(R),H=n(69),W=n(18);e.f=r,e.g=l,e.e=M,e.d=p,e.u=g,e.l=d,e.x=h,e.v=f,e.p=y,e.i=N,e.j=j,e.c=I,e.m=L,e.w=m,e.k=w,e.a=z,e.b=v,e.h=b,e.o=C,e.t=T,e.n=E,e.s=k,e.r=x,e.q=O;var V=n.i(P.a)(["database"]),F=V.get,J=V.initNS,q=V.tget,X=V.tset}).call(e,n(13))},function(t,e,n){"use strict";function r(t,e,n){i(t+"-"+e,function(t,r,i){var o=c(i,"lock",e);o!=c(r,"lock",e)&&n(o)})}function i(t,e){d.addWatch(t,e)}function o(){return d.swap.apply(d,arguments)}function a(t,e,n,r){for(var i=arguments.length,o=Array(i>4?i-4:0),a=4;a1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:0;return t.getIn([e,n])}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t.removeIn([e,n])}function M(t,e){return t.get(e,n.i(g.Map)()).toList()}var p=n(233),g=n(9);n.n(g);e.a=r,e.b=o,e.g=a,e.c=s,e.d=u,e.f=c,e.h=l,e.e=M;var d=n.i(p.a)(new g.Map({}))},function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i2?n-2:0),o=2;o3&&void 0!==arguments[3]?arguments[3]:"";Object.keys(n).forEach(function(i){e.hasOwnProperty(i)?"object"===I(n[i])&&s(t,e[i],n[i],""+r+i+"."):f.warn(t,"language does not have property "+r+i)})}function u(t,e,r){n.i(j.a)({method:"registerLanguageDictionary",url:f.languageBaseUrl(t)+"/js/lock/10.16.0/"+e+".js",check:function(t){return t&&t===e},cb:function(t,e,n){r(t,n)}})}function c(t,e){z[t]=g.a.fromJS(e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),M=n.n(l),p=n(9),g=n.n(p),d=n(105),h=(n.n(d),n(46)),f=n(1),y=n(20),N=n(219),D=n.n(N),j=n(77);e.str=r,e.html=i,e.group=o,e.initI18n=a;var I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L=n.i(y.a)(["i18n"]),m=L.get,w=L.set,z=[];c("en",D.a),n.i(j.b)({method:"registerLanguageDictionary",cb:c})},function(t,e,n){"use strict";var r=null;t.exports={debugTool:r}},function(t,e,n){var r,i;!function(o,a,s){void 0!==t&&t.exports?t.exports=s():(r=s,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i))}(0,0,function(){function t(t,e){return t=t.replace(/:\//g,"://"),t=t.replace(/([^:\s])\/+/g,"$1/"),t=t.replace(/\/(\?|&|#[^!])/g,"$1"),t=t.replace(/(\?.+)\?/g,"$1&")}return function(){var e=arguments,n={};return"object"==typeof arguments[0]&&(e=arguments[0],n=arguments[1]||{}),t([].slice.call(e,0).join("/"),n)}})},function(t,e,n){function r(t,e){return e.reduce(function(e,n){return t[n]&&(e[n]=t[n]),e},{})}function i(t,e){var n=[];for(var r in t)e.indexOf(r)===-1&&n.push(r);return n}function o(t){var e=[];for(var n in t)e.push(t[n]);return e}function a(){var t=o(arguments);return t.unshift({}),d.get().apply(void 0,t)}function s(t,e){return{base:e?r(t,e):t,with:function(t,e){return t=e?r(t,e):t,a(this.base,t)}}}function u(t,e){return Object.keys(t).reduce(function(n,r){return e.indexOf(r)===-1&&(n[r]=t[r]),n},{})}function c(t){for(var e,n="",r=0,i=!0,o=!0;r=65&&e<=90||!i&&e>=48&&e<=57?(n+="_",n+=t[r].toLowerCase()):n+=t[r].toLowerCase(),i=e>=48&&e<=57,o=e>=65&&e<=90,r++;return n}function l(t){var e=t.split("_");return e.reduce(function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)},e.shift())}function M(t,e){return"object"!=typeof t||g.isArray(t)||null===t?t:(e=e||[],Object.keys(t).reduce(function(n,r){return n[e.indexOf(r)===-1?c(r):r]=M(t[r]),n},{}))}function p(t,e){return"object"!=typeof t||g.isArray(t)||null===t?t:(e=e||[],Object.keys(t).reduce(function(n,r){return n[e.indexOf(r)===-1?l(r):r]=p(t[r]),n},{}))}var g=n(28),d=n(172);t.exports={toSnakeCase:M,toCamelCase:p,blacklist:u,merge:s,pick:r,getKeysNotIn:i,extend:a}},function(t,e,n){"use strict";function r(t,e){return k(t,m.a.fromJS(i(e)))}function i(t){var e=t.defaultEnterpriseConnection;return void 0!=e&&"string"!=typeof e&&(w.warn(options,"The `defaultEnterpriseConnection` option will be ignored, because it is not a string."),e=void 0),void 0===e?{}:{defaultConnectionName:e}}function o(t){var e=a(t);return e&&g(t,e)}function a(t){return E(t,"defaultConnectionName")}function s(t){if(j(t)){return u(t,x(t,"hrdEmail",""))||d(t)}return o(t)||g(t)}function u(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=n.i(v.a)(e);return!!i&&w.connections.apply(w,[t,"enterprise"].concat(r)).find(function(t){return t.get("domains").contains(i)})}function c(t,e){return!!u(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function l(t){return y(t)?w.connections(t,"enterprise").getIn([0,"domains",0]):n.i(v.a)(x(t,"hrdEmail"))}function M(t){return!p(t)&&w.hasOneConnection(t,"enterprise")?w.connections(t,"enterprise").get(0):null}function p(t){return w.hasSomeConnections(t,"enterprise","ad","auth0-adldap")}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return w.connections(t,"enterprise","ad","auth0-adldap").find(function(t){return t.get("domains").isEmpty()&&(!e||t.get("name")===e)})}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return w.connections(t,"enterprise","ad","auth0-adldap").find(function(t){return!e||t.get("name")===e})}function h(t){return void 0!==f(t)}function f(t){var e=t.getIn(["sso","connection"]),n=t.getIn(["sso","strategy"]);return e&&n&&m.a.Map({name:e,strategy:n})}function y(t){return p(t)&&1===w.connections(t).count()}function N(t,e){return c(t,e,["ad","auth0-adldap"])}function D(t,e){if(e){var r=w.defaultADUsernameFromEmailPrefix(t)?n.i(v.b)(e):e;t=n.i(b.a)(t,r,"username",!1),t=S(t,"hrdEmail",e)}else t=O(t,"hrdEmail");return S(t,"hrd",!!e)}function j(t){return x(t,"hrd",y(t))}function I(t,e){return!(n.i(v.c)(e)&&!w.hasSomeConnections(t,"database")&&!g(t)&&!n.i(C.b)(t,e))}var L=n(9),m=n.n(L),w=n(1),z=(n(8),n(20)),v=n(29),b=n(72),C=n(57);n(10),n(11);n.d(e,"a",function(){return U}),e.e=r,e.d=o,e.c=a,e.l=s,e.k=u,e.b=c,e.o=l,e.g=M,e.r=p,e.i=g,e.f=h,e.q=f,e.p=y,e.n=N,e.j=D,e.h=j,e.m=I;var T=n.i(z.a)(["enterprise"]),E=T.get,k=T.initNS,x=T.tget,O=T.tremove,S=T.tset,A=n.i(z.a)(["core"]),U=(A.tremove,A.tset,A.tget,{ad:"AD / LDAP",adfs:"ADFS","auth0-adldap":"AD/LDAP",custom:"Custom Auth","google-apps":"Google Apps",ip:"IP Address",mscrm:"Dynamics CRM",office365:"Office365",pingfederate:"Ping Federate",samlp:"SAML",sharepoint:"SharePoint Apps",waad:"Windows Azure AD"})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=(n(1),n(14)),o=n(10),a=function(){function t(e){r(this,t),this.name=e}return t.prototype.backHandler=function(){return null},t.prototype.escHandler=function(){return null},t.prototype.submitButtonLabel=function(t){return i.str(t,["submitLabel"])},t.prototype.isFirstScreen=function(t){var e=n.i(o.j)(t),r=this.name.split("."),i=r[1]||r[0];return!("signUp"!==i||!n.i(o.h)(t,"login"))||[e,"loading","lastLogin"].indexOf(i)!==-1},t.prototype.getTitle=function(t){return this.isFirstScreen(t)?i.str(t,"title"):this.getScreenTitle(t)},t.prototype.getScreenTitle=function(t){return i.str(t,"title")},t.prototype.submitHandler=function(){return null},t.prototype.isSubmitDisabled=function(t){return!1},t.prototype.renderAuxiliaryPane=function(){return null},t.prototype.renderTabs=function(){return!1},t.prototype.renderTerms=function(){return null},t}();e.a=a},function(t,e,n){"use strict";function r(t){function e(t,e){return t.concat("object"===(void 0===e?"undefined":o(e))?e:[e])}function n(t){return function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return n.getIn(e(t,r),i)}}function r(t){return function(n,r,i){return n.setIn(e(t,r),i)}}function a(t){return function(n,r){return n.removeIn(e(t,r))}}var s=t.concat(["transient"]);return{get:n(t),set:r(t),remove:a(t),tget:n(s),tset:r(s),tremove:a(s),reset:function(t){return t.map(function(t){return i.Map.isMap(t)?t.remove("transient"):t})},init:function(e,n){return new i.Map({id:e}).setIn(t,n)},initNS:function(e,n){return e.setIn(t,n)}}}var i=n(9);n.n(i);e.a=r;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}},function(t,e,n){"use strict";function r(){b.ReactReconcileTransaction&&I||l("123")}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=b.ReactReconcileTransaction.getPooled(!0)}function o(t,e,n,i,o,a){return r(),I.batchedUpdates(t,e,n,i,o,a)}function a(t,e){return t._mountOrder-e._mountOrder}function s(t){var e=t.dirtyComponentsLength;e!==y.length&&l("124",e,y.length),y.sort(a),N++;for(var n=0;n0,i=t.location.href.split("#")[0],a=function(e,n){!(!e&&!n)&&!r&&t.history.replaceState(null,"",i)};o(t.location.hash,a)}function o(t,e){n.i(j.d)(j.e,"lock").forEach(function(n){return L.auth.redirect(n)&&a(n,t,e)})}function a(t,e,n){D.a.parseHash(L.id(t),e,function(e,r){e?L.emitHashParsedEvent(t,e):L.emitHashParsedEvent(t,r),e?L.emitAuthorizationErrorEvent(t,e):r&&L.emitAuthenticatedEvent(t,r),n(e,r)})}function s(t,e){var r=n.i(j.d)(j.f,"lock",t);if(!r)throw new Error("The Lock can't be opened again after it has been destroyed");if(L.rendering(r))return!1;if(e.flashMessage){if(!e.flashMessage.type||["error","success"].indexOf(e.flashMessage.type)===-1)return L.emitUnrecoverableErrorEvent(r,"'flashMessage' must provide a valid type ['error','success']");if(!e.flashMessage.text)return L.emitUnrecoverableErrorEvent(r,"'flashMessage' must provide a text")}return L.emitEvent(r,"show"),n.i(j.b)(j.g,"lock",t,function(t){return t=L.overrideOptions(t,e),t=L.filterConnections(t),t=L.runHook(t,"willShow",e),L.render(t)}),!0}function u(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=n.i(j.d)(j.f,"lock",t);(L.ui.closable(i)||e)&&L.rendering(i)&&(L.emitEvent(i,"hide"),L.ui.appendContainer(i)?(n.i(j.b)(j.g,"lock",t,L.stopRendering),setTimeout(function(){n.i(j.b)(j.g,"lock",t,function(t){return t=n.i(z.a)(t),t=L.reset(t),t=n.i(z.b)(t)}),i=n.i(j.d)(j.f,"lock",t),r(i)},1e3)):(n.i(j.b)(j.g,"lock",t,function(t){return t=n.i(z.a)(t),t=L.reset(t),t=n.i(z.b)(t)}),r(i)))}function c(t){n.i(j.b)(j.g,"lock",t,L.stopRendering),n.i(j.b)(j.h,"lock",t)}function l(t,e){return n.i(j.b)(j.g,"lock",t,e)}function M(t){n.i(j.d)(j.f,"lock",t).get("isLoadingPanePinned")||n.i(j.b)(j.g,"lock",t,function(t){return t.set("isLoadingPanePinned",!0)})}function p(t){n.i(j.b)(j.g,"lock",t,function(t){return t.set("isLoadingPanePinned",!1)})}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments[2];n.i(j.b)(j.g,"lock",t,function(t){return e.reduce(function(e,r){return e&&n.i(z.c)(t,r)},!0)?L.setSubmitting(t,!0):e.reduce(function(t,e){return n.i(z.d)(t,e)},t)});var i=n.i(j.d)(j.f,"lock",t);L.submitting(i)&&r(i)}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(t,e,n,r){return r()};g(t,e,function(i){D.a.logIn(t,n,L.auth.params(i).toJS(),function(n,i){n?setTimeout(function(){return f(t,e,n,r)},250):h(t,i)})})}function h(t,e){var r=n.i(j.d)(j.f,"lock",t);L.ui.autoclose(r)?u(t,!1,function(t){return L.emitAuthenticatedEvent(t,e)}):(n.i(j.b)(j.g,"lock",t,function(t){return t=L.setSubmitting(t,!1),L.setLoggedIn(t,!0)}),L.emitAuthenticatedEvent(r,e))}function f(t,e,r,i){i(t,r,e,function(){return setTimeout(function(){var i=n.i(j.d)(j.f,"lock",t),o=L.loginErrorMessage(i,r,y(e));["blocked_user","rule_error","lock.unauthorized"].indexOf(r.code)>-1&&L.emitAuthorizationErrorEvent(i,r),n.i(j.b)(j.g,"lock",t,L.setSubmitting,!1,o)},0)}),n.i(j.b)(j.g,"lock",t,L.setSubmitting,!1)}function y(t){if(t)return~t.indexOf("vcode")?"code":~t.indexOf("username")?"username":~t.indexOf("email")?"email":void 0}var N=n(9),D=(n.n(N),n(56)),j=n(11),I=n(204),L=n(1),m=n(125),w=n(121),z=n(8);e.a=r,e.b=i,e.d=o,e.e=s,e.c=u,e.f=c,e.g=l,e.k=M,e.l=p,e.i=g,e.h=d,e.j=h;var v=Object.assign||function(t){for(var e=1;e()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},function(t,e,n){"use strict";var r=n(101),i=r;t.exports=i},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.closeHandler=p.c,e.key="auxiliarypane",e.lock=t,g.loggedIn(t)?l.a.createElement(h,e):null}var s=n(3),u=n.n(s),c=n(0),l=n.n(c),M=n(74),p=n(23),g=n(1),d=n(14);e.a=a;var h=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.handleClose=function(){var t=this.props,e=t.closeHandler,n=t.lock;e(g.id(n))},e.prototype.render=function(){var t=this.props.lock,e=g.ui.closable(t)?this.handleClose.bind(this):void 0;return l.a.createElement(M.a,{closeHandler:e},l.a.createElement("p",null,d.html(t,["success","logIn"])))},e}(l.a.Component);h.propTypes={closeHandler:u.a.func.isRequired,lock:u.a.object.isRequired}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(3),s=n.n(a),u=n(0),c=n.n(u),l=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.before,n=t.focused,r=t.invalidHint,i=t.isValid,o=t.name,a=t.icon,s="auth0-lock-input-block auth0-lock-input-"+o;i||(s+=" auth0-lock-error");var u="auth0-lock-input-wrap";n&&i&&(u+=" auth0-lock-focused");var l=null;"string"==typeof a?l=c.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}}):a&&(l=a),l&&(u+=" auth0-lock-input-wrap-with-icon");var M=!i&&r?c.a.createElement("div",{className:"auth0-lock-error-msg"},c.a.createElement("span",null,r)):null;return c.a.createElement("div",{className:s},e,c.a.createElement("div",{className:u},l,this.props.children),M)},e}(c.a.Component);e.a=l,l.propTypes={before:s.a.element,children:s.a.oneOfType([s.a.element.isRequired,s.a.arrayOf(s.a.element).isRequired]),focused:s.a.bool,invalidHint:s.a.string,isValid:s.a.bool.isRequired,name:s.a.string.isRequired,svg:s.a.string}},function(t,e,n){"use strict";var r=n(4),i=(n(2),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),o=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n),i}return new r(t,e,n)},s=function(t,e,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,t,e,n,r),o}return new i(t,e,n,r)},u=function(t){var e=this;t instanceof e||r("25"),t.destructor(),e.instancePool.length1&&void 0!==arguments[1]&&arguments[1],r=n.i(D.d)(D.f,"lock",t),i=n.i(w.k)(r)?"email":"username",o=m.e(r,i),a={connection:n.i(w.l)(r),username:o,password:m.e(r,"password")},s=[i,"password"],u=m.e(r,"mfa_code");e&&(a.mfa_code=u,s.push("mfa_code")),n.i(I.h)(t,s,a,function(t,e,n,r){return"a0.mfa_required"===e.error?y(t):r()})}function i(t){var e=n.i(D.d)(D.f,"lock",t),r=["email","password"];n.i(w.m)(e)&&r.push("username"),n.i(w.n)(e).forEach(function(t){return r.push(t.get("name"))}),n.i(I.i)(t,r,function(e){var r={connection:n.i(w.l)(e),email:m.e(e,"email"),password:m.e(e,"password"),autoLogin:n.i(w.o)(e)};n.i(w.m)(e)&&(r.username=m.e(e,"username")),n.i(w.n)(e).isEmpty()||(r.user_metadata={},n.i(w.n)(e).forEach(function(t){r.user_metadata[t.get("name")]=m.e(e,t.get("name"))})),j.a.signUp(t,r,function(e,n,r){for(var i=arguments.length,s=Array(i>3?i-3:0),u=3;u1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:["password"];n.i(D.b)(D.g,"lock",t,w.p,"login",e)}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["password"];n.i(D.b)(D.g,"lock",t,w.p,"signUp",e)}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["password"];n.i(D.b)(D.g,"lock",t,w.p,"forgotPassword",e)}function d(t){return M(t)}function h(t){return M(t)}function f(t){n.i(D.b)(D.g,"lock",t,w.q)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["mfa_code"];n.i(D.b)(D.g,"lock",t,w.p,"mfaLogin",e)}var N=n(9),D=(n.n(N),n(11)),j=n(56),I=n(23),L=n(1),m=n(8),w=n(10),z=n(14);e.a=r,e.c=i,e.h=u,e.e=M,e.f=p,e.i=g,e.g=d,e.b=h,e.d=f},function(t,e,n){"use strict";function r(t,e){return y(t,l.a.fromJS(o(e)))}function i(t){return["oauth1","oauth2"].indexOf(t.get("strategy"))!==-1?t.get("name"):g[t.get("strategy")]}function o(t){var e={},n=t.socialButtonStyle;return["big","small"].indexOf(n)>-1&&(e.socialButtonStyle=n),e}function a(t){return M.connections(t,"social")}function s(t){return M.ui.authButtonsTheme(t)}function u(t,e){var n=f(t,"socialButtonStyle")||h(t,"socialButtonStyle");return n?"big"===n:M.connections(t,"social").count()<=e}var c=n(9),l=n.n(c),M=n(1),p=n(20);n.d(e,"b",function(){return g}),e.d=r,e.g=i,e.a=o,e.f=a,e.e=s,e.c=u;var g={amazon:"Amazon",aol:"Aol",baidu:"百度",bitbucket:"Bitbucket",box:"Box",dropbox:"Dropbox",dwolla:"Dwolla",ebay:"ebay",exact:"Exact",facebook:"Facebook",fitbit:"Fitbit",github:"GitHub","google-openid":"Google OpenId","google-oauth2":"Google",instagram:"Instagram",linkedin:"LinkedIn",miicard:"miiCard",paypal:"PayPal","paypal-sandbox":"PayPal Sandbox",planningcenter:"Planning Center",renren:"人人",salesforce:"Salesforce","salesforce-community":"Salesforce Community","salesforce-sandbox":"Salesforce (sandbox)",evernote:"Evernote","evernote-sandbox":"Evernote (sandbox)",shopify:"Shopify",soundcloud:"Soundcloud",thecity:"The City","thecity-sandbox":"The City (sandbox)",thirtysevensignals:"37 Signals",twitter:"Twitter",vkontakte:"vKontakte",windowslive:"Microsoft Account",wordpress:"Wordpress",yahoo:"Yahoo!",yammer:"Yammer",yandex:"Yandex",weibo:"新浪微博"},d=n.i(p.a)(["social"]),h=d.get,f=d.tget,y=d.initNS},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(M===clearTimeout)return clearTimeout(t);if((M===r||!M)&&clearTimeout)return M=clearTimeout,clearTimeout(t);try{return M(t)}catch(e){try{return M.call(null,t)}catch(e){return M.call(this,t)}}}function a(){h&&g&&(h=!1,g.length?d=g.concat(d):f=-1,d.length&&s())}function s(){if(!h){var t=i(a);h=!0;for(var e=d.length;e;){for(g=d,d=[];++f1)for(var n=1;n1){for(var f=Array(h),y=0;y1){for(var D=Array(N),j=0;j0&&e.reduce(function(e,n){return e&&!a(t,n)},!0)}function a(t,e){return["loading","pending","waiting"].indexOf(f(t,e))>-1}function s(t,e,n){var r=y(t,e,"error");if("sso"!==e){var i=new Error("An error occurred when fetching "+e+" data for Lock: "+n.message);i.code="sync",i.origin=n,r=l.stop(r,i)}return r}var u=n(9),c=(n.n(u),n(20)),l=n(1),M=n(11);n.d(e,"a",function(){return j}),e.b=i,e.c=o;var p=n.i(c.a)(["sync"]),g=p.get,d=p.set;e.d=function(t,e,r){if(void 0!==g(t,e))return t;var i=r.waitFn?"waiting":!r.conditionFn||r.conditionFn(t)?"pending":"no";return d(t,e,n.i(u.Map)({conditionFn:r.conditionFn,errorFn:r.errorFn,recoverResult:r.recoverResult,syncStatus:i,successFn:r.successFn,syncFn:r.syncFn,timeout:r.timeout||6e3,waitFn:r.waitFn}))};var h=function(t){return(r.Array.isArray(t)?t:[t]).concat(["syncStatus"])},f=function(t,e){return g(t,h(e))},y=function(t,e,n){return d(t,h(e),n)},N=function(t,e,n){return g(t,e).get(n)},D=function t(e){return e.reduce(function(e,n,r){var i=u.Map.isMap(n)&&n.has("syncStatus")?[r]:[],o=u.Map.isMap(n)?t(n).map(function(t){return[r].concat(t)}):[];return e.concat.apply(e,[i].concat([o]))},[])},t=function(t,e){return D(g(t,[],n.i(u.Map)())).reduce(function(t,r){if("function"!=typeof N(t,r,"syncFn"))return t;if("pending"===f(t,r)){t=y(t,r,"loading");var i=!1;N(t,r,"syncFn")(t,function(o,a){i||(i=!0,setTimeout(function(){n.i(M.b)(M.g,"lock",e,function(e){var n=N(t,r,"errorFn");o&&"function"==typeof n&&setTimeout(function(){return n(e,o)},0);var i=N(e,r,"recoverResult");return o&&void 0===i?s(e,r,o):(e=y(e,r,"ok"),N(e,r,"successFn")(e,o?i:a))})},0))})}else if("waiting"===f(t,r)&&N(t,r,"waitFn")(t)){var o=N(t,r,"conditionFn");t=y(t,r,!o||o(t)?"pending":"no")}return t},t)},j=function(e){n.i(M.a)("sync",e,function(r){setTimeout(function(){return n.i(M.b)(M.g,"lock",e,t,e)},0)})}}).call(e,n(39),n(13))},function(t,e,n){"use strict";var r=n(261);t.exports=function(t){return r(t,!1)}},function(t,e,n){"use strict";t.exports=n(137)},function(t,e,n){"use strict";function r(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}function i(t,e,n){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(e));default:return!1}}var o=n(4),a=n(83),s=n(84),u=n(88),c=n(147),l=n(148),M=(n(2),{}),p=null,g=function(t,e){t&&(s.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},d=function(t){return g(t,!0)},h=function(t){return g(t,!1)},f=function(t){return"."+t._rootNodeID},y={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(t,e,n){"function"!=typeof n&&o("94",e,typeof n);var r=f(t);(M[e]||(M[e]={}))[r]=n;var i=a.registrationNameModules[e];i&&i.didPutListener&&i.didPutListener(t,e,n)},getListener:function(t,e){var n=M[e];if(i(e,t._currentElement.type,t._currentElement.props))return null;var r=f(t);return n&&n[r]},deleteListener:function(t,e){var n=a.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var r=M[e];if(r){delete r[f(t)]}},deleteAllListeners:function(t){var e=f(t);for(var n in M)if(M.hasOwnProperty(n)&&M[n][e]){var r=a.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(t,n),delete M[n][e]}},extractEvents:function(t,e,n,r){for(var i,o=a.plugins,s=0;s1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2];return this.clients[t].parseHash(e,n)},t.prototype.getUserInfo=function(t,e,n){return this.clients[t].getUserInfo(e,n)},t.prototype.getProfile=function(t,e,n){return this.clients[t].getProfile(e,n)},t.prototype.getSSOData=function(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length,r=Array(n>2?n-2:0),i=2;i ',close:''},u=function(t){var e=t.name,n=t.onClick,r=t.svg;return a.a.createElement("span",{className:"auth0-lock-"+e+"-button",dangerouslySetInnerHTML:{__html:r},onClick:function(t){t.preventDefault(),n()}})};u.propTypes={name:i.a.string.isRequired,onClick:i.a.func.isRequired,svg:i.a.string.isRequired};var c=function(t){var e=t.onClick;return a.a.createElement(u,{name:"close",svg:s.close,onClick:e})};c.propTypes={onClick:i.a.func.isRequired};var l=function(t){var e=t.onClick;return a.a.createElement(u,{name:"back",svg:s.back,onClick:e})};l.propTypes={onClick:i.a.func.isRequired}},function(t,e,n){(function(e){function n(t){r["is"+t]=function(e){return u.call(e)==="[object "+t+"]"}}for(var r={},i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=Array.isArray,a=Object.keys,s=Object.prototype,u=s.toString,c=function(t){return function(e){return null==e?void 0:e[t]}},l=Math.pow(2,53)-1,M=c("length"),p=function(t){var e=M(t);return"number"==typeof e&&e>=0&&e<=l},g=["Arguments","Function","String","Number"],d=0;d]/;t.exports=i},function(t,e,n){"use strict";var r,i=n(12),o=n(82),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(90),c=u(function(t,e){if(t.namespaceURI!==o.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML=""+e+"";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(i.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&s.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),l=null}t.exports=c},function(t,e,n){function r(t){this.request=t,this.method=t.method,this.url=t.url,this.body=t._data,this.headers=t._header}function i(t){this.request=t}function o(t){this._sendTelemetry=t._sendTelemetry!==!1||t._sendTelemetry,this._telemetryInfo=t._telemetryInfo||null,this.headers=t.headers||{}}var a=n(103),s=n(109),u=n(55);r.prototype.abort=function(){this.request.abort()},r.prototype.getMethod=function(){return this.method},r.prototype.getBody=function(){return this.body},r.prototype.getUrl=function(){return this.url},r.prototype.getHeaders=function(){return this.headers},i.prototype.set=function(t,e){return this.request=this.request.set(t,e),this},i.prototype.send=function(t){return this.request=this.request.send(t),this},i.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},i.prototype.end=function(t){return this.request=this.request.end(t),new r(this.request)},o.prototype.setCommonConfiguration=function(t,e){if(e=e||{},e.noHeaders)return t;var n=this.headers;t=t.set("Content-Type","application/json");for(var r=Object.keys(this.headers),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};if(null==t.username)return null;var e=d({},N,t),n=N.username.min,r=N.username.max;return e.username.min=parseInt(e.username.min,10)||n,e.username.max=parseInt(e.username.max,10)||r,e.username.min>e.username.max&&(e.username.min=n,e.username.max=r),e}function i(t,e,n){return f(t,o(e,n))}function o(t,e){return new M.a.fromJS({connections:a(t,e),defaultDirectory:e.defaultDirectory||null})}function a(t,e){var n=D.toJS(),r=Object.keys(e.connections).filter(function(t){return"passwordless"!=t}),i=null;return e.clientsConnections&&e.clientsConnections[t]&&(i=e.clientsConnections[t]),r.forEach(function(t){var r,o=e.connections[t].map(function(e){return s(t,e)}).filter(function(t){return null===i||i.includes(t.name)});(r=n[t]).push.apply(r,o)}),n}function s(t,e){var n={name:e.name,strategy:e.strategy,type:t};return"database"===t&&(e.validation&&e.validation.passwordPolicy&&(n.passwordPolicy=e.validation.passwordPolicy),n.passwordPolicy=n.passwordPolicy||"none",n.allowSignup="boolean"!=typeof e.allowSignup||e.allowSignup,n.allowForgot="boolean"!=typeof e.allowForgot||e.allowForgot,n.requireUsername="boolean"==typeof e.requiresUsername&&e.requiresUsername,n.validation=r(e.validation)),"enterprise"===t&&(n.domains=e.domains),n}function u(t){var e=c(t);return e&&g.findConnection(t,e)}function c(t){return y(t,"defaultDirectory",null)}var l=n(9),M=n.n(l),p=n(20),g=n(1);e.c=i,e.b=u,e.a=c;var d=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:p.username;if(!e||null==n)return M()(t).length>0;var r=M()(t.toLowerCase());if(r.lengthn.max)return!1;var i=g.exec(r);return i&&i[0]}function i(t){var e=n.i(c.u)(t).getIn(["validation","username"]);return e?e.toJS():null}function o(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"username",c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=c?i(t):null,M=function(t){switch(o){case"email":return n.i(u.e)(t);case"username":return r(t,c,l);default:return a(t)?n.i(u.e)(t):r(t,c,l)}};return n.i(s.g)(t,"username",e,M)}function a(t){return t.indexOf("@")>-1}var s=n(8),u=n(29),c=n(10),l=n(35),M=n.n(l);e.b=i,e.a=o,e.c=a;var p={username:{min:1,max:15}},g=/^[a-zA-Z0-9_]+$/},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(3),s=n.n(a),u=n(0),c=n.n(u),l=n(231),M=n(8),p=n(11),g=n(1),d=n(72),h=n(112),f=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.componentDidMount=function(){var t=this.props.lock;g.ui.avatar(t)&&M.p(t)&&n.i(h.a)(g.id(t),M.p(t))},e.prototype.handleChange=function(t){var e=this.props,r=e.lock,i=e.validateFormat,o=e.usernameStyle;g.ui.avatar(r)&&n.i(h.b)(g.id(r),t.target.value),n.i(p.b)(p.g,"lock",g.id(r),d.a,t.target.value,o,i)},e.prototype.render=function(){var t=this.props,e=t.i18n,r=t.lock,i=t.placeholder,o=t.validateFormat,a=M.e(r,"username"),s=o?n.i(d.b)(r):{},u=function(t){return t?n.i(d.c)(t)||!o?"invalidErrorHint":"usernameFormatErrorHint":"blankErrorHint"},p=function(t){var n=u(t);return"usernameFormatErrorHint"===n&&o&&null!=s?e.str(n,s.min,s.max):e.str(n)};return c.a.createElement(l.a,{value:a,invalidHint:p(a),isValid:!M.k(r,"username"),onChange:this.handleChange.bind(this),placeholder:i})},e}(c.a.Component);e.a=f,f.propTypes={i18n:s.a.object.isRequired,lock:s.a.object.isRequired,placeholder:s.a.string.isRequired,validateFormat:s.a.bool.isRequired,usernameStyle:s.a.oneOf(["any","email","username"])},f.defaultProps={validateFormat:!1,usernameStyle:"username"}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(222),a=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(3),u=n.n(s),c=n(0),l=n.n(c),M=n(32),p=n(229);n.d(e,"a",function(){return d});var g=Object.assign||function(t){for(var e=1;e3?r-3:0),a=3;a1)){var s=t.document.createElement("script");s.src=o,t.document.getElementsByTagName("head")[0].appendChild(s);var u=function(t){a[i]=a[i].filter(function(e){return e.url!==o||(setTimeout(function(){return e.cb(t)},0),!1)})},c=setTimeout(function(){return u(new Error(o+" timed out"))},2e4);s.addEventListener("load",function(){return clearTimeout(c)}),s.addEventListener("error",function(){clearTimeout(c),u(new Error(o+" could not be loaded."))})}}function i(e){var n=e.method,r=e.cb;t.Auth0[n]=r}var o=n(54);n.n(o);e.a=r,e.b=i,t.Auth0||(t.Auth0={});var a={}}).call(e,n(13))},function(t,e,n){"use strict";function r(t,e){return e.toLowerCase().indexOf(t.toLowerCase())>-1}function i(t,e){return t.indexOf(e,t.length-e.length)!==-1}e.b=r,e.a=i},function(t,e,n){var r=n(60),i=[" ","!",'"',"#","\\$","%","&","'","\\(","\\)","\\*","\\+",",","-","\\.","/",":",";","<","=",">","\\?","@","\\[","\\\\","\\]","\\^","_","`","{","\\|","}","~"].join("|"),o=new RegExp(i);t.exports={validate:function(t){if(!r.isObject(t))throw new Error("options should be an object");if(!r.isArray(t.expressions)||r.isEmpty(t.expressions))throw new Error("contains expects expressions to be a non-empty array");if(!t.expressions.every(function(t){return r.isFunction(t.explain)&&r.isFunction(t.test)}))throw new Error("contains expressions are invalid: An explain and a test function should be provided");return!0},explain:function(t){return{message:"Should contain:",code:"shouldContain",items:t.expressions.map(function(t){return t.explain()})}},missing:function(t,e){var n=t.expressions.map(function(t){var n=t.explain();return n.verified=t.test(e),n});return{message:"Should contain:",code:"shouldContain",verified:n.every(function(t){return t.verified}),items:n}},assert:function(t,e){return!!e&&t.expressions.every(function(t){return t.test(e)})},charsets:{upperCase:{explain:function(){return{message:"upper case letters (A-Z)",code:"upperCase"}},test:function(t){return/[A-Z]/.test(t)}},lowerCase:{explain:function(){return{message:"lower case letters (a-z)",code:"lowerCase"}},test:function(t){return/[a-z]/.test(t)}},specialCharacters:{explain:function(){return{message:"special characters (e.g. !@#$%^&*)",code:"specialCharacters"}},test:function(t){return o.test(t)}},numbers:{explain:function(){return{message:"numbers (i.e. 0-9)",code:"numbers"}},test:function(t){return/\d/.test(t)}}}}},function(t,e,n){"use strict";function r(t){return function(){return t}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){"use strict";function r(t,e){return Array.isArray(e)&&(e=e[1]),e?e.nextSibling:t.firstChild}function i(t,e,n){l.insertTreeBefore(t,e,n)}function o(t,e,n){Array.isArray(e)?s(t,e[0],e[1],n):h(t,e,n)}function a(t,e){if(Array.isArray(e)){var n=e[1];e=e[0],u(t,e,n),t.removeChild(n)}t.removeChild(e)}function s(t,e,n,r){for(var i=e;;){var o=i.nextSibling;if(h(t,i,r),i===n)break;i=o}}function u(t,e,n){for(;;){var r=e.nextSibling;if(r===n)break;t.removeChild(r)}}function c(t,e,n){var r=t.parentNode,i=t.nextSibling;i===e?n&&h(r,document.createTextNode(n),i):n?(d(i,n),u(r,i,e)):u(r,t,e)}var l=n(41),M=n(272),p=(n(7),n(15),n(90)),g=n(65),d=n(154),h=p(function(t,e,n){t.insertBefore(e,n)}),f=M.dangerouslyReplaceNodeWithMarkup,y={dangerouslyReplaceNodeWithMarkup:f,replaceDelimitedText:c,processUpdates:function(t,e){for(var n=0;n-1||a("96",t),!c.plugins[n]){e.extractEvents||a("97",t),c.plugins[n]=e;var r=e.eventTypes;for(var o in r)i(r[o],e,o)||a("98",o,t)}}}function i(t,e,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];o(s,e,n)}return!0}return!!t.registrationName&&(o(t.registrationName,e,n),!0)}function o(t,e,n){c.registrationNameModules[t]&&a("100",t),c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(4),s=(n(2),null),u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){s&&a("101"),s=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];u.hasOwnProperty(n)&&u[n]===i||(u[n]&&a("102",n),u[n]=i,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var i=c.registrationNameModules[n[r]];if(i)return i}}return null},_resetEventPlugins:function(){s=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=c.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};t.exports=c},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function i(t){return"topMouseMove"===t||"topTouchMove"===t}function o(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var i=t.type||"unknown-event";t.currentTarget=y.getNodeFromInstance(r),e?h.invokeGuardedCallbackWithCatch(i,n,t):h.invokeGuardedCallback(i,n,t),t.currentTarget=null}function s(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var i=0;i0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function o(t,e){var n=s.get(t);if(!n){return null}return n}var a=n(4),s=(n(27),n(51)),u=(n(15),n(21)),c=(n(2),n(6),{isMounted:function(t){var e=s.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){c.validateCallback(e,n);var i=o(t);if(!i)return null;i._pendingCallbacks?i._pendingCallbacks.push(e):i._pendingCallbacks=[e],r(i)},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=o(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e,n){var i=o(t,"replaceState");i&&(i._pendingStateQueue=[e],i._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),i._pendingCallbacks?i._pendingCallbacks.push(n):i._pendingCallbacks=[n]),r(i))},enqueueSetState:function(t,e){var n=o(t,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t&&a("122",e,i(t))}});t.exports=c},function(t,e,n){"use strict";var r=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t};t.exports=r},function(t,e,n){"use strict";function r(t){var e,n=t.keyCode;return"charCode"in t?0===(e=t.charCode)&&13===n&&(e=13):e=n,e>=32||13===e?e:0}t.exports=r},function(t,e,n){"use strict";function r(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=o[t];return!!r&&!!n[r]}function i(t){return r}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=i},function(t,e,n){"use strict";function r(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!o.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&i&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=n(12);o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var i=typeof t,o=typeof e;return"string"===i||"number"===i?"string"===o||"number"===o:"object"===o&&t.type===e.type&&t.key===e.key}t.exports=r},function(t,e,n){"use strict";var r=(n(5),n(25)),i=(n(6),r);t.exports=i},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function i(t,e){if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var a=0;a=0?"&":"?")+t),this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.substring(e+1).split("&");f(this._sort)?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,e)+"?"+n.join("&")}}},l.prototype._isHost=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},l.prototype.end=function(t){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||r,this._appendQueryString(),this._end()},l.prototype._end=function(){var t=this,e=this.xhr=D.getXHR(),n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||D.serialize[i?i.split(";")[0]:""];!o&&u(i)&&(o=D.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!=this.header[a]&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==n?n:null),this},D.get=function(t,e,n){var r=D("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},D.head=function(t,e,n){var r=D("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.options=function(t,e,n){var r=D("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.del=M,D.delete=M,D.patch=function(t,e,n){var r=D("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.post=function(t,e,n){var r=D("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.put=function(t,e,n){var r=D("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},function(t,e){function n(t){return null!==t&&"object"==typeof t}t.exports=n},function(t,e,n){(function(t,r){function i(t,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),I(r.showHidden)&&(r.showHidden=!1),I(r.depth)&&(r.depth=2),I(r.colors)&&(r.colors=!1),I(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,t,r.depth)}function o(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function u(t,n,r){if(t.customInspect&&n&&v(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return D(i)||(i=u(t,i,r)),i}var o=c(t,n);if(o)return o;var a=Object.keys(n),h=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),z(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(v(n)){var f=n.name?": "+n.name:"";return t.stylize("[Function"+f+"]","special")}if(L(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(z(n))return l(n)}var y="",N=!1,j=["{","}"];if(d(n)&&(N=!0,j=["[","]"]),v(n)){y=" [Function"+(n.name?": "+n.name:"")+"]"}if(L(n)&&(y=" "+RegExp.prototype.toString.call(n)),w(n)&&(y=" "+Date.prototype.toUTCString.call(n)),z(n)&&(y=" "+l(n)),0===a.length&&(!N||0==n.length))return j[0]+y+j[1];if(r<0)return L(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var I;return I=N?M(t,n,r,h,a):a.map(function(e){return p(t,n,r,h,e,N)}),t.seen.pop(),g(I,y,j)}function c(t,e){if(I(e))return t.stylize("undefined","undefined");if(D(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return N(e)?t.stylize(""+e,"number"):h(e)?t.stylize(""+e,"boolean"):f(e)?t.stylize("null","null"):void 0}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function M(t,e,n,r,i){for(var o=[],a=0,s=e.length;a-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),I(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function g(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function d(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function f(t){return null===t}function y(t){return null==t}function N(t){return"number"==typeof t}function D(t){return"string"==typeof t}function j(t){return"symbol"==typeof t}function I(t){return void 0===t}function L(t){return m(t)&&"[object RegExp]"===C(t)}function m(t){return"object"==typeof t&&null!==t}function w(t){return m(t)&&"[object Date]"===C(t)}function z(t){return m(t)&&("[object Error]"===C(t)||t instanceof Error)}function v(t){return"function"==typeof t}function b(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function C(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}function E(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),A[t.getMonth()],e].join(" ")}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var x=/%[sdj%]/g;e.format=function(t){if(!D(t)){for(var e=[],n=0;n=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),s=r[n];n * { display: none; } html.auth0-lock-html body .auth0-lock-container { background: #fff; display: block !important; } } .auth0-lock.auth0-lock, .auth0-lock.auth0-lock * { box-sizing: initial; } .auth0-lock.auth0-lock svg { background-color: transparent; } .auth0-lock.auth0-lock .auth0-global-message { color: #fff; text-align: center; padding: 10px; line-height: 1.8; font-size: 11px; font-weight: 600; text-transform: uppercase; } .auth0-lock.auth0-lock .auth0-global-message.auth0-global-message-error { background: #ff3e00; } .auth0-lock.auth0-lock .auth0-global-message.auth0-global-message-success { background: #7ed321; } .auth0-lock.auth0-lock .auth0-global-message.global-message-enter { height: 0; paddingTop: 0; paddingBottom: 0; } .auth0-lock.auth0-lock .auth0-global-message.global-message-enter.global-message-enter-active { -webkit-transition: all 0.2s; transition: all 0.2s; height: auto; paddingTop: 10px; paddingBottom: 10px; } .auth0-lock.auth0-lock .auth0-global-message.global-message-leave { -webkit-transition: all 0.2s; transition: all 0.2s; height: 0; paddingTop: 0; paddingBottom: 0; } .auth0-lock.auth0-lock .auth0-global-message span { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; } .auth0-lock.auth0-lock { font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, sans-serif; text-rendering: optimizeLegibility; pointer-events: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 100%; right: 0; z-index: 1000000; } @media (min-width: 481px) { .auth0-lock.auth0-lock { display: table; } } .auth0-lock.auth0-lock a { text-decoration: none; } .auth0-lock.auth0-lock a:active, .auth0-lock.auth0-lock a:focus { outline: none; } .auth0-lock.auth0-lock input:focus, .auth0-lock.auth0-lock button:focus { outline: none; } .auth0-lock.auth0-lock .auth0-lock-overlay { background: -webkit-radial-gradient(#40404b, #111118) rgba(34,34,40,0.94); background: radial-gradient(#40404b, #111118) rgba(34,34,40,0.94); position: fixed; top: 0; bottom: 0; right: 0; left: 0; z-index: -1; opacity: 0; -webkit-transition: opacity 0.2s ease-in 0.4s; transition: opacity 0.2s ease-in 0.4s; } @media (min-width: 481px) { .auth0-lock.auth0-lock .auth0-lock-center { vertical-align: middle; display: table-cell; margin: auto; overflow-y: auto; } } .auth0-lock.auth0-lock .auth0-lock-widget { width: 300px; opacity: 0; -webkit-transform: translateY(100%) scale(0.8); transform: translateY(100%) scale(0.8); -webkit-transition-timing-function: cubic-bezier(0.3, 0, 0, 1.4); transition-timing-function: cubic-bezier(0.3, 0, 0, 1.4); margin: 0 auto; border-radius: 5px; max-height: 100vh; } @media (min-width: 481px) { .auth0-lock.auth0-lock .auth0-lock-widget { -webkit-transition: -webkit-transform 0.4s, opacity 0.3s; -webkit-transition: opacity 0.3s, -webkit-transform 0.4s; transition: opacity 0.3s, -webkit-transform 0.4s; transition: transform 0.4s, opacity 0.3s; transition: transform 0.4s, opacity 0.3s, -webkit-transform 0.4s; } } .auth0-lock.auth0-lock .auth0-lock-widget-container { position: relative; } .auth0-lock.auth0-lock .auth0-lock-cred-pane { height: 100%; border-radius: 6px; background: #fff; position: relative; } .auth0-lock.auth0-lock .auth0-lock-cred-pane.horizontal-fade-leave .auth0-lock-content, .auth0-lock.auth0-lock .auth0-lock-cred-pane.horizontal-fade-leave .auth0-lock-terms { opacity: 0.3; pointer-events: none; } .auth0-lock.auth0-lock .auth0-lock-cred-pane.auth0-lock-moving { overflow: hidden; } .auth0-lock.auth0-lock .auth0-lock-header { text-align: center; padding: 11px; height: 118px; color: #333; position: relative; background: #fff; border-radius: 5px 5px 0 0; overflow: hidden; box-sizing: border-box; } .auth0-lock.auth0-lock .auth0-lock-close-button, .auth0-lock.auth0-lock .auth0-lock-back-button { box-sizing: content-box !important; background: #fff; border-radius: 100px; height: 10px; width: 10px; position: absolute; top: 14px; right: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); color: #333; z-index: 100; border: 6px solid #fff; cursor: pointer; line-height: 0; } .auth0-lock.auth0-lock .auth0-lock-close-button svg, .auth0-lock.auth0-lock .auth0-lock-back-button svg { box-sizing: content-box; } .auth0-lock.auth0-lock .auth0-lock-close-button polygon, .auth0-lock.auth0-lock .auth0-lock-back-button polygon { fill: #373737; } .auth0-lock.auth0-lock .auth0-lock-back-button { left: 14px; } .auth0-lock.auth0-lock .auth0-lock-header-avatar { height: 80px; width: 80px; display: block; border-radius: 100px; margin: -16px auto 0; position: absolute; left: 0; right: 0; z-index: 1000; box-shadow: 0 1px 2px rgba(0,0,0,0.4); -webkit-animation: fadeIn 0.75s both; animation: fadeIn 0.75s both; } @media (min-width: 768px) { .auth0-lock.auth0-lock .auth0-lock-header-avatar { -webkit-animation: fadeInDown 0.75s both; animation: fadeInDown 0.75s both; } } .auth0-lock.auth0-lock .auth0-lock-header-bg { position: absolute; height: 118px; width: 100%; overflow: hidden; top: 0; left: 0; pointer-events: none; } @media (min-width: 481px) { .auth0-lock.auth0-lock .auth0-lock-header-bg { background: rgba(241,241,241,0.8); } } .auth0-lock.auth0-lock .auth0-lock-header-bg .auth0-lock-header-bg-blur { display: none; height: 100%; width: 100%; border-top-left-radius: 5px; border-top-right-radius: 5px; -webkit-filter: blur(40px) grayscale(1); -ms-filter: blur(40px) grayscale(1); filter: blur(40px) grayscale(1); -webkit-backdrop-filter: blur(0); background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: 300px; opacity: 0; -webkit-transition: 0s ease 0s; transition: 0s ease 0s; } .auth0-lock.auth0-lock .auth0-lock-header-bg .auth0-lock-header-bg-blur.auth0-lock-no-grayscale { -webkit-filter: blur(30px); -ms-filter: blur(30px); filter: blur(30px); -webkit-backdrop-filter: blur(0); background-position: center; background-size: 800px; } @media (min-width: 481px) { .auth0-lock.auth0-lock .auth0-lock-header-bg.auth0-lock-blur-support .auth0-lock-header-bg-blur { display: block; } } .auth0-lock.auth0-lock .auth0-lock-header-bg .auth0-lock-header-bg-solid { height: 100%; opacity: 0.08; } .auth0-lock.auth0-lock .auth0-lock-header-welcome { font-size: 18px; position: relative; } .auth0-lock.auth0-lock .auth0-lock-header-logo { width: auto; height: 58px; display: inline-block; margin: 0 0 11px; vertical-align: middle; -webkit-transition: margin-top 0.4s; transition: margin-top 0.4s; } .auth0-lock.auth0-lock .auth0-lock-header-logo.centered { margin-top: 20px; } .auth0-lock.auth0-lock .auth0-lock-firstname { font-size: 18px; margin-top: 64px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding: 0 10px; } .auth0-lock.auth0-lock .auth0-lock-name { font-size: 22px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding: 0 10px; } .auth0-lock.auth0-lock .auth0-lock-content { padding: 20px; box-sizing: border-box; } .auth0-lock.auth0-lock .auth0-lock-form { display: block; -webkit-animation: fadeIn 0.2s; animation: fadeIn 0.2s; } .auth0-lock.auth0-lock .auth0-lock-form h2 { font-size: 22px; font-weight: normal; text-align: center; margin: 0 0 15px; color: #000; } .auth0-lock.auth0-lock .auth0-lock-form p { font-size: 13px; line-height: 1.8; text-align: center; margin-top: 0; margin-bottom: 15px; color: rgba(0,0,0,0.54); } .auth0-lock.auth0-lock .auth0-lock-form .auth0-lock-alternative { margin-top: 20px; margin-bottom: 0; } .auth0-lock.auth0-lock .auth0-lock-form .auth0-lock-alternative .auth0-lock-alternative-link { font-size: 13px; color: rgba(0,0,0,0.87); cursor: pointer; margin-bottom: 0; } .auth0-lock.auth0-lock .auth0-lock-input-block { position: relative; margin-bottom: 15px; } @media (min-width: 481px) { .auth0-lock.auth0-lock .auth0-lock-input-block { margin-bottom: 10px; } } .auth0-lock.auth0-lock .auth0-lock-input-block:last-child { margin-bottom: 0; } .auth0-lock.auth0-lock .auth0-lock-input-wrap { border-radius: 3px; border: 1px solid #f1f1f1; position: relative; background: #f1f1f1; -webkit-transition: border-color 0.8s; transition: border-color 0.8s; } .auth0-lock.auth0-lock .auth0-lock-input-wrap.auth0-lock-input-wrap-with-icon { padding-left: 40px; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-icon-arrow { position: absolute; right: 15px; top: 14px; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-icon, .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-custom-icon { position: absolute; font-size: 12px; top: 13px; left: 14px; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-icon path, .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-custom-icon path { fill: #888; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-icon.auth0-lock-icon-mobile, .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-custom-icon.auth0-lock-icon-mobile { width: 9px; height: 14px; top: 14px; left: 16px; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-icon.auth0-lock-icon-box, .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-custom-icon.auth0-lock-icon-box { width: 12px; height: 14px; top: auto; bottom: 14px; left: 14px; } .auth0-lock.auth0-lock .auth0-lock-input-wrap.auth0-lock-focused { border-color: #a0a0a0; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-input { border: 0; padding: 0 14px; right: 0; height: 40px; font-size: 13px; width: 100%; border-radius: 0 2px 2px 0; box-sizing: border-box; position: relative; color: rgba(0,0,0,0.87); } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-input.animated { -webkit-animation-duration: 0.5s; animation-duration: 0.5s; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-input.auth0-lock-input-location { background-color: #f9f9f9; text-align: left; } .auth0-lock.auth0-lock .auth0-lock-input-wrap .auth0-lock-input.auth0-lock-input-location.auth0-lock-input-with-placeholder { color: rgba(0,0,0,0.54); } .auth0-lock.auth0-lock .auth0-lock-error .auth0-lock-input-wrap { border-color: #f00; -webkit-transition: 0.3s ease-in-out; transition: 0.3s ease-in-out; } .auth0-lock.auth0-lock .auth0-lock-input-checkbox { text-align: left; display: block; font-size: 12px; color: rgba(0,0,0,0.54); line-height: 22px; position: relative; } .auth0-lock.auth0-lock .auth0-lock-input-checkbox label input { float: left; margin-top: 5px; } .auth0-lock.auth0-lock .auth0-lock-input-checkbox span { display: block; margin-left: 20px; } .auth0-lock.auth0-lock .auth-lock-social-buttons-pane, .auth0-lock.auth0-lock .auth0-lock-last-login-pane { position: relative; } .auth0-lock.auth0-lock .auth-lock-social-buttons-pane .auth0-loading-container, .auth0-lock.auth0-lock .auth0-lock-last-login-pane .auth0-loading-container { -webkit-animation: fadeIn 0.75s ease-in-out !important; animation: fadeIn 0.75s ease-in-out !important; position: absolute; width: 54px; height: 54px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .auth0-lock.auth0-lock .auth-lock-social-buttons-pane .auth0-loading-container .auth0-loading, .auth0-lock.auth0-lock .auth0-lock-last-login-pane .auth0-loading-container .auth0-loading { width: 50px; height: 50px; border-radius: 50%; top: 0; left: 0; opacity: 1; } .auth0-lock.auth0-lock .auth0-lock-social-buttons-container { text-align: center; } .auth0-lock.auth0-lock .auth0-lock-social-button { border: 0; padding: 0; display: inline-block; box-sizing: border-box; overflow: hidden; border-radius: 3px; margin: 4px; position: relative; width: 40px; height: 40px; -webkit-transition: background-color 0.2s ease-in-out; transition: background-color 0.2s ease-in-out; } .auth0-lock.auth0-lock .auth0-lock-social-button .auth0-lock-social-button-icon { width: 40px; height: 40px; position: absolute; top: 0; left: 0; transition: background-color 0.3s; -webkit-transition: background-color 0.3s; } .auth0-lock.auth0-lock .auth0-lock-social-button:hover .auth0-lock-social-button-icon, .auth0-lock.auth0-lock .auth0-lock-social-button:focus .auth0-lock-social-button-icon { background-color: rgba(0,0,0,0.3); } .auth0-lock.auth0-lock .auth0-lock-social-button .auth0-lock-social-button-text { display: none; } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button { display: block; margin: 10px 0 0; width: 100%; } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button:first-child { margin-top: 0; } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button[data-provider=""], .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button[data-provider="auth0"] { background-color: #c0c0c0; } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button[data-provider=""] .auth0-lock-social-button-icon, .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button[data-provider="auth0"] .auth0-lock-social-button-icon { background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iNTNweCIgaGVpZ2h0PSI2NXB4IiB2aWV3Qm94PSIwIDAgNTMgNjUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+U2hhcGU8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGRlZnM+PC9kZWZzPiAgICA8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IgaWQ9IlNoYXBlIj48L3BhdGg+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="); background-size: 38%; } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button .auth0-lock-social-button-icon { background-color: rgba(0,0,0,0.3); } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button .auth0-lock-social-button-text { box-sizing: border-box; display: block; overflow: hidden; width: 100%; padding-left: 54px; padding-right: 15px; line-height: 40px; text-align: left; text-transform: uppercase; text-overflow: ellipsis; font-size: 10px; font-weight: 600; letter-spacing: 0.7px; color: #fff; white-space: nowrap; transition: background 0.3s; -webkit-transition: background 0.3s; } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button:hover:not([disabled]) .auth0-lock-social-button-icon, .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button:focus:not([disabled]) .auth0-lock-social-button-icon { background-color: rgba(0,0,0,0.3); } .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button:hover:not([disabled]) .auth0-lock-social-button-text, .auth0-lock.auth0-lock .auth0-lock-social-button.auth0-lock-social-big-button:focus:not([disabled]) .auth0-lock-social-button-text { background-color: rgba(0,0,0,0.3); } .auth0-lock.auth0-lock .auth0-lock-social-button[disabled] { background-color: #9b9b9b !important; } .auth0-lock.auth0-lock .auth0-lock-terms { background: #eee; text-align: center; display: block; font-size: 12px; color: rgba(0,0,0,0.54); line-height: 22px; padding: 10px; position: relative; } .auth0-lock.auth0-lock .auth0-lock-terms a { color: rgba(0,0,0,0.87); } .auth0-lock.auth0-lock .auth0-lock-submit { border: 0; padding: 14px; display: block; box-sizing: border-box; width: 100%; height: 70px; overflow: hidden; border-radius: 0 0 5px 5px; -webkit-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; color: #fff; letter-spacing: 1px; font-size: 14px; text-transform: uppercase; /*submit button animation*/ } .auth0-lock.auth0-lock .auth0-lock-submit span { display: inline-block; -webkit-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; } .auth0-lock.auth0-lock .auth0-lock-submit span svg { vertical-align: middle; } .auth0-lock.auth0-lock .auth0-lock-submit span svg.icon-text { margin: -4px 0 0 5px; } .auth0-lock.auth0-lock .auth0-lock-submit .auth0-label-submit { height: 42px; line-height: 42px; } @media (min-width: 481px) { .auth0-lock.auth0-lock .auth0-lock-submit:hover:not([disabled]) span { -webkit-transform: scale(1.05); transform: scale(1.05); } } .auth0-lock.auth0-lock .auth0-lock-submit:focus { box-shadow: inset 0 0 100px 20px rgba(0,0,0,0.2); } .auth0-lock.auth0-lock .auth0-lock-submit[disabled] { background-color: #9b9b9b !important; } .auth0-lock.auth0-lock .auth0-lock-submit[disabled] span svg circle, .auth0-lock.auth0-lock .auth0-lock-submit[disabled] span svg path { stroke: rgba(255,255,255,0.6); -webkit-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; } .auth0-lock.auth0-lock .auth0-lock-submit[disabled] span svg path { fill: rgba(255,255,255,0.6); } .auth0-lock.auth0-lock .auth0-lock-submit.vslide-enter { opacity: 0; } .auth0-lock.auth0-lock .auth0-lock-submit.vslide-enter.vslide-enter-active { opacity: 1; -webkit-transition-duration: 0.5s; transition-duration: 0.5s; } .auth0-lock.auth0-lock .auth0-loading-container { position: relative; display: none; } .auth0-lock.auth0-lock .auth0-loading-container .auth0-loading { position: absolute; top: 4px; left: 44%; width: 30px; height: 30px; border-width: 2px; border-style: solid; border-color: rgba(0,0,0,0.4) rgba(0,0,0,0.4) rgba(0,0,0,0.2) rgba(0,0,0,0.2); opacity: 0.9; border-radius: 20px; -webkit-animation: rotate 1s linear infinite; animation: rotate 1s linear infinite; } .auth0-lock.auth0-lock.auth0-lock-mode-loading .auth0-lock-content, .auth0-lock.auth0-lock.auth0-lock-mode-loading .auth0-lock-terms { opacity: 0.3; pointer-events: none; } .auth0-lock.auth0-lock.auth0-lock-mode-loading .auth0-lock-submit { background-color: #eee !important; -webkit-transition: background 0.5s ease; transition: background 0.5s ease; cursor: initial; pointer-events: none; } .auth0-lock.auth0-lock.auth0-lock-mode-loading .auth0-lock-submit span { -webkit-animation: fadeOutDownBig 1s both; animation: fadeOutDownBig 1s both; } .auth0-lock.auth0-lock.auth0-lock-mode-loading .auth0-loading-container { -webkit-animation: fadeInDownBig 1s both; animation: fadeInDownBig 1s both; display: block; } .auth0-lock.auth0-lock.auth0-lock-mode-loading .auth0-lock-back-button { opacity: 0; visibility: hidden; -webkit-transition: 0.25s; transition: 0.25s; } .auth0-lock.auth0-lock.auth0-lock-auxiliary .auth0-lock-header-avatar { -webkit-animation: fadeOut 0.3s both; animation: fadeOut 0.3s both; } .auth0-lock.auth0-lock.auth0-lock-auxiliary .auth0-lock-content, .auth0-lock.auth0-lock.auth0-lock-auxiliary .auth0-lock-terms, .auth0-lock.auth0-lock.auth0-lock-auxiliary .auth0-lock-submit { opacity: 0.3; pointer-events: none; } .auth0-lock.auth0-lock.auth0-lock-auxiliary .auth0-lock-back-button { opacity: 0; visibility: hidden; -webkit-transition: 0.25s; transition: 0.25s; } .auth0-lock.auth0-lock .auth0-lock-select-country { background-color: #fff; position: absolute; padding: 0; font-size: 14px; color: #666; bottom: 0; top: 0; right: 0; left: 0; border-radius: 5px; overflow: hidden; z-index: 200; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-back-button { opacity: 1; visibility: visible; top: 19px; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-search { background-color: #e3e5e9; padding: 10px; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-input-wrap { margin: 0; border: none; margin-left: 40px; overflow: hidden; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-icon { width: 16px; height: 16px; top: 12px; left: 9px; z-index: 1; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-input-search { border: none; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-list-code { position: relative; height: calc(100% - 60px); overflow-y: scroll; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-list-code ul { margin: 0; padding: 0; } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-list-code li { list-style: none; text-align: left; border-bottom: 1px solid #eee; cursor: pointer; color: #000; font-size: 14px; padding: 15px 20px; margin: 0; text-overflow: ellipsis; width: 100%; white-space: nowrap; overflow: hidden; box-sizing: border-box; } @media (min-width: 481px) { .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-list-code li { padding: 10px 20px; } } .auth0-lock.auth0-lock .auth0-lock-select-country .auth0-lock-list-code li.auth0-lock-list-code-highlighted { background-color: #2eb5ff; color: #fff; } .auth0-lock.auth0-lock .auth0-lock-confirmation { background-color: #fff; position: absolute; text-align: center; line-height: 2; font-size: 14px; color: #666; width: 100%; height: 100%; top: 0; left: 0; z-index: 200; border-radius: 5px; } .auth0-lock.auth0-lock .auth0-lock-confirmation .auth0-lock-confirmation-content { width: 100%; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); position: absolute; } .auth0-lock.auth0-lock .auth0-lock-confirmation p { padding: 0 14px; margin-bottom: 6px; } .auth0-lock.auth0-lock .auth0-lock-confirmation a { display: block; font-weight: 500; color: #09c; } .auth0-lock.auth0-lock .auth0-lock-confirmation a svg { width: 15px; height: 16px; margin-bottom: -4px; margin-left: 0px; display: inline-block; -webkit-transition: -webkit-transform 1s ease; transition: -webkit-transform 1s ease; transition: transform 1s ease; transition: transform 1s ease, -webkit-transform 1s ease; -webkit-transform: rotate(120deg); transform: rotate(120deg); } .auth0-lock.auth0-lock .auth0-lock-confirmation a svg path { fill: #09c; } .auth0-lock.auth0-lock .auth0-lock-confirmation a:hover svg { -webkit-transform: rotate(490deg); transform: rotate(490deg); } .auth0-lock.auth0-lock .auth0-lock-confirmation .auth0-lock-sent-label { color: #008000; -webkit-animation: fadeIn 1s both; animation: fadeIn 1s both; font-weight: 600; } .auth0-lock.auth0-lock .auth0-lock-confirmation .auth0-lock-sent-failed-label { color: #f00; -webkit-animation: fadeIn 1s both; animation: fadeIn 1s both; font-weight: 600; } .auth0-lock.auth0-lock .auth0-lock-confirmation .checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke-miterlimit: 10; stroke: #7ac142; fill: none; -webkit-animation: stroke 0.6s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards; animation: stroke 0.6s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards; } .auth0-lock.auth0-lock .auth0-lock-confirmation .checkmark { width: 56px; height: 56px; border-radius: 50%; display: block; stroke-width: 2; stroke: #fff; stroke-miterlimit: 10; margin: 0 auto; box-shadow: inset 0px 0px 0px #7ac142; -webkit-animation: fill 0.4s ease-in-out 0.7s forwards, scale 0.3s ease-in-out 1.1s both; animation: fill 0.4s ease-in-out 0.7s forwards, scale 0.3s ease-in-out 1.1s both; } .auth0-lock.auth0-lock .auth0-lock-confirmation .checkmark__check { -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; } .auth0-lock.auth0-lock .auth0-lock-confirmation .auth0-lock-back-button { opacity: 1; visibility: visible; } .auth0-lock.auth0-lock .auth0-lock-forgot-link { font-size: 12px; display: block; text-align: center; margin: 30px 0 0 0; color: #5c666f; } .auth0-lock.auth0-lock .auth0-lock-badge-bottom { position: absolute; bottom: 15px; left: 15px; z-index: -1; text-align: center; padding: 6px 10px; border-radius: 3px; background: rgba(255,255,255,0.1); } .auth0-lock.auth0-lock .auth0-lock-badge-bottom .auth0-lock-badge { display: inline-block; color: rgba(255,255,255,0.7); font-size: 14px; } .auth0-lock.auth0-lock .auth0-lock-badge-bottom .auth0-lock-badge svg { vertical-align: middle; margin: 0 4px; } .auth0-lock.auth0-lock .auth0-lock-badge-bottom .auth0-lock-badge:hover svg g#LogoBadge { fill: #eb5424; fill-opacity: 1; } .auth0-lock.auth0-lock.auth0-lock-opened { opacity: 1; pointer-events: auto; } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened { position: absolute; } } .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-overlay { opacity: 0.9; -webkit-transition: opacity 0.3s ease-in 0s; transition: opacity 0.3s ease-in 0s; } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-overlay { display: none; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-header { border-radius: 0; } } .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-header-bg .auth0-lock-header-bg-blur { opacity: 0.4; -webkit-transition: 1s ease 1s; transition: 1s ease 1s; } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-header-avatar { width: 70px; height: 70px; margin: 10px auto 0; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-firstname { margin-top: 72px; } } .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-widget { opacity: 1; -webkit-transform: translateY(0%) scale(1); transform: translateY(0%) scale(1); } @media (min-width: 481px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-widget { -webkit-transition: -webkit-transform 0.6s, opacity 0.6s; -webkit-transition: opacity 0.6s, -webkit-transform 0.6s; transition: opacity 0.6s, -webkit-transform 0.6s; transition: transform 0.6s, opacity 0.6s; transition: transform 0.6s, opacity 0.6s, -webkit-transform 0.6s; -webkit-transition-delay: 0.5s; transition-delay: 0.5s; box-shadow: 0 0 40px 4px #111118; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-widget { width: 100%; height: 100%; position: absolute; top: 0; bottom: 0; border-radius: 0; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-widget-container { height: 100%; overflow-y: scroll; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-cred-pane { border-radius: 0; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-body-content { background: #fff; min-height: calc(100vh - 188px); display: table; width: 100%; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-content { width: 100%; display: table-cell; vertical-align: middle; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-content .auth0-lock-form p { font-size: 14px; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-tabs-container { position: absolute; top: 0; left: 0; width: 100%; margin: 0; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-terms { position: absolute; bottom: -42px; width: 100%; left: 0; box-sizing: border-box; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-sign-up-terms-agreement label input { top: 2px; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-submit { border-radius: 0; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-badge-bottom { display: none; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened .auth0-lock-confirmation { border-radius: 0; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened.auth0-lock-iphone .auth0-lock-body-content { min-height: calc(100vh - 256px); } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened.auth0-lock-no-submit .auth0-lock-body-content { min-height: calc(100vh - 118px); } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened.auth0-lock-no-submit.auth0-lock-iphone .auth0-lock-body-content { min-height: calc(100vh - 186px); } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened.auth0-lock-with-terms .auth0-lock-body-content { margin-bottom: 42px; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened.auth0-lock-with-tabs .auth0-lock-body-content { min-height: calc(100vh - 228px); padding-top: 40px; } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened.auth0-lock-with-tabs.auth0-lock-with-terms .auth0-lock-body-content { min-height: calc(100vh - 228px - 42px); } } @media screen and (max-width: 480px) { .auth0-lock.auth0-lock.auth0-lock-opened.auth0-lock-with-tabs.auth0-lock-iphone .auth0-lock-body-content { min-height: calc(100vh - 296px); } } .auth0-lock.auth0-lock.auth0-lock-opened-in-frame { opacity: 1; pointer-events: auto; position: relative; width: auto; margin-left: auto; margin-right: auto; } .auth0-lock.auth0-lock.auth0-lock-opened-in-frame .auth0-lock-header-bg .auth0-lock-header-bg-blur { opacity: 0.4; -webkit-transition: 1s ease 1s; transition: 1s ease 1s; } .auth0-lock.auth0-lock.auth0-lock-opened-in-frame .auth0-lock-header-bg .auth0-lock-header-bg-blur.auth0-lock-no-grayscale { opacity: 0.5; } .auth0-lock.auth0-lock.auth0-lock-opened-in-frame .auth0-lock-widget { opacity: 1; -webkit-transform: translateY(0%) scale(1); transform: translateY(0%) scale(1); -webkit-transition: -webkit-transform 0.6s, opacity 0.6s; -webkit-transition: opacity 0.6s, -webkit-transform 0.6s; transition: opacity 0.6s, -webkit-transform 0.6s; transition: transform 0.6s, opacity 0.6s; transition: transform 0.6s, opacity 0.6s, -webkit-transform 0.6s; -webkit-transition-delay: 0.5s; transition-delay: 0.5s; margin: auto; } .auth0-lock.auth0-lock.auth0-lock-opened-in-frame .global-error { position: absolute; display: none; } .auth0-lock .auth0-lock-form div.auth0-lock-pane-separator { padding-top: 15px; } #social-container.lock-container .auth0-lock-mode-loading .auth0-lock-content { opacity: 1; } #social-container.lock-container .auth0-lock-mode-loading .auth0-lock-content .auth0-lock-social-buttons-container { opacity: 0.3; } .auth0-lock.auth0-lock .auth0-lock-tabs-container { margin: -20px -20px 20px; height: 40px; } .auth0-lock.auth0-lock .auth0-lock-tabs { background: #fff; padding: 0; margin: 0; font-size: 13px; letter-spacing: 0.7px; box-shadow: 0 1px 0 0 rgba(92,102,111,0.2); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -ms-flex-line-pack: center; align-content: center; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; } .auth0-lock.auth0-lock .auth0-lock-tabs:after { content: ""; display: table; clear: both; } .auth0-lock.auth0-lock .auth0-lock-tabs li { width: 50%; display: block; list-style: none; float: left; padding: 0; margin: 0; text-align: center; cursor: pointer; } .auth0-lock.auth0-lock .auth0-lock-tabs li a { padding: 11px 10px; display: block; text-decoration: none; color: rgba(92,102,111,0.6); font-weight: 500; } .auth0-lock.auth0-lock .auth0-lock-tabs li.auth0-lock-tabs-current { box-shadow: 0 1px 0 0 #5c666f; cursor: default; } .auth0-lock.auth0-lock .auth0-lock-tabs li.auth0-lock-tabs-current a { color: #5c666f; } .auth0-lock-password-strength { width: 100%; bottom: 41px; display: block; text-align: left; padding-top: 0; -webkit-animation-duration: 0.3s; animation-duration: 0.3s; -webkit-transition: height 0.3s ease; transition: height 0.3s ease; } @media (min-width: 481px) { .auth0-lock-password-strength { position: absolute; background: #1f242e; box-shadow: 0 0 20px 0 rgba(0,0,0,0.5); -webkit-transition: none; transition: none; width: 100%; border-radius: 3px; z-index: 1000; } .auth0-lock-password-strength:after { top: 100%; left: 21px; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-top-color: #1f242e; border-width: 9px; margin-left: -9px; } } .auth0-lock-password-strength.fadeOut { opacity: 0; -webkit-transition: 0.3s 0.3s ease; transition: 0.3s 0.3s ease; visibility: hidden; } .auth0-lock-password-strength.fadeIn ul { -webkit-animation: fadeIn 0.3s 0.1s both; animation: fadeIn 0.3s 0.1s both; } .auth0-lock-password-strength li, .auth0-lock-password-strength ul { margin: 0; padding: 0; list-style: none; color: #dd4b39; } .auth0-lock-password-strength > ul { padding: 15px; padding-top: 0; } @media (min-width: 481px) { .auth0-lock-password-strength > ul { padding-top: 12px; } } .auth0-lock-password-strength li span { background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+RXJyb3I8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGRlZnM+PC9kZWZzPiAgICA8ZyBpZD0iUGFzc3dvcmQtUG9saWN5IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJBcnRib2FyZC0xIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjAwLjAwMDAwMCwgLTE0OC4wMDAwMDApIj4gICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUwLjAwMDAwMCwgNzUuMDAwMDAwKSI+ICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC1Db3B5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNS4wMDAwMDAsIDM2LjAwMDAwMCkiPiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9IkVycm9yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNS4wMDAwMDAsIDM3LjAwMDAwMCkiPiAgICAgICAgICAgICAgICAgICAgICAgIDxlbGxpcHNlIGlkPSJPdmFsLTkwIiBmaWxsPSIjQkU0NTI3IiBjeD0iNiIgY3k9IjYiIHJ4PSI2IiByeT0iNiI+PC9lbGxpcHNlPiAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik05LDMuNjA0Mjg1NzEgTDguMzk1NzE0MjksMyBMNiw1LjM5NTcxNDI5IEwzLjYwNDI4NTcxLDMgTDMsMy42MDQyODU3MSBMNS4zOTU3MTQyOSw2IEwzLDguMzk1NzE0MjkgTDMuNjA0Mjg1NzEsOSBMNiw2LjYwNDI4NTcxIEw4LjM5NTcxNDI5LDkgTDksOC4zOTU3MTQyOSBMNi42MDQyODU3MSw2IEw5LDMuNjA0Mjg1NzEgWiIgaWQ9IlNoYXBlIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICAgICAgICAgICAgICA8L2c+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4="); background-position: left center; background-repeat: no-repeat; padding-left: 20px; } .auth0-lock-password-strength ul li ul { margin-left: 20px; } .auth0-lock-password-strength ul li ul li { color: #000; } @media (min-width: 481px) { .auth0-lock-password-strength ul li ul li { color: #fff; } } .auth0-lock-password-strength ul li ul li span { background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMTNweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTMgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+T3ZhbCAxPC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPjwvZGVmcz4gICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgICAgICA8ZyBpZD0iSXBob25lLTYtLS1OYXRpdmUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NC4wMDAwMDAsIC0yMTQuMDAwMDAwKSIgZmlsbD0iI0QwRDJEMyI+ICAgICAgICAgICAgPHBhdGggZD0iTTUwLjExNDk3MzMsMjI2IEM1My40Mjg2ODE4LDIyNiA1Ni4xMTQ5NzMzLDIyMy4zMTM3MDggNTYuMTE0OTczMywyMjAgQzU2LjExNDk3MzMsMjE2LjY4NjI5MiA1My40Mjg2ODE4LDIxNCA1MC4xMTQ5NzMzLDIxNCBDNDYuODAxMjY0OCwyMTQgNDQuMTE0OTczMywyMTYuNjg2MjkyIDQ0LjExNDk3MzMsMjIwIEM0NC4xMTQ5NzMzLDIyMy4zMTM3MDggNDYuODAxMjY0OCwyMjYgNTAuMTE0OTczMywyMjYgWiIgaWQ9Ik92YWwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+"); } .auth0-lock-password-strength li { line-height: 1.5; margin-top: 5px; font-size: 13px; -webkit-transition: color 0.3s ease-in; transition: color 0.3s ease-in; position: relative; } .auth0-lock-password-strength li.auth0-lock-checked { color: #7ed321; } .auth0-lock-password-strength li.auth0-lock-checked span { background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMTNweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTMgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+R3JvdXAgNDwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9IklwaG9uZS02LS0tTmF0aXZlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDQuMDAwMDAwLCAtMjQwLjAwMDAwMCkiPiAgICAgICAgICAgIDxnIGlkPSJHcm91cC00IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0NC4xMTQ5NzMsIDI0MC4wMDAwMDApIj4gICAgICAgICAgICAgICAgPGVsbGlwc2UgaWQ9Ik92YWwtOTAiIGZpbGw9IiM4MEQxMzUiIGN4PSI2IiBjeT0iNiIgcng9IjYiIHJ5PSI2Ij48L2VsbGlwc2U+ICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik00LjU0MjM1MzYxLDcuNzMzNzgwNzYgTDIuNjQ1ODIxNDksNS44NjgwMDg5NSBMMiw2LjQ5ODg4MTQzIEw0LjU0MjM1MzYxLDkgTDEwLDMuNjMwODcyNDggTDkuMzU4NzI2NTUsMyBMNC41NDIzNTM2MSw3LjczMzc4MDc2IFoiIGlkPSJTaGFwZSIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPiAgICAgICAgICAgIDwvZz4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPg=="); } .auth0-lock-error-msg { color: #f00; font-size: 12px; margin-top: 5px; } @media (min-width: 481px) { .auth0-lock-error-msg { color: #000; background: #fff; box-shadow: 0 0 5px 0 rgba(0,0,0,0.6); margin: 0; border-radius: 3px; position: absolute; left: calc(100% + 7px); top: 1px; display: inline-table; } .auth0-lock-error-msg span { background: #fff; padding: 12px 15px; display: block; position: relative; border-radius: 3px; z-index: 1; } .auth0-lock-error-msg:after { content: ""; background: #fff; height: 6px; width: 6px; position: absolute; pointer-events: none; box-shadow: 0 0 5px 0 rgba(0,0,0,0.6); right: calc(100% - 3px); top: 50%; -webkit-transform: translateY(-50%) rotate(45deg); transform: translateY(-50%) rotate(45deg); } } .auth0-lock .auth0-loading-screen { min-height: 42px; } .auth0-lock .auth0-loading-screen .auth0-loading-container { display: block; } .auth0-lock .auth0-sso-notice-container { background: rgba(0,0,0,0.03); color: rgba(0,0,0,0.54); padding: 10px 0; margin: -20px -20px 20px; text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; } .auth0-lock .auth0-sso-notice-container .auth0-lock-icon { width: 12px; height: 14px; position: relative; top: 2px; right: 2px; } .auth0-lock .auth0-lock-last-login-pane .auth0-lock-social-button.auth0-lock-social-big-button { margin-top: 0; } .auth0-lock .auth0-lock-last-login-pane .auth0-lock-social-button[data-provider="auth0"] .auth0-lock-social-button-text { text-transform: none; font-size: 12px; font-weight: normal; } .auth0-lock .auth0-lock-sign-up-terms-agreement label input { margin-right: 5px; position: relative; } input[type="button"] { cursor: pointer; } ',l=function(t){function e(n,o,s){r(this,e);var c=i(this,t.call(this,n,o,s,u.a));return a(),c}return o(e,t),e}(s.a);e.a=l,l.version="10.16.0",l.css=c},function(t,e,n){function r(){this.webAuth=null,this.version=i.raw,this.extensibilityPoints=["popup.authorize","popup.getPopupHandler"]}var i=n(55),o=n(22),a=n(166);r.prototype.setWebAuth=function(t){this.webAuth=t},r.prototype.supports=function(t){var e=o.getWindow();return(!!e.cordova||!!e.electron)&&this.extensibilityPoints.indexOf(t)>-1},r.prototype.init=function(){return new a(this.webAuth)},t.exports=r},function(t,e,n){function r(t){u.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=this.baseOptions._sendTelemetry!==!1||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl="https://"+this.baseOptions.domain,this.request=new o(this.baseOptions),this.passwordless=new p(this.request,this.baseOptions),this.dbConnection=new g(this.request,this.baseOptions),this.warn=new M({disableWarnings:!!t._disableDeprecationWarnings})}var i=n(16),o=n(66),a=n(40),s=n(17),u=n(28),c=n(36),l=n(173),M=n(53),p=n(169),g=n(168);r.prototype.buildAuthorizeUrl=function(t){var e,n;return u.check(t,{type:"object",message:"options parameter is not valid"}),e=s.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(t),u.check(e,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(t){return t.responseType.indexOf("code")===-1&&t.responseType.indexOf("id_token")!==-1}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e.connection_scope&&u.isArray(e.connection_scope)&&(e.connection_scope=e.connection_scope.join(",")),e=s.toSnakeCase(e,["auth0Client"]),e=l.oauthAuthorizeParams(this.warn,e),n=a.stringify(e),i(this.baseOptions.rootUrl,"authorize","?"+n)},r.prototype.buildLogoutUrl=function(t){var e,n;return u.check(t,{optional:!0,type:"object",message:"options parameter is not valid"}),e=s.merge(this.baseOptions,["clientID"]).with(t||{}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=s.toSnakeCase(e,["auth0Client","returnTo"]),n=a.stringify(e),i(this.baseOptions.rootUrl,"v2","logout","?"+n)},r.prototype.loginWithDefaultDirectory=function(t,e){return u.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="password",this.oauthToken(t,e)},r.prototype.login=function(t,e){return u.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(t,e)},r.prototype.oauthToken=function(t,e){var n,r;return u.check(t,{type:"object",message:"options parameter is not valid"}),u.check(e,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"oauth","token"),r=s.merge(this.baseOptions,["clientID","scope","audience"]).with(t),u.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=s.toSnakeCase(r,["auth0Client"]),r=l.oauthTokenParams(this.warn,r),r.grant_type=r.grant_type,this.request.post(n).send(r).end(c(e))},r.prototype.loginWithResourceOwner=function(t,e){var n,r;return u.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),u.check(e,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"oauth","ro"),r=s.merge(this.baseOptions,["clientID","scope"]).with(t,["username","password","scope","connection","device"]),r=s.toSnakeCase(r,["auth0Client"]),r.grant_type=r.grant_type||"password",this.request.post(n).send(r).end(c(e))},r.prototype.getSSOData=function(t,e){var n,r="";return"function"==typeof t&&(e=t,t=!1),u.check(t,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),u.check(e,{type:"function",message:"cb parameter is not valid"}),t&&(r="?"+a.stringify({ldaps:1,client_id:this.baseOptions.clientID})),n=i(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(c(e))},r.prototype.userInfo=function(t,e){var n;return u.check(t,{type:"string",message:"accessToken parameter is not valid"}),u.check(e,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+t).end(c(e,{ignoreCasing:!0}))},r.prototype.delegation=function(t,e){var n,r;return u.check(t,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),u.check(e,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"delegation"),r=s.merge(this.baseOptions,["clientID"]).with(t),r=s.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(c(e))},r.prototype.getUserCountry=function(t){var e;return u.check(t,{type:"function",message:"cb parameter is not valid"}),e=i(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(e).end(c(t))},t.exports=r},function(t,e,n){function r(t){var e=t.length%4,n=4-e;return 0===e?t:t+new Array(1+n).join("=")}function i(t){for(var e=new Array(t.length),n=0;n4&&void 0!==arguments[4]&&arguments[4];n.i(s.b)(s.g,"lock",t,function(t){return(o||g(t,"src")===e)&&(t=d(t,"syncStatus","ok"),t=d(t,"url",r),t=d(t,"src",e),t=d(t,"displayName",i)),t})}function a(t,e){n.i(s.b)(s.g,"lock",t,function(t){return"src"===g(t,"src")?d(t,"syncStatus","error"):t})}var s=n(11),u=n(20),c=n(125),l=n(235),M=n(1);e.a=r,n.d(e,"b",function(){return f});var p=n.i(u.a)(["avatar"]),g=p.tget,d=p.tset,h={},f=l.a(r,300)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(3),s=n.n(a),u=n(0),c=n.n(u),l=n(37),M=n(1),p=n(10),g=n(23),d=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.lock,r=t.loginLabel,i=t.signUpLink,o=t.signUpLabel,a="login"===n.i(p.i)(e);return c.a.createElement("div",{className:"auth0-lock-tabs-container"},c.a.createElement("ul",{className:"auth0-lock-tabs"},c.a.createElement(h,{label:r,current:a,clickHandler:this.handleLoginClick.bind(this)}),c.a.createElement(h,{label:o,current:!a,clickHandler:this.handleSignUpClick.bind(this),clickWithHrefHandler:this.handleSignUpWithHrefClick.bind(this),href:i})))},e.prototype.handleLoginClick=function(){n.i(l.e)(M.id(this.props.lock))},e.prototype.handleSignUpClick=function(){this.props.signUpLink&&n.i(g.c)(M.id(this.props.lock),!0),n.i(l.f)(M.id(this.props.lock))},e.prototype.handleSignUpWithHrefClick=function(){n.i(g.c)(M.id(this.props.lock),!0)},e}(c.a.Component);e.a=d,d.propTypes={lock:s.a.object.isRequired,loginLabel:s.a.string.isRequired,signUpLabel:s.a.string.isRequired,signUpLink:s.a.string};var h=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.handleClick=function(t){this.props.href?this.props.clickWithHrefHandler():(t.preventDefault(),this.props.clickHandler())},e.prototype.render=function(){var t=this.props,e=t.current,n=t.href,r=t.label,i=e?"auth0-lock-tabs-current":"";return c.a.createElement("li",{className:i},c.a.createElement("a",{href:n||"#",onClick:this.handleClick.bind(this)},r))},e}(c.a.Component)},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(75);e.a=function(t){var e=t.children;return i.a.createElement("div",{className:"auth0-sso-notice-container"},i.a.createElement("span",{dangerouslySetInnerHTML:{__html:o.a}})," "," ",i.a.createElement("span",{className:"auth0-sso-notice"},e))}},function(t,e,n){"use strict";function r(t){return["free","dev"].indexOf(I(t,["tenant","subscription"]))>-1}function i(t,e){return t.getIn(["client","strategies"],n.i(g.List)()).find(o(e))||n.i(g.Map)()}function o(t){return function(e){return e.get("name")===t}}function a(t){return"auth0"===t?"database":"email"===t||"sms"===t?"passwordless":f.b[t]?"social":y.a[t]?"enterprise":["oauth1","oauth2"].indexOf(t)!==-1?"social":"unknown"}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null==t.username)return null;var e=N({},L,t),n=L.username.min,r=L.username.max;return e.username.min=parseInt(e.username.min,10)||n,e.username.max=parseInt(e.username.max,10)||r,e.username.min>e.username.max&&(e.username.min=n,e.username.max=r),e}function u(t,e){return j(t,c(e))}function c(t){return new d.a.fromJS({id:t.id,tenant:{name:t.tenant,subscription:t.subscription},connections:l(t)})}function l(t){for(var e=m.toJS(),n=function(){var n,i=t.strategies[r],o=a(i.name);if("passwordless"===o)return"continue";var s=i.connections.map(function(t){return M(o,i.name,t)});(n=e[o]).push.apply(n,s)},r=0;r<(t.strategies||[]).length;r++){n()}return e}function M(t,e,n){var r={name:n.name,strategy:e,type:t};if("database"===t&&(r.passwordPolicy=n.passwordPolicy||"none",r.allowSignup="boolean"!=typeof n.showSignup||n.showSignup,r.allowForgot="boolean"!=typeof n.showForgot||n.showForgot,r.requireUsername="boolean"==typeof n.requires_username&&n.requires_username,r.validation=s(n.validation)),"enterprise"===t){var i=n.domain_aliases||[];n.domain&&i.unshift(n.domain),r.domains=i}return r}function p(t){return I(t,"connections",m)}var g=n(9),d=n.n(g),h=n(20),f=n(38),y=n(18);e.b=r,e.c=u,e.a=p;var N=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){if(!t)return t;if("User closed the popup window"===t.status)return{code:"lock.popup_closed",error:"lock.popup_closed",description:"Popup window closed."};if("unauthorized"===t.code)return t.description&&"access_denied"!==t.description?"user is blocked"===t.description?{code:"blocked_user",error:"blocked_user",description:t.description}:{code:"rule_error",error:"rule_error",description:t.description}:{code:"lock.unauthorized",error:"lock.unauthorized",description:t.description||"Permissions were not granted."};var e={error:t.code?t.code:t.statusCode||t.error,description:t.description||t.code};return void 0===e.error&&void 0===e.description?t:e}function o(t,e){return t?function(t){return e(i(t))}:function(t,n){return e(i(t),n)}}function a(t){t.connection_scope,t.popup,t.popupOptions;return r(t,["connection_scope","popup","popupOptions"])}e.c=i,e.a=o,e.b=a},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=arguments.length,o=Array(i>4?i-4:0),a=4;a=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(0),u=n.n(s),c=n(32),l=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:function(){},n=document.createElement("img");return n.addEventListener("load",function(){e(null,n)}),n.addEventListener("error",function(t){e(t)}),n.src=t,n}e.a=r},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,a,s,u=t.length;a=r(t),s=new M(3*u/4-a),i=a>0?u-4:u;var c=0;for(e=0,n=0;e>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===a?(o=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[c++]=255&o):1===a&&(o=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,n){for(var r,i=[],o=e;ol?l:u+a));return 1===r?(e=t[n-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],M="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,d=p.length;g-1}};t.exports=i},function(t,e,n){function r(t){var e=t.length%4,n=4-e;return 0===e?t:t+new Array(1+n).join("=")}function i(t){for(var e="",n=0;n60)throw new s.ConfigurationError("The leeway should be positive and lower than a minute.");if(c.indexOf(this.expectedAlg)===-1)throw new s.ConfigurationError("Algorithm "+this.expectedAlg+" is not supported. (Expected algs: ["+c.join(",")+"])")}var i=n(250),o=n(128),a=n(249),s=n(248),u=n(247),c=["RS256"];r.prototype.verify=function(t,e,n){var r=this.decode(t);if(r instanceof Error)return n(r,!1);var i=r.encoded.header+"."+r.encoded.payload,a=o.decodeToHEX(r.encoded.signature),u=r.header.alg,l=r.header.kid,M=r.payload.aud,p=r.payload.iss,g=r.payload.exp,d=r.payload.iat,h=r.payload.nonce||null;if(this.issuer!==p)return n(new s.TokenValidationError("Issuer "+p+" is not valid."),!1);if(this.audience!==M)return n(new s.TokenValidationError("Audience "+M+" is not valid."),!1);if(this.expectedAlg!==u)return n(new s.TokenValidationError("Algorithm "+u+" is not supported. (Expected algs: ["+c.join(",")+"])"),!1);if(h!==e)return n(new s.TokenValidationError("Nonce does not match."),!1);var f=this.verifyExpAndIat(g,d);if(f)return n(f,!1);this.getRsaVerifier(p,l,function(t,e){if(t)return n(t);e.verify(i,a)?n(null,r.payload):n(new s.TokenValidationError("Invalid signature."))})},r.prototype.verifyExpAndIat=function(t,e){if(this.__disableExpirationCheck)return null;var n=new Date,r=new Date(0);if(r.setUTCSeconds(t+this.leeway),n>r)return new s.TokenValidationError("Expired token.");var i=new Date(0);return i.setUTCSeconds(e-this.leeway),n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(r)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},e.compact=function(t,n){if("object"!=typeof t||null===t)return t;var r=n||[],i=r.indexOf(t);if(i!==-1)return r[i];if(r.push(t),Array.isArray(t)){for(var o=[],a=0;a.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=f.createElement(Y,{child:e});if(t){var u=L.get(t);a=u._processChildContext(u._context)}else a=b;var l=p(n);if(l){if(E(l._currentElement.props.child,e)){var M=l._renderedComponent.getPublicInstance(),d=r&&function(){r.call(M)};return Q._updateRootComponent(l,s,a,n,d),M}Q.unmountComponentAtNode(n)}var h=i(n),y=h&&!!o(h),N=c(n),D=y&&!l&&!N,j=Q._renderNewRootComponent(s,n,D,a)._renderedComponent.getPublicInstance();return r&&r.call(j),j},render:function(t,e,n){return Q._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){l(t)||g("40");var e=p(t);if(!e){c(t),1===t.nodeType&&t.hasAttribute(x);return!1}return delete U[e._instance.rootID],v.batchedUpdates(u,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,o,a){if(l(e)||g("41"),o){var s=i(e);if(m.canReuseMarkup(t,s))return void N.precacheNode(n,s);var u=s.getAttribute(m.CHECKSUM_ATTR_NAME);s.removeAttribute(m.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(m.CHECKSUM_ATTR_NAME,u);var M=t,p=r(M,c),h=" (client) "+M.substring(p-20,p+20)+"\n (server) "+c.substring(p-20,p+20);e.nodeType===S&&g("42",h)}if(e.nodeType===S&&g("43"),a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);d.insertTreeBefore(e,t,null)}else T(e,t),N.precacheNode(n,e.firstChild)}};t.exports=Q},function(t,e,n){"use strict";var r=n(4),i=n(26),o=(n(2),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||t===!1?o.EMPTY:i.isValidElement(t)?"function"==typeof t.type?o.COMPOSITE:o.HOST:void r("26",t)}});t.exports=o},function(t,e,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){r.currentScrollLeft=t.x,r.currentScrollTop=t.y}};t.exports=r},function(t,e,n){"use strict";function r(t,e){return null==e&&i("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}var i=n(4);n(2);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}t.exports=r},function(t,e,n){"use strict";function r(t){for(var e;(e=t._renderedNodeType)===i.COMPOSITE;)t=t._renderedComponent;return e===i.HOST?t._renderedComponent:e===i.EMPTY?null:void 0}var i=n(145);t.exports=r},function(t,e,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=n(12),o=null;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function i(t){if(s[t])return s[t];if(!a[t])return t;var e=a[t];for(var n in e)if(e.hasOwnProperty(n)&&n in u)return s[t]=e[n];return""}var o=n(12),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};o.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=i},function(t,e,n){"use strict";function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(t){return"function"==typeof t&&void 0!==t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function o(t,e){var n;if(null===t||t===!1)n=c.create(o);else if("object"==typeof t){var s=t,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var p="";p+=r(s._owner),a("130",null==u?u:typeof u,p)}"string"==typeof s.type?n=l.createInternalComponent(s):i(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new M(s)}else"string"==typeof t||"number"==typeof t?n=l.createInstanceForText(t):a("131",typeof t);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),s=n(5),u=n(279),c=n(140),l=n(142),M=(n(356),n(2),n(6),function(t){this.construct(t)});s(M.prototype,u,{_instantiateReactComponent:o}),t.exports=o},function(t,e,n){"use strict";function r(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!i[t.type]:"textarea"===e}var i={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},function(t,e,n){"use strict";var r=n(12),i=n(64),o=n(65),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){if(3===t.nodeType)return void(t.nodeValue=e);o(t,i(e))})),t.exports=a},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function i(t,e,n,o){var p=typeof t;if("undefined"!==p&&"boolean"!==p||(t=null),null===t||"string"===p||"number"===p||"object"===p&&t.$$typeof===s)return n(o,t,""===e?l+r(t,0):e),1;var g,d,h=0,f=""===e?l:e+M;if(Array.isArray(t))for(var y=0;y-1){var n=new RegExp("rv:([0-9]{2,2}[.0-9]{0,})");null!==n.exec(e)&&(t=parseFloat(RegExp.$1))}return t>=8}function r(){try{var t=navigator.userAgent;return t.indexOf("Fennec/")!=-1||t.indexOf("Firefox/")!=-1&&t.indexOf("Android")!=-1}catch(t){}return!1}function i(){return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage}function o(t){/^https?:\/\//.test(t)||(t=window.location.href);var e=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(t);return e?e[1]:t}function a(){for(var t=(window.location,window.opener.frames),e=t.length-1;e>=0;e--)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&t[e].name===s)return t[e]}catch(t){}}var s="__winchan_relay_frame",u="die",c=n();return i()?{open:function(n,i){function a(){if(p&&document.body.removeChild(p),p=void 0,f&&(f=clearInterval(f)),e(window,"message",l),e(window,"unload",a),h)try{h.close()}catch(t){d.postMessage(u,g)}h=d=void 0}function l(t){if(t.origin===g){try{var e=JSON.parse(t.data)}catch(t){if(!i)throw t;i(t)}"ready"===e.a?d.postMessage(y,g):"error"===e.a?(a(),i&&(i(e.d),i=null)):"response"===e.a&&(a(),i&&(i(null,e.d),i=null))}}if(!i)throw"missing required callback argument";var M;n.url||(M="missing required 'url' parameter"),n.relay_url||(M="missing required 'relay_url' parameter"),M&&setTimeout(function(){i(M)},0),n.window_name||(n.window_name=null),n.window_features&&!r()||(n.window_features=void 0);var p,g=n.origin||o(n.url);if(g!==o(n.relay_url))return setTimeout(function(){i("invalid arguments: origin of url and relay_url must match")},0);var d;c&&(p=document.createElement("iframe"),p.setAttribute("src",n.relay_url),p.style.display="none",p.setAttribute("name",s),document.body.appendChild(p),d=p.contentWindow);var h=n.popup||window.open(n.url,n.window_name,n.window_features);n.popup&&(h.location.href=n.url),d||(d=h);var f=setInterval(function(){h&&h.closed&&(a(),i&&(i("User closed the popup window"),i=null))},500),y=JSON.stringify({a:"request",d:n.params});return t(window,"unload",a),t(window,"message",l),{close:a,focus:function(){if(h)try{h.focus()}catch(t){}}}},onOpen:function(n){function r(t){t=JSON.stringify(t),c?l.doPost(t,s):l.postMessage(t,s)}function i(t){var o;try{o=JSON.parse(t.data)}catch(t){}o&&"request"===o.a&&(e(window,"message",i),s=t.origin,n&&setTimeout(function(){n(s,o.d,function(t){n=void 0,r({a:"response",d:t})})},0))}function o(t){if(t.data===u)try{window.close()}catch(t){}}var s="*",l=c?a():window.opener;if(!l)throw"can't find relay frame";t(c?l:window,"message",i),t(c?l:window,"message",o);try{r({a:"ready"})}catch(e){t(l,"load",function(t){r({a:"ready"})})}var M=function(){try{e(c?l:window,"message",o)}catch(t){}n&&r({a:"error",d:"client closed window"}),n=void 0;try{window.close()}catch(t){}};return t(window,"unload",M),{detach:function(){e(window,"unload",M)}}}}:{open:function(t,e,n,r){setTimeout(function(){r("unsupported browser")},0)},onOpen:function(t){setTimeout(function(){t("unsupported browser")},0)}}}();void 0!==t&&t.exports&&(t.exports=n)},function(t,e,n){function r(t){this.webAuth=t}var i=n(16),o=n(167);r.prototype.processParams=function(t){return t.redirectUri=i("https://"+t.domain,"mobile"),delete t.owp,t},r.prototype.getPopupHandler=function(){return new o(this.webAuth)},t.exports=r},function(t,e,n){function r(t){this.webAuth=t,this._current_popup=null,this.options=null}var i=n(22),o=n(40),a=n(16);r.prototype.preload=function(t){var e=this,n=i.getWindow(),r=t.url||"about:blank",a=t.popupOptions||{};a.location="yes",delete a.width,delete a.height;var s=o.stringify(a,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed?this._current_popup:(this._current_popup=n.open(r,"_blank",s),this._current_popup.kill=function(t){e._current_popup.success=t,this.close(),e._current_popup=null},this._current_popup)},r.prototype.load=function(t,e,n,r){var i=this;this.url=t,this.options=n,this._current_popup?this._current_popup.location.href=t:(n.url=t,this.preload(n)),this.transientErrorHandler=function(t){i.errorHandler(t,r)},this.transientStartHandler=function(t){i.startHandler(t,r)},this.transientExitHandler=function(){i.exitHandler(r)},this._current_popup.addEventListener("loaderror",this.transientErrorHandler),this._current_popup.addEventListener("loadstart",this.transientStartHandler),this._current_popup.addEventListener("exit",this.transientExitHandler)},r.prototype.errorHandler=function(t,e){this._current_popup&&(this._current_popup.kill(!0),e({error:"window_error",errorDescription:t.message}))},r.prototype.unhook=function(){this._current_popup.removeEventListener("loaderror",this.transientErrorHandler),this._current_popup.removeEventListener("loadstart",this.transientStartHandler),this._current_popup.removeEventListener("exit",this.transientExitHandler)},r.prototype.exitHandler=function(t){this._current_popup&&(this.unhook(),this._current_popup.success||t({error:"window_closed",errorDescription:"Browser window closed"}))},r.prototype.startHandler=function(t,e){var n=this;if(this._current_popup){var r=a("https:",this.webAuth.baseOptions.domain,"/mobile");if(!t.url||0===t.url.indexOf(r+"#")){var i=t.url.split("#");if(1!==i.length){var o={hash:i.pop(),_idTokenVerification:!1};this.options.nonce&&(o.nonce=this.options.nonce),this.webAuth.parseHash(o,function(t,r){(t||r)&&(n._current_popup.kill(!0),e(t,r))})}}}},t.exports=r},function(t,e,n){function r(t,e){this.baseOptions=e,this.request=t}var i=n(16),o=n(17),a=n(28),s=n(36);r.prototype.signup=function(t,e){var n,r;return a.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),a.check(e,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"dbconnections","signup"),r=o.merge(this.baseOptions,["clientID"]).with(t),r=o.blacklist(r,["scope"]),r=o.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(s(e))},r.prototype.changePassword=function(t,e){var n,r;return a.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),a.check(e,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"dbconnections","change_password"),r=o.merge(this.baseOptions,["clientID"]).with(t,["email","connection"]),r=o.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(s(e))},t.exports=r},function(t,e,n){function r(t,e){this.baseOptions=e,this.request=t}var i=n(16),o=n(17),a=n(28),s=n(40),u=n(36);r.prototype.buildVerifyUrl=function(t){var e,n;return a.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),e=o.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(t),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=o.toSnakeCase(e,["auth0Client"]),n=s.stringify(e),i(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},r.prototype.start=function(t,e){var n,r;return a.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(t){return"code"===t.send||!t.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(t){return"link"===t.send||!t.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),a.check(e,{type:"function",message:"cb parameter is not valid"}),n=i(this.baseOptions.rootUrl,"passwordless","start"),r=o.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(t),r.scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=o.toSnakeCase(r,["auth0Client","authParams"]),this.request.post(n).send(r).end(u(e))},r.prototype.verify=function(t,e){var n,r;return a.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),a.check(e,{type:"function",message:"cb parameter is not valid"}),r=o.toSnakeCase(t,["auth0Client"]),n=i(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(u(e))},t.exports=r},function(t,e,n){function r(t,e,n){var r,i;if(void 0===a.getDocument().cookie||null===a.getDocument().cookie)throw new Error("cookie storage not available");n?(r=new Date,r.setTime(r.getTime()+24*n*60*60*1e3),i="; expires="+r.toGMTString()):i="",a.getDocument().cookie=t+"="+s.encode(e)+i+"; path=/"}function i(t){var e,n,r,i=t+"=";if(void 0===a.getDocument().cookie||null===a.getDocument().cookie)throw new Error("cookie storage not available");for(r=a.getDocument().cookie.split(";"),e=0;e0&&t.warning("Following parameters are not allowed on the `/authorize` endpoing: ["+n.join(",")+"]"),e}function i(t,e){return o.pick(e,a)}var o=n(17),a=["realm","audience","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier"],s=["connection","connection_scope","auth0Client","owp","device","protocol","_csrf","_intstate","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method"];t.exports={oauthTokenParams:i,oauthAuthorizeParams:r}},function(t,e,n){function r(t,e){this.plugins=e;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return e.closeHandler=p.c,e.key="auxiliarypane",e.lock=t,t.get("passwordResetted")?l.a.createElement(h,e):null}var s=n(3),u=n.n(s),c=n(0),l=n.n(c),M=n(74),p=n(23),g=n(1),d=n(14);e.a=a;var h=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.handleClose=function(){var t=this.props,e=t.closeHandler,n=t.lock;e(g.id(n))},e.prototype.render=function(){var t=this.props.lock,e=g.ui.closable(t)?this.handleClose.bind(this):void 0;return l.a.createElement(M.a,{closeHandler:e},l.a.createElement("p",null,d.html(this.props.lock,["success","forgotPassword"])))},e}(l.a.Component);h.propTypes={closeHandler:u.a.func.isRequired,lock:u.a.object.isRequired}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n.n(a),u=n(19),c=n(193),l=n(10),M=n(37),p=n(191),g=n(14),d=function(t){var e=t.i18n,n=t.model,r=e.html("forgotPasswordInstructions")||null,i=r&&s.a.createElement("p",null,r);return s.a.createElement(c.a,{emailInputPlaceholder:e.str("emailInputPlaceholder"),header:i,i18n:e,lock:n})},h=function(t){function e(){return r(this,e),i(this,t.call(this,"forgotPassword"))}return o(e,t),e.prototype.backHandler=function(t){return n.i(l.h)(t,"login")?M.g:void 0},e.prototype.submitButtonLabel=function(t){return g.str(t,["forgotPasswordSubmitLabel"])},e.prototype.getScreenTitle=function(t){return g.str(t,"forgotPasswordTitle")},e.prototype.submitHandler=function(){return M.h},e.prototype.renderAuxiliaryPane=function(t){return n.i(p.a)(t)},e.prototype.render=function(){return d},e}(u.a);e.a=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(3),s=n.n(a),u=n(0),c=n.n(u),l=n(70),M=(n(1),function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.emailInputPlaceholder,n=t.header,r=t.i18n,i=t.lock;return c.a.createElement("div",null,n,c.a.createElement(l.a,{i18n:r,lock:i,placeholder:e}))},e}(c.a.Component));M.propTypes={emailInputPlaceholder:s.a.string.isRequired,lock:s.a.object.isRequired},e.a=M},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=function(t){var e=t.checkHandler,n=t.checked,r=t.children;return e?i.a.createElement("span",{className:"auth0-lock-sign-up-terms-agreement"},i.a.createElement("label",null,i.a.createElement("input",{type:"checkbox",onChange:e,checked:n}),r)):r};e.a=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.closeHandler=p.c,e.key="auxiliarypane",e.lock=t,t.get("signedUp")&&!n.i(d.o)(t)?l.a.createElement(f,e):null}var s=n(3),u=n.n(s),c=n(0),l=n.n(c),M=n(74),p=n(23),g=n(1),d=n(10),h=n(14);e.a=a;var f=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.handleClose=function(){var t=this.props,e=t.closeHandler,n=t.lock;e(g.id(n))},e.prototype.render=function(){var t=this.props.lock,e=g.ui.closable(t)?this.handleClose.bind(this):void 0;return l.a.createElement(M.a,{closeHandler:e},l.a.createElement("p",null,h.html(t,["success","signUp"])))},e}(l.a.Component);f.propTypes={closeHandler:u.a.func.isRequired,lock:u.a.object.isRequired}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(3),s=n.n(a),u=n(0),c=n.n(u),l=n(73),M=n(71),p=(n(1),function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.header,n=t.i18n,r=t.model,i=t.passwordInputPlaceholder,o=t.usernameInputPlaceholder;return c.a.createElement("div",null,e,c.a.createElement(l.a,{i18n:n,lock:r,placeholder:o,validateFormat:!1}),c.a.createElement(M.a,{i18n:n,lock:r,placeholder:i}))},e}(c.a.Component));e.a=p,p.propTypes={header:s.a.element,i18n:s.a.object.isRequired,model:s.a.object.isRequired,passwordInputPlaceholder:s.a.string.isRequired,usernameInputPlaceholder:s.a.string.isRequired}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n.n(a),u=n(19),c=n(31),l=n(196),M=n(67),p=n(18),g=n(14),d=function(t){var e,r=t.i18n,i=t.model,o=n.i(p.o)(i);e=null!=o?r.html("enterpriseActiveLoginInstructions",o):r.html("enterpriseLoginIntructions"),e=e||null;var a=e&&s.a.createElement("p",null,e);return s.a.createElement(l.a,{header:a,i18n:r,model:i,passwordInputPlaceholder:r.str("passwordInputPlaceholder"),usernameInputPlaceholder:r.str("usernameInputPlaceholder")})},h=function(t){function e(){return r(this,e),i(this,t.call(this,"hrd"))}return o(e,t),e.prototype.backHandler=function(t){return n.i(p.p)(t)?null:M.c},e.prototype.submitButtonLabel=function(t){return g.str(t,["loginSubmitLabel"])},e.prototype.submitHandler=function(t){return M.a},e.prototype.renderAuxiliaryPane=function(t){return n.i(c.a)(t)},e.prototype.render=function(){return d},e}(u.a);e.a=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n.n(a),u=n(19),c=n(76),l=n(58),M=n(31),p=n(1),g=n(18),d=function(t){var e=t.i18n,r=t.model,i=e.html("windowsAuthInstructions")||null,o=i&&s.a.createElement("p",null,i);return s.a.createElement(c.a,{alternativeLabel:e.str("notYourAccountAction"),alternativeClickHandler:function(){return n.i(l.b)(p.id(r))},buttonLabel:e.str("windowsAuthLabel"),buttonClickHandler:function(t){return n.i(l.a)(p.id(r),n.i(g.q)(r))},header:o,strategy:"windows"})},h=function(t){function e(){return r(this,e),i(this,t.call(this,"kerberos"))}return o(e,t),e.prototype.renderAuxiliaryPane=function(t){return n.i(M.a)(t)},e.prototype.render=function(){return d},e}(u.a);e.a=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return"google-apps"===t?t:~["adfs","office365","waad"].indexOf(t)?"windows":"auth0"}var s=n(0),u=n.n(s),c=n(19),l=n(76),M=n(58),p=n(31),g=n(1),d=n(18),h=n(38),f=function(t){var e=t.i18n,r=t.model,i=e.html("enterpriseLoginIntructions")||null,o=i&&u.a.createElement("p",null,i),s=n.i(h.e)(r),c=n.i(d.g)(r),p=c.getIn(["name"]),f=c.getIn(["domains",0]),y=s.get(c.get("name")),N=y&&y.get("displayName")||f&&e.str("loginAtLabel",f)||e.str("loginAtLabel",p),D=y&&y.get("primaryColor"),j=y&&y.get("foregroundColor"),I=y&&y.get("icon");return u.a.createElement(l.a,{buttonLabel:N,buttonClickHandler:function(t){return n.i(M.a)(g.id(r),n.i(d.g)(r))},header:o,buttonIcon:I,primaryColor:D,foregroundColor:j,strategy:a(n.i(d.g)(r).get("strategy"))})},y=function(t){function e(){return r(this,e),i(this,t.call(this,"enterpriseQuickAuth"))}return o(e,t),e.prototype.renderAuxiliaryPane=function(t){return n.i(p.a)(t)},e.prototype.render=function(){return f},e}(c.a);e.a=y},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(245),s=(n.n(a),n(11)),u=n(220),c=n(56),l=n(23),M=n(1),p=(n(8),n(236)),g=n(14),d=n(46),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(t){function e(o,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=arguments[3];if(r(this,e),"string"!=typeof o)throw new Error("A `clientID` string must be provided as first argument.");if("string"!=typeof a)throw new Error("A `domain` string must be provided as second argument.");if("object"!=(void 0===c?"undefined":h(c)))throw new Error("When provided, the third argument must be an `options` object.");var y=i(this,t.call(this));y.validEvents=["show","hide","unrecoverable_error","authenticated","authorization_error","hash_parsed","signin ready","signup ready"],y.id=p.a(),y.engine=f;var N=y.runHook.bind(y),D=y.emit.bind(y);n.i(d.a)(y.id);var j=n.i(l.a)(y.id,o,a,c,N,D);return y.on("newListener",function(t){y.validEvents.indexOf(t)===-1&&M.emitUnrecoverableErrorEvent(j,'Invalid event "'+t+'".')}),M.auth.autoParseHash(j)&&!e.hasScheduledAuthCallback&&(e.hasScheduledAuthCallback=!0,setTimeout(l.b,0)),n.i(s.a)("render",y.id,function(t){var e=function(e,n){var r=e[n](t);return r?function(){for(var e=arguments.length,n=Array(e),i=0;i1?n-1:0),i=1;i1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};n.i(l.e)(this.id,t)},e.prototype.hide=function(){n.i(l.c)(this.id,!0)},e.prototype.destroy=function(){n.i(l.f)(this.id)},e.prototype.getProfile=function(t,e){return c.a.getProfile(this.id,t,e)},e.prototype.getUserInfo=function(t,e){return c.a.getUserInfo(this.id,t,e)},e.prototype.logout=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c.a.logout(this.id,t)},e.prototype.update=function(t){return n.i(l.g)(this.id,t)},e.prototype.setModel=function(t){return this.update(function(){return t})},e.prototype.runHook=function(t,e){var n;if("function"!=typeof this.engine[t])return e;for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],n=d.a.parse(t.replace(/^#?\/?/,"")),r=this.authOpt.state||n.state;if(this.client.transactionManager.getStoredTransaction(r),n.hasOwnProperty("error")){var i={error:n.error,error_description:n.error_description};return n.state&&(i.state=n.state),e(i)}if(!n.hasOwnProperty("access_token")&&!n.hasOwnProperty("id_token")&&!n.hasOwnProperty("refresh_token"))return e(null,null);var a;if(n.hasOwnProperty("id_token")){var s=function(t){return{error:"invalid_token",error_description:t}};if(a=new o.a({}).decode(n.id_token).payload,a.aud!==this.clientID)return e(s("The clientID configured ("+this.clientID+") does not match with the clientID set in the token ("+a.aud+")."));if(a.iss!==this.tokenIssuer)return e(s("The domain configured ("+this.tokenIssuer+") does not match with the domain set in the token ("+a.iss+")."))}e(null,{accessToken:n.access_token,idToken:n.id_token,idTokenPayload:a,refreshToken:n.refresh_token,state:n.state})},t.prototype.getUserInfo=function(t,e){return this.client.client.userInfo(t,e)},t.prototype.getProfile=function(t,e){M.a.get("https://"+this.domain+"/tokeninfo?id_token="+t).end(function(t,n){return t?e({error:t.message,error_description:n.text||n.body}):e(null,n.body)})},t.prototype.getSSOData=function(){var t;return(t=this.client.client).getSSOData.apply(t,arguments)},t.prototype.getUserCountry=function(t){return this.client.getUserCountry(t)},t}();e.a=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(54),o=n.n(i),a=n(107),s=n.n(a),u=n(1),c=n(11),l=n(117),M=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];return this.client.parseHash({hash:t,nonce:this.authOpt.nonce,state:this.authOpt.state},e)},t.prototype.getUserInfo=function(t,e){return this.client.client.userInfo(t,e)},t.prototype.getProfile=function(t,e){var r=n.i(c.d)(c.f,"lock",this.lockID);u.emitUnrecoverableErrorEvent(r,"`getProfile` is deprecated for oidcConformant clients")},t.prototype.getSSOData=function(){var t;return(t=this.client.client).getSSOData.apply(t,arguments)},t.prototype.getUserCountry=function(t){return this.client.getUserCountry(t)},t}();e.a=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return!n.i(I.c)(t)&&(y.hasSomeConnections(t,"database")?n.i(g.h)(t,"signUp"):y.hasSomeConnections(t,"social")&&n.i(g.c)(t,"signUp")?n.i(g.h)(t,"signUp"):void 0)}var s=n(0),u=n.n(s),c=n(19),l=n(119),M=n(189),p=n(116),g=n(10),d=n(37),h=n(31),f=n(113),y=n(1),N=n(67),D=n(18),j=n(114),I=n(57),L=n(14),m=function(t){var e=t.i18n,r=t.model,i=n.i(I.c)(r),o=n.i(I.e)(r,"social"),s=a(r)&&u.a.createElement(f.a,{key:"loginsignup",lock:r,loginLabel:e.str("loginLabel"),signUpLink:n.i(g.v)(r),signUpLabel:e.str("signUpLabel")}),c=y.hasSomeConnections(r,"social")&&u.a.createElement(l.a,{bigButtons:n.i(I.d)(r),instructions:e.html("socialLoginInstructions"),labelFn:e.str,lock:r,showLoading:o,signUp:!1}),d=!i&&(y.hasSomeConnections(r,"database")||!!n.i(D.i)(r)),h=d&&y.hasSomeConnections(r,"database"),N=c?"databaseEnterpriseAlternativeLoginInstructions":"databaseEnterpriseLoginInstructions",L="any"===n.i(g.w)(r)||y.countConnections(r,"enterprise")>1?"usernameOrEmailInputPlaceholder":"usernameInputPlaceholder",m=n.i(g.w)(r),w=(i||y.hasSomeConnections(r,"database")||y.hasSomeConnections(r,"enterprise"))&&u.a.createElement(M.a,{emailInputPlaceholder:e.str("emailInputPlaceholder"),forgotPasswordAction:e.str("forgotPasswordAction"),i18n:e,instructions:e.html(N),lock:r,passwordInputPlaceholder:e.str("passwordInputPlaceholder"),showForgotPasswordLink:h,showPassword:d,usernameInputPlaceholder:e.str(L),usernameStyle:m}),z=i&&u.a.createElement(j.a,null,e.str("ssoEnabled")),v=c&&w&&u.a.createElement(p.a,null);return u.a.createElement("div",null,z,s,c,v,w)},w=function(t){function e(){return r(this,e),i(this,t.call(this,"main.login"))}return o(e,t),e.prototype.renderAuxiliaryPane=function(t){return n.i(h.a)(t)},e.prototype.renderTabs=function(t){return a(t)},e.prototype.submitButtonLabel=function(t){return L.str(t,["loginSubmitLabel"])},e.prototype.isSubmitDisabled=function(t){return!y.hasSomeConnections(t,"database")&&!n.i(D.i)(t)&&!n.i(I.c)(t)},e.prototype.submitHandler=function(t){return n.i(I.e)(t,"social")?null:n.i(D.n)(t,n.i(g.a)(t))?function(e){return n.i(N.b)(e,n.i(g.a)(t))}:n.i(I.c)(t)||!n.i(g.u)(t)||!n.i(g.e)(t)&&n.i(D.d)(t)?N.a:d.a},e.prototype.render=function(){return m},e}(c.a);e.a=w},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n.n(a),u=n(19),c=n(190),l=n(14),M=n(37),p=n(10),g=n(31),d=function(t){var e=t.i18n,n=t.model;return s.a.createElement(c.a,{mfaInputPlaceholder:e.str("mfaInputPlaceholder"),i18n:e,instructions:e.str("mfaLoginInstructions"),lock:n,title:e.str("mfaLoginTitle")})},h=function(t){function e(){return r(this,e),i(this,t.call(this,"mfa.mfaCode"))}return o(e,t),e.prototype.renderAuxiliaryPane=function(t){return n.i(g.a)(t)},e.prototype.submitButtonLabel=function(t){return l.str(t,["mfaSubmitLabel"])},e.prototype.submitHandler=function(t){return function(t){return n.i(M.a)(t,!0)}},e.prototype.render=function(){return d},e.prototype.backHandler=function(t){return n.i(p.h)(t,"login")?M.b:void 0},e}(u.a);e.a=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n.n(a),u=n(70),c=n(71),l=n(73),M=n(214),p=n(10),g=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.emailInputPlaceholder,r=t.instructions,i=t.i18n,o=t.model,a=t.onlyEmail,g=t.passwordInputPlaceholder,d=t.passwordStrengthMessages,h=t.usernameInputPlaceholder,f=r||null,y=f&&s.a.createElement("p",null,f),N=!a&&n.i(p.m)(o)?s.a.createElement(l.a,{i18n:i,lock:o,placeholder:h,validateFormat:!0}):null,D=!a&&n.i(p.n)(o).map(function(t){return s.a.createElement(M.a,{iconUrl:t.get("icon"),key:t.get("name"),model:o,name:t.get("name"),options:t.get("options"),placeholder:t.get("placeholder"),type:t.get("type"),validator:t.get("validator")})}),j=!a&&s.a.createElement(c.a,{i18n:i,lock:o,placeholder:g,policy:n.i(p.t)(o),strengthMessages:d});return s.a.createElement("div",null,y,s.a.createElement(u.a,{i18n:i,lock:o,placeholder:e}),N,j,D)},e}(s.a.Component);e.a=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n.n(a),u=n(19),c=n(10),l=n(37),M=n(57),p=n(31),g=n(195),d=n(8),h=n(67),f=n(1),y=n(14),N=n(212),D=n(116),j=n(194),I=n(119),L=n(113),m=n(114),w=function(t){var e=t.i18n,r=t.model,i=n.i(M.c)(r)&&n.i(c.h)(r,"login"),o=i&&s.a.createElement(m.a,null,e.str("ssoEnabled")),a=!i&&n.i(c.h)(r,"login")&&s.a.createElement(L.a,{key:"loginsignup",lock:r,loginLabel:e.str("loginLabel"),signUpLabel:e.str("signUpLabel")}),u=f.hasSomeConnections(r,"social")&&s.a.createElement(I.a,{bigButtons:n.i(M.d)(r),instructions:e.html("socialSignUpInstructions"),labelFn:e.str,lock:r,signUp:!0,disabled:!n.i(c.r)(r)}),l=u?"databaseAlternativeSignUpInstructions":"databaseSignUpInstructions",p=(f.hasSomeConnections(r,"database")||f.hasSomeConnections(r,"enterprise"))&&s.a.createElement(N.a,{emailInputPlaceholder:e.str("emailInputPlaceholder"),i18n:e,instructions:e.html(l),model:r,onlyEmail:i,passwordInputPlaceholder:e.str("passwordInputPlaceholder"),passwordStrengthMessages:e.group("passwordStrength"),usernameInputPlaceholder:e.str("usernameInputPlaceholder")}),g=u&&p&&s.a.createElement(D.a,null);return s.a.createElement("div",null,o,a,u,g,p)},z=function(t){function e(){return r(this,e),i(this,t.call(this,"main.signUp"))}return o(e,t),e.prototype.submitButtonLabel=function(t){return y.str(t,["signUpSubmitLabel"])},e.prototype.submitHandler=function(t){return n.i(M.e)(t,"social")?null:n.i(M.c)(t)?h.a:l.c},e.prototype.isSubmitDisabled=function(t){return!n.i(c.r)(t)},e.prototype.renderAuxiliaryPane=function(t){return n.i(p.a)(t)||n.i(g.a)(t)||n.i(d.l)(t)},e.prototype.renderTabs=function(){return!0},e.prototype.getScreenTitle=function(t){return y.str(t,"signupTitle")},e.prototype.renderTerms=function(t,e){var r=n.i(c.s)(t)?function(){return n.i(l.d)(f.id(t))}:void 0;return e||n.i(c.s)(t)?s.a.createElement(j.a,{checkHandler:r,checked:n.i(c.r)(t)},e):null},e.prototype.render=function(){return w},e}(u.a);e.a=z},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(118),a=n(8),s=n(123),u=n(230),c=n(226),l=n(1),M=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:c.mfa_code,n=u()(t);if(n.lengthe.length)return!1;var r=l.exec(n);return r&&r[0]}function i(t,e){return n.i(a.g)(t,"mfa_code",e,r)}function o(t){return c.mfa_code}var a=n(8),s=(n(29),n(10),n(35)),u=n.n(s);e.a=i,e.b=o;var c={mfa_code:{length:6}},l=/^[0-9]+$/},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(232),a=n(118);e.a=function(t){var e=t.icon,r=t.iconUrl,s=t.model,u=t.name,c=t.items;return i.a.createElement(o.a,{icon:e,iconUrl:r,items:c,onSelect:function(t){return n.i(a.a)(s.get("id"),u,t)},onCancel:function(){return n.i(a.b)(s.get("id"))}})}},function(t,e,n){"use strict";function r(t,e){return a()(e).check(t)}function i(t,e,i){return n.i(s.g)(t,"password",e,r,i)}var o=n(130),a=n.n(o),s=n(8);e.a=i},function(t,e,n){"use strict";e.__esModule=!0,e.default={error:{forgotPassword:{too_many_requests:"You have reached the limit on password change attempts. Please wait before trying again.","lock.fallback":"We're sorry, something went wrong when requesting the password change."},login:{blocked_user:"The user is blocked.",invalid_user_password:"Wrong credentials.","lock.fallback":"We're sorry, something went wrong when attempting to log in.","lock.invalid_code":"Wrong code.","lock.invalid_email_password":"Wrong email or password.","lock.invalid_username_password":"Wrong username or password.","lock.network":"We could not reach the server. Please check your connection and try again.","lock.popup_closed":"Popup window closed. Try again.","lock.unauthorized":"Permissions were not granted. Try again.","lock.mfa_registration_required":"Multifactor authentication is required but your device is not enrolled. Please enroll it before moving on.","lock.mfa_invalid_code":"Wrong code. Please try again.",password_change_required:"You need to update your password because this is the first time you are logging in, or because your password has expired.",password_leaked:"We have detected a potential security issue with this account. To protect your account, we have blocked this login. An email was sent with instruction on how to unblock your account.",too_many_attempts:"Your account has been blocked after multiple consecutive login attempts.",session_missing:"Couldn't complete your authentication request. Please try again after closing all open dialogs","hrd.not_matching_email":"Please, use your corporate email to login."},passwordless:{"bad.email":"The email is invalid","bad.phone_number":"The phone number is invalid","lock.fallback":"We're sorry, something went wrong"},signUp:{invalid_password:"Password is invalid.","lock.fallback":"We're sorry, something went wrong when attempting to sign up.",password_dictionary_error:"Password is too common.",password_no_user_info_error:"Password is based on user information.",password_strength_error:"Password is too weak.",user_exists:"The user already exists.",username_exists:"The username already exists."}},success:{logIn:"Thanks for logging in.",forgotPassword:"We've just sent you an email to reset your password.",magicLink:"We sent you a link to log in
to %s.",signUp:"Thanks for signing up."},blankErrorHint:"Can't be blank",codeInputPlaceholder:"your code",databaseEnterpriseLoginInstructions:"",databaseEnterpriseAlternativeLoginInstructions:"or",databaseSignUpInstructions:"",databaseAlternativeSignUpInstructions:"or",emailInputPlaceholder:"yours@example.com",enterpriseLoginIntructions:"Login with your corporate credentials.",enterpriseActiveLoginInstructions:"Please enter your corporate credentials at %s.",failedLabel:"Failed!",forgotPasswordTitle:"Reset your password",forgotPasswordAction:"Don't remember your password?",forgotPasswordInstructions:"Please enter your email address. We will send you an email to reset your password.",forgotPasswordSubmitLabel:"Send email",invalidErrorHint:"Invalid",lastLoginInstructions:"Last time you logged in with",loginAtLabel:"Log in at %s",loginLabel:"Log In",loginSubmitLabel:"Log In",loginWithLabel:"Log in with %s",notYourAccountAction:"Not your account?",passwordInputPlaceholder:"your password",passwordStrength:{containsAtLeast:"Contain at least %d of the following %d types of characters:",identicalChars:'No more than %d identical characters in a row (e.g., "%s" not allowed)',nonEmpty:"Non-empty password required",numbers:"Numbers (i.e. 0-9)",lengthAtLeast:"At least %d characters in length",lowerCase:"Lower case letters (a-z)",shouldContain:"Should contain:",specialCharacters:"Special characters (e.g. !@#$%^&*)",upperCase:"Upper case letters (A-Z)"},passwordlessEmailAlternativeInstructions:"Otherwise, enter your email to sign in
or create an account",passwordlessEmailCodeInstructions:"An email with the code has been sent to %s.",passwordlessEmailInstructions:"Enter your email to sign in
or create an account",passwordlessSMSAlternativeInstructions:"Otherwise, enter your phone to sign in
or create an account",passwordlessSMSCodeInstructions:"An SMS with the code has been sent
to %s.",passwordlessSMSInstructions:"Enter your phone to sign in
or create an account",phoneNumberInputPlaceholder:"your phone number",resendCodeAction:"Did not get the code?",resendLabel:"Resend",resendingLabel:"Resending...",retryLabel:"Retry",sentLabel:"Sent!",signupTitle:"Sign Up",signUpLabel:"Sign Up",signUpSubmitLabel:"Sign Up",signUpTerms:"",signUpWithLabel:"Sign up with %s",socialLoginInstructions:"",socialSignUpInstructions:"",ssoEnabled:"Single Sign-On enabled",submitLabel:"Submit",unrecoverableError:"Something went wrong.
Please contact technical support.",usernameFormatErrorHint:'Use %d-%d letters, numbers and "_"',usernameInputPlaceholder:"your username",usernameOrEmailInputPlaceholder:"username/email",title:"Auth0",welcome:"Welcome %s!",windowsAuthInstructions:"You are connected from your corporate network…",windowsAuthLabel:"Windows Authentication",mfaInputPlaceholder:"Code",mfaLoginTitle:"2-Step Verification",mfaLoginInstructions:"Please enter the verification code generated by your mobile application.",mfaSubmitLabel:"Log In",mfaCodeErrorHint:"Use %d numbers"}},function(t,e,n){"use strict";(function(t){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=n.n(i),a=n(48),s=n.n(a),u=n(127),c=n.n(u),l=n(121);n.d(e,"a",function(){return d}),n.d(e,"b",function(){return h});var M=function(){function e(){r(this,e)}return e.prototype.ensure=function(e,n){var r=t.document.getElementById(e);if(!r&&n&&(r=t.document.createElement("div"),r.id=e,r.className="auth0-lock-container",t.document.body.appendChild(r)),!r)throw new Error("Can't find element with id "+e);return r},e}(),p=function(){function e(){r(this,e),this.containerManager=new M,this.modals={}}return e.prototype.render=function(e,n){var r=n.isModal,i=this.containerManager.ensure(e,r);r&&!this.modals[e]&&c.a.addClass(t.document.getElementsByTagName("html")[0],"auth0-lock-html");var a=s.a.render(o.a.createElement(l.b,n),i);return r&&(this.modals[e]=a),a},e.prototype.remove=function(t){var e=this;this.modals[t]?(this.modals[t].hide(),setTimeout(function(){return e.unmount(t)},1e3)):this.unmount(t)},e.prototype.unmount=function(e){try{var n=this.containerManager.ensure(e);n&&s.a.unmountComponentAtNode(n)}catch(t){}this.modals[e]&&(delete this.modals[e],c.a.removeClass(t.document.getElementsByTagName("html")[0],"auth0-lock-html"))},e}(),g=new p,d=function(){return g.render.apply(g,arguments)},h=function(){return g.remove.apply(g,arguments)}}).call(e,n(13))},function(t,e,n){"use strict";(function(t){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(3),s=n.n(a),u=n(0),c=n.n(u),l=n(48),M=n.n(l),p=n(266),g=n.n(p),d=n(225),h=n(223),f=n(224),y=Object.assign||function(t){for(var e=1;e9)}(),h=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.backgroundColor,n=t.imageUrl,r=t.grayScale,i={className:"auth0-lock-header-bg"};d&&(i.className+=" auth0-lock-blur-support");var o={className:"auth0-lock-header-bg-blur",style:{backgroundImage:"url('"+n+"')"}};r&&(o.className+=" auth0-lock-no-grayscale");var a={className:"auth0-lock-header-bg-solid",style:{backgroundColor:e}};return c.a.createElement("div",i,c.a.createElement("div",o),c.a.createElement("div",a))},e}(c.a.Component);h.propTypes={backgorundColor:s.a.string,grayScale:s.a.bool,imageUrl:s.a.string}}).call(e,n(13))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(3),s=n.n(a),u=n(0),c=n.n(u),l=n(48),M=n.n(l),p=n(127),g=n.n(p),d=function(t){function e(n){r(this,e);var o=i(this,t.call(this,n));return o.state={children:{current:n.children}},o}return o(e,t),e.prototype.componentWillReceiveProps=function(t){this.state.children.current.key!=t.children.key?(this.setState({children:{current:t.children,prev:this.state.children.current},transitionName:this.props.transitionName}),this.animate=!0):this.timeout||this.setState({children:{current:t.children},transitionName:t.transitionName})},e.prototype.componentDidUpdate=function(){var t=this;if(this.animate){this.animate=!1;var e=this.state.transitionName,n=this.state.children,r=n.current,i=n.prev,o=this.props.reverse,a=this.refs[r.key],s=this.refs[i.key],u=function(t,e,n){var r=M.a.findDOMNode(t),i=e+"-active";g.a.addClass(r,e),setTimeout(function(){return g.a.addClass(r,i)},17),n&&setTimeout(function(){g.a.removeClass(r,e),g.a.removeClass(r,i)},n)},c=function(n){a.componentWillSlideIn(n);var r=o?"reverse-":"";u(a,""+r+e+"-enter",t.props.delay),u(s,""+r+e+"-leave"),t.timeout=setTimeout(function(){var e;t.setState({children:{current:t.state.children.current},transitionName:t.props.transitionName}),a.componentDidSlideIn((e=t.props).onDidAppear.bind(e)),t.props.onDidSlide(),t.timeout=null},t.props.delay)};this.props.onWillSlide(),s.componentWillSlideOut(c)}},e.prototype.componentWillUnmount=function(){this.timeout&&clearTimeout(this.timeout)},e.prototype.render=function(){var t=this.state.children,e=t.current,n=t.prev,r=n?[e,n]:[e],i=r.map(function(t){return c.a.cloneElement(c.a.createElement(h,{},t),{ref:t.key,key:t.key})});return c.a.createElement(this.props.component,{},i)},e}(c.a.Component);e.a=d,d.propTypes={children:s.a.node.isRequired,component:s.a.string,delay:s.a.number.isRequired,onDidAppear:s.a.func.isRequired,onDidSlide:s.a.func.isRequired,onWillSlide:s.a.func.isRequired,reverse:s.a.bool.isRequired,transitionName:s.a.string.isRequired},d.defaultProps={component:"span",onDidAppear:function(){},onDidSlide:function(){},onWillSlide:function(){},reverse:!1};var h=function(t){function e(n){r(this,e);var o=i(this,t.call(this,n));return o.state={height:"",originalHeight:"",show:!0},o}return o(e,t),e.prototype.componentWillSlideIn=function(t){this.setState({height:t.height,originalHeight:parseInt(window.getComputedStyle(this.node,null).height,10),show:!1})},e.prototype.componentDidSlideIn=function(t){var e=this,n=this.state,r=n.height,i=n.originalHeight;if(r===i)this.setState({show:!0,height:""}),t();else{this.cb=t;var o=10,a=0,s=r,u=i,c=Math.abs(s-u)/o,l=s=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(0),u=n.n(s),c=n(32),l=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(3),u=n.n(s),c=n(0),l=n.n(c),M=n(32),p=n(75),g=Object.assign||function(t){for(var e=1;e',l=function(t){function e(n){r(this,e);var o=i(this,t.call(this,n));return o.state={},o}return o(e,t),e.prototype.render=function(){var t=this.props,e=t.iconUrl,n=t.isValid,r=t.label,i=t.name,o=t.onClick,a=t.placeholder,l=this.props.icon,M=this.state.focused,p=r||a;p.length>23&&(p=p.substr(0,20)+"..."),!l&&"string"==typeof e&&e&&(l=s.a.createElement("img",{className:"auth0-lock-custom-icon",src:e}));var g="auth0-lock-input auth0-lock-input-location";return r||(g+=" auth0-lock-input-with-placeholder"),s.a.createElement(u.a,{focused:M,isValid:n,name:"location",icon:l},s.a.createElement("input",{type:"button",name:i,className:g,value:p,onFocus:this.handleFocus.bind(this),onBlur:this.handleBlur.bind(this),onKeyDown:this.handleKeyDown.bind(this),onClick:o}),s.a.createElement("span",{dangerouslySetInnerHTML:{__html:c}}))},e.prototype.handleFocus=function(){this.setState({focused:!0})},e.prototype.handleBlur=function(){this.setState({focused:!1})},e.prototype.handleKeyDown=function(t){return"Tab"!==t.key&&t.preventDefault(),"ArrowDown"===t.key?this.props.onClick():t.keyCode>=65&&t.keyCode<=90?this.props.onClick(String.fromCharCode(t.keyCode).toLowerCase()):void 0},e}(s.a.Component);e.a=l},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(0),u=n.n(s),c=n(32),l=Object.assign||function(t){for(var e=1;en.clientHeight?o=i+r.offsetHeight-n.clientHeight:i<0&&(o=i),o&&(this.preventHighlight=!0,n.scrollTop+=o,this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){return t.preventHighlight=!1},100))}},e.prototype.mouseMoveHandler=function(t){!this.preventHighlight&&this.props.onMouseMove(t)},e.prototype.mouseLeaveHandler=function(){},e.prototype.render=function(){var t=this,e=this.props.items.map(function(e){var n=e===t.props.highlighted,r={highlighted:n,key:e.get("label"),label:e.get("label"),onClick:function(){return t.props.onClick(e)},onMouseMove:function(){return t.mouseMoveHandler(e)}};return n&&(r.ref="highlighted"),c.a.createElement(N,r)});return c.a.createElement("div",{className:"auth0-lock-list-code",onMouseLeave:this.mouseLeaveHandler.bind(this)},c.a.createElement("ul",null,e))},e}(c.a.Component),N=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.highlighted!=t.highlighted},e.prototype.render=function(){var t=this.props,e=t.highlighted,n=t.label,r=t.onClick,i=t.onMouseMove,o=e?"auth0-lock-list-code-highlighted":"";return c.a.createElement("li",{className:o,onClick:r,onMouseMove:i},n)},e}(c.a.Component);N.propTypes={highlighted:s.a.bool.isRequired,label:s.a.string.isRequired,onClick:s.a.func.isRequired,onMouseMove:s.a.func.isRequired}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new o(t)}e.a=i;var o=function(){function t(e){r(this,t),this.state=e,this.watches={}}return t.prototype.reset=function(t){return this._change(t)},t.prototype.swap=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r1||this.fetch(i,e)},t.prototype.fetch=function(t,e){var n=this;this.fetchFn.apply(this,e.concat([function(e,r){e||(n.cache[t]=r),n.execCallbacks(t,e,r)}]))},t.prototype.registerCallback=function(t,e){return this.cbs[t]=this.cbs[t]||[],this.cbs[t].push(e),this.cbs[t].length},t.prototype.execCallbacks=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r>16)+(e>>16)+(n>>16)<<16|65535&n}function a(t,e){return t<>>32-e}function s(t,e,n,r,i,s){return o(a(o(o(e,t),o(r,s)),i),n)}function u(t,e,n,r,i,o,a){return s(e&n|~e&r,t,e,i,o,a)}function c(t,e,n,r,i,o,a){return s(e&r|n&~r,t,e,i,o,a)}function l(t,e,n,r,i,o,a){return s(e^n^r,t,e,i,o,a)}function M(t,e,n,r,i,o,a){return s(n^(e|~r),t,e,i,o,a)}function p(t,e){t[e>>5]|=128<>>9<<4)]=e;var n,r,i,a,s,p=1732584193,g=-271733879,d=-1732584194,h=271733878;for(n=0;n>5]>>>e%32&255);return n}function d(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e>5]|=(255&t.charCodeAt(e/8))<16&&(i=p(i,8*t.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=p(o.concat(d(e)),512+8*e.length),g(p(a.concat(r),640))}function y(t){var e,n,r="0123456789abcdef",i="";for(n=0;n>>4&15)+r.charAt(15&e);return i}function N(t){return unescape(encodeURIComponent(t))}function D(t){return h(N(t))}function j(t){return y(D(t))}function I(t,e){return f(N(t),N(e))}function L(t,e){return y(I(t,e))}function m(t,e,n){return e?n?I(e,t):L(e,t):n?D(t):j(t)}void 0!==(r=function(){return m}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=function(e){var e=e,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,e=18e3*(65535&e)+(e>>16)&r;var i=(n<<16)+e&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},M=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,u=i/s;u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0);var c=u*o,l=t.min(4*c,i);if(c){for(var M=0;M>>7)^(d<<14|d>>>18)^d>>>3,f=c[g-2],y=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[g]=h+c[g-7]+y+c[g-16]}var N=s&l^~s&M,D=r&i^r&o^i&o,j=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),I=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),L=p+I+N+u[g]+c[g],m=j+D;p=M,M=l,l=s,s=a+L|0,a=o,o=i,i=r,r=L+m|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+M|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l)}(Math),t.SHA256})},function(t,e,n){(function(r){function i(){return!("undefined"==typeof window||!window||void 0===window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document&&"WebkitAppearance"in document.documentElement.style||"undefined"!=typeof window&&window&&window.console&&(console.firebug||console.exception&&console.table)||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function u(){try{return e.storage.debug}catch(t){}if(void 0!==r&&"env"in r)return n.i({NODE_ENV:"production"}).DEBUG}function c(){try{return window.localStorage}catch(t){}}e=t.exports=n(244),e.log=a,e.formatArgs=o,e.save=s,e.load=u,e.useColors=i,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:c(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(u())}).call(e,n(39))},function(t,e,n){function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function i(t){function n(){if(n.enabled){var t=n,r=+new Date,i=r-(c||r);t.diff=i,t.prev=c,t.curr=r,c=r;for(var o=new Array(arguments.length),a=0;a0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";var r=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;u=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};t.exports=r},function(t,e){function n(){}n.prototype.get=function(t){return null},n.prototype.has=function(t){return!1},n.prototype.set=function(t,e){},t.exports=n},function(t,e){function n(t){this.name="ConfigurationError",this.message=t||""}function r(t){this.name="TokenValidationError",this.message=t||""}n.prototype=Error.prototype,r.prototype=Error.prototype,t.exports={ConfigurationError:n,TokenValidationError:r}},function(t,e,n){function r(t){return{modulus:a.decodeToHEX(t.n),exp:a.decodeToHEX(t.e)}}function i(t,e){var n=o(t.iss,".well-known","jwks.json");return s.get(n).end(function(n,i){n&&e(n);for(var o=null,a=0;a0&&e.length>0))throw new Error("Invalid key data");this.n=new o(t,16),this.e=parseInt(e,16)}function i(t){for(var e in s){var n=s[e],r=n.length;if(t.substring(0,r)===n)return{alg:e,hash:t.substring(r)}}return[]}var o=n(251).BigInteger,a=n(242),s={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},u={sha256:a};r.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new o(e,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=n.modPowInt(this.e,this.n),a=r.toString(16).replace(/^1f+00/,""),s=i(a);if(0===s.length)return!1;if(!u.hasOwnProperty(s.alg))throw new Error("Hashing algorithm is not supported.");var c=u[s.alg](t).toString();return s.hash===c},t.exports=r},function(t,e,n){(function(){function n(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function r(){return new n(null)}function i(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i}function o(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=s*u+c*a;u=a*u+((32767&l)<<15)+n[r]+(1073741823&i),i=(u>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i}function a(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=s*u+c*a;u=a*u+((16383&l)<<14)+n[r]+i,i=(u>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i}function s(t){return fe.charAt(t)}function u(t,e){var n=ye[t.charCodeAt(e)];return null==n?-1:n}function c(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function l(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0}function M(t){var e=r();return e.fromInt(t),e}function p(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&t[i]:u(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t}function d(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<0)for(u>u)>0&&(i=!0,o=s(n));a>=0;)u>(u+=this.DB-e)):(n=this[a]>>(u-=e)&r,u<=0&&(u+=this.DB,--a)),n>0&&(i=!0),i&&(o+=s(n));return i?o:"0"}function h(){var t=r();return n.ZERO.subTo(this,t),t}function f(){return this.s<0?this.negate():this}function y(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0}function N(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function D(){return this.t<=0?0:this.DB*(this.t-1)+N(this[this.t-1]^this.s&this.DM)}function j(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function I(t,e){for(var n=t;n=0;--n)e[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)e[n]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()}function m(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)return void(e.t=0);var r=t%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(e[this.t-n-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()}function z(t,e){var r=this.abs(),i=t.abs(),o=r.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[n]=0;for(n=0;n=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()}function b(t,e,i){var o=t.abs();if(!(o.t<=0)){var a=this.abs();if(a.t0?(o.lShiftTo(l,s),a.lShiftTo(l,i)):(o.copyTo(s),a.copyTo(i));var M=s.t,p=s[M-1];if(0!=p){var g=p*(1<1?s[M-2]>>this.F2:0),d=this.FV/g,h=(1<=0&&(i[i.t++]=1,i.subTo(j,i)),n.ONE.dlShiftTo(M,j),j.subTo(s,s);s.t=0;){var I=i[--y]==p?this.DM:Math.floor(i[y]*d+(i[y-1]+f)*h);if((i[y]+=s.am(0,I,i,D,0,M))0&&i.rShiftTo(l,i),u<0&&n.ZERO.subTo(i,i)}}}function C(t){var e=r();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e}function T(t){this.m=t}function E(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function k(t){return t}function x(t){t.divRemTo(this.m,null,t)}function O(t,e,n){t.multiplyTo(e,n),this.reduce(n)}function S(t,e){t.squareTo(e),this.reduce(e)}function A(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function U(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e}function Y(t){var e=r();return t.copyTo(e),this.reduce(e),e}function Q(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function B(t,e){t.squareTo(e),this.reduce(e)}function P(t,e,n){t.multiplyTo(e,n),this.reduce(n)}function G(){return 0==(this.t>0?1&this[0]:this.s)}function R(t,e){if(t>4294967295||t<1)return n.ONE;var i=r(),o=r(),a=e.convert(this),s=N(t)-1;for(a.copyTo(i);--s>=0;)if(e.sqrTo(i,o),(t&1<0)e.mulTo(o,a,i);else{var u=i;i=o,o=u}return e.revert(i)}function Z(t,e){var n;return n=t<256||e.isEven()?new T(e):new U(e),this.exp(t,n)}function H(){var t=r();return this.copyTo(t),t}function W(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24}function F(){return 0==this.t?this.s:this[0]<<16>>16}function J(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function q(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function X(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=M(n),o=r(),a=r(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(n+a.intValue()).toString(t).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(t)+s}function K(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),o=!1,a=0,s=0,c=0;c=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)}function $(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),st,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<0)for(r>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<=0;)r<8?(n=(this[t]&(1<>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e}function et(t){return 0==this.compareTo(t)}function nt(t){return this.compareTo(t)<0?this:t}function rt(t){return this.compareTo(t)>0?this:t}function it(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function yt(){for(var t=0;t=this.t?0!=this.s:0!=(this[e]&1<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()}function vt(t){var e=r();return this.addTo(t,e),e}function bt(t){var e=r();return this.subTo(t,e),e}function Ct(t){var e=r();return this.multiplyTo(t,e),e}function Tt(){var t=r();return this.squareTo(t),t}function Et(t){var e=r();return this.divRemTo(t,e,null),e}function kt(t){var e=r();return this.divRemTo(t,null,e),e}function xt(t){var e=r(),n=r();return this.divRemTo(t,e,n),new Array(e,n)}function Ot(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function St(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}}function At(){}function Ut(t){return t}function _t(t,e,n){t.multiplyTo(e,n)}function Yt(t,e){t.squareTo(e)}function Qt(t){return this.exp(t,new At)}function Bt(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;var i;for(i=n.t-this.t;r=0;)n[r]=0;for(r=Math.max(e-this.t,0);r2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=r();return t.copyTo(e),this.reduce(e),e}function Zt(t){return t}function Ht(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function Wt(t,e){t.squareTo(e),this.reduce(e)}function Vt(t,e,n){t.multiplyTo(e,n),this.reduce(n)}function Ft(t,e){var n,i,o=t.bitLength(),a=M(1);if(o<=0)return a;n=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new T(e):e.isEven()?new Gt(e):new U(e);var s=new Array,u=3,c=n-1,l=(1<1){var p=r();for(i.sqrTo(s[1],p);u<=l;)s[u]=r(),i.mulTo(p,s[u-2],s[u]),u+=2}var g,d,h=t.t-1,f=!0,y=r();for(o=N(t[h])-1;h>=0;){for(o>=c?g=t[h]>>o-c&l:(g=(t[h]&(1<0&&(g|=t[h-1]>>this.DB+o-c)),u=n;0==(1&g);)g>>=1,--u;if((o-=u)<0&&(o+=this.DB,--h),f)s[g].copyTo(a),f=!1;else{for(;u>1;)i.sqrTo(a,y),i.sqrTo(y,a),u-=2;u>0?i.sqrTo(a,y):(d=a,a=y,y=d),i.mulTo(y,s[g],a)}for(;h>=0&&0==(t[h]&1<0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n}function qt(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n}function Xt(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return n.ZERO;for(var r=t.clone(),i=this.clone(),o=M(1),a=M(0),s=M(0),u=M(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(t,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),e&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(r,i),e&&s.subTo(o,s),u.subTo(a,u))}return 0!=i.compareTo(n.ONE)?n.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u}function Kt(t){var e,n=this.abs();if(1==n.t&&n[0]<=Ne[Ne.length-1]){for(e=0;e>1)>Ne.length&&(t=Ne.length);for(var a=r(),s=0;s>8&255,Ie[Le++]^=t>>16&255,Ie[Le++]^=t>>24&255,Le>=ve&&(Le-=ve)}function ee(){te((new Date).getTime())}function ne(){if(null==je){for(ee(),je=ue(),je.init(Ie),Le=0;Le>>8,Ie[Le++]=255&me;Le=0,ee()}ie.prototype.nextBytes=re,oe.prototype.init=ae,oe.prototype.next=se;var ve=256;n.SecureRandom=ie,n.BigInteger=n,e=t.exports=n}).call(this)},function(t,e,n){function r(){}function i(t,e,n){function i(){u.parentNode&&u.parentNode.removeChild(u),window[M]=r,c&&clearTimeout(c)}function s(){window[M]&&i()}"function"==typeof e&&(n=e,e={}),e||(e={});var u,c,l=e.prefix||"__jp",M=e.name||l+a++,p=e.param||"callback",g=null!=e.timeout?e.timeout:6e4,d=encodeURIComponent,h=document.getElementsByTagName("script")[0]||document.head;return g&&(c=setTimeout(function(){i(),n&&n(new Error("Timeout"))},g)),window[M]=function(t){o("jsonp got",t),i(),n&&n(null,t)},t+=(~t.indexOf("?")?"&":"?")+p+"="+d(M),t=t.replace("?&","?"),o('jsonp req "%s"',t),u=document.createElement("script"),u.src=t,h.parentNode.insertBefore(u,h),s}var o=n(243)("jsonp");t.exports=i;var a=0},function(t,e){function n(t){if(t=String(t),!(t.length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,s,"minute")||o(t,a,"second")||t+" ms"}function o(t,e,n){if(!(t0)return n(t);if("number"===o&&isNaN(t)===!1)return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(t){return"string"==typeof t||t instanceof String}function i(t,e){function n(t,e){var n=new Array(e+1).join(" "),r=n+"* ";return r+=t.format?a.apply(null,[t.message].concat(t.format)):t.message,t.items&&(r+="\n"+n+i(t.items,e+1)),r}if(!t.length)return"";var r=n(t[0],e);return t=t.slice(1).reduce(function(t,r){return t+="\n"+n(r,e)},r)}function o(t,e){this.rules=t,this.ruleset=e||u,this._reduce(function(t,e,n){n.validate(e)})}var a=n(105).format,s=n(255),u={length:n(258),contains:n(79),containsAtLeast:n(256),identicalChars:n(257)};o.prototype={},o.prototype._reduce=function(t,e){var n=this;return Object.keys(this.rules).reduce(function(e,r){return t(e,n.rules[r],n.ruleset[r])},e)},o.prototype._applyRules=function(t){return this._reduce(function(e,n,r){return!!e&&(!!r&&r.assert(n,t))},!0)},o.prototype.missing=function(t){return this._reduce(function(e,n,r){var i=r.missing(n,t);return e.rules.push(i),e.verified=e.verified&&!!i.verified,e},{rules:[],verified:!0})},o.prototype.explain=function(){return this._reduce(function(t,e,n){return t.push(n.explain(e)),t},[])},o.prototype.missingAsMarkdown=function(t){return i(this.missing(t),1)},o.prototype.toString=function(){return i(this.explain(),0)},o.prototype.check=function(t){return!!r(t)&&this._applyRules(t)},o.prototype.assert=function(t){if(!this.check(t))throw new s("Password does not meet password policy")},t.exports=o},function(t,e){function n(t){var e=Error.call(this,t);return e.name="PasswordPolicyError",e}t.exports=n},function(t,e,n){function r(){return"Contain at least %d of the following %d types of characters:"}var i=n(60),o=n(79);t.exports={validate:function(t){if(!i.isObject(t))throw new Error("options should be an object");if(!i.isNumber(t.atLeast)||i.isNaN(t.atLeast)||t.atLeast<1)throw new Error("atLeast should be a valid, non-NaN number, greater than 0");if(!i.isArray(t.expressions)||i.isEmpty(t.expressions))throw new Error("expressions should be an non-empty array");if(t.expressions.length=t.atLeast;return{message:r(),code:"containsAtLeast",format:[t.atLeast,t.expressions.length],items:n,verified:o}},assert:function(t,e){return!!e&&t.expressions.filter(function(t){return t.test(e)}).length>=t.atLeast},charsets:o.charsets}},function(t,e,n){function r(t,e){if(!e)return!1;var n,r={c:null,count:0};for(n=0;nt.max)return!1;return!0}function i(t,e){var n=new Array(t.max+2).join("a"),r={message:'No more than %d identical characters in a row (e.g., "%s" not allowed)',code:"identicalChars",format:[t.max,n]};return void 0!==e&&(r.verified=e),r}var o=n(60);t.exports={validate:function(t){if(!o.isObject(t))throw new Error("options should be an object");if(!o.isNumber(t.max)||o.isNaN(t.max)||t.max<1)throw new Error("max should be a number greater than 1");return!0},explain:i,missing:function(t,e){return i(t,r(t,e))},assert:r}},function(t,e,n){function r(t,e){return!!e&&t.minLength<=e.length}function i(t){return 1===t.minLength?{message:"Non-empty password required",code:"nonEmpty"}:{message:"At least %d characters in length",format:[t.minLength],code:"lengthAtLeast"}}var o=n(60);t.exports={validate:function(t){if(!o.isObject(t))throw new Error("options should be an object");if(!o.isNumber(t.minLength)||o.isNaN(t.minLength))throw new Error("length expects minLength to be a non-zero number");return!0},explain:i,missing:function(t,e){var n=i(t);return n.verified=!!r(t,e),n},assert:r}},function(t,e,n){"use strict";function r(t,e,n,r,i){}t.exports=r},function(t,e,n){"use strict";var r=n(80),i=n(131);t.exports=function(){function t(){i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";var r=n(80),i=n(131),o=(n(263),n(262)),a=n(259);t.exports=function(t,e){function n(t){var e=t&&(z&&t[z]||t[v]);if("function"==typeof e)return e}function s(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function u(t){this.message=t,this.stack=""}function c(t){function n(n,r,a,s,c,l,M){if(s=s||b,l=l||a,M!==o)if(e)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[a]?n?new u(null===r[a]?"The "+c+" `"+l+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+c+" `"+l+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(r,a,s,c,l)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function l(t){function e(e,n,r,i,o,a){var s=e[n];if(L(s)!==t)return new u("Invalid "+i+" `"+o+"` of type `"+m(s)+"` supplied to `"+r+"`, expected `"+t+"`.");return null}return c(e)}function M(){return c(r.thatReturnsNull)}function p(t){function e(e,n,r,i,a){if("function"!=typeof t)return new u("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=e[n];if(!Array.isArray(s)){return new u("Invalid "+i+" `"+a+"` of type `"+L(s)+"` supplied to `"+r+"`, expected an array.")}for(var c=0;c=0&&n.parseArrays&&a<=n.arrayLimit?(r=[],r[a]=s(t,e,n)):r[o]=s(t,e,n)}return r},u=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=o.exec(r),c=u?r.slice(0,u.index):r,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var M=0;null!==(u=a.exec(r))&&M8&&I<=11),w=32,z=String.fromCharCode(w),v={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},b=!1,C=null,T={eventTypes:v,extractEvents:function(t,e,n,r){return[c(t,e,n,r),p(t,e,n,r)]}};t.exports=T},function(t,e,n){"use strict";var r=n(134),i=n(12),o=(n(15),n(329),n(320)),a=n(336),s=n(339),u=(n(6),s(function(t){return a(t)})),c=!1,l="cssFloat";if(i.canUseDOM){var M=document.createElement("div").style;try{M.font=""}catch(t){c=!0}void 0===document.documentElement.style.cssFloat&&(l="styleFloat")}var p={createMarkupForStyles:function(t,e){var n="";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];null!=i&&(n+=u(r)+":",n+=o(r,i,e)+";")}return n||null},setValueForStyles:function(t,e,n){var i=t.style;for(var a in e)if(e.hasOwnProperty(a)){var s=o(a,e[a],n);if("float"!==a&&"cssFloat"!==a||(a=l),s)i[a]=s;else{var u=c&&r.shorthandPropertyExpansions[a];if(u)for(var M in u)i[M]="";else i[a]=""}}}};t.exports=p},function(t,e,n){"use strict";function r(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function i(t){var e=w.getPooled(C.change,E,t,z(t));j.accumulateTwoPhaseDispatches(e),m.batchedUpdates(o,e)}function o(t){D.enqueueEvents(t),D.processEventQueue(!1)}function a(t,e){T=t,E=e,T.attachEvent("onchange",i)}function s(){T&&(T.detachEvent("onchange",i),T=null,E=null)}function u(t,e){if("topChange"===t)return e}function c(t,e,n){"topFocus"===t?(s(),a(e,n)):"topBlur"===t&&s()}function l(t,e){T=t,E=e,k=t.value,x=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(T,"value",A),T.attachEvent?T.attachEvent("onpropertychange",p):T.addEventListener("propertychange",p,!1)}function M(){T&&(delete T.value,T.detachEvent?T.detachEvent("onpropertychange",p):T.removeEventListener("propertychange",p,!1),T=null,E=null,k=null,x=null)}function p(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==k&&(k=e,i(t))}}function g(t,e){if("topInput"===t)return e}function d(t,e,n){"topFocus"===t?(M(),l(e,n)):"topBlur"===t&&M()}function h(t,e){if(("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)&&T&&T.value!==k)return k=T.value,E}function f(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function y(t,e){if("topClick"===t)return e}function N(t,e){if(null!=t){var n=t._wrapperState||e._wrapperState;if(n&&n.controlled&&"number"===e.type){var r=""+e.value;e.getAttribute("value")!==r&&e.setAttribute("value",r)}}}var D=n(49),j=n(50),I=n(12),L=n(7),m=n(21),w=n(24),z=n(93),v=n(94),b=n(153),C={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},T=null,E=null,k=null,x=null,O=!1;I.canUseDOM&&(O=v("change")&&(!document.documentMode||document.documentMode>8));var S=!1;I.canUseDOM&&(S=v("input")&&(!document.documentMode||document.documentMode>11));var A={get:function(){return x.get.call(this)},set:function(t){k=""+t,x.set.call(this,t)}},U={eventTypes:C,extractEvents:function(t,e,n,i){var o,a,s=e?L.getNodeFromInstance(e):window;if(r(s)?O?o=u:a=c:b(s)?S?o=g:(o=h,a=d):f(s)&&(o=y),o){var l=o(t,e);if(l){var M=w.getPooled(C.change,l,n,i);return M.type="change",j.accumulateTwoPhaseDispatches(M),M}}a&&a(t,s,e),"topBlur"===t&&N(e,s)}};t.exports=U},function(t,e,n){"use strict";var r=n(4),i=n(41),o=n(12),a=n(332),s=n(25),u=(n(2),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(o.canUseDOM||r("56"),e||r("57"),"HTML"===t.nodeName&&r("58"),"string"==typeof e){var n=a(e,s)[0];t.parentNode.replaceChild(n,t)}else i.replaceChildWithTree(t,e)}});t.exports=u},function(t,e,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=r},function(t,e,n){"use strict";var r=n(50),i=n(7),o=n(62),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(t,e,n,s){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var u;if(s.window===s)u=s;else{var c=s.ownerDocument;u=c?c.defaultView||c.parentWindow:window}var l,M;if("topMouseOut"===t){l=e;var p=n.relatedTarget||n.toElement;M=p?i.getClosestInstanceFromNode(p):null}else l=null,M=e;if(l===M)return null;var g=null==l?u:i.getNodeFromInstance(l),d=null==M?u:i.getNodeFromInstance(M),h=o.getPooled(a.mouseLeave,l,n,s);h.type="mouseleave",h.target=g,h.relatedTarget=d;var f=o.getPooled(a.mouseEnter,M,n,s);return f.type="mouseenter",f.target=d,f.relatedTarget=g,r.accumulateEnterLeaveDispatches(h,f,l,M),[h,f]}};t.exports=s},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var i=n(5),o=n(33),a=n(150);i(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,r=n.length,i=this.getText(),o=i.length;for(t=0;t1?1-e:void 0;return this._fallbackText=i.slice(t,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(42),i=r.injection.MUST_USE_PROPERTY,o=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:o,allowTransparency:0,alt:0,as:0,async:o,autoComplete:0,autoPlay:o,capture:o,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:i|o,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:o,coords:0,crossOrigin:0,data:0,dateTime:0,default:o,defer:o,dir:0,disabled:o,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:o,formTarget:0,frameBorder:0,headers:0,height:0,hidden:o,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:o,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:i|o,muted:i|o,name:0,nonce:0,noValidate:o,open:o,optimum:0,pattern:0,placeholder:0,playsInline:o,poster:0,preload:0,profile:0,radioGroup:0,readOnly:o,referrerPolicy:0,rel:0,required:o,reversed:o,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:o,scrolling:0,seamless:o,selected:i|o,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:o,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||t.hasAttribute("value")===!1?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}};t.exports=c},function(t,e,n){"use strict";(function(e){function r(t,e,n,r){var i=void 0===t[n];null!=e&&i&&(t[n]=o(e,!0))}var i=n(43),o=n(152),a=(n(85),n(95)),s=n(155);n(6);void 0!==e&&n.i({NODE_ENV:"production"});var u={instantiateChildren:function(t,e,n,i){if(null==t)return null;var o={};return s(t,r,o),o},updateChildren:function(t,e,n,r,s,u,c,l,M){if(e||t){var p,g;for(p in e)if(e.hasOwnProperty(p)){g=t&&t[p];var d=g&&g._currentElement,h=e[p];if(null!=g&&a(d,h))i.receiveComponent(g,h,s,l),e[p]=g;else{g&&(r[p]=i.getHostNode(g),i.unmountComponent(g,!1));var f=o(h,!0);e[p]=f;var y=i.mountComponent(f,s,u,c,l,M);n.push(y)}}for(p in t)!t.hasOwnProperty(p)||e&&e.hasOwnProperty(p)||(g=t[p],r[p]=i.getHostNode(g),i.unmountComponent(g,!1))}},unmountChildren:function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];i.unmountComponent(r,e)}}};t.exports=u}).call(e,n(39))},function(t,e,n){"use strict";var r=n(81),i=n(284),o={processChildrenUpdates:i.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=o},function(t,e,n){"use strict";function r(t){}function i(t,e){}function o(t){return!(!t.prototype||!t.prototype.isReactComponent)}function a(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}var s=n(4),u=n(5),c=n(26),l=n(87),M=n(27),p=n(88),g=n(51),d=(n(15),n(145)),h=n(43),f=n(157),y=(n(2),n(97)),N=n(95),D=(n(6),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var t=g.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return i(t,e),e};var j=1,I={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(t,e,n,u){this._context=u,this._mountOrder=j++,this._hostParent=e,this._hostContainerInfo=n;var l,M=this._currentElement.props,p=this._processContext(u),d=this._currentElement.type,h=t.getUpdateQueue(),y=o(d),N=this._constructComponent(y,M,p,h);y||null!=N&&null!=N.render?a(d)?this._compositeType=D.PureClass:this._compositeType=D.ImpureClass:(l=N,i(d,l),null===N||N===!1||c.isValidElement(N)||s("105",d.displayName||d.name||"Component"),N=new r(d),this._compositeType=D.StatelessFunctional);N.props=M,N.context=p,N.refs=f,N.updater=h,this._instance=N,g.set(N,this);var I=N.state;void 0===I&&(N.state=I=null),("object"!=typeof I||Array.isArray(I))&&s("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var L;return L=N.unstable_handleError?this.performInitialMountWithErrorHandling(l,e,n,t,u):this.performInitialMount(l,e,n,t,u),N.componentDidMount&&t.getReactMountReady().enqueue(N.componentDidMount,N),L},_constructComponent:function(t,e,n,r){return this._constructComponentWithoutOwner(t,e,n,r)},_constructComponentWithoutOwner:function(t,e,n,r){var i=this._currentElement.type;return t?new i(e,n,r):i(e,n,r)},performInitialMountWithErrorHandling:function(t,e,n,r,i){var o,a=r.checkpoint();try{o=this.performInitialMount(t,e,n,r,i)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),o=this.performInitialMount(t,e,n,r,i)}return o},performInitialMount:function(t,e,n,r,i){var o=this._instance,a=0;o.componentWillMount&&(o.componentWillMount(),this._pendingStateQueue&&(o.state=this._processPendingState(o.props,o.context))),void 0===t&&(t=this._renderValidatedComponent());var s=d.getType(t);this._renderedNodeType=s;var u=this._instantiateReactComponent(t,s!==d.EMPTY);this._renderedComponent=u;var c=h.mountComponent(u,r,e,n,this._processChildContext(i),a);return c},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var e=this._instance;if(e.componentWillUnmount&&!e._calledComponentWillUnmount)if(e._calledComponentWillUnmount=!0,t){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,e.componentWillUnmount.bind(e))}else e.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,g.remove(e)}},_maskContext:function(t){var e=this._currentElement.type,n=e.contextTypes;if(!n)return f;var r={};for(var i in n)r[i]=t[i];return r},_processContext:function(t){var e=this._maskContext(t);return e},_processChildContext:function(t){var e,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(e=r.getChildContext()),e){"object"!=typeof n.childContextTypes&&s("107",this.getName()||"ReactCompositeComponent");for(var i in e)i in n.childContextTypes||s("108",this.getName()||"ReactCompositeComponent",i);return u({},t,e)}return t},_checkContextTypes:function(t,e,n){},receiveComponent:function(t,e,n){var r=this._currentElement,i=this._context;this._pendingElement=null,this.updateComponent(e,r,t,i,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement?h.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,e,n,r,i){var o=this._instance;null==o&&s("136",this.getName()||"ReactCompositeComponent");var a,u=!1;this._context===i?a=o.context:(a=this._processContext(i),u=!0);var c=e.props,l=n.props;e!==n&&(u=!0),u&&o.componentWillReceiveProps&&o.componentWillReceiveProps(l,a);var M=this._processPendingState(l,a),p=!0;this._pendingForceUpdate||(o.shouldComponentUpdate?p=o.shouldComponentUpdate(l,M,a):this._compositeType===D.PureClass&&(p=!y(c,l)||!y(o.state,M))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,M,a,t,i)):(this._currentElement=n,this._context=i,o.props=l,o.state=M,o.context=a)},_processPendingState:function(t,e){var n=this._instance,r=this._pendingStateQueue,i=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(i&&1===r.length)return r[0];for(var o=u({},i?r[0]:n.state),a=i?1:0;a=0||null!=e.is}function d(t){var e=t.type;p(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var h=n(4),f=n(5),y=n(268),N=n(270),D=n(41),j=n(82),I=n(42),L=n(136),m=n(49),w=n(83),z=n(61),v=n(138),b=n(7),C=n(285),T=n(286),E=n(139),k=n(289),x=(n(15),n(298)),O=n(303),S=(n(25),n(64)),A=(n(2),n(94),n(97),n(96),n(6),v),U=m.deleteListener,_=b.getNodeFromInstance,Y=z.listenTo,Q=w.registrationNameModules,B={string:!0,number:!0},P="style",G="__html",R={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},Z=11,H={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},W={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},V={listing:!0,pre:!0,textarea:!0},F=f({menuitem:!0},W),J=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,q={},X={}.hasOwnProperty,K=1;d.displayName="ReactDOMComponent",d.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=K++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var o=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(l,this);break;case"input":C.mountWrapper(this,o,e),o=C.getHostProps(this,o),t.getReactMountReady().enqueue(l,this);break;case"option":T.mountWrapper(this,o,e),o=T.getHostProps(this,o);break;case"select":E.mountWrapper(this,o,e),o=E.getHostProps(this,o),t.getReactMountReady().enqueue(l,this);break;case"textarea":k.mountWrapper(this,o,e),o=k.getHostProps(this,o),t.getReactMountReady().enqueue(l,this)}i(this,o);var a,M;null!=e?(a=e._namespaceURI,M=e._tag):n._tag&&(a=n._namespaceURI,M=n._tag),(null==a||a===j.svg&&"foreignobject"===M)&&(a=j.html),a===j.html&&("svg"===this._tag?a=j.svg:"math"===this._tag&&(a=j.mathml)),this._namespaceURI=a;var p;if(t.useCreateElement){var g,d=n._ownerDocument;if(a===j.html)if("script"===this._tag){var h=d.createElement("div"),f=this._currentElement.type;h.innerHTML="<"+f+">",g=h.removeChild(h.firstChild)}else g=o.is?d.createElement(this._currentElement.type,o.is):d.createElement(this._currentElement.type);else g=d.createElementNS(a,this._currentElement.type);b.precacheNode(this,g),this._flags|=A.hasCachedChildNodes,this._hostParent||L.setAttributeForRoot(g),this._updateDOMProperties(null,o,t);var N=D(g);this._createInitialChildren(t,o,r,N),p=N}else{var I=this._createOpenTagMarkupAndPutListeners(t,o),m=this._createContentMarkup(t,o,r);p=!m&&W[this._tag]?I+"/>":I+">"+m+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(s,this),o.autoFocus&&t.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(u,this),o.autoFocus&&t.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":o.autoFocus&&t.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":o.autoFocus&&t.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(c,this)}return p},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(null!=i)if(Q.hasOwnProperty(r))i&&o(this,r,i,t);else{r===P&&(i&&(i=this._previousStyleCopy=f({},e.style)),i=N.createMarkupForStyles(i,this));var a=null;null!=this._tag&&g(this._tag,e)?R.hasOwnProperty(r)||(a=L.createMarkupForCustomAttribute(r,i)):a=L.createMarkupForProperty(r,i),a&&(n+=" "+a)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+L.createMarkupForRoot()),n+=" "+L.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var o=B[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)r=S(o);else if(null!=a){var s=this.mountChildren(a,t,n);r=s.join("")}}return V[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&D.queueHTML(r,i.__html);else{var o=B[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)""!==o&&D.queueText(r,o);else if(null!=a)for(var s=this.mountChildren(a,t,n),u=0;u"},receiveComponent:function(){},getHostNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),t.exports=a},function(t,e,n){"use strict";var r={useCreateElement:!0,useFiber:!1};t.exports=r},function(t,e,n){"use strict";var r=n(81),i=n(7),o={dangerouslyProcessChildrenUpdates:function(t,e){var n=i.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=o},function(t,e,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function i(t){return"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}function o(t){var e=this._currentElement.props,n=c.executeOnChange(e,t);M.asap(r,this);var i=e.name;if("radio"===e.type&&null!=i){for(var o=l.getNodeFromInstance(this),s=o;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),p=0;pe.end?(n=e.end,r=e.start):(n=e.start,r=e.end),i.moveToElementText(t),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),r=t[l()].length,i=Math.min(e.start,r),o=void 0===e.end?i:Math.min(e.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=c(t,i),u=c(t,o);if(s&&u){var M=document.createRange();M.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(M),n.extend(u.node,u.offset)):(M.setEnd(u.node,u.offset),n.addRange(M))}}}var u=n(12),c=n(325),l=n(150),M=u.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:M?i:o,setOffsets:M?a:s};t.exports=p},function(t,e,n){"use strict";var r=n(4),i=n(5),o=n(81),a=n(41),s=n(7),u=n(64),c=(n(2),n(96),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});i(c.prototype,{mountComponent:function(t,e,n,r){var i=n._idCounter++,o=" react-text: "+i+" ",c=" /react-text ";if(this._domID=i,this._hostParent=e,t.useCreateElement){var l=n._ownerDocument,M=l.createComment(o),p=l.createComment(c),g=a(l.createDocumentFragment());return a.queueChild(g,a(M)),this._stringText&&a.queueChild(g,a(l.createTextNode(this._stringText))),a.queueChild(g,a(p)),s.precacheNode(this,M),this._closingComment=p,g}var d=u(this._stringText);return t.renderToStaticMarkup?d:""+d+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();o.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=s.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=c},function(t,e,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function i(t){var e=this._currentElement.props,n=s.executeOnChange(e,t);return c.asap(r,this),n}var o=n(4),a=n(5),s=n(86),u=n(7),c=n(21),l=(n(2),n(6),{getHostProps:function(t,e){return null!=e.dangerouslySetInnerHTML&&o("91"),a({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue,onChange:t._wrapperState.onChange})},mountWrapper:function(t,e){var n=s.getValue(e),r=n;if(null==n){var a=e.defaultValue,u=e.children;null!=u&&(null!=a&&o("92"),Array.isArray(u)&&(u.length<=1||o("93"),u=u[0]),a=""+u),null==a&&(a=""),r=a}t._wrapperState={initialValue:""+r,listeners:null,onChange:i.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=u.getNodeFromInstance(t),r=s.getValue(e);if(null!=r){var i=""+r;i!==n.value&&(n.value=i),null==e.defaultValue&&(n.defaultValue=i)}null!=e.defaultValue&&(n.defaultValue=e.defaultValue)},postMountWrapper:function(t){var e=u.getNodeFromInstance(t),n=e.textContent;n===t._wrapperState.initialValue&&(e.value=n)}});t.exports=l},function(t,e,n){"use strict";function r(t,e){"_hostNode"in t||u("33"),"_hostNode"in e||u("33");for(var n=0,r=t;r;r=r._hostParent)n++;for(var i=0,o=e;o;o=o._hostParent)i++;for(;n-i>0;)t=t._hostParent,n--;for(;i-n>0;)e=e._hostParent,i--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function i(t,e){"_hostNode"in t||u("35"),"_hostNode"in e||u("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function o(t){return"_hostNode"in t||u("36"),t._hostParent}function a(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var i;for(i=r.length;i-- >0;)e(r[i],"captured",n);for(i=0;i0;)n(u[c],"captured",o)}var u=n(4);n(2);t.exports={isAncestor:i,getLowestCommonAncestor:r,getParentInstance:o,traverseTwoPhase:a,traverseEnterLeave:s}},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var i=n(5),o=n(21),a=n(63),s=n(25),u={initialize:s,close:function(){p.isBatchingUpdates=!1}},c={initialize:s,close:o.flushBatchedUpdates.bind(o)},l=[c,u];i(r.prototype,a,{getTransactionWrappers:function(){return l}});var M=new r,p={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,i,o){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?t(e,n,r,i,o):M.perform(t,null,e,n,r,i,o)}};t.exports=p},function(t,e,n){"use strict";function r(){m||(m=!0,N.EventEmitter.injectReactEventListener(y),N.EventPluginHub.injectEventPluginOrder(s),N.EventPluginUtils.injectComponentTree(p),N.EventPluginUtils.injectTreeTraversal(d),N.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:L,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:I,BeforeInputEventPlugin:o}),N.HostComponent.injectGenericComponentClass(M),N.HostComponent.injectTextComponentClass(h),N.DOMProperty.injectDOMPropertyConfig(i),N.DOMProperty.injectDOMPropertyConfig(c),N.DOMProperty.injectDOMPropertyConfig(j),N.EmptyComponent.injectEmptyComponentFactory(function(t){return new g(t)}),N.Updates.injectReconcileTransaction(D),N.Updates.injectBatchingStrategy(f),N.Component.injectEnvironment(l))}var i=n(267),o=n(269),a=n(271),s=n(273),u=n(274),c=n(276),l=n(278),M=n(280),p=n(7),g=n(282),d=n(290),h=n(288),f=n(291),y=n(295),N=n(296),D=n(301),j=n(306),I=n(307),L=n(308),m=!1;t.exports={inject:r}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},function(t,e,n){"use strict";function r(t){i.enqueueEvents(t),i.processEventQueue(!1)}var i=n(49),o={handleTopLevel:function(t,e,n,o){r(i.extractEvents(t,e,n,o))}};t.exports=o},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=M.getNodeFromInstance(t),n=e.parentNode;return M.getClosestInstanceFromNode(n)}function i(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function o(t){var e=g(t.nativeEvent),n=M.getClosestInstanceFromNode(e),i=n;do{t.ancestors.push(i),i=i&&r(i)}while(i);for(var o=0;o/,o=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return o.test(t)?t:t.replace(i," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(t)===n}};t.exports=a},function(t,e,n){"use strict";function r(t,e,n){return{type:"INSERT_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:n,afterNode:e}}function i(t,e,n){return{type:"MOVE_EXISTING",content:null,fromIndex:t._mountIndex,fromNode:p.getHostNode(t),toIndex:n,afterNode:e}}function o(t,e){return{type:"REMOVE_NODE",content:null,fromIndex:t._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function a(t){return{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(t){return{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(t,e){return e&&(t=t||[],t.push(e)),t}function c(t,e){M.processChildrenUpdates(t,e)}var l=n(4),M=n(87),p=(n(51),n(15),n(27),n(43)),g=n(277),d=(n(25),n(322)),h=(n(2),{Mixin:{_reconcilerInstantiateChildren:function(t,e,n){return g.instantiateChildren(t,e,n)},_reconcilerUpdateChildren:function(t,e,n,r,i,o){var a,s=0;return a=d(e,s),g.updateChildren(t,a,n,r,i,this,this._hostContainerInfo,o,s),a},mountChildren:function(t,e,n){var r=this._reconcilerInstantiateChildren(t,e,n);this._renderedChildren=r;var i=[],o=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=0,c=p.mountComponent(s,e,this,this._hostContainerInfo,n,u);s._mountIndex=o++,i.push(c)}return i},updateTextContent:function(t){var e=this._renderedChildren;g.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&l("118");c(this,[s(t)])},updateMarkup:function(t){var e=this._renderedChildren;g.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&l("118");c(this,[a(t)])},updateChildren:function(t,e,n){this._updateChildren(t,e,n)},_updateChildren:function(t,e,n){var r=this._renderedChildren,i={},o=[],a=this._reconcilerUpdateChildren(r,t,o,i,e,n);if(a||r){var s,l=null,M=0,g=0,d=0,h=null;for(s in a)if(a.hasOwnProperty(s)){var f=r&&r[s],y=a[s];f===y?(l=u(l,this.moveChild(f,h,M,g)),g=Math.max(f._mountIndex,g),f._mountIndex=M):(f&&(g=Math.max(f._mountIndex,g)),l=u(l,this._mountChildAtIndex(y,o[d],h,M,e,n)),d++),M++,h=p.getHostNode(y)}for(s in i)i.hasOwnProperty(s)&&(l=u(l,this._unmountChild(r[s],i[s])));l&&c(this,l),this._renderedChildren=a}},unmountChildren:function(t){var e=this._renderedChildren;g.unmountChildren(e,t),this._renderedChildren=null},moveChild:function(t,e,n,r){if(t._mountIndex=e)return{node:n,offset:e-o};o=a}n=r(i(n))}}t.exports=o},function(t,e,n){"use strict";function r(t){return'"'+i(t)+'"'}var i=n(64);t.exports=r},function(t,e,n){"use strict";var r=n(144);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){"use strict";function r(t){return t.replace(i,function(t,e){return e.toUpperCase()})}var i=/-(.)/g;t.exports=r},function(t,e,n){"use strict";function r(t){return i(t.replace(o,"ms-"))}var i=n(328),o=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!i(t)&&(i(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var i=n(338);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&a(!1),"number"!=typeof e&&a(!1),0===e||e-1 in t||a(!1),"function"==typeof t.callee&&a(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r":"<"+t+">",s[t]=!a.firstChild),s[t]?p[t]:null}var i=n(12),o=n(2),a=i.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],c=[1,"","
"],l=[3,"","
"],M=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(t){p[t]=M,s[t]=!0}),t.exports=r},function(t,e,n){"use strict";function r(t){return t===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=r},function(t,e,n){"use strict";function r(t){return t.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;t.exports=r},function(t,e,n){"use strict";function r(t){return i(t).replace(o,"-ms-")}var i=n(335),o=/^ms-/;t.exports=r},function(t,e,n){"use strict";function r(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=r},function(t,e,n){"use strict";function r(t){return i(t)&&3==t.nodeType}var i=n(337);t.exports=r},function(t,e,n){"use strict";function r(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=r},function(t,e,n){"use strict";var r=n(45),i=(n(34),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),o=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n),i}return new r(t,e,n)},s=function(t,e,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,t,e,n,r),o}return new i(t,e,n,r)},u=function(t){var e=this;t instanceof e||r("25"),t.destructor(),e.instancePool.length-1},matchesSelector:function(t,e){return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(e){return r(t,e)}).call(t,e)}};t.exports=o},function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e,n){function r(t){return"[object Function]"===(i(t)?Object.prototype.toString.call(t):"")}var i=n(104);t.exports=r},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}var o=n(104);t.exports=r,r.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},r.prototype.parse=function(t){return this._parser=t,this},r.prototype.responseType=function(t){return this._responseType=t,this},r.prototype.serialize=function(t){return this._serializer=t,this},r.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this;for(var e in t)switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;default:console.warn("Unknown timeout option",e)}return this},r.prototype.retry=function(t){return 0!==arguments.length&&t!==!0||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},r.prototype.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.end(function(n,r){n?e(n):t(r)})})}return this._fullfilledPromise.then(t,e)},r.prototype.catch=function(t){return this.then(void 0,t)},r.prototype.use=function(t){return t(this),this},r.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},r.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},r.prototype.get=function(t){return this._header[t.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(t,e){if(o(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},r.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},r.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(t)){for(var n in t)this.field(n,t[n]);return this}if(Array.isArray(e)){for(var r in e)this.field(t,e[r]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},r.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},r.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},r.prototype.redirects=function(t){return this._maxRedirects=t,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(t){var e=o(t),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&o(this._data))for(var r in t)this._data[r]=t[r];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(n||this.type("json"),this)},r.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},r.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error(t+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},r.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}var o=n(363);t.exports=r,r.prototype.get=function(t){return this.header[t.toLowerCase()]},r.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var n=o.params(e);for(var r in n)this[r]=n[r];this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},r.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t}},function(t,e){var n=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];t.exports=function(t,e){return!!(t&&t.code&&~n.indexOf(t.code))||(!!(e&&e.status&&e.status>=500)||!!(t&&"timeout"in t&&"ECONNABORTED"==t.code))}},function(t,e){e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce(function(t,e){var n=e.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(t[r]=i),t},{})},e.parseLinks=function(t){return t.split(/ *, */).reduce(function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t},{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&delete t.cookie,t}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(106);"function"==typeof t.window.define&&t.window.define.amd?t.window.define("auth0Lock",function(){return r.a}):t.window&&(t.window.Auth0Lock=r.a)}).call(e,n(13))}]); -//# sourceMappingURL=lock.min.js.map \ No newline at end of file diff --git a/src/app/src/main.ts b/src/app/src/main.ts deleted file mode 100644 index e3a450b..0000000 --- a/src/app/src/main.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {Aurelia} from 'aurelia-framework' -import environment from './environment'; - -export function configure(aurelia: Aurelia) { - aurelia.use - .standardConfiguration() - .feature('resources'); - - if (environment.debug) { - aurelia.use.developmentLogging(); - } - - if (environment.testing) { - aurelia.use.plugin('aurelia-testing'); - } - - aurelia.start().then(() => aurelia.setRoot()); -} diff --git a/src/app/src/messages.ts b/src/app/src/messages.ts deleted file mode 100644 index e350617..0000000 --- a/src/app/src/messages.ts +++ /dev/null @@ -1,3 +0,0 @@ -export class PageTitle { - constructor(public title: string) { } -} \ No newline at end of file diff --git a/src/app/src/resources/elements/loading-indicator.ts b/src/app/src/resources/elements/loading-indicator.ts deleted file mode 100644 index a44560b..0000000 --- a/src/app/src/resources/elements/loading-indicator.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as nprogress from 'nprogress'; -import {bindable, noView} from 'aurelia-framework'; - -@noView(['nprogress/nprogress.css']) -export class LoadingIndicator { - @bindable loading = false; - - loadingChanged(newValue) { - if (newValue) { - nprogress.start(); - } else { - nprogress.done(); - } - } -} \ No newline at end of file diff --git a/src/app/src/resources/index.ts b/src/app/src/resources/index.ts deleted file mode 100644 index 6ccb7c9..0000000 --- a/src/app/src/resources/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import {FrameworkConfiguration} from 'aurelia-framework'; - -export function configure(config: FrameworkConfiguration) { - config.globalResources(['./elements/loading-indicator']); -} diff --git a/src/app/src/styles.css b/src/app/src/styles.css deleted file mode 100644 index 071fef5..0000000 --- a/src/app/src/styles.css +++ /dev/null @@ -1,35 +0,0 @@ -body { - padding-top: 70px; - padding-bottom: 20px; - font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; -} - -/* Wrapping element */ -/* Set some basic padding to keep content from hitting the edges */ -.body-content { - padding-left: 15px; - padding-right: 15px; -} -.material-icons.md-18 { - font-size: 18px; -} -.material-icons.md-24 { - font-size: 24px; -} -.material-icons.md-36 { - font-size: 36px; -} -.material-icons.md-48 { - font-size: 48px; -} -.material-icons { - vertical-align: middle; -} -.mpj-page-title { - border-bottom: solid 1px lightgray; - margin-bottom: 20px; -} -.mpj-footer { - border-top: solid 1px lightgray; - margin-top: 20px; -} \ No newline at end of file diff --git a/src/app/src/utility.ts b/src/app/src/utility.ts deleted file mode 100644 index 769909b..0000000 --- a/src/app/src/utility.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function areEqual(obj1, obj2) { - return Object.keys(obj1).every((key) => obj2.hasOwnProperty(key) && (obj1[key] === obj2[key])); -}; \ No newline at end of file diff --git a/src/app/test/aurelia-karma.js b/src/app/test/aurelia-karma.js deleted file mode 100644 index d76a928..0000000 --- a/src/app/test/aurelia-karma.js +++ /dev/null @@ -1,87 +0,0 @@ -(function(global) { - var karma = global.__karma__; - var requirejs = global.requirejs - var locationPathname = global.location.pathname; - var root = 'src'; - karma.config.args.forEach(function(value, index) { - if (value === 'aurelia-root') { - root = karma.config.args[index + 1]; - } - }); - - if (!karma || !requirejs) { - return; - } - - function normalizePath(path) { - var normalized = [] - var parts = path - .split('?')[0] // cut off GET params, used by noext requirejs plugin - .split('/') - - for (var i = 0; i < parts.length; i++) { - if (parts[i] === '.') { - continue - } - - if (parts[i] === '..' && normalized.length && normalized[normalized.length - 1] !== '..') { - normalized.pop() - continue - } - - normalized.push(parts[i]) - } - - // Use case of testing source code. RequireJS doesn't add .js extension to files asked via sibling selector - // If normalized path doesn't include some type of extension, add the .js to it - if (normalized.length > 0 && normalized[normalized.length - 1].indexOf('.') < 0) { - normalized[normalized.length - 1] = normalized[normalized.length - 1] + '.js' - } - - return normalized.join('/') - } - - function patchRequireJS(files, originalLoadFn, locationPathname) { - var IS_DEBUG = /debug\.html$/.test(locationPathname) - - requirejs.load = function (context, moduleName, url) { - url = normalizePath(url) - - if (files.hasOwnProperty(url) && !IS_DEBUG) { - url = url + '?' + files[url] - } - - if (url.indexOf('/base') !== 0) { - url = '/base/' + url; - } - - return originalLoadFn.call(this, context, moduleName, url) - } - - var originalDefine = global.define; - global.define = function(name, deps, m) { - if (typeof name === 'string') { - originalDefine('/base/' + root + '/' + name, [name], function (result) { return result; }); - } - - return originalDefine(name, deps, m); - } - } - - function requireTests() { - var TEST_REGEXP = /(spec)\.js$/i; - var allTestFiles = ['/base/test/unit/setup.js']; - - Object.keys(window.__karma__.files).forEach(function(file) { - if (TEST_REGEXP.test(file)) { - allTestFiles.push(file); - } - }); - - require(allTestFiles, window.__karma__.start); - } - - karma.loaded = function() {}; // make it async - patchRequireJS(karma.files, requirejs.load, locationPathname); - requireTests(); -})(window); diff --git a/src/app/test/unit/app.spec.ts b/src/app/test/unit/app.spec.ts deleted file mode 100644 index 500fdb5..0000000 --- a/src/app/test/unit/app.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import {App} from '../../src/app'; - -describe('the app', () => { - it('says hello', () => { - expect(new App().message).toBe('Hello World!'); - }); -}); diff --git a/src/app/test/unit/setup.ts b/src/app/test/unit/setup.ts deleted file mode 100644 index a2498cc..0000000 --- a/src/app/test/unit/setup.ts +++ /dev/null @@ -1,3 +0,0 @@ -import 'aurelia-polyfills'; -import {initialize} from 'aurelia-pal-browser'; -initialize(); diff --git a/src/app/tsconfig.json b/src/app/tsconfig.json deleted file mode 100644 index 82ad48d..0000000 --- a/src/app/tsconfig.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "compileOnSave": false, - "compilerOptions": { - "sourceMap": true, - "target": "es5", - "module": "amd", - "declaration": false, - "noImplicitAny": false, - "removeComments": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "moduleResolution": "node", - "lib": ["es2017", "dom"] - }, - "exclude": [ - "node_modules", - "aurelia_project" - ], - "filesGlob": [ - "./src/**/*.ts", - "./test/**/*.ts", - "./custom_typings/**/*.d.ts" - ], - "atom": { - "rewriteTsconfig": false - } -} diff --git a/src/app/tslint.json b/src/app/tslint.json deleted file mode 100644 index a5240ac..0000000 --- a/src/app/tslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rules": { - - } -} diff --git a/src/app/typings.json b/src/app/typings.json deleted file mode 100644 index ead2a23..0000000 --- a/src/app/typings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "globalDependencies": { - "nprogress": "registry:dt/nprogress#0.0.0+20161119044246" - } -} diff --git a/src/app/typings/globals/nprogress/index.d.ts b/src/app/typings/globals/nprogress/index.d.ts deleted file mode 100644 index 06f92b5..0000000 --- a/src/app/typings/globals/nprogress/index.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -// Generated by typings -// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/253e456e3c0bf4bd34afaceb7dcbae282da14066/nprogress/index.d.ts -interface NProgressStatic { - /** - * Shows the progress bar and begins trickling progress. - * @returns {NProgressConfigureOptions} The current NProgress object, useful for chaining. - */ - start(): NProgressStatic; - - /** - * Finishes loading by transitioning it to 100%, then fading out. - * @param {boolean} forceShow Forces the progress bar to show, even if it's not being shown. (The default behavior is that .done() will not do anything if .start() isn't called.) - * @returns {NProgressConfigureOptions} The current NProgress object, useful for chaining. - */ - done(forceShow?: boolean): NProgressStatic; - - /** - * Increments the progress bar with a random amount. This will never get to 100%: use it for every image load (or similar). - * @returns {NProgressConfigureOptions} The current NProgress object, useful for chaining. - */ - inc(): NProgressStatic; - - /** - * Increments the progress bar with a set amount. - * @param {number} amount This will get the current status value and adds the value until status is max 0.994 - * @returns {NProgressConfigureOptions} The current NProgress object, useful for chaining. - */ - inc(amount: number): NProgressStatic; - - /** - * Removes the progress indicator. - */ - remove(): void; - - /** - * Sets the progress percentage. - * @param {number} progressPercent A number between 0.0 and 1.0 that represents the progress percentage. - * @returns {NProgressConfigureOptions} The current NProgress object, useful for chaining. - */ - set(progressPercent: number): NProgressStatic; - - /** - * Configures the progress indicator. - * @param {NProgressConfigureOptions} options An object containing the configuration options. - * @returns {NProgressConfigureOptions} The current NProgress object, useful for chaining. - */ - configure(options: NProgressConfigureOptions): NProgressStatic; - - /** - * Gets the NProgress version. - */ - version: string; - - /** - * Gets the status. If started, it will be the last progress number set. - */ - status: any; - - /** - * Gets whether progress has been started. - * @returns {boolean} Whether the progress has started. - */ - isStarted(): boolean; -} - -interface NProgressConfigureOptions { - - /** - * CSS selector to change the parent DOM element of the progress. Default is body. - */ - parent?: string - - /** - * The minimum progress percentage. Default is 0.08. - */ - minimum?: number; - - /** - * How often to trickle, in milliseconds. Default is 800. - */ - trickleSpeed?: number; - - /** - * Whether to show the spinner. Defaults to true. Default is true. - */ - showSpinner?: boolean; - - /** - * Whether to enable trickling the progress. Default is true. - */ - trickle?: boolean; - - /** - * The CSS easing animation to use. Default is 'linear'. - */ - easing?: string; - - /** - * The animation speed in milliseconds. Default is 200. - */ - speed?: number; - - /** - * The HTML markup inserted for the progress indicator. To keep the progress bar working, keep an element with role='bar' in there. - */ - template?: string; -} - -declare var NProgress: NProgressStatic; - -declare module "nprogress" { - export = NProgress; -} diff --git a/src/app/typings/globals/nprogress/typings.json b/src/app/typings/globals/nprogress/typings.json deleted file mode 100644 index b0382ee..0000000 --- a/src/app/typings/globals/nprogress/typings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resolution": "main", - "tree": { - "src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/253e456e3c0bf4bd34afaceb7dcbae282da14066/nprogress/index.d.ts", - "raw": "registry:dt/nprogress#0.0.0+20161119044246", - "typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/253e456e3c0bf4bd34afaceb7dcbae282da14066/nprogress/index.d.ts" - } -} diff --git a/src/app/typings/index.d.ts b/src/app/typings/index.d.ts deleted file mode 100644 index 76470ca..0000000 --- a/src/app/typings/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -///