inequality-grammar 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["inequality-grammar"]=e():t["inequality-grammar"]=e()}(self,(()=>(()=>{var t={8326:(t,e,r)=>{!function(){function e(t){return t[0]}var n=i(r(361)),o=(i(r(1609)),i(r(8446)),i(r(5161)),i(r(6604)),i(r(7557)),i(r(6579)),r(353));function i(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=null;try{c=window}catch(t){c={innerWidth:800,innerHeight:600}}var l=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]),i=(0,o._findRightmost)(e),s="";switch(t[2].toLowerCase()){case"AND":case"and":case"&":case"∧":case".":s="and";break;case"OR":case"or":case"|":case"∨":case"v":case"+":s="or";break;case"XOR":case"xor":case"^":case"⊻":s="xor";break;default:s=""}return i.children.right={type:"LogicBinaryOperation",properties:{operation:s},children:{right:r}},e},p=function(t){return{type:"LogicNot",children:{argument:t[2]}}},f={Lexer:void 0,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:c.innerWidth/4,y:c.innerHeight/3},e.expression={latex:"",python:""},(0,o._simplify)(e)}},{name:"main",symbols:["_","AS","_",{literal:"="},"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),i={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,o._findRightmost)(e).children.right=i,a(a({},e=(0,o._simplify)(e)),{},{position:{x:c.innerWidth/4,y:c.innerHeight/3},expression:{latex:"",python:""}})}},{name:"AS$string$1",symbols:[{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$1","_","MD"],postprocess:l},{name:"AS$string$2",symbols:[{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$2","_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"|"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"∨"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"v"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"+"},"_","MD"],postprocess:l},{name:"AS",symbols:["MD"],postprocess:e},{name:"MD$string$1",symbols:[{literal:"A"},{literal:"N"},{literal:"D"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$1","_","XOR"],postprocess:l},{name:"MD$string$2",symbols:[{literal:"a"},{literal:"n"},{literal:"d"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$2","_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"&"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"∧"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"."},"_","XOR"],postprocess:l},{name:"MD",symbols:["XOR"],postprocess:e},{name:"XOR$string$1",symbols:[{literal:"X"},{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$1","_","P"],postprocess:l},{name:"XOR$string$2",symbols:[{literal:"x"},{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$2","_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"^"},"_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"⊻"},"_","P"],postprocess:l},{name:"XOR",symbols:["P"],postprocess:e},{name:"P",symbols:[{literal:"("},"_","AS","_",{literal:")"}],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:t[2]}}}},{name:"P",symbols:["N"],postprocess:e},{name:"N$string$1",symbols:[{literal:"N"},{literal:"O"},{literal:"T"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$1","_","P"],postprocess:p},{name:"N$string$2",symbols:[{literal:"n"},{literal:"o"},{literal:"t"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$2","_","P"],postprocess:p},{name:"N",symbols:[{literal:"!"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"~"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"¬"},"_","P"],postprocess:p},{name:"N",symbols:["L"],postprocess:e},{name:"L$string$1",symbols:[{literal:"t"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$1"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$2",symbols:[{literal:"T"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$2"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"T"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"1"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$3",symbols:[{literal:"f"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$3"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L$string$4",symbols:[{literal:"F"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$4"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"F"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"0"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[/[A-EG-SU-Z]/],postprocess:function(t){return{type:"Symbol",properties:{letter:t[0]},children:{}}}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(t){return null}}],ParserStart:"main"};void 0!==t.exports?t.exports=f:window.grammar=f}()},1647:(t,e,r)=>{!function(){function e(t){return t[0]}var n=c(r(361)),o=(c(r(1609)),c(r(8446))),i=c(r(5161)),s=c(r(7557)),a=c(r(6579)),u=r(353);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",varepsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω"},d=r(9271).compile({Int:/[0-9]+/,IdMod:/[a-zA-Z]+_(?:prime)/,Id:{match:/[a-zA-Z]+(?:_[a-zA-Z0-9]+)?/,type:function(t){for(var e=new Map,r=Object.getOwnPropertyNames(t),n=function(n){var o=r[n],i=t[o];(Array.isArray(i)?i:[i]).forEach((function(t){if("string"!=typeof t)throw new Error("keyword must be string (in keyword '"+o+"')");e.set(t,o)}))},o=0;o<r.length;o++)n(o);return function(t){return e.get(t)}}({TrigFn:["cos","sin","tan","cosec","sec","cot","cosh","sinh","tanh","cosech","sech","coth","arccos","arcsin","arctan","arccosec","arcsec","arccot","arccosh","arcsinh","arctanh","arccosech","arcsech","arccoth","acos","asin","atan","acosec","asec","acot","acosh","asinh","atanh","acosech","asech","acoth"],Fn:["ln","abs"],Log:["log"],Radix:["sqrt"],Derivative:["diff","Derivative"]})},Rel:["=","==","<","<=",">",">="],PlusMinus:["+","-","±","-","-"],Pow:["**","^"],Mul:["*","×"],Div:["/","÷"],Lparen:"(",Rparen:")",Comma:",",c:/./}),b=null;try{b=window}catch(t){b={innerWidth:800,innerHeight:600}}var m=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=new RegExp("^(?:a|arc)([^r].+)$"),i=t.text,s=!1;o.test(i)&&(i=o.exec(i)[1],s=1);var a,u=(0,n.default)(e),c=(0,n.default)(r);if(a=null===c?{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{argument:u}}:{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{superscript:c,argument:u}},s)if(a.children.superscript){var l=(0,n.default)(a.children.superscript),p=(0,n.default)(a);p.children.superscript={type:"Num",properties:{significand:"-1"},children:{}},a={type:"Brackets",properties:{type:"round"},children:{argument:p,superscript:l}}}else a.children.superscript={type:"Num",properties:{significand:"-1"},children:{}};return a},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"Fn",properties:{name:"log",allowSubscript:!0,innerSuperscript:!1},children:{argument:t}};return null!==e?"Num"!==e.type&&"Symbol"!==e.type||(r.children.subscript=(0,n.default)(e)):r.children.subscript={type:"Num",properties:{significand:"10"},children:{}},r},x=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]);return(0,u._findRightmost)(e).children.right=r,e},_=function(t){var e=(0,i.default)(t.split(""),(function(t){return/[0-9]/.test(t)?w([{text:t}]):{type:"Symbol",properties:{letter:t},children:{}}}));return(0,a.default)(e,(function(t,e){return e.children.right=t,e}))},w=function(t){return{type:"Num",properties:{significand:t[0].text},children:{}}},j={Lexer:d,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:b.innerWidth/4,y:b.innerHeight/3},e.expression={latex:"",python:""},(0,u._simplify)(e)}},{name:"main",symbols:["_","AS","_",d.has("Rel")?{type:"Rel"}:Rel,"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),o={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,u._findRightmost)(e).children.right=o,h(h({},e=(0,u._simplify)(e)),{},{position:{x:b.innerWidth/4,y:b.innerHeight/3},expression:{latex:"",python:""}})}},{name:"P",symbols:[d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:(0,n.default)(t[2])}}}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[3],null)}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Pow")?{type:"Pow"}:Pow,"NUM",d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[5],t[2])}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen,d.has("Pow")?{type:"Pow"}:Pow,"NUM"],postprocess:function(t){return m(t[0],t[3],t[7])}},{name:"P",symbols:[d.has("Derivative")?{type:"Derivative"}:Derivative,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","ARGS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t[3]}},r=t[7].reduce((function(t,e){if(0==t.length)return[{object:e,order:1}];var r=t[t.length-1];return"Num"===e.type?(r.order=parseInt(e.properties.significand),[].concat(l(t.slice(0,t.length-1)),[r])):(0,o.default)(e,r.object)?(r.order=r.order+1,[].concat(l(t.slice(0,t.length-1)),[r])):[].concat(l(t),[{object:e,order:1}])}),[]).map((function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t.object}};return t.order>1&&(e.children.order={type:"Num",properties:{significand:"".concat(t.order)},children:{}}),e})),n=r.reduce((function(t,e){return t+parseInt(e.children.order?e.children.order.properties.significand:"1")}),0);return n>1&&(e.children.order={type:"Num",properties:{significand:"".concat(n)},children:{}}),{type:"Derivative",children:{numerator:e,denominator:(0,a.default)(r,(function(t,e){return e.children.right=t,e}))}}}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","VAR","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","NUM","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Radix")?{type:"Radix"}:Radix,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Radix",children:{argument:(0,n.default)(t[3])}}}},{name:"P",symbols:[d.has("Fn")?{type:"Fn"}:Fn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e=(0,n.default)(t[3]);return"abs"===t[0].text?{type:"AbsoluteValue",children:{argument:e}}:{type:"Fn",properties:{name:t[0].text,allowSubscript:"ln"!==t[0].text,innerSuperscript:!1},children:{argument:e}}}},{name:"P",symbols:["VAR"],postprocess:e},{name:"P",symbols:["NUM"],postprocess:e},{name:"P",symbols:[d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","P"],postprocess:function(t){return{type:"BinaryOperation",properties:{operation:t[0].text},children:{right:t[2]}}}},{name:"ARGS",symbols:["AS"],postprocess:function(t){return[t[0]]}},{name:"ARGS",symbols:["ARGS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","AS"],postprocess:function(t){return t[0].concat(t[4])}},{name:"E",symbols:["P","_",d.has("Pow")?{type:"Pow"}:Pow,"_","E"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]),o=(0,u._findRightmost)(e);if("BinaryOperation"===r.type){var i=(0,n.default)(r.children.right.children.right);i&&(e.children.right=i,r.children.right.children=(0,s.default)(r.children.right.children,"right"))}else{var a=(0,n.default)(r.children.right);a&&(o.children.right=a,r.children=(0,s.default)(r.children,"right"))}if(!(["Fn","Log","TrigFn"].indexOf(e.type)>-1))return o.children.superscript=r,e;switch(e.properties.name){case"ln":case"log":return{type:"Brackets",properties:{type:"round"},children:{argument:e,superscript:r}};default:return o.children.superscript=r,e}}},{name:"E",symbols:["P"],postprocess:e},{name:"MD",symbols:["MD","_",d.has("Mul")?{type:"Mul"}:Mul,"_","E"],postprocess:x},{name:"MD",symbols:["MD","_",d.has("Div")?{type:"Div"}:Div,"_","E"],postprocess:function(t){var e=null;"BinaryOperation"===t[4].type?(e=(0,n.default)(t[4].children.right.children.right),t[4].children.right.children=(0,s.default)(t[4].children.right.children,"right")):(e=(0,n.default)(t[4].children.right),t[4].children=(0,s.default)(t[4].children,"right"));var r=(0,n.default)(t[0]),o=(0,u._rightChainToArray)(r).map((function(t){return t.children=(0,s.default)(t.children,"right"),t})),i={type:"Fraction",children:{numerator:o.pop(),denominator:(0,n.default)(t[4])}};return e&&(i.children.right=e),o.length>0?(o[o.length-1].children.right=i,o.reduceRight((function(t,e){return e.children.right=t,e}))):i}},{name:"MD",symbols:["MD","_","E"],postprocess:x},{name:"MD",symbols:["E"],postprocess:e},{name:"AS",symbols:["AS","_",d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","MD"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]);return(0,u._findRightmost)(e).children.right={type:"BinaryOperation",properties:{operation:t[2].text},children:{right:r}},e}},{name:"AS",symbols:["MD"],postprocess:e},{name:"VAR",symbols:[d.has("Id")?{type:"Id"}:Id],postprocess:function t(e){var r=Object.keys(v),n=e[0].text.split("_"),o=["[a-zA-Z]"].concat(r).join("|"),i=new RegExp("^((?:d|D)(?:elta)?)(".concat(o,")$")),s=n[0].match(i);if(s)return{type:"Differential",properties:{letter:v[s[1]]||s[1]},children:{argument:t([{text:e[0].text.substring(s[1].length)}])}};r.indexOf(n[0])>-1&&(n[0]=v[n[0]]);var a=_(n[0]);if(n.length>1){r.indexOf(n[1])>-1&&(n[1]=v[n[1]]);var c=_(n[1]);(0,u._findRightmost)(a).children.subscript=c}return a}},{name:"VAR",symbols:[d.has("IdMod")?{type:"IdMod"}:IdMod],postprocess:function(t){var e=Object.keys(v),r=t[0].text.split("_");e.indexOf(r[0])>-1&&(r[0]=v[r[0]]);var n=_(r[0]);return(0,u._findRightmost)(n).properties.modifier=r[1],n}},{name:"NUM",symbols:[d.has("Int")?{type:"Int"}:Int],postprocess:w},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==t.exports?t.exports=j:window.grammar=j}()},353:(t,e,r)=>{"use strict";r.r(e),r.d(e,{_findRightmost:()=>p,_rightChainToArray:()=>l,_safeToRemove:()=>f,_simplify:()=>h}),r(361);var n=r(1609),o=r.n(n),i=(r(8446),r(5161),r(6604)),s=r.n(i),a=r(7557),u=r.n(a);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(6579);var l=function(t){for(var e=t,r=[e];e.children.right;)e=e.children.right,r=[].concat(function(t){if(Array.isArray(t))return c(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]);var n;return r},p=function(t){for(var e=t;e.children.right;)e=e.children.right;return e},f=function(t){return t&&"Brackets"===t.type&&o()(u()(t.children,"argument"))},h=function t(e){if(e.children=s()(e.children,(function(e,r,n){return t(e)})),"Brackets"===e.type||"Fn"===e.type){var r=e.children.argument;f(r)&&(e.children.argument=r.children.argument)}if("Fraction"===e.type){var n=e.children.numerator;f(n)&&(e.children.numerator=n.children.argument);var o=e.children.denominator;f(o)&&(e.children.denominator=o.children.argument)}var i=e.children.superscript;return f(i)&&(e.children.superscript=i.children.argument),e}},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),s=r(1327),a=r(1866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,r)=>{var n=r(7040),o=r(4125),i=r(2117),s=r(7518),a=r(4705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),s=r(9916),a=r(5265);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},6384:(t,e,r)=>{var n=r(8407),o=r(7465),i=r(3779),s=r(7599),a=r(4758),u=r(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7412:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},4963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var s=t[r];e(s,r,t)&&(i[o++]=s)}return i}},7443:(t,e,r)=>{var n=r(2118);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},4636:(t,e,r)=>{var n=r(2545),o=r(5694),i=r(1469),s=r(4144),a=r(5776),u=r(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),p=!r&&!l&&s(t),f=!r&&!l&&!p&&u(t),h=r||l||p||f,y=h?n(t.length,String):[],v=y.length;for(var d in t)!e&&!c.call(t,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||f&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,v))||y.push(d);return y}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2549:t=>{t.exports=function(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}},2908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4865:(t,e,r)=>{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];i.call(t,e)&&o(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:(t,e,r)=>{var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:(t,e,r)=>{var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:(t,e,r)=>{var n=r(6384),o=r(7412),i=r(4865),s=r(4037),a=r(3886),u=r(4626),c=r(278),l=r(8805),p=r(1911),f=r(8234),h=r(6904),y=r(4160),v=r(3824),d=r(9148),b=r(8517),m=r(1469),g=r(4144),x=r(6688),_=r(3218),w=r(2928),j=r(3674),O=r(1704),S="[object Arguments]",A="[object Function]",k="[object Object]",P={};P[S]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[k]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[A]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,R,E,L,$){var M,D=1&r,T=2&r,N=4&r;if(R&&(M=L?R(e,E,L,$):R(e)),void 0!==M)return M;if(!_(e))return e;var F=m(e);if(F){if(M=v(e),!D)return c(e,M)}else{var I=y(e),B=I==A||"[object GeneratorFunction]"==I;if(g(e))return u(e,D);if(I==k||I==S||B&&!L){if(M=T||B?{}:b(e),!D)return T?p(e,a(M,e)):l(e,s(M,e))}else{if(!P[I])return L?e:{};M=d(e,I,D)}}$||($=new n);var C=$.get(e);if(C)return C;$.set(e,M),w(e)?e.forEach((function(n){M.add(t(n,r,R,n,e,$))})):x(e)&&e.forEach((function(n,o){M.set(o,t(n,r,R,o,e,$))}));var z=F?void 0:(N?T?h:f:T?O:j)(e);return o(z||e,(function(n,o){z&&(n=e[o=n]),i(M,o,t(n,r,R,o,e,$))})),M}},3118:(t,e,r)=>{var n=r(3218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},9881:(t,e,r)=>{var n=r(7816),o=r(9291)(n);t.exports=o},5865:(t,e,r)=>{var n=r(4370),o=r(9291)(n,!0);t.exports=o},1848:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},1078:(t,e,r)=>{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,s,a){var u=-1,c=e.length;for(i||(i=o),a||(a=[]);++u<c;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,s,a):n(a,l):s||(a[a.length]=l)}return a}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},4370:(t,e,r)=>{var n=r(7473),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7473:(t,e,r)=>{var n=r(5063)(!0);t.exports=n},7786:(t,e,r)=>{var n=r(1811),o=r(327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},8866:(t,e,r)=>{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,s,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,s,t,a))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),s=r(6096),a=r(4160),u=r(1469),c=r(4144),l=r(6719),p="[object Arguments]",f="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=u(t),g=u(e),x=m?f:a(t),_=g?f:a(e),w=(x=x==p?h:x)==h,j=(_=_==p?h:_)==h,O=x==_;if(O&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(O&&!w)return b||(b=new n),m||l(t)?o(t,e,r,v,d,b):i(t,e,x,r,v,d,b);if(!(1&r)){var S=w&&y.call(t,"__wrapped__"),A=j&&y.call(e,"__wrapped__");if(S||A){var k=S?t.value():t,P=A?e.value():e;return b||(b=new n),d(k,P,r,v,b)}}return!!O&&(b||(b=new n),s(t,e,r,v,d,b))}},5588:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},2958:(t,e,r)=>{var n=r(6384),o=r(939);t.exports=function(t,e,r,i){var s=r.length,a=s,u=!i;if(null==t)return!a;for(t=Object(t);s--;){var c=r[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=r[s])[0],p=t[l],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in t))return!1}else{var h=new n;if(i)var y=i(p,f,l,t,e,h);if(!(void 0===y?o(f,p,3,i,h):y))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),s=r(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:a).test(s(t))}},9221:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[n(t)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),s=r(1469),a=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?s(t)?o(t[0],t[1]):n(t):a(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),o=r(5726),i=r(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},9199:(t,e,r)=>{var n=r(9881),o=r(8612);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),s=r(5403),a=r(9162),u=r(2634),c=r(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(r){var s=o(r,t);return void 0===s&&s===e?i(r,t):n(e,s,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},107:t=>{t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=s},4259:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},531:(t,e,r)=>{var n=r(2705),o=r(9932),i=r(1469),s=r(3448),a=n?n.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),s=r(4757),a=r(3593),u=r(1814);t.exports=function(t,e,r){var c=-1,l=o,p=t.length,f=!0,h=[],y=h;if(r)f=!1,l=i;else if(p>=200){var v=e?null:a(t);if(v)return u(v);f=!1,l=s,y=new n}else y=e?[]:h;t:for(;++c<p;){var d=t[c],b=e?e(d):d;if(d=r||0!==d?d:0,f&&b==b){for(var m=y.length;m--;)if(y[m]===b)continue t;e&&y.push(b),h.push(d)}else l(y,b,r)||(y!==h&&y.push(b),h.push(d))}return h}},7406:(t,e,r)=>{var n=r(1811),o=r(928),i=r(292),s=r(327);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[s(o(e))]}},4757:t=>{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),s=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(s(t))}},4318:(t,e,r)=>{var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}},7157:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:(t,e,r)=>{var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},8363:(t,e,r)=>{var n=r(4865),o=r(9465);t.exports=function(t,e,r,i){var s=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),s?o(r,c,l):n(r,c,l)}return r}},8805:(t,e,r)=>{var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:(t,e,r)=>{var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,r)=>{var n=r(8612);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,s=e?i:-1,a=Object(r);(e?s--:++s<i)&&!1!==o(a[s],s,a););return r}}},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),s=n(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===r(i[u],u,i))break}return e}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),s=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=s},696:(t,e,r)=>{var n=r(8630);t.exports=function(t){return n(t)?void 0:t}},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,s,a,u){var c=1&r,l=t.length,p=e.length;if(l!=p&&!(c&&p>l))return!1;var f=u.get(t),h=u.get(e);if(f&&h)return f==e&&h==t;var y=-1,v=!0,d=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++y<l;){var b=t[y],m=e[y];if(s)var g=c?s(m,b,y,e,t,u):s(b,m,y,t,e,u);if(void 0!==g){if(g)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||a(b,t,r,s,u)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!a(b,m,r,s,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},8351:(t,e,r)=>{var n=r(2705),o=r(1149),i=r(7813),s=r(7114),a=r(8776),u=r(1814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var y=1&n;if(h||(h=u),t.size!=e.size&&!y)return!1;var v=f.get(t);if(v)return v==e;n|=2,f.set(t,e);var d=s(h(t),h(e),n,c,p,f);return f.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,s,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var p=l;p--;){var f=c[p];if(!(u?f in e:o.call(e,f)))return!1}var h=a.get(t),y=a.get(e);if(h&&y)return h==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var d=u;++p<l;){var b=t[f=c[p]],m=e[f];if(i)var g=u?i(m,b,f,e,t,a):i(b,m,f,t,e,a);if(!(void 0===g?b===m||s(b,m,r,i,a):g)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var x=t.constructor,_=e.constructor;x==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(v=!1)}return a.delete(t),a.delete(e),v}},9021:(t,e,r)=>{var n=r(5564),o=r(5357),i=r(61);t.exports=function(t){return i(o(t,void 0,n),t+"")}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},6904:(t,e,r)=>{var n=r(8866),o=r(1442),i=r(1704);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],s=t[i];e[r]=[i,s,n(s)]}return e}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=s.call(t);return n&&(e?t[a]=r:delete t[a]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},1442:(t,e,r)=>{var n=r(2488),o=r(5924),i=r(9551),s=r(479),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:s;t.exports=a},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),s=r(8525),a=r(577),u=r(4239),c=r(346),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",y="[object DataView]",v=c(n),d=c(o),b=c(i),m=c(s),g=c(a),x=u;(n&&x(new n(new ArrayBuffer(1)))!=y||o&&x(new o)!=l||i&&x(i.resolve())!=p||s&&x(new s)!=f||a&&x(new a)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return y;case d:return l;case b:return p;case m:return f;case g:return h}return e}),t.exports=x},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),s=r(5776),a=r(1780),u=r(327);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,p=!1;++c<l;){var f=u(e[c]);if(!(p=null!=t&&r(t,f)))break;t=t[f]}return p||++c!=l?p:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(i(t)||o(t))}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:(t,e,r)=>{var n=r(4318),o=r(7157),i=r(3147),s=r(419),a=r(7133);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Symbol]":return s(t)}}},8517:(t,e,r)=>{var n=r(3118),o=r(5924),i=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},5403:(t,e,r)=>{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||s.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o&&n.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,s=-1,a=o(i.length-e,0),u=Array(a);++s<a;)u[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=r(u),n(t,this,c)}}},292:(t,e,r)=>{var n=r(7786),o=r(4259);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},5639:(t,e,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},5514:(t,e,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=s},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5564:(t,e,r)=>{var n=r(1078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;t.exports=u},1609:(t,e,r)=>{var n=r(280),o=r(4160),i=r(5694),s=r(1469),a=r(8612),u=r(4144),c=r(5726),l=r(6719),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,r)=>{var n=r(5588),o=r(1717),i=r(1167),s=i&&i.isMap,a=s?o(s):n;t.exports=a},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,r)=>{var n=r(4239),o=r(5924),i=r(7005),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},2928:(t,e,r)=>{var n=r(9221),o=r(1717),i=r(1167),s=i&&i.isSet,a=s?o(s):n;t.exports=a},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},1704:(t,e,r)=>{var n=r(4636),o=r(313),i=r(8612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,r)=>{var n=r(9932),o=r(7206),i=r(9199),s=r(1469);t.exports=function(t,e){return(s(t)?n:i)(t,o(e,3))}},6604:(t,e,r)=>{var n=r(9465),o=r(7816),i=r(7206);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8306:(t,e,r)=>{var n=r(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},308:t=>{t.exports=function(){}},7557:(t,e,r)=>{var n=r(9932),o=r(5990),i=r(7406),s=r(1811),a=r(8363),u=r(696),c=r(9021),l=r(6904),p=c((function(t,e){var r={};if(null==t)return r;var c=!1;e=n(e,(function(e){return e=s(e,t),c||(c=e.length>1),e})),a(t,l(t),r),c&&(r=o(r,7,u));for(var p=e.length;p--;)i(r,e[p]);return r}));t.exports=p},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),s=r(327);t.exports=function(t){return i(t)?n(s(t)):o(t)}},6579:(t,e,r)=>{var n=r(2549),o=r(5865),i=r(7206),s=r(107),a=r(1469);t.exports=function(t,e,r){var u=a(t)?n:s,c=arguments.length<3;return u(t,i(e,4),r,c,o)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},7185:(t,e,r)=>{var n=r(5652);t.exports=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?n(t,void 0,e):[]}},9271:function(t,e){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(t){return t&&"[object RegExp]"===e.call(t)}function o(t){return t&&"object"==typeof t&&!n(t)&&!Array.isArray(t)}function i(t){return"("+t+")"}function s(t){return t.length?"(?:"+t.map((function(t){return"(?:"+t+")"})).join("|")+")":"(?!)"}function a(t){if("string"==typeof t)return"(?:"+(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(n(t)){if(t.ignoreCase)throw new Error("RegExp /i flag not allowed");if(t.global)throw new Error("RegExp /g flag is implied");if(t.sticky)throw new Error("RegExp /y flag is implied");if(t.multiline)throw new Error("RegExp /m flag is implied");return t.source}throw new Error("Not a pattern: "+t)}function u(e,r){if(o(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var i={defaultType:e,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in r)t.call(r,s)&&(i[s]=r[s]);if("string"==typeof i.type&&e!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+e+"')");var a=i.match;return i.match=Array.isArray(a)?a:a?[a]:[],i.match.sort((function(t,e){return n(t)&&n(e)?0:n(e)?-1:n(t)?1:e.length-t.length})),i}function c(t){return Array.isArray(t)?function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n.include)for(var o=[].concat(n.include),i=0;i<o.length;i++)e.push({include:o[i]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));e.push(u(n.type,n))}}return e}(t):function(t){for(var e=Object.getOwnPropertyNames(t),r=[],n=0;n<e.length;n++){var i=e[n],s=t[i],a=[].concat(s);if("include"!==i){var c=[];a.forEach((function(t){o(t)?(c.length&&r.push(u(i,c)),r.push(u(i,t)),c=[]):c.push(t)})),c.length&&r.push(u(i,c))}else for(var l=0;l<a.length;l++)r.push({include:a[l]})}return r}(t)}var l=u("error",{lineBreaks:!0,shouldThrow:!0});function p(t,e){for(var o=null,u=Object.create(null),c=!0,p=null,f=[],h=[],y=0;y<t.length;y++)t[y].fallback&&(c=!1);for(y=0;y<t.length;y++){var v=t[y];if(v.include)throw new Error("Inheritance is not allowed in stateless lexers");if(v.error||v.fallback){if(o)throw!v.fallback==!o.fallback?new Error("Multiple "+(v.fallback?"fallback":"error")+" rules not allowed (for token '"+v.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+v.defaultType+"')");o=v}var d=v.match.slice();if(c)for(;d.length&&"string"==typeof d[0]&&1===d[0].length;)u[d.shift().charCodeAt(0)]=v;if(v.pop||v.push||v.next){if(!e)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+v.defaultType+"')");if(v.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+v.defaultType+"')")}if(0!==d.length){c=!1,f.push(v);for(var b=0;b<d.length;b++){var m=d[b];if(n(m))if(null===p)p=m.unicode;else if(p!==m.unicode&&!1===v.fallback)throw new Error("If one rule is /u then all must be")}var g=s(d.map(a)),x=new RegExp(g);if(x.test(""))throw new Error("RegExp matches empty string: "+x);if(new RegExp("|"+g).exec("").length-1>0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: … ) instead");if(!v.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);h.push(i(g))}}var _=o&&o.fallback,w=r&&!_?"ym":"gm",j=r||_?"":"|";return!0===p&&(w+="u"),{regexp:new RegExp(s(h)+j,w),groups:f,fast:u,error:o||l}}function f(t,e,r){var n=t&&(t.push||t.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+t.defaultType+"' of state '"+e+"')");if(t&&t.pop&&1!=+t.pop)throw new Error("pop must be 1 (in token '"+t.defaultType+"' of state '"+e+"')")}var h=function(t,e){this.startState=e,this.states=t,this.buffer="",this.stack=[],this.reset()};h.prototype.reset=function(t,e){return this.buffer=t||"",this.index=0,this.line=e?e.line:1,this.col=e?e.col:1,this.queuedToken=e?e.queuedToken:null,this.queuedThrow=e?e.queuedThrow:null,this.setState(e?e.state:this.startState),this.stack=e&&e.stack?e.stack.slice():[],this},h.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},h.prototype.setState=function(t){if(t&&this.state!==t){this.state=t;var e=this.states[t];this.groups=e.groups,this.error=e.error,this.re=e.regexp,this.fast=e.fast}},h.prototype.popState=function(){this.setState(this.stack.pop())},h.prototype.pushState=function(t){this.stack.push(this.state),this.setState(t)};var y=r?function(t,e){return t.exec(e)}:function(t,e){var r=t.exec(e);return 0===r[0].length?null:r};function v(){return this.value}if(h.prototype._getGroup=function(t){for(var e=this.groups.length,r=0;r<e;r++)if(void 0!==t[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},h.prototype.next=function(){var t=this.index;if(this.queuedGroup){var e=this._token(this.queuedGroup,this.queuedText,t);return this.queuedGroup=null,this.queuedText="",e}var r=this.buffer;if(t!==r.length){if(s=this.fast[r.charCodeAt(t)])return this._token(s,r.charAt(t),t);var n=this.re;n.lastIndex=t;var o=y(n,r),i=this.error;if(null==o)return this._token(i,r.slice(t,r.length),t);var s=this._getGroup(o),a=o[0];return i.fallback&&o.index!==t?(this.queuedGroup=s,this.queuedText=a,this._token(i,r.slice(t,o.index),t)):this._token(s,a,t)}},h.prototype._token=function(t,e,r){var n=0;if(t.lineBreaks){var o=/\n/g,i=1;if("\n"===e)n=1;else for(;o.exec(e);)n++,i=o.lastIndex}var s={type:"function"==typeof t.type&&t.type(e)||t.defaultType,value:"function"==typeof t.value?t.value(e):e,text:e,toString:v,offset:r,lineBreaks:n,line:this.line,col:this.col},a=e.length;if(this.index+=a,this.line+=n,0!==n?this.col=a-i+1:this.col+=a,t.shouldThrow)throw new Error(this.formatError(s,"invalid syntax"));return t.pop?this.popState():t.push?this.pushState(t.push):t.next&&this.setState(t.next),s},"undefined"!=typeof Symbol&&Symbol.iterator){var d=function(t){this.lexer=t};d.prototype.next=function(){var t=this.lexer.next();return{value:t,done:!t}},d.prototype[Symbol.iterator]=function(){return this},h.prototype[Symbol.iterator]=function(){return new d(this)}}return h.prototype.formatError=function(t,e){if(null==t){var r=this.buffer.slice(this.index);t={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(0,t.offset-t.col+1),o=t.lineBreaks?t.text.indexOf("\n"):t.text.length,i=this.buffer.substring(n,t.offset+o);return e+=" at line "+t.line+" col "+t.col+":\n\n",(e+=" "+i+"\n")+" "+Array(t.col).join(" ")+"^"},h.prototype.clone=function(){return new h(this.states,this.state)},h.prototype.has=function(t){return!0},{compile:function(t){var e=p(c(t));return new h({start:e},"start")},states:function(t,e){var r=t.$all?c(t.$all):[];delete t.$all;var n=Object.getOwnPropertyNames(t);e||(e=n[0]);for(var o=Object.create(null),i=0;i<n.length;i++)o[g=n[i]]=c(t[g]).concat(r);for(i=0;i<n.length;i++)for(var s=o[g=n[i]],a=Object.create(null),u=0;u<s.length;u++){var l=s[u];if(l.include){var y=[u,1];if(l.include!==g&&!a[l.include]){a[l.include]=!0;var v=o[l.include];if(!v)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+g+"')");for(var d=0;d<v.length;d++){var b=v[d];-1===s.indexOf(b)&&y.push(b)}}s.splice.apply(s,y),u--}}var m=Object.create(null);for(i=0;i<n.length;i++){var g;m[g=n[i]]=p(o[g],!0)}for(i=0;i<n.length;i++){var x=n[i],_=m[x],w=_.groups;for(u=0;u<w.length;u++)f(w[u],x,m);var j=Object.getOwnPropertyNames(_.fast);for(u=0;u<j.length;u++)f(_.fast[j[u]],x,m)}return new h(m,e)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(t){for(var e=Object.create(null),r=Object.create(null),n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var i=n[o],s=t[i];(Array.isArray(s)?s:[s]).forEach((function(t){if((r[t.length]=r[t.length]||[]).push(t),"string"!=typeof t)throw new Error("keyword must be string (in keyword '"+i+"')");e[t]=i}))}function a(t){return JSON.stringify(t)}var u="";for(var c in u+="switch (value.length) {\n",r){var l=r[c];u+="case "+c+":\n",u+="switch (value) {\n",l.forEach((function(t){var r=e[t];u+="case "+a(t)+": return "+a(r)+"\n"})),u+="}\n"}return u+="}\n",Function("value",u)}}})?r.apply(e,[]):r)||(t.exports=n)},9654:function(t){var e;e=function(){function t(e,r,n){return this.id=++t.highestId,this.name=e,this.symbols=r,this.postprocess=n,this}function e(t,e,r,n){this.rule=t,this.dot=e,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===t.symbols.length}function r(t,e){this.grammar=t,this.index=e,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(t,e){this.rules=t,this.start=e||this.rules[0].name;var r=this.byName={};this.rules.forEach((function(t){r.hasOwnProperty(t.name)||(r[t.name]=[]),r[t.name].push(t)}))}function o(){this.reset("")}function i(t,e,i){if(t instanceof n){var s=t;i=e}else s=n.fromCompiled(t,e);for(var a in this.grammar=s,this.options={keepHistory:!1,lexer:s.lexer||new o},i||{})this.options[a]=i[a];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(s,0);this.table=[u],u.wants[s.start]=[],u.predict(s.start),u.process(),this.current=0}function s(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return t.toString();if(t.type)return"%"+t.type;if(t.test)return"<"+String(t.test)+">";throw new Error("Unknown symbol type: "+t)}}return t.highestId=0,t.prototype.toString=function(t){var e=void 0===t?this.symbols.map(s).join(" "):this.symbols.slice(0,t).map(s).join(" ")+" ● "+this.symbols.slice(t).map(s).join(" ");return this.name+" → "+e},e.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},e.prototype.nextState=function(t){var r=new e(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=t,r.isComplete&&(r.data=r.build(),r.right=void 0),r},e.prototype.build=function(){var t=[],e=this;do{t.push(e.right.data),e=e.left}while(e.left);return t.reverse(),t},e.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(t){for(var e=this.states,r=this.wants,n=this.completed,o=0;o<e.length;o++){var s=e[o];if(s.isComplete){if(s.finish(),s.data!==i.fail){for(var a=s.wantedBy,u=a.length;u--;){var c=a[u];this.complete(c,s)}if(s.reference===this.index){var l=s.rule.name;(this.completed[l]=this.completed[l]||[]).push(s)}}}else{if("string"!=typeof(l=s.rule.symbols[s.dot])){this.scannable.push(s);continue}if(r[l]){if(r[l].push(s),n.hasOwnProperty(l)){var p=n[l];for(u=0;u<p.length;u++){var f=p[u];this.complete(s,f)}}}else r[l]=[s],this.predict(l)}}},r.prototype.predict=function(t){for(var r=this.grammar.byName[t]||[],n=0;n<r.length;n++){var o=r[n],i=this.wants[t],s=new e(o,0,this.index,i);this.states.push(s)}},r.prototype.complete=function(t,e){var r=t.nextState(e);this.states.push(r)},n.fromCompiled=function(e,r){var o=e.Lexer;e.ParserStart&&(r=e.ParserStart,e=e.ParserRules);var i=new n(e=e.map((function(e){return new t(e.name,e.symbols,e.postprocess)})),r);return i.lexer=o,i},o.prototype.reset=function(t,e){this.buffer=t,this.index=0,this.line=e?e.line:1,this.lastLineBreak=e?-e.col:0},o.prototype.next=function(){if(this.index<this.buffer.length){var t=this.buffer[this.index++];return"\n"===t&&(this.line+=1,this.lastLineBreak=this.index),{value:t}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(t,e){var r=this.buffer;if("string"==typeof r){var n=r.split("\n").slice(Math.max(0,this.line-5),this.line),o=r.indexOf("\n",this.index);-1===o&&(o=r.length);var i=this.index-this.lastLineBreak,s=String(this.line).length;return e+=" at line "+this.line+" col "+i+":\n\n",(e+=n.map((function(t,e){return a(this.line-n.length+e+1,s)+" "+t}),this).join("\n"))+"\n"+a("",s+i)+"^\n"}return e+" at index "+(this.index-1);function a(t,e){var r=String(t);return Array(e-r.length+1).join(" ")+r}},i.fail={},i.prototype.feed=function(t){var e,n=this.lexer;for(n.reset(t,this.lexerState);;){try{if(!(e=n.next()))break}catch(t){var i=new r(this.grammar,this.current+1);throw this.table.push(i),(u=new Error(this.reportLexerError(t))).offset=this.current,u.token=t.token,u}var s=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var a=this.current+1;i=new r(this.grammar,a),this.table.push(i);for(var u,c=void 0!==e.text?e.text:e.value,l=n.constructor===o?e.value:e,p=s.scannable,f=p.length;f--;){var h=p[f],y=h.rule.symbols[h.dot];if(y.test?y.test(l):y.type?y.type===e.type:y.literal===c){var v=h.nextState({data:l,token:e,isToken:!0,reference:a-1});i.states.push(v)}}if(i.process(),0===i.states.length)throw(u=new Error(this.reportError(e))).offset=this.current,u.token=e,u;this.options.keepHistory&&(s.lexerState=n.save()),this.current++}return s&&(this.lexerState=n.save()),this.results=this.finish(),this},i.prototype.reportLexerError=function(t){var e,r,n=t.token;return n?(e="input "+JSON.stringify(n.text[0])+" (lexer error)",r=this.lexer.formatError(n,"Syntax error")):(e="input (lexer error)",r=t.message),this.reportErrorCommon(r,e)},i.prototype.reportError=function(t){var e=(t.type?t.type+" token: ":"")+JSON.stringify(void 0!==t.value?t.value:t),r=this.lexer.formatError(t,"Syntax error");return this.reportErrorCommon(r,e)},i.prototype.reportErrorCommon=function(t,e){var r=[];r.push(t);var n=this.table.length-2,o=this.table[n],i=o.states.filter((function(t){var e=t.rule.symbols[t.dot];return e&&"string"!=typeof e}));return 0===i.length?(r.push("Unexpected "+e+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(o.states,r)):(r.push("Unexpected "+e+". Instead, I was expecting to see one of the following:\n"),i.map((function(t){return this.buildFirstStateStack(t,[])||[t]}),this).forEach((function(t){var e=t[0],n=e.rule.symbols[e.dot],o=this.getSymbolDisplay(n);r.push("A "+o+" based on:"),this.displayStateStack(t,r)}),this)),r.push(""),r.join("\n")},i.prototype.displayStateStack=function(t,e){for(var r,n=0,o=0;o<t.length;o++){var i=t[o],s=i.rule.toString(i.dot);s===r?n++:(n>0&&e.push(" ^ "+n+" more lines identical to this"),n=0,e.push(" "+s)),r=s}},i.prototype.getSymbolDisplay=function(t){return function(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return"character matching "+t;if(t.type)return t.type+" token";if(t.test)return"token matching "+String(t.test);throw new Error("Unknown symbol type: "+t)}}(t)},i.prototype.buildFirstStateStack=function(t,e){if(-1!==e.indexOf(t))return null;if(0===t.wantedBy.length)return[t];var r=t.wantedBy[0],n=[t].concat(e),o=this.buildFirstStateStack(r,n);return null===o?null:[t].concat(o)},i.prototype.save=function(){var t=this.table[this.current];return t.lexerState=this.lexerState,t},i.prototype.restore=function(t){var e=t.index;this.current=e,this.table[e]=t,this.table.splice(e+1),this.lexerState=t.lexerState,this.results=this.finish()},i.prototype.rewind=function(t){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[t])},i.prototype.finish=function(){var t=[],e=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(r){r.rule.name===e&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&t.push(r)})),t.map((function(t){return t.data}))},{Parser:i,Grammar:n,Rule:t}},t.exports?t.exports=e():this.nearley=e()}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{parseBooleanExpression:()=>y,parseExpression:()=>v,parseMathsExpression:()=>l});var t=r(7185),e=r.n(t),o=r(8446),i=r.n(o),s=r(9654),a=r(1647),u=r.n(a),c=s.Grammar.fromCompiled(u());function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(c),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var p=r(8326),f=r.n(p),h=s.Grammar.fromCompiled(f());function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(h),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var v=l})(),n})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["inequality-grammar"]=e():t["inequality-grammar"]=e()}(self,(()=>(()=>{var t={8326:(t,e,r)=>{!function(){function e(t){return t[0]}var n=i(r(361)),o=(i(r(1609)),i(r(8446)),i(r(5161)),i(r(6604)),i(r(7557)),i(r(6579)),r(353));function i(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=null;try{c=window}catch(t){c={innerWidth:800,innerHeight:600}}var l=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]),i=(0,o._findRightmost)(e),s="";switch(t[2].toLowerCase()){case"AND":case"and":case"&":case"∧":case".":s="and";break;case"OR":case"or":case"|":case"∨":case"v":case"+":s="or";break;case"XOR":case"xor":case"^":case"⊻":s="xor";break;default:s=""}return i.children.right={type:"LogicBinaryOperation",properties:{operation:s},children:{right:r}},e},p=function(t){return{type:"LogicNot",children:{argument:t[2]}}},f={Lexer:void 0,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:c.innerWidth/4,y:c.innerHeight/3},e.expression={latex:"",python:""},(0,o._simplify)(e)}},{name:"main",symbols:["_","AS","_",{literal:"="},"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),i={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,o._findRightmost)(e).children.right=i,a(a({},e=(0,o._simplify)(e)),{},{position:{x:c.innerWidth/4,y:c.innerHeight/3},expression:{latex:"",python:""}})}},{name:"AS$string$1",symbols:[{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$1","_","MD"],postprocess:l},{name:"AS$string$2",symbols:[{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$2","_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"|"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"∨"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"v"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"+"},"_","MD"],postprocess:l},{name:"AS",symbols:["MD"],postprocess:e},{name:"MD$string$1",symbols:[{literal:"A"},{literal:"N"},{literal:"D"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$1","_","XOR"],postprocess:l},{name:"MD$string$2",symbols:[{literal:"a"},{literal:"n"},{literal:"d"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$2","_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"&"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"∧"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"."},"_","XOR"],postprocess:l},{name:"MD",symbols:["XOR"],postprocess:e},{name:"XOR$string$1",symbols:[{literal:"X"},{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$1","_","P"],postprocess:l},{name:"XOR$string$2",symbols:[{literal:"x"},{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$2","_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"^"},"_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"⊻"},"_","P"],postprocess:l},{name:"XOR",symbols:["P"],postprocess:e},{name:"P",symbols:[{literal:"("},"_","AS","_",{literal:")"}],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:t[2]}}}},{name:"P",symbols:["N"],postprocess:e},{name:"N$string$1",symbols:[{literal:"N"},{literal:"O"},{literal:"T"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$1","_","P"],postprocess:p},{name:"N$string$2",symbols:[{literal:"n"},{literal:"o"},{literal:"t"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$2","_","P"],postprocess:p},{name:"N",symbols:[{literal:"!"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"~"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"¬"},"_","P"],postprocess:p},{name:"N",symbols:["L"],postprocess:e},{name:"L$string$1",symbols:[{literal:"t"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$1"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$2",symbols:[{literal:"T"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$2"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"T"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"1"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$3",symbols:[{literal:"f"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$3"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L$string$4",symbols:[{literal:"F"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$4"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"F"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"0"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[/[A-EG-SU-Z]/],postprocess:function(t){return{type:"Symbol",properties:{letter:t[0]},children:{}}}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(t){return null}}],ParserStart:"main"};void 0!==t.exports?t.exports=f:window.grammar=f}()},1647:(t,e,r)=>{!function(){function e(t){return t[0]}var n=c(r(361)),o=(c(r(1609)),c(r(8446))),i=c(r(5161)),s=c(r(7557)),a=c(r(6579)),u=r(353);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",varepsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω"},d=r(9271).compile({Int:/[0-9]+/,IdMod:/[a-zA-ZΑ-Ωα-ω]+_(?:prime)/,Id:{match:/[a-zA-ZΑ-Ωα-ω]+(?:_[a-zA-Z0-9]+)?/,type:function(t){for(var e=new Map,r=Object.getOwnPropertyNames(t),n=function(n){var o=r[n],i=t[o];(Array.isArray(i)?i:[i]).forEach((function(t){if("string"!=typeof t)throw new Error("keyword must be string (in keyword '"+o+"')");e.set(t,o)}))},o=0;o<r.length;o++)n(o);return function(t){return e.get(t)}}({TrigFn:["cos","sin","tan","cosec","sec","cot","cosh","sinh","tanh","cosech","sech","coth","arccos","arcsin","arctan","arccosec","arcsec","arccot","arccosh","arcsinh","arctanh","arccosech","arcsech","arccoth","acos","asin","atan","acosec","asec","acot","acosh","asinh","atanh","acosech","asech","acoth"],Fn:["ln","abs","factorial"],Log:["log"],Radix:["sqrt"],Derivative:["diff","Derivative"]})},Rel:["=","==","<","<=",">",">="],Factorial:["!"],PlusMinus:["+","-","±","-","-"],Pow:["**","^"],Mul:["*","×"],Div:["/","÷"],Lparen:"(",Rparen:")",Comma:",",c:/./}),b=null;try{b=window}catch(t){b={innerWidth:800,innerHeight:600}}var m=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=new RegExp("^(?:a|arc)([^r].+)$"),i=t.text,s=!1;o.test(i)&&(i=o.exec(i)[1],s=1);var a,u=(0,n.default)(e),c=(0,n.default)(r);if(a=null===c?{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{argument:u}}:{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{superscript:c,argument:u}},s)if(a.children.superscript){var l=(0,n.default)(a.children.superscript),p=(0,n.default)(a);p.children.superscript={type:"Num",properties:{significand:"-1"},children:{}},a={type:"Brackets",properties:{type:"round"},children:{argument:p,superscript:l}}}else a.children.superscript={type:"Num",properties:{significand:"-1"},children:{}};return a},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"Fn",properties:{name:"log",allowSubscript:!0,innerSuperscript:!1},children:{argument:t}};return null!==e?"Num"!==e.type&&"Symbol"!==e.type||(r.children.subscript=(0,n.default)(e)):r.children.subscript={type:"Num",properties:{significand:"10"},children:{}},r},x=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]);return(0,u._findRightmost)(e).children.right=r,e},_=function(t){var e=(0,i.default)(t.split(""),(function(t){return/[0-9]/.test(t)?w([{text:t}]):{type:"Symbol",properties:{letter:t},children:{}}}));return(0,a.default)(e,(function(t,e){return e.children.right=t,e}))},w=function(t){return{type:"Num",properties:{significand:t[0].text},children:{}}},j={Lexer:d,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:b.innerWidth/4,y:b.innerHeight/3},e.expression={latex:"",python:""},(0,u._simplify)(e)}},{name:"main",symbols:["_","AS","_",d.has("Rel")?{type:"Rel"}:Rel,"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),o={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,u._findRightmost)(e).children.right=o,h(h({},e=(0,u._simplify)(e)),{},{position:{x:b.innerWidth/4,y:b.innerHeight/3},expression:{latex:"",python:""}})}},{name:"P",symbols:[d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:(0,n.default)(t[2])}}}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[3],null)}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Pow")?{type:"Pow"}:Pow,"NUM",d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[5],t[2])}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen,d.has("Pow")?{type:"Pow"}:Pow,"NUM"],postprocess:function(t){return m(t[0],t[3],t[7])}},{name:"P",symbols:[d.has("Derivative")?{type:"Derivative"}:Derivative,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","ARGS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t[3]}},r=t[7].reduce((function(t,e){if(0==t.length)return[{object:e,order:1}];var r=t[t.length-1];return"Num"===e.type?(r.order=parseInt(e.properties.significand),[].concat(l(t.slice(0,t.length-1)),[r])):(0,o.default)(e,r.object)?(r.order=r.order+1,[].concat(l(t.slice(0,t.length-1)),[r])):[].concat(l(t),[{object:e,order:1}])}),[]).map((function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t.object}};return t.order>1&&(e.children.order={type:"Num",properties:{significand:"".concat(t.order)},children:{}}),e})),n=r.reduce((function(t,e){return t+parseInt(e.children.order?e.children.order.properties.significand:"1")}),0);return n>1&&(e.children.order={type:"Num",properties:{significand:"".concat(n)},children:{}}),{type:"Derivative",children:{numerator:e,denominator:(0,a.default)(r,(function(t,e){return e.children.right=t,e}))}}}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","VAR","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","NUM","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Radix")?{type:"Radix"}:Radix,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Radix",children:{argument:(0,n.default)(t[3])}}}},{name:"P",symbols:[d.has("Fn")?{type:"Fn"}:Fn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e=(0,n.default)(t[3]);return"abs"===t[0].text?{type:"AbsoluteValue",children:{argument:e}}:"factorial"===t[0].text?{type:"UnaryOperation",properties:{type:"postfix",operation:"!"},children:{argument:e}}:{type:"Fn",properties:{name:t[0].text,allowSubscript:"ln"!==t[0].text,innerSuperscript:!1},children:{argument:e}}}},{name:"P",symbols:["VAR"],postprocess:e},{name:"P",symbols:["NUM"],postprocess:e},{name:"P",symbols:[d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","P"],postprocess:function(t){return{type:"BinaryOperation",properties:{operation:t[0].text},children:{right:t[2]}}}},{name:"P",symbols:["P","_",d.has("Factorial")?{type:"Factorial"}:Factorial],postprocess:function(t){return{type:"UnaryOperation",properties:{type:"postfix",operation:t[2].text},children:{argument:t[0]}}}},{name:"ARGS",symbols:["AS"],postprocess:function(t){return[t[0]]}},{name:"ARGS",symbols:["ARGS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","AS"],postprocess:function(t){return t[0].concat(t[4])}},{name:"E",symbols:["P","_",d.has("Pow")?{type:"Pow"}:Pow,"_","E"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]),o=(0,u._findRightmost)(e);if("BinaryOperation"===r.type){var i=(0,n.default)(r.children.right.children.right);i&&(e.children.right=i,r.children.right.children=(0,s.default)(r.children.right.children,"right"))}else{var a=(0,n.default)(r.children.right);a&&(o.children.right=a,r.children=(0,s.default)(r.children,"right"))}if(!(["Fn","Log","TrigFn"].indexOf(e.type)>-1))return o.children.superscript=r,e;switch(e.properties.name){case"ln":case"log":return{type:"Brackets",properties:{type:"round"},children:{argument:e,superscript:r}};default:return o.children.superscript=r,e}}},{name:"E",symbols:["P"],postprocess:e},{name:"MD",symbols:["MD","_",d.has("Mul")?{type:"Mul"}:Mul,"_","E"],postprocess:x},{name:"MD",symbols:["MD","_",d.has("Div")?{type:"Div"}:Div,"_","E"],postprocess:function(t){var e=null;"BinaryOperation"===t[4].type?(e=(0,n.default)(t[4].children.right.children.right),t[4].children.right.children=(0,s.default)(t[4].children.right.children,"right")):(e=(0,n.default)(t[4].children.right),t[4].children=(0,s.default)(t[4].children,"right"));var r=(0,n.default)(t[0]),o=(0,u._rightChainToArray)(r).map((function(t){return t.children=(0,s.default)(t.children,"right"),t})),i={type:"Fraction",children:{numerator:o.pop(),denominator:(0,n.default)(t[4])}};return e&&(i.children.right=e),o.length>0?(o[o.length-1].children.right=i,o.reduceRight((function(t,e){return e.children.right=t,e}))):i}},{name:"MD",symbols:["MD","_","E"],postprocess:x},{name:"MD",symbols:["E"],postprocess:e},{name:"AS",symbols:["AS","_",d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","MD"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]);return(0,u._findRightmost)(e).children.right={type:"BinaryOperation",properties:{operation:t[2].text},children:{right:r}},e}},{name:"AS",symbols:["MD"],postprocess:e},{name:"VAR",symbols:[d.has("Id")?{type:"Id"}:Id],postprocess:function t(e){var r=Object.keys(v),n=e[0].text.split("_"),o=["[a-zA-Z]"].concat(r).join("|"),i=new RegExp("^((?:d|D)(?:elta)?)(".concat(o,")$")),s=n[0].match(i);if(s)return{type:"Differential",properties:{letter:v[s[1]]||s[1]},children:{argument:t([{text:e[0].text.substring(s[1].length)}])}};r.indexOf(n[0])>-1&&(n[0]=v[n[0]]);var a=_(n[0]);if(n.length>1){r.indexOf(n[1])>-1&&(n[1]=v[n[1]]);var c=_(n[1]);(0,u._findRightmost)(a).children.subscript=c}return a}},{name:"VAR",symbols:[d.has("IdMod")?{type:"IdMod"}:IdMod],postprocess:function(t){var e=Object.keys(v),r=t[0].text.split("_");e.indexOf(r[0])>-1&&(r[0]=v[r[0]]);var n=_(r[0]);return(0,u._findRightmost)(n).properties.modifier=r[1],n}},{name:"NUM",symbols:[d.has("Int")?{type:"Int"}:Int],postprocess:w},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==t.exports?t.exports=j:window.grammar=j}()},353:(t,e,r)=>{"use strict";r.r(e),r.d(e,{_findRightmost:()=>p,_rightChainToArray:()=>l,_safeToRemove:()=>f,_simplify:()=>h}),r(361);var n=r(1609),o=r.n(n),i=(r(8446),r(5161),r(6604)),s=r.n(i),a=r(7557),u=r.n(a);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(6579);var l=function(t){for(var e=t,r=[e];e.children.right;)e=e.children.right,r=[].concat(function(t){if(Array.isArray(t))return c(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]);var n;return r},p=function(t){for(var e=t;e.children.right;)e=e.children.right;return e},f=function(t){return t&&"Brackets"===t.type&&o()(u()(t.children,"argument"))},h=function t(e){if(e.children=s()(e.children,(function(e,r,n){return t(e)})),"Brackets"===e.type||"Fn"===e.type){var r=e.children.argument;f(r)&&(e.children.argument=r.children.argument)}if("Fraction"===e.type){var n=e.children.numerator;f(n)&&(e.children.numerator=n.children.argument);var o=e.children.denominator;f(o)&&(e.children.denominator=o.children.argument)}var i=e.children.superscript;return f(i)&&(e.children.superscript=i.children.argument),e}},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),s=r(1327),a=r(1866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,r)=>{var n=r(7040),o=r(4125),i=r(2117),s=r(7518),a=r(4705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),s=r(9916),a=r(5265);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},6384:(t,e,r)=>{var n=r(8407),o=r(7465),i=r(3779),s=r(7599),a=r(4758),u=r(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7412:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},4963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var s=t[r];e(s,r,t)&&(i[o++]=s)}return i}},7443:(t,e,r)=>{var n=r(2118);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},4636:(t,e,r)=>{var n=r(2545),o=r(5694),i=r(1469),s=r(4144),a=r(5776),u=r(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),p=!r&&!l&&s(t),f=!r&&!l&&!p&&u(t),h=r||l||p||f,y=h?n(t.length,String):[],v=y.length;for(var d in t)!e&&!c.call(t,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||f&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,v))||y.push(d);return y}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2549:t=>{t.exports=function(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}},2908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4865:(t,e,r)=>{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];i.call(t,e)&&o(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:(t,e,r)=>{var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:(t,e,r)=>{var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:(t,e,r)=>{var n=r(6384),o=r(7412),i=r(4865),s=r(4037),a=r(3886),u=r(4626),c=r(278),l=r(8805),p=r(1911),f=r(8234),h=r(6904),y=r(4160),v=r(3824),d=r(9148),b=r(8517),m=r(1469),g=r(4144),x=r(6688),_=r(3218),w=r(2928),j=r(3674),O=r(1704),S="[object Arguments]",A="[object Function]",P="[object Object]",k={};k[S]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[A]=k["[object WeakMap]"]=!1,t.exports=function t(e,r,R,E,L,$){var M,D=1&r,T=2&r,F=4&r;if(R&&(M=L?R(e,E,L,$):R(e)),void 0!==M)return M;if(!_(e))return e;var N=m(e);if(N){if(M=v(e),!D)return c(e,M)}else{var I=y(e),B=I==A||"[object GeneratorFunction]"==I;if(g(e))return u(e,D);if(I==P||I==S||B&&!L){if(M=T||B?{}:b(e),!D)return T?p(e,a(M,e)):l(e,s(M,e))}else{if(!k[I])return L?e:{};M=d(e,I,D)}}$||($=new n);var C=$.get(e);if(C)return C;$.set(e,M),w(e)?e.forEach((function(n){M.add(t(n,r,R,n,e,$))})):x(e)&&e.forEach((function(n,o){M.set(o,t(n,r,R,o,e,$))}));var z=N?void 0:(F?T?h:f:T?O:j)(e);return o(z||e,(function(n,o){z&&(n=e[o=n]),i(M,o,t(n,r,R,o,e,$))})),M}},3118:(t,e,r)=>{var n=r(3218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},9881:(t,e,r)=>{var n=r(7816),o=r(9291)(n);t.exports=o},5865:(t,e,r)=>{var n=r(4370),o=r(9291)(n,!0);t.exports=o},1848:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},1078:(t,e,r)=>{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,s,a){var u=-1,c=e.length;for(i||(i=o),a||(a=[]);++u<c;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,s,a):n(a,l):s||(a[a.length]=l)}return a}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},4370:(t,e,r)=>{var n=r(7473),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7473:(t,e,r)=>{var n=r(5063)(!0);t.exports=n},7786:(t,e,r)=>{var n=r(1811),o=r(327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},8866:(t,e,r)=>{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,s,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,s,t,a))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),s=r(6096),a=r(4160),u=r(1469),c=r(4144),l=r(6719),p="[object Arguments]",f="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=u(t),g=u(e),x=m?f:a(t),_=g?f:a(e),w=(x=x==p?h:x)==h,j=(_=_==p?h:_)==h,O=x==_;if(O&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(O&&!w)return b||(b=new n),m||l(t)?o(t,e,r,v,d,b):i(t,e,x,r,v,d,b);if(!(1&r)){var S=w&&y.call(t,"__wrapped__"),A=j&&y.call(e,"__wrapped__");if(S||A){var P=S?t.value():t,k=A?e.value():e;return b||(b=new n),d(P,k,r,v,b)}}return!!O&&(b||(b=new n),s(t,e,r,v,d,b))}},5588:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},2958:(t,e,r)=>{var n=r(6384),o=r(939);t.exports=function(t,e,r,i){var s=r.length,a=s,u=!i;if(null==t)return!a;for(t=Object(t);s--;){var c=r[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=r[s])[0],p=t[l],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in t))return!1}else{var h=new n;if(i)var y=i(p,f,l,t,e,h);if(!(void 0===y?o(f,p,3,i,h):y))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),s=r(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:a).test(s(t))}},9221:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[n(t)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),s=r(1469),a=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?s(t)?o(t[0],t[1]):n(t):a(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),o=r(5726),i=r(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},9199:(t,e,r)=>{var n=r(9881),o=r(8612);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),s=r(5403),a=r(9162),u=r(2634),c=r(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(r){var s=o(r,t);return void 0===s&&s===e?i(r,t):n(e,s,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},107:t=>{t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=s},4259:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},531:(t,e,r)=>{var n=r(2705),o=r(9932),i=r(1469),s=r(3448),a=n?n.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),s=r(4757),a=r(3593),u=r(1814);t.exports=function(t,e,r){var c=-1,l=o,p=t.length,f=!0,h=[],y=h;if(r)f=!1,l=i;else if(p>=200){var v=e?null:a(t);if(v)return u(v);f=!1,l=s,y=new n}else y=e?[]:h;t:for(;++c<p;){var d=t[c],b=e?e(d):d;if(d=r||0!==d?d:0,f&&b==b){for(var m=y.length;m--;)if(y[m]===b)continue t;e&&y.push(b),h.push(d)}else l(y,b,r)||(y!==h&&y.push(b),h.push(d))}return h}},7406:(t,e,r)=>{var n=r(1811),o=r(928),i=r(292),s=r(327);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[s(o(e))]}},4757:t=>{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),s=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(s(t))}},4318:(t,e,r)=>{var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}},7157:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:(t,e,r)=>{var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},8363:(t,e,r)=>{var n=r(4865),o=r(9465);t.exports=function(t,e,r,i){var s=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),s?o(r,c,l):n(r,c,l)}return r}},8805:(t,e,r)=>{var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:(t,e,r)=>{var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,r)=>{var n=r(8612);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,s=e?i:-1,a=Object(r);(e?s--:++s<i)&&!1!==o(a[s],s,a););return r}}},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),s=n(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===r(i[u],u,i))break}return e}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),s=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=s},696:(t,e,r)=>{var n=r(8630);t.exports=function(t){return n(t)?void 0:t}},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,s,a,u){var c=1&r,l=t.length,p=e.length;if(l!=p&&!(c&&p>l))return!1;var f=u.get(t),h=u.get(e);if(f&&h)return f==e&&h==t;var y=-1,v=!0,d=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++y<l;){var b=t[y],m=e[y];if(s)var g=c?s(m,b,y,e,t,u):s(b,m,y,t,e,u);if(void 0!==g){if(g)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||a(b,t,r,s,u)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!a(b,m,r,s,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},8351:(t,e,r)=>{var n=r(2705),o=r(1149),i=r(7813),s=r(7114),a=r(8776),u=r(1814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var y=1&n;if(h||(h=u),t.size!=e.size&&!y)return!1;var v=f.get(t);if(v)return v==e;n|=2,f.set(t,e);var d=s(h(t),h(e),n,c,p,f);return f.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,s,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var p=l;p--;){var f=c[p];if(!(u?f in e:o.call(e,f)))return!1}var h=a.get(t),y=a.get(e);if(h&&y)return h==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var d=u;++p<l;){var b=t[f=c[p]],m=e[f];if(i)var g=u?i(m,b,f,e,t,a):i(b,m,f,t,e,a);if(!(void 0===g?b===m||s(b,m,r,i,a):g)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var x=t.constructor,_=e.constructor;x==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(v=!1)}return a.delete(t),a.delete(e),v}},9021:(t,e,r)=>{var n=r(5564),o=r(5357),i=r(61);t.exports=function(t){return i(o(t,void 0,n),t+"")}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},6904:(t,e,r)=>{var n=r(8866),o=r(1442),i=r(1704);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],s=t[i];e[r]=[i,s,n(s)]}return e}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=s.call(t);return n&&(e?t[a]=r:delete t[a]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},1442:(t,e,r)=>{var n=r(2488),o=r(5924),i=r(9551),s=r(479),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:s;t.exports=a},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),s=r(8525),a=r(577),u=r(4239),c=r(346),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",y="[object DataView]",v=c(n),d=c(o),b=c(i),m=c(s),g=c(a),x=u;(n&&x(new n(new ArrayBuffer(1)))!=y||o&&x(new o)!=l||i&&x(i.resolve())!=p||s&&x(new s)!=f||a&&x(new a)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return y;case d:return l;case b:return p;case m:return f;case g:return h}return e}),t.exports=x},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),s=r(5776),a=r(1780),u=r(327);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,p=!1;++c<l;){var f=u(e[c]);if(!(p=null!=t&&r(t,f)))break;t=t[f]}return p||++c!=l?p:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(i(t)||o(t))}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:(t,e,r)=>{var n=r(4318),o=r(7157),i=r(3147),s=r(419),a=r(7133);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Symbol]":return s(t)}}},8517:(t,e,r)=>{var n=r(3118),o=r(5924),i=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},5403:(t,e,r)=>{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||s.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o&&n.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,s=-1,a=o(i.length-e,0),u=Array(a);++s<a;)u[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=r(u),n(t,this,c)}}},292:(t,e,r)=>{var n=r(7786),o=r(4259);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},5639:(t,e,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},5514:(t,e,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=s},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5564:(t,e,r)=>{var n=r(1078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;t.exports=u},1609:(t,e,r)=>{var n=r(280),o=r(4160),i=r(5694),s=r(1469),a=r(8612),u=r(4144),c=r(5726),l=r(6719),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,r)=>{var n=r(5588),o=r(1717),i=r(1167),s=i&&i.isMap,a=s?o(s):n;t.exports=a},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,r)=>{var n=r(4239),o=r(5924),i=r(7005),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},2928:(t,e,r)=>{var n=r(9221),o=r(1717),i=r(1167),s=i&&i.isSet,a=s?o(s):n;t.exports=a},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},1704:(t,e,r)=>{var n=r(4636),o=r(313),i=r(8612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,r)=>{var n=r(9932),o=r(7206),i=r(9199),s=r(1469);t.exports=function(t,e){return(s(t)?n:i)(t,o(e,3))}},6604:(t,e,r)=>{var n=r(9465),o=r(7816),i=r(7206);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8306:(t,e,r)=>{var n=r(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},308:t=>{t.exports=function(){}},7557:(t,e,r)=>{var n=r(9932),o=r(5990),i=r(7406),s=r(1811),a=r(8363),u=r(696),c=r(9021),l=r(6904),p=c((function(t,e){var r={};if(null==t)return r;var c=!1;e=n(e,(function(e){return e=s(e,t),c||(c=e.length>1),e})),a(t,l(t),r),c&&(r=o(r,7,u));for(var p=e.length;p--;)i(r,e[p]);return r}));t.exports=p},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),s=r(327);t.exports=function(t){return i(t)?n(s(t)):o(t)}},6579:(t,e,r)=>{var n=r(2549),o=r(5865),i=r(7206),s=r(107),a=r(1469);t.exports=function(t,e,r){var u=a(t)?n:s,c=arguments.length<3;return u(t,i(e,4),r,c,o)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},7185:(t,e,r)=>{var n=r(5652);t.exports=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?n(t,void 0,e):[]}},9271:function(t,e){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(t){return t&&"[object RegExp]"===e.call(t)}function o(t){return t&&"object"==typeof t&&!n(t)&&!Array.isArray(t)}function i(t){return"("+t+")"}function s(t){return t.length?"(?:"+t.map((function(t){return"(?:"+t+")"})).join("|")+")":"(?!)"}function a(t){if("string"==typeof t)return"(?:"+(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(n(t)){if(t.ignoreCase)throw new Error("RegExp /i flag not allowed");if(t.global)throw new Error("RegExp /g flag is implied");if(t.sticky)throw new Error("RegExp /y flag is implied");if(t.multiline)throw new Error("RegExp /m flag is implied");return t.source}throw new Error("Not a pattern: "+t)}function u(e,r){if(o(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var i={defaultType:e,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in r)t.call(r,s)&&(i[s]=r[s]);if("string"==typeof i.type&&e!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+e+"')");var a=i.match;return i.match=Array.isArray(a)?a:a?[a]:[],i.match.sort((function(t,e){return n(t)&&n(e)?0:n(e)?-1:n(t)?1:e.length-t.length})),i}function c(t){return Array.isArray(t)?function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n.include)for(var o=[].concat(n.include),i=0;i<o.length;i++)e.push({include:o[i]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));e.push(u(n.type,n))}}return e}(t):function(t){for(var e=Object.getOwnPropertyNames(t),r=[],n=0;n<e.length;n++){var i=e[n],s=t[i],a=[].concat(s);if("include"!==i){var c=[];a.forEach((function(t){o(t)?(c.length&&r.push(u(i,c)),r.push(u(i,t)),c=[]):c.push(t)})),c.length&&r.push(u(i,c))}else for(var l=0;l<a.length;l++)r.push({include:a[l]})}return r}(t)}var l=u("error",{lineBreaks:!0,shouldThrow:!0});function p(t,e){for(var o=null,u=Object.create(null),c=!0,p=null,f=[],h=[],y=0;y<t.length;y++)t[y].fallback&&(c=!1);for(y=0;y<t.length;y++){var v=t[y];if(v.include)throw new Error("Inheritance is not allowed in stateless lexers");if(v.error||v.fallback){if(o)throw!v.fallback==!o.fallback?new Error("Multiple "+(v.fallback?"fallback":"error")+" rules not allowed (for token '"+v.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+v.defaultType+"')");o=v}var d=v.match.slice();if(c)for(;d.length&&"string"==typeof d[0]&&1===d[0].length;)u[d.shift().charCodeAt(0)]=v;if(v.pop||v.push||v.next){if(!e)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+v.defaultType+"')");if(v.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+v.defaultType+"')")}if(0!==d.length){c=!1,f.push(v);for(var b=0;b<d.length;b++){var m=d[b];if(n(m))if(null===p)p=m.unicode;else if(p!==m.unicode&&!1===v.fallback)throw new Error("If one rule is /u then all must be")}var g=s(d.map(a)),x=new RegExp(g);if(x.test(""))throw new Error("RegExp matches empty string: "+x);if(new RegExp("|"+g).exec("").length-1>0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: … ) instead");if(!v.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);h.push(i(g))}}var _=o&&o.fallback,w=r&&!_?"ym":"gm",j=r||_?"":"|";return!0===p&&(w+="u"),{regexp:new RegExp(s(h)+j,w),groups:f,fast:u,error:o||l}}function f(t,e,r){var n=t&&(t.push||t.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+t.defaultType+"' of state '"+e+"')");if(t&&t.pop&&1!=+t.pop)throw new Error("pop must be 1 (in token '"+t.defaultType+"' of state '"+e+"')")}var h=function(t,e){this.startState=e,this.states=t,this.buffer="",this.stack=[],this.reset()};h.prototype.reset=function(t,e){return this.buffer=t||"",this.index=0,this.line=e?e.line:1,this.col=e?e.col:1,this.queuedToken=e?e.queuedToken:null,this.queuedThrow=e?e.queuedThrow:null,this.setState(e?e.state:this.startState),this.stack=e&&e.stack?e.stack.slice():[],this},h.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},h.prototype.setState=function(t){if(t&&this.state!==t){this.state=t;var e=this.states[t];this.groups=e.groups,this.error=e.error,this.re=e.regexp,this.fast=e.fast}},h.prototype.popState=function(){this.setState(this.stack.pop())},h.prototype.pushState=function(t){this.stack.push(this.state),this.setState(t)};var y=r?function(t,e){return t.exec(e)}:function(t,e){var r=t.exec(e);return 0===r[0].length?null:r};function v(){return this.value}if(h.prototype._getGroup=function(t){for(var e=this.groups.length,r=0;r<e;r++)if(void 0!==t[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},h.prototype.next=function(){var t=this.index;if(this.queuedGroup){var e=this._token(this.queuedGroup,this.queuedText,t);return this.queuedGroup=null,this.queuedText="",e}var r=this.buffer;if(t!==r.length){if(s=this.fast[r.charCodeAt(t)])return this._token(s,r.charAt(t),t);var n=this.re;n.lastIndex=t;var o=y(n,r),i=this.error;if(null==o)return this._token(i,r.slice(t,r.length),t);var s=this._getGroup(o),a=o[0];return i.fallback&&o.index!==t?(this.queuedGroup=s,this.queuedText=a,this._token(i,r.slice(t,o.index),t)):this._token(s,a,t)}},h.prototype._token=function(t,e,r){var n=0;if(t.lineBreaks){var o=/\n/g,i=1;if("\n"===e)n=1;else for(;o.exec(e);)n++,i=o.lastIndex}var s={type:"function"==typeof t.type&&t.type(e)||t.defaultType,value:"function"==typeof t.value?t.value(e):e,text:e,toString:v,offset:r,lineBreaks:n,line:this.line,col:this.col},a=e.length;if(this.index+=a,this.line+=n,0!==n?this.col=a-i+1:this.col+=a,t.shouldThrow)throw new Error(this.formatError(s,"invalid syntax"));return t.pop?this.popState():t.push?this.pushState(t.push):t.next&&this.setState(t.next),s},"undefined"!=typeof Symbol&&Symbol.iterator){var d=function(t){this.lexer=t};d.prototype.next=function(){var t=this.lexer.next();return{value:t,done:!t}},d.prototype[Symbol.iterator]=function(){return this},h.prototype[Symbol.iterator]=function(){return new d(this)}}return h.prototype.formatError=function(t,e){if(null==t){var r=this.buffer.slice(this.index);t={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(0,t.offset-t.col+1),o=t.lineBreaks?t.text.indexOf("\n"):t.text.length,i=this.buffer.substring(n,t.offset+o);return e+=" at line "+t.line+" col "+t.col+":\n\n",(e+=" "+i+"\n")+" "+Array(t.col).join(" ")+"^"},h.prototype.clone=function(){return new h(this.states,this.state)},h.prototype.has=function(t){return!0},{compile:function(t){var e=p(c(t));return new h({start:e},"start")},states:function(t,e){var r=t.$all?c(t.$all):[];delete t.$all;var n=Object.getOwnPropertyNames(t);e||(e=n[0]);for(var o=Object.create(null),i=0;i<n.length;i++)o[g=n[i]]=c(t[g]).concat(r);for(i=0;i<n.length;i++)for(var s=o[g=n[i]],a=Object.create(null),u=0;u<s.length;u++){var l=s[u];if(l.include){var y=[u,1];if(l.include!==g&&!a[l.include]){a[l.include]=!0;var v=o[l.include];if(!v)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+g+"')");for(var d=0;d<v.length;d++){var b=v[d];-1===s.indexOf(b)&&y.push(b)}}s.splice.apply(s,y),u--}}var m=Object.create(null);for(i=0;i<n.length;i++){var g;m[g=n[i]]=p(o[g],!0)}for(i=0;i<n.length;i++){var x=n[i],_=m[x],w=_.groups;for(u=0;u<w.length;u++)f(w[u],x,m);var j=Object.getOwnPropertyNames(_.fast);for(u=0;u<j.length;u++)f(_.fast[j[u]],x,m)}return new h(m,e)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(t){for(var e=Object.create(null),r=Object.create(null),n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var i=n[o],s=t[i];(Array.isArray(s)?s:[s]).forEach((function(t){if((r[t.length]=r[t.length]||[]).push(t),"string"!=typeof t)throw new Error("keyword must be string (in keyword '"+i+"')");e[t]=i}))}function a(t){return JSON.stringify(t)}var u="";for(var c in u+="switch (value.length) {\n",r){var l=r[c];u+="case "+c+":\n",u+="switch (value) {\n",l.forEach((function(t){var r=e[t];u+="case "+a(t)+": return "+a(r)+"\n"})),u+="}\n"}return u+="}\n",Function("value",u)}}})?r.apply(e,[]):r)||(t.exports=n)},9654:function(t){var e;e=function(){function t(e,r,n){return this.id=++t.highestId,this.name=e,this.symbols=r,this.postprocess=n,this}function e(t,e,r,n){this.rule=t,this.dot=e,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===t.symbols.length}function r(t,e){this.grammar=t,this.index=e,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(t,e){this.rules=t,this.start=e||this.rules[0].name;var r=this.byName={};this.rules.forEach((function(t){r.hasOwnProperty(t.name)||(r[t.name]=[]),r[t.name].push(t)}))}function o(){this.reset("")}function i(t,e,i){if(t instanceof n){var s=t;i=e}else s=n.fromCompiled(t,e);for(var a in this.grammar=s,this.options={keepHistory:!1,lexer:s.lexer||new o},i||{})this.options[a]=i[a];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(s,0);this.table=[u],u.wants[s.start]=[],u.predict(s.start),u.process(),this.current=0}function s(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return t.toString();if(t.type)return"%"+t.type;if(t.test)return"<"+String(t.test)+">";throw new Error("Unknown symbol type: "+t)}}return t.highestId=0,t.prototype.toString=function(t){var e=void 0===t?this.symbols.map(s).join(" "):this.symbols.slice(0,t).map(s).join(" ")+" ● "+this.symbols.slice(t).map(s).join(" ");return this.name+" → "+e},e.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},e.prototype.nextState=function(t){var r=new e(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=t,r.isComplete&&(r.data=r.build(),r.right=void 0),r},e.prototype.build=function(){var t=[],e=this;do{t.push(e.right.data),e=e.left}while(e.left);return t.reverse(),t},e.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(t){for(var e=this.states,r=this.wants,n=this.completed,o=0;o<e.length;o++){var s=e[o];if(s.isComplete){if(s.finish(),s.data!==i.fail){for(var a=s.wantedBy,u=a.length;u--;){var c=a[u];this.complete(c,s)}if(s.reference===this.index){var l=s.rule.name;(this.completed[l]=this.completed[l]||[]).push(s)}}}else{if("string"!=typeof(l=s.rule.symbols[s.dot])){this.scannable.push(s);continue}if(r[l]){if(r[l].push(s),n.hasOwnProperty(l)){var p=n[l];for(u=0;u<p.length;u++){var f=p[u];this.complete(s,f)}}}else r[l]=[s],this.predict(l)}}},r.prototype.predict=function(t){for(var r=this.grammar.byName[t]||[],n=0;n<r.length;n++){var o=r[n],i=this.wants[t],s=new e(o,0,this.index,i);this.states.push(s)}},r.prototype.complete=function(t,e){var r=t.nextState(e);this.states.push(r)},n.fromCompiled=function(e,r){var o=e.Lexer;e.ParserStart&&(r=e.ParserStart,e=e.ParserRules);var i=new n(e=e.map((function(e){return new t(e.name,e.symbols,e.postprocess)})),r);return i.lexer=o,i},o.prototype.reset=function(t,e){this.buffer=t,this.index=0,this.line=e?e.line:1,this.lastLineBreak=e?-e.col:0},o.prototype.next=function(){if(this.index<this.buffer.length){var t=this.buffer[this.index++];return"\n"===t&&(this.line+=1,this.lastLineBreak=this.index),{value:t}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(t,e){var r=this.buffer;if("string"==typeof r){var n=r.split("\n").slice(Math.max(0,this.line-5),this.line),o=r.indexOf("\n",this.index);-1===o&&(o=r.length);var i=this.index-this.lastLineBreak,s=String(this.line).length;return e+=" at line "+this.line+" col "+i+":\n\n",(e+=n.map((function(t,e){return a(this.line-n.length+e+1,s)+" "+t}),this).join("\n"))+"\n"+a("",s+i)+"^\n"}return e+" at index "+(this.index-1);function a(t,e){var r=String(t);return Array(e-r.length+1).join(" ")+r}},i.fail={},i.prototype.feed=function(t){var e,n=this.lexer;for(n.reset(t,this.lexerState);;){try{if(!(e=n.next()))break}catch(t){var i=new r(this.grammar,this.current+1);throw this.table.push(i),(u=new Error(this.reportLexerError(t))).offset=this.current,u.token=t.token,u}var s=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var a=this.current+1;i=new r(this.grammar,a),this.table.push(i);for(var u,c=void 0!==e.text?e.text:e.value,l=n.constructor===o?e.value:e,p=s.scannable,f=p.length;f--;){var h=p[f],y=h.rule.symbols[h.dot];if(y.test?y.test(l):y.type?y.type===e.type:y.literal===c){var v=h.nextState({data:l,token:e,isToken:!0,reference:a-1});i.states.push(v)}}if(i.process(),0===i.states.length)throw(u=new Error(this.reportError(e))).offset=this.current,u.token=e,u;this.options.keepHistory&&(s.lexerState=n.save()),this.current++}return s&&(this.lexerState=n.save()),this.results=this.finish(),this},i.prototype.reportLexerError=function(t){var e,r,n=t.token;return n?(e="input "+JSON.stringify(n.text[0])+" (lexer error)",r=this.lexer.formatError(n,"Syntax error")):(e="input (lexer error)",r=t.message),this.reportErrorCommon(r,e)},i.prototype.reportError=function(t){var e=(t.type?t.type+" token: ":"")+JSON.stringify(void 0!==t.value?t.value:t),r=this.lexer.formatError(t,"Syntax error");return this.reportErrorCommon(r,e)},i.prototype.reportErrorCommon=function(t,e){var r=[];r.push(t);var n=this.table.length-2,o=this.table[n],i=o.states.filter((function(t){var e=t.rule.symbols[t.dot];return e&&"string"!=typeof e}));return 0===i.length?(r.push("Unexpected "+e+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(o.states,r)):(r.push("Unexpected "+e+". Instead, I was expecting to see one of the following:\n"),i.map((function(t){return this.buildFirstStateStack(t,[])||[t]}),this).forEach((function(t){var e=t[0],n=e.rule.symbols[e.dot],o=this.getSymbolDisplay(n);r.push("A "+o+" based on:"),this.displayStateStack(t,r)}),this)),r.push(""),r.join("\n")},i.prototype.displayStateStack=function(t,e){for(var r,n=0,o=0;o<t.length;o++){var i=t[o],s=i.rule.toString(i.dot);s===r?n++:(n>0&&e.push(" ^ "+n+" more lines identical to this"),n=0,e.push(" "+s)),r=s}},i.prototype.getSymbolDisplay=function(t){return function(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return"character matching "+t;if(t.type)return t.type+" token";if(t.test)return"token matching "+String(t.test);throw new Error("Unknown symbol type: "+t)}}(t)},i.prototype.buildFirstStateStack=function(t,e){if(-1!==e.indexOf(t))return null;if(0===t.wantedBy.length)return[t];var r=t.wantedBy[0],n=[t].concat(e),o=this.buildFirstStateStack(r,n);return null===o?null:[t].concat(o)},i.prototype.save=function(){var t=this.table[this.current];return t.lexerState=this.lexerState,t},i.prototype.restore=function(t){var e=t.index;this.current=e,this.table[e]=t,this.table.splice(e+1),this.lexerState=t.lexerState,this.results=this.finish()},i.prototype.rewind=function(t){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[t])},i.prototype.finish=function(){var t=[],e=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(r){r.rule.name===e&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&t.push(r)})),t.map((function(t){return t.data}))},{Parser:i,Grammar:n,Rule:t}},t.exports?t.exports=e():this.nearley=e()}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{parseBooleanExpression:()=>y,parseExpression:()=>v,parseMathsExpression:()=>l});var t=r(7185),e=r.n(t),o=r(8446),i=r.n(o),s=r(9654),a=r(1647),u=r.n(a),c=s.Grammar.fromCompiled(u());function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(c),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var p=r(8326),f=r.n(p),h=s.Grammar.fromCompiled(f());function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(h),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var v=l})(),n})()));
|