// transducers-js 0.4.158 // http://github.com/cognitect-labs/transducers-js // // Copyright 2014-2015 Cognitect. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License.. ;(function(){var d=this; function f(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"== b&&"undefined"==typeof a.call)return"object";return b}function g(a,b){var c=a.split("."),e=d;c[0]in e||!e.execScript||e.execScript("var "+c[0]);for(var k;c.length&&(k=c.shift());)c.length||void 0===b?e[k]?e=e[k]:e=e[k]={}:e[k]=b};var h="undefined"!=typeof Array.isArray?function(a){return Array.isArray(a)}:function(a){return"array"==f(a)};function l(a){return function(b){return!a.apply(null,Array.prototype.slice.call(arguments,0))}}function m(a){this.a=a}m.prototype["@@transducer/init"]=function(){throw Error("init not implemented");};m.prototype["@@transducer/result"]=function(a){return a};m.prototype["@@transducer/step"]=function(a,b){return this.a(a,b)};function n(a){return"function"==typeof a?new m(a):a} function p(a){this["@@transducer/reduced"]=!0;this["@@transducer/value"]=a}function q(a){return new p(a)}function r(a){return a instanceof p||a&&a["@@transducer/reduced"]}function t(a){return r(a)?a:q(a)}function u(a){return a["@@transducer/value"]}function v(a){return r(a)?u(a):a}function w(a){return a} function x(a){var b=arguments.length;if(2==b){var c=arguments[0],e=arguments[1];return function(a){return c(e.apply(null,Array.prototype.slice.call(arguments,0)))}}if(2