@nocobase/app 2.2.0-beta.16 → 2.2.0-beta.18
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.
- package/client/rsbuild.config.ts +2 -0
- package/client-v2/rsbuild.config.ts +2 -0
- package/dist/client/assets/2260-2a9a8d11.js +2 -0
- package/dist/client/assets/32-3ea31e57.js +2 -0
- package/dist/client/assets/index-0df62b3b.js +3708 -0
- package/dist/client/assets/{runtime-6964d231.js → runtime-9670bed7.js} +1 -1
- package/dist/client/assets/{vendor-diagram-c90b5083.js → vendor-diagram-10d9b1ff.js} +2 -2
- package/dist/client/assets/{vendor-lodash-c512d103.js → vendor-lodash-9067fbfd.js} +2 -2
- package/dist/client/assets/vendor-math-template-280d2a52.js +2 -0
- package/dist/client/assets/{vendor-misc-47bbd442.js → vendor-misc-998e4c34.js} +5 -5
- package/dist/client/assets/{vendor-mobile-ui-d13eb245.js → vendor-mobile-ui-fe278247.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/v/assets/218-8c190860.js +2 -0
- package/dist/client/v/assets/32-40098c3e.js +2 -0
- package/dist/client/v/assets/{8276-b3dfc452.js → 8276-8ca2081b.js} +1 -1
- package/dist/client/v/assets/index-227595ed.js +1844 -0
- package/dist/client/v/assets/{runtime-72080663.js → runtime-9304a7d4.js} +1 -1
- package/dist/client/v/assets/{vendor-antd-155a4c9b.js → vendor-antd-e1ec510b.js} +3 -3
- package/dist/client/v/index.html +1 -1
- package/package.json +7 -7
- package/dist/client/assets/2260-2f33021a.js +0 -2
- package/dist/client/assets/32-862a0bee.js +0 -2
- package/dist/client/assets/index-7f901db1.js +0 -3707
- package/dist/client/assets/vendor-math-template-e14d2da2.js +0 -2
- package/dist/client/v/assets/32-88d3c82f.js +0 -2
- package/dist/client/v/assets/8384-1634db4d.js +0 -2
- package/dist/client/v/assets/index-dadf7442.js +0 -1843
- /package/dist/client/assets/{2260-2f33021a.js.LICENSE.txt → 2260-2a9a8d11.js.LICENSE.txt} +0 -0
- /package/dist/client/assets/{32-862a0bee.js.LICENSE.txt → 32-3ea31e57.js.LICENSE.txt} +0 -0
- /package/dist/client/assets/{index-7f901db1.js.LICENSE.txt → index-0df62b3b.js.LICENSE.txt} +0 -0
- /package/dist/client/assets/{vendor-diagram-c90b5083.js.LICENSE.txt → vendor-diagram-10d9b1ff.js.LICENSE.txt} +0 -0
- /package/dist/client/assets/{vendor-lodash-c512d103.js.LICENSE.txt → vendor-lodash-9067fbfd.js.LICENSE.txt} +0 -0
- /package/dist/client/assets/{vendor-math-template-e14d2da2.js.LICENSE.txt → vendor-math-template-280d2a52.js.LICENSE.txt} +0 -0
- /package/dist/client/assets/{vendor-misc-47bbd442.js.LICENSE.txt → vendor-misc-998e4c34.js.LICENSE.txt} +0 -0
- /package/dist/client/v/assets/{8384-336ef7b3.css → 218-336ef7b3.css} +0 -0
- /package/dist/client/v/assets/{8384-1634db4d.js.LICENSE.txt → 218-8c190860.js.LICENSE.txt} +0 -0
- /package/dist/client/v/assets/{32-88d3c82f.js.LICENSE.txt → 32-40098c3e.js.LICENSE.txt} +0 -0
- /package/dist/client/v/assets/{index-dadf7442.js.LICENSE.txt → index-227595ed.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see vendor-math-template-280d2a52.js.LICENSE.txt */
|
|
2
|
+
(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["404"],{79441(e,t,r){"use strict";var n=r(5289);for(let t in e.exports=function(t,i){"string"==typeof t?t=[t]:Array.isArray(t)||(i=t,t=null);var a=(i=i||{}).handlebars||i.hbs||r(60639);if(e.exports.handlebars=a,t)t.forEach(function(e){a.registerHelper(n[e])});else for(let e in n){let t=n[e];a.registerHelper(t)}return a.helpers},n){let i=n[t];e.exports[t]=function(t){var n=(t=t||{}).handlebars||t.hbs||r(60639);return e.exports.handlebars=n,n.registerHelper(i),i}}e.exports.utils=r(31899)},88424(e,t,r){"use strict";var n=r(98821),i=e.exports;let a=r(65363),s=r(72042);i.after=function(e,t){return n.isUndefined(e)?"":Array.isArray(e=n.result(e))?e.slice(t):""},i.arrayify=function(e){return n.isUndefined(e)?[]:e?Array.isArray(e)?e:[e]:[]},i.before=function(e,t){return n.isUndefined(e)?"":Array.isArray(e=n.result(e))?e.slice(0,t-1):""},i.eachIndex=function(e,t){var r="";if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e)))for(var i=0;i<e.length;i++)r+=t.fn({item:e[i],index:i});return r},i.filter=function(e,t,r){if(n.isUndefined(e))return r.inverse(this);if(Array.isArray(e=n.result(e))){var i="",s=[],o=r.hash&&(r.hash.property||r.hash.prop);if((s=o?e.filter(function(e){return t===a(e,o)}):e.filter(function(e){return t===e}))&&s.length>0){for(var u=0;u<s.length;u++)i+=r.fn(s[u]);return i}}return r.inverse(this)},i.first=function(e,t){return n.isUndefined(e)?[]:Array.isArray(e=n.result(e))?isNaN(t)?e[0]:e.slice(0,t):[]},i.forEach=function(e,t){if(n.isUndefined(e))return t.inverse(this);if(Array.isArray(e=n.result(e))){for(var r=s(t,t.hash),i=e.length,a="",o=-1;++o<i;){var u=e[o];r.index=o,u.index=o+1,u.total=i,u.isFirst=0===o,u.isLast=o===i-1,a+=t.fn(u,{data:r})}return a}return t.inverse(this)},i.inArray=function(e,t,r){return n.isUndefined(e)?"":Array.isArray(e=n.result(e))?n.value(n.indexOf(e,t)>-1,this,r):""},i.isArray=function(e){return Array.isArray(e)},i.itemAt=function(e,t){if(n.isUndefined(e))return null;if(Array.isArray(e=n.result(e))){if((t=isNaN(t)?0:+t)<0)return e[e.length+t];if(t<e.length)return e[t]}return null},i.join=function(e,t){return n.isUndefined(e)?"":"string"==typeof e?e:Array.isArray(e=n.result(e))?(t=n.isString(t)?t:", ",e.join(t)):""},i.equalsLength=function(e,t,r){n.isOptions(t)&&(r=t,t=0);var a=i.length(e);return n.value(a===t,this,r)},i.last=function(e,t){return n.isUndefined(e)||!Array.isArray(e)&&"string"!=typeof value?"":isNaN(t)?e[e.length-1]:e.slice(-Math.abs(t))},i.length=function(e){return n.isUndefined(e)?0:(n.isObject(e)&&!n.isOptions(e)&&(e=Object.keys(e)),"string"==typeof e&&e.startsWith("[")&&e.endsWith("]"))?e.split(",").length:"string"==typeof e||Array.isArray(e)?e.length:0},i.lengthEqual=i.equalsLength,i.map=function(e,t){if(n.isUndefined(e)||!Array.isArray(e))return"";var r=e.length,i=Array(r),a=-1;if("function"!=typeof t)return e;for(;++a<r;)i[a]=t(e[a],a,e);return i},i.pluck=function(e,t){if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e))){for(var r=[],i=0;i<e.length;i++){var s=a(e[i],t);void 0!==s&&r.push(s)}return r}return""},i.reverse=function(e){return n.isUndefined(e)?"":Array.isArray(e=n.result(e))?[...e].reverse():e&&"string"==typeof e?e.split("").reverse().join(""):""},i.some=function(e,t,r){if(n.isUndefined(e))return r.inverse(this);if(Array.isArray(e=n.result(e))){for(var i=0;i<e.length;i++)if(t(e[i],i,e))return r.fn(this)}return r.inverse(this)},i.sort=function(e,t){return n.isUndefined(e)?"":Array.isArray(e=n.result(e))?a(t,"hash.reverse")?[...e].sort().reverse():[...e].sort():""},i.sortBy=function(e,t,r){if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e))){var i=[].slice.call(arguments);return(i.pop(),n.isString(t)||"function"==typeof t)?"function"==typeof t?[...e].sort(t):[...e].sort((e,r)=>e[t]>r[t]?1:-1):[...e].sort()}return""},i.withAfter=function(e,t,r){if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e))){e=e.slice(t);for(var i="",a=0;a<e.length;a++)i+=r.fn(e[a]);return i}return""},i.withBefore=function(e,t,r){if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e))){e=e.slice(0,-t);for(var i="",a=0;a<e.length;a++)i+=r.fn(e[a]);return i}return""},i.withFirst=function(e,t,r){if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e))){if(n.isUndefined(t)||(t=parseFloat(n.result(t))),n.isUndefined(t))return(r=t).fn(e[0]);e=e.slice(0,t);for(var i="",a=0;a<e.length;a++)i+=r.fn(e[a]);return i}return""},i.withGroup=function(e,t,r){if(n.isUndefined(e))return"";var i="";if(Array.isArray(e=n.result(e))&&e.length>0){for(var a=[],s=0;s<e.length;s++)s>0&&s%t==0&&(i+=r.fn(a),a=[]),a.push(e[s]);i+=r.fn(a)}return i},i.withLast=function(e,t,r){if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e))){if(n.isUndefined(t)||(t=parseFloat(n.result(t))),n.isUndefined(t))return(r=t).fn(e[e.length-1]);for(var i=(e=e.slice(-t)).length,a=-1,s="";++a<i;)s+=r.fn(e[a]);return s}return""},i.withSort=function(e,t,r){if(n.isUndefined(e))return"";if(Array.isArray(e=n.result(e))){var i="";if(n.isUndefined(t)){r=t,e=[...e].sort(),a(r,"hash.reverse")&&(e=e.reverse());for(var s=0,o=e.length;s<o;s++)i+=r.fn(e[s]);return i}e=[...e].sort(function(e,r){return(e=a(e,t))>(r=a(r,t))?1:e<r?-1:0}),a(r,"hash.reverse")&&(e=e.reverse());for(var u=e.length,c=-1;++c<u;)i+=r.fn(e[c]);return i}return""},i.unique=function(e,t){return n.isUndefined(e)?"":Array.isArray(e=n.result(e))?e.filter(function(e,t,r){return r.indexOf(e)===t}):""}},80044(e,t,r){"use strict";var n=r(59598),i=r(57975);let a=r(96965),s=r(38069);var o=e.exports;o.embed=function(e,t){t="string"!=typeof t?i.extname(e).slice(1):t;var r=n.readFileSync(e,"utf8");return("markdown"===t||"md"===t)&&(t="markdown",r=r.split("`").join("`")),a(r,t).trim()+"\n"},o.gist=function(e){return s("script",{src:"https://gist.github.com/"+e+".js"})},o.jsfiddle=function(e){var t=Object.assign({},e&&e.hash);if(void 0===t.id)throw Error("jsfiddle helper expects an `id`");return t.id="http://jsfiddle.net/"+t.id,t.width=t.width||"100%",t.height=t.height||"300",t.skin=t.skin||"/presentation/",t.tabs=(t.tabs||"result,js,html,css")+t.skin,t.src=t.id+"/embedded/"+t.tabs,t.allowfullscreen=t.allowfullscreen||"allowfullscreen",t.frameborder=t.frameborder||"0",delete t.tabs,delete t.skin,delete t.id,s("iframe",t)}},31109(e,t,r){"use strict";var n=r(98821),i=r(38754),a=r(88424).forEach,s=i.forOwn,o=e.exports;o.isEmpty=function(e,t){if(!n.isOptions(t))return t=e,n.fn(!0,this,t);if(Array.isArray(e)&&!e.length)return n.fn(!0,this,t);var r=Object.keys(e),i="object"==typeof e&&!r.length;return n.value(i,this,t)},o.iterate=function(e,t){return Array.isArray(e)?a.apply(null,arguments):n.isObject(e)?s.apply(null,arguments):t.inverse(this)}},33680(e,t,r){"use strict";var n=r(6839),i=r(98821),a=r(31899);let s=r(60793),o=r(4566);var u=e.exports;u.and=function(){for(var e=arguments.length-1,t=arguments[e],r=!0,n=0;n<e;n++)if(!arguments[n]){r=!1;break}return i.value(r,this,t)},u.compare=function(e,t,r,n){var a;if(arguments.length<4)throw Error("handlebars Helper {{compare}} expects 4 arguments");switch(t){case"==":a=e==r;break;case"===":a=e===r;break;case"!=":a=e!=r;break;case"!==":a=e!==r;break;case"<":a=e<r;break;case">":a=e>r;break;case"<=":a=e<=r;break;case">=":a=e>=r;break;case"typeof":a=typeof e===r;break;default:throw Error("helper {{compare}}: invalid operator: `"+t+"`")}return i.value(a,this,n)},u.contains=function(e,t,r,n){"object"==typeof r&&(n=r,r=void 0);var s=a.contains(e,t,r);return i.value(s,this,n)},u.default=function(){for(var e=0;e<arguments.length-1;e++)if(null!=arguments[e])return arguments[e];return""},u.eq=function(e,t,r){return 2==arguments.length&&(t=(r=t).hash.compare),i.value(e===t,this,r)},u.gt=function(e,t,r){return 2==arguments.length&&(t=(r=t).hash.compare),i.value(e>t,this,r)},u.gte=function(e,t,r){return 2==arguments.length&&(t=(r=t).hash.compare),i.value(e>=t,this,r)},u.has=function(e,t,r){return(i.isOptions(e)&&(r=e,t=null,e=null),i.isOptions(t)&&(r=t,t=null),null===e)?i.value(!1,this,r):2==arguments.length?i.value(n(this,e),this,r):(Array.isArray(e)||i.isString(e))&&i.isString(t)&&e.indexOf(t)>-1||i.isObject(e)&&i.isString(t)&&t in e?i.fn(!0,this,r):i.inverse(!1,this,r)},u.isFalsey=function(e,t){return i.value(s(e),this,t)},u.isTruthy=function(e,t){return i.value(!s(e),this,t)},u.ifEven=function(e,t){return i.value(!o(e),this,t)},u.ifNth=function(e,t,r){var n=!isNaN(e)&&!isNaN(t)&&t%e==0;return i.value(n,this,r)},u.ifOdd=function(e,t){return i.value(o(e),this,t)},u.is=function(e,t,r){return 2==arguments.length&&(t=(r=t).hash.compare),i.value(e==t,this,r)},u.isnt=function(e,t,r){return 2==arguments.length&&(t=(r=t).hash.compare),i.value(e!=t,this,r)},u.lt=function(e,t,r){return 2==arguments.length&&(t=(r=t).hash.compare),i.value(e<t,this,r)},u.lte=function(e,t,r){return 2==arguments.length&&(t=(r=t).hash.compare),i.value(e<=t,this,r)},u.neither=function(e,t,r){return i.value(!e&&!t,this,r)},u.not=function(e,t){return i.value(!e,this,t)},u.or=function(){for(var e=arguments.length-1,t=arguments[e],r=!1,n=0;n<e;n++)if(arguments[n]){r=!0;break}return i.value(r,this,t)},u.unlessEq=function(e,t,r){return i.isOptions(t)&&(t=(r=t).hash.compare),i.value(e!==t,this,r)},u.unlessGt=function(e,t,r){return i.isOptions(t)&&(t=(r=t).hash.compare),i.value(e<=t,this,r)},u.unlessLt=function(e,t,r){return i.isOptions(t)&&(t=(r=t).hash.compare),i.value(e>=t,this,r)},u.unlessGteq=function(e,t,r){return i.isOptions(t)&&(t=(r=t).hash.compare),i.value(e<t,this,r)},u.unlessLteq=function(e,t,r){return i.isOptions(t)&&(t=(r=t).hash.compare),i.value(e>t,this,r)}},10828(e,t,r){"use strict";var n=r(57975),i=r(98821),a=r(28630),s=a.parseAttributes,o=e.exports;let u=r(38069);o.attr=function(e){var t=s(e&&e.hash||{});return t.trim()?" "+t:""},o.css=function(e,t){arguments.length<2&&(t=e,e=[]);var r=i.arrayify(e),a="";return this&&this.options&&(a=this.options.assets||""),t.hash.href&&(r=i.arrayify(t.hash.href)),r.map(function(e){var t=n.extname(e),r=e;return(/(^\/\/)|(:\/\/)/.test(e)||(r=n.posix.join(a,e)),".less"===t)?`<link type="text/css" rel="stylesheet/less" href="${r}">`:`<link type="text/css" rel="stylesheet" href="${r}">`}).join("\n")},o.js=function(e){if("object"==typeof e&&e.hash){var t=s(e.hash);return`<script${t?" "+t:""}></script>`}return"string"==typeof e?`<script src="${e}"></script>`:(e=i.arrayify(e)).map(function(e){return".coffee"===n.extname(e)?u("script",{type:"text/coffeescript",src:e}):u("script",{src:e})}).join("\n")},o.sanitize=function(e){return a.sanitize(e)},o.ul=function(e,t){return"<ul "+s(t.hash)+">"+e.map(function(e){return"string"!=typeof e&&(e=t.fn(e)),"<li>"+e+"</li>"}).join("\n")+"</ul>"},o.ol=function(e,t){return"<ol "+s(t.hash)+">"+e.map(function(e){return"string"!=typeof e&&(e=t.fn(e)),"<li>"+e+"</li>"}).join("\n")+"</ol>"},o.thumbnailImage=function(e){var t="",r="",n=e.full||!1,i={alt:e.alt,src:e.thumbnail,width:e.size.width,height:e.size.height},a={id:"image-"+e.id},o={href:n,rel:"thumbnail"};return e.classes&&(e.classes.image&&(i.class=e.classes.image.join(" ")),e.classes.figure&&(a.class=e.classes.figure.join(" ")),e.classes.link&&(o.class=e.classes.link.join(" "))),t+="<figure "+s(a)+">\n",r+="<img "+s(i)+">\n",n?t+="<a "+s(o)+">\n"+r+"</a>\n":t+=r,e.caption&&(t+="<figcaption>"+e.caption+"</figcaption>\n"),t+="</figure>"}},95701(e,t,r){"use strict";var n=r(98821),i=e.exports;let a=r(65363);i.i18n=function(e,t,r){if(n.isOptions(t)&&(r=t,t={}),!n.isString(e))throw Error('{{i18n}} helper expected "key" to be a string');var i=Object.assign({},this,n.options(this,t,r)),s=i.language||i.lang;if("string"!=typeof s)throw TypeError('{{i18n}} helper expected "language" to be a string');var o=i[s];if(void 0===o)throw Error('{{i18n}} helper cannot find language "'+s+'"');var u=a(o,e);if(void 0===u)throw Error('{{i18n}} helper cannot find property "'+e+'" for language "'+s+'"');return u}},5289(e,t,r){"use strict";e.exports={array:r(88424),code:r(80044),collection:r(31109),comparison:r(33680),html:r(10828),i18n:r(95701),inflection:r(9338),match:r(66728),math:r(84495),misc:r(83469),number:r(22404),object:r(38754),path:r(30570),regex:r(13686),string:r(66320),url:r(94832),uuid:r(3726)}},9338(e,t,r){"use strict";var n=r(98821),i=e.exports;i.inflect=function(e,t,r,n){var i=e>1||0===e?r:t;return!0===n?String(e)+" "+i:i},i.ordinalize=function(e){var t=Math.abs(Math.round(e)),r=String(e);if(n.indexOf([11,12,13],t%100)>=0)return r+"th";switch(t%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd";default:return r+"th"}}},73706(e){e.exports="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. Maecenas nisl est, ultrices nec congue eget, auctor vitae massa. Fusce luctus vestibulum augue ut aliquet. Mauris ante ligula, facilisis sed ornare eu, lobortis in odio. Praesent convallis urna a lacus interdum ut hendrerit risus congue. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. \n\n Crase tempor malesuada magna a vehicula. Nam sollicitudin vel turpis id fermentum. Ut sit amet nisl ac nulla vulputate ultrices vitae vitae urna. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum. Nulla at nulla justo, eget luctus tortor. Nulla facilisi. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. \n\n Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Proin vel ante a orci tempus eleifend ut et magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus luctus urna sed urna ultricies ac tempor dui sagittis. In condimentum facilisis porta. Sed nec diam eu diam mattis viverra. Nulla fringilla, orci ac euismod semper, magna diam porttitor mauris, quis sollicitudin sapien justo in libero. Vestibulum mollis mauris enim. Morbi euismod magna ac lorem rutrum elementum. Donec viverra auctor lobortis. Pellentesque eu est a nulla placerat dignissim. Morbi a enim in magna semper bibendum. Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus fermentum nibh in augue. Praesent a lacus at urna congue rutrum. Nulla enim eros, porttitor eu, tempus id, varius non, nibh. Vestibulum imperdiet nibh vel magna lacinia ultrices. Sed id ligula quis est convallis tempor. \n\n Aliquam erat volutpat. Integer aliquam ultrices nunc. Ut lectus dui, tincidunt ac, scelerisque ac, ultrices vitae, risus. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur vehicula nisi a magna. Sed nec libero. Phasellus nonummy magna. Sed et libero nec ligula blandit fringilla. Ut pretium tempus gravida. Proin lacinia justo vel ipsum varius eget auctor est iaculis. \n\n Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce luctus vestibulum augue ut aliquet. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. \n\n Nam dui erat, auctor a, dignissim quis. Aenean dignissim pellentesque felis. Sed gravida ante at nunc dictum placerat. Donec placerat nisl magna, et faucibus arcu condimentum sed. Curabitur et eros ac orci vehicula vestibulum sit amet at nunc. Maecenas non diam cursus, tincidunt nisi vitae, hendrerit enim. Donec vulputate felis id felis dapibus fermentum. \n\n Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. \n\n Pellentesque sit amet mauris eget lectus commodo viverra. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. Cras ultricies ligula sed magna dictum porta. Curabitur aliquet quam id dui posuere blandit. Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Sed porttitor lectus nibh. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. \n\n Cras ultricies ligula sed magna dictum porta. Donec rutrum congue leo eget malesuada. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Donec rutrum congue leo eget malesuada. Vivamus suscipit tortor eget felis porttitor volutpat. Nulla porttitor accumsan tincidunt. \n\n Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. \n\n Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. \n\n Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui."},66728(e,t,r){"use strict";var n=r(98821),i=e.exports;let a=r(19448);i.match=function(e,t,r,i){var s=n.options(this,r,i);return"string"==typeof t&&(t=t.split(/, */)),a(e,t,s)},i.isMatch=function(e,t,r,i){var s=n.options(this,r,i);return a.isMatch(e,t,s)},i.mm=function(){return console.log("the {{mm}} helper is depcrecated and will be removed"),console.log("in handlebars-helpers v1.0.0, please use the {{match}}"),console.log("helper instead."),i.match.apply(this,arguments)}},84495(e,t,r){"use strict";var n=r(31899),i=e.exports;i.abs=function(e){if(isNaN(e))throw TypeError("expected a number");return Math.abs(e)},i.add=function(e,t){return isNaN(e)||isNaN(t)?"string"==typeof e&&"string"==typeof t?e+t:"":Number(e)+Number(t)},i.avg=function(){let e=[].concat.apply([],arguments);return e.pop(),i.sum(e)/e.length},i.ceil=function(e){if(isNaN(e))throw TypeError("expected a number");return Math.ceil(e)},i.divide=function(e,t){if(isNaN(e))throw TypeError("expected the first argument to be a number");if(isNaN(t))throw TypeError("expected the second argument to be a number");return Number(e)/Number(t)},i.floor=function(e){if(isNaN(e))throw TypeError("expected a number");return Math.floor(e)},i.minus=function(e,t){if(isNaN(e))throw TypeError("expected the first argument to be a number");if(isNaN(t))throw TypeError("expected the second argument to be a number");return Number(e)-Number(t)},i.modulo=function(e,t){if(isNaN(e))throw TypeError("expected the first argument to be a number");if(isNaN(t))throw TypeError("expected the second argument to be a number");return Number(e)%Number(t)},i.multiply=function(e,t){if(isNaN(e))throw TypeError("expected the first argument to be a number");if(isNaN(t))throw TypeError("expected the second argument to be a number");return Number(e)*Number(t)},i.plus=function(e,t){if(isNaN(e))throw TypeError("expected the first argument to be a number");if(isNaN(t))throw TypeError("expected the second argument to be a number");return Number(e)+Number(t)},i.random=function(e,t){if(isNaN(e))throw TypeError("expected minimum to be a number");if(isNaN(t))throw TypeError("expected maximum to be a number");return n.random(e,t)},i.remainder=function(e,t){return e%t},i.round=function(e){if(isNaN(e))throw TypeError("expected a number");return Math.round(e)},i.subtract=function(e,t){if(isNaN(e))throw TypeError("expected the first argument to be a number");if(isNaN(t))throw TypeError("expected the second argument to be a number");return Number(e)-Number(t)},i.sum=function(){for(var e=[].concat.apply([],arguments),t=e.length,r=0;t--;)isNaN(e[t])||(r+=Number(e[t]));return r}},83469(e,t,r){"use strict";var n=r(98821),i=e.exports;let a=r(65363),s=r(72042);i.frame=function(e,t){"object"==typeof e&&e.hash&&(e=(t=e).data);var r=s(e);return"object"!=typeof t&&(t={}),r.extend(t.hash),t.fn(this,{data:r})},i.option=function(e,t,r){return a(n.options(this,t,r),e)},i.noop=function(e){return e.fn(this)},i.typeOf=function(e){return typeof e},i.withHash=function(e){return e.hash&&Object.keys(e.hash).length?e.fn(e.hash):e.inverse(this)}},22404(e,t,r){"use strict";var n=r(98821),i=e.exports;i.bytes=function(e,t,r){if(null==e||isNaN(e)&&!(e=e.length))return"0 B";isNaN(t)&&(t=2);var n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];t=Math.pow(10,t),e=Number(e);for(var i=n.length-1;i-- >=0;){var a=Math.pow(10,3*i);if(a<=e+1){e=Math.round(e*t/a)/t+" "+n[i];break}}return e},i.addCommas=function(e){return e.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},i.phoneNumber=function(e){return"("+(e=e.toString()).substr(0,3)+") "+e.substr(3,3)+"-"+e.substr(6,4)},i.toAbbr=function(e,t){isNaN(e)&&(e=0),n.isUndefined(t)&&(t=2),e=Number(e),t=Math.pow(10,t);for(var r=["k","m","b","t","q"],i=r.length-1;i>=0;){var a=Math.pow(10,(i+1)*3);if(a<=e+1){e=Math.round(e*t/a)/t+r[i];break}i--}return e},i.toExponential=function(e,t){return isNaN(e)&&(e=0),n.isUndefined(t)&&(t=0),Number(e).toExponential(t)},i.toFixed=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),Number(e).toFixed(t)},i.toFloat=function(e){return parseFloat(e)},i.toInt=function(e){return parseInt(e,10)},i.toPrecision=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=1),Number(e).toPrecision(t)}},38754(e,t,r){"use strict";var n=Object.hasOwnProperty,i=r(98821),a=r(88424),s=e.exports;let o=r(65363),u=r(21213),c=r(72042);s.extend=function(){var e=[].slice.call(arguments),t={};i.isOptions(e[e.length-1])&&(t=e.pop().hash,e.push(t));for(var r={},n=0;n<e.length;n++){var a=e[n];if(i.isObject(a))for(var s=Object.keys(a),o=0;o<s.length;o++){var u=s[o];r[u]=a[u]}}return r},s.forIn=function(e,t){if(!i.isOptions(t))return e.inverse(this);var r=c(t,t.hash),n="";for(var a in e)r.key=a,n+=t.fn(e[a],{data:r});return n},s.forOwn=function(e,t){if(!i.isOptions(t))return e.inverse(this);var r=c(t,t.hash),n="";for(var a in e)e.hasOwnProperty(a)&&(r.key=a,n+=t.fn(e[a],{data:r}));return n},s.toPath=function(){for(var e=[],t=0;t<arguments.length;t++)("string"==typeof arguments[t]||"number"==typeof arguments[t])&&e.push(arguments[t]);return e.join(".")},s.get=function(e,t,r){var n=o(t,e);return r&&r.fn?n?r.fn(n):r.inverse(t):n},s.getObject=function(e,t){return u(t,e)},s.hasOwn=function(e,t){return n.call(e,t)},s.isObject=function(e){return"object"==typeof e},s.JSONparse=function(e,t){return JSON.parse(e)},s.JSONstringify=function(e,t){return isNaN(t)&&(t=0),JSON.stringify(e,null,t)},s.merge=function(e){var t=[].slice.call(arguments),r={};return i.isOptions(t[t.length-1])&&(r=t.pop().hash,t.push(r)),Object.assign.apply(null,t)},s.parseJSON=s.JSONparse,s.pick=function(e,t,r){for(var n=a.arrayify(e),i=n.length,o=-1,c={};++o<i;)c=s.extend({},c,u(t,n[o]));return r.fn?Object.keys(c).length?r.fn(c):r.inverse(t):c},s.stringify=s.JSONstringify},30570(e,t,r){"use strict";var n=r(65606),i=r(98821),a=r(57975);let s=r(70653);var o=e.exports;o.absolute=function(e,t){t=t||{data:{}};var r=i.options(this,t),s=Object.assign({},t.data.root,r).cwd||n.cwd();return a.resolve(s,e)},o.dirname=function(e,t){if("string"!=typeof e)throw TypeError(i.expectedType("filepath","string",e));return a.dirname(e)},o.relative=function(e,t){if("string"!=typeof e)throw TypeError(i.expectedType("first path","string",e));if("string"!=typeof t)throw TypeError(i.expectedType("second path","string",t));return s(e,t)},o.basename=function(e){if("string"!=typeof e)throw TypeError(i.expectedType("filepath","string",e));return a.basename(e)},o.stem=function(e){if("string"!=typeof e)throw TypeError(i.expectedType("filepath","string",e));return a.basename(e,a.extname(e))},o.extname=function(e){if("string"!=typeof e)throw TypeError(i.expectedType("filepath","string",e));return a.extname(e)},o.resolve=function(e){var t=[].slice.call(arguments),r=i.options(this,t.pop()),s=a.resolve(r.cwd||n.cwd());return t.unshift(s),a.resolve.apply(a,t)},o.segments=function(e,t,r){if("string"!=typeof e)throw TypeError(i.expectedType("filepath","string",e));return e.split(/[\\\/]+/).slice(t,r).join("/")}},13686(e,t,r){"use strict";var n=r(98821),i=e.exports;let a=r(92527);i.toRegex=function(e,t,r){return new RegExp(e,n.options({},t,r).flags)},i.test=function(e,t){if("string"!=typeof e)return!1;if("regexp"!==a(t))throw TypeError("expected a regular expression");return t.test(e)}},66320(e,t,r){"use strict";var n=r(98821),i=r(31899),a=e.exports;let s=r(73706);a.append=function(e,t){return"string"==typeof e&&"string"==typeof t?e+t:e},a.camelcase=function(e){return"string"!=typeof e?"":i.changecase(e,function(e){return e.toUpperCase()})},a.capitalize=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},a.capitalizeAll=function(e){return"string"!=typeof e?"":n.isString(e)?e.replace(/\w\S*/g,function(e){return a.capitalize(e)}):void 0},a.center=function(e,t){if("string"!=typeof e)return"";for(var r="",n=0;n<t;)r+=" ",n++;return r+e+r},a.chop=function(e){return"string"!=typeof e?"":i.chop(e)},a.dashcase=function(e){return"string"!=typeof e?"":i.changecase(e,function(e){return"-"+e})},a.dotcase=function(e){return"string"!=typeof e?"":i.changecase(e,function(e){return"."+e})},a.downcase=function(){return a.lowercase.apply(this,arguments)},a.ellipsis=function(e,t){if(n.isString(e))return e.length<=t?e:a.truncate(e,t)+"…"},a.hyphenate=function(e){return"string"!=typeof e?"":e.split(" ").join("-")},a.isString=function(e){return"string"==typeof e},a.lowercase=function(e){return n.isObject(e)&&e.fn?e.fn(this).toLowerCase():"string"!=typeof e?"":e.toLowerCase()},a.occurrences=function(e,t){if("string"!=typeof e)return"";for(var r=t.length,n=0,i=0;(n=e.indexOf(t,n))>-1;)i++,n+=r;return i},a.pascalcase=function(e){return"string"!=typeof e?"":(e=i.changecase(e,function(e){return e.toUpperCase()})).charAt(0).toUpperCase()+e.slice(1)},a.pathcase=function(e){return"string"!=typeof e?"":i.changecase(e,function(e){return"/"+e})},a.plusify=function(e,t){return"string"!=typeof e?"":(n.isString(t)||(t=" "),e.split(t).join("+"))},a.prepend=function(e,t){return"string"==typeof e&&"string"==typeof t?t+e:e},a.raw=function(e){var t=e.fn();if(!1!==n.options(this,e).escape)for(var r=0;-1!==(r=t.indexOf("{{",r));)"\\"!==t[r-1]&&(t=t.slice(0,r)+"\\"+t.slice(r)),r+=3;return t},a.remove=function(e,t){return"string"!=typeof e?"":n.isString(t)?e.split(t).join(""):e},a.removeFirst=function(e,t){return"string"!=typeof e?"":n.isString(t)?e.replace(t,""):e},a.replace=function(e,t,r){return"string"!=typeof e?"":n.isString(t)?(n.isString(r)||(r=""),e.split(t).join(r)):e},a.replaceFirst=function(e,t,r){return"string"!=typeof e?"":n.isString(t)?(n.isString(r)||(r=""),e.replace(t,r)):e},a.reverse=r(88424).reverse,a.sentence=function(e){return"string"!=typeof e?"":e.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},a.snakecase=function(e){return"string"!=typeof e?"":i.changecase(e,function(e){return"_"+e})},a.split=function(e,t){return"string"!=typeof e?"":(n.isString(t)||(t=","),e.split(t))},a.startsWith=function(e,t,r){var i=[].slice.call(arguments);return(r=i.pop(),n.isString(t)&&0===t.indexOf(e))?r.fn(this):"function"==typeof r.inverse?r.inverse(this):""},a.titleize=function(e){if("string"!=typeof e)return"";for(var r=e.replace(/[- _]+/g," ").split(" "),n=r.length,i=[],a=0;n--;){var s=r[a++];i.push(t.capitalize(s))}return i.join(" ")},a.trim=function(e){return"string"==typeof e?e.trim():""},a.trimLeft=function(e){if(n.isString(e))return e.replace(/^\s+/,"")},a.trimRight=function(e){if(n.isString(e))return e.replace(/\s+$/,"")},a.truncate=function(e,t,r){if(n.isString(e))return("string"!=typeof r&&(r=""),e.length>t)?e.slice(0,t-r.length)+r:e},a.truncateWords=function(e,t,r){if(n.isString(e)&&!isNaN(t)){"string"!=typeof r&&(r="…");var i=Number(t),a=e.split(/[ \t]/);return i>=a.length?e:(a=a.slice(0,i)).join(" ").trim()+r}},a.upcase=function(){return a.uppercase.apply(this,arguments)},a.uppercase=function(e){return n.isObject(e)&&e.fn?e.fn(this).toUpperCase():"string"!=typeof e?"":e.toUpperCase()},a.lorem=function(e){return(isNaN(e)||e<1||!e)&&(e=11),s.substring(0,e)}},94832(e,t,r){"use strict";var n=r(88835),i=r(98821),a=r(22894),s=e.exports;s.encodeURI=function(e){if(i.isString(e))return encodeURIComponent(e)},s.escape=function(e){if(i.isString(e))return a.escape(e)},s.decodeURI=function(e){if(i.isString(e))return decodeURIComponent(e)},s.urlResolve=function(e,t){return n.resolve(e,t)},s.urlParse=function(e){return n.parse(e)},s.stripQuerystring=function(e){if(i.isString(e))return e.split("?")[0]},s.stripProtocol=function(e){if(i.isString(e)){var t=n.parse(e);return t.protocol="",t.format()}}},72042(e){"use strict";e.exports=function(e){if("object"!=typeof e)throw TypeError("createFrame expects data to be an object");var t=Object.assign({},e);if(t._parent=e,t.extend=function(e){Object.assign(this,e)},arguments.length>1)for(var r=[].slice.call(arguments,1),n=r.length,i=-1;++i<n;)t.extend(r[i]||{});return t}},60793(e){"use strict";function t(e,r){if(!e)return!0;let n=r||t.keywords;Array.isArray(n)||(n=[n]);let i="string"==typeof e?e.toLowerCase():null;for(let t of n)if(t===e||t===i)return!0;return!1}t.keywords=["0","false","nada","nil","nay","nah","negative","no","none","nope","nul","null","nix","nyet","uh-uh","veto","zero"],e.exports=t},28630(e,t,r){"use strict";var n=r(98821),i=r(67098),a=e.exports;a.condense=function(e){return e.replace(/(\r\n|\r|\n|\u2028|\u2029) {2,}/g,"\n")},a.padcomments=function(e){return e.replace(/(\s*<!--)/g,"\n$1")},a.parseAttributes=function(e){return Object.keys(e).map(function(t){var r=String(e[t]).replace(/^['"]|["']$/g,"");return t+'="'+r+'"'}).join(" ")},a.sanitize=function(e){return n.isString(e)?i(e).trim():""},a.toAttributes=function(e){for(var t="",r=Object.keys(e),n=0;n<r.length;n++){var i=e[r[n]];!0===i?t+=" "+r[n]:t+=" "+r[n]+'="'+String(i)+'"'}return t}},31899(e,t,r){"use strict";let n=r(98821);t.contains=function(e,t,r){return!(null==e||null==t||isNaN(e.length))&&-1!==e.indexOf(t,r)},t.chop=function(e){return"string"!=typeof e?"":e.trim().replace(/^[-_.\W\s]+|[-_.\W\s]+$/g,"")},t.changecase=function(e,r){return"string"!=typeof e?"":1===e.length?e.toLowerCase():(e=t.chop(e).toLowerCase(),"function"!=typeof r&&(r=n.identity),e.replace(/[-_.\W\s]+(\w|$)/g,function(e,t){return r(t)}))},t.random=function(e,t){return e+Math.floor(Math.random()*(t-e+1))}},4566(e){"use strict";e.exports=function(e){let t=Math.abs(e);if(isNaN(t))throw TypeError("expected a number");if(!Number.isInteger(t))throw Error("expected an integer");if(!Number.isSafeInteger(t))throw Error("value exceeds maximum safe integer");return t%2==1}},3726(e,t,r){let n=r(25443);e.exports.uuid=function(){return n.v4()}},46677(e,t,r){"use strict";let n=r(37292),i=r(65932),a=r(69773),s=r(48274),o=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let e=o.create(n,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(o.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};o.parse=(e,t={})=>s(e,t),o.stringify=(e,t={})=>"string"==typeof e?n(o.parse(e,t),t):n(e,t),o.compile=(e,t={})=>("string"==typeof e&&(e=o.parse(e,t)),i(e,t)),o.expand=(e,t={})=>{"string"==typeof e&&(e=o.parse(e,t));let r=a(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},o.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?o.compile(e,t):o.expand(e,t),e.exports=o},65932(e,t,r){"use strict";let n=r(93392),i=r(23352);e.exports=(e,t={})=>{let r=(e,a={})=>{let s=i.isInvalidBrace(a),o=!0===e.invalid&&!0===t.escapeInvalid,u=!0===s||!0===o,c=!0===t.escapeInvalid?"\\":"",l="";if(!0===e.isOpen)return c+e.value;if(!0===e.isClose)return console.log("node.isClose",c,e.value),c+e.value;if("open"===e.type)return u?c+e.value:"(";if("close"===e.type)return u?c+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":u?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let r=i.reduce(e.nodes),a=n(...r,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==a.length)return r.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)l+=r(t,e);return l};return r(e)}},57220(e){"use strict";e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},69773(e,t,r){"use strict";let n=r(93392),i=r(37292),a=r(23352),s=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?a.flatten(t).map(e=>`{${e}}`):t;for(let i of e)if(Array.isArray(i))for(let e of i)n.push(s(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),n.push(Array.isArray(e)?s(i,e,r):i+e);return a.flatten(n)};e.exports=(e,t={})=>{let r=void 0===t.rangeLimit?1e3:t.rangeLimit,o=(e,u={})=>{e.queue=[];let c=u,l=u.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)l=(c=c.parent).queue;if(e.invalid||e.dollar)return void l.push(s(l.pop(),i(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void l.push(s(l.pop(),["{}"]));if(e.nodes&&e.ranges>0){let o=a.reduce(e.nodes);if(a.exceedsLimit(...o,t.step,r))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=n(...o,t);0===u.length&&(u=i(e,t)),l.push(s(l.pop(),u)),e.nodes=[];return}let p=a.encloseBrace(e),f=e.queue,d=e;for(;"brace"!==d.type&&"root"!==d.type&&d.parent;)f=(d=d.parent).queue;for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if("comma"===r.type&&"brace"===e.type){1===t&&f.push(""),f.push("");continue}if("close"===r.type){l.push(s(l.pop(),f,p));continue}if(r.value&&"open"!==r.type){f.push(s(f.pop(),r.value));continue}r.nodes&&o(r,e)}return f};return a.flatten(o(e))}},48274(e,t,r){"use strict";let n=r(37292),{MAX_LENGTH:i,CHAR_BACKSLASH:a,CHAR_BACKTICK:s,CHAR_COMMA:o,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:v,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=r(57220);e.exports=(e,t={})=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");let b=t||{},x="number"==typeof b.maxLength?Math.min(i,b.maxLength):i;if(e.length>x)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${x})`);let D={type:"root",input:e,nodes:[]},w=[D],N=D,A=D,E=0,S=e.length,C=0,M=0,T=()=>e[C++],O=e=>{if("text"===e.type&&"dot"===A.type&&(A.type="text"),A&&"text"===A.type&&"text"===e.type){A.value+=e.value;return}return N.nodes.push(e),e.parent=N,e.prev=A,A=e,e};for(O({type:"bos"});C<S;)if(N=w[w.length-1],(r=T())!==y&&r!==v){if(r===a){O({type:"text",value:(t.keepEscaping?r:"")+T()});continue}if(r===h){O({type:"text",value:"\\"+r});continue}if(r===d){let e;for(E++;C<S&&(e=T());){if(r+=e,e===d){E++;continue}if(e===a){r+=T();continue}if(e===h&&0==--E)break}O({type:"text",value:r});continue}if(r===c){N=O({type:"paren",nodes:[]}),w.push(N),O({type:"text",value:r});continue}if(r===l){if("paren"!==N.type){O({type:"text",value:r});continue}N=w.pop(),O({type:"text",value:r}),N=w[w.length-1];continue}if(r===m||r===g||r===s){let e,n=r;for(!0!==t.keepQuotes&&(r="");C<S&&(e=T());){if(e===a){r+=e+T();continue}if(e===n){!0===t.keepQuotes&&(r+=e);break}r+=e}O({type:"text",value:r});continue}if(r===p){M++,N=O({type:"brace",open:!0,close:!1,dollar:A.value&&"$"===A.value.slice(-1)||!0===N.dollar,depth:M,commas:0,ranges:0,nodes:[]}),w.push(N),O({type:"open",value:r});continue}if(r===f){if("brace"!==N.type){O({type:"text",value:r});continue}(N=w.pop()).close=!0,O({type:"close",value:r}),M--,N=w[w.length-1];continue}if(r===o&&M>0){if(N.ranges>0){N.ranges=0;let e=N.nodes.shift();N.nodes=[e,{type:"text",value:n(N)}]}O({type:"comma",value:r}),N.commas++;continue}if(r===u&&M>0&&0===N.commas){let e=N.nodes;if(0===M||0===e.length){O({type:"text",value:r});continue}if("dot"===A.type){if(N.range=[],A.value+=r,A.type="range",3!==N.nodes.length&&5!==N.nodes.length){N.invalid=!0,N.ranges=0,A.type="text";continue}N.ranges++,N.args=[];continue}if("range"===A.type){e.pop();let t=e[e.length-1];t.value+=A.value+r,A=t,N.ranges--;continue}O({type:"dot",value:r});continue}O({type:"text",value:r})}do if("root"!==(N=w.pop()).type){N.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});let e=w[w.length-1],t=e.nodes.indexOf(N);e.nodes.splice(t,1,...N.nodes)}while(w.length>0);return O({type:"eos"}),D}},37292(e,t,r){"use strict";let n=r(23352);e.exports=(e,t={})=>{let r=(e,i={})=>{let a=t.escapeInvalid&&n.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid,o="";if(e.value)return(a||s)&&n.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)o+=r(t);return o};return r(e)}},23352(e,t){"use strict";t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find(e=>e.type===t),t.exceedsLimit=(e,r,n=1,i)=>!1!==i&&!!t.isInteger(e)&&!!t.isInteger(r)&&(Number(r)-Number(e))/Number(n)>=i,t.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||"open"===n.type||"close"===n.type)&&!0!==n.escaped&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges==0&&(e.invalid=!0,!0),t.isInvalidBrace=e=>"brace"===e.type&&(!0===e.invalid||!!e.dollar||(e.commas>>0+e.ranges==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),t.flatten=(...e)=>{let t=[],r=e=>{for(let n=0;n<e.length;n++){let i=e[n];if(Array.isArray(i)){r(i);continue}void 0!==i&&t.push(i)}return t};return r(e),t}},93392(e,t,r){"use strict";let n=r(40537),i=r(90054),a=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=e=>"number"==typeof e||"string"==typeof e&&""!==e,o=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},u=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},c=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},l=(e,t,r,n)=>{if(r)return i(e,t,{wrap:!1,...n});let a=String.fromCharCode(e);if(e===t)return a;let s=String.fromCharCode(t);return`[${a}-${s}]`},p=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return i(e,t,r)},f=(...e)=>RangeError("Invalid range arguments: "+n.inspect(...e)),d=(e,t,r)=>{if(!0===r.strictRanges)throw f([e,t]);return[]},h=(e,t,r,n={})=>{if(null==t&&s(e))return[e];if(!s(e)||!s(t))return d(e,t,n);if("function"==typeof r)return h(e,t,1,{transform:r});if(a(r))return h(e,t,0,r);let i={...n};if(!0===i.capture&&(i.wrap=!0),!Number.isInteger(+(r=r||i.step||1))){if(null!=r&&!a(r)){var m=r;if(!0===i.strictRanges)throw TypeError(`Expected step "${m}" to be a number`);return[]}return h(e,t,1,r)}return Number.isInteger(+e)&&Number.isInteger(+t)?((e,t,r=1,n={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(!0===n.strictRanges)throw f([e,t]);return[]}0===i&&(i=0),0===a&&(a=0);let s=i>a,d=String(e),h=String(t),m=String(r);r=Math.max(Math.abs(r),1);let g=o(d)||o(h)||o(m),v=g?Math.max(d.length,h.length,m.length):0,y=!1===g&&!1==("string"==typeof e||"string"==typeof t||!0===n.stringify),b=n.transform||(e=>!0===y?Number(e):String(e));if(n.toRegex&&1===r)return l(c(e,v),c(t,v),!0,n);let x={negatives:[],positives:[]},D=e=>x[e<0?"negatives":"positives"].push(Math.abs(e)),w=[],N=0;for(;s?i>=a:i<=a;)!0===n.toRegex&&r>1?D(i):w.push(u(b(i,N),v,y)),i=s?i-r:i+r,N++;if(!0===n.toRegex){let e,t,i,a;return r>1?(x.negatives.sort((e,t)=>e<t?-1:+(e>t)),x.positives.sort((e,t)=>e<t?-1:+(e>t)),t=n.capture?"":"?:",i="",a="",(x.positives.length&&(i=x.positives.map(e=>c(String(e),v)).join("|")),x.negatives.length&&(a=`-(${t}${x.negatives.map(e=>c(String(e),v)).join("|")})`),e=i&&a?`${i}|${a}`:i||a,n.wrap)?`(${t}${e})`:e):p(w,null,{wrap:!1,...n})}return w})(e,t,r,i):((e,t,r=1,n={})=>{if(!Number.isInteger(+e)&&e.length>1||!Number.isInteger(+t)&&t.length>1)return d(e,t,n);let i=n.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),o=a>s,u=Math.min(a,s),c=Math.max(a,s);if(n.toRegex&&1===r)return l(u,c,!1,n);let f=[],h=0;for(;o?a>=s:a<=s;)f.push(i(a,h)),a=o?a-r:a+r,h++;return!0===n.toRegex?p(f,null,{wrap:!1,options:n}):f})(e,t,Math.max(Math.abs(r),1),i)};e.exports=h},19448(e,t,r){"use strict";let n=r(40537),i=r(46677),a=r(35157),s=r(80280),o=e=>""===e||"./"===e,u=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},c=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,u=e=>{s.add(e.output),r&&r.onResult&&r.onResult(e)};for(let s=0;s<t.length;s++){let c=a(String(t[s]),{...r,onResult:u},!0),l=c.state.negated||c.state.negatedExtglob;for(let t of(l&&o++,e)){let e=c(t,!0);(l?!e.isMatch:e.isMatch)&&(l?n.add(e.output):(n.delete(e.output),i.add(e.output)))}}let c=(o===t.length?[...s]:[...i]).filter(e=>!n.has(e));if(r&&0===c.length){if(!0===r.failglob)throw Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}return c};c.match=c,c.matcher=(e,t)=>a(e,t),c.isMatch=(e,t,r)=>a(t,r)(e),c.any=c.isMatch,c.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],a=new Set(c(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),i.push(e.output)}}));for(let e of i)a.has(e)||n.add(e);return[...n]},c.contains=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${n.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>c.contains(e,t,r));if("string"==typeof t){if(o(e)||o(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...r,contains:!0})},c.matchKeys=(e,t,r)=>{if(!s.isObject(e))throw TypeError("Expected the first argument to be an object");let n=c(Object.keys(e),t,r),i={};for(let t of n)i[t]=e[t];return i},c.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(n.some(e=>t(e)))return!0}return!1},c.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(!n.every(e=>t(e)))return!1}return!0},c.all=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${n.inspect(e)}"`);return[].concat(t).every(t=>a(t,r)(e))},c.capture=(e,t,r)=>{let n=s.isWindows(r),i=a.makeRe(String(e),{...r,capture:!0}).exec(n?s.toPosixSlashes(t):t);if(i)return i.slice(1).map(e=>void 0===e?"":e)},c.makeRe=(...e)=>a.makeRe(...e),c.scan=(...e)=>a.scan(...e),c.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let e of i(String(n),t))r.push(a.parse(e,t));return r},c.braces=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return t&&!0===t.nobrace||!u(e)?[e]:i(e,t)},c.braceExpand=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return c.braces(e,{...t,expand:!0})},c.hasBraces=u,e.exports=c},25443(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var n=f(r(63226)),i=f(r(42800)),a=f(r(8069)),s=f(r(89798)),o=f(r(62788)),u=f(r(96027)),c=f(r(4633)),l=f(r(58386)),p=f(r(13148));function f(e){return e&&e.__esModule?e:{default:e}}},46683(e,t){"use strict";function r(e){return(e+64>>>9<<4)+14+1}function n(e,t){let r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,i,a,s){var o;return n((o=n(n(t,e),n(i,s)))<<a|o>>>32-a,r)}function a(e,t,r,n,a,s,o){return i(t&r|~t&n,e,t,a,s,o)}function s(e,t,r,n,a,s,o){return i(t&n|r&~n,e,t,a,s,o)}function o(e,t,r,n,a,s,o){return i(t^r^n,e,t,a,s,o)}function u(e,t,r,n,a,s,o){return i(r^(t|~n),e,t,a,s,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){let t=[],r=32*e.length,n="0123456789abcdef";for(let i=0;i<r;i+=8){let r=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let i=0x67452301,c=-0x10325477,l=-0x67452302,p=0x10325476;for(let t=0;t<e.length;t+=16){let r=i,f=c,d=l,h=p;i=a(i,c,l,p,e[t],7,-0x28955b88),p=a(p,i,c,l,e[t+1],12,-0x173848aa),l=a(l,p,i,c,e[t+2],17,0x242070db),c=a(c,l,p,i,e[t+3],22,-0x3e423112),i=a(i,c,l,p,e[t+4],7,-0xa83f051),p=a(p,i,c,l,e[t+5],12,0x4787c62a),l=a(l,p,i,c,e[t+6],17,-0x57cfb9ed),c=a(c,l,p,i,e[t+7],22,-0x2b96aff),i=a(i,c,l,p,e[t+8],7,0x698098d8),p=a(p,i,c,l,e[t+9],12,-0x74bb0851),l=a(l,p,i,c,e[t+10],17,-42063),c=a(c,l,p,i,e[t+11],22,-0x76a32842),i=a(i,c,l,p,e[t+12],7,0x6b901122),p=a(p,i,c,l,e[t+13],12,-0x2678e6d),l=a(l,p,i,c,e[t+14],17,-0x5986bc72),c=a(c,l,p,i,e[t+15],22,0x49b40821),i=s(i,c,l,p,e[t+1],5,-0x9e1da9e),p=s(p,i,c,l,e[t+6],9,-0x3fbf4cc0),l=s(l,p,i,c,e[t+11],14,0x265e5a51),c=s(c,l,p,i,e[t],20,-0x16493856),i=s(i,c,l,p,e[t+5],5,-0x29d0efa3),p=s(p,i,c,l,e[t+10],9,0x2441453),l=s(l,p,i,c,e[t+15],14,-0x275e197f),c=s(c,l,p,i,e[t+4],20,-0x182c0438),i=s(i,c,l,p,e[t+9],5,0x21e1cde6),p=s(p,i,c,l,e[t+14],9,-0x3cc8f82a),l=s(l,p,i,c,e[t+3],14,-0xb2af279),c=s(c,l,p,i,e[t+8],20,0x455a14ed),i=s(i,c,l,p,e[t+13],5,-0x561c16fb),p=s(p,i,c,l,e[t+2],9,-0x3105c08),l=s(l,p,i,c,e[t+7],14,0x676f02d9),c=s(c,l,p,i,e[t+12],20,-0x72d5b376),i=o(i,c,l,p,e[t+5],4,-378558),p=o(p,i,c,l,e[t+8],11,-0x788e097f),l=o(l,p,i,c,e[t+11],16,0x6d9d6122),c=o(c,l,p,i,e[t+14],23,-0x21ac7f4),i=o(i,c,l,p,e[t+1],4,-0x5b4115bc),p=o(p,i,c,l,e[t+4],11,0x4bdecfa9),l=o(l,p,i,c,e[t+7],16,-0x944b4a0),c=o(c,l,p,i,e[t+10],23,-0x41404390),i=o(i,c,l,p,e[t+13],4,0x289b7ec6),p=o(p,i,c,l,e[t],11,-0x155ed806),l=o(l,p,i,c,e[t+3],16,-0x2b10cf7b),c=o(c,l,p,i,e[t+6],23,0x4881d05),i=o(i,c,l,p,e[t+9],4,-0x262b2fc7),p=o(p,i,c,l,e[t+12],11,-0x1924661b),l=o(l,p,i,c,e[t+15],16,0x1fa27cf8),c=o(c,l,p,i,e[t+2],23,-0x3b53a99b),i=u(i,c,l,p,e[t],6,-0xbd6ddbc),p=u(p,i,c,l,e[t+7],10,0x432aff97),l=u(l,p,i,c,e[t+14],15,-0x546bdc59),c=u(c,l,p,i,e[t+5],21,-0x36c5fc7),i=u(i,c,l,p,e[t+12],6,0x655b59c3),p=u(p,i,c,l,e[t+3],10,-0x70f3336e),l=u(l,p,i,c,e[t+10],15,-1051523),c=u(c,l,p,i,e[t+1],21,-0x7a7ba22f),i=u(i,c,l,p,e[t+8],6,0x6fa87e4f),p=u(p,i,c,l,e[t+15],10,-0x1d31920),l=u(l,p,i,c,e[t+6],15,-0x5cfebcec),c=u(c,l,p,i,e[t+13],21,0x4e0811a1),i=u(i,c,l,p,e[t+4],6,-0x8ac817e),p=u(p,i,c,l,e[t+11],10,-0x42c50dcb),l=u(l,p,i,c,e[t+2],15,0x2ad7d2bb),c=u(c,l,p,i,e[t+9],21,-0x14792c6f),i=n(i,r),c=n(c,f),l=n(l,d),p=n(p,h)}return[i,c,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}},48208(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},62788(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},13148(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(4633))&&n.__esModule?n:{default:n};t.default=function(e){let t;if(!(0,i.default)(e))throw TypeError("Invalid UUID");let r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,r[11]=t/0x100000000&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},82460(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},64966(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&!(r="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};let n=new Uint8Array(16)},89526(e,t){"use strict";function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],n=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let i=Math.ceil((e.length/4+2)/16),a=Array(i);for(let t=0;t<i;++t){let r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[i-1][14]=(e.length-1)*8/0x100000000,a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=(e.length-1)*8|0;for(let e=0;e<i;++e){let i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=a[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let s=n[0],o=n[1],u=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),a=r(s,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(n,o,u,c)+l+t[n]+i[e]>>>0;l=c,c=u,u=r(o,30)>>>0,o=s,s=a}n[0]=n[0]+s>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+u>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},58386(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var n,i=(n=r(4633))&&n.__esModule?n:{default:n};let a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function s(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}t.default=function(e,t=0){let r=s(e,t);if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r}},63226(e,t,r){"use strict";let n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s=(a=r(64966))&&a.__esModule?a:{default:a},o=r(58386);let u=0,c=0;t.default=function(e,t,r){let a=t&&r||0,l=t||Array(16),p=(e=e||{}).node||n,f=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==f){let t=e.random||(e.rng||s.default)();null==p&&(p=n=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=i=(t[6]<<8|t[7])&16383)}let d=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1,m=d-u+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||d>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=h,i=f;let g=((0xfffffff&(d+=122192928e5))*1e4+h)%0x100000000;l[a++]=g>>>24&255,l[a++]=g>>>16&255,l[a++]=g>>>8&255,l[a++]=255&g;let v=d/0x100000000*1e4&0xfffffff;l[a++]=v>>>8&255,l[a++]=255&v,l[a++]=v>>>24&15|16,l[a++]=v>>>16&255,l[a++]=f>>>8|128,l[a++]=255&f;for(let e=0;e<6;++e)l[a+e]=p[e];return t||(0,o.unsafeStringify)(l)}},42800(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(40557)),i=a(r(46683));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.default)("v3",48,i.default)},40557(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,s,o){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,a.default)(n)),(null==(u=n)?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(n),c.set(e,n.length),(c=r(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,s){o=o||0;for(let e=0;e<16;++e)s[o+e]=c[e];return s}return(0,i.unsafeStringify)(c)}try{n.name=e}catch(e){}return n.DNS=s,n.URL=o,n};var n,i=r(58386),a=(n=r(13148))&&n.__esModule?n:{default:n};let s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=s;let o="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=o},8069(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(48208)),i=s(r(64966)),a=r(58386);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();let s=(e=e||{}).random||(e.rng||i.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=s[e];return t}return(0,a.unsafeStringify)(s)}},89798(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(40557)),i=a(r(89526));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,n.default)("v5",80,i.default)},4633(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(82460))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},96027(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(4633))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},43144(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r={"{":"\\{","}":"\\}","\\":"\\textbackslash{}","#":"\\#",$:"\\$","%":"\\%","&":"\\&","^":"\\textasciicircum{}",_:"\\_","~":"\\textasciitilde{}"},n={"–":"\\--","—":"\\---"," ":"~"," ":"\\qquad{}","\r\n":"\\newline{}","\n":"\\newline{}"};e.exports=function(e){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.preserveFormatting,s=i.escapeMapFn,o=String(e),u="",c=(void 0===s?function(e,r){return t({},e,r)}:s)(t({},r),void 0!==a&&a?t({},n):{}),l=Object.keys(c);o;)!function(){var e=!1;l.forEach(function(t,r){!e&&o.length>=t.length&&o.slice(0,t.length)===t&&(u+=c[l[r]],o=o.slice(t.length,o.length),e=!0)}),e||(u+=o.slice(0,1),o=o.slice(1,o.length))}();return u}},98821(e,t,r){"use strict";var n=r(40537),i=r(80163),a=r(92527),s=e.exports;s.extend=p,s.indexOf=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1},s.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return c.test(e)?e.replace(u,l):e},s.isEmpty=function(e){return 0!==e&&"boolean"!=typeof e&&(null==e||(s.isObject(e)&&(e=Object.keys(e)),!e.length))},s.createFrame=function(e){var t=p({},e);return t._parent=e,t},s.blockParams=function(e,t){return e.path=t,e},s.appendContextPath=function(e,t){return(e?e+".":"")+t};var o={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},u=/[&<>"'`=]/g,c=/[&<>"'`=]/;function l(e){return o[e]}function p(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var f=Object.prototype.toString;s.toString=f;var d=function(e){return"function"==typeof e};d(/x/)&&(s.isFunction=d=function(e){return"function"==typeof e&&"[object Function]"===f.call(e)}),s.isFunction=d,s.isArray=Array.isArray||function(e){return!!e&&"object"==typeof e&&"[object Array]"===f.call(e)},s.expectedType=function(e,t,r){var a=i.types[t],s=n.inspect(r);return"expected "+e+" to be "+a+" but received "+i(r)+": "+s},s.isBlock=function(e){return s.isOptions(e)&&"function"==typeof e.fn&&"function"==typeof e.inverse},s.fn=function(e,t,r){return s.isOptions(e)?s.fn("",e,r):s.isOptions(t)?s.fn(e,{},t):s.isBlock(r)?r.fn(t):e},s.inverse=function(e,t,r){return s.isOptions(e)?s.identity("",e,r):s.isOptions(t)?s.inverse(e,{},t):s.isBlock(r)?r.inverse(t):e},s.value=function(e,t,r){return s.isOptions(e)?s.value(null,e,r):s.isOptions(t)?s.value(e,{},t):s.isBlock(r)?e?r.fn(t):r.inverse(t):e},s.isOptions=function(e){return s.isObject(e)&&s.isObject(e.hash)},s.isUndefined=function(e){return null==e||s.isOptions(e)&&null!=e.hash},s.isApp=function(e){return s.isObject(e)&&s.isObject(e.options)&&s.isObject(e.app)},s.options=function(e,t,r){if(s.isOptions(e))return s.options({},t,e);if(s.isOptions(t))return s.options(e,r,t);r=r||{},s.isOptions(r)||(t=Object.assign({},t,r));var n=Object.assign({},t,r.hash);return s.isObject(e)&&(n=Object.assign({},e.options,n)),n[r.name]&&(n=Object.assign({},n[r.name],n)),n},s.context=function(e,t,r){if(s.isOptions(e))return s.context({},t,e);if(s.isOptions(t))return s.context(e,r,t);var n=s.isApp(e)?e.context:{};r=r||{},s.isOptions(r)||(t=Object.assign({},t,r)),s.isOptions(r)&&!0===r.hash.root&&(t=Object.assign({},r.data.root,t));var i=Object.assign({},n,t,r.hash);return s.isApp(e)||(i=Object.assign({},e,i)),s.isApp(e)&&e.view&&e.view.data&&(i=Object.assign({},i,e.view.data)),i},s.isObject=function(e){return"object"===a(e)},s.result=function(e){return"function"==typeof e?e.apply(this,[].slice.call(arguments,1)):e},s.identity=function(e){return e},s.isString=function(e){return"string"==typeof e&&""!==e},s.arrayify=function(e){return null!=e?Array.isArray(e)?e:[e]:[]},s.tryParse=function(e){try{return JSON.parse(e)}catch(e){}return{}}},60639(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(r(20261)),a=n(r(32300)),s=r(89027),o=r(1127),u=n(r(26727)),c=n(r(31350)),l=n(r(91148)),p=i.default.create;function f(){var e=p();return e.compile=function(t,r){return o.compile(t,r,e)},e.precompile=function(t,r){return o.precompile(t,r,e)},e.AST=a.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=u.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var d=f();d.create=f,l.default(d),d.Visitor=c.default,d.default=d,t.default=d,e.exports=t.default},20261(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}t.__esModule=!0;var a=i(r(82871)),s=n(r(19613)),o=n(r(13769)),u=i(r(82849)),c=i(r(7624)),l=n(r(91148));function p(){var e=new a.HandlebarsEnvironment;return u.extend(e,a),e.SafeString=s.default,e.Exception=o.default,e.Utils=u,e.escapeExpression=u.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var f=p();f.create=p,l.default(f),f.default=f,t.default=f,e.exports=t.default},82871(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=p;var i=r(82849),a=n(r(13769)),s=r(2277),o=r(75940),u=n(r(40566)),c=r(63865);t.VERSION="4.7.8",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var l="[object Object]";function p(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}p.prototype={constructor:p,logger:u.default,log:u.default.log,registerHelper:function(e,t){if(i.toString.call(e)===l){if(t)throw new a.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===l)i.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===l){if(t)throw new a.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}},t.log=u.default.log,t.createFrame=i.createFrame,t.logger=u.default},32300(e,t){"use strict";t.__esModule=!0;var r={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!r.helpers.scopedId(e)&&!e.depth}}};t.default=r,e.exports=t.default},89027(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.parseWithoutProcessing=c,t.parse=function(e,t){var r=c(e,t);return new a.default(t).accept(r)};var i=n(r(6201)),a=n(r(70915)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(38425)),o=r(82849);t.parser=i.default;var u={};function c(e,t){return"Program"===e.type?e:(i.default.yy=u,u.locInfo=function(e){return new u.SourceLocation(t&&t.srcName,e)},i.default.parse(e))}o.extend(u,s)},39632(e,t,r){"use strict";t.__esModule=!0;var n=r(82849),i=void 0;try{"function"==typeof define&&define.amd||(i=r(19665).SourceNode)}catch(e){}function a(e,t,r){if(n.isArray(e)){for(var i=[],a=0,s=e.length;a<s;a++)i.push(t.wrap(e[a],r));return i}return"boolean"==typeof e||"number"==typeof e?e+"":e}function s(e){this.srcFile=e,this.source=[]}i||((i=function(e,t,r,n){this.src="",n&&this.add(n)}).prototype={add:function(e){n.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){n.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),s.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each(function(t){e.add([" ",t,"\n"])}),e},each:function(e){for(var t=0,r=this.source.length;t<r;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new i(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof i?e:(e=a(e,this,t),new i(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,r){return r=this.generateList(r),this.wrap([e,t?"."+t+"(":"(",r,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,r=[];Object.keys(e).forEach(function(n){var i=a(e[n],t);"undefined"!==i&&r.push([t.quotedString(n),":",i])});var n=this.generateList(r);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var t=this.empty(),r=0,n=e.length;r<n;r++)r&&t.add(","),t.add(a(e[r],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=s,e.exports=t.default},1127(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Compiler=u,t.precompile=function(e,t,r){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),a=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(a,t)},t.compile=function(e,t,r){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=a.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function s(){var n=r.parse(e,t),i=new r.Compiler().compile(n,t),a=new r.JavaScriptCompiler().compile(i,t,void 0,!0);return r.template(a)}function o(e,t){return n||(n=s()),n.call(this,e,t)}return o._setup=function(e){return n||(n=s()),n._setup(e)},o._child=function(e,t,r,i){return n||(n=s()),n._child(e,t,r,i)},o};var i=n(r(13769)),a=r(82849),s=n(r(32300)),o=[].slice;function u(){}function c(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}u.prototype={compiler:u,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var r=0;r<t;r++){var n=this.opcodes[r],i=e.opcodes[r];if(n.opcode!==i.opcode||!function e(t,r){if(t===r)return!0;if(a.isArray(t)&&a.isArray(r)&&t.length===r.length){for(var n=0;n<t.length;n++)if(!e(t[n],r[n]))return!1;return!0}}(n.args,i.args))return!1}t=this.children.length;for(var r=0;r<t;r++)if(!this.children[r].equals(e.children[r]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=a.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=new this.compiler().compile(e,this.options),r=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[r]=t,this.useDepths=this.useDepths||t.useDepths,r},accept:function(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,r=t.length,n=0;n<r;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===r,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){c(e);var t=e.program,r=e.inverse;t=t&&this.compileProgram(t),r=r&&this.compileProgram(r);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,r):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,r),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),r=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var r=e.params;if(r.length>1)throw new i.default("Unsupported number of partial arguments: "+r.length,e);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,a="SubExpression"===e.name.type;a&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",a,n,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){c(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,r){var n=e.path,i=n.parts[0];this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",r),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",i,null!=t||null!=r)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,r){var n=this.setupFullMustacheParams(e,t,r),a=e.path,o=a.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",n.length,o);else if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+o,e);else a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",n.length,a.original,s.default.helpers.simpleId(a))},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],r=s.default.helpers.scopedId(e),n=!e.depth&&!r&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,r):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,r=0,n=t.length;for(this.opcode("pushHash");r<n;r++)this.pushParam(t[r].value);for(;r--;)this.opcode("assignToHash",t[r].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:o.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=s.default.helpers.simpleId(e.path),r=t&&!!this.blockParamIndex(e.path.parts[0]),n=!r&&s.default.helpers.helperExpression(e),i=!r&&(n||t);if(i&&!n){var a=e.path.parts[0],o=this.options;o.knownHelpers[a]?n=!0:o.knownHelpersOnly&&(i=!1)}return n?"helper":i?"ambiguous":"simple"},pushParams:function(e){for(var t=0,r=e.length;t<r;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var r=void 0;if(!e.parts||s.default.helpers.scopedId(e)||e.depth||(r=this.blockParamIndex(e.parts[0])),r){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,r,n){var i=e.params;return this.pushParams(i),this.opcode("pushProgram",t),this.opcode("pushProgram",r),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),i},blockParamIndex:function(e){for(var t=0,r=this.options.blockParams.length;t<r;t++){var n=this.options.blockParams[t],i=n&&a.indexOf(n,e);if(n&&i>=0)return[t,i]}}}},38425(e,t,r){"use strict";t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",a=[],s=0,o=0,u=t.length;o<u;o++){var c=t[o].part,l=t[o].original!==c;if(n+=(t[o].separator||"")+c,l||".."!==c&&"."!==c&&"this"!==c)a.push(c);else if(a.length>0)throw new i.default("Invalid path: "+n,{loc:r});else".."===c&&s++}return{type:"PathExpression",data:e,depth:s,parts:a,original:n,loc:r}},t.prepareMustache=function(e,t,r,n,i,a){var s=n.charAt(3)||n.charAt(2);return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:"{"!==s&&"&"!==s,strip:i,loc:this.locInfo(a)}},t.prepareRawBlock=function(e,t,r,n){a(e,r);var i={type:"Program",body:t,strip:{},loc:n=this.locInfo(n)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},t.prepareBlock=function(e,t,r,n,s,o){n&&n.path&&a(e,n);var u=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,l=void 0;if(r){if(u)throw new i.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return s&&(s=c,c=t,t=s),{type:u?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,r,n){return a(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}};var n,i=(n=r(13769))&&n.__esModule?n:{default:n};function a(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new i.default(e.path.original+" doesn't match "+t,r)}}},26727(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=r(82871),a=n(r(13769)),s=r(82849),o=n(r(39632));function u(e){this.value=e}function c(){}c.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=i.COMPILER_REVISION,t=i.REVISION_CHANGES[e];return[e,t]},appendToBuffer:function(e,t,r){return(s.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple)?["return ",e,";"]:r?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,r,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!r,this.context=r||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,s=void 0,o=void 0,u=void 0,c=void 0;for(u=0,c=i.length;u<c;u++)s=i[u],this.source.currentLocation=s.loc,o=o||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(n);if(this.isChild)return l;var p={compiler:this.compilerInfo(),main:l};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var f=this.context,d=f.programs,h=f.decorators;for(u=0,c=d.length;u<c;u++)d[u]&&(p[u]=d[u],h[u]&&(p[u+"_d"]=h[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),n?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),t.srcName?(p=p.toStringWithSourceMap({file:t.destName})).map=p.map&&p.map.toString():p=p.toString()),p},preamble:function(){this.lastContext=0,this.source=new o.default(this.options.srcName),this.decorators=new o.default(this.options.srcName)},createFunctionContext:function(e){var t=this,r="",n=this.stackVars.concat(this.registers.list);n.length>0&&(r+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(e){var n=t.aliases[e];n.children&&n.referenceCount>1&&(r+=", alias"+ ++i+"="+e,n.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(r+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var s=this.mergeSource(r);return e?(a.push(s),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),") {\n ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,r=!this.forceBuffer,n=void 0,i=void 0,a=void 0,s=void 0;return this.source.each(function(e){e.appendToBuffer?(a?e.prepend(" + "):a=e,s=e):(a&&(i?a.prepend("buffer += "):n=!0,s.add(";"),a=s=void 0),i=!0,t||(r=!1))}),r?a?(a.prepend("return "),s.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs(e,0,r);var n=this.popStack();r.splice(1,0,n),this.push(this.source.functionCall(t,"call",r))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var r=this.topStack();t.splice(1,0,r),this.pushSource(["if (!",this.lastHelper,") { ",r," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,r,n){var i=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,r)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,r){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,r)},resolvePath:function(e,t,r,n,i){var a=this;if(this.options.strict||this.options.assumeObjects)return void this.push(function(e,t,r,n,i){var a=t.popStack(),s=r.length;for(e&&s--;n<s;n++)a=t.nameLookup(a,r[n],i);return e?[t.aliasable("container.strict"),"(",a,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:a}(this.options.strict&&i,this,t,r,e));for(var s=t.length;r<s;r++)this.replaceStack(function(i){var s=a.nameLookup(i,t[r],e);return n?[" && ",s]:[" != null ? ",s," : ",i]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var r=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(r,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,r){var n=this.popStack(),i=this.setupHelper(e,t),a=[];r&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(a,"||"),")"],o=this.source.functionCall(s,"call",i.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var r=[];r.push(e[0]);for(var n=1;n<e.length;n++)r.push(t,e[n]);return r},invokeKnownHelper:function(e,t){var r=this.setupHelper(e,t);this.push(this.source.functionCall(r.name,"call",r.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var r=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),i=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",r,")"];this.options.strict||(i[0]="(helper = ",i.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",i,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,r){var n=[],i=this.setupParams(t,1,n);e&&(t=this.popStack(),delete i.name),r&&(i.indent=JSON.stringify(r)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),r=void 0,n=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(n=this.popStack(),r=this.popStack());var a=this.hash;r&&(a.contexts[e]=r),n&&(a.types[e]=n),i&&(a.ids[e]=i),a.values[e]=t},pushId:function(e,t,r){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(r?" + "+JSON.stringify("."+r):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(e,t){for(var r=e.children,n=void 0,i=void 0,a=0,s=r.length;a<s;a++){n=r[a],i=new this.compiler;var o=this.matchExistingProgram(n);if(null==o){this.context.programs.push("");var u=this.context.programs.length;n.index=u,n.name="program"+u,this.context.programs[u]=i.compile(n,t,this.context,!this.precompile),this.context.decorators[u]=i.decorators,this.context.environments[u]=n,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=o.index,n.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,r=this.context.environments.length;t<r;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],r=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&r.push("blockParams"),this.useDepths&&r.push("depths"),"container.program("+r.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof u||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new u(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],r=void 0,n=void 0,i=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof u)t=["(",r=[s.value]],i=!0;else{n=!0;var o=this.incrStack();t=["((",this.push(o)," = ",s,")"],r=this.topStack()}var c=e.call(this,r);i||this.popStack(),n&&this.stackSlot--,this.push(t.concat(c,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,r=e.length;t<r;t++){var n=e[t];if(n instanceof u)this.compileStack.push(n);else{var i=this.incrStack();this.pushSource([i," = ",n,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),r=(t?this.inlineStack:this.compileStack).pop();if(!e&&r instanceof u)return r.value;if(!t){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return r},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof u?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?t.referenceCount++:((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1),t},setupHelper:function(e,t,r){var n=[],i=this.setupHelperArgs(t,e,n,r);return{params:n,paramsInit:i,name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,r){var n={},i=[],a=[],s=[],o=!r,u=void 0;o&&(r=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),l=this.popStack();(l||c)&&(n.fn=l||"container.noop",n.inverse=c||"container.noop");for(var p=t;p--;)u=this.popStack(),r[p]=u,this.trackIds&&(s[p]=this.popStack()),this.stringParams&&(a[p]=this.popStack(),i[p]=this.popStack());return o&&(n.args=this.source.generateArray(r)),this.trackIds&&(n.ids=this.source.generateArray(s)),this.stringParams&&(n.types=this.source.generateArray(a),n.contexts=this.source.generateArray(i)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,r,n){var i=this.setupParams(e,t,r);return(i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),n)?(this.useRegister("options"),r.push("options"),["options=",i]):r?(r.push(i),""):i}};for(var l="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),p=c.RESERVED_WORDS={},f=0,d=l.length;f<d;f++)p[l[f]]=!0;c.isValidJavaScriptVariableName=function(e){return!c.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=c,e.exports=t.default},6201(e,t){"use strict";t.__esModule=!0,t.default=function(){var e,t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=n.prepareProgram(a[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=a[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(a[o]),strip:n.stripFlags(a[o],a[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:a[o],value:a[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(a[o-2],a[o-1],a[o],this._$);break;case 12:this.$={path:a[o-3],params:a[o-2],hash:a[o-1]};break;case 13:this.$=n.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!1,this._$);break;case 14:this.$=n.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!0,this._$);break;case 15:this.$={open:a[o-5],path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:n.stripFlags(a[o-5],a[o])};break;case 16:case 17:this.$={path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:n.stripFlags(a[o-5],a[o])};break;case 18:this.$={strip:n.stripFlags(a[o-1],a[o-1]),program:a[o]};break;case 19:var u=n.prepareBlock(a[o-2],a[o-1],a[o],a[o],!1,this._$),c=n.prepareProgram([u],a[o-1].loc);c.chained=!0,this.$={strip:a[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:a[o-1],strip:n.stripFlags(a[o-2],a[o])};break;case 22:case 23:this.$=n.prepareMustache(a[o-3],a[o-2],a[o-1],a[o-4],n.stripFlags(a[o-4],a[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:a[o-3],params:a[o-2],hash:a[o-1],indent:"",strip:n.stripFlags(a[o-4],a[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(a[o-2],a[o-1],a[o],this._$);break;case 26:this.$={path:a[o-3],params:a[o-2],hash:a[o-1],strip:n.stripFlags(a[o-4],a[o])};break;case 29:this.$={type:"SubExpression",path:a[o-3],params:a[o-2],hash:a[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:a[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(a[o-2]),value:a[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(a[o-1]);break;case 35:this.$={type:"StringLiteral",value:a[o],original:a[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(a[o]),original:Number(a[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===a[o],original:"true"===a[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 42:this.$=n.preparePath(!0,a[o],this._$);break;case 43:this.$=n.preparePath(!1,a[o],this._$);break;case 44:a[o-2].push({part:n.id(a[o]),original:a[o],separator:a[o-1]}),this.$=a[o-2];break;case 45:this.$=[{part:n.id(a[o]),original:a[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:a[o-1].push(a[o]);break;case 98:case 100:this.$=[a[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw Error(e)},parse:function(e){var t=this,r=[0],n=[null],i=[],a=this.table,s="",o=0,u=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;i.push(l);var p=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var f,d,h,m,g,v,y,b,x,D={};;){if(h=r[r.length-1],this.defaultActions[h]?m=this.defaultActions[h]:(null==f&&(f=function(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}()),m=a[h]&&a[h][f]),void 0===m||!m.length||!m[0]){var w="";if(!c){for(v in x=[],a[h])this.terminals_[v]&&v>2&&x.push("'"+this.terminals_[v]+"'");w=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[f]||f,line:this.lexer.yylineno,loc:l,expected:x})}}if(m[0]instanceof Array&&m.length>1)throw Error("Parse Error: multiple actions possible at state: "+h+", token: "+f);switch(m[0]){case 1:r.push(f),n.push(this.lexer.yytext),i.push(this.lexer.yylloc),r.push(m[1]),f=null,d?(f=d,d=null):(u=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,l=this.lexer.yylloc,c>0&&c--);break;case 2:if(y=this.productions_[m[1]][1],D.$=n[n.length-y],D._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},p&&(D._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),void 0!==(g=this.performAction.call(D,s,u,o,this.yy,m[1],n,i)))return g;y&&(r=r.slice(0,-1*y*2),n=n.slice(0,-1*y),i=i.slice(0,-1*y)),r.push(this.productions_[m[1]][0]),n.push(D.$),i.push(D._$),b=a[r[r.length-2]][r[r.length-1]],r.push(b);break;case 3:return!0}}return!0}};function r(){this.yy={}}return(e={EOF:1,parseError:function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,r,n,i,a=this._currentRules(),s=0;s<a.length&&(!(r=this._input.match(this.rules[a[s]]))||t&&!(r[0].length>t[0].length)||(t=r,n=s,this.options.flex));s++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,a[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)?e:void 0:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}}).options={},e.performAction=function(e,t,r,n){function i(e,r){return t.yytext=t.yytext.substring(e,t.yyleng-r+e)}switch(r){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:if(this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1])return 15;return i(5,9),"END_RAW_BLOCK";case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],e.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},t.lexer=e,r.prototype=t,t.Parser=r,new r}(),e.exports=t.default},31350(e,t,r){"use strict";t.__esModule=!0;var n,i=(n=r(13769))&&n.__esModule?n:{default:n};function a(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function u(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}a.prototype={constructor:a,mutating:!1,acceptKey:function(e,t){var r=this.accept(e[t]);if(this.mutating){if(r&&!a.prototype[r.type])throw new i.default('Unexpected node type "'+r.type+'" found when accepting '+t+" on "+e.type);e[t]=r}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new i.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,r=e.length;t<r;t++)this.acceptKey(e,t),!e[t]&&(e.splice(t,1),t--,r--)},accept:function(e){if(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||t)return t;if(!1!==t)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:o,DecoratorBlock:o,PartialStatement:u,PartialBlockStatement:function(e){u.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=a,e.exports=t.default},70915(e,t,r){"use strict";var n;function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function a(e,t,r){void 0===t&&(t=e.length);var n=e[t-1],i=e[t-2];return n?"ContentStatement"===n.type?(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:r}function s(e,t,r){void 0===t&&(t=-1);var n=e[t+1],i=e[t+2];return n?"ContentStatement"===n.type?(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:r}function o(e,t,r){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(r||!n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}function u(e,t,r){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(r||!n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}t.__esModule=!0,i.prototype=new((n=r(31350))&&n.__esModule?n:{default:n}).default,i.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,c=n.length;i<c;i++){var l=n[i],p=this.accept(l);if(p){var f=a(n,i,r),d=s(n,i,r),h=p.openStandalone&&f,m=p.closeStandalone&&d,g=p.inlineStandalone&&f&&d;p.close&&o(n,i,!0),p.open&&u(n,i,!0),t&&g&&(o(n,i),u(n,i)&&"PartialStatement"===l.type&&(l.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&h&&(o((l.program||l.inverse).body),u(n,i)),t&&m&&(o(n,i),u((l.inverse||l.program).body))}}return e},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var c={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:s(t.body),closeStandalone:a((n||t).body)};if(e.openStrip.close&&o(t.body,null,!0),r){var l=e.inverseStrip;l.open&&u(t.body,null,!0),l.close&&o(n.body,null,!0),e.closeStrip.open&&u(i.body,null,!0),!this.options.ignoreStandalone&&a(t.body)&&s(n.body)&&(u(t.body),o(n.body))}else e.closeStrip.open&&u(t.body,null,!0);return c},i.prototype.Decorator=i.prototype.MustacheStatement=function(e){return e.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=i,e.exports=t.default},75940(e,t,r){"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){i.default(e)};var n,i=(n=r(77430))&&n.__esModule?n:{default:n}},77430(e,t,r){"use strict";t.__esModule=!0;var n=r(82849);t.default=function(e){e.registerDecorator("inline",function(e,t,r,i){var a=e;return t.partials||(t.partials={},a=function(i,a){var s=r.partials;r.partials=n.extend({},s,t.partials);var o=e(i,a);return r.partials=s,o}),t.partials[i.args[0]]=i.fn,a})},e.exports=t.default},13769(e,t){"use strict";t.__esModule=!0;var r=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function n(e,t){var i=t&&t.loc,a=void 0,s=void 0,o=void 0,u=void 0;i&&(a=i.start.line,s=i.end.line,o=i.start.column,u=i.end.column,e+=" - "+a+":"+o);for(var c=Error.prototype.constructor.call(this,e),l=0;l<r.length;l++)this[r[l]]=c[r[l]];Error.captureStackTrace&&Error.captureStackTrace(this,n);try{i&&(this.lineNumber=a,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=o,this.endColumn=u))}catch(e){}}n.prototype=Error(),t.default=n,e.exports=t.default},2277(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),a.default(e),s.default(e),o.default(e),u.default(e),c.default(e),l.default(e)},t.moveHelperToHooks=function(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])};var i=n(r(26097)),a=n(r(46785)),s=n(r(14353)),o=n(r(82355)),u=n(r(85300)),c=n(r(37466)),l=n(r(50908))},26097(e,t,r){"use strict";t.__esModule=!0;var n=r(82849);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var i=r.inverse,a=r.fn;if(!0===t)return a(this);if(!1===t||null==t)return i(this);if(n.isArray(t))if(t.length>0)return r.ids&&(r.ids=[r.name]),e.helpers.each(t,r);else return i(this);if(r.data&&r.ids){var s=n.createFrame(r.data);s.contextPath=n.appendContextPath(r.data.contextPath,r.name),r={data:s}}return a(t,r)})},e.exports=t.default},46785(e,t,r){"use strict";t.__esModule=!0;var n,i=r(82849),a=(n=r(13769))&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new a.default("Must pass iterator to #each");var r,n=t.fn,s=t.inverse,o=0,u="",c=void 0,l=void 0;function p(t,r,a){c&&(c.key=t,c.index=r,c.first=0===r,c.last=!!a,l&&(c.contextPath=l+t)),u+=n(e[t],{data:c,blockParams:i.blockParams([e[t],t],[l+t,null])})}if(t.data&&t.ids&&(l=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(c=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var f=e.length;o<f;o++)o in e&&p(o,o,o===e.length-1);else if("function"==typeof Symbol&&e[Symbol.iterator]){for(var d=[],h=e[Symbol.iterator](),m=h.next();!m.done;m=h.next())d.push(m.value);e=d;for(var f=e.length;o<f;o++)p(o,o,o===e.length-1)}else r=void 0,Object.keys(e).forEach(function(e){void 0!==r&&p(r,o-1),r=e,o++}),void 0!==r&&p(r,o-1,!0);return 0===o&&(u=s(this)),u})},e.exports=t.default},14353(e,t,r){"use strict";t.__esModule=!0;var n,i=(n=r(13769))&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("helperMissing",function(){if(1!=arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},82355(e,t,r){"use strict";t.__esModule=!0;var n,i=r(82849),a=(n=r(13769))&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return(i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e))?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,r){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})},e.exports=t.default},85300(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;null!=r.hash.level?i=r.hash.level:r.data&&null!=r.data.level&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})},e.exports=t.default},37466(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,r){return e?r.lookupProperty(e,t):e})},e.exports=t.default},50908(e,t,r){"use strict";t.__esModule=!0;var n,i=r(82849),a=(n=r(13769))&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var r=t.fn;if(i.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),r(e,{data:n,blockParams:i.blockParams([e],[n&&n.contextPath])})})},e.exports=t.default},89726(e,t,r){"use strict";t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.extend.apply(void 0,[Object.create(null)].concat(t))};var n=r(82849)},63865(e,t,r){"use strict";t.__esModule=!0,t.createProtoAccessControl=function(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,r){return"function"==typeof e?o(t.methods,r):o(t.properties,r)},t.resetLoggedProperties=function(){Object.keys(s).forEach(function(e){delete s[e]})};var n,i=r(89726),a=(n=r(40566))&&n.__esModule?n:{default:n},s=Object.create(null);function o(e,t){var r;return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(!0!==s[r=t]&&(s[r]=!0,a.default.log("error",'Handlebars: Access has been denied to resolve the property "'+r+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}},72614(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)}}},40566(e,t,r){"use strict";t.__esModule=!0;var n=r(82849),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"u">typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];console[t].apply(console,n)}}};t.default=i,e.exports=t.default},91148(e,t){"use strict";t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default},7624(e,t,r){"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,r=s.COMPILER_REVISION;if(!(t>=s.LAST_COMPATIBLE_COMPILER_REVISION)||!(t<=s.COMPILER_REVISION))if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var n=s.REVISION_CHANGES[r],i=s.REVISION_CHANGES[t];throw new a.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new a.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new a.default("No environment passed to template");if(!e||!e.main)throw new a.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&7===e.compiler[0],n={strict:function(e,t,r){if(!e||!(t in e))throw new a.default('"'+t+'" not defined in '+e,{loc:r});return n.lookupProperty(e,t)},lookupProperty:function(e,t){var r=e[t];if(null==r||Object.prototype.hasOwnProperty.call(e,t)||c.resultIsAllowed(r,n.protoAccessControl,t))return r},lookup:function(e,t){for(var r=e.length,i=0;i<r;i++)if(null!=(e[i]&&n.lookupProperty(e[i],t)))return e[i][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:i.escapeExpression,invokePartial:function(r,n,s){s.hash&&(n=i.extend({},n,s.hash),s.ids&&(s.ids[0]=!0)),r=t.VM.resolvePartial.call(this,r,n,s);var o=i.extend({},s,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),u=t.VM.invokePartial.call(this,r,n,o);if(null==u&&t.compile&&(s.partials[s.name]=t.compile(r,e.compilerOptions,t),u=s.partials[s.name](n,o)),null!=u){if(s.indent){for(var c=u.split("\n"),l=0,p=c.length;l<p&&(c[l]||l+1!==p);l++)c[l]=s.indent+c[l];u=c.join("\n")}return u}throw new a.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var r=e[t];return r.decorator=e[t+"_d"],r},programs:[],program:function(e,t,r,n,i){var a=this.programs[e],s=this.fn(e);return t||i||n||r?a=l(this,e,s,t,r,n,i):a||(a=this.programs[e]=l(this,e,s)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var r=e||t;return e&&t&&e!==t&&(r=i.extend({},t,e)),r},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function p(t){var r,i,a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=a.data;p._setup(a),!a.partial&&e.useData&&(r=t,(i=o)&&"root"in i||((i=i?s.createFrame(i):{}).root=r),o=i);var u=void 0,c=e.useBlockParams?[]:void 0;function l(t){return""+e.main(n,t,n.helpers,n.partials,o,c,u)}return e.useDepths&&(u=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(l=f(e.main,l,n,a.depths||[],o,c))(t,a)}return p.isTop=!0,p._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var s,l,p=i.extend({},t.helpers,a.helpers);s=p,l=n,Object.keys(s).forEach(function(e){var t,r,n=s[e];s[e]=(t=n,r=l.lookupProperty,u.wrapHelper(t,function(e){return i.extend({lookupProperty:r},e)}))}),n.helpers=p,e.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=i.extend({},t.decorators,a.decorators)),n.hooks={},n.protoAccessControl=c.createProtoAccessControl(a);var f=a.allowCallsToHelperMissing||r;o.moveHelperToHooks(n,"helperMissing",f),o.moveHelperToHooks(n,"blockHelperMissing",f)}},p._child=function(t,r,i,s){if(e.useBlockParams&&!i)throw new a.default("must pass block params");if(e.useDepths&&!s)throw new a.default("must pass parent depths");return l(n,t,e[t],r,0,i,s)},p},t.wrapProgram=l,t.resolvePartial=function(e,t,r){return e?e.call||r.name||(r.name=e,e=r.partials[e]):e="@partial-block"===r.name?r.data["partial-block"]:r.partials[r.name],e},t.invokePartial=function(e,t,r){var n,o=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var u=void 0;if(r.fn&&r.fn!==p&&(r.data=s.createFrame(r.data),n=r.fn,u=r.data["partial-block"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.data=s.createFrame(t.data),t.data["partial-block"]=o,n(e,t)},n.partials&&(r.partials=i.extend({},r.partials,n.partials))),void 0===e&&u&&(e=u),void 0===e)throw new a.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)},t.noop=p;var n,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(82849)),a=(n=r(13769))&&n.__esModule?n:{default:n},s=r(82871),o=r(2277),u=r(72614),c=r(63865);function l(e,t,r,n,i,a,s){function o(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return s&&t!=s[0]&&(t!==e.nullContext||null!==s[0])&&(o=[t].concat(s)),r(e,t,e.helpers,e.partials,i.data||n,a&&[i.blockParams].concat(a),o)}return(o=f(r,o,e,s,n,a)).program=t,o.depth=s?s.length:0,o.blockParams=i||0,o}function p(){return""}function f(e,t,r,n,a,s){if(e.decorator){var o={};t=e.decorator(t,o,r,n&&n[0],a,s,n),i.extend(t,o)}return t}},19613(e,t){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},82849(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return i.test(e)?e.replace(n,a):e},t.isEmpty=function(e){return!e&&0!==e||!!c(e)&&0===e.length},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},n=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return r[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var o=Object.prototype.toString;t.toString=o;var u=function(e){return"function"==typeof e};u(/x/)&&(t.isFunction=u=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=u;var c=Array.isArray||function(e){return!!e&&"object"==typeof e&&"[object Array]"===o.call(e)};t.isArray=c},31880(e){e.exports=function e(t,r){"use strict";var n,i,a=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,s=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,u=/^0x[0-9a-f]+$/i,c=/^0/,l=function(t){return e.insensitive&&(""+t).toLowerCase()||""+t},p=l(t).replace(s,"")||"",f=l(r).replace(s,"")||"",d=p.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),h=f.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(p.match(u),16)||1!==d.length&&p.match(o)&&Date.parse(p),g=parseInt(f.match(u),16)||m&&f.match(o)&&Date.parse(f)||null;if(g){if(m<g)return -1;else if(m>g)return 1}for(var v=0,y=Math.max(d.length,h.length);v<y;v++){if(n=!(d[v]||"").match(c)&&parseFloat(d[v])||d[v]||0,i=!(h[v]||"").match(c)&&parseFloat(h[v])||h[v]||0,isNaN(n)!==isNaN(i))return isNaN(n)?1:-1;if(typeof n!=typeof i&&(n+="",i+=""),n<i)return -1;if(n>i)return 1}return 0}},16572(e){e.exports=function(){var e=function(e,t){var r=Array.prototype.concat,n=Array.prototype.slice,i=Object.prototype.toString;function a(t,r){var n=t>r?t:r;return e.pow(10,17-~~(e.log(n>0?n:-n)*e.LOG10E))}var s=Array.isArray||function(e){return"[object Array]"===i.call(e)};function o(e){return"[object Function]"===i.call(e)}function u(e){return"number"==typeof e&&e-e==0}function c(){return new c._init(arguments)}function l(){return 0}function p(){return 1}function f(e,t){return+(e===t)}c.fn=c.prototype,c._init=function(e){if(s(e[0]))if(s(e[0][0])){o(e[1])&&(e[0]=c.map(e[0],e[1]));for(var t=0;t<e[0].length;t++)this[t]=e[0][t];this.length=e[0].length}else this[0]=o(e[1])?c.map(e[0],e[1]):e[0],this.length=1;else if(u(e[0]))this[0]=c.seq.apply(null,e),this.length=1;else{if(e[0]instanceof c)return c(e[0].toArray());this[0]=[],this.length=1}return this},c._init.prototype=c.prototype,c._init.constructor=c,c.utils={calcRdx:a,isArray:s,isFunction:o,isNumber:u,toVector:function(e){return r.apply([],e)}},c._random_fn=e.random,c.setRandom=function(e){if("function"!=typeof e)throw TypeError("fn is not a function");c._random_fn=e},c.extend=function(e){var t,r;if(1==arguments.length){for(r in e)c[r]=e[r];return this}for(t=1;t<arguments.length;t++)for(r in arguments[t])e[r]=arguments[t][r];return e},c.rows=function(e){return e.length||1},c.cols=function(e){return e[0].length||1},c.dimensions=function(e){return{rows:c.rows(e),cols:c.cols(e)}},c.row=function(e,t){return s(t)?t.map(function(t){return c.row(e,t)}):e[t]},c.rowa=function(e,t){return c.row(e,t)},c.col=function(e,t){if(s(t)){var r=c.arange(e.length).map(function(){return Array(t.length)});return t.forEach(function(t,n){c.arange(e.length).forEach(function(i){r[i][n]=e[i][t]})}),r}for(var n=Array(e.length),i=0;i<e.length;i++)n[i]=[e[i][t]];return n},c.cola=function(e,t){return c.col(e,t).map(function(e){return e[0]})},c.diag=function(e){for(var t=c.rows(e),r=Array(t),n=0;n<t;n++)r[n]=[e[n][n]];return r},c.antidiag=function(e){for(var t=c.rows(e)-1,r=Array(t),n=0;t>=0;t--,n++)r[n]=[e[n][t]];return r},c.transpose=function(e){var t,r,n,i,a,o=[];for(s(e[0])||(e=[e]),r=e.length,n=e[0].length,a=0;a<n;a++){for(i=0,t=Array(r);i<r;i++)t[i]=e[i][a];o.push(t)}return 1===o.length?o[0]:o},c.map=function(e,t,r){var n,i,a,o,u;for(s(e[0])||(e=[e]),i=e.length,a=e[0].length,o=r?e:Array(i),n=0;n<i;n++)for(o[n]||(o[n]=Array(a)),u=0;u<a;u++)o[n][u]=t(e[n][u],n,u);return 1===o.length?o[0]:o},c.cumreduce=function(e,t,r){var n,i,a,o,u;for(s(e[0])||(e=[e]),i=e.length,a=e[0].length,o=r?e:Array(i),n=0;n<i;n++)for(o[n]||(o[n]=Array(a)),a>0&&(o[n][0]=e[n][0]),u=1;u<a;u++)o[n][u]=t(o[n][u-1],e[n][u]);return 1===o.length?o[0]:o},c.alter=function(e,t){return c.map(e,t,!0)},c.create=function(e,t,r){var n,i,a=Array(e);for(o(t)&&(r=t,t=e),n=0;n<e;n++)for(i=0,a[n]=Array(t);i<t;i++)a[n][i]=r(n,i);return a},c.zeros=function(e,t){return u(t)||(t=e),c.create(e,t,l)},c.ones=function(e,t){return u(t)||(t=e),c.create(e,t,p)},c.rand=function(e,t){return u(t)||(t=e),c.create(e,t,c._random_fn)},c.identity=function(e,t){return u(t)||(t=e),c.create(e,t,f)},c.symmetric=function(e){var t,r,n=e.length;if(e.length!==e[0].length)return!1;for(t=0;t<n;t++)for(r=0;r<n;r++)if(e[r][t]!==e[t][r])return!1;return!0},c.clear=function(e){return c.alter(e,l)},c.seq=function(e,t,r,n){o(n)||(n=!1);var i,s=[],u=a(e,t),c=(t*u-e*u)/((r-1)*u),l=e;for(i=0;l<=t&&i<r;l=(e*u+c*u*++i)/u)s.push(n?n(l,i):l);return s},c.arange=function(e,r,n){var i,a=[];if(n=n||1,t===r&&(r=e,e=0),e===r||0===n||e<r&&n<0||e>r&&n>0)return[];if(n>0)for(i=e;i<r;i+=n)a.push(i);else for(i=e;i>r;i+=n)a.push(i);return a},c.slice=function(){function e(e,r,n,i){var a,s=[],o=e.length;if(t===r&&t===n&&t===i)return c.copy(e);if(r=r||0,n=n||e.length,i=i||1,(r=r>=0?r:o+r)===(n=n>=0?n:o+n)||0===i||r<n&&i<0||r>n&&i>0)return[];if(i>0)for(a=r;a<n;a+=i)s.push(e[a]);else for(a=r;a>n;a+=i)s.push(e[a]);return s}return function(t,r){if(u((r=r||{}).row)){var n,i;if(u(r.col))return t[r.row][r.col];return e(c.rowa(t,r.row),(n=r.col||{}).start,n.end,n.step)}return u(r.col)?e(c.cola(t,r.col),(i=r.row||{}).start,i.end,i.step):(i=r.row||{},n=r.col||{},e(t,i.start,i.end,i.step).map(function(t){return e(t,n.start,n.end,n.step)}))}}(),c.sliceAssign=function(r,n,i){var a,s;if(u(n.row)){if(u(n.col))return r[n.row][n.col]=i;n.col=n.col||{},n.col.start=n.col.start||0,n.col.end=n.col.end||r[0].length,n.col.step=n.col.step||1,a=c.arange(n.col.start,e.min(r.length,n.col.end),n.col.step);var o=n.row;return a.forEach(function(e,t){r[o][e]=i[t]}),r}if(u(n.col)){n.row=n.row||{},n.row.start=n.row.start||0,n.row.end=n.row.end||r.length,n.row.step=n.row.step||1,s=c.arange(n.row.start,e.min(r[0].length,n.row.end),n.row.step);var l=n.col;return s.forEach(function(e,t){r[e][l]=i[t]}),r}return i[0].length===t&&(i=[i]),n.row.start=n.row.start||0,n.row.end=n.row.end||r.length,n.row.step=n.row.step||1,n.col.start=n.col.start||0,n.col.end=n.col.end||r[0].length,n.col.step=n.col.step||1,s=c.arange(n.row.start,e.min(r.length,n.row.end),n.row.step),a=c.arange(n.col.start,e.min(r[0].length,n.col.end),n.col.step),s.forEach(function(e,t){a.forEach(function(n,a){r[e][n]=i[t][a]})}),r},c.diagonal=function(e){var t=c.zeros(e.length,e.length);return e.forEach(function(e,r){t[r][r]=e}),t},c.copy=function(e){return e.map(function(e){return u(e)?e:e.map(function(e){return e})})};var d=c.prototype;d.length=0,d.push=Array.prototype.push,d.sort=Array.prototype.sort,d.splice=Array.prototype.splice,d.slice=Array.prototype.slice,d.toArray=function(){return this.length>1?n.call(this):n.call(this)[0]},d.map=function(e,t){return c(c.map(this,e,t))},d.cumreduce=function(e,t){return c(c.cumreduce(this,e,t))},d.alter=function(e){return c.alter(this,e),this};for(var h="transpose clear symmetric rows cols dimensions diag antidiag".split(" "),m=0;m<h.length;m++)!function(e){d[e]=function(t){var r,n=this;return t?(setTimeout(function(){t.call(n,d[e].call(n))}),this):s(r=c[e](this))?c(r):r}}(h[m]);for(var g="row col".split(" "),v=0;v<g.length;v++)!function(e){d[e]=function(t,r){var n=this;return r?(setTimeout(function(){r.call(n,d[e].call(n,t))}),this):c(c[e](this,t))}}(g[v]);for(var y="create zeros ones rand identity".split(" "),b=0;b<y.length;b++)!function(e){d[e]=function(){return c(c[e].apply(null,arguments))}}(y[b]);return c}(Math);!function(e,t){var r=e.utils.isFunction;function n(e,t){return e-t}function i(e,r,n){return t.max(r,t.min(e,n))}e.sum=function(e){for(var t=0,r=e.length;--r>=0;)t+=e[r];return t},e.sumsqrd=function(e){for(var t=0,r=e.length;--r>=0;)t+=e[r]*e[r];return t},e.sumsqerr=function(t){for(var r,n=e.mean(t),i=0,a=t.length;--a>=0;)i+=(r=t[a]-n)*r;return i},e.sumrow=function(e){for(var t=0,r=e.length;--r>=0;)t+=e[r];return t},e.product=function(e){for(var t=1,r=e.length;--r>=0;)t*=e[r];return t},e.min=function(e){for(var t=e[0],r=0;++r<e.length;)e[r]<t&&(t=e[r]);return t},e.max=function(e){for(var t=e[0],r=0;++r<e.length;)e[r]>t&&(t=e[r]);return t},e.unique=function(e){for(var t={},r=[],n=0;n<e.length;n++)t[e[n]]||(t[e[n]]=!0,r.push(e[n]));return r},e.mean=function(t){return e.sum(t)/t.length},e.meansqerr=function(t){return e.sumsqerr(t)/t.length},e.geomean=function(r){var n=r.map(t.log),i=e.mean(n);return t.exp(i)},e.median=function(e){var t=e.length,r=e.slice().sort(n);return 1&t?r[t/2|0]:(r[t/2-1]+r[t/2])/2},e.cumsum=function(t){return e.cumreduce(t,function(e,t){return e+t})},e.cumprod=function(t){return e.cumreduce(t,function(e,t){return e*t})},e.diff=function(e){var t,r=[],n=e.length;for(t=1;t<n;t++)r.push(e[t]-e[t-1]);return r},e.rank=function(e){var t,r=[],i={};for(t=0;t<e.length;t++){var a=e[t];i[a]?i[a]++:(i[a]=1,r.push(a))}var s=r.sort(n),o={},u=1;for(t=0;t<s.length;t++){var a=s[t],c=i[a],l=(u+(u+c-1))/2;o[a]=l,u+=c}return e.map(function(e){return o[e]})},e.mode=function(e){var t,r=e.length,i=e.slice().sort(n),a=1,s=0,o=0,u=[];for(t=0;t<r;t++)i[t]===i[t+1]?a++:(a>s?(u=[i[t]],s=a,o=0):a===s&&(u.push(i[t]),o++),a=1);return 0===o?u[0]:u},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,r){return e.sumsqerr(t)/(t.length-!!r)},e.pooledvariance=function(t){return t.reduce(function(t,r){return t+e.sumsqerr(r)},0)/(t.reduce(function(e,t){return e+t.length},0)-t.length)},e.deviation=function(t){for(var r=e.mean(t),n=t.length,i=Array(n),a=0;a<n;a++)i[a]=t[a]-r;return i},e.stdev=function(r,n){return t.sqrt(e.variance(r,n))},e.pooledstdev=function(r){return t.sqrt(e.pooledvariance(r))},e.meandev=function(r){for(var n=e.mean(r),i=[],a=r.length-1;a>=0;a--)i.push(t.abs(r[a]-n));return e.mean(i)},e.meddev=function(r){for(var n=e.median(r),i=[],a=r.length-1;a>=0;a--)i.push(t.abs(r[a]-n));return e.median(i)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var r=e.length,i=e.slice().sort(n);return[i[t.round(r/4)-1],i[t.round(r/2)-1],i[t.round(3*r/4)-1]]},e.quantiles=function(e,r,a,s){var o,u,c,l,p,f,d=e.slice().sort(n),h=[r.length],m=e.length;for(void 0===a&&(a=3/8),void 0===s&&(s=3/8),o=0;o<r.length;o++)c=a+(u=r[o])*(1-a-s),l=m*u+c,p=t.floor(i(l,1,m-1)),f=i(l-p,0,1),h[o]=(1-f)*d[p-1]+f*d[p];return h},e.percentile=function(e,t,r){var i=e.slice().sort(n),a=t*(i.length+(r?1:-1))+ +!r,s=parseInt(a);return s+1<i.length?i[s-1]+(a-s)*(i[s]-i[s-1]):i[s-1]},e.percentileOfScore=function(e,t,r){var n,i,a=0,s=e.length,o=!1;for("strict"===r&&(o=!0),i=0;i<s;i++)n=e[i],(o&&n<t||!o&&n<=t)&&a++;return a/s},e.histogram=function(r,n){n=n||4;var i,a=e.min(r),s=(e.max(r)-a)/n,o=r.length,u=[];for(i=0;i<n;i++)u[i]=0;for(i=0;i<o;i++)u[t.min(t.floor((r[i]-a)/s),n-1)]+=1;return u},e.covariance=function(t,r){var n,i=e.mean(t),a=e.mean(r),s=t.length,o=Array(s);for(n=0;n<s;n++)o[n]=(t[n]-i)*(r[n]-a);return e.sum(o)/(s-1)},e.corrcoeff=function(t,r){return e.covariance(t,r)/e.stdev(t,1)/e.stdev(r,1)},e.spearmancoeff=function(t,r){return t=e.rank(t),r=e.rank(r),e.corrcoeff(t,r)},e.stanMoment=function(r,n){for(var i=e.mean(r),a=e.stdev(r),s=r.length,o=0,u=0;u<s;u++)o+=t.pow((r[u]-i)/a,n);return o/r.length},e.skewness=function(t){return e.stanMoment(t,3)},e.kurtosis=function(t){return e.stanMoment(t,4)-3};for(var a=e.prototype,s="cumsum cumprod".split(" "),o=0;o<s.length;o++)!function(t){a[t]=function(n,i){var s=[],o=0,u=this;if(r(n)&&(i=n,n=!1),i)return setTimeout(function(){i.call(u,a[t].call(u,n))}),this;if(this.length>1){for(u=!0===n?this:this.transpose();o<u.length;o++)s[o]=e[t](u[o]);return s}return e[t](this[0],n)}}(s[o]);for(var u="sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" "),c=0;c<u.length;c++)!function(t){a[t]=function(n,i){var s=[],o=0,u=this;if(r(n)&&(i=n,n=!1),i)return setTimeout(function(){i.call(u,a[t].call(u,n))}),this;if(this.length>1){for("sumrow"!==t&&(u=!0===n?this:this.transpose());o<u.length;o++)s[o]=e[t](u[o]);return!0===n?e[t](e.utils.toVector(s)):s}return e[t](this[0],n)}}(u[c]);for(var l="quantiles percentileOfScore".split(" "),p=0;p<l.length;p++)!function(t){a[t]=function(){var n,i=[],s=0,o=this,u=Array.prototype.slice.call(arguments);if(r(u[u.length-1])){n=u[u.length-1];var c=u.slice(0,u.length-1);return setTimeout(function(){n.call(o,a[t].apply(o,c))}),this}n=void 0;var l=function(r){return e[t].apply(o,[r].concat(u))};if(this.length>1){for(o=o.transpose();s<o.length;s++)i[s]=l(o[s]);return i}return l(this[0])}}(l[p])}(e,Math);var t=Math;e.gammaln=function(e){var r,n,i=0,a=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],s=1.000000000190015;for(n=(r=e)+5.5,n-=(e+.5)*t.log(n);i<6;i++)s+=a[i]/++r;return t.log(2.5066282746310007*s/e)-n},e.loggam=function(e){var r,n,i,a,s,o,u,c=[.08333333333333333,-.002777777777777778,7936507936507937e-19,-5952380952380952e-19,8417508417508418e-19,-.001917526917526918,.00641025641025641,-.02955065359477124,.1796443723688307,-1.3924322169059];if(r=e,u=0,1==e||2==e)return 0;for(e<=7&&(u=t.floor(7-e),r=e+u),n=1/(r*r),i=2*t.PI,s=c[9],o=8;o>=0;o--)s*=n,s+=c[o];if(a=s/r+.5*t.log(i)+(r-.5)*t.log(r)-r,e<=7)for(o=1;o<=u;o++)a-=t.log(r-1),r-=1;return a},e.gammafn=function(e){var r,n,i,a,s=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],o=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],u=!1,c=0,l=0,p=0,f=e;if(e>171.6243769536076)return 1/0;if(f<=0){if(!(a=f%1+36e-17))return 1/0;u=(1&f?-1:1)*t.PI/t.sin(t.PI*a),f=1-f}for(r=0,i=f,n=f<1?f++:(f-=c=(0|f)-1)-1;r<8;++r)p=(p+s[r])*n,l=l*n+o[r];if(a=p/l+1,i<f)a/=i;else if(i>f)for(r=0;r<c;++r)a*=f,f++;return u&&(a=u/a),a},e.gammap=function(t,r){return e.lowRegGamma(t,r)*e.gammafn(t)},e.lowRegGamma=function(r,n){var i,a=e.gammaln(r),s=r,o=1/r,u=o,c=n+1-r,l=1/1e-30,p=1/c,f=p,d=1,h=-~(8.5*t.log(r>=1?r:1/r)+.4*r+17);if(n<0||r<=0)return NaN;if(n<r+1){for(;d<=h;d++)o+=u*=n/++s;return o*t.exp(-n+r*t.log(n)-a)}for(;d<=h;d++)c+=2,f*=(p=1/(p=(i=-d*(d-r))*p+c))*(l=c+i/l);return 1-f*t.exp(-n+r*t.log(n)-a)},e.factorialln=function(t){return t<0?NaN:e.gammaln(t+1)},e.factorial=function(t){return t<0?NaN:e.gammafn(t+1)},e.combination=function(r,n){return r>170||n>170?t.exp(e.combinationln(r,n)):e.factorial(r)/e.factorial(n)/e.factorial(r-n)},e.combinationln=function(t,r){return e.factorialln(t)-e.factorialln(r)-e.factorialln(t-r)},e.permutation=function(t,r){return e.factorial(t)/e.factorial(t-r)},e.betafn=function(r,n){if(!(r<=0)&&!(n<=0))return r+n>170?t.exp(e.betaln(r,n)):e.gammafn(r)*e.gammafn(n)/e.gammafn(r+n)},e.betaln=function(t,r){return e.gammaln(t)+e.gammaln(r)-e.gammaln(t+r)},e.betacf=function(e,r,n){var i,a,s,o,u=1,c=r+n,l=r+1,p=r-1,f=1,d=1-c*e/l;for(1e-30>t.abs(d)&&(d=1e-30),o=d=1/d;u<=100&&(i=2*u,d=1+(a=u*(n-u)*e/((p+i)*(r+i)))*d,1e-30>t.abs(d)&&(d=1e-30),f=1+a/f,1e-30>t.abs(f)&&(f=1e-30),o*=(d=1/d)*f,d=1+(a=-(r+u)*(c+u)*e/((r+i)*(l+i)))*d,1e-30>t.abs(d)&&(d=1e-30),f=1+a/f,1e-30>t.abs(f)&&(f=1e-30),o*=s=(d=1/d)*f,!(3e-7>t.abs(s-1)));u++);return o},e.gammapinv=function(r,n){var i,a,s,o,u,c=0,l=n-1,p=e.gammaln(n);if(r>=1)return t.max(100,n+100*t.sqrt(n));if(r<=0)return 0;for(n>1?(o=t.log(l),u=t.exp(l*(o-1)-p),i=(2.30753+.27061*(a=t.sqrt(-2*t.log(r<.5?r:1-r))))/(1+a*(.99229+.04481*a))-a,r<.5&&(i=-i),i=t.max(.001,n*t.pow(1-1/(9*n)-i/(3*t.sqrt(n)),3))):i=r<(a=1-n*(.253+.12*n))?t.pow(r/a,1/n):1-t.log(1-(r-a)/(1-a));c<12;c++){if(i<=0)return 0;if(s=(e.lowRegGamma(n,i)-r)/(a=n>1?u*t.exp(-(i-l)+l*(t.log(i)-o)):t.exp(-i+l*t.log(i)-p)),(i-=a=s/(1-.5*t.min(1,s*((n-1)/i-1))))<=0&&(i=.5*(i+a)),t.abs(a)<1e-8*i)break}return i},e.erf=function(e){var r,n,i,a,s=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-946595344482036e-18,366839497852761e-18,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,15626441722e-18,-85238095915e-18,6529054439e-18,5059343495e-18,-991364156e-18,-227365122e-18,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],o=s.length-1,u=!1,c=0,l=0;for(e<0&&(e=-e,u=!0),n=4*(r=2/(2+e))-2;o>0;o--)i=c,c=n*c-l+s[o],l=i;return a=r*t.exp(-e*e+.5*(s[0]+n*c)-l),u?a-1:1-a},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(r){var n,i,a,s,o=0;if(r>=2)return -100;if(r<=0)return 100;for(s=r<1?r:2-r,n=-.70711*((2.30753+.27061*(a=t.sqrt(-2*t.log(s/2))))/(1+a*(.99229+.04481*a))-a);o<2;o++)i=e.erfc(n)-s,n+=i/(1.1283791670955126*t.exp(-n*n)-n*i);return r<1?n:-n},e.ibetainv=function(r,n,i){var a,s,o,u,c,l,p,f,d,h=n-1,m=i-1,g=0;if(r<=0)return 0;if(r>=1)return 1;for(n>=1&&i>=1?(c=(2.30753+.27061*(o=t.sqrt(-2*t.log(r<.5?r:1-r))))/(1+o*(.99229+.04481*o))-o,r<.5&&(c=-c),l=(c*c-3)/6,p=2/(1/(2*n-1)+1/(2*i-1)),f=c*t.sqrt(l+p)/p-(1/(2*i-1)-1/(2*n-1))*(l+5/6-2/(3*p)),c=n/(n+i*t.exp(2*f))):(a=t.log(n/(n+i)),s=t.log(i/(n+i)),f=(o=t.exp(n*a)/n)+(u=t.exp(i*s)/i),c=r<o/f?t.pow(n*f*r,1/n):1-t.pow(i*f*(1-r),1/i)),d=-e.gammaln(n)-e.gammaln(i)+e.gammaln(n+i);g<10&&0!==c&&1!==c&&(u=(e.ibeta(c,n,i)-r)/(o=t.exp(h*t.log(c)+m*t.log(1-c)+d)),(c-=o=u/(1-.5*t.min(1,u*(h/c-m/(1-c)))))<=0&&(c=.5*(c+o)),c>=1&&(c=.5*(c+o+1)),!(t.abs(o)<1e-8*c)||!(g>0));g++);return c},e.ibeta=function(r,n,i){var a=0===r||1===r?0:t.exp(e.gammaln(n+i)-e.gammaln(n)-e.gammaln(i)+n*t.log(r)+i*t.log(1-r));return!(r<0)&&!(r>1)&&(r<(n+1)/(n+i+2)?a*e.betacf(r,n,i)/n:1-a*e.betacf(1-r,i,n)/i)},e.randn=function(r,n){var i,a,s,o,u;if(n||(n=r),r)return e.create(r,n,function(){return e.randn()});do i=e._random_fn(),a=1.7156*(e._random_fn()-.5),u=(s=i-.449871)*s+(o=t.abs(a)+.386595)*(.196*o-.25472*s);while(u>.27597&&(u>.27846||a*a>-4*t.log(i)*i*i));return a/i},e.randg=function(r,n,i){var a,s,o,u,c,l,p=r;if(i||(i=n),r||(r=1),n)return(l=e.zeros(n,i)).alter(function(){return e.randg(r)}),l;r<1&&(r+=1),a=r-1/3,s=1/t.sqrt(9*a);do{do u=1+s*(c=e.randn());while(u<=0);u=u*u*u,o=e._random_fn()}while(o>1-.331*t.pow(c,4)&&t.log(o)>.5*c*c+a*(1-u+t.log(u)));if(r==p)return a*u;do o=e._random_fn();while(0===o);return t.pow(o,1/p)*a*u};for(var r="gammaln gammafn factorial factorialln".split(" "),n=0;n<r.length;n++)!function(t){e.fn[t]=function(){return e(e.map(this,function(r){return e[t](r)}))}}(r[n]);for(var i="randn".split(" "),a=0;a<i.length;a++)!function(t){e.fn[t]=function(){return e(e[t].apply(null,arguments))}}(i[a]);for(var s=Math,o="beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" "),u=0;u<o.length;u++)!function(t){e[t]=function e(t,r,n){return this instanceof e?(this._a=t,this._b=r,this._c=n,this):new e(t,r,n)},e.fn[t]=function(r,n,i){var a=e[t](r,n,i);return a.data=this,a},e[t].prototype.sample=function(r){var n=this._a,i=this._b,a=this._c;return r?e.alter(r,function(){return e[t].sample(n,i,a)}):e[t].sample(n,i,a)};for(var r="pdf cdf inv".split(" "),n=0;n<r.length;n++)!function(r){e[t].prototype[r]=function(n){var i=this._a,a=this._b,s=this._c;return(n||0===n||(n=this.data),"number"!=typeof n)?e.fn.map.call(n,function(n){return e[t][r](n,i,a,s)}):e[t][r](n,i,a,s)}}(r[n]);for(var i="mean median mode variance".split(" "),a=0;a<i.length;a++)!function(r){e[t].prototype[r]=function(){return e[t][r](this._a,this._b,this._c)}}(i[a])}(o[u]);function c(e,t,r,n){for(var i,a=0,o=1,u=1,c=1,l=0,p=0;s.abs((u-p)/u)>n;)p=u,a=u+(i=-(t+l)*(t+r+l)*e/(t+2*l)/(t+2*l+1))*a,o=c+i*o,l+=1,u=a+(i=l*(r-l)*e/(t+2*l-1)/(t+2*l))*u,a/=c=o+i*c,o/=c,u/=c,c=1;return u/t}function l(t,r,n){var i=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],a=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],o=.5*t;if(o>=8)return 1;var u=2*e.normal.cdf(o,0,1,1,0)-1;u=u>=s.exp(-50/n)?s.pow(u,n):0;for(var c=o,l=(8-o)/(b=t>3?2:3),p=c+l,f=0,d=n-1,h=1;h<=b;h++){for(var m=0,g=.5*(p+c),v=.5*(p-c),y=1;y<=12;y++){var b,x,D=g+v*(6<y?i[(x=12-y+1)-1]:-i[(x=y)-1]),w=D*D;if(w>60)break;var N=.5*(2*e.normal.cdf(D,0,1,1,0))-.5*(2*e.normal.cdf(D,t,1,1,0));N>=s.exp(-30/d)&&(m+=N=a[x-1]*s.exp(-(.5*w))*s.pow(N,d))}m*=2*v*n/s.sqrt(2*s.PI),f+=m,c=p,p+=l}return(u+=f)<=s.exp(-30/r)?0:(u=s.pow(u,r))>=1?1:u}e.extend(e.beta,{pdf:function(t,r,n){return t>1||t<0?0:1==r&&1==n?1:r<512&&n<512?s.pow(t,r-1)*s.pow(1-t,n-1)/e.betafn(r,n):s.exp((r-1)*s.log(t)+(n-1)*s.log(1-t)-e.betaln(r,n))},cdf:function(t,r,n){return t>1||t<0?(t>1)*1:e.ibeta(t,r,n)},inv:function(t,r,n){return e.ibetainv(t,r,n)},mean:function(e,t){return e/(e+t)},median:function(t,r){return e.ibetainv(.5,t,r)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,r){var n=e.randg(t);return n/(n+e.randg(r))},variance:function(e,t){return e*t/(s.pow(e+t,2)*(e+t+1))}}),e.extend(e.centralF,{pdf:function(t,r,n){var i;return t<0?0:r<=2?0===t&&r<2?1/0:0===t&&2===r?1:1/e.betafn(r/2,n/2)*s.pow(r/n,r/2)*s.pow(t,r/2-1)*s.pow(1+r/n*t,-(r+n)/2):(i=n/(n+t*r),r*i/2*e.binomial.pdf((r-2)/2,(r+n-2)/2,r*t/(n+t*r)))},cdf:function(t,r,n){return t<0?0:e.ibeta(r*t/(r*t+n),r/2,n/2)},inv:function(t,r,n){return n/(r*(1/e.ibetainv(t,r/2,n/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,r){return 2*e.randg(t/2)/t/(2*e.randg(r/2)/r)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,t,r){return r<0?0:r/(s.pow(e-t,2)+s.pow(r,2))/s.PI},cdf:function(e,t,r){return s.atan((e-t)/r)/s.PI+.5},inv:function(e,t,r){return t+r*s.tan(s.PI*(e-.5))},median:function(e){return e},mode:function(e){return e},sample:function(t,r){return e.randn()*s.sqrt(1/(2*e.randg(.5)))*r+t}}),e.extend(e.chisquare,{pdf:function(t,r){return t<0?0:0===t&&2===r?.5:s.exp((r/2-1)*s.log(t)-t/2-r/2*s.log(2)-e.gammaln(r/2))},cdf:function(t,r){return t<0?0:e.lowRegGamma(r/2,t/2)},inv:function(t,r){return 2*e.gammapinv(t,.5*r)},mean:function(e){return e},median:function(e){return e*s.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,t){return e<0?0:t*s.exp(-t*e)},cdf:function(e,t){return e<0?0:1-s.exp(-t*e)},inv:function(e,t){return-s.log(1-e)/t},mean:function(e){return 1/e},median:function(e){return 1/e*s.log(2)},mode:function(){return 0},sample:function(t){return -1/t*s.log(e._random_fn())},variance:function(e){return s.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(t,r,n){return t<0?0:0===t&&1===r?1/n:s.exp((r-1)*s.log(t)-t/n-e.gammaln(r)-r*s.log(n))},cdf:function(t,r,n){return t<0?0:e.lowRegGamma(r,t/n)},inv:function(t,r,n){return e.gammapinv(t,r)*n},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,r){return e.randg(t)*r},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(t,r,n){return t<=0?0:s.exp(-(r+1)*s.log(t)-n/t-e.gammaln(r)+r*s.log(n))},cdf:function(t,r,n){return t<=0?0:1-e.lowRegGamma(r,n/t)},inv:function(t,r,n){return n/e.gammapinv(1-t,r)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,r){return r/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,t,r){return 0===e&&1===t?r:1===e&&1===r?t:s.exp(s.log(t)+s.log(r)+(t-1)*s.log(e)+(r-1)*s.log(1-s.pow(e,t)))},cdf:function(e,t,r){return e<0?0:e>1?1:1-s.pow(1-s.pow(e,t),r)},inv:function(e,t,r){return s.pow(1-s.pow(1-e,1/r),1/t)},mean:function(t,r){return r*e.gammafn(1+1/t)*e.gammafn(r)/e.gammafn(1+1/t+r)},median:function(e,t){return s.pow(1-s.pow(2,-1/t),1/e)},mode:function(e,t){if(e>=1&&t>=1&&1!==e&&1!==t)return s.pow((e-1)/(e*t-1),1/e)},variance:function(){throw Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,t,r){return e<=0?0:s.exp(-s.log(e)-.5*s.log(2*s.PI)-s.log(r)-s.pow(s.log(e)-t,2)/(2*r*r))},cdf:function(t,r,n){return t<0?0:.5+.5*e.erf((s.log(t)-r)/s.sqrt(2*n*n))},inv:function(t,r,n){return s.exp(-1.4142135623730951*n*e.erfcinv(2*t)+r)},mean:function(e,t){return s.exp(e+t*t/2)},median:function(e){return s.exp(e)},mode:function(e,t){return s.exp(e-t*t)},sample:function(t,r){return s.exp(e.randn()*r+t)},variance:function(e,t){return(s.exp(t*t)-1)*s.exp(2*e+t*t)}}),e.extend(e.noncentralt,{pdf:function(t,r,n){return 1e-14>s.abs(n)?e.studentt.pdf(t,r):1e-14>s.abs(t)?s.exp(e.gammaln((r+1)/2)-n*n/2-.5*s.log(s.PI*r)-e.gammaln(r/2)):r/t*(e.noncentralt.cdf(t*s.sqrt(1+2/r),r+2,n)-e.noncentralt.cdf(t,r,n))},cdf:function(t,r,n){if(1e-14>s.abs(n))return e.studentt.cdf(t,r);var i=!1;t<0&&(i=!0,n=-n);for(var a=e.normal.cdf(-n,0,1),o=1e-14+1,u=1e-14+1,c=t*t/(t*t+r),l=0,p=s.exp(-n*n/2),f=s.exp(-n*n/2-.5*s.log(2)-e.gammaln(1.5))*n;l<200||u>1e-14||o>1e-14;)u=o,l>0&&(p*=n*n/(2*l),f*=n*n/(2*(l+.5))),a+=.5*(o=p*e.beta.cdf(c,l+.5,r/2)+f*e.beta.cdf(c,l+1,r/2)),l++;return i?1-a:a}}),e.extend(e.normal,{pdf:function(e,t,r){return s.exp(-.5*s.log(2*s.PI)-s.log(r)-s.pow(e-t,2)/(2*r*r))},cdf:function(t,r,n){return .5*(1+e.erf((t-r)/s.sqrt(2*n*n)))},inv:function(t,r,n){return -1.4142135623730951*n*e.erfcinv(2*t)+r},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},sample:function(t,r){return e.randn()*r+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,t,r){return e<t?0:r*s.pow(t,r)/s.pow(e,r+1)},cdf:function(e,t,r){return e<t?0:1-s.pow(t/e,r)},inv:function(e,t,r){return t/s.pow(1-e,1/r)},mean:function(e,t){if(!(t<=1))return t*s.pow(e,t)/(t-1)},median:function(e,t){return e*(t*s.SQRT2)},mode:function(e){return e},variance:function(e,t){if(!(t<=2))return e*e*t/(s.pow(t-1,2)*(t-2))}}),e.extend(e.studentt,{pdf:function(t,r){return r=r>1e100?1e100:r,1/(s.sqrt(r)*e.betafn(.5,r/2))*s.pow(1+t*t/r,-((r+1)/2))},cdf:function(t,r){var n=r/2;return e.ibeta((t+s.sqrt(t*t+r))/(2*s.sqrt(t*t+r)),n,n)},inv:function(t,r){var n=e.ibetainv(2*s.min(t,1-t),.5*r,.5);return n=s.sqrt(r*(1-n)/n),t>.5?n:-n},mean:function(e){return e>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(t){return e.randn()*s.sqrt(t/(2*e.randg(t/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,t,r){return e<0||t<0||r<0?0:r/t*s.pow(e/t,r-1)*s.exp(-s.pow(e/t,r))},cdf:function(e,t,r){return e<0?0:1-s.exp(-s.pow(e/t,r))},inv:function(e,t,r){return t*s.pow(-s.log(1-e),1/r)},mean:function(t,r){return t*e.gammafn(1+1/r)},median:function(e,t){return e*s.pow(s.log(2),1/t)},mode:function(e,t){return t<=1?0:e*s.pow((t-1)/t,1/t)},sample:function(t,r){return t*s.pow(-s.log(e._random_fn()),1/r)},variance:function(t,r){return t*t*e.gammafn(1+2/r)-s.pow(e.weibull.mean(t,r),2)}}),e.extend(e.uniform,{pdf:function(e,t,r){return e<t||e>r?0:1/(r-t)},cdf:function(e,t,r){return e<t?0:e<r?(e-t)/(r-t):1},inv:function(e,t,r){return t+e*(r-t)},mean:function(e,t){return .5*(e+t)},median:function(t,r){return e.mean(t,r)},mode:function(){throw Error("mode is not yet implemented")},sample:function(t,r){return t/2+r/2+(r/2-t/2)*(2*e._random_fn()-1)},variance:function(e,t){return s.pow(t-e,2)/12}}),e.extend(e.binomial,{pdf:function(t,r,n){return 0===n||1===n?+(r*n===t):e.combination(r,t)*s.pow(n,t)*s.pow(1-n,r-t)},cdf:function(t,r,n){if(t<0)return 0;if(t>=r)return 1;if(n<0||n>1||r<=0)return NaN;var i,a=(t=s.floor(t))+1,o=r-t,u=a+o,l=s.exp(e.gammaln(u)-e.gammaln(o)-e.gammaln(a)+a*s.log(n)+o*s.log(1-n));return i=n<(a+1)/(u+2)?l*c(n,a,o,1e-10):1-l*c(1-n,o,a,1e-10),s.round(1e10*(1-i))/1e10}}),e.extend(e.negbin,{pdf:function(t,r,n){return t===t>>>0&&(t<0?0:e.combination(t+r-1,r-1)*s.pow(1-n,t)*s.pow(n,r))},cdf:function(t,r,n){var i=0,a=0;if(t<0)return 0;for(;a<=t;a++)i+=e.negbin.pdf(a,r,n);return i}}),e.extend(e.hypgeom,{pdf:function(t,r,n,i){if(t!=t|0)return!1;if(t<0||t<n-(r-i))return 0;if(t>i||t>n)return 0;if(2*n>r)if(2*i>r)return e.hypgeom.pdf(r-n-i+t,r,r-n,r-i);else return e.hypgeom.pdf(i-t,r,r-n,i);if(2*i>r)return e.hypgeom.pdf(n-t,r,n,r-i);if(n<i)return e.hypgeom.pdf(t,r,i,n);for(var a=1,o=0,u=0;u<t;u++){for(;a>1&&o<i;)a*=1-n/(r-o),o++;a*=(i-u)*(n-u)/((u+1)*(r-n-i+u+1))}for(;o<i;o++)a*=1-n/(r-o);return s.min(1,s.max(0,a))},cdf:function(t,r,n,i){if(t<0||t<n-(r-i))return 0;if(t>=i||t>=n)return 1;if(2*n>r)if(2*i>r)return e.hypgeom.cdf(r-n-i+t,r,r-n,r-i);else return 1-e.hypgeom.cdf(i-t-1,r,r-n,i);if(2*i>r)return 1-e.hypgeom.cdf(n-t-1,r,n,r-i);if(n<i)return e.hypgeom.cdf(t,r,i,n);for(var a=1,o=1,u=0,c=0;c<t;c++){for(;a>1&&u<i;){var l=1-n/(r-u);o*=l,a*=l,u++}o*=(i-c)*(n-c)/((c+1)*(r-n-i+c+1)),a+=o}for(;u<i;u++)a*=1-n/(r-u);return s.min(1,s.max(0,a))}}),e.extend(e.poisson,{pdf:function(t,r){return r<0||t%1!=0||t<0?0:s.pow(r,t)*s.exp(-r)/e.factorial(t)},cdf:function(t,r){var n=[],i=0;if(t<0)return 0;for(;i<=t;i++)n.push(e.poisson.pdf(i,r));return e.sum(n)},mean:function(e){return e},variance:function(e){return e},sampleSmall:function(t){var r=1,n=0,i=s.exp(-t);do n++,r*=e._random_fn();while(r>i);return n-1},sampleLarge:function(t){var r,n,i,a,o,u,c,l,p,f;for(a=s.sqrt(t),o=s.log(t),u=-.059+.02483*(c=.931+2.53*a),l=1.1239+1.1328/(c-3.4),p=.9277-3.6224/(c-2);;){if(n=s.random()-.5,i=s.random(),f=.5-s.abs(n),r=s.floor((2*u/f+c)*n+t+.43),f>=.07&&i<=p)return r;if(!(r<0)&&(!(f<.013)||!(i>f))&&s.log(i)+s.log(l)-s.log(u/(f*f)+c)<=-t+r*o-e.loggam(r+1))return r}},sample:function(e){return e<10?this.sampleSmall(e):this.sampleLarge(e)}}),e.extend(e.triangular,{pdf:function(e,t,r,n){return r<=t||n<t||n>r?NaN:e<t||e>r?0:e<n?2*(e-t)/((r-t)*(n-t)):e===n?2/(r-t):2*(r-e)/((r-t)*(r-n))},cdf:function(e,t,r,n){return r<=t||n<t||n>r?NaN:e<=t?0:e>=r?1:e<=n?s.pow(e-t,2)/((r-t)*(n-t)):1-s.pow(r-e,2)/((r-t)*(r-n))},inv:function(e,t,r,n){return r<=t||n<t||n>r?NaN:e<=(n-t)/(r-t)?t+(r-t)*s.sqrt((n-t)/(r-t)*e):t+(r-t)*(1-s.sqrt((1-e)*(1-(n-t)/(r-t))))},mean:function(e,t,r){return(e+t+r)/3},median:function(e,t,r){return r<=(e+t)/2?t-s.sqrt((t-e)*(t-r))/s.sqrt(2):r>(e+t)/2?e+s.sqrt((t-e)*(r-e))/s.sqrt(2):void 0},mode:function(e,t,r){return r},sample:function(t,r,n){var i=e._random_fn();return i<(n-t)/(r-t)?t+s.sqrt(i*(r-t)*(n-t)):r-s.sqrt((1-i)*(r-t)*(r-n))},variance:function(e,t,r){return(e*e+t*t+r*r-e*t-e*r-t*r)/18}}),e.extend(e.arcsine,{pdf:function(e,t,r){return r<=t?NaN:e<=t||e>=r?0:2/s.PI*s.pow(s.pow(r-t,2)-s.pow(2*e-t-r,2),-.5)},cdf:function(e,t,r){return e<t?0:e<r?2/s.PI*s.asin(s.sqrt((e-t)/(r-t))):1},inv:function(e,t,r){return t+(.5-.5*s.cos(s.PI*e))*(r-t)},mean:function(e,t){return t<=e?NaN:(e+t)/2},median:function(e,t){return t<=e?NaN:(e+t)/2},mode:function(){throw Error("mode is not yet implemented")},sample:function(t,r){return(t+r)/2+(r-t)/2*s.sin(2*s.PI*e.uniform.sample(0,1))},variance:function(e,t){return t<=e?NaN:s.pow(t-e,2)/8}}),e.extend(e.laplace,{pdf:function(e,t,r){return r<=0?0:s.exp(-s.abs(e-t)/r)/(2*r)},cdf:function(e,t,r){return r<=0?0:e<t?.5*s.exp((e-t)/r):1-.5*s.exp(-(e-t)/r)},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},variance:function(e,t){return 2*t*t},sample:function(t,r){var n=e._random_fn()-.5;return t-r*(n/s.abs(n))*s.log(1-2*s.abs(n))}}),e.extend(e.tukey,{cdf:function(t,r,n){var i=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],a=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(t<=0)return 0;if(n<2||r<2)return NaN;if(!Number.isFinite(t))return 1;if(n>25e3)return l(t,1,r);var o=.5*n,u=o*s.log(n)-n*s.log(2)-e.gammaln(o),c=o-1,p=.25*n;h=n<=100?1:n<=800?.5:n<=5e3?.25:.125,u+=s.log(h);for(var f=0,d=1;d<=50;d++){for(var h,m,g,v=0,y=(2*d-1)*h,b=1;b<=16;b++)if(8<b?(m=b-8-1,g=u+c*s.log(y+i[m]*h)-(i[m]*h+y)*p):(m=b-1,g=u+c*s.log(y-i[m]*h)+(i[m]*h-y)*p),g>=-30){v+=l(8<b?t*s.sqrt((i[m]*h+y)*.5):t*s.sqrt((-(i[m]*h)+y)*.5),1,r)*a[m]*s.exp(g)}if(d*h>=1&&v<=1e-14)break;f+=v}if(v>1e-14)throw Error("tukey.cdf failed to converge");return f>1&&(f=1),f},inv:function(t,r,n){if(n<2||r<2||t<0||t>1)return NaN;if(0===t)return 0;if(1===t)return 1/0;var i,a,o,u,c,l,p=(o=.5-.5*t,c=(u=s.sqrt(s.log(1/(o*o))))+((((-453642210148e-16*u+-.204231210125)*u+-.342242088547)*u+-1)*u+.322232421088)/((((.0038560700634*u+.10353775285)*u+.531103462366)*u+.588581570495)*u+.099348462606),n<120&&(c+=(c*c*c+c)/n/4),l=.8832-.2368*c,n<120&&(l+=-1.214/n+1.208*c/n),c*(l*s.log(r-1)+1.4142)),f=e.tukey.cdf(p,r,n)-t;i=f>0?s.max(0,p-1):p+1;for(var d=e.tukey.cdf(i,r,n)-t,h=1;h<50;h++)if(a=i-d*(i-p)/(d-f),f=d,p=i,a<0&&(a=0,d=-t),d=e.tukey.cdf(a,r,n)-t,i=a,1e-4>s.abs(i-p))return a;throw Error("tukey.inv failed to converge")}}),function(e,t){var r,n,i=Array.prototype.push,a=e.utils.isArray;function s(t){return a(t)||t instanceof e}e.extend({add:function(t,r){return s(r)?(s(r[0])||(r=[r]),e.map(t,function(e,t,n){return e+r[t][n]})):e.map(t,function(e){return e+r})},subtract:function(t,r){return s(r)?(s(r[0])||(r=[r]),e.map(t,function(e,t,n){return e-r[t][n]||0})):e.map(t,function(e){return e-r})},divide:function(t,r){return s(r)?(s(r[0])||(r=[r]),e.multiply(t,e.inv(r))):e.map(t,function(e){return e/r})},multiply:function(t,r){var n,i,a,o,u,c,l,p;if(void 0===t.length&&void 0===r.length)return t*r;if(u=t.length,c=t[0].length,l=e.zeros(u,a=s(r)?r[0].length:c),p=0,s(r)){for(;p<a;p++)for(n=0;n<u;n++){for(i=0,o=0;i<c;i++)o+=t[n][i]*r[i][p];l[n][p]=o}return 1===u&&1===p?l[0][0]:l}return e.map(t,function(e){return e*r})},outer:function(t,r){return e.multiply(t.map(function(e){return[e]}),[r])},dot:function(t,r){s(t[0])||(t=[t]),s(r[0])||(r=[r]);for(var n,i,a=1===t[0].length&&1!==t.length?e.transpose(t):t,o=1===r[0].length&&1!==r.length?e.transpose(r):r,u=[],c=0,l=a.length,p=a[0].length;c<l;c++){for(i=0,u[c]=[],n=0;i<p;i++)n+=a[c][i]*o[c][i];u[c]=n}return 1===u.length?u[0]:u},pow:function(r,n){return e.map(r,function(e){return t.pow(e,n)})},exp:function(r){return e.map(r,function(e){return t.exp(e)})},log:function(r){return e.map(r,function(e){return t.log(e)})},abs:function(r){return e.map(r,function(e){return t.abs(e)})},norm:function(e,r){var n=0,i=0;for(isNaN(r)&&(r=2),s(e[0])&&(e=e[0]);i<e.length;i++)n+=t.pow(t.abs(e[i]),r);return t.pow(n,1/r)},angle:function(r,n){return t.acos(e.dot(r,n)/(e.norm(r)*e.norm(n)))},aug:function(e,t){var r,n=[];for(r=0;r<e.length;r++)n.push(e[r].slice());for(r=0;r<n.length;r++)i.apply(n[r],t[r]);return n},inv:function(t){for(var r,n=t.length,i=t[0].length,a=e.identity(n,i),s=e.gauss_jordan(t,a),o=[],u=0;u<n;u++)for(o[u]=[],r=i;r<s[0].length;r++)o[u][r-i]=s[u][r];return o},det:function e(t){if(2===t.length)return t[0][0]*t[1][1]-t[0][1]*t[1][0];for(var r=0,n=0;n<t.length;n++){for(var i=[],a=1;a<t.length;a++){i[a-1]=[];for(var s=0;s<t.length;s++)s<n?i[a-1][s]=t[a][s]:s>n&&(i[a-1][s-1]=t[a][s])}var o=n%2?-1:1;r+=e(i)*t[0][n]*o}return r},gauss_elimination:function(r,n){var i,a,s,o,u=0,c=0,l=r.length,p=r[0].length,f=1,d=0,h=[];for(u=0,i=(r=e.aug(r,n))[0].length;u<l;u++){for(a=r[u][u],c=u,o=u+1;o<p;o++)a<t.abs(r[o][u])&&(a=r[o][u],c=o);if(c!=u)for(o=0;o<i;o++)s=r[u][o],r[u][o]=r[c][o],r[c][o]=s;for(c=u+1;c<l;c++)for(f=r[c][u]/r[u][u],o=u;o<i;o++)r[c][o]=r[c][o]-f*r[u][o]}for(u=l-1;u>=0;u--){for(d=0,c=u+1;c<=l-1;c++)d+=h[c]*r[u][c];h[u]=(r[u][i-1]-d)/r[u][u]}return h},gauss_jordan:function(r,n){var i,a,s,o=e.aug(r,n),u=o.length,c=o[0].length,l=0;for(a=0;a<u;a++){var p=a;for(s=a+1;s<u;s++)t.abs(o[s][a])>t.abs(o[p][a])&&(p=s);var f=o[a];for(o[a]=o[p],o[p]=f,s=a+1;s<u;s++)for(l=o[s][a]/o[a][a],i=a;i<c;i++)o[s][i]-=o[a][i]*l}for(a=u-1;a>=0;a--){for(s=0,l=o[a][a];s<a;s++)for(i=c-1;i>a-1;i--)o[s][i]-=o[a][i]*o[s][a]/l;for(o[a][a]/=l,i=u;i<c;i++)o[a][i]/=l}return o},triaUpSolve:function(t,r){var n,i=t[0].length,a=e.zeros(1,i)[0],s=!1;return(void 0!=r[0].length&&(r=r.map(function(e){return e[0]}),s=!0),e.arange(i-1,-1,-1).forEach(function(s){n=e.arange(s+1,i).map(function(e){return a[e]*t[s][e]}),a[s]=(r[s]-e.sum(n))/t[s][s]}),s)?a.map(function(e){return[e]}):a},triaLowSolve:function(t,r){var n,i=t[0].length,a=e.zeros(1,i)[0],s=!1;return(void 0!=r[0].length&&(r=r.map(function(e){return e[0]}),s=!0),e.arange(i).forEach(function(i){n=e.arange(i).map(function(e){return t[i][e]*a[e]}),a[i]=(r[i]-e.sum(n))/t[i][i]}),s)?a.map(function(e){return[e]}):a},lu:function(t){var r,n=t.length,i=e.identity(n),a=e.zeros(t.length,t[0].length);return e.arange(n).forEach(function(e){a[0][e]=t[0][e]}),e.arange(1,n).forEach(function(s){e.arange(s).forEach(function(n){r=e.arange(n).map(function(e){return i[s][e]*a[e][n]}),i[s][n]=(t[s][n]-e.sum(r))/a[n][n]}),e.arange(s,n).forEach(function(n){r=e.arange(s).map(function(e){return i[s][e]*a[e][n]}),a[s][n]=t[r.length][n]-e.sum(r)})}),[i,a]},cholesky:function(r){var n,i=r.length,a=e.zeros(r.length,r[0].length);return e.arange(i).forEach(function(s){n=e.arange(s).map(function(e){return t.pow(a[s][e],2)}),a[s][s]=t.sqrt(r[s][s]-e.sum(n)),e.arange(s+1,i).forEach(function(t){n=e.arange(s).map(function(e){return a[s][e]*a[t][e]}),a[t][s]=(r[s][t]-e.sum(n))/a[s][s]})}),a},gauss_jacobi:function(r,n,i,a){for(var s,o,u,c,l=0,p=0,f=r.length,d=[],h=[],m=[];l<f;l++)for(p=0,d[l]=[],h[l]=[],m[l]=[];p<f;p++)l>p?(d[l][p]=r[l][p],h[l][p]=m[l][p]=0):l<p?(h[l][p]=r[l][p],d[l][p]=m[l][p]=0):(m[l][p]=r[l][p],d[l][p]=h[l][p]=0);for(u=e.multiply(e.multiply(e.inv(m),e.add(d,h)),-1),o=e.multiply(e.inv(m),n),s=i,c=e.add(e.multiply(u,i),o),l=2;t.abs(e.norm(e.subtract(c,s)))>a;)s=c,c=e.add(e.multiply(u,s),o),l++;return c},gauss_seidel:function(r,n,i,a){for(var s,o,u,c,l,p=0,f=r.length,d=[],h=[],m=[];p<f;p++)for(s=0,d[p]=[],h[p]=[],m[p]=[];s<f;s++)p>s?(d[p][s]=r[p][s],h[p][s]=m[p][s]=0):p<s?(h[p][s]=r[p][s],d[p][s]=m[p][s]=0):(m[p][s]=r[p][s],d[p][s]=h[p][s]=0);for(c=e.multiply(e.multiply(e.inv(e.add(m,d)),h),-1),u=e.multiply(e.inv(e.add(m,d)),n),o=i,l=e.add(e.multiply(c,i),u),p=2;t.abs(e.norm(e.subtract(l,o)))>a;)o=l,l=e.add(e.multiply(c,o),u),p+=1;return l},SOR:function(r,n,i,a,s){for(var o,u,c,l,p,f=0,d=r.length,h=[],m=[],g=[];f<d;f++)for(o=0,h[f]=[],m[f]=[],g[f]=[];o<d;o++)f>o?(h[f][o]=r[f][o],m[f][o]=g[f][o]=0):f<o?(m[f][o]=r[f][o],h[f][o]=g[f][o]=0):(g[f][o]=r[f][o],h[f][o]=m[f][o]=0);for(l=e.multiply(e.inv(e.add(g,e.multiply(h,s))),e.subtract(e.multiply(g,1-s),e.multiply(m,s))),c=e.multiply(e.multiply(e.inv(e.add(g,e.multiply(h,s))),n),s),u=i,p=e.add(e.multiply(l,i),c),f=2;t.abs(e.norm(e.subtract(p,u)))>a;)u=p,p=e.add(e.multiply(l,u),c),f++;return p},householder:function(r){for(var n,i,a,s,o=r.length,u=r[0].length,c=0,l=[],p=[];c<o-1;c++){for(n=0,s=c+1;s<u;s++)n+=r[s][c]*r[s][c];for(n=(r[c+1][c]>0?-1:1)*t.sqrt(n),i=t.sqrt((n*n-r[c+1][c]*n)/2),(l=e.zeros(o,1))[c+1][0]=(r[c+1][c]-n)/(2*i),a=c+2;a<o;a++)l[a][0]=r[a][c]/(2*i);p=e.subtract(e.identity(o,u),e.multiply(e.multiply(l,e.transpose(l)),2)),r=e.multiply(p,e.multiply(r,p))}return r},QR:(r=e.sum,n=e.arange,function(i){var a,s,o,u=i.length,c=i[0].length,l=e.zeros(c,c);for(s=0,i=e.copy(i);s<c;s++){for(a=0,l[s][s]=t.sqrt(r(n(u).map(function(e){return i[e][s]*i[e][s]})));a<u;a++)i[a][s]=i[a][s]/l[s][s];for(o=s+1;o<c;o++)for(a=0,l[s][o]=r(n(u).map(function(e){return i[e][s]*i[e][o]}));a<u;a++)i[a][o]=i[a][o]-i[a][s]*l[s][o]}return[i,l]}),lstsq:function(t,r){var n,i,a,s=!1;void 0===r[0].length&&(r=r.map(function(e){return[e]}),s=!0);var o=e.QR(t),u=o[0],c=o[1],l=t[0].length,p=e.slice(u,{col:{end:l}}),f=(n=e.slice(c,{row:{end:l}}),i=(n=e.copy(n)).length,a=e.identity(i),e.arange(i-1,-1,-1).forEach(function(t){e.sliceAssign(a,{row:t},e.divide(e.slice(a,{row:t}),n[t][t])),e.sliceAssign(n,{row:t},e.divide(e.slice(n,{row:t}),n[t][t])),e.arange(t).forEach(function(r){var i=e.multiply(n[r][t],-1),s=e.slice(n,{row:r}),o=e.multiply(e.slice(n,{row:t}),i);e.sliceAssign(n,{row:r},e.add(s,o));var u=e.slice(a,{row:r}),c=e.multiply(e.slice(a,{row:t}),i);e.sliceAssign(a,{row:r},e.add(u,c))})}),a),d=e.transpose(p);void 0===d[0].length&&(d=[d]);var h=e.multiply(e.multiply(f,d),r);return(void 0===h.length&&(h=[[h]]),s)?h.map(function(e){return e[0]}):h},jacobi:function(r){for(var n,i,a,s,o,u,c,l=1,p=r.length,f=e.identity(p,p),d=[];1===l;){for(n=0,o=r[0][1],a=0,s=1;n<p;n++)for(i=0;i<p;i++)n!=i&&o<t.abs(r[n][i])&&(o=t.abs(r[n][i]),a=n,s=i);for(n=1,u=r[a][a]===r[s][s]?r[a][s]>0?t.PI/4:-t.PI/4:t.atan(2*r[a][s]/(r[a][a]-r[s][s]))/2,(c=e.identity(p,p))[a][a]=t.cos(u),c[a][s]=-t.sin(u),c[s][a]=t.sin(u),c[s][s]=t.cos(u),f=e.multiply(f,c),r=e.multiply(e.multiply(e.inv(c),r),c),l=0;n<p;n++)for(i=1;i<p;i++)n!=i&&t.abs(r[n][i])>.001&&(l=1)}for(n=0;n<p;n++)d.push(r[n][n]);return[f,d]},rungekutta:function(e,t,r,n,i,a){var s,o,u,c;if(2===a)for(;n<=r;)s=t*e(n,i),o=t*e(n+t,i+s),i+=(s+o)/2,n+=t;if(4===a)for(;n<=r;)s=t*e(n,i),o=t*e(n+t/2,i+s/2),u=t*e(n+t/2,i+o/2),c=t*e(n+t,i+u),i+=(s+2*o+2*u+c)/6,n+=t;return i},romberg:function(e,r,n,i){for(var a,s,o,u,c,l=0,p=(n-r)/2,f=[],d=[],h=[];l<i/2;){for(c=e(r),o=r,u=0;o<=n;o+=p,u++)f[u]=o;for(o=1,a=f.length;o<a-1;o++)c+=(o%2!=0?4:2)*e(f[o]);c=p/3*(c+e(n)),h[l]=c,p/=2,l++}for(s=h.length,a=1;1!==s;){for(o=0;o<s-1;o++)d[o]=(t.pow(4,a)*h[o+1]-h[o])/(t.pow(4,a)-1);s=d.length,h=d,d=[],a++}return h},richardson:function(e,r,n,i){function a(e,t){for(var r,n=0,i=e.length;n<i;n++)e[n]===t&&(r=n);return r}for(var s,o,u,c,l,p=t.abs(n-e[a(e,n)+1]),f=0,d=[],h=[];i>=p;)s=a(e,n+i),o=a(e,n),d[f]=(r[s]-2*r[o]+r[2*o-s])/(i*i),i/=2,f++;for(c=d.length,u=1;1!=c;){for(l=0;l<c-1;l++)h[l]=(t.pow(4,u)*d[l+1]-d[l])/(t.pow(4,u)-1);c=h.length,d=h,h=[],u++}return d},simpson:function(e,t,r,n){for(var i,a=(r-t)/n,s=e(t),o=[],u=t,c=0,l=1;u<=r;u+=a,c++)o[c]=u;for(i=o.length;l<i-1;l++)s+=(l%2!=0?4:2)*e(o[l]);return a/3*(s+e(r))},hermite:function(e,t,r,n){for(var i,a=e.length,s=0,o=0,u=[],c=[],l=[],p=[];o<a;o++){for(i=0,u[o]=1;i<a;i++)o!=i&&(u[o]*=(n-e[i])/(e[o]-e[i]));for(i=0,c[o]=0;i<a;i++)o!=i&&(c[o]+=1/(e[o]-e[i]));l[o]=(1-2*(n-e[o])*c[o])*(u[o]*u[o]),p[o]=(n-e[o])*(u[o]*u[o]),s+=l[o]*t[o]+p[o]*r[o]}return s},lagrange:function(e,t,r){for(var n,i,a=0,s=0,o=e.length;s<o;s++){for(n=0,i=t[s];n<o;n++)s!=n&&(i*=(r-e[n])/(e[s]-e[n]));a+=i}return a},cubic_spline:function(t,r,n){for(var i,a=t.length,s=0,o=[],u=[],c=[],l=[],p=[],f=[],d=[];s<a-1;s++)p[s]=t[s+1]-t[s];for(s=1,c[0]=0;s<a-1;s++)c[s]=3/p[s]*(r[s+1]-r[s])-3/p[s-1]*(r[s]-r[s-1]);for(s=1;s<a-1;s++)o[s]=[],u[s]=[],o[s][s-1]=p[s-1],o[s][s]=2*(p[s-1]+p[s]),o[s][s+1]=p[s],u[s][0]=c[s];for(i=0,l=e.multiply(e.inv(o),u);i<a-1;i++)f[i]=(r[i+1]-r[i])/p[i]-p[i]*(l[i+1][0]+2*l[i][0])/3,d[i]=(l[i+1][0]-l[i][0])/(3*p[i]);for(i=0;i<a&&!(t[i]>n);i++);return r[i-=1]+(n-t[i])*f[i]+e.sq(n-t[i])*l[i]+(n-t[i])*e.sq(n-t[i])*d[i]},gauss_quadrature:function(){throw Error("gauss_quadrature not yet implemented")},PCA:function(t){var r,n,i=t.length,a=t[0].length,s=0,o=[],u=[],c=[],l=[],p=[],f=[],d=[],h=[],m=[],g=[];for(s=0;s<i;s++)o[s]=e.sum(t[s])/a;for(s=0;s<a;s++)for(r=0,d[s]=[];r<i;r++)d[s][r]=t[r][s]-o[r];for(s=0,d=e.transpose(d);s<i;s++)for(r=0,h[s]=[];r<i;r++)h[s][r]=e.dot([d[s]],[d[r]])/(a-1);for(s=0,m=(c=e.jacobi(h))[0],u=c[1],g=e.transpose(m);s<u.length;s++)for(r=s;r<u.length;r++)u[s]<u[r]&&(n=u[s],u[s]=u[r],u[r]=n,l=g[s],g[s]=g[r],g[r]=l);for(s=0,f=e.transpose(d);s<i;s++)for(r=0,p[s]=[];r<f.length;r++)p[s][r]=e.dot([g[s]],[f[r]]);return[t,u,g,p]}});for(var o="add divide multiply subtract dot pow exp log abs norm angle".split(" "),u=0;u<o.length;u++)!function(t){e.fn[t]=function(r,n){var i=this;return n?(setTimeout(function(){n.call(i,e.fn[t].call(i,r))},15),this):"number"==typeof e[t](this,r)?e[t](this,r):e(e[t](this,r))}}(o[u])}(e,Math);var p=Math,f=[].slice,d=e.utils.isNumber,h=e.utils.isArray;function m(e,t,r,n){if(e>1||r>1||e<=0||r<=0)throw Error("Proportions should be greater than 0 and less than 1");var i=(e*t+r*n)/(t+n);return(e-r)/p.sqrt(i*(1-i)*(1/t+1/n))}return e.extend({zscore:function(){var t=f.call(arguments);return d(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var t,r=f.call(arguments);return h(r[1])?(t=e.zscore(r[0],r[1],r[3]),1===r[2]?e.normal.cdf(-p.abs(t),0,1):2*e.normal.cdf(-p.abs(t),0,1)):r.length>2?(t=e.zscore(r[0],r[1],r[2]),1===r[3]?e.normal.cdf(-p.abs(t),0,1):2*e.normal.cdf(-p.abs(t),0,1)):(t=r[0],1===r[1]?e.normal.cdf(-p.abs(t),0,1):2*e.normal.cdf(-p.abs(t),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(t,r,n){var i=p.abs(this.zscore(t,n));return 1===r?e.normal.cdf(-i,0,1):2*e.normal.cdf(-i,0,1)}}),e.extend({tscore:function(){var t=f.call(arguments);return 4===t.length?(t[0]-t[1])/(t[2]/p.sqrt(t[3])):(t[0]-e.mean(t[1]))/(e.stdev(t[1],!0)/p.sqrt(t[1].length))},ttest:function(){var t,r=f.call(arguments);return 5===r.length?(t=p.abs(e.tscore(r[0],r[1],r[2],r[3])),1===r[4]?e.studentt.cdf(-t,r[3]-1):2*e.studentt.cdf(-t,r[3]-1)):d(r[1])?(t=p.abs(r[0]),1==r[2]?e.studentt.cdf(-t,r[1]-1):2*e.studentt.cdf(-t,r[1]-1)):(t=p.abs(e.tscore(r[0],r[1])),1==r[2]?e.studentt.cdf(-t,r[1].length-1):2*e.studentt.cdf(-t,r[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/p.sqrt(this.cols()))},ttest:function(t,r){return 1===r?1-e.studentt.cdf(p.abs(this.tscore(t)),this.cols()-1):2*e.studentt.cdf(-p.abs(this.tscore(t)),this.cols()-1)}}),e.extend({anovafscore:function(){var t,r,n,i,a,s,o,u,c=f.call(arguments);if(1===c.length){for(o=0,a=Array(c[0].length);o<c[0].length;o++)a[o]=c[0][o];c=a}for(o=0,r=[];o<c.length;o++)r=r.concat(c[o]);for(o=0,n=e.mean(r),t=0;o<c.length;o++)t+=c[o].length*p.pow(e.mean(c[o])-n,2);for(t/=c.length-1,s=0,o=0;o<c.length;o++)for(u=0,i=e.mean(c[o]);u<c[o].length;u++)s+=p.pow(c[o][u]-i,2);return t/(s/=r.length-c.length)},anovaftest:function(){var t,r,n,i,a=f.call(arguments);if(d(a[0]))return 1-e.centralF.cdf(a[0],a[1],a[2]);var s=e.anovafscore(a);for(i=0,t=a.length-1,n=0;i<a.length;i++)n+=a[i].length;return r=n-t-1,1-e.centralF.cdf(s,t,r)},ftest:function(t,r,n){return 1-e.centralF.cdf(t,r,n)}}),e.extend(e.fn,{anovafscore:function(){return e.anovafscore(this.toArray())},anovaftes:function(){var t,r=0;for(t=0;t<this.length;t++)r+=this[t].length;return e.ftest(this.anovafscore(),this.length-1,r-this.length)}}),e.extend({qscore:function(){var t,r,n,i,a,s=f.call(arguments);return d(s[0])?(t=s[0],r=s[1],n=s[2],i=s[3],a=s[4]):(t=e.mean(s[0]),r=e.mean(s[1]),n=s[0].length,i=s[1].length,a=s[2]),p.abs(t-r)/(a*p.sqrt((1/n+1/i)/2))},qtest:function(){var t,r=f.call(arguments);3===r.length?(t=r[0],r=r.slice(1)):7===r.length?(t=e.qscore(r[0],r[1],r[2],r[3],r[4]),r=r.slice(5)):(t=e.qscore(r[0],r[1],r[2]),r=r.slice(3));var n=r[0],i=r[1];return 1-e.tukey.cdf(t,i,n-i)},tukeyhsd:function(t){for(var r=e.pooledstdev(t),n=t.map(function(t){return e.mean(t)}),i=t.reduce(function(e,t){return e+t.length},0),a=[],s=0;s<t.length;++s)for(var o=s+1;o<t.length;++o){var u=e.qtest(n[s],n[o],t[s].length,t[o].length,r,i,t.length);a.push([[s,o],u])}return a}}),e.extend({normalci:function(){var t,r=f.call(arguments),n=[,,];return t=4===r.length?p.abs(e.normal.inv(r[1]/2,0,1)*r[2]/p.sqrt(r[3])):p.abs(e.normal.inv(r[1]/2,0,1)*e.stdev(r[2])/p.sqrt(r[2].length)),n[0]=r[0]-t,n[1]=r[0]+t,n},tci:function(){var t,r=f.call(arguments),n=[,,];return t=4===r.length?p.abs(e.studentt.inv(r[1]/2,r[3]-1)*r[2]/p.sqrt(r[3])):p.abs(e.studentt.inv(r[1]/2,r[2].length-1)*e.stdev(r[2],!0)/p.sqrt(r[2].length)),n[0]=r[0]-t,n[1]=r[0]+t,n},significant:function(e,t){return e<t}}),e.extend(e.fn,{normalci:function(t,r){return e.normalci(t,r,this.toArray())},tci:function(t,r){return e.tci(t,r,this.toArray())}}),e.extend(e.fn,{oneSidedDifferenceOfProportions:function(t,r,n,i){var a=m(t,r,n,i);return e.ztest(a,1)},twoSidedDifferenceOfProportions:function(t,r,n,i){var a=m(t,r,n,i);return e.ztest(a,2)}}),e.models=function(){function t(t,r){var n=t.length,i=r[0].length-1,a=e.lstsq(r,t),s=e.multiply(r,a.map(function(e){return[e]})).map(function(e){return e[0]}),o=e.subtract(t,s),u=e.mean(t),c=e.sum(s.map(function(e){return Math.pow(e-u,2)})),l=e.sum(t.map(function(e,t){return Math.pow(e-s[t],2)})),p=c+l;return{exog:r,endog:t,nobs:n,df_model:i,df_resid:n-i-1,coef:a,predict:s,resid:o,ybar:u,SST:p,SSE:c,SSR:l,R2:c/p}}return{ols:function(r,n){var i,a,s,o,u,c,l,p,f,d,h,m,g,v,y=t(r,n),b=(a=(i=y.exog)[0].length,s=e.arange(a).map(function(r){var n=e.arange(a).filter(function(e){return e!==r});return t(e.col(i,r).map(function(e){return e[0]}),e.col(i,n))}),o=Math.sqrt(y.SSR/y.df_resid),u=s.map(function(e){return o/Math.sqrt(e.SST*(1-e.R2))}),l=(c=y.coef.map(function(e,t){return(e-0)/u[t]})).map(function(t){var r=e.studentt.cdf(t,y.df_resid);return(r>.5?1-r:r)*2}),p=e.studentt.inv(.975,y.df_resid),f=y.coef.map(function(e,t){var r=p*u[t];return[e-r,e+r]}),{se:u,t:c,p:l,sigmaHat:o,interval95:f}),x=(v=1-(h=d=y.R2/y.df_model/((1-y.R2)/y.df_resid),m=y.df_model,g=y.df_resid,e.beta.cdf(h/(g/m+h),m/2,g/2)),{F_statistic:d,pvalue:v}),D=1-(1-y.R2)*((y.nobs-1)/y.df_resid);return y.t=b,y.f=x,y.adjust_R2=D,y}}}(),e.extend({buildxmatrix:function(){for(var t=Array(arguments.length),r=0;r<arguments.length;r++){var n=[1];t[r]=n.concat(arguments[r])}return e(t)},builddxmatrix:function(){for(var t=Array(arguments[0].length),r=0;r<arguments[0].length;r++){var n=[1];t[r]=n.concat(arguments[0][r])}return e(t)},buildjxmatrix:function(t){for(var r=Array(t.length),n=0;n<t.length;n++)r[n]=t[n];return e.builddxmatrix(r)},buildymatrix:function(t){return e(t).transpose()},buildjymatrix:function(e){return e.transpose()},matrixmult:function(t,r){var n,i,a,s,o;if(t.cols()==r.rows()){if(r.rows()>1){for(n=0,s=[];n<t.rows();n++)for(i=0,s[n]=[];i<r.cols();i++){for(a=0,o=0;a<t.cols();a++)o+=t.toArray()[n][a]*r.toArray()[a][i];s[n][i]=o}return e(s)}for(n=0,s=[];n<t.rows();n++)for(i=0,s[n]=[];i<r.cols();i++){for(a=0,o=0;a<t.cols();a++)o+=t.toArray()[n][a]*r.toArray()[i];s[n][i]=o}return e(s)}},regress:function(t,r){var n=e.xtranspxinv(t),i=t.transpose(),a=e.matrixmult(e(n),i);return e.matrixmult(a,r)},regresst:function(t,r,n){var i,a,s,o=e.regress(t,r),u={};u.anova={};var c=e.jMatYBar(t,o);u.yBar=c;var l=r.mean();u.anova.residuals=e.residuals(r,c),u.anova.ssr=e.ssr(c,l),u.anova.msr=u.anova.ssr/(t[0].length-1),u.anova.sse=e.sse(r,c),u.anova.mse=u.anova.sse/(r.length-(t[0].length-1)-1),u.anova.sst=e.sst(r,l),u.anova.mst=u.anova.sst/(r.length-1),u.anova.r2=1-u.anova.sse/u.anova.sst,u.anova.r2<0&&(u.anova.r2=0),u.anova.fratio=u.anova.msr/u.anova.mse,u.anova.pvalue=e.anovaftest(u.anova.fratio,t[0].length-1,r.length-(t[0].length-1)-1),u.anova.rmse=Math.sqrt(u.anova.mse),u.anova.r2adj=1-u.anova.mse/u.anova.mst,u.anova.r2adj<0&&(u.anova.r2adj=0),u.stats=Array(t[0].length);for(var p=e.xtranspxinv(t),f=0;f<o.length;f++)i=Math.sqrt(u.anova.mse*Math.abs(p[f][f])),a=Math.abs(o[f]/i),s=e.ttest(a,r.length-t[0].length-1,n),u.stats[f]=[o[f],i,a,s];return u.regress=o,u},xtranspx:function(t){return e.matrixmult(t.transpose(),t)},xtranspxinv:function(t){var r=e.matrixmult(t.transpose(),t);return e.inv(r)},jMatYBar:function(t,r){var n=e.matrixmult(t,r);return new e(n)},residuals:function(t,r){return e.matrixsubtract(t,r)},ssr:function(e,t){for(var r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t,2);return r},sse:function(e,t){for(var r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t[n],2);return r},sst:function(e,t){for(var r=0,n=0;n<e.length;n++)r+=Math.pow(e[n]-t,2);return r},matrixsubtract:function(t,r){for(var n=Array(t.length),i=0;i<t.length;i++){n[i]=Array(t[i].length);for(var a=0;a<t[i].length;a++)n[i][a]=t[i][a]-r[i][a]}return e(n)}}),e.jStat=e,e}()},7391(e,t,r){var n=r(7180),i=r(43181),a=r(43031),s=r(9067),o=r(96833),u=r(43717),c=r(74801);c.alea=n,c.xor128=i,c.xorwow=a,c.xorshift7=s,c.xor4096=o,c.tychei=u,e.exports=c},7180(e,t,r){!function(e,t){function r(e){var t,r=this,n=(t=0xefc8249d,function(e){e=String(e);for(var r=0;r<e.length;r++){var n=.02519603282416938*(t+=e.charCodeAt(r));t=n>>>0,n-=t,n*=t,t=n>>>0,n-=t,t+=0x100000000*n}return(t>>>0)*23283064365386963e-26});r.next=function(){var e=2091639*r.s0+23283064365386963e-26*r.c;return r.s0=r.s1,r.s1=r.s2,r.s2=e-(r.c=0|e)},r.c=1,r.s0=n(" "),r.s1=n(" "),r.s2=n(" "),r.s0-=n(e),r.s0<0&&(r.s0+=1),r.s1-=n(e),r.s1<0&&(r.s1+=1),r.s2-=n(e),r.s2<0&&(r.s2+=1)}function n(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function i(e,t){var i=new r(e),a=t&&t.state,s=i.next;return s.int32=function(){return 0x100000000*i.next()|0},s.double=function(){return s()+(2097152*s()|0)*11102230246251565e-32},s.quick=s,a&&("object"==typeof a&&n(a,i),s.state=function(){return n(i,{})}),s}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.alea=i}(e=r.nmd(e),"function"==typeof define&&define)},43717(e,t,r){!function(e,t){function r(e){var t=this,r="";t.next=function(){var e=t.b,r=t.c,n=t.d,i=t.a;return e=e<<25^e>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^r,t.c=r=r-n|0,t.d=n<<16^r>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-0x61c88647,t.d=0x517cc1b7,e===Math.floor(e)?(t.a=e/0x100000000|0,t.b=0|e):r+=e;for(var n=0;n<r.length+20;n++)t.b^=r.charCodeAt(n),t.next()}function n(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function i(e,t){var i=new r(e),a=t&&t.state,s=function(){return(i.next()>>>0)/0x100000000};return s.double=function(){do var e=((i.next()>>>11)+(i.next()>>>0)/0x100000000)/2097152;while(0===e);return e},s.int32=i.next,s.quick=s,a&&("object"==typeof a&&n(a,i),s.state=function(){return n(i,{})}),s}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.tychei=i}(e=r.nmd(e),"function"==typeof define&&define)},43181(e,t,r){!function(e,t){function r(e){var t=this,r="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=r.charCodeAt(n),t.next()}function n(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function i(e,t){var i=new r(e),a=t&&t.state,s=function(){return(i.next()>>>0)/0x100000000};return s.double=function(){do var e=((i.next()>>>11)+(i.next()>>>0)/0x100000000)/2097152;while(0===e);return e},s.int32=i.next,s.quick=s,a&&("object"==typeof a&&n(a,i),s.state=function(){return n(i,{})}),s}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xor128=i}(e=r.nmd(e),"function"==typeof define&&define)},96833(e,t,r){!function(e,t){function r(e){var t=this;t.next=function(){var e,r,n=t.w,i=t.X,a=t.i;return t.w=n=n+0x61c88647|0,r=i[a+34&127],e=i[a=a+1&127],r^=r<<13,e^=e<<17,r^=r>>>15,e^=e>>>12,r=i[a]=r^e,t.i=a,r+(n^n>>>16)|0},!function(e,t){var r,n,i,a,s,o=[],u=128;for(t===(0|t)?(n=t,t=null):(t+="\0",n=0,u=Math.max(u,t.length)),i=0,a=-32;a<u;++a)t&&(n^=t.charCodeAt((a+32)%t.length)),0===a&&(s=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,a>=0&&(s=s+0x61c88647|0,i=0==(r=o[127&a]^=n+s)?i+1:0);for(i>=128&&(o[127&(t&&t.length||0)]=-1),i=127,a=512;a>0;--a)n=o[i+34&127],r=o[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,o[i]=n^r;e.w=s,e.X=o,e.i=i}(t,e)}function n(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function i(e,t){null==e&&(e=+new Date);var i=new r(e),a=t&&t.state,s=function(){return(i.next()>>>0)/0x100000000};return s.double=function(){do var e=((i.next()>>>11)+(i.next()>>>0)/0x100000000)/2097152;while(0===e);return e},s.int32=i.next,s.quick=s,a&&(a.X&&n(a,i),s.state=function(){return n(i,{})}),s}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xor4096=i}(e=r.nmd(e),"function"==typeof define&&define)},9067(e,t,r){!function(e,t){function r(e){var t=this;t.next=function(){var e,r,n=t.x,i=t.i;return e=n[i],e^=e>>>7,r=e^e<<24^((e=n[i+1&7])^e>>>10)^((e=n[i+3&7])^e>>>3)^((e=n[i+4&7])^e<<7),e=n[i+7&7],e^=e<<13,r^=e^e<<9,n[i]=r,t.i=i+1&7,r};var r,n=e,i=[];if(n===(0|n))i[0]=n;else for(r=0,n=""+n;r<n.length;++r)i[7&r]=i[7&r]<<15^n.charCodeAt(r)+i[r+1&7]<<13;for(;i.length<8;)i.push(0);for(r=0;r<8&&0===i[r];++r);for(8==r?i[7]=-1:i[r],t.x=i,t.i=0,r=256;r>0;--r)t.next()}function n(e,t){return t.x=e.x.slice(),t.i=e.i,t}function i(e,t){null==e&&(e=+new Date);var i=new r(e),a=t&&t.state,s=function(){return(i.next()>>>0)/0x100000000};return s.double=function(){do var e=((i.next()>>>11)+(i.next()>>>0)/0x100000000)/2097152;while(0===e);return e},s.int32=i.next,s.quick=s,a&&(a.x&&n(a,i),s.state=function(){return n(i,{})}),s}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xorshift7=i}(e=r.nmd(e),"function"==typeof define&&define)},43031(e,t,r){!function(e,t){function r(e){var t=this,r="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^(e^e<<1))|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=r.charCodeAt(n),n==r.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function n(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function i(e,t){var i=new r(e),a=t&&t.state,s=function(){return(i.next()>>>0)/0x100000000};return s.double=function(){do var e=((i.next()>>>11)+(i.next()>>>0)/0x100000000)/2097152;while(0===e);return e},s.int32=i.next,s.quick=s,a&&("object"==typeof a&&n(a,i),s.state=function(){return n(i,{})}),s}e&&e.exports?e.exports=i:t&&t.amd?t(function(){return i}):this.xorwow=i}(e=r.nmd(e),"function"==typeof define&&define)},74801(e,t,r){!function(t,n,i){var a,s="random",o=i.pow(256,6),u=i.pow(2,52),c=2*u;function l(e,r,l){var m=[],g=d(function e(t,r){var n,i=[],a=typeof t;if(r&&"object"==a)for(n in t)try{i.push(e(t[n],r-1))}catch(e){}return i.length?i:"string"==a?t:t+"\0"}((r=!0==r?{entropy:!0}:r||{}).entropy?[e,h(n)]:null==e?function(){try{var e;return a&&(e=a.randomBytes)?e=e(256):(e=new Uint8Array(256),(t.crypto||t.msCrypto).getRandomValues(e)),h(e)}catch(e){var r=t.navigator,i=r&&r.plugins;return[+new Date,t,i,t.screen,h(n)]}}():e,3),m),v=new p(m),y=function(){for(var e=v.g(6),t=o,r=0;e<u;)e=(e+r)*256,t*=256,r=v.g(1);for(;e>=c;)e/=2,t/=2,r>>>=1;return(e+r)/t};return y.int32=function(){return 0|v.g(4)},y.quick=function(){return v.g(4)/0x100000000},y.double=y,d(h(v.S),n),(r.pass||l||function(e,t,r,n){return(n&&(n.S&&f(n,v),e.state=function(){return f(v,{})}),r)?(i[s]=e,t):e})(y,g,"global"in r?r.global:this==i,r.state)}function p(e){var t,r=e.length,n=this,i=0,a=n.i=n.j=0,s=n.S=[];for(r||(e=[r++]);i<256;)s[i]=i++;for(i=0;i<256;i++)s[i]=s[a=255&a+e[i%r]+(t=s[i])],s[a]=t;(n.g=function(e){for(var t,r=0,i=n.i,a=n.j,s=n.S;e--;)t=s[i=255&i+1],r=256*r+s[255&(s[i]=s[a=255&a+t])+(s[a]=t)];return n.i=i,n.j=a,r})(256)}function f(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){for(var r,n=e+"",i=0;i<n.length;)t[255&i]=255&(r^=19*t[255&i])+n.charCodeAt(i++);return h(t)}function h(e){return String.fromCharCode.apply(0,e)}if(d(i.random(),n),e.exports){e.exports=l;try{a=r(9845)}catch(e){}}else"function"==typeof define&&define.amd?define(function(){return l}):i["seed"+s]=l}("u">typeof self?self:this,[],Math)},62369(e){e.exports=function(){"use strict";function e(){return!0}function t(){return!1}function r(){}let n="Argument is not a typed-function.";return function i(){let a,s;function o(e){return"object"==typeof e&&null!==e&&e.constructor===Object}let u=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:o},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],c={name:"any",test:e,isAny:!0},l=0,p={createCount:0};function f(e){let t,r=a.get(e);if(r)return r;let n='Unknown type "'+e+'"',i=e.toLowerCase();for(t of s)if(t.toLowerCase()===i){n+='. Did you mean "'+t+'" ?';break}throw TypeError(n)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any",r=t?f(t).index:s.length,n=[];for(let t=0;t<e.length;++t){if(!e[t]||"string"!=typeof e[t].name||"function"!=typeof e[t].test)throw TypeError("Object with properties {name: string, test: function} expected");let i=e[t].name;if(a.has(i))throw TypeError('Duplicate type name "'+i+'"');n.push(i),a.set(i,{name:i,test:e[t].test,isAny:e[t].isAny,index:r+t,conversionsTo:[]})}let i=s.slice(r);s=s.slice(0,r).concat(n).concat(i);for(let e=r+n.length;e<s.length;++e)a.get(s[e]).index=e}function h(){a=new Map,s=[],l=0,d([c],!1)}function m(e){let t=s.filter(t=>{let r=a.get(t);return!r.isAny&&r.test(e)});return t.length?t:["any"]}function g(e){return e&&"function"==typeof e&&"_typedFunctionData"in e}function v(e,t,r){let i,a;if(!g(e))throw TypeError(n);let s=r&&r.exact,o=D(Array.isArray(t)?t.join(","):t),u=y(o);if(!s||u in e.signatures){let t=e._typedFunctionData.signatureMap.get(u);if(t)return t}let c=o.length;if(s){let t;for(t in i=[],e.signatures)i.push(e._typedFunctionData.signatureMap.get(t))}else i=e._typedFunctionData.signatures;for(let e=0;e<c;++e){let t,r=o[e],n=[];for(t of i){let i=A(t.params,e);if(i&&(!r.restParam||i.restParam)){if(!i.hasAny){let e=x(i);if(r.types.some(t=>!e.has(t.name)))continue}n.push(t)}}if(0===(i=n).length)break}for(a of i)if(a.params.length<=c)return a;throw TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+y(o,", ")+"))")}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return e.map(e=>e.name).join(t)}function b(e){let t=function(e){if(0===e.length)return[];let t=e.map(f);if(1===e.length)return t[0].conversionsTo;let r=new Set(e),n=new Set;for(let e=0;e<t.length;++e)for(let i of t[e].conversionsTo)r.has(i.from)||n.add(i.from);let i=[];for(let e of n){let r=l+1,n=null;for(let i=0;i<t.length;++i)for(let a of t[i].conversionsTo)a.from===e&&a.index<r&&(r=a.index,n=a);i.push(n)}return i}(e.types.map(e=>e.name)),r=e.hasAny,n=e.name,i=t.map(function(e){let t=f(e.from);return r=t.isAny||r,n+="|"+e.from,{name:e.from,typeIndex:t.index,test:t.test,isAny:t.isAny,conversion:e,conversionIndex:e.index}});return{types:e.types.concat(i),name:n,hasAny:r,hasConversion:i.length>0,restParam:e.restParam}}function x(e){return e.typeSet||(e.typeSet=new Set,e.types.forEach(t=>e.typeSet.add(t.name))),e.typeSet}function D(e){let t=[];if("string"!=typeof e)throw TypeError("Signatures must be strings");let r=e.trim();if(""===r)return t;let n=r.split(",");for(let e=0;e<n.length;++e){let r=function(e){let t=0===e.indexOf("..."),r=(t?e.length>3?e.slice(3):"any":e).split("|").map(e=>f(e.trim())),n=!1,i=t?"...":"";return{types:r.map(function(e){return n=e.isAny||n,i+=e.name+"|",{name:e.name,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:null,conversionIndex:-1}}),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:t}}(n[e].trim());if(r.restParam&&e!==n.length-1)throw SyntaxError('Unexpected rest parameter "'+n[e]+'": only allowed for the last parameter');if(0===r.types.length)return null;t.push(r)}return t}function w(e){let t=k(e);return!!t&&t.restParam}function N(t){if(!t||0===t.types.length)return e;if(1===t.types.length)return f(t.types[0].name).test;if(2===t.types.length){let e=f(t.types[0].name).test,r=f(t.types[1].name).test;return function(t){return e(t)||r(t)}}{let e=t.types.map(function(e){return f(e.name).test});return function(t){for(let r=0;r<e.length;r++)if(e[r](t))return!0;return!1}}}function A(e,t){return t<e.length?e[t]:w(e)?k(e):null}function E(e,t){let r=A(e,t);return r?x(r):new Set}function S(e){return null===e.conversion||void 0===e.conversion}function C(e,t){let r=new Set;return e.forEach(e=>{let n;for(n of E(e.params,t))r.add(n)}),r.has("any")?["any"]:Array.from(r)}function M(e,t,r){let n,i,a,s=e||"unnamed",o=r;for(a=0;a<t.length;a++){let e=[];if(o.forEach(r=>{let n=N(A(r.params,a));(a<r.params.length||w(r.params))&&n(t[a])&&e.push(r)}),0===e.length){if((i=C(o,a)).length>0){let e=m(t[a]);return(n=TypeError("Unexpected type of argument in function "+s+" (expected: "+i.join(" or ")+", actual: "+e.join(" | ")+", index: "+a+")")).data={category:"wrongType",fn:s,index:a,actual:e,expected:i},n}}else o=e}let u=o.map(function(e){return w(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,u))return(n=TypeError("Too few arguments in function "+s+" (expected: "+(i=C(o,a)).join(" or ")+", index: "+t.length+")")).data={category:"tooFewArgs",fn:s,index:t.length,expected:i},n;let c=Math.max.apply(null,u);if(t.length>c)return(n=TypeError("Too many arguments in function "+s+" (expected: "+c+", actual: "+t.length+")")).data={category:"tooManyArgs",fn:s,index:t.length,expectedLength:c},n;let l=[];for(let e=0;e<t.length;++e)l.push(m(t[e]).join("|"));return(n=TypeError('Arguments of type "'+l.join(", ")+'" do not match any of the defined signatures of function '+s+".")).data={category:"mismatch",actual:l},n}function T(e){let t=s.length+1;for(let r=0;r<e.types.length;r++)t=Math.min(t,e.types[r].typeIndex);return t}function O(e){let t=l+1;for(let r=0;r<e.types.length;r++)S(e.types[r])||(t=Math.min(t,e.types[r].conversionIndex));return t}function F(e,t){let r,n,i=e.params,a=t.params,s=k(i),o=k(a),u=w(i),c=w(a);if(u&&s.hasAny){if(!c||!o.hasAny)return 1e7}else if(c&&o.hasAny)return -1e7;let l=0,p=0;for(r of i)r.hasAny&&++l,r.hasConversion&&++p;let f=0,d=0;for(r of a)r.hasAny&&++f,r.hasConversion&&++d;if(l!==f)return(l-f)*1e6;if(u&&s.hasConversion){if(!c||!o.hasConversion)return 1e5}else if(c&&o.hasConversion)return -1e5;if(p!==d)return(p-d)*1e4;if(u){if(!c)return 1e3}else if(c)return -1e3;let h=(i.length-a.length)*(u?-100:100);if(0!==h)return h;let m=[],g=0;for(let e=0;e<i.length;++e){let t=function(e,t){if(e.hasAny){if(!t.hasAny)return .1}else if(t.hasAny)return -.1;if(e.restParam){if(!t.restParam)return .01}else if(t.restParam)return -.01;let r=T(e)-T(t);if(r<0)return -.001;if(r>0)return .001;let n=O(e),i=O(t);if(e.hasConversion){if(!t.hasConversion)return(1+n)*1e-6}else if(t.hasConversion)return-(1e-6*(1+i));let a=n-i;return a<0?-1e-7:1e-7*(a>0)}(i[e],a[e]);m.push(t),g+=t}if(0!==g)return(g<0?-10:10)+g;let v=9,y=9/(m.length+1);for(n of m){if(0!==n)return(n<0?-v:v)+n;v-=y}return 0}function _(e){let t,r,n,i,a=[],s=[],o="";e.types.forEach(function(e){e.conversion&&(o+=e.conversion.from+"~>"+e.conversion.to+",",a.push(f(e.conversion.from).test),s.push(e.conversion.convert))}),o=o?o.slice(0,-1):"pass";let u=e=>e;switch(s.length){case 0:break;case 1:t=a[0],n=s[0],u=function(e){return t(e)?n(e):e};break;case 2:t=a[0],r=a[1],n=s[0],i=s[1],u=function(e){return t(e)?n(e):r(e)?i(e):e};break;default:u=function(e){for(let t=0;t<s.length;t++)if(a[t](e))return s[t](e);return e}}return Object.defineProperty(u,"name",{value:o}),u}function B(e,t,r){throw M(e,t,r)}function P(e){return q(e,0,e.length-1)}function k(e){return e[e.length-1]}function q(e,t,r){return Array.prototype.slice.call(e,t,r)}function I(e,t){return{referTo:{references:e,callback:t}}}function R(e){if("function"!=typeof e)throw TypeError("Callback function expected as first argument");return{referToSelf:{callback:e}}}function z(e){return e&&"object"==typeof e.referTo&&Array.isArray(e.referTo.references)&&"function"==typeof e.referTo.callback}function L(e){return e&&"object"==typeof e.referToSelf&&"function"==typeof e.referToSelf.callback}function j(e,t){if(!e)return t;if(t&&t!==e){let r=Error("Function names do not match (expected: "+e+", actual: "+t+")");throw r.data={actual:t,expected:e},r}return e}h(),d(u);let U=p;function $(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");if(e.to===e.from)throw SyntaxError('Illegal to define conversion from "'+e.from+'" to itself.')}return(p=function(e){let n="string"==typeof e,i=+!!n,a=n?e:"",s={};for(let e=i;e<arguments.length;++e){let t,r=arguments[e],i={};if("function"==typeof r?(t=r.name,"string"==typeof r.signature?i[r.signature]=r:g(r)&&(i=r.signatures)):o(r)&&(i=r,n||(t=function(e){let t;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(g(e[r])||"string"==typeof e[r].signature)&&(t=j(t,e[r].name));return t}(r))),0===Object.keys(i).length){let t=TypeError("Argument to 'typed' at index "+e+" is not a (typed) function, nor an object with signatures as keys and functions as values.");throw t.data={index:e,argument:r},t}n||(a=j(a,t)),function(e,t){let r;for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r in e&&t[r]!==e[r]){let n=Error('Signature "'+r+'" is defined twice');throw n.data={signature:r,sourceFunction:t[r],destFunction:e[r]},n}e[r]=t[r]}}(s,i)}return function(e,n){let i,a,s;if(p.createCount++,0===Object.keys(n).length)throw SyntaxError("No signatures provided");p.warnAgainstDeprecatedThis&&(s=/\bthis(\(|\.signatures\b)/,Object.keys(n).forEach(e=>{let t=n[e];if(s.test(t.toString()))throw SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")}));let o=[],u=[],c={},l=[];for(i in n){let e;if(!Object.prototype.hasOwnProperty.call(n,i))continue;let t=D(i);if(!t)continue;o.forEach(function(e){if(function(e,t){let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let r,i=E(e,n),a=E(t,n),s=!1;for(r of a)if(i.has(r)){s=!0;break}if(!s)return!1}let n=e.length,i=t.length,a=w(e),s=w(t);return a?s?n===i:i>=n:s?n>=i:n===i}(e,t))throw TypeError('Conflicting signatures "'+y(e)+'" and "'+y(t)+'".')}),o.push(t);let r=u.length;for(e of(u.push(n[i]),function e(t,r,n){if(!(r<t.length))return[n];{var i,a;let s=t[r],o=[];if(s.restParam){let e=s.types.filter(S);e.length<s.types.length&&o.push({types:e,name:"..."+e.map(e=>e.name).join("|"),hasAny:e.some(e=>e.isAny),hasConversion:!1,restParam:!0}),o.push(s)}else o=s.types.map(function(e){return{types:[e],name:e.name,hasAny:e.isAny,hasConversion:e.conversion,restParam:!1}});return i=o,a=function(i){return e(t,r+1,n.concat([i]))},Array.prototype.concat.apply([],i.map(a))}}(t.map(b),0,[]))){let t=y(e);l.push({params:e,name:t,fn:r}),e.every(e=>!e.hasConversion)&&(c[t]=r)}}l.sort(F);let f=function(e,t,r){let n=e.map(e=>L(e)?R(e.referToSelf.callback):z(e)?I(e.referTo.references,e.referTo.callback):e),i=Array(n.length).fill(!1),a=!0;for(;a;){a=!1;let e=!0;for(let s=0;s<n.length;++s){if(i[s])continue;let o=n[s];if(L(o))n[s]=o.referToSelf.callback(r),n[s].referToSelf=o.referToSelf,i[s]=!0,e=!1;else if(z(o)){let r=function(e,t,r){let n,i=[];for(n of e){let e=r[n];if("number"!=typeof e)throw TypeError('No definition for referenced signature "'+n+'"');if("function"!=typeof(e=t[e]))return!1;i.push(e)}return i}(o.referTo.references,n,t);r?(n[s]=o.referTo.callback.apply(this,r),n[s].referTo=o.referTo,i[s]=!0,e=!1):a=!0}}if(e&&a)throw SyntaxError("Circular reference detected in resolving typed.referTo")}return n}(u,c,ef);for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(c[a]=f[c[a]]);let d=[],h=new Map;for(a of l)h.has(a.name)||(a.fn=f[a.fn],d.push(a),h.set(a.name,a));let m=d[0]&&d[0].params.length<=2&&!w(d[0].params),g=d[1]&&d[1].params.length<=2&&!w(d[1].params),v=d[2]&&d[2].params.length<=2&&!w(d[2].params),x=d[3]&&d[3].params.length<=2&&!w(d[3].params),A=d[4]&&d[4].params.length<=2&&!w(d[4].params),C=d[5]&&d[5].params.length<=2&&!w(d[5].params);for(let e=0;e<d.length;++e)d[e].test=function(e){let t,r,n;if(w(e)){let r=(t=P(e).map(N)).length,n=N(k(e)),i=function(e){for(let t=r;t<e.length;t++)if(!n(e[t]))return!1;return!0};return function(e){for(let r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return i(e)&&e.length>=r+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(r=N(e[0]),function(e){return r(e[0])&&1===e.length}):2===e.length?(r=N(e[0]),n=N(e[1]),function(e){return r(e[0])&&n(e[1])&&2===e.length}):(t=e.map(N),function(e){for(let r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return e.length===t.length})}(d[e].params);let M=m?N(d[0].params[0]):t,T=g?N(d[1].params[0]):t,O=v?N(d[2].params[0]):t,B=x?N(d[3].params[0]):t,j=A?N(d[4].params[0]):t,U=C?N(d[5].params[0]):t,$=m?N(d[0].params[1]):t,H=g?N(d[1].params[1]):t,G=v?N(d[2].params[1]):t,Q=x?N(d[3].params[1]):t,V=A?N(d[4].params[1]):t,Z=C?N(d[5].params[1]):t;for(let e=0;e<d.length;++e)d[e].implementation=function(e,t){let r=t,n="";if(e.some(e=>e.hasConversion)){let i=w(e),a=e.map(_);n=a.map(e=>e.name).join(";"),r=function(){let e=[],r=i?arguments.length-1:arguments.length;for(let t=0;t<r;t++)e[t]=a[t](arguments[t]);return i&&(e[r]=arguments[r].map(a[r])),t.apply(this,e)}}let i=r;if(w(e)){let t=e.length-1;i=function(){return r.apply(this,q(arguments,0,t).concat([q(arguments,t)]))}}return n&&Object.defineProperty(i,"name",{value:n}),i}(d[e].params,d[e].fn);let W=m?d[0].implementation:r,Y=g?d[1].implementation:r,J=v?d[2].implementation:r,K=x?d[3].implementation:r,X=A?d[4].implementation:r,ee=C?d[5].implementation:r,et=m?d[0].params.length:-1,er=g?d[1].params.length:-1,en=v?d[2].params.length:-1,ei=x?d[3].params.length:-1,ea=A?d[4].params.length:-1,es=C?d[5].params.length:-1,eo=6*!!(m&&g&&v&&x&&A&&C),eu=d.length,ec=d.map(e=>e.test),el=d.map(e=>e.implementation),ep=function(){for(let e=eo;e<eu;e++)if(ec[e](arguments))return el[e].apply(this,arguments);return p.onMismatch(e,arguments,d)};function ef(e,t){return arguments.length===et&&M(e)&&$(t)?W.apply(this,arguments):arguments.length===er&&T(e)&&H(t)?Y.apply(this,arguments):arguments.length===en&&O(e)&&G(t)?J.apply(this,arguments):arguments.length===ei&&B(e)&&Q(t)?K.apply(this,arguments):arguments.length===ea&&j(e)&&V(t)?X.apply(this,arguments):arguments.length===es&&U(e)&&Z(t)?ee.apply(this,arguments):ep.apply(this,arguments)}try{Object.defineProperty(ef,"name",{value:e})}catch(e){}return ef.signatures=c,ef._typedFunctionData={signatures:d,signatureMap:h},ef}(a||"",s)}).create=i,p.createCount=U.createCount,p.onMismatch=B,p.throwMismatchError=B,p.createError=M,p.clear=h,p.clearConversions=function(){let e;for(e of s)a.get(e).conversionsTo=[];l=0},p.addTypes=d,p._findType=f,p.referTo=function(){let e=P(arguments).map(e=>y(D(e))),t=k(arguments);if("function"!=typeof t)throw TypeError("Callback function expected as last argument");return I(e,t)},p.referToSelf=R,p.convert=function(e,t){let r=f(t);if(r.test(e))return e;let n=r.conversionsTo;if(0===n.length)throw Error("There are no conversions to "+t+" defined.");for(let t=0;t<n.length;t++)if(f(n[t].from).test(e))return n[t].convert(e);throw Error("Cannot convert "+e+" to "+t)},p.findSignature=v,p.find=function(e,t,r){return v(e,t,r).implementation},p.isTypedFunction=g,p.warnAgainstDeprecatedThis=!0,p.addType=function(e,t){let r="any";!1!==t&&a.has("Object")&&(r="Object"),p.addTypes([e],r)},p.addConversion=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{override:!1};$(e);let r=f(e.to),n=r.conversionsTo.find(t=>t.from===e.from);if(n)if(t&&t.override)p.removeConversion({from:n.from,to:e.to,convert:n.convert});else throw Error('There is already a conversion from "'+e.from+'" to "'+r.name+'"');r.conversionsTo.push({from:e.from,to:r.name,convert:e.convert,index:l++})},p.addConversions=function(e,t){e.forEach(e=>p.addConversion(e,t))},p.removeConversion=function(e){$(e);let t=f(e.to),r=function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return e[r]}(t.conversionsTo,t=>t.from===e.from);if(!r)throw Error("Attempt to remove nonexistent conversion from "+e.from+" to "+e.to);if(r.convert!==e.convert)throw Error("Conversion to remove does not match existing conversion");let n=t.conversionsTo.indexOf(r);t.conversionsTo.splice(n,1)},p.resolve=function(e,t){if(!g(e))throw TypeError(n);let r=e._typedFunctionData.signatures;for(let e=0;e<r.length;++e)if(r[e].test(t))return r[e];return null},p}()}()},76582(e,t,r){"use strict";r.d(t,{A:()=>ek});var n,i,a="0123456789abcdef",s="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",o="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",u={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},c=!0,l="[DecimalError] ",p=l+"Invalid argument: ",f=l+"Precision limit exceeded",d=l+"crypto unavailable",h="[object Decimal]",m=Math.floor,g=Math.pow,v=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,y=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,x=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,D=s.length-1,w=o.length-1,N={toStringTag:h};function A(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=k(r)),a+=n;(r=7-(n=(s=e[t])+"").length)&&(a+=k(r))}else if(0===s)return"0";for(;s%10==0;)s/=10;return a+s}function E(e,t,r){if(e!==~~e||e<t||e>r)throw Error(p+e)}function S(e,t,r,n){var i,a,s,o;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=g(10,7-t),o=e[i]%a|0,null==n?t<3?(0==t?o=o/100|0:1==t&&(o=o/10|0),s=r<4&&99999==o||r>3&&49999==o||5e4==o||0==o):s=(r<4&&o+1==a||r>3&&o+1==a/2)&&(e[i+1]/a/100|0)==g(10,t-2)-1||(o==a/2||0==o)&&(e[i+1]/a/100|0)==0:t<4?(0==t?o=o/1e3|0:1==t?o=o/100|0:2==t&&(o=o/10|0),s=(n||r<4)&&9999==o||!n&&r>3&&4999==o):s=((n||r<4)&&o+1==a||!n&&r>3&&o+1==a/2)&&(e[i+1]/a/1e3|0)==g(10,t-3)-1,s}function C(e,t,r){for(var n,i,s=[0],o=0,u=e.length;o<u;){for(i=s.length;i--;)s[i]*=t;for(s[0]+=a.indexOf(e.charAt(o++)),n=0;n<s.length;n++)s[n]>r-1&&(void 0===s[n+1]&&(s[n+1]=0),s[n+1]+=s[n]/r|0,s[n]%=r)}return s.reverse()}N.absoluteValue=N.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),T(e)},N.ceil=function(){return T(new this.constructor(this),this.e+1,2)},N.clampedTo=N.clamp=function(e,t){var r=this.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(p+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new r(this)},N.comparedTo=N.cmp=function(e){var t,r,n,i,a=this.d,s=(e=new this.constructor(e)).d,o=this.s,u=e.s;if(!a||!s)return o&&u?o!==u?o:a===s?0:!a^o<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?o:s[0]?-u:0;if(o!==u)return o;if(this.e!==e.e)return this.e>e.e^o<0?1:-1;for(t=0,r=(n=a.length)<(i=s.length)?n:i;t<r;++t)if(a[t]!==s[t])return a[t]>s[t]^o<0?1:-1;return n===i?0:n>i^o<0?1:-1},N.cosine=N.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/H(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=$(e,1,t.times(i),new e(1));for(var a=r;a--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}(n,G(n,r)),n.precision=e,n.rounding=t,T(2==i||3==i?r.neg():r,e,t,!0)):new n(1):new n(NaN)},N.cubeRoot=N.cbrt=function(){var e,t,r,n,i,a,s,o,u,l,p=this.constructor;if(!this.isFinite()||this.isZero())return new p(this);for(c=!1,(a=this.s*g(this.s*this,1/3))&&Math.abs(a)!=1/0?n=new p(a.toString()):(r=A(this.d),(a=((e=this.e)-r.length+1)%3)&&(r+=1==a||-2==a?"0":"00"),a=g(r,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(n=new p(r=a==1/0?"5e"+e:(r=a.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),s=(e=p.precision)+3;;)if(n=M((l=(u=(o=n).times(o).times(o)).plus(this)).plus(this).times(o),l.plus(u),s+2,1),A(o.d).slice(0,s)===(r=A(n.d)).slice(0,s)){if("9999"!=(r=r.slice(s-3,s+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(T(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(T(o,e+1,0),o.times(o).times(o).eq(this))){n=o;break}s+=4,i=1}return c=!0,T(n,e,p.rounding,t)},N.decimalPlaces=N.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-m(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},N.dividedBy=N.div=function(e){return M(this,new this.constructor(e))},N.dividedToIntegerBy=N.divToInt=function(e){var t=this.constructor;return T(M(this,new t(e),0,1,1),t.precision,t.rounding)},N.equals=N.eq=function(e){return 0===this.cmp(e)},N.floor=function(){return T(new this.constructor(this),this.e+1,3)},N.greaterThan=N.gt=function(e){return this.cmp(e)>0},N.greaterThanOrEqualTo=N.gte=function(e){var t=this.cmp(e);return 1==t||0===t},N.hyperbolicCosine=N.cosh=function(){var e,t,r,n,i,a=this,s=a.constructor,o=new s(1);if(!a.isFinite())return new s(a.s?1/0:NaN);if(a.isZero())return o;r=s.precision,n=s.rounding,s.precision=r+Math.max(a.e,a.sd())+4,s.rounding=1,(i=a.d.length)<32?t=(1/H(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=$(s,1,a.times(t),new s(1),!0);for(var u,c=e,l=new s(8);c--;)u=a.times(a),a=o.minus(u.times(l.minus(u.times(l))));return T(a,s.precision=r,s.rounding=n,!0)},N.hyperbolicSine=N.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=$(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=$(a,2,i=i.times(1/H(5,e)),i,!0);for(var s,o=new a(5),u=new a(16),c=new a(20);e--;)s=i.times(i),i=i.times(o.plus(s.times(u.times(s).plus(c))))}return a.precision=t,a.rounding=r,T(i,t,r,!0)},N.hyperbolicTangent=N.tanh=function(){var e,t,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,M(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},N.inverseCosine=N.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,a=r.rounding;return -1!==n?0===n?t.isNeg()?B(r,i,a):new r(0):new r(NaN):t.isZero()?B(r,i+4,a).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=B(r,i+4,a).times(.5),r.precision=i,r.rounding=a,e.minus(t))},N.inverseHyperbolicCosine=N.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,c=!1,r=r.times(r).minus(1).sqrt().plus(r),c=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},N.inverseHyperbolicSine=N.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,c=!1,r=r.times(r).plus(1).sqrt().plus(r),c=!0,n.precision=e,n.rounding=t,r.ln())},N.inverseHyperbolicTangent=N.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?T(new a(i),e,t,!0):(a.precision=r=n-i.e,i=M(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5)):new a(NaN)},N.inverseSine=N.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==t)?0===t?((e=B(a,r+4,n).times(.5)).s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2))},N.inverseTangent=N.atan=function(){var e,t,r,n,i,a,s,o,u,l=this,p=l.constructor,f=p.precision,d=p.rounding;if(l.isFinite()){if(l.isZero())return new p(l);else if(l.abs().eq(1)&&f+4<=w)return(s=B(p,f+4,d).times(.25)).s=l.s,s}else{if(!l.s)return new p(NaN);if(f+4<=w)return(s=B(p,f+4,d).times(.5)).s=l.s,s}for(p.precision=o=f+10,p.rounding=1,e=r=Math.min(28,o/7+2|0);e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(c=!1,t=Math.ceil(o/7),n=1,u=l.times(l),s=new p(l),i=l;-1!==e;)if(i=i.times(u),a=s.minus(i.div(n+=2)),i=i.times(u),void 0!==(s=a.plus(i.div(n+=2))).d[t])for(e=t;s.d[e]===a.d[e]&&e--;);return r&&(s=s.times(2<<r-1)),c=!0,T(s,p.precision=f,p.rounding=d,!0)},N.isFinite=function(){return!!this.d},N.isInteger=N.isInt=function(){return!!this.d&&m(this.e/7)>this.d.length-2},N.isNaN=function(){return!this.s},N.isNegative=N.isNeg=function(){return this.s<0},N.isPositive=N.isPos=function(){return this.s>0},N.isZero=function(){return!!this.d&&0===this.d[0]},N.lessThan=N.lt=function(e){return 0>this.cmp(e)},N.lessThanOrEqualTo=N.lte=function(e){return 1>this.cmp(e)},N.logarithm=N.log=function(e){var t,r,n,i,a,s,o,u=this.constructor,l=u.precision,p=u.rounding;if(null==e)e=new u(10),t=!0;else{if(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new u(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)i=!0;else{for(n=r[0];n%10==0;)n/=10;i=1!==n}if(c=!1,S((o=M(a=L(this,s=l+5),t?_(u,s+10):L(e,s),s,1)).d,n=l,p))do if(s+=10,o=M(a=L(this,s),t?_(u,s+10):L(e,s),s,1),!i){+A(o.d).slice(n+1,n+15)+1==1e14&&(o=T(o,l+1,0));break}while(S(o.d,n+=10,p));return c=!0,T(o,l,p)},N.minus=N.sub=function(e){var t,r,n,i,a,s,o,u,l,p,f,d,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(l=this.d,d=e.d,o=h.precision,u=h.rounding,!l[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!l[0])return new h(3===u?-0:0);e=new h(this)}return c?T(e,o,u):e}if(r=m(e.e/7),p=m(this.e/7),l=l.slice(),a=p-r){for((f=a<0)?(t=l,a=-a,s=d.length):(t=d,r=p,s=l.length),a>(n=Math.max(Math.ceil(o/7),s)+2)&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for((f=(n=l.length)<(s=d.length))&&(s=n),n=0;n<s;n++)if(l[n]!=d[n]){f=l[n]<d[n];break}a=0}for(f&&(t=l,l=d,d=t,e.s=-e.s),s=l.length,n=d.length-s;n>0;--n)l[s++]=0;for(n=d.length;n>a;){if(l[--n]<d[n]){for(i=n;i&&0===l[--i];)l[i]=1e7-1;--l[i],l[n]+=1e7}l[n]-=d[n]}for(;0===l[--s];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(e.d=l,e.e=F(l,r),c?T(e,o,u):e):new h(3===u?-0:0)},N.modulo=N.mod=function(e){var t,r=this.constructor;return(e=new r(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(c=!1,9==r.modulo?(t=M(this,e.abs(),0,3,1),t.s*=e.s):t=M(this,e,0,r.modulo,1),t=t.times(e),c=!0,this.minus(t)):T(new r(this),r.precision,r.rounding):new r(NaN)},N.naturalExponential=N.exp=function(){return z(this)},N.naturalLogarithm=N.ln=function(){return L(this)},N.negated=N.neg=function(){var e=new this.constructor(this);return e.s=-e.s,T(e)},N.plus=N.add=function(e){var t,r,n,i,a,s,o,u,l,p,f=this.constructor;if(e=new f(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new f(e.d||this.s===e.s?this:NaN)):e=new f(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(l=this.d,p=e.d,o=f.precision,u=f.rounding,!l[0]||!p[0])return p[0]||(e=new f(this)),c?T(e,o,u):e;if(a=m(this.e/7),n=m(e.e/7),l=l.slice(),i=a-n){for(i<0?(r=l,i=-i,s=p.length):(r=p,n=a,s=l.length),i>(s=(a=Math.ceil(o/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=l.length)-(i=p.length)<0&&(i=s,r=p,p=l,l=r),t=0;i;)t=(l[--i]=l[i]+p[i]+t)/1e7|0,l[i]%=1e7;for(t&&(l.unshift(t),++n),s=l.length;0==l[--s];)l.pop();return e.d=l,e.e=F(l,n),c?T(e,o,u):e},N.precision=N.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(p+e);return this.d?(t=P(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},N.round=function(){var e=this.constructor;return T(new e(this),this.e+1,e.rounding)},N.sine=N.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:$(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=$(e,2,t=t.times(1/H(5,r)),t);for(var i,a=new e(5),s=new e(16),o=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(s.times(i).minus(o))));return t}(n,G(n,r)),n.precision=e,n.rounding=t,T(i>2?r.neg():r,e,t,!0)):new n(NaN)},N.squareRoot=N.sqrt=function(){var e,t,r,n,i,a,s=this.d,o=this.e,u=this.s,l=this.constructor;if(1!==u||!s||!s[0])return new l(!u||u<0&&(!s||s[0])?NaN:s?this:1/0);for(c=!1,0==(u=Math.sqrt(+this))||u==1/0?(((t=A(s)).length+o)%2==0&&(t+="0"),u=Math.sqrt(t),o=m((o+1)/2)-(o<0||o%2),n=new l(t=u==1/0?"5e"+o:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+o)):n=new l(u.toString()),r=(o=l.precision)+3;;)if(n=(a=n).plus(M(this,a,r+2,1)).times(.5),A(a.d).slice(0,r)===(t=A(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(T(n,o+1,1),e=!n.times(n).eq(this));break}if(!i&&(T(a,o+1,0),a.times(a).eq(this))){n=a;break}r+=4,i=1}return c=!0,T(n,o,l.rounding,e)},N.tangent=N.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=M(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,T(2==i||4==i?r.neg():r,e,t,!0)):new n(NaN)},N.times=N.mul=function(e){var t,r,n,i,a,s,o,u,l,p=this.constructor,f=this.d,d=(e=new p(e)).d;if(e.s*=this.s,!f||!f[0]||!d||!d[0])return new p(!e.s||f&&!f[0]&&!d||d&&!d[0]&&!f?NaN:!f||!d?e.s/0:0*e.s);for(r=m(this.e/7)+m(e.e/7),(u=f.length)<(l=d.length)&&(a=f,f=d,d=a,s=u,u=l,l=s),a=[],n=s=u+l;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=u+n;i>n;)o=a[i]+d[n]*f[i-n-1]+t,a[i--]=o%1e7|0,t=o/1e7|0;a[i]=(a[i]+t)%1e7|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=F(a,r),c?T(e,p.precision,p.rounding):e},N.toBinary=function(e,t){return Q(this,2,e,t)},N.toDecimalPlaces=N.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(E(e,0,1e9),void 0===t?t=n.rounding:E(t,0,8),T(r,e+r.e+1,t))},N.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=O(n,!0):(E(e,0,1e9),void 0===t?t=i.rounding:E(t,0,8),r=O(n=T(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},N.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=O(this):(E(e,0,1e9),void 0===t?t=i.rounding:E(t,0,8),r=O(n=T(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},N.toFraction=function(e){var t,r,n,i,a,s,o,u,l,f,d,h,m=this.d,v=this.constructor;if(!m)return new v(this);if(l=r=new v(1),n=u=new v(0),s=(a=(t=new v(n)).e=P(m)-this.e-1)%7,t.d[0]=g(10,s<0?7+s:s),null==e)e=a>0?t:l;else{if(!(o=new v(e)).isInt()||o.lt(l))throw Error(p+o);e=o.gt(t)?a>0?t:l:o}for(c=!1,o=new v(A(m)),f=v.precision,v.precision=a=7*m.length*2;d=M(o,t,0,1,1),1!=(i=r.plus(d.times(n))).cmp(e);)r=n,n=i,i=l,l=u.plus(d.times(i)),u=i,i=t,t=o.minus(d.times(i)),o=i;return i=M(e.minus(r),n,0,1,1),u=u.plus(i.times(l)),r=r.plus(i.times(n)),u.s=l.s=this.s,h=1>M(l,n,a,1).minus(this).abs().cmp(M(u,r,a,1).minus(this).abs())?[l,n]:[u,r],v.precision=f,c=!0,h},N.toHexadecimal=N.toHex=function(e,t){return Q(this,16,e,t)},N.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:E(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(c=!1,r=M(r,e,0,t,1).times(e),c=!0,T(r)):(e.s=r.s,r=e),r},N.toNumber=function(){return+this},N.toOctal=function(e,t){return Q(this,8,e,t)},N.toPower=N.pow=function(e){var t,r,n,i,a,s,o=this,u=o.constructor,l=+(e=new u(e));if(!o.d||!e.d||!o.d[0]||!e.d[0])return new u(g(+o,l));if((o=new u(o)).eq(1))return o;if(n=u.precision,a=u.rounding,e.eq(1))return T(o,n,a);if((t=m(e.e/7))>=e.d.length-1&&(r=l<0?-l:l)<=0x1fffffffffffff)return i=q(u,o,r,n),e.s<0?new u(1).div(i):T(i,n,a);if((s=o.s)<0){if(t<e.d.length-1)return new u(NaN);if((1&e.d[t])==0&&(s=1),0==o.e&&1==o.d[0]&&1==o.d.length)return o.s=s,o}return(t=0!=(r=g(+o,l))&&isFinite(r)?new u(r+"").e:m(l*(Math.log("0."+A(o.d))/Math.LN10+o.e+1)))>u.maxE+1||t<u.minE-1?new u(t>0?s/0:0):(c=!1,u.rounding=o.s=1,r=Math.min(12,(t+"").length),(i=z(e.times(L(o,n+r)),n)).d&&S((i=T(i,n+5,1)).d,n,a)&&(t=n+10,+A((i=T(z(e.times(L(o,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=T(i,n+1,0))),i.s=s,c=!0,u.rounding=a,T(i,n,a))},N.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=O(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(E(e,1,1e9),void 0===t?t=i.rounding:E(t,0,8),r=O(n=T(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},N.toSignificantDigits=N.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(E(e,1,1e9),void 0===t?t=r.rounding:E(t,0,8)),T(new r(this),e,t)},N.toString=function(){var e=this.constructor,t=O(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},N.truncated=N.trunc=function(){return T(new this.constructor(this),this.e+1,1)},N.valueOf=N.toJSON=function(){var e=this.constructor,t=O(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var M=function(){function e(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+i,e[a]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(i,a,s,o,u,c){var l,p,f,d,h,g,v,y,b,x,D,w,N,A,E,S,C,M,O,F,_=i.constructor,B=i.s==a.s?1:-1,P=i.d,k=a.d;if(!P||!P[0]||!k||!k[0])return new _(!i.s||!a.s||(P?k&&P[0]==k[0]:!k)?NaN:P&&0==P[0]||!k?0*B:B/0);for(c?(h=1,p=i.e-a.e):(c=1e7,h=7,p=m(i.e/h)-m(a.e/h)),O=k.length,C=P.length,x=(b=new _(B)).d=[],f=0;k[f]==(P[f]||0);f++);if(k[f]>(P[f]||0)&&p--,null==s?(A=s=_.precision,o=_.rounding):A=u?s+(i.e-a.e)+1:s,A<0)x.push(1),g=!0;else{if(A=A/h+2|0,f=0,1==O){for(d=0,k=k[0],A++;(f<C||d)&&A--;f++)E=d*c+(P[f]||0),x[f]=E/k|0,d=E%k|0;g=d||f<C}else{for((d=c/(k[0]+1)|0)>1&&(k=e(k,d,c),P=e(P,d,c),O=k.length,C=P.length),S=O,w=(D=P.slice(0,O)).length;w<O;)D[w++]=0;(F=k.slice()).unshift(0),M=k[0],k[1]>=c/2&&++M;do d=0,(l=t(k,D,O,w))<0?(N=D[0],O!=w&&(N=N*c+(D[1]||0)),(d=N/M|0)>1?(d>=c&&(d=c-1),y=(v=e(k,d,c)).length,w=D.length,1==(l=t(v,D,y,w))&&(d--,r(v,O<y?F:k,y,c))):(0==d&&(l=d=1),v=k.slice()),(y=v.length)<w&&v.unshift(0),r(D,v,w,c),-1==l&&(w=D.length,(l=t(k,D,O,w))<1&&(d++,r(D,O<w?F:k,w,c))),w=D.length):0===l&&(d++,D=[0]),x[f++]=d,l&&D[0]?D[w++]=P[S]||0:(D=[P[S]],w=1);while((S++<C||void 0!==D[0])&&A--);g=void 0!==D[0]}x[0]||x.shift()}if(1==h)b.e=p,n=g;else{for(f=1,d=x[0];d>=10;d/=10)f++;b.e=f+p*h-1,T(b,u?s+b.e+1:s,o,g)}return b}}();function T(e,t,r,n){var i,a,s,o,u,l,p,f,d,h=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,o=f[0];o>=10;o/=10)i++;if((a=t-i)<0)a+=7,s=t,u=(p=f[d=0])/g(10,i-s-1)%10|0;else if((d=Math.ceil((a+1)/7))>=(o=f.length))if(n){for(;o++<=d;)f.push(0);p=u=0,i=1,a%=7,s=a-7+1}else break e;else{for(i=1,p=o=f[d];o>=10;o/=10)i++;a%=7,u=(s=a-7+i)<0?0:p/g(10,i-s-1)%10|0}if(n=n||t<0||void 0!==f[d+1]||(s<0?p:p%g(10,i-s-1)),l=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(a>0?s>0?p/g(10,i-s):0:f[d-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,l?(t-=e.e+1,f[0]=g(10,(7-t%7)%7),e.e=-t||0):f[0]=e.e=0,e;if(0==a?(f.length=d,o=1,d--):(f.length=d+1,o=g(10,7-a),f[d]=s>0?(p/g(10,i-s)%g(10,s)|0)*o:0),l)for(;;)if(0==d){for(a=1,s=f[0];s>=10;s/=10)a++;for(s=f[0]+=o,o=1;s>=10;s/=10)o++;a!=o&&(e.e++,1e7==f[0]&&(f[0]=1));break}else{if(f[d]+=o,1e7!=f[d])break;f[d--]=0,o=1}for(a=f.length;0===f[--a];)f.pop()}return c&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function O(e,t,r){if(!e.isFinite())return j(e);var n,i=e.e,a=A(e.d),s=a.length;return t?(r&&(n=r-s)>0?a=a.charAt(0)+"."+a.slice(1)+k(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+k(-i-1)+a,r&&(n=r-s)>0&&(a+=k(n))):i>=s?(a+=k(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+k(n))):((n=i+1)<s&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(a+="."),a+=k(n))),a}function F(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function _(e,t,r){if(t>D)throw c=!0,r&&(e.precision=r),Error(f);return T(new e(s),t,1,!0)}function B(e,t,r){if(t>w)throw Error(f);return T(new e(o),t,r,!0)}function P(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function k(e){for(var t="";e--;)t+="0";return t}function q(e,t,r,n){var i,a=new e(1),s=Math.ceil(n/7+4);for(c=!1;;){if(r%2&&V((a=a.times(t)).d,s)&&(i=!0),0===(r=m(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}V((t=t.times(t)).d,s)}return c=!0,a}function I(e){return 1&e.d[e.d.length-1]}function R(e,t,r){for(var n,i=new e(t[0]),a=0;++a<t.length;)if((n=new e(t[a])).s)i[r](n)&&(i=n);else{i=n;break}return i}function z(e,t){var r,n,i,a,s,o,u,l=0,p=0,f=0,d=e.constructor,h=d.rounding,m=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(c=!1,u=m):u=t,o=new d(.03125);e.e>-2;)e=e.times(o),f+=5;for(u+=n=Math.log(g(2,f))/Math.LN10*2+5|0,r=a=s=new d(1),d.precision=u;;){if(a=T(a.times(e),u,1),r=r.times(++p),A((o=s.plus(M(a,r,u,1))).d).slice(0,u)===A(s.d).slice(0,u)){for(i=f;i--;)s=T(s.times(s),u,1);if(null!=t)return d.precision=m,s;if(!(l<3&&S(s.d,u-n,h,l)))return T(s,d.precision=m,h,c=!0);d.precision=u+=10,r=a=o=new d(1),p=0,l++}s=o}}function L(e,t){var r,n,i,a,s,o,u,l,p,f,d,h=1,m=e,g=m.d,v=m.constructor,y=v.rounding,b=v.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(c=!1,p=b):p=t,v.precision=p+=10,n=(r=A(g)).charAt(0),!(15e14>Math.abs(a=m.e)))return l=_(v,p+2,b).times(a+""),m=L(new v(n+"."+r.slice(1)),p-10).plus(l),v.precision=b,null==t?T(m,b,y,c=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=A((m=m.times(e)).d)).charAt(0),h++;for(a=m.e,n>1?(m=new v("0."+r),a++):m=new v(n+"."+r.slice(1)),f=m,u=s=m=M(m.minus(1),m.plus(1),p,1),d=T(m.times(m),p,1),i=3;;){if(s=T(s.times(d),p,1),A((l=u.plus(M(s,new v(i),p,1))).d).slice(0,p)===A(u.d).slice(0,p)){if(u=u.times(2),0!==a&&(u=u.plus(_(v,p+2,b).times(a+""))),u=M(u,new v(h),p,1),null!=t)return v.precision=b,u;if(!S(u.d,p-10,y,o))return T(u,v.precision=b,y,c=!0);v.precision=p+=10,l=s=m=M(f.minus(1),f.plus(1),p,1),d=T(m.times(m),p,1),i=o=1}u=l,i+=2}}function j(e){return String(e.s*e.s/0)}function U(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),c&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function $(e,t,r,n,i){var a,s,o,u,l=e.precision,p=Math.ceil(l/7);for(c=!1,u=r.times(r),o=new e(n);;){if(s=M(o.times(u),new e(t++*t++),l,1),o=i?n.plus(s):n.minus(s),n=M(s.times(u),new e(t++*t++),l,1),void 0!==(s=o.plus(n)).d[p]){for(a=p;s.d[a]===o.d[a]&&a--;);if(-1==a)break}a=o,o=n,n=s,s=a}return c=!0,s.d.length=p+1,s}function H(e,t){for(var r=e;--t;)r*=e;return r}function G(e,t){var r,n=t.s<0,a=B(e,e.precision,1),s=a.times(.5);if((t=t.abs()).lte(s))return i=n?4:1,t;if((r=t.divToInt(a)).isZero())i=n?3:2;else{if((t=t.minus(r.times(a))).lte(s))return i=I(r)?n?2:3:n?4:1,t;i=I(r)?n?1:4:n?3:2}return t.minus(a).abs()}function Q(e,t,r,i){var s,o,u,c,l,p,f,d,h,m=e.constructor,g=void 0!==r;if(g?(E(r,1,1e9),void 0===i?i=m.rounding:E(i,0,8)):(r=m.precision,i=m.rounding),e.isFinite()){for(u=(f=O(e)).indexOf("."),g?(s=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):s=t,u>=0&&(f=f.replace(".",""),(h=new m(1)).e=f.length-u,h.d=C(O(h),10,s),h.e=h.d.length),o=l=(d=C(f,10,s)).length;0==d[--l];)d.pop();if(d[0]){if(u<0?o--:((e=new m(e)).d=d,e.e=o,d=(e=M(e,h,r,i,0,s)).d,o=e.e,p=n),u=d[r],c=s/2,p=p||void 0!==d[r+1],p=i<4?(void 0!==u||p)&&(0===i||i===(e.s<0?3:2)):u>c||u===c&&(4===i||p||6===i&&1&d[r-1]||i===(e.s<0?8:7)),d.length=r,p)for(;++d[--r]>s-1;)d[r]=0,r||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(u=0,f="";u<l;u++)f+=a.charAt(d[u]);if(g){if(l>1)if(16==t||8==t){for(u=16==t?4:3,--l;l%u;l++)f+="0";for(l=(d=C(f,s,t)).length;!d[l-1];--l);for(u=1,f="1.";u<l;u++)f+=a.charAt(d[u])}else f=f.charAt(0)+"."+f.slice(1);f=f+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)f="0"+f;f="0."+f}else if(++o>l)for(o-=l;o--;)f+="0";else o<l&&(f=f.slice(0,o)+"."+f.slice(o))}else f=g?"0p+0":"0";f=(16==t?"0x":2==t?"0b":8==t?"0o":"")+f}else f=j(e);return e.s<0?"-"+f:f}function V(e,t){if(e.length>t)return e.length=t,!0}function Z(e){return new this(e).abs()}function W(e){return new this(e).acos()}function Y(e){return new this(e).acosh()}function J(e,t){return new this(e).plus(t)}function K(e){return new this(e).asin()}function X(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function er(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?B(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=B(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,r=this.atan(M(e,t,a,1)),t=B(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(M(e,t,a,1)):(r=B(this,a,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function en(e){return new this(e).cbrt()}function ei(e){return T(e=new this(e),e.e+1,2)}function ea(e,t,r){return new this(e).clamp(t,r)}function es(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,r,n,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=u[r]),void 0!==(n=e[r]))if(m(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(p+r+": "+n);if(r="crypto",i&&(this[r]=u[r]),void 0!==(n=e[r]))if(!0===n||!1===n||0===n||1===n)if(n)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(d);else this[r]=!1;else throw Error(p+r+": "+n);return this}function eo(e){return new this(e).cos()}function eu(e){return new this(e).cosh()}function ec(e,t){return new this(e).div(t)}function el(e){return new this(e).exp()}function ep(e){return T(e=new this(e),e.e+1,3)}function ef(){var e,t,r=new this(0);for(e=0,c=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return c=!0,new this(1/0);r=t}return c=!0,r.sqrt()}function ed(e){return e instanceof eP||e&&e.toStringTag===h||!1}function eh(e){return new this(e).ln()}function em(e,t){return new this(e).log(t)}function eg(e){return new this(e).log(2)}function ev(e){return new this(e).log(10)}function ey(){return R(this,arguments,"lt")}function eb(){return R(this,arguments,"gt")}function ex(e,t){return new this(e).mod(t)}function eD(e,t){return new this(e).mul(t)}function ew(e,t){return new this(e).pow(t)}function eN(e){var t,r,n,i,a=0,s=new this(1),o=[];if(void 0===e?e=this.precision:E(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)(i=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:o[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(o.push(i%1e7),a+=4);a=n/4}else throw Error(d);else for(;a<n;)o[a++]=1e7*Math.random()|0;for(n=o[--a],e%=7,n&&e&&(i=g(10,7-e),o[a]=(n/i|0)*i);0===o[a];a--)o.pop();if(a<0)r=0,o=[0];else{for(r=-1;0===o[0];r-=7)o.shift();for(n=1,i=o[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return s.e=r,s.d=o,s}function eA(e){return T(e=new this(e),e.e+1,this.rounding)}function eE(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eS(e){return new this(e).sin()}function eC(e){return new this(e).sinh()}function eM(e){return new this(e).sqrt()}function eT(e,t){return new this(e).sub(t)}function eO(){var e=0,t=arguments,r=new this(t[0]);for(c=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return c=!0,T(r,this.precision,this.rounding)}function eF(e){return new this(e).tan()}function e_(e){return new this(e).tanh()}function eB(e){return T(e=new this(e),e.e+1,1)}N[Symbol.for("nodejs.util.inspect.custom")]=N.toString,N[Symbol.toStringTag]="Decimal";var eP=N.constructor=function e(t){var r,n,i;function a(e){var t,r,n;if(!(this instanceof a))return new a(e);if(this.constructor=a,ed(e)){this.s=e.s,c?!e.d||e.e>a.maxE?(this.e=NaN,this.d=null):e.e<a.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;c?t>a.maxE?(this.e=NaN,this.d=null):t<a.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return U(this,e.toString())}if("string"!==n)throw Error(p+e);return 45===(r=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===r&&(e=e.slice(1)),this.s=1),x.test(e)?U(this,e):function(e,t){var r,n,i,a,s,o,u,l,f;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),x.test(t))return U(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(y.test(t))r=16,t=t.toLowerCase();else if(v.test(t))r=2;else if(b.test(t))r=8;else throw Error(p+t);for((a=t.search(/p/i))>0?(u=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),s=(a=t.indexOf("."))>=0,n=e.constructor,s&&(a=(o=(t=t.replace(".","")).length)-a,i=q(n,new n(r),a,2*a)),a=f=(l=C(t,r,1e7)).length-1;0===l[a];--a)l.pop();return a<0?new n(0*e.s):(e.e=F(l,f),e.d=l,c=!1,s&&(e=M(e,i,4*o)),u&&(e=e.times(54>Math.abs(u)?g(2,u):eP.pow(2,u))),c=!0,e)}(this,e)}if(a.prototype=N,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=es,a.clone=e,a.isDecimal=ed,a.abs=Z,a.acos=W,a.acosh=Y,a.add=J,a.asin=K,a.asinh=X,a.atan=ee,a.atanh=et,a.atan2=er,a.cbrt=en,a.ceil=ei,a.clamp=ea,a.cos=eo,a.cosh=eu,a.div=ec,a.exp=el,a.floor=ep,a.hypot=ef,a.ln=eh,a.log=em,a.log10=ev,a.log2=eg,a.max=ey,a.min=eb,a.mod=ex,a.mul=eD,a.pow=ew,a.random=eN,a.round=eA,a.sign=eE,a.sin=eS,a.sinh=eC,a.sqrt=eM,a.sub=eT,a.sum=eO,a.tan=eF,a.tanh=e_,a.trunc=eB,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(u);s=new eP(s),o=new eP(o);let ek=eP},23155(e,t,r){"use strict";r.d(t,{HX:()=>rr});class n{constructor(e,t,r,n,i){this.kind=e,this.input=t,this.begin=r,this.end=n,this.file=i}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,t]=[1,1];for(let r=0;r<this.begin;r++)"\n"===this.input[r]?(e++,t=1):t++;return[e,t]}size(){return this.end-this.begin}}class i{liquidMethodMissing(e,t){}}let a=Object.prototype.toString,s=String.prototype.toLowerCase,o=Object.hasOwnProperty;function u(e){return"string"==typeof e}function c(e){return"function"==typeof e}function l(e){return e&&c(e.next)&&c(e.throw)&&c(e.return)}function p(e){return u(e=h(e))?e:v(e)?"":y(e)?e.map(e=>p(e)).join(""):String(e)}function f(e){var t;return y(e=h(e))?e:u(e)&&e.length>0?[e]:w(t=e)&&Symbol.iterator in t?Array.from(e):w(e)?Object.keys(e).map(t=>[t,e[t]]):[]}function d(e){return v(e=h(e))?[]:y(e)?e:[e]}function h(e){return e instanceof i&&c(e.valueOf)?e.valueOf():e}function m(e){return+h(e)||0}function g(e){return"number"==typeof e}function v(e){return null==e}function y(e){return"[object Array]"===a.call(e)}function b(e){return e&&g(e.length)}function x(e,t){for(let r in e=e||{})if(o.call(e,r)&&!1===t(e[r],r,e))break;return e}function D(e){return e[e.length-1]}function w(e){let t=typeof e;return null!==e&&("object"===t||"function"===t)}function N(e,t,r=1){let n=[];for(let i=e;i<t;i+=r)n.push(i);return n}function A(e,t,r=" "){return E(e,t,r,(e,t)=>t+e)}function E(e,t,r,n){let i=t-(e=String(e)).length;for(;i-- >0;)e=n(e,r);return e}function S(e){return e}function C(e,t){return null==e&&null==t?0:null==e?1:null==t||(e=s.call(e))<(t=s.call(t))?-1:+(e>t)}function M(e){return function(...t){return e.call(this,...t.map(h))}}function T(e){return function(...t){return e.call(this,...t.map(m))}}function O(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function*F(e){let t=new Set;for(let r of e){let e=JSON.stringify(r);t.has(e)||(t.add(e),yield r)}}let _="__liquidClass__";class B extends Error{constructor(e,t){super("string"==typeof e?e:e.message),this.context="","string"!=typeof e&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:t,enumerable:!1}),Object.defineProperty(this,_,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:function(e){let[t,r]=e.getPosition(),n=e.input.split("\n"),i=Math.max(t-2,1),a=Math.min(t+3,n.length);return N(i,a+1).map(e=>{let i=A(String(e),String(a).length),s=`${e===t?">> ":" "}${i}| `,o=e===t?"\n"+A("^",r+s.length):"";return s+=n[e-1],s+=o}).join("\n")}(this.token),enumerable:!1}),this.message=function(e,t){t.file&&(e+=`, file:${t.file}`);let[r,n]=t.getPosition();return e+`, line:${r}, col:${n}`}(this.message,this.token),this.stack=this.message+"\n"+this.context+"\n"+this.stack,this.originalError&&(this.stack+="\nFrom "+this.originalError.stack)}static is(e){return(null==e?void 0:e[_])==="LiquidError"}}class P extends B{constructor(e,t){super(e,t),this.name="TokenizationError",super.update()}}class k extends B{constructor(e,t){super(e,t),this.name="ParseError",this.message=e.message,super.update()}}class q extends B{constructor(e,t){super(e,t.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return"RenderError"===e.name}}class I extends B{constructor(e){super(e[0],e[0].token),this.errors=e,this.name="LiquidErrors";const t=e.length>1?"s":"";this.message=`${e.length} error${t} found`,super.update()}static is(e){return"LiquidErrors"===e.name}}class R extends B{constructor(e,t){super(e,t),this.name="UndefinedVariableError",this.message=e.message,super.update()}}class z extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}}class L extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}}let j=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function U(e){let t=e.charCodeAt(0);return t>=128?!j[t]:!!(1&j[t])}function $(e,t){if(!e)throw new L("function"==typeof t?t():t||`expect ${e} to be true`)}function H(e,t=`unexpected ${JSON.stringify(e)}`){$(!e,t)}j[160]=j[5760]=j[6158]=j[8192]=j[8193]=j[8194]=j[8195]=j[8196]=j[8197]=j[8198]=j[8199]=j[8200]=j[8201]=j[8202]=j[8232]=j[8233]=j[8239]=j[8287]=j[12288]=4,j[8220]=j[8221]=128;class G extends i{equals(e){return!(e instanceof G)&&(u(e=h(e))||y(e)?0===e.length:!!w(e)&&0===Object.keys(e).length)}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(e){return e instanceof G}}class Q extends G{equals(e){return!!(!1===e||v(h(e)))||(u(e)?/^\s*$/.test(e):super.equals(e))}static is(e){return e instanceof Q}}class V extends i{constructor(e,t,r){super(),this.i=0,this.length=e,this.name=`${r}-${t}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return 0===this.i}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}}class Z{constructor(){this.buffer=""}write(e){this.buffer+=p(e)}}class W{constructor(){throw this.buffer="",this.stream=null,Error("streaming not supported in browser")}}class Y{constructor(){this.buffer=""}write(e){"string"!=typeof(e=h(e))&&""===this.buffer?this.buffer=e:this.buffer=p(this.buffer)+p(e)}}class J extends i{constructor(e=()=>""){super(),this.superBlockRender=e}*super(){let e=new Z;return yield this.superBlockRender(e),e.buffer}}function K(e){return e&&c(e.equals)&&c(e.gt)&&c(e.geq)&&c(e.lt)&&c(e.leq)}let X=new class extends i{equals(e){return v(h(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},ee={true:!0,false:!1,nil:X,null:X,empty:new G,blank:new Q};function et(e){let t={};for(let[r,n]of Object.entries(e)){let e=t;for(let t=0;t<r.length;t++){let n=r[t];e[n]=e[n]||{},t===r.length-1&&U(r[t])&&(e[n].needBoundary=!0),e=e[n]}e.data=n,e.end=!0}return t}var er,en,ei,ea,es,eo,eu=function(){return(eu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ec(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{u(n.next(e))}catch(e){a(e)}}function o(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}u((n=n.apply(e,t||[])).next())})}function el(e){return ec(this,void 0,void 0,function*(){let t;if(!l(e))return e;let r=!1,n="next";do{let a=e[n](t);r=a.done,t=a.value,n="next";try{var i;l(t)&&(t=el(t)),(i=t)&&c(i.then)&&(t=yield t)}catch(e){n="throw",t=e}}while(!r);return t})}function ep(e){let t;if(!l(e))return e;let r=!1,n="next";do{let i=e[n](t);if(r=i.done,t=i.value,n="next",l(t))try{t=ep(t)}catch(e){n="throw",t=e}}while(!r);return t}let ef=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function ed(e){let t=0;for(let r=0;r<e.getMonth();++r)t+=[31,!function(e){let t=e.getFullYear();return!!((3&t)==0&&(t%100||t%400==0&&t))}(e)?28:29,31,30,31,30,31,31,30,31,30,31][r];return t+e.getDate()}function eh(e,t){return String(Math.floor((ed(e)+(t-e.getDay())-(7-new Date(e.getFullYear(),0,1).getDay()+t))/7)+1)}let em={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},eg=new Set("aAbBceklpP");function ev(e,t){let r=Math.abs(e.getTimezoneOffset()),n=Math.floor(r/60);return(e.getTimezoneOffset()>0?"-":"+")+A(n,2,"0")+(t.flags[":"]?":":"")+A(r%60,2,"0")}let ey={a:e=>e.getShortWeekdayName(),A:e=>e.getLongWeekdayName(),b:e=>e.getShortMonthName(),B:e=>e.getLongMonthName(),c:e=>e.toLocaleString(),C:e=>parseInt(e.getFullYear().toString().substring(0,2),10),d:e=>e.getDate(),e:e=>e.getDate(),H:e=>e.getHours(),I:e=>String(e.getHours()%12||12),j:e=>ed(e),k:e=>e.getHours(),l:e=>String(e.getHours()%12||12),L:e=>e.getMilliseconds(),m:e=>e.getMonth()+1,M:e=>e.getMinutes(),N:(e,t)=>{let r=Number(t.width)||9;return function(e,t,r=" "){return E(e,t,r,(e,t)=>e+t)}(String(e.getMilliseconds()).slice(0,r),r,"0")},p:e=>12>e.getHours()?"AM":"PM",P:e=>12>e.getHours()?"am":"pm",q:e=>(function(e){let t=e.getDate();if([11,12,13].includes(t))return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(e),s:e=>Math.round(e.getTime()/1e3),S:e=>e.getSeconds(),u:e=>e.getDay()||7,U:e=>eh(e,0),w:e=>e.getDay(),W:e=>eh(e,1),x:e=>e.toLocaleDateString(),X:e=>e.toLocaleTimeString(),y:e=>e.getFullYear().toString().slice(2,4),Y:e=>e.getFullYear(),z:ev,Z:(e,t)=>e.getTimeZoneName()||ev(e,t),t:()=>" ",n:()=>"\n","%":()=>"%"};function eb(e,t){let r,n="",i=t;for(;r=ef.exec(i);)n+=i.slice(0,r.index),i=i.slice(r.index+r[0].length),n+=function(e,t){let[r,n="",i,a,s]=t,o=ey[s];if(!o)return r;let u={};for(let e of n)u[e]=!0;let c=String(o(e,{flags:u,width:i,modifier:a})),l=eg.has(s)?" ":"0",p=i||em[s]||0;if(u["^"])c=c.toUpperCase();else{var f;u["#"]&&(c=[...f=c].some(e=>e>="a"&&e<="z")?f.toUpperCase():f.toLowerCase())}return u._?l=" ":u["0"]&&(l="0"),u["-"]&&(p=0),A(c,p,l)}(e,r);return n+i}function ex(){return"u">typeof Intl?Intl.DateTimeFormat:void 0}ey.h=ey.b;let eD=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,ew=["January","February","March","April","May","June","July","August","September","October","November","December"],eN=ew.map(e=>e.slice(0,3)),eA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],eE=eA.map(e=>e.slice(0,3));class eS{constructor(e,t,r){this.locale=t,this.DateTimeFormat=ex(),this.date=new Date(e),this.timezoneFixed=void 0!==r,void 0===r&&(r=this.date.getTimezoneOffset()),this.timezoneOffset=u(r)?eS.getTimezoneOffset(r,this.date):r,this.timezoneName=u(r)?r:"";const n=(this.date.getTimezoneOffset()-this.timezoneOffset)*6e4,i=this.date.getTime()+n;this.displayDate=new Date(i)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(e,t){return(null==t?void 0:t.timeZone)?this.date.toLocaleString(e,t):this.displayDate.toLocaleString(e,t)}toLocaleTimeString(e){return this.displayDate.toLocaleTimeString(e)}toLocaleDateString(e){return this.displayDate.toLocaleDateString(e)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){return this.timezoneFixed?this.timezoneName:this.DateTimeFormat?this.DateTimeFormat().resolvedOptions().timeZone:void 0}getLongMonthName(){var e;return null!=(e=this.format({month:"long"}))?e:ew[this.getMonth()]}getShortMonthName(){var e;return null!=(e=this.format({month:"short"}))?e:eN[this.getMonth()]}getLongWeekdayName(){var e;return null!=(e=this.format({weekday:"long"}))?e:eA[this.displayDate.getDay()]}getShortWeekdayName(){var e;return null!=(e=this.format({weekday:"short"}))?e:eE[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(e){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,e).format(this.displayDate)}static createDateFixedToTimezone(e,t){let r=e.match(eD);if(r&&"Z"===r[1])return new eS(+new Date(e),t,0);if(r&&r[2]&&r[3]&&r[4]){let[,,n,i,a]=r,s=("+"===n?-1:1)*(60*parseInt(i,10)+parseInt(a,10));return new eS(+new Date(e),t,s)}return new eS(e,t)}static getTimezoneOffset(e,t){let r=t.toLocaleString("en-US",{timeZone:e}),n=t.toLocaleString("en-US",{timeZone:"UTC"}),i=new Date(r);return(new Date(n)-i)/6e4}}class eC{constructor(e,t){this.base=0,this.message=`${e} limit exceeded`,this.limit=t}use(e){e=+e||0,$(this.base+e<=this.limit,this.message),this.base+=e}check(e){$((e=+e||0)<=this.limit,this.message)}}class eM extends n{constructor(e,[t,r],n,i,a,s,o,u){super(e,n,i,a,u),this.trimLeft=!1,this.trimRight=!1;const c="-"===n[t],l="-"===n[r-1];let p=c?t+1:t,f=l?r-1:r;for(;p<f&&4&j[n.charCodeAt(p)];)p++;for(;f>p&&4&j[n.charCodeAt(f-1)];)f--;this.contentRange=[p,f],this.trimLeft=c||s,this.trimRight=l||o}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}}class eT extends eM{constructor(e,t,r,n,i){const{trimTagLeft:a,trimTagRight:s,tagDelimiterLeft:o,tagDelimiterRight:u}=n,[c,l]=[t+o.length,r-u.length];super(es.Tag,[c,l],e,t,r,a,s,i),this.tokenizer=new tu(e,n.operators,i,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank(),this.args=this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class eO extends eM{constructor(e,t,r,n,i){const{trimOutputLeft:a,trimOutputRight:s,outputDelimiterLeft:o,outputDelimiterRight:u}=n,c=[t+o.length,r-u.length];super(es.Output,c,e,t,r,a,s,i)}}class eF extends n{constructor(e,t,r,n){super(es.HTML,e,t,r,n),this.input=e,this.begin=t,this.end=r,this.file=n,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}}class e_ extends n{constructor(e,t,r,n){super(es.Number,e,t,r,n),this.input=e,this.begin=t,this.end=r,this.file=n,this.content=Number(this.getText())}}class eB extends n{constructor(e,t,r,n){super(es.Word,e,t,r,n),this.input=e,this.begin=t,this.end=r,this.file=n,this.content=this.getText()}}class eP extends n{constructor(e,t,r,n){super(es.Literal,e,t,r,n),this.input=e,this.begin=t,this.end=r,this.file=n,this.literal=this.getText(),this.content=ee[this.literal]}}let ek={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},eq={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0};class eI extends n{constructor(e,t,r,n){super(es.Operator,e,t,r,n),this.input=e,this.begin=t,this.end=r,this.file=n,this.operator=this.getText()}getPrecedence(){let e=this.getText();return e in ek?ek[e]:1}}class eR extends n{constructor(e,t,r,n,i,a){super(es.PropertyAccess,r,n,i,a),this.variable=e,this.props=t}}class ez extends n{constructor(e,t,r,n,i,a){super(es.Filter,r,n,i,a),this.name=e,this.args=t}}class eL extends n{constructor(e,t,r,n,i,a){super(es.Hash,e,t,r,a),this.input=e,this.begin=t,this.end=r,this.name=n,this.value=i,this.file=a}}let ej=/[\da-fA-F]/,eU=/[0-7]/,e$={b:"\b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v"};function eH(e){let t=e.charCodeAt(0);return t>=97?t-87:t>=65?t-55:t-48}class eG extends n{constructor(e,t,r,n){super(es.Quoted,e,t,r,n),this.input=e,this.begin=t,this.end=r,this.file=n,this.content=function(e){let t="";for(let r=1;r<e.length-1;r++){if("\\"!==e[r]){t+=e[r];continue}if(void 0!==e$[e[r+1]])t+=e$[e[++r]];else if("u"===e[r+1]){let n=0,i=r+2;for(;i<=r+5&&ej.test(e[i]);)n=16*n+eH(e[i++]);r=i-1,t+=String.fromCharCode(n)}else if(eU.test(e[r+1])){let n=r+1,i=0;for(;n<=r+3&&eU.test(e[n]);)i=8*i+eH(e[n++]);r=n-1,t+=String.fromCharCode(i)}else t+=e[++r]}return t}(this.getText())}}class eQ extends n{constructor(e,t,r,n,i,a){super(es.Range,e,t,r,a),this.input=e,this.begin=t,this.end=r,this.lhs=n,this.rhs=i,this.file=a}}class eV extends eM{constructor(e,t,r,n,i){super(es.Tag,[t,r],e,t,r,!1,!1,i),this.tokenizer=new tu(e,n.operators,i,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class eZ extends n{constructor(e,t,r,n,i,a){super(es.FilteredValue,r,n,i,a),this.initial=e,this.filters=t,this.input=r,this.begin=n,this.end=i,this.file=a}}let eW={now:()=>Date.now()};function eY(){return"object"==typeof global&&global.performance||"object"==typeof window&&window.performance||eW}class eJ{renderTemplatesToNodeStream(e,t){let r=new W;return Promise.resolve().then(()=>el(this.renderTemplates(e,t,r))).then(()=>r.end(),e=>r.error(e)),r.stream}*renderTemplates(e,t,r){r||(r=t.opts.keepOutputType?new Y:new Z);let n=[];for(let i of e){t.renderLimit.check(eY().now());try{let e=yield i.render(t,r);if(e&&r.write(e),t.breakCalled||t.continueCalled)break}catch(r){let e=B.is(r)?r:new q(r,i);if(t.opts.catchAllErrors)n.push(e);else throw e}}if(n.length)throw new I(n);return r.buffer}}class eK{constructor(e){this.postfix=[...function*(e){let t=[];for(let r of e)if(tO(r)){for(;t.length&&t[t.length-1].getPrecedence()>r.getPrecedence();)yield t.pop();t.push(r)}else yield r;for(;t.length;)yield t.pop()}(e)]}*evaluate(e,t){$(e,"unable to evaluate: context not defined");let r=[];for(let n of this.postfix)if(tO(n)){let t,i=r.pop();if(1===eq[n.operator])t=yield e.opts.operators[n.operator](i,e);else{let a=r.pop();t=yield e.opts.operators[n.operator](a,i,e)}r.push(t)}else r.push((yield eX(n,e,t)));return r[0]}valid(){return!!this.postfix.length}}function*eX(e,t,r=!1){if(e){if("content"in e)return e.content;if(tk(e))return yield function*(e,t,r){let n=[];for(let r of e.props)n.push((yield eX(r,t,!1)));try{if(!e.variable)return yield t._get(n);{let i=yield eX(e.variable,t,r);return yield t._getFromScope(i,n)}}catch(t){if(r&&"InternalUndefinedVariableError"===t.name)return null;throw new R(t,e)}}(e,t,r);if(tI(e))return yield function*(e,t){let r=yield eX(e.lhs,t),n=yield eX(e.rhs,t);return t.memoryLimit.use(n-r+1),N(+r,+n+1)}(e,t)}}function e0(e,t){return!e1(e,t)}function e1(e,t){return(e=h(e),t.opts.jsTruthy)?!e:!1===e||null==e}let e2={"==":e3,"!=":(e,t)=>!e3(e,t),">":(e,t)=>K(e)?e.gt(t):K(t)?t.lt(e):h(e)>h(t),"<":(e,t)=>K(e)?e.lt(t):K(t)?t.gt(e):h(e)<h(t),">=":(e,t)=>K(e)?e.geq(t):K(t)?t.leq(e):h(e)>=h(t),"<=":(e,t)=>K(e)?e.leq(t):K(t)?t.geq(e):h(e)<=h(t),contains:(e,t)=>y(e=h(e))?e.some(e=>e3(e,t)):!!c(null==e?void 0:e.indexOf)&&e.indexOf(h(t))>-1,not:(e,t)=>e1(h(e),t),and:(e,t,r)=>e0(h(e),r)&&e0(h(t),r),or:(e,t,r)=>e0(h(e),r)||e0(h(t),r)};function e3(e,t){var r,n;return K(e)?e.equals(t):K(t)?t.equals(e):(e=h(e),t=h(t),y(e))?y(t)&&(r=e,n=t,r.length===n.length&&!r.some((e,t)=>!e3(e,n[t]))):e===t}class e5{constructor(e,t,r,n){this.key=e,this.value=t,this.next=r,this.prev=n}}class e8{constructor(e,t=0){this.limit=e,this.size=t,this.cache={},this.head=new e5("HEAD",null,null,null),this.tail=new e5("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(e,t){if(this.cache[e])this.cache[e].value=t;else{let r=new e5(e,t,this.head.next,this.head);this.head.next.prev=r,this.head.next=r,this.cache[e]=r,this.size++,this.ensureLimit()}}read(e){if(!this.cache[e])return;let{value:t}=this.cache[e];return this.remove(e),this.write(e,t),t}remove(e){let t=this.cache[e];t.prev.next=t.next,t.next.prev=t.prev,delete this.cache[e],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}}function e4(e,t){let r=document.createElement("base");r.href=e;let n=document.getElementsByTagName("head")[0];n.insertBefore(r,n.firstChild);let i=document.createElement("a");i.href=t;let a=i.href;return n.removeChild(r),a}var e9=Object.freeze({__proto__:null,resolve:function(e,t,r){return e.length&&"/"!==D(e)&&(e+="/"),e4(e,t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/,(e,t,n)=>{let i=n.split("/").pop();return/\.\w+$/.test(i)?e:t+n+r})},readFile:function(e){return ec(this,void 0,void 0,function*(){return new Promise((t,r)=>{let n=new XMLHttpRequest;n.onload=()=>{n.status>=200&&n.status<300?t(n.responseText):r(Error(n.statusText))},n.onerror=()=>{r(Error("An error occurred whilst receiving the response."))},n.open("GET",e),n.send()})})},readFileSync:function(e){let t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(),t.status<200||t.status>=300)throw Error(t.statusText);return t.responseText},exists:function(e){return ec(this,void 0,void 0,function*(){return!0})},existsSync:function(e){return!0},dirname:function(e){return e4(e,".")},sep:"/"});function e6(e,t=0){return JSON.stringify(e,null,t)}var e7={default:function(e,t,...r){return y(e=h(e))||u(e)?e.length?e:t:!(!1===e&&new Map(r).get("allow_false"))&&(e1(e,this.context)?t:e)},raw:{raw:!0,handler:S},jsonify:e6,to_integer:function(e){return Number(e)},json:e6,inspect:function(e,t=0){let r=[];return JSON.stringify(e,function(e,t){if("object"!=typeof t||null===t)return t;for(;r.length>0&&r[r.length-1]!==this;)r.pop();return r.includes(t)?"[Circular]":(r.push(t),t)},t)}};let te={"&":"&","<":"<",">":">",'"':""","'":"'"},tt={"&":"&","<":"<",">":">",""":'"',"'":"'"};function tr(e){return e=p(e),this.context.memoryLimit.use(e.length),e.replace(/&|<|>|"|'/g,e=>te[e])}function tn(e){return e=p(e),this.context.memoryLimit.use(e.length),e.replace(/&(amp|lt|gt|#34|#39);/g,e=>tt[e])}var ti=Object.freeze({__proto__:null,escape:tr,xml_escape:function(e){return tr.call(this,e)},escape_once:function(e){return tr.call(this,tn.call(this,e))},newline_to_br:function(e){let t=p(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,"<br />\n")},strip_html:function(e){let t=p(e);return this.context.memoryLimit.use(t.length),t.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g,"")}});class ta{constructor(e){this.mapping=e,this.sep="/"}exists(e){return ec(this,void 0,void 0,function*(){return this.existsSync(e)})}existsSync(e){return!v(this.mapping[e])}readFile(e){return ec(this,void 0,void 0,function*(){return this.readFileSync(e)})}readFileSync(e){let t=this.mapping[e];if(v(t))throw Error(`ENOENT: ${e}`);return t}dirname(e){let t=e.split(this.sep);return t.pop(),t.join(this.sep)}resolve(e,t,r){if(t+=r,"."===e)return t;let n=e.split(/\/+/);for(let e of t.split(this.sep))if("."===e||""===e)continue;else".."===e?(n.length>1||""!==n[0])&&n.pop():n.push(e);return n.join(this.sep)}}let ts={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:e9,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:e2,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function to(e){let t=[];return y(e)&&(t=e),u(e)&&(t=[e]),t}class tu{constructor(e,t=ts.operators,r,n){this.input=e,this.file=r,this.rawBeginAt=-1,this.p=n?n[0]:0,this.N=n?n[1]:e.length,this.opTrie=et(t),this.literalTrie=et(ee)}readExpression(){return new eK(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){let e=this.readOperator();if(e){yield e;continue}let t=this.readValue();if(t){yield t;continue}return}}readOperator(){this.skipBlank();let e=this.matchTrie(this.opTrie);if(-1!==e)return new eI(this.input,this.p,this.p=e,this.file)}matchTrie(e){let t,r=e,n=this.p;for(;r[this.input[n]]&&n<this.N;)(r=r[this.input[n++]]).end&&(t=r);return!t||t.needBoundary&&U(this.peek(n-this.p))?-1:n}readFilteredValue(){let e=this.p,t=this.readExpression();return this.assert(t.valid(),`invalid value expression: ${this.snapshot()}`),new eZ(t,this.readFilters(),this.input,e,this.p,this.file)}readFilters(){let e=[];for(;;){let t=this.readFilter();if(!t)return e;e.push(t)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert("|"===this.read(),'expected "|" before filter');let e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;let t=[];if(this.skipBlank(),":"===this.peek())do{++this.p;let e=this.readFilterArg();e&&t.push(e),this.skipBlank(),this.assert(this.end()||","===this.peek()||"|"===this.peek(),()=>`unexpected character ${this.snapshot()}`)}while(","===this.peek());else if("|"===this.peek()||this.end());else throw this.error('expected ":" after filter name');return new ez(e.getText(),t,this.input,e.begin,this.p,this.file)}readFilterArg(){let e=this.readValue();if(!e)return;if(this.skipBlank(),":"!==this.peek())return e;++this.p;let t=this.readValue();return[e.getText(),t]}readTopLevelTokens(e=ts){let t=[];for(;this.p<this.N;){let r=this.readTopLevelToken(e);t.push(r)}let r=!1;for(let n=0;n<t.length;n++){let i=t[n];tz(i)&es.Delimited&&(!r&&i.trimLeft&&function(e,t){if(!e||!tF(e))return;let r=t?4:16;for(;j[e.input.charCodeAt(e.end-1-e.trimRight)]&r;)e.trimRight++}(t[n-1],e.greedy),t_(i)&&("raw"===i.name?r=!0:"endraw"===i.name&&(r=!1)),!r&&i.trimRight&&function(e,t){if(!e||!tF(e))return;let r=t?4:16;for(;j[e.input.charCodeAt(e.begin+e.trimLeft)]&r;)e.trimLeft++;"\n"===e.input.charAt(e.begin+e.trimLeft)&&e.trimLeft++}(t[n+1],e.greedy))}return t}readTopLevelToken(e){let{tagDelimiterLeft:t,outputDelimiterLeft:r}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(t)?this.readTagToken(e):this.match(r)?this.readOutputToken(e):this.readHTMLToken([t,r])}readHTMLToken(e){let t=this.p;for(;this.p<this.N&&!e.some(e=>this.match(e));)++this.p;return new eF(this.input,t,this.p,this.file)}readTagToken(e){let{file:t,input:r}=this,n=this.p;if(-1===this.readToDelimiter(e.tagDelimiterRight))throw this.error(`tag ${this.snapshot(n)} not closed`,n);let i=new eT(r,n,this.p,e,t);return"raw"===i.name&&(this.rawBeginAt=n),i}readToDelimiter(e,t=!1){for(this.skipBlank();this.p<this.N;){if(t&&8&this.peekType()){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return -1}readOutputToken(e=ts){let{file:t,input:r}=this,{outputDelimiterRight:n}=e,i=this.p;if(-1===this.readToDelimiter(n,!0))throw this.error(`output ${this.snapshot(i)} not closed`,i);return new eO(r,i,this.p,e,t)}readEndrawOrRawContent(e){let{tagDelimiterLeft:t,tagDelimiterRight:r}=e,n=this.p,i=this.readTo(t)-t.length;for(;this.p<this.N;){if("endraw"!==this.readIdentifier().getText()){i=this.readTo(t)-t.length;continue}for(;this.p<=this.N;){if(this.rmatch(r)){let t=this.p;if(n===i)return this.rawBeginAt=-1,new eT(this.input,n,t,e,this.file);return this.p=i,new eF(this.input,n,i,this.file)}if(this.rmatch(t))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,n)}readLiquidTagTokens(e=ts){let t=[];for(;this.p<this.N;){let r=this.readLiquidTagToken(e);r&&t.push(r)}return t}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;let t=this.p;this.readToDelimiter("\n");let r=this.p;return new eV(this.input,t,r,e,this.file)}error(e,t=this.p){return new P(e,new eB(this.input,t,this.N,this.file))}assert(e,t,r){if(!e)throw this.error("function"==typeof t?t():t,r)}snapshot(e=this.p){var t;return JSON.stringify((t=this.input.slice(e,this.N)).length>32?t.slice(0,29)+"...":t)}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();let e=this.p;for(;!this.end()&&U(this.peek());)++this.p;return new eB(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){let e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return(this.skipBlank(),"#"===this.input[this.p])?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){let t=[];for(;;){let r=this.readHash(e);if(!r)return t;t.push(r)}}readHash(e){let t;this.skipBlank(),","===this.peek()&&++this.p;let r=this.p,n=this.readNonEmptyIdentifier();if(!n)return;this.skipBlank();let i=u(e)?e:e?"=":":";return this.peek()===i&&(++this.p,t=this.readValue()),new eL(this.input,r,this.p,n,t,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return -1}readValue(){this.skipBlank();let e=this.p,t=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),r=this.readProperties(!t);return r.length?new eR(t,r,this.input,e,this.p):t}readScopeValue(){this.skipBlank();let e=this.p,t=this.readProperties();if(t.length)return new eR(void 0,t,this.input,e,this.p)}readProperties(e=!0){let t=[];for(;;){if("["===this.peek()){this.p++;let e=this.readValue()||new eB(this.input,this.p,this.p,this.file);this.assert(-1!==this.readTo("]"),"[ not closed"),t.push(e);continue}if(e&&!t.length){let e=this.readNonEmptyIdentifier();if(e){t.push(e);continue}}if("."===this.peek()&&"."!==this.peek(1)){this.p++;let e=this.readNonEmptyIdentifier();if(!e)break;t.push(e);continue}break}return t}readNumber(){this.skipBlank();let e=!1,t=!1,r=0;for(64&this.peekType()&&r++;this.p+r<=this.N;)if(32&this.peekType(r))t=!0,r++;else if("."===this.peek(r)&&"."!==this.peek(r+1)){if(e||!t)return;e=!0,r++}else break;if(t&&!U(this.peek(r))){let e=new e_(this.input,this.p,this.p+r,this.file);return this.advance(r),e}}readLiteral(){this.skipBlank();let e=this.matchTrie(this.literalTrie);if(-1===e)return;let t=new eP(this.input,this.p,e,this.file);return this.p=e,t}readRange(){this.skipBlank();let e=this.p;if("("!==this.peek())return;++this.p;let t=this.readValueOrThrow();this.skipBlank(),this.assert("."===this.read()&&"."===this.read(),"invalid range syntax");let r=this.readValueOrThrow();return this.skipBlank(),this.assert(")"===this.read(),"invalid range syntax"),new eQ(this.input,e,this.p,t,r,this.file)}readValueOrThrow(){let e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();let e=this.p;if(!(8&this.peekType()))return;++this.p;let t=!1;for(;this.p<this.N&&(++this.p,this.input[this.p-1]!==this.input[e]||t);)t?t=!1:"\\"===this.input[this.p-1]&&(t=!0);return new eG(this.input,e,this.p,this.file)}*readFileNameTemplate(e){let{outputDelimiterLeft:t}=e,r=[","," ",t],n=new Set(r);for(;this.p<this.N&&!n.has(this.peek());)yield this.match(t)?this.readOutputToken(e):this.readHTMLToken(r)}match(e){for(let t=0;t<e.length;t++)if(e[t]!==this.input[this.p+t])return!1;return!0}rmatch(e){for(let t=0;t<e.length;t++)if(e[e.length-1-t]!==this.input[this.p-1-t])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:j[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;4&this.peekType();)++this.p}}class tc{constructor(e,t){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=t}on(e,t){return this.handlers[e]=t,this}trigger(e,t){let r=this.handlers[e];return!!r&&(r.call(this,t),!0)}start(){let e;for(this.trigger("start");!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||t_(e)&&this.trigger(`tag:${e.name}`,e))continue;let t=this.parseToken(e,this.tokens);this.trigger("template",t)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}}class tl{constructor(e){this.token=e}}class tp extends tl{constructor(e,t,r){super(e),this.name=e.name,this.liquid=r,this.tokenizer=e.tokenizer}}class tf{constructor(e,t){for(const r of(this.hash={},(e instanceof tu?e:new tu(e,{})).readHashes(t)))this.hash[r.name.content]=r.value}*render(e){let t={};for(let r of Object.keys(this.hash))t[r]=void 0===this.hash[r]||(yield eX(this.hash[r],e));return t}}class td{constructor(e,t,r){this.token=e,this.name=e.name,this.handler=c(t)?t:c(null==t?void 0:t.handler)?t.handler:S,this.raw=!c(t)&&!!(null==t?void 0:t.raw),this.args=e.args,this.liquid=r}*render(e,t){let r=[];for(let e of this.args)y(e)?r.push([e[0],(yield eX(e[1],t))]):r.push((yield eX(e,t)));return yield this.handler.apply({context:t,token:this.token,liquid:this.liquid},[e,...r])}}class th{constructor(e,t){this.filters=[];const r="string"==typeof e?new tu(e,t.options.operators).readFilteredValue():e;this.initial=r.initial,this.filters=r.filters.map(e=>new td(e,this.getFilter(t,e.name),t))}*value(e,t){t=t||e.opts.lenientIf&&this.filters.length>0&&"default"===this.filters[0].name;let r=yield this.initial.evaluate(e,t);for(let t of this.filters)r=yield t.render(r,e);return r}getFilter(e,t){let r=e.filters[t];return $(r||!e.options.strictFilters,()=>`undefined filter: ${t}`),r}}class tm extends tl{constructor(e,t){var r;super(e);const n=new tu(e.input,t.options.operators,e.file,e.contentRange);this.value=new th(n.readFilteredValue(),t);const i=this.value.filters,a=t.options.outputEscape;if(!(null==(r=i[i.length-1])?void 0:r.raw)&&a){const e=new ez(toString.call(a),[],"",0,0);i.push(new td(e,a,t))}}*render(e,t){let r=yield this.value.value(e,!1);t.write(r)}*arguments(){yield this.value}}class tg extends tl{constructor(e){super(e),this.str=e.getContent()}*render(e,t){t.write(this.str)}}class tv{constructor(e,t){this.segments=e,this.location=t}toString(){return tC(this.segments,!0)}toArray(){return Array.from(function* e(...t){for(let r of t)r instanceof tv?yield Array.from(e(...r.segments)):yield r}(...this.segments))}}class ty{constructor(){this.map=new Map}get(e){let t=tC([e.segments[0]]);return this.map.has(t)||this.map.set(t,[]),this.map.get(t)}has(e){return this.map.has(tC([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}}let tb={partials:!0};function*tx(e,t,r){let n=new ty,i=new ty,a=new ty,s=new tN(new Set),o=new Set;for(let c of e)yield function* e(c,l){if(c.arguments)for(let e of c.arguments())for(let t of tA(e))!function e(t,r){n.push(t);let a=r.alias(t);if(void 0!==a){let e=a.segments[0];u(e)&&!s.has(e)&&i.push(a)}else{let e=t.segments[0];u(e)&&!r.has(e)&&i.push(t)}for(let n of t.segments)n instanceof tv&&e(n,r)}(t,l);if(c.localScope)for(let e of c.localScope()){l.add(e.content),l.deleteAlias(e.content);let[t,r]=e.getPosition();a.push(new tv([e.content],{row:t,col:r,file:e.file}))}if(c.children)if(c.partialScope){let n=c.partialScope();if(void 0===n){for(let n of yield c.children(t,r))yield e(n,l);return}if(o.has(n.name))return;let i=new Set,a=n.isolated?new tN(i):l.push(i);for(let e of n.scope)if(u(e))i.add(e);else{let[t,r]=e;i.add(t);let n=Array.from(tA(r));n.length&&a.setAlias(t,n[0].segments)}for(let i of yield c.children(t,r))yield e(i,a),o.add(n.name);a.pop()}else{for(let n of(c.blockScope&&l.push(new Set(c.blockScope())),yield c.children(t,r)))yield e(n,l);c.blockScope&&l.pop()}}(c,s);return{variables:n.asObject(),globals:i.asObject(),locals:a.asObject()}}function tD(e,t={}){return el(tx(e,Object.assign(Object.assign({},tb),t).partials,!1))}function tw(e,t={}){return ep(tx(e,Object.assign(Object.assign({},tb),t).partials,!0))}class tN{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let t of this.stack)if(t.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){var e;return null==(e=this.stack.pop())?void 0:e.names}add(e){this.stack[0].names.add(e)}alias(e){let t=e.segments[0];if(!u(t))return;let r=this.getAlias(t);if(void 0!==r)return new tv([...r,...e.segments.slice(1)],e.location)}setAlias(e,t){this.stack[this.stack.length-1].aliases.set(e,t)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let t of this.stack){if(t.aliases.has(e))return t.aliases.get(e);if(t.names.has(e))break}}}function*tA(e){tR(e)?yield*tE(e):e instanceof th&&(yield*function*(e){for(let t of e.initial.postfix)tR(t)&&(yield*tE(t));for(let t of e.filters)for(let e of t.args)y(e)&&e[1]?yield*tE(e[1]):tR(e)&&(yield*tE(e))}(e))}function*tE(e){tI(e)?(yield*tE(e.lhs),yield*tE(e.rhs)):tk(e)&&(yield function e(t){let r=[],n=t.file,i=t.props[0];for(let a of(n=n||i.file,tB(i)||tP(i)||tq(i)?r.push(i.content):tk(i)&&r.push(...e(i).segments),t.props.slice(1)))n=n||a.file,tB(a)||tP(a)||tq(a)?r.push(a.content):tk(a)&&r.push(e(a));let[a,s]=t.getPosition();return new tv(r,{row:a,col:s,file:n})}(e))}let tS=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function tC(e,t=!1){let r=[],n=e[0];for(let i of(u(n)&&(!t||n.match(tS)?r.push(`${n}`):r.push(`['${n}']`)),e.slice(1)))i instanceof tv?r.push(`[${tC(i.segments)}]`):u(i)?i.match(tS)?r.push(`.${i}`):r.push(`['${i}']`):r.push(`[${i}]`);return r.join("")}(er=ea||(ea={})).Partials="partials",er.Layouts="layouts",er.Root="root";class tM{constructor(e){if(this.options=e,e.relativeReference){const t=e.fs.sep;$(t,"`fs.sep` is required for relative reference");const r=new RegExp(["."+t,".."+t,"./","../"].map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|"));this.shouldLoadRelative=e=>r.test(e)}else this.shouldLoadRelative=e=>!1;this.contains=this.options.fs.contains||(()=>!0)}*lookup(e,t,r,n){let{fs:i}=this.options,a=this.options[t];for(let s of this.candidates(e,a,n,t!==ea.Root))if(r?i.existsSync(s):yield i.exists(s))return s;throw this.lookupError(e,a)}*candidates(e,t,r,n){let{fs:i,extname:a}=this.options;if(this.shouldLoadRelative(e)&&r){let s=i.resolve(this.dirname(r),e,a);for(let e of t)if(!n||this.contains(e,s)){yield s;break}}for(let r of t){let t=i.resolve(r,e,a);(!n||this.contains(r,t))&&(yield t)}if(void 0!==i.fallback){let t=i.fallback(e);void 0!==t&&(yield t)}}dirname(e){let t=this.options.fs;return $(t.dirname,"`fs.dirname` is required for relative reference"),t.dirname(e)}lookupError(e,t){let r=Error("ENOENT");return r.message=`ENOENT: Failed to lookup "${e}" in "${t}"`,r.code="ENOENT",r}}class tT{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new tM(this.liquid.options),this.parseLimit=new eC("parse length",e.options.parseLimit)}parse(e,t){e=String(e),this.parseLimit.use(e.length);let r=new tu(e,this.liquid.options.operators,t).readTopLevelTokens(this.liquid.options);return this.parseTokens(r)}parseTokens(e){let t,r=[],n=[];for(;t=e.shift();)try{r.push(this.parseToken(t,e))}catch(e){if(this.liquid.options.catchAllErrors)n.push(e);else throw e}if(n.length)throw new I(n);return r}parseToken(e,t){try{var r;if(t_(e)){let r=this.liquid.tags[e.name];return $(r,`tag "${e.name}" not found`),new r(e,t,this.liquid,this)}if(r=e,tz(r)===es.Output)return new tm(e,this.liquid);return new tg(e)}catch(t){if(B.is(t))throw t;throw new k(t,e)}}parseStream(e){return new tc(e,(e,t)=>this.parseToken(e,t))}*_parseFileCached(e,t,r=ea.Root,n){let i=this.cache,a=this.loader.shouldLoadRelative(e)?n+","+e:r+":"+e,s=yield i.read(a);if(s)return s;let o=this._parseFile(e,t,r,n),u=t?yield o:el(o);i.write(a,u);try{return yield u}catch(e){throw i.remove(a),e}}*_parseFile(e,t,r=ea.Root,n){let i=yield this.loader.lookup(e,r,t,n);return this.parse(t?this.fs.readFileSync(i):yield this.fs.readFile(i),i)}}function tO(e){return tz(e)===es.Operator}function tF(e){return tz(e)===es.HTML}function t_(e){return tz(e)===es.Tag}function tB(e){return tz(e)===es.Quoted}function tP(e){return tz(e)===es.Number}function tk(e){return tz(e)===es.PropertyAccess}function tq(e){return tz(e)===es.Word}function tI(e){return tz(e)===es.Range}function tR(e){return(1667&tz(e))>0}function tz(e){return e?e.kind:-1}(en=es||(es={}))[en.Number=1]="Number",en[en.Literal=2]="Literal",en[en.Tag=4]="Tag",en[en.Output=8]="Output",en[en.HTML=16]="HTML",en[en.Filter=32]="Filter",en[en.Hash=64]="Hash",en[en.PropertyAccess=128]="PropertyAccess",en[en.Word=256]="Word",en[en.Range=512]="Range",en[en.Quoted=1024]="Quoted",en[en.Operator=2048]="Operator",en[en.FilteredValue=4096]="FilteredValue",en[en.Delimited=12]="Delimited";class tL{constructor(e={},t=ts,r={},{memoryLimit:n,renderLimit:i}={}){var a,s,o,u,c;this.scopes=[{}],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!r.sync,this.opts=t,this.globals=null!=(a=r.globals)?a:t.globals,this.environments=w(e)?e:Object(e),this.strictVariables=null!=(s=r.strictVariables)?s:this.opts.strictVariables,this.ownPropertyOnly=null!=(o=r.ownPropertyOnly)?o:t.ownPropertyOnly,this.memoryLimit=null!=n?n:new eC("memory alloc",null!=(u=r.memoryLimit)?u:t.memoryLimit),this.renderLimit=null!=i?i:new eC("template render",eY().now()+(null!=(c=r.renderLimit)?c:t.renderLimit))}getRegister(e){return this.registers[e]=this.registers[e]||{}}setRegister(e,t){return this.registers[e]=t}saveRegister(...e){return e.map(e=>[e,this.getRegister(e)])}restoreRegister(e){return e.forEach(([e,t])=>this.setRegister(e,t))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,t)=>eu(e,t),{})}get(e){return this.getSync(e)}getSync(e){return ep(this._get(e))}*_get(e){let t=this.findScope(e[0]);return yield this._getFromScope(t,e)}getFromScope(e,t){return ep(this._getFromScope(e,t))}*_getFromScope(e,t,r=this.strictVariables){u(t)&&(t=t.split("."));for(let n=0;n<t.length;n++)if(e=yield this.readProperty(e,t[n]),r&&void 0===e)throw new z(t.slice(0,n+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new tL(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let t=this.scopes.length-1;t>=0;t--){let r=this.scopes[t];if(e in r)return r}return e in this.environments?this.environments:this.globals}readProperty(e,t){var r,n,a;if(e=function e(t){return t&&c(t.toLiquid)?e(t.toLiquid()):t}(e),t=h(t),v(e))return e;if(y(e)&&t<0)return e[e.length+ +t];let s=function(e,t,r){if(!r||o.call(e,t)||e instanceof i)return e[t]}(e,t,this.ownPropertyOnly);if(void 0===s&&e instanceof i)return e.liquidMethodMissing(t,this);if(c(s))return s.call(e);if("size"===t){return r=e,o.call(r,"size")||void 0!==r.size?r.size:y(r)||u(r)?r.length:"object"==typeof r?Object.keys(r).length:void 0}if("first"===t){return y(n=e)?n[0]:n.first}if("last"===t){return y(a=e)?a[a.length-1]:a.last}return s}}(ei=eo||(eo={}))[ei.OUTPUT=0]="OUTPUT",ei[ei.STORE=1]="STORE";var tj=Object.freeze({__proto__:null,abs:T(Math.abs),at_least:T(Math.max),at_most:T(Math.min),ceil:T(Math.ceil),divided_by:T((e,t,r=!1)=>r?Math.floor(e/t):e/t),floor:T(Math.floor),minus:T((e,t)=>e-t),plus:T((e,t)=>e+t),modulo:T((e,t)=>e%t),times:T((e,t)=>e*t),round:function(e,t=0){e=m(e);let r=Math.pow(10,t=m(t));return Math.round(e*r)/r}});let tU=/[^\p{M}\p{L}\p{Nd}]+/ug,t$={raw:/\s+/g,default:tU,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:tU,none:null};var tH=Object.freeze({__proto__:null,url_decode:e=>decodeURIComponent(p(e)).replace(/\+/g," "),url_encode:e=>encodeURIComponent(p(e)).replace(/%20/g,"+"),cgi_escape:e=>encodeURIComponent(p(e)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),uri_escape:e=>encodeURI(p(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),slugify:function(e,t="default",r=!1){e=p(e);let n=t$[t];return n&&("latin"===t&&(e=e.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")),e=e.replace(n,"-").replace(/^-|-$/g,"")),r?e:e.toLowerCase()}});function tG(e,t=[]){let r=d(e),n=d(t);return this.context.memoryLimit.use(r.length+n.length),r.concat(n)}function tQ(e){return this.context.opts.jekyllWhere?t=>G.is(e)?e3(t,e):y(t)?t.some(t=>e3(t,e)):e3(t,e):void 0===e?e=>e0(e,this.context):t=>e3(t,e)}function*tV(e,t,r,n){let i=[];t=d(t),this.context.memoryLimit.use(t.length);let a=new tu(p(r)).readScopeValue();for(let e of t)i.push((yield eX(a,this.context.spawn(e))));let s=tQ.call(this,n);return t.filter((t,r)=>s(i[r])===e)}function*tZ(e,t,r,n){let i=[],a=new th(p(n),this.liquid),s=d(t);for(let t of(this.context.memoryLimit.use(s.length),s)){this.context.push({[r]:t});let n=yield a.value(this.context);this.context.pop(),n===e&&i.push(t)}return i}function*tW(e,t,r){let n=new tu(p(t)).readScopeValue(),i=d(e),a=tQ.call(this,r);for(let e=0;e<i.length;e++)if(a((yield eX(n,this.context.spawn(i[e])))))return[e,i[e]]}function*tY(e,t,r){let n=new th(p(r),this.liquid),i=d(e);for(let e=0;e<i.length;e++){this.context.push({[t]:i[e]});let r=yield n.value(this.context);if(this.context.pop(),r)return[e,i[e]]}}var tJ=Object.freeze({__proto__:null,join:M(function(e,t){let r=d(e),n=v(t)?" ":p(t),i=r.length*(1+n.length);return this.context.memoryLimit.use(i),r.join(n)}),last:M(e=>b(e)?D(e):""),first:M(e=>b(e)?e[0]:""),reverse:M(function(e){let t=d(e);return this.context.memoryLimit.use(t.length),[...t].reverse()}),sort:function*(e,t){let r=[],n=d(e);for(let e of(this.context.memoryLimit.use(n.length),n))r.push([e,t?yield this.context._getFromScope(e,p(t).split("."),!1):e]);return r.sort((e,t)=>{let r=e[1],n=t[1];return r<n?-1:+(r>n)}).map(e=>e[0])},sort_natural:function(e,t){let r=p(t),n=void 0===t?C:(e,t)=>C(e[r],t[r]),i=d(e);return this.context.memoryLimit.use(i.length),[...i].sort(n)},size:e=>e&&e.length||0,map:function*(e,t){let r=[],n=d(e);for(let e of(this.context.memoryLimit.use(n.length),n))r.push((yield this.context._getFromScope(e,p(t),!1)));return r},sum:function*(e,t){let r=0;for(let n of d(e)){let e=Number(t?yield this.context._getFromScope(n,p(t),!1):n);r+=Number.isNaN(e)?0:e}return r},compact:function(e){let t=d(e);return this.context.memoryLimit.use(t.length),t.filter(e=>!v(h(e)))},concat:tG,push:function(e,t){return tG.call(this,e,[t])},unshift:function(e,t){let r=d(e);this.context.memoryLimit.use(r.length);let n=[...r];return n.unshift(t),n},pop:function(e){let t=[...d(e)];return t.pop(),t},shift:function(e){let t=d(e);this.context.memoryLimit.use(t.length);let r=[...t];return r.shift(),r},slice:function(e,t,r=1){return v(e=h(e))?[]:(y(e)||(e=p(e)),t=t<0?e.length+t:t,this.context.memoryLimit.use(r),e.slice(t,t+r))},where:function*(e,t,r){return yield*tV.call(this,!0,e,t,r)},reject:function*(e,t,r){return yield*tV.call(this,!1,e,t,r)},where_exp:function*(e,t,r){return yield*tZ.call(this,!0,e,t,r)},reject_exp:function*(e,t,r){return yield*tZ.call(this,!1,e,t,r)},group_by:function*(e,t){let r=new Map;e=f(e);let n=new tu(p(t)).readScopeValue();for(let t of(this.context.memoryLimit.use(e.length),e)){let e=yield eX(n,this.context.spawn(t));r.has(e)||r.set(e,[]),r.get(e).push(t)}return[...r.entries()].map(([e,t])=>({name:e,items:t}))},group_by_exp:function*(e,t,r){let n=new Map,i=new th(p(r),this.liquid);for(let r of(e=f(e),this.context.memoryLimit.use(e.length),e)){this.context.push({[t]:r});let e=yield i.value(this.context);this.context.pop(),n.has(e)||n.set(e,[]),n.get(e).push(r)}return[...n.entries()].map(([e,t])=>({name:e,items:t}))},has:function*(e,t,r){return!!(yield*tW.call(this,e,t,r))},has_exp:function*(e,t,r){return!!(yield*tY.call(this,e,t,r))},find_index:function*(e,t,r){let n=yield*tW.call(this,e,t,r);return n?n[0]:void 0},find_index_exp:function*(e,t,r){let n=yield*tY.call(this,e,t,r);return n?n[0]:void 0},find:function*(e,t,r){let n=yield*tW.call(this,e,t,r);return n?n[1]:void 0},find_exp:function*(e,t,r){let n=yield*tY.call(this,e,t,r);return n?n[1]:void 0},uniq:function(e){return e=d(e),this.context.memoryLimit.use(e.length),[...new Set(e)]},sample:function(e,t=1){if(v(e=h(e)))return[];y(e)||(e=p(e)),this.context.memoryLimit.use(t);let r=[...e].sort(()=>Math.random()-.5);return 1===t?r[0]:r.slice(0,t)}});function tK(e,t,r){var n,i,a;let s=(null!=(n=null==e?void 0:e.length)?n:0)+(null!=(i=null==t?void 0:t.length)?i:0)+(null!=(a=null==r?void 0:r.length)?a:0);this.context.memoryLimit.use(s);let o=t0(e,this.context.opts,r);return o?eb(o,t=v(t=h(t))?this.context.opts.dateFormat:p(t)):e}function tX(e,t,r,n){let i=t0(e,this.context.opts);if(!i)return e;if("ordinal"===r){let e=i.getDate();return"US"===n?eb(i,`${t} ${e}%q, %Y`):eb(i,`${e}%q ${t} %Y`)}return eb(i,`%d ${t} %Y`)}function t0(e,t,r){let n,i=null!=r?r:t.timezoneOffset,a=t.locale;return(n="now"===(e=h(e))||"today"===e?new eS(Date.now(),a,i):g(e)?new eS(1e3*e,a,i):u(e)?/^\d+$/.test(e)?new eS(1e3*e,a,i):t.preserveTimezones&&void 0===r?eS.createDateFixedToTimezone(e,a):new eS(e,a,i):new eS(e,a,i)).valid()?n:void 0}var t1=Object.freeze({__proto__:null,date:tK,date_to_xmlschema:function(e){return tK.call(this,e,"%Y-%m-%dT%H:%M:%S%:z")},date_to_rfc822:function(e){return tK.call(this,e,"%a, %d %b %Y %H:%M:%S %z")},date_to_string:function(e,t,r){return tX.call(this,e,"%b",t,r)},date_to_long_string:function(e,t,r){return tX.call(this,e,"%B",t,r)}});let t2=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,t3=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;var t5=Object.freeze({__proto__:null,append:function(e,t){$(2==arguments.length,"append expect 2 arguments");let r=p(e),n=p(t);return this.context.memoryLimit.use(r.length+n.length),r+n},prepend:function(e,t){$(2==arguments.length,"prepend expect 2 arguments");let r=p(e),n=p(t);return this.context.memoryLimit.use(r.length+n.length),n+r},lstrip:function(e,t){let r=p(e);return(this.context.memoryLimit.use(r.length),t)?(t=O(p(t)),r.replace(RegExp(`^[${t}]+`,"g"),"")):r.replace(/^\s+/,"")},downcase:function(e){let t=p(e);return this.context.memoryLimit.use(t.length),t.toLowerCase()},upcase:function(e){let t=p(e);return this.context.memoryLimit.use(t.length),p(t).toUpperCase()},remove:function(e,t){let r=p(e);return this.context.memoryLimit.use(r.length),r.split(p(t)).join("")},remove_first:function(e,t){let r=p(e);return this.context.memoryLimit.use(r.length),r.replace(p(t),"")},remove_last:function(e,t){let r=p(e);this.context.memoryLimit.use(r.length);let n=p(t),i=r.lastIndexOf(n);return -1===i?r:r.substring(0,i)+r.substring(i+n.length)},rstrip:function(e,t){return(e=p(e),this.context.memoryLimit.use(e.length),t)?(t=O(p(t)),e.replace(RegExp(`[${t}]+$`,"g"),"")):e.replace(/\s+$/,"")},split:function(e,t){let r=p(e);this.context.memoryLimit.use(r.length);let n=r.split(p(t));for(;n.length&&""===n[n.length-1];)n.pop();return n},strip:function(e,t){let r=p(e);return(this.context.memoryLimit.use(r.length),t)?(t=O(p(t)),r.replace(RegExp(`^[${t}]+`,"g"),"").replace(RegExp(`[${t}]+$`,"g"),"")):r.trim()},strip_newlines:function(e){let t=p(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,"")},capitalize:function(e){return e=p(e),this.context.memoryLimit.use(e.length),e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},replace:function(e,t,r){let n=p(e);return this.context.memoryLimit.use(n.length),n.split(p(t)).join(r)},replace_first:function(e,t,r){let n=p(e);return this.context.memoryLimit.use(n.length),n.replace(p(t),r)},replace_last:function(e,t,r){let n=p(e);this.context.memoryLimit.use(n.length);let i=p(t),a=n.lastIndexOf(i);if(-1===a)return n;let s=p(r);return n.substring(0,a)+s+n.substring(a+i.length)},truncate:function(e,t=50,r="..."){let n=p(e);return(this.context.memoryLimit.use(n.length),n.length<=t)?e:n.substring(0,t-r.length)+r},truncatewords:function(e,t=15,r="..."){let n=p(e);this.context.memoryLimit.use(n.length);let i=n.split(/\s+/);t<=0&&(t=1);let a=i.slice(0,t).join(" ");return i.length>=t&&(a+=r),a},normalize_whitespace:function(e){let t=p(e);return this.context.memoryLimit.use(t.length),t.replace(/\s+/g," ")},number_of_words:function(e,t){let r=p(e);if(this.context.memoryLimit.use(r.length),!(e=r.trim()))return 0;switch(t){case"cjk":return(e.match(t2)||[]).length+(e.match(t3)||[]).length;case"auto":return t2.test(e)?e.match(t2).length+(e.match(t3)||[]).length:e.split(/\s+/).length;default:return e.split(/\s+/).length}},array_to_sentence_string:function(e,t="and"){switch(this.context.memoryLimit.use(e.length),e.length){case 0:return"";case 1:return e[0];case 2:return`${e[0]} ${t} ${e[1]}`;default:return`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}}});let t8=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ti),tj),tH),tJ),t1),t5),e7),t4=["offset","limit","reversed"];function t9(e,t,r){if(t.options.dynamicPartials){let t=e.readValue();return(e.assert(t,"illegal file path"),"none"===t.getText())?void 0:tB(t)?t6(r.parse(t.content)):t}let n=[...e.readFileNameTemplate(t.options)],i=t6(r.parseTokens(n));return"none"===i?void 0:i}function t6(e){return 1===e.length&&tF(e[0].token)?e[0].token.getContent():e}function*t7(e,t,r){return"string"==typeof e?e:Array.isArray(e)?r.renderer.renderTemplates(e,t):yield eX(e,t)}class re extends V{constructor(e,t,r,n){super(e,r,n),this.length=e,this.cols=t}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return 0===this.col0()}col_last(){return this.col()===this.cols}}let rt={assign:class extends tp{constructor(e,t,r){super(e,t,r),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert("="===this.tokenizer.peek(),'expected "="'),this.tokenizer.advance(),this.value=new th(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},for:class extends tp{constructor(e,t,r,n){let i;super(e,t,r);const a=this.tokenizer.readIdentifier(),s=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if(!a.size()||"in"!==s.content||!o)throw Error(`illegal tag: ${e.getText()}`);this.variable=a.content,this.collection=o,this.hash=new tf(this.tokenizer,r.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];const u=n.parseStream(t).on("start",()=>i=this.templates).on("tag:else",e=>{H(e.args),i=this.elseTemplates}).on("tag:endfor",e=>{H(e.args),u.stop()}).on("template",e=>i.push(e)).on("end",()=>{throw Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,t){let r=this.liquid.renderer,n=f((yield eX(this.collection,e)));if(!n.length)return void(yield r.renderTemplates(this.elseTemplates,e,t));let i="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(i)});let a=yield this.hash.render(e);e.pop(),n=(this.liquid.options.orderedFilterParameters?Object.keys(a).filter(e=>t4.includes(e)):t4.filter(e=>void 0!==a[e])).reduce((e,t)=>{var r,n,i,s;return"offset"===t?(r=e,n=a.offset,r.slice(n)):"limit"===t?(i=e,s=a.limit,i.slice(0,s)):[...e].reverse()},n),e.setRegister(i,(a.offset||0)+n.length);let s={forloop:new V(n.length,this.collection.getText(),this.variable)};for(let i of(e.push(s),n)){if(s[this.variable]=i,e.continueCalled=e.breakCalled=!1,yield r.renderTemplates(this.templates,e,t),e.breakCalled)break;s.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){for(let e of(yield this.collection,Object.values(this.hash.hash)))tR(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}},capture:class extends tp{constructor(e,t,r,n){for(super(e,t,r),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;t.length;){const e=t.shift();if(t_(e)&&"endcapture"===e.name)return;this.templates.push(n.parseToken(e,t))}throw Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted()))return e;throw this.tokenizer.error("invalid capture name")}*render(e){let t=this.liquid.renderer,r=yield t.renderTemplates(this.templates,e);e.bottom()[this.variable]=r}*children(){return this.templates}*localScope(){yield this.identifier}},case:class extends tp{constructor(e,t,r,n){super(e,t,r),this.branches=[],this.elseTemplates=[],this.value=new th(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let i=[],a=0;const s=n.parseStream(t).on("tag:when",e=>{if(a>0)return;i=[];let t=[];for(;!e.tokenizer.end();)t.push(e.tokenizer.readValueOrThrow()),e.tokenizer.skipBlank(),","===e.tokenizer.peek()?e.tokenizer.readTo(","):e.tokenizer.readTo("or");this.branches.push({values:t,templates:i})}).on("tag:else",()=>{a++,i=this.elseTemplates}).on("tag:endcase",()=>s.stop()).on("template",e=>{(i!==this.elseTemplates||1===a)&&i.push(e)}).on("end",()=>{throw Error(`tag ${e.getText()} not closed`)});s.start()}*render(e,t){let r=this.liquid.renderer,n=h((yield this.value.value(e,e.opts.lenientIf))),i=!1;for(let a of this.branches)for(let s of a.values)if(e3(n,(yield eX(s,e,e.opts.lenientIf)))){yield r.renderTemplates(a.templates,e,t),i=!0;break}i||(yield r.renderTemplates(this.elseTemplates,e,t))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},comment:class extends tp{constructor(e,t,r){for(super(e,t,r);t.length;){const e=t.shift();if(t_(e)&&"endcomment"===e.name)return}throw Error(`tag ${e.getText()} not closed`)}render(){}},include:class extends tp{constructor(e,t,r,n){super(e,t,r);const{tokenizer:i}=e;this.file=t9(i,this.liquid,n),this.currentFile=e.file;const a=i.p;"with"===i.readIdentifier().content?(i.skipBlank(),":"!==i.peek()?this.withVar=i.readValue():i.p=a):i.p=a,this.hash=new tf(i,r.options.jekyllInclude||r.options.keyValueSeparator)}*render(e,t){let{liquid:r,hash:n,withVar:i}=this,{renderer:a}=r,s=yield t7(this.file,e,r);$(s,()=>`illegal file path "${s}"`);let o=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",eo.OUTPUT);let u=yield n.render(e);i&&(u[s]=yield eX(i,e));let c=yield r._parsePartialFile(s,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:u}:u),yield a.renderTemplates(c,e,t),e.pop(),e.restoreRegister(o)}*children(e,t){return e&&u(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(u(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(tR),tR(this.file)&&(yield this.file),tR(this.withVar)&&(yield this.withVar)}},render:class extends tp{constructor(e,t,r,n){super(e,t,r);const i=this.tokenizer;for(this.file=t9(i,this.liquid,n),this.currentFile=e.file;!i.end();){i.skipBlank();const e=i.p,t=i.readIdentifier();if(("with"===t.content||"for"===t.content)&&(i.skipBlank(),":"!==i.peek())){const e=i.readValue();if(e){let r;const n=i.p;"as"===i.readIdentifier().content?r=i.readIdentifier():i.p=n,this[t.content]={value:e,alias:r&&r.content},i.skipBlank(),","===i.peek()&&i.advance();continue}}i.p=e;break}this.hash=new tf(i,r.options.keyValueSeparator)}*render(e,t){let{liquid:r,hash:n}=this,i=yield t7(this.file,e,r);$(i,()=>`illegal file path "${i}"`);let a=e.spawn(),s=a.bottom();if(eu(s,(yield n.render(e))),this.with){let{value:t,alias:r}=this.with;s[r||i]=yield eX(t,e)}if(this.for){let{value:n,alias:o}=this.for,u=f((yield eX(n,e)));for(let e of(s.forloop=new V(u.length,n.getText(),o),u)){s[o]=e;let n=yield r._parsePartialFile(i,a.sync,this.currentFile);yield r.renderer.renderTemplates(n,a,t),s.forloop.next()}}else{let e=yield r._parsePartialFile(i,a.sync,this.currentFile);yield r.renderer.renderTemplates(e,a,t)}}*children(e,t){return e&&u(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(u(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:t,alias:r}=this.with;u(r)?e.push([r,t]):u(this.file)&&e.push([this.file,t])}if(this.for){let{value:t,alias:r}=this.for;u(r)?e.push([r,t]):u(this.file)&&e.push([this.file,t])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))tR(e)&&(yield e);if(this.with){let{value:e}=this.with;tR(e)&&(yield e)}if(this.for){let{value:e}=this.for;tR(e)&&(yield e)}}},decrement:class extends tp{constructor(e,t,r){super(e,t,r),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){let r=e.environments;g(r[this.variable])||(r[this.variable]=0),t.write(p(--r[this.variable]))}*localScope(){yield this.identifier}},increment:class extends tp{constructor(e,t,r){super(e,t,r),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){let r=e.environments;g(r[this.variable])||(r[this.variable]=0);let n=r[this.variable];r[this.variable]++,t.write(p(n))}*localScope(){yield this.identifier}},cycle:class extends tp{constructor(e,t,r){super(e,t,r),this.candidates=[];const n=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),n&&(":"===this.tokenizer.peek()?(this.group=n,this.tokenizer.advance()):this.candidates.push(n));!this.tokenizer.end();){const e=this.tokenizer.readValue();e&&this.candidates.push(e),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,t){let r=yield eX(this.group,e),n=`cycle:${r}:`+this.candidates.join(","),i=e.getRegister("cycle"),a=i[n];void 0===a&&(a=i[n]=0);let s=this.candidates[a];return a=(a+1)%this.candidates.length,i[n]=a,yield eX(s,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},if:class extends tp{constructor(e,t,r,n){super(e,t,r),this.branches=[];let i=[];n.parseStream(t).on("start",()=>this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})).on("tag:elsif",e=>{$(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})}).on("tag:else",e=>{H(e.args),$(!this.elseTemplates,"duplicated else"),i=this.elseTemplates=[]}).on("tag:endif",function(e){H(e.args),this.stop()}).on("template",e=>i.push(e)).on("end",()=>{throw Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){let r=this.liquid.renderer;for(let{value:n,templates:i}of this.branches)if(e0((yield n.value(e,e.opts.lenientIf)),e))return void(yield r.renderTemplates(i,e,t));yield r.renderTemplates(this.elseTemplates||[],e,t)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},layout:class extends tp{constructor(e,t,r,n){super(e,t,r),this.file=t9(this.tokenizer,this.liquid,n),this.currentFile=e.file,this.args=new tf(this.tokenizer,r.options.keyValueSeparator),this.templates=n.parseTokens(t)}*render(e,t){let{liquid:r,args:n,file:i}=this,{renderer:a}=r;if(void 0===i){e.setRegister("blockMode",eo.OUTPUT),yield a.renderTemplates(this.templates,e,t);return}let s=yield t7(this.file,e,r);$(s,()=>`illegal file path "${s}"`);let o=yield r._parseLayoutFile(s,e.sync,this.currentFile);e.setRegister("blockMode",eo.STORE);let u=yield a.renderTemplates(this.templates,e),c=e.getRegister("blocks");void 0===c[""]&&(c[""]=(e,t)=>t.write(u)),e.setRegister("blockMode",eo.OUTPUT),e.push((yield n.render(e))),yield a.renderTemplates(o,e,t),e.pop()}*children(e){let t=this.templates.slice();return e&&u(this.file)&&t.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),t}*arguments(){for(let e of Object.values(this.args.hash))tR(e)&&(yield e);tR(this.file)&&(yield this.file)}partialScope(){if(u(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},block:class extends tp{constructor(e,t,r,n){super(e,t,r),this.templates=[];const i=/\w+/.exec(e.args);for(this.block=i?i[0]:"";t.length;){const e=t.shift();if(t_(e)&&"endblock"===e.name)return;const r=n.parseToken(e,t);this.templates.push(r)}throw Error(`tag ${e.getText()} not closed`)}*render(e,t){let r=this.getBlockRender(e);e.getRegister("blockMode")===eo.STORE?e.getRegister("blocks")[this.block]=r:yield r(new J,t)}getBlockRender(e){let{liquid:t,templates:r}=this,n=e.getRegister("blocks")[this.block],i=function*(n,i){e.push({block:n}),yield t.renderer.renderTemplates(r,e,i),e.pop()};return n?(e,t)=>n(new J(t=>i(e,t)),t):i}*children(){return this.templates}blockScope(){return["block"]}},raw:class extends tp{constructor(e,t,r){for(super(e,t,r),this.tokens=[];t.length;){const e=t.shift();if(t_(e)&&"endraw"===e.name)return;this.tokens.push(e)}throw Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}},tablerow:class extends tp{constructor(e,t,r,n){let i;super(e,t,r);const a=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();const s=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if("in"!==s.content||!o)throw Error(`illegal tag: ${e.getText()}`);this.variable=a.content,this.collection=o,this.args=new tf(this.tokenizer,r.options.keyValueSeparator),this.templates=[];const u=n.parseStream(t).on("start",()=>i=this.templates).on("tag:endtablerow",()=>u.stop()).on("template",e=>i.push(e)).on("end",()=>{throw Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,t){let r=f((yield eX(this.collection,e))),n=yield this.args.render(e),i=n.offset||0,a=void 0===n.limit?r.length:n.limit;r=r.slice(i,i+a);let s=n.cols||r.length,o=this.liquid.renderer,u=new re(r.length,s,this.collection.getText(),this.variable),c={tablerowloop:u};e.push(c);for(let n=0;n<r.length;n++,u.next())c[this.variable]=r[n],0===u.col0()&&(1!==u.row()&&t.write("</tr>"),t.write(`<tr class="row${u.row()}">`)),t.write(`<td class="col${u.col()}">`),yield o.renderTemplates(this.templates,e,t),t.write("</td>");r.length&&t.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){for(let e of(yield this.collection,Object.values(this.args.hash)))tR(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},unless:class extends tp{constructor(e,t,r,n){super(e,t,r),this.branches=[],this.elseTemplates=[];let i=[],a=0;n.parseStream(t).on("start",()=>this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),test:e1,templates:i=[]})).on("tag:elsif",e=>{if(a>0){i=[];return}this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),test:e0,templates:i=[]})}).on("tag:else",()=>{a++,i=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",e=>{(i!==this.elseTemplates||1===a)&&i.push(e)}).on("end",()=>{throw Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){let r=this.liquid.renderer;for(let{value:n,test:i,templates:a}of this.branches)if(i((yield n.value(e,e.opts.lenientIf)),e))return void(yield r.renderTemplates(a,e,t));yield r.renderTemplates(this.elseTemplates,e,t)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},break:class extends tp{render(e,t){e.breakCalled=!0}},continue:class extends tp{render(e,t){e.continueCalled=!0}},echo:class extends tp{constructor(e,t,r){super(e,t,r),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new th(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,t){if(!this.value)return;let r=yield this.value.value(e,!1);t.write(r)}*arguments(){this.value&&(yield this.value)}},liquid:class extends tp{constructor(e,t,r,n){super(e,t,r);const i=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=n.parseTokens(i)}*render(e,t){yield this.liquid.renderer.renderTemplates(this.templates,e,t)}*children(){return this.templates}},"#":class extends tp{constructor(e,t,r){if(super(e,t,r),-1!==e.args.search(/\n\s*[^#\s]/g))throw Error("every line of an inline comment must start with a '#' character")}render(){}}};class rr{constructor(e={}){this.renderer=new eJ,this.filters={},this.tags={},this.options=function(e){var t,r,n;if(e.hasOwnProperty("root")&&(e.hasOwnProperty("partials")||(e.partials=e.root),e.hasOwnProperty("layouts")||(e.layouts=e.root)),e.hasOwnProperty("cache")){let t;t="number"==typeof e.cache?e.cache>0?new e8(e.cache):void 0:"object"==typeof e.cache?e.cache:e.cache?new e8(1024):void 0,e.cache=t}return(e=Object.assign(Object.assign(Object.assign({},ts),e.jekyllInclude?{dynamicPartials:!1}:{}),e)).fs.dirname&&e.fs.sep||!e.relativeReference||(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),e.relativeReference=!1),e.root=to(e.root),e.partials=to(e.partials),e.layouts=to(e.layouts),e.outputEscape=e.outputEscape&&("escape"===(n=e.outputEscape)?tr:"json"===n?e7.json:($(c(n),"`outputEscape` need to be of type string or function"),n)),e.locale||(e.locale=null!=(r=null==(t=ex())?void 0:t().resolvedOptions().locale)?r:"en-US"),e.templates&&(e.fs=new ta(e.templates),e.relativeReference=!0,e.root=e.partials=e.layouts="."),e}(e),this.parser=new tT(this),x(rt,(e,t)=>this.registerTag(t,e)),x(t8,(e,t)=>this.registerFilter(t,e))}parse(e,t){return new tT(this).parse(e,t)}_render(e,t,r){let n=t instanceof tL?t:new tL(t,this.options,r);return this.renderer.renderTemplates(e,n)}render(e,t,r){return ec(this,void 0,void 0,function*(){return el(this._render(e,t,Object.assign(Object.assign({},r),{sync:!1})))})}renderSync(e,t,r){return ep(this._render(e,t,Object.assign(Object.assign({},r),{sync:!0})))}renderToNodeStream(e,t,r={}){let n=new tL(t,this.options,r);return this.renderer.renderTemplatesToNodeStream(e,n)}_parseAndRender(e,t,r){let n=this.parse(e);return this._render(n,t,r)}parseAndRender(e,t,r){return ec(this,void 0,void 0,function*(){return el(this._parseAndRender(e,t,Object.assign(Object.assign({},r),{sync:!1})))})}parseAndRenderSync(e,t,r){return ep(this._parseAndRender(e,t,Object.assign(Object.assign({},r),{sync:!0})))}_parsePartialFile(e,t,r){return new tT(this).parseFile(e,t,ea.Partials,r)}_parseLayoutFile(e,t,r){return new tT(this).parseFile(e,t,ea.Layouts,r)}_parseFile(e,t,r,n){return new tT(this).parseFile(e,t,r,n)}parseFile(e,t){return ec(this,void 0,void 0,function*(){return el(new tT(this).parseFile(e,!1,t))})}parseFileSync(e,t){return ep(new tT(this).parseFile(e,!0,t))}*_renderFile(e,t,r){let n=yield this._parseFile(e,r.sync,r.lookupType);return yield this._render(n,t,r)}renderFile(e,t,r){return ec(this,void 0,void 0,function*(){return el(this._renderFile(e,t,Object.assign(Object.assign({},r),{sync:!1})))})}renderFileSync(e,t,r){return ep(this._renderFile(e,t,Object.assign(Object.assign({},r),{sync:!0})))}renderFileToNodeStream(e,t,r){return ec(this,void 0,void 0,function*(){let n=yield this.parseFile(e);return this.renderToNodeStream(n,t,r)})}_evalValue(e,t){let r=new th(e,this),n=t instanceof tL?t:new tL(t,this.options);return r.value(n)}evalValue(e,t){return ec(this,void 0,void 0,function*(){return el(this._evalValue(e,t))})}evalValueSync(e,t){return ep(this._evalValue(e,t))}registerFilter(e,t){this.filters[e]=t}registerTag(e,t){this.tags[e]=c(t)?t:class extends tp{constructor(e,r,n){super(e,r,n),c(t.parse)&&t.parse.call(this,e,r)}*render(e,r){let n=yield new tf(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,r,n)}}}plugin(e){return e.call(this,rr)}express(){let e=this,t=!0;return function(r,n,i){if(t){t=!1;let r=to(this.root);e.options.root.unshift(...r),e.options.layouts.unshift(...r),e.options.partials.unshift(...r)}e.renderFile(r,n).then(e=>i(null,e),i)}}analyze(e,t={}){return ec(this,void 0,void 0,function*(){return tD(e,t)})}analyzeSync(e,t={}){return tw(e,t)}parseAndAnalyze(e,t,r={}){return ec(this,void 0,void 0,function*(){return tD(this.parse(e,t),r)})}parseAndAnalyzeSync(e,t,r={}){return tw(this.parse(e,t),r)}variables(e,t={}){return ec(this,void 0,void 0,function*(){return Object.keys((yield tD(u(e)?this.parse(e):e,t)).variables)})}variablesSync(e,t={}){return Object.keys(tw(u(e)?this.parse(e):e,t).variables)}fullVariables(e,t={}){return ec(this,void 0,void 0,function*(){return Array.from(new Set(Object.values((yield tD(u(e)?this.parse(e):e,t)).variables).flatMap(e=>e.map(e=>String(e)))))})}fullVariablesSync(e,t={}){return Array.from(new Set(Object.values(tw(u(e)?this.parse(e):e,t).variables).flatMap(e=>e.map(e=>String(e)))))}variableSegments(e,t={}){return ec(this,void 0,void 0,function*(){return Array.from(F(Object.values((yield tD(u(e)?this.parse(e):e,t)).variables).flatMap(e=>e.map(e=>e.toArray()))))})}variableSegmentsSync(e,t={}){return Array.from(F(Object.values(tw(u(e)?this.parse(e):e,t).variables).flatMap(e=>e.map(e=>e.toArray()))))}globalVariables(e,t={}){return ec(this,void 0,void 0,function*(){return Object.keys((yield tD(u(e)?this.parse(e):e,t)).globals)})}globalVariablesSync(e,t={}){return Object.keys(tw(u(e)?this.parse(e):e,t).globals)}globalFullVariables(e,t={}){return ec(this,void 0,void 0,function*(){return Array.from(new Set(Object.values((yield tD(u(e)?this.parse(e):e,t)).globals).flatMap(e=>e.map(e=>String(e)))))})}globalFullVariablesSync(e,t={}){return Array.from(new Set(Object.values(tw(u(e)?this.parse(e):e,t).globals).flatMap(e=>e.map(e=>String(e)))))}globalVariableSegments(e,t={}){return ec(this,void 0,void 0,function*(){return Array.from(F(Object.values((yield tD(u(e)?this.parse(e):e,t)).globals).flatMap(e=>e.map(e=>e.toArray()))))})}globalVariableSegmentsSync(e,t={}){return Array.from(F(Object.values(tw(u(e)?this.parse(e):e,t).globals).flatMap(e=>e.map(e=>e.toArray()))))}}},29614(e,t,r){"use strict";r.d(t,{OL:()=>E,ad:()=>y,SV:()=>f,l7:()=>v,RJ:()=>w,UN:()=>m,ol:()=>A,fi:()=>x,GD:()=>d,hI:()=>h,L7:()=>u,Ah:()=>g,BB:()=>S,Er:()=>l,j2:()=>D,GM:()=>N,Xd:()=>p,i0:()=>c,C8:()=>b});var n=r(58321),i=r(77506),a=Math.PI,s=2*Math.PI,o=Math.E,u=(0,n.P9)("true",[],()=>!0),c=(0,n.P9)("false",[],()=>!1),l=(0,n.P9)("null",[],()=>null),p=C("Infinity",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(1/0):1/0}),f=C("NaN",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(NaN):NaN}),d=C("pi",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?(0,i.R3)(r):a}),h=C("tau",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?(0,i.OP)(r):s}),m=C("e",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?(0,i.t9)(r):o}),g=C("phi",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?(0,i.pb)(r):1.618033988749895}),v=C("LN2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(2).ln():Math.LN2}),y=C("LN10",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(10).ln():Math.LN10}),b=C("LOG2E",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(1).div(new r(2).ln()):Math.LOG2E}),x=C("LOG10E",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(1).div(new r(10).ln()):Math.LOG10E}),D=C("SQRT1_2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r("0.5").sqrt():Math.SQRT1_2}),w=C("SQRT2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(2).sqrt():Math.SQRT2}),N=C("i",["Complex"],e=>{var{Complex:t}=e;return t.I}),A=(0,n.P9)("PI",["pi"],e=>{var{pi:t}=e;return t}),E=(0,n.P9)("E",["e"],e=>{var{e:t}=e;return t}),S=(0,n.P9)("version",[],()=>"15.1.0");function C(e,t,r){return(0,n.P9)(e,t,r,{recreateOnConfigChange:!0})}},44719(e,t,r){"use strict";r.d(t,{P:()=>n});var n={relTol:1e-12,absTol:1e-15,matrix:"Matrix",number:"number",numberFallback:"number",precision:64,predictable:!1,randomSeed:null,legacySubset:!1}},45662(e,t,r){"use strict";r.d(t,{hZ:()=>o,n$:()=>s,t:()=>a});var n=r(93140),i=r(44719),a=["Matrix","Array"],s=["number","BigNumber","bigint","Fraction"];function o(e,t){function r(i){if(!i)return(0,n.o8)(e);if(void 0!==i.epsilon){console.warn('Warning: The configuration option "epsilon" is deprecated. Use "relTol" and "absTol" instead.');var o=(0,n.o8)(i);return o.relTol=i.epsilon,o.absTol=.001*i.epsilon,delete o.epsilon,r(o)}!0===i.legacySubset&&console.warn('Warning: The configuration option "legacySubset" is for compatibility only and might be deprecated in the future.');var c=(0,n.o8)(e);u(i,"matrix",a),u(i,"number",s),(0,n.zw)(e,i);var l=(0,n.o8)(e);return t("config",l,c,(0,n.o8)(i)),l}return r.MATRIX_OPTIONS=a,r.NUMBER_OPTIONS=s,Object.keys(i.P).forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t],enumerable:!0,configurable:!0})}),r}function u(e,t,r){void 0===e[t]||r.includes(e[t])||console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+r.map(e=>JSON.stringify(e)).join(", ")+".")}},10434(e,t,r){"use strict";r.d(t,{B:()=>u});var n=r(62369),i=r(58321),a=r(14943),s=r(51106),o=function(){return o=n.create,n},u=(0,i.P9)("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(e){var{BigNumber:t,Complex:r,DenseMatrix:n,Fraction:i}=e,u=o();return u.clear(),u.addTypes([{name:"number",test:a.Et},{name:"Complex",test:a.Zd},{name:"BigNumber",test:a.C4},{name:"bigint",test:a.sI},{name:"Fraction",test:a.fU},{name:"Unit",test:a.vO},{name:"identifier",test:e=>a.Kg&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(e)},{name:"string",test:a.Kg},{name:"Chain",test:a.o_},{name:"Array",test:a.cy},{name:"Matrix",test:a.OA},{name:"DenseMatrix",test:a.zR},{name:"SparseMatrix",test:a.AF},{name:"Range",test:a._Z},{name:"Index",test:a.nw},{name:"boolean",test:a.Lm},{name:"ResultSet",test:a.eW},{name:"Help",test:a.gS},{name:"function",test:a.Tn},{name:"Date",test:a.$P},{name:"RegExp",test:a.gd},{name:"null",test:a.kZ},{name:"undefined",test:a.b0},{name:"AccessorNode",test:a.AS},{name:"ArrayNode",test:a.gO},{name:"AssignmentNode",test:a.qM},{name:"BlockNode",test:a.CD},{name:"ConditionalNode",test:a.PO},{name:"ConstantNode",test:a.BA},{name:"FunctionNode",test:a.Px},{name:"FunctionAssignmentNode",test:a.m2},{name:"IndexNode",test:a.$I},{name:"Node",test:a.Ll},{name:"ObjectNode",test:a.GJ},{name:"OperatorNode",test:a.$$},{name:"ParenthesisNode",test:a.tv},{name:"RangeNode",test:a.Ye},{name:"RelationalNode",test:a.iu},{name:"SymbolNode",test:a.li},{name:"Map",test:a.jh},{name:"Object",test:a.Gv}]),u.addConversions([{from:"number",to:"BigNumber",convert:function(e){if(t||c(e),(0,s.vm)(e)>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return r||l(e),new r(e,0)}},{from:"BigNumber",to:"Complex",convert:function(e){return r||l(e),new r(e.toNumber(),0)}},{from:"bigint",to:"number",convert:function(e){if(e>Number.MAX_SAFE_INTEGER)throw TypeError("Cannot implicitly convert bigint to number: value exceeds the max safe integer value (value: "+e+")");return Number(e)}},{from:"bigint",to:"BigNumber",convert:function(e){return t||c(e),new t(e.toString())}},{from:"bigint",to:"Fraction",convert:function(e){return i||p(e),new i(e)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return r||l(e),new r(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||p(e);var t=new i(e);if(t.valueOf()!==e)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(e){t||c(e);try{return new t(e)}catch(t){throw Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"bigint",convert:function(e){try{return BigInt(e)}catch(t){throw Error('Cannot convert "'+e+'" to BigInt')}}},{from:"string",to:"Fraction",convert:function(e){i||p(e);try{return new i(e)}catch(t){throw Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){r||l(e);try{return new r(e)}catch(t){throw Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||c(e),new t(+e)}},{from:"boolean",to:"bigint",convert:function(e){return BigInt(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||p(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return n||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}]),u.onMismatch=(e,t,r)=>{var n=u.createError(e,t,r);if(["wrongType","mismatch"].includes(n.data.category)&&1===t.length&&(0,a.P3)(t[0])&&r.some(e=>!e.params.includes(","))){var i=TypeError("Function '".concat(e,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(e,")'."));throw i.data=n.data,i}throw n},u.onMismatch=(e,t,r)=>{var n=u.createError(e,t,r);if(["wrongType","mismatch"].includes(n.data.category)&&1===t.length&&(0,a.P3)(t[0])&&r.some(e=>!e.params.includes(","))){var i=TypeError("Function '".concat(e,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(e,")'."));throw i.data=n.data,i}throw n},u});function c(e){throw Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function l(e){throw Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function p(e){throw Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}},20972(e,t,r){"use strict";r.d(t,{$:()=>s});var n=r(71333),i=r(44719),a=r(45662),s=function(e){if(e)throw Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(i.P)};(0,n.A)(s,i.P,{MATRIX_OPTIONS:a.t,NUMBER_OPTIONS:a.n$})},43886(e,t,r){"use strict";r.d(t,{CR:()=>eH,Do:()=>eT,FE:()=>eB,G6:()=>eR,I9:()=>eS,JL:()=>ey,K:()=>eF,K3:()=>e$,Kv:()=>eg,Lz:()=>e_,Q4:()=>eN,RH:()=>eG,S5:()=>eO,_3:()=>eL,_7:()=>ex,_V:()=>ej,aT:()=>eq,bP:()=>em,cy:()=>eC,eD:()=>eA,h$:()=>eZ,hd:()=>ek,ht:()=>ew,iX:()=>eU,lA:()=>ez,mN:()=>ep.e,od:()=>eb,qg:()=>eP,sW:()=>eE,ub:()=>eD,wE:()=>eI,wx:()=>eQ,yj:()=>eV,zX:()=>ev,zf:()=>eM});var n=r(71333),i=r(20972),a=r(72613),s=r(55926),o=r(76917),u=r(99973),c=r(50088),l=r(41668),p=r(64544),f=r(34813),d=r(52808),h=r(81189),m=r(41653),g=r(61860),v=r(10624),y=r(97413),b=r(55937),x=r(59126),D=r(73607),w=r(245),N=r(30561),A=r(37827),E=r(56017),S=r(92506),C=r(13192),M=r(64274),T=r(42237),O=r(77578),F=r(7741),_=r(44165),B=r(46670),P=r(70610),k=r(65945),q=r(53792),I=r(22342),R=r(15833),z=r(46495),L=r(97971),j=r(70463),U=r(16536),$=r(47492),H=r(65671),G=r(81242),Q=r(73810),V=r(13277),Z=r(5633),W=r(65874),Y=r(78791),J=r(49917),K=r(15136),X=r(29459),ee=r(49336),et=r(54414),er=r(3094),en=r(70941),ei=r(63881),ea=r(49832),es=r(16363),eo=r(75973),eu=r(94092),ec=r(67764),el=r(5900),ep=r(20023),ef={},ed={},eh={},em=(0,a.R)({mathWithTransform:ed}),eg=(0,s.Q)({Node:em}),ev=(0,o.r)({Node:em}),ey=(0,u.n)({Node:em}),eb=(0,c.G)({Node:em}),ex=(0,l.W)({Node:em}),eD=(0,p.E)({Node:em,ResultSet:el.A3A}),ew=(0,f.h)({Node:em}),eN=(0,d.u)({Node:em}),eA=(0,h.m)({classes:eh}),eE=(0,m.k)({math:ef,typed:el.nE2}),eS=(0,g.I)({Node:em,typed:el.nE2}),eC=(0,v.U)({Chain:eE,typed:el.nE2}),eM=(0,y.b)({Node:em,isBounded:el.CtL}),eT=(0,b.r)({Node:em,size:el.EjY}),eO=(0,x.C)({Node:em,subset:el.LEQ}),eF=(0,D.y)({matrix:el.UPj,Node:em,subset:el.LEQ}),e_=(0,w.F)({Unit:el.NfE,Node:em,math:ef}),eB=(0,N.N)({Node:em,SymbolNode:e_,math:ef}),eP=(0,A.U)({AccessorNode:eO,ArrayNode:ex,AssignmentNode:eF,BlockNode:eD,ConditionalNode:ew,ConstantNode:eM,FunctionAssignmentNode:eS,FunctionNode:eB,IndexNode:eT,ObjectNode:eg,OperatorNode:ev,ParenthesisNode:ey,RangeNode:eN,RelationalNode:eb,SymbolNode:e_,config:i.$,numeric:el.sHn,typed:el.nE2}),ek=(0,E.x)({ConstantNode:eM,FunctionNode:eB,OperatorNode:ev,ParenthesisNode:ey,parse:eP,typed:el.nE2}),eq=(0,S.E)({bignumber:el.miF,fraction:el.zO$,AccessorNode:eO,ArrayNode:ex,ConstantNode:eM,FunctionNode:eB,IndexNode:eT,ObjectNode:eg,OperatorNode:ev,SymbolNode:e_,config:i.$,isBounded:el.CtL,mathWithTransform:ed,matrix:el.UPj,typed:el.nE2}),eI=(0,C.Q)({parse:eP,typed:el.nE2}),eR=(0,M.C)({parse:eP,typed:el.nE2}),ez=(0,T.x)({AccessorNode:eO,ArrayNode:ex,ConstantNode:eM,FunctionNode:eB,IndexNode:eT,ObjectNode:eg,OperatorNode:ev,ParenthesisNode:ey,SymbolNode:e_,add:el.WQq,divide:el.Qrk,equal:el.LCg,isZero:el.beD,multiply:el.lwT,parse:eP,pow:el.n7C,subtract:el.ReH,typed:el.nE2}),eL=(0,O.u)({parse:eP,typed:el.nE2}),ej=(0,F.G)({evaluate:eL}),eU=(0,_.m)({evaluate:eL,parse:eP}),e$=(0,B.C)({Parser:eU,typed:el.nE2}),eH=(0,P.U)({AccessorNode:eO,ArrayNode:ex,ConstantNode:eM,FunctionNode:eB,IndexNode:eT,ObjectNode:eg,OperatorNode:ev,ParenthesisNode:ey,SymbolNode:e_,equal:el.LCg,parse:eP,replacer:el.$Uf,resolve:ek,simplifyConstant:eq,simplifyCore:ez,typed:el.nE2}),eG=(0,k.N)({OperatorNode:ev,parse:eP,simplify:eH,typed:el.nE2}),eQ=(0,q.s)({ConstantNode:eM,FunctionNode:eB,OperatorNode:ev,ParenthesisNode:ey,SymbolNode:e_,config:i.$,equal:el.LCg,isZero:el.beD,numeric:el.sHn,parse:eP,simplify:eH,typed:el.nE2}),eV=(0,I.q)({Help:ej,mathWithTransform:ed,typed:el.nE2}),eZ=(0,R.L)({bignumber:el.miF,fraction:el.zO$,AccessorNode:eO,ArrayNode:ex,ConstantNode:eM,FunctionNode:eB,IndexNode:eT,ObjectNode:eg,OperatorNode:ev,ParenthesisNode:ey,SymbolNode:e_,add:el.WQq,config:i.$,divide:el.Qrk,equal:el.LCg,isZero:el.beD,mathWithTransform:ed,matrix:el.UPj,multiply:el.lwT,parse:eP,pow:el.n7C,simplify:eH,simplifyConstant:eq,simplifyCore:ez,subtract:el.ReH,typed:el.nE2});(0,n.A)(ef,{e:el.e,false:el.PHr,fineStructure:el.GVI,i:el.i,Infinity:el.aNc,LN10:el.I0I,LOG10E:el.RZC,NaN:el.Jlw,null:el.jwX,phi:el.U1u,SQRT1_2:el.ddC,sackurTetrode:el.j59,tau:el.FA6,true:el._Jp,E:el.e,version:el.rEp,efimovFactor:el.Qe0,LN2:el.XEz,pi:el.pi,replacer:el.$Uf,reviver:eA,SQRT2:el.$qA,typed:el.nE2,PI:el.pi,weakMixingAngle:el.IYe,abs:el.tnl,acos:el.HQu,acot:el.ONU,acsc:el.J97,addScalar:el.G0T,arg:el.JR0,asech:el.lXS,asinh:el.yHs,atan:el.rYl,atanh:el.rfv,bigint:el.oad,bitNot:el.FMv,boolean:el.zMY,clone:el.o8B,combinations:el.vjN,complex:el.faB,conj:el.xJb,cos:el.gnS,cot:el.n15,csc:el.mov,cube:el.KYz,equalScalar:el.Lg8,erf:el.Y12,exp:el.oNF,expm1:el.IYd,filter:el.pbD,flatten:el.Bqz,forEach:el.jJl,format:el.GPZ,getMatrixDataType:el.Ob2,hex:el.uhr,im:el.im,isBounded:el.CtL,isNaN:el.yrW,isNumeric:el.kf$,isPrime:el.A59,LOG2E:el.QdK,lgamma:el.ayJ,log10:el.YLo,log2:el.p67,map:el.TjK,mode:el.MqS,multiplyScalar:el.NyO,not:el.AU6,number:el.aig,oct:el.zJI,pickRandom:el.BBI,print:el.yyV,random:el.yTv,re:el.re,sec:el.aPs,sign:el._SZ,sin:el.F8e,size:el.EjY,splitUnit:el.hg5,square:el.EwI,string:el.YjP,subtractScalar:el.hkw,tan:el.Mlm,toBest:el.mNb,typeOf:el.QPs,acosh:el.FqL,acsch:el.dC_,asec:el.f9Q,bignumber:el.miF,chain:eC,combinationsWithRep:el.I5N,cosh:el.yIG,csch:el.u_e,dot:el.Omf,hasNumericValue:el.xr2,isFinite:el.MIs,isNegative:el.cIo,isZero:el.beD,matrix:el.UPj,matrixFromFunction:el.IZ4,multiply:el.lwT,ones:el.SaS,randomInt:el.HO1,resize:el.XRe,sech:el.uPJ,sinh:el.L0l,sparse:el.lMo,sqrt:el.RZD,squeeze:el.r2V,tanh:el.ymU,transpose:el.mgz,xgcd:el.bU5,zeros:el.Ul9,acoth:el.mZ7,asin:el.qRo,bin:el.e5v,coth:el.vwV,ctranspose:el.Ptl,diag:el.smy,equal:el.LCg,fraction:el.zO$,identity:el.D_O,isInteger:el.FqJ,kron:el.bBq,mapSlices:el.MOy,matrixFromColumns:el.dFU,numeric:el.sHn,prod:el._eU,reshape:el.tQQ,round:el.LIG,unaryMinus:el.gBK,bernoulli:el.X8j,cbrt:el._nN,concat:el.xWs,count:el.U9N,deepEqual:el.bDM,divideScalar:el.Yly,dotMultiply:el.KQr,floor:el.RIf,gcd:el.p_i,isPositive:el.epS,larger:el.yfX,lcm:el.lJL,leftShift:el.eSP,lsolve:el.IWu,max:el.T9B,mod:el.ziu,nthRoot:el.$Vg,nullish:el.cl6,or:el.or,qr:el.qr,rightArithShift:el.$Kb,smaller:el.dL7,subtract:el.ReH,to:el.to,unaryPlus:el.WOv,usolve:el.F$N,xor:el.I86,add:el.WQq,atan2:el.FPz,bitAnd:el.nfS,bitOr:el.puf,bitXor:el.hCf,catalan:el.bX8,compare:el.UDF,compareText:el.n6D,composition:el.RG1,cross:el.$An,det:el.yT6,diff:el.Ui2,distance:el.IoC,dotDivide:el.TDS,equalText:el.UpA,hypot:el.dYR,intersect:el.y$5,invmod:el.U5$,largerEq:el.I7f,log:el.Rm2,lsolveAll:el.vNC,matrixFromRows:el.$bG,min:el.jkA,nthRoots:el.c2c,partitionSelect:el.$TU,rightLogShift:el.BXq,slu:el.tok,subset:el.LEQ,sum:el.czq,trace:el.uPA,usolveAll:el.y3r,zpk2tf:el.K4A,ceil:el.mkO,compareNatural:el.dkM,cumsum:el.rCv,fix:el.Up4,index:el.Pe0,inv:el.WCD,log1p:el.Kko,lup:el._bA,pinv:el.oUd,pow:el.n7C,setCartesian:el.f4J,setDistinct:el.nel,setIsSubset:el.BqJ,setPowerset:el.UHQ,smallerEq:el.$9q,sort:el.diJ,sqrtm:el.ooS,unequal:el._P7,and:el.Uo6,divide:el.Qrk,expm:el.BJ6,fft:el.hVP,freqz:el.ZR8,gamma:el.uN6,ifft:el.KGM,kldivergence:el.ucg,lusolve:el.nZk,mean:el.i2o,median:el.JZy,polynomialRoot:el.tpt,quantileSeq:el.hRg,range:el.y17,row:el.nME,setDifference:el._iM,setMultiplicity:el.ELq,setSymDifference:el.du0,solveODE:el.kMp,vacuumImpedance:el.gAZ,atomicMass:el.Mhd,bohrMagneton:el.tTI,boltzmann:el.M85,column:el.fiJ,conductanceQuantum:el.jPu,coulomb:el.Kwo,createUnit:el.Dqv,deuteronMass:el.D3g,eigs:el.Ros,electronMass:el.zMe,factorial:el.QnG,fermiCoupling:el.NFB,gasConstant:el.UC4,gravity:el.fpm,klitzing:el.DTk,loschmidt:el.aaT,mad:el.FmW,magneticFluxQuantum:el.Db7,molarMass:el.CSd,molarPlanckConstant:el.ZQO,multinomial:el.OjQ,norm:el.xbf,permutations:el.yW1,planckConstant:el.g9c,planckMass:el.SI8,planckTime:el.b7H,reducedPlanckConstant:el.mYI,rotationMatrix:el.o8M,rydberg:el.oC_,secondRadiation:el.iuU,setSize:el.SpT,speedOfLight:el.ZLl,stefanBoltzmann:el.ZL$,thomsonCrossSection:el.Ml9,variance:el.GVr,zeta:el.Poe,avogadro:el.m7d,bohrRadius:el.Au7,corr:el.PsA,dotPow:el.WFY,elementaryCharge:el.xFU,faraday:el.nl4,hartreeEnergy:el.ykU,inverseConductanceQuantum:el.BBP,magneticConstant:el.N95,molarMassC12:el.O90,neutronMass:el.SI4,parse:eP,planckCharge:el.WkS,planckTemperature:el._RZ,quantumOfCirculation:el.cAv,resolve:ek,setIntersect:el.MZk,simplifyConstant:eq,std:el.wiE,stirlingS2:el.yo9,unit:el.zAA,bellNumbers:el.yZD,compile:eI,electricConstant:el.GZl,firstRadiation:el.OsG,leafCount:eR,nuclearMagneton:el.Ium,planckLength:el.ETO,rotate:el.e$E,setUnion:el.gGC,simplifyCore:ez,wienDisplacement:el.BSO,classicalElectronRadius:el.irF,evaluate:eL,molarVolume:el.ONk,schur:el.epK,coulombConstant:el.OIw,gravitationConstant:el.NpQ,parser:e$,simplify:eH,symbolicEqual:eG,derivative:eQ,protonMass:el.pIl,sylvester:el.UoP,help:eV,rationalize:eZ,lyap:el.pvw,config:i.$}),(0,n.A)(ed,ef,{map:(0,z.t)({typed:el.nE2}),filter:(0,L.p)({typed:el.nE2}),forEach:(0,j.D)({typed:el.nE2}),mapSlices:(0,U._)({isInteger:el.FqJ,typed:el.nE2}),and:(0,$.i)({add:el.WQq,concat:el.xWs,equalScalar:el.Lg8,matrix:el.UPj,not:el.AU6,typed:el.nE2,zeros:el.Ul9}),cumsum:(0,H.p)({add:el.WQq,typed:el.nE2,unaryPlus:el.WOv}),nullish:(0,G.Q)({deepEqual:el.bDM,flatten:el.Bqz,matrix:el.UPj,size:el.EjY,typed:el.nE2}),print:(0,Q.Q)({add:el.WQq,matrix:el.UPj,typed:el.nE2,zeros:el.Ul9}),bitAnd:(0,V.H)({add:el.WQq,concat:el.xWs,equalScalar:el.Lg8,matrix:el.UPj,not:el.AU6,typed:el.nE2,zeros:el.Ul9}),concat:(0,Z.V)({isInteger:el.FqJ,matrix:el.UPj,typed:el.nE2}),diff:(0,W.S)({bignumber:el.miF,matrix:el.UPj,number:el.aig,subtract:el.ReH,typed:el.nE2}),max:(0,Y.t)({config:i.$,isNaN:el.yrW,larger:el.yfX,numeric:el.sHn,typed:el.nE2}),min:(0,J.X)({config:i.$,isNaN:el.yrW,numeric:el.sHn,smaller:el.dL7,typed:el.nE2}),or:(0,K.O)({DenseMatrix:el.JK5,concat:el.xWs,equalScalar:el.Lg8,matrix:el.UPj,typed:el.nE2}),subset:(0,X.R)({add:el.WQq,matrix:el.UPj,typed:el.nE2,zeros:el.Ul9}),bitOr:(0,ee.f)({DenseMatrix:el.JK5,concat:el.xWs,equalScalar:el.Lg8,matrix:el.UPj,typed:el.nE2}),sum:(0,et.o)({add:el.WQq,config:i.$,numeric:el.sHn,typed:el.nE2}),variance:(0,er.M)({add:el.WQq,divide:el.Qrk,isNaN:el.yrW,mapSlices:el.MOy,multiply:el.lwT,subtract:el.ReH,typed:el.nE2}),index:(0,en.p)({Index:el.jKy,getMatrixDataType:el.Ob2}),quantileSeq:(0,ei.b)({add:el.WQq,bignumber:el.miF,compare:el.UDF,divide:el.Qrk,isInteger:el.FqJ,larger:el.yfX,mapSlices:el.MOy,multiply:el.lwT,partitionSelect:el.$TU,smaller:el.dL7,smallerEq:el.$9q,subtract:el.ReH,typed:el.nE2}),range:(0,ea.G)({bignumber:el.miF,matrix:el.UPj,add:el.WQq,config:i.$,equal:el.LCg,isPositive:el.epS,isZero:el.beD,larger:el.yfX,largerEq:el.I7f,smaller:el.dL7,smallerEq:el.$9q,typed:el.nE2}),column:(0,es.B)({Index:el.jKy,matrix:el.UPj,range:el.y17,typed:el.nE2}),row:(0,eo.J)({Index:el.jKy,matrix:el.UPj,range:el.y17,typed:el.nE2}),mean:(0,eu.y)({add:el.WQq,divide:el.Qrk,typed:el.nE2}),std:(0,ec.E)({map:el.TjK,sqrt:el.RZD,typed:el.nE2,variance:el.GVr})}),(0,n.A)(eh,{BigNumber:el.gHh,Complex:el.pr3,Fraction:el.fwM,Matrix:el.uqu,Node:em,ObjectNode:eg,OperatorNode:ev,ParenthesisNode:ey,Range:el.Q6t,RelationalNode:eb,ResultSet:el.A3A,ArrayNode:ex,BlockNode:eD,ConditionalNode:ew,DenseMatrix:el.JK5,RangeNode:eN,Chain:eE,FunctionAssignmentNode:eS,SparseMatrix:el.Iln,ConstantNode:eM,IndexNode:eT,FibonacciHeap:el.hKX,ImmutableDenseMatrix:el.LQF,Index:el.jKy,Spa:el.V4u,AccessorNode:eO,AssignmentNode:eF,Unit:el.NfE,SymbolNode:e_,FunctionNode:eB,Help:ej,Parser:eU}),eE.createProxy(ef)},5900(e,t,r){"use strict";r.d(t,{$9q:()=>sA,$An:()=>aV,$Kb:()=>aF,$TU:()=>st,$Uf:()=>nE,$Vg:()=>aC,$bG:()=>a6,$qA:()=>nS,A3A:()=>nm,A59:()=>ie,AU6:()=>ic,Au7:()=>ow,BBI:()=>id,BBP:()=>oM,BJ6:()=>sO,BSO:()=>oQ,BXq:()=>sr,Bb6:()=>ai,BqJ:()=>sw,Bqz:()=>n1,CSd:()=>on,CtL:()=>n9,D3g:()=>s2,DTk:()=>s7,D_O:()=>ae,Db7:()=>or,Dqv:()=>s1,ELq:()=>sH,ETO:()=>o$,EjY:()=>ix,EwI:()=>iN,F$N:()=>aq,F8e:()=>ib,FA6:()=>ny,FMv:()=>nL,FPz:()=>az,FmW:()=>ot,FqJ:()=>at,FqL:()=>iT,G0T:()=>nB,GPZ:()=>n3,GVI:()=>ni,GVr:()=>ob,GZl:()=>oL,HO1:()=>iG,HQu:()=>nO,I0I:()=>nu,I5N:()=>iB,I7f:()=>a8,I86:()=>aI,IWu:()=>aA,IYd:()=>nX,IYe:()=>nM,IZ4:()=>iU,Iln:()=>iD,IoC:()=>aY,Ium:()=>oU,J97:()=>n_,JK5:()=>nD,JR0:()=>nP,JZy:()=>sR,Jlw:()=>np,K4A:()=>sc,KGM:()=>sP,KQr:()=>av,KYz:()=>nW,Kko:()=>sg,Kwo:()=>s0,L0l:()=>iZ,LCg:()=>i6,LEQ:()=>sa,LIG:()=>ac,LQF:()=>a1,Lg8:()=>nY,M85:()=>sJ,MIs:()=>iR,MOy:()=>an,MZk:()=>ok,Mhd:()=>sW,Ml9:()=>oy,Mlm:()=>iS,MqS:()=>io,N95:()=>oT,NFB:()=>s4,NfE:()=>sV,NpQ:()=>oJ,NyO:()=>iu,O90:()=>oO,OIw:()=>oY,ONU:()=>nF,ONk:()=>oZ,Ob2:()=>n5,OjQ:()=>oa,Omf:()=>iq,OsG:()=>oj,PHr:()=>nn,Pe0:()=>sh,Poe:()=>ox,PsA:()=>oN,Ptl:()=>i4,Q6t:()=>nh,QPs:()=>iM,QdK:()=>it,Qe0:()=>nw,QnG:()=>s8,Qrk:()=>sT,RG1:()=>aQ,RIf:()=>ay,RZC:()=>nc,RZD:()=>iY,ReH:()=>aB,Rm2:()=>a4,Ros:()=>s3,SI4:()=>oF,SI8:()=>oc,SaS:()=>iH,SpT:()=>om,T9B:()=>aE,TDS:()=>aJ,TjK:()=>is,U1u:()=>nd,U5$:()=>a5,U9N:()=>ah,UC4:()=>s9,UDF:()=>aH,UHQ:()=>sN,UPj:()=>ij,Ui2:()=>aW,Ul9:()=>i1,Uo6:()=>sM,UoP:()=>oX,Up4:()=>sd,UpA:()=>aK,V4u:()=>si,WCD:()=>sm,WFY:()=>oA,WOv:()=>ak,WQq:()=>aR,WkS:()=>o_,X8j:()=>ap,XEz:()=>nN,XRe:()=>iQ,Y12:()=>nJ,YLo:()=>ii,YjP:()=>iA,Yly:()=>ag,ZL$:()=>ov,ZLl:()=>og,ZQO:()=>oi,ZR8:()=>s_,_Jp:()=>nb,_P7:()=>sC,_RZ:()=>oB,_SZ:()=>iy,_bA:()=>sv,_eU:()=>ao,_iM:()=>s$,_nN:()=>af,aNc:()=>no,aPs:()=>iv,aaT:()=>oe,aig:()=>il,ayJ:()=>ir,b7H:()=>ol,bBq:()=>ar,bDM:()=>am,bU5:()=>i0,bX8:()=>a$,beD:()=>iL,c2c:()=>se,cAv:()=>oP,cIo:()=>iz,cl6:()=>aM,czq:()=>ss,dC_:()=>iO,dFU:()=>aa,dL7:()=>a_,dYR:()=>a0,ddC:()=>ng,diJ:()=>sE,dkM:()=>sp,du0:()=>sG,e:()=>nr,e$E:()=>oH,e5v:()=>i5,eSP:()=>aN,epK:()=>oW,epS:()=>ax,f4J:()=>sx,f9Q:()=>iF,faB:()=>nH,fiJ:()=>sK,fpm:()=>s6,fwM:()=>na,g9c:()=>ou,gAZ:()=>sZ,gBK:()=>al,gGC:()=>oG,gHh:()=>ne,gnS:()=>nQ,hCf:()=>aU,hKX:()=>aX,hRg:()=>sL,hVP:()=>sF,hg5:()=>iw,hkw:()=>iE,i:()=>ns,i2o:()=>sI,im:()=>n4,irF:()=>oV,iuU:()=>oh,j59:()=>nv,jJl:()=>n2,jKy:()=>a2,jPu:()=>sX,jkA:()=>a7,jwX:()=>nf,kMp:()=>sQ,kf$:()=>n7,lJL:()=>aw,lMo:()=>iW,lXS:()=>nk,lwT:()=>i$,m7d:()=>oD,mNb:()=>iC,mYI:()=>op,mZ7:()=>i2,mgz:()=>iX,miF:()=>i_,mkO:()=>sl,mov:()=>nZ,n15:()=>nV,n6D:()=>aG,n7C:()=>sb,nE2:()=>nC,nME:()=>sU,nZk:()=>sq,nel:()=>sD,nfS:()=>aL,nl4:()=>oS,o8B:()=>nU,o8M:()=>of,oC_:()=>od,oNF:()=>nK,oUd:()=>sy,oad:()=>nz,ooS:()=>sS,or:()=>aT,p67:()=>ia,pIl:()=>oK,p_i:()=>ab,pbD:()=>n0,pi:()=>nA,pr3:()=>nt,puf:()=>aj,pvw:()=>o0,qRo:()=>i3,qr:()=>aO,r2V:()=>iJ,rCv:()=>sf,rEp:()=>nx,rYl:()=>nI,re:()=>ig,rfv:()=>nR,sHn:()=>as,smy:()=>i9,tQQ:()=>au,tTI:()=>sY,tnl:()=>nT,to:()=>aP,tok:()=>sn,tpt:()=>sz,uN6:()=>sB,uPA:()=>so,uPJ:()=>iV,u_e:()=>ik,ucg:()=>sk,uhr:()=>n8,uqu:()=>nl,vNC:()=>a9,vjN:()=>n$,vwV:()=>i8,wiE:()=>oq,xFU:()=>oE,xJb:()=>nG,xWs:()=>ad,xbf:()=>os,xr2:()=>iI,y$5:()=>a3,y17:()=>sj,y3r:()=>su,yHs:()=>nq,yIG:()=>iP,yT6:()=>aZ,yTv:()=>im,yW1:()=>oo,yZD:()=>oz,yfX:()=>aD,ykU:()=>oC,ymU:()=>iK,yo9:()=>oI,yrW:()=>n6,yyV:()=>ih,zAA:()=>oR,zJI:()=>ip,zMY:()=>nj,zMe:()=>s5,zO$:()=>i7,ziu:()=>aS});var n=r(20972),i=r(33557),a=r(3937),s=r(29614),o=r(63387),u=r(30581),c=r(62205),l=r(7251),p=r(27613),f=r(35520),d=r(30236),h=r(10434),m=r(93935),g=r(72800),v=r(32181),y=r(95636),b=r(40340),x=r(20165),D=r(99444),w=r(33601),N=r(51584),A=r(88954),E=r(87151),S=r(20720),C=r(15870),M=r(65505),T=r(13287),O=r(40174),F=r(59491),_=r(21143),B=r(4630),P=r(2115),k=r(45857),q=r(44834),I=r(80177),R=r(92340),z=r(2486),L=r(59990),j=r(68920),U=r(31032),$=r(80067),H=r(75587),G=r(69651),Q=r(31123),V=r(569),Z=r(7753),W=r(32547),Y=r(23547),J=r(13061),K=r(49016),X=r(41311),ee=r(84672),et=r(15645),er=r(43947),en=r(19239),ei=r(63417),ea=r(35984),es=r(61226),eo=r(86621),eu=r(19531),ec=r(90020),el=r(31001),ep=r(73970),ef=r(50578),ed=r(28901),eh=r(38801),em=r(94708),eg=r(2436),ev=r(92581),ey=r(67911),eb=r(45883),ex=r(8970),eD=r(90667),ew=r(80122),eN=r(21158),eA=r(61998),eE=r(61300),eS=r(90825),eC=r(7671),eM=r(19259),eT=r(99425),eO=r(75624),eF=r(23709),e_=r(53929),eB=r(27844),eP=r(10794),ek=r(64977),eq=r(42639),eI=r(88193),eR=r(33894),ez=r(39192),eL=r(25757),ej=r(16768),eU=r(9391),e$=r(76409),eH=r(81146),eG=r(30227),eQ=r(49129),eV=r(64805),eZ=r(87989),eW=r(24145),eY=r(35877),eJ=r(4767),eK=r(87292),eX=r(45684),e0=r(91439),e1=r(80650),e2=r(75654),e3=r(95310),e5=r(50258),e8=r(36876),e4=r(86255),e9=r(54242),e6=r(56787),e7=r(19059),te=r(82380),tt=r(48935),tr=r(31670),tn=r(47502),ti=r(15988),ta=r(51760),ts=r(15365),to=r(76148),tu=r(93170),tc=r(79812),tl=r(54449),tp=r(59253),tf=r(39081),td=r(27355),th=r(30455),tm=r(89917),tg=r(86886),tv=r(5546),ty=r(94867),tb=r(95693),tx=r(84493),tD=r(64625),tw=r(51401),tN=r(61606),tA=r(28086),tE=r(6771),tS=r(59116),tC=r(50392),tM=r(76431),tT=r(69187),tO=r(57896),tF=r(94472),t_=r(34172),tB=r(56208),tP=r(45244),tk=r(4852),tq=r(93917),tI=r(25538),tR=r(67440),tz=r(9602),tL=r(65547),tj=r(56079),tU=r(11716),t$=r(20161),tH=r(49565),tG=r(37648),tQ=r(53253),tV=r(32854),tZ=r(58873),tW=r(35874),tY=r(39010),tJ=r(16569),tK=r(94861),tX=r(93587),t0=r(53348),t1=r(59076),t2=r(48296),t3=r(36228),t5=r(42446),t8=r(82303),t4=r(60628),t9=r(63790),t6=r(47159),t7=r(83767),re=r(54032),rt=r(21718),rr=r(52402),rn=r(89076),ri=r(2736),ra=r(8808),rs=r(47387),ro=r(37429),ru=r(33144),rc=r(3456),rl=r(34739),rp=r(42601),rf=r(53995),rd=r(97921),rh=r(12659),rm=r(47834),rg=r(35040),rv=r(60072),ry=r(3831),rb=r(47563),rx=r(95495),rD=r(8490),rw=r(47678),rN=r(88822),rA=r(31155),rE=r(92375),rS=r(31069),rC=r(96241),rM=r(53663),rT=r(84043),rO=r(22092),rF=r(45359),r_=r(73112),rB=r(98463),rP=r(26610),rk=r(48578),rq=r(55150),rI=r(88297),rR=r(49279),rz=r(2783),rL=r(55666),rj=r(8782),rU=r(20861),r$=r(28669),rH=r(21038),rG=r(18523),rQ=r(49913),rV=r(70342),rZ=r(23163),rW=r(5200),rY=r(35849),rJ=r(89926),rK=r(26148),rX=r(85712),r0=r(92776),r1=r(39029),r2=r(56869),r3=r(75486),r5=r(84475),r8=r(18023),r4=r(2746),r9=r(77592),r6=r(18528),r7=r(2259),ne=(0,i.g)({config:n.$}),nt=(0,a.z)({}),nr=(0,s.UN)({BigNumber:ne,config:n.$}),nn=(0,s.i0)({}),ni=(0,o.I)({BigNumber:ne,config:n.$}),na=(0,u.z)({}),ns=(0,s.GM)({Complex:nt}),no=(0,s.Xd)({BigNumber:ne,config:n.$}),nu=(0,s.ad)({BigNumber:ne,config:n.$}),nc=(0,s.fi)({BigNumber:ne,config:n.$}),nl=(0,c.w)({}),np=(0,s.SV)({BigNumber:ne,config:n.$}),nf=(0,s.Er)({}),nd=(0,s.Ah)({BigNumber:ne,config:n.$}),nh=(0,l.U)({}),nm=(0,p.O)({}),ng=(0,s.j2)({BigNumber:ne,config:n.$}),nv=(0,o.bz)({BigNumber:ne,config:n.$}),ny=(0,s.hI)({BigNumber:ne,config:n.$}),nb=(0,s.L7)({}),nx=(0,s.BB)({}),nD=(0,f.j)({Matrix:nl,config:n.$}),nw=(0,o.ez)({BigNumber:ne,config:n.$}),nN=(0,s.l7)({BigNumber:ne,config:n.$}),nA=(0,s.GD)({BigNumber:ne,config:n.$}),nE=(0,d.h)({}),nS=(0,s.RJ)({BigNumber:ne,config:n.$}),nC=(0,h.B)({BigNumber:ne,Complex:nt,DenseMatrix:nD,Fraction:na}),nM=(0,o.qH)({BigNumber:ne,config:n.$}),nT=(0,m.r)({typed:nC}),nO=(0,g.J)({Complex:nt,config:n.$,typed:nC}),nF=(0,v.C)({BigNumber:ne,typed:nC}),n_=(0,y.v)({BigNumber:ne,Complex:nt,config:n.$,typed:nC}),nB=(0,b.w)({typed:nC}),nP=(0,x.P)({typed:nC}),nk=(0,D.n)({BigNumber:ne,Complex:nt,config:n.$,typed:nC}),nq=(0,w.Q)({typed:nC}),nI=(0,N.X)({typed:nC}),nR=(0,A.v)({Complex:nt,config:n.$,typed:nC}),nz=(0,E.S)({typed:nC}),nL=(0,S.j)({typed:nC}),nj=(0,C.p)({typed:nC}),nU=(0,M.s)({typed:nC}),n$=(0,T.p)({typed:nC}),nH=(0,O.X)({Complex:nt,typed:nC}),nG=(0,F.x)({typed:nC}),nQ=(0,_.o)({typed:nC}),nV=(0,B.v)({BigNumber:ne,typed:nC}),nZ=(0,P.Y)({BigNumber:ne,typed:nC}),nW=(0,k.Y)({typed:nC}),nY=(0,q.p)({config:n.$,typed:nC}),nJ=(0,I.K)({typed:nC}),nK=(0,R.I)({typed:nC}),nX=(0,z.U)({Complex:nt,typed:nC}),n0=(0,L.H)({typed:nC}),n1=(0,j.d)({typed:nC}),n2=(0,U.j)({typed:nC}),n3=(0,$.I)({typed:nC}),n5=(0,H.C)({typed:nC}),n8=(0,G.i)({format:n3,typed:nC}),n4=(0,Q.z)({typed:nC}),n9=(0,V.c)({typed:nC}),n6=(0,Z.Y)({typed:nC}),n7=(0,W.y)({typed:nC}),ie=(0,Y.w)({typed:nC}),it=(0,s.C8)({BigNumber:ne,config:n.$}),ir=(0,J.k)({Complex:nt,typed:nC}),ii=(0,K.e)({Complex:nt,config:n.$,typed:nC}),ia=(0,X.j)({Complex:nt,config:n.$,typed:nC}),is=(0,ee.p)({typed:nC}),io=(0,et.E)({isNaN:n6,isNumeric:n7,typed:nC}),iu=(0,er.J)({typed:nC}),ic=(0,en.m)({typed:nC}),il=(0,ei.G)({typed:nC}),ip=(0,ea.R)({format:n3,typed:nC}),id=(0,es.B)({config:n.$,typed:nC}),ih=(0,eo.q)({typed:nC}),im=(0,eu.s)({config:n.$,typed:nC}),ig=(0,ec.W)({typed:nC}),iv=(0,el.c)({BigNumber:ne,typed:nC}),iy=(0,ep.m)({BigNumber:ne,Fraction:na,complex:nH,typed:nC}),ib=(0,ef.T)({typed:nC}),ix=(0,ed.A)({typed:nC}),iD=(0,eh.g)({Matrix:nl,equalScalar:nY,typed:nC}),iw=(0,em.t)({typed:nC}),iN=(0,eg.G)({typed:nC}),iA=(0,ev.I)({typed:nC}),iE=(0,ey.f)({typed:nC}),iS=(0,eb.a)({typed:nC}),iC=(0,ex.A)({typed:nC}),iM=(0,eD.o)({typed:nC}),iT=(0,ew.B)({Complex:nt,config:n.$,typed:nC}),iO=(0,eN.V)({BigNumber:ne,typed:nC}),iF=(0,eA.x)({BigNumber:ne,Complex:nt,config:n.$,typed:nC}),i_=(0,eE._)({BigNumber:ne,typed:nC}),iB=(0,eS.Q)({typed:nC}),iP=(0,eC.q)({typed:nC}),ik=(0,eM.g)({BigNumber:ne,typed:nC}),iq=(0,eT.Y)({addScalar:nB,conj:nG,multiplyScalar:iu,size:ix,typed:nC}),iI=(0,eO.l)({isNumeric:n7,typed:nC}),iR=(0,eF.S)({isBounded:n9,map:is,typed:nC}),iz=(0,e_.A)({config:n.$,typed:nC}),iL=(0,eB.L)({equalScalar:nY,typed:nC}),ij=(0,eP.u)({DenseMatrix:nD,Matrix:nl,SparseMatrix:iD,typed:nC}),iU=(0,ek.s)({isZero:iL,matrix:ij,typed:nC}),i$=(0,eq.F)({addScalar:nB,dot:iq,equalScalar:nY,matrix:ij,multiplyScalar:iu,typed:nC}),iH=(0,eI.A)({BigNumber:ne,config:n.$,matrix:ij,typed:nC}),iG=(0,eR.d)({config:n.$,log2:ia,typed:nC}),iQ=(0,ez.B)({config:n.$,matrix:ij}),iV=(0,eL.g)({BigNumber:ne,typed:nC}),iZ=(0,ej.V)({typed:nC}),iW=(0,eU.R)({SparseMatrix:iD,typed:nC}),iY=(0,e$.R)({Complex:nt,config:n.$,typed:nC}),iJ=(0,eH.l)({typed:nC}),iK=(0,eG.I)({typed:nC}),iX=(0,eQ.M)({matrix:ij,typed:nC}),i0=(0,eV.F)({BigNumber:ne,config:n.$,matrix:ij,typed:nC}),i1=(0,eZ.I)({BigNumber:ne,config:n.$,matrix:ij,typed:nC}),i2=(0,eW.g)({BigNumber:ne,Complex:nt,config:n.$,typed:nC}),i3=(0,eY.I)({Complex:nt,config:n.$,typed:nC}),i5=(0,eJ.O)({format:n3,typed:nC}),i8=(0,eK.$)({BigNumber:ne,typed:nC}),i4=(0,eX.d)({conj:nG,transpose:iX,typed:nC}),i9=(0,e0.I)({DenseMatrix:nD,SparseMatrix:iD,matrix:ij,typed:nC}),i6=(0,e1.X)({DenseMatrix:nD,SparseMatrix:iD,equalScalar:nY,matrix:ij,typed:nC}),i7=(0,e2.l)({Fraction:na,typed:nC}),ae=(0,e3.D)({BigNumber:ne,DenseMatrix:nD,SparseMatrix:iD,config:n.$,matrix:ij,typed:nC}),at=(0,e5.r)({equal:i6,typed:nC}),ar=(0,e8.l)({matrix:ij,multiplyScalar:iu,typed:nC}),an=(0,e4.Q)({isInteger:at,typed:nC}),ai=an,aa=(0,e9.z)({flatten:n1,matrix:ij,size:ix,typed:nC}),as=(0,e6.y)({bignumber:i_,fraction:i7,number:il}),ao=(0,e7._)({config:n.$,multiplyScalar:iu,numeric:as,typed:nC}),au=(0,te.r)({isInteger:at,matrix:ij,typed:nC}),ac=(0,tt.B)({BigNumber:ne,DenseMatrix:nD,config:n.$,equalScalar:nY,matrix:ij,typed:nC,zeros:i1}),al=(0,tr.e)({typed:nC}),ap=(0,tn.x)({BigNumber:ne,Fraction:na,config:n.$,isInteger:at,number:il,typed:nC}),af=(0,ti.q)({BigNumber:ne,Complex:nt,Fraction:na,config:n.$,isNegative:iz,matrix:ij,typed:nC,unaryMinus:al}),ad=(0,ta.z)({isInteger:at,matrix:ij,typed:nC}),ah=(0,ts.K)({prod:ao,size:ix,typed:nC}),am=(0,to.H)({equal:i6,typed:nC}),ag=(0,tu.Q)({numeric:as,typed:nC}),av=(0,tc.S)({concat:ad,equalScalar:nY,matrix:ij,multiplyScalar:iu,typed:nC}),ay=(0,tl.$)({DenseMatrix:nD,config:n.$,equalScalar:nY,matrix:ij,round:ac,typed:nC,zeros:i1}),ab=(0,tp.p)({BigNumber:ne,DenseMatrix:nD,concat:ad,config:n.$,equalScalar:nY,matrix:ij,round:ac,typed:nC,zeros:i1}),ax=(0,tf.q)({config:n.$,typed:nC}),aD=(0,td.o)({DenseMatrix:nD,SparseMatrix:iD,bignumber:i_,concat:ad,config:n.$,matrix:ij,typed:nC}),aw=(0,th.D)({concat:ad,equalScalar:nY,matrix:ij,typed:nC}),aN=(0,tm.O)({DenseMatrix:nD,concat:ad,equalScalar:nY,matrix:ij,typed:nC,zeros:i1}),aA=(0,tg.i)({DenseMatrix:nD,divideScalar:ag,equalScalar:nY,matrix:ij,multiplyScalar:iu,subtractScalar:iE,typed:nC}),aE=(0,tv.p)({config:n.$,isNaN:n6,larger:aD,numeric:as,typed:nC}),aS=(0,ty.n)({DenseMatrix:nD,concat:ad,config:n.$,equalScalar:nY,matrix:ij,round:ac,typed:nC,zeros:i1}),aC=(0,tb.f)({BigNumber:ne,concat:ad,equalScalar:nY,matrix:ij,typed:nC}),aM=(0,tx.w)({deepEqual:am,flatten:n1,matrix:ij,size:ix,typed:nC}),aT=(0,tD.M)({DenseMatrix:nD,concat:ad,equalScalar:nY,matrix:ij,typed:nC}),aO=(0,tw.K)({addScalar:nB,complex:nH,conj:nG,divideScalar:ag,equal:i6,identity:ae,isZero:iL,matrix:ij,multiplyScalar:iu,sign:iy,sqrt:iY,subtractScalar:iE,typed:nC,unaryMinus:al,zeros:i1}),aF=(0,tN.f)({DenseMatrix:nD,concat:ad,equalScalar:nY,matrix:ij,typed:nC,zeros:i1}),a_=(0,tA.p)({DenseMatrix:nD,SparseMatrix:iD,bignumber:i_,concat:ad,config:n.$,matrix:ij,typed:nC}),aB=(0,tE.t)({DenseMatrix:nD,concat:ad,equalScalar:nY,matrix:ij,subtractScalar:iE,typed:nC,unaryMinus:al}),aP=(0,tS.U)({concat:ad,matrix:ij,typed:nC}),ak=(0,tC.e)({config:n.$,numeric:as,typed:nC}),aq=(0,tM.p)({DenseMatrix:nD,divideScalar:ag,equalScalar:nY,matrix:ij,multiplyScalar:iu,subtractScalar:iE,typed:nC}),aI=(0,tT.Y)({DenseMatrix:nD,SparseMatrix:iD,concat:ad,matrix:ij,typed:nC}),aR=(0,tO.W)({DenseMatrix:nD,SparseMatrix:iD,addScalar:nB,concat:ad,equalScalar:nY,matrix:ij,typed:nC}),az=(0,tF.J)({BigNumber:ne,DenseMatrix:nD,concat:ad,equalScalar:nY,matrix:ij,typed:nC}),aL=(0,t_.x)({concat:ad,equalScalar:nY,matrix:ij,typed:nC}),aj=(0,tB.$)({DenseMatrix:nD,concat:ad,equalScalar:nY,matrix:ij,typed:nC}),aU=(0,tP.x)({DenseMatrix:nD,SparseMatrix:iD,concat:ad,matrix:ij,typed:nC}),a$=(0,tk.f)({addScalar:nB,combinations:n$,divideScalar:ag,isInteger:at,isNegative:iz,multiplyScalar:iu,typed:nC}),aH=(0,tq.m)({BigNumber:ne,DenseMatrix:nD,Fraction:na,concat:ad,config:n.$,equalScalar:nY,matrix:ij,typed:nC}),aG=(0,tI.r)({concat:ad,matrix:ij,typed:nC}),aQ=(0,tR.z)({addScalar:nB,combinations:n$,isInteger:at,isNegative:iz,isPositive:ax,larger:aD,typed:nC}),aV=(0,tz.x)({matrix:ij,multiply:i$,subtract:aB,typed:nC}),aZ=(0,tL.k)({divideScalar:ag,isZero:iL,matrix:ij,multiply:i$,subtractScalar:iE,typed:nC,unaryMinus:al}),aW=(0,tj.i)({matrix:ij,number:il,subtract:aB,typed:nC}),aY=(0,tU.G)({abs:nT,addScalar:nB,deepEqual:am,divideScalar:ag,multiplyScalar:iu,sqrt:iY,subtractScalar:iE,typed:nC}),aJ=(0,t$.F)({DenseMatrix:nD,SparseMatrix:iD,concat:ad,divideScalar:ag,equalScalar:nY,matrix:ij,typed:nC}),aK=(0,tH.a)({compareText:aG,isZero:iL,typed:nC}),aX=(0,tG.B)({larger:aD,smaller:a_}),a0=(0,tQ.r)({abs:nT,addScalar:nB,divideScalar:ag,isPositive:ax,multiplyScalar:iu,smaller:a_,sqrt:iY,typed:nC}),a1=(0,tV.r)({DenseMatrix:nD,smaller:a_}),a2=(0,tZ.T)({ImmutableDenseMatrix:a1,getMatrixDataType:n5}),a3=(0,tW.s)({abs:nT,add:aR,addScalar:nB,config:n.$,divideScalar:ag,equalScalar:nY,flatten:n1,isNumeric:n7,isZero:iL,matrix:ij,multiply:i$,multiplyScalar:iu,smaller:a_,subtract:aB,typed:nC}),a5=(0,tY.o)({BigNumber:ne,add:aR,config:n.$,equal:i6,isInteger:at,mod:aS,smaller:a_,typed:nC,xgcd:i0}),a8=(0,tJ.W)({DenseMatrix:nD,SparseMatrix:iD,concat:ad,config:n.$,matrix:ij,typed:nC}),a4=(0,tK.h)({Complex:nt,config:n.$,divideScalar:ag,typeOf:iM,typed:nC}),a9=(0,tX.H)({DenseMatrix:nD,divideScalar:ag,equalScalar:nY,matrix:ij,multiplyScalar:iu,subtractScalar:iE,typed:nC}),a6=(0,t0.Z)({flatten:n1,matrix:ij,size:ix,typed:nC}),a7=(0,t1.L)({config:n.$,isNaN:n6,numeric:as,smaller:a_,typed:nC}),se=(0,t2.s)({Complex:nt,config:n.$,divideScalar:ag,typed:nC}),st=(0,t3.X)({compare:aH,isNaN:n6,isNumeric:n7,typed:nC}),sr=(0,t5.n)({DenseMatrix:nD,concat:ad,equalScalar:nY,matrix:ij,typed:nC,zeros:i1}),sn=(0,t8.H)({SparseMatrix:iD,abs:nT,add:aR,divideScalar:ag,larger:aD,largerEq:a8,multiply:i$,subtract:aB,transpose:iX,typed:nC}),si=(0,t4.Z)({FibonacciHeap:aX,addScalar:nB,equalScalar:nY}),sa=(0,t9.$)({add:aR,matrix:ij,typed:nC,zeros:i1}),ss=(0,t6.i)({add:aR,config:n.$,numeric:as,typed:nC}),so=(0,t7.s)({add:aR,matrix:ij,typed:nC}),su=(0,re.m)({DenseMatrix:nD,divideScalar:ag,equalScalar:nY,matrix:ij,multiplyScalar:iu,subtractScalar:iE,typed:nC}),sc=(0,rt.S)({Complex:nt,add:aR,multiply:i$,number:il,typed:nC}),sl=(0,rr.K)({DenseMatrix:nD,config:n.$,equalScalar:nY,matrix:ij,round:ac,typed:nC,zeros:i1}),sp=(0,rn.b)({compare:aH,typed:nC}),sf=(0,ri.b)({add:aR,typed:nC,unaryPlus:ak}),sd=(0,ra.Y)({Complex:nt,DenseMatrix:nD,ceil:sl,equalScalar:nY,floor:ay,matrix:ij,typed:nC,zeros:i1}),sh=(0,rs.z)({Index:a2,typed:nC}),sm=(0,ro.K)({abs:nT,addScalar:nB,det:aZ,divideScalar:ag,identity:ae,matrix:ij,multiply:i$,typed:nC,unaryMinus:al}),sg=(0,ru.s)({Complex:nt,config:n.$,divideScalar:ag,log:a4,typed:nC}),sv=(0,rc.o)({DenseMatrix:nD,Spa:si,SparseMatrix:iD,abs:nT,addScalar:nB,divideScalar:ag,equalScalar:nY,larger:aD,matrix:ij,multiplyScalar:iu,subtractScalar:iE,typed:nC,unaryMinus:al}),sy=(0,rl.w)({Complex:nt,add:aR,ctranspose:i4,deepEqual:am,divideScalar:ag,dot:iq,dotDivide:aJ,equal:i6,inv:sm,matrix:ij,multiply:i$,typed:nC}),sb=(0,rp.V)({Complex:nt,config:n.$,fraction:i7,identity:ae,inv:sm,matrix:ij,multiply:i$,number:il,typed:nC}),sx=(0,rf.v)({DenseMatrix:nD,Index:a2,compareNatural:sp,size:ix,subset:sa,typed:nC}),sD=(0,rd.Z)({DenseMatrix:nD,Index:a2,compareNatural:sp,size:ix,subset:sa,typed:nC}),sw=(0,rh.P)({Index:a2,compareNatural:sp,size:ix,subset:sa,typed:nC}),sN=(0,rm.Y)({Index:a2,compareNatural:sp,size:ix,subset:sa,typed:nC}),sA=(0,rg.V)({DenseMatrix:nD,SparseMatrix:iD,concat:ad,config:n.$,matrix:ij,typed:nC}),sE=(0,rv.V)({compare:aH,compareNatural:sp,matrix:ij,typed:nC}),sS=(0,ry.y)({abs:nT,add:aR,identity:ae,inv:sm,map:is,max:aE,multiply:i$,size:ix,sqrt:iY,subtract:aB,typed:nC}),sC=(0,rb.K)({DenseMatrix:nD,SparseMatrix:iD,concat:ad,config:n.$,equalScalar:nY,matrix:ij,typed:nC}),sM=(0,rx.i)({concat:ad,equalScalar:nY,matrix:ij,not:ic,typed:nC,zeros:i1}),sT=(0,rD.G)({divideScalar:ag,equalScalar:nY,inv:sm,matrix:ij,multiply:i$,typed:nC}),sO=(0,rw.H)({abs:nT,add:aR,identity:ae,inv:sm,multiply:i$,typed:nC}),sF=(0,rN.H)({addScalar:nB,ceil:sl,conj:nG,divideScalar:ag,dotDivide:aJ,exp:nK,i:ns,log2:ia,matrix:ij,multiplyScalar:iu,pow:sb,tau:ny,typed:nC}),s_=(0,rA.$)({Complex:nt,add:aR,divide:sT,matrix:ij,multiply:i$,typed:nC}),sB=(0,rE.M)({BigNumber:ne,Complex:nt,config:n.$,multiplyScalar:iu,pow:sb,typed:nC}),sP=(0,rS.C)({conj:nG,dotDivide:aJ,fft:sF,typed:nC}),sk=(0,rC.u)({divide:sT,dotDivide:aJ,isNumeric:n7,log:a4,map:is,matrix:ij,multiply:i$,sum:ss,typed:nC}),sq=(0,rM.b)({DenseMatrix:nD,lsolve:aA,lup:sv,matrix:ij,slu:sn,typed:nC,usolve:aq}),sI=(0,rT.s)({add:aR,divide:sT,typed:nC}),sR=(0,rO.h)({add:aR,compare:aH,divide:sT,partitionSelect:st,typed:nC}),sz=(0,rF.r)({add:aR,cbrt:af,divide:sT,equalScalar:nY,im:n4,isZero:iL,multiply:i$,re:ig,sqrt:iY,subtract:aB,typeOf:iM,typed:nC,unaryMinus:al}),sL=(0,r_.D)({bignumber:i_,add:aR,compare:aH,divide:sT,isInteger:at,larger:aD,mapSlices:an,multiply:i$,partitionSelect:st,smaller:a_,smallerEq:sA,subtract:aB,typed:nC}),sj=(0,rB.S)({bignumber:i_,matrix:ij,add:aR,config:n.$,equal:i6,isPositive:ax,isZero:iL,larger:aD,largerEq:a8,smaller:a_,smallerEq:sA,typed:nC}),sU=(0,rP.R)({Index:a2,matrix:ij,range:sj,typed:nC}),s$=(0,rk.e)({DenseMatrix:nD,Index:a2,compareNatural:sp,size:ix,subset:sa,typed:nC}),sH=(0,rq.C)({Index:a2,compareNatural:sp,size:ix,subset:sa,typed:nC}),sG=(0,rI.l)({Index:a2,concat:ad,setDifference:s$,size:ix,subset:sa,typed:nC}),sQ=(0,rR.c)({abs:nT,add:aR,bignumber:i_,divide:sT,isNegative:iz,isPositive:ax,larger:aD,map:is,matrix:ij,max:aE,multiply:i$,smaller:a_,subtract:aB,typed:nC,unaryMinus:al}),sV=(0,rz.d)({BigNumber:ne,Complex:nt,Fraction:na,abs:nT,addScalar:nB,config:n.$,divideScalar:ag,equal:i6,fix:sd,format:n3,isNumeric:n7,multiplyScalar:iu,number:il,pow:sb,round:ac,subtractScalar:iE}),sZ=(0,o.AW)({BigNumber:ne,Unit:sV,config:n.$}),sW=(0,o.Kw)({BigNumber:ne,Unit:sV,config:n.$}),sY=(0,o.XS)({BigNumber:ne,Unit:sV,config:n.$}),sJ=(0,o.UK)({BigNumber:ne,Unit:sV,config:n.$}),sK=(0,rL.H)({Index:a2,matrix:ij,range:sj,typed:nC}),sX=(0,o.VK)({BigNumber:ne,Unit:sV,config:n.$}),s0=(0,o.w$)({BigNumber:ne,Unit:sV,config:n.$}),s1=(0,rj.J)({Unit:sV,typed:nC}),s2=(0,o.zr)({BigNumber:ne,Unit:sV,config:n.$}),s3=(0,rU.f)({abs:nT,add:aR,addScalar:nB,atan:nI,bignumber:i_,column:sK,complex:nH,config:n.$,cos:nQ,diag:i9,divideScalar:ag,dot:iq,equal:i6,flatten:n1,im:n4,inv:sm,larger:aD,matrix:ij,matrixFromColumns:aa,multiply:i$,multiplyScalar:iu,number:il,qr:aO,re:ig,reshape:au,sin:ib,size:ix,smaller:a_,sqrt:iY,subtract:aB,typed:nC,usolve:aq,usolveAll:su}),s5=(0,o.dd)({BigNumber:ne,Unit:sV,config:n.$}),s8=(0,r$.w)({gamma:sB,typed:nC}),s4=(0,o.Dc)({BigNumber:ne,Unit:sV,config:n.$}),s9=(0,o.Ik)({BigNumber:ne,Unit:sV,config:n.$}),s6=(0,o.Tx)({BigNumber:ne,Unit:sV,config:n.$}),s7=(0,o.$L)({BigNumber:ne,Unit:sV,config:n.$}),oe=(0,o.Cc)({BigNumber:ne,Unit:sV,config:n.$}),ot=(0,rH.p)({abs:nT,map:is,median:sR,subtract:aB,typed:nC}),or=(0,o.DT)({BigNumber:ne,Unit:sV,config:n.$}),on=(0,o.NC)({BigNumber:ne,Unit:sV,config:n.$}),oi=(0,o.hy)({BigNumber:ne,Unit:sV,config:n.$}),oa=(0,rG.k)({add:aR,divide:sT,factorial:s8,isInteger:at,isPositive:ax,multiply:i$,typed:nC}),os=(0,rQ.X)({abs:nT,add:aR,conj:nG,ctranspose:i4,eigs:s3,equalScalar:nY,larger:aD,matrix:ij,multiply:i$,pow:sb,smaller:a_,sqrt:iY,typed:nC}),oo=(0,rV.U)({factorial:s8,typed:nC}),ou=(0,o.Og)({BigNumber:ne,Unit:sV,config:n.$}),oc=(0,o.cn)({BigNumber:ne,Unit:sV,config:n.$}),ol=(0,o.TT)({BigNumber:ne,Unit:sV,config:n.$}),op=(0,o.y0)({BigNumber:ne,Unit:sV,config:n.$}),of=(0,rZ.m)({BigNumber:ne,DenseMatrix:nD,SparseMatrix:iD,addScalar:nB,config:n.$,cos:nQ,matrix:ij,multiplyScalar:iu,norm:os,sin:ib,typed:nC,unaryMinus:al}),od=(0,o.QE)({BigNumber:ne,Unit:sV,config:n.$}),oh=(0,o.cr)({BigNumber:ne,Unit:sV,config:n.$}),om=(0,rW.G)({compareNatural:sp,typed:nC}),og=(0,o.Lg)({BigNumber:ne,Unit:sV,config:n.$}),ov=(0,o.zy)({BigNumber:ne,Unit:sV,config:n.$}),oy=(0,o.wp)({BigNumber:ne,Unit:sV,config:n.$}),ob=(0,rY.A)({add:aR,divide:sT,isNaN:n6,mapSlices:an,multiply:i$,subtract:aB,typed:nC}),ox=(0,rJ.b)({BigNumber:ne,Complex:nt,add:aR,config:n.$,divide:sT,equal:i6,factorial:s8,gamma:sB,isBounded:n9,isNegative:iz,multiply:i$,pi:nA,pow:sb,sin:ib,smallerEq:sA,subtract:aB,typed:nC}),oD=(0,o.Gj)({BigNumber:ne,Unit:sV,config:n.$}),ow=(0,o.cC)({BigNumber:ne,Unit:sV,config:n.$}),oN=(0,rK.r)({add:aR,divide:sT,matrix:ij,mean:sI,multiply:i$,pow:sb,sqrt:iY,subtract:aB,sum:ss,typed:nC}),oA=(0,rX.U)({DenseMatrix:nD,SparseMatrix:iD,concat:ad,equalScalar:nY,matrix:ij,pow:sb,typed:nC}),oE=(0,o.v2)({BigNumber:ne,Unit:sV,config:n.$}),oS=(0,o.Dp)({BigNumber:ne,Unit:sV,config:n.$}),oC=(0,o.oL)({BigNumber:ne,Unit:sV,config:n.$}),oM=(0,o.rg)({BigNumber:ne,Unit:sV,config:n.$}),oT=(0,o.Rd)({BigNumber:ne,Unit:sV,config:n.$}),oO=(0,o.KV)({BigNumber:ne,Unit:sV,config:n.$}),oF=(0,o.Wq)({BigNumber:ne,Unit:sV,config:n.$}),o_=(0,o.aE)({BigNumber:ne,Unit:sV,config:n.$}),oB=(0,o._F)({BigNumber:ne,Unit:sV,config:n.$}),oP=(0,o._7)({BigNumber:ne,Unit:sV,config:n.$}),ok=(0,r0.e)({DenseMatrix:nD,Index:a2,compareNatural:sp,size:ix,subset:sa,typed:nC}),oq=(0,r1.y)({map:is,sqrt:iY,typed:nC,variance:ob}),oI=(0,r2.w)({bignumber:i_,addScalar:nB,combinations:n$,divideScalar:ag,factorial:s8,isInteger:at,isNegative:iz,larger:aD,multiplyScalar:iu,number:il,pow:sb,subtractScalar:iE,typed:nC}),oR=(0,r3.n)({Unit:sV,typed:nC}),oz=(0,r5.e)({addScalar:nB,isInteger:at,isNegative:iz,stirlingS2:oI,typed:nC}),oL=(0,o.eb)({BigNumber:ne,Unit:sV,config:n.$}),oj=(0,o.qQ)({BigNumber:ne,Unit:sV,config:n.$}),oU=(0,o.EE)({BigNumber:ne,Unit:sV,config:n.$}),o$=(0,o.qU)({BigNumber:ne,Unit:sV,config:n.$}),oH=(0,r8.S)({multiply:i$,rotationMatrix:of,typed:nC}),oG=(0,r4.s)({Index:a2,concat:ad,setIntersect:ok,setSymDifference:sG,size:ix,subset:sa,typed:nC}),oQ=(0,o.Lz)({BigNumber:ne,Unit:sV,config:n.$}),oV=(0,o.WX)({BigNumber:ne,Unit:sV,config:n.$}),oZ=(0,o.u5)({BigNumber:ne,Unit:sV,config:n.$}),oW=(0,r9.u)({identity:ae,matrix:ij,multiply:i$,norm:os,qr:aO,subtract:aB,typed:nC}),oY=(0,o.e0)({BigNumber:ne,Unit:sV,config:n.$}),oJ=(0,o.tP)({BigNumber:ne,Unit:sV,config:n.$}),oK=(0,o.jh)({BigNumber:ne,Unit:sV,config:n.$}),oX=(0,r6._)({abs:nT,add:aR,concat:ad,identity:ae,index:sh,lusolve:sq,matrix:ij,matrixFromColumns:aa,multiply:i$,range:sj,schur:oW,subset:sa,subtract:aB,transpose:iX,typed:nC}),o0=(0,r7.L)({matrix:ij,multiply:i$,sylvester:oX,transpose:iX,typed:nC})},60928(e,t,r){"use strict";function n(e,t,r,i){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=r,this.max=i,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+r+(null!=i?"-"+i:"")+" expected)",this.stack=Error().stack}r.d(t,{X:()=>n}),n.prototype=Error(),n.prototype.constructor=Error,n.prototype.name="ArgumentsError",n.prototype.isArgumentsError=!0},71380(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=Error().stack}r.d(t,{h:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="DimensionError",n.prototype.isDimensionError=!0},6636(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=r),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}r.d(t,{d:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="IndexError",n.prototype.isIndexError=!0},7741(e,t,r){"use strict";r.d(t,{G:()=>s});var n=r(14943),i=r(93140),a=r(27716),s=(0,r(58321).P9)("Help",["evaluate"],e=>{var{evaluate:t}=e;function r(e){if(!(this instanceof r))throw SyntaxError("Constructor must be called with the new operator");if(!e)throw Error('Argument "doc" missing');this.doc=e}return r.prototype.type="Help",r.prototype.isHelp=!0,r.prototype.toString=function(){var e=this.doc||{},r="\n";if(e.name&&(r+="Name: "+e.name+"\n\n"),e.category&&(r+="Category: "+e.category+"\n\n"),e.description&&(r+="Description:\n "+e.description+"\n\n"),e.syntax&&(r+="Syntax:\n "+e.syntax.join("\n ")+"\n\n"),e.examples){r+="Examples:\n";for(var i=!1,s=t("config()"),o={config:e=>(i=!0,t("config(newConfig)",{newConfig:e}))},u=0;u<e.examples.length;u++){var c=e.examples[u];r+=" "+c+"\n";var l=void 0;try{l=t(c,o)}catch(e){l=e}void 0===l||(0,n.gS)(l)||(r+=" "+(0,a.GP)(l,{precision:14})+"\n")}r+="\n",i&&t("config(originalConfig)",{originalConfig:s})}return e.mayThrow&&e.mayThrow.length&&(r+="Throws: "+e.mayThrow.join(", ")+"\n\n"),e.seealso&&e.seealso.length&&(r+="See also: "+e.seealso.join(", ")+"\n"),r},r.prototype.toJSON=function(){var e=(0,i.o8)(this.doc);return e.mathjs="Help",e},r.fromJSON=function(e){var t={};return Object.keys(e).filter(e=>"mathjs"!==e).forEach(r=>{t[r]=e[r]}),new r(t)},r.prototype.valueOf=r.prototype.toString,r},{isClass:!0})},44165(e,t,r){"use strict";r.d(t,{m:()=>s});var n=r(58321),i=r(14943),a=r(9286),s=(0,n.P9)("Parser",["evaluate","parse"],e=>{var{evaluate:t,parse:r}=e;function n(){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:(0,a.A5)(),writable:!1})}return n.prototype.type="Parser",n.prototype.isParser=!0,n.prototype.evaluate=function(e){return t(e,this.scope)},n.prototype.get=function(e){if(this.scope.has(e))return this.scope.get(e)},n.prototype.getAll=function(){return(0,a.vw)(this.scope)},n.prototype.getAllAsMap=function(){return this.scope},n.prototype.set=function(e,t){if(!function(e){if(0===e.length)return!1;for(var t=0;t<e.length;t++){var n=e.charAt(t-1),i=e.charAt(t),a=e.charAt(t+1);if(!(r.isAlpha(i,n,a)||t>0&&r.isDigit(i)))return!1}return!0}(e))throw Error("Invalid variable name: '".concat(e,"'. Variable names must follow the specified rules."));return this.scope.set(e,t),t},n.prototype.remove=function(e){this.scope.delete(e)},n.prototype.clear=function(){this.scope.clear()},n.prototype.toJSON=function(){var e,t={mathjs:"Parser",variables:{},functions:{}};for(var[r,n]of this.scope)if((0,i.Tn)(n)){if("function"!=typeof(e=n)||"string"!=typeof e.syntax||"string"!=typeof e.expr)throw Error("Cannot serialize external function ".concat(r));t.functions[r]="".concat(n.syntax," = ").concat(n.expr)}else t.variables[r]=n;return t},n.fromJSON=function(e){var t=new n;return Object.entries(e.variables).forEach(e=>{var[r,n]=e;return t.set(r,n)}),Object.entries(e.functions).forEach(e=>{var[r,n]=e;return t.evaluate(n)}),t},n},{isClass:!0})},20023(e,t,r){"use strict";r.d(t,{e:()=>a});var n={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},i={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},a={bignumber:{name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","bigint","complex","fraction","index","matrix","string","unit"]},bigint:{name:"bigint",category:"Construction",syntax:["bigint(x)"],description:"Create a bigint, an integer with an arbitrary number of digits, from a number or string.",examples:["123123123123123123 # a large number will lose digits",'bigint("123123123123123123")','bignumber(["1", "3", "5"])'],seealso:["boolean","bignumber","number","complex","fraction","index","matrix","string","unit"]},boolean:{name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},complex:{name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},createUnit:{name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},fraction:{name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},index:{name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = 1","B = [1, 2, 3]","B[B>1 and B<3]"],seealso:["bignumber","boolean","complex","matrix","number","range","string","unit"]},matrix:{name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},number:{name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","bigint","boolean","complex","fraction","index","matrix","string","unit"]},sparse:{name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},splitUnit:{name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},string:{name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},unit:{name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},e:n,E:n,false:{name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},i:{name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Infinity:{name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},LN2:{name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},LN10:{name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LOG2E:{name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},LOG10E:{name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},NaN:{name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},null:{name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},pi:i,PI:i,phi:{name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},SQRT1_2:{name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},SQRT2:{name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},tau:{name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},true:{name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},version:{name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant. Deprecated in favor of coulombConstant",examples:["coulombConstant"]},coulombConstant:{description:"Coulomb's constant",examples:["coulombConstant"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Bohr magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Bohr radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:{name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},lsolve:{name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},lsolveAll:{name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},lup:{name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},lusolve:{name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},leafCount:{name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},polynomialRoot:{name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6, 1)"],seealso:["cbrt","sqrt"]},resolve:{name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},simplify:{name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},simplifyConstant:{name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConstant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},simplifyCore:{name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},symbolicEqual:{name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},rationalize:{name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},slu:{name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},usolve:{name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},usolveAll:{name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},qr:{name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},abs:{name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},add:{name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},cbrt:{name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},ceil:{name:"ceil",category:"Arithmetic",syntax:["ceil(x)","ceil(x, n)","ceil(unit, valuelessUnit)","ceil(unit, n, valuelessUnit)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)","ceil(3.241cm, cm)","ceil(3.241cm, 2, cm)"],seealso:["floor","fix","round"]},cube:{name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},divide:{name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},dotDivide:{name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},dotMultiply:{name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},dotPow:{name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},exp:{name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},expm:{name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},expm1:{name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},fix:{name:"fix",category:"Arithmetic",syntax:["fix(x)","fix(x, n)","fix(unit, valuelessUnit)","fix(unit, n, valuelessUnit)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)","fix(3.241cm, cm)","fix(3.241cm, 2, cm)"],seealso:["ceil","floor","round"]},floor:{name:"floor",category:"Arithmetic",syntax:["floor(x)","floor(x, n)","floor(unit, valuelessUnit)","floor(unit, n, valuelessUnit)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)","floor(3.241cm, cm)","floor(3.241cm, 2, cm)"],seealso:["ceil","fix","round"]},gcd:{name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},hypot:{name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenuse of a list with values.",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},lcm:{name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},log:{name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},log2:{name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},log1p:{name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},log10:{name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},mod:{name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},multiply:{name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},norm:{name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},nthRoot:{name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},nthRoots:{name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},pow:{name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},round:{name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)","round(unit, valuelessUnit)","round(unit, n, valuelessUnit)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)","round(3.241cm, 2, cm)","round([3.2, 3.8, -4.7])"],seealso:["ceil","floor","fix"]},sign:{name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>0, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},sqrt:{name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},sqrtm:{name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},square:{name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},subtract:{name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},unaryMinus:{name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},unaryPlus:{name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},xgcd:{name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},invmod:{name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)","invmod(7, 13)","invmod(15151, 15122)"],seealso:["gcd","xgcd"]},bitAnd:{name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitNot:{name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitOr:{name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},bitXor:{name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},leftShift:{name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rightArithShift:{name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},rightLogShift:{name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},bellNumbers:{name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},catalan:{name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},composition:{name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},stirlingS2:{name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"The Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers","bernoulli"]},config:{name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},import:{name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},typed:{name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x, "string": f(x)=concat(x,x) })',"double(2)",'double("hello")'],seealso:[]},arg:{name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},conj:{name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},re:{name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},im:{name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},evaluate:{name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate(expression, scope)","evaluate([expr1, expr2, expr3, ...])","evaluate([expr1, expr2, expr3, ...], scope)"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(16)")','evaluate("2 inch to cm")','evaluate("sin(x * pi)", { "x": 1/2 })','evaluate(["width=2", "height=4","width*height"])'],seealso:["parser","parse","compile"]},help:{name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},parse:{name:"parse",category:"Expression",syntax:["parse(expr)","parse(expr, options)","parse([expr1, expr2, expr3, ...])","parse([expr1, expr2, expr3, ...], options)"],description:"Parse an expression. Returns a node tree, which can be evaluated by invoking node.evaluate() or transformed into a functional object via node.compile().",examples:['node1 = parse("sqrt(3^2 + 4^2)")',"node1.evaluate()","code1 = node1.compile()","code1.evaluate()","scope = {a: 3, b: 4}",'node2 = parse("a * b")',"node2.evaluate(scope)","code2 = node2.compile()","code2.evaluate(scope)"],seealso:["parser","evaluate","compile"]},parser:{name:"parser",category:"Expression",syntax:["parser()"],description:"Create a parser object that keeps a context of variables and their values, allowing the evaluation of expressions in that context.",examples:["myParser = parser()",'myParser.evaluate("sqrt(3^2 + 4^2)")','myParser.set("x", 3)','myParser.evaluate("y = x + 3")','myParser.evaluate(["y = x + 3", "y = y + 1"])','myParser.get("y")'],seealso:["evaluate","parse","compile"]},compile:{name:"compile",category:"Expression",syntax:["compile(expr) ","compile([expr1, expr2, expr3, ...])"],description:"Parse and compile an expression. Returns a an object with a function evaluate([scope]) to evaluate the compiled expression.",examples:['code1 = compile("sqrt(3^2 + 4^2)")',"code1.evaluate() ",'code2 = compile("a * b")',"code2.evaluate({a: 3, b: 4})"],seealso:["parser","parse","evaluate"]},distance:{name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},intersect:{name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},and:{name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},not:{name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},nullish:{name:"nullish",category:"Logical",syntax:["x ?? y","nullish(x, y)"],description:"Nullish coalescing operator. Returns the right-hand operand when the left-hand operand is null or undefined, and otherwise returns the left-hand operand.",examples:["null ?? 42","undefined ?? 42","0 ?? 42","false ?? 42","null ?? undefined ?? 42"],seealso:["and","or","not"]},or:{name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xor:{name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},mapSlices:{name:"mapSlices",category:"Matrix",syntax:["mapSlices(A, dim, callback)"],description:"Generate a matrix one dimension less than A by applying callback to each slice of A along dimension dim.",examples:["A = [[1, 2], [3, 4]]","mapSlices(A, 1, sum)","mapSlices(A, 2, prod)"],seealso:["map","forEach"]},concat:{name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},count:{name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},cross:{name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},column:{name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},ctranspose:{name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},det:{name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diag:{name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diff:{name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicate the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["A = [1, 2, 4, 7, 0]","diff(A)","diff(A, 1)","B = [[1, 2], [3, 4]]","diff(B)","diff(B, 1)","diff(B, 2)","diff(B, bignumber(2))","diff([[1, 2], matrix([3, 4])], 2)"],seealso:["subtract","partitionSelect"]},dot:{name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},getMatrixDataType:{name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},identity:{name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},filter:{name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},flatten:{name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},forEach:{name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},inv:{name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},pinv:{name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},eigs:{name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and optionally eigenvectors of a square matrix",examples:["eigs([[5, 2.3], [2.3, 1]])","eigs([[1, 2, 3], [4, 5, 6], [7, 8, 9]], { precision: 1e-6, eigenvectors: false })"],seealso:["inv"]},kron:{name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the Kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},matrixFromFunction:{name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},matrixFromRows:{name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},matrixFromColumns:{name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},map:{name:"map",category:"Matrix",syntax:["map(x, callback)","map(x, y, ..., callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array or the matrices/arrays.",examples:["map([1, 2, 3], square)","map([1, 2], [3, 4], f(a,b) = a + b)"],seealso:["filter","forEach"]},ones:{name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},partitionSelect:{name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},range:{name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"range(1m, 1m, 3m)","a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},resize:{name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},reshape:{name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},rotate:{name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},rotationMatrix:{name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},row:{name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},size:{name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},sort:{name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},squeeze:{name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},subset:{name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},trace:{name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},transpose:{name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},zeros:{name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},fft:{name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional Fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},ifft:{name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse Fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},sylvester:{name:"sylvester",category:"Algebra",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","A = [[-1, -2], [1, 1]]; B = [[2, -1], [1, -2]]; C = [[-3, 2], [3, 0]]","sylvester(A, B, C)"],seealso:["schur","lyap"]},schur:{name:"schur",category:"Algebra",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","A = [[1, 0], [-4, 3]]","schur(A)"],seealso:["lyap","sylvester"]},lyap:{name:"lyap",category:"Algebra",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","A = [[-2, 0], [1, -4]]","Q = [[3, 1], [1, 3]]","lyap(A,Q)"],seealso:["schur","sylvester"]},solveODE:{name:"solveODE",category:"Numeric",syntax:["solveODE(func, tspan, y0)","solveODE(func, tspan, y0, options)"],description:"Numerical Integration of Ordinary Differential Equations.",examples:["f(t,y) = y","tspan = [0, 4]","solveODE(f, tspan, 1)","solveODE(f, tspan, [1, 2])",'solveODE(f, tspan, 1, { method:"RK23", maxStep:0.1 })'],seealso:["derivative","simplifyCore"]},bernoulli:{name:"bernoulli",category:"Probability",syntax:["bernoulli(n)"],description:"The nth Bernoulli number",examples:["bernoulli(4)","bernoulli(fraction(12))"],seealso:["combinations","gamma","stirlingS2"]},combinations:{name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},combinationsWithRep:{name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},factorial:{name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},gamma:{name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},kldivergence:{name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},lgamma:{name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},multinomial:{name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},permutations:{name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},pickRandom:{name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},random:{name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},randomInt:{name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},compare:{name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},compareNatural:{name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},compareText:{name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},deepEqual:{name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},equal:{name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},equalText:{name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},larger:{name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not. Comparing a value with NaN returns false.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},largerEq:{name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},smaller:{name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not. Comparing a value with NaN returns false.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},smallerEq:{name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},unequal:{name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},setCartesian:{name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},setDifference:{name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},setDistinct:{name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},setIntersect:{name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},setIsSubset:{name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},setMultiplicity:{name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},setPowerset:{name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},setSize:{name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},setSymDifference:{name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},setUnion:{name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},zpk2tf:{name:"zpk2tf",category:"Signal",syntax:["zpk2tf(z, p, k)"],description:"Compute the transfer function of a zero-pole-gain model.",examples:["zpk2tf([1, 2], [-1, -2], 1)","zpk2tf([1, 2], [-1, -2])","zpk2tf([1 - 3i, 2 + 2i], [-1, -2])"],seealso:[]},freqz:{name:"freqz",category:"Signal",syntax:["freqz(b, a)","freqz(b, a, w)"],description:"Calculates the frequency response of a filter given its numerator and denominator coefficients.",examples:["freqz([1, 2], [1, 2, 3])","freqz([1, 2], [1, 2, 3], [0, 1])","freqz([1, 2], [1, 2, 3], 512)"],seealso:[]},erf:{name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},zeta:{name:"zeta",category:"Special",syntax:["zeta(s)"],description:"Compute the Riemann Zeta Function using an infinite series and Riemann's Functional Equation for the entire complex plane",examples:["zeta(0.2)","zeta(-0.5)","zeta(4)"],seealso:[]},cumsum:{name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},mad:{name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},max:{name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values. If any NaN values are found, the function yields the last NaN in the input.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mean:{name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},median:{name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},min:{name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values. If any NaN values are found, the function yields the last NaN in the input.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},mode:{name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},prod:{name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},quantileSeq:{name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probability are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},std:{name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},sum:{name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","variance"]},variance:{name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},corr:{name:"corr",category:"Statistics",syntax:["corr(A,B)"],description:"Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.",examples:["corr([2, 4, 6, 8],[1, 2, 3, 6])","corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))"],seealso:["max","mean","min","median","min","prod","std","sum"]},acos:{name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},acosh:{name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},acot:{name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},acoth:{name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the inverse hyperbolic tangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},acsc:{name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},acsch:{name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the inverse hyperbolic cosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},asec:{name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},asech:{name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},asin:{name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},asinh:{name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},atan:{name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},atanh:{name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},atan2:{name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},cos:{name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},cosh:{name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cot:{name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},coth:{name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},csc:{name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},csch:{name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},sec:{name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},sech:{name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},sin:{name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},sinh:{name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},tan:{name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},tanh:{name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},to:{name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},toBest:{name:"toBest",category:"Units",syntax:["toBest(x)","toBest(x, unitList)","toBest(x, unitList, options)"],description:"Converts to the most appropriate display unit.",examples:['toBest(unit(5000, "m"))','toBest(unit(3500000, "W"))','toBest(unit(0.000000123, "A"))','toBest(unit(10, "m"), "cm")','toBest(unit(10, "m"), "mm,km", {offset: 1.5})'],seealso:[]},clone:{name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables, and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},format:{name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},bin:{name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},oct:{name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},hex:{name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},isNaN:{name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero","isFinite","isBounded"]},isBounded:{name:"isBounded",category:"Utils",syntax:["isBounded(x)"],description:"Test whether a value or its entries are bounded.",examples:["isBounded(Infinity)","isBounded(bigint(3))","isBounded([3, -Infinity, -3])"],seealso:["isFinite","isNumeric","isNaN","isNegative","isPositive"]},isFinite:{name:"isFinite",category:"Utils",syntax:["isFinite(x)"],description:"Test whether a value is finite, elementwise on collections.",examples:["isFinite(Infinity)","isFinite(bigint(3))","isFinite([3, -Infinity, -3])"],seealso:["isBounded","isNumeric","isNaN","isNegative","isPositive"]},isInteger:{name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isNegative:{name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},isNumeric:{name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue","isFinite","isBounded"]},hasNumericValue:{name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},isPositive:{name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isPrime:{name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isZero:{name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},print:{name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $1, $2, $3", [6, 9, 4])'],seealso:["format"]},typeOf:{name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},numeric:{name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, bigint, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "bigint")','numeric("4", "BigNumber")','numeric("4", "Fraction")','numeric(4, "Fraction")','numeric(fraction(2, 5), "number")'],seealso:["number","bigint","fraction","bignumber","string","format"]}}},13192(e,t,r){"use strict";r.d(t,{Q:()=>s});var n=r(76355),i=r(58321),a="compile",s=(0,i.P9)(a,["typed","parse"],e=>{var{typed:t,parse:r}=e;return t(a,{string:function(e){return r(e).compile()},"Array | Matrix":function(e){return(0,n.Bl)(e,function(e){return r(e).compile()})}})})},77578(e,t,r){"use strict";r.d(t,{u:()=>o});var n=r(76355),i=r(58321),a=r(9286),s="evaluate",o=(0,i.P9)(s,["typed","parse"],e=>{var{typed:t,parse:r}=e;return t(s,{string:function(e){var t=(0,a.A5)();return r(e).compile().evaluate(t)},"string, Map | Object":function(e,t){return r(e).compile().evaluate(t)},"Array | Matrix":function(e){var t=(0,a.A5)();return(0,n.Bl)(e,function(e){return r(e).compile().evaluate(t)})},"Array | Matrix, Map | Object":function(e,t){return(0,n.Bl)(e,function(e){return r(e).compile().evaluate(t)})}})})},22342(e,t,r){"use strict";r.d(t,{q:()=>u});var n=r(58321),i=r(99863),a=r(20023),s=r(93140),o="help",u=(0,n.P9)(o,["typed","mathWithTransform","Help"],e=>{var{typed:t,mathWithTransform:r,Help:n}=e;return t(o,{any:function(e){var t,o=e;if("string"!=typeof e){for(t in r)if((0,s.mQ)(r,t)&&e===r[t]){o=t;break}}var u=(0,i.HU)(a.e,o);if(!u)throw Error('No documentation found on "'+("function"==typeof o?o.name:o)+'"');return new n(u)}})})},46670(e,t,r){"use strict";r.d(t,{C:()=>a});var n=r(58321),i="parser",a=(0,n.P9)(i,["typed","Parser"],e=>{var{typed:t,Parser:r}=e;return t(i,{"":function(){return new r}})})},6534(e,t,r){"use strict";r.d(t,{R:()=>n});var n=new Set(["end"])},59126(e,t,r){"use strict";r.d(t,{C:()=>c});var n=r(20296),i=r(14943),a=r(99863),s=r(58321),o=r(47985),u="AccessorNode",c=(0,s.P9)(u,["subset","Node"],e=>{var{subset:t,Node:r}=e,s=(0,o.T)({subset:t});function c(e){return!((0,i.AS)(e)||(0,i.gO)(e)||(0,i.BA)(e)||(0,i.Px)(e)||(0,i.GJ)(e)||(0,i.tv)(e)||(0,i.li)(e))}class l extends r{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(super(),!(0,i.Ll)(e))throw TypeError('Node expected for parameter "object"');if(!(0,i.$I)(t))throw TypeError('IndexNode expected for parameter "index"');this.object=e,this.index=t,this.optionalChaining=r}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return u}get isAccessorNode(){return!0}_compile(e,t){var r=this.object._compile(e,t),n=this.index._compile(e,t),o=this.optionalChaining,u=(0,i.AS)(this.object)&&this.object.optionalChaining;if(!this.index.isObjectProperty())return function(e,t,i){var a=i||{},c=r(e,t,a);if(o&&null==c){a.optionalShortCircuit=!0;return}if(!u||null==a||!a.optionalShortCircuit){var l=n(e,t,c);return s(c,l)}};var c=this.index.getObjectProperty();return function(e,t,n){var i=n||{},s=r(e,t,i);if(o&&null==s){i.optionalShortCircuit=!0;return}if(!u||null==i||!i.optionalShortCircuit)return(0,a.HU)(s,c)}}forEach(e){e(this.object,"object",this),e(this.index,"index",this)}map(e){return new l(this._ifNode(e(this.object,"object",this)),this._ifNode(e(this.index,"index",this)),this.optionalChaining)}clone(){return new l(this.object,this.index,this.optionalChaining)}_toString(e){var t=this.object.toString(e);return c(this.object)&&(t="("+t+")"),t+(this.optionalChaining?this.index.dotNotation?"?":"?.":"")+this.index.toString(e)}_toHTML(e){var t=this.object.toHTML(e);return c(this.object)&&(t='<span class="math-parenthesis math-round-parenthesis">(</span>'+t+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+this.index.toHTML(e)}_toTex(e){var t=this.object.toTex(e);return c(this.object)&&(t="\\left(' + object + '\\right)"),t+this.index.toTex(e)}toJSON(){return{mathjs:u,object:this.object,index:this.index,optionalChaining:this.optionalChaining}}static fromJSON(e){return new l(e.object,e.index,e.optionalChaining)}}return(0,n.A)(l,"name",u),l},{isClass:!0,isNode:!0})},41668(e,t,r){"use strict";r.d(t,{W:()=>u});var n=r(20296),i=r(14943),a=r(35838),s=r(58321),o="ArrayNode",u=(0,s.P9)(o,["Node"],e=>{var{Node:t}=e;class r extends t{constructor(e){if(super(),this.items=e||[],!Array.isArray(this.items)||!this.items.every(i.Ll))throw TypeError("Array containing Nodes expected")}get type(){return o}get isArrayNode(){return!0}_compile(e,t){var r=(0,a.Tj)(this.items,function(r){return r._compile(e,t)});if("Array"===e.config.matrix)return function(e,t,n){return(0,a.Tj)(r,function(r){return r(e,t,n)})};var n=e.matrix;return function(e,t,i){return n((0,a.Tj)(r,function(r){return r(e,t,i)}))}}forEach(e){for(var t=0;t<this.items.length;t++)e(this.items[t],"items["+t+"]",this)}map(e){for(var t=[],n=0;n<this.items.length;n++)t[n]=this._ifNode(e(this.items[n],"items["+n+"]",this));return new r(t)}clone(){return new r(this.items.slice(0))}_toString(e){return"["+this.items.map(function(t){return t.toString(e)}).join(", ")+"]"}toJSON(){return{mathjs:o,items:this.items}}static fromJSON(e){return new r(e.items)}_toHTML(e){return'<span class="math-parenthesis math-square-parenthesis">[</span>'+this.items.map(function(t){return t.toHTML(e)}).join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'}_toTex(e){return function t(r,n){var a=r.some(i.gO)&&!r.every(i.gO),s=n||a,o=r.map(function(r){return r.items?t(r.items,!n):r.toTex(e)}).join(s?"&":"\\\\");return a||!s||s&&!n?"\\begin{bmatrix}"+o+"\\end{bmatrix}":o}(this.items,!1)}}return(0,n.A)(r,"name",o),r},{isClass:!0,isNode:!0})},73607(e,t,r){"use strict";r.d(t,{y:()=>p});var n=r(20296),i=r(14943),a=r(99863),s=r(58321),o=r(47985),u=r(79943),c=r(60261),l="AssignmentNode",p=(0,s.P9)(l,["subset","?matrix","Node"],e=>{var{subset:t,matrix:r,Node:s}=e,p=(0,o.T)({subset:t}),f=function(e){var{subset:t,matrix:r}=e;return function(e,n,i){try{if(Array.isArray(e))return r(e).subset(n,i).valueOf().forEach((t,r)=>{e[r]=t}),e;if(e&&"function"==typeof e.subset)return e.subset(n,i);if("string"==typeof e)return t(e,n,i);else if("object"==typeof e){if(!n.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return(0,a.dL)(e,n.getObjectProperty(),i),e}else throw TypeError("Cannot apply index: unsupported type of object")}catch(e){throw(0,u.D)(e)}}}({subset:t,matrix:r});function d(e,t,r){t||(t="keep");var n=(0,c.t$)(e,t,r),i=(0,c.t$)(e.value,t,r);return"all"===t||null!==i&&i<=n}class h extends s{constructor(e,t,r){if(super(),this.object=e,this.index=r?t:null,this.value=r||t,!(0,i.li)(e)&&!(0,i.AS)(e))throw TypeError('SymbolNode or AccessorNode expected as "object"');if((0,i.li)(e)&&"end"===e.name)throw Error('Cannot assign to symbol "end"');if(this.index&&!(0,i.$I)(this.index))throw TypeError('IndexNode expected as "index"');if(!(0,i.Ll)(this.value))throw TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return l}get isAssignmentNode(){return!0}_compile(e,t){var r=this.object._compile(e,t),n=this.index?this.index._compile(e,t):null,s=this.value._compile(e,t),o=this.object.name;if(this.index)if(this.index.isObjectProperty()){var u=this.index.getObjectProperty();return function(e,t,n){var i=r(e,t,n),o=s(e,t,n);return(0,a.dL)(i,u,o),o}}else{if((0,i.li)(this.object))return function(e,t,i){var a=r(e,t,i),u=s(e,t,i),c=n(e,t,a);return e.set(o,f(a,c,u)),u};var c=this.object.object._compile(e,t);if(this.object.index.isObjectProperty()){var l=this.object.index.getObjectProperty();return function(e,t,r){var i=c(e,t,r),o=(0,a.HU)(i,l),u=n(e,t,o),p=s(e,t,r);return(0,a.dL)(i,l,f(o,u,p)),p}}var d=this.object.index._compile(e,t);return function(e,t,r){var i=c(e,t,r),a=d(e,t,i),o=p(i,a),u=n(e,t,o),l=s(e,t,r);return f(i,a,f(o,u,l)),l}}if(!(0,i.li)(this.object))throw TypeError("SymbolNode expected as object");return function(e,t,r){var n=s(e,t,r);return e.set(o,n),n}}forEach(e){e(this.object,"object",this),this.index&&e(this.index,"index",this),e(this.value,"value",this)}map(e){return new h(this._ifNode(e(this.object,"object",this)),this.index?this._ifNode(e(this.index,"index",this)):null,this._ifNode(e(this.value,"value",this)))}clone(){return new h(this.object,this.index,this.value)}_toString(e){var t=this.object.toString(e),r=this.index?this.index.toString(e):"",n=this.value.toString(e);return d(this,e&&e.parenthesis,e&&e.implicit)&&(n="("+n+")"),t+r+" = "+n}toJSON(){return{mathjs:l,object:this.object,index:this.index,value:this.value}}static fromJSON(e){return new h(e.object,e.index,e.value)}_toHTML(e){var t=this.object.toHTML(e),r=this.index?this.index.toHTML(e):"",n=this.value.toHTML(e);return d(this,e&&e.parenthesis,e&&e.implicit)&&(n='<span class="math-paranthesis math-round-parenthesis">(</span>'+n+'<span class="math-paranthesis math-round-parenthesis">)</span>'),t+r+'<span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+n}_toTex(e){var t=this.object.toTex(e),r=this.index?this.index.toTex(e):"",n=this.value.toTex(e);return d(this,e&&e.parenthesis,e&&e.implicit)&&(n="\\left(".concat(n,"\\right)")),t+r+"="+n}}return(0,n.A)(h,"name",l),h},{isClass:!0,isNode:!0})},64544(e,t,r){"use strict";r.d(t,{E:()=>u});var n=r(20296),i=r(14943),a=r(35838),s=r(58321),o="BlockNode",u=(0,s.P9)(o,["ResultSet","Node"],e=>{var{ResultSet:t,Node:r}=e;class s extends r{constructor(e){if(super(),!Array.isArray(e))throw Error("Array expected");this.blocks=e.map(function(e){var t=e&&e.node,r=!e||void 0===e.visible||e.visible;if(!(0,i.Ll)(t))throw TypeError('Property "node" must be a Node');if("boolean"!=typeof r)throw TypeError('Property "visible" must be a boolean');return{node:t,visible:r}})}get type(){return o}get isBlockNode(){return!0}_compile(e,r){var n=(0,a.Tj)(this.blocks,function(t){return{evaluate:t.node._compile(e,r),visible:t.visible}});return function(e,r,i){var s=[];return(0,a.jJ)(n,function(t){var n=t.evaluate(e,r,i);t.visible&&s.push(n)}),new t(s)}}forEach(e){for(var t=0;t<this.blocks.length;t++)e(this.blocks[t].node,"blocks["+t+"].node",this)}map(e){for(var t=[],r=0;r<this.blocks.length;r++){var n=this.blocks[r],i=this._ifNode(e(n.node,"blocks["+r+"].node",this));t[r]={node:i,visible:n.visible}}return new s(t)}clone(){return new s(this.blocks.map(function(e){return{node:e.node,visible:e.visible}}))}_toString(e){return this.blocks.map(function(t){return t.node.toString(e)+(t.visible?"":";")}).join("\n")}toJSON(){return{mathjs:o,blocks:this.blocks}}static fromJSON(e){return new s(e.blocks)}_toHTML(e){return this.blocks.map(function(t){return t.node.toHTML(e)+(t.visible?"":'<span class="math-separator">;</span>')}).join('<span class="math-separator"><br /></span>')}_toTex(e){return this.blocks.map(function(t){return t.node.toTex(e)+(t.visible?"":";")}).join("\\;\\;\n")}}return(0,n.A)(s,"name",o),s},{isClass:!0,isNode:!0})},34813(e,t,r){"use strict";r.d(t,{h:()=>u});var n=r(20296),i=r(14943),a=r(58321),s=r(60261),o="ConditionalNode",u=(0,a.P9)(o,["Node"],e=>{var{Node:t}=e;class r extends t{constructor(e,t,r){if(super(),!(0,i.Ll)(e))throw TypeError("Parameter condition must be a Node");if(!(0,i.Ll)(t))throw TypeError("Parameter trueExpr must be a Node");if(!(0,i.Ll)(r))throw TypeError("Parameter falseExpr must be a Node");this.condition=e,this.trueExpr=t,this.falseExpr=r}get type(){return o}get isConditionalNode(){return!0}_compile(e,t){var r=this.condition._compile(e,t),n=this.trueExpr._compile(e,t),a=this.falseExpr._compile(e,t);return function(e,t,s){return!function(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e)return!!e;if(e){if((0,i.C4)(e))return!e.isZero();if((0,i.Zd)(e))return!!(e.re||e.im);if((0,i.vO)(e))return!!e.value}if(null==e)return!1;throw TypeError('Unsupported type of condition "'+(0,i.QP)(e)+'"')}(r(e,t,s))?a(e,t,s):n(e,t,s)}}forEach(e){e(this.condition,"condition",this),e(this.trueExpr,"trueExpr",this),e(this.falseExpr,"falseExpr",this)}map(e){return new r(this._ifNode(e(this.condition,"condition",this)),this._ifNode(e(this.trueExpr,"trueExpr",this)),this._ifNode(e(this.falseExpr,"falseExpr",this)))}clone(){return new r(this.condition,this.trueExpr,this.falseExpr)}_toString(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=(0,s.t$)(this,t,e&&e.implicit),n=this.condition.toString(e),i=(0,s.t$)(this.condition,t,e&&e.implicit);("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=r)&&(n="("+n+")");var a=this.trueExpr.toString(e),o=(0,s.t$)(this.trueExpr,t,e&&e.implicit);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=r)&&(a="("+a+")");var u=this.falseExpr.toString(e),c=(0,s.t$)(this.falseExpr,t,e&&e.implicit);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==c&&c<=r)&&(u="("+u+")"),n+" ? "+a+" : "+u}toJSON(){return{mathjs:o,condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}}static fromJSON(e){return new r(e.condition,e.trueExpr,e.falseExpr)}_toHTML(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=(0,s.t$)(this,t,e&&e.implicit),n=this.condition.toHTML(e),i=(0,s.t$)(this.condition,t,e&&e.implicit);("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=r)&&(n='<span class="math-parenthesis math-round-parenthesis">(</span>'+n+'<span class="math-parenthesis math-round-parenthesis">)</span>');var a=this.trueExpr.toHTML(e),o=(0,s.t$)(this.trueExpr,t,e&&e.implicit);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=r)&&(a='<span class="math-parenthesis math-round-parenthesis">(</span>'+a+'<span class="math-parenthesis math-round-parenthesis">)</span>');var u=this.falseExpr.toHTML(e),c=(0,s.t$)(this.falseExpr,t,e&&e.implicit);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==c&&c<=r)&&(u='<span class="math-parenthesis math-round-parenthesis">(</span>'+u+'<span class="math-parenthesis math-round-parenthesis">)</span>'),n+'<span class="math-operator math-conditional-operator">?</span>'+a+'<span class="math-operator math-conditional-operator">:</span>'+u}_toTex(e){return"\\begin{cases} {"+this.trueExpr.toTex(e)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(e)+"}\\\\{"+this.falseExpr.toTex(e)+"}, &\\quad{\\text{otherwise}}\\end{cases}"}}return(0,n.A)(r,"name",o),r},{isClass:!0,isNode:!0})},97413(e,t,r){"use strict";r.d(t,{b:()=>c});var n=r(20296),i=r(27716),a=r(14943),s=r(64139),o=r(58321),u="ConstantNode",c=(0,o.P9)(u,["Node","isBounded"],e=>{var{Node:t,isBounded:r}=e;class o extends t{constructor(e){super(),this.value=e}get type(){return u}get isConstantNode(){return!0}_compile(e,t){var r=this.value;return function(){return r}}forEach(e){}map(e){return this.clone()}clone(){return new o(this.value)}_toString(e){return(0,i.GP)(this.value,e)}_toHTML(e){var t=this._toString(e);switch((0,a.QP)(this.value)){case"number":case"bigint":case"BigNumber":case"Fraction":return'<span class="math-number">'+t+"</span>";case"string":return'<span class="math-string">'+t+"</span>";case"boolean":return'<span class="math-boolean">'+t+"</span>";case"null":return'<span class="math-null-symbol">'+t+"</span>";case"undefined":return'<span class="math-undefined">'+t+"</span>";default:return'<span class="math-symbol">'+t+"</span>"}}toJSON(){return{mathjs:u,value:this.value}}static fromJSON(e){return new o(e.value)}_toTex(e){var t=this._toString(e);switch((0,a.QP)(this.value)){case"string":return"\\mathtt{"+(0,s.MA)(t)+"}";case"number":case"BigNumber":if(!r(this.value))return 0>this.value.valueOf()?"-\\infty":"\\infty";var n=t.toLowerCase().indexOf("e");if(-1!==n)return t.substring(0,n)+"\\cdot10^{"+t.substring(n+1)+"}";return t;case"bigint":return t.toString();case"Fraction":return this.value.toLatex();default:return t}}}return(0,n.A)(o,"name",u),o},{isClass:!0,isNode:!0})},61860(e,t,r){"use strict";r.d(t,{I:()=>f});var n=r(20296),i=r(14943),a=r(6534),s=r(27716),o=r(35838),u=r(64139),c=r(60261),l=r(58321),p="FunctionAssignmentNode",f=(0,l.P9)(p,["typed","Node"],e=>{var{typed:t,Node:r}=e;function l(e,t,r){var n=(0,c.t$)(e,t,r),i=(0,c.t$)(e.expr,t,r);return"all"===t||null!==i&&i<=n}class f extends r{constructor(e,t,r){if(super(),"string"!=typeof e)throw TypeError('String expected for parameter "name"');if(!Array.isArray(t))throw TypeError('Array containing strings or objects expected for parameter "params"');if(!(0,i.Ll)(r))throw TypeError('Node expected for parameter "expr"');if(a.R.has(e))throw Error('Illegal function name, "'+e+'" is a reserved keyword');var n=new Set;for(var s of t){var o="string"==typeof s?s:s.name;if(n.has(o))throw Error('Duplicate parameter name "'.concat(o,'"'));n.add(o)}this.name=e,this.params=t.map(function(e){return e&&e.name||e}),this.types=t.map(function(e){return e&&e.type||"any"}),this.expr=r}get type(){return p}get isFunctionAssignmentNode(){return!0}_compile(e,r){var n=Object.create(r);(0,o.jJ)(this.params,function(e){n[e]=!0});var i=this.expr,a=i._compile(e,n),s=this.name,u=this.params,c=(0,o.fj)(this.types,","),l=s+"("+(0,o.fj)(this.params,", ")+")";return function(e,r,n){var o={};o[c]=function(){for(var t=Object.create(r),i=0;i<u.length;i++)t[u[i]]=arguments[i];return a(e,t,n)};var p=t(s,o);return p.syntax=l,p.expr=i.toString(),e.set(s,p),p}}forEach(e){e(this.expr,"expr",this)}map(e){var t=this._ifNode(e(this.expr,"expr",this));return new f(this.name,this.params.slice(0),t)}clone(){return new f(this.name,this.params.slice(0),this.expr)}_toString(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=this.expr.toString(e);return l(this,t,e&&e.implicit)&&(r="("+r+")"),this.name+"("+this.params.join(", ")+") = "+r}toJSON(){var e=this.types;return{mathjs:p,name:this.name,params:this.params.map(function(t,r){return{name:t,type:e[r]}}),expr:this.expr}}static fromJSON(e){return new f(e.name,e.params,e.expr)}_toHTML(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",r=[],n=0;n<this.params.length;n++)r.push('<span class="math-symbol math-parameter">'+(0,s.ih)(this.params[n])+"</span>");var i=this.expr.toHTML(e);return l(this,t,e&&e.implicit)&&(i='<span class="math-parenthesis math-round-parenthesis">(</span>'+i+'<span class="math-parenthesis math-round-parenthesis">)</span>'),'<span class="math-function">'+(0,s.ih)(this.name)+'</span><span class="math-parenthesis math-round-parenthesis">(</span>'+r.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-round-parenthesis">)</span><span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+i}_toTex(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=this.expr.toTex(e);return l(this,t,e&&e.implicit)&&(r="\\left(".concat(r,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(u.QP).join(",")+"\\right)="+r}}return(0,n.A)(f,"name",p),f},{isClass:!0,isNode:!0})},30561(e,t,r){"use strict";r.d(t,{N:()=>f});var n=r(20296),i=r(14943),a=r(27716),s=r(93140),o=r(99863),u=r(8315),c=r(58321),l=r(64139),p="FunctionNode",f=(0,c.P9)(p,["math","Node","SymbolNode"],e=>{var{math:t,Node:r,SymbolNode:c}=e,f=e=>(0,a.GP)(e,{truncate:78});function d(e,t,r){for(var n,a="",s=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,o=0;null!==(n=s.exec(e));)if(a+=e.substring(o,n.index),o=n.index,"$$"===n[0])a+="$",o++;else{o+=n[0].length;var u=t[n[1]];if(!u)throw ReferenceError("Template: Property "+n[1]+" does not exist.");if(void 0===n[2])switch(typeof u){case"string":a+=u;break;case"object":if((0,i.Ll)(u))a+=u.toTex(r);else if(Array.isArray(u))a+=u.map(function(e,t){if((0,i.Ll)(e))return e.toTex(r);throw TypeError("Template: "+n[1]+"["+t+"] is not a Node.")}).join(",");else throw TypeError("Template: "+n[1]+" has to be a Node, String or array of Nodes");break;default:throw TypeError("Template: "+n[1]+" has to be a Node, String or array of Nodes")}else if((0,i.Ll)(u[n[2]]&&u[n[2]]))a+=u[n[2]].toTex(r);else throw TypeError("Template: "+n[1]+"["+n[2]+"] is not a Node.")}return a+e.slice(o)}class h extends r{constructor(e,t,r){if(super(),"string"==typeof e&&(e=new c(e)),!(0,i.Ll)(e))throw TypeError('Node expected as parameter "fn"');if(!Array.isArray(t)||!t.every(i.Ll))throw TypeError('Array containing Nodes expected for parameter "args"');var n=typeof r;if("undefined"!==n&&"boolean"!==n)throw TypeError("optional flag, if specified, must be boolean");this.fn=e,this.args=t||[],this.optional=!!r}get name(){return this.fn.name||""}get type(){return p}get isFunctionNode(){return!0}_compile(e,t){var r=this.args.map(r=>r._compile(e,t)),n=this.optional||(0,i.AS)(this.fn)&&this.fn.optionalChaining;if((0,i.li)(this.fn)){var a=this.fn.name;if(t[a]){var s=this.args;return function(t,i,c){var l=(0,o.HU)(i,a);if(!n||void 0!==l){if("function"!=typeof l)throw TypeError("Argument '".concat(a,"' was not a function; received: ").concat(f(l)));if(l.rawArgs)return l(s,e,(0,u.n)(t,i));var p=r.map(e=>e(t,i,c));return l.apply(l,p)}}}var c=a in e?(0,o.HU)(e,a):void 0,l="function"==typeof c&&!0===c.rawArgs,p=t=>{var r;if(t.has(a))r=t.get(a);else if(a in e)r=(0,o.HU)(e,a);else{if(!n)return h.onUndefinedFunction(a);r=void 0}if("function"==typeof r||n&&void 0===r)return r;throw TypeError("'".concat(a,"' is not a function; its value is:\n ").concat(f(r)))};if(l){var d=this.args;return function(t,n,i){var a=p(t);return!0===a.rawArgs?a(d,e,(0,u.n)(t,n)):a(...r.map(e=>e(t,n,i)))}}switch(r.length){case 0:return function(e,t,r){var i=p(e);if(!n||void 0!==i)return i()};case 1:return function(e,t,i){var a=p(e);if(!n||void 0!==a)return a((0,r[0])(e,t,i))};case 2:return function(e,t,i){var a=p(e);if(!n||void 0!==a){var s=r[0],o=r[1];return a(s(e,t,i),o(e,t,i))}};default:return function(e,t,i){var a=p(e);if(!n||void 0!==a)return a(...r.map(r=>r(e,t,i)))}}}if((0,i.AS)(this.fn)&&(0,i.$I)(this.fn.index)&&this.fn.index.isObjectProperty()){var m=this.fn.object._compile(e,t),g=this.fn.index.getObjectProperty(),v=this.args;return function(t,i,a){var s=m(t,i,a);if(!n||null!=s&&void 0!==s[g]){var c=(0,o.z_)(s,g);if(null!=c&&c.rawArgs)return c(v,e,(0,u.n)(t,i));var l=r.map(e=>e(t,i,a));return c.apply(s,l)}}}var y=this.fn.toString(),b=this.fn._compile(e,t),x=this.args;return function(t,i,a){var s=b(t,i,a);if(!n||void 0!==s){if("function"!=typeof s)throw TypeError("Expression '".concat(y,"' did not evaluate to a function; value is:")+"\n ".concat(f(s)));if(s.rawArgs)return s(x,e,(0,u.n)(t,i));var o=r.map(e=>e(t,i,a));return s.apply(s,o)}}}forEach(e){e(this.fn,"fn",this);for(var t=0;t<this.args.length;t++)e(this.args[t],"args["+t+"]",this)}map(e){for(var t=this._ifNode(e(this.fn,"fn",this)),r=[],n=0;n<this.args.length;n++)r[n]=this._ifNode(e(this.args[n],"args["+n+"]",this));return new h(t,r)}clone(){return new h(this.fn,this.args.slice(0))}toString(e){var t,r=this.fn.toString(e);return(e&&"object"==typeof e.handler&&(0,s.mQ)(e.handler,r)&&(t=e.handler[r](this,e)),void 0!==t)?t:super.toString(e)}_toString(e){var t=this.args.map(function(t){return t.toString(e)});return((0,i.m2)(this.fn)?"("+this.fn.toString(e)+")":this.fn.toString(e))+"("+t.join(", ")+")"}toJSON(){return{mathjs:p,fn:this.fn,args:this.args}}_toHTML(e){var t=this.args.map(function(t){return t.toHTML(e)});return'<span class="math-function">'+(0,a.ih)(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'}toTex(e){var t;return(e&&"object"==typeof e.handler&&(0,s.mQ)(e.handler,this.name)&&(t=e.handler[this.name](this,e)),void 0!==t)?t:super.toTex(e)}_toTex(e){var r,n,i=this.args.map(function(t){return t.toTex(e)});switch(l.WC[this.name]&&(r=l.WC[this.name]),t[this.name]&&("function"==typeof t[this.name].toTex||"object"==typeof t[this.name].toTex||"string"==typeof t[this.name].toTex)&&(r=t[this.name].toTex),typeof r){case"function":n=r(this,e);break;case"string":n=d(r,this,e);break;case"object":switch(typeof r[i.length]){case"function":n=r[i.length](this,e);break;case"string":n=d(r[i.length],this,e)}}return void 0!==n?n:d(l.oB,this,e)}getIdentifier(){return this.type+":"+this.name}}return(0,n.A)(h,"name",p),(0,n.A)(h,"onUndefinedFunction",function(e){throw Error("Undefined function "+e)}),(0,n.A)(h,"fromJSON",function(e){return new h(e.fn,e.args)}),h},{isClass:!0,isNode:!0})},55937(e,t,r){"use strict";r.d(t,{r:()=>l});var n=r(20296),i=r(35838),a=r(99863),s=r(58321),o=r(14943),u=r(27716),c="IndexNode",l=(0,s.P9)(c,["Node","size"],e=>{var{Node:t,size:r}=e;class s extends t{constructor(e,t){if(super(),this.dimensions=e,this.dotNotation=t||!1,!Array.isArray(e)||!e.every(o.Ll))throw TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw Error("dotNotation only applicable for object properties")}get type(){return c}get isIndexNode(){return!0}_compile(e,t){var n=(0,i.Tj)(this.dimensions,function(n,i){if(!(n.filter(e=>e.isSymbolNode&&"end"===e.name).length>0))return n._compile(e,t);var a=Object.create(t);a.end=!0;var s=n._compile(e,a);return function(e,t,n){if(!(0,o.OA)(n)&&!(0,o.cy)(n)&&!(0,o.Kg)(n))throw TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+(0,o.QP)(n));var a=r(n),u=Object.create(t);return u.end=a[i],s(e,u,n)}}),s=(0,a.HU)(e,"index");return function(e,t,r){return s(...(0,i.Tj)(n,function(n){return n(e,t,r)}))}}forEach(e){for(var t=0;t<this.dimensions.length;t++)e(this.dimensions[t],"dimensions["+t+"]",this)}map(e){for(var t=[],r=0;r<this.dimensions.length;r++)t[r]=this._ifNode(e(this.dimensions[r],"dimensions["+r+"]",this));return new s(t,this.dotNotation)}clone(){return new s(this.dimensions.slice(0),this.dotNotation)}isObjectProperty(){return 1===this.dimensions.length&&(0,o.BA)(this.dimensions[0])&&"string"==typeof this.dimensions[0].value}getObjectProperty(){return this.isObjectProperty()?this.dimensions[0].value:null}_toString(e){return this.dotNotation?"."+this.getObjectProperty():"["+this.dimensions.join(", ")+"]"}toJSON(){return{mathjs:c,dimensions:this.dimensions,dotNotation:this.dotNotation}}static fromJSON(e){return new s(e.dimensions,e.dotNotation)}_toHTML(e){for(var t=[],r=0;r<this.dimensions.length;r++)t[r]=this.dimensions[r].toHTML();return this.dotNotation?'<span class="math-operator math-accessor-operator">.</span><span class="math-symbol math-property">'+(0,u.ih)(this.getObjectProperty())+"</span>":'<span class="math-parenthesis math-square-parenthesis">[</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'}_toTex(e){var t=this.dimensions.map(function(t){return t.toTex(e)});return this.dotNotation?"."+this.getObjectProperty():"_{"+t.join(",")+"}"}}return(0,n.A)(s,"name",c),s},{isClass:!0,isNode:!0})},72613(e,t,r){"use strict";r.d(t,{R:()=>u});var n=r(14943),i=r(6534),a=r(93140),s=r(58321),o=r(9286),u=(0,s.P9)("Node",["mathWithTransform"],e=>{var{mathWithTransform:t}=e;return class{get type(){return"Node"}get isNode(){return!0}evaluate(e){return this.compile().evaluate(e)}compile(){var e=this._compile(t,{}),r={};return{evaluate:function(t){var n=(0,o.pI)(t);for(var a of[...i.R])if(n.has(a))throw Error('Scope contains an illegal symbol, "'+a+'" is a reserved keyword');return e(n,r,null)}}}_compile(e,t){throw Error("Method _compile must be implemented by type "+this.type)}forEach(e){throw Error("Cannot run forEach on a Node interface")}map(e){throw Error("Cannot run map on a Node interface")}_ifNode(e){if(!(0,n.Ll)(e))throw TypeError("Callback function must return a Node");return e}traverse(e){e(this,null,null),!function e(t,r){t.forEach(function(t,n,i){r(t,n,i),e(t,r)})}(this,e)}transform(e){return function t(r,n,i){var a=e(r,n,i);return a!==r?a:r.map(t)}(this,null,null)}filter(e){var t=[];return this.traverse(function(r,n,i){e(r,n,i)&&t.push(r)}),t}clone(){throw Error("Cannot clone a Node interface")}cloneDeep(){return this.map(function(e){return e.cloneDeep()})}equals(e){return!!e&&this.type===e.type&&(0,a.QO)(this,e)}toString(e){var t=this._getCustomString(e);return void 0!==t?t:this._toString(e)}_toString(){throw Error("_toString not implemented for "+this.type)}toJSON(){throw Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(e){var t=this._getCustomString(e);return void 0!==t?t:this._toHTML(e)}_toHTML(){throw Error("_toHTML not implemented for "+this.type)}toTex(e){var t=this._getCustomString(e);return void 0!==t?t:this._toTex(e)}_toTex(e){throw Error("_toTex not implemented for "+this.type)}_getCustomString(e){if(e&&"object"==typeof e)switch(typeof e.handler){case"object":case"undefined":return;case"function":return e.handler(this,e);default:throw TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}},{isClass:!0,isNode:!0})},55926(e,t,r){"use strict";r.d(t,{Q:()=>l});var n=r(20296),i=r(99863),a=r(58321),s=r(14943),o=r(93140),u=r(27716),c="ObjectNode",l=(0,a.P9)(c,["Node"],e=>{var{Node:t}=e;class r extends t{constructor(e){if(super(),this.properties=e||{},e&&("object"!=typeof e||!Object.keys(e).every(function(t){return(0,s.Ll)(e[t])})))throw TypeError("Object containing Nodes expected")}get type(){return c}get isObjectNode(){return!0}_compile(e,t){var r={};for(var n in this.properties)if((0,o.mQ)(this.properties,n)){var a=JSON.parse((0,u.As)(n)),s=(0,i.HU)(this.properties,n);r[a]=s._compile(e,t)}return function(e,t,n){var i={};for(var a in r)(0,o.mQ)(r,a)&&(i[a]=r[a](e,t,n));return i}}forEach(e){for(var t in this.properties)(0,o.mQ)(this.properties,t)&&e(this.properties[t],"properties["+(0,u.As)(t)+"]",this)}map(e){var t={};for(var n in this.properties)(0,o.mQ)(this.properties,n)&&(t[n]=this._ifNode(e(this.properties[n],"properties["+(0,u.As)(n)+"]",this)));return new r(t)}clone(){var e={};for(var t in this.properties)(0,o.mQ)(this.properties,t)&&(e[t]=this.properties[t]);return new r(e)}_toString(e){var t=[];for(var r in this.properties)(0,o.mQ)(this.properties,r)&&t.push((0,u.As)(r)+": "+this.properties[r].toString(e));return"{"+t.join(", ")+"}"}toJSON(){return{mathjs:c,properties:this.properties}}static fromJSON(e){return new r(e.properties)}_toHTML(e){var t=[];for(var r in this.properties)(0,o.mQ)(this.properties,r)&&t.push('<span class="math-symbol math-property">'+(0,u.ih)(r)+'</span><span class="math-operator math-assignment-operator math-property-assignment-operator math-binary-operator">:</span>'+this.properties[r].toHTML(e));return'<span class="math-parenthesis math-curly-parenthesis">{</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-curly-parenthesis">}</span>'}_toTex(e){var t=[];for(var r in this.properties)(0,o.mQ)(this.properties,r)&&t.push("\\mathbf{"+r+":} & "+this.properties[r].toTex(e)+"\\\\");return"\\left\\{\\begin{array}{ll}"+t.join("\n")+"\\end{array}\\right\\}"}}return(0,n.A)(r,"name",c),r},{isClass:!0,isNode:!0})},76917(e,t,r){"use strict";r.d(t,{r:()=>d});var n=r(20296),i=r(14943),a=r(35838),s=r(8315),o=r(27716),u=r(99863),c=r(60261),l=r(64139),p=r(58321),f="OperatorNode",d=(0,p.P9)(f,["Node"],e=>{var{Node:t}=e;function r(e,t,r,n,a){var s=(0,c.t$)(e,t,r),o=(0,c.dI)(e,t);if("all"===t||n.length>2&&"OperatorNode:add"!==e.getIdentifier()&&"OperatorNode:multiply"!==e.getIdentifier())return n.map(function(e){switch(e.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}});switch(n.length){case 0:u=[];break;case 1:var u,l,p,f=(0,c.t$)(n[0],t,r,e);if(a&&null!==f&&("keep"===t?(l=n[0].getIdentifier(),p=e.getIdentifier()):(l=n[0].getContent().getIdentifier(),p=e.getContent().getIdentifier()),!1===c.qo[s][p].latexLeftParens||!1===c.qo[f][l].latexParens)||null===f){u=[!1];break}if(f<=s){u=[!0];break}u=[!1];break;case 2:var d,h,m,g,v,y=(0,c.t$)(n[0],t,r,e),b=(0,c.U3)(e,n[0],t);d=null!==y&&(y===s&&"right"===o&&!b||y<s);var x=(0,c.t$)(n[1],t,r,e),D=(0,c.U3)(e,n[1],t);h=null!==x&&(x===s&&"left"===o&&!D||x<s),a&&("keep"===t?(m=e.getIdentifier(),g=e.args[0].getIdentifier(),v=e.args[1].getIdentifier()):(m=e.getContent().getIdentifier(),g=e.args[0].getContent().getIdentifier(),v=e.args[1].getContent().getIdentifier()),null!==y&&(!1===c.qo[s][m].latexLeftParens&&(d=!1),!1===c.qo[y][g].latexParens&&(d=!1)),null!==x&&(!1===c.qo[s][m].latexRightParens&&(h=!1),!1===c.qo[x][v].latexParens&&(h=!1))),u=[d,h];break;default:("OperatorNode:add"===e.getIdentifier()||"OperatorNode:multiply"===e.getIdentifier())&&(u=n.map(function(n){var i=(0,c.t$)(n,t,r,e),a=(0,c.U3)(e,n,t),u=(0,c.dI)(n,t);if(null===i);else if(s===i&&o===u&&!a)return!0;else if(i<s)return!0;return!1}))}if(n.length>=2&&"OperatorNode:multiply"===e.getIdentifier()&&e.implicit&&"all"!==t&&"hide"===r)for(var w=1;w<u.length;++w)!function e(t,r){var n=t;if("auto"===r)for(;(0,i.tv)(n);)n=n.content;return!!(0,i.BA)(n)||!!(0,i.$$)(n)&&e(n.args[0],r)}(n[w],t)||u[w-1]||"keep"===t&&(0,i.tv)(n[w-1])||(u[w]=!0);return u}class p extends t{constructor(e,t,r,n,a){if(super(),"string"!=typeof e)throw TypeError('string expected for parameter "op"');if("string"!=typeof t)throw TypeError('string expected for parameter "fn"');if(!Array.isArray(r)||!r.every(i.Ll))throw TypeError('Array containing Nodes expected for parameter "args"');this.implicit=!0===n,this.isPercentage=!0===a,this.op=e,this.fn=t,this.args=r||[]}get type(){return f}get isOperatorNode(){return!0}_compile(e,t){if("string"!=typeof this.fn||!(0,u.Tn)(e,this.fn))if(e[this.fn])throw Error('No access to function "'+this.fn+'"');else throw Error("Function "+this.fn+' missing in provided namespace "math"');var r=(0,u.HU)(e,this.fn),n=(0,a.Tj)(this.args,function(r){return r._compile(e,t)});if("function"==typeof r&&!0===r.rawArgs){var i=this.args;return function(t,n,a){return r(i,e,(0,s.n)(t,n))}}if(1===n.length){var o=n[0];return function(e,t,n){return r(o(e,t,n))}}if(2!==n.length)return function(e,t,i){return r.apply(null,(0,a.Tj)(n,function(r){return r(e,t,i)}))};var c=n[0],l=n[1];return function(e,t,n){return r(c(e,t,n),l(e,t,n))}}forEach(e){for(var t=0;t<this.args.length;t++)e(this.args[t],"args["+t+"]",this)}map(e){for(var t=[],r=0;r<this.args.length;r++)t[r]=this._ifNode(e(this.args[r],"args["+r+"]",this));return new p(this.op,this.fn,t,this.implicit,this.isPercentage)}clone(){return new p(this.op,this.fn,this.args.slice(0),this.implicit,this.isPercentage)}isUnary(){return 1===this.args.length}isBinary(){return 2===this.args.length}_toString(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",i=this.args,a=r(this,t,n,i,!1);if(1===i.length){var s=(0,c.dI)(this,t),o=i[0].toString(e);a[0]&&(o="("+o+")");var u=/[a-zA-Z]+/.test(this.op);return"right"===s?this.op+(u?" ":"")+o:"left"===s?o+(u?" ":"")+this.op:o+this.op}if(2===i.length){var l=i[0].toString(e),p=i[1].toString(e);return(a[0]&&(l="("+l+")"),a[1]&&(p="("+p+")"),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n)?l+" "+p:l+" "+this.op+" "+p}if(!(i.length>2)||"OperatorNode:add"!==this.getIdentifier()&&"OperatorNode:multiply"!==this.getIdentifier())return this.fn+"("+this.args.join(", ")+")";var f=i.map(function(t,r){return t=t.toString(e),a[r]&&(t="("+t+")"),t});return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?f.join(" "):f.join(" "+this.op+" ")}toJSON(){return{mathjs:f,op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}}static fromJSON(e){return new p(e.op,e.fn,e.args,e.implicit,e.isPercentage)}_toHTML(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",i=this.args,a=r(this,t,n,i,!1);if(1===i.length){var s=(0,c.dI)(this,t),u=i[0].toHTML(e);return(a[0]&&(u='<span class="math-parenthesis math-round-parenthesis">(</span>'+u+'<span class="math-parenthesis math-round-parenthesis">)</span>'),"right"===s)?'<span class="math-operator math-unary-operator math-lefthand-unary-operator">'+(0,o.ih)(this.op)+"</span>"+u:u+'<span class="math-operator math-unary-operator math-righthand-unary-operator">'+(0,o.ih)(this.op)+"</span>"}if(2===i.length){var l=i[0].toHTML(e),p=i[1].toHTML(e);return(a[0]&&(l='<span class="math-parenthesis math-round-parenthesis">(</span>'+l+'<span class="math-parenthesis math-round-parenthesis">)</span>'),a[1]&&(p='<span class="math-parenthesis math-round-parenthesis">(</span>'+p+'<span class="math-parenthesis math-round-parenthesis">)</span>'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n)?l+'<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'+p:l+'<span class="math-operator math-binary-operator math-explicit-binary-operator">'+(0,o.ih)(this.op)+"</span>"+p}var f=i.map(function(t,r){return t=t.toHTML(e),a[r]&&(t='<span class="math-parenthesis math-round-parenthesis">(</span>'+t+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t});return i.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?f.join('<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'):f.join('<span class="math-operator math-binary-operator math-explicit-binary-operator">'+(0,o.ih)(this.op)+"</span>"):'<span class="math-function">'+(0,o.ih)(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+f.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'}_toTex(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",i=this.args,a=r(this,t,n,i,!0),s=l.GK[this.fn];if(s=void 0===s?this.op:s,1===i.length){var o=(0,c.dI)(this,t),u=i[0].toTex(e);return(a[0]&&(u="\\left(".concat(u,"\\right)")),"right"===o)?s+u:u+s}if(2===i.length){var p,f=i[0],d=f.toTex(e);a[0]&&(d="\\left(".concat(d,"\\right)"));var h=i[1].toTex(e);switch(a[1]&&(h="\\left(".concat(h,"\\right)")),p="keep"===t?f.getIdentifier():f.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return s+"{"+d+"}{"+h+"}";case"OperatorNode:pow":switch(d="{"+d+"}",h="{"+h+"}",p){case"ConditionalNode":case"OperatorNode:divide":d="\\left(".concat(d,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===n)return d+"~"+h}return d+s+h}if(!(i.length>2)||"OperatorNode:add"!==this.getIdentifier()&&"OperatorNode:multiply"!==this.getIdentifier())return"\\mathrm{"+this.fn+"}\\left("+i.map(function(t){return t.toTex(e)}).join(",")+"\\right)";var m=i.map(function(t,r){return t=t.toTex(e),a[r]&&(t="\\left(".concat(t,"\\right)")),t});return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit&&"hide"===n?m.join("~"):m.join(s)}getIdentifier(){return this.type+":"+this.fn}}return(0,n.A)(p,"name",f),p},{isClass:!0,isNode:!0})},99973(e,t,r){"use strict";r.d(t,{n:()=>o});var n=r(20296),i=r(14943),a=r(58321),s="ParenthesisNode",o=(0,a.P9)(s,["Node"],e=>{var{Node:t}=e;class r extends t{constructor(e){if(super(),!(0,i.Ll)(e))throw TypeError('Node expected for parameter "content"');this.content=e}get type(){return s}get isParenthesisNode(){return!0}_compile(e,t){return this.content._compile(e,t)}getContent(){return this.content.getContent()}forEach(e){e(this.content,"content",this)}map(e){return new r(e(this.content,"content",this))}clone(){return new r(this.content)}_toString(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"("+this.content.toString(e)+")":this.content.toString(e)}toJSON(){return{mathjs:s,content:this.content}}static fromJSON(e){return new r(e.content)}_toHTML(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?'<span class="math-parenthesis math-round-parenthesis">(</span>'+this.content.toHTML(e)+'<span class="math-parenthesis math-round-parenthesis">)</span>':this.content.toHTML(e)}_toTex(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"\\left(".concat(this.content.toTex(e),"\\right)"):this.content.toTex(e)}}return(0,n.A)(r,"name",s),r},{isClass:!0,isNode:!0})},52808(e,t,r){"use strict";r.d(t,{u:()=>u});var n=r(20296),i=r(14943),a=r(58321),s=r(60261),o="RangeNode",u=(0,a.P9)(o,["Node"],e=>{var{Node:t}=e;function r(e,t,r){var n=(0,s.t$)(e,t,r),i={},a=(0,s.t$)(e.start,t,r);if(i.start=null!==a&&a<=n||"all"===t,e.step){var o=(0,s.t$)(e.step,t,r);i.step=null!==o&&o<=n||"all"===t}var u=(0,s.t$)(e.end,t,r);return i.end=null!==u&&u<=n||"all"===t,i}class a extends t{constructor(e,t,r){if(super(),!(0,i.Ll)(e)||!(0,i.Ll)(t)||r&&!(0,i.Ll)(r))throw TypeError("Node expected");if(arguments.length>3)throw Error("Too many arguments");this.start=e,this.end=t,this.step=r||null}get type(){return o}get isRangeNode(){return!0}needsEnd(){return this.filter(function(e){return(0,i.li)(e)&&"end"===e.name}).length>0}_compile(e,t){var r=e.range,n=this.start._compile(e,t),i=this.end._compile(e,t);if(!this.step)return function(e,t,a){return r(n(e,t,a),i(e,t,a))};var a=this.step._compile(e,t);return function(e,t,s){return r(n(e,t,s),i(e,t,s),a(e,t,s))}}forEach(e){e(this.start,"start",this),e(this.end,"end",this),this.step&&e(this.step,"step",this)}map(e){return new a(this._ifNode(e(this.start,"start",this)),this._ifNode(e(this.end,"end",this)),this.step&&this._ifNode(e(this.step,"step",this)))}clone(){return new a(this.start,this.end,this.step&&this.step)}_toString(e){var t,n=r(this,e&&e.parenthesis?e.parenthesis:"keep",e&&e.implicit),i=this.start.toString(e);if(n.start&&(i="("+i+")"),t=i,this.step){var a=this.step.toString(e);n.step&&(a="("+a+")"),t+=":"+a}var s=this.end.toString(e);return n.end&&(s="("+s+")"),t+=":"+s}toJSON(){return{mathjs:o,start:this.start,end:this.end,step:this.step}}static fromJSON(e){return new a(e.start,e.end,e.step)}_toHTML(e){var t,n=r(this,e&&e.parenthesis?e.parenthesis:"keep",e&&e.implicit),i=this.start.toHTML(e);if(n.start&&(i='<span class="math-parenthesis math-round-parenthesis">(</span>'+i+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t=i,this.step){var a=this.step.toHTML(e);n.step&&(a='<span class="math-parenthesis math-round-parenthesis">(</span>'+a+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+='<span class="math-operator math-range-operator">:</span>'+a}var s=this.end.toHTML(e);return n.end&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+='<span class="math-operator math-range-operator">:</span>'+s}_toTex(e){var t=r(this,e&&e.parenthesis?e.parenthesis:"keep",e&&e.implicit),n=this.start.toTex(e);if(t.start&&(n="\\left(".concat(n,"\\right)")),this.step){var i=this.step.toTex(e);t.step&&(i="\\left(".concat(i,"\\right)")),n+=":"+i}var a=this.end.toTex(e);return t.end&&(a="\\left(".concat(a,"\\right)")),n+=":"+a}}return(0,n.A)(a,"name",o),a},{isClass:!0,isNode:!0})},50088(e,t,r){"use strict";r.d(t,{G:()=>l});var n=r(20296),i=r(60261),a=r(27716),s=r(99863),o=r(64139),u=r(58321),c="RelationalNode",l=(0,u.P9)(c,["Node"],e=>{var{Node:t}=e,r={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="};class u extends t{constructor(e,t){if(super(),!Array.isArray(e))throw TypeError("Parameter conditionals must be an array");if(!Array.isArray(t))throw TypeError("Parameter params must be an array");if(e.length!==t.length-1)throw TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=e,this.params=t}get type(){return c}get isRelationalNode(){return!0}_compile(e,t){var r=this,n=this.params.map(r=>r._compile(e,t));return function(t,i,a){for(var o,u=n[0](t,i,a),c=0;c<r.conditionals.length;c++)if(o=u,u=n[c+1](t,i,a),!(0,s.HU)(e,r.conditionals[c])(o,u))return!1;return!0}}forEach(e){this.params.forEach((t,r)=>e(t,"params["+r+"]",this),this)}map(e){return new u(this.conditionals.slice(),this.params.map((t,r)=>this._ifNode(e(t,"params["+r+"]",this)),this))}clone(){return new u(this.conditionals,this.params)}_toString(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=(0,i.t$)(this,t,e&&e.implicit),a=this.params.map(function(r,a){var s=(0,i.t$)(r,t,e&&e.implicit);return"all"===t||null!==s&&s<=n?"("+r.toString(e)+")":r.toString(e)}),s=a[0],o=0;o<this.conditionals.length;o++)s+=" "+r[this.conditionals[o]],s+=" "+a[o+1];return s}toJSON(){return{mathjs:c,conditionals:this.conditionals,params:this.params}}static fromJSON(e){return new u(e.conditionals,e.params)}_toHTML(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=(0,i.t$)(this,t,e&&e.implicit),s=this.params.map(function(r,a){var s=(0,i.t$)(r,t,e&&e.implicit);return"all"===t||null!==s&&s<=n?'<span class="math-parenthesis math-round-parenthesis">(</span>'+r.toHTML(e)+'<span class="math-parenthesis math-round-parenthesis">)</span>':r.toHTML(e)}),o=s[0],u=0;u<this.conditionals.length;u++)o+='<span class="math-operator math-binary-operator math-explicit-binary-operator">'+(0,a.ih)(r[this.conditionals[u]])+"</span>"+s[u+1];return o}_toTex(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",r=(0,i.t$)(this,t,e&&e.implicit),n=this.params.map(function(n,a){var s=(0,i.t$)(n,t,e&&e.implicit);return"all"===t||null!==s&&s<=r?"\\left("+n.toTex(e)+"\right)":n.toTex(e)}),a=n[0],s=0;s<this.conditionals.length;s++)a+=o.GK[this.conditionals[s]]+n[s+1];return a}}return(0,n.A)(u,"name",c),u},{isClass:!0,isNode:!0})},245(e,t,r){"use strict";r.d(t,{F:()=>o});var n=r(27716),i=r(99863),a=r(58321),s=r(64139),o=(0,a.P9)("SymbolNode",["math","?Unit","Node"],e=>{var{math:t,Unit:r,Node:a}=e;function o(e){return!!r&&r.isValuelessUnit(e)}class u extends a{constructor(e){if(super(),"string"!=typeof e)throw TypeError('String expected for parameter "name"');this.name=e}get type(){return"SymbolNode"}get isSymbolNode(){return!0}_compile(e,t){var n=this.name;if(!0===t[n])return function(e,t,r){return(0,i.HU)(t,n)};if(n in e)return function(t,r,a){return t.has(n)?t.get(n):(0,i.HU)(e,n)};var a=o(n);return function(e,t,i){return e.has(n)?e.get(n):a?new r(null,n):u.onUndefinedSymbol(n)}}forEach(e){}map(e){return this.clone()}static onUndefinedSymbol(e){throw Error("Undefined symbol "+e)}clone(){return new u(this.name)}_toString(e){return this.name}_toHTML(e){var t=(0,n.ih)(this.name);if("true"===t||"false"===t)return'<span class="math-symbol math-boolean">'+t+"</span>";if("i"===t)return'<span class="math-symbol math-imaginary-symbol">'+t+"</span>";if("Infinity"===t)return'<span class="math-symbol math-infinity-symbol">'+t+"</span>";if("NaN"===t)return'<span class="math-symbol math-nan-symbol">'+t+"</span>";if("null"===t)return'<span class="math-symbol math-null-symbol">'+t+"</span>";else if("undefined"===t)return'<span class="math-symbol math-undefined-symbol">'+t+"</span>";return'<span class="math-symbol">'+t+"</span>"}toJSON(){return{mathjs:"SymbolNode",name:this.name}}static fromJSON(e){return new u(e.name)}_toTex(e){var r=!1;void 0===t[this.name]&&o(this.name)&&(r=!0);var n=(0,s.QP)(this.name,r);return"\\"===n[0]?n:" "+n}}return u},{isClass:!0,isNode:!0})},47985(e,t,r){"use strict";r.d(t,{T:()=>a});var n=r(79943),i=r(99863);function a(e){var{subset:t}=e;return function(e,r){try{if(Array.isArray(e))return t(e,r);if(e&&"function"==typeof e.subset)return e.subset(r);if("string"==typeof e)return t(e,r);else if("object"==typeof e){if(!r.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return(0,i.HU)(e,r.getObjectProperty())}else throw TypeError("Cannot apply index: unsupported type of object")}catch(e){throw(0,n.D)(e)}}}},60261(e,t,r){"use strict";r.d(t,{F5:()=>l,U3:()=>c,dI:()=>u,qo:()=>a,t$:()=>o});var n=r(93140),i=r(14943),a=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{op:"or",associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{op:"xor",associativity:"left",associativeWith:[]}},{"OperatorNode:and":{op:"and",associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{op:"|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{op:"^|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{op:"&",associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{op:"==",associativity:"left",associativeWith:[]},"OperatorNode:unequal":{op:"!=",associativity:"left",associativeWith:[]},"OperatorNode:smaller":{op:"<",associativity:"left",associativeWith:[]},"OperatorNode:larger":{op:">",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:nullish":{op:"??",associativity:"left",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function s(e,t){if(!t||"auto"!==t)return e;for(var r=e;(0,i.tv)(r);)r=r.content;return r}function o(e,t,r,n){var o=e;"keep"!==t&&(o=e.getContent());for(var u=o.getIdentifier(),c=null,l=0;l<a.length;l++)if(u in a[l]){c=l;break}if("OperatorNode:multiply"===u&&o.implicit&&"show"!==r){var p=s(o.args[0],t);(0,i.BA)(p)&&n&&"OperatorNode:divide"===n.getIdentifier()&&(0,i.jW)(s(n.args[0],t))||"OperatorNode:divide"===p.getIdentifier()&&(0,i.jW)(s(p.args[0],t))&&(0,i.BA)(s(p.args[1]))||(c+=1)}return c}function u(e,t){var r=e;"keep"!==t&&(r=e.getContent());var i=r.getIdentifier(),s=o(r,t);if(null===s)return null;var u=a[s][i];if((0,n.mQ)(u,"associativity")){if("left"===u.associativity)return"left";if("right"===u.associativity)return"right";throw Error("'"+i+"' has the invalid associativity '"+u.associativity+"'.")}return null}function c(e,t,r){var i="keep"!==r?e.getContent():e,s="keep"!==r?e.getContent():t,u=i.getIdentifier(),c=s.getIdentifier(),l=o(i,r);if(null===l)return null;var p=a[l][u];if((0,n.mQ)(p,"associativeWith")&&p.associativeWith instanceof Array){for(var f=0;f<p.associativeWith.length;f++)if(p.associativeWith[f]===c)return!0;return!1}return null}function l(e){var t="OperatorNode:"+e;for(var r of a)if(t in r)return r[t].op;return null}},37827(e,t,r){"use strict";r.d(t,{U:()=>l});var n=r(71333),i=r(58321),a=r(14943),s=r(76355),o=r(51106),u=r(93140),c="parse",l=(0,i.P9)(c,["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],e=>{var{typed:t,numeric:r,config:i,AccessorNode:l,ArrayNode:p,AssignmentNode:f,BlockNode:d,ConditionalNode:h,ConstantNode:m,FunctionAssignmentNode:g,FunctionNode:v,IndexNode:y,ObjectNode:b,OperatorNode:x,ParenthesisNode:D,RangeNode:w,RelationalNode:N,SymbolNode:A}=e,E=t(c,{string:function(e){return j(e,{})},"Array | Matrix":function(e){return S(e,{})},"string, Object":function(e,t){return j(e,void 0!==t.nodes?t.nodes:{})},"Array | Matrix, Object":S});function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0!==t.nodes?t.nodes:{};return(0,s.Bl)(e,function(e){if("string"!=typeof e)throw TypeError("String expected");return j(e,r)})}var C={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"?.":!0,"??":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},M={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},T={true:!0,false:!1,null:null,undefined},O=["NaN","Infinity"],F={'"':'"',"'":"'","\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function _(e,t){return e.expression.substr(e.index,t)}function B(e){return _(e,1)}function P(e){e.index++}function k(e){return e.expression.charAt(e.index-1)}function q(e){return e.expression.charAt(e.index+1)}function I(e){for(e.tokenType=0,e.token="",e.comment="";;){if("#"===B(e))for(;"\n"!==B(e)&&""!==B(e);)e.comment+=B(e),P(e);if(E.isWhitespace(B(e),e.nestingLevel))P(e);else break}if(""===B(e)){e.tokenType=1;return}if("\n"===B(e)&&!e.nestingLevel){e.tokenType=1,e.token=B(e),P(e);return}var t=B(e),r=_(e,2),n=_(e,3);if(3===n.length&&C[n]){e.tokenType=1,e.token=n,P(e),P(e),P(e);return}if(2===r.length&&C[r]&&("?."!==r||!E.isDigit(e.expression.charAt(e.index+2)))){e.tokenType=1,e.token=r,P(e),P(e);return}if(C[t]){e.tokenType=1,e.token=t,P(e);return}if(E.isDigitDot(t)){e.tokenType=2;var i=_(e,2);if("0b"===i||"0o"===i||"0x"===i){for(e.token+=B(e),P(e),e.token+=B(e),P(e);E.isAlpha(B(e),k(e),q(e))||E.isDigit(B(e));)e.token+=B(e),P(e);if("."===B(e))for(e.token+=".",P(e);E.isAlpha(B(e),k(e),q(e))||E.isDigit(B(e));)e.token+=B(e),P(e);else if("i"===B(e))for(e.token+="i",P(e);E.isDigit(B(e));)e.token+=B(e),P(e);return}if("."===B(e)){if(e.token+=B(e),P(e),!E.isDigit(B(e))){e.tokenType=1;return}}else{for(;E.isDigit(B(e));)e.token+=B(e),P(e);E.isDecimalMark(B(e),q(e))&&(e.token+=B(e),P(e))}for(;E.isDigit(B(e));)e.token+=B(e),P(e);if("E"===B(e)||"e"===B(e)){if(E.isDigit(q(e))||"-"===q(e)||"+"===q(e)){if(e.token+=B(e),P(e),("+"===B(e)||"-"===B(e))&&(e.token+=B(e),P(e)),!E.isDigit(B(e)))throw ec(e,'Digit expected, got "'+B(e)+'"');for(;E.isDigit(B(e));)e.token+=B(e),P(e);if(E.isDecimalMark(B(e),q(e)))throw ec(e,'Digit expected, got "'+B(e)+'"')}else if(E.isDecimalMark(q(e),e.expression.charAt(e.index+2)))throw P(e),ec(e,'Digit expected, got "'+B(e)+'"')}return}if(E.isAlpha(B(e),k(e),q(e))){for(;E.isAlpha(B(e),k(e),q(e))||E.isDigit(B(e));)e.token+=B(e),P(e);(0,u.mQ)(M,e.token)?e.tokenType=1:e.tokenType=3;return}for(e.tokenType=4;""!==B(e);)e.token+=B(e),P(e);throw ec(e,'Syntax error in part "'+e.token+'"')}function R(e){do I(e);while("\n"===e.token)}function z(e){e.nestingLevel++}function L(e){e.nestingLevel--}function j(e,t){var r={extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:0,nestingLevel:0,conditionalLevel:null};(0,n.A)(r,{expression:e,extraNodes:t}),I(r);var i=function(e){var t,r,n=[];for(""!==e.token&&"\n"!==e.token&&";"!==e.token&&(t=U(e),e.comment&&(t.comment=e.comment));"\n"===e.token||";"===e.token;)0===n.length&&t&&(r=";"!==e.token,n.push({node:t,visible:r})),I(e),"\n"!==e.token&&";"!==e.token&&""!==e.token&&(t=U(e),e.comment&&(t.comment=e.comment),r=";"!==e.token,n.push({node:t,visible:r}));return n.length>0?new d(n):(!t&&(t=new m(void 0),e.comment&&(t.comment=e.comment)),t)}(r);if(""!==r.token)if(1===r.tokenType)throw el(r,"Unexpected operator "+r.token);else throw ec(r,'Unexpected part "'+r.token+'"');return i}function U(e){var t,r,n,i,s=function(e){for(var t=function(e){for(var t=$(e);"or"===e.token;)R(e),t=new x("or","or",[t,$(e)]);return t}(e);"?"===e.token;){var r=e.conditionalLevel;e.conditionalLevel=e.nestingLevel,R(e);var n=t,i=U(e);if(":"!==e.token)throw ec(e,"False part of conditional expression expected");e.conditionalLevel=null,R(e),t=new h(n,i,U(e)),e.conditionalLevel=r}return t}(e);if("="===e.token){if((0,a.li)(s))return t=s.name,R(e),n=U(e),new f(new A(t),n);if((0,a.AS)(s)){if(s.optionalChaining)throw ec(e,"Cannot assign to optional chain");return R(e),n=U(e),new f(s.object,s.index,n)}if((0,a.Px)(s)&&(0,a.li)(s.fn)&&(i=!0,r=[],t=s.name,s.args.forEach(function(e,t){(0,a.li)(e)?r[t]=e.name:i=!1}),i))return R(e),new g(t,r,n=U(e));throw ec(e,"Invalid left hand side of assignment operator =")}return s}function $(e){for(var t=H(e);"xor"===e.token;)R(e),t=new x("xor","xor",[t,H(e)]);return t}function H(e){for(var t=G(e);"and"===e.token;)R(e),t=new x("and","and",[t,G(e)]);return t}function G(e){for(var t=Q(e);"|"===e.token;)R(e),t=new x("|","bitOr",[t,Q(e)]);return t}function Q(e){for(var t=V(e);"^|"===e.token;)R(e),t=new x("^|","bitXor",[t,V(e)]);return t}function V(e){for(var t=Z(e);"&"===e.token;)R(e),t=new x("&","bitAnd",[t,Z(e)]);return t}function Z(e){for(var t=[W(e)],r=[],n={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};(0,u.mQ)(n,e.token);){var i={name:e.token,fn:n[e.token]};r.push(i),R(e),t.push(W(e))}return 1===t.length?t[0]:2===t.length?new x(r[0].name,r[0].fn,t):new N(r.map(e=>e.fn),t)}function W(e){for(var t,r,n=Y(e),i={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};(0,u.mQ)(i,e.token);)r=i[t=e.token],R(e),n=new x(t,r,[n,Y(e)]);return n}function Y(e){for(var t,r,n=J(e),i={to:"to",in:"to"};(0,u.mQ)(i,e.token);)r=i[t=e.token],R(e),n="in"===t&&"])},;".includes(e.token)?new x("*","multiply",[n,new A("in")],!0):new x(t,r,[n,J(e)]);return n}function J(e){var t,r=[];if(t=":"===e.token?new m(1):K(e),":"===e.token&&e.conditionalLevel!==e.nestingLevel){for(r.push(t);":"===e.token&&r.length<3;)R(e),")"===e.token||"]"===e.token||","===e.token||""===e.token?r.push(new A("end")):r.push(K(e));t=3===r.length?new w(r[0],r[2],r[1]):new w(r[0],r[1])}return t}function K(e){for(var t,r,n,i=X(e),a={"+":"add","-":"subtract"};(0,u.mQ)(a,e.token);){r=a[t=e.token],R(e);var s=X(e);n=s.isPercentage?[i,new x("*","multiply",[i,s])]:[i,s],i=new x(t,r,n)}return i}function X(e){for(var t,r,n,i=t=ee(e),a={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide","%":"mod",mod:"mod"};;)if((0,u.mQ)(a,e.token))n=a[r=e.token],R(e),t=new x(r,n,[t,ee(e)]);else break;return t}function ee(e){var t,r;for(r=t=et(e);;)if(3===e.tokenType||"in"===e.token&&(0,a.BA)(t)||"in"===e.token&&(0,a.$$)(t)&&"unaryMinus"===t.fn&&(0,a.BA)(t.args[0])||2===e.tokenType&&!(0,a.BA)(r)&&(!(0,a.$$)(r)||"!"===r.op)||"("===e.token)t=new x("*","multiply",[t,r=et(e)],!0);else break;return t}function et(e){for(var t=er(e),r=t,i=[];;)if("/"===e.token&&(0,a.jW)(r))if(i.push((0,n.A)({},e)),R(e),2===e.tokenType)if(i.push((0,n.A)({},e)),R(e),3===e.tokenType||"("===e.token||"in"===e.token)(0,n.A)(e,i.pop()),i.pop(),t=new x("/","divide",[t,r=er(e)]);else{i.pop(),(0,n.A)(e,i.pop());break}else{(0,n.A)(e,i.pop());break}else break;return t}function er(e){var t=en(e);if("%"===e.token){var r=(0,n.A)({},e);R(e);try{en(e),(0,n.A)(e,r)}catch(e){t=new x("/","divide",[t,new m(100)],!1,!0)}}return t}function en(e){var t,r,n,i,a,s={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return(0,u.mQ)(s,e.token)?(a=s[e.token],i=e.token,R(e),new x(i,a,[en(e)])):(r=function(e){for(var t=ei(e);"??"===e.token;)R(e),t=new x("??","nullish",[t,ei(e)]);return t}(t=e),("^"===t.token||".^"===t.token)&&(n=t.token,R(t),r=new x(n,"^"===n?"pow":"dotPow",[r,en(t)])),r)}function ei(e){for(var t,n,a=function(e){var t,n,a,s,c,l=[];if(3===e.tokenType&&(0,u.mQ)(e.extraNodes,e.token)){var f=e.extraNodes[e.token];if(I(e),"("===e.token){if(l=[],z(e),I(e),")"!==e.token)for(l.push(U(e));","===e.token;)I(e),l.push(U(e));if(")"!==e.token)throw ec(e,"Parenthesis ) expected");L(e),I(e)}return new f(l)}return 3===(t=e).tokenType||1===t.tokenType&&t.token in M?(a=t.token,I(t),ea(t,(0,u.mQ)(T,a)?new m(T[a]):O.includes(a)?new m(r(a,"number")):new A(a))):'"'===(s=t).token||"'"===s.token?(c=new m(es(s,s.token)),c=ea(s,c)):function(e){if("["===e.token){if(z(e),I(e),"]"!==e.token){var t=eo(e);if(";"===e.token){for(c=1,u=[t];";"===e.token;)I(e),"]"!==e.token&&(u[c]=eo(e),c++);if("]"!==e.token)throw ec(e,"End of matrix ] expected");L(e),I(e),l=u[0].items.length;for(var n=1;n<c;n++)if(u[n].items.length!==l)throw el(e,"Column dimensions mismatch ("+u[n].items.length+" !== "+l+")");s=new p(u)}else{if("]"!==e.token)throw ec(e,"End of matrix ] expected");L(e),I(e),s=t}}else L(e),I(e),s=new p([]);return ea(e,s)}var a=e;if("{"===a.token){z(a);var s,u,c,l,f,d={};do if(I(a),"}"!==a.token){if('"'===a.token||"'"===a.token)f=es(a,a.token);else if(3===a.tokenType||1===a.tokenType&&a.token in M)f=a.token,I(a);else throw ec(a,"Symbol or string expected as object key");if(":"!==a.token)throw ec(a,"Colon : expected after object key");I(a),d[f]=U(a)}while(","===a.token);if("}"!==a.token)throw ec(a,"Comma , or bracket } expected after object value");L(a),I(a);var h=new b(d);return ea(a,h)}return function(e){if(2===e.tokenType){t=e.token,I(e);var t,n,a=(0,o.BC)(t,i);return new m(r(t,a))}var s=e;if("("===s.token){if(z(s),I(s),n=U(s),")"!==s.token)throw ec(s,"Parenthesis ) expected");return L(s),I(s),n=ea(s,n=new D(n))}var u=s;if(""===u.token)throw ec(u,"Unexpected end of expression");throw ec(u,"Value expected")}(a)}(s)}(e),s={"!":"factorial","'":"ctranspose"};(0,u.mQ)(s,e.token);)n=s[t=e.token],I(e),a=ea(e,a=new x(t,n,[a]));return a}function ea(e,t,r){for(var n;;){var i=!1;"?."===e.token&&(i=!0,I(e));var s=("("===e.token||"["===e.token||"."===e.token)&&(!r||r.includes(e.token));if(!(i||s))break;if(n=[],"("===e.token)if(i||(0,a.li)(t)||(0,a.AS)(t)){if(z(e),I(e),")"!==e.token)for(n.push(U(e));","===e.token;)I(e),n.push(U(e));if(")"!==e.token)throw ec(e,"Parenthesis ) expected");L(e),I(e),t=new v(t,n,i)}else break;else if("["===e.token){if(z(e),I(e),"]"!==e.token)for(n.push(U(e));","===e.token;)I(e),n.push(U(e));if("]"!==e.token)throw ec(e,"Parenthesis ] expected");L(e),I(e),t=new l(t,new y(n),i)}else{if(i||I(e),!(3===e.tokenType||1===e.tokenType&&e.token in M)){var o="Property name expected after ";throw ec(e,o+=i?"optional chain":"dot")}n.push(new m(e.token)),I(e),t=new l(t,new y(n,!0),i)}}return t}function es(e,t){for(var r="";""!==B(e)&&B(e)!==t;)if("\\"===B(e)){P(e);var n=B(e),i=F[n];if(void 0!==i)r+=i,e.index+=1;else if("u"===n){var a=e.expression.slice(e.index+1,e.index+5);if(/^[0-9A-Fa-f]{4}$/.test(a))r+=String.fromCharCode(parseInt(a,16)),e.index+=5;else throw ec(e,"Invalid unicode character \\u".concat(a))}else throw ec(e,"Bad escape character \\".concat(n))}else r+=B(e),P(e);if(I(e),e.token!==t)throw ec(e,"End of string ".concat(t," expected"));return I(e),r}function eo(e){for(var t=[U(e)],r=1;","===e.token;)I(e),"]"!==e.token&&";"!==e.token&&(t[r]=U(e),r++);return new p(t)}function eu(e){return e.index-e.token.length+1}function ec(e,t){var r=eu(e),n=SyntaxError(t+" (char "+r+")");return n.char=r,n}function el(e,t){var r=eu(e),n=SyntaxError(t+" (char "+r+")");return n.char=r,n}return E.isAlpha=function(e,t,r){return E.isValidLatinOrGreek(e)||E.isValidMathSymbol(e,r)||E.isValidMathSymbol(t,e)},E.isValidLatinOrGreek=function(e){return/^[a-zA-Z_$\u00C0-\u02AF\u0370-\u03FF\u2100-\u214F]$/.test(e)},E.isValidMathSymbol=function(e,t){return/^[\uD835]$/.test(e)&&/^[\uDC00-\uDFFF]$/.test(t)&&/^[^\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDFCC\uDFCD]$/.test(t)},E.isWhitespace=function(e,t){return" "===e||" "===e||"\xa0"===e||"\n"===e&&t>0},E.isDecimalMark=function(e,t){return"."===e&&"/"!==t&&"*"!==t&&"^"!==t},E.isDigitDot=function(e){return e>="0"&&e<="9"||"."===e},E.isDigit=function(e){return e>="0"&&e<="9"},t.addConversion({from:"string",to:"Node",convert:E}),E})},47492(e,t,r){"use strict";r.d(t,{i:()=>s});var n=r(95495),i=r(58321),a=r(14943),s=(0,i.P9)("and",["typed","matrix","zeros","add","equalScalar","not","concat"],e=>{var{typed:t,matrix:r,equalScalar:i,zeros:s,not:o,concat:u}=e,c=(0,n.i)({typed:t,matrix:r,equalScalar:i,zeros:s,not:o,concat:u});function l(e,t,r){var n=e[0].compile().evaluate(r);return(!!(0,a.P3)(n)||!!c(n,!0))&&c(n,e[1].compile().evaluate(r))}return l.rawArgs=!0,l},{isTransformFunction:!0})},13277(e,t,r){"use strict";r.d(t,{H:()=>s});var n=r(34172),i=r(58321),a=r(14943),s=(0,i.P9)("bitAnd",["typed","matrix","zeros","add","equalScalar","not","concat"],e=>{var{typed:t,matrix:r,equalScalar:i,zeros:s,not:o,concat:u}=e,c=(0,n.x)({typed:t,matrix:r,equalScalar:i,zeros:s,not:o,concat:u});function l(e,t,r){var n=e[0].compile().evaluate(r);if(!(0,a.P3)(n)){if(isNaN(n))return NaN;if(0===n||!1===n)return 0}return c(n,e[1].compile().evaluate(r))}return l.rawArgs=!0,l},{isTransformFunction:!0})},49336(e,t,r){"use strict";r.d(t,{f:()=>s});var n=r(56208),i=r(58321),a=r(14943),s=(0,i.P9)("bitOr",["typed","matrix","equalScalar","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:i,DenseMatrix:s,concat:o}=e,u=(0,n.$)({typed:t,matrix:r,equalScalar:i,DenseMatrix:s,concat:o});function c(e,t,r){var n=e[0].compile().evaluate(r);if(!(0,a.P3)(n)){if(isNaN(n))return NaN;if(-1===n)return -1;if(!0===n)return 1}return u(n,e[1].compile().evaluate(r))}return c.rawArgs=!0,c},{isTransformFunction:!0})},16363(e,t,r){"use strict";r.d(t,{B:()=>o});var n=r(79943),i=r(58321),a=r(55666),s=r(14943),o=(0,i.P9)("column",["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:i,range:o}=e,u=(0,a.H)({typed:t,Index:r,matrix:i,range:o});return t("column",{"...any":function(e){var t=e.length-1,r=e[t];(0,s.Et)(r)&&(e[t]=r-1);try{return u.apply(null,e)}catch(e){throw(0,n.D)(e)}}})},{isTransformFunction:!0})},5633(e,t,r){"use strict";r.d(t,{V:()=>o});var n=r(14943),i=r(79943),a=r(58321),s=r(51760),o=(0,a.P9)("concat",["typed","matrix","isInteger"],e=>{var{typed:t,matrix:r,isInteger:a}=e,o=(0,s.z)({typed:t,matrix:r,isInteger:a});return t("concat",{"...any":function(e){var t=e.length-1,r=e[t];(0,n.Et)(r)?e[t]=r-1:(0,n.C4)(r)&&(e[t]=r.minus(1));try{return o.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},65671(e,t,r){"use strict";r.d(t,{p:()=>u});var n=r(14943),i=r(58321),a=r(79943),s=r(2736),o="cumsum",u=(0,i.P9)(o,["typed","add","unaryPlus"],e=>{var{typed:t,add:r,unaryPlus:i}=e,u=(0,s.b)({typed:t,add:r,unaryPlus:i});return t(o,{"...any":function(e){if(2===e.length&&(0,n.P3)(e[0])){var t=e[1];(0,n.Et)(t)?e[1]=t-1:(0,n.C4)(t)&&(e[1]=t.minus(1))}try{return u.apply(null,e)}catch(e){throw(0,a.D)(e)}}})},{isTransformFunction:!0})},65874(e,t,r){"use strict";r.d(t,{S:()=>u});var n=r(58321),i=r(79943),a=r(56079),s=r(67302),o="diff",u=(0,n.P9)(o,["typed","matrix","subtract","number","bignumber"],e=>{var{typed:t,matrix:r,subtract:n,number:u,bignumber:c}=e,l=(0,a.i)({typed:t,matrix:r,subtract:n,number:u,bignumber:c});return t(o,{"...any":function(e){e=(0,s.t)(e);try{return l.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},97971(e,t,r){"use strict";r.d(t,{p:()=>u});var n=r(59990),i=r(58321),a=r(14943),s=r(84327),o=r(43214),u=(0,i.P9)("filter",["typed"],e=>{var{typed:t}=e;function r(e,r,u){var c=(0,n.H)({typed:t}),l=(0,o.C)({typed:t});if(0===e.length)return c();var p=e[0];if(1===e.length)return c(p);var f=e.length-1,d=e[f];return p&&(p=i(p,u)),d&&(d=(0,a.li)(d)||(0,a.m2)(d)?i(d,u):(0,s.T)(d,r,u)),c(p,l(d,f))}function i(e,t){return e.compile().evaluate(t)}return r.rawArgs=!0,r},{isTransformFunction:!0})},70463(e,t,r){"use strict";r.d(t,{D:()=>u});var n=r(31032),i=r(43214),a=r(58321),s=r(14943),o=r(84327),u=(0,a.P9)("forEach",["typed"],e=>{var{typed:t}=e,r=(0,n.j)({typed:t}),a=(0,i.C)({typed:t});function u(e,t,n){if(0===e.length)return r();var i=e[0];if(1===e.length)return r(i);var u=e.length-1,l=e[u];return i&&(i=c(i,n)),l&&(l=(0,s.li)(l)||(0,s.m2)(l)?c(l,n):(0,o.T)(l,t,n)),r(i,a(l,u))}function c(e,t){return e.compile().evaluate(t)}return u.rawArgs=!0,u},{isTransformFunction:!0})},70941(e,t,r){"use strict";r.d(t,{p:()=>i});var n=r(14943),i=(0,r(58321).P9)("index",["Index","getMatrixDataType"],e=>{var{Index:t,getMatrixDataType:r}=e;return function(){for(var e=[],i=0,a=arguments.length;i<a;i++){var s=arguments[i];if((0,n._Z)(s))s.start--,s.end-=s.step>0?0:2;else if(s&&!0===s.isSet)s=s.map(function(e){return e-1});else if((0,n.cy)(s)||(0,n.OA)(s))"boolean"!==r(s)&&(s=s.map(function(e){return e-1}));else if((0,n.Et)(s)||(0,n.sI)(s))s--;else if((0,n.C4)(s))s=s.toNumber()-1;else if("string"==typeof s);else throw TypeError("Dimension must be an Array, Matrix, number, bigint, string, or Range");e[i]=s}var o=new t;return t.apply(o,e),o}},{isTransformFunction:!0})},46495(e,t,r){"use strict";r.d(t,{t:()=>u});var n=r(58321),i=r(14943),a=r(84672),s=r(84327),o=r(43214),u=(0,n.P9)("map",["typed"],e=>{var{typed:t}=e,r=(0,a.p)({typed:t}),n=(0,o.C)({typed:t});function u(e,t,a){if(0===e.length)return r();if(1===e.length)return r(e[0]);var o=e.length-1,u=e.slice(0,o),c=e[o];return u=u.map(e=>l(e,a)),c&&(c=(0,i.li)(c)||(0,i.m2)(c)?l(c,a):(0,s.T)(c,t,a)),r(...u,n(c,o));function l(e,t){return e.compile().evaluate(t)}}return u.rawArgs=!0,u},{isTransformFunction:!0})},16536(e,t,r){"use strict";r.d(t,{_:()=>c});var n=r(20296),i=r(79943),a=r(58321),s=r(86255),o=r(14943);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var c=(0,a.P9)("mapSlices",["typed","isInteger"],e=>{var{typed:t,isInteger:r}=e,n=(0,s.Q)({typed:t,isInteger:r});return t("mapSlices",{"...any":function(e){var t=e[1];(0,o.Et)(t)?e[1]=t-1:(0,o.C4)(t)&&(e[1]=t.minus(1));try{return n.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({isTransformFunction:!0},s.Q.meta))},78791(e,t,r){"use strict";r.d(t,{t:()=>o});var n=r(58321),i=r(79943),a=r(5546),s=r(67302),o=(0,n.P9)("max",["typed","config","numeric","larger","isNaN"],e=>{var{typed:t,config:r,numeric:n,larger:o,isNaN:u}=e,c=(0,a.p)({typed:t,config:r,numeric:n,larger:o,isNaN:u});return t("max",{"...any":function(e){e=(0,s.t)(e);try{return c.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},94092(e,t,r){"use strict";r.d(t,{y:()=>o});var n=r(58321),i=r(79943),a=r(84043),s=r(67302),o=(0,n.P9)("mean",["typed","add","divide"],e=>{var{typed:t,add:r,divide:n}=e,o=(0,a.s)({typed:t,add:r,divide:n});return t("mean",{"...any":function(e){e=(0,s.t)(e);try{return o.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},49917(e,t,r){"use strict";r.d(t,{X:()=>o});var n=r(58321),i=r(79943),a=r(59076),s=r(67302),o=(0,n.P9)("min",["typed","config","numeric","smaller","isNaN"],e=>{var{typed:t,config:r,numeric:n,smaller:o,isNaN:u}=e,c=(0,a.L)({typed:t,config:r,numeric:n,smaller:o,isNaN:u});return t("min",{"...any":function(e){e=(0,s.t)(e);try{return c.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},81242(e,t,r){"use strict";r.d(t,{Q:()=>s});var n=r(84493),i=r(58321),a=r(14943),s=(0,i.P9)("nullish",["typed","matrix","size","flatten","deepEqual"],e=>{var{typed:t,matrix:r,size:i,flatten:s,deepEqual:o}=e,u=(0,n.w)({typed:t,matrix:r,size:i,flatten:s,deepEqual:o});function c(e,t,r){var n=e[0].compile().evaluate(r);return(0,a.P3)(n)||null==n||void 0===n?u(n,e[1].compile().evaluate(r)):n}return c.rawArgs=!0,c},{isTransformFunction:!0})},15136(e,t,r){"use strict";r.d(t,{O:()=>s});var n=r(64625),i=r(58321),a=r(14943),s=(0,i.P9)("or",["typed","matrix","equalScalar","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:i,DenseMatrix:s,concat:o}=e,u=(0,n.M)({typed:t,matrix:r,equalScalar:i,DenseMatrix:s,concat:o});function c(e,t,r){var n=e[0].compile().evaluate(r);return!!(!(0,a.P3)(n)&&u(n,!1))||u(n,e[1].compile().evaluate(r))}return c.rawArgs=!0,c},{isTransformFunction:!0})},73810(e,t,r){"use strict";r.d(t,{Q:()=>o});var n=r(86621),i=r(58321),a=r(93556),s="print",o=(0,i.P9)(s,["typed","matrix","zeros","add"],e=>{var{typed:t,matrix:r,zeros:i,add:o}=e,u=(0,n.q)({typed:t,matrix:r,zeros:i,add:o});return t(s,{"string, Object | Array":function(e,t){return u(c(e),t)},"string, Object | Array, number | Object":function(e,t,r){return u(c(e),t,r)}});function c(e){return e.replace(a.I,e=>"$"+e.slice(1).split(".").map(function(e){return!isNaN(e)&&e.length>0?parseInt(e)-1:e}).join("."))}},{isTransformFunction:!0})},63881(e,t,r){"use strict";r.d(t,{b:()=>s});var n=r(58321),i=r(73112),a=r(67302),s=(0,n.P9)("quantileSeq",["typed","bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger","mapSlices"],e=>{var{typed:t,bignumber:r,add:n,subtract:s,divide:o,multiply:u,partitionSelect:c,compare:l,isInteger:p,smaller:f,smallerEq:d,larger:h,mapSlices:m}=e,g=(0,i.D)({typed:t,bignumber:r,add:n,subtract:s,divide:o,multiply:u,partitionSelect:c,compare:l,isInteger:p,smaller:f,smallerEq:d,larger:h,mapSlices:m});return t("quantileSeq",{"Array | Matrix, number | BigNumber":g,"Array | Matrix, number | BigNumber, number":(e,t,r)=>g(e,t,v(r)),"Array | Matrix, number | BigNumber, boolean":g,"Array | Matrix, number | BigNumber, boolean, number":(e,t,r,n)=>g(e,t,r,v(n)),"Array | Matrix, Array | Matrix":g,"Array | Matrix, Array | Matrix, number":(e,t,r)=>g(e,t,v(r)),"Array | Matrix, Array | Matrix, boolean":g,"Array | Matrix, Array | Matrix, boolean, number":(e,t,r,n)=>g(e,t,r,v(n))});function v(e){return(0,a.t)([[],e])[1]}},{isTransformFunction:!0})},49832(e,t,r){"use strict";r.d(t,{G:()=>a});var n=r(58321),i=r(98463),a=(0,n.P9)("range",["typed","config","?matrix","?bignumber","equal","smaller","smallerEq","larger","largerEq","add","isZero","isPositive"],e=>{var{typed:t,config:r,matrix:n,bignumber:a,equal:s,smaller:o,smallerEq:u,larger:c,largerEq:l,add:p,isZero:f,isPositive:d}=e,h=(0,i.S)({typed:t,config:r,matrix:n,bignumber:a,equal:s,smaller:o,smallerEq:u,larger:c,largerEq:l,add:p,isZero:f,isPositive:d});return t("range",{"...any":function(e){var t=e.length-1;return"boolean"!=typeof e[t]&&e.push(!0),h.apply(null,e)}})},{isTransformFunction:!0})},75973(e,t,r){"use strict";r.d(t,{J:()=>o});var n=r(58321),i=r(26610),a=r(79943),s=r(14943),o=(0,n.P9)("row",["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:n,range:o}=e,u=(0,i.R)({typed:t,Index:r,matrix:n,range:o});return t("row",{"...any":function(e){var t=e.length-1,r=e[t];(0,s.Et)(r)&&(e[t]=r-1);try{return u.apply(null,e)}catch(e){throw(0,a.D)(e)}}})},{isTransformFunction:!0})},67764(e,t,r){"use strict";r.d(t,{E:()=>o});var n=r(58321),i=r(39029),a=r(79943),s=r(67302),o=(0,n.P9)("std",["typed","map","sqrt","variance"],e=>{var{typed:t,map:r,sqrt:n,variance:o}=e,u=(0,i.y)({typed:t,map:r,sqrt:n,variance:o});return t("std",{"...any":function(e){e=(0,s.t)(e);try{return u.apply(null,e)}catch(e){throw(0,a.D)(e)}}})},{isTransformFunction:!0})},29459(e,t,r){"use strict";r.d(t,{R:()=>s});var n=r(58321),i=r(79943),a=r(63790),s=(0,n.P9)("subset",["typed","matrix","zeros","add"],e=>{var{typed:t,matrix:r,zeros:n,add:s}=e,o=(0,a.$)({typed:t,matrix:r,zeros:n,add:s});return t("subset",{"...any":function(e){try{return o.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},54414(e,t,r){"use strict";r.d(t,{o:()=>o});var n=r(58321),i=r(79943),a=r(47159),s=r(67302),o=(0,n.P9)("sum",["typed","config","add","numeric"],e=>{var{typed:t,config:r,add:n,numeric:o}=e,u=(0,a.i)({typed:t,config:r,add:n,numeric:o});return t("sum",{"...any":function(e){e=(0,s.t)(e);try{return u.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},84327(e,t,r){"use strict";r.d(t,{T:()=>a});var n=r(14943),i=r(9286);function a(e,t,r){var a=e.filter(function(e){return(0,n.li)(e)&&!(e.name in t)&&!r.has(e.name)})[0];if(!a)throw Error('No undefined variable found in inline expression "'+e+'"');var s=a.name,o=new Map,u=new i.w6(r,o,new Set([s])),c=e.compile();return function(e){return o.set(s,e),c.evaluate(u)}}},79943(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(6636);function i(e){return e&&e.isIndexError?new n.d(e.index+1,e.min+1,void 0!==e.max?e.max+1:void 0):e}},67302(e,t,r){"use strict";r.d(t,{t:()=>i});var n=r(14943);function i(e){if(2===e.length&&(0,n.P3)(e[0])){var t=(e=e.slice())[1];((0,n.Et)(t)||(0,n.C4)(t))&&(e[1]=(0,n.Et)(t)?t-1:(0,n.C4)(t)?t.minus(1):t)}return e}},43214(e,t,r){"use strict";r.d(t,{C:()=>n});var n=(0,r(58321).P9)("transformCallback",["typed"],e=>{var{typed:t}=e;return function(e,r){return t.isTypedFunction(e)?function e(r,n){var a=Object.fromEntries(Object.entries(r.signatures).map(r=>{var[a,s]=r,o=a.split(",").length;return t.isTypedFunction(s)?[a,e(s,n)]:[a,i(s,o,n)]}));return"string"==typeof r.name?t(r.name,a):t(a)}(e,r):i(e,e.length,r)}});function i(e,t,r){return t===r?e:t===r+1?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e(...n.slice(0,r),a(n[r]))}:t>r+1?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e(...n.slice(0,r),a(n[r]),...n.slice(r+1))}:e}function a(e){return e.map(e=>e+1)}},3094(e,t,r){"use strict";r.d(t,{M:()=>u});var n=r(58321),i=r(79943),a=r(35849),s=r(67302),o="variance",u=(0,n.P9)(o,["typed","add","subtract","multiply","divide","mapSlices","isNaN"],e=>{var{typed:t,add:r,subtract:n,multiply:u,divide:c,mapSlices:l,isNaN:p}=e,f=(0,a.A)({typed:t,add:r,subtract:n,multiply:u,divide:c,mapSlices:l,isNaN:p});return t(o,{"...any":function(e){e=(0,s.t)(e);try{return f.apply(null,e)}catch(e){throw(0,i.D)(e)}}})},{isTransformFunction:!0})},3456(e,t,r){"use strict";r.d(t,{o:()=>i});var n=r(93140),i=(0,r(58321).P9)("lup",["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtractScalar","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],e=>{var{typed:t,matrix:r,abs:i,addScalar:a,divideScalar:s,multiplyScalar:o,subtractScalar:u,larger:c,equalScalar:l,unaryMinus:p,DenseMatrix:f,SparseMatrix:d,Spa:h}=e;return t("lup",{DenseMatrix:function(e){return m(e)},SparseMatrix:function(e){return function(e){var t,r,n,a=e._size[0],u=e._size[1],f=Math.min(a,u),m=e._values,g=e._index,v=e._ptr,y=[],b=[],x=[],D=[a,f],w=[],N=[],A=[],E=[f,u],S=[],C=[];for(t=0;t<a;t++)S[t]=t,C[t]=t;var M=function(e,t){var r=C[e],n=C[t];S[r]=t,S[n]=e,C[e]=n,C[t]=r};for(r=0;r<u;r++)!function(){var e=new h;r<a&&(x.push(y.length),y.push(1),b.push(r)),A.push(w.length);var u=v[r],f=v[r+1];for(n=u;n<f;n++)t=g[n],e.set(S[t],m[n]);r>0&&e.forEach(0,r-1,function(t,r){d._forEachRow(t,y,b,x,function(n,i){n>t&&e.accumulate(n,p(o(i,r)))})});var C=r,T=e.get(r),O=i(T);e.forEach(r+1,a-1,function(e,t){var r=i(t);c(r,O)&&(C=e,O=r,T=t)}),r!==C&&(d._swapRows(r,C,D[1],y,b,x),d._swapRows(r,C,E[1],w,N,A),e.swap(r,C),M(r,C)),e.forEach(0,a-1,function(e,t){e<=r?(w.push(t),N.push(e)):l(t=s(t,T),0)||(y.push(t),b.push(e))})}();return A.push(w.length),x.push(y.length),{L:new d({values:y,index:b,ptr:x,size:D}),U:new d({values:w,index:N,ptr:A,size:E}),p:S,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\nP: "+this.p}}}(e)},Array:function(e){var t=m(r(e));return{L:t.L.valueOf(),U:t.U.valueOf(),p:t.p}}});function m(e){var t,r,p,d=e._size[0],h=e._size[1],m=Math.min(d,h),g=(0,n.o8)(e._data),v=[],y=[d,m],b=[],x=[m,h],D=[];for(t=0;t<d;t++)D[t]=t;for(r=0;r<h;r++){if(r>0)for(t=0;t<d;t++){var w=Math.min(t,r),N=0;for(p=0;p<w;p++)N=a(N,o(g[t][p],g[p][r]));g[t][r]=u(g[t][r],N)}var A=r,E=0,S=0;for(t=r;t<d;t++){var C=g[t][r],M=i(C);c(M,E)&&(A=t,E=M,S=C)}if(r!==A&&(D[r]=[D[A],D[A]=D[r]][0],f._swapRows(r,A,g)),r<d)for(t=r+1;t<d;t++)l(g[t][r],0)||(g[t][r]=s(g[t][r],S))}for(r=0;r<h;r++)for(t=0;t<d;t++){if(0===r&&(t<h&&(b[t]=[]),v[t]=[]),t<r){t<h&&(b[t][r]=g[t][r]),r<d&&(v[t][r]=0);continue}if(t===r){t<h&&(b[t][r]=g[t][r]),r<d&&(v[t][r]=1);continue}t<h&&(b[t][r]=0),r<d&&(v[t][r]=g[t][r])}var T=new f({data:v,size:y}),O=new f({data:b,size:x}),F=[];for(t=0,m=D.length;t<m;t++)F[D[t]]=t;return{L:T,U:O,p:F,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\nP: "+this.p}}}})},51401(e,t,r){"use strict";r.d(t,{K:()=>i});var n=r(71333),i=(0,r(58321).P9)("qr",["typed","matrix","zeros","identity","isZero","equal","sign","sqrt","conj","unaryMinus","addScalar","divideScalar","multiplyScalar","subtractScalar","complex"],e=>{var{typed:t,matrix:r,zeros:i,identity:a,isZero:s,equal:o,sign:u,sqrt:c,conj:l,unaryMinus:p,addScalar:f,divideScalar:d,multiplyScalar:h,subtractScalar:m,complex:g}=e;return(0,n.A)(t("qr",{DenseMatrix:function(e){return y(e)},SparseMatrix:function(e){throw Error("qr not implemented for sparse matrices yet")},Array:function(e){var t=y(r(e));return{Q:t.Q.valueOf(),R:t.R.valueOf()}}}),{_denseQRimpl:v});function v(e){var t,r,n,g=e._size[0],v=e._size[1],y=a([g],"dense"),b=y._data,x=e.clone(),D=x._data,w=i([g],"");for(n=0;n<Math.min(v,g);++n){var N=D[n][n],A=p(o(N,0)?1:u(N)),E=l(A),S=0;for(t=n;t<g;t++)S=f(S,h(D[t][n],l(D[t][n])));var C=h(A,c(S));if(!s(C)){var M=m(N,C);for(w[n]=1,t=n+1;t<g;t++)w[t]=d(D[t][n],M);var T=p(l(d(M,C))),O=void 0;for(r=n;r<v;r++){for(O=0,t=n;t<g;t++)O=f(O,h(l(w[t]),D[t][r]));for(O=h(O,T),t=n;t<g;t++)D[t][r]=h(m(D[t][r],h(w[t],O)),E)}for(t=0;t<g;t++){for(O=0,r=n;r<g;r++)O=f(O,h(b[t][r],w[r]));for(O=h(O,T),r=n;r<g;++r)b[t][r]=d(m(b[t][r],h(O,l(w[r]))),E)}}}return{Q:y,R:x,toString:function(){return"Q: "+this.Q.toString()+"\nR: "+this.R.toString()}}}function y(e){var t=v(e),r=t.R._data;if(e._data.length>0)for(var n="Complex"===r[0][0].type?g(0):0,i=0;i<r.length;++i)for(var a=0;a<i&&a<(r[0]||[]).length;++a)r[i][a]=n;return t}})},77592(e,t,r){"use strict";r.d(t,{u:()=>a});var n=r(58321),i="schur",a=(0,n.P9)(i,["typed","matrix","identity","multiply","qr","norm","subtract"],e=>{var{typed:t,matrix:r,identity:n,multiply:a,qr:s,norm:o,subtract:u}=e;return t(i,{Array:function(e){var t=c(r(e));return{U:t.U.valueOf(),T:t.T.valueOf()}},Matrix:function(e){return c(e)}});function c(e){var t,r=e.size()[0],i=e,c=n(r),l=0;do{t=i;var p=s(i),f=p.Q;if(i=a(p.R,f),c=a(c,f),l++>100)break}while(o(u(i,t))>1e-4);return{U:c,T:i}}})},82303(e,t,r){"use strict";r.d(t,{H:()=>f});var n=r(51106),i=r(58321);function a(e,t,r,n,i,a,s){var o=0;for(r[s]=e;o>=0;){var u=r[s+o],c=r[n+u];-1===c?(o--,a[t++]=u):(r[n+u]=r[i+c],r[s+ ++o]=c)}return t}var s=(0,i.P9)("csAmd",["add","multiply","transpose"],e=>{var{add:t,multiply:r,transpose:n}=e;return function(e,o){if(!o||e<=0||e>3)return null;var u,c,l,p,f,d,h,m,g,v,y,b,x,D,w,N,A=o._size,E=A[0],S=A[1],C=0,M=Math.max(16,10*Math.sqrt(S));M=Math.min(S-2,M);var T=function(e,i,a,s,o){var u=n(i);if(1===e&&s===a)return t(i,u);if(2===e){for(var c=u._index,l=u._ptr,p=0,f=0;f<a;f++){var d=l[f];if(l[f]=p,!(l[f+1]-d>o))for(var h=l[f+1];d<h;d++)c[p++]=c[d]}l[a]=p,i=n(u)}return r(u,i)}(e,o,E,S,M);!function(e,t){for(var r=e._values,n=e._index,i=e._ptr,a=e._size[1],s=0,o=0;o<a;o++){var u=i[o];for(i[o]=s;u<i[o+1];u++)t(n[u],o,r?r[u]:1,null)&&(n[s]=n[u],r&&(r[s]=r[u]),s++)}i[a]=s,n.splice(s,n.length-s),r&&r.splice(s,r.length-s)}(T,s);for(var O=T._index,F=T._ptr,_=F[S],B=[],P=[],k=S+1,q=2*(S+1),I=3*(S+1),R=4*(S+1),z=5*(S+1),L=6*(S+1),j=7*(S+1),U=function(e,t,r,n,a,s,o,u,c,l,p){for(var f=0;f<e;f++)r[0+f]=t[f+1]-t[f];r[0+e]=0;for(var d=0;d<=e;d++)r[n+d]=-1,a[d]=-1,r[s+d]=-1,r[o+d]=-1,r[u+d]=1,r[c+d]=1,r[l+d]=0,r[p+d]=r[0+d];var h=i(0,0,r,c,e);return r[l+e]=-2,t[e]=-1,r[c+e]=0,h}(S,F,P,I,B,q,j,k,L,R,z),$=function(e,t,r,n,i,a,s,o,u,c,l){for(var p=0,f=0;f<e;f++){var d=r[n+f];if(0===d)r[i+f]=-2,p++,t[f]=-1,r[a+f]=0;else if(d>s)r[o+f]=0,r[i+f]=-1,p++,t[f]=-e-2,r[o+e]++;else{var h=r[u+d];-1!==h&&(c[h]=f),r[l+f]=r[u+d],r[u+d]=f}}return p}(S,F,P,z,R,L,M,k,I,B,q),H=0;$<S;){for(l=-1;H<S&&-1===(l=P[I+H]);H++);-1!==P[q+l]&&(B[P[q+l]]=-1),P[I+H]=P[q+l];var G=P[R+l],Q=P[k+l];$+=Q;var V=0;P[k+l]=-Q;var Z=F[l],W=0===G?Z:_,Y=W;for(p=1;p<=G+1;p++){for(p>G?(d=l,h=Z,m=P[0+l]-G):(h=F[d=O[Z++]],m=P[0+d]),f=1;f<=m;f++)(g=P[k+(u=O[h++])])<=0||(V+=g,P[k+u]=-g,O[Y++]=u,-1!==P[q+u]&&(B[P[q+u]]=B[u]),-1!==B[u]?P[q+B[u]]=P[q+u]:P[I+P[z+u]]=P[q+u]);d!==l&&(F[d]=-l-2,P[L+d]=0)}for(0!==G&&(_=Y),P[z+l]=V,F[l]=W,P[0+l]=Y-W,P[R+l]=-2,U=i(U,C,P,L,S),v=W;v<Y;v++)if(!((y=P[R+(u=O[v])])<=0)){var J=U-(g=-P[k+u]);for(Z=F[u],b=F[u]+y-1;Z<=b;Z++)P[L+(d=O[Z])]>=U?P[L+d]-=g:0!==P[L+d]&&(P[L+d]=P[z+d]+J)}for(v=W;v<Y;v++){for(w=0,x=(b=F[u=O[v]])+P[R+u]-1,D=b,N=0,Z=b;Z<=x;Z++)if(0!==P[L+(d=O[Z])]){var K=P[L+d]-U;K>0?(N+=K,O[D++]=d,w+=d):(F[d]=-l-2,P[L+d]=0)}P[R+u]=D-b+1;var X=D,ee=b+P[0+u];for(Z=x+1;Z<ee;Z++){var et=P[k+(c=O[Z])];et<=0||(N+=et,O[D++]=c,w+=c)}0===N?(F[u]=-l-2,V-=g=-P[k+u],Q+=g,$+=g,P[k+u]=0,P[R+u]=-1):(P[z+u]=Math.min(P[z+u],N),O[D]=O[X],O[X]=O[b],O[b]=l,P[0+u]=D-b+1,w=(w<0?-w:w)%S,P[q+u]=P[j+w],P[j+w]=u,B[u]=w)}for(P[z+l]=V,U=i(U+(C=Math.max(C,V)),C,P,L,S),v=W;v<Y;v++)if(!(P[k+(u=O[v])]>=0))for(u=P[j+(w=B[u])],P[j+w]=-1;-1!==u&&-1!==P[q+u];u=P[q+u],U++){for(m=P[0+u],y=P[R+u],Z=F[u]+1;Z<=F[u]+m-1;Z++)P[L+O[Z]]=U;var er=u;for(c=P[q+u];-1!==c;){var en=P[0+c]===m&&P[R+c]===y;for(Z=F[c]+1;en&&Z<=F[c]+m-1;Z++)P[L+O[Z]]!==U&&(en=0);en?(F[c]=-u-2,P[k+u]+=P[k+c],P[k+c]=0,P[R+c]=-1,c=P[q+c],P[q+er]=c):(er=c,c=P[q+c])}}for(Z=W,v=W;v<Y;v++)(g=-P[k+(u=O[v])])<=0||(P[k+u]=g,N=Math.min(N=P[z+u]+V-g,S-$-g),-1!==P[I+N]&&(B[P[I+N]]=u),P[q+u]=P[I+N],B[u]=-1,P[I+N]=u,H=Math.min(H,N),P[z+u]=N,O[Z++]=u);P[k+l]=Q,0==(P[0+l]=Z-W)&&(F[l]=-1,P[L+l]=0),0!==G&&(_=Z)}for(u=0;u<S;u++)F[u]=-F[u]-2;for(c=0;c<=S;c++)P[I+c]=-1;for(c=S;c>=0;c--)P[k+c]>0||(P[q+c]=P[I+F[c]],P[I+F[c]]=c);for(d=S;d>=0;d--)P[k+d]<=0||-1!==F[d]&&(P[q+d]=P[I+F[d]],P[I+F[d]]=d);for(l=0,u=0;u<=S;u++)-1===F[u]&&(l=a(u,l,P,I,q,B,L));return B.splice(B.length-1,1),B};function i(e,t,r,n,i){if(e<2||e+t<0){for(var a=0;a<i;a++)0!==r[n+a]&&(r[n+a]=1);e=2}return e}function s(e,t){return e!==t}}),o=(0,i.P9)("csCounts",["transpose"],e=>{var{transpose:t}=e;return function(e,r,n,i){if(!e||!r||!n)return null;var a,s,o,u,c,l,p,f=e._size,d=f[0],h=f[1],m=4*h+(i?h+d+1:0),g=[],v=2*h,y=3*h,b=4*h,x=5*h+1;for(o=0;o<m;o++)g[o]=-1;var D=[],w=t(e),N=w._index,A=w._ptr;for(o=0;o<h;o++)for(D[s=n[o]]=+(-1===g[y+s]);-1!==s&&-1===g[y+s];s=r[s])g[y+s]=o;if(i){for(o=0;o<h;o++)g[n[o]]=o;for(a=0;a<d;a++){for(o=h,l=A[a],p=A[a+1],c=l;c<p;c++)o=Math.min(o,g[N[c]]);g[x+a]=g[b+o],g[b+o]=a}}for(a=0;a<h;a++)g[0+a]=a;for(o=0;o<h;o++){for(-1!==r[s=n[o]]&&D[r[s]]--,u=i?g[b+o]:s;-1!==u;u=i?g[x+u]:-1)for(c=A[u];c<A[u+1];c++){var E=function(e,t,r,n,i,a){var s,o,u,c=0;if(e<=t||r[n+t]<=r[i+e])return -1;r[i+e]=r[n+t];var l=r[a+e];if(r[a+e]=t,-1===l)c=1,u=e;else{for(c=2,u=l;u!==r[0+u];u=r[0+u]);for(s=l;s!==u;s=o)o=r[0+s],r[0+s]=u}return{jleaf:c,q:u}}(a=N[c],s,g,y,h,v);E.jleaf>=1&&D[s]++,2===E.jleaf&&D[E.q]--}-1!==r[s]&&(g[0+s]=r[s])}for(s=0;s<h;s++)-1!==r[s]&&(D[r[s]]+=D[s]);return D}}),u=(0,i.P9)("csSqr",["add","multiply","transpose"],e=>{var{add:t,multiply:r,transpose:n}=e,i=s({add:t,multiply:r,transpose:n}),u=o({transpose:n});return function(e,t,r){var n,s=t._ptr,o=t._size[1],c={};if(c.q=i(e,t),e&&!c.q)return null;if(r){var l=e?function(e,t){for(var r=e._values,n=e._index,i=e._ptr,a=e._size,s=e._datatype,o=a[0],u=a[1],c=[],l=[],p=0,f=0;f<u;f++){l[f]=p;for(var d=t?t[f]:f,h=i[d],m=i[d+1],g=h;g<m;g++){var v=n[g];c[p]=v,p++}}return l[u]=p,e.createSparseMatrix({values:null,index:c,ptr:l,size:[o,u],datatype:s})}(t,c.q):t;c.parent=function(e){if(!e)return null;var t,r,n=e._index,i=e._ptr,a=e._size,s=a[0],o=a[1],u=[],c=[];for(t=0;t<s;t++)c[o+t]=-1;for(var l=0;l<o;l++){u[l]=-1,c[0+l]=-1;for(var p=i[l],f=i[l+1],d=p;d<f;d++){var h=n[d];for(t=c[o+h];-1!==t&&t<l;t=r)r=c[0+t],c[0+t]=l,-1===r&&(u[t]=l);c[o+h]=l}}return u}(l);var p=function(e,t){if(!e)return null;var r,n=0,i=[],s=[],o=2*t;for(r=0;r<t;r++)s[0+r]=-1;for(r=t-1;r>=0;r--)-1!==e[r]&&(s[t+r]=s[0+e[r]],s[0+e[r]]=r);for(r=0;r<t;r++)-1===e[r]&&(n=a(r,n,s,0,t,i,o));return i}(c.parent,o);if(c.cp=u(l,c.parent,p,1),l&&c.parent&&c.cp&&function(e,t){var r,n,i,a,s,o=e._ptr,u=e._index,c=e._size,l=c[0],p=c[1];t.pinv=[],t.leftmost=[];var f=t.parent,d=t.pinv,h=t.leftmost,m=[],g=l+p,v=l+2*p;for(n=0;n<p;n++)m[l+n]=-1,m[g+n]=-1,m[v+n]=0;for(r=0;r<l;r++)h[r]=-1;for(n=p-1;n>=0;n--)for(a=o[n],s=o[n+1],i=a;i<s;i++)h[u[i]]=n;for(r=l-1;r>=0;r--)d[r]=-1,-1!==(n=h[r])&&(0==m[v+n]++&&(m[g+n]=r),m[0+r]=m[l+n],m[l+n]=r);for(n=0,t.lnz=0,t.m2=l;n<p;n++)if(r=m[l+n],t.lnz++,r<0&&(r=t.m2++),d[r]=n,!(--v[n]<=0)){t.lnz+=m[v+n];var y=f[n];-1!==y&&(0===m[v+y]&&(m[g+y]=m[g+n]),m[0+m[g+n]]=m[l+y],m[l+y]=m[0+r],m[v+y]+=m[v+n])}for(r=0;r<l;r++)d[r]<0&&(d[r]=n++);return!0}(l,c))for(c.unz=0,n=0;n<o;n++)c.unz+=c.cp[n]}else c.unz=4*s[o]+o,c.lnz=c.unz;return c}});function c(e,t){e[t]=-e[t]-2}var l=(0,i.P9)("csSpsolve",["divideScalar","multiply","subtract"],e=>{var{divideScalar:t,multiply:r,subtract:n}=e;return function(e,i,a,s,o,u,l){var p,f,d,h,m=e._values,g=e._index,v=e._ptr,y=e._size[1],b=i._values,x=i._index,D=i._ptr,w=function(e,t,r,n,i){var a,s,o,u=e._ptr,l=e._size,p=t._index,f=t._ptr,d=l[1],h=d;for(s=f[r],o=f[r+1],a=s;a<o;a++){var m=p[a];u[m]<0||(h=function(e,t,r,n,i){var a,s,o,u=t._index,l=t._ptr,p=t._size[1],f=0;for(n[0]=e;f>=0;){e=n[f];var d,h,m=i?i[e]:e;l[e]<0||(c(l,e),n[p+f]=m<0?0:(d=l[m])<0?-d-2:d);var g=1;for(s=n[p+f],o=m<0?0:(h=l[m+1])<0?-h-2:h;s<o;s++)if(!(l[a=u[s]]<0)){n[p+f]=s,n[++f]=a,g=0;break}g&&(f--,n[--r]=e)}return r}(m,e,h,n,i))}for(a=h;a<d;a++)c(u,n[a]);return h}(e,i,a,s,u);for(p=w;p<y;p++)o[s[p]]=0;for(f=D[a],d=D[a+1],p=f;p<d;p++)o[x[p]]=b[p];for(var N=w;N<y;N++){var A=s[N],E=u?u[A]:A;if(!(E<0))for(f=v[E],d=v[E+1],o[A]=t(o[A],m[l?f:d-1]),p=l?f+1:f,h=l?d:d-1;p<h;p++){var S=g[p];o[S]=n(o[S],r(m[p],o[A]))}}return w}}),p=(0,i.P9)("csLu",["abs","divideScalar","multiply","subtract","larger","largerEq","SparseMatrix"],e=>{var{abs:t,divideScalar:r,multiply:n,subtract:i,larger:a,largerEq:s,SparseMatrix:o}=e,u=l({divideScalar:r,multiply:n,subtract:i});return function(e,i,c){if(!e)return null;var l,p,f,d=e._size[1],h=100,m=100;i&&(l=i.q,h=i.lnz||h,m=i.unz||m);var g=[],v=[],y=[],b=new o({values:g,index:v,ptr:y,size:[d,d]}),x=[],D=[],w=[],N=new o({values:x,index:D,ptr:w,size:[d,d]}),A=[],E=[],S=[];for(p=0;p<d;p++)E[p]=0,A[p]=-1,y[p+1]=0;h=0,m=0;for(var C=0;C<d;C++){y[C]=h,w[C]=m;var M=l?l[C]:C,T=u(b,e,M,S,E,A,1),O=-1,F=-1;for(f=T;f<d;f++)if(A[p=S[f]]<0){var _=t(E[p]);a(_,F)&&(F=_,O=p)}else D[m]=A[p],x[m++]=E[p];if(-1===O||F<=0)return null;A[M]<0&&s(t(E[M]),n(F,c))&&(O=M);var B=E[O];for(D[m]=C,x[m++]=B,A[O]=C,v[h]=O,g[h++]=1,f=T;f<d;f++)A[p=S[f]]<0&&(v[h]=p,g[h++]=r(E[p],B)),E[p]=0}for(f=0,y[d]=h,w[d]=m;f<h;f++)v[f]=A[v[f]];return g.splice(h,g.length-h),v.splice(h,v.length-h),x.splice(m,x.length-m),D.splice(m,D.length-m),{L:b,U:N,pinv:A}}}),f=(0,i.P9)("slu",["typed","abs","add","multiply","transpose","divideScalar","subtract","larger","largerEq","SparseMatrix"],e=>{var{typed:t,abs:r,add:i,multiply:a,transpose:s,divideScalar:o,subtract:c,larger:l,largerEq:f,SparseMatrix:d}=e,h=u({add:i,multiply:a,transpose:s}),m=p({abs:r,divideScalar:o,multiply:a,subtract:c,larger:l,largerEq:f,SparseMatrix:d});return t("slu",{"SparseMatrix, number, number":function(e,t,r){if(!(0,n.YN)(t)||t<0||t>3)throw Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(r<0||r>1)throw Error("Partial pivoting threshold must be a number from 0 to 1");var i=h(t,e,!1),a=m(e,i,r);return{L:a.L,U:a.U,p:a.pinv,q:i.q,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\np: "+this.p.toString()+(this.q?"\nq: "+this.q.toString():"")+"\n"}}}})})},53792(e,t,r){"use strict";r.d(t,{s:()=>o});var n=r(14943),i=r(58321),a=r(51106),s="derivative",o=(0,i.P9)(s,["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],e=>{var{typed:t,config:r,parse:i,simplify:o,equal:u,isZero:c,numeric:l,ConstantNode:p,FunctionNode:f,OperatorNode:d,ParenthesisNode:h,SymbolNode:m}=e;function g(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{simplify:!0},n=new Map,i=t.name,a=D(e,function e(t){var r=n.get(t);if(void 0!==r)return r;var a=x(e,t,i);return n.set(t,a),a});return r.simplify?o(a):a}function v(e){var t=i(e);if(!t.isSymbolNode)throw TypeError("Invalid variable. "+"Cannot parse ".concat(JSON.stringify(e)," into a variable in function derivative"));return t}var y=t(s,{"Node, SymbolNode":g,"Node, SymbolNode, Object":g,"Node, string":(e,t)=>g(e,v(t)),"Node, string, Object":(e,t,r)=>g(e,v(t),r)});y._simplify=!0,y.toTex=function(e){return b.apply(null,e.args)};var b=t("_derivTex",{"Node, SymbolNode":function(e,t){return(0,n.BA)(e)&&"string"===(0,n.QP)(e.value)?b(i(e.value).toString(),t.toString(),1):b(e.toTex(),t.toString(),1)},"Node, ConstantNode":function(e,t){if("string"===(0,n.QP)(t.value))return b(e,i(t.value));throw Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(e,t,r){return b(e.toString(),t.name,r.value)},"string, string, number":function(e,t,r){return(1===r?"{d\\over d"+t+"}":"{d^{"+r+"}\\over d"+t+"^{"+r+"}}")+"\\left[".concat(e,"\\right]")}}),x=t("_isConst",{"function, ConstantNode, string":function(){return!0},"function, SymbolNode, string":function(e,t,r){return t.name!==r},"function, ParenthesisNode, string":function(e,t,r){return e(t.content,r)},"function, FunctionAssignmentNode, string":function(e,t,r){return!t.params.includes(r)||e(t.expr,r)},"function, FunctionNode | OperatorNode, string":function(e,t,r){return t.args.every(t=>e(t,r))}}),D=t("_derivative",{"ConstantNode, function":function(){return w(0)},"SymbolNode, function":function(e,t){return t(e)?w(0):w(1)},"ParenthesisNode, function":function(e,t){return new h(D(e.content,t))},"FunctionAssignmentNode, function":function(e,t){return t(e)?w(0):D(e.expr,t)},"FunctionNode, function":function(e,t){if(t(e))return w(0);var r,n,i,a,s=e.args[0],o=!1,u=!1;switch(e.name){case"cbrt":o=!0,n=new d("*","multiply",[w(3),new d("^","pow",[s,new d("/","divide",[w(2),w(3)])])]);break;case"sqrt":case"nthRoot":if(1===e.args.length)o=!0,n=new d("*","multiply",[w(2),new f("sqrt",[s])]);else if(2===e.args.length)return r=new d("/","divide",[w(1),e.args[1]]),D(new d("^","pow",[s,r]),t);break;case"log10":r=w(10);case"log":if(r||1!==e.args.length){if(1===e.args.length&&r||2===e.args.length&&t(e.args[1]))n=new d("*","multiply",[s.clone(),new f("log",[r||e.args[1]])]),o=!0;else if(2===e.args.length)return D(new d("/","divide",[new f("log",[s]),new f("log",[e.args[1]])]),t)}else n=s.clone(),o=!0;break;case"pow":if(2===e.args.length)return D(new d("^","pow",[s,e.args[1]]),t);break;case"exp":n=new f("exp",[s.clone()]);break;case"sin":n=new f("cos",[s.clone()]);break;case"cos":n=new d("-","unaryMinus",[new f("sin",[s.clone()])]);break;case"tan":n=new d("^","pow",[new f("sec",[s.clone()]),w(2)]);break;case"sec":n=new d("*","multiply",[e,new f("tan",[s.clone()])]);break;case"csc":u=!0,n=new d("*","multiply",[e,new f("cot",[s.clone()])]);break;case"cot":u=!0,n=new d("^","pow",[new f("csc",[s.clone()]),w(2)]);break;case"asin":o=!0,n=new f("sqrt",[new d("-","subtract",[w(1),new d("^","pow",[s.clone(),w(2)])])]);break;case"acos":o=!0,u=!0,n=new f("sqrt",[new d("-","subtract",[w(1),new d("^","pow",[s.clone(),w(2)])])]);break;case"atan":o=!0,n=new d("+","add",[new d("^","pow",[s.clone(),w(2)]),w(1)]);break;case"asec":o=!0,n=new d("*","multiply",[new f("abs",[s.clone()]),new f("sqrt",[new d("-","subtract",[new d("^","pow",[s.clone(),w(2)]),w(1)])])]);break;case"acsc":o=!0,u=!0,n=new d("*","multiply",[new f("abs",[s.clone()]),new f("sqrt",[new d("-","subtract",[new d("^","pow",[s.clone(),w(2)]),w(1)])])]);break;case"acot":o=!0,u=!0,n=new d("+","add",[new d("^","pow",[s.clone(),w(2)]),w(1)]);break;case"sinh":n=new f("cosh",[s.clone()]);break;case"cosh":n=new f("sinh",[s.clone()]);break;case"tanh":n=new d("^","pow",[new f("sech",[s.clone()]),w(2)]);break;case"sech":u=!0,n=new d("*","multiply",[e,new f("tanh",[s.clone()])]);break;case"csch":u=!0,n=new d("*","multiply",[e,new f("coth",[s.clone()])]);break;case"coth":u=!0,n=new d("^","pow",[new f("csch",[s.clone()]),w(2)]);break;case"asinh":o=!0,n=new f("sqrt",[new d("+","add",[new d("^","pow",[s.clone(),w(2)]),w(1)])]);break;case"acosh":o=!0,n=new f("sqrt",[new d("-","subtract",[new d("^","pow",[s.clone(),w(2)]),w(1)])]);break;case"atanh":o=!0,n=new d("-","subtract",[w(1),new d("^","pow",[s.clone(),w(2)])]);break;case"asech":o=!0,u=!0,n=new d("*","multiply",[s.clone(),new f("sqrt",[new d("-","subtract",[w(1),new d("^","pow",[s.clone(),w(2)])])])]);break;case"acsch":o=!0,u=!0,n=new d("*","multiply",[new f("abs",[s.clone()]),new f("sqrt",[new d("+","add",[new d("^","pow",[s.clone(),w(2)]),w(1)])])]);break;case"acoth":o=!0,u=!0,n=new d("-","subtract",[w(1),new d("^","pow",[s.clone(),w(2)])]);break;case"abs":n=new d("/","divide",[new f(new m("abs"),[s.clone()]),s.clone()]);break;default:throw Error('Cannot process function "'+e.name+'" in derivative: the function is not supported, undefined, or the number of arguments passed to it are not supported')}o?(i="/",a="divide"):(i="*",a="multiply");var c=D(s,t);return u&&(c=new d("-","unaryMinus",[c])),new d(i,a,[c,n])},"OperatorNode, function":function(e,t){if(t(e))return w(0);if("+"===e.op)return new d(e.op,e.fn,e.args.map(function(e){return D(e,t)}));if("-"===e.op){if(e.isUnary())return new d(e.op,e.fn,[D(e.args[0],t)]);if(e.isBinary())return new d(e.op,e.fn,[D(e.args[0],t),D(e.args[1],t)])}if("*"===e.op){var r=e.args.filter(function(e){return t(e)});if(r.length>0){var i=e.args.filter(function(e){return!t(e)}),a=1===i.length?i[0]:new d("*","multiply",i);return new d("*","multiply",r.concat(D(a,t)))}return new d("+","add",e.args.map(function(r){return new d("*","multiply",e.args.map(function(e){return e===r?D(e,t):e.clone()}))}))}if("/"===e.op&&e.isBinary()){var s=e.args[0],o=e.args[1];return t(o)?new d("/","divide",[D(s,t),o]):t(s)?new d("*","multiply",[new d("-","unaryMinus",[s]),new d("/","divide",[D(o,t),new d("^","pow",[o.clone(),w(2)])])]):new d("/","divide",[new d("-","subtract",[new d("*","multiply",[D(s,t),o.clone()]),new d("*","multiply",[s.clone(),D(o,t)])]),new d("^","pow",[o.clone(),w(2)])])}if("^"===e.op&&e.isBinary()){var l=e.args[0],p=e.args[1];if(t(l))return(0,n.BA)(l)&&(c(l.value)||u(l.value,1))?w(0):new d("*","multiply",[e,new d("*","multiply",[new f("log",[l.clone()]),D(p.clone(),t)])]);if(t(p)){if((0,n.BA)(p)){if(c(p.value))return w(0);if(u(p.value,1))return D(l,t)}var h=new d("^","pow",[l.clone(),new d("-","subtract",[p,w(1)])]);return new d("*","multiply",[p.clone(),new d("*","multiply",[D(l,t),h])])}return new d("*","multiply",[new d("^","pow",[l.clone(),p.clone()]),new d("+","add",[new d("*","multiply",[D(l,t),new d("/","divide",[p.clone(),l.clone()])]),new d("*","multiply",[D(p,t),new f("log",[l.clone()])])])])}throw Error('Cannot process operator "'+e.op+'" in derivative: the operator is not supported, undefined, or the number of arguments passed to it are not supported')}});function w(e,t){return new p(l(e,t||(0,a.BC)(String(e),r)))}return y})},64274(e,t,r){"use strict";r.d(t,{C:()=>a});var n=r(58321),i="leafCount",a=(0,n.P9)(i,["parse","typed"],e=>{var{parse:t,typed:r}=e;return r(i,{Node:function(e){return function e(t){var r=0;return t.forEach(t=>{r+=e(t)}),r||1}(e)}})})},2259(e,t,r){"use strict";r.d(t,{L:()=>a});var n=r(58321),i="lyap",a=(0,n.P9)(i,["typed","matrix","sylvester","multiply","transpose"],e=>{var{typed:t,matrix:r,sylvester:n,multiply:a,transpose:s}=e;return t(i,{"Matrix, Matrix":function(e,t){return n(e,s(e),a(-1,t))},"Array, Matrix":function(e,t){return n(r(e),s(r(e)),a(-1,t))},"Matrix, Array":function(e,t){return n(e,s(r(e)),r(a(-1,t)))},"Array, Array":function(e,t){return n(r(e),s(r(e)),r(a(-1,t))).toArray()}})})},45359(e,t,r){"use strict";r.d(t,{r:()=>a});var n=r(58321),i="polynomialRoot",a=(0,n.P9)(i,["typed","isZero","equalScalar","add","subtract","multiply","divide","sqrt","unaryMinus","cbrt","typeOf","im","re"],e=>{var{typed:t,isZero:r,equalScalar:n,add:a,subtract:s,multiply:o,divide:u,sqrt:c,unaryMinus:l,cbrt:p,typeOf:f,im:d,re:h}=e;return t(i,{"number|Complex, ...number|Complex":(e,t)=>{for(var i=[e,...t];i.length>0&&r(i[i.length-1]);)i.pop();if(i.length<2)throw RangeError("Polynomial [".concat(e,", ").concat(t,"] must have a non-zero non-constant coefficient"));switch(i.length){case 2:return[l(u(i[0],i[1]))];case 3:var[m,g,v]=i,y=o(2,v),b=o(g,g),x=o(4,v,m);if(n(b,x))return[u(l(g),y)];var D=c(s(b,x));return[u(s(D,g),y),u(s(l(D),g),y)];case 4:var[w,N,A,E]=i,S=l(o(3,E)),C=o(A,A),M=o(3,E,N),T=a(o(2,A,A,A),o(27,E,E,w)),O=o(9,E,A,N);if(n(C,M)&&n(T,O))return[u(A,S)];var F=s(C,M),_=s(T,O);if(n(a(o(18,E,A,N,w),o(A,A,N,N)),a(o(4,A,A,A,w),o(4,E,N,N,N),o(27,E,E,w,w))))return[u(s(o(4,E,A,N),a(o(9,E,E,w),o(A,A,A))),o(E,F)),u(s(o(9,E,w),o(A,N)),o(2,F))];return p(n(C,M)?_:u(a(_,c(s(o(_,_),o(4,F,F,F)))),2),!0).toArray().map(e=>u(a(A,e,u(F,e)),S)).map(e=>"Complex"===f(e)&&n(h(e),h(e)+d(e))?h(e):e);default:throw RangeError("only implemented for cubic or lower-order polynomials, not ".concat(i))}}})})},15833(e,t,r){"use strict";r.d(t,{L:()=>s});var n=r(51106),i=r(58321),a="rationalize",s=(0,i.P9)(a,["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],e=>{var{config:t,typed:r,equal:i,isZero:s,add:o,subtract:u,multiply:c,divide:l,pow:p,parse:f,simplifyConstant:d,simplifyCore:h,simplify:m,fraction:g,bignumber:v,mathWithTransform:y,matrix:b,AccessorNode:x,ArrayNode:D,ConstantNode:w,FunctionNode:N,IndexNode:A,ObjectNode:E,OperatorNode:S,SymbolNode:C,ParenthesisNode:M}=e;function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(l=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],p=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],(f={}).firstRules=(c=[h,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},d,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}]).concat(l,p),f.distrDivRules=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],f.sucDivRules=p,f.firstRulesAgain=c.concat(l),f.finalRules=[h,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},d,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],f),a=(g=e,v=t,y=!0,b=i.firstRules,x=[],D=m(g,b,v,{exactFractions:!1}),N="+-*"+((y=!!y)?"/":""),!function e(t){var r=t.type;if("FunctionNode"===r)throw Error("There is an unsolved function call");if("OperatorNode"===r)if("^"===t.op)if("ConstantNode"===t.args[1].type&&(0,n.YN)(parseFloat(t.args[1].value)))e(t.args[0]);else throw Error("There is a non-integer exponent");else{if(!N.includes(t.op))throw Error("Operator "+t.op+" invalid in polynomial expression");for(var i=0;i<t.args.length;i++)e(t.args[i])}else if("SymbolNode"===r){var a=t.name;-1===x.indexOf(a)&&x.push(a)}else if("ParenthesisNode"===r)e(t.content);else if("ConstantNode"!==r)throw Error("type "+r+" is not allowed in polynomial expression")}(D),(A={}).expression=D,A.variables=x,A),s=a.variables.length,o={exactFractions:!1},u={exactFractions:!0};if(e=a.expression,s>=1){e=function e(t,r,i){var a=t.type,s=arguments.length>1;if("OperatorNode"===a&&t.isBinary()){var o,u=!1;if("^"===t.op&&("ParenthesisNode"===t.args[0].type||"OperatorNode"===t.args[0].type)&&"ConstantNode"===t.args[1].type&&(u=(o=parseFloat(t.args[1].value))>=2&&(0,n.YN)(o)),u){if(o>2){var c=t.args[0],l=new S("^","pow",[t.args[0].cloneDeep(),new w(o-1)]);t=new S("*","multiply",[c,l])}else t=new S("*","multiply",[t.args[0],t.args[0].cloneDeep()]);s&&("content"===i?r.content=t:r.args[i]=t)}}if("ParenthesisNode"===a)e(t.content,t,"content");else if("ConstantNode"!==a&&"SymbolNode"!==a)for(var p=0;p<t.args.length;p++)e(t.args[p],t,p);if(!s)return t}(e);var c,l,p,f,g,v,y,b,x,D,N,A,E,C,M=!0,T=!1;for(e=m(e,i.firstRules,{},o);e=m(e,M?i.distrDivRules:i.sucDivRules,{},u),M=!M,(C=e.toString())!==E;)T=!0,E=C;T&&(e=m(e,i.firstRulesAgain,{},o)),e=m(e,i.finalRules,{},o)}var F=[],_={};return("OperatorNode"===e.type&&e.isBinary()&&"/"===e.op?(1===s&&(e.args[0]=O(e.args[0],F),e.args[1]=O(e.args[1])),r&&(_.numerator=e.args[0],_.denominator=e.args[1])):(1===s&&(e=O(e,F)),r&&(_.numerator=e,_.denominator=null)),r)?(_.coefficients=F,_.variables=a.variables,_.expression=e,_):e}return r(a,{Node:T,"Node, boolean":(e,t)=>T(e,{},t),"Node, Object":T,"Node, Object, boolean":T});function O(e,t){void 0===t&&(t=[]),t[0]=0;var r,i={};i.cte=1,i.oper="+",i.fire="";var a=0,s="";(function e(r,i,o){var u=r.type;if("FunctionNode"===u)throw Error("There is an unsolved function call");if("OperatorNode"===u){if(!"+-*^".includes(r.op))throw Error("Operator "+r.op+" invalid");if(null!==i&&(("unaryMinus"===r.fn||"pow"===r.fn)&&"add"!==i.fn&&"subtract"!==i.fn&&"multiply"!==i.fn||("subtract"===r.fn||"add"===r.fn||"multiply"===r.fn)&&"add"!==i.fn&&"subtract"!==i.fn||("subtract"===r.fn||"add"===r.fn||"unaryMinus"===r.fn)&&0!==o.noFil))throw Error("Invalid "+r.op+" placing");("^"===r.op||"*"===r.op)&&(o.fire=r.op);for(var c=0;c<r.args.length;c++)"unaryMinus"===r.fn&&(o.oper="-"),("+"===r.op||"subtract"===r.fn)&&(o.fire="",o.cte=1,o.oper=0===c?"+":r.op),o.noFil=c,e(r.args[c],r,o)}else if("SymbolNode"===u){if(r.name!==s&&""!==s)throw Error("There is more than one variable");if(s=r.name,null===i){t[1]=1;return}if("^"===i.op&&0!==o.noFil)throw Error("In power the variable should be the first parameter");if("*"===i.op&&1!==o.noFil)throw Error("In multiply the variable should be the second parameter");(""===o.fire||"*"===o.fire)&&(a<1&&(t[1]=0),t[1]+=o.cte*("+"===o.oper?1:-1),a=Math.max(1,a))}else if("ConstantNode"===u){var l=parseFloat(r.value);if(null===i){t[0]=l;return}if("^"===i.op){if(1!==o.noFil)throw Error("Constant cannot be powered");if(!(0,n.YN)(l)||l<=0)throw Error("Non-integer exponent is not allowed");for(var p=a+1;p<l;p++)t[p]=0;l>a&&(t[l]=0),t[l]+=o.cte*("+"===o.oper?1:-1),a=Math.max(l,a);return}o.cte=l,""===o.fire&&(t[0]+=o.cte*("+"===o.oper?1:-1))}else throw Error("Type "+u+" is not allowed")})(e,null,i),a=t.length-1;for(var o=!0,u=a;u>=0;u--)if(0!==t[u]){var c=new w(o?t[u]:Math.abs(t[u])),l=t[u]<0?"-":"+";if(u>0){var p=new C(s);u>1&&(p=new S("^","pow",[p,new w(u)])),c=-1===t[u]&&o?new S("-","unaryMinus",[p]):1===Math.abs(t[u])?p:new S("*","multiply",[c,p])}r=o?c:"+"===l?new S("+","add",[r,c]):new S("-","subtract",[r,c]),o=!1}return o?new w(0):r}})},56017(e,t,r){"use strict";r.d(t,{x:()=>a});var n=r(9286),i=r(14943),a=(0,r(58321).P9)("resolve",["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],e=>{var{typed:t,parse:r,ConstantNode:a,FunctionNode:s,OperatorNode:o,ParenthesisNode:u}=e;function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!t)return e;if((0,i.li)(e)){if(n.has(e.name)){var l=Array.from(n).join(", ");throw ReferenceError("recursive loop of variable definitions among {".concat(l,"}"))}var p=t.get(e.name);if((0,i.Ll)(p)){var f=new Set(n);return f.add(e.name),c(p,t,f)}return"number"==typeof p?r(String(p)):void 0!==p?new a(p):e}if((0,i.$$)(e)){var d=e.args.map(function(e){return c(e,t,n)});return new o(e.op,e.fn,d,e.implicit)}if((0,i.tv)(e))return new u(c(e.content,t,n));if((0,i.Px)(e)){var h=e.args.map(function(e){return c(e,t,n)});return new s(e.name,h)}return e.map(e=>c(e,t,n))}return t("resolve",{Node:c,"Node, Map | null | undefined":c,"Node, Object":(e,t)=>c(e,(0,n.pI)(t)),"Array | Matrix":t.referToSelf(e=>t=>t.map(t=>e(t))),"Array | Matrix, null | undefined":t.referToSelf(e=>t=>t.map(t=>e(t))),"Array, Object":t.referTo("Array,Map",e=>(t,r)=>e(t,(0,n.pI)(r))),"Matrix, Object":t.referTo("Matrix,Map",e=>(t,r)=>e(t,(0,n.pI)(r))),"Array | Matrix, Map":t.referToSelf(e=>(t,r)=>t.map(t=>e(t,r)))})})},70610(e,t,r){"use strict";r.d(t,{U:()=>l});var n=r(14943);function i(e){return(0,n.BA)(e)||(0,n.$$)(e)&&e.isUnary()&&(0,n.BA)(e.args[0])}function a(e){return!!((0,n.BA)(e)||((0,n.Px)(e)||(0,n.$$)(e))&&e.args.every(a)||(0,n.tv)(e)&&a(e.content))}var s=r(58321),o=r(74929),u=r(93140),c=r(9286),l=(0,s.P9)("simplify",["typed","parse","equal","resolve","simplifyConstant","simplifyCore","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode","replacer"],e=>{var{typed:t,parse:r,equal:s,resolve:l,simplifyConstant:p,simplifyCore:f,AccessorNode:d,ArrayNode:h,ConstantNode:m,FunctionNode:g,IndexNode:v,ObjectNode:y,OperatorNode:b,ParenthesisNode:x,SymbolNode:D,replacer:w}=e,{hasProperty:N,isCommutative:A,isAssociative:E,mergeContext:S,flatten:C,unflattenr:M,unflattenl:T,createMakeNodeFunction:O,defaultContext:F,realContext:_,positiveContext:B}=(0,o.Z)({FunctionNode:g,OperatorNode:b,SymbolNode:D});t.addConversion({from:"Object",to:"Map",convert:c.pI});var P=t("simplify",{Node:z,"Node, Map":(e,t)=>z(e,!1,t),"Node, Map, Object":(e,t,r)=>z(e,!1,t,r),"Node, Array":z,"Node, Array, Map":z,"Node, Array, Map, Object":z});function k(e){return e.transform(function(e){return(0,n.tv)(e)?k(e.content):e})}t.removeConversion({from:"Object",to:"Map",convert:c.pI}),P.defaultContext=F,P.realContext=_,P.positiveContext=B;var q={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};P.rules=[f,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},p,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},p,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n+-(n1)",r:"n-(n1)"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];var I=0;function R(){return new D("_p"+I++)}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,c.A5)(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.consoleDebug;t=function(e,t){for(var n=[],i=0;i<e.length;i++){var a=e[i],s=void 0,o=typeof a;switch(o){case"string":a={s:a};case"object":s=function(e,t){var n={};if(e.s){var i=e.s.split("->");if(2===i.length)n.l=i[0],n.r=i[1];else throw SyntaxError("Could not parse rule: "+e.s)}else n.l=e.l,n.r=e.r;for(var a of(n.l=k(r(n.l)),n.r=k(r(n.r)),["imposeContext","repeat","assuming"]))a in e&&(n[a]=e[a]);if(e.evaluate&&(n.evaluate=r(e.evaluate)),E(n.l,t)){var s,o=!A(n.l,t);o&&(s=R());var u=O(n.l),c=R();n.expanded={},n.expanded.l=u([n.l,c]),C(n.expanded.l,t),M(n.expanded.l,t),n.expanded.r=u([n.r,c]),o&&(n.expandedNC1={},n.expandedNC1.l=u([s,n.l]),n.expandedNC1.r=u([s,n.r]),n.expandedNC2={},n.expandedNC2.l=u([s,n.expanded.l]),n.expandedNC2.r=u([s,n.expanded.r]))}return n}(a,t);break;case"function":s=a;break;default:throw TypeError("Unsupported type of rule: "+o)}n.push(s)}return n}(t||P.rules,i.context);var s=l(e,n);s=k(s);for(var o={},u=s.toString({parenthesis:"all"});!o[u];){o[u]=!0,I=0;var p=u;a&&console.log("Working on: ",u);for(var f=0;f<t.length;f++){var d="";if("function"==typeof t[f]?(s=t[f](s,i),a&&(d=t[f].name)):(C(s,i.context),s=j(s,t[f],i.context),a&&(d="".concat(t[f].l.toString()," -> ").concat(t[f].r.toString()))),a){var h=s.toString({parenthesis:"all"});h!==p&&(console.log("Applying",d,"produced",h),p=h)}T(s,i.context)}u=s.toString({parenthesis:"all"})}return s}function L(e,t,r){var n=e;if(e)for(var i=0;i<e.length;++i){var a=j(e[i],t,r);a!==e[i]&&(n===e&&(n=e.slice()),n[i]=a)}return n}function j(e,t,r){if(t.assuming){for(var n in t.assuming)for(var i in t.assuming[n])if(N(n,i,r)!==t.assuming[n][i])return e}var a=S(t.imposeContext,r),s=e;if(s instanceof b||s instanceof g){var o=L(s.args,t,r);o!==s.args&&((s=s.clone()).args=o)}else if(s instanceof x){if(s.content){var c=j(s.content,t,r);c!==s.content&&(s=new x(c))}}else if(s instanceof h){var l=L(s.items,t,r);l!==s.items&&(s=new h(l))}else if(s instanceof d){var p=s.object;s.object&&(p=j(s.object,t,r));var f=s.index;s.index&&(f=j(s.index,t,r)),(p!==s.object||f!==s.index)&&(s=new d(p,f))}else if(s instanceof v){var m=L(s.dimensions,t,r);m!==s.dimensions&&(s=new v(m))}else if(s instanceof y){var D=!1,w={};for(var A in s.properties)w[A]=j(s.properties[A],t,r),w[A]!==s.properties[A]&&(D=!0);D&&(s=new y(w))}var E=t.r,C=$(t.l,s,a)[0];if(!C&&t.expanded&&(E=t.expanded.r,C=$(t.expanded.l,s,a)[0]),!C&&t.expandedNC1&&(E=t.expandedNC1.r,(C=$(t.expandedNC1.l,s,a)[0])||(E=t.expandedNC2.r,C=$(t.expandedNC2.l,s,a)[0])),C){var M=s.implicit;s=E.clone(),M&&"implicit"in E&&(s.implicit=!0),s=s.transform(function(e){return e.isSymbolNode&&(0,u.mQ)(C.placeholders,e.name)?C.placeholders[e.name].clone():e})}return t.repeat&&s!==e&&(s=j(s,t,r)),s}function U(e,t){var r,n=[];if(0===e.length||0===t.length)return n;for(var i=0;i<e.length;i++)for(var a=0;a<t.length;a++)(r=function(e,t){var r={placeholders:{}};if(!e.placeholders&&!t.placeholders)return r;if(!e.placeholders)return t;if(!t.placeholders)return e;for(var n in e.placeholders)if((0,u.mQ)(e.placeholders,n)&&(r.placeholders[n]=e.placeholders[n],(0,u.mQ)(t.placeholders,n)&&!function e(t,r){if(t instanceof m&&r instanceof m){if(!s(t.value,r.value))return!1}else if(t instanceof D&&r instanceof D){if(t.name!==r.name)return!1}else{if((!(t instanceof b)||!(r instanceof b))&&(!(t instanceof g)||!(r instanceof g)))return!1;if(t instanceof b){if(t.op!==r.op||t.fn!==r.fn)return!1}else if(t instanceof g&&t.name!==r.name)return!1;if(t.args.length!==r.args.length)return!1;for(var n=0;n<t.args.length;n++)if(!e(t.args[n],r.args[n]))return!1}return!0}(e.placeholders[n],t.placeholders[n])))return null;for(var i in t.placeholders)(0,u.mQ)(t.placeholders,i)&&(r.placeholders[i]=t.placeholders[i]);return r}(e[i],t[a]))&&n.push(r);return n}function $(e,t,r,o){var u=[{placeholders:{}}];if(e instanceof b&&t instanceof b||e instanceof g&&t instanceof g){if(e instanceof b){if(e.op!==t.op||e.fn!==t.fn)return[]}else if(e instanceof g&&e.name!==t.name)return[];if(1===t.args.length&&1===e.args.length||!E(t,r)&&t.args.length===e.args.length||o){for(var c=[],l=0;l<e.args.length;l++){var p=$(e.args[l],t.args[l],r);if(0===p.length)break;c.push(p)}if(c.length!==e.args.length){if(!A(t,r)||1===e.args.length)return[];if(e.args.length>2)throw Error("permuting >2 commutative non-associative rule arguments not yet implemented");var f=$(e.args[0],t.args[1],r);if(0===f.length)return[];var d=$(e.args[1],t.args[0],r);if(0===d.length)return[];c=[f,d]}u=function(e){if(0===e.length)return e;for(var t=e.reduce(U),r=[],n={},i=0;i<t.length;i++){var a=JSON.stringify(t[i],w);n[a]||(n[a]=!0,r.push(t[i]))}return r}(c)}else if(t.args.length>=2&&2===e.args.length){for(var h=function(e,t){var r,n,i=[],a=O(e);if(A(e,t))for(var s=0;s<e.args.length;s++)(n=e.args.slice(0)).splice(s,1),r=1===n.length?n[0]:a(n),i.push(a([e.args[s],r]));else for(var o=1;o<e.args.length;o++){var u=e.args[0];o>1&&(u=a(e.args.slice(0,o))),r=1===(n=e.args.slice(o)).length?n[0]:a(n),i.push(a([u,r]))}return i}(t,r),v=[],y=0;y<h.length;y++){var x=$(e,h[y],r,!0);v=v.concat(x)}return v}else if(!(e.args.length>2))return[];else throw Error("Unexpected non-binary associative function: "+e.toString())}else if(e instanceof D){if(0===e.name.length)throw Error("Symbol in rule has 0 length...!?");if(q[e.name]){if(e.name!==t.name)return[]}else switch(e.name[1]>="a"&&e.name[1]<="z"?e.name.substring(0,2):e.name[0]){case"n":case"_p":u[0].placeholders[e.name]=t;break;case"c":case"cl":if(!(0,n.BA)(t))return[];u[0].placeholders[e.name]=t;break;case"v":if((0,n.BA)(t))return[];u[0].placeholders[e.name]=t;break;case"vl":if(!(0,n.li)(t))return[];u[0].placeholders[e.name]=t;break;case"cd":if(!i(t))return[];u[0].placeholders[e.name]=t;break;case"vd":if(i(t))return[];u[0].placeholders[e.name]=t;break;case"ce":if(!a(t))return[];u[0].placeholders[e.name]=t;break;case"ve":if(a(t))return[];u[0].placeholders[e.name]=t;break;default:throw Error("Invalid symbol in rule: "+e.name)}}else if(!(e instanceof m))return[];else if(!s(e.value,t.value))return[];return u}return P})},74929(e,t,r){"use strict";r.d(t,{Z:()=>c});var n=r(20296),i=r(14943),a=r(58321),s=r(93140);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=(0,a.P9)("simplifyUtil",["FunctionNode","OperatorNode","SymbolNode"],e=>{var{FunctionNode:t,OperatorNode:r,SymbolNode:n}=e,a="defaultF",o={add:{trivial:!0,total:!0,commutative:!0,associative:!0},unaryPlus:{trivial:!0,total:!0,commutative:!0,associative:!0},subtract:{trivial:!1,total:!0,commutative:!1,associative:!1},multiply:{trivial:!0,total:!0,commutative:!0,associative:!0},divide:{trivial:!1,total:!0,commutative:!1,associative:!1},paren:{trivial:!0,total:!0,commutative:!0,associative:!1},defaultF:{trivial:!1,total:!0,commutative:!1,associative:!1}};function c(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,n=a;if("string"==typeof e?n=e:(0,i.$$)(e)?n=e.fn.toString():(0,i.Px)(e)?n=e.name:(0,i.tv)(e)&&(n="paren"),(0,s.mQ)(r,n)){var u=r[n];if((0,s.mQ)(u,t))return u[t];if((0,s.mQ)(o,n))return o[n][t]}if((0,s.mQ)(r,a)){var c=r[a];return(0,s.mQ)(c,t)?c[t]:o[a][t]}if((0,s.mQ)(o,n)){var l=o[n];if((0,s.mQ)(l,t))return l[t]}return o[a][t]}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return c(e,"associative",t)}function p(e,t){var r,n=[],a=function(e){for(var t=0;t<e.args.length;t++){var s=e.args[t];(0,i.$$)(s)&&r===s.op?a(s):n.push(s)}};return l(e,t)?(r=e.op,a(e),n):e.args}function f(e){return(0,i.$$)(e)?function(t){try{return new r(e.op,e.fn,t,e.implicit)}catch(e){return console.error(e),[]}}:function(r){return new t(new n(e.name),r)}}return{createMakeNodeFunction:f,hasProperty:c,isCommutative:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return c(e,"commutative",t)},isAssociative:l,mergeContext:function(e,t){var r=u({},e);for(var n in t)(0,s.mQ)(e,n)?r[n]=u(u({},t[n]),e[n]):r[n]=t[n];return r},flatten:function e(t,r){if(!t.args||0===t.args.length)return t;t.args=p(t,r);for(var n=0;n<t.args.length;n++)e(t.args[n],r)},allChildren:p,unflattenr:function e(t,r){if(t.args&&0!==t.args.length){for(var n=f(t),i=t.args.length,a=0;a<i;a++)e(t.args[a],r);if(i>2&&l(t,r)){for(var s=t.args.pop();t.args.length>0;)s=n([t.args.pop(),s]);t.args=s.args}}},unflattenl:function e(t,r){if(t.args&&0!==t.args.length){for(var n=f(t),i=t.args.length,a=0;a<i;a++)e(t.args[a],r);if(i>2&&l(t,r)){for(var s=t.args.shift();t.args.length>0;)s=n([s,t.args.shift()]);t.args=s.args}}},defaultContext:o,realContext:{divide:{total:!1},log:{total:!1}},positiveContext:{subtract:{total:!1},abs:{trivial:!0},log:{total:!0}}}})},92506(e,t,r){"use strict";r.d(t,{E:()=>u});var n=r(14943),i=r(58321),a=r(51106),s=r(74929),o=r(76495),u=(0,i.P9)("simplifyConstant",["typed","config","mathWithTransform","matrix","isBounded","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],e=>{var{typed:t,config:r,mathWithTransform:i,matrix:u,isBounded:c,fraction:l,bignumber:p,AccessorNode:f,ArrayNode:d,ConstantNode:h,FunctionNode:m,IndexNode:g,ObjectNode:v,OperatorNode:y,SymbolNode:b}=e,{isCommutative:x,isAssociative:D,allChildren:w,createMakeNodeFunction:N}=(0,s.Z)({FunctionNode:m,OperatorNode:y,SymbolNode:b}),A=t("simplifyConstant",{Node:e=>C(_(e,{})),"Node, Object":function(e,t){return C(_(e,t))}});function E(e,t,r){try{return i[e].apply(null,t)}catch(a){return t=t.map(function e(t){return(0,n.fU)(t)?t.valueOf():t instanceof Array?t.map(e):(0,n.OA)(t)?u(e(t.valueOf())):t}),T(i[e].apply(null,t),r)}}var S=t({Fraction:function(e){var t=e=>"BigNumber"===r.number&&p?p(e):Number(e),n=e.s*e.n,i=n<0n?new y("-","unaryMinus",[new h(-t(n))]):new h(t(n));return 1n===e.d?i:new y("/","divide",[i,new h(t(e.d))])},number:function(e){return e<0?O(new h(-e)):new h(e)},BigNumber:function(e){return e<0?O(new h(-e)):new h(e)},bigint:function(e){return e<0n?O(new h(-e)):new h(e)},Complex:function(e){throw Error("Cannot convert Complex number to Node")},string:function(e){return new h(e)},Matrix:function(e){return new d(e.valueOf().map(e=>S(e)))}});function C(e){return(0,n.Ll)(e)?e:S(e)}function M(e,t){if(t&&!1!==t.exactFractions&&c(e)&&l){var r=l(e),n=t&&"number"==typeof t.fractionsLimit?t.fractionsLimit:1/0;if(r.valueOf()===e&&r.n<n&&r.d<n)return r}return e}var T=t({"string, Object":function(e,t){var n=(0,a.BC)(e,r);return"BigNumber"===n?(void 0===p&&(0,o.j9)(),p(e)):"bigint"===n?BigInt(e):"Fraction"===n?(void 0===l&&(0,o.Sw)(),l(e)):M(parseFloat(e),t)},"Fraction, Object":function(e,t){return e},"BigNumber, Object":function(e,t){return e},"number, Object":function(e,t){return M(e,t)},"bigint, Object":function(e,t){return e},"Complex, Object":function(e,t){return 0!==e.im?e:M(e.re,t)},"Matrix, Object":function(e,t){return u(M(e.valueOf()))},"Array, Object":function(e,t){return e.map(M)}});function O(e){return new y("-","unaryMinus",[e])}function F(e,t,r,i){var a=t.shift(),s=t.reduce((t,a)=>{if(!(0,n.Ll)(a)){var s=t.pop();if((0,n.Ll)(s))return[s,a];try{return t.push(E(e,[s,a],i)),t}catch(e){t.push(s)}}t.push(C(t.pop()));var o=1===t.length?t[0]:r(t);return[r([o,C(a)])]},[a]);return 1===s.length?s[0]:r([s[0],S(s[1])])}function _(e,t){switch(e.type){case"SymbolNode":return e;case"ConstantNode":switch(typeof e.value){case"number":case"bigint":return T(e.value,t);case"string":return e.value;default:if(!isNaN(e.value))return T(e.value,t)}return e;case"FunctionNode":if(i[e.name]&&i[e.name].rawArgs)return e;if(!["add","multiply"].includes(e.name)){var r=e.args.map(e=>_(e,t));if(!r.some(n.Ll))try{return E(e.name,r,t)}catch(e){}if("size"===e.name&&1===r.length&&(0,n.gO)(r[0])){for(var a=[],s=r[0];(0,n.gO)(s);)a.push(s.items.length),s=s.items[0];return u(a)}return new m(e.name,r.map(C))}case"OperatorNode":var o,c,l=e.fn.toString(),p=N(e);if((0,n.$$)(e)&&e.isUnary())o=[_(e.args[0],t)],c=(0,n.Ll)(o[0])?p(o):E(l,o,t);else if(D(e,t.context))if(o=(o=w(e,t.context)).map(e=>_(e,t)),x(l,t.context)){for(var y=[],b=[],S=0;S<o.length;S++)(0,n.Ll)(o[S])?b.push(o[S]):y.push(o[S]);y.length>1?(c=F(l,y,p,t),b.unshift(c),c=F(l,b,p,t)):c=F(l,o,p,t)}else c=F(l,o,p,t);else c=F(l,o=e.args.map(e=>_(e,t)),p,t);return c;case"ParenthesisNode":return _(e.content,t);case"AccessorNode":return function(e,t,r){if(!(0,n.$I)(t))return new f(C(e),C(t));if((0,n.gO)(e)||(0,n.OA)(e)){for(var i=Array.from(t.dimensions);i.length>0;)if((0,n.BA)(i[0])&&"string"!=typeof i[0].value){var a=T(i.shift().value,r);(0,n.gO)(e)?e=e.items[a-1]:(e=e.valueOf()[a-1])instanceof Array&&(e=u(e))}else if(i.length>1&&(0,n.BA)(i[1])&&"string"!=typeof i[1].value){var s=T(i[1].value,r),o=[],c=(0,n.gO)(e)?e.items:e.valueOf();for(var l of c)if((0,n.gO)(l))o.push(l.items[s-1]);else if((0,n.OA)(e))o.push(l[s-1]);else break;if(o.length===c.length)e=(0,n.gO)(e)?new d(o):u(o),i.splice(1,1);else break}else break;return i.length===t.dimensions.length?new f(C(e),t):i.length>0?(t=new g(i),new f(C(e),t)):e}if((0,n.GJ)(e)&&1===t.dimensions.length&&(0,n.BA)(t.dimensions[0])){var p=t.dimensions[0].value;return p in e.properties?e.properties[p]:new h}return new f(C(e),t)}(_(e.object,t),_(e.index,t),t);case"ArrayNode":var M=e.items.map(e=>_(e,t));if(M.some(n.Ll))return new d(M.map(C));return u(M);case"IndexNode":return new g(e.dimensions.map(e=>A(e,t)));case"ObjectNode":var O={};for(var B in e.properties)O[B]=A(e.properties[B],t);return new v(O);default:throw Error("Unimplemented node type in simplifyConstant: ".concat(e.type))}}return A})},42237(e,t,r){"use strict";r.d(t,{x:()=>u});var n=r(14943),i=r(60261),a=r(74929),s=r(58321),o="simplifyCore",u=(0,s.P9)(o,["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],e=>{var{typed:t,parse:r,equal:s,isZero:u,add:c,subtract:l,multiply:p,divide:f,pow:d,AccessorNode:h,ArrayNode:m,ConstantNode:g,FunctionNode:v,IndexNode:y,ObjectNode:b,OperatorNode:x,ParenthesisNode:D,SymbolNode:w}=e,N=new g(0),A=new g(1),E=new g(!0),S=new g(!1);function C(e){return(0,n.$$)(e)&&["and","not","or"].includes(e.op)}var{hasProperty:M,isCommutative:T}=(0,a.Z)({FunctionNode:v,OperatorNode:x,SymbolNode:w});function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t?t.context:void 0;if(M(e,"trivial",r)){if((0,n.Px)(e)&&1===e.args.length)return O(e.args[0],t);var a=!1,o=0;if(e.forEach(e=>{1==++o&&(a=O(e,t))}),1===o)return a}var c=e;if((0,n.Px)(c)){var l=(0,i.F5)(c.name);if(!l)return new v(O(c.fn),c.args.map(e=>O(e,t)));if(c.args.length>2&&M(c,"associative",r))for(;c.args.length>2;){var p=c.args.pop(),f=c.args.pop();c.args.push(new x(l,c.name,[p,f]))}c=new x(l,c.name,c.args)}if((0,n.$$)(c)&&c.isUnary()){var d=O(c.args[0],t);if("~"===c.op&&(0,n.$$)(d)&&d.isUnary()&&"~"===d.op||"not"===c.op&&(0,n.$$)(d)&&d.isUnary()&&"not"===d.op&&C(d.args[0]))return d.args[0];var g=!0;if("-"===c.op&&(0,n.$$)(d)&&(d.isBinary()&&"subtract"===d.fn&&(c=new x("-","subtract",[d.args[1],d.args[0]]),g=!1),d.isUnary()&&"-"===d.op))return d.args[0];if(g)return new x(c.op,c.fn,[d])}if((0,n.$$)(c)&&c.isBinary()){var D=O(c.args[0],t),w=O(c.args[1],t);if("+"===c.op){if((0,n.BA)(D)&&u(D.value))return w;if((0,n.BA)(w)&&u(w.value))return D;(0,n.$$)(w)&&w.isUnary()&&"-"===w.op&&(c=new x("-","subtract",[D,w=w.args[0]]))}if("-"===c.op)return(0,n.$$)(w)&&w.isUnary()&&"-"===w.op?O(new x("+","add",[D,w.args[0]]),t):(0,n.BA)(D)&&u(D.value)?O(new x("-","unaryMinus",[w])):(0,n.BA)(w)&&u(w.value)?D:new x(c.op,c.fn,[D,w]);if("*"===c.op){if((0,n.BA)(D)){if(u(D.value))return N;else if(s(D.value,1))return w}if((0,n.BA)(w)){if(u(w.value))return N;if(s(w.value,1))return D;if(T(c,r))return new x(c.op,c.fn,[w,D],c.implicit)}return new x(c.op,c.fn,[D,w],c.implicit)}if("/"===c.op)return(0,n.BA)(D)&&u(D.value)?N:(0,n.BA)(w)&&s(w.value,1)?D:new x(c.op,c.fn,[D,w]);if("^"===c.op&&(0,n.BA)(w)){if(u(w.value))return A;else if(s(w.value,1))return D}if("and"===c.op){if((0,n.BA)(D))if(!D.value)return S;else{if(C(w))return w;if((0,n.BA)(w))return w.value?E:S}if((0,n.BA)(w)){if(!w.value)return S;else if(C(D))return D}}if("or"===c.op){if((0,n.BA)(D)){if(D.value)return E;else if(C(w))return w}if((0,n.BA)(w)){if(w.value)return E;else if(C(D))return D}}return new x(c.op,c.fn,[D,w])}if((0,n.$$)(c))return new x(c.op,c.fn,c.args.map(e=>O(e,t)));if((0,n.gO)(c))return new m(c.items.map(e=>O(e,t)));if((0,n.AS)(c))return new h(O(c.object,t),O(c.index,t));if((0,n.$I)(c))return new y(c.dimensions.map(e=>O(e,t)));if((0,n.GJ)(c)){var F={};for(var _ in c.properties)F[_]=O(c.properties[_],t);return new b(F)}return c}return t(o,{Node:O,"Node,Object":O})})},86886(e,t,r){"use strict";r.d(t,{i:()=>s});var n=r(58321),i=r(96267),a="lsolve",s=(0,n.P9)(a,["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,divideScalar:n,multiplyScalar:s,subtractScalar:o,equalScalar:u,DenseMatrix:c}=e,l=(0,i.B)({DenseMatrix:c});return t(a,{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=(t=l(e,t,!0))._data,i=e._size[0],a=e._size[1],p=e._values,f=e._index,d=e._ptr,h=[],m=0;m<a;m++){var g=r[m][0]||0;if(u(g,0))h[m]=[0];else{for(var v=0,y=[],b=[],x=d[m],D=d[m+1],w=x;w<D;w++){var N=f[w];N===m?v=p[w]:N>m&&(y.push(p[w]),b.push(N))}if(u(v,0))throw Error("Linear system cannot be solved since matrix is singular");for(var A=n(g,v),E=0,S=b.length;E<S;E++){var C=b[E];r[C]=[o(r[C][0]||0,s(A,y[E]))]}h[m]=[A]}}return new c({data:h,size:[i,1]})}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return p(e,t)},"Array, Array | Matrix":function(e,t){return p(r(e),t).valueOf()}});function p(e,t){for(var r=(t=l(e,t,!0))._data,i=e._size[0],a=e._size[1],p=[],f=e._data,d=0;d<a;d++){var h=r[d][0]||0,m=void 0;if(u(h,0))m=0;else{var g=f[d][d];if(u(g,0))throw Error("Linear system cannot be solved since matrix is singular");m=n(h,g);for(var v=d+1;v<i;v++)r[v]=[o(r[v][0]||0,s(m,f[v][d]))]}p[d]=[m]}return new c({data:p,size:[i,1]})}})},93587(e,t,r){"use strict";r.d(t,{H:()=>s});var n=r(58321),i=r(96267),a="lsolveAll",s=(0,n.P9)(a,["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,divideScalar:n,multiplyScalar:s,subtractScalar:o,equalScalar:u,DenseMatrix:c}=e,l=(0,i.B)({DenseMatrix:c});return t(a,{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],i=e._size[0],a=e._size[1],p=e._values,f=e._index,d=e._ptr,h=0;h<a;h++)for(var m=r.length,g=0;g<m;g++){for(var v=r[g],y=[],b=[],x=d[h],D=d[h+1],w=0,N=x;N<D;N++){var A=f[N];A===h?w=p[N]:A>h&&(y.push(p[N]),b.push(A))}if(u(w,0))if(u(v[h],0)){if(0===g){var E=[...v];E[h]=1;for(var S=0,C=b.length;S<C;S++){var M=b[S];E[M]=o(E[M],y[S])}r.push(E)}}else{if(0===g)return[];r.splice(g,1),g-=1,m-=1}else{v[h]=n(v[h],w);for(var T=0,O=b.length;T<O;T++){var F=b[T];v[F]=o(v[F],s(v[h],y[T]))}}}return r.map(e=>new c({data:e.map(e=>[e]),size:[i,1]}))}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return p(e,t)},"Array, Array | Matrix":function(e,t){return p(r(e),t).map(e=>e.valueOf())}});function p(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],i=e._data,a=e._size[0],p=e._size[1],f=0;f<p;f++)for(var d=r.length,h=0;h<d;h++){var m=r[h];if(u(i[f][f],0))if(u(m[f],0)){if(0===h){var g=[...m];g[f]=1;for(var v=f+1;v<p;v++)g[v]=o(g[v],i[v][f]);r.push(g)}}else{if(0===h)return[];r.splice(h,1),h-=1,d-=1}else{m[f]=n(m[f],i[f][f]);for(var y=f+1;y<p;y++)m[y]=o(m[y],s(m[f],i[y][f]))}}return r.map(e=>new c({data:e.map(e=>[e]),size:[a,1]}))}})},53663(e,t,r){"use strict";r.d(t,{b:()=>u});var n=r(14943),i=r(58321),a=r(96267);function s(e,t){var r,n=t.length,i=[];if(e)for(r=0;r<n;r++)i[e[r]]=t[r];else for(r=0;r<n;r++)i[r]=t[r];return i}var o="lusolve",u=(0,i.P9)(o,["typed","matrix","lup","slu","usolve","lsolve","DenseMatrix"],e=>{var{typed:t,matrix:r,lup:i,slu:u,usolve:c,lsolve:l,DenseMatrix:p}=e,f=(0,a.B)({DenseMatrix:p});return t(o,{"Array, Array | Matrix":function(e,t){var n=i(e=r(e));return h(n.L,n.U,n.p,null,t).valueOf()},"DenseMatrix, Array | Matrix":function(e,t){var r=i(e);return h(r.L,r.U,r.p,null,t)},"SparseMatrix, Array | Matrix":function(e,t){var r=i(e);return h(r.L,r.U,r.p,null,t)},"SparseMatrix, Array | Matrix, number, number":function(e,t,r,n){var i=u(e,r,n);return h(i.L,i.U,i.p,i.q,t)},"Object, Array | Matrix":function(e,t){return h(e.L,e.U,e.p,e.q,t)}});function d(e){if((0,n.OA)(e))return e;if((0,n.cy)(e))return r(e);throw TypeError("Invalid Matrix LU decomposition")}function h(e,t,r,n,i){e=d(e),t=d(t),r&&((i=f(e,i,!0))._data=s(r,i._data));var a=c(t,l(e,i));return n&&(a._data=s(n,a._data)),a}})},76431(e,t,r){"use strict";r.d(t,{p:()=>s});var n=r(58321),i=r(96267),a="usolve",s=(0,n.P9)(a,["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,divideScalar:n,multiplyScalar:s,subtractScalar:o,equalScalar:u,DenseMatrix:c}=e,l=(0,i.B)({DenseMatrix:c});return t(a,{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=(t=l(e,t,!0))._data,i=e._size[0],a=e._size[1],p=e._values,f=e._index,d=e._ptr,h=[],m=a-1;m>=0;m--){var g=r[m][0]||0;if(u(g,0))h[m]=[0];else{for(var v=0,y=[],b=[],x=d[m],D=d[m+1],w=D-1;w>=x;w--){var N=f[w];N===m?v=p[w]:N<m&&(y.push(p[w]),b.push(N))}if(u(v,0))throw Error("Linear system cannot be solved since matrix is singular");for(var A=n(g,v),E=0,S=b.length;E<S;E++){var C=b[E];r[C]=[o(r[C][0],s(A,y[E]))]}h[m]=[A]}}return new c({data:h,size:[i,1]})}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return p(e,t)},"Array, Array | Matrix":function(e,t){return p(r(e),t).valueOf()}});function p(e,t){for(var r=(t=l(e,t,!0))._data,i=e._size[0],a=e._size[1],p=[],f=e._data,d=a-1;d>=0;d--){var h=r[d][0]||0,m=void 0;if(u(h,0))m=0;else{var g=f[d][d];if(u(g,0))throw Error("Linear system cannot be solved since matrix is singular");m=n(h,g);for(var v=d-1;v>=0;v--)r[v]=[o(r[v][0]||0,s(m,f[v][d]))]}p[d]=[m]}return new c({data:p,size:[i,1]})}})},54032(e,t,r){"use strict";r.d(t,{m:()=>s});var n=r(58321),i=r(96267),a="usolveAll",s=(0,n.P9)(a,["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,divideScalar:n,multiplyScalar:s,subtractScalar:o,equalScalar:u,DenseMatrix:c}=e,l=(0,i.B)({DenseMatrix:c});return t(a,{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],i=e._size[0],a=e._size[1],p=e._values,f=e._index,d=e._ptr,h=a-1;h>=0;h--)for(var m=r.length,g=0;g<m;g++){for(var v=r[g],y=[],b=[],x=d[h],D=d[h+1],w=0,N=D-1;N>=x;N--){var A=f[N];A===h?w=p[N]:A<h&&(y.push(p[N]),b.push(A))}if(u(w,0))if(u(v[h],0)){if(0===g){var E=[...v];E[h]=1;for(var S=0,C=b.length;S<C;S++){var M=b[S];E[M]=o(E[M],y[S])}r.push(E)}}else{if(0===g)return[];r.splice(g,1),g-=1,m-=1}else{v[h]=n(v[h],w);for(var T=0,O=b.length;T<O;T++){var F=b[T];v[F]=o(v[F],s(v[h],y[T]))}}}return r.map(e=>new c({data:e.map(e=>[e]),size:[i,1]}))}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return p(e,t)},"Array, Array | Matrix":function(e,t){return p(r(e),t).map(e=>e.valueOf())}});function p(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],i=e._data,a=e._size[0],p=e._size[1],f=p-1;f>=0;f--)for(var d=r.length,h=0;h<d;h++){var m=r[h];if(u(i[f][f],0))if(u(m[f],0)){if(0===h){var g=[...m];g[f]=1;for(var v=f-1;v>=0;v--)g[v]=o(g[v],i[v][f]);r.push(g)}}else{if(0===h)return[];r.splice(h,1),h-=1,d-=1}else{m[f]=n(m[f],i[f][f]);for(var y=f-1;y>=0;y--)m[y]=o(m[y],s(m[f],i[y][f]))}}return r.map(e=>new c({data:e.map(e=>[e]),size:[a,1]}))}})},96267(e,t,r){"use strict";r.d(t,{B:()=>s});var n=r(14943),i=r(35838),a=r(27716);function s(e){var{DenseMatrix:t}=e;return function(e,r,s){var o=e.size();if(2!==o.length)throw RangeError("Matrix must be two dimensional (size: "+(0,a.GP)(o)+")");var u=o[0];if(u!==o[1])throw RangeError("Matrix must be square (size: "+(0,a.GP)(o)+")");var c=[];if((0,n.OA)(r)){var l=r.size(),p=r._data;if(1===l.length){if(l[0]!==u)throw RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var f=0;f<u;f++)c[f]=[p[f]];return new t({data:c,size:[u,1],datatype:r._datatype})}if(2===l.length){if(l[0]!==u||1!==l[1])throw RangeError("Dimension mismatch. Matrix columns must match vector length.");if((0,n.zR)(r)){if(s){c=[];for(var d=0;d<u;d++)c[d]=[p[d][0]];return new t({data:c,size:[u,1],datatype:r._datatype})}return r}if((0,n.AF)(r)){for(var h=0;h<u;h++)c[h]=[0];for(var m=r._values,g=r._index,v=r._ptr,y=v[1],b=v[0];b<y;b++)c[g[b]][0]=m[b];return new t({data:c,size:[u,1],datatype:r._datatype})}}throw RangeError("Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.")}if((0,n.cy)(r)){var x=(0,i.LO)(r);if(1===x.length){if(x[0]!==u)throw RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var D=0;D<u;D++)c[D]=[r[D]];return new t({data:c,size:[u,1]})}if(2===x.length){if(x[0]!==u||1!==x[1])throw RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var w=0;w<u;w++)c[w]=[r[w][0]];return new t({data:c,size:[u,1]})}throw RangeError("Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.")}}}},18528(e,t,r){"use strict";r.d(t,{_:()=>a});var n=r(58321),i="sylvester",a=(0,n.P9)(i,["typed","schur","matrixFromColumns","matrix","multiply","range","concat","transpose","index","subset","add","subtract","identity","lusolve","abs"],e=>{var{typed:t,schur:r,matrixFromColumns:n,matrix:a,multiply:s,range:o,concat:u,transpose:c,index:l,subset:p,add:f,subtract:d,identity:h,lusolve:m,abs:g,config:v}=e;return t(i,{"Matrix, Matrix, Matrix":y,"Array, Matrix, Matrix":function(e,t,r){return y(a(e),t,r)},"Array, Array, Matrix":function(e,t,r){return y(a(e),a(t),r)},"Array, Matrix, Array":function(e,t,r){return y(a(e),t,a(r))},"Matrix, Array, Matrix":function(e,t,r){return y(e,a(t),r)},"Matrix, Array, Array":function(e,t,r){return y(e,a(t),a(r))},"Matrix, Matrix, Array":function(e,t,r){return y(e,t,a(r))},"Array, Array, Array":function(e,t,r){return y(a(e),a(t),a(r)).toArray()}});function y(e,t,i){for(var v=t.size()[0],y=e.size()[0],b=r(e),x=b.T,D=b.U,w=r(s(-1,t)),N=w.T,A=w.U,E=s(s(c(D),i),A),S=o(0,y),C=[],M=(e,t)=>u(e,t,1),T=(e,t)=>u(e,t,0),O=0;O<v;O++)if(O<v-1&&g(p(N,l(O+1,O)))>1e-5){for(var F=T(p(E,l(S,[O])),p(E,l(S,[O+1]))),_=0;_<O;_++)F=f(F,T(s(C[_],p(N,l(_,O))),s(C[_],p(N,l(_,O+1)))));var B=s(h(y),s(-1,p(N,l(O,O)))),P=s(h(y),s(-1,p(N,l(O+1,O)))),k=s(h(y),s(-1,p(N,l(O,O+1)))),q=s(h(y),s(-1,p(N,l(O+1,O+1)))),I=m(T(M(f(x,B),P),M(k,f(x,q))),F);C[O]=I.subset(l(o(0,y),[0])),C[O+1]=I.subset(l(o(y,2*y),[0])),O++}else{for(var R=p(E,l(S,[O])),z=0;z<O;z++)R=f(R,s(C[z],p(N,l(z,O))));var L=d(x,s(p(N,l(O,O)),h(y)));C[O]=m(L,R)}return s(D,s(a(n(...C)),c(A)))}})},65945(e,t,r){"use strict";r.d(t,{N:()=>s});var n=r(14943),i=r(58321),a="symbolicEqual",s=(0,i.P9)(a,["parse","simplify","typed","OperatorNode"],e=>{var{parse:t,simplify:r,typed:i,OperatorNode:s}=e;function o(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r(new s("-","subtract",[e,t]),{},i);return(0,n.BA)(a)&&!a.value}return i(a,{"Node, Node":o,"Node, Node, Object":o})})},93935(e,t,r){"use strict";r.d(t,{r:()=>s});var n=r(58321),i=r(76355),a=r(81976),s=(0,n.P9)("abs",["typed"],e=>{var{typed:t}=e;return t("abs",{number:a.gu,"Complex | BigNumber | Fraction | Unit":e=>e.abs(),bigint:e=>e<0n?-e:e,"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e,!0))})})},57896(e,t,r){"use strict";r.d(t,{W:()=>u});var n=r(58321),i=r(46540),a=r(97481),s=r(92723),o=r(38730),u=(0,n.P9)("add",["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix","concat"],e=>{var{typed:t,matrix:r,addScalar:n,equalScalar:u,DenseMatrix:c,SparseMatrix:l,concat:p}=e,f=(0,i.Z)({typed:t}),d=(0,a.c)({typed:t,equalScalar:u}),h=(0,s.A)({typed:t,DenseMatrix:c}),m=(0,o.$)({typed:t,matrix:r,concat:p});return t("add",{"any, any":n,"any, any, ...any":t.referToSelf(e=>(t,r,n)=>{for(var i=e(t,r),a=0;a<n.length;a++)i=e(i,n[a]);return i})},m({elop:n,DS:f,SS:d,Ss:h}))})},40340(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(58321),i=r(81976),a="addScalar",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{"number, number":i.LF,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"bigint, bigint":function(e,t){return e+t},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":t.referToSelf(e=>(r,n)=>{if(null===r.value||void 0===r.value)throw Error("Parameter x contains a unit with undefined value");if(null===n.value||void 0===n.value)throw Error("Parameter y contains a unit with undefined value");if(!r.equalBase(n))throw Error("Units do not match");var i=r.clone();return i.value=t.find(e,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i})})})},15988(e,t,r){"use strict";r.d(t,{q:()=>o});var n=r(58321),i=r(14943),a=r(81976),s="cbrt",o=(0,n.P9)(s,["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],e=>{var{config:t,typed:r,isNegative:n,unaryMinus:o,matrix:u,Complex:c,BigNumber:l,Fraction:p}=e;return r(s,{number:a.nA,Complex:f,"Complex, boolean":f,BigNumber:function(e){return e.cbrt()},Unit:function(e){if(e.value&&(0,i.Zd)(e.value)){var t=e.clone();return t.value=1,(t=t.pow(1/3)).value=f(e.value),t}var r,a=n(e.value);a&&(e.value=o(e.value)),r=(0,i.C4)(e.value)?new l(1).div(3):(0,i.fU)(e.value)?new p(1,3):1/3;var s=e.pow(r);return a&&(s.value=o(s.value)),s}});function f(e,r){var n=e.arg()/3,i=e.abs(),s=new c((0,a.nA)(i),0).mul(new c(0,n).exp());if(!r)return s;var o=[s,new c((0,a.nA)(i),0).mul(new c(0,n+2*Math.PI/3).exp()),new c((0,a.nA)(i),0).mul(new c(0,n-2*Math.PI/3).exp())];return"Array"===t.matrix?o:u(o)}})},52402(e,t,r){"use strict";r.d(t,{K:()=>h});var n=r(76582),i=r(58321),a=r(76355),s=r(51106),o=r(46052),u=r(59755),c=r(34900),l=r(72347),p="ceil",f=new n.A(10),d=(0,i.P9)(p,["typed","config","round"],e=>{var{typed:t,config:r,round:n}=e;function i(e){var t=Math.ceil(e),i=n(e);return t===i?t:(0,s.q8)(e,i,r.relTol,r.absTol)&&!(0,s.q8)(e,t,r.relTol,r.absTol)?i:t}return t(p,{number:i,"number, number":function(e,t){if(!(0,s.YN)(t))throw RangeError("number of decimals in function ceil must be an integer");if(t<0||t>15)throw RangeError("number of decimals in ceil number must be in range 0-15");var r=10**t;return i(e*r)/r}})}),h=(0,i.P9)(p,["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],e=>{var{typed:t,config:r,round:n,matrix:i,equalScalar:s,zeros:p,DenseMatrix:h}=e,m=(0,u.A)({typed:t,equalScalar:s}),g=(0,c.f)({typed:t,DenseMatrix:h}),v=(0,l.A)({typed:t}),y=d({typed:t,config:r,round:n});function b(e){var t=(e,t)=>(0,o.q)(e,t,r.relTol,r.absTol),i=e.ceil(),a=n(e);return i.eq(a)?i:t(e,a)&&!t(e,i)?a:i}return t("ceil",{number:y.signatures.number,"number,number":y.signatures["number,number"],Complex:function(e){return e.ceil()},"Complex, number":function(e,t){return e.ceil(t)},"Complex, BigNumber":function(e,t){return e.ceil(t.toNumber())},BigNumber:b,"BigNumber, BigNumber":function(e,t){var r=f.pow(t);return b(e.mul(r)).div(r)},bigint:e=>e,"bigint, number":(e,t)=>e,"bigint, BigNumber":(e,t)=>e,Fraction:function(e){return e.ceil()},"Fraction, number":function(e,t){return e.ceil(t)},"Fraction, BigNumber":function(e,t){return e.ceil(t.toNumber())},"Unit, number, Unit":t.referToSelf(e=>function(t,r,n){var i=t.toNumeric(n);return n.multiply(e(i,r))}),"Unit, BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>e(t,r.toNumber(),n)),"Array | Matrix, number | BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>(0,a.Bl)(t,t=>e(t,r,n),!0)),"Array | Matrix | Unit, Unit":t.referToSelf(e=>(t,r)=>e(t,0,r)),"Array | Matrix":t.referToSelf(e=>t=>(0,a.Bl)(t,e,!0)),"Array, number | BigNumber":t.referToSelf(e=>(t,r)=>(0,a.Bl)(t,t=>e(t,r),!0)),"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>m(t,r,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>v(t,r,e,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(e=>(t,r)=>v(i(r),t,e,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(e=>(t,r)=>s(t,0)?p(r.size(),r.storage()):"dense"===r.storage()?v(r,t,e,!0):g(r,t,e,!0))})})},45857(e,t,r){"use strict";r.d(t,{Y:()=>s});var n=r(58321),i=r(81976),a="cube",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{number:i.b7,Complex:function(e){return e.mul(e).mul(e)},BigNumber:function(e){return e.times(e).times(e)},bigint:function(e){return e*e*e},Fraction:function(e){return e.pow(3)},Unit:function(e){return e.pow(3)}})})},8490(e,t,r){"use strict";r.d(t,{G:()=>o});var n=r(58321),i=r(93140),a=r(59755),s=r(72347),o=(0,n.P9)("divide",["typed","matrix","multiply","equalScalar","divideScalar","inv"],e=>{var{typed:t,matrix:r,multiply:n,equalScalar:o,divideScalar:u,inv:c}=e,l=(0,a.A)({typed:t,equalScalar:o}),p=(0,s.A)({typed:t});return t("divide",(0,i.X$)({"Array | Matrix, Array | Matrix":function(e,t){return n(e,c(t))},"DenseMatrix, any":function(e,t){return p(e,t,u,!1)},"SparseMatrix, any":function(e,t){return l(e,t,u,!1)},"Array, any":function(e,t){return p(r(e),t,u,!1).valueOf()},"any, Array | Matrix":function(e,t){return n(e,c(t))}},u.signatures))})},93170(e,t,r){"use strict";r.d(t,{Q:()=>a});var n=r(58321),i="divideScalar",a=(0,n.P9)(i,["typed","numeric"],e=>{var{typed:t,numeric:r}=e;return t(i,{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"bigint, bigint":function(e,t){return e/t},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Complex | Fraction | BigNumber | Unit":(e,t)=>e.divide(t),"number | Fraction | Complex | BigNumber, Unit":(e,t)=>t.divideInto(e)})})},20161(e,t,r){"use strict";r.d(t,{F:()=>p});var n=r(58321),i=r(47308),a=r(60361),s=r(15572),o=r(59755),u=r(34900),c=r(38730),l="dotDivide",p=(0,n.P9)(l,["typed","matrix","equalScalar","divideScalar","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:n,divideScalar:p,DenseMatrix:f,concat:d,SparseMatrix:h}=e,m=(0,i.Z)({typed:t,equalScalar:n}),g=(0,a.O)({typed:t}),v=(0,s.v)({typed:t,SparseMatrix:h}),y=(0,o.A)({typed:t,equalScalar:n}),b=(0,u.f)({typed:t,DenseMatrix:f}),x=(0,c.$)({typed:t,matrix:r,concat:d});return t(l,x({elop:p,SS:v,DS:g,SD:m,Ss:y,sS:b}))})},79812(e,t,r){"use strict";r.d(t,{S:()=>c});var n=r(58321),i=r(47308),a=r(47726),s=r(59755),o=r(38730),u="dotMultiply",c=(0,n.P9)(u,["typed","matrix","equalScalar","multiplyScalar","concat"],e=>{var{typed:t,matrix:r,equalScalar:n,multiplyScalar:c,concat:l}=e,p=(0,i.Z)({typed:t,equalScalar:n}),f=(0,a.h)({typed:t,equalScalar:n}),d=(0,s.A)({typed:t,equalScalar:n}),h=(0,o.$)({typed:t,matrix:r,concat:l});return t(u,h({elop:c,SS:f,DS:p,Ss:d}))})},85712(e,t,r){"use strict";r.d(t,{U:()=>l});var n=r(58321),i=r(60361),a=r(15572),s=r(59755),o=r(34900),u=r(38730),c="dotPow",l=(0,n.P9)(c,["typed","equalScalar","matrix","pow","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,equalScalar:r,matrix:n,pow:l,DenseMatrix:p,concat:f,SparseMatrix:d}=e,h=(0,i.O)({typed:t}),m=(0,a.v)({typed:t,SparseMatrix:d}),g=(0,s.A)({typed:t,equalScalar:r}),v=(0,o.f)({typed:t,DenseMatrix:p}),y=(0,u.$)({typed:t,matrix:n,concat:f}),b={};for(var x in l.signatures)!Object.prototype.hasOwnProperty.call(l.signatures,x)||x.includes("Matrix")||x.includes("Array")||(b[x]=l.signatures[x]);var D=t(b);return t(c,y({elop:D,SS:m,DS:h,Ss:g,sS:v}))})},92340(e,t,r){"use strict";r.d(t,{I:()=>a});var n=r(58321),i=r(81976),a=(0,n.P9)("exp",["typed"],e=>{var{typed:t}=e;return t("exp",{number:i.lq,Complex:function(e){return e.exp()},BigNumber:function(e){return e.exp()}})})},2486(e,t,r){"use strict";r.d(t,{U:()=>s});var n=r(58321),i=r(81976),a="expm1",s=(0,n.P9)(a,["typed","Complex"],e=>{var{typed:t,Complex:r}=e;return t(a,{number:i.l3,Complex:function(e){var t=Math.exp(e.re);return new r(t*Math.cos(e.im)-1,t*Math.sin(e.im))},BigNumber:function(e){return e.exp().minus(1)}})})},8808(e,t,r){"use strict";r.d(t,{Y:()=>u});var n=r(58321),i=r(76355),a=r(34900),s=r(72347),o=(0,n.P9)("fix",["typed","ceil","floor"],e=>{var{typed:t,ceil:r,floor:n}=e;return t("fix",{number:function(e){return e>0?n(e):r(e)},"number, number":function(e,t){return e>0?n(e,t):r(e,t)}})}),u=(0,n.P9)("fix",["typed","Complex","matrix","ceil","floor","equalScalar","zeros","DenseMatrix"],e=>{var{typed:t,Complex:r,matrix:n,ceil:u,floor:c,equalScalar:l,zeros:p,DenseMatrix:f}=e,d=(0,a.f)({typed:t,DenseMatrix:f}),h=(0,s.A)({typed:t}),m=o({typed:t,ceil:u,floor:c});return t("fix",{number:m.signatures.number,"number, number | BigNumber":m.signatures["number,number"],Complex:function(e){return new r(e.re>0?Math.floor(e.re):Math.ceil(e.re),e.im>0?Math.floor(e.im):Math.ceil(e.im))},"Complex, number":function(e,t){return new r(e.re>0?c(e.re,t):u(e.re,t),e.im>0?c(e.im,t):u(e.im,t))},"Complex, BigNumber":function(e,t){var n=t.toNumber();return new r(e.re>0?c(e.re,n):u(e.re,n),e.im>0?c(e.im,n):u(e.im,n))},BigNumber:function(e){return e.isNegative()?u(e):c(e)},"BigNumber, number | BigNumber":function(e,t){return e.isNegative()?u(e,t):c(e,t)},bigint:e=>e,"bigint, number":(e,t)=>e,"bigint, BigNumber":(e,t)=>e,Fraction:function(e){return e.s<0n?e.ceil():e.floor()},"Fraction, number | BigNumber":function(e,t){return e.s<0n?u(e,t):c(e,t)},"Unit, number, Unit":t.referToSelf(e=>function(t,r,n){var i=t.toNumeric(n);return n.multiply(e(i,r))}),"Unit, BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>e(t,r.toNumber(),n)),"Array | Matrix, number | BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>(0,i.Bl)(t,t=>e(t,r,n),!0)),"Array | Matrix | Unit, Unit":t.referToSelf(e=>(t,r)=>e(t,0,r)),"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e,!0)),"Array | Matrix, number | BigNumber":t.referToSelf(e=>(t,r)=>(0,i.Bl)(t,t=>e(t,r),!0)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(e=>(t,r)=>h(n(r),t,e,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(e=>(t,r)=>l(t,0)?p(r.size(),r.storage()):"dense"===r.storage()?h(r,t,e,!0):d(r,t,e,!0))})})},54449(e,t,r){"use strict";r.d(t,{$:()=>h});var n=r(76582),i=r(58321),a=r(76355),s=r(51106),o=r(46052),u=r(59755),c=r(34900),l=r(72347),p="floor",f=new n.A(10),d=(0,i.P9)(p,["typed","config","round"],e=>{var{typed:t,config:r,round:n}=e;function i(e){var t=Math.floor(e),i=n(e);return t===i?t:(0,s.q8)(e,i,r.relTol,r.absTol)&&!(0,s.q8)(e,t,r.relTol,r.absTol)?i:t}return t(p,{number:i,"number, number":function(e,t){if(!(0,s.YN)(t))throw RangeError("number of decimals in function floor must be an integer");if(t<0||t>15)throw RangeError("number of decimals in floor number must be in range 0 - 15");var r=10**t;return i(e*r)/r}})}),h=(0,i.P9)(p,["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],e=>{var{typed:t,config:r,round:n,matrix:i,equalScalar:s,zeros:p,DenseMatrix:h}=e,m=(0,u.A)({typed:t,equalScalar:s}),g=(0,c.f)({typed:t,DenseMatrix:h}),v=(0,l.A)({typed:t}),y=d({typed:t,config:r,round:n});function b(e){var t=(e,t)=>(0,o.q)(e,t,r.relTol,r.absTol),i=e.floor(),a=n(e);return i.eq(a)?i:t(e,a)&&!t(e,i)?a:i}return t("floor",{number:y.signatures.number,"number,number":y.signatures["number,number"],Complex:function(e){return e.floor()},"Complex, number":function(e,t){return e.floor(t)},"Complex, BigNumber":function(e,t){return e.floor(t.toNumber())},BigNumber:b,"BigNumber, BigNumber":function(e,t){var r=f.pow(t);return b(e.mul(r)).div(r)},bigint:e=>e,"bigint, number":(e,t)=>e,"bigint, BigNumber":(e,t)=>e,Fraction:function(e){return e.floor()},"Fraction, number":function(e,t){return e.floor(t)},"Fraction, BigNumber":function(e,t){return e.floor(t.toNumber())},"Unit, number, Unit":t.referToSelf(e=>function(t,r,n){var i=t.toNumeric(n);return n.multiply(e(i,r))}),"Unit, BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>e(t,r.toNumber(),n)),"Array | Matrix, number | BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>(0,a.Bl)(t,t=>e(t,r,n),!0)),"Array | Matrix | Unit, Unit":t.referToSelf(e=>(t,r)=>e(t,0,r)),"Array | Matrix":t.referToSelf(e=>t=>(0,a.Bl)(t,e,!0)),"Array, number | BigNumber":t.referToSelf(e=>(t,r)=>(0,a.Bl)(t,t=>e(t,r),!0)),"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>m(t,r,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>v(t,r,e,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(e=>(t,r)=>v(i(r),t,e,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(e=>(t,r)=>s(t,0)?p(r.size(),r.storage()):"dense"===r.storage()?v(r,t,e,!0):g(r,t,e,!0))})})},59253(e,t,r){"use strict";r.d(t,{p:()=>h});var n=r(51106),i=r(58321),a=r(94867),s=r(46540),o=r(97481),u=r(92723),c=r(38730),l=r(60928),p="number | BigNumber | Fraction | Matrix | Array",f="".concat(p,", ").concat(p,", ...").concat(p);function d(e){return!e.some(e=>Array.isArray(e))}var h=(0,i.P9)("gcd",["typed","config","round","matrix","equalScalar","zeros","BigNumber","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,config:i,round:p,equalScalar:h,zeros:m,BigNumber:g,DenseMatrix:v,concat:y}=e,b=(0,a.n)({typed:t,config:i,round:p,matrix:r,equalScalar:h,zeros:m,DenseMatrix:v,concat:y}),x=(0,s.Z)({typed:t}),D=(0,o.c)({typed:t,equalScalar:h}),w=(0,u.A)({typed:t,DenseMatrix:v}),N=(0,c.$)({typed:t,matrix:r,concat:y});return t("gcd",{"number, number":function(e,t){var r;if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Parameters in function gcd must be integer numbers");for(;0!==t;)r=b(e,t),e=t,t=r;return e<0?-e:e},"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw Error("Parameters in function gcd must be integer numbers");for(var r=new g(0);!t.isZero();){var n=b(e,t);e=t,t=n}return e.lt(r)?e.neg():e},"Fraction, Fraction":(e,t)=>e.gcd(t)},N({SS:D,DS:x,Ss:w}),{[f]:t.referToSelf(e=>(t,r,n)=>{for(var i=e(t,r),a=0;a<n.length;a++)i=e(i,n[a]);return i}),Array:t.referToSelf(e=>t=>{if(1===t.length&&Array.isArray(t[0])&&d(t[0]))return e(...t[0]);if(d(t))return e(...t);throw new l.X("gcd() supports only 1d matrices!")}),Matrix:t.referToSelf(e=>t=>e(t.toArray()))})})},53253(e,t,r){"use strict";r.d(t,{r:()=>o});var n=r(58321),i=r(35838),a=r(14943),s="hypot",o=(0,n.P9)(s,["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],e=>{var{typed:t,abs:r,addScalar:n,divideScalar:o,multiplyScalar:u,sqrt:c,smaller:l,isPositive:p}=e;return t(s,{"... number | BigNumber":f,Array:f,Matrix:e=>f((0,i.Bq)(e.toArray(),!0))});function f(e){for(var t=0,i=0,s=0;s<e.length;s++){if((0,a.Zd)(e[s]))throw TypeError("Unexpected type of argument to hypot");var f=r(e[s]);l(i,f)?(t=n(t=u(t,u(o(i,f),o(i,f))),1),i=f):t=n(t,p(f)?u(o(f,i),o(f,i)):f)}return u(i,c(t))}})},39010(e,t,r){"use strict";r.d(t,{o:()=>a});var n=r(58321),i="invmod",a=(0,n.P9)(i,["typed","config","BigNumber","xgcd","equal","smaller","mod","add","isInteger"],e=>{var{typed:t,config:r,BigNumber:n,xgcd:a,equal:s,smaller:o,mod:u,add:c,isInteger:l}=e;return t(i,{"number, number":p,"BigNumber, BigNumber":p});function p(e,t){if(!l(e)||!l(t))throw Error("Parameters in function invmod must be integer numbers");if(e=u(e,t),s(t,0))throw Error("Divisor must be non zero");var r=a(e,t),[i,p]=r=r.valueOf();return s(i,n(1))?(o(p=u(p,t),n(0))&&(p=c(p,t)),p):NaN}})},30455(e,t,r){"use strict";r.d(t,{D:()=>c});var n=r(58321),i=r(47308),a=r(45651),s=r(59755),o=r(38730),u=r(81976),c=(0,n.P9)("lcm",["typed","matrix","equalScalar","concat"],e=>{var{typed:t,matrix:r,equalScalar:n,concat:c}=e,l=(0,i.Z)({typed:t,equalScalar:n}),p=(0,a.S)({typed:t,equalScalar:n}),f=(0,s.A)({typed:t,equalScalar:n}),d=(0,o.$)({typed:t,matrix:r,concat:c}),h="number | BigNumber | Fraction | Matrix | Array",m={};return m["".concat(h,", ").concat(h,", ...").concat(h)]=t.referToSelf(e=>(t,r,n)=>{for(var i=e(t,r),a=0;a<n.length;a++)i=e(i,n[a]);return i}),t("lcm",{"number, number":u.qV,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw Error("Parameters in function lcm must be integer numbers");if(e.isZero())return e;if(t.isZero())return t;for(var r=e.times(t);!t.isZero();){var n=t;t=e.mod(n),e=n}return r.div(e).abs()},"Fraction, Fraction":(e,t)=>e.lcm(t)},d({SS:p,DS:l,Ss:f}),m)})},94861(e,t,r){"use strict";r.d(t,{h:()=>o});var n=r(58321),i=r(53676),a=r(81976),s=Math.log(16),o=(0,n.P9)("log",["config","typed","typeOf","divideScalar","Complex"],e=>{var{typed:t,typeOf:r,config:n,divideScalar:o,Complex:u}=e;function c(e){return e.log()}function l(e){return c(new u(e,0))}return t("log",{number:function(e){return e>=0||n.predictable?(0,a.gn)(e):l(e)},bigint:(0,i.C)(s,a.gn,n,l),Complex:c,BigNumber:function(e){return!e.isNegative()||n.predictable?e.ln():l(e.toNumber())},"any, any":t.referToSelf(e=>(t,n)=>{if("Fraction"===r(t)&&"Fraction"===r(n)){var i=t.log(n);if(null!==i)return i}return o(e(t),e(n))})})})},49016(e,t,r){"use strict";r.d(t,{e:()=>c});var n=r(81976),i=r(53676),a=r(76355),s=r(58321),o="log10",u=(0,n.Nk)(16),c=(0,s.P9)(o,["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:s}=e;function c(e){return e.log().div(Math.LN10)}function l(e){return c(new s(e,0))}return t(o,{number:function(e){return e>=0||r.predictable?(0,n.Nk)(e):l(e)},bigint:(0,i.C)(u,n.Nk,r,l),Complex:c,BigNumber:function(e){return!e.isNegative()||r.predictable?e.log():l(e.toNumber())},"Array | Matrix":t.referToSelf(e=>t=>(0,a.Bl)(t,e))})})},33144(e,t,r){"use strict";r.d(t,{s:()=>o});var n=r(58321),i=r(76355),a=r(51106),s="log1p",o=(0,n.P9)(s,["typed","config","divideScalar","log","Complex"],e=>{var{typed:t,config:r,divideScalar:n,log:o,Complex:u}=e;return t(s,{number:function(e){return e>=-1||r.predictable?(0,a.Kk)(e):c(new u(e,0))},Complex:c,BigNumber:function(e){var t=e.plus(1);return!t.isNegative()||r.predictable?t.ln():c(new u(e.toNumber(),0))},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e)),"any, any":t.referToSelf(e=>(t,r)=>n(e(t),o(r)))});function c(e){var t=e.re+1;return new u(Math.log(Math.sqrt(t*t+e.im*e.im)),Math.atan2(e.im,t))}})},41311(e,t,r){"use strict";r.d(t,{j:()=>u});var n=r(81976),i=r(53676),a=r(76355),s=r(58321),o="log2",u=(0,s.P9)(o,["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:s}=e;function u(e){return c(new s(e,0))}return t(o,{number:function(e){return e>=0||r.predictable?(0,n.qc)(e):u(e)},bigint:(0,i.C)(4,n.qc,r,u),Complex:c,BigNumber:function(e){return!e.isNegative()||r.predictable?e.log(2):u(e.toNumber())},"Array | Matrix":t.referToSelf(e=>t=>(0,a.Bl)(t,e))});function c(e){var t=Math.sqrt(e.re*e.re+e.im*e.im);return new s(Math.log2?Math.log2(t):Math.log(t)/Math.LN2,Math.atan2(e.im,e.re)/Math.LN2)}})},94867(e,t,r){"use strict";r.d(t,{n:()=>p});var n=r(58321),i=r(54449),a=r(47308),s=r(60361),o=r(1232),u=r(59755),c=r(34900),l=r(38730),p=(0,n.P9)("mod",["typed","config","round","matrix","equalScalar","zeros","DenseMatrix","concat"],e=>{var{typed:t,config:r,round:n,matrix:p,equalScalar:f,zeros:d,DenseMatrix:h,concat:m}=e,g=(0,i.$)({typed:t,config:r,round:n,matrix:p,equalScalar:f,zeros:d,DenseMatrix:h}),v=(0,a.Z)({typed:t,equalScalar:f}),y=(0,s.O)({typed:t}),b=(0,o.H)({typed:t,equalScalar:f}),x=(0,u.A)({typed:t,equalScalar:f}),D=(0,c.f)({typed:t,DenseMatrix:h}),w=(0,l.$)({typed:t,matrix:p,concat:m});return t("mod",{"number, number":function(e,t){return 0===t?e:e-t*g(e/t)},"BigNumber, BigNumber":function(e,t){return t.isZero()?e:e.sub(t.mul(g(e.div(t))))},"bigint, bigint":function(e,t){if(0n===t)return e;if(e<0){var r=e%t;return 0n===r?r:r+t}return e%t},"Fraction, Fraction":function(e,t){return t.equals(0)?e:e.sub(t.mul(g(e.div(t))))}},w({SS:b,DS:y,SD:v,Ss:x,sS:D}))})},42639(e,t,r){"use strict";r.d(t,{F:()=>c});var n=r(58321),i=r(14943),a=r(35838),s=r(59755),o=r(72347),u="multiply",c=(0,n.P9)(u,["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],e=>{var{typed:t,matrix:r,addScalar:n,multiplyScalar:c,equalScalar:l,dot:p}=e,f=(0,s.A)({typed:t,equalScalar:l}),d=(0,o.A)({typed:t});function h(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(e[0]!==t[0])throw RangeError("Dimension mismatch in multiplication. Vector length ("+e[0]+") must match Matrix rows ("+t[0]+")");break;default:throw Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw RangeError("Dimension mismatch in multiplication. Matrix columns ("+e[1]+") must match Vector length ("+t[0]+")");break;case 2:if(e[1]!==t[0])throw RangeError("Dimension mismatch in multiplication. Matrix A columns ("+e[1]+") must match Matrix B rows ("+t[0]+")");break;default:throw Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;default:throw Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+e.length+" dimensions)")}}var m=t("_multiplyMatrixVector",{"DenseMatrix, any":function(e,r){var i,a=e._data,s=e._size,o=e._datatype||e.getDataType(),u=r._data,l=r._datatype||r.getDataType(),p=s[0],f=s[1],d=n,h=c;o&&l&&o===l&&"string"==typeof o&&"mixed"!==o&&(i=o,d=t.find(n,[i,i]),h=t.find(c,[i,i]));for(var m=[],g=0;g<p;g++){for(var v=a[g],y=h(v[0],u[0]),b=1;b<f;b++)y=d(y,h(v[b],u[b]));m[g]=y}return e.createDenseMatrix({data:m,size:[p],datatype:o===e._datatype&&l===r._datatype?i:void 0})},"SparseMatrix, any":function(e,r){var i,a=e._values,s=e._index,o=e._ptr,u=e._datatype||void 0===e._data?e._datatype:e.getDataType();if(!a)throw Error("Cannot multiply Pattern only Matrix times Dense Matrix");var p=r._data,f=r._datatype||r.getDataType(),d=e._size[0],h=r._size[0],m=[],g=[],v=[],y=n,b=c,x=l,D=0;u&&f&&u===f&&"string"==typeof u&&"mixed"!==u&&(i=u,y=t.find(n,[i,i]),b=t.find(c,[i,i]),x=t.find(l,[i,i]),D=t.convert(0,i));var w=[],N=[];v[0]=0;for(var A=0;A<h;A++){var E=p[A];if(!x(E,D))for(var S=o[A],C=o[A+1],M=S;M<C;M++){var T=s[M];N[T]?w[T]=y(w[T],b(E,a[M])):(N[T]=!0,g.push(T),w[T]=b(E,a[M]))}}for(var O=g.length,F=0;F<O;F++){var _=g[F];m[F]=w[_]}return v[1]=g.length,e.createSparseMatrix({values:m,index:g,ptr:v,size:[d,1],datatype:u===e._datatype&&f===r._datatype?i:void 0})}}),g=t("_multiplyMatrixMatrix",{"DenseMatrix, DenseMatrix":function(e,r){var i,a=e._data,s=e._size,o=e._datatype||e.getDataType(),u=r._data,l=r._size,p=r._datatype||r.getDataType(),f=s[0],d=s[1],h=l[1],m=n,g=c;o&&p&&o===p&&"string"==typeof o&&"mixed"!==o&&"mixed"!==o&&(i=o,m=t.find(n,[i,i]),g=t.find(c,[i,i]));for(var v=[],y=0;y<f;y++){var b=a[y];v[y]=[];for(var x=0;x<h;x++){for(var D=g(b[0],u[0][x]),w=1;w<d;w++)D=m(D,g(b[w],u[w][x]));v[y][x]=D}}return e.createDenseMatrix({data:v,size:[f,h],datatype:o===e._datatype&&p===r._datatype?i:void 0})},"DenseMatrix, SparseMatrix":function(e,r){var i,a=e._data,s=e._size,o=e._datatype||e.getDataType(),u=r._values,p=r._index,f=r._ptr,d=r._size,h=r._datatype||void 0===r._data?r._datatype:r.getDataType();if(!u)throw Error("Cannot multiply Dense Matrix times Pattern only Matrix");var m=s[0],g=d[1],v=n,y=c,b=l,x=0;o&&h&&o===h&&"string"==typeof o&&"mixed"!==o&&(i=o,v=t.find(n,[i,i]),y=t.find(c,[i,i]),b=t.find(l,[i,i]),x=t.convert(0,i));for(var D=[],w=[],N=[],A=r.createSparseMatrix({values:D,index:w,ptr:N,size:[m,g],datatype:o===e._datatype&&h===r._datatype?i:void 0}),E=0;E<g;E++){N[E]=w.length;var S=f[E],C=f[E+1];if(C>S)for(var M=0,T=0;T<m;T++){for(var O=T+1,F=void 0,_=S;_<C;_++){var B=p[_];M!==O?(F=y(a[T][B],u[_]),M=O):F=v(F,y(a[T][B],u[_]))}M!==O||b(F,x)||(w.push(T),D.push(F))}}return N[g]=w.length,A},"SparseMatrix, DenseMatrix":function(e,r){var i,a=e._values,s=e._index,o=e._ptr,u=e._datatype||void 0===e._data?e._datatype:e.getDataType();if(!a)throw Error("Cannot multiply Pattern only Matrix times Dense Matrix");var p=r._data,f=r._datatype||r.getDataType(),d=e._size[0],h=r._size[0],m=r._size[1],g=n,v=c,y=l,b=0;u&&f&&u===f&&"string"==typeof u&&"mixed"!==u&&(i=u,g=t.find(n,[i,i]),v=t.find(c,[i,i]),y=t.find(l,[i,i]),b=t.convert(0,i));for(var x=[],D=[],w=[],N=e.createSparseMatrix({values:x,index:D,ptr:w,size:[d,m],datatype:u===e._datatype&&f===r._datatype?i:void 0}),A=[],E=[],S=0;S<m;S++){w[S]=D.length;for(var C=S+1,M=0;M<h;M++){var T=p[M][S];if(!y(T,b))for(var O=o[M],F=o[M+1],_=O;_<F;_++){var B=s[_];E[B]!==C?(E[B]=C,D.push(B),A[B]=v(T,a[_])):A[B]=g(A[B],v(T,a[_]))}}for(var P=w[S],k=D.length,q=P;q<k;q++){var I=D[q];x[q]=A[I]}}return w[m]=D.length,N},"SparseMatrix, SparseMatrix":function(e,r){var i,a,s,o,u,l,p,f,d,h=e._values,m=e._index,g=e._ptr,v=e._datatype||void 0===e._data?e._datatype:e.getDataType(),y=r._values,b=r._index,x=r._ptr,D=r._datatype||void 0===r._data?r._datatype:r.getDataType(),w=e._size[0],N=r._size[1],A=h&&y,E=n,S=c;v&&D&&v===D&&"string"==typeof v&&"mixed"!==v&&(i=v,E=t.find(n,[i,i]),S=t.find(c,[i,i]));for(var C=A?[]:void 0,M=[],T=[],O=e.createSparseMatrix({values:C,index:M,ptr:T,size:[w,N],datatype:v===e._datatype&&D===r._datatype?i:void 0}),F=A?[]:void 0,_=[],B=0;B<N;B++){T[B]=M.length;var P=B+1;for(l=x[B],p=x[B+1],u=l;u<p;u++)if(d=b[u],A)for(s=g[d],o=g[d+1],a=s;a<o;a++)_[f=m[a]]!==P?(_[f]=P,M.push(f),F[f]=S(y[u],h[a])):F[f]=E(F[f],S(y[u],h[a]));else for(s=g[d],o=g[d+1],a=s;a<o;a++)_[f=m[a]]!==P&&(_[f]=P,M.push(f));if(A)for(var k=T[B],q=M.length,I=k;I<q;I++){var R=M[I];C[I]=F[R]}}return T[N]=M.length,O}});return t(u,c,{"Array, Array":t.referTo("Matrix, Matrix",e=>(t,n)=>{h((0,a.LO)(t),(0,a.LO)(n));var s=e(r(t),r(n));return(0,i.OA)(s)?s.valueOf():s}),"Matrix, Matrix":function(e,r){var i=e.size(),a=r.size();if(h(i,a),1===i.length){if(1===a.length){if(0===i[0])throw Error("Cannot multiply two empty vectors");return p(e,r)}if("dense"!==r.storage())throw Error("Support for SparseMatrix not implemented");return function(e,r){var i,a=e._data,s=e._size,o=e._datatype||e.getDataType(),u=r._data,l=r._size,p=r._datatype||r.getDataType(),f=s[0],d=l[1],h=n,m=c;o&&p&&o===p&&"string"==typeof o&&"mixed"!==o&&(i=o,h=t.find(n,[i,i]),m=t.find(c,[i,i]));for(var g=[],v=0;v<d;v++){for(var y=m(a[0],u[0][v]),b=1;b<f;b++)y=h(y,m(a[b],u[b][v]));g[v]=y}return e.createDenseMatrix({data:g,size:[d],datatype:o===e._datatype&&p===r._datatype?i:void 0})}(e,r)}return 1===a.length?m(e,r):g(e,r)},"Matrix, Array":t.referTo("Matrix,Matrix",e=>(t,n)=>e(t,r(n))),"Array, Matrix":t.referToSelf(e=>(t,n)=>e(r(t,n.storage()),n)),"SparseMatrix, any":function(e,t){return f(e,t,c,!1)},"DenseMatrix, any":function(e,t){return d(e,t,c,!1)},"any, SparseMatrix":function(e,t){return f(t,e,c,!0)},"any, DenseMatrix":function(e,t){return d(t,e,c,!0)},"Array, any":function(e,t){return d(r(e),t,c,!1).valueOf()},"any, Array":function(e,t){return d(r(t),e,c,!0).valueOf()},"any, any":c,"any, any, ...any":t.referToSelf(e=>(t,r,n)=>{for(var i=e(t,r),a=0;a<n.length;a++)i=e(i,n[a]);return i})})})},43947(e,t,r){"use strict";r.d(t,{J:()=>a});var n=r(58321),i=r(81976),a=(0,n.P9)("multiplyScalar",["typed"],e=>{var{typed:t}=e;return t("multiplyScalar",{"number, number":i.YD,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"bigint, bigint":function(e,t){return e*t},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":(e,t)=>t.multiply(e),"Unit, number | Fraction | BigNumber | Complex | Unit":(e,t)=>e.multiply(t)})})},49913(e,t,r){"use strict";r.d(t,{X:()=>a});var n=r(58321),i="norm",a=(0,n.P9)(i,["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix","ctranspose","eigs"],e=>{var{typed:t,abs:r,add:n,pow:a,conj:s,sqrt:o,multiply:u,equalScalar:c,larger:l,smaller:p,matrix:f,ctranspose:d,eigs:h}=e;return t(i,{number:Math.abs,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},boolean:function(e){return Math.abs(e)},Array:function(e){return m(f(e),2)},Matrix:function(e){return m(e,2)},"Array, number | BigNumber | string":function(e,t){return m(f(e),t)},"Matrix, number | BigNumber | string":function(e,t){return m(e,t)}});function m(e,t){var i,f,g=e.size();if(1===g.length){if(t===1/0||"inf"===t)return i=0,e.forEach(function(e){var t=r(e);l(t,i)&&(i=t)},!0),i;if(t===-1/0||"-inf"===t)return e.forEach(function(e){var t=r(e);(!f||p(t,f))&&(f=t)},!0),f||0;if("fro"===t)return m(e,2);if("number"==typeof t&&!isNaN(t)){if(!c(t,0)){var v=0;return e.forEach(function(e){v=n(a(r(e),t),v)},!0),a(v,1/t)}return 1/0}throw Error("Unsupported parameter value")}if(2===g.length)if(g[0]&&g[1])return function(e,t){if(1===t)return i=[],a=0,e.forEach(function(e,t){var s=t[1],o=n(i[s]||0,r(e));l(o,a)&&(a=o),i[s]=o},!0),a;if(t===1/0||"inf"===t)return c=[],p=0,e.forEach(function(e,t){var i=t[0],a=n(c[i]||0,r(e));l(a,p)&&(p=a),c[i]=a},!0),p;if("fro"===t)return f=0,e.forEach(function(e,t){f=n(f,u(e,s(e)))}),r(o(f));if(2===t){var i,a,c,p,f,m=e.size();if(m[0]!==m[1])throw RangeError("Invalid matrix dimensions");var g=h(u(d(e),e)).values.toArray();return r(o(g[g.length-1]))}throw Error("Unsupported parameter value "+t)}(e,t);else throw RangeError("Invalid matrix dimensions")}})},95693(e,t,r){"use strict";r.d(t,{f:()=>p});var n=r(58321),i=r(46540),a=r(47308),s=r(45651),o=r(59755),u=r(38730),c=r(81976),l="nthRoot",p=(0,n.P9)(l,["typed","matrix","equalScalar","BigNumber","concat"],e=>{var{typed:t,matrix:r,equalScalar:n,BigNumber:p,concat:f}=e,d=(0,i.Z)({typed:t}),h=(0,a.Z)({typed:t,equalScalar:n}),m=(0,s.S)({typed:t,equalScalar:n}),g=(0,o.A)({typed:t,equalScalar:n}),v=(0,u.$)({typed:t,matrix:r,concat:f});function y(){throw Error("Complex number not supported in function nthRoot. Use nthRoots instead.")}return t(l,{number:c.wp,"number, number":c.wp,BigNumber:e=>b(e,new p(2)),"BigNumber, BigNumber":b,Complex:y,"Complex, number":y,Array:t.referTo("DenseMatrix,number",e=>t=>e(r(t),2).valueOf()),DenseMatrix:t.referTo("DenseMatrix,number",e=>t=>e(t,2)),SparseMatrix:t.referTo("SparseMatrix,number",e=>t=>e(t,2)),"SparseMatrix, SparseMatrix":t.referToSelf(e=>(t,r)=>{if(1===r.density())return m(t,r,e);throw Error("Root must be non-zero")}),"DenseMatrix, SparseMatrix":t.referToSelf(e=>(t,r)=>{if(1===r.density())return d(t,r,e,!1);throw Error("Root must be non-zero")}),"Array, SparseMatrix":t.referTo("DenseMatrix,SparseMatrix",e=>(t,n)=>e(r(t),n)),"number | BigNumber, SparseMatrix":t.referToSelf(e=>(t,r)=>{if(1===r.density())return g(r,t,e,!0);throw Error("Root must be non-zero")})},v({scalar:"number | BigNumber",SD:h,Ss:g,sS:!1}));function b(e,t){var r=p.precision,n=p.clone({precision:r+2}),i=new p(0),a=new n(1),s=t.isNegative();if(s&&(t=t.neg()),t.isZero())throw Error("Root must be non-zero");if(e.isNegative()&&!t.abs().mod(2).equals(1))throw Error("Root must be odd when a is negative.");if(e.isZero())return s?new n(1/0):0;if(!e.isFinite())return s?i:e;var o=e.abs().pow(a.div(t));return o=e.isNeg()?o.neg():o,new p((s?a.div(o):o).toPrecision(r))}})},48296(e,t,r){"use strict";r.d(t,{s:()=>a});var n=r(58321),i="nthRoots",a=(0,n.P9)(i,["config","typed","divideScalar","Complex"],e=>{var{typed:t,config:r,divideScalar:n,Complex:a}=e,s=[function(e){return new a(e,0)},function(e){return new a(0,e)},function(e){return new a(-e,0)},function(e){return new a(0,-e)}];function o(e,t){if(t<0)throw Error("Root must be greater than zero");if(0===t)throw Error("Root must be non-zero");if(t%1!=0)throw Error("Root must be an integer");if(0===e||0===e.abs())return[new a(0,0)];var r,n="number"==typeof e;(n||0===e.re||0===e.im)&&(r=n?2*(e<0):0===e.im?2*(e.re<0):2*(e.im<0)+1);for(var i=e.arg(),o=e.abs(),u=[],c=Math.pow(o,1/t),l=0;l<t;l++){var p=(r+4*l)/t;if(p===Math.round(p)){u.push(s[p%4](c));continue}u.push(new a({r:c,phi:(i+2*Math.PI*l)/t}))}return u}return t(i,{Complex:function(e){return o(e,2)},"Complex, number":o})})},42601(e,t,r){"use strict";r.d(t,{V:()=>o});var n=r(58321),i=r(51106),a=r(35838),s=r(81976),o=(0,n.P9)("pow",["typed","config","identity","multiply","matrix","inv","fraction","number","Complex"],e=>{var{typed:t,config:r,identity:n,multiply:o,matrix:u,inv:c,number:l,fraction:p,Complex:f}=e;return t("pow",{"number, number":d,"Complex, Complex":function(e,t){return e.pow(t)},"BigNumber, BigNumber":function(e,t){return t.isInteger()||e>=0||r.predictable?e.pow(t):new f(e.toNumber(),0).pow(t.toNumber(),0)},"bigint, bigint":(e,t)=>e**t,"Fraction, Fraction":function(e,t){var n=e.pow(t);if(null!=n)return n;if(!r.predictable)return d(e.valueOf(),t.valueOf());throw Error("Result of pow is non-rational and cannot be expressed as a fraction")},"Array, number":h,"Array, BigNumber":function(e,t){return h(e,t.toNumber())},"Matrix, number":m,"Matrix, BigNumber":function(e,t){return m(e,t.toNumber())},"Unit, number | BigNumber":function(e,t){return e.pow(t)}});function d(e,t){if(r.predictable&&!(0,i.YN)(t)&&e<0)try{var n=p(t),a=l(n);if((t===a||1e-14>Math.abs((t-a)/t))&&n.d%2n===1n)return(n.n%2n===0n?1:-1)*Math.pow(-e,t)}catch(e){}return r.predictable&&(e<-1&&t===1/0||e>-1&&e<0&&t===-1/0)?NaN:(0,i.YN)(t)||e>=0||r.predictable?(0,s.Qb)(e,t):e*e<1&&t===1/0||e*e>1&&t===-1/0?0:new f(e,0).pow(t,0)}function h(e,t){if(!(0,i.YN)(t))throw TypeError("For A^b, b must be an integer (value is "+t+")");var r=(0,a.LO)(e);if(2!==r.length)throw Error("For A^b, A must be 2 dimensional (A has "+r.length+" dimensions)");if(r[0]!==r[1])throw Error("For A^b, A must be square (size is "+r[0]+"x"+r[1]+")");if(t<0)try{return h(c(e),-t)}catch(e){if("Cannot calculate inverse, determinant is zero"===e.message)throw TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+t+")");throw e}for(var s=n(r[0]).valueOf(),u=e;t>=1;)(1&t)==1&&(s=o(u,s)),t>>=1,u=o(u,u);return s}function m(e,t){return u(h(e.valueOf(),t))}})},48935(e,t,r){"use strict";r.d(t,{B:()=>d});var n=r(58321),i=r(76355),a=r(51106),s=r(46052),o=r(59755),u=r(34900),c=r(72347),l=r(81976),p="Number of decimals in function round must be an integer",f="round",d=(0,n.P9)(f,["typed","config","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],e=>{var{typed:t,config:r,matrix:n,equalScalar:d,zeros:h,BigNumber:m,DenseMatrix:g}=e,v=(0,o.A)({typed:t,equalScalar:d}),y=(0,u.f)({typed:t,DenseMatrix:g}),b=(0,c.A)({typed:t});function x(e){return Math.abs((0,a.QI)(e).exponent)}return t(f,{number:function(e){var t=(0,l.Wf)(e,x(r.relTol)),n=(0,a.q8)(e,t,r.relTol,r.absTol)?t:e;return(0,l.Wf)(n)},"number, number":function(e,t){var n=x(r.relTol);if(t>=n)return(0,l.Wf)(e,t);var i=(0,l.Wf)(e,n),s=(0,a.q8)(e,i,r.relTol,r.absTol)?i:e;return(0,l.Wf)(s,t)},"number, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(p);return new m(e).toDecimalPlaces(t.toNumber())},Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw TypeError(p);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(p);var r=t.toNumber();return e.round(r)},BigNumber:function(e){var t=new m(e).toDecimalPlaces(x(r.relTol));return((0,s.q)(e,t,r.relTol,r.absTol)?t:e).toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(p);var n=x(r.relTol);if(t>=n)return e.toDecimalPlaces(t.toNumber());var i=e.toDecimalPlaces(n);return((0,s.q)(e,i,r.relTol,r.absTol)?i:e).toDecimalPlaces(t.toNumber())},bigint:e=>e,"bigint, number":(e,t)=>e,"bigint, BigNumber":(e,t)=>e,Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw TypeError(p);return e.round(t)},"Fraction, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(p);return e.round(t.toNumber())},"Unit, number, Unit":t.referToSelf(e=>function(t,r,n){var i=t.toNumeric(n);return n.multiply(e(i,r))}),"Unit, BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>e(t,r.toNumber(),n)),"Array | Matrix, number | BigNumber, Unit":t.referToSelf(e=>(t,r,n)=>(0,i.Bl)(t,t=>e(t,r,n),!0)),"Array | Matrix | Unit, Unit":t.referToSelf(e=>(t,r)=>e(t,0,r)),"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e,!0)),"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>v(t,r,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>b(t,r,e,!1)),"Array, number | BigNumber":t.referToSelf(e=>(t,r)=>b(n(t),r,e,!1).valueOf()),"number | Complex | BigNumber | Fraction, SparseMatrix":t.referToSelf(e=>(t,r)=>d(t,0)?h(r.size(),r.storage()):y(r,t,e,!0)),"number | Complex | BigNumber | Fraction, DenseMatrix":t.referToSelf(e=>(t,r)=>d(t,0)?h(r.size(),r.storage()):b(r,t,e,!0)),"number | Complex | BigNumber | Fraction, Array":t.referToSelf(e=>(t,r)=>b(n(r),t,e,!0).valueOf())})})},73970(e,t,r){"use strict";r.d(t,{m:()=>o});var n=r(58321),i=r(76355),a=r(81976),s="sign",o=(0,n.P9)(s,["typed","BigNumber","Fraction","complex"],e=>{var{typed:t,BigNumber:r,complex:n,Fraction:o}=e;return t(s,{number:a.bD,Complex:function(e){return 0===e.im?n((0,a.bD)(e.re)):e.sign()},BigNumber:function(e){return new r(e.cmp(0))},bigint:function(e){return e>0n?1n:e<0n?-1n:0n},Fraction:function(e){return new o(0n===e.n?0:e.s)},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e,!0)),Unit:t.referToSelf(e=>r=>{if(!r._isDerived()&&0!==r.units[0].unit.offset)throw TypeError("sign is ambiguous for units with offset");return t.find(e,r.valueType())(r.value)})})})},76409(e,t,r){"use strict";r.d(t,{R:()=>n});var n=(0,r(58321).P9)("sqrt",["config","typed","Complex"],e=>{var{config:t,typed:r,Complex:n}=e;return r("sqrt",{number:i,Complex:function(e){return e.sqrt()},BigNumber:function(e){return!e.isNegative()||t.predictable?e.sqrt():i(e.toNumber())},Unit:function(e){return e.pow(.5)}});function i(e){return isNaN(e)?NaN:e>=0||t.predictable?Math.sqrt(e):new n(e,0).sqrt()}})},2436(e,t,r){"use strict";r.d(t,{G:()=>s});var n=r(58321),i=r(81976),a="square",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{number:i.dX,Complex:function(e){return e.mul(e)},BigNumber:function(e){return e.times(e)},bigint:function(e){return e*e},Fraction:function(e){return e.mul(e)},Unit:function(e){return e.pow(2)}})})},6771(e,t,r){"use strict";r.d(t,{t:()=>p});var n=r(58321),i=r(46540),a=r(60361),s=r(1232),o=r(92723),u=r(34900),c=r(38730),l="subtract",p=(0,n.P9)(l,["typed","matrix","equalScalar","subtractScalar","unaryMinus","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:n,subtractScalar:p,unaryMinus:f,DenseMatrix:d,concat:h}=e,m=(0,i.Z)({typed:t}),g=(0,a.O)({typed:t}),v=(0,s.H)({typed:t,equalScalar:n}),y=(0,o.A)({typed:t,DenseMatrix:d}),b=(0,u.f)({typed:t,DenseMatrix:d}),x=(0,c.$)({typed:t,matrix:r,concat:h});return t(l,{"any, any":p},x({elop:p,SS:v,DS:m,SD:g,Ss:b,sS:y}))})},67911(e,t,r){"use strict";r.d(t,{f:()=>s});var n=r(58321),i=r(81976),a="subtractScalar",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{"number, number":i.Ki,"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"bigint, bigint":function(e,t){return e-t},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":t.referToSelf(e=>(r,n)=>{if(null===r.value||void 0===r.value)throw Error("Parameter x contains a unit with undefined value");if(null===n.value||void 0===n.value)throw Error("Parameter y contains a unit with undefined value");if(!r.equalBase(n))throw Error("Units do not match");var i=r.clone();return i.value=t.find(e,[i.valueType(),n.valueType()])(i.value,n.value),i.fixPrefix=!1,i})})})},31670(e,t,r){"use strict";r.d(t,{e:()=>o});var n=r(58321),i=r(76355),a=r(81976),s="unaryMinus",o=(0,n.P9)(s,["typed"],e=>{var{typed:t}=e;return t(s,{number:a.zZ,"Complex | BigNumber | Fraction":e=>e.neg(),bigint:e=>-e,Unit:t.referToSelf(e=>r=>{var n=r.clone();return n.value=t.find(e,n.valueType())(r.value),n}),"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e,!0))})})},50392(e,t,r){"use strict";r.d(t,{e:()=>u});var n=r(58321),i=r(76355),a=r(81976),s=r(51106),o="unaryPlus",u=(0,n.P9)(o,["typed","config","numeric"],e=>{var{typed:t,config:r,numeric:n}=e;return t(o,{number:a.ZO,Complex:function(e){return e},BigNumber:function(e){return e},bigint:function(e){return e},Fraction:function(e){return e},Unit:function(e){return e.clone()},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e,!0)),boolean:function(e){return n(+!!e,r.number)},string:function(e){return n(e,(0,s.BC)(e,r))}})})},64805(e,t,r){"use strict";r.d(t,{F:()=>s});var n=r(58321),i=r(81976),a="xgcd",s=(0,n.P9)(a,["typed","config","matrix","BigNumber"],e=>{var{typed:t,config:r,matrix:n,BigNumber:s}=e;return t(a,{"number, number":function(e,t){var a=(0,i.sO)(e,t);return"Array"===r.matrix?a:n(a)},"BigNumber, BigNumber":function(e,t){var i,a,o,u,c=new s(0),l=new s(1),p=c,f=l,d=l,h=c;if(!e.isInt()||!t.isInt())throw Error("Parameters in function xgcd must be integer numbers");for(;!t.isZero();)a=e.div(t).floor(),o=e.mod(t),i=p,p=f.minus(a.times(p)),f=i,i=d,d=h.minus(a.times(d)),h=i,e=t,t=o;return u=e.lt(c)?[e.neg(),f.neg(),h.neg()]:[e,e.isZero()?0:f,h],"Array"===r.matrix?u:n(u)}})})},34172(e,t,r){"use strict";r.d(t,{x:()=>p});var n=r(14636),i=r(47308),a=r(59755),s=r(45651),o=r(58321),u=r(38730),c=r(98253),l="bitAnd",p=(0,o.P9)(l,["typed","matrix","equalScalar","concat"],e=>{var{typed:t,matrix:r,equalScalar:o,concat:p}=e,f=(0,i.Z)({typed:t,equalScalar:o}),d=(0,s.S)({typed:t,equalScalar:o}),h=(0,a.A)({typed:t,equalScalar:o}),m=(0,u.$)({typed:t,matrix:r,concat:p});return t(l,{"number, number":c.O2,"BigNumber, BigNumber":n.GK,"bigint, bigint":(e,t)=>e&t},m({SS:d,DS:f,Ss:h}))})},20720(e,t,r){"use strict";r.d(t,{j:()=>u});var n=r(14636),i=r(76355),a=r(58321),s=r(98253),o="bitNot",u=(0,a.P9)(o,["typed"],e=>{var{typed:t}=e;return t(o,{number:s.IR,BigNumber:n.e6,bigint:e=>~e,"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},56208(e,t,r){"use strict";r.d(t,{$:()=>p});var n=r(14636),i=r(58321),a=r(92723),s=r(97481),o=r(46540),u=r(38730),c=r(98253),l="bitOr",p=(0,i.P9)(l,["typed","matrix","equalScalar","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:i,DenseMatrix:p,concat:f}=e,d=(0,o.Z)({typed:t}),h=(0,s.c)({typed:t,equalScalar:i}),m=(0,a.A)({typed:t,DenseMatrix:p}),g=(0,u.$)({typed:t,matrix:r,concat:f});return t(l,{"number, number":c.eg,"BigNumber, BigNumber":n.KO,"bigint, bigint":(e,t)=>e|t},g({SS:h,DS:d,Ss:m}))})},45244(e,t,r){"use strict";r.d(t,{x:()=>p});var n=r(14636),i=r(60361),a=r(15572),s=r(34900),o=r(58321),u=r(38730),c=r(98253),l="bitXor",p=(0,o.P9)(l,["typed","matrix","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,matrix:r,DenseMatrix:o,concat:p,SparseMatrix:f}=e,d=(0,i.O)({typed:t}),h=(0,a.v)({typed:t,SparseMatrix:f}),m=(0,s.f)({typed:t,DenseMatrix:o}),g=(0,u.$)({typed:t,matrix:r,concat:p});return t(l,{"number, number":c.Co,"BigNumber, BigNumber":n.hC,"bigint, bigint":(e,t)=>e^t},g({SS:h,DS:d,Ss:m}))})},89917(e,t,r){"use strict";r.d(t,{O:()=>m});var n=r(47308),i=r(59755),a=r(72347),s=r(46540),o=r(92723),u=r(71352),c=r(58321),l=r(38730),p=r(14868),f=r(98253),d=r(14636),h="leftShift",m=(0,c.P9)(h,["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:c,zeros:m,DenseMatrix:g,concat:v}=e,y=(0,s.Z)({typed:t}),b=(0,n.Z)({typed:t,equalScalar:c}),x=(0,u.z)({typed:t,equalScalar:c}),D=(0,o.A)({typed:t,DenseMatrix:g}),w=(0,i.A)({typed:t,equalScalar:c}),N=(0,a.A)({typed:t}),A=(0,l.$)({typed:t,matrix:r,concat:v}),E=(0,p.h)({typed:t,matrix:r});return t(h,{"number, number":f.F4,"BigNumber, BigNumber":d.ZN,"bigint, bigint":(e,t)=>e<<t,"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>c(r,0)?t.clone():w(t,r,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>c(r,0)?t.clone():N(t,r,e,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(e=>(t,r)=>c(t,0)?m(r.size(),r.storage()):D(r,t,e,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(e=>(t,r)=>c(t,0)?m(r.size(),r.storage()):N(r,t,e,!0))},E,A({SS:x,DS:y,SD:b}))})},61606(e,t,r){"use strict";r.d(t,{f:()=>m});var n=r(14636),i=r(47308),a=r(59755),s=r(72347),o=r(46540),u=r(92723),c=r(71352),l=r(58321),p=r(38730),f=r(14868),d=r(98253),h="rightArithShift",m=(0,l.P9)(h,["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:l,zeros:m,DenseMatrix:g,concat:v}=e,y=(0,o.Z)({typed:t}),b=(0,i.Z)({typed:t,equalScalar:l}),x=(0,c.z)({typed:t,equalScalar:l}),D=(0,u.A)({typed:t,DenseMatrix:g}),w=(0,a.A)({typed:t,equalScalar:l}),N=(0,s.A)({typed:t}),A=(0,p.$)({typed:t,matrix:r,concat:v}),E=(0,f.h)({typed:t,matrix:r});return t(h,{"number, number":d.QO,"BigNumber, BigNumber":n.Am,"bigint, bigint":(e,t)=>e>>t,"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>l(r,0)?t.clone():w(t,r,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>l(r,0)?t.clone():N(t,r,e,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(e=>(t,r)=>l(t,0)?m(r.size(),r.storage()):D(r,t,e,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(e=>(t,r)=>l(t,0)?m(r.size(),r.storage()):N(r,t,e,!0))},E,A({SS:x,DS:y,SD:b}))})},42446(e,t,r){"use strict";r.d(t,{n:()=>h});var n=r(47308),i=r(59755),a=r(72347),s=r(46540),o=r(92723),u=r(71352),c=r(58321),l=r(38730),p=r(98253),f=r(14868),d="rightLogShift",h=(0,c.P9)(d,["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:c,zeros:h,DenseMatrix:m,concat:g}=e,v=(0,s.Z)({typed:t}),y=(0,n.Z)({typed:t,equalScalar:c}),b=(0,u.z)({typed:t,equalScalar:c}),x=(0,o.A)({typed:t,DenseMatrix:m}),D=(0,i.A)({typed:t,equalScalar:c}),w=(0,a.A)({typed:t}),N=(0,l.$)({typed:t,matrix:r,concat:g}),A=(0,f.h)({typed:t,matrix:r});return t(d,{"number, number":p.Wv,"SparseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>c(r,0)?t.clone():D(t,r,e,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(e=>(t,r)=>c(r,0)?t.clone():w(t,r,e,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(e=>(t,r)=>c(t,0)?h(r.size(),r.storage()):x(r,t,e,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(e=>(t,r)=>c(t,0)?h(r.size(),r.storage()):w(r,t,e,!0))},A,N({SS:b,DS:v,SD:y}))})},14868(e,t,r){"use strict";r.d(t,{h:()=>n});var n=(0,r(58321).P9)("useMatrixForArrayScalar",["typed","matrix"],e=>{var{typed:t,matrix:r}=e;return{"Array, number":t.referTo("DenseMatrix, number",e=>(t,n)=>e(r(t),n).valueOf()),"Array, BigNumber":t.referTo("DenseMatrix, BigNumber",e=>(t,n)=>e(r(t),n).valueOf()),"number, Array":t.referTo("number, DenseMatrix",e=>(t,n)=>e(t,r(n)).valueOf()),"BigNumber, Array":t.referTo("BigNumber, DenseMatrix",e=>(t,n)=>e(t,r(n)).valueOf())}})},84475(e,t,r){"use strict";r.d(t,{e:()=>a});var n=r(58321),i="bellNumbers",a=(0,n.P9)(i,["typed","addScalar","isNegative","isInteger","stirlingS2"],e=>{var{typed:t,addScalar:r,isNegative:n,isInteger:a,stirlingS2:s}=e;return t(i,{"number | BigNumber":function(e){if(!a(e)||n(e))throw TypeError("Non-negative integer value expected in function bellNumbers");for(var t=0,i=0;i<=e;i++)t=r(t,s(e,i));return t}})})},4852(e,t,r){"use strict";r.d(t,{f:()=>a});var n=r(58321),i="catalan",a=(0,n.P9)(i,["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],e=>{var{typed:t,addScalar:r,divideScalar:n,multiplyScalar:a,combinations:s,isNegative:o,isInteger:u}=e;return t(i,{"number | BigNumber":function(e){if(!u(e)||o(e))throw TypeError("Non-negative integer value expected in function catalan");return n(s(a(e,2),e),r(e,1))}})})},67440(e,t,r){"use strict";r.d(t,{z:()=>a});var n=r(58321),i="composition",a=(0,n.P9)(i,["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],e=>{var{typed:t,addScalar:r,combinations:n,isPositive:a,isNegative:s,isInteger:o,larger:u}=e;return t(i,{"number | BigNumber, number | BigNumber":function(e,t){if(o(e)&&a(e)&&o(t)&&a(t)){if(u(t,e))throw TypeError("k must be less than or equal to n in function composition")}else throw TypeError("Positive integer value expected in function composition");return n(r(e,-1),r(t,-1))}})})},56869(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(58321),i=r(14943),a="stirlingS2",s=(0,n.P9)(a,["typed","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],e=>{var{typed:t,addScalar:r,subtractScalar:n,multiplyScalar:s,divideScalar:o,pow:u,factorial:c,combinations:l,isNegative:p,isInteger:f,number:d,bignumber:h,larger:m}=e,g=[],v=[];return t(a,{"number | BigNumber, number | BigNumber":function(e,t){if(!f(e)||p(e)||!f(t)||p(t))throw TypeError("Non-negative integer value expected in function stirlingS2");if(m(t,e))throw TypeError("k must be less than or equal to n in function stirlingS2");var n=!((0,i.Et)(e)&&(0,i.Et)(t)),a=n?v:g,o=n?h:d,u=d(e),c=d(t);if(a[u]&&a[u].length>c)return a[u][c];for(var l=0;l<=u;++l)if(a[l]||(a[l]=[o(+(0===l))]),0!==l)for(var y=a[l],b=a[l-1],x=y.length;x<=l&&x<=c;++x)x===l?y[x]=1:y[x]=r(s(o(x),b[x]),b[x-1]);return a[u][c]}})})},20165(e,t,r){"use strict";r.d(t,{P:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("arg",["typed"],e=>{var{typed:t}=e;return t("arg",{number:function(e){return Math.atan2(0,e)},BigNumber:function(e){return e.constructor.atan2(0,e)},Complex:function(e){return e.arg()},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},59491(e,t,r){"use strict";r.d(t,{x:()=>s});var n=r(58321),i=r(76355),a="conj",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{"number | BigNumber | Fraction":e=>e,Complex:e=>e.conjugate(),Unit:t.referToSelf(e=>t=>new t.constructor(e(t.toNumeric()),t.formatUnits())),"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},31123(e,t,r){"use strict";r.d(t,{z:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("im",["typed"],e=>{var{typed:t}=e;return t("im",{number:()=>0,"BigNumber | Fraction":e=>e.mul(0),Complex:e=>e.im,"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},90020(e,t,r){"use strict";r.d(t,{W:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("re",["typed"],e=>{var{typed:t}=e;return t("re",{"number | BigNumber | Fraction":e=>e,Complex:e=>e.re,"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},11716(e,t,r){"use strict";r.d(t,{G:()=>s});var n=r(14943),i=r(58321),a="distance",s=(0,i.P9)(a,["typed","addScalar","subtractScalar","divideScalar","multiplyScalar","deepEqual","sqrt","abs"],e=>{var{typed:t,addScalar:r,subtractScalar:i,multiplyScalar:s,divideScalar:o,deepEqual:u,sqrt:c,abs:l}=e;return t(a,{"Array, Array, Array":function(e,t,r){if(2===e.length&&2===t.length&&2===r.length){if(!f(e))throw TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!f(t))throw TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!f(r))throw TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(u(t,r))throw TypeError("LinePoint1 should not be same with LinePoint2");var n=i(r[1],t[1]),a=i(t[0],r[0]),o=i(s(r[0],t[1]),s(t[0],r[1]));return v(e[0],e[1],n,a,o)}throw TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(e,t,r){if(2===Object.keys(e).length&&2===Object.keys(t).length&&2===Object.keys(r).length){if(!f(e))throw TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!f(t))throw TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!f(r))throw TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(u(g(t),g(r)))throw TypeError("LinePoint1 should not be same with LinePoint2");if("pointX"in e&&"pointY"in e&&"lineOnePtX"in t&&"lineOnePtY"in t&&"lineTwoPtX"in r&&"lineTwoPtY"in r){var n=i(r.lineTwoPtY,t.lineOnePtY),a=i(t.lineOnePtX,r.lineTwoPtX),o=i(s(r.lineTwoPtX,t.lineOnePtY),s(t.lineOnePtX,r.lineTwoPtY));return v(e.pointX,e.pointY,n,a,o)}throw TypeError("Key names do not match")}throw TypeError("Invalid Arguments: Try again")},"Array, Array":function(e,t){if(2===e.length&&3===t.length){if(!f(e))throw TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!d(t))throw TypeError("Array with 3 numbers or BigNumbers expected for second argument");return v(e[0],e[1],t[0],t[1],t[2])}if(3===e.length&&6===t.length){if(!d(e))throw TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!m(t))throw TypeError("Array with 6 numbers or BigNumbers expected for second argument");return y(e[0],e[1],e[2],t[0],t[1],t[2],t[3],t[4],t[5])}if(e.length===t.length&&e.length>0){if(!h(e)||!h(t))throw TypeError("All values of an array should be numbers or BigNumbers");return b(e,t)}throw TypeError("Invalid Arguments: Try again")},"Object, Object":function(e,t){if(2===Object.keys(e).length&&3===Object.keys(t).length){if(!f(e))throw TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!d(t))throw TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"xCoeffLine"in t&&"yCoeffLine"in t&&"constant"in t)return v(e.pointX,e.pointY,t.xCoeffLine,t.yCoeffLine,t.constant);throw TypeError("Key names do not match")}if(3===Object.keys(e).length&&6===Object.keys(t).length){if(!d(e))throw TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!m(t))throw TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"x0"in t&&"y0"in t&&"z0"in t&&"a"in t&&"b"in t&&"c"in t)return y(e.pointX,e.pointY,e.pointZ,t.x0,t.y0,t.z0,t.a,t.b,t.c);throw TypeError("Key names do not match")}if(2===Object.keys(e).length&&2===Object.keys(t).length){if(!f(e))throw TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!f(t))throw TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in e&&"pointOneY"in e&&"pointTwoX"in t&&"pointTwoY"in t)return b([e.pointOneX,e.pointOneY],[t.pointTwoX,t.pointTwoY]);throw TypeError("Key names do not match")}if(3===Object.keys(e).length&&3===Object.keys(t).length){if(!d(e))throw TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!d(t))throw TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in e&&"pointOneY"in e&&"pointOneZ"in e&&"pointTwoX"in t&&"pointTwoY"in t&&"pointTwoZ"in t)return b([e.pointOneX,e.pointOneY,e.pointOneZ],[t.pointTwoX,t.pointTwoY,t.pointTwoZ]);throw TypeError("Key names do not match")}throw TypeError("Invalid Arguments: Try again")},Array:function(e){if(!function(e){if(2===e[0].length&&p(e[0][0])&&p(e[0][1])){if(e.some(e=>2!==e.length||!p(e[0])||!p(e[1])))return!1}else if(!(3===e[0].length&&p(e[0][0])&&p(e[0][1])&&p(e[0][2])))return!1;else if(e.some(e=>3!==e.length||!p(e[0])||!p(e[1])||!p(e[2])))return!1;return!0}(e))throw TypeError("Incorrect array format entered for pairwise distance calculation");return function(e){for(var t=[],r=[],n=[],i=0;i<e.length-1;i++)for(var a=i+1;a<e.length;a++)2===e[0].length?(r=[e[i][0],e[i][1]],n=[e[a][0],e[a][1]]):3===e[0].length&&(r=[e[i][0],e[i][1],e[i][2]],n=[e[a][0],e[a][1],e[a][2]]),t.push(b(r,n));return t}(e)}});function p(e){return"number"==typeof e||(0,n.C4)(e)}function f(e){return e.constructor!==Array&&(e=g(e)),p(e[0])&&p(e[1])}function d(e){return e.constructor!==Array&&(e=g(e)),p(e[0])&&p(e[1])&&p(e[2])}function h(e){return Array.isArray(e)||(e=g(e)),e.every(p)}function m(e){return e.constructor!==Array&&(e=g(e)),p(e[0])&&p(e[1])&&p(e[2])&&p(e[3])&&p(e[4])&&p(e[5])}function g(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}function v(e,t,n,i,a){return o(l(r(r(s(n,e),s(i,t)),a)),c(r(s(n,n),s(i,i))))}function y(e,t,n,a,u,l,p,f,d){var h=[i(s(i(u,t),d),s(i(l,n),f)),i(s(i(l,n),p),s(i(a,e),d)),i(s(i(a,e),f),s(i(u,t),p))];return o(h=c(r(r(s(h[0],h[0]),s(h[1],h[1])),s(h[2],h[2]))),c(r(r(s(p,p),s(f,f)),s(d,d))))}function b(e,t){for(var n=e.length,a=0,o=0,u=0;u<n;u++)a=r(s(o=i(e[u],t[u]),o),a);return c(a)}})},35874(e,t,r){"use strict";r.d(t,{s:()=>n});var n=(0,r(58321).P9)("intersect",["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten","isZero","isNumeric"],e=>{var{typed:t,config:r,abs:n,add:i,addScalar:a,matrix:s,multiply:o,multiplyScalar:u,divideScalar:c,subtract:l,smaller:p,equalScalar:f,flatten:d,isZero:h,isNumeric:m}=e;return t("intersect",{"Array, Array, Array":g,"Array, Array, Array, Array":v,"Matrix, Matrix, Matrix":function(e,t,r){var n=g(e.valueOf(),t.valueOf(),r.valueOf());return null===n?null:s(n)},"Matrix, Matrix, Matrix, Matrix":function(e,t,r,n){var i=v(e.valueOf(),t.valueOf(),r.valueOf(),n.valueOf());return null===i?null:s(i)}});function g(e,t,r){var n,i,s,o,p,f,d,h,g,v,b,D,w,N,A,E,S,C;if(e=y(e),t=y(t),r=y(r),!x(e))throw TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!x(t))throw TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!(4===(n=r).length&&m(n[0])&&m(n[1])&&m(n[2])&&m(n[3])))throw TypeError("Array with 4 numbers expected as third argument");return i=e[0],s=e[1],o=e[2],p=t[0],f=t[1],d=t[2],h=r[0],g=r[1],v=r[2],b=r[3],D=u(i,h),w=u(p,h),N=u(s,g),A=u(f,g),E=u(o,v),S=u(d,v),C=c(l(l(l(b,D),N),E),l(l(l(a(a(w,A),S),D),N),E)),[a(i,u(C,l(p,i))),a(s,u(C,l(f,s))),a(o,u(C,l(d,o)))]}function v(e,t,s,d){if(e=y(e),t=y(t),s=y(s),d=y(d),2===e.length){if(!b(e))throw TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!b(t))throw TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!b(s))throw TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!b(d))throw TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return function(e,t,s,f){var d=l(e,t),m=l(s,f),g=l(u(d[0],m[1]),u(m[0],d[1]));if(h(g)||p(n(g),r.relTol))return null;var v=u(m[0],e[1]),y=u(m[1],e[0]),b=u(m[0],s[1]),x=u(m[1],s[0]);return i(o(d,c(a(l(l(v,y),b),x),g)),e)}(e,t,s,d)}if(3===e.length){if(!x(e))throw TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!x(t))throw TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!x(s))throw TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!x(d))throw TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return function(e,t,r,n,i,s,o,p,d,m,g,v){var y=D(e,o,m,o,t,p,g,p,r,d,v,d),b=D(m,o,n,e,g,p,i,t,v,d,s,r),x=D(e,o,n,e,t,p,i,t,r,d,s,r),w=D(m,o,m,o,g,p,g,p,v,d,v,d),N=D(n,e,n,e,i,t,i,t,s,r,s,r),A=l(u(y,b),u(x,w)),E=l(u(N,w),u(b,b));if(h(E))return null;var S=c(A,E),C=c(a(y,u(S,b)),w),M=a(e,u(S,l(n,e))),T=a(t,u(S,l(i,t))),O=a(r,u(S,l(s,r))),F=a(o,u(C,l(m,o))),_=a(p,u(C,l(g,p))),B=a(d,u(C,l(v,d)));return f(M,F)&&f(T,_)&&f(O,B)?[M,T,O]:null}(e[0],e[1],e[2],t[0],t[1],t[2],s[0],s[1],s[2],d[0],d[1],d[2])}throw TypeError("Arrays with two or thee dimensional points expected")}function y(e){return 1===e.length?e[0]:e.length>1&&Array.isArray(e[0])&&e.every(e=>Array.isArray(e)&&1===e.length)?d(e):e}function b(e){return 2===e.length&&m(e[0])&&m(e[1])}function x(e){return 3===e.length&&m(e[0])&&m(e[1])&&m(e[2])}function D(e,t,r,n,i,s,o,c,p,f,d,h){var m=u(l(e,t),l(r,n)),g=u(l(i,s),l(o,c)),v=u(l(p,f),l(d,h));return a(a(m,g),v)}})},95495(e,t,r){"use strict";r.d(t,{i:()=>l});var n=r(47308),i=r(59755),a=r(72347),s=r(45651),o=r(58321),u=r(38730),c=r(96625),l=(0,o.P9)("and",["typed","matrix","equalScalar","zeros","not","concat"],e=>{var{typed:t,matrix:r,equalScalar:o,zeros:l,not:p,concat:f}=e,d=(0,n.Z)({typed:t,equalScalar:o}),h=(0,s.S)({typed:t,equalScalar:o}),m=(0,i.A)({typed:t,equalScalar:o}),g=(0,a.A)({typed:t}),v=(0,u.$)({typed:t,matrix:r,concat:f});return t("and",{"number, number":c.JX,"Complex, Complex":function(e,t){return(0!==e.re||0!==e.im)&&(0!==t.re||0!==t.im)},"BigNumber, BigNumber":function(e,t){return!e.isZero()&&!t.isZero()&&!e.isNaN()&&!t.isNaN()},"bigint, bigint":c.JX,"Unit, Unit":t.referToSelf(e=>(t,r)=>e(t.value||0,r.value||0)),"SparseMatrix, any":t.referToSelf(e=>(t,r)=>p(r)?l(t.size(),t.storage()):m(t,r,e,!1)),"DenseMatrix, any":t.referToSelf(e=>(t,r)=>p(r)?l(t.size(),t.storage()):g(t,r,e,!1)),"any, SparseMatrix":t.referToSelf(e=>(t,r)=>p(t)?l(t.size(),t.storage()):m(r,t,e,!0)),"any, DenseMatrix":t.referToSelf(e=>(t,r)=>p(t)?l(t.size(),t.storage()):g(r,t,e,!0)),"Array, any":t.referToSelf(e=>(t,n)=>e(r(t),n).valueOf()),"any, Array":t.referToSelf(e=>(t,n)=>e(t,r(n)).valueOf())},v({SS:h,DS:d}))})},19239(e,t,r){"use strict";r.d(t,{m:()=>s});var n=r(76355),i=r(58321),a=r(96625),s=(0,i.P9)("not",["typed"],e=>{var{typed:t}=e;return t("not",{"null | undefined":()=>!0,number:a.DC,Complex:function(e){return 0===e.re&&0===e.im},BigNumber:function(e){return e.isZero()||e.isNaN()},bigint:e=>!e,Unit:t.referToSelf(e=>r=>t.find(e,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},84493(e,t,r){"use strict";r.d(t,{w:()=>c});var n=r(58321),i=r(60361),a=r(72347),s=r(39049),o=r(71380),u="nullish",c=(0,n.P9)(u,["typed","matrix","size","flatten","deepEqual"],e=>{var{typed:t,matrix:r,size:n,flatten:c,deepEqual:l}=e,p=(0,i.O)({typed:t}),f=(0,a.A)({typed:t}),d=(0,s.c)({typed:t});return t(u,{"number|bigint|Complex|BigNumber|Fraction|Unit|string|boolean|SparseMatrix, any":(e,t)=>e,"null, any":(e,t)=>t,"undefined, any":(e,t)=>t,"SparseMatrix, Array | Matrix":(e,t)=>{var r=n(e),i=n(t);if(l(r,i))return e;throw new o.h(r,i)},"DenseMatrix, DenseMatrix":t.referToSelf(e=>(t,r)=>d(t,r,e)),"DenseMatrix, SparseMatrix":t.referToSelf(e=>(t,r)=>p(t,r,e,!1)),"DenseMatrix, Array":t.referToSelf(e=>(t,n)=>d(t,r(n),e)),"DenseMatrix, any":t.referToSelf(e=>(t,r)=>f(t,r,e,!1)),"Array, Array":t.referToSelf(e=>(t,n)=>d(r(t),r(n),e).valueOf()),"Array, DenseMatrix":t.referToSelf(e=>(t,n)=>d(r(t),n,e)),"Array, SparseMatrix":t.referToSelf(e=>(t,n)=>p(r(t),n,e,!1)),"Array, any":t.referToSelf(e=>(t,n)=>f(r(t),n,e,!1).valueOf())})})},64625(e,t,r){"use strict";r.d(t,{M:()=>c});var n=r(60361),i=r(34900),a=r(1232),s=r(58321),o=r(38730),u=r(96625),c=(0,s.P9)("or",["typed","matrix","equalScalar","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:s,DenseMatrix:c,concat:l}=e,p=(0,n.O)({typed:t}),f=(0,a.H)({typed:t,equalScalar:s}),d=(0,i.f)({typed:t,DenseMatrix:c}),h=(0,o.$)({typed:t,matrix:r,concat:l});return t("or",{"number, number":u.R_,"Complex, Complex":function(e,t){return 0!==e.re||0!==e.im||0!==t.re||0!==t.im},"BigNumber, BigNumber":function(e,t){return!e.isZero()&&!e.isNaN()||!t.isZero()&&!t.isNaN()},"bigint, bigint":u.R_,"Unit, Unit":t.referToSelf(e=>(t,r)=>e(t.value||0,r.value||0))},h({SS:f,DS:p,Ss:d}))})},69187(e,t,r){"use strict";r.d(t,{Y:()=>c});var n=r(60361),i=r(15572),a=r(34900),s=r(58321),o=r(38730),u=r(96625),c=(0,s.P9)("xor",["typed","matrix","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,matrix:r,DenseMatrix:s,concat:c,SparseMatrix:l}=e,p=(0,n.O)({typed:t}),f=(0,i.v)({typed:t,SparseMatrix:l}),d=(0,a.f)({typed:t,DenseMatrix:s}),h=(0,o.$)({typed:t,matrix:r,concat:c});return t("xor",{"number, number":u.f6,"Complex, Complex":function(e,t){return(0!==e.re||0!==e.im)!=(0!==t.re||0!==t.im)},"bigint, bigint":u.f6,"BigNumber, BigNumber":function(e,t){return(!e.isZero()&&!e.isNaN())!=(!t.isZero()&&!t.isNaN())},"Unit, Unit":t.referToSelf(e=>(t,r)=>e(t.value||0,r.value||0))},h({SS:f,DS:p,Ss:d}))})},55666(e,t,r){"use strict";r.d(t,{H:()=>u});var n=r(58321),i=r(14943),a=r(93140),s=r(35838),o="column",u=(0,n.P9)(o,["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:n,range:u}=e;return t(o,{"Matrix, number":c,"Array, number":function(e,t){return c(n((0,a.o8)(e)),t).valueOf()}});function c(e,t){if(2!==e.size().length)throw Error("Only two dimensional matrix is supported");(0,s.r7)(t,e.size()[1]);var a=new r(u(0,e.size()[0]),[t]),o=e.subset(a);return(0,i.OA)(o)?o:n([[o]])}})},51760(e,t,r){"use strict";r.d(t,{z:()=>l});var n=r(14943),i=r(93140),a=r(35838),s=r(6636),o=r(71380),u=r(58321),c="concat",l=(0,u.P9)(c,["typed","matrix","isInteger"],e=>{var{typed:t,matrix:r,isInteger:u}=e;return t(c,{"...Array | Matrix | number | BigNumber":function(e){var t,c,l=e.length,p=-1,f=!1,d=[];for(t=0;t<l;t++){var h=e[t];if((0,n.OA)(h)&&(f=!0),(0,n.Et)(h)||(0,n.C4)(h)){if(t!==l-1)throw Error("Dimension must be specified as last argument");if(c=p,!u(p=h.valueOf()))throw TypeError("Integer number expected for dimension");if(p<0||t>0&&p>c)throw new s.d(p,c+1)}else{var m=(0,i.o8)(h).valueOf(),g=(0,a.LO)(m);if(d[t]=m,c=p,p=g.length-1,t>0&&p!==c)throw new o.h(c+1,p+1)}}if(0===d.length)throw SyntaxError("At least one matrix expected");for(var v=d.shift();d.length;)v=(0,a.xW)(v,d.shift(),p);return f?r(v):v},"...string":function(e){return e.join("")}})})},15365(e,t,r){"use strict";r.d(t,{K:()=>a});var n=r(58321),i="count",a=(0,n.P9)(i,["typed","size","prod"],e=>{var{typed:t,size:r,prod:n}=e;return t(i,{string:function(e){return e.length},"Matrix | Array":function(e){return n(r(e))}})})},9602(e,t,r){"use strict";r.d(t,{x:()=>s});var n=r(35838),i=r(58321),a="cross",s=(0,i.P9)(a,["typed","matrix","subtract","multiply"],e=>{var{typed:t,matrix:r,subtract:i,multiply:s}=e;return t(a,{"Matrix, Matrix":function(e,t){return r(o(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return r(o(e.toArray(),t))},"Array, Matrix":function(e,t){return r(o(e,t.toArray()))},"Array, Array":o});function o(e,t){var r=Math.max((0,n.LO)(e).length,(0,n.LO)(t).length);e=(0,n.r2)(e),t=(0,n.r2)(t);var a=(0,n.LO)(e),o=(0,n.LO)(t);if(1!==a.length||1!==o.length||3!==a[0]||3!==o[0])throw RangeError("Vectors with length 3 expected (Size A = ["+a.join(", ")+"], B = ["+o.join(", ")+"])");var u=[i(s(e[1],t[2]),s(e[2],t[1])),i(s(e[2],t[0]),s(e[0],t[2])),i(s(e[0],t[1]),s(e[1],t[0]))];return r>1?[u]:u}})},45684(e,t,r){"use strict";r.d(t,{d:()=>a});var n=r(58321),i="ctranspose",a=(0,n.P9)(i,["typed","transpose","conj"],e=>{var{typed:t,transpose:r,conj:n}=e;return t(i,{any:function(e){return n(r(e))}})})},65547(e,t,r){"use strict";r.d(t,{k:()=>s});var n=r(14943),i=r(93140),a=r(27716),s=(0,r(58321).P9)("det",["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],e=>{var{typed:t,matrix:r,subtractScalar:s,multiply:o,divideScalar:u,isZero:c,unaryMinus:l}=e;return t("det",{any:function(e){return(0,i.o8)(e)},"Array | Matrix":function(e){var t;switch((t=(0,n.OA)(e)?e.size():Array.isArray(e)?(e=r(e)).size():[]).length){case 0:return(0,i.o8)(e);case 1:if(1===t[0])return(0,i.o8)(e.valueOf()[0]);if(0===t[0])return 1;throw RangeError("Matrix must be square (size: "+(0,a.GP)(t)+")");case 2:var p=t[0],f=t[1];if(p===f)return function(e,t){if(1===t)return(0,i.o8)(e[0][0]);if(2===t)return s(o(e[0][0],e[1][1]),o(e[1][0],e[0][1]));for(var r=!1,n=Array(t).fill(0).map((e,t)=>t),a=0;a<t;a++){var p=n[a];if(c(e[p][a])){var f=void 0;for(f=a+1;f<t;f++)if(!c(e[n[f]][a])){p=n[f],n[f]=n[a],n[a]=p,r=!r;break}if(f===t)return e[p][a]}for(var d=e[p][a],h=0===a?1:e[n[a-1]][a-1],m=a+1;m<t;m++)for(var g=n[m],v=a+1;v<t;v++)e[g][v]=u(s(o(e[g][v],d),o(e[g][a],e[p][v])),h)}var y=e[n[t-1]][t-1];return r?l(y):y}(e.clone().valueOf(),p);if(0===f)return 1;throw RangeError("Matrix must be square (size: "+(0,a.GP)(t)+")");default:throw RangeError("Matrix must be two dimensional (size: "+(0,a.GP)(t)+")")}}})})},91439(e,t,r){"use strict";r.d(t,{I:()=>u});var n=r(14943),i=r(35838),a=r(51106),s=r(58321),o="diag",u=(0,s.P9)(o,["typed","matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,matrix:r,DenseMatrix:s,SparseMatrix:u}=e;return t(o,{Array:function(e){return c(e,0,(0,i.LO)(e),null)},"Array, number":function(e,t){return c(e,t,(0,i.LO)(e),null)},"Array, BigNumber":function(e,t){return c(e,t.toNumber(),(0,i.LO)(e),null)},"Array, string":function(e,t){return c(e,0,(0,i.LO)(e),t)},"Array, number, string":function(e,t,r){return c(e,t,(0,i.LO)(e),r)},"Array, BigNumber, string":function(e,t,r){return c(e,t.toNumber(),(0,i.LO)(e),r)},Matrix:function(e){return c(e,0,e.size(),e.storage())},"Matrix, number":function(e,t){return c(e,t,e.size(),e.storage())},"Matrix, BigNumber":function(e,t){return c(e,t.toNumber(),e.size(),e.storage())},"Matrix, string":function(e,t){return c(e,0,e.size(),t)},"Matrix, number, string":function(e,t,r){return c(e,t,e.size(),r)},"Matrix, BigNumber, string":function(e,t,r){return c(e,t.toNumber(),e.size(),r)}});function c(e,t,i,o){if(!(0,a.YN)(t))throw TypeError("Second parameter in function diag must be an integer");var c=t>0?t:0,l=t<0?-t:0;switch(i.length){case 1:var p=e,f=t,d=o,h=i[0],m=l,g=c,v=[h+m,h+g];if(d&&"sparse"!==d&&"dense"!==d)throw TypeError("Unknown matrix type ".concat(d,'"'));var y="sparse"===d?u.diagonal(v,p,f):s.diagonal(v,p,f);return null!==d?y:y.valueOf();case 2:var b=e,x=t,D=o,w=i,N=l,A=c;if((0,n.OA)(b)){var E=b.diagonal(x);return null!==D?D!==E.storage()?r(E,D):E:E.valueOf()}for(var S=Math.min(w[0]-N,w[1]-A),C=[],M=0;M<S;M++)C[M]=b[M+N][M+A];return null!==D?r(C):C}throw RangeError("Matrix for function diag must be 2 dimensional")}})},56079(e,t,r){"use strict";r.d(t,{i:()=>o});var n=r(58321),i=r(51106),a=r(14943),s="diff",o=(0,n.P9)(s,["typed","matrix","subtract","number"],e=>{var{typed:t,matrix:r,subtract:n,number:o}=e;return t(s,{"Array | Matrix":function(e){return(0,a.OA)(e)?r(c(e.toArray())):c(e)},"Array | Matrix, number":function(e,t){if(!(0,i.YN)(t))throw RangeError("Dimension must be a whole number");return(0,a.OA)(e)?r(u(e.toArray(),t)):u(e,t)},"Array, BigNumber":t.referTo("Array,number",e=>(t,r)=>e(t,o(r))),"Matrix, BigNumber":t.referTo("Matrix,number",e=>(t,r)=>e(t,o(r)))});function u(e,t){if((0,a.OA)(e)&&(e=e.toArray()),!Array.isArray(e))throw RangeError("Array/Matrix does not have that many dimensions");if(t>0){var r=[];return e.forEach(e=>{r.push(u(e,t-1))}),r}if(0===t)return c(e);throw RangeError("Cannot have negative dimension")}function c(e){for(var t=[],r=e.length,i=1;i<r;i++)t.push(function e(t,r){(0,a.OA)(t)&&(t=t.toArray()),(0,a.OA)(r)&&(r=r.toArray());var i=Array.isArray(t),s=Array.isArray(r);if(i&&s){var o=t,u=r;if(o.length!==u.length)throw RangeError("Not all sub-arrays have the same length");for(var c=[],l=o.length,p=0;p<l;p++)c.push(e(o[p],u[p]));return c}if(!i&&!s)return n(r,t);throw TypeError("Cannot calculate difference between 1 array and 1 non-array")}(e[i-1],e[i]));return t}})},99425(e,t,r){"use strict";r.d(t,{Y:()=>a});var n=r(58321),i=r(14943),a=(0,n.P9)("dot",["typed","addScalar","multiplyScalar","conj","size"],e=>{var{typed:t,addScalar:r,multiplyScalar:n,conj:a,size:s}=e;return t("dot",{"Array | DenseMatrix, Array | DenseMatrix":function(e,u){var c=o(e,u),l=(0,i.OA)(e)?e._data:e,p=(0,i.OA)(e)?e._datatype||e.getDataType():void 0,f=(0,i.OA)(u)?u._data:u,d=(0,i.OA)(u)?u._datatype||u.getDataType():void 0,h=2===s(e).length,m=2===s(u).length,g=r,v=n;if(p&&d&&p===d&&"string"==typeof p&&"mixed"!==p&&(g=t.find(r,[p,p]),v=t.find(n,[p,p])),!h&&!m){for(var y=v(a(l[0]),f[0]),b=1;b<c;b++)y=g(y,v(a(l[b]),f[b]));return y}if(!h&&m){for(var x=v(a(l[0]),f[0][0]),D=1;D<c;D++)x=g(x,v(a(l[D]),f[D][0]));return x}if(h&&!m){for(var w=v(a(l[0][0]),f[0]),N=1;N<c;N++)w=g(w,v(a(l[N][0]),f[N]));return w}if(h&&m){for(var A=v(a(l[0][0]),f[0][0]),E=1;E<c;E++)A=g(A,v(a(l[E][0]),f[E][0]));return A}},"SparseMatrix, SparseMatrix":function(e,t){o(e,t);for(var i=e._index,a=e._values,s=t._index,u=t._values,c=0,l=0,p=0;l<i.length&&p<s.length;){var f=i[l],d=s[p];if(f<d){l++;continue}if(f>d){p++;continue}f===d&&(c=r(c,n(a[l],u[p])),l++,p++)}return c}});function o(e,t){var r,n,i=s(e),a=s(t);if(1===i.length)r=i[0];else if(2===i.length&&1===i[1])r=i[0];else throw RangeError("Expected a column vector, instead got a matrix of size ("+i.join(", ")+")");if(1===a.length)n=a[0];else if(2===a.length&&1===a[1])n=a[0];else throw RangeError("Expected a column vector, instead got a matrix of size ("+a.join(", ")+")");if(r!==n)throw RangeError("Vectors must have equal length ("+r+" != "+n+")");if(0===r)throw RangeError("Cannot calculate the dot product of empty vectors");return r}})},20861(e,t,r){"use strict";r.d(t,{f:()=>u});var n=r(71333),i=r(58321),a=r(27716),s=r(93140),o=r(14943),u=(0,i.P9)("eigs",["config","typed","matrix","addScalar","equal","subtract","abs","atan","cos","sin","multiplyScalar","divideScalar","inv","bignumber","multiply","add","larger","column","flatten","number","complex","sqrt","diag","size","reshape","qr","usolve","usolveAll","im","re","smaller","matrixFromColumns","dot"],e=>{var{config:t,typed:r,matrix:i,addScalar:u,subtract:c,equal:l,abs:p,atan:f,cos:d,sin:h,multiplyScalar:m,divideScalar:g,inv:v,bignumber:y,multiply:b,add:x,larger:D,column:w,flatten:N,number:A,complex:E,sqrt:S,diag:C,size:M,reshape:T,qr:O,usolve:F,usolveAll:_,im:B,re:P,smaller:k,matrixFromColumns:q,dot:I}=e,R=function(e){var{config:t,addScalar:r,subtract:n,abs:i,atan:a,cos:o,sin:u,multiplyScalar:c,inv:l,bignumber:p,multiply:f,add:d}=e;function h(e){for(var t=e.length,r=0,n=[0,1],i=0;i<t;i++)for(var a=i+1;a<t;a++)Math.abs(r)<Math.abs(e[i][a])&&(r=Math.abs(e[i][a]),n=[i,a]);return[n,r]}function m(e){for(var t=e.length,r=0,n=[0,1],a=0;a<t;a++)for(var s=a+1;s<t;s++)i(r)<i(e[a][s])&&(r=i(e[a][s]),n=[a,s]);return[n,r]}function g(e,t,r){var n,a=e.length,s=Array(a);if(r){n=Array(a);for(var o=0;o<a;o++)n[o]=Array(a)}for(var u=0;u<a;u++){for(var c=0,l=e[0],p=0;p<e.length;p++)i(e[p])<i(l)&&(l=e[c=p]);if(s[u]=e.splice(c,1)[0],r)for(var f=0;f<a;f++)n[u][f]=t[f][c],t[f].splice(c,1)}if(!r)return{values:s};var d=n.map((e,t)=>({value:s[t],vector:e}));return{values:s,eigenvectors:d}}return function(e,v){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.relTol,b=arguments.length>3?arguments[3]:void 0,x=arguments.length>4?arguments[4]:void 0;if("number"===b)return function(e,r,n){var i,a,o=e.length,u=Math.abs(r/o);if(n){a=Array(o);for(var c=0;c<o;c++)a[c]=Array(o).fill(0),a[c][c]=1}for(var l=h(e);Math.abs(l[1])>=Math.abs(u);){var p,f,d,m=l[0][0],v=l[0][1];p=e[m][m],f=e[v][v],d=e[m][v],e=function(e,t,r,n){for(var i=e.length,a=Math.cos(t),s=Math.sin(t),o=a*a,u=s*s,c=Array(i).fill(0),l=Array(i).fill(0),p=o*e[r][r]-2*a*s*e[r][n]+u*e[n][n],f=u*e[r][r]+2*a*s*e[r][n]+o*e[n][n],d=0;d<i;d++)c[d]=a*e[r][d]-s*e[n][d],l[d]=s*e[r][d]+a*e[n][d];e[r][r]=p,e[n][n]=f,e[r][n]=0,e[n][r]=0;for(var h=0;h<i;h++)h!==r&&h!==n&&(e[r][h]=c[h],e[h][r]=c[h],e[n][h]=l[h],e[h][n]=l[h]);return e}(e,i=Math.abs(f-p)<=t.relTol?Math.PI/4:.5*Math.atan(2*d/(f-p)),m,v),n&&(a=function(e,t,r,n){for(var i=e.length,a=Math.cos(t),s=Math.sin(t),o=Array(i).fill(0),u=Array(i).fill(0),c=0;c<i;c++)o[c]=a*e[c][r]-s*e[c][n],u[c]=s*e[c][r]+a*e[c][n];for(var l=0;l<i;l++)e[l][r]=o[l],e[l][n]=u[l];return e}(a,i,m,v)),l=h(e)}for(var y=Array(o).fill(0),b=0;b<o;b++)y[b]=e[b][b];return g((0,s.o8)(y),a,n)}(e,y,x);if("BigNumber"===b)return function(e,h,v){var y,b,x=e.length,D=i(h/x);if(v){b=Array(x);for(var w=0;w<x;w++)b[w]=Array(x).fill(0),b[w][w]=1}for(var N=m(e);i(N[1])>=i(D);){var A=N[0][0],E=N[0][1];y=function(e,r,s){var o=n(r,e);return i(o)<=t.relTol?p(-1).acos().div(4):c(.5,a(f(2,s,l(o))))}(e[A][A],e[E][E],e[A][E]),e=function(e,t,i,a){for(var s=e.length,l=p(o(t)),h=p(u(t)),m=c(l,l),g=c(h,h),v=Array(s).fill(p(0)),y=Array(s).fill(p(0)),b=f(p(2),l,h,e[i][a]),x=r(n(c(m,e[i][i]),b),c(g,e[a][a])),D=d(c(g,e[i][i]),b,c(m,e[a][a])),w=0;w<s;w++)v[w]=n(c(l,e[i][w]),c(h,e[a][w])),y[w]=r(c(h,e[i][w]),c(l,e[a][w]));e[i][i]=x,e[a][a]=D,e[i][a]=p(0),e[a][i]=p(0);for(var N=0;N<s;N++)N!==i&&N!==a&&(e[i][N]=v[N],e[N][i]=v[N],e[a][N]=y[N],e[N][a]=y[N]);return e}(e,y,A,E),v&&(b=function(e,t,i,a){for(var s=e.length,l=o(t),f=u(t),d=Array(s).fill(p(0)),h=Array(s).fill(p(0)),m=0;m<s;m++)d[m]=n(c(l,e[m][i]),c(f,e[m][a])),h[m]=r(c(f,e[m][i]),c(l,e[m][a]));for(var g=0;g<s;g++)e[g][i]=d[g],e[g][a]=h[g];return e}(b,y,A,E)),N=m(e)}for(var S=Array(x).fill(0),C=0;C<x;C++)S[C]=e[C][C];return g((0,s.o8)(S),b,v)}(e,y,x);throw TypeError("Unsupported data type: "+b)}}({config:t,addScalar:u,subtract:c,column:w,flatten:N,equal:l,abs:p,atan:f,cos:d,sin:h,multiplyScalar:m,inv:v,bignumber:y,complex:E,multiply:b,add:x}),z=function(e){var{addScalar:t,subtract:r,flatten:n,multiply:i,multiplyScalar:a,divideScalar:o,sqrt:u,abs:c,bignumber:l,diag:p,size:f,reshape:d,inv:h,qr:m,usolve:g,usolveAll:v,equal:y,complex:b,larger:x,smaller:D,matrixFromColumns:w,dot:N}=e;function A(e,t){for(var r=0;r<e.length;r++)e[r].push(...Array(t-e[r].length).fill(0));for(var n=e.length;n<t;n++)e.push(Array(t).fill(0)),e[n][n]=1;return e}function E(e,t){var n=f(e);for(var a of t)e=r(e,i(o(N(a=d(a,n),e),N(a,a)),a));return e}function S(e){return c(u(N(e,e)))}function C(e,t){return i(o("BigNumber"===t?l(1):"Complex"===t?b(1):1,S(e)),e)}return function(e,f,d,w){var N=!(arguments.length>4)||void 0===arguments[4]||arguments[4],M=function(e,r,n,i){var s,u="BigNumber"===n,f=u?l(0):0,d=u?l(1):"Complex"===n?b(1):1,h=u?l(1):1,m=u?l(10):2,g=a(m,m);i&&(s=Array(r).fill(d));for(var v=!1;!v;){v=!0;for(var w=0;w<r;w++){for(var N=f,A=f,E=0;E<r;E++)w!==E&&(N=t(N,c(e[E][w])),A=t(A,c(e[w][E])));if(!y(N,0)&&!y(A,0)){for(var S=h,C=N,M=o(A,m),T=a(A,m);D(C,M);)C=a(C,g),S=a(S,m);for(;x(C,T);)C=o(C,g),S=o(S,m);if(D(o(t(C,A),S),a(t(N,A),.95))){v=!1;for(var O=o(1,S),F=0;F<r;F++)w!==F&&(e[w][F]=a(e[w][F],O),e[F][w]=a(e[F][w],S));i&&(s[w]=a(s[w],O))}}}}return i?p(s):null}(e,f,w,N);!function(e,n,i,s,u,p){var f="BigNumber"===s,d=f?l(0):"Complex"===s?b(0):0;f&&(i=l(i));for(var h=0;h<n-2;h++){for(var m=0,g=d,v=h+1;v<n;v++){var y=e[v][h];D(c(g),c(y))&&(g=y,m=v)}if(!D(c(g),i)){if(m!==h+1){var x=e[m];e[m]=e[h+1],e[h+1]=x;for(var w=0;w<n;w++){var N=e[w][m];e[w][m]=e[w][h+1],e[w][h+1]=N}if(u){var A=p[m];p[m]=p[h+1],p[h+1]=A}}for(var E=h+2;E<n;E++){var S=o(e[E][h],g);if(0!==S){for(var C=0;C<n;C++)e[E][C]=r(e[E][C],a(S,e[h+1][C]));for(var M=0;M<n;M++)e[M][h+1]=t(e[M][h+1],a(S,e[M][E]));if(u)for(var T=0;T<n;T++)p[E][T]=r(p[E][T],a(S,p[h+1][T]))}}}}}(e,f,d,w,N,M);var{values:T,C:O}=function(e,n,o,f,d){var h="BigNumber"===f,g="Complex"===f,v=h?l(1):g?b(1):1;h&&(o=l(o));for(var y=(0,s.o8)(e),w=[],N=n,E=[],S=d?p(Array(n).fill(v)):void 0,C=d?p(Array(N).fill(v)):void 0,M=0;M<=100;){M+=1;for(var T=y[N-1][N-1],O=0;O<N;O++)y[O][O]=r(y[O][O],T);var{Q:F,R:_}=m(y);y=i(_,F);for(var B=0;B<N;B++)y[B][B]=t(y[B][B],T);if(d&&(C=i(C,F)),1===N||D(c(y[N-1][N-2]),o)){M=0,w.push(y[N-1][N-1]),d&&(E.unshift([[1]]),A(C,n),S=i(S,C),N>1&&(C=p(Array(N-1).fill(v)))),N-=1,y.pop();for(var P=0;P<N;P++)y[P].pop()}else if(2===N||D(c(y[N-2][N-3]),o)){M=0;var k=function(e,n,i,s){var o=t(e,s),c=r(a(e,s),a(n,i)),l=a(o,.5),p=a(u(r(a(o,o),a(4,c))),.5);return[t(l,p),r(l,p)]}(y[N-2][N-2],y[N-2][N-1],y[N-1][N-2],y[N-1][N-1]);w.push(...k),d&&(E.unshift(function(e,t,n,i,a,s,o,u){var p="BigNumber"===u,f="Complex"===u,d=p?l(0):f?b(0):0,h=p?l(1):f?b(1):1;if(D(c(n),o))return[[h,d],[d,h]];if(x(c(r(a,s)),o))return[[r(a,i),r(s,i)],[n,n]];var m=r(e,a),g=r(i,a);return D(c(t),o)&&D(c(g),o)?[[m,h],[n,d]]:[[t,d],[g,h]]}(y[N-2][N-2],y[N-2][N-1],y[N-1][N-2],y[N-1][N-1],k[0],k[1],o,f)),A(C,n),S=i(S,C),N>2&&(C=p(Array(N-2).fill(v)))),N-=2,y.pop(),y.pop();for(var q=0;q<N;q++)y[q].pop(),y[q].pop()}if(0===N)break}if(w.sort((e,t)=>+r(c(e),c(t))),M>100){var I=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+w.join(", "));throw I.values=w,I.vectors=[],I}return{values:w,C:d?i(S,function(e,t){for(var r=[],n=0;n<t;n++)r[n]=Array(t).fill(0);var i=0;for(var a of e){for(var s=a.length,o=0;o<s;o++)for(var u=0;u<s;u++)r[i+o][i+u]=a[o][u];i+=s}return r}(E,n)):void 0}}(e,f,d,w,N);if(N){var F=function(e,t,a,s,o,u,c){var f=i(h(a),e,a),d="BigNumber"===c,m="Complex"===c,w=d?l(0):m?b(0):0,N=d?l(1):m?b(1):1,A=[],M=[];for(var T of o){var O=function(e,t,r){for(var n=0;n<e.length;n++)if(r(e[n],t))return n;return -1}(A,T,y);-1===O?(A.push(T),M.push(1)):M[O]+=1}for(var F=[],_=A.length,B=Array(t).fill(w),P=p(Array(t).fill(N)),k=0;k<_;k++)!function(){var e=A[k],o=r(f,i(e,P)),p=v(o,B);for(p.shift();p.length<M[k];){var d=function(e,t,r,n,i){for(var a,s="BigNumber"===i?l(1e3):1e3,o=0;o<5;++o){a=function(e,t,r){var n="BigNumber"===r,i="Complex"===r,a=Array(e).fill(0).map(e=>2*Math.random()-1);return n&&(a=a.map(e=>l(e))),i&&(a=a.map(e=>b(e))),C(a=E(a,t),r)}(t,r,i);try{a=g(e,a)}catch(e){continue}if(x(S(a),s))break}if(o>=5)return null;for(o=0;;){var u=g(e,a);if(D(S(E(a,[u])),n))break;if(++o>=10)return null;a=C(u)}return a}(o,t,p,u,c);if(null===d)break;p.push(d)}var m=i(h(s),a);p=p.map(e=>i(m,e)),F.push(...p.map(t=>({value:e,vector:n(t)})))}();return F}(e,f,O,M,T,d,w);return{values:T,eigenvectors:F}}return{values:T}}}({config:t,addScalar:u,subtract:c,multiply:b,multiplyScalar:m,flatten:N,divideScalar:g,sqrt:S,abs:p,bignumber:y,diag:C,size:M,reshape:T,qr:O,inv:v,usolve:F,usolveAll:_,equal:l,complex:E,larger:D,smaller:k,matrixFromColumns:q,dot:I});return r("eigs",{Array:function(e){return L(i(e))},"Array, number|BigNumber":function(e,t){return L(i(e),{precision:t})},"Array, Object":(e,t)=>L(i(e),t),Matrix:function(e){return L(e,{matricize:!0})},"Matrix, number|BigNumber":function(e,t){return L(e,{precision:t,matricize:!0})},"Matrix, Object":function(e,t){var r={matricize:!0};return(0,n.A)(r,t),L(e,r)}});function L(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=!("eigenvectors"in n)||n.eigenvectors,o=function(e,t,r){var n=e.toArray(),i=e.size();if(2!==i.length||i[0]!==i[1])throw RangeError("Matrix must be square (size: ".concat((0,a.GP)(i),")"));var s=i[0];if(function(e,t,r){for(var n=0;n<t;n++)for(var i=0;i<t;i++)if(D(y(p(B(e[n][i]))),r))return!1;return!0}(n,s,t)&&(function(e,t){for(var r=0;r<t;r++)for(var n=0;n<t;n++)e[r][n]=P(e[r][n])}(n,s),function(e,t,r){for(var n=0;n<t;n++)for(var i=n;i<t;i++)if(D(y(p(c(e[n][i],e[i][n]))),r))return!1;return!0}(n,s,t))){var o=j(e,n,s);return R(n,s,t,o,r)}var u=j(e,n,s);return z(n,s,t,u,r)}(e,null!=(r=n.precision)?r:t.relTol,s);return n.matricize&&(o.values=i(o.values),s&&(o.eigenvectors=o.eigenvectors.map(e=>{var{value:t,vector:r}=e;return{value:t,vector:i(r)}}))),s&&Object.defineProperty(o,"vectors",{enumerable:!1,get:()=>{throw Error("eigs(M).vectors replaced with eigs(M).eigenvectors")}}),o}function j(e,t,r){var n=e.datatype();if("number"===n||"BigNumber"===n||"Complex"===n)return n;for(var i=!1,a=!1,s=!1,u=0;u<r;u++)for(var c=0;c<r;c++){var l=t[u][c];if((0,o.Et)(l)||(0,o.fU)(l))i=!0;else if((0,o.C4)(l))a=!0;else if((0,o.Zd)(l))s=!0;else throw TypeError("Unsupported type in Matrix: "+(0,o.QP)(l))}if(a&&s&&console.warn("Complex BigNumbers not supported, this operation will lose precission."),s){for(var p=0;p<r;p++)for(var f=0;f<r;f++)t[p][f]=E(t[p][f]);return"Complex"}if(a){for(var d=0;d<r;d++)for(var h=0;h<r;h++)t[d][h]=y(t[d][h]);return"BigNumber"}if(i){for(var m=0;m<r;m++)for(var g=0;g<r;g++)t[m][g]=A(t[m][g]);return"number"}throw TypeError("Matrix contains unsupported types only.")}})},47678(e,t,r){"use strict";r.d(t,{H:()=>o});var n=r(14943),i=r(27716),a=r(58321),s="expm",o=(0,a.P9)(s,["typed","abs","add","identity","inv","multiply"],e=>{var{typed:t,abs:r,add:a,identity:o,inv:u,multiply:c}=e;return t(s,{Matrix:function(e){var t=e.size();if(2!==t.length||t[0]!==t[1])throw RangeError("Matrix must be square (size: "+(0,i.GP)(t)+")");for(var s=t[0],l=function(e){for(var t=0;t<30;t++)for(var r=0;r<=t;r++){var n=t-r;if(1e-15>function(e,t,r){for(var n=1,i=2;i<=t;i++)n*=i;for(var a=n,s=t+1;s<=2*t;s++)a*=s;var o=a*(2*t+1);return 8*Math.pow(e/Math.pow(2,r),2*t)*n*n/(a*o)}(e,r,n))return{q:r,j:n}}throw Error("Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)")}(function(e){for(var t=e.size()[0],n=0,i=0;i<t;i++){for(var a=0,s=0;s<t;s++)a+=r(e.get([i,s]));n=Math.max(a,n)}return n}(e)),p=l.q,f=l.j,d=c(e,Math.pow(2,-f)),h=o(s),m=o(s),g=1,v=d,y=-1,b=1;b<=p;b++)b>1&&(v=c(v,d),y=-y),h=a(h,c(g=g*(p-b+1)/((2*p-b+1)*b),v)),m=a(m,c(g*y,v));for(var x=c(u(m),h),D=0;D<f;D++)x=c(x,x);return(0,n.AF)(e)?e.createSparseMatrix(x):x}})})},88822(e,t,r){"use strict";r.d(t,{H:()=>i});var n=r(35838),i=(0,r(58321).P9)("fft",["typed","matrix","addScalar","multiplyScalar","divideScalar","exp","tau","i","dotDivide","conj","pow","ceil","log2"],e=>{var{typed:t,matrix:r,addScalar:i,multiplyScalar:a,divideScalar:s,exp:o,tau:u,i:c,dotDivide:l,conj:p,pow:f,ceil:d,log2:h}=e;return t("fft",{Array:m,Matrix:function(e){return e.create(m(e.valueOf()),e.datatype())}});function m(e){var t=(0,n.LO)(e);return 1===t.length?g(e,t[0]):function e(t,r){var i=(0,n.LO)(t);if(0!==r)return Array(i[0]).fill(0).map((n,i)=>e(t[i],r-1));if(1===i.length)return g(t);function a(e){var t=(0,n.LO)(e);return Array(t[1]).fill(0).map((r,n)=>Array(t[0]).fill(0).map((t,r)=>e[r][n]))}return a(e(a(t),1))}(e.map(e=>m(e,t.slice(1))),0)}function g(e){var t=e.length;if(1===t)return[e[0]];if(t%2!=0)return function(e){for(var t=e.length,r=o(s(a(-1,a(c,u)),t)),n=[],i=1-t;i<t;i++)n.push(f(r,s(f(i,2),2)));for(var v=f(2,d(h(t+t-1))),y=[...Array(t).fill(0).map((r,i)=>a(e[i],n[t-1+i])),...Array(v-t).fill(0)],b=[...Array(t+t-1).fill(0).map((e,t)=>s(1,n[t])),...Array(v-(t+t-1)).fill(0)],x=g(y),D=g(b),w=l(p(m(p(Array(v).fill(0).map((e,t)=>a(x[t],D[t]))))),v),N=[],A=t-1;A<t+t-1;A++)N.push(a(w[A],n[A]));return N}(e);for(var r=[...g(e.filter((e,t)=>t%2==0),t/2),...g(e.filter((e,t)=>t%2==1),t/2)],n=0;n<t/2;n++){var v=r[n],y=a(r[n+t/2],o(a(a(u,c),s(-n,t))));r[n]=i(v,y),r[n+t/2]=i(v,a(-1,y))}return r}})},59990(e,t,r){"use strict";r.d(t,{H:()=>a});var n=r(86383),i=r(35838),a=(0,r(58321).P9)("filter",["typed"],e=>{var{typed:t}=e;return t("filter",{"Array, function":s,"Matrix, function":function(e,t){return e.create(s(e.valueOf(),t),e.datatype())},"Array, RegExp":i.Wr,"Matrix, RegExp":function(e,t){return e.create((0,i.Wr)(e.valueOf(),t),e.datatype())}})});function s(e,t){var r=(0,n.r)(t,e,"filter");return r.isUnary?(0,i.pb)(e,r.fn):(0,i.pb)(e,function(e,t,n){return r.fn(e,[t],n)})}},68920(e,t,r){"use strict";r.d(t,{d:()=>s});var n=r(35838),i=r(58321),a="flatten",s=(0,i.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{Array:function(e){return(0,n.Bq)(e)},DenseMatrix:function(e){return e.create((0,n.Bq)(e.valueOf(),!0),e.datatype())},SparseMatrix:function(e){throw TypeError("SparseMatrix is not supported by function flatten because it does not support 1D vectors. Convert to a DenseMatrix or Array first. Example: flatten(x.toArray())")}})})},31032(e,t,r){"use strict";r.d(t,{j:()=>o});var n=r(86383),i=r(58321),a=r(35838),s="forEach",o=(0,i.P9)(s,["typed"],e=>{var{typed:t}=e;return t(s,{"Array, function":u,"Matrix, function":function(e,t){e.forEach(t)}})});function u(e,t){var r=(0,n.r)(t,e,s);(0,a.xL)(e,r.fn,r.isUnary)}},75587(e,t,r){"use strict";r.d(t,{C:()=>o});var n=r(58321),i=r(35838),a=r(14943),s="getMatrixDataType",o=(0,n.P9)(s,["typed"],e=>{var{typed:t}=e;return t(s,{Array:function(e){return(0,i.ig)(e,a.QP)},Matrix:function(e){return e.getDataType()}})})},95310(e,t,r){"use strict";r.d(t,{D:()=>u});var n=r(14943),i=r(35838),a=r(51106),s=r(58321),o="identity",u=(0,s.P9)(o,["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],e=>{var{typed:t,config:r,matrix:s,BigNumber:u,DenseMatrix:c,SparseMatrix:l}=e;return t(o,{"":function(){return"Matrix"===r.matrix?s([]):[]},string:function(e){return s(e)},"number | BigNumber":function(e){return f(e,e,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, string":function(e,t){return f(e,e,t)},"number | BigNumber, number | BigNumber":function(e,t){return f(e,t,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(e,t,r){return f(e,t,r)},Array:function(e){return p(e)},"Array, string":function(e,t){return p(e,t)},Matrix:function(e){return p(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return p(e.valueOf(),t)}});function p(e,t){switch(e.length){case 0:return t?s(t):[];case 1:return f(e[0],e[0],t);case 2:return f(e[0],e[1],t);default:throw Error("Vector containing two values expected")}}function f(e,t,r){var s=(0,n.C4)(e)||(0,n.C4)(t)?u:null;if((0,n.C4)(e)&&(e=e.toNumber()),(0,n.C4)(t)&&(t=t.toNumber()),!(0,a.YN)(e)||e<1||!(0,a.YN)(t)||t<1)throw Error("Parameters in function identity must be positive integers");var o=s?new u(1):1,p=s?new s(0):0,f=[e,t];if(r){if("sparse"===r)return l.diagonal(f,o,0,p);if("dense"===r)return c.diagonal(f,o,0,p);throw TypeError('Unknown matrix type "'.concat(r,'"'))}for(var d=(0,i.XR)([],f,p),h=e<t?e:t,m=0;m<h;m++)d[m][m]=o;return d}})},31069(e,t,r){"use strict";r.d(t,{C:()=>o});var n=r(35838),i=r(58321),a=r(14943),s="ifft",o=(0,i.P9)(s,["typed","fft","dotDivide","conj"],e=>{var{typed:t,fft:r,dotDivide:i,conj:o}=e;return t(s,{"Array | Matrix":function(e){var t=(0,a.OA)(e)?e.size():(0,n.LO)(e);return i(o(r(o(e))),t.reduce((e,t)=>e*t,1))}})})},37429(e,t,r){"use strict";r.d(t,{K:()=>o});var n=r(14943),i=r(35838),a=r(58321),s=r(27716),o=(0,a.P9)("inv",["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],e=>{var{typed:t,matrix:r,divideScalar:a,addScalar:o,multiply:u,unaryMinus:c,det:l,identity:p,abs:f}=e;return t("inv",{"Array | Matrix":function(e){var t=(0,n.OA)(e)?e.size():(0,i.LO)(e);switch(t.length){case 1:if(1===t[0])if((0,n.OA)(e))return r([a(1,e.valueOf()[0])]);else return[a(1,e[0])];throw RangeError("Matrix must be square (size: "+(0,s.GP)(t)+")");case 2:var o=t[0],u=t[1];if(o===u)if((0,n.OA)(e))return r(d(e.valueOf(),o,u),e.storage());else return d(e,o,u);throw RangeError("Matrix must be square (size: "+(0,s.GP)(t)+")");default:throw RangeError("Matrix must be two dimensional (size: "+(0,s.GP)(t)+")")}},any:function(e){return a(1,e)}});function d(e,t,r){if(1===t){if(0===(d=e[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[a(1,d)]]}if(2===t){var n,i,s,d,h,m=l(e);if(0===m)throw Error("Cannot calculate inverse, determinant is zero");return[[a(e[1][1],m),a(c(e[0][1]),m)],[a(c(e[1][0]),m),a(e[0][0],m)]]}var g=e.concat();for(n=0;n<t;n++)g[n]=g[n].concat();for(var v=p(t).valueOf(),y=0;y<r;y++){var b=f(g[y][y]),x=y;for(n=y+1;n<t;)f(g[n][y])>b&&(b=f(g[n][y]),x=n),n++;if(0===b)throw Error("Cannot calculate inverse, determinant is zero");(n=x)!==y&&(h=g[y],g[y]=g[n],g[n]=h,h=v[y],v[y]=v[n],v[n]=h);var D=g[y],w=v[y];for(n=0;n<t;n++){var N=g[n],A=v[n];if(n!==y){if(0!==N[y]){for(s=a(c(N[y]),D[y]),i=y;i<r;i++)N[i]=o(N[i],u(s,D[i]));for(i=0;i<r;i++)A[i]=o(A[i],u(s,w[i]))}}else{for(s=D[y],i=y;i<r;i++)N[i]=a(N[i],s);for(i=0;i<r;i++)A[i]=a(A[i],s)}}}return v}})},36876(e,t,r){"use strict";r.d(t,{l:()=>s});var n=r(35838),i=r(58321),a="kron",s=(0,i.P9)(a,["typed","matrix","multiplyScalar"],e=>{var{typed:t,matrix:r,multiplyScalar:i}=e;return t(a,{"Matrix, Matrix":function(e,t){return r(s(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return r(s(e.toArray(),t))},"Array, Matrix":function(e,t){return r(s(e,t.toArray()))},"Array, Array":s});function s(e,t){var r,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(o<0){var u=(0,n.LO)(e).length,c=(0,n.LO)(t).length;for(o=Math.max(u,c);u++<o;)e=[e];for(;c++<o;)t=[t]}return 1===o?(r=e,a=t,r.flatMap(e=>a.map(t=>i(e,t)))):e.flatMap(e=>t.map(t=>s(e,t,o-1)))}})},84672(e,t,r){"use strict";r.d(t,{p:()=>a});var n=r(86383),i=r(35838),a=(0,r(58321).P9)("map",["typed"],e=>{var{typed:t}=e;return t("map",{"Array, function":a,"Matrix, function":function(e,t){return e.map(t)},"Array|Matrix, Array|Matrix, ...Array|Matrix|function":(e,n,s)=>(function(e,n){if("function"!=typeof n)throw Error("Last argument must be a callback function");var s,o,u,c,l=e[0].isMatrix,p=e.map(e=>e.isMatrix?e.size():(0,i.LO)(e)),f=(0,i.Kx)(...p),d=e.length,h=l?(e,t)=>e.get(t):i.Jt,m=e.map((e,t)=>{var r=p[t].map(()=>0);return e.isMatrix?e.get(r):(0,i.Jt)(e,r)}),g=t.isTypedFunction(n)?(s=n,o=m,u=f.map(()=>0),c=e,null!==t.resolve(s,[...o,u,...c])?2:null!==t.resolve(s,[...o,u])?1:(t.resolve(s,o),0)):function(e,t){var r=e.toString();if(/arguments/.test(r))return 2;var n=r.match(/\(.*?\)/);return/\.\.\./.test(n)||e.length>t+1?2:+(e.length===t+1)}(n,d);if(g<2)return function(e,t){var r=e[0],n=e.map(e=>e.isMatrix?e.valueOf():e),a=e.map(e=>e.isMatrix?e.size():(0,i.LO)(e)),s=(0,i.Kx)(...a),o=a.map(e=>s.length-e.length),u=s.length-1,c=t.length>1?[]:null,l=function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=s[n],a=Array(i);if(n<u)for(var l=function(t){c&&(c[n]=t),a[t]=e(r.map((e,r)=>o[r]>n?e:1===e.length?e[0]:e[t]),n+1)},p=0;p<i;p++)l(p);else for(var f=function(e){c&&(c[n]=e),a[e]=t(r.map(t=>1===t.length?t[0]:t[e]),c?c.slice():void 0)},d=0;d<i;d++)f(d);return a}(n,0);if(!r.isMatrix)return l;var p=r.create();return p._data=l,p._size=s,p}(e,r(g,n,null));var v=l?e.map(t=>t.isMatrix?t.create((0,i.hO)(t.toArray(),f),t.datatype()):e[0].create((0,i.hO)(t.valueOf(),f))):e.map(e=>e.isMatrix?(0,i.hO)(e.toArray(),f):(0,i.hO)(e,f)),y=r(g,n,v),b=(e,t)=>y([e,...v.slice(1).map(e=>h(e,t))],t);return l?v[0].map(b):a(v[0],b)})([e,n,...s.slice(0,s.length-1)],s[s.length-1])});function r(e,t,r){switch(e){case 0:return e=>t(...e);case 1:return(e,r)=>t(...e,r);case 2:return(e,n)=>t(...e,n,...r)}}function a(e,t){var r=(0,n.r)(t,e,"map");return(0,i.Bl)(e,r.fn,r.isUnary)}})},86255(e,t,r){"use strict";r.d(t,{Q:()=>u});var n=r(58321),i=r(35838),a=r(14943),s=r(6636),o="mapSlices",u=(0,n.P9)(o,["typed","isInteger"],e=>{var{typed:t,isInteger:r}=e;return t(o,{"Array | Matrix, number | BigNumber, function":function(e,t,n){if(!r(t))throw TypeError("Integer number expected for dimension");var o=Array.isArray(e)?(0,i.LO)(e):e.size();if(t<0||t>=o.length)throw new s.d(t,o.length);return(0,a.OA)(e)?e.create(c(e.valueOf(),t,n),e.datatype()):c(e,t,n)}})},{formerly:"apply"});function c(e,t,r){var n,i,a;if(t<=0)if(!Array.isArray(e[0]))return r(e);else{for(n=0,a=function(e){var t,r,n=e.length,i=e[0].length,a=[];for(r=0;r<i;r++){var s=[];for(t=0;t<n;t++)s.push(e[t][r]);a.push(s)}return a}(e),i=[];n<a.length;n++)i[n]=c(a[n],t-1,r);return i}for(n=0,i=[];n<e.length;n++)i[n]=c(e[n],t-1,r);return i}},54242(e,t,r){"use strict";r.d(t,{z:()=>a});var n=r(58321),i="matrixFromColumns",a=(0,n.P9)(i,["typed","matrix","flatten","size"],e=>{var{typed:t,matrix:r,flatten:n,size:a}=e;return t(i,{"...Array":function(e){return s(e)},"...Matrix":function(e){return r(s(e.map(e=>e.toArray())))}});function s(e){if(0===e.length)throw TypeError("At least one column is needed to construct a matrix.");for(var t=o(e[0]),r=[],i=0;i<t;i++)r[i]=[];for(var a of e){var s=o(a);if(s!==t)throw TypeError("The vectors had different length: "+(0|t)+" ≠ "+(0|s));for(var u=n(a),c=0;c<t;c++)r[c].push(u[c])}return r}function o(e){var t=a(e);if(1===t.length)return t[0];if(2===t.length)if(1===t[0])return t[1];else if(1===t[1])return t[0];else throw TypeError("At least one of the arguments is not a vector.");throw TypeError("Only one- or two-dimensional vectors are supported.")}})},64977(e,t,r){"use strict";r.d(t,{s:()=>a});var n=r(58321),i="matrixFromFunction",a=(0,n.P9)(i,["typed","matrix","isZero"],e=>{var{typed:t,matrix:r,isZero:n}=e;return t(i,{"Array | Matrix, function, string, string":function(e,t,r,n){return a(e,t,r,n)},"Array | Matrix, function, string":function(e,t,r){return a(e,t,r)},"Matrix, function":function(e,t){return a(e,t,"dense")},"Array, function":function(e,t){return a(e,t,"dense").toArray()},"Array | Matrix, string, function":function(e,t,r){return a(e,r,t)},"Array | Matrix, string, string, function":function(e,t,r,n){return a(e,n,t,r)}});function a(e,t,i,a){var s;return(s=void 0!==a?r(i,a):r(i)).resize(e),s.forEach(function(e,r){var i=t(r);n(i)||s.set(r,i)}),s}})},53348(e,t,r){"use strict";r.d(t,{Z:()=>a});var n=r(58321),i="matrixFromRows",a=(0,n.P9)(i,["typed","matrix","flatten","size"],e=>{var{typed:t,matrix:r,flatten:n,size:a}=e;return t(i,{"...Array":function(e){return s(e)},"...Matrix":function(e){return r(s(e.map(e=>e.toArray())))}});function s(e){if(0===e.length)throw TypeError("At least one row is needed to construct a matrix.");var t=o(e[0]),r=[];for(var i of e){var a=o(i);if(a!==t)throw TypeError("The vectors had different length: "+(0|t)+" ≠ "+(0|a));r.push(n(i))}return r}function o(e){var t=a(e);if(1===t.length)return t[0];if(2===t.length)if(1===t[0])return t[1];else if(1===t[1])return t[0];else throw TypeError("At least one of the arguments is not a vector.");throw TypeError("Only one- or two-dimensional vectors are supported.")}})},88193(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(14943),i=r(51106),a=r(35838),s=(0,r(58321).P9)("ones",["typed","config","matrix","BigNumber"],e=>{var{typed:t,config:r,matrix:s,BigNumber:o}=e;return t("ones",{"":function(){return"Array"===r.matrix?u([]):u([],"default")},"...number | BigNumber | string":function(e){if("string"==typeof e[e.length-1]){var t=e.pop();return u(e,t)}return"Array"===r.matrix?u(e):u(e,"default")},Array:u,Matrix:function(e){var t=e.storage();return u(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return u(e.valueOf(),t)}});function u(e,t){var r,u=(r=!1,e.forEach(function(e,t,i){(0,n.C4)(e)&&(r=!0,i[t]=e.toNumber())}),r)?new o(1):1;if(e.forEach(function(e){if("number"!=typeof e||!(0,i.YN)(e)||e<0)throw Error("Parameters in function ones must be positive integers")}),t){var c=s(t);return e.length>0?c.resize(e,u):c}var l=[];return e.length>0?(0,a.XR)(l,e,u):l}})},36228(e,t,r){"use strict";r.d(t,{X:()=>o});var n=r(14943),i=r(51106),a=r(58321),s="partitionSelect",o=(0,a.P9)(s,["typed","isNumeric","isNaN","compare"],e=>{var{typed:t,isNumeric:r,isNaN:a,compare:o}=e,u=(e,t)=>-o(e,t);return t(s,{"Array | Matrix, number":function(e,t){return c(e,t,o)},"Array | Matrix, number, string":function(e,t,r){if("asc"===r)return c(e,t,o);if("desc"===r)return c(e,t,u);throw Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":c});function c(e,t,r){if(!(0,i.YN)(t)||t<0)throw Error("k must be a non-negative integer");if((0,n.OA)(e)){if(e.size().length>1)throw Error("Only one dimensional matrices supported");return l(e.valueOf(),t,r)}if(Array.isArray(e))return l(e,t,r)}function l(e,t,n){if(t>=e.length)throw Error("k out of bounds");for(var i=0;i<e.length;i++)if(r(e[i])&&a(e[i]))return e[i];for(var s=0,o=e.length-1;s<o;){for(var u=s,c=o,l=e[Math.floor(Math.random()*(o-s+1))+s];u<c;)if(n(e[u],l)>=0){var p=e[c];e[c]=e[u],e[u]=p,--c}else++u;n(e[u],l)>0&&--u,t<=u?o=u:s=u+1}return e[t]}})},34739(e,t,r){"use strict";r.d(t,{w:()=>c});var n=r(14943),i=r(35838),a=r(58321),s=r(27716),o=r(93140),u="pinv",c=(0,a.P9)(u,["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],e=>{var{typed:t,matrix:r,inv:a,deepEqual:c,equal:l,dotDivide:p,dot:f,ctranspose:d,divideScalar:h,multiply:m,add:g,Complex:v}=e;return t(u,{"Array | Matrix":function(e){var t=(0,n.OA)(e)?e.size():(0,i.LO)(e);switch(t.length){case 1:if(x(e))return d(e);if(1===t[0])return a(e);return p(d(e),f(e,e));case 2:if(x(e))return d(e);var o=t[0],u=t[1];if(o===u)try{return a(e)}catch(e){if(e instanceof Error&&e.message.match(/Cannot calculate inverse, determinant is zero/));else throw e}if((0,n.OA)(e))return r(y(e.valueOf(),o,u),e.storage());return y(e,o,u);default:throw RangeError("Matrix must be two dimensional (size: "+(0,s.GP)(t)+")")}},any:function(e){return l(e,0)?(0,o.o8)(e):h(1,e)}});function y(e,t,r){var n,i,s,{C:u,F:c}=(s=function(e,t,r){for(var n=(0,o.o8)(e),i=0,a=0;a<t&&!(r<=i);a++){for(var s=a;b(n[s][i]);)if(t===++s&&(s=a,r===++i))return n;[n[s],n[a]]=[n[a],n[s]];for(var u=n[a][i],c=0;c<r;c++)n[a][c]=p(n[a][c],u);for(var l=0;l<t;l++)if(l!==a){u=n[l][i];for(var f=0;f<r;f++)n[l][f]=g(n[l][f],m(-1,m(u,n[a][f])))}i++}return n}(n=e,i=t,r),{C:n.map((e,t)=>e.filter((e,t)=>t<i&&!b(f(s[t],s[t])))),F:s.filter((e,t)=>!b(f(s[t],s[t])))}),l=m(a(m(d(u),u)),d(u)),h=m(d(c),a(m(c,d(c))));return m(h,l)}function b(e){return l(g(e,v(1,1)),g(0,v(1,1)))}function x(e){return c(g(e,v(1,1)),g(m(e,0),v(1,1)))}})},98463(e,t,r){"use strict";r.d(t,{S:()=>s});var n=r(58321),i=r(76495),a="range",s=(0,n.P9)(a,["typed","config","?matrix","?bignumber","equal","smaller","smallerEq","larger","largerEq","add","isZero","isPositive"],e=>{var{typed:t,config:r,matrix:n,bignumber:s,smaller:o,smallerEq:u,larger:c,largerEq:l,add:p,isZero:f,isPositive:d}=e;return t(a,{string:m,"string, boolean":m,number:function(e){throw TypeError("Too few arguments to function range(): ".concat(e))},boolean:function(e){throw TypeError("Unexpected type of argument 1 to function range(): ".concat(e,", number|bigint|BigNumber|Fraction"))},"number, number":function(e,t){return h(g(e,t,1,!1))},"number, number, number":function(e,t,r){return h(g(e,t,r,!1))},"number, number, boolean":function(e,t,r){return h(g(e,t,1,r))},"number, number, number, boolean":function(e,t,r,n){return h(g(e,t,r,n))},"bigint, bigint|number":function(e,t){return h(g(e,t,1n,!1))},"number, bigint":function(e,t){return h(g(BigInt(e),t,1n,!1))},"bigint, bigint|number, bigint|number":function(e,t,r){return h(g(e,t,BigInt(r),!1))},"number, bigint, bigint|number":function(e,t,r){return h(g(BigInt(e),t,BigInt(r),!1))},"bigint, bigint|number, boolean":function(e,t,r){return h(g(e,t,1n,r))},"number, bigint, boolean":function(e,t,r){return h(g(BigInt(e),t,1n,r))},"bigint, bigint|number, bigint|number, boolean":function(e,t,r,n){return h(g(e,t,BigInt(r),n))},"number, bigint, bigint|number, boolean":function(e,t,r,n){return h(g(BigInt(e),t,BigInt(r),n))},"BigNumber, BigNumber":function(e,t){var r=e.constructor;return h(g(e,t,new r(1),!1))},"BigNumber, BigNumber, BigNumber":function(e,t,r){return h(g(e,t,r,!1))},"BigNumber, BigNumber, boolean":function(e,t,r){var n=e.constructor;return h(g(e,t,new n(1),r))},"BigNumber, BigNumber, BigNumber, boolean":function(e,t,r,n){return h(g(e,t,r,n))},"Fraction, Fraction":function(e,t){return h(g(e,t,1,!1))},"Fraction, Fraction, Fraction":function(e,t,r){return h(g(e,t,r,!1))},"Fraction, Fraction, boolean":function(e,t,r){return h(g(e,t,1,r))},"Fraction, Fraction, Fraction, boolean":function(e,t,r,n){return h(g(e,t,r,n))},"Unit, Unit, Unit":function(e,t,r){return h(g(e,t,r,!1))},"Unit, Unit, Unit, boolean":function(e,t,r,n){return h(g(e,t,r,n))}});function h(e){return"Matrix"===r.matrix?n?n(e):(0,i.zc)():e}function m(e,t){var n=function(e){var t=e.split(":").map(function(e){return Number(e)});if(t.some(function(e){return isNaN(e)}))return null;switch(t.length){case 2:return{start:t[0],end:t[1],step:1};case 3:return{start:t[0],end:t[2],step:t[1]};default:return null}}(e);if(!n)throw SyntaxError('String "'+e+'" is no valid range');return"BigNumber"===r.number?(void 0===s&&(0,i.j9)(),h(g(s(n.start),s(n.end),s(n.step)),t)):h(g(n.start,n.end,n.step,t))}function g(e,t,r,n){var i=[];if(f(r))throw Error("Step must be non-zero");for(var a=d(r)?n?u:o:n?l:c,s=e;a(s,t);)i.push(s),s=p(s,r);return i}})},82380(e,t,r){"use strict";r.d(t,{r:()=>s});var n=r(35838),i=r(58321),a="reshape",s=(0,i.P9)(a,["typed","isInteger","matrix"],e=>{var{typed:t,isInteger:r}=e;return t(a,{"Matrix, Array":function(e,t){return e.reshape(t,!0)},"Array, Array":function(e,t){return t.forEach(function(e){if(!r(e))throw TypeError("Invalid size for dimension: "+e)}),(0,n.tQ)(e,t)}})})},39192(e,t,r){"use strict";r.d(t,{B:()=>l});var n=r(14943),i=r(71380),a=r(60928),s=r(51106),o=r(27716),u=r(93140),c=r(35838),l=(0,r(58321).P9)("resize",["config","matrix"],e=>{var{config:t,matrix:r}=e;return function(e,l,p){if(2!=arguments.length&&3!=arguments.length)throw new a.X("resize",arguments.length,2,3);if((0,n.OA)(l)&&(l=l.valueOf()),(0,n.C4)(l[0])&&(l=l.map(function(e){return(0,n.C4)(e)?e.toNumber():e})),(0,n.OA)(e))return e.resize(l,p,!0);if("string"==typeof e){var f=e,d=l,h=p;if(void 0!==h){if("string"!=typeof h||1!==h.length)throw TypeError("Single character expected as defaultValue")}else h=" ";if(1!==d.length)throw new i.h(d.length,1);var m=d[0];if("number"!=typeof m||!(0,s.YN)(m))throw TypeError("Invalid size, must contain positive integers (size: "+(0,o.GP)(d)+")");if(f.length>m)return f.substring(0,m);if(!(f.length<m))return f;for(var g=f,v=0,y=m-f.length;v<y;v++)g+=h;return g}var b=!Array.isArray(e)&&"Array"!==t.matrix;if(0===l.length){for(;Array.isArray(e);)e=e[0];return(0,u.o8)(e)}Array.isArray(e)||(e=[e]),e=(0,u.o8)(e);var x=(0,c.XR)(e,l,p);return b?r(x):x}})},18023(e,t,r){"use strict";r.d(t,{S:()=>s});var n=r(58321),i=r(35838),a="rotate",s=(0,n.P9)(a,["typed","multiply","rotationMatrix"],e=>{var{typed:t,multiply:r,rotationMatrix:n}=e;return t(a,{"Array , number | BigNumber | Complex | Unit":function(e,t){return s(e,2),r(n(t),e).toArray()},"Matrix , number | BigNumber | Complex | Unit":function(e,t){return s(e,2),r(n(t),e)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(e,t,i){return s(e,3),r(n(t,i),e)},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(e,t,i){return s(e,3),r(n(t,i),e)}});function s(e,t){var r=Array.isArray(e)?(0,i.LO)(e):e.size();if(r.length>2||2===r.length&&1!==r[1]||r[0]!==t)throw RangeError("Vector must be of dimensions 1x".concat(t))}})},23163(e,t,r){"use strict";r.d(t,{m:()=>s});var n=r(14943),i=r(58321),a="rotationMatrix",s=(0,i.P9)(a,["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],e=>{var{typed:t,config:r,multiplyScalar:i,addScalar:s,unaryMinus:o,norm:u,BigNumber:c,matrix:l,DenseMatrix:p,SparseMatrix:f,cos:d,sin:h}=e;return t(a,{"":function(){return"Matrix"===r.matrix?l([]):[]},string:function(e){return l(e)},"number | BigNumber | Complex | Unit":function(e){return m(e,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function(e,t){return m(e,t)},"number | BigNumber | Complex | Unit, Array":function(e,t){var r=l(t);return g(r),b(e,r,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(e,t){g(t);var n=t.storage()||("Matrix"===r.matrix?"dense":void 0);return b(e,t,n)},"number | BigNumber | Complex | Unit, Array, string":function(e,t,r){var n=l(t);return g(n),b(e,n,r)},"number | BigNumber | Complex | Unit, Matrix, string":function(e,t,r){return g(t),b(e,t,r)}});function m(e,t){var r=(0,n.C4)(e)?new c(-1):-1,a=d(e),s=h(e);return y([[a,i(r,s)],[s,a]],t)}function g(e){var t=e.size();if(t.length<1||3!==t[0])throw RangeError("Vector must be of dimensions 1x3")}function v(e){return e.reduce((e,t)=>i(e,t))}function y(e,t){if(t){if("sparse"===t)return new f(e);if("dense"===t)return new p(e);throw TypeError('Unknown matrix type "'.concat(t,'"'))}return e}function b(e,t,r){var i=u(t);if(0===i)throw RangeError("Rotation around zero vector");var a=(0,n.C4)(e)?c:null,l=a?new a(1):1,p=a?new a(-1):-1,f=a?new a(t.get([0])/i):t.get([0])/i,m=a?new a(t.get([1])/i):t.get([1])/i,g=a?new a(t.get([2])/i):t.get([2])/i,b=d(e),x=s(l,o(b)),D=h(e);return y([[s(b,v([f,f,x])),s(v([f,m,x]),v([p,g,D])),s(v([f,g,x]),v([m,D]))],[s(v([f,m,x]),v([g,D])),s(b,v([m,m,x])),s(v([m,g,x]),v([p,f,D]))],[s(v([f,g,x]),v([p,m,D])),s(v([m,g,x]),v([f,D])),s(b,v([g,g,x]))]],r)}})},26610(e,t,r){"use strict";r.d(t,{R:()=>o});var n=r(58321),i=r(14943),a=r(93140),s=r(35838),o=(0,n.P9)("row",["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:n,range:o}=e;return t("row",{"Matrix, number":u,"Array, number":function(e,t){return u(n((0,a.o8)(e)),t).valueOf()}});function u(e,t){if(2!==e.size().length)throw Error("Only two dimensional matrix is supported");(0,s.r7)(t,e.size()[0]);var a=new r([t],o(0,e.size()[1])),u=e.subset(a);return(0,i.OA)(u)?u:n([[u]])}})},28901(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(35838),i=r(58321),a="size",s=(0,i.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{Matrix:e=>e.size(),Array:n.LO,string:e=>[e.length],"number | Complex | BigNumber | Unit | boolean | null":e=>[]})})},60072(e,t,r){"use strict";r.d(t,{V:()=>s});var n=r(35838),i=r(58321),a="sort",s=(0,i.P9)(a,["typed","matrix","compare","compareNatural"],e=>{var{typed:t,matrix:r,compare:i,compareNatural:s}=e,o=(e,t)=>-i(e,t);return t(a,{Array:function(e){return c(e),e.sort(i)},Matrix:function(e){return l(e),r(e.toArray().sort(i),e.storage())},"Array, function":function(e,t){return c(e),e.sort(t)},"Matrix, function":function(e,t){return l(e),r(e.toArray().sort(t),e.storage())},"Array, string":function(e,t){return c(e),e.sort(u(t))},"Matrix, string":function(e,t){return l(e),r(e.toArray().sort(u(t)),e.storage())}});function u(e){if("asc"===e)return i;if("desc"===e)return o;if("natural"===e)return s;throw Error('String "asc", "desc", or "natural" expected')}function c(e){if(1!==(0,n.LO)(e).length)throw Error("One dimensional array expected")}function l(e){if(1!==e.size().length)throw Error("One dimensional matrix expected")}})},3831(e,t,r){"use strict";r.d(t,{y:()=>u});var n=r(14943),i=r(27716),a=r(35838),s=r(58321),o="sqrtm",u=(0,s.P9)(o,["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],e=>{var{typed:t,abs:r,add:s,multiply:u,map:c,sqrt:l,subtract:p,inv:f,size:d,max:h,identity:m}=e;return t(o,{"Array | Matrix":function(e){var t=(0,n.OA)(e)?e.size():(0,a.LO)(e);switch(t.length){case 1:if(1===t[0])return c(e,l);throw RangeError("Matrix must be square (size: "+(0,i.GP)(t)+")");case 2:if(t[0]===t[1])return function(e){var t,n=0,i=e,a=m(d(e));do{var o=i;if(i=u(.5,s(o,f(a))),a=u(.5,s(a,f(o))),(t=h(r(p(i,o))))>1e-6&&++n>1e3)throw Error("computing square root of matrix: iterative method could not converge")}while(t>1e-6);return i}(e);throw RangeError("Matrix must be square (size: "+(0,i.GP)(t)+")");default:throw RangeError("Matrix must be at most two dimensional (size: "+(0,i.GP)(t)+")")}}})})},81146(e,t,r){"use strict";r.d(t,{l:()=>o});var n=r(93140),i=r(35838),a=r(58321),s="squeeze",o=(0,a.P9)(s,["typed"],e=>{var{typed:t}=e;return t(s,{Array:function(e){return(0,i.r2)((0,n.o8)(e))},Matrix:function(e){var t=(0,i.r2)(e.toArray());return Array.isArray(t)?e.create(t,e.datatype()):t},any:function(e){return(0,n.o8)(e)}})})},63790(e,t,r){"use strict";r.d(t,{$:()=>l});var n=r(14943),i=r(93140),a=r(35838),s=r(99863),o=r(71380),u=r(58321),c="subset",l=(0,u.P9)(c,["typed","matrix","zeros","add"],e=>{var{typed:t,matrix:r,zeros:n,add:i}=e;return t(c,{"Matrix, Index":function(e,t){return(0,a.yT)(t)?r():((0,a.$p)(e,t),e.subset(t))},"Array, Index":t.referTo("Matrix, Index",function(e){return function(t,n){var i=e(r(t),n);return n.isScalar()?i:i.valueOf()}}),"Object, Index":d,"string, Index":p,"Matrix, Index, any, any":function(e,t,r,s){return(0,a.yT)(t)?e:((0,a.$p)(e,t),e.clone().subset(t,function(e,t){if("string"==typeof e)throw Error("can't boradcast a string");if(t.isScalar())return e;var r=t.size();if(!r.every(e=>e>0))return e;try{return i(e,n(r))}catch(t){return e}}(r,t),s))},"Array, Index, any, any":t.referTo("Matrix, Index, any, any",function(e){return function(t,n,i,a){var s=e(r(t),n,i,a);return s.isMatrix?s.valueOf():s}}),"Array, Index, any":t.referTo("Matrix, Index, any, any",function(e){return function(t,n,i){return e(r(t),n,i,void 0).valueOf()}}),"Matrix, Index, any":t.referTo("Matrix, Index, any, any",function(e){return function(t,r,n){return e(t,r,n,void 0)}}),"string, Index, string":f,"string, Index, string, string":f,"Object, Index, any":h})});function p(e,t){if(!(0,n.nw)(t))throw TypeError("Index expected");if((0,a.yT)(t))return"";if((0,a.$p)(Array.from(e),t),1!==t.size().length)throw new o.h(t.size().length,1);var r=e.length;(0,a.r7)(t.min()[0],r),(0,a.r7)(t.max()[0],r);var i=t.dimension(0),s="";function u(t){s+=e.charAt(t)}return Number.isInteger(i)?u(i):i.forEach(u),s}function f(e,t,r,n){if(!t||!0!==t.isIndex)throw TypeError("Index expected");if((0,a.yT)(t))return e;if((0,a.$p)(Array.from(e),t),1!==t.size().length)throw new o.h(t.size().length,1);if(void 0!==n){if("string"!=typeof n||1!==n.length)throw TypeError("Single character expected as defaultValue")}else n=" ";var i=t.dimension(0);if((Number.isInteger(i)?1:i.size()[0])!==r.length)throw new o.h(i.size()[0],r.length);var s=e.length;(0,a.r7)(t.min()[0]),(0,a.r7)(t.max()[0]);for(var u=[],c=0;c<s;c++)u[c]=e.charAt(c);function l(e,t){u[e]=r.charAt(t[0])}if(Number.isInteger(i)?l(i,[0]):i.forEach(l),u.length>s)for(var p=s-1,f=u.length;p<f;p++)u[p]||(u[p]=n);return u.join("")}function d(e,t){if(!(0,a.yT)(t)){if(1!==t.size().length)throw new o.h(t.size(),1);var r=t.dimension(0);if("string"!=typeof r)throw TypeError("String expected as index to retrieve an object property");return(0,s.HU)(e,r)}}function h(e,t,r){if((0,a.yT)(t))return e;if(1!==t.size().length)throw new o.h(t.size(),1);var n=t.dimension(0);if("string"!=typeof n)throw TypeError("String expected as index to retrieve an object property");var u=(0,i.o8)(e);return(0,s.dL)(u,n,r),u}},83767(e,t,r){"use strict";r.d(t,{s:()=>a});var n=r(93140),i=r(27716),a=(0,r(58321).P9)("trace",["typed","matrix","add"],e=>{var{typed:t,matrix:r,add:a}=e;return t("trace",{Array:function(e){return s(r(e))},SparseMatrix:function(e){var t=e._values,r=e._index,n=e._ptr,s=e._size,o=s[0],u=s[1];if(o===u){var c=0;if(t.length>0)for(var l=0;l<u;l++)for(var p=n[l],f=n[l+1],d=p;d<f;d++){var h=r[d];if(h===l){c=a(c,t[d]);break}if(h>l)break}return c}throw RangeError("Matrix must be square (size: "+(0,i.GP)(s)+")")},DenseMatrix:s,any:n.o8});function s(e){var t=e._size,r=e._data;switch(t.length){case 1:if(1===t[0])return(0,n.o8)(r[0]);throw RangeError("Matrix must be square (size: "+(0,i.GP)(t)+")");case 2:var s=t[0];if(s===t[1]){for(var o=0,u=0;u<s;u++)o=a(o,r[u][u]);return o}throw RangeError("Matrix must be square (size: "+(0,i.GP)(t)+")");default:throw RangeError("Matrix must be two dimensional (size: "+(0,i.GP)(t)+")")}}})},49129(e,t,r){"use strict";r.d(t,{M:()=>o});var n=r(93140),i=r(27716),a=r(58321),s="transpose",o=(0,a.P9)(s,["typed","matrix"],e=>{var{typed:t,matrix:r}=e;return t(s,{Array:e=>a(r(e)).valueOf(),Matrix:a,any:n.o8});function a(e){var t,r=e.size();switch(r.length){case 1:t=e.clone();break;case 2:var a=r[0],s=r[1];if(0===s)throw RangeError("Cannot transpose a 2D matrix with no columns (size: "+(0,i.GP)(r)+")");switch(e.storage()){case"dense":t=function(e,t,r){for(var i,a=e._data,s=[],o=0;o<r;o++){i=s[o]=[];for(var u=0;u<t;u++)i[u]=(0,n.o8)(a[u][o])}return e.createDenseMatrix({data:s,size:[r,t],datatype:e._datatype})}(e,a,s);break;case"sparse":t=function(e,t,r){for(var i,a,s,o=e._values,u=e._index,c=e._ptr,l=o?[]:void 0,p=[],f=[],d=[],h=0;h<t;h++)d[h]=0;for(i=0,a=u.length;i<a;i++)d[u[i]]++;for(var m=0,g=0;g<t;g++)f.push(m),m+=d[g],d[g]=f[g];for(f.push(m),s=0;s<r;s++)for(var v=c[s],y=c[s+1],b=v;b<y;b++){var x=d[u[b]]++;p[x]=s,o&&(l[x]=(0,n.o8)(o[b]))}return e.createSparseMatrix({values:l,index:p,ptr:f,size:[r,t],datatype:e._datatype})}(e,a,s)}break;default:throw RangeError("Matrix must be a vector or two dimensional (size: "+(0,i.GP)(r)+")")}return t}})},87989(e,t,r){"use strict";r.d(t,{I:()=>u});var n=r(14943),i=r(51106),a=r(35838),s=r(58321),o="zeros",u=(0,s.P9)(o,["typed","config","matrix","BigNumber"],e=>{var{typed:t,config:r,matrix:s,BigNumber:u}=e;return t(o,{"":function(){return"Array"===r.matrix?c([]):c([],"default")},"...number | BigNumber | string":function(e){if("string"==typeof e[e.length-1]){var t=e.pop();return c(e,t)}return"Array"===r.matrix?c(e):c(e,"default")},Array:c,Matrix:function(e){var t=e.storage();return c(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return c(e.valueOf(),t)}});function c(e,t){var r,o=(r=!1,e.forEach(function(e,t,i){(0,n.C4)(e)&&(r=!0,i[t]=e.toNumber())}),r)?new u(0):0;if(e.forEach(function(e){if("number"!=typeof e||!(0,i.YN)(e)||e<0)throw Error("Parameters in function zeros must be positive integers")}),t){var c=s(t);return e.length>0?c.resize(e,o):c}var l=[];return e.length>0?(0,a.XR)(l,e,o):l}})},49279(e,t,r){"use strict";r.d(t,{c:()=>s});var n=r(20296),i=r(14943);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var s=(0,r(58321).P9)("solveODE",["typed","add","subtract","multiply","divide","max","map","abs","isPositive","isNegative","larger","smaller","matrix","bignumber","unaryMinus"],e=>{var{typed:t,add:r,subtract:s,multiply:o,divide:u,max:c,map:l,abs:p,isPositive:f,isNegative:d,larger:h,smaller:m,matrix:g,bignumber:v,unaryMinus:y}=e;function b(e){return function(t,n,a,g){if(!(2===n.length&&(n.every(N)||n.every(i.vO))))throw Error('"tspan" must be an Array of two numeric values or two units [tStart, tEnd]');var b,x=n[0],D=n[1],w=h(D,x),A=g.firstStep;if(void 0!==A&&!f(A))throw Error('"firstStep" must be positive');var E=g.maxStep;if(void 0!==E&&!f(E))throw Error('"maxStep" must be positive');var S=g.minStep;if(S&&d(S))throw Error('"minStep" must be positive or zero');var C=[x,D,A,S,E].filter(e=>void 0!==e);if(!(C.every(N)||C.every(i.vO)))throw Error('Inconsistent type of "t" dependant variables');for(var M=g.tol?g.tol:1e-4,T=g.minDelta?g.minDelta:.2,O=g.maxDelta?g.maxDelta:5,F=g.maxIter?g.maxIter:1e4,_=[x,D,...a,E,S].some(i.C4),[B,P,k,q]=_?[v(e.a),v(e.c),v(e.b),v(e.bp)]:[e.a,e.c,e.b,e.bp],I=A?w?A:y(A):u(s(D,x),1),R=[x],z=[a],L=s(k,q),j=0,U=0,$=w?m:h,H=(b=w?h:m,function(e,t,n){return b(r(e,n),t)?s(t,e):n});$(R[j],D);){var G=[];I=H(R[j],D,I),G.push(t(R[j],z[j]));for(var Q=1;Q<P.length;++Q)G.push(t(r(R[j],o(P[Q],I)),r(z[j],o(I,B[Q],G))));var V=c(p(l(o(L,G),e=>(0,i.vO)(e)?e.value:e)));V<M&&M/V>1/4&&(R.push(r(R[j],I)),z.push(r(z[j],o(I,k,G))),j++);var Z=.84*(M/V)**.2;if(m(Z,T)?Z=T:h(Z,O)&&(Z=O),I=o(I,Z=_?v(Z):Z),E&&h(p(I),E)?I=w?E:y(E):S&&m(p(I),S)&&(I=w?S:y(S)),++U>F)throw Error("Maximum number of iterations reached, try changing options")}return{t:R,y:z}}}function x(e,t,r,n){return b({a:[[],[.5],[0,3/4],[2/9,1/3,4/9]],c:[null,.5,3/4,1],b:[2/9,1/3,4/9,0],bp:[7/24,1/4,1/3,1/8]})(e,t,r,n)}function D(e,t,r,n){return b({a:[[],[.2],[3/40,9/40],[44/45,-56/15,32/9],[19372/6561,-25360/2187,64448/6561,-212/729],[9017/3168,-355/33,46732/5247,49/176,-5103/18656],[35/384,0,500/1113,125/192,-2187/6784,11/84]],c:[null,.2,.3,.8,8/9,1,1],b:[35/384,0,500/1113,125/192,-2187/6784,11/84,0],bp:[5179/57600,0,7571/16695,393/640,-92097/339200,187/2100,1/40]})(e,t,r,n)}function w(e,t,r,i){var s=i.method?i.method:"RK45",o={RK23:x,RK45:D};if(s.toUpperCase()in o){var u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},i);return delete u.method,o[s.toUpperCase()](e,t,r,u)}var c=Object.keys(o).map(e=>'"'.concat(e,'"')),l="".concat(c.slice(0,-1).join(", ")," and ").concat(c.slice(-1));throw Error('Unavailable method "'.concat(s,'". Available methods are ').concat(l))}function N(e){return(0,i.C4)(e)||(0,i.Et)(e)}function A(e,t,r,n){var i=w(e,t.toArray(),r.toArray(),n);return{t:g(i.t),y:g(i.y)}}return t("solveODE",{"function, Array, Array, Object":w,"function, Matrix, Matrix, Object":A,"function, Array, Array":(e,t,r)=>w(e,t,r,{}),"function, Matrix, Matrix":(e,t,r)=>A(e,t,r,{}),"function, Array, number | BigNumber | Unit":(e,t,r)=>{var n=w(e,t,[r],{});return{t:n.t,y:n.y.map(e=>e[0])}},"function, Matrix, number | BigNumber | Unit":(e,t,r)=>{var n=w(e,t.toArray(),[r],{});return{t:g(n.t),y:g(n.y.map(e=>e[0]))}},"function, Array, number | BigNumber | Unit, Object":(e,t,r,n)=>{var i=w(e,t,[r],n);return{t:i.t,y:i.y.map(e=>e[0])}},"function, Matrix, number | BigNumber | Unit, Object":(e,t,r,n)=>{var i=w(e,t.toArray(),[r],n);return{t:g(i.t),y:g(i.y.map(e=>e[0]))}}})})},47502(e,t,r){"use strict";r.d(t,{x:()=>s});var n=r(58321),i=r(51106),a="bernoulli",s=(0,n.P9)(a,["typed","config","isInteger","number","?BigNumber","?Fraction"],e=>{var{typed:t,config:r,number:n,BigNumber:i,Fraction:s}=e,u=[void 0],c=[void 0],l=[void 0],p=50;return t(a,{number:e=>o(e,e=>e,u,(e,t)=>e+t,(e,t)=>e*t,(e,t)=>e/t),"bigint | Fraction":e=>o(n(e),e=>new s(e),c,(e,t)=>e.add(t),(e,t)=>e.mul(t),(e,t)=>e.div(t)),BigNumber:e=>(r.precision!==p&&(l=[void 0],p=r.precision),o(n(e),e=>new i(e),l,(e,t)=>e.add(t),(e,t)=>e.mul(t),(e,t)=>e.div(t)))})});function o(e,t,r,n,a,s){if(e<0||!(0,i.YN)(e))throw RangeError("Bernoulli index must be nonnegative integer");if(0===e)return t(1);if(1===e)return s(t(-1),t(2));if(e%2==1)return t(0);var o=t(1);1===r.length&&r.push([s(o,t(-3)),s(o,t(-2)),s(o,t(6))]);for(var u=e/2,c=t(0),l=t(2);r.length<=u;){for(var p=r.length,f=Math.floor((p+1)/2),d=c,h=1;h<f;++h)d=n(d,a(r[h][0],r[p-h][0]));d=a(d,l),p%2==0&&(d=n(d,a(r[f][0],r[f][0]))),d=s(d,t(-(2*p+1)));var m=s(a(r[p-1][1],t(-p*(2*p-1))),l);r.push([d,m,a(m,d)])}return r[u][2]}},13287(e,t,r){"use strict";r.d(t,{p:()=>u});var n=r(58321),i=r(51106),a=r(40924);function s(e,t){if(!(0,i.YN)(e)||e<0||!(0,i.YN)(t)||t<0)throw TypeError("Positive integer value expected in function combinations");if(t>e)throw TypeError("k must be less than or equal to n");for(var r=e-t,n=1,s=t<r?r+1:t+1,o=2,u=t<r?t:r,c=s;c<=e;++c)for(n*=c;o<=u&&n%o==0;)n/=o,++o;return o<=u&&(n/=(0,a.q)(o,u)),n}s.signature="number, number";var o="combinations",u=(0,n.P9)(o,["typed"],e=>{var{typed:t}=e;return t(o,{"number, number":s,"BigNumber, BigNumber":function(e,t){var r,n,i=e.constructor,a=e.minus(t),s=new i(1);if(!c(e)||!c(t))throw TypeError("Positive integer value expected in function combinations");if(t.gt(e))throw TypeError("k must be less than n in function combinations");if(r=s,t.lt(a))for(n=s;n.lte(a);n=n.plus(s))r=r.times(t.plus(n)).dividedBy(n);else for(n=s;n.lte(t);n=n.plus(s))r=r.times(a.plus(n)).dividedBy(n);return r}})});function c(e){return e.isInteger()&&e.gte(0)}},90825(e,t,r){"use strict";r.d(t,{Q:()=>o});var n=r(58321),i=r(51106),a=r(40924),s="combinationsWithRep",o=(0,n.P9)(s,["typed"],e=>{var{typed:t}=e;return t(s,{"number, number":function(e,t){if(!(0,i.YN)(e)||e<0||!(0,i.YN)(t)||t<0)throw TypeError("Positive integer value expected in function combinationsWithRep");if(e<1)throw TypeError("k must be less than or equal to n + k - 1");return t<e-1?(0,a.q)(e,e+t-1)/(0,a.q)(1,t):(0,a.q)(t+1,e+t-1)/(0,a.q)(1,e-1)},"BigNumber, BigNumber":function(e,t){var r,n,i=new e.constructor(1),a=e.minus(i);if(!u(e)||!u(t))throw TypeError("Positive integer value expected in function combinationsWithRep");if(e.lt(i))throw TypeError("k must be less than or equal to n + k - 1 in function combinationsWithRep");if(r=i,t.lt(a))for(n=i;n.lte(a);n=n.plus(i))r=r.times(t.plus(n)).dividedBy(n);else for(n=i;n.lte(t);n=n.plus(i))r=r.times(a.plus(n)).dividedBy(n);return r}})});function u(e){return e.isInteger()&&e.gte(0)}},28669(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(76355),i=r(58321),a="factorial",s=(0,i.P9)(a,["typed","gamma"],e=>{var{typed:t,gamma:r}=e;return t(a,{number:function(e){if(e<0)throw Error("Value must be non-negative");return r(e+1)},BigNumber:function(e){if(e.isNegative())throw Error("Value must be non-negative");return r(e.plus(1))},"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},92375(e,t,r){"use strict";r.d(t,{M:()=>s});var n=r(58321),i=r(11389),a="gamma",s=(0,n.P9)(a,["typed","config","multiplyScalar","pow","BigNumber","Complex"],e=>{var{typed:t,config:r,multiplyScalar:n,pow:s,BigNumber:o,Complex:u}=e;return t(a,{number:i.VX,Complex:function e(t){if(0===t.im)return(0,i.VX)(t.re);if(t.re<.5){var r=new u(1-t.re,-t.im),n=new u(Math.PI*t.re,Math.PI*t.im);return new u(Math.PI).div(n.sin()).div(e(r))}t=new u(t.re-1,t.im);for(var a=new u(i.gU["0"],0),s=1;s<i.gU.length;++s){var o=new u(i.gU[s],0);a=a.add(o.div(t.add(s)))}var c=new u(t.re+i.n0+.5,t.im),l=Math.sqrt(2*Math.PI),p=c.pow(t.add(.5)),f=c.neg().exp();return a.mul(l).mul(p).mul(f)},BigNumber:function(e){if(e.isInteger())return e.isNegative()||e.isZero()?new o(1/0):function e(t){if(t<8)return new o([1,1,2,6,24,120,720,5040][t]);var n=r.precision+(0|Math.log(t.toNumber())),i=o.clone({precision:n});if(t%2==1)return t.times(e(new o(t-1)));for(var a=t,s=new i(t),u=t.toNumber();a>2;)a-=2,u+=a,s=s.times(u);return new o(s.toPrecision(o.precision))}(e.minus(1));if(!e.isFinite())return new o(e.isNegative()?NaN:1/0);throw Error("Integer BigNumber expected")}})})},96241(e,t,r){"use strict";r.d(t,{u:()=>a});var n=r(58321),i="kldivergence",a=(0,n.P9)(i,["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],e=>{var{typed:t,matrix:r,divide:n,sum:a,multiply:s,map:o,dotDivide:u,log:c,isNumeric:l}=e;return t(i,{"Array, Array":function(e,t){return p(r(e),r(t))},"Matrix, Array":function(e,t){return p(e,r(t))},"Array, Matrix":function(e,t){return p(r(e),t)},"Matrix, Matrix":function(e,t){return p(e,t)}});function p(e,t){var r=t.size().length,i=e.size().length;if(r>1)throw Error("first object must be one dimensional");if(i>1)throw Error("second object must be one dimensional");if(r!==i)throw Error("Length of two vectors must be equal");if(0===a(e))throw Error("Sum of elements in first object must be non zero");if(0===a(t))throw Error("Sum of elements in second object must be non zero");var p=n(e,a(e)),f=n(t,a(t)),d=a(s(p,o(u(p,f),e=>c(e))));return l(d)?d:NaN}})},13061(e,t,r){"use strict";r.d(t,{k:()=>o});var n=r(11389),i=r(58321),a=r(51106),s="lgamma",o=(0,i.P9)(s,["Complex","typed"],e=>{var{Complex:t,typed:r}=e,i=[-.029550653594771242,.00641025641025641,-.0019175269175269176,8417508417508417e-19,-5952380952380953e-19,7936507936507937e-19,-.002777777777777778,.08333333333333333];return r(s,{number:n.lm,Complex:function e(r){if(r.isNaN())return new t(NaN,NaN);if(0===r.im)return new t((0,n.lm)(r.re),0);if(r.re>=7||Math.abs(r.im)>=7)return o(r);if(r.re<=.1){var i=(0,a.b1)(6.283185307179586,r.im)*Math.floor(.5*r.re+.25),s=r.mul(Math.PI).sin().log(),c=e(new t(1-r.re,-r.im));return new t(1.1447298858494002,i).sub(s).sub(c)}if(r.im>=0)return u(r);else return u(r.conjugate()).conjugate()},BigNumber:function(){throw Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function o(e){for(var r=e.sub(.5).mul(e.log()).sub(e).add(n.mn),a=new t(1,0).div(e),s=a.div(e),o=i[0],u=i[1],c=2*s.re,l=s.re*s.re+s.im*s.im,p=2;p<8;p++){var f=u;u=-l*o+i[p],o=c*o+f}var d=a.mul(s.mul(o).add(u));return r.add(d)}function u(e){var r=0,n=0,i=e;for(e=e.add(1);e.re<=7;){var a=+((i=i.mul(e)).im<0);0!==a&&0===n&&r++,n=a,e=e.add(1)}return o(e).sub(i.log()).sub(new t(0,2*r*Math.PI*1))}})},18523(e,t,r){"use strict";r.d(t,{k:()=>s});var n=r(76355),i=r(58321),a="multinomial",s=(0,i.P9)(a,["typed","add","divide","multiply","factorial","isInteger","isPositive"],e=>{var{typed:t,add:r,divide:i,multiply:s,factorial:o,isInteger:u,isPositive:c}=e;return t(a,{"Array | Matrix":function(e){var t=0,a=1;return(0,n.xL)(e,function(e){if(!u(e)||!c(e))throw TypeError("Positive integer value expected in function multinomial");t=r(t,e),a=s(a,o(e))}),i(o(t),a)}})})},70342(e,t,r){"use strict";r.d(t,{U:()=>o});var n=r(51106),i=r(40924),a=r(58321),s="permutations",o=(0,a.P9)(s,["typed","factorial"],e=>{var{typed:t,factorial:r}=e;return t(s,{"number | BigNumber":r,"number, number":function(e,t){if(!(0,n.YN)(e)||e<0||!(0,n.YN)(t)||t<0)throw TypeError("Positive integer value expected in function permutations");if(t>e)throw TypeError("second argument k must be less than or equal to first argument n");return(0,i.q)(e-t+1,e)},"BigNumber, BigNumber":function(e,t){var r,n;if(!u(e)||!u(t))throw TypeError("Positive integer value expected in function permutations");if(t.gt(e))throw TypeError("second argument k must be less than or equal to first argument n");for(r=e.mul(0).add(1),n=e.minus(t).plus(1);n.lte(e);n=n.plus(1))r=r.times(n);return r}})});function u(e){return e.isInteger()&&e.gte(0)}},61226(e,t,r){"use strict";r.d(t,{B:()=>u});var n=r(35838),i=r(58321),a=r(14943),s=r(32458),o="pickRandom",u=(0,i.P9)(o,["typed","config","?on"],e=>{var{typed:t,config:r,on:i}=e,u=(0,s.S)(r.randomSeed);return i&&i("config",function(e,t){e.randomSeed!==t.randomSeed&&(u=(0,s.S)(e.randomSeed))}),t(o,{"Array | Matrix":function(e){return c(e,{})},"Array | Matrix, Object":function(e,t){return c(e,t)},"Array | Matrix, number":function(e,t){return c(e,{number:t})},"Array | Matrix, Array | Matrix":function(e,t){return c(e,{weights:t})},"Array | Matrix, Array | Matrix, number":function(e,t,r){return c(e,{number:r,weights:t})},"Array | Matrix, number, Array | Matrix":function(e,t,r){return c(e,{number:t,weights:r})}});function c(e,t){var r,{number:i,weights:s,elementWise:o=!0}=t,c=void 0===i;c&&(i=1);var l=(0,a.OA)(e)?e.create:(0,a.OA)(s)?s.create:null;e=e.valueOf(),s&&(s=s.valueOf()),!0===o&&(e=(0,n.Bq)(e),s=(0,n.Bq)(s));var p=0;if(void 0!==s){if(s.length!==e.length)throw Error("Weights must have the same length as possibles");for(var f=0,d=s.length;f<d;f++){if(!(0,a.Et)(s[f])||s[f]<0)throw Error("Weights must be an array of positive numbers");p+=s[f]}}for(var h=e.length,m=[];m.length<i;){if(void 0===s)r=e[Math.floor(u()*h)];else for(var g=u()*p,v=0,y=e.length;v<y;v++)if((g-=s[v])<0){r=e[v];break}m.push(r)}return c?m[0]:l?l(m):m}})},19531(e,t,r){"use strict";r.d(t,{s:()=>u});var n=r(58321),i=r(14943),a=r(32458),s=r(14477),o="random",u=(0,n.P9)(o,["typed","config","?on"],e=>{var{typed:t,config:r,on:n}=e,u=(0,a.S)(r.randomSeed);return n&&n("config",function(e,t){e.randomSeed!==t.randomSeed&&(u=(0,a.S)(e.randomSeed))}),t(o,{"":()=>0+ +u(),number:e=>{var t;return t=e,0+u()*(t-0)},"number, number":(e,t)=>{var r,n;return r=e,n=t,r+u()*(n-r)},"Array | Matrix":e=>c(e,0,1),"Array | Matrix, number":(e,t)=>c(e,0,t),"Array | Matrix, number, number":(e,t,r)=>c(e,t,r)});function c(e,t,r){var n=(0,s.Z)(e.valueOf(),()=>{var e,n;return e=t,n=r,e+u()*(n-e)});return(0,i.OA)(e)?e.create(n,"number"):n}})},33894(e,t,r){"use strict";r.d(t,{d:()=>u});var n=r(58321),i=r(14477),a=r(32458),s=r(14943),o="randomInt",u=(0,n.P9)(o,["typed","config","log2","?on"],e=>{var{typed:t,config:r,log2:n,on:u}=e,c=(0,a.S)(r.randomSeed);return u&&u("config",function(e,t){e.randomSeed!==t.randomSeed&&(c=(0,a.S)(e.randomSeed))}),t(o,{"":()=>p(0,2),number:e=>p(0,e),"number, number":(e,t)=>p(e,t),bigint:e=>f(0n,e),"bigint, bigint":f,"Array | Matrix":e=>l(e,0,1),"Array | Matrix, number":(e,t)=>l(e,0,t),"Array | Matrix, number, number":(e,t,r)=>l(e,t,r)});function l(e,t,r){var n=(0,i.Z)(e.valueOf(),()=>p(t,r));return(0,s.OA)(e)?e.create(n,"number"):n}function p(e,t){return Math.floor(e+c()*(t-e))}function f(e,t){var r=t-e;if(r<=2n**30n)return e+BigInt(p(0,Number(r)));for(var i=n(r),a=r;a>=r;){a=0n;for(var s=0;s<i;++s)a=2n*a+(.5>c()?0n:1n)}return e+a}})},14477(e,t,r){"use strict";r.d(t,{Z:()=>function e(t,r){var n=[];if((t=t.slice(0)).length>1)for(var i=0,a=t.shift();i<a;i++)n.push(e(t,r));else for(var s=0,o=t.shift();s<o;s++)n.push(r());return n}})},32458(e,t,r){"use strict";r.d(t,{S:()=>a});var n=r(7391),i=n(Date.now());function a(e){var t;return t=null===e?i:n(String(e)),function(){return t()}}},93917(e,t,r){"use strict";r.d(t,{m:()=>f});var n=r(46052),i=r(51106),a=r(58321),s=r(60361),o=r(34900),u=r(1232),c=r(38730),l=r(2366),p="compare",f=(0,a.P9)(p,["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix","concat"],e=>{var{typed:t,config:r,equalScalar:i,matrix:a,BigNumber:f,Fraction:h,DenseMatrix:m,concat:g}=e,v=(0,s.O)({typed:t}),y=(0,u.H)({typed:t,equalScalar:i}),b=(0,o.f)({typed:t,DenseMatrix:m}),x=(0,c.$)({typed:t,matrix:a,concat:g}),D=(0,l.D)({typed:t});return t(p,d({typed:t,config:r}),{"boolean, boolean":function(e,t){return e===t?0:e>t?1:-1},"BigNumber, BigNumber":function(e,t){return new f((0,n.q)(e,t,r.relTol,r.absTol)?0:e.cmp(t))},"bigint, bigint":function(e,t){return e===t?0n:e>t?1n:-1n},"Fraction, Fraction":function(e,t){return new h(e.compare(t))},"Complex, Complex":function(){throw TypeError("No ordering relation is defined for complex numbers")}},D,x({SS:y,DS:v,Ss:b}))}),d=(0,a.P9)(p,["typed","config"],e=>{var{typed:t,config:r}=e;return t(p,{"number, number":function(e,t){return(0,i.q8)(e,t,r.relTol,r.absTol)?0:e>t?1:-1}})})},89076(e,t,r){"use strict";r.d(t,{b:()=>o});var n=r(31880),i=r(14943),a=r(58321),s="compareNatural",o=(0,a.P9)(s,["typed","compare"],e=>{var{typed:t,compare:r}=e,a=r.signatures["boolean,boolean"];return t(s,{"any, any":function e(t,s){var u,c,l,p=(0,i.QP)(t),f=(0,i.QP)(s);if(("number"===p||"BigNumber"===p||"Fraction"===p)&&("number"===f||"BigNumber"===f||"Fraction"===f))return"0"!==(l=r(t,s)).toString()?l>0?1:-1:n(p,f);var d=["Array","DenseMatrix","SparseMatrix"];if(d.includes(p)||d.includes(f))return 0!==(l=function e(t,r,n){return(0,i.AF)(r)&&(0,i.AF)(n)?o(t,r.toJSON().values,n.toJSON().values):(0,i.AF)(r)?e(t,r.toArray(),n):(0,i.AF)(n)?e(t,r,n.toArray()):(0,i.zR)(r)?e(t,r.toJSON().data,n):(0,i.zR)(n)?e(t,r,n.toJSON().data):Array.isArray(r)?Array.isArray(n)?o(t,r,n):e(t,r,[n]):e(t,[r],n)}(e,t,s))?l:n(p,f);if(p!==f)return n(p,f);if("Complex"===p){return u=t,c=s,u.re>c.re?1:u.re<c.re?-1:u.im>c.im?1:u.im<c.im?-1:0}if("Unit"===p)return t.equalBase(s)?e(t.value,s.value):o(e,t.formatUnits(),s.formatUnits());if("boolean"===p)return a(t,s);if("string"===p)return n(t,s);if("Object"===p)return function(e,t,r){var i=Object.keys(t),a=Object.keys(r);i.sort(n),a.sort(n);var s=o(e,i,a);if(0!==s)return s;for(var u=0;u<i.length;u++){var c=e(t[i[u]],r[a[u]]);if(0!==c)return c}return 0}(e,t,s);if("null"===p||"undefined"===p)return 0;throw TypeError('Unsupported type of value "'+p+'"')}});function o(e,t,r){for(var n=0,i=Math.min(t.length,r.length);n<i;n++){var a=e(t[n],r[n]);if(0!==a)return a}return t.length>r.length?1:t.length<r.length?-1:0}})},25538(e,t,r){"use strict";r.d(t,{r:()=>o});var n=r(27716),i=r(58321),a=r(38730),s="compareText";n.n6.signature="any, any";var o=(0,i.P9)(s,["typed","matrix","concat"],e=>{var{typed:t,matrix:r,concat:i}=e,o=(0,a.$)({typed:t,matrix:r,concat:i});return t(s,n.n6,o({elop:n.n6,Ds:!0}))})},2366(e,t,r){"use strict";r.d(t,{D:()=>n});var n=(0,r(58321).P9)("compareUnits",["typed"],e=>{var{typed:t}=e;return{"Unit, Unit":t.referToSelf(e=>(r,n)=>{if(!r.equalBase(n))throw Error("Cannot compare units with different base");return t.find(e,[r.valueType(),n.valueType()])(r.value,n.value)})}})},76148(e,t,r){"use strict";r.d(t,{H:()=>a});var n=r(58321),i="deepEqual",a=(0,n.P9)(i,["typed","equal"],e=>{var{typed:t,equal:r}=e;return t(i,{"any, any":function(e,t){return function e(t,n){if(Array.isArray(t))if(!Array.isArray(n))return!1;else{var i=t.length;if(i!==n.length)return!1;for(var a=0;a<i;a++)if(!e(t[a],n[a]))return!1;return!0}return!Array.isArray(n)&&r(t,n)}(e.valueOf(),t.valueOf())}})})},80650(e,t,r){"use strict";r.d(t,{X:()=>c});var n=r(58321),i=r(60361),a=r(15572),s=r(34900),o=r(38730),u="equal",c=(0,n.P9)(u,["typed","matrix","equalScalar","DenseMatrix","SparseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:n,DenseMatrix:c,concat:p,SparseMatrix:f}=e,d=(0,i.O)({typed:t}),h=(0,a.v)({typed:t,SparseMatrix:f}),m=(0,s.f)({typed:t,DenseMatrix:c}),g=(0,o.$)({typed:t,matrix:r});return t(u,l({typed:t,equalScalar:n}),g({elop:n,SS:h,DS:d,Ss:m}))}),l=(0,n.P9)(u,["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return t(u,{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:r(e,t)}})})},44834(e,t,r){"use strict";r.d(t,{p:()=>u});var n=r(46052),i=r(51106),a=r(58321),s=r(2366),o="equalScalar",u=(0,a.P9)(o,["typed","config"],e=>{var{typed:t,config:r}=e,a=(0,s.D)({typed:t});return t(o,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return(0,i.q8)(e,t,r.relTol,r.absTol)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||(0,n.q)(e,t,r.relTol,r.absTol)},"bigint, bigint":function(e,t){return e===t},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){var n,a;return n=r.relTol,a=r.absTol,(0,i.q8)(e.re,t.re,n,a)&&(0,i.q8)(e.im,t.im,n,a)}},a)});(0,a.P9)(o,["typed","config"],e=>{var{typed:t,config:r}=e;return t(o,{"number, number":function(e,t){return(0,i.q8)(e,t,r.relTol,r.absTol)}})})},49565(e,t,r){"use strict";r.d(t,{a:()=>a});var n=r(58321),i="equalText",a=(0,n.P9)(i,["typed","compareText","isZero"],e=>{var{typed:t,compareText:r,isZero:n}=e;return t(i,{"any, any":function(e,t){return n(r(e,t))}})})},27355(e,t,r){"use strict";r.d(t,{o:()=>f});var n=r(46052),i=r(51106),a=r(58321),s=r(60361),o=r(15572),u=r(34900),c=r(38730),l=r(2366),p="larger",f=(0,a.P9)(p,["typed","config","bignumber","matrix","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,config:r,bignumber:i,matrix:a,DenseMatrix:f,concat:h,SparseMatrix:m}=e,g=(0,s.O)({typed:t}),v=(0,o.v)({typed:t,SparseMatrix:m}),y=(0,u.f)({typed:t,DenseMatrix:f}),b=(0,c.$)({typed:t,matrix:a,concat:h}),x=(0,l.D)({typed:t});function D(e,t){return e.gt(t)&&!(0,n.q)(e,t,r.relTol,r.absTol)}return t(p,d({typed:t,config:r}),{"boolean, boolean":(e,t)=>e>t,"BigNumber, BigNumber":D,"bigint, bigint":(e,t)=>e>t,"Fraction, Fraction":(e,t)=>1===e.compare(t),"Fraction, BigNumber":function(e,t){return D(i(e),t)},"BigNumber, Fraction":function(e,t){return D(e,i(t))},"Complex, Complex":function(){throw TypeError("No ordering relation is defined for complex numbers")}},x,b({SS:v,DS:g,Ss:y}))}),d=(0,a.P9)(p,["typed","config"],e=>{var{typed:t,config:r}=e;return t(p,{"number, number":function(e,t){return e>t&&!(0,i.q8)(e,t,r.relTol,r.absTol)}})})},16569(e,t,r){"use strict";r.d(t,{W:()=>f});var n=r(46052),i=r(51106),a=r(58321),s=r(60361),o=r(15572),u=r(34900),c=r(38730),l=r(2366),p="largerEq",f=(0,a.P9)(p,["typed","config","matrix","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,config:r,matrix:i,DenseMatrix:a,concat:f,SparseMatrix:h}=e,m=(0,s.O)({typed:t}),g=(0,o.v)({typed:t,SparseMatrix:h}),v=(0,u.f)({typed:t,DenseMatrix:a}),y=(0,c.$)({typed:t,matrix:i,concat:f}),b=(0,l.D)({typed:t});return t(p,d({typed:t,config:r}),{"boolean, boolean":(e,t)=>e>=t,"BigNumber, BigNumber":function(e,t){return e.gte(t)||(0,n.q)(e,t,r.relTol,r.absTol)},"bigint, bigint":function(e,t){return e>=t},"Fraction, Fraction":(e,t)=>-1!==e.compare(t),"Complex, Complex":function(){throw TypeError("No ordering relation is defined for complex numbers")}},b,y({SS:g,DS:m,Ss:v}))}),d=(0,a.P9)(p,["typed","config"],e=>{var{typed:t,config:r}=e;return t(p,{"number, number":function(e,t){return e>=t||(0,i.q8)(e,t,r.relTol,r.absTol)}})})},28086(e,t,r){"use strict";r.d(t,{p:()=>f});var n=r(46052),i=r(51106),a=r(58321),s=r(60361),o=r(15572),u=r(34900),c=r(38730),l=r(2366),p="smaller",f=(0,a.P9)(p,["typed","config","bignumber","matrix","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,config:r,bignumber:i,matrix:a,DenseMatrix:f,concat:h,SparseMatrix:m}=e,g=(0,s.O)({typed:t}),v=(0,o.v)({typed:t,SparseMatrix:m}),y=(0,u.f)({typed:t,DenseMatrix:f}),b=(0,c.$)({typed:t,matrix:a,concat:h}),x=(0,l.D)({typed:t});function D(e,t){return e.lt(t)&&!(0,n.q)(e,t,r.relTol,r.absTol)}return t(p,d({typed:t,config:r}),{"boolean, boolean":(e,t)=>e<t,"BigNumber, BigNumber":D,"bigint, bigint":(e,t)=>e<t,"Fraction, Fraction":(e,t)=>-1===e.compare(t),"Fraction, BigNumber":function(e,t){return D(i(e),t)},"BigNumber, Fraction":function(e,t){return D(e,i(t))},"Complex, Complex":function(e,t){throw TypeError("No ordering relation is defined for complex numbers")}},x,b({SS:v,DS:g,Ss:y}))}),d=(0,a.P9)(p,["typed","config"],e=>{var{typed:t,config:r}=e;return t(p,{"number, number":function(e,t){return e<t&&!(0,i.q8)(e,t,r.relTol,r.absTol)}})})},35040(e,t,r){"use strict";r.d(t,{V:()=>f});var n=r(46052),i=r(51106),a=r(58321),s=r(60361),o=r(15572),u=r(34900),c=r(38730),l=r(2366),p="smallerEq",f=(0,a.P9)(p,["typed","config","matrix","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,config:r,matrix:i,DenseMatrix:a,concat:f,SparseMatrix:h}=e,m=(0,s.O)({typed:t}),g=(0,o.v)({typed:t,SparseMatrix:h}),v=(0,u.f)({typed:t,DenseMatrix:a}),y=(0,c.$)({typed:t,matrix:i,concat:f}),b=(0,l.D)({typed:t});return t(p,d({typed:t,config:r}),{"boolean, boolean":(e,t)=>e<=t,"BigNumber, BigNumber":function(e,t){return e.lte(t)||(0,n.q)(e,t,r.relTol,r.absTol)},"bigint, bigint":(e,t)=>e<=t,"Fraction, Fraction":(e,t)=>1!==e.compare(t),"Complex, Complex":function(){throw TypeError("No ordering relation is defined for complex numbers")}},b,y({SS:g,DS:m,Ss:v}))}),d=(0,a.P9)(p,["typed","config"],e=>{var{typed:t,config:r}=e;return t(p,{"number, number":function(e,t){return e<=t||(0,i.q8)(e,t,r.relTol,r.absTol)}})})},47563(e,t,r){"use strict";r.d(t,{K:()=>c});var n=r(58321),i=r(60361),a=r(15572),s=r(34900),o=r(38730),u="unequal",c=(0,n.P9)(u,["typed","config","equalScalar","matrix","DenseMatrix","concat","SparseMatrix"],e=>{var{typed:t,config:r,equalScalar:n,matrix:c,DenseMatrix:p,concat:f,SparseMatrix:d}=e,h=(0,i.O)({typed:t}),m=(0,a.v)({typed:t,SparseMatrix:d}),g=(0,s.f)({typed:t,DenseMatrix:p}),v=(0,o.$)({typed:t,matrix:c,concat:f});return t(u,l({typed:t,equalScalar:n}),v({elop:function(e,t){return!n(e,t)},SS:m,DS:h,Ss:g}))}),l=(0,n.P9)(u,["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return t(u,{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:!r(e,t)}})})},53995(e,t,r){"use strict";r.d(t,{v:()=>s});var n=r(35838),i=r(58321),a="setCartesian",s=(0,i.P9)(a,["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:t,size:r,subset:i,compareNatural:s,Index:o,DenseMatrix:u}=e;return t(a,{"Array | Matrix, Array | Matrix":function(e,t){var a=[];if(0!==i(r(e),new o(0))&&0!==i(r(t),new o(0))){var c=(0,n.Bq)(Array.isArray(e)?e:e.toArray()).sort(s),l=(0,n.Bq)(Array.isArray(t)?t:t.toArray()).sort(s);a=[];for(var p=0;p<c.length;p++)for(var f=0;f<l.length;f++)a.push([c[p],l[f]])}return Array.isArray(e)&&Array.isArray(t)?a:new u(a)}})})},48578(e,t,r){"use strict";r.d(t,{e:()=>s});var n=r(35838),i=r(58321),a="setDifference",s=(0,i.P9)(a,["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:t,size:r,subset:i,compareNatural:s,Index:o,DenseMatrix:u}=e;return t(a,{"Array | Matrix, Array | Matrix":function(e,t){var a;if(0===i(r(e),new o(0)))a=[];else{if(0===i(r(t),new o(0)))return(0,n.Bq)(e.toArray());var c,l=(0,n.ls)((0,n.Bq)(Array.isArray(e)?e:e.toArray()).sort(s)),p=(0,n.ls)((0,n.Bq)(Array.isArray(t)?t:t.toArray()).sort(s));a=[];for(var f=0;f<l.length;f++){c=!1;for(var d=0;d<p.length;d++)if(0===s(l[f].value,p[d].value)&&l[f].identifier===p[d].identifier){c=!0;break}c||a.push(l[f])}}return Array.isArray(e)&&Array.isArray(t)?(0,n.px)(a):new u((0,n.px)(a))}})})},97921(e,t,r){"use strict";r.d(t,{Z:()=>s});var n=r(35838),i=r(58321),a="setDistinct",s=(0,i.P9)(a,["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:t,size:r,subset:i,compareNatural:s,Index:o,DenseMatrix:u}=e;return t(a,{"Array | Matrix":function(e){var t;if(0===i(r(e),new o(0)))t=[];else{var a=(0,n.Bq)(Array.isArray(e)?e:e.toArray()).sort(s);(t=[]).push(a[0]);for(var c=1;c<a.length;c++)0!==s(a[c],a[c-1])&&t.push(a[c])}return Array.isArray(e)?t:new u(t)}})})},92776(e,t,r){"use strict";r.d(t,{e:()=>s});var n=r(35838),i=r(58321),a="setIntersect",s=(0,i.P9)(a,["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:t,size:r,subset:i,compareNatural:s,Index:o,DenseMatrix:u}=e;return t(a,{"Array | Matrix, Array | Matrix":function(e,t){var a;if(0===i(r(e),new o(0))||0===i(r(t),new o(0)))a=[];else{var c=(0,n.ls)((0,n.Bq)(Array.isArray(e)?e:e.toArray()).sort(s)),l=(0,n.ls)((0,n.Bq)(Array.isArray(t)?t:t.toArray()).sort(s));a=[];for(var p=0;p<c.length;p++)for(var f=0;f<l.length;f++)if(0===s(c[p].value,l[f].value)&&c[p].identifier===l[f].identifier){a.push(c[p]);break}}return Array.isArray(e)&&Array.isArray(t)?(0,n.px)(a):new u((0,n.px)(a))}})})},12659(e,t,r){"use strict";r.d(t,{P:()=>s});var n=r(35838),i=r(58321),a="setIsSubset",s=(0,i.P9)(a,["typed","size","subset","compareNatural","Index"],e=>{var{typed:t,size:r,subset:i,compareNatural:s,Index:o}=e;return t(a,{"Array | Matrix, Array | Matrix":function(e,t){if(0===i(r(e),new o(0)))return!0;if(0===i(r(t),new o(0)))return!1;for(var a,u=(0,n.ls)((0,n.Bq)(Array.isArray(e)?e:e.toArray()).sort(s)),c=(0,n.ls)((0,n.Bq)(Array.isArray(t)?t:t.toArray()).sort(s)),l=0;l<u.length;l++){a=!1;for(var p=0;p<c.length;p++)if(0===s(u[l].value,c[p].value)&&u[l].identifier===c[p].identifier){a=!0;break}if(!1===a)return!1}return!0}})})},55150(e,t,r){"use strict";r.d(t,{C:()=>s});var n=r(35838),i=r(58321),a="setMultiplicity",s=(0,i.P9)(a,["typed","size","subset","compareNatural","Index"],e=>{var{typed:t,size:r,subset:i,compareNatural:s,Index:o}=e;return t(a,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(e,t){if(0===i(r(t),new o(0)))return 0;for(var a=(0,n.Bq)(Array.isArray(t)?t:t.toArray()),u=0,c=0;c<a.length;c++)0===s(a[c],e)&&u++;return u}})})},47834(e,t,r){"use strict";r.d(t,{Y:()=>s});var n=r(35838),i=r(58321),a="setPowerset",s=(0,i.P9)(a,["typed","size","subset","compareNatural","Index"],e=>{var{typed:t,size:r,subset:i,compareNatural:s,Index:o}=e;return t(a,{"Array | Matrix":function(e){if(0===i(r(e),new o(0)))return[];for(var t=(0,n.Bq)(Array.isArray(e)?e:e.toArray()).sort(s),a=[],u=0;u.toString(2).length<=t.length;)a.push(function(e,t){for(var r=[],n=0;n<t.length;n++)"1"===t[n]&&r.push(e[n]);return r}(t,u.toString(2).split("").reverse())),u++;for(var c=a,l=[],p=c.length-1;p>0;p--)for(var f=0;f<p;f++)c[f].length>c[f+1].length&&(l=c[f],c[f]=c[f+1],c[f+1]=l);return c}})})},5200(e,t,r){"use strict";r.d(t,{G:()=>s});var n=r(35838),i=r(58321),a="setSize",s=(0,i.P9)(a,["typed","compareNatural"],e=>{var{typed:t,compareNatural:r}=e;return t(a,{"Array | Matrix":function(e){return Array.isArray(e)?(0,n.Bq)(e).length:(0,n.Bq)(e.toArray()).length},"Array | Matrix, boolean":function(e,t){if(!1===t||0===e.length)return Array.isArray(e)?(0,n.Bq)(e).length:(0,n.Bq)(e.toArray()).length;for(var i=(0,n.Bq)(Array.isArray(e)?e:e.toArray()).sort(r),a=1,s=1;s<i.length;s++)0!==r(i[s],i[s-1])&&a++;return a}})})},88297(e,t,r){"use strict";r.d(t,{l:()=>s});var n=r(35838),i=r(58321),a="setSymDifference",s=(0,i.P9)(a,["typed","size","concat","subset","setDifference","Index"],e=>{var{typed:t,size:r,concat:i,subset:s,setDifference:o,Index:u}=e;return t(a,{"Array | Matrix, Array | Matrix":function(e,t){if(0===s(r(e),new u(0)))return(0,n.Bq)(t);if(0===s(r(t),new u(0)))return(0,n.Bq)(e);var a=(0,n.Bq)(e),c=(0,n.Bq)(t);return i(o(a,c),o(c,a))}})})},2746(e,t,r){"use strict";r.d(t,{s:()=>s});var n=r(35838),i=r(58321),a="setUnion",s=(0,i.P9)(a,["typed","size","concat","subset","setIntersect","setSymDifference","Index"],e=>{var{typed:t,size:r,concat:i,subset:s,setIntersect:o,setSymDifference:u,Index:c}=e;return t(a,{"Array | Matrix, Array | Matrix":function(e,t){if(0===s(r(e),new c(0)))return(0,n.Bq)(t);if(0===s(r(t),new c(0)))return(0,n.Bq)(e);var a=(0,n.Bq)(e),l=(0,n.Bq)(t);return i(u(a,l),o(a,l))}})})},31155(e,t,r){"use strict";r.d(t,{$:()=>a});var n=r(58321),i="freqz",a=(0,n.P9)(i,["typed","add","multiply","Complex","divide","matrix"],e=>{var{typed:t,add:r,multiply:n,Complex:a,divide:s,matrix:o}=e;return t(i,{"Array, Array":function(e,t){return u(e,t,c(512))},"Array, Array, Array":function(e,t,r){return u(e,t,r)},"Array, Array, number":function(e,t,r){if(r<0)throw Error("w must be a positive number");return u(e,t,c(r))},"Matrix, Matrix":function(e,t){var r=c(512),{w:n,h:i}=u(e.valueOf(),t.valueOf(),r);return{w:o(n),h:o(i)}},"Matrix, Matrix, Matrix":function(e,t,r){var{h:n}=u(e.valueOf(),t.valueOf(),r.valueOf());return{h:o(n),w:o(r)}},"Matrix, Matrix, number":function(e,t,r){if(r<0)throw Error("w must be a positive number");var n=c(r),{h:i}=u(e.valueOf(),t.valueOf(),n);return{h:o(i),w:o(n)}}});function u(e,t,i){for(var o=[],u=[],c=0;c<i.length;c++){for(var l=a(0,0),p=a(0,0),f=0;f<e.length;f++)l=r(l,n(e[f],a(Math.cos(-f*i[c]),Math.sin(-f*i[c]))));for(var d=0;d<t.length;d++)p=r(p,n(t[d],a(Math.cos(-d*i[c]),Math.sin(-d*i[c]))));o.push(l),u.push(p)}for(var h=[],m=0;m<o.length;m++)h.push(s(o[m],u[m]));return{h,w:i}}function c(e){for(var t=[],r=0;r<e;r++)t.push(r/e*Math.PI);return t}})},21718(e,t,r){"use strict";r.d(t,{S:()=>a});var n=r(58321),i="zpk2tf",a=(0,n.P9)(i,["typed","add","multiply","Complex","number"],e=>{var{typed:t,add:r,multiply:n,Complex:a,number:s}=e;return t(i,{"Array,Array,number":function(e,t,r){return o(e,t,r)},"Array,Array":function(e,t){return o(e,t,1)},"Matrix,Matrix,number":function(e,t,r){return o(e.valueOf(),t.valueOf(),r)},"Matrix,Matrix":function(e,t){return o(e.valueOf(),t.valueOf(),1)}});function o(e,t,r){e.some(e=>"BigNumber"===e.type)&&(e=e.map(e=>s(e))),t.some(e=>"BigNumber"===e.type)&&(t=t.map(e=>s(e)));for(var i=[a(1,0)],o=[a(1,0)],c=0;c<e.length;c++){var l=e[c];"number"==typeof l&&(l=a(l,0)),i=u(i,[a(1,0),a(-l.re,-l.im)])}for(var p=0;p<t.length;p++){var f=t[p];"number"==typeof f&&(f=a(f,0)),o=u(o,[a(1,0),a(-f.re,-f.im)])}for(var d=0;d<i.length;d++)i[d]=n(i[d],r);return[i,o]}function u(e,t){for(var i=[],s=0;s<e.length+t.length-1;s++){i[s]=a(0,0);for(var o=0;o<e.length;o++)s-o>=0&&s-o<t.length&&(i[s]=r(i[s],n(e[o],t[s-o])))}return i}})},80177(e,t,r){"use strict";r.d(t,{K:()=>a});var n=r(76355),i=r(51106),a=(0,r(58321).P9)("erf",["typed"],e=>{var{typed:t}=e;return t("name",{number:function(e){var t=Math.abs(e);return t>=l?(0,i._S)(e):t<=s?(0,i._S)(e)*function(e){var t,r=e*e,n=u[0][4]*r,i=r;for(t=0;t<3;t+=1)n=(n+u[0][t])*r,i=(i+c[0][t])*r;return e*(n+u[0][3])/(i+c[0][3])}(t):t<=4?(0,i._S)(e)*(1-function(e){var t,r=u[1][8]*e,n=e;for(t=0;t<7;t+=1)r=(r+u[1][t])*e,n=(n+c[1][t])*e;var i=(r+u[1][7])/(n+c[1][7]),a=parseInt(16*e)/16;return Math.exp(-a*a)*Math.exp(-((e-a)*(e+a)))*i}(t)):(0,i._S)(e)*(1-function(e){var t,r=1/(e*e),n=u[2][5]*r,i=r;for(t=0;t<4;t+=1)n=(n+u[2][t])*r,i=(i+c[2][t])*r;var a=r*(n+u[2][4])/(i+c[2][4]);a=(o-a)/e,r=parseInt(16*e)/16;var s=(e-r)*(e+r);return Math.exp(-r*r)*Math.exp(-s)*a}(t))},"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})}),s=.46875,o=.5641895835477563,u=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,21531153547440383e-24],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,6587491615298378e-19,.016315387137302097]],c=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],l=0x20000000000000},89926(e,t,r){"use strict";r.d(t,{b:()=>a});var n=r(58321),i="zeta",a=(0,n.P9)(i,["typed","config","multiply","pow","divide","factorial","equal","smallerEq","isBounded","isNegative","gamma","sin","subtract","add","?Complex","?BigNumber","pi"],e=>{var{typed:t,config:r,multiply:n,pow:a,divide:s,factorial:o,equal:u,smallerEq:c,isBounded:l,isNegative:p,gamma:f,sin:d,subtract:h,add:m,Complex:g,BigNumber:v,pi:y}=e;return t(i,{number:e=>b(e,e=>e,()=>20),BigNumber:e=>b(e,e=>new v(e),()=>Math.abs(Math.log10(r.relTol))),Complex:function(e){return 0===e.re&&0===e.im?new g(-.5):1===e.re?new g(NaN,NaN):e.re===1/0&&0===e.im?new g(1):e.im===1/0||e.re===-1/0?new g(NaN,NaN):x(e,e=>e,e=>Math.round(19.5+.9*Math.abs(e.im)),e=>e.re)}});function b(e,t,r){return u(e,0)?t(-.5):u(e,1)?t(NaN):l(e)?x(e,t,r,e=>e):t(p(e)?NaN:1)}function x(e,t,r,i){var o=r(e);if(i(e)>-(o-1)/2)return function(e,t,r){for(var i=s(1,n(D(r(0),t),h(1,a(2,h(1,e))))),o=r(0),u=r(1);c(u,t);u=m(u,1))o=m(o,s(n((-1)**(u-1),D(u,t)),a(u,e)));return n(i,o)}(e,t(o),t);var u=n(a(2,e),a(t(y),h(e,1)));return u=n(u,d(n(s(t(y),2),e))),u=n(u,f(h(1,e))),n(u,x(h(1,e),t,r,i))}function D(e,t){for(var r=e,i=e;c(i,t);i=m(i,1)){var u=s(n(o(m(t,h(i,1))),a(4,i)),n(o(h(t,i)),o(n(2,i))));r=m(r,u)}return n(t,r)}})},26148(e,t,r){"use strict";r.d(t,{r:()=>a});var n=r(58321),i="corr",a=(0,n.P9)(i,["typed","matrix","mean","sqrt","sum","add","subtract","multiply","pow","divide"],e=>{var{typed:t,matrix:r,sqrt:n,sum:a,add:s,subtract:o,multiply:u,pow:c,divide:l}=e;return t(i,{"Array, Array":function(e,t){return p(e,t)},"Matrix, Matrix":function(e,t){var n=p(e.toArray(),t.toArray());return Array.isArray(n)?r(n):n}});function p(e,t){var r=[];if(Array.isArray(e[0])&&Array.isArray(t[0])){if(e.length!==t.length)throw SyntaxError("Dimension mismatch. Array A and B must have the same length.");for(var n=0;n<e.length;n++){if(e[n].length!==t[n].length)throw SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");r.push(f(e[n],t[n]))}return r}if(e.length!==t.length)throw SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");return f(e,t)}function f(e,t){var r=e.length,i=a(e),p=a(t),f=e.reduce((e,r,n)=>s(e,u(r,t[n])),0),d=a(e.map(e=>c(e,2))),h=a(t.map(e=>c(e,2)));return l(o(u(r,f),u(i,p)),n(u(o(u(r,d),c(i,2)),o(u(r,h),c(p,2)))))}})},2736(e,t,r){"use strict";r.d(t,{b:()=>l});var n=r(76355),i=r(58321),a=r(99979),s=r(38635),o=r(35838),u=r(6636),c="cumsum",l=(0,i.P9)(c,["typed","add","unaryPlus"],e=>{var{typed:t,add:r,unaryPlus:i}=e;return t(c,{Array:l,Matrix:function(e){return e.create(l(e.valueOf(),e.datatype()))},"Array, number | BigNumber":f,"Matrix, number | BigNumber":function(e,t){return e.create(f(e.valueOf(),t),e.datatype())},"...":function(e){if((0,n.HL)(e))throw TypeError("All values expected to be scalar in function cumsum");return l(e)}});function l(e){try{return p(e)}catch(e){throw(0,s.i)(e,c)}}function p(e){if(0===e.length)return[];for(var t=[i(e[0])],n=1;n<e.length;++n)t.push(r(t[n-1],e[n]));return t}function f(e,t){var r=(0,o.LO)(e);if(t<0||t>=r.length)throw new u.d(t,r.length);try{return function e(t,r){var n,i,s;if(r<=0){if(!Array.isArray(t[0][0]))return p(t);for(n=0,s=(0,a.U)(t),i=[];n<s.length;n++)i[n]=e(s[n],r-1);return i}for(n=0,i=[];n<t.length;n++)i[n]=e(t[n],r-1);return i}(e,t)}catch(e){throw(0,s.i)(e,c)}}})},21038(e,t,r){"use strict";r.d(t,{p:()=>s});var n=r(35838),i=r(58321),a=r(38635),s=(0,i.P9)("mad",["typed","abs","map","median","subtract"],e=>{var{typed:t,abs:r,map:i,median:s,subtract:o}=e;return t("mad",{"Array | Matrix":u,"...":function(e){return u(e)}});function u(e){if(0===(e=(0,n.Bq)(e.valueOf())).length)throw Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var t=s(e);return s(i(e,function(e){return r(o(e,t))}))}catch(e){if(e instanceof TypeError&&e.message.includes("median"))throw TypeError(e.message.replace("median","mad"));throw(0,a.i)(e,"mad")}}})},5546(e,t,r){"use strict";r.d(t,{p:()=>o});var n=r(76355),i=r(58321),a=r(51106),s=r(38635),o=(0,i.P9)("max",["typed","config","numeric","larger","isNaN"],e=>{var{typed:t,config:r,numeric:i,larger:o,isNaN:u}=e;return t("max",{"Array | Matrix":l,"Array | Matrix, number | BigNumber":function(e,t){return(0,n.TS)(e,t.valueOf(),c)},"...":function(e){if((0,n.HL)(e))throw TypeError("Scalar values expected in function max");return l(e)}});function c(e,t){try{return o(e,t)?e:t}catch(e){throw(0,s.i)(e,"max",t)}}function l(e){var t;if((0,n.xL)(e,function(e){try{u(e)?t=e:(void 0===t||o(e,t))&&(t=e)}catch(t){throw(0,s.i)(t,"max",e)}}),void 0===t)throw Error("Cannot calculate max of an empty array");return"string"==typeof t&&(t=i(t,(0,a.BC)(t,r))),t}})},84043(e,t,r){"use strict";r.d(t,{s:()=>u});var n=r(76355),i=r(35838),a=r(58321),s=r(38635),o="mean",u=(0,a.P9)(o,["typed","add","divide"],e=>{var{typed:t,add:r,divide:a}=e;return t(o,{"Array | Matrix":u,"Array | Matrix, number | BigNumber":function(e,t){try{var o=(0,n.TS)(e,t,r),u=Array.isArray(e)?(0,i.LO)(e):e.size();return a(o,u[t])}catch(e){throw(0,s.i)(e,"mean")}},"...":function(e){if((0,n.HL)(e))throw TypeError("Scalar values expected in function mean");return u(e)}});function u(e){var t,i=0;if((0,n.xL)(e,function(e){try{t=void 0===t?e:r(t,e),i++}catch(t){throw(0,s.i)(t,"mean",e)}}),0===i)throw Error("Cannot calculate the mean of an empty array");return a(t,i)}})},22092(e,t,r){"use strict";r.d(t,{h:()=>u});var n=r(76355),i=r(35838),a=r(58321),s=r(38635),o="median",u=(0,a.P9)(o,["typed","add","divide","compare","partitionSelect"],e=>{var{typed:t,add:r,divide:a,compare:u,partitionSelect:c}=e;function l(e){try{var t=(e=(0,i.Bq)(e.valueOf())).length;if(0===t)throw Error("Cannot calculate median of an empty array");if(t%2==0){for(var r=t/2-1,n=c(e,r+1),a=e[r],o=0;o<r;++o)u(e[o],a)>0&&(a=e[o]);return f(a,n)}var l=c(e,(t-1)/2);return p(l)}catch(e){throw(0,s.i)(e,"median")}}var p=t({"number | BigNumber | Complex | Unit":function(e){return e}}),f=t({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(e,t){return a(r(e,t),2)}});return t(o,{"Array | Matrix":l,"Array | Matrix, number | BigNumber":function(e,t){throw Error("median(A, dim) is not yet supported")},"...":function(e){if((0,n.HL)(e))throw TypeError("Scalar values expected in function median");return l(e)}})})},59076(e,t,r){"use strict";r.d(t,{L:()=>o});var n=r(76355),i=r(58321),a=r(51106),s=r(38635),o=(0,i.P9)("min",["typed","config","numeric","smaller","isNaN"],e=>{var{typed:t,config:r,numeric:i,smaller:o,isNaN:u}=e;return t("min",{"Array | Matrix":l,"Array | Matrix, number | BigNumber":function(e,t){return(0,n.TS)(e,t.valueOf(),c)},"...":function(e){if((0,n.HL)(e))throw TypeError("Scalar values expected in function min");return l(e)}});function c(e,t){try{return o(e,t)?e:t}catch(e){throw(0,s.i)(e,"min",t)}}function l(e){var t;if((0,n.xL)(e,function(e){try{u(e)?t=e:(void 0===t||o(e,t))&&(t=e)}catch(t){throw(0,s.i)(t,"min",e)}}),void 0===t)throw Error("Cannot calculate min of an empty array");return"string"==typeof t&&(t=i(t,(0,a.BC)(t,r))),t}})},15645(e,t,r){"use strict";r.d(t,{E:()=>s});var n=r(35838),i=r(58321),a="mode",s=(0,i.P9)(a,["typed","isNaN","isNumeric"],e=>{var{typed:t,isNaN:r,isNumeric:i}=e;return t(a,{"Array | Matrix":s,"...":function(e){return s(e)}});function s(e){if(0===(e=(0,n.Bq)(e.valueOf())).length)throw Error("Cannot calculate mode of an empty array");for(var t={},a=[],s=0,o=0;o<e.length;o++){var u=e[o];if(i(u)&&r(u))throw Error("Cannot calculate mode of an array containing NaN values");u in t||(t[u]=0),t[u]++,t[u]===s?a.push(u):t[u]>s&&(s=t[u],a=[u])}return a}})},19059(e,t,r){"use strict";r.d(t,{_:()=>u});var n=r(76355),i=r(58321),a=r(51106),s=r(38635),o="prod",u=(0,i.P9)(o,["typed","config","multiplyScalar","numeric"],e=>{var{typed:t,config:r,multiplyScalar:i,numeric:u}=e;return t(o,{"Array | Matrix":c,"Array | Matrix, number | BigNumber":function(e,t){throw Error("prod(A, dim) is not yet supported")},"...":function(e){return c(e)}});function c(e){var t;if((0,n.xL)(e,function(e){try{t=void 0===t?e:i(t,e)}catch(t){throw(0,s.i)(t,"prod",e)}}),"string"==typeof t&&(t=u(t,(0,a.BC)(t,r))),void 0===t)throw Error("Cannot calculate prod of an empty array");return t}})},73112(e,t,r){"use strict";r.d(t,{D:()=>o});var n=r(14943),i=r(35838),a=r(58321),s="quantileSeq",o=(0,a.P9)(s,["typed","?bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger","mapSlices"],e=>{var{typed:t,bignumber:r,add:a,subtract:o,divide:u,multiply:c,partitionSelect:l,compare:p,isInteger:f,smaller:d,smallerEq:h,larger:m,mapSlices:g}=e;return t(s,{"Array | Matrix, number | BigNumber":(e,t)=>y(e,t,!1),"Array | Matrix, number | BigNumber, number":(e,t,r)=>v(e,t,!1,r,y),"Array | Matrix, number | BigNumber, boolean":y,"Array | Matrix, number | BigNumber, boolean, number":(e,t,r,n)=>v(e,t,r,n,y),"Array | Matrix, Array | Matrix":(e,t)=>b(e,t,!1),"Array | Matrix, Array | Matrix, number":(e,t,r)=>v(e,t,!1,r,b),"Array | Matrix, Array | Matrix, boolean":b,"Array | Matrix, Array | Matrix, boolean, number":(e,t,r,n)=>v(e,t,r,n,b)});function v(e,t,r,n,i){return g(e,n,e=>i(e,t,r))}function y(e,t,i){var s,o=e.valueOf();if(d(t,0))throw Error("N/prob must be non-negative");if(h(t,1))return(0,n.Et)(t)?x(o,t,i):r(x(o,t,i));if(m(t,1)){if(!f(t))throw Error("N must be a positive integer");if(m(t,0xffffffff))throw Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var c=a(t,1);s=[];for(var l=0;d(l,t);l++){var p=u(l+1,c);s.push(x(o,p,i))}return(0,n.Et)(t)?s:r(s)}}function b(e,t,r){for(var n=e.valueOf(),i=t.valueOf(),a=[],s=0;s<i.length;++s)a.push(x(n,i[s],r));return a}function x(e,t,r){var s,u,d=(0,i.Bq)(e),h=d.length;if(0===h)throw Error("Cannot calculate quantile of an empty sequence");var m=(0,n.Et)(t)?t*(h-1):t.times(h-1),g=(0,n.Et)(t)?Math.floor(m):m.floor().toNumber(),v=(0,n.Et)(t)?m%1:m.minus(g);if(f(m))return r?d[m]:l(d,(0,n.Et)(t)?m:m.valueOf());if(r)s=d[g],u=d[g+1];else{u=l(d,g+1),s=d[g];for(var y=0;y<g;++y)p(d[y],s)>0&&(s=d[y])}return a(c(s,o(1,v)),c(u,v))}})},39029(e,t,r){"use strict";r.d(t,{y:()=>a});var n=r(58321),i=r(14943),a=(0,n.P9)("std",["typed","map","sqrt","variance"],e=>{var{typed:t,map:r,sqrt:n,variance:a}=e;return t("std",{"Array | Matrix":s,"Array | Matrix, string":s,"Array | Matrix, number | BigNumber":s,"Array | Matrix, number | BigNumber, string":s,"...":function(e){return s(e)}});function s(e,t){if(0===e.length)throw SyntaxError("Function std requires one or more parameters (0 provided)");try{var s=a.apply(null,arguments);if((0,i.P3)(s))return r(s,n);return n(s)}catch(e){if(e instanceof TypeError&&e.message.includes(" variance"))throw TypeError(e.message.replace(" variance"," std"));throw e}}})},47159(e,t,r){"use strict";r.d(t,{i:()=>o});var n=r(76355),i=r(58321),a=r(51106),s=r(38635),o=(0,i.P9)("sum",["typed","config","add","numeric"],e=>{var{typed:t,config:r,add:i,numeric:o}=e;return t("sum",{"Array | Matrix":u,"Array | Matrix, number | BigNumber":function(e,t){try{return(0,n.TS)(e,t,i)}catch(e){throw(0,s.i)(e,"sum")}},"...":function(e){if((0,n.HL)(e))throw TypeError("Scalar values expected in function sum");return u(e)}});function u(e){var t;return(0,n.xL)(e,function(e){try{t=void 0===t?e:i(t,e)}catch(t){throw(0,s.i)(t,"sum",e)}}),void 0===t&&(t=o(0,r.number)),"string"==typeof t&&(t=o(t,(0,a.BC)(t,r))),t}})},38635(e,t,r){"use strict";r.d(t,{i:()=>i});var n=r(14943);function i(e,t,r){var i;return String(e).includes("Unexpected type")?(i=arguments.length>2?" (type: "+(0,n.QP)(r)+", value: "+JSON.stringify(r)+")":" (type: "+e.data.actual+")",TypeError("Cannot calculate "+t+", unexpected type of argument"+i)):String(e).includes("complex numbers")?(i=arguments.length>2?" (type: "+(0,n.QP)(r)+", value: "+JSON.stringify(r)+")":"",TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+i)):e}},35849(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(76355),i=r(14943),a=r(58321),s=r(38635),o="unbiased",u="variance",c=(0,a.P9)(u,["typed","add","subtract","multiply","divide","mapSlices","isNaN"],e=>{var{typed:t,add:r,subtract:a,multiply:c,divide:l,mapSlices:p,isNaN:f}=e;return t(u,{"Array | Matrix":function(e){return d(e,o)},"Array | Matrix, string":d,"Array | Matrix, number | BigNumber":function(e,t){return h(e,t,o)},"Array | Matrix, number | BigNumber, string":h,"...":function(e){return d(e,o)}});function d(e,t){var o,u=0;if(0===e.length)throw SyntaxError("Function variance requires one or more parameters (0 provided)");if((0,n.xL)(e,function(e){try{o=void 0===o?e:r(o,e),u++}catch(t){throw(0,s.i)(t,"variance",e)}}),0===u)throw Error("Cannot calculate variance of an empty array");var p=l(o,u);if(o=void 0,(0,n.xL)(e,function(e){var t=a(e,p);o=void 0===o?c(t,t):r(o,c(t,t))}),f(o))return o;switch(t){case"uncorrected":return l(o,u);case"biased":return l(o,u+1);case"unbiased":var d=(0,i.C4)(o)?o.mul(0):0;return 1===u?d:l(o,u-1);default:throw Error('Unknown normalization "'+t+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function h(e,t,r){try{if(0===e.length)throw SyntaxError("Function variance requires one or more parameters (0 provided)");return p(e,t,e=>d(e,r))}catch(e){throw(0,s.i)(e,"variance")}}})},4767(e,t,r){"use strict";r.d(t,{O:()=>n});var n=(0,r(58321).P9)("bin",["typed","format"],e=>{var{typed:t,format:r}=e;return t("bin",{"number | BigNumber":function(e){return r(e,{notation:"bin"})},"number | BigNumber, number | BigNumber":function(e,t){return r(e,{notation:"bin",wordSize:t})}})})},80067(e,t,r){"use strict";r.d(t,{I:()=>s});var n=r(27716),i=r(58321),a="format",s=(0,i.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{any:n.GP,"any, Object | function | number | BigNumber":n.GP})})},69651(e,t,r){"use strict";r.d(t,{i:()=>n});var n=(0,r(58321).P9)("hex",["typed","format"],e=>{var{typed:t,format:r}=e;return t("hex",{"number | BigNumber":function(e){return r(e,{notation:"hex"})},"number | BigNumber, number | BigNumber":function(e,t){return r(e,{notation:"hex",wordSize:t})}})})},35984(e,t,r){"use strict";r.d(t,{R:()=>n});var n=(0,r(58321).P9)("oct",["typed","format"],e=>{var{typed:t,format:r}=e;return t("oct",{"number | BigNumber":function(e){return r(e,{notation:"oct"})},"number | BigNumber, number | BigNumber":function(e,t){return r(e,{notation:"oct",wordSize:t})}})})},86621(e,t,r){"use strict";r.d(t,{q:()=>u});var n=r(27716),i=r(14943),a=r(58321),s=r(93556),o="print",u=(0,a.P9)(o,["typed"],e=>{var{typed:t}=e;return t(o,{"string, Object | Array":c,"string, Object | Array, number | Object":c})});function c(e,t,r){return e.replace(s.I,function(e,a){var s=a.split("."),o=t[s.shift()];for(void 0!==o&&o.isMatrix&&(o=o.toArray());s.length&&void 0!==o;){var u=s.shift();o=u?o[u]:o+"."}if(void 0!==o)if(!(0,i.Kg)(o))return(0,n.GP)(o,r);else return o;return e})}},72800(e,t,r){"use strict";r.d(t,{J:()=>a});var n=r(58321),i="acos",a=(0,n.P9)(i,["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:n}=e;return t(i,{number:function(e){return e>=-1&&e<=1||r.predictable?Math.acos(e):new n(e,0).acos()},Complex:function(e){return e.acos()},BigNumber:function(e){return e.acos()}})})},80122(e,t,r){"use strict";r.d(t,{B:()=>s});var n=r(58321),i=r(74975),a="acosh",s=(0,n.P9)(a,["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:n}=e;return t(a,{number:function(e){return e>=1||r.predictable?(0,i.ie)(e):e<=-1?new n(Math.log(Math.sqrt(e*e-1)-e),Math.PI):new n(e,0).acosh()},Complex:function(e){return e.acosh()},BigNumber:function(e){return e.acosh()}})})},32181(e,t,r){"use strict";r.d(t,{C:()=>s});var n=r(58321),i=r(74975),a="acot",s=(0,n.P9)(a,["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t(a,{number:i.BD,Complex:function(e){return e.acot()},BigNumber:function(e){return new r(1).div(e).atan()}})})},24145(e,t,r){"use strict";r.d(t,{g:()=>s});var n=r(58321),i=r(74975),a="acoth",s=(0,n.P9)(a,["typed","config","Complex","BigNumber"],e=>{var{typed:t,config:r,Complex:n,BigNumber:s}=e;return t(a,{number:function(e){return e>=1||e<=-1||r.predictable?(0,i.lh)(e):new n(e,0).acoth()},Complex:function(e){return e.acoth()},BigNumber:function(e){return new s(1).div(e).atanh()}})})},95636(e,t,r){"use strict";r.d(t,{v:()=>s});var n=r(58321),i=r(74975),a="acsc",s=(0,n.P9)(a,["typed","config","Complex","BigNumber"],e=>{var{typed:t,config:r,Complex:n,BigNumber:s}=e;return t(a,{number:function(e){return e<=-1||e>=1||r.predictable?(0,i.E4)(e):new n(e,0).acsc()},Complex:function(e){return e.acsc()},BigNumber:function(e){return new s(1).div(e).asin()}})})},21158(e,t,r){"use strict";r.d(t,{V:()=>s});var n=r(58321),i=r(74975),a="acsch",s=(0,n.P9)(a,["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t(a,{number:i.OU,Complex:function(e){return e.acsch()},BigNumber:function(e){return new r(1).div(e).asinh()}})})},61998(e,t,r){"use strict";r.d(t,{x:()=>s});var n=r(58321),i=r(74975),a="asec",s=(0,n.P9)(a,["typed","config","Complex","BigNumber"],e=>{var{typed:t,config:r,Complex:n,BigNumber:s}=e;return t(a,{number:function(e){return e<=-1||e>=1||r.predictable?(0,i.yQ)(e):new n(e,0).asec()},Complex:function(e){return e.asec()},BigNumber:function(e){return new s(1).div(e).acos()}})})},99444(e,t,r){"use strict";r.d(t,{n:()=>s});var n=r(58321),i=r(74975),a="asech",s=(0,n.P9)(a,["typed","config","Complex","BigNumber"],e=>{var{typed:t,config:r,Complex:n,BigNumber:s}=e;return t(a,{number:function(e){if(e<=1&&e>=-1||r.predictable){var t=1/e;return t>0||r.predictable?(0,i.o)(e):new n(Math.log(Math.sqrt(t*t-1)-t),Math.PI)}return new n(e,0).asech()},Complex:function(e){return e.asech()},BigNumber:function(e){return new s(1).div(e).acosh()}})})},35877(e,t,r){"use strict";r.d(t,{I:()=>a});var n=r(58321),i="asin",a=(0,n.P9)(i,["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:n}=e;return t(i,{number:function(e){return e>=-1&&e<=1||r.predictable?Math.asin(e):new n(e,0).asin()},Complex:function(e){return e.asin()},BigNumber:function(e){return e.asin()}})})},33601(e,t,r){"use strict";r.d(t,{Q:()=>a});var n=r(58321),i=r(74975),a=(0,n.P9)("asinh",["typed"],e=>{var{typed:t}=e;return t("asinh",{number:i.Pk,Complex:function(e){return e.asinh()},BigNumber:function(e){return e.asinh()}})})},51584(e,t,r){"use strict";r.d(t,{X:()=>n});var n=(0,r(58321).P9)("atan",["typed"],e=>{var{typed:t}=e;return t("atan",{number:function(e){return Math.atan(e)},Complex:function(e){return e.atan()},BigNumber:function(e){return e.atan()}})})},94472(e,t,r){"use strict";r.d(t,{J:()=>p});var n=r(58321),i=r(47308),a=r(60361),s=r(47726),o=r(59755),u=r(34900),c=r(38730),l="atan2",p=(0,n.P9)(l,["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],e=>{var{typed:t,matrix:r,equalScalar:n,BigNumber:p,DenseMatrix:f,concat:d}=e,h=(0,i.Z)({typed:t,equalScalar:n}),m=(0,a.O)({typed:t}),g=(0,s.h)({typed:t,equalScalar:n}),v=(0,o.A)({typed:t,equalScalar:n}),y=(0,u.f)({typed:t,DenseMatrix:f}),b=(0,c.$)({typed:t,matrix:r,concat:d});return t(l,{"number, number":Math.atan2,"BigNumber, BigNumber":(e,t)=>p.atan2(e,t)},b({scalar:"number | BigNumber",SS:g,DS:m,SD:h,Ss:v,sS:y}))})},88954(e,t,r){"use strict";r.d(t,{v:()=>s});var n=r(58321),i=r(74975),a="atanh",s=(0,n.P9)(a,["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:n}=e;return t(a,{number:function(e){return e<=1&&e>=-1||r.predictable?(0,i.iu)(e):new n(e,0).atanh()},Complex:function(e){return e.atanh()},BigNumber:function(e){return e.atanh()}})})},21143(e,t,r){"use strict";r.d(t,{o:()=>a});var n=r(58321),i=r(66670),a=(0,n.P9)("cos",["typed"],e=>{var{typed:t}=e,r=(0,i.d)({typed:t});return t("cos",{number:Math.cos,"Complex | BigNumber":e=>e.cos()},r)})},7671(e,t,r){"use strict";r.d(t,{q:()=>s});var n=r(58321),i=r(51106),a="cosh",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{number:i.yI,"Complex | BigNumber":e=>e.cosh()})})},4630(e,t,r){"use strict";r.d(t,{v:()=>s});var n=r(58321),i=r(74975),a=r(66670),s=(0,n.P9)("cot",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e,n=(0,a.d)({typed:t});return t("cot",{number:i.wX,Complex:e=>e.cot(),BigNumber:e=>new r(1).div(e.tan())},n)})},87292(e,t,r){"use strict";r.d(t,{$:()=>s});var n=r(58321),i=r(74975),a="coth",s=(0,n.P9)(a,["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t(a,{number:i.OT,Complex:e=>e.coth(),BigNumber:e=>new r(1).div(e.tanh())})})},2115(e,t,r){"use strict";r.d(t,{Y:()=>s});var n=r(58321),i=r(74975),a=r(66670),s=(0,n.P9)("csc",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e,n=(0,a.d)({typed:t});return t("csc",{number:i.LD,Complex:e=>e.csc(),BigNumber:e=>new r(1).div(e.sin())},n)})},19259(e,t,r){"use strict";r.d(t,{g:()=>s});var n=r(58321),i=r(74975),a="csch",s=(0,n.P9)(a,["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t(a,{number:i.Xx,Complex:e=>e.csch(),BigNumber:e=>new r(1).div(e.sinh())})})},31001(e,t,r){"use strict";r.d(t,{c:()=>s});var n=r(58321),i=r(74975),a=r(66670),s=(0,n.P9)("sec",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e,n=(0,a.d)({typed:t});return t("sec",{number:i.RR,Complex:e=>e.sec(),BigNumber:e=>new r(1).div(e.cos())},n)})},25757(e,t,r){"use strict";r.d(t,{g:()=>s});var n=r(58321),i=r(74975),a="sech",s=(0,n.P9)(a,["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t(a,{number:i.Hy,Complex:e=>e.sech(),BigNumber:e=>new r(1).div(e.cosh())})})},50578(e,t,r){"use strict";r.d(t,{T:()=>a});var n=r(58321),i=r(66670),a=(0,n.P9)("sin",["typed"],e=>{var{typed:t}=e,r=(0,i.d)({typed:t});return t("sin",{number:Math.sin,"Complex | BigNumber":e=>e.sin()},r)})},16768(e,t,r){"use strict";r.d(t,{V:()=>s});var n=r(58321),i=r(74975),a="sinh",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{number:i.rc,"Complex | BigNumber":e=>e.sinh()})})},45883(e,t,r){"use strict";r.d(t,{a:()=>a});var n=r(58321),i=r(66670),a=(0,n.P9)("tan",["typed"],e=>{var{typed:t}=e,r=(0,i.d)({typed:t});return t("tan",{number:Math.tan,"Complex | BigNumber":e=>e.tan()},r)})},30227(e,t,r){"use strict";r.d(t,{I:()=>a});var n=r(58321),i=r(51106),a=(0,n.P9)("tanh",["typed"],e=>{var{typed:t}=e;return t("tanh",{number:i.ym,"Complex | BigNumber":e=>e.tanh()})})},66670(e,t,r){"use strict";r.d(t,{d:()=>n});var n=(0,r(58321).P9)("trigUnit",["typed"],e=>{var{typed:t}=e;return{Unit:t.referToSelf(e=>r=>{if(!r.hasBase(r.constructor.BASE_UNITS.ANGLE))throw TypeError("Unit in function cot is no angle");return t.find(e,r.valueType())(r.value)})}})},59116(e,t,r){"use strict";r.d(t,{U:()=>a});var n=r(58321),i=r(38730),a=(0,n.P9)("to",["typed","matrix","concat"],e=>{var{typed:t,matrix:r,concat:n}=e,a=(0,i.$)({typed:t,matrix:r,concat:n});return t("to",{"Unit, Unit | string":(e,t)=>e.to(t)},a({Ds:!0}))})},8970(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(58321),i="toBest",a=(0,n.P9)(i,["typed"],e=>{var{typed:t}=e;return t(i,{Unit:e=>e.toBest(),"Unit, string":(e,t)=>e.toBest(t.split(",")),"Unit, string, Object":(e,t,r)=>e.toBest(t.split(","),r),"Unit, Array":(e,t)=>e.toBest(t),"Unit, Array, Object":(e,t,r)=>e.toBest(t,r)})})},65505(e,t,r){"use strict";r.d(t,{s:()=>s});var n=r(93140),i=r(58321),a="clone",s=(0,i.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{any:n.o8})})},75624(e,t,r){"use strict";r.d(t,{l:()=>a});var n=r(58321),i="hasNumericValue",a=(0,n.P9)(i,["typed","isNumeric"],e=>{var{typed:t,isNumeric:r}=e;return t(i,{boolean:()=>!0,string:function(e){return e.trim().length>0&&!isNaN(Number(e))},any:function(e){return r(e)}})})},569(e,t,r){"use strict";r.d(t,{c:()=>a});var n=r(58321),i="isBounded",a=(0,n.P9)(i,["typed"],e=>{var{typed:t}=e;return t(i,{number:e=>Number.isFinite(e),"BigNumber | Complex":e=>e.isFinite(),"bigint | Fraction":()=>!0,"null | undefined":()=>!1,Unit:t.referToSelf(e=>t=>e(t.value)),"Array | Matrix":t.referToSelf(e=>t=>(Array.isArray(t)||(t=t.valueOf()),t.every(t=>e(t))))})})},23709(e,t,r){"use strict";r.d(t,{S:()=>a});var n=r(58321),i="isFinite",a=(0,n.P9)(i,["typed","isBounded","map"],e=>{var{typed:t,isBounded:r,map:n}=e;return t(i,{"Array | Matrix":e=>n(e,r),any:e=>r(e)})})},50258(e,t,r){"use strict";r.d(t,{r:()=>s});var n=r(76355),i=r(58321),a="isInteger",s=(0,i.P9)(a,["typed","equal"],e=>{var{typed:t,equal:r}=e;return t(a,{number:e=>!!Number.isFinite(e)&&r(e,Math.round(e)),BigNumber:e=>!!e.isFinite()&&r(e.round(),e),bigint:e=>!0,Fraction:e=>1n===e.d,"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},7753(e,t,r){"use strict";r.d(t,{Y:()=>o});var n=r(76355),i=r(58321),a=r(88183),s="isNaN",o=(0,i.P9)(s,["typed"],e=>{var{typed:t}=e;return t(s,{number:a.Xo,BigNumber:function(e){return e.isNaN()},bigint:function(e){return!1},Fraction:function(e){return!1},Complex:function(e){return e.isNaN()},Unit:function(e){return Number.isNaN(e.value)},"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},53929(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(76355),i=r(58321),a=r(88183),s=r(46052),o=r(51106),u="isNegative",c=(0,i.P9)(u,["typed","config"],e=>{var{typed:t,config:r}=e;return t(u,{number:e=>!(0,o.q8)(e,0,r.relTol,r.absTol)&&(0,a.hD)(e),BigNumber:e=>!(0,s.q)(e,new e.constructor(0),r.relTol,r.absTol)&&e.isNeg()&&!e.isZero()&&!e.isNaN(),bigint:e=>e<0n,Fraction:e=>e.s<0n,Unit:t.referToSelf(e=>r=>t.find(e,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},32547(e,t,r){"use strict";r.d(t,{y:()=>s});var n=r(76355),i=r(58321),a="isNumeric",s=(0,i.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{"number | BigNumber | bigint | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},39081(e,t,r){"use strict";r.d(t,{q:()=>c});var n=r(76355),i=r(58321),a=r(88183),s=r(46052),o=r(51106),u="isPositive",c=(0,i.P9)(u,["typed","config"],e=>{var{typed:t,config:r}=e;return t(u,{number:e=>!(0,o.q8)(e,0,r.relTol,r.absTol)&&(0,a.F5)(e),BigNumber:e=>!(0,s.q)(e,new e.constructor(0),r.relTol,r.absTol)&&!e.isNeg()&&!e.isZero()&&!e.isNaN(),bigint:e=>e>0n,Fraction:e=>e.s>0n&&e.n>0n,Unit:t.referToSelf(e=>r=>t.find(e,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},23547(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(76355),i=r(58321),a="isPrime",s=(0,i.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{number:function(e){if(e<=3)return e>1;if(e%2==0||e%3==0)return!1;for(var t=5;t*t<=e;t+=6)if(e%t==0||e%(t+2)==0)return!1;return!0},bigint:function(e){if(e<=3n)return e>1n;if(e%2n===0n||e%3n===0n)return!1;for(var t=5n;t*t<=e;t+=6n)if(e%t===0n||e%(t+2n)===0n)return!1;return!0},BigNumber:function(e){if(e.lte(3))return e.gt(1);if(e.mod(2).eq(0)||e.mod(3).eq(0))return!1;if(e.lt(0x100000000)){for(var t=e.toNumber(),r=5;r*r<=t;r+=6)if(t%r==0||t%(r+2)==0)return!1;return!0}e=new(e.constructor.clone({precision:2*e.toFixed(0).length}))(e);for(var n=0,i=e.sub(1);i.mod(2).eq(0);)i=i.div(2),n+=1;var a=null;if(e.lt("3317044064679887385961981"))a=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter(t=>t<e);else{var s=Math.min(e.toNumber()-2,Math.floor(2*Math.pow(e.toFixed(0).length*Math.log(10),2)));a=[];for(var o=2;o<=s;o+=1)a.push(s)}for(var u=0;u<a.length;u+=1){var c=a[u],l=function(e,t,r){for(var n=1;!t.eq(0);)t.mod(2).eq(0)?(t=t.div(2),e=e.mul(e).mod(r)):(t=t.sub(1),n=e.mul(n).mod(r));return n}(e.sub(e).add(c),i,e);if(!l.eq(1)){for(var p=0,f=l;!f.eq(e.sub(1));p+=1,f=f.mul(f).mod(e))if(p===n-1)return!1}}return!0},"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},27844(e,t,r){"use strict";r.d(t,{L:()=>s});var n=r(76355),i=r(58321),a="isZero",s=(0,i.P9)(a,["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return t(a,{"number | BigNumber | Complex | Fraction":e=>r(e,0),bigint:e=>0n===e,Unit:t.referToSelf(e=>r=>t.find(e,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(e=>t=>(0,n.Bl)(t,e))})})},56787(e,t,r){"use strict";r.d(t,{y:()=>s});var n=r(14943),i=r(58321),a=r(76495),s=(0,i.P9)("numeric",["number","?bignumber","?fraction"],e=>{var{number:t,bignumber:r,fraction:i}=e,s={string:!0,number:!0,BigNumber:!0,Fraction:!0},o={number:e=>t(e),BigNumber:r?e=>r(e):a.j9,bigint:e=>BigInt(e),Fraction:i?e=>i(e):a.Sw};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",r=arguments.length>2?arguments[2]:void 0;if(void 0!==r)throw SyntaxError("numeric() takes one or two arguments");var i=(0,n.QP)(e);if(!(i in s))throw TypeError("Cannot convert "+e+' of type "'+i+'"; valid input types are '+Object.keys(s).join(", "));if(!(t in o))throw TypeError("Cannot convert "+e+' to type "'+t+'"; valid output types are '+Object.keys(o).join(", "));return t===i?e:o[t](e)}})},90667(e,t,r){"use strict";r.d(t,{o:()=>s});var n=r(58321),i=r(14943),a="typeOf",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{any:i.QP})})},94527(e,t,r){"use strict";r.r(t),r.d(t,{parseDependencies:()=>r9,createLyap:()=>sz.L,atanh:()=>a.rfv,createOrTransform:()=>oF.O,dotDivide:()=>a.TDS,isMatrix:()=>o.OA,createMolarMassC12:()=>tv.KV,compile:()=>s.wE,createDeepEqual:()=>nX.H,firstRadiationDependencies:()=>af,toDependencies:()=>cT,isPositive:()=>a.epS,meanDependencies:()=>nl,createSpeedOfLight:()=>tv.Lg,partitionSelect:()=>a.$TU,planckTemperature:()=>a._RZ,setDifferenceDependencies:()=>uR,deuteronMassDependencies:()=>ii,rowTransformDependencies:()=>uE,atanDependencies:()=>eM,createUppercasePi:()=>ix.ol,createAcoth:()=>et.g,nthRootDependencies:()=>og,setCartesian:()=>a.f4J,lyapDependencies:()=>sL,acoshDependencies:()=>K,forEachDependencies:()=>ah,isNumeric:()=>a.kf$,leafCountDependencies:()=>sp,createRandomInt:()=>ut.d,_true:()=>a._Jp,coulomb:()=>a.Kwo,createQuantileSeq:()=>o5.D,createSetIntersect:()=>uj.e,isBigNumber:()=>o.C4,max:()=>a.T9B,nuclearMagnetonDependencies:()=>ob,SymbolNodeDependencies:()=>rG,setIntersect:()=>a.MZk,ImmutableDenseMatrix:()=>a.LQF,asech:()=>a.lXS,createSmaller:()=>ru.p,sizeDependencies:()=>te,csc:()=>a.mov,createSetSize:()=>uW.G,printTransformDependencies:()=>o2,isInteger:()=>a.FqJ,isNode:()=>o.Ll,bigintDependencies:()=>tI,sylvester:()=>a.UoP,createMapSlices:()=>sW.Q,sinhDependencies:()=>u2,planckTimeDependencies:()=>oY,createRightArithShift:()=>uh.f,createCtranspose:()=>n$.d,IndexDependencies:()=>rm,varianceDependencies:()=>cc,createLusolve:()=>sF.b,boltzmannDependencies:()=>t5,qrDependencies:()=>i_,unequal:()=>a._P7,acscDependencies:()=>ei,eDependencies:()=>iD,createDeuteronMass:()=>tv.zr,pickRandomDependencies:()=>oU,createPlanckTemperature:()=>tv._F,createAtanh:()=>eF.v,Spa:()=>a.V4u,createNorm:()=>sB.X,createConditionalNode:()=>rq.h,medianDependencies:()=>sH,ObjectNodeDependencies:()=>rJ,bohrMagneton:()=>a.tTI,octDependencies:()=>oS,symbolicEqualDependencies:()=>cw,setMultiplicity:()=>a.ELq,AccessorNode:()=>s.S5,matrixDependencies:()=>P,createAcos:()=>W.J,createSum:()=>nm.i,nullishDependencies:()=>ow,smallerEqDependencies:()=>rD,createSetUnion:()=>uX.s,stirlingS2:()=>a.yo9,createMapTransform:()=>sX.t,indexTransformDependencies:()=>aL,setUnion:()=>a.gGC,falseDependencies:()=>i4,mapSlicesTransformDependencies:()=>sK,cosh:()=>a.yIG,createEqualText:()=>iZ.a,erfDependencies:()=>iJ,FibonacciHeap:()=>a.hKX,sec:()=>a.aPs,createFaraday:()=>tv.Dp,expm1:()=>a.IYd,createRangeClass:()=>un.U,ceilDependencies:()=>eQ,rowDependencies:()=>uN,secondRadiationDependencies:()=>uP,createBignumber:()=>eB._,sumTransformDependencies:()=>cx,createBohrMagneton:()=>tv.XS,molarMassDependencies:()=>oo,ImmutableDenseMatrixDependencies:()=>rp,hex:()=>a.uhr,sinDependencies:()=>iR,stringDependencies:()=>cg,docs:()=>s.mN,sackurTetrodeDependencies:()=>uT,leafCount:()=>s.G6,createVariance:()=>cu.A,bigint:()=>a.oad,rotationMatrixDependencies:()=>ub,versionDependencies:()=>cH,RangeDependencies:()=>ui,createRightLogShift:()=>ug.n,filterDependencies:()=>au,DimensionError:()=>c.h,countDependencies:()=>n_,createSmallerEq:()=>rx.V,createStd:()=>cl.y,zetaDependencies:()=>cY,createOnes:()=>oC.A,createMatrixFromFunction:()=>s1.s,createRange:()=>rw.S,secDependencies:()=>uF,gasConstantDependencies:()=>ab,variance:()=>a.GVr,distanceDependencies:()=>id,vacuumImpedanceDependencies:()=>cj,asinDependencies:()=>ew,Help:()=>s._V,SQRT2:()=>a.$qA,createMode:()=>oa.E,createCompile:()=>r6.Q,OperatorNode:()=>s.zX,atan:()=>a.rYl,lusolve:()=>a.nZk,phi:()=>a.U1u,createHelp:()=>aT.q,createStefanBoltzmann:()=>tv.zy,rationalize:()=>s.h$,acoth:()=>a.mZ7,isHelp:()=>o.gS,klitzingDependencies:()=>st,bitOrTransformDependencies:()=>tW,unaryMinus:()=>a.gBK,setSize:()=>a.SpT,create:()=>c9,createArrayNode:()=>em.W,createClone:()=>rs.s,setPowerset:()=>a.UHQ,IndexError:()=>u.d,createFloor:()=>eV.$,orDependencies:()=>oO,RangeNode:()=>s.Q4,createSackurTetrode:()=>tv.bz,derivativeDependencies:()=>ir,nullishTransformDependencies:()=>oA,complex:()=>a.faB,pi:()=>a.pi,rightArithShift:()=>a.$Kb,log1pDependencies:()=>sb,reshapeDependencies:()=>iq,thomsonCrossSectionDependencies:()=>cC,pinv:()=>a.oUd,smallerEq:()=>a.$9q,acotDependencies:()=>ee,column:()=>a.fiJ,dotPow:()=>a.WFY,detDependencies:()=>tl,createAcsc:()=>en.v,createMatrixClass:()=>m.w,createFunctionNode:()=>rQ.N,LOG2E:()=>a.QdK,createLOG10E:()=>ix.fi,xor:()=>a.I86,multiplyScalarDependencies:()=>e2,faraday:()=>a.nl4,createAsech:()=>eb.n,mad:()=>a.FmW,_NaN:()=>a.Jlw,planckTime:()=>a.b7H,asec:()=>a.f9Q,splitUnitDependencies:()=>ct,createCosh:()=>nD.q,createReducedPlanckConstant:()=>tv.y0,quantileSeqTransformDependencies:()=>o9,solveODEDependencies:()=>u5,createHasNumericValue:()=>aE.l,symbolicEqual:()=>s.RH,createGamma:()=>tA.M,coshDependencies:()=>nw,sort:()=>a.diJ,slu:()=>a.tok,createNullishTransform:()=>oN.Q,classicalElectronRadius:()=>a.irF,createUnitClass:()=>tm.d,createGravity:()=>tv.Tx,diag:()=>a.smy,schurDependencies:()=>sq,createCsc:()=>nI.Y,piDependencies:()=>oL,EDependencies:()=>cz,bohrRadius:()=>a.Au7,createSqrt:()=>np.R,mapTransformDependencies:()=>s0,createOct:()=>oE.R,typeOfDependencies:()=>a4,prod:()=>a._eU,printDependencies:()=>o0,coulombConstantDependencies:()=>nM,bohrMagnetonDependencies:()=>t2,corr:()=>a.PsA,trace:()=>a.uPA,schur:()=>a.epK,createTo:()=>cM.U,gravityDependencies:()=>aN,size:()=>a.EjY,createWienDisplacement:()=>tv.Lz,createPinv:()=>o$.w,IndexNodeDependencies:()=>rW,filterTransformDependencies:()=>al,rangeTransformDependencies:()=>us,setIsSubsetDependencies:()=>uH,transpose:()=>a.mgz,isBigInt:()=>o.sI,createMeanTransform:()=>s7.y,createPlanckConstant:()=>tv.Og,createSymbolicEqual:()=>cD.N,hypotDependencies:()=>aP,atan2:()=>a.FPz,all:()=>cX,createBin:()=>tR.O,planckChargeDependencies:()=>oG,_false:()=>a.PHr,createEfimovFactor:()=>tv.ez,Index:()=>a.jKy,createStirlingS2:()=>tO.w,invmodDependencies:()=>aY,OperatorNodeDependencies:()=>rX,createHelpClass:()=>aC.G,squeezeDependencies:()=>co,ResultSetDependencies:()=>tX,clone:()=>a.o8B,createQuantumOfCirculation:()=>tv._7,kron:()=>a.bBq,createSetSymDifference:()=>uJ.l,kronDependencies:()=>sn,createLeftShift:()=>sf.O,simplifyConstant:()=>s.aT,createFactorial:()=>tS.w,RelationalNodeDependencies:()=>r8,createGetMatrixDataType:()=>rf.C,isConditionalNode:()=>o.PO,dotDependencies:()=>tr,rydbergDependencies:()=>uS,version:()=>a.rEp,createRationalize:()=>uo.L,ArrayNodeDependencies:()=>eg,createBoltzmann:()=>tv.UK,varianceTransformDependencies:()=>c$,compareNaturalDependencies:()=>rB,createCot:()=>nN.v,createBitAnd:()=>tL.x,createIsFinite:()=>aX.S,sylvesterDependencies:()=>sR,createRangeNode:()=>r2.u,createExp:()=>i0.I,fermiCoupling:()=>a.NFB,parser:()=>s.K3,HelpDependencies:()=>aM,numberDependencies:()=>eR,createBohrRadius:()=>tv.cC,binDependencies:()=>tz,indexDependencies:()=>aR,catalan:()=>a.bX8,isBoundedDependencies:()=>rz,isSparseMatrix:()=>o.AF,kldivergence:()=>a.ucg,createMagneticFluxQuantum:()=>tv.DT,loschmidtDependencies:()=>sx,setUnionDependencies:()=>u0,createSinh:()=>u1.V,createIdentity:()=>e3.D,electronMassDependencies:()=>iQ,molarMassC12:()=>a.O90,sparse:()=>a.lMo,_null:()=>a.jwX,powDependencies:()=>th,createIndexTransform:()=>az.p,mean:()=>a.i2o,transposeDependencies:()=>nU,isBoolean:()=>o.Lm,createPhi:()=>ix.Ah,isNegative:()=>a.cIo,coulombDependencies:()=>nC,coth:()=>a.vwV,unit:()=>a.zAA,isSymbolNode:()=>o.li,createFermiCoupling:()=>tv.Dc,acsch:()=>a.dC_,BigNumberDependencies:()=>f,createPi:()=>ix.GD,createOperatorNode:()=>rK.r,subtractDependencies:()=>nh,unequalDependencies:()=>cq,lgamma:()=>a.ayJ,LN10:()=>a.I0I,createIndexNode:()=>rZ.r,acot:()=>a.ONU,cumsumDependencies:()=>nY,lyap:()=>a.pvw,createUnit:()=>a.Dqv,isBounded:()=>a.CtL,createTypeOf:()=>a8.o,equalScalar:()=>a.Lg8,subtractScalar:()=>a.hkw,createCompareNatural:()=>r_.b,createComposition:()=>nr.z,molarMassC12Dependencies:()=>ou,createEigs:()=>i$.f,asinhDependencies:()=>eA,_Infinity:()=>a.aNc,tan:()=>a.Mlm,ArrayNode:()=>s._7,createAccessorNode:()=>V.C,createMaxTransform:()=>s9.t,sechDependencies:()=>uB,identity:()=>a.D_O,rotateDependencies:()=>uD,deepEqualDependencies:()=>n0,createKron:()=>sr.l,matrixFromColumns:()=>a.dFU,createRotationMatrix:()=>uy.m,createAbs:()=>N.r,equalText:()=>a.UpA,ctranspose:()=>a.Ptl,hexDependencies:()=>a_,createErf:()=>iY.K,setMultiplicityDependencies:()=>uQ,diffDependencies:()=>iu,createFilterTransform:()=>ac.p,createNull:()=>ix.Er,ConditionalNode:()=>s.ht,createSylvester:()=>sI._,sqrtDependencies:()=>nf,createResolve:()=>n3.x,im:()=>a.im,RelationalNode:()=>s.od,createDet:()=>tc.k,createDivideScalar:()=>ej.Q,molarMass:()=>a.CSd,quantumOfCirculation:()=>a.cAv,reducedPlanckConstantDependencies:()=>uc,addScalarDependencies:()=>_,quantileSeqDependencies:()=>o8,createMad:()=>sG.p,FunctionAssignmentNode:()=>s.I9,distance:()=>a.IoC,createReshape:()=>ik.r,createBitOrTransform:()=>tZ.f,createRowTransform:()=>uA.J,vacuumImpedance:()=>a.gAZ,electronMass:()=>a.zMe,rationalizeDependencies:()=>uu,matrixFromRowsDependencies:()=>s5,combinations:()=>a.vjN,traceDependencies:()=>cB,unaryMinusDependencies:()=>tu,createConstantNode:()=>rL.b,rightLogShiftDependencies:()=>uv,subsetDependencies:()=>Q,bitAnd:()=>a.nfS,flatten:()=>a.Bqz,neutronMassDependencies:()=>oh,permutationsDependencies:()=>oR,compositionDependencies:()=>nn,oct:()=>a.zJI,createSech:()=>u_.g,createDotDivide:()=>ih.F,stirlingS2Dependencies:()=>tF,createDistance:()=>ip.G,cube:()=>a.KYz,createSparse:()=>u9.R,subset:()=>a.LEQ,columnTransformDependencies:()=>rC,rightLogShift:()=>a.BXq,csch:()=>a.u_e,isNegativeDependencies:()=>tD,compareText:()=>a.n6D,sqrt:()=>a.RZD,conjDependencies:()=>e6,isFunctionNode:()=>o.Px,createHartreeEnergy:()=>tv.oL,reviver:()=>s.eD,deepEqual:()=>a.bDM,createFreqz:()=>av.$,efimovFactor:()=>a.Qe0,flattenDependencies:()=>iA,conductanceQuantum:()=>a.jPu,createLN2:()=>ix.l7,inverseConductanceQuantum:()=>a.BBP,corrDependencies:()=>ny,createAtan2:()=>eT.J,polynomialRoot:()=>a.tpt,reshape:()=>a.tQQ,setSizeDependencies:()=>uY,nthRoot:()=>a.$Vg,createTrace:()=>c_.s,bellNumbersDependencies:()=>tB,createZpk2tf:()=>cJ.S,row:()=>a.nME,ArgumentsError:()=>l.X,hasNumericValue:()=>a.xr2,gravitationConstantDependencies:()=>aw,numeric:()=>a.sHn,crossDependencies:()=>nq,tanhDependencies:()=>cS,conductanceQuantumDependencies:()=>ns,factorial:()=>a.QnG,imDependencies:()=>iS,createNthRoots:()=>ov.s,createDiag:()=>ia.I,dot:()=>a.Omf,inverseConductanceQuantumDependencies:()=>aH,isIndexNode:()=>o.$I,largerDependencies:()=>tT,sech:()=>a.uPJ,nthRootsDependencies:()=>oy,createDot:()=>tt.Y,loschmidt:()=>a.aaT,zeros:()=>a.Ul9,createAddScalar:()=>F.w,createClassicalElectronRadius:()=>tv.WX,createDotPow:()=>iy.U,parse:()=>s.qg,bignumber:()=>a.miF,createAvogadro:()=>tv.Gj,ConditionalNodeDependencies:()=>rI,acothDependencies:()=>er,createFlatten:()=>iN.d,createBitNot:()=>tH.j,createPow:()=>td.V,multiplyScalar:()=>a.NyO,isZero:()=>a.beD,acsc:()=>a.J97,createMatrixFromRows:()=>s3.Z,isParenthesisNode:()=>o.tv,format:()=>a.GPZ,createPrint:()=>oX.q,createFractionClass:()=>b.z,createInverseConductanceQuantum:()=>tv.rg,ones:()=>a.SaS,qr:()=>a.qr,createFineStructure:()=>tv.I,maxTransformDependencies:()=>s6,createRandom:()=>o7.s,SQRT1_2:()=>a.ddC,isDenseMatrix:()=>o.zR,signDependencies:()=>iO,replacer:()=>a.$Uf,zerosDependencies:()=>H,createStdTransform:()=>cf.E,matrixFromColumnsDependencies:()=>iM,createNode:()=>E.R,equalScalarDependencies:()=>M,resolve:()=>s.hd,floor:()=>a.RIf,stefanBoltzmann:()=>a.ZL$,erf:()=>a.Y12,notDependencies:()=>eu,toBestDependencies:()=>cF,zpk2tfDependencies:()=>cK,mod:()=>a.ziu,compareNatural:()=>a.dkM,resizeDependencies:()=>up,rotationMatrix:()=>a.o8M,subtract:()=>a.ReH,createFft:()=>an.H,createSimplifyCore:()=>n9.x,asinh:()=>a.yHs,createMatrix:()=>B.u,larger:()=>a.yfX,AccessorNodeDependencies:()=>Z,createConj:()=>e9.x,derivative:()=>s.wx,fractionDependencies:()=>eq,lgammaDependencies:()=>sm,dotMultiplyDependencies:()=>iv,BlockNodeDependencies:()=>t1,atomicMass:()=>a.Mhd,createFibonacciHeapClass:()=>aa.B,createMultiplyScalar:()=>e1.J,isComplex:()=>o.Zd,sum:()=>a.czq,electricConstant:()=>a.GZl,createBitOr:()=>tQ.$,createPermutations:()=>oI.U,createElectricConstant:()=>tv.eb,createFunctionAssignmentNode:()=>rU.I,createSplitUnit:()=>ce.t,parserDependencies:()=>oq,magneticConstantDependencies:()=>sV,BigNumber:()=>a.gHh,bitNotDependencies:()=>tG,log10Dependencies:()=>sv,pow:()=>a.n7C,neutronMass:()=>a.SI4,planckConstant:()=>a.g9c,randomInt:()=>a.HO1,chain:()=>s.cy,acosDependencies:()=>Y,createFraction:()=>ek.l,createResultSet:()=>tK.O,orTransformDependencies:()=>o_,matrix:()=>a.UPj,createProd:()=>nT._,isMap:()=>o.jh,setDifference:()=>a._iM,createZeta:()=>cW.b,mapSlicesDependencies:()=>sY,SparseMatrixDependencies:()=>O,compareTextDependencies:()=>rk,createFix:()=>eW.Y,createSec:()=>uO.c,map:()=>a.TjK,isNumber:()=>o.Et,ifft:()=>a.KGM,tanDependencies:()=>cA,matrixFromFunction:()=>a.IZ4,createSize:()=>e7.A,unaryPlusDependencies:()=>nZ,createSubtract:()=>nd.t,usolveDependencies:()=>iL,createComplexClass:()=>d.z,evaluate:()=>s._3,createParenthesisNode:()=>r0.n,createCompareText:()=>rP.r,createMapSlicesTransform:()=>sJ._,createUsolve:()=>iz.p,hypot:()=>a.dYR,resize:()=>a.XRe,eigsDependencies:()=>iH,createAnd:()=>ec.i,setDistinctDependencies:()=>uL,createPlanckTime:()=>tv.TT,createLeafCount:()=>sl.C,cotDependencies:()=>nA,string:()=>a.YjP,LOG10EDependencies:()=>ss,createNot:()=>eo.m,createRelationalNode:()=>r5.G,boltzmann:()=>a.M85,det:()=>a.yT6,forEach:()=>a.jJl,LOG2EDependencies:()=>so,createTan:()=>cN.a,createWeakMixingAngle:()=>tv.qH,createNthRoot:()=>om.f,fft:()=>a.hVP,sqrtmDependencies:()=>cn,isZeroDependencies:()=>e4,createGravitationConstant:()=>tv.tP,typed:()=>a.nE2,concatDependencies:()=>L,resolveDependencies:()=>n5,createBitAndTransform:()=>tU.H,SQRT1_2Dependencies:()=>uC,or:()=>a.or,leftShift:()=>a.eSP,SQRT2Dependencies:()=>uM,planckConstantDependencies:()=>oQ,createMagneticConstant:()=>tv.Rd,Complex:()=>a.pr3,lsolveAllDependencies:()=>sA,AssignmentNode:()=>s.K,bitAndTransformDependencies:()=>t$,matrixFromRows:()=>a.$bG,sackurTetrode:()=>a.j59,createIm:()=>iE.z,ChainDependencies:()=>rr,isNaNDependencies:()=>a2,createSubset:()=>G.$,createToBest:()=>cO.A,setSymDifference:()=>a.du0,to:()=>a.to,intersectDependencies:()=>a$,createCsch:()=>nz.g,FibonacciHeapDependencies:()=>as,createGasConstant:()=>tv.Ik,madDependencies:()=>sQ,setIntersectDependencies:()=>uU,createAdd:()=>j.W,createSubsetTransform:()=>cv.R,sign:()=>a._SZ,LN2Dependencies:()=>sa,createBitXor:()=>tY.x,config:()=>i.$,createIndex:()=>aI.z,protonMassDependencies:()=>o3,createAndTransform:()=>ep.i,helpDependencies:()=>aO,isArrayNode:()=>o.gO,createBlockNode:()=>t0.E,bitNot:()=>a.FMv,diffTransformDependencies:()=>il,modeDependencies:()=>os,createLup:()=>sC.o,numericDependencies:()=>eL,createRe:()=>iB.W,equalDependencies:()=>q,createSecondRadiation:()=>tv.cr,fix:()=>a.Up4,createParserClass:()=>oB.m,forEachTransformDependencies:()=>ag,createNullish:()=>oD.w,minTransformDependencies:()=>oi,kldivergenceDependencies:()=>se,createInfinity:()=>ix.Xd,xgcd:()=>a.bU5,intersect:()=>a.y$5,FractionDependencies:()=>x,number:()=>a.aig,typedDependencies:()=>w,createCumSumTransform:()=>nJ.p,createMolarMass:()=>tv.NC,isBlockNode:()=>o.CD,createSort:()=>u8.V,nullish:()=>a.cl6,createComplex:()=>ne.X,createLog:()=>a9.h,createSqueeze:()=>cs.l,log:()=>a.Rm2,argDependencies:()=>eh,equalTextDependencies:()=>iW,getMatrixDataTypeDependencies:()=>rd,fermiCouplingDependencies:()=>i6,isAssignmentNode:()=>o.qM,divide:()=>a.Qrk,boolean:()=>a.zMY,isObjectWrappingMap:()=>o.uQ,zpk2tf:()=>a.K4A,createProtonMass:()=>tv.jh,unitDependencies:()=>cR,createFirstRadiation:()=>tv.qQ,sin:()=>a.F8e,complexDependencies:()=>nt,solveODE:()=>a.kMp,zeta:()=>a.Poe,createConcatTransform:()=>ni.V,avogadro:()=>a.m7d,columnDependencies:()=>rE,createMinTransform:()=>on.X,dotDivideDependencies:()=>im,ceil:()=>a.mkO,createUnitFunction:()=>cI.n,isUndefined:()=>o.b0,createCreateUnit:()=>nB.J,createHex:()=>aF.i,lsolveAll:()=>a.vNC,createCount:()=>nF.K,norm:()=>a.xbf,createLsolveAll:()=>sN.H,createImmutableDenseMatrixClass:()=>rl.r,permutations:()=>a.yW1,range:()=>a.y17,createCatalan:()=>t9.f,UnitDependencies:()=>tg,createPlanckCharge:()=>tv.aE,ComplexDependencies:()=>h,efimovFactorDependencies:()=>iw,filter:()=>a.pbD,isIndex:()=>o.nw,isResultSet:()=>o.eW,log1p:()=>a.Kko,logDependencies:()=>a6,bernoulliDependencies:()=>tk,addScalar:()=>a.G0T,smallerDependencies:()=>rc,createMap:()=>aJ.p,DenseMatrix:()=>a.JK5,compileDependencies:()=>r7,atan2Dependencies:()=>eO,createAcot:()=>X.C,Node:()=>s.bP,asin:()=>a.qRo,createIfft:()=>ak.C,createMolarPlanckConstant:()=>tv.hy,createXgcd:()=>aV.F,isNaN:()=>a.yrW,isPrimeDependencies:()=>a5,planckCharge:()=>a.WkS,createCoulomb:()=>tv.w$,polynomialRootDependencies:()=>oK,stdDependencies:()=>cp,sumDependencies:()=>ng,gammaDependencies:()=>tE,LOG10E:()=>a.RZC,createNumber:()=>eI.G,matrixFromFunctionDependencies:()=>s2,createFilter:()=>ao.H,planckTemperatureDependencies:()=>oW,createVersion:()=>ix.BB,createForEach:()=>ad.j,i:()=>a.i,createPolynomialRoot:()=>oJ.r,leftShiftDependencies:()=>sd,AssignmentNodeDependencies:()=>eS,maxDependencies:()=>s4,createUppercaseE:()=>ix.OL,isNull:()=>o.kZ,gcd:()=>a.p_i,createTrue:()=>ix.L7,bellNumbers:()=>a.yZD,fineStructureDependencies:()=>ap,createCbrt:()=>t7.q,SpaDependencies:()=>sS,createLargerEq:()=>ry.W,speedOfLight:()=>a.ZLl,createPartitionSelect:()=>sj.X,compareDependencies:()=>rF,createFormat:()=>eJ.I,pinvDependencies:()=>oH,Parser:()=>s.iX,quantumOfCirculationDependencies:()=>o6,multiplyDependencies:()=>ti,magneticConstant:()=>a.N95,isDate:()=>o.$P,tanh:()=>a.ymU,createAtan:()=>eC.X,cloneDependencies:()=>ro,meanTransformDependencies:()=>oe,reviverDependencies:()=>ud,createSin:()=>iI.T,lcm:()=>a.lJL,createBoolean:()=>t8.p,molarVolumeDependencies:()=>ol,identityDependencies:()=>e5,InfinityDependencies:()=>aj,quantileSeq:()=>a.hRg,rotate:()=>a.e$E,roundDependencies:()=>eH,createIsPrime:()=>a3.w,partitionSelectDependencies:()=>sU,squareDependencies:()=>ca,createIsNaN:()=>a1.Y,round:()=>a.LIG,std:()=>a.wiE,createMax:()=>s8.p,equal:()=>a.LCg,weakMixingAngle:()=>a.IYe,Unit:()=>a.NfE,asecDependencies:()=>ey,isRelationalNode:()=>o.iu,isIntegerDependencies:()=>R,largerEq:()=>a.I7f,MatrixDependencies:()=>g,createRow:()=>uw.R,createIsNumeric:()=>eX.y,sqrtm:()=>a.ooS,createTyped:()=>D.B,asechDependencies:()=>ex,createThomsonCrossSection:()=>tv.wp,tau:()=>a.FA6,ConstantNodeDependencies:()=>rj,deuteronMass:()=>a.D3g,isObject:()=>o.Gv,createSign:()=>iT.m,booleanDependencies:()=>t4,smaller:()=>a.dL7,createRydberg:()=>tv.QE,acschDependencies:()=>es,createReviver:()=>uf.m,createDenseMatrixClass:()=>v.j,createDerivative:()=>it.s,planckLength:()=>a.ETO,SymbolNode:()=>s.Lz,phiDependencies:()=>oz,ObjectNode:()=>s.Kv,createIsPositive:()=>rg.q,createPrintTransform:()=>o1.Q,bitAndDependencies:()=>tj,createKlitzing:()=>tv.$L,abs:()=>a.tnl,createCombinationsWithRep:()=>rM.Q,createSimplify:()=>n7.U,createChain:()=>rn.U,createDiff:()=>io.i,isFunctionAssignmentNode:()=>o.m2,xgcdDependencies:()=>aZ,createEqualScalar:()=>C.p,LN10Dependencies:()=>si,createSetCartesian:()=>uk.v,isCollection:()=>o.P3,createPlanckLength:()=>tv.qU,fineStructure:()=>a.GVI,classicalElectronRadiusDependencies:()=>ra,createRotate:()=>ux.S,planckMassDependencies:()=>oZ,simplifyConstantDependencies:()=>n4,createNuclearMagneton:()=>tv.EE,createHypot:()=>aB.r,isConstantNode:()=>o.BA,lupDependencies:()=>sM,composition:()=>a.RG1,createMedian:()=>s$.h,cbrtDependencies:()=>re,createNumeric:()=>ez.y,protonMass:()=>a.pIl,isPrime:()=>a.A59,createUsolveAll:()=>ij.m,bitOr:()=>a.puf,modDependencies:()=>aQ,cbrt:()=>a._nN,splitUnit:()=>a.hg5,square:()=>a.EwI,createZeros:()=>$.I,createOr:()=>oT.M,combinationsWithRepDependencies:()=>rT,createLog10:()=>sg.e,expmDependencies:()=>i3,median:()=>a.JZy,magneticFluxQuantumDependencies:()=>sZ,IndexNode:()=>s.Do,createCos:()=>nb.o,lsolve:()=>a.IWu,Fraction:()=>a.fwM,ParserDependencies:()=>oP,createSymbolNode:()=>rH.F,cubeDependencies:()=>nQ,createMod:()=>aG.n,dotMultiply:()=>a.KQr,isObjectNode:()=>o.GJ,reDependencies:()=>iP,createSetDistinct:()=>uz.Z,usolveAll:()=>a.y3r,re:()=>a.re,isPositiveDependencies:()=>rv,randomDependencies:()=>ue,createXor:()=>cV.Y,sortDependencies:()=>u4,PIDependencies:()=>cL,createMatrixFromColumns:()=>iC.z,gcdDependencies:()=>aD,secondRadiation:()=>a.iuU,SparseMatrix:()=>a.Iln,createExpm:()=>i2.H,sparseDependencies:()=>u6,usolveAllDependencies:()=>iU,createCompare:()=>rO.m,createKldivergence:()=>a7.u,LN2:()=>a.XEz,createElectronMass:()=>tv.dd,simplifyDependencies:()=>ie,largerEqDependencies:()=>rb,freqzDependencies:()=>ay,createResize:()=>ul.B,createSetDifference:()=>uI.e,createLog1p:()=>sy.s,createQr:()=>iF.K,createUnequal:()=>ck.K,unaryPlus:()=>a.WOv,createQuantileSeqTransform:()=>o4.b,dotPowDependencies:()=>ib,cosDependencies:()=>nx,atanhDependencies:()=>e_,createLsolve:()=>sD.i,isNumericDependencies:()=>e0,minDependencies:()=>or,combinationsDependencies:()=>tN,isPartitionedMap:()=>o.aZ,cumsumTransformDependencies:()=>nK,createAssignmentNode:()=>eE.y,createIntersect:()=>aU.s,planckLengthDependencies:()=>oV,molarPlanckConstant:()=>a.ZQO,setIsSubset:()=>a.BqJ,createElementaryCharge:()=>tv.v2,createRangeTransform:()=>ua.G,isArray:()=>o.cy,cos:()=>a.gnS,tauDependencies:()=>ar,createSetMultiplicity:()=>uG.C,hartreeEnergyDependencies:()=>aA,createRound:()=>e$.B,createSchur:()=>sk.u,createIsInteger:()=>I.r,avogadroDependencies:()=>tb,bitOrDependencies:()=>tV,combinationsWithRep:()=>a.I5N,createMin:()=>ot.L,createCoulombConstant:()=>tv.e0,expDependencies:()=>i1,help:()=>s.yj,isFinite:()=>a.MIs,normDependencies:()=>sP,simplify:()=>s.CR,typeOf:()=>a.QPs,mode:()=>a.MqS,trueDependencies:()=>cP,e:()=>a.e,speedOfLightDependencies:()=>u7,random:()=>a.yTv,wienDisplacement:()=>a.BSO,diagDependencies:()=>is,fixDependencies:()=>eY,createBernoulli:()=>tP.x,concatTransformDependencies:()=>na,gravity:()=>a.fpm,rangeDependencies:()=>rN,bignumberDependencies:()=>eP,bitXorDependencies:()=>tJ,conj:()=>a.xJb,createAcsch:()=>ea.V,createDotMultiply:()=>ig.S,createAcosh:()=>J.B,isChain:()=>o.o_,createIsBounded:()=>rR.c,createConcat:()=>z.z,faradayDependencies:()=>i9,isFunction:()=>o.Tn,createEqual:()=>k.X,createNaN:()=>ix.SV,ResultSet:()=>a.A3A,eigs:()=>a.Ros,createInvmod:()=>aW.o,randomIntDependencies:()=>ur,ParenthesisNode:()=>s.JL,bin:()=>a.e5v,FunctionAssignmentNodeDependencies:()=>r$,freqz:()=>a.ZR8,setSymDifferenceDependencies:()=>uK,createUnaryPlus:()=>nV.e,xorDependencies:()=>cZ,atomicMassDependencies:()=>ty,createAtomicMass:()=>tv.Kw,createAsin:()=>eD.I,arg:()=>a.JR0,klitzing:()=>a.DTk,RangeNodeDependencies:()=>r3,createAsinh:()=>eN.Q,createBellNumbers:()=>t_.e,gamma:()=>a.uN6,stdTransformDependencies:()=>cd,isRangeNode:()=>o.Ye,acosh:()=>a.FqL,createIsZero:()=>e8.L,factory:()=>c2.P9,multinomial:()=>a.OjQ,createCoth:()=>nE.$,cumsum:()=>a.rCv,replacerDependencies:()=>n2,usolve:()=>a.F$N,isRegExp:()=>o.gd,cross:()=>a.$An,createSetPowerset:()=>uV.Y,createSqrtm:()=>cr.y,hartreeEnergy:()=>a.ykU,isFiniteDependencies:()=>a0,min:()=>a.jkA,createNeutronMass:()=>tv.Wq,diff:()=>a.Ui2,createForEachTransform:()=>am.D,divideScalarDependencies:()=>eU,molarPlanckConstantDependencies:()=>oc,bernoulli:()=>a.X8j,thomsonCrossSection:()=>a.Ml9,createSQRT1_2:()=>ix.j2,wienDisplacementDependencies:()=>cQ,andDependencies:()=>el,createSquare:()=>ci.G,print:()=>a.yyV,ctransposeDependencies:()=>nH,lup:()=>a._bA,Chain:()=>s.sW,createMultiply:()=>tn.F,createSpaClass:()=>sE.Z,createColumnTransform:()=>rS.B,Matrix:()=>a.uqu,cschDependencies:()=>nL,createLOG2E:()=>ix.C8,createLoschmidt:()=>tv.Cc,createPickRandom:()=>oj.B,toBest:()=>a.mNb,createBigNumberClass:()=>p.g,rydberg:()=>a.oC_,chainDependencies:()=>ri,ifftDependencies:()=>aq,createString:()=>cm.I,isRange:()=>o._Z,magneticFluxQuantum:()=>a.Db7,pickRandom:()=>a.BBI,squeeze:()=>a.r2V,cscDependencies:()=>nR,bitXor:()=>a.hCf,and:()=>a.Uo6,fftDependencies:()=>ai,createObjectNode:()=>rY.Q,invmod:()=>a.U5$,index:()=>a.Pe0,firstRadiation:()=>a.OsG,multinomialDependencies:()=>of,BlockNode:()=>s.ub,createTanh:()=>cE.I,subtractScalarDependencies:()=>ts,stefanBoltzmannDependencies:()=>ch,createUnitDependencies:()=>nP,createSimplifyConstant:()=>n8.E,createPlanckMass:()=>tv.cn,divideScalar:()=>a.Yly,floorDependencies:()=>eZ,simplifyCoreDependencies:()=>n6,mapSlices:()=>a.MOy,lsolveDependencies:()=>sw,createTau:()=>ix.hI,NodeDependencies:()=>S,createParse:()=>r4.U,expm:()=>a.BJ6,molarVolume:()=>a.ONk,sinh:()=>a.L0l,createCross:()=>nk.x,factorialDependencies:()=>tC,weakMixingAngleDependencies:()=>cG,createCeil:()=>eG.K,createParser:()=>ok.C,createConductanceQuantum:()=>tv.VK,apply:()=>a.Bb6,cothDependencies:()=>nS,createCube:()=>nG.Y,getMatrixDataType:()=>a.Ob2,addDependencies:()=>U,evaluateDependencies:()=>iX,absDependencies:()=>A,createFalse:()=>ix.i0,exp:()=>a.oNF,createVarianceTransform:()=>cU.M,createMolarVolume:()=>tv.u5,createDiffTransform:()=>ic.S,lcmDependencies:()=>sc,electricConstantDependencies:()=>iG,createMultinomial:()=>op.k,coulombConstant:()=>a.OIw,createAsec:()=>ev.x,divideDependencies:()=>nu,gasConstant:()=>a.UC4,sluDependencies:()=>sO,DenseMatrixDependencies:()=>y,createBigint:()=>tq.S,invDependencies:()=>tf,createColumn:()=>rA.H,createCumSum:()=>nW.b,compare:()=>a.UDF,createIndexClass:()=>rh.T,createChainClass:()=>rt.k,createInv:()=>tp.K,createTranspose:()=>nj.M,nullDependencies:()=>ox,elementaryCharge:()=>a.xFU,expm1Dependencies:()=>i8,formatDependencies:()=>eK,setCartesianDependencies:()=>uq,count:()=>a.U9N,createLarger:()=>tM.o,isString:()=>o.Kg,isAccessorNode:()=>o.AS,hasNumericValueDependencies:()=>aS,createSparseMatrixClass:()=>T.g,nthRoots:()=>a.c2c,catalanDependencies:()=>t6,createSumTransform:()=>cb.o,setPowersetDependencies:()=>uZ,planckMass:()=>a.SI8,simplifyCore:()=>s.lA,Range:()=>a.Q6t,andTransformDependencies:()=>ef,cot:()=>a.n15,isFraction:()=>o.fU,prodDependencies:()=>nO,NaNDependencies:()=>od,createCombinations:()=>tw.p,log2Dependencies:()=>at,createLgamma:()=>sh.k,gravitationConstant:()=>a.NpQ,add:()=>a.WQq,createCorr:()=>nv.r,createGcd:()=>ax.p,createArg:()=>ed.P,acos:()=>a.HQu,log10:()=>a.YLo,mapDependencies:()=>aK,nuclearMagneton:()=>a.Ium,lusolveDependencies:()=>s_,multiply:()=>a.lwT,concat:()=>a.xWs,createSlu:()=>sT.H,createMean:()=>nc.s,reducedPlanckConstant:()=>a.mYI,createSQRT2:()=>ix.RJ,onesDependencies:()=>oM,createDivide:()=>no.G,isOperatorNode:()=>o.$$,setDistinct:()=>a.nel,FunctionNode:()=>s.FE,createEvaluate:()=>iK.u,elementaryChargeDependencies:()=>iV,FunctionNodeDependencies:()=>rV,createReplacer:()=>n1.h,createSubtractScalar:()=>ta.f,createVacuumImpedance:()=>tv.AW,bohrRadiusDependencies:()=>t3,iDependencies:()=>i7,fraction:()=>a.zO$,isUnit:()=>o.vO,not:()=>a.AU6,log2:()=>a.p67,createIsNegative:()=>tx.A,ParenthesisNodeDependencies:()=>r1,createLN10:()=>ix.ad,createSolveODE:()=>u3.c,ConstantNode:()=>s.zf,createExpm1:()=>i5.U,inv:()=>a.WCD,subsetTransformDependencies:()=>cy,createLcm:()=>su.D,createSetIsSubset:()=>u$.P,createLog2:()=>ae.j,createE:()=>ix.UN,createI:()=>ix.GM,createUnaryMinus:()=>to.e,rightArithShiftDependencies:()=>um});var n={};r.r(n),r.d(n,{createAbs:()=>N.r,createAccessorNode:()=>V.C,createAcos:()=>W.J,createAcosh:()=>J.B,createAcot:()=>X.C,createAcoth:()=>et.g,createAcsc:()=>en.v,createAcsch:()=>ea.V,createAdd:()=>j.W,createAddScalar:()=>F.w,createAnd:()=>ec.i,createAndTransform:()=>ep.i,createArg:()=>ed.P,createArrayNode:()=>em.W,createAsec:()=>ev.x,createAsech:()=>eb.n,createAsin:()=>eD.I,createAsinh:()=>eN.Q,createAssignmentNode:()=>eE.y,createAtan:()=>eC.X,createAtan2:()=>eT.J,createAtanh:()=>eF.v,createAtomicMass:()=>tv.Kw,createAvogadro:()=>tv.Gj,createBellNumbers:()=>t_.e,createBernoulli:()=>tP.x,createBigNumberClass:()=>p.g,createBigint:()=>tq.S,createBignumber:()=>eB._,createBin:()=>tR.O,createBitAnd:()=>tL.x,createBitAndTransform:()=>tU.H,createBitNot:()=>tH.j,createBitOr:()=>tQ.$,createBitOrTransform:()=>tZ.f,createBitXor:()=>tY.x,createBlockNode:()=>t0.E,createBohrMagneton:()=>tv.XS,createBohrRadius:()=>tv.cC,createBoltzmann:()=>tv.UK,createBoolean:()=>t8.p,createCatalan:()=>t9.f,createCbrt:()=>t7.q,createCeil:()=>eG.K,createChain:()=>rn.U,createChainClass:()=>rt.k,createClassicalElectronRadius:()=>tv.WX,createClone:()=>rs.s,createColumn:()=>rA.H,createColumnTransform:()=>rS.B,createCombinations:()=>tw.p,createCombinationsWithRep:()=>rM.Q,createCompare:()=>rO.m,createCompareNatural:()=>r_.b,createCompareText:()=>rP.r,createCompile:()=>r6.Q,createComplex:()=>ne.X,createComplexClass:()=>d.z,createComposition:()=>nr.z,createConcat:()=>z.z,createConcatTransform:()=>ni.V,createConditionalNode:()=>rq.h,createConductanceQuantum:()=>tv.VK,createConj:()=>e9.x,createConstantNode:()=>rL.b,createCorr:()=>nv.r,createCos:()=>nb.o,createCosh:()=>nD.q,createCot:()=>nN.v,createCoth:()=>nE.$,createCoulomb:()=>tv.w$,createCoulombConstant:()=>tv.e0,createCount:()=>nF.K,createCreateUnit:()=>nB.J,createCross:()=>nk.x,createCsc:()=>nI.Y,createCsch:()=>nz.g,createCtranspose:()=>n$.d,createCube:()=>nG.Y,createCumSum:()=>nW.b,createCumSumTransform:()=>nJ.p,createDeepEqual:()=>nX.H,createDenseMatrixClass:()=>v.j,createDerivative:()=>it.s,createDet:()=>tc.k,createDeuteronMass:()=>tv.zr,createDiag:()=>ia.I,createDiff:()=>io.i,createDiffTransform:()=>ic.S,createDistance:()=>ip.G,createDivide:()=>no.G,createDivideScalar:()=>ej.Q,createDot:()=>tt.Y,createDotDivide:()=>ih.F,createDotMultiply:()=>ig.S,createDotPow:()=>iy.U,createE:()=>ix.UN,createEfimovFactor:()=>tv.ez,createEigs:()=>i$.f,createElectricConstant:()=>tv.eb,createElectronMass:()=>tv.dd,createElementaryCharge:()=>tv.v2,createEqual:()=>k.X,createEqualScalar:()=>C.p,createEqualText:()=>iZ.a,createErf:()=>iY.K,createEvaluate:()=>iK.u,createExp:()=>i0.I,createExpm:()=>i2.H,createExpm1:()=>i5.U,createFactorial:()=>tS.w,createFalse:()=>ix.i0,createFaraday:()=>tv.Dp,createFermiCoupling:()=>tv.Dc,createFft:()=>an.H,createFibonacciHeapClass:()=>aa.B,createFilter:()=>ao.H,createFilterTransform:()=>ac.p,createFineStructure:()=>tv.I,createFirstRadiation:()=>tv.qQ,createFix:()=>eW.Y,createFlatten:()=>iN.d,createFloor:()=>eV.$,createForEach:()=>ad.j,createForEachTransform:()=>am.D,createFormat:()=>eJ.I,createFraction:()=>ek.l,createFractionClass:()=>b.z,createFreqz:()=>av.$,createFunctionAssignmentNode:()=>rU.I,createFunctionNode:()=>rQ.N,createGamma:()=>tA.M,createGasConstant:()=>tv.Ik,createGcd:()=>ax.p,createGetMatrixDataType:()=>rf.C,createGravitationConstant:()=>tv.tP,createGravity:()=>tv.Tx,createHartreeEnergy:()=>tv.oL,createHasNumericValue:()=>aE.l,createHelp:()=>aT.q,createHelpClass:()=>aC.G,createHex:()=>aF.i,createHypot:()=>aB.r,createI:()=>ix.GM,createIdentity:()=>e3.D,createIfft:()=>ak.C,createIm:()=>iE.z,createImmutableDenseMatrixClass:()=>rl.r,createIndex:()=>aI.z,createIndexClass:()=>rh.T,createIndexNode:()=>rZ.r,createIndexTransform:()=>az.p,createInfinity:()=>ix.Xd,createIntersect:()=>aU.s,createInv:()=>tp.K,createInverseConductanceQuantum:()=>tv.rg,createInvmod:()=>aW.o,createIsBounded:()=>rR.c,createIsFinite:()=>aX.S,createIsInteger:()=>I.r,createIsNaN:()=>a1.Y,createIsNegative:()=>tx.A,createIsNumeric:()=>eX.y,createIsPositive:()=>rg.q,createIsPrime:()=>a3.w,createIsZero:()=>e8.L,createKldivergence:()=>a7.u,createKlitzing:()=>tv.$L,createKron:()=>sr.l,createLN10:()=>ix.ad,createLN2:()=>ix.l7,createLOG10E:()=>ix.fi,createLOG2E:()=>ix.C8,createLarger:()=>tM.o,createLargerEq:()=>ry.W,createLcm:()=>su.D,createLeafCount:()=>sl.C,createLeftShift:()=>sf.O,createLgamma:()=>sh.k,createLog:()=>a9.h,createLog10:()=>sg.e,createLog1p:()=>sy.s,createLog2:()=>ae.j,createLoschmidt:()=>tv.Cc,createLsolve:()=>sD.i,createLsolveAll:()=>sN.H,createLup:()=>sC.o,createLusolve:()=>sF.b,createLyap:()=>sz.L,createMad:()=>sG.p,createMagneticConstant:()=>tv.Rd,createMagneticFluxQuantum:()=>tv.DT,createMap:()=>aJ.p,createMapSlices:()=>sW.Q,createMapSlicesTransform:()=>sJ._,createMapTransform:()=>sX.t,createMatrix:()=>B.u,createMatrixClass:()=>m.w,createMatrixFromColumns:()=>iC.z,createMatrixFromFunction:()=>s1.s,createMatrixFromRows:()=>s3.Z,createMax:()=>s8.p,createMaxTransform:()=>s9.t,createMean:()=>nc.s,createMeanTransform:()=>s7.y,createMedian:()=>s$.h,createMin:()=>ot.L,createMinTransform:()=>on.X,createMod:()=>aG.n,createMode:()=>oa.E,createMolarMass:()=>tv.NC,createMolarMassC12:()=>tv.KV,createMolarPlanckConstant:()=>tv.hy,createMolarVolume:()=>tv.u5,createMultinomial:()=>op.k,createMultiply:()=>tn.F,createMultiplyScalar:()=>e1.J,createNaN:()=>ix.SV,createNeutronMass:()=>tv.Wq,createNode:()=>E.R,createNorm:()=>sB.X,createNot:()=>eo.m,createNthRoot:()=>om.f,createNthRoots:()=>ov.s,createNuclearMagneton:()=>tv.EE,createNull:()=>ix.Er,createNullish:()=>oD.w,createNullishTransform:()=>oN.Q,createNumber:()=>eI.G,createNumeric:()=>ez.y,createObjectNode:()=>rY.Q,createOct:()=>oE.R,createOnes:()=>oC.A,createOperatorNode:()=>rK.r,createOr:()=>oT.M,createOrTransform:()=>oF.O,createParenthesisNode:()=>r0.n,createParse:()=>r4.U,createParser:()=>ok.C,createParserClass:()=>oB.m,createPartitionSelect:()=>sj.X,createPermutations:()=>oI.U,createPhi:()=>ix.Ah,createPi:()=>ix.GD,createPickRandom:()=>oj.B,createPinv:()=>o$.w,createPlanckCharge:()=>tv.aE,createPlanckConstant:()=>tv.Og,createPlanckLength:()=>tv.qU,createPlanckMass:()=>tv.cn,createPlanckTemperature:()=>tv._F,createPlanckTime:()=>tv.TT,createPolynomialRoot:()=>oJ.r,createPow:()=>td.V,createPrint:()=>oX.q,createPrintTransform:()=>o1.Q,createProd:()=>nT._,createProtonMass:()=>tv.jh,createQr:()=>iF.K,createQuantileSeq:()=>o5.D,createQuantileSeqTransform:()=>o4.b,createQuantumOfCirculation:()=>tv._7,createRandom:()=>o7.s,createRandomInt:()=>ut.d,createRange:()=>rw.S,createRangeClass:()=>un.U,createRangeNode:()=>r2.u,createRangeTransform:()=>ua.G,createRationalize:()=>uo.L,createRe:()=>iB.W,createReducedPlanckConstant:()=>tv.y0,createRelationalNode:()=>r5.G,createReplacer:()=>n1.h,createReshape:()=>ik.r,createResize:()=>ul.B,createResolve:()=>n3.x,createResultSet:()=>tK.O,createReviver:()=>uf.m,createRightArithShift:()=>uh.f,createRightLogShift:()=>ug.n,createRotate:()=>ux.S,createRotationMatrix:()=>uy.m,createRound:()=>e$.B,createRow:()=>uw.R,createRowTransform:()=>uA.J,createRydberg:()=>tv.QE,createSQRT1_2:()=>ix.j2,createSQRT2:()=>ix.RJ,createSackurTetrode:()=>tv.bz,createSchur:()=>sk.u,createSec:()=>uO.c,createSech:()=>u_.g,createSecondRadiation:()=>tv.cr,createSetCartesian:()=>uk.v,createSetDifference:()=>uI.e,createSetDistinct:()=>uz.Z,createSetIntersect:()=>uj.e,createSetIsSubset:()=>u$.P,createSetMultiplicity:()=>uG.C,createSetPowerset:()=>uV.Y,createSetSize:()=>uW.G,createSetSymDifference:()=>uJ.l,createSetUnion:()=>uX.s,createSign:()=>iT.m,createSimplify:()=>n7.U,createSimplifyConstant:()=>n8.E,createSimplifyCore:()=>n9.x,createSin:()=>iI.T,createSinh:()=>u1.V,createSize:()=>e7.A,createSlu:()=>sT.H,createSmaller:()=>ru.p,createSmallerEq:()=>rx.V,createSolveODE:()=>u3.c,createSort:()=>u8.V,createSpaClass:()=>sE.Z,createSparse:()=>u9.R,createSparseMatrixClass:()=>T.g,createSpeedOfLight:()=>tv.Lg,createSplitUnit:()=>ce.t,createSqrt:()=>np.R,createSqrtm:()=>cr.y,createSquare:()=>ci.G,createSqueeze:()=>cs.l,createStd:()=>cl.y,createStdTransform:()=>cf.E,createStefanBoltzmann:()=>tv.zy,createStirlingS2:()=>tO.w,createString:()=>cm.I,createSubset:()=>G.$,createSubsetTransform:()=>cv.R,createSubtract:()=>nd.t,createSubtractScalar:()=>ta.f,createSum:()=>nm.i,createSumTransform:()=>cb.o,createSylvester:()=>sI._,createSymbolNode:()=>rH.F,createSymbolicEqual:()=>cD.N,createTan:()=>cN.a,createTanh:()=>cE.I,createTau:()=>ix.hI,createThomsonCrossSection:()=>tv.wp,createTo:()=>cM.U,createToBest:()=>cO.A,createTrace:()=>c_.s,createTranspose:()=>nj.M,createTrue:()=>ix.L7,createTypeOf:()=>a8.o,createTyped:()=>D.B,createUnaryMinus:()=>to.e,createUnaryPlus:()=>nV.e,createUnequal:()=>ck.K,createUnitClass:()=>tm.d,createUnitFunction:()=>cI.n,createUppercaseE:()=>ix.OL,createUppercasePi:()=>ix.ol,createUsolve:()=>iz.p,createUsolveAll:()=>ij.m,createVacuumImpedance:()=>tv.AW,createVariance:()=>cu.A,createVarianceTransform:()=>cU.M,createVersion:()=>ix.BB,createWeakMixingAngle:()=>tv.qH,createWienDisplacement:()=>tv.Lz,createXgcd:()=>aV.F,createXor:()=>cV.Y,createZeros:()=>$.I,createZeta:()=>cW.b,createZpk2tf:()=>cJ.S});var i=r(20972),a=r(5900),s=r(43886),o=r(14943),u=r(6636),c=r(71380),l=r(60928),p=r(33557),f={createBigNumberClass:p.g},d=r(3937),h={createComplexClass:d.z},m=r(62205),g={createMatrixClass:m.w},v=r(35520),y={MatrixDependencies:g,createDenseMatrixClass:v.j},b=r(30581),x={createFractionClass:b.z},D=r(10434),w={BigNumberDependencies:f,ComplexDependencies:h,DenseMatrixDependencies:y,FractionDependencies:x,createTyped:D.B},N=r(93935),A={typedDependencies:w,createAbs:N.r},E=r(72613),S={createNode:E.R},C=r(44834),M={typedDependencies:w,createEqualScalar:C.p},T=r(38801),O={MatrixDependencies:g,equalScalarDependencies:M,typedDependencies:w,createSparseMatrixClass:T.g},F=r(40340),_={typedDependencies:w,createAddScalar:F.w},B=r(10794),P={DenseMatrixDependencies:y,MatrixDependencies:g,SparseMatrixDependencies:O,typedDependencies:w,createMatrix:B.u},k=r(80650),q={DenseMatrixDependencies:y,SparseMatrixDependencies:O,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createEqual:k.X},I=r(50258),R={equalDependencies:q,typedDependencies:w,createIsInteger:I.r},z=r(51760),L={isIntegerDependencies:R,matrixDependencies:P,typedDependencies:w,createConcat:z.z},j=r(57896),U={DenseMatrixDependencies:y,SparseMatrixDependencies:O,addScalarDependencies:_,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createAdd:j.W},$=r(87989),H={BigNumberDependencies:f,matrixDependencies:P,typedDependencies:w,createZeros:$.I},G=r(63790),Q={addDependencies:U,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createSubset:G.$},V=r(59126),Z={NodeDependencies:S,subsetDependencies:Q,createAccessorNode:V.C},W=r(72800),Y={ComplexDependencies:h,typedDependencies:w,createAcos:W.J},J=r(80122),K={ComplexDependencies:h,typedDependencies:w,createAcosh:J.B},X=r(32181),ee={BigNumberDependencies:f,typedDependencies:w,createAcot:X.C},et=r(24145),er={BigNumberDependencies:f,ComplexDependencies:h,typedDependencies:w,createAcoth:et.g},en=r(95636),ei={BigNumberDependencies:f,ComplexDependencies:h,typedDependencies:w,createAcsc:en.v},ea=r(21158),es={BigNumberDependencies:f,typedDependencies:w,createAcsch:ea.V},eo=r(19239),eu={typedDependencies:w,createNot:eo.m},ec=r(95495),el={concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,notDependencies:eu,typedDependencies:w,zerosDependencies:H,createAnd:ec.i},ep=r(47492),ef={addDependencies:U,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,notDependencies:eu,typedDependencies:w,zerosDependencies:H,createAndTransform:ep.i},ed=r(20165),eh={typedDependencies:w,createArg:ed.P},em=r(41668),eg={NodeDependencies:S,createArrayNode:em.W},ev=r(61998),ey={BigNumberDependencies:f,ComplexDependencies:h,typedDependencies:w,createAsec:ev.x},eb=r(99444),ex={BigNumberDependencies:f,ComplexDependencies:h,typedDependencies:w,createAsech:eb.n},eD=r(35877),ew={ComplexDependencies:h,typedDependencies:w,createAsin:eD.I},eN=r(33601),eA={typedDependencies:w,createAsinh:eN.Q},eE=r(73607),eS={matrixDependencies:P,NodeDependencies:S,subsetDependencies:Q,createAssignmentNode:eE.y},eC=r(51584),eM={typedDependencies:w,createAtan:eC.X},eT=r(94472),eO={BigNumberDependencies:f,DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createAtan2:eT.J},eF=r(88954),e_={ComplexDependencies:h,typedDependencies:w,createAtanh:eF.v},eB=r(61300),eP={BigNumberDependencies:f,typedDependencies:w,createBignumber:eB._},ek=r(75654),eq={FractionDependencies:x,typedDependencies:w,createFraction:ek.l},eI=r(63417),eR={typedDependencies:w,createNumber:eI.G},ez=r(56787),eL={bignumberDependencies:eP,fractionDependencies:eq,numberDependencies:eR,createNumeric:ez.y},ej=r(93170),eU={numericDependencies:eL,typedDependencies:w,createDivideScalar:ej.Q},e$=r(48935),eH={BigNumberDependencies:f,DenseMatrixDependencies:y,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createRound:e$.B},eG=r(52402),eQ={DenseMatrixDependencies:y,equalScalarDependencies:M,matrixDependencies:P,roundDependencies:eH,typedDependencies:w,zerosDependencies:H,createCeil:eG.K},eV=r(54449),eZ={DenseMatrixDependencies:y,equalScalarDependencies:M,matrixDependencies:P,roundDependencies:eH,typedDependencies:w,zerosDependencies:H,createFloor:eV.$},eW=r(8808),eY={ComplexDependencies:h,DenseMatrixDependencies:y,ceilDependencies:eQ,equalScalarDependencies:M,floorDependencies:eZ,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createFix:eW.Y},eJ=r(80067),eK={typedDependencies:w,createFormat:eJ.I},eX=r(32547),e0={typedDependencies:w,createIsNumeric:eX.y},e1=r(43947),e2={typedDependencies:w,createMultiplyScalar:e1.J},e3=r(95310),e5={BigNumberDependencies:f,DenseMatrixDependencies:y,SparseMatrixDependencies:O,matrixDependencies:P,typedDependencies:w,createIdentity:e3.D},e8=r(27844),e4={equalScalarDependencies:M,typedDependencies:w,createIsZero:e8.L},e9=r(59491),e6={typedDependencies:w,createConj:e9.x},e7=r(28901),te={typedDependencies:w,createSize:e7.A},tt=r(99425),tr={addScalarDependencies:_,conjDependencies:e6,multiplyScalarDependencies:e2,sizeDependencies:te,typedDependencies:w,createDot:tt.Y},tn=r(42639),ti={addScalarDependencies:_,dotDependencies:tr,equalScalarDependencies:M,matrixDependencies:P,multiplyScalarDependencies:e2,typedDependencies:w,createMultiply:tn.F},ta=r(67911),ts={typedDependencies:w,createSubtractScalar:ta.f},to=r(31670),tu={typedDependencies:w,createUnaryMinus:to.e},tc=r(65547),tl={divideScalarDependencies:eU,isZeroDependencies:e4,matrixDependencies:P,multiplyDependencies:ti,subtractScalarDependencies:ts,typedDependencies:w,unaryMinusDependencies:tu,createDet:tc.k},tp=r(37429),tf={absDependencies:A,addScalarDependencies:_,detDependencies:tl,divideScalarDependencies:eU,identityDependencies:e5,matrixDependencies:P,multiplyDependencies:ti,typedDependencies:w,unaryMinusDependencies:tu,createInv:tp.K},td=r(42601),th={ComplexDependencies:h,fractionDependencies:eq,identityDependencies:e5,invDependencies:tf,matrixDependencies:P,multiplyDependencies:ti,numberDependencies:eR,typedDependencies:w,createPow:td.V},tm=r(2783),tg={BigNumberDependencies:f,ComplexDependencies:h,FractionDependencies:x,absDependencies:A,addScalarDependencies:_,divideScalarDependencies:eU,equalDependencies:q,fixDependencies:eY,formatDependencies:eK,isNumericDependencies:e0,multiplyScalarDependencies:e2,numberDependencies:eR,powDependencies:th,roundDependencies:eH,subtractScalarDependencies:ts,createUnitClass:tm.d},tv=r(63387),ty={BigNumberDependencies:f,UnitDependencies:tg,createAtomicMass:tv.Kw},tb={BigNumberDependencies:f,UnitDependencies:tg,createAvogadro:tv.Gj},tx=r(53929),tD={typedDependencies:w,createIsNegative:tx.A},tw=r(13287),tN={typedDependencies:w,createCombinations:tw.p},tA=r(92375),tE={BigNumberDependencies:f,ComplexDependencies:h,multiplyScalarDependencies:e2,powDependencies:th,typedDependencies:w,createGamma:tA.M},tS=r(28669),tC={gammaDependencies:tE,typedDependencies:w,createFactorial:tS.w},tM=r(27355),tT={DenseMatrixDependencies:y,SparseMatrixDependencies:O,bignumberDependencies:eP,concatDependencies:L,matrixDependencies:P,typedDependencies:w,createLarger:tM.o},tO=r(56869),tF={bignumberDependencies:eP,addScalarDependencies:_,combinationsDependencies:tN,divideScalarDependencies:eU,factorialDependencies:tC,isIntegerDependencies:R,isNegativeDependencies:tD,largerDependencies:tT,multiplyScalarDependencies:e2,numberDependencies:eR,powDependencies:th,subtractScalarDependencies:ts,typedDependencies:w,createStirlingS2:tO.w},t_=r(84475),tB={addScalarDependencies:_,isIntegerDependencies:R,isNegativeDependencies:tD,stirlingS2Dependencies:tF,typedDependencies:w,createBellNumbers:t_.e},tP=r(47502),tk={BigNumberDependencies:f,FractionDependencies:x,isIntegerDependencies:R,numberDependencies:eR,typedDependencies:w,createBernoulli:tP.x},tq=r(87151),tI={typedDependencies:w,createBigint:tq.S},tR=r(4767),tz={formatDependencies:eK,typedDependencies:w,createBin:tR.O},tL=r(34172),tj={concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createBitAnd:tL.x},tU=r(13277),t$={addDependencies:U,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,notDependencies:eu,typedDependencies:w,zerosDependencies:H,createBitAndTransform:tU.H},tH=r(20720),tG={typedDependencies:w,createBitNot:tH.j},tQ=r(56208),tV={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createBitOr:tQ.$},tZ=r(49336),tW={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createBitOrTransform:tZ.f},tY=r(45244),tJ={DenseMatrixDependencies:y,SparseMatrixDependencies:O,concatDependencies:L,matrixDependencies:P,typedDependencies:w,createBitXor:tY.x},tK=r(27613),tX={createResultSet:tK.O},t0=r(64544),t1={NodeDependencies:S,ResultSetDependencies:tX,createBlockNode:t0.E},t2={BigNumberDependencies:f,UnitDependencies:tg,createBohrMagneton:tv.XS},t3={BigNumberDependencies:f,UnitDependencies:tg,createBohrRadius:tv.cC},t5={BigNumberDependencies:f,UnitDependencies:tg,createBoltzmann:tv.UK},t8=r(15870),t4={typedDependencies:w,createBoolean:t8.p},t9=r(4852),t6={addScalarDependencies:_,combinationsDependencies:tN,divideScalarDependencies:eU,isIntegerDependencies:R,isNegativeDependencies:tD,multiplyScalarDependencies:e2,typedDependencies:w,createCatalan:t9.f},t7=r(15988),re={BigNumberDependencies:f,ComplexDependencies:h,FractionDependencies:x,isNegativeDependencies:tD,matrixDependencies:P,typedDependencies:w,unaryMinusDependencies:tu,createCbrt:t7.q},rt=r(41653),rr={typedDependencies:w,createChainClass:rt.k},rn=r(10624),ri={ChainDependencies:rr,typedDependencies:w,createChain:rn.U},ra={BigNumberDependencies:f,UnitDependencies:tg,createClassicalElectronRadius:tv.WX},rs=r(65505),ro={typedDependencies:w,createClone:rs.s},ru=r(28086),rc={DenseMatrixDependencies:y,SparseMatrixDependencies:O,bignumberDependencies:eP,concatDependencies:L,matrixDependencies:P,typedDependencies:w,createSmaller:ru.p},rl=r(32854),rp={DenseMatrixDependencies:y,smallerDependencies:rc,createImmutableDenseMatrixClass:rl.r},rf=r(75587),rd={typedDependencies:w,createGetMatrixDataType:rf.C},rh=r(58873),rm={ImmutableDenseMatrixDependencies:rp,getMatrixDataTypeDependencies:rd,createIndexClass:rh.T},rg=r(39081),rv={typedDependencies:w,createIsPositive:rg.q},ry=r(16569),rb={DenseMatrixDependencies:y,SparseMatrixDependencies:O,concatDependencies:L,matrixDependencies:P,typedDependencies:w,createLargerEq:ry.W},rx=r(35040),rD={DenseMatrixDependencies:y,SparseMatrixDependencies:O,concatDependencies:L,matrixDependencies:P,typedDependencies:w,createSmallerEq:rx.V},rw=r(98463),rN={bignumberDependencies:eP,matrixDependencies:P,addDependencies:U,equalDependencies:q,isPositiveDependencies:rv,isZeroDependencies:e4,largerDependencies:tT,largerEqDependencies:rb,smallerDependencies:rc,smallerEqDependencies:rD,typedDependencies:w,createRange:rw.S},rA=r(55666),rE={IndexDependencies:rm,matrixDependencies:P,rangeDependencies:rN,typedDependencies:w,createColumn:rA.H},rS=r(16363),rC={IndexDependencies:rm,matrixDependencies:P,rangeDependencies:rN,typedDependencies:w,createColumnTransform:rS.B},rM=r(90825),rT={typedDependencies:w,createCombinationsWithRep:rM.Q},rO=r(93917),rF={BigNumberDependencies:f,DenseMatrixDependencies:y,FractionDependencies:x,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createCompare:rO.m},r_=r(89076),rB={compareDependencies:rF,typedDependencies:w,createCompareNatural:r_.b},rP=r(25538),rk={concatDependencies:L,matrixDependencies:P,typedDependencies:w,createCompareText:rP.r},rq=r(34813),rI={NodeDependencies:S,createConditionalNode:rq.h},rR=r(569),rz={typedDependencies:w,createIsBounded:rR.c},rL=r(97413),rj={NodeDependencies:S,isBoundedDependencies:rz,createConstantNode:rL.b},rU=r(61860),r$={NodeDependencies:S,typedDependencies:w,createFunctionAssignmentNode:rU.I},rH=r(245),rG={UnitDependencies:tg,NodeDependencies:S,createSymbolNode:rH.F},rQ=r(30561),rV={NodeDependencies:S,SymbolNodeDependencies:rG,createFunctionNode:rQ.N},rZ=r(55937),rW={NodeDependencies:S,sizeDependencies:te,createIndexNode:rZ.r},rY=r(55926),rJ={NodeDependencies:S,createObjectNode:rY.Q},rK=r(76917),rX={NodeDependencies:S,createOperatorNode:rK.r},r0=r(99973),r1={NodeDependencies:S,createParenthesisNode:r0.n},r2=r(52808),r3={NodeDependencies:S,createRangeNode:r2.u},r5=r(50088),r8={NodeDependencies:S,createRelationalNode:r5.G},r4=r(37827),r9={AccessorNodeDependencies:Z,ArrayNodeDependencies:eg,AssignmentNodeDependencies:eS,BlockNodeDependencies:t1,ConditionalNodeDependencies:rI,ConstantNodeDependencies:rj,FunctionAssignmentNodeDependencies:r$,FunctionNodeDependencies:rV,IndexNodeDependencies:rW,ObjectNodeDependencies:rJ,OperatorNodeDependencies:rX,ParenthesisNodeDependencies:r1,RangeNodeDependencies:r3,RelationalNodeDependencies:r8,SymbolNodeDependencies:rG,numericDependencies:eL,typedDependencies:w,createParse:r4.U},r6=r(13192),r7={parseDependencies:r9,typedDependencies:w,createCompile:r6.Q},ne=r(40174),nt={ComplexDependencies:h,typedDependencies:w,createComplex:ne.X},nr=r(67440),nn={addScalarDependencies:_,combinationsDependencies:tN,isIntegerDependencies:R,isNegativeDependencies:tD,isPositiveDependencies:rv,largerDependencies:tT,typedDependencies:w,createComposition:nr.z},ni=r(5633),na={isIntegerDependencies:R,matrixDependencies:P,typedDependencies:w,createConcatTransform:ni.V},ns={BigNumberDependencies:f,UnitDependencies:tg,createConductanceQuantum:tv.VK},no=r(8490),nu={divideScalarDependencies:eU,equalScalarDependencies:M,invDependencies:tf,matrixDependencies:P,multiplyDependencies:ti,typedDependencies:w,createDivide:no.G},nc=r(84043),nl={addDependencies:U,divideDependencies:nu,typedDependencies:w,createMean:nc.s},np=r(76409),nf={ComplexDependencies:h,typedDependencies:w,createSqrt:np.R},nd=r(6771),nh={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,subtractScalarDependencies:ts,typedDependencies:w,unaryMinusDependencies:tu,createSubtract:nd.t},nm=r(47159),ng={addDependencies:U,numericDependencies:eL,typedDependencies:w,createSum:nm.i},nv=r(26148),ny={addDependencies:U,divideDependencies:nu,matrixDependencies:P,meanDependencies:nl,multiplyDependencies:ti,powDependencies:th,sqrtDependencies:nf,subtractDependencies:nh,sumDependencies:ng,typedDependencies:w,createCorr:nv.r},nb=r(21143),nx={typedDependencies:w,createCos:nb.o},nD=r(7671),nw={typedDependencies:w,createCosh:nD.q},nN=r(4630),nA={BigNumberDependencies:f,typedDependencies:w,createCot:nN.v},nE=r(87292),nS={BigNumberDependencies:f,typedDependencies:w,createCoth:nE.$},nC={BigNumberDependencies:f,UnitDependencies:tg,createCoulomb:tv.w$},nM={BigNumberDependencies:f,UnitDependencies:tg,createCoulombConstant:tv.e0},nT=r(19059),nO={multiplyScalarDependencies:e2,numericDependencies:eL,typedDependencies:w,createProd:nT._},nF=r(15365),n_={prodDependencies:nO,sizeDependencies:te,typedDependencies:w,createCount:nF.K},nB=r(8782),nP={UnitDependencies:tg,typedDependencies:w,createCreateUnit:nB.J},nk=r(9602),nq={matrixDependencies:P,multiplyDependencies:ti,subtractDependencies:nh,typedDependencies:w,createCross:nk.x},nI=r(2115),nR={BigNumberDependencies:f,typedDependencies:w,createCsc:nI.Y},nz=r(19259),nL={BigNumberDependencies:f,typedDependencies:w,createCsch:nz.g},nj=r(49129),nU={matrixDependencies:P,typedDependencies:w,createTranspose:nj.M},n$=r(45684),nH={conjDependencies:e6,transposeDependencies:nU,typedDependencies:w,createCtranspose:n$.d},nG=r(45857),nQ={typedDependencies:w,createCube:nG.Y},nV=r(50392),nZ={numericDependencies:eL,typedDependencies:w,createUnaryPlus:nV.e},nW=r(2736),nY={addDependencies:U,typedDependencies:w,unaryPlusDependencies:nZ,createCumSum:nW.b},nJ=r(65671),nK={addDependencies:U,typedDependencies:w,unaryPlusDependencies:nZ,createCumSumTransform:nJ.p},nX=r(76148),n0={equalDependencies:q,typedDependencies:w,createDeepEqual:nX.H},n1=r(30236),n2={createReplacer:n1.h},n3=r(56017),n5={ConstantNodeDependencies:rj,FunctionNodeDependencies:rV,OperatorNodeDependencies:rX,ParenthesisNodeDependencies:r1,parseDependencies:r9,typedDependencies:w,createResolve:n3.x},n8=r(92506),n4={bignumberDependencies:eP,fractionDependencies:eq,AccessorNodeDependencies:Z,ArrayNodeDependencies:eg,ConstantNodeDependencies:rj,FunctionNodeDependencies:rV,IndexNodeDependencies:rW,ObjectNodeDependencies:rJ,OperatorNodeDependencies:rX,SymbolNodeDependencies:rG,isBoundedDependencies:rz,matrixDependencies:P,typedDependencies:w,createSimplifyConstant:n8.E},n9=r(42237),n6={AccessorNodeDependencies:Z,ArrayNodeDependencies:eg,ConstantNodeDependencies:rj,FunctionNodeDependencies:rV,IndexNodeDependencies:rW,ObjectNodeDependencies:rJ,OperatorNodeDependencies:rX,ParenthesisNodeDependencies:r1,SymbolNodeDependencies:rG,addDependencies:U,divideDependencies:nu,equalDependencies:q,isZeroDependencies:e4,multiplyDependencies:ti,parseDependencies:r9,powDependencies:th,subtractDependencies:nh,typedDependencies:w,createSimplifyCore:n9.x},n7=r(70610),ie={AccessorNodeDependencies:Z,ArrayNodeDependencies:eg,ConstantNodeDependencies:rj,FunctionNodeDependencies:rV,IndexNodeDependencies:rW,ObjectNodeDependencies:rJ,OperatorNodeDependencies:rX,ParenthesisNodeDependencies:r1,SymbolNodeDependencies:rG,equalDependencies:q,parseDependencies:r9,replacerDependencies:n2,resolveDependencies:n5,simplifyConstantDependencies:n4,simplifyCoreDependencies:n6,typedDependencies:w,createSimplify:n7.U},it=r(53792),ir={ConstantNodeDependencies:rj,FunctionNodeDependencies:rV,OperatorNodeDependencies:rX,ParenthesisNodeDependencies:r1,SymbolNodeDependencies:rG,equalDependencies:q,isZeroDependencies:e4,numericDependencies:eL,parseDependencies:r9,simplifyDependencies:ie,typedDependencies:w,createDerivative:it.s},ii={BigNumberDependencies:f,UnitDependencies:tg,createDeuteronMass:tv.zr},ia=r(91439),is={DenseMatrixDependencies:y,SparseMatrixDependencies:O,matrixDependencies:P,typedDependencies:w,createDiag:ia.I},io=r(56079),iu={matrixDependencies:P,numberDependencies:eR,subtractDependencies:nh,typedDependencies:w,createDiff:io.i},ic=r(65874),il={bignumberDependencies:eP,matrixDependencies:P,numberDependencies:eR,subtractDependencies:nh,typedDependencies:w,createDiffTransform:ic.S},ip=r(11716),id={absDependencies:A,addScalarDependencies:_,deepEqualDependencies:n0,divideScalarDependencies:eU,multiplyScalarDependencies:e2,sqrtDependencies:nf,subtractScalarDependencies:ts,typedDependencies:w,createDistance:ip.G},ih=r(20161),im={DenseMatrixDependencies:y,SparseMatrixDependencies:O,concatDependencies:L,divideScalarDependencies:eU,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createDotDivide:ih.F},ig=r(79812),iv={concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,multiplyScalarDependencies:e2,typedDependencies:w,createDotMultiply:ig.S},iy=r(85712),ib={DenseMatrixDependencies:y,SparseMatrixDependencies:O,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,powDependencies:th,typedDependencies:w,createDotPow:iy.U},ix=r(29614),iD={BigNumberDependencies:f,createE:ix.UN},iw={BigNumberDependencies:f,createEfimovFactor:tv.ez},iN=r(68920),iA={typedDependencies:w,createFlatten:iN.d},iE=r(31123),iS={typedDependencies:w,createIm:iE.z},iC=r(54242),iM={flattenDependencies:iA,matrixDependencies:P,sizeDependencies:te,typedDependencies:w,createMatrixFromColumns:iC.z},iT=r(73970),iO={BigNumberDependencies:f,FractionDependencies:x,complexDependencies:nt,typedDependencies:w,createSign:iT.m},iF=r(51401),i_={addScalarDependencies:_,complexDependencies:nt,conjDependencies:e6,divideScalarDependencies:eU,equalDependencies:q,identityDependencies:e5,isZeroDependencies:e4,matrixDependencies:P,multiplyScalarDependencies:e2,signDependencies:iO,sqrtDependencies:nf,subtractScalarDependencies:ts,typedDependencies:w,unaryMinusDependencies:tu,zerosDependencies:H,createQr:iF.K},iB=r(90020),iP={typedDependencies:w,createRe:iB.W},ik=r(82380),iq={isIntegerDependencies:R,matrixDependencies:P,typedDependencies:w,createReshape:ik.r},iI=r(50578),iR={typedDependencies:w,createSin:iI.T},iz=r(76431),iL={DenseMatrixDependencies:y,divideScalarDependencies:eU,equalScalarDependencies:M,matrixDependencies:P,multiplyScalarDependencies:e2,subtractScalarDependencies:ts,typedDependencies:w,createUsolve:iz.p},ij=r(54032),iU={DenseMatrixDependencies:y,divideScalarDependencies:eU,equalScalarDependencies:M,matrixDependencies:P,multiplyScalarDependencies:e2,subtractScalarDependencies:ts,typedDependencies:w,createUsolveAll:ij.m},i$=r(20861),iH={absDependencies:A,addDependencies:U,addScalarDependencies:_,atanDependencies:eM,bignumberDependencies:eP,columnDependencies:rE,complexDependencies:nt,cosDependencies:nx,diagDependencies:is,divideScalarDependencies:eU,dotDependencies:tr,equalDependencies:q,flattenDependencies:iA,imDependencies:iS,invDependencies:tf,largerDependencies:tT,matrixDependencies:P,matrixFromColumnsDependencies:iM,multiplyDependencies:ti,multiplyScalarDependencies:e2,numberDependencies:eR,qrDependencies:i_,reDependencies:iP,reshapeDependencies:iq,sinDependencies:iR,sizeDependencies:te,smallerDependencies:rc,sqrtDependencies:nf,subtractDependencies:nh,typedDependencies:w,usolveDependencies:iL,usolveAllDependencies:iU,createEigs:i$.f},iG={BigNumberDependencies:f,UnitDependencies:tg,createElectricConstant:tv.eb},iQ={BigNumberDependencies:f,UnitDependencies:tg,createElectronMass:tv.dd},iV={BigNumberDependencies:f,UnitDependencies:tg,createElementaryCharge:tv.v2},iZ=r(49565),iW={compareTextDependencies:rk,isZeroDependencies:e4,typedDependencies:w,createEqualText:iZ.a},iY=r(80177),iJ={typedDependencies:w,createErf:iY.K},iK=r(77578),iX={parseDependencies:r9,typedDependencies:w,createEvaluate:iK.u},i0=r(92340),i1={typedDependencies:w,createExp:i0.I},i2=r(47678),i3={absDependencies:A,addDependencies:U,identityDependencies:e5,invDependencies:tf,multiplyDependencies:ti,typedDependencies:w,createExpm:i2.H},i5=r(2486),i8={ComplexDependencies:h,typedDependencies:w,createExpm1:i5.U},i4={createFalse:ix.i0},i9={BigNumberDependencies:f,UnitDependencies:tg,createFaraday:tv.Dp},i6={BigNumberDependencies:f,UnitDependencies:tg,createFermiCoupling:tv.Dc},i7={ComplexDependencies:h,createI:ix.GM},ae=r(41311),at={ComplexDependencies:h,typedDependencies:w,createLog2:ae.j},ar={BigNumberDependencies:f,createTau:ix.hI},an=r(88822),ai={addScalarDependencies:_,ceilDependencies:eQ,conjDependencies:e6,divideScalarDependencies:eU,dotDivideDependencies:im,expDependencies:i1,iDependencies:i7,log2Dependencies:at,matrixDependencies:P,multiplyScalarDependencies:e2,powDependencies:th,tauDependencies:ar,typedDependencies:w,createFft:an.H},aa=r(37648),as={largerDependencies:tT,smallerDependencies:rc,createFibonacciHeapClass:aa.B},ao=r(59990),au={typedDependencies:w,createFilter:ao.H},ac=r(97971),al={typedDependencies:w,createFilterTransform:ac.p},ap={BigNumberDependencies:f,createFineStructure:tv.I},af={BigNumberDependencies:f,UnitDependencies:tg,createFirstRadiation:tv.qQ},ad=r(31032),ah={typedDependencies:w,createForEach:ad.j},am=r(70463),ag={typedDependencies:w,createForEachTransform:am.D},av=r(31155),ay={ComplexDependencies:h,addDependencies:U,divideDependencies:nu,matrixDependencies:P,multiplyDependencies:ti,typedDependencies:w,createFreqz:av.$},ab={BigNumberDependencies:f,UnitDependencies:tg,createGasConstant:tv.Ik},ax=r(59253),aD={BigNumberDependencies:f,DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,roundDependencies:eH,typedDependencies:w,zerosDependencies:H,createGcd:ax.p},aw={BigNumberDependencies:f,UnitDependencies:tg,createGravitationConstant:tv.tP},aN={BigNumberDependencies:f,UnitDependencies:tg,createGravity:tv.Tx},aA={BigNumberDependencies:f,UnitDependencies:tg,createHartreeEnergy:tv.oL},aE=r(75624),aS={isNumericDependencies:e0,typedDependencies:w,createHasNumericValue:aE.l},aC=r(7741),aM={evaluateDependencies:iX,createHelpClass:aC.G},aT=r(22342),aO={HelpDependencies:aM,typedDependencies:w,createHelp:aT.q},aF=r(69651),a_={formatDependencies:eK,typedDependencies:w,createHex:aF.i},aB=r(53253),aP={absDependencies:A,addScalarDependencies:_,divideScalarDependencies:eU,isPositiveDependencies:rv,multiplyScalarDependencies:e2,smallerDependencies:rc,sqrtDependencies:nf,typedDependencies:w,createHypot:aB.r},ak=r(31069),aq={conjDependencies:e6,dotDivideDependencies:im,fftDependencies:ai,typedDependencies:w,createIfft:ak.C},aI=r(47387),aR={IndexDependencies:rm,typedDependencies:w,createIndex:aI.z},az=r(70941),aL={IndexDependencies:rm,getMatrixDataTypeDependencies:rd,createIndexTransform:az.p},aj={BigNumberDependencies:f,createInfinity:ix.Xd},aU=r(35874),a$={absDependencies:A,addDependencies:U,addScalarDependencies:_,divideScalarDependencies:eU,equalScalarDependencies:M,flattenDependencies:iA,isNumericDependencies:e0,isZeroDependencies:e4,matrixDependencies:P,multiplyDependencies:ti,multiplyScalarDependencies:e2,smallerDependencies:rc,subtractDependencies:nh,typedDependencies:w,createIntersect:aU.s},aH={BigNumberDependencies:f,UnitDependencies:tg,createInverseConductanceQuantum:tv.rg},aG=r(94867),aQ={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,roundDependencies:eH,typedDependencies:w,zerosDependencies:H,createMod:aG.n},aV=r(64805),aZ={BigNumberDependencies:f,matrixDependencies:P,typedDependencies:w,createXgcd:aV.F},aW=r(39010),aY={BigNumberDependencies:f,addDependencies:U,equalDependencies:q,isIntegerDependencies:R,modDependencies:aQ,smallerDependencies:rc,typedDependencies:w,xgcdDependencies:aZ,createInvmod:aW.o},aJ=r(84672),aK={typedDependencies:w,createMap:aJ.p},aX=r(23709),a0={isBoundedDependencies:rz,mapDependencies:aK,typedDependencies:w,createIsFinite:aX.S},a1=r(7753),a2={typedDependencies:w,createIsNaN:a1.Y},a3=r(23547),a5={typedDependencies:w,createIsPrime:a3.w},a8=r(90667),a4={typedDependencies:w,createTypeOf:a8.o},a9=r(94861),a6={ComplexDependencies:h,divideScalarDependencies:eU,typeOfDependencies:a4,typedDependencies:w,createLog:a9.h},a7=r(96241),se={divideDependencies:nu,dotDivideDependencies:im,isNumericDependencies:e0,logDependencies:a6,mapDependencies:aK,matrixDependencies:P,multiplyDependencies:ti,sumDependencies:ng,typedDependencies:w,createKldivergence:a7.u},st={BigNumberDependencies:f,UnitDependencies:tg,createKlitzing:tv.$L},sr=r(36876),sn={matrixDependencies:P,multiplyScalarDependencies:e2,typedDependencies:w,createKron:sr.l},si={BigNumberDependencies:f,createLN10:ix.ad},sa={BigNumberDependencies:f,createLN2:ix.l7},ss={BigNumberDependencies:f,createLOG10E:ix.fi},so={BigNumberDependencies:f,createLOG2E:ix.C8},su=r(30455),sc={concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createLcm:su.D},sl=r(64274),sp={parseDependencies:r9,typedDependencies:w,createLeafCount:sl.C},sf=r(89917),sd={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createLeftShift:sf.O},sh=r(13061),sm={ComplexDependencies:h,typedDependencies:w,createLgamma:sh.k},sg=r(49016),sv={ComplexDependencies:h,typedDependencies:w,createLog10:sg.e},sy=r(33144),sb={ComplexDependencies:h,divideScalarDependencies:eU,logDependencies:a6,typedDependencies:w,createLog1p:sy.s},sx={BigNumberDependencies:f,UnitDependencies:tg,createLoschmidt:tv.Cc},sD=r(86886),sw={DenseMatrixDependencies:y,divideScalarDependencies:eU,equalScalarDependencies:M,matrixDependencies:P,multiplyScalarDependencies:e2,subtractScalarDependencies:ts,typedDependencies:w,createLsolve:sD.i},sN=r(93587),sA={DenseMatrixDependencies:y,divideScalarDependencies:eU,equalScalarDependencies:M,matrixDependencies:P,multiplyScalarDependencies:e2,subtractScalarDependencies:ts,typedDependencies:w,createLsolveAll:sN.H},sE=r(60628),sS={FibonacciHeapDependencies:as,addScalarDependencies:_,equalScalarDependencies:M,createSpaClass:sE.Z},sC=r(3456),sM={DenseMatrixDependencies:y,SpaDependencies:sS,SparseMatrixDependencies:O,absDependencies:A,addScalarDependencies:_,divideScalarDependencies:eU,equalScalarDependencies:M,largerDependencies:tT,matrixDependencies:P,multiplyScalarDependencies:e2,subtractScalarDependencies:ts,typedDependencies:w,unaryMinusDependencies:tu,createLup:sC.o},sT=r(82303),sO={SparseMatrixDependencies:O,absDependencies:A,addDependencies:U,divideScalarDependencies:eU,largerDependencies:tT,largerEqDependencies:rb,multiplyDependencies:ti,subtractDependencies:nh,transposeDependencies:nU,typedDependencies:w,createSlu:sT.H},sF=r(53663),s_={DenseMatrixDependencies:y,lsolveDependencies:sw,lupDependencies:sM,matrixDependencies:P,sluDependencies:sO,typedDependencies:w,usolveDependencies:iL,createLusolve:sF.b},sB=r(49913),sP={absDependencies:A,addDependencies:U,conjDependencies:e6,ctransposeDependencies:nH,eigsDependencies:iH,equalScalarDependencies:M,largerDependencies:tT,matrixDependencies:P,multiplyDependencies:ti,powDependencies:th,smallerDependencies:rc,sqrtDependencies:nf,typedDependencies:w,createNorm:sB.X},sk=r(77592),sq={identityDependencies:e5,matrixDependencies:P,multiplyDependencies:ti,normDependencies:sP,qrDependencies:i_,subtractDependencies:nh,typedDependencies:w,createSchur:sk.u},sI=r(18528),sR={absDependencies:A,addDependencies:U,concatDependencies:L,identityDependencies:e5,indexDependencies:aR,lusolveDependencies:s_,matrixDependencies:P,matrixFromColumnsDependencies:iM,multiplyDependencies:ti,rangeDependencies:rN,schurDependencies:sq,subsetDependencies:Q,subtractDependencies:nh,transposeDependencies:nU,typedDependencies:w,createSylvester:sI._},sz=r(2259),sL={matrixDependencies:P,multiplyDependencies:ti,sylvesterDependencies:sR,transposeDependencies:nU,typedDependencies:w,createLyap:sz.L},sj=r(36228),sU={compareDependencies:rF,isNaNDependencies:a2,isNumericDependencies:e0,typedDependencies:w,createPartitionSelect:sj.X},s$=r(22092),sH={addDependencies:U,compareDependencies:rF,divideDependencies:nu,partitionSelectDependencies:sU,typedDependencies:w,createMedian:s$.h},sG=r(21038),sQ={absDependencies:A,mapDependencies:aK,medianDependencies:sH,subtractDependencies:nh,typedDependencies:w,createMad:sG.p},sV={BigNumberDependencies:f,UnitDependencies:tg,createMagneticConstant:tv.Rd},sZ={BigNumberDependencies:f,UnitDependencies:tg,createMagneticFluxQuantum:tv.DT},sW=r(86255),sY={isIntegerDependencies:R,typedDependencies:w,createMapSlices:sW.Q},sJ=r(16536),sK={isIntegerDependencies:R,typedDependencies:w,createMapSlicesTransform:sJ._},sX=r(46495),s0={typedDependencies:w,createMapTransform:sX.t},s1=r(64977),s2={isZeroDependencies:e4,matrixDependencies:P,typedDependencies:w,createMatrixFromFunction:s1.s},s3=r(53348),s5={flattenDependencies:iA,matrixDependencies:P,sizeDependencies:te,typedDependencies:w,createMatrixFromRows:s3.Z},s8=r(5546),s4={isNaNDependencies:a2,largerDependencies:tT,numericDependencies:eL,typedDependencies:w,createMax:s8.p},s9=r(78791),s6={isNaNDependencies:a2,largerDependencies:tT,numericDependencies:eL,typedDependencies:w,createMaxTransform:s9.t},s7=r(94092),oe={addDependencies:U,divideDependencies:nu,typedDependencies:w,createMeanTransform:s7.y},ot=r(59076),or={isNaNDependencies:a2,numericDependencies:eL,smallerDependencies:rc,typedDependencies:w,createMin:ot.L},on=r(49917),oi={isNaNDependencies:a2,numericDependencies:eL,smallerDependencies:rc,typedDependencies:w,createMinTransform:on.X},oa=r(15645),os={isNaNDependencies:a2,isNumericDependencies:e0,typedDependencies:w,createMode:oa.E},oo={BigNumberDependencies:f,UnitDependencies:tg,createMolarMass:tv.NC},ou={BigNumberDependencies:f,UnitDependencies:tg,createMolarMassC12:tv.KV},oc={BigNumberDependencies:f,UnitDependencies:tg,createMolarPlanckConstant:tv.hy},ol={BigNumberDependencies:f,UnitDependencies:tg,createMolarVolume:tv.u5},op=r(18523),of={addDependencies:U,divideDependencies:nu,factorialDependencies:tC,isIntegerDependencies:R,isPositiveDependencies:rv,multiplyDependencies:ti,typedDependencies:w,createMultinomial:op.k},od={BigNumberDependencies:f,createNaN:ix.SV},oh={BigNumberDependencies:f,UnitDependencies:tg,createNeutronMass:tv.Wq},om=r(95693),og={BigNumberDependencies:f,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createNthRoot:om.f},ov=r(48296),oy={ComplexDependencies:h,divideScalarDependencies:eU,typedDependencies:w,createNthRoots:ov.s},ob={BigNumberDependencies:f,UnitDependencies:tg,createNuclearMagneton:tv.EE},ox={createNull:ix.Er},oD=r(84493),ow={deepEqualDependencies:n0,flattenDependencies:iA,matrixDependencies:P,sizeDependencies:te,typedDependencies:w,createNullish:oD.w},oN=r(81242),oA={deepEqualDependencies:n0,flattenDependencies:iA,matrixDependencies:P,sizeDependencies:te,typedDependencies:w,createNullishTransform:oN.Q},oE=r(35984),oS={formatDependencies:eK,typedDependencies:w,createOct:oE.R},oC=r(88193),oM={BigNumberDependencies:f,matrixDependencies:P,typedDependencies:w,createOnes:oC.A},oT=r(64625),oO={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createOr:oT.M},oF=r(15136),o_={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createOrTransform:oF.O},oB=r(44165),oP={evaluateDependencies:iX,parseDependencies:r9,createParserClass:oB.m},ok=r(46670),oq={ParserDependencies:oP,typedDependencies:w,createParser:ok.C},oI=r(70342),oR={factorialDependencies:tC,typedDependencies:w,createPermutations:oI.U},oz={BigNumberDependencies:f,createPhi:ix.Ah},oL={BigNumberDependencies:f,createPi:ix.GD},oj=r(61226),oU={typedDependencies:w,createPickRandom:oj.B},o$=r(34739),oH={ComplexDependencies:h,addDependencies:U,ctransposeDependencies:nH,deepEqualDependencies:n0,divideScalarDependencies:eU,dotDependencies:tr,dotDivideDependencies:im,equalDependencies:q,invDependencies:tf,matrixDependencies:P,multiplyDependencies:ti,typedDependencies:w,createPinv:o$.w},oG={BigNumberDependencies:f,UnitDependencies:tg,createPlanckCharge:tv.aE},oQ={BigNumberDependencies:f,UnitDependencies:tg,createPlanckConstant:tv.Og},oV={BigNumberDependencies:f,UnitDependencies:tg,createPlanckLength:tv.qU},oZ={BigNumberDependencies:f,UnitDependencies:tg,createPlanckMass:tv.cn},oW={BigNumberDependencies:f,UnitDependencies:tg,createPlanckTemperature:tv._F},oY={BigNumberDependencies:f,UnitDependencies:tg,createPlanckTime:tv.TT},oJ=r(45359),oK={addDependencies:U,cbrtDependencies:re,divideDependencies:nu,equalScalarDependencies:M,imDependencies:iS,isZeroDependencies:e4,multiplyDependencies:ti,reDependencies:iP,sqrtDependencies:nf,subtractDependencies:nh,typeOfDependencies:a4,typedDependencies:w,unaryMinusDependencies:tu,createPolynomialRoot:oJ.r},oX=r(86621),o0={typedDependencies:w,createPrint:oX.q},o1=r(73810),o2={addDependencies:U,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createPrintTransform:o1.Q},o3={BigNumberDependencies:f,UnitDependencies:tg,createProtonMass:tv.jh},o5=r(73112),o8={bignumberDependencies:eP,addDependencies:U,compareDependencies:rF,divideDependencies:nu,isIntegerDependencies:R,largerDependencies:tT,mapSlicesDependencies:sY,multiplyDependencies:ti,partitionSelectDependencies:sU,smallerDependencies:rc,smallerEqDependencies:rD,subtractDependencies:nh,typedDependencies:w,createQuantileSeq:o5.D},o4=r(63881),o9={addDependencies:U,bignumberDependencies:eP,compareDependencies:rF,divideDependencies:nu,isIntegerDependencies:R,largerDependencies:tT,mapSlicesDependencies:sY,multiplyDependencies:ti,partitionSelectDependencies:sU,smallerDependencies:rc,smallerEqDependencies:rD,subtractDependencies:nh,typedDependencies:w,createQuantileSeqTransform:o4.b},o6={BigNumberDependencies:f,UnitDependencies:tg,createQuantumOfCirculation:tv._7},o7=r(19531),ue={typedDependencies:w,createRandom:o7.s},ut=r(33894),ur={log2Dependencies:at,typedDependencies:w,createRandomInt:ut.d},un=r(7251),ui={createRangeClass:un.U},ua=r(49832),us={bignumberDependencies:eP,matrixDependencies:P,addDependencies:U,equalDependencies:q,isPositiveDependencies:rv,isZeroDependencies:e4,largerDependencies:tT,largerEqDependencies:rb,smallerDependencies:rc,smallerEqDependencies:rD,typedDependencies:w,createRangeTransform:ua.G},uo=r(15833),uu={bignumberDependencies:eP,fractionDependencies:eq,AccessorNodeDependencies:Z,ArrayNodeDependencies:eg,ConstantNodeDependencies:rj,FunctionNodeDependencies:rV,IndexNodeDependencies:rW,ObjectNodeDependencies:rJ,OperatorNodeDependencies:rX,ParenthesisNodeDependencies:r1,SymbolNodeDependencies:rG,addDependencies:U,divideDependencies:nu,equalDependencies:q,isZeroDependencies:e4,matrixDependencies:P,multiplyDependencies:ti,parseDependencies:r9,powDependencies:th,simplifyDependencies:ie,simplifyConstantDependencies:n4,simplifyCoreDependencies:n6,subtractDependencies:nh,typedDependencies:w,createRationalize:uo.L},uc={BigNumberDependencies:f,UnitDependencies:tg,createReducedPlanckConstant:tv.y0},ul=r(39192),up={matrixDependencies:P,createResize:ul.B},uf=r(81189),ud={createReviver:uf.m},uh=r(61606),um={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createRightArithShift:uh.f},ug=r(42446),uv={DenseMatrixDependencies:y,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createRightLogShift:ug.n},uy=r(23163),ub={BigNumberDependencies:f,DenseMatrixDependencies:y,SparseMatrixDependencies:O,addScalarDependencies:_,cosDependencies:nx,matrixDependencies:P,multiplyScalarDependencies:e2,normDependencies:sP,sinDependencies:iR,typedDependencies:w,unaryMinusDependencies:tu,createRotationMatrix:uy.m},ux=r(18023),uD={multiplyDependencies:ti,rotationMatrixDependencies:ub,typedDependencies:w,createRotate:ux.S},uw=r(26610),uN={IndexDependencies:rm,matrixDependencies:P,rangeDependencies:rN,typedDependencies:w,createRow:uw.R},uA=r(75973),uE={IndexDependencies:rm,matrixDependencies:P,rangeDependencies:rN,typedDependencies:w,createRowTransform:uA.J},uS={BigNumberDependencies:f,UnitDependencies:tg,createRydberg:tv.QE},uC={BigNumberDependencies:f,createSQRT1_2:ix.j2},uM={BigNumberDependencies:f,createSQRT2:ix.RJ},uT={BigNumberDependencies:f,createSackurTetrode:tv.bz},uO=r(31001),uF={BigNumberDependencies:f,typedDependencies:w,createSec:uO.c},u_=r(25757),uB={BigNumberDependencies:f,typedDependencies:w,createSech:u_.g},uP={BigNumberDependencies:f,UnitDependencies:tg,createSecondRadiation:tv.cr},uk=r(53995),uq={DenseMatrixDependencies:y,IndexDependencies:rm,compareNaturalDependencies:rB,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetCartesian:uk.v},uI=r(48578),uR={DenseMatrixDependencies:y,IndexDependencies:rm,compareNaturalDependencies:rB,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetDifference:uI.e},uz=r(97921),uL={DenseMatrixDependencies:y,IndexDependencies:rm,compareNaturalDependencies:rB,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetDistinct:uz.Z},uj=r(92776),uU={DenseMatrixDependencies:y,IndexDependencies:rm,compareNaturalDependencies:rB,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetIntersect:uj.e},u$=r(12659),uH={IndexDependencies:rm,compareNaturalDependencies:rB,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetIsSubset:u$.P},uG=r(55150),uQ={IndexDependencies:rm,compareNaturalDependencies:rB,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetMultiplicity:uG.C},uV=r(47834),uZ={IndexDependencies:rm,compareNaturalDependencies:rB,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetPowerset:uV.Y},uW=r(5200),uY={compareNaturalDependencies:rB,typedDependencies:w,createSetSize:uW.G},uJ=r(88297),uK={IndexDependencies:rm,concatDependencies:L,setDifferenceDependencies:uR,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetSymDifference:uJ.l},uX=r(2746),u0={IndexDependencies:rm,concatDependencies:L,setIntersectDependencies:uU,setSymDifferenceDependencies:uK,sizeDependencies:te,subsetDependencies:Q,typedDependencies:w,createSetUnion:uX.s},u1=r(16768),u2={typedDependencies:w,createSinh:u1.V},u3=r(49279),u5={absDependencies:A,addDependencies:U,bignumberDependencies:eP,divideDependencies:nu,isNegativeDependencies:tD,isPositiveDependencies:rv,largerDependencies:tT,mapDependencies:aK,matrixDependencies:P,maxDependencies:s4,multiplyDependencies:ti,smallerDependencies:rc,subtractDependencies:nh,typedDependencies:w,unaryMinusDependencies:tu,createSolveODE:u3.c},u8=r(60072),u4={compareDependencies:rF,compareNaturalDependencies:rB,matrixDependencies:P,typedDependencies:w,createSort:u8.V},u9=r(9391),u6={SparseMatrixDependencies:O,typedDependencies:w,createSparse:u9.R},u7={BigNumberDependencies:f,UnitDependencies:tg,createSpeedOfLight:tv.Lg},ce=r(94708),ct={typedDependencies:w,createSplitUnit:ce.t},cr=r(3831),cn={absDependencies:A,addDependencies:U,identityDependencies:e5,invDependencies:tf,mapDependencies:aK,maxDependencies:s4,multiplyDependencies:ti,sizeDependencies:te,sqrtDependencies:nf,subtractDependencies:nh,typedDependencies:w,createSqrtm:cr.y},ci=r(2436),ca={typedDependencies:w,createSquare:ci.G},cs=r(81146),co={typedDependencies:w,createSqueeze:cs.l},cu=r(35849),cc={addDependencies:U,divideDependencies:nu,isNaNDependencies:a2,mapSlicesDependencies:sY,multiplyDependencies:ti,subtractDependencies:nh,typedDependencies:w,createVariance:cu.A},cl=r(39029),cp={mapDependencies:aK,sqrtDependencies:nf,typedDependencies:w,varianceDependencies:cc,createStd:cl.y},cf=r(67764),cd={mapDependencies:aK,sqrtDependencies:nf,typedDependencies:w,varianceDependencies:cc,createStdTransform:cf.E},ch={BigNumberDependencies:f,UnitDependencies:tg,createStefanBoltzmann:tv.zy},cm=r(92581),cg={typedDependencies:w,createString:cm.I},cv=r(29459),cy={addDependencies:U,matrixDependencies:P,typedDependencies:w,zerosDependencies:H,createSubsetTransform:cv.R},cb=r(54414),cx={addDependencies:U,numericDependencies:eL,typedDependencies:w,createSumTransform:cb.o},cD=r(65945),cw={OperatorNodeDependencies:rX,parseDependencies:r9,simplifyDependencies:ie,typedDependencies:w,createSymbolicEqual:cD.N},cN=r(45883),cA={typedDependencies:w,createTan:cN.a},cE=r(30227),cS={typedDependencies:w,createTanh:cE.I},cC={BigNumberDependencies:f,UnitDependencies:tg,createThomsonCrossSection:tv.wp},cM=r(59116),cT={concatDependencies:L,matrixDependencies:P,typedDependencies:w,createTo:cM.U},cO=r(8970),cF={typedDependencies:w,createToBest:cO.A},c_=r(83767),cB={addDependencies:U,matrixDependencies:P,typedDependencies:w,createTrace:c_.s},cP={createTrue:ix.L7},ck=r(47563),cq={DenseMatrixDependencies:y,SparseMatrixDependencies:O,concatDependencies:L,equalScalarDependencies:M,matrixDependencies:P,typedDependencies:w,createUnequal:ck.K},cI=r(75486),cR={UnitDependencies:tg,typedDependencies:w,createUnitFunction:cI.n},cz={eDependencies:iD,createUppercaseE:ix.OL},cL={piDependencies:oL,createUppercasePi:ix.ol},cj={BigNumberDependencies:f,UnitDependencies:tg,createVacuumImpedance:tv.AW},cU=r(3094),c$={addDependencies:U,divideDependencies:nu,isNaNDependencies:a2,mapSlicesDependencies:sY,multiplyDependencies:ti,subtractDependencies:nh,typedDependencies:w,createVarianceTransform:cU.M},cH={createVersion:ix.BB},cG={BigNumberDependencies:f,createWeakMixingAngle:tv.qH},cQ={BigNumberDependencies:f,UnitDependencies:tg,createWienDisplacement:tv.Lz},cV=r(69187),cZ={DenseMatrixDependencies:y,SparseMatrixDependencies:O,concatDependencies:L,matrixDependencies:P,typedDependencies:w,createXor:cV.Y},cW=r(89926),cY={BigNumberDependencies:f,ComplexDependencies:h,addDependencies:U,divideDependencies:nu,equalDependencies:q,factorialDependencies:tC,gammaDependencies:tE,isBoundedDependencies:rz,isNegativeDependencies:tD,multiplyDependencies:ti,piDependencies:oL,powDependencies:th,sinDependencies:iR,smallerEqDependencies:rD,subtractDependencies:nh,typedDependencies:w,createZeta:cW.b},cJ=r(21718),cK={ComplexDependencies:h,addDependencies:U,multiplyDependencies:ti,numberDependencies:eR,typedDependencies:w,createZpk2tf:cJ.S},cX=n,c0=r(71333),c1=r(62369),c2=r(58321),c3=r(93140),c5=r(51504),c8=r(44719),c4=r(45662);function c9(e,t){var r,n,i=(0,c0.A)({},c8.P,t);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var a=((r={isNumber:o.Et,isComplex:o.Zd,isBigNumber:o.C4,isBigInt:o.sI,isFraction:o.fU,isUnit:o.vO,isString:o.Kg,isArray:o.cy,isMatrix:o.OA,isCollection:o.P3,isDenseMatrix:o.zR,isSparseMatrix:o.AF,isRange:o._Z,isIndex:o.nw,isBoolean:o.Lm,isResultSet:o.eW,isHelp:o.gS,isFunction:o.Tn,isDate:o.$P,isRegExp:o.gd,isObject:o.Gv,isMap:o.jh,isPartitionedMap:o.aZ,isObjectWrappingMap:o.uQ,isNull:o.kZ,isUndefined:o.b0,isAccessorNode:o.AS,isArrayNode:o.gO,isAssignmentNode:o.qM,isBlockNode:o.CD,isConditionalNode:o.PO,isConstantNode:o.BA,isFunctionAssignmentNode:o.m2,isFunctionNode:o.Px,isIndexNode:o.$I,isNode:o.Ll,isObjectNode:o.GJ,isOperatorNode:o.$$,isParenthesisNode:o.tv,isRangeNode:o.Ye,isRelationalNode:o.iu,isSymbolNode:o.li,isChain:o.o_}).on=(n=new c5).on.bind(n),r.off=n.off.bind(n),r.once=n.once.bind(n),r.emit=n.emit.bind(n),r);a.config=(0,c4.hZ)(i,a.emit),a.expression={transform:{},mathWithTransform:{config:a.config}};var s={};function p(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return a.typed.apply(a.typed,t)}p.isTypedFunction=c1.isTypedFunction;var f=function(e,t,r,n){function i(e,t){t&&"function"==typeof t.transform?(r.expression.transform[e]=t.transform,s(e)&&(r.expression.mathWithTransform[e]=t.transform)):(delete r.expression.transform[e],s(e)&&(r.expression.mathWithTransform[e]=t))}function a(e){delete r.expression.transform[e],s(e)?r.expression.mathWithTransform[e]=r[e]:delete r.expression.mathWithTransform[e]}function s(e){return!(0,c3.mQ)(c,e)}function u(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction}var c={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(t,s){var p=arguments.length;if(1!==p&&2!==p)throw new l.X("import",p,1,2);s||(s={});var f={};for(var d in!function e(t,r,n){if(Array.isArray(r))r.forEach(r=>e(t,r));else{var i;if((0,o.Gv)(r)||"object"==typeof(i=r)&&"Module"===i[Symbol.toStringTag])for(var a in r)(0,c3.mQ)(r,a)&&e(t,r[a],a);else if((0,c2.T$)(r)||void 0!==n){var c=(0,c2.T$)(r)?u(r)?r.fn+".transform":r.fn:n;if((0,c3.mQ)(t,c)&&t[c]!==r&&!s.silent)throw Error('Cannot import "'+c+'" twice');t[c]=r}else if(!s.silent)throw TypeError("Factory, Object, or Array expected")}}(f,t),f)if((0,c3.mQ)(f,d)){var h,m=f[d];if((0,c2.T$)(m))!function(t,i){var s,o,l,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.fn;if(p.includes("."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(p));var f=u(t)?r.expression.transform:r,d=p in r.expression.transform,h=(0,c3.mQ)(f,p)?f[p]:void 0,m=function(){var n={};t.dependencies.map(c2.Py).forEach(e=>{if(e.includes("."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?n.math=r:"mathWithTransform"===e?n.mathWithTransform=r.expression.mathWithTransform:"classes"===e?n.classes=r:n[e]=r[e]});var a=t(n);if(a&&"function"==typeof a.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with export const path = "expression.transform"');if(void 0===h||i.override)return a;if(e.isTypedFunction(h)&&e.isTypedFunction(a))return e(h,a);if(i.silent)return h;throw Error('Cannot import "'+p+'": already exists')},g=null!=(o=null==(l=t.meta)?void 0:l.formerly)?o:"",v=u(t)||!(s=t).fn.includes(".")&&!(0,c3.mQ)(c,s.fn)&&(!s.meta||!s.meta.isClass),y=r.expression.mathWithTransform;t.meta&&!1===t.meta.lazy?(f[p]=m(),g&&(f[g]=f[p])):((0,c3.RZ)(f,p,m),g&&(0,c3.RZ)(f,g,m)),h&&d?(a(p),g&&a(g)):v&&((0,c3.RZ)(y,p,()=>f[p]),g&&(0,c3.RZ)(y,g,()=>f[p])),n[p]=t,r.emit("import",p,m)}(m,s);else{if("function"==typeof(h=m)||"number"==typeof h||"string"==typeof h||"boolean"==typeof h||null===h||(0,o.vO)(h)||(0,o.Zd)(h)||(0,o.C4)(h)||(0,o.fU)(h)||(0,o.OA)(h)||Array.isArray(h))!function(t,a,s){if(s.wrap&&"function"==typeof a&&(a=function(e){var t=function(){for(var t=[],n=0,i=arguments.length;n<i;n++){var a=arguments[n];t[n]=a&&a.valueOf()}return e.apply(r,t)};return e.transform&&(t.transform=e.transform),t}(a)),"function"==typeof(o=a)&&"string"==typeof o.signature&&(a=e(t,{[a.signature]:a})),e.isTypedFunction(r[t])&&e.isTypedFunction(a)){a=s.override?e(t,a.signatures):e(r[t],a),r[t]=a,delete n[t],i(t,a),r.emit("import",t,function(){return a});return}var o,u,c=void 0!==r[t],l=null==(u=r.Unit)?void 0:u.isValuelessUnit(t);if(!c&&!l||s.override){r[t]=a,delete n[t],i(t,a),r.emit("import",t,function(){return a});return}if(!s.silent)throw Error('Cannot import "'+t+'": already exists')}(d,m,s);else if(!s.silent)throw TypeError("Factory, Object, or Array expected")}}}}(p,0,a,s);return a.import=f,a.on("config",()=>{Object.values(s).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&f(e,{override:!0})})}),a.create=c9.bind(null,e),a.factory=c2.P9,a.import(Object.values((0,c3.rU)(e))),a.ArgumentsError=l.X,a.DimensionError=c.h,a.IndexError=u.d,a}},30236(e,t,r){"use strict";r.d(t,{h:()=>n});var n=(0,r(58321).P9)("replacer",[],()=>function(e,t){return"number"==typeof t&&(!Number.isFinite(t)||isNaN(t))?{mathjs:"number",value:String(t)}:"bigint"==typeof t?{mathjs:"bigint",value:String(t)}:t})},81189(e,t,r){"use strict";r.d(t,{m:()=>n});var n=(0,r(58321).P9)("reviver",["classes"],e=>{var{classes:t}=e;return function(e,r){var n=t[r&&r.mathjs];return n&&"function"==typeof n.fromJSON?n.fromJSON(r):r}})},81976(e,t,r){"use strict";r.d(t,{Ki:()=>u,LF:()=>o,Nk:()=>y,Qb:()=>A,Wf:()=>E,YD:()=>c,ZO:()=>p,b7:()=>d,bD:()=>D,dX:()=>w,gn:()=>v,gu:()=>s,l3:()=>m,lq:()=>h,nA:()=>f,qV:()=>g,qc:()=>b,sO:()=>N,wp:()=>x,zZ:()=>l});var n=r(51106),i="number",a="number, number";function s(e){return Math.abs(e)}function o(e,t){return e+t}function u(e,t){return e-t}function c(e,t){return e*t}function l(e){return-e}function p(e){return e}function f(e){return(0,n._n)(e)}function d(e){return e*e*e}function h(e){return Math.exp(e)}function m(e){return(0,n.IY)(e)}function g(e,t){if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Parameters in function lcm must be integer numbers");if(0===e||0===t)return 0;for(var r,i=e*t;0!==t;)t=e%(r=t),e=r;return Math.abs(i/e)}function v(e,t){return t?Math.log(e)/Math.log(t):Math.log(e)}function y(e){return(0,n.YL)(e)}function b(e){return(0,n.p6)(e)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=t<0;if(r&&(t=-t),0===t)throw Error("Root must be non-zero");if(e<0&&Math.abs(t)%2!=1)throw Error("Root must be odd when a is negative.");if(0===e)return r?1/0:0;if(!isFinite(e))return r?0:e;var n=Math.pow(Math.abs(e),1/t);return n=e<0?-n:n,r?1/n:n}function D(e){return(0,n._S)(e)}function w(e){return e*e}function N(e,t){var r,i,a,s=0,o=1,u=1,c=0;if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Parameters in function xgcd must be integer numbers");for(;t;)i=Math.floor(e/t),a=e-i*t,r=s,s=o-i*s,o=r,r=u,u=c-i*u,c=r,e=t,t=a;return e<0?[-e,-o,-c]:[e,e?o:0,c]}function A(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:Math.pow(e,t)}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(0,n.YN)(t)||t<0||t>15)throw Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat((0,n.Mg)(e,t))}s.signature=i,o.signature=a,u.signature=a,c.signature=a,l.signature=i,p.signature=i,f.signature=i,d.signature=i,h.signature=i,m.signature=i,g.signature=a,y.signature=i,b.signature=i,D.signature=i,w.signature=i,N.signature=a,A.signature=a},98253(e,t,r){"use strict";r.d(t,{Co:()=>u,F4:()=>c,IR:()=>s,O2:()=>a,QO:()=>l,Wv:()=>p,eg:()=>o});var n=r(51106),i="number, number";function a(e,t){if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Integers expected in function bitAnd");return e&t}function s(e){if(!(0,n.YN)(e))throw Error("Integer expected in function bitNot");return~e}function o(e,t){if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Integers expected in function bitOr");return e|t}function u(e,t){if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Integers expected in function bitXor");return e^t}function c(e,t){if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Integers expected in function leftShift");return e<<t}function l(e,t){if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Integers expected in function rightArithShift");return e>>t}function p(e,t){if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Integers expected in function rightLogShift");return e>>>t}a.signature=i,s.signature="number",o.signature=i,u.signature=i,c.signature=i,l.signature=i,p.signature=i},96625(e,t,r){"use strict";r.d(t,{DC:()=>i,JX:()=>o,R_:()=>a,f6:()=>s});var n="number, number";function i(e){return!e}function a(e,t){return!!(e||t)}function s(e,t){return!!e!=!!t}function o(e,t){return!!(e&&t)}i.signature="number",a.signature=n,s.signature=n,o.signature=n},11389(e,t,r){"use strict";r.d(t,{VX:()=>a,gU:()=>o,lm:()=>l,mn:()=>u,n0:()=>s});var n=r(51106),i=r(40924);function a(e){if((0,n.YN)(e))return e<=0?Number.isFinite(e)?1/0:NaN:e>171?1/0:(0,i.q)(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*a(1-e));if(e>=171.35)return 1/0;if(e>85){var t,r=e*e,u=r*e,c=u*e,l=c*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*r)-139/(51840*u)-571/(2488320*c)+163879/(0xc756000*l)+5246819/(0x11850f0000*l*e))}--e,t=o[0];for(var p=1;p<o.length;++p)t+=o[p]/(e+p);var f=e+s+.5;return Math.sqrt(2*Math.PI)*Math.pow(f,e+.5)*Math.exp(-f)*t}a.signature="number";var s=4.7421875,o=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,1580887032249125e-19,-21026444172410488e-20,21743961811521265e-20,-1643181065367639e-19,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],u=.9189385332046728,c=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function l(e){if(e<0)return NaN;if(0===e)return 1/0;if(!Number.isFinite(e))return e;if(e<.5)return Math.log(Math.PI/Math.sin(Math.PI*e))-l(1-e);for(var t=(e-=1)+5+.5,r=c[0],n=6;n>=1;n--)r+=c[n]/(e+n);return u+(e+.5)*Math.log(t)-t+Math.log(r)}l.signature="number"},74975(e,t,r){"use strict";r.d(t,{BD:()=>s,E4:()=>u,Hy:()=>b,LD:()=>g,OT:()=>m,OU:()=>c,Pk:()=>f,RR:()=>y,Xx:()=>v,ie:()=>a,iu:()=>d,lh:()=>o,o:()=>p,rc:()=>x,wX:()=>h,yQ:()=>l});var n=r(51106),i="number";function a(e){return(0,n.Fq)(e)}function s(e){return Math.atan(1/e)}function o(e){return Number.isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}function u(e){return Math.asin(1/e)}function c(e){var t=1/e;return Math.log(t+Math.sqrt(t*t+1))}function l(e){return Math.acos(1/e)}function p(e){var t=1/e;return Math.log(Math.sqrt(t*t-1)+t)}function f(e){return(0,n.yH)(e)}function d(e){return(0,n.rf)(e)}function h(e){return 1/Math.tan(e)}function m(e){var t=Math.exp(2*e);return(t+1)/(t-1)}function g(e){return 1/Math.sin(e)}function v(e){return 0===e?1/0:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*(0,n._S)(e)}function y(e){return 1/Math.cos(e)}function b(e){return 2/(Math.exp(e)+Math.exp(-e))}function x(e){return(0,n.L0)(e)}a.signature=i,s.signature=i,o.signature=i,u.signature=i,c.signature=i,l.signature=i,p.signature=i,f.signature=i,d.signature=i,h.signature=i,m.signature=i,g.signature=i,v.signature=i,y.signature=i,b.signature=i,x.signature=i},88183(e,t,r){"use strict";r.d(t,{F5:()=>a,Xo:()=>s,hD:()=>i}),r(51106);var n="number";function i(e){return e<0}function a(e){return e>0}function s(e){return Number.isNaN(e)}i.signature=n,a.signature=n,s.signature=n},87151(e,t,r){"use strict";r.d(t,{S:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("bigint",["typed"],e=>{var{typed:t}=e,r=t("bigint",{"":function(){return 0n},bigint:function(e){return e},number:function(e){return BigInt(e.toFixed())},BigNumber:function(e){return BigInt(e.round().toString())},Fraction:function(e){return BigInt(e.valueOf().toFixed())},"string | boolean":function(e){return BigInt(e)},null:function(e){return 0n},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))});return r.fromJSON=function(e){return BigInt(e.value)},r})},33557(e,t,r){"use strict";r.d(t,{g:()=>i});var n=r(76582),i=(0,r(58321).P9)("BigNumber",["?on","config"],e=>{var{on:t,config:r}=e,i=n.A.clone({precision:r.precision,modulo:n.A.EUCLID});return i.prototype=Object.create(i.prototype),i.prototype.type="BigNumber",i.prototype.isBigNumber=!0,i.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},i.fromJSON=function(e){return new i(e.value)},t&&t("config",function(e,t){e.precision!==t.precision&&i.config({precision:e.precision})}),i},{isClass:!0})},61300(e,t,r){"use strict";r.d(t,{_:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("bignumber",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("bignumber",{"":function(){return new r(0)},number:function(e){return new r(e+"")},string:function(e){var t=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(t){var n=t[2],i=r(t[1]),a=new r(2).pow(Number(n));if(i.gt(a.sub(1)))throw SyntaxError('String "'.concat(e,'" is out of range'));var s=new r(2).pow(Number(n)-1);return i.gte(s)?i.sub(a):i}return new r(e)},BigNumber:function(e){return e},bigint:function(e){return new r(e.toString())},Unit:t.referToSelf(e=>t=>{var r=t.clone();return r.value=e(t.value),r}),Fraction:function(e){return new r(String(e.n)).div(String(e.d)).times(String(e.s))},null:function(e){return new r(0)},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},15870(e,t,r){"use strict";r.d(t,{p:()=>s});var n=r(58321),i=r(76355),a="boolean",s=(0,n.P9)(a,["typed"],e=>{var{typed:t}=e;return t(a,{"":function(){return!1},boolean:function(e){return e},number:function(e){return!!e},null:function(e){return!1},BigNumber:function(e){return!e.isZero()},string:function(e){var t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;var r=Number(e);if(""!==e&&!isNaN(r))return!!r;throw Error('Cannot convert "'+e+'" to a boolean')},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},41653(e,t,r){"use strict";r.d(t,{k:()=>s});var n=r(14943),i=r(27716),a=r(93140),s=(0,r(58321).P9)("Chain",["?on","math","typed"],e=>{var{on:t,math:r,typed:s}=e;function o(e){if(!(this instanceof o))throw SyntaxError("Constructor must be called with the new operator");(0,n.o_)(e)?this.value=e.value:this.value=e}function u(e,t){(0,a.RZ)(o.prototype,e,function(){var e=t();if("function"==typeof e)return c(e)})}function c(e){return function(){if(0==arguments.length)return new o(e(this.value));for(var t=[this.value],r=0;r<arguments.length;r++)t[r+1]=arguments[r];if(s.isTypedFunction(e)){var n=s.resolve(e,t);if(1===n.params.length)throw Error("chain function "+e.name+" cannot match rest parameter between chain value and additional arguments.");return new o(n.implementation.apply(e,t))}return new o(e.apply(e,t))}}o.prototype.type="Chain",o.prototype.isChain=!0,o.prototype.done=function(){return this.value},o.prototype.valueOf=function(){return this.value},o.prototype.toString=function(){return(0,i.GP)(this.value)},o.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},o.fromJSON=function(e){return new o(e.value)},o.createProxy=function(e,t){if("string"==typeof e)"function"==typeof t&&(o.prototype[e]=c(t));else{var r=function(t){(0,a.mQ)(e,t)&&void 0===l[t]&&u(t,()=>e[t])};for(var n in e)r(n)}};var l={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return o.createProxy(r),t&&t("import",function(e,t,r){r||u(e,t)}),o},{isClass:!0})},10624(e,t,r){"use strict";r.d(t,{U:()=>a});var n=r(58321),i="chain",a=(0,n.P9)(i,["typed","Chain"],e=>{var{typed:t,Chain:r}=e;return t(i,{"":function(){return new r},any:function(e){return new r(e)}})})},3937(e,t,r){"use strict";r.d(t,{z:()=>d});let n=Math.cosh||function(e){return 1e-9>Math.abs(e)?1-e:(Math.exp(e)+Math.exp(-e))*.5},i=Math.sinh||function(e){return 1e-9>Math.abs(e)?e:(Math.exp(e)-Math.exp(-e))*.5},a=function(e,t){return((e=Math.abs(e))<(t=Math.abs(t))&&([e,t]=[t,e]),e<1e8)?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},s=function(){throw SyntaxError("Invalid Param")};function o(e,t){let r=Math.abs(e),n=Math.abs(t);return 0===e?Math.log(n):0===t?Math.log(r):r<3e3&&n<3e3?.5*Math.log(e*e+t*t):.5*Math.log((e*=.5)*e+(t*=.5)*t)+Math.LN2}let u={re:0,im:0},c=function(e,t){if(null==e)u.re=u.im=0;else if(void 0!==t)u.re=e,u.im=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)u.re=e.re,u.im=e.im;else if("abs"in e&&"arg"in e){if(!isFinite(e.abs)&&isFinite(e.arg))return l.INFINITY;u.re=e.abs*Math.cos(e.arg),u.im=e.abs*Math.sin(e.arg)}else if("r"in e&&"phi"in e){if(!isFinite(e.r)&&isFinite(e.phi))return l.INFINITY;u.re=e.r*Math.cos(e.phi),u.im=e.r*Math.sin(e.phi)}else 2===e.length?(u.re=e[0],u.im=e[1]):s();break;case"string":u.im=u.re=0;let r=e.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),n=1,i=0;null===r&&s();for(let e=0;e<r.length;e++){let t=r[e];" "===t||" "===t||"\n"===t||("+"===t?n++:"-"===t?i++:("i"===t||"I"===t?(n+i===0&&s()," "===r[e+1]||isNaN(r[e+1])?u.im+=parseFloat((i%2?"-":"")+"1"):(u.im+=parseFloat((i%2?"-":"")+r[e+1]),e++)):((n+i===0||isNaN(t))&&s(),"i"===r[e+1]||"I"===r[e+1]?(u.im+=parseFloat((i%2?"-":"")+t),e++):u.re+=parseFloat((i%2?"-":"")+t)),n=i=0))}n+i>0&&s();break;case"number":u.im=0,u.re=e;break;default:s()}return isNaN(u.re)||isNaN(u.im),u};function l(e,t){if(!(this instanceof l))return new l(e,t);let r=c(e,t);this.re=r.re,this.im=r.im}l.prototype={re:0,im:0,sign:function(){let e=a(this.re,this.im);return new l(this.re/e,this.im/e)},add:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?l.NAN:l.INFINITY:new l(this.re+r.re,this.im+r.im)},sub:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?l.NAN:l.INFINITY:new l(this.re-r.re,this.im-r.im)},mul:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),a=0===this.re&&0===this.im,s=0===r.re&&0===r.im;return n&&s||i&&a?l.NAN:n||i?l.INFINITY:0===r.im&&0===this.im?new l(this.re*r.re,0):new l(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),a=0===this.re&&0===this.im,s=0===r.re&&0===r.im;if(a&&s||n&&i)return l.NAN;if(s||n)return l.INFINITY;if(a||i)return l.ZERO;if(0===r.im)return new l(this.re/r.re,this.im/r.re);if(Math.abs(r.re)<Math.abs(r.im)){let e=r.re/r.im,t=r.re*e+r.im;return new l((this.re*e+this.im)/t,(this.im*e-this.re)/t)}{let e=r.im/r.re,t=r.im*e+r.re;return new l((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let r=c(e,t),n=0===this.re&&0===this.im;if(0===r.re&&0===r.im)return l.ONE;if(0===r.im){if(0===this.im&&this.re>0)return new l(Math.pow(this.re,r.re),0);else if(0===this.re)switch((r.re%4+4)%4){case 0:return new l(Math.pow(this.im,r.re),0);case 1:return new l(0,Math.pow(this.im,r.re));case 2:return new l(-Math.pow(this.im,r.re),0);case 3:return new l(0,-Math.pow(this.im,r.re))}}if(n&&r.re>0)return l.ZERO;let i=Math.atan2(this.im,this.re),a=o(this.re,this.im),s=Math.exp(r.re*a-r.im*i),u=r.im*a+r.re*i;return new l(s*Math.cos(u),s*Math.sin(u))},sqrt:function(){let e=this.re,t=this.im;if(0===t)if(e>=0)return new l(Math.sqrt(e),0);else return new l(0,Math.sqrt(-e));let r=Math.sqrt(.5*(a(e,t)+Math.abs(e))),n=Math.abs(t)/(2*r);return e>=0?new l(r,t<0?-n:n):new l(n,t<0?-r:r)},exp:function(){let e=Math.exp(this.re);return 0===this.im?new l(e,0):new l(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e,t=this.re,r=this.im;return new l(Math.expm1(t)*Math.cos(r)+-2*(e=Math.sin(.5*r))*e,Math.exp(t)*Math.sin(r))},log:function(){let e=this.re,t=this.im;return 0===t&&e>0?new l(Math.log(e),0):new l(o(e,t),Math.atan2(t,e))},abs:function(){return a(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new l(Math.sin(e)*n(t),Math.cos(e)*i(t))},cos:function(){let e=this.re,t=this.im;return new l(Math.cos(e)*n(t),-Math.sin(e)*i(t))},tan:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)+n(t);return new l(Math.sin(e)/r,i(t)/r)},cot:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)-n(t);return new l(-Math.sin(e)/r,i(t)/r)},sec:function(){let e=this.re,t=this.im,r=.5*n(2*t)+.5*Math.cos(2*e);return new l(Math.cos(e)*n(t)/r,Math.sin(e)*i(t)/r)},csc:function(){let e=this.re,t=this.im,r=.5*n(2*t)-.5*Math.cos(2*e);return new l(Math.sin(e)*n(t)/r,-Math.cos(e)*i(t)/r)},asin:function(){let e=this.re,t=this.im,r=new l(t*t-e*e+1,-2*e*t).sqrt(),n=new l(r.re-t,r.im+e).log();return new l(n.im,-n.re)},acos:function(){let e=this.re,t=this.im,r=new l(t*t-e*e+1,-2*e*t).sqrt(),n=new l(r.re-t,r.im+e).log();return new l(Math.PI/2-n.im,n.re)},atan:function(){let e=this.re,t=this.im;if(0===e){if(1===t)return new l(0,1/0);if(-1===t)return new l(0,-1/0)}let r=e*e+(1-t)*(1-t),n=new l((1-t*t-e*e)/r,-2*e/r).log();return new l(-.5*n.im,.5*n.re)},acot:function(){let e=this.re,t=this.im;if(0===t)return new l(Math.atan2(1,e),0);let r=e*e+t*t;return 0!==r?new l(e/r,-t/r).atan():new l(0!==e?e/0:0,0!==t?-t/0:0).atan()},asec:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new l(0,1/0);let r=e*e+t*t;return 0!==r?new l(e/r,-t/r).acos():new l(0!==e?e/0:0,0!==t?-t/0:0).acos()},acsc:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new l(Math.PI/2,1/0);let r=e*e+t*t;return 0!==r?new l(e/r,-t/r).asin():new l(0!==e?e/0:0,0!==t?-t/0:0).asin()},sinh:function(){let e=this.re,t=this.im;return new l(i(e)*Math.cos(t),n(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new l(n(e)*Math.cos(t),i(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,r=n(e)+Math.cos(t);return new l(i(e)/r,Math.sin(t)/r)},coth:function(){let e=2*this.re,t=2*this.im,r=n(e)-Math.cos(t);return new l(i(e)/r,-Math.sin(t)/r)},csch:function(){let e=this.re,t=this.im,r=Math.cos(2*t)-n(2*e);return new l(-2*i(e)*Math.cos(t)/r,2*n(e)*Math.sin(t)/r)},sech:function(){let e=this.re,t=this.im,r=Math.cos(2*t)+n(2*e);return new l(2*n(e)*Math.cos(t)/r,-2*i(e)*Math.sin(t)/r)},asinh:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new l(0,0);let t=Math.abs(e),r=Math.log(t+Math.sqrt(t*t+1));return new l(e<0?-r:r,0)}let r=new l(e*e-t*t+1,2*e*t).sqrt();return new l(e+r.re,t+r.im).log()},acosh:function(){let e=this.re,t=this.im;if(0===t){if(e>1)return new l(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new l(Math.log(-e+t),Math.PI)}return new l(0,Math.acos(e))}let r=new l(e-1,t).sqrt(),n=new l(e+1,t).sqrt();return new l(e+r.re*n.re-r.im*n.im,t+r.re*n.im+r.im*n.re).log()},atanh:function(){let e=this.re,t=this.im;if(0===t)return 0===e?new l(0,0):1===e?new l(1/0,0):-1===e?new l(-1/0,0):-1<e&&e<1?new l(.5*Math.log((1+e)/(1-e)),0):e>1?new l(.5*Math.log((e+1)/(e-1)),-Math.PI/2):new l(.5*Math.log(-((1+e)/(1-e))),Math.PI/2);let r=1-e,n=1+e,i=r*r+t*t;if(0===i)return new l(-1!==e?e/0:0,0!==t?t/0:0);let a=(n*r-t*t)/i,s=(t*r+n*t)/i;return new l(o(a,s)/2,Math.atan2(s,a)/2)},acoth:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new l(0,Math.PI/2);let r=e*e+t*t;return 0!==r?new l(e/r,-t/r).atanh():new l(0!==e?e/0:0,0!==t?-t/0:0).atanh()},acsch:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new l(1/0,0);let t=1/e;return new l(Math.log(t+Math.sqrt(t*t+1)),0)}let r=e*e+t*t;return 0!==r?new l(e/r,-t/r).asinh():new l(0!==e?e/0:0,0!==t?-t/0:0).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return l.INFINITY;let r=e*e+t*t;return 0!==r?new l(e/r,-t/r).acosh():new l(0!==e?e/0:0,0!==t?-t/0:0).acosh()},inverse:function(){if(this.isZero())return l.INFINITY;if(this.isInfinite())return l.ZERO;let e=this.re,t=this.im,r=e*e+t*t;return new l(e/r,-t/r)},conjugate:function(){return new l(this.re,-this.im)},neg:function(){return new l(-this.re,-this.im)},ceil:function(e){return e=Math.pow(10,e||0),new l(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=Math.pow(10,e||0),new l(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=Math.pow(10,e||0),new l(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let r=c(e,t);return Math.abs(r.re-this.re)<=l.EPSILON&&Math.abs(r.im-this.im)<=l.EPSILON},clone:function(){return new l(this.re,this.im)},toString:function(){let e=this.re,t=this.im,r="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(e)<l.EPSILON&&(e=0),Math.abs(t)<l.EPSILON&&(t=0),0===t)?r+e:(0!==e?(r+=e,r+=" ",t<0?(t=-t,r+="-"):r+="+",r+=" "):t<0&&(t=-t,r+="-"),1!==t&&(r+=t),r+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},l.ZERO=new l(0,0),l.ONE=new l(1,0),l.I=new l(0,1),l.PI=new l(Math.PI,0),l.E=new l(Math.E,0),l.INFINITY=new l(1/0,1/0),l.NAN=new l(NaN,NaN),l.EPSILON=1e-15;var p=r(51106),f=r(14943),d=(0,r(58321).P9)("Complex",[],()=>(Object.defineProperty(l,"name",{value:"Complex"}),l.prototype.constructor=l,l.prototype.type="Complex",l.prototype.isComplex=!0,l.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},l.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},l.prototype.format=function(e){var t=this.im,r=this.re,n=(0,p.GP)(this.re,e),i=(0,p.GP)(this.im,e),a=(0,f.Et)(e)?e:e?e.precision:null;if(null!==a){var s=Math.pow(10,-a);Math.abs(r/t)<s&&(r=0),Math.abs(t/r)<s&&(t=0)}return 0===t?n:0===r?1===t?"i":-1===t?"-i":i+"i":t<0?-1===t?n+" - i":n+" - "+i.substring(1)+"i":1===t?n+" + i":n+" + "+i+"i"},l.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if("object"==typeof t)return l(t);throw TypeError("Input has to be an object with r and phi keys.");case 2:var r=arguments[0],n=arguments[1];if((0,f.Et)(r)){if((0,f.vO)(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),(0,f.Et)(n))return new l({r,phi:n});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},l.prototype.valueOf=l.prototype.toString,l.fromJSON=function(e){return new l(e)},l.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},l),{isClass:!0})},40174(e,t,r){"use strict";r.d(t,{X:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("complex",["typed","Complex"],e=>{var{typed:t,Complex:r}=e;return t("complex",{"":function(){return r.ZERO},number:function(e){return new r(e,0)},"number, number":function(e,t){return new r(e,t)},"BigNumber, BigNumber":function(e,t){return new r(e.toNumber(),t.toNumber())},Fraction:function(e){return new r(e.valueOf(),0)},Complex:function(e){return e.clone()},string:function(e){return r(e)},null:function(e){return r(0)},Object:function(e){if("re"in e&&"im"in e)return new r(e.re,e.im);if("r"in e&&"phi"in e||"abs"in e&&"arg"in e)return new r(e);throw Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},30581(e,t,r){"use strict";r.d(t,{z:()=>D}),"u"<typeof BigInt&&(BigInt=function(e){if(isNaN(e))throw Error("");return e});let n=BigInt(0),i=BigInt(1),a=BigInt(2),s=BigInt(3),o=BigInt(5),u=BigInt(10);BigInt(Number.MAX_SAFE_INTEGER);let c={s:i,n:n,d:i};function l(e,t){try{e=BigInt(e)}catch(e){throw b()}return e*t}function p(e){return"bigint"==typeof e?e:Math.floor(e)}function f(e,t){if(t===n)throw y();let r=Object.create(v.prototype);r.s=e<n?-i:i;let a=g(e=e<n?-e:e,t);return r.n=e/a,r.d=t/a,r}let d=[a*a,a,a*a,a,a*a,a*s,a,a*s];function h(e){let t=Object.create(null);if(e<=i)return t[e]=i,t;let r=e=>{t[e]=(t[e]||n)+i};for(;e%a===n;)r(a),e/=a;for(;e%s===n;)r(s),e/=s;for(;e%o===n;)r(o),e/=o;for(let t=0,i=a+o;i*i<=e;){for(;e%i===n;)r(i),e/=i;i+=d[t],t=t+1&7}return e>i&&r(e),t}let m=function(e,t){let r=n,a=i,s=i;if(null==e);else if(void 0!==t){if("bigint"==typeof e)r=e;else if(isNaN(e))throw b();else if(e%1!=0)throw x();else r=BigInt(e);if("bigint"==typeof t)a=t;else if(isNaN(t))throw b();else if(t%1!=0)throw x();else a=BigInt(t);s=r*a}else if("object"==typeof e){if("d"in e&&"n"in e)r=BigInt(e.n),a=BigInt(e.d),"s"in e&&(r*=BigInt(e.s));else if(0 in e)r=BigInt(e[0]),1 in e&&(a=BigInt(e[1]));else if("bigint"==typeof e)r=e;else throw b();s=r*a}else if("number"==typeof e){if(isNaN(e))throw b();if(e<0&&(s=-i,e=-e),e%1==0)r=BigInt(e);else{let t=1,n=0,i=1,s=1,o=1;for(e>=1&&(t=10**Math.floor(1+Math.log10(e)),e/=t);i<=1e7&&o<=1e7;){let t=(n+s)/(i+o);if(e===t){i+o<=1e7?(r=n+s,a=i+o):o>i?(r=s,a=o):(r=n,a=i);break}e>t?(n+=s,i+=o):(s+=n,o+=i),i>1e7?(r=s,a=o):(r=n,a=i)}r=BigInt(r)*BigInt(t),a=BigInt(a)}}else if("string"==typeof e){let t=0,o=n,c=n,p=n,f=i,d=i,h=e.replace(/_/g,"").match(/\d+|./g);if(null===h)throw b();if("-"===h[t]?(s=-i,t++):"+"===h[t]&&t++,h.length===t+1?c=l(h[t++],s):"."===h[t+1]||"."===h[t]?("."!==h[t]&&(o=l(h[t++],s)),(++t+1===h.length||"("===h[t+1]&&")"===h[t+3]||"'"===h[t+1]&&"'"===h[t+3])&&(c=l(h[t],s),f=u**BigInt(h[t].length),t++),("("===h[t]&&")"===h[t+2]||"'"===h[t]&&"'"===h[t+2])&&(p=l(h[t+1],s),d=u**BigInt(h[t+1].length)-i,t+=3)):"/"===h[t+1]||":"===h[t+1]?(c=l(h[t],s),f=l(h[t+2],i),t+=3):"/"===h[t+3]&&" "===h[t+1]&&(o=l(h[t],s),c=l(h[t+2],s),f=l(h[t+4],i),t+=5),h.length<=t)s=r=p+(a=f*d)*o+d*c;else throw b()}else if("bigint"==typeof e)r=e,s=e,a=i;else throw b();if(a===n)throw y();c.s=s<n?-i:i,c.n=r<n?-r:r,c.d=a<n?-a:a};function g(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function v(e,t){if(m(e,t),!(this instanceof v))return f(c.s*c.n,c.d);e=g(c.d,c.n),this.s=c.s,this.n=c.n/e,this.d=c.d/e}let y=function(){return Error("Division by Zero")},b=function(){return Error("Invalid argument")},x=function(){return Error("Parameters must be integer")};v.prototype={s:i,n:n,d:i,abs:function(){return f(this.n,this.d)},neg:function(){return f(-this.s*this.n,this.d)},add:function(e,t){return m(e,t),f(this.s*this.n*c.d+c.s*this.d*c.n,this.d*c.d)},sub:function(e,t){return m(e,t),f(this.s*this.n*c.d-c.s*this.d*c.n,this.d*c.d)},mul:function(e,t){return m(e,t),f(this.s*c.s*this.n*c.n,this.d*c.d)},div:function(e,t){return m(e,t),f(this.s*c.s*this.n*c.d,this.d*c.n)},clone:function(){return f(this.s*this.n,this.d)},mod:function(e,t){if(void 0===e)return f(this.s*this.n%this.d,i);if(m(e,t),n===c.n*this.d)throw y();return f(this.s*(c.d*this.n)%(c.n*this.d),c.d*this.d)},gcd:function(e,t){return m(e,t),f(g(c.n,this.n)*g(c.d,this.d),c.d*this.d)},lcm:function(e,t){return(m(e,t),c.n===n&&this.n===n)?f(n,i):f(c.n*this.n,g(c.n,this.n)*g(c.d,this.d))},inverse:function(){return f(this.s*this.d,this.n)},pow:function(e,t){if(m(e,t),c.d===i)if(c.s<n)return f((this.s*this.d)**c.n,this.n**c.n);else return f((this.s*this.n)**c.n,this.d**c.n);if(this.s<n)return null;let r=h(this.n),a=h(this.d),s=i,o=i;for(let e in r)if("1"!==e){if("0"===e){s=n;break}if(r[e]*=c.n,r[e]%c.d!==n)return null;r[e]/=c.d,s*=BigInt(e)**r[e]}for(let e in a)if("1"!==e){if(a[e]*=c.n,a[e]%c.d!==n)return null;a[e]/=c.d,o*=BigInt(e)**a[e]}return c.s<n?f(o,s):f(s,o)},log:function(e,t){if(m(e,t),this.s<=n||c.s<=n)return null;let r=Object.create(null),i=h(c.n),a=h(c.d),s=h(this.n),o=h(this.d);for(let e in a)i[e]=(i[e]||n)-a[e];for(let e in o)s[e]=(s[e]||n)-o[e];for(let e in i)"1"!==e&&(r[e]=!0);for(let e in s)"1"!==e&&(r[e]=!0);let u=null,l=null;for(let e in r){let t=i[e]||n,r=s[e]||n;if(t===n){if(r!==n)return null;continue}let a=r,o=t,c=g(a,o);if(a/=c,o/=c,null===u&&null===l)u=a,l=o;else if(a*l!=u*o)return null}return null!==u&&null!==l?f(u,l):null},equals:function(e,t){return m(e,t),this.s*this.n*c.d==c.s*c.n*this.d},lt:function(e,t){return m(e,t),this.s*this.n*c.d<c.s*c.n*this.d},lte:function(e,t){return m(e,t),this.s*this.n*c.d<=c.s*c.n*this.d},gt:function(e,t){return m(e,t),this.s*this.n*c.d>c.s*c.n*this.d},gte:function(e,t){return m(e,t),this.s*this.n*c.d>=c.s*c.n*this.d},compare:function(e,t){m(e,t);let r=this.s*this.n*c.d-c.s*c.n*this.d;return(n<r)-(r<n)},ceil:function(e){return e=u**BigInt(e||0),f(p(this.s*e*this.n/this.d)+(e*this.n%this.d>n&&this.s>=n?i:n),e)},floor:function(e){return e=u**BigInt(e||0),f(p(this.s*e*this.n/this.d)-(e*this.n%this.d>n&&this.s<n?i:n),e)},round:function(e){return e=u**BigInt(e||0),f(p(this.s*e*this.n/this.d)+this.s*((this.s>=n?i:n)+a*(e*this.n%this.d)>this.d?i:n),e)},roundTo:function(e,t){m(e,t);let r=this.n*c.d,n=this.d*c.n,i=r%n,a=p(r/n);return i+i>=n&&a++,f(this.s*a*c.n,c.d)},divisible:function(e,t){return m(e,t),c.n!==n&&this.n*c.d%(c.n*this.d)===n},valueOf:function(){return Number(this.s*this.n)/Number(this.d)},toString:function(e=15){let t=this.n,r=this.d,s=function(e){for(;e%a===n;e/=a);for(;e%o===n;e/=o);if(e===i)return n;let t=u%e,r=1;for(;t!==i;r++)if(t=t*u%e,r>2e3)return n;return BigInt(r)}(r),c=function(e,t){let r=i,a=function(e,t,r){let a=i;for(;t>n;e=e*e%r,t>>=i)t&i&&(a=a*e%r);return a}(u,t,e);for(let t=0;t<300;t++){if(r===a)return BigInt(t);r=r*u%e,a=a*u%e}return 0}(r,s),l=this.s<n?"-":"";if(l+=p(t/r),t%=r,(t*=u)&&(l+="."),s){for(let e=c;e--;)l+=p(t/r),t%=r,t*=u;l+="(";for(let e=s;e--;)l+=p(t/r),t%=r,t*=u;l+=")"}else for(let n=e;t&&n--;)l+=p(t/r),t%=r,t*=u;return l},toFraction:function(e=!1){let t=this.n,r=this.d,a=this.s<n?"-":"";if(r===i)a+=t;else{let i=p(t/r);e&&i>n&&(a+=i,a+=" ",t%=r),a+=t,a+="/",a+=r}return a},toLatex:function(e=!1){let t=this.n,r=this.d,a=this.s<n?"-":"";if(r===i)a+=t;else{let i=p(t/r);e&&i>n&&(a+=i,t%=r),a+="\\frac{",a+=t,a+="}{",a+=r,a+="}"}return a},toContinued:function(){let e=this.n,t=this.d,r=[];for(;t;){r.push(p(e/t));let n=e%t;e=t,t=n}return r},simplify:function(e=.001){let t=BigInt(Math.ceil(1/e)),r=this.abs(),n=r.toContinued();for(let e=1;e<n.length;e++){let a=f(n[e-1],i);for(let t=e-2;t>=0;t--)a=a.inverse().add(n[t]);let s=a.sub(r);if(s.n*t<s.d)return a.mul(this.s)}return this}};var D=(0,r(58321).P9)("Fraction",[],()=>(Object.defineProperty(v,"name",{value:"Fraction"}),v.prototype.constructor=v,v.prototype.type="Fraction",v.prototype.isFraction=!0,v.prototype.toJSON=function(){return{mathjs:"Fraction",n:String(this.s*this.n),d:String(this.d)}},v.fromJSON=function(e){return new v(e)},v),{isClass:!0})},75654(e,t,r){"use strict";r.d(t,{l:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("fraction",["typed","Fraction"],e=>{var{typed:t,Fraction:r}=e;return t("fraction",{number:function(e){if(!Number.isFinite(e)||isNaN(e))throw Error(e+" cannot be represented as a fraction");return new r(e)},string:function(e){return new r(e)},"number, number":function(e,t){return new r(e,t)},"bigint, bigint":function(e,t){return new r(e,t)},null:function(e){return new r(0)},BigNumber:function(e){return new r(e.toString())},bigint:function(e){return new r(e.toString())},Fraction:function(e){return e},Unit:t.referToSelf(e=>t=>{var r=t.clone();return r.value=e(t.value),r}),Object:function(e){return new r(e)},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},35520(e,t,r){"use strict";r.d(t,{j:()=>p});var n=r(14943),i=r(35838),a=r(27716),s=r(51106),o=r(93140),u=r(71380),c=r(58321),l=r(86383),p=(0,c.P9)("DenseMatrix",["Matrix","config"],e=>{var{Matrix:t,config:r}=e;function c(e,t){if(!(this instanceof c))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,n.Kg)(t))throw Error("Invalid datatype: "+t);if((0,n.OA)(e))"DenseMatrix"===e.type?(this._data=(0,o.o8)(e._data),this._size=(0,o.o8)(e._size)):(this._data=e.toArray(),this._size=e.size()),this._datatype=t||e._datatype;else if(e&&(0,n.cy)(e.data)&&(0,n.cy)(e.size))this._data=e.data,this._size=e.size,(0,i.tf)(this._data,this._size),this._datatype=t||e.datatype;else if((0,n.cy)(e))this._data=function e(t){return(0,n.OA)(t)?e(t.valueOf()):(0,n.cy)(t)?t.map(e):t}(e),this._size=(0,i.LO)(this._data),(0,i.tf)(this._data,this._size),this._datatype=t;else if(e)throw TypeError("Unsupported type of data ("+(0,n.QP)(e)+")");else this._data=[],this._size=[0],this._datatype=t}function p(e,t,r){if(0===t.length){for(var a=e._data;(0,n.cy)(a);)a=a[0];return a}return e._size=t.slice(0),e._data=(0,i.XR)(e._data,e._size,r),e}function f(e,t,r){for(var n=e._size.slice(0),i=!1;n.length<t.length;)n.push(0),i=!0;for(var a=0,s=t.length;a<s;a++)t[a]>n[a]&&(n[a]=t[a],i=!0);i&&p(e,n,r)}return c.prototype=new t,c.prototype.createDenseMatrix=function(e,t){return new c(e,t)},Object.defineProperty(c,"name",{value:"DenseMatrix"}),c.prototype.constructor=c,c.prototype.type="DenseMatrix",c.prototype.isDenseMatrix=!0,c.prototype.getDataType=function(){return(0,i.ig)(this._data,n.QP)},c.prototype.storage=function(){return"dense"},c.prototype.datatype=function(){return this._datatype},c.prototype.create=function(e,t){return new c(e,t)},c.prototype.subset=function(e,t,a){switch(arguments.length){case 1:return function(e,t){if(!(0,n.nw)(t))throw TypeError("Invalid index");if(r.legacySubset?t.size().every(e=>1===e):t.isScalar())return e.get(t.min());var a,s,o,l,p=t.size();if(p.length!==e._size.length)throw new u.h(p.length,e._size.length);for(var f=t.min(),d=t.max(),h=0,m=e._size.length;h<m;h++)(0,i.r7)(f[h],e._size[h]),(0,i.r7)(d[h],e._size[h]);var g=new c,v=(a=e._data,l=Array(o=(s=t).size().length-1),{data:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=s.dimension(r);function u(e,t){return(0,n.Et)(e)?t(e):e.map(t).valueOf()}return((0,n.Et)(a)?l[r]=null:l[r]=a.size()[0],r<o)?u(a,n=>((0,i.r7)(n,t.length),e(t[n],r+1))):u(a,e=>((0,i.r7)(e,t.length),t[e]))}(a),size:l.filter(e=>null!==e)});return g._size=v.size,g._datatype=e._datatype,g._data=v.data,r.legacySubset?g.reshape(t.size()):g}(this,e);case 2:case 3:return function(e,t,r,a){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var s,c=t.size(),l=t.isScalar();if((0,n.OA)(r)?(s=r.size(),r=r.valueOf()):s=(0,i.LO)(r),l){if(0!==s.length)throw TypeError("Scalar expected");e.set(t.min(),r,a)}else{if(!(0,o.QO)(s,c)){if(0===s.length)r=(0,i.hO)([r],c);else try{r=(0,i.hO)(r,c)}catch(e){}s=(0,i.LO)(r)}if(c.length<e._size.length)throw new u.h(c.length,e._size.length,"<");if(s.length<c.length){for(var p,d,h,m,g=0,v=0;1===c[g]&&1===s[g];)g++;for(;1===c[g];)v++,g++;r=(0,i.iD)(r,c.length,v,s)}if(!(0,o.QO)(c,s))throw new u.h(c,s,">");f(e,t.max().map(function(e){return e+1}),a),p=e._data,d=t,h=r,m=d.size().length-1,function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=d.dimension(a),o=(n,s)=>{(0,i.r7)(n,t.length),e(t[n],r[s[0]],a+1)},u=(e,n)=>{(0,i.r7)(e,t.length),t[e]=r[n[0]]};a<m?(0,n.Et)(s)?o(s,[0]):s.forEach(o):(0,n.Et)(s)?u(s,[0]):s.forEach(u)}(p,h)}return e}(this,e,t,a);default:throw SyntaxError("Wrong number of arguments")}},c.prototype.get=function(e){return(0,i.Jt)(this._data,e)},c.prototype.set=function(e,t,r){if(!(0,n.cy)(e))throw TypeError("Array expected");if(e.length<this._size.length)throw new u.h(e.length,this._size.length,"<");f(this,e.map(function(e){return e+1}),r);var a,s,o,c=this._data;for(a=0,s=e.length-1;a<s;a++)o=e[a],(0,i.r7)(o,c.length),c=c[o];return o=e[e.length-1],(0,i.r7)(o,c.length),c[o]=t,this},c.prototype.resize=function(e,t,r){if(!(0,n.P3)(e))throw TypeError("Array or Matrix expected");var i=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);return p(r?this.clone():this,i,t)},c.prototype.reshape=function(e,t){var r=t?this.clone():this;r._data=(0,i.tQ)(r._data,e);var n=r._size.reduce((e,t)=>e*t);return r._size=(0,i.cs)(e,n),r},c.prototype.clone=function(){return new c({data:(0,o.o8)(this._data),size:(0,o.o8)(this._size),datatype:this._datatype})},c.prototype.size=function(){return this._size.slice(0)},c.prototype.map=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,n=r._size.length-1;if(n<0)return r.clone();var i=(0,l.r)(e,r,"map",t),a=i.fn,s=r.create(void 0,r._datatype);if(s._size=r._size,t||i.isUnary)return s._data=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=Array(t.length);if(r<n)for(var s=0;s<t.length;s++)i[s]=e(t[s],r+1);else for(var o=0;o<t.length;o++)i[o]=a(t[o]);return i}(r._data),s;if(0===n){for(var o=r.valueOf(),u=Array(o.length),c=0;c<o.length;c++)u[c]=a(o[c],[c],r);return s._data=u,s}var p=[];return s._data=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=Array(t.length);if(i<n)for(var o=0;o<t.length;o++)p[i]=o,s[o]=e(t[o],i+1);else for(var u=0;u<t.length;u++)p[i]=u,s[u]=a(t[u],p.slice(),r);return s}(r._data),s},c.prototype.forEach=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,n=r._size.length-1;if(!(n<0)){var i=(0,l.r)(e,r,"map",t),a=i.fn;if(t||i.isUnary)return void function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(r<n)for(var i=0;i<t.length;i++)e(t[i],r+1);else for(var s=0;s<t.length;s++)a(t[s])}(r._data);if(0===n){for(var s=0;s<r._data.length;s++)a(r._data[s],[s],r);return}var o=[];!function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(i<n)for(var s=0;s<t.length;s++)o[i]=s,e(t[s],i+1);else for(var u=0;u<t.length;u++)o[i]=u,a(t[u],o.slice(),r)}(r._data)}},c.prototype[Symbol.iterator]=function*(){var e=this._size.length-1;if(!(e<0)){if(0===e){for(var t=0;t<this._data.length;t++)yield{value:this._data[t],index:[t]};return}for(var r=Array(e+1).fill(0),n=this._size.reduce((e,t)=>e*t,1),i=0;i<n;i++){for(var a=this._data,s=0;s<e;s++)a=a[r[s]];yield{value:a[r[e]],index:r.slice()};for(var o=e;o>=0&&(r[o]++,!(r[o]<this._size[o]));o--)r[o]=0}}},c.prototype.rows=function(){var e=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var t of this._data)e.push(new c([t],this._datatype));return e},c.prototype.columns=function(){var e=this,t=[],r=this.size();if(2!==r.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var n=this._data,i=function(r){var i=n.map(e=>[e[r]]);t.push(new c(i,e._datatype))},a=0;a<r[1];a++)i(a);return t},c.prototype.toArray=function(){return(0,o.o8)(this._data)},c.prototype.valueOf=function(){return this._data},c.prototype.format=function(e){return(0,a.GP)(this._data,e)},c.prototype.toString=function(){return(0,a.GP)(this._data)},c.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},c.prototype.diagonal=function(e){if(e){if((0,n.C4)(e)&&(e=e.toNumber()),!(0,n.Et)(e)||!(0,s.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;for(var t=e>0?e:0,r=e<0?-e:0,i=Math.min(this._size[0]-r,this._size[1]-t),a=[],o=0;o<i;o++)a[o]=this._data[o+r][o+t];return new c({data:a,size:[i],datatype:this._datatype})},c.diagonal=function(e,t,r,a){if(!(0,n.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,n.C4)(e)&&(e=e.toNumber()),!(0,n.Et)(e)||!(0,s.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),r){if((0,n.C4)(r)&&(r=r.toNumber()),!(0,n.Et)(r)||!(0,s.YN)(r))throw TypeError("The parameter k must be an integer number")}else r=0;var o,u=r>0?r:0,l=r<0?-r:0,p=e[0],f=e[1],d=Math.min(p-l,f-u);if((0,n.cy)(t)){if(t.length!==d)throw Error("Invalid value array length");o=function(e){return t[e]}}else if((0,n.OA)(t)){var h=t.size();if(1!==h.length||h[0]!==d)throw Error("Invalid matrix length");o=function(e){return t.get([e])}}else o=function(){return t};a||(a=(0,n.C4)(o(0))?o(0).mul(0):0);var m=[];if(e.length>0){m=(0,i.XR)(m,e,a);for(var g=0;g<d;g++)m[g+l][g+u]=o(g)}return new c({data:m,size:[p,f]})},c.fromJSON=function(e){return new c(e)},c.prototype.swapRows=function(e,t){if(!(0,n.Et)(e)||!(0,s.YN)(e)||!(0,n.Et)(t)||!(0,s.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,i.r7)(e,this._size[0]),(0,i.r7)(t,this._size[0]),c._swapRows(e,t,this._data),this},c._swapRows=function(e,t,r){var n=r[e];r[e]=r[t],r[t]=n},c},{isClass:!0})},37648(e,t,r){"use strict";r.d(t,{B:()=>n});var n=(0,r(58321).P9)("FibonacciHeap",["smaller","larger"],e=>{var{smaller:t,larger:r}=e,n=1/Math.log((1+Math.sqrt(5))/2);function i(){if(!(this instanceof i))throw SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function a(e,t,r){t.left.right=t.right,t.right.left=t.left,r.degree--,r.child===t&&(r.child=t.right),0===r.degree&&(r.child=null),t.left=e,t.right=e.right,e.right=t,t.right.left=t,t.parent=null,t.mark=!1}i.prototype.type="FibonacciHeap",i.prototype.isFibonacciHeap=!0,i.prototype.insert=function(e,r){var n={key:e,value:r,degree:0};if(this._minimum){var i=this._minimum;n.left=i,n.right=i.right,i.right=n,n.right.left=n,t(e,i.key)&&(this._minimum=n)}else n.left=n,n.right=n,this._minimum=n;return this._size++,n},i.prototype.size=function(){return this._size},i.prototype.clear=function(){this._minimum=null,this._size=0},i.prototype.isEmpty=function(){return 0===this._size},i.prototype.extractMinimum=function(){var e=this._minimum;if(null===e)return e;for(var i=this._minimum,a=e.degree,o=e.child;a>0;){var u=o.right;o.left.right=o.right,o.right.left=o.left,o.left=i,o.right=i.right,i.right=o,o.right.left=o,o.parent=null,o=u,a--}return e.left.right=e.right,e.right.left=e.left,i=e===e.right?null:function(e,i){var a,o=Math.floor(Math.log(i)*n)+1,u=Array(o),c=0,l=e;if(l)for(c++,l=l.right;l!==e;)c++,l=l.right;for(;c>0;){for(var p=l.degree,f=l.right;a=u[p];){if(r(l.key,a.key)){var d=a;a=l,l=d}s(a,l),u[p]=null,p++}u[p]=l,l=f,c--}e=null;for(var h=0;h<o;h++)(a=u[h])&&(e?(a.left.right=a.right,a.right.left=a.left,a.left=e,a.right=e.right,e.right=a,a.right.left=a,t(a.key,e.key)&&(e=a)):e=a);return e}(i=e.right,this._size),this._size--,this._minimum=i,e},i.prototype.remove=function(e){var r,n,i;this._minimum=(r=this._minimum,(n=e).key=-1,(i=n.parent)&&t(n.key,i.key)&&(a(r,n,i),function e(t,r){var n=r.parent;n&&(r.mark?(a(t,r,n),e(n)):r.mark=!0)}(r,i)),t(n.key,r.key)&&(r=n),r),this.extractMinimum()};var s=function(e,t){e.left.right=e.right,e.right.left=e.left,e.parent=t,t.child?(e.left=t.child,e.right=t.child.right,t.child.right=e,e.right.left=e):(t.child=e,e.right=e,e.left=e),t.degree++,e.mark=!1};return i},{isClass:!0})},32854(e,t,r){"use strict";r.d(t,{r:()=>a});var n=r(14943),i=r(93140),a=(0,r(58321).P9)("ImmutableDenseMatrix",["smaller","DenseMatrix"],e=>{var{smaller:t,DenseMatrix:r}=e;function a(e,t){if(!(this instanceof a))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,n.Kg)(t))throw Error("Invalid datatype: "+t);if((0,n.OA)(e)||(0,n.cy)(e)){var i=new r(e,t);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(e&&(0,n.cy)(e.data)&&(0,n.cy)(e.size))this._data=e.data,this._size=e.size,this._datatype=e.datatype,this._min=void 0!==e.min?e.min:null,this._max=void 0!==e.max?e.max:null;else if(e)throw TypeError("Unsupported type of data ("+(0,n.QP)(e)+")");else this._data=[],this._size=[0],this._datatype=t,this._min=null,this._max=null}return a.prototype=new r,a.prototype.type="ImmutableDenseMatrix",a.prototype.isImmutableDenseMatrix=!0,a.prototype.subset=function(e){switch(arguments.length){case 1:var t=r.prototype.subset.call(this,e);if((0,n.OA)(t))return new a({data:t._data,size:t._size,datatype:t._datatype});return t;case 2:case 3:throw Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw SyntaxError("Wrong number of arguments")}},a.prototype.set=function(){throw Error("Cannot invoke set on an Immutable Matrix instance")},a.prototype.resize=function(){throw Error("Cannot invoke resize on an Immutable Matrix instance")},a.prototype.reshape=function(){throw Error("Cannot invoke reshape on an Immutable Matrix instance")},a.prototype.clone=function(){return new a({data:(0,i.o8)(this._data),size:(0,i.o8)(this._size),datatype:this._datatype})},a.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},a.fromJSON=function(e){return new a(e)},a.prototype.swapRows=function(){throw Error("Cannot invoke swapRows on an Immutable Matrix instance")},a.prototype.min=function(){if(null===this._min){var e=null;this.forEach(function(r){(null===e||t(r,e))&&(e=r)}),this._min=null!==e?e:void 0}return this._min},a.prototype.max=function(){if(null===this._max){var e=null;this.forEach(function(r){(null===e||t(e,r))&&(e=r)}),this._max=null!==e?e:void 0}return this._max},a},{isClass:!0})},62205(e,t,r){"use strict";r.d(t,{w:()=>n});var n=(0,r(58321).P9)("Matrix",[],()=>{function e(){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,r){throw Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,r){throw Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0})},58873(e,t,r){"use strict";r.d(t,{T:()=>s});var n=r(14943),i=r(93140),a=r(51106),s=(0,r(58321).P9)("Index",["ImmutableDenseMatrix","getMatrixDataType"],e=>{var{ImmutableDenseMatrix:t,getMatrixDataType:r}=e;function s(){if(!(this instanceof s))throw SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var e=0,t=arguments.length;e<t;e++){var i=e<0||arguments.length<=e?void 0:arguments[e],a=(0,n.cy)(i),c=(0,n.OA)(i),l=typeof i,p=null;if((0,n._Z)(i))this._dimensions.push(i),this._isScalar=!1;else if(a||c){var f=void 0;this._isScalar=!1,"boolean"===r(i)?(a&&(f=u(o(i).valueOf())),c&&(f=u(o(i._data).valueOf())),p=i.valueOf().length):f=u(i.valueOf()),this._dimensions.push(f)}else if("number"===l)this._dimensions.push(i);else if("bigint"===l)this._dimensions.push(Number(i));else if("string"===l)this._dimensions.push(i);else throw TypeError("Dimension must be an Array, Matrix, number, bigint, string, or Range");this._sourceSize.push(p)}}function u(e){for(var r=0,i=e.length;r<i;r++)if(!(0,n.Et)(e[r])||!(0,a.YN)(e[r]))throw TypeError("Index parameters must be positive integer numbers");var s=new t;return s._data=e,s._size=[e.length],s}return s.prototype.type="Index",s.prototype.isIndex=!0,s.prototype.clone=function(){var e=new s;return e._dimensions=(0,i.o8)(this._dimensions),e._isScalar=this._isScalar,e._sourceSize=this._sourceSize,e},s.create=function(e){var t=new s;return s.apply(t,e),t},s.prototype.size=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var i=this._dimensions[t];e[t]=(0,n.Kg)(i)||(0,n.Et)(i)?1:i.size()[0]}return e},s.prototype.max=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var i=this._dimensions[t];e[t]=(0,n.Kg)(i)||(0,n.Et)(i)?i:i.max()}return e},s.prototype.min=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var i=this._dimensions[t];e[t]=(0,n.Kg)(i)||(0,n.Et)(i)?i:i.min()}return e},s.prototype.forEach=function(e){for(var t=0,r=this._dimensions.length;t<r;t++)e(this._dimensions[t],t,this)},s.prototype.dimension=function(e){var t;return(0,n.Et)(e)&&null!=(t=this._dimensions[e])?t:null},s.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&(0,n.Kg)(this._dimensions[0])},s.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},s.prototype.isScalar=function(){return this._isScalar},s.prototype.toArray=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var i=this._dimensions[t];e.push((0,n.Kg)(i)||(0,n.Et)(i)?i:i.toArray())}return e},s.prototype.valueOf=s.prototype.toArray,s.prototype.toString=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var i=this._dimensions[t];(0,n.Kg)(i)?e.push(JSON.stringify(i)):e.push(i.toString())}return"["+e.join(", ")+"]"},s.prototype.toJSON=function(){return{mathjs:"Index",dimensions:this._dimensions}},s.fromJSON=function(e){return s.create(e.dimensions)},s},{isClass:!0});function o(e){var t=[];return e.forEach((e,r)=>{e&&t.push(r)}),t}},7251(e,t,r){"use strict";r.d(t,{U:()=>a});var n=r(14943),i=r(51106),a=(0,r(58321).P9)("Range",[],()=>{function e(t,r,a){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator");var s=null!=t,o=null!=r,u=null!=a;if(s){if((0,n.C4)(t))t=t.toNumber();else if("number"!=typeof t&&!(0,n.sI)(t))throw TypeError("Parameter start must be a number or bigint")}if(o){if((0,n.C4)(r))r=r.toNumber();else if("number"!=typeof r&&!(0,n.sI)(r))throw TypeError("Parameter end must be a number or bigint")}if(u){if((0,n.C4)(a))a=a.toNumber();else if("number"!=typeof a&&!(0,n.sI)(a))throw TypeError("Parameter step must be a number or bigint")}if(this.start=s?parseFloat(t):0,this.end=o?parseFloat(r):0,this.step=u?parseFloat(a):1,u&&(0,i.q8)(this.step,0))throw Error("Step must not be zero")}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(t){if("string"!=typeof t)return null;var r=t.split(":").map(function(e){return parseFloat(e)});if(r.some(function(e){return isNaN(e)}))return null;switch(r.length){case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[2],r[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var e=0,t=this.start,r=this.step,n=this.end-t;return(0,i._S)(r)===(0,i._S)(n)?e=Math.ceil(n/r):0===n&&(e=0),isNaN(e)&&(e=0),[e]},e.prototype.min=function(){var e=this.size()[0];return e>0?this.step>0?this.start:this.start+(e-1)*this.step:void 0},e.prototype.max=function(){var e=this.size()[0];return e>0?this.step>0?this.start+(e-1)*this.step:this.start:void 0},e.prototype.forEach=function(e){var t=this.start,r=this.step,n=this.end,i=0;if(r>0)for(;t<n;)e(t,[i],this),t+=r,i++;else if(r<0)for(;t>n;)e(t,[i],this),t+=r,i++},e.prototype.map=function(e){var t=[];return this.forEach(function(r,n,i){t[n[0]]=e(r,n,i)}),t},e.prototype.toArray=function(){var e=[];return this.forEach(function(t,r){e[r[0]]=t}),e},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(e){var t=(0,i.GP)(this.start,e);return 1!==this.step&&(t+=":"+(0,i.GP)(this.step,e)),t+=":"+(0,i.GP)(this.end,e)},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(t){return new e(t.start,t.end,t.step)},e},{isClass:!0})},60628(e,t,r){"use strict";r.d(t,{Z:()=>n});var n=(0,r(58321).P9)("Spa",["addScalar","equalScalar","FibonacciHeap"],e=>{var{addScalar:t,equalScalar:r,FibonacciHeap:n}=e;function i(){if(!(this instanceof i))throw SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new n}return i.prototype.type="Spa",i.prototype.isSpa=!0,i.prototype.set=function(e,t){if(this._values[e])this._values[e].value=t;else{var r=this._heap.insert(e,t);this._values[e]=r}},i.prototype.get=function(e){var t=this._values[e];return t?t.value:0},i.prototype.accumulate=function(e,r){var n=this._values[e];n?n.value=t(n.value,r):(n=this._heap.insert(e,r),this._values[e]=n)},i.prototype.forEach=function(e,t,n){var i=this._heap,a=this._values,s=[],o=i.extractMinimum();for(o&&s.push(o);o&&o.key<=t;)o.key>=e&&!r(o.value,0)&&n(o.key,o.value,this),(o=i.extractMinimum())&&s.push(o);for(var u=0;u<s.length;u++){var c=s[u];a[(o=i.insert(c.key,c.value)).key]=o}},i.prototype.swap=function(e,t){var r=this._values[e],n=this._values[t];if(!r&&n)r=this._heap.insert(e,n.value),this._heap.remove(n),this._values[e]=r,this._values[t]=void 0;else if(r&&!n)n=this._heap.insert(t,r.value),this._heap.remove(r),this._values[t]=n,this._values[e]=void 0;else if(r&&n){var i=r.value;r.value=n.value,n.value=i}},i},{isClass:!0})},38801(e,t,r){"use strict";r.d(t,{g:()=>p});var n=r(14943),i=r(51106),a=r(27716),s=r(93140),o=r(35838),u=r(58321),c=r(71380),l=r(86383),p=(0,u.P9)("SparseMatrix",["typed","equalScalar","Matrix"],e=>{var{typed:t,equalScalar:r,Matrix:u}=e;function p(e,t){if(!(this instanceof p))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,n.Kg)(t))throw Error("Invalid datatype: "+t);if((0,n.OA)(e)){var r,i,a;r=this,i=e,a=t,"SparseMatrix"===i.type?(r._values=i._values?(0,s.o8)(i._values):void 0,r._index=(0,s.o8)(i._index),r._ptr=(0,s.o8)(i._ptr),r._size=(0,s.o8)(i._size),r._datatype=a||i._datatype):f(r,i.valueOf(),a||i._datatype)}else if(e&&(0,n.cy)(e.index)&&(0,n.cy)(e.ptr)&&(0,n.cy)(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if((0,n.cy)(e))f(this,e,t);else if(e)throw TypeError("Unsupported type of data ("+(0,n.QP)(e)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function f(e,i,a){e._values=[],e._index=[],e._ptr=[],e._datatype=a;var s=i.length,o=0,u=r,c=0;if((0,n.Kg)(a)&&(u=t.find(r,[a,a])||r,c=t.convert(0,a)),s>0){var l=0;do{e._ptr.push(e._index.length);for(var p=0;p<s;p++){var f=i[p];if((0,n.cy)(f)){if(0===l&&o<f.length&&(o=f.length),l<f.length){var d=f[l];u(d,c)||(e._values.push(d),e._index.push(p))}}else 0===l&&o<1&&(o=1),u(f,c)||(e._values.push(f),e._index.push(p))}l++}while(l<o)}for(;e._ptr.length<=o;)e._ptr.push(e._index.length);e._size=[s,o]}function d(e,t,r,n){if(r-t==0)return r;for(var i=t;i<r;i++)if(n[i]===e)return i;return t}function h(e,t,r,n,i,a,s){i.splice(e,0,n),a.splice(e,0,t);for(var o=r+1;o<s.length;o++)s[o]++}function m(e,i,a,s){var o,u,c,l=s||0,p=r,f=0;(0,n.Kg)(e._datatype)&&(p=t.find(r,[e._datatype,e._datatype])||r,f=t.convert(0,e._datatype),l=t.convert(l,e._datatype));var d=!p(l,f),h=e._size[0],m=e._size[1];if(a>m){for(u=m;u<a;u++)if(e._ptr[u]=e._values.length,d)for(o=0;o<h;o++)e._values.push(l),e._index.push(o);e._ptr[a]=e._values.length}else a<m&&(e._ptr.splice(a+1,m-a),e._values.splice(e._ptr[a],e._values.length),e._index.splice(e._ptr[a],e._index.length));if(m=a,i>h){if(d){var g=0;for(u=0;u<m;u++){e._ptr[u]=e._ptr[u]+g,c=e._ptr[u+1]+g;var v=0;for(o=h;o<i;o++,v++)e._values.splice(c+v,0,l),e._index.splice(c+v,0,o),g++}e._ptr[m]=e._values.length}}else if(i<h){var y=0;for(u=0;u<m;u++){e._ptr[u]=e._ptr[u]-y;var b=e._ptr[u],x=e._ptr[u+1]-y;for(c=b;c<x;c++)(o=e._index[c])>i-1&&(e._values.splice(c,1),e._index.splice(c,1),y++)}e._ptr[u]=e._values.length}return e._size[0]=i,e._size[1]=a,e}function g(e,t,r,n,i){var a,o,u=n[0],c=n[1],l=[];for(a=0;a<u;a++)for(o=0,l[a]=[];o<c;o++)l[a][o]=0;for(o=0;o<c;o++)for(var p=r[o],f=r[o+1],d=p;d<f;d++)l[a=t[d]][o]=e?i?(0,s.o8)(e[d]):e[d]:1;return l}return p.prototype=new u,p.prototype.createSparseMatrix=function(e,t){return new p(e,t)},Object.defineProperty(p,"name",{value:"SparseMatrix"}),p.prototype.constructor=p,p.prototype.type="SparseMatrix",p.prototype.isSparseMatrix=!0,p.prototype.getDataType=function(){return(0,o.ig)(this._values,n.QP)},p.prototype.storage=function(){return"sparse"},p.prototype.datatype=function(){return this._datatype},p.prototype.create=function(e,t){return new p(e,t)},p.prototype.density=function(){var e=this._size[0],t=this._size[1];return 0!==e&&0!==t?this._index.length/(e*t):0},p.prototype.subset=function(e,t,r){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(e,t){if(!(0,n.nw)(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var r,i,a,s,u=t.size();if(u.length!==e._size.length)throw new c.h(u.length,e._size.length);var l=t.min(),f=t.max();for(r=0,i=e._size.length;r<i;r++)(0,o.r7)(l[r],e._size[r]),(0,o.r7)(f[r],e._size[r]);var d=e._values,h=e._index,m=e._ptr,g=t.dimension(0),v=t.dimension(1),y=[],b=[];function x(e,t){b[e]=t[0],y[e]=!0}Number.isInteger(g)?x(g,[0]):g.forEach(x);var D=d?[]:void 0,w=[],N=[];function A(e){for(N.push(w.length),a=m[e],s=m[e+1];a<s;a++)!0===y[r=h[a]]&&(w.push(b[r]),D&&D.push(d[a]))}return Number.isInteger(v)?A(v):v.forEach(A),N.push(w.length),new p({values:D,index:w,ptr:N,size:u,datatype:e._datatype})}(this,e);case 2:case 3:return function(e,t,r,i){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var a,u=t.size(),l=t.isScalar();if((0,n.OA)(r)?(a=r.size(),r=r.toArray()):a=(0,o.LO)(r),l){if(0!==a.length)throw TypeError("Scalar expected");e.set(t.min(),r,i)}else{if(1!==u.length&&2!==u.length)throw new c.h(u.length,e._size.length,"<");if(a.length<u.length){for(var p=0,f=0;1===u[p]&&1===a[p];)p++;for(;1===u[p];)f++,p++;r=(0,o.iD)(r,u.length,f,a)}if(!(0,s.QO)(u,a))throw new c.h(u,a,">");if(1===u.length)m(t.dimension(0),(t,n)=>{(0,o.r7)(t),e.set([t,0],r[n[0]],i)});else{var d=t.dimension(0),h=t.dimension(1);m(d,(t,n)=>{(0,o.r7)(t),m(h,(a,s)=>{(0,o.r7)(a),e.set([t,a],r[n[0]][s[0]],i)})})}}return e;function m(e,t){(0,n.Et)(e)?t(e,[0]):e.forEach(t)}}(this,e,t,r);default:throw SyntaxError("Wrong number of arguments")}},p.prototype.get=function(e){if(!(0,n.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new c.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var t=e[0],r=e[1];(0,o.r7)(t,this._size[0]),(0,o.r7)(r,this._size[1]);var i=d(t,this._ptr[r],this._ptr[r+1],this._index);return i<this._ptr[r+1]&&this._index[i]===t?this._values[i]:0},p.prototype.set=function(e,i,a){if(!(0,n.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new c.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var s=e[0],u=e[1],l=this._size[0],p=this._size[1],f=r,g=0;(0,n.Kg)(this._datatype)&&(f=t.find(r,[this._datatype,this._datatype])||r,g=t.convert(0,this._datatype)),(s>l-1||u>p-1)&&(m(this,Math.max(s+1,l),Math.max(u+1,p),a),l=this._size[0],p=this._size[1]),(0,o.r7)(s,l),(0,o.r7)(u,p);var v=d(s,this._ptr[u],this._ptr[u+1],this._index);return v<this._ptr[u+1]&&this._index[v]===s?f(i,g)?function(e,t,r,n,i){r.splice(e,1),n.splice(e,1);for(var a=t+1;a<i.length;a++)i[a]--}(v,u,this._values,this._index,this._ptr):this._values[v]=i:f(i,g)||h(v,s,u,i,this._values,this._index,this._ptr),this},p.prototype.resize=function(e,t,r){if(!(0,n.P3)(e))throw TypeError("Array or Matrix expected");var s=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);if(2!==s.length)throw Error("Only two dimensions matrix are supported");return s.forEach(function(e){if(!(0,n.Et)(e)||!(0,i.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,a.GP)(s)+")")}),m(r?this.clone():this,s[0],s[1],t)},p.prototype.reshape=function(e,t){if(!(0,n.cy)(e))throw TypeError("Array expected");if(2!==e.length)throw Error("Sparse matrices can only be reshaped in two dimensions");e.forEach(function(t){if(!(0,n.Et)(t)||!(0,i.YN)(t)||t<=-2||0===t)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+(0,a.GP)(e)+")")});var r=this._size[0]*this._size[1],s=(e=(0,o.cs)(e,r))[0]*e[1];if(r!==s)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var u=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return u;for(var c=[],l=0;l<u._ptr.length;l++)for(var p=0;p<u._ptr[l+1]-u._ptr[l];p++)c.push(l);for(var f=u._values.slice(),m=u._index.slice(),g=0;g<u._index.length;g++){var v=m[g],y=c[g],b=v*u._size[1]+y;c[g]=b%e[1],m[g]=Math.floor(b/e[1])}u._values.length=0,u._index.length=0,u._ptr.length=e[1]+1,u._size=e.slice();for(var x=0;x<u._ptr.length;x++)u._ptr[x]=0;for(var D=0;D<f.length;D++){var w=m[D],N=c[D],A=f[D];h(d(w,u._ptr[N],u._ptr[N+1],u._index),w,N,A,u._values,u._index,u._ptr)}return u},p.prototype.clone=function(){return new p({values:this._values?(0,s.o8)(this._values):void 0,index:(0,s.o8)(this._index),ptr:(0,s.o8)(this._ptr),size:(0,s.o8)(this._size),datatype:this._datatype})},p.prototype.size=function(){return this._size.slice(0)},p.prototype.map=function(e,i){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var a=this,s=this._size[0],o=this._size[1],u=(0,l.r)(e,a,"map");return function(e,i,a,s,o){var u=[],c=[],l=[],f=r,d=0;(0,n.Kg)(e._datatype)&&(f=t.find(r,[e._datatype,e._datatype])||r,d=t.convert(0,e._datatype));for(var h=function(e,t,r){var n=s(e,t,r);f(n,d)||(u.push(n),c.push(t))},m=0;m<=a;m++){l.push(u.length);var g=e._ptr[m],v=e._ptr[m+1];if(o)for(var y=g;y<v;y++){var b=e._index[y];b>=0&&b<=i&&h(e._values[y],b-0,m-0)}else{for(var x={},D=g;D<v;D++)x[e._index[D]]=e._values[D];for(var w=0;w<=i;w++)h(w in x?x[w]:0,w-0,m-0)}}return l.push(u.length),new p({values:u,index:c,ptr:l,size:[i-0+1,a-0+1]})}(this,s-1,o-1,function(e,t,r){return u.fn(e,[t,r],a)},i)},p.prototype.forEach=function(e,t){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var r=this._size[0],n=this._size[1],i=(0,l.r)(e,this,"forEach"),a=0;a<n;a++){var s=this._ptr[a],o=this._ptr[a+1];if(t)for(var u=s;u<o;u++){var c=this._index[u];i.fn(this._values[u],[c,a],this)}else{for(var p={},f=s;f<o;f++)p[this._index[f]]=this._values[f];for(var d=0;d<r;d++){var h=d in p?p[d]:0;i.fn(h,[d,a],this)}}}},p.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var e=this._size[1],t=0;t<e;t++)for(var r=this._ptr[t],n=this._ptr[t+1],i=r;i<n;i++){var a=this._index[i];yield{value:this._values[i],index:[a,t]}}},p.prototype.toArray=function(){return g(this._values,this._index,this._ptr,this._size,!0)},p.prototype.valueOf=function(){return g(this._values,this._index,this._ptr,this._size,!1)},p.prototype.format=function(e){for(var t=this._size[0],r=this._size[1],n=this.density(),i="Sparse Matrix ["+(0,a.GP)(t,e)+" x "+(0,a.GP)(r,e)+"] density: "+(0,a.GP)(n,e)+"\n",s=0;s<r;s++)for(var o=this._ptr[s],u=this._ptr[s+1],c=o;c<u;c++){var l=this._index[c];i+="\n ("+(0,a.GP)(l,e)+", "+(0,a.GP)(s,e)+") ==> "+(this._values?(0,a.GP)(this._values[c],e):"X")}return i},p.prototype.toString=function(){return(0,a.GP)(this.toArray())},p.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},p.prototype.diagonal=function(e){if(e){if((0,n.C4)(e)&&(e=e.toNumber()),!(0,n.Et)(e)||!(0,i.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;var t=e>0?e:0,r=e<0?-e:0,a=this._size[0],s=this._size[1],o=Math.min(a-r,s-t),u=[],c=[],l=[];l[0]=0;for(var f=t;f<s&&u.length<o;f++)for(var d=this._ptr[f],h=this._ptr[f+1],m=d;m<h;m++){var g=this._index[m];if(g===f-t+r){u.push(this._values[m]),c[u.length-1]=g-r;break}}return l.push(u.length),new p({values:u,index:c,ptr:l,size:[o,1]})},p.fromJSON=function(e){return new p(e)},p.diagonal=function(e,a,s,o,u){if(!(0,n.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,n.C4)(e)&&(e=e.toNumber()),!(0,n.Et)(e)||!(0,i.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),s){if((0,n.C4)(s)&&(s=s.toNumber()),!(0,n.Et)(s)||!(0,i.YN)(s))throw TypeError("The parameter k must be an integer number")}else s=0;var c,l=r,f=0;(0,n.Kg)(u)&&(l=t.find(r,[u,u])||r,f=t.convert(0,u));var d=s>0?s:0,h=s<0?-s:0,m=e[0],g=e[1],v=Math.min(m-h,g-d);if((0,n.cy)(a)){if(a.length!==v)throw Error("Invalid value array length");c=function(e){return a[e]}}else if((0,n.OA)(a)){var y=a.size();if(1!==y.length||y[0]!==v)throw Error("Invalid matrix length");c=function(e){return a.get([e])}}else c=function(){return a};for(var b=[],x=[],D=[],w=0;w<g;w++){D.push(b.length);var N=w-d;if(N>=0&&N<v){var A=c(N);l(A,f)||(x.push(N+h),b.push(A))}}return D.push(b.length),new p({values:b,index:x,ptr:D,size:[m,g]})},p.prototype.swapRows=function(e,t){if(!(0,n.Et)(e)||!(0,i.YN)(e)||!(0,n.Et)(t)||!(0,i.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,o.r7)(e,this._size[0]),(0,o.r7)(t,this._size[0]),p._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},p._forEachRow=function(e,t,r,n,i){for(var a=n[e],s=n[e+1],o=a;o<s;o++)i(r[o],t[o])},p._swapRows=function(e,t,r,n,i,a){for(var s=0;s<r;s++){var o=a[s],u=a[s+1],c=d(e,o,u,i),l=d(t,o,u,i);if(c<u&&l<u&&i[c]===e&&i[l]===t){if(n){var p=n[c];n[c]=n[l],n[l]=p}continue}if(c<u&&i[c]===e&&(l>=u||i[l]!==t)){var f=n?n[c]:void 0;i.splice(l,0,t),n&&n.splice(l,0,f),i.splice(l<=c?c+1:c,1),n&&n.splice(l<=c?c+1:c,1);continue}if(l<u&&i[l]===t&&(c>=u||i[c]!==e)){var h=n?n[l]:void 0;i.splice(c,0,e),n&&n.splice(c,0,h),i.splice(c<=l?l+1:l,1),n&&n.splice(c<=l?l+1:l,1)}}},p},{isClass:!0})},47387(e,t,r){"use strict";r.d(t,{z:()=>s});var n=r(14943),i=r(58321),a="index",s=(0,i.P9)(a,["typed","Index"],e=>{var{typed:t,Index:r}=e;return t(a,{"...number | string | BigNumber | Range | Array | Matrix":function(e){var t=e.map(function(e){return(0,n.C4)(e)?e.toNumber():(0,n.cy)(e)||(0,n.OA)(e)?e.map(function(e){return(0,n.C4)(e)?e.toNumber():e}):e}),i=new r;return r.apply(i,t),i}})})},10794(e,t,r){"use strict";r.d(t,{u:()=>a});var n=r(58321),i="matrix",a=(0,n.P9)(i,["typed","Matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,Matrix:r,DenseMatrix:n,SparseMatrix:a}=e;return t(i,{"":function(){return s([])},string:function(e){return s([],e)},"string, string":function(e,t){return s([],e,t)},Array:function(e){return s(e)},Matrix:function(e){return s(e,e.storage())},"Array | Matrix, string":s,"Array | Matrix, string, string":s});function s(e,t,r){if("dense"===t||"default"===t||void 0===t)return new n(e,r);if("sparse"===t)return new a(e,r);throw TypeError("Unknown matrix type "+JSON.stringify(t)+".")}})},9391(e,t,r){"use strict";r.d(t,{R:()=>a});var n=r(58321),i="sparse",a=(0,n.P9)(i,["typed","SparseMatrix"],e=>{var{typed:t,SparseMatrix:r}=e;return t(i,{"":function(){return new r([])},string:function(e){return new r([],e)},"Array | Matrix":function(e){return new r(e)},"Array | Matrix, string":function(e,t){return new r(e,t)}})})},46540(e,t,r){"use strict";r.d(t,{Z:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo01xDSid",["typed"],e=>{var{typed:t}=e;return function(e,r,n,a){var s,o,u=e._data,c=e._size,l=e._datatype||e.getDataType(),p=r._values,f=r._index,d=r._ptr,h=r._size,m=r._datatype||void 0===r._data?r._datatype:r.getDataType();if(c.length!==h.length)throw new i.h(c.length,h.length);if(c[0]!==h[0]||c[1]!==h[1])throw RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+h+")");if(!p)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var g=c[0],v=c[1],y="string"==typeof l&&"mixed"!==l&&l===m?l:void 0,b=y?t.find(n,[y,y]):n,x=[];for(s=0;s<g;s++)x[s]=[];var D=[],w=[];for(o=0;o<v;o++){for(var N=o+1,A=d[o],E=d[o+1],S=A;S<E;S++)D[s=f[S]]=a?b(p[S],u[s][o]):b(u[s][o],p[S]),w[s]=N;for(s=0;s<g;s++)w[s]===N?x[s][o]=D[s]:x[s][o]=u[s][o]}return e.createDenseMatrix({data:x,size:[g,v],datatype:l===e._datatype&&m===r._datatype?y:void 0})}})},47308(e,t,r){"use strict";r.d(t,{Z:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo02xDS0",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,a,s){var o,u=e._data,c=e._size,l=e._datatype||e.getDataType(),p=n._values,f=n._index,d=n._ptr,h=n._size,m=n._datatype||void 0===n._data?n._datatype:n.getDataType();if(c.length!==h.length)throw new i.h(c.length,h.length);if(c[0]!==h[0]||c[1]!==h[1])throw RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+h+")");if(!p)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var g=c[0],v=c[1],y=r,b=0,x=a;"string"==typeof l&&l===m&&"mixed"!==l&&(o=l,y=t.find(r,[o,o]),b=t.convert(0,o),x=t.find(a,[o,o]));for(var D=[],w=[],N=[],A=0;A<v;A++){N[A]=w.length;for(var E=d[A],S=d[A+1],C=E;C<S;C++){var M=f[C],T=s?x(p[C],u[M][A]):x(u[M][A],p[C]);y(T,b)||(w.push(M),D.push(T))}}return N[v]=w.length,n.createSparseMatrix({values:D,index:w,ptr:N,size:[g,v],datatype:l===e._datatype&&m===n._datatype?o:void 0})}})},60361(e,t,r){"use strict";r.d(t,{O:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo03xDSf",["typed"],e=>{var{typed:t}=e;return function(e,r,n,a){var s,o=e._data,u=e._size,c=e._datatype||e.getDataType(),l=r._values,p=r._index,f=r._ptr,d=r._size,h=r._datatype||void 0===r._data?r._datatype:r.getDataType();if(u.length!==d.length)throw new i.h(u.length,d.length);if(u[0]!==d[0]||u[1]!==d[1])throw RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+d+")");if(!l)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=u[0],g=u[1],v=0,y=n;"string"==typeof c&&c===h&&"mixed"!==c&&(s=c,v=t.convert(0,s),y=t.find(n,[s,s]));for(var b=[],x=0;x<m;x++)b[x]=[];for(var D=[],w=[],N=0;N<g;N++){for(var A=N+1,E=f[N],S=f[N+1],C=E;C<S;C++){var M=p[C];D[M]=a?y(l[C],o[M][N]):y(o[M][N],l[C]),w[M]=A}for(var T=0;T<m;T++)w[T]===A?b[T][N]=D[T]:b[T][N]=a?y(v,o[T][N]):y(o[T][N],v)}return e.createDenseMatrix({data:b,size:[m,g],datatype:c===e._datatype&&h===r._datatype?s:void 0})}})},97481(e,t,r){"use strict";r.d(t,{c:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo04xSidSid",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,a){var s,o,u,c,l,p,f=e._values,d=e._index,h=e._ptr,m=e._size,g=e._datatype||void 0===e._data?e._datatype:e.getDataType(),v=n._values,y=n._index,b=n._ptr,x=n._size,D=n._datatype||void 0===n._data?n._datatype:n.getDataType();if(m.length!==x.length)throw new i.h(m.length,x.length);if(m[0]!==x[0]||m[1]!==x[1])throw RangeError("Dimension mismatch. Matrix A ("+m+") must match Matrix B ("+x+")");var w=m[0],N=m[1],A=r,E=0,S=a;"string"==typeof g&&g===D&&"mixed"!==g&&(s=g,A=t.find(r,[s,s]),E=t.convert(0,s),S=t.find(a,[s,s]));var C=f&&v?[]:void 0,M=[],T=[],O=f&&v?[]:void 0,F=f&&v?[]:void 0,_=[],B=[];for(u=0;u<N;u++){T[u]=M.length;var P=u+1;for(l=h[u],p=h[u+1],c=l;c<p;c++)o=d[c],M.push(o),_[o]=P,O&&(O[o]=f[c]);for(l=b[u],p=b[u+1],c=l;c<p;c++)if(_[o=y[c]]===P){if(O){var k=S(O[o],v[c]);A(k,E)?_[o]=null:O[o]=k}}else M.push(o),B[o]=P,F&&(F[o]=v[c]);if(O&&F)for(c=T[u];c<M.length;)_[o=M[c]]===P?(C[c]=O[o],c++):B[o]===P?(C[c]=F[o],c++):M.splice(c,1)}return T[N]=M.length,e.createSparseMatrix({values:C,index:M,ptr:T,size:[w,N],datatype:g===e._datatype&&D===n._datatype?s:void 0})}})},1232(e,t,r){"use strict";r.d(t,{H:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo05xSfSf",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,a){var s,o,u,c,l,p=e._values,f=e._index,d=e._ptr,h=e._size,m=e._datatype||void 0===e._data?e._datatype:e.getDataType(),g=n._values,v=n._index,y=n._ptr,b=n._size,x=n._datatype||void 0===n._data?n._datatype:n.getDataType();if(h.length!==b.length)throw new i.h(h.length,b.length);if(h[0]!==b[0]||h[1]!==b[1])throw RangeError("Dimension mismatch. Matrix A ("+h+") must match Matrix B ("+b+")");var D=h[0],w=h[1],N=r,A=0,E=a;"string"==typeof m&&m===x&&"mixed"!==m&&(s=m,N=t.find(r,[s,s]),A=t.convert(0,s),E=t.find(a,[s,s]));var S=p&&g?[]:void 0,C=[],M=[],T=S?[]:void 0,O=S?[]:void 0,F=[],_=[];for(u=0;u<w;u++){M[u]=C.length;var B=u+1;for(c=d[u],l=d[u+1];c<l;c++)o=f[c],C.push(o),F[o]=B,T&&(T[o]=p[c]);for(c=y[u],l=y[u+1];c<l;c++)F[o=v[c]]!==B&&C.push(o),_[o]=B,O&&(O[o]=g[c]);if(S)for(c=M[u];c<C.length;){var P=F[o=C[c]],k=_[o];if(P===B||k===B){var q=E(P===B?T[o]:A,k===B?O[o]:A);N(q,A)?C.splice(c,1):(S.push(q),c++)}}}return M[w]=C.length,e.createSparseMatrix({values:S,index:C,ptr:M,size:[D,w],datatype:m===e._datatype&&x===n._datatype?s:void 0})}})},45651(e,t,r){"use strict";r.d(t,{S:()=>s});var n=r(58321),i=r(71380),a=r(76355),s=(0,n.P9)("matAlgo06xS0S0",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,s){var o,u=e._values,c=e._size,l=e._datatype||void 0===e._data?e._datatype:e.getDataType(),p=n._values,f=n._size,d=n._datatype||void 0===n._data?n._datatype:n.getDataType();if(c.length!==f.length)throw new i.h(c.length,f.length);if(c[0]!==f[0]||c[1]!==f[1])throw RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+f+")");var h=c[0],m=c[1],g=r,v=0,y=s;"string"==typeof l&&l===d&&"mixed"!==l&&(o=l,g=t.find(r,[o,o]),v=t.convert(0,o),y=t.find(s,[o,o]));for(var b=u&&p?[]:void 0,x=[],D=[],w=b?[]:void 0,N=[],A=[],E=0;E<m;E++){D[E]=x.length;var S=E+1;if((0,a.Tb)(e,E,N,w,A,S,x,y),(0,a.Tb)(n,E,N,w,A,S,x,y),w)for(var C=D[E];C<x.length;){var M=x[C];if(A[M]===S){var T=w[M];g(T,v)?x.splice(C,1):(b.push(T),C++)}else x.splice(C,1)}else for(var O=D[E];O<x.length;)A[x[O]]!==S?x.splice(O,1):O++}return D[m]=x.length,e.createSparseMatrix({values:b,index:x,ptr:D,size:[h,m],datatype:l===e._datatype&&d===n._datatype?o:void 0})}})},15572(e,t,r){"use strict";r.d(t,{v:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo07xSSf",["typed","SparseMatrix"],e=>{var{typed:t,SparseMatrix:r}=e;return function(e,a,s){var o,u=e._size,c=e._datatype||void 0===e._data?e._datatype:e.getDataType(),l=a._size,p=a._datatype||void 0===a._data?a._datatype:a.getDataType();if(u.length!==l.length)throw new i.h(u.length,l.length);if(u[0]!==l[0]||u[1]!==l[1])throw RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+l+")");var f=u[0],d=u[1],h=0,m=s;"string"==typeof c&&c===p&&"mixed"!==c&&(o=c,h=t.convert(0,o),m=t.find(s,[o,o]));for(var g=[],v=[],y=Array(d+1).fill(0),b=[],x=[],D=[],w=[],N=0;N<d;N++){var A=N+1,E=0;n(e,N,D,b,A),n(a,N,w,x,A);for(var S=0;S<f;S++){var C=m(D[S]===A?b[S]:h,w[S]===A?x[S]:h);0!==C&&!1!==C&&(v.push(S),g.push(C),E++)}y[N+1]=y[N]+E}return new r({values:g,index:v,ptr:y,size:[f,d],datatype:c===e._datatype&&p===a._datatype?o:void 0})};function n(e,t,r,n,i){for(var a=e._values,s=e._index,o=e._ptr,u=o[t],c=o[t+1];u<c;u++){var l=s[u];r[l]=i,n[l]=a[u]}}})},71352(e,t,r){"use strict";r.d(t,{z:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo08xS0Sid",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,a){var s,o,u,c,l,p=e._values,f=e._index,d=e._ptr,h=e._size,m=e._datatype||void 0===e._data?e._datatype:e.getDataType(),g=n._values,v=n._index,y=n._ptr,b=n._size,x=n._datatype||void 0===n._data?n._datatype:n.getDataType();if(h.length!==b.length)throw new i.h(h.length,b.length);if(h[0]!==b[0]||h[1]!==b[1])throw RangeError("Dimension mismatch. Matrix A ("+h+") must match Matrix B ("+b+")");if(!p||!g)throw Error("Cannot perform operation on Pattern Sparse Matrices");var D=h[0],w=h[1],N=r,A=0,E=a;"string"==typeof m&&m===x&&"mixed"!==m&&(s=m,N=t.find(r,[s,s]),A=t.convert(0,s),E=t.find(a,[s,s]));for(var S=[],C=[],M=[],T=[],O=[],F=0;F<w;F++){M[F]=C.length;var _=F+1;for(u=d[F],c=d[F+1],o=u;o<c;o++)O[l=f[o]]=_,T[l]=p[o],C.push(l);for(u=y[F],c=y[F+1],o=u;o<c;o++)O[l=v[o]]===_&&(T[l]=E(T[l],g[o]));for(o=M[F];o<C.length;){var B=T[l=C[o]];N(B,A)?C.splice(o,1):(S.push(B),o++)}}return M[w]=C.length,e.createSparseMatrix({values:S,index:C,ptr:M,size:[D,w],datatype:m===e._datatype&&x===n._datatype?s:void 0})}})},47726(e,t,r){"use strict";r.d(t,{h:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo09xS0Sf",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,a){var s,o,u,c,l,p,f=e._values,d=e._index,h=e._ptr,m=e._size,g=e._datatype||void 0===e._data?e._datatype:e.getDataType(),v=n._values,y=n._index,b=n._ptr,x=n._size,D=n._datatype||void 0===n._data?n._datatype:n.getDataType();if(m.length!==x.length)throw new i.h(m.length,x.length);if(m[0]!==x[0]||m[1]!==x[1])throw RangeError("Dimension mismatch. Matrix A ("+m+") must match Matrix B ("+x+")");var w=m[0],N=m[1],A=r,E=0,S=a;"string"==typeof g&&g===D&&"mixed"!==g&&(s=g,A=t.find(r,[s,s]),E=t.convert(0,s),S=t.find(a,[s,s]));var C=f&&v?[]:void 0,M=[],T=[],O=C?[]:void 0,F=[];for(u=0;u<N;u++){T[u]=M.length;var _=u+1;if(O)for(l=b[u],p=b[u+1],c=l;c<p;c++)F[o=y[c]]=_,O[o]=v[c];for(l=h[u],p=h[u+1],c=l;c<p;c++)if(o=d[c],O){var B=F[o]===_?O[o]:E,P=S(f[c],B);A(P,E)||(M.push(o),C.push(P))}else M.push(o)}return T[N]=M.length,e.createSparseMatrix({values:C,index:M,ptr:T,size:[w,N],datatype:g===e._datatype&&D===n._datatype?s:void 0})}})},92723(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(58321).P9)("matAlgo10xSids",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:r}=e;return function(e,n,i,a){var s,o=e._values,u=e._index,c=e._ptr,l=e._size,p=e._datatype;if(!o)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var f=l[0],d=l[1],h=i;"string"==typeof p&&(s=p,n=t.convert(n,s),h=t.find(i,[s,s]));for(var m=[],g=[],v=[],y=0;y<d;y++){for(var b=y+1,x=c[y],D=c[y+1],w=x;w<D;w++){var N=u[w];g[N]=o[w],v[N]=b}for(var A=0;A<f;A++)0===y&&(m[A]=[]),v[A]===b?m[A][y]=a?h(n,g[A]):h(g[A],n):m[A][y]=n}return new r({data:m,size:[f,d],datatype:s})}})},59755(e,t,r){"use strict";r.d(t,{A:()=>n});var n=(0,r(58321).P9)("matAlgo11xS0s",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,i,a){var s,o=e._values,u=e._index,c=e._ptr,l=e._size,p=e._datatype;if(!o)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var f=l[0],d=l[1],h=r,m=0,g=i;"string"==typeof p&&(s=p,h=t.find(r,[s,s]),m=t.convert(0,s),n=t.convert(n,s),g=t.find(i,[s,s]));for(var v=[],y=[],b=[],x=0;x<d;x++){b[x]=y.length;for(var D=c[x],w=c[x+1],N=D;N<w;N++){var A=u[N],E=a?g(n,o[N]):g(o[N],n);h(E,m)||(y.push(A),v.push(E))}}return b[d]=y.length,e.createSparseMatrix({values:v,index:y,ptr:b,size:[f,d],datatype:s})}})},34900(e,t,r){"use strict";r.d(t,{f:()=>n});var n=(0,r(58321).P9)("matAlgo12xSfs",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:r}=e;return function(e,n,i,a){var s,o=e._values,u=e._index,c=e._ptr,l=e._size,p=e._datatype;if(!o)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var f=l[0],d=l[1],h=i;"string"==typeof p&&(s=p,n=t.convert(n,s),h=t.find(i,[s,s]));for(var m=[],g=[],v=[],y=0;y<d;y++){for(var b=y+1,x=c[y],D=c[y+1],w=x;w<D;w++){var N=u[w];g[N]=o[w],v[N]=b}for(var A=0;A<f;A++)0===y&&(m[A]=[]),v[A]===b?m[A][y]=a?h(n,g[A]):h(g[A],n):m[A][y]=a?h(n,0):h(0,n)}return new r({data:m,size:[f,d],datatype:s})}})},39049(e,t,r){"use strict";r.d(t,{c:()=>a});var n=r(58321),i=r(71380),a=(0,n.P9)("matAlgo13xDD",["typed"],e=>{var{typed:t}=e;return function(e,r,n){var a,s=e._data,o=e._size,u=e._datatype,c=r._data,l=r._size,p=r._datatype,f=[];if(o.length!==l.length)throw new i.h(o.length,l.length);for(var d=0;d<o.length;d++){if(o[d]!==l[d])throw RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+l+")");f[d]=o[d]}var h=n;"string"==typeof u&&u===p&&(a=u,h=t.find(n,[a,a]));var m=f.length>0?function e(t,r,n,i,a,s){var o=[];if(r===n.length-1)for(var u=0;u<i;u++)o[u]=t(a[u],s[u]);else for(var c=0;c<i;c++)o[c]=e(t,r+1,n,n[r+1],a[c],s[c]);return o}(h,0,f,f[0],s,c):[];return e.createDenseMatrix({data:m,size:f,datatype:a})}})},72347(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(58321),i=r(93140),a=(0,n.P9)("matAlgo14xDs",["typed"],e=>{var{typed:t}=e;return function(e,r,n,a){var s,o=e._data,u=e._size,c=e._datatype,l=n;"string"==typeof c&&(s=c,r=t.convert(r,s),l=t.find(n,[s,s]));var p=u.length>0?function e(t,r,n,i,a,s,o){var u=[];if(r===n.length-1)for(var c=0;c<i;c++)u[c]=o?t(s,a[c]):t(a[c],s);else for(var l=0;l<i;l++)u[l]=e(t,r+1,n,n[r+1],a[l],s,o);return u}(l,0,u,u[0],o,r,a):[];return e.createDenseMatrix({data:p,size:(0,i.o8)(u),datatype:s})}})},38730(e,t,r){"use strict";r.d(t,{$:()=>c});var n=r(58321),i=r(93140),a=r(39049),s=r(72347),o=r(35838);function u(e,t){if((0,i.QO)(e.size(),t.size()))return[e,t];var r=(0,o.Kx)(e.size(),t.size());return[e,t].map(e=>{var t,n;return t=e,n=r,(0,i.QO)(t.size(),n)?t:t.create((0,o.hO)(t.valueOf(),n),t.datatype())})}var c=(0,n.P9)("matrixAlgorithmSuite",["typed","matrix"],e=>{var{typed:t,matrix:r}=e,n=(0,a.c)({typed:t}),o=(0,s.A)({typed:t});return function(e){var a,s=e.elop,c=e.SD||e.DS;s?(a={"DenseMatrix, DenseMatrix":(e,t)=>n(...u(e,t),s),"Array, Array":(e,t)=>n(...u(r(e),r(t)),s).valueOf(),"Array, DenseMatrix":(e,t)=>n(...u(r(e),t),s),"DenseMatrix, Array":(e,t)=>n(...u(e,r(t)),s)},e.SS&&(a["SparseMatrix, SparseMatrix"]=(t,r)=>e.SS(...u(t,r),s,!1)),e.DS&&(a["DenseMatrix, SparseMatrix"]=(t,r)=>e.DS(...u(t,r),s,!1),a["Array, SparseMatrix"]=(t,n)=>e.DS(...u(r(t),n),s,!1)),c&&(a["SparseMatrix, DenseMatrix"]=(e,t)=>c(...u(t,e),s,!0),a["SparseMatrix, Array"]=(e,t)=>c(...u(r(t),e),s,!0))):(a={"DenseMatrix, DenseMatrix":t.referToSelf(e=>(t,r)=>n(...u(t,r),e)),"Array, Array":t.referToSelf(e=>(t,i)=>n(...u(r(t),r(i)),e).valueOf()),"Array, DenseMatrix":t.referToSelf(e=>(t,i)=>n(...u(r(t),i),e)),"DenseMatrix, Array":t.referToSelf(e=>(t,i)=>n(...u(t,r(i)),e))},e.SS&&(a["SparseMatrix, SparseMatrix"]=t.referToSelf(t=>(r,n)=>e.SS(...u(r,n),t,!1))),e.DS&&(a["DenseMatrix, SparseMatrix"]=t.referToSelf(t=>(r,n)=>e.DS(...u(r,n),t,!1)),a["Array, SparseMatrix"]=t.referToSelf(t=>(n,i)=>e.DS(...u(r(n),i),t,!1))),c&&(a["SparseMatrix, DenseMatrix"]=t.referToSelf(e=>(t,r)=>c(...u(r,t),e,!0)),a["SparseMatrix, Array"]=t.referToSelf(e=>(t,n)=>c(...u(r(n),t),e,!0))));var l=e.scalar||"any";(e.Ds||e.Ss)&&(s?(a["DenseMatrix,"+l]=(e,t)=>o(e,t,s,!1),a[l+", DenseMatrix"]=(e,t)=>o(t,e,s,!0),a["Array,"+l]=(e,t)=>o(r(e),t,s,!1).valueOf(),a[l+", Array"]=(e,t)=>o(r(t),e,s,!0).valueOf()):(a["DenseMatrix,"+l]=t.referToSelf(e=>(t,r)=>o(t,r,e,!1)),a[l+", DenseMatrix"]=t.referToSelf(e=>(t,r)=>o(r,t,e,!0)),a["Array,"+l]=t.referToSelf(e=>(t,n)=>o(r(t),n,e,!1).valueOf()),a[l+", Array"]=t.referToSelf(e=>(t,n)=>o(r(n),t,e,!0).valueOf())));var p=void 0!==e.sS?e.sS:e.Ss;return s?(e.Ss&&(a["SparseMatrix,"+l]=(t,r)=>e.Ss(t,r,s,!1)),p&&(a[l+", SparseMatrix"]=(e,t)=>p(t,e,s,!0))):(e.Ss&&(a["SparseMatrix,"+l]=t.referToSelf(t=>(r,n)=>e.Ss(r,n,t,!1))),p&&(a[l+", SparseMatrix"]=t.referToSelf(e=>(t,r)=>p(r,t,e,!0)))),s&&s.signatures&&(0,i.X$)(a,s.signatures),a}})},63417(e,t,r){"use strict";r.d(t,{G:()=>a});var n=r(58321),i=r(76355),a=(0,n.P9)("number",["typed"],e=>{var{typed:t}=e,r=t("number",{"":function(){return 0},number:function(e){return e},string:function(e){if("NaN"===e)return NaN;var t=function(e){var t=e.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);if(!t)return null;var r={"0b":2,"0o":8,"0x":16}[t[1]];return{input:e,radix:r,integerPart:t[2],fractionalPart:t[3]}}(e);if(t){for(var r=parseInt(t.integerPart,t.radix),n=0,i=0;i<t.fractionalPart.length;i++)n+=parseInt(t.fractionalPart[i],t.radix)/Math.pow(t.radix,i+1);var a=r+n;if(isNaN(a))throw SyntaxError('String "'+t.input+'" is not a valid number');return a}var s=0,o=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);o&&(s=Number(o[2]),e=o[1]);var u=Number(e);if(isNaN(u))throw SyntaxError('String "'+e+'" is not a valid number');if(o){if(u>2**s-1)throw SyntaxError('String "'.concat(e,'" is out of range'));u>=2**(s-1)&&(u-=2**s)}return u},BigNumber:function(e){return e.toNumber()},bigint:function(e){return Number(e)},Fraction:function(e){return e.valueOf()},Unit:t.referToSelf(e=>t=>{var r=t.clone();return r.value=e(t.value),r}),null:function(e){return 0},"Unit, string | Unit":function(e,t){return e.toNumber(t)},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))});return r.fromJSON=function(e){return parseFloat(e.value)},r})},27613(e,t,r){"use strict";r.d(t,{O:()=>n});var n=(0,r(58321).P9)("ResultSet",[],()=>{function e(t){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator");this.entries=t||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.map(String).join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(t){return new e(t.entries)},e},{isClass:!0})},92581(e,t,r){"use strict";r.d(t,{I:()=>o});var n=r(58321),i=r(76355),a=r(51106),s="string",o=(0,n.P9)(s,["typed"],e=>{var{typed:t}=e;return t(s,{"":function(){return""},number:a.GP,null:function(e){return"null"},boolean:function(e){return e+""},string:function(e){return e},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e)),any:function(e){return String(e)}})})},2783(e,t,r){"use strict";r.d(t,{d:()=>d});var n=r(20296),i=r(71333),a=r(14943),s=r(58321),o=r(52708),u=r(27716),c=r(93140),l=r(77506);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var d=(0,s.P9)("Unit",["?on","config","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","abs","fix","round","equal","isNumeric","format","number","Complex","BigNumber","Fraction"],e=>{var t,r,n,{on:s,config:p,addScalar:d,subtractScalar:h,multiplyScalar:m,divideScalar:g,pow:v,abs:y,fix:b,round:x,equal:D,isNumeric:w,format:N,number:A,Complex:E,BigNumber:S,Fraction:C}=e;function M(e,t){if(!(this instanceof M))throw Error("Constructor must be called with the new operator");if(!(null==e||w(e)||(0,a.Zd)(e)))throw TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(this.fixPrefix=!1,this.skipAutomaticSimplification=!0,void 0===t)this.units=[],this.dimensions=L.map(e=>0);else if("string"==typeof t){var r=M.parse(t);this.units=r.units,this.dimensions=r.dimensions}else if((0,a.vO)(t)&&null===t.value)this.fixPrefix=t.fixPrefix,this.skipAutomaticSimplification=t.skipAutomaticSimplification,this.dimensions=t.dimensions.slice(0),this.units=t.units.map(e=>(0,i.A)({},e));else throw TypeError("Second parameter in Unit constructor must be a string or valueless Unit");this.value=this._normalize(e)}function T(){for(;" "===n||" "===n;)F()}function O(e){return e>="0"&&e<="9"}function F(){r++,n=t.charAt(r)}function _(e){r=e,n=t.charAt(r)}function B(){var e,t="",i=r;if("+"===n?F():"-"===n&&(t+=n,F()),!((e=n)>="0"&&e<="9"||"."===e))return _(i),null;if("."===n){if(t+=n,F(),!O(n))return _(i),null}else{for(;O(n);)t+=n,F();"."===n&&(t+=n,F())}for(;O(n);)t+=n,F();if("E"===n||"e"===n){var a="",s=r;if(a+=n,F(),("+"===n||"-"===n)&&(a+=n,F()),!O(n))return _(s),t;for(t+=a;O(n);)t+=n,F()}return t}function P(e){return n===e?(F(),e):null}Object.defineProperty(M,"name",{value:"Unit"}),M.prototype.constructor=M,M.prototype.type="Unit",M.prototype.isUnit=!0,M.parse=function(e,i){if(i=i||{},r=-1,n="","string"!=typeof(t=e))throw TypeError("Invalid argument in Unit.parse, string expected");var a=new M;a.units=[];var s=1,o=!1;F(),T();var u=B(),c=null;if(u){if("BigNumber"===p.number)c=new S(u);else if("Fraction"===p.number)try{c=new C(u)}catch(e){c=parseFloat(u)}else c=parseFloat(u);T(),P("*")?(s=1,o=!0):P("/")&&(s=-1,o=!0)}for(var l=[],f=1;;){for(T();"("===n;)l.push(s),f*=s,s=1,F(),T();var d=void 0;if(n){var h=n;if(null===(d=function(){for(var e="";O(n)||M.isValidAlpha(n);)e+=n,F();var t=e.charAt(0);return M.isValidAlpha(t)?e:null}()))throw SyntaxError('Unexpected "'+h+'" in "'+t+'" at index '+r.toString())}else break;var m=k(d);if(null===m)throw SyntaxError('Unit "'+d+'" not found.');var g=s*f;if(T(),P("^")){T();var v=B();if(null===v)throw SyntaxError('In "'+e+'", "^" must be followed by a floating-point number');g*=v}a.units.push({unit:m.unit,prefix:m.prefix,power:g});for(var y=0;y<L.length;y++)a.dimensions[y]+=(m.unit.dimensions[y]||0)*g;for(T();")"===n;){if(0===l.length)throw SyntaxError('Unmatched ")" in "'+t+'" at index '+r.toString());f/=l.pop(),F(),T()}if(o=!1,P("*")?(s=1,o=!0):P("/")?(s=-1,o=!0):s=1,m.unit.base){var b=m.unit.base.key;V.auto[b]={unit:m.unit,prefix:m.prefix}}}if(T(),n)throw SyntaxError('Could not parse: "'+e+'"');if(o)throw SyntaxError('Trailing characters: "'+e+'"');if(0!==l.length)throw SyntaxError('Unmatched "(" in "'+t+'"');if(0===a.units.length&&!i.allowNoUnits)throw SyntaxError('"'+e+'" contains no units');return a.value=void 0!==c?a._normalize(c):null,a},M.prototype.clone=function(){var e=new M;e.fixPrefix=this.fixPrefix,e.skipAutomaticSimplification=this.skipAutomaticSimplification,e.value=(0,c.o8)(this.value),e.dimensions=this.dimensions.slice(0),e.units=[];for(var t=0;t<this.units.length;t++)for(var r in e.units[t]={},this.units[t])(0,c.mQ)(this.units[t],r)&&(e.units[t][r]=this.units[t][r]);return e},M.prototype.valueType=function(){return(0,a.QP)(this.value)},M.prototype._isDerived=function(){return 0!==this.units.length&&(this.units.length>1||Math.abs(this.units[0].power-1)>1e-15)},M.prototype._normalize=function(e){if(null==e||0===this.units.length)return e;for(var t=e,r=M._getNumberConverter((0,a.QP)(e)),n=0;n<this.units.length;n++){var i=r(this.units[n].unit.value),s=r(this.units[n].prefix.value),o=r(this.units[n].power);t=m(t,v(m(i,s),o))}return t},M.prototype._denormalize=function(e,t){if(null==e||0===this.units.length)return e;for(var r=e,n=M._getNumberConverter((0,a.QP)(e)),i=0;i<this.units.length;i++){var s=n(this.units[i].unit.value),o=n(this.units[i].prefix.value),u=n(this.units[i].power);r=g(r,v(m(s,o),u))}return r};var k=(0,o.B)(e=>{if((0,c.mQ)(H,e)){var t=H[e],r=t.prefixes[""];return{unit:t,prefix:r}}for(var n in H)if((0,c.mQ)(H,n)&&(0,u.d5)(e,n)){var i=H[n],a=e.length-n.length,s=e.substring(0,a),o=(0,c.mQ)(i.prefixes,s)?i.prefixes[s]:void 0;if(void 0!==o)return{unit:i,prefix:o}}return null},{hasher:e=>e[0],limit:100});function q(e){return e.equalBase(j.NONE)&&null!==e.value&&!p.predictable?e.value:e}function I(e){return M._getNumberConverter((0,a.QP)(e))(1)}function R(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.skipAutomaticSimplification||null===e.value?e.clone():e.simplify();(function(e){var t=!1;for(var r in void 0!==e.value&&null!==e.value&&(0,a.Zd)(e.value)&&(t=1e-14>Math.abs(e.value.re)),e.units)(0,c.mQ)(e.units,r)&&e.units[r].unit&&("VA"===e.units[r].unit.name&&t?e.units[r].unit=H.VAR:"VAR"!==e.units[r].unit.name||t||(e.units[r].unit=H.VA))})(i),t=i,r=n.offset,1===t.units.length&&!t.fixPrefix&&1e-14>Math.abs(t.units[0].power-Math.round(t.units[0].power))&&(t.units[0].prefix=t._bestPrefix(r));var s=i._denormalize(i.value),o=null!==i.value?N(s,n||{}):"",u=i.formatUnits();return{simp:i,valueStr:o,unitStr:u}}M.isValuelessUnit=function(e){return null!==k(e)},M.prototype.hasBase=function(e){if("string"==typeof e&&(e=j[e]),!e)return!1;for(var t=0;t<L.length;t++)if(Math.abs((this.dimensions[t]||0)-(e.dimensions[t]||0))>1e-12)return!1;return!0},M.prototype.equalBase=function(e){for(var t=0;t<L.length;t++)if(Math.abs((this.dimensions[t]||0)-(e.dimensions[t]||0))>1e-12)return!1;return!0},M.prototype.equals=function(e){return this.equalBase(e)&&D(this.value,e.value)},M.prototype.multiply=function(e){for(var t=this.clone(),r=(0,a.vO)(e)?e:new M(e),n=0;n<L.length;n++)t.dimensions[n]=(this.dimensions[n]||0)+(r.dimensions[n]||0);for(var i=0;i<r.units.length;i++){var s=f({},r.units[i]);t.units.push(s)}return null!==this.value||null!==r.value?t.value=m(null===this.value?this._normalize(I(r.value)):this.value,null===r.value?r._normalize(I(this.value)):r.value):t.value=null,(0,a.vO)(e)&&(t.skipAutomaticSimplification=!1),q(t)},M.prototype.divideInto=function(e){return new M(e).divide(this)},M.prototype.divide=function(e){for(var t=this.clone(),r=(0,a.vO)(e)?e:new M(e),n=0;n<L.length;n++)t.dimensions[n]=(this.dimensions[n]||0)-(r.dimensions[n]||0);for(var i=0;i<r.units.length;i++){var s=f(f({},r.units[i]),{},{power:-r.units[i].power});t.units.push(s)}return null!==this.value||null!==r.value?t.value=g(null===this.value?this._normalize(I(r.value)):this.value,null===r.value?r._normalize(I(this.value)):r.value):t.value=null,(0,a.vO)(e)&&(t.skipAutomaticSimplification=!1),q(t)},M.prototype.pow=function(e){for(var t=this.clone(),r=0;r<L.length;r++)t.dimensions[r]=(this.dimensions[r]||0)*e;for(var n=0;n<t.units.length;n++)t.units[n].power*=e;return null!==t.value?t.value=v(t.value,e):t.value=null,t.skipAutomaticSimplification=!1,q(t)},M.prototype.abs=function(){var e=this.clone();if(null!==e.value)if(e._isDerived()||0===e.units.length||0===e.units[0].unit.offset)e.value=y(e.value);else{var t=e._numberConverter(),r=m(t(e.units[0].unit.value),t(e.units[0].unit.offset));e.value=h(y(d(e.value,r)),r)}for(var n in e.units)("VA"===e.units[n].unit.name||"VAR"===e.units[n].unit.name)&&(e.units[n].unit=H.W);return e},M.prototype.to=function(e){var t,r=null===this.value?this._normalize(1):this.value;if("string"==typeof e)t=M.parse(e);else if((0,a.vO)(e))t=e.clone();else throw Error("String or Unit expected as parameter");if(!this.equalBase(t))throw Error("Units do not match ('".concat(t.toString(),"' != '").concat(this.toString(),"')"));if(null!==t.value)throw Error("Cannot convert to a unit with a value");if(null===this.value||this._isDerived()||0===this.units.length||0===t.units.length||this.units[0].unit.offset===t.units[0].unit.offset)t.value=(0,c.o8)(r);else{var n=M._getNumberConverter((0,a.QP)(r)),i=m(this.units[0].unit.value,this.units[0].unit.offset),s=m(t.units[0].unit.value,t.units[0].unit.offset);t.value=d(r,n(h(i,s)))}return t.fixPrefix=!0,t.skipAutomaticSimplification=!0,t},M.prototype.toNumber=function(e){return A(this.toNumeric(e))},M.prototype.toNumeric=function(e){var t;return(t=e?this.to(e):this.clone())._isDerived()||0===t.units.length?t._denormalize(t.value):t._denormalize(t.value,t.units[0].prefix.value)},M.prototype.toString=function(){return this.format()},M.prototype.toJSON=function(){return{mathjs:"Unit",value:this._denormalize(this.value),unit:this.units.length>0?this.formatUnits():null,fixPrefix:this.fixPrefix,skipSimp:this.skipAutomaticSimplification}},M.fromJSON=function(e){var t,r,n,i=new M(e.value,null!=(t=e.unit)?t:void 0);return i.fixPrefix=null!=(r=e.fixPrefix)&&r,i.skipAutomaticSimplification=null==(n=e.skipSimp)||n,i},M.prototype.valueOf=M.prototype.toString,M.prototype.simplify=function(){var e,t,r=this.clone(),n=[];for(var i in Z)if((0,c.mQ)(Z,i)&&r.hasBase(j[i])){e=i;break}if("NONE"===e)r.units=[];else if(e&&(0,c.mQ)(Z,e)&&(t=Z[e]),t)r.units=[{unit:t.unit,prefix:t.prefix,power:1}];else{for(var a=!1,s=0;s<L.length;s++){var o=L[s];Math.abs(r.dimensions[s]||0)>1e-12&&((0,c.mQ)(Z,o)?n.push({unit:Z[o].unit,prefix:Z[o].prefix,power:r.dimensions[s]||0}):a=!0)}n.length<r.units.length&&!a&&(r.units=n)}return r},M.prototype.toSI=function(){for(var e=this.clone(),t=[],r=0;r<L.length;r++){var n=L[r];if(Math.abs(e.dimensions[r]||0)>1e-12)if((0,c.mQ)(V.si,n))t.push({unit:V.si[n].unit,prefix:V.si[n].prefix,power:e.dimensions[r]||0});else throw Error("Cannot express custom unit "+n+" in SI units")}return(e.units=t,e.fixPrefix=!0,e.skipAutomaticSimplification=!0,null!==this.value)?(e.value=null,this.to(e)):e},M.prototype.formatUnits=function(){for(var e="",t="",r=0,n=0,i=0;i<this.units.length;i++)this.units[i].power>0?(r++,e+=" "+this.units[i].prefix.name+this.units[i].unit.name,Math.abs(this.units[i].power-1)>1e-15&&(e+="^"+this.units[i].power)):this.units[i].power<0&&n++;if(n>0)for(var a=0;a<this.units.length;a++)this.units[a].power<0&&(r>0?(t+=" "+this.units[a].prefix.name+this.units[a].unit.name,Math.abs(this.units[a].power+1)>1e-15&&(t+="^"+-this.units[a].power)):(t+=" "+this.units[a].prefix.name+this.units[a].unit.name,t+="^"+this.units[a].power));e=e.substr(1),t=t.substr(1),r>1&&n>0&&(e="("+e+")"),n>1&&r>0&&(t="("+t+")");var s=e;return r>0&&n>0&&(s+=" / "),s+=t},M.prototype.toBest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&!Array.isArray(e))throw Error("Invalid unit type. Expected string or Unit.");var r=this.units[0].unit.prefixes;if(e&&e.length>0){var n=e.map(e=>{var t=null;if("string"==typeof e){if(!(t=M.parse(e)))throw Error("Invalid unit type. Expected compatible string or Unit.")}else if(!(0,a.vO)(e))throw Error("Invalid unit type. Expected compatible string or Unit.");null===t&&(t=e.clone());try{return this.to(t.formatUnits()),t}catch(e){throw Error("Invalid unit type. Expected compatible string or Unit.")}}).map(e=>e.units[0].prefix);this.units[0].unit.prefixes=n.reduce((e,t)=>(e[t.name]=t,e),{}),this.units[0].prefix=n[0]}var i=R(this,t).simp;return this.units[0].unit.prefixes=r,i.fixPrefix=!0,i},M.prototype.format=function(e){var{simp:t,valueStr:r,unitStr:n}=R(this,e),i=r;return t.value&&(0,a.Zd)(t.value)&&(i="("+i+")"),n.length>0&&i.length>0&&(i+=" "),i+=n},M.prototype._bestPrefix=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.2;if(1!==this.units.length||Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var t=null!==this.value?y(this.value):0,r=y(this.units[0].unit.value),n=this.units[0].prefix;if(0===t)return n;var i=this.units[0].power,a=Math.log(t/Math.pow(n.value*r,i))/Math.LN10-e;if(a>-2.200001&&a<1.800001)return n;a=Math.abs(a);var s=this.units[0].unit.prefixes;for(var o in s)if((0,c.mQ)(s,o)){var u=s[o];if(u.scientific){var l=Math.abs(Math.log(t/Math.pow(u.value*r,i))/Math.LN10-e);(l<a||l===a&&u.name.length<n.name.length)&&(n=u,a=l)}}return n},M.prototype.splitUnit=function(e){for(var t=this.clone(),r=[],n=0;n<e.length&&(t=t.to(e[n]),n!==e.length-1);n++){var i=t.toNumeric(),a=x(i),s=new M(D(a,i)?a:b(t.toNumeric()),e[n].toString());r.push(s),t=h(t,s)}for(var o=0,u=0;u<r.length;u++)o=d(o,r[u].value);return D(o,this.value)&&(t.value=0),r.push(t),r};var z={NONE:{"":{name:"",value:1,scientific:!0}},SHORT:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:10,scientific:!1},h:{name:"h",value:100,scientific:!1},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0},R:{name:"R",value:1e27,scientific:!0},Q:{name:"Q",value:1e30,scientific:!0},d:{name:"d",value:.1,scientific:!1},c:{name:"c",value:.01,scientific:!1},m:{name:"m",value:.001,scientific:!0},u:{name:"u",value:1e-6,scientific:!0},n:{name:"n",value:1e-9,scientific:!0},p:{name:"p",value:1e-12,scientific:!0},f:{name:"f",value:1e-15,scientific:!0},a:{name:"a",value:1e-18,scientific:!0},z:{name:"z",value:1e-21,scientific:!0},y:{name:"y",value:1e-24,scientific:!0},r:{name:"r",value:1e-27,scientific:!0},q:{name:"q",value:1e-30,scientific:!0}},LONG:{"":{name:"",value:1,scientific:!0},deca:{name:"deca",value:10,scientific:!1},hecto:{name:"hecto",value:100,scientific:!1},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0},ronna:{name:"ronna",value:1e27,scientific:!0},quetta:{name:"quetta",value:1e30,scientific:!0},deci:{name:"deci",value:.1,scientific:!1},centi:{name:"centi",value:.01,scientific:!1},milli:{name:"milli",value:.001,scientific:!0},micro:{name:"micro",value:1e-6,scientific:!0},nano:{name:"nano",value:1e-9,scientific:!0},pico:{name:"pico",value:1e-12,scientific:!0},femto:{name:"femto",value:1e-15,scientific:!0},atto:{name:"atto",value:1e-18,scientific:!0},zepto:{name:"zepto",value:1e-21,scientific:!0},yocto:{name:"yocto",value:1e-24,scientific:!0},ronto:{name:"ronto",value:1e-27,scientific:!0},quecto:{name:"quecto",value:1e-30,scientific:!0}},SQUARED:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:100,scientific:!1},h:{name:"h",value:1e4,scientific:!1},k:{name:"k",value:1e6,scientific:!0},M:{name:"M",value:1e12,scientific:!0},G:{name:"G",value:1e18,scientific:!0},T:{name:"T",value:1e24,scientific:!0},P:{name:"P",value:1e30,scientific:!0},E:{name:"E",value:1e36,scientific:!0},Z:{name:"Z",value:1e42,scientific:!0},Y:{name:"Y",value:1e48,scientific:!0},R:{name:"R",value:1e54,scientific:!0},Q:{name:"Q",value:1e60,scientific:!0},d:{name:"d",value:.01,scientific:!1},c:{name:"c",value:1e-4,scientific:!1},m:{name:"m",value:1e-6,scientific:!0},u:{name:"u",value:1e-12,scientific:!0},n:{name:"n",value:1e-18,scientific:!0},p:{name:"p",value:1e-24,scientific:!0},f:{name:"f",value:1e-30,scientific:!0},a:{name:"a",value:1e-36,scientific:!0},z:{name:"z",value:1e-42,scientific:!0},y:{name:"y",value:1e-48,scientific:!0},r:{name:"r",value:1e-54,scientific:!0},q:{name:"q",value:1e-60,scientific:!0}},CUBIC:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:1e3,scientific:!1},h:{name:"h",value:1e6,scientific:!1},k:{name:"k",value:1e9,scientific:!0},M:{name:"M",value:1e18,scientific:!0},G:{name:"G",value:1e27,scientific:!0},T:{name:"T",value:1e36,scientific:!0},P:{name:"P",value:1e45,scientific:!0},E:{name:"E",value:1e54,scientific:!0},Z:{name:"Z",value:1e63,scientific:!0},Y:{name:"Y",value:1e72,scientific:!0},R:{name:"R",value:1e81,scientific:!0},Q:{name:"Q",value:1e90,scientific:!0},d:{name:"d",value:.001,scientific:!1},c:{name:"c",value:1e-6,scientific:!1},m:{name:"m",value:1e-9,scientific:!0},u:{name:"u",value:1e-18,scientific:!0},n:{name:"n",value:1e-27,scientific:!0},p:{name:"p",value:1e-36,scientific:!0},f:{name:"f",value:1e-45,scientific:!0},a:{name:"a",value:1e-54,scientific:!0},z:{name:"z",value:1e-63,scientific:!0},y:{name:"y",value:1e-72,scientific:!0},r:{name:"r",value:1e-81,scientific:!0},q:{name:"q",value:1e-90,scientific:!0}},BINARY_SHORT_SI:{"":{name:"",value:1,scientific:!0},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0}},BINARY_SHORT_IEC:{"":{name:"",value:1,scientific:!0},Ki:{name:"Ki",value:1024,scientific:!0},Mi:{name:"Mi",value:1048576,scientific:!0},Gi:{name:"Gi",value:0x40000000,scientific:!0},Ti:{name:"Ti",value:0x10000000000,scientific:!0},Pi:{name:"Pi",value:0x4000000000000,scientific:!0},Ei:{name:"Ei",value:0x1000000000000000,scientific:!0},Zi:{name:"Zi",value:11805916207174113e5,scientific:!0},Yi:{name:"Yi",value:12089258196146292e8,scientific:!0}},BINARY_LONG_SI:{"":{name:"",value:1,scientific:!0},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0}},BINARY_LONG_IEC:{"":{name:"",value:1,scientific:!0},kibi:{name:"kibi",value:1024,scientific:!0},mebi:{name:"mebi",value:1048576,scientific:!0},gibi:{name:"gibi",value:0x40000000,scientific:!0},tebi:{name:"tebi",value:0x10000000000,scientific:!0},pebi:{name:"pebi",value:0x4000000000000,scientific:!0},exi:{name:"exi",value:0x1000000000000000,scientific:!0},zebi:{name:"zebi",value:11805916207174113e5,scientific:!0},yobi:{name:"yobi",value:12089258196146292e8,scientific:!0}},BTU:{"":{name:"",value:1,scientific:!0},MM:{name:"MM",value:1e6,scientific:!0}}};z.SHORTLONG=(0,i.A)({},z.SHORT,z.LONG),z.BINARY_SHORT=(0,i.A)({},z.BINARY_SHORT_SI,z.BINARY_SHORT_IEC),z.BINARY_LONG=(0,i.A)({},z.BINARY_LONG_SI,z.BINARY_LONG_IEC);var L=["MASS","LENGTH","TIME","CURRENT","TEMPERATURE","LUMINOUS_INTENSITY","AMOUNT_OF_SUBSTANCE","ANGLE","BIT"],j={NONE:{dimensions:[0,0,0,0,0,0,0,0,0]},MASS:{dimensions:[1,0,0,0,0,0,0,0,0]},LENGTH:{dimensions:[0,1,0,0,0,0,0,0,0]},TIME:{dimensions:[0,0,1,0,0,0,0,0,0]},CURRENT:{dimensions:[0,0,0,1,0,0,0,0,0]},TEMPERATURE:{dimensions:[0,0,0,0,1,0,0,0,0]},LUMINOUS_INTENSITY:{dimensions:[0,0,0,0,0,1,0,0,0]},AMOUNT_OF_SUBSTANCE:{dimensions:[0,0,0,0,0,0,1,0,0]},FORCE:{dimensions:[1,1,-2,0,0,0,0,0,0]},SURFACE:{dimensions:[0,2,0,0,0,0,0,0,0]},VOLUME:{dimensions:[0,3,0,0,0,0,0,0,0]},ENERGY:{dimensions:[1,2,-2,0,0,0,0,0,0]},POWER:{dimensions:[1,2,-3,0,0,0,0,0,0]},PRESSURE:{dimensions:[1,-1,-2,0,0,0,0,0,0]},ELECTRIC_CHARGE:{dimensions:[0,0,1,1,0,0,0,0,0]},ELECTRIC_CAPACITANCE:{dimensions:[-1,-2,4,2,0,0,0,0,0]},ELECTRIC_POTENTIAL:{dimensions:[1,2,-3,-1,0,0,0,0,0]},ELECTRIC_RESISTANCE:{dimensions:[1,2,-3,-2,0,0,0,0,0]},ELECTRIC_INDUCTANCE:{dimensions:[1,2,-2,-2,0,0,0,0,0]},ELECTRIC_CONDUCTANCE:{dimensions:[-1,-2,3,2,0,0,0,0,0]},MAGNETIC_FLUX:{dimensions:[1,2,-2,-1,0,0,0,0,0]},MAGNETIC_FLUX_DENSITY:{dimensions:[1,0,-2,-1,0,0,0,0,0]},FREQUENCY:{dimensions:[0,0,-1,0,0,0,0,0,0]},ANGLE:{dimensions:[0,0,0,0,0,0,0,1,0]},BIT:{dimensions:[0,0,0,0,0,0,0,0,1]}};for(var U in j)(0,c.mQ)(j,U)&&(j[U].key=U);var $={name:"",base:{},value:1,offset:0,dimensions:L.map(e=>0)},H={meter:{name:"meter",base:j.LENGTH,prefixes:z.LONG,value:1,offset:0},inch:{name:"inch",base:j.LENGTH,prefixes:z.NONE,value:.0254,offset:0},foot:{name:"foot",base:j.LENGTH,prefixes:z.NONE,value:.3048,offset:0},yard:{name:"yard",base:j.LENGTH,prefixes:z.NONE,value:.9144,offset:0},mile:{name:"mile",base:j.LENGTH,prefixes:z.NONE,value:1609.344,offset:0},link:{name:"link",base:j.LENGTH,prefixes:z.NONE,value:.201168,offset:0},rod:{name:"rod",base:j.LENGTH,prefixes:z.NONE,value:5.0292,offset:0},chain:{name:"chain",base:j.LENGTH,prefixes:z.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:j.LENGTH,prefixes:z.NONE,value:1e-10,offset:0},m:{name:"m",base:j.LENGTH,prefixes:z.SHORT,value:1,offset:0},in:{name:"in",base:j.LENGTH,prefixes:z.NONE,value:.0254,offset:0},ft:{name:"ft",base:j.LENGTH,prefixes:z.NONE,value:.3048,offset:0},yd:{name:"yd",base:j.LENGTH,prefixes:z.NONE,value:.9144,offset:0},mi:{name:"mi",base:j.LENGTH,prefixes:z.NONE,value:1609.344,offset:0},li:{name:"li",base:j.LENGTH,prefixes:z.NONE,value:.201168,offset:0},rd:{name:"rd",base:j.LENGTH,prefixes:z.NONE,value:5.02921,offset:0},ch:{name:"ch",base:j.LENGTH,prefixes:z.NONE,value:20.1168,offset:0},mil:{name:"mil",base:j.LENGTH,prefixes:z.NONE,value:254e-7,offset:0},m2:{name:"m2",base:j.SURFACE,prefixes:z.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:j.SURFACE,prefixes:z.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:j.SURFACE,prefixes:z.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:j.SURFACE,prefixes:z.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:j.SURFACE,prefixes:z.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:j.SURFACE,prefixes:z.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:j.SURFACE,prefixes:z.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:j.SURFACE,prefixes:z.NONE,value:64516e-14,offset:0},acre:{name:"acre",base:j.SURFACE,prefixes:z.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:j.SURFACE,prefixes:z.NONE,value:1e4,offset:0},m3:{name:"m3",base:j.VOLUME,prefixes:z.CUBIC,value:1,offset:0},L:{name:"L",base:j.VOLUME,prefixes:z.SHORT,value:.001,offset:0},l:{name:"l",base:j.VOLUME,prefixes:z.SHORT,value:.001,offset:0},litre:{name:"litre",base:j.VOLUME,prefixes:z.LONG,value:.001,offset:0},cuin:{name:"cuin",base:j.VOLUME,prefixes:z.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:j.VOLUME,prefixes:z.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:j.VOLUME,prefixes:z.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:j.VOLUME,prefixes:z.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:j.VOLUME,prefixes:z.NONE,value:15e-6,offset:0},drop:{name:"drop",base:j.VOLUME,prefixes:z.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:j.VOLUME,prefixes:z.NONE,value:5e-8,offset:0},minim:{name:"minim",base:j.VOLUME,prefixes:z.NONE,value:61611519921875e-21,offset:0},fluiddram:{name:"fluiddram",base:j.VOLUME,prefixes:z.NONE,value:36966911953125e-19,offset:0},fluidounce:{name:"fluidounce",base:j.VOLUME,prefixes:z.NONE,value:295735295625e-16,offset:0},gill:{name:"gill",base:j.VOLUME,prefixes:z.NONE,value:11829411825e-14,offset:0},cc:{name:"cc",base:j.VOLUME,prefixes:z.NONE,value:1e-6,offset:0},cup:{name:"cup",base:j.VOLUME,prefixes:z.NONE,value:2365882365e-13,offset:0},pint:{name:"pint",base:j.VOLUME,prefixes:z.NONE,value:473176473e-12,offset:0},quart:{name:"quart",base:j.VOLUME,prefixes:z.NONE,value:946352946e-12,offset:0},gallon:{name:"gallon",base:j.VOLUME,prefixes:z.NONE,value:.003785411784,offset:0},beerbarrel:{name:"beerbarrel",base:j.VOLUME,prefixes:z.NONE,value:.117347765304,offset:0},oilbarrel:{name:"oilbarrel",base:j.VOLUME,prefixes:z.NONE,value:.158987294928,offset:0},hogshead:{name:"hogshead",base:j.VOLUME,prefixes:z.NONE,value:.238480942392,offset:0},g:{name:"g",base:j.MASS,prefixes:z.SHORT,value:.001,offset:0},gram:{name:"gram",base:j.MASS,prefixes:z.LONG,value:.001,offset:0},ton:{name:"ton",base:j.MASS,prefixes:z.SHORT,value:907.18474,offset:0},t:{name:"t",base:j.MASS,prefixes:z.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:j.MASS,prefixes:z.LONG,value:1e3,offset:0},grain:{name:"grain",base:j.MASS,prefixes:z.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:j.MASS,prefixes:z.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:j.MASS,prefixes:z.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:j.MASS,prefixes:z.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:j.MASS,prefixes:z.NONE,value:45.359237,offset:0},stick:{name:"stick",base:j.MASS,prefixes:z.NONE,value:.115,offset:0},stone:{name:"stone",base:j.MASS,prefixes:z.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:j.MASS,prefixes:z.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:j.MASS,prefixes:z.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:j.MASS,prefixes:z.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:j.MASS,prefixes:z.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:j.MASS,prefixes:z.NONE,value:45.359237,offset:0},s:{name:"s",base:j.TIME,prefixes:z.SHORT,value:1,offset:0},min:{name:"min",base:j.TIME,prefixes:z.NONE,value:60,offset:0},h:{name:"h",base:j.TIME,prefixes:z.NONE,value:3600,offset:0},second:{name:"second",base:j.TIME,prefixes:z.LONG,value:1,offset:0},sec:{name:"sec",base:j.TIME,prefixes:z.LONG,value:1,offset:0},minute:{name:"minute",base:j.TIME,prefixes:z.NONE,value:60,offset:0},hour:{name:"hour",base:j.TIME,prefixes:z.NONE,value:3600,offset:0},day:{name:"day",base:j.TIME,prefixes:z.NONE,value:86400,offset:0},week:{name:"week",base:j.TIME,prefixes:z.NONE,value:604800,offset:0},month:{name:"month",base:j.TIME,prefixes:z.NONE,value:2629800,offset:0},year:{name:"year",base:j.TIME,prefixes:z.NONE,value:0x1e187e0,offset:0},decade:{name:"decade",base:j.TIME,prefixes:z.NONE,value:315576e3,offset:0},century:{name:"century",base:j.TIME,prefixes:z.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:j.TIME,prefixes:z.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:j.FREQUENCY,prefixes:z.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:j.FREQUENCY,prefixes:z.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:j.ANGLE,prefixes:z.SHORT,value:1,offset:0},radian:{name:"radian",base:j.ANGLE,prefixes:z.LONG,value:1,offset:0},deg:{name:"deg",base:j.ANGLE,prefixes:z.SHORT,value:null,offset:0},degree:{name:"degree",base:j.ANGLE,prefixes:z.LONG,value:null,offset:0},grad:{name:"grad",base:j.ANGLE,prefixes:z.SHORT,value:null,offset:0},gradian:{name:"gradian",base:j.ANGLE,prefixes:z.LONG,value:null,offset:0},cycle:{name:"cycle",base:j.ANGLE,prefixes:z.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:j.ANGLE,prefixes:z.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:j.ANGLE,prefixes:z.NONE,value:null,offset:0},A:{name:"A",base:j.CURRENT,prefixes:z.SHORT,value:1,offset:0},ampere:{name:"ampere",base:j.CURRENT,prefixes:z.LONG,value:1,offset:0},K:{name:"K",base:j.TEMPERATURE,prefixes:z.SHORT,value:1,offset:0},degC:{name:"degC",base:j.TEMPERATURE,prefixes:z.SHORT,value:1,offset:273.15},degF:{name:"degF",base:j.TEMPERATURE,prefixes:z.SHORT,value:new C(5,9),offset:459.67},degR:{name:"degR",base:j.TEMPERATURE,prefixes:z.SHORT,value:new C(5,9),offset:0},kelvin:{name:"kelvin",base:j.TEMPERATURE,prefixes:z.LONG,value:1,offset:0},celsius:{name:"celsius",base:j.TEMPERATURE,prefixes:z.LONG,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:j.TEMPERATURE,prefixes:z.LONG,value:new C(5,9),offset:459.67},rankine:{name:"rankine",base:j.TEMPERATURE,prefixes:z.LONG,value:new C(5,9),offset:0},mol:{name:"mol",base:j.AMOUNT_OF_SUBSTANCE,prefixes:z.SHORT,value:1,offset:0},mole:{name:"mole",base:j.AMOUNT_OF_SUBSTANCE,prefixes:z.LONG,value:1,offset:0},cd:{name:"cd",base:j.LUMINOUS_INTENSITY,prefixes:z.SHORT,value:1,offset:0},candela:{name:"candela",base:j.LUMINOUS_INTENSITY,prefixes:z.LONG,value:1,offset:0},N:{name:"N",base:j.FORCE,prefixes:z.SHORT,value:1,offset:0},newton:{name:"newton",base:j.FORCE,prefixes:z.LONG,value:1,offset:0},dyn:{name:"dyn",base:j.FORCE,prefixes:z.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:j.FORCE,prefixes:z.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:j.FORCE,prefixes:z.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:j.FORCE,prefixes:z.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:j.FORCE,prefixes:z.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:j.FORCE,prefixes:z.NONE,value:9.80665,offset:0},J:{name:"J",base:j.ENERGY,prefixes:z.SHORT,value:1,offset:0},joule:{name:"joule",base:j.ENERGY,prefixes:z.LONG,value:1,offset:0},erg:{name:"erg",base:j.ENERGY,prefixes:z.SHORTLONG,value:1e-7,offset:0},Wh:{name:"Wh",base:j.ENERGY,prefixes:z.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:j.ENERGY,prefixes:z.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:j.ENERGY,prefixes:z.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:j.ENERGY,prefixes:z.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:j.POWER,prefixes:z.SHORT,value:1,offset:0},watt:{name:"watt",base:j.POWER,prefixes:z.LONG,value:1,offset:0},hp:{name:"hp",base:j.POWER,prefixes:z.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:j.POWER,prefixes:z.SHORT,value:E.I,offset:0},VA:{name:"VA",base:j.POWER,prefixes:z.SHORT,value:1,offset:0},Pa:{name:"Pa",base:j.PRESSURE,prefixes:z.SHORT,value:1,offset:0},psi:{name:"psi",base:j.PRESSURE,prefixes:z.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:j.PRESSURE,prefixes:z.NONE,value:101325,offset:0},bar:{name:"bar",base:j.PRESSURE,prefixes:z.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:j.PRESSURE,prefixes:z.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:j.PRESSURE,prefixes:z.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:j.PRESSURE,prefixes:z.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:j.PRESSURE,prefixes:z.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:j.ELECTRIC_CHARGE,prefixes:z.LONG,value:1,offset:0},C:{name:"C",base:j.ELECTRIC_CHARGE,prefixes:z.SHORT,value:1,offset:0},farad:{name:"farad",base:j.ELECTRIC_CAPACITANCE,prefixes:z.LONG,value:1,offset:0},F:{name:"F",base:j.ELECTRIC_CAPACITANCE,prefixes:z.SHORT,value:1,offset:0},volt:{name:"volt",base:j.ELECTRIC_POTENTIAL,prefixes:z.LONG,value:1,offset:0},V:{name:"V",base:j.ELECTRIC_POTENTIAL,prefixes:z.SHORT,value:1,offset:0},ohm:{name:"ohm",base:j.ELECTRIC_RESISTANCE,prefixes:z.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:j.ELECTRIC_INDUCTANCE,prefixes:z.LONG,value:1,offset:0},H:{name:"H",base:j.ELECTRIC_INDUCTANCE,prefixes:z.SHORT,value:1,offset:0},siemens:{name:"siemens",base:j.ELECTRIC_CONDUCTANCE,prefixes:z.LONG,value:1,offset:0},S:{name:"S",base:j.ELECTRIC_CONDUCTANCE,prefixes:z.SHORT,value:1,offset:0},weber:{name:"weber",base:j.MAGNETIC_FLUX,prefixes:z.LONG,value:1,offset:0},Wb:{name:"Wb",base:j.MAGNETIC_FLUX,prefixes:z.SHORT,value:1,offset:0},tesla:{name:"tesla",base:j.MAGNETIC_FLUX_DENSITY,prefixes:z.LONG,value:1,offset:0},T:{name:"T",base:j.MAGNETIC_FLUX_DENSITY,prefixes:z.SHORT,value:1,offset:0},b:{name:"b",base:j.BIT,prefixes:z.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:j.BIT,prefixes:z.BINARY_LONG,value:1,offset:0},B:{name:"B",base:j.BIT,prefixes:z.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:j.BIT,prefixes:z.BINARY_LONG,value:8,offset:0}},G={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fldr:"fluiddram",fluiddrams:"fluiddram",floz:"fluidounce",fluidounces:"fluidounce",gi:"gill",gills:"gill",cp:"cup",cups:"cup",pt:"pint",pints:"pint",qt:"quart",quarts:"quart",gal:"gallon",gallons:"gallon",bbl:"beerbarrel",beerbarrels:"beerbarrel",obl:"oilbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",amps:"ampere",amp:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function Q(e){if("BigNumber"===e.number){var t=(0,l.R3)(S);H.rad.value=new S(1),H.deg.value=t.div(180),H.grad.value=t.div(200),H.cycle.value=t.times(2),H.arcsec.value=t.div(648e3),H.arcmin.value=t.div(10800)}else H.rad.value=1,H.deg.value=Math.PI/180,H.grad.value=Math.PI/200,H.cycle.value=2*Math.PI,H.arcsec.value=Math.PI/648e3,H.arcmin.value=Math.PI/10800;H.radian.value=H.rad.value,H.degree.value=H.deg.value,H.gradian.value=H.grad.value}Q(p),s&&s("config",function(e,t){e.number!==t.number&&Q(e)});var V={si:{NONE:{unit:$,prefix:z.NONE[""]},LENGTH:{unit:H.m,prefix:z.SHORT[""]},MASS:{unit:H.g,prefix:z.SHORT.k},TIME:{unit:H.s,prefix:z.SHORT[""]},CURRENT:{unit:H.A,prefix:z.SHORT[""]},TEMPERATURE:{unit:H.K,prefix:z.SHORT[""]},LUMINOUS_INTENSITY:{unit:H.cd,prefix:z.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:H.mol,prefix:z.SHORT[""]},ANGLE:{unit:H.rad,prefix:z.SHORT[""]},BIT:{unit:H.bits,prefix:z.SHORT[""]},FORCE:{unit:H.N,prefix:z.SHORT[""]},ENERGY:{unit:H.J,prefix:z.SHORT[""]},POWER:{unit:H.W,prefix:z.SHORT[""]},PRESSURE:{unit:H.Pa,prefix:z.SHORT[""]},ELECTRIC_CHARGE:{unit:H.C,prefix:z.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:H.F,prefix:z.SHORT[""]},ELECTRIC_POTENTIAL:{unit:H.V,prefix:z.SHORT[""]},ELECTRIC_RESISTANCE:{unit:H.ohm,prefix:z.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:H.H,prefix:z.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:H.S,prefix:z.SHORT[""]},MAGNETIC_FLUX:{unit:H.Wb,prefix:z.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:H.T,prefix:z.SHORT[""]},FREQUENCY:{unit:H.Hz,prefix:z.SHORT[""]}}};V.cgs=JSON.parse(JSON.stringify(V.si)),V.cgs.LENGTH={unit:H.m,prefix:z.SHORT.c},V.cgs.MASS={unit:H.g,prefix:z.SHORT[""]},V.cgs.FORCE={unit:H.dyn,prefix:z.SHORT[""]},V.cgs.ENERGY={unit:H.erg,prefix:z.NONE[""]},V.us=JSON.parse(JSON.stringify(V.si)),V.us.LENGTH={unit:H.ft,prefix:z.NONE[""]},V.us.MASS={unit:H.lbm,prefix:z.NONE[""]},V.us.TEMPERATURE={unit:H.degF,prefix:z.NONE[""]},V.us.FORCE={unit:H.lbf,prefix:z.NONE[""]},V.us.ENERGY={unit:H.BTU,prefix:z.BTU[""]},V.us.POWER={unit:H.hp,prefix:z.NONE[""]},V.us.PRESSURE={unit:H.psi,prefix:z.NONE[""]},V.auto=JSON.parse(JSON.stringify(V.si));var Z=V.auto;for(var W in M.setUnitSystem=function(e){if((0,c.mQ)(V,e))Z=V[e];else throw Error("Unit system "+e+" does not exist. Choices are: "+Object.keys(V).join(", "))},M.getUnitSystem=function(){for(var e in V)if((0,c.mQ)(V,e)&&V[e]===Z)return e},M.typeConverters={BigNumber:function(e){return null!=e&&e.isFraction?new S(String(e.n)).div(String(e.d)).times(String(e.s)):new S(e+"")},Fraction:function(e){return new C(e)},Complex:function(e){return e},number:function(e){return null!=e&&e.isFraction?A(e):e}},M.prototype._numberConverter=function(){var e=M.typeConverters[this.valueType()];if(e)return e;throw TypeError('Unsupported Unit value type "'+this.valueType()+'"')},M._getNumberConverter=function(e){if(!M.typeConverters[e])throw TypeError('Unsupported type "'+e+'"');return M.typeConverters[e]},H)if((0,c.mQ)(H,W)){var Y=H[W];Y.dimensions=Y.base.dimensions}for(var J in G)if((0,c.mQ)(G,J)){var K=H[G[J]],X={};for(var ee in K)(0,c.mQ)(K,ee)&&(X[ee]=K[ee]);X.name=J,H[J]=X}return M.isValidAlpha=function(e){return/^[a-zA-Z]$/.test(e)},M.createUnit=function(e,t){if("object"!=typeof e)throw TypeError("createUnit expects first parameter to be of type 'Object'");if(t&&t.override){for(var r in e)if((0,c.mQ)(e,r)&&M.deleteUnit(r),e[r].aliases)for(var n,i=0;i<e[r].aliases.length;i++)M.deleteUnit(e[r].aliases[i])}for(var a in e)(0,c.mQ)(e,a)&&(n=M.createUnitSingle(a,e[a]));return n},M.createUnitSingle=function(e,t){if(null==t&&(t={}),"string"!=typeof e)throw TypeError("createUnitSingle expects first parameter to be of type 'string'");if((0,c.mQ)(H,e))throw Error('Cannot create unit "'+e+'": a unit with that name already exists');for(var r=0;r<e.length;r++){if(n=e.charAt(r),0===r&&!M.isValidAlpha(n))throw Error('Invalid unit name (must begin with alpha character): "'+e+'"');if(r>0&&!(M.isValidAlpha(n)||O(n)))throw Error('Invalid unit name (only alphanumeric characters are allowed): "'+e+'"')}var i,a,s,o=null,u=[],l=0;if(t&&"Unit"===t.type)o=t.clone();else if("string"==typeof t)""!==t&&(i=t);else if("object"==typeof t)i=t.definition,a=t.prefixes,l=t.offset,s=t.baseName,t.aliases&&(u=t.aliases.valueOf());else throw TypeError('Cannot create unit "'+e+'" from "'+t.toString()+'": expecting "string" or "Unit" or "Object"');if(u){for(var p=0;p<u.length;p++)if((0,c.mQ)(H,u[p]))throw Error('Cannot create alias "'+u[p]+'": a unit with that name already exists')}if(i&&"string"==typeof i&&!o)try{o=M.parse(i,{allowNoUnits:!0})}catch(t){throw t.message='Could not create unit "'+e+'" from "'+i+'": '+t.message,t}else i&&"Unit"===i.type&&(o=i.clone());u=u||[],l=l||0,a=a&&a.toUpperCase&&z[a.toUpperCase()]||z.NONE;var f={};if(o){f={name:e,value:o.value,dimensions:o.dimensions.slice(0),prefixes:a,offset:l};var d=!1;for(var h in j)if((0,c.mQ)(j,h)){for(var m=!0,g=0;g<L.length;g++)if(Math.abs((f.dimensions[g]||0)-(j[h].dimensions[g]||0))>1e-12){m=!1;break}if(m){d=!0,f.base=j[h];break}}if(!d){s=s||e+"_STUFF";var v={dimensions:o.dimensions.slice(0)};v.key=s,j[s]=v,Z[s]={unit:f,prefix:z.NONE[""]},f.base=j[s]}}else{if(s=s||e+"_STUFF",L.indexOf(s)>=0)throw Error('Cannot create new base unit "'+e+'": a base unit with that name already exists (and cannot be overridden)');for(var y in L.push(s),j)(0,c.mQ)(j,y)&&(j[y].dimensions[L.length-1]=0);for(var b={dimensions:[]},x=0;x<L.length;x++)b.dimensions[x]=0;b.dimensions[L.length-1]=1,b.key=s,j[s]=b,f={name:e,value:1,dimensions:j[s].dimensions.slice(0),prefixes:a,offset:l,base:j[s]},Z[s]={unit:f,prefix:z.NONE[""]}}M.UNITS[e]=f;for(var D=0;D<u.length;D++){var w=u[D],N={};for(var A in f)(0,c.mQ)(f,A)&&(N[A]=f[A]);N.name=w,M.UNITS[w]=N}return delete k.cache,new M(null,e)},M.deleteUnit=function(e){delete M.UNITS[e],delete k.cache},M.PREFIXES=z,M.BASE_DIMENSIONS=L,M.BASE_UNITS=j,M.UNIT_SYSTEMS=V,M.UNITS=H,M},{isClass:!0})},8782(e,t,r){"use strict";r.d(t,{J:()=>a});var n=r(58321),i="createUnit",a=(0,n.P9)(i,["typed","Unit"],e=>{var{typed:t,Unit:r}=e;return t(i,{"Object, Object":function(e,t){return r.createUnit(e,t)},Object:function(e){return r.createUnit(e,{})},"string, Unit | string | Object, Object":function(e,t,n){var i={};return i[e]=t,r.createUnit(i,n)},"string, Unit | string | Object":function(e,t){var n={};return n[e]=t,r.createUnit(n,{})},string:function(e){var t={};return t[e]={},r.createUnit(t,{})}})})},94708(e,t,r){"use strict";r.d(t,{t:()=>a});var n=r(58321),i="splitUnit",a=(0,n.P9)(i,["typed"],e=>{var{typed:t}=e;return t(i,{"Unit, Array":function(e,t){return e.splitUnit(t)}})})},75486(e,t,r){"use strict";r.d(t,{n:()=>s});var n=r(58321),i=r(76355),a="unit",s=(0,n.P9)(a,["typed","Unit"],e=>{var{typed:t,Unit:r}=e;return t(a,{Unit:function(e){return e.clone()},string:function(e){return r.isValuelessUnit(e)?new r(null,e):r.parse(e,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string | Unit":function(e,t){return new r(e,t)},"number | BigNumber | Fraction":function(e){return new r(e)},"Array | Matrix":t.referToSelf(e=>t=>(0,i.Bl)(t,e))})})},63387(e,t,r){"use strict";r.d(t,{$L:()=>b,AW:()=>l,Cc:()=>z,DT:()=>v,Dc:()=>N,Dp:()=>I,EE:()=>y,Gj:()=>k,I:()=>A,Ik:()=>L,KV:()=>Z,Kw:()=>P,Lg:()=>i,Lz:()=>Q,NC:()=>V,Og:()=>s,QE:()=>O,Rd:()=>u,TT:()=>K,Tx:()=>W,UK:()=>q,VK:()=>m,WX:()=>D,Wq:()=>M,XS:()=>h,_7:()=>T,_F:()=>ee,aE:()=>X,bz:()=>$,cC:()=>x,cn:()=>J,cr:()=>H,dd:()=>w,e0:()=>f,eb:()=>c,ez:()=>B,hy:()=>j,jh:()=>S,oL:()=>E,qH:()=>_,qQ:()=>R,qU:()=>Y,rg:()=>g,tP:()=>a,u5:()=>U,v2:()=>d,w$:()=>p,wp:()=>F,y0:()=>o,zr:()=>C,zy:()=>G});var n=r(58321),i=et("speedOfLight","299792458","m s^-1"),a=et("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),s=et("planckConstant","6.62607015e-34","J s"),o=et("reducedPlanckConstant","1.0545718176461565e-34","J s"),u=et("magneticConstant","1.25663706212e-6","N A^-2"),c=et("electricConstant","8.8541878128e-12","F m^-1"),l=et("vacuumImpedance","376.730313667","ohm"),p=et("coulomb","8.987551792261171e9","N m^2 C^-2"),f=et("coulombConstant","8.987551792261171e9","N m^2 C^-2"),d=et("elementaryCharge","1.602176634e-19","C"),h=et("bohrMagneton","9.2740100783e-24","J T^-1"),m=et("conductanceQuantum","7.748091729863649e-5","S"),g=et("inverseConductanceQuantum","12906.403729652257","ohm"),v=et("magneticFluxQuantum","2.0678338484619295e-15","Wb"),y=et("nuclearMagneton","5.0507837461e-27","J T^-1"),b=et("klitzing","25812.807459304513","ohm"),x=et("bohrRadius","5.29177210903e-11","m"),D=et("classicalElectronRadius","2.8179403262e-15","m"),w=et("electronMass","9.1093837015e-31","kg"),N=et("fermiCoupling","1.1663787e-5","GeV^-2"),A=er("fineStructure",.0072973525693),E=et("hartreeEnergy","4.3597447222071e-18","J"),S=et("protonMass","1.67262192369e-27","kg"),C=et("deuteronMass","3.3435830926e-27","kg"),M=et("neutronMass","1.6749271613e-27","kg"),T=et("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),O=et("rydberg","10973731.568160","m^-1"),F=et("thomsonCrossSection","6.6524587321e-29","m^2"),_=er("weakMixingAngle",.2229),B=er("efimovFactor",22.7),P=et("atomicMass","1.66053906660e-27","kg"),k=et("avogadro","6.02214076e23","mol^-1"),q=et("boltzmann","1.380649e-23","J K^-1"),I=et("faraday","96485.33212331001","C mol^-1"),R=et("firstRadiation","3.7417718521927573e-16","W m^2"),z=et("loschmidt","2.686780111798444e25","m^-3"),L=et("gasConstant","8.31446261815324","J K^-1 mol^-1"),j=et("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),U=et("molarVolume","0.022413969545014137","m^3 mol^-1"),$=er("sackurTetrode",-1.16487052358),H=et("secondRadiation","0.014387768775039337","m K"),G=et("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),Q=et("wienDisplacement","2.897771955e-3","m K"),V=et("molarMass","0.99999999965e-3","kg mol^-1"),Z=et("molarMassC12","11.9999999958e-3","kg mol^-1"),W=et("gravity","9.80665","m s^-2"),Y=et("planckLength","1.616255e-35","m"),J=et("planckMass","2.176435e-8","kg"),K=et("planckTime","5.391245e-44","s"),X=et("planckCharge","1.87554603778e-18","C"),ee=et("planckTemperature","1.416785e+32","K");function et(e,t,r){return(0,n.P9)(e,["config","Unit","BigNumber"],e=>{var{config:n,Unit:i,BigNumber:a}=e,s=new i("BigNumber"===n.number?new a(t):parseFloat(t),r);return s.fixPrefix=!0,s})}function er(e,t){return(0,n.P9)(e,["config","BigNumber"],e=>{var{config:r,BigNumber:n}=e;return"BigNumber"===r.number?new n(t):t})}},35838(e,t,r){"use strict";r.d(t,{$p:()=>f,Bl:()=>P,Bq:()=>D,Jt:()=>B,Kx:()=>O,LO:()=>l,Tj:()=>w,Wr:()=>E,XR:()=>m,cs:()=>v,fj:()=>S,hO:()=>_,iD:()=>x,ig:()=>function e(t,r){for(var n,i=0,a=0;a<t.length;a++){var s=t[a],o=Array.isArray(s);if(0===a&&o&&(i=s.length),o&&s.length!==i)return;var u=o?e(s,r):r(s);if(void 0===n)n=u;else if(n!==u)return"mixed"}return n},jJ:()=>N,ls:()=>C,pb:()=>A,px:()=>M,r2:()=>b,r7:()=>d,tQ:()=>g,tf:()=>p,xL:()=>k,xW:()=>T,yT:()=>h});var n=r(71333),i=r(51106),a=r(14943),s=r(27716),o=r(71380),u=r(6636),c=r(93140);function l(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function p(e,t){if(0===t.length){if(Array.isArray(e))throw new o.h(e.length,0)}else!function e(t,r,n){var i,a=t.length;if(a!==r[n])throw new o.h(a,r[n]);if(n<r.length-1){var s=n+1;for(i=0;i<a;i++){if(!Array.isArray(t[i]))throw new o.h(r.length-1,r.length,"<");e(t[i],r,s)}}else for(i=0;i<a;i++)if(Array.isArray(t[i]))throw new o.h(r.length+1,r.length,">")}(e,t,0)}function f(e,t){var r=e.isMatrix?e._size:l(e);t._sourceSize.forEach((e,t)=>{if(null!==e&&e!==r[t])throw new o.h(e,r[t])})}function d(e,t){if(void 0!==e){if(!(0,a.Et)(e)||!(0,i.YN)(e))throw TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&e>=t)throw new u.d(e,t)}}function h(e){for(var t=0;t<e._dimensions.length;++t){var r=e._dimensions[t];if(r._data&&(0,a.cy)(r._data)){if(0===r._size[0])return!0}else if(r.isRange){if(r.start===r.end)return!0}else if((0,a.Kg)(r)&&0===r.length)return!0}return!1}function m(e,t,r){if(!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw Error("Resizing to scalar is not supported");return t.forEach(function(e){if(!(0,a.Et)(e)||!(0,i.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,s.GP)(t)+")")}),((0,a.Et)(e)||(0,a.C4)(e))&&(e=[e]),function e(t,r,n,i){var a,s,o=t.length,u=r[n],c=Math.min(o,u);if(t.length=u,n<r.length-1){var l=n+1;for(a=0;a<c;a++)Array.isArray(s=t[a])||(s=[s],t[a]=s),e(s,r,l,i);for(a=c;a<u;a++)s=[],t[a]=s,e(s,r,l,i)}else{for(a=0;a<c;a++)for(;Array.isArray(t[a]);)t[a]=t[a][0];for(a=c;a<u;a++)t[a]=i}}(e,t,0,void 0!==r?r:0),e}function g(e,t){var r=D(e,!0),n=r.length;if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw new o.h(0,n,"!=");var i=y(t=v(t,n));if(n!==i)throw new o.h(i,n,"!=");try{return function(e,t){for(var r,n=e,i=t.length-1;i>0;i--){var a=t[i];r=[];for(var s=n.length/a,o=0;o<s;o++)r.push(n.slice(o*a,(o+1)*a));n=r}return n}(r,t)}catch(e){if(e instanceof o.h)throw new o.h(i,n,"!=");throw e}}function v(e,t){var r=y(e),n=e.slice(),i=e.indexOf(-1);if(e.indexOf(-1,i+1)>=0)throw Error("More than one wildcard in sizes");if(i>=0)if(t%r==0)n[i]=-t/r;else throw Error("Could not replace wildcard, since "+t+" is no multiple of "+-r);return n}function y(e){return e.reduce((e,t)=>e*t,1)}function b(e,t){for(var r=t||l(e);Array.isArray(e)&&1===e.length;)e=e[0],r.shift();for(var n=r.length;1===r[n-1];)n--;return n<r.length&&(e=function e(t,r,n){var i,a;if(n<r){var s=n+1;for(i=0,a=t.length;i<a;i++)t[i]=e(t[i],r,s)}else for(;Array.isArray(t);)t=t[0];return t}(e,n,0),r.length=n),e}function x(e,t,r,n){var i=n||l(e);if(r)for(var a=0;a<r;a++)e=[e],i.unshift(1);for(e=function e(t,r,n){var i,a;if(Array.isArray(t)){var s=n+1;for(i=0,a=t.length;i<a;i++)t[i]=e(t[i],r,s)}else for(var o=n;o<r;o++)t=[t];return t}(e,t,0);i.length<t;)i.push(1);return e}function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;if("boolean"!=typeof t)throw TypeError("Boolean expected for second argument of flatten");var r=[];return t?function e(t){if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e(t[n]);else for(var i=0;i<t.length;i++)r.push(t[i])}(e):function e(t){for(var n=0;n<t.length;n++){var i=t[n];Array.isArray(i)?e(i):r.push(i)}}(e),r}function w(e,t){return Array.prototype.map.call(e,t)}function N(e,t){Array.prototype.forEach.call(e,t)}function A(e,t){if(1!==l(e).length)throw Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,t)}function E(e,t){if(1!==l(e).length)throw Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,e=>t.test(e))}function S(e,t){return Array.prototype.join.call(e,t)}function C(e){if(!Array.isArray(e))throw TypeError("Array input expected");if(0===e.length)return e;var t=[],r=0;t[0]={value:e[0],identifier:0};for(var n=1;n<e.length;n++)e[n]===e[n-1]?r++:r=0,t.push({value:e[n],identifier:r});return t}function M(e){if(!Array.isArray(e))throw TypeError("Array input expected");if(0===e.length)return e;for(var t=[],r=0;r<e.length;r++)t.push(e[r].value);return t}function T(){var e=Array.prototype.slice.call(arguments,0,-1),t=Array.prototype.slice.call(arguments,-1);if(1===e.length)return e[0];if(e.length>1)return e.slice(1).reduce(function(e,r){return function e(t,r,n,i){if(!(i<n))return t.concat(r);if(t.length!==r.length)throw new o.h(t.length,r.length);for(var a=[],s=0;s<t.length;s++)a[s]=e(t[s],r[s],n,i+1);return a}(e,r,t,0)},e[0]);throw Error("Wrong number of arguments in function concat")}function O(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=t.map(e=>e.length),i=Math.max(...n),a=Array(i).fill(null),s=0;s<t.length;s++)for(var o=t[s],u=n[s],c=0;c<u;c++){var l=i-u+c;o[c]>a[l]&&(a[l]=o[c])}for(var p=0;p<t.length;p++)F(t[p],a);return a}function F(e,t){for(var r=t.length,n=e.length,i=0;i<n;i++){var a=r-n+i;if(e[i]<t[a]&&e[i]>1||e[i]>t[a])throw Error("shape mismatch: mismatch is found in arg with shape (".concat(e,") not possible to broadcast dimension ").concat(n," with size ").concat(e[i]," to size ").concat(t[a]))}}function _(e,t){var r,i,a,s,o=l(e);if((0,c.QO)(o,t))return e;F(o,t);var u=O(o,t),p=u.length,f=[...Array(p-o.length).fill(1),...o],d=(r=e,(0,n.A)([],r));o.length<p&&(o=l(d=g(d,f)));for(var h=0;h<p;h++){o[h]<u[h]&&(o=l((i=d,a=u[h],s=h,d=T(...Array(a).fill(i),s))))}return d}function B(e,t){if(!Array.isArray(e))throw Error("Array expected");var r=l(e);if(t.length!==r.length)throw new o.h(t.length,r.length);for(var n=0;n<t.length;n++)d(t[n],r[n]);return t.reduce((e,t)=>e[t],e)}function P(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0===e.length)return[];if(r)return function e(r){if(!Array.isArray(r))return t(r);for(var n=r.length,i=Array(n),a=0;a<n;a++)i[a]=e(r[a]);return i}(e);var n=[];return function r(i,a){if(!Array.isArray(i))return t(i,n.slice(0,a),e);for(var s=i.length,o=Array(s),u=0;u<s;u++)n[a]=u,o[u]=r(i[u],a+1);return o}(e,0)}function k(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!==e.length){if(r)return void function e(r){if(Array.isArray(r))for(var n=r.length,i=0;i<n;i++)e(r[i]);else t(r)}(e);var n=[];!function r(i,a){if(Array.isArray(i))for(var s=i.length,o=0;o<s;o++)n[a]=o,r(i[o],a+1);else t(i,n.slice(0,a),e)}(e,0)}}},53676(e,t,r){"use strict";function n(e,t,r,n){return function(i){if(i>0||r.predictable){if(i<=0)return NaN;var a=i.toString(16),s=a.substring(0,15);return e*(a.length-s.length)+t(Number("0x"+s))}return n(i.toNumber())}}r.d(t,{C:()=>n})},14636(e,t,r){"use strict";function n(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw Error("Integers expected in function bitAnd");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);if(e.isZero()||t.eq(-1)||e.eq(t))return e;if(t.isZero()||e.eq(-1))return t;if(!e.isFinite()||!t.isFinite()){if(!e.isFinite()&&!t.isFinite())return e.isNegative()===t.isNegative()?e:new r(0);if(!e.isFinite())return t.isNegative()?e:e.isNegative()?new r(0):t;if(!t.isFinite())return e.isNegative()?t:t.isNegative()?new r(0):e}return s(e,t,function(e,t){return e&t})}function i(e){if(e.isFinite()&&!e.isInteger())throw Error("Integer expected in function bitNot");var t=e.constructor,r=t.precision;t.config({precision:1e9});var n=e.plus(new t(1));return n.s=-n.s||null,t.config({precision:r}),n}function a(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw Error("Integers expected in function bitOr");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);var n=new r(-1);return e.isZero()||t.eq(n)||e.eq(t)?t:t.isZero()||e.eq(n)?e:e.isFinite()&&t.isFinite()?s(e,t,function(e,t){return e|t}):!e.isFinite()&&!e.isNegative()&&t.isNegative()||e.isNegative()&&!t.isNegative()&&!t.isFinite()?n:e.isNegative()&&t.isNegative()?e.isFinite()?e:t:e.isFinite()?t:e}function s(e,t,r){var n,a,s,u,c,l=e.constructor,p=+(e.s<0),f=+(t.s<0);if(p){n=o(i(e));for(var d=0;d<n.length;++d)n[d]^=1}else n=o(e);if(f){a=o(i(t));for(var h=0;h<a.length;++h)a[h]^=1}else a=o(t);n.length<=a.length?(s=n,u=a,c=p):(s=a,u=n,c=f);var m=s.length,g=u.length,v=1^r(p,f),y=new l(1^v),b=new l(1),x=new l(2),D=l.precision;for(l.config({precision:1e9});m>0;)r(s[--m],u[--g])===v&&(y=y.plus(b)),b=b.times(x);for(;g>0;)r(c,u[--g])===v&&(y=y.plus(b)),b=b.times(x);return l.config({precision:D}),0===v&&(y.s=-y.s),y}function o(e){for(var t=e.d,r=t[0]+"",n=1;n<t.length;++n){for(var i=t[n]+"",a=7-i.length;a--;)i="0"+i;r+=i}for(var s=r.length;"0"===r.charAt(s);)s--;var o=e.e,u=r.slice(0,s+1||1),c=u.length;if(o>0)if(++o>c)for(o-=c;o--;)u+="0";else o<c&&(u=u.slice(0,o)+"."+u.slice(o));for(var l=[0],p=0;p<u.length;){for(var f=l.length;f--;)l[f]*=10;l[0]+=parseInt(u.charAt(p++));for(var d=0;d<l.length;++d)l[d]>1&&((null===l[d+1]||void 0===l[d+1])&&(l[d+1]=0),l[d+1]+=l[d]>>1,l[d]&=1)}return l.reverse()}function u(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw Error("Integers expected in function bitXor");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);if(e.isZero())return t;if(t.isZero())return e;if(e.eq(t))return new r(0);var n=new r(-1);return e.eq(n)?i(t):t.eq(n)?i(e):e.isFinite()&&t.isFinite()?s(e,t,function(e,t){return e^t}):e.isFinite()||t.isFinite()?new r(e.isNegative()===t.isNegative()?1/0:-1/0):n}function c(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw Error("Integers expected in function leftShift");var r=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new r(NaN):e.isZero()||t.isZero()?e:e.isFinite()||t.isFinite()?t.lt(55)?e.times(Math.pow(2,t.toNumber())+""):e.times(new r(2).pow(t)):new r(NaN)}function l(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw Error("Integers expected in function rightArithShift");var r=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new r(NaN):e.isZero()||t.isZero()?e:t.isFinite()?t.lt(55)?e.div(Math.pow(2,t.toNumber())+"").floor():e.div(new r(2).pow(t)).floor():new r(e.isNegative()?-1:e.isFinite()?0:NaN)}r.d(t,{Am:()=>l,GK:()=>n,KO:()=>a,ZN:()=>c,e6:()=>i,hC:()=>u})},77506(e,t,r){"use strict";r.d(t,{OP:()=>o,R3:()=>s,pb:()=>a,t9:()=>i});var n=r(52708),i=(0,n.B)(function(e){return new e(1).exp()},{hasher:u}),a=(0,n.B)(function(e){return new e(1).plus(new e(5).sqrt()).div(2)},{hasher:u}),s=(0,n.B)(function(e){return e.acos(-1)},{hasher:u}),o=(0,n.B)(function(e){return s(e).times(2)},{hasher:u});function u(e){return e[0].precision}},46052(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-9,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r<=0)throw Error("Relative tolerance must be greater than 0");if(n<0)throw Error("Absolute tolerance must be at least 0");return!(e.isNaN()||t.isNaN())&&(e.isFinite()&&t.isFinite()?!!e.eq(t)||e.minus(t).abs().lte(e.constructor.max(e.constructor.max(e.abs(),t.abs()).mul(r),n)):e.eq(t))}r.d(t,{q:()=>n})},76355(e,t,r){"use strict";r.d(t,{Bl:()=>c,HL:()=>o,TS:()=>l,Tb:()=>f,xL:()=>u});var n=r(14943),i=r(6636),a=r(35838),s=r(99979);function o(e){for(var t=0;t<e.length;t++)if((0,n.P3)(e[t]))return!0;return!1}function u(e,t){(0,n.OA)(e)?e.forEach(e=>t(e),!1,!0):(0,a.xL)(e,t,!0)}function c(e,t,r){if(!r)if((0,n.OA)(e))return e.map(e=>t(e),!1,!0);else return(0,a.Bl)(e,t,!0);var i=e=>0===e?e:t(e);return(0,n.OA)(e)?e.map(e=>i(e),!1,!0):(0,a.Bl)(e,i,!0)}function l(e,t,r){var s=Array.isArray(e)?(0,a.LO)(e):e.size();if(t<0||t>=s.length)throw new i.d(t,s.length);return(0,n.OA)(e)?e.create(p(e.valueOf(),t,r),e.datatype()):p(e,t,r)}function p(e,t,r){var n,i,a,o;if(t<=0)if(Array.isArray(e[0])){for(n=0,o=(0,s.U)(e),i=[];n<o.length;n++)i[n]=p(o[n],t-1,r);return i}else{for(n=1,a=e[0];n<e.length;n++)a=r(a,e[n]);return a}for(n=0,i=[];n<e.length;n++)i[n]=p(e[n],t-1,r);return i}function f(e,t,r,n,i,a,s,o,u,c,l){var p,f,d,h,m=e._values,g=e._index,v=e._ptr;if(n)for(f=v[t],d=v[t+1],p=f;p<d;p++)r[h=g[p]]!==a?(r[h]=a,s.push(h),c?(n[h]=u?o(m[p],l):o(l,m[p]),i[h]=a):n[h]=m[p]):(n[h]=u?o(m[p],n[h]):o(n[h],m[p]),i[h]=a);else for(f=v[t],d=v[t+1],p=f;p<d;p++)r[h=g[p]]!==a?(r[h]=a,s.push(h)):i[h]=a}},99863(e,t,r){"use strict";r.d(t,{HU:()=>i,Tn:()=>u,dL:()=>a,xk:()=>s,z_:()=>o});var n=r(93140);function i(e,t){if(s(e,t))return e[t];if("function"==typeof e[t]&&u(e,t))throw Error('Cannot access method "'+t+'" as a property');throw Error('No access to property "'+t+'"')}function a(e,t,r){if(s(e,t))return e[t]=r,r;throw Error('No access to property "'+t+'"')}function s(e,t){var r;return(!!("object"==typeof(r=e)&&r&&r.constructor===Object)||!!Array.isArray(e))&&(!!(0,n.mQ)(c,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function o(e,t){if(!u(e,t))throw Error('No access to method "'+t+'"');return e[t]}function u(e,t){return!(null==e||"function"!=typeof e[t]||(0,n.mQ)(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e))&&(!!(0,n.mQ)(l,t)||!(t in Object.prototype)&&!(t in Function.prototype))}var c={length:!0,name:!0},l={toString:!0,valueOf:!0,toLocaleString:!0}},58321(e,t,r){"use strict";r.d(t,{P9:()=>i,Py:()=>s,T$:()=>a});var n=r(93140);function i(e,t,r,i){function a(i){var a=(0,n.K)(i,t.map(s));return function(e,t,r){if(!t.filter(e=>{var t;return!((t=e)&&"?"===t[0])}).every(e=>void 0!==r[e])){var n=t.filter(e=>void 0===r[e]);throw Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(n.map(e=>'"'.concat(e,'"')).join(", "),"."))}}(e,t,i),r(a)}return a.isFactory=!0,a.fn=e,a.dependencies=t.slice().sort(),i&&(a.meta=i),a}function a(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function s(e){return e&&"?"===e[0]?e.slice(1):e}},52708(e,t,r){"use strict";function n(e){var{hasher:t,limit:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=null==r?1/0:r,t=null==t?JSON.stringify:t,function n(){"object"!=typeof n.cache&&(n.cache={values:new Map,lru:(i=r||1/0,a=0,s=1,o=Object.create(null),u=Object.create(null),c=0,l=function(e){var t=u[e];if(t&&(delete o[t],delete u[e],--a,s===t)){if(!a){c=0,s=1;return}for(;!Object.prototype.hasOwnProperty.call(o,++s););}},i=Math.abs(i),{hit:function(e){var t=u[e],r=++c;if(o[r]=e,u[e]=r,!t){if(++a<=i)return;return l(e=o[s]),e}if(delete o[t],s===t)for(;!Object.prototype.hasOwnProperty.call(o,++s););},delete:l,clear:function(){a=c=0,s=1,o=Object.create(null),u=Object.create(null)}})});for(var i,a,s,o,u,c,l,p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];var d=t(p);if(n.cache.values.has(d))return n.cache.lru.hit(d),n.cache.values.get(d);var h=e.apply(e,p);return n.cache.values.set(d,h),n.cache.values.delete(n.cache.lru.hit(d)),h}}r.d(t,{B:()=>n})},14943(e,t,r){"use strict";r.d(t,{$$:()=>U,$I:()=>z,$P:()=>w,AF:()=>m,AS:()=>O,BA:()=>k,C4:()=>a,CD:()=>B,Et:()=>i,GJ:()=>j,Gv:()=>A,Kg:()=>l,Ll:()=>L,Lm:()=>y,OA:()=>f,P3:()=>d,PO:()=>P,Px:()=>R,QP:()=>Z,Tn:()=>D,Ye:()=>H,Zd:()=>o,_Z:()=>g,aZ:()=>S,b0:()=>T,cy:()=>p,eW:()=>b,fU:()=>u,gO:()=>F,gS:()=>x,gd:()=>N,iu:()=>G,jW:()=>q,jh:()=>E,kZ:()=>M,li:()=>Q,m2:()=>I,nw:()=>v,o_:()=>V,qM:()=>_,sI:()=>s,tv:()=>$,uQ:()=>C,vO:()=>c,zR:()=>h});var n=r(9286);function i(e){return"number"==typeof e}function a(e){return!!e&&"object"==typeof e&&"function"==typeof e.constructor&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function s(e){return"bigint"==typeof e}function o(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function u(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function c(e){return e&&!0===e.constructor.prototype.isUnit||!1}function l(e){return"string"==typeof e}var p=Array.isArray;function f(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function d(e){return Array.isArray(e)||f(e)}function h(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function m(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function g(e){return e&&!0===e.constructor.prototype.isRange||!1}function v(e){return e&&!0===e.constructor.prototype.isIndex||!1}function y(e){return"boolean"==typeof e}function b(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function x(e){return e&&!0===e.constructor.prototype.isHelp||!1}function D(e){return"function"==typeof e}function w(e){return e instanceof Date}function N(e){return e instanceof RegExp}function A(e){return!!(e&&"object"==typeof e&&e.constructor===Object&&!o(e)&&!u(e))}function E(e){return!!e&&(e instanceof Map||e instanceof n.AP||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}function S(e){return E(e)&&E(e.a)&&E(e.b)}function C(e){return E(e)&&A(e.wrappedObject)}function M(e){return null===e}function T(e){return void 0===e}function O(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function F(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function _(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function B(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function P(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function k(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function q(e){return k(e)||U(e)&&1===e.args.length&&k(e.args[0])&&"-+~".includes(e.op)}function I(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function R(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function z(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function L(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function j(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function U(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function $(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function H(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function G(e){return e&&!0===e.isRelationalNode&&!0===e.constructor.prototype.isNode||!1}function Q(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function V(e){return e&&!0===e.constructor.prototype.isChain||!1}function Z(e){var t=typeof e;return"object"===t?null===e?"null":a(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}},64139(e,t,r){"use strict";r.d(t,{GK:()=>s,MA:()=>l,QP:()=>p,WC:()=>o,oB:()=>u});var n=r(43144),i=r(93140),a={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},s={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},o={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(s.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(s.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(s.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(s.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(s.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},fraction:{2:"\\frac{${args[0]}}{${args[1]}}"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(s.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(s.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : y^${args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(s.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(s.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(s.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(s.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(s.bitAnd,"${args[1]}\\right)")},bitNot:{1:s.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(s.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(s.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(s.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(s.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(s.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(s.and,"${args[1]}\\right)")},not:{1:s.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(s.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(s.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(s.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(s.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(s.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(s.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(s.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(s.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(s.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(s.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(s.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(s.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(s.to,"${args[1]}\\right)")},numeric:function(e,t){return e.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},bigint:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(a.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},u="\\mathrm{${name}}\\left(${args}\\right)",c={deg:"^\\circ"};function l(e){return n(e,{preserveFormatting:!0})}function p(e,t){return(t=void 0!==t&&t)?(0,i.mQ)(c,e)?c[e]:"\\mathrm{"+l(e)+"}":(0,i.mQ)(a,e)?a[e]:l(e)}},9286(e,t,r){"use strict";r.d(t,{A5:()=>u,AP:()=>a,pI:()=>c,vw:()=>l,w6:()=>s});var n=r(99863),i=r(14943);class a{constructor(e){this.wrappedObject=e,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).filter(e=>this.has(e)).values()}get(e){return(0,n.HU)(this.wrappedObject,e)}set(e,t){return(0,n.dL)(this.wrappedObject,e,t),this}has(e){return(0,n.xk)(this.wrappedObject,e)&&e in this.wrappedObject}entries(){return o(this.keys(),e=>[e,this.get(e)])}forEach(e){for(var t of this.keys())e(this.get(t),t,this)}delete(e){(0,n.xk)(this.wrappedObject,e)&&delete this.wrappedObject[e]}clear(){for(var e of this.keys())this.delete(e)}get size(){return Object.keys(this.wrappedObject).length}}class s{constructor(e,t,r){this.a=e,this.b=t,this.bKeys=r,this[Symbol.iterator]=this.entries}get(e){return this.bKeys.has(e)?this.b.get(e):this.a.get(e)}set(e,t){return this.bKeys.has(e)?this.b.set(e,t):this.a.set(e,t),this}has(e){return this.b.has(e)||this.a.has(e)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return o(this.keys(),e=>[e,this.get(e)])}forEach(e){for(var t of this.keys())e(this.get(t),t,this)}delete(e){return this.bKeys.has(e)?this.b.delete(e):this.a.delete(e)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}}function o(e,t){return{next:()=>{var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}}function u(){return new Map}function c(e){if(!e)return u();if((0,i.jh)(e))return e;if((0,i.Gv)(e))return new a(e);throw Error("createMap can create maps from objects or Maps")}function l(e){if(e instanceof a)return e.wrappedObject;var t={};for(var r of e.keys()){var i=e.get(r);(0,n.dL)(t,r,i)}return t}},76495(e,t,r){"use strict";function n(){throw Error('No "bignumber" implementation available')}function i(){throw Error('No "fraction" implementation available')}function a(){throw Error('No "matrix" implementation available')}r.d(t,{Sw:()=>i,j9:()=>n,zc:()=>a})},51106(e,t,r){"use strict";r.d(t,{BC:()=>a,Fq:()=>w,GP:()=>d,IY:()=>p,Kk:()=>c,L0:()=>S,Mg:()=>g,QI:()=>m,YL:()=>u,YN:()=>i,_S:()=>s,_n:()=>l,b1:()=>M,jS:()=>h,p6:()=>o,q8:()=>D,rf:()=>A,vm:()=>x,yH:()=>N,yI:()=>E,ym:()=>C});var n=r(14943);function i(e){return"boolean"==typeof e||!!Number.isFinite(e)&&e===Math.round(e)}function a(e,t){if("bigint"===t.number)try{BigInt(e)}catch(e){return t.numberFallback}return t.number}var s=Math.sign||function(e){return e>0?1:e<0?-1:0},o=Math.log2||function(e){return Math.log(e)/Math.LN2},u=Math.log10||function(e){return Math.log(e)/Math.LN10},c=Math.log1p||function(e){return Math.log(e+1)},l=Math.cbrt||function(e){if(0===e)return e;var t,r=e<0;return r&&(e=-e),Number.isFinite(e)?(t=Math.exp(Math.log(e)/3),t=(e/(t*t)+2*t)/3):t=e,r?-t:t},p=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function f(e,t,r){var n="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!i(r))throw Error("size must be an integer");if(e>2**(r-1)-1||e<-(2**(r-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!i(e))throw Error("Value must be an integer");e<0&&(e+=2**r),n="i".concat(r)}var a="";return e<0&&(e=-e,a="-"),"".concat(a).concat({2:"0b",8:"0o",16:"0x"}[t]).concat(e.toString(t)).concat(n)}function d(e,t){if("function"==typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var{notation:r,precision:i,wordSize:a}=h(t);switch(r){case"fixed":return g(e,i);case"exponential":return v(e,i);case"engineering":return function(e,t){if(isNaN(e)||!Number.isFinite(e))return String(e);var r=y(m(e),t),i=r.exponent,a=r.coefficients,s=i%3==0?i:i<0?i-3-i%3:i-i%3;if((0,n.Et)(t))for(;t>a.length||i-s+1>a.length;)a.push(0);else for(var o=Math.abs(i-s)-(a.length-1),u=0;u<o;u++)a.push(0);for(var c=Math.abs(i-s),l=1;c>0;)l++,c--;var p=a.slice(l).join(""),f=(0,n.Et)(t)&&p.length||p.match(/[1-9]/)?"."+p:"",d=a.slice(0,l).join("")+f+"e"+(i>=0?"+":"")+s.toString();return r.sign+d}(e,i);case"bin":return f(e,2,a);case"oct":return f(e,8,a);case"hex":return f(e,16,a);case"auto":return(function(e,t,r){if(isNaN(e)||!Number.isFinite(e))return String(e);var n=O(null==r?void 0:r.lowerExp,-3),i=O(null==r?void 0:r.upperExp,5),a=m(e),s=t?y(a,t):a;if(s.exponent<n||s.exponent>=i)return v(e,t);var o=s.coefficients,u=s.exponent;o.length<t&&(o=o.concat(b(t-o.length))),o=o.concat(b(u-o.length+1+(o.length<t?t-o.length:0))),o=b(-u).concat(o);var c=u>0?u:0;return c<o.length-1&&o.splice(c+1,0,"."),s.sign+o.join("")})(e,i,t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function h(e){var t,r,i="auto";if(void 0!==e)if((0,n.Et)(e))t=e;else if((0,n.C4)(e))t=e.toNumber();else if((0,n.Gv)(e))void 0!==e.precision&&(t=T(e.precision,()=>{throw Error('Option "precision" must be a number or BigNumber')})),void 0!==e.wordSize&&(r=T(e.wordSize,()=>{throw Error('Option "wordSize" must be a number or BigNumber')})),e.notation&&(i=e.notation);else throw Error("Unsupported type of options, number, BigNumber, or object expected");return{notation:i,precision:t,wordSize:r}}function m(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError("Invalid number "+e);var r=t[1],n=t[2],i=parseFloat(t[4]||"0"),a=n.indexOf(".");i+=-1!==a?a-1:n.length-1;var s=n.replace(".","").replace(/^0*/,function(e){return i-=e.length,""}).replace(/0*$/,"").split("").map(function(e){return parseInt(e)});return 0===s.length&&(s.push(0),i++),{sign:r,coefficients:s,exponent:i}}function g(e,t){if(isNaN(e)||!Number.isFinite(e))return String(e);var r=m(e),n="number"==typeof t?y(r,r.exponent+1+t):r,i=n.coefficients,a=n.exponent+1,s=a+(t||0);return i.length<s&&(i=i.concat(b(s-i.length))),a<0&&(i=b(-a+1).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?"0.":"."),n.sign+i.join("")}function v(e,t){if(isNaN(e)||!Number.isFinite(Number(e)))return String(e);var r=m(e),n=t?y(r,t):r,i=n.coefficients,a=n.exponent;i.length<t&&(i=i.concat(b(t-i.length)));var s=i.shift();return n.sign+s+(i.length>0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function y(e,t){for(var r={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=r.coefficients;t<=0;)n.unshift(0),r.exponent++,t++;if(n.length>t&&n.splice(t,n.length-t)[0]>=5){var i=t-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),i--,n[i]++}return r}function b(e){for(var t=[],r=0;r<e;r++)t.push(0);return t}function x(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}function D(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-8,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r<=0)throw Error("Relative tolerance must be greater than 0");if(n<0)throw Error("Absolute tolerance must be at least 0");return!(isNaN(e)||isNaN(t))&&(Number.isFinite(e)&&Number.isFinite(t)?e===t||Math.abs(e-t)<=Math.max(r*Math.max(Math.abs(e),Math.abs(t)),n):e===t)}var w=Math.acosh||function(e){return Math.log(Math.sqrt(e*e-1)+e)},N=Math.asinh||function(e){return Math.log(Math.sqrt(e*e+1)+e)},A=Math.atanh||function(e){return Math.log((1+e)/(1-e))/2},E=Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},S=Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},C=Math.tanh||function(e){var t=Math.exp(2*e);return(t-1)/(t+1)};function M(e,t){return(e>0||!(e<0)&&1/e==1/0)^(t>0||!(t<0)&&1/t==1/0)?-e:e}function T(e,t){return(0,n.Et)(e)?e:(0,n.C4)(e)?e.toNumber():void t()}function O(e,t){return(0,n.Et)(e)?e:(0,n.C4)(e)?e.toNumber():t}},93140(e,t,r){"use strict";r.d(t,{K:()=>c,Mx:()=>u,QO:()=>function e(t,r){var n,i,a;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(i=0,a=t.length;i<a;i++)if(!e(t[i],r[i]))return!1;return!0}if("function"==typeof t)return t===r;if(!(t instanceof Object))return t===r;if(Array.isArray(r)||!(r instanceof Object))return!1;for(n in t)if(!(n in r)||!e(t[n],r[n]))return!1;for(n in r)if(!(n in t))return!1;return!0},RZ:()=>s,X$:()=>i,mQ:()=>o,o8:()=>function e(t){var r=typeof t;if("number"===r||"bigint"===r||"string"===r||"boolean"===r||null==t)return t;if("function"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map(function(t){return e(t)});if(t instanceof Date)return new Date(t.valueOf());if((0,n.C4)(t))return t;if((0,n.Gv)(t)){var i=t,a=e,s={};for(var u in i)o(i,u)&&(s[u]=a(i[u]));return s}if("function"===r)return t;throw TypeError("Cannot clone: unknown type of value (value: ".concat(t,")"))},rU:()=>a,zw:()=>function e(t,r){if(Array.isArray(r))throw TypeError("Arrays are not supported by deepExtend");for(var n in r)if(o(r,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(r[n]&&r[n].constructor===Object)void 0===t[n]&&(t[n]={}),t[n]&&t[n].constructor===Object?e(t[n],r[n]):t[n]=r[n];else if(Array.isArray(r[n]))throw TypeError("Arrays are not supported by deepExtend");else t[n]=r[n];return t}});var n=r(14943);function i(e,t){for(var r in t)o(t,r)&&(e[r]=t[r]);return e}function a(e){var t={};return function e(t,r){for(var n in t)if(o(t,n)){var i=t[n];"object"==typeof i&&null!==i?e(i,r):r[n]=i}}(e,t),t}function s(e,t,r){var n,i=!0;Object.defineProperty(e,t,{get:function(){return i&&(n=r(),i=!1),n},set:function(e){n=e,i=!1},configurable:!0,enumerable:!0})}function o(e,t){return e&&Object.hasOwnProperty.call(e,t)}function u(e){return e&&"function"==typeof e.factory}function c(e,t){for(var r={},n=0;n<t.length;n++){var i=t[n],a=e[i];void 0!==a&&(r[i]=a)}return r}},86383(e,t,r){"use strict";r.d(t,{r:()=>s});var n=r(62369),i=r(35838),a=r(14943);function s(e,t,r,a){if(n.isTypedFunction(e)){if(a)s=1;else{var s,u,c=t.isMatrix?t.size():(0,i.LO)(t);if(!c.length||0===c[c.length-1])return{isUnary:a,fn:e};var l=c.map(()=>0);s=function(e,t,r,i){for(var a=[t,r,i],s=3;s>0;s--){var o=a.slice(0,s);if(null!==n.resolve(e,o))return s}}(e,t.isMatrix?t.get(l):(0,i.Jt)(t,l),l,t)}if(t.isMatrix&&"mixed"!==t.dataType&&void 0!==t.dataType){var p=function(e,t){var r=[];if(Object.entries(e.signatures).forEach(e=>{var[n,i]=e;n.split(",").length===t&&r.push(i)}),1===r.length)return r[0]}(e,s);u=void 0!==p?p:e}else u=e;return s>=1&&s<=3?{isUnary:1===s,fn:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return o(u,n.slice(0,s),r,e.name)}}:{isUnary:!1,fn:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return o(u,n,r,e.name)}}}return void 0===a?{isUnary:function(e){if(1!==e.length)return!1;var t=e.toString();if(/arguments/.test(t))return!1;var r=t.match(/\(.*?\)/);return!/\.\.\./.test(r)}(e),fn:e}:{isUnary:a,fn:e}}function o(e,t,r,n){try{return e(...t)}catch(e){var i,s=e,o=t,u=r,c=n;if(s instanceof TypeError&&(null==(i=s.data)?void 0:i.category)==="wrongType"){var l=[];throw l.push("value: ".concat((0,a.QP)(o[0]))),o.length>=2&&l.push("index: ".concat((0,a.QP)(o[1]))),o.length>=3&&l.push("array: ".concat((0,a.QP)(o[2]))),TypeError("Function ".concat(u," cannot apply callback arguments ")+"".concat(c,"(").concat(l.join(", "),") at index ").concat(JSON.stringify(o[1])))}throw TypeError("Function ".concat(u," cannot apply callback arguments ")+"to function ".concat(c,": ").concat(s.message))}}},93556(e,t,r){"use strict";r.d(t,{I:()=>n});var n=/\$([\w.]+)/g},40924(e,t,r){"use strict";r.d(t,{q:()=>function e(t,r){if(r<t)return 1;if(r===t)return r;var n=r+t>>1;return e(t,n)*e(n+1,r)}})},8315(e,t,r){"use strict";r.d(t,{n:()=>i});var n=r(9286);function i(e,t){return new n.w6(e,new n.AP(t),new Set(Object.keys(t)))}},27716(e,t,r){"use strict";r.d(t,{As:()=>c,d5:()=>u,n6:()=>f,ih:()=>p,GP:()=>function e(t,r){var u=function(t,r){var u;if("number"==typeof t)return(0,i.GP)(t,r);if((0,n.C4)(t))return function(e,t){if("function"==typeof t)return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var r,n,u,c,l,p,f,{notation:d,precision:h,wordSize:m}=(0,i.jS)(t);switch(d){case"fixed":return r=e,n=h,r.toFixed(n);case"exponential":return s(e,h);case"engineering":return u=e,c=h,p=(l=u.e)%3==0?l:l<0?l-3-l%3:l-l%3,(f=u.mul(Math.pow(10,-p)).toPrecision(c)).includes("e")&&(f=new u.constructor(f).toFixed()),f+"e"+(l>=0?"+":"")+p.toString();case"bin":return a(e,2,m);case"oct":return a(e,8,m);case"hex":return a(e,16,m);case"auto":var g=o(null==t?void 0:t.lowerExp,-3),v=o(null==t?void 0:t.upperExp,5);if(e.isZero())return"0";var y=e.toSignificantDigits(h),b=y.e;return(b>=g&&b<v?y.toFixed():s(e,h)).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+d+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(t,r);if((u=t)&&"object"==typeof u&&"bigint"==typeof u.s&&"bigint"==typeof u.n&&"bigint"==typeof u.d)if(!r||"decimal"!==r.fraction)return"".concat(t.s*t.n,"/").concat(t.d);else return t.toString();if(Array.isArray(t))return function t(r,n){if(!Array.isArray(r))return e(r,n);for(var i="[",a=r.length,s=0;s<a;s++)0!==s&&(i+=", "),i+=t(r[s],n);return i+"]"}(t,r);if((0,n.Kg)(t))return c(t);if("function"==typeof t)return t.syntax?String(t.syntax):"function";if(t&&"object"==typeof t)if("function"==typeof t.format)return t.format(r);else return t&&t.toString(r)!==({}).toString()?t.toString(r):"{"+Object.keys(t).map(n=>c(n)+": "+e(t[n],r)).join(", ")+"}";return String(t)}(t,r);return r&&"object"==typeof r&&"truncate"in r&&u.length>r.truncate?u.substring(0,r.truncate-3)+"...":u}});var n=r(14943),i=r(51106);function a(e,t,r){var n=new e.constructor(2),a="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!(0,i.YN)(r))throw Error("size must be an integer");if(e.greaterThan(n.pow(r-1).sub(1))||e.lessThan(n.pow(r-1).mul(-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!e.isInteger())throw Error("Value must be an integer");e.lessThan(0)&&(e=e.add(n.pow(r))),a="i".concat(r)}switch(t){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw Error("Base ".concat(t," not supported "))}}function s(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}function o(e,t){return(0,n.Et)(e)?e:(0,n.C4)(e)?e.toNumber():t}function u(e,t){var r=e.length-t.length,n=e.length;return e.substring(r,n)===t}function c(e){for(var t=String(e),r="",n=0;n<t.length;){var i=t.charAt(n);r+=i in l?l[i]:i,n++}return'"'+r+'"'}var l={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"};function p(e){var t=String(e);return t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function f(e,t){if(!(0,n.Kg)(e))throw TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+(0,n.QP)(e)+", index: 0)");if(!(0,n.Kg)(t))throw TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+(0,n.QP)(t)+", index: 1)");return e===t?0:e>t?1:-1}},99979(e,t,r){"use strict";function n(e){var t,r,n=e.length,i=e[0].length,a=[];for(r=0;r<i;r++){var s=[];for(t=0;t<n;t++)s.push(e[t][r]);a.push(s)}return a}r.d(t,{U:()=>n})},20296(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r){var i;return(i=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(i)?i:i+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>i})},71333(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})}}]);
|