import{a as r,_ as t}from"./_curry1-D3PJq_hl.js";import{_ as n}from"./_curry2-Ngzhmcdp.js";function e(r,t){switch(r){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,e){return t.apply(this,arguments)};case 4:return function(r,n,e,u){return t.apply(this,arguments)};case 5:return function(r,n,e,u,o){return t.apply(this,arguments)};case 6:return function(r,n,e,u,o,c){return t.apply(this,arguments)};case 7:return function(r,n,e,u,o,c,a){return t.apply(this,arguments)};case 8:return function(r,n,e,u,o,c,a,i){return t.apply(this,arguments)};case 9:return function(r,n,e,u,o,c,a,i,s){return t.apply(this,arguments)};case 10:return function(r,n,e,u,o,c,a,i,s,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function u(e){return function u(o,c,a){switch(arguments.length){case 0:return u;case 1:return r(o)?u:n((function(r,t){return e(o,r,t)}));case 2:return r(o)&&r(c)?u:r(o)?n((function(r,t){return e(r,c,t)})):r(c)?n((function(r,t){return e(o,r,t)})):t((function(r){return e(o,c,r)}));default:return r(o)&&r(c)&&r(a)?u:r(o)&&r(c)?n((function(r,t){return e(r,t,a)})):r(o)&&r(a)?n((function(r,t){return e(r,c,t)})):r(c)&&r(a)?n((function(r,t){return e(o,r,t)})):r(o)?t((function(r){return e(r,c,a)})):r(c)?t((function(r){return e(o,r,a)})):r(a)?t((function(r){return e(o,c,r)})):e(o,c,a)}}}const o=Array.isArray||function(r){return null!=r&&r.length>=0&&"[object Array]"===Object.prototype.toString.call(r)};var c=t((function(r){return!!o(r)||!!r&&("object"==typeof r&&(!function(r){return"[object String]"===Object.prototype.toString.call(r)}(r)&&(0===r.length||r.length>0&&(r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1)))))})),a="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function i(r,t,n){return function(e,u,o){if(c(o))return r(e,u,o);if(null==o)return u;if("function"==typeof o["fantasy-land/reduce"])return t(e,u,o,"fantasy-land/reduce");if(null!=o[a])return n(e,u,o[a]());if("function"==typeof o.next)return n(e,u,o);if("function"==typeof o.reduce)return t(e,u,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function s(r,t,n){for(var e=0,u=n.length;e<u;){if((t=r["@@transducer/step"](t,n[e]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return r["@@transducer/result"](t)}var f=n((function(r,t){return e(r.length,(function(){return r.apply(t,arguments)}))}));function p(r,t,n){for(var e=n.next();!e.done;){if((t=r["@@transducer/step"](t,e.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=n.next()}return r["@@transducer/result"](t)}function l(r,t,n,e){return r["@@transducer/result"](n[e](f(r["@@transducer/step"],r),t))}var y=i(s,l,p),d=function(){function r(r){this.f=r}return r.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},r.prototype["@@transducer/result"]=function(r){return r},r.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},r}();function h(r){return new d(r)}var g=u((function(r,t,n){return y("function"==typeof r?h(r):r,t,n)}));export{c as _,e as a,o as b,u as c,y as d,h as e,g as r};
