(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[414],{4699:function(e,t){"use strict";t.byteLength=function(e){var t=getLens(e),n=t[0],i=t[1];return(n+i)*3/4-i},t.toByteArray=function(e){var t,n,o=getLens(e),a=o[0],u=o[1],c=new s((a+u)*3/4-u),f=0,p=u>0?a-4:a;for(n=0;n
>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===u&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[f++]=255&t),1===u&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,s=i%3,o=[],a=0,u=i-s;a>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}(e,a,a+16383>u?u:a+16383));return 1===s?o.push(n[(t=e[i-1])>>2]+n[t<<4&63]+"=="):2===s&&o.push(n[(t=(e[i-2]<<8)+e[i-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},7133:function(e,t,n){"use strict";/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh 0;e[n+_]=255&a,_+=y,a/=256,f-=8);e[n+_-y]|=128*w}},2601:function(e,t,n){"use strict";var i,s;e.exports=(null==(i=n.g.process)?void 0:i.env)&&"object"==typeof(null==(s=n.g.process)?void 0:s.env)?n.g.process:n(8960)},692:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(9875)}},i={};function __nccwpck_require__(e){var n=i[e];if(void 0!==n)return n.exports;var s=i[e]={exports:{}},o=!0;try{t[e](s,s.exports,__nccwpck_require__),o=!1}finally{o&&delete i[e]}return s.exports}__nccwpck_require__.ab="//";var s={};!function(){var e,t=(e=__nccwpck_require__(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=d(e));var i,s,o,a,u,c,f,p,m,g=(s=(i=e).auth,o=i.hostname,a=i.protocol||"",u=i.pathname||"",c=i.hash||"",f=i.query||"",p=!1,s=s?encodeURIComponent(s).replace(/%3A/i,":")+"@":"",i.host?p=s+i.host:o&&(p=s+(~o.indexOf(":")?"["+o+"]":o),i.port&&(p+=":"+i.port)),f&&"object"==typeof f&&(f=t.encode(f)),m=i.search||f&&"?"+f||"",a&&":"!==a.substr(-1)&&(a+=":"),i.slashes||(!a||n.test(a))&&!1!==p?(p="//"+(p||""),u&&"/"!==u[0]&&(u="/"+u)):p||(p=""),c&&"#"!==c[0]&&(c="#"+c),m&&"?"!==m[0]&&(m="?"+m),{protocol:a,host:p,pathname:u=u.replace(/[?#]/g,encodeURIComponent),search:m=m.replace("#","%23"),hash:c});return""+g.protocol+g.host+g.pathname+g.search+g.hash}var i="http://",o=i+"w.w",a=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function h(e,t){var n="string"==typeof e?d(e):e;e="object"==typeof e?r(e):e;var s=d(t),c="";n.protocol&&!n.slashes&&(c=n.protocol,e=e.replace(n.protocol,""),c+="/"===t[0]||"/"===e[0]?"/":""),c&&s.protocol&&(c="",s.slashes||(c=s.protocol,t=t.replace(s.protocol,"")));var f=e.match(a);f&&!s.protocol&&(e=e.substr((c=f[1]+(f[2]||"")).length),/^\/\/[^/]/.test(t)&&(c=c.slice(0,-1)));var p=new URL(e,o+"/"),m=new URL(t,p).toString().replace(o,""),g=s.protocol||n.protocol;return g+=n.slashes||s.slashes?"//":"",!c&&g?m=m.replace(i,g):c&&(m=m.replace(i,"")),u.test(m)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==m.slice(-1)||(m=m.slice(0,-1)),c&&(m=c+("/"===m[0]?m.substr(1):m)),m}function l(){}l.prototype.parse=d,l.prototype.format=r,l.prototype.resolve=h,l.prototype.resolveObject=h;var c=/^https?|ftp|gopher|file/,f=/^(.*?)([#?].*)/,p=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function d(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof l)return e;var s=(e=e.trim()).match(f);e=s?s[1].replace(/\\/g,"/")+s[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(p),u=m.test(e),_="";a&&(c.test(a[1])||(_=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,c.test(a[1])?(_=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(_=a[1],e="/"+a[3]));var y,w=(s?s[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=w&&w[1],v=new l,x="",E="";try{y=new URL(e)}catch(t){x=t,_||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(E="/",e=e.substr(1));try{y=new URL(e,o)}catch(e){return v.protocol=_,v.href=_,v}}v.slashes=u&&!E,v.host="w.w"===y.host?"":y.host,v.hostname="w.w"===y.hostname?"":y.hostname.replace(/(\[|\])/g,""),v.protocol=x?_||null:y.protocol,v.search=y.search.replace(/\\/g,"%5C"),v.hash=y.hash.replace(/\\/g,"%5C");var A=e.split("#");!v.search&&~A[0].indexOf("?")&&(v.search="?"),v.hash||""!==A[1]||(v.hash="#"),v.query=n?t.decode(y.search.substr(1)):v.search.substr(1),v.pathname=E+(a?y.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):y.pathname),"about:"===v.protocol&&"blank"===v.pathname&&(v.protocol="",v.pathname=""),x&&"/"!==e[0]&&(v.pathname=v.pathname.substr(1)),_&&!c.test(_)&&"/"!==e.slice(-1)&&"/"===v.pathname&&(v.pathname=""),v.path=v.pathname+v.search,v.auth=[y.username,y.password].map(decodeURIComponent).filter(Boolean).join(":"),v.port=y.port,b&&!v.host.endsWith(b)&&(v.host+=b,v.port=b.slice(1)),v.href=E?""+v.pathname+v.search+v.hash:r(v);var k=/^(file)/.test(v.href)?["host","hostname"]:[];return Object.keys(v).forEach(function(e){~k.indexOf(e)||(v[e]=v[e]||null)}),v}s.parse=d,s.format=r,s.resolve=h,s.resolveObject=function(e,t){return d(h(e,t))},s.Url=l}(),e.exports=s}()},8960:function(e){!function(){var t={229:function(e){var t,n,i,s=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var o=[],a=!1,u=-1;function cleanUpNextTick(){a&&i&&(a=!1,i.length?o=i.concat(o):u=-1,o.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=o.length;t;){for(i=o,o=[];++unew C(this.value.toUpperCase()))],["lower",new M(()=>new C(this.value.toLowerCase()))],["strip",new M(()=>new C(this.value.trim()))],["length",new S(this.value.length)]])},O=class extends z{type="BooleanValue"},P=class extends z{type="ObjectValue";__bool__(){return new O(this.value.size>0)}},F=class extends z{type="ArrayValue";builtins=new Map([["length",new S(this.value.length)]]);__bool__(){return new O(this.value.length>0)}},M=class extends z{type="FunctionValue"},L=class extends z{type="NullValue"},U=class extends z{type="UndefinedValue"},R=class{constructor(e){this.parent=e}variables=new Map;set(e,t){return this.declareVariable(e,function convertToRuntimeValues(e){switch(typeof e){case"number":return new S(e);case"string":return new C(e);case"boolean":return new O(e);case"object":if(null===e)return new L;if(Array.isArray(e))return new F(e.map(convertToRuntimeValues));return new P(new Map(Object.entries(e).map(([e,t])=>[e,convertToRuntimeValues(t)])));case"function":return new M((t,n)=>{let i=e(...t.map(e=>e.value))??null;return convertToRuntimeValues(i)});default:throw Error(`Cannot convert to runtime value: ${e}`)}}(t))}declareVariable(e,t){if(this.variables.has(e))throw SyntaxError(`Variable already declared: ${e}`);return this.variables.set(e,t),t}setVariable(e,t){let n;try{n=this.resolve(e)}catch{}return(n??this).variables.set(e,t),t}resolve(e){if(this.variables.has(e))return this;if(this.parent)return this.parent.resolve(e);throw Error(`Unknown variable: ${e}`)}lookupVariable(e){return this.resolve(e).variables.get(e)??new L}},N=class{global;constructor(e){this.global=e??new R}run(e){return this.evaluate(e,this.global)}evaluateBinaryExpression(e,t){let n=this.evaluate(e.left,t),i=this.evaluate(e.right,t);switch(e.operator.value){case"==":return new O(n.value==i.value);case"!=":return new O(n.value!=i.value);case"and":return n.__bool__().value?i:n;case"or":return n.__bool__().value?n:i}if(n instanceof U||i instanceof U)throw Error("Cannot perform operation on undefined values");if(n instanceof L||i instanceof L)throw Error("Cannot perform operation on null values");if(n instanceof S&&i instanceof S)switch(e.operator.value){case"+":return new S(n.value+i.value);case"-":return new S(n.value-i.value);case"*":return new S(n.value*i.value);case"/":return new S(n.value/i.value);case"%":return new S(n.value%i.value);case"<":return new O(n.value=0;--e)s[e]=o,i[e]=t[n[e]],o*=i[e];let o=n.map((e,t)=>s[n.indexOf(t)]),a=new e.constructor(e.length);for(let n=0;n=0;--s){let e=i[s];t+=(o%e+n[s][0])*a[s],o=Math.floor(o/e)}o[e]=this.data[t]}return new Tensor(this.type,o,t)}transpose(...e){return transpose(this,e)}sum(e=null,t=!1){return this.norm(1,e,t)}norm(e="fro",t=null,n=!1){if("fro"===e)e=2;else if("string"==typeof e)throw Error(`Unsupported norm: ${e}`);if(null===t){let t=this.data.reduce((t,n)=>t+n**e,0)**(1/e);return new Tensor(this.type,[t],[])}t=safeIndex(t,this.dims.length);let i=this.dims.slice();i[t]=1;let s=new this.data.constructor(this.data.length/this.dims[t]);for(let n=0;n