1
0
mirror of https://github.com/osmarks/website synced 2024-12-24 09:00:30 +00:00
website/experiments/rpncalc-v3/app.js

1 line
121 KiB
JavaScript
Raw Normal View History

2020-03-08 17:13:14 +00:00
!function(r){function t(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return r[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=r,t.c=n,t.d=function(r,n,e){t.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:e})},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,"a",n),n},t.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},t.p="",t(t.s=0)}([function(r,t,n){r.exports=n(1)},function(r,t,n){var e=n(2),o=document.getElementById("app");e.Main.embed(o)},function(r,t){(function(){"use strict";function t(r){function t(t){return function(n){return r(t,n)}}return t.arity=2,t.func=r,t}function n(r){function t(t){return function(n){return function(e){return r(t,n,e)}}}return t.arity=3,t.func=r,t}function e(r){function t(t){return function(n){return function(e){return function(o){return r(t,n,e,o)}}}}return t.arity=4,t.func=r,t}function o(r){function t(t){return function(n){return function(e){return function(o){return function(u){return r(t,n,e,o,u)}}}}}return t.arity=5,t.func=r,t}function u(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return r(t,n,e,o,u,c)}}}}}}return t.arity=6,t.func=r,t}function c(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return function(i){return r(t,n,e,o,u,c,i)}}}}}}}return t.arity=7,t.func=r,t}function i(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return function(i){return function(_){return r(t,n,e,o,u,c,i,_)}}}}}}}}return t.arity=8,t.func=r,t}function _(r){function t(t){return function(n){return function(e){return function(o){return function(u){return function(c){return function(i){return function(_){return function(a){return r(t,n,e,o,u,c,i,_,a)}}}}}}}}}return t.arity=9,t.func=r,t}function a(r,t,n){return 2===r.arity?r.func(t,n):r(t)(n)}function f(r,t,n,e){return 3===r.arity?r.func(t,n,e):r(t)(n)(e)}function l(r,t,n,e,o){return 4===r.arity?r.func(t,n,e,o):r(t)(n)(e)(o)}function s(r,t,n,e,o,u){return 5===r.arity?r.func(t,n,e,o,u):r(t)(n)(e)(o)(u)}function d(r,t,n,e,o,u,c){return 6===r.arity?r.func(t,n,e,o,u,c):r(t)(n)(e)(o)(u)(c)}var v=function(){function r(r){var t,n=!1;return function(e){return n||(t=r(e),n=!0),t}}return{memoize:r}}(),p=function(){function r(r,t){return r/t|0}function e(r,t){return r%t}function o(r,t){if(0===t)throw new Error("Cannot perform mod 0. Division by zero error.");var n=r%t,e=0===r?0:t>0?r>=0?n:n+t:-o(-r,-t);return e===t?0:e}function u(r,t){return Math.log(t)/Math.log(r)}function c(r){return-r}function i(r){return r<0?-r:r}function _(r,t){return h.cmp(r,t)<0?r:t}function a(r,t){return h.cmp(r,t)>0?r:t}function f(r,t,n){return h.cmp(n,r)<0?r:h.cmp(n,t)>0?t:n}function l(r,t){return{ctor:k[h.cmp(r,t)+1]}}function s(r,t){return r!==t}function d(r){return!r}function v(r){return r===1/0||r===-1/0}function p(r){return 0|r}function g(r){return r*Math.PI/180}function m(r){return 2*Math.PI*r}function b(r){var t=r._0,n=r._1;return h.Tuple2(t*Math.cos(n),t*Math.sin(n))}function y(r){var t=r._0,n=r._1;return h.Tuple2(Math.sqrt(t*t+n*n),Math.atan2(n,t))}var k=["LT","EQ","GT"];return{div:t(r),rem:t(e),mod:t(o),pi:Math.PI,e:Math.E,cos:Math.cos,sin:Math.sin,tan:Math.tan,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:t(Math.atan2),degrees:g,turns:m,fromPolar:b,toPolar:y,sqrt:Math.sqrt,logBase:t(u),negate:c,abs:i,min:t(_),max:t(a),clamp:n(f),compare:t(l),xor:t(s),not:d,truncate:p,ceiling:Math.ceil,floor:Math.floor,round:Math.round,toFloat:function(r){return r},isNaN:isNaN,isInfinite:v}}(),h=function(){function r(r,t){for(var e,o=[],u=n(r,t,0,o);u&&(e=o.pop());)u=n(e.x,e.y,0,o);return u}function n(r,t,e,o){if(e>100)return o.push({x:r,y:t}),!0;if(r===t)return!0;if("object"!=typeof r){if("function"==typeof r)throw new Error('Trying to use `(==)` on functions. There is no way to know if functions are "the same" in the Elm sense. Read more about this at http://package.elm-lang.org/