1 line
31 KiB
JavaScript
1 line
31 KiB
JavaScript
|
!function(D){"use strict";function n(n,r,t){return t.a=n,t.f=r,t}function r(t){return n(2,t,function(r){return function(n){return t(r,n)}})}function t(e){return n(3,e,function(t){return function(r){return function(n){return e(t,r,n)}}})}function R(u){return n(4,u,function(e){return function(t){return function(r){return function(n){return u(e,t,r,n)}}}})}function F(a){return n(5,a,function(u){return function(e){return function(t){return function(r){return function(n){return a(u,e,t,r,n)}}}}})}function J(i){return n(6,i,function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return i(a,u,e,t,r,n)}}}}}})}function M(o){return n(7,o,function(i){return function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return o(i,a,u,e,t,r,n)}}}}}}})}function b(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function s(n,r,t,e){return 3===n.a?n.f(r,t,e):n(r)(t)(e)}function v(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function l(n,r,t,e,u,a){return 5===n.a?n.f(r,t,e,u,a):n(r)(t)(e)(u)(a)}function z(n,r,t,e,u,a,i){return 6===n.a?n.f(r,t,e,u,a,i):n(r)(t)(e)(u)(a)(i)}function H(n,r,t,e,u,a,i,o){return 7===n.a?n.f(r,t,e,u,a,i,o):n(r)(t)(e)(u)(a)(i)(o)}function P(n,r){for(var t,e=[],u=Y(n,r,0,e);u&&(t=e.pop());u=Y(t.a,t.b,0,e));return u}function Y(n,r,t,e){if(n!==r){if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&Z(5),!1;if(100<t)e.push({a:n,b:r});else for(var u in n.$<0&&(n=tt(n),r=tt(r)),n)if(!Y(n[u],r[u],t+1,e))return!1}return!0}function f(n,r,t){if("object"!=typeof n)return n===r?0:n<r?-1:1;if(void 0===n.$)return(t=(t=f(n.a,r.a))||f(n.b,r.b))||f(n.c,r.c);for(;n.b&&r.b&&!(t=f(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}var G=r(function(n,r){n=f(n,r);return n<0?nt:n?Zr:Qr}),I=0;function e(n,r){var t,e={};for(t in n)e[t]=n[t];for(t in r)e[t]=r[t];return e}var d={$:0};function W(n,r){return{$:1,a:n,b:r}}var U=r(W);function $(n){for(var r=d,t=n.length;t--;)r={$:1,a:n[t],b:r};return r}function X(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var K=t(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(b(n,r.a,t.a));return $(e)});var V=t(function(n,r,t){for(var e=Array(n),u=0;u<n;u++)e[u]=t(r+u);return e}),Q=r(function(n,r){for(var t=Array(n),e=0;e<n&&r.b;e++)t[e]=r.a,r=r.b;return t.length=e,{a:t,b:r}});function Z(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}var nn=Math.ceil,rn=Math.floor,tn=Math.log;var en=r(function(n,r){return r.split(n)}),un=r(function(n,r){return r.join(n)});var u=r(function(n,r){for(var t=r.length;t--;){var e=r[t],u=r.charCodeAt(t);if(!n(e=u<56320||57343<u?e:r[--t]+e))return!1}return!0});var an={$:2,b:function(n){return"number"!=typeof n||(n<=-2147483647||2147483647<=n||(0|n)!==n)&&(!isFinite(n)||n%1)?g("an INT",n):y(n)}},on={$:2,b:function(n){return"boolean"==typeof n?y(n):g("a BOOL",n)}},cn={$:2,b:function(n){return"string"==typeof n?y(n):n instanceof String?y(n+""):g("a STRING",n)}};var fn=r(function(n,r){return{$:6,d:n,b:r}});var sn=r(function(n,r){return{$:9,f:n,g:[r]}}),bn=J(function(n,r,t,e,u,a){return{$:9,f:n,g:[r,t,e,u,a]}}),vn=M(function(n,r,t,e,u,a,i){return{$:9,f:n,g:[r,t,e,u,a,i]}}),ln=r(function(n,r){try{return h(n,JSON.parse(r))}catch(n){return w(b(et,"This is not valid JSON! "+n.message,r))}}),dn=r(h);function h(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?y(n.c):g("null",r);case 3:return hn(r)?$n(n.b,r,$):g("a LIST",r);case 4:return hn(r)?$n(n.b,r,gn):g("an ARRAY",r);case 6:var t=n.d;return"object"==typeof r&&null!==r&&t in r?(a=h(n.b,r[t]),E(a)?a:w(b(ut,t,a.a))):g("an OBJECT with a field named `"+t+"`",r);case 7:t=n.e;return hn(r)?t<r.length?(a=h(n.b,r[t]),E(a)?a:w(b(at,t,a.a))):g("a LONGER array. Need index "+t+" but only see "+r.length+" entries",r):g("an ARRAY",r);case 8:if("object"!=typeof r||null===r||hn(r))return g("an OBJECT",r);var e,u=d;for(e in r)if(r.hasOwnProperty(e)){var a=h(n.b,r[e]);if(!E(a))return w(b(ut,e,a.a));u={$:1,a:{a:e,b:a.a},b:u}}return y(j(u));case 9:for(var i=n.f,o=n.g,c=0;c<o.length;c++){a=h(o[c],r);if(!E
|