"use strict";var m=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(n,t)=>{for(var r in t)m(n,r,{get:t[r],enumerable:!0})},O=(n,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of p(t))!c.call(n,e)&&e!==r&&m(n,e,{get:()=>t[e],enumerable:!(o=f(t,e))||o.enumerable});return n};var y=n=>O(m({},"__esModule",{value:!0}),n);var B={};g(B,{default:()=>d});module.exports=y(B);function*P(n,t={}){let{format:r="boolean",minOnes:o=0,maxOnes:e=n}=t;if(!Number.isInteger(n)||n<0)throw new Error("n must be a non-negative integer");let b=1<s+(l==="1"?1:0),0);if(!(ue))switch(r){case"string":yield a;break;case"number":yield a.split("").map(Number);break;case"boolean":default:yield a.split("").map(s=>s==="1")}}}var d=P; //# sourceMappingURL=index.cjs.map