diff --git a/Extensions/DialogueTree/JsExtension.js b/Extensions/DialogueTree/JsExtension.js index 55350b422e95..66680e1cde96 100644 --- a/Extensions/DialogueTree/JsExtension.js +++ b/Extensions/DialogueTree/JsExtension.js @@ -15,6 +15,14 @@ /** @type {ExtensionModule} */ module.exports = { + // todo do we need some special type of importing when dealing with umd modules? + // registerInstanceRenderers: function (objectsRenderingService) { + // const bondage = objectsRenderingService.requireModule( + // __dirname, + // 'bondage.js/dist/bondage.min.js' + // ); + // console.log({bondage}) + // } createExtension: function (_, gd) { const extension = new gd.PlatformExtension(); extension @@ -50,8 +58,8 @@ module.exports = { false ) .getCodeExtraInformation() - .setIncludeFile('Extensions/DialogueTree/dialoguetools.js') - .addIncludeFile('Extensions/DialogueTree/bondage.js/dist/bondage.min.js') + .setIncludeFile('Extensions/DialogueTree/bondage.js/dist/bondage.js') + .addIncludeFile('Extensions/DialogueTree/dialoguetools.js') .setFunctionName('gdjs.dialogueTree.loadFromSceneVariable'); extension diff --git a/Extensions/DialogueTree/bondage.js/LICENSE.md b/Extensions/DialogueTree/bondage.js/LICENSE similarity index 100% rename from Extensions/DialogueTree/bondage.js/LICENSE.md rename to Extensions/DialogueTree/bondage.js/LICENSE diff --git a/Extensions/DialogueTree/bondage.js/README.md b/Extensions/DialogueTree/bondage.js/README.md index 6e60136cd6c3..0398dec46d55 100644 --- a/Extensions/DialogueTree/bondage.js/README.md +++ b/Extensions/DialogueTree/bondage.js/README.md @@ -1,67 +1,293 @@ -# bondage.js [![Build Status](https://travis-ci.org/jhayley/bondage.js.svg?branch=master)](https://travis-ci.org/jhayley/bondage.js) +This project is a runner for [Yarn](https://yarnspinner.dev/) dialogues, attempting compliance with the 2.0 language specification. + +API improvements and additional features are present in [YarnBound](https://github.com/mnbroatch/yarn-bound), which uses this package under the hood. + +# Known Deviations from Yarn 2.0 spec + +- Reading from a .yarn file is left to the user; dialogues should be supplied to bondage.js as a text string or array of node objects. +- Some minutia about what unicode characters define a string has not been considered. + +There are features in the Yarn docs that are not present in the [Yarn language spec](https://github.com/YarnSpinnerTool/YarnSpinner/blob/9275277f50a6acbe8438b29596acc8527cf5581a/Documentation/Yarn-Spec.md). Known examples are: + - `Character: some text` annotation + - `[b]Markup[/b]` + +These exist in [YarnBound](https://github.com/mnbroatch/yarn-bound) but not here. -[Yarn](https://github.com/InfiniteAmmoInc/Yarn) parser for Javascript, in the same vein as [YarnSpinner](https://github.com/thesecretlab/YarnSpinner). # Usage -#### As a Web Tool +Install with `npm i -S bondage` or grab `bondage.js` from the `/dist/` folder. + +For information on how to write Yarn, visit the [official documentation](https://docs.yarnspinner.dev/). + +The examples below illustrate how `bondage.js` in particular works: + + +### Basic Dialogue + +```javascript +import bondage from 'bondage'; +// or node: +// const bondage = require('bondage') +// or in a script tag: +// + +// bondage.js strips empty lines, but make sure lines have +// no leading whitespace (besides indentation)! +const dialogue = ` +# someFiletag +title: StartingNode +someTag: someTag +--- +This is a line of text.#someHashtag +This is another line of text. +=== +` + +const runner = new bondage.Runner() +runner.load(dialogue) +const generator = runner.run('StartingNode') +let node = generator.next().value +console.log('node', node) +``` + +When we log out `node` above, we will see this object structure: + +```javascript +{ + "text": "This is a line of text.", + "hashtags": ['someHashtag'], + "metadata": { + "title": "StartingNode", + "someTag": "someTag", + "filetags": [ + "someFiletag" + ] + } +} +``` + +Notice that hashtags at the end of a line go in a `hashtags` array. + +to continue, we call + +```javascript +node = generator.next().value +``` + +again, and if we log the new node, we see: + +```javascript +{ + "text": "This is another line of text.", + "hashtags": [], + "metadata": { + "title": "StartingNode", + "someTag": "someTag", + "filetags": [ + "someFiletag" + ] + } +} +``` + +If we had jumped, we would see the new node's title and header tags under the `metadata` property (along with the same fileTags). + + +### Options + +Given this dialogue: + +``` +# someFiletag +title: StartingNode +someTag: someTag +--- +What color do you like? +-> Red + You picked Red! +-> Blue + You picked Blue! +=== +``` + +We can start the dialogue runner like above. + +```javascript +const runner = new bondage.Runner() +runner.load(dialogue) +const generator = runner.run('StartingNode') +let node = generator.next().value +``` + +which will give us a text result like the last example. However, the next node we get from calling `generator.next().value` will be: + +```javascript +{ + "options": [ + { + "text": "Red", + "isAvailable": true, + "hashtags": [] + }, + { + "text": "Blue", + "isAvailable": true, + "hashtags": [] + } + ], + "metadata": { + "title": "StartingNode", + "someTag": "someTag", + "filetags": [ + "someFiletag" + ] + } +} +``` + +In order to continue the dialogue, you will need to call + +```javascript +node.select(0); +node = generator.next().value +``` + +in order to move to the line with text, "You picked Red!" -To run through your yarn files in your browser, go to , paste your yarn data in the field, then hit "compile". +But how will your view layer know whether you're looking at a text result or an options result? Use `instanceof`: -#### As a Command Line Tool -Installation: `npm install -g bondage` +`node instanceof bondage.TextResult` -Now you can use the `bondage` command to run through Yarn files from the command line. You can load one or multiple files at a time. If you load multiple files and a two nodes are encountered with the same name, the node will be overwritten. +`node instanceof bondage.OptionsResult` -**Examples** +`node instanceof bondage.CommandResult` -* Running a single file from the default start node (named "Start"): `bondage run yarnfile.json` -* Running a single file from the specified node name: `bondage run -s StartNode yarnfile.json` -* Running multiple files from the specified node name: `bondage run -s StartNode yarnfile1.json yarnfile2.json ...` -* See the compiled ast: `bondage compile --ast yarnfile.json` -* See the tokenized input: `bondage compile --tokens yarnfile.json` +Speaking of CommandResult... -#### As a Library -**Web** +# Commands -Include [dist/bondage.min.js](https://github.com/jhayley/bondage.js/blob/master/dist/bondage.min.js) somewhere in your html, and the `bondage` variable will be added to the global scope. You can then access everything in the example below (such as `bondage.Runner`) through that variable. +The third and last result type you need to know about is CommandResult. Given this dialogue: -**Node** +``` +# someFiletag +title: StartingNode +someTag: someTag +--- +Sending a command... +<> +=== +``` + +You will see a "Sending a command..." TextResult, but the next node will look like this: -Installation: `npm install bondage` ```javascript -const fs = require('fs'); -const bondage = require('bondage'); - -const runner = new bondage.Runner(); -const yarnData = JSON.parse(fs.readFileSync('yarnFile.json')); - -runner.load(yarnData); - -// Loop over the dialogue from the node titled 'Start' -for (const result of runner.run('Start')) { - // Do something else with the result - if (result instanceof bondage.TextResult) { - console.log(result.text); - } else if (result instanceof bondage.OptionsResult) { - // This works for both links between nodes and shortcut options - console.log(result.options); - - // Select based on the option's index in the array (if you don't select an option, the dialog will continue past them) - result.select(1); - } else if (result instanceof bondage.CommandResult) { - // If the text was inside <>, it will get returned as a CommandResult string, which you can use in any way you want - console.log(result.text); +{ + "name": "someCommand with spaces", + "hashtags": [], + "metadata": { + "title": "StartingNode", + "someTag": "someTag", + "filetags": [ + "someFiletag" + ] } } +``` + +Your program can do what it wants with that, then call `generator.next().value` to get the next node, as usual. + + +### Custom Variable Storage + +Bondage keeps track of variables internally. Optionally, you can supply your own variableStorage. variableStorage is an object with get() and set() methods defined. + +```javascript +const customStorage = new Map() +customStorage.set('hello', 1) + +const runner = new bondage.Runner() +runner.setVariableStorage(customStorage) +runner.load(dialogue) +``` + +**Call setVariableStorage BEFORE loading a dialogue with `runner.load`. This is because `declare` commands will resolve when the dialogue loads (as opposed to when `runner.run()` is called)** + +Above, we set an initial value for the `hello` variable, so if a line of dialogue contains `{$hello}`, it will show the number `1`, no need to call `<>`. + +Simple dialogues can probably just use the built-in storage. + + +### Functions -// Advance the dialogue manually from the node titled 'Start' -const d = runner.run('Start') -let result = d.next().value; -let nextResult = d.next().value; -// And so on +You can also register functions to be used in your dialogue. + +```javascript +runner.registerFunction('sayHello', () => 'hello') +``` + +If a line of dialogue contains `{sayHello()}`, it will show `hello`. + + +### Object Input Format + +In addition to the regular yarn format as a string, bondage also accepts a javascript object. This is an intermediary format exported by some utilities. The text format is nicer to work with, so it should be preferred. For reference, + +``` +#someFiletag +#someOtherFiletag +title: SomeNode +tags: hello +arbitraryKey: arbitraryValue +--- +This is a line of text +<> +=== + +title: SomeOtherNode +--- +This is another line of text. +=== ``` -For usage of the yarn format itself, please see the [YarnSpinner Documentation](https://github.com/thesecretlab/YarnSpinner/tree/master/Documentation), everything there should carry here too (if something does not match up, please open an issue). +is equivalent to: + +```javascript +[ + { + "title": "SomeNode", + "tags": "hello", + "arbitraryKey": "arbitraryValue", + "body": "This is a line of text\n<>\n", + "filetags": [ + "someFiletag", + "someOtherFiletag" + ] + }, + { + "title": "SomeOtherNode", + "body": "This is another line of text.\n", + "filetags": [ + "someFiletag", + "someOtherFiletag" + ] + } +] +``` + + +# Other included versions + +A minified version exists at `bondage/dist/bondage.min.js`. + +If you want to transpile for yourself, use `import bondage from 'bondage/src/index'` and make sure it's being included by your build system. + +If you need compatibility with internet explorer, you can transpile for yourself or use `bondage/dist/bondage.ie.js`. + + +# Development + +The parser is compiled ahead of time, so after making changes to the grammar you will need to run `node src/parser/make-parser`. This is done automatically during `npm run build`. + diff --git a/Extensions/DialogueTree/bondage.js/dist/bondage.ie.js b/Extensions/DialogueTree/bondage.js/dist/bondage.ie.js new file mode 100644 index 000000000000..c7da181ca614 --- /dev/null +++ b/Extensions/DialogueTree/bondage.js/dist/bondage.ie.js @@ -0,0 +1,2 @@ +/*! For license information please see bondage.ie.js.LICENSE.txt */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bondage=e():t.bondage=e()}(this,(function(){return function(){"use strict";var t={7442:function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1){var c=r(o[u].split(":"),2),f=c[0],l=c[1],d=f.trim(),p=l.trim();if("body"!==d){if(null==i&&(i={}),i[d])throw new Error("Duplicate tag on node: ".concat(d));i[d]=p}}return n},n(2008),n(6099),n(7495),n(1761),n(5440),n(744),n(2762),t.exports=e.default},3696:function(t,e,n){function r(t){return r="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},r(t)}function o(t,e){for(var n=0;nthis.previousLevelOfIndentation)return this.indentation.push([t,!0]),this.shouldTrackNextIndentation=!1,this.yylloc.first_column=this.yylloc.last_column,this.yylloc.last_column+=t,this.yytext="","Indent";if(t=this.lines.length}},{key:"isAtTheEndOfLine",value:function(){return this.yylloc.last_column>this.getCurrentLine().length}}])&&a(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=u,t.exports=e.default},9789:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(9105))&&r.__esModule?r:{default:r};e.default={makeStates:function(){return{base:(new o.default).addTransition("EscapedCharacter",null,!0).addTransition("Comment",null,!0).addTransition("Hashtag",null,!0).addTransition("BeginCommand","command",!0).addTransition("BeginInlineExp","inlineExpression",!0).addTransition("ShortcutOption","shortcutOption").addTextRule("Text"),shortcutOption:(new o.default).setTrackNextIndentation(!0).addTransition("EscapedCharacter",null,!0).addTransition("Comment",null,!0).addTransition("Hashtag",null,!0).addTransition("BeginCommand","expression",!0).addTransition("BeginInlineExp","inlineExpressionInShortcut",!0).addTextRule("Text","base"),command:(new o.default).addTransition("If","expression").addTransition("Else").addTransition("ElseIf","expression").addTransition("EndIf").addTransition("Set","assignment").addTransition("Declare","declare").addTransition("Jump","jump").addTransition("Stop","stop").addTransition("BeginInlineExp","inlineExpressionInCommand",!0).addTransition("EndCommand","base",!0).addTextRule("Text"),commandArg:(new o.default).addTextRule("Text"),commandParenArgOrExpression:(new o.default).addTransition("EndCommand","base",!0).addTransition("LeftParen","expression").addTransition("Variable","expression").addTransition("Number","expression").addTransition("String").addTransition("True").addTransition("False").addTransition("Null").addTransition("RightParen"),assignment:(new o.default).addTransition("Variable").addTransition("EqualToOrAssign","expression"),declare:(new o.default).addTransition("Variable").addTransition("EndCommand","base").addTransition("EqualToOrAssign","expression"),jump:(new o.default).addTransition("Identifier").addTransition("BeginInlineExp","inlineExpressionInCommand",!0).addTransition("EndCommand","base",!0),stop:(new o.default).addTransition("EndCommand","base",!0),expression:(new o.default).addTransition("As").addTransition("ExplicitType").addTransition("EndCommand","base").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule(),inlineExpression:(new o.default).addTransition("EndInlineExp","base").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule("Text","base"),inlineExpressionInCommand:(new o.default).addTransition("EndInlineExp","command").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule("Text","base"),inlineExpressionInShortcut:(new o.default).addTransition("EndInlineExp","shortcutOption").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule("Text","base")}}},t.exports=e.default},8789:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={Whitespace:null,Indent:null,Dedent:null,EndOfLine:/\n/,EndOfInput:null,Number:/-?[0-9]+(\.[0-9+])?/,String:/"([^"\\]*(?:\\.[^"\\]*)*)"/,BeginCommand:/<>/,Variable:/\$([A-Za-z0-9_.])+/,ShortcutOption:/->/,Hashtag:/#([^(\s|#|//)]+)/,Comment:/\/\/.*/,OptionStart:/\[\[/,OptionDelimit:/\|/,OptionEnd:/\]\]/,If:/if(?!\w)/,ElseIf:/elseif(?!\w)/,Else:/else(?!\w)/,EndIf:/endif(?!\w)/,Jump:/jump(?!\w)/,Stop:/stop(?!\w)/,Set:/set(?!\w)/,Declare:/declare(?!\w)/,As:/as(?!\w)/,ExplicitType:/(String|Number|Bool)(?=>>)/,True:/true(?!\w)/,False:/false(?!\w)/,Null:/null(?!\w)/,LeftParen:/\(/,RightParen:/\)/,Comma:/,/,UnaryMinus:/-(?!\s)/,EqualTo:/(==|is(?!\w)|eq(?!\w))/,GreaterThan:/(>|gt(?!\w))/,GreaterThanOrEqualTo:/(>=|gte(?!\w))/,LessThan:/(<|lt(?!\w))/,LessThanOrEqualTo:/(<=|lte(?!\w))/,NotEqualTo:/(!=|neq(?!\w))/,Or:/(\|\||or(?!\w))/,And:/(&&|and(?!\w))/,Xor:/(\^|xor(?!\w))/,Not:/(!|not(?!\w))/,EqualToOrAssign:/(=|to(?!\w))/,Add:/\+/,Minus:/-/,Exponent:/\*\*/,Multiply:/\*/,Divide:/\//,Modulo:/%/,AddAssign:/\+=/,MinusAssign:/-=/,MultiplyAssign:/\*=/,DivideAssign:/\/=/,Identifier:/[a-zA-Z0-9_:.]+/,EscapedCharacter:/\\./,Text:/[^\\]/,BeginInlineExp:/{/,EndInlineExp:/}/},t.exports=e.default},3293:function(t,e,n){function r(t){return r="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},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e2&&S.push("'"+this.terminals_[T]+"'");j=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(j,{text:l.match,token:this.terminals_[m]||m,line:l.yylineno,loc:h,expected:S})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(x[0]){case 1:n.push(m),r.push(l.yytext),o.push(l.yylloc),n.push(x[1]),m=null,g?(m=g,g=null):(u=l.yyleng,a=l.yytext,s=l.yylineno,h=l.yylloc,c>0&&c--);break;case 2:if(w=this.productions_[x[1]][1],N.$=r[r.length-w],N._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column},y&&(N._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]),void 0!==(E=this.performAction.apply(N,[a,u,s,d.yy,x[1],r,o].concat(f))))return E;w&&(n=n.slice(0,-1*w*2),r=r.slice(0,-1*w),o=o.slice(0,-1*w)),n.push(this.productions_[x[1]][0]),r.push(N.$),o.push(N._$),O=i[n[n.length-2]][n[n.length-1]],n.push(O);break;case 3:return!0}}return!0}};function at(){this.yy={}}at.prototype=it,it.Parser=at},7033:function(t,e,n){function r(t){return r="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},r(t)}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,i()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(i=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t,e){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:[],s=arguments.length>4?arguments[4]:void 0;return d(this,e),(i=o(this,e)).type="DialogShortcutNode",i.text=t,i.content=n,i.lineNum=r.first_line,i.hashtags=a,i.conditionalExpression=s,i}return s(e,t),f(e)}(h),IfNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="IfNode",r.expression=t,r.statement=n,r}return s(e,t),f(e)}(v),IfElseNode:function(t){function e(t,n,r){var i;return d(this,e),(i=o(this,e)).type="IfElseNode",i.expression=t,i.statement=n,i.elseStatement=r,i}return s(e,t),f(e)}(v),ElseNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="ElseNode",n.statement=t,n}return s(e,t),f(e)}(v),ElseIfNode:function(t){function e(t,n,r){var i;return d(this,e),(i=o(this,e)).type="ElseIfNode",i.expression=t,i.statement=n,i.elseStatement=r,i}return s(e,t),f(e)}(v),GenericCommandNode:function(t){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return d(this,e),(r=o(this,e)).type="GenericCommandNode",r.command=t,r.hashtags=i,r.lineNum=n.first_line,r}return s(e,t),f(e)}(x),JumpCommandNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="JumpCommandNode",n.destination=t,n}return s(e,t),f(e)}(x),StopCommandNode:function(t){function e(){var t;return d(this,e),(t=o(this,e)).type="StopCommandNode",t}return s(e,t),f(e)}(x),TextNode:function(t){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return d(this,e),(r=o(this,e)).type="TextNode",r.text=t,r.lineNum=n.first_line,r.hashtags=i,r}return s(e,t),f(e)}(p),EscapedCharacterNode:function(t){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return d(this,e),(r=o(this,e)).type="EscapedCharacterNode",r.text=t,r.lineNum=n.first_line,r.hashtags=i,r}return s(e,t),f(e)}(p),NumericLiteralNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="NumericLiteralNode",n.numericLiteral=t,n}return s(e,t),f(e)}(m),StringLiteralNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="StringLiteralNode",n.stringLiteral=t,n}return s(e,t),f(e)}(m),BooleanLiteralNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="BooleanLiteralNode",n.booleanLiteral=t,n}return s(e,t),f(e)}(m),VariableNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="VariableNode",n.variableName=t,n}return s(e,t),f(e)}(m),UnaryMinusExpressionNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="UnaryMinusExpressionNode",n.expression=t,n}return s(e,t),f(e)}(g),ArithmeticExpressionAddNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="ArithmeticExpressionAddNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),ArithmeticExpressionMinusNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="ArithmeticExpressionMinusNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),ArithmeticExpressionMultiplyNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="ArithmeticExpressionMultiplyNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),ArithmeticExpressionExponentNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="ArithmeticExpressionExponentNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),ArithmeticExpressionDivideNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="ArithmeticExpressionDivideNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),ArithmeticExpressionModuloNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="ArithmeticExpressionModuloNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),NegatedBooleanExpressionNode:function(t){function e(t){var n;return d(this,e),(n=o(this,e)).type="NegatedBooleanExpressionNode",n.expression=t,n}return s(e,t),f(e)}(g),BooleanOrExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="BooleanOrExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),BooleanAndExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="BooleanAndExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),BooleanXorExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="BooleanXorExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),EqualToExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="EqualToExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),NotEqualToExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="NotEqualToExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),GreaterThanExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="GreaterThanExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),GreaterThanOrEqualToExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="GreaterThanOrEqualToExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),LessThanExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="LessThanExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),LessThanOrEqualToExpressionNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="LessThanOrEqualToExpressionNode",r.expression1=t,r.expression2=n,r}return s(e,t),f(e)}(g),SetVariableEqualToNode:function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).type="SetVariableEqualToNode",r.variableName=t,r.expression=n,r}return s(e,t),f(e)}(y),FunctionCallNode:function(t){function e(t,n,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return d(this,e),(i=o(this,e)).type="FunctionCallNode",i.functionName=t,i.args=n,i.lineNum=r.first_line,i.hashtags=a,i}return s(e,t),f(e)}(b),InlineExpressionNode:function(t){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return d(this,e),(r=o(this,e)).type="InlineExpressionNode",r.expression=t,r.lineNum=n.first_line,r.hashtags=i,r}return s(e,t),f(e)}(g)},t.exports=e.default},7321:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(7033)),o=a(n(7101)),i=n(3293);function a(t){return t&&t.__esModule?t:{default:t}}i.parser.lexer=new o.default,i.parser.yy=r.default,i.parser.yy.declarations={},i.parser.yy.parseError=function(t){throw t},i.parser.yy.registerDeclaration=function(t,e,n){if(!this.areDeclarationsHandled){if(this.declarations[t])throw new Error("Duplicate declaration found for variable: ".concat(t));this.declarations[t]={variableName:t,expression:e,explicitType:n}}},e.default=i.parser,t.exports=e.default},8528:function(t,e,n){function r(t){return r="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},r(t)}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,i()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(i=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t,e){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0;return d(this,e),(n=o(this,e)).text=t,n.isAvailable=r,n.hashtags=i,n.metadata=a,n}return s(e,t),f(e)}(p),m=function(t){function e(t,n){var r;return d(this,e),(r=o(this,e)).options=t.map((function(t){return new y(t.text,t.isAvailable,t.hashtags)})),r.metadata=n,r}return s(e,t),f(e,[{key:"select",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(t<0||t>=this.options.length)throw new Error("Cannot select option #".concat(t,", there are ").concat(this.options.length," options"));this.selected=t}}]),e}(p);e.default={Result:p,TextResult:h,CommandResult:v,OptionsResult:m},t.exports=e.default},2458:function(t,e,n){n(6412),n(2259),n(8125),n(2010),n(4731),n(479),n(3851),n(1278),n(875),n(9432),n(3362),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(2675),n(9463),n(5700),n(8706),n(2008),n(3418),n(3792),n(8598),n(2062),n(4782),n(9572),n(2892),n(9085),n(5506),n(6099),n(7495),n(8781),n(7764),n(1761),n(744),n(3500),n(2953);var r=u(n(7321)),o=u(n(8528)),i=u(n(3696)),a=u(n(7442)),s=u(n(7033));function u(t){return t&&t.__esModule?t:{default:t}}function c(){c=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new _(r||[]);return o(a,"_invoke",{value:k(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function b(){}function x(){}function E(){}var T={};f(T,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(L([])));O&&O!==n&&r.call(O,a)&&(T=O);var S=E.prototype=b.prototype=Object.create(T);function N(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,s){var u=p(t[o],t,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==d(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var o=h;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?m:v,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)throw new Error("Node title cannot contain a dot: ".concat(t.title));if(!t.body)throw new Error("Node needs a body: ".concat(JSON.stringify(t)));if(n.yarnNodes[t.title])throw new Error("Duplicate node title: ".concat(t.title));n.yarnNodes[t.title]=t})),r.default.yy.areDeclarationsHandled=!1,r.default.yy.declarations={},this.handleDeclarations(e),r.default.yy.areDeclarationsHandled=!0}},{key:"setVariableStorage",value:function(t){if("function"!=typeof t.set||"function"!=typeof t.get)throw new Error('Variable Storage object must contain both a "set" and "get" function');this.variables=t}},{key:"handleDeclarations",value:function(t){var e=this,n={Number:0,String:"",Boolean:!1},o=t.reduce((function(t,e){var n=e.body.split(/\r?\n+/);return[].concat(p(t),p(n))}),[]).reduce((function(t,e){return e.match(/^<>/)?[].concat(p(t),[e]):t}),[]);o.length&&r.default.parse(o.join("\n")),Object.entries(r.default.yy.declarations).forEach((function(t){var r,o,i=(o=2,function(t){if(Array.isArray(t))return t}(r=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(r,o)||h(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1],u=s.expression,c=s.explicitType,f=e.evaluateExpressionOrLiteral(u);if(c&&d(f)!==d(n[c]))throw new Error("Cannot declare value ".concat(f," as type ").concat(c," for variable ").concat(a));e.variables.get(a)||e.variables.set(a,f)}))}},{key:"registerFunction",value:function(t,e){if("function"!=typeof e)throw new Error("Registered function must be...well...a function");this.functions[t]=e}},{key:"run",value:c().mark((function t(e){var n,o,i,a,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e;case 1:if(!n){t.next=14;break}if(void 0!==(o=this.yarnNodes[n])){t.next=5;break}throw new Error('Node "'.concat(e,'" does not exist'));case 5:return this.visited[e]=!0,i=Array.from(r.default.parse(o.body)),delete(a=l({},o)).body,t.delegateYield(this.evalNodes(i,a),"t0",10);case 10:s=t.t0,n=s&&s.jump,t.next=1;break;case 14:case"end":return t.stop()}}),t,this)}))},{key:"evalNodes",value:c().mark((function t(e,n){var r,i,a,u,f,l,d,p,h,v;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=[],i="",a=e.filter(Boolean),u=0;case 4:if(!(ue},GreaterThanOrEqualToExpressionNode:function(t,e){return t>=e},LessThanExpressionNode:function(t,e){return t1?arguments[1]:void 0)}},7916:function(t,e,n){var r=n(6080),o=n(9565),i=n(8981),a=n(6319),s=n(4209),u=n(3517),c=n(6198),f=n(4659),l=n(81),d=n(851),p=Array;t.exports=function(t){var e=i(t),n=u(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=r(v,h>2?arguments[2]:void 0));var m,g,b,x,E,T,w=d(e),O=0;if(!w||this===p&&s(w))for(m=c(e),g=n?new this(m):p(m);m>O;O++)T=y?v(e[O],O):e[O],f(g,O,T);else for(E=(x=l(e,w)).next,g=n?new this:[];!(b=o(E,x)).done;O++)T=y?a(x,v,[b.value,O],!0):b.value,f(g,O,T);return g.length=O,g}},9617:function(t,e,n){var r=n(5397),o=n(5610),i=n(6198),a=function(t){return function(e,n,a){var s=r(e),u=i(s);if(0===u)return!t&&-1;var c,f=o(a,u);if(t&&n!=n){for(;u>f;)if((c=s[f++])!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9213:function(t,e,n){var r=n(6080),o=n(9504),i=n(7055),a=n(8981),s=n(6198),u=n(1469),c=o([].push),f=function(t){var e=1===t,n=2===t,o=3===t,f=4===t,l=6===t,d=7===t,p=5===t||l;return function(h,v,y,m){for(var g,b,x=a(h),E=i(x),T=s(E),w=r(v,y),O=0,S=m||u,N=e?S(h,T):n||d?S(h,0):void 0;T>O;O++)if((p||O in E)&&(b=w(g=E[O],O,x),t))if(e)N[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:c(N,g)}else switch(t){case 4:return!1;case 7:c(N,g)}return l?-1:o||f?f:N}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},597:function(t,e,n){var r=n(9039),o=n(8227),i=n(7388),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4598:function(t,e,n){var r=n(9039);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},7680:function(t,e,n){var r=n(9504);t.exports=r([].slice)},7433:function(t,e,n){var r=n(4376),o=n(3517),i=n(34),a=n(8227)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===s||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},1469:function(t,e,n){var r=n(7433);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},6319:function(t,e,n){var r=n(8551),o=n(9539);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},4428:function(t,e,n){var r=n(8227)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},4576:function(t,e,n){var r=n(9504),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(4576),a=n(8227)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?i(e):"Object"===(r=i(e))&&o(e.callee)?"Arguments":r}},7740:function(t,e,n){var r=n(9297),o=n(5031),i=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=o(e),u=a.f,c=i.f,f=0;f9007199254740991)throw e("Maximum allowed index exceeded");return t}},7400:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(t,e,n){var r=n(4055)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},7290:function(t,e,n){var r=n(516),o=n(9088);t.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},516:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},28:function(t,e,n){var r=n(9392);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},8119:function(t,e,n){var r=n(9392);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},9088:function(t,e,n){var r=n(4475),o=n(4576);t.exports="process"===o(r.process)},6765:function(t,e,n){var r=n(9392);t.exports=/web0s(?!.*chrome)/i.test(r)},9392:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(t,e,n){var r,o,i=n(4475),a=n(9392),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,f=c&&c.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(t,e,n){var r=n(4475),o=n(7347).f,i=n(6699),a=n(6840),s=n(9433),u=n(7740),c=n(2796);t.exports=function(t,e){var n,f,l,d,p,h=t.target,v=t.global,y=t.stat;if(n=v?r:y?r[h]||s(h,{}):r[h]&&r[h].prototype)for(f in e){if(d=e[f],l=t.dontCallGetSet?(p=o(n,f))&&p.value:n[f],!c(v?f:h+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof d==typeof l)continue;u(d,l)}(t.sham||l&&l.sham)&&i(d,"sham",!0),a(n,f,d,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9228:function(t,e,n){n(7495);var r=n(9565),o=n(6840),i=n(7323),a=n(9039),s=n(8227),u=n(6699),c=s("species"),f=RegExp.prototype;t.exports=function(t,e,n,l){var d=s(t),p=!a((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),h=p&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!p||!h||n){var v=/./[d],y=e(d,""[t],(function(t,e,n,o,a){var s=e.exec;return s===i||s===f.exec?p&&!a?{done:!0,value:r(v,e,n,o)}:{done:!0,value:r(t,n,e,o)}:{done:!1}}));o(String.prototype,t,y[0]),o(f,d,y[1])}l&&u(f[d],"sham",!0)}},259:function(t,e,n){var r=n(4376),o=n(6198),i=n(6837),a=n(6080),s=function(t,e,n,u,c,f,l,d){for(var p,h,v=c,y=0,m=!!l&&a(l,d);y0&&r(p)?(h=o(p),v=s(t,e,p,h,v,f-1)-1):(i(v+1),t[v]=p),v++),y++;return v};t.exports=s},8745:function(t,e,n){var r=n(616),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){var r=n(9039);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},566:function(t,e,n){var r=n(9504),o=n(9306),i=n(34),a=n(9297),s=n(7680),u=n(616),c=Function,f=r([].concat),l=r([].join),d={};t.exports=u?c.bind:function(t){var e=o(this),n=e.prototype,r=s(arguments,1),u=function(){var n=f(r,s(arguments));return this instanceof u?function(t,e,n){if(!a(d,e)){for(var r=[],o=0;o]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,d){var p=n+t.length,h=r.length,v=f;return void 0!==l&&(l=o(l),v=c),s(d,v,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,p);case"<":c=l[u(s,1,-1)];break;default:var f=+s;if(0===f)return o;if(f>h){var d=i(f/10);return 0===d?o:d<=h?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):o}c=r[f-1]}return void 0===c?"":c}))}},4475:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},3138:function(t){t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:function(t,e,n){var r=n(7751);t.exports=r("document","documentElement")},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(4576),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},3167:function(t,e,n){var r=n(4901),o=n(34),i=n(2967);t.exports=function(t,e,n){var a,s;return i&&r(a=e.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(t,s),t}},3706:function(t,e,n){var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},1181:function(t,e,n){var r,o,i,a=n(8622),s=n(4475),u=n(34),c=n(6699),f=n(9297),l=n(7629),d=n(6119),p=n(421),h="Object already initialized",v=s.TypeError,y=s.WeakMap;if(a||l.state){var m=l.state||(l.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new v(h);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var g=d("state");p[g]=!0,r=function(t,e){if(f(t,g))throw new v(h);return e.facade=t,c(t,g,e),e},o=function(t){return f(t,g)?t[g]:{}},i=function(t){return f(t,g)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4376:function(t,e,n){var r=n(4576);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),a=n(6955),s=n(7751),u=n(3706),c=function(){},f=s("Reflect","construct"),l=/^\s*(?:class|function)\b/,d=r(l.exec),p=!l.test(c),h=function(t){if(!i(t))return!1;try{return f(c,[],t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(l,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?v:h},2796:function(t,e,n){var r=n(9039),o=n(4901),i=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===f||n!==c&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},4117:function(t){t.exports=function(t){return null==t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},3925:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)||null===t}},6395:function(t){t.exports=!1},788:function(t,e,n){var r=n(34),o=n(4576),i=n(8227)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},2652:function(t,e,n){var r=n(6080),o=n(9565),i=n(8551),a=n(6823),s=n(4209),u=n(6198),c=n(1625),f=n(81),l=n(851),d=n(9539),p=TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,n){var y,m,g,b,x,E,T,w=n&&n.that,O=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),N=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),k=r(e,w),I=function(t){return y&&d(y,"normal",t),new h(!0,t)},P=function(t){return O?(i(t),j?k(t[0],t[1],I):k(t[0],t[1])):j?k(t,I):k(t)};if(S)y=t.iterator;else if(N)y=t;else{if(!(m=l(t)))throw new p(a(t)+" is not iterable");if(s(m)){for(g=0,b=u(t);b>g;g++)if((x=P(t[g]))&&c(v,x))return x;return new h(!1)}y=f(t,m)}for(E=S?t.next:y.next;!(T=o(E,y)).done;){try{x=P(T.value)}catch(t){d(y,"throw",t)}if("object"==typeof x&&x&&c(v,x))return x}return new h(!1)}},9539:function(t,e,n){var r=n(9565),o=n(8551),i=n(5966);t.exports=function(t,e,n){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return o(a),n}},3994:function(t,e,n){var r=n(7657).IteratorPrototype,o=n(2360),i=n(6980),a=n(687),s=n(6269),u=function(){return this};t.exports=function(t,e,n,c){var f=e+" Iterator";return t.prototype=o(r,{next:i(+!c,n)}),a(t,f,!1,!0),s[f]=u,t}},1088:function(t,e,n){var r=n(6518),o=n(9565),i=n(6395),a=n(350),s=n(4901),u=n(3994),c=n(2787),f=n(2967),l=n(687),d=n(6699),p=n(6840),h=n(8227),v=n(6269),y=n(7657),m=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=h("iterator"),T="keys",w="values",O="entries",S=function(){return this};t.exports=function(t,e,n,a,h,y,N){u(n,e,a);var j,k,I,P=function(t){if(t===h&&R)return R;if(!x&&t&&t in L)return L[t];switch(t){case T:case w:case O:return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",_=!1,L=t.prototype,C=L[E]||L["@@iterator"]||h&&L[h],R=!x&&C||P(h),M="Array"===e&&L.entries||C;if(M&&(j=c(M.call(new t)))!==Object.prototype&&j.next&&(i||c(j)===b||(f?f(j,b):s(j[E])||p(j,E,S)),l(j,A,!0,!0),i&&(v[A]=S)),m&&h===w&&C&&C.name!==w&&(!i&&g?d(L,"name",w):(_=!0,R=function(){return o(C,this)})),h)if(k={values:P(w),keys:y?R:P(T),entries:P(O)},N)for(I in k)(x||_||!(I in L))&&p(L,I,k[I]);else r({target:e,proto:!0,forced:x||_},k);return i&&!N||L[E]===R||p(L,E,R,{name:h}),v[e]=R,k}},7657:function(t,e,n){var r,o,i,a=n(9039),s=n(4901),u=n(34),c=n(2360),f=n(2787),l=n(6840),d=n(8227),p=n(6395),h=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):v=!0),!u(r)||a((function(){var t={};return r[h].call(t)!==t}))?r={}:p&&(r=c(r)),s(r[h])||l(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},6269:function(t){t.exports={}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,c=n(3706),f=n(1181),l=f.enforce,d=f.get,p=String,h=Object.defineProperty,v=r("".slice),y=r("".replace),m=r([].join),g=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===v(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return a(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&d(this).source||c(this)}),"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},1955:function(t,e,n){var r,o,i,a,s,u=n(4475),c=n(3389),f=n(6080),l=n(9225).set,d=n(8265),p=n(8119),h=n(28),v=n(6765),y=n(9088),m=u.MutationObserver||u.WebKitMutationObserver,g=u.document,b=u.process,x=u.Promise,E=c("queueMicrotask");if(!E){var T=new d,w=function(){var t,e;for(y&&(t=b.domain)&&t.exit();e=T.get();)try{e()}catch(t){throw T.head&&r(),t}t&&t.enter()};p||y||v||!m||!g?!h&&x&&x.resolve?((a=x.resolve(void 0)).constructor=x,s=f(a.then,a),r=function(){s(w)}):y?r=function(){b.nextTick(w)}:(l=f(l,u),r=function(){l(w)}):(o=!0,i=g.createTextNode(""),new m(w).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),E=function(t){T.head||r(),T.add(t)}}t.exports=E},6043:function(t,e,n){var r=n(9306),o=TypeError,i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new o("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},4213:function(t,e,n){var r=n(3724),o=n(9504),i=n(9565),a=n(9039),s=n(1072),u=n(3717),c=n(8773),f=n(8981),l=n(7055),d=Object.assign,p=Object.defineProperty,h=o([].concat);t.exports=!d||a((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!==d({},t)[n]||s(d({},e)).join("")!==o}))?function(t,e){for(var n=f(t),o=arguments.length,a=1,d=u.f,p=c.f;o>a;)for(var v,y=l(arguments[a++]),m=d?h(s(y),d(y)):s(y),g=m.length,b=0;g>b;)v=m[b++],r&&!i(p,y,v)||(n[v]=y[v]);return n}:d},2360:function(t,e,n){var r,o=n(8551),i=n(6801),a=n(8727),s=n(421),u=n(397),c=n(4055),f=n(6119),l="prototype",d="script",p=f("IE_PROTO"),h=function(){},v=function(t){return"<"+d+">"+t+""},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?y(r):(e=c("iframe"),n="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var o=a.length;o--;)delete m[l][a[o]];return m()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[l]=o(t),n=new h,h[l]=null,n[p]=t):n=m(),void 0===e?n:i.f(n,e)}},6801:function(t,e,n){var r=n(3724),o=n(8686),i=n(4913),a=n(8551),s=n(5397),u=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=u(e),c=o.length,f=0;c>f;)i.f(t,n=o[f++],r[n]);return t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),u=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",p="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=f(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:l in n?n[l]:r[l],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),a=n(6980),s=n(5397),u=n(6969),c=n(9297),f=n(5917),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=s(t),e=u(e),f)try{return l(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},298:function(t,e,n){var r=n(4576),o=n(5397),i=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===r(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),a=n(6119),s=n(2211),u=a("IE_PROTO"),c=Object,f=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(r(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?f:null}},1625:function(t,e,n){var r=n(9504);t.exports=r({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),o=n(9297),i=n(5397),a=n(9617).indexOf,s=n(421),u=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,f=[];for(n in r)!o(s,n)&&o(r,n)&&u(f,n);for(;e.length>c;)o(r,n=e[c++])&&(~a(f,n)||u(f,n));return f}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2967:function(t,e,n){var r=n(6706),o=n(8551),i=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},2357:function(t,e,n){var r=n(3724),o=n(9039),i=n(9504),a=n(2787),s=n(1072),u=n(5397),c=i(n(8773).f),f=i([].push),l=r&&o((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),d=function(t){return function(e){for(var n,o=u(e),i=s(o),d=l&&null===a(o),p=i.length,h=0,v=[];p>h;)n=i[h++],r&&!(d?n in o:c(o,n))||f(v,t?[n,o[n]]:o[n]);return v}};t.exports={entries:d(!0),values:d(!1)}},3179:function(t,e,n){var r=n(2140),o=n(6955);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},4270:function(t,e,n){var r=n(9565),o=n(4901),i=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),a=n(3717),s=n(8551),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?u(e,n(t)):e}},9167:function(t,e,n){var r=n(4475);t.exports=r},1103:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:function(t,e,n){var r=n(4475),o=n(550),i=n(4901),a=n(2796),s=n(3706),u=n(8227),c=n(7290),f=n(516),l=n(6395),d=n(7388),p=o&&o.prototype,h=u("species"),v=!1,y=i(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(o),e=t!==String(o);if(!e&&66===d)return!0;if(l&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(v=n.then((function(){}))instanceof r))return!0}return!e&&(c||f)&&!y}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:y,SUBCLASSING:v}},550:function(t,e,n){var r=n(4475);t.exports=r.Promise},3438:function(t,e,n){var r=n(8551),o=n(34),i=n(6043);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},537:function(t,e,n){var r=n(550),o=n(4428),i=n(916).CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},1056:function(t,e,n){var r=n(4913).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8265:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},6682:function(t,e,n){var r=n(9565),o=n(8551),i=n(4901),a=n(4576),s=n(7323),u=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var c=r(n,t,e);return null!==c&&o(c),c}if("RegExp"===a(t))return r(s,t,e);throw new u("RegExp#exec called on incompatible receiver")}},7323:function(t,e,n){var r,o,i=n(9565),a=n(9504),s=n(655),u=n(7979),c=n(8429),f=n(5745),l=n(2360),d=n(1181).get,p=n(3635),h=n(8814),v=f("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,m=y,g=a("".charAt),b=a("".indexOf),x=a("".replace),E=a("".slice),T=(o=/b*/g,i(y,r=/a/,"a"),i(y,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(T||O||w||p||h)&&(m=function(t){var e,n,r,o,a,c,f,p=this,h=d(p),S=s(t),N=h.raw;if(N)return N.lastIndex=p.lastIndex,e=i(m,N,S),p.lastIndex=N.lastIndex,e;var j=h.groups,k=w&&p.sticky,I=i(u,p),P=p.source,A=0,_=S;if(k&&(I=x(I,"y",""),-1===b(I,"g")&&(I+="g"),_=E(S,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(S,p.lastIndex-1))&&(P="(?: "+P+")",_=" "+_,A++),n=new RegExp("^(?:"+P+")",I)),O&&(n=new RegExp("^"+P+"$(?!\\s)",I)),T&&(r=p.lastIndex),o=i(y,k?n:p,_),k?o?(o.input=E(o.input,A),o[0]=E(o[0],A),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:T&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),O&&o&&o.length>1&&i(v,o[0],n,(function(){for(a=1;ab)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},3389:function(t,e,n){var r=n(4475),o=n(3724),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return r[t];var e=i(r,t);return e&&e.value}},7633:function(t,e,n){var r=n(7751),o=n(2106),i=n(8227),a=n(3724),s=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&o(e,s,{configurable:!0,get:function(){return this}})}},687:function(t,e,n){var r=n(4913).f,o=n(9297),i=n(8227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4475),i=n(9433),a="__core-js_shared__",s=t.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.36.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},2293:function(t,e,n){var r=n(8551),o=n(5548),i=n(4117),a=n(8227)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||i(n=r(s)[a])?e:o(n)}},8183:function(t,e,n){var r=n(9504),o=n(1291),i=n(655),a=n(7750),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),f=function(t){return function(e,n){var r,f,l=i(a(e)),d=o(n),p=l.length;return d<0||d>=p?t?"":void 0:(r=u(l,d))<55296||r>56319||d+1===p||(f=u(l,d+1))<56320||f>57343?t?s(l,d):r:t?c(l,d,d+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},706:function(t,e,n){var r=n(350).PROPER,o=n(9039),i=n(7452);t.exports=function(t){return o((function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||r&&i[t].name!==t}))}},3802:function(t,e,n){var r=n(9504),o=n(7750),i=n(655),a=n(7452),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),f=function(t){return function(e){var n=i(o(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},4495:function(t,e,n){var r=n(7388),o=n(9039),i=n(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8242:function(t,e,n){var r=n(9565),o=n(7751),i=n(8227),a=n(6840);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},1296:function(t,e,n){var r=n(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},9225:function(t,e,n){var r,o,i,a,s=n(4475),u=n(8745),c=n(6080),f=n(4901),l=n(9297),d=n(9039),p=n(397),h=n(7680),v=n(4055),y=n(2812),m=n(8119),g=n(9088),b=s.setImmediate,x=s.clearImmediate,E=s.process,T=s.Dispatch,w=s.Function,O=s.MessageChannel,S=s.String,N=0,j={},k="onreadystatechange";d((function(){r=s.location}));var I=function(t){if(l(j,t)){var e=j[t];delete j[t],e()}},P=function(t){return function(){I(t)}},A=function(t){I(t.data)},_=function(t){s.postMessage(S(t),r.protocol+"//"+r.host)};b&&x||(b=function(t){y(arguments.length,1);var e=f(t)?t:w(t),n=h(arguments,1);return j[++N]=function(){u(e,void 0,n)},o(N),N},x=function(t){delete j[t]},g?o=function(t){E.nextTick(P(t))}:T&&T.now?o=function(t){T.now(P(t))}:O&&!m?(a=(i=new O).port2,i.port1.onmessage=A,o=c(a.postMessage,a)):s.addEventListener&&f(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(_)?(o=_,s.addEventListener("message",A,!1)):o=k in v("script")?function(t){p.appendChild(v("script"))[k]=function(){p.removeChild(this),I(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:b,clear:x}},1240:function(t,e,n){var r=n(9504);t.exports=r(1..valueOf)},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),u=n(8227),c=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,f);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},2140:function(t,e,n){var r={};r[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(r)},655:function(t,e,n){var r=n(6955),o=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){var r=n(9504),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},7040:function(t,e,n){var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){var r=n(3724),o=n(9039);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(t){var e=TypeError;t.exports=function(t,n){if(t=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,arity:1,forced:!y||!d("concat")},{concat:function(t){var e,n,r,o,i,a=s(this),d=l(a,0),p=0;for(e=-1,r=arguments.length;e1?arguments[1]:void 0)}})},113:function(t,e,n){var r=n(6518),o=n(9213).find,i=n(6469),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},6449:function(t,e,n){var r=n(6518),o=n(259),i=n(8981),a=n(6198),s=n(1291),u=n(1469);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e),r=u(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:s(t)),r}})},3418:function(t,e,n){var r=n(6518),o=n(7916);r({target:"Array",stat:!0,forced:!n(4428)((function(t){Array.from(t)}))},{from:o})},3792:function(t,e,n){var r=n(5397),o=n(6469),i=n(6269),a=n(1181),s=n(4913).f,u=n(1088),c=n(2529),f=n(6395),l=n(3724),d="Array Iterator",p=a.set,h=a.getterFor(d);t.exports=u(Array,"Array",(function(t,e){p(this,{type:d,target:r(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(t){}},8598:function(t,e,n){var r=n(6518),o=n(9504),i=n(7055),a=n(5397),s=n(4598),u=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},2062:function(t,e,n){var r=n(6518),o=n(9213).map;r({target:"Array",proto:!0,forced:!n(597)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4782:function(t,e,n){var r=n(6518),o=n(4376),i=n(3517),a=n(34),s=n(5610),u=n(6198),c=n(5397),f=n(4659),l=n(8227),d=n(597),p=n(7680),h=d("slice"),v=l("species"),y=Array,m=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,l,d=c(this),h=u(d),g=s(t,h),b=s(void 0===e?h:e,h);if(o(d)&&(n=d.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return p(d,g,b);for(r=new(void 0===n?y:n)(m(b-g,0)),l=0;g2)if(c=x(c),43===(e=j(c,0))||45===e){if(88===(n=j(c,2))||120===n)return NaN}else if(48===e){switch(j(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=N(c,2)).length,s=0;so)return NaN;return parseInt(i,r)}return+c}(e)}(t));return d(O,e=this)&&v((function(){b(e)}))?l(Object(n),this,I):n};I.prototype=O,k&&!o&&(O.constructor=I),r({global:!0,constructor:!0,wrap:!0,forced:k},{Number:I});var P=function(t,e){for(var n,r=i?y(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)f(e,n=r[o])&&!f(t,n)&&g(t,n,m(e,n))};o&&w&&P(s[E],w),(k||o)&&P(s[E],T)},9085:function(t,e,n){var r=n(6518),o=n(4213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5506:function(t,e,n){var r=n(6518),o=n(2357).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},3851:function(t,e,n){var r=n(6518),o=n(9039),i=n(5397),a=n(7347).f,s=n(3724);r({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},1278:function(t,e,n){var r=n(6518),o=n(3724),i=n(5031),a=n(5397),s=n(7347),u=n(4659);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=s.f,c=i(r),f={},l=0;c.length>l;)void 0!==(n=o(r,e=c[l++]))&&u(f,e,n);return f}})},9773:function(t,e,n){var r=n(6518),o=n(4495),i=n(9039),a=n(3717),s=n(8981);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},875:function(t,e,n){var r=n(6518),o=n(9039),i=n(8981),a=n(2787),s=n(2211);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},9432:function(t,e,n){var r=n(6518),o=n(8981),i=n(1072);r({target:"Object",stat:!0,forced:n(9039)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},6099:function(t,e,n){var r=n(2140),o=n(6840),i=n(3179);r||o(Object.prototype,"toString",i,{unsafe:!0})},6499:function(t,e,n){var r=n(6518),o=n(9565),i=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,f=s((function(){var n=i(e.resolve),a=[],s=0,f=1;u(t,(function(t){var i=s++,u=!1;f++,o(n,e,t).then((function(t){u||(u=!0,a[i]=t,--f||r(a))}),c)})),--f||r(a)}));return f.error&&c(f.value),n.promise}})},2003:function(t,e,n){var r=n(6518),o=n(6395),i=n(916).CONSTRUCTOR,a=n(550),s=n(7751),u=n(4901),c=n(6840),f=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(a)){var l=s("Promise").prototype.catch;f.catch!==l&&c(f,"catch",l,{unsafe:!0})}},436:function(t,e,n){var r,o,i,a=n(6518),s=n(6395),u=n(9088),c=n(4475),f=n(9565),l=n(6840),d=n(2967),p=n(687),h=n(7633),v=n(9306),y=n(4901),m=n(34),g=n(679),b=n(2293),x=n(9225).set,E=n(1955),T=n(3138),w=n(1103),O=n(8265),S=n(1181),N=n(550),j=n(916),k=n(6043),I="Promise",P=j.CONSTRUCTOR,A=j.REJECTION_EVENT,_=j.SUBCLASSING,L=S.getterFor(I),C=S.set,R=N&&N.prototype,M=N,$=R,D=c.TypeError,F=c.document,q=c.process,B=k.f,G=B,U=!!(F&&F.createEvent&&c.dispatchEvent),V="unhandledrejection",J=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},X=function(t,e){var n,r,o,i=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&K(e),e.rejection=1),!0===s?n=i:(l&&l.enter(),n=s(i),l&&(l.exit(),o=!0)),n===t.promise?c(new D("Promise-chain cycle")):(r=J(n))?f(r,n,u,c):u(n)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,E((function(){for(var n,r=t.reactions;n=r.get();)X(n,t);t.notified=!1,e&&!t.rejection&&z(t)})))},H=function(t,e,n){var r,o;U?((r=F.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!A&&(o=c["on"+t])?o(r):t===V&&T("Unhandled promise rejection",n)},z=function(t){f(x,c,(function(){var e,n=t.facade,r=t.value;if(W(t)&&(e=w((function(){u?q.emit("unhandledRejection",r,n):H(V,n,r)})),t.rejection=u||W(t)?2:1,e.error))throw e.value}))},W=function(t){return 1!==t.rejection&&!t.parent},K=function(t){f(x,c,(function(){var e=t.facade;u?q.emit("rejectionHandled",e):H("rejectionhandled",e,t.value)}))},Z=function(t,e,n){return function(r){t(e,r,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new D("Promise can't be resolved itself");var r=J(e);r?E((function(){var n={done:!1};try{f(r,e,Z(tt,n,t),Z(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Q({done:!1},e,t)}}};if(P&&($=(M=function(t){g(this,$),v(t),f(r,this);var e=L(this);try{t(Z(tt,e),Z(Q,e))}catch(t){Q(e,t)}}).prototype,(r=function(t){C(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:void 0})}).prototype=l($,"then",(function(t,e){var n=L(this),r=B(b(this,M));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=u?q.domain:void 0,0===n.state?n.reactions.add(r):E((function(){X(r,n)})),r.promise})),o=function(){var t=new r,e=L(t);this.promise=t,this.resolve=Z(tt,e),this.reject=Z(Q,e)},k.f=B=function(t){return t===M||void 0===t?new o(t):G(t)},!s&&y(N)&&R!==Object.prototype)){i=R.then,_||l(R,"then",(function(t,e){var n=this;return new M((function(t,e){f(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete R.constructor}catch(t){}d&&d(R,$)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:M}),p(M,I,!1,!0),h(I)},3362:function(t,e,n){n(436),n(6499),n(2003),n(7743),n(1481),n(280)},7743:function(t,e,n){var r=n(6518),o=n(9565),i=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s((function(){var a=i(e.resolve);u(t,(function(t){o(a,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},1481:function(t,e,n){var r=n(6518),o=n(6043);r({target:"Promise",stat:!0,forced:n(916).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return(0,e.reject)(t),e.promise}})},280:function(t,e,n){var r=n(6518),o=n(7751),i=n(6395),a=n(550),s=n(916).CONSTRUCTOR,u=n(3438),c=o("Promise"),f=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(t){return u(f&&this===c?a:this,t)}})},825:function(t,e,n){var r=n(6518),o=n(7751),i=n(8745),a=n(566),s=n(5548),u=n(8551),c=n(34),f=n(2360),l=n(9039),d=o("Reflect","construct"),p=Object.prototype,h=[].push,v=l((function(){function t(){}return!(d((function(){}),[],t)instanceof t)})),y=!l((function(){d((function(){}))})),m=v||y;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(y&&!v)return d(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(h,r,e),new(i(a,t,r))}var o=n.prototype,l=f(c(o)?o:p),m=i(t,l,e);return c(m)?m:l}})},4864:function(t,e,n){var r=n(3724),o=n(4475),i=n(9504),a=n(2796),s=n(3167),u=n(6699),c=n(2360),f=n(8480).f,l=n(1625),d=n(788),p=n(655),h=n(1034),v=n(8429),y=n(1056),m=n(6840),g=n(9039),b=n(9297),x=n(1181).enforce,E=n(7633),T=n(8227),w=n(3635),O=n(8814),S=T("match"),N=o.RegExp,j=N.prototype,k=o.SyntaxError,I=i(j.exec),P=i("".charAt),A=i("".replace),_=i("".indexOf),L=i("".slice),C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,M=/a/g,$=new N(R)!==R,D=v.MISSED_STICKY,F=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!$||D||w||O||g((function(){return M[S]=!1,N(R)!==R||N(M)===M||"/a/i"!==String(N(R,"i"))}))))){for(var q=function(t,e){var n,r,o,i,a,f,v=l(j,this),y=d(t),m=void 0===e,g=[],E=t;if(!v&&y&&m&&t.constructor===q)return t;if((y||l(j,t))&&(t=t.source,m&&(e=h(E))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),E=t,w&&"dotAll"in R&&(r=!!e&&_(e,"s")>-1)&&(e=A(e,/s/g,"")),n=e,D&&"sticky"in R&&(o=!!e&&_(e,"y")>-1)&&F&&(e=A(e,/y/g,"")),O&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a=c(null),s=!1,u=!1,f=0,l="";r<=n;r++){if("\\"===(e=P(t,r)))e+=P(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:I(C,L(t,r+1))&&(r+=2,u=!0),o+=e,f++;continue;case">"===e&&u:if(""===l||b(a,l))throw new k("Invalid capture group name");a[l]=!0,i[i.length]=[l,f],u=!1,l="";continue}u?l+=e:o+=e}return[o,i]}(t),t=i[0],g=i[1]),a=s(N(t,e),v?this:j,q),(r||o||g.length)&&(f=x(a),r&&(f.dotAll=!0,f.raw=q(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=P(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+P(t,++r);return o}(t),n)),o&&(f.sticky=!0),g.length&&(f.groups=g)),t!==E)try{u(a,"source",""===E?"(?:)":E)}catch(t){}return a},B=f(N),G=0;B.length>G;)y(q,N,B[G++]);j.constructor=q,q.prototype=j,m(o,"RegExp",q,{constructor:!0})}E("RegExp")},7495:function(t,e,n){var r=n(6518),o=n(7323);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8781:function(t,e,n){var r=n(350).PROPER,o=n(6840),i=n(8551),a=n(655),s=n(9039),u=n(1034),c="toString",f=RegExp.prototype,l=f[c],d=s((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),p=r&&l.name!==c;(d||p)&&o(f,c,(function(){var t=i(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},7764:function(t,e,n){var r=n(8183).charAt,o=n(655),i=n(1181),a=n(1088),s=n(2529),u="String Iterator",c=i.set,f=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,e=f(this),n=e.string,o=e.index;return o>=n.length?s(void 0,!0):(t=r(n,o),e.index+=t.length,s(t,!1))}))},1761:function(t,e,n){var r=n(9565),o=n(9228),i=n(8551),a=n(4117),s=n(8014),u=n(655),c=n(7750),f=n(5966),l=n(7829),d=n(6682);o("match",(function(t,e,n){return[function(e){var n=c(this),o=a(e)?void 0:f(e,t);return o?r(o,e,n):new RegExp(e)[t](u(n))},function(t){var r=i(this),o=u(t),a=n(e,r,o);if(a.done)return a.value;if(!r.global)return d(r,o);var c=r.unicode;r.lastIndex=0;for(var f,p=[],h=0;null!==(f=d(r,o));){var v=u(f[0]);p[h]=v,""===v&&(r.lastIndex=l(o,s(r.lastIndex),c)),h++}return 0===h?null:p}]}))},5440:function(t,e,n){var r=n(8745),o=n(9565),i=n(9504),a=n(9228),s=n(9039),u=n(8551),c=n(4901),f=n(4117),l=n(1291),d=n(8014),p=n(655),h=n(7750),v=n(7829),y=n(5966),m=n(2478),g=n(6682),b=n(8227)("replace"),x=Math.max,E=Math.min,T=i([].concat),w=i([].push),O=i("".indexOf),S=i("".slice),N="$0"==="a".replace(/./,"$0"),j=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,n){var i=j?"$":"$0";return[function(t,n){var r=h(this),i=f(t)?void 0:y(t,b);return i?o(i,t,r,n):o(e,p(r),t,n)},function(t,o){var a=u(this),s=p(t);if("string"==typeof o&&-1===O(o,i)&&-1===O(o,"$<")){var f=n(e,a,s,o);if(f.done)return f.value}var h=c(o);h||(o=p(o));var y,b=a.global;b&&(y=a.unicode,a.lastIndex=0);for(var N,j=[];null!==(N=g(a,s))&&(w(j,N),b);)""===p(N[0])&&(a.lastIndex=v(s,d(a.lastIndex),y));for(var k,I="",P=0,A=0;A=P&&(I+=S(s,P,C)+_,P=C+L.length)}return I+S(s,P)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!N||j)},744:function(t,e,n){var r=n(9565),o=n(9504),i=n(9228),a=n(8551),s=n(4117),u=n(7750),c=n(2293),f=n(7829),l=n(8014),d=n(655),p=n(5966),h=n(6682),v=n(8429),y=n(9039),m=v.UNSUPPORTED_Y,g=Math.min,b=o([].push),x=o("".slice),E=!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),T="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(t,e,n){var o="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e;return[function(e,n){var i=u(this),a=s(e)?void 0:p(e,t);return a?r(a,e,i,n):r(o,d(i),e,n)},function(t,r){var i=a(this),s=d(t);if(!T){var u=n(o,i,s,r,o!==e);if(u.done)return u.value}var p=c(i,RegExp),v=i.unicode,y=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(m?"g":"y"),E=new p(m?"^(?:"+i.source+")":i,y),w=void 0===r?4294967295:r>>>0;if(0===w)return[];if(0===s.length)return null===h(E,s)?[s]:[];for(var O=0,S=0,N=[];S { +return /******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ 442: +/***/ ((module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = convertYarnToJS; +/* eslint-disable */ +/* +Yoinked from YarnEditor source and modified to limit size and scope: + +https://github.com/YarnSpinnerTool/YarnEditor/blob/master/src/js/classes/data.js + +Including as a dependency would be large and subject to breakage, so we adapt it instead. + +I guess this counts as a "substantial portion" (?), so: + +-------------- + + +Copyright (c) 2015 Infinite Ammo Inc. and Yarn Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ +/* eslint-enable */ + +function convertYarnToJS(content) { + const objects = []; + const lines = content.split(/\r?\n+/).filter(line => { + return !line.match(/^\s*$/); + }); + let obj = null; + let readingBody = false; + let filetags; + + // per-node, we will uniformly strip leading space + // which can result from constructing dialogues + // using template strings. + let leadingSpace = ''; + let i = 0; + while (lines[i].trim()[0] === '#') { + if (!filetags) filetags = []; + filetags.push(lines[i].trim().substr(1)); + i += 1; + } + for (; i < lines.length; i += 1) { + if (lines[i].trim() === '===') { + readingBody = false; + if (filetags) obj.filetags = filetags; + objects.push(obj); + obj = null; + } else if (readingBody) { + obj.body += `${lines[i].replace(leadingSpace, '')}\n`; + } else if (lines[i].trim() === '---') { + readingBody = true; + obj.body = ''; + leadingSpace = lines[i].match(/^\s*/)[0]; + } else if (lines[i].indexOf(':') > -1) { + const [key, value] = lines[i].split(':'); + const trimmedKey = key.trim(); + const trimmedValue = value.trim(); + if (trimmedKey !== 'body') { + if (obj == null) obj = {}; + if (obj[trimmedKey]) { + throw new Error(`Duplicate tag on node: ${trimmedKey}`); + } + obj[trimmedKey] = trimmedValue; + } + } + } + return objects; +} +module.exports = exports.default; + +/***/ }), + +/***/ 696: +/***/ ((module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +class DefaultVariableStorage { + constructor() { + this.data = {}; + } + set(name, value) { + this.data[name] = value; + } + + // Called when a variable is being evaluated. + get(name) { + return this.data[name]; + } +} +var _default = exports["default"] = DefaultVariableStorage; +module.exports = exports.default; + +/***/ }), + +/***/ 954: +/***/ ((module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _runner = _interopRequireDefault(__webpack_require__(458)); +var _results = _interopRequireDefault(__webpack_require__(528)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +_runner.default.OptionsResult = _results.default.OptionsResult; +_runner.default.TextResult = _results.default.TextResult; +_runner.default.CommandResult = _results.default.CommandResult; +var _default = exports["default"] = _runner.default; +module.exports = exports.default; + +/***/ }), + +/***/ 105: +/***/ ((module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _tokens = _interopRequireDefault(__webpack_require__(170)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/** + * A LexState object represents one of the states in which the lexer can be. + */ +class LexerState { + constructor() { + /** A list of transition for the given state. */ + this.transitions = []; + /** A special, unique transition for matching spans of text in any state. */ + this.textRule = null; + /** + * Whether or not this state is context-bound by indentation + * (will make the lexer emit Indent and Dedent tokens). + */ + this.isTrackingNextIndentation = false; + } + + /** + * addTransition - Define a new transition for this state. + * + * @param {type} token - the token to match + * @param {string} [state] - the state to which transition; if not provided, will + * remain in the same state. + * @param {boolean} [delimitsText] - `true` if the token is a text delimiter. A text delimiters + * is a token which should be considered as a token, even if it + * doesn't start the line. + * @return {Object} - returns the LexState itself for chaining. + */ + addTransition(token, state, delimitsText) { + this.transitions.push({ + token: token, + regex: _tokens.default[token], + state: state || null, + delimitsText: delimitsText || false + }); + return this; // Return this for chaining + } + + /** + * addTextRule - Match all the way up to any of the other transitions in this state. + * The text rule can only be added once. + * + * @param {type} type description + * @param {type} state description + * @return {Object} - returns the LexState itself for chaining. + */ + addTextRule(type, state) { + if (this.textRule) { + throw new Error('Cannot add more than one text rule to a state.'); + } + + // Go through the regex of the other transitions in this state, and create a regex that will + // match all text, up to any of those transitions. + const rules = []; + this.transitions.forEach(transition => { + if (transition.delimitsText) { + // Surround the rule in parens + rules.push(`(${transition.regex.source})`); + } + }); + + // Join the rules that we got above on a |, then put them all into a negative lookahead. + const textPattern = `((?!${rules.join('|')}).)+`; + this.addTransition(type, state); + + // Update the regex in the transition we just added to our new one. + this.textRule = this.transitions[this.transitions.length - 1]; + this.textRule.regex = new RegExp(textPattern); + return this; + } + + /** + * setTrackNextIndentation - tell this state whether to track indentation. + * + * @param {boolean} track - `true` to track, `false` otherwise. + * @return {Object} - returns the LexState itself for chaining. + */ + setTrackNextIndentation(track) { + this.isTrackingNextIndentation = track; + return this; + } +} +var _default = exports["default"] = LexerState; +module.exports = exports.default; + +/***/ }), + +/***/ 101: +/***/ ((module, exports, __webpack_require__) => { + + + +// Syncs with YarnSpinner@e0f6807, +// see https://github.com/thesecretlab/YarnSpinner/blob/master/YarnSpinner/Lexer.cs +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _states = _interopRequireDefault(__webpack_require__(789)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +// As opposed to the original C# implemntation which, tokenize the entire input, before emiting +// a list of tokens, this parser will emit a token each time `lex()` is called. This change +// accomodates the Jison parser. Given the lexer is not entirely context-free +// (Off-side rule, lookaheads), context needs to be remembered between each `lex()` calls. +class Lexer { + constructor() { + /** All the possible states for the lexer. */ + this.states = _states.default.makeStates(); + + /** Current state identifier. */ + this.state = 'base'; + + /** Original text to lex. */ + this.originalText = ''; + + /** Text to lex, splitted into an array of lines. */ + this.lines = []; + + // Properties used to keep track of the context we're in, while tokenizing each line. + /** + * Indentation tracker. Each time we encounter an identation, we push a + * new array which looks like: [indentationLevel, isBaseIndentation]. Basically, + * isBaseIndentation will be true only for the first level. + */ + this.indentation = [[0, false]]; + + /** + * Set to true when a state required indentation tracking. Will be set to false, after a + * an indentation is found. + */ + this.shouldTrackNextIndentation = false; + + /** + * The previous level of identation, basically: this.indentation.last()[0]. + */ + this.previousLevelOfIndentation = 0; + + // Reset the locations. + this.reset(); + } + + /** + * reset - Reset the lexer location, text and line number. Nothing fancy. + */ + reset() { + // Locations, used by both the lexer and the Jison parser. + this.yytext = ''; + this.yylloc = { + first_column: 1, + first_line: 1, + last_column: 1, + last_line: 1 + }; + this.yylineno = 1; + } + + /** + * lex - Lex the input and emit the next matched token. + * + * @return {string} Emit the next token found. + */ + lex() { + if (this.isAtTheEndOfText()) { + this.yytext = ''; + + // Now that we're at the end of the text, we'll emit as many + // `Dedent` as necessary, to get back to 0-indentation. + const indent = this.indentation.pop(); + if (indent && indent[1]) { + return 'Dedent'; + } + return 'EndOfInput'; + } + if (this.isAtTheEndOfLine()) { + // Get the next token on the current line + this.advanceLine(); + return 'EndOfLine'; + } + return this.lexNextTokenOnCurrentLine(); + } + advanceLine() { + this.yylineno += 1; + const currentLine = this.getCurrentLine().replace(/\t/, ' '); + this.lines[this.yylineno - 1] = currentLine; + this.previousLevelOfIndentation = this.getLastRecordedIndentation()[0]; + this.yytext = ''; + this.yylloc = { + first_column: 1, + first_line: this.yylineno, + last_column: 1, + last_line: this.yylineno + }; + } + lexNextTokenOnCurrentLine() { + const thisIndentation = this.getCurrentLineIndentation(); + if (this.shouldTrackNextIndentation && thisIndentation > this.previousLevelOfIndentation) { + this.indentation.push([thisIndentation, true]); + this.shouldTrackNextIndentation = false; + this.yylloc.first_column = this.yylloc.last_column; + this.yylloc.last_column += thisIndentation; + this.yytext = ''; + return 'Indent'; + } else if (thisIndentation < this.getLastRecordedIndentation()[0]) { + const indent = this.indentation.pop(); + if (indent[1]) { + this.yytext = ''; + this.previousLevelOfIndentation = this.getLastRecordedIndentation()[0]; + return 'Dedent'; + } + this.lexNextTokenOnCurrentLine(); + } + if (thisIndentation === this.previousLevelOfIndentation && this.yylloc.last_column === 1) { + this.yylloc.last_column += thisIndentation; + } + const rules = this.getState().transitions; + for (let i = 0, len = rules.length; i < len; i += 1) { + const rule = rules[i]; + const match = this.getCurrentLine().substring(this.yylloc.last_column - 1).match(rule.regex); + + // Only accept valid matches that are at the beginning of the text + if (match !== null && match.index === 0) { + // Take the matched text off the front of this.text + const matchedText = match[0]; + + // Tell the parser what the text for this token is + this.yytext = this.getCurrentLine().substr(this.yylloc.last_column - 1, matchedText.length); + if (rule.token === 'String') { + // If that's a String, remove the quotes + this.yytext = this.yytext.substring(1, this.yytext.length - 1); + } + + // Update our line and column info + this.yylloc.first_column = this.yylloc.last_column; + this.yylloc.last_column += matchedText.length; + + // If the rule points to a new state, change it now + if (rule.state) { + this.setState(rule.state); + if (this.shouldTrackNextIndentation) { + if (this.getLastRecordedIndentation()[0] < thisIndentation) { + this.indentation.push([thisIndentation, false]); + } + } + } + const nextState = this.states[rule.state]; + const nextStateHasText = !rule.state || nextState.transitions.find(transition => { + return transition.token === 'Text'; + }); + // inline expressions and escaped characters interrupt text + // but should still preserve surrounding whitespace. + if (rule.token !== 'EndInlineExp' && rule.token !== 'EscapedCharacter' || !nextStateHasText // we never want leading whitespace if not in text-supporting state + ) { + // Remove leading whitespace characters + const spaceMatch = this.getCurrentLine().substring(this.yylloc.last_column - 1).match(/^\s*/); + if (spaceMatch[0]) { + this.yylloc.last_column += spaceMatch[0].length; + } + } + return rule.token; + } + } + throw new Error(`Invalid syntax in: ${this.getCurrentLine()}`); + } + + // /////////////// Getters & Setters + + /** + * setState - set the current state of the lexer. + * + * @param {string} state name of the state + */ + setState(state) { + if (this.states[state] === undefined) { + throw new Error(`Cannot set the unknown state [${state}]`); + } + this.state = state; + if (this.getState().isTrackingNextIndentation) { + this.shouldTrackNextIndentation = true; + } + } + + /** + * setInput - Set the text on which perform lexical analysis. + * + * @param {string} text the text to lex. + */ + setInput(text) { + // Delete carriage return while keeping a similar semantic. + this.originalText = text.replace(/(\r\n)/g, '\n').replace(/\r/g, '\n').replace(/[\n\r]+$/, ''); + // Transform the input into an array of lines. + this.lines = this.originalText.split('\n'); + this.reset(); + } + + /** + * getState - Returns the full current state object (LexerState), + * rather than its identifier. + * + * @return {Object} the state object. + */ + getState() { + return this.states[this.state]; + } + getCurrentLine() { + return this.lines[this.yylineno - 1]; + } + getCurrentLineIndentation() { + const match = this.getCurrentLine().match(/^(\s*)/g); + return match[0].length; + } + getLastRecordedIndentation() { + if (this.indentation.length === 0) { + return [0, false]; + } + return this.indentation[this.indentation.length - 1]; + } + + // /////////////// Booleans tests + /** + * @return {boolean} `true` when yylloc indicates that the end was reached. + */ + isAtTheEndOfText() { + return this.isAtTheEndOfLine() && this.yylloc.first_line >= this.lines.length; + } + + /** + * @return {boolean} `true` when yylloc indicates that the end of the line was reached. + */ + isAtTheEndOfLine() { + return this.yylloc.last_column > this.getCurrentLine().length; + } +} +var _default = exports["default"] = Lexer; +module.exports = exports.default; + +/***/ }), + +/***/ 789: +/***/ ((module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _lexerState = _interopRequireDefault(__webpack_require__(105)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/** + * @return {Object} all states in which the lexer can be with their associated transitions. + */ +function makeStates() { + return { + base: new _lexerState.default().addTransition('EscapedCharacter', null, true).addTransition('Comment', null, true).addTransition('Hashtag', null, true).addTransition('BeginCommand', 'command', true).addTransition('BeginInlineExp', 'inlineExpression', true).addTransition('ShortcutOption', 'shortcutOption').addTextRule('Text'), + shortcutOption: new _lexerState.default().setTrackNextIndentation(true).addTransition('EscapedCharacter', null, true).addTransition('Comment', null, true).addTransition('Hashtag', null, true).addTransition('BeginCommand', 'expression', true).addTransition('BeginInlineExp', 'inlineExpressionInShortcut', true).addTextRule('Text', 'base'), + command: new _lexerState.default().addTransition('If', 'expression').addTransition('Else').addTransition('ElseIf', 'expression').addTransition('EndIf').addTransition('Set', 'assignment').addTransition('Declare', 'declare').addTransition('Jump', 'jump').addTransition('Stop', 'stop').addTransition('BeginInlineExp', 'inlineExpressionInCommand', true).addTransition('EndCommand', 'base', true).addTextRule('Text'), + commandArg: new _lexerState.default().addTextRule('Text'), + commandParenArgOrExpression: new _lexerState.default().addTransition('EndCommand', 'base', true).addTransition('LeftParen', 'expression').addTransition('Variable', 'expression').addTransition('Number', 'expression').addTransition('String').addTransition('True').addTransition('False').addTransition('Null').addTransition('RightParen'), + assignment: new _lexerState.default().addTransition('Variable').addTransition('EqualToOrAssign', 'expression'), + declare: new _lexerState.default().addTransition('Variable').addTransition('EndCommand', 'base').addTransition('EqualToOrAssign', 'expression'), + jump: new _lexerState.default().addTransition('Identifier').addTransition('BeginInlineExp', 'inlineExpressionInCommand', true).addTransition('EndCommand', 'base', true), + stop: new _lexerState.default().addTransition('EndCommand', 'base', true), + expression: new _lexerState.default().addTransition('As').addTransition('ExplicitType').addTransition('EndCommand', 'base').addTransition('Number').addTransition('String').addTransition('LeftParen').addTransition('RightParen').addTransition('EqualTo').addTransition('EqualToOrAssign').addTransition('NotEqualTo').addTransition('GreaterThanOrEqualTo').addTransition('GreaterThan').addTransition('LessThanOrEqualTo').addTransition('LessThan').addTransition('Add').addTransition('UnaryMinus').addTransition('Minus').addTransition('Exponent').addTransition('Multiply').addTransition('Divide').addTransition('Modulo').addTransition('And').addTransition('Or').addTransition('Xor').addTransition('Not').addTransition('Variable').addTransition('Comma').addTransition('True').addTransition('False').addTransition('Null').addTransition('Identifier').addTextRule(), + inlineExpression: new _lexerState.default().addTransition('EndInlineExp', 'base').addTransition('Number').addTransition('String').addTransition('LeftParen').addTransition('RightParen').addTransition('EqualTo').addTransition('EqualToOrAssign').addTransition('NotEqualTo').addTransition('GreaterThanOrEqualTo').addTransition('GreaterThan').addTransition('LessThanOrEqualTo').addTransition('LessThan').addTransition('Add').addTransition('UnaryMinus').addTransition('Minus').addTransition('Exponent').addTransition('Multiply').addTransition('Divide').addTransition('Modulo').addTransition('And').addTransition('Or').addTransition('Xor').addTransition('Not').addTransition('Variable').addTransition('Comma').addTransition('True').addTransition('False').addTransition('Null').addTransition('Identifier').addTextRule('Text', 'base'), + // TODO: Copied from above + // There has to be a non-stupid way to do this, right? + // I'm just not familiar enough yet to know how to + // transition from inline expression back to base OR command + // states depending on how we got there + inlineExpressionInCommand: new _lexerState.default().addTransition('EndInlineExp', 'command').addTransition('Number').addTransition('String').addTransition('LeftParen').addTransition('RightParen').addTransition('EqualTo').addTransition('EqualToOrAssign').addTransition('NotEqualTo').addTransition('GreaterThanOrEqualTo').addTransition('GreaterThan').addTransition('LessThanOrEqualTo').addTransition('LessThan').addTransition('Add').addTransition('UnaryMinus').addTransition('Minus').addTransition('Exponent').addTransition('Multiply').addTransition('Divide').addTransition('Modulo').addTransition('And').addTransition('Or').addTransition('Xor').addTransition('Not').addTransition('Variable').addTransition('Comma').addTransition('True').addTransition('False').addTransition('Null').addTransition('Identifier').addTextRule('Text', 'base'), + inlineExpressionInShortcut: new _lexerState.default().addTransition('EndInlineExp', 'shortcutOption').addTransition('Number').addTransition('String').addTransition('LeftParen').addTransition('RightParen').addTransition('EqualTo').addTransition('EqualToOrAssign').addTransition('NotEqualTo').addTransition('GreaterThanOrEqualTo').addTransition('GreaterThan').addTransition('LessThanOrEqualTo').addTransition('LessThan').addTransition('Add').addTransition('UnaryMinus').addTransition('Minus').addTransition('Exponent').addTransition('Multiply').addTransition('Divide').addTransition('Modulo').addTransition('And').addTransition('Or').addTransition('Xor').addTransition('Not').addTransition('Variable').addTransition('Comma').addTransition('True').addTransition('False').addTransition('Null').addTransition('Identifier').addTextRule('Text', 'base') + }; +} +var _default = exports["default"] = { + makeStates: makeStates +}; +module.exports = exports.default; + +/***/ }), + +/***/ 170: +/***/ ((module, exports) => { + + + +/** + * Token identifier -> regular expression to match the lexeme. That's a list of all the token + * which can be emitted by the lexer. For now, we're slightly bending the style guide, + * to make sure the debug output of the javascript lexer will (kinda) match the original C# one. + */ +/* eslint-disable key-spacing */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +const Tokens = { + // Special tokens + Whitespace: null, + // (not used currently) + Indent: null, + Dedent: null, + EndOfLine: /\n/, + EndOfInput: null, + // Literals in ("<>") + Number: /-?[0-9]+(\.[0-9+])?/, + String: /"([^"\\]*(?:\\.[^"\\]*)*)"/, + // Command syntax ("<>") + BeginCommand: /<>/, + // Variables ("$foo") + Variable: /\$([A-Za-z0-9_.])+/, + // Shortcut syntax ("->") + ShortcutOption: /->/, + // Hashtag ("#something") + Hashtag: /#([^(\s|#|//)]+)/, + // seems a little hacky to explicitly consider comments here + + // Comment ("// some stuff") + Comment: /\/\/.*/, + // Option syntax ("[[Let's go here|Destination]]") + OptionStart: /\[\[/, + // [[ + OptionDelimit: /\|/, + // | + OptionEnd: /\]\]/, + // ]] + + // Command types (specially recognized command word) + If: /if(?!\w)/, + ElseIf: /elseif(?!\w)/, + Else: /else(?!\w)/, + EndIf: /endif(?!\w)/, + Jump: /jump(?!\w)/, + Stop: /stop(?!\w)/, + Set: /set(?!\w)/, + Declare: /declare(?!\w)/, + As: /as(?!\w)/, + ExplicitType: /(String|Number|Bool)(?=>>)/, + // Boolean values + True: /true(?!\w)/, + False: /false(?!\w)/, + // The null value + Null: /null(?!\w)/, + // Parentheses + LeftParen: /\(/, + RightParen: /\)/, + // Parameter delimiters + Comma: /,/, + // Operators + UnaryMinus: /-(?!\s)/, + EqualTo: /(==|is(?!\w)|eq(?!\w))/, + // ==, eq, is + GreaterThan: /(>|gt(?!\w))/, + // >, gt + GreaterThanOrEqualTo: /(>=|gte(?!\w))/, + // >=, gte + LessThan: /(<|lt(?!\w))/, + // <, lt + LessThanOrEqualTo: /(<=|lte(?!\w))/, + // <=, lte + NotEqualTo: /(!=|neq(?!\w))/, + // !=, neq + + // Logical operators + Or: /(\|\||or(?!\w))/, + // ||, or + And: /(&&|and(?!\w))/, + // &&, and + Xor: /(\^|xor(?!\w))/, + // ^, xor + Not: /(!|not(?!\w))/, + // !, not + + // this guy's special because '=' can mean either 'equal to' + // or 'becomes' depending on context + EqualToOrAssign: /(=|to(?!\w))/, + // =, to + + Add: /\+/, + // + + Minus: /-/, + // - + Exponent: /\*\*/, + // ** + Multiply: /\*/, + // * + Divide: /\//, + // / + Modulo: /%/, + // / + + AddAssign: /\+=/, + // += + MinusAssign: /-=/, + // -= + MultiplyAssign: /\*=/, + // *= + DivideAssign: /\/=/, + // /= + + Identifier: /[a-zA-Z0-9_:.]+/, + // a single word (used for functions) + + EscapedCharacter: /\\./, + // for escaping \# special characters + Text: /[^\\]/, + // generic until we hit other syntax + + // Braces are used for inline expressions. Ignore escaped braces + // TODO: doesn't work ios + BeginInlineExp: /{/, + // { + EndInlineExp: /}/ // } +}; +/* eslint-enable key-spacing */ +var _default = exports["default"] = Tokens; +module.exports = exports.default; + +/***/ }), + +/***/ 293: +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Parser = Parser; +exports.parser = void 0; +var o = function (k, v, o, l) { + for (o = o || {}, l = k.length; l--; o[k[l]] = v); + return o; + }, + $V0 = [1, 16], + $V1 = [1, 17], + $V2 = [1, 12], + $V3 = [1, 19], + $V4 = [1, 18], + $V5 = [5, 18, 19, 23, 34, 36, 77], + $V6 = [1, 23], + $V7 = [1, 24], + $V8 = [1, 26], + $V9 = [1, 27], + $Va = [5, 14, 16, 18, 19, 21, 23, 34, 36, 77], + $Vb = [1, 30], + $Vc = [1, 34], + $Vd = [1, 35], + $Ve = [1, 36], + $Vf = [1, 37], + $Vg = [5, 14, 16, 18, 19, 21, 23, 26, 34, 36, 77], + $Vh = [1, 50], + $Vi = [1, 49], + $Vj = [1, 44], + $Vk = [1, 45], + $Vl = [1, 46], + $Vm = [1, 51], + $Vn = [1, 52], + $Vo = [1, 53], + $Vp = [1, 54], + $Vq = [1, 55], + $Vr = [5, 16, 18, 19, 23, 34, 36, 77], + $Vs = [1, 71], + $Vt = [1, 72], + $Vu = [1, 73], + $Vv = [1, 74], + $Vw = [1, 75], + $Vx = [1, 76], + $Vy = [1, 77], + $Vz = [1, 78], + $VA = [1, 79], + $VB = [1, 80], + $VC = [1, 81], + $VD = [1, 82], + $VE = [1, 83], + $VF = [1, 84], + $VG = [1, 85], + $VH = [26, 46, 51, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 78], + $VI = [26, 46, 51, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 78], + $VJ = [26, 46, 51, 70, 78], + $VK = [1, 122], + $VL = [1, 123], + $VM = [26, 46, 51, 53, 54, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 78], + $VN = [26, 46, 51, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 78], + $VO = [51, 70], + $VP = [16, 18, 19, 23, 34, 77]; +var parser = exports.parser = { + trace: function trace() {}, + yy: {}, + symbols_: { + "error": 2, + "node": 3, + "statements": 4, + "EndOfInput": 5, + "conditionalBlock": 6, + "statement": 7, + "text": 8, + "shortcut": 9, + "genericCommand": 10, + "assignmentCommand": 11, + "jumpCommand": 12, + "stopCommand": 13, + "Comment": 14, + "hashtags": 15, + "EndOfLine": 16, + "textNode": 17, + "Text": 18, + "EscapedCharacter": 19, + "inlineExpression": 20, + "Hashtag": 21, + "conditional": 22, + "BeginCommand": 23, + "If": 24, + "expression": 25, + "EndCommand": 26, + "EndIf": 27, + "additionalConditionalBlocks": 28, + "else": 29, + "Else": 30, + "elseif": 31, + "ElseIf": 32, + "shortcutOption": 33, + "ShortcutOption": 34, + "Indent": 35, + "Dedent": 36, + "Jump": 37, + "Identifier": 38, + "Stop": 39, + "setCommandInner": 40, + "declareCommandInner": 41, + "Set": 42, + "Variable": 43, + "EqualToOrAssign": 44, + "Declare": 45, + "As": 46, + "ExplicitType": 47, + "functionArgument": 48, + "functionCall": 49, + "LeftParen": 50, + "RightParen": 51, + "UnaryMinus": 52, + "Add": 53, + "Minus": 54, + "Exponent": 55, + "Multiply": 56, + "Divide": 57, + "Modulo": 58, + "Not": 59, + "Or": 60, + "And": 61, + "Xor": 62, + "EqualTo": 63, + "NotEqualTo": 64, + "GreaterThan": 65, + "GreaterThanOrEqualTo": 66, + "LessThan": 67, + "LessThanOrEqualTo": 68, + "parenExpressionArgs": 69, + "Comma": 70, + "literal": 71, + "True": 72, + "False": 73, + "Number": 74, + "String": 75, + "Null": 76, + "BeginInlineExp": 77, + "EndInlineExp": 78, + "$accept": 0, + "$end": 1 + }, + terminals_: { + 2: "error", + 5: "EndOfInput", + 14: "Comment", + 16: "EndOfLine", + 18: "Text", + 19: "EscapedCharacter", + 21: "Hashtag", + 23: "BeginCommand", + 24: "If", + 26: "EndCommand", + 27: "EndIf", + 30: "Else", + 32: "ElseIf", + 34: "ShortcutOption", + 35: "Indent", + 36: "Dedent", + 37: "Jump", + 38: "Identifier", + 39: "Stop", + 42: "Set", + 43: "Variable", + 44: "EqualToOrAssign", + 45: "Declare", + 46: "As", + 47: "ExplicitType", + 50: "LeftParen", + 51: "RightParen", + 52: "UnaryMinus", + 53: "Add", + 54: "Minus", + 55: "Exponent", + 56: "Multiply", + 57: "Divide", + 58: "Modulo", + 59: "Not", + 60: "Or", + 61: "And", + 62: "Xor", + 63: "EqualTo", + 64: "NotEqualTo", + 65: "GreaterThan", + 66: "GreaterThanOrEqualTo", + 67: "LessThan", + 68: "LessThanOrEqualTo", + 70: "Comma", + 72: "True", + 73: "False", + 74: "Number", + 75: "String", + 76: "Null", + 77: "BeginInlineExp", + 78: "EndInlineExp" + }, + productions_: [0, [3, 2], [4, 1], [4, 2], [4, 1], [4, 2], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 2], [7, 2], [7, 2], [17, 1], [17, 1], [8, 1], [8, 1], [8, 2], [15, 1], [15, 2], [22, 4], [6, 6], [6, 4], [6, 2], [29, 3], [29, 2], [31, 4], [31, 2], [28, 5], [28, 5], [28, 3], [33, 2], [33, 3], [33, 2], [33, 2], [33, 3], [33, 2], [9, 1], [9, 5], [10, 3], [12, 4], [12, 4], [13, 3], [11, 3], [11, 3], [40, 4], [41, 4], [41, 6], [25, 1], [25, 1], [25, 3], [25, 2], [25, 3], [25, 3], [25, 3], [25, 3], [25, 3], [25, 3], [25, 2], [25, 3], [25, 3], [25, 3], [25, 3], [25, 3], [25, 3], [25, 3], [25, 3], [25, 3], [49, 3], [49, 4], [69, 3], [69, 1], [48, 1], [48, 1], [48, 1], [71, 1], [71, 1], [71, 1], [71, 1], [71, 1], [20, 3]], + performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { + /* this == yyval */ + + var $0 = $$.length - 1; + switch (yystate) { + case 1: + return $$[$0 - 1].flat(); + break; + case 2: + case 4: + case 7: + case 8: + case 9: + case 10: + case 11: + case 17: + case 18: + case 73: + this.$ = [$$[$0]]; + break; + case 3: + this.$ = $$[$0 - 1].concat($$[$0]); + break; + case 5: + this.$ = $$[$0 - 1].concat([$$[$0]]); + break; + case 6: + case 51: + this.$ = $$[$0]; + break; + case 12: + case 14: + case 25: + case 28: + case 29: + case 45: + case 52: + this.$ = $$[$0 - 1]; + break; + case 13: + this.$ = $$[$0 - 1].map(s => Object.assign(s, { + hashtags: $$[$0] + })); + break; + case 15: + this.$ = new yy.TextNode($$[$0], this._$); + break; + case 16: + this.$ = new yy.EscapedCharacterNode($$[$0], this._$); + break; + case 19: + this.$ = $$[$0 - 1].concat($$[$0]); + break; + case 20: + this.$ = [$$[$0].substring(1)]; + break; + case 21: + this.$ = [$$[$0 - 1].substring(1)].concat($$[$0]); + break; + case 22: + case 36: + case 38: + this.$ = $$[$0 - 1]; + break; + case 23: + this.$ = new yy.IfNode($$[$0 - 5], $$[$0 - 3].flat()); + break; + case 24: + this.$ = new yy.IfElseNode($$[$0 - 3], $$[$0 - 1].flat(), $$[$0]); + break; + case 26: + case 27: + this.$ = undefined; + break; + case 30: + this.$ = new yy.ElseNode($$[$0 - 3].flat()); + break; + case 31: + this.$ = new yy.ElseIfNode($$[$0 - 4], $$[$0 - 3].flat()); + break; + case 32: + this.$ = new yy.ElseIfNode($$[$0 - 2], $$[$0 - 1].flat(), $$[$0]); + break; + case 33: + this.$ = { + text: $$[$0] + }; + break; + case 34: + this.$ = { + text: $$[$0 - 1], + conditional: $$[$0] + }; + break; + case 35: + this.$ = { + ...$$[$0 - 1], + hashtags: $$[$0] + }; + break; + case 37: + this.$ = { + ...$$[$0 - 2], + hashtags: $$[$0 - 1] + }; + break; + case 39: + this.$ = new yy.DialogShortcutNode($$[$0].text, undefined, this._$, $$[$0].hashtags, $$[$0].conditional); + break; + case 40: + this.$ = new yy.DialogShortcutNode($$[$0 - 4].text, $$[$0 - 1].flat(), this._$, $$[$0 - 4].hashtags, $$[$0 - 4].conditional); + break; + case 41: + this.$ = new yy.GenericCommandNode($$[$0 - 1], this._$); + break; + case 42: + case 43: + this.$ = new yy.JumpCommandNode($$[$0 - 1]); + break; + case 44: + this.$ = new yy.StopCommandNode(); + break; + case 46: + this.$ = null; + break; + case 47: + this.$ = new yy.SetVariableEqualToNode($$[$0 - 2].substring(1), $$[$0]); + break; + case 48: + this.$ = null; + yy.registerDeclaration($$[$0 - 2].substring(1), $$[$0]); + break; + case 49: + this.$ = null; + yy.registerDeclaration($$[$0 - 4].substring(1), $$[$0 - 2], $$[$0]); + break; + case 50: + case 74: + case 75: + this.$ = $$[$0]; + break; + case 53: + this.$ = new yy.UnaryMinusExpressionNode($$[$0]); + break; + case 54: + this.$ = new yy.ArithmeticExpressionAddNode($$[$0 - 2], $$[$0]); + break; + case 55: + this.$ = new yy.ArithmeticExpressionMinusNode($$[$0 - 2], $$[$0]); + break; + case 56: + this.$ = new yy.ArithmeticExpressionExponentNode($$[$0 - 2], $$[$0]); + break; + case 57: + this.$ = new yy.ArithmeticExpressionMultiplyNode($$[$0 - 2], $$[$0]); + break; + case 58: + this.$ = new yy.ArithmeticExpressionDivideNode($$[$0 - 2], $$[$0]); + break; + case 59: + this.$ = new yy.ArithmeticExpressionModuloNode($$[$0 - 2], $$[$0]); + break; + case 60: + this.$ = new yy.NegatedBooleanExpressionNode($$[$0]); + break; + case 61: + this.$ = new yy.BooleanOrExpressionNode($$[$0 - 2], $$[$0]); + break; + case 62: + this.$ = new yy.BooleanAndExpressionNode($$[$0 - 2], $$[$0]); + break; + case 63: + this.$ = new yy.BooleanXorExpressionNode($$[$0 - 2], $$[$0]); + break; + case 64: + this.$ = new yy.EqualToExpressionNode($$[$0 - 2], $$[$0]); + break; + case 65: + this.$ = new yy.NotEqualToExpressionNode($$[$0 - 2], $$[$0]); + break; + case 66: + this.$ = new yy.GreaterThanExpressionNode($$[$0 - 2], $$[$0]); + break; + case 67: + this.$ = new yy.GreaterThanOrEqualToExpressionNode($$[$0 - 2], $$[$0]); + break; + case 68: + this.$ = new yy.LessThanExpressionNode($$[$0 - 2], $$[$0]); + break; + case 69: + this.$ = new yy.LessThanOrEqualToExpressionNode($$[$0 - 2], $$[$0]); + break; + case 70: + this.$ = new yy.FunctionCallNode($$[$0 - 2], [], this._$); + break; + case 71: + this.$ = new yy.FunctionCallNode($$[$0 - 3], $$[$0 - 1], this._$); + break; + case 72: + this.$ = $$[$0 - 2].concat([$$[$0]]); + break; + case 76: + this.$ = new yy.VariableNode($$[$0].substring(1)); + break; + case 77: + case 78: + this.$ = new yy.BooleanLiteralNode($$[$0]); + break; + case 79: + this.$ = new yy.NumericLiteralNode($$[$0]); + break; + case 80: + this.$ = new yy.StringLiteralNode($$[$0]); + break; + case 81: + this.$ = new yy.NullLiteralNode($$[$0]); + break; + case 82: + this.$ = new yy.InlineExpressionNode($$[$0 - 1], this._$); + break; + } + }, + table: [{ + 3: 1, + 4: 2, + 6: 3, + 7: 4, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: $V2, + 33: 15, + 34: $V3, + 77: $V4 + }, { + 1: [3] + }, { + 5: [1, 20], + 6: 21, + 7: 22, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: $V2, + 33: 15, + 34: $V3, + 77: $V4 + }, o($V5, [2, 2], { + 16: $V6 + }), o($V5, [2, 4], { + 15: 25, + 14: $V7, + 16: $V8, + 21: $V9 + }), { + 16: [1, 28] + }, o([5, 14, 16, 21, 23, 34, 36], [2, 6], { + 17: 13, + 20: 14, + 8: 29, + 18: $V0, + 19: $V1, + 77: $V4 + }), o($Va, [2, 7]), o($Va, [2, 8]), o($Va, [2, 9]), o($Va, [2, 10]), o($Va, [2, 11]), { + 8: 31, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 24: $Vb, + 37: $Vc, + 39: $Vd, + 40: 32, + 41: 33, + 42: $Ve, + 45: $Vf, + 77: $V4 + }, o($Vg, [2, 17]), o($Vg, [2, 18]), o($V5, [2, 39], { + 15: 39, + 14: [1, 40], + 16: [1, 38], + 21: $V9 + }), o($Vg, [2, 15]), o($Vg, [2, 16]), { + 20: 47, + 25: 41, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 8: 56, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 77: $V4 + }, { + 1: [2, 1] + }, o($V5, [2, 3], { + 16: $V6 + }), o($V5, [2, 5], { + 15: 25, + 14: $V7, + 16: $V8, + 21: $V9 + }), o($Vr, [2, 25]), o($Va, [2, 12]), o($Va, [2, 13]), o($Va, [2, 14]), o([5, 14, 16, 18, 19, 23, 34, 36, 77], [2, 20], { + 15: 57, + 21: $V9 + }), { + 4: 58, + 6: 3, + 7: 4, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: $V2, + 33: 15, + 34: $V3, + 77: $V4 + }, o([5, 14, 16, 21, 23, 26, 34, 36], [2, 19], { + 17: 13, + 20: 14, + 8: 29, + 18: $V0, + 19: $V1, + 77: $V4 + }), { + 20: 47, + 25: 59, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 8: 29, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 26: [1, 60], + 77: $V4 + }, { + 26: [1, 61] + }, { + 26: [1, 62] + }, { + 20: 64, + 38: [1, 63], + 77: $V4 + }, { + 26: [1, 65] + }, { + 43: [1, 66] + }, { + 43: [1, 67] + }, o($Va, [2, 38], { + 35: [1, 68] + }), o([5, 16, 18, 19, 21, 23, 34, 36, 77], [2, 35], { + 14: [1, 69] + }), o($Va, [2, 36]), { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG, + 78: [1, 70] + }, o($VH, [2, 50]), o($VH, [2, 51]), { + 20: 47, + 25: 86, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 87, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 88, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, o($VH, [2, 74]), o($VH, [2, 75]), o($VH, [2, 76]), { + 50: [1, 89] + }, o($VH, [2, 77]), o($VH, [2, 78]), o($VH, [2, 79]), o($VH, [2, 80]), o($VH, [2, 81]), o([5, 14, 16, 21, 34, 36], [2, 33], { + 17: 13, + 20: 14, + 8: 29, + 22: 90, + 18: $V0, + 19: $V1, + 23: [1, 91], + 77: $V4 + }), o($Va, [2, 21]), { + 6: 21, + 7: 22, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: [1, 92], + 28: 93, + 29: 94, + 31: 95, + 33: 15, + 34: $V3, + 77: $V4 + }, { + 26: [1, 96], + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }, o($Va, [2, 41]), o($Va, [2, 45]), o($Va, [2, 46]), { + 26: [1, 97] + }, { + 26: [1, 98] + }, o($Va, [2, 44]), { + 44: [1, 99] + }, { + 44: [1, 100] + }, { + 4: 101, + 6: 3, + 7: 4, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: $V2, + 33: 15, + 34: $V3, + 77: $V4 + }, o($Va, [2, 37]), o([5, 14, 16, 18, 19, 21, 23, 26, 34, 36, 46, 51, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 77, 78], [2, 82]), { + 20: 47, + 25: 102, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 103, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 104, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 105, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 106, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 107, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 108, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 109, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 110, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 111, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 112, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 113, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 114, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 115, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 116, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 51: [1, 117], + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }, o($VI, [2, 53], { + 58: $Vx + }), o($VJ, [2, 60], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }), { + 20: 47, + 25: 120, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 51: [1, 118], + 52: $Vk, + 59: $Vl, + 69: 119, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, o($Va, [2, 34]), { + 24: $Vb + }, { + 8: 31, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 24: $Vb, + 27: [1, 121], + 30: $VK, + 32: $VL, + 37: $Vc, + 39: $Vd, + 40: 32, + 41: 33, + 42: $Ve, + 45: $Vf, + 77: $V4 + }, o($Vr, [2, 24]), { + 4: 124, + 6: 3, + 7: 4, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 16: [1, 125], + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: $V2, + 33: 15, + 34: $V3, + 77: $V4 + }, { + 4: 126, + 6: 3, + 7: 4, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 16: [1, 127], + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: $V2, + 33: 15, + 34: $V3, + 77: $V4 + }, o($Va, [2, 22]), o($Va, [2, 42]), o($Va, [2, 43]), { + 20: 47, + 25: 128, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 20: 47, + 25: 129, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 6: 21, + 7: 22, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: $V2, + 33: 15, + 34: $V3, + 36: [1, 130], + 77: $V4 + }, o($VM, [2, 54], { + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VM, [2, 55], { + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VI, [2, 56], { + 58: $Vx + }), o($VI, [2, 57], { + 58: $Vx + }), o($VI, [2, 58], { + 58: $Vx + }), o($VJ, [2, 59], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }), o([26, 46, 51, 60, 70, 78], [2, 61], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }), o([26, 46, 51, 60, 61, 70, 78], [2, 62], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }), o([26, 46, 51, 60, 61, 62, 70, 78], [2, 63], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }), o($VN, [2, 64], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VN, [2, 65], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VN, [2, 66], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VN, [2, 67], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VN, [2, 68], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VN, [2, 69], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx + }), o($VH, [2, 52]), o($VH, [2, 70]), { + 51: [1, 131], + 70: [1, 132] + }, o($VO, [2, 73], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }), { + 26: [1, 133] + }, { + 26: [1, 134] + }, { + 20: 47, + 25: 135, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, { + 6: 21, + 7: 22, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: [1, 136], + 33: 15, + 34: $V3, + 77: $V4 + }, o($VP, [2, 27]), { + 6: 21, + 7: 22, + 8: 6, + 9: 7, + 10: 8, + 11: 9, + 12: 10, + 13: 11, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 22: 5, + 23: [1, 137], + 28: 138, + 29: 94, + 31: 95, + 33: 15, + 34: $V3, + 77: $V4 + }, o($VP, [2, 29]), { + 26: [2, 47], + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }, { + 26: [2, 48], + 46: [1, 139], + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }, o($Va, [2, 40]), o($VH, [2, 71]), { + 20: 47, + 25: 140, + 38: $Vh, + 43: $Vi, + 48: 42, + 49: 43, + 50: $Vj, + 52: $Vk, + 59: $Vl, + 71: 48, + 72: $Vm, + 73: $Vn, + 74: $Vo, + 75: $Vp, + 76: $Vq, + 77: $V4 + }, o($Vr, [2, 23]), o($VP, [2, 26]), { + 26: [1, 141], + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }, { + 8: 31, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 24: $Vb, + 27: [1, 142], + 37: $Vc, + 39: $Vd, + 40: 32, + 41: 33, + 42: $Ve, + 45: $Vf, + 77: $V4 + }, { + 8: 31, + 17: 13, + 18: $V0, + 19: $V1, + 20: 14, + 24: $Vb, + 27: [1, 143], + 30: $VK, + 32: $VL, + 37: $Vc, + 39: $Vd, + 40: 32, + 41: 33, + 42: $Ve, + 45: $Vf, + 77: $V4 + }, o($Vr, [2, 32]), { + 47: [1, 144] + }, o($VO, [2, 72], { + 53: $Vs, + 54: $Vt, + 55: $Vu, + 56: $Vv, + 57: $Vw, + 58: $Vx, + 60: $Vy, + 61: $Vz, + 62: $VA, + 63: $VB, + 64: $VC, + 65: $VD, + 66: $VE, + 67: $VF, + 68: $VG + }), o($VP, [2, 28]), { + 26: [1, 145] + }, { + 26: [1, 146] + }, { + 26: [2, 49] + }, o($Vr, [2, 30]), o($Vr, [2, 31])], + defaultActions: { + 20: [2, 1], + 144: [2, 49] + }, + parseError: function parseError(str, hash) { + if (hash.recoverable) { + this.trace(str); + } else { + var error = new Error(str); + error.hash = hash; + throw error; + } + }, + parse: function parse(input) { + var self = this, + stack = [0], + tstack = [], + vstack = [null], + lstack = [], + table = this.table, + yytext = '', + yylineno = 0, + yyleng = 0, + recovering = 0, + TERROR = 2, + EOF = 1; + var args = lstack.slice.call(arguments, 1); + var lexer = Object.create(this.lexer); + var sharedState = { + yy: {} + }; + for (var k in this.yy) { + if (Object.prototype.hasOwnProperty.call(this.yy, k)) { + sharedState.yy[k] = this.yy[k]; + } + } + lexer.setInput(input, sharedState.yy); + sharedState.yy.lexer = lexer; + sharedState.yy.parser = this; + if (typeof lexer.yylloc == 'undefined') { + lexer.yylloc = {}; + } + var yyloc = lexer.yylloc; + lstack.push(yyloc); + var ranges = lexer.options && lexer.options.ranges; + if (typeof sharedState.yy.parseError === 'function') { + this.parseError = sharedState.yy.parseError; + } else { + this.parseError = Object.getPrototypeOf(this).parseError; + } + function popStack(n) { + stack.length = stack.length - 2 * n; + vstack.length = vstack.length - n; + lstack.length = lstack.length - n; + } + _token_stack: var lex = function () { + var token; + token = lexer.lex() || EOF; + if (typeof token !== 'number') { + token = self.symbols_[token] || token; + } + return token; + }; + var symbol, + preErrorSymbol, + state, + action, + a, + r, + yyval = {}, + p, + len, + newState, + expected; + while (true) { + state = stack[stack.length - 1]; + if (this.defaultActions[state]) { + action = this.defaultActions[state]; + } else { + if (symbol === null || typeof symbol == 'undefined') { + symbol = lex(); + } + action = table[state] && table[state][symbol]; + } + if (typeof action === 'undefined' || !action.length || !action[0]) { + var errStr = ''; + expected = []; + for (p in table[state]) { + if (this.terminals_[p] && p > TERROR) { + expected.push('\'' + this.terminals_[p] + '\''); + } + } + if (lexer.showPosition) { + errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\''; + } else { + errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\''); + } + this.parseError(errStr, { + text: lexer.match, + token: this.terminals_[symbol] || symbol, + line: lexer.yylineno, + loc: yyloc, + expected: expected + }); + } + if (action[0] instanceof Array && action.length > 1) { + throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol); + } + switch (action[0]) { + case 1: + stack.push(symbol); + vstack.push(lexer.yytext); + lstack.push(lexer.yylloc); + stack.push(action[1]); + symbol = null; + if (!preErrorSymbol) { + yyleng = lexer.yyleng; + yytext = lexer.yytext; + yylineno = lexer.yylineno; + yyloc = lexer.yylloc; + if (recovering > 0) { + recovering--; + } + } else { + symbol = preErrorSymbol; + preErrorSymbol = null; + } + break; + case 2: + len = this.productions_[action[1]][1]; + yyval.$ = vstack[vstack.length - len]; + yyval._$ = { + first_line: lstack[lstack.length - (len || 1)].first_line, + last_line: lstack[lstack.length - 1].last_line, + first_column: lstack[lstack.length - (len || 1)].first_column, + last_column: lstack[lstack.length - 1].last_column + }; + if (ranges) { + yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]]; + } + r = this.performAction.apply(yyval, [yytext, yyleng, yylineno, sharedState.yy, action[1], vstack, lstack].concat(args)); + if (typeof r !== 'undefined') { + return r; + } + if (len) { + stack = stack.slice(0, -1 * len * 2); + vstack = vstack.slice(0, -1 * len); + lstack = lstack.slice(0, -1 * len); + } + stack.push(this.productions_[action[1]][0]); + vstack.push(yyval.$); + lstack.push(yyval._$); + newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; + stack.push(newState); + break; + case 3: + return true; + } + } + return true; + } +}; +function Parser() { + this.yy = {}; +} +; +Parser.prototype = parser; +parser.Parser = Parser; + +/***/ }), + +/***/ 33: +/***/ ((module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +class Text {} +class Shortcut {} +class Conditional {} +class Assignment {} +class Literal {} +class Expression {} +class FunctionCall {} +class Command {} +var _default = exports["default"] = { + types: { + Text, + Shortcut, + Conditional, + Assignment, + Literal, + Expression, + FunctionCall, + Command + }, + // /////////////// Dialog Nodes + + DialogShortcutNode: class extends Shortcut { + constructor(text, content, lineNo) { + let hashtags = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; + let conditionalExpression = arguments.length > 4 ? arguments[4] : undefined; + super(); + this.type = 'DialogShortcutNode'; + this.text = text; + this.content = content; + this.lineNum = lineNo.first_line; + this.hashtags = hashtags; + this.conditionalExpression = conditionalExpression; + } + }, + // /////////////// Conditional Nodes + IfNode: class extends Conditional { + constructor(expression, statement) { + super(); + this.type = 'IfNode'; + this.expression = expression; + this.statement = statement; + } + }, + IfElseNode: class extends Conditional { + constructor(expression, statement, elseStatement) { + super(); + this.type = 'IfElseNode'; + this.expression = expression; + this.statement = statement; + this.elseStatement = elseStatement; + } + }, + ElseNode: class extends Conditional { + constructor(statement) { + super(); + this.type = 'ElseNode'; + this.statement = statement; + } + }, + ElseIfNode: class extends Conditional { + constructor(expression, statement, elseStatement) { + super(); + this.type = 'ElseIfNode'; + this.expression = expression; + this.statement = statement; + this.elseStatement = elseStatement; + } + }, + // /////////////// Command Nodes + GenericCommandNode: class extends Command { + constructor(command, lineNo) { + let hashtags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + super(); + this.type = 'GenericCommandNode'; + this.command = command; + this.hashtags = hashtags; + this.lineNum = lineNo.first_line; + } + }, + JumpCommandNode: class extends Command { + constructor(destination) { + super(); + this.type = 'JumpCommandNode'; + this.destination = destination; + } + }, + StopCommandNode: class extends Command { + constructor() { + super(); + this.type = 'StopCommandNode'; + } + }, + // /////////////// Contents Nodes + TextNode: class extends Text { + constructor(text, lineNo) { + let hashtags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + super(); + this.type = 'TextNode'; + this.text = text; + this.lineNum = lineNo.first_line; + this.hashtags = hashtags; + } + }, + EscapedCharacterNode: class extends Text { + constructor(text, lineNo) { + let hashtags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + super(); + this.type = 'EscapedCharacterNode'; + this.text = text; + this.lineNum = lineNo.first_line; + this.hashtags = hashtags; + } + }, + // /////////////// Literal Nodes + NumericLiteralNode: class extends Literal { + constructor(numericLiteral) { + super(); + this.type = 'NumericLiteralNode'; + this.numericLiteral = numericLiteral; + } + }, + StringLiteralNode: class extends Literal { + constructor(stringLiteral) { + super(); + this.type = 'StringLiteralNode'; + this.stringLiteral = stringLiteral; + } + }, + BooleanLiteralNode: class extends Literal { + constructor(booleanLiteral) { + super(); + this.type = 'BooleanLiteralNode'; + this.booleanLiteral = booleanLiteral; + } + }, + VariableNode: class extends Literal { + constructor(variableName) { + super(); + this.type = 'VariableNode'; + this.variableName = variableName; + } + }, + // /////////////// Arithmetic Expression Nodes + UnaryMinusExpressionNode: class extends Expression { + constructor(expression) { + super(); + this.type = 'UnaryMinusExpressionNode'; + this.expression = expression; + } + }, + ArithmeticExpressionAddNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'ArithmeticExpressionAddNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + ArithmeticExpressionMinusNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'ArithmeticExpressionMinusNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + ArithmeticExpressionMultiplyNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'ArithmeticExpressionMultiplyNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + ArithmeticExpressionExponentNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'ArithmeticExpressionExponentNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + ArithmeticExpressionDivideNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'ArithmeticExpressionDivideNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + ArithmeticExpressionModuloNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'ArithmeticExpressionModuloNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + // /////////////// Boolean Expression Nodes + + NegatedBooleanExpressionNode: class extends Expression { + constructor(expression) { + super(); + this.type = 'NegatedBooleanExpressionNode'; + this.expression = expression; + } + }, + BooleanOrExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'BooleanOrExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + BooleanAndExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'BooleanAndExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + BooleanXorExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'BooleanXorExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + EqualToExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'EqualToExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + NotEqualToExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'NotEqualToExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + GreaterThanExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'GreaterThanExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + GreaterThanOrEqualToExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'GreaterThanOrEqualToExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + LessThanExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'LessThanExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + LessThanOrEqualToExpressionNode: class extends Expression { + constructor(expression1, expression2) { + super(); + this.type = 'LessThanOrEqualToExpressionNode'; + this.expression1 = expression1; + this.expression2 = expression2; + } + }, + // /////////////// Assignment Expression Nodes + + SetVariableEqualToNode: class extends Assignment { + constructor(variableName, expression) { + super(); + this.type = 'SetVariableEqualToNode'; + this.variableName = variableName; + this.expression = expression; + } + }, + // /////////////// Function Nodes + + FunctionCallNode: class extends FunctionCall { + constructor(functionName, args, lineNo) { + let hashtags = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; + super(); + this.type = 'FunctionCallNode'; + this.functionName = functionName; + this.args = args; + this.lineNum = lineNo.first_line; + this.hashtags = hashtags; + } + }, + // /////////////// Inline Expression + InlineExpressionNode: class extends Expression { + constructor(expression, lineNo) { + let hashtags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + super(); + this.type = 'InlineExpressionNode'; + this.expression = expression; + this.lineNum = lineNo.first_line; + this.hashtags = hashtags; + } + } +}; +module.exports = exports.default; + +/***/ }), + +/***/ 321: +/***/ ((module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _nodes = _interopRequireDefault(__webpack_require__(33)); +var _lexer = _interopRequireDefault(__webpack_require__(101)); +var _compiledParser = __webpack_require__(293); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +_compiledParser.parser.lexer = new _lexer.default(); +_compiledParser.parser.yy = _nodes.default; +_compiledParser.parser.yy.declarations = {}; +_compiledParser.parser.yy.parseError = function parseError(e) { + throw e; +}; +_compiledParser.parser.yy.registerDeclaration = function registerDeclaration(variableName, expression, explicitType) { + if (!this.areDeclarationsHandled) { + if (this.declarations[variableName]) { + throw new Error(`Duplicate declaration found for variable: ${variableName}`); + } + this.declarations[variableName] = { + variableName, + expression, + explicitType + }; + } +}; +var _default = exports["default"] = _compiledParser.parser; +module.exports = exports.default; + +/***/ }), + +/***/ 528: +/***/ ((module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +class Result {} +class TextResult extends Result { + /** + * Create a text display result + * @param {string} [text] text to be displayed + * @param {string[]} [hashtags] the hashtags for the line + * @param {object} [metadata] the parent yarn data + */ + constructor(text, hashtags, metadata) { + super(); + this.text = text; + this.hashtags = hashtags; + this.metadata = metadata; + } +} +class CommandResult extends Result { + /** + * Return a command string + * @param {string} [command] the command text + * @param {string[]} [hashtags] the hashtags for the line + * @param {object} [metadata] the parent yarn data + */ + constructor(command, hashtags, metadata) { + super(); + this.command = command; + this.hashtags = hashtags; + this.metadata = metadata; + } +} +class OptionResult extends Result { + /** + * Strip down Conditional option for presentation + * @param {string} [text] option text to display + * @param {boolean} [isAvailable] whether option is available + * @param {string[]} [hashtags] the hashtags for the line + * @param {object} [metadata] the parent yarn data + */ + constructor(text) { + let isAvailable = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + let hashtags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + let metadata = arguments.length > 3 ? arguments[3] : undefined; + super(); + this.text = text; + this.isAvailable = isAvailable; + this.hashtags = hashtags; + this.metadata = metadata; + } +} +class OptionsResult extends Result { + /** + * Create a selectable list of options from the given list of text + * @param {Node[]} [options] list of the text of options to be shown + * @param {object} [metadata] the parent yarn data + */ + constructor(options, metadata) { + super(); + this.options = options.map(s => { + return new OptionResult(s.text, s.isAvailable, s.hashtags); + }); + this.metadata = metadata; + } + select() { + let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; + if (index < 0 || index >= this.options.length) { + throw new Error(`Cannot select option #${index}, there are ${this.options.length} options`); + } + this.selected = index; + } +} +var _default = exports["default"] = { + Result, + TextResult, + CommandResult, + OptionsResult +}; +module.exports = exports.default; + +/***/ }), + +/***/ 458: +/***/ ((module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _parser = _interopRequireDefault(__webpack_require__(321)); +var _results = _interopRequireDefault(__webpack_require__(528)); +var _defaultVariableStorage = _interopRequireDefault(__webpack_require__(696)); +var _convertYarnToJs = _interopRequireDefault(__webpack_require__(442)); +var _nodes = _interopRequireDefault(__webpack_require__(33)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +const nodeTypes = _nodes.default.types; +class Runner { + constructor() { + this.noEscape = false; + this.yarnNodes = {}; + this.variables = new _defaultVariableStorage.default(); + this.functions = {}; + this.visited = {}; + this.registerFunction('visited', args => { + return !!this.visited[args[0]]; + }); + } + + /** + * Loads the yarn node data into this.nodes + * @param dialogue {any[]} yarn dialogue as string or array + */ + load(dialogue) { + if (!dialogue) { + throw new Error('No dialogue supplied'); + } + let nodes; + if (typeof dialogue === 'string') { + nodes = (0, _convertYarnToJs.default)(dialogue); + } else { + nodes = dialogue; + } + nodes.forEach(node => { + if (!node.title) { + throw new Error(`Node needs a title: ${JSON.stringify(node)}`); + } else if (node.title.split('.').length > 1) { + throw new Error(`Node title cannot contain a dot: ${node.title}`); + } + if (!node.body) { + throw new Error(`Node needs a body: ${JSON.stringify(node)}`); + } + if (this.yarnNodes[node.title]) { + throw new Error(`Duplicate node title: ${node.title}`); + } + this.yarnNodes[node.title] = node; + }); + _parser.default.yy.areDeclarationsHandled = false; + _parser.default.yy.declarations = {}; + this.handleDeclarations(nodes); + _parser.default.yy.areDeclarationsHandled = true; + } + + /** + * Set a new variable storage object + * This must simply contain a 'get(name)' and 'set(name, value)' function + * + * Calling this function will clear any existing variable's values + */ + setVariableStorage(storage) { + if (typeof storage.set !== 'function' || typeof storage.get !== 'function') { + throw new Error('Variable Storage object must contain both a "set" and "get" function'); + } + this.variables = storage; + } + + /** + * Scans for <> commands and sets initial variable values + * @param {any[]} yarn dialogue as string or array + */ + handleDeclarations(nodes) { + const exampleValues = { + Number: 0, + String: '', + Boolean: false + }; + const allLines = nodes.reduce((acc, node) => { + const nodeLines = node.body.split(/\r?\n+/); + return [...acc, ...nodeLines]; + }, []); + const declareLines = allLines.reduce((acc, line) => { + const match = line.match(/^<>/); + return match ? [...acc, line] : acc; + }, []); + if (declareLines.length) { + _parser.default.parse(declareLines.join('\n')); + } + Object.entries(_parser.default.yy.declarations).forEach(_ref => { + let [variableName, { + expression, + explicitType + }] = _ref; + const value = this.evaluateExpressionOrLiteral(expression); + if (explicitType && typeof value !== typeof exampleValues[explicitType]) { + throw new Error(`Cannot declare value ${value} as type ${explicitType} for variable ${variableName}`); + } + if (!this.variables.get(variableName)) { + this.variables.set(variableName, value); + } + }); + } + registerFunction(name, func) { + if (typeof func !== 'function') { + throw new Error('Registered function must be...well...a function'); + } + this.functions[name] = func; + } + + /** + * Generator to return each sequential dialog result starting from the given node + * @param {string} [startNode] - The name of the yarn node to begin at + */ + *run(startNode) { + let jumpTo = startNode; + while (jumpTo) { + const yarnNode = this.yarnNodes[jumpTo]; + if (yarnNode === undefined) { + throw new Error(`Node "${startNode}" does not exist`); + } + this.visited[startNode] = true; + + // Parse the entire node + const parserNodes = Array.from(_parser.default.parse(yarnNode.body)); + const metadata = { + ...yarnNode + }; + delete metadata.body; + const result = yield* this.evalNodes(parserNodes, metadata); + jumpTo = result && result.jump; + } + } + + /** + * Evaluate a list of parser nodes, yielding the ones that need to be seen by + * the user. Calls itself recursively if that is required by nested nodes + * @param {Node[]} nodes + * @param {YarnNode[]} metadata + */ + *evalNodes(nodes, metadata) { + let shortcutNodes = []; + let textRun = ''; + const filteredNodes = nodes.filter(Boolean); + + // Yield the individual user-visible results + // Need to accumulate all adjacent selectables + // into one list (hence some of the weirdness here) + for (let nodeIdx = 0; nodeIdx < filteredNodes.length; nodeIdx += 1) { + const node = filteredNodes[nodeIdx]; + const nextNode = filteredNodes[nodeIdx + 1]; + + // Text and the output of Inline Expressions + // are combined to deliver a TextNode. + if (node instanceof nodeTypes.Text || node instanceof nodeTypes.Expression) { + textRun += this.evaluateExpressionOrLiteral(node).toString(); + if (nextNode && node.lineNum === nextNode.lineNum && (nextNode instanceof nodeTypes.Text || nextNode instanceof nodeTypes.Expression)) { + // Same line, with another text equivalent to add to the + // text run further on in the loop, so don't yield. + } else { + yield new _results.default.TextResult(textRun, node.hashtags, metadata); + textRun = ''; + } + } else if (node instanceof nodeTypes.Shortcut) { + shortcutNodes.push(node); + if (!(nextNode instanceof nodeTypes.Shortcut)) { + // Last shortcut in the series, so yield the shortcuts. + const result = yield* this.handleShortcuts(shortcutNodes, metadata); + if (result && (result.stop || result.jump)) { + return result; + } + shortcutNodes = []; + } + } else if (node instanceof nodeTypes.Assignment) { + this.evaluateAssignment(node); + } else if (node instanceof nodeTypes.Conditional) { + // Get the results of the conditional + const evalResult = this.evaluateConditional(node); + if (evalResult) { + // Run the remaining results + const result = yield* this.evalNodes(evalResult, metadata); + if (result && (result.stop || result.jump)) { + return result; + } + } + } else if (node instanceof _nodes.default.JumpCommandNode) { + // ignore the rest of this outer loop and + // tell parent loops to ignore following nodes. + // Recursive call here would cause stack overflow + return { + jump: node.destination + }; + } else if (node instanceof _nodes.default.StopCommandNode) { + // ignore the rest of this outer loop and + // tell parent loops to ignore following nodes + return { + stop: true + }; + } else { + const command = this.evaluateExpressionOrLiteral(node.command); + yield new _results.default.CommandResult(command, node.hashtags, metadata); + } + } + return undefined; + } + + /** + * yield a shortcut result then handle the subsequent selection + * @param {any[]} selections + */ + *handleShortcuts(selections, metadata) { + // Multiple options to choose from (or just a single shortcut) + // Tag any conditional dialog options that result to false, + // the consuming app does the actual filtering or whatever + const transformedSelections = selections.map(s => { + let isAvailable = true; + if (s.conditionalExpression && !this.evaluateExpressionOrLiteral(s.conditionalExpression)) { + isAvailable = false; + } + const text = this.evaluateExpressionOrLiteral(s.text); + return Object.assign(s, { + isAvailable, + text + }); + }); + const optionsResult = new _results.default.OptionsResult(transformedSelections, metadata); + yield optionsResult; + if (typeof optionsResult.selected === 'number') { + const selectedOption = transformedSelections[optionsResult.selected]; + if (selectedOption.content) { + // Recursively go through the nodes nested within + return yield* this.evalNodes(selectedOption.content, metadata); + } + } else { + throw new Error('No option selected before resuming dialogue'); + } + return undefined; + } + + /** + * Evaluates the given assignment node + */ + evaluateAssignment(node) { + const result = this.evaluateExpressionOrLiteral(node.expression); + const oldValue = this.variables.get(node.variableName); + if (oldValue && typeof oldValue !== typeof result) { + throw new Error(`Variable ${node.variableName} is already type ${typeof oldValue}; cannot set equal to ${result} of type ${typeof result}`); + } + this.variables.set(node.variableName, result); + } + + /** + * Evaluates the given conditional node + * Returns the statements to be run as a result of it (if any) + */ + evaluateConditional(node) { + if (node.type === 'IfNode') { + if (this.evaluateExpressionOrLiteral(node.expression)) { + return node.statement; + } + } else if (node.type === 'IfElseNode' || node.type === 'ElseIfNode') { + if (this.evaluateExpressionOrLiteral(node.expression)) { + return node.statement; + } + if (node.elseStatement) { + return this.evaluateConditional(node.elseStatement); + } + } else { + // ElseNode + return node.statement; + } + return null; + } + evaluateFunctionCall(node) { + if (this.functions[node.functionName]) { + return this.functions[node.functionName](...node.args.map(this.evaluateExpressionOrLiteral, this)); + } + throw new Error(`Function "${node.functionName}" not found`); + } + + /** + * Evaluates an expression or literal down to its final value + */ + evaluateExpressionOrLiteral(node) { + // A combined array of text and inline expressions to be treated as one. + // Could probably be cleaned up by introducing a new node type. + if (Array.isArray(node)) { + return node.reduce((acc, n) => { + return acc + this.evaluateExpressionOrLiteral(n).toString(); + }, ''); + } + const nodeHandlers = { + UnaryMinusExpressionNode: a => { + return -a; + }, + ArithmeticExpressionAddNode: (a, b) => { + return a + b; + }, + ArithmeticExpressionMinusNode: (a, b) => { + return a - b; + }, + ArithmeticExpressionExponentNode: (a, b) => { + return a ** b; + }, + ArithmeticExpressionMultiplyNode: (a, b) => { + return a * b; + }, + ArithmeticExpressionDivideNode: (a, b) => { + return a / b; + }, + ArithmeticExpressionModuloNode: (a, b) => { + return a % b; + }, + NegatedBooleanExpressionNode: a => { + return !a; + }, + BooleanOrExpressionNode: (a, b) => { + return a || b; + }, + BooleanAndExpressionNode: (a, b) => { + return a && b; + }, + BooleanXorExpressionNode: (a, b) => { + return !!(a ^ b); + }, + // eslint-disable-line no-bitwise + EqualToExpressionNode: (a, b) => { + return a === b; + }, + NotEqualToExpressionNode: (a, b) => { + return a !== b; + }, + GreaterThanExpressionNode: (a, b) => { + return a > b; + }, + GreaterThanOrEqualToExpressionNode: (a, b) => { + return a >= b; + }, + LessThanExpressionNode: (a, b) => { + return a < b; + }, + LessThanOrEqualToExpressionNode: (a, b) => { + return a <= b; + }, + TextNode: a => { + return a.text; + }, + EscapedCharacterNode: a => { + return this.noEscape ? a.text : a.text.slice(1); + }, + NumericLiteralNode: a => { + return parseFloat(a.numericLiteral); + }, + StringLiteralNode: a => { + return `${a.stringLiteral}`; + }, + BooleanLiteralNode: a => { + return a.booleanLiteral === 'true'; + }, + VariableNode: a => { + return this.variables.get(a.variableName); + }, + FunctionCallNode: a => { + return this.evaluateFunctionCall(a); + }, + InlineExpressionNode: a => { + return a; + } + }; + const handler = nodeHandlers[node.type]; + if (!handler) { + throw new Error(`node type not recognized: ${node.type}`); + } + return handler(node instanceof nodeTypes.Expression ? this.evaluateExpressionOrLiteral(node.expression || node.expression1) : node, node.expression2 ? this.evaluateExpressionOrLiteral(node.expression2) : node); + } +} +var _default = exports["default"] = { + Runner, + TextResult: _results.default.TextResult, + CommandResult: _results.default.CommandResult, + OptionsResult: _results.default.OptionsResult +}; +module.exports = exports.default; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module is referenced by other modules so it can't be inlined +/******/ var __webpack_exports__ = __webpack_require__(954); +/******/ +/******/ return __webpack_exports__; +/******/ })() +; +}); \ No newline at end of file diff --git a/Extensions/DialogueTree/bondage.js/dist/bondage.min.js b/Extensions/DialogueTree/bondage.js/dist/bondage.min.js index 2f4450a3b65c..71eea40c31b9 100644 --- a/Extensions/DialogueTree/bondage.js/dist/bondage.min.js +++ b/Extensions/DialogueTree/bondage.js/dist/bondage.min.js @@ -1,11 +1 @@ -var bondage=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){n(1),e.exports=n(326)},function(e,t,n){(function(e){"use strict";function t(e,t,n){e[t]||Object[r](e,t,{writable:!0,configurable:!0,value:n})}if(n(2),n(322),n(323),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var r="defineProperty";t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&t(Array,e,Function.call.bind([][e]))})}).call(t,function(){return this}())},function(e,t,n){n(3),n(51),n(52),n(53),n(54),n(56),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(69),n(71),n(73),n(75),n(78),n(79),n(80),n(84),n(86),n(88),n(91),n(92),n(93),n(94),n(96),n(97),n(98),n(99),n(100),n(101),n(102),n(104),n(105),n(106),n(108),n(109),n(110),n(112),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(131),n(132),n(136),n(137),n(138),n(139),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(157),n(158),n(160),n(161),n(167),n(168),n(170),n(171),n(172),n(176),n(177),n(178),n(179),n(180),n(182),n(183),n(184),n(185),n(188),n(190),n(191),n(192),n(194),n(196),n(198),n(199),n(200),n(202),n(203),n(204),n(205),n(215),n(219),n(220),n(222),n(223),n(227),n(228),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(250),n(251),n(252),n(253),n(254),n(256),n(257),n(258),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(269),n(270),n(272),n(273),n(274),n(275),n(278),n(279),n(281),n(282),n(283),n(284),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),e.exports=n(9)},function(e,t,n){"use strict";var r=n(4),i=n(5),o=n(6),s=n(8),a=n(18),c=n(22).KEY,u=n(7),l=n(23),h=n(24),f=n(19),p=n(25),d=n(26),y=n(27),m=n(29),g=n(44),v=n(12),x=n(32),b=n(16),_=n(17),S=n(45),w=n(48),E=n(50),k=n(11),A=n(30),C=E.f,O=k.f,I=w.f,N=r.Symbol,L=r.JSON,T=L&&L.stringify,P="prototype",$=p("_hidden"),M=p("toPrimitive"),j={}.propertyIsEnumerable,R=l("symbol-registry"),F=l("symbols"),D=l("op-symbols"),B=Object[P],G="function"==typeof N,q=r.QObject,U=!q||!q[P]||!q[P].findChild,z=o&&u(function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=C(B,t);r&&delete B[t],O(e,t,n),r&&e!==B&&O(B,t,r)}:O,V=function(e){var t=F[e]=S(N[P]);return t._k=e,t},W=G&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},J=function(e,t,n){return e===B&&J(D,t,n),v(e),t=b(t,!0),v(n),i(F,t)?(n.enumerable?(i(e,$)&&e[$][t]&&(e[$][t]=!1),n=S(n,{enumerable:_(0,!1)})):(i(e,$)||O(e,$,_(1,{})),e[$][t]=!0),z(e,t,n)):O(e,t,n)},Y=function(e,t){v(e);for(var n,r=m(t=x(t)),i=0,o=r.length;o>i;)J(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?S(e):Y(S(e),t)},H=function(e){var t=j.call(this,e=b(e,!0));return!(this===B&&i(F,e)&&!i(D,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,$)&&this[$][e])||t)},K=function(e,t){if(e=x(e),t=b(t,!0),e!==B||!i(F,t)||i(D,t)){var n=C(e,t);return!n||!i(F,t)||i(e,$)&&e[$][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=I(x(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])||t==$||t==c||r.push(t);return r},Q=function(e){for(var t,n=e===B,r=I(n?D:x(e)),o=[],s=0;r.length>s;)!i(F,t=r[s++])||n&&!i(B,t)||o.push(F[t]);return o};G||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(D,n),i(this,$)&&i(this[$],e)&&(this[$][e]=!1),z(this,e,_(1,n))};return o&&U&&z(B,e,{configurable:!0,set:t}),V(e)},a(N[P],"toString",function(){return this._k}),E.f=K,k.f=J,n(49).f=w.f=X,n(43).f=H,n(42).f=Q,o&&!n(28)&&a(B,"propertyIsEnumerable",H,!0),d.f=function(e){return V(p(e))}),s(s.G+s.W+s.F*!G,{Symbol:N});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)p(ee[te++]);for(var ne=A(p.store),re=0;ne.length>re;)y(ne[re++]);s(s.S+s.F*!G,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=N(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),s(s.S+s.F*!G,"Object",{create:Z,defineProperty:J,defineProperties:Y,getOwnPropertyDescriptor:K,getOwnPropertyNames:X,getOwnPropertySymbols:Q}),L&&s(s.S+s.F*(!G||u(function(){var e=N();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!W(e)){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return t=r[1],"function"==typeof t&&(n=t),!n&&g(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,T.apply(L,r)}}}),N[P][M]||n(10)(N[P],M,N[P].valueOf),h(N,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(4),i=n(9),o=n(10),s=n(18),a=n(20),c="prototype",u=function(e,t,n){var l,h,f,p,d=e&u.F,y=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,x=y?r:m?r[t]||(r[t]={}):(r[t]||{})[c],b=y?i:i[t]||(i[t]={}),_=b[c]||(b[c]={});y&&(n=t);for(l in n)h=!d&&x&&void 0!==x[l],f=(h?x:n)[l],p=v&&h?a(f,r):g&&"function"==typeof f?a(Function.call,f):f,x&&s(x,l,f,e&u.U),b[l]!=f&&o(b,l,p),g&&_[l]!=f&&(_[l]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(11),i=n(17);e.exports=n(6)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(12),i=n(14),o=n(16),s=Object.defineProperty;t.f=n(6)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(6)&&!n(7)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(13),i=n(4).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(4),i=n(10),o=n(5),s=n(19)("src"),a="toString",c=Function[a],u=(""+c).split(a);n(9).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||c.call(this)})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(21);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(19)("meta"),i=n(13),o=n(5),s=n(11).f,a=0,c=Object.isExtensible||function(){return!0},u=!n(7)(function(){return c(Object.preventExtensions({}))}),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},p=function(e){return u&&d.NEED&&c(e)&&!o(e,r)&&l(e),e},d=e.exports={KEY:r,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},function(e,t,n){var r=n(4),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(11).f,i=n(5),o=n(25)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(23)("wks"),i=n(19),o=n(4).Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},function(e,t,n){t.f=n(25)},function(e,t,n){var r=n(4),i=n(9),o=n(28),s=n(26),a=n(11).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t){e.exports=!1},function(e,t,n){var r=n(30),i=n(42),o=n(43);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var s,a=n(e),c=o.f,u=0;a.length>u;)c.call(e,s=a[u++])&&t.push(s);return t}},function(e,t,n){var r=n(31),i=n(41);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(5),i=n(32),o=n(36)(!1),s=n(40)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(33),i=n(35);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(32),i=n(37),o=n(39);e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){for(;u>l;)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(38),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(38),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(23)("keys"),i=n(19);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(12),i=n(46),o=n(41),s=n(40)("IE_PROTO"),a=function(){},c="prototype",u=function(){var e,t=n(15)("iframe"),r=o.length,i="<",s=">";for(t.style.display="none",n(47).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),u=e.F;r--;)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=r(e),n=new a,a[c]=null,n[s]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(11),i=n(12),o=n(30);e.exports=n(6)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,c=0;a>c;)r.f(e,n=s[c++],t[n]);return e}},function(e,t,n){var r=n(4).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(32),i=n(49).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},function(e,t,n){var r=n(31),i=n(41).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(43),i=n(17),o=n(32),s=n(16),a=n(5),c=n(14),u=Object.getOwnPropertyDescriptor;t.f=n(6)?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(8);r(r.S,"Object",{create:n(45)})},function(e,t,n){var r=n(8);r(r.S+r.F*!n(6),"Object",{defineProperty:n(11).f})},function(e,t,n){var r=n(8);r(r.S+r.F*!n(6),"Object",{defineProperties:n(46)})},function(e,t,n){var r=n(32),i=n(50).f;n(55)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(8),i=n(9),o=n(7);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(e,t,n){var r=n(57),i=n(58);n(55)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(35);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(5),i=n(57),o=n(40)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(57),i=n(30);n(55)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(55)("getOwnPropertyNames",function(){return n(48).f})},function(e,t,n){var r=n(13),i=n(22).onFreeze;n(55)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(13),i=n(22).onFreeze;n(55)("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(13),i=n(22).onFreeze;n(55)("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(13);n(55)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(13);n(55)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(13);n(55)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(68)})},function(e,t,n){"use strict";var r=n(30),i=n(42),o=n(43),s=n(57),a=n(33),c=Object.assign;e.exports=!c||n(7)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,l=i.f,h=o.f;c>u;)for(var f,p=a(arguments[u++]),d=l?r(p).concat(l(p)):r(p),y=d.length,m=0;y>m;)h.call(p,f=d[m++])&&(n[f]=p[f]);return n}:c},function(e,t,n){var r=n(8);r(r.S,"Object",{is:n(70)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,n){var r=n(8);r(r.S,"Object",{setPrototypeOf:n(72).set})},function(e,t,n){var r=n(13),i=n(12),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(20)(Function.call,n(50).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(74),i={};i[n(25)("toStringTag")]="z",i+""!="[object z]"&&n(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(34),i=n(25)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(8);r(r.P,"Function",{bind:n(76)})},function(e,t,n){"use strict";var r=n(21),i=n(13),o=n(77),s=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i>>0||(s.test(n)?16:10))}:r},function(e,t,n){var r=n(8),i=n(35),o=n(7),s=n(83),a="["+s+"]",c="​…",u=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),h=function(e,t,n){var i={},a=o(function(){return!!s[e]()||c[e]()!=c}),u=i[e]=a?t(f):s[e];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},f=h.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=h},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r=n(8),i=n(85);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var r=n(4).parseFloat,i=n(82).trim;e.exports=1/r(n(83)+"-0")!==-(1/0)?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){"use strict";var r=n(4),i=n(5),o=n(34),s=n(87),a=n(16),c=n(7),u=n(49).f,l=n(50).f,h=n(11).f,f=n(82).trim,p="Number",d=r[p],y=d,m=d.prototype,g=o(n(45)(m))==p,v="trim"in String.prototype,x=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){t=v?t.trim():f(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var s,c=t.slice(2),u=0,l=c.length;ui)return NaN;return parseInt(c,r)}}return+t};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof d&&(g?c(function(){m.valueOf.call(n)}):o(n)!=p)?s(new y(x(t)),n,d):x(t)};for(var b,_=n(6)?u(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;_.length>S;S++)i(y,b=_[S])&&!i(d,b)&&h(d,b,l(y,b));d.prototype=m,m.constructor=d,n(18)(r,p,d)}},function(e,t,n){var r=n(13),i=n(72).set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){"use strict";var r=n(8),i=n(38),o=n(89),s=n(90),a=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",h="0",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*u[n],u[n]=r%1e7,r=c(r/1e7)},p=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=c(n/e),n=n%e*1e7},d=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+s.call(h,7-n.length)+n}return t},y=function(e,t,n){return 0===t?n:t%2===1?y(e,t-1,n*e):y(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(7)(function(){a.call({})})),"Number",{toFixed:function(e){var t,n,r,a,c=o(this,l),u=i(e),g="",v=h;if(u<0||u>20)throw RangeError(l);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(g="-",c=-c),c>1e-21)if(t=m(c*y(2,69,1))-69,n=t<0?c*y(2,-t,1):c/y(2,t,1),n*=4503599627370496,t=52-t,t>0){for(f(0,n),r=u;r>=7;)f(1e7,0),r-=7;for(f(y(10,r,1),0),r=t-1;r>=23;)p(1<<23),r-=23;p(1<0?(a=v.length,v=g+(a<=u?"0."+s.call(h,u-a)+v:v.slice(0,a-u)+"."+v.slice(a-u))):v=g+v,v}})},function(e,t,n){var r=n(34);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(38),i=n(35);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(8),i=n(7),o=n(89),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},function(e,t,n){var r=n(8);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(8),i=n(4).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(8);r(r.S,"Number",{isInteger:n(95)})},function(e,t,n){var r=n(13),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(8);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(8),i=n(95),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(8);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(8);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(8),i=n(85);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(8),i=n(81);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(8),i=n(103),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=n(8),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(8),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(8),i=n(107);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(8);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(8),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(8),i=n(111);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(8);r(r.S,"Math",{fround:n(113)})},function(e,t,n){var r=n(107),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),c=i(2,-126),u=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return ia||n!=n?l*(1/0):l*n)}},function(e,t,n){var r=n(8),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,s=0,a=arguments.length,c=0;s0?(r=n/c,o+=r*r):o+=n;return c===1/0?1/0:c*Math.sqrt(o)}})},function(e,t,n){var r=n(8),i=Math.imul;r(r.S+r.F*n(7)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,s=n&i;return 0|o*s+((n&r>>>16)*s+o*(n&i>>>16)<<16>>>0)}})},function(e,t,n){var r=n(8);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(8);r(r.S,"Math",{log1p:n(103)})},function(e,t,n){var r=n(8);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(8);r(r.S,"Math",{sign:n(107)})},function(e,t,n){var r=n(8),i=n(111),o=Math.exp;r(r.S+r.F*n(7)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(8),i=n(111),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(8);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(8),i=n(39),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,s=0;r>s;){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(8),i=n(32),o=n(37);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(t[a++])),a=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(38),i=n(35);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):(o-55296<<10)+(s-56320)+65536)}}},function(e,t,n){"use strict";var r=n(28),i=n(8),o=n(18),s=n(10),a=n(5),c=n(129),u=n(130),l=n(24),h=n(58),f=n(25)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",y="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,x,b,_){u(n,t,v);var S,w,E,k=function(e){if(!p&&e in I)return I[e];switch(e){case y:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",C=x==m,O=!1,I=e.prototype,N=I[f]||I[d]||x&&I[x],L=N||k(x),T=x?C?k("entries"):L:void 0,P="Array"==t?I.entries||N:N;if(P&&(E=h(P.call(new e)),E!==Object.prototype&&E.next&&(l(E,A,!0),r||a(E,f)||s(E,f,g))),C&&N&&N.name!==m&&(O=!0,L=function(){return N.call(this)}),r&&!_||!p&&!O&&I[f]||s(I,f,L),c[t]=L,c[A]=g,x)if(S={values:C?L:k(m),keys:b?L:k(y),entries:T},_)for(w in S)w in I||o(I,w,S[w]);else i(i.P+i.F*(p||O),t,S);return S}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(45),i=n(17),o=n(24),s={};n(10)(s,n(25)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(8),i=n(127)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(8),i=n(37),o=n(133),s="endsWith",a=""[s];r(r.P+r.F*n(135)(s),"String",{endsWith:function(e){var t=o(this,e,s),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),c=void 0===n?r:Math.min(i(n),r),u=String(e);return a?a.call(t,u,c):t.slice(c-u.length,c)===u}})},function(e,t,n){var r=n(134),i=n(35);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(13),i=n(34),o=n(25)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(25)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var r=n(8),i=n(133),o="includes";r(r.P+r.F*n(135)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(8);r(r.P,"String",{repeat:n(90)})},function(e,t,n){"use strict";var r=n(8),i=n(37),o=n(133),s="startsWith",a=""[s];r(r.P+r.F*n(135)(s),"String",{startsWith:function(e){var t=o(this,e,s),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(140)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){var r=n(8),i=n(7),o=n(35),s=/"/g,a=function(e,t,n,r){var i=String(o(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+""};e.exports=function(e,t){var n={};n[e]=t(a),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";n(140)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(140)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(140)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(140)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(140)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(140)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(140)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(140)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(140)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(140)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(140)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(140)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var r=n(8);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(8),i=n(57),o=n(16);r(r.P+r.F*n(7)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(8),i=n(156);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){"use strict";var r=n(7),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":""; -return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],a=r.getTime;new Date(NaN)+""!=i&&n(18)(r,o,function(){var e=a.call(this);return e===e?s.call(this):i})},function(e,t,n){var r=n(25)("toPrimitive"),i=Date.prototype;r in i||n(10)(i,r,n(159))},function(e,t,n){"use strict";var r=n(12),i=n(16),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},function(e,t,n){var r=n(8);r(r.S,"Array",{isArray:n(44)})},function(e,t,n){"use strict";var r=n(20),i=n(8),o=n(57),s=n(162),a=n(163),c=n(37),u=n(164),l=n(165);i(i.S+i.F*!n(166)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,h,f=o(e),p="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,m=void 0!==y,g=0,v=l(f);if(m&&(y=r(y,d>2?arguments[2]:void 0,2)),void 0==v||p==Array&&a(v))for(t=c(f.length),n=new p(t);t>g;g++)u(n,g,m?y(f[g],g):f[g]);else for(h=v.call(f),n=new p;!(i=h.next()).done;g++)u(n,g,m?s(h,y,[i.value,g],!0):i.value);return n.length=g,n}})},function(e,t,n){var r=n(12);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(129),i=n(25)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(11),i=n(17);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(74),i=n(25)("iterator"),o=n(129);e.exports=n(9).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(25)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(8),i=n(164);r(r.S+r.F*n(7)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(8),i=n(32),o=[].join;r(r.P+r.F*(n(33)!=Object||!n(169)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";var r=n(8),i=n(47),o=n(34),s=n(39),a=n(37),c=[].slice;r(r.P+r.F*n(7)(function(){i&&c.call(i)}),"Array",{slice:function(e,t){var n=a(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=s(e,n),u=s(t,n),l=a(u-i),h=Array(l),f=0;f_;_++)if((f||_ in v)&&(y=v[_],m=x(y,_,g),e))if(n)S[_]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:S.push(y)}else if(l)return!1;return h?-1:u||l?l:S}}},function(e,t,n){var r=n(175);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(13),i=n(44),o=n(25)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(8),i=n(173)(1);r(r.P+r.F*!n(169)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(8),i=n(173)(2);r(r.P+r.F*!n(169)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(8),i=n(173)(3);r(r.P+r.F*!n(169)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(8),i=n(173)(4);r(r.P+r.F*!n(169)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(8),i=n(181);r(r.P+r.F*!n(169)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){var r=n(21),i=n(57),o=n(33),s=n(37);e.exports=function(e,t,n,a,c){r(t);var u=i(e),l=o(u),h=s(u.length),f=c?h-1:0,p=c?-1:1;if(n<2)for(;;){if(f in l){a=l[f],f+=p;break}if(f+=p,c?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:h>f;f+=p)f in l&&(a=t(a,l[f],f,u));return a}},function(e,t,n){"use strict";var r=n(8),i=n(181);r(r.P+r.F*!n(169)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(8),i=n(36)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(169)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(8),i=n(32),o=n(38),s=n(37),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n(169)(a)),"Array",{lastIndexOf:function(e){if(c)return a.apply(this,arguments)||0;var t=i(this),n=s(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(8);r(r.P,"Array",{copyWithin:n(186)}),n(187)("copyWithin")},function(e,t,n){"use strict";var r=n(57),i=n(39),o=n(37);e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),a=i(e,s),c=i(t,s),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?s:i(u,s))-c,s-a),h=1;for(c0;)c in n?n[a]=n[c]:delete n[a],a+=h,c+=h;return n}},function(e,t,n){var r=n(25)("unscopables"),i=Array.prototype;void 0==i[r]&&n(10)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(8);r(r.P,"Array",{fill:n(189)}),n(187)("fill")},function(e,t,n){"use strict";var r=n(57),i=n(39),o=n(37);e.exports=function(e){for(var t=r(this),n=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);u>a;)t[a++]=e;return t}},function(e,t,n){"use strict";var r=n(8),i=n(173)(5),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(187)(o)},function(e,t,n){"use strict";var r=n(8),i=n(173)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(187)(o)},function(e,t,n){n(193)("Array")},function(e,t,n){"use strict";var r=n(4),i=n(11),o=n(6),s=n(25)("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(187),i=n(195),o=n(129),s=n(32);e.exports=n(128)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(4),i=n(87),o=n(11).f,s=n(49).f,a=n(134),c=n(197),u=r.RegExp,l=u,h=u.prototype,f=/a/g,p=/a/g,d=new u(f)!==f;if(n(6)&&(!d||n(7)(function(){return p[n(25)("match")]=!1,u(f)!=f||u(p)==p||"/a/i"!=u(f,"i")}))){u=function(e,t){var n=this instanceof u,r=a(e),o=void 0===t;return!n&&r&&e.constructor===u&&o?e:i(d?new l(r&&!o?e.source:e,t):l((r=e instanceof u)?e.source:e,r&&o?c.call(e):t),n?this:h,u)};for(var y=(function(e){e in u||o(u,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})}),m=s(l),g=0;m.length>g;)y(m[g++]);h.constructor=u,u.prototype=h,n(18)(r,"RegExp",u)}n(193)("RegExp")},function(e,t,n){"use strict";var r=n(12);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";n(199);var r=n(12),i=n(197),o=n(6),s="toString",a=/./[s],c=function(e){n(18)(RegExp.prototype,s,e,!0)};n(7)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):a.name!=s&&c(function(){return a.call(this)})},function(e,t,n){n(6)&&"g"!=/./g.flags&&n(11).f(RegExp.prototype,"flags",{configurable:!0,get:n(197)})},function(e,t,n){n(201)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){"use strict";var r=n(10),i=n(18),o=n(7),s=n(35),a=n(25);e.exports=function(e,t,n){var c=a(e),u=n(s,c,""[e]),l=u[0],h=u[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,c,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,n){n(201)("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(e,t,n){n(201)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(201)("split",2,function(e,t,r){"use strict";var i=n(134),o=r,s=[].push,a="split",c="length",u="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[c]||2!="ab"[a](/(?:ab)*/)[c]||4!="."[a](/(.?)(.?)/)[c]||"."[a](/()()/)[c]>1||""[a](/.?/)[c]){var l=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,a,h,f,p,d=[],y=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?4294967295:t>>>0,v=new RegExp(e.source,y+"g");for(l||(r=new RegExp("^"+v.source+"$(?!\\s)",y));(a=v.exec(n))&&(h=a.index+a[0][c],!(h>m&&(d.push(n.slice(m,a.index)),!l&&a[c]>1&&a[0].replace(r,function(){for(p=1;p1&&a.index=g)));)v[u]===a.index&&v[u]++;return m===n[c]?!f&&v.test("")||d.push(""):d.push(n.slice(m)),d[c]>g?d.slice(0,g):d}}else"0"[a](void 0,0)[c]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(e,t,n){"use strict";var r,i,o,s,a=n(28),c=n(4),u=n(20),l=n(74),h=n(8),f=n(13),p=n(21),d=n(206),y=n(207),m=n(208),g=n(209).set,v=n(210)(),x=n(211),b=n(212),_=n(213),S="Promise",w=c.TypeError,E=c.process,k=c[S],A="process"==l(E),C=function(){},O=i=x.f,I=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(25)("species")]=function(e){e(C,C)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t}catch(e){}}(),N=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},L=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var r=e._v,i=1==e._s,o=0,s=function(t){var n,o,s=i?t.ok:t.fail,a=t.resolve,c=t.reject,u=t.domain;try{s?(i||(2==e._h&&$(e),e._h=1),s===!0?n=r:(u&&u.enter(),n=s(r),u&&u.exit()),n===t.promise?c(w("Promise-chain cycle")):(o=N(n))?o.call(n,a,c):a(n)):c(r)}catch(e){c(e)}};n.length>o;)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&T(e)})}},T=function(e){g.call(c,function(){var t,n,r,i=e._v,o=P(e);if(o&&(t=b(function(){A?E.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=A||P(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},P=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if(t=n[r++],t.fail||!P(t.promise))return!1;return!0},$=function(e){g.call(c,function(){var t;A?E.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},M=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw w("Promise can't be resolved itself");(t=N(e))?v(function(){var r={_w:n,_d:!1};try{t.call(e,u(j,r,1),u(M,r,1))}catch(e){M.call(r,e)}}):(n._v=e,n._s=1,L(n,!1))}catch(e){M.call({_w:n,_d:!1},e)}}};I||(k=function(e){d(this,k,S,"_h"),p(e),r.call(this);try{e(u(j,this,1),u(M,this,1))}catch(e){M.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(214)(k.prototype,{then:function(e,t){var n=O(m(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(j,e,1),this.reject=u(M,e,1)},x.f=O=function(e){return e===k||e===s?new o(e):i(e)}),h(h.G+h.W+h.F*!I,{Promise:k}),n(24)(k,S),n(193)(S),s=n(9)[S],h(h.S+h.F*!I,S,{reject:function(e){var t=O(this),n=t.reject;return n(e),t.promise}}),h(h.S+h.F*(a||!I),S,{resolve:function(e){return _(a&&this===s?k:this,e)}}),h(h.S+h.F*!(I&&n(166)(function(e){k.all(e).catch(C)})),S,{all:function(e){var t=this,n=O(t),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,s=1;y(e,!1,function(e){var a=o++,c=!1;n.push(void 0),s++,t.resolve(e).then(function(e){c||(c=!0,n[a]=e,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=O(t),r=n.reject,i=b(function(){y(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(20),i=n(162),o=n(163),s=n(12),a=n(37),c=n(165),u={},l={},t=e.exports=function(e,t,n,h,f){var p,d,y,m,g=f?function(){return e}:c(e),v=r(n,h,t?2:1),x=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(p=a(e.length);p>x;x++)if(m=t?v(s(d=e[x])[0],d[1]):v(e[x]),m===u||m===l)return m}else for(y=g.call(e);!(d=y.next()).done;)if(m=i(y,v,d.value,t),m===u||m===l)return m};t.BREAK=u,t.RETURN=l},function(e,t,n){var r=n(12),i=n(21),o=n(25)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},function(e,t,n){var r,i,o,s=n(20),a=n(77),c=n(47),u=n(15),l=n(4),h=l.process,f=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,y=l.Dispatch,m=0,g={},v="onreadystatechange",x=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){x.call(e.data)};f&&p||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){a("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete g[e]},"process"==n(34)(h)?r=function(e){h.nextTick(s(x,e,1))}:y&&y.now?r=function(e){y.now(s(x,e,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=b,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r=v in u("script")?function(e){c.appendChild(u("script"))[v]=function(){c.removeChild(this),x.call(e)}}:function(e){setTimeout(s(x,e,1),0)}),e.exports={set:f,clear:p}},function(e,t,n){var r=n(4),i=n(209).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(34)(s);e.exports=function(){var e,t,n,u=function(){var r,i;for(c&&(r=s.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(o){var l=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}else if(a&&a.resolve){var f=a.resolve();n=function(){f.then(u)}}else n=function(){i.call(r,u)};return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=i(t),this.reject=i(n)}var i=n(21);e.exports.f=function(e){return new r(e)}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(12),i=n(13),o=n(211);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},function(e,t,n){var r=n(18);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(216),i=n(217),o="Map";e.exports=n(218)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(11).f,i=n(45),o=n(214),s=n(20),a=n(206),c=n(207),u=n(128),l=n(195),h=n(193),f=n(6),p=n(22).fastKey,d=n(217),y=f?"_s":"size",m=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[y]=0,void 0!=r&&c(r,n,e[u],e)});return o(l.prototype,{clear:function(){for(var e=d(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[y]=0},delete:function(e){var n=d(this,t),r=m(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[y]--}return!!r},forEach:function(e){d(this,t);for(var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(d(this,t),e)}}),f&&r(l.prototype,"size",{get:function(){return d(this,t)[y]}}),l},def:function(e,t,n){var r,i,o=m(e,t);return o?o.v=n:(e._l=o={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[y]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=d(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(4),i=n(8),o=n(18),s=n(214),a=n(22),c=n(207),u=n(206),l=n(13),h=n(7),f=n(166),p=n(24),d=n(87);e.exports=function(e,t,n,y,m,g){var v=r[e],x=v,b=m?"set":"add",_=x&&x.prototype,S={},w=function(e){var t=_[e];o(_,e,"delete"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof x&&(g||_.forEach&&!h(function(){(new x).entries().next()}))){var E=new x,k=E[b](g?{}:-0,1)!=E,A=h(function(){E.has(1)}),C=f(function(e){new x(e)}),O=!g&&h(function(){for(var e=new x,t=5;t--;)e[b](t,t);return!e.has(-0)});C||(x=t(function(t,n){u(t,x,e);var r=d(new v,t,x);return void 0!=n&&c(n,m,r[b],r),r}),x.prototype=_,_.constructor=x),(A||O)&&(w("delete"),w("has"),m&&w("get")),(O||k)&&w(b),g&&_.clear&&delete _.clear}else x=y.getConstructor(t,e,m,b),s(x.prototype,n),a.NEED=!0;return p(x,e),S[e]=x,i(i.G+i.W+i.F*(x!=v),S),g||y.setStrong(x,e,m),x}},function(e,t,n){"use strict";var r=n(216),i=n(217),o="Set";e.exports=n(218)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,i=n(173)(0),o=n(18),s=n(22),a=n(68),c=n(221),u=n(13),l=n(7),h=n(217),f="WeakMap",p=s.getWeak,d=Object.isExtensible,y=c.ufstore,m={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(u(e)){var t=p(e);return t===!0?y(h(this,f)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(h(this,f),e,t)}},x=e.exports=n(218)(f,g,v,c,!0,!0);l(function(){return 7!=(new x).set((Object.freeze||Object)(m),7).get(m)})&&(r=c.getConstructor(g,f),a(r.prototype,v),s.NEED=!0,i(["delete","has","get","set"],function(e){var t=x.prototype,n=t[e];o(t,e,function(t,i){if(u(t)&&!d(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},function(e,t,n){"use strict";var r=n(214),i=n(22).getWeak,o=n(12),s=n(13),a=n(206),c=n(207),u=n(173),l=n(5),h=n(217),f=u(5),p=u(6),d=0,y=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},g=function(e,t){return f(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var u=e(function(e,r){a(e,u,t,"_i"),e._t=t,e._i=d++,e._l=void 0,void 0!=r&&c(r,n,e[o],e)});return r(u.prototype,{delete:function(e){if(!s(e))return!1;var n=i(e);return n===!0?y(h(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!s(e))return!1;var n=i(e);return n===!0?y(h(this,t)).has(e):n&&l(n,this._i)}}),u},def:function(e,t,n){var r=i(o(t),!0);return r===!0?y(e).set(t,n):r[e._i]=n,e},ufstore:y}},function(e,t,n){"use strict";var r=n(221),i=n(217),o="WeakSet";n(218)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(8),i=n(224),o=n(225),s=n(12),a=n(39),c=n(37),u=n(13),l=n(4).ArrayBuffer,h=n(208),f=o.ArrayBuffer,p=o.DataView,d=i.ABV&&l.isView,y=f.prototype.slice,m=i.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(l!==f),{ArrayBuffer:f}),r(r.S+r.F*!i.CONSTR,g,{isView:function(e){return d&&d(e)||u(e)&&m in e}}),r(r.P+r.U+r.F*n(7)(function(){return!new f(2).slice(1,void 0).byteLength}),g,{slice:function(e,t){if(void 0!==y&&void 0===t)return y.call(s(this),e);for(var n=s(this).byteLength,r=a(e,n),i=a(void 0===t?n:t,n),o=new(h(this,f))(c(i-r)),u=new p(this),l=new p(o),d=0;r>1,l=23===t?G(2,-24)-G(2,-77):0,h=0,f=e<0||0===e&&1/e<0?1:0;for(e=B(e),e!=e||e===F?(i=e!=e?1:0,r=c):(r=q(U(e)/z),e*(o=G(2,-r))<1&&(r--,o*=2),e+=r+u>=1?l/o:l*G(2,1-u),e*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*G(2,t),r+=u):(i=e*G(2,u-1)*G(2,t),r=0));t>=8;s[h++]=255&i,i/=256,t-=8);for(r=r<0;s[h++]=255&r,r/=256,a-=8);return s[--h]|=128*f,s}function i(e,t,n){var r,i=8*n-t-1,o=(1<>1,a=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;a>0;l=256*l+e[c],c--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;r=256*r+e[c],c--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:u?-F:F;r+=G(2,t),l-=s}return(u?-1:1)*r*G(2,l-t)}function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function s(e){return[255&e]}function a(e){return[255&e,e>>8&255]}function c(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function u(e){return r(e,52,8)}function l(e){return r(e,23,4)}function h(e,t,n){A(e[L],t,{get:function(){return this[n]}})}function f(e,t,n,r){var i=+n,o=E(i);if(o+t>e[Z])throw R(P);var s=e[Y]._b,a=o+e[H],c=s.slice(a,a+t);return r?c:c.reverse()}function p(e,t,n,r,i,o){var s=+n,a=E(s);if(a+t>e[Z])throw R(P);for(var c=e[Y]._b,u=a+e[H],l=r(+i),h=0;hee;)(K=Q[ee++])in $||v($,K,D[K]);m||(X.constructor=$)}var te=new M(new $(2)),ne=M[L].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||x(M[L],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else $=function(e){_(this,$,I);var t=E(e);this._b=C.call(Array(t),0),this[Z]=t},M=function(e,t,n){_(this,M,N),_(e,$,N);var r=e[Z],i=S(t);if(i<0||i>r)throw R("Wrong offset!");if(n=void 0===n?r-i:w(n),i+n>r)throw R(T);this[Y]=e,this[H]=i,this[Z]=n},y&&(h($,W,"_l"),h(M,V,"_b"),h(M,W,"_l"),h(M,J,"_o")),x(M[L],{getInt8:function(e){return f(this,1,e)[0]<<24>>24},getUint8:function(e){return f(this,1,e)[0]},getInt16:function(e){var t=f(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=f(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return o(f(this,4,e,arguments[1]))},getUint32:function(e){return o(f(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return i(f(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return i(f(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){p(this,1,e,s,t)},setUint8:function(e,t){p(this,1,e,s,t)},setInt16:function(e,t){p(this,2,e,a,t,arguments[2])},setUint16:function(e,t){p(this,2,e,a,t,arguments[2])},setInt32:function(e,t){p(this,4,e,c,t,arguments[2])},setUint32:function(e,t){p(this,4,e,c,t,arguments[2])},setFloat32:function(e,t){p(this,4,e,l,t,arguments[2])},setFloat64:function(e,t){p(this,8,e,u,t,arguments[2])}});O($,I),O(M,N),v(M[L],g.VIEW,!0),t[I]=$,t[N]=M},function(e,t,n){var r=n(38),i=n(37);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(8);r(r.G+r.W+r.F*!n(224).ABV,{DataView:n(225).DataView})},function(e,t,n){n(229)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";if(n(6)){var r=n(28),i=n(4),o=n(7),s=n(8),a=n(224),c=n(225),u=n(20),l=n(206),h=n(17),f=n(10),p=n(214),d=n(38),y=n(37),m=n(226),g=n(39),v=n(16),x=n(5),b=n(74),_=n(13),S=n(57),w=n(163),E=n(45),k=n(58),A=n(49).f,C=n(165),O=n(19),I=n(25),N=n(173),L=n(36),T=n(208),P=n(194),$=n(129),M=n(166),j=n(193),R=n(189),F=n(186),D=n(11),B=n(50),G=D.f,q=B.f,U=i.RangeError,z=i.TypeError,V=i.Uint8Array,W="ArrayBuffer",J="Shared"+W,Y="BYTES_PER_ELEMENT",Z="prototype",H=Array[Z],K=c.ArrayBuffer,X=c.DataView,Q=N(0),ee=N(2),te=N(3),ne=N(4),re=N(5),ie=N(6),oe=L(!0),se=L(!1),ae=P.values,ce=P.keys,ue=P.entries,le=H.lastIndexOf,he=H.reduce,fe=H.reduceRight,pe=H.join,de=H.sort,ye=H.slice,me=H.toString,ge=H.toLocaleString,ve=I("iterator"),xe=I("toStringTag"),be=O("typed_constructor"),_e=O("def_constructor"),Se=a.CONSTR,we=a.TYPED,Ee=a.VIEW,ke="Wrong length!",Ae=N(1,function(e,t){return Le(T(e,e[_e]),t)}),Ce=o(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),Oe=!!V&&!!V[Z].set&&o(function(){new V(1).set({})}),Ie=function(e,t){var n=d(e);if(n<0||n%t)throw U("Wrong offset!");return n},Ne=function(e){if(_(e)&&we in e)return e;throw z(e+" is not a typed array!")},Le=function(e,t){if(!(_(e)&&be in e))throw z("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return Pe(T(e,e[_e]),t)},Pe=function(e,t){for(var n=0,r=t.length,i=Le(e,r);r>n;)i[n]=t[n++];return i},$e=function(e,t,n){G(e,t,{get:function(){return this._d[n]}})},Me=function(e){var t,n,r,i,o,s,a=S(e),c=arguments.length,l=c>1?arguments[1]:void 0,h=void 0!==l,f=C(a);if(void 0!=f&&!w(f)){for(s=f.call(a),r=[],t=0;!(o=s.next()).done;t++)r.push(o.value);a=r}for(h&&c>2&&(l=u(l,arguments[2],2)),t=0,n=y(a.length),i=Le(this,n);n>t;t++)i[t]=h?l(a[t],t):a[t];return i},je=function(){for(var e=0,t=arguments.length,n=Le(this,t);t>e;)n[e]=arguments[e++];return n},Re=!!V&&o(function(){ge.call(new V(1))}),Fe=function(){return ge.apply(Re?ye.call(Ne(this)):Ne(this),arguments)},De={copyWithin:function(e,t){return F.call(Ne(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Ne(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return R.apply(Ne(this),arguments)},filter:function(e){return Te(this,ee(Ne(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Ne(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Ne(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Q(Ne(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(Ne(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Ne(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return pe.apply(Ne(this),arguments)},lastIndexOf:function(e){return le.apply(Ne(this),arguments)},map:function(e){return Ae(Ne(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return he.apply(Ne(this),arguments)},reduceRight:function(e){return fe.apply(Ne(this),arguments)},reverse:function(){for(var e,t=this,n=Ne(t).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(e){return de.call(Ne(this),e)},subarray:function(e,t){var n=Ne(this),r=n.length,i=g(e,r);return new(T(n,n[_e]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,y((void 0===t?r:g(t,r))-i))}},Be=function(e,t){return Te(this,ye.call(Ne(this),e,t))},Ge=function(e){Ne(this);var t=Ie(arguments[1],1),n=this.length,r=S(e),i=y(r.length),o=0;if(i+t>n)throw U(ke);for(;o255?255:255&r),i.v[p](n*t+i.o,r,Ce)},I=function(e,t){G(e,t,{get:function(){return C(this,t)},set:function(e){return O(this,t,e); -},enumerable:!0})};x?(d=n(function(e,n,r,i){l(e,d,u,"_d");var o,s,a,c,h=0,p=0;if(_(n)){if(!(n instanceof K||(c=b(n))==W||c==J))return we in n?Pe(d,n):Me.call(d,n);o=n,p=Ie(r,t);var g=n.byteLength;if(void 0===i){if(g%t)throw U(ke);if(s=g-p,s<0)throw U(ke)}else if(s=y(i)*t,s+p>g)throw U(ke);a=s/t}else a=m(n),s=a*t,o=new K(s);for(f(e,"_d",{b:o,o:p,l:s,e:a,v:new X(o)});h=n.length)return{value:void 0,done:!0};while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){function r(e,t){var n,a,l=arguments.length<3?e:arguments[2];return u(e)===l?e[t]:(n=i.f(e,t))?s(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:c(a=o(e))?r(a,t,l):void 0}var i=n(50),o=n(58),s=n(5),a=n(8),c=n(13),u=n(12);a(a.S,"Reflect",{get:r})},function(e,t,n){var r=n(50),i=n(8),o=n(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(8),i=n(58),o=n(12);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(8);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(8),i=n(12),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(8);r(r.S,"Reflect",{ownKeys:n(249)})},function(e,t,n){var r=n(49),i=n(42),o=n(12),s=n(4).Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(8),i=n(12),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){function r(e,t,n){var c,f,p=arguments.length<4?e:arguments[3],d=o.f(l(e),t);if(!d){if(h(f=s(e)))return r(f,t,n,p);d=u(0)}return a(d,"value")?!(d.writable===!1||!h(p))&&(c=o.f(p,t)||u(0),c.value=n,i.f(p,t,c),!0):void 0!==d.set&&(d.set.call(p,n),!0)}var i=n(11),o=n(50),s=n(58),a=n(5),c=n(8),u=n(17),l=n(12),h=n(13);c(c.S,"Reflect",{set:r})},function(e,t,n){var r=n(8),i=n(72);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(8),i=n(36)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(187)("includes")},function(e,t,n){"use strict";var r=n(8),i=n(255),o=n(57),s=n(37),a=n(21),c=n(174);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return a(e),t=s(r.length),n=c(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(187)("flatMap")},function(e,t,n){"use strict";function r(e,t,n,u,l,h,f,p){for(var d,y,m=l,g=0,v=!!f&&a(f,p,3);g0)m=r(e,t,d,s(d.length),m,h-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=d}m++}g++}return m}var i=n(44),o=n(13),s=n(37),a=n(20),c=n(25)("isConcatSpreadable");e.exports=r},function(e,t,n){"use strict";var r=n(8),i=n(255),o=n(57),s=n(37),a=n(38),c=n(174);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=s(t.length),r=c(t,0);return i(r,t,t,n,0,void 0===e?1:a(e)),r}}),n(187)("flatten")},function(e,t,n){"use strict";var r=n(8),i=n(127)(!0);r(r.P,"String",{at:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(8),i=n(259);r(r.P,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var r=n(37),i=n(90),o=n(35);e.exports=function(e,t,n,s){var a=String(o(e)),c=a.length,u=void 0===n?" ":String(n),l=r(t);if(l<=c||""==u)return a;var h=l-c,f=i.call(u,Math.ceil(h/u.length));return f.length>h&&(f=f.slice(0,h)),s?f+a:a+f}},function(e,t,n){"use strict";var r=n(8),i=n(259);r(r.P,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(82)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(82)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){"use strict";var r=n(8),i=n(35),o=n(37),s=n(134),a=n(197),c=RegExp.prototype,u=function(e,t){this._r=e,this._s=t};n(130)(u,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(i(this),!s(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in c?String(e.flags):a.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new u(r,t)}})},function(e,t,n){n(27)("asyncIterator")},function(e,t,n){n(27)("observable")},function(e,t,n){var r=n(8),i=n(249),o=n(32),s=n(50),a=n(164);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),c=s.f,u=i(r),l={},h=0;u.length>h;)n=c(r,t=u[h++]),void 0!==n&&a(l,t,n);return l}})},function(e,t,n){var r=n(8),i=n(268)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(30),i=n(32),o=n(43).f;e.exports=function(e){return function(t){for(var n,s=i(t),a=r(s),c=a.length,u=0,l=[];c>u;)o.call(s,n=a[u++])&&l.push(e?[n,s[n]]:s[n]);return l}}},function(e,t,n){var r=n(8),i=n(268)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(8),i=n(57),o=n(21),s=n(11);n(6)&&r(r.P+n(271),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";e.exports=n(28)||!n(7)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(4)[e]})},function(e,t,n){"use strict";var r=n(8),i=n(57),o=n(21),s=n(11);n(6)&&r(r.P+n(271),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(8),i=n(57),o=n(16),s=n(58),a=n(50).f;n(6)&&r(r.P+n(271),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do if(t=a(n,r))return t.get;while(n=s(n))}})},function(e,t,n){"use strict";var r=n(8),i=n(57),o=n(16),s=n(58),a=n(50).f;n(6)&&r(r.P+n(271),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do if(t=a(n,r))return t.set;while(n=s(n))}})},function(e,t,n){var r=n(8);r(r.P+r.R,"Map",{toJSON:n(276)("Map")})},function(e,t,n){var r=n(74),i=n(277);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(207);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(8);r(r.P+r.R,"Set",{toJSON:n(276)("Set")})},function(e,t,n){n(280)("Map")},function(e,t,n){"use strict";var r=n(8);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(280)("Set")},function(e,t,n){n(280)("WeakMap")},function(e,t,n){n(280)("WeakSet")},function(e,t,n){n(285)("Map")},function(e,t,n){"use strict";var r=n(8),i=n(21),o=n(20),s=n(207);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,a,c=arguments[1];return i(this),t=void 0!==c,t&&i(c),void 0==e?new this:(n=[],t?(r=0,a=o(c,arguments[2],2),s(e,!1,function(e){n.push(a(e,r++))})):s(e,!1,n.push,n),new this(n))}})}},function(e,t,n){n(285)("Set")},function(e,t,n){n(285)("WeakMap")},function(e,t,n){n(285)("WeakSet")},function(e,t,n){var r=n(8);r(r.G,{global:n(4)})},function(e,t,n){var r=n(8);r(r.S,"System",{global:n(4)})},function(e,t,n){var r=n(8),i=n(34);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(8);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(8);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(8),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},function(e,t,n){var r=n(8),i=n(296),o=n(113);r(r.S,"Math",{fscale:function(e,t,n,r,s){return o(i(e,t,n,r,s))}})},function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-(1/0)?e:(e-t)*(i-r)/(n-t)+r}},function(e,t,n){var r=n(8);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},function(e,t,n){var r=n(8);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},function(e,t,n){var r=n(8);r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,s=i&n,a=r>>16,c=i>>16,u=(a*s>>>0)+(o*s>>>16);return a*c+(u>>16)+((o*c>>>0)+(u&n)>>16)}})},function(e,t,n){var r=n(8);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(8),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},function(e,t,n){var r=n(8);r(r.S,"Math",{scale:n(296)})},function(e,t,n){var r=n(8);r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,s=i&n,a=r>>>16,c=i>>>16,u=(a*s>>>0)+(o*s>>>16);return a*c+(u>>>16)+((o*c>>>0)+(u&n)>>>16)}})},function(e,t,n){var r=n(8);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var r=n(8),i=n(9),o=n(4),s=n(208),a=n(213);r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(8),i=n(211),o=n(212);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(308),i=n(12),o=r.key,s=r.set;r.exp({defineMetadata:function(e,t,n,r){s(e,t,i(n),o(r))}})},function(e,t,n){var r=n(215),i=n(8),o=n(23)("metadata"),s=o.store||(o.store=new(n(220))),a=function(e,t,n){var i=s.get(e);if(!i){if(!n)return;s.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},c=function(e,t,n){var r=a(t,n,!1);return void 0!==r&&r.has(e)},u=function(e,t,n){var r=a(t,n,!1);return void 0===r?void 0:r.get(e)},l=function(e,t,n,r){a(n,r,!0).set(e,t)},h=function(e,t){var n=a(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},f=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},p=function(e){i(i.S,"Reflect",e)};e.exports={store:s,map:a,has:c,get:u,set:l,keys:h,key:f,exp:p}},function(e,t,n){var r=n(308),i=n(12),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var c=a.get(t);return c.delete(n),!!c.size||a.delete(t)}})},function(e,t,n){var r=n(308),i=n(12),o=n(58),s=r.has,a=r.get,c=r.key,u=function(e,t,n){var r=s(e,t,n);if(r)return a(e,t,n);var i=o(t);return null!==i?u(e,i,n):void 0};r.exp({getMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:c(arguments[2]))}})},function(e,t,n){var r=n(219),i=n(277),o=n(308),s=n(12),a=n(58),c=o.keys,u=o.key,l=function(e,t){var n=c(e,t),o=a(e);if(null===o)return n;var s=l(o,t);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(e){return l(s(e),arguments.length<2?void 0:u(arguments[1]))}})},function(e,t,n){var r=n(308),i=n(12),o=r.get,s=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(308),i=n(12),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:s(arguments[1]))}})},function(e,t,n){var r=n(308),i=n(12),o=n(58),s=r.has,a=r.key,c=function(e,t,n){var r=s(e,t,n);if(r)return!0;var i=o(t);return null!==i&&c(e,i,n)};r.exp({hasMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(308),i=n(12),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(308),i=n(12),o=n(21),s=r.key,a=r.set;r.exp({metadata:function(e,t){return function(n,r){a(e,t,(void 0!==r?i:o)(n),s(r))}}})},function(e,t,n){var r=n(8),i=n(210)(),o=n(4).process,s="process"==n(34)(o);r(r.G,{asap:function(e){var t=s&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(8),i=n(4),o=n(9),s=n(210)(),a=n(25)("observable"),c=n(21),u=n(12),l=n(206),h=n(214),f=n(10),p=n(207),d=p.RETURN,y=function(e){return null==e?void 0:c(e)},m=function(e){var t=e._c;t&&(e._c=void 0,t())},g=function(e){return void 0===e._o},v=function(e){g(e)||(e._o=void 0,m(e))},x=function(e,t){u(e),this._c=void 0,this._o=e,e=new b(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:c(n),this._c=n)}catch(t){return void e.error(t)}g(this)&&m(this)};x.prototype=h({},{unsubscribe:function(){v(this)}});var b=function(e){this._s=e};b.prototype=h({},{next:function(e){var t=this._s;if(!g(t)){var n=t._o;try{var r=y(n.next);if(r)return r.call(n,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(g(t))throw e;var n=t._o;t._o=void 0;try{var r=y(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{m(t)}finally{throw e}}return m(t),e},complete:function(e){var t=this._s;if(!g(t)){var n=t._o;t._o=void 0;try{var r=y(n.complete);e=r?r.call(n,e):void 0}catch(e){try{m(t)}finally{throw e}}return m(t),e}}});var _=function(e){l(this,_,"Observable","_f")._f=c(e)};h(_.prototype,{subscribe:function(e){return new x(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(n,r){c(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})})}}),h(_,{from:function(e){var t="function"==typeof this?this:_,n=y(u(e)[a]);if(n){var r=u(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return s(function(){if(!n){try{if(p(e,!1,function(e){if(t.next(e),n)return d})===d)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=Array(t);e2,i=!!r&&s.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*a,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(e,t,n){var r=n(8),i=n(209);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var r=n(194),i=n(30),o=n(18),s=n(4),a=n(10),c=n(129),u=n(25),l=u("iterator"),h=u("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),y=0;y=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=v.call(i,"catchLoc"),a=v.call(i,"finallyLoc");if(s&&a){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),I}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;f(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=m),I}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,function(){return this}())},function(e,t,n){n(324),e.exports=n(9).RegExp.escape},function(e,t,n){var r=n(8),i=n(325)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";e.exports=n(327)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n1||t[0]instanceof c.Shortcut)){e.next=17;break}if(n=t.filter(function(e){return"ConditionalDialogOptionNode"!==e.type||o.evaluateExpressionOrLiteral(e.conditionalExpression)}),0!==n.length){e.next=4;break}return e.abrupt("return");case 4:return r=new s.OptionsResult(n.map(function(e){return e.text}),n.map(function(e){return e.lineNum||-1})),e.next=7,r;case 7:if(r.selected===-1){e.next=15;break}if(i=n[r.selected],!i.content){e.next=13;break}return e.delegateYield(this.evalNodes(i.content),"t0",11);case 11:e.next=15;break;case 13:if(!i.identifier){e.next=15;break}return e.delegateYield(this.run(i.identifier),"t1",15);case 15:e.next=18;break;case 17:return e.delegateYield(this.run(t[0].identifier),"t2",18);case 18:case"end":return e.stop()}},e,this)})},{key:"evaluateAssignment",value:function(e){var t=this.evaluateExpressionOrLiteral(e.expression),n=this.variables.get(e.variableName);if("SetVariableAddNode"===e.type)t+=n;else if("SetVariableMinusNode"===e.type)t-=n;else if("SetVariableMultiplyNode"===e.type)t*=n;else if("SetVariableDivideNode"===e.type)t/=n;else if("SetVariableEqualToNode"!==e.type)throw new Error("I don't recognize assignment type "+e.type);this.variables.set(e.variableName,t)}},{key:"evaluateConditional",value:function(e){if("IfNode"===e.type){if(this.evaluateExpressionOrLiteral(e.expression))return e.statement}else if("IfElseNode"===e.type||"ElseIfNode"===e.type){if(this.evaluateExpressionOrLiteral(e.expression))return e.statement;if(e.elseStatement)return this.evaluateConditional(e.elseStatement)}else if("ElseNode"===e.type)return e.statement;return null}},{key:"evaluateExpressionOrLiteral",value:function(e){if(e instanceof c.Expression){if("UnaryMinusExpressionNode"===e.type)return-1*this.evaluateExpressionOrLiteral(e.expression);if("ArithmeticExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression);if("ArithmeticExpressionAddNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)+this.evaluateExpressionOrLiteral(e.expression2);if("ArithmeticExpressionMinusNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)-this.evaluateExpressionOrLiteral(e.expression2);if("ArithmeticExpressionMultiplyNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)*this.evaluateExpressionOrLiteral(e.expression2);if("ArithmeticExpressionDivideNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)/this.evaluateExpressionOrLiteral(e.expression2);if("BooleanExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.booleanExpression);if("NegatedBooleanExpressionNode"===e.type)return!this.evaluateExpressionOrLiteral(e.booleanExpression);if("BooleanOrExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)||this.evaluateExpressionOrLiteral(e.expression2);if("BooleanAndExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)&&this.evaluateExpressionOrLiteral(e.expression2);if("BooleanXorExpressionNode"===e.type)return!this.evaluateExpressionOrLiteral(e.expression1)!=!this.evaluateExpressionOrLiteral(e.expression2); -if("EqualToExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)===this.evaluateExpressionOrLiteral(e.expression2);if("NotEqualToExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)!==this.evaluateExpressionOrLiteral(e.expression2);if("GreaterThanExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)>this.evaluateExpressionOrLiteral(e.expression2);if("GreaterThanOrEqualToExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1)>=this.evaluateExpressionOrLiteral(e.expression2);if("LessThanExpressionNode"===e.type)return this.evaluateExpressionOrLiteral(e.expression1) .label > .name:val("_token_stack"))',n);return i[0].body=r,escodegen.generate(n).replace(/_token_stack:\s?/,"").replace(/\\\\n/g,"\\n")}catch(e){return t}}function tokenStackLex(){var e;return e=tstack.pop()||lexer.lex()||EOF,"number"!=typeof e&&(e instanceof Array&&(tstack=e,e=tstack.pop()),e=self.symbols_[e]||e),e}function removeErrorRecovery(e){var t=e;try{var n=esprima.parse(t),r=JSONSelect.match(':has(:root > .label > .name:val("_handle_error"))',n),i=r[0].body.consequent.body[3].consequent.body;return i[0]=r[0].body.consequent.body[1],i[4].expression.arguments[1].properties.pop(),r[0].body.consequent.body=i,escodegen.generate(n).replace(/_handle_error:\s?/,"").replace(/\\\\n/g,"\\n")}catch(e){return t}}function createVariable(){var e=nextVariableId++,t="$V";do t+=variableTokens[e%variableTokensLength],e=~~(e/variableTokensLength);while(0!==e);return t}function commonjsMain(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=__webpack_require__(336).readFileSync(__webpack_require__(337).normalize(e[1]),"utf8");return exports.parser.parse(t)}function printAction(e,t){var n=1==e[0]?"shift token (then go to state "+e[1]+")":2==e[0]?"reduce by rule: "+t.productions[e[1]]:"accept";return n}function traceParseError(e,t){this.trace(e)}function parseError(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)}var Nonterminal=typal.construct({constructor:function(e){this.symbol=e,this.productions=new Set,this.first=[],this.follows=[],this.nullable=!1},toString:function(){var e=this.symbol+"\n";return e+=this.nullable?"nullable":"not nullable",e+="\nFirsts: "+this.first.join(", "),e+="\nFollows: "+this.first.join(", "),e+="\nProductions:\n "+this.productions.join("\n ")}}),Production=typal.construct({constructor:function(e,t,n){this.symbol=e,this.handle=t,this.nullable=!1,this.id=n,this.first=[],this.precedence=0},toString:function(){return this.symbol+" -> "+this.handle.join(" ")}}),generator=typal.beget();generator.constructor=function(e,t){"string"==typeof e&&(e=ebnfParser.parse(e));var n=typal.mix.call({},e.options,t);this.terms={},this.operators={},this.productions=[],this.conflicts=0,this.resolutions=[],this.options=n,this.parseParams=e.parseParams,this.yy={},e.actionInclude&&("function"==typeof e.actionInclude&&(e.actionInclude=String(e.actionInclude).replace(/^\s*function \(\) \{/,"").replace(/\}\s*$/,"")),this.actionInclude=e.actionInclude),this.moduleInclude=e.moduleInclude||"",this.DEBUG=n.debug||!1,this.DEBUG&&this.mix(generatorDebug),this.processGrammar(e),e.lex&&(this.lexer=new Lexer(e.lex,null,this.terminals_))},generator.processGrammar=function(e){var t=e.bnf,n=e.tokens,r=this.nonterminals={},i=this.productions,o=this;!e.bnf&&e.ebnf&&(t=e.bnf=ebnfParser.transform(e.ebnf)),n&&(n="string"==typeof n?n.trim().split(" "):n.slice(0));var s=this.symbols=[],a=this.operators=processOperators(e.operators);this.buildProductions(t,i,r,s,a),n&&this.terminals.length!==n.length&&(o.trace("Warning: declared tokens differ from tokens found in rules."),o.trace(this.terminals),o.trace(n)),this.augmentGrammar(e)},generator.augmentGrammar=function(e){if(0===this.productions.length)throw new Error("Grammar error: must have at least one rule.");if(this.startSymbol=e.start||e.startSymbol||this.productions[0].symbol,!this.nonterminals[this.startSymbol])throw new Error("Grammar error: startSymbol must be a non-terminal found in your grammar.");this.EOF="$end";var t=new Production("$accept",[this.startSymbol,"$end"],0);this.productions.unshift(t),this.symbols.unshift("$accept",this.EOF),this.symbols_.$accept=0,this.symbols_[this.EOF]=1,this.terminals.unshift(this.EOF),this.nonterminals.$accept=new Nonterminal("$accept"),this.nonterminals.$accept.productions.push(t),this.nonterminals[this.startSymbol].follows.push(this.EOF)},generator.buildProductions=function(e,t,n,r,i){function o(e){e&&!p[e]&&(p[e]=++f,r.push(e))}function s(e){var r,s,a;if(e.constructor===Array){for(s="string"==typeof e[0]?e[0].trim().split(" "):e[0].slice(0),a=0;a=0;a--)!(r.handle[a]in n)&&r.handle[a]in i&&(r.precedence=i[r.handle[a]].precedence);t.push(r),h.push([p[r.symbol],""===r.handle[0]?0:r.handle.length]),n[c].productions.push(r)}var a,c,u=["/* this == yyval */",this.actionInclude||"","var $0 = $$.length - 1;","switch (yystate) {"],l={},h=[0],f=1,p={},d=!1;o("error");for(c in e)e.hasOwnProperty(c)&&(o(c),n[c]=new Nonterminal(c),a="string"==typeof e[c]?e[c].split(/\s*\|\s*/g):e[c].slice(0),a.forEach(s));for(var y in l)u.push(l[y].join(" "),y,"break;");var m=[],g={};each(p,function(e,t){n[t]||(m.push(t),g[e]=t)}),this.hasErrorRecovery=d,this.terminals=m,this.terminals_=g,this.symbols_=p,this.productions_=h,u.push("}"),u=u.join("\n").replace(/YYABORT/g,"return false").replace(/YYACCEPT/g,"return true");var v="yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */";this.parseParams&&(v+=", "+this.parseParams.join(", ")),this.performAction="function anonymous("+v+") {\n"+u+"\n}"},generator.createParser=function(){throw new Error("Calling abstract method.")},generator.trace=function(){},generator.warn=function(){var e=Array.prototype.slice.call(arguments,0);Jison.print.call(null,e.join(""))},generator.error=function(e){throw new Error(e)};var generatorDebug={trace:function(){Jison.print.apply(null,arguments)},beforeprocessGrammar:function(){this.trace("Processing grammar.")},afteraugmentGrammar:function(){var e=this.trace;each(this.symbols,function(t,n){e(t+"("+n+")")})}},lookaheadMixin={};lookaheadMixin.computeLookaheads=function(){this.DEBUG&&this.mix(lookaheadDebug),this.computeLookaheads=function(){},this.nullableSets(),this.firstSets(),this.followSets()},lookaheadMixin.followSets=function(){for(var e=this.productions,t=this.nonterminals,n=this,r=!0;r;)r=!1,e.forEach(function(e,i){for(var o,s,a,c=!!n.go_,u=[],l=0;a=e.handle[l];++l)if(t[a]){c&&(o=n.go_(e.symbol,e.handle.slice(0,l)));var h=!c||o===parseInt(n.nterms_[a],10);if(l===e.handle.length+1&&h)u=t[e.symbol].follows;else{var f=e.handle.slice(l+1);u=n.first(f),n.nullable(f)&&h&&u.push.apply(u,t[e.symbol].follows)}s=t[a].follows.length,Set.union(t[a].follows,u),s!==t[a].follows.length&&(r=!0)}})},lookaheadMixin.first=function(e){if(""===e)return[];if(e instanceof Array){for(var t,n=[],r=0;(t=e[r])&&(this.nonterminals[t]?Set.union(n,this.nonterminals[t].first):n.indexOf(t)===-1&&n.push(t),this.nullable(t));++r);return n}return this.nonterminals[e]?this.nonterminals[e].first:[e]},lookaheadMixin.firstSets=function(){for(var e,t,n=this.productions,r=this.nonterminals,i=this,o=!0;o;){o=!1,n.forEach(function(e,t){var n=i.first(e.handle);n.length!==e.first.length&&(e.first=n,o=!0)});for(e in r)t=[],r[e].productions.forEach(function(e){Set.union(t,e.first)}),t.length!==r[e].first.length&&(r[e].first=t,o=!0)}},lookaheadMixin.nullableSets=function(){for(var e=(this.firsts={},this.nonterminals),t=this,n=!0;n;){n=!1,this.productions.forEach(function(e,r){if(!e.nullable){for(var i,o=0,s=0;i=e.handle[o];++o)t.nullable(i)&&s++;s===o&&(e.nullable=n=!0)}});for(var r in e)if(!this.nullable(r))for(var i,o=0;i=e[r].productions.item(o);o++)i.nullable&&(e[r].nullable=n=!0)}},lookaheadMixin.nullable=function(e){if(""===e)return!0;if(e instanceof Array){for(var t,n=0;t=e[n];++n)if(!this.nullable(t))return!1;return!0}return!!this.nonterminals[e]&&this.nonterminals[e].nullable};var lookaheadDebug={beforenullableSets:function(){this.trace("Computing Nullable sets.")},beforefirstSets:function(){this.trace("Computing First sets.")},beforefollowSets:function(){this.trace("Computing Follow sets.")},afterfollowSets:function(){var e=this.trace;each(this.nonterminals,function(t,n){e(t,"\n")})}},lrGeneratorMixin={};lrGeneratorMixin.buildTable=function(){this.DEBUG&&this.mix(lrGeneratorDebug),this.states=this.canonicalCollection(),this.table=this.parseTable(this.states),this.defaultActions=findDefaults(this.table)},lrGeneratorMixin.Item=typal.construct({constructor:function(e,t,n,r){this.production=e,this.dotPosition=t||0,this.follows=n||[],this.predecessor=r,this.id=parseInt(e.id+"a"+this.dotPosition,36),this.markedSymbol=this.production.handle[this.dotPosition]},remainingHandle:function(){return this.production.handle.slice(this.dotPosition+1)},eq:function(e){return e.id===this.id},handleToString:function(){var e=this.production.handle.slice(0);return e[this.dotPosition]="."+(e[this.dotPosition]||""),e.join(" ")},toString:function(){var e=this.production.handle.slice(0);return e[this.dotPosition]="."+(e[this.dotPosition]||""),this.production.symbol+" -> "+e.join(" ")+(0===this.follows.length?"":" #lookaheads= "+this.follows.join(" "))}}),lrGeneratorMixin.ItemSet=Set.prototype.construct({afterconstructor:function(){this.reductions=[],this.goes={},this.edges={},this.shifts=!1,this.inadequate=!1,this.hash_={};for(var e=this._items.length-1;e>=0;e--)this.hash_[this._items[e].id]=!0},concat:function(e){for(var t=e._items||e,n=t.length-1;n>=0;n--)this.hash_[t[n].id]=!0;return this._items.push.apply(this._items,t),this},push:function(e){return this.hash_[e.id]=!0,this._items.push(e)},contains:function(e){return this.hash_[e.id]},valueOf:function(){var e=this._items.map(function(e){return e.id}).sort().join("|");return this.valueOf=function(){return e},e}}),lrGeneratorMixin.closureOperation=function(e){var t,n=new this.ItemSet,r=this,i=e,o={};do t=new Set,n.concat(i),i.forEach(function(e){var i=e.markedSymbol;i&&r.nonterminals[i]?o[i]||(r.nonterminals[i].productions.forEach(function(e){var i=new r.Item(e,0);n.contains(i)||t.push(i)}),o[i]=!0):i?(n.shifts=!0,n.inadequate=n.reductions.length>0):(n.reductions.push(e),n.inadequate=n.reductions.length>1||n.shifts)}),i=t;while(!t.isEmpty());return n},lrGeneratorMixin.gotoOperation=function(e,t){var n=new this.ItemSet,r=this;return e.forEach(function(e,i){e.markedSymbol===t&&n.push(new r.Item(e.production,e.dotPosition+1,e.follows,i))}),n.isEmpty()?n:this.closureOperation(n)},lrGeneratorMixin.canonicalCollection=function(){var e,t=new this.Item(this.productions[0],0,[this.EOF]),n=this.closureOperation(new this.ItemSet(t)),r=new Set(n),i=0,o=this;for(r.has={},r.has[n]=0;i!==r.size();)e=r.item(i),i++,e.forEach(function(t){t.markedSymbol&&t.markedSymbol!==o.EOF&&o.canonicalCollectionInsert(t.markedSymbol,e,r,i-1)});return r},lrGeneratorMixin.canonicalCollectionInsert=function(e,t,n,r){var i=this.gotoOperation(t,e);if(i.predecessors||(i.predecessors={}),!i.isEmpty()){var o=i.valueOf(),s=n.has[o];s===-1||"undefined"==typeof s?(n.has[o]=n.size(),t.edges[e]=n.size(),n.push(i),i.predecessors[e]=[r]):(t.edges[e]=s,n.item(s).predecessors[e].push(r))}};var NONASSOC=0;lrGeneratorMixin.parseTable=function(e){var t=[],n=this.nonterminals,r=this.operators,i={},o=this,s=1,a=2,c=3;return e.forEach(function(e,u){var l,h,f=t[u]={};for(h in e.edges)e.forEach(function(t,r){if(t.markedSymbol==h){var i=e.edges[h];n[h]?f[o.symbols_[h]]=i:f[o.symbols_[h]]=[s,i]}});e.forEach(function(e,t){e.markedSymbol==o.EOF&&(f[o.symbols_[o.EOF]]=[c])});var p=!o.lookAheads&&o.terminals;e.reductions.forEach(function(t,n){var s=p||o.lookAheads(e,t);s.forEach(function(e){l=f[o.symbols_[e]];var n=r[e];if(l||l&&l.length){var s=resolveConflict(t.production,n,[a,t.production.id],l[0]instanceof Array?l[0]:l);o.resolutions.push([u,e,s]),s.bydefault?(o.conflicts++,o.DEBUG||(o.warn("Conflict in grammar: multiple actions possible when lookahead token is ",e," in state ",u,"\n- ",printAction(s.r,o),"\n- ",printAction(s.s,o)),i[u]=!0),o.options.noDefaultResolve&&(l[0]instanceof Array||(l=[l]),l.push(s.r))):l=s.action}else l=[a,t.production.id];l&&l.length?f[o.symbols_[e]]=l:l===NONASSOC&&(f[o.symbols_[e]]=void 0)})})}),!o.DEBUG&&o.conflicts>0&&(o.warn("\nStates with conflicts:"),each(i,function(t,n){o.warn("State "+n),o.warn(" ",e.item(n).join("\n "))})),t},lrGeneratorMixin.generate=function(e){e=typal.mix.call({},this.options,e);var t="";switch(e.moduleName&&e.moduleName.match(/^[A-Za-z_$][A-Za-z0-9_$]*$/)||(e.moduleName="parser"),e.moduleType){case"js":t=this.generateModule(e);break;case"amd":t=this.generateAMDModule(e);break;default:t=this.generateCommonJSModule(e)}return t},lrGeneratorMixin.generateAMDModule=function(e){e=typal.mix.call({},this.options,e);var t=this.generateModule_(),n="\n\ndefine(function(require){\n"+t.commonCode+"\nvar parser = "+t.moduleCode+"\n"+this.moduleInclude+(this.lexer&&this.lexer.generateModule?"\n"+this.lexer.generateModule()+"\nparser.lexer = lexer;":"")+"\nreturn parser;\n});";return n},lrGeneratorMixin.generateCommonJSModule=function(e){e=typal.mix.call({},this.options,e);var t=e.moduleName||"parser",n=this.generateModule(e)+"\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = "+t+";\nexports.Parser = "+t+".Parser;\nexports.parse = function () { return "+t+".parse.apply("+t+", arguments); };\nexports.main = "+String(e.moduleMain||commonjsMain)+";\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}";return n},lrGeneratorMixin.generateModule=function(e){e=typal.mix.call({},this.options,e);var t=e.moduleName||"parser",n="/* parser generated by jison "+version+" */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\n";return n+=(t.match(/\./)?t:"var "+t)+" = "+this.generateModuleExpr()},lrGeneratorMixin.generateModuleExpr=function(){var e="",t=this.generateModule_();return e+="(function(){\n",e+=t.commonCode,e+="\nvar parser = "+t.moduleCode,e+="\n"+this.moduleInclude,this.lexer&&this.lexer.generateModule&&(e+=this.lexer.generateModule(),e+="\nparser.lexer = lexer;"),e+="\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();"},lrGeneratorMixin.generateModule_=function(){var e=String(parser.parse);this.hasErrorRecovery||(e=removeErrorRecovery(e)),this.options["token-stack"]&&(e=addTokenStack(e)),nextVariableId=0;var t=this.generateTableCode(this.table),n=t.commonCode,r="{";return r+=["trace: "+String(this.trace||parser.trace),"yy: {}","symbols_: "+JSON.stringify(this.symbols_),"terminals_: "+JSON.stringify(this.terminals_).replace(/"([0-9]+)":/g,"$1:"),"productions_: "+JSON.stringify(this.productions_),"performAction: "+String(this.performAction),"table: "+t.moduleCode,"defaultActions: "+JSON.stringify(this.defaultActions).replace(/"([0-9]+)":/g,"$1:"),"parseError: "+String(this.parseError||(this.hasErrorRecovery?traceParseError:parser.parseError)),"parse: "+e].join(",\n"),r+="};",{commonCode:n,moduleCode:r}},lrGeneratorMixin.generateTableCode=function(e){var t=JSON.stringify(e),n=[createObjectCode];t=t.replace(/"([0-9]+)"(?=:)/g,"$1"),t=t.replace(/\{\d+:[^\}]+,\d+:[^\}]+\}/g,function(e){for(var t,n,r,i,o,s={},a=0,c=[],u=/(\d+):([^:]+)(?=,\d+:|\})/g;o=u.exec(e);)r=o[1],t=o[2],i=1,t in s?i=s[t].push(r):s[t]=[r],i>a&&(a=i,n=t);if(a>1){for(t in s)if(t!==n)for(var l=s[t],h=0,f=l.length;h0&&(this.resolutions.forEach(function(t,n){t[2].bydefault&&e.warn("Conflict at state: ",t[0],", token: ",t[1],"\n ",printAction(t[2].r,e),"\n ",printAction(t[2].s,e))}),this.trace("\n"+this.conflicts+" Conflict(s) found in grammar.")),this.trace("Done.")},aftercanonicalCollection:function(e){var t=this.trace;t("\nItem sets\n------"),e.forEach(function(e,n){t("\nitem set",n,"\n"+e.join("\n"),"\ntransitions -> ",JSON.stringify(e.edges))})}},parser=typal.beget();lrGeneratorMixin.createParser=function createParser(){function bind(e){return function(){return self.lexer=p.lexer,self[e].apply(self,arguments)}}var p=eval(this.generateModuleExpr());p.productions=this.productions;var self=this;return p.lexer=this.lexer,p.generate=bind("generate"),p.generateAMDModule=bind("generateAMDModule"),p.generateModule=bind("generateModule"),p.generateCommonJSModule=bind("generateCommonJSModule"),p},parser.trace=generator.trace,parser.warn=generator.warn,parser.error=generator.error,parser.parseError=lrGeneratorMixin.parseError=parseError,parser.parse=function(e){function t(e){i.length=i.length-2*e,o.length=o.length-e,s.length=s.length-e}function n(e){for(var t=i.length-1,n=0;;){if(f.toString()in a[e])return n;if(0===e||t<2)return!1;t-=2,e=i[t],++n}}var r=this,i=[0],o=[null],s=[],a=this.table,c="",u=0,l=0,h=0,f=2,p=1,d=s.slice.call(arguments,1),y=Object.create(this.lexer),m={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(m.yy[g]=this.yy[g]);y.setInput(e,m.yy),m.yy.lexer=y,m.yy.parser=this,"undefined"==typeof y.yylloc&&(y.yylloc={});var v=y.yylloc;s.push(v);var x=y.options&&y.options.ranges;"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,S,w,E,k,A,C,O,I=function(){var e;return e=y.lex()||p,"number"!=typeof e&&(e=r.symbols_[e]||e),e},N={};;){if(S=i[i.length-1],this.defaultActions[S]?w=this.defaultActions[S]:(null!==b&&"undefined"!=typeof b||(b=I()),w=a[S]&&a[S][b]),"undefined"==typeof w||!w.length||!w[0]){var L,T="";if(h)_!==p&&(L=n(S));else{L=n(S),O=[];for(k in a[S])this.terminals_[k]&&k>f&&O.push("'"+this.terminals_[k]+"'");T=y.showPosition?"Parse error on line "+(u+1)+":\n"+y.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==p?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:y.match,token:this.terminals_[b]||b,line:y.yylineno,loc:v,expected:O,recoverable:L!==!1})}if(3==h){if(b===p||_===p)throw new Error(T||"Parsing halted while starting to recover from another error.");l=y.yyleng,c=y.yytext,u=y.yylineno,v=y.yylloc,b=I()}if(L===!1)throw new Error(T||"Parsing halted. No suitable error recovery rule available.");t(L),_=b==f?null:b,b=f,S=i[i.length-1],w=a[S]&&a[S][f],h=3}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+b);switch(w[0]){case 1:i.push(b),o.push(y.yytext),s.push(y.yylloc),i.push(w[1]),b=null,_?(b=_,_=null):(l=y.yyleng,c=y.yytext,u=y.yylineno,v=y.yylloc,h>0&&h--);break;case 2:if(A=this.productions_[w[1]][1],N.$=o[o.length-A],N._$={first_line:s[s.length-(A||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(A||1)].first_column,last_column:s[s.length-1].last_column},x&&(N._$.range=[s[s.length-(A||1)].range[0],s[s.length-1].range[1]]),E=this.performAction.apply(N,[c,l,u,m.yy,w[1],o,s].concat(d)),"undefined"!=typeof E)return E;A&&(i=i.slice(0,-1*A*2),o=o.slice(0,-1*A),s=s.slice(0,-1*A)),i.push(this.productions_[w[1]][0]),o.push(N.$),s.push(N._$),C=a[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0},parser.init=function(e){this.table=e.table,this.defaultActions=e.defaultActions,this.performAction=e.performAction,this.productions_=e.productions_,this.symbols_=e.symbols_,this.terminals_=e.terminals_; -};var lr0=generator.beget(lookaheadMixin,lrGeneratorMixin,{type:"LR(0)",afterconstructor:function(){this.buildTable()}}),LR0Generator=exports.LR0Generator=lr0.construct(),lalr=generator.beget(lookaheadMixin,lrGeneratorMixin,{type:"LALR(1)",afterconstructor:function(e,t){this.DEBUG&&this.mix(lrGeneratorDebug,lalrGeneratorDebug),t=t||{},this.states=this.canonicalCollection(),this.terms_={};var n=this.newg=typal.beget(lookaheadMixin,{oldg:this,trace:this.trace,nterms_:{},DEBUG:!1,go_:function(e,t){return e=e.split(":")[0],t=t.map(function(e){return e.slice(e.indexOf(":")+1)}),this.oldg.go(e,t)}});n.nonterminals={},n.productions=[],this.inadequateStates=[],this.onDemandLookahead=t.onDemandLookahead||!1,this.buildNewGrammar(),n.computeLookaheads(),this.unionLookaheads(),this.table=this.parseTable(this.states),this.defaultActions=findDefaults(this.table)},lookAheads:function(e,t){return this.onDemandLookahead&&!e.inadequate?this.terminals:t.follows},go:function(e,t){for(var n=parseInt(e,10),r=0;r1)for(var n=1;n=0;--r)n[e[r]]=!0;for(var i=t.length-1;i>=0;--i)n[t[i]]||e.push(t[i]);return e}});t.Set=o},function(module,exports,__webpack_require__){"use strict";function prepareRules(e,t,n,r,i,o){function s(e,t){return"return "+(r[t]||"'"+t+"'")}var a,c,u,l,h,f=[];for(t&&(t=prepareMacros(t)),n.push("switch($avoiding_name_collisions) {"),c=0;c20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(e=this.test_match(n,i[o]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length}},RegExpLexer.generate=generate,module.exports=RegExpLexer},function(e,t,n){(function(e,r){var i=function(){function e(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1").replace(/\\\\u([a-fA-F0-9]{4})/g,"\\u$1")}function t(t){return t=t.replace(/\\\\/g,"\\"),t=e(t)}function n(){this.yy={}}var r={trace:function(){},yy:{},symbols_:{error:2,lex:3,definitions:4,"%%":5,rules:6,epilogue:7,EOF:8,CODE:9,definition:10,ACTION:11,NAME:12,regex:13,START_INC:14,names_inclusive:15,START_EXC:16,names_exclusive:17,START_COND:18,rule:19,start_conditions:20,action:21,"{":22,action_body:23,"}":24,action_comments_body:25,ACTION_BODY:26,"<":27,name_list:28,">":29,"*":30,",":31,regex_list:32,"|":33,regex_concat:34,regex_base:35,"(":36,")":37,SPECIAL_GROUP:38,"+":39,"?":40,"/":41,"/!":42,name_expansion:43,range_regex:44,any_group_regex:45,".":46,"^":47,$:48,string:49,escape_char:50,NAME_BRACE:51,ANY_GROUP_REGEX:52,ESCAPE_CHAR:53,RANGE_REGEX:54,STRING_LIT:55,CHARACTER_LIT:56,$accept:0,$end:1},terminals_:{2:"error",5:"%%",8:"EOF",9:"CODE",11:"ACTION",12:"NAME",14:"START_INC",16:"START_EXC",18:"START_COND",22:"{",24:"}",26:"ACTION_BODY",27:"<",29:">",30:"*",31:",",33:"|",36:"(",37:")",38:"SPECIAL_GROUP",39:"+",40:"?",41:"/",42:"/!",46:".",47:"^",48:"$",51:"NAME_BRACE",52:"ANY_GROUP_REGEX",53:"ESCAPE_CHAR",54:"RANGE_REGEX",55:"STRING_LIT",56:"CHARACTER_LIT"},productions_:[0,[3,4],[7,1],[7,2],[7,3],[4,2],[4,2],[4,0],[10,2],[10,2],[10,2],[15,1],[15,2],[17,1],[17,2],[6,2],[6,1],[19,3],[21,3],[21,1],[23,0],[23,1],[23,5],[23,4],[25,1],[25,2],[20,3],[20,3],[20,0],[28,1],[28,3],[13,1],[32,3],[32,2],[32,1],[32,0],[34,2],[34,1],[35,3],[35,3],[35,2],[35,2],[35,2],[35,2],[35,2],[35,1],[35,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[43,1],[45,1],[50,1],[44,1],[49,1],[49,1]],performAction:function(e,n,r,i,o,s,a){var c=s.length-1;switch(o){case 1:return this.$={rules:s[c-1]},s[c-3][0]&&(this.$.macros=s[c-3][0]),s[c-3][1]&&(this.$.startConditions=s[c-3][1]),s[c]&&(this.$.moduleInclude=s[c]),i.options&&(this.$.options=i.options),i.actionInclude&&(this.$.actionInclude=i.actionInclude),delete i.options,delete i.actionInclude,this.$;case 2:this.$=null;break;case 3:this.$=null;break;case 4:this.$=s[c-1];break;case 5:if(this.$=s[c],"length"in s[c-1])this.$[0]=this.$[0]||{},this.$[0][s[c-1][0]]=s[c-1][1];else{this.$[1]=this.$[1]||{};for(var u in s[c-1])this.$[1][u]=s[c-1][u]}break;case 6:i.actionInclude+=s[c-1],this.$=s[c];break;case 7:i.actionInclude="",this.$=[null,null];break;case 8:this.$=[s[c-1],s[c]];break;case 9:this.$=s[c];break;case 10:this.$=s[c];break;case 11:this.$={},this.$[s[c]]=0;break;case 12:this.$=s[c-1],this.$[s[c]]=0;break;case 13:this.$={},this.$[s[c]]=1;break;case 14:this.$=s[c-1],this.$[s[c]]=1;break;case 15:this.$=s[c-1],this.$.push(s[c]);break;case 16:this.$=[s[c]];break;case 17:this.$=s[c-2]?[s[c-2],s[c-1],s[c]]:[s[c-1],s[c]];break;case 18:this.$=s[c-1];break;case 19:this.$=s[c];break;case 20:this.$="";break;case 21:this.$=s[c];break;case 22:this.$=s[c-4]+s[c-3]+s[c-2]+s[c-1]+s[c];break;case 23:this.$=s[c-3]+s[c-2]+s[c-1]+s[c];break;case 24:this.$=e;break;case 25:this.$=s[c-1]+s[c];break;case 26:this.$=s[c-1];break;case 27:this.$=["*"];break;case 29:this.$=[s[c]];break;case 30:this.$=s[c-2],this.$.push(s[c]);break;case 31:this.$=s[c],i.options&&i.options.flex||!this.$.match(/[\w\d]$/)||this.$.match(/\\(r|f|n|t|v|s|b|c[A-Z]|x[0-9A-F]{2}|u[a-fA-F0-9]{4}|[0-7]{1,3})$/)||(this.$+="\\b");break;case 32:this.$=s[c-2]+"|"+s[c];break;case 33:this.$=s[c-1]+"|";break;case 35:this.$="";break;case 36:this.$=s[c-1]+s[c];break;case 38:this.$="("+s[c-1]+")";break;case 39:this.$=s[c-2]+s[c-1]+")";break;case 40:this.$=s[c-1]+"+";break;case 41:this.$=s[c-1]+"*";break;case 42:this.$=s[c-1]+"?";break;case 43:this.$="(?="+s[c]+")";break;case 44:this.$="(?!"+s[c]+")";break;case 46:this.$=s[c-1]+s[c];break;case 48:this.$=".";break;case 49:this.$="^";break;case 50:this.$="$";break;case 54:this.$=e;break;case 55:this.$=e;break;case 56:this.$=e;break;case 57:this.$=t(e.substr(1,e.length-2))}},table:[{3:1,4:2,5:[2,7],10:3,11:[1,4],12:[1,5],14:[1,6],16:[1,7]},{1:[3]},{5:[1,8]},{4:9,5:[2,7],10:3,11:[1,4],12:[1,5],14:[1,6],16:[1,7]},{4:10,5:[2,7],10:3,11:[1,4],12:[1,5],14:[1,6],16:[1,7]},{5:[2,35],11:[2,35],12:[2,35],13:11,14:[2,35],16:[2,35],32:12,33:[2,35],34:13,35:14,36:[1,15],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{15:31,18:[1,32]},{17:33,18:[1,34]},{6:35,11:[2,28],19:36,20:37,22:[2,28],27:[1,38],33:[2,28],36:[2,28],38:[2,28],41:[2,28],42:[2,28],46:[2,28],47:[2,28],48:[2,28],51:[2,28],52:[2,28],53:[2,28],55:[2,28],56:[2,28]},{5:[2,5]},{5:[2,6]},{5:[2,8],11:[2,8],12:[2,8],14:[2,8],16:[2,8]},{5:[2,31],11:[2,31],12:[2,31],14:[2,31],16:[2,31],22:[2,31],33:[1,39]},{5:[2,34],11:[2,34],12:[2,34],14:[2,34],16:[2,34],22:[2,34],33:[2,34],35:40,36:[1,15],37:[2,34],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{5:[2,37],11:[2,37],12:[2,37],14:[2,37],16:[2,37],22:[2,37],30:[1,42],33:[2,37],36:[2,37],37:[2,37],38:[2,37],39:[1,41],40:[1,43],41:[2,37],42:[2,37],44:44,46:[2,37],47:[2,37],48:[2,37],51:[2,37],52:[2,37],53:[2,37],54:[1,45],55:[2,37],56:[2,37]},{32:46,33:[2,35],34:13,35:14,36:[1,15],37:[2,35],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{32:47,33:[2,35],34:13,35:14,36:[1,15],37:[2,35],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{35:48,36:[1,15],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{35:49,36:[1,15],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{5:[2,45],11:[2,45],12:[2,45],14:[2,45],16:[2,45],22:[2,45],30:[2,45],33:[2,45],36:[2,45],37:[2,45],38:[2,45],39:[2,45],40:[2,45],41:[2,45],42:[2,45],46:[2,45],47:[2,45],48:[2,45],51:[2,45],52:[2,45],53:[2,45],54:[2,45],55:[2,45],56:[2,45]},{5:[2,47],11:[2,47],12:[2,47],14:[2,47],16:[2,47],22:[2,47],30:[2,47],33:[2,47],36:[2,47],37:[2,47],38:[2,47],39:[2,47],40:[2,47],41:[2,47],42:[2,47],46:[2,47],47:[2,47],48:[2,47],51:[2,47],52:[2,47],53:[2,47],54:[2,47],55:[2,47],56:[2,47]},{5:[2,48],11:[2,48],12:[2,48],14:[2,48],16:[2,48],22:[2,48],30:[2,48],33:[2,48],36:[2,48],37:[2,48],38:[2,48],39:[2,48],40:[2,48],41:[2,48],42:[2,48],46:[2,48],47:[2,48],48:[2,48],51:[2,48],52:[2,48],53:[2,48],54:[2,48],55:[2,48],56:[2,48]},{5:[2,49],11:[2,49],12:[2,49],14:[2,49],16:[2,49],22:[2,49],30:[2,49],33:[2,49],36:[2,49],37:[2,49],38:[2,49],39:[2,49],40:[2,49],41:[2,49],42:[2,49],46:[2,49],47:[2,49],48:[2,49],51:[2,49],52:[2,49],53:[2,49],54:[2,49],55:[2,49],56:[2,49]},{5:[2,50],11:[2,50],12:[2,50],14:[2,50],16:[2,50],22:[2,50],30:[2,50],33:[2,50],36:[2,50],37:[2,50],38:[2,50],39:[2,50],40:[2,50],41:[2,50],42:[2,50],46:[2,50],47:[2,50],48:[2,50],51:[2,50],52:[2,50],53:[2,50],54:[2,50],55:[2,50],56:[2,50]},{5:[2,51],11:[2,51],12:[2,51],14:[2,51],16:[2,51],22:[2,51],30:[2,51],33:[2,51],36:[2,51],37:[2,51],38:[2,51],39:[2,51],40:[2,51],41:[2,51],42:[2,51],46:[2,51],47:[2,51],48:[2,51],51:[2,51],52:[2,51],53:[2,51],54:[2,51],55:[2,51],56:[2,51]},{5:[2,52],11:[2,52],12:[2,52],14:[2,52],16:[2,52],22:[2,52],30:[2,52],33:[2,52],36:[2,52],37:[2,52],38:[2,52],39:[2,52],40:[2,52],41:[2,52],42:[2,52],46:[2,52],47:[2,52],48:[2,52],51:[2,52],52:[2,52],53:[2,52],54:[2,52],55:[2,52],56:[2,52]},{5:[2,53],11:[2,53],12:[2,53],14:[2,53],16:[2,53],22:[2,53],30:[2,53],33:[2,53],36:[2,53],37:[2,53],38:[2,53],39:[2,53],40:[2,53],41:[2,53],42:[2,53],46:[2,53],47:[2,53],48:[2,53],51:[2,53],52:[2,53],53:[2,53],54:[2,53],55:[2,53],56:[2,53]},{5:[2,54],11:[2,54],12:[2,54],14:[2,54],16:[2,54],22:[2,54],30:[2,54],33:[2,54],36:[2,54],37:[2,54],38:[2,54],39:[2,54],40:[2,54],41:[2,54],42:[2,54],46:[2,54],47:[2,54],48:[2,54],51:[2,54],52:[2,54],53:[2,54],54:[2,54],55:[2,54],56:[2,54]},{5:[2,57],11:[2,57],12:[2,57],14:[2,57],16:[2,57],22:[2,57],30:[2,57],33:[2,57],36:[2,57],37:[2,57],38:[2,57],39:[2,57],40:[2,57],41:[2,57],42:[2,57],46:[2,57],47:[2,57],48:[2,57],51:[2,57],52:[2,57],53:[2,57],54:[2,57],55:[2,57],56:[2,57]},{5:[2,58],11:[2,58],12:[2,58],14:[2,58],16:[2,58],22:[2,58],30:[2,58],33:[2,58],36:[2,58],37:[2,58],38:[2,58],39:[2,58],40:[2,58],41:[2,58],42:[2,58],46:[2,58],47:[2,58],48:[2,58],51:[2,58],52:[2,58],53:[2,58],54:[2,58],55:[2,58],56:[2,58]},{5:[2,55],11:[2,55],12:[2,55],14:[2,55],16:[2,55],22:[2,55],30:[2,55],33:[2,55],36:[2,55],37:[2,55],38:[2,55],39:[2,55],40:[2,55],41:[2,55],42:[2,55],46:[2,55],47:[2,55],48:[2,55],51:[2,55],52:[2,55],53:[2,55],54:[2,55],55:[2,55],56:[2,55]},{5:[2,9],11:[2,9],12:[2,9],14:[2,9],16:[2,9],18:[1,50]},{5:[2,11],11:[2,11],12:[2,11],14:[2,11],16:[2,11],18:[2,11]},{5:[2,10],11:[2,10],12:[2,10],14:[2,10],16:[2,10],18:[1,51]},{5:[2,13],11:[2,13],12:[2,13],14:[2,13],16:[2,13],18:[2,13]},{5:[1,55],7:52,8:[1,54],11:[2,28],19:53,20:37,22:[2,28],27:[1,38],33:[2,28],36:[2,28],38:[2,28],41:[2,28],42:[2,28],46:[2,28],47:[2,28],48:[2,28],51:[2,28],52:[2,28],53:[2,28],55:[2,28],56:[2,28]},{5:[2,16],8:[2,16],11:[2,16],22:[2,16],27:[2,16],33:[2,16],36:[2,16],38:[2,16],41:[2,16],42:[2,16],46:[2,16],47:[2,16],48:[2,16],51:[2,16],52:[2,16],53:[2,16],55:[2,16],56:[2,16]},{11:[2,35],13:56,22:[2,35],32:12,33:[2,35],34:13,35:14,36:[1,15],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{12:[1,59],28:57,30:[1,58]},{5:[2,33],11:[2,33],12:[2,33],14:[2,33],16:[2,33],22:[2,33],33:[2,33],34:60,35:14,36:[1,15],37:[2,33],38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{5:[2,36],11:[2,36],12:[2,36],14:[2,36],16:[2,36],22:[2,36],30:[1,42],33:[2,36],36:[2,36],37:[2,36],38:[2,36],39:[1,41],40:[1,43],41:[2,36],42:[2,36],44:44,46:[2,36],47:[2,36],48:[2,36],51:[2,36],52:[2,36],53:[2,36],54:[1,45],55:[2,36],56:[2,36]},{5:[2,40],11:[2,40],12:[2,40],14:[2,40],16:[2,40],22:[2,40],30:[2,40],33:[2,40],36:[2,40],37:[2,40],38:[2,40],39:[2,40],40:[2,40],41:[2,40],42:[2,40],46:[2,40],47:[2,40],48:[2,40],51:[2,40],52:[2,40],53:[2,40],54:[2,40],55:[2,40],56:[2,40]},{5:[2,41],11:[2,41],12:[2,41],14:[2,41],16:[2,41],22:[2,41],30:[2,41],33:[2,41],36:[2,41],37:[2,41],38:[2,41],39:[2,41],40:[2,41],41:[2,41],42:[2,41],46:[2,41],47:[2,41],48:[2,41],51:[2,41],52:[2,41],53:[2,41],54:[2,41],55:[2,41],56:[2,41]},{5:[2,42],11:[2,42],12:[2,42],14:[2,42],16:[2,42],22:[2,42],30:[2,42],33:[2,42],36:[2,42],37:[2,42],38:[2,42],39:[2,42],40:[2,42],41:[2,42],42:[2,42],46:[2,42],47:[2,42],48:[2,42],51:[2,42],52:[2,42],53:[2,42],54:[2,42],55:[2,42],56:[2,42]},{5:[2,46],11:[2,46],12:[2,46],14:[2,46],16:[2,46],22:[2,46],30:[2,46],33:[2,46],36:[2,46],37:[2,46],38:[2,46],39:[2,46],40:[2,46],41:[2,46],42:[2,46],46:[2,46],47:[2,46],48:[2,46],51:[2,46],52:[2,46],53:[2,46],54:[2,46],55:[2,46],56:[2,46]},{5:[2,56],11:[2,56],12:[2,56],14:[2,56],16:[2,56],22:[2,56],30:[2,56],33:[2,56],36:[2,56],37:[2,56],38:[2,56],39:[2,56],40:[2,56],41:[2,56],42:[2,56],46:[2,56],47:[2,56],48:[2,56],51:[2,56],52:[2,56],53:[2,56],54:[2,56],55:[2,56],56:[2,56]},{33:[1,39],37:[1,61]},{33:[1,39],37:[1,62]},{5:[2,43],11:[2,43],12:[2,43],14:[2,43],16:[2,43],22:[2,43],30:[1,42],33:[2,43],36:[2,43],37:[2,43],38:[2,43],39:[1,41],40:[1,43],41:[2,43],42:[2,43],44:44,46:[2,43],47:[2,43],48:[2,43],51:[2,43],52:[2,43],53:[2,43],54:[1,45],55:[2,43],56:[2,43]},{5:[2,44],11:[2,44],12:[2,44],14:[2,44],16:[2,44],22:[2,44],30:[1,42],33:[2,44],36:[2,44],37:[2,44],38:[2,44],39:[1,41],40:[1,43],41:[2,44],42:[2,44],44:44,46:[2,44],47:[2,44],48:[2,44],51:[2,44],52:[2,44],53:[2,44],54:[1,45],55:[2,44],56:[2,44]},{5:[2,12],11:[2,12],12:[2,12],14:[2,12],16:[2,12],18:[2,12]},{5:[2,14],11:[2,14],12:[2,14],14:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{5:[2,15],8:[2,15],11:[2,15],22:[2,15],27:[2,15],33:[2,15],36:[2,15],38:[2,15],41:[2,15],42:[2,15],46:[2,15],47:[2,15],48:[2,15],51:[2,15],52:[2,15],53:[2,15],55:[2,15],56:[2,15]},{1:[2,2]},{8:[1,63],9:[1,64]},{11:[1,67],21:65,22:[1,66]},{29:[1,68],31:[1,69]},{29:[1,70]},{29:[2,29],31:[2,29]},{5:[2,32],11:[2,32],12:[2,32],14:[2,32],16:[2,32],22:[2,32],33:[2,32],35:40,36:[1,15],37:[2,32], -38:[1,16],41:[1,17],42:[1,18],43:19,45:20,46:[1,21],47:[1,22],48:[1,23],49:24,50:25,51:[1,26],52:[1,27],53:[1,30],55:[1,28],56:[1,29]},{5:[2,38],11:[2,38],12:[2,38],14:[2,38],16:[2,38],22:[2,38],30:[2,38],33:[2,38],36:[2,38],37:[2,38],38:[2,38],39:[2,38],40:[2,38],41:[2,38],42:[2,38],46:[2,38],47:[2,38],48:[2,38],51:[2,38],52:[2,38],53:[2,38],54:[2,38],55:[2,38],56:[2,38]},{5:[2,39],11:[2,39],12:[2,39],14:[2,39],16:[2,39],22:[2,39],30:[2,39],33:[2,39],36:[2,39],37:[2,39],38:[2,39],39:[2,39],40:[2,39],41:[2,39],42:[2,39],46:[2,39],47:[2,39],48:[2,39],51:[2,39],52:[2,39],53:[2,39],54:[2,39],55:[2,39],56:[2,39]},{1:[2,3]},{8:[1,71]},{5:[2,17],8:[2,17],11:[2,17],22:[2,17],27:[2,17],33:[2,17],36:[2,17],38:[2,17],41:[2,17],42:[2,17],46:[2,17],47:[2,17],48:[2,17],51:[2,17],52:[2,17],53:[2,17],55:[2,17],56:[2,17]},{22:[2,20],23:72,24:[2,20],25:73,26:[1,74]},{5:[2,19],8:[2,19],11:[2,19],22:[2,19],27:[2,19],33:[2,19],36:[2,19],38:[2,19],41:[2,19],42:[2,19],46:[2,19],47:[2,19],48:[2,19],51:[2,19],52:[2,19],53:[2,19],55:[2,19],56:[2,19]},{11:[2,26],22:[2,26],33:[2,26],36:[2,26],38:[2,26],41:[2,26],42:[2,26],46:[2,26],47:[2,26],48:[2,26],51:[2,26],52:[2,26],53:[2,26],55:[2,26],56:[2,26]},{12:[1,75]},{11:[2,27],22:[2,27],33:[2,27],36:[2,27],38:[2,27],41:[2,27],42:[2,27],46:[2,27],47:[2,27],48:[2,27],51:[2,27],52:[2,27],53:[2,27],55:[2,27],56:[2,27]},{1:[2,4]},{22:[1,77],24:[1,76]},{22:[2,21],24:[2,21],26:[1,78]},{22:[2,24],24:[2,24],26:[2,24]},{29:[2,30],31:[2,30]},{5:[2,18],8:[2,18],11:[2,18],22:[2,18],27:[2,18],33:[2,18],36:[2,18],38:[2,18],41:[2,18],42:[2,18],46:[2,18],47:[2,18],48:[2,18],51:[2,18],52:[2,18],53:[2,18],55:[2,18],56:[2,18]},{22:[2,20],23:79,24:[2,20],25:73,26:[1,74]},{22:[2,25],24:[2,25],26:[2,25]},{22:[1,77],24:[1,80]},{22:[2,23],24:[2,23],25:81,26:[1,74]},{22:[2,22],24:[2,22],26:[1,78]}],defaultActions:{9:[2,5],10:[2,6],52:[2,1],54:[2,2],63:[2,3],71:[2,4]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){function t(){var e;return e=n.lexer.lex()||f,"number"!=typeof e&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],o=[],s=this.table,a="",c=0,u=0,l=0,h=2,f=1;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var p=this.lexer.yylloc;o.push(p);var d=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,m,g,v,x,b,_,S,w,E={};;){if(g=r[r.length-1],this.defaultActions[g]?v=this.defaultActions[g]:(null!==y&&"undefined"!=typeof y||(y=t()),v=s[g]&&s[g][y]),"undefined"==typeof v||!v.length||!v[0]){var k="";w=[];for(b in s[g])this.terminals_[b]&&b>h&&w.push("'"+this.terminals_[b]+"'");k=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(c+1)+": Unexpected "+(y==f?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:p,expected:w})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+y);switch(v[0]){case 1:r.push(y),i.push(this.lexer.yytext),o.push(this.lexer.yylloc),r.push(v[1]),y=null,m?(y=m,m=null):(u=this.lexer.yyleng,a=this.lexer.yytext,c=this.lexer.yylineno,p=this.lexer.yylloc,l>0&&l--);break;case 2:if(_=this.productions_[v[1]][1],E.$=i[i.length-_],E._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},d&&(E._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),x=this.performAction.call(E,a,u,c,this.yy,v[1],i,o),"undefined"!=typeof x)return x;_&&(r=r.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),r.push(this.productions_[v[1]][0]),i.push(E.$),o.push(E._$),S=s[r[r.length-2]][r[r.length-1]],r.push(S);break;case 3:return!0}}return!0}},i=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(e=this.test_match(n,i[o]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return 26;case 1:return 26;case 2:return 26;case 3:return 26;case 4:return 26;case 5:return 26;case 6:return 26;case 7:return e.depth++,22;case 8:return 0==e.depth?this.begin("trail"):e.depth--,24;case 9:return 12;case 10:return this.popState(),29;case 11:return 31;case 12:return 30;case 13:break;case 14:break;case 15:this.begin("indented");break;case 16:return this.begin("code"),5;case 17:return 56;case 18:e.options[t.yytext]=!0;break;case 19:this.begin("INITIAL");break;case 20:this.begin("INITIAL");break;case 21:break;case 22:return 18;case 23:this.begin("INITIAL");break;case 24:this.begin("INITIAL");break;case 25:break;case 26:this.begin("rules");break;case 27:return e.depth=0,this.begin("action"),22;case 28:return this.begin("trail"),t.yytext=t.yytext.substr(2,t.yytext.length-4),11;case 29:return t.yytext=t.yytext.substr(2,t.yytext.length-4),11;case 30:return this.begin("rules"),11;case 31:break;case 32:break;case 33:break;case 34:break;case 35:return 12;case 36:return t.yytext=t.yytext.replace(/\\"/g,'"'),55;case 37:return t.yytext=t.yytext.replace(/\\'/g,"'"),55;case 38:return 33;case 39:return 52;case 40:return 38;case 41:return 38;case 42:return 38;case 43:return 36;case 44:return 37;case 45:return 39;case 46:return 30;case 47:return 40;case 48:return 47;case 49:return 31;case 50:return 48;case 51:return this.begin("conditions"),27;case 52:return 42;case 53:return 41;case 54:return 53;case 55:return t.yytext=t.yytext.replace(/^\\/g,""),53;case 56:return 48;case 57:return 46;case 58:e.options={},this.begin("options");break;case 59:return this.begin("start_condition"),14;case 60:return this.begin("start_condition"),16;case 61:return this.begin("rules"),5;case 62:return 54;case 63:return 51;case 64:return 22;case 65:return 24;case 66:break;case 67:return 8;case 68:return 9}},rules:[/^(?:\/\*(.|\n|\r)*?\*\/)/,/^(?:\/\/.*)/,/^(?:\/[^ \/]*?['"{}'][^ ]*?\/)/,/^(?:"(\\\\|\\"|[^"])*")/,/^(?:'(\\\\|\\'|[^'])*')/,/^(?:[\/"'][^{}\/"']+)/,/^(?:[^{}\/"']+)/,/^(?:\{)/,/^(?:\})/,/^(?:([a-zA-Z_][a-zA-Z0-9_-]*))/,/^(?:>)/,/^(?:,)/,/^(?:\*)/,/^(?:(\r\n|\n|\r)+)/,/^(?:\s+(\r\n|\n|\r)+)/,/^(?:\s+)/,/^(?:%%)/,/^(?:[a-zA-Z0-9_]+)/,/^(?:([a-zA-Z_][a-zA-Z0-9_-]*))/,/^(?:(\r\n|\n|\r)+)/,/^(?:\s+(\r\n|\n|\r)+)/,/^(?:\s+)/,/^(?:([a-zA-Z_][a-zA-Z0-9_-]*))/,/^(?:(\r\n|\n|\r)+)/,/^(?:\s+(\r\n|\n|\r)+)/,/^(?:\s+)/,/^(?:.*(\r\n|\n|\r)+)/,/^(?:\{)/,/^(?:%\{(.|(\r\n|\n|\r))*?%\})/,/^(?:%\{(.|(\r\n|\n|\r))*?%\})/,/^(?:.+)/,/^(?:\/\*(.|\n|\r)*?\*\/)/,/^(?:\/\/.*)/,/^(?:(\r\n|\n|\r)+)/,/^(?:\s+)/,/^(?:([a-zA-Z_][a-zA-Z0-9_-]*))/,/^(?:"(\\\\|\\"|[^"])*")/,/^(?:'(\\\\|\\'|[^'])*')/,/^(?:\|)/,/^(?:\[(\\\\|\\\]|[^\]])*\])/,/^(?:\(\?:)/,/^(?:\(\?=)/,/^(?:\(\?!)/,/^(?:\()/,/^(?:\))/,/^(?:\+)/,/^(?:\*)/,/^(?:\?)/,/^(?:\^)/,/^(?:,)/,/^(?:<>)/,/^(?:<)/,/^(?:\/!)/,/^(?:\/)/,/^(?:\\([0-7]{1,3}|[rfntvsSbBwWdD\\*+()${}|[\]\/.^?]|c[A-Z]|x[0-9A-F]{2}|u[a-fA-F0-9]{4}))/,/^(?:\\.)/,/^(?:\$)/,/^(?:\.)/,/^(?:%options\b)/,/^(?:%s\b)/,/^(?:%x\b)/,/^(?:%%)/,/^(?:\{\d+(,\s?\d+|,)?\})/,/^(?:\{([a-zA-Z_][a-zA-Z0-9_-]*)\})/,/^(?:\{)/,/^(?:\})/,/^(?:.)/,/^(?:$)/,/^(?:(.|(\r\n|\n|\r))+)/],conditions:{code:{rules:[67,68],inclusive:!1},start_condition:{rules:[22,23,24,25,67],inclusive:!1},options:{rules:[18,19,20,21,67],inclusive:!1},conditions:{rules:[9,10,11,12,67],inclusive:!1},action:{rules:[0,1,2,3,4,5,6,7,8,67],inclusive:!1},indented:{rules:[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0},trail:{rules:[26,29,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0},rules:{rules:[13,14,15,16,17,29,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0},INITIAL:{rules:[29,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return e}();return r.lexer=i,n.prototype=r,r.Parser=n,new n}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(336).readFileSync(n(337).normalize(r[1]),"utf8");return t.parser.parse(i)},"undefined"!=typeof r&&n.c[0]===r&&t.main(e.argv.slice(1))}).call(t,n(330),n(335)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),o="/"===s(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,c=0;c=0.4"},homepage:"http://jison.org",keywords:["jison","parser","generator","lexer","flex","tokenizer"],main:"regexp-lexer",name:"jison-lex",repository:{type:"git",url:"git://github.com/zaach/jison-lex.git"},scripts:{test:"node tests/all-tests.js"},version:"0.3.4"}},function(e,t,n){var r=n(340).parser,i=n(341),o=n(334);t.parse=function(e){return r.parse(e)},t.transform=i.transform,r.yy.addDeclaration=function(e,t){if(t.start)e.start=t.start;else if(t.lex)e.lex=s(t.lex);else if(t.operator)e.operators||(e.operators=[]),e.operators.push(t.operator);else if(t.parseParam)e.parseParams||(e.parseParams=[]),e.parseParams=e.parseParams.concat(t.parseParam);else if(t.include)e.moduleInclude||(e.moduleInclude=""),e.moduleInclude+=t.include;else if(t.options){e.options||(e.options={});for(var n=0;nh&&E.push("'"+this.terminals_[_]+"'");A=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(m==f?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(A,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:d,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+m);switch(x[0]){case 1:r.push(m),i.push(this.lexer.yytext),o.push(this.lexer.yylloc),r.push(x[1]),m=null,g?(m=g,g=null):(u=this.lexer.yyleng,a=this.lexer.yytext,c=this.lexer.yylineno,d=this.lexer.yylloc,l>0&&l--);break;case 2:if(S=this.productions_[x[1]][1],k.$=i[i.length-S],k._$={first_line:o[o.length-(S||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(S||1)].first_column,last_column:o[o.length-1].last_column},y&&(k._$.range=[o[o.length-(S||1)].range[0],o[o.length-1].range[1]]),b=this.performAction.apply(k,[a,u,c,this.yy,x[1],i,o].concat(p)),"undefined"!=typeof b)return b;S&&(r=r.slice(0,-1*S*2),i=i.slice(0,-1*S),o=o.slice(0,-1*S)),r.push(this.productions_[x[1]][0]),i.push(k.$),o.push(k._$),w=s[r[r.length-2]][r[r.length-1]],r.push(w);break;case 3:return!0}}return!0}},i=n(341).transform,o=!1,s=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(e=this.test_match(n,i[o]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{ -text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.pushState("code"),5;case 1:return 43;case 2:return 44;case 3:return 45;case 4:return 46;case 5:return 47;case 6:break;case 7:break;case 8:break;case 9:return t.yytext=t.yytext.substr(1,t.yyleng-2),40;case 10:return 41;case 11:return t.yytext=t.yytext.substr(1,t.yyleng-2),42;case 12:return t.yytext=t.yytext.substr(1,t.yyleng-2),42;case 13:return 28;case 14:return 30;case 15:return 31;case 16:return this.pushState(o?"ebnf":"bnf"),5;case 17:e.options||(e.options={}),o=e.options.ebnf=!0;break;case 18:return 48;case 19:return 11;case 20:return 22;case 21:return 23;case 22:return 24;case 23:return 20;case 24:return 18;case 25:return 13;case 26:break;case 27:break;case 28:return t.yytext=t.yytext.substr(2,t.yyleng-4),15;case 29:return t.yytext=t.yytext.substr(2,t.yytext.length-4),15;case 30:return e.depth=0,this.pushState("action"),49;case 31:return t.yytext=t.yytext.substr(2,t.yyleng-2),52;case 32:break;case 33:return 8;case 34:return 54;case 35:return 54;case 36:return 54;case 37:return 54;case 38:return 54;case 39:return 54;case 40:return 54;case 41:return e.depth++,49;case 42:return 0==e.depth?this.begin(o?"ebnf":"bnf"):e.depth--,51;case 43:return 9}},rules:[/^(?:%%)/,/^(?:\()/,/^(?:\))/,/^(?:\*)/,/^(?:\?)/,/^(?:\+)/,/^(?:\s+)/,/^(?:\/\/.*)/,/^(?:\/\*(.|\n|\r)*?\*\/)/,/^(?:\[([a-zA-Z][a-zA-Z0-9_-]*)\])/,/^(?:([a-zA-Z][a-zA-Z0-9_-]*))/,/^(?:"[^"]+")/,/^(?:'[^']+')/,/^(?::)/,/^(?:;)/,/^(?:\|)/,/^(?:%%)/,/^(?:%ebnf\b)/,/^(?:%prec\b)/,/^(?:%start\b)/,/^(?:%left\b)/,/^(?:%right\b)/,/^(?:%nonassoc\b)/,/^(?:%parse-param\b)/,/^(?:%options\b)/,/^(?:%lex[\w\W]*?\/lex\b)/,/^(?:%[a-zA-Z]+[^\r\n]*)/,/^(?:<[a-zA-Z]*>)/,/^(?:\{\{[\w\W]*?\}\})/,/^(?:%\{(.|\r|\n)*?%\})/,/^(?:\{)/,/^(?:->.*)/,/^(?:.)/,/^(?:$)/,/^(?:\/\*(.|\n|\r)*?\*\/)/,/^(?:\/\/.*)/,/^(?:\/[^ \/]*?['"{}'][^ ]*?\/)/,/^(?:"(\\\\|\\"|[^"])*")/,/^(?:'(\\\\|\\'|[^'])*')/,/^(?:[\/"'][^{}\/"']+)/,/^(?:[^{}\/"']+)/,/^(?:\{)/,/^(?:\})/,/^(?:(.|\n|\r)+)/],conditions:{bnf:{rules:[0,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0},ebnf:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0},action:{rules:[33,34,35,36,37,38,39,40,41,42],inclusive:!1},code:{rules:[33,43],inclusive:!1},INITIAL:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};return e}();return r.lexer=s,t.prototype=r,r.Parser=t,new t}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(336).readFileSync(n(337).normalize(r[1]),"utf8");return t.parser.parse(i)},"undefined"!=typeof r&&n.c[0]===r&&t.main(e.argv.slice(1))}).call(t,n(330),n(335)(e))},function(e,t,n){var r=function(){var e=n(342),t=function(e,t,n){var o=e[0],s=e[1],a=!1;if("xalias"===o&&(o=e[1],s=e[2],a=e[3],o?e=e.slice(1,2):(e=s,o=e[0],s=e[1])),"symbol"===o){var c;c="\\"===e[1][0]?e[1][1]:"'"===e[1][0]?e[1].substring(1,e[1].length-1):e[1],n(c+(a?"["+a+"]":""))}else if("+"===o){a||(a=t.production+"_repetition_plus"+t.repid++),n(a),t=i(a,t.grammar);var u=r([s],t);t.grammar[a]=[[u,"$$ = [$1];"],[a+" "+u,"$1.push($2);"]]}else"*"===o?(a||(a=t.production+"_repetition"+t.repid++),n(a),t=i(a,t.grammar),t.grammar[a]=[["","$$ = [];"],[a+" "+r([s],t),"$1.push($2);"]]):"?"===o?(a||(a=t.production+"_option"+t.optid++),n(a),t=i(a,t.grammar),t.grammar[a]=["",r([s],t)]):"()"===o&&(1==s.length?n(r(s[0],t)):(a||(a=t.production+"_group"+t.groupid++),n(a),t=i(a,t.grammar),t.grammar[a]=s.map(function(e){return r(e,t)})))},r=function(e,n){return e.reduce(function(e,r){return t(r,n,function(t){e.push(t)}),e},[]).join(" ")},i=function(e,t){return{production:e,repid:0,groupid:0,optid:0,grammar:t}},o=function(t,n,o){var s=i(t,o);return n.map(function(t){var n=null,i=null;"string"!=typeof t&&(n=t[1],i=t[2],t=t[0]);var o=e.parse(t);t=r(o,s);var a=[t];return n&&a.push(n),i&&a.push(i),1==a.length?a[0]:a})},s=function(e){Object.keys(e).forEach(function(t){e[t]=o(t,e[t],e)})};return{transform:function(e){return s(e),e}}}();t.transform=r.transform},function(e,t,n){(function(e,r){var i=function(){function e(){this.yy={}}var t={trace:function(){},yy:{},symbols_:{error:2,production:3,handle:4,EOF:5,handle_list:6,"|":7,expression_suffix:8,expression:9,suffix:10,ALIAS:11,symbol:12,"(":13,")":14,"*":15,"?":16,"+":17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:"|",11:"ALIAS",12:"symbol",13:"(",14:")",15:"*",16:"?",17:"+"},productions_:[0,[3,2],[6,1],[6,3],[4,0],[4,2],[8,3],[8,2],[9,1],[9,3],[10,0],[10,1],[10,1],[10,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:return o[a-1];case 2:this.$=[o[a]];break;case 3:o[a-2].push(o[a]);break;case 4:this.$=[];break;case 5:o[a-1].push(o[a]);break;case 6:this.$=["xalias",o[a-1],o[a-2],o[a]];break;case 7:o[a]?this.$=[o[a],o[a-1]]:this.$=o[a-1];break;case 8:this.$=["symbol",o[a]];break;case 9:this.$=["()",o[a-1]]}},table:[{3:1,4:2,5:[2,4],12:[2,4],13:[2,4]},{1:[3]},{5:[1,3],8:4,9:5,12:[1,6],13:[1,7]},{1:[2,1]},{5:[2,5],7:[2,5],12:[2,5],13:[2,5],14:[2,5]},{5:[2,10],7:[2,10],10:8,11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[1,9],16:[1,10],17:[1,11]},{5:[2,8],7:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[2,8],17:[2,8]},{4:13,6:12,7:[2,4],12:[2,4],13:[2,4],14:[2,4]},{5:[2,7],7:[2,7],11:[1,14],12:[2,7],13:[2,7],14:[2,7]},{5:[2,11],7:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11]},{5:[2,12],7:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12]},{5:[2,13],7:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13]},{7:[1,16],14:[1,15]},{7:[2,2],8:4,9:5,12:[1,6],13:[1,7],14:[2,2]},{5:[2,6],7:[2,6],12:[2,6],13:[2,6],14:[2,6]},{5:[2,9],7:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[2,9],17:[2,9]},{4:17,7:[2,4],12:[2,4],13:[2,4],14:[2,4]},{7:[2,3],8:4,9:5,12:[1,6],13:[1,7],14:[2,3]}],defaultActions:{3:[2,1]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){function t(){var e;return e=n.lexer.lex()||f,"number"!=typeof e&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],o=[],s=this.table,a="",c=0,u=0,l=0,h=2,f=1,p=o.slice.call(arguments,1);this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var d=this.lexer.yylloc;o.push(d);var y=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,g,v,x,b,_,S,w,E,k={};;){if(v=r[r.length-1],this.defaultActions[v]?x=this.defaultActions[v]:(null!==m&&"undefined"!=typeof m||(m=t()),x=s[v]&&s[v][m]),"undefined"==typeof x||!x.length||!x[0]){var A="";E=[];for(_ in s[v])this.terminals_[_]&&_>h&&E.push("'"+this.terminals_[_]+"'");A=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(m==f?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(A,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:d,expected:E})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+m);switch(x[0]){case 1:r.push(m),i.push(this.lexer.yytext),o.push(this.lexer.yylloc),r.push(x[1]),m=null,g?(m=g,g=null):(u=this.lexer.yyleng,a=this.lexer.yytext,c=this.lexer.yylineno,d=this.lexer.yylloc,l>0&&l--);break;case 2:if(S=this.productions_[x[1]][1],k.$=i[i.length-S],k._$={first_line:o[o.length-(S||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(S||1)].first_column,last_column:o[o.length-1].last_column},y&&(k._$.range=[o[o.length-(S||1)].range[0],o[o.length-1].range[1]]),b=this.performAction.apply(k,[a,u,c,this.yy,x[1],i,o].concat(p)),"undefined"!=typeof b)return b;S&&(r=r.slice(0,-1*S*2),i=i.slice(0,-1*S),o=o.slice(0,-1*S)),r.push(this.productions_[x[1]][0]),i.push(k.$),o.push(k._$),w=s[r[r.length-2]][r[r.length-1]],r.push(w);break;case 3:return!0}}return!0}},n=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(e=this.test_match(n,i[o]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 12;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),11;case 3:return 12;case 4:return 12;case 5:return"bar";case 6:return 13;case 7:return 14;case 8:return 15;case 9:return 16;case 10:return 7;case 11:return 17;case 12:return 5}},rules:[/^(?:\s+)/,/^(?:([a-zA-Z][a-zA-Z0-9_-]*))/,/^(?:\[([a-zA-Z][a-zA-Z0-9_-]*)\])/,/^(?:'[^']*')/,/^(?:\.)/,/^(?:bar\b)/,/^(?:\()/,/^(?:\))/,/^(?:\*)/,/^(?:\?)/,/^(?:\|)/,/^(?:\+)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12],inclusive:!0}}};return e}();return t.lexer=n,e.prototype=t,t.Parser=e,new e}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(336).readFileSync(n(337).normalize(r[1]),"utf8");return t.parser.parse(i)},"undefined"!=typeof r&&n.c[0]===r&&t.main(e.argv.slice(1))}).call(t,n(330),n(335)(e))},function(e,t,n){/*! Copyright (c) 2011, Lloyd Hilaiel, ISC License */ -!function(e){function t(e){try{return JSON&&JSON.parse?JSON.parse(e):new Function("return "+e)()}catch(e){n("ijs",e.message)}}function n(e,t){throw new Error(_[e]+(t&&" in '"+t+"'"))}function r(e,r){r||(r=0);var i=w.exec(e.substr(r));if(i){r+=i[0].length;var o;return i[1]?o=[r," "]:i[2]?o=[r,i[0]]:i[3]?o=[r,S.typ,i[0]]:i[4]?o=[r,S.psc,i[0]]:i[5]?o=[r,S.psf,i[0]]:i[6]?n("upc",e):i[8]?o=[r,i[7]?S.ide:S.str,t(i[8])]:i[9]?n("ujs",e):i[10]&&(o=[r,S.ide,i[10].replace(/\\([^\r\n\f0-9a-fA-F])/g,"$1")]),o}}function i(e,t){return typeof e===t}function o(e,n){var r,i=k.exec(e.substr(n));if(i)return n+=i[0].length,r=i[1]||i[2]||i[3]||i[5]||i[6],i[1]||i[2]||i[3]?[n,0,t(r)]:i[4]?[n,0,void 0]:[n,r]}function s(e,t){t||(t=0);var r,i=o(e,t);if(i&&"("===i[1]){r=s(e,i[0]);var a=o(e,r[0]);a&&")"===a[1]||n("epex",e),t=a[0],r=["(",r[1]]}else!i||i[1]&&"x"!=i[1]?n("ee",e+" - "+(i[1]&&i[1])):(r="x"===i[1]?void 0:i[2],t=i[0]);var c=o(e,t);if(!c||")"==c[1])return[t,r];"x"!=c[1]&&c[1]||n("bop",e+" - "+(c[1]&&c[1]));var u=s(e,c[0]);t=u[0],u=u[1];var l;if("object"!=typeof u||"("===u[0]||A[c[1]][0]=A[u[0][1]][0];)u=u[0];u[0]=[r,c[1],u[0]]}return[t,l]}function a(e,t){function n(e){return"object"!=typeof e||null===e?e:"("===e[0]?n(e[1]):[n(e[0]),e[1],n(e[2])]}var r=s(e,t?t:0);return[r[0],n(r[1])]}function c(e,t){if(void 0===e)return t;if(null===e||"object"!=typeof e)return e;var n=c(e[0],t),r=c(e[2],t);return A[e[1]][1](n,r)}function u(e,t,i,o){i||(o={});var s,a,c=[];for(t||(t=0);;){var u=f(e,t,o);if(c.push(u[1]),u=r(e,t=u[0]),u&&" "===u[1]&&(u=r(e,t=u[0])),!u)break;if(">"===u[1]||"~"===u[1])"~"===u[1]&&(o.usesSiblingOp=!0),c.push(u[1]),t=u[0];else if(","===u[1])void 0===s?s=[",",c]:s.push(c),c=[],t=u[0];else if(")"===u[1]){i||n("ucp",u[1]),a=1,t=u[0];break}}i&&!a&&n("mcp",e),s&&s.push(c);var l;return l=!i&&o.usesSiblingOp?h(s?s:c):s?s:c,[t,l]}function l(e){for(var t,n=[],r=0;r"!=e[r-2])&&(t=e.slice(0,r-1),t=t.concat([{has:[[{pc:":root"},">",e[r-1]]]},">"]),t=t.concat(e.slice(r+1)),n.push(t)),r>1){var i=">"===e[r-2]?r-3:r-2;t=e.slice(0,i);var o={};for(var s in e[i])e[i].hasOwnProperty(s)&&(o[s]=e[i][s]);o.has||(o.has=[]),o.has.push([{pc:":root"},">",e[r-1]]),t=t.concat(o,">",e.slice(r+1)),n.push(t)}break}return r==e.length?e:n.length>1?[","].concat(n):n[0]}function h(e){if(","===e[0]){for(var t=[","],n=n;n"===t[0]?t[1]:t[0],u=!0;if(a.type&&(u=u&&a.type===d(e)),a.id&&(u=u&&a.id===n),u&&a.pf&&(":nth-last-child"===a.pf?r=i-r:r++,0===a.a?u=a.b===r:(o=(r-a.b)%a.a,u=!o&&r*a.a+a.b>=0)),u&&a.has)for(var l=function(){throw 42},h=0;h"!==t[0]&&":root"!==t[0].pc&&s.push(t),u&&(">"===t[0]?t.length>2&&(u=!1,s.push(t.slice(2))):t.length>1&&(u=!1,s.push(t.slice(1)))),[u,s]}function m(e,t,n,r,i,o){var s,a,c=","===e[0]?e.slice(1):[e],u=[],l=!1,h=0,f=0;for(h=0;h=1&&u.unshift(","),p(t))for(h=0;h\\)\\(])|(string|boolean|null|array|object|number)|(:(?:root|first-child|last-child|only-child))|(:(?:nth-child|nth-last-child|has|expr|val|contains))|(:\\w+)|(?:(\\.)?(\\"(?:[^\\\\\\"]|\\\\[^\\"])*\\"))|(\\")|\\.((?:[_a-zA-Z]|[^\\0-\\0177]|\\\\[^\\r\\n\\f0-9a-fA-F])(?:[_a-zA-Z0-9\\-]|[^\\u0000-\\u0177]|(?:\\\\[^\\r\\n\\f0-9a-fA-F]))*))'),E=/^\s*\(\s*(?:([+\-]?)([0-9]*)n\s*(?:([+\-])\s*([0-9]))?|(odd|even)|([+\-]?[0-9]+))\s*\)/,k=new RegExp('^\\s*(?:(true|false|null)|(-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)|("(?:[^\\]|\\[^"])*")|(x)|(&&|\\|\\||[\\$\\^<>!\\*]=|[=+\\-*/%<>])|([\\(\\)]))'),A={"*":[9,function(e,t){return e*t}],"/":[9,function(e,t){return e/t}],"%":[9,function(e,t){return e%t}],"+":[7,function(e,t){return e+t}],"-":[7,function(e,t){return e-t}],"<=":[5,function(e,t){return i(e,"number")&&i(t,"number")&&e<=t}],">=":[5,function(e,t){return i(e,"number")&&i(t,"number")&&e>=t}],"$=":[5,function(e,t){return i(e,"string")&&i(t,"string")&&e.lastIndexOf(t)===e.length-t.length}],"^=":[5,function(e,t){return i(e,"string")&&i(t,"string")&&0===e.indexOf(t)}],"*=":[5,function(e,t){return i(e,"string")&&i(t,"string")&&e.indexOf(t)!==-1}],">":[5,function(e,t){return i(e,"number")&&i(t,"number")&&e>t}],"<":[5,function(e,t){return i(e,"number")&&i(t,"number")&&e=48&&e<=57}function r(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function i(e){return"01234567".indexOf(e)>=0}function o(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function s(e){return 10===e||13===e||8232===e||8233===e}function a(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&nt.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function c(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&nt.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function u(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function l(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function h(e){return"eval"===e||"arguments"===e}function f(e){if(ot&&l(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function p(e,n,r,i,o){var s,a;t("number"==typeof r,"Comment must have valid position"),ft.lastCommentStart>=r||(ft.lastCommentStart=r,s={type:e,value:n},pt.range&&(s.range=[r,i]),pt.loc&&(s.loc=o),pt.comments.push(s),pt.attachComment&&(a={comment:s,leading:null,trailing:null,range:[r,i]},pt.pendingComments.push(a)))}function d(e){var t,n,r,i;for(t=st-e,n={start:{line:at,column:st-ct-e}};st=ut&&M({},tt.UnexpectedToken,"ILLEGAL");else if(42===n){if(47===it.charCodeAt(st+1))return++st,++st,void(pt.comments&&(r=it.slice(e+2,st-2),t.end={line:at,column:st-ct},p("Block",r,e,st,t)));++st}else++st;M({},tt.UnexpectedToken,"ILLEGAL")}function m(){var e,t;for(t=0===st;st"===s&&">"===t&&">"===n&&"="===r?(st+=4,{type:He.Punctuator,value:">>>=",lineNumber:at,lineStart:ct,range:[i,st]}):">"===s&&">"===t&&">"===n?(st+=3,{type:He.Punctuator,value:">>>",lineNumber:at,lineStart:ct,range:[i,st]}):"<"===s&&"<"===t&&"="===n?(st+=3,{type:He.Punctuator,value:"<<=",lineNumber:at,lineStart:ct,range:[i,st]}):">"===s&&">"===t&&"="===n?(st+=3,{type:He.Punctuator,value:">>=",lineNumber:at,lineStart:ct,range:[i,st]}):s===t&&"+-<>&|".indexOf(s)>=0?(st+=2,{type:He.Punctuator,value:s+t,lineNumber:at,lineStart:ct,range:[i,st]}):"<>=!+-*%&|^/".indexOf(s)>=0?(++st,{type:He.Punctuator,value:s,lineNumber:at,lineStart:ct,range:[i,st]}):void M({},tt.UnexpectedToken,"ILLEGAL")}function S(e){for(var t="";st=0&&st0&&(r=pt.tokens[pt.tokens.length-1],r.range[0]===e&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||pt.tokens.pop())),pt.tokens.push({type:"RegularExpression",value:n.literal,range:[e,st],loc:t})),n}function O(e){return e.type===He.Identifier||e.type===He.Keyword||e.type===He.BooleanLiteral||e.type===He.NullLiteral}function I(){var e,t;if(e=pt.tokens[pt.tokens.length-1],!e)return C();if("Punctuator"===e.type){if("]"===e.value)return _();if(")"===e.value)return t=pt.tokens[pt.openParenToken-1],!t||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?_():C();if("}"===e.value){if(pt.tokens[pt.openCurlyToken-3]&&"Keyword"===pt.tokens[pt.openCurlyToken-3].type){if(t=pt.tokens[pt.openCurlyToken-4],!t)return _()}else{if(!pt.tokens[pt.openCurlyToken-4]||"Keyword"!==pt.tokens[pt.openCurlyToken-4].type)return _();if(t=pt.tokens[pt.openCurlyToken-5],!t)return C()}return Xe.indexOf(t.value)>=0?_():C()}return C()}return"Keyword"===e.type?C():_()}function N(){var e;return m(),st>=ut?{type:He.EOF,lineNumber:at,lineStart:ct,range:[st,st]}:(e=it.charCodeAt(st),40===e||41===e||58===e?_():39===e||34===e?k():a(e)?b():46===e?n(it.charCodeAt(st+1))?E():_():n(e)?E():pt.tokenize&&47===e?I():_())}function L(){var e,t,n,r,i;return m(),e=st,t={start:{line:at,column:st-ct}},n=N(),t.end={line:at,column:st-ct},n.type!==He.EOF&&(r=[n.range[0],n.range[1]],i=it.slice(n.range[0],n.range[1]),pt.tokens.push({type:Ke[n.type],value:i,range:r,loc:t})),n}function T(){var e;return e=ht,st=e.range[1],at=e.lineNumber,ct=e.lineStart,ht="undefined"!=typeof pt.tokens?L():N(),st=e.range[1],at=e.lineNumber,ct=e.lineStart,e}function P(){var e,t,n;e=st,t=at,n=ct,ht="undefined"!=typeof pt.tokens?L():N(),st=e,at=t,ct=n}function $(){var e,t,n,r;return e=st,t=at,n=ct,m(),r=at!==t,st=e,at=t,ct=n,r}function M(e,n){var r,i=Array.prototype.slice.call(arguments,2),o=n.replace(/%(\d)/g,function(e,n){return t(n>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function U(){var e;return 59===it.charCodeAt(st)?void T():(e=at,m(),at===e?B(";")?void T():void(ht.type===He.EOF||B("}")||R(ht)):void 0)}function z(e){return e.type===Qe.Identifier||e.type===Qe.MemberExpression}function V(){var e=[];for(F("[");!B("]");)B(",")?(T(),e.push(null)):(e.push(le()),B("]")||F(","));return F("]"),lt.createArrayExpression(e)}function W(e,t){var n,r;return n=ot,lt.markStart(),r=Re(),t&&ot&&h(e[0].name)&&j(t,tt.StrictParamName),ot=n,lt.markEnd(lt.createFunctionExpression(null,e,[],r))}function J(){var e;return lt.markStart(),e=T(),e.type===He.StringLiteral||e.type===He.NumericLiteral?(ot&&e.octal&&j(e,tt.StrictOctalLiteral),lt.markEnd(lt.createLiteral(e))):lt.markEnd(lt.createIdentifier(e.value))}function Y(){var e,t,n,r,i;return e=ht,lt.markStart(),e.type===He.Identifier?(n=J(),"get"!==e.value||B(":")?"set"!==e.value||B(":")?(F(":"),r=le(),lt.markEnd(lt.createProperty("init",n,r))):(t=J(),F("("),e=ht,e.type!==He.Identifier?(F(")"),j(e,tt.UnexpectedToken,e.value),r=W([])):(i=[de()],F(")"),r=W(i,e)),lt.markEnd(lt.createProperty("set",t,r))):(t=J(),F("("),F(")"),r=W([]),lt.markEnd(lt.createProperty("get",t,r)))):e.type!==He.EOF&&e.type!==He.Punctuator?(t=J(),F(":"),r=le(),lt.markEnd(lt.createProperty("init",t,r))):void R(e)}function Z(){var e,t,n,r,i=[],o={},s=String;for(F("{");!B("}");)e=Y(),t=e.key.type===Qe.Identifier?e.key.name:s(e.key.value),r="init"===e.kind?et.Data:"get"===e.kind?et.Get:et.Set,n="$"+t,Object.prototype.hasOwnProperty.call(o,n)?(o[n]===et.Data?ot&&r===et.Data?j({},tt.StrictDuplicateProperty):r!==et.Data&&j({},tt.AccessorDataProperty):r===et.Data?j({},tt.AccessorDataProperty):o[n]&r&&j({},tt.AccessorGetSet),o[n]|=r):o[n]=r,i.push(e),B("}")||F(",");return F("}"),lt.createObjectExpression(i)}function H(){var e;return F("("),e=he(),F(")"),e}function K(){var e,t,n;return B("(")?H():(e=ht.type,lt.markStart(),e===He.Identifier?n=lt.createIdentifier(T().value):e===He.StringLiteral||e===He.NumericLiteral?(ot&&ht.octal&&j(ht,tt.StrictOctalLiteral),n=lt.createLiteral(T())):e===He.Keyword?G("this")?(T(),n=lt.createThisExpression()):G("function")&&(n=Be()):e===He.BooleanLiteral?(t=T(),t.value="true"===t.value,n=lt.createLiteral(t)):e===He.NullLiteral?(t=T(),t.value=null,n=lt.createLiteral(t)):B("[")?n=V():B("{")?n=Z():(B("/")||B("/="))&&(n="undefined"!=typeof pt.tokens?lt.createLiteral(C()):lt.createLiteral(A()),P()),n?lt.markEnd(n):void R(T()))}function X(){var e=[];if(F("("),!B(")"))for(;st":case"<=":case">=":case"instanceof":n=7;break;case"in":n=t?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function ce(){var e,t,n,r,i,o,s,a,c,u;if(e=Je(),c=se(),r=ht,i=ae(r,ft.allowIn),0===i)return c;for(r.prec=i,T(),t=[e,Je()],s=se(),o=[c,r,s];(i=ae(ht,ft.allowIn))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)s=o.pop(),a=o.pop().value,c=o.pop(),n=lt.createBinaryExpression(a,c,s),t.pop(),e=t.pop(),e&&e.apply(n),o.push(n),t.push(e);r=T(),r.prec=i,o.push(r),t.push(Je()),n=se(),o.push(n)}for(u=o.length-1,n=o[u],t.pop();u>1;)n=lt.createBinaryExpression(o[u-1].value,o[u-2],n),u-=2,e=t.pop(),e&&e.apply(n);return n}function ue(){var e,t,n,r;return lt.markStart(),e=ce(),B("?")?(T(),t=ft.allowIn,ft.allowIn=!0,n=le(),ft.allowIn=t,F(":"),r=le(),e=lt.markEnd(lt.createConditionalExpression(e,n,r))):lt.markEnd({}),e}function le(){var e,t,n,r;return e=ht,lt.markStart(),r=t=ue(),q()&&(z(t)||j({},tt.InvalidLHSInAssignment),ot&&t.type===Qe.Identifier&&h(t.name)&&j(e,tt.StrictLHSAssignment),e=T(),n=le(),r=lt.createAssignmentExpression(e.value,t,n)),lt.markEndIf(r)}function he(){var e;if(lt.markStart(),e=le(),B(","))for(e=lt.createSequenceExpression([e]);st0?1:0,ct=0,ut=it.length,ht=null,ft={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},pt={},t=t||{},t.tokens=!0,pt.tokens=[],pt.tokenize=!0,pt.openParenToken=-1,pt.openCurlyToken=-1,pt.range="boolean"==typeof t.range&&t.range,pt.loc="boolean"==typeof t.loc&&t.loc,"boolean"==typeof t.comment&&t.comment&&(pt.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(pt.errors=[]),ut>0&&"undefined"==typeof it[0]&&e instanceof String&&(it=e.valueOf());try{if(P(),ht.type===He.EOF)return pt.tokens;for(r=T();ht.type!==He.EOF;)try{r=T()}catch(e){if(r=ht,pt.errors){pt.errors.push(e);break}throw e}Ve(),i=pt.tokens,"undefined"!=typeof pt.comments&&(i.comments=pt.comments),"undefined"!=typeof pt.errors&&(i.errors=pt.errors)}catch(e){throw e}finally{pt={}}return i}function Ze(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),lt=rt,it=e,st=0,at=it.length>0?1:0,ct=0,ut=it.length,ht=null,ft={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,markerStack:[]},pt={},"undefined"!=typeof t&&(pt.range="boolean"==typeof t.range&&t.range,pt.loc="boolean"==typeof t.loc&&t.loc,pt.attachComment="boolean"==typeof t.attachComment&&t.attachComment,pt.loc&&null!==t.source&&void 0!==t.source&&(pt.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(pt.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(pt.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(pt.errors=[]),pt.attachComment&&(pt.range=!0,pt.pendingComments=[],pt.comments=[])),ut>0&&"undefined"==typeof it[0]&&e instanceof String&&(it=e.valueOf());try{n=Ue(),"undefined"!=typeof pt.comments&&(n.comments=pt.comments),"undefined"!=typeof pt.tokens&&(Ve(),n.tokens=pt.tokens),"undefined"!=typeof pt.errors&&(n.errors=pt.errors),pt.attachComment&&ze()}catch(e){throw e}finally{pt={}}return n}var He,Ke,Xe,Qe,et,tt,nt,rt,it,ot,st,at,ct,ut,lt,ht,ft,pt;He={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},Ke={},Ke[He.BooleanLiteral]="Boolean",Ke[He.EOF]="",Ke[He.Identifier]="Identifier",Ke[He.Keyword]="Keyword",Ke[He.NullLiteral]="Null",Ke[He.NumericLiteral]="Numeric",Ke[He.Punctuator]="Punctuator",Ke[He.StringLiteral]="String",Ke[He.RegularExpression]="RegularExpression",Xe=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],Qe={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},et={Data:1,Get:2,Set:4},tt={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},nt={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},rt={name:"SyntaxTree",markStart:function(){m(),pt.loc&&(ft.markerStack.push(st-ct),ft.markerStack.push(at)),pt.range&&ft.markerStack.push(st)},processComment:function(e){var t,n,r,i,o;if("undefined"!=typeof e.type&&e.type!==Qe.Program)for(P(),t=0;t=n.comment.range[1]&&(o=n.leading,o?(r=o.range[0],i=o.range[1]-r,e.range[0]<=r&&e.range[1]-e.range[0]>=i&&(n.leading=e)):n.leading=e),e.range[1]<=n.comment.range[0]&&(o=n.trailing,o?(r=o.range[0],i=o.range[1]-r,e.range[0]<=r&&e.range[1]-e.range[0]>=i&&(n.trailing=e)):n.trailing=e)},markEnd:function(e){return pt.range&&(e.range=[ft.markerStack.pop(),st]),pt.loc&&(e.loc={start:{line:ft.markerStack.pop(),column:ft.markerStack.pop()},end:{line:at,column:st-ct}},this.postProcess(e)),pt.attachComment&&this.processComment(e),e},markEndIf:function(e){return e.range||e.loc?(pt.loc&&(ft.markerStack.pop(),ft.markerStack.pop()),pt.range&&ft.markerStack.pop()):this.markEnd(e),e},postProcess:function(e){return pt.source&&(e.loc.source=pt.source),e},createArrayExpression:function(e){return{type:Qe.ArrayExpression,elements:e}},createAssignmentExpression:function(e,t,n){return{type:Qe.AssignmentExpression,operator:e,left:t,right:n}},createBinaryExpression:function(e,t,n){var r="||"===e||"&&"===e?Qe.LogicalExpression:Qe.BinaryExpression;return{type:r,operator:e,left:t,right:n}},createBlockStatement:function(e){return{type:Qe.BlockStatement,body:e}},createBreakStatement:function(e){return{type:Qe.BreakStatement,label:e}},createCallExpression:function(e,t){return{type:Qe.CallExpression,callee:e,arguments:t}},createCatchClause:function(e,t){return{type:Qe.CatchClause,param:e,body:t}},createConditionalExpression:function(e,t,n){return{type:Qe.ConditionalExpression,test:e,consequent:t,alternate:n}},createContinueStatement:function(e){return{type:Qe.ContinueStatement,label:e}},createDebuggerStatement:function(){return{type:Qe.DebuggerStatement}},createDoWhileStatement:function(e,t){return{type:Qe.DoWhileStatement,body:e,test:t}},createEmptyStatement:function(){return{type:Qe.EmptyStatement}},createExpressionStatement:function(e){return{type:Qe.ExpressionStatement,expression:e}},createForStatement:function(e,t,n,r){return{type:Qe.ForStatement,init:e,test:t,update:n,body:r}},createForInStatement:function(e,t,n){return{type:Qe.ForInStatement,left:e,right:t,body:n,each:!1}},createFunctionDeclaration:function(e,t,n,r){return{type:Qe.FunctionDeclaration,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(e,t,n,r){return{type:Qe.FunctionExpression,id:e,params:t,defaults:n,body:r,rest:null,generator:!1,expression:!1}},createIdentifier:function(e){return{type:Qe.Identifier,name:e}},createIfStatement:function(e,t,n){return{type:Qe.IfStatement,test:e,consequent:t,alternate:n}},createLabeledStatement:function(e,t){return{type:Qe.LabeledStatement,label:e,body:t}},createLiteral:function(e){return{type:Qe.Literal,value:e.value,raw:it.slice(e.range[0],e.range[1])}},createMemberExpression:function(e,t,n){return{type:Qe.MemberExpression,computed:"["===e,object:t,property:n}},createNewExpression:function(e,t){return{type:Qe.NewExpression,callee:e,arguments:t}},createObjectExpression:function(e){return{type:Qe.ObjectExpression,properties:e}},createPostfixExpression:function(e,t){return{type:Qe.UpdateExpression,operator:e,argument:t,prefix:!1}},createProgram:function(e){return{type:Qe.Program,body:e}},createProperty:function(e,t,n){return{type:Qe.Property,key:t,value:n,kind:e}},createReturnStatement:function(e){return{type:Qe.ReturnStatement,argument:e}},createSequenceExpression:function(e){return{type:Qe.SequenceExpression,expressions:e}},createSwitchCase:function(e,t){return{type:Qe.SwitchCase,test:e,consequent:t}},createSwitchStatement:function(e,t){return{type:Qe.SwitchStatement,discriminant:e,cases:t}},createThisExpression:function(){return{type:Qe.ThisExpression}},createThrowStatement:function(e){return{type:Qe.ThrowStatement,argument:e}},createTryStatement:function(e,t,n,r){return{type:Qe.TryStatement,block:e,guardedHandlers:t,handlers:n,finalizer:r}},createUnaryExpression:function(e,t){return"++"===e||"--"===e?{type:Qe.UpdateExpression,operator:e,argument:t,prefix:!0}:{type:Qe.UnaryExpression,operator:e,argument:t,prefix:!0}},createVariableDeclaration:function(e,t){return{type:Qe.VariableDeclaration,declarations:e,kind:t}},createVariableDeclarator:function(e,t){return{type:Qe.VariableDeclarator,id:e,init:t}},createWhileStatement:function(e,t){return{type:Qe.WhileStatement,test:e,body:t}},createWithStatement:function(e,t){return{type:Qe.WithStatement,object:e,body:t}}},We.prototype={constructor:We,apply:function(e){pt.range&&(e.range=[this.startIndex,st]),pt.loc&&(e.loc={start:{line:this.startLine,column:this.startColumn},end:{line:at,column:st-ct}},e=lt.postProcess(e)),pt.attachComment&<.processComment(e)}},e.version="1.1.1",e.tokenize=Ye,e.parse=Ze,e.Syntax=function(){var e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in Qe)Qe.hasOwnProperty(e)&&(t[e]=Qe[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},function(e,t,n){(function(e){!function(){"use strict";function r(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1,parenthesizedComprehensionBlock:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null}}function i(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function o(e){return/[\r\n]/g.test(e)}function s(e){var t=e.length;return t&&U.code.isLineTerminator(e.charCodeAt(t-1))}function a(e,t){function n(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}var r,i;for(r in t)t.hasOwnProperty(r)&&(i=t[r],n(i)?n(e[r])?a(e[r],i):e[r]=a({},i):e[r]=i);return e}function c(e){var t,n,r,i,o;if(e!==e)throw new Error("Numeric literal whose value is NaN");if(e<0||0===e&&1/e<0)throw new Error("Numeric literal whose value is negative");if(e===1/0)return J?"null":Y?"1e400":"1e+400";if(t=""+e,!Y||t.length<3)return t;for(n=t.indexOf("."),J||48!==t.charCodeAt(0)||1!==n||(n=0,t=t.slice(1)),r=t,t=t.replace("e+","e"),i=0,(o=r.indexOf("e"))>0&&(i=+r.slice(o+1),r=r.slice(0,o)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),o=0;48===r.charCodeAt(r.length+o-1);)--o;return 0!==o&&(i-=o,r=r.slice(0,o)),0!==i&&(r+="e"+i),(r.length1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length255?"u"+"0000".slice(n.length)+n:0!==e||U.code.isDecimalDigit(t)?11===e?"x0B":"x"+"00".slice(n.length)+n:"0"}return r}function f(e){var t="\\";switch(e){case 92:t+="\\";break;case 10:t+="n";break;case 13:t+="r";break;case 8232:t+="u2028";break;case 8233:t+="u2029";break;default:throw new Error("Incorrectly classified character")}return t}function p(e){var t,n,r,i;for(i="double"===H?'"':"'",t=0,n=e.length;t=32&&r<=126)){s+=h(r,e.charCodeAt(t+1));continue}}s+=String.fromCharCode(r)}if(i=!("double"===H||"auto"===H&&c=0&&!U.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}function S(e,t){var n,r,i,o,s,a,c,u;for(n=e.split(/\r\n|[\r\n]/),a=Number.MAX_VALUE,r=1,i=n.length;rs&&(a=s)}for("undefined"!=typeof t?(c=V,"*"===n[1][a]&&(t+=" "),V=t):(1&a&&--a,c=V),r=1,i=n.length;r0){for(a=t,o=e.leadingComments[0],t=[],ne&&e.type===F.Program&&0===e.body.length&&t.push("\n"),t.push(w(o)),s(m(t).toString())||t.push("\n"),n=1,r=e.leadingComments.length;n")),e.expression?(t.push(Q),i=M(e.body,{precedence:D.Assignment,allowIn:!0,allowCall:!0}),"{"===i.toString().charAt(0)&&(i=["(",i,")"]),t.push(i)):t.push(A(e.body,!1,!0)),t}function P(e,t,n){var r=["for"+Q+"("];return b(function(){t.left.type===F.VariableDeclaration?b(function(){r.push(t.left.kind+g()),r.push(j(t.left.declarations[0],{allowIn:!1}))}):r.push(M(t.left,{precedence:D.Call,allowIn:!0,allowCall:!0})),r=v(r,e),r=[v(r,M(t.right,{precedence:D.Sequence,allowIn:!0,allowCall:!0})),")"]}),r.push(A(t.body,n)),r}function $(e){var t;if(e.hasOwnProperty("raw")&&oe&&ie.raw)try{if(t=oe(e.raw).body[0].expression,t.type===F.Literal&&t.value===e.value)return e.raw}catch(e){}return null===e.value?"null":"string"==typeof e.value?d(e.value):"number"==typeof e.value?c(e.value):"boolean"==typeof e.value?e.value?"true":"false":l(e.value)}function M(e,t){var n,r,i,a,c,u,l,h,f,p,d,y,x,_,S,w;if(r=t.precedence,y=t.allowIn,x=t.allowCall,i=e.type||t.type,ie.verbatim&&e.hasOwnProperty(ie.verbatim))return I(e,t);switch(i){case F.SequenceExpression:for(n=[],y|=D.Sequence0){for(n.push("("),c=0;c=2&&48===l.charCodeAt(0))&&n.push(".")),n.push("."),n.push(N(e.property))),n=k(n,D.Member,r);break;case F.UnaryExpression:l=M(e.argument,{precedence:D.Unary,allowIn:!0,allowCall:!0}),""===Q?n=v(e.operator,l):(n=[e.operator],e.operator.length>2?n=v(n,l):(p=m(n).toString(),f=p.charCodeAt(p.length-1),d=l.toString().charCodeAt(0),(43===f||45===f)&&f===d||U.code.isIdentifierPart(f)&&U.code.isIdentifierPart(d)?(n.push(g()),n.push(l)):n.push(l))),n=k(n,D.Unary,r);break;case F.YieldExpression:n=e.delegate?"yield*":"yield",e.argument&&(n=v(n,M(e.argument,{precedence:D.Yield,allowIn:!0,allowCall:!0}))),n=k(n,D.Yield,r);break;case F.UpdateExpression:n=e.prefix?k([e.operator,M(e.argument,{precedence:D.Unary,allowIn:!0,allowCall:!0})],D.Unary,r):k([M(e.argument,{precedence:D.Postfix,allowIn:!0,allowCall:!0}),e.operator],D.Postfix,r);break;case F.FunctionExpression:w=e.generator&&!ie.moz.starlessGenerator,n=w?"function*":"function",n=e.id?[n,w?Q:g(),N(e.id),T(e)]:[n+Q,T(e)];break;case F.ArrayPattern:case F.ArrayExpression:if(!e.elements.length){n="[]";break}h=e.elements.length>1,n=["[",h?X:""],b(function(t){for(c=0,u=e.elements.length;c1,b(function(){l=M(e.properties[0],{precedence:D.Sequence,allowIn:!0,allowCall:!0,type:F.Property})}),!h&&!o(m(l).toString())){n=["{",Q,l,Q,"}"];break}b(function(t){if(n=["{",X,t,l],h)for(n.push(","+X),c=1,u=e.properties.length;c0||ie.moz.comprehensionExpressionStartsWithAssignment?n=v(n,l):n.push(l)}),e.filter&&(n=v(n,"if"+Q),l=M(e.filter,{precedence:D.Sequence,allowIn:!0,allowCall:!0}),n=ie.moz.parenthesizedComprehensionBlock?v(n,["(",l,")"]):v(n,l)),ie.moz.comprehensionExpressionStartsWithAssignment||(l=M(e.body,{precedence:D.Assignment,allowIn:!0,allowCall:!0}),n=v(n,l)),n.push(i===F.GeneratorExpression?")":"]");break;case F.ComprehensionBlock:l=e.left.type===F.VariableDeclaration?[e.left.kind,g(),j(e.left.declarations[0],{allowIn:!1})]:M(e.left,{precedence:D.Call,allowIn:!0,allowCall:!0}),l=v(l,e.of?"of":"in"),l=v(l,M(e.right,{precedence:D.Sequence,allowIn:!0,allowCall:!0})),n=ie.moz.parenthesizedComprehensionBlock?["for"+Q+"(",l,")"]:v("for"+Q,l);break;default:throw new Error("Unknown expression type: "+e.type)}return ie.comment&&(n=E(e,n)),m(n,e)}function j(e,t){var n,r,i,o,a,c,u,l,h,f,d;switch(c=!0,f=";",u=!1,l=!1,t&&(c=void 0===t.allowIn||t.allowIn,te||t.semicolonOptional!==!0||(f=""),u=t.functionBody,l=t.directiveContext),e.type){case F.BlockStatement:i=["{",X],b(function(){for(n=0,r=e.body.length;n=0||re&&l&&e.expression.type===F.Literal&&"string"==typeof e.expression.value?i=["(",i,")"+f]:i.push(f);break;case F.ImportDeclaration:0===e.specifiers.length?i=["import",Q,$(e.source)]:("default"===e.kind?i=["import",g(),e.specifiers[0].id.name,g()]:(i=["import",Q,"{"],1===e.specifiers.length?(a=e.specifiers[0],i.push(Q+a.id.name),a.name&&i.push(g()+"as"+g()+a.name.name),i.push(Q+"}"+Q)):(b(function(t){var n,r;for(i.push(X),n=0,r=e.specifiers.length;n0?"\n":""],n=0;n":D.Relational,"<=":D.Relational,">=":D.Relational,in:D.Relational,instanceof:D.Relational,"<<":D.BitwiseSHIFT,">>":D.BitwiseSHIFT,">>>":D.BitwiseSHIFT,"+":D.Additive,"-":D.Additive,"*":D.Multiplicative,"%":D.Multiplicative,"/":D.Multiplicative},z=Array.isArray,z||(z=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),ae={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},ce=r().format,t.version=n(360).version,t.generate=R,t.attachComments=q.attachComments,t.Precedence=a({},D),t.browser=!1,t.FORMAT_MINIFY=ae,t.FORMAT_DEFAULTS=ce}()}).call(t,function(){return this}())},function(e,t,n){var r,i,o;!function(n,s){"use strict";i=[t],r=s,o="function"==typeof r?r.apply(t,i):r,!(void 0!==o&&(e.exports=o))}(this,function(e){"use strict";function t(){}function n(e){var t,r,i={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],"object"==typeof r&&null!==r?i[t]=n(r):i[t]=r);return i}function r(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function i(e,t){var n,r,i,o;for(r=e.length,i=0;r;)n=r>>>1,o=i+n,t(e[o])?r=n:(i=o+1,r-=n+1);return i}function o(e,t){var n,r,i,o;for(r=e.length,i=0;r;)n=r>>>1,o=i+n,t(e[o])?(i=o+1,r-=n+1):r=n;return i}function s(e,t){this.parent=e,this.key=t}function a(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function c(){}function u(e,t){var n=new c;return n.traverse(e,t)}function l(e,t){var n=new c;return n.replace(e,t)}function h(e,t){var n;return n=i(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),n-=1,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function f(e,t,r){var i,o,s,a,c=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(s=0,o=t.length;se.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),c.splice(a,1)):a+=1;return a===c.length?y.Break:c[a].extendedRange[0]>e.range[1]?y.Skip:void 0}}),a=0,u(e,{leave:function(e){for(var t;ae.range[1]?y.Skip:void 0}}),e}var p,d,y,m,g,v;p={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},d=Array.isArray,d||(d=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),t(r),t(o),m={AssignmentExpression:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","defaults","rest","body"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","body","superClass"],ClassExpression:["id","body","superClass"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","rest","body"],FunctionExpression:["id","params","defaults","rest","body"],Identifier:[],IfStatement:["test","consequent","alternate"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handlers","handler","guardedHandlers","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},g={},v={},y={Break:g,Skip:v},s.prototype.replace=function(e){this.parent[this.key]=e},c.prototype.path=function(){function e(e,t){if(d(t))for(r=0,i=t.length;r=0;)if(u=f[l],y=o[u])if(d(y))for(h=y.length;(h-=1)>=0;)y[h]&&(i=s!==p.ObjectExpression&&s!==p.ObjectPattern||"properties"!==f[l]?new a(y[h],[u,h],null,null):new a(y[h],[u,h],"Property",null),n.push(i));else n.push(new a(y,u,null,null))}}else if(i=r.pop(),c=this.__execute(t.leave,i),this.__state===g||c===g)return},c.prototype.replace=function(e,t){var n,r,i,o,c,u,l,h,f,y,x,b,_;for(this.__initialize(e,t),x={},n=this.__worklist,r=this.__leavelist,b={root:e},u=new a(e,null,null,new s(b,"root")),n.push(u),r.push(u);n.length;)if(u=n.pop(),u!==x){if(c=this.__execute(t.enter,u),void 0!==c&&c!==g&&c!==v&&(u.ref.replace(c),u.node=c),this.__state===g||c===g)return b.root;if(i=u.node,i&&(n.push(x),r.push(u),this.__state!==v&&c!==v))for(o=u.wrap||i.type,f=m[o],l=f.length;(l-=1)>=0;)if(_=f[l],y=i[_])if(d(y))for(h=y.length;(h-=1)>=0;)y[h]&&(u=o===p.ObjectExpression&&"properties"===f[l]?new a(y[h],[_,h],"Property",new s(y,h)):new a(y[h],[_,h],null,new s(y,h)),n.push(u));else n.push(new a(y,_,null,new s(i,_)))}else if(u=r.pop(),c=this.__execute(t.leave,u),void 0!==c&&c!==g&&c!==v&&u.ref.replace(c),this.__state===g||c===g)return b.root;return b.root},e.version="1.5.1-dev",e.Syntax=p,e.traverse=u,e.replace=l,e.attachComments=f,e.VisitorKeys=m,e.VisitorOption=y,e.Controller=c})},function(e,t,n){!function(){"use strict";t.code=n(348),t.keyword=n(349)}()},function(e,t){!function(){"use strict";function t(e){return e>=48&&e<=57}function n(e){return t(e)||97<=e&&e<=102||65<=e&&e<=70}function r(e){return e>=48&&e<=55}function i(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function o(e){return 10===e||13===e||8232===e||8233===e}function s(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&c.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function a(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&c.NonAsciiIdentifierPart.test(String.fromCharCode(e))}var c;c={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},e.exports={isDecimalDigit:t,isHexDigit:n,isOctalDigit:r,isWhiteSpace:i,isLineTerminator:o,isIdentifierStart:s,isIdentifierPart:a}}()},function(e,t,n){!function(){"use strict";function t(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,n){if(n&&t(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e){return"eval"===e||"arguments"===e}function s(e){var t,n,r;if(0===e.length)return!1;if(r=e.charCodeAt(0),!a.isIdentifierStart(r)||92===r)return!1;for(t=1,n=e.length;t0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},i.prototype._serializeMappings=function(){for(var e,t=0,n=1,r=0,i=0,a=0,c=0,u="",l=this._mappings.toArray(),h=0,f=l.length;h0){if(!s.compareByGeneratedPositions(e,l[h-1]))continue;u+=","}u+=o.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(u+=o.encode(this._sources.indexOf(e.source)-c),c=this._sources.indexOf(e.source),u+=o.encode(e.originalLine-1-i),i=e.originalLine-1,u+=o.encode(e.originalColumn-r),r=e.originalColumn,null!=e.name&&(u+=o.encode(this._names.indexOf(e.name)-a),a=this._names.indexOf(e.name)))}return u},i.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=s.relative(t,e));var n=s.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this)},t.SourceMapGenerator=i}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(e,t,r){function i(e){return e<0?(-e<<1)+1:(e<<1)+0}function o(e){var t=1===(1&e),n=e>>1;return t?-n:n}var s=n(353),a=5,c=1<>>=a,r>0&&(t|=l),n+=s.encode(t);while(r>0);return n},t.decode=function(e,t){var n,r,i=0,c=e.length,h=0,f=0;do{if(i>=c)throw new Error("Expected more digits in base 64 VLQ value.");r=s.decode(e.charAt(i++)),n=!!(r&l),r&=u,h+=r<=0;u--)r=a[u],"."===r?a.splice(u,1):".."===r?c++:c>0&&(""===r?(a.splice(u+1,c),c=0):(a.splice(u,2),c--));return t=a.join("/"),""===t&&(t=s?"/":"."),n?(n.path=t,o(n)):t}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),r=i(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),o(n);if(n||t.match(y))return t;if(r&&!r.host&&!r.path)return r.host=t,o(r);var a="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=a,o(r)):a}function c(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");var n=i(e);return"/"==t.charAt(0)&&n&&"/"==n.path?t.slice(1):0===t.indexOf(e+"/")?t.substr(e.length+1):t}function u(e){return"$"+e}function l(e){return e.substr(1)}function h(e,t){var n=e||"",r=t||"";return(n>r)-(n=0&&en||r==n&&o>=i||s.compareByGeneratedPositions(e,t)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var s=n(354);o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){i(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositions),this._sorted=!0),this._array},t.MappingList=o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(e,t,r){function i(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=o.getArg(t,"version"),r=o.getArg(t,"sources"),i=o.getArg(t,"names",[]),s=o.getArg(t,"sourceRoot",null),c=o.getArg(t,"sourcesContent",null),u=o.getArg(t,"mappings"),l=o.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);r=r.map(o.normalize),this._names=a.fromArray(i,!0),this._sources=a.fromArray(r,!0),this.sourceRoot=s,this.sourcesContent=c,this._mappings=u,this.file=l}var o=n(354),s=n(358),a=n(355).ArraySet,c=n(352);i.fromSourceMap=function(e){var t=Object.create(i.prototype);return t._names=a.fromArray(e._names.toArray(),!0),t._sources=a.fromArray(e._sources.toArray(),!0),t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t.__generatedMappings=e._mappings.toArray().slice(),t.__originalMappings=e._mappings.toArray().slice().sort(o.compareByOriginalPositions),t},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?o.join(this.sourceRoot,e):e},this)}}),i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__originalMappings}}),i.prototype._nextCharIsMappingSeparator=function(e){var t=e.charAt(0);return";"===t||","===t},i.prototype._parseMappings=function(e,t){for(var n,r=1,i=0,s=0,a=0,u=0,l=0,h=e,f={};h.length>0;)if(";"===h.charAt(0))r++,h=h.slice(1),i=0;else if(","===h.charAt(0))h=h.slice(1);else{if(n={},n.generatedLine=r,c.decode(h,f),n.generatedColumn=i+f.value,i=n.generatedColumn,h=f.rest,h.length>0&&!this._nextCharIsMappingSeparator(h)){if(c.decode(h,f),n.source=this._sources.at(u+f.value),u+=f.value,h=f.rest,0===h.length||this._nextCharIsMappingSeparator(h))throw new Error("Found a source, but no line and column");if(c.decode(h,f),n.originalLine=s+f.value,s=n.originalLine,n.originalLine+=1,h=f.rest,0===h.length||this._nextCharIsMappingSeparator(h))throw new Error("Found a source and line, but no column");c.decode(h,f),n.originalColumn=a+f.value,a=n.originalColumn,h=f.rest, -h.length>0&&!this._nextCharIsMappingSeparator(h)&&(c.decode(h,f),n.name=this._names.at(l+f.value),l+=f.value,h=f.rest)}this.__generatedMappings.push(n),"number"==typeof n.originalLine&&this.__originalMappings.push(n)}this.__generatedMappings.sort(o.compareByGeneratedPositions),this.__originalMappings.sort(o.compareByOriginalPositions)},i.prototype._findMapping=function(e,t,n,r,i){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return s.search(e,t,i)},i.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=o.getArg(r,"source",null);return null!=i&&null!=this.sourceRoot&&(i=o.join(this.sourceRoot,i)),{source:i,line:o.getArg(r,"originalLine",null),column:o.getArg(r,"originalColumn",null),name:o.getArg(r,"name",null)}}}return{source:null,line:null,column:null,name:null}},i.prototype.sourceContentFor=function(e){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=o.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var t;if(null!=this.sourceRoot&&(t=o.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!t.path||"/"==t.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t={source:o.getArg(e,"source"),originalLine:o.getArg(e,"line"),originalColumn:o.getArg(e,"column")};null!=this.sourceRoot&&(t.source=o.relative(this.sourceRoot,t.source));var n=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions);if(n>=0){var r=this._originalMappings[n];return{line:o.getArg(r,"generatedLine",null),column:o.getArg(r,"generatedColumn",null),lastColumn:o.getArg(r,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},i.prototype.allGeneratedPositionsFor=function(e){var t={source:o.getArg(e,"source"),originalLine:o.getArg(e,"line"),originalColumn:1/0};null!=this.sourceRoot&&(t.source=o.relative(this.sourceRoot,t.source));var n=[],r=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions);if(r>=0)for(var i=this._originalMappings[r];i&&i.originalLine===t.originalLine;)n.push({line:o.getArg(i,"generatedLine",null),column:o.getArg(i,"generatedColumn",null),lastColumn:o.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[--r];return n.reverse()},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.prototype.eachMapping=function(e,t,n){var r,s=t||null,a=n||i.GENERATED_ORDER;switch(a){case i.GENERATED_ORDER:r=this._generatedMappings;break;case i.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;r.map(function(e){var t=e.source;return null!=t&&null!=c&&(t=o.join(c,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name}}).forEach(e,s)},t.SourceMapConsumer=i}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(e,t,n){function r(e,t,n,i,o){var s=Math.floor((t-e)/2)+e,a=o(n,i[s],!0);return 0===a?s:a>0?t-s>1?r(s,t,n,i,o):s:s-e>1?r(e,s,n,i,o):e<0?-1:e}t.search=function(e,t,n){return 0===t.length?-1:r(-1,t.length,e,t,n)}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(e,t,r){function i(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[u]=!0,null!=r&&this.add(r)}var o=n(351).SourceMapGenerator,s=n(354),a=/(\r?\n)/,c=10,u="$$$isSourceNode$$$";i.fromStringWithSourceMap=function(e,t,n){function r(e,t){if(null===e||void 0===e.source)o.add(t);else{var r=n?s.join(n,e.source):e.source;o.add(new i(e.originalLine,e.originalColumn,r,t,e.name))}}var o=new i,c=e.split(a),u=function(){var e=c.shift(),t=c.shift()||"";return e+t},l=1,h=0,f=null;return t.eachMapping(function(e){if(null!==f){if(!(l0&&(f&&r(f,u()),o.add(c.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=s.join(n,e)),o.setSourceContent(e,r))}),o},i.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},i.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},i.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n=0.10.0"},homepage:"http://github.com/Constellation/escodegen",licenses:[{type:"BSD",url:"http://github.com/Constellation/escodegen/raw/master/LICENSE.BSD"}],main:"escodegen.js",maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",url:"http://github.com/Constellation"}],name:"escodegen",optionalDependencies:{"source-map":"~0.1.33"},repository:{type:"git",url:"git+ssh://git@github.com/Constellation/escodegen.git"},scripts:{build:"cjsify -a path: tools/entry-point.js > escodegen.browser.js","build-min":"cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",lint:"gulp lint",release:"node tools/release.js",test:"gulp travis","unit-test":"gulp test"},version:"1.3.3"}},function(e,t){e.exports={_args:[["jison@0.4.18","/home/fox/DEV/GDevelop/Extensions/DialogueTree/bondage.js"]],_from:"jison@0.4.18",_id:"jison@0.4.18",_inBundle:!1,_integrity:"sha512-FKkCiJvozgC7VTHhMJ00a0/IApSxhlGsFIshLW6trWJ8ONX2TQJBBz6DlcO1Gffy4w9LT+uL+PA+CVnUSJMF7w==",_location:"/jison",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"jison@0.4.18",name:"jison",escapedName:"jison",rawSpec:"0.4.18",saveSpec:null,fetchSpec:"0.4.18"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/jison/-/jison-0.4.18.tgz",_spec:"0.4.18",_where:"/home/fox/DEV/GDevelop/Extensions/DialogueTree/bondage.js",author:{name:"Zach Carter",email:"zach@carter.name",url:"http://zaa.ch"},bin:{jison:"lib/cli.js"},bugs:{url:"http://github.com/zaach/jison/issues",email:"jison@librelist.com"},dependencies:{JSONSelect:"0.4.0",cjson:"0.3.0","ebnf-parser":"0.1.10",escodegen:"1.3.x",esprima:"1.1.x","jison-lex":"0.3.x","lex-parser":"~0.1.3",nomnom:"1.5.2"},description:"A parser generator with Bison's API",devDependencies:{browserify:"2.x.x",jison:"0.4.x",test:"0.6.x","uglify-js":"~2.4.0"},engines:{node:">=0.4"},homepage:"http://jison.org",keywords:["jison","bison","yacc","parser","generator","lexer","flex","tokenizer","compiler"],license:"MIT",main:"lib/jison",name:"jison",preferGlobal:!0,repository:{type:"git",url:"git://github.com/zaach/jison.git"},scripts:{test:"node tests/all-tests.js"},version:"0.4.18"}},function(e,t){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function e(){i(this,e)},s=function e(){i(this,e)},a=function e(){i(this,e)},c=function e(){i(this,e)},u=function e(){i(this,e)},l=function e(){i(this,e)},h=function e(){i(this,e)},f=function e(){i(this,e)};e.exports={types:{Text:o,Shortcut:s,Link:a,Conditional:c,Assignment:u,Literal:l,Expression:h,Command:f},RootNode:function e(t){i(this,e),this.name="RootNode",this.dialogNodes=t||[]},DialogNode:function e(t,n){i(this,e),this.type="DialogNode",this.name=n||null,this.content=t},DialogOptionNode:function(e){function t(e,r,o){i(this,t);var s=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s.type="DialogOptionNode",s.text=e,s.content=r,s.lineNum=o?o.first_line:-1,s}return r(t,e),t}(s),ConditionalDialogOptionNode:function(e){function t(e,r,o,s){i(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.type="ConditionalDialogOptionNode",a.text=e,a.content=r,a.conditionalExpression=o,a.lineNum=s?s.first_line:-1,a}return r(t,e),t}(s),IfNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="IfNode",o.expression=e,o.statement=r,o}return r(t,e),t}(c),IfElseNode:function(e){function t(e,r,o){i(this,t);var s=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s.type="IfElseNode",s.expression=e,s.statement=r,s.elseStatement=o,s}return r(t,e),t}(c),ElseNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="ElseNode",r.statement=e,r}return r(t,e),t}(c),ElseIfNode:function(e){function t(e,r,o){i(this,t);var s=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s.type="ElseIfNode",s.expression=e,s.statement=r,s.elseStatement=o,s}return r(t,e),t}(c),TextNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="TextNode",o.text=e,o.lineNum=r?r.first_line:-1,o}return r(t,e),t}(o),LinkNode:function(e){function t(e,r,o){i(this,t);var s=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s.type="LinkNode",s.text=e||null,s.identifier=r||s.text,s.lineNum=o?o.first_line:-1,s.selectable=!0,s}return r(t,e),t}(a),NumericLiteralNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="NumericLiteralNode",r.numericLiteral=e,r}return r(t,e),t}(l),StringLiteralNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="StringLiteralNode",r.stringLiteral=e,r}return r(t,e),t}(l),BooleanLiteralNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="BooleanLiteralNode",r.booleanLiteral=e,r}return r(t,e),t}(l),VariableNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="VariableNode",r.variableName=e,r}return r(t,e),t}(l),UnaryMinusExpressionNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="UnaryMinusExpressionNode",r.expression=e,r}return r(t,e),t}(h),ArithmeticExpressionNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="ArithmeticExpressionNode",r.expression=e,r}return r(t,e),t}(h),ArithmeticExpressionAddNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="ArithmeticExpressionAddNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),ArithmeticExpressionMinusNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="ArithmeticExpressionMinusNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),ArithmeticExpressionMultiplyNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="ArithmeticExpressionMultiplyNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),ArithmeticExpressionDivideNode:function e(t,n){i(this,e),this.type="ArithmeticExpressionDivideNode",this.expression1=t,this.expression2=n},BooleanExpressionNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="BooleanExpressionNode",r.booleanExpression=e,r}return r(t,e),t}(h),NegatedBooleanExpressionNode:function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.type="NegatedBooleanExpressionNode",r.booleanExpression=e,r}return r(t,e),t}(h),BooleanOrExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="BooleanOrExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),BooleanAndExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="BooleanAndExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),BooleanXorExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="BooleanXorExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),EqualToExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="EqualToExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),NotEqualToExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="EqualToExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),GreaterThanExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="GreaterThanExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),GreaterThanOrEqualToExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="GreaterThanOrEqualToExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),LessThanExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="LessThanExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),LessThanOrEqualToExpressionNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="LessThanOrEqualToExpressionNode",o.expression1=e,o.expression2=r,o}return r(t,e),t}(h),SetVariableEqualToNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="SetVariableEqualToNode",o.variableName=e,o.expression=r,o}return r(t,e),t}(u),SetVariableAddNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="SetVariableAddNode",o.variableName=e,o.expression=r,o}return r(t,e),t}(u),SetVariableMinusNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="SetVariableMinusNode",o.variableName=e,o.expression=r,o}return r(t,e),t}(u),SetVariableMultipyNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="SetVariableMultipyNode",o.variableName=e,o.expression=r,o}return r(t,e),t}(u),SetVariableDivideNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="SetVariableDivideNode",o.variableName=e,o.expression=r,o}return r(t,e),t}(u),FunctionResultNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="FunctionResultNode",o.functionName=e,o.args=r,o}return r(t,e),t}(l),CommandNode:function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.type="CommandNode",o.command=e,o.lineNum=r?r.first_line:-1,o}return r(t,e),t}(f)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;nthis.previousLevelOfIndentation)return this.indentation.push([e,!0]),this.shouldTrackNextIndentation=!1,this.yylloc.first_column=this.yylloc.last_column,this.yylloc.last_column+=e,this.yytext="","Indent";if(e=this.lines.length}},{key:"isAtTheEndOfLine",value:function(){return this.yylloc.last_column>=this.getCurrentLine().length}}]),e}();e.exports=s},function(e,t,n){"use strict";function r(){return{base:(new i).addTransition("BeginCommand","command",!0).addTransition("OptionStart","link",!0).addTransition("ShortcutOption","shortcutOption").addTextRule("Text"),shortcutOption:(new i).setTrackNextIndentation(!0).addTransition("BeginCommand","expression",!0).addTextRule("Text","base"),command:(new i).addTransition("If","expression").addTransition("Else").addTransition("ElseIf","expression").addTransition("EndIf").addTransition("Set","assignment").addTransition("EndCommand","base",!0).addTransition("CommandCall","commandOrExpression").addTextRule("Text"),commandOrExpression:(new i).addTransition("EndCommand","base",!0).addTextRule("Text"),assignment:(new i).addTransition("Variable").addTransition("EqualToOrAssign","expression").addTransition("AddAssign","expression").addTransition("MinusAssign","expression").addTransition("MultiplyAssign","expression").addTransition("DivideAssign","expression"),expression:(new i).addTransition("EndCommand","base").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("Minus").addTransition("Multiply").addTransition("Divide").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule(),link:(new i).addTransition("OptionEnd","base",!0).addTransition("OptionDelimit","linkDestination",!0).addTextRule("Text"),linkDestination:(new i).addTransition("Identifier").addTransition("OptionEnd","base")}}var i=n(365);e.exports={makeStates:r}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n>/,Variable:/\$([A-Za-z0-9_.])+/,ShortcutOption:/->/,OptionStart:/\[\[/,OptionDelimit:/\|/,OptionEnd:/\]\]/,If:/if(?!\w)/,ElseIf:/elseif(?!\w)/,Else:/else(?!\w)/,EndIf:/endif(?!\w)/,Set:/set(?!\w)/,True:/true(?!\w)/,False:/false(?!\w)/,Null:/null(?!\w)/,LeftParen:/\(/,RightParen:/\)/,Comma:/,/,EqualTo:/(==|is(?!\w)|eq(?!\w))/,GreaterThan:/(>|gt(?!\w))/,GreaterThanOrEqualTo:/(>=|gte(?!\w))/,LessThan:/(<|lt(?!\w))/,LessThanOrEqualTo:/(<=|lte(?!\w))/,NotEqualTo:/(!=|neq(?!\w))/,Or:/(\|\||or(?!\w))/,And:/(&&|and(?!\w))/,Xor:/(\^|xor(?!\w))/,Not:/(!|not(?!\w))/,EqualToOrAssign:/(=|to(?!\w))/,Add:/\+/,Minus:/-/,Multiply:/\*/,Divide:/\//,AddAssign:/\+=/,MinusAssign:/-=/,MultiplyAssign:/\*=/,DivideAssign:/\/=/,Comment:"//",Identifier:/[a-zA-Z0-9_:.]+/,CommandCall:/([^>]|(?!>)[^>]+>)+(?=>>)/,Text:/.*/};e.exports=n},function(e,t){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n=this.options.length)throw new Error("Cannot select option #"+e+", there are only "+this.options.length+" options");this.selected=e}}]),t}(s);e.exports={Result:s,TextResult:a,CommandResult:c,OptionsResult:u}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n(()=>{"use strict";var e={442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[],s=e.split(/\r?\n+/).filter((e=>!e.match(/^\s*$/)));let n,i=null,a=!1,o="",r=0;for(;"#"===s[r].trim()[0];)n||(n=[]),n.push(s[r].trim().substr(1)),r+=1;for(;r-1){const[e,t]=s[r].split(":"),n=e.trim(),a=t.trim();if("body"!==n){if(null==i&&(i={}),i[n])throw new Error(`Duplicate tag on node: ${n}`);i[n]=a}}return t},e.exports=t.default},696:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(){this.data={}}set(e,t){this.data[e]=t}get(e){return this.data[e]}},e.exports=t.default},954:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(s(458)),i=a(s(528));function a(e){return e&&e.__esModule?e:{default:e}}n.default.OptionsResult=i.default.OptionsResult,n.default.TextResult=i.default.TextResult,n.default.CommandResult=i.default.CommandResult,t.default=n.default,e.exports=t.default},105:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=s(170))&&n.__esModule?n:{default:n};t.default=class{constructor(){this.transitions=[],this.textRule=null,this.isTrackingNextIndentation=!1}addTransition(e,t,s){return this.transitions.push({token:e,regex:i.default[e],state:t||null,delimitsText:s||!1}),this}addTextRule(e,t){if(this.textRule)throw new Error("Cannot add more than one text rule to a state.");const s=[];this.transitions.forEach((e=>{e.delimitsText&&s.push(`(${e.regex.source})`)}));const n=`((?!${s.join("|")}).)+`;return this.addTransition(e,t),this.textRule=this.transitions[this.transitions.length-1],this.textRule.regex=new RegExp(n),this}setTrackNextIndentation(e){return this.isTrackingNextIndentation=e,this}},e.exports=t.default},101:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=s(789))&&n.__esModule?n:{default:n};t.default=class{constructor(){this.states=i.default.makeStates(),this.state="base",this.originalText="",this.lines=[],this.indentation=[[0,!1]],this.shouldTrackNextIndentation=!1,this.previousLevelOfIndentation=0,this.reset()}reset(){this.yytext="",this.yylloc={first_column:1,first_line:1,last_column:1,last_line:1},this.yylineno=1}lex(){if(this.isAtTheEndOfText()){this.yytext="";const e=this.indentation.pop();return e&&e[1]?"Dedent":"EndOfInput"}return this.isAtTheEndOfLine()?(this.advanceLine(),"EndOfLine"):this.lexNextTokenOnCurrentLine()}advanceLine(){this.yylineno+=1;const e=this.getCurrentLine().replace(/\t/," ");this.lines[this.yylineno-1]=e,this.previousLevelOfIndentation=this.getLastRecordedIndentation()[0],this.yytext="",this.yylloc={first_column:1,first_line:this.yylineno,last_column:1,last_line:this.yylineno}}lexNextTokenOnCurrentLine(){const e=this.getCurrentLineIndentation();if(this.shouldTrackNextIndentation&&e>this.previousLevelOfIndentation)return this.indentation.push([e,!0]),this.shouldTrackNextIndentation=!1,this.yylloc.first_column=this.yylloc.last_column,this.yylloc.last_column+=e,this.yytext="","Indent";if(e"Text"===e.token));if("EndInlineExp"!==n.token&&"EscapedCharacter"!==n.token||!a){const e=this.getCurrentLine().substring(this.yylloc.last_column-1).match(/^\s*/);e[0]&&(this.yylloc.last_column+=e[0].length)}return n.token}}throw new Error(`Invalid syntax in: ${this.getCurrentLine()}`)}setState(e){if(void 0===this.states[e])throw new Error(`Cannot set the unknown state [${e}]`);this.state=e,this.getState().isTrackingNextIndentation&&(this.shouldTrackNextIndentation=!0)}setInput(e){this.originalText=e.replace(/(\r\n)/g,"\n").replace(/\r/g,"\n").replace(/[\n\r]+$/,""),this.lines=this.originalText.split("\n"),this.reset()}getState(){return this.states[this.state]}getCurrentLine(){return this.lines[this.yylineno-1]}getCurrentLineIndentation(){return this.getCurrentLine().match(/^(\s*)/g)[0].length}getLastRecordedIndentation(){return 0===this.indentation.length?[0,!1]:this.indentation[this.indentation.length-1]}isAtTheEndOfText(){return this.isAtTheEndOfLine()&&this.yylloc.first_line>=this.lines.length}isAtTheEndOfLine(){return this.yylloc.last_column>this.getCurrentLine().length}},e.exports=t.default},789:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=s(105))&&n.__esModule?n:{default:n};t.default={makeStates:function(){return{base:(new i.default).addTransition("EscapedCharacter",null,!0).addTransition("Comment",null,!0).addTransition("Hashtag",null,!0).addTransition("BeginCommand","command",!0).addTransition("BeginInlineExp","inlineExpression",!0).addTransition("ShortcutOption","shortcutOption").addTextRule("Text"),shortcutOption:(new i.default).setTrackNextIndentation(!0).addTransition("EscapedCharacter",null,!0).addTransition("Comment",null,!0).addTransition("Hashtag",null,!0).addTransition("BeginCommand","expression",!0).addTransition("BeginInlineExp","inlineExpressionInShortcut",!0).addTextRule("Text","base"),command:(new i.default).addTransition("If","expression").addTransition("Else").addTransition("ElseIf","expression").addTransition("EndIf").addTransition("Set","assignment").addTransition("Declare","declare").addTransition("Jump","jump").addTransition("Stop","stop").addTransition("BeginInlineExp","inlineExpressionInCommand",!0).addTransition("EndCommand","base",!0).addTextRule("Text"),commandArg:(new i.default).addTextRule("Text"),commandParenArgOrExpression:(new i.default).addTransition("EndCommand","base",!0).addTransition("LeftParen","expression").addTransition("Variable","expression").addTransition("Number","expression").addTransition("String").addTransition("True").addTransition("False").addTransition("Null").addTransition("RightParen"),assignment:(new i.default).addTransition("Variable").addTransition("EqualToOrAssign","expression"),declare:(new i.default).addTransition("Variable").addTransition("EndCommand","base").addTransition("EqualToOrAssign","expression"),jump:(new i.default).addTransition("Identifier").addTransition("BeginInlineExp","inlineExpressionInCommand",!0).addTransition("EndCommand","base",!0),stop:(new i.default).addTransition("EndCommand","base",!0),expression:(new i.default).addTransition("As").addTransition("ExplicitType").addTransition("EndCommand","base").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule(),inlineExpression:(new i.default).addTransition("EndInlineExp","base").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule("Text","base"),inlineExpressionInCommand:(new i.default).addTransition("EndInlineExp","command").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule("Text","base"),inlineExpressionInShortcut:(new i.default).addTransition("EndInlineExp","shortcutOption").addTransition("Number").addTransition("String").addTransition("LeftParen").addTransition("RightParen").addTransition("EqualTo").addTransition("EqualToOrAssign").addTransition("NotEqualTo").addTransition("GreaterThanOrEqualTo").addTransition("GreaterThan").addTransition("LessThanOrEqualTo").addTransition("LessThan").addTransition("Add").addTransition("UnaryMinus").addTransition("Minus").addTransition("Exponent").addTransition("Multiply").addTransition("Divide").addTransition("Modulo").addTransition("And").addTransition("Or").addTransition("Xor").addTransition("Not").addTransition("Variable").addTransition("Comma").addTransition("True").addTransition("False").addTransition("Null").addTransition("Identifier").addTextRule("Text","base")}}},e.exports=t.default},170:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={Whitespace:null,Indent:null,Dedent:null,EndOfLine:/\n/,EndOfInput:null,Number:/-?[0-9]+(\.[0-9+])?/,String:/"([^"\\]*(?:\\.[^"\\]*)*)"/,BeginCommand:/<>/,Variable:/\$([A-Za-z0-9_.])+/,ShortcutOption:/->/,Hashtag:/#([^(\s|#|//)]+)/,Comment:/\/\/.*/,OptionStart:/\[\[/,OptionDelimit:/\|/,OptionEnd:/\]\]/,If:/if(?!\w)/,ElseIf:/elseif(?!\w)/,Else:/else(?!\w)/,EndIf:/endif(?!\w)/,Jump:/jump(?!\w)/,Stop:/stop(?!\w)/,Set:/set(?!\w)/,Declare:/declare(?!\w)/,As:/as(?!\w)/,ExplicitType:/(String|Number|Bool)(?=>>)/,True:/true(?!\w)/,False:/false(?!\w)/,Null:/null(?!\w)/,LeftParen:/\(/,RightParen:/\)/,Comma:/,/,UnaryMinus:/-(?!\s)/,EqualTo:/(==|is(?!\w)|eq(?!\w))/,GreaterThan:/(>|gt(?!\w))/,GreaterThanOrEqualTo:/(>=|gte(?!\w))/,LessThan:/(<|lt(?!\w))/,LessThanOrEqualTo:/(<=|lte(?!\w))/,NotEqualTo:/(!=|neq(?!\w))/,Or:/(\|\||or(?!\w))/,And:/(&&|and(?!\w))/,Xor:/(\^|xor(?!\w))/,Not:/(!|not(?!\w))/,EqualToOrAssign:/(=|to(?!\w))/,Add:/\+/,Minus:/-/,Exponent:/\*\*/,Multiply:/\*/,Divide:/\//,Modulo:/%/,AddAssign:/\+=/,MinusAssign:/-=/,MultiplyAssign:/\*=/,DivideAssign:/\/=/,Identifier:/[a-zA-Z0-9_:.]+/,EscapedCharacter:/\\./,Text:/[^\\]/,BeginInlineExp:/{/,EndInlineExp:/}/},e.exports=t.default},293:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=se,t.parser=void 0;var s=function(e,t,s,n){for(s=s||{},n=e.length;n--;s[e[n]]=t);return s},n=[1,16],i=[1,17],a=[1,12],o=[1,19],r=[1,18],d=[5,18,19,23,34,36,77],l=[1,23],u=[1,24],h=[1,26],c=[1,27],p=[5,14,16,18,19,21,23,34,36,77],x=[1,30],T=[1,34],f=[1,35],E=[1,36],m=[1,37],y=[5,14,16,18,19,21,23,26,34,36,77],N=[1,50],g=[1,49],b=[1,44],v=[1,45],w=[1,46],O=[1,51],$=[1,52],_=[1,53],C=[1,54],L=[1,55],A=[5,16,18,19,23,34,36,77],I=[1,71],k=[1,72],M=[1,73],S=[1,74],q=[1,75],R=[1,76],P=[1,77],B=[1,78],D=[1,79],j=[1,80],G=[1,81],F=[1,82],V=[1,83],U=[1,84],X=[1,85],J=[26,46,51,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,70,78],H=[26,46,51,53,54,55,56,57,60,61,62,63,64,65,66,67,68,70,78],z=[26,46,51,70,78],Z=[1,122],W=[1,123],K=[26,46,51,53,54,60,61,62,63,64,65,66,67,68,70,78],Q=[26,46,51,60,61,62,63,64,65,66,67,68,70,78],Y=[51,70],ee=[16,18,19,23,34,77],te=t.parser={trace:function(){},yy:{},symbols_:{error:2,node:3,statements:4,EndOfInput:5,conditionalBlock:6,statement:7,text:8,shortcut:9,genericCommand:10,assignmentCommand:11,jumpCommand:12,stopCommand:13,Comment:14,hashtags:15,EndOfLine:16,textNode:17,Text:18,EscapedCharacter:19,inlineExpression:20,Hashtag:21,conditional:22,BeginCommand:23,If:24,expression:25,EndCommand:26,EndIf:27,additionalConditionalBlocks:28,else:29,Else:30,elseif:31,ElseIf:32,shortcutOption:33,ShortcutOption:34,Indent:35,Dedent:36,Jump:37,Identifier:38,Stop:39,setCommandInner:40,declareCommandInner:41,Set:42,Variable:43,EqualToOrAssign:44,Declare:45,As:46,ExplicitType:47,functionArgument:48,functionCall:49,LeftParen:50,RightParen:51,UnaryMinus:52,Add:53,Minus:54,Exponent:55,Multiply:56,Divide:57,Modulo:58,Not:59,Or:60,And:61,Xor:62,EqualTo:63,NotEqualTo:64,GreaterThan:65,GreaterThanOrEqualTo:66,LessThan:67,LessThanOrEqualTo:68,parenExpressionArgs:69,Comma:70,literal:71,True:72,False:73,Number:74,String:75,Null:76,BeginInlineExp:77,EndInlineExp:78,$accept:0,$end:1},terminals_:{2:"error",5:"EndOfInput",14:"Comment",16:"EndOfLine",18:"Text",19:"EscapedCharacter",21:"Hashtag",23:"BeginCommand",24:"If",26:"EndCommand",27:"EndIf",30:"Else",32:"ElseIf",34:"ShortcutOption",35:"Indent",36:"Dedent",37:"Jump",38:"Identifier",39:"Stop",42:"Set",43:"Variable",44:"EqualToOrAssign",45:"Declare",46:"As",47:"ExplicitType",50:"LeftParen",51:"RightParen",52:"UnaryMinus",53:"Add",54:"Minus",55:"Exponent",56:"Multiply",57:"Divide",58:"Modulo",59:"Not",60:"Or",61:"And",62:"Xor",63:"EqualTo",64:"NotEqualTo",65:"GreaterThan",66:"GreaterThanOrEqualTo",67:"LessThan",68:"LessThanOrEqualTo",70:"Comma",72:"True",73:"False",74:"Number",75:"String",76:"Null",77:"BeginInlineExp",78:"EndInlineExp"},productions_:[0,[3,2],[4,1],[4,2],[4,1],[4,2],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,2],[7,2],[7,2],[17,1],[17,1],[8,1],[8,1],[8,2],[15,1],[15,2],[22,4],[6,6],[6,4],[6,2],[29,3],[29,2],[31,4],[31,2],[28,5],[28,5],[28,3],[33,2],[33,3],[33,2],[33,2],[33,3],[33,2],[9,1],[9,5],[10,3],[12,4],[12,4],[13,3],[11,3],[11,3],[40,4],[41,4],[41,6],[25,1],[25,1],[25,3],[25,2],[25,3],[25,3],[25,3],[25,3],[25,3],[25,3],[25,2],[25,3],[25,3],[25,3],[25,3],[25,3],[25,3],[25,3],[25,3],[25,3],[49,3],[49,4],[69,3],[69,1],[48,1],[48,1],[48,1],[71,1],[71,1],[71,1],[71,1],[71,1],[20,3]],performAction:function(e,t,s,n,i,a,o){var r=a.length-1;switch(i){case 1:return a[r-1].flat();case 2:case 4:case 7:case 8:case 9:case 10:case 11:case 17:case 18:case 73:this.$=[a[r]];break;case 3:case 19:this.$=a[r-1].concat(a[r]);break;case 5:this.$=a[r-1].concat([a[r]]);break;case 6:case 51:case 50:case 74:case 75:this.$=a[r];break;case 12:case 14:case 25:case 28:case 29:case 45:case 52:case 22:case 36:case 38:this.$=a[r-1];break;case 13:this.$=a[r-1].map((e=>Object.assign(e,{hashtags:a[r]})));break;case 15:this.$=new n.TextNode(a[r],this._$);break;case 16:this.$=new n.EscapedCharacterNode(a[r],this._$);break;case 20:this.$=[a[r].substring(1)];break;case 21:this.$=[a[r-1].substring(1)].concat(a[r]);break;case 23:this.$=new n.IfNode(a[r-5],a[r-3].flat());break;case 24:this.$=new n.IfElseNode(a[r-3],a[r-1].flat(),a[r]);break;case 26:case 27:this.$=void 0;break;case 30:this.$=new n.ElseNode(a[r-3].flat());break;case 31:this.$=new n.ElseIfNode(a[r-4],a[r-3].flat());break;case 32:this.$=new n.ElseIfNode(a[r-2],a[r-1].flat(),a[r]);break;case 33:this.$={text:a[r]};break;case 34:this.$={text:a[r-1],conditional:a[r]};break;case 35:this.$={...a[r-1],hashtags:a[r]};break;case 37:this.$={...a[r-2],hashtags:a[r-1]};break;case 39:this.$=new n.DialogShortcutNode(a[r].text,void 0,this._$,a[r].hashtags,a[r].conditional);break;case 40:this.$=new n.DialogShortcutNode(a[r-4].text,a[r-1].flat(),this._$,a[r-4].hashtags,a[r-4].conditional);break;case 41:this.$=new n.GenericCommandNode(a[r-1],this._$);break;case 42:case 43:this.$=new n.JumpCommandNode(a[r-1]);break;case 44:this.$=new n.StopCommandNode;break;case 46:this.$=null;break;case 47:this.$=new n.SetVariableEqualToNode(a[r-2].substring(1),a[r]);break;case 48:this.$=null,n.registerDeclaration(a[r-2].substring(1),a[r]);break;case 49:this.$=null,n.registerDeclaration(a[r-4].substring(1),a[r-2],a[r]);break;case 53:this.$=new n.UnaryMinusExpressionNode(a[r]);break;case 54:this.$=new n.ArithmeticExpressionAddNode(a[r-2],a[r]);break;case 55:this.$=new n.ArithmeticExpressionMinusNode(a[r-2],a[r]);break;case 56:this.$=new n.ArithmeticExpressionExponentNode(a[r-2],a[r]);break;case 57:this.$=new n.ArithmeticExpressionMultiplyNode(a[r-2],a[r]);break;case 58:this.$=new n.ArithmeticExpressionDivideNode(a[r-2],a[r]);break;case 59:this.$=new n.ArithmeticExpressionModuloNode(a[r-2],a[r]);break;case 60:this.$=new n.NegatedBooleanExpressionNode(a[r]);break;case 61:this.$=new n.BooleanOrExpressionNode(a[r-2],a[r]);break;case 62:this.$=new n.BooleanAndExpressionNode(a[r-2],a[r]);break;case 63:this.$=new n.BooleanXorExpressionNode(a[r-2],a[r]);break;case 64:this.$=new n.EqualToExpressionNode(a[r-2],a[r]);break;case 65:this.$=new n.NotEqualToExpressionNode(a[r-2],a[r]);break;case 66:this.$=new n.GreaterThanExpressionNode(a[r-2],a[r]);break;case 67:this.$=new n.GreaterThanOrEqualToExpressionNode(a[r-2],a[r]);break;case 68:this.$=new n.LessThanExpressionNode(a[r-2],a[r]);break;case 69:this.$=new n.LessThanOrEqualToExpressionNode(a[r-2],a[r]);break;case 70:this.$=new n.FunctionCallNode(a[r-2],[],this._$);break;case 71:this.$=new n.FunctionCallNode(a[r-3],a[r-1],this._$);break;case 72:this.$=a[r-2].concat([a[r]]);break;case 76:this.$=new n.VariableNode(a[r].substring(1));break;case 77:case 78:this.$=new n.BooleanLiteralNode(a[r]);break;case 79:this.$=new n.NumericLiteralNode(a[r]);break;case 80:this.$=new n.StringLiteralNode(a[r]);break;case 81:this.$=new n.NullLiteralNode(a[r]);break;case 82:this.$=new n.InlineExpressionNode(a[r-1],this._$)}},table:[{3:1,4:2,6:3,7:4,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:a,33:15,34:o,77:r},{1:[3]},{5:[1,20],6:21,7:22,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:a,33:15,34:o,77:r},s(d,[2,2],{16:l}),s(d,[2,4],{15:25,14:u,16:h,21:c}),{16:[1,28]},s([5,14,16,21,23,34,36],[2,6],{17:13,20:14,8:29,18:n,19:i,77:r}),s(p,[2,7]),s(p,[2,8]),s(p,[2,9]),s(p,[2,10]),s(p,[2,11]),{8:31,17:13,18:n,19:i,20:14,24:x,37:T,39:f,40:32,41:33,42:E,45:m,77:r},s(y,[2,17]),s(y,[2,18]),s(d,[2,39],{15:39,14:[1,40],16:[1,38],21:c}),s(y,[2,15]),s(y,[2,16]),{20:47,25:41,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{8:56,17:13,18:n,19:i,20:14,77:r},{1:[2,1]},s(d,[2,3],{16:l}),s(d,[2,5],{15:25,14:u,16:h,21:c}),s(A,[2,25]),s(p,[2,12]),s(p,[2,13]),s(p,[2,14]),s([5,14,16,18,19,23,34,36,77],[2,20],{15:57,21:c}),{4:58,6:3,7:4,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:a,33:15,34:o,77:r},s([5,14,16,21,23,26,34,36],[2,19],{17:13,20:14,8:29,18:n,19:i,77:r}),{20:47,25:59,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{8:29,17:13,18:n,19:i,20:14,26:[1,60],77:r},{26:[1,61]},{26:[1,62]},{20:64,38:[1,63],77:r},{26:[1,65]},{43:[1,66]},{43:[1,67]},s(p,[2,38],{35:[1,68]}),s([5,16,18,19,21,23,34,36,77],[2,35],{14:[1,69]}),s(p,[2,36]),{53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X,78:[1,70]},s(J,[2,50]),s(J,[2,51]),{20:47,25:86,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:87,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:88,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},s(J,[2,74]),s(J,[2,75]),s(J,[2,76]),{50:[1,89]},s(J,[2,77]),s(J,[2,78]),s(J,[2,79]),s(J,[2,80]),s(J,[2,81]),s([5,14,16,21,34,36],[2,33],{17:13,20:14,8:29,22:90,18:n,19:i,23:[1,91],77:r}),s(p,[2,21]),{6:21,7:22,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:[1,92],28:93,29:94,31:95,33:15,34:o,77:r},{26:[1,96],53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X},s(p,[2,41]),s(p,[2,45]),s(p,[2,46]),{26:[1,97]},{26:[1,98]},s(p,[2,44]),{44:[1,99]},{44:[1,100]},{4:101,6:3,7:4,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:a,33:15,34:o,77:r},s(p,[2,37]),s([5,14,16,18,19,21,23,26,34,36,46,51,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,70,77,78],[2,82]),{20:47,25:102,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:103,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:104,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:105,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:106,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:107,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:108,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:109,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:110,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:111,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:112,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:113,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:114,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:115,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:116,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{51:[1,117],53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X},s(H,[2,53],{58:R}),s(z,[2,60],{53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X}),{20:47,25:120,38:N,43:g,48:42,49:43,50:b,51:[1,118],52:v,59:w,69:119,71:48,72:O,73:$,74:_,75:C,76:L,77:r},s(p,[2,34]),{24:x},{8:31,17:13,18:n,19:i,20:14,24:x,27:[1,121],30:Z,32:W,37:T,39:f,40:32,41:33,42:E,45:m,77:r},s(A,[2,24]),{4:124,6:3,7:4,8:6,9:7,10:8,11:9,12:10,13:11,16:[1,125],17:13,18:n,19:i,20:14,22:5,23:a,33:15,34:o,77:r},{4:126,6:3,7:4,8:6,9:7,10:8,11:9,12:10,13:11,16:[1,127],17:13,18:n,19:i,20:14,22:5,23:a,33:15,34:o,77:r},s(p,[2,22]),s(p,[2,42]),s(p,[2,43]),{20:47,25:128,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{20:47,25:129,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{6:21,7:22,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:a,33:15,34:o,36:[1,130],77:r},s(K,[2,54],{55:M,56:S,57:q,58:R}),s(K,[2,55],{55:M,56:S,57:q,58:R}),s(H,[2,56],{58:R}),s(H,[2,57],{58:R}),s(H,[2,58],{58:R}),s(z,[2,59],{53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X}),s([26,46,51,60,70,78],[2,61],{53:I,54:k,55:M,56:S,57:q,58:R,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X}),s([26,46,51,60,61,70,78],[2,62],{53:I,54:k,55:M,56:S,57:q,58:R,62:D,63:j,64:G,65:F,66:V,67:U,68:X}),s([26,46,51,60,61,62,70,78],[2,63],{53:I,54:k,55:M,56:S,57:q,58:R,63:j,64:G,65:F,66:V,67:U,68:X}),s(Q,[2,64],{53:I,54:k,55:M,56:S,57:q,58:R}),s(Q,[2,65],{53:I,54:k,55:M,56:S,57:q,58:R}),s(Q,[2,66],{53:I,54:k,55:M,56:S,57:q,58:R}),s(Q,[2,67],{53:I,54:k,55:M,56:S,57:q,58:R}),s(Q,[2,68],{53:I,54:k,55:M,56:S,57:q,58:R}),s(Q,[2,69],{53:I,54:k,55:M,56:S,57:q,58:R}),s(J,[2,52]),s(J,[2,70]),{51:[1,131],70:[1,132]},s(Y,[2,73],{53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X}),{26:[1,133]},{26:[1,134]},{20:47,25:135,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},{6:21,7:22,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:[1,136],33:15,34:o,77:r},s(ee,[2,27]),{6:21,7:22,8:6,9:7,10:8,11:9,12:10,13:11,17:13,18:n,19:i,20:14,22:5,23:[1,137],28:138,29:94,31:95,33:15,34:o,77:r},s(ee,[2,29]),{26:[2,47],53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X},{26:[2,48],46:[1,139],53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X},s(p,[2,40]),s(J,[2,71]),{20:47,25:140,38:N,43:g,48:42,49:43,50:b,52:v,59:w,71:48,72:O,73:$,74:_,75:C,76:L,77:r},s(A,[2,23]),s(ee,[2,26]),{26:[1,141],53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X},{8:31,17:13,18:n,19:i,20:14,24:x,27:[1,142],37:T,39:f,40:32,41:33,42:E,45:m,77:r},{8:31,17:13,18:n,19:i,20:14,24:x,27:[1,143],30:Z,32:W,37:T,39:f,40:32,41:33,42:E,45:m,77:r},s(A,[2,32]),{47:[1,144]},s(Y,[2,72],{53:I,54:k,55:M,56:S,57:q,58:R,60:P,61:B,62:D,63:j,64:G,65:F,66:V,67:U,68:X}),s(ee,[2,28]),{26:[1,145]},{26:[1,146]},{26:[2,49]},s(A,[2,30]),s(A,[2,31])],defaultActions:{20:[2,1],144:[2,49]},parseError:function(e,t){if(!t.recoverable){var s=new Error(e);throw s.hash=t,s}this.trace(e)},parse:function(e){var t=this,s=[0],n=[null],i=[],a=this.table,o="",r=0,d=0,l=0,u=i.slice.call(arguments,1),h=Object.create(this.lexer),c={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(c.yy[p]=this.yy[p]);h.setInput(e,c.yy),c.yy.lexer=h,c.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var x=h.yylloc;i.push(x);var T,f=h.options&&h.options.ranges;"function"==typeof c.yy.parseError?this.parseError=c.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var E,m,y,N,g,b,v,w,O,$={};;){if(y=s[s.length-1],this.defaultActions[y]?N=this.defaultActions[y]:(null==E&&(T=void 0,"number"!=typeof(T=h.lex()||1)&&(T=t.symbols_[T]||T),E=T),N=a[y]&&a[y][E]),void 0===N||!N.length||!N[0]){var _;for(b in O=[],a[y])this.terminals_[b]&&b>2&&O.push("'"+this.terminals_[b]+"'");_=h.showPosition?"Parse error on line "+(r+1)+":\n"+h.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(r+1)+": Unexpected "+(1==E?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(_,{text:h.match,token:this.terminals_[E]||E,line:h.yylineno,loc:x,expected:O})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+E);switch(N[0]){case 1:s.push(E),n.push(h.yytext),i.push(h.yylloc),s.push(N[1]),E=null,m?(E=m,m=null):(d=h.yyleng,o=h.yytext,r=h.yylineno,x=h.yylloc,l>0&&l--);break;case 2:if(v=this.productions_[N[1]][1],$.$=n[n.length-v],$._$={first_line:i[i.length-(v||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(v||1)].first_column,last_column:i[i.length-1].last_column},f&&($._$.range=[i[i.length-(v||1)].range[0],i[i.length-1].range[1]]),void 0!==(g=this.performAction.apply($,[o,d,r,c.yy,N[1],n,i].concat(u))))return g;v&&(s=s.slice(0,-1*v*2),n=n.slice(0,-1*v),i=i.slice(0,-1*v)),s.push(this.productions_[N[1]][0]),n.push($.$),i.push($._$),w=a[s[s.length-2]][s[s.length-1]],s.push(w);break;case 3:return!0}}return!0}};function se(){this.yy={}}se.prototype=te,te.Parser=se},33:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class s{}class n{}class i{}class a{}class o{}class r{}class d{}class l{}t.default={types:{Text:s,Shortcut:n,Conditional:i,Assignment:a,Literal:o,Expression:r,FunctionCall:d,Command:l},DialogShortcutNode:class extends n{constructor(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0;super(),this.type="DialogShortcutNode",this.text=e,this.content=t,this.lineNum=s.first_line,this.hashtags=n,this.conditionalExpression=i}},IfNode:class extends i{constructor(e,t){super(),this.type="IfNode",this.expression=e,this.statement=t}},IfElseNode:class extends i{constructor(e,t,s){super(),this.type="IfElseNode",this.expression=e,this.statement=t,this.elseStatement=s}},ElseNode:class extends i{constructor(e){super(),this.type="ElseNode",this.statement=e}},ElseIfNode:class extends i{constructor(e,t,s){super(),this.type="ElseIfNode",this.expression=e,this.statement=t,this.elseStatement=s}},GenericCommandNode:class extends l{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];super(),this.type="GenericCommandNode",this.command=e,this.hashtags=s,this.lineNum=t.first_line}},JumpCommandNode:class extends l{constructor(e){super(),this.type="JumpCommandNode",this.destination=e}},StopCommandNode:class extends l{constructor(){super(),this.type="StopCommandNode"}},TextNode:class extends s{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];super(),this.type="TextNode",this.text=e,this.lineNum=t.first_line,this.hashtags=s}},EscapedCharacterNode:class extends s{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];super(),this.type="EscapedCharacterNode",this.text=e,this.lineNum=t.first_line,this.hashtags=s}},NumericLiteralNode:class extends o{constructor(e){super(),this.type="NumericLiteralNode",this.numericLiteral=e}},StringLiteralNode:class extends o{constructor(e){super(),this.type="StringLiteralNode",this.stringLiteral=e}},BooleanLiteralNode:class extends o{constructor(e){super(),this.type="BooleanLiteralNode",this.booleanLiteral=e}},VariableNode:class extends o{constructor(e){super(),this.type="VariableNode",this.variableName=e}},UnaryMinusExpressionNode:class extends r{constructor(e){super(),this.type="UnaryMinusExpressionNode",this.expression=e}},ArithmeticExpressionAddNode:class extends r{constructor(e,t){super(),this.type="ArithmeticExpressionAddNode",this.expression1=e,this.expression2=t}},ArithmeticExpressionMinusNode:class extends r{constructor(e,t){super(),this.type="ArithmeticExpressionMinusNode",this.expression1=e,this.expression2=t}},ArithmeticExpressionMultiplyNode:class extends r{constructor(e,t){super(),this.type="ArithmeticExpressionMultiplyNode",this.expression1=e,this.expression2=t}},ArithmeticExpressionExponentNode:class extends r{constructor(e,t){super(),this.type="ArithmeticExpressionExponentNode",this.expression1=e,this.expression2=t}},ArithmeticExpressionDivideNode:class extends r{constructor(e,t){super(),this.type="ArithmeticExpressionDivideNode",this.expression1=e,this.expression2=t}},ArithmeticExpressionModuloNode:class extends r{constructor(e,t){super(),this.type="ArithmeticExpressionModuloNode",this.expression1=e,this.expression2=t}},NegatedBooleanExpressionNode:class extends r{constructor(e){super(),this.type="NegatedBooleanExpressionNode",this.expression=e}},BooleanOrExpressionNode:class extends r{constructor(e,t){super(),this.type="BooleanOrExpressionNode",this.expression1=e,this.expression2=t}},BooleanAndExpressionNode:class extends r{constructor(e,t){super(),this.type="BooleanAndExpressionNode",this.expression1=e,this.expression2=t}},BooleanXorExpressionNode:class extends r{constructor(e,t){super(),this.type="BooleanXorExpressionNode",this.expression1=e,this.expression2=t}},EqualToExpressionNode:class extends r{constructor(e,t){super(),this.type="EqualToExpressionNode",this.expression1=e,this.expression2=t}},NotEqualToExpressionNode:class extends r{constructor(e,t){super(),this.type="NotEqualToExpressionNode",this.expression1=e,this.expression2=t}},GreaterThanExpressionNode:class extends r{constructor(e,t){super(),this.type="GreaterThanExpressionNode",this.expression1=e,this.expression2=t}},GreaterThanOrEqualToExpressionNode:class extends r{constructor(e,t){super(),this.type="GreaterThanOrEqualToExpressionNode",this.expression1=e,this.expression2=t}},LessThanExpressionNode:class extends r{constructor(e,t){super(),this.type="LessThanExpressionNode",this.expression1=e,this.expression2=t}},LessThanOrEqualToExpressionNode:class extends r{constructor(e,t){super(),this.type="LessThanOrEqualToExpressionNode",this.expression1=e,this.expression2=t}},SetVariableEqualToNode:class extends a{constructor(e,t){super(),this.type="SetVariableEqualToNode",this.variableName=e,this.expression=t}},FunctionCallNode:class extends d{constructor(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];super(),this.type="FunctionCallNode",this.functionName=e,this.args=t,this.lineNum=s.first_line,this.hashtags=n}},InlineExpressionNode:class extends r{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];super(),this.type="InlineExpressionNode",this.expression=e,this.lineNum=t.first_line,this.hashtags=s}}},e.exports=t.default},321:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(s(33)),i=o(s(101)),a=s(293);function o(e){return e&&e.__esModule?e:{default:e}}a.parser.lexer=new i.default,a.parser.yy=n.default,a.parser.yy.declarations={},a.parser.yy.parseError=function(e){throw e},a.parser.yy.registerDeclaration=function(e,t,s){if(!this.areDeclarationsHandled){if(this.declarations[e])throw new Error(`Duplicate declaration found for variable: ${e}`);this.declarations[e]={variableName:e,expression:t,explicitType:s}}},t.default=a.parser,e.exports=t.default},528:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class s{}class n extends s{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0;super(),this.text=e,this.isAvailable=t,this.hashtags=s,this.metadata=n}}t.default={Result:s,TextResult:class extends s{constructor(e,t,s){super(),this.text=e,this.hashtags=t,this.metadata=s}},CommandResult:class extends s{constructor(e,t,s){super(),this.command=e,this.hashtags=t,this.metadata=s}},OptionsResult:class extends s{constructor(e,t){super(),this.options=e.map((e=>new n(e.text,e.isAvailable,e.hashtags))),this.metadata=t}select(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||e>=this.options.length)throw new Error(`Cannot select option #${e}, there are ${this.options.length} options`);this.selected=e}}},e.exports=t.default},458:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(s(321)),i=d(s(528)),a=d(s(696)),o=d(s(442)),r=d(s(33));function d(e){return e&&e.__esModule?e:{default:e}}const l=r.default.types;t.default={Runner:class{constructor(){this.noEscape=!1,this.yarnNodes={},this.variables=new a.default,this.functions={},this.visited={},this.registerFunction("visited",(e=>!!this.visited[e[0]]))}load(e){if(!e)throw new Error("No dialogue supplied");let t;t="string"==typeof e?(0,o.default)(e):e,t.forEach((e=>{if(!e.title)throw new Error(`Node needs a title: ${JSON.stringify(e)}`);if(e.title.split(".").length>1)throw new Error(`Node title cannot contain a dot: ${e.title}`);if(!e.body)throw new Error(`Node needs a body: ${JSON.stringify(e)}`);if(this.yarnNodes[e.title])throw new Error(`Duplicate node title: ${e.title}`);this.yarnNodes[e.title]=e})),n.default.yy.areDeclarationsHandled=!1,n.default.yy.declarations={},this.handleDeclarations(t),n.default.yy.areDeclarationsHandled=!0}setVariableStorage(e){if("function"!=typeof e.set||"function"!=typeof e.get)throw new Error('Variable Storage object must contain both a "set" and "get" function');this.variables=e}handleDeclarations(e){const t={Number:0,String:"",Boolean:!1},s=e.reduce(((e,t)=>[...e,...t.body.split(/\r?\n+/)]),[]).reduce(((e,t)=>t.match(/^<>/)?[...e,t]:e),[]);s.length&&n.default.parse(s.join("\n")),Object.entries(n.default.yy.declarations).forEach((e=>{let[s,{expression:n,explicitType:i}]=e;const a=this.evaluateExpressionOrLiteral(n);if(i&&typeof a!=typeof t[i])throw new Error(`Cannot declare value ${a} as type ${i} for variable ${s}`);this.variables.get(s)||this.variables.set(s,a)}))}registerFunction(e,t){if("function"!=typeof t)throw new Error("Registered function must be...well...a function");this.functions[e]=t}*run(e){let t=e;for(;t;){const s=this.yarnNodes[t];if(void 0===s)throw new Error(`Node "${e}" does not exist`);this.visited[e]=!0;const i=Array.from(n.default.parse(s.body)),a={...s};delete a.body;const o=yield*this.evalNodes(i,a);t=o&&o.jump}}*evalNodes(e,t){let s=[],n="";const a=e.filter(Boolean);for(let e=0;e{let t=!0;e.conditionalExpression&&!this.evaluateExpressionOrLiteral(e.conditionalExpression)&&(t=!1);const s=this.evaluateExpressionOrLiteral(e.text);return Object.assign(e,{isAvailable:t,text:s})})),n=new i.default.OptionsResult(s,t);if(yield n,"number"!=typeof n.selected)throw new Error("No option selected before resuming dialogue");{const e=s[n.selected];if(e.content)return yield*this.evalNodes(e.content,t)}}evaluateAssignment(e){const t=this.evaluateExpressionOrLiteral(e.expression),s=this.variables.get(e.variableName);if(s&&typeof s!=typeof t)throw new Error(`Variable ${e.variableName} is already type ${typeof s}; cannot set equal to ${t} of type ${typeof t}`);this.variables.set(e.variableName,t)}evaluateConditional(e){if("IfNode"===e.type){if(this.evaluateExpressionOrLiteral(e.expression))return e.statement}else{if("IfElseNode"!==e.type&&"ElseIfNode"!==e.type)return e.statement;if(this.evaluateExpressionOrLiteral(e.expression))return e.statement;if(e.elseStatement)return this.evaluateConditional(e.elseStatement)}return null}evaluateFunctionCall(e){if(this.functions[e.functionName])return this.functions[e.functionName](...e.args.map(this.evaluateExpressionOrLiteral,this));throw new Error(`Function "${e.functionName}" not found`)}evaluateExpressionOrLiteral(e){if(Array.isArray(e))return e.reduce(((e,t)=>e+this.evaluateExpressionOrLiteral(t).toString()),"");const t={UnaryMinusExpressionNode:e=>-e,ArithmeticExpressionAddNode:(e,t)=>e+t,ArithmeticExpressionMinusNode:(e,t)=>e-t,ArithmeticExpressionExponentNode:(e,t)=>e**t,ArithmeticExpressionMultiplyNode:(e,t)=>e*t,ArithmeticExpressionDivideNode:(e,t)=>e/t,ArithmeticExpressionModuloNode:(e,t)=>e%t,NegatedBooleanExpressionNode:e=>!e,BooleanOrExpressionNode:(e,t)=>e||t,BooleanAndExpressionNode:(e,t)=>e&&t,BooleanXorExpressionNode:(e,t)=>!!(e^t),EqualToExpressionNode:(e,t)=>e===t,NotEqualToExpressionNode:(e,t)=>e!==t,GreaterThanExpressionNode:(e,t)=>e>t,GreaterThanOrEqualToExpressionNode:(e,t)=>e>=t,LessThanExpressionNode:(e,t)=>ee<=t,TextNode:e=>e.text,EscapedCharacterNode:e=>this.noEscape?e.text:e.text.slice(1),NumericLiteralNode:e=>parseFloat(e.numericLiteral),StringLiteralNode:e=>`${e.stringLiteral}`,BooleanLiteralNode:e=>"true"===e.booleanLiteral,VariableNode:e=>this.variables.get(e.variableName),FunctionCallNode:e=>this.evaluateFunctionCall(e),InlineExpressionNode:e=>e}[e.type];if(!t)throw new Error(`node type not recognized: ${e.type}`);return t(e instanceof l.Expression?this.evaluateExpressionOrLiteral(e.expression||e.expression1):e,e.expression2?this.evaluateExpressionOrLiteral(e.expression2):e)}},TextResult:i.default.TextResult,CommandResult:i.default.CommandResult,OptionsResult:i.default.OptionsResult},e.exports=t.default}},t={};return function s(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,s),a.exports}(954)})())); \ No newline at end of file diff --git a/Extensions/DialogueTree/bondage.js/tests/assignment.json b/Extensions/DialogueTree/bondage.js/tests/assignment.json deleted file mode 100644 index 29930539fd67..000000000000 --- a/Extensions/DialogueTree/bondage.js/tests/assignment.json +++ /dev/null @@ -1,81 +0,0 @@ -[ - { - "title": "Numeric", - "tags": "Tag", - "body": "Test Line\n<>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - },{ - "title": "NumericExpression", - "tags": "Tag", - "body": "Test Line\n<>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "String", - "tags": "Tag", - "body": "Test Line\n<>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "StringExpression", - "tags": "Tag", - "body": "Test Line\n<>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Boolean", - "tags": "Tag", - "body": "Test Line\n<>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "BooleanExpression", - "tags": "Tag", - "body": "Test Line\n<>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Variable", - "tags": "Tag", - "body": "Test Line\n<><>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "VariableExpression", - "tags": "Tag", - "body": "Test Line\n<><>\nTest Line After", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - } -] diff --git a/Extensions/DialogueTree/bondage.js/tests/commandsandfunctions.json b/Extensions/DialogueTree/bondage.js/tests/commandsandfunctions.json deleted file mode 100644 index db49b36d1138..000000000000 --- a/Extensions/DialogueTree/bondage.js/tests/commandsandfunctions.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "title": "BasicCommands", - "tags": "Tag", - "body": "<>text in between commands<> <> <>", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "StopCommand", - "tags": "Tag", - "body": "First line\n<>\nThis shouldn't show", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "FunctionConditional", - "tags": "Tag", - "body": "First line\n<>This shouldn't show<>This should show<>After both", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "VisitedFunction", - "tags": "Tag", - "body": "<>you have visited VisitedFunctionStart!<><>You have not visited SomeOtherNode!<>", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "VisitedFunctionStart", - "tags": "Tag", - "body": "Hello[[VisitedFunction]]", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - } -] diff --git a/Extensions/DialogueTree/bondage.js/tests/conditions.json b/Extensions/DialogueTree/bondage.js/tests/conditions.json deleted file mode 100644 index 610ac5dc09a6..000000000000 --- a/Extensions/DialogueTree/bondage.js/tests/conditions.json +++ /dev/null @@ -1,93 +0,0 @@ -[ - { - "title": "Start", - "tags": "Tag", - "body": "What are you?\n-> A troll\n <>\n-> A nice person\n <>\n[[Objective]]", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Objective", - "tags": "Tag", - "body": "<= 3>>\nBye...\n<>\nIs your objective clear?\n[[Yes|Objective.Yes]]\n[[No|Objective.No]]\n<>\n[[Maybe|Objective.Maybe]]\n<>\n<>\n", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Objective.No", - "tags": "Tag", - "body": "Blah blah blah blah\n[[Objective]]", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Objective.Yes", - "tags": "Tag", - "body": "Good let's start the mission.", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Objective.Maybe", - "tags": "Tag", - "body": "Are you trolling me?\n[[Objective]]", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - - { - "title": "BasicIf", - "tags": "Tag", - "body": "<>\nText before\n<>Inside if<>Text after", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "BasicIfElse", - "tags": "Tag", - "body": "<>\nText before\n<>Inside if<>Inside else<>Text after", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "BasicIfElseIf", - "tags": "Tag", - "body": "<>\nText before\n<>Inside if<>Inside elseif<>Text after", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "BasicIfElseIfElse", - "tags": "Tag", - "body": "<>\nText before\n<>Inside if<>Inside elseif<>Inside else<>Text after", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - } -] diff --git a/Extensions/DialogueTree/bondage.js/tests/links.json b/Extensions/DialogueTree/bondage.js/tests/links.json deleted file mode 100644 index c6ec4e559996..000000000000 --- a/Extensions/DialogueTree/bondage.js/tests/links.json +++ /dev/null @@ -1,72 +0,0 @@ -[ - { - "title": "OneNode", - "tags": "Tag", - "body": "This is a test line", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "ThreeNodes", - "tags": "", - "body": "This is a test line\nThis is another test line[[Option1]]\n[[Option2]]", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Option1", - "tags": "", - "body": "This is Option1's test line", - "position": { - "x": 770, - "y": 84 - }, - "colorID": 0 - }, - { - "title": "Option2", - "tags": "", - "body": "This is Option2's test line", - "position": { - "x": 774, - "y": 404 - }, - "colorID": 0 - }, - { - "title": "NamedLink", - "tags": "", - "body": "This is a test line\nThis is another test line\n[[First choice|Option1]]\n[[Second choice|Option2]]", - "position": { - "x": 774, - "y": 404 - }, - "colorID": 0 - }, - { - "title": "OneLinkPassthrough", - "tags": "", - "body": "First test line\n[[Option1]]", - "position": { - "x": 774, - "y": 404 - }, - "colorID": 0 - }, - { - "title": "LinkAfterShortcuts", - "tags": "", - "body": "First test line\n-> Shortcut 1\n\tThis is the first shortcut\n-> Shortcut 2\n\tThis is the second shortcut\n[[First link|Option1]][[Second link|Option2]]", - "position": { - "x": 774, - "y": 404 - }, - "colorID": 0 - } -] diff --git a/Extensions/DialogueTree/bondage.js/tests/shortcuts.json b/Extensions/DialogueTree/bondage.js/tests/shortcuts.json deleted file mode 100644 index a3b2124cedcd..000000000000 --- a/Extensions/DialogueTree/bondage.js/tests/shortcuts.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "title": "NonNested", - "tags": "Tag", - "body": "This is a test line\n-> Option 1\n\tThis is the first option\n-> Option 2\n\tThis is the second option\nThis is after both options", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Nested", - "tags": "Tag", - "body": "text\n-> shortcut1\n\tText1\n\t-> nestedshortcut1\n\t\tNestedText1\n\t-> nestedshortcut2\n\t\tNestedText2\n-> shortcut2\n\tText2\nmore text", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - }, - { - "title": "Conditional", - "tags": "Tag", - "body": "This is a test line\n-> Option 1\n\tThis is the first option\n-> Option 2 <>\n\tThis is the second option\n-> Option 3\n\tThis is the third option\nThis is after both options", - "position": { - "x": 449, - "y": 252 - }, - "colorID": 0 - } -] diff --git a/Extensions/DialogueTree/bondage.js/version.txt b/Extensions/DialogueTree/bondage.js/version.txt deleted file mode 100644 index 35d30228886b..000000000000 --- a/Extensions/DialogueTree/bondage.js/version.txt +++ /dev/null @@ -1,5 +0,0 @@ -This extension is using bondage.js library to parse yarn syntax. -https://github.com/hylyh/bondage.js - -The current build used is built from commit 3c63e21 - diff --git a/Extensions/DialogueTree/dialoguetools.ts b/Extensions/DialogueTree/dialoguetools.ts index 25e2aeccf42c..e33266e9bf5a 100644 --- a/Extensions/DialogueTree/dialoguetools.ts +++ b/Extensions/DialogueTree/dialoguetools.ts @@ -703,7 +703,8 @@ namespace gdjs { */ gdjs.dialogueTree.getVisitedBranchTitles = function () { if (this.dialogueIsRunning) { - return Object.keys(this.runner.visited).join(','); + console.log({runner: this.runner}) + // return Object.keys(this.runner.visited).join(','); } return ''; }; @@ -717,10 +718,12 @@ namespace gdjs { if (!title) { title = this.dialogueBranchTitle; } - return ( - Object.keys(this.runner.visited).includes(title) && - this.runner.visited[title] - ); + console.log({bondage}) + return false; + // return ( + // Object.keys(this.runner.visited).includes(title) && + // this.runner.visited[title] + // ); }; /**