PageSourceSearch

https://tekey.jp/chunks/1646.c0365ecbc7ed6b23.js

js tekey.jp collected 2026-10-09 01:27:49 UTC 70,234 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9f595567-11f0-4ac1-ab29-393f1b2e39be",e._sentryDebugIdIdentifier="sentry-dbid-9f595567-11f0-4ac1-ab29-393f1b2e39be")}catch(e){}}(),(globalThis.rspackChunk=globalThis.rspackChunk||[]).push([[1646],{65101(e,t,r){r(35690),Opal.modules["i18n/backend/fallbacks"]=function(e){var t,r,n,i,a,s,c,u,l,_,o,$,h=e.module,d=e.class_variable_set,f=e.truthy,m=e.class_variable_get,p=e.def,b=e.send,g=e.send2,v=e.find_super,y=e.hash2,k=e.find_block_super,R=e.neqeq,x=e.thrower,T=e.return_val,D=[],w=e.nil,E=e.$$$;return t=D[0],d((n=[r=h(t,"I18n")].concat(D))[0],"@@fallbacks",w),a=[i=e.get_singleton_class(r)].concat(n),s=e.$r(a),p(i,"$fallbacks",function(){var e=w;return(d(a[1],"@@fallbacks",f(null!=a[1].$$cvars["@@fallbacks"]?"class variable":w)&&f(e=m(a[1],"@@fallbacks",!1))?e:E(E(s("I18n"),"Locale"),"Fallbacks").$new()),f(e=s("Thread").$current()["$[]"]("i18n_fallbacks")))?e:m(a[1],"@@fallbacks",!1)}),p(i,"$fallbacks=",function(e){var t;return d(a[1],"@@fallbacks",f(e["$is_a?"](s("Array")))?E(E(s("I18n"),"Locale"),"Fallbacks").$new(e):e),t=["i18n_fallbacks",m(a[1],"@@fallbacks",!1)],b(s("Thread").$current(),"[]=",t),t[t.length-1]}),c=n[0],l=(u=[h(c,"Backend")].concat(n))[0],o=[_=h(l,"Fallbacks")].concat(u),$=e.$r(o),p(_,"$translate",function t(r,n,i){try{var a=x("return"),s=t.$$p||w,c=w,u=w;if(t.$$p=null,null==i&&(i=$("EMPTY_HASH")),!f(i.$fetch("fallback",!0))||f(i["$[]"]("fallback_in_progress")))return g(this,v(this,"translate",t,!1,!0),"translate",[r,n,i],s);if(f(i["$[]"]("default"))&&(c=this["$extract_non_symbol_default!"](i)),u=i.$merge(y(["fallback_in_progress"],{fallback_in_progress:!0})),b($("I18n").$fallbacks()["$[]"](r),"each",[],function s(c){var l=null==s.$$s?this:s.$$s;null==c&&(c=w);try{return b(l,"catch",["exception"],function e(){var l=null==e.$$s?this:e.$$s,_=w;if(_=g(l,k(l,"translate",e.$$def||s.$$def||t,!1,!1),"translate",[c,n,u],null),f(_["$nil?"]()))return w;R(r.$to_s(),c.$to_s())&&l.$on_fallback(r,c,n,i),a.$throw(_)},{$$s:l,$$ret:a})}catch(t){if(e.rescue(t,[E($("I18n"),"InvalidLocale")]))try{return w}finally{e.pop_exception()}throw t}},{$$s:this}),f(i["$key?"]("default"))&&f(i["$[]"]("default")["$nil?"]()))return w;if(f(c))return g(this,v(this,"translate",t,!1,!0),"translate",[r,w,i.$merge(y(["default"],{default:c}))],null);return this.$throw("exception",E($("I18n"),"MissingTranslation").$new(r,n,i))}catch(e){if(e===a)return e.$v;throw e}},-3),p(_,"$extract_non_symbol_default!",function(e){var t=w,r=w;return f(r=b(t=[e["$[]"]("default")].$flatten(),"detect",[],function(e){return null==e&&(e=w),e["$is_a?"]($("Symbol"))["$!"]()}))&&e["$[]="]("default",t["$[]"](0,t.$index(r))),r}),p(_,"$exists?",function t(r,n,i){try{var a=x("return"),s=t.$$p||w;if(t.$$p=null,null==i&&(i=$("EMPTY_HASH")),!f(i.$fetch("fallback",!0)))return g(this,v(this,"exists?",t,!1,!0),"exists?",[r,n,i],s);return b($("I18n").$fallbacks()["$[]"](r),"each",[],function r(i){var s=null==r.$$s?this:r.$$s;null==i&&(i=w);try{if(!f(g(s,k(s,"exists?",r.$$def||t,!1,!1),"exists?",[i,n],null)))return w;a.$throw(!0)}catch(t){if(e.rescue(t,[E($("I18n"),"InvalidLocale")]))try{return w}finally{e.pop_exception()}throw t}},{$$s:this,$$ret:a}),!1}catch(e){if(e===a)return e.$v;throw e}},-3),_.$private(),p(_,"$on_fallback",T(w))},Opal.modules["bcdice/randomizer"]=function(e){var t,r,n,i,a,s,c,u,l=e.module,_=e.klass,o=e.const_set,$=e.def,h=e.truthy,d=e.rb_gt,f=e.rb_plus,m=e.rb_le,p=e.send,b=e.rb_minus,g=e.eqeq,v=e.rb_times,y=e.eqeqeq,k=e.rb_ge,R=[],x=e.nil,T=e.$$$;return t=R[0],r=[l(t,"BCDice")].concat(R),n=e.$r(r),i=r[0],s=[a=_(i,null,"Randomizer")].concat(r),c=e.$r(s),(u=a.$$prototype).rand_results=u.detailed_rand_results=x,o(s[0],"UPPER_LIMIT_DICE_TIMES",200),o(s[0],"UPPER_LIMIT_DICE_SIDES",1e4),o(s[0],"UPPER_LIMIT_RANDS",1e4),$(a,"$initialize",function(){return this.rand_results=[],this.detailed_rand_results=[]}),a.$attr_reader("rand_results"),a.$attr_reader("detailed_rand_results"),o(s[0],"DetailedRandResult",c("Struct").$new("kind","sides","value")),$(a,"$roll_barabara",function(e,t){return(
1h(d(f(this.rand_results.$size(),e),c("UPPER_LIMIT_RANDS")))&&this.$raise(c("TooManyRandsError")),h(m(e,0))||h(d(e,c("UPPER_LIMIT_DICE_TIMES"))))?[]:p(c("Array"),"new",[e],function e(){return(null==e.$$s?this:e.$$s).$roll_once(t)},{$$s:this})}),$(a,"$roll_sum",function(e,t){return this.$roll_barabara(e,t).$sum()}),$(a,"$roll_once",function(e){var t=x;return h(m(e,0))||h(d(e,c("UPPER_LIMIT_DICE_SIDES")))?0:(t=this.$rand_inner(e),this.$push_to_detail("normal",e,t),t)}),$(a,"$roll_index",function(e){return b(this.$roll_once(e),1)}),$(a,"$roll_tens_d10",function(){var e=x,t=x;return g(e=this.$rand_inner(10),10)&&(e=0),t=v(e,10),this.$push_to_detail("tens_d10",10,t),t}),$(a,"$roll_d9",function(){var e=x;return e=b(this.$rand_inner(10),1),this.$push_to_detail("d9",10,e),e}),$(a,"$roll_d66",function(e){var t=x,r=x;return t=p(c("Array"),"new",[2],function e(){return(null==e.$$s?this:e.$$s).$roll_once(6)},{$$s:this}),y(T(c("D66SortType"),"ASC"),r=e)?t["$sort!"]():y(T(c("D66SortType"),"DESC"),r)&&t["$sort!"]()["$reverse!"](),f(v(t["$[]"](0),10),t["$[]"](1))}),a.$private(),$(a,"$rand_inner",function(e){var t=x;return h(k(this.rand_results.$size(),c("UPPER_LIMIT_RANDS")))&&this.$raise(c("TooManyRandsError")),t=this.$random(e),this.rand_results["$<<"]([t,e]),t}),$(a,"$random",function(e){return f(c("Kernel").$rand(e),1)}),$(a,"$push_to_detail",function(e,t,r){var n=x;return n=c("DetailedRandResult").$new(e,t,r),this.detailed_rand_results.$push(n)}),_(r[0],n("StandardError"),"TooManyRandsError"),x},Opal.modules["bcdice/dice_table/roll_result"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.def,h=e.truthy,d=e.return_val,f=[],m=e.nil;return t=f[0],n=(r=[_(t,"BCDice")].concat(f))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"RollResult")].concat(i),u=e.$r(c),(l=s.$$prototype).table_name=l.value=l.body=m,$(s,"$initialize",function(e,t,r){return this.table_name=e,this.value=t,this.body=r}),s.$attr_reader("table_name"),s.$attr_reader("value"),s.$attr_reader("body"),$(s,"$to_s",function(){return""+this.table_name+"("+this.value+") > "+this.body}),$(s,"$last_body",function(){return h(this.body["$is_a?"](u("RollResult")))?this.body.$last_body():this.body}),$(s,"$empty?",d(!1))},Opal.modules["bcdice/dice_table/chain_table"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.truthy,h=e.def,d=e.rb_minus,f=[],m=e.nil;return t=f[0],n=(r=[_(t,"BCDice")].concat(f))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"ChainTable")].concat(i),u=e.$r(c),(l=s.$$prototype).times=l.sides=l.items=l.name=m,h(s,"$initialize",function(e,t,r){var n=m;return this.name=e,this.items=r.$freeze(),$(n=/(\d+)D(\d+)/i.$match(t))||this.$raise(u("ArgumentError"),"Unexpected table type: "+t),this.times=n["$[]"](1).$to_i(),this.sides=n["$[]"](2).$to_i()}),h(s,"$roll",function(e){var t=m,r=m,n=m;return r=d(t=e.$roll_sum(this.times,this.sides),this.times),$((n=this.items["$[]"](r))["$respond_to?"]("roll"))&&(n=n.$roll(e)),u("RollResult").$new(this.name,t,n)})},Opal.modules["bcdice/dice_table/d66_grid_table"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.hash2,h=e.defs,d=e.def,f=e.rb_plus,m=e.rb_times,p=e.rb_minus,b=[],g=e.nil;return t=b[0],n=(r=[_(t,"BCDice")].concat(b))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"D66GridTable")].concat(i),u=e.$r(c),(l=s.$$prototype).name=l.items=g,h(s,"$from_i18n",function(e,t){var r=g;return r=u("I18n").$t(e,$(["locale","raise"],{locale:t,raise:!0})),this.$new(r["$[]"]("name"),r["$[]"]("items"))}),d(s,"$initialize",function(e,t){return this.name=e,this.items=t.$freeze()}),d(s,"$roll",function(e){var t=g,r=g,n=g,i=g,a=g;return t=e.$roll_once(6),r=e.$roll_once(6),n=f(m(t,10),r),i=p(t,1),a=p(r,1),u("RollResult").$new(this.name,n,this.items["$[]"](i)["$[]"](a))})},Opal.modules["bcdice/dice_table/d66_half_grid_table"]=function(e){var t,r,n,i,a,s,c,u,l,_,o=e.module,$=e.klass,h=e.hash2,d=e.defs,f=e.def,m=e.top,p=[],b=e.nil;return m.$require("bcdice/dice_table/d66_grid_table"),t=p[0],n=(r=[o(t,"BCDice")].concat(p))[0],i=[o(n,"DiceTable")].concat(r),a=e.$r(i),s=i[0],c=a("D66GridTable"),l=[u=$(s,c,"D66HalfGridTable")].concat(i),_=e.$r(l),d(u,"$from_i18n",function(e,t){var r=b;return r=_("I18n").$t(e,h(["locale","raise"],{locale:t,raise:!0})),this.$new(r["$[]"]("name"),r["$[]"]("items_1_2_3"),r["$[]"]("items_4_5_6"))}),f(u,"$initialize",function(e,t,r){return this.name=e,this.items=[t,t,t,r,r,r].$freeze()})},Opal.modules["bcdice/dice_table/d66_one_third_table"]=function(e){var t,r,n,i,a,s,c,u,l,_,o=e.module,$=e.klass,h=e.hash2,d=e.defs,f=e.def,m=e.top,p=[],b=e.nil;return m.$require("bcdice/dice_table/d66_grid_table"),t=p[0],n=(r=[o(t,"BCDice")].concat(p))[0],i=[o(n,"DiceTable")].concat(r),a=e.$r(i),s=i[0],c=a("D66GridTable"),l=[u=$(s,c,"D66OneThirdTable")].concat(i),_=e.$r(l),d(u,"$from_i18n",function(e,t){var r=b;return r=_("I18n").$t(e,h(["locale","raise"],{locale:t,raise:!0})),this.$new(r["$[]"]("name"),r["$[]"]("items_1_2"),r["$[]"]("items_3_4"),r["$[]"]("items_5_6"))}),f(u,"$initialize",function(e,t,r,n){return this.name=e,this.items=[t,t,r,r,n,n].$freeze()})},Opal.modules["bcdice/dice_table/d66_table"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.hash2,h=e.defs,d=e.def,f=e.eqeqeq,m=e.rb_plus,p=e.rb_times,b=e.truthy,g=[],v=e.nil,y=e.$$$;return t=g[0],n=(r=[_(t,"BCDice")].concat(g))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"D66Table")].concat(i),u=e.$r(c),(l=s.$$prototype).sort_type=l.items=l.name=v,h(s,"$from_i18n",function(e,t){var r=v,n=v;return r=u("I18n").$t(e,$(["locale"],{locale:t})),n=u("D66SortType").$const_get(r["$[]"]("d66_sort_type")),this.$new(r["$[]"]("name"),n,r["$[]"]("items"))}),d(s,"$initialize",function(e,t,r){return this.name=e,this.sort_type=t,this.items=r.$freeze()}),d(s,"$roll",function(e){var t=v,r=v,n=v,i=v;return t=e.$roll_barabara(2,6),f(y(u("D66SortType"),"ASC"),r=this.sort_type)?t["$sort!"]():f(y(u("D66SortType"),"DESC"),r)&&t["$sort!"]()["$reverse!"](),n=m(p(t["$[]"](0),10),t["$[]"](1)),i=b(r=this.items["$[]"](n))?r:this.items["$[]"](n.$to_s()),b(i["$respond_to?"]("roll"))&&(i=i.$roll(e)),u("RollResult").$new(this.name,n,i)}),d(s,"$choice",function(e){return u("RollResult").$new(this.name,e,this.items["$[]"](e))})},Opal.modules["bcdice/dice_table/d66_left_range_table"]=function(e){var t,r,n,i,a,s,c,u,l,_,o,$,h=e.module,d=e.klass,f=e.hash2,m=e.send,p=e.def,b=e.truthy,g=e.to_a,v=e.to_ary,y=e.rb_plus,k=e.rb_times,R=e.send2,x=e.find_super,T=e.top,D=[],w=e.nil;return T.$require("bcdice/dice_table/d66_table"),t=D[0],n=(r=[h(t,"BCDice")].concat(D))[0],i=[h(n,"DiceTable")].concat(r),a=e.$r(i),s=i[0],c=a("D66Table"),l=[u=d(s,c,"D66LeftRangeTable")].concat(i),o=[_=e.get_singleton_class(u)].concat(l),$=e.$r(o),p(_,"$from_i18n",function(e,t){var r=w,n=w;return n=m((r=$("I18n").$t(e,f(["locale"],{locale:t})))["$[]"]("items"),"map",[],function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=w),[r.$conv_string_range(t["$[]"](0)),t["$[]"](1)]}
1,{$$s:this}),this.$new(r["$[]"]("name"),r["$[]"]("d66_sort_type"),n)}),p(_,"$conv_string_range",function(e){return b(e["$include?"](".."))?m($("Range"),"new",g(m(e.$split("..",2),"map",[],function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=w),r.$Integer(t)},{$$s:this}))):this.$raise($("ArgumentError"),"invalid format")}),p(u,"$initialize",function e(t,r,n){e.$$p;var i=w;return e.$$p=null,i=f([],{}),m(n,"each",[],function(e){var t,r=w,n=w;return null==e&&(e=w),r=null==(t=v(e))[0]?w:t[0],n=null==t[1]?w:t[1],m(r,"each",[],function(e){return null==e&&(e=w),m(n,"each_with_index",[],function(t,r){var n,a=w;return null==t&&(t=w),null==r&&(r=w),a=y(k(e,10),y(r,1)),m(i,"[]=",n=[a,t]),n[n.length-1]})})}),R(this,x(this,"initialize",e,!1,!0),"initialize",[t,r,i],null)})},Opal.modules["bcdice/dice_table/d66_parity_table"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.hash2,h=e.defs,d=e.def,f=e.truthy,m=e.rb_minus,p=e.rb_plus,b=e.rb_times,g=[],v=e.nil;return t=g[0],n=(r=[_(t,"BCDice")].concat(g))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"D66ParityTable")].concat(i),u=e.$r(c),(l=s.$$prototype).odd=l.even=l.name=v,h(s,"$from_i18n",function(e,t){var r=v;return r=u("I18n").$t(e,$(["locale","raise"],{locale:t,raise:!0})),this.$new(r["$[]"]("name"),r["$[]"]("odd"),r["$[]"]("even"))}),d(s,"$initialize",function(e,t,r){return this.name=e,this.odd=t.$freeze(),this.even=r.$freeze()}),d(s,"$roll",function(e){var t=v,r=v,n=v,i=v;return t=e.$roll_once(6),r=e.$roll_once(6),n=(f(t["$odd?"]())?this.odd:this.even)["$[]"](m(r,1)),i=p(b(t,10),r),u("RollResult").$new(this.name,i,n)})},Opal.modules["bcdice/dice_table/d66_range_table"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.def,h=e.rb_plus,d=e.rb_times,f=e.send,m=[],p=e.nil;return t=m[0],n=(r=[_(t,"BCDice")].concat(m))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"D66RangeTable")].concat(i),u=e.$r(c),(l=s.$$prototype).items=l.name=p,$(s,"$initialize",function(e,t){return this.name=e,this.items=t.$freeze()}),$(s,"$roll",function(e){var t=p,r=p,n=p,i=p;return t=e.$roll_once(6),r=e.$roll_once(6),n=h(d(t,10),r),i=f(this.items,"find",[],function(e){return null==e&&(e=p),e["$[]"](0)["$include?"](n)}),u("RollResult").$new(this.name,n,i["$[]"](1))})},Opal.modules["bcdice/dice_table/range_table"]=function(e){var t,r,n,i,a,s,c,u,l,_,o,$,h=e.module,d=e.klass,f=e.const_set,m=e.send,p=e.hash2,b=e.def,g=e.eqeqeq,v=e.truthy,y=e.to_a,k=e.rb_times,R=e.rb_plus,x=[],T=e.nil;return t=x[0],n=(r=[h(t,"BCDice")].concat(x))[0],a=(i=[h(n,"DiceTable")].concat(r))[0],c=[s=d(a,null,"RangeTable")].concat(i),u=e.$r(c),(l=s.$$prototype).name=l.items=l.num_of_dice=l.num_of_sides=l.formatter=T,f(c[0],"RollResult",m(u("Struct"),"new",["sum","values","content","formatted"],function e(){return(null==e.$$s?this:e.$$s).$alias_method("to_s","formatted")},{$$s:s})),f(c[0],"Item",u("Struct").$new("range","content")),f(c[0],"DICE_ROLL_METHOD_RE",/^(\d+)D(\d+)$/i.$freeze()),f(c[0],"DEFAULT_FORMATTER",m(s,"lambda",[],function(e,t){return null==e&&(e=T),null==t&&(t=T),""+e.$name()+"("+t.$sum()+") > "+t.$content()})),s.$attr_reader("name"),s.$attr_reader("num_of_dice"),s.$attr_reader("num_of_sides"),o=[_=e.get_singleton_class(s)].concat(c),$=e.$r(o),b(_,"$from_i18n",function(e,t){var r=T,n=T;return n=m((r=$("I18n").$t(e,p(["locale"],{locale:t})))["$[]"]("items"),"map",[],function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=T),[r.$conv_string_range(t["$[]"](0)),t["$[]"](1)]},{$$s:this}),this.$new(r["$[]"]("name"),r["$[]"]("type"),n)}),b(_,"$conv_string_range",function(e){var t=T;return(null==this.name&&(this.name=T),g($("Integer"),t=e))?e:g($("String"),t)?v(e["$include?"](".."))?m($("Range"),"new",y(m(e.$split("..",2),"map",[],function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=T),r.$Integer(t)},{$$s:this}))):this.$Integer(e):this.$raise($("TypeError"),""+this.name+": "+e+" ("+e.$class()+") must be a String or an Integer")}),b(s,"$initialize",function e(t,r,n){var i=e.$$p||T,a=T,s=T;return e.$$p=null,this.name=t.$freeze(),this.formatter=v(a=i)?a:u("DEFAULT_FORMATTER"),v(s=u("DICE_ROLL_METHOD_RE").$match(r))||this.$raise(u("ArgumentError"),""+this.name+": invalid dice roll method: "+r),this.num_of_dice=s["$[]"](1).$to_i(),this.num_of_sides=s["$[]"](2).$to_i(),this.$store(n)}),b(s,"$fetch",function(e){var t=T;return v(t=m(this.items,"find",[],function(t){return null==t&&(t=T),t.$range()["$include?"](e)}))||this.$raise(u("RangeError"),""+this.name+": value is out of range: "+e),t}),b(s,"$roll",function(e){var t=T,r=T,n=T;return r=(t=e.$roll_barabara(this.num_of_dice,this.num_of_sides)).$sum(),(n=u("RollResult").$new(r,t,this.$fetch(r).$content()))["$formatted="](this.formatter["$[]"](this,n)),n}),s.$private(),b(s,"$store",function(e){var t=T,r=T;return t=m(e,"map",[],function e(t,r){var n=null==e.$$s?this:e.$$s;return null==t&&(t=T),null==r&&(r=T),[n.$coerce_to_int_range(t),r]},{$$s:this}),r=m(t,"sort_by",[],function(e,t){return null==e&&(e=T),null==t&&(t=T),e.$min()}),this.$assert_min_sum_is_covered(r),this.$assert_max_sum_is_covered(r),this.$assert_no_gap_or_overlap_in_ranges(r),this.items=m(r,"map",[],function(e,t){return null==e&&(e=T),null==t&&(t=T),u("Item").$new(e,t.$freeze()).$freeze()}).$freeze(),this}),b(s,"$coerce_to_int_range",function(e){var t=T;return g(u("Integer"),t=e)?u("Range").$new(e,e):g(u("Range"),t)&&v(e.$begin()["$is_a?"](u("Integer")))&&v(e.$end()["$is_a?"](u("Integer")))?e:this.$raise(u("TypeError"),""+this.name+": "+e+" ("+e.$class()+") must be an Integer or a Range with Integers ")}),b(s,"$assert_min_sum_is_covered",function(e){var t=T,r=T;return t=this.num_of_dice,v((r=e.$first()["$[]"](0))["$include?"](t))||this.$raise(u("RangeError"),""+this.name+": min value ("+t+") is not covered: "+r),this}),b(s,"$assert_max_sum_is_covered",function(e){var t=T,r=T;return t=k(this.num_of_dice,this.num_of_sides),v((r=e.$last()["$[]"](0))["$include?"](t))||this.$raise(u("RangeError"),""+this.name+": max value ("+t+") is not covered: "+r),this}),b(s,"$assert_no_gap_or_overlap_in_ranges",function(e){return m(e,"each_cons",[2],function e(t,r){var n=null==e.$$s?this:e.$$s,i=T,a=T,s=T,c=T;return(null==n.name&&(n.name=T),null==t&&(t=T),null==r&&(r=T),i=t["$[]"](0),a=r["$[]"](0),c=R(s=i.$max(),1),v(a["$include?"](s))&&n.$raise(u("RangeError"),""+n.name+": Range overlap: "+i+" and "+a),v(a["$include?"](c)))?T:n.$raise(u("RangeError"),""+n.name+": Range gap: "+i+" and "+a)},{$$s:this}),this})},Opal.modules["bcdice/dice_table/sai_fic_skill_table/category"]=function(e){var t,r,n,i,a,s,c,u,l,_,o=e.module,$=e.klass,h=e.send,d=e.def,f=e.rb_minus,m=e.return_ivar,p=[],b=e.nil,g=e.$$$;return t=p[0],n=(r=[o(t,"BCDice")].concat(p))[0],a=(i=[o(n,"DiceTable")].concat(r))[0],c=(s=[$(a,null,"SaiFicSkillTable")].concat(i))[0],l=[u=$(c,null,"Category")].concat(s),_=e.$r(l),d(u,"$initialize",function(e,t,r,n){return this.name=e,this.skills=h(t.$map(),"with_index",[2],function(t,i){return null==t&&(t=b),null==i&&(i=b),g(_("SaiFicSkillTable"),"Skill").$new(e,t,r,i,n)}),this.dice=r}),d(u,"$roll",function(e){return this.$skills()["$[]"](f(e.$roll_sum(2,6),2))}),d(u,"$to_s",m("name")),u.$attr_reader("name","dice","skills")},Opal.modules["bcdice/dice_table/sai_fic_skill_table/skill"]=function(e){var t,r,n,i,a,s,c,u,l=e.module,_=e.klass,o=e.def,$=e.hash2,h=[],d=e.nil;return t=h[0],n=(r=[l(t,"BCDice")].concat(h))[0],a=(i=[l(n,"DiceTable")].concat(r))[0],s=[_(a,null,"SaiFicSkillTable")].concat(i),(u=(c=_(s[0],null,"Skill")).$$prototype).s_format=u.category_dice=u.row_dice=u.category_name=u.name=d,o(c,"$initialize",function(e,t,r,n,i){return this.category_name=e,this.name=t,this.category_dice=r,this.row_dice=n,this.s_format=i}),o(c,"$to_s",function(){return this.$format(this.s_format,$(["category_dice","row_dice","category_name","skill_name"],{category_dice:this.category_dice,row_dice:this.row_dice,category_name:this.category_name,skill_name:this.name}))}),c.$attr_reader("category_name","name","category_dice","row_dice")},Opal.modules["bcdice/dice_table/sai_fic_skill_table"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.ensure_kwargs,h=e.hash2,d=e.send,f=(e.hash,e.defs),m=e.const_set,p=e.to_ary,b=e.def,g=e.truthy,v=e.rb_minus,y=e.rb_plus,k=e.top,R=[],x=e.nil,T=e.$$$;return k.$require("bcdice/dice_table/sai_fic_skill_table/category"),k.$require("bcdice/dice_table/sai_fic_skill_table/skill"),t=R[0],n=(r=[_(t,"BCDice")].concat(R))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"SaiFicSkillTable")].concat(i),u=e.$r(c),(l=s.$$prototype).rtt=l.rtt_format=l.rct=l.rct_format=l.rttn=l.rttn_format=l.categories=x,f(s,"$from_i18n",function(t,r,n){var i,a,s,c=x,l=x;return null==(i=(n=$(n)).$$smap.rtt)&&(i=x),null==(a=n.$$smap.rct)&&(a=x),null==(s=n.$$smap.rttn)&&(s=x),l=(c=u("I18n").$t("RTT",h(["locale","raise","default"],{locale:r,raise:!1,default:h([],{})})).$merge(u("I18n").$t(t,h(["locale","raise"],{locale:r,raise:!0}))))["$[]"]("items"),c=d(c,"select",[],function(e,t){return null==e&&(e=x),null==t&&(t=x),["rtt_format","rttn_format","rct_format","s_format"]["$include?"](e)}),this.$new(l,e.to_hash(c).$merge(h(["rtt","rct","rttn"],{rtt:i,rct:a,rttn:s})))},-3),m(c[0],"DEFAULT_RTT","ランダム特技表(%<category_dice>d,%<row_dice>d) > %<text>s"),m(c[0],"DEFAULT_RCT","ランダム分野表(%<category_dice>d) > %<category_name>s"),m(c[0],"DEFAULT_RTTN","%<category_name>s分野ランダム特技表(%<row_dice>d) > %<text>s"),m(c[0],"DEFAULT_S","《%<skill_name>s/%<category_name>s%<row_dice>d》"),b(s,"$initialize",function(e,t){var r,n,i,a,s,c,l;return null==(r=(t=$(t)).$$smap.rtt)&&(r=x),null==(n=t.$$smap.rct)&&(n=x),null==(i=t.$$smap.rttn)&&(i=x),null==(a=t.$$smap.rtt_format)&&(a=u("DEFAULT_RTT")),null==(s=t.$$smap.rct_format)&&(s=u("DEFAULT_RCT")),null==(c=t.$$smap.rttn_format)&&(c=u("DEFAULT_RTTN")),null==(l=t.$$smap.s_format)&&(l=u("DEFAULT_S")),this.categories=d(e.$map(),"with_index",[1],function(e,t){var r,n=x,i=x;return null==e&&(e=x),null==t&&(t=x),n=null==(r=p(e))[0]?x:r[0],i=null==r[1]?x:r[1],T(u("SaiFicSkillTable"),"Category").$new(n,i,t,l)},{$$has_top_level_mlhs_arg:!0}),this.rtt=r,this.rct=n,this.rttn=i.$to_a(),this.rtt_format=a,this.rct_format=s,this.rttn_format=c},-2),m(c[0],"RTTN",["RTT1","RTT2","RTT3","RTT4","RTT5","RTT6"].$freeze()),s.$attr_reader("categories"),b(s,"$roll_c
1ommand",function(e,t){var r=x,n=x,i=x;return(r=t,g(["RTT",this.rtt]["$include?"](r)))?this.$format_skill(this.rtt_format,this.$roll_skill(e)):g(["RCT",this.rct]["$include?"](r))?(n=this.$roll_category(e),this.$format(this.rct_format,h(["category_dice","category_name"],{category_dice:n.$dice(),category_name:n.$name()}))):g(i=u("RTTN").$index(r))||g(i=this.rttn.$index(r))?this.$format_skill(this.rttn_format,this.categories["$[]"](i).$roll(e)):x}),b(s,"$roll_category",function(e){return this.categories["$[]"](v(e.$roll_once(6),1))}),b(s,"$roll_skill",function(e){return this.$roll_category(e).$roll(e)}),b(s,"$prefixes",function(){return y(["RTT[1-6]?","RCT",this.rtt,this.rct],this.rttn).$compact()}),s.$private(),b(s,"$format_skill",function(e,t){return this.$format(e,h(["category_dice","row_dice","category_name","skill_name","text"],{category_dice:t.$category_dice(),row_dice:t.$row_dice(),category_name:t.$category_name(),skill_name:t.$name(),text:t.$to_s()}))})},Opal.modules["bcdice/dice_table/table"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.hash2,h=e.defs,d=e.truthy,f=e.def,m=e.rb_minus,p=[],b=e.nil;return t=p[0],n=(r=[_(t,"BCDice")].concat(p))[0],a=(i=[_(n,"DiceTable")].concat(r))[0],c=[s=o(a,null,"Table")].concat(i),u=e.$r(c),(l=s.$$prototype).times=l.sides=l.name=l.items=b,h(s,"$from_i18n",function(e,t){var r=b;return r=u("I18n").$t(e,$(["locale"],{locale:t})),this.$new(r["$[]"]("name"),r["$[]"]("type"),r["$[]"]("items"))}),f(s,"$initialize",function(e,t,r){var n=b;return this.name=e,this.items=r.$freeze(),d(n=/(\d+)D(\d+)/i.$match(t))||this.$raise(u("ArgumentError"),"Unexpected table type: "+t),this.times=n["$[]"](1).$to_i(),this.sides=n["$[]"](2).$to_i()}),f(s,"$roll",function(e){var t=b;return t=e.$roll_sum(this.times,this.sides),this.$choice(t)}),f(s,"$choice",function(e){var t=b;return t=m(e,this.times),u("RollResult").$new(this.name,e,this.items["$[]"](t))})},Opal.modules["bcdice/dice_table"]=function(e){var t=e.top;return e.nil,t.$require("bcdice/dice_table/roll_result"),t.$require("bcdice/dice_table/chain_table"),t.$require("bcdice/dice_table/d66_grid_table"),t.$require("bcdice/dice_table/d66_half_grid_table"),t.$require("bcdice/dice_table/d66_one_third_table"),t.$require("bcdice/dice_table/d66_left_range_table"),t.$require("bcdice/dice_table/d66_parity_table"),t.$require("bcdice/dice_table/d66_range_table"),t.$require("bcdice/dice_table/d66_table"),t.$require("bcdice/dice_table/range_table"),t.$require("bcdice/dice_table/sai_fic_skill_table"),t.$require("bcdice/dice_table/table")},Opal.modules["bcdice/enum"]=function(e){var t,r,n,i,a,s,c=e.module,u=e.const_set,l=[];return e.nil,t=l[0],n=(r=[c(t,"BCDice")].concat(l))[0],u((i=[c(n,"D66SortType")].concat(r))[0],"NO_SORT","no_sort"),u(i[0],"ASC","asc"),u(i[0],"DESC","desc"),a=r[0],u((s=[c(a,"RoundType")].concat(r))[0],"CEIL","ceil"),u(s[0],"FLOOR","floor"),u(s[0],"ROUND","round")},Opal.modules["bcdice/translate"]=function(e){var t,r,n,i,a,s,c=e.module,u=e.ensure_kwargs,l=e.kwrestargs,_=(e.hash,e.hash2),o=e.def,$=[],h=e.nil;return t=$[0],n=(r=[c(t,"BCDice")].concat($))[0],a=[i=c(n,"Translate")].concat(r),s=e.$r(a),o(i,"$translate",function(t,r){var n;return null==this.locale&&(this.locale=h),n=l(r=u(r),{}),s("I18n").$translate(t,_(["locale","raise"],{locale:this.locale,raise:!0}).$merge(e.to_hash(n)))},-2)},Opal.modules["bcdice/result"]=function(e){var t,r,n,i,a,s=e.module,c=e.klass,u=e.send,l=e.def,_=e.return_val,o=e.return_ivar,$=[],h=e.nil;return t=$[0],n=(r=[s(t,"BCDice")].concat($))[0],[i=c(n,null,"Result")].concat(r),l(a=e.get_singleton_class(i),"$success",function(e){return u(this.$new(),"tap",[],function(t){var r;return null==t&&(t=h),t["$text="](e),u(t,"success=",r=[!0]),r[r.length-1]})}),l(a,"$failure",function(e){return u(this.$new(),"tap",[],function(t){var r;return null==t&&(t=h),t["$text="](e),u(t,"failure=",r=[!0]),r[r.length-1]})}),l(a,"$critical",function(e){return u(this.$new(),"tap",[],function(t){var r;return null==t&&(t=h),t["$text="](e),t["$critical="](!0),u(t,"success=",r=[!0]),r[r.length-1]})}),l(a,"$fumble",function(e){return u(this.$new(),"tap",[],function(t){var r;return null==t&&(t=h),t["$text="](e),t["$fumble="](!0),u(t,"failure=",r=[!0]),r[r.length-1]})}),l(a,"$nothing",_("nothing")),l(i,"$initialize",function(e){return null==e&&(e=h),this.text=e,this.rands=h,this.detailed_rands=h,this.secret=!1,this.success=!1,this.failure=!1,this.critical=!1,this.fumble=!1},-1),i.$attr_accessor("text","rands","detailed_rands"),i.$attr_writer("secret","success","failure","critical","fumble"),l(i,"$secret?",o("secret")),l(i,"$success?",o("success")),l(i,"$failure?",o("failure")),l(i,"$critical?",o("critical")),l(i,"$fumble?",o("fumble")),l(i,"$condition=",function(e){return this.success=e,this.failure=e["$!"]()})},Opal.modules["racc/parser"]=function(e){var t,r,n,i,a,s,c,u,l,_,o=e.module,$=e.klass,h=e.truthy,d=e.const_set,f=e.defs,m=e.gvars,p=e.rb_lt,b=e.def,g=e.to_ary,v=e.send,y=e.neqeq,k=e.rb_plus,R=e.eqeq,x=e.rb_ge,T=e.rb_gt,D=e.rb_minus,w=e.rb_le,E=e.rb_times,S=e.assign_ivar_val,I=[],q=e.$r(I),O=e.nil,A=e.$$$;
1return t=I[0],r=[o(t,"Racc")].concat(I),n=e.$r(r),$(r[0],n("StandardError"),"ParseError"),h(A("::","ParseError","skip_raise")?"constant":O)||d(I[0],"ParseError",A(q("Racc"),"ParseError")),i=I[0],a=[o(i,"Racc")].concat(I),h(e.$r(a)("Racc_No_Extensions","skip_raise")?"constant":O)||d(a[0],"Racc_No_Extensions",!1),s=a[0],u=[c=$(s,null,"Parser")].concat(a),l=e.$r(u),(_=c.$$prototype).yydebug=_.racc_debug_out=_.racc_error_status=_.racc_t=_.racc_vstack=_.racc_val=_.racc_state=_.racc_tstack=O,d(u[0],"Racc_Runtime_Version","1.4.6"),d(u[0],"Racc_Runtime_Revision",["originalRevision:","1.8"]["$[]"](1)),d(u[0],"Racc_Runtime_Core_Version_R","1.4.6"),d(u[0],"Racc_Runtime_Core_Revision_R",["originalRevision:","1.8"]["$[]"](1)),d(u[0],"Racc_Main_Parsing_Routine","_racc_do_parse_rb"),d(u[0],"Racc_YY_Parse_Method","_racc_yyparse_rb"),d(u[0],"Racc_Runtime_Core_Version",l("Racc_Runtime_Core_Version_R")),d(u[0],"Racc_Runtime_Core_Revision",l("Racc_Runtime_Core_Revision_R")),d(u[0],"Racc_Runtime_Type","ruby"),f(l("Parser"),"$racc_runtime_type",function(){return l("Racc_Runtime_Type")}),b(c,"$_racc_setup",function(){var e,t,r=O,n=O;return null==m.stderr&&(m.stderr=O),h(A(this.$class(),"Racc_debug_parser"))||(this.yydebug=!1),h(null!=(e=this.yydebug)&&e!==O?"instance-variable":O)||(this.yydebug=!1),h(this.yydebug)&&(h(null!=(t=this.racc_debug_out)&&t!==O?"instance-variable":O)||(this.racc_debug_out=m.stderr),this.racc_debug_out=h(r=this.racc_debug_out)?r:m.stderr),h(p((n=A(this.$class(),"Racc_arg")).$size(),14))&&n["$[]="](13,!0),n}),b(c,"$_racc_init_sysvars",function(){return this.racc_state=[0],this.racc_tstack=[],this.racc_vstack=[],this.racc_t=O,this.racc_val=O,this.racc_read_next=!0,this.racc_user_yyerror=!1,this.racc_error_status=0}),b(c,"$do_parse",function(){return this.$__send__(l("Racc_Main_Parsing_Routine"),this.$_racc_setup(),!1)}),b(c,"$next_token",function(){return this.$raise(l("NotImplementedError"),""+this.$class()+"#next_token is not defined")}),b(c,"$_racc_do_parse_rb",function(e,t){var r,n=O,i=O,a=O,s=O,c=O,u=O,l=O,_=O;return n=null==(r=g(e))[0]?O:r[0],i=null==r[1]?O:r[1],a=null==r[2]?O:r[2],s=null==r[3]?O:r[3],null==r[4]||r[4],null==r[5]||r[5],null==r[6]||r[6],null==r[7]||r[7],null==r[8]||r[8],null==r[9]||r[9],c=null==r[10]?O:r[10],null==r[11]||r[11],null==r[12]||r[12],null==r[13]||r[13],this.$_racc_init_sysvars(),u=l=_=O,v(this,"catch",["racc_end_parse"],function t(){var r,o=null==t.$$s?this:t.$$s,$=O;for(null==o.racc_state&&(o.racc_state=O),null==o.racc_read_next&&(o.racc_read_next=O),null==o.racc_t&&(o.racc_t=O),null==o.yydebug&&(o.yydebug=O),null==o.racc_val&&(o.racc_val=O);h(!0);)for(h(_=s["$[]"](o.racc_state["$[]"](-1)))?(h(o.racc_read_next)&&y(o.racc_t,0)&&(u=null==(r=g(o.$next_token()))[0]?O:r[0],o.racc_val=null==r[1]?O:r[1],h(u)?o.racc_t=h($=c["$[]"](u))?$:1:o.racc_t=0,h(o.yydebug)&&o.$racc_read_token(o.racc_t,u,o.racc_val),o.racc_read_next=!1),h(x(_=k(_,o.racc_t),0))&&h(l=n["$[]"](_))&&R(i["$[]"](_),o.racc_state["$[]"](-1))||(l=a["$[]"](o.racc_state["$[]"](-1)))):l=a["$[]"](o.racc_state["$[]"](-1));h(l=o.$_racc_evalact(l,e)););},{$$s:this})}),b(c,"$yyparse",function(e,t){return this.$__send__(l("Racc_YY_Parse_Method"),e,t,this.$_racc_setup(),!0)}),b(c,"$_racc_yyparse_rb",function(e,t,r,n){var i,a=O,s=O,c=O,u=O,l=O,_=O,o=O;return a=null==(i=g(r))[0]?O:i[0],s=null==i[1]?O:i[1],c=null==i[2]?O:i[2],u=null==i[3]?O:i[3],null==i[4]||i[4],null==i[5]||i[5],null==i[6]||i[6],null==i[7]||i[7],null==i[8]||i[8],null==i[9]||i[9],l=null==i[10]?O:i[10],null==i[11]||i[11],null==i[12]||i[12],null==i[13]||i[13],this.$_racc_init_sysvars(),_=O,o=O,v(this,"catch",["racc_end_parse"],function n(){var i=null==n.$$s?this:n.$$s;for(null==i.racc_state&&(i.racc_state=O);!h(o=u["$[]"](i.racc_state["$[]"](-1)));)for(;h(_=i.$_racc_evalact(c["$[]"](i.racc_state["$[]"](-1)),r)););return v(e,"__send__",[t],function e(t,n){var i=null==e.$$s?this:e.$$s,$=O,d=O;for(null==i.racc_t&&(i.racc_t=O),null==i.racc_state&&(i.racc_state=O),null==i.racc_read_next&&(i.racc_read_next=O),null==t&&(t=O),null==n&&(n=O),h(t)?i.racc_t=h($=l["$[]"](t))?$:1:i.racc_t=0,i.racc_val=n,i.racc_read_next=!1,h(x(o=k(o,i.racc_t),0))&&h(_=a["$[]"](o))&&R(s["$[]"](o),i.racc_state["$[]"](-1))||(_=c["$[]"](i.racc_state["$[]"](-1)));h(_=i.$_racc_evalact(_,r)););for(;h(h($=h(d=(o=u["$[]"](i.racc_state["$[]"](-1)))["$!"]())?d:i.racc_read_next["$!"]())?$:i.racc_t["$=="](0));)for(h(o)&&h(o=k(o,i.racc_t))&&h(x(o,0))&&h(_=a["$[]"](o))&&R(s["$[]"](o),i.racc_state["$[]"](-1))||(_=c["$[]"](i.racc_state["$[]"](-1)));h(_=i.$_racc_evalact(_,r)););},{$$s:i}
1)},{$$s:this})}),b(c,"$_racc_evalact",function(e,t){var r,n=O,i=O,a=O,s=O,c=O,u=O,l=O;if(n=null==(r=g(t))[0]?O:r[0],i=null==r[1]?O:r[1],null==r[2]||r[2],a=null==r[3]?O:r[3],null==r[4]||r[4],null==r[5]||r[5],null==r[6]||r[6],null==r[7]||r[7],null==r[8]||r[8],null==r[9]||r[9],null==r[10]||r[10],s=null==r[11]?O:r[11],c=null==r[12]?O:r[12],null==r[13]||r[13],null==r[14]||r[14],h(T(e,0))&&h(p(e,s)))h(T(this.racc_error_status,0))&&!R(this.racc_t,1)&&(this.racc_error_status=D(this.racc_error_status,1)),this.racc_vstack.$push(this.racc_val),this.racc_state.$push(e),this.racc_read_next=!0,h(this.yydebug)&&(this.racc_tstack.$push(this.racc_t),this.$racc_shift(this.racc_t,this.racc_tstack,this.racc_vstack));else if(h(p(e,0))&&h(T(e,c["$-@"]()))){if(h(u=v(this,"catch",["racc_jump"],function r(){var n=null==r.$$s?this:r.$$s;return null==n.racc_state&&(n.racc_state=O),n.racc_state.$push(n.$_racc_do_reduce(t,e)),!1},{$$s:this})))switch(u.valueOf()){case 1:return this.racc_user_yyerror=!0,c["$-@"]();case 2:return s;default:this.$raise("[Racc Bug] unknown jump code")}}else if(R(e,s))h(this.yydebug)&&this.$racc_accept(),this.$throw("racc_end_parse",this.racc_vstack["$[]"](0));else if(R(e,c["$-@"]())){switch(this.racc_error_status.valueOf()){case 0:h(t["$[]"](21))||this.$on_error(this.racc_t,this.racc_val,this.racc_vstack);break;case 3:R(this.racc_t,0)&&this.$throw("racc_end_parse",O),this.racc_read_next=!0}for(this.racc_user_yyerror=!1,this.racc_error_status=3;h(!0)&&!(h(l=a["$[]"](this.racc_state["$[]"](-1)))&&h(x(l=k(l,1),0))&&h(e=n["$[]"](l))&&R(i["$[]"](l),this.racc_state["$[]"](-1)));)h(w(this.racc_state.$size(),1))&&this.$throw("racc_end_parse",O),this.racc_state.$pop(),this.racc_vstack.$pop(),h(this.yydebug)&&(this.racc_tstack.$pop(),this.$racc_e_pop(this.racc_state,this.racc_tstack,this.racc_vstack));return e}else this.$raise("[Racc Bug] unknown action "+e.$inspect());return h(this.yydebug)&&this.$racc_next_state(this.racc_state["$[]"](-1),this.racc_state),O}),b(c,"$_racc_do_reduce",function(e,t){var r,n=O,i=O,a=O,s=O,c=O,u=O,l=O,_=O,o=O,$=O,d=O,f=O,m=O,p=O,b=O,v=O,y=O,T=O,w=O;return(null==(r=g(e))[0]||r[0],null==r[1]||r[1],null==r[2]||r[2],null==r[3]||r[3],n=null==r[4]?O:r[4],i=null==r[5]?O:r[5],a=null==r[6]?O:r[6],s=null==r[7]?O:r[7],c=null==r[8]?O:r[8],u=null==r[9]?O:r[9],null==r[10]||r[10],null==r[11]||r[11],null==r[12]||r[12],l=null==r[13]?O:r[13],_=this.racc_state,o=this.racc_vstack,$=this.racc_tstack,d=E(t,-3),f=u["$[]"](d),m=u["$[]"](k(d,1)),p=u["$[]"](k(d,2)),b=[],h(this.yydebug)&&(v=$["$[]"](f["$-@"](),f)),y=o["$[]"](f["$-@"](),f),h(this.yydebug)&&$["$[]="](f["$-@"](),f,b),o["$[]="](f["$-@"](),f,b),_["$[]="](f["$-@"](),f,b),h(l)?o.$push(this.$__send__(p,y,o,y["$[]"](0))):o.$push(this.$__send__(p,y,o)),$.$push(m),h(this.yydebug)&&this.$racc_reduce(v,m,$,o),T=D(m,c),h(d=s["$[]"](T))&&h(x(d=k(d,_["$[]"](-1)),0))&&h(w=n["$[]"](d))&&R(i["$[]"](d),T))?w:a["$[]"](T)}),b(c,"$on_error",function(e,t,r){var n=O;return this.$raise(l("ParseError"),this.$sprintf("\nparse error on value %s (%s)",t.$inspect(),h(n=this.$token_to_str(e))?n:"?"))}),b(c,"$yyerror",function(){return this.$throw("racc_jump",1)}),b(c,"$yyaccept",function(){return this.$throw("racc_jump",2)}),b(c,"$yyerrok",S("racc_error_status",0)),b(c,"$racc_read_token",function(e,t,r){return this.racc_debug_out.$print("read    "),this.racc_debug_out.$print(t.$inspect(),"(",this.$racc_token2str(e),") "),this.racc_debug_out.$puts(r.$inspect()),this.racc_debug_out.$puts()}),b(c,"$racc_shift",function(e,t,r){return this.racc_debug_out.$puts("shift   "+this.$racc_token2str(e)),this.$racc_print_stacks(t,r),this.racc_debug_out.$puts()}),b(c,"$racc_reduce",function(e,t,r,n){var i=O;return(i=this.racc_debug_out).$print("reduce "),h(e["$empty?"]())?i.$print(" <none>"):v(e,"each",[],function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=O),i.$print(" ",r.$racc_token2str(t))},{$$s:this}),i.$puts(" --\x3e "+this.$racc_token2str(t)),this.$racc_print_stacks(r,n),this.racc_debug_out.$puts()}),b(c,"$racc_accept",function(){return this.racc_debug_out.$puts("accept"),this.racc_debug_out.$puts()}),b(c,"$racc_e_pop",function(e,t,r){return this.racc_debug_out.$puts("error recovering mode: pop token"),this.$racc_print_states(e),this.$racc_print_stacks(t,r),this.racc_debug_out.$puts()}),b(c,"$racc_next_state",function(e,t){return this.racc_debug_out.$puts("goto    "+e),this.$racc_print_states(t),this.racc_debug_out.$puts()}),b(c,"$racc_print_stacks",function(e,t){var r=O;return(r=this.racc_debug_out).$print("        ["),v(e,"each_index",[],function n(i){var a=null==n.$$s?this:n.$$
1s;return null==i&&(i=O),r.$print(" (",a.$racc_token2str(e["$[]"](i))," ",t["$[]"](i).$inspect(),")")},{$$s:this}),r.$puts(" ]")}),b(c,"$racc_print_states",function(e){var t=O;return(t=this.racc_debug_out).$print("        ["),v(e,"each",[],function(e){return null==e&&(e=O),t.$print(" ",e)}),t.$puts(" ]")}),b(c,"$racc_token2str",function(e){var t=O;return h(t=A(this.$class(),"Racc_token_to_s_table")["$[]"](e))?t:this.$raise("[Racc Bug] can't convert token "+e+" to string")}),b(c,"$token_to_str",function(e){return A(this.$class(),"Racc_token_to_s_table")["$[]"](e)})},Opal.modules["bcdice/arithmetic/node"]=function(e){var t,r,n,i,a,s,c,u,l,_,o,$,h,d,f,m,p,b,g,v,y,k,R,x,T,D,w,E,S,I,q,O,A=e.module,C=e.klass,z=e.def,P=e.thrower,N=e.return_ivar,L=e.send2,B=e.find_super,U=e.eqeq,M=e.const_set,F=e.eqeqeq,V=e.rb_divide,H=e.truthy,j=e.assign_ivar,G=e.alias,Y=[],W=e.nil,K=e.$$$;return t=Y[0],n=(r=[A(t,"BCDice")].concat(Y))[0],a=(i=[A(n,"Arithmetic")].concat(r))[0],s=[A(a,"Node")].concat(i),c=e.$r(s),(l=(u=C(s[0],null,"BinaryOp")).$$prototype).lhs=l.rhs=l.op=W,z(u,"$initialize",function(e,t,r){return this.lhs=e,this.op=t,this.rhs=r}),z(u,"$eval",function(t){try{P("eval_return");var r=W,n=W;return r=this.lhs.$eval(t),n=this.rhs.$eval(t),r.$send(this.op,n)}catch(t){if(t===e.t_eval_return)return t.$v;throw t}}),z(u,"$output",function(){return""+this.lhs.$output()+this.op+this.rhs.$output()}),z(u,"$s_exp",function(){return"("+this.$op_for_s_exp()+" "+this.lhs.$s_exp()+" "+this.rhs.$s_exp()+")"}),z(u,"$op_for_s_exp",N("op")),_=s[0],o=c("BinaryOp"),h=[$=C(_,o,"DivideBase")].concat(s),d=e.$r(h),(f=$.$$prototype).lhs=f.rhs=f.op=W,z($,"$initialize",function e(t,r){return e.$$p,e.$$p=null,L(this,B(this,"initialize",e,!1,!0),"initialize",[t,"/",r],null)}),z($,"$eval",function(t){try{P("eval_return");var r=W,n=W;return r=this.lhs.$eval(t),n=this.rhs.$eval(t),U(n,0)&&this.$raise(d("ZeroDivisionError")),this.$divide_and_round(r,n,t)}catch(t){if(t===e.t_eval_return)return t.$v;throw t}}),z($,"$output",function e(){var t=e.$$p||W;return e.$$p=null,""+L(this,B(this,"output",e,!1,!0),"output",[],t)+this.$rounding_method()}),$.$private(),z($,"$rounding_method",function(){return K(this.$class(),"ROUNDING_METHOD")}),z($,"$op_for_s_exp",function(){return""+this.op+this.$rounding_method()}),z($,"$divide_and_round",function(e,t,r){return this.$raise(d("NotImplementedError"))}),m=s[0],p=c("DivideBase"),g=[b=C(m,p,"DivideWithGameSystemDefault")].concat(s),v=e.$r(g),M(g[0],"ROUNDING_METHOD",""),b.$private(),z(b,"$divide_and_round",function(e,t,r){var n=W,i=W;return F(K(v("RoundType"),"CEIL"),n=r)?V(e.$to_f(),t).$ceil():F(K(v("RoundType"),"ROUND"),n)?H((i=V(e.$to_f(),t))["$negative?"]())?i.$abs().$round()["$-@"]():i.$round():V(e,t).$floor()}),y=s[0],k=c("DivideBase"),M([R=C(y,k,"DivideWithCeil")].concat(s)[0],"ROUNDING_METHOD","C"),R.$private(),z(R,"$divide_and_round",function(e,t,r){return V(e.$to_f(),t).$ceil()}),x=s[0],T=c("DivideBase"),M([D=C(x,T,"DivideWithRound")].concat(s)[0],"ROUNDING_METHOD","R"),D.$private(),z(D,"$divide_and_round",function(e,t,r){var n=W;return H((n=V(e.$to_f(),t))["$negative?"]())?n.$abs().$round()["$-@"]():n.$round()}),w=s[0],E=c("DivideBase"),M([S=C(w,E,"DivideWithFloor")].concat(s)[0],"ROUNDING_METHOD","F"),S.$private(),z(S,"$divide_and_round",function(e,t,r){return V(e,t).$floor()}),(I=C(s[0],null,"Negative")).$$prototype.body=W,z(I,"$initialize",j("body")),z(I,"$eval",function(t){try{return P("eval_return"),this.body.$eval(t)["$-@"]()}catch(t){if(t===e.t_eval_return)return t.$v;throw t}}),z(I,"$output",function(){return"-"+this.body.$output()}),z(I,"$s_exp",function(){return"(- "+this.body.$s_exp()+")"}),(q=C(s[0],null,"Parenthesis")).$$prototype.expr=W,z(q,"$initialize",j("expr")),z(q,"$eval",function(t){try{return P("eval_return"),this.expr.$eval(t)}catch(t){if(t===e.t_eval_return)return t.$v;throw t}}),z(q,"$output",function(){return"("+this.expr.$output()+")"}),z(q,"$s_exp",function(){return"(Parenthesis "+this.expr.$s_exp()+")"}),(O=C(s[0],null,"Number")).$$prototype.value=W,z(O,"$initialize",j("value")),z(O,"$eval",N("value")),z(O,"$output",function(){return this.value.$to_s()}),G(O,"s_exp","output")},Opal.modules.strscan=function(e){var t,r,n,i,a,s=e.klass,c=e.def,u=e.truthy,l=e.eqeqeq,_=e.Opal,o=e.return_ivar,$=e.send,h=e.alias,d=[],f=e.nil;return t=d[0],n=[r=s(t,null,"StringScanner")].concat(d),i=e.$r(n),(a=r.$$prototype).pos=a.string=a.working=a.matched=a.prev_pos=a.match=f,r.$attr_reader("pos","matched"),c(r,"$initialize",function(e){return this.string=e,this.pos=0,this.matched=f,this.working=e,this.match=[]}),r.$attr_reader("string"),c(r,"$beginning_of_line?",function(){return 0===this.pos||"\n"===this.string.charAt(this.pos-1)}),c(r,"$scan",function(e){var t=(e=this.$anchor(e)).exec(this.working);return null==t?this.matched=f:(this.prev_pos=this.pos,this.pos+=t[0].length,this.working=this.working.substring(t[0].length),this.matched=t[0],this.match=t,t[0])}),c(r,"$scan_until",function(e){e=this.$anchor(e);for(var t=this.working,r=0;t.length!=r;++r){var n=e.exec(t.substr(r));if(null!==n){var i=r+n[0].length,a=t.substr(0,i);return this.matched=n[0],this.match=n,this.prev_pos=this.pos+r,this.pos+=i,this.working=t.substr(i),a}}return this.matched=f}),c(r,"$[]",function(e){var t=f;if(u(this.match["$empty?"]()))return f;l(i("Symbol"),t=e)?e=e.$to_s():l(i("String"),t)||(e=_["$coerce_to!"](e,i("Integer"),"to_int"));var r=this.match;return(e<0&&(e+=r.length),e<0||e>=r.length||null==r[e])?f:r[e]}),c(r,"$check",function(e){var t=(e=this.$anchor(e)).exec(this.working);return null==t?this.matched=f:this.matched=t[0]}),c(r,"$check_until",function(e){var t=this.prev_pos,r=this.pos,n=this.working,i=this.$scan_until(e);return this.prev_pos=t,this.pos=r,this.working=n,i}),c(r,"$peek",function(e){return this.working.substring(0,e)}),c(r,"$eos?",function(){return 0===this.working.length}),c(r,"$exist?",function(e){var t=e.exec(this.working);return null==t?f:0==t.index?0:t.index+1}),c(r,"$skip",function(e){var t=(e=this.$anchor(e)).exec(this.working);if(null==t)return this.match=[],this.matched=f;var r=t[0],n=r.length;return this.matched=r,this.match=t,this.prev_pos=this.pos,this.pos+=n,this.working=this.working.substring(n),n}),c(r,"$skip_until",function(e){var t=this.$scan_until(e);return t===f?f:(this.matched=t.substr(-1),t.length)}),c(r,"$get_byte",function(){var e=f;return this.pos<this.string.length?(this.prev_pos=this.pos,this.pos+=1,e=this.matched=this.working.substring(0,1),this.working=this.working.substring(1)):this.matched=f,e}),c(r,"$match?",function(e){var t=(e=this.$anchor(e)).exec(this.working);return null==t?f:(this.prev_pos=this.pos,t[0].length)}),c(r,"$pos=",function(e){return e<0&&(e+=this.string.$length()),this.pos=e,this.working=this.string.slice(e)}),c(r,"$matched_size",function(){return this.matched===f?f:this.matched.length}),c(r,"$post_match",function(){return this.matched===f?f:this.string.substr(this.pos)}),c(r,"$pre_match",function(){return this.matched===f?f:this.string.substr(0,this.prev_pos)}),c(r,"$reset",function(){return this.working=this.string,this.matched=f,this.pos=0}),c(r,"$rest",o("working")),c(r,"$rest?",function(){return 0!==this.working.length}),c(r,"$rest_size",function(){return this.$rest().$size()}),c(r,"$terminate",function(){var e;return this.match=f,$(this,"pos=",e=[this.string.$length()]),e[e.length-1]}),c(r,"$unscan",function(){return this.pos=this.prev_pos,this.prev_pos=f,this.match=f,this}),h(r,"bol?","beginning_of_line?"),h(r,"getch","get_byte"),r.$private(),c(r,"$anchor",function(e){var t=e.toString().match(/\/([^\/]+)$/);return t=t?t[1]:void 0,RegExp("^(?:"+e.source+")",t)})},Opal.modules["bcdice/normalize"]=function(e){var t,r,n,i=e.module,a=e.eqeqeq,s=e.def,c=e.eqeq,u=[],l=e.nil;return t=u[0],r=[i(t,"BCDice")].concat(u),(n=i(r[0],"Normalize")).$module_function(),s(n,"$comparison_operator",function(e){var t=l;if(a(/<=|=</,t=e))return"<=";if(a(/>=|=>/,t))return">=";if(a(/<>|!=|=!/,t))return"!=";if(a(/</,t))return"<";if(a(/>/,t))return">";else if(a(/=/,t))return"==";else return l}),s(n,"$target_number",function(e){return c(e,"?")?e:e.$to_i()})},Opal.modules["bcdice/command/lexer"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.const_set,h=e.hash2,d=e.truthy,f=e.send,m=e.def,p=e.thrower,b=e.top,g=[],v=e.nil;return b.$require("strscan"),b.$require("bcdice/normalize"),t=g[0],n=(r=[_(t,"BCDice")].concat(g))[0],a=(i=[_(n,"Command")].concat(r))[0],c=[s=o(a,null,"Lexer")].concat(i),u=e.$r(c),(l=s.$$prototype).scanner=l.notations=v,$(c[0],"SYMBOLS",h(["+","-","*","/","(",")","?","@","#","$"],{"+":"PLUS","-":"MINUS","*":"ASTERISK","/":"SLASH","(":"PARENL",")":"PARENR","?":"QUESTION","@":"AT","#":"SHARP",$:"DOLLAR"}).$freeze()),m(s,"$initialize",function(e,t){var r,n,i=v;return e=d(i=(r=(n=e)===v||null==n?v:n.$split(" ",2))===v||null==r?v:r.$first())?i:"",this.scanner=u("StringScanner").$new(e),this.notations=f(t,"map",[],function(e){return(null==e&&(e=v),d(e["$is_a?"](u("Str
1ing"))))?u("Regexp").$new(e):e})}),m(s,"$next_token",function(){try{var e=p("return"),t=v,r=v,n=v,i=v;if(d(this.scanner["$eos?"]()))return[!1,"$"];if(f(this.notations,"each",[],function t(r){var n=null==t.$$s?this:t.$$s,i=v;if(null==n.scanner&&(n.scanner=v),null==r&&(r=v),i=n.scanner.$scan(r),!d(i))return v;e.$throw(["NOTATION",i])},{$$s:this,$$ret:e}),d(t=this.scanner.$scan(/\d+/)))return["NUMBER",t.$to_i()];if(d(r=this.scanner.$scan(/[<>!=]+/)))return r=u("Normalize").$comparison_operator(r),[d(r)?"CMP_OP":"ILLEGAL",r];return n=this.scanner.$getch().$upcase(),[d(i=u("SYMBOLS")["$[]"](n))?i:n.$to_sym(),n]}catch(t){if(t===e)return t.$v;throw t}}),m(s,"$source",function(){return this.scanner.$string()})},Opal.modules["bcdice/command/parsed"]=function(e){var t,r,n,i,a,s,c,u,l,_=e.module,o=e.klass,$=e.def,h=e.return_ivar,d=e.truthy,f=[],m=e.nil;return t=f[0],n=(r=[_(t,"BCDice")].concat(f))[0],a=(i=[_(n,"Command")].concat(r))[0],c=[s=o(a,null,"Parsed")].concat(i),u=e.$r(c),(l=s.$$prototype).critical=l.fumble=l.dollar=l.modify_number=l.question_target=l.target_number=l.prefix_number=l.command=l.suffix_number=l.cmp_op=m,s.$attr_accessor("command"),s.$attr_accessor("prefix_number"),s.$attr_accessor("suffix_number"),s.$attr_accessor("critical"),s.$attr_accessor("fumble"),s.$attr_accessor("dollar"),s.$attr_accessor("modify_number"),s.$attr_accessor("cmp_op"),s.$attr_accessor("target_number"),s.$attr_writer("question_target"),$(s,"$initialize",function(){return this.prefix_number=m,this.suffix_number=m,this.critical=m,this.fumble=m,this.dollar=m,this.cmp_op=m,this.target_number=m,this.question_target=!1}),$(s,"$question_target?",h("question_target")),$(s,"$to_s",function(e){var t=m,r=m,n=m,i=m,a=m;switch(null==e&&(e="after_command"),t=d(this.critical)?"@"+this.critical:m,r=d(this.fumble)?"#"+this.fumble:m,n=d(this.dollar)?"$"+this.dollar:m,i=u("Format").$modifier(this.modify_number),a=d(this.question_target)?"?":this.target_number,e.valueOf()){case"after_command":return[this.prefix_number,this.command,this.suffix_number,t,r,n,i,this.cmp_op,a].$join();case"after_modify_number":return[this.prefix_number,this.command,this.suffix_number,i,t,r,n,this.cmp_op,a].$join();case"after_target_number":return[this.prefix_number,this.command,this.suffix_number,i,this.cmp_op,a,t,r,n].$join();default:return m}},-1)},Opal.modules["bcdice/command/parser"]=function(e){var t,r,n,i,a,s,c,u,l,_,o,$,h,d,f,m,p,b,g,v,y,k,R,x,T,D=e.klass,w=e.module,E=e.slice,S=e.extract_kwargs,I=e.ensure_kwargs,q=e.get_kwarg,O=e.send2,A=e.find_super,C=e.def,z=e.send,P=e.eqeq,N=e.thrower,L=e.hash,B=e.const_set,U=e.truthy,M=e.to_ary,F=e.hash2,V=e.top,H=[],j=e.$r(H),G=e.nil,Y=e.$$$;return V.$require("racc/parser.rb"),V.$require("bcdice/arithmetic/node"),V.$require("bcdice/command/lexer"),V.$require("bcdice/command/parsed"),D(Y(j("BCDice"),"Command"),Y(j("Racc"),"Parser"),"Parser"),t=H[0],n=(r=[w(t,"BCDice")].concat(H))[0],i=[w(n,"Command")].concat(r),a=e.$r(i),s=i[0],c=Y(a("Racc"),"Parser"),l=[u=D(s,c,"Parser")].concat(i),_=e.$r(l),o=G,$=G,h=G,d=G,f=G,m=G,p=G,b=G,g=G,v=G,y=G,k=G,R=G,x=G,(T=u.$$prototype).notations=T.lexer=T.modifier=T.suffix_number=T.prefix_number=T.need_suffix_number=T.need_prefix_number=T.critical=T.fumble=T.dollar=T.allowed_cmp_op=T.question_target=G,C(u,"$initialize",function e(t,r){var n,i,a;return e.$$p,e.$$p=null,n=E(arguments),a=q(i=I(i=S(n)),"round_type"),O(this,A(this,"initialize",e,!1,!0),"initialize",[],null),this.notations=n,this.round_type=a,this.prefix_number=!1,this.suffix_number=!1,this.need_prefix_number=!1,this.need_suffix_number=!1,this.modifier=!0,this.critical=!1,this.fumble=!1,this.dollar=!1,this.allowed_cmp_op=[G,">=",">","<=","<","==","!="],this.question_target=!1},-2),C(u,"$disable_modifier",function(){return this.modifier=!1,this}),C(u,"$enable_prefix_number",function(){return this.prefix_number=!0,this}),C(u,"$enable_suffix_number",function(){return this.suffix_number=!0,this}),C(u,"$has_prefix_number",function(){return this.prefix_number=!0,this.need_prefix_number=!0,this}),C(u,"$has_suffix_number",function(){return this.suffix_number=!0,this.need_suffix_number=!0,this}),C(u,"$enable_critical",function(){return this.critical=!0,this}),C(u,"$enable_fumble",function(){return this.fumble=!0,this}),C(u,"$enable_dollar",function(){return this.dollar=!0,this}),C(u,"$restrict_cmp_op_to",function(e){var t;
1return t=E(arguments),this.allowed_cmp_op=t,this},-1),C(u,"$enable_question_target",function(){return this.question_target=!0,this}),C(u,"$parse",function(t){try{return this.lexer=_("Lexer").$new(t,this.notations),this.$do_parse()}catch(t){if(e.rescue(t,[_("ParseError"),_("ZeroDivisionError")]))try{return G}finally{e.pop_exception()}throw t}}),u.$private(),C(u,"$parsed",function(t,r,n,i){try{return N("eval_return"),z(_("Parsed").$new(),"tap",[],function e(a){var s,c,u,l,_,o,$,h=null==e.$$s?this:e.$$s;return(null==h.round_type&&(h.round_type=G),null==a&&(a=G),a["$command="](t["$[]"]("command")),a["$prefix_number="]((s=t["$[]"]("prefix"))===G||null==s?G:s.$eval(h.round_type)),a["$suffix_number="]((c=t["$[]"]("suffix"))===G||null==c?G:c.$eval(h.round_type)),a["$critical="]((u=r["$[]"]("critical"))===G||null==u?G:u.$eval(h.round_type)),a["$fumble="]((l=r["$[]"]("fumble"))===G||null==l?G:l.$eval(h.round_type)),a["$dollar="]((_=r["$[]"]("dollar"))===G||null==_?G:_.$eval(h.round_type)),a["$modify_number="](n.$eval(h.round_type)),a["$cmp_op="](i["$[]"]("cmp_op")),P(i["$[]"]("target"),"?"))?(a["$question_target="](!0),o=[0]):(a["$question_target="](!1),o=[($=i["$[]"]("target"))===G||null==$?G:$.$eval(h.round_type)]),z(a,"target_number=",o),o[o.length-1]},{$$s:this})}catch(t){if(t===e.t_eval_return)return t.$v;throw t}}),C(u,"$next_token",function(){return this.lexer.$next_token()}),o=e.large_array_unpack("6,6,6,6,7,28,29,17,18,5,5,5,5,6,26,12,4,45,17,18,10,11,5,10,11,6,23,24,25,26,17,18,6,20,5,33,34,17,18,6,35,5,28,29,17,18,6,,5,36,37,17,18,6,,5,36,37,17,18,6,,5,36,37,17,18,6,,5,33,34,17,18,6,,5,36,37,17,18,6,,5,36,37,17,18,6,,5,36,37,17,18,6,,5,36,37,17,18,6,,5,,,17,18,6,,5,,,17,18,,,5,23,24,25,26,56,54,55,57"),$=e.large_array_unpack("0,4,26,12,1,21,21,26,26,0,4,26,12,5,21,3,0,26,5,5,8,8,5,2,2,10,8,8,8,8,10,10,11,7,10,14,14,11,11,17,14,11,9,9,17,17,18,,17,15,15,18,18,23,,18,30,30,23,23,24,,23,31,31,24,24,25,,24,44,44,25,25,28,,25,47,47,28,28,29,,28,48,48,29,29,33,,29,49,49,33,33,34,,33,50,50,34,34,36,,34,,,36,36,37,,36,,,37,37,,,37,27,27,27,27,52,52,52,52"),h=e.large_array_unpack("-2,4,16,-3,-1,11,,33,13,35,23,30,1,,28,40,,37,44,,,-2,,51,58,65,0,106,72,79,47,54,,86,93,,100,107,,,,,,,63,,,68,75,82,89,,120,,,,,"),d=e.large_array_unpack("-35,-35,-8,-35,-7,-35,-34,-35,-16,-8,-35,-35,-5,-6,-35,-21,-24,-35,-35,-32,58,-16,-3,-35,-35,-35,-35,-16,-35,-35,-12,-13,-4,-35,-35,-33,-35,-35,-30,-31,-1,-9,-10,-11,-17,-18,-2,-14,-15,-19,-20,-22,-25,-23,-26,-27,-28,-29"),f=e.large_array_unpack("30,31,38,39,14,8,1,22,41,42,43,9,27,2,53,,,21,47,48,40,51,52,49,50,44,46,3,,,,13,,,,,,,,32"),m=e.large_array_unpack("8,8,7,7,9,3,1,5,7,7,7,4,3,2,10,,,4,8,8,5,7,7,8,8,9,5,6,,,,6,,,,,,,,6"),p=[G,6,13,3,9,-1,27,-15,-10,-1,-38],b=[G,G,G,G,G,G,19,16,15,G,G],g=e.large_array_unpack("0,0,racc_error,4,20,_reduce_1,4,20,_reduce_2,3,20,_reduce_3,3,21,_reduce_4,2,21,_reduce_5,2,21,_reduce_6,1,21,_reduce_7,0,22,_reduce_8,3,22,_reduce_9,3,22,_reduce_10,3,22,_reduce_11,2,23,_reduce_12,2,23,_reduce_13,3,23,_reduce_14,3,23,_reduce_15,0,24,_reduce_16,2,24,_reduce_17,2,24,_reduce_18,3,28,_reduce_19,3,28,_reduce_20,1,28,_reduce_none,3,27,_reduce_22,4,27,_reduce_23,1,27,_reduce_none,0,29,_reduce_25,1,29,_reduce_26,1,29,_reduce_27,1,29,_reduce_28,1,29,_reduce_29,2,26,_reduce_30,2,26,_reduce_31,1,26,_reduce_none,3,25,_reduce_33,1,25,_reduce_34"),v=35,y=58,k=L(!1,0,"error",1,"NUMBER",2,"R",3,"U",4,"C",5,"F",6,"PLUS",7,"MINUS",8,"ASTERISK",9,"SLASH",10,"PARENL",11,"PARENR",12,"AT",13,"SHARP",14,"DOLLAR",15,"CMP_OP",16,"QUESTION",17,"NOTATION",18),R=19,x=!0,B(l[0],"Racc_arg",[o,$,d,h,f,m,b,p,R,g,k,y,v,x]),U(_("Ractor","skip_raise")?"constant":G)&&_("Ractor").$make_shareable(_("Racc_arg")),B(l[0],"Racc_token_to_s_table",["$end","error","NUMBER","R","U","C","F","PLUS","MINUS","ASTERISK","SLASH","PARENL","PARENR","AT","SHARP","DOLLAR","CMP_OP","QUESTION","NOTATION","$start","expr","notation","option","modifier","target","term","unary","mul","add","round_type"]),U(_("Ractor","skip_raise")?"constant":G)&&_("Ractor").$make_shareable(_("Racc_token_to_s_table")),B(l[0],"Racc_debug_parser",!1),C(u,"$_reduce_1",function(e,t,r){var n,i=G,a=G,s=G,c=G;return U(this.modifier)||this.$raise(_("ParseError")),i=null==(n=M(e))[0]?G:n[0],a=null==n[1]?G:n[1],s=null==n[2]?G:n[2],c=null==n[3]?G:n[3],this.$parsed(i,a,s,c)}),C(u,"$_reduce_2",function(e,t,r){var n,i=G,a=G,s=G,c=G;return U(this.modifier)||this.$raise(_("ParseError")),i=null==(n=M(e))[0]?G:n[0],a=null==n[1]?G:n[1],s=null==n[2]?G:n[2],c=null==n[3]?G:n[3],this.$parsed(i,s,a,c)}),C(u,"$_reduce_3",function(e,t,r){var n,i=G,a=G,s=G;return i=null==(n=M(e))[0]?G:n[0],a=null==n[1]?G:n[1],s=null==n[2]?G:n[2],this.$parsed(i,a,Y(Y(_("Arithmetic"),"Node"),"Number").$new(0),s)}),C(u,"$_reduce_4",function(e,t,r){return U(this.prefix_number)&&U(this.suffix_number)||this.$raise(_("ParseError")),F(["command","prefix","suffix"],{command:e["$[]"](1),prefix:e["$[]"](0),suffix:e["$[]"](2)})}),C(u,"$_reduce_5",function(e,t,r){return U(this.prefix_number)||this.$raise(_("ParseError")),U(this.need_suffix_number)&&this.$raise(_("ParseError")),F(["command","prefix"],{command:e["$[]"](1),prefix:e["$[]"](0)})}),C(u,"$_reduce_6",function(e,t,r){return U(this.suffix_number)||this.$raise(_("ParseError")),U(this.need_prefix_number)&&this.$raise(_("ParseError")),F(["command","suffix"],{command:e["$[]"](0),suffix:e["$[]"](1)})}),C(u,"$_reduce_7",function(e,t,r){return(U(this.need_prefix_number)||U(this.need_suffix_number))&&this.$raise(_("ParseError")),F(["command"],{command:e["$[]"](0)})}),C(u,"$_reduce_8",function(e,t,r){return F([],{})}),C(u,"$_reduce_9",function(e,t,r){var n,i=G,a=G;return i=null==(n=M(e))[0]?G:n[0],null==n[1]||n[1],a=null==n[2]?G:n[2],U(this.critical)&&U(i["$[]"]("critical")["$nil?"]())||this.$raise(_("ParseError")),i["$[]="]("critical",a),i}),C(u,"$_reduce_10",function(e,t,r){var n,i=G,a=G;return i=null==(n=M(e))[0]?G:n[0],null==n[1]||n[1],a=null==n[2]?G:n[2],U(this.fumble)&&U(i["$[]"]("fumble")["$nil?"]())||this.$raise(_("ParseError")),i["$[]="]("fumble",a),i}),C(u,"$_reduce_11",function(e,t,r){var n,i=G,a=G;return i=null==(n=M(e))[0]?G:n[0],null==n[1]||n[1],a=null==n[2]?G:n[2],U(this.dollar)&&U(i["$[]"]("dollar")["$nil?"]())||this.$raise(_("ParseError")),i["$[]="]("dollar",a),i}),C(u,"$_reduce_12",function(e,t,r){return e["$[]"](1)}),C(u,"$_reduce_13",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"Negative").$new(e["$[]"](1))}),C(u,"$_reduce_14",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"BinaryOp").$new(e["$[]"](0),"+",e["$[]"](2))}),C(u,"$_reduce_15",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"BinaryOp").$new(e["$[]"](0),"-",e["$[]"](2))}
1),C(u,"$_reduce_16",function(e,t,r){return U(this.allowed_cmp_op["$include?"](G))||this.$raise(_("ParseError")),F([],{})}),C(u,"$_reduce_17",function(e,t,r){var n,i=G,a=G;return i=null==(n=M(e))[0]?G:n[0],a=null==n[1]?G:n[1],U(this.allowed_cmp_op["$include?"](i))||this.$raise(_("ParseError")),F(["cmp_op","target"],{cmp_op:i,target:a})}),C(u,"$_reduce_18",function(e,t,r){var n=G;return n=e["$[]"](0),U(this.question_target)||this.$raise(_("ParseError")),U(this.allowed_cmp_op["$include?"](n))||this.$raise(_("ParseError")),F(["cmp_op","target"],{cmp_op:n,target:"?"})}),C(u,"$_reduce_19",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"BinaryOp").$new(e["$[]"](0),"+",e["$[]"](2))}),C(u,"$_reduce_20",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"BinaryOp").$new(e["$[]"](0),"-",e["$[]"](2))}),C(u,"$_reduce_22",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"BinaryOp").$new(e["$[]"](0),"*",e["$[]"](2))}),C(u,"$_reduce_23",function(e,t,r){return e["$[]"](3).$new(e["$[]"](0),e["$[]"](2))}),C(u,"$_reduce_25",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"DivideWithGameSystemDefault")}),C(u,"$_reduce_26",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"DivideWithCeil")}),C(u,"$_reduce_27",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"DivideWithCeil")}),C(u,"$_reduce_28",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"DivideWithRound")}),C(u,"$_reduce_29",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"DivideWithFloor")}),C(u,"$_reduce_30",function(e,t,r){return e["$[]"](1)}),C(u,"$_reduce_31",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"Negative").$new(e["$[]"](1))}),C(u,"$_reduce_33",function(e,t,r){return e["$[]"](1)}),C(u,"$_reduce_34",function(e,t,r){return Y(Y(_("Arithmetic"),"Node"),"Number").$new(e["$[]"](0))}),C(u,"$_reduce_none",function(e,t,r){return e["$[]"](0)})},Opal.modules["bcdice/deprecated/checker"]=function(e){var t,r,n,i,a,s,c,u,l=e.module,_=e.send,o=e.eqeqeq,$=e.truthy,h=e.def,d=e.return_val,f=[],m=e.nil;return t=f[0],n=(r=[l(t,"BCDice")].concat(f))[0],a=(i=[l(n,"Deprecated")].concat(r))[0],c=[s=l(a,"Checker")].concat(i),u=e.$r(c),s.$private(),h(s,"$check_result_legacy",function(e,t,r,n){var i=m,a=m,s=m,c=m,l=m;return(i=_(t,"map",[],"sides".$to_proc()),s=(a=_(t,"map",[],"value".$to_proc())).$sum(),($((c=o([100],l=i)?this.$check_1D100(e,s,r,n):o([20],l)?this.$check_1D20(e,s,r,n):o([6,6],l)?this.$check_2D6(e,s,a,r,n):m)["$nil?"]())||$(c["$empty?"]()))&&($((c=o([10],l=i.$uniq())?this.$check_nD10(e,s,a,r,n):o([6],l)?this.$check_nD6(e,s,a,r,n):m)["$nil?"]())||$(c["$empty?"]())))?m:u("Result").$new(c.$delete_prefix(" > "))}),h(s,"$check_1D100",d(m)),h(s,"$check_1D20",d(m)),h(s,"$check_nD10",d(m)),h(s,"$check_2D6",d(m)),h(s,"$check_nD6",d(m))},Opal.modules["bcdice/base"]=function(e){var t,r,n,i,a,s,c,u,l,_,o,$=e.module,h=e.klass,d=e.slice,f=e.rb_plus,m=e.truthy,p=e.def,b=e.regexp,g=e.send,v=e.thrower,y=e.return_ivar,k=e.assign_ivar_val,R=e.eqeqeq,x=e.eqeq,T=e.return_val,D=e.range,w=e.rb_minus,E=e.rb_divide,S=e.rb_times,I=e.rb_ge,q=e.top,O=[],A=e.$r(O),C=e.nil,z=e.$$$;return q.$require("i18n"),q.$require("i18n/backend/fallbacks"),q.$require("bcdice/randomizer"),q.$require("bcdice/dice_table"),q.$require("bcdice/enum"),q.$require("bcdice/translate"),q.$require("bcdice/result"),q.$require("bcdice/command/parser"),q.$require("bcdice/deprecated/checker"),t=O[0],n=(r=[$(t,"BCDice")].concat(O))[0],a=[i=h(n,null,"Base")].concat(r),s=e.$r(a),(c=i.$$prototype).raw_input=c.randomizer=c.enabled_upcase_input=c.debug=C,l=[u=e.get_singleton_class(i)].concat(a),_=e.$r(l),u.$attr_reader("prefixes"),p(u,"$register_prefix",function(e){var t,r=C;return null==this.prefixes&&(this.prefixes=C),t=d(arguments),this.prefixes=f(m(r=this.prefixes)?r:[],t.$flatten())},-1),p(u,"$register_prefix_from_super_class",function(){return this.$register_prefix(this.$superclass().$prefixes())}),p(u,"$prefixes_pattern",function(){var e=C;return(null==this.prefixes_pattern&&(this.prefixes_pattern=C),null==this.prefixes&&(this.prefixes=C),this.prefixes_pattern=m(e=this.prefixes_pattern)?e:C,m(this.prefixes_pattern))?this.prefixes_pattern:(this.prefixes=m(e=this.prefixes)?e:[],this.prefixes.$freeze(),this.prefixes_pattern=(m(this.prefixes["$empty?"]())?/(?!)/:b(["^(S)?(",this.prefixes.$join("|"),")"],"i")).$freeze())}),p(u,"$command_pattern",function(){var e=C,t=C;return(null==this.command_pattern&&(this.command_pattern=C),null==this.prefixes&&(this.prefixes=C),this.command_pattern=m(e=this.command_pattern)?e:C,m(this.command_pattern))?this.command_pattern:(this.prefixes=m(e=this.prefixes)?e:[],this.prefixes.$freeze(),t=f(g(z(_("CommonCommand"),"COMMANDS"),"map",[],function(e){return null==e&&(e=C),z(e,"PREFIX_PATTERN").$source()}),this.prefixes),this.command_pattern=b(["^S?(",t.$join("|"),")"],"i").$freeze())}),p(u,"$eval",function(t){try{return v("eval_return"),this.$new(t).$eval()}catch(t){if(t===e.t_eval_return)return t.$v;throw t}}),i.$include(s("Translate")),i.$include(z(s("Deprecated"),"Checker")),p(i,"$initialize",function(e){return this.raw_input=e,this.sort_add_dice=!1,this.sort_barabara_dice=!1,this.d66_sort_type=z(s("D66SortType"),"NO_SORT"),this.enabled_d9=!1,this.round_type=z(s("RoundType"),"FLOOR"),this.sides_implicit_d=6,this.upper_dice_reroll_threshold=C,this.reroll_dice_reroll_threshold=C,this.default_cmp_op=C,this.default_target_number=C,this.enabled_upcase_input=!0,this.locale="ja_jp",this.randomizer=z(s("BCDice"),"Randomizer").$new(),this.debug=!1}),i.$attr_accessor("randomizer"),i.$attr_reader("d66_sort_type"),i.$attr_reader("round_type"),i.$attr_reader("sides_implicit_d"),i.$attr_reader("upper_dice_reroll_threshold"),i.$attr_reader("reroll_dice_reroll_threshold"),i.$attr_reader("default_cmp_op"),i.$attr_reader("default_target_number"),p(i,"$sort_add_dice?",
1y("sort_add_dice")),p(i,"$sort_barabara_dice?",y("sort_barabara_dice")),p(i,"$enabled_d9?",y("enabled_d9")),p(i,"$enable_debug",k("debug",!0)),p(i,"$eval",function(){var e=C,t=C,r=C;return(e=z(s("BCDice"),"Preprocessor").$process(this.raw_input,this),t=m(r=this.$dice_command(e))?r:this.$eval_common_command(this.raw_input),m(t))?(t["$rands="](this.randomizer.$rand_results()),t["$detailed_rands="](this.randomizer.$detailed_rand_results()),t):C}),p(i,"$change_text",function(e){return e}),p(i,"$check_result",function(e,t,r,n){var i=C,a=C,c=C,u=C,l=C;return m(i=this.$check_result_legacy(e,t,r,n))?i:(a=g(t,"map",[],"sides".$to_proc()),u=(c=g(t,"map",[],"value".$to_proc())).$sum(),x(i=R([100],l=a)?this.$result_1d100(e,u,r,n):R([20],l)?this.$result_1d20(e,u,r,n):R([6,6],l)?this.$result_2d6(e,u,c,r,n):C,s("Result").$nothing()))?C:m(i)?i:x(i=R([10],l=a.$uniq())?this.$result_nd10(e,u,c,r,n):R([6],l)?this.$result_nd6(e,u,c,r,n):C,s("Result").$nothing())?C:m(i)?i:this.$result_ndx(e,r,n)}),p(i,"$grich_text",T(C)),i.$private(),p(i,"$eval_common_command",function(t){try{v("eval_return");var r=v("return");return t=this.$change_text(t),g(z(s("CommonCommand"),"COMMANDS"),"each",[],function e(n){var i=null==e.$$s?this:e.$$s,a=C;if(null==i.randomizer&&(i.randomizer=C),null==n&&(n=C),a=n.$eval(t,i,i.randomizer),!m(a))return C;r.$throw(a)},{$$s:this,$$ret:r}),C}catch(t){if(t===e.t_eval_return||t===r)return t.$v;throw t}}),p(i,"$dice_command",function(e){var t=C,r=C,n=C,i=C;return(m(this.enabled_upcase_input)&&(e=e.$upcase()),m(t=this.$class().$prefixes_pattern().$match(e)))?(m(r=t["$[]"](1)["$nil?"]()["$!"]())&&(e=e["$[]"](D(1,-1,!1))),m((n=this.$eval_game_system_specific_command(e))["$is_a?"](s("Result"))))?(n["$secret="](m(i=n["$secret?"]())?i:r),n):m(n["$nil?"]())||m(n["$empty?"]())||x(n,"1")?C:g(s("Result").$new(),"tap",[],function(e){var t;return null==e&&(e=C),e["$text="](n.$to_s()),g(e,"secret=",t=[r]),t[t.length-1]}):C}),p(i,"$eval_game_system_specific_command",T(C)),p(i,"$result_ndx",function(e,t,r){return m(r["$is_a?"](s("String")))?C:m(e.$send(t,r))?s("Result").$success(this.$translate("success")):s("Result").$failure(this.$translate("failure"))}),p(i,"$result_1d100",T(C)),p(i,"$result_1d20",T(C)),p(i,"$result_nd10",T(C)),p(i,"$result_2d6",T(C)),p(i,"$result_nd6",T(C)),p(i,"$get_table_by_2d6",function(e){return this.$get_table_by_nD6(e,2)}),p(i,"$get_table_by_1d6",function(e){return this.$get_table_by_nD6(e,1)}),p(i,"$get_table_by_nD6",function(e,t){return this.$get_table_by_nDx(e,t,6)}),p(i,"$get_table_by_nDx",function(e,t,r){var n=C,i=C;return(n=this.randomizer.$roll_sum(t,r),m((i=this.$get_table_value(e["$[]"](w(n,t))))["$nil?"]()))?["1",0]:[i,n]}),p(i,"$get_table_by_1d3",function(e){var t=C,r=C,n=C,i=C;return(this.$debug("get_table_by_1d3"),t=1,r=this.randomizer.$roll_sum(t,6),this.$debug("num",r),n=E(w(r,1),2).$to_i(),this.$debug("index",n),m((i=e["$[]"](n))["$nil?"]()))?["1",0]:[i,r]}),p(i,"$get_table_by_d66_swap",function(e){var t=C;return t=this.randomizer.$roll_d66(z(s("D66SortType"),"ASC")),[this.$get_table_by_number(t,e),t]}),p(i,"$get_table_by_d66",function(e){var t=C,r=C,n=C,i=C,a=C;return(t=this.randomizer.$roll_once(6),r=this.randomizer.$roll_once(6),n=f(S(w(t,1),6),w(r,1)),i=e["$[]"](n),a=""+t+r,m(i["$nil?"]()))?["1",a]:[i,a]}),p(i,"$get_table_by_number",function(e,t,r){try{var n=v("return");return null==r&&(r="1"),g(t,"each",[],function t(r){var i=null==t.$$s?this:t.$$s,a=C;if(null==r&&(r=C),a=r["$[]"](0),!m(I(a,e)))return C;n.$throw(i.$get_table_value(r["$[]"](1)))},{$$s:this,$$ret:n}),this.$get_table_value(r)}catch(e){if(e===n)return e.$v;throw e}},-3),p(i,"$get_table_value",function(e){return m(e["$is_a?"](s("Proc")))?e.$call():e}),p(i,"$roll_tables",function(e,t){var r=C;return m(r=t["$[]"](e))?r.$roll(this.randomizer).$to_s():C}),p(i,"$debug",function(e,t){var r,n=C,i=C;return(r=d(arguments,1),m(this.debug))?(n=m(e["$is_a?"](s("String")))?e:e.$inspect(),m(r["$empty?"]()))?this.$warn(n):(i=g(r,"map",[],function(e){return(null==e&&(e=C),m(e["$is_a?"](s("String"))))?'"'+e+'"':e.$inspect()}),this.$warn(""+n+": "+i.$join(", "))):C},-2),z(z(A("I18n"),"Backend"),"Simple").$include(z(z(A("I18n"),"Backend"),"Fallbacks")),A("I18n").$load_path()["$<<"](A("Dir")["$[]"](A("File").$join("bcdice","../../i18n/**/*.yml"))),A("I18n")["$default_locale="]("ja_jp"),o=[["ja_jp"]],g(A("I18n").$fallbacks(),"defaults=",o),o[o.length-1]},Opal.modules["bcdice/format"]=function(e){var t,r,n,i,a,s,c=e.module,u=e.eqeqeq,l=e.def,_=e.truthy,o=e.eqeq,$=e.rb_gt,h=[],d=e.nil;return t=h[0],n=(r=[c(t,"BCDice")].concat(h))[0],a=[i=c(n,"Format")].concat(r),s=e.$r(a),i.$module_function(),l(i,"$comparison_operator",function(e){var t=d;return u("==",t=e)?"=":u("!=",t)?"<>":u(s("Symbol"),t)?e.$to_s():d}),l(i,"$modifier",function(e){return _(e["$nil?"]())?d:o(e,0)?"":_($(e,0))?"+"+e:e.$to_s()})},Opal.queue(function(e){var t,r,n,i,a,s,c,u,l,_,o=e.module,$=e.klass,h=e.const_set,d=e.hash2,f=e.truthy,m=e.rb_lt,p=e.rb_gt,b=e.send,g=e.rb_plus,v=e.rb_ge,y=e.rb_minus,k=e.def,R=e.rb_le,x=e.top,T=[],D=e.nil,w=e.$$$;return x.$require("bcdice/base"),x.$require("bcdice/format"),t=T[0],n=(r=[o(t,"BCDice")].concat(T))[0],i=[o(n,"GameSystem")].concat(r),a=e.$r(i),s=i[0],c=a("Base"),l=[u=$(s,c,"Ventangle")].concat(i),_=e.$r(l),u.$$prototype.randomizer=D,h(l[0],"ID","Ventangle"),h(l[0],"NAME","Ventangle"),h(l[0],"SORT_KEY","うえんたんくる"),h(l[0],"HELP_MESSAGE","基本書式 VTn@s#f$g>=T n=ダイス数(省略時2) s=スペシャル値(省略時12) f=ファンブル値(省略時2) g=レベルギャップ判定値(省略可) T=目標値(省略可)\n\n例:\nVT        デフォルトのスペシャル値・ファンブル値の判定を行う\nVT@10#3   スペシャル値10、ファンブル値3の判定を行う\nVT3@10#3  スペシャル値10、ファンブル値3の判定を、アドバンテージを1点消費してダイス3つで行う\n\nVT>=5         デフォルトのスペシャル値・ファンブル値で目標値5の判定を行う\nVT@10#3>=5    スペシャル値10、ファンブル値3で目標値5の判定を行う\nVT@10#3$5>=5  スペシャル値10、ファンブル値3で目標値5の判定を行う。この際達成値が目標値より5以上大きい場合、ギャップボーナスを表示する\nVT3@10#3>=5   スペシャル値10、ファンブル値3で目標値5の判定を、アドバンテージを1点消費してダイス3つで行う\nVT3@10#3$4>=5 スペシャル値10、ファンブル値3で目標値5の判定を、アドバンテージを1点消費してダイス3つで行う。この際達成値が目標値より4以上大きい場合、ギャップボーナスを表示する\n"),h(l[0],"DEFAULT_SPECIAL_VALUE",12),h(l[0],"DEFAULT_FUMBLE_VALUE",2),h(l[0],"DEFAULT_DICE_NUM",2),u.$register_prefix("VT"),k(u,"$eval_game_system_specific_command",function(e){var t=D,r=D,n=D,i=D,a=D,s=D,c=D,u=D,l=D,o=D,$=D,h=D,k=D,R=D;return(this.$debug("eval_game_system_specific_command Begin"),f(t=w(_("Command"),"Parser").$new("VT",d(["round_type"],{round_type:this.$round_type()})).$enable_critical().$enable_fumble().$enable_dollar().$enable_suffix_number().$restrict_cmp_op_to(D,">=").$parse(e)))?(r=f(n=t.$suffix_number())?n:_("DEFAULT_DICE_NUM"),f(m(r,_("DEFAULT_DICE_NUM"))))?D:(i=this.randomizer.$roll_barabara(r,6),f(p(r,2))?(a=0,s=b(b(b(b(i.$map(),"with_index",[],function(e,t){return null==e&&(e=D),null==t&&(t=D),d(["index","value"],{index:t,value:e})}),"sort_by",[],function(e){return null==e&&(e=D),[e["$[]"]("value"),a=g(a,1)]}).$reverse().$take(2),"sort_by",[],function(e){return null==e&&(e=D),e["$[]"]("index")}),"map",[],function(e){return null==e&&(e=D),e["$[]"]("value")})):s=i,u=g(c=s.$sum(),t.$modify_number()),l=this.$compare(c,u,t),o=f(p(r,2))?s.$to_s():D,$=f(p(t.$modify_number(),0))?""+c+_("Format").$modifier(t.$modify_number()):D,h=f(t.$target_number())&&f(t.$dollar())&&f(l["$success?"]())&&f(v(k=y(u,t.$target_number()),t.$dollar()))?this.$translate("Ventangle.level_gap",d(["gap"],{gap:k})):D,R=[t.$to_s(),i.$to_s(),o,$,u.$to_s(),l.$text(),h].$compact(),l["$text="](R.$join(" > ")),l):D}),k(u,"$compare",function(e,t,r){var n=D,i=D,a=D;return(n=f(i=r.$critical())?i:_("DEFAULT_SPECIAL_VALUE"),a=f(i=r.$fumble(
1))?i:_("DEFAULT_FUMBLE_VALUE"),f(R(e,a)))?_("Result").$fumble(this.$translate("fumble")):f(v(e,n))?_("Result").$critical(this.$translate("Ventangle.special")):f(r.$target_number())?f(t.$send(r.$cmp_op(),r.$target_number()))?_("Result").$success(this.$translate("success")):_("Result").$failure(this.$translate("failure")):_("Result").$new(D)})})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.