culture-generator
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CultureGenerator=t():e.CultureGenerator=t()}(global,(()=>(()=>{var e={530:(e,t)=>{function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(i,a){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return null==e?a:e.call(this,i,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},362:e=>{var t;global,t=()=>(()=>{var e={102:e=>{e.exports=[{name:"Ácutes",orth:{}},{name:"Ümlauts",orth:{A:"ä",E:"ë",I:"ï",O:"ö",U:"ü"}},{name:"Welsh",orth:{A:"â",E:"ê",I:"y",O:"ô",U:"w"}},{name:"Diphthongs",orth:{A:"au",E:"ei",I:"ie",O:"ou",U:"oo"}},{name:"Doubles",orth:{A:"aa",E:"ee",I:"ii",O:"oo",U:"uu"}}]},530:(e,t)=>{function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(i,a){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return null==e?a:e.call(this,i,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},906:(e,t,n)=>{"use strict";var r=n(530),i=function(){var e=4022871197;return function(t){if(t){t=t.toString();for(var n=0;n<t.length;n++){var r=.02519603282416938*(e+=t.charCodeAt(n));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)}e=4022871197}},a=function(e){return function(){var t,n,a=48,o=1,s=a,l=new Array(a),u=0,c=new i;for(t=0;t<a;t++)l[t]=c(Math.random());var E=function(){++s>=a&&(s=0);var e=1768863*l[s]+2.3283064365386963e-10*o;return l[s]=e-(o=0|e)},f=function(e){return Math.floor(e*(E()+11102230246251565e-32*(2097152*E()|0)))};f.string=function(e){var t,n="";for(t=0;t<e;t++)n+=String.fromCharCode(33+f(94));return n};var d=function(){var e=Array.prototype.slice.call(arguments);for(t=0;t<e.length;t++)for(n=0;n<a;n++)l[n]-=c(e[t]),l[n]<0&&(l[n]+=1)};return f.cleanString=function(e){return(e=(e=e.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[\x00-\x1F]/gi,"")).replace(/\n /,"\n")},f.hashString=function(e){for(e=f.cleanString(e),c(e),t=0;t<e.length;t++)for(u=e.charCodeAt(t),n=0;n<a;n++)l[n]-=c(u),l[n]<0&&(l[n]+=1)},f.seed=function(e){null==e&&(e=Math.random()),"string"!=typeof e&&(e=r(e,(function(e,t){return"function"==typeof t?t.toString():t}))),f.initState(),f.hashString(e)},f.addEntropy=function(){var e=[];for(t=0;t<arguments.length;t++)e.push(arguments[t]);d(u+++(new Date).getTime()+e.join("")+Math.random())},f.initState=function(){for(c(),t=0;t<a;t++)l[t]=c(" ");o=1,s=a},f.done=function(){c=null},void 0!==e&&f.seed(e),f.range=function(e){return f(e)},f.random=function(){return f(Number.MAX_VALUE-1)/Number.MAX_VALUE},f.floatBetween=function(e,t){return f.random()*(t-e)+e},f.intBetween=function(e,t){return Math.floor(f.random()*(t-e+1))+e},f}()};a.create=function(e){return new a(e)},e.exports=a}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{makeBasicLanguage:()=>S,makeOrthoLanguage:()=>p,makeRandomLanguage:()=>_});var e=n(906),t=n.n(e);const i=[{name:"Just s",S:"s"},{name:"s ʃ",S:"sʃ"},{name:"s ʃ f",S:"sʃf"}],a=[{name:"r l",L:"rl"},{name:"Just r",L:"r"},{name:"Just l",L:"l"},{name:"w j",L:"wj"},{name:"r l w j",L:"rlwj"}],o=[{name:"m n",F:"mn"},{name:"s k",F:"sk"},{name:"m n ŋ",F:"mnŋ"},{name:"s ʃ z ʒ",F:"sʃzʒ"}],s=[{name:"Standard 5-vowel",V:"aeiou"},{name:"3-vowel a i u",V:"aiu"},{name:"Extra A E I",V:"aeiouAEI"},{name:"Extra U",V:"aeiouU"},{name:"5-vowel a i u A I",V:"aiuAI"},{name:"3-vowel e o u",V:"eou"},{name:"Extra A O U",V:"aeiouAOU"}],l=[{name:"Minimal",C:"ptkmnls"},{name:"English-ish",C:"ptkbdgmnlrsʃzʒʧ"},{name:"Pirahã (very simple)",C:"ptkmnh"},{name:"Hawaiian-ish",C:"hklmnpwʔ"},{name:"Greenlandic-ish",C:"ptkqvsgrmnŋlj"},{name:"Arabic-ish",C:"tksʃdbqɣxmnlrwj"},{name:"Arabic-lite",C:"tkdgmnsʃ"},{name:"English-lite",C:"ptkbdgmnszʒʧhjw"}],u=[{name:"None",res:[]},{name:"Double sounds",res:[/(.)\1/]},{name:"Doubles and hard clusters",res:[/[sʃf][sʃ]/,/(.)\1/,/[rl][rl]/]}],c=[{name:"Default",orth:{}},{name:"Slavic",orth:{ʃ:"š",ʒ:"ž",ʧ:"č",ʤ:"ǧ",j:"j"}},{name:"German",orth:{ʃ:"sch",ʒ:"zh",ʧ:"tsch",ʤ:"dz",j:"j",x:"ch"}},{name:"French",orth:{ʃ:"ch",ʒ:"j",ʧ:"tch",ʤ:"dj",x:"kh"}},{name:"Chinese (pinyin)",orth:{ʃ:"x",ʧ:"q",ʤ:"j"}}];var E=n(102),f=n.n(E);const d=["CVC","CVV?C","CVVC?","CVC?","CV","VC","CVF","C?VC","CVF?","CL?VC","CL?VF","S?CVC","S?CVF","S?CVC?","C?VF","C?VC?","C?VF?","C?L?VC","VC","CVL?C?","C?VL?C","C?VLC?"],h={ʃ:"sh",ʒ:"zh",ʧ:"ch",ʤ:"j",ŋ:"ng",j:"y",x:"kh",ɣ:"gh",ʔ:"‘",A:"á",E:"é",I:"í",O:"ó",U:"ú"};function I(e,n){var r=t().create(e);function E(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);for(n=e.length-1;n>0;n--){var r=t[n],i=S(n);t[n]=t[i],t[i]=r}return t}function I(e,t){return t=t||1,e[Math.floor(Math.pow(r.random(),t)*e.length)]}function S(e,t){return null==t&&(t=e,e=0),Math.floor(r.random()*(t-e))+e}function p(e){return e[0].toUpperCase()+e.slice(1)}function _(e,t){if(e.noortho)return t;for(var n="",r=0;r<t.length;r++){var i=t[r];n+=e.cortho[i]||e.vortho[i]||h[i]||i}return n}function m(e){for(;;){for(var t="",n=0;n<e.structure.length;n++){var i=e.structure[n];"?"==e.structure[n+1]&&(n++,r.random()<.5)||(t+=I(e.phonemes[i],e.exponent))}var a=!1;for(n=0;n<e.restricts.length;n++)if(e.restricts[n].test(t)){a=!0;break}if(!a)return _(e,t)}}function O(e,t){if(e.nomorph)return m(e);t=t||"";var n=e.morphemes[t]||[],r=10;for(t&&(r=1);;){var i=S(n.length+r);if(n[i])return n[i];var a=m(e),o=!1;for(var s in e.morphemes)if(e.morphemes[s].includes(a)){o=!0;break}if(!o)return n.push(a),e.morphemes[t]=n,a}}function N(e,t){var n=S(e.minsyll,e.maxsyll+1),r="",i=[];i[S(n)]=t;for(var a=0;a<n;a++)r+=O(e,i[a]);return r}function R(e,t){t=t||"";var n=e.words[t]||[],r=3;for(t&&(r=2);;){var i=n[S(n.length+r)];if(i)return i;i=N(e,t);var a=!1;for(var o in e.words)if(e.words[o].includes(i)){a=!0;break}if(!a)return n.push(i),e.words[t]=n,i}}var A,v="random"===n?((A={phonemes:{C:"ptkmnls",V:"aeiou",S:"s",F:"mn",L:"rl"},structure:"CVC",exponent:2,restricts:[],cortho:{},vortho:{},noortho:!1,nomorph:!1,nowordpool:!1,minsyll:1,maxsyll:1,morphemes:{},words:{},names:[],joiner:" ",maxchar:12,minchar:5}).phonemes.C=E(I(l,2).C),A.phonemes.V=E(I(s,2).V),A.phonemes.L=E(I(a,2).L),A.phonemes.S=E(I(i,2).S),A.phonemes.F=E(I(o,2).F),A.structure=I(d),A.restricts=u[2].res,A.cortho=I(c,2).orth,A.vortho=I(f(),2).orth,A.minsyll=S(1,3),A.structure.length<3&&A.minsyll++,A.maxsyll=S(A.minsyll+1,7),A.joiner=I(" -"),A):"ortho"===n?{phonemes:{C:"ptkmnls",V:"aeiou",S:"s",F:"mn",L:"rl"},structure:"CVC",exponent:2,restricts:[],cortho:{},vortho:{},noortho:!1,nomorph:!0,nowordpool:!0,minsyll:1,maxsyll:1,morphemes:{},words:{},names:[],joiner:" ",maxchar:12,minchar:5}:{phonemes:{C:"ptkmnls",V:"aeiou",S:"s",F:"mn",L:"rl"},structure:"CVC",exponent:2,restricts:[],cortho:{},vortho:{},noortho:!0,nomorph:!0,nowordpool:!0,minsyll:1,maxsyll:1,morphemes:{},words:{},names:[],joiner:" ",maxchar:12,minchar:5};return{makeWord:function(e){return N(v,e)},getWord:function(e){return R(v,e)},makeName:function(e){return function(e,t){for(t=t||"",e.genitive=e.genitive||O(e,"of"),e.definite=e.definite||O(e,"the");;){var n=null;if(r.random()<.5)n=p(R(e,t));else{var i=p(R(e,r.random()<.6?t:"")),a=p(R(e,r.random()<.6?t:""));if(i==a)continue;n=r.random()>.5?[i,a].join(e.joiner):[i,e.genitive,a].join(e.joiner)}if(r.random()<.1&&(n=[e.definite,n].join(e.joiner)),!(n.length<e.minchar||n.length>e.maxchar)){for(var o=!1,s=0;s<e.names.length;s++){var l=e.names[s];if(-1!=n.indexOf(l)||-1!=l.indexOf(n)){o=!0;break}}if(!o)return e.names.push(n),n}}}(v,e)}}}function S(e){return I(e,"basic")}function p(e){return I(e,"ortho")}function _(e){return I(e,"random")}})(),r})(),e.exports=t()},906:(e,t,n)=>{"use strict";var r=n(530),i=function(){var e=4022871197;return function(t){if(t){t=t.toString();for(var n=0;n<t.length;n++){var r=.02519603282416938*(e+=t.charCodeAt(n));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)}e=4022871197}},a=function(e){return function(){var t,n,a=48,o=1,s=a,l=new Array(a),u=0,c=new i;for(t=0;t<a;t++)l[t]=c(Math.random());var E=function(){++s>=a&&(s=0);var e=1768863*l[s]+2.3283064365386963e-10*o;return l[s]=e-(o=0|e)},f=function(e){return Math.floor(e*(E()+11102230246251565e-32*(2097152*E()|0)))};f.string=function(e){var t,n="";for(t=0;t<e;t++)n+=String.fromCharCode(33+f(94));return n};var d=function(){var e=Array.prototype.slice.call(arguments);for(t=0;t<e.length;t++)for(n=0;n<a;n++)l[n]-=c(e[t]),l[n]<0&&(l[n]+=1)};return f.cleanString=function(e){return(e=(e=e.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[\x00-\x1F]/gi,"")).replace(/\n /,"\n")},f.hashString=function(e){for(e=f.cleanString(e),c(e),t=0;t<e.length;t++)for(u=e.charCodeAt(t),n=0;n<a;n++)l[n]-=c(u),l[n]<0&&(l[n]+=1)},f.seed=function(e){null==e&&(e=Math.random()),"string"!=typeof e&&(e=r(e,(function(e,t){return"function"==typeof t?t.toString():t}))),f.initState(),f.hashString(e)},f.addEntropy=function(){var e=[];for(t=0;t<arguments.length;t++)e.push(arguments[t]);d(u+++(new Date).getTime()+e.join("")+Math.random())},f.initState=function(){for(c(),t=0;t<a;t++)l[t]=c(" ");o=1,s=a},f.done=function(){c=null},void 0!==e&&f.seed(e),f.range=function(e){return f(e)},f.random=function(){return f(Number.MAX_VALUE-1)/Number.MAX_VALUE},f.floatBetween=function(e,t){return f.random()*(t-e)+e},f.intBetween=function(e,t){return Math.floor(f.random()*(t-e+1))+e},f}()};a.create=function(e){return new a(e)},e.exports=a}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Culture:()=>Jt,beliefValues:()=>D,beliefs:()=>k,ethicValues:()=>h,ethics:()=>G,getEthicDescription:()=>C});var e={};n.r(e),n.d(e,{artworkValues:()=>K,commerceValues:()=>z,competitionValues:()=>ee,cooperationValues:()=>re,craftsmanshipValues:()=>oe,cunningValues:()=>ue,decorumValues:()=>fe,eloquenceValues:()=>Ie,fairnessValues:()=>_e,familyValues:()=>Ne,friendshipValues:()=>ve,hardWorkValues:()=>Le,harmonyValues:()=>He,independenceValues:()=>we,introspectionValues:()=>Ce,knowledgeValues:()=>Me,lawValues:()=>We,leisureTimeValues:()=>xe,loyaltyValues:()=>Ke,martialProwessValues:()=>ze,merrimentValues:()=>et,natureValues:()=>rt,peaceValues:()=>ot,perseveranceValues:()=>ut,powerValues:()=>ft,romanceValues:()=>It,sacrificeValues:()=>_t,selfControlValues:()=>Nt,skillValues:()=>vt,stoicismValues:()=>Lt,traditionValues:()=>Ht,tranquilityValues:()=>wt,truthValues:()=>Ct});var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};function i(e){return e.toLowerCase()}Object.create,Object.create;var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function s(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function l(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function u(e,t){return 0===t?e.toLowerCase():l(e,t)}var c=n(906),E=n.n(c),f=n(362),d=[{id:"ACCEPTABLE",description:"is acceptable"},{id:"PERSONAL_MATTER",description:"is a personal matter"},{id:"JUSTIFIED_IF_NO_REPERCUSSIONS",description:"is justified if there are no repurcussions"},{id:"JUSTIFIED_IF_GOOD_REASON",description:"is justified if backed by a good reason"},{id:"JUSTIFIED_IF_EXTREME_REASON",description:"is justified if backed by an extreme reason"},{id:"JUSTIFIED_IF_SELF_DEFENSE",description:"is justified in self defense"},{id:"ONLY_IF_SANCTIONED",description:"is justified only when sanctioned"},{id:"MISGUIDED",description:"is misguided"},{id:"SHUN",description:"is shun"},{id:"APPALLING",description:"is appalling"},{id:"PUNISH_REPRIMAND",description:"is reprimanded"},{id:"PUNISH_SERIOUS",description:"is a serious crime"},{id:"PUNISH_EXILE",description:"is a crime punishable by exile"},{id:"PUNISH_CAPITAL",description:"is a crime punishable by capital punishment"},{id:"UNTHINKABLE",description:"is unthinkable"},{id:"REQUIRED",description:"is required"}];const h=d.reduce((function(e,t,n){return e[t.id]=n,e}),{});var I,S,p,_,m,O,N,R,A,v,b,T,L,y,g,H,U;function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=(P(U={},h.ACCEPTABLE,(P(I={},h.ACCEPTABLE,1),P(I,h.PERSONAL_MATTER,1),P(I,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(I,h.JUSTIFIED_IF_GOOD_REASON,0),P(I,h.JUSTIFIED_IF_EXTREME_REASON,0),P(I,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(I,h.ONLY_IF_SANCTIONED,0),P(I,h.MISGUIDED,-1),P(I,h.SHUN,-2),P(I,h.APPALLING,-2),P(I,h.PUNISH_REPRIMAND,-2),P(I,h.PUNISH_SERIOUS,-3),P(I,h.PUNISH_EXILE,-5),P(I,h.PUNISH_CAPITAL,-5),P(I,h.UNTHINKABLE,-2),P(I,h.REQUIRED,1),I)),P(U,h.PERSONAL_MATTER,(P(S={},h.ACCEPTABLE,1),P(S,h.PERSONAL_MATTER,1),P(S,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(S,h.JUSTIFIED_IF_GOOD_REASON,0),P(S,h.JUSTIFIED_IF_EXTREME_REASON,0),P(S,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(S,h.ONLY_IF_SANCTIONED,0),P(S,h.MISGUIDED,-1),P(S,h.SHUN,-2),P(S,h.APPALLING,-2),P(S,h.PUNISH_REPRIMAND,-2),P(S,h.PUNISH_SERIOUS,-3),P(S,h.PUNISH_EXILE,-5),P(S,h.PUNISH_CAPITAL,-5),P(S,h.UNTHINKABLE,-2),P(S,h.REQUIRED,1),S)),P(U,h.JUSTIFIED_IF_NO_REPERCUSSIONS,(P(p={},h.ACCEPTABLE,1),P(p,h.PERSONAL_MATTER,1),P(p,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(p,h.JUSTIFIED_IF_GOOD_REASON,0),P(p,h.JUSTIFIED_IF_EXTREME_REASON,0),P(p,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(p,h.ONLY_IF_SANCTIONED,0),P(p,h.MISGUIDED,-1),P(p,h.SHUN,-2),P(p,h.APPALLING,-2),P(p,h.PUNISH_REPRIMAND,-2),P(p,h.PUNISH_SERIOUS,-3),P(p,h.PUNISH_EXILE,-5),P(p,h.PUNISH_CAPITAL,-5),P(p,h.UNTHINKABLE,-2),P(p,h.REQUIRED,1),p)),P(U,h.JUSTIFIED_IF_GOOD_REASON,(P(_={},h.ACCEPTABLE,0),P(_,h.PERSONAL_MATTER,0),P(_,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(_,h.JUSTIFIED_IF_GOOD_REASON,2),P(_,h.JUSTIFIED_IF_EXTREME_REASON,1),P(_,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(_,h.ONLY_IF_SANCTIONED,0),P(_,h.MISGUIDED,0),P(_,h.SHUN,-1),P(_,h.APPALLING,-1),P(_,h.PUNISH_REPRIMAND,-1),P(_,h.PUNISH_SERIOUS,-1),P(_,h.PUNISH_EXILE,-1),P(_,h.PUNISH_CAPITAL,-1),P(_,h.UNTHINKABLE,-1),P(_,h.REQUIRED,0),_)),P(U,h.JUSTIFIED_IF_EXTREME_REASON,(P(m={},h.ACCEPTABLE,-1),P(m,h.PERSONAL_MATTER,-1),P(m,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(m,h.JUSTIFIED_IF_GOOD_REASON,1),P(m,h.JUSTIFIED_IF_EXTREME_REASON,2),P(m,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(m,h.ONLY_IF_SANCTIONED,0),P(m,h.MISGUIDED,0),P(m,h.SHUN,-1),P(m,h.APPALLING,-1),P(m,h.PUNISH_REPRIMAND,-1),P(m,h.PUNISH_SERIOUS,-1),P(m,h.PUNISH_EXILE,-1),P(m,h.PUNISH_CAPITAL,-1),P(m,h.UNTHINKABLE,-1),P(m,h.REQUIRED,-1),m)),P(U,h.JUSTIFIED_IF_SELF_DEFENSE,(P(O={},h.ACCEPTABLE,-2),P(O,h.PERSONAL_MATTER,-2),P(O,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-1),P(O,h.JUSTIFIED_IF_GOOD_REASON,0),P(O,h.JUSTIFIED_IF_EXTREME_REASON,1),P(O,h.JUSTIFIED_IF_SELF_DEFENSE,2),P(O,h.ONLY_IF_SANCTIONED,0),P(O,h.MISGUIDED,0),P(O,h.SHUN,0),P(O,h.APPALLING,-1),P(O,h.PUNISH_REPRIMAND,-1),P(O,h.PUNISH_SERIOUS,-1),P(O,h.PUNISH_EXILE,-1),P(O,h.PUNISH_CAPITAL,-1),P(O,h.UNTHINKABLE,-1),P(O,h.REQUIRED,-2),O)),P(U,h.ONLY_IF_SANCTIONED,(P(N={},h.ACCEPTABLE,-2),P(N,h.PERSONAL_MATTER,-2),P(N,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-1),P(N,h.JUSTIFIED_IF_GOOD_REASON,0),P(N,h.JUSTIFIED_IF_EXTREME_REASON,1),P(N,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(N,h.ONLY_IF_SANCTIONED,2),P(N,h.MISGUIDED,0),P(N,h.SHUN,0),P(N,h.APPALLING,-1),P(N,h.PUNISH_REPRIMAND,-1),P(N,h.PUNISH_SERIOUS,-1),P(N,h.PUNISH_EXILE,-1),P(N,h.PUNISH_CAPITAL,-1),P(N,h.UNTHINKABLE,-1),P(N,h.REQUIRED,-2),N)),P(U,h.MISGUIDED,(P(R={},h.ACCEPTABLE,-1),P(R,h.PERSONAL_MATTER,-1),P(R,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(R,h.JUSTIFIED_IF_GOOD_REASON,0),P(R,h.JUSTIFIED_IF_EXTREME_REASON,0),P(R,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(R,h.ONLY_IF_SANCTIONED,0),P(R,h.MISGUIDED,2),P(R,h.SHUN,1),P(R,h.APPALLING,1),P(R,h.PUNISH_REPRIMAND,1),P(R,h.PUNISH_SERIOUS,0),P(R,h.PUNISH_EXILE,0),P(R,h.PUNISH_CAPITAL,-1),P(R,h.UNTHINKABLE,1),P(R,h.REQUIRED,-1),R)),P(U,h.SHUN,(P(A={},h.ACCEPTABLE,-1),P(A,h.PERSONAL_MATTER,-1),P(A,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(A,h.JUSTIFIED_IF_GOOD_REASON,0),P(A,h.JUSTIFIED_IF_EXTREME_REASON,0),P(A,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(A,h.ONLY_IF_SANCTIONED,0),P(A,h.MISGUIDED,1),P(A,h.SHUN,2),P(A,h.APPALLING,1),P(A,h.PUNISH_REPRIMAND,1),P(A,h.PUNISH_SERIOUS,0),P(A,h.PUNISH_EXILE,0),P(A,h.PUNISH_CAPITAL,-1),P(A,h.UNTHINKABLE,1),P(A,h.REQUIRED,-1),A)),P(U,h.APPALLING,(P(v={},h.ACCEPTABLE,-5),P(v,h.PERSONAL_MATTER,-5),P(v,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-3),P(v,h.JUSTIFIED_IF_GOOD_REASON,-2),P(v,h.JUSTIFIED_IF_EXTREME_REASON,-1),P(v,h.JUSTIFIED_IF_SELF_DEFENSE,-1),P(v,h.ONLY_IF_SANCTIONED,-2),P(v,h.MISGUIDED,1),P(v,h.SHUN,1),P(v,h.APPALLING,2),P(v,h.PUNISH_REPRIMAND,1),P(v,h.PUNISH_SERIOUS,1),P(v,h.PUNISH_EXILE,1),P(v,h.PUNISH_CAPITAL,0),P(v,h.UNTHINKABLE,1),P(v,h.REQUIRED,-5),v)),P(U,h.PUNISH_REPRIMAND,(P(b={},h.ACCEPTABLE,-5),P(b,h.PERSONAL_MATTER,-5),P(b,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-3),P(b,h.JUSTIFIED_IF_GOOD_REASON,-2),P(b,h.JUSTIFIED_IF_EXTREME_REASON,-1),P(b,h.JUSTIFIED_IF_SELF_DEFENSE,-1),P(b,h.ONLY_IF_SANCTIONED,-2),P(b,h.MISGUIDED,1),P(b,h.SHUN,1),P(b,h.APPALLING,1),P(b,h.PUNISH_REPRIMAND,2),P(b,h.PUNISH_SERIOUS,1),P(b,h.PUNISH_EXILE,1),P(b,h.PUNISH_CAPITAL,0),P(b,h.UNTHINKABLE,1),P(b,h.REQUIRED,-5),b)),P(U,h.PUNISH_SERIOUS,(P(T={},h.ACCEPTABLE,-10),P(T,h.PERSONAL_MATTER,-10),P(T,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-7),P(T,h.JUSTIFIED_IF_GOOD_REASON,-3),P(T,h.JUSTIFIED_IF_EXTREME_REASON,-2),P(T,h.JUSTIFIED_IF_SELF_DEFENSE,-2),P(T,h.ONLY_IF_SANCTIONED,-3),P(T,h.MISGUIDED,0),P(T,h.SHUN,1),P(T,h.APPALLING,1),P(T,h.PUNISH_REPRIMAND,0),P(T,h.PUNISH_SERIOUS,2),P(T,h.PUNISH_EXILE,1),P(T,h.PUNISH_CAPITAL,1),P(T,h.UNTHINKABLE,1),P(T,h.REQUIRED,-10),T)),P(U,h.PUNISH_EXILE,(P(L={},h.ACCEPTABLE,-10),P(L,h.PERSONAL_MATTER,-10),P(L,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-7),P(L,h.JUSTIFIED_IF_GOOD_REASON,-3),P(L,h.JUSTIFIED_IF_EXTREME_REASON,-2),P(L,h.JUSTIFIED_IF_SELF_DEFENSE,-2),P(L,h.ONLY_IF_SANCTIONED,-3),P(L,h.MISGUIDED,0),P(L,h.SHUN,1),P(L,h.APPALLING,1),P(L,h.PUNISH_REPRIMAND,0),P(L,h.PUNISH_SERIOUS,1),P(L,h.PUNISH_EXILE,2),P(L,h.PUNISH_CAPITAL,1),P(L,h.UNTHINKABLE,1),P(L,h.REQUIRED,-10),L)),P(U,h.PUNISH_CAPITAL,(P(y={},h.ACCEPTABLE,-15),P(y,h.PERSONAL_MATTER,-15),P(y,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-10),P(y,h.JUSTIFIED_IF_GOOD_REASON,-5),P(y,h.JUSTIFIED_IF_EXTREME_REASON,-3),P(y,h.JUSTIFIED_IF_SELF_DEFENSE,-3),P(y,h.ONLY_IF_SANCTIONED,-5),P(y,h.MISGUIDED,0),P(y,h.SHUN,0),P(y,h.APPALLING,1),P(y,h.PUNISH_REPRIMAND,0),P(y,h.PUNISH_SERIOUS,1),P(y,h.PUNISH_EXILE,1),P(y,h.PUNISH_CAPITAL,2),P(y,h.UNTHINKABLE,1),P(y,h.REQUIRED,-15),y)),P(U,h.UNTHINKABLE,(P(g={},h.ACCEPTABLE,-15),P(g,h.PERSONAL_MATTER,-15),P(g,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-10),P(g,h.JUSTIFIED_IF_GOOD_REASON,-5),P(g,h.JUSTIFIED_IF_EXTREME_REASON,-3),P(g,h.JUSTIFIED_IF_SELF_DEFENSE,-3),P(g,h.ONLY_IF_SANCTIONED,-5),P(g,h.MISGUIDED,0),P(g,h.SHUN,1),P(g,h.APPALLING,1),P(g,h.PUNISH_REPRIMAND,0),P(g,h.PUNISH_SERIOUS,1),P(g,h.PUNISH_EXILE,1),P(g,h.PUNISH_CAPITAL,1),P(g,h.UNTHINKABLE,2),P(g,h.REQUIRED,-15),g)),P(U,h.REQUIRED,(P(H={},h.ACCEPTABLE,1),P(H,h.PERSONAL_MATTER,1),P(H,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(H,h.JUSTIFIED_IF_GOOD_REASON,0),P(H,h.JUSTIFIED_IF_EXTREME_REASON,0),P(H,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(H,h.ONLY_IF_SANCTIONED,0),P(H,h.MISGUIDED,-1),P(H,h.SHUN,-2),P(H,h.APPALLING,-2),P(H,h.PUNISH_REPRIMAND,-2),P(H,h.PUNISH_SERIOUS,-3),P(H,h.PUNISH_EXILE,-5),P(H,h.PUNISH_CAPITAL,-5),P(H,h.UNTHINKABLE,-2),P(H,h.REQUIRED,1),H)),U);const D=["LOWEST","VERY_LOW","LOW","NEUTRAL","HIGH","VERY_HIGH","HIGHEST"].reduce((function(e,t,n){return e[t]=n,e}),{});var F={ASSAULT:{description:"assault"},EAT_SAPIENT_KILL:{description:"eating sapients"},EAT_SAPIENT_OTHER:{description:"eating sapients that have been killed in battle"},KILL_ANIMAL:{description:"killing animals"},KILL_ENEMY:{description:"killing enemies"},KILL_ENTITY_MEMBER:{description:"killing member of the same race"},KILL_NEUTRAL:{description:"killing neutral sapient"},KILL_PLANT:{description:"killing plants"},LYING:{description:"lying"},MAKE_TROPHY_ANIMAL:{description:"making a trophy from the corpse of an animal"},MAKE_TROPHY_SAME_RACE:{description:"making a trophy from a corpse of the same race"},MAKE_TROPHY_SAPIENT:{description:"making a trophy from a corpse of another sapient race"},OATH_BREAKING:{description:"oath breaking"},SLAVERY:{description:"slavery"},THEFT:{description:"theft"},TORTURE_ANIMALS:{description:"torture of animals"},TORTURE_AS_EXAMPLE:{description:"torture as an example"},TORTURE_FOR_FUN:{description:"torture for fun"},TORTURE_FOR_INFORMATION:{description:"torture for information"},TREASON:{description:"treason"},TRESPASSING:{description:"trespassing"},VANDALISM:{description:"vandalism"}};function C(e){var t;return null===(t=F[e])||void 0===t?void 0:t.description}const G=Object.keys(F).reduce((function(e,t){return e[t]=t,e}),{});var V=Object.values(h);function M(e,t){var n=Object.keys(G).reduce((function(e,n){return e[n]=V[t(V.length)],e}),{});return Object.keys(G).forEach((function(t){var r=e[t];!1!==V.includes(r)&&(n[t]=r)})),n}const k={LAW:"LAW",LOYALTY:"LOYALTY",FAMILY:"FAMILY",FRIENDSHIP:"FRIENDSHIP",POWER:"POWER",TRUTH:"TRUTH",CUNNING:"CUNNING",ELOQUENCE:"ELOQUENCE",FAIRNESS:"FAIRNESS",DECORUM:"DECORUM",TRADITION:"TRADITION",ARTWORK:"ARTWORK",COOPERATION:"COOPERATION",INDEPENDENCE:"INDEPENDENCE",STOICISM:"STOICISM",INTROSPECTION:"INTROSPECTION",SELF_CONTROL:"SELF_CONTROL",TRANQUILITY:"TRANQUILITY",HARMONY:"HARMONY",MERRIMENT:"MERRIMENT",CRAFTSMANSHIP:"CRAFTSMANSHIP",MARTIAL_PROWESS:"MARTIAL_PROWESS",SKILL:"SKILL",HARD_WORK:"HARD_WORK",SACRIFICE:"SACRIFICE",COMPETITION:"COMPETITION",PERSEVERANCE:"PERSEVERANCE",LEISURE_TIME:"LEISURE_TIME",COMMERCE:"COMMERCE",ROMANCE:"ROMANCE",NATURE:"NATURE",KNOWLEDGE:"KNOWLEDGE"};function j(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y,J=[].concat(j(Array(78).fill().map((function(){return D.NEUTRAL}))),j(Array(8).fill().map((function(){return D.HIGH}))),j(Array(8).fill().map((function(){return D.LOW}))),j(Array(2).fill().map((function(){return D.VERY_HIGH}))),j(Array(2).fill().map((function(){return D.VERY_LOW}))),j(Array(1).fill().map((function(){return D.HIGHEST}))),j(Array(1).fill().map((function(){return D.LOWEST})))),x=Object.values(D);function B(e,t){var n=Object.keys(k).reduce((function(e,n){return e[n]=function(e){return J[e(J.length)]}(t),e}),{});return Object.keys(k).forEach((function(t){var r=e[t];!1!==x.includes(r)&&(n[t]=r)})),n}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const K=(X(Y={},D.HIGHEST,"believes that the creation and appreciation of artwork is one of the highest ideals"),X(Y,D.VERY_HIGH,"greatly respects artists and their works"),X(Y,D.HIGH,"values artwork"),X(Y,D.NEUTRAL,"doesn't care about art one way or another"),X(Y,D.LOW,"finds artwork boring"),X(Y,D.VERY_LOW,"sees the whole pursuit of art as silly"),X(Y,D.LOWEST,"finds art offensive and would have it destroyed whenever possible"),Y);var q;function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z=(Q(q={},D.HIGHEST,"sees engaging in commerce as a high ideal in life"),Q(q,D.VERY_HIGH,"really respects commerce and those that engage in trade"),Q(q,D.HIGH,"respects commerce"),Q(q,D.NEUTRAL,"doesn't particularly respect commerce"),Q(q,D.LOW,"is somewhat put off by trade and commerce"),Q(q,D.VERY_LOW,"finds those that engage in trade and commerce to be fairly disgusting"),Q(q,D.LOWEST,"holds the view that commerce is a vile obscenity"),q);var $;function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ee=(Z($={},D.HIGHEST,"holds the idea of competition among the most important values and would encourage it wherever possible"),Z($,D.VERY_HIGH,"views competition as a crucial driving force in the world"),Z($,D.HIGH,"sees competition as reasonably important"),Z($,D.NEUTRAL,"doesn't have strong views on competition"),Z($,D.LOW,"sees competition as wasteful and silly"),Z($,D.VERY_LOW,"deeply dislikes competition"),Z($,D.LOWEST,"finds the very idea of competition obscene"),$);var te;function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const re=(ne(te={},D.HIGHEST,"places cooperation as one of the highest ideals"),ne(te,D.VERY_HIGH,"sees cooperation as very important in life"),ne(te,D.HIGH,"values cooperation"),ne(te,D.NEUTRAL,"doesn't see cooperation as valuable"),ne(te,D.LOW,"dislikes cooperation"),ne(te,D.VERY_LOW,"views cooperation as a low ideal not worthy of any respect"),ne(te,D.LOWEST,"is thoroughly disgusted by cooperation"),te);var ie;function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oe=(ae(ie={},D.HIGHEST,"holds crafts[man]ship to be of the highest ideals and celebrates talented artisans and their masterworks"),ae(ie,D.VERY_HIGH,"has a great deal of respect for worthy crafts[man]ship"),ae(ie,D.HIGH,"values good crafts[man]ship"),ae(ie,D.NEUTRAL,"doesn't particularly care about crafts[man]ship"),ae(ie,D.LOW,"considers crafts[man]ship to be relatively worthless"),ae(ie,D.VERY_LOW,"sees the pursuit of good crafts[man]ship as a total waste"),ae(ie,D.LOWEST,"views crafts[man]ship with disgust and would desecrate a so-called masterwork or two if [he/she] could get away with it"),ie);var se;function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue=(le(se={},D.HIGHEST,"holds well-laid plans and shrewd deceptions in the highest regard"),le(se,D.VERY_HIGH,"greatly respects the shrewd and guileful"),le(se,D.HIGH,"values cunning"),le(se,D.NEUTRAL,"does not really value cunning and guile"),le(se,D.LOW,"sees guile and cunning as indirect and somewhat worthless"),le(se,D.VERY_LOW,"holds shrewd and crafty individuals in the lowest esteem"),le(se,D.LOWEST,"is utterly disgusted by guile and cunning"),se);var ce;function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fe=(Ee(ce={},D.HIGHEST,"views decorum as a high ideal and is deeply offended by those that fail to maintain it"),Ee(ce,D.VERY_HIGH,"greatly respects those that observe decorum and maintain their dignity"),Ee(ce,D.HIGH,"values decorum, dignity and proper behavior"),Ee(ce,D.NEUTRAL,"doesn't care very much about decorum"),Ee(ce,D.LOW,"finds maintaining decorum a silly, fumbling waste of time"),Ee(ce,D.VERY_LOW,"sees those that attempt to maintain dignified and proper behavior as vain and offensive"),Ee(ce,D.LOWEST,"is affronted by the whole notion of maintaining decorum and finds so-called dignified people disgusting"),ce);var de;function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ie=(he(de={},D.HIGHEST,"believes that artful speech and eloquent expression are some of the highest ideals"),he(de,D.VERY_HIGH,"deeply respects eloquent speakers"),he(de,D.HIGH,"values eloquence"),he(de,D.NEUTRAL,"doesn't value eloquence so much"),he(de,D.LOW,"finds eloquence and artful speech off-putting"),he(de,D.VERY_LOW,"finds [him/her]self somewhat disgusted with eloquent speakers"),he(de,D.LOWEST,"sees artful speech and eloquence as a wasteful form of deliberate deception and treats it as such"),de);var Se;function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _e=(pe(Se={},D.HIGHEST,"holds fairness as one of the highest ideals and despises cheating of any kind"),pe(Se,D.VERY_HIGH,"has great respect for fairness"),pe(Se,D.HIGH,"respects fair-dealing and fair-play"),pe(Se,D.NEUTRAL,"does not care about fairness"),pe(Se,D.LOW,"sees life as unfair and doesn't mind it that way"),pe(Se,D.VERY_LOW,"finds the idea of fair-dealing foolish and cheats when [he/she] finds it profitable"),pe(Se,D.LOWEST,"is disgusted by the idea of fairness and will freely cheat anybody at any time"),Se);var me;function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ne=(Oe(me={},D.HIGHEST,"sees family as one of the most important things in life"),Oe(me,D.VERY_HIGH,"values family greatly"),Oe(me,D.HIGH,"values family"),Oe(me,D.NEUTRAL,"does not care about family one way or the other"),Oe(me,D.LOW,"is put off by family"),Oe(me,D.VERY_LOW,"lacks any respect for family"),Oe(me,D.LOWEST,"finds the idea of family loathsome"),me);var Re;function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ve=(Ae(Re={},D.HIGHEST,"believes friendship is a key to the ideal life"),Ae(Re,D.VERY_HIGH,"sees friendship as one of the finer things in life"),Ae(Re,D.HIGH,"thinks friendship is important"),Ae(Re,D.NEUTRAL,"does not care about friendship"),Ae(Re,D.LOW,"finds friendship burdensome"),Ae(Re,D.VERY_LOW,"is completely put off by the idea of friends"),Ae(Re,D.LOWEST,"finds the whole idea of friendship disgusting"),Re);var be;function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Le=(Te(be={},D.HIGHEST,"believes that hard work is one of the highest ideals and a key to the good life"),Te(be,D.VERY_HIGH,"deeply respects those that work hard at their labors"),Te(be,D.HIGH,"values hard work"),Te(be,D.NEUTRAL,"doesn't really see the point of working hard"),Te(be,D.LOW,"sees working hard as a foolish waste of time"),Te(be,D.VERY_LOW,"thinks working hard is an abject idiocy"),Te(be,D.LOWEST,"finds the proposition that one should work hard in life utterly abhorrent"),be);var ye;function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const He=(ge(ye={},D.HIGHEST,"would have the world operate in complete harmony without the least bit of strife or disorder"),ge(ye,D.VERY_HIGH,"strongly believes that a peaceful and ordered society without dissent is best"),ge(ye,D.HIGH,"values a harmonious existence"),ge(ye,D.NEUTRAL,"sees equal parts of harmony and discord as part of life"),ge(ye,D.LOW,"doesn't respect a society that has settled into harmony without debate and strife"),ge(ye,D.VERY_LOW,"can't fathom why anyone would want to live in an orderly and harmonious society"),ge(ye,D.LOWEST,"believes deeply that chaos and disorder are the truest expressions of life and would disrupt harmony wherever it is found"),ye);var Ue;function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const we=(Pe(Ue={},D.HIGHEST,"believes that freedom and independence are completely non-negotiable and would fight to defend them"),Pe(Ue,D.VERY_HIGH,"treasures independence"),Pe(Ue,D.HIGH,"values independence"),Pe(Ue,D.NEUTRAL,"doesn't really value independence one way or another"),Pe(Ue,D.LOW,"finds the ideas of independence and freedom somewhat foolish"),Pe(Ue,D.VERY_LOW,"sees freedom and independence as completely worthless"),Pe(Ue,D.LOWEST,"hates freedom and would crush the independent spirit wherever it is found"),Ue);var De;function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ce=(Fe(De={},D.HIGHEST,"feels that introspection and all forms of self-examination are the keys to a good life and worthy of respect"),Fe(De,D.VERY_HIGH,"deeply values introspection"),Fe(De,D.HIGH,"sees introspection as important"),Fe(De,D.NEUTRAL,"doesn't really see the value in self-examination"),Fe(De,D.LOW,"finds introspection to be a waste of time"),Fe(De,D.VERY_LOW,"thinks that introspection is valueless and those that waste time in self-examination are deluded fools"),Fe(De,D.LOWEST,"finds the whole idea of introspection completely offensive and contrary to the ideals of a life well-lived"),De);var Ge;function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me=(Ve(Ge={},D.HIGHEST,"finds the quest for knowledge to be of the very highest value"),Ve(Ge,D.VERY_HIGH,"views the pursuit of knowledge as deeply important"),Ve(Ge,D.HIGH,"values knowledge"),Ve(Ge,D.NEUTRAL,"doesn't see the attainment of knowledge as important"),Ve(Ge,D.LOW,"finds the pursuit of knowledge to be a waste of effort"),Ve(Ge,D.VERY_LOW,"thinks the quest for knowledge is a delusional fantasy"),Ve(Ge,D.LOWEST,"sees the attainment and preservation of knowledge as an offensive enterprise engaged in by arrogant fools"),Ge);var ke;function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const We=(je(ke={},D.HIGHEST,"is an absolute believer in the rule of law"),je(ke,D.VERY_HIGH,"has a great deal of respect for the law"),je(ke,D.HIGH,"respects the law"),je(ke,D.NEUTRAL,"doesn't feel strongly about the law"),je(ke,D.LOW,"does not respect the law"),je(ke,D.VERY_LOW,"disdains the law"),je(ke,D.LOWEST,"finds the idea of laws abhorrent"),ke);var Ye;function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xe=(Je(Ye={},D.HIGHEST,"believes that it would be a fine thing if all time were leisure time"),Je(Ye,D.VERY_HIGH,"treasures leisure time and thinks it is very important in life"),Je(Ye,D.HIGH,"values leisure time"),Je(Ye,D.NEUTRAL,"doesn't think one way or the other about leisure time"),Je(Ye,D.LOW,"finds leisure time wasteful"),Je(Ye,D.VERY_LOW,"is offended by leisure time and leisurely living"),Je(Ye,D.LOWEST,"believes that those that take leisure time are evil and finds the whole idea disgusting"),Ye);var Be;function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ke=(Xe(Be={},D.HIGHEST,"has the highest regard for loyalty"),Xe(Be,D.VERY_HIGH,"greatly prizes loyalty"),Xe(Be,D.HIGH,"values loyalty"),Xe(Be,D.NEUTRAL,"doesn't particularly value loyalty"),Xe(Be,D.LOW,"views loyalty unfavorably"),Xe(Be,D.VERY_LOW,"disdains loyalty"),Xe(Be,D.LOWEST,"is disgusted by the idea of loyalty"),Be);var qe;function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ze=(Qe(qe={},D.HIGHEST,"believes that martial prowess defines the good character of an individual"),Qe(qe,D.VERY_HIGH,"deeply respects skill at arms"),Qe(qe,D.HIGH,"values martial prowess"),Qe(qe,D.NEUTRAL,"does not really value skills related to fighting"),Qe(qe,D.LOW,"finds those that develop skill with weapons and fighting distasteful"),Qe(qe,D.VERY_LOW,"thinks that the pursuit of the skills of warfare and fighting is a low pursuit indeed"),Qe(qe,D.LOWEST,"abhors those that pursue the mastery of weapons and skill with fighting"),qe);var $e;function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const et=(Ze($e={},D.HIGHEST,"believes that little is better in life than a good party"),Ze($e,D.VERY_HIGH,"truly values merrymaking and parties"),Ze($e,D.HIGH,"finds merrymaking and partying worthwhile activities"),Ze($e,D.NEUTRAL,"doesn't really value merrymaking"),Ze($e,D.LOW,"sees merrymaking as a waste"),Ze($e,D.VERY_LOW,"is disgusted by merrymakers"),Ze($e,D.LOWEST,"is appalled by merrymaking, parties and other such worthless activities"),$e);var tt;function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rt=(nt(tt={},D.HIGHEST,"holds nature to be of greater value than most aspects of civilization"),nt(tt,D.VERY_HIGH,"has a deep respect for animals, plants and the natural world"),nt(tt,D.HIGH,"values nature"),nt(tt,D.NEUTRAL,"doesn't care about nature one way or another"),nt(tt,D.LOW,"finds nature somewhat disturbing"),nt(tt,D.VERY_LOW,"has a deep dislike of the natural world"),nt(tt,D.LOWEST,"would just as soon have nature and the great outdoors burned to ashes and converted into a great mining pit"),tt);var it;function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ot=(at(it={},D.HIGHEST,"believes the idea of war is utterly repellent and would have peace at all costs"),at(it,D.VERY_HIGH,"believes that peace is always preferable to war"),at(it,D.HIGH,"values peace over war"),at(it,D.NEUTRAL,"doesn't particularly care between war and peace"),at(it,D.LOW,"sees war as a useful means to an end"),at(it,D.VERY_LOW,"believes war is preferable to peace in general"),at(it,D.LOWEST,"thinks that the world should be engaged in perpetual warfare"),it);var st;function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ut=(lt(st={},D.HIGHEST,"believes that perseverance is one of the greatest qualities somebody can have"),lt(st,D.VERY_HIGH,"greatly respects individuals that persevere through their trials and labors"),lt(st,D.HIGH,"respects perseverance"),lt(st,D.NEUTRAL,"doesn't think much about the idea of perseverance"),lt(st,D.LOW,"sees perseverance in the face of adversity as bull-headed and foolish"),lt(st,D.VERY_LOW,"thinks there is something deeply wrong with people that persevere through adversity"),lt(st,D.LOWEST,"finds the notion that one would persevere through adversity completely abhorrent"),st);var ct;function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ft=(Et(ct={},D.HIGHEST,"believes that the acquisition of power over others is the ideal goal in life and worthy of the highest respect"),Et(ct,D.VERY_HIGH,"sees power over others as something to strive for"),Et(ct,D.HIGH,"respects power"),Et(ct,D.NEUTRAL,"doesn't find power particularly praiseworthy"),Et(ct,D.LOW,"has a negative view of those who exercise power over others"),Et(ct,D.VERY_LOW,"hates those who wield power over others"),Et(ct,D.LOWEST,"finds the acquisition and use of power abhorrent and would have all masters toppled"),ct);var dt;function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const It=(ht(dt={},D.HIGHEST,"sees romance as one of the highest ideals"),ht(dt,D.VERY_HIGH,"thinks romance is very important in life"),ht(dt,D.HIGH,"values romance"),ht(dt,D.NEUTRAL,"doesn't care one way or the other about romance"),ht(dt,D.LOW,"finds romance distasteful"),ht(dt,D.VERY_LOW,"is somewhat disgusted by romance"),ht(dt,D.LOWEST,"finds even the abstract idea of romance repellent"),dt);var St;function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _t=(pt(St={},D.HIGHEST,"finds sacrifice to be one of the highest ideals"),pt(St,D.VERY_HIGH,"believes that those who sacrifice for others should be deeply respected"),pt(St,D.HIGH,"values sacrifice"),pt(St,D.NEUTRAL,"doesn't particularly respect sacrifice as a virtue"),pt(St,D.LOW,"sees sacrifice as wasteful and foolish"),pt(St,D.VERY_LOW,"finds sacrifice to be the height of folly"),pt(St,D.LOWEST,"thinks that the entire concept of sacrifice for others is truly disgusting"),St);var mt;function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nt=(Ot(mt={},D.HIGHEST,"believes that self-mastery and the denial of impulses are of the highest ideals"),Ot(mt,D.VERY_HIGH,"finds moderation and self-control to be very important"),Ot(mt,D.HIGH,"values self-control"),Ot(mt,D.NEUTRAL,"doesn't particularly value self-control"),Ot(mt,D.LOW,"finds those that deny their impulses somewhat stiff"),Ot(mt,D.VERY_LOW,"sees the denial of impulses as a vain and foolish pursuit"),Ot(mt,D.LOWEST,"has abandoned any attempt at self-control and finds the whole concept deeply offensive"),mt);var Rt;function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vt=(At(Rt={},D.HIGHEST,"believes that the mastery of a skill is one of the highest pursuits"),At(Rt,D.VERY_HIGH,"really respects those that take the time to master a skill"),At(Rt,D.HIGH,"respects the development of skill"),At(Rt,D.NEUTRAL,"doesn't care if others take the time to master skills"),At(Rt,D.LOW,"finds the pursuit of skill mastery off-putting"),At(Rt,D.VERY_LOW,"believes that the time taken to master a skill is a horrible waste"),At(Rt,D.LOWEST,"sees the whole idea of taking time to master a skill as appalling"),Rt);var bt;function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lt=(Tt(bt={},D.HIGHEST,"views any show of emotion as offensive"),Tt(bt,D.VERY_HIGH,"thinks it is of the utmost importance to present a bold face and never grouse, complain or even show emotion"),Tt(bt,D.HIGH,"believes it is important to conceal emotions and refrain from complaining"),Tt(bt,D.NEUTRAL,"doesn't see much value in being stoic"),Tt(bt,D.LOW,"sees no value in holding back complaints and concealing emotions"),Tt(bt,D.VERY_LOW,"feels that those who attempt to conceal their emotions are vain and foolish"),Tt(bt,D.LOWEST,"sees concealment of emotions as a betrayal and tries [his/her] best never to associate with such secretive fools"),bt);var yt;function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=(gt(yt={},D.HIGHEST,"holds the maintenance of tradition as one of the highest ideals"),gt(yt,D.VERY_HIGH,"is a firm believer in the value of tradition"),gt(yt,D.HIGH,"values tradition"),gt(yt,D.NEUTRAL,"doesn't have any strong feelings about tradition"),gt(yt,D.LOW,"disregards tradition"),gt(yt,D.VERY_LOW,"finds the following of tradition foolish and limiting"),gt(yt,D.LOWEST,"is disgusted by tradition and would flout any [he/she] encounters if given a chance"),yt);var Ut;function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wt=(Pt(Ut={},D.HIGHEST,"views tranquility as one of the highest ideals"),Pt(Ut,D.VERY_HIGH,"strongly values tranquility and quiet"),Pt(Ut,D.HIGH,"values tranquility and a peaceful day"),Pt(Ut,D.NEUTRAL,"doesn't have a preference between tranquility and tumult"),Pt(Ut,D.LOW,"prefers a noisy, bustling life to boring days without activity"),Pt(Ut,D.VERY_LOW,"is greatly disturbed by quiet and a peaceful existence"),Pt(Ut,D.LOWEST,"is disgusted by tranquility and would that the world would constantly churn with noise and activity"),Ut);var Dt;function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ct=(Ft(Dt={},D.HIGHEST,"believes the truth is inviolable regardless of the cost"),Ft(Dt,D.VERY_HIGH,"believes that honesty is a high ideal"),Ft(Dt,D.HIGH,"values honesty"),Ft(Dt,D.NEUTRAL,"does not particularly value the truth"),Ft(Dt,D.LOW,"finds blind honesty foolish"),Ft(Dt,D.VERY_LOW,"sees lying as an important means to an end"),Ft(Dt,D.LOWEST,"is repelled by the idea of honesty and lies without compunction"),Dt);function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Jt=function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Wt(this,n);var t=e.ethics,r=void 0===t?{}:t,i=e.beliefs,a=void 0===i?{}:i,o=e.seed,s=void 0===o?(new Date).getTime:o;this._rand=E()(s),this._language=(0,f.makeRandomLanguage)("culture-".concat(s)),this._name=this._language.makeName(),this._ethics=M(r,this._rand),this._beliefs=B(a,this._rand)}var r,c;return r=n,c=[{key:"name",get:function(){return this._name}},{key:"ethics",get:function(){return kt({},this._ethics)}},{key:"beliefs",get:function(){return kt({},this._beliefs)}},{key:"getEthicsDescription",value:function(){var e=this;return Object.keys(this._ethics).map((function(t){return"".concat(C(t)," ").concat(e.getEthicDescription(t))}))}},{key:"getEthicDescription",value:function(e){var t,n;if(null!=this._ethics[e])return t=this._ethics[e],null===(n=d[t])||void 0===n?void 0:n.description}},{key:"getBeliefsDescription",value:function(){var e=this;return Object.keys(this._beliefs).map((function(t){return e.getBeliefDescription(t)}))}},{key:"getBeliefDescription",value:function(n){if(null!=this._beliefs[n])return e[function(e,n){return void 0===n&&(n={}),function(e,n){return void 0===n&&(n={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?a:n,l=t.stripRegexp,u=void 0===l?o:l,c=t.transform,E=void 0===c?i:c,f=t.delimiter,d=void 0===f?" ":f,h=s(s(e,r,"$1\0$2"),u,"\0"),I=0,S=h.length;"\0"===h.charAt(I);)I++;for(;"\0"===h.charAt(S-1);)S--;return h.slice(I,S).split("\0").map(E).join(d)}(e,t({delimiter:"",transform:l},n))}(e,t({transform:u},n))}("".concat(n,"Values"))][this._beliefs[n]]}},{key:"branch",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,r=Object.keys(h).length,i=Object.keys(D).length;return new n({ethics:Object.keys(this._ethics).reduce((function(n,i){return n[i]=e._rand.intBetween(Math.max(0,e._ethics[i]-t),Math.min(r,e._ethics[i]+t)),n}),{}),beliefs:Object.keys(this._beliefs).reduce((function(n,r){return n[r]=e._rand.intBetween(Math.max(0,e._beliefs[r]-t),Math.min(i,e._beliefs[r]+t)),n}),{})})}},{key:"getOpinion",value:function(e){var t=this,n=e.ethics;return Object.keys(this._ethics).reduce((function(e,r){return e+w[t._ethics[r]][n[r]]}),0)}},{key:"toString",value:function(){var e=this.getEthicsDescription(),t=this.getBeliefsDescription(),n=Gt(e.splice(-1),1)[0],r=Gt(t.splice(-1),1)[0];return["someone from the ".concat(this._name," culture has the following beliefs:"),t.join(", "),"and",r+";","and the following ethics:",e.join(", "),"and",n].join(" ")}}],c&&Yt(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),n}()})(),r})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CultureGenerator=t():e.CultureGenerator=t()}(global,(()=>(()=>{var e={530:(e,t)=>{function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(i,a){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return null==e?a:e.call(this,i,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},362:e=>{var t;global,t=()=>(()=>{var e={102:e=>{e.exports=[{name:"Ácutes",orth:{}},{name:"Ümlauts",orth:{A:"ä",E:"ë",I:"ï",O:"ö",U:"ü"}},{name:"Welsh",orth:{A:"â",E:"ê",I:"y",O:"ô",U:"w"}},{name:"Diphthongs",orth:{A:"au",E:"ei",I:"ie",O:"ou",U:"oo"}},{name:"Doubles",orth:{A:"aa",E:"ee",I:"ii",O:"oo",U:"uu"}}]},530:(e,t)=>{function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(i,a){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return null==e?a:e.call(this,i,a)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},906:(e,t,n)=>{"use strict";var r=n(530),i=function(){var e=4022871197;return function(t){if(t){t=t.toString();for(var n=0;n<t.length;n++){var r=.02519603282416938*(e+=t.charCodeAt(n));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)}e=4022871197}},a=function(e){return function(){var t,n,a=48,o=1,s=a,l=new Array(a),u=0,c=new i;for(t=0;t<a;t++)l[t]=c(Math.random());var E=function(){++s>=a&&(s=0);var e=1768863*l[s]+2.3283064365386963e-10*o;return l[s]=e-(o=0|e)},f=function(e){return Math.floor(e*(E()+11102230246251565e-32*(2097152*E()|0)))};f.string=function(e){var t,n="";for(t=0;t<e;t++)n+=String.fromCharCode(33+f(94));return n};var d=function(){var e=Array.prototype.slice.call(arguments);for(t=0;t<e.length;t++)for(n=0;n<a;n++)l[n]-=c(e[t]),l[n]<0&&(l[n]+=1)};return f.cleanString=function(e){return(e=(e=e.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[\x00-\x1F]/gi,"")).replace(/\n /,"\n")},f.hashString=function(e){for(e=f.cleanString(e),c(e),t=0;t<e.length;t++)for(u=e.charCodeAt(t),n=0;n<a;n++)l[n]-=c(u),l[n]<0&&(l[n]+=1)},f.seed=function(e){null==e&&(e=Math.random()),"string"!=typeof e&&(e=r(e,(function(e,t){return"function"==typeof t?t.toString():t}))),f.initState(),f.hashString(e)},f.addEntropy=function(){var e=[];for(t=0;t<arguments.length;t++)e.push(arguments[t]);d(u+++(new Date).getTime()+e.join("")+Math.random())},f.initState=function(){for(c(),t=0;t<a;t++)l[t]=c(" ");o=1,s=a},f.done=function(){c=null},void 0!==e&&f.seed(e),f.range=function(e){return f(e)},f.random=function(){return f(Number.MAX_VALUE-1)/Number.MAX_VALUE},f.floatBetween=function(e,t){return f.random()*(t-e)+e},f.intBetween=function(e,t){return Math.floor(f.random()*(t-e+1))+e},f}()};a.create=function(e){return new a(e)},e.exports=a}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{makeBasicLanguage:()=>S,makeOrthoLanguage:()=>p,makeRandomLanguage:()=>_});var e=n(906),t=n.n(e);const i=[{name:"Just s",S:"s"},{name:"s ʃ",S:"sʃ"},{name:"s ʃ f",S:"sʃf"}],a=[{name:"r l",L:"rl"},{name:"Just r",L:"r"},{name:"Just l",L:"l"},{name:"w j",L:"wj"},{name:"r l w j",L:"rlwj"}],o=[{name:"m n",F:"mn"},{name:"s k",F:"sk"},{name:"m n ŋ",F:"mnŋ"},{name:"s ʃ z ʒ",F:"sʃzʒ"}],s=[{name:"Standard 5-vowel",V:"aeiou"},{name:"3-vowel a i u",V:"aiu"},{name:"Extra A E I",V:"aeiouAEI"},{name:"Extra U",V:"aeiouU"},{name:"5-vowel a i u A I",V:"aiuAI"},{name:"3-vowel e o u",V:"eou"},{name:"Extra A O U",V:"aeiouAOU"}],l=[{name:"Minimal",C:"ptkmnls"},{name:"English-ish",C:"ptkbdgmnlrsʃzʒʧ"},{name:"Pirahã (very simple)",C:"ptkmnh"},{name:"Hawaiian-ish",C:"hklmnpwʔ"},{name:"Greenlandic-ish",C:"ptkqvsgrmnŋlj"},{name:"Arabic-ish",C:"tksʃdbqɣxmnlrwj"},{name:"Arabic-lite",C:"tkdgmnsʃ"},{name:"English-lite",C:"ptkbdgmnszʒʧhjw"}],u=[{name:"None",res:[]},{name:"Double sounds",res:[/(.)\1/]},{name:"Doubles and hard clusters",res:[/[sʃf][sʃ]/,/(.)\1/,/[rl][rl]/]}],c=[{name:"Default",orth:{}},{name:"Slavic",orth:{ʃ:"š",ʒ:"ž",ʧ:"č",ʤ:"ǧ",j:"j"}},{name:"German",orth:{ʃ:"sch",ʒ:"zh",ʧ:"tsch",ʤ:"dz",j:"j",x:"ch"}},{name:"French",orth:{ʃ:"ch",ʒ:"j",ʧ:"tch",ʤ:"dj",x:"kh"}},{name:"Chinese (pinyin)",orth:{ʃ:"x",ʧ:"q",ʤ:"j"}}];var E=n(102),f=n.n(E);const d=["CVC","CVV?C","CVVC?","CVC?","CV","VC","CVF","C?VC","CVF?","CL?VC","CL?VF","S?CVC","S?CVF","S?CVC?","C?VF","C?VC?","C?VF?","C?L?VC","VC","CVL?C?","C?VL?C","C?VLC?"],h={ʃ:"sh",ʒ:"zh",ʧ:"ch",ʤ:"j",ŋ:"ng",j:"y",x:"kh",ɣ:"gh",ʔ:"‘",A:"á",E:"é",I:"í",O:"ó",U:"ú"};function I(e,n){var r=t().create(e);function E(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);for(n=e.length-1;n>0;n--){var r=t[n],i=S(n);t[n]=t[i],t[i]=r}return t}function I(e,t){return t=t||1,e[Math.floor(Math.pow(r.random(),t)*e.length)]}function S(e,t){return null==t&&(t=e,e=0),Math.floor(r.random()*(t-e))+e}function p(e){return e[0].toUpperCase()+e.slice(1)}function _(e,t){if(e.noortho)return t;for(var n="",r=0;r<t.length;r++){var i=t[r];n+=e.cortho[i]||e.vortho[i]||h[i]||i}return n}function m(e){for(;;){for(var t="",n=0;n<e.structure.length;n++){var i=e.structure[n];"?"==e.structure[n+1]&&(n++,r.random()<.5)||(t+=I(e.phonemes[i],e.exponent))}var a=!1;for(n=0;n<e.restricts.length;n++)if(e.restricts[n].test(t)){a=!0;break}if(!a)return _(e,t)}}function O(e,t){if(e.nomorph)return m(e);t=t||"";var n=e.morphemes[t]||[],r=10;for(t&&(r=1);;){var i=S(n.length+r);if(n[i])return n[i];var a=m(e),o=!1;for(var s in e.morphemes)if(e.morphemes[s].includes(a)){o=!0;break}if(!o)return n.push(a),e.morphemes[t]=n,a}}function N(e,t){var n=S(e.minsyll,e.maxsyll+1),r="",i=[];i[S(n)]=t;for(var a=0;a<n;a++)r+=O(e,i[a]);return r}function R(e,t){t=t||"";var n=e.words[t]||[],r=3;for(t&&(r=2);;){var i=n[S(n.length+r)];if(i)return i;i=N(e,t);var a=!1;for(var o in e.words)if(e.words[o].includes(i)){a=!0;break}if(!a)return n.push(i),e.words[t]=n,i}}var A,v="random"===n?((A={phonemes:{C:"ptkmnls",V:"aeiou",S:"s",F:"mn",L:"rl"},structure:"CVC",exponent:2,restricts:[],cortho:{},vortho:{},noortho:!1,nomorph:!1,nowordpool:!1,minsyll:1,maxsyll:1,morphemes:{},words:{},names:[],joiner:" ",maxchar:12,minchar:5}).phonemes.C=E(I(l,2).C),A.phonemes.V=E(I(s,2).V),A.phonemes.L=E(I(a,2).L),A.phonemes.S=E(I(i,2).S),A.phonemes.F=E(I(o,2).F),A.structure=I(d),A.restricts=u[2].res,A.cortho=I(c,2).orth,A.vortho=I(f(),2).orth,A.minsyll=S(1,3),A.structure.length<3&&A.minsyll++,A.maxsyll=S(A.minsyll+1,7),A.joiner=I(" -"),A):"ortho"===n?{phonemes:{C:"ptkmnls",V:"aeiou",S:"s",F:"mn",L:"rl"},structure:"CVC",exponent:2,restricts:[],cortho:{},vortho:{},noortho:!1,nomorph:!0,nowordpool:!0,minsyll:1,maxsyll:1,morphemes:{},words:{},names:[],joiner:" ",maxchar:12,minchar:5}:{phonemes:{C:"ptkmnls",V:"aeiou",S:"s",F:"mn",L:"rl"},structure:"CVC",exponent:2,restricts:[],cortho:{},vortho:{},noortho:!0,nomorph:!0,nowordpool:!0,minsyll:1,maxsyll:1,morphemes:{},words:{},names:[],joiner:" ",maxchar:12,minchar:5};return{makeWord:function(e){return N(v,e)},getWord:function(e){return R(v,e)},makeName:function(e){return function(e,t){for(t=t||"",e.genitive=e.genitive||O(e,"of"),e.definite=e.definite||O(e,"the");;){var n=null;if(r.random()<.5)n=p(R(e,t));else{var i=p(R(e,r.random()<.6?t:"")),a=p(R(e,r.random()<.6?t:""));if(i==a)continue;n=r.random()>.5?[i,a].join(e.joiner):[i,e.genitive,a].join(e.joiner)}if(r.random()<.1&&(n=[e.definite,n].join(e.joiner)),!(n.length<e.minchar||n.length>e.maxchar)){for(var o=!1,s=0;s<e.names.length;s++){var l=e.names[s];if(-1!=n.indexOf(l)||-1!=l.indexOf(n)){o=!0;break}}if(!o)return e.names.push(n),n}}}(v,e)}}}function S(e){return I(e,"basic")}function p(e){return I(e,"ortho")}function _(e){return I(e,"random")}})(),r})(),e.exports=t()},906:(e,t,n)=>{"use strict";var r=n(530),i=function(){var e=4022871197;return function(t){if(t){t=t.toString();for(var n=0;n<t.length;n++){var r=.02519603282416938*(e+=t.charCodeAt(n));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)}e=4022871197}},a=function(e){return function(){var t,n,a=48,o=1,s=a,l=new Array(a),u=0,c=new i;for(t=0;t<a;t++)l[t]=c(Math.random());var E=function(){++s>=a&&(s=0);var e=1768863*l[s]+2.3283064365386963e-10*o;return l[s]=e-(o=0|e)},f=function(e){return Math.floor(e*(E()+11102230246251565e-32*(2097152*E()|0)))};f.string=function(e){var t,n="";for(t=0;t<e;t++)n+=String.fromCharCode(33+f(94));return n};var d=function(){var e=Array.prototype.slice.call(arguments);for(t=0;t<e.length;t++)for(n=0;n<a;n++)l[n]-=c(e[t]),l[n]<0&&(l[n]+=1)};return f.cleanString=function(e){return(e=(e=e.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[\x00-\x1F]/gi,"")).replace(/\n /,"\n")},f.hashString=function(e){for(e=f.cleanString(e),c(e),t=0;t<e.length;t++)for(u=e.charCodeAt(t),n=0;n<a;n++)l[n]-=c(u),l[n]<0&&(l[n]+=1)},f.seed=function(e){null==e&&(e=Math.random()),"string"!=typeof e&&(e=r(e,(function(e,t){return"function"==typeof t?t.toString():t}))),f.initState(),f.hashString(e)},f.addEntropy=function(){var e=[];for(t=0;t<arguments.length;t++)e.push(arguments[t]);d(u+++(new Date).getTime()+e.join("")+Math.random())},f.initState=function(){for(c(),t=0;t<a;t++)l[t]=c(" ");o=1,s=a},f.done=function(){c=null},void 0!==e&&f.seed(e),f.range=function(e){return f(e)},f.random=function(){return f(Number.MAX_VALUE-1)/Number.MAX_VALUE},f.floatBetween=function(e,t){return f.random()*(t-e)+e},f.intBetween=function(e,t){return Math.floor(f.random()*(t-e+1))+e},f}()};a.create=function(e){return new a(e)},e.exports=a}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Culture:()=>Jt,beliefValues:()=>D,beliefs:()=>k,ethicValues:()=>h,ethics:()=>G,getEthicDescription:()=>C});var e={};n.r(e),n.d(e,{artworkValues:()=>K,commerceValues:()=>z,competitionValues:()=>ee,cooperationValues:()=>re,craftsmanshipValues:()=>oe,cunningValues:()=>ue,decorumValues:()=>fe,eloquenceValues:()=>Ie,fairnessValues:()=>_e,familyValues:()=>Ne,friendshipValues:()=>ve,hardWorkValues:()=>Le,harmonyValues:()=>He,independenceValues:()=>we,introspectionValues:()=>Ce,knowledgeValues:()=>Me,lawValues:()=>We,leisureTimeValues:()=>xe,loyaltyValues:()=>Ke,martialProwessValues:()=>ze,merrimentValues:()=>et,natureValues:()=>rt,peaceValues:()=>ot,perseveranceValues:()=>ut,powerValues:()=>ft,romanceValues:()=>It,sacrificeValues:()=>_t,selfControlValues:()=>Nt,skillValues:()=>vt,stoicismValues:()=>Lt,traditionValues:()=>Ht,tranquilityValues:()=>wt,truthValues:()=>Ct});var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};function i(e){return e.toLowerCase()}Object.create,Object.create;var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function s(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function l(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function u(e,t){return 0===t?e.toLowerCase():l(e,t)}var c=n(906),E=n.n(c),f=n(362),d=[{id:"ACCEPTABLE",description:"is acceptable"},{id:"PERSONAL_MATTER",description:"is a personal matter"},{id:"JUSTIFIED_IF_NO_REPERCUSSIONS",description:"is justified if there are no repurcussions"},{id:"JUSTIFIED_IF_GOOD_REASON",description:"is justified if backed by a good reason"},{id:"JUSTIFIED_IF_EXTREME_REASON",description:"is justified if backed by an extreme reason"},{id:"JUSTIFIED_IF_SELF_DEFENSE",description:"is justified in self defense"},{id:"ONLY_IF_SANCTIONED",description:"is justified only when sanctioned"},{id:"MISGUIDED",description:"is misguided"},{id:"SHUN",description:"is shun"},{id:"APPALLING",description:"is appalling"},{id:"PUNISH_REPRIMAND",description:"is reprimanded"},{id:"PUNISH_SERIOUS",description:"is a serious crime"},{id:"PUNISH_EXILE",description:"is a crime punishable by exile"},{id:"PUNISH_CAPITAL",description:"is a crime punishable by capital punishment"},{id:"UNTHINKABLE",description:"is unthinkable"},{id:"REQUIRED",description:"is required"}];const h=d.reduce((function(e,t,n){return e[t.id]=n,e}),{});var I,S,p,_,m,O,N,R,A,v,b,T,L,y,g,H,U;function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=(P(U={},h.ACCEPTABLE,(P(I={},h.ACCEPTABLE,1),P(I,h.PERSONAL_MATTER,1),P(I,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(I,h.JUSTIFIED_IF_GOOD_REASON,0),P(I,h.JUSTIFIED_IF_EXTREME_REASON,0),P(I,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(I,h.ONLY_IF_SANCTIONED,0),P(I,h.MISGUIDED,-1),P(I,h.SHUN,-2),P(I,h.APPALLING,-2),P(I,h.PUNISH_REPRIMAND,-2),P(I,h.PUNISH_SERIOUS,-3),P(I,h.PUNISH_EXILE,-5),P(I,h.PUNISH_CAPITAL,-5),P(I,h.UNTHINKABLE,-2),P(I,h.REQUIRED,1),I)),P(U,h.PERSONAL_MATTER,(P(S={},h.ACCEPTABLE,1),P(S,h.PERSONAL_MATTER,1),P(S,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(S,h.JUSTIFIED_IF_GOOD_REASON,0),P(S,h.JUSTIFIED_IF_EXTREME_REASON,0),P(S,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(S,h.ONLY_IF_SANCTIONED,0),P(S,h.MISGUIDED,-1),P(S,h.SHUN,-2),P(S,h.APPALLING,-2),P(S,h.PUNISH_REPRIMAND,-2),P(S,h.PUNISH_SERIOUS,-3),P(S,h.PUNISH_EXILE,-5),P(S,h.PUNISH_CAPITAL,-5),P(S,h.UNTHINKABLE,-2),P(S,h.REQUIRED,1),S)),P(U,h.JUSTIFIED_IF_NO_REPERCUSSIONS,(P(p={},h.ACCEPTABLE,1),P(p,h.PERSONAL_MATTER,1),P(p,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(p,h.JUSTIFIED_IF_GOOD_REASON,0),P(p,h.JUSTIFIED_IF_EXTREME_REASON,0),P(p,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(p,h.ONLY_IF_SANCTIONED,0),P(p,h.MISGUIDED,-1),P(p,h.SHUN,-2),P(p,h.APPALLING,-2),P(p,h.PUNISH_REPRIMAND,-2),P(p,h.PUNISH_SERIOUS,-3),P(p,h.PUNISH_EXILE,-5),P(p,h.PUNISH_CAPITAL,-5),P(p,h.UNTHINKABLE,-2),P(p,h.REQUIRED,1),p)),P(U,h.JUSTIFIED_IF_GOOD_REASON,(P(_={},h.ACCEPTABLE,0),P(_,h.PERSONAL_MATTER,0),P(_,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(_,h.JUSTIFIED_IF_GOOD_REASON,2),P(_,h.JUSTIFIED_IF_EXTREME_REASON,1),P(_,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(_,h.ONLY_IF_SANCTIONED,0),P(_,h.MISGUIDED,0),P(_,h.SHUN,-1),P(_,h.APPALLING,-1),P(_,h.PUNISH_REPRIMAND,-1),P(_,h.PUNISH_SERIOUS,-1),P(_,h.PUNISH_EXILE,-1),P(_,h.PUNISH_CAPITAL,-1),P(_,h.UNTHINKABLE,-1),P(_,h.REQUIRED,0),_)),P(U,h.JUSTIFIED_IF_EXTREME_REASON,(P(m={},h.ACCEPTABLE,-1),P(m,h.PERSONAL_MATTER,-1),P(m,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(m,h.JUSTIFIED_IF_GOOD_REASON,1),P(m,h.JUSTIFIED_IF_EXTREME_REASON,2),P(m,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(m,h.ONLY_IF_SANCTIONED,0),P(m,h.MISGUIDED,0),P(m,h.SHUN,-1),P(m,h.APPALLING,-1),P(m,h.PUNISH_REPRIMAND,-1),P(m,h.PUNISH_SERIOUS,-1),P(m,h.PUNISH_EXILE,-1),P(m,h.PUNISH_CAPITAL,-1),P(m,h.UNTHINKABLE,-1),P(m,h.REQUIRED,-1),m)),P(U,h.JUSTIFIED_IF_SELF_DEFENSE,(P(O={},h.ACCEPTABLE,-2),P(O,h.PERSONAL_MATTER,-2),P(O,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-1),P(O,h.JUSTIFIED_IF_GOOD_REASON,0),P(O,h.JUSTIFIED_IF_EXTREME_REASON,1),P(O,h.JUSTIFIED_IF_SELF_DEFENSE,2),P(O,h.ONLY_IF_SANCTIONED,0),P(O,h.MISGUIDED,0),P(O,h.SHUN,0),P(O,h.APPALLING,-1),P(O,h.PUNISH_REPRIMAND,-1),P(O,h.PUNISH_SERIOUS,-1),P(O,h.PUNISH_EXILE,-1),P(O,h.PUNISH_CAPITAL,-1),P(O,h.UNTHINKABLE,-1),P(O,h.REQUIRED,-2),O)),P(U,h.ONLY_IF_SANCTIONED,(P(N={},h.ACCEPTABLE,-2),P(N,h.PERSONAL_MATTER,-2),P(N,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-1),P(N,h.JUSTIFIED_IF_GOOD_REASON,0),P(N,h.JUSTIFIED_IF_EXTREME_REASON,1),P(N,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(N,h.ONLY_IF_SANCTIONED,2),P(N,h.MISGUIDED,0),P(N,h.SHUN,0),P(N,h.APPALLING,-1),P(N,h.PUNISH_REPRIMAND,-1),P(N,h.PUNISH_SERIOUS,-1),P(N,h.PUNISH_EXILE,-1),P(N,h.PUNISH_CAPITAL,-1),P(N,h.UNTHINKABLE,-1),P(N,h.REQUIRED,-2),N)),P(U,h.MISGUIDED,(P(R={},h.ACCEPTABLE,-1),P(R,h.PERSONAL_MATTER,-1),P(R,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(R,h.JUSTIFIED_IF_GOOD_REASON,0),P(R,h.JUSTIFIED_IF_EXTREME_REASON,0),P(R,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(R,h.ONLY_IF_SANCTIONED,0),P(R,h.MISGUIDED,2),P(R,h.SHUN,1),P(R,h.APPALLING,1),P(R,h.PUNISH_REPRIMAND,1),P(R,h.PUNISH_SERIOUS,0),P(R,h.PUNISH_EXILE,0),P(R,h.PUNISH_CAPITAL,-1),P(R,h.UNTHINKABLE,1),P(R,h.REQUIRED,-1),R)),P(U,h.SHUN,(P(A={},h.ACCEPTABLE,-1),P(A,h.PERSONAL_MATTER,-1),P(A,h.JUSTIFIED_IF_NO_REPERCUSSIONS,0),P(A,h.JUSTIFIED_IF_GOOD_REASON,0),P(A,h.JUSTIFIED_IF_EXTREME_REASON,0),P(A,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(A,h.ONLY_IF_SANCTIONED,0),P(A,h.MISGUIDED,1),P(A,h.SHUN,2),P(A,h.APPALLING,1),P(A,h.PUNISH_REPRIMAND,1),P(A,h.PUNISH_SERIOUS,0),P(A,h.PUNISH_EXILE,0),P(A,h.PUNISH_CAPITAL,-1),P(A,h.UNTHINKABLE,1),P(A,h.REQUIRED,-1),A)),P(U,h.APPALLING,(P(v={},h.ACCEPTABLE,-5),P(v,h.PERSONAL_MATTER,-5),P(v,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-3),P(v,h.JUSTIFIED_IF_GOOD_REASON,-2),P(v,h.JUSTIFIED_IF_EXTREME_REASON,-1),P(v,h.JUSTIFIED_IF_SELF_DEFENSE,-1),P(v,h.ONLY_IF_SANCTIONED,-2),P(v,h.MISGUIDED,1),P(v,h.SHUN,1),P(v,h.APPALLING,2),P(v,h.PUNISH_REPRIMAND,1),P(v,h.PUNISH_SERIOUS,1),P(v,h.PUNISH_EXILE,1),P(v,h.PUNISH_CAPITAL,0),P(v,h.UNTHINKABLE,1),P(v,h.REQUIRED,-5),v)),P(U,h.PUNISH_REPRIMAND,(P(b={},h.ACCEPTABLE,-5),P(b,h.PERSONAL_MATTER,-5),P(b,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-3),P(b,h.JUSTIFIED_IF_GOOD_REASON,-2),P(b,h.JUSTIFIED_IF_EXTREME_REASON,-1),P(b,h.JUSTIFIED_IF_SELF_DEFENSE,-1),P(b,h.ONLY_IF_SANCTIONED,-2),P(b,h.MISGUIDED,1),P(b,h.SHUN,1),P(b,h.APPALLING,1),P(b,h.PUNISH_REPRIMAND,2),P(b,h.PUNISH_SERIOUS,1),P(b,h.PUNISH_EXILE,1),P(b,h.PUNISH_CAPITAL,0),P(b,h.UNTHINKABLE,1),P(b,h.REQUIRED,-5),b)),P(U,h.PUNISH_SERIOUS,(P(T={},h.ACCEPTABLE,-10),P(T,h.PERSONAL_MATTER,-10),P(T,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-7),P(T,h.JUSTIFIED_IF_GOOD_REASON,-3),P(T,h.JUSTIFIED_IF_EXTREME_REASON,-2),P(T,h.JUSTIFIED_IF_SELF_DEFENSE,-2),P(T,h.ONLY_IF_SANCTIONED,-3),P(T,h.MISGUIDED,0),P(T,h.SHUN,1),P(T,h.APPALLING,1),P(T,h.PUNISH_REPRIMAND,0),P(T,h.PUNISH_SERIOUS,2),P(T,h.PUNISH_EXILE,1),P(T,h.PUNISH_CAPITAL,1),P(T,h.UNTHINKABLE,1),P(T,h.REQUIRED,-10),T)),P(U,h.PUNISH_EXILE,(P(L={},h.ACCEPTABLE,-10),P(L,h.PERSONAL_MATTER,-10),P(L,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-7),P(L,h.JUSTIFIED_IF_GOOD_REASON,-3),P(L,h.JUSTIFIED_IF_EXTREME_REASON,-2),P(L,h.JUSTIFIED_IF_SELF_DEFENSE,-2),P(L,h.ONLY_IF_SANCTIONED,-3),P(L,h.MISGUIDED,0),P(L,h.SHUN,1),P(L,h.APPALLING,1),P(L,h.PUNISH_REPRIMAND,0),P(L,h.PUNISH_SERIOUS,1),P(L,h.PUNISH_EXILE,2),P(L,h.PUNISH_CAPITAL,1),P(L,h.UNTHINKABLE,1),P(L,h.REQUIRED,-10),L)),P(U,h.PUNISH_CAPITAL,(P(y={},h.ACCEPTABLE,-15),P(y,h.PERSONAL_MATTER,-15),P(y,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-10),P(y,h.JUSTIFIED_IF_GOOD_REASON,-5),P(y,h.JUSTIFIED_IF_EXTREME_REASON,-3),P(y,h.JUSTIFIED_IF_SELF_DEFENSE,-3),P(y,h.ONLY_IF_SANCTIONED,-5),P(y,h.MISGUIDED,0),P(y,h.SHUN,0),P(y,h.APPALLING,1),P(y,h.PUNISH_REPRIMAND,0),P(y,h.PUNISH_SERIOUS,1),P(y,h.PUNISH_EXILE,1),P(y,h.PUNISH_CAPITAL,2),P(y,h.UNTHINKABLE,1),P(y,h.REQUIRED,-15),y)),P(U,h.UNTHINKABLE,(P(g={},h.ACCEPTABLE,-15),P(g,h.PERSONAL_MATTER,-15),P(g,h.JUSTIFIED_IF_NO_REPERCUSSIONS,-10),P(g,h.JUSTIFIED_IF_GOOD_REASON,-5),P(g,h.JUSTIFIED_IF_EXTREME_REASON,-3),P(g,h.JUSTIFIED_IF_SELF_DEFENSE,-3),P(g,h.ONLY_IF_SANCTIONED,-5),P(g,h.MISGUIDED,0),P(g,h.SHUN,1),P(g,h.APPALLING,1),P(g,h.PUNISH_REPRIMAND,0),P(g,h.PUNISH_SERIOUS,1),P(g,h.PUNISH_EXILE,1),P(g,h.PUNISH_CAPITAL,1),P(g,h.UNTHINKABLE,2),P(g,h.REQUIRED,-15),g)),P(U,h.REQUIRED,(P(H={},h.ACCEPTABLE,1),P(H,h.PERSONAL_MATTER,1),P(H,h.JUSTIFIED_IF_NO_REPERCUSSIONS,1),P(H,h.JUSTIFIED_IF_GOOD_REASON,0),P(H,h.JUSTIFIED_IF_EXTREME_REASON,0),P(H,h.JUSTIFIED_IF_SELF_DEFENSE,0),P(H,h.ONLY_IF_SANCTIONED,0),P(H,h.MISGUIDED,-1),P(H,h.SHUN,-2),P(H,h.APPALLING,-2),P(H,h.PUNISH_REPRIMAND,-2),P(H,h.PUNISH_SERIOUS,-3),P(H,h.PUNISH_EXILE,-5),P(H,h.PUNISH_CAPITAL,-5),P(H,h.UNTHINKABLE,-2),P(H,h.REQUIRED,1),H)),U);const D=["LOWEST","VERY_LOW","LOW","NEUTRAL","HIGH","VERY_HIGH","HIGHEST"].reduce((function(e,t,n){return e[t]=n,e}),{});var F={ASSAULT:{description:"assault"},EAT_SAPIENT_KILL:{description:"eating sapients"},EAT_SAPIENT_OTHER:{description:"eating sapients that have been killed in battle"},KILL_ANIMAL:{description:"killing animals"},KILL_ENEMY:{description:"killing enemies"},KILL_ENTITY_MEMBER:{description:"killing member of the same race"},KILL_NEUTRAL:{description:"killing neutral sapient"},KILL_PLANT:{description:"killing plants"},LYING:{description:"lying"},MAKE_TROPHY_ANIMAL:{description:"making a trophy from the corpse of an animal"},MAKE_TROPHY_SAME_RACE:{description:"making a trophy from a corpse of the same race"},MAKE_TROPHY_SAPIENT:{description:"making a trophy from a corpse of another sapient race"},OATH_BREAKING:{description:"oath breaking"},SLAVERY:{description:"slavery"},THEFT:{description:"theft"},TORTURE_ANIMALS:{description:"torture of animals"},TORTURE_AS_EXAMPLE:{description:"torture as an example"},TORTURE_FOR_FUN:{description:"torture for fun"},TORTURE_FOR_INFORMATION:{description:"torture for information"},TREASON:{description:"treason"},TRESPASSING:{description:"trespassing"},VANDALISM:{description:"vandalism"}};function C(e){var t;return null===(t=F[e])||void 0===t?void 0:t.description}const G=Object.keys(F).reduce((function(e,t){return e[t]=t,e}),{});var V=Object.values(h);function M(e,t){var n=Object.keys(G).reduce((function(e,n){return e[n]=V[t(V.length)],e}),{});return Object.keys(G).forEach((function(t){var r=e[t];!1!==V.includes(r)&&(n[t]=r)})),n}const k={LAW:"LAW",LOYALTY:"LOYALTY",FAMILY:"FAMILY",FRIENDSHIP:"FRIENDSHIP",POWER:"POWER",TRUTH:"TRUTH",CUNNING:"CUNNING",ELOQUENCE:"ELOQUENCE",FAIRNESS:"FAIRNESS",DECORUM:"DECORUM",TRADITION:"TRADITION",ARTWORK:"ARTWORK",COOPERATION:"COOPERATION",INDEPENDENCE:"INDEPENDENCE",STOICISM:"STOICISM",INTROSPECTION:"INTROSPECTION",SELF_CONTROL:"SELF_CONTROL",TRANQUILITY:"TRANQUILITY",HARMONY:"HARMONY",MERRIMENT:"MERRIMENT",CRAFTSMANSHIP:"CRAFTSMANSHIP",MARTIAL_PROWESS:"MARTIAL_PROWESS",SKILL:"SKILL",HARD_WORK:"HARD_WORK",SACRIFICE:"SACRIFICE",COMPETITION:"COMPETITION",PERSEVERANCE:"PERSEVERANCE",LEISURE_TIME:"LEISURE_TIME",COMMERCE:"COMMERCE",ROMANCE:"ROMANCE",NATURE:"NATURE",KNOWLEDGE:"KNOWLEDGE"};function j(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y,J=[].concat(j(Array(78).fill().map((function(){return D.NEUTRAL}))),j(Array(8).fill().map((function(){return D.HIGH}))),j(Array(8).fill().map((function(){return D.LOW}))),j(Array(2).fill().map((function(){return D.VERY_HIGH}))),j(Array(2).fill().map((function(){return D.VERY_LOW}))),j(Array(1).fill().map((function(){return D.HIGHEST}))),j(Array(1).fill().map((function(){return D.LOWEST})))),x=Object.values(D);function B(e,t){var n=Object.keys(k).reduce((function(e,n){return e[n]=function(e){return J[e(J.length)]}(t),e}),{});return Object.keys(k).forEach((function(t){var r=e[t];!1!==x.includes(r)&&(n[t]=r)})),n}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const K=(X(Y={},D.HIGHEST,"believes that the creation and appreciation of artwork is one of the highest ideals"),X(Y,D.VERY_HIGH,"greatly respects artists and their works"),X(Y,D.HIGH,"values artwork"),X(Y,D.NEUTRAL,"doesn't care about art one way or another"),X(Y,D.LOW,"finds artwork boring"),X(Y,D.VERY_LOW,"sees the whole pursuit of art as silly"),X(Y,D.LOWEST,"finds art offensive and would have it destroyed whenever possible"),Y);var q;function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z=(Q(q={},D.HIGHEST,"sees engaging in commerce as a high ideal in life"),Q(q,D.VERY_HIGH,"really respects commerce and those that engage in trade"),Q(q,D.HIGH,"respects commerce"),Q(q,D.NEUTRAL,"doesn't particularly respect commerce"),Q(q,D.LOW,"is somewhat put off by trade and commerce"),Q(q,D.VERY_LOW,"finds those that engage in trade and commerce to be fairly disgusting"),Q(q,D.LOWEST,"holds the view that commerce is a vile obscenity"),q);var $;function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ee=(Z($={},D.HIGHEST,"holds the idea of competition among the most important values and would encourage it wherever possible"),Z($,D.VERY_HIGH,"views competition as a crucial driving force in the world"),Z($,D.HIGH,"sees competition as reasonably important"),Z($,D.NEUTRAL,"doesn't have strong views on competition"),Z($,D.LOW,"sees competition as wasteful and silly"),Z($,D.VERY_LOW,"deeply dislikes competition"),Z($,D.LOWEST,"finds the very idea of competition obscene"),$);var te;function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const re=(ne(te={},D.HIGHEST,"places cooperation as one of the highest ideals"),ne(te,D.VERY_HIGH,"sees cooperation as very important in life"),ne(te,D.HIGH,"values cooperation"),ne(te,D.NEUTRAL,"doesn't see cooperation as valuable"),ne(te,D.LOW,"dislikes cooperation"),ne(te,D.VERY_LOW,"views cooperation as a low ideal not worthy of any respect"),ne(te,D.LOWEST,"is thoroughly disgusted by cooperation"),te);var ie;function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oe=(ae(ie={},D.HIGHEST,"holds crafts[man]ship to be of the highest ideals and celebrates talented artisans and their masterworks"),ae(ie,D.VERY_HIGH,"has a great deal of respect for worthy crafts[man]ship"),ae(ie,D.HIGH,"values good crafts[man]ship"),ae(ie,D.NEUTRAL,"doesn't particularly care about crafts[man]ship"),ae(ie,D.LOW,"considers crafts[man]ship to be relatively worthless"),ae(ie,D.VERY_LOW,"sees the pursuit of good crafts[man]ship as a total waste"),ae(ie,D.LOWEST,"views crafts[man]ship with disgust and would desecrate a so-called masterwork or two if [he/she] could get away with it"),ie);var se;function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue=(le(se={},D.HIGHEST,"holds well-laid plans and shrewd deceptions in the highest regard"),le(se,D.VERY_HIGH,"greatly respects the shrewd and guileful"),le(se,D.HIGH,"values cunning"),le(se,D.NEUTRAL,"does not really value cunning and guile"),le(se,D.LOW,"sees guile and cunning as indirect and somewhat worthless"),le(se,D.VERY_LOW,"holds shrewd and crafty individuals in the lowest esteem"),le(se,D.LOWEST,"is utterly disgusted by guile and cunning"),se);var ce;function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fe=(Ee(ce={},D.HIGHEST,"views decorum as a high ideal and is deeply offended by those that fail to maintain it"),Ee(ce,D.VERY_HIGH,"greatly respects those that observe decorum and maintain their dignity"),Ee(ce,D.HIGH,"values decorum, dignity and proper behavior"),Ee(ce,D.NEUTRAL,"doesn't care very much about decorum"),Ee(ce,D.LOW,"finds maintaining decorum a silly, fumbling waste of time"),Ee(ce,D.VERY_LOW,"sees those that attempt to maintain dignified and proper behavior as vain and offensive"),Ee(ce,D.LOWEST,"is affronted by the whole notion of maintaining decorum and finds so-called dignified people disgusting"),ce);var de;function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ie=(he(de={},D.HIGHEST,"believes that artful speech and eloquent expression are some of the highest ideals"),he(de,D.VERY_HIGH,"deeply respects eloquent speakers"),he(de,D.HIGH,"values eloquence"),he(de,D.NEUTRAL,"doesn't value eloquence so much"),he(de,D.LOW,"finds eloquence and artful speech off-putting"),he(de,D.VERY_LOW,"finds [him/her]self somewhat disgusted with eloquent speakers"),he(de,D.LOWEST,"sees artful speech and eloquence as a wasteful form of deliberate deception and treats it as such"),de);var Se;function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _e=(pe(Se={},D.HIGHEST,"holds fairness as one of the highest ideals and despises cheating of any kind"),pe(Se,D.VERY_HIGH,"has great respect for fairness"),pe(Se,D.HIGH,"respects fair-dealing and fair-play"),pe(Se,D.NEUTRAL,"does not care about fairness"),pe(Se,D.LOW,"sees life as unfair and doesn't mind it that way"),pe(Se,D.VERY_LOW,"finds the idea of fair-dealing foolish and cheats when [he/she] finds it profitable"),pe(Se,D.LOWEST,"is disgusted by the idea of fairness and will freely cheat anybody at any time"),Se);var me;function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ne=(Oe(me={},D.HIGHEST,"sees family as one of the most important things in life"),Oe(me,D.VERY_HIGH,"values family greatly"),Oe(me,D.HIGH,"values family"),Oe(me,D.NEUTRAL,"does not care about family one way or the other"),Oe(me,D.LOW,"is put off by family"),Oe(me,D.VERY_LOW,"lacks any respect for family"),Oe(me,D.LOWEST,"finds the idea of family loathsome"),me);var Re;function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ve=(Ae(Re={},D.HIGHEST,"believes friendship is a key to the ideal life"),Ae(Re,D.VERY_HIGH,"sees friendship as one of the finer things in life"),Ae(Re,D.HIGH,"thinks friendship is important"),Ae(Re,D.NEUTRAL,"does not care about friendship"),Ae(Re,D.LOW,"finds friendship burdensome"),Ae(Re,D.VERY_LOW,"is completely put off by the idea of friends"),Ae(Re,D.LOWEST,"finds the whole idea of friendship disgusting"),Re);var be;function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Le=(Te(be={},D.HIGHEST,"believes that hard work is one of the highest ideals and a key to the good life"),Te(be,D.VERY_HIGH,"deeply respects those that work hard at their labors"),Te(be,D.HIGH,"values hard work"),Te(be,D.NEUTRAL,"doesn't really see the point of working hard"),Te(be,D.LOW,"sees working hard as a foolish waste of time"),Te(be,D.VERY_LOW,"thinks working hard is an abject idiocy"),Te(be,D.LOWEST,"finds the proposition that one should work hard in life utterly abhorrent"),be);var ye;function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const He=(ge(ye={},D.HIGHEST,"would have the world operate in complete harmony without the least bit of strife or disorder"),ge(ye,D.VERY_HIGH,"strongly believes that a peaceful and ordered society without dissent is best"),ge(ye,D.HIGH,"values a harmonious existence"),ge(ye,D.NEUTRAL,"sees equal parts of harmony and discord as part of life"),ge(ye,D.LOW,"doesn't respect a society that has settled into harmony without debate and strife"),ge(ye,D.VERY_LOW,"can't fathom why anyone would want to live in an orderly and harmonious society"),ge(ye,D.LOWEST,"believes deeply that chaos and disorder are the truest expressions of life and would disrupt harmony wherever it is found"),ye);var Ue;function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const we=(Pe(Ue={},D.HIGHEST,"believes that freedom and independence are completely non-negotiable and would fight to defend them"),Pe(Ue,D.VERY_HIGH,"treasures independence"),Pe(Ue,D.HIGH,"values independence"),Pe(Ue,D.NEUTRAL,"doesn't really value independence one way or another"),Pe(Ue,D.LOW,"finds the ideas of independence and freedom somewhat foolish"),Pe(Ue,D.VERY_LOW,"sees freedom and independence as completely worthless"),Pe(Ue,D.LOWEST,"hates freedom and would crush the independent spirit wherever it is found"),Ue);var De;function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ce=(Fe(De={},D.HIGHEST,"feels that introspection and all forms of self-examination are the keys to a good life and worthy of respect"),Fe(De,D.VERY_HIGH,"deeply values introspection"),Fe(De,D.HIGH,"sees introspection as important"),Fe(De,D.NEUTRAL,"doesn't really see the value in self-examination"),Fe(De,D.LOW,"finds introspection to be a waste of time"),Fe(De,D.VERY_LOW,"thinks that introspection is valueless and those that waste time in self-examination are deluded fools"),Fe(De,D.LOWEST,"finds the whole idea of introspection completely offensive and contrary to the ideals of a life well-lived"),De);var Ge;function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me=(Ve(Ge={},D.HIGHEST,"finds the quest for knowledge to be of the very highest value"),Ve(Ge,D.VERY_HIGH,"views the pursuit of knowledge as deeply important"),Ve(Ge,D.HIGH,"values knowledge"),Ve(Ge,D.NEUTRAL,"doesn't see the attainment of knowledge as important"),Ve(Ge,D.LOW,"finds the pursuit of knowledge to be a waste of effort"),Ve(Ge,D.VERY_LOW,"thinks the quest for knowledge is a delusional fantasy"),Ve(Ge,D.LOWEST,"sees the attainment and preservation of knowledge as an offensive enterprise engaged in by arrogant fools"),Ge);var ke;function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const We=(je(ke={},D.HIGHEST,"is an absolute believer in the rule of law"),je(ke,D.VERY_HIGH,"has a great deal of respect for the law"),je(ke,D.HIGH,"respects the law"),je(ke,D.NEUTRAL,"doesn't feel strongly about the law"),je(ke,D.LOW,"does not respect the law"),je(ke,D.VERY_LOW,"disdains the law"),je(ke,D.LOWEST,"finds the idea of laws abhorrent"),ke);var Ye;function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xe=(Je(Ye={},D.HIGHEST,"believes that it would be a fine thing if all time were leisure time"),Je(Ye,D.VERY_HIGH,"treasures leisure time and thinks it is very important in life"),Je(Ye,D.HIGH,"values leisure time"),Je(Ye,D.NEUTRAL,"doesn't think one way or the other about leisure time"),Je(Ye,D.LOW,"finds leisure time wasteful"),Je(Ye,D.VERY_LOW,"is offended by leisure time and leisurely living"),Je(Ye,D.LOWEST,"believes that those that take leisure time are evil and finds the whole idea disgusting"),Ye);var Be;function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ke=(Xe(Be={},D.HIGHEST,"has the highest regard for loyalty"),Xe(Be,D.VERY_HIGH,"greatly prizes loyalty"),Xe(Be,D.HIGH,"values loyalty"),Xe(Be,D.NEUTRAL,"doesn't particularly value loyalty"),Xe(Be,D.LOW,"views loyalty unfavorably"),Xe(Be,D.VERY_LOW,"disdains loyalty"),Xe(Be,D.LOWEST,"is disgusted by the idea of loyalty"),Be);var qe;function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ze=(Qe(qe={},D.HIGHEST,"believes that martial prowess defines the good character of an individual"),Qe(qe,D.VERY_HIGH,"deeply respects skill at arms"),Qe(qe,D.HIGH,"values martial prowess"),Qe(qe,D.NEUTRAL,"does not really value skills related to fighting"),Qe(qe,D.LOW,"finds those that develop skill with weapons and fighting distasteful"),Qe(qe,D.VERY_LOW,"thinks that the pursuit of the skills of warfare and fighting is a low pursuit indeed"),Qe(qe,D.LOWEST,"abhors those that pursue the mastery of weapons and skill with fighting"),qe);var $e;function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const et=(Ze($e={},D.HIGHEST,"believes that little is better in life than a good party"),Ze($e,D.VERY_HIGH,"truly values merrymaking and parties"),Ze($e,D.HIGH,"finds merrymaking and partying worthwhile activities"),Ze($e,D.NEUTRAL,"doesn't really value merrymaking"),Ze($e,D.LOW,"sees merrymaking as a waste"),Ze($e,D.VERY_LOW,"is disgusted by merrymakers"),Ze($e,D.LOWEST,"is appalled by merrymaking, parties and other such worthless activities"),$e);var tt;function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rt=(nt(tt={},D.HIGHEST,"holds nature to be of greater value than most aspects of civilization"),nt(tt,D.VERY_HIGH,"has a deep respect for animals, plants and the natural world"),nt(tt,D.HIGH,"values nature"),nt(tt,D.NEUTRAL,"doesn't care about nature one way or another"),nt(tt,D.LOW,"finds nature somewhat disturbing"),nt(tt,D.VERY_LOW,"has a deep dislike of the natural world"),nt(tt,D.LOWEST,"would just as soon have nature and the great outdoors burned to ashes and converted into a great mining pit"),tt);var it;function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ot=(at(it={},D.HIGHEST,"believes the idea of war is utterly repellent and would have peace at all costs"),at(it,D.VERY_HIGH,"believes that peace is always preferable to war"),at(it,D.HIGH,"values peace over war"),at(it,D.NEUTRAL,"doesn't particularly care between war and peace"),at(it,D.LOW,"sees war as a useful means to an end"),at(it,D.VERY_LOW,"believes war is preferable to peace in general"),at(it,D.LOWEST,"thinks that the world should be engaged in perpetual warfare"),it);var st;function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ut=(lt(st={},D.HIGHEST,"believes that perseverance is one of the greatest qualities somebody can have"),lt(st,D.VERY_HIGH,"greatly respects individuals that persevere through their trials and labors"),lt(st,D.HIGH,"respects perseverance"),lt(st,D.NEUTRAL,"doesn't think much about the idea of perseverance"),lt(st,D.LOW,"sees perseverance in the face of adversity as bull-headed and foolish"),lt(st,D.VERY_LOW,"thinks there is something deeply wrong with people that persevere through adversity"),lt(st,D.LOWEST,"finds the notion that one would persevere through adversity completely abhorrent"),st);var ct;function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ft=(Et(ct={},D.HIGHEST,"believes that the acquisition of power over others is the ideal goal in life and worthy of the highest respect"),Et(ct,D.VERY_HIGH,"sees power over others as something to strive for"),Et(ct,D.HIGH,"respects power"),Et(ct,D.NEUTRAL,"doesn't find power particularly praiseworthy"),Et(ct,D.LOW,"has a negative view of those who exercise power over others"),Et(ct,D.VERY_LOW,"hates those who wield power over others"),Et(ct,D.LOWEST,"finds the acquisition and use of power abhorrent and would have all masters toppled"),ct);var dt;function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const It=(ht(dt={},D.HIGHEST,"sees romance as one of the highest ideals"),ht(dt,D.VERY_HIGH,"thinks romance is very important in life"),ht(dt,D.HIGH,"values romance"),ht(dt,D.NEUTRAL,"doesn't care one way or the other about romance"),ht(dt,D.LOW,"finds romance distasteful"),ht(dt,D.VERY_LOW,"is somewhat disgusted by romance"),ht(dt,D.LOWEST,"finds even the abstract idea of romance repellent"),dt);var St;function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _t=(pt(St={},D.HIGHEST,"finds sacrifice to be one of the highest ideals"),pt(St,D.VERY_HIGH,"believes that those who sacrifice for others should be deeply respected"),pt(St,D.HIGH,"values sacrifice"),pt(St,D.NEUTRAL,"doesn't particularly respect sacrifice as a virtue"),pt(St,D.LOW,"sees sacrifice as wasteful and foolish"),pt(St,D.VERY_LOW,"finds sacrifice to be the height of folly"),pt(St,D.LOWEST,"thinks that the entire concept of sacrifice for others is truly disgusting"),St);var mt;function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nt=(Ot(mt={},D.HIGHEST,"believes that self-mastery and the denial of impulses are of the highest ideals"),Ot(mt,D.VERY_HIGH,"finds moderation and self-control to be very important"),Ot(mt,D.HIGH,"values self-control"),Ot(mt,D.NEUTRAL,"doesn't particularly value self-control"),Ot(mt,D.LOW,"finds those that deny their impulses somewhat stiff"),Ot(mt,D.VERY_LOW,"sees the denial of impulses as a vain and foolish pursuit"),Ot(mt,D.LOWEST,"has abandoned any attempt at self-control and finds the whole concept deeply offensive"),mt);var Rt;function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vt=(At(Rt={},D.HIGHEST,"believes that the mastery of a skill is one of the highest pursuits"),At(Rt,D.VERY_HIGH,"really respects those that take the time to master a skill"),At(Rt,D.HIGH,"respects the development of skill"),At(Rt,D.NEUTRAL,"doesn't care if others take the time to master skills"),At(Rt,D.LOW,"finds the pursuit of skill mastery off-putting"),At(Rt,D.VERY_LOW,"believes that the time taken to master a skill is a horrible waste"),At(Rt,D.LOWEST,"sees the whole idea of taking time to master a skill as appalling"),Rt);var bt;function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lt=(Tt(bt={},D.HIGHEST,"views any show of emotion as offensive"),Tt(bt,D.VERY_HIGH,"thinks it is of the utmost importance to present a bold face and never grouse, complain or even show emotion"),Tt(bt,D.HIGH,"believes it is important to conceal emotions and refrain from complaining"),Tt(bt,D.NEUTRAL,"doesn't see much value in being stoic"),Tt(bt,D.LOW,"sees no value in holding back complaints and concealing emotions"),Tt(bt,D.VERY_LOW,"feels that those who attempt to conceal their emotions are vain and foolish"),Tt(bt,D.LOWEST,"sees concealment of emotions as a betrayal and tries [his/her] best never to associate with such secretive fools"),bt);var yt;function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=(gt(yt={},D.HIGHEST,"holds the maintenance of tradition as one of the highest ideals"),gt(yt,D.VERY_HIGH,"is a firm believer in the value of tradition"),gt(yt,D.HIGH,"values tradition"),gt(yt,D.NEUTRAL,"doesn't have any strong feelings about tradition"),gt(yt,D.LOW,"disregards tradition"),gt(yt,D.VERY_LOW,"finds the following of tradition foolish and limiting"),gt(yt,D.LOWEST,"is disgusted by tradition and would flout any [he/she] encounters if given a chance"),yt);var Ut;function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wt=(Pt(Ut={},D.HIGHEST,"views tranquility as one of the highest ideals"),Pt(Ut,D.VERY_HIGH,"strongly values tranquility and quiet"),Pt(Ut,D.HIGH,"values tranquility and a peaceful day"),Pt(Ut,D.NEUTRAL,"doesn't have a preference between tranquility and tumult"),Pt(Ut,D.LOW,"prefers a noisy, bustling life to boring days without activity"),Pt(Ut,D.VERY_LOW,"is greatly disturbed by quiet and a peaceful existence"),Pt(Ut,D.LOWEST,"is disgusted by tranquility and would that the world would constantly churn with noise and activity"),Ut);var Dt;function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ct=(Ft(Dt={},D.HIGHEST,"believes the truth is inviolable regardless of the cost"),Ft(Dt,D.VERY_HIGH,"believes that honesty is a high ideal"),Ft(Dt,D.HIGH,"values honesty"),Ft(Dt,D.NEUTRAL,"does not particularly value the truth"),Ft(Dt,D.LOW,"finds blind honesty foolish"),Ft(Dt,D.VERY_LOW,"sees lying as an important means to an end"),Ft(Dt,D.LOWEST,"is repelled by the idea of honesty and lies without compunction"),Dt);function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Jt=function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Wt(this,n);var t=e.ethics,r=void 0===t?{}:t,i=e.beliefs,a=void 0===i?{}:i,o=e.seed,s=void 0===o?(new Date).getTime():o;this._rand=E()(s),this._language=(0,f.makeRandomLanguage)("culture-".concat(s)),this._name=this._language.makeName(),this._ethics=M(r,this._rand),this._beliefs=B(a,this._rand)}var r,c;return r=n,c=[{key:"name",get:function(){return this._name}},{key:"ethics",get:function(){return kt({},this._ethics)}},{key:"beliefs",get:function(){return kt({},this._beliefs)}},{key:"getEthicsDescription",value:function(){var e=this;return Object.keys(this._ethics).map((function(t){return"".concat(C(t)," ").concat(e.getEthicDescription(t))}))}},{key:"getEthicDescription",value:function(e){var t,n;if(null!=this._ethics[e])return t=this._ethics[e],null===(n=d[t])||void 0===n?void 0:n.description}},{key:"getBeliefsDescription",value:function(){var e=this;return Object.keys(this._beliefs).map((function(t){return e.getBeliefDescription(t)}))}},{key:"getBeliefDescription",value:function(n){if(null!=this._beliefs[n])return e[function(e,n){return void 0===n&&(n={}),function(e,n){return void 0===n&&(n={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?a:n,l=t.stripRegexp,u=void 0===l?o:l,c=t.transform,E=void 0===c?i:c,f=t.delimiter,d=void 0===f?" ":f,h=s(s(e,r,"$1\0$2"),u,"\0"),I=0,S=h.length;"\0"===h.charAt(I);)I++;for(;"\0"===h.charAt(S-1);)S--;return h.slice(I,S).split("\0").map(E).join(d)}(e,t({delimiter:"",transform:l},n))}(e,t({transform:u},n))}("".concat(n,"Values"))][this._beliefs[n]]}},{key:"branch",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,r=Object.keys(h).length,i=Object.keys(D).length;return new n({ethics:Object.keys(this._ethics).reduce((function(n,i){return n[i]=e._rand.intBetween(Math.max(0,e._ethics[i]-t),Math.min(r,e._ethics[i]+t)),n}),{}),beliefs:Object.keys(this._beliefs).reduce((function(n,r){return n[r]=e._rand.intBetween(Math.max(0,e._beliefs[r]-t),Math.min(i,e._beliefs[r]+t)),n}),{})})}},{key:"getOpinion",value:function(e){var t=this,n=e.ethics;return Object.keys(this._ethics).reduce((function(e,r){return e+w[t._ethics[r]][n[r]]}),0)}},{key:"toString",value:function(){var e=this.getEthicsDescription(),t=this.getBeliefsDescription(),n=Gt(e.splice(-1),1)[0],r=Gt(t.splice(-1),1)[0];return["someone from the ".concat(this._name," culture has the following beliefs:"),t.join(", "),"and",r+";","and the following ethics:",e.join(", "),"and",n].join(" ")}}],c&&Yt(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),n}()})(),r})())); |
{ | ||
"name": "culture-generator", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A generator for cultures", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
95152