Comparing version 0.4.12 to 0.4.13
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.4.13](https://github.com/oftherivier/fictional/compare/v0.4.12...v0.4.13) (2022-05-09) | ||
### [0.4.12](https://github.com/oftherivier/fictional/compare/v0.4.11...v0.4.12) (2022-05-03) | ||
@@ -7,0 +9,0 @@ |
@@ -1,9 +0,3 @@ | ||
!function(n,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.fictional=r():n.fictional=r()}(this,(function(){return function(n){var r={};function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,r){if(1&r&&(n=t(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var o in n)t.d(e,o,function(r){return n[r]}.bind(null,o));return e},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},t.p="",t(t.s=11)}([function(n,r,t){var e=t(12),o=t(15),i=t(16);function u(n){return o(e(i(n)+"chino"))}u.hash2=function(n,r){return u(u(n)+u(r))},u.hash3=function(n,r,t){return u(u(n)+u(r)+u(t))},n.exports=u},function(n,r){n.exports=function(n,r,t){var e,o;return r=r||0,null==t?n>r?n:n+r:r===(t=Math.max(t,r))?r:r<=n&&n<=t?n:(o=0,(e=Math.floor(n))!==n&&(o=function(n){var r=n.toString();return+("0"+r.slice(r.indexOf(".")))}(n),t-=1),e%(t+1-r)+r+o)}},function(n,r){var t=Object.prototype.hasOwnProperty;n.exports=function(n,r){var e,o={};if(n)for(e in n)t.call(n,e)&&(o[e]=n[e]);if(r)for(e in r)t.call(r,e)&&(o[e]=r[e]);return o}},function(n,r,t){var e=t(0);n.exports=function(n,r){return"function"==typeof r?r(e(n)):r}},function(n,r){n.exports=function(n,r){return null==n?r:n}},function(n,r){var t={utf8:{stringToBytes:function(n){return t.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(t.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],t=0;t<n.length;t++)r.push(255&n.charCodeAt(t));return r},bytesToString:function(n){for(var r=[],t=0;t<n.length;t++)r.push(String.fromCharCode(n[t]));return r.join("")}}};n.exports=t},function(n,r,t){var e=t(0),o=e.hash2,i=t(3);function u(n,r){for(var t=o(n,"tuple"),u=r.length,f=-1,a=[];++f<u;)t=e(t),a.push(i(t,r[f]));return a}n.exports=function(n,r){return null!=r?u(n,r):(t=n,function(n){return u(n,t)});var t}},function(n,r){n.exports=function(n,r){return 0!==(r=+r)&&(1===r||n%(1/r)<1)}},function(n,r,t){var e=t(0),o=e.hash2,i=t(2),u=t(1),f=t(7),a=t(30),s=t(4),c=["a","ka","ki","ke","ko","ta","chi","shi","so","na","ni","no","ra","ha","hy","ma","mi","mu","me","mo","yu","yo","kai","va","vi","kin","rae","cea"],l=c.length;function p(n,r){for(var t,i,p=s((r=r||0).capitalize,!0),v=s(r.minSyllables,2),g=s(r.maxSyllables,4),y=s(r.unicode,!0),d=o(n,"word"),m=u(d,v,g),x="",b="",w=-1;++w<m;){t=b;do{d=e(d),b=c[d%l]}while(!h(t,b));x+=b}return f(d,y)&&(x=a(d,x)),p&&(x=(i=x)[0].toUpperCase()+i.slice(1)),x}function h(n,r){var t=n[n.length-1];return n!==r&&t!==r[0]&&t!==r[1]}p.options=function(n){var r=this;return t.options=p.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=p},function(n,r,t){var e=t(0),o=e.hash3,i=t(2),u=t(1),f=t(4),a=t(8);function s(n,r){var t=f((r=r||0).minSyllables,1),s=f(r.capitalize,"first"),c=!0===s||"all"===s,l=c||"first"===s,p=f(r.min,2),h=f(r.max,3),v=e(n),g=u(v,p,h),y=0;v=o(v,"words",y);for(var d,m=i(r,{minSyllables:t,capitalize:l}),x=i(r,{minSyllables:t,capitalize:c}),b=a(v,m),w=b;++y<g;){d=w;do{v=o(v,"words",y),w=a(v,x)}while(w.length===d.length);b+=" "+w}return b}s.options=function(n){var r=this;return t.options=s.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=s},function(n,r,t){var e=t(0),o=e.hash2,i=t(2),u=t(1),f=t(4),a=t(9);function s(n,r){var t=f((r=r||0).minWords,5),s=f(r.maxWords,8),c=f(r.minClauses,1),l=f(r.maxClauses,2),p=f(r.unicode,.382),h=o(n,"sentence"),v=u(h,c,l),g=0;h=e(h);for(var y=i(r,{capitalize:"first",min:t,max:s,unicode:p}),d=i(y,{capitalize:!1}),m=a(h,y);++g<v;)h=e(h),m+=", "+a(h,d);return m+"."}s.options=function(n){var r=this;return t.options=s.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=s},function(n,r,t){r.hash=t(0),r.oneOf=t(17),r.someOf=t(18),r.tuple=t(6),r.shape=t(19),r.times=t(20),r.join=t(21),r.oneOfWeighted=t(23),r.int=t(24),r.float=t(25),r.char=t(26),r.word=t(8),r.words=t(9),r.sentence=t(10),r.paragraph=t(31),r.bool=t(32),r.dateString=t(33)},function(n,r,t){var e,o,i,u,f;e=t(13),o=t(5).utf8,i=t(14),u=t(5).bin,(f=function(n,r){n.constructor==String?n=r&&"binary"===r.encoding?u.stringToBytes(n):o.stringToBytes(n):i(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var t=e.bytesToWords(n),a=8*n.length,s=1732584193,c=-271733879,l=-1732584194,p=271733878,h=0;h<t.length;h++)t[h]=16711935&(t[h]<<8|t[h]>>>24)|4278255360&(t[h]<<24|t[h]>>>8);t[a>>>5]|=128<<a%32,t[14+(a+64>>>9<<4)]=a;var v=f._ff,g=f._gg,y=f._hh,d=f._ii;for(h=0;h<t.length;h+=16){var m=s,x=c,b=l,w=p;s=v(s,c,l,p,t[h+0],7,-680876936),p=v(p,s,c,l,t[h+1],12,-389564586),l=v(l,p,s,c,t[h+2],17,606105819),c=v(c,l,p,s,t[h+3],22,-1044525330),s=v(s,c,l,p,t[h+4],7,-176418897),p=v(p,s,c,l,t[h+5],12,1200080426),l=v(l,p,s,c,t[h+6],17,-1473231341),c=v(c,l,p,s,t[h+7],22,-45705983),s=v(s,c,l,p,t[h+8],7,1770035416),p=v(p,s,c,l,t[h+9],12,-1958414417),l=v(l,p,s,c,t[h+10],17,-42063),c=v(c,l,p,s,t[h+11],22,-1990404162),s=v(s,c,l,p,t[h+12],7,1804603682),p=v(p,s,c,l,t[h+13],12,-40341101),l=v(l,p,s,c,t[h+14],17,-1502002290),s=g(s,c=v(c,l,p,s,t[h+15],22,1236535329),l,p,t[h+1],5,-165796510),p=g(p,s,c,l,t[h+6],9,-1069501632),l=g(l,p,s,c,t[h+11],14,643717713),c=g(c,l,p,s,t[h+0],20,-373897302),s=g(s,c,l,p,t[h+5],5,-701558691),p=g(p,s,c,l,t[h+10],9,38016083),l=g(l,p,s,c,t[h+15],14,-660478335),c=g(c,l,p,s,t[h+4],20,-405537848),s=g(s,c,l,p,t[h+9],5,568446438),p=g(p,s,c,l,t[h+14],9,-1019803690),l=g(l,p,s,c,t[h+3],14,-187363961),c=g(c,l,p,s,t[h+8],20,1163531501),s=g(s,c,l,p,t[h+13],5,-1444681467),p=g(p,s,c,l,t[h+2],9,-51403784),l=g(l,p,s,c,t[h+7],14,1735328473),s=y(s,c=g(c,l,p,s,t[h+12],20,-1926607734),l,p,t[h+5],4,-378558),p=y(p,s,c,l,t[h+8],11,-2022574463),l=y(l,p,s,c,t[h+11],16,1839030562),c=y(c,l,p,s,t[h+14],23,-35309556),s=y(s,c,l,p,t[h+1],4,-1530992060),p=y(p,s,c,l,t[h+4],11,1272893353),l=y(l,p,s,c,t[h+7],16,-155497632),c=y(c,l,p,s,t[h+10],23,-1094730640),s=y(s,c,l,p,t[h+13],4,681279174),p=y(p,s,c,l,t[h+0],11,-358537222),l=y(l,p,s,c,t[h+3],16,-722521979),c=y(c,l,p,s,t[h+6],23,76029189),s=y(s,c,l,p,t[h+9],4,-640364487),p=y(p,s,c,l,t[h+12],11,-421815835),l=y(l,p,s,c,t[h+15],16,530742520),s=d(s,c=y(c,l,p,s,t[h+2],23,-995338651),l,p,t[h+0],6,-198630844),p=d(p,s,c,l,t[h+7],10,1126891415),l=d(l,p,s,c,t[h+14],15,-1416354905),c=d(c,l,p,s,t[h+5],21,-57434055),s=d(s,c,l,p,t[h+12],6,1700485571),p=d(p,s,c,l,t[h+3],10,-1894986606),l=d(l,p,s,c,t[h+10],15,-1051523),c=d(c,l,p,s,t[h+1],21,-2054922799),s=d(s,c,l,p,t[h+8],6,1873313359),p=d(p,s,c,l,t[h+15],10,-30611744),l=d(l,p,s,c,t[h+6],15,-1560198380),c=d(c,l,p,s,t[h+13],21,1309151649),s=d(s,c,l,p,t[h+4],6,-145523070),p=d(p,s,c,l,t[h+11],10,-1120210379),l=d(l,p,s,c,t[h+2],15,718787259),c=d(c,l,p,s,t[h+9],21,-343485551),s=s+m>>>0,c=c+x>>>0,l=l+b>>>0,p=p+w>>>0}return e.endian([s,c,l,p])})._ff=function(n,r,t,e,o,i,u){var f=n+(r&t|~r&e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._gg=function(n,r,t,e,o,i,u){var f=n+(r&e|t&~e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._hh=function(n,r,t,e,o,i,u){var f=n+(r^t^e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._ii=function(n,r,t,e,o,i,u){var f=n+(t^(r|~e))+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._blocksize=16,f._digestsize=16,n.exports=function(n,r){if(null==n)throw new Error("Illegal argument "+n);var t=e.wordsToBytes(f(n,r));return r&&r.asBytes?t:r&&r.asString?u.bytesToString(t):e.bytesToHex(t)}},function(n,r){var t,e;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(256*Math.random()));return r},bytesToWords:function(n){for(var r=[],t=0,e=0;t<n.length;t++,e+=8)r[e>>>5]|=n[t]<<24-e%32;return r},wordsToBytes:function(n){for(var r=[],t=0;t<32*n.length;t+=8)r.push(n[t>>>5]>>>24-t%32&255);return r},bytesToHex:function(n){for(var r=[],t=0;t<n.length;t++)r.push((n[t]>>>4).toString(16)),r.push((15&n[t]).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],t=0;t<n.length;t+=2)r.push(parseInt(n.substr(t,2),16));return r},bytesToBase64:function(n){for(var r=[],e=0;e<n.length;e+=3)for(var o=n[e]<<16|n[e+1]<<8|n[e+2],i=0;i<4;i++)8*e+6*i<=8*n.length?r.push(t.charAt(o>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],e=0,o=0;e<n.length;o=++e%4)0!=o&&r.push((t.indexOf(n.charAt(e-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(n.charAt(e))>>>6-2*o);return r}},n.exports=e},function(n,r){function t(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)} | ||
/*! | ||
* Determine if an object is a Buffer | ||
* | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
*/ | ||
n.exports=function(n){return null!=n&&(t(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&t(n.slice(0,0))}(n)||!!n._isBuffer)}},function(n,r,t){"use strict";n.exports=function(n){for(var r=5381,t=n.length;t;)r=33*r^n.charCodeAt(--t);return r>>>0}},function(n,r,t){"use strict";n.exports=function(n,r){r||(r={}),"function"==typeof r&&(r={cmp:r});var t,e="boolean"==typeof r.cycles&&r.cycles,o=r.cmp&&(t=r.cmp,function(n){return function(r,e){var o={key:r,value:n[r]},i={key:e,value:n[e]};return t(o,i)}}),i=[];return function n(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!=typeof r)return JSON.stringify(r);var t,u;if(Array.isArray(r)){for(u="[",t=0;t<r.length;t++)t&&(u+=","),u+=n(r[t])||"null";return u+"]"}if(null===r)return"null";if(-1!==i.indexOf(r)){if(e)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var f=i.push(r)-1,a=Object.keys(r).sort(o&&o(r));for(u="",t=0;t<a.length;t++){var s=a[t],c=n(r[s]);c&&(u&&(u+=","),u+=JSON.stringify(s)+":"+c)}return i.splice(f,1),"{"+u+"}"}}(n)}},function(n,r,t){var e=t(0).hash2,o=t(3);function i(n,r){return null!=r?(t=r,u=e(n,"oneOf"),o(u,t[u%t.length])):function(n){return function(r){return i(r,n)}}(n);var t,u}n.exports=i},function(n,r,t){var e=t(0),o=e.hash2,i=t(1),u=t(3);function f(n,r,t){return null!=r&&null!=t?function(n,r,t){var f,a,s,c=o(n,"someOf"),l="number"==typeof r?r:i(c,r[0],r[1]),p=-1,h=[],v=t.slice();for(;++p<l&&(f=v.length);)c=e(c),s=v[a=c%f],v.splice(a,1),h.push(u(c,s));return h}(n,r,t):(a=n,s=r,function(n){return f(n,a,s)});var a,s}n.exports=f},function(n,r,t){var e=t(0),o=e.hash2,i=t(3),u=Object.prototype.hasOwnProperty;function f(n,r){var t=e(n),f={};for(var a in r)u.call(r,a)&&(f[a]=i(o(t,a),r[a]));return f}n.exports=function(n,r){return null!=r?f(n,r):(t=n,function(n){return f(n,t)});var t}},function(n,r,t){var e=t(0),o=e.hash2,i=t(1);function u(n,r,t){var u=o(n,"times"),f="number"==typeof r?r:i(u,r[0],r[1]),a=-1,s=[];if("function"==typeof t)for(;++a<f;)u=e(u),s.push(t(u));else for(;++a<f;)s.push(t);return s}n.exports=function(n,r,t){return null!=r&&null!=t?u(n,r,t):(e=n,o=r,function(n){return u(n,e,o)});var e,o}},function(n,r,t){var e=t(6),o=t(22);function i(n,r,t){var i=o(e(n,t));return"function"==typeof r?r(i):i.join(r)}n.exports=function(n,r,t){return null!=r&&null==t?(e=n,o=r,function(n){return i(n,e,o)}):i(n,r,t);var e,o}},function(n,r){var t=Array.isArray;n.exports=function n(r){for(var e,o=[],i=r.length,u=-1;++u<i;)e=r[u],t(e)?o.push.apply(o,n(e)):o.push(e);return o}},function(n,r,t){var e=t(0).hash2,o=t(7),i=t(3);function u(n,r){return null!=r?function(n,r){r=f(r);var t,u,a=e(n,"oneOfWeighted"),s=r.length,c=1,l=-1;for(;++l<s;)if(t=r[l],u=t[0]/c,c-=u,o(a,u))return i(a,t[1]);throw new Error("Unexpectedly reached end of oneOfWeighted() unresolved. If you see this please file a bug.")}(n,r):(t=f(t=n),function(n){return u(n,t)});var t}function f(n){if(n.__parsed)return n;var r=n.length,t=function(n){var r,t=-1,e=n.length,o=[];for(;++t<e;)"number"==typeof(r=n[t][0])&&o.push(r);return o}(n),e=t.reduce(a,0),o=t.length;if(!r)throw new Error("Empty samples given to oneOfWeighted");if(e>1.0001)throw new Error("Assigned probabilities add up more than 1: "+JSON.stringify(t));if(r===o&&e<.9999)throw new Error("All items were assigned probabilities, yet the probabilities add up to less than 1: "+JSON.stringify(t));return function(n,r){var t,e,o=[],i=-1,u=n.length;for(;++i<u;)t=n[i],"number"!=typeof(e=t[0])&&(e=r),o.push([e,t[1]]);return o.__parsed=!0,o}(n,(1-e)/(r-o))}function a(n,r){return n+r}n.exports=u},function(n,r,t){var e=t(0),o=t(1),i=t(2);function u(n,r){var t=(r=r||0).min,i=r.max,u=e(n);return o(u,t,i)}u.options=function(n){var r=this;return t.options=u.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=u},function(n,r,t){var e=t(0),o=t(2),i=t(1);function u(n,r){var t=(r=r||0).min,o=r.max,u=e(e(n)),f=+(u+"."+e(u));return i(f,t,o)}u.options=function(n){var r=this;return t.options=u.options,t;function t(t,e){return r(t,o(n,e))}},n.exports=u},function(n,r,t){var e=t(0),o=t(27),i=t(29),u=v([[32,126]]),f=v([[32,126],[160,255]]),a=v([[48,57]]),s=v([[97,122]]),c=v([[65,90]]),l=v([[192,214],[216,222]]),p=v([[223,246],[248,255]]),h=v([s,c,a]);function v(n){n=function(n){n=[].concat(n);var r,t=[],e=-1,o=n.length;for(;++e<o;)(r=n[e]).__fictional_char?t.push.apply(t,r.__fictional_char.ranges):t.push(r);return t}(n);var r=o(n,256);return t.__fictional_char={ranges:n},t;function t(n){return i(r(e(n)))}}h.inRanges=v,h.alphanumeric=v([h]),h.ascii=u,h.latin1=f,h.unicode=v([u,f]),h.digit=a,h.lower=h.asciiLower=s,h.upper=h.asciiUpper=c,h.latin1Lower=l,h.latin1Upper=p,h.letter=h.asciiLetter=v([s,c]),h.latin1Letter=v([l,p]),h.alphanumeric=v([s,c,a]),h.unicodeLower=v([s,l]),h.unicodeUpper=v([c,p]),n.exports=h},function(n,r,t){var e=t(28);function o(n,r){var t=n[0]-r[0];return 0===t?n[1]-r[0]:t}function i(n){for(var r,t=-1,o=n.length,i=[];++t<o;)r=n[t],i.push.apply(i,e(r.min,r.max));return i}n.exports=function(n,r){if(!n.length)throw new Error("Empty range set given to fitRanges()");var t=function(n,r){var t,e,o,u=[],f=n.length,a=0,s=n[0],c=s[0],l=s[1],p=0,h=0;for(;++a<f;)s=n[a],e=s[0],o=s[1],e>l+1&&(t=p+(l-c),u.push({modMin:p,modMax:t,min:c,max:l,offset:c-p}),p=t+1,h+=l+1-c,c=e),l=Math.max(l,o);return u.push({modMin:p,modMax:p+(l-c),min:c,max:l,offset:c-p}),{ranges:n,segments:u,size:h+=l+1-c,values:h<=r?i(u):null}}(n.slice().sort(o),r),e=t.values,u=t.segments,f=t.size,a=e?function(n){var r=n.length;return function(t){return n[t%r]}}(e):function(n,r){return function(t){for(var e,o,i,u=t%r,f=0,a=n.length-1;f<=a;)if(e=Math.floor((f+a)/2),i=(o=n[e]).modMin,u>o.modMax)f=e+1;else{if(!(u<i))return u+o.offset;a=e-1}throw new Error("Unexpectedly reached end of fitRanges()")}}(u,f);return a.meta=t,a}},function(n,r){n.exports=function(n,r){for(var t=[],e=n-1,o=r+1;++e<o;)t.push(e);return t}},function(n,r){var t=String.fromCharCode;n.exports=String.fromCodePoint||function(){for(var n=[],r=0,e="",o=0,i=arguments.length;o!==i;++o){var u=+arguments[o];if(!(u<1114111&&u>>>0===u))throw RangeError("Invalid code point: "+u);u<=65535?r=n.push(u):(u-=65536,r=n.push(55296+(u>>10),u%1024+56320)),r>=16383&&(e+=t.apply(null,n),n.length=0)}return e+t.apply(null,n)}},function(n,r,t){var e=t(0),o={a:["å","ǻ","ḁ","ẚ","ă","ặ","ắ","ằ","ẳ","ẵ","ȃ","â","ậ","ấ","ầ","ẫ","ẩ","ả","ǎ","ȧ","ǡ","ạ","ä","ǟ","à","ȁ","á","ā","ā̀","ã","ą","ą́","ą̃","æ"],b:["ƀ","ḃ","ḅ","ḇ","ɓ"],c:["ć","ĉ","č","ċ","ḉ","ƈ","c̈","ȼ","ç"],d:["đ","ɗ","ḋ","ḍ","ḑ","ḓ","ď","ḏ"],e:["ĕ","ḝ","ȇ","ê","ê̄","ê̌","ề","ế","ể","ễ","ệ","ẻ","ḙ","ě","ė","ė́","ė̃","ẹ","ë","è","è̩","ȅ","é","é̩","ē","ḕ","ḗ","ẽ","ḛ","ę","ę́","ę̃"],f:["ƒ","ḟ"],g:["ǵ","ǥ","ĝ","ǧ","ğ","ģ","ɠ","ġ","ḡ"],h:["ĥ","ȟ","ħ","ḩ","ẖ","ḥ","ḣ","ḧ","ḫ"],i:["ị","ĭ","î","ǐ","ɨ","ï","ḯ","í","ì","ȉ","į","į̃","ī","ī̀","ỉ","ȋ","ĩ"],j:["ĵ","j̇̃"],k:["ƙ","ꝁ","ḱ","ǩ","ḳ","ķ","ᶄ","ḵ"],l:["ĺ","ł","ľ","ḹ","l̃","ļ","ŀ","ḷ","ḻ","ḽ","ƚ"],m:["ḿ","ṁ","ṃ","m̃"],n:["ń","ñ","ň","ǹ","ṅ","ṇ","ņ","ṉ","ṋ"],o:["ø","ǿ","ö","ȫ","ó","ò","ô","ố","ồ","ổ","ỗ","ộ","ǒ","ő","ŏ","ȏ","ȯ","ȱ","ọ","ɵ","ơ","ớ","ờ","ỡ","ợ","ở","ỏ","ō","ṓ","ṑ","õ","ȭ","ṍ","ṏ","ǫ","ȍ","o̩","ó̩"],p:["ṕ","ṗ","ᵽ","ƥ","ᶈ"],q:["ʠ","q̃"],r:["ŕ","ɍ","ř","ŗ","ṙ","ȑ","ȓ","ṛ","ṝ","ṟ","ꞧ","ɽ","r̃"],s:["ś","ṡ","ṩ","ṥ","ṣ","s̩","ꞩ","ŝ","ṧ","š","ş","ș","s̈"],t:["ť","ṫ","ẗ","ţ","ṭ","ʈ","ț","ƫ","ṱ","ṯ","ŧ"],u:["ŭ","ʉ","ụ","ü","ǜ","ǘ","ǚ","ǖ","ṳ","ú","ù","û","ṷ","ǔ","ȗ","ű","ŭ","ư","ứ","ừ","ử","ự","ữ","ủ","ū","ū̀","ū́","ṻ","ū̃","ũ","ṹ","ṵ","ų","ų́","ų̃","ȕ","Ů"],v:["ṽ","ṿ","ʋ"],w:["ẃ","ẁ","ŵ","ẅ","ẇ","ẉ","ẘ"],x:["ẍ","ẋ","ᶍ"],y:["ý","ỳ","ŷ","ÿ","ỹ","ẏ","ỵ","ẙ","ỷ","ȳ","ƴ"],z:["ź","ẑ","ž","ż","ẓ","ẕ","ƶ","ᶎ"]};n.exports=function(n,r){var t=r.length,i=n%t;n=e(n);var u=1===t?r:r[i],f=u.toLowerCase(),a=o[f];if(!a)return r;var s=a[n%a.length];return u=u===f?s:s.toUpperCase(),1===t?u:r.slice(0,i)+u+r.slice(i+1)}},function(n,r,t){var e=t(0),o=e.hash2,i=t(2),u=t(1),f=t(4),a=t(10);function s(n,r){var t=f((r=r||0).minSentences,3),i=f(r.maxSentences,7),s=o(n,"paragraph"),c=u(s,t,i),l=0;s=e(s);for(var p=a(s,r);++l<c;)s=e(s),p+=" "+a(s,r);return p}s.options=function(n){var r=this;return t.options=s.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=s},function(n,r,t){var e=t(0);n.exports=function(n){return!!(e(n)%2)}},function(n,r,t){var e=t(0),o=t(4),i=t(2),u=t(1);function f(n,r){var t=e(n),i=o((r=r||0).minYear,1980),f=o(r.maxYear,2019),a=u(t,i,f),s=u(t,0,11),c=u(t,1,28),l=u(t,0,23),p=u(t,0,59),h=u(t,0,1e3);return new Date(Date.UTC(a,s,c,l,p,h)).toISOString()}f.options=function(n){var r=this;return t.options=f.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=f}])})); | ||
/*! For license information please see fictional.js.LICENSE.txt */ | ||
!function(r,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.fictional=n():r.fictional=n()}(this,(()=>(()=>{var r={487:r=>{var n={utf8:{stringToBytes:function(r){return n.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(n.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],t=0;t<r.length;t++)n.push(255&r.charCodeAt(t));return n},bytesToString:function(r){for(var n=[],t=0;t<r.length;t++)n.push(String.fromCharCode(r[t]));return n.join("")}}};r.exports=n},12:r=>{var n,t;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return 16711935&t.rotl(r,8)|4278255360&t.rotl(r,24);for(var n=0;n<r.length;n++)r[n]=t.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(r){for(var n=[],t=0,e=0;t<r.length;t++,e+=8)n[e>>>5]|=r[t]<<24-e%32;return n},wordsToBytes:function(r){for(var n=[],t=0;t<32*r.length;t+=8)n.push(r[t>>>5]>>>24-t%32&255);return n},bytesToHex:function(r){for(var n=[],t=0;t<r.length;t++)n.push((r[t]>>>4).toString(16)),n.push((15&r[t]).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],t=0;t<r.length;t+=2)n.push(parseInt(r.substr(t,2),16));return n},bytesToBase64:function(r){for(var t=[],e=0;e<r.length;e+=3)for(var o=r[e]<<16|r[e+1]<<8|r[e+2],i=0;i<4;i++)8*e+6*i<=8*r.length?t.push(n.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],e=0,o=0;e<r.length;o=++e%4)0!=o&&t.push((n.indexOf(r.charAt(e-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(r.charAt(e))>>>6-2*o);return t}},r.exports=t},35:r=>{"use strict";r.exports=function(r,n){n||(n={}),"function"==typeof n&&(n={cmp:n});var t,e="boolean"==typeof n.cycles&&n.cycles,o=n.cmp&&(t=n.cmp,function(r){return function(n,e){var o={key:n,value:r[n]},i={key:e,value:r[e]};return t(o,i)}}),i=[];return function r(n){if(n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0!==n){if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!=typeof n)return JSON.stringify(n);var t,u;if(Array.isArray(n)){for(u="[",t=0;t<n.length;t++)t&&(u+=","),u+=r(n[t])||"null";return u+"]"}if(null===n)return"null";if(-1!==i.indexOf(n)){if(e)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=i.push(n)-1,s=Object.keys(n).sort(o&&o(n));for(u="",t=0;t<s.length;t++){var f=s[t],c=r(n[f]);c&&(u&&(u+=","),u+=JSON.stringify(f)+":"+c)}return i.splice(a,1),"{"+u+"}"}}(r)}},738:r=>{function n(r){return!!r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)}r.exports=function(r){return null!=r&&(n(r)||function(r){return"function"==typeof r.readFloatLE&&"function"==typeof r.slice&&n(r.slice(0,0))}(r)||!!r._isBuffer)}},568:(r,n,t)=>{var e,o,i,u,a;e=t(12),o=t(487).utf8,i=t(738),u=t(487).bin,(a=function(r,n){r.constructor==String?r=n&&"binary"===n.encoding?u.stringToBytes(r):o.stringToBytes(r):i(r)?r=Array.prototype.slice.call(r,0):Array.isArray(r)||r.constructor===Uint8Array||(r=r.toString());for(var t=e.bytesToWords(r),s=8*r.length,f=1732584193,c=-271733879,l=-1732584194,p=271733878,h=0;h<t.length;h++)t[h]=16711935&(t[h]<<8|t[h]>>>24)|4278255360&(t[h]<<24|t[h]>>>8);t[s>>>5]|=128<<s%32,t[14+(s+64>>>9<<4)]=s;var v=a._ff,g=a._gg,y=a._hh,d=a._ii;for(h=0;h<t.length;h+=16){var m=f,x=c,b=l,w=p;f=v(f,c,l,p,t[h+0],7,-680876936),p=v(p,f,c,l,t[h+1],12,-389564586),l=v(l,p,f,c,t[h+2],17,606105819),c=v(c,l,p,f,t[h+3],22,-1044525330),f=v(f,c,l,p,t[h+4],7,-176418897),p=v(p,f,c,l,t[h+5],12,1200080426),l=v(l,p,f,c,t[h+6],17,-1473231341),c=v(c,l,p,f,t[h+7],22,-45705983),f=v(f,c,l,p,t[h+8],7,1770035416),p=v(p,f,c,l,t[h+9],12,-1958414417),l=v(l,p,f,c,t[h+10],17,-42063),c=v(c,l,p,f,t[h+11],22,-1990404162),f=v(f,c,l,p,t[h+12],7,1804603682),p=v(p,f,c,l,t[h+13],12,-40341101),l=v(l,p,f,c,t[h+14],17,-1502002290),f=g(f,c=v(c,l,p,f,t[h+15],22,1236535329),l,p,t[h+1],5,-165796510),p=g(p,f,c,l,t[h+6],9,-1069501632),l=g(l,p,f,c,t[h+11],14,643717713),c=g(c,l,p,f,t[h+0],20,-373897302),f=g(f,c,l,p,t[h+5],5,-701558691),p=g(p,f,c,l,t[h+10],9,38016083),l=g(l,p,f,c,t[h+15],14,-660478335),c=g(c,l,p,f,t[h+4],20,-405537848),f=g(f,c,l,p,t[h+9],5,568446438),p=g(p,f,c,l,t[h+14],9,-1019803690),l=g(l,p,f,c,t[h+3],14,-187363961),c=g(c,l,p,f,t[h+8],20,1163531501),f=g(f,c,l,p,t[h+13],5,-1444681467),p=g(p,f,c,l,t[h+2],9,-51403784),l=g(l,p,f,c,t[h+7],14,1735328473),f=y(f,c=g(c,l,p,f,t[h+12],20,-1926607734),l,p,t[h+5],4,-378558),p=y(p,f,c,l,t[h+8],11,-2022574463),l=y(l,p,f,c,t[h+11],16,1839030562),c=y(c,l,p,f,t[h+14],23,-35309556),f=y(f,c,l,p,t[h+1],4,-1530992060),p=y(p,f,c,l,t[h+4],11,1272893353),l=y(l,p,f,c,t[h+7],16,-155497632),c=y(c,l,p,f,t[h+10],23,-1094730640),f=y(f,c,l,p,t[h+13],4,681279174),p=y(p,f,c,l,t[h+0],11,-358537222),l=y(l,p,f,c,t[h+3],16,-722521979),c=y(c,l,p,f,t[h+6],23,76029189),f=y(f,c,l,p,t[h+9],4,-640364487),p=y(p,f,c,l,t[h+12],11,-421815835),l=y(l,p,f,c,t[h+15],16,530742520),f=d(f,c=y(c,l,p,f,t[h+2],23,-995338651),l,p,t[h+0],6,-198630844),p=d(p,f,c,l,t[h+7],10,1126891415),l=d(l,p,f,c,t[h+14],15,-1416354905),c=d(c,l,p,f,t[h+5],21,-57434055),f=d(f,c,l,p,t[h+12],6,1700485571),p=d(p,f,c,l,t[h+3],10,-1894986606),l=d(l,p,f,c,t[h+10],15,-1051523),c=d(c,l,p,f,t[h+1],21,-2054922799),f=d(f,c,l,p,t[h+8],6,1873313359),p=d(p,f,c,l,t[h+15],10,-30611744),l=d(l,p,f,c,t[h+6],15,-1560198380),c=d(c,l,p,f,t[h+13],21,1309151649),f=d(f,c,l,p,t[h+4],6,-145523070),p=d(p,f,c,l,t[h+11],10,-1120210379),l=d(l,p,f,c,t[h+2],15,718787259),c=d(c,l,p,f,t[h+9],21,-343485551),f=f+m>>>0,c=c+x>>>0,l=l+b>>>0,p=p+w>>>0}return e.endian([f,c,l,p])})._ff=function(r,n,t,e,o,i,u){var a=r+(n&t|~n&e)+(o>>>0)+u;return(a<<i|a>>>32-i)+n},a._gg=function(r,n,t,e,o,i,u){var a=r+(n&e|t&~e)+(o>>>0)+u;return(a<<i|a>>>32-i)+n},a._hh=function(r,n,t,e,o,i,u){var a=r+(n^t^e)+(o>>>0)+u;return(a<<i|a>>>32-i)+n},a._ii=function(r,n,t,e,o,i,u){var a=r+(t^(n|~e))+(o>>>0)+u;return(a<<i|a>>>32-i)+n},a._blocksize=16,a._digestsize=16,r.exports=function(r,n){if(null==r)throw new Error("Illegal argument "+r);var t=e.wordsToBytes(a(r,n));return n&&n.asBytes?t:n&&n.asString?u.bytesToString(t):e.bytesToHex(t)}},887:r=>{"use strict";r.exports=function(r){for(var n=5381,t=r.length;t;)n=33*n^r.charCodeAt(--t);return n>>>0}},872:(r,n,t)=>{var e=t(353);r.exports=function(r){return!!(e(r)%2)}},986:(r,n,t)=>{var e=t(353),o=t(820),i=t(661),u=v([[32,126]]),a=v([[32,126],[160,255]]),s=v([[48,57]]),f=v([[97,122]]),c=v([[65,90]]),l=v([[192,214],[216,222]]),p=v([[223,246],[248,255]]),h=v([f,c,s]);function v(r){r=function(r){for(var n,t=[],e=-1,o=(r=[].concat(r)).length;++e<o;)(n=r[e]).__fictional_char?t.push.apply(t,n.__fictional_char.ranges):t.push(n);return t}(r);var n=o(r,256);return t.__fictional_char={ranges:r},t;function t(r){return i(n(e(r)))}}h.inRanges=v,h.alphanumeric=v([h]),h.ascii=u,h.latin1=a,h.unicode=v([u,a]),h.digit=s,h.lower=h.asciiLower=f,h.upper=h.asciiUpper=c,h.latin1Lower=l,h.latin1Upper=p,h.letter=h.asciiLetter=v([f,c]),h.latin1Letter=v([l,p]),h.alphanumeric=v([f,c,s]),h.unicodeLower=v([f,l]),h.unicodeUpper=v([c,p]),r.exports=h},45:(r,n,t)=>{var e=t(353),o=t(636),i=t(83),u=t(673);function a(r,n){var t=e(r),i=o((n=n||0).minYear,1980),a=o(n.maxYear,2019),s=u(t,i,a),f=u(t,0,11),c=u(t,1,28),l=u(t,0,23),p=u(t,0,59),h=u(t,0,1e3);return new Date(Date.UTC(s,f,c,l,p,h)).toISOString()}a.options=function(r){var n=this;return t.options=a.options,t;function t(t,e){return n(t,i(r,e))}},r.exports=a},382:(r,n,t)=>{var e=t(353),o=t(83),i=t(673);function u(r,n){var t=(n=n||0).min,o=n.max,u=e(e(r)),a=+(u+"."+e(u));return i(a,t,o)}u.options=function(r){var n=this;return t.options=u.options,t;function t(t,e){return n(t,o(r,e))}},r.exports=u},353:(r,n,t)=>{var e=t(568),o=t(887),i=t(35);function u(r){return o(e(i(r)+"chino"))}u.hash2=function(r,n){return u(u(r)+u(n))},u.hash3=function(r,n,t){return u(u(r)+u(n)+u(t))},r.exports=u},121:(r,n,t)=>{var e=t(353),o=t(673),i=t(83);function u(r,n){var t=(n=n||0).min,i=n.max,u=e(r);return o(u,t,i)}u.options=function(r){var n=this;return t.options=u.options,t;function t(t,e){return n(t,i(r,e))}},r.exports=u},938:(r,n,t)=>{var e=t(812),o=t(657);function i(r,n,t){var i=o(e(r,t));return"function"==typeof n?n(i):i.join(n)}r.exports=function(r,n,t){return null!=n&&null==t?(e=r,o=n,function(r){return i(r,e,o)}):i(r,n,t);var e,o}},674:(r,n,t)=>{var e=t(353).hash2,o=t(66);r.exports=function r(n,t){return null!=t?(i=t,u=e(n,"oneOf"),o(u,i[u%i.length])):function(n){return function(t){return r(t,n)}}(n);var i,u}},143:(r,n,t)=>{var e=t(353).hash2,o=t(761),i=t(66),u=1e-4;function a(r){if(r.__parsed)return r;var n=r.length,t=function(r){for(var n,t=-1,e=r.length,o=[];++t<e;)"number"==typeof(n=r[t][0])&&o.push(n);return o}(r),e=t.reduce(s,0),o=t.length;if(!n)throw new Error("Empty samples given to oneOfWeighted");if(e>1+u)throw new Error("Assigned probabilities add up more than 1: "+JSON.stringify(t));if(n===o&&e<1-u)throw new Error("All items were assigned probabilities, yet the probabilities add up to less than 1: "+JSON.stringify(t));return function(r,n){for(var t,e,o=[],i=-1,u=r.length;++i<u;)"number"!=typeof(e=(t=r[i])[0])&&(e=n),o.push([e,t[1]]);return o.__parsed=!0,o}(r,(1-e)/(n-o))}function s(r,n){return r+n}r.exports=function r(n,t){return null!=t?function(r,n){n=a(n);for(var t,u,s=e(r,"oneOfWeighted"),f=n.length,c=1,l=-1;++l<f;)if(c-=u=(t=n[l])[0]/c,o(s,u))return i(s,t[1]);throw new Error("Unexpectedly reached end of oneOfWeighted() unresolved. If you see this please file a bug.")}(n,t):(u=a(u=n),function(n){return r(n,u)});var u}},7:(r,n,t)=>{var e=t(353),o=e.hash2,i=t(83),u=t(673),a=t(636),s=t(967);function f(r,n){var t=a((n=n||0).minSentences,3),i=a(n.maxSentences,7),f=o(r,"paragraph"),c=u(f,t,i),l=0;f=e(f);for(var p=s(f,n);++l<c;)f=e(f),p+=" "+s(f,n);return p}f.options=function(r){var n=this;return t.options=f.options,t;function t(t,e){return n(t,i(r,e))}},r.exports=f},967:(r,n,t)=>{var e=t(353),o=e.hash2,i=t(83),u=t(673),a=t(636),s=t(331);function f(r,n){var t=a((n=n||0).minWords,5),f=a(n.maxWords,8),c=a(n.minClauses,1),l=a(n.maxClauses,2),p=a(n.unicode,.382),h=o(r,"sentence"),v=u(h,c,l),g=0;h=e(h);for(var y=i(n,{capitalize:"first",min:t,max:f,unicode:p}),d=i(y,{capitalize:!1}),m=s(h,y);++g<v;)h=e(h),m+=", "+s(h,d);return m+"."}f.options=function(r){var n=this;return t.options=f.options,t;function t(t,e){return n(t,i(r,e))}},r.exports=f},491:(r,n,t)=>{var e=t(353),o=e.hash2,i=t(66),u=Object.prototype.hasOwnProperty;function a(r,n){var t=e(r),a={};for(var s in n)u.call(n,s)&&(a[s]=i(o(t,s),n[s]));return a}r.exports=function(r,n){return null!=n?a(r,n):(t=r,function(r){return a(r,t)});var t}},168:(r,n,t)=>{var e=t(353),o=e.hash2,i=t(673),u=t(66);r.exports=function r(n,t,a){return null!=t&&null!=a?function(r,n,t){for(var a,s,f,c=o(r,"someOf"),l="number"==typeof n?n:i(c,n[0],n[1]),p=-1,h=[],v=t.slice();++p<l&&(a=v.length);)f=v[s=(c=e(c))%a],v.splice(s,1),h.push(u(c,f));return h}(n,t,a):(s=n,f=t,function(n){return r(n,s,f)});var s,f}},554:(r,n,t)=>{var e=t(353),o=e.hash2,i=t(673);function u(r,n,t){var u=o(r,"times"),a="number"==typeof n?n:i(u,n[0],n[1]),s=-1,f=[];if("function"==typeof t)for(;++s<a;)u=e(u),f.push(t(u));else for(;++s<a;)f.push(t);return f}r.exports=function(r,n,t){return null!=n&&null!=t?u(r,n,t):(e=r,o=n,function(r){return u(r,e,o)});var e,o}},812:(r,n,t)=>{var e=t(353),o=e.hash2,i=t(66);function u(r,n){for(var t=o(r,"tuple"),u=n.length,a=-1,s=[];++a<u;)t=e(t),s.push(i(t,n[a]));return s}r.exports=function(r,n){return null!=n?u(r,n):(t=r,function(r){return u(r,t)});var t}},83:r=>{var n=Object.prototype.hasOwnProperty;r.exports=function(r,t){var e,o={};if(r)for(e in r)n.call(r,e)&&(o[e]=r[e]);if(t)for(e in t)n.call(t,e)&&(o[e]=t[e]);return o}},636:r=>{r.exports=function(r,n){return null==r?n:r}},570:r=>{r.exports=function(r,n){for(var t=[],e=r-1,o=n+1;++e<o;)t.push(e);return t}},673:r=>{r.exports=function(r,n,t){var e,o;return n=n||0,null==t?r>n?r:r+n:n===(t=Math.max(t,n))?n:n<=r&&r<=t?r:(o=0,(e=Math.floor(r))!==r&&(o=function(r){var n=r.toString();return+("0"+n.slice(n.indexOf(".")))}(r),t-=1),e%(t+1-n)+n+o)}},820:(r,n,t)=>{var e=t(570);function o(r,n){var t=r[0]-n[0];return 0===t?r[1]-n[0]:t}function i(r){for(var n,t=-1,o=r.length,i=[];++t<o;)n=r[t],i.push.apply(i,e(n.min,n.max));return i}r.exports=function(r,n){if(!r.length)throw new Error("Empty range set given to fitRanges()");var t=function(r,n){for(var t,e,o,u=[],a=r.length,s=0,f=r[0],c=f[0],l=f[1],p=0,h=0;++s<a;)e=(f=r[s])[0],o=f[1],e>l+1&&(t=p+(l-c),u.push({modMin:p,modMax:t,min:c,max:l,offset:c-p}),p=t+1,h+=l+1-c,c=e),l=Math.max(l,o);return u.push({modMin:p,modMax:p+(l-c),min:c,max:l,offset:c-p}),{ranges:r,segments:u,size:h+=l+1-c,values:h<=n?i(u):null}}(r.slice().sort(o),n),e=t.values,u=t.segments,a=t.size,s=e?function(r){var n=r.length;return function(t){return r[t%n]}}(e):function(r,n){return function(t){for(var e,o,i,u=t%n,a=0,s=r.length-1;a<=s;)if(e=Math.floor((a+s)/2),i=(o=r[e]).modMin,u>o.modMax)a=e+1;else{if(!(u<i))return u+o.offset;s=e-1}throw new Error("Unexpectedly reached end of fitRanges()")}}(u,a);return s.meta=t,s}},657:r=>{var n=Array.isArray;r.exports=function r(t){for(var e,o=[],i=t.length,u=-1;++u<i;)e=t[u],n(e)?o.push.apply(o,r(e)):o.push(e);return o}},761:r=>{r.exports=function(r,n){return 0!=(n=+n)&&(1===n||r%(1/n)<1)}},661:r=>{var n=String.fromCharCode;r.exports=String.fromCodePoint||function(){for(var r=[],t=0,e="",o=0,i=arguments.length;o!==i;++o){var u=+arguments[o];if(!(u<1114111&&u>>>0===u))throw RangeError("Invalid code point: "+u);u<=65535?t=r.push(u):(u-=65536,t=r.push(55296+(u>>10),u%1024+56320)),t>=16383&&(e+=n.apply(null,r),r.length=0)}return e+n.apply(null,r)}},66:(r,n,t)=>{var e=t(353);r.exports=function(r,n){return"function"==typeof n?n(e(r)):n}},953:(r,n,t)=>{var e=t(353),o={a:["å","ǻ","ḁ","ẚ","ă","ặ","ắ","ằ","ẳ","ẵ","ȃ","â","ậ","ấ","ầ","ẫ","ẩ","ả","ǎ","ȧ","ǡ","ạ","ä","ǟ","à","ȁ","á","ā","ā̀","ã","ą","ą́","ą̃","æ"],b:["ƀ","ḃ","ḅ","ḇ","ɓ"],c:["ć","ĉ","č","ċ","ḉ","ƈ","c̈","ȼ","ç"],d:["đ","ɗ","ḋ","ḍ","ḑ","ḓ","ď","ḏ"],e:["ĕ","ḝ","ȇ","ê","ê̄","ê̌","ề","ế","ể","ễ","ệ","ẻ","ḙ","ě","ė","ė́","ė̃","ẹ","ë","è","è̩","ȅ","é","é̩","ē","ḕ","ḗ","ẽ","ḛ","ę","ę́","ę̃"],f:["ƒ","ḟ"],g:["ǵ","ǥ","ĝ","ǧ","ğ","ģ","ɠ","ġ","ḡ"],h:["ĥ","ȟ","ħ","ḩ","ẖ","ḥ","ḣ","ḧ","ḫ"],i:["ị","ĭ","î","ǐ","ɨ","ï","ḯ","í","ì","ȉ","į","į̃","ī","ī̀","ỉ","ȋ","ĩ"],j:["ĵ","j̇̃"],k:["ƙ","ꝁ","ḱ","ǩ","ḳ","ķ","ᶄ","ḵ"],l:["ĺ","ł","ľ","ḹ","l̃","ļ","ŀ","ḷ","ḻ","ḽ","ƚ"],m:["ḿ","ṁ","ṃ","m̃"],n:["ń","ñ","ň","ǹ","ṅ","ṇ","ņ","ṉ","ṋ"],o:["ø","ǿ","ö","ȫ","ó","ò","ô","ố","ồ","ổ","ỗ","ộ","ǒ","ő","ŏ","ȏ","ȯ","ȱ","ọ","ɵ","ơ","ớ","ờ","ỡ","ợ","ở","ỏ","ō","ṓ","ṑ","õ","ȭ","ṍ","ṏ","ǫ","ȍ","o̩","ó̩"],p:["ṕ","ṗ","ᵽ","ƥ","ᶈ"],q:["ʠ","q̃"],r:["ŕ","ɍ","ř","ŗ","ṙ","ȑ","ȓ","ṛ","ṝ","ṟ","ꞧ","ɽ","r̃"],s:["ś","ṡ","ṩ","ṥ","ṣ","s̩","ꞩ","ŝ","ṧ","š","ş","ș","s̈"],t:["ť","ṫ","ẗ","ţ","ṭ","ʈ","ț","ƫ","ṱ","ṯ","ŧ"],u:["ŭ","ʉ","ụ","ü","ǜ","ǘ","ǚ","ǖ","ṳ","ú","ù","û","ṷ","ǔ","ȗ","ű","ŭ","ư","ứ","ừ","ử","ự","ữ","ủ","ū","ū̀","ū́","ṻ","ū̃","ũ","ṹ","ṵ","ų","ų́","ų̃","ȕ","Ů"],v:["ṽ","ṿ","ʋ"],w:["ẃ","ẁ","ŵ","ẅ","ẇ","ẉ","ẘ"],x:["ẍ","ẋ","ᶍ"],y:["ý","ỳ","ŷ","ÿ","ỹ","ẏ","ỵ","ẙ","ỷ","ȳ","ƴ"],z:["ź","ẑ","ž","ż","ẓ","ẕ","ƶ","ᶎ"]};r.exports=function(r,n){var t=n.length,i=r%t;r=e(r);var u=1===t?n:n[i],a=u.toLowerCase(),s=o[a];if(!s)return n;var f=s[r%s.length];return u=u===a?f:f.toUpperCase(),1===t?u:n.slice(0,i)+u+n.slice(i+1)}},194:(r,n,t)=>{var e=t(353),o=e.hash2,i=t(83),u=t(673),a=t(761),s=t(953),f=t(636),c=["a","ka","ki","ke","ko","ta","chi","shi","so","na","ni","no","ra","ha","hy","ma","mi","mu","me","mo","yu","yo","kai","va","vi","kin","rae","cea"],l=c.length;function p(r,n){for(var t,i,p=f((n=n||0).capitalize,!0),v=f(n.minSyllables,2),g=f(n.maxSyllables,4),y=f(n.unicode,!0),d=o(r,"word"),m=u(d,v,g),x="",b="",w=-1;++w<m;){t=b;do{d=e(d),b=c[d%l]}while(!h(t,b));x+=b}return a(d,y)&&(x=s(d,x)),p&&(x=(i=x)[0].toUpperCase()+i.slice(1)),x}function h(r,n){var t=r[r.length-1];return r!==n&&t!==n[0]&&t!==n[1]}p.options=function(r){var n=this;return t.options=p.options,t;function t(t,e){return n(t,i(r,e))}},r.exports=p},331:(r,n,t)=>{var e=t(353),o=e.hash3,i=t(83),u=t(673),a=t(636),s=t(194);function f(r,n){var t=a((n=n||0).minSyllables,1),f=a(n.capitalize,"first"),c=!0===f||"all"===f,l=c||"first"===f,p=a(n.min,2),h=a(n.max,3),v=e(r),g=u(v,p,h),y=0;v=o(v,"words",y);for(var d,m=i(n,{minSyllables:t,capitalize:l}),x=i(n,{minSyllables:t,capitalize:c}),b=s(v,m),w=b;++y<g;){d=w;do{v=o(v,"words",y),w=s(v,x)}while(w.length===d.length);b+=" "+w}return b}f.options=function(r){var n=this;return t.options=f.options,t;function t(t,e){return n(t,i(r,e))}},r.exports=f}},n={};function t(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,t),i.exports}var e={};return(()=>{var r=e;r.hash=t(353),r.oneOf=t(674),r.someOf=t(168),r.tuple=t(812),r.shape=t(491),r.times=t(554),r.join=t(938),r.oneOfWeighted=t(143),r.int=t(121),r.float=t(382),r.char=t(986),r.word=t(194),r.words=t(331),r.sentence=t(967),r.paragraph=t(7),r.bool=t(872),r.dateString=t(45)})(),e})())); | ||
//# sourceMappingURL=fictional.js.map |
{ | ||
"name": "fictional", | ||
"description": "Generate fake data deterministically from a given input", | ||
"version": "0.4.12", | ||
"version": "0.4.13", | ||
"type": "commonjs", | ||
@@ -32,19 +32,12 @@ "main": "index.js", | ||
}, | ||
"renovate": { | ||
"extends": [ | ||
"github>oftherivier/tools" | ||
] | ||
}, | ||
"scripts": { | ||
"build": "otr build", | ||
"lint": "otr lint", | ||
"format": "otr format", | ||
"test": "otr test", | ||
"release": "otr release", | ||
"typetest": "otr typetest", | ||
"checks": "yarn lint && yarn typetest && yarn test" | ||
"build": "yarn tool build", | ||
"lint": "yarn tool lint", | ||
"format": "yarn tool format", | ||
"test": "yarn tool test", | ||
"release": "yarn tool release", | ||
"typetest": "yarn tool typetest", | ||
"checks": "yarn lint && yarn typetest && yarn test", | ||
"tool": "npx @oftherivier/tools" | ||
}, | ||
"devDependencies": { | ||
"@oftherivier/tools": "0.1.42" | ||
}, | ||
"dependencies": { | ||
@@ -51,0 +44,0 @@ "fast-json-stable-stringify": "^2.1.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
40
166571
1
80
1779