From baf8b3a339d0879f0d063e48bb42e8b2c1c4e6ea Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Fri, 15 Feb 2019 00:54:31 +0000 Subject: [PATCH] Publish to pegjs@dev on every CI run This adds a new local package called '@pegjs/publish-dev' that will be run by the CI after all other tasks. '@pegjs/publish-dev' will, as the name implies, publish a new release of pegjs on NPM under the dev tag. --- .gitignore | 1 + README.md | 6 ++ azure-pipelines.yml | 9 +++ docs/.vuepress/public/benchmark-bundle.min.js | 1 - docs/.vuepress/public/test-bundle.min.js | 53 ----------------- package.json | 4 +- packages/pegjs/.npmignore | 1 + packages/pegjs/package.json | 2 +- tools/publish-dev/index.js | 59 +++++++++++++++++++ tools/publish-dev/package.json | 5 ++ webpack.config.js | 8 +-- 11 files changed, 88 insertions(+), 61 deletions(-) delete mode 100644 docs/.vuepress/public/benchmark-bundle.min.js delete mode 100644 docs/.vuepress/public/test-bundle.min.js create mode 100644 packages/pegjs/.npmignore create mode 100644 tools/publish-dev/index.js create mode 100644 tools/publish-dev/package.json diff --git a/.gitignore b/.gitignore index 0e9dcc7..a6e8677 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.idea /packages/pegjs/dist +/packages/pegjs/.npmrc /docs/.vuepress/dist /dist /examples/*.js diff --git a/README.md b/README.md index 1676bfa..ad937b5 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ PEG.js is a simple parser generator for JavaScript that produces fast parsers wi | [~/tools/benchmark][L004] | [![dependencies][L005]][L006] | | [~/tools/bundler][L007] | [![dependencies][L008]][L009] | | [~/tools/impact][L010] | [![dependencies][L011]][L012] | +| [~/tools/publish-dev][L016] | [![dependencies][L017]][L018] | [](https://crossbrowsertesting.com/) @@ -59,3 +60,8 @@ PEG.js is a simple parser generator for JavaScript that produces fast parsers wi [L010]: https://github.com/pegjs/pegjs/tree/master/tools/impact [L011]: https://img.shields.io/david/pegjs/pegjs.svg?path=tools/impact [L012]: https://david-dm.org/pegjs/pegjs?path=tools/impact + + +[L016]: https://github.com/pegjs/pegjs/tree/master/tools/publish-dev +[L017]: https://img.shields.io/david/pegjs/pegjs.svg?path=tools/publish-dev +[L018]: https://david-dm.org/pegjs/pegjs?path=tools/publish-dev diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 178149a..703a654 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,5 +42,14 @@ jobs: env: CC_TEST_REPORTER_ID: $(CC_TEST_REPORTER_ID) CODECOV_TOKEN: $(CODECOV_TOKEN) + afterAll: + - script: | + npm run build-dist + node tools/publish-dev + displayName: 'publish pegjs@dev' + variables: + GIT_BRANCH: $(Build.SourceBranchName) + GIT_COMMIT_SHA: $(Build.SourceVersion) + NPM_TOKEN: $(NPM_TOKEN) publish_test_results_to_pipelines: True publish_code_coverage_to_pipelines: True diff --git a/docs/.vuepress/public/benchmark-bundle.min.js b/docs/.vuepress/public/benchmark-bundle.min.js deleted file mode 100644 index 6b292cf..0000000 --- a/docs/.vuepress/public/benchmark-bundle.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(u,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("benchmark",[],e):"object"==typeof exports?exports.benchmark=e():(u.peg=u.peg||{},u.peg.benchmark=e())}("undefined"!=typeof self?self:window,function(){return function(u){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return u[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=u,t.c=e,t.d=function(u,e,n){t.o(u,e)||Object.defineProperty(u,e,{enumerable:!0,get:n})},t.r=function(u){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},t.t=function(u,e){if(1&e&&(u=t(u)),8&e)return u;if(4&e&&"object"==typeof u&&u&&u.__esModule)return u;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:u}),2&e&&"string"!=typeof u)for(var r in u)t.d(n,r,function(e){return u[e]}.bind(null,r));return n},t.n=function(u){var e=u&&u.__esModule?function(){return u.default}:function(){return u};return t.d(e,"a",e),e},t.o=function(u,e){return Object.prototype.hasOwnProperty.call(u,e)},t.p="",t(t.s=49)}([function(u,e,t){"use strict";var n=t(9),r=t(5),o=t(23),i=t(14),a=t(1),s={VERSION:t(13).version,GrammarError:n,ast:r,parser:i,compiler:o,util:a,generate:function(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=new o.Session({passes:a.convertPasses(o.passes)});return Array.isArray(e.plugins)&&e.plugins.forEach(function(u){"function"==typeof u.use&&u.use(t,e)}),o.compile(t.parse(u,e.parser||{}),t,e)}};u.exports=s},function(u,e,t){"use strict";var n=t(19),r=t(20),o=t(21),i=t(11),a=function(){function u(u){return Array.isArray(u)?u:o.values(u)}return function(e){return o.map(e,u)}}();u.exports={find:n.find,findIndex:n.findIndex,stringEscape:r.stringEscape,regexpEscape:r.regexpEscape,reservedWords:r.reservedWords,clone:o.clone,each:o.each,extend:o.extend,map:o.map,values:o.values,enforceFastProperties:o.enforceFastProperties,evalModule:i.evalModule,convertPasses:a,processOptions:function(u,e){var t={};return o.extend(t,u),o.extend(t,e),t},noop:function(){}}},,,,function(u,e,t){"use strict";e.visitor=t(10),e.Node=t(12),e.Grammar=t(22)},,,,function(u,e,t){"use strict";u.exports=function u(e,t){!function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),this.name="GrammarError",this.message=e,this.location=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,u)}},function(u,e,t){"use strict";function n(u,e){for(var t=0;t1?n-1:0),o=1;o1?t-1:0),r=1;r1?t-1:0),r=1;r (https://majda.cz/)","Futago-za Ryuu "],types:"typings/pegjs.d.ts",main:"lib/peg.js",bin:"bin/peg.js",engines:{node:">= 6"}}},function(u,e,t){"use strict";var n=t(5),r=t(1);function o(u,e,t,n){this.message=u,this.expected=e,this.found=t,this.location=n,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,o)}!function(u,e){function t(){this.constructor=u}t.prototype=e.prototype,u.prototype=new t}(o,Error),o.buildMessage=function(u,e){var t={literal:function(u){return'"'+r(u.text)+'"'},class:function(u){var e=u.parts.map(function(u){return Array.isArray(u)?o(u[0])+"-"+o(u[1]):o(u)});return"["+(u.inverted?"^":"")+e+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(u){return u.description},not:function(u){return"not "+i(u.expected)}};function n(u){return u.charCodeAt(0).toString(16).toUpperCase()}function r(u){return u.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+n(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+n(u)})}function o(u){return u.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+n(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+n(u)})}function i(u){return t[u.type](u)}return"Expected "+function(u){var e,t,n=u.map(i);if(n.sort(),n.length>0){for(e=1,t=1;et.charCodeAt(0)&&Le("Invalid character range: "+u.substring(je,Oe)+"."),[e,t]},Be=function(){return""},me=function(){return"\0"},xe=function(){return"\b"},be=function(){return"\f"},Pe=function(){return"\n"},ye=function(){return"\r"},_e=function(){return"\t"},$e=function(){return"\v"},Se=function(u){return String.fromCharCode(parseInt(u,16))},ke=function(){return St("any")},Re=function(){Le("Unbalanced brace.")},Oe=0,je=0,Te=[{line:1,column:1}],Ie=[],Ne=0;if("startRule"in e){if(!(e.startRule in a))throw new Error("Can't start parsing from rule \""+e.startRule+'".');s=a[e.startRule]}function we(){return Ve(je,Oe)}function Le(u,e){throw function(u,e){return new o(u,null,null,e)}(u,e=void 0!==e?e:Ve(je,Oe))}function Ue(u,e){return{type:"literal",text:u,ignoreCase:e}}function He(u){return{type:"other",description:u}}function ze(e){var t,n=Te[e];if(n)return n;for(t=e-1;!Te[t];)t--;for(n={line:(n=Te[t]).line,column:n.column};t0;function Ve(u,t){var n={};Me&&(n.filename=e.filename);var r=ze(u);n.start={offset:u,line:r.line,column:r.column};var o=ze(t);return n.end={offset:t,line:o.line,column:o.column},n}function Ge(){Ie.push({pos:Oe,variants:[]})}function Xe(u){var e=Ie[Ie.length-1];Oee.pos&&(e.pos=Oe,e.variants=[]),e.variants.push(u))}function Ye(u){var e=Ie.pop(),t=Ie[Ie.length-1],n=e.variants;t.pos===e.pos&&(u&&(n=n.map(function(u){return"not"===u.type?u.expected:{type:"not",expected:u}})),Array.prototype.push.apply(t.variants,n))}function We(){var u,e,t,n,r;if(u=Oe,bt(),e=Oe,(t=function(){var u,e;return u=Oe,(e=xt())!==i&&Pt()!==i?(je=u,u=Wu(e)):(Oe=u,u=i),u}())!==i?(n=bt(),e=t):(Oe=e,e=i),e===i&&(e=null),t=[],n=Oe,(r=qe())!==i?(bt(),n=r):(Oe=n,n=i),n!==i)for(;n!==i;)t.push(n),n=Oe,(r=qe())!==i?(bt(),n=r):(Oe=n,n=i);else t=i;return t!==i?(je=u,u=Yu(e,t)):(Oe=u,u=i),u}function qe(){var e,t,n,r,o,a;return e=Oe,(t=pt())!==i?(bt(),n=Oe,(r=ft())!==i?(bt(),n=r):(Oe=n,n=i),n===i&&(n=null),a=vu,0===Ne&&Xe(a),61===u.charCodeAt(Oe)?(r=c,Oe++):r=i,r!==i?(bt(),(o=Je())!==i&&Pt()!==i?(je=e,e=qu(t,n,o)):(Oe=e,e=i)):(Oe=e,e=i)):(Oe=e,e=i),e}function Je(){var e,t,n,r,o,a,s=function(u){0===Ne&&Xe(u)};if(e=Oe,(t=Ke())!==i){for(n=[],r=Oe,bt(),s(Du),47===u.charCodeAt(Oe)?(o=p,Oe++):o=i,o!==i?(bt(),(a=Ke())!==i?r=a:(Oe=r,r=i)):(Oe=r,r=i);r!==i;)n.push(r),r=Oe,bt(),s(Du),47===u.charCodeAt(Oe)?(o=p,Oe++):o=i,o!==i?(bt(),(a=Ke())!==i?r=a:(Oe=r,r=i)):(Oe=r,r=i);je=e,e=Ju(t,n)}else Oe=e,e=i;return e}function Ke(){var u,e,t,n;return u=Oe,(e=function(){var u,e,t,n,r;if(u=Oe,(e=Ze())!==i){for(t=[],n=Oe,bt(),(r=Ze())!==i?n=r:(Oe=n,n=i);n!==i;)t.push(n),n=Oe,bt(),(r=Ze())!==i?n=r:(Oe=n,n=i);je=u,u=Zu(e,t)}else Oe=u,u=i;return u}())!==i?(t=Oe,bt(),(n=xt())!==i?t=n:(Oe=t,t=i),t===i&&(t=null),je=u,u=Ku(e,t)):(Oe=u,u=i),u}function Ze(){var e,t,n,r,o,a;return e=Oe,a=Bu,0===Ne&&Xe(a),64===u.charCodeAt(Oe)?(t=l,Oe++):t=i,t!==i?((n=Qe())===i&&(n=null),r=bt(),(o=ut())!==i?(je=e,e=Qu(n,o)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,(t=Qe())!==i?(n=bt(),(r=ut())!==i?(je=e,e=ue(t,r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=ut())),e}function Qe(){var e,t,n,r;return e=Oe,(t=pt())!==i?(bt(),r=mu,0===Ne&&Xe(r),58===u.charCodeAt(Oe)?(n=A,Oe++):n=i,n!==i?(je=e,e=ee(t)):(Oe=e,e=i)):(Oe=e,e=i),e}function ut(){var e,t,n;return e=Oe,(t=function(){var e,t,n=function(u){0===Ne&&Xe(u)};return e=Oe,n(xu),36===u.charCodeAt(Oe)?(t=f,Oe++):t=i,t!==i&&(je=e,t=ne()),(e=t)===i&&(e=Oe,n(bu),38===u.charCodeAt(Oe)?(t=E,Oe++):t=i,t!==i&&(je=e,t=re()),(e=t)===i&&(e=Oe,n(Pu),33===u.charCodeAt(Oe)?(t=C,Oe++):t=i,t!==i&&(je=e,t=oe()),e=t)),e}())!==i?(bt(),(n=et())!==i?(je=e,e=te(t,n)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=et()),e}function et(){var e,t,n;return e=Oe,(t=tt())!==i?(bt(),(n=function(){var e,t,n=function(u){0===Ne&&Xe(u)};return e=Oe,n(yu),63===u.charCodeAt(Oe)?(t=h,Oe++):t=i,t!==i&&(je=e,t=ae()),(e=t)===i&&(e=Oe,n(_u),42===u.charCodeAt(Oe)?(t=F,Oe++):t=i,t!==i&&(je=e,t=se()),(e=t)===i&&(e=Oe,n($u),43===u.charCodeAt(Oe)?(t=d,Oe++):t=i,t!==i&&(je=e,t=ce()),e=t)),e}())!==i?(je=e,e=ie(t,n)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=tt()),e}function tt(){var e,t,n,r,o=function(u){0===Ne&&Xe(u)};return(e=function(){var e,t,n,r;return r=Hu,0===Ne&&Xe(r),Ne++,e=Oe,(t=ft())!==i?(105===u.charCodeAt(Oe)?(n=L,Oe++):n=i,n===i&&(n=null),je=e,e=de(t,n)):(Oe=e,e=i),Ne--,e}())===i&&(e=function(){var e,t,n,r,o,a,s;if(s=Mu,0===Ne&&Xe(s),Ne++,e=Oe,91===u.charCodeAt(Oe)?(t=z,Oe++):t=i,t!==i){for(94===u.charCodeAt(Oe)?(n=M,Oe++):n=i,n===i&&(n=null),r=[],o=ht();o!==i;)r.push(o),o=ht();93===u.charCodeAt(Oe)?(o=V,Oe++):o=i,o!==i?(105===u.charCodeAt(Oe)?(a=L,Oe++):a=i,a===i&&(a=null),je=e,e=ve(n,r,a)):(Oe=e,e=i)}else Oe=e,e=i;return Ne--,e}())===i&&(e=function(){var e,t,n;return e=Oe,n=Vu,0===Ne&&Xe(n),46===u.charCodeAt(Oe)?(t=eu,Oe++):t=i,t!==i&&(je=e,t=ke()),e=t}())===i&&(e=function(){var e,t,n,r,o,a,s,p,l;return e=Oe,(t=pt())!==i?(n=Oe,Ge(),r=Oe,o=bt(),a=Oe,(s=ft())!==i?(p=bt(),a=s=[s,p]):(Oe=a,a=i),a===i&&(a=null),l=vu,0===Ne&&Xe(l),61===u.charCodeAt(Oe)?(s=c,Oe++):s=i,s!==i?r=o=[o,a,s]:(Oe=r,r=i),Ye(!0),r===i?n=void 0:(Oe=n,n=i),n!==i?(je=e,e=le(t)):(Oe=e,e=i)):(Oe=e,e=i),e}())===i&&(e=function(){var e,t,n;return e=Oe,(t=function(){var e,t,n=function(u){0===Ne&&Xe(u)};return e=Oe,n(bu),38===u.charCodeAt(Oe)?(t=E,Oe++):t=i,t!==i&&(je=e,t=fe()),(e=t)===i&&(e=Oe,n(Pu),33===u.charCodeAt(Oe)?(t=C,Oe++):t=i,t!==i&&(je=e,t=Ee()),e=t),e}())!==i?(bt(),(n=xt())!==i?(je=e,e=Ae(t,n)):(Oe=e,e=i)):(Oe=e,e=i),e}())===i&&(e=Oe,o(Su),40===u.charCodeAt(Oe)?(t=g,Oe++):t=i,t!==i?(bt(),(n=Je())!==i?(bt(),o(ku),41===u.charCodeAt(Oe)?(r=v,Oe++):r=i,r!==i?(je=e,e=pe(n)):(Oe=e,e=i)):(Oe=e,e=i)):(Oe=e,e=i)),e}function nt(){var e,t;return t=Ru,0===Ne&&Xe(t),u.length>Oe?(e=u.charAt(Oe),Oe++):e=i,e}function rt(){var e,t;return t=Ou,0===Ne&&Xe(t),Ne++,9===u.charCodeAt(Oe)?(e=D,Oe++):e=i,e===i&&(11===u.charCodeAt(Oe)?(e=B,Oe++):e=i,e===i&&(12===u.charCodeAt(Oe)?(e=m,Oe++):e=i,e===i&&(32===u.charCodeAt(Oe)?(e=x,Oe++):e=i,e===i&&(160===u.charCodeAt(Oe)?(e=b,Oe++):e=i,e===i&&(65279===u.charCodeAt(Oe)?(e=P,Oe++):e=i,e===i&&(e=function(){var e;return gu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())))))),Ne--,e}function ot(){var e,t;return t=ju,0===Ne&&Xe(t),ou.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}function it(){var e,t;return t=Tu,0===Ne&&Xe(t),Ne++,10===u.charCodeAt(Oe)?(e=y,Oe++):e=i,e===i&&(u.substr(Oe,2)===_?(e=_,Oe+=2):e=i,e===i&&(13===u.charCodeAt(Oe)?(e=$,Oe++):e=i,e===i&&(8232===u.charCodeAt(Oe)?(e=S,Oe++):e=i,e===i&&(8233===u.charCodeAt(Oe)?(e=k,Oe++):e=i)))),Ne--,e}function at(){var e,t;return t=Iu,0===Ne&&Xe(t),Ne++,(e=function(){var e,t,n,r,o,a,s;if(e=Oe,u.substr(Oe,2)===R?(t=R,Oe+=2):t=i,t!==i){for(n=Oe,r=[],o=Oe,a=Oe,Ge(),u.substr(Oe,2)===O?(s=O,Oe+=2):s=i,Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);o!==i;)r.push(o),o=Oe,a=Oe,Ge(),u.substr(Oe,2)===O?(s=O,Oe+=2):s=i,Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);n=u.substring(n,Oe),u.substr(Oe,2)===O?(r=O,Oe+=2):r=i,r!==i?(je=e,e=Ce(n)):(Oe=e,e=i)}else Oe=e,e=i;return e}())===i&&(e=ct()),Ne--,e}function st(){var e,t,n,r,o,a,s,c=function(u){0===Ne&&Xe(u)};if(e=Oe,c(Nu),u.substr(Oe,2)===R?(t=R,Oe+=2):t=i,t!==i){for(n=Oe,r=[],o=Oe,a=Oe,Ge(),c(wu),u.substr(Oe,2)===O?(s=O,Oe+=2):s=i,s===i&&(s=ot()),Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);o!==i;)r.push(o),o=Oe,a=Oe,Ge(),c(wu),u.substr(Oe,2)===O?(s=O,Oe+=2):s=i,s===i&&(s=ot()),Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);n=u.substring(n,Oe),c(wu),u.substr(Oe,2)===O?(r=O,Oe+=2):r=i,r!==i?(je=e,e=Ce(n)):(Oe=e,e=i)}else Oe=e,e=i;return e}function ct(){var e,t,n,r,o,a,s,c;if(e=Oe,c=Lu,0===Ne&&Xe(c),u.substr(Oe,2)===j?(t=j,Oe+=2):t=i,t!==i){for(n=Oe,r=[],o=Oe,a=Oe,Ge(),s=ot(),Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);o!==i;)r.push(o),o=Oe,a=Oe,Ge(),s=ot(),Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);n=u.substring(n,Oe),je=e,e=he(n)}else Oe=e,e=i;return e}function pt(){var u,e,t,n,r;if(r=Uu,0===Ne&&Xe(r),Ne++,u=Oe,(e=lt())!==i){for(t=[],n=At();n!==i;)t.push(n),n=At();je=u,u=Fe(e,t)}else Oe=u,u=i;return Ne--,u}function lt(){var e,t,n;return(e=function(){var e;return(e=function(){var e;return fu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(e=function(){var e;return cu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(e=function(){var e;return Au.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(e=function(){var e;return pu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(e=function(){var e;return lu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(e=function(){var e;return Fu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}()),e}())===i&&(36===u.charCodeAt(Oe)?(e=f,Oe++):e=i,e===i&&(95===u.charCodeAt(Oe)?(e=T,Oe++):e=i,e===i&&(e=Oe,92===u.charCodeAt(Oe)?(t=I,Oe++):t=i,t!==i&&(n=Dt())!==i?e=n:(Oe=e,e=i)))),e}function At(){var e;return(e=lt())===i&&(e=function(){var e;return(e=function(){var e;return Cu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(e=function(){var e;return Eu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}()),e}())===i&&(e=function(){var e;return hu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(e=function(){var e;return du.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}())===i&&(8204===u.charCodeAt(Oe)?(e=N,Oe++):e=i,e===i&&(8205===u.charCodeAt(Oe)?(e=w,Oe++):e=i)),e}function ft(){var e,t,n,r,o;if(o=zu,0===Ne&&Xe(o),Ne++,e=Oe,34===u.charCodeAt(Oe)?(t=U,Oe++):t=i,t!==i){for(n=[],r=Et();r!==i;)n.push(r),r=Et();34===u.charCodeAt(Oe)?(r=U,Oe++):r=i,r!==i?(je=e,e=ge(n)):(Oe=e,e=i)}else Oe=e,e=i;if(e===i)if(e=Oe,39===u.charCodeAt(Oe)?(t=H,Oe++):t=i,t!==i){for(n=[],r=Ct();r!==i;)n.push(r),r=Ct();39===u.charCodeAt(Oe)?(r=H,Oe++):r=i,r!==i?(je=e,e=ge(n)):(Oe=e,e=i)}else Oe=e,e=i;return Ne--,e}function Et(){var e,t,n;return e=Oe,t=Oe,Ge(),34===u.charCodeAt(Oe)?(n=U,Oe++):n=i,n===i&&(92===u.charCodeAt(Oe)?(n=I,Oe++):n=i,n===i&&(n=ot())),Ye(!0),n===i?t=void 0:(Oe=t,t=i),t!==i&&(n=nt())!==i?e=n:(Oe=e,e=i),e===i&&(e=Oe,92===u.charCodeAt(Oe)?(t=I,Oe++):t=i,t!==i&&(n=gt())!==i?e=n:(Oe=e,e=i),e===i&&(e=dt())),e}function Ct(){var e,t,n;return e=Oe,t=Oe,Ge(),39===u.charCodeAt(Oe)?(n=H,Oe++):n=i,n===i&&(92===u.charCodeAt(Oe)?(n=I,Oe++):n=i,n===i&&(n=ot())),Ye(!0),n===i?t=void 0:(Oe=t,t=i),t!==i&&(n=nt())!==i?e=n:(Oe=e,e=i),e===i&&(e=Oe,92===u.charCodeAt(Oe)?(t=I,Oe++):t=i,t!==i&&(n=gt())!==i?e=n:(Oe=e,e=i),e===i&&(e=dt())),e}function ht(){var e;return(e=function(){var e,t,n,r;return e=Oe,(t=Ft())!==i?(45===u.charCodeAt(Oe)?(n=G,Oe++):n=i,n!==i&&(r=Ft())!==i?(je=e,e=De(t,r)):(Oe=e,e=i)):(Oe=e,e=i),e}())===i&&(e=Ft()),e}function Ft(){var e,t,n;return e=Oe,t=Oe,Ge(),93===u.charCodeAt(Oe)?(n=V,Oe++):n=i,n===i&&(92===u.charCodeAt(Oe)?(n=I,Oe++):n=i,n===i&&(n=ot())),Ye(!0),n===i?t=void 0:(Oe=t,t=i),t!==i&&(n=nt())!==i?e=n:(Oe=e,e=i),e===i&&(e=Oe,92===u.charCodeAt(Oe)?(t=I,Oe++):t=i,t!==i&&(n=gt())!==i?e=n:(Oe=e,e=i),e===i&&(e=dt())),e}function dt(){var e,t;return e=Oe,92===u.charCodeAt(Oe)?(t=I,Oe++):t=i,t!==i&&it()!==i?(je=e,e=Be()):(Oe=e,e=i),e}function gt(){var e,t,n,r;return(e=function(){var e;return(e=vt())===i&&(e=function(){var e,t,n;return e=Oe,t=Oe,Ge(),(n=function(){var e;return(e=vt())===i&&(e=Bt())===i&&(120===u.charCodeAt(Oe)?(e=Q,Oe++):e=i,e===i&&(117===u.charCodeAt(Oe)?(e=uu,Oe++):e=i)),e}())===i&&(n=ot()),Ye(!0),n===i?t=void 0:(Oe=t,t=i),t!==i&&(n=nt())!==i?e=n:(Oe=e,e=i),e}()),e}())===i&&(e=Oe,48===u.charCodeAt(Oe)?(t=X,Oe++):t=i,t!==i?(n=Oe,Ge(),r=Bt(),Ye(!0),r===i?n=void 0:(Oe=n,n=i),n!==i?(je=e,e=me()):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=function(){var e,t,n,r,o,a;return e=Oe,120===u.charCodeAt(Oe)?(t=Q,Oe++):t=i,t!==i?(n=Oe,r=Oe,(o=mt())!==i&&(a=mt())!==i?r=o=[o,a]:(Oe=r,r=i),(n=r!==i?u.substring(n,Oe):r)!==i?(je=e,e=Se(n)):(Oe=e,e=i)):(Oe=e,e=i),e}())===i&&(e=Dt())),e}function vt(){var e,t;return 39===u.charCodeAt(Oe)?(e=H,Oe++):e=i,e===i&&(34===u.charCodeAt(Oe)?(e=U,Oe++):e=i,e===i&&(92===u.charCodeAt(Oe)?(e=I,Oe++):e=i,e===i&&(e=Oe,98===u.charCodeAt(Oe)?(t=Y,Oe++):t=i,t!==i&&(je=e,t=xe()),(e=t)===i&&(e=Oe,102===u.charCodeAt(Oe)?(t=W,Oe++):t=i,t!==i&&(je=e,t=be()),(e=t)===i&&(e=Oe,110===u.charCodeAt(Oe)?(t=q,Oe++):t=i,t!==i&&(je=e,t=Pe()),(e=t)===i&&(e=Oe,114===u.charCodeAt(Oe)?(t=J,Oe++):t=i,t!==i&&(je=e,t=ye()),(e=t)===i&&(e=Oe,116===u.charCodeAt(Oe)?(t=K,Oe++):t=i,t!==i&&(je=e,t=_e()),(e=t)===i&&(e=Oe,118===u.charCodeAt(Oe)?(t=Z,Oe++):t=i,t!==i&&(je=e,t=$e()),e=t)))))))),e}function Dt(){var e,t,n,r,o,a,s,c;return e=Oe,117===u.charCodeAt(Oe)?(t=uu,Oe++):t=i,t!==i?(n=Oe,r=Oe,(o=mt())!==i&&(a=mt())!==i&&(s=mt())!==i&&(c=mt())!==i?r=o=[o,a,s,c]:(Oe=r,r=i),(n=r!==i?u.substring(n,Oe):r)!==i?(je=e,e=Se(n)):(Oe=e,e=i)):(Oe=e,e=i),e}function Bt(){var e;return iu.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}function mt(){var e;return au.test(u.charAt(Oe))?(e=u.charAt(Oe),Oe++):e=i,e}function xt(){var e,t,n,r,o;return o=Gu,0===Ne&&Xe(o),Ne++,e=Oe,123===u.charCodeAt(Oe)?(t=tu,Oe++):t=i,t!==i?(n=function e(){var t,n,r,o,a,s;if(t=Oe,n=[],r=[],o=Oe,a=Oe,Ge(),su.test(u.charAt(Oe))?(s=u.charAt(Oe),Oe++):s=i,Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i),o!==i)for(;o!==i;)r.push(o),o=Oe,a=Oe,Ge(),su.test(u.charAt(Oe))?(s=u.charAt(Oe),Oe++):s=i,Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);else r=i;for(r===i&&(r=Oe,123===u.charCodeAt(Oe)?(o=tu,Oe++):o=i,o!==i?(a=e(),125===u.charCodeAt(Oe)?(s=nu,Oe++):s=i,s!==i?r=o=[o,a,s]:(Oe=r,r=i)):(Oe=r,r=i));r!==i;){if(n.push(r),r=[],o=Oe,a=Oe,Ge(),su.test(u.charAt(Oe))?(s=u.charAt(Oe),Oe++):s=i,Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i),o!==i)for(;o!==i;)r.push(o),o=Oe,a=Oe,Ge(),su.test(u.charAt(Oe))?(s=u.charAt(Oe),Oe++):s=i,Ye(!0),s===i?a=void 0:(Oe=a,a=i),a!==i&&(s=nt())!==i?o=a=[a,s]:(Oe=o,o=i);else r=i;r===i&&(r=Oe,123===u.charCodeAt(Oe)?(o=tu,Oe++):o=i,o!==i?(a=e(),125===u.charCodeAt(Oe)?(s=nu,Oe++):s=i,s!==i?r=o=[o,a,s]:(Oe=r,r=i)):(Oe=r,r=i))}return t=u.substring(t,Oe)}(),125===u.charCodeAt(Oe)?(r=nu,Oe++):r=i,r!==i?e=n:(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,123===u.charCodeAt(Oe)?(t=tu,Oe++):t=i,t!==i&&(je=e,t=Re()),e=t),Ne--,e}function bt(){var u,e;for(u=[],(e=rt())===i&&(e=it())===i&&(e=at());e!==i;)u.push(e),(e=rt())===i&&(e=it())===i&&(e=at());return u}function Pt(){var e,t,n,r,o;return e=Oe,t=bt(),o=Xu,0===Ne&&Xe(o),59===u.charCodeAt(Oe)?(n=ru,Oe++):n=i,n!==i?e=t=[t,n]:(Oe=e,e=i),e===i&&(e=Oe,t=function(){var u,e;for(u=[],(e=rt())===i&&(e=st());e!==i;)u.push(e),(e=rt())===i&&(e=st());return u}(),(n=ct())===i&&(n=null),(r=it())!==i?e=t=[t,n,r]:(Oe=e,e=i),e===i&&(e=Oe,t=bt(),(n=function(){var e,t,n;return e=Oe,Ge(),n=Ru,0===Ne&&Xe(n),u.length>Oe?(t=u.charAt(Oe),Oe++):t=i,Ye(!0),t===i?e=void 0:(Oe=e,e=i),e}())!==i?e=t=[t,n]:(Oe=e,e=i))),e}var yt=!0,_t={},$t=e.reservedWords||r.reservedWords;function St(u,e){var t=new n.Node(u,we());return null===e?t:(r.extend(t,e),r.enforceFastProperties(t))}Array.isArray($t)&&$t.forEach(function(u){_t[u]=!0});var kt,Rt,Ot=e.extractComments?{}:null;function jt(u,t){if(e.extractComments){var n=we();Ot[n.start.offset]={text:u,multiline:t,location:n}}return u}if(Ge(),(t=s())!==i&&Oe===u.length)return t;throw t!==i&&Oe2&&void 0!==arguments[2]?arguments[2]:{};switch("parser"===(t=h.processOptions(t,{allowedStartRules:[u.rules[0].name],cache:!1,context:{},dependencies:{},exportVar:null,features:null,format:"bare",header:null,optimize:"speed",output:"parser",trace:!1})).output&&(t.format="umd"),h.each(e.passes,function(n){n.forEach(function(n){n(u,e,t)})}),t.output){case"parser":return e.vm.evalModule(u.code,t.context);case"source":return u.code;default:e.error("Invalid output format: ".concat(t.output,"."))}}};u.exports=F},function(u,e,t){"use strict";u.exports=function(u,e,t){u.rules.forEach(function(u){u.reportFailures=!1});for(var n=t.allowedStartRules.map(function(e){var t=u.findRule(e);return t.reportFailures=!0,t}),r=e.buildVisitor({rule:function(u){r(u.expression)},named:function(){},rule_ref:function(e){var t=u.findRule(e.name);t.reportFailures||(t.reportFailures=!0,n.push(t))}});n.length>0;)r(n.pop())}},function(u,e,t){"use strict";var n=t(1);u.exports=function(u,e){var t,r=e.opcodes,o=[],i=[],a=[],s=[];function c(u){var e=JSON.stringify(u),t=n.findIndex(a,function(u){return JSON.stringify(u)===e});return-1===t?a.push(u)-1:t}function p(u,e,t){var r={predicate:u,params:e,body:t},o=JSON.stringify(r),i=n.findIndex(s,function(u){return JSON.stringify(u)===o});return-1===i?s.push(r)-1:i}var l=function(){var u;return(u=[]).concat.apply(u,arguments)};function A(u,e,t,n){return u>0?t:u<0?n:e.concat([t.length,n.length],t,n)}function f(u,e,t,o){var i=n.values(t,function(u){return o-u});return[r.CALL,u,e,i.length].concat(i)}function E(u,e,o){var i=0|u.match;return l([r.PUSH_CURR_POS],[r.EXPECT_NS_BEGIN],t(u,{sp:o.sp+1,env:n.clone(o.env),action:null,reportFailures:o.reportFailures}),[r.EXPECT_NS_END,e?1:0],A(e?-i:i,[e?r.IF_ERROR:r.IF_NOT_ERROR],l([r.POP],[e?r.POP:r.POP_CURR_POS],[r.PUSH_UNDEFINED]),l([r.POP],[e?r.POP_CURR_POS:r.POP],[r.PUSH_FAILED])))}function C(u,e,t){var n=p(!0,Object.keys(t.env),u.code);return l([r.UPDATE_SAVED_POS],f(n,0,t.env,t.sp),A(0|u.match,[r.IF],l([r.POP],e?[r.PUSH_FAILED]:[r.PUSH_UNDEFINED]),l([r.POP],e?[r.PUSH_UNDEFINED]:[r.PUSH_FAILED])))}function h(u){return e=[r.WHILE_NOT_ERROR],t=l([r.APPEND],u),e.concat([t.length],t);var e,t}(t=e.buildVisitor({grammar:function(u){u.rules.forEach(t),u.literals=o,u.classes=i,u.expectations=a,u.functions=s},rule:function(u){u.bytecode=t(u.expression,{sp:-1,env:{},action:null,reportFailures:u.reportFailures})},named:function(u,e){var n=e.reportFailures?c({type:"rule",value:u.name}):null,o=t(u.expression,{sp:e.sp,env:e.env,action:e.action,reportFailures:!1});return e.reportFailures?l([r.EXPECT,n],[r.SILENT_FAILS_ON],o,[r.SILENT_FAILS_OFF]):o},choice:function(u,e){return function u(e,o){return l(t(e[0],{sp:o.sp,env:n.clone(o.env),action:null,reportFailures:o.reportFailures}),e.length<2?[]:A(-(0|e[0].match),[r.IF_ERROR],l([r.POP],u(e.slice(1),o)),[]))}(u.alternatives,e)},action:function(u,e){var o=n.clone(e.env),i="sequence"!==u.expression.type||0===u.expression.elements.length,a=t(u.expression,{sp:e.sp+(i?1:0),env:o,action:u,reportFailures:e.reportFailures}),s=0|u.expression.match,c=i&&s>=0?p(!1,Object.keys(o),u.code):null;return!1===i?a:l([r.PUSH_CURR_POS],a,A(s,[r.IF_NOT_ERROR],l([r.LOAD_SAVED_POS,1],f(c,1,o,e.sp+2)),[]),[r.NIP])},sequence:function(u,e){var n=u.elements.length;return l([r.PUSH_CURR_POS],function u(e,o){if(e.length>0){var i=n-e.slice(1).length;return l(t(e[0],{sp:o.sp,env:o.env,pluck:o.pluck,action:null,reportFailures:o.reportFailures}),A(0|e[0].match,[r.IF_NOT_ERROR],u(e.slice(1),{sp:o.sp+1,env:o.env,pluck:o.pluck,action:o.action,reportFailures:o.reportFailures}),l(i>1?[r.POP_N,i]:[r.POP],[r.POP_CURR_POS],[r.PUSH_FAILED])))}return o.pluck.length>0?l([r.PLUCK,n+1,o.pluck.length],o.pluck.map(function(u){return o.sp-u})):o.action?l([r.LOAD_SAVED_POS,n],f(p(!1,Object.keys(o.env),o.action.code),n+1,o.env,o.sp)):l([r.WRAP,n],[r.NIP])}(u.elements,{sp:e.sp+1,env:e.env,pluck:[],action:e.action,reportFailures:e.reportFailures}))},labeled:function(u,e){var r=e.env,o=u.label,i=e.sp+1;return null!==o&&(r=n.clone(e.env),e.env[o]=i),e.pluck&&u.pick&&e.pluck.push(i),t(u.expression,{sp:e.sp,env:r,action:null,reportFailures:e.reportFailures})},text:function(u,e){return l([r.PUSH_CURR_POS],t(u.expression,{sp:e.sp+1,env:n.clone(e.env),action:null,reportFailures:e.reportFailures}),A(0|u.expression.match,[r.IF_NOT_ERROR],l([r.POP],[r.TEXT]),[r.NIP]))},simple_and:function(u,e){return E(u.expression,!1,e)},simple_not:function(u,e){return E(u.expression,!0,e)},optional:function(u,e){return l(t(u.expression,{sp:e.sp,env:n.clone(e.env),action:null,reportFailures:e.reportFailures}),A(-(0|u.expression.match),[r.IF_ERROR],l([r.POP],[r.PUSH_NULL]),[]))},zero_or_more:function(u,e){var o=t(u.expression,{sp:e.sp+1,env:n.clone(e.env),action:null,reportFailures:e.reportFailures});return l([r.PUSH_EMPTY_ARRAY],o,h(o),[r.POP])},one_or_more:function(u,e){var o=t(u.expression,{sp:e.sp+1,env:n.clone(e.env),action:null,reportFailures:e.reportFailures});return l([r.PUSH_EMPTY_ARRAY],o,A(0|u.expression.match,[r.IF_NOT_ERROR],l(h(o),[r.POP]),l([r.POP],[r.POP],[r.PUSH_FAILED])))},group:function(u,e){return t(u.expression,{sp:e.sp,env:n.clone(e.env),action:null,reportFailures:e.reportFailures})},semantic_and:function(u,e){return C(u,!1,e)},semantic_not:function(u,e){return C(u,!0,e)},rule_ref:function(e){return[r.RULE,u.indexOfRule(e.name)]},literal:function(u,e){if(u.value.length>0){var t=0|u.match,n=0===t||t>0&&!u.ignoreCase?(a=u.ignoreCase?u.value.toLowerCase():u.value,-1===(s=o.indexOf(a))?o.push(a)-1:s):null,i=e.reportFailures?c({type:"literal",value:u.value,ignoreCase:u.ignoreCase}):null;return l(e.reportFailures?[r.EXPECT,i]:[],A(t,u.ignoreCase?[r.MATCH_STRING_IC,n]:[r.MATCH_STRING,n],u.ignoreCase?[r.ACCEPT_N,u.value.length]:[r.ACCEPT_STRING,n],[r.PUSH_FAILED]))}var a,s;return[r.PUSH_EMPTY_STRING]},class:function(u,e){var t=0|u.match,o=0===t?function(u){var e={value:u.parts,inverted:u.inverted,ignoreCase:u.ignoreCase},t=JSON.stringify(e),r=n.findIndex(i,function(u){return JSON.stringify(u)===t});return-1===r?i.push(e)-1:r}(u):null,a=e.reportFailures?c({type:"class",value:u.parts,inverted:u.inverted,ignoreCase:u.ignoreCase}):null;return l(e.reportFailures?[r.EXPECT,a]:[],A(t,[r.MATCH_CLASS,o],[r.ACCEPT_N,1],[r.PUSH_FAILED]))},any:function(u,e){var t=e.reportFailures?c({type:"any"}):null;return l(e.reportFailures?[r.EXPECT,t]:[],A(0|u.match,[r.MATCH_ANY],[r.ACCEPT_N,1],[r.PUSH_FAILED]))}}))(u)}},function(u,e,t){"use strict";var n=t(1),r=t(13).version;u.exports=function(u,e,t){var o=e.opcodes,i=t.features||{};function a(u,e){return u in i?!!i[u]:null==e||!!e}var s=/^([^`\r\n]+?(?:`[^`]*?`[^\r\n]*?)?)$/gm;function c(u){return u.replace(s," $1")}function p(u){return u.replace(s," $1")}var l=function(u){return"peg$c"+u},A=function(u){return"peg$r"+u},f=function(u){return"peg$e"+u},E=function(u){return"peg$f"+u};function C(e,n){var r=[];return r.push(["","var rule$expects = function (expected) {"," if (peg$silentFails === 0) peg$expect(expected);","}",""].join("\n")),t.trace&&r.push(["peg$tracer.trace({",' type: "rule.enter",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos)","});",""].join("\n")),t.cache&&(r.push(["var key = peg$currPos * "+u.rules.length+" + "+n+";","var cached = peg$resultsCache[key];","var rule$expectations = [];","","rule$expects = function (expected) {"," if (peg$silentFails === 0) peg$expect(expected);"," rule$expectations.push(expected);","}","","if (cached) {"," peg$currPos = cached.nextPos;",""," rule$expectations = cached.expectations;"," if (peg$silentFails === 0) {"," rule$expectations.forEach(peg$expect);"," }",""].join("\n")),t.trace&&r.push(["if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos)"," });","}",""].join("\n")),r.push([" return cached.result;","}",""].join("\n"))),r.join("\n")}function h(u,e){var n=[];return t.cache&&n.push(["","peg$resultsCache[key] = {"," nextPos: peg$currPos,"," result: "+e+","," expectations: rule$expectations","};"].join("\n")),t.trace&&n.push(["","if ("+e+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+u+","," result: "+e+","," location: peg$computeLocation(startPos, peg$currPos)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+u+","," location: peg$computeLocation(startPos, startPos)"," });","}"].join("\n")),n.push(["","return "+e+";"].join("\n")),n.join("\n")}u.code=function(u){function e(){var u="// Generated by PEG.js v".concat(r,", https://pegjs.org/"),e=t.header;return"string"==typeof e?u+="\n\n"+e:Array.isArray(e)&&(u+="\n\n",e.forEach(function(e){u+="// "+e})),u}function o(){return t.trace&&a("DefaultTracer")?["{"," SyntaxError: peg$SyntaxError,"," DefaultTracer: peg$DefaultTracer,"," parse: peg$parse","}"].join("\n"):["{"," SyntaxError: peg$SyntaxError,"," parse: peg$parse","}"].join("\n")}return{bare:function(){return[e(),"(function() {",' "use strict";',"",c(u),"",c("return "+o()+";"),"})()"].join("\n")},commonjs:function(){var r=[],i=Object.keys(t.dependencies);return r.push([e(),"",'"use strict";',""].join("\n")),i.length>0&&(i.forEach(function(u){r.push("var "+u+' = require("'+n.stringEscape(t.dependencies[u])+'");')}),r.push("")),r.push([u,"","module.exports = "+o()+";",""].join("\n")),r.join("\n")},es:function(){var r=[],i=Object.keys(t.dependencies);return r.push(e(),""),i.length>0&&(i.forEach(function(u){r.push("import "+u+' from "'+n.stringEscape(t.dependencies[u])+'";')}),r.push("")),r.push(u,"","export "+(t.trace&&a("DefaultTracer")?["{"," peg$SyntaxError as SyntaxError,"," peg$DefaultTracer as DefaultTracer,"," peg$parse as parse","}"].join("\n"):["{"," peg$SyntaxError as SyntaxError,"," peg$parse as parse","}"].join("\n"))+";","","export default "+o()+";",""),r.join("\n")},amd:function(){var r=Object.keys(t.dependencies),i="["+r.map(function(u){return t.dependencies[u]}).map(function(u){return'"'.concat(n.stringEscape(u),'"')}).join(", ")+"]",a=r.join(", ");return[e(),"define("+i+", function("+a+") {",' "use strict";',"",c(u),"",c("return "+o()+";"),"});",""].join("\n")},globals:function(){return[e(),"(function(root) {",' "use strict";',"",c(u),"",c("root."+t.exportVar+" = "+o()+";"),"})(this);",""].join("\n")},umd:function(){var r=[],i=Object.keys(t.dependencies),a=i.map(function(u){return t.dependencies[u]}),s="["+a.map(function(u){return'"'.concat(n.stringEscape(u),'"')}).join(", ")+"]",p=a.map(function(u){return'require("'.concat(n.stringEscape(u),'")')}).join(", "),l=i.map(function(u){return"root."+u}).join(", "),A=i.join(", ");return r.push([e(),"(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+s+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+p+");"].join("\n")),null!==t.exportVar&&r.push([" } else {"," root."+t.exportVar+" = factory("+l+");"].join("\n")),r.push([" }","})(this, function("+A+") {",' "use strict";',"",c(u),"",c("return "+o()+";"),"});",""].join("\n")),r.join("\n")}}[t.format]()}(function(){var r=[];if(r.push(["function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," this.message = message;"," this.expected = expected;"," this.found = found;"," this.location = location;",' this.name = "SyntaxError";',""," // istanbul ignore next",' if (typeof Error.captureStackTrace === "function") {'," Error.captureStackTrace(this, peg$SyntaxError);"," }","}","","peg$subclass(peg$SyntaxError, Error);","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," },",""," not: function(expectation) {",' return "not " + describeExpectation(expectation.expected);'," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""].join("\n")),t.trace&&(a("DefaultTracer")?r.push(["function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," // istanbul ignore next"," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};",""].join("\n")):r.push(["var peg$FauxTracer = {"," trace: function(event) { }","};",""].join("\n"))),r.push(["function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};",""].join("\n")),"size"===t.optimize){var i="{ "+t.allowedStartRules.map(function(e){return e+": "+u.indexOfRule(e)}).join(", ")+" }",s=u.indexOfRule(t.allowedStartRules[0]);r.push([" var peg$startRuleIndices = "+i+";"," var peg$startRuleIndex = "+s+";"].join("\n"))}else{var F="{ "+t.allowedStartRules.map(function(u){return u+": peg$parse"+u}).join(", ")+" }",d="peg$parse"+t.allowedStartRules[0];r.push([" var peg$startRuleFunctions = "+F+";"," var peg$startRuleFunction = "+d+";"].join("\n"))}if(r.push(""),r.push(c(function(){function r(u){return'"'.concat(n.stringEscape(u),'"')}function o(u){return"/^["+(u.inverted?"^":"")+u.value.map(function(u){return Array.isArray(u)?n.regexpEscape(u[0])+"-"+n.regexpEscape(u[1]):n.regexpEscape(u)}).join("")+"]/"+(u.ignoreCase?"i":"")}function i(u){switch(u.type){case"rule":return'peg$otherExpectation("'.concat(n.stringEscape(u.value),'")');case"literal":return'peg$literalExpectation("'+n.stringEscape(u.value)+'", '+u.ignoreCase+")";case"class":return"peg$classExpectation(["+u.value.map(function(u){return Array.isArray(u)?'["'.concat(n.stringEscape(u[0]),'", "').concat(n.stringEscape(u[1]),'"]'):'"'.concat(n.stringEscape(u),'"')}).join(", ")+"], "+u.inverted+", "+u.ignoreCase+")";case"any":return"peg$anyExpectation()";default:e.fatal("Unknown expectation type (".concat(JSON.stringify(u),")"))}}function a(u){return"function(".concat(u.params.join(", "),") {").concat(u.body,"}")}return"size"===t.optimize?["var peg$literals = [",c(u.literals.map(r).join(",\n")),"];","var peg$regexps = [",c(u.classes.map(o).join(",\n")),"];","var peg$expectations = [",c(u.expectations.map(i).join(",\n")),"];","var peg$functions = [",c(u.functions.map(a).join(",\n")),"];","","var peg$bytecode = [",c(u.rules.map(function(u){return'peg$decode("'.concat(n.stringEscape(u.bytecode.map(function(u){return String.fromCharCode(u+32)}).join("")),'")')}).join(",\n")),"];"].join("\n"):u.literals.map(function(u,e){return"var "+l(e)+" = "+r(u)+";"}).concat("",u.classes.map(function(u,e){return"var "+A(e)+" = "+o(u)+";"})).concat("",u.expectations.map(function(u,e){return"var "+f(e)+" = "+i(u)+";"})).concat("",u.functions.map(function(u,e){return"var "+E(e)+" = "+a(u)+";"})).join("\n")}())),r.push([""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$expected = [];"," var peg$silentFails = 0;",""].join("\n")),t.cache&&r.push([" var peg$resultsCache = {};",""].join("\n")),t.trace){if("size"===t.optimize){var g="["+u.rules.map(function(u){return'"'.concat(n.stringEscape(u.name),'"')}).join(", ")+"]";r.push([" var peg$ruleNames = "+g+";",""].join("\n"))}a("DefaultTracer")?r.push([' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""].join("\n")):r.push([' var peg$tracer = "tracer" in options ? options.tracer : peg$FauxTracer;',""].join("\n"))}return r.push([" var peg$result;",""].join("\n")),"size"===t.optimize?r.push([' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleIndices)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleIndex = peg$startRuleIndices[options.startRule];"," }"].join("\n")):r.push([' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }"].join("\n")),a("text")&&r.push([""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }"].join("\n")),a("offset")&&r.push([""," function offset() {"," return peg$savedPos;"," }"].join("\n")),a("range")&&r.push([""," function range() {"," return [peg$savedPos, peg$currPos];"," }"].join("\n")),a("location")&&r.push([""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }"].join("\n")),a("expected")&&r.push([""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }"].join("\n")),a("error")&&r.push([""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }"].join("\n")),r.push([""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }","",a("filename")?' var peg$VALIDFILENAME = typeof options.filename === "string" && options.filename.length > 0;':""," function peg$computeLocation(startPos, endPos) {"," var loc = {};","",a("filename")?" if ( peg$VALIDFILENAME ) loc.filename = options.filename;":"",""," var startPosDetails = peg$computePosDetails(startPos);"," loc.start = {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," };",""," var endPosDetails = peg$computePosDetails(endPos);"," loc.end = {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," };",""," return loc;"," }",""," function peg$begin() {"," peg$expected.push({ pos: peg$currPos, variants: [] });"," }",""," function peg$expect(expected) {"," var top = peg$expected[peg$expected.length - 1];",""," if (peg$currPos < top.pos) { return; }",""," if (peg$currPos > top.pos) {"," top.pos = peg$currPos;"," top.variants = [];"," }",""," top.variants.push(expected);"," }",""," function peg$end(invert) {"," var expected = peg$expected.pop();"," var top = peg$expected[peg$expected.length - 1];"," var variants = expected.variants;",""," if (top.pos !== expected.pos) { return; }",""," if (invert) {"," variants = variants.map(function(e) {",' return e.type === "not" ? e.expected : { type: "not", expected: e };'," });"," }",""," Array.prototype.push.apply(top.variants, variants);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""," function peg$buildError() {"," var expected = peg$expected[0];"," var failPos = expected.pos;",""," return peg$buildStructuredError("," expected.variants,"," failPos < input.length ? input.charAt(failPos) : null,"," failPos < input.length"," ? peg$computeLocation(failPos, failPos + 1)"," : peg$computeLocation(failPos, failPos)"," );"," }",""].join("\n")),"size"===t.optimize?(r.push(c(function(){var u,e=[];function n(u,e){var t=e+3,n="bc[ip + "+(t-2)+"]",r="bc[ip + "+(t-1)+"]";return["ends.push(end);","ips.push(ip + "+t+" + "+n+" + "+r+");","","if ("+u+") {"," end = ip + "+t+" + "+n+";"," ip += "+t+";","} else {"," end = ip + "+t+" + "+n+" + "+r+";"," ip += "+t+" + "+n+";","}","","break;"].join("\n")}return e.push(["function peg$decode(s) {",' return s.split("").map(function(ch) { return ch.charCodeAt(0) - 32; });',"}","","function peg$parseRule(index) {"].join("\n")),t.trace?e.push([" var bc = peg$bytecode[index];"," var ip = 0;"," var ips = [];"," var end = bc.length;"," var ends = [];"," var stack = [];"," var startPos = peg$currPos;"," var params, paramsLength, paramsN;"].join("\n")):e.push([" var bc = peg$bytecode[index];"," var ip = 0;"," var ips = [];"," var end = bc.length;"," var ends = [];"," var stack = [];"," var params, paramsLength, paramsN;"].join("\n")),e.push(c(C("peg$ruleNames[index]","index"))),e.push([" while (true) {"," while (ip < end) {"," switch (bc[ip]) {"," case "+o.PUSH_EMPTY_STRING+":"," stack.push('');"," ip++;"," break;",""," case "+o.PUSH_UNDEFINED+":"," stack.push(undefined);"," ip++;"," break;",""," case "+o.PUSH_NULL+":"," stack.push(null);"," ip++;"," break;",""," case "+o.PUSH_FAILED+":"," stack.push(peg$FAILED);"," ip++;"," break;",""," case "+o.PUSH_EMPTY_ARRAY+":"," stack.push([]);"," ip++;"," break;",""," case "+o.PUSH_CURR_POS+":"," stack.push(peg$currPos);"," ip++;"," break;",""," case "+o.POP+":"," stack.pop();"," ip++;"," break;",""," case "+o.POP_CURR_POS+":"," peg$currPos = stack.pop();"," ip++;"," break;",""," case "+o.POP_N+":"," stack.length -= bc[ip + 1];"," ip += 2;"," break;",""," case "+o.NIP+":"," stack.splice(-2, 1);"," ip++;"," break;",""," case "+o.APPEND+":"," stack[stack.length - 2].push(stack.pop());"," ip++;"," break;",""," case "+o.WRAP+":"," stack.push(stack.splice(stack.length - bc[ip + 1], bc[ip + 1]));"," ip += 2;"," break;",""," case "+o.TEXT+":"," stack.push(input.substring(stack.pop(), peg$currPos));"," ip++;"," break;",""," case "+o.PLUCK+":"," paramsLength = bc[ip + 2];"," paramsN = 3 + paramsLength",""," params = bc.slice(ip + 3, ip + paramsN);"," params = paramsLength === 1"," ? stack[stack.length - 1 - params[ 0 ]]"," : params.map(function(p) { return stack[stack.length - 1 - p]; });",""," stack.splice("," stack.length - bc[ip + 1],"," bc[ip + 1],"," params"," );",""," ip += paramsN;"," break;",""," case "+o.IF+":",p(n("stack[stack.length - 1]",0)),""," case "+o.IF_ERROR+":",p(n("stack[stack.length - 1] === peg$FAILED",0)),""," case "+o.IF_NOT_ERROR+":",p(n("stack[stack.length - 1] !== peg$FAILED",0)),""," case "+o.WHILE_NOT_ERROR+":",p((u="stack[stack.length - 1] !== peg$FAILED",["if ("+u+") {"," ends.push(end);"," ips.push(ip);",""," end = ip + 2 + bc[ip + 1];"," ip += 2;","} else {"," ip += 2 + bc[ip + 1];","}","","break;"].join("\n"))),""," case "+o.MATCH_ANY+":",p(n("input.length > peg$currPos",0)),""," case "+o.MATCH_STRING+":",p(n("input.substr(peg$currPos, peg$literals[bc[ip + 1]].length) === peg$literals[bc[ip + 1]]",1)),""," case "+o.MATCH_STRING_IC+":",p(n("input.substr(peg$currPos, peg$literals[bc[ip + 1]].length).toLowerCase() === peg$literals[bc[ip + 1]]",1)),""," case "+o.MATCH_CLASS+":",p(n("peg$regexps[bc[ip + 1]].test(input.charAt(peg$currPos))",1)),""," case "+o.ACCEPT_N+":"," stack.push(input.substr(peg$currPos, bc[ip + 1]));"," peg$currPos += bc[ip + 1];"," ip += 2;"," break;",""," case "+o.ACCEPT_STRING+":"," stack.push(peg$literals[bc[ip + 1]]);"," peg$currPos += peg$literals[bc[ip + 1]].length;"," ip += 2;"," break;",""," case "+o.EXPECT+":"," rule$expects(peg$expectations[bc[ip + 1]]);"," ip += 2;"," break;",""," case "+o.LOAD_SAVED_POS+":"," peg$savedPos = stack[stack.length - 1 - bc[ip + 1]];"," ip += 2;"," break;",""," case "+o.UPDATE_SAVED_POS+":"," peg$savedPos = peg$currPos;"," ip++;"," break;",""," case "+o.CALL+":",p(["params = bc.slice(ip + 4, ip + 4 + bc[ip + 3])"," .map(function(p) { return stack[stack.length - 1 - p]; });","","stack.splice("," stack.length - bc[ip + 2],"," bc[ip + 2],"," peg$functions[bc[ip + 1]].apply(null, params)",");","","ip += 4 + bc[ip + 3];","break;"].join("\n")),""," case "+o.RULE+":"," stack.push(peg$parseRule(bc[ip + 1]));"," ip += 2;"," break;",""," case "+o.SILENT_FAILS_ON+":"," peg$silentFails++;"," ip++;"," break;",""," case "+o.SILENT_FAILS_OFF+":"," peg$silentFails--;"," ip++;"," break;",""," case "+o.EXPECT_NS_BEGIN+":"," peg$begin();"," ip++;"," break;",""," case "+o.EXPECT_NS_END+":"," peg$end(bc[ip + 1]);"," ip += 2;"," break;",""," // istanbul ignore next"," default:"," throw new Error(",' "Rule #" + index + "'+(t.trace?" ('\" + peg$ruleNames[ index ] + \"')":"")+', position " + ip + ": "',' + "Invalid opcode " + bc[ip] + "."'," );"," }"," }",""," if (ends.length > 0) {"," end = ends.pop();"," ip = ips.pop();"," } else {"," break;"," }"," }"].join("\n")),e.push(c(h("peg$ruleNames[index]","stack[0]"))),e.push("}"),e.join("\n")}())),r.push("")):u.rules.forEach(function(i){r.push(c(function(r){var i=[],a=[];function s(u){return u<0&&e.fatal("Rule '"+r.name+"': Var stack underflow: attempt to use var at index "+u),"s"+u}var p={sp:-1,maxSp:-1,push:function(u){var e=s(++this.sp)+" = "+u+";";return this.sp>this.maxSp&&(this.maxSp=this.sp),e},pop:function(u){if(void 0===u)return s(this.sp--);for(var e=Array(u),t=0;t0&&(p.sp=h,a=t(n.slice(g,g+C)),l=p.sp,g+=C,s!==l&&e.fatal("Rule '"+r.name+"', position "+A+": Branches of a condition can't move the stack pointer differently (before: "+h+", after then: "+s+", after else: "+l+").")),D.push("if ("+u+") {"),D.push(c(i)),C>0&&(D.push("} else {"),D.push(c(a))),D.push("}")}function m(){var u=n[g+4-1],e=E(n[g+1])+"("+n.slice(g+4,g+4+u).map(function(u){return p.index(u)}).join(", ")+")";p.pop(n[g+2]),D.push(p.push(e)),g+=4+u}for(;g peg$currPos",0);break;case o.MATCH_STRING:B(u.literals[n[g+1]].length>1?"input.substr(peg$currPos, "+u.literals[n[g+1]].length+") === "+l(n[g+1]):"input.charCodeAt(peg$currPos) === "+u.literals[n[g+1]].charCodeAt(0),1);break;case o.MATCH_STRING_IC:B("input.substr(peg$currPos, "+u.literals[n[g+1]].length+").toLowerCase() === "+l(n[g+1]),1);break;case o.MATCH_CLASS:B(A(n[g+1])+".test(input.charAt(peg$currPos))",1);break;case o.ACCEPT_N:D.push(p.push(n[g+1]>1?"input.substr(peg$currPos, "+n[g+1]+")":"input.charAt(peg$currPos)")),D.push(n[g+1]>1?"peg$currPos += "+n[g+1]+";":"peg$currPos++;"),g+=2;break;case o.ACCEPT_STRING:D.push(p.push(l(n[g+1]))),D.push(u.literals[n[g+1]].length>1?"peg$currPos += "+u.literals[n[g+1]].length+";":"peg$currPos++;"),g+=2;break;case o.EXPECT:D.push("rule$expects("+f(n[g+1])+");"),g+=2;break;case o.LOAD_SAVED_POS:D.push("peg$savedPos = "+p.index(n[g+1])+";"),g+=2;break;case o.UPDATE_SAVED_POS:D.push("peg$savedPos = peg$currPos;"),g++;break;case o.CALL:m();break;case o.RULE:D.push(p.push("peg$parse"+u.rules[n[g+1]].name+"()")),g+=2;break;case o.SILENT_FAILS_ON:D.push("peg$silentFails++;"),g++;break;case o.SILENT_FAILS_OFF:D.push("peg$silentFails--;"),g++;break;case o.EXPECT_NS_BEGIN:D.push("peg$begin();"),g++;break;case o.EXPECT_NS_END:D.push("peg$end("+(0!==n[g+1])+");"),g+=2;break;default:e.fatal("Rule '"+r.name+"', position "+g+": Invalid opcode "+n[g]+".")}return D.join("\n")}(r.bytecode);i.push("function peg$parse"+r.name+"() {"),t.trace&&i.push(" var startPos = peg$currPos;");for(var d=0;d<=p.maxSp;d++)a[d]=s(d);return i.push(" var "+a.join(", ")+";"),i.push(c(C('"'+n.stringEscape(r.name)+'"',u.indexOfRule(r.name)))),i.push(c(F)),i.push(c(h('"'+n.stringEscape(r.name)+'"',s(0)))),i.push("}"),i.join("\n")}(i))),r.push("")}),u.initializer&&(r.push(c(u.initializer.code)),r.push("")),r.push(" peg$begin();"),"size"===t.optimize?r.push(" peg$result = peg$parseRule(peg$startRuleIndex);"):r.push(" peg$result = peg$startRuleFunction();"),r.push([""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$expect(peg$endExpectation());"," }",""," throw peg$buildError();"," }","}"].join("\n")),r.join("\n")}())}},function(u,e,t){"use strict";u.exports=function(u,e,t){var n=e.buildVisitor({rule_ref:function(u,e,t){u.name===e&&(u.name=t)}}),r=t.allowedStartRules,o=[];u.rules.forEach(function(e){var t;"rule"===(t=e).type&&"rule_ref"===t.expression.type&&(n(u,e.name,e.expression.name),r.indexOf(e.name)<0)||o.push(e)}),u.rules=o}},function(u,e,t){"use strict";var n=t(1),r=Object.prototype.hasOwnProperty;u.exports=function(u,e){var t;function o(u,e){t(u.expression,n.clone(e))}(t=e.buildVisitor({rule:function(u){t(u.expression,{})},choice:function(u,e){u.alternatives.forEach(function(u){t(u,n.clone(e))})},action:o,labeled:function(u,n){var o=u.label;if(o&&r.call(n,o)){var i=n[o].start;e.error('Label "'.concat(o,'" is already defined at line ').concat(i.line,", column ").concat(i.column,"."),u.location)}t(u.expression,n),o&&(n[o]=u.location)},text:o,simple_and:o,simple_not:o,optional:o,zero_or_more:o,one_or_more:o,group:o}))(u)}},function(u,e,t){"use strict";var n=Object.prototype.hasOwnProperty;u.exports=function(u,e){var t={};e.buildVisitor({rule:function(u){var r=u.name;if(n.call(t,r)){var o=t[r].start;e.error('Rule "'.concat(r,'" is already defined at line ').concat(o.line,", column ").concat(o.column,"."),u.location)}t[u.name]=u.location}})(u)}},function(u,e,t){"use strict";u.exports=function(u,e,t){var n={};function r(u){n[u.name||u]=!0}t.allowedStartRules.forEach(r),e.buildVisitor({rule_ref:r})(u),u.rules.forEach(function(u){!0!==n[u.name]&&e.warn('Rule "'.concat(u.name,'" is not referenced.'),u.location)})}},function(u,e,t){"use strict";u.exports=function(u,e){var t=[],n=e.buildVisitor({rule:function(u){t.push(u.name),n(u.expression),t.pop(u.name)},sequence:function(e){e.elements.every(function(e){return n(e),!u.alwaysConsumesOnSuccess(e)})},rule_ref:function(r){if(-1!==t.indexOf(r.name)){t.push(r.name);var o=t.join(" -> ");e.error("Possible infinite loop when parsing (left recursion: ".concat(o,")."),r.location)}n(u.findRule(r.name))}});n(u)}},function(u,e,t){"use strict";u.exports=function(u,e){e.buildVisitor({zero_or_more:function(t){u.alwaysConsumesOnSuccess(t.expression)||e.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",t.location)},one_or_more:function(t){u.alwaysConsumesOnSuccess(t.expression)||e.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",t.location)}})(u)}},function(u,e,t){"use strict";u.exports=function(u,e,t){e.buildVisitor({rule_ref:function(t){u.findRule(t.name)||e.error('Rule "'.concat(t.name,'" is not defined.'),t.location)}})(u),t.allowedStartRules.forEach(function(t){u.findRule(t)||e.error('Start rule "'.concat(t,'" is not defined.'))})}},function(u,e,t){"use strict";u.exports=function(u,e){var t;function n(u){return u.match=0,u.match}function r(u){return t(u.expression),u.match=1,u.match}function o(u){return u.match=t(u.expression),u.match}function i(u,e){for(var n=u.length,r=0,o=0,i=0;i0&&++r,a<0&&++o}return r===n?1:e?o===n?-1:0:o>0?-1:0}(t=e.buildVisitor({rule:function(u){var n,r=0;if(void 0===u.match){u.match=0;do{n=u.match,u.match=t(u.expression),++r>6&&e.error("Infinity cycle detected when trying to evaluate node match result",u.location)}while(n!==u.match)}return u.match},named:o,choice:function(u){return u.match=i(u.alternatives,!0),u.match},action:o,sequence:function(u){return u.match=i(u.elements,!1),u.match},labeled:o,text:o,simple_and:o,simple_not:function(u){return u.match=-t(u.expression),u.match},optional:r,zero_or_more:r,one_or_more:o,group:o,semantic_and:n,semantic_not:n,rule_ref:function(e){var n=u.findRule(e.name);return e.match=t(n),e.match},literal:function(u){return u.match=0===u.value.length?1:0,u.match},class:function(u){return u.match=0===u.parts.length?-1:0,u.match},any:n}))(u)}},function(u,e,t){"use strict";u.exports=function(u,e){e.buildVisitor({action:function(u){this.visit(u.expression,!0)},labeled:function(u,t){var n;!0===u.pick&&(!0===t&&e.error('"@" cannot be used with an action block.',u.location),("semantic_and"===(n=u.expression.type)||"semantic_not"===n)&&e.error('"@" cannot be used on a semantic predicate.',u.location),this.visit(u.expression))}})(u)}},function(u,e,t){"use strict";function n(u,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};!function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),this.opcodes=e.opcodes||i,this.parser=e.parser||a,this.passes=e.passes||{},this.visitor=e.visitor||r.visitor,this.vm=e.vm||s,"function"==typeof e.warn&&(this.warn=e.warn),"function"==typeof e.error&&(this.error=e.error),Object.defineProperty(this,"fatal",{value:c})}var e,t,o;return e=u,(t=[{key:"parse",value:function(u,e){return this.parser.parse(u,e)}},{key:"buildVisitor",value:function(u){return this.visitor.build(u)}},{key:"warn",value:function(u,e){}},{key:"error",value:function(u,e){c(u,e)}}])&&n(e.prototype,t),o&&n(e,o),u}();u.exports=p},function(u,e,t){"use strict";u.exports={PUSH_EMPTY_STRING:0,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:41,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CLASS:20,ACCEPT_N:21,ACCEPT_STRING:22,EXPECT:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,EXPECT_NS_BEGIN:38,EXPECT_NS_END:39}},,,,,,,,,,,,function(u,e,t){"use strict";var n=t(50),r=t(51);$("#run").click(function(){var u=$("#results-table");function e(e,t,n,r,o){u.append("\n \n \n ").concat(null!==n?"":"","\n ").concat(t,"\n ").concat(null!==n?"":"","\n \n \n \n ").concat((r/1024).toFixed(2),"\n \n  kB\n \n \n \n ").concat(o.toFixed(2),"\n \n  ms\n \n \n \n ").concat((r/1024/(o/1e3)).toFixed(2),"\n \n  kB/s\n \n \n "))}var t=parseInt($("#run-count").val(),10),o={cache:$("#cache").is(":checked"),optimize:$("#optimize").val()};isNaN(t)||t<=0?alert("Number of runs must be a positive integer."):n.run(r,t,o,{readFile:function(u){return $.ajax({type:"GET",url:"/"+u,dataType:"text",async:!1}).responseText},testStart:function(){},testFinish:function(u,t,n,r){e("individual",t.title,"benchmark/"+u.id+"/"+t.file,n,r)},benchmarkStart:function(e){u.append("\n \n \n ").concat(e.title,' \n \n "\n '))},benchmarkFinish:function(u,t,n){e("benchmark-total",u.title+" total",null,t,n)},start:function(){$("#run-count, #cache, #run").attr("disabled","disabled"),u.show(),$("#results-table tr").slice(1).remove()},finish:function(u,t){e("total","Total",null,u,t),$.scrollTo("max",{axis:"y",duration:500}),$("#run-count, #cache, #run").removeAttr("disabled")}})}),$(document).ready(function(){return $("#run").focus()})},function(u,e,t){"use strict";var n=t(0),r={run:function(u,e,t,r){var o={functions:[],add:function(u){this.functions.push(u)},run:function(){this.functions.length>0&&(this.functions.shift()(),setTimeout(function(){o.run()},0))}},i={};o.add(function(){r.start(),i.totalInputSize=0,i.totalParseTime=0}),u.forEach(function(u){o.add(function(u){return function(){r.benchmarkStart(u),i.parser=n.generate(r.readFile("examples/"+u.id+".pegjs"),t),i.benchmarkInputSize=0,i.benchmarkParseTime=0}}(u)),u.tests.forEach(function(t){o.add(function(u,t){return function(){r.testStart(u,t);for(var n=r.readFile("benchmark/"+u.id+"/"+t.file),o=0,a=0;a1&&void 0!==arguments[1]?arguments[1]:{},e=new r.Session({passes:i.convertPasses(r.passes)});return Array.isArray(l.plugins)&&l.plugins.forEach(function(n){"function"==typeof n.use&&n.use(e,l)}),r.compile(e.parse(n,l.parser||{}),e,l)}};n.exports=a},function(n,l,e){"use strict";var t=e(19),u=e(20),r=e(21),o=e(11),i=function(){function n(n){return Array.isArray(n)?n:r.values(n)}return function(l){return r.map(l,n)}}();n.exports={find:t.find,findIndex:t.findIndex,stringEscape:u.stringEscape,regexpEscape:u.regexpEscape,reservedWords:u.reservedWords,clone:r.clone,each:r.each,extend:r.extend,map:r.map,values:r.values,enforceFastProperties:r.enforceFastProperties,evalModule:o.evalModule,convertPasses:i,processOptions:function(n,l){var e={};return r.extend(e,n),r.extend(e,l),e},noop:function(){}}},function(n,l,e){n.exports=e(6)},function(n,l){n.exports=function(n,l,e){var t=n.__flags||(n.__flags=Object.create(null));if(3!==arguments.length)return t[l];t[l]=e}},function(n,l,e){"use strict";var t=e(84),u=e(0).compiler.Session;n.exports=function(n,l){n.use(t);var e=n.Assertion;function r(n,l,e){var t=l.parse(n);return e.allowedStartRules||(e.allowedStartRules=t.rules.length>0?[t.rules[0].name]:[]),t}e.addMethod("changeAST",function(n,t,o,i){o=void 0!==o?o:{},i=void 0!==i?i:{reportFailures:!0};var a=new u({grammar:n}),s=r(n,a,o);s.rules=s.rules.map(function(n){return Object.assign(n,i)}),l.flag(this,"object")(s,a,o),new e(s).like(t)}),e.addMethod("reportError",function(n,t,o){o=void 0!==o?o:{};var i,a,s=new u({grammar:n}),c=r(n,s,o);try{l.flag(this,"object")(c,s,o),i=!0}catch(n){a=n,i=!1}this.assert(!i,"expected #{this} to report an error but it didn't","expected #{this} to not report an error but #{act} was reported",null,a),i||void 0===t||("string"==typeof t&&(t={message:t}),Object.keys(t).forEach(function(n){new e(a).to.have.property(n).that.is.deep.equal(t[n])}))}),e.addMethod("reportWarning",function(n,e,t){var o=this;e=Array.isArray(e)?e:null==e?[]:[e],t=void 0!==t?t:{};var i=[];var a=new u({grammar:n,warn:function(n){i.push(n)}}),s=r(n,a,t);l.flag(this,"object")(s,a,t);var c=i.length,f=e.length;e.length&&this.assert(c===f,"expected #{this} to report ".concat(f," warnings, but it reported ").concat(c," warnings"),"expected #{this} to not report ".concat(f," warnings"),e,i),e.forEach(function(n){o.assert(-1!==i.indexOf(n),"expected #{this} to report the warning #{exp}, but it didn't","expected #{this} to not report the warning #{exp}",n)})})}},function(n,l,e){"use strict";l.visitor=e(10),l.Node=e(12),l.Grammar=e(22)},function(n,l,e){var t=[];l.version="4.2.0",l.AssertionError=e(43);var u=e(57);l.use=function(n){return~t.indexOf(n)||(n(l,u),t.push(n)),l},l.util=u;var r=e(8);l.config=r;var o=e(74);l.use(o);var i=e(75);l.use(i);var a=e(76);l.use(a);var s=e(77);l.use(s);var c=e(78);l.use(c)},function(n,l){n.exports=function(n,l,e){var t=n.__flags||(n.__flags=Object.create(null));for(var u in l.__flags||(l.__flags=Object.create(null)),e=3!==arguments.length||e,t)(e||"object"!==u&&"ssfi"!==u&&"lockSsfi"!==u&&"message"!=u)&&(l.__flags[u]=t[u])}},function(n,l){n.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"]}},function(n,l,e){"use strict";n.exports=function n(l,e){!function(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}(this,n),this.name="GrammarError",this.message=l,this.location=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}},function(n,l,e){"use strict";function t(n,l){for(var e=0;e1?t-1:0),r=1;r1?e-1:0),u=1;u1?e-1:0),u=1;u (https://majda.cz/)","Futago-za Ryuu "],types:"typings/pegjs.d.ts",main:"lib/peg.js",bin:"bin/peg.js",engines:{node:">= 6"}}},function(n,l,e){"use strict";var t=e(5),u=e(1);function r(n,l,e,t){this.message=n,this.expected=l,this.found=e,this.location=t,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}!function(n,l){function e(){this.constructor=n}e.prototype=l.prototype,n.prototype=new e}(r,Error),r.buildMessage=function(n,l){var e={literal:function(n){return'"'+u(n.text)+'"'},class:function(n){var l=n.parts.map(function(n){return Array.isArray(n)?r(n[0])+"-"+r(n[1]):r(n)});return"["+(n.inverted?"^":"")+l+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(n){return n.description},not:function(n){return"not "+o(n.expected)}};function t(n){return n.charCodeAt(0).toString(16).toUpperCase()}function u(n){return n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(n){return"\\x0"+t(n)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(n){return"\\x"+t(n)})}function r(n){return n.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(n){return"\\x0"+t(n)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(n){return"\\x"+t(n)})}function o(n){return e[n.type](n)}return"Expected "+function(n){var l,e,t=n.map(o);if(t.sort(),t.length>0){for(l=1,e=1;le.charCodeAt(0)&&Il("Invalid character range: "+n.substring($l,Bl)+"."),[l,e]},xl=function(){return""},Cl=function(){return"\0"},_l=function(){return"\b"},Sl=function(){return"\f"},Tl=function(){return"\n"},kl=function(){return"\r"},Fl=function(){return"\t"},Dl=function(){return"\v"},Pl=function(n){return String.fromCharCode(parseInt(n,16))},jl=function(){return Pe("any")},Ol=function(){Il("Unbalanced brace.")},Bl=0,$l=0,Ll=[{line:1,column:1}],Nl=[],Ml=0;if("startRule"in l){if(!(l.startRule in i))throw new Error("Can't start parsing from rule \""+l.startRule+'".');a=i[l.startRule]}function Rl(){return Wl($l,Bl)}function Il(n,l){throw function(n,l){return new r(n,null,null,l)}(n,l=void 0!==l?l:Wl($l,Bl))}function ql(n,l){return{type:"literal",text:n,ignoreCase:l}}function Ul(n){return{type:"other",description:n}}function Hl(l){var e,t=Ll[l];if(t)return t;for(e=l-1;!Ll[e];)e--;for(t={line:(t=Ll[e]).line,column:t.column};e0;function Wl(n,e){var t={};zl&&(t.filename=l.filename);var u=Hl(n);t.start={offset:n,line:u.line,column:u.column};var r=Hl(e);return t.end={offset:e,line:r.line,column:r.column},t}function Vl(){Nl.push({pos:Bl,variants:[]})}function Gl(n){var l=Nl[Nl.length-1];Bll.pos&&(l.pos=Bl,l.variants=[]),l.variants.push(n))}function Jl(n){var l=Nl.pop(),e=Nl[Nl.length-1],t=l.variants;e.pos===l.pos&&(n&&(t=t.map(function(n){return"not"===n.type?n.expected:{type:"not",expected:n}})),Array.prototype.push.apply(e.variants,t))}function Xl(){var n,l,e,t,u;if(n=Bl,Se(),l=Bl,(e=function(){var n,l;return n=Bl,(l=_e())!==o&&Te()!==o?($l=n,n=Xn(l)):(Bl=n,n=o),n}())!==o?(t=Se(),l=e):(Bl=l,l=o),l===o&&(l=null),e=[],t=Bl,(u=Kl())!==o?(Se(),t=u):(Bl=t,t=o),t!==o)for(;t!==o;)e.push(t),t=Bl,(u=Kl())!==o?(Se(),t=u):(Bl=t,t=o);else e=o;return e!==o?($l=n,n=Jn(l,e)):(Bl=n,n=o),n}function Kl(){var l,e,t,u,r,i;return l=Bl,(e=fe())!==o?(Se(),t=Bl,(u=he())!==o?(Se(),t=u):(Bl=t,t=o),t===o&&(t=null),i=An,0===Ml&&Gl(i),61===n.charCodeAt(Bl)?(u=s,Bl++):u=o,u!==o?(Se(),(r=Yl())!==o&&Te()!==o?($l=l,l=Kn(e,t,r)):(Bl=l,l=o)):(Bl=l,l=o)):(Bl=l,l=o),l}function Yl(){var l,e,t,u,r,i,a=function(n){0===Ml&&Gl(n)};if(l=Bl,(e=Zl())!==o){for(t=[],u=Bl,Se(),a(En),47===n.charCodeAt(Bl)?(r=c,Bl++):r=o,r!==o?(Se(),(i=Zl())!==o?u=i:(Bl=u,u=o)):(Bl=u,u=o);u!==o;)t.push(u),u=Bl,Se(),a(En),47===n.charCodeAt(Bl)?(r=c,Bl++):r=o,r!==o?(Se(),(i=Zl())!==o?u=i:(Bl=u,u=o)):(Bl=u,u=o);$l=l,l=Yn(e,t)}else Bl=l,l=o;return l}function Zl(){var n,l,e,t;return n=Bl,(l=function(){var n,l,e,t,u;if(n=Bl,(l=Ql())!==o){for(e=[],t=Bl,Se(),(u=Ql())!==o?t=u:(Bl=t,t=o);t!==o;)e.push(t),t=Bl,Se(),(u=Ql())!==o?t=u:(Bl=t,t=o);$l=n,n=Qn(l,e)}else Bl=n,n=o;return n}())!==o?(e=Bl,Se(),(t=_e())!==o?e=t:(Bl=e,e=o),e===o&&(e=null),$l=n,n=Zn(l,e)):(Bl=n,n=o),n}function Ql(){var l,e,t,u,r,i;return l=Bl,i=xn,0===Ml&&Gl(i),64===n.charCodeAt(Bl)?(e=f,Bl++):e=o,e!==o?((t=ne())===o&&(t=null),u=Se(),(r=le())!==o?($l=l,l=nl(t,r)):(Bl=l,l=o)):(Bl=l,l=o),l===o&&(l=Bl,(e=ne())!==o?(t=Se(),(u=le())!==o?($l=l,l=ll(e,u)):(Bl=l,l=o)):(Bl=l,l=o),l===o&&(l=le())),l}function ne(){var l,e,t,u;return l=Bl,(e=fe())!==o?(Se(),u=Cn,0===Ml&&Gl(u),58===n.charCodeAt(Bl)?(t=p,Bl++):t=o,t!==o?($l=l,l=el(e)):(Bl=l,l=o)):(Bl=l,l=o),l}function le(){var l,e,t;return l=Bl,(e=function(){var l,e,t=function(n){0===Ml&&Gl(n)};return l=Bl,t(_n),36===n.charCodeAt(Bl)?(e=d,Bl++):e=o,e!==o&&($l=l,e=ul()),(l=e)===o&&(l=Bl,t(Sn),38===n.charCodeAt(Bl)?(e=h,Bl++):e=o,e!==o&&($l=l,e=rl()),(l=e)===o&&(l=Bl,t(Tn),33===n.charCodeAt(Bl)?(e=g,Bl++):e=o,e!==o&&($l=l,e=ol()),l=e)),l}())!==o?(Se(),(t=ee())!==o?($l=l,l=tl(e,t)):(Bl=l,l=o)):(Bl=l,l=o),l===o&&(l=ee()),l}function ee(){var l,e,t;return l=Bl,(e=te())!==o?(Se(),(t=function(){var l,e,t=function(n){0===Ml&&Gl(n)};return l=Bl,t(kn),63===n.charCodeAt(Bl)?(e=m,Bl++):e=o,e!==o&&($l=l,e=al()),(l=e)===o&&(l=Bl,t(Fn),42===n.charCodeAt(Bl)?(e=y,Bl++):e=o,e!==o&&($l=l,e=sl()),(l=e)===o&&(l=Bl,t(Dn),43===n.charCodeAt(Bl)?(e=b,Bl++):e=o,e!==o&&($l=l,e=cl()),l=e)),l}())!==o?($l=l,l=il(e,t)):(Bl=l,l=o)):(Bl=l,l=o),l===o&&(l=te()),l}function te(){var l,e,t,u,r=function(n){0===Ml&&Gl(n)};return(l=function(){var l,e,t,u;return u=Un,0===Ml&&Gl(u),Ml++,l=Bl,(e=he())!==o?(105===n.charCodeAt(Bl)?(t=R,Bl++):t=o,t===o&&(t=null),$l=l,l=vl(e,t)):(Bl=l,l=o),Ml--,l}())===o&&(l=function(){var l,e,t,u,r,i,a;if(a=zn,0===Ml&&Gl(a),Ml++,l=Bl,91===n.charCodeAt(Bl)?(e=U,Bl++):e=o,e!==o){for(94===n.charCodeAt(Bl)?(t=H,Bl++):t=o,t===o&&(t=null),u=[],r=ye();r!==o;)u.push(r),r=ye();93===n.charCodeAt(Bl)?(r=z,Bl++):r=o,r!==o?(105===n.charCodeAt(Bl)?(i=R,Bl++):i=o,i===o&&(i=null),$l=l,l=Al(t,u,i)):(Bl=l,l=o)}else Bl=l,l=o;return Ml--,l}())===o&&(l=function(){var l,e,t;return l=Bl,t=Wn,0===Ml&&Gl(t),46===n.charCodeAt(Bl)?(e=ln,Bl++):e=o,e!==o&&($l=l,e=jl()),l=e}())===o&&(l=function(){var l,e,t,u,r,i,a,c,f;return l=Bl,(e=fe())!==o?(t=Bl,Vl(),u=Bl,r=Se(),i=Bl,(a=he())!==o?(c=Se(),i=a=[a,c]):(Bl=i,i=o),i===o&&(i=null),f=An,0===Ml&&Gl(f),61===n.charCodeAt(Bl)?(a=s,Bl++):a=o,a!==o?u=r=[r,i,a]:(Bl=u,u=o),Jl(!0),u===o?t=void 0:(Bl=t,t=o),t!==o?($l=l,l=pl(e)):(Bl=l,l=o)):(Bl=l,l=o),l}())===o&&(l=function(){var l,e,t;return l=Bl,(e=function(){var l,e,t=function(n){0===Ml&&Gl(n)};return l=Bl,t(Sn),38===n.charCodeAt(Bl)?(e=h,Bl++):e=o,e!==o&&($l=l,e=hl()),(l=e)===o&&(l=Bl,t(Tn),33===n.charCodeAt(Bl)?(e=g,Bl++):e=o,e!==o&&($l=l,e=gl()),l=e),l}())!==o?(Se(),(t=_e())!==o?($l=l,l=dl(e,t)):(Bl=l,l=o)):(Bl=l,l=o),l}())===o&&(l=Bl,r(Pn),40===n.charCodeAt(Bl)?(e=v,Bl++):e=o,e!==o?(Se(),(t=Yl())!==o?(Se(),r(jn),41===n.charCodeAt(Bl)?(u=w,Bl++):u=o,u!==o?($l=l,l=fl(t)):(Bl=l,l=o)):(Bl=l,l=o)):(Bl=l,l=o)),l}function ue(){var l,e;return e=On,0===Ml&&Gl(e),n.length>Bl?(l=n.charAt(Bl),Bl++):l=o,l}function re(){var l,e;return e=Bn,0===Ml&&Gl(e),Ml++,9===n.charCodeAt(Bl)?(l=A,Bl++):l=o,l===o&&(11===n.charCodeAt(Bl)?(l=E,Bl++):l=o,l===o&&(12===n.charCodeAt(Bl)?(l=x,Bl++):l=o,l===o&&(32===n.charCodeAt(Bl)?(l=C,Bl++):l=o,l===o&&(160===n.charCodeAt(Bl)?(l=_,Bl++):l=o,l===o&&(65279===n.charCodeAt(Bl)?(l=S,Bl++):l=o,l===o&&(l=function(){var l;return wn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())))))),Ml--,l}function oe(){var l,e;return e=$n,0===Ml&&Gl(e),rn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}function ie(){var l,e;return e=Ln,0===Ml&&Gl(e),Ml++,10===n.charCodeAt(Bl)?(l=T,Bl++):l=o,l===o&&(n.substr(Bl,2)===k?(l=k,Bl+=2):l=o,l===o&&(13===n.charCodeAt(Bl)?(l=F,Bl++):l=o,l===o&&(8232===n.charCodeAt(Bl)?(l=D,Bl++):l=o,l===o&&(8233===n.charCodeAt(Bl)?(l=P,Bl++):l=o)))),Ml--,l}function ae(){var l,e;return e=Nn,0===Ml&&Gl(e),Ml++,(l=function(){var l,e,t,u,r,i,a;if(l=Bl,n.substr(Bl,2)===j?(e=j,Bl+=2):e=o,e!==o){for(t=Bl,u=[],r=Bl,i=Bl,Vl(),n.substr(Bl,2)===O?(a=O,Bl+=2):a=o,Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);r!==o;)u.push(r),r=Bl,i=Bl,Vl(),n.substr(Bl,2)===O?(a=O,Bl+=2):a=o,Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);t=n.substring(t,Bl),n.substr(Bl,2)===O?(u=O,Bl+=2):u=o,u!==o?($l=l,l=ml(t)):(Bl=l,l=o)}else Bl=l,l=o;return l}())===o&&(l=ce()),Ml--,l}function se(){var l,e,t,u,r,i,a,s=function(n){0===Ml&&Gl(n)};if(l=Bl,s(Mn),n.substr(Bl,2)===j?(e=j,Bl+=2):e=o,e!==o){for(t=Bl,u=[],r=Bl,i=Bl,Vl(),s(Rn),n.substr(Bl,2)===O?(a=O,Bl+=2):a=o,a===o&&(a=oe()),Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);r!==o;)u.push(r),r=Bl,i=Bl,Vl(),s(Rn),n.substr(Bl,2)===O?(a=O,Bl+=2):a=o,a===o&&(a=oe()),Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);t=n.substring(t,Bl),s(Rn),n.substr(Bl,2)===O?(u=O,Bl+=2):u=o,u!==o?($l=l,l=ml(t)):(Bl=l,l=o)}else Bl=l,l=o;return l}function ce(){var l,e,t,u,r,i,a,s;if(l=Bl,s=In,0===Ml&&Gl(s),n.substr(Bl,2)===B?(e=B,Bl+=2):e=o,e!==o){for(t=Bl,u=[],r=Bl,i=Bl,Vl(),a=oe(),Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);r!==o;)u.push(r),r=Bl,i=Bl,Vl(),a=oe(),Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);t=n.substring(t,Bl),$l=l,l=yl(t)}else Bl=l,l=o;return l}function fe(){var n,l,e,t,u;if(u=qn,0===Ml&&Gl(u),Ml++,n=Bl,(l=pe())!==o){for(e=[],t=de();t!==o;)e.push(t),t=de();$l=n,n=bl(l,e)}else Bl=n,n=o;return Ml--,n}function pe(){var l,e,t;return(l=function(){var l;return(l=function(){var l;return hn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(l=function(){var l;return cn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(l=function(){var l;return dn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(l=function(){var l;return fn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(l=function(){var l;return pn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(l=function(){var l;return bn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}()),l}())===o&&(36===n.charCodeAt(Bl)?(l=d,Bl++):l=o,l===o&&(95===n.charCodeAt(Bl)?(l=$,Bl++):l=o,l===o&&(l=Bl,92===n.charCodeAt(Bl)?(e=L,Bl++):e=o,e!==o&&(t=Ee())!==o?l=t:(Bl=l,l=o)))),l}function de(){var l;return(l=pe())===o&&(l=function(){var l;return(l=function(){var l;return mn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(l=function(){var l;return gn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}()),l}())===o&&(l=function(){var l;return yn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(l=function(){var l;return vn.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}())===o&&(8204===n.charCodeAt(Bl)?(l=N,Bl++):l=o,l===o&&(8205===n.charCodeAt(Bl)?(l=M,Bl++):l=o)),l}function he(){var l,e,t,u,r;if(r=Hn,0===Ml&&Gl(r),Ml++,l=Bl,34===n.charCodeAt(Bl)?(e=I,Bl++):e=o,e!==o){for(t=[],u=ge();u!==o;)t.push(u),u=ge();34===n.charCodeAt(Bl)?(u=I,Bl++):u=o,u!==o?($l=l,l=wl(t)):(Bl=l,l=o)}else Bl=l,l=o;if(l===o)if(l=Bl,39===n.charCodeAt(Bl)?(e=q,Bl++):e=o,e!==o){for(t=[],u=me();u!==o;)t.push(u),u=me();39===n.charCodeAt(Bl)?(u=q,Bl++):u=o,u!==o?($l=l,l=wl(t)):(Bl=l,l=o)}else Bl=l,l=o;return Ml--,l}function ge(){var l,e,t;return l=Bl,e=Bl,Vl(),34===n.charCodeAt(Bl)?(t=I,Bl++):t=o,t===o&&(92===n.charCodeAt(Bl)?(t=L,Bl++):t=o,t===o&&(t=oe())),Jl(!0),t===o?e=void 0:(Bl=e,e=o),e!==o&&(t=ue())!==o?l=t:(Bl=l,l=o),l===o&&(l=Bl,92===n.charCodeAt(Bl)?(e=L,Bl++):e=o,e!==o&&(t=we())!==o?l=t:(Bl=l,l=o),l===o&&(l=ve())),l}function me(){var l,e,t;return l=Bl,e=Bl,Vl(),39===n.charCodeAt(Bl)?(t=q,Bl++):t=o,t===o&&(92===n.charCodeAt(Bl)?(t=L,Bl++):t=o,t===o&&(t=oe())),Jl(!0),t===o?e=void 0:(Bl=e,e=o),e!==o&&(t=ue())!==o?l=t:(Bl=l,l=o),l===o&&(l=Bl,92===n.charCodeAt(Bl)?(e=L,Bl++):e=o,e!==o&&(t=we())!==o?l=t:(Bl=l,l=o),l===o&&(l=ve())),l}function ye(){var l;return(l=function(){var l,e,t,u;return l=Bl,(e=be())!==o?(45===n.charCodeAt(Bl)?(t=W,Bl++):t=o,t!==o&&(u=be())!==o?($l=l,l=El(e,u)):(Bl=l,l=o)):(Bl=l,l=o),l}())===o&&(l=be()),l}function be(){var l,e,t;return l=Bl,e=Bl,Vl(),93===n.charCodeAt(Bl)?(t=z,Bl++):t=o,t===o&&(92===n.charCodeAt(Bl)?(t=L,Bl++):t=o,t===o&&(t=oe())),Jl(!0),t===o?e=void 0:(Bl=e,e=o),e!==o&&(t=ue())!==o?l=t:(Bl=l,l=o),l===o&&(l=Bl,92===n.charCodeAt(Bl)?(e=L,Bl++):e=o,e!==o&&(t=we())!==o?l=t:(Bl=l,l=o),l===o&&(l=ve())),l}function ve(){var l,e;return l=Bl,92===n.charCodeAt(Bl)?(e=L,Bl++):e=o,e!==o&&ie()!==o?($l=l,l=xl()):(Bl=l,l=o),l}function we(){var l,e,t,u;return(l=function(){var l;return(l=Ae())===o&&(l=function(){var l,e,t;return l=Bl,e=Bl,Vl(),(t=function(){var l;return(l=Ae())===o&&(l=xe())===o&&(120===n.charCodeAt(Bl)?(l=Q,Bl++):l=o,l===o&&(117===n.charCodeAt(Bl)?(l=nn,Bl++):l=o)),l}())===o&&(t=oe()),Jl(!0),t===o?e=void 0:(Bl=e,e=o),e!==o&&(t=ue())!==o?l=t:(Bl=l,l=o),l}()),l}())===o&&(l=Bl,48===n.charCodeAt(Bl)?(e=V,Bl++):e=o,e!==o?(t=Bl,Vl(),u=xe(),Jl(!0),u===o?t=void 0:(Bl=t,t=o),t!==o?($l=l,l=Cl()):(Bl=l,l=o)):(Bl=l,l=o),l===o&&(l=function(){var l,e,t,u,r,i;return l=Bl,120===n.charCodeAt(Bl)?(e=Q,Bl++):e=o,e!==o?(t=Bl,u=Bl,(r=Ce())!==o&&(i=Ce())!==o?u=r=[r,i]:(Bl=u,u=o),(t=u!==o?n.substring(t,Bl):u)!==o?($l=l,l=Pl(t)):(Bl=l,l=o)):(Bl=l,l=o),l}())===o&&(l=Ee())),l}function Ae(){var l,e;return 39===n.charCodeAt(Bl)?(l=q,Bl++):l=o,l===o&&(34===n.charCodeAt(Bl)?(l=I,Bl++):l=o,l===o&&(92===n.charCodeAt(Bl)?(l=L,Bl++):l=o,l===o&&(l=Bl,98===n.charCodeAt(Bl)?(e=G,Bl++):e=o,e!==o&&($l=l,e=_l()),(l=e)===o&&(l=Bl,102===n.charCodeAt(Bl)?(e=J,Bl++):e=o,e!==o&&($l=l,e=Sl()),(l=e)===o&&(l=Bl,110===n.charCodeAt(Bl)?(e=X,Bl++):e=o,e!==o&&($l=l,e=Tl()),(l=e)===o&&(l=Bl,114===n.charCodeAt(Bl)?(e=K,Bl++):e=o,e!==o&&($l=l,e=kl()),(l=e)===o&&(l=Bl,116===n.charCodeAt(Bl)?(e=Y,Bl++):e=o,e!==o&&($l=l,e=Fl()),(l=e)===o&&(l=Bl,118===n.charCodeAt(Bl)?(e=Z,Bl++):e=o,e!==o&&($l=l,e=Dl()),l=e)))))))),l}function Ee(){var l,e,t,u,r,i,a,s;return l=Bl,117===n.charCodeAt(Bl)?(e=nn,Bl++):e=o,e!==o?(t=Bl,u=Bl,(r=Ce())!==o&&(i=Ce())!==o&&(a=Ce())!==o&&(s=Ce())!==o?u=r=[r,i,a,s]:(Bl=u,u=o),(t=u!==o?n.substring(t,Bl):u)!==o?($l=l,l=Pl(t)):(Bl=l,l=o)):(Bl=l,l=o),l}function xe(){var l;return on.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}function Ce(){var l;return an.test(n.charAt(Bl))?(l=n.charAt(Bl),Bl++):l=o,l}function _e(){var l,e,t,u,r;return r=Vn,0===Ml&&Gl(r),Ml++,l=Bl,123===n.charCodeAt(Bl)?(e=en,Bl++):e=o,e!==o?(t=function l(){var e,t,u,r,i,a;if(e=Bl,t=[],u=[],r=Bl,i=Bl,Vl(),sn.test(n.charAt(Bl))?(a=n.charAt(Bl),Bl++):a=o,Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o),r!==o)for(;r!==o;)u.push(r),r=Bl,i=Bl,Vl(),sn.test(n.charAt(Bl))?(a=n.charAt(Bl),Bl++):a=o,Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);else u=o;for(u===o&&(u=Bl,123===n.charCodeAt(Bl)?(r=en,Bl++):r=o,r!==o?(i=l(),125===n.charCodeAt(Bl)?(a=tn,Bl++):a=o,a!==o?u=r=[r,i,a]:(Bl=u,u=o)):(Bl=u,u=o));u!==o;){if(t.push(u),u=[],r=Bl,i=Bl,Vl(),sn.test(n.charAt(Bl))?(a=n.charAt(Bl),Bl++):a=o,Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o),r!==o)for(;r!==o;)u.push(r),r=Bl,i=Bl,Vl(),sn.test(n.charAt(Bl))?(a=n.charAt(Bl),Bl++):a=o,Jl(!0),a===o?i=void 0:(Bl=i,i=o),i!==o&&(a=ue())!==o?r=i=[i,a]:(Bl=r,r=o);else u=o;u===o&&(u=Bl,123===n.charCodeAt(Bl)?(r=en,Bl++):r=o,r!==o?(i=l(),125===n.charCodeAt(Bl)?(a=tn,Bl++):a=o,a!==o?u=r=[r,i,a]:(Bl=u,u=o)):(Bl=u,u=o))}return e=n.substring(e,Bl)}(),125===n.charCodeAt(Bl)?(u=tn,Bl++):u=o,u!==o?l=t:(Bl=l,l=o)):(Bl=l,l=o),l===o&&(l=Bl,123===n.charCodeAt(Bl)?(e=en,Bl++):e=o,e!==o&&($l=l,e=Ol()),l=e),Ml--,l}function Se(){var n,l;for(n=[],(l=re())===o&&(l=ie())===o&&(l=ae());l!==o;)n.push(l),(l=re())===o&&(l=ie())===o&&(l=ae());return n}function Te(){var l,e,t,u,r;return l=Bl,e=Se(),r=Gn,0===Ml&&Gl(r),59===n.charCodeAt(Bl)?(t=un,Bl++):t=o,t!==o?l=e=[e,t]:(Bl=l,l=o),l===o&&(l=Bl,e=function(){var n,l;for(n=[],(l=re())===o&&(l=se());l!==o;)n.push(l),(l=re())===o&&(l=se());return n}(),(t=ce())===o&&(t=null),(u=ie())!==o?l=e=[e,t,u]:(Bl=l,l=o),l===o&&(l=Bl,e=Se(),(t=function(){var l,e,t;return l=Bl,Vl(),t=On,0===Ml&&Gl(t),n.length>Bl?(e=n.charAt(Bl),Bl++):e=o,Jl(!0),e===o?l=void 0:(Bl=l,l=o),l}())!==o?l=e=[e,t]:(Bl=l,l=o))),l}var ke=!0,Fe={},De=l.reservedWords||u.reservedWords;function Pe(n,l){var e=new t.Node(n,Rl());return null===l?e:(u.extend(e,l),u.enforceFastProperties(e))}Array.isArray(De)&&De.forEach(function(n){Fe[n]=!0});var je,Oe,Be=l.extractComments?{}:null;function $e(n,e){if(l.extractComments){var t=Rl();Be[t.start.offset]={text:n,multiline:e,location:t}}return n}if(Vl(),(e=a())!==o&&Bl===n.length)return e;throw e!==o&&Bl=e)return e;for(var t=[],u=0;u<=n.length;u++)t[u]=Array(l.length+1).fill(0),t[u][0]=u;for(var r=0;r=e?t[u][r]=e:t[u][r]=Math.min(t[u-1][r]+1,t[u][r-1]+1,t[u-1][r-1]+(o===l.charCodeAt(r-1)?0:1));return t[n.length][l.length]}(o,n,s);l2&&void 0!==arguments[2]?arguments[2]:{};switch("parser"===(e=m.processOptions(e,{allowedStartRules:[n.rules[0].name],cache:!1,context:{},dependencies:{},exportVar:null,features:null,format:"bare",header:null,optimize:"speed",output:"parser",trace:!1})).output&&(e.format="umd"),m.each(l.passes,function(t){t.forEach(function(t){t(n,l,e)})}),e.output){case"parser":return l.vm.evalModule(n.code,e.context);case"source":return n.code;default:l.error("Invalid output format: ".concat(e.output,"."))}}};n.exports=y},function(n,l,e){"use strict";n.exports=function(n,l,e){n.rules.forEach(function(n){n.reportFailures=!1});for(var t=e.allowedStartRules.map(function(l){var e=n.findRule(l);return e.reportFailures=!0,e}),u=l.buildVisitor({rule:function(n){u(n.expression)},named:function(){},rule_ref:function(l){var e=n.findRule(l.name);e.reportFailures||(e.reportFailures=!0,t.push(e))}});t.length>0;)u(t.pop())}},function(n,l,e){"use strict";var t=e(1);n.exports=function(n,l){var e,u=l.opcodes,r=[],o=[],i=[],a=[];function s(n){var l=JSON.stringify(n),e=t.findIndex(i,function(n){return JSON.stringify(n)===l});return-1===e?i.push(n)-1:e}function c(n,l,e){var u={predicate:n,params:l,body:e},r=JSON.stringify(u),o=t.findIndex(a,function(n){return JSON.stringify(n)===r});return-1===o?a.push(u)-1:o}var f=function(){var n;return(n=[]).concat.apply(n,arguments)};function p(n,l,e,t){return n>0?e:n<0?t:l.concat([e.length,t.length],e,t)}function d(n,l,e,r){var o=t.values(e,function(n){return r-n});return[u.CALL,n,l,o.length].concat(o)}function h(n,l,r){var o=0|n.match;return f([u.PUSH_CURR_POS],[u.EXPECT_NS_BEGIN],e(n,{sp:r.sp+1,env:t.clone(r.env),action:null,reportFailures:r.reportFailures}),[u.EXPECT_NS_END,l?1:0],p(l?-o:o,[l?u.IF_ERROR:u.IF_NOT_ERROR],f([u.POP],[l?u.POP:u.POP_CURR_POS],[u.PUSH_UNDEFINED]),f([u.POP],[l?u.POP_CURR_POS:u.POP],[u.PUSH_FAILED])))}function g(n,l,e){var t=c(!0,Object.keys(e.env),n.code);return f([u.UPDATE_SAVED_POS],d(t,0,e.env,e.sp),p(0|n.match,[u.IF],f([u.POP],l?[u.PUSH_FAILED]:[u.PUSH_UNDEFINED]),f([u.POP],l?[u.PUSH_UNDEFINED]:[u.PUSH_FAILED])))}function m(n){return l=[u.WHILE_NOT_ERROR],e=f([u.APPEND],n),l.concat([e.length],e);var l,e}(e=l.buildVisitor({grammar:function(n){n.rules.forEach(e),n.literals=r,n.classes=o,n.expectations=i,n.functions=a},rule:function(n){n.bytecode=e(n.expression,{sp:-1,env:{},action:null,reportFailures:n.reportFailures})},named:function(n,l){var t=l.reportFailures?s({type:"rule",value:n.name}):null,r=e(n.expression,{sp:l.sp,env:l.env,action:l.action,reportFailures:!1});return l.reportFailures?f([u.EXPECT,t],[u.SILENT_FAILS_ON],r,[u.SILENT_FAILS_OFF]):r},choice:function(n,l){return function n(l,r){return f(e(l[0],{sp:r.sp,env:t.clone(r.env),action:null,reportFailures:r.reportFailures}),l.length<2?[]:p(-(0|l[0].match),[u.IF_ERROR],f([u.POP],n(l.slice(1),r)),[]))}(n.alternatives,l)},action:function(n,l){var r=t.clone(l.env),o="sequence"!==n.expression.type||0===n.expression.elements.length,i=e(n.expression,{sp:l.sp+(o?1:0),env:r,action:n,reportFailures:l.reportFailures}),a=0|n.expression.match,s=o&&a>=0?c(!1,Object.keys(r),n.code):null;return!1===o?i:f([u.PUSH_CURR_POS],i,p(a,[u.IF_NOT_ERROR],f([u.LOAD_SAVED_POS,1],d(s,1,r,l.sp+2)),[]),[u.NIP])},sequence:function(n,l){var t=n.elements.length;return f([u.PUSH_CURR_POS],function n(l,r){if(l.length>0){var o=t-l.slice(1).length;return f(e(l[0],{sp:r.sp,env:r.env,pluck:r.pluck,action:null,reportFailures:r.reportFailures}),p(0|l[0].match,[u.IF_NOT_ERROR],n(l.slice(1),{sp:r.sp+1,env:r.env,pluck:r.pluck,action:r.action,reportFailures:r.reportFailures}),f(o>1?[u.POP_N,o]:[u.POP],[u.POP_CURR_POS],[u.PUSH_FAILED])))}return r.pluck.length>0?f([u.PLUCK,t+1,r.pluck.length],r.pluck.map(function(n){return r.sp-n})):r.action?f([u.LOAD_SAVED_POS,t],d(c(!1,Object.keys(r.env),r.action.code),t+1,r.env,r.sp)):f([u.WRAP,t],[u.NIP])}(n.elements,{sp:l.sp+1,env:l.env,pluck:[],action:l.action,reportFailures:l.reportFailures}))},labeled:function(n,l){var u=l.env,r=n.label,o=l.sp+1;return null!==r&&(u=t.clone(l.env),l.env[r]=o),l.pluck&&n.pick&&l.pluck.push(o),e(n.expression,{sp:l.sp,env:u,action:null,reportFailures:l.reportFailures})},text:function(n,l){return f([u.PUSH_CURR_POS],e(n.expression,{sp:l.sp+1,env:t.clone(l.env),action:null,reportFailures:l.reportFailures}),p(0|n.expression.match,[u.IF_NOT_ERROR],f([u.POP],[u.TEXT]),[u.NIP]))},simple_and:function(n,l){return h(n.expression,!1,l)},simple_not:function(n,l){return h(n.expression,!0,l)},optional:function(n,l){return f(e(n.expression,{sp:l.sp,env:t.clone(l.env),action:null,reportFailures:l.reportFailures}),p(-(0|n.expression.match),[u.IF_ERROR],f([u.POP],[u.PUSH_NULL]),[]))},zero_or_more:function(n,l){var r=e(n.expression,{sp:l.sp+1,env:t.clone(l.env),action:null,reportFailures:l.reportFailures});return f([u.PUSH_EMPTY_ARRAY],r,m(r),[u.POP])},one_or_more:function(n,l){var r=e(n.expression,{sp:l.sp+1,env:t.clone(l.env),action:null,reportFailures:l.reportFailures});return f([u.PUSH_EMPTY_ARRAY],r,p(0|n.expression.match,[u.IF_NOT_ERROR],f(m(r),[u.POP]),f([u.POP],[u.POP],[u.PUSH_FAILED])))},group:function(n,l){return e(n.expression,{sp:l.sp,env:t.clone(l.env),action:null,reportFailures:l.reportFailures})},semantic_and:function(n,l){return g(n,!1,l)},semantic_not:function(n,l){return g(n,!0,l)},rule_ref:function(l){return[u.RULE,n.indexOfRule(l.name)]},literal:function(n,l){if(n.value.length>0){var e=0|n.match,t=0===e||e>0&&!n.ignoreCase?(i=n.ignoreCase?n.value.toLowerCase():n.value,-1===(a=r.indexOf(i))?r.push(i)-1:a):null,o=l.reportFailures?s({type:"literal",value:n.value,ignoreCase:n.ignoreCase}):null;return f(l.reportFailures?[u.EXPECT,o]:[],p(e,n.ignoreCase?[u.MATCH_STRING_IC,t]:[u.MATCH_STRING,t],n.ignoreCase?[u.ACCEPT_N,n.value.length]:[u.ACCEPT_STRING,t],[u.PUSH_FAILED]))}var i,a;return[u.PUSH_EMPTY_STRING]},class:function(n,l){var e=0|n.match,r=0===e?function(n){var l={value:n.parts,inverted:n.inverted,ignoreCase:n.ignoreCase},e=JSON.stringify(l),u=t.findIndex(o,function(n){return JSON.stringify(n)===e});return-1===u?o.push(l)-1:u}(n):null,i=l.reportFailures?s({type:"class",value:n.parts,inverted:n.inverted,ignoreCase:n.ignoreCase}):null;return f(l.reportFailures?[u.EXPECT,i]:[],p(e,[u.MATCH_CLASS,r],[u.ACCEPT_N,1],[u.PUSH_FAILED]))},any:function(n,l){var e=l.reportFailures?s({type:"any"}):null;return f(l.reportFailures?[u.EXPECT,e]:[],p(0|n.match,[u.MATCH_ANY],[u.ACCEPT_N,1],[u.PUSH_FAILED]))}}))(n)}},function(n,l,e){"use strict";var t=e(1),u=e(13).version;n.exports=function(n,l,e){var r=l.opcodes,o=e.features||{};function i(n,l){return n in o?!!o[n]:null==l||!!l}var a=/^([^`\r\n]+?(?:`[^`]*?`[^\r\n]*?)?)$/gm;function s(n){return n.replace(a," $1")}function c(n){return n.replace(a," $1")}var f=function(n){return"peg$c"+n},p=function(n){return"peg$r"+n},d=function(n){return"peg$e"+n},h=function(n){return"peg$f"+n};function g(l,t){var u=[];return u.push(["","var rule$expects = function (expected) {"," if (peg$silentFails === 0) peg$expect(expected);","}",""].join("\n")),e.trace&&u.push(["peg$tracer.trace({",' type: "rule.enter",'," rule: "+l+","," location: peg$computeLocation(startPos, startPos)","});",""].join("\n")),e.cache&&(u.push(["var key = peg$currPos * "+n.rules.length+" + "+t+";","var cached = peg$resultsCache[key];","var rule$expectations = [];","","rule$expects = function (expected) {"," if (peg$silentFails === 0) peg$expect(expected);"," rule$expectations.push(expected);","}","","if (cached) {"," peg$currPos = cached.nextPos;",""," rule$expectations = cached.expectations;"," if (peg$silentFails === 0) {"," rule$expectations.forEach(peg$expect);"," }",""].join("\n")),e.trace&&u.push(["if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+l+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+l+","," location: peg$computeLocation(startPos, startPos)"," });","}",""].join("\n")),u.push([" return cached.result;","}",""].join("\n"))),u.join("\n")}function m(n,l){var t=[];return e.cache&&t.push(["","peg$resultsCache[key] = {"," nextPos: peg$currPos,"," result: "+l+","," expectations: rule$expectations","};"].join("\n")),e.trace&&t.push(["","if ("+l+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+n+","," result: "+l+","," location: peg$computeLocation(startPos, peg$currPos)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+n+","," location: peg$computeLocation(startPos, startPos)"," });","}"].join("\n")),t.push(["","return "+l+";"].join("\n")),t.join("\n")}n.code=function(n){function l(){var n="// Generated by PEG.js v".concat(u,", https://pegjs.org/"),l=e.header;return"string"==typeof l?n+="\n\n"+l:Array.isArray(l)&&(n+="\n\n",l.forEach(function(l){n+="// "+l})),n}function r(){return e.trace&&i("DefaultTracer")?["{"," SyntaxError: peg$SyntaxError,"," DefaultTracer: peg$DefaultTracer,"," parse: peg$parse","}"].join("\n"):["{"," SyntaxError: peg$SyntaxError,"," parse: peg$parse","}"].join("\n")}return{bare:function(){return[l(),"(function() {",' "use strict";',"",s(n),"",s("return "+r()+";"),"})()"].join("\n")},commonjs:function(){var u=[],o=Object.keys(e.dependencies);return u.push([l(),"",'"use strict";',""].join("\n")),o.length>0&&(o.forEach(function(n){u.push("var "+n+' = require("'+t.stringEscape(e.dependencies[n])+'");')}),u.push("")),u.push([n,"","module.exports = "+r()+";",""].join("\n")),u.join("\n")},es:function(){var u=[],o=Object.keys(e.dependencies);return u.push(l(),""),o.length>0&&(o.forEach(function(n){u.push("import "+n+' from "'+t.stringEscape(e.dependencies[n])+'";')}),u.push("")),u.push(n,"","export "+(e.trace&&i("DefaultTracer")?["{"," peg$SyntaxError as SyntaxError,"," peg$DefaultTracer as DefaultTracer,"," peg$parse as parse","}"].join("\n"):["{"," peg$SyntaxError as SyntaxError,"," peg$parse as parse","}"].join("\n"))+";","","export default "+r()+";",""),u.join("\n")},amd:function(){var u=Object.keys(e.dependencies),o="["+u.map(function(n){return e.dependencies[n]}).map(function(n){return'"'.concat(t.stringEscape(n),'"')}).join(", ")+"]",i=u.join(", ");return[l(),"define("+o+", function("+i+") {",' "use strict";',"",s(n),"",s("return "+r()+";"),"});",""].join("\n")},globals:function(){return[l(),"(function(root) {",' "use strict";',"",s(n),"",s("root."+e.exportVar+" = "+r()+";"),"})(this);",""].join("\n")},umd:function(){var u=[],o=Object.keys(e.dependencies),i=o.map(function(n){return e.dependencies[n]}),a="["+i.map(function(n){return'"'.concat(t.stringEscape(n),'"')}).join(", ")+"]",c=i.map(function(n){return'require("'.concat(t.stringEscape(n),'")')}).join(", "),f=o.map(function(n){return"root."+n}).join(", "),p=o.join(", ");return u.push([l(),"(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+a+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+c+");"].join("\n")),null!==e.exportVar&&u.push([" } else {"," root."+e.exportVar+" = factory("+f+");"].join("\n")),u.push([" }","})(this, function("+p+") {",' "use strict";',"",s(n),"",s("return "+r()+";"),"});",""].join("\n")),u.join("\n")}}[e.format]()}(function(){var u=[];if(u.push(["function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," this.message = message;"," this.expected = expected;"," this.found = found;"," this.location = location;",' this.name = "SyntaxError";',""," // istanbul ignore next",' if (typeof Error.captureStackTrace === "function") {'," Error.captureStackTrace(this, peg$SyntaxError);"," }","}","","peg$subclass(peg$SyntaxError, Error);","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," },",""," not: function(expectation) {",' return "not " + describeExpectation(expectation.expected);'," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""].join("\n")),e.trace&&(i("DefaultTracer")?u.push(["function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," // istanbul ignore next"," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};",""].join("\n")):u.push(["var peg$FauxTracer = {"," trace: function(event) { }","};",""].join("\n"))),u.push(["function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};",""].join("\n")),"size"===e.optimize){var o="{ "+e.allowedStartRules.map(function(l){return l+": "+n.indexOfRule(l)}).join(", ")+" }",a=n.indexOfRule(e.allowedStartRules[0]);u.push([" var peg$startRuleIndices = "+o+";"," var peg$startRuleIndex = "+a+";"].join("\n"))}else{var y="{ "+e.allowedStartRules.map(function(n){return n+": peg$parse"+n}).join(", ")+" }",b="peg$parse"+e.allowedStartRules[0];u.push([" var peg$startRuleFunctions = "+y+";"," var peg$startRuleFunction = "+b+";"].join("\n"))}if(u.push(""),u.push(s(function(){function u(n){return'"'.concat(t.stringEscape(n),'"')}function r(n){return"/^["+(n.inverted?"^":"")+n.value.map(function(n){return Array.isArray(n)?t.regexpEscape(n[0])+"-"+t.regexpEscape(n[1]):t.regexpEscape(n)}).join("")+"]/"+(n.ignoreCase?"i":"")}function o(n){switch(n.type){case"rule":return'peg$otherExpectation("'.concat(t.stringEscape(n.value),'")');case"literal":return'peg$literalExpectation("'+t.stringEscape(n.value)+'", '+n.ignoreCase+")";case"class":return"peg$classExpectation(["+n.value.map(function(n){return Array.isArray(n)?'["'.concat(t.stringEscape(n[0]),'", "').concat(t.stringEscape(n[1]),'"]'):'"'.concat(t.stringEscape(n),'"')}).join(", ")+"], "+n.inverted+", "+n.ignoreCase+")";case"any":return"peg$anyExpectation()";default:l.fatal("Unknown expectation type (".concat(JSON.stringify(n),")"))}}function i(n){return"function(".concat(n.params.join(", "),") {").concat(n.body,"}")}return"size"===e.optimize?["var peg$literals = [",s(n.literals.map(u).join(",\n")),"];","var peg$regexps = [",s(n.classes.map(r).join(",\n")),"];","var peg$expectations = [",s(n.expectations.map(o).join(",\n")),"];","var peg$functions = [",s(n.functions.map(i).join(",\n")),"];","","var peg$bytecode = [",s(n.rules.map(function(n){return'peg$decode("'.concat(t.stringEscape(n.bytecode.map(function(n){return String.fromCharCode(n+32)}).join("")),'")')}).join(",\n")),"];"].join("\n"):n.literals.map(function(n,l){return"var "+f(l)+" = "+u(n)+";"}).concat("",n.classes.map(function(n,l){return"var "+p(l)+" = "+r(n)+";"})).concat("",n.expectations.map(function(n,l){return"var "+d(l)+" = "+o(n)+";"})).concat("",n.functions.map(function(n,l){return"var "+h(l)+" = "+i(n)+";"})).join("\n")}())),u.push([""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$expected = [];"," var peg$silentFails = 0;",""].join("\n")),e.cache&&u.push([" var peg$resultsCache = {};",""].join("\n")),e.trace){if("size"===e.optimize){var v="["+n.rules.map(function(n){return'"'.concat(t.stringEscape(n.name),'"')}).join(", ")+"]";u.push([" var peg$ruleNames = "+v+";",""].join("\n"))}i("DefaultTracer")?u.push([' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""].join("\n")):u.push([' var peg$tracer = "tracer" in options ? options.tracer : peg$FauxTracer;',""].join("\n"))}return u.push([" var peg$result;",""].join("\n")),"size"===e.optimize?u.push([' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleIndices)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleIndex = peg$startRuleIndices[options.startRule];"," }"].join("\n")):u.push([' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }"].join("\n")),i("text")&&u.push([""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }"].join("\n")),i("offset")&&u.push([""," function offset() {"," return peg$savedPos;"," }"].join("\n")),i("range")&&u.push([""," function range() {"," return [peg$savedPos, peg$currPos];"," }"].join("\n")),i("location")&&u.push([""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }"].join("\n")),i("expected")&&u.push([""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }"].join("\n")),i("error")&&u.push([""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }"].join("\n")),u.push([""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }","",i("filename")?' var peg$VALIDFILENAME = typeof options.filename === "string" && options.filename.length > 0;':""," function peg$computeLocation(startPos, endPos) {"," var loc = {};","",i("filename")?" if ( peg$VALIDFILENAME ) loc.filename = options.filename;":"",""," var startPosDetails = peg$computePosDetails(startPos);"," loc.start = {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," };",""," var endPosDetails = peg$computePosDetails(endPos);"," loc.end = {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," };",""," return loc;"," }",""," function peg$begin() {"," peg$expected.push({ pos: peg$currPos, variants: [] });"," }",""," function peg$expect(expected) {"," var top = peg$expected[peg$expected.length - 1];",""," if (peg$currPos < top.pos) { return; }",""," if (peg$currPos > top.pos) {"," top.pos = peg$currPos;"," top.variants = [];"," }",""," top.variants.push(expected);"," }",""," function peg$end(invert) {"," var expected = peg$expected.pop();"," var top = peg$expected[peg$expected.length - 1];"," var variants = expected.variants;",""," if (top.pos !== expected.pos) { return; }",""," if (invert) {"," variants = variants.map(function(e) {",' return e.type === "not" ? e.expected : { type: "not", expected: e };'," });"," }",""," Array.prototype.push.apply(top.variants, variants);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""," function peg$buildError() {"," var expected = peg$expected[0];"," var failPos = expected.pos;",""," return peg$buildStructuredError("," expected.variants,"," failPos < input.length ? input.charAt(failPos) : null,"," failPos < input.length"," ? peg$computeLocation(failPos, failPos + 1)"," : peg$computeLocation(failPos, failPos)"," );"," }",""].join("\n")),"size"===e.optimize?(u.push(s(function(){var n,l=[];function t(n,l){var e=l+3,t="bc[ip + "+(e-2)+"]",u="bc[ip + "+(e-1)+"]";return["ends.push(end);","ips.push(ip + "+e+" + "+t+" + "+u+");","","if ("+n+") {"," end = ip + "+e+" + "+t+";"," ip += "+e+";","} else {"," end = ip + "+e+" + "+t+" + "+u+";"," ip += "+e+" + "+t+";","}","","break;"].join("\n")}return l.push(["function peg$decode(s) {",' return s.split("").map(function(ch) { return ch.charCodeAt(0) - 32; });',"}","","function peg$parseRule(index) {"].join("\n")),e.trace?l.push([" var bc = peg$bytecode[index];"," var ip = 0;"," var ips = [];"," var end = bc.length;"," var ends = [];"," var stack = [];"," var startPos = peg$currPos;"," var params, paramsLength, paramsN;"].join("\n")):l.push([" var bc = peg$bytecode[index];"," var ip = 0;"," var ips = [];"," var end = bc.length;"," var ends = [];"," var stack = [];"," var params, paramsLength, paramsN;"].join("\n")),l.push(s(g("peg$ruleNames[index]","index"))),l.push([" while (true) {"," while (ip < end) {"," switch (bc[ip]) {"," case "+r.PUSH_EMPTY_STRING+":"," stack.push('');"," ip++;"," break;",""," case "+r.PUSH_UNDEFINED+":"," stack.push(undefined);"," ip++;"," break;",""," case "+r.PUSH_NULL+":"," stack.push(null);"," ip++;"," break;",""," case "+r.PUSH_FAILED+":"," stack.push(peg$FAILED);"," ip++;"," break;",""," case "+r.PUSH_EMPTY_ARRAY+":"," stack.push([]);"," ip++;"," break;",""," case "+r.PUSH_CURR_POS+":"," stack.push(peg$currPos);"," ip++;"," break;",""," case "+r.POP+":"," stack.pop();"," ip++;"," break;",""," case "+r.POP_CURR_POS+":"," peg$currPos = stack.pop();"," ip++;"," break;",""," case "+r.POP_N+":"," stack.length -= bc[ip + 1];"," ip += 2;"," break;",""," case "+r.NIP+":"," stack.splice(-2, 1);"," ip++;"," break;",""," case "+r.APPEND+":"," stack[stack.length - 2].push(stack.pop());"," ip++;"," break;",""," case "+r.WRAP+":"," stack.push(stack.splice(stack.length - bc[ip + 1], bc[ip + 1]));"," ip += 2;"," break;",""," case "+r.TEXT+":"," stack.push(input.substring(stack.pop(), peg$currPos));"," ip++;"," break;",""," case "+r.PLUCK+":"," paramsLength = bc[ip + 2];"," paramsN = 3 + paramsLength",""," params = bc.slice(ip + 3, ip + paramsN);"," params = paramsLength === 1"," ? stack[stack.length - 1 - params[ 0 ]]"," : params.map(function(p) { return stack[stack.length - 1 - p]; });",""," stack.splice("," stack.length - bc[ip + 1],"," bc[ip + 1],"," params"," );",""," ip += paramsN;"," break;",""," case "+r.IF+":",c(t("stack[stack.length - 1]",0)),""," case "+r.IF_ERROR+":",c(t("stack[stack.length - 1] === peg$FAILED",0)),""," case "+r.IF_NOT_ERROR+":",c(t("stack[stack.length - 1] !== peg$FAILED",0)),""," case "+r.WHILE_NOT_ERROR+":",c((n="stack[stack.length - 1] !== peg$FAILED",["if ("+n+") {"," ends.push(end);"," ips.push(ip);",""," end = ip + 2 + bc[ip + 1];"," ip += 2;","} else {"," ip += 2 + bc[ip + 1];","}","","break;"].join("\n"))),""," case "+r.MATCH_ANY+":",c(t("input.length > peg$currPos",0)),""," case "+r.MATCH_STRING+":",c(t("input.substr(peg$currPos, peg$literals[bc[ip + 1]].length) === peg$literals[bc[ip + 1]]",1)),""," case "+r.MATCH_STRING_IC+":",c(t("input.substr(peg$currPos, peg$literals[bc[ip + 1]].length).toLowerCase() === peg$literals[bc[ip + 1]]",1)),""," case "+r.MATCH_CLASS+":",c(t("peg$regexps[bc[ip + 1]].test(input.charAt(peg$currPos))",1)),""," case "+r.ACCEPT_N+":"," stack.push(input.substr(peg$currPos, bc[ip + 1]));"," peg$currPos += bc[ip + 1];"," ip += 2;"," break;",""," case "+r.ACCEPT_STRING+":"," stack.push(peg$literals[bc[ip + 1]]);"," peg$currPos += peg$literals[bc[ip + 1]].length;"," ip += 2;"," break;",""," case "+r.EXPECT+":"," rule$expects(peg$expectations[bc[ip + 1]]);"," ip += 2;"," break;",""," case "+r.LOAD_SAVED_POS+":"," peg$savedPos = stack[stack.length - 1 - bc[ip + 1]];"," ip += 2;"," break;",""," case "+r.UPDATE_SAVED_POS+":"," peg$savedPos = peg$currPos;"," ip++;"," break;",""," case "+r.CALL+":",c(["params = bc.slice(ip + 4, ip + 4 + bc[ip + 3])"," .map(function(p) { return stack[stack.length - 1 - p]; });","","stack.splice("," stack.length - bc[ip + 2],"," bc[ip + 2],"," peg$functions[bc[ip + 1]].apply(null, params)",");","","ip += 4 + bc[ip + 3];","break;"].join("\n")),""," case "+r.RULE+":"," stack.push(peg$parseRule(bc[ip + 1]));"," ip += 2;"," break;",""," case "+r.SILENT_FAILS_ON+":"," peg$silentFails++;"," ip++;"," break;",""," case "+r.SILENT_FAILS_OFF+":"," peg$silentFails--;"," ip++;"," break;",""," case "+r.EXPECT_NS_BEGIN+":"," peg$begin();"," ip++;"," break;",""," case "+r.EXPECT_NS_END+":"," peg$end(bc[ip + 1]);"," ip += 2;"," break;",""," // istanbul ignore next"," default:"," throw new Error(",' "Rule #" + index + "'+(e.trace?" ('\" + peg$ruleNames[ index ] + \"')":"")+', position " + ip + ": "',' + "Invalid opcode " + bc[ip] + "."'," );"," }"," }",""," if (ends.length > 0) {"," end = ends.pop();"," ip = ips.pop();"," } else {"," break;"," }"," }"].join("\n")),l.push(s(m("peg$ruleNames[index]","stack[0]"))),l.push("}"),l.join("\n")}())),u.push("")):n.rules.forEach(function(o){u.push(s(function(u){var o=[],i=[];function a(n){return n<0&&l.fatal("Rule '"+u.name+"': Var stack underflow: attempt to use var at index "+n),"s"+n}var c={sp:-1,maxSp:-1,push:function(n){var l=a(++this.sp)+" = "+n+";";return this.sp>this.maxSp&&(this.maxSp=this.sp),l},pop:function(n){if(void 0===n)return a(this.sp--);for(var l=Array(n),e=0;e0&&(c.sp=m,i=e(t.slice(v,v+g)),f=c.sp,v+=g,a!==f&&l.fatal("Rule '"+u.name+"', position "+p+": Branches of a condition can't move the stack pointer differently (before: "+m+", after then: "+a+", after else: "+f+").")),A.push("if ("+n+") {"),A.push(s(o)),g>0&&(A.push("} else {"),A.push(s(i))),A.push("}")}function x(){var n=t[v+4-1],l=h(t[v+1])+"("+t.slice(v+4,v+4+n).map(function(n){return c.index(n)}).join(", ")+")";c.pop(t[v+2]),A.push(c.push(l)),v+=4+n}for(;v peg$currPos",0);break;case r.MATCH_STRING:E(n.literals[t[v+1]].length>1?"input.substr(peg$currPos, "+n.literals[t[v+1]].length+") === "+f(t[v+1]):"input.charCodeAt(peg$currPos) === "+n.literals[t[v+1]].charCodeAt(0),1);break;case r.MATCH_STRING_IC:E("input.substr(peg$currPos, "+n.literals[t[v+1]].length+").toLowerCase() === "+f(t[v+1]),1);break;case r.MATCH_CLASS:E(p(t[v+1])+".test(input.charAt(peg$currPos))",1);break;case r.ACCEPT_N:A.push(c.push(t[v+1]>1?"input.substr(peg$currPos, "+t[v+1]+")":"input.charAt(peg$currPos)")),A.push(t[v+1]>1?"peg$currPos += "+t[v+1]+";":"peg$currPos++;"),v+=2;break;case r.ACCEPT_STRING:A.push(c.push(f(t[v+1]))),A.push(n.literals[t[v+1]].length>1?"peg$currPos += "+n.literals[t[v+1]].length+";":"peg$currPos++;"),v+=2;break;case r.EXPECT:A.push("rule$expects("+d(t[v+1])+");"),v+=2;break;case r.LOAD_SAVED_POS:A.push("peg$savedPos = "+c.index(t[v+1])+";"),v+=2;break;case r.UPDATE_SAVED_POS:A.push("peg$savedPos = peg$currPos;"),v++;break;case r.CALL:x();break;case r.RULE:A.push(c.push("peg$parse"+n.rules[t[v+1]].name+"()")),v+=2;break;case r.SILENT_FAILS_ON:A.push("peg$silentFails++;"),v++;break;case r.SILENT_FAILS_OFF:A.push("peg$silentFails--;"),v++;break;case r.EXPECT_NS_BEGIN:A.push("peg$begin();"),v++;break;case r.EXPECT_NS_END:A.push("peg$end("+(0!==t[v+1])+");"),v+=2;break;default:l.fatal("Rule '"+u.name+"', position "+v+": Invalid opcode "+t[v]+".")}return A.join("\n")}(u.bytecode);o.push("function peg$parse"+u.name+"() {"),e.trace&&o.push(" var startPos = peg$currPos;");for(var b=0;b<=c.maxSp;b++)i[b]=a(b);return o.push(" var "+i.join(", ")+";"),o.push(s(g('"'+t.stringEscape(u.name)+'"',n.indexOfRule(u.name)))),o.push(s(y)),o.push(s(m('"'+t.stringEscape(u.name)+'"',a(0)))),o.push("}"),o.join("\n")}(o))),u.push("")}),n.initializer&&(u.push(s(n.initializer.code)),u.push("")),u.push(" peg$begin();"),"size"===e.optimize?u.push(" peg$result = peg$parseRule(peg$startRuleIndex);"):u.push(" peg$result = peg$startRuleFunction();"),u.push([""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$expect(peg$endExpectation());"," }",""," throw peg$buildError();"," }","}"].join("\n")),u.join("\n")}())}},function(n,l,e){"use strict";n.exports=function(n,l,e){var t=l.buildVisitor({rule_ref:function(n,l,e){n.name===l&&(n.name=e)}}),u=e.allowedStartRules,r=[];n.rules.forEach(function(l){var e;"rule"===(e=l).type&&"rule_ref"===e.expression.type&&(t(n,l.name,l.expression.name),u.indexOf(l.name)<0)||r.push(l)}),n.rules=r}},function(n,l,e){"use strict";var t=e(1),u=Object.prototype.hasOwnProperty;n.exports=function(n,l){var e;function r(n,l){e(n.expression,t.clone(l))}(e=l.buildVisitor({rule:function(n){e(n.expression,{})},choice:function(n,l){n.alternatives.forEach(function(n){e(n,t.clone(l))})},action:r,labeled:function(n,t){var r=n.label;if(r&&u.call(t,r)){var o=t[r].start;l.error('Label "'.concat(r,'" is already defined at line ').concat(o.line,", column ").concat(o.column,"."),n.location)}e(n.expression,t),r&&(t[r]=n.location)},text:r,simple_and:r,simple_not:r,optional:r,zero_or_more:r,one_or_more:r,group:r}))(n)}},function(n,l,e){"use strict";var t=Object.prototype.hasOwnProperty;n.exports=function(n,l){var e={};l.buildVisitor({rule:function(n){var u=n.name;if(t.call(e,u)){var r=e[u].start;l.error('Rule "'.concat(u,'" is already defined at line ').concat(r.line,", column ").concat(r.column,"."),n.location)}e[n.name]=n.location}})(n)}},function(n,l,e){"use strict";n.exports=function(n,l,e){var t={};function u(n){t[n.name||n]=!0}e.allowedStartRules.forEach(u),l.buildVisitor({rule_ref:u})(n),n.rules.forEach(function(n){!0!==t[n.name]&&l.warn('Rule "'.concat(n.name,'" is not referenced.'),n.location)})}},function(n,l,e){"use strict";n.exports=function(n,l){var e=[],t=l.buildVisitor({rule:function(n){e.push(n.name),t(n.expression),e.pop(n.name)},sequence:function(l){l.elements.every(function(l){return t(l),!n.alwaysConsumesOnSuccess(l)})},rule_ref:function(u){if(-1!==e.indexOf(u.name)){e.push(u.name);var r=e.join(" -> ");l.error("Possible infinite loop when parsing (left recursion: ".concat(r,")."),u.location)}t(n.findRule(u.name))}});t(n)}},function(n,l,e){"use strict";n.exports=function(n,l){l.buildVisitor({zero_or_more:function(e){n.alwaysConsumesOnSuccess(e.expression)||l.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",e.location)},one_or_more:function(e){n.alwaysConsumesOnSuccess(e.expression)||l.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",e.location)}})(n)}},function(n,l,e){"use strict";n.exports=function(n,l,e){l.buildVisitor({rule_ref:function(e){n.findRule(e.name)||l.error('Rule "'.concat(e.name,'" is not defined.'),e.location)}})(n),e.allowedStartRules.forEach(function(e){n.findRule(e)||l.error('Start rule "'.concat(e,'" is not defined.'))})}},function(n,l,e){"use strict";n.exports=function(n,l){var e;function t(n){return n.match=0,n.match}function u(n){return e(n.expression),n.match=1,n.match}function r(n){return n.match=e(n.expression),n.match}function o(n,l){for(var t=n.length,u=0,r=0,o=0;o0&&++u,i<0&&++r}return u===t?1:l?r===t?-1:0:r>0?-1:0}(e=l.buildVisitor({rule:function(n){var t,u=0;if(void 0===n.match){n.match=0;do{t=n.match,n.match=e(n.expression),++u>6&&l.error("Infinity cycle detected when trying to evaluate node match result",n.location)}while(t!==n.match)}return n.match},named:r,choice:function(n){return n.match=o(n.alternatives,!0),n.match},action:r,sequence:function(n){return n.match=o(n.elements,!1),n.match},labeled:r,text:r,simple_and:r,simple_not:function(n){return n.match=-e(n.expression),n.match},optional:u,zero_or_more:u,one_or_more:r,group:r,semantic_and:t,semantic_not:t,rule_ref:function(l){var t=n.findRule(l.name);return l.match=e(t),l.match},literal:function(n){return n.match=0===n.value.length?1:0,n.match},class:function(n){return n.match=0===n.parts.length?-1:0,n.match},any:t}))(n)}},function(n,l,e){"use strict";n.exports=function(n,l){l.buildVisitor({action:function(n){this.visit(n.expression,!0)},labeled:function(n,e){var t;!0===n.pick&&(!0===e&&l.error('"@" cannot be used with an action block.',n.location),("semantic_and"===(t=n.expression.type)||"semantic_not"===t)&&l.error('"@" cannot be used on a semantic predicate.',n.location),this.visit(n.expression))}})(n)}},function(n,l,e){"use strict";function t(n,l){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};!function(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}(this,n),this.opcodes=l.opcodes||o,this.parser=l.parser||i,this.passes=l.passes||{},this.visitor=l.visitor||u.visitor,this.vm=l.vm||a,"function"==typeof l.warn&&(this.warn=l.warn),"function"==typeof l.error&&(this.error=l.error),Object.defineProperty(this,"fatal",{value:s})}var l,e,r;return l=n,(e=[{key:"parse",value:function(n,l){return this.parser.parse(n,l)}},{key:"buildVisitor",value:function(n){return this.visitor.build(n)}},{key:"warn",value:function(n,l){}},{key:"error",value:function(n,l){s(n,l)}}])&&t(l.prototype,e),r&&t(l,r),n}();n.exports=c},function(n,l,e){"use strict";n.exports={PUSH_EMPTY_STRING:0,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:41,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CLASS:20,ACCEPT_N:21,ACCEPT_STRING:22,EXPECT:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,EXPECT_NS_BEGIN:38,EXPECT_NS_END:39}},function(n,l,e){(function(n){var t=void 0!==n&&n||"undefined"!=typeof self&&self||window,u=Function.prototype.apply;function r(n,l){this._id=n,this._clearFn=l}l.setTimeout=function(){return new r(u.call(setTimeout,t,arguments),clearTimeout)},l.setInterval=function(){return new r(u.call(setInterval,t,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(n){n&&n.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(t,this._id)},l.enroll=function(n,l){clearTimeout(n._idleTimeoutId),n._idleTimeout=l},l.unenroll=function(n){clearTimeout(n._idleTimeoutId),n._idleTimeout=-1},l._unrefActive=l.active=function(n){clearTimeout(n._idleTimeoutId);var l=n._idleTimeout;l>=0&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},l))},e(54),l.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==n&&n.setImmediate||this&&this.setImmediate,l.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==n&&n.clearImmediate||this&&this.clearImmediate}).call(this,e(15))},function(n,l,e){(function(t){var u,r,o;function i(n){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}o=function(){"use strict";var n="function"==typeof Promise,l="object"===("undefined"==typeof self?"undefined":i(self))?self:t,e="undefined"!=typeof Symbol,u="undefined"!=typeof Map,r="undefined"!=typeof Set,o="undefined"!=typeof WeakMap,a="undefined"!=typeof WeakSet,s="undefined"!=typeof DataView,c=e&&void 0!==Symbol.iterator,f=e&&void 0!==Symbol.toStringTag,p=r&&"function"==typeof Set.prototype.entries,d=u&&"function"==typeof Map.prototype.entries,h=p&&Object.getPrototypeOf((new Set).entries()),g=d&&Object.getPrototypeOf((new Map).entries()),m=c&&"function"==typeof Array.prototype[Symbol.iterator],y=m&&Object.getPrototypeOf([][Symbol.iterator]()),b=c&&"function"==typeof String.prototype[Symbol.iterator],v=b&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,A=-1;return function(e){var t=i(e);if("object"!==t)return t;if(null===e)return"null";if(e===l)return"global";if(Array.isArray(e)&&(!1===f||!(Symbol.toStringTag in e)))return"Array";if("object"===("undefined"==typeof window?"undefined":i(window))&&null!==window){if("object"===i(window.location)&&e===window.location)return"Location";if("object"===i(window.document)&&e===window.document)return"Document";if("object"===i(window.navigator)){if("object"===i(window.navigator.mimeTypes)&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"===i(window.navigator.plugins)&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"===i(window.HTMLElement))&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var c=f&&e[Symbol.toStringTag];if("string"==typeof c)return c;var p=Object.getPrototypeOf(e);return p===RegExp.prototype?"RegExp":p===Date.prototype?"Date":n&&p===Promise.prototype?"Promise":r&&p===Set.prototype?"Set":u&&p===Map.prototype?"Map":a&&p===WeakSet.prototype?"WeakSet":o&&p===WeakMap.prototype?"WeakMap":s&&p===DataView.prototype?"DataView":u&&p===g?"Map Iterator":r&&p===h?"Set Iterator":m&&p===y?"Array Iterator":b&&p===v?"String Iterator":null===p?"Object":Object.prototype.toString.call(e).slice(w,A)}},"object"===i(l)&&void 0!==n?n.exports=o():void 0===(r="function"==typeof(u=o)?u.call(l,e,l,n):u)||(n.exports=r)}).call(this,e(15))},function(n,l,e){function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var u=e(46),r=e(47),o=e(62),i=e(8);n.exports=function(n,l,e,t){return s({showHidden:l,seen:[],stylize:function(n){return n}},n,void 0===e?2:e)};var a=function(n){return"object"===("undefined"==typeof HTMLElement?"undefined":t(HTMLElement))?n instanceof HTMLElement:n&&"object"===t(n)&&"nodeType"in n&&1===n.nodeType&&"string"==typeof n.nodeName};function s(n,e,m){if(e&&"function"==typeof e.inspect&&e.inspect!==l.inspect&&(!e.constructor||e.constructor.prototype!==e)){var y=e.inspect(m,n);return"string"!=typeof y&&(y=s(n,y,m)),y}var b=function(n,l){switch(t(l)){case"undefined":return n.stylize("undefined","undefined");case"string":var e="'"+JSON.stringify(l).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(e,"string");case"number":return 0===l&&1/l==-1/0?n.stylize("-0","number"):n.stylize(""+l,"number");case"boolean":return n.stylize(""+l,"boolean");case"symbol":return n.stylize(l.toString(),"symbol")}if(null===l)return n.stylize("null","null")}(n,e);if(b)return b;if(a(e)){if("outerHTML"in e)return e.outerHTML;try{if(document.xmlVersion)return(new XMLSerializer).serializeToString(e);var v=document.createElementNS("http://www.w3.org/1999/xhtml","_");v.appendChild(e.cloneNode(!1));var w=v.innerHTML.replace("><",">"+e.innerHTML+"<");return v.innerHTML="",w}catch(n){}}var A,E,x=o(e),C=n.showHidden?r(e):x;if(0===C.length||h(e)&&(1===C.length&&"stack"===C[0]||2===C.length&&"description"===C[0]&&"stack"===C[1])){if("function"==typeof e)return E=(A=u(e))?": "+A:"",n.stylize("[Function"+E+"]","special");if(p(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if(d(e))return n.stylize(Date.prototype.toUTCString.call(e),"date");if(h(e))return c(e)}var _,S,T="",k=!1,F=!1,D=["{","}"];if("object"===t(_=e)&&/\w+Array]$/.test(g(_))&&(F=!0,D=["[","]"]),function(n){return Array.isArray(n)||"object"===t(n)&&"[object Array]"===g(n)}(e)&&(k=!0,D=["[","]"]),"function"==typeof e&&(T=" [Function"+(E=(A=u(e))?": "+A:"")+"]"),p(e)&&(T=" "+RegExp.prototype.toString.call(e)),d(e)&&(T=" "+Date.prototype.toUTCString.call(e)),h(e))return c(e);if(0===C.length&&(!k||0==e.length))return D[0]+T+D[1];if(m<0)return p(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special");if(n.seen.push(e),k)S=function(n,l,e,t,u){for(var r=[],o=0,i=l.length;o=i.truncateThreshold-7){l+="...";break}l+=n[e]+", "}-1!==(l+=" ]").indexOf(", ]")&&(l=l.replace(", ]"," ]"));return l}(e);S=C.map(function(l){return f(n,e,m,x,l,k)})}return n.seen.pop(),function(n,l,e){if(n.reduce(function(n,l){return n+l.length+1},0)>60)return e[0]+(""===l?"":l+"\n ")+" "+n.join(",\n ")+" "+e[1];return e[0]+l+" "+n.join(", ")+" "+e[1]}(S,T,D)}function c(n){return"["+Error.prototype.toString.call(n)+"]"}function f(n,l,e,t,u,r){var o,i,a=Object.getOwnPropertyDescriptor(l,u);if(a&&(a.get?i=a.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):a.set&&(i=n.stylize("[Setter]","special"))),t.indexOf(u)<0&&(o="["+u+"]"),i||(n.seen.indexOf(l[u])<0?(i=s(n,l[u],null===e?null:e-1)).indexOf("\n")>-1&&(i=r?i.split("\n").map(function(n){return" "+n}).join("\n").substr(2):"\n"+i.split("\n").map(function(n){return" "+n}).join("\n")):i=n.stylize("[Circular]","special")),void 0===o){if(r&&u.match(/^\d+$/))return i;(o=JSON.stringify(""+u)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=n.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=n.stylize(o,"string"))}return o+": "+i}function p(n){return"object"===t(n)&&"[object RegExp]"===g(n)}function d(n){return"object"===t(n)&&"[object Date]"===g(n)}function h(n){return"object"===t(n)&&"[object Error]"===g(n)}function g(n){return Object.prototype.toString.call(n)}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(global,setImmediate,clearImmediate){function _typeof2(n){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}__webpack_require__.d(__webpack_exports__,"serverPrototype",function(){return _serverPrototype}),__webpack_require__.d(__webpack_exports__,"getFakes",function(){return _getFakes}),__webpack_require__.d(__webpack_exports__,"getRestorers",function(){return _getRestorers}),__webpack_require__.d(__webpack_exports__,"createStubInstance",function(){return _createStubInstance}),__webpack_require__.d(__webpack_exports__,"inject",function(){return _inject}),__webpack_require__.d(__webpack_exports__,"mock",function(){return _mock}),__webpack_require__.d(__webpack_exports__,"reset",function(){return _reset}),__webpack_require__.d(__webpack_exports__,"resetBehavior",function(){return _resetBehavior}),__webpack_require__.d(__webpack_exports__,"resetHistory",function(){return _resetHistory}),__webpack_require__.d(__webpack_exports__,"restore",function(){return _restore}),__webpack_require__.d(__webpack_exports__,"restoreContext",function(){return _restoreContext}),__webpack_require__.d(__webpack_exports__,"replace",function(){return _replace}),__webpack_require__.d(__webpack_exports__,"replaceGetter",function(){return _replaceGetter}),__webpack_require__.d(__webpack_exports__,"replaceSetter",function(){return _replaceSetter}),__webpack_require__.d(__webpack_exports__,"spy",function(){return _spy}),__webpack_require__.d(__webpack_exports__,"stub",function(){return _stub}),__webpack_require__.d(__webpack_exports__,"fake",function(){return _fake}),__webpack_require__.d(__webpack_exports__,"useFakeTimers",function(){return _useFakeTimers}),__webpack_require__.d(__webpack_exports__,"verify",function(){return _verify}),__webpack_require__.d(__webpack_exports__,"verifyAndRestore",function(){return _verifyAndRestore}),__webpack_require__.d(__webpack_exports__,"useFakeServer",function(){return _useFakeServer}),__webpack_require__.d(__webpack_exports__,"useFakeXMLHttpRequest",function(){return _useFakeXMLHttpRequest}),__webpack_require__.d(__webpack_exports__,"usingPromise",function(){return _usingPromise}),__webpack_require__.d(__webpack_exports__,"sandbox",function(){return _sandbox}),__webpack_require__.d(__webpack_exports__,"createSandbox",function(){return _createSandbox}),__webpack_require__.d(__webpack_exports__,"assert",function(){return _assert}),__webpack_require__.d(__webpack_exports__,"match",function(){return _match}),__webpack_require__.d(__webpack_exports__,"spyCall",function(){return _spyCall}),__webpack_require__.d(__webpack_exports__,"expectation",function(){return _expectation}),__webpack_require__.d(__webpack_exports__,"defaultConfig",function(){return _defaultConfig}),__webpack_require__.d(__webpack_exports__,"setFormatter",function(){return _setFormatter}),__webpack_require__.d(__webpack_exports__,"timers",function(){return _timers}),__webpack_require__.d(__webpack_exports__,"xhr",function(){return _xhr}),__webpack_require__.d(__webpack_exports__,"FakeXMLHttpRequest",function(){return _FakeXMLHttpRequest}),__webpack_require__.d(__webpack_exports__,"fakeServer",function(){return _fakeServer}),__webpack_require__.d(__webpack_exports__,"fakeServerWithClock",function(){return _fakeServerWithClock}),__webpack_require__.d(__webpack_exports__,"createFakeServer",function(){return _createFakeServer}),__webpack_require__.d(__webpack_exports__,"createFakeServerWithClock",function(){return _createFakeServerWithClock}),__webpack_require__.d(__webpack_exports__,"addBehavior",function(){return _addBehavior});var call=Function.call,copyPrototype=function(n){return Object.getOwnPropertyNames(n).reduce(function(l,e){return"size"!==e&&"caller"!==e&&"callee"!==e&&"arguments"!==e&&"function"==typeof n[e]&&(l[e]=call.bind(n[e])),l},Object.create(null))},array=copyPrototype(Array.prototype),every=array.every;function hasCallsLeft(n,l){return void 0===n[l.id]&&(n[l.id]=0),n[l.id]1?arguments:n;return every(l,checkAdjacentCalls.bind(null,{}))},functionName=function(n){return n.displayName||n.name||(String(n).match(/function ([^\s(]+)/)||[])[1]},className=function(n){return n.constructor&&n.constructor.name||"function"==typeof n.constructor&&functionName(n.constructor)||null},every$1=function(n,l){var e=!0;try{n.forEach(function(){if(!l.apply(this,arguments))throw new Error})}catch(n){e=!1}return e},sort=array.sort,slice=array.slice;function comparator(n,l){var e=n.getCall(0),t=l.getCall(0);return(e&&e.callId||-1)<(t&&t.callId||-1)?-1:1}var orderByFirstCall=function(n){return sort(slice(n),comparator)},_function=copyPrototype(Function.prototype),object=copyPrototype(Object.prototype),string=copyPrototype(String.prototype),prototypes={array:array,function:_function,object:object,string:string},commonjsGlobal="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function unwrapExports(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function createCommonjsModule(n,l){return n(l={exports:{}},l.exports),l.exports}var typeDetect=createCommonjsModule(function(n,l){var e,t,u,r,o,i,a,s,c,f,p,d,h,g,m,y,b,v,w,A;n.exports=(e="function"==typeof Promise,t="object"===("undefined"==typeof self?"undefined":_typeof2(self))?self:commonjsGlobal,u="undefined"!=typeof Symbol,r="undefined"!=typeof Map,o="undefined"!=typeof Set,i="undefined"!=typeof WeakMap,a="undefined"!=typeof WeakSet,s="undefined"!=typeof DataView,c=u&&void 0!==Symbol.iterator,f=u&&void 0!==Symbol.toStringTag,p=o&&"function"==typeof Set.prototype.entries,d=r&&"function"==typeof Map.prototype.entries,h=p&&Object.getPrototypeOf((new Set).entries()),g=d&&Object.getPrototypeOf((new Map).entries()),m=c&&"function"==typeof Array.prototype[Symbol.iterator],y=m&&Object.getPrototypeOf([][Symbol.iterator]()),b=c&&"function"==typeof String.prototype[Symbol.iterator],v=b&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,A=-1,function(n){var l=_typeof2(n);if("object"!==l)return l;if(null===n)return"null";if(n===t)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"===("undefined"==typeof window?"undefined":_typeof2(window))&&null!==window){if("object"===_typeof2(window.location)&&n===window.location)return"Location";if("object"===_typeof2(window.document)&&n===window.document)return"Document";if("object"===_typeof2(window.navigator)){if("object"===_typeof2(window.navigator.mimeTypes)&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"===_typeof2(window.navigator.plugins)&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"===_typeof2(window.HTMLElement))&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var c=Object.getPrototypeOf(n);return c===RegExp.prototype?"RegExp":c===Date.prototype?"Date":e&&c===Promise.prototype?"Promise":o&&c===Set.prototype?"Set":r&&c===Map.prototype?"Map":a&&c===WeakSet.prototype?"WeakSet":i&&c===WeakMap.prototype?"WeakMap":s&&c===DataView.prototype?"DataView":r&&c===g?"Map Iterator":o&&c===h?"Set Iterator":m&&c===y?"Array Iterator":b&&c===v?"String Iterator":null===c?"Object":Object.prototype.toString.call(n).slice(w,A)})}),typeOf=function(n){return typeDetect(n).toLowerCase()};function valueToString(n){return n&&n.toString?n.toString():String(n)}var valueToString_1=valueToString,lib={calledInOrder:calledInOrder,className:className,every:every$1,functionName:functionName,orderByFirstCall:orderByFirstCall,prototypes:prototypes,typeOf:typeOf,valueToString:valueToString_1},arrayProto=lib.prototypes.array,hasOwnProperty=lib.prototypes.object.hasOwnProperty,join=arrayProto.join,push=arrayProto.push,slice$1=arrayProto.slice,hasDontEnumBug=function(){var n={constructor:function(){return"0"},toString:function(){return"1"},valueOf:function(){return"2"},toLocaleString:function(){return"3"},prototype:function(){return"4"},isPrototypeOf:function(){return"5"},propertyIsEnumerable:function(){return"6"},hasOwnProperty:function(){return"7"},length:function(){return"8"},unique:function(){return"9"}},l=[];for(var e in n)hasOwnProperty(n,e)&&push(l,n[e]());return"0123456789"!==join(l,"")}();function extendCommon(n,l,e){var t,u,r;for(u=0;u=0)return l[t];t===useLeftMostCallback&&(e=l),t===useRightMostCallback&&(e=reverse(slice$2(l)));for(var u=n.callArgProp,r=0,o=e.length;r0&&(t+=" Received ["+join$1(e,", ")+"]"),t):"argument at index "+n.callArgAt+" is not a function: "+l}function ensureArgs(n,l,e){var t=l[n.replace(/sArg/,"ArgAt")];if(t>=e.length)throw new TypeError(n+" failed: "+(t+1)+" arguments required but only "+e.length+" present")}function callCallback(n,l){if("number"==typeof n.callArgAt){ensureArgs("callsArg",n,l);var e=getCallback(n,l);if("function"!=typeof e)throw new TypeError(getCallbackError(n,e,l));if(!n.callbackAsync)return e.apply(n.callbackContext,n.callbackArguments);nextTick$1(function(){e.apply(n.callbackContext,n.callbackArguments)})}}var proto={create:function(n){var l=extend({},proto);return delete l.create,delete l.addBehavior,delete l.createBehavior,l.stub=n,n.defaultBehavior&&n.defaultBehavior.promiseLibrary&&(l.promiseLibrary=n.defaultBehavior.promiseLibrary),l},isPresent:function(){return"number"==typeof this.callArgAt||this.exception||this.exceptionCreator||"number"==typeof this.returnArgAt||this.returnThis||"number"==typeof this.resolveArgAt||this.resolveThis||"number"==typeof this.throwArgAt||this.fakeFn||this.returnValueDefined},invoke:function(n,l){var e=callCallback(this,l);if(this.exception)throw this.exception;if(this.exceptionCreator)throw this.exception=this.exceptionCreator(),this.exceptionCreator=void 0,this.exception;if("number"==typeof this.returnArgAt)return ensureArgs("returnsArg",this,l),l[this.returnArgAt];if(this.returnThis)return n;if("number"==typeof this.throwArgAt)throw ensureArgs("throwsArg",this,l),l[this.throwArgAt];return this.fakeFn?this.fakeFn.apply(n,l):"number"==typeof this.resolveArgAt?(ensureArgs("resolvesArg",this,l),(this.promiseLibrary||Promise).resolve(l[this.resolveArgAt])):this.resolveThis?(this.promiseLibrary||Promise).resolve(n):this.resolve?(this.promiseLibrary||Promise).resolve(this.returnValue):this.reject?(this.promiseLibrary||Promise).reject(this.returnValue):this.callsThrough?this.stub.wrappedMethod.apply(n,l):void 0!==this.returnValue?this.returnValue:"number"==typeof this.callArgAt?e:this.returnValue},onCall:function(n){return this.stub.onCall(n)},onFirstCall:function(){return this.stub.onFirstCall()},onSecondCall:function(){return this.stub.onSecondCall()},onThirdCall:function(){return this.stub.onThirdCall()},withArgs:function(){throw new Error('Defining a stub by invoking "stub.onCall(...).withArgs(...)" is not supported. Use "stub.withArgs(...).onCall(...)" to define sequential behavior for calls with certain arguments.')}};function createBehavior(n){return function(){return this.defaultBehavior=this.defaultBehavior||proto.create(this),this.defaultBehavior[n].apply(this.defaultBehavior,arguments),this}}function addBehavior(n,l,e){proto[l]=function(){return e.apply(this,concat([this],slice$2(arguments))),this.stub||this},n[l]=createBehavior(l)}proto.addBehavior=addBehavior,proto.createBehavior=createBehavior;var asyncBehaviors=exportAsyncBehaviors(proto),behavior=extend({},proto,asyncBehaviors),forEach=lib.prototypes.array.forEach;function walkInternal(n,l,e,t,u){var r,o;if("function"==typeof Object.getOwnPropertyNames)forEach(Object.getOwnPropertyNames(n),function(r){if(!0!==u[r]){u[r]=!0;var o="function"==typeof Object.getOwnPropertyDescriptor(n,r).get?t:n;l.call(e,r,o)}}),(r=Object.getPrototypeOf(n))&&walkInternal(r,l,e,t,u);else for(o in n)l.call(e,n[o],o,n)}var walk=function(n,l,e){return walkInternal(n,l,e,n,{})},getPropertyDescriptor=function(n,l){for(var e,t=n;t&&!(e=Object.getOwnPropertyDescriptor(t,l));)t=Object.getPrototypeOf(t);return e},hasOwnProperty$1=lib.prototypes.object.hasOwnProperty,push$1=lib.prototypes.array.push;function collectMethod(n,l,e,t){"function"==typeof getPropertyDescriptor(t,e).value&&hasOwnProperty$1(l,e)&&push$1(n,l[e])}function collectOwnMethods(n){var l=[];return walk(n,collectMethod.bind(null,l,n)),l}var collectOwnMethods_1=collectOwnMethods,isEsModule=function(n){return n&&"undefined"!=typeof Symbol&&"Module"===n[Symbol.toStringTag]&&Object.isSealed(n)};function isPropertyConfigurable(n,l){var e=getPropertyDescriptor(n,l);return!e||e.configurable}var isPropertyConfigurable_1=isPropertyConfigurable;function isNonExistentOwnProperty(n,l){return n&&void 0!==l&&!(l in n)}var isNonExistentOwnProperty_1=isNonExistentOwnProperty;function isNaN$1(n){return"number"==typeof n&&n!==n}var isNan=isNaN$1;function isNegZero(n){return 0===n&&1/n==-1/0}var isNegZero_1=isNegZero;function identical(n,l){return!!(n===l||isNan(n)&&isNan(l))&&(0!==n||isNegZero_1(n)===isNegZero_1(l))}var identical_1=identical,o=Object.prototype;function getClass(n){return o.toString.call(n).split(/[ \]]/)[1]}var getClass_1=getClass;function isArguments(n){if("Arguments"===getClass_1(n))return!0;if("object"!==_typeof2(n)||"number"!=typeof n.length||"Array"===getClass_1(n))return!1;if("function"==typeof n.callee)return!0;try{n[n.length]=6,delete n[n.length]}catch(n){return!0}return!1}var isArguments_1=isArguments,div="undefined"!=typeof document&&document.createElement("div");function isElement(n){if(!n||1!==n.nodeType||!div)return!1;try{n.appendChild(div),n.removeChild(div)}catch(n){return!1}return!0}var isElement_1=isElement;function isDate(n){return n instanceof Date}var isDate_1=isDate;function isObject(n){return!("object"!==_typeof2(n)||null===n||n instanceof Boolean||n instanceof Date||n instanceof Error||n instanceof Number||n instanceof RegExp||n instanceof String)}var isObject_1=isObject;function isSet(n){return"undefined"!=typeof Set&&n instanceof Set||!1}var isSet_1=isSet;function isSubset(n,l,e){var t=!0;return n.forEach(function(n){var u=!1;l.forEach(function(l){e(l,n)&&(u=!0)}),t=t&&u}),t}var isSubset_1=isSubset,re=/function (\w+)\s*\(/;function getClassName(n){if(n.constructor&&"name"in n.constructor)return n.constructor.name;if("function"==typeof n.constructor){var l=n.constructor.toString().match(re);if(l.length>1)return l[1]}return null}var getClassName_1=getClassName,every$2=Array.prototype.every,getTime=Date.prototype.getTime,hasOwnProperty$2=Object.prototype.hasOwnProperty,indexOf=Array.prototype.indexOf,keys=Object.keys;function deepEqualCyclic(n,l,e){var t=[],u=[],r=[],o=[],i={};return function n(l,a,s,c){if(e&&e.isMatcher(a))return e.isMatcher(l)?l===a:a.test(l);var f=_typeof2(l),p=_typeof2(a);if(l===a||isNan(l)||isNan(a)||null==l||null==a||"object"!==f||"object"!==p)return identical_1(l,a);if(isElement_1(l)||isElement_1(a))return!1;var d=isDate_1(l),h=isDate_1(a);if((d||h)&&(!d||!h||getTime.call(l)!==getTime.call(a)))return!1;if(l instanceof RegExp&&a instanceof RegExp&&l.toString()!==a.toString())return!1;if(l instanceof Error&&a instanceof Error)return l===a;var g=getClass_1(l),m=getClass_1(a),y=keys(l),b=keys(a),v=getClassName_1(l),w=getClassName_1(a);if(isArguments_1(l)||isArguments_1(a)){if(l.length!==a.length)return!1}else if(f!==p||g!==m||y.length!==b.length||v&&w&&v!==w)return!1;return isSet_1(l)||isSet_1(a)?!(!isSet_1(l)||!isSet_1(a)||l.size!==a.size)&&isSubset_1(l,a,n):every$2.call(y,function(e){if(!hasOwnProperty$2.call(a,e))return!1;var f=l[e],p=a[e],d=isObject_1(f),h=isObject_1(p),g=d?indexOf.call(t,f):-1,m=h?indexOf.call(u,p):-1,y=-1!==g?r[g]:s+"["+JSON.stringify(e)+"]",b=-1!==m?o[m]:c+"["+JSON.stringify(e)+"]",v=y+b;return!!i[v]||(-1===g&&d&&(t.push(f),r.push(y)),-1===m&&h&&(u.push(p),o.push(b)),d&&h&&(i[v]=!0),n(f,p,y,b))})}(n,l,"$1","$2")}deepEqualCyclic.use=function(n){return function(l,e){return deepEqualCyclic(l,e,n)}};var deepEqual=deepEqualCyclic,FUNC_ERROR_TEXT="Expected a function",HASH_UNDEFINED="__lodash_hash_undefined__",INFINITY=1/0,funcTag="[object Function]",genTag="[object GeneratorFunction]",symbolTag="[object Symbol]",reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reEscapeChar=/\\(\\)?/g,reIsHostCtor=/^\[object .+?Constructor\]$/,freeGlobal="object"==_typeof2(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof2(self))&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")();function getValue(n,l){return null==n?void 0:n[l]}function isHostObject(n){var l=!1;if(null!=n&&"function"!=typeof n.toString)try{l=!!(n+"")}catch(n){}return l}var arrayProto$3=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype,coreJsData=root$1["__core-js_shared__"],maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid,funcToString=funcProto.toString,hasOwnProperty$3=objectProto.hasOwnProperty,objectToString=objectProto.toString,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$3).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Symbol$1=root$1.Symbol,splice=arrayProto$3.splice,Map$1=getNative(root$1,"Map"),nativeCreate=getNative(Object,"create"),symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function Hash(n){var l=-1,e=n?n.length:0;for(this.clear();++l-1}function listCacheSet(n,l){var e=this.__data__,t=assocIndexOf(e,n);return t<0?e.push([n,l]):e[t][1]=l,this}function MapCache(n){var l=-1,e=n?n.length:0;for(this.clear();++l=u)return!1;if(!e(n[t+r],l[r]))return!1}return!0}return!1}function match$1(n,l){if(l&&"function"==typeof l.test)return l.test(n);if("function"==typeof l)return!0===l(n);if("string"==typeof l)return l=l.toLowerCase(),("string"==typeof n||!!n)&&String(n).toLowerCase().indexOf(l)>=0;if("number"==typeof l)return l===n;if("boolean"==typeof l)return l===n;if(void 0===l)return void 0===n;if(null===l)return null===n;if(null===n)return!1;if(isSet_1(n))return isSubset_1(l,n,match$1);if("Array"===getClass_1(n)&&"Array"===getClass_1(l))return arrayContains(n,l,match$1);if(isDate_1(l))return isDate_1(n)&&n.getTime()===l.getTime();if(l&&"object"===_typeof2(l)){if(l===n)return!0;if("object"!==_typeof2(n))return!1;var e;for(e in l){var t=n[e];if(void 0===t&&"function"==typeof n.getAttribute&&(t=n.getAttribute(e)),null===l[e]||void 0===l[e]){if(t!==l[e])return!1}else if(void 0===t||!deepEqual$2(t,l[e]))return!1}return!0}throw new Error("Matcher was not a string, a number, a function, a boolean or an object")}Object.keys(matcher_1).forEach(function(n){match$1[n]=matcher_1[n]});var match_1=match$1,deepEqualCyclic$1=deepEqual.use(match_1),samsam={createMatcher:matcher_1,deepEqual:deepEqualCyclic$1,isArguments:isArguments_1,isElement:isElement_1,isNegZero:isNegZero_1,identical:identical_1,match:match_1},array$1=[null,"once","twice","thrice"],timesInWords=function(n){return array$1[n]||(n||0)+" times"},formatio={excludeConstructors:["Object",/^.$/],quoteStrings:!0,limitChildrenCount:0},specialObjects=[];function functionName$3(n){if(!n)return"";if(n.displayName)return n.displayName;if(n.name)return n.name;var l=n.toString().match(/function\s+([^\(]+)/m);return l&&l[1]||""}function _constructorName(n,l){var e,t,u=functionName$3(l&&l.constructor),r=n.excludeConstructors||formatio.excludeConstructors||[];for(e=0,t=r.length;e0?Math.min(this.limitChildrenCount,n.length):n.length,t=0;t0?Math.min(this.limitChildrenCount,c.length):c.length,o=0;o80?d+"{\n "+h+s.join(",\n "+h)+"\n"+h+"}":d+"{ "+s.join(", ")+" }"},_ascii.element=function(n){var l,e,t,u,r,o=n.tagName.toLowerCase(),i=n.attributes,a=[];for(t=0,u=i.length;t0?" ":""),c=n.innerHTML||"";return c.length>20&&(c=c.substr(0,20)+"[...]"),(s+a.join(" ")+">"+c+"").replace(/ contentEditable="inherit"/,"")},Formatio.prototype={functionName:functionName$3,configure:function(n){return new Formatio(n)},constructorName:function(n){return _constructorName(this,n)},ascii:function(n,l,e){return _ascii(this,n,l,e)}};var formatio_1=Formatio.prototype,formatter=formatio_1.configure({quoteStrings:!1,limitChildrenCount:250}),customFormatter;function format(){return customFormatter?customFormatter.apply(null,arguments):formatter.ascii.apply(formatter,arguments)}format.setFormatter=function(n){if("function"!=typeof n)throw new Error("format.setFormatter must be called with a function");customFormatter=n};var format_1=format,arrayProto$5=lib.prototypes.array,calledInOrder$1=lib.calledInOrder,createMatcher=samsam.createMatcher,orderByFirstCall$1=lib.orderByFirstCall,stringSlice=lib.prototypes.string.slice,arraySlice=arrayProto$5.slice,concat$1=arrayProto$5.concat,forEach$1=arrayProto$5.forEach,join$3=arrayProto$5.join,splice$1=arrayProto$5.splice,assert;function verifyIsStub(){var n=arraySlice(arguments);forEach$1(n,function(n){n||assert.fail("fake is not a spy"),n.proxy&&n.proxy.isSinonProxy?verifyIsStub(n.proxy):("function"!=typeof n&&assert.fail(n+" is not a function"),"function"!=typeof n.getCall&&assert.fail(n+" is not stubbed"))})}function verifyIsValidAssertion(n,l){switch(n){case"notCalled":case"called":case"calledOnce":case"calledTwice":case"calledThrice":0!==l.length&&assert.fail(n+" takes 1 argument but was called with "+(l.length+1)+" arguments")}}function failAssertion(n,l){var e=n||commonjsGlobal;(e.fail||assert.fail).call(e,l)}function mirrorPropAsAssertion(n,l,e){var t=e,u=l;2===arguments.length&&(t=l,u=n),assert[n]=function(l){verifyIsStub(l);var e=arraySlice(arguments,1);verifyIsValidAssertion(n,e),("function"==typeof u?!u(l):"function"==typeof l[u]?!l[u].apply(l,e):!l[u])?failAssertion(this,(l.printf||l.proxy.printf).apply(l,concat$1([t],e))):assert.pass(n)}}function exposedName(n,l){return!n||/^fail/.test(l)?l:n+stringSlice(l,0,1).toUpperCase()+stringSlice(l,1)}assert={failException:"AssertError",fail:function(n){var l=new Error(n);throw l.name=this.failException||assert.failException,l},pass:function(){},callOrder:function(){verifyIsStub.apply(null,arguments);var n="",l="";if(calledInOrder$1(arguments))assert.pass("callOrder");else{try{n=join$3(arguments,", ");for(var e=arraySlice(arguments),t=e.length;t;)e[--t].called||splice$1(e,t,1);l=join$3(orderByFirstCall$1(e),", ")}catch(n){}failAssertion(this,"expected "+n+" to be called in order but were called as "+l)}},callCount:function(n,l){if(verifyIsStub(n),n.callCount!==l){var e="expected %n to be called "+timesInWords(l)+" but was called %c%C";failAssertion(this,n.printf(e))}else assert.pass("callCount")},expose:function(n,l){if(!n)throw new TypeError("target is null or undefined");var e=l||{},t=void 0===e.prefix?"assert":e.prefix,u=void 0===e.includeFail||Boolean(e.includeFail),r=this;return forEach$1(Object.keys(r),function(l){"expose"===l||!u&&/^(fail)/.test(l)||(n[exposedName(t,l)]=r[l])}),n},match:function(n,l){if(createMatcher(l).test(n))assert.pass("match");else{var e=["expected value to match"," expected = "+format_1(l)," actual = "+format_1(n)];failAssertion(this,join$3(e,"\n"))}}},mirrorPropAsAssertion("called","expected %n to have been called at least once but was never called"),mirrorPropAsAssertion("notCalled",function(n){return!n.called},"expected %n to not have been called but was called %c%C"),mirrorPropAsAssertion("calledOnce","expected %n to be called once but was called %c%C"),mirrorPropAsAssertion("calledTwice","expected %n to be called twice but was called %c%C"),mirrorPropAsAssertion("calledThrice","expected %n to be called thrice but was called %c%C"),mirrorPropAsAssertion("calledOn","expected %n to be called with %1 as this but was called with %t"),mirrorPropAsAssertion("alwaysCalledOn","expected %n to always be called with %1 as this but was called with %t"),mirrorPropAsAssertion("calledWithNew","expected %n to be called with new"),mirrorPropAsAssertion("alwaysCalledWithNew","expected %n to always be called with new"),mirrorPropAsAssertion("calledWith","expected %n to be called with arguments %D"),mirrorPropAsAssertion("calledWithMatch","expected %n to be called with match %D"),mirrorPropAsAssertion("alwaysCalledWith","expected %n to always be called with arguments %D"),mirrorPropAsAssertion("alwaysCalledWithMatch","expected %n to always be called with match %D"),mirrorPropAsAssertion("calledWithExactly","expected %n to be called with exact arguments %D"),mirrorPropAsAssertion("alwaysCalledWithExactly","expected %n to always be called with exact arguments %D"),mirrorPropAsAssertion("neverCalledWith","expected %n to never be called with arguments %*%C"),mirrorPropAsAssertion("neverCalledWithMatch","expected %n to never be called with match %*%C"),mirrorPropAsAssertion("threw","%n did not throw exception%C"),mirrorPropAsAssertion("alwaysThrew","%n did not always throw exception%C");var assert_1=assert,lolex=createCommonjsModule(function(module,exports){var f;f=function(){return function(){return function n(l,e,t){function u(o,i){if(!e[o]){if(!l[o]){var a="function"==typeof commonjsRequire&&commonjsRequire;if(!i&&a)return a(o,!0);if(r)return r(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var c=e[o]={exports:{}};l[o][0].call(c.exports,function(n){return u(l[o][1][n]||n)},c,c.exports,n,l,e,t)}return e[o].exports}for(var r="function"==typeof commonjsRequire&&commonjsRequire,o=0;o-1,maxTimeout=Math.pow(2,31)-1;isRunningInIE&&(_global.setTimeout=_global.setTimeout,_global.clearTimeout=_global.clearTimeout,_global.setInterval=_global.setInterval,_global.clearInterval=_global.clearInterval,_global.Date=_global.Date),void 0!==_global.setImmediate&&(_global.setImmediate=_global.setImmediate,_global.clearImmediate=_global.clearImmediate);var NOOP=function(){},timeoutResult=_global.setTimeout(NOOP,0),addTimerReturnsObject="object"===_typeof2(timeoutResult),hrtimePresent=_global.process&&"function"==typeof _global.process.hrtime,nextTickPresent=_global.process&&"function"==typeof _global.process.nextTick,performancePresent=_global.performance&&"function"==typeof _global.performance.now,hasPerformancePrototype=_global.Performance&&_typeof2(_global.Performance).match(/^(function|object)$/),requestAnimationFramePresent=_global.requestAnimationFrame&&"function"==typeof _global.requestAnimationFrame,cancelAnimationFramePresent=_global.cancelAnimationFrame&&"function"==typeof _global.cancelAnimationFrame;_global.clearTimeout(timeoutResult);var NativeDate=_global.Date,uniqueTimerId=1;function isNumberFinite(n){return Number.isFinite?Number.isFinite(n):"number"==typeof n&&isFinite(n)}function parseTime(n){if(!n)return 0;var l,e=n.split(":"),t=e.length,u=t,r=0;if(t>3||!/^(\d\d:){0,2}\d\d?$/.test(n))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;u--;){if((l=parseInt(e[u],10))>=60)throw new Error("Invalid time "+n);r+=l*Math.pow(60,t-u-1)}return 1e3*r}function nanoRemainder(n){var l=1e6*n%1e6,e=l<0?l+1e6:l;return Math.floor(e)}function getEpoch(n){if(!n)return 0;if("function"==typeof n.getTime)return n.getTime();if("number"==typeof n)return n;throw new TypeError("now should be milliseconds since UNIX epoch")}function inRange(n,l,e){return e&&e.callAt>=n&&e.callAt<=l}function mirrorDateProperties(n,l){var e;for(e in l)l.hasOwnProperty(e)&&(n[e]=l[e]);return l.now?n.now=function(){return n.clock.now}:delete n.now,l.toSource?n.toSource=function(){return l.toSource()}:delete n.toSource,n.toString=function(){return l.toString()},n.prototype=l.prototype,n.parse=l.parse,n.UTC=l.UTC,n.prototype.toUTCString=l.prototype.toUTCString,n}function createDate(){return mirrorDateProperties(function n(l,e,t,u,r,o,i){switch(arguments.length){case 0:return new NativeDate(n.clock.now);case 1:return new NativeDate(l);case 2:return new NativeDate(l,e);case 3:return new NativeDate(l,e,t);case 4:return new NativeDate(l,e,t,u);case 5:return new NativeDate(l,e,t,u,r);case 6:return new NativeDate(l,e,t,u,r,o);default:return new NativeDate(l,e,t,u,r,o,i)}},NativeDate)}function enqueueJob(n,l){n.jobs||(n.jobs=[]),n.jobs.push(l)}function runJobs(n){if(n.jobs){for(var l=0;ln.loopLimit)throw new Error("Aborting after running "+n.loopLimit+" timers, assuming an infinite loop!")}n.jobs=[]}}function addTimer(n,l){if(void 0===l.func)throw new Error("Callback must be provided to timer calls");if(l.type=l.immediate?"Immediate":"Timeout",l.hasOwnProperty("delay")&&(isNumberFinite(l.delay)||(l.delay=0),l.delay=l.delay>maxTimeout?1:l.delay,l.delay=Math.max(0,l.delay)),l.hasOwnProperty("interval")&&(l.type="Interval",l.interval=l.interval>maxTimeout?1:l.interval),l.hasOwnProperty("animation")&&(l.type="AnimationFrame",l.animation=!0),n.timers||(n.timers={}),l.id=uniqueTimerId++,l.createdAt=n.now,l.callAt=n.now+(parseInt(l.delay)||(n.duringTick?1:0)),n.timers[l.id]=l,addTimerReturnsObject){var e={id:l.id,ref:function(){return e},unref:function(){return e},refresh:function(){return e}};return e}return l.id}function compareTimers(n,l){return n.callAtl.callAt?1:n.immediate&&!l.immediate?-1:!n.immediate&&l.immediate?1:n.createdAtl.createdAt?1:n.idl.id?1:void 0}function firstTimerInRange(n,l,e){var t,u=n.timers,r=null;for(t in u)u.hasOwnProperty(t)&&(!inRange(l,e,u[t])||r&&1!==compareTimers(r,u[t])||(r=u[t]));return r}function firstTimer(n){var l,e=n.timers,t=null;for(l in e)e.hasOwnProperty(l)&&(t&&1!==compareTimers(t,e[l])||(t=e[l]));return t}function lastTimer(n){var l,e=n.timers,t=null;for(l in e)e.hasOwnProperty(l)&&(t&&-1!==compareTimers(t,e[l])||(t=e[l]));return t}function callTimer(clock,timer){"number"==typeof timer.interval?clock.timers[timer.id].callAt+=timer.interval:delete clock.timers[timer.id],"function"==typeof timer.func?timer.func.apply(null,timer.args):eval(timer.func)}function clearTimer(n,l,e){if(l&&(n.timers||(n.timers={}),"object"===_typeof2(l)&&(l=l.id),n.timers.hasOwnProperty(l))){var t=n.timers[l];if(t.type!==e){var u="AnimationFrame"===e?"cancelAnimationFrame":"clear"+e,r="AnimationFrame"===t.type?"requestAnimationFrame":"set"+t.type;throw new Error("Cannot clear timer: timer created with "+r+"() but cleared with "+u+"()")}delete n.timers[l]}}function uninstall(n,l,e){var t,u,r;for(u=0,r=n.methods.length;u1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");var a=l[0],s=i-l[1],c=o-a;return s<0&&(s+=1e9,c-=1),[c,s]}return[o,i]}if(u.Date.clock=u,u.setTimeout=function(n,l){return addTimer(u,{func:n,args:Array.prototype.slice.call(arguments,2),delay:l})},u.clearTimeout=function(n){return clearTimer(u,n,"Timeout")},u.nextTick=function(n){return enqueueJob(u,{func:n,args:Array.prototype.slice.call(arguments,1)})},u.setInterval=function(n,l){return l=parseInt(l,10),addTimer(u,{func:n,args:Array.prototype.slice.call(arguments,2),delay:l,interval:l})},u.clearInterval=function(n){return clearTimer(u,n,"Interval")},u.setImmediate=function(n){return addTimer(u,{func:n,args:Array.prototype.slice.call(arguments,1),immediate:!0})},u.clearImmediate=function(n){return clearTimer(u,n,"Immediate")},u.countTimers=function(){return Object.keys(u.timers||{}).length},u.requestAnimationFrame=function(n){var l=addTimer(u,{func:n,delay:r(),args:[u.now+r()],animation:!0});return l.id||l},u.cancelAnimationFrame=function(n){return clearTimer(u,n,"AnimationFrame")},u.runMicrotasks=function(){runJobs(u)},u.tick=function(n){var l="number"==typeof n?n:parseTime(n),t=Math.floor(l),r=nanoRemainder(l),o=e+r,i=u.now+t;if(l<0)throw new TypeError("Negative ticks are not supported");o>=1e6&&(i+=1,o-=1e6),e=o;var a,s,c,f=u.now,p=u.now;for(u.duringTick=!0,c=u.now,runJobs(u),c!==u.now&&(f+=u.now-c,i+=u.now-c),a=firstTimerInRange(u,f,i);a&&f<=i;){if(u.timers[a.id]){f=a.callAt,u.now=a.callAt,c=u.now;try{runJobs(u),callTimer(u,a)}catch(n){s=s||n}c!==u.now&&(f+=u.now-c,i+=u.now-c,p+=u.now-c)}a=firstTimerInRange(u,p,i),p=f}if(c=u.now,runJobs(u),c!==u.now&&(f+=u.now-c,i+=u.now-c),u.duringTick=!1,a=firstTimerInRange(u,f,i))try{u.tick(i-u.now)}catch(n){s=s||n}else u.now=i,e=o;if(s)throw s;return u.now},u.next=function(){runJobs(u);var n=firstTimer(u);if(!n)return u.now;u.duringTick=!0;try{return u.now=n.callAt,callTimer(u,n),runJobs(u),u.now}finally{u.duringTick=!1}},u.runAll=function(){var n;for(runJobs(u),n=0;n1||n instanceof Date||Array.isArray(n)||"number"==typeof n)throw new TypeError("lolex.install called with "+String(n)+" lolex 2.0+ requires an object parameter - see https://github.com/sinonjs/lolex");var l,e;(n=void 0!==n?n:{}).shouldAdvanceTime=n.shouldAdvanceTime||!1,n.advanceTimeDelta=n.advanceTimeDelta||20;var t=n.target||_global,u=createClock(n.now,n.loopLimit);for(u.uninstall=function(){return uninstall(u,t,n)},u.methods=n.toFake||[],0===u.methods.length&&(u.methods=keys(timers).filter(function(n){return"nextTick"!==n})),l=0,e=u.methods.length;ln.args.length)&&reduce$1(l,function(l,e,t){return l&&deepEqual$3(n.args[t],e)},!0)},calledWithMatch:function(){var n=this,l=slice$4(arguments);return!(l.length>n.args.length)&&reduce$1(l,function(l,e,t){var u=n.args[t];return l&&match$2(e).test(u)},!0)},calledWithExactly:function(){return arguments.length===this.args.length&&this.calledWith.apply(this,arguments)},notCalledWith:function(){return!this.calledWith.apply(this,arguments)},notCalledWithMatch:function(){return!this.calledWithMatch.apply(this,arguments)},returned:function(n){return deepEqual$3(this.returnValue,n)},threw:function(n){return void 0!==n&&this.exception?this.exception===n||this.exception.name===n:Boolean(this.exception)},calledWithNew:function(){return this.proxy.prototype&&this.thisValue instanceof this.proxy},calledBefore:function(n){return this.callIdn.callId},calledImmediatelyBefore:function(n){return this.callId===n.callId-1},calledImmediatelyAfter:function(n){return this.callId===n.callId+1},callArg:function(n){return this.ensureArgIsAFunction(n),this.args[n]()},callArgOn:function(n,l){return this.ensureArgIsAFunction(n),this.args[n].apply(l)},callArgWith:function(n){return this.callArgOnWith.apply(this,concat$2([n,null],slice$4(arguments,1)))},callArgOnWith:function(n,l){this.ensureArgIsAFunction(n);var e=slice$4(arguments,2);return this.args[n].apply(l,e)},throwArg:function(n){if(n>this.args.length)throw new TypeError("Not enough arguments: "+n+" required but only "+this.args.length+" present");throw this.args[n]},yield:function(){return this.yieldOn.apply(this,concat$2([null],slice$4(arguments,0)))},yieldOn:function(n){var l=slice$4(this.args),e=filter(l,function(n){return"function"==typeof n})[0];return e||throwYieldError(this.proxy," cannot yield since no callback was passed.",l),e.apply(n,slice$4(arguments,1))},yieldTo:function(n){return this.yieldToOn.apply(this,concat$2([n,null],slice$4(arguments,1)))},yieldToOn:function(n,l){var e=slice$4(this.args),t=filter(e,function(l){return l&&"function"==typeof l[n]})[0],u=t&&t[n];return u||throwYieldError(this.proxy," cannot yield to '"+valueToString$3(n)+"' since no callback was passed.",e),u.apply(l,slice$4(arguments,2))},toString:function(){var n,l=this.proxy?String(this.proxy)+"(":"";return this.args?(n=map$1(this.args,function(n){return format_1(n)}),l=l+join$4(n,", ")+")",void 0!==this.returnValue&&(l+=" => "+format_1(this.returnValue)),this.exception&&(l+=" !"+this.exception.name,this.exception.message&&(l+="("+this.exception.message+")")),this.stack&&(l+=(this.stack.split("\n")[3]||"unknown").replace(/^\s*(?:at\s+|@)?/," at ")),l):":("},ensureArgIsAFunction:function(n){if("function"!=typeof this.args[n])throw new TypeError("Expected argument at position "+n+" to be a Function, but was "+_typeof2(this.args[n]))}};function createSpyCall(n,l,e,t,u,r,o){if("number"!=typeof r)throw new TypeError("Call id is not a number");var i=Object.create(callProto),a=e.length>0&&e[e.length-1]||void 0,s=a&&"function"==typeof a?a:void 0;return i.proxy=n,i.thisValue=l,i.args=e,i.lastArg=a,i.callback=s,i.returnValue=t,i.exception=u,i.callId=r,i.errorWithCallStack=o,i}Object.defineProperty(callProto,"stack",{enumerable:!0,configurable:!0,get:function(){return this.errorWithCallStack&&this.errorWithCallStack.stack||""}}),callProto.invokeCallback=callProto.yield,createSpyCall.toString=callProto.toString;var call$1=createSpyCall,hasOwnProperty$5=lib.prototypes.object.hasOwnProperty,valueToString$4=lib.valueToString;function isFunction$1(n){return"function"==typeof n||Boolean(n&&n.constructor&&n.call&&n.apply)}function mirrorProperties(n,l){for(var e in l)hasOwnProperty$5(n,e)||(n[e]=l[e])}var hasES5Support="keys"in Object,wrapMethod=function(n,l,e){if(!n)throw new TypeError("Should wrap property of object");if("function"!=typeof e&&"object"!==_typeof2(e))throw new TypeError("Method wrapper should be a function or a property descriptor");function t(n){var e;if(isFunction$1(n)){if(n.restore&&n.restore.sinon)e=new TypeError("Attempted to wrap "+valueToString$4(l)+" which is already wrapped");else if(n.calledBefore){var t=n.returns?"stubbed":"spied on";e=new TypeError("Attempted to wrap "+valueToString$4(l)+" which is already "+t)}}else e=new TypeError("Attempted to wrap "+_typeof2(n)+" property "+valueToString$4(l)+" as function");if(e)throw n&&n.stackTraceError&&(e.stack+="\n--------------\n"+n.stackTraceError.stack),e}var u,r,o,i;function a(){t(r=n[l]),n[l]=e,e.displayName=l}var s=n.hasOwnProperty?n.hasOwnProperty(l):hasOwnProperty$5(n,l);if(hasES5Support){var c="function"==typeof e?{value:e}:e;if((i=getPropertyDescriptor(n,l))?i.restore&&i.restore.sinon&&(u=new TypeError("Attempted to wrap "+l+" which is already wrapped")):u=new TypeError("Attempted to wrap "+_typeof2(r)+" property "+l+" as function"),u)throw i&&i.stackTraceError&&(u.stack+="\n--------------\n"+i.stackTraceError.stack),u;var f=Object.keys(c);for(o=0;o1)for(var e=1;e=2,has16m:n>=3}}function supportsColor(n){if(!1===forceColor)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(n&&!n.isTTY&&!0!==forceColor)return 0;var l=forceColor?1:0;if("CI"in env$1)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(n){return n in env$1})||"codeship"===env$1.CI_NAME?1:l;if("TEAMCITY_VERSION"in env$1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION)?1:0;if("truecolor"===env$1.COLORTERM)return 3;if("TERM_PROGRAM"in env$1){var e=parseInt((env$1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env$1.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(env$1.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env$1.TERM)?1:"COLORTERM"in env$1?1:(env$1.TERM,l)}function getSupportLevel(n){return translateLevel(supportsColor(n))}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")?forceColor=!1:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(forceColor=!0),"FORCE_COLOR"in env$1&&(forceColor=0===env$1.FORCE_COLOR.length||0!==parseInt(env$1.FORCE_COLOR,10));var supportsColor_1={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)};function colorize(n,l){return!1===supportsColor_1.stdout?n:"["+l+"m"+n+""}var red=function(n){return colorize(n,31)},green=function(n){return colorize(n,32)},cyan=function(n){return colorize(n,96)},white=function(n){return colorize(n,39)},bold=function(n){return colorize(n,1)},color={red:red,green:green,cyan:cyan,white:white,bold:bold},base=createCommonjsModule(function(n,l){function e(){}function t(n,l,e,t,u){for(var r=0,o=l.length,i=0,a=0;rn.length?e:n}),s.value=n.join(f)}else s.value=n.join(e.slice(i,i+s.count));i+=s.count,s.added||(a+=s.count)}}var p=l[o-1];return o>1&&"string"==typeof p.value&&(p.added||p.removed)&&n.equals("",p.value)&&(l[o-2].value+=p.value,l.pop()),l}l.__esModule=!0,l.default=e,e.prototype={diff:function(n,l){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=e.callback;"function"==typeof e&&(u=e,e={}),this.options=e;var r=this;function o(n){return u?(setTimeout(function(){u(void 0,n)},0),!0):n}n=this.castInput(n),l=this.castInput(l),n=this.removeEmpty(this.tokenize(n));var i=(l=this.removeEmpty(this.tokenize(l))).length,a=n.length,s=1,c=i+a,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],l,n,0);if(f[0].newPos+1>=i&&p+1>=a)return o([{value:this.join(l),count:l.length}]);function d(){for(var e=-1*s;e<=s;e+=2){var u=void 0,c=f[e-1],p=f[e+1],d=(p?p.newPos:0)-e;c&&(f[e-1]=void 0);var h=c&&c.newPos+1=i&&d+1>=a)return o(t(r,u.components,l,n,r.useLongestToken));f[e]=u}else f[e]=void 0}var m;s++}if(u)!function n(){setTimeout(function(){if(s>c)return u();d()||n()},0)}();else for(;s<=c;){var h=d();if(h)return h}},pushComponent:function(n,l,e){var t=n[n.length-1];t&&t.added===l&&t.removed===e?n[n.length-1]={count:t.count+1,added:l,removed:e}:n.push({count:1,added:l,removed:e})},extractCommon:function(n,l,e,t){for(var u=l.length,r=e.length,o=n.newPos,i=o-t,a=0;o+11&&void 0!==arguments[1]?arguments[1]:{},e=n.split(/\r\n|[\n\v\f\r\x85]/),t=n.match(/\r\n|[\n\v\f\r\x85]/g)||[],u=[],r=0;function o(){var n={};for(u.push(n);r2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof l&&(l=(0,parse.parsePatch)(l)),Array.isArray(l)){if(l.length>1)throw new Error("applyPatch only works with a single input.");l=l[0]}var u=n.split(/\r\n|[\n\v\f\r\x85]/),r=n.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=l.hunks,i=e.compareLine||function(n,l,e,t){return l===t},a=0,s=e.fuzzFactor||0,c=0,f=0,p=void 0,d=void 0;function h(n,l){for(var e=0;e0?t[0]:" ",o=t.length>0?t.substr(1):t;if(" "===r||"-"===r){if(!i(l+1,u[l],r,o)&&++a>s)return!1;l++}}return!0}for(var g=0;g0?S[0]:" ",k=S.length>0?S.substr(1):S,F=x.linedelimiters[_];if(" "===T)C++;else if("-"===T)u.splice(C,1),r.splice(C,1);else if("+"===T)u.splice(C,0,k),r.splice(C,0,F),C++;else if("\\"===T){var D=x.lines[_-1]?x.lines[_-1][0]:null;"+"===D?p=!0:"-"===D&&(d=!0)}}}if(p)for(;!u[u.length-1];)u.pop(),r.pop();else d&&(u.push(""),r.push("\n"));for(var P=0;P0?s(m.lines.slice(-i.context)):[],f-=d.length,p-=d.length)}(o=d).push.apply(o,e(r.map(function(n){return(l.added?"+":"-")+n}))),l.added?g+=r.length:h+=r.length}else{if(f)if(r.length<=2*i.context&&n=a.length-2&&r.length<=i.context){var A=/\n$/.test(t),E=/\n$/.test(u);0!=r.length||A?A&&E||d.push("\\ No newline at end of file"):d.splice(w.oldLines,0,"\\ No newline at end of file")}c.push(w),f=0,p=0,d=[]}h+=r.length,g+=r.length}},y=0;yn.length)return!1;for(var e=0;e/g,">")).replace(/"/g,""")}l.__esModule=!0,l.convertChangesToXML=function(n){for(var l=[],t=0;t"):u.removed&&l.push(""),l.push(e(u.value)),u.added?l.push(""):u.removed&&l.push("")}return l.join("")}});unwrapExports(xml);var xml_1=xml.convertChangesToXML,lib$1=createCommonjsModule(function(n,l){l.__esModule=!0,l.canonicalize=l.convertChangesToXML=l.convertChangesToDMP=l.merge=l.parsePatch=l.applyPatches=l.applyPatch=l.createPatch=l.createTwoFilesPatch=l.structuredPatch=l.diffArrays=l.diffJson=l.diffCss=l.diffSentences=l.diffTrimmedLines=l.diffLines=l.diffWordsWithSpace=l.diffWords=l.diffChars=l.Diff=void 0;var e,t=(e=base)&&e.__esModule?e:{default:e};l.Diff=t.default,l.diffChars=character.diffChars,l.diffWords=word.diffWords,l.diffWordsWithSpace=word.diffWordsWithSpace,l.diffLines=line.diffLines,l.diffTrimmedLines=line.diffTrimmedLines,l.diffSentences=sentence.diffSentences,l.diffCss=css.diffCss,l.diffJson=json.diffJson,l.diffArrays=array$2.diffArrays,l.structuredPatch=create.structuredPatch,l.createTwoFilesPatch=create.createTwoFilesPatch,l.createPatch=create.createPatch,l.applyPatch=apply.applyPatch,l.applyPatches=apply.applyPatches,l.parsePatch=parse.parsePatch,l.merge=merge_1.merge,l.convertChangesToDMP=dmp.convertChangesToDMP,l.convertChangesToXML=xml.convertChangesToXML,l.canonicalize=json.canonicalize});unwrapExports(lib$1);var lib_1$1=lib$1.canonicalize,lib_2$1=lib$1.convertChangesToXML,lib_3$1=lib$1.convertChangesToDMP,lib_4$1=lib$1.merge,lib_5$1=lib$1.parsePatch,lib_6$1=lib$1.applyPatches,lib_7$1=lib$1.applyPatch,lib_8$1=lib$1.createPatch,lib_9=lib$1.createTwoFilesPatch,lib_10=lib$1.structuredPatch,lib_11=lib$1.diffArrays,lib_12=lib$1.diffJson,lib_13=lib$1.diffCss,lib_14=lib$1.diffSentences,lib_15=lib$1.diffTrimmedLines,lib_16=lib$1.diffLines,lib_17=lib$1.diffWordsWithSpace,lib_18=lib$1.diffWords,lib_19=lib$1.diffChars,lib_20=lib$1.Diff,arrayProto$7=lib.prototypes.array,match$3=samsam.createMatcher,join$5=arrayProto$7.join,map$2=arrayProto$7.map,push$2=arrayProto$7.push;function colorSinonMatchText(n,l,e){var t=e;return n.test(l)||(n.message=color.red(n.message),t&&(t=color.green(t))),t+" "+n.message}function colorDiffText(n){var l=map$2(n,function(l){var e=l.value;return l.added?e=color.green(e):l.removed&&(e=color.red(e)),2===n.length&&(e+=" "),e});return join$5(l,"")}var spyFormatters={c:function(n){return timesInWords(n.callCount)},n:function(n){return n.toString()},D:function(n,l){for(var e="",t=0,u=n.callCount;t1&&(e+="\nCall "+(t+1)+":");for(var r=n.getCall(t).args,o=0;o0?"\n"+join$5(l,"\n"):""},t:function(n){for(var l=[],e=0,t=n.callCount;e=this.callCount?null:call$1(this,this.thisValues[n],this.args[n],this.returnValues[n],this.exceptions[n],this.callIds[n],this.errorsWithCallStack[n])},getCalls:function(){var n,l=[];for(n=0;nn.callIds[0]},calledImmediatelyBefore:function(n){return!(!this.called||!n.called)&&this.callIds[this.callCount-1]===n.callIds[n.callCount-1]-1},calledImmediatelyAfter:function(n){return!(!this.called||!n.called)&&this.callIds[this.callCount-1]===n.callIds[n.callCount-1]+1},withArgs:function(){var n=slice$5(arguments);if(this.fakes){var l=pop(this.matchingFakes(n,!0));if(l)return l}else this.fakes=[];var e=this,t=this.instantiateFake();return t.matchingArguments=n,t.parent=this,push$3(this.fakes,t),e.defaultBehavior&&e.defaultBehavior.promiseLibrary&&(t.defaultBehavior=t.defaultBehavior||createBehavior$1(t),t.defaultBehavior.promiseLibrary=e.defaultBehavior.promiseLibrary),t.withArgs=function(){return e.withArgs.apply(e,arguments)},forEach$2(e.args,function(n,l){t.matches(n)&&(incrementCallCount.call(t),push$3(t.thisValues,e.thisValues[l]),push$3(t.args,n),push$3(t.returnValues,e.returnValues[l]),push$3(t.exceptions,e.exceptions[l]),push$3(t.callIds,e.callIds[l]))}),createCallProperties.call(t),t},matchingFakes:function(n,l){return filter$1.call(this.fakes||[],function(e){return e.matches(n,l)})},matches:function(n,l){var e=this.matchingArguments;if(e.length<=n.length&&deepEqual$4(slice$5(n,0,e.length),e))return!l||e.length===n.length},printf:function(n){var l,e=this,t=slice$5(arguments,1);return(n||"").replace(/%(.)/g,function(n,u){return"function"==typeof(l=spyApi.formatters[u])?String(l(e,t)):isNaN(parseInt(u,10))?"%"+u:format_1(t[u-1])})}};function delegateToCalls(n,l,e,t,u,r){spyApi[n]=function(){if(!this.called)return!!u&&u.apply(this,arguments);if(void 0!==r&&this.callCount!==r)return!1;for(var o,i=0,a=[],s=0,c=this.callCount;s2)throw new TypeError("stub(obj, 'meth', fn) has been removed, see documentation");if(isEsModule(n))throw new TypeError("ES Modules cannot be stubbed");if(throwOnFalsyObject_1.apply(null,arguments),isNonExistentOwnProperty_1(n,l))throw new TypeError("Cannot stub non-existent own property "+valueToString$7(l));var e=getPropertyDescriptor(n,l),t="object"===_typeof2(n)||"function"==typeof n,u=void 0===l&&t,r=!n&&void 0===l,o=t&&void 0!==l&&(void 0===e||"function"!=typeof e.value)&&"undefined"==typeof descriptor,i="object"===_typeof2(n)&&void 0!==e&&"function"==typeof e.value?n[l].length:0;if(u)return stubEntireObject_1(stub,n);if(r)return stub.create();var a=stub.create(i);return a.rootObj=n,a.propName=l,a.restore=function(){void 0===e?delete n[l]:Object.defineProperty(n,l,e)},o?a:wrapMethod(n,l,a)}function getParentBehaviour(n){return n.parent&&getCurrentBehavior(n.parent)}function getDefaultBehavior(n){return n.defaultBehavior||getParentBehaviour(n)||behavior.create(n)}function getCurrentBehavior(n){var l=n.behaviors[n.callCount-1];return l&&l.isPresent()?l:getDefaultBehavior(n)}stub.createStubInstance=function(n,l){if("function"!=typeof n)throw new TypeError("The constructor should be a function.");var e=stub(Object.create(n.prototype));return forEach$3(Object.keys(l||{}),function(n){if(!(n in e))throw new Error("Cannot stub "+n+". Property does not exist!");var t=l[n];t&&t.createStubInstance?e[n]=t:e[n].returns(t)}),e};var uuid$1=0,proto$1={create:function(n){var l=function(){var n=slice$7(arguments),e=l.matchingFakes(n);return getCurrentBehavior(pop$1(sort$1(e,function(n,l){return n.matchingArguments.length-l.matchingArguments.length}))||l).invoke(this,arguments)},e=l;return(l=spy_1.create(l,n)).id="stub#"+uuid$1++,l.func=e,extend(l,stub),l.instantiateFake=stub.create,l.displayName="stub",l.toString=functionToString,l.defaultBehavior=null,l.behaviors=[],l},resetBehavior:function(){var n=this.fakes||[];this.defaultBehavior=null,this.behaviors=[],delete this.returnValue,delete this.returnArgAt,delete this.throwArgAt,delete this.resolveArgAt,delete this.fakeFn,this.returnThis=!1,this.resolveThis=!1,forEach$3(n,function(n){n.resetBehavior()})},resetHistory:spy_1.resetHistory,reset:function(){this.resetHistory(),this.resetBehavior()},onCall:function(n){return this.behaviors[n]||(this.behaviors[n]=behavior.create(this)),this.behaviors[n]},onFirstCall:function(){return this.onCall(0)},onSecondCall:function(){return this.onCall(1)},onThirdCall:function(){return this.onCall(2)}};forEach$3(Object.keys(behavior),function(n){hasOwnProperty$6(behavior,n)&&!hasOwnProperty$6(proto$1,n)&&"create"!==n&&"withArgs"!==n&&"invoke"!==n&&(proto$1[n]=behavior.createBehavior(n))}),forEach$3(Object.keys(defaultBehaviors_1),function(n){hasOwnProperty$6(defaultBehaviors_1,n)&&!hasOwnProperty$6(proto$1,n)&&behavior.addBehavior(stub,n,defaultBehaviors_1[n])}),extend(stub,proto$1);var stub_1=stub,arrayProto$b=lib.prototypes.array,spyInvoke=spy_1.invoke,spyCallToString=call$1.toString,match$4=samsam.createMatcher,deepEqual$5=samsam.deepEqual,valueToString$8=lib.valueToString,every$4=arrayProto$b.every,forEach$4=arrayProto$b.forEach,push$4=arrayProto$b.push,slice$8=arrayProto$b.slice;function callCountInWords(n){return 0===n?"never called":"called "+timesInWords(n)}function expectedCallCountInWords(n){var l=n.minCalls,e=n.maxCalls;if("number"==typeof l&&"number"==typeof e){var t=timesInWords(l);return l!==e&&(t="at least "+t+" and at most "+timesInWords(e)),t}return"number"==typeof l?"at least "+timesInWords(l):"at most "+timesInWords(e)}function receivedMinCalls(n){return!("number"==typeof n.minCalls)||n.callCount>=n.minCalls}function receivedMaxCalls(n){return"number"==typeof n.maxCalls&&n.callCount===n.maxCalls}function verifyMatcher(n,l){return match$4.isMatcher(n)&&n.test(l)||!0}var mockExpectation={minCalls:1,maxCalls:1,create:function(n){var l=extend(stub_1.create(),mockExpectation);return delete l.create,l.method=n,l},invoke:function(n,l,e){return this.verifyCallAllowed(l,e),spyInvoke.apply(this,arguments)},atLeast:function(n){if("number"!=typeof n)throw new TypeError("'"+valueToString$8(n)+"' is not number");return this.limitsSet||(this.maxCalls=null,this.limitsSet=!0),this.minCalls=n,this},atMost:function(n){if("number"!=typeof n)throw new TypeError("'"+valueToString$8(n)+"' is not number");return this.limitsSet||(this.minCalls=null,this.limitsSet=!0),this.maxCalls=n,this},never:function(){return this.exactly(0)},once:function(){return this.exactly(1)},twice:function(){return this.exactly(2)},thrice:function(){return this.exactly(3)},exactly:function(n){if("number"!=typeof n)throw new TypeError("'"+valueToString$8(n)+"' is not a number");return this.atLeast(n),this.atMost(n)},met:function(){return!this.failed&&receivedMinCalls(this)},verifyCallAllowed:function(n,l){var e=this.expectedArguments;receivedMaxCalls(this)&&(this.failed=!0,mockExpectation.fail(this.method+" already called "+timesInWords(this.maxCalls))),"expectedThis"in this&&this.expectedThis!==n&&mockExpectation.fail(this.method+" called with "+valueToString$8(n)+" as thisValue, expected "+valueToString$8(this.expectedThis)),"expectedArguments"in this&&(l||mockExpectation.fail(this.method+" received no arguments, expected "+format_1(e)),l.length0?mockExpectation_1.fail(join$6(concat$4(l,e),"\n")):e.length>0&&mockExpectation_1.pass(join$6(concat$4(l,e),"\n")),!0},usingPromise:function(n){return this.promiseLibrary=n,this},invokeMethod:function(n,l,e){var t,u=this.expectations&&this.expectations[n]?this.expectations[n]:[],r=e||[],o=filter$2(u,function(n){return arrayEquals(n.expectedArguments||[],r,n.expectsExactArgCount)}),i=filter$2(o,function(n){return!n.met()&&n.allowsCall(l,e)});if(i.length>0)return i[0].apply(l,e);var a=[],s=0;if(forEach$6(o,function(n){n.allowsCall(l,e)?t=t||n:s+=1}),t&&0===s)return t.apply(l,e);forEach$6(u,function(n){push$5(a," "+String(n))}),unshift(a,"Unexpected call: "+spyCallToString$1.call({proxy:n,args:e}));var c=new Error;if(!c.stack)try{throw c}catch(n){}push$5(this.failures,"Unexpected call: "+spyCallToString$1.call({proxy:n,args:e,stack:c.stack})),mockExpectation_1.fail(join$6(a,"\n"))}});var mock_1=mock,arrayProto$d=lib.prototypes.array,forEach$7=arrayProto$d.forEach,slice$a=arrayProto$d.slice;function getError(n){return n instanceof Error?n:new Error(n)}function cleanProxy(n){return forEach$7(["instantiateFake","callArg","callArgOn","callArgOnWith","callArgWith","invokeCallback","throwArg","withArgs","yield","yieldOn","yieldTo","yieldToOn"],function(l){delete n[l]}),n}var uuid$2=0;function wrapFunc(n){var l=cleanProxy(spy_1(function(){var e=arguments.length>0&&arguments[arguments.length-1]||void 0,t=e&&"function"==typeof e?e:void 0;return l.lastArg=e,l.callback=t,n&&n.apply(this,arguments)}));return l.displayName="fake",l.id="fake#"+uuid$2++,l}function fake(n){if(arguments.length>0&&"function"!=typeof n)throw new TypeError("Expected f argument to be a Function");return wrapFunc(n)}function yieldInternal(n,l){return wrapFunc(function(){var e=arguments[arguments.length-1];if("function"!=typeof e)throw new TypeError("Expected last argument to be a function");n?nextTick$1(function(){e.apply(null,l)}):e.apply(null,l)})}fake.returns=function(n){return wrapFunc(function(){return n})},fake.throws=function(n){return wrapFunc(function(){throw getError(n)})},fake.resolves=function(n){return wrapFunc(function(){return Promise.resolve(n)})},fake.rejects=function(n){return wrapFunc(function(){return Promise.reject(getError(n))})},fake.yields=function(){return yieldInternal(!1,slice$a(arguments))},fake.yieldsAsync=function(){return yieldInternal(!0,slice$a(arguments))};var fake_1=fake,nise=createCommonjsModule(function(module,exports){var f;f=function(){var define;return function(){return function n(l,e,t){function u(o,i){if(!e[o]){if(!l[o]){var a="function"==typeof commonjsRequire&&commonjsRequire;if(!i&&a)return a(o,!0);if(r)return r(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var c=e[o]={exports:{}};l[o][0].call(c.exports,function(n){var e=l[o][1][n];return u(e||n)},c,c.exports,n,l,e,t)}return e[o].exports}for(var r="function"==typeof commonjsRequire&&commonjsRequire,o=0;o0&&this.respondWith.apply(this,arguments);var n=this.queue||[],l=n.splice(0,n.length),e=this;l.forEach(function(n){e.processRequest(n)})},processRequest:function(n){try{if(n.aborted)return;var l=this.response||[404,{},""];if(this.responses)for(var e=this.responses.length-1;e>=0;e--)if(c.call(this,this.responses[e],n)){l=this.responses[e].response;break}4!==n.readyState&&(this.log(l,n),n.respond(l[0],l[1],l[2]))}catch(n){this.logError("Fake server request processing",n)}},restore:function(){return this.xhr.restore&&this.xhr.restore.apply(this.xhr,arguments)},getRequest:function(n){return this.requests[n]||null},reset:function(){this.resetBehavior(),this.resetHistory()},resetBehavior:function(){this.responses.length=this.queue.length=0},resetHistory:function(){this.requests.length=this.requestCount=0,this.requestedOnce=this.requestedTwice=this.requestedThrice=this.requested=!1,this.firstRequest=this.secondRequest=this.thirdRequest=this.lastRequest=null}};l.exports=f},{"../configure-logger":1,"../fake-xhr":11,"./format":8,"path-to-regexp":45}],10:[function(n,l,e){e.isSupported=function(){try{return!!new Blob}catch(n){return!1}}()},{}],11:[function(n,l,e){(function(e){var t=n("text-encoding").TextEncoder,u=n("../configure-logger"),r=n("../event"),o=n("just-extend");var i,a="undefined"!=typeof ProgressEvent,s="undefined"!=typeof CustomEvent,c="undefined"!=typeof FormData,f="undefined"!=typeof ArrayBuffer,p=n("./blob").isSupported,d=e.navigator&&"ReactNative"===e.navigator.product,h={XMLHttpRequest:e.XMLHttpRequest};h.GlobalXMLHttpRequest=e.XMLHttpRequest,h.GlobalActiveXObject=e.ActiveXObject,h.supportsActiveX=void 0!==h.GlobalActiveXObject,h.supportsXHR=void 0!==h.GlobalXMLHttpRequest,h.workingXHR=void 0!==(i=e).XMLHttpRequest?i.XMLHttpRequest:!(void 0===i.ActiveXObject)&&function(){return new i.ActiveXObject("MSXML2.XMLHTTP.3.0")},h.supportsTimeout=h.supportsXHR&&"timeout"in new h.GlobalXMLHttpRequest,h.supportsCORS=d||h.supportsXHR&&"withCredentials"in new h.GlobalXMLHttpRequest;var g={"Accept-Charset":!0,"Access-Control-Request-Headers":!0,"Access-Control-Request-Method":!0,"Accept-Encoding":!0,Connection:!0,"Content-Length":!0,Cookie:!0,Cookie2:!0,"Content-Transfer-Encoding":!0,Date:!0,DNT:!0,Expect:!0,Host:!0,"Keep-Alive":!0,Origin:!0,Referer:!0,TE:!0,Trailer:!0,"Transfer-Encoding":!0,Upgrade:!0,"User-Agent":!0,Via:!0};function m(){var n=this;["loadstart","progress","abort","error","load","timeout","loadend"].forEach(function(l){n.addEventListener(l,function(e){var t=n["on"+l];t&&"function"==typeof t&&t.call(this,e)})})}function y(n){m.call(this),this.readyState=y.UNSENT,this.requestHeaders={},this.requestBody=null,this.status=0,this.statusText="",this.upload=new m,this.responseType="",this.response="",this.logError=u(n),h.supportsTimeout&&(this.timeout=0),h.supportsCORS&&(this.withCredentials=!1),"function"==typeof y.onCreate&&y.onCreate(this)}function b(n){if(n.readyState!==y.OPENED)throw new Error("INVALID_STATE_ERR");if(n.sendFlag)throw new Error("INVALID_STATE_ERR")}function v(n,l){return Object.keys(n).filter(function(n){return n.toLowerCase()===l.toLowerCase()})[0]||null}function w(n){return!/^Set-Cookie2?$/i.test(n)}m.prototype=r.EventTarget;var A=function(n,l,e){switch(e.length){case 0:return n[l]();case 1:return n[l](e[0]);case 2:return n[l](e[0],e[1]);case 3:return n[l](e[0],e[1],e[2]);case 4:return n[l](e[0],e[1],e[2],e[3]);case 5:return n[l](e[0],e[1],e[2],e[3],e[4]);default:throw new Error("Unhandled case")}};function E(n){if(n.readyState!==y.OPENED)throw new Error("INVALID_STATE_ERR - "+n.readyState)}function x(n,l){return n instanceof ArrayBuffer?n:new t(l||"utf-8").encode(n).buffer}function C(n){return!n||/(text\/xml)|(application\/xml)|(\+xml)/.test(n)}function _(n){""===n.responseType||"text"===n.responseType?n.response=n.responseText="":n.response=n.responseText=null,n.responseXML=null}function S(n){_(n),n.errorFlag=!0,n.requestHeaders={},n.responseHeaders={},n.readyState!==y.UNSENT&&n.sendFlag&&n.readyState!==y.DONE&&(n.readyStateChange(y.DONE),n.sendFlag=!1)}y.filters=[],y.addFilter=function(n){this.filters.push(n)},y.defake=function(n,l){var e=new h.workingXHR;["open","setRequestHeader","abort","getResponseHeader","getAllResponseHeaders","addEventListener","overrideMimeType","removeEventListener"].forEach(function(l){n[l]=function(){return A(e,l,arguments)}}),n.send=function(){return e.responseType!==n.responseType&&(e.responseType=n.responseType),A(e,"send",arguments)};var t=function(l){l.forEach(function(l){n[l]=e[l]})},u=function(){n.readyState=e.readyState,e.readyState>=y.HEADERS_RECEIVED&&t(["status","statusText"]),e.readyState>=y.LOADING&&(t(["response"]),""!==e.responseType&&"text"!==e.responseType||t(["responseText"])),e.readyState!==y.DONE||""!==e.responseType&&"document"!==e.responseType||t(["responseXML"])},r=function(){n.onreadystatechange&&n.onreadystatechange.call(n,{target:n,currentTarget:n})};e.addEventListener?(e.addEventListener("readystatechange",u),Object.keys(n.eventListeners).forEach(function(l){n.eventListeners[l].forEach(function(n){e.addEventListener(l,n.listener,{capture:n.capture,once:n.once})})}),e.addEventListener("readystatechange",r)):e.onreadystatechange=function(){u(),r()},A(e,"open",l)},y.useFilters=!1,y.parseXML=function(n){if(""!==n)try{if("undefined"!=typeof DOMParser){var l,e=new DOMParser,t="";try{var u=e.parseFromString("INVALID","text/xml").getElementsByTagName("parsererror");u.length&&(t=u[0].namespaceURI)}catch(n){}try{l=e.parseFromString(n,"text/xml")}catch(n){return null}return l.getElementsByTagNameNS(t,"parsererror").length?null:l}var r=new window.ActiveXObject("Microsoft.XMLDOM");return r.async="false",r.loadXML(n),0!==r.parseError.errorCode?null:r}catch(n){}return null},y.statusCodes={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},o(y.prototype,r.EventTarget,{async:!0,open:function(n,l,e,t,u){if(this.method=n,this.url=l,this.async="boolean"!=typeof e||e,this.username=t,this.password=u,_(this),this.requestHeaders={},this.sendFlag=!1,!0===y.useFilters){var r=arguments;if(y.filters.some(function(n){return n.apply(this,r)}))return void y.defake(this,arguments)}this.readyStateChange(y.OPENED)},readyStateChange:function(n){this.readyState=n;var l,e,t=new r.Event("readystatechange",!1,!1,this);if("function"==typeof this.onreadystatechange)try{this.onreadystatechange(t)}catch(n){this.logError("Fake XHR onreadystatechange handler",n)}this.readyState===y.DONE&&(this.timedOut||this.aborted||0===this.status?(e={loaded:0,total:0},l=(this.timedOut?"timeout":this.aborted&&"abort")||"error"):(e={loaded:100,total:100},l="load"),a&&(this.upload.dispatchEvent(new r.ProgressEvent("progress",e,this)),this.upload.dispatchEvent(new r.ProgressEvent(l,e,this)),this.upload.dispatchEvent(new r.ProgressEvent("loadend",e,this))),this.dispatchEvent(new r.ProgressEvent("progress",e,this)),this.dispatchEvent(new r.ProgressEvent(l,e,this)),this.dispatchEvent(new r.ProgressEvent("loadend",e,this))),this.dispatchEvent(t)},setRequestHeader:function(n,l){if("string"!=typeof l)throw new TypeError("By RFC7230, section 3.2.4, header values should be strings. Got "+_typeof2(l));b(this);var e=!0;if("function"==typeof this.unsafeHeadersEnabled&&(e=this.unsafeHeadersEnabled()),e&&(null!==v(g,n)||/^(Sec-|Proxy-)/i.test(n)))throw new Error('Refused to set unsafe header "'+n+'"');l=function(n){return n.replace(/^[\x09\x0A\x0D\x20]+|[\x09\x0A\x0D\x20]+$/g,"")}(l);var t=v(this.requestHeaders,n);t?this.requestHeaders[t]+=", "+l:this.requestHeaders[n]=l},setStatus:function(n){var l="number"==typeof n?n:200;E(this),this.status=l,this.statusText=y.statusCodes[l]},setResponseHeaders:function(n){E(this);var l=this.responseHeaders={};Object.keys(n).forEach(function(e){l[e]=n[e]}),this.async?this.readyStateChange(y.HEADERS_RECEIVED):this.readyState=y.HEADERS_RECEIVED},send:function(n){if(b(this),!/^(head)$/i.test(this.method)){var l=v(this.requestHeaders,"Content-Type");if(this.requestHeaders[l]){var e=this.requestHeaders[l].split(";");this.requestHeaders[l]=e[0]+";charset=utf-8"}else!c||n instanceof FormData||(this.requestHeaders["Content-Type"]="text/plain;charset=utf-8");this.requestBody=n}if(this.errorFlag=!1,this.sendFlag=this.async,_(this),this.readyStateChange(y.OPENED),"function"==typeof this.onSend&&this.onSend(this),h.supportsTimeout&&"object"===_typeof2(setInterval.clock)&&"object"===_typeof2(Date.clock))var t=Date.now(),u=this,o=setInterval(function(){u.readyState===y.UNSENT||u.readyState===y.DONE?clearInterval(o):"number"==typeof u.timeout&&u.timeout>0&&Date.now()>=t+u.timeout&&(u.triggerTimeout(),clearInterval(o))},1);this.dispatchEvent(new r.Event("loadstart",!1,!1,this))},abort:function(){this.aborted=!0,S(this),this.readyState=y.UNSENT},error:function(){_(this),this.errorFlag=!0,this.requestHeaders={},this.responseHeaders={},this.readyStateChange(y.DONE)},triggerTimeout:function(){h.supportsTimeout&&(this.timedOut=!0,S(this))},getResponseHeader:function(n){return this.readyState=y.LOADING)throw new Error("INVALID_STATE_ERR");this.overriddenMimeType=n}});var T={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4};o(y,T),o(y.prototype,T),l.exports={xhr:h,FakeXMLHttpRequest:y,useFakeXMLHttpRequest:function(){return y.restore=function(n){h.supportsXHR&&(e.XMLHttpRequest=h.GlobalXMLHttpRequest),h.supportsActiveX&&(e.ActiveXObject=h.GlobalActiveXObject),delete y.restore,!0!==n&&delete y.onCreate},h.supportsXHR&&(e.XMLHttpRequest=y),h.supportsActiveX&&(e.ActiveXObject=function(n){return"Microsoft.XMLHTTP"===n||/^Msxml2\.XMLHTTP/i.test(n)?new y:new h.GlobalActiveXObject(n)}),y}}}).call(this,void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../configure-logger":1,"../event":5,"./blob":10,"just-extend":42,"text-encoding":46}],12:[function(n,l,e){l.exports={fakeServer:n("./fake-server"),fakeServerWithClock:n("./fake-server/fake-server-with-clock"),fakeXhr:n("./fake-xhr")}},{"./fake-server":9,"./fake-server/fake-server-with-clock":7,"./fake-xhr":11}],13:[function(n,l,e){l.exports=function(n,l){var e=!0;try{n.forEach(function(){if(!l.apply(this,arguments))throw new Error})}catch(n){e=!1}return e}},{}],14:[function(n,l,e){l.exports=function(n){return n.displayName||n.name||(String(n).match(/function ([^\s\(]+)/)||[])[1]}},{}],15:[function(n,l,e){l.exports={every:n("./every"),functionName:n("./function-name"),prototypes:n("./prototypes"),typeOf:n("./type-of"),valueToString:n("./value-to-string")}},{"./every":13,"./function-name":14,"./prototypes":19,"./type-of":22,"./value-to-string":23}],16:[function(n,l,e){var t=n("./copy-prototype");l.exports=t(Array.prototype)},{"./copy-prototype":17}],17:[function(n,l,e){var t=Function.call;l.exports=function(n){return Object.getOwnPropertyNames(n).reduce(function(l,e){return"size"!==e&&"caller"!==e&&"callee"!==e&&"arguments"!==e&&"function"==typeof n[e]&&(l[e]=t.bind(n[e])),l},Object.create(null))}},{}],18:[function(n,l,e){var t=n("./copy-prototype");l.exports=t(Function.prototype)},{"./copy-prototype":17}],19:[function(n,l,e){l.exports={array:n("./array"),function:n("./function"),object:n("./object"),string:n("./string")}},{"./array":16,"./function":18,"./object":20,"./string":21}],20:[function(n,l,e){var t=n("./copy-prototype");l.exports=t(Object.prototype)},{"./copy-prototype":17}],21:[function(n,l,e){var t=n("./copy-prototype");l.exports=t(String.prototype)},{"./copy-prototype":17}],22:[function(n,l,e){var t=n("type-detect");l.exports=function(n){return t(n).toLowerCase()}},{"type-detect":49}],23:[function(n,l,e){l.exports=function(n){return n&&n.toString?n.toString():String(n)}},{}],24:[function(n,l,e){(function(e){var t=n("@sinonjs/samsam"),u={excludeConstructors:["Object",/^.$/],quoteStrings:!0,limitChildrenCount:0},r=[];function o(n){if(!n)return"";if(n.displayName)return n.displayName;if(n.name)return n.name;var l=n.toString().match(/function\s+([^\(]+)/m);return l&&l[1]||""}function i(n,l){var e,t,r=o(l&&l.constructor),i=n.excludeConstructors||u.excludeConstructors||[];for(e=0,t=i.length;e0?Math.min(this.limitChildrenCount,n.length):n.length,t=0;t0?Math.min(this.limitChildrenCount,d.length):d.length,o=0;o80?m+"{\n "+y+p.join(",\n "+y)+"\n"+y+"}":m+"{ "+p.join(", ")+" }"},s.element=function(n){var l,e,t,u,r,o=n.tagName.toLowerCase(),i=n.attributes,a=[];for(t=0,u=i.length;t0?" ":""),c=n.innerHTML||"";return c.length>20&&(c=c.substr(0,20)+"[...]"),(s+a.join(" ")+">"+c+"").replace(/ contentEditable="inherit"/,"")},c.prototype={functionName:o,configure:function(n){return new c(n)},constructorName:function(n){return i(this,n)},ascii:function(n,l,e){return s(this,n,l,e)}},l.exports=c.prototype}).call(this,void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@sinonjs/samsam":40}],25:[function(n,l,e){var t=n("./get-class"),u=n("./identical"),r=n("./is-arguments"),o=n("./is-date"),i=n("./is-element"),a=n("./is-nan"),s=n("./is-object"),c=n("./is-set"),f=n("./is-subset"),p=n("./get-class-name"),d=Array.prototype.every,h=Date.prototype.getTime,g=Object.prototype.hasOwnProperty,m=Array.prototype.indexOf,y=Object.keys;function b(n,l,e){var b=[],v=[],w=[],A=[],E={};return function n(l,x,C,_){if(e&&e.isMatcher(x))return e.isMatcher(l)?l===x:x.test(l);var S=_typeof2(l),T=_typeof2(x);if(l===x||a(l)||a(x)||null==l||null==x||"object"!==S||"object"!==T)return u(l,x);if(i(l)||i(x))return!1;var k=o(l),F=o(x);if((k||F)&&(!k||!F||h.call(l)!==h.call(x)))return!1;if(l instanceof RegExp&&x instanceof RegExp&&l.toString()!==x.toString())return!1;if(l instanceof Error&&x instanceof Error&&(l.constructor!==x.constructor||l.message!==x.message||l.stack!==x.stack))return!1;var D=t(l),P=t(x),j=y(l),O=y(x),B=p(l),$=p(x);if(r(l)||r(x)){if(l.length!==x.length)return!1}else if(S!==T||D!==P||j.length!==O.length||B&&$&&B!==$)return!1;return c(l)||c(x)?!(!c(l)||!c(x)||l.size!==x.size)&&f(l,x,n):d.call(j,function(e){if(!g.call(x,e))return!1;var t=l[e],u=x[e],r=s(t),o=s(u),i=r?m.call(b,t):-1,a=o?m.call(v,u):-1,c=-1!==i?w[i]:C+"["+JSON.stringify(e)+"]",f=-1!==a?A[a]:_+"["+JSON.stringify(e)+"]",p=c+f;return!!E[p]||(-1===i&&r&&(b.push(t),w.push(c)),-1===a&&o&&(v.push(u),A.push(f)),r&&o&&(E[p]=!0),n(t,u,c,f))})}(n,l,"$1","$2")}b.use=function(n){return function(l,e){return b(l,e,n)}},l.exports=b},{"./get-class":27,"./get-class-name":26,"./identical":28,"./is-arguments":29,"./is-date":30,"./is-element":31,"./is-nan":32,"./is-object":34,"./is-set":35,"./is-subset":36}],26:[function(n,l,e){var t=/function (\w+)\s*\(/;l.exports=function(n){if(n.constructor&&"name"in n.constructor)return n.constructor.name;if("function"==typeof n.constructor){var l=n.constructor.toString().match(t);if(l.length>1)return l[1]}return null}},{}],27:[function(n,l,e){var t=Object.prototype;l.exports=function(n){return t.toString.call(n).split(/[ \]]/)[1]}},{}],28:[function(n,l,e){var t=n("./is-nan"),u=n("./is-neg-zero");l.exports=function(n,l){return!!(n===l||t(n)&&t(l))&&(0!==n||u(n)===u(l))}},{"./is-nan":32,"./is-neg-zero":33}],29:[function(n,l,e){var t=n("./get-class");l.exports=function(n){if("Arguments"===t(n))return!0;if("object"!==_typeof2(n)||"number"!=typeof n.length||"Array"===t(n))return!1;if("function"==typeof n.callee)return!0;try{n[n.length]=6,delete n[n.length]}catch(n){return!0}return!1}},{"./get-class":27}],30:[function(n,l,e){l.exports=function(n){return n instanceof Date}},{}],31:[function(n,l,e){var t="undefined"!=typeof document&&document.createElement("div");l.exports=function(n){if(!n||1!==n.nodeType||!t)return!1;try{n.appendChild(t),n.removeChild(t)}catch(n){return!1}return!0}},{}],32:[function(n,l,e){l.exports=function(n){return"number"==typeof n&&n!=n}},{}],33:[function(n,l,e){l.exports=function(n){return 0===n&&1/n==-1/0}},{}],34:[function(n,l,e){l.exports=function(n){return!("object"!==_typeof2(n)||null===n||n instanceof Boolean||n instanceof Date||n instanceof Error||n instanceof Number||n instanceof RegExp||n instanceof String)}},{}],35:[function(n,l,e){l.exports=function(n){return"undefined"!=typeof Set&&n instanceof Set||!1}},{}],36:[function(n,l,e){l.exports=function(n,l,e){var t=!0;return n.forEach(function(n){var u=!1;l.forEach(function(l){e(l,n)&&(u=!0)}),t=t&&u}),t}},{}],37:[function(n,l,e){var t=n("@sinonjs/commons").prototypes.string.slice,u=n("@sinonjs/commons").typeOf;l.exports=function(n){var l="";function e(n){return"string"==typeof n?"'"+n+"'":String(n)}return"map"===u(n)?(n.forEach(function(n,t){l+="["+e(t)+","+e(n)+"],"}),l=t(l,0,-1)):(n.forEach(function(n){l+=e(n)+","}),l=t(l,0,-1))}},{"@sinonjs/commons":15}],38:[function(n,l,e){var t=n("./deep-equal").use(s),u=n("./get-class"),r=n("./is-date"),o=n("./is-set"),i=n("./is-subset"),a=n("./matcher");function s(n,l){if(l&&"function"==typeof l.test)return l.test(n);if("function"==typeof l)return!0===l(n);if("string"==typeof l)return l=l.toLowerCase(),("string"==typeof n||!!n)&&String(n).toLowerCase().indexOf(l)>=0;if("number"==typeof l)return l===n;if("boolean"==typeof l)return l===n;if(void 0===l)return void 0===n;if(null===l)return null===n;if(null===n)return!1;if(o(n))return i(l,n,s);if("Array"===u(n)&&"Array"===u(l))return function(n,l,e){if(0===l.length)return!0;var t,u,r,o;for(t=0,u=n.length;t=u)return!1;if(!e(n[t+r],l[r]))return!1}return!0}return!1}(n,l,s);if(r(l))return r(n)&&n.getTime()===l.getTime();if(l&&"object"===_typeof2(l)){if(l===n)return!0;if("object"!==_typeof2(n))return!1;var e;for(e in l){var a=n[e];if(void 0===a&&"function"==typeof n.getAttribute&&(a=n.getAttribute(e)),null===l[e]||void 0===l[e]){if(a!==l[e])return!1}else if(void 0===a||!t(a,l[e]))return!1}return!0}throw new Error("Matcher was not a string, a number, a function, a boolean or an object")}Object.keys(a).forEach(function(n){s[n]=a[n]}),l.exports=s},{"./deep-equal":25,"./get-class":27,"./is-date":30,"./is-set":35,"./is-subset":36,"./matcher":39}],39:[function(n,l,e){var t=n("@sinonjs/commons").prototypes.array,u=n("./deep-equal").use(_),r=n("@sinonjs/commons").every,o=n("@sinonjs/commons").functionName,i=n("lodash.get"),a=n("./iterable-to-string"),s=n("@sinonjs/commons").prototypes.object,c=n("@sinonjs/commons").prototypes.string,f=n("@sinonjs/commons").typeOf,p=n("@sinonjs/commons").valueToString,d=t.indexOf,h=t.every,g=t.join,m=t.map,y=t.some,b=s.hasOwnProperty,v=s.isPrototypeOf,w=c.indexOf;function A(n,l,e){var t=f(n);if(t!==l)throw new TypeError("Expected type of "+e+" to be "+l+", but was "+t)}var E={toString:function(){return this.message}};function x(n){return v(E,n)}var C={function:function(n,l,e){n.test=l,n.message=e||"match("+o(l)+")"},number:function(n,l){n.test=function(n){return l==n}},object:function(n,l){var e;return"function"==typeof l.test?(n.test=function(n){return!0===l.test(n)},n.message="match("+o(l.test)+")",n):(e=m(Object.keys(l),function(n){return n+": "+p(l[n])}),n.test=function(n){return function n(l,e){return null!=l&&h(Object.keys(e),function(t){var r=e[t],o=l[t];if(x(r)){if(!r.test(o))return!1}else if("object"===f(r)){if(!n(o,r))return!1}else if(!u(o,r))return!1;return!0})}(n,l)},n.message="match("+g(e,", ")+")",n)},regexp:function(n,l){n.test=function(n){return"string"==typeof n&&l.test(n)}},string:function(n,l){n.test=function(n){return"string"==typeof n&&-1!==w(n,l)},n.message='match("'+l+'")'}};function _(n,l){var e=Object.create(E),t=f(n);return t in C?C[t](e,n,l):e.test=function(l){return u(l,n)},e.message||(e.message="match("+p(n)+")"),e}function S(n,l){return function(e,t){A(e,"string","property");var r=1===arguments.length,o=l+'("'+e+'"';return r||(o+=", "+p(t)),_(function(l){return!(null==l||!n(l,e))&&(r||u(l[e],t))},o+=")")}}E.or=function(n){if(!arguments.length)throw new TypeError("Matcher expected");x(n)||(n=_(n));var l=this,e=Object.create(E);return e.test=function(e){return l.test(e)||n.test(e)},e.message=l.message+".or("+n.message+")",e},E.and=function(n){if(!arguments.length)throw new TypeError("Matcher expected");x(n)||(n=_(n));var l=this,e=Object.create(E);return e.test=function(e){return l.test(e)&&n.test(e)},e.message=l.message+".and("+n.message+")",e},_.isMatcher=x,_.any=_(function(){return!0},"any"),_.defined=_(function(n){return null!=n},"defined"),_.truthy=_(function(n){return!!n},"truthy"),_.falsy=_(function(n){return!n},"falsy"),_.same=function(n){return _(function(l){return n===l},"same("+p(n)+")")},_.in=function(n){if(!Array.isArray(n))throw new TypeError("array expected");return _(function(l){return y(n,function(n){return n===l})},"in("+p(n)+")")},_.typeOf=function(n){return A(n,"string","type"),_(function(l){return f(l)===n},'typeOf("'+n+'")')},_.instanceOf=function(n){return"undefined"==typeof Symbol||void 0===Symbol.hasInstance?A(n,"function","type"):function(n,l,e,t){if(null==n[l])throw new TypeError("Expected "+e+" to have method "+t)}(n,Symbol.hasInstance,"type","[Symbol.hasInstance]"),_(function(l){return l instanceof n},"instanceOf("+(o(n)||Object.prototype.toString.call(n))+")")},_.has=S(function(n,l){return"object"===_typeof2(n)?l in n:void 0!==n[l]},"has"),_.hasOwn=S(function(n,l){return b(n,l)},"hasOwn"),_.hasNested=function(n,l){A(n,"string","property");var e=1===arguments.length,t='hasNested("'+n+'"';return e||(t+=", "+p(l)),_(function(t){return null!=t&&void 0!==i(t,n)&&(e||u(i(t,n),l))},t+=")")},_.every=function(n){if(!x(n))throw new TypeError("Matcher expected");return _(function(l){return"object"===f(l)?r(Object.keys(l),function(e){return n.test(l[e])}):!!l&&"function"===f(l.forEach)&&r(l,function(l){return n.test(l)})},"every("+n.message+")")},_.some=function(n){if(!x(n))throw new TypeError("Matcher expected");return _(function(l){return"object"===f(l)?!r(Object.keys(l),function(e){return!n.test(l[e])}):!!l&&"function"===f(l.forEach)&&!r(l,function(l){return!n.test(l)})},"some("+n.message+")")},_.array=_.typeOf("array"),_.array.deepEquals=function(n){return _(function(l){var e=l.length===n.length;return"array"===f(l)&&e&&r(l,function(l,e){return n[e]===l})},"deepEquals(["+a(n)+"])")},_.array.startsWith=function(n){return _(function(l){return"array"===f(l)&&r(n,function(n,e){return l[e]===n})},"startsWith(["+a(n)+"])")},_.array.endsWith=function(n){return _(function(l){var e=l.length-n.length;return"array"===f(l)&&r(n,function(n,t){return l[e+t]===n})},"endsWith(["+a(n)+"])")},_.array.contains=function(n){return _(function(l){return"array"===f(l)&&r(n,function(n){return-1!==d(l,n)})},"contains(["+a(n)+"])")},_.map=_.typeOf("map"),_.map.deepEquals=function(n){return _(function(l){var e=l.size===n.size;return"map"===f(l)&&e&&r(l,function(l,e){return n.has(e)&&n.get(e)===l})},"deepEquals(Map["+a(n)+"])")},_.map.contains=function(n){return _(function(l){return"map"===f(l)&&r(n,function(n,e){return l.has(e)&&l.get(e)===n})},"contains(Map["+a(n)+"])")},_.set=_.typeOf("set"),_.set.deepEquals=function(n){return _(function(l){var e=l.size===n.size;return"set"===f(l)&&e&&r(l,function(l){return n.has(l)})},"deepEquals(Set["+a(n)+"])")},_.set.contains=function(n){return _(function(l){return"set"===f(l)&&r(n,function(n){return l.has(n)})},"contains(Set["+a(n)+"])")},_.bool=_.typeOf("boolean"),_.number=_.typeOf("number"),_.string=_.typeOf("string"),_.object=_.typeOf("object"),_.func=_.typeOf("function"),_.regexp=_.typeOf("regexp"),_.date=_.typeOf("date"),_.symbol=_.typeOf("symbol"),l.exports=_},{"./deep-equal":25,"./iterable-to-string":37,"@sinonjs/commons":15,"lodash.get":43}],40:[function(n,l,e){var t=n("./identical"),u=n("./is-arguments"),r=n("./is-element"),o=n("./is-neg-zero"),i=n("./match"),a=n("./deep-equal").use(i),s=n("./matcher");l.exports={createMatcher:s,deepEqual:a,isArguments:u,isElement:r,isNegZero:o,identical:t,match:i}},{"./deep-equal":25,"./identical":28,"./is-arguments":29,"./is-element":31,"./is-neg-zero":33,"./match":38,"./matcher":39}],41:[function(n,l,e){l.exports=Array.isArray||function(n){return"[object Array]"==Object.prototype.toString.call(n)}},{}],42:[function(n,l,e){l.exports=function n(){var l=[].slice.call(arguments);var e=!1;"boolean"==typeof l[0]&&(e=l.shift());var t=l[0];if(!t||"object"!=_typeof2(t)&&"function"!=typeof t)throw new Error("extendee must be an object");var u=l.slice(1);var r=u.length;for(var o=0;o-1},B.prototype.set=function(n,l){var e=this.__data__,t=L(e,n);return t<0?e.push([n,l]):e[t][1]=l,this},$.prototype.clear=function(){this.__data__={hash:new O,map:new(F||B),string:new O}},$.prototype.delete=function(n){return R(this,n).delete(n)},$.prototype.get=function(n){return R(this,n).get(n)},$.prototype.has=function(n){return R(this,n).has(n)},$.prototype.set=function(n,l){return R(this,n).set(n,l),this};var q=H(function(n){var l;n=null==(l=n)?"":function(n){if("string"==typeof n)return n;if(V(n))return j?j.call(n):"";var l=n+"";return"0"==l&&1/n==-u?"-0":l}(l);var e=[];return c.test(n)&&e.push(""),n.replace(f,function(n,l,t,u){e.push(t?u.replace(p,"$1"):l||n)}),e});function U(n){if("string"==typeof n||V(n))return n;var l=n+"";return"0"==l&&1/n==-u?"-0":l}function H(n,l){if("function"!=typeof n||l&&"function"!=typeof l)throw new TypeError(e);var t=function e(){var t=arguments,u=l?l.apply(this,t):t[0],r=e.cache;if(r.has(u))return r.get(u);var o=n.apply(this,t);return e.cache=r.set(u,o),o};return t.cache=new(H.Cache||$),t}H.Cache=$;var z=Array.isArray;function W(n){var l=_typeof2(n);return!!n&&("object"==l||"function"==l)}function V(n){return"symbol"==_typeof2(n)||function(n){return!!n&&"object"==_typeof2(n)}(n)&&_.call(n)==i}l.exports=function(n,l,e){var t=null==n?void 0:N(n,l);return void 0===t?e:t}}).call(this,void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],44:[function(require,module,exports){(function(global){var userAgent=global.navigator&&global.navigator.userAgent,isRunningInIE=userAgent&&userAgent.indexOf("MSIE ")>-1,maxTimeout=Math.pow(2,31)-1;isRunningInIE&&(global.setTimeout=global.setTimeout,global.clearTimeout=global.clearTimeout,global.setInterval=global.setInterval,global.clearInterval=global.clearInterval,global.Date=global.Date),void 0!==global.setImmediate&&(global.setImmediate=global.setImmediate,global.clearImmediate=global.clearImmediate);var NOOP=function(){},timeoutResult=setTimeout(NOOP,0),addTimerReturnsObject="object"===_typeof2(timeoutResult),hrtimePresent=global.process&&"function"==typeof global.process.hrtime,nextTickPresent=global.process&&"function"==typeof global.process.nextTick,performancePresent=global.performance&&"function"==typeof global.performance.now,requestAnimationFramePresent=global.requestAnimationFrame&&"function"==typeof global.requestAnimationFrame,cancelAnimationFramePresent=global.cancelAnimationFrame&&"function"==typeof global.cancelAnimationFrame;clearTimeout(timeoutResult);var NativeDate=Date,uniqueTimerId=1;function parseTime(n){if(!n)return 0;var l,e=n.split(":"),t=e.length,u=t,r=0;if(t>3||!/^(\d\d:){0,2}\d\d?$/.test(n))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;u--;){if((l=parseInt(e[u],10))>=60)throw new Error("Invalid time "+n);r+=l*Math.pow(60,t-u-1)}return 1e3*r}function fixedFloor(n){return n>=0?Math.floor(n):Math.ceil(n)}function fixedModulo(n,l){return(n%l+l)%l}function getEpoch(n){if(!n)return 0;if("function"==typeof n.getTime)return n.getTime();if("number"==typeof n)return n;throw new TypeError("now should be milliseconds since UNIX epoch")}function inRange(n,l,e){return e&&e.callAt>=n&&e.callAt<=l}function mirrorDateProperties(n,l){var e;for(e in l)l.hasOwnProperty(e)&&(n[e]=l[e]);return l.now?n.now=function(){return n.clock.now}:delete n.now,l.toSource?n.toSource=function(){return l.toSource()}:delete n.toSource,n.toString=function(){return l.toString()},n.prototype=l.prototype,n.parse=l.parse,n.UTC=l.UTC,n.prototype.toUTCString=l.prototype.toUTCString,n}function createDate(){return mirrorDateProperties(function n(l,e,t,u,r,o,i){switch(arguments.length){case 0:return new NativeDate(n.clock.now);case 1:return new NativeDate(l);case 2:return new NativeDate(l,e);case 3:return new NativeDate(l,e,t);case 4:return new NativeDate(l,e,t,u);case 5:return new NativeDate(l,e,t,u,r);case 6:return new NativeDate(l,e,t,u,r,o);default:return new NativeDate(l,e,t,u,r,o,i)}},NativeDate)}function enqueueJob(n,l){n.jobs||(n.jobs=[]),n.jobs.push(l)}function runJobs(n){if(n.jobs){for(var l=0;lmaxTimeout?1:l.delay,l.delay=Math.max(0,l.delay)),l.hasOwnProperty("interval")&&(l.type="Interval",l.interval=l.interval>maxTimeout?1:l.interval),l.hasOwnProperty("animation")&&(l.type="AnimationFrame",l.animation=!0),n.timers||(n.timers={}),l.id=uniqueTimerId++,l.createdAt=n.now,l.callAt=n.now+(parseInt(l.delay)||(n.duringTick?1:0)),n.timers[l.id]=l,addTimerReturnsObject?{id:l.id,ref:NOOP,unref:NOOP}:l.id}function compareTimers(n,l){return n.callAtl.callAt?1:n.immediate&&!l.immediate?-1:!n.immediate&&l.immediate?1:n.createdAtl.createdAt?1:n.idl.id?1:void 0}function firstTimerInRange(n,l,e){var t,u=n.timers,r=null;for(t in u)u.hasOwnProperty(t)&&(!inRange(l,e,u[t])||r&&1!==compareTimers(r,u[t])||(r=u[t]));return r}function firstTimer(n){var l,e=n.timers,t=null;for(l in e)e.hasOwnProperty(l)&&(t&&1!==compareTimers(t,e[l])||(t=e[l]));return t}function lastTimer(n){var l,e=n.timers,t=null;for(l in e)e.hasOwnProperty(l)&&(t&&-1!==compareTimers(t,e[l])||(t=e[l]));return t}function callTimer(clock,timer){"number"==typeof timer.interval?clock.timers[timer.id].callAt+=timer.interval:delete clock.timers[timer.id],"function"==typeof timer.func?timer.func.apply(null,timer.args):eval(timer.func)}function clearTimer(n,l,e){if(l&&(n.timers||(n.timers=[]),"object"===_typeof2(l)&&(l=l.id),n.timers.hasOwnProperty(l))){var t=n.timers[l];if(t.type!==e){var u="AnimationFrame"===e?"cancelAnimationFrame":"clear"+e,r="AnimationFrame"===t.type?"requestAnimationFrame":"set"+t.type;throw new Error("Cannot clear timer: timer created with "+r+"() but cleared with "+u+"()")}delete n.timers[l]}}function uninstall(n,l,e){var t,u,r;for(u=0,r=n.methods.length;u1||n instanceof Date||Array.isArray(n)||"number"==typeof n)throw new TypeError("lolex.install called with "+String(n)+" lolex 2.0+ requires an object parameter - see https://github.com/sinonjs/lolex");var l,e;(n=void 0!==n?n:{}).shouldAdvanceTime=n.shouldAdvanceTime||!1,n.advanceTimeDelta=n.advanceTimeDelta||20;var t=n.target||global,u=createClock(n.now,n.loopLimit);for(u.uninstall=function(){return uninstall(u,t,n)},u.methods=n.toFake||[],0===u.methods.length&&(u.methods=keys(timers).filter(function(n){return"nextTick"!==n})),l=0,e=u.methods.length;l>6*e)+u];e>0;){var o=l>>6*(e-1);r.push(128|63&o),e-=1}return r}}function k(n,l){var e=l.fatal;this.handler=function(l,t){if(t===a)return c;if(o(t))return t;var u=n[t-128];return null===u?f(e):u}}function F(n,l){l.fatal;this.handler=function(l,e){if(e===a)return c;if(i(e))return e;var t=A(e,n);return null===t&&p(e),t+128}}function D(n){var l=n.fatal,e=0,u=0,r=0;this.handler=function(n,i){if(i===a&&0===e&&0===u&&0===r)return c;var s;if(i!==a||0===e&&0===u&&0===r||(e=0,u=0,r=0,f(l)),0!==r){s=null,t(i,48,57)&&(s=function(n){if(n>39419&&n<189e3||n>1237575)return null;if(7457===n)return 59335;var l,e=0,t=0,u=E("gb18030-ranges");for(l=0;l>8,t=255&n;return l?[e,t]:[t,e]}function H(n,l){var e=l.fatal,u=null,r=null;this.handler=function(l,o){if(o===a&&(null!==u||null!==r))return f(e);if(o===a&&null===u&&null===r)return c;if(null===u)return u=o,null;var i;if(i=n?(u<<8)+o:(o<<8)+u,u=null,null!==r){var s=r;return r=null,t(i,56320,57343)?65536+1024*(s-55296)+(i-56320):(l.prepend(U(i,n)),f(e))}return t(i,55296,56319)?(r=i,null):t(i,56320,57343)?f(e):i}}function z(n,l){l.fatal;this.handler=function(l,e){if(e===a)return c;if(t(e,0,65535))return U(e,n);var u=U(55296+(e-65536>>10),n),r=U(56320+(e-65536&1023),n);return u.concat(r)}}function W(n){n.fatal;this.handler=function(n,l){return l===a?c:o(l)?l:63360+l-128}}function V(n){n.fatal;this.handler=function(n,l){return l===a?c:i(l)?l:t(l,63360,63487)?l-63360+128:p(l)}}Object.defineProperty&&(Object.defineProperty(C.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(C.prototype,"fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(C.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}})),C.prototype.decode=function(n,l){var e;e="object"===_typeof2(n)&&n instanceof ArrayBuffer?new Uint8Array(n):"object"===_typeof2(n)&&"buffer"in n&&n.buffer instanceof ArrayBuffer?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(0),l=r(l),this._do_not_flush||(this._decoder=v[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(l.stream);for(var t,u=new s(e),o=[];;){var i=u.read();if(i===a)break;if((t=this._decoder.handler(u,i))===c)break;null!==t&&(Array.isArray(t)?o.push.apply(o,t):o.push(t))}if(!this._do_not_flush){do{if((t=this._decoder.handler(u,u.read()))===c)break;null!==t&&(Array.isArray(t)?o.push.apply(o,t):o.push(t))}while(!u.endOfStream());this._decoder=null}return function(n){var l,e;return l=["UTF-8","UTF-16LE","UTF-16BE"],e=this._encoding.name,-1===l.indexOf(e)||this._ignoreBOM||this._BOMseen||(n.length>0&&65279===n[0]?(this._BOMseen=!0,n.shift()):n.length>0&&(this._BOMseen=!0)),function(n){for(var l="",e=0;e>10),56320+(1023&t)))}return l}(n)}.call(this,o)},Object.defineProperty&&Object.defineProperty(_.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),_.prototype.encode=function(n,l){n=void 0===n?"":String(n),l=r(l),this._do_not_flush||(this._encoder=b[this._encoding.name]({fatal:"fatal"===this._fatal})),this._do_not_flush=Boolean(l.stream);for(var e,t=new s(function(n){for(var l=String(n),e=l.length,t=0,u=[];t57343)u.push(r);else if(56320<=r&&r<=57343)u.push(65533);else if(55296<=r&&r<=56319)if(t===e-1)u.push(65533);else{var o=l.charCodeAt(t+1);if(56320<=o&&o<=57343){var i=1023&r,a=1023&o;u.push(65536+(i<<10)+a),t+=1}else u.push(65533)}t+=1}return u}(n)),u=[];;){var o=t.read();if(o===a)break;if((e=this._encoder.handler(t,o))===c)break;Array.isArray(e)?u.push.apply(u,e):u.push(e)}if(!this._do_not_flush){for(;(e=this._encoder.handler(t,t.read()))!==c;)Array.isArray(e)?u.push.apply(u,e):u.push(e);this._encoder=null}return new Uint8Array(u)},b["UTF-8"]=function(n){return new T(n)},v["UTF-8"]=function(n){return new S(n)},"encoding-indexes"in e&&h.forEach(function(n){"Legacy single-byte encodings"===n.heading&&n.encodings.forEach(function(n){var l=n.name,e=E(l.toLowerCase());v[l]=function(n){return new k(e,n)},b[l]=function(n){return new F(e,n)}})}),v.GBK=function(n){return new D(n)},b.GBK=function(n){return new P(n,!0)},b.gb18030=function(n){return new P(n)},v.gb18030=function(n){return new D(n)},b.Big5=function(n){return new O(n)},v.Big5=function(n){return new j(n)},b["EUC-JP"]=function(n){return new $(n)},v["EUC-JP"]=function(n){return new B(n)},b["ISO-2022-JP"]=function(n){return new N(n)},v["ISO-2022-JP"]=function(n){return new L(n)},b.Shift_JIS=function(n){return new R(n)},v.Shift_JIS=function(n){return new M(n)},b["EUC-KR"]=function(n){return new q(n)},v["EUC-KR"]=function(n){return new I(n)},b["UTF-16BE"]=function(n){return new z(!0,n)},v["UTF-16BE"]=function(n){return new H(!0,n)},b["UTF-16LE"]=function(n){return new z(!1,n)},v["UTF-16LE"]=function(n){return new H(!1,n)},b["x-user-defined"]=function(n){return new V(n)},v["x-user-defined"]=function(n){return new W(n)},e.TextEncoder||(e.TextEncoder=_),e.TextDecoder||(e.TextDecoder=C),void 0!==l&&l.exports&&(l.exports={TextEncoder:e.TextEncoder,TextDecoder:e.TextDecoder,EncodingIndexes:e["encoding-indexes"]})}(this||{})},{"./encoding-indexes.js":47}],49:[function(n,l,e){(function(n){!function(n,t){"object"===_typeof2(e)&&void 0!==l?l.exports=t():"function"==typeof define&&define.amd?define(t):n.typeDetect=t()}(this,function(){var l="function"==typeof Promise,e="object"===("undefined"==typeof self?"undefined":_typeof2(self))?self:n,t="undefined"!=typeof Symbol,u="undefined"!=typeof Map,r="undefined"!=typeof Set,o="undefined"!=typeof WeakMap,i="undefined"!=typeof WeakSet,a="undefined"!=typeof DataView,s=t&&void 0!==Symbol.iterator,c=t&&void 0!==Symbol.toStringTag,f=r&&"function"==typeof Set.prototype.entries,p=u&&"function"==typeof Map.prototype.entries,d=f&&Object.getPrototypeOf((new Set).entries()),h=p&&Object.getPrototypeOf((new Map).entries()),g=s&&"function"==typeof Array.prototype[Symbol.iterator],m=g&&Object.getPrototypeOf([][Symbol.iterator]()),y=s&&"function"==typeof String.prototype[Symbol.iterator],b=y&&Object.getPrototypeOf(""[Symbol.iterator]()),v=8,w=-1;return function(n){var t=_typeof2(n);if("object"!==t)return t;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===c||!(Symbol.toStringTag in n)))return"Array";if("object"===("undefined"==typeof window?"undefined":_typeof2(window))&&null!==window){if("object"===_typeof2(window.location)&&n===window.location)return"Location";if("object"===_typeof2(window.document)&&n===window.document)return"Document";if("object"===_typeof2(window.navigator)){if("object"===_typeof2(window.navigator.mimeTypes)&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"===_typeof2(window.navigator.plugins)&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"===_typeof2(window.HTMLElement))&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var s=c&&n[Symbol.toStringTag];if("string"==typeof s)return s;var f=Object.getPrototypeOf(n);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":l&&f===Promise.prototype?"Promise":r&&f===Set.prototype?"Set":u&&f===Map.prototype?"Map":i&&f===WeakSet.prototype?"WeakSet":o&&f===WeakMap.prototype?"WeakMap":a&&f===DataView.prototype?"DataView":u&&f===h?"Map Iterator":r&&f===d?"Set Iterator":g&&f===m?"Array Iterator":y&&f===b?"String Iterator":null===f?"Object":Object.prototype.toString.call(n).slice(v,w)}})}).call(this,void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[12])(12)},module.exports=f()}),arrayProto$e=lib.prototypes.array,match$5=samsam.createMatcher,valueToString$9=lib.valueToString,fakeServer=nise.fakeServer,fakeXhr=nise.fakeXhr,filter$3=arrayProto$e.filter,forEach$8=arrayProto$e.filter,push$6=arrayProto$e.push,reverse$1=arrayProto$e.reverse;function applyOnEach(n,l){var e=filter$3(n,function(n){return"function"==typeof n[l]});forEach$8(e,function(n){n[l]()})}function Sandbox(){var n,l=this,e=[],t=[];function u(n,l){var e=getPropertyDescriptor(n,l);function t(){Object.defineProperty(n,l,e)}return t.object=n,t.property=l,t}function r(n,l){forEach$8(t,function(e){if(e.object===n&&e.property===l)throw new TypeError("Attempted to replace "+l+" which is already replaced")})}l.serverPrototype=fakeServer,l.getFakes=function(){return e},l.getRestorers=function(){return t},l.createStubInstance=function(n){if("function"!=typeof n)throw new TypeError("The constructor should be a function.");return this.stub(Object.create(n.prototype))},l.inject=function(n){return n.spy=function(){return l.spy.apply(null,arguments)},n.stub=function(){return l.stub.apply(null,arguments)},n.mock=function(){return l.mock.apply(null,arguments)},l.clock&&(n.clock=l.clock),l.server&&(n.server=l.server,n.requests=l.server.requests),n.match=match$5,n},l.mock=function(){var l=mock_1.apply(null,arguments);return push$6(e,l),usePromiseLibrary_1(n,l),l},l.reset=function(){applyOnEach(e,"reset"),applyOnEach(e,"resetHistory")},l.resetBehavior=function(){applyOnEach(e,"resetBehavior")},l.resetHistory=function(){function n(n){var l=n.resetHistory||n.reset;l&&l.call(n)}forEach$8(e,function(l){if("function"!=typeof l){var e=[];l.get&&push$6(e,l.get),l.set&&push$6(e,l.set),forEach$8(e,n)}else n(l)})},l.restore=function(){if(arguments.length)throw new Error("sandbox.restore() does not take any parameters. Perhaps you meant stub.restore()");reverse$1(e),applyOnEach(e,"restore"),e=[],forEach$8(t,function(n){n()}),t=[],l.restoreContext()},l.restoreContext=function(){var n=l.injectedKeys,e=l.injectInto;n&&(forEach$8(n,function(n){delete e[n]}),n=[])},l.replace=function(n,l,e){var o=getPropertyDescriptor(n,l);if(void 0===o)throw new TypeError("Cannot replace non-existent own property "+valueToString$9(l));if(void 0===e)throw new TypeError("Expected replacement argument to be defined");if("function"==typeof o.get)throw new Error("Use sandbox.replaceGetter for replacing getters");if("function"==typeof o.set)throw new Error("Use sandbox.replaceSetter for replacing setters");if(_typeof2(n[l])!==_typeof2(e))throw new TypeError("Cannot replace "+_typeof2(n[l])+" with "+_typeof2(e));return r(n,l),push$6(t,u(n,l)),n[l]=e,e},l.replaceGetter=function(n,l,e){var o=getPropertyDescriptor(n,l);if(void 0===o)throw new TypeError("Cannot replace non-existent own property "+valueToString$9(l));if("function"!=typeof e)throw new TypeError("Expected replacement argument to be a function");if("function"!=typeof o.get)throw new Error("`object.property` is not a getter");return r(n,l),push$6(t,u(n,l)),Object.defineProperty(n,l,{get:e,configurable:isPropertyConfigurable_1(n,l)}),e},l.replaceSetter=function(n,l,e){var o=getPropertyDescriptor(n,l);if(void 0===o)throw new TypeError("Cannot replace non-existent own property "+valueToString$9(l));if("function"!=typeof e)throw new TypeError("Expected replacement argument to be a function");if("function"!=typeof o.set)throw new Error("`object.property` is not a setter");return r(n,l),push$6(t,u(n,l)),Object.defineProperty(n,l,{set:e,configurable:isPropertyConfigurable_1(n,l)}),e},l.spy=function(){var n=spy_1.apply(spy_1,arguments);return push$6(e,n),n},l.stub=function(l,t){if(isEsModule(l))throw new TypeError("ES Modules cannot be stubbed");if(isNonExistentOwnProperty_1(l,t))throw new TypeError("Cannot stub non-existent own property "+valueToString$9(t));var u=stub_1.apply(null,arguments);if(void 0===t&&"object"===_typeof2(l)){var r=collectOwnMethods_1(u);forEach$8(r,function(n){push$6(e,n)}),usePromiseLibrary_1(n,r)}else push$6(e,u),usePromiseLibrary_1(n,u);return u},l.fake=function(n){var l=fake_1.apply(fake_1,arguments);return push$6(e,l),l},forEach$8(Object.keys(fake_1),function(n){var t=fake_1[n];"function"==typeof t&&(l.fake[n]=function(){var n=t.apply(t,arguments);return push$6(e,n),n})}),l.useFakeTimers=function(n){var t=fakeTimers.useFakeTimers.call(null,n);return l.clock=t,push$6(e,t),t},l.verify=function(){applyOnEach(e,"verify")},l.verifyAndRestore=function(){var n;try{l.verify()}catch(l){n=l}if(l.restore(),n)throw n},l.useFakeServer=function(){var n=l.serverPrototype||fakeServer;return n&&n.create?(l.server=n.create(),push$6(e,l.server),l.server):null},l.useFakeXMLHttpRequest=function(){var n=fakeXhr.useFakeXMLHttpRequest();return push$6(e,n),n},l.usingPromise=function(t){return n=t,e.promiseLibrary=t,l}}Sandbox.prototype.assert=assert_1,Sandbox.prototype.match=match$5;var sandbox=Sandbox,arrayProto$f=lib.prototypes.array,forEach$9=arrayProto$f.forEach,push$7=arrayProto$f.push;function prepareSandboxFromConfig(n){var l=new sandbox;return n.useFakeServer&&("object"===_typeof2(n.useFakeServer)&&(l.serverPrototype=n.useFakeServer),l.useFakeServer()),n.useFakeTimers&&("object"===_typeof2(n.useFakeTimers)?l.useFakeTimers(n.useFakeTimers):l.useFakeTimers()),l}function exposeValue(n,l,e,t){t&&(!l.injectInto||e in l.injectInto?push$7(n.args,t):(l.injectInto[e]=t,push$7(n.injectedKeys,e)))}function createSandbox(n){if(!n)return new sandbox;var l=prepareSandboxFromConfig(n);l.args=l.args||[],l.injectedKeys=[],l.injectInto=n.injectInto;var e=l.inject({});return n.properties?forEach$9(n.properties,function(t){var u=e[t]||"sandbox"===t&&l;exposeValue(l,n,t,u)}):exposeValue(l,n,"sandbox"),l}var createSandbox_1=createSandbox,deprecated=createCommonjsModule(function(n,l){l.wrap=function(n,e){var t=function(){return l.printWarning(e),n.apply(this,arguments)};return n.prototype&&(t.prototype=n.prototype),t},l.defaultMsg=function(n){return"sinon."+n+" is deprecated and will be removed from the public API in a future version of sinon."},l.printWarning=function(n){"undefined"!=typeof console&&(console.info?console.info(n):console.log(n))}}),deprecated_1=deprecated.wrap,deprecated_2=deprecated.defaultMsg,deprecated_3=deprecated.printWarning,defaultConfig={injectIntoThis:!0,injectInto:null,properties:["spy","stub","mock","clock","server","requests"],useFakeTimers:!0,useFakeServer:!0},apiMethods={createSandbox:createSandbox_1,assert:assert_1,match:samsam.createMatcher,spyCall:call$1,expectation:mockExpectation_1,createStubInstance:stub_1.createStubInstance,defaultConfig:defaultConfig,setFormatter:format_1.setFormatter,timers:fakeTimers.timers,xhr:nise.fakeXhr.xhr,FakeXMLHttpRequest:nise.fakeXhr.FakeXMLHttpRequest,fakeServer:nise.fakeServer,fakeServerWithClock:nise.fakeServerWithClock,createFakeServer:nise.fakeServer.create.bind(nise.fakeServer),createFakeServerWithClock:nise.fakeServerWithClock.create.bind(nise.fakeServerWithClock),addBehavior:function(n,l){behavior.addBehavior(stub_1,n,l)}},legacySandboxAPI={sandbox:{create:deprecated.wrap(createSandbox_1,"`sandbox.create()` is deprecated. Use default sandbox at `sinon.sandbox` or create new sandboxes with `sinon.createSandbox()`")}},sandbox$1=new sandbox,api=extend(sandbox$1,legacySandboxAPI,apiMethods),sinon=api;__webpack_exports__.default=sinon;var _serverPrototype=sinon.serverPrototype,_getFakes=sinon.getFakes,_getRestorers=sinon.getRestorers,_createStubInstance=sinon.createStubInstance,_inject=sinon.inject,_mock=sinon.mock,_reset=sinon.reset,_resetBehavior=sinon.resetBehavior,_resetHistory=sinon.resetHistory,_restore=sinon.restore,_restoreContext=sinon.restoreContext,_replace=sinon.replace,_replaceGetter=sinon.replaceGetter,_replaceSetter=sinon.replaceSetter,_spy=sinon.spy,_stub=sinon.stub,_fake=sinon.fake,_useFakeTimers=sinon.useFakeTimers,_verify=sinon.verify,_verifyAndRestore=sinon.verifyAndRestore,_useFakeServer=sinon.useFakeServer,_useFakeXMLHttpRequest=sinon.useFakeXMLHttpRequest,_usingPromise=sinon.usingPromise,_sandbox=sinon.sandbox,_createSandbox=sinon.createSandbox,_assert=sinon.assert,_match=sinon.match,_spyCall=sinon.spyCall,_expectation=sinon.expectation,_defaultConfig=sinon.defaultConfig,_setFormatter=sinon.setFormatter,_timers=sinon.timers,_xhr=sinon.xhr,_FakeXMLHttpRequest=sinon.FakeXMLHttpRequest,_fakeServer=sinon.fakeServer,_fakeServerWithClock=sinon.fakeServerWithClock,_createFakeServer=sinon.createFakeServer,_createFakeServerWithClock=sinon.createFakeServerWithClock,_addBehavior=sinon.addBehavior}.call(this,__webpack_require__(15),__webpack_require__(38).setImmediate,__webpack_require__(38).clearImmediate)},function(n,l){var e,t,u=n.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(n){if(e===setTimeout)return setTimeout(n,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(n,0);try{return e(n,0)}catch(l){try{return e.call(null,n,0)}catch(l){return e.call(this,n,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(n){e=r}try{t="function"==typeof clearTimeout?clearTimeout:o}catch(n){t=o}}();var a,s=[],c=!1,f=-1;function p(){c&&a&&(c=!1,a.length?s=a.concat(s):f=-1,s.length&&d())}function d(){if(!c){var n=i(p);c=!0;for(var l=s.length;l;){for(a=s,s=[];++f1)for(var e=1;e4?l[4]:n._obj}},function(n,l,e){var t=e(40),u=e(8);n.exports=function(n){var l=t(n),e=Object.prototype.toString.call(n);if(u.truncateThreshold&&l.length>=u.truncateThreshold){if("[object Function]"===e)return n.name&&""!==n.name?"[Function: "+n.name+"]":"[Function]";if("[object Array]"===e)return"[ Array("+n.length+") ]";if("[object Object]"===e){var r=Object.keys(n);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}return l}return l}},function(n,l,e){"use strict";var t=Function.prototype.toString,u=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;n.exports=function(n){if("function"!=typeof n)return null;var l="";if(void 0===Function.prototype.name&&void 0===n.name){var e=t.call(n).match(u);e&&(l=e[1])}else l=n.name;return l}},function(n,l){n.exports=function(n){var l=Object.getOwnPropertyNames(n);function e(n){-1===l.indexOf(n)&&l.push(n)}for(var t=Object.getPrototypeOf(n);null!==t;)Object.getOwnPropertyNames(t).forEach(e),t=Object.getPrototypeOf(t);return l}},function(n,l){n.exports=function(n){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})}},,,,function(n,l,e){"use strict";(function(n){e(53),mocha.setup({reporter:"html",ui:"bdd"});var l=e(55);l.keys().forEach(l),n.nextTick(function(){return mocha.run()})}).call(this,e(42))},function(n,l,e){(function(n,l){var e;function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}!function(){return function n(l,t,u){function r(i,a){if(!t[i]){if(!l[i]){if(!a&&"function"==typeof e&&e)return e(i,!0);if(o)return o(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var c=t[i]={exports:{}};l[i][0].call(c.exports,function(n){return r(l[i][1][n]||n)},c,c.exports,n,l,t,u)}return t[i].exports}for(var o="function"==typeof e&&e,i=0;i1&&e.shift(),i.suite.create({title:n,file:r,fn:!1})},u.suite.only=function(n){return e.length>1&&e.shift(),i.suite.only({title:n,file:r,fn:!1})},u.test=function(n,l){var u=new t(n,l);return u.file=r,e[0].addTest(u),u},u.test.only=function(n,l){return i.test.only(o,u.test(n,l))},u.test.skip=i.test.skip,u.test.retries=i.test.retries})}},{"../test":35,"./common":8}],12:[function(n,l,e){"use strict";var t=n("../test");l.exports=function(l){var e=[l];l.on("pre-require",function(u,r,o){var i=n("./common")(e,u,o);u.setup=i.beforeEach,u.teardown=i.afterEach,u.suiteSetup=i.before,u.suiteTeardown=i.after,u.run=o.options.delay&&i.runWithSuite(l),u.suite=function(n,l){return i.suite.create({title:n,file:r,fn:l})},u.suite.skip=function(n,l){return i.suite.skip({title:n,file:r,fn:l})},u.suite.only=function(n,l){return i.suite.only({title:n,file:r,fn:l})},u.test=function(n,l){var u=e[0];u.isPending()&&(l=null);var o=new t(n,l);return o.file=r,u.addTest(o),o},u.test.only=function(n,l){return i.test.only(o,u.test(n,l))},u.test.skip=i.test.skip,u.test.retries=i.test.retries})}},{"../test":35,"./common":8}],13:[function(l,e,t){(function(n,u,r){"use strict";var o=l("escape-string-regexp"),i=l("path"),a=l("./reporters"),s=l("./utils");if(t=e.exports=p,!n.browser){var c=n.cwd();e.paths.push(c,i.join(c,"node_modules"))}function f(n){return i.join(r,"..","assets","growl",n+".png")}function p(n){n=n||{},this.files=[],this.options=n,n.grep&&this.grep(new RegExp(n.grep)),n.fgrep&&this.fgrep(n.fgrep),this.suite=new t.Suite("",new t.Context),this.ui(n.ui),this.bail(n.bail),this.reporter(n.reporter,n.reporterOptions),void 0!==n.timeout&&null!==n.timeout&&this.timeout(n.timeout),void 0!==n.retries&&null!==n.retries&&this.retries(n.retries),this.useColors(n.useColors),null!==n.enableTimeouts&&this.enableTimeouts(n.enableTimeouts),n.slow&&this.slow(n.slow)}t.utils=s,t.interfaces=l("./interfaces"),t.reporters=a,t.Runnable=l("./runnable"),t.Context=l("./context"),t.Runner=l("./runner"),t.Suite=l("./suite"),t.Hook=l("./hook"),t.Test=l("./test"),p.prototype.bail=function(n){return arguments.length||(n=!0),this.suite.bail(n),this},p.prototype.addFile=function(n){return this.files.push(n),this},p.prototype.reporter=function(e,t){if("function"==typeof e)this._reporter=e;else{var u;if(a[e=e||"spec"]&&(u=a[e]),!u)try{u=l(e)}catch(t){if(-1!==t.message.indexOf("Cannot find module"))try{u=l(i.resolve(n.cwd(),e))}catch(n){-1!==t.message.indexOf("Cannot find module")?console.warn('"'+e+'" reporter not found'):console.warn('"'+e+'" reporter blew up with error:\n'+t.stack)}else console.warn('"'+e+'" reporter blew up with error:\n'+t.stack)}if(u||"teamcity"!==e||console.warn("The Teamcity reporter was moved to a package named mocha-teamcity-reporter (https://npmjs.org/package/mocha-teamcity-reporter)."),!u)throw new Error('invalid reporter "'+e+'"');this._reporter=u}return this.options.reporterOptions=t,this},p.prototype.ui=function(n){if(n=n||"bdd",this._ui=t.interfaces[n],!this._ui)try{this._ui=l(n)}catch(l){throw new Error('invalid interface "'+n+'"')}return this._ui=this._ui(this.suite),this.suite.on("pre-require",function(n){t.afterEach=n.afterEach||n.teardown,t.after=n.after||n.suiteTeardown,t.beforeEach=n.beforeEach||n.setup,t.before=n.before||n.suiteSetup,t.describe=n.describe||n.suite,t.it=n.it||n.test,t.xit=n.xit||n.test.skip,t.setup=n.setup||n.beforeEach,t.suiteSetup=n.suiteSetup||n.before,t.suiteTeardown=n.suiteTeardown||n.after,t.suite=n.suite||n.describe,t.teardown=n.teardown||n.afterEach,t.test=n.test||n.it,t.run=n.run}),this},p.prototype.loadFiles=function(n){var e=this,t=this.suite;this.files.forEach(function(n){n=i.resolve(n),t.emit("pre-require",u,n,e),t.emit("require",l(n),n,e),t.emit("post-require",u,n,e)}),n&&n()},p.prototype._growl=function(n,e){var t=l("growl");n.on("end",function(){var l=e.stats;if(l.failures){var u=l.failures+" of "+n.total+" tests failed";t(u,{name:"mocha",title:"Failed",image:f("error")})}else t(l.passes+" tests passed in "+l.duration+"ms",{name:"mocha",title:"Passed",image:f("ok")})})},p.prototype.fgrep=function(n){return this.grep(new RegExp(o(n)))},p.prototype.grep=function(n){if(s.isString(n)){var l=n.match(/^\/(.*)\/(g|i|)$|.*/);this.options.grep=new RegExp(l[1]||l[0],l[2])}else this.options.grep=n;return this},p.prototype.invert=function(){return this.options.invert=!0,this},p.prototype.ignoreLeaks=function(n){return this.options.ignoreLeaks=Boolean(n),this},p.prototype.checkLeaks=function(){return this.options.ignoreLeaks=!1,this},p.prototype.fullTrace=function(){return this.options.fullStackTrace=!0,this},p.prototype.growl=function(){return this.options.growl=!0,this},p.prototype.globals=function(n){return this.options.globals=(this.options.globals||[]).concat(n),this},p.prototype.useColors=function(n){return void 0!==n&&(this.options.useColors=n),this},p.prototype.useInlineDiffs=function(n){return this.options.useInlineDiffs=void 0!==n&&n,this},p.prototype.hideDiff=function(n){return this.options.hideDiff=void 0!==n&&n,this},p.prototype.timeout=function(n){return this.suite.timeout(n),this},p.prototype.retries=function(n){return this.suite.retries(n),this},p.prototype.slow=function(n){return this.suite.slow(n),this},p.prototype.enableTimeouts=function(n){return this.suite.enableTimeouts(!arguments.length||void 0===n||n),this},p.prototype.asyncOnly=function(){return this.options.asyncOnly=!0,this},p.prototype.noHighlighting=function(){return this.options.noHighlighting=!0,this},p.prototype.allowUncaught=function(){return this.options.allowUncaught=!0,this},p.prototype.delay=function(){return this.options.delay=!0,this},p.prototype.forbidOnly=function(){return this.options.forbidOnly=!0,this},p.prototype.forbidPending=function(){return this.options.forbidPending=!0,this},p.prototype.run=function(n){this.files.length&&this.loadFiles();var l=this.suite,e=this.options;e.files=this.files;var u=new t.Runner(l,e.delay),r=new this._reporter(u,e);return u.ignoreLeaks=!1!==e.ignoreLeaks,u.fullStackTrace=e.fullStackTrace,u.asyncOnly=e.asyncOnly,u.allowUncaught=e.allowUncaught,u.forbidOnly=e.forbidOnly,u.forbidPending=e.forbidPending,e.grep&&u.grep(e.grep,e.invert),e.globals&&u.globals(e.globals),e.growl&&this._growl(u,r),void 0!==e.useColors&&(t.reporters.Base.useColors=e.useColors),t.reporters.Base.inlineDiffs=e.useInlineDiffs,t.reporters.Base.hideDiff=e.hideDiff,u.run(function(l){r.done?r.done(l,n):n&&n(l)})}}).call(this,l("_process"),void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},"/lib")},{"./context":5,"./hook":6,"./interfaces":10,"./reporters":20,"./runnable":32,"./runner":33,"./suite":34,"./test":35,"./utils":36,_process:56,"escape-string-regexp":46,growl:2,path:40}],14:[function(n,l,e){"use strict";var t=1e3,u=60*t,r=60*u,o=24*r,i=365.25*o;l.exports=function(n){return"string"==typeof n?function(n){var l=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(n);if(!l)return;var e=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"y":return e*i;case"days":case"day":case"d":return e*o;case"hours":case"hour":case"h":return e*r;case"minutes":case"minute":case"m":return e*u;case"seconds":case"second":case"s":return e*t;case"ms":return e}}(n):function(n){if(n>=o)return Math.round(n/o)+"d";if(n>=r)return Math.round(n/r)+"h";if(n>=u)return Math.round(n/u)+"m";if(n>=t)return Math.round(n/t)+"s";return n+"ms"}(n)}},{}],15:[function(n,l,e){"use strict";l.exports=function(n){this.message=n}},{}],16:[function(l,e,t){(function(n,u){"use strict";var r=l("tty"),o=l("diff"),i=l("../ms"),a=l("../utils"),s=n.browser?null:l("supports-color");t=e.exports=m;var c=u.Date,f=(u.setTimeout,u.setInterval,u.clearTimeout,u.clearInterval,r.isatty(1)&&r.isatty(2));t.useColors=!n.browser&&(s.stdout||void 0!==n.env.MOCHA_COLORS),t.inlineDiffs=!1,t.colors={pass:90,fail:31,"bright pass":92,"bright fail":91,"bright yellow":93,pending:36,suite:0,"error title":0,"error message":31,"error stack":90,checkmark:32,fast:90,medium:33,slow:31,green:32,light:90,"diff gutter":90,"diff added":32,"diff removed":31},t.symbols={ok:"✓",err:"✖",dot:"․",comma:",",bang:"!"},"win32"===n.platform&&(t.symbols.ok="√",t.symbols.err="×",t.symbols.dot=".");var p=t.color=function(n,l){return t.useColors?"["+t.colors[n]+"m"+l+"":String(l)};function d(n){return n&&!1!==n.showDiff&&(l=n.actual,e=n.expected,b.call(l)===b.call(e))&&void 0!==n.expected;var l,e}function h(n){a.isString(n.actual)&&a.isString(n.expected)||(n.actual=a.stringify(n.actual),n.expected=a.stringify(n.expected))}t.window={width:75},f&&(t.window.width=n.stdout.getWindowSize?n.stdout.getWindowSize(1)[0]:r.getWindowSize()[1]),t.cursor={hide:function(){f&&n.stdout.write("[?25l")},show:function(){f&&n.stdout.write("[?25h")},deleteLine:function(){f&&n.stdout.write("")},beginningOfLine:function(){f&&n.stdout.write("")},CR:function(){f?(t.cursor.deleteLine(),t.cursor.beginningOfLine()):n.stdout.write("\r")}};var g=t.generateDiff=function(n,l){return t.inlineDiffs?function(n,l){var e=function(n,l){return o.diffWordsWithSpace(n,l).map(function(n){return n.added?y("diff added",n.value):n.removed?y("diff removed",n.value):n.value}).join("")}(n,l),t=e.split("\n");if(t.length>4){var u=String(t.length).length;e=t.map(function(n,l){return function(n,l){return n=String(n),Array(l-n.length+1).join(" ")+n}(++l,u)+" | "+n}).join("\n")}return e=(e="\n"+p("diff removed","actual")+" "+p("diff added","expected")+"\n\n"+e+"\n").replace(/^/gm," ")}(n,l):function(n,l){var e=" ";var t=o.createPatch("string",n,l).split("\n").splice(5);return"\n "+y("diff added","+ expected")+" "+y("diff removed","- actual")+"\n\n"+t.map(function(n){if("+"===n[0])return e+y("diff added",n);if("-"===n[0])return e+y("diff removed",n);if(n.match(/@@/))return"--";if(n.match(/\\ No newline/))return null;return e+n}).filter(function(n){return null!=n}).join("\n")}(n,l)};function m(n){var l=this.stats={suites:0,tests:0,passes:0,pending:0,failures:0},e=this.failures=[];n&&(this.runner=n,n.stats=l,n.on("start",function(){l.start=new c}),n.on("suite",function(n){l.suites=l.suites||0,n.root||l.suites++}),n.on("test end",function(){l.tests=l.tests||0,l.tests++}),n.on("pass",function(n){l.passes=l.passes||0,n.duration>n.slow()?n.speed="slow":n.duration>n.slow()/2?n.speed="medium":n.speed="fast",l.passes++}),n.on("fail",function(n,t){l.failures=l.failures||0,l.failures++,d(t)&&h(t),n.err=t,e.push(n)}),n.once("end",function(){l.end=new c,l.duration=l.end-l.start}),n.on("pending",function(){l.pending++}))}function y(n,l){return l.split("\n").map(function(l){return p(n,l)}).join("\n")}t.list=function(n){console.log(),n.forEach(function(n,l){var e,u,r=p("error title"," %s) %s:\n")+p("error message"," %s")+p("error stack","\n%s\n"),o=n.err;u=o.message&&"function"==typeof o.message.toString?o.message+"":"function"==typeof o.inspect?o.inspect()+"":"";var i=o.stack||u,a=u?i.indexOf(u):-1;if(-1===a?e=u:(a+=u.length,e=i.slice(0,a),i=i.slice(a+1)),o.uncaught&&(e="Uncaught "+e),!t.hideDiff&&d(o)){h(o),r=p("error title"," %s) %s:\n%s")+p("error stack","\n%s\n");var s=u.match(/^([^:]+): expected/);e="\n "+p("error message",s?s[1]:e),e+=g(o.actual,o.expected)}i=i.replace(/^/gm," ");var c="";n.titlePath().forEach(function(n,l){0!==l&&(c+="\n ");for(var e=0;e',e()),++l,console.log("%s

%s

",e(),u.escape(n.title)),console.log("%s
",e()))}),n.on("suite end",function(n){n.root||(console.log("%s
",e()),--l,console.log("%s",e()),--l)}),n.on("pass",function(n){console.log("%s
%s
",e(),u.escape(n.title));var l=u.escape(u.clean(n.body));console.log("%s
%s
",e(),l)}),n.on("fail",function(n,l){console.log('%s
%s
',e(),u.escape(n.title));var t=u.escape(u.clean(n.body));console.log('%s
%s
',e(),t),console.log('%s
%s
',e(),u.escape(l))})}},{"../utils":36,"./base":16}],18:[function(n,l,e){(function(e){"use strict";var t=n("./base"),u=n("../utils").inherits,r=t.color;function o(n){t.call(this,n);var l=this,u=.75*t.window.width|0,o=-1;n.on("start",function(){e.stdout.write("\n")}),n.on("pending",function(){++o%u==0&&e.stdout.write("\n "),e.stdout.write(r("pending",t.symbols.comma))}),n.on("pass",function(n){++o%u==0&&e.stdout.write("\n "),"slow"===n.speed?e.stdout.write(r("bright yellow",t.symbols.dot)):e.stdout.write(r(n.speed,t.symbols.dot))}),n.on("fail",function(){++o%u==0&&e.stdout.write("\n "),e.stdout.write(r("fail",t.symbols.bang))}),n.once("end",function(){console.log(),l.epilogue()})}l.exports=o,u(o,t)}).call(this,n("_process"))},{"../utils":36,"./base":16,_process:56}],19:[function(l,e,t){(function(n){"use strict";var t=l("./base"),u=l("../utils"),r=l("../browser/progress"),o=l("escape-string-regexp"),i=u.escape,a=n.Date;n.setTimeout,n.setInterval,n.clearTimeout,n.clearInterval;e.exports=f;var s='',c="‣";function f(n){t.call(this,n);var l,e,u,o=this,f=this.stats,p=d(s),b=p.getElementsByTagName("li"),v=b[1].getElementsByTagName("em")[0],w=b[1].getElementsByTagName("a")[0],A=b[2].getElementsByTagName("em")[0],E=b[2].getElementsByTagName("a")[0],x=b[3].getElementsByTagName("em")[0],C=p.getElementsByTagName("canvas")[0],_=d('
    '),S=[_],T=document.getElementById("mocha");if(C.getContext){var k=window.devicePixelRatio||1;C.style.width=C.width,C.style.height=C.height,C.width*=k,C.height*=k,(e=C.getContext("2d")).scale(k,k),l=new r}if(!T)return u="#mocha div missing, add it to your document",void document.body.appendChild(d('
    %s
    ',u));function F(n){S[0]&&S[0].appendChild(n)}function D(){var t=f.tests/n.total*100|0;l&&l.update(t).draw(e);var u=new a-f.start;m(v,f.passes),m(A,f.failures),m(x,(u/1e3).toFixed(2))}y(w,"click",function(n){n.preventDefault(),g();var l=/pass/.test(_.className)?"":" pass";_.className=_.className.replace(/fail|pass/g,"")+l,_.className.trim()&&h("test pass")}),y(E,"click",function(n){n.preventDefault(),g();var l=/fail/.test(_.className)?"":" fail";_.className=_.className.replace(/fail|pass/g,"")+l,_.className.trim()&&h("test fail")}),T.appendChild(p),T.appendChild(_),l&&l.size(40),n.on("suite",function(n){if(!n.root){var l=d('
  • %s

  • ',o.suiteURL(n),i(n.title));S[0].appendChild(l),S.unshift(document.createElement("ul")),l.appendChild(S[0])}}),n.on("suite end",function(n){n.root?D():S.shift()}),n.on("pass",function(n){var l=o.testURL(n),e=d('
  • %e%ems '+c+"

  • ",n.speed,n.title,n.duration,l);o.addCodeToggle(e,n.body),F(e),D()}),n.on("fail",function(n){var l,e=d('
  • %e '+c+"

  • ",n.title,o.testURL(n)),t=n.err.toString();if("[object Error]"===t&&(t=n.err.message),n.err.stack){var u=n.err.stack.indexOf(n.err.message);l=-1===u?n.err.stack:n.err.stack.substr(n.err.message.length+u)}else n.err.sourceURL&&void 0!==n.err.line&&(l="\n("+n.err.sourceURL+":"+n.err.line+")");l=l||"",n.err.htmlMessage&&l?e.appendChild(d('
    %s\n
    %e
    ',n.err.htmlMessage,l)):n.err.htmlMessage?e.appendChild(d('
    %s
    ',n.err.htmlMessage)):e.appendChild(d('
    %e%e
    ',t,l)),o.addCodeToggle(e,n.body),F(e),D()}),n.on("pending",function(n){F(d('
  • %e

  • ',n.title)),D()})}function p(n){var l=window.location.search;return l&&(l=l.replace(/[?&]grep=[^&\s]*/g,"").replace(/^&/,"?")),window.location.pathname+(l?l+"&":"?")+"grep="+encodeURIComponent(o(n))}function d(n){var l=arguments,e=document.createElement("div"),t=1;return e.innerHTML=n.replace(/%([se])/g,function(n,e){switch(e){case"s":return String(l[t++]);case"e":return i(l[t++])}}),e.firstChild}function h(n){for(var l=document.getElementsByClassName("suite"),e=0;e%e",u.clean(l));n.appendChild(e),e.style.display="none"}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../browser/progress":3,"../utils":36,"./base":16,"escape-string-regexp":46}],20:[function(n,l,e){"use strict";e.Base=e.base=n("./base"),e.Dot=e.dot=n("./dot"),e.Doc=e.doc=n("./doc"),e.TAP=e.tap=n("./tap"),e.JSON=e.json=n("./json"),e.HTML=e.html=n("./html"),e.List=e.list=n("./list"),e.Min=e.min=n("./min"),e.Spec=e.spec=n("./spec"),e.Nyan=e.nyan=n("./nyan"),e.XUnit=e.xunit=n("./xunit"),e.Markdown=e.markdown=n("./markdown"),e.Progress=e.progress=n("./progress"),e.Landing=e.landing=n("./landing"),e.JSONStream=e["json-stream"]=n("./json-stream")},{"./base":16,"./doc":17,"./dot":18,"./html":19,"./json":22,"./json-stream":21,"./landing":23,"./list":24,"./markdown":25,"./min":26,"./nyan":27,"./progress":28,"./spec":29,"./tap":30,"./xunit":31}],21:[function(n,l,e){(function(e){"use strict";var t=n("./base");function u(n){return{title:n.title,fullTitle:n.fullTitle(),duration:n.duration,currentRetry:n.currentRetry()}}l.exports=function(n){t.call(this,n);var l=this,r=n.total;n.on("start",function(){console.log(JSON.stringify(["start",{total:r}]))}),n.on("pass",function(n){console.log(JSON.stringify(["pass",u(n)]))}),n.on("fail",function(n,l){(n=u(n)).err=l.message,n.stack=l.stack||null,console.log(JSON.stringify(["fail",n]))}),n.once("end",function(){e.stdout.write(JSON.stringify(["end",l.stats]))})}}).call(this,n("_process"))},{"./base":16,_process:56}],22:[function(n,l,e){(function(e){"use strict";var u=n("./base");function r(n){var l,e,u=n.err||{};return u instanceof Error&&(u=function(n){var l={};return Object.getOwnPropertyNames(n).forEach(function(e){l[e]=n[e]},n),l}(u)),{title:n.title,fullTitle:n.fullTitle(),duration:n.duration,currentRetry:n.currentRetry(),err:(l=u,e=[],JSON.parse(JSON.stringify(l,function(n,l){if("object"===t(l)&&null!==l){if(-1!==e.indexOf(l))return""+l;e.push(l)}return l})))}}l.exports=function(n){u.call(this,n);var l=this,t=[],o=[],i=[],a=[];n.on("test end",function(n){t.push(n)}),n.on("pass",function(n){a.push(n)}),n.on("fail",function(n){i.push(n)}),n.on("pending",function(n){o.push(n)}),n.once("end",function(){var u={stats:l.stats,tests:t.map(r),pending:o.map(r),failures:i.map(r),passes:a.map(r)};n.testResults=u,e.stdout.write(JSON.stringify(u,null,2))})}}).call(this,n("_process"))},{"./base":16,_process:56}],23:[function(n,l,e){(function(e){"use strict";var t=n("./base"),u=n("../utils").inherits,r=t.cursor,o=t.color;function i(n){t.call(this,n);var l=this,u=.75*t.window.width|0,i=n.total,a=e.stdout,s=o("plane","✈"),c=-1,f=0;function p(){var n=Array(u).join("-");return" "+o("runway",n)}n.on("start",function(){a.write("\n\n\n "),r.hide()}),n.on("test end",function(n){var l=-1===c?u*++f/i|0:c;"failed"===n.state&&(s=o("plane crash","✈"),c=l),a.write("["+(u+1)+"D"),a.write(p()),a.write("\n "),a.write(o("runway",Array(l).join("⋅"))),a.write(s),a.write(o("runway",Array(u-l).join("⋅")+"\n")),a.write(p()),a.write("")}),n.once("end",function(){r.show(),console.log(),l.epilogue()})}l.exports=i,t.colors.plane=0,t.colors["plane crash"]=31,t.colors.runway=90,u(i,t)}).call(this,n("_process"))},{"../utils":36,"./base":16,_process:56}],24:[function(n,l,e){(function(e){"use strict";var t=n("./base"),u=n("../utils").inherits,r=t.color,o=t.cursor;function i(n){t.call(this,n);var l=0;n.on("start",function(){console.log()}),n.on("test",function(n){e.stdout.write(r("pass"," "+n.fullTitle()+": "))}),n.on("pending",function(n){var l=r("checkmark"," -")+r("pending"," %s");console.log(l,n.fullTitle())}),n.on("pass",function(n){var l=r("checkmark"," "+t.symbols.ok)+r("pass"," %s: ")+r(n.speed,"%dms");o.CR(),console.log(l,n.fullTitle(),n.duration)}),n.on("fail",function(n){o.CR(),console.log(r("fail"," %d) %s"),++l,n.fullTitle())}),n.once("end",this.epilogue.bind(this))}l.exports=i,u(i,t)}).call(this,n("_process"))},{"../utils":36,"./base":16,_process:56}],25:[function(n,l,e){(function(e){"use strict";var t=n("./base"),u=n("../utils"),r="$";l.exports=function(n){t.call(this,n);var l=0,o="";function i(n){var l=function n(l,e){var t=e;var u=r+l.title;e=e[u]=e[u]||{suite:l};l.suites.forEach(function(l){n(l,e)});return t}(n,{});return function n(l,e){++e;var t="";var o;for(var i in l)"suite"!==i&&(i!==r&&(o=" - ["+i.substring(1)+"]",o+="(#"+u.slug(l[i].suite.fullTitle())+")\n",t+=Array(e).join(" ")+o),t+=n(l[i],e));return t}(l,0)}i(n.suite),n.on("suite",function(n){++l;var e,t=u.slug(n.fullTitle());o+='\n',o+=(e=n.title,Array(l).join("#")+" "+e+"\n")}),n.on("suite end",function(){--l}),n.on("pass",function(n){var l=u.clean(n.body);o+=n.title+".\n",o+="\n```js\n",o+=l+"\n",o+="```\n\n"}),n.once("end",function(){e.stdout.write("# TOC\n"),e.stdout.write(i(n.suite)),e.stdout.write(o)})}}).call(this,n("_process"))},{"../utils":36,"./base":16,_process:56}],26:[function(n,l,e){(function(e){"use strict";var t=n("./base"),u=n("../utils").inherits;function r(n){t.call(this,n),n.on("start",function(){e.stdout.write(""),e.stdout.write("")}),n.once("end",this.epilogue.bind(this))}l.exports=r,u(r,t)}).call(this,n("_process"))},{"../utils":36,"./base":16,_process:56}],27:[function(n,l,e){(function(e){"use strict";var t=n("./base"),u=n("../utils").inherits;function r(n){t.call(this,n);var l=this,e=.75*t.window.width|0,u=this.nyanCatWidth=11;this.colorIndex=0,this.numberOfLines=4,this.rainbowColors=l.generateColors(),this.scoreboardWidth=5,this.tick=0,this.trajectories=[[],[],[],[]],this.trajectoryWidthMax=e-u,n.on("start",function(){t.cursor.hide(),l.draw()}),n.on("pending",function(){l.draw()}),n.on("pass",function(){l.draw()}),n.on("fail",function(){l.draw()}),n.once("end",function(){t.cursor.show();for(var n=0;n=this.trajectoryWidthMax&&t.shift(),t.push(l)}},r.prototype.drawRainbow=function(){var n=this;this.trajectories.forEach(function(l){o("["+n.scoreboardWidth+"C"),o(l.join("")),o("\n")}),this.cursorUp(this.numberOfLines)},r.prototype.drawNyanCat=function(){var n="["+(this.scoreboardWidth+this.trajectories[0].length)+"C",l="";o(n),o("_,------,"),o("\n"),o(n),o("_|"+(l=this.tick?" ":" ")+"/\\_/\\ "),o("\n"),o(n),l=this.tick?"_":"__",o((this.tick?"~":"^")+"|"+l+this.face()+" "),o("\n"),o(n),o((l=this.tick?" ":" ")+'"" "" '),o("\n"),this.cursorUp(this.numberOfLines)},r.prototype.face=function(){var n=this.stats;return n.failures?"( x .x)":n.pending?"( o .o)":n.passes?"( ^ .^)":"( - .-)"},r.prototype.cursorUp=function(n){o("["+n+"A")},r.prototype.cursorDown=function(n){o("["+n+"B")},r.prototype.generateColors=function(){for(var n=[],l=0;l<42;l++){var e=Math.floor(Math.PI/3),t=l*(1/6),u=Math.floor(3*Math.sin(t)+3),r=Math.floor(3*Math.sin(t+2*e)+3),o=Math.floor(3*Math.sin(t+4*e)+3);n.push(36*u+6*r+o+16)}return n},r.prototype.rainbowify=function(n){if(!t.useColors)return n;var l=this.rainbowColors[this.colorIndex%this.rainbowColors.length];return this.colorIndex+=1,"[38;5;"+l+"m"+n+""}}).call(this,n("_process"))},{"../utils":36,"./base":16,_process:56}],28:[function(n,l,e){(function(e){"use strict";var t=n("./base"),u=n("../utils").inherits,r=t.color,o=t.cursor;function i(n,l){t.call(this,n);var u=this,i=.5*t.window.width|0,a=n.total,s=0,c=-1,f=(l=l||{}).reporterOptions||{};l.open=f.open||"[",l.complete=f.complete||"▬",l.incomplete=f.incomplete||t.symbols.dot,l.close=f.close||"]",l.verbose=f.verbose||!1,n.on("start",function(){console.log(),o.hide()}),n.on("test end",function(){var n=i*(++s/a)|0,t=i-n;(n!==c||l.verbose)&&(c=n,o.CR(),e.stdout.write(""),e.stdout.write(r("progress"," "+l.open)),e.stdout.write(Array(n).join(l.complete)),e.stdout.write(Array(t).join(l.incomplete)),e.stdout.write(r("progress",l.close)),l.verbose&&e.stdout.write(r("progress"," "+s+" of "+a)))}),n.once("end",function(){o.show(),console.log(),u.epilogue()})}l.exports=i,t.colors.progress=90,u(i,t)}).call(this,n("_process"))},{"../utils":36,"./base":16,_process:56}],29:[function(n,l,e){"use strict";var t=n("./base"),u=n("../utils").inherits,r=t.color;function o(n){t.call(this,n);var l=0,e=0;function u(){return Array(l).join(" ")}n.on("start",function(){console.log()}),n.on("suite",function(n){++l,console.log(r("suite","%s%s"),u(),n.title)}),n.on("suite end",function(){1===--l&&console.log()}),n.on("pending",function(n){var l=u()+r("pending"," - %s");console.log(l,n.title)}),n.on("pass",function(n){var l;"fast"===n.speed?(l=u()+r("checkmark"," "+t.symbols.ok)+r("pass"," %s"),console.log(l,n.title)):(l=u()+r("checkmark"," "+t.symbols.ok)+r("pass"," %s")+r(n.speed," (%dms)"),console.log(l,n.title,n.duration))}),n.on("fail",function(n){console.log(u()+r("fail"," %d) %s"),++e,n.title)}),n.once("end",this.epilogue.bind(this))}l.exports=o,u(o,t)},{"../utils":36,"./base":16}],30:[function(n,l,e){"use strict";var t=n("./base");function u(n){return n.fullTitle().replace(/#/g,"")}l.exports=function(n){t.call(this,n);var l=1,e=0,r=0;n.on("start",function(){var l=n.grepTotal(n.suite);console.log("%d..%d",1,l)}),n.on("test end",function(){++l}),n.on("pending",function(n){console.log("ok %d %s # SKIP -",l,u(n))}),n.on("pass",function(n){e++,console.log("ok %d %s",l,u(n))}),n.on("fail",function(n,e){r++,console.log("not ok %d %s",l,u(n)),e.stack&&console.log(e.stack.replace(/^/gm," "))}),n.once("end",function(){console.log("# tests "+(e+r)),console.log("# pass "+e),console.log("# fail "+r)})}},{"./base":16}],31:[function(l,e,u){(function(n,u){"use strict";var r=l("./base"),o=l("../utils"),i=o.inherits,a=l("fs"),s=o.escape,c=l("mkdirp"),f=l("path"),p=u.Date;u.setTimeout,u.setInterval,u.clearTimeout,u.clearInterval;function d(n,l){r.call(this,n);var e,t=this.stats,u=[],o=this;if(l&&l.reporterOptions){if(l.reporterOptions.output){if(!a.createWriteStream)throw new Error("file output not supported in browser");c.sync(f.dirname(l.reporterOptions.output)),o.fileStream=a.createWriteStream(l.reporterOptions.output)}e=l.reporterOptions.suiteName}e=e||"Mocha Tests",n.on("pending",function(n){u.push(n)}),n.on("pass",function(n){u.push(n)}),n.on("fail",function(n){u.push(n)}),n.once("end",function(){o.write(h("testsuite",{name:e,tests:t.tests,failures:t.failures,errors:t.failures,skipped:t.tests-t.failures-t.passes,timestamp:(new p).toUTCString(),time:t.duration/1e3||0},!1)),u.forEach(function(n){o.test(n)}),o.write("")})}function h(n,l,e,t){var u,r=e?"/>":">",o=[];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&o.push(i+'="'+s(l[i])+'"');return u="<"+n+(o.length?" "+o.join(" "):"")+r,t&&(u+=t+"Math.pow(2,31))&&(this._enableTimeouts=!1),"string"==typeof n&&(n=o(n)),r("timeout %d",n),this._timeout=n,this.timer&&this.resetTimeout(),this):this._timeout},p.prototype.slow=function(n){return arguments.length&&void 0!==n?("string"==typeof n&&(n=o(n)),r("slow %d",n),this._slow=n,this):this._slow},p.prototype.enableTimeouts=function(n){return arguments.length?(r("enableTimeouts %s",n),this._enableTimeouts=n,this):this._enableTimeouts},p.prototype.skip=function(){throw new u("sync skip")},p.prototype.isPending=function(){return this.pending||this.parent&&this.parent.isPending()},p.prototype.isFailed=function(){return!this.isPending()&&"failed"===this.state},p.prototype.isPassed=function(){return!this.isPending()&&"passed"===this.state},p.prototype.retries=function(n){if(!arguments.length)return this._retries;this._retries=n},p.prototype.currentRetry=function(n){if(!arguments.length)return this._currentRetry;this._currentRetry=n},p.prototype.fullTitle=function(){return this.titlePath().join(" ")},p.prototype.titlePath=function(){return this.parent.titlePath().concat([this.title])},p.prototype.clearTimeout=function(){c(this.timer)},p.prototype.inspect=function(){return JSON.stringify(this,function(n,l){if("_"!==n[0])return"parent"===n?"#":"ctx"===n?"#":l},2)},p.prototype.resetTimeout=function(){var n=this,l=this.timeout()||1e9;this._enableTimeouts&&(this.clearTimeout(),this.timer=s(function(){n._enableTimeouts&&(n.callback(n._timeoutError(l)),n.timedOut=!0)},l))},p.prototype.globals=function(n){if(!arguments.length)return this._allowedGlobals;this._allowedGlobals=n},p.prototype.run=function(n){var l,e,t=this,r=new a,o=this.ctx;function s(u){var o=t.timeout();if(!t.timedOut){if(l)return function(n){if(!e){e=!0;var l="done() called multiple times";n&&n.message?(n.message+=" (and Mocha's "+l+")",t.emit("error",n)):t.emit("error",new Error(l))}}(u);t.clearTimeout(),t.duration=new a-r,l=!0,!u&&t.duration>o&&t._enableTimeouts&&(u=t._timeoutError(o)),n(u)}}if(o&&o.runnable&&o.runnable(this),this.callback=s,this.async){if(this.resetTimeout(),this.skip=function(){throw s(new u("async skip call")),new u("async skip; aborting execution")},this.allowUncaught)return p(this.fn);try{p(this.fn)}catch(n){e=!0,s(i.getError(n))}}else if(this.allowUncaught)this.isPending()?s():c(this.fn);else try{this.isPending()?s():c(this.fn)}catch(n){e=!0,s(i.getError(n))}function c(n){var l=n.call(o);if(l&&"function"==typeof l.then)t.resetTimeout(),l.then(function(){return s(),null},function(n){s(n||new Error("Promise rejected with no or falsy reason"))});else{if(t.asyncOnly)return s(new Error("--async-only option in use without declaring `done()` or returning a promise"));s()}}function p(n){var l=n.call(o,function(n){return n instanceof Error||"[object Error]"===f.call(n)?s(n):n?"[object Object]"===Object.prototype.toString.call(n)?s(new Error("done() invoked with non-Error: "+JSON.stringify(n))):s(new Error("done() invoked with non-Error: "+n)):l&&i.isPromise(l)?s(new Error("Resolution method is overspecified. Specify a callback *or* return a Promise; not both.")):void s()})}},p.prototype._timeoutError=function(n){var l="Timeout of "+n+'ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.';return this.file&&(l+=" ("+this.file+")"),new Error(l)}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ms":14,"./pending":15,"./utils":36,debug:43,events:47}],33:[function(l,e,u){(function(n,u){"use strict";var r=l("events").EventEmitter,o=l("./pending"),i=l("./utils"),a=i.inherits,s=l("debug")("mocha:runner"),c=l("./runnable"),f=i.stackTraceFilter(),p=i.stringify,d=i.type,h=i.undefinedError,g=["setTimeout","clearTimeout","setInterval","clearInterval","XMLHttpRequest","Date","setImmediate","clearImmediate"];function m(l,e){var u=this;this._globals=[],this._abort=!1,this._delay=e,this.suite=l,this.started=!1,this.total=l.total(),this.failures=0,this.on("test end",function(n){u.checkGlobals(n)}),this.on("hook end",function(n){u.checkGlobals(n)}),this._defaultGrep=/.*/,this.grep(this._defaultGrep),this.globals(this.globalProps().concat(function(){if("object"===t(n)&&"string"==typeof n.version){var l=n.version.split("."),e=l.reduce(function(n,l){return n<<8|l});if(e<2315)return["errno"]}return[]}()))}function y(){return!1}function b(n){function l(n){for(var l=0;l1?this.fail(n,new Error("global leaks detected: "+l.join(", "))):l.length&&this.fail(n,new Error("global leak detected: "+l[0])))}},m.prototype.fail=function(n,l){if(!n.isPending()){++this.failures,n.state="failed",l instanceof Error||l&&"string"==typeof l.message||(l=new Error("the "+d(l)+" "+p(l)+" was thrown, throw an Error :)"));try{l.stack=this.fullStackTrace||!l.stack?l.stack:f(l.stack)}catch(n){}this.emit("fail",n,l),this.suite.bail()&&this.emit("end")}},m.prototype.failHook=function(n,l){n.ctx&&n.ctx.currentTest&&(n.originalTitle=n.originalTitle||n.title,n.title=n.originalTitle+' for "'+n.ctx.currentTest.title+'"'),this.fail(n,l)},m.prototype.hook=function(n,l){var e=this.suite,t=e["_"+n],u=this;m.immediately(function(){!function r(i){var a=t[i];if(!a)return l();u.currentRunnable=a,a.ctx.currentTest=u.test,u.emit("hook",a),a.listeners("error").length||a.on("error",function(n){u.failHook(a,n)}),a.run(function(t){var s=a.error();if(s&&u.fail(u.test,s),t){if(!(t instanceof o))return u.failHook(a,t),l(t);"beforeEach"===n||"afterEach"===n?u.test.pending=!0:(e.tests.forEach(function(n){n.pending=!0}),a.pending=!0)}u.emit("hook end",a),delete a.ctx.currentTest,r(++i)})}(0)})},m.prototype.hooks=function(n,l,e){var t=this,u=this.suite;!function r(o){if(t.suite=o,!o)return t.suite=u,e();t.hook(n,function(n){if(n){var o=t.suite;return t.suite=u,e(n,o)}r(l.pop())})}(l.pop())},m.prototype.hookUp=function(n,l){var e=[this.suite].concat(this.parents()).reverse();this.hooks(n,e,l)},m.prototype.hookDown=function(n,l){var e=[this.suite].concat(this.parents());this.hooks(n,e,l)},m.prototype.parents=function(){for(var n=this.suite,l=[];n.parent;)n=n.parent,l.push(n);return l},m.prototype.runTest=function(n){var l=this,e=this.test;if(e)if(this.forbidOnly&&v(this.parents().reverse()[0]||this.suite))n(new Error("`.only` forbidden"));else{if(this.asyncOnly&&(e.asyncOnly=!0),e.on("error",function(n){l.fail(e,n)}),this.allowUncaught)return e.allowUncaught=!0,e.run(n);try{e.run(n)}catch(l){n(l)}}},m.prototype.runTests=function(n,l){var e,t=this,u=n.tests.slice();function r(n,e,u){var o=t.suite;t.suite=u?e.parent:e,t.suite?t.hookUp("afterEach",function(n,u){if(t.suite=o,n)return r(n,u,!0);l(e)}):(t.suite=o,l(e))}function i(a,s){if(t.failures&&n._bail)return l();if(t._abort)return l();if(a)return r(0,s,!0);if(!(e=u.shift()))return l();var c=t._grep.test(e.fullTitle());if(t._invert&&(c=!c),c){if(e.isPending())return t.forbidPending?(e.isPending=y,t.fail(e,new Error("Pending test forbidden")),delete e.isPending):t.emit("pending",e),t.emit("test end",e),i();t.emit("test",t.test=e),t.hookDown("beforeEach",function(n,l){return e.isPending()?(t.forbidPending?(e.isPending=y,t.fail(e,new Error("Pending test forbidden")),delete e.isPending):t.emit("pending",e),t.emit("test end",e),i()):n?r(0,l,!1):(t.currentRunnable=t.test,void t.runTest(function(n){if(e=t.test,n){var l=e.currentRetry();if(n instanceof o&&t.forbidPending)t.fail(e,new Error("Pending test forbidden"));else if(n instanceof o)e.pending=!0,t.emit("pending",e);else{if(l-1?this.hookErr(n,t,!0):l.fullTitle().indexOf("before each")>-1?this.hookErr(n,t,!1):this.nextSuite(t)}this.emit("end")}},m.prototype.run=function(l){var e=this,t=this.suite;function u(n){e.uncaught(n)}function r(){v(t)&&function n(l){l._onlyTests.length?(l.tests=l._onlyTests,l.suites=[]):(l.tests=[],l._onlySuites.forEach(function(l){v(l)&&n(l)}),l.suites=l.suites.filter(function(e){return-1!==l._onlySuites.indexOf(e)||n(e)}));return l.tests.length||l.suites.length}(t),e.started=!0,e.emit("start"),e.runSuite(t,function(){s("finished running"),e.emit("end")})}return l=l||function(){},s("start"),this.on("suite end",b),this.on("end",function(){s("end"),n.removeListener("uncaughtException",u),l(e.failures)}),n.on("uncaughtException",u),this._delay?(this.emit("waiting",t),t.once("run",r)):r(),this},m.prototype.abort=function(){return s("aborting"),this._abort=!0,this}}).call(this,l("_process"),void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./pending":15,"./runnable":32,"./utils":36,_process:56,debug:43,events:47}],34:[function(n,l,e){"use strict";var u=n("events").EventEmitter,r=n("./hook"),o=n("./utils"),i=o.inherits,a=n("debug")("mocha:suite"),s=n("./ms");function c(n,l){if(!o.isString(n))throw new Error('Suite `title` should be a "string" but "'+t(n)+'" was given instead.');function e(){}this.title=n,e.prototype=l,this.ctx=new e,this.suites=[],this.tests=[],this.pending=!1,this._beforeEach=[],this._beforeAll=[],this._afterEach=[],this._afterAll=[],this.root=!n,this._timeout=2e3,this._enableTimeouts=!0,this._slow=75,this._bail=!1,this._retries=-1,this._onlyTests=[],this._onlySuites=[],this.delayed=!1}(l.exports=c).create=function(n,l){var e=new c(l,n.ctx);return e.parent=n,l=e.fullTitle(),n.addSuite(e),e},i(c,u),c.prototype.clone=function(){var n=new c(this.title);return a("clone"),n.ctx=this.ctx,n.timeout(this.timeout()),n.retries(this.retries()),n.enableTimeouts(this.enableTimeouts()),n.slow(this.slow()),n.bail(this.bail()),n},c.prototype.timeout=function(n){return arguments.length?("0"===n.toString()&&(this._enableTimeouts=!1),"string"==typeof n&&(n=s(n)),a("timeout %d",n),this._timeout=parseInt(n,10),this):this._timeout},c.prototype.retries=function(n){return arguments.length?(a("retries %d",n),this._retries=parseInt(n,10)||0,this):this._retries},c.prototype.enableTimeouts=function(n){return arguments.length?(a("enableTimeouts %s",n),this._enableTimeouts=n,this):this._enableTimeouts},c.prototype.slow=function(n){return arguments.length?("string"==typeof n&&(n=s(n)),a("slow %d",n),this._slow=n,this):this._slow},c.prototype.bail=function(n){return arguments.length?(a("bail %s",n),this._bail=n,this):this._bail},c.prototype.isPending=function(){return this.pending||this.parent&&this.parent.isPending()},c.prototype._createHook=function(n,l){var e=new r(n,l);return e.parent=this,e.timeout(this.timeout()),e.retries(this.retries()),e.enableTimeouts(this.enableTimeouts()),e.slow(this.slow()),e.ctx=this.ctx,e.file=this.file,e},c.prototype.beforeAll=function(n,l){if(this.isPending())return this;"function"==typeof n&&(n=(l=n).name),n='"before all" hook'+(n?": "+n:"");var e=this._createHook(n,l);return this._beforeAll.push(e),this.emit("beforeAll",e),this},c.prototype.afterAll=function(n,l){if(this.isPending())return this;"function"==typeof n&&(n=(l=n).name),n='"after all" hook'+(n?": "+n:"");var e=this._createHook(n,l);return this._afterAll.push(e),this.emit("afterAll",e),this},c.prototype.beforeEach=function(n,l){if(this.isPending())return this;"function"==typeof n&&(n=(l=n).name),n='"before each" hook'+(n?": "+n:"");var e=this._createHook(n,l);return this._beforeEach.push(e),this.emit("beforeEach",e),this},c.prototype.afterEach=function(n,l){if(this.isPending())return this;"function"==typeof n&&(n=(l=n).name),n='"after each" hook'+(n?": "+n:"");var e=this._createHook(n,l);return this._afterEach.push(e),this.emit("afterEach",e),this},c.prototype.addSuite=function(n){return n.parent=this,n.timeout(this.timeout()),n.retries(this.retries()),n.enableTimeouts(this.enableTimeouts()),n.slow(this.slow()),n.bail(this.bail()),this.suites.push(n),this.emit("suite",n),this},c.prototype.addTest=function(n){return n.parent=this,n.timeout(this.timeout()),n.retries(this.retries()),n.enableTimeouts(this.enableTimeouts()),n.slow(this.slow()),n.ctx=this.ctx,this.tests.push(n),this.emit("test",n),this},c.prototype.fullTitle=function(){return this.titlePath().join(" ")},c.prototype.titlePath=function(){var n=[];return this.parent&&(n=n.concat(this.parent.titlePath())),this.root||n.push(this.title),n},c.prototype.total=function(){return this.suites.reduce(function(n,l){return n+l.total()},0)+this.tests.length},c.prototype.eachTest=function(n){return this.tests.forEach(n),this.suites.forEach(function(l){l.eachTest(n)}),this},c.prototype.run=function(){this.root&&this.emit("run")}},{"./hook":6,"./ms":14,"./utils":36,debug:43,events:47}],35:[function(n,l,e){"use strict";var u=n("./runnable"),r=n("./utils"),o=r.isString;function i(n,l){if(!o(n))throw new Error('Test `title` should be a "string" but "'+t(n)+'" was given instead.');u.call(this,n,l),this.pending=!l,this.type="test"}l.exports=i,r.inherits(i,u),i.prototype.clone=function(){var n=new i(this.title,this.fn);return n.timeout(this.timeout()),n.slow(this.slow()),n.enableTimeouts(this.enableTimeouts()),n.retries(this.retries()),n.currentRetry(this.currentRetry()),n.globals(this.globals()),n.parent=this.parent,n.file=this.file,n.ctx=this.ctx,n}},{"./runnable":32,"./utils":36}],36:[function(n,l,e){(function(l,u){"use strict";var r=n("debug")("mocha:watch"),o=n("fs"),i=n("glob"),a=n("path"),s=a.join,c=n("he"),f=["node_modules",".git"];function p(n){return!~f.indexOf(n)}function d(n,l){switch(l){case"function":return"[Function]";case"object":return"{}";case"array":return"[]";default:return n.toString()}}e.inherits=n("util").inherits,e.escape=function(n){return c.encode(String(n),{useNamedReferences:!1})},e.isString=function(n){return"string"==typeof n},e.watch=function(n,l){var e={interval:100};n.forEach(function(n){r("file %s",n),o.watchFile(n,e,function(e,t){t.mtime\s*(?:\{((?:.|\n)*?)\s*\}|((?:.|\n)*))$/,"$1$2$3")).match(/^\n?( *)/)[1].length,e=n.match(/^\n?(\t*)/)[1].length,t=new RegExp("^\n?"+(e?"\t":" ")+"{"+(e||l)+"}","gm");return(n=n.replace(t,"")).trim()},e.parseQuery=function(n){return n.replace("?","").split("&").reduce(function(n,l){var e=l.indexOf("="),t=l.slice(0,e),u=l.slice(++e);return n[t]=decodeURIComponent(u.replace(/\+/g,"%20")),n},{})},e.highlightTags=function(n){for(var l=document.getElementById("mocha").getElementsByTagName(n),e=0,t=l.length;e/g,">").replace(/\/\/(.*)/gm,'//$1').replace(/('.*?')/gm,'$1').replace(/(\d+\.\d+)/gm,'$1').replace(/(\d+)/gm,'$1').replace(/\bnew[ \t]+(\w+)/gm,'new $1').replace(/\b(function|new|throw|return|var|if|else)\b/gm,'$1')};var h=e.type=function(n){return void 0===n?"undefined":null===n?"null":u.isBuffer(n)?"buffer":Object.prototype.toString.call(n).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase()};function g(n,l,e){if(void 0===l)return a(n);var t=l*(e=e||1),u=Array.isArray(n)?"[":"{",r=Array.isArray(n)?"]":"}",o="number"==typeof n.length?n.length:Object.keys(n).length;function i(n,l){return new Array(l).join(n)}function a(n){switch(h(n)){case"null":case"undefined":n="["+n+"]";break;case"array":case"object":n=g(n,l,e+1);break;case"boolean":case"regexp":case"symbol":case"number":n=0===n&&1/n==-1/0?"-0":n.toString();break;case"date":var t=isNaN(n.getTime())?n.toString():n.toISOString();n="[Date: "+t+"]";break;case"buffer":var u=n.toJSON();n="[Buffer: "+g(u=u.data&&u.type?u.data:u,2,e+1)+"]";break;default:n="[Function]"===n||"[Circular]"===n?n:JSON.stringify(n)}return n}for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(--o,u+="\n "+i(" ",t)+(Array.isArray(n)?"":'"'+s+'": ')+a(n[s])+(o?",":""));return u+(1!==u.length?"\n"+i(" ",--t)+r:r)}e.stringify=function(n){var l=h(n);if(!~["object","array","function"].indexOf(l)){if("buffer"===l){var r=u.prototype.toJSON.call(n);return g(r.data&&r.type?r.data:r,2).replace(/,(\n|$)/g,"$1")}if("string"!==l||"object"!==t(n))return g(n);n=n.split("").reduce(function(n,l,e){return n[e]=l,n},{}),l="object"}for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o))return g(e.canonicalize(n,null,l),2).replace(/,(\n|$)/g,"$1");return d(n,l)},e.canonicalize=function(n,l,t){var u,r;function o(n,e){l.push(n),e(),l.pop()}if(t=t||h(n),-1!==(l=l||[]).indexOf(n))return"[Circular]";switch(t){case"undefined":case"buffer":case"null":u=n;break;case"array":o(n,function(){u=n.map(function(n){return e.canonicalize(n,l)})});break;case"function":for(r in n){u={};break}if(!u){u=d(n,t);break}case"object":u=u||{},o(n,function(){Object.keys(n).sort().forEach(function(t){u[t]=e.canonicalize(n[t],l)})});break;case"date":case"number":case"regexp":case"boolean":case"symbol":u=n;break;default:u=n+""}return u},e.lookupFiles=function n(l,e,t){var u=[];if(!o.existsSync(l)){if(!o.existsSync(l+".js")){if(!(u=i.sync(l)).length)throw new Error("cannot resolve path (or pattern) '"+l+"'");return u}l+=".js"}try{if(o.statSync(l).isFile())return l}catch(n){return}return o.readdirSync(l).forEach(function(r){r=a.join(l,r);try{var i=o.statSync(r);if(i.isDirectory())return void(t&&(u=u.concat(n(r,e,t))))}catch(n){return}if(!e)throw new Error("extensions parameter required when filepath is a directory");var s=new RegExp("\\.(?:"+e.join("|")+")$");i.isFile()&&s.test(r)&&"."!==a.basename(r)[0]&&u.push(r)}),u},e.undefinedError=function(){return new Error("Caught undefined error, did you throw without specifying what?")},e.getError=function(n){return n||e.undefinedError()},e.stackTraceFilter=function(){var n,e="undefined"==typeof document?{node:!0}:{browser:!0},t=a.sep;return e.node?n=l.cwd()+t:(n=("undefined"==typeof location?window.location:location).href.replace(/\/[^\/]*$/,"/"),t="/"),function(l){return(l=(l=l.split("\n")).reduce(function(l,u){return function(n){return~n.indexOf("node_modules"+t+"mocha"+t)||~n.indexOf("node_modules"+t+"mocha.js")||~n.indexOf("bower_components"+t+"mocha.js")||~n.indexOf(t+"mocha.js")}(u)?l:e.node&&function(n){return~n.indexOf("(timers.js:")||~n.indexOf("(events.js:")||~n.indexOf("(node.js:")||~n.indexOf("(module.js:")||~n.indexOf("GeneratorFunctionPrototype.next (native)")||!1}(u)?l:(/\(?.+:\d+:\d+\)?$/.test(u)&&(u=u.replace("("+n,"(")),l.push(u),l)},[])).join("\n")}},e.isPromise=function(n){return"object"===t(n)&&"function"==typeof n.then},e.noop=function(){}}).call(this,n("_process"),n("buffer").Buffer)},{_process:56,buffer:41,debug:43,fs:40,glob:40,he:48,path:40,util:76}],37:[function(n,l,e){"use strict";e.byteLength=function(n){var l=s(n),e=l[0],t=l[1];return 3*(e+t)/4-t},e.toByteArray=function(n){for(var l,e=s(n),t=e[0],o=e[1],i=new r(function(n,l,e){return 3*(l+e)/4-e}(0,t,o)),a=0,c=o>0?t-4:t,f=0;f>16&255,i[a++]=l>>8&255,i[a++]=255&l;2===o&&(l=u[n.charCodeAt(f)]<<2|u[n.charCodeAt(f+1)]>>4,i[a++]=255&l);1===o&&(l=u[n.charCodeAt(f)]<<10|u[n.charCodeAt(f+1)]<<4|u[n.charCodeAt(f+2)]>>2,i[a++]=l>>8&255,i[a++]=255&l);return i},e.fromByteArray=function(n){for(var l,e=n.length,u=e%3,r=[],o=0,i=e-u;oi?i:o+16383));1===u?(l=n[e-1],r.push(t[l>>2]+t[l<<4&63]+"==")):2===u&&(l=(n[e-2]<<8)+n[e-1],r.push(t[l>>10]+t[l>>4&63]+t[l<<2&63]+"="));return r.join("")};for(var t=[],u=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=o.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var e=n.indexOf("=");return-1===e&&(e=l),[e,e===l?0:4-e%4]}function c(n,l,e){for(var u,r,o=[],i=l;i>18&63]+t[r>>12&63]+t[r>>6&63]+t[63&r]);return o.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],38:[function(n,l,e){},{}],39:[function(n,l,e){(function(e){var t=n("stream").Writable,u=n("util").inherits;function r(n){if(!(this instanceof r))return new r(n);n=n||{},t.call(this,n),this.label=void 0!==n.label?n.label:"stdout"}l.exports=r,u(r,t),r.prototype._write=function(n,l,t){var u=n.toString?n.toString():n;!1===this.label?console.log(u):console.log(this.label+":",u),e.nextTick(t)}}).call(this,n("_process"))},{_process:56,stream:71,util:76}],40:[function(n,l,e){arguments[4][38][0].apply(e,arguments)},{dup:38}],41:[function(n,l,e){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -"use strict";var t=n("base64-js"),u=n("ieee754");e.Buffer=i,e.SlowBuffer=function(n){+n!=n&&(n=0);return i.alloc(+n)},e.INSPECT_MAX_BYTES=50;var r=2147483647;function o(n){if(n>r)throw new RangeError("Invalid typed array length");var l=new Uint8Array(n);return l.__proto__=i.prototype,l}function i(n,l,e){if("number"==typeof n){if("string"==typeof l)throw new Error("If encoding is specified then the first argument must be a string");return c(n)}return a(n,l,e)}function a(n,l,e){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return I(n)||n&&I(n.buffer)?function(n,l,e){if(l<0||n.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|n}function d(n,l){if(i.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||I(n))return n.byteLength;"string"!=typeof n&&(n=""+n);var e=n.length;if(0===e)return 0;for(var t=!1;;)switch(l){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return N(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return M(n).length;default:if(t)return N(n).length;l=(""+l).toLowerCase(),t=!0}}function h(n,l,e){var t=n[l];n[l]=n[e],n[e]=t}function g(n,l,e,t,u){if(0===n.length)return-1;if("string"==typeof e?(t=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),q(e=+e)&&(e=u?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(u)return-1;e=n.length-1}else if(e<0){if(!u)return-1;e=0}if("string"==typeof l&&(l=i.from(l,t)),i.isBuffer(l))return 0===l.length?-1:m(n,l,e,t,u);if("number"==typeof l)return l&=255,"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(n,l,e):Uint8Array.prototype.lastIndexOf.call(n,l,e):m(n,[l],e,t,u);throw new TypeError("val must be string, number or Buffer")}function m(n,l,e,t,u){var r,o=1,i=n.length,a=l.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(n.length<2||l.length<2)return-1;o=2,i/=2,a/=2,e/=2}function s(n,l){return 1===o?n[l]:n.readUInt16BE(l*o)}if(u){var c=-1;for(r=e;ri&&(e=i-a),r=e;r>=0;r--){for(var f=!0,p=0;pu&&(t=u):t=u;var r=l.length;t>r/2&&(t=r/2);for(var o=0;o>8,u=e%256,r.push(u),r.push(t);return r}(l,n.length-e),n,e,t)}function x(n,l,e){return 0===l&&e===n.length?t.fromByteArray(n):t.fromByteArray(n.slice(l,e))}function C(n,l,e){e=Math.min(n.length,e);for(var t=[],u=l;u239?4:s>223?3:s>191?2:1;if(u+f<=e)switch(f){case 1:s<128&&(c=s);break;case 2:128==(192&(r=n[u+1]))&&(a=(31&s)<<6|63&r)>127&&(c=a);break;case 3:r=n[u+1],o=n[u+2],128==(192&r)&&128==(192&o)&&(a=(15&s)<<12|(63&r)<<6|63&o)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:r=n[u+1],o=n[u+2],i=n[u+3],128==(192&r)&&128==(192&o)&&128==(192&i)&&(a=(15&s)<<18|(63&r)<<12|(63&o)<<6|63&i)>65535&&a<1114112&&(c=a)}null===c?(c=65533,f=1):c>65535&&(c-=65536,t.push(c>>>10&1023|55296),c=56320|1023&c),t.push(c),u+=f}return function(n){var l=n.length;if(l<=_)return String.fromCharCode.apply(String,n);var e="",t=0;for(;tthis.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(l>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return k(this,l,e);case"utf8":case"utf-8":return C(this,l,e);case"ascii":return S(this,l,e);case"latin1":case"binary":return T(this,l,e);case"base64":return x(this,l,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,l,e);default:if(t)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),t=!0}}.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(n){if(!i.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||0===i.compare(this,n)},i.prototype.inspect=function(){var n="",l=e.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,l).match(/.{2}/g).join(" "),this.length>l&&(n+=" ... ")),""},i.prototype.compare=function(n,l,e,t,u){if(!i.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(void 0===l&&(l=0),void 0===e&&(e=n?n.length:0),void 0===t&&(t=0),void 0===u&&(u=this.length),l<0||e>n.length||t<0||u>this.length)throw new RangeError("out of range index");if(t>=u&&l>=e)return 0;if(t>=u)return-1;if(l>=e)return 1;if(this===n)return 0;for(var r=(u>>>=0)-(t>>>=0),o=(e>>>=0)-(l>>>=0),a=Math.min(r,o),s=this.slice(t,u),c=n.slice(l,e),f=0;f>>=0,isFinite(e)?(e>>>=0,void 0===t&&(t="utf8")):(t=e,e=void 0)}var u=this.length-l;if((void 0===e||e>u)&&(e=u),n.length>0&&(e<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var r=!1;;)switch(t){case"hex":return y(this,n,l,e);case"utf8":case"utf-8":return b(this,n,l,e);case"ascii":return v(this,n,l,e);case"latin1":case"binary":return w(this,n,l,e);case"base64":return A(this,n,l,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,n,l,e);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),r=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function S(n,l,e){var t="";e=Math.min(n.length,e);for(var u=l;ut)&&(e=t);for(var u="",r=l;re)throw new RangeError("Trying to access beyond buffer length")}function P(n,l,e,t,u,r){if(!i.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>u||ln.length)throw new RangeError("Index out of range")}function j(n,l,e,t,u,r){if(e+t>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function O(n,l,e,t,r){return l=+l,e>>>=0,r||j(n,0,e,4),u.write(n,l,e,t,23,4),e+4}function B(n,l,e,t,r){return l=+l,e>>>=0,r||j(n,0,e,8),u.write(n,l,e,t,52,8),e+8}i.prototype.slice=function(n,l){var e=this.length;(n=~~n)<0?(n+=e)<0&&(n=0):n>e&&(n=e),(l=void 0===l?e:~~l)<0?(l+=e)<0&&(l=0):l>e&&(l=e),l>>=0,l>>>=0,e||D(n,l,this.length);for(var t=this[n],u=1,r=0;++r>>=0,l>>>=0,e||D(n,l,this.length);for(var t=this[n+--l],u=1;l>0&&(u*=256);)t+=this[n+--l]*u;return t},i.prototype.readUInt8=function(n,l){return n>>>=0,l||D(n,1,this.length),this[n]},i.prototype.readUInt16LE=function(n,l){return n>>>=0,l||D(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUInt16BE=function(n,l){return n>>>=0,l||D(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUInt32LE=function(n,l){return n>>>=0,l||D(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},i.prototype.readUInt32BE=function(n,l){return n>>>=0,l||D(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,l,e){n>>>=0,l>>>=0,e||D(n,l,this.length);for(var t=this[n],u=1,r=0;++r=(u*=128)&&(t-=Math.pow(2,8*l)),t},i.prototype.readIntBE=function(n,l,e){n>>>=0,l>>>=0,e||D(n,l,this.length);for(var t=l,u=1,r=this[n+--t];t>0&&(u*=256);)r+=this[n+--t]*u;return r>=(u*=128)&&(r-=Math.pow(2,8*l)),r},i.prototype.readInt8=function(n,l){return n>>>=0,l||D(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},i.prototype.readInt16LE=function(n,l){n>>>=0,l||D(n,2,this.length);var e=this[n]|this[n+1]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt16BE=function(n,l){n>>>=0,l||D(n,2,this.length);var e=this[n+1]|this[n]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt32LE=function(n,l){return n>>>=0,l||D(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,l){return n>>>=0,l||D(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,l){return n>>>=0,l||D(n,4,this.length),u.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,l){return n>>>=0,l||D(n,4,this.length),u.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,l){return n>>>=0,l||D(n,8,this.length),u.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,l){return n>>>=0,l||D(n,8,this.length),u.read(this,n,!1,52,8)},i.prototype.writeUIntLE=function(n,l,e,t){(n=+n,l>>>=0,e>>>=0,t)||P(this,n,l,e,Math.pow(2,8*e)-1,0);var u=1,r=0;for(this[l]=255&n;++r>>=0,e>>>=0,t)||P(this,n,l,e,Math.pow(2,8*e)-1,0);var u=e-1,r=1;for(this[l+u]=255&n;--u>=0&&(r*=256);)this[l+u]=n/r&255;return l+e},i.prototype.writeUInt8=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,1,255,0),this[l]=255&n,l+1},i.prototype.writeUInt16LE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,2,65535,0),this[l]=255&n,this[l+1]=n>>>8,l+2},i.prototype.writeUInt16BE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,2,65535,0),this[l]=n>>>8,this[l+1]=255&n,l+2},i.prototype.writeUInt32LE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,4,4294967295,0),this[l+3]=n>>>24,this[l+2]=n>>>16,this[l+1]=n>>>8,this[l]=255&n,l+4},i.prototype.writeUInt32BE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,4,4294967295,0),this[l]=n>>>24,this[l+1]=n>>>16,this[l+2]=n>>>8,this[l+3]=255&n,l+4},i.prototype.writeIntLE=function(n,l,e,t){if(n=+n,l>>>=0,!t){var u=Math.pow(2,8*e-1);P(this,n,l,e,u-1,-u)}var r=0,o=1,i=0;for(this[l]=255&n;++r>0)-i&255;return l+e},i.prototype.writeIntBE=function(n,l,e,t){if(n=+n,l>>>=0,!t){var u=Math.pow(2,8*e-1);P(this,n,l,e,u-1,-u)}var r=e-1,o=1,i=0;for(this[l+r]=255&n;--r>=0&&(o*=256);)n<0&&0===i&&0!==this[l+r+1]&&(i=1),this[l+r]=(n/o>>0)-i&255;return l+e},i.prototype.writeInt8=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,1,127,-128),n<0&&(n=255+n+1),this[l]=255&n,l+1},i.prototype.writeInt16LE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,2,32767,-32768),this[l]=255&n,this[l+1]=n>>>8,l+2},i.prototype.writeInt16BE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,2,32767,-32768),this[l]=n>>>8,this[l+1]=255&n,l+2},i.prototype.writeInt32LE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,4,2147483647,-2147483648),this[l]=255&n,this[l+1]=n>>>8,this[l+2]=n>>>16,this[l+3]=n>>>24,l+4},i.prototype.writeInt32BE=function(n,l,e){return n=+n,l>>>=0,e||P(this,n,l,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[l]=n>>>24,this[l+1]=n>>>16,this[l+2]=n>>>8,this[l+3]=255&n,l+4},i.prototype.writeFloatLE=function(n,l,e){return O(this,n,l,!0,e)},i.prototype.writeFloatBE=function(n,l,e){return O(this,n,l,!1,e)},i.prototype.writeDoubleLE=function(n,l,e){return B(this,n,l,!0,e)},i.prototype.writeDoubleBE=function(n,l,e){return B(this,n,l,!1,e)},i.prototype.copy=function(n,l,e,t){if(!i.isBuffer(n))throw new TypeError("argument should be a Buffer");if(e||(e=0),t||0===t||(t=this.length),l>=n.length&&(l=n.length),l||(l=0),t>0&&t=this.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),n.length-l=0;--r)n[r+l]=this[r+e];else Uint8Array.prototype.set.call(n,this.subarray(e,t),l);return u},i.prototype.fill=function(n,l,e,t){if("string"==typeof n){if("string"==typeof l?(t=l,l=0,e=this.length):"string"==typeof e&&(t=e,e=this.length),void 0!==t&&"string"!=typeof t)throw new TypeError("encoding must be a string");if("string"==typeof t&&!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);if(1===n.length){var u=n.charCodeAt(0);("utf8"===t&&u<128||"latin1"===t)&&(n=u)}}else"number"==typeof n&&(n&=255);if(l<0||this.length>>=0,e=void 0===e?this.length:e>>>0,n||(n=0),"number"==typeof n)for(r=l;r55295&&e<57344){if(!u){if(e>56319){(l-=3)>-1&&r.push(239,191,189);continue}if(o+1===t){(l-=3)>-1&&r.push(239,191,189);continue}u=e;continue}if(e<56320){(l-=3)>-1&&r.push(239,191,189),u=e;continue}e=65536+(u-55296<<10|e-56320)}else u&&(l-=3)>-1&&r.push(239,191,189);if(u=null,e<128){if((l-=1)<0)break;r.push(e)}else if(e<2048){if((l-=2)<0)break;r.push(e>>6|192,63&e|128)}else if(e<65536){if((l-=3)<0)break;r.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((l-=4)<0)break;r.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return r}function M(n){return t.toByteArray(function(n){if((n=(n=n.split("=")[0]).trim().replace($,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function R(n,l,e,t){for(var u=0;u=l.length||u>=n.length);++u)l[u+e]=n[u];return u}function I(n){return n instanceof ArrayBuffer||null!=n&&null!=n.constructor&&"ArrayBuffer"===n.constructor.name&&"number"==typeof n.byteLength}function q(n){return n!=n}},{"base64-js":37,ieee754:49}],42:[function(n,l,e){(function(n){function l(n){return Object.prototype.toString.call(n)}e.isArray=function(n){return Array.isArray?Array.isArray(n):"[object Array]"===l(n)},e.isBoolean=function(n){return"boolean"==typeof n},e.isNull=function(n){return null===n},e.isNullOrUndefined=function(n){return null==n},e.isNumber=function(n){return"number"==typeof n},e.isString=function(n){return"string"==typeof n},e.isSymbol=function(n){return"symbol"===t(n)},e.isUndefined=function(n){return void 0===n},e.isRegExp=function(n){return"[object RegExp]"===l(n)},e.isObject=function(n){return"object"===t(n)&&null!==n},e.isDate=function(n){return"[object Date]"===l(n)},e.isError=function(n){return"[object Error]"===l(n)||n instanceof Error},e.isFunction=function(n){return"function"==typeof n},e.isPrimitive=function(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"===t(n)||void 0===n},e.isBuffer=n.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":51}],43:[function(n,l,e){(function(u){function r(){var n;try{n=e.storage.debug}catch(n){}return!n&&void 0!==u&&"env"in u&&(n=u.env.DEBUG),n}(e=l.exports=n("./debug")).log=function(){return"object"===("undefined"==typeof console?"undefined":t(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(n){var l=this.useColors;if(n[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+n[0]+(l?"%c ":" ")+"+"+e.humanize(this.diff),!l)return;var t="color: "+this.color;n.splice(1,0,t,"color: inherit");var u=0,r=0;n[0].replace(/%[a-zA-Z%]/g,function(n){"%%"!==n&&(u++,"%c"===n&&(r=u))}),n.splice(r,0,t)},e.save=function(n){try{null==n?e.storage.removeItem("debug"):e.storage.debug=n}catch(n){}},e.load=r,e.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(n){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(n){try{return JSON.stringify(n)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}},e.enable(r())}).call(this,n("_process"))},{"./debug":44,_process:56}],44:[function(n,l,e){function t(n){var l;function t(){if(t.enabled){var n=t,u=+new Date,r=u-(l||u);n.diff=r,n.prev=l,n.curr=u,l=u;for(var o=new Array(arguments.length),i=0;i - - All rights reserved. - - Redistribution and use of this software in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. - - * Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER - IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - @license - */ -var u,r;u=this,r=function(){return function(n){var l={};function e(t){if(l[t])return l[t].exports;var u=l[t]={exports:{},id:t,loaded:!1};return n[t].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}return e.m=n,e.c=l,e.p="",e(0)}([function(n,l,e){"use strict";l.__esModule=!0,l.canonicalize=l.convertChangesToXML=l.convertChangesToDMP=l.merge=l.parsePatch=l.applyPatches=l.applyPatch=l.createPatch=l.createTwoFilesPatch=l.structuredPatch=l.diffArrays=l.diffJson=l.diffCss=l.diffSentences=l.diffTrimmedLines=l.diffLines=l.diffWordsWithSpace=l.diffWords=l.diffChars=l.Diff=void 0;var t,u=e(1),r=(t=u)&&t.__esModule?t:{default:t},o=e(2),i=e(3),a=e(5),s=e(6),c=e(7),f=e(8),p=e(9),d=e(10),h=e(11),g=e(13),m=e(14),y=e(16),b=e(17);l.Diff=r.default,l.diffChars=o.diffChars,l.diffWords=i.diffWords,l.diffWordsWithSpace=i.diffWordsWithSpace,l.diffLines=a.diffLines,l.diffTrimmedLines=a.diffTrimmedLines,l.diffSentences=s.diffSentences,l.diffCss=c.diffCss,l.diffJson=f.diffJson,l.diffArrays=p.diffArrays,l.structuredPatch=m.structuredPatch,l.createTwoFilesPatch=m.createTwoFilesPatch,l.createPatch=m.createPatch,l.applyPatch=d.applyPatch,l.applyPatches=d.applyPatches,l.parsePatch=h.parsePatch,l.merge=g.merge,l.convertChangesToDMP=y.convertChangesToDMP,l.convertChangesToXML=b.convertChangesToXML,l.canonicalize=f.canonicalize},function(n,l){"use strict";function e(){}function t(n,l,e,t,u){for(var r=0,o=l.length,i=0,a=0;rn.length?e:n}),s.value=n.join(f)}else s.value=n.join(e.slice(i,i+s.count));i+=s.count,s.added||(a+=s.count)}}var p=l[o-1];return o>1&&"string"==typeof p.value&&(p.added||p.removed)&&n.equals("",p.value)&&(l[o-2].value+=p.value,l.pop()),l}l.__esModule=!0,l.default=e,e.prototype={diff:function(n,l){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=e.callback;"function"==typeof e&&(u=e,e={}),this.options=e;var r=this;function o(n){return u?(setTimeout(function(){u(void 0,n)},0),!0):n}n=this.castInput(n),l=this.castInput(l),n=this.removeEmpty(this.tokenize(n));var i=(l=this.removeEmpty(this.tokenize(l))).length,a=n.length,s=1,c=i+a,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],l,n,0);if(f[0].newPos+1>=i&&p+1>=a)return o([{value:this.join(l),count:l.length}]);function d(){for(var e=-1*s;e<=s;e+=2){var u=void 0,c=f[e-1],p=f[e+1],d=(p?p.newPos:0)-e;c&&(f[e-1]=void 0);var h=c&&c.newPos+1=i&&d+1>=a)return o(t(r,u.components,l,n,r.useLongestToken));f[e]=u}else f[e]=void 0}var m;s++}if(u)!function n(){setTimeout(function(){if(s>c)return u();d()||n()},0)}();else for(;s<=c;){var h=d();if(h)return h}},pushComponent:function(n,l,e){var t=n[n.length-1];t&&t.added===l&&t.removed===e?n[n.length-1]={count:t.count+1,added:l,removed:e}:n.push({count:1,added:l,removed:e})},extractCommon:function(n,l,e,t){for(var u=l.length,r=e.length,o=n.newPos,i=o-t,a=0;o+12&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof l&&(l=(0,u.parsePatch)(l)),Array.isArray(l)){if(l.length>1)throw new Error("applyPatch only works with a single input.");l=l[0]}var t=n.split(/\r\n|[\n\v\f\r\x85]/),r=n.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=l.hunks,a=e.compareLine||function(n,l,e,t){return l===t},s=0,c=e.fuzzFactor||0,f=0,p=0,d=void 0,h=void 0;function g(n,l){for(var e=0;e0?u[0]:" ",o=u.length>0?u.substr(1):u;if(" "===r||"-"===r){if(!a(l+1,t[l],r,o)&&++s>c)return!1;l++}}return!0}for(var m=0;m0?T[0]:" ",F=T.length>0?T.substr(1):T,D=C.linedelimiters[S];if(" "===k)_++;else if("-"===k)t.splice(_,1),r.splice(_,1);else if("+"===k)t.splice(_,0,F),r.splice(_,0,D),_++;else if("\\"===k){var P=C.lines[S-1]?C.lines[S-1][0]:null;"+"===P?d=!0:"-"===P&&(h=!0)}}}if(d)for(;!t[t.length-1];)t.pop(),r.pop();else h&&(t.push(""),r.push("\n"));for(var j=0;j1&&void 0!==arguments[1]?arguments[1]:{},e=n.split(/\r\n|[\n\v\f\r\x85]/),t=n.match(/\r\n|[\n\v\f\r\x85]/g)||[],u=[],r=0;function o(){var n={};for(u.push(n);r0?c(i.lines.slice(-a.context)):[],p-=h.length,d-=h.length)}(o=h).push.apply(o,u(t.map(function(n){return(l.added?"+":"-")+n}))),l.added?m+=t.length:g+=t.length}else{if(p)if(t.length<=2*a.context&&n=s.length-2&&t.length<=a.context){var A=/\n$/.test(e),E=/\n$/.test(r);0!=t.length||A?A&&E||h.push("\\ No newline at end of file"):h.splice(w.oldLines,0,"\\ No newline at end of file")}f.push(w),p=0,d=0,h=[]}g+=t.length,m+=t.length}},b=0;bn.length)return!1;for(var e=0;e/g,">")).replace(/"/g,""")}l.__esModule=!0,l.convertChangesToXML=function(n){for(var l=[],t=0;t"):u.removed&&l.push(""),l.push(e(u.value)),u.added?l.push(""):u.removed&&l.push("")}return l.join("")}}])},"object"===t(e)&&"object"===t(l)?l.exports=r():"object"===t(e)?e.JsDiff=r():u.JsDiff=r()},{}],46:[function(n,l,e){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;l.exports=function(n){if("string"!=typeof n)throw new TypeError("Expected a string");return n.replace(t,"\\$&")}},{}],47:[function(n,l,e){var u=Object.create||function(n){var l=function(){};return l.prototype=n,new l},r=Object.keys||function(n){var l=[];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&l.push(e);return e},o=Function.prototype.bind||function(n){var l=this;return function(){return l.apply(n,arguments)}};function i(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=u(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}l.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0;var a,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),a=0===c.x}catch(n){a=!1}function f(n){return void 0===n._maxListeners?i.defaultMaxListeners:n._maxListeners}function p(n,l,e,r){var o,i,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if((i=n._events)?(i.newListener&&(n.emit("newListener",l,e.listener?e.listener:e),i=n._events),a=i[l]):(i=n._events=u(null),n._eventsCount=0),a){if("function"==typeof a?a=i[l]=r?[e,a]:[a,e]:r?a.unshift(e):a.push(e),!a.warned&&(o=f(n))&&o>0&&a.length>o){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(l)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=n,s.type=l,s.count=a.length,"object"===("undefined"==typeof console?"undefined":t(console))&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=i[l]=e,++n._eventsCount;return n}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var n=new Array(arguments.length),l=0;l1&&(l=arguments[1]),l instanceof Error)throw l;var a=new Error('Unhandled "error" event. ('+l+")");throw a.context=l,a}if(!(e=o[n]))return!1;var s="function"==typeof e;switch(t=arguments.length){case 1:!function(n,l,e){if(l)n.call(e);else for(var t=n.length,u=m(n,t),r=0;r=0;o--)if(e[o]===l||e[o].listener===l){i=e[o].listener,r=o;break}if(r<0)return this;0===r?e.shift():function(n,l){for(var e=l,t=e+1,u=n.length;t=0;t--)this.removeListener(n,l[t]);return this},i.prototype.listeners=function(n){var l,e=this._events;return e&&(l=e[n])?"function"==typeof l?[l.listener||l]:function(n){for(var l=new Array(n.length),e=0;e0?Reflect.ownKeys(this._events):[]}},{}],48:[function(l,e,u){(function(n){!function(l){var r="object"==t(u)&&u,o="object"==t(e)&&e&&e.exports==r&&e,i="object"==t(n)&&n;i.global!==i&&i.window!==i||(l=i);var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,f=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,p={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},d=/["&'<>`]/g,h={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},g=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,m=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)([=a-zA-Z0-9])?/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},w={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},A=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],E=String.fromCharCode,x={}.hasOwnProperty,C=function(n,l){return x.call(n,l)},_=function(n,l){if(!n)return l;var e,t={};for(e in l)t[e]=C(n,e)?n[e]:l[e];return t},S=function(n,l){var e="";return n>=55296&&n<=57343||n>1114111?(l&&F("character reference outside the permissible Unicode range"),"�"):C(w,n)?(l&&F("disallowed character reference"),w[n]):(l&&function(n,l){for(var e=-1,t=n.length;++e65535&&(e+=E((n-=65536)>>>10&1023|55296),n=56320|1023&n),e+=E(n))},T=function(n){return"&#x"+n.toString(16).toUpperCase()+";"},k=function(n){return"&#"+n+";"},F=function(n){throw Error("Parse error: "+n)},D=function n(l,e){(e=_(e,n.options)).strict&&m.test(l)&&F("forbidden code point");var t=e.encodeEverything,u=e.useNamedReferences,r=e.allowUnsafeSymbols,o=e.decimal?k:T,i=function(n){return o(n.charCodeAt(0))};return t?(l=l.replace(s,function(n){return u&&C(p,n)?"&"+p[n]+";":i(n)}),u&&(l=l.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),u&&(l=l.replace(f,function(n){return"&"+p[n]+";"}))):u?(r||(l=l.replace(d,function(n){return"&"+p[n]+";"})),l=(l=l.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(f,function(n){return"&"+p[n]+";"})):r||(l=l.replace(d,i)),l.replace(a,function(n){var l=n.charCodeAt(0),e=n.charCodeAt(1);return o(1024*(l-55296)+e-56320+65536)}).replace(c,i)};D.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var P=function n(l,e){var t=(e=_(e,n.options)).strict;return t&&g.test(l)&&F("malformed character reference"),l.replace(y,function(n,l,u,r,o,i,a,s){var c,f,p,d,h,g;return l?(p=l,f=u,t&&!f&&F("character reference was not terminated by a semicolon"),c=parseInt(p,10),S(c,t)):r?(d=r,f=o,t&&!f&&F("character reference was not terminated by a semicolon"),c=parseInt(d,16),S(c,t)):i?C(b,h=i)?b[h]:(t&&F("named character reference was not terminated by a semicolon"),n):(h=a,(g=s)&&e.isAttributeValue?(t&&"="==g&&F("`&` did not start a character reference"),n):(t&&F("named character reference was not terminated by a semicolon"),v[h]+(g||"")))})};P.options={isAttributeValue:!1,strict:!1};var j={version:"1.1.1",encode:D,decode:P,escape:function(n){return n.replace(d,function(n){return h[n]})},unescape:P};if(r&&!r.nodeType)if(o)o.exports=j;else for(var O in j)C(j,O)&&(r[O]=j[O]);else l.he=j}(this)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],49:[function(n,l,e){e.read=function(n,l,e,t,u){var r,o,i=8*u-t-1,a=(1<>1,c=-7,f=e?u-1:0,p=e?-1:1,d=n[l+f];for(f+=p,r=d&(1<<-c)-1,d>>=-c,c+=i;c>0;r=256*r+n[l+f],f+=p,c-=8);for(o=r&(1<<-c)-1,r>>=-c,c+=t;c>0;o=256*o+n[l+f],f+=p,c-=8);if(0===r)r=1-s;else{if(r===a)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,t),r-=s}return(d?-1:1)*o*Math.pow(2,r-t)},e.write=function(n,l,e,t,u,r){var o,i,a,s=8*r-u-1,c=(1<>1,p=23===u?Math.pow(2,-24)-Math.pow(2,-77):0,d=t?0:r-1,h=t?1:-1,g=l<0||0===l&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(i=isNaN(l)?1:0,o=c):(o=Math.floor(Math.log(l)/Math.LN2),l*(a=Math.pow(2,-o))<1&&(o--,a*=2),(l+=o+f>=1?p/a:p*Math.pow(2,1-f))*a>=2&&(o++,a/=2),o+f>=c?(i=0,o=c):o+f>=1?(i=(l*a-1)*Math.pow(2,u),o+=f):(i=l*Math.pow(2,f-1)*Math.pow(2,u),o=0));u>=8;n[e+d]=255&i,d+=h,i/=256,u-=8);for(o=o<0;n[e+d]=255&o,d+=h,o/=256,s-=8);n[e+d-h]|=128*g}},{}],50:[function(n,l,e){"function"==typeof Object.create?l.exports=function(n,l){n.super_=l,n.prototype=Object.create(l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:l.exports=function(n,l){n.super_=l;var e=function(){};e.prototype=l.prototype,n.prototype=new e,n.prototype.constructor=n}},{}],51:[function(n,l,e){function t(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)} -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */ -l.exports=function(n){return null!=n&&(t(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&t(n.slice(0,0))}(n)||!!n._isBuffer)}},{}],52:[function(n,l,e){var t={}.toString;l.exports=Array.isArray||function(n){return"[object Array]"==t.call(n)}},{}],53:[function(n,l,e){(function(e){var u=n("path"),r=n("fs"),o=parseInt("0777",8);function i(n,l,a,s){"function"==typeof l?(a=l,l={}):l&&"object"===t(l)||(l={mode:l});var c=l.mode,f=l.fs||r;void 0===c&&(c=o&~e.umask()),s||(s=null);var p=a||function(){};n=u.resolve(n),f.mkdir(n,c,function(e){if(!e)return p(null,s=s||n);switch(e.code){case"ENOENT":i(u.dirname(n),l,function(e,t){e?p(e,t):i(n,l,p,t)});break;default:f.stat(n,function(n,l){n||!l.isDirectory()?p(e,s):p(null,s)})}})}l.exports=i.mkdirp=i.mkdirP=i,i.sync=function n(l,i,a){i&&"object"===t(i)||(i={mode:i});var s=i.mode,c=i.fs||r;void 0===s&&(s=o&~e.umask()),a||(a=null),l=u.resolve(l);try{c.mkdirSync(l,s),a=a||l}catch(e){switch(e.code){case"ENOENT":a=n(u.dirname(l),i,a),n(l,i,a);break;default:var f;try{f=c.statSync(l)}catch(n){throw e}if(!f.isDirectory())throw e}}return a}}).call(this,n("_process"))},{_process:56,fs:40,path:40}],54:[function(n,l,e){var u=1e3,r=60*u,o=60*r,i=24*o,a=365.25*i;function s(n,l,e){if(!(n0)return function(n){if((n=String(n)).length>100)return;var l=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(n);if(!l)return;var e=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return e*a;case"days":case"day":case"d":return e*i;case"hours":case"hour":case"hrs":case"hr":case"h":return e*o;case"minutes":case"minute":case"mins":case"min":case"m":return e*r;case"seconds":case"second":case"secs":case"sec":case"s":return e*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}(n);if("number"===c&&!1===isNaN(n))return l.long?s(e=n,i,"day")||s(e,o,"hour")||s(e,r,"minute")||s(e,u,"second")||e+" ms":function(n){if(n>=i)return Math.round(n/i)+"d";if(n>=o)return Math.round(n/o)+"h";if(n>=r)return Math.round(n/r)+"m";if(n>=u)return Math.round(n/u)+"s";return n+"ms"}(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))}},{}],55:[function(n,l,e){(function(n){"use strict";!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?l.exports={nextTick:function(l,e,t,u){if("function"!=typeof l)throw new TypeError('"callback" argument must be a function');var r,o,i=arguments.length;switch(i){case 0:case 1:return n.nextTick(l);case 2:return n.nextTick(function(){l.call(null,e)});case 3:return n.nextTick(function(){l.call(null,e,t)});case 4:return n.nextTick(function(){l.call(null,e,t,u)});default:for(r=new Array(i-1),o=0;o1)for(var e=1;e0?("string"==typeof l||o.objectMode||Object.getPrototypeOf(l)===s.prototype||(l=function(n){return s.from(n)}(l)),t?o.endEmitted?n.emit("error",new Error("stream.unshift() after end event")):A(n,o,l,!0):o.ended?n.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!e?(l=o.decoder.write(l),o.objectMode||0!==l.length?A(n,o,l,!1):S(n,o)):A(n,o,l,!1))):t||(o.reading=!1));return function(n){return!n.ended&&(n.needReadable||n.lengthl.highWaterMark&&(l.highWaterMark=function(n){return n>=E?n=E:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}(n)),n<=l.length?n:l.ended?l.length:(l.needReadable=!0,0))}function C(n){var l=n._readableState;l.needReadable=!1,l.emittedReadable||(d("emitReadable",l.flowing),l.emittedReadable=!0,l.sync?u.nextTick(_,n):_(n))}function _(n){d("emit readable"),n.emit("readable"),D(n)}function S(n,l){l.readingMore||(l.readingMore=!0,u.nextTick(T,n,l))}function T(n,l){for(var e=l.length;!l.reading&&!l.flowing&&!l.ended&&l.length=l.length?(e=l.decoder?l.buffer.join(""):1===l.buffer.length?l.buffer.head.data:l.buffer.concat(l.length),l.buffer.clear()):e=function(n,l,e){var t;nr.length?r.length:n;if(o===r.length?u+=r:u+=r.slice(0,n),0===(n-=o)){o===r.length?(++t,e.next?l.head=e.next:l.head=l.tail=null):(l.head=e,e.data=r.slice(o));break}++t}return l.length-=t,u}(n,l):function(n,l){var e=s.allocUnsafe(n),t=l.head,u=1;t.data.copy(e),n-=t.data.length;for(;t=t.next;){var r=t.data,o=n>r.length?r.length:n;if(r.copy(e,e.length-n,0,o),0===(n-=o)){o===r.length?(++u,t.next?l.head=t.next:l.head=l.tail=null):(l.head=t,t.data=r.slice(o));break}++u}return l.length-=u,e}(n,l);return t}(n,l.buffer,l.decoder),e);var e}function j(n){var l=n._readableState;if(l.length>0)throw new Error('"endReadable()" called on non-empty stream');l.endEmitted||(l.ended=!0,u.nextTick(O,l,n))}function O(n,l){n.endEmitted||0!==n.length||(n.endEmitted=!0,l.readable=!1,l.emit("end"))}function B(n,l){for(var e=0,t=n.length;e=l.highWaterMark||l.ended))return d("read: emitReadable",l.length,l.ended),0===l.length&&l.ended?j(this):C(this),null;if(0===(n=x(n,l))&&l.ended)return 0===l.length&&j(this),null;var t,u=l.needReadable;return d("need readable",u),(0===l.length||l.length-n0?P(n,l):null)?(l.needReadable=!0,n=0):l.length-=n,0===l.length&&(l.ended||(l.needReadable=!0),e!==n&&l.ended&&j(this)),null!==t&&this.emit("data",t),t},v.prototype._read=function(n){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(l,e){var t=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=l;break;case 1:r.pipes=[r.pipes,l];break;default:r.pipes.push(l)}r.pipesCount+=1,d("pipe count=%d opts=%j",r.pipesCount,e);var a=(!e||!1!==e.end)&&l!==n.stdout&&l!==n.stderr?c:v;function s(n,e){d("onunpipe"),n===t&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d("cleanup"),l.removeListener("close",y),l.removeListener("finish",b),l.removeListener("drain",f),l.removeListener("error",m),l.removeListener("unpipe",s),t.removeListener("end",c),t.removeListener("end",v),t.removeListener("data",g),p=!0,!r.awaitDrain||l._writableState&&!l._writableState.needDrain||f())}function c(){d("onend"),l.end()}r.endEmitted?u.nextTick(a):t.once("end",a),l.on("unpipe",s);var f=function(n){return function(){var l=n._readableState;d("pipeOnDrain",l.awaitDrain),l.awaitDrain&&l.awaitDrain--,0===l.awaitDrain&&i(n,"data")&&(l.flowing=!0,D(n))}}(t);l.on("drain",f);var p=!1;var h=!1;function g(n){d("ondata"),h=!1,!1!==l.write(n)||h||((1===r.pipesCount&&r.pipes===l||r.pipesCount>1&&-1!==B(r.pipes,l))&&!p&&(d("false write response, pause",t._readableState.awaitDrain),t._readableState.awaitDrain++,h=!0),t.pause())}function m(n){d("onerror",n),v(),l.removeListener("error",m),0===i(l,"error")&&l.emit("error",n)}function y(){l.removeListener("finish",b),v()}function b(){d("onfinish"),l.removeListener("close",y),v()}function v(){d("unpipe"),t.unpipe(l)}return t.on("data",g),function(n,l,e){if("function"==typeof n.prependListener)return n.prependListener(l,e);n._events&&n._events[l]?o(n._events[l])?n._events[l].unshift(e):n._events[l]=[e,n._events[l]]:n.on(l,e)}(l,"error",m),l.once("close",y),l.once("finish",b),l.emit("pipe",t),r.flowing||(d("pipe resume"),t.resume()),l},v.prototype.unpipe=function(n){var l=this._readableState,e={hasUnpiped:!1};if(0===l.pipesCount)return this;if(1===l.pipesCount)return n&&n!==l.pipes?this:(n||(n=l.pipes),l.pipes=null,l.pipesCount=0,l.flowing=!1,n&&n.emit("unpipe",this,e),this);if(!n){var t=l.pipes,u=l.pipesCount;l.pipes=null,l.pipesCount=0,l.flowing=!1;for(var r=0;r-1?l:r.nextTick;b.WritableState=y;var s=e("core-util-is");s.inherits=e("inherits");var c={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),p=e("safe-buffer").Buffer,d=u.Uint8Array||function(){};var h,g=e("./internal/streams/destroy");function m(){}function y(n,l){i=i||e("./_stream_duplex"),n=n||{};var t=l instanceof i;this.objectMode=!!n.objectMode,t&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var u=n.highWaterMark,s=n.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:t&&(s||0===s)?s:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===n.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){!function(n,l){var e=n._writableState,t=e.sync,u=e.writecb;if(function(n){n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0}(e),l)!function(n,l,e,t,u){--l.pendingcb,e?(r.nextTick(u,t),r.nextTick(C,n,l),n._writableState.errorEmitted=!0,n.emit("error",t)):(u(t),n._writableState.errorEmitted=!0,n.emit("error",t),C(n,l))}(n,e,t,l,u);else{var o=E(e);o||e.corked||e.bufferProcessing||!e.bufferedRequest||A(n,e),t?a(w,n,e,o,u):w(n,e,o,u)}}(l,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(n){if(i=i||e("./_stream_duplex"),!(h.call(b,this)||this instanceof i))return new b(n);this._writableState=new y(n,this),this.writable=!0,n&&("function"==typeof n.write&&(this._write=n.write),"function"==typeof n.writev&&(this._writev=n.writev),"function"==typeof n.destroy&&(this._destroy=n.destroy),"function"==typeof n.final&&(this._final=n.final)),f.call(this)}function v(n,l,e,t,u,r,o){l.writelen=t,l.writecb=o,l.writing=!0,l.sync=!0,e?n._writev(u,l.onwrite):n._write(u,r,l.onwrite),l.sync=!1}function w(n,l,e,t){e||function(n,l){0===l.length&&l.needDrain&&(l.needDrain=!1,n.emit("drain"))}(n,l),l.pendingcb--,t(),C(n,l)}function A(n,l){l.bufferProcessing=!0;var e=l.bufferedRequest;if(n._writev&&e&&e.next){var t=l.bufferedRequestCount,u=new Array(t),r=l.corkedRequestsFree;r.entry=e;for(var i=0,a=!0;e;)u[i]=e,e.isBuf||(a=!1),e=e.next,i+=1;u.allBuffers=a,v(n,l,!0,l.length,u,"",r.finish),l.pendingcb++,l.lastBufferedRequest=null,r.next?(l.corkedRequestsFree=r.next,r.next=null):l.corkedRequestsFree=new o(l),l.bufferedRequestCount=0}else{for(;e;){var s=e.chunk,c=e.encoding,f=e.callback;if(v(n,l,!1,l.objectMode?1:s.length,s,c,f),e=e.next,l.bufferedRequestCount--,l.writing)break}null===e&&(l.lastBufferedRequest=null)}l.bufferedRequest=e,l.bufferProcessing=!1}function E(n){return n.ending&&0===n.length&&null===n.bufferedRequest&&!n.finished&&!n.writing}function x(n,l){n._final(function(e){l.pendingcb--,e&&n.emit("error",e),l.prefinished=!0,n.emit("prefinish"),C(n,l)})}function C(n,l){var e=E(l);return e&&(!function(n,l){l.prefinished||l.finalCalled||("function"==typeof n._final?(l.pendingcb++,l.finalCalled=!0,r.nextTick(x,n,l)):(l.prefinished=!0,n.emit("prefinish")))}(n,l),0===l.pendingcb&&(l.finished=!0,n.emit("finish"))),e}s.inherits(b,f),y.prototype.getBuffer=function(){for(var n=this.bufferedRequest,l=[];n;)l.push(n),n=n.next;return l},function(){try{Object.defineProperty(y.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(n){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(n){return!!h.call(this,n)||this===b&&(n&&n._writableState instanceof y)}})):h=function(n){return n instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(n,l,e){var t,u=this._writableState,o=!1,i=!u.objectMode&&(t=n,p.isBuffer(t)||t instanceof d);return i&&!p.isBuffer(n)&&(n=function(n){return p.from(n)}(n)),"function"==typeof l&&(e=l,l=null),i?l="buffer":l||(l=u.defaultEncoding),"function"!=typeof e&&(e=m),u.ended?function(n,l){var e=new Error("write after end");n.emit("error",e),r.nextTick(l,e)}(this,e):(i||function(n,l,e,t){var u=!0,o=!1;return null===e?o=new TypeError("May not write null values to stream"):"string"==typeof e||void 0===e||l.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(n.emit("error",o),r.nextTick(t,o),u=!1),u}(this,u,n,e))&&(u.pendingcb++,o=function(n,l,e,t,u,r){if(!e){var o=function(n,l,e){n.objectMode||!1===n.decodeStrings||"string"!=typeof l||(l=p.from(l,e));return l}(l,t,u);t!==o&&(e=!0,u="buffer",t=o)}var i=l.objectMode?1:t.length;l.length+=i;var a=l.length-1))throw new TypeError("Unknown encoding: "+n);return this._writableState.defaultEncoding=n,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(n,l,e){e(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(n,l,e){var t=this._writableState;"function"==typeof n?(e=n,n=null,l=null):"function"==typeof l&&(e=l,l=null),null!=n&&this.write(n,l),t.corked&&(t.corked=1,this.uncork()),t.ending||t.finished||function(n,l,e){l.ending=!0,C(n,l),e&&(l.finished?r.nextTick(e):n.once("finish",e));l.ended=!0,n.writable=!1}(this,t,e)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(n){this._writableState&&(this._writableState.destroyed=n)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(n,l){this.end(),l(n)}}).call(this,e("_process"),void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":58,"./internal/streams/destroy":64,"./internal/streams/stream":65,_process:56,"core-util-is":42,inherits:50,"process-nextick-args":55,"safe-buffer":70,"util-deprecate":73}],63:[function(n,l,e){"use strict";var t=n("safe-buffer").Buffer,u=n("util");l.exports=function(){function n(){!function(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}(this,n),this.head=null,this.tail=null,this.length=0}return n.prototype.push=function(n){var l={data:n,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},n.prototype.unshift=function(n){var l={data:n,next:this.head};0===this.length&&(this.tail=l),this.head=l,++this.length},n.prototype.shift=function(){if(0!==this.length){var n=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},n.prototype.clear=function(){this.head=this.tail=null,this.length=0},n.prototype.join=function(n){if(0===this.length)return"";for(var l=this.head,e=""+l.data;l=l.next;)e+=n+l.data;return e},n.prototype.concat=function(n){if(0===this.length)return t.alloc(0);if(1===this.length)return this.head.data;for(var l,e,u,r=t.allocUnsafe(n>>>0),o=this.head,i=0;o;)l=o.data,e=r,u=i,l.copy(e,u),i+=o.data.length,o=o.next;return r},n}(),u&&u.inspect&&u.inspect.custom&&(l.exports.prototype[u.inspect.custom]=function(){var n=u.inspect({length:this.length});return this.constructor.name+" "+n})},{"safe-buffer":70,util:38}],64:[function(n,l,e){"use strict";var t=n("process-nextick-args");function u(n,l){n.emit("error",l)}l.exports={destroy:function(n,l){var e=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(l?l(n):!n||this._writableState&&this._writableState.errorEmitted||t.nextTick(u,this,n),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(n){!l&&n?(t.nextTick(u,e,n),e._writableState&&(e._writableState.errorEmitted=!0)):l&&l(n)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":55}],65:[function(n,l,e){l.exports=n("events").EventEmitter},{events:47}],66:[function(n,l,e){l.exports=n("./readable").PassThrough},{"./readable":67}],67:[function(n,l,e){(e=l.exports=n("./lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=n("./lib/_stream_writable.js"),e.Duplex=n("./lib/_stream_duplex.js"),e.Transform=n("./lib/_stream_transform.js"),e.PassThrough=n("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":58,"./lib/_stream_passthrough.js":59,"./lib/_stream_readable.js":60,"./lib/_stream_transform.js":61,"./lib/_stream_writable.js":62}],68:[function(n,l,e){l.exports=n("./readable").Transform},{"./readable":67}],69:[function(n,l,e){l.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":62}],70:[function(n,l,e){var t=n("buffer"),u=t.Buffer;function r(n,l){for(var e in n)l[e]=n[e]}function o(n,l,e){return u(n,l,e)}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?l.exports=t:(r(t,e),e.Buffer=o),r(u,o),o.from=function(n,l,e){if("number"==typeof n)throw new TypeError("Argument must not be a number");return u(n,l,e)},o.alloc=function(n,l,e){if("number"!=typeof n)throw new TypeError("Argument must be a number");var t=u(n);return void 0!==l?"string"==typeof e?t.fill(l,e):t.fill(l):t.fill(0),t},o.allocUnsafe=function(n){if("number"!=typeof n)throw new TypeError("Argument must be a number");return u(n)},o.allocUnsafeSlow=function(n){if("number"!=typeof n)throw new TypeError("Argument must be a number");return t.SlowBuffer(n)}},{buffer:41}],71:[function(n,l,e){l.exports=u;var t=n("events").EventEmitter;function u(){t.call(this)}n("inherits")(u,t),u.Readable=n("readable-stream/readable.js"),u.Writable=n("readable-stream/writable.js"),u.Duplex=n("readable-stream/duplex.js"),u.Transform=n("readable-stream/transform.js"),u.PassThrough=n("readable-stream/passthrough.js"),u.Stream=u,u.prototype.pipe=function(n,l){var e=this;function u(l){n.writable&&!1===n.write(l)&&e.pause&&e.pause()}function r(){e.readable&&e.resume&&e.resume()}e.on("data",u),n.on("drain",r),n._isStdio||l&&!1===l.end||(e.on("end",i),e.on("close",a));var o=!1;function i(){o||(o=!0,n.end())}function a(){o||(o=!0,"function"==typeof n.destroy&&n.destroy())}function s(n){if(c(),0===t.listenerCount(this,"error"))throw n}function c(){e.removeListener("data",u),n.removeListener("drain",r),e.removeListener("end",i),e.removeListener("close",a),e.removeListener("error",s),n.removeListener("error",s),e.removeListener("end",c),e.removeListener("close",c),n.removeListener("close",c)}return e.on("error",s),n.on("error",s),e.on("end",c),e.on("close",c),n.on("close",c),n.emit("pipe",e),n}},{events:47,inherits:50,"readable-stream/duplex.js":57,"readable-stream/passthrough.js":66,"readable-stream/readable.js":67,"readable-stream/transform.js":68,"readable-stream/writable.js":69}],72:[function(n,l,e){"use strict";var t=n("safe-buffer").Buffer,u=t.isEncoding||function(n){switch((n=""+n)&&n.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(n){var l;switch(this.encoding=function(n){var l=function(n){if(!n)return"utf8";for(var l;;)switch(n){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return n;default:if(l)return;n=(""+n).toLowerCase(),l=!0}}(n);if("string"!=typeof l&&(t.isEncoding===u||!u(n)))throw new Error("Unknown encoding: "+n);return l||n}(n),this.encoding){case"utf16le":this.text=a,this.end=s,l=4;break;case"utf8":this.fillLast=i,l=4;break;case"base64":this.text=c,this.end=f,l=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(l)}function o(n){return n<=127?0:n>>5==6?2:n>>4==14?3:n>>3==30?4:n>>6==2?-1:-2}function i(n){var l=this.lastTotal-this.lastNeed,e=function(n,l,e){if(128!=(192&l[0]))return n.lastNeed=0,"�";if(n.lastNeed>1&&l.length>1){if(128!=(192&l[1]))return n.lastNeed=1,"�";if(n.lastNeed>2&&l.length>2&&128!=(192&l[2]))return n.lastNeed=2,"�"}}(this,n);return void 0!==e?e:this.lastNeed<=n.length?(n.copy(this.lastChar,l,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(n.copy(this.lastChar,l,0,n.length),void(this.lastNeed-=n.length))}function a(n,l){if((n.length-l)%2==0){var e=n.toString("utf16le",l);if(e){var t=e.charCodeAt(e.length-1);if(t>=55296&&t<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",l,n.length-1)}function s(n){var l=n&&n.length?this.write(n):"";if(this.lastNeed){var e=this.lastTotal-this.lastNeed;return l+this.lastChar.toString("utf16le",0,e)}return l}function c(n,l){var e=(n.length-l)%3;return 0===e?n.toString("base64",l):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",l,n.length-e))}function f(n){var l=n&&n.length?this.write(n):"";return this.lastNeed?l+this.lastChar.toString("base64",0,3-this.lastNeed):l}function p(n){return n.toString(this.encoding)}function d(n){return n&&n.length?this.write(n):""}e.StringDecoder=r,r.prototype.write=function(n){if(0===n.length)return"";var l,e;if(this.lastNeed){if(void 0===(l=this.fillLast(n)))return"";e=this.lastNeed,this.lastNeed=0}else e=0;return e=0)return u>0&&(n.lastNeed=u-1),u;if(--t=0)return u>0&&(n.lastNeed=u-2),u;if(--t=0)return u>0&&(2===u?u=0:n.lastNeed=u-3),u;return 0}(this,n,l);if(!this.lastNeed)return n.toString("utf8",l);this.lastTotal=e;var t=n.length-(e-this.lastNeed);return n.copy(this.lastChar,0,t),n.toString("utf8",l,t)},r.prototype.fillLast=function(n){if(this.lastNeed<=n.length)return n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,n.length),this.lastNeed-=n.length}},{"safe-buffer":70}],73:[function(l,e,t){(function(n){function l(l){try{if(!n.localStorage)return!1}catch(n){return!1}var e=n.localStorage[l];return null!=e&&"true"===String(e).toLowerCase()}e.exports=function(n,e){if(l("noDeprecation"))return n;var t=!1;return function(){if(!t){if(l("throwDeprecation"))throw new Error(e);l("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return n.apply(this,arguments)}}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],74:[function(n,l,e){arguments[4][50][0].apply(e,arguments)},{dup:50}],75:[function(n,l,e){l.exports=function(n){return n&&"object"===t(n)&&"function"==typeof n.copy&&"function"==typeof n.fill&&"function"==typeof n.readUInt8}},{}],76:[function(l,e,u){(function(n,e){var r=/%[sdj%]/g;u.format=function(n){if(!b(n)){for(var l=[],e=0;e=u)return n;switch(n){case"%s":return String(t[e++]);case"%d":return Number(t[e++]);case"%j":try{return JSON.stringify(t[e++])}catch(n){return"[Circular]"}default:return n}}),i=t[e];e=3&&(e.depth=arguments[2]),arguments.length>=4&&(e.colors=arguments[3]),g(l)?e.showHidden=l:l&&u._extend(e,l),v(e.showHidden)&&(e.showHidden=!1),v(e.depth)&&(e.depth=2),v(e.colors)&&(e.colors=!1),v(e.customInspect)&&(e.customInspect=!0),e.colors&&(e.stylize=s),f(e,n,e.depth)}function s(n,l){var e=a.styles[l];return e?"["+a.colors[e][0]+"m"+n+"["+a.colors[e][1]+"m":n}function c(n,l){return n}function f(n,l,e){if(n.customInspect&&l&&C(l.inspect)&&l.inspect!==u.inspect&&(!l.constructor||l.constructor.prototype!==l)){var t=l.inspect(e,n);return b(t)||(t=f(n,t,e)),t}var r=function(n,l){if(v(l))return n.stylize("undefined","undefined");if(b(l)){var e="'"+JSON.stringify(l).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(e,"string")}if(y(l))return n.stylize(""+l,"number");if(g(l))return n.stylize(""+l,"boolean");if(m(l))return n.stylize("null","null")}(n,l);if(r)return r;var o=Object.keys(l),i=function(n){var l={};return n.forEach(function(n,e){l[n]=!0}),l}(o);if(n.showHidden&&(o=Object.getOwnPropertyNames(l)),x(l)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(l);if(0===o.length){if(C(l)){var a=l.name?": "+l.name:"";return n.stylize("[Function"+a+"]","special")}if(w(l))return n.stylize(RegExp.prototype.toString.call(l),"regexp");if(E(l))return n.stylize(Date.prototype.toString.call(l),"date");if(x(l))return p(l)}var s,c="",A=!1,_=["{","}"];(h(l)&&(A=!0,_=["[","]"]),C(l))&&(c=" [Function"+(l.name?": "+l.name:"")+"]");return w(l)&&(c=" "+RegExp.prototype.toString.call(l)),E(l)&&(c=" "+Date.prototype.toUTCString.call(l)),x(l)&&(c=" "+p(l)),0!==o.length||A&&0!=l.length?e<0?w(l)?n.stylize(RegExp.prototype.toString.call(l),"regexp"):n.stylize("[Object]","special"):(n.seen.push(l),s=A?function(n,l,e,t,u){for(var r=[],o=0,i=l.length;o=0&&0,n+l.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return e[0]+(""===l?"":l+"\n ")+" "+n.join(",\n ")+" "+e[1];return e[0]+l+" "+n.join(", ")+" "+e[1]}(s,c,_)):_[0]+c+_[1]}function p(n){return"["+Error.prototype.toString.call(n)+"]"}function d(n,l,e,t,u,r){var o,i,a;if((a=Object.getOwnPropertyDescriptor(l,u)||{value:l[u]}).get?i=a.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):a.set&&(i=n.stylize("[Setter]","special")),k(t,u)||(o="["+u+"]"),i||(n.seen.indexOf(a.value)<0?(i=m(e)?f(n,a.value,null):f(n,a.value,e-1)).indexOf("\n")>-1&&(i=r?i.split("\n").map(function(n){return" "+n}).join("\n").substr(2):"\n"+i.split("\n").map(function(n){return" "+n}).join("\n")):i=n.stylize("[Circular]","special")),v(o)){if(r&&u.match(/^\d+$/))return i;(o=JSON.stringify(""+u)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=n.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=n.stylize(o,"string"))}return o+": "+i}function h(n){return Array.isArray(n)}function g(n){return"boolean"==typeof n}function m(n){return null===n}function y(n){return"number"==typeof n}function b(n){return"string"==typeof n}function v(n){return void 0===n}function w(n){return A(n)&&"[object RegExp]"===_(n)}function A(n){return"object"===t(n)&&null!==n}function E(n){return A(n)&&"[object Date]"===_(n)}function x(n){return A(n)&&("[object Error]"===_(n)||n instanceof Error)}function C(n){return"function"==typeof n}function _(n){return Object.prototype.toString.call(n)}function S(n){return n<10?"0"+n.toString(10):n.toString(10)}u.debuglog=function(l){if(v(o)&&(o=n.env.NODE_DEBUG||""),l=l.toUpperCase(),!i[l])if(new RegExp("\\b"+l+"\\b","i").test(o)){var e=n.pid;i[l]=function(){var n=u.format.apply(u,arguments);console.error("%s %d: %s",l,e,n)}}else i[l]=function(){};return i[l]},u.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},u.isArray=h,u.isBoolean=g,u.isNull=m,u.isNullOrUndefined=function(n){return null==n},u.isNumber=y,u.isString=b,u.isSymbol=function(n){return"symbol"===t(n)},u.isUndefined=v,u.isRegExp=w,u.isObject=A,u.isDate=E,u.isError=x,u.isFunction=C,u.isPrimitive=function(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"===t(n)||void 0===n},u.isBuffer=l("./support/isBuffer");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(n,l){return Object.prototype.hasOwnProperty.call(n,l)}u.log=function(){var n,l;console.log("%s - %s",(n=new Date,l=[S(n.getHours()),S(n.getMinutes()),S(n.getSeconds())].join(":"),[n.getDate(),T[n.getMonth()],l].join(" ")),u.format.apply(u,arguments))},u.inherits=l("inherits"),u._extend=function(n,l){if(!l||!A(l))return n;for(var e=Object.keys(l),t=e.length;t--;)n[e[t]]=l[e[t]];return n}}).call(this,l("_process"),void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":75,_process:56,inherits:74}]},{},[1])}).call(this,e(15),e(38).setImmediate)},function(n,l,e){(function(n,l){!function(n,e){"use strict";if(!n.setImmediate){var t,u,r,o,i,a=1,s={},c=!1,f=n.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(n);p=p&&p.setTimeout?p:n,"[object process]"==={}.toString.call(n.process)?t=function(n){l.nextTick(function(){h(n)})}:!function(){if(n.postMessage&&!n.importScripts){var l=!0,e=n.onmessage;return n.onmessage=function(){l=!1},n.postMessage("","*"),n.onmessage=e,l}}()?n.MessageChannel?((r=new MessageChannel).port1.onmessage=function(n){h(n.data)},t=function(n){r.port2.postMessage(n)}):f&&"onreadystatechange"in f.createElement("script")?(u=f.documentElement,t=function(n){var l=f.createElement("script");l.onreadystatechange=function(){h(n),l.onreadystatechange=null,u.removeChild(l),l=null},u.appendChild(l)}):t=function(n){setTimeout(h,0,n)}:(o="setImmediate$"+Math.random()+"$",i=function(l){l.source===n&&"string"==typeof l.data&&0===l.data.indexOf(o)&&h(+l.data.slice(o.length))},n.addEventListener?n.addEventListener("message",i,!1):n.attachEvent("onmessage",i),t=function(l){n.postMessage(o+l,"*")}),p.setImmediate=function(n){"function"!=typeof n&&(n=new Function(""+n));for(var l=new Array(arguments.length-1),e=0;e1?r(n,e,e.length-1):n,name:o.p||o.i,value:r(n,e)};return i.exists=t(i.parent,i.name),i}n.exports={hasProperty:t,getPathInfo:o,getPathValue:function(n,l){return o(n,l).value},setPathValue:function(n,l,e){return function(n,l,e){for(var t=n,u=e.length,r=null,o=0;o1&&e===l.length-1?"or ":"")+t+" "+n}).join(", "),a=r(n).toLowerCase();if(!l.some(function(n){return a===n}))throw new t(e+"object tested must be "+i+", but "+a+" given",void 0,o)}},function(n,l,e){var t=e(3),u=e(44),r=e(45);n.exports=function(n,l){var e=t(n,"negate"),o=t(n,"object"),i=l[3],a=u(n,l),s=e?l[2]:l[1],c=t(n,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,function(){return r(o)}).replace(/#\{act\}/g,function(){return r(a)}).replace(/#\{exp\}/g,function(){return r(i)}),c?c+": "+s:s}},function(n,l){n.exports=function(n){var l=[];for(var e in n)l.push(e);return l}},function(n,l,e){"use strict";function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var u=e(39);function r(){this._key="chai/deep-eql__"+Math.random()+Date.now()}r.prototype={get:function(n){return n[this._key]},set:function(n,l){Object.isExtensible(n)&&Object.defineProperty(n,this._key,{value:l,configurable:!0})}};var o="function"==typeof WeakMap?WeakMap:r;function i(n,l,e){if(!e||y(n)||y(l))return null;var t=e.get(n);if(t){var u=t.get(l);if("boolean"==typeof u)return u}return null}function a(n,l,e,t){if(e&&!y(n)&&!y(l)){var u=e.get(n);u?u.set(l,t):((u=new o).set(l,t),e.set(n,u))}}function s(n,l,e){if(e&&e.comparator)return f(n,l,e);var t=c(n,l);return null!==t?t:f(n,l,e)}function c(n,l){return n===l?0!==n||1/n==1/l:n!=n&&l!=l||!y(n)&&!y(l)&&null}function f(n,l,e){(e=e||{}).memoize=!1!==e.memoize&&(e.memoize||new o);var t=e&&e.comparator,r=i(n,l,e.memoize);if(null!==r)return r;var f=i(l,n,e.memoize);if(null!==f)return f;if(t){var y=t(n,l);if(!1===y||!0===y)return a(n,l,e.memoize,y),y;var b=c(n,l);if(null!==b)return b}var v=u(n);if(v!==u(l))return a(n,l,e.memoize,!1),!1;a(n,l,e.memoize,!0);var w=function(n,l,e,t){switch(e){case"String":case"Number":case"Boolean":case"Date":return s(n.valueOf(),l.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":case"Error":return n===l;case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return d(n,l,t);case"RegExp":return function(n,l){return n.toString()===l.toString()}(n,l);case"Generator":return function(n,l,e){return d(g(n),g(l),e)}(n,l,t);case"DataView":return d(new Uint8Array(n.buffer),new Uint8Array(l.buffer),t);case"ArrayBuffer":return d(new Uint8Array(n),new Uint8Array(l),t);case"Set":case"Map":return p(n,l,t);default:return function(n,l,e){var t=m(n),u=m(l);if(t.length&&t.length===u.length)return t.sort(),u.sort(),!1!==d(t,u)&&function(n,l,e,t){var u=e.length;if(0===u)return!0;for(var r=0;r1&&b===m.length)throw y;return}this.assert(h,"expected #{this} to "+d+"include "+l.inspect(n),"expected #{this} to not "+d+"include "+l.inspect(n))}function c(){var n=r(this,"object"),e=l.type(n);this.assert("Arguments"===e,"expected #{this} to be arguments but got "+e,"expected #{this} to not be arguments")}function f(n,l){l&&r(this,"message",l);var e=r(this,"object");if(r(this,"deep")){var t=r(this,"lockSsfi");r(this,"lockSsfi",!0),this.eql(n),r(this,"lockSsfi",t)}else this.assert(n===e,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",n,this._obj,!0)}function p(n,e){e&&r(this,"message",e),this.assert(l.eql(n,r(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",n,this._obj,!0)}function d(n,e){e&&r(this,"message",e);var o,i=r(this,"object"),a=r(this,"doLength"),s=r(this,"message"),c=s?s+": ":"",f=r(this,"ssfi"),p=l.type(i).toLowerCase(),d=l.type(n).toLowerCase(),h=!0;if(a&&"map"!==p&&"set"!==p&&new t(i,s,f,!0).to.have.property("length"),a||"date"!==p||"date"===d)if("number"===d||!a&&"number"!==p)if(a||"date"===p||"number"===p)h=!1;else{o=c+"expected "+("string"===p?"'"+i+"'":i)+" to be a number or a date"}else o=c+"the argument to above must be a number";else o=c+"the argument to above must be a date";if(h)throw new u(o,void 0,f);if(a){var g,m="length";"map"===p||"set"===p?(m="size",g=i.size):g=i.length,this.assert(g>n,"expected #{this} to have a "+m+" above #{exp} but got #{act}","expected #{this} to not have a "+m+" above #{exp}",n,g)}else this.assert(i>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}function h(n,e){e&&r(this,"message",e);var o,i=r(this,"object"),a=r(this,"doLength"),s=r(this,"message"),c=s?s+": ":"",f=r(this,"ssfi"),p=l.type(i).toLowerCase(),d=l.type(n).toLowerCase(),h=!0;if(a&&"map"!==p&&"set"!==p&&new t(i,s,f,!0).to.have.property("length"),a||"date"!==p||"date"===d)if("number"===d||!a&&"number"!==p)if(a||"date"===p||"number"===p)h=!1;else{o=c+"expected "+("string"===p?"'"+i+"'":i)+" to be a number or a date"}else o=c+"the argument to least must be a number";else o=c+"the argument to least must be a date";if(h)throw new u(o,void 0,f);if(a){var g,m="length";"map"===p||"set"===p?(m="size",g=i.size):g=i.length,this.assert(g>=n,"expected #{this} to have a "+m+" at least #{exp} but got #{act}","expected #{this} to have a "+m+" below #{exp}",n,g)}else this.assert(i>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}function g(n,e){e&&r(this,"message",e);var o,i=r(this,"object"),a=r(this,"doLength"),s=r(this,"message"),c=s?s+": ":"",f=r(this,"ssfi"),p=l.type(i).toLowerCase(),d=l.type(n).toLowerCase(),h=!0;if(a&&"map"!==p&&"set"!==p&&new t(i,s,f,!0).to.have.property("length"),a||"date"!==p||"date"===d)if("number"===d||!a&&"number"!==p)if(a||"date"===p||"number"===p)h=!1;else{o=c+"expected "+("string"===p?"'"+i+"'":i)+" to be a number or a date"}else o=c+"the argument to below must be a number";else o=c+"the argument to below must be a date";if(h)throw new u(o,void 0,f);if(a){var g,m="length";"map"===p||"set"===p?(m="size",g=i.size):g=i.length,this.assert(g1&&this.assert(d&&(h?l.eql(t,y):t===y),"expected #{this} to have "+b+l.inspect(n)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+l.inspect(n)+" of #{act}",t,y),r(this,"object",y)}function v(n,l,e){r(this,"own",!0),b.apply(this,arguments)}function w(n,e,t){"string"==typeof e&&(t=e,e=null),t&&r(this,"message",t);var u=r(this,"object"),o=Object.getOwnPropertyDescriptor(Object(u),n);o&&e?this.assert(l.eql(e,o),"expected the own property descriptor for "+l.inspect(n)+" on #{this} to match "+l.inspect(e)+", got "+l.inspect(o),"expected the own property descriptor for "+l.inspect(n)+" on #{this} to not match "+l.inspect(e),e,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+l.inspect(n),"expected #{this} to not have an own property descriptor for "+l.inspect(n)),r(this,"object",o)}function A(){r(this,"doLength",!0)}function E(n,e){e&&r(this,"message",e);var u,o=r(this,"object"),i=l.type(o).toLowerCase(),a=r(this,"message"),s=r(this,"ssfi"),c="length";switch(i){case"map":case"set":c="size",u=o.size;break;default:new t(o,a,s,!0).to.have.property("length"),u=o.length}this.assert(u==n,"expected #{this} to have a "+c+" of #{exp} but got #{act}","expected #{this} to not have a "+c+" of #{act}",n,u)}function x(n,l){l&&r(this,"message",l);var e=r(this,"object");this.assert(n.exec(e),"expected #{this} to match "+n,"expected #{this} not to match "+n)}function C(n){var t,o,i=r(this,"object"),a=l.type(i),s=l.type(n),c=r(this,"ssfi"),f=r(this,"deep"),p="",d=!0,h=r(this,"message"),g=(h=h?h+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===a||"Set"===a)p=f?"deeply ":"",o=[],i.forEach(function(n,l){o.push(l)}),"Array"!==s&&(n=Array.prototype.slice.call(arguments));else{switch(o=l.getOwnEnumerableProperties(i),s){case"Array":if(arguments.length>1)throw new u(g,void 0,c);break;case"Object":if(arguments.length>1)throw new u(g,void 0,c);n=Object.keys(n);break;default:n=Array.prototype.slice.call(arguments)}n=n.map(function(n){return"symbol"===e(n)?n:String(n)})}if(!n.length)throw new u(h+"keys required",void 0,c);var m=n.length,y=r(this,"any"),b=r(this,"all"),v=n;if(y||b||(b=!0),y&&(d=v.some(function(n){return o.some(function(e){return f?l.eql(n,e):n===e})})),b&&(d=v.every(function(n){return o.some(function(e){return f?l.eql(n,e):n===e})}),r(this,"contains")||(d=d&&n.length==o.length)),m>1){var w=(n=n.map(function(n){return l.inspect(n)})).pop();b&&(t=n.join(", ")+", and "+w),y&&(t=n.join(", ")+", or "+w)}else t=l.inspect(n[0]);t=(m>1?"keys ":"key ")+t,t=(r(this,"contains")?"contain ":"have ")+t,this.assert(d,"expected #{this} to "+p+t,"expected #{this} to not "+p+t,v.slice(0).sort(l.compareByInspect),o.sort(l.compareByInspect),!0)}function _(n,e,u){u&&r(this,"message",u);var o,i=r(this,"object"),a=r(this,"ssfi"),s=r(this,"message"),c=r(this,"negate")||!1;new t(i,s,a,!0).is.a("function"),(n instanceof RegExp||"string"==typeof n)&&(e=n,n=null);try{i()}catch(n){o=n}var f=void 0===n&&void 0===e,p=Boolean(n&&e),d=!1,h=!1;if(f||!f&&!c){var g="an error";n instanceof Error?g="#{exp}":n&&(g=l.checkError.getConstructorName(n)),this.assert(o,"expected #{this} to throw "+g,"expected #{this} to not throw an error but #{act} was thrown",n&&n.toString(),o instanceof Error?o.toString():"string"==typeof o?o:o&&l.checkError.getConstructorName(o))}if(n&&o){if(n instanceof Error)l.checkError.compatibleInstance(o,n)===c&&(p&&c?d=!0:this.assert(c,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(o&&!c?" but #{act} was thrown":""),n.toString(),o.toString()));l.checkError.compatibleConstructor(o,n)===c&&(p&&c?d=!0:this.assert(c,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(o?" but #{act} was thrown":""),n instanceof Error?n.toString():n&&l.checkError.getConstructorName(n),o instanceof Error?o.toString():o&&l.checkError.getConstructorName(o)))}if(o&&null!=e){var m="including";e instanceof RegExp&&(m="matching"),l.checkError.compatibleMessage(o,e)===c&&(p&&c?h=!0:this.assert(c,"expected #{this} to throw error "+m+" #{exp} but got #{act}","expected #{this} to throw error not "+m+" #{exp}",e,l.checkError.getMessage(o)))}d&&h&&this.assert(c,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(o?" but #{act} was thrown":""),n instanceof Error?n.toString():n&&l.checkError.getConstructorName(n),o instanceof Error?o.toString():o&&l.checkError.getConstructorName(o)),r(this,"object",o)}function S(n,e){e&&r(this,"message",e);var t=r(this,"object"),u=r(this,"itself"),o="function"!=typeof t||u?t[n]:t.prototype[n];this.assert("function"==typeof o,"expected #{this} to respond to "+l.inspect(n),"expected #{this} to not respond to "+l.inspect(n))}function T(n,e){e&&r(this,"message",e);var t=n(r(this,"object"));this.assert(t,"expected #{this} to satisfy "+l.objDisplay(n),"expected #{this} to not satisfy"+l.objDisplay(n),!r(this,"negate"),t)}function k(n,l,e){e&&r(this,"message",e);var o=r(this,"object"),i=r(this,"message"),a=r(this,"ssfi");if(new t(o,i,a,!0).is.a("number"),"number"!=typeof n||"number"!=typeof l)throw new u((i=i?i+": ":"")+"the arguments to closeTo or approximately must be numbers",void 0,a);this.assert(Math.abs(o-n)<=l,"expected #{this} to be close to "+n+" +/- "+l,"expected #{this} not to be close to "+n+" +/- "+l)}function F(n,l,e){e&&r(this,"message",e);var u,o=r(this,"object"),i=r(this,"message"),a=r(this,"ssfi");new t(o,i,a,!0).is.a("function"),l?(new t(n,i,a,!0).to.have.property(l),u=n[l]):(new t(n,i,a,!0).is.a("function"),u=n()),o();var s=null==l?n():n[l],c=null==l?u:"."+l;r(this,"deltaMsgObj",c),r(this,"initialDeltaValue",u),r(this,"finalDeltaValue",s),r(this,"deltaBehavior","change"),r(this,"realDelta",s!==u),this.assert(u!==s,"expected "+c+" to change","expected "+c+" to not change")}function D(n,l,e){e&&r(this,"message",e);var u,o=r(this,"object"),i=r(this,"message"),a=r(this,"ssfi");new t(o,i,a,!0).is.a("function"),l?(new t(n,i,a,!0).to.have.property(l),u=n[l]):(new t(n,i,a,!0).is.a("function"),u=n()),new t(u,i,a,!0).is.a("number"),o();var s=null==l?n():n[l],c=null==l?u:"."+l;r(this,"deltaMsgObj",c),r(this,"initialDeltaValue",u),r(this,"finalDeltaValue",s),r(this,"deltaBehavior","increase"),r(this,"realDelta",s-u),this.assert(s-u>0,"expected "+c+" to increase","expected "+c+" to not increase")}function P(n,l,e){e&&r(this,"message",e);var u,o=r(this,"object"),i=r(this,"message"),a=r(this,"ssfi");new t(o,i,a,!0).is.a("function"),l?(new t(n,i,a,!0).to.have.property(l),u=n[l]):(new t(n,i,a,!0).is.a("function"),u=n()),new t(u,i,a,!0).is.a("number"),o();var s=null==l?n():n[l],c=null==l?u:"."+l;r(this,"deltaMsgObj",c),r(this,"initialDeltaValue",u),r(this,"finalDeltaValue",s),r(this,"deltaBehavior","decrease"),r(this,"realDelta",u-s),this.assert(s-u<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still"].forEach(function(n){t.addProperty(n)}),t.addProperty("not",function(){r(this,"negate",!0)}),t.addProperty("deep",function(){r(this,"deep",!0)}),t.addProperty("nested",function(){r(this,"nested",!0)}),t.addProperty("own",function(){r(this,"own",!0)}),t.addProperty("ordered",function(){r(this,"ordered",!0)}),t.addProperty("any",function(){r(this,"any",!0),r(this,"all",!1)}),t.addProperty("all",function(){r(this,"all",!0),r(this,"any",!1)}),t.addChainableMethod("an",o),t.addChainableMethod("a",o),t.addChainableMethod("include",s,a),t.addChainableMethod("contain",s,a),t.addChainableMethod("contains",s,a),t.addChainableMethod("includes",s,a),t.addProperty("ok",function(){this.assert(r(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),t.addProperty("true",function(){this.assert(!0===r(this,"object"),"expected #{this} to be true","expected #{this} to be false",!r(this,"negate"))}),t.addProperty("false",function(){this.assert(!1===r(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!r(this,"negate"))}),t.addProperty("null",function(){this.assert(null===r(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}),t.addProperty("undefined",function(){this.assert(void 0===r(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}),t.addProperty("NaN",function(){this.assert(l.isNaN(r(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")}),t.addProperty("exist",function(){var n=r(this,"object");this.assert(null!=n,"expected #{this} to exist","expected #{this} to not exist")}),t.addProperty("empty",function(){var n,e=r(this,"object"),t=r(this,"ssfi"),o=r(this,"message");switch(o=o?o+": ":"",l.type(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new u(o+".empty was passed a weak collection",void 0,t);case"function":var i=o+".empty was passed a function "+l.getName(e);throw new u(i.trim(),void 0,t);default:if(e!==Object(e))throw new u(o+".empty was passed non-string primitive "+l.inspect(e),void 0,t);n=Object.keys(e).length}this.assert(0===n,"expected #{this} to be empty","expected #{this} not to be empty")}),t.addProperty("arguments",c),t.addProperty("Arguments",c),t.addMethod("equal",f),t.addMethod("equals",f),t.addMethod("eq",f),t.addMethod("eql",p),t.addMethod("eqls",p),t.addMethod("above",d),t.addMethod("gt",d),t.addMethod("greaterThan",d),t.addMethod("least",h),t.addMethod("gte",h),t.addMethod("below",g),t.addMethod("lt",g),t.addMethod("lessThan",g),t.addMethod("most",m),t.addMethod("lte",m),t.addMethod("within",function(n,e,o){o&&r(this,"message",o);var i,a=r(this,"object"),s=r(this,"doLength"),c=r(this,"message"),f=c?c+": ":"",p=r(this,"ssfi"),d=l.type(a).toLowerCase(),h=l.type(n).toLowerCase(),g=l.type(e).toLowerCase(),m=!0,y="date"===h&&"date"===g?n.toUTCString()+".."+e.toUTCString():n+".."+e;if(s&&"map"!==d&&"set"!==d&&new t(a,c,p,!0).to.have.property("length"),s||"date"!==d||"date"===h&&"date"===g)if("number"===h&&"number"===g||!s&&"number"!==d)if(s||"date"===d||"number"===d)m=!1;else{i=f+"expected "+("string"===d?"'"+a+"'":a)+" to be a number or a date"}else i=f+"the arguments to within must be numbers";else i=f+"the arguments to within must be dates";if(m)throw new u(i,void 0,p);if(s){var b,v="length";"map"===d||"set"===d?(v="size",b=a.size):b=a.length,this.assert(b>=n&&b<=e,"expected #{this} to have a "+v+" within "+y,"expected #{this} to not have a "+v+" within "+y)}else this.assert(a>=n&&a<=e,"expected #{this} to be within "+y,"expected #{this} to not be within "+y)}),t.addMethod("instanceof",y),t.addMethod("instanceOf",y),t.addMethod("property",b),t.addMethod("ownProperty",v),t.addMethod("haveOwnProperty",v),t.addMethod("ownPropertyDescriptor",w),t.addMethod("haveOwnPropertyDescriptor",w),t.addChainableMethod("length",E,A),t.addChainableMethod("lengthOf",E,A),t.addMethod("match",x),t.addMethod("matches",x),t.addMethod("string",function(n,e){e&&r(this,"message",e);var u=r(this,"object"),o=r(this,"message"),i=r(this,"ssfi");new t(u,o,i,!0).is.a("string"),this.assert(~u.indexOf(n),"expected #{this} to contain "+l.inspect(n),"expected #{this} to not contain "+l.inspect(n))}),t.addMethod("keys",C),t.addMethod("key",C),t.addMethod("throw",_),t.addMethod("throws",_),t.addMethod("Throw",_),t.addMethod("respondTo",S),t.addMethod("respondsTo",S),t.addProperty("itself",function(){r(this,"itself",!0)}),t.addMethod("satisfy",T),t.addMethod("satisfies",T),t.addMethod("closeTo",k),t.addMethod("approximately",k),t.addMethod("members",function(n,e){e&&r(this,"message",e);var u=r(this,"object"),o=r(this,"message"),i=r(this,"ssfi");new t(u,o,i,!0).to.be.an("array"),new t(n,o,i,!0).to.be.an("array");var a,s,c,f=r(this,"contains"),p=r(this,"ordered");f?(s="expected #{this} to be "+(a=p?"an ordered superset":"a superset")+" of #{exp}",c="expected #{this} to not be "+a+" of #{exp}"):(s="expected #{this} to have the same "+(a=p?"ordered members":"members")+" as #{exp}",c="expected #{this} to not have the same "+a+" as #{exp}");var d=r(this,"deep")?l.eql:void 0;this.assert(function(n,l,e,t,u){if(!t){if(n.length!==l.length)return!1;l=l.slice()}return n.every(function(n,r){if(u)return e?e(n,l[r]):n===l[r];if(!e){var o=l.indexOf(n);return-1!==o&&(t||l.splice(o,1),!0)}return l.some(function(u,r){return!!e(n,u)&&(t||l.splice(r,1),!0)})})}(n,u,d,f,p),s,c,n,u,!0)}),t.addMethod("oneOf",function(n,l){l&&r(this,"message",l);var e=r(this,"object"),u=r(this,"message"),o=r(this,"ssfi");new t(n,u,o,!0).to.be.an("array"),this.assert(n.indexOf(e)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",n,e)}),t.addMethod("change",F),t.addMethod("changes",F),t.addMethod("increase",D),t.addMethod("increases",D),t.addMethod("decrease",P),t.addMethod("decreases",P),t.addMethod("by",function(n,l){l&&r(this,"message",l);var e,t=r(this,"deltaMsgObj"),u=r(this,"initialDeltaValue"),o=r(this,"finalDeltaValue"),i=r(this,"deltaBehavior"),a=r(this,"realDelta");e="change"===i?Math.abs(o-u)===Math.abs(n):a===Math.abs(n),this.assert(e,"expected "+t+" to "+i+" by "+n,"expected "+t+" to not "+i+" by "+n)}),t.addProperty("extensible",function(){var n=r(this,"object"),l=n===Object(n)&&Object.isExtensible(n);this.assert(l,"expected #{this} to be extensible","expected #{this} to not be extensible")}),t.addProperty("sealed",function(){var n=r(this,"object"),l=n!==Object(n)||Object.isSealed(n);this.assert(l,"expected #{this} to be sealed","expected #{this} to not be sealed")}),t.addProperty("frozen",function(){var n=r(this,"object"),l=n!==Object(n)||Object.isFrozen(n);this.assert(l,"expected #{this} to be frozen","expected #{this} to not be frozen")}),t.addProperty("finite",function(n){var l=r(this,"object");this.assert("number"==typeof l&&isFinite(l),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})}},function(n,l){n.exports=function(n,l){n.expect=function(l,e){return new n.Assertion(l,e)},n.expect.fail=function(l,e,t,u){throw arguments.length<2&&(t=l,l=void 0),t=t||"expect.fail()",new n.AssertionError(t,{actual:l,expected:e,operator:u},n.expect.fail)}}},function(n,l){n.exports=function(n,l){var e=n.Assertion;function t(){Object.defineProperty(Object.prototype,"should",{set:function(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})},get:function n(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol?new e(this.valueOf(),null,n):new e(this,null,n)},configurable:!0});var l={fail:function(e,t,u,r){throw arguments.length<2&&(u=e,e=void 0),u=u||"should.fail()",new n.AssertionError(u,{actual:e,expected:t,operator:r},l.fail)},equal:function(n,l,t){new e(n,t).to.equal(l)},Throw:function(n,l,t,u){new e(n,u).to.Throw(l,t)},exist:function(n,l){new e(n,l).to.exist},not:{}};return l.not.equal=function(n,l,t){new e(n,t).to.not.equal(l)},l.not.Throw=function(n,l,t,u){new e(n,u).to.not.Throw(l,t)},l.not.exist=function(n,l){new e(n,l).to.not.exist},l.throw=l.Throw,l.not.throw=l.not.Throw,l}n.should=t,n.Should=t}},function(n,l){n.exports=function(n,l){var e=n.Assertion,t=l.flag,u=n.assert=function(l,t){new e(null,null,n.assert,!0).assert(l,t,"[ negation message unavailable ]")};u.fail=function(l,e,t,r){throw arguments.length<2&&(t=l,l=void 0),t=t||"assert.fail()",new n.AssertionError(t,{actual:l,expected:e,operator:r},u.fail)},u.isOk=function(n,l){new e(n,l,u.isOk,!0).is.ok},u.isNotOk=function(n,l){new e(n,l,u.isNotOk,!0).is.not.ok},u.equal=function(n,l,r){var o=new e(n,r,u.equal,!0);o.assert(l==t(o,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",l,n,!0)},u.notEqual=function(n,l,r){var o=new e(n,r,u.notEqual,!0);o.assert(l!=t(o,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",l,n,!0)},u.strictEqual=function(n,l,t){new e(n,t,u.strictEqual,!0).to.equal(l)},u.notStrictEqual=function(n,l,t){new e(n,t,u.notStrictEqual,!0).to.not.equal(l)},u.deepEqual=u.deepStrictEqual=function(n,l,t){new e(n,t,u.deepEqual,!0).to.eql(l)},u.notDeepEqual=function(n,l,t){new e(n,t,u.notDeepEqual,!0).to.not.eql(l)},u.isAbove=function(n,l,t){new e(n,t,u.isAbove,!0).to.be.above(l)},u.isAtLeast=function(n,l,t){new e(n,t,u.isAtLeast,!0).to.be.least(l)},u.isBelow=function(n,l,t){new e(n,t,u.isBelow,!0).to.be.below(l)},u.isAtMost=function(n,l,t){new e(n,t,u.isAtMost,!0).to.be.most(l)},u.isTrue=function(n,l){new e(n,l,u.isTrue,!0).is.true},u.isNotTrue=function(n,l){new e(n,l,u.isNotTrue,!0).to.not.equal(!0)},u.isFalse=function(n,l){new e(n,l,u.isFalse,!0).is.false},u.isNotFalse=function(n,l){new e(n,l,u.isNotFalse,!0).to.not.equal(!1)},u.isNull=function(n,l){new e(n,l,u.isNull,!0).to.equal(null)},u.isNotNull=function(n,l){new e(n,l,u.isNotNull,!0).to.not.equal(null)},u.isNaN=function(n,l){new e(n,l,u.isNaN,!0).to.be.NaN},u.isNotNaN=function(n,l){new e(n,l,u.isNotNaN,!0).not.to.be.NaN},u.exists=function(n,l){new e(n,l,u.exists,!0).to.exist},u.notExists=function(n,l){new e(n,l,u.notExists,!0).to.not.exist},u.isUndefined=function(n,l){new e(n,l,u.isUndefined,!0).to.equal(void 0)},u.isDefined=function(n,l){new e(n,l,u.isDefined,!0).to.not.equal(void 0)},u.isFunction=function(n,l){new e(n,l,u.isFunction,!0).to.be.a("function")},u.isNotFunction=function(n,l){new e(n,l,u.isNotFunction,!0).to.not.be.a("function")},u.isObject=function(n,l){new e(n,l,u.isObject,!0).to.be.a("object")},u.isNotObject=function(n,l){new e(n,l,u.isNotObject,!0).to.not.be.a("object")},u.isArray=function(n,l){new e(n,l,u.isArray,!0).to.be.an("array")},u.isNotArray=function(n,l){new e(n,l,u.isNotArray,!0).to.not.be.an("array")},u.isString=function(n,l){new e(n,l,u.isString,!0).to.be.a("string")},u.isNotString=function(n,l){new e(n,l,u.isNotString,!0).to.not.be.a("string")},u.isNumber=function(n,l){new e(n,l,u.isNumber,!0).to.be.a("number")},u.isNotNumber=function(n,l){new e(n,l,u.isNotNumber,!0).to.not.be.a("number")},u.isFinite=function(n,l){new e(n,l,u.isFinite,!0).to.be.finite},u.isBoolean=function(n,l){new e(n,l,u.isBoolean,!0).to.be.a("boolean")},u.isNotBoolean=function(n,l){new e(n,l,u.isNotBoolean,!0).to.not.be.a("boolean")},u.typeOf=function(n,l,t){new e(n,t,u.typeOf,!0).to.be.a(l)},u.notTypeOf=function(n,l,t){new e(n,t,u.notTypeOf,!0).to.not.be.a(l)},u.instanceOf=function(n,l,t){new e(n,t,u.instanceOf,!0).to.be.instanceOf(l)},u.notInstanceOf=function(n,l,t){new e(n,t,u.notInstanceOf,!0).to.not.be.instanceOf(l)},u.include=function(n,l,t){new e(n,t,u.include,!0).include(l)},u.notInclude=function(n,l,t){new e(n,t,u.notInclude,!0).not.include(l)},u.deepInclude=function(n,l,t){new e(n,t,u.deepInclude,!0).deep.include(l)},u.notDeepInclude=function(n,l,t){new e(n,t,u.notDeepInclude,!0).not.deep.include(l)},u.nestedInclude=function(n,l,t){new e(n,t,u.nestedInclude,!0).nested.include(l)},u.notNestedInclude=function(n,l,t){new e(n,t,u.notNestedInclude,!0).not.nested.include(l)},u.deepNestedInclude=function(n,l,t){new e(n,t,u.deepNestedInclude,!0).deep.nested.include(l)},u.notDeepNestedInclude=function(n,l,t){new e(n,t,u.notDeepNestedInclude,!0).not.deep.nested.include(l)},u.ownInclude=function(n,l,t){new e(n,t,u.ownInclude,!0).own.include(l)},u.notOwnInclude=function(n,l,t){new e(n,t,u.notOwnInclude,!0).not.own.include(l)},u.deepOwnInclude=function(n,l,t){new e(n,t,u.deepOwnInclude,!0).deep.own.include(l)},u.notDeepOwnInclude=function(n,l,t){new e(n,t,u.notDeepOwnInclude,!0).not.deep.own.include(l)},u.match=function(n,l,t){new e(n,t,u.match,!0).to.match(l)},u.notMatch=function(n,l,t){new e(n,t,u.notMatch,!0).to.not.match(l)},u.property=function(n,l,t){new e(n,t,u.property,!0).to.have.property(l)},u.notProperty=function(n,l,t){new e(n,t,u.notProperty,!0).to.not.have.property(l)},u.propertyVal=function(n,l,t,r){new e(n,r,u.propertyVal,!0).to.have.property(l,t)},u.notPropertyVal=function(n,l,t,r){new e(n,r,u.notPropertyVal,!0).to.not.have.property(l,t)},u.deepPropertyVal=function(n,l,t,r){new e(n,r,u.deepPropertyVal,!0).to.have.deep.property(l,t)},u.notDeepPropertyVal=function(n,l,t,r){new e(n,r,u.notDeepPropertyVal,!0).to.not.have.deep.property(l,t)},u.ownProperty=function(n,l,t){new e(n,t,u.ownProperty,!0).to.have.own.property(l)},u.notOwnProperty=function(n,l,t){new e(n,t,u.notOwnProperty,!0).to.not.have.own.property(l)},u.ownPropertyVal=function(n,l,t,r){new e(n,r,u.ownPropertyVal,!0).to.have.own.property(l,t)},u.notOwnPropertyVal=function(n,l,t,r){new e(n,r,u.notOwnPropertyVal,!0).to.not.have.own.property(l,t)},u.deepOwnPropertyVal=function(n,l,t,r){new e(n,r,u.deepOwnPropertyVal,!0).to.have.deep.own.property(l,t)},u.notDeepOwnPropertyVal=function(n,l,t,r){new e(n,r,u.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(l,t)},u.nestedProperty=function(n,l,t){new e(n,t,u.nestedProperty,!0).to.have.nested.property(l)},u.notNestedProperty=function(n,l,t){new e(n,t,u.notNestedProperty,!0).to.not.have.nested.property(l)},u.nestedPropertyVal=function(n,l,t,r){new e(n,r,u.nestedPropertyVal,!0).to.have.nested.property(l,t)},u.notNestedPropertyVal=function(n,l,t,r){new e(n,r,u.notNestedPropertyVal,!0).to.not.have.nested.property(l,t)},u.deepNestedPropertyVal=function(n,l,t,r){new e(n,r,u.deepNestedPropertyVal,!0).to.have.deep.nested.property(l,t)},u.notDeepNestedPropertyVal=function(n,l,t,r){new e(n,r,u.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(l,t)},u.lengthOf=function(n,l,t){new e(n,t,u.lengthOf,!0).to.have.lengthOf(l)},u.hasAnyKeys=function(n,l,t){new e(n,t,u.hasAnyKeys,!0).to.have.any.keys(l)},u.hasAllKeys=function(n,l,t){new e(n,t,u.hasAllKeys,!0).to.have.all.keys(l)},u.containsAllKeys=function(n,l,t){new e(n,t,u.containsAllKeys,!0).to.contain.all.keys(l)},u.doesNotHaveAnyKeys=function(n,l,t){new e(n,t,u.doesNotHaveAnyKeys,!0).to.not.have.any.keys(l)},u.doesNotHaveAllKeys=function(n,l,t){new e(n,t,u.doesNotHaveAllKeys,!0).to.not.have.all.keys(l)},u.hasAnyDeepKeys=function(n,l,t){new e(n,t,u.hasAnyDeepKeys,!0).to.have.any.deep.keys(l)},u.hasAllDeepKeys=function(n,l,t){new e(n,t,u.hasAllDeepKeys,!0).to.have.all.deep.keys(l)},u.containsAllDeepKeys=function(n,l,t){new e(n,t,u.containsAllDeepKeys,!0).to.contain.all.deep.keys(l)},u.doesNotHaveAnyDeepKeys=function(n,l,t){new e(n,t,u.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(l)},u.doesNotHaveAllDeepKeys=function(n,l,t){new e(n,t,u.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(l)},u.throws=function(n,l,r,o){("string"==typeof l||l instanceof RegExp)&&(r=l,l=null);var i=new e(n,o,u.throws,!0).to.throw(l,r);return t(i,"object")},u.doesNotThrow=function(n,l,t,r){("string"==typeof l||l instanceof RegExp)&&(t=l,l=null),new e(n,r,u.doesNotThrow,!0).to.not.throw(l,t)},u.operator=function(r,o,i,a){var s;switch(o){case"==":s=r==i;break;case"===":s=r===i;break;case">":s=r>i;break;case">=":s=r>=i;break;case"<":s=r 0; }",input:"2",output:"2"}])}),describe("when any expression doesn't match",function(){it("reports match failure",function(){var l=r.generate("start = 'a' 'b' 'c'",n);i(l).to.failToParse("dbc"),i(l).to.failToParse("adc"),i(l).to.failToParse("abd")}),it("resets parse position",function(){var l=r.generate("start = 'a' 'b' / 'a'",n);i(l).to.parse("a","a")})})}),describe("action",function(){describe("when the expression matches",function(){it("returns the value returned by the code",function(){var l=r.generate("start = 'a' { return 42; }",n);i(l).to.parse("a",42)}),describe("label variables",function(){describe("in the expression",function(){it("can access variable defined by labeled expression",function(){var l=r.generate("start = a:'a' { return a; }",n);i(l).to.parse("a","a")}),it("can access variables defined by labeled sequence elements",function(){var l=r.generate("start = a:'a' b:'b' c:'c' { return [a, b, c]; }",n);i(l).to.parse("abc",["a","b","c"])}),it("cannot access variables defined by subexpressions",function(){[{grammar:"start = (a:'a') { return a; }",input:"a"},{grammar:"start = (a:'a')? { return a; }",input:"a"},{grammar:"start = (a:'a')* { return a; }",input:"a"},{grammar:"start = (a:'a')+ { return a; }",input:"a"},{grammar:"start = $(a:'a') { return a; }",input:"a"},{grammar:"start = &(a:'a') 'a' { return a; }",input:"a"},{grammar:"start = !(a:'a') 'b' { return a; }",input:"b"},{grammar:"start = b:(a:'a') { return a; }",input:"a"},{grammar:"start = ('a' b:'b' 'c') { return b; }",input:"abc"},{grammar:"start = (a:'a' { return a; }) { return a; }",input:"a"},{grammar:"start = ('a' / b:'b' / 'c') { return b; }",input:"b"}].forEach(function(l){var e=r.generate(l.grammar,n);i(e).to.failToParse(l.input)})})}),describe("in outer sequence",function(){it("can access variables defined by preceding labeled elements",function(){var l=r.generate("start = a:'a' ('b' { return a; })",n);i(l).to.parse("ab",["a","a"])}),it("cannot access variable defined by labeled action element",function(){var l=r.generate("start = 'a' b:('b' { return b; }) c:'c'",n);i(l).to.failToParse("abc")}),it("cannot access variables defined by following labeled elements",function(){var l=r.generate("start = ('a' { return b; }) b:'b'",n);i(l).to.failToParse("ab")})})}),describe("initializer variables & functions",function(){it("can access variables defined in the initializer",function(){var l=r.generate(["{ var v = 42 }","start = 'a' { return v; }"].join("\n"),n);i(l).to.parse("a",42)}),it("can access functions defined in the initializer",function(){var l=r.generate(["{ function f() { return 42; } }","start = 'a' { return f(); }"].join("\n"),n);i(l).to.parse("a",42)})}),describe("available variables & functions",function(){it("|options| contains options",function(){var l=r.generate("start = 'a' { return options; }",n);i(l).to.parse("a",{a:42},{a:42})}),it("|text| returns text matched by the expression",function(){var l=r.generate("start = 'a' { return text(); }",n);i(l).to.parse("a","a")}),it("|location| returns location info of the expression",function(){var l=r.generate(["{ var result; }","start = line (nl+ line)* { return result; }","line = thing (' '+ thing)*","thing = digit / mark","digit = [0-9]","mark = 'x' { result = location(); }","nl = '\\r'? '\\n'"].join("\n"),n);i(l).to.parse("1\n2\n\n3\n\n\n4 5 x",{start:{offset:13,line:7,column:5},end:{offset:14,line:7,column:6}}),i(l).to.parse("1\nx",{start:{offset:2,line:2,column:1},end:{offset:3,line:2,column:2}}),i(l).to.parse("1\r\nx",{start:{offset:3,line:2,column:1},end:{offset:4,line:2,column:2}})}),describe("|expected|",function(){it("terminates parsing and throws an exception",function(){var l=r.generate("start = 'a' { expected('a'); }",n);i(l).to.failToParse("a",{message:'Expected a but "a" found.',expected:[{type:"other",description:"a"}],found:"a",location:{start:{offset:0,line:1,column:1},end:{offset:1,line:1,column:2}}})}),it("allows to set custom location info",function(){var l=r.generate(["start = 'a' {"," expected('a', {"," start: { offset: 1, line: 1, column: 2 },"," end: { offset: 2, line: 1, column: 3 }"," });","}"].join("\n"),n);i(l).to.failToParse("a",{message:'Expected a but "a" found.',expected:[{type:"other",description:"a"}],found:"a",location:{start:{offset:1,line:1,column:2},end:{offset:2,line:1,column:3}}})})}),describe("|error|",function(){it("terminates parsing and throws an exception",function(){var l=r.generate("start = 'a' { error('a'); }",n);i(l).to.failToParse("a",{message:"a",found:null,expected:null,location:{start:{offset:0,line:1,column:1},end:{offset:1,line:1,column:2}}})}),it("allows to set custom location info",function(){var l=r.generate(["start = 'a' {"," error('a', {"," start: { offset: 1, line: 1, column: 2 },"," end: { offset: 2, line: 1, column: 3 }"," });","}"].join("\n"),n);i(l).to.failToParse("a",{message:"a",expected:null,found:null,location:{start:{offset:1,line:1,column:2},end:{offset:2,line:1,column:3}}})})})})}),describe("when the expression doesn't match",function(){it("reports match failure",function(){var l=r.generate("start = 'a' { return 42; }",n);i(l).to.failToParse("b")}),it("doesn't execute the code",function(){var l=r.generate("start = 'a' { throw 'Boom!'; } / 'b'",n);i(l).to.parse("b")})})}),describe("choice",function(){describe("when any expression matches",function(){it("returns its match result",function(){var l=r.generate("start = 'a' / 'b' / 'c'",n);i(l).to.parse("a","a"),i(l).to.parse("b","b"),i(l).to.parse("c","c")})}),describe("when all expressions don't match",function(){it("reports match failure",function(){var l=r.generate("start = 'a' / 'b' / 'c'",n);i(l).to.failToParse("d")})})}),describe("error reporting",function(){describe("behavior",function(){it("reports only the rightmost error",function(){var l=r.generate("start = 'a' 'b' / 'a' 'c' 'd'",n);i(l).to.failToParse("ace",{expected:[{type:"literal",text:"d",ignoreCase:!1}]})})}),describe("expectations reporting",function(){it("reports expectations correctly with no alternative",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("ab",{expected:[{type:"end"}]})}),it("reports expectations correctly with one alternative",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("b",{expected:[{type:"literal",text:"a",ignoreCase:!1}]})}),it("reports expectations correctly with multiple alternatives",function(){var l=r.generate("start = 'a' / 'b' / 'c'",n);i(l).to.failToParse("d",{expected:[{type:"literal",text:"a",ignoreCase:!1},{type:"literal",text:"b",ignoreCase:!1},{type:"literal",text:"c",ignoreCase:!1}]})}),it("reports expectations correctly with look ahead",function(){var l=r.generate(["Statement = '{' __ !Statement Statement __ '}'","__ = [ ]*"].join("\n"),n);i(l).to.failToParse("{x}",{expected:[{type:"class",parts:[" "],inverted:!1,ignoreCase:!1},{type:"not",expected:{type:"literal",text:"{",ignoreCase:!1}},{type:"literal",text:"{",ignoreCase:!1}]}),l=r.generate(["Start = Char+ End","End = 'e'","Char = !End [a-z]"].join("\n"),n),i(l).to.failToParse("a",{expected:[{type:"class",parts:[["a","z"]],inverted:!1,ignoreCase:!1},{type:"literal",text:"e",ignoreCase:!1}]})}),it("reports expectations correctly with look ahead + grouped names",function(){var l=r.generate(["Start = Char+ End","End 'end' = 'e'","Char = !End [a-z]"].join("\n"),n);i(l).to.failToParse("a",{expected:[{type:"class",parts:[["a","z"]],inverted:!1,ignoreCase:!1},{type:"other",description:"end"}]})})}),describe("found string reporting",function(){it("reports found string correctly at the end of input",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("",{found:null})}),it("reports found string correctly in the middle of input",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("b",{found:"b"})})}),describe("message building",function(){it("builds message correctly with no alternative",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("ab",{message:'Expected end of input but "b" found.'})}),it("builds message correctly with one alternative",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("b",{message:'Expected "a" but "b" found.'})}),it("builds message correctly with multiple alternatives",function(){var l=r.generate("start = 'a' / 'b' / 'c'",n);i(l).to.failToParse("d",{message:'Expected "a", "b", or "c" but "d" found.'})}),it("builds message correctly at the end of input",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("",{message:'Expected "a" but end of input found.'})}),it("builds message correctly in the middle of input",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("b",{message:'Expected "a" but "b" found.'})}),it("removes duplicates from expectations",function(){var l=r.generate("start = 'a' / 'a'",n);i(l).to.failToParse("b",{message:'Expected "a" but "b" found.'})}),it("sorts expectations",function(){var l=r.generate("start = 'c' / 'b' / 'a'",n);i(l).to.failToParse("d",{message:'Expected "a", "b", or "c" but "d" found.'})})}),describe("position reporting",function(){it("reports position correctly at the end of input",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("",{location:{start:{offset:0,line:1,column:1},end:{offset:0,line:1,column:1}}})}),it("reports position correctly in the middle of input",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("b",{location:{start:{offset:0,line:1,column:1},end:{offset:1,line:1,column:2}}})}),it("reports position correctly with trailing input",function(){var l=r.generate("start = 'a'",n);i(l).to.failToParse("aa",{location:{start:{offset:1,line:1,column:2},end:{offset:2,line:1,column:3}}})}),it("reports position correctly in complex cases",function(){var l=r.generate(["start = line (nl+ line)*","line = digit (' '+ digit)*","digit = [0-9]","nl = '\\r'? '\\n'"].join("\n"),n);i(l).to.failToParse("1\n2\n\n3\n\n\n4 5 x",{location:{start:{offset:13,line:7,column:5},end:{offset:14,line:7,column:6}}}),i(l).to.failToParse("1\nx",{location:{start:{offset:2,line:2,column:1},end:{offset:3,line:2,column:2}}}),i(l).to.failToParse("1\r\nx",{location:{start:{offset:3,line:2,column:1},end:{offset:4,line:2,column:2}}})})})}),describe("complex examples",function(){it("handles arithmetics example correctly",function(){var l=r.generate(["Expr = Sum","Sum = head:Product tail:(('+' / '-') Product)* {"," return tail.reduce(function(result, element) {"," if (element[0] === '+') { return result + element[1]; }"," if (element[0] === '-') { return result - element[1]; }"," }, head);"," }","Product = head:Value tail:(('*' / '/') Value)* {"," return tail.reduce(function(result, element) {"," if (element[0] === '*') { return result * element[1]; }"," if (element[0] === '/') { return result / element[1]; }"," }, head);"," }","Value = digits:[0-9]+ { return parseInt(digits.join(''), 10); }"," / '(' expr:Expr ')' { return expr; }"].join("\n"),n);i(l).to.parse("0",0),i(l).to.parse("123",123),i(l).to.parse("(42+43)",85),i(l).to.parse("42",42),i(l).to.parse("42*43",1806),i(l).to.parse("42*43*44*45",3575880),i(l).to.parse("42/43",42/43),i(l).to.parse("42/43/44/45",42/43/44/45),i(l).to.parse("42*43",1806),i(l).to.parse("42*43+44*45",3786),i(l).to.parse("42*43+44*45+46*47+48*49",8300),i(l).to.parse("42*43-44*45",-174),i(l).to.parse("42*43-44*45-46*47-48*49",-4688),i(l).to.parse("42+43",85),i(l).to.parse("(1+2)*(3+4)",21)}),it("handles non-context-free language correctly",function(){var l=r.generate(["S = &(A 'c') a:'a'+ B:B !('a' / 'b' / 'c') { return a.join('') + B; }","A = a:'a' A:A? b:'b' { return [a, A, b].join(''); }","B = b:'b' B:B? c:'c' { return [b, B, c].join(''); }"].join("\n"),n);i(l).to.parse("abc","abc"),i(l).to.parse("aaabbbccc","aaabbbccc"),i(l).to.failToParse("aabbbccc"),i(l).to.failToParse("aaaabbbccc"),i(l).to.failToParse("aaabbccc"),i(l).to.failToParse("aaabbbbccc"),i(l).to.failToParse("aaabbbcc"),i(l).to.failToParse("aaabbbcccc")}),it("handles nested comments example correctly",function(){var l=r.generate(["C = begin:Begin ns:N* end:End { return begin + ns.join('') + end; }","N = C"," / !Begin !End z:Z { return z; }","Z = .","Begin = '(*'","End = '*)'"].join("\n"),n);i(l).to.parse("(**)","(**)"),i(l).to.parse("(*abc*)","(*abc*)"),i(l).to.parse("(*(**)*)","(*(**)*)"),i(l).to.parse("(*abc(*def*)ghi(*(*(*jkl*)*)*)mno*)","(*abc(*def*)ghi(*(*(*jkl*)*)*)mno*)")})})},[{cache:!1,optimize:"speed",trace:!1},{cache:!1,optimize:"speed",trace:!0},{cache:!1,optimize:"size",trace:!1},{cache:!1,optimize:"size",trace:!0},{cache:!0,optimize:"speed",trace:!1},{cache:!0,optimize:"speed",trace:!0},{cache:!0,optimize:"size",trace:!1},{cache:!0,optimize:"size",trace:!0}].forEach(function(n){describe("with options "+u.util.inspect(n),function(){e(r.util.clone(n))})})})},function(n,l,e){"use strict";var t=e(2),u=e(4),r=e(0).compiler.passes.generate.generateBytecode;t.use(u);var o=t.expect;describe("compiler pass |generateBytecode|",function(){function n(n){return{rules:[{bytecode:n}]}}function l(n,l,e,t){return{literals:n,classes:l,expectations:e,functions:t}}describe("for grammar",function(){it("generates correct bytecode",function(){o(r).to.changeAST(["a = 'a'","b = 'b'","c = 'c'"].join("\n"),{rules:[{bytecode:[23,0,18,0,2,1,22,0,3]},{bytecode:[23,1,18,1,2,1,22,1,3]},{bytecode:[23,2,18,2,2,1,22,2,3]}]})}),it("defines correct constants",function(){o(r).to.changeAST(["a = 'a'","b = 'b'","c = 'c'"].join("\n"),l(["a","b","c"],[],[{type:"literal",value:"a",ignoreCase:!1},{type:"literal",value:"b",ignoreCase:!1},{type:"literal",value:"c",ignoreCase:!1}],[]))})}),describe("for rule",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a'",n([23,0,18,0,2,1,22,0,3]))})}),describe("for named",function(){var e="start 'start' = .",t="start 'start' = 'a'",u="start 'start' = [a]";describe("when |reportFailures=true|",function(){it("generates correct bytecode",function(){o(r).to.changeAST(e,n([23,0,28,17,2,1,21,1,3,29])),o(r).to.changeAST(t,n([23,0,28,18,0,2,1,22,0,3,29])),o(r).to.changeAST(u,n([23,0,28,20,0,2,1,21,1,3,29]))}),it("defines correct constants",function(){o(r).to.changeAST(e,l([],[],[{type:"rule",value:"start"}],[])),o(r).to.changeAST(t,l(["a"],[],[{type:"rule",value:"start"}],[])),o(r).to.changeAST(u,l([],[{value:["a"],inverted:!1,ignoreCase:!1}],[{type:"rule",value:"start"}],[]))})}),describe("when |reportFailures=false|",function(){it("generates correct bytecode",function(){o(r).to.changeAST(e,n([17,2,1,21,1,3]),{},{reportFailures:!1}),o(r).to.changeAST(t,n([18,0,2,1,22,0,3]),{},{reportFailures:!1}),o(r).to.changeAST(u,n([20,0,2,1,21,1,3]),{},{reportFailures:!1})}),it("defines correct constants",function(){o(r).to.changeAST(e,l([],[],[],[]),{},{reportFailures:!1}),o(r).to.changeAST(t,l(["a"],[],[],[]),{},{reportFailures:!1}),o(r).to.changeAST(u,l([],[{value:["a"],inverted:!1,ignoreCase:!1}],[],[]),{},{reportFailures:!1})})})}),describe("for choice",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a' / 'b' / 'c'",n([23,0,18,0,2,1,22,0,3,14,23,0,6,23,1,18,1,2,1,22,1,3,14,10,0,6,23,2,18,2,2,1,22,2,3]))})}),describe("for action",function(){describe("without labels",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a' { code }",n([5,23,0,18,0,2,1,22,0,3,15,6,0,24,1,26,0,1,0,9]))}),it("defines correct constants",function(){o(r).to.changeAST("start = 'a' { code }",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[{predicate:!1,params:[],body:" code "}]))})}),describe("with one label",function(){var e="start = a:'a' { code }";it("generates correct bytecode",function(){o(r).to.changeAST(e,n([5,23,0,18,0,2,1,22,0,3,15,7,0,24,1,26,0,1,1,0,9]))}),it("defines correct constants",function(){o(r).to.changeAST(e,l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[{predicate:!1,params:["a"],body:" code "}]))})}),describe("with multiple labels",function(){var e="start = a:'a' b:'b' c:'c' { code }";it("generates correct bytecode",function(){o(r).to.changeAST(e,n([5,23,0,18,0,2,1,22,0,3,15,41,3,23,1,18,1,2,1,22,1,3,15,25,4,23,2,18,2,2,1,22,2,3,15,9,4,24,3,26,0,4,3,2,1,0,8,3,7,3,8,2,7,3,6,7,3]))}),it("defines correct constants",function(){o(r).to.changeAST(e,l(["a","b","c"],[],[{type:"literal",value:"a",ignoreCase:!1},{type:"literal",value:"b",ignoreCase:!1},{type:"literal",value:"c",ignoreCase:!1}],[{predicate:!1,params:["a","b","c"],body:" code "}]))})})}),describe("for sequence",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a' 'b' 'c'",n([5,23,0,18,0,2,1,22,0,3,15,35,3,23,1,18,1,2,1,22,1,3,15,19,4,23,2,18,2,2,1,22,2,3,15,3,4,11,3,9,8,3,7,3,8,2,7,3,6,7,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = 'a' 'b' 'c'",l(["a","b","c"],[],[{type:"literal",value:"a",ignoreCase:!1},{type:"literal",value:"b",ignoreCase:!1},{type:"literal",value:"c",ignoreCase:!1}],[]))}),it("generates correct plucking bytecode",function(){o(r).to.changeAST("start = 'a' @'b' 'c'",n([5,23,0,18,0,2,1,22,0,3,15,36,3,23,1,18,1,2,1,22,1,3,15,20,4,23,2,18,2,2,1,22,2,3,15,4,4,41,4,1,1,8,3,7,3,8,2,7,3,6,7,3])),o(r).to.changeAST("start = 'a' @'b' @'c'",n([5,23,0,18,0,2,1,22,0,3,15,37,3,23,1,18,1,2,1,22,1,3,15,21,4,23,2,18,2,2,1,22,2,3,15,5,4,41,4,2,1,0,8,3,7,3,8,2,7,3,6,7,3]))})}),describe("for labeled",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = a:'a'",n([23,0,18,0,2,1,22,0,3]))})}),describe("for text",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = $'a'",n([5,23,0,18,0,2,1,22,0,3,15,2,1,6,12,9]))})}),describe("for simple_and",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = &'a'",n([5,38,23,0,18,0,2,1,22,0,3,39,0,15,3,3,6,7,1,6,6,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = &'a'",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[]))})}),describe("for simple_not",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = !'a'",n([5,38,23,0,18,0,2,1,22,0,3,39,1,14,3,3,6,6,1,6,7,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = !'a'",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[]))})}),describe("for optional",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a'?",n([23,0,18,0,2,1,22,0,3,14,2,0,6,2]))}),it("defines correct constants",function(){o(r).to.changeAST("start = 'a'?",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[]))})}),describe("for zero_or_more",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a'*",n([4,23,0,18,0,2,1,22,0,3,16,10,10,23,0,18,0,2,1,22,0,3,6]))}),it("defines correct constants",function(){o(r).to.changeAST("start = 'a'*",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[]))})}),describe("for one_or_more",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a'+",n([4,23,0,18,0,2,1,22,0,3,15,13,3,16,10,10,23,0,18,0,2,1,22,0,3,6,6,6,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = 'a'+",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[]))})}),describe("for group",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = ('a')",n([23,0,18,0,2,1,22,0,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = ('a')",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[]))})}),describe("for semantic_and",function(){describe("without labels",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = &{ code }",n([25,26,0,0,0,13,2,2,6,1,6,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = &{ code }",l([],[],[],[{predicate:!0,params:[],body:" code "}]))})}),describe("with labels",function(){var e="start = a:'a' b:'b' c:'c' &{ code }";it("generates correct bytecode",function(){o(r).to.changeAST(e,n([5,23,0,18,0,2,1,22,0,3,15,57,3,23,1,18,1,2,1,22,1,3,15,41,4,23,2,18,2,2,1,22,2,3,15,25,4,25,26,0,0,3,2,1,0,13,2,2,6,1,6,3,15,3,4,11,4,9,8,4,7,3,8,3,7,3,8,2,7,3,6,7,3]))}),it("defines correct constants",function(){o(r).to.changeAST(e,l(["a","b","c"],[],[{type:"literal",value:"a",ignoreCase:!1},{type:"literal",value:"b",ignoreCase:!1},{type:"literal",value:"c",ignoreCase:!1}],[{predicate:!0,params:["a","b","c"],body:" code "}]))})})}),describe("for semantic_not",function(){describe("without labels",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = !{ code }",n([25,26,0,0,0,13,2,2,6,3,6,1]))}),it("defines correct constants",function(){o(r).to.changeAST("start = !{ code }",l([],[],[],[{predicate:!0,params:[],body:" code "}]))})}),describe("with labels",function(){var e="start = a:'a' b:'b' c:'c' !{ code }";it("generates correct bytecode",function(){o(r).to.changeAST(e,n([5,23,0,18,0,2,1,22,0,3,15,57,3,23,1,18,1,2,1,22,1,3,15,41,4,23,2,18,2,2,1,22,2,3,15,25,4,25,26,0,0,3,2,1,0,13,2,2,6,3,6,1,15,3,4,11,4,9,8,4,7,3,8,3,7,3,8,2,7,3,6,7,3]))}),it("defines correct constants",function(){o(r).to.changeAST(e,l(["a","b","c"],[],[{type:"literal",value:"a",ignoreCase:!1},{type:"literal",value:"b",ignoreCase:!1},{type:"literal",value:"c",ignoreCase:!1}],[{predicate:!0,params:["a","b","c"],body:" code "}]))})})}),describe("for rule_ref",function(){it("generates correct bytecode",function(){o(r).to.changeAST(["start = other","other = 'other'"].join("\n"),{rules:[{bytecode:[27,1]},{}]})})}),describe("for literal",function(){describe("when |reportFailures=true|",function(){describe("empty",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = ''",n([0]))}),it("defines correct constants",function(){o(r).to.changeAST("start = ''",l([],[],[],[]))})}),describe("non-empty case-sensitive",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a'",n([23,0,18,0,2,1,22,0,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = 'a'",l(["a"],[],[{type:"literal",value:"a",ignoreCase:!1}],[]))})}),describe("non-empty case-insensitive",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'A'i",n([23,0,19,0,2,1,21,1,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = 'A'i",l(["a"],[],[{type:"literal",value:"A",ignoreCase:!0}],[]))})})}),describe("when |reportFailures=false|",function(){describe("empty",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = ''",n([0]),{},{reportFailures:!1})}),it("defines correct constants",function(){o(r).to.changeAST("start = ''",l([],[],[],[]),{},{reportFailures:!1})})}),describe("non-empty case-sensitive",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'a'",n([18,0,2,1,22,0,3]),{},{reportFailures:!1})}),it("defines correct constants",function(){o(r).to.changeAST("start = 'a'",l(["a"],[],[],[]),{},{reportFailures:!1})})}),describe("non-empty case-insensitive",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = 'A'i",n([19,0,2,1,21,1,3]),{},{reportFailures:!1})}),it("defines correct constants",function(){o(r).to.changeAST("start = 'A'i",l(["a"],[],[],[]),{},{reportFailures:!1})})})})}),describe("for class",function(){describe("when |reportFailures=true|",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = [a]",n([23,0,20,0,2,1,21,1,3]))}),describe("non-inverted case-sensitive",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [a]",l([],[{value:["a"],inverted:!1,ignoreCase:!1}],[{type:"class",value:["a"],inverted:!1,ignoreCase:!1}],[]))})}),describe("inverted case-sensitive",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [^a]",l([],[{value:["a"],inverted:!0,ignoreCase:!1}],[{type:"class",value:["a"],inverted:!0,ignoreCase:!1}],[]))})}),describe("non-inverted case-insensitive",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [a]i",l([],[{value:["a"],inverted:!1,ignoreCase:!0}],[{type:"class",value:["a"],inverted:!1,ignoreCase:!0}],[]))})}),describe("complex",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [ab-def-hij-l]",l([],[{value:["a",["b","d"],"e",["f","h"],"i",["j","l"]],inverted:!1,ignoreCase:!1}],[{type:"class",value:["a",["b","d"],"e",["f","h"],"i",["j","l"]],inverted:!1,ignoreCase:!1}],[]))})})}),describe("when |reportFailures=false|",function(){it("generates correct bytecode",function(){o(r).to.changeAST("start = [a]",n([20,0,2,1,21,1,3]),{},{reportFailures:!1})}),describe("non-inverted case-sensitive",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [a]",l([],[{value:["a"],inverted:!1,ignoreCase:!1}],[],[]),{},{reportFailures:!1})})}),describe("inverted case-sensitive",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [^a]",l([],[{value:["a"],inverted:!0,ignoreCase:!1}],[],[]),{},{reportFailures:!1})})}),describe("non-inverted case-insensitive",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [a]i",l([],[{value:["a"],inverted:!1,ignoreCase:!0}],[],[]),{},{reportFailures:!1})})}),describe("complex",function(){it("defines correct constants",function(){o(r).to.changeAST("start = [ab-def-hij-l]",l([],[{value:["a",["b","d"],"e",["f","h"],"i",["j","l"]],inverted:!1,ignoreCase:!1}],[],[]),{},{reportFailures:!1})})})})}),describe("for any",function(){describe("when |reportFailures=true|",function(){it("generates bytecode",function(){o(r).to.changeAST("start = .",n([23,0,17,2,1,21,1,3]))}),it("defines correct constants",function(){o(r).to.changeAST("start = .",l([],[],[{type:"any"}],[]))})}),describe("when |reportFailures=false|",function(){it("generates bytecode",function(){o(r).to.changeAST("start = .",n([17,2,1,21,1,3]),{},{reportFailures:!1})}),it("defines correct constants",function(){o(r).to.changeAST("start = .",l([],[],[],[]),{},{reportFailures:!1})})})})})},function(n,l,e){n.exports=e(85)},function(n,l,e){"use strict";var t=[];n.exports=function(n,l){function e(n,e){return l.type(e).toUpperCase()===n.toUpperCase()}n.Assertion.addMethod("like",function(u){var r=l.flag(this,"object");this.assert(function n(l,u){for(var r=0;r start).",location:{start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})}),it("reports indirect left recursion",function(){o(r).to.reportError(["start = stop","stop = start"].join("\n"),{message:"Possible infinite loop when parsing (left recursion: start -> stop -> start).",location:{start:{offset:20,line:2,column:8},end:{offset:25,line:2,column:13}}})}),describe("in sequences",function(){it("reports left recursion if all preceding elements match empty string",function(){o(r).to.reportError("start = '' '' '' start")}),it("doesn't report left recursion if some preceding element doesn't match empty string",function(){o(r).to.not.reportError("start = 'a' '' '' start"),o(r).to.not.reportError("start = '' 'a' '' start"),o(r).to.not.reportError("start = '' '' 'a' start")}),it("reports left recursion when rule reference is wrapped in an expression",function(){o(r).to.reportError("start = '' start?")}),it("computes expressions that always consume input on success correctly",function(){o(r).to.reportError(["start = a start","a 'a' = ''"].join("\n")),o(r).to.not.reportError(["start = a start","a 'a' = 'a'"].join("\n")),o(r).to.reportError("start = ('' / 'a' / 'b') start"),o(r).to.reportError("start = ('a' / '' / 'b') start"),o(r).to.reportError("start = ('a' / 'b' / '') start"),o(r).to.not.reportError("start = ('a' / 'b' / 'c') start"),o(r).to.reportError("start = ('' { }) start"),o(r).to.not.reportError("start = ('a' { }) start"),o(r).to.reportError("start = ('' '' '') start"),o(r).to.not.reportError("start = ('a' '' '') start"),o(r).to.not.reportError("start = ('' 'a' '') start"),o(r).to.not.reportError("start = ('' '' 'a') start"),o(r).to.reportError("start = a:'' start"),o(r).to.not.reportError("start = a:'a' start"),o(r).to.reportError("start = $'' start"),o(r).to.not.reportError("start = $'a' start"),o(r).to.reportError("start = &'' start"),o(r).to.reportError("start = &'a' start"),o(r).to.reportError("start = !'' start"),o(r).to.reportError("start = !'a' start"),o(r).to.reportError("start = ''? start"),o(r).to.reportError("start = 'a'? start"),o(r).to.reportError("start = ''* start"),o(r).to.reportError("start = 'a'* start"),o(r).to.reportError("start = ''+ start"),o(r).to.not.reportError("start = 'a'+ start"),o(r).to.reportError("start = ('') start"),o(r).to.not.reportError("start = ('a') start"),o(r).to.reportError("start = &{ } start"),o(r).to.reportError("start = !{ } start"),o(r).to.reportError(["start = a start","a = ''"].join("\n")),o(r).to.not.reportError(["start = a start","a = 'a'"].join("\n")),o(r).to.reportError("start = '' start"),o(r).to.not.reportError("start = 'a' start"),o(r).to.not.reportError("start = [a-d] start"),o(r).to.not.reportError("start = . start")})})})},function(n,l,e){"use strict";var t=e(2),u=e(4),r=e(0).compiler.passes.check.reportInfiniteRepetition;t.use(u);var o=t.expect;describe("compiler pass |reportInfiniteRepetition|",function(){it("reports infinite loops for zero_or_more",function(){o(r).to.reportError("start = ('')*",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",location:{start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})}),it("reports infinite loops for one_or_more",function(){o(r).to.reportError("start = ('')+",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",location:{start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})}),it("computes expressions that always consume input on success correctly",function(){o(r).to.reportError(["start = a*","a 'a' = ''"].join("\n")),o(r).to.not.reportError(["start = a*","a 'a' = 'a'"].join("\n")),o(r).to.reportError("start = ('' / 'a' / 'b')*"),o(r).to.reportError("start = ('a' / '' / 'b')*"),o(r).to.reportError("start = ('a' / 'b' / '')*"),o(r).to.not.reportError("start = ('a' / 'b' / 'c')*"),o(r).to.reportError("start = ('' { })*"),o(r).to.not.reportError("start = ('a' { })*"),o(r).to.reportError("start = ('' '' '')*"),o(r).to.not.reportError("start = ('a' '' '')*"),o(r).to.not.reportError("start = ('' 'a' '')*"),o(r).to.not.reportError("start = ('' '' 'a')*"),o(r).to.reportError("start = (a:'')*"),o(r).to.not.reportError("start = (a:'a')*"),o(r).to.reportError("start = ($'')*"),o(r).to.not.reportError("start = ($'a')*"),o(r).to.reportError("start = (&'')*"),o(r).to.reportError("start = (&'a')*"),o(r).to.reportError("start = (!'')*"),o(r).to.reportError("start = (!'a')*"),o(r).to.reportError("start = (''?)*"),o(r).to.reportError("start = ('a'?)*"),o(r).to.reportError("start = (''*)*"),o(r).to.reportError("start = ('a'*)*"),o(r).to.reportError("start = (''+)*"),o(r).to.not.reportError("start = ('a'+)*"),o(r).to.reportError("start = ('')*"),o(r).to.not.reportError("start = ('a')*"),o(r).to.reportError("start = (&{ })*"),o(r).to.reportError("start = (!{ })*"),o(r).to.reportError(["start = a*","a = ''"].join("\n")),o(r).to.not.reportError(["start = a*","a = 'a'"].join("\n")),o(r).to.reportError("start = ''*"),o(r).to.not.reportError("start = 'a'*"),o(r).to.not.reportError("start = [a-d]*"),o(r).to.not.reportError("start = .*")})})},function(n,l,e){"use strict";var t=e(2),u=e(4),r=e(0).compiler.passes.check.reportUndefinedRules;t.use(u);var o=t.expect;describe("compiler pass |reportUndefinedRules|",function(){it("reports undefined rules",function(){o(r).to.reportError("start = undefined",{message:'Rule "undefined" is not defined.',location:{start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}})}),it("checks allowedStartRules",function(){o(r).to.reportError("start = 'a'",{message:'Start rule "missing" is not defined.'},{allowedStartRules:["missing"]})})})},function(n,l,e){"use strict";var t=e(2),u=e(4),r=e(0).compiler.passes.check.reportUnusedRules;t.use(u);var o=t.expect;describe("compiler pass |reportUnusedRules|",function(){it("should report rules that are not referenced",function(){o(r).to.reportWarning("\n start = .\n unused = .\n ",'Rule "unused" is not referenced.'),o(r).to.reportWarning("\n start = .\n unused = .\n used = .\n ",['Rule "used" is not referenced.','Rule "unused" is not referenced.'])}),it("does not report rules that are referenced",function(){o(r).not.to.reportWarning("start = ."),o(r).not.to.reportWarning("\n start = used\n used = .\n ")}),it("does not report any rules that the generated parser starts parsing from",function(){o(r).not.to.reportWarning('\n a = "x"\n b = a\n c = .+\n ',null,{allowedStartRules:["b","c"]})})})},function(n,l,e){"use strict";var t=e(2),u=e(0),r=u.parser,o=u.util,i=u.ast,a=t.expect;t.config.truncateThreshold=0,describe("PEG.js grammar parser",function(){var n={type:"literal",value:"abcd",ignoreCase:!1},l={type:"literal",value:"efgh",ignoreCase:!1},e={type:"literal",value:"ijkl",ignoreCase:!1},u={type:"literal",value:"mnop",ignoreCase:!1},s={type:"semantic_and",code:" code "},c={type:"semantic_not",code:" code "},f={type:"optional",expression:n},p={type:"zero_or_more",expression:n},d={type:"one_or_more",expression:n},h={type:"text",expression:f},g={type:"simple_not",expression:n},m={type:"simple_and",expression:f},y={type:"simple_not",expression:f},b={type:"labeled",label:"a",expression:n},v={type:"labeled",label:"b",expression:l},w={type:"labeled",label:"a",expression:g},A={type:"sequence",elements:[n,l,e]},E={type:"sequence",elements:[b,v]},x={type:"sequence",elements:[b,v,{type:"labeled",label:"c",expression:e},{type:"labeled",label:"d",expression:u}]},C={type:"group",expression:b},_={type:"group",expression:A},S={type:"action",expression:n,code:" code "},T={type:"action",expression:l,code:" code "},k={type:"action",expression:A,code:" code "},F={type:"choice",alternatives:[n,l,e]},D={type:"choice",alternatives:[S,T]},P={type:"choice",alternatives:[S,T,{type:"action",expression:e,code:" code "},{type:"action",expression:u,code:" code "}]},j={type:"named",name:"start rule",expression:n},O={type:"rule",name:"a",expression:n},B={type:"rule",name:"b",expression:l},$={type:"rule",name:"c",expression:e},L={type:"rule",name:"start",expression:n},N={type:"initializer",code:" code "};function M(n){return{type:"grammar",initializer:null,comments:null,rules:[{type:"rule",name:"start",expression:n}]}}function R(l){return M({type:"action",expression:n,code:l})}function I(n,l){return M({type:"literal",value:n,ignoreCase:l})}function q(n,l,e){return M({type:"class",parts:n,inverted:l,ignoreCase:e})}function U(){return M({type:"any"})}function H(n){return M({type:"rule_ref",name:n})}function z(n,l,e){return(n=o.clone(n)).comments=e.extractComments?l.reduce(function(n,l){return n[l.offset]={text:l.text,multiline:l.multiline},n},{}):null,n}var W,V=I("abcd",!1),G={type:"grammar",initializer:null,comments:null,rules:[O,B]},J=function(){var n;function l(n){delete n.location}function e(l){delete l.location,n(l.expression)}function t(l){return function(e){delete e.location,e[l].forEach(n)}}return n=i.visitor.build({grammar:function(e){delete e.location,delete e._alwaysConsumesOnSuccess,e.initializer&&n(e.initializer),e.comments&&o.each(e.comments,l),e.rules.forEach(n)},initializer:l,rule:e,named:e,choice:t("alternatives"),action:e,sequence:t("elements"),labeled:e,text:e,simple_and:e,simple_not:e,optional:e,zero_or_more:e,one_or_more:e,group:e,semantic_and:l,semantic_not:l,rule_ref:l,literal:l,class:l,any:l})}();function X(n,l){var e=n.Assertion;e.addMethod("parseAs",function(n,e){e=void 0===e?{}:e;var t=r.parse(l.flag(this,"object"),e);J(t),this.assert(l.eql(t,n),"expected #{this} to parse as #{exp} but got #{act}","expected #{this} to not parse as #{exp}",n,t,!l.flag(this,"negate"))}),e.addMethod("failToParse",function(n){var t,u;try{u=r.parse(l.flag(this,"object")),t=!0}catch(n){u=n,t=!1}t&&J(u),this.assert(!t,"expected #{this} to fail to parse but got #{act}","expected #{this} to not fail to parse but it failed with #{act}",null,u),t||void 0===n||Object.keys(n).forEach(function(l){new e(u).to.have.property(l).that.is.deep.equal(n[l])})})}beforeEach(function(){t.use(X)}),it("parses Rule+",function(){a("start = a").to.parseAs(H("a"));var n=H("a");n.initializer={type:"initializer",code:""},a("{}\nstart = a").to.parseAs(n),a("").to.failToParse(),a("{}").to.failToParse()}),it("parses Grammar",function(){a("\na = 'abcd';\n").to.parseAs({type:"grammar",comments:null,initializer:null,rules:[O]}),a("\na = 'abcd';\nb = 'efgh';\nc = 'ijkl';\n").to.parseAs({type:"grammar",comments:null,initializer:null,rules:[O,B,$]}),a("\n{ code };\na = 'abcd';\n").to.parseAs({type:"grammar",comments:null,initializer:N,rules:[O]})}),it("parses Initializer",function(){a("{ code };start = 'abcd'").to.parseAs({type:"grammar",comments:null,initializer:N,rules:[L]})}),it("parses Rule",function(){a("start\n=\n'abcd';").to.parseAs(M(n)),a("start\n'start rule'\n=\n'abcd';").to.parseAs(M(j))}),it("parses Expression",function(){a("start = 'abcd' / 'efgh' / 'ijkl'").to.parseAs(M(F))}),it("parses ChoiceExpression",function(){a("start = 'abcd' { code }").to.parseAs(M(S)),a("start = 'abcd' { code }\n/\n'efgh' { code }").to.parseAs(M(D)),a("start = 'abcd' { code }\n/\n'efgh' { code }\n/\n'ijkl' { code }\n/\n'mnop' { code }").to.parseAs(M(P))}),it("parses ActionExpression",function(){a("start = 'abcd' 'efgh' 'ijkl'").to.parseAs(M(A)),a("start = 'abcd' 'efgh' 'ijkl'\n{ code }").to.parseAs(M(k))}),it("parses SequenceExpression",function(){a("start = a:'abcd'").to.parseAs(M(b)),a("start = a:'abcd'\nb:'efgh'").to.parseAs(M(E)),a("start = a:'abcd'\nb:'efgh'\nc:'ijkl'\nd:'mnop'").to.parseAs(M(x))}),it("parses `@` (value plucking)",function(){function t(){for(var n=arguments.length,l=new Array(n),e=0;e\n'abcd'").to.failToParse()})},[{},{extractComments:!1},{extractComments:!0}].forEach(function(n){describe("with options "+t.util.inspect(n),function(){return W(n)})}),it("parses Identifier",function(){a("start = a:'abcd'").to.parseAs(M(b))}),it("parses IdentifierName",function(){a("start = a").to.parseAs(H("a")),a("start = ab").to.parseAs(H("ab")),a("start = abcd").to.parseAs(H("abcd"))}),it("parses IdentifierStart",function(){a("start = a").to.parseAs(H("a")),a("start = $").to.parseAs(H("$")),a("start = _").to.parseAs(H("_")),a("start = \\u0061").to.parseAs(H("a"))}),it("parses IdentifierPart",function(){a("start = aa").to.parseAs(H("aa")),a("start = à").to.parseAs(H("à")),a("start = a0").to.parseAs(H("a0")),a("start = a‿").to.parseAs(H("a‿")),a("start = a‌").to.parseAs(H("a‌")),a("start = a‍").to.parseAs(H("a‍"))}),it("parses LiteralMatcher",function(){a("start = 'abcd'").to.parseAs(I("abcd",!1)),a("start = 'abcd'i").to.parseAs(I("abcd",!0))}),it("parses StringLiteral",function(){a('start = ""').to.parseAs(I("",!1)),a('start = "a"').to.parseAs(I("a",!1)),a('start = "abc"').to.parseAs(I("abc",!1)),a("start = ''").to.parseAs(I("",!1)),a("start = 'a'").to.parseAs(I("a",!1)),a("start = 'abc'").to.parseAs(I("abc",!1))}),it("parses DoubleStringCharacter",function(){a('start = "a"').to.parseAs(I("a",!1)),a('start = "\\n"').to.parseAs(I("\n",!1)),a('start = "\\\n"').to.parseAs(I("",!1)),a('start = """').to.failToParse(),a('start = "\\"').to.failToParse(),a('start = "\n"').to.failToParse()}),it("parses SingleStringCharacter",function(){a("start = 'a'").to.parseAs(I("a",!1)),a("start = '\\n'").to.parseAs(I("\n",!1)),a("start = '\\\n'").to.parseAs(I("",!1)),a("start = '''").to.failToParse(),a("start = '\\'").to.failToParse(),a("start = '\n'").to.failToParse()}),it("parses CharacterClassMatcher",function(){a("start = []").to.parseAs(q([],!1,!1)),a("start = [a-d]").to.parseAs(q([["a","d"]],!1,!1)),a("start = [a]").to.parseAs(q(["a"],!1,!1)),a("start = [a-de-hi-l]").to.parseAs(q([["a","d"],["e","h"],["i","l"]],!1,!1)),a("start = [^a-d]").to.parseAs(q([["a","d"]],!0,!1)),a("start = [a-d]i").to.parseAs(q([["a","d"]],!1,!0)),a("start = [\\\n]").to.parseAs(q([],!1,!1))}),it("parses ClassCharacterRange",function(){a("start = [a-d]").to.parseAs(q([["a","d"]],!1,!1)),a("start = [a-a]").to.parseAs(q([["a","a"]],!1,!1)),a("start = [b-a]").to.failToParse({message:"Invalid character range: b-a."})}),it("parses ClassCharacter",function(){a("start = [a]").to.parseAs(q(["a"],!1,!1)),a("start = [\\n]").to.parseAs(q(["\n"],!1,!1)),a("start = [\\\n]").to.parseAs(q([],!1,!1)),a("start = []]").to.failToParse(),a("start = [\\]").to.failToParse(),a("start = [\n]").to.failToParse()}),it("parses LineContinuation",function(){a("start = '\\\r\n'").to.parseAs(I("",!1))}),it("parses EscapeSequence",function(){a("start = '\\n'").to.parseAs(I("\n",!1)),a("start = '\\0'").to.parseAs(I("\0",!1)),a("start = '\\xFF'").to.parseAs(I("ÿ",!1)),a("start = '\\uFFFF'").to.parseAs(I("￿",!1)),a("start = '\\09'").to.failToParse()}),it("parses CharacterEscapeSequence",function(){a("start = '\\n'").to.parseAs(I("\n",!1)),a("start = '\\a'").to.parseAs(I("a",!1))}),it("parses SingleEscapeCharacter",function(){a("start = '\\''").to.parseAs(I("'",!1)),a("start = '\\\"'").to.parseAs(I('"',!1)),a("start = '\\\\'").to.parseAs(I("\\",!1)),a("start = '\\b'").to.parseAs(I("\b",!1)),a("start = '\\f'").to.parseAs(I("\f",!1)),a("start = '\\n'").to.parseAs(I("\n",!1)),a("start = '\\r'").to.parseAs(I("\r",!1)),a("start = '\\t'").to.parseAs(I("\t",!1)),a("start = '\\v'").to.parseAs(I("\v",!1))}),it("parses NonEscapeCharacter",function(){a("start = '\\a'").to.parseAs(I("a",!1))}),it("parses HexEscapeSequence",function(){a("start = '\\xFF'").to.parseAs(I("ÿ",!1))}),it("parses UnicodeEscapeSequence",function(){a("start = '\\uFFFF'").to.parseAs(I("￿",!1))}),it("parses AnyMatcher",function(){a("start = .").to.parseAs(U())}),it("parses CodeBlock",function(){a("start = 'abcd' { code }").to.parseAs(R(" code "))}),it("parses Code",function(){a("start = 'abcd' {a}").to.parseAs(R("a")),a("start = 'abcd' {abc}").to.parseAs(R("abc")),a("start = 'abcd' {{a}}").to.parseAs(R("{a}")),a("start = 'abcd' {{a}{b}{c}}").to.parseAs(R("{a}{b}{c}")),a("start = 'abcd' {{}").to.failToParse(),a("start = 'abcd' {}}").to.failToParse()}),it("parses __",function(){a("start ='abcd'").to.parseAs(V),a("start = 'abcd'").to.parseAs(V),a("start =\r\n'abcd'").to.parseAs(V),a("start =/* comment */'abcd'").to.parseAs(V),a("start = 'abcd'").to.parseAs(V)}),it("parses _",function(){a("a = 'abcd'\r\nb = 'efgh'").to.parseAs(G),a("a = 'abcd' \r\nb = 'efgh'").to.parseAs(G),a("a = 'abcd'/* comment */\r\nb = 'efgh'").to.parseAs(G),a("a = 'abcd' \r\nb = 'efgh'").to.parseAs(G)}),it("parses EOS",function(){a("a = 'abcd'\n;b = 'efgh'").to.parseAs(G),a("a = 'abcd' \r\nb = 'efgh'").to.parseAs(G),a("a = 'abcd' // comment\r\nb = 'efgh'").to.parseAs(G),a("a = 'abcd'\nb = 'efgh'").to.parseAs(G)}),it("parses EOF",function(){a("start = 'abcd'\n").to.parseAs(V)}),it("reports unmatched brace",function(){a(function(){return r.parse("rule = \n 'x' { y \n z")}).to.throw("Unbalanced brace.").with.property("location").that.deep.equals({start:{offset:13,line:2,column:6},end:{offset:14,line:2,column:7}})})})}])}); \ No newline at end of file diff --git a/package.json b/package.json index 5232ec4..6b5ef58 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "build-docs": "vuepress build docs", "watch-docs": "vuepress dev docs", "build-parser": "pegjs -c src/pegjs.config.js", - "build-bundles": "bundle", - "watch-bundles": "bundle --watch", + "build-dist": "bundle", + "watch-dist": "bundle --watch", "clean": "rimraf packages/pegjs/dist examples/*.js", "impact": "node tools/impact master", "now-build": "npm run build-docs", diff --git a/packages/pegjs/.npmignore b/packages/pegjs/.npmignore new file mode 100644 index 0000000..57bb056 --- /dev/null +++ b/packages/pegjs/.npmignore @@ -0,0 +1 @@ +dist/*-bundle.min.js diff --git a/packages/pegjs/package.json b/packages/pegjs/package.json index 921eded..3accfd8 100644 --- a/packages/pegjs/package.json +++ b/packages/pegjs/package.json @@ -1,6 +1,6 @@ { "name": "pegjs", - "version": "0.11.0-dev", + "version": "0.11.0", "description": "Parser generator for JavaScript", "keywords": [ "PEG.js", diff --git a/tools/publish-dev/index.js b/tools/publish-dev/index.js new file mode 100644 index 0000000..699352b --- /dev/null +++ b/tools/publish-dev/index.js @@ -0,0 +1,59 @@ +"use strict"; + +const cp = require( "child_process" ); +const fs = require( "fs" ); +const path = require( "path" ); + +// paths + +const packagejson = require.resolve( "pegjs/package.json" ); +const pegjs = path.dirname( packagejson ); +const npmignore = path.join( pegjs, ".npmignore" ); +const npmrc = path.join( pegjs, ".npmrc" ); + +// variabes + +const APP = require( "./package.json" ).name; +const { GIT_BRANCH, GIT_COMMIT_SHA, NPM_TOKEN } = process.env; +const VERSION = require( packagejson ).version; + +// local helpers + +function die( err ) { + + console.error( err ); + process.exit( 1 ); + +} + +function exec( command, print = true ) { + + const result = cp.execSync( command, { + cwd: pegjs, + stdio: print ? "inherit" : void 0, + } ); + + return print ? void 0 : result.toString( "utf8" ); + +} + +// assertions + +if ( ! GIT_BRANCH ) die( "`process.env.GIT_BRANCH` is required by " + APP ); +if ( ! NPM_TOKEN ) die( "`process.env.NPM_TOKEN` is required by " + APP ); + +// update version field in `pegjs/package.json` + +const GIT_COMMIT_SHORT_SHA = exec( "git rev-parse --short " + GIT_COMMIT_SHA || GIT_BRANCH, false ); +const dev = `${ VERSION }-${ GIT_BRANCH }.${ GIT_COMMIT_SHORT_SHA }`; + +exec( `npm --no-git-tag-version -f version ${ dev }` ); + +// publish pegjs@dev + +fs.writeFileSync( npmrc, `//registry.npmjs.org/:_authToken=${ NPM_TOKEN }` ); +fs.unlinkSync( npmignore ); + +exec( "npm publish --tag=dev" ); + +fs.unlinkSync( npmrc ); diff --git a/tools/publish-dev/package.json b/tools/publish-dev/package.json new file mode 100644 index 0000000..22145b7 --- /dev/null +++ b/tools/publish-dev/package.json @@ -0,0 +1,5 @@ +{ + "name": "@pegjs/publish-dev", + "version": "2.0.0", + "private": true +} diff --git a/webpack.config.js b/webpack.config.js index 87884a8..92d18fc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,7 +4,7 @@ const target = require( "@pegjs/bundler/target" ); module.exports = [ - /* packages/pegjs/dist/peg.js */ + /* https://unpkg.com/pegjs@latest/dist/peg.js */ target( { entry: require.resolve( "pegjs" ), @@ -13,7 +13,7 @@ module.exports = [ } ), - /* packages/pegjs/dist/peg.min.js */ + /* https://unpkg.com/pegjs@latest/dist/peg.min.js */ target( { entry: require.resolve( "pegjs" ), @@ -22,7 +22,7 @@ module.exports = [ } ), - /* https://pegjs.org/*-bundle.min.js */ + /* https://unpkg.com/pegjs@dev/dist/*-bundle.min.js */ target( { entry: { @@ -30,7 +30,7 @@ module.exports = [ "test": require.resolve( "@pegjs/spec-suite/browser.stub.js" ), }, library: [ "peg", "[name]" ], - output: "docs/.vuepress/public/[name]-bundle.min.js", + output: "packages/pegjs/dist/[name]-bundle.min.js", } ),