securityos/node_modules/butterchurn/dist/butterchurn.min.js

2 lines
240 KiB
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("butterchurn",[],e):"object"==typeof exports?exports.butterchurn=e():t.butterchurn=e()}(window,(function(){return function(t){var e={};function i(s){if(e[s])return e[s].exports;var r=e[s]={i:s,l:!1,exports:{}};return t[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(s,r,function(e){return t[e]}.bind(null,r));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=24)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayJoin=function(t,e){const i=[];for(let s=0;s<t.length;s++){i.push(t[s]);s===t.length-1||i.push(e)}return i},e.flatten=function(t){return[].concat.apply([],t)},e.times=function(t,e){return new Array(t).fill(null).map((t,i)=>e(i))},e.repeat=function(t,e){return new Array(t).fill(e).join("")};e.ScopedIdMap=class{constructor(){this._map=new Map}get(t,e){const i=null==t?e:`${t}::${e}`;return this._map.has(i)||this._map.set(i,this._map.size),this._map.get(i)}size(){return this._map.size}},e.formatList=function(t){if(0===t.length)throw new Error("Cannot format an empty list");if(1===t.length)return t[0];const e=t.map(t=>`"${t}"`),i=e.pop();return e.join(", ")+" and "+i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const s={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,atan2:Math.atan2,rand:t=>Math.random()*t,pow:Math.pow,log:Math.log,log10:Math.log10,exp:Math.exp,sigmoid:function(t,e){const i=1+Math.exp(-t*e);return Math.abs(i)>1e-5?1/i:0}};e.default=s},function(t,e,i){"use strict";var s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});const r=s(i(21)),o=i(0);function a(t){const e=new Uint8Array(8);return r.write(e,t),e}function h(t){const e=[];do{let i=127&t;0!==(t>>>=7)&&(i|=128),e.push(i)}while(0!==t);return e}function A(t){let e=[],i=0,s=Math.ceil(Math.log2(Math.abs(t))),r=t<0,o=!0;for(;o;)i=127&t,t>>=7,r&&(t|=-(1<<s-7)),0==t&&0==(64&i)||-1==t&&64==(64&i)?o=!1:i|=128,e.push(i);return e}e.MAGIC=[0,97,115,109],e.WASM_VERSION=[1,0,0,0],e.EPSILON=1e-5,e.SECTION={TYPE:1,IMPORT:2,FUNC:3,MEMORY:5,GLOBAL:6,EXPORT:7,CODE:10},e.EXPORT_TYPE={FUNC:0,TABLE:1,MEMORY:2,GLOBAL:3},e.op={block:t=>[2,t],loop:t=>[3,t],if:t=>[4,t],else:5,end:11,br_if:t=>[13,...h(t)],call:t=>[16,...h(t)],drop:26,select:27,local_get:t=>[32,...h(t)],local_set:t=>[33,...h(t)],local_tee:t=>[34,...h(t)],global_get:t=>[35,...h(t)],global_set:t=>[36,...h(t)],f64_load:(t,e)=>[43,...h(t),...h(e)],f64_store:(t,e)=>[57,...h(t),...h(e)],i32_const:t=>[65,...A(t)],f64_const:t=>[68,...a(t)],i32_eqz:69,i32_ne:71,i32_lt_s:72,i32_lt_u:73,i32_gt_s:74,i32_le_s:76,i32_le_u:77,i32_ge_s:78,f64_eq:97,f64_ne:98,f64_lt:99,f64_gt:100,f64_le:101,f64_ge:102,i32_add:106,i32_sub:107,i32_mul:108,i32_rem_s:111,i32_and:113,i32_or:114,i64_rem_s:129,i64_and:131,i64_or:132,f64_abs:153,f64_neg:154,f64_ceil:155,f64_floor:156,f64_sqrt:159,f64_add:160,f64_sub:161,f64_mul:162,f64_div:163,f64_min:164,f64_max:165,i32_trunc_f64_s:170,i32_trunc_f64_u:171,i64_trunc_s_f64:176,f64_convert_i64_s:185,f64_convert_i32_s:183},e.VAL_TYPE={i32:127,i64:126,f32:125,f64:124},e.MUTABILITY={const:0,var:1},e.BLOCK={void:64,i32:127,i64:126,f32:125,f64:124},e.FUNCTION
//# sourceMappingURL=butterchurn.min.js.map