From 9d8ed24bb29146b35f0e06e5e4715c50a3007c02 Mon Sep 17 00:00:00 2001 From: hexenq Date: Mon, 5 Jun 2017 17:34:27 +0800 Subject: [PATCH] fix wrong pairing of kanji and phonetic notation (reported in #10) --- CHANGELOG.md | 7 +++++++ dist/browser/kuroshiro.js | 25 +++++++++++++++++-------- dist/browser/kuroshiro.min.js | 2 +- dist/node/kuroshiro.js | 27 ++++++++++++++++++--------- package.json | 2 +- src/kuroshiro.js | 25 +++++++++++++++++-------- test/kuroshiroTest.js | 6 ++++++ 7 files changed, 67 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90a9610..6c3a2f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ + +## [0.1.5](https://github.com/hexenq/kuroshiro.js/compare/0.1.4...0.1.5) (2017-06-05) + +### Bug Fixes + +* fix wrong pairing of kanji and phonetic notation (reported in [#10](https://github.com/hexenq/kuroshiro.js/issues/10)) + ## [0.1.4](https://github.com/hexenq/kuroshiro.js/compare/0.1.3...0.1.4) (2017-05-25) diff --git a/dist/browser/kuroshiro.js b/dist/browser/kuroshiro.js index a449cd0..0cd4e88 100644 --- a/dist/browser/kuroshiro.js +++ b/dist/browser/kuroshiro.js @@ -9682,23 +9682,32 @@ var convert = function(str, options){ break; case 1: var pattern = ''; + var isLastTokenKanji = false; + var subs = []; // recognize kanjis and group them for(var c=0;ct?-1:1;return n*Cn}return t===t?t:0}function f(t){var n=c(t),r=n%1;return n===n?r?n-r:n:0}function l(t,n){if("function"!=typeof t)throw new TypeError(Sn);return n=En(void 0===n?t.length-1:f(n),0),function(){for(var e=arguments,i=-1,o=En(e.length-n,0),a=Array(o);++i-1&&t%1==0&&Tn>=t}function g(t){return null!=t&&d(xn(t))&&!o(t)}function v(){}function m(t){return function(){if(null!==t){var n=t;t=null,n.apply(this,arguments)}}}function _(t){return jn&&t[jn]&&t[jn]()}function b(t){return In(Object(t))}function w(t,n){return null!=t&&(Ln.call(t,n)||"object"==typeof t&&n in t&&null===b(t))}function k(t){return Dn(Object(t))}function A(t,n){for(var r=-1,e=Array(t);++r-1&&t%1==0&&n>t}function j(t){var n=t&&t.constructor,r="function"==typeof n&&n.prototype||Vn;return t===r}function I(t){var n=j(t);if(!n&&!g(t))return k(t);var r=x(t),e=!!r,i=r||[],o=i.length;for(var a in t)!w(t,a)||e&&("length"==a||T(a,o))||n&&"constructor"==a||i.push(a);return i}function U(t){var n=-1,r=t.length;return function(){return++nr?{value:t[i],key:i}:null}}function R(t){if(g(t))return U(t);var n=_(t);return n?L(n):D(t)}function z(t){return function(){if(null===t)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,arguments)}}function B(t){return function(n,r,e){function i(t){if(s-=1,t)u=!0,e(t);else{if(u&&0>=s)return e(null);o()}}function o(){for(;t>s&&!u;){var n=a();if(null===n)return u=!0,void(0>=s&&e(null));s+=1,r(n.value,n.key,z(i))}}if(e=m(e||v),0>=t||!n)return e(null);var a=R(n),u=!1,s=0;o()}}function N(t,n,r,e){B(n)(t,r,e)}function O(t,n){return function(r,e,i){return t(r,n,e,i)}}function K(t,n){var r;if("function"!=typeof n)throw new TypeError(Wn);return t=f(t),function(){return--t>0&&(r=n.apply(this,arguments)),1>=t&&(n=void 0),r}}function F(t){return K(2,t)}function H(t,n,r){function e(t){t?r(t):++o===a&&r(null)}r=F(r||v);var i=0,o=0,a=t.length;for(0===a&&r(null);a>i;i++)n(t[i],i,z(e))}function M(t,n,r){var e=g(t)?H:Gn;e(t,n,r)}function P(t){return function(n,r,e){return t(M,n,r,e)}}function q(t,n,r,e){e=m(e||v),n=n||[];var i=[],o=0;t(n,function(t,n,e){var a=o++;r(t,function(t,n){i[a]=n,e(t)})},function(t){e(t,i)})}function V(t){return function(n,r,e,i){return t(B(r),n,e,i)}}function W(t){return h(function(n,r){var i;try{i=t.apply(this,n)}catch(o){return r(o)}e(i)&&"function"==typeof i.then?i.then(function(t){r(null,t)},function(t){r(t.message?t:new Error(t))}):r(null,i)})}function G(t,n){for(var r=-1,e=t?t.length:0;++ry;){var t=_.shift();t()}}function o(t,n){var r=g[t];r||(r=g[t]=[]),r.push(n)}function a(t){var n=g[t]||[];G(n,function(t){t()}),i()}function u(t,n){if(!d){var e=z(l(function(n,e){if(y--,e.length<=1&&(e=e[0]),n){var i={};Z(p,function(t,n){i[n]=t}),i[t]=e,d=!0,g=[],r(n,i)}else p[t]=e,a(t)}));y++;var i=n[n.length-1];n.length>1?i(p,e):i(e)}}function s(){for(var t,n=0;b.length;)t=b.pop(),n++,G(c(t),function(t){0===--w[t]&&b.push(t)});if(n!==h)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function c(n){var r=[];return Z(t,function(t,e){Kn(t)&&X(t,n,0)>=0&&r.push(e)}),r}"function"==typeof n&&(r=n,n=null),r=m(r||v);var f=I(t),h=f.length;if(!h)return r(null);n||(n=h);var p={},y=0,d=!1,g={},_=[],b=[],w={};Z(t,function(n,r){if(!Kn(n))return e(r,[n]),void b.push(r);var i=n.slice(0,n.length-1),a=i.length;return 0===a?(e(r,n),void b.push(r)):(w[r]=a,void G(i,function(u){if(!t[u])throw new Error("async.auto task `"+r+"` has a non-existent dependency in "+i.join(", "));o(u,function(){a--,0===a&&e(r,n)})}))}),s(),i()}function Y(t,n){for(var r=-1,e=t?t.length:0,i=Array(e);++rn&&(n=-n>i?0:i+n),r=r>i?i:r,0>r&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(i);++e=e?t:et(t,n,r)}function ot(t,n){for(var r=t.length;r--&&X(n,t[r],0)>-1;);return r}function at(t,n){for(var r=-1,e=t.length;++r-1;);return r}function ut(t){return t.match(Er)}function st(t){return null==t?"":rt(t)}function ct(t,n,r){if(t=st(t),t&&(r||void 0===n))return t.replace(xr,"");if(!t||!(n=rt(n)))return t;var e=ut(t),i=ut(n),o=at(e,i),a=ot(e,i)+1;return it(e,o,a).join("")}function ft(t){return t=t.toString().replace(Ur,""),t=t.match(Tr)[2].replace(" ",""),t=t?t.split(jr):[],t=t.map(function(t){return ct(t.replace(Ir,""))})}function lt(t,n){var r={};Z(t,function(t,n){function e(n,r){var e=Y(i,function(t){return n[t]});e.push(r),t.apply(null,e)}var i;if(Kn(t))i=tt(t),t=i.pop(),r[n]=i.concat(i.length>0?e:t);else if(1===t.length)r[n]=t;else{if(i=ft(t),0===t.length&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");i.pop(),r[n]=i.concat(e)}}),Q(r,n)}function ht(t){setTimeout(t,0)}function pt(t){return l(function(n,r){t(function(){n.apply(null,r)})})}function yt(){this.head=this.tail=null,this.length=0}function dt(t,n){t.length=1,t.head=t.tail=n}function gt(t,n,r){function e(t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");return u.started=!0,Kn(t)||(t=[t]),0===t.length&&u.idle()?Rr(function(){u.drain()}):(G(t,function(t){var e={data:t,callback:r||v};n?u._tasks.unshift(e):u._tasks.push(e)}),void Rr(u.process))}function i(t){return l(function(n){o-=1,G(t,function(t){G(a,function(n,r){return n===t?(a.splice(r,1),!1):void 0}),t.callback.apply(t,n),null!=n[0]&&u.error(n[0],t.data)}),o<=u.concurrency-u.buffer&&u.unsaturated(),u.idle()&&u.drain(),u.process()})}if(null==n)n=1;else if(0===n)throw new Error("Concurrency must not be zero");var o=0,a=[],u={_tasks:new yt,concurrency:n,payload:r,saturated:v,unsaturated:v,buffer:n/4,empty:v,drain:v,error:v,started:!1,paused:!1,push:function(t,n){e(t,!1,n)},kill:function(){u.drain=v,u._tasks.empty()},unshift:function(t,n){e(t,!0,n)},process:function(){for(;!u.paused&&os;s++){var c=u._tasks.shift();n.push(c),r.push(c.data)}0===u._tasks.length&&u.empty(),o+=1,a.push(n[0]),o===u.concurrency&&u.saturated();var f=z(i(n));t(r,f)}},length:function(){return u._tasks.length},running:function(){return o},workersList:function(){return a},idle:function(){return u._tasks.length+o===0},pause:function(){u.paused=!0},resume:function(){if(u.paused!==!1){u.paused=!1;for(var t=Math.min(u.concurrency,u._tasks.length),n=1;t>=n;n++)Rr(u.process)}}};return u}function vt(t,n){return gt(t,1,n)}function mt(t,n,r,e){e=m(e||v),Br(t,function(t,e,i){r(n,t,function(t,r){n=r,i(t)})},function(t){e(t,n)})}function _t(t,n,r,e){var i=[];t(n,function(t,n,e){r(t,function(t,n){i=i.concat(n||[]),e(t)})},function(t){e(t,i)})}function bt(t){return function(n,r,e){return t(Br,n,r,e)}}function wt(t){return t}function kt(t,n,r){return function(e,i,o,a){function u(t){a&&(t?a(t):a(null,r(!1)))}function s(t,e,i){return a?void o(t,function(e,u){a&&(e?(a(e),a=o=!1):n(u)&&(a(null,r(!0,t)),a=o=!1)),i()}):i()}arguments.length>3?(a=a||v,t(e,i,s,u)):(a=o,a=a||v,o=i,t(e,s,u))}}function At(t,n){return n}function Ct(t){return l(function(n,r){n.apply(null,r.concat([l(function(n,r){"object"==typeof console&&(n?console.error&&console.error(n):console[t]&&G(r,function(n){console[t](n)}))})]))})}function St(t,n,r){function e(n,e){return n?r(n):e?void t(i):r(null)}r=z(r||v);var i=l(function(t,i){return t?r(t):(i.push(e),void n.apply(this,i))});e(null,!0)}function Et(t,n,r){r=z(r||v);var e=l(function(i,o){return i?r(i):n.apply(this,o)?t(e):void r.apply(null,[null].concat(o))});t(e)}function xt(t,n,r){Et(t,function(){return!n.apply(this,arguments)},r)}function Tt(t,n,r){function e(n){return n?r(n):void t(i)}function i(t,i){return t?r(t):i?void n(e):r(null)}r=z(r||v),t(i)}function jt(t){return function(n,r,e){return t(n,e)}}function It(t,n,r){M(t,jt(n),r)}function Ut(t,n,r,e){B(n)(t,jt(r),e)}function Lt(t){return h(function(n,r){var e=!0;n.push(function(){var t=arguments;e?Rr(function(){r.apply(null,t)}):r.apply(null,t)}),t.apply(this,n),e=!1})}function Dt(t){return!t}function Rt(t,n,r,e){e=m(e||v);var i=[];t(n,function(t,n,e){r(t,function(r,o){r?e(r):(o&&i.push({index:n,value:t}),e())})},function(t){t?e(t):e(null,Y(i.sort(function(t,n){return t.index-n.index}),y("value")))})}function zt(t,n){function r(t){return t?e(t):void i(r)}var e=z(n||v),i=Lt(t);r()}function Bt(t,n,r,e){e=m(e||v);var i={};N(t,n,function(t,n,e){r(t,n,function(t,r){return t?e(t):(i[n]=r,void e())})},function(t){e(t,i)})}function Nt(t,n){return n in t}function Ot(t,n){var r=Object.create(null),e=Object.create(null);n=n||wt;var i=h(function(i,o){var a=n.apply(null,i);Nt(r,a)?Rr(function(){o.apply(null,r[a])}):Nt(e,a)?e[a].push(o):(e[a]=[o],t.apply(null,i.concat([l(function(t){r[a]=t;var n=e[a];delete e[a];for(var i=0,o=n.length;o>i;i++)n[i].apply(null,t)})])))});return i.memo=r,i.unmemoized=t,i}function Kt(t,n,r){r=r||v;var e=g(n)?[]:{};t(n,function(t,n,r){t(l(function(t,i){i.length<=1&&(i=i[0]),e[n]=i,r(t)}))},function(t){r(t,e)})}function Ft(t,n){Kt(M,t,n)}function Ht(t,n,r){Kt(B(n),t,r)}function Mt(t,n){return gt(function(n,r){t(n[0],r)},n,1)}function Pt(t,n){var r=Mt(t,n);return r.push=function(t,n,e){if(null==e&&(e=v),"function"!=typeof e)throw new Error("task callback must be a function");if(r.started=!0,Kn(t)||(t=[t]),0===t.length)return Rr(function(){r.drain()});n=n||0;for(var i=r._tasks.head;i&&n>=i.priority;)i=i.next;G(t,function(t){var o={data:t,priority:n,callback:e};i?r._tasks.insertBefore(i,o):r._tasks.push(o)}),Rr(r.process)},delete r.unshift,r}function qt(t,n){return n=m(n||v),Kn(t)?t.length?void G(t,function(t){t(n)}):n():n(new TypeError("First argument to race must be an array of functions"))}function Vt(t,n,r,e){var i=ee.call(t).reverse();mt(i,n,r,e)}function Wt(t){return h(function(n,r){return n.push(l(function(t,n){if(t)r(null,{error:t});else{var e=null;1===n.length?e=n[0]:n.length>1&&(e=n),r(null,{value:e})}})),t.apply(this,n)})}function Gt(t,n,r,e){Rt(t,n,function(t,n){r(t,function(t,r){t?n(t):n(null,!r)})},e)}function $t(t){var n;return Kn(t)?n=Y(t,Wt):(n={},Z(t,function(t,r){n[r]=Wt.call(this,t)})),n}function Zt(t){return function(){return t}}function Jt(t,n,r){function e(t,n){if("object"==typeof n)t.times=+n.times||o,t.intervalFunc="function"==typeof n.interval?n.interval:Zt(+n.interval||a);else{if("number"!=typeof n&&"string"!=typeof n)throw new Error("Invalid arguments for async.retry");t.times=+n||o}}function i(){n(function(t){t&&s++r?-1:r>e?1:0}$n(t,function(t,r){n(t,function(n,e){return n?r(n):void r(null,{value:t,criteria:e})})},function(t,n){return t?r(t):void r(null,Y(n.sort(e),y("value")))})}function tn(t,n,r){function e(){u||(o.apply(null,arguments),clearTimeout(a))}function i(){var n=t.name||"anonymous",e=new Error('Callback function "'+n+'" timed out.');e.code="ETIMEDOUT",r&&(e.info=r),u=!0,o(e)}var o,a,u=!1;return h(function(r,u){o=u,a=setTimeout(i,n),t.apply(null,r.concat(e))})}function nn(t,n,r,e){for(var i=-1,o=le(fe((n-t)/(r||1)),0),a=Array(o);o--;)a[e?o:++i]=t,t+=r;return a}function rn(t,n,r,e){Jn(nn(0,t,1),n,r,e)}function en(t,n,r,e){3===arguments.length&&(e=r,r=n,n=Kn(t)?[]:{}),e=m(e||v),M(t,function(t,e,i){r(n,t,e,i)},function(t){e(t,n)})}function on(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function an(t,n,r){if(r=z(r||v),!t())return r(null);var e=l(function(i,o){return i?r(i):t()?n(e):void r.apply(null,[null].concat(o))});n(e)}function un(t,n,r){an(function(){return!t.apply(this,arguments)},n,r)}function sn(t,n){function r(i){if(e===t.length)return n.apply(null,[null].concat(i));var o=z(l(function(t,e){return t?n.apply(null,[t].concat(e)):void r(e)}));i.push(o);var a=t[e++];a.apply(null,i)}if(n=m(n||v),!Kn(t))return n(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return n();var e=0;r([])}var cn,fn="[object Function]",ln="[object GeneratorFunction]",hn=Object.prototype,pn=hn.toString,yn="[object Symbol]",dn=Object.prototype,gn=dn.toString,vn=NaN,mn=/^\s+|\s+$/g,_n=/^[-+]0x[0-9a-f]+$/i,bn=/^0b[01]+$/i,wn=/^0o[0-7]+$/i,kn=parseInt,An=1/0,Cn=1.7976931348623157e308,Sn="Expected a function",En=Math.max,xn=y("length"),Tn=9007199254740991,jn="function"==typeof Symbol&&Symbol.iterator,In=Object.getPrototypeOf,Un=Object.prototype,Ln=Un.hasOwnProperty,Dn=Object.keys,Rn="[object Arguments]",zn=Object.prototype,Bn=zn.hasOwnProperty,Nn=zn.toString,On=zn.propertyIsEnumerable,Kn=Array.isArray,Fn="[object String]",Hn=Object.prototype,Mn=Hn.toString,Pn=9007199254740991,qn=/^(?:0|[1-9]\d*)$/,Vn=Object.prototype,Wn="Expected a function",Gn=O(N,1/0),$n=P(q),Zn=p($n),Jn=V(q),Xn=O(Jn,1),Qn=p(Xn),Yn=l(function(t,n){return l(function(r){return t.apply(null,n.concat(r))})}),tr=$(),nr=nt("object"==typeof i&&i),rr=nt("object"==typeof self&&self),er=nt("object"==typeof this&&this),ir=nr||rr||er||Function("return this")(),or=ir.Symbol,ar=1/0,ur=or?or.prototype:void 0,sr=ur?ur.toString:void 0,cr="\\ud800-\\udfff",fr="\\u0300-\\u036f\\ufe20-\\ufe23",lr="\\u20d0-\\u20f0",hr="\\ufe0e\\ufe0f",pr="["+cr+"]",yr="["+fr+lr+"]",dr="\\ud83c[\\udffb-\\udfff]",gr="(?:"+yr+"|"+dr+")",vr="[^"+cr+"]",mr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",br="\\u200d",wr=gr+"?",kr="["+hr+"]?",Ar="(?:"+br+"(?:"+[vr,mr,_r].join("|")+")"+kr+wr+")*",Cr=kr+wr+Ar,Sr="(?:"+[vr+yr+"?",yr,mr,_r,pr].join("|")+")",Er=RegExp(dr+"(?="+dr+")|"+Sr+Cr,"g"),xr=/^\s+|\s+$/g,Tr=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,jr=/,/,Ir=/(=.+)?(\s*)$/,Ur=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Lr="function"==typeof setImmediate&&setImmediate,Dr="object"==typeof n&&"function"==typeof n.nextTick;cn=Lr?setImmediate:Dr?n.nextTick:ht;var Rr=pt(cn);yt.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},yt.prototype.empty=yt,yt.prototype.insertAfter=function(t,n){n.prev=t,n.next=t.next,t.next?t.next.prev=n:this.tail=n,t.next=n,this.length+=1},yt.prototype.insertBefore=function(t,n){n.prev=t.prev,n.next=t,t.prev?t.prev.next=n:this.head=n,t.prev=n,this.length+=1},yt.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):dt(this,t)},yt.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):dt(this,t)},yt.prototype.shift=function(){return this.head&&this.removeLink(this.head)},yt.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};var zr,Br=O(N,1),Nr=l(function(t){return l(function(n){var r=this,e=n[n.length-1];"function"==typeof e?n.pop():e=v,mt(t,n,function(t,n,e){n.apply(r,t.concat([l(function(t,n){e(t,n)})]))},function(t,n){e.apply(r,[t].concat(n))})})}),Or=l(function(t){return Nr.apply(null,t.reverse())}),Kr=P(_t),Fr=bt(_t),Hr=l(function(t){var n=[null].concat(t);return h(function(t,r){return r.apply(this,n)})}),Mr=kt(M,wt,At),Pr=kt(N,wt,At),qr=kt(Br,wt,At),Vr=Ct("dir"),Wr=O(Ut,1),Gr=kt(M,Dt,Dt),$r=kt(N,Dt,Dt),Zr=O($r,1),Jr=P(Rt),Xr=V(Rt),Qr=O(Xr,1),Yr=Ct("log"),te=O(Bt,1/0),ne=O(Bt,1);zr=Dr?n.nextTick:Lr?setImmediate:ht;var re=pt(zr),ee=Array.prototype.slice,ie=P(Gt),oe=V(Gt),ae=O(oe,1),ue=kt(M,Boolean,wt),se=kt(N,Boolean,wt),ce=O(se,1),fe=Math.ceil,le=Math.max,he=O(rn,1/0),pe=O(rn,1),ye={applyEach:Zn,applyEachSeries:Qn,apply:Yn,asyncify:W,auto:Q,autoInject:lt,cargo:vt,compose:Or,concat:Kr,concatSeries:Fr,constant:Hr,detect:Mr,detectLimit:Pr,detectSeries:qr,dir:Vr,doDuring:St,doUntil:xt,doWhilst:Et,during:Tt,each:It,eachLimit:Ut,eachOf:M,eachOfLimit:N,eachOfSeries:Br,eachSeries:Wr,ensureAsync:Lt,every:Gr,everyLimit:$r,everySeries:Zr,filter:Jr,filterLimit:Xr,filterSeries:Qr,forever:zt,log:Yr,map:$n,mapLimit:Jn,mapSeries:Xn,mapValues:te,mapValuesLimit:Bt,mapValuesSeries:ne,memoize:Ot,nextTick:re,parallel:Ft,parallelLimit:Ht,priorityQueue:Pt,queue:Mt,race:qt,reduce:mt,reduceRight:Vt,reflect:Wt,reflectAll:$t,reject:ie,rejectLimit:oe,rejectSeries:ae,retry:Jt,retryable:Xt,seq:Nr,series:Qt,setImmediate:Rr,some:ue,someLimit:se,someSeries:ce,sortBy:Yt,timeout:tn,times:he,timesLimit:rn,timesSeries:pe,transform:en,unmemoize:on,until:un,waterfall:sn,whilst:an,all:Gr,any:ue,forEach:It,forEachSeries:Wr,forEachLimit:Ut,forEachOf:M,forEachOfSeries:Br,forEachOfLimit:N,inject:mt,foldl:mt,foldr:Vt,select:Jr,selectLimit:Xr,selectSeries:Qr,wrapSync:W};t["default"]=ye,t.applyEach=Zn,t.applyEachSeries=Qn,t.apply=Yn,t.asyncify=W,t.auto=Q,t.autoInject=lt,t.cargo=vt,t.compose=Or,t.concat=Kr,t.concatSeries=Fr,t.constant=Hr,t.detect=Mr,t.detectLimit=Pr,t.detectSeries=qr,t.dir=Vr,t.doDuring=St,t.doUntil=xt,t.doWhilst=Et,t.during=Tt,t.each=It,t.eachLimit=Ut,t.eachOf=M,t.eachOfLimit=N,t.eachOfSeries=Br,t.eachSeries=Wr,t.ensureAsync=Lt,t.every=Gr,t.everyLimit=$r,t.everySeries=Zr,t.filter=Jr,t.filterLimit=Xr,t.filterSeries=Qr,t.forever=zt,t.log=Yr,t.map=$n,t.mapLimit=Jn,t.mapSeries=Xn,t.mapValues=te,t.mapValuesLimit=Bt,t.mapValuesSeries=ne,t.memoize=Ot,t.nextTick=re,t.parallel=Ft,t.parallelLimit=Ht,t.priorityQueue=Pt,t.queue=Mt,t.race=qt,t.reduce=mt,t.reduceRight=Vt,t.reflect=Wt,t.reflectAll=$t,t.reject=ie,t.rejectLimit=oe,t.rejectSeries=ae,t.retry=Jt,t.retryable=Xt,t.seq=Nr,t.series=Qt,t.setImmediate=Rr,t.some=ue,t.someLimit=se,t.someSeries=ce,t.sortBy=Yt,t.timeout=tn,t.times=he,t.timesLimit=rn,t.timesSeries=pe,t.transform=en,t.unmemoize=on,t.until=un,t.waterfall=sn,t.whilst=an,t.all=Gr,t.allLimit=$r,t.allSeries=Zr,t.any=ue,t.anyLimit=se,t.anySeries=ce,t.find=Mr,t.findLimit=Pr,t.findSeries=qr,t.forEach=It,t.forEachSeries=Wr,t.forEachLimit=Ut,t.forEachOf=M,t.forEachOfSeries=Br,t.forEachOfLimit=N,t.inject=mt,t.foldl=mt,t.foldr=Vt,t.select=Jr,t.selectLimit=Xr,t.selectSeries=Qr,t.wrapSync=W})}).call(this,n("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:3}],2:[function(t,n,r){(function(t){function n(t,n){for(var r=0,e=t.length-1;e>=0;e--){var i=t[e];"."===i?t.splice(e,1):".."===i?(t.splice(e,1),r++):r&&(t.splice(e,1),r--)}if(n)for(;r--;r)t.unshift("..");return t}function e(t,n){if(t.filter)return t.filter(n);for(var r=[],e=0;e=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(r=a+"/"+r,i="/"===a.charAt(0))}return r=n(e(r.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+r||"."},r.normalize=function(t){var i=r.isAbsolute(t),o="/"===a(t,-1);return t=n(e(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},r.isAbsolute=function(t){return"/"===t.charAt(0)},r.join=function(){var t=Array.prototype.slice.call(arguments,0);return r.normalize(e(t,function(t,n){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},r.relative=function(t,n){function e(t){for(var n=0;n=0&&""===t[r];r--);return n>r?[]:t.slice(n,r-n+1)}t=r.resolve(t).substr(1),n=r.resolve(n).substr(1);for(var i=e(t.split("/")),o=e(n.split("/")),a=Math.min(i.length,o.length),u=a,s=0;a>s;s++)if(i[s]!==o[s]){u=s;break}for(var c=[],s=u;sn&&(n=t.length+n),t.substr(n,r)}}).call(this,t("_process"))},{_process:3}],3:[function(t,n,r){function e(){f=!1,u.length?c=u.concat(c):l=-1,c.length&&i()}function i(){if(!f){var t=setTimeout(e);f=!0;for(var n=c.length;n;){for(u=c,c=[];++l1)for(var r=1;re;e++)t[e]=-e+1;if(0e;e++)t[e]=-e-1},e=function(t){var e=t*l,i=p(a.signed,a.bytes,e);n(i,a.array.length,e),i.set(a.array),a.array=null,a.array=i;var o=p(h.signed,h.bytes,e);r(o,h.array.length,e),o.set(h.array),h.array=null,h.array=o},i=o+1,a={signed:u,bytes:c,array:p(u,c,t)},h={signed:s,bytes:f,array:p(s,f,t)};return a.array[o]=1,h.array[o]=o,n(a.array,o+1,a.array.length),r(h.array,o+1,h.array.length),{getBaseBuffer:function(){return a.array},getCheckBuffer:function(){return h.array},loadBaseBuffer:function(t){return a.array=t,this},loadCheckBuffer:function(t){return h.array=t,this},size:function(){return Math.max(a.array.length,h.array.length)},getBase:function(t){return a.array.length-1r;r++)h.array[r]<0&&t++;return{all:n,unused:t,efficiency:(n-t)/n}},dump:function(){var t,n="",r="";for(t=0;to;o++)if(r[o]!==e[o])return r[o]-e[o];return r.length-e.length}),i=null,this._build(o,0,0,this.keys.length),new r(this.bc)},t.prototype._build=function(t,n,r,e){var o=this.getChildrenInfo(n,r,e),a=this.findAllocatableBase(o);this.setBC(t,o,a);for(var u=0;ua;a++){var s=this.keys[a].k[t];e!==s&&(o[i++]=a-u,o[i++]=s,o[i++]=a,e=s,u=a)}return o[i++]=a-u,o=o.subarray(0,i)},t.prototype.setBC=function(t,n,r){var e=this.bc;e.setBase(t,r);var o;for(o=0;on)e=-r.getCheck(e);else{for(var i=!0,o=0;or?!0:!1},r.prototype.contain=function(t){var n=this.bc;t+=e;for(var r=d(t),i=o,u=a,s=0;s=c?-c-1:a},r.prototype.commonPrefixSearch=function(t){for(var n=d(t),r=o,e=a,u=[],s=0;s=l&&(h.v=-l-1),h.k=g(y(n,0,s+1)),u.push(h)}}}return u},r.prototype.traverse=function(t,n){var r=this.bc.getBase(t)+n;return this.bc.getCheck(r)===t?r:a},r.prototype.size=function(){return this.bc.size()},r.prototype.calc=function(){return this.bc.calc()},r.prototype.dump=function(){return this.bc.dump()};var p=function(t,n,r){if(t)switch(n){case 1:return new Int8Array(r);case 2:return new Int16Array(r);case 4:return new Int32Array(r);default:throw new RangeError("Invalid newArray parameter element_bytes:"+n)}else switch(n){case 1:return new Uint8Array(r);case 2:return new Uint16Array(r);case 4:return new Uint32Array(r);default:throw new RangeError("Invalid newArray parameter element_bytes:"+n)}},y=function(t,n,r){var e=new ArrayBuffer(r),i=new Uint8Array(e,0,r),o=t.subarray(n,r);return i.set(o),i},d=function(t){for(var n=new Uint8Array(new ArrayBuffer(4*t.length)),r=0,e=0;r=55296&&56319>=o){var a=o,u=t.charCodeAt(r++);if(!(u>=56320&&57343>=u))return null;i=1024*(a-55296)+65536+(u-56320)}else i=o;128>i?n[e++]=i:2048>i?(n[e++]=i>>>6|192,n[e++]=63&i|128):65536>i?(n[e++]=i>>>12|224,n[e++]=i>>6&63|128,n[e++]=63&i|128):1<<21>i&&(n[e++]=i>>>18|240,n[e++]=i>>12&63|128,n[e++]=i>>6&63|128,n[e++]=63&i|128)}return n.subarray(0,e)},g=function(t){for(var n,r,e,i,o,a,u,s="",c=0;cr?n=r:r>>5===6?(e=t[c++],n=(31&r)<<6|63&e):r>>4===14?(e=t[c++],i=t[c++],n=(15&r)<<12|(63&e)<<6|63&i):(e=t[c++],i=t[c++],o=t[c++],n=(7&r)<<18|(63&e)<<12|(63&i)<<6|63&o),65536>n?s+=String.fromCharCode(n):(n-=65536,a=55296|n>>10,u=56320|1023&n,s+=String.fromCharCode(a,u));return s},v={builder:function(n){return new t(n)},load:function(t,n){var e=h(0);return e.loadBaseBuffer(t),e.loadCheckBuffer(n),new r(e)}};"undefined"==typeof n?window.doublearray=v:n.exports=v}()},{}],5:[function(t,n,r){"use strict";function e(t){this.token_info_dictionary=t.token_info_dictionary,this.unknown_dictionary=t.unknown_dictionary,this.viterbi_builder=new i(t),this.viterbi_searcher=new o(t.connection_costs),this.formatter=new a}var i=t("./viterbi/ViterbiBuilder"),o=t("./viterbi/ViterbiSearcher"),a=t("./util/IpadicFormatter"),u=/、|。/;e.splitByPunctuation=function(t){for(var n=[],r=t;;){if(""===r)break;var e=r.search(u);if(0>e){n.push(r);break}n.push(r.substring(0,e+1)),r=r.substring(e+1)}return n},e.prototype.tokenize=function(t){for(var n=e.splitByPunctuation(t),r=[],i=0;i0&&(i=n[n.length-1].word_position);for(var o=0;oa)return console.log("char.def parse error. LENGTH is 1 to n:"+a),null;var u=1===e,s=1===i;return new o(t,r,u,s,a)},e.parseCategoryMapping=function(t){var n=parseInt(t[1]),r=t[2],e=3n||n>65535)&&console.log("char.def parse error. CODE is invalid:"+n),{start:n,"default":r,compatible:e}},e.parseRangeCategoryMapping=function(t){var n=parseInt(t[1]),r=parseInt(t[2]),e=t[3],i=4n||n>65535)&&console.log("char.def parse error. CODE is invalid:"+n),(!isFinite(r)||0>r||r>65535)&&console.log("char.def parse error. CODE is invalid:"+r),{start:n,end:r,"default":e,compatible:i}},e.prototype.initCategoryMappings=function(t){var n;if(null!=t)for(var r=0;r=n;n++){this.character_category_map[n]=this.invoke_definition_map.lookup(e["default"]);for(var o=0;oi;i++)if(n<<31-i>>>31===1){var o=this.invoke_definition_map.getCharacterClass(i);if(null==o)continue;r.push(o)}return r},e.prototype.lookup=function(t){var n,r=t.charCodeAt(0);return a.isSurrogatePair(t)?n=this.invoke_definition_map.lookup(u):ro;o++){var a=n.readInt();this.addMapping(r,a)}}return this},e.prototype.getFeatures=function(t){var n=parseInt(t);if(isNaN(n))return"";var r=this.dictionary.getInt(n+6);return this.pos_buffer.getString(r)},n.exports=e},{"../util/ByteBuffer":20}],13:[function(t,n,r){"use strict";function e(){this.dictionary=new a(10485760),this.target_map={},this.pos_buffer=new a(10485760),this.character_definition=null}var i=t("./TokenInfoDictionary"),o=t("./CharacterDefinition"),a=t("../util/ByteBuffer");e.prototype=Object.create(i.prototype),e.prototype.characterDefinition=function(t){return this.character_definition=t,this},e.prototype.lookup=function(t){return this.character_definition.lookup(t)},e.prototype.lookupCompatibleCategory=function(t){return this.character_definition.lookupCompatibleCategory(t)},e.prototype.loadUnknownDictionaries=function(t,n,r,e,i,a){this.loadDictionary(t),this.loadPosVector(n),this.loadTargetMap(r),this.character_definition=o.load(e,i,a)},n.exports=e},{"../util/ByteBuffer":20,"./CharacterDefinition":8,"./TokenInfoDictionary":12}],14:[function(t,n,r){"use strict";function e(){this.char_def=new i,this.char_def.invoke_definition_map=new o,this.character_category_definition=[],this.category_mapping=[]}var i=t("../CharacterDefinition"),o=t("../InvokeDefinitionMap"),a=/^(\w+)\s+(\d)\s+(\d)\s+(\d)/,u=/^(0x[0-9A-F]{4})(?:\s+([^#\s]+))(?:\s+([^#\s]+))*/,s=/^(0x[0-9A-F]{4})\.\.(0x[0-9A-F]{4})(?:\s+([^#\s]+))(?:\s+([^#\s]+))*/;e.prototype.putLine=function(t){var n=a.exec(t);if(null!=n){var r=this.character_category_definition.length,e=i.parseCharCategory(r,n);if(null==e)return;return void this.character_category_definition.push(e)}var o=u.exec(t);if(null!=o){var c=i.parseCategoryMapping(o);this.category_mapping.push(c)}var f=s.exec(t);if(null!=f){var l=i.parseRangeCategoryMapping(f);this.category_mapping.push(l)}},e.prototype.build=function(){return this.char_def.invoke_definition_map.init(this.character_category_definition),this.char_def.initCategoryMappings(this.category_mapping),this.char_def},n.exports=e},{"../CharacterDefinition":8,"../InvokeDefinitionMap":11}],15:[function(t,n,r){"use strict";function e(){this.lines=0,this.connection_cost=null}var i=t("../ConnectionCosts");e.prototype.putLine=function(t){if(0===this.lines){var n=t.split(" "),r=n[0],e=n[1];if(0>r||0>e)throw"Parse error of matrix.def";return this.connection_cost=new i(r,e),this.lines++,this}var o=t.split(" ");if(3!==o.length)return this;var a=parseInt(o[0]),u=parseInt(o[1]),s=parseInt(o[2]);if(0>a||0>u||!isFinite(a)||!isFinite(u)||this.connection_cost.forward_dimension<=a||this.connection_cost.backward_dimension<=u)throw"Parse error of matrix.def";return this.connection_cost.put(a,u,s),this.lines++,this},e.prototype.build=function(){return this.connection_cost},n.exports=e},{"../ConnectionCosts":9}],16:[function(t,n,r){"use strict";function e(){this.tid_entries=[],this.unk_entries=[],this.cc_builder=new u,this.cd_builder=new s}var i=t("doublearray"),o=t("../DynamicDictionaries"),a=t("../TokenInfoDictionary"),u=t("./ConnectionCostsBuilder"),s=t("./CharacterDefinitionBuilder"),c=t("../UnknownDictionary");e.prototype.addTokenInfoDictionary=function(t){var n=t.split(",");return this.tid_entries.push(n),this},e.prototype.putCostMatrixLine=function(t){return this.cc_builder.putLine(t),this},e.prototype.putCharDefLine=function(t){return this.cd_builder.putLine(t),this},e.prototype.putUnkDefLine=function(t){return this.unk_entries.push(t.split(",")),this},e.prototype.build=function(){var t=this.buildTokenInfoDictionary(),n=this.buildUnknownDictionary();return new o(t.trie,t.token_info_dictionary,this.cc_builder.build(),n)},e.prototype.buildTokenInfoDictionary=function(){var t=new a,n=t.buildDictionary(this.tid_entries),r=this.buildDoubleArray();for(var e in n){var i=n[e],o=r.lookup(i);t.addMapping(o,e)}return{trie:r,token_info_dictionary:t}},e.prototype.buildUnknownDictionary=function(){var t=new c,n=t.buildDictionary(this.unk_entries),r=this.cd_builder.build();t.characterDefinition(r);for(var e in n){var i=n[e],o=r.invoke_definition_map.lookup(i);t.addMapping(o,e)}return t},e.prototype.buildDoubleArray=function(){var t=0,n=this.tid_entries.map(function(n){var r=n[0];return{k:r,v:t++}}),r=i.builder(1048576);return r.build(n)},n.exports=e},{"../DynamicDictionaries":10,"../TokenInfoDictionary":12,"../UnknownDictionary":13,"./CharacterDefinitionBuilder":14,"./ConnectionCostsBuilder":15,doublearray:4}],17:[function(t,n,r){"use strict";var e=t("./TokenizerBuilder"),i=t("./dict/builder/DictionaryBuilder"),o={builder:function(t){return new e(t)},dictionaryBuilder:function(){return new i}};n.exports=o},{"./TokenizerBuilder":6,"./dict/builder/DictionaryBuilder":16}],18:[function(t,n,r){"use strict";function e(t){o.apply(this,[t])}var i=t("zlibjs/bin/gunzip.min.js"),o=t("./DictionaryLoader");e.prototype=Object.create(o.prototype),e.prototype.loadArrayBuffer=function(t,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){200!==this.status&&n(r.statusText,null);var t=this.response,e=new i.Zlib.Gunzip(new Uint8Array(t)),o=e.decompress();n(null,o.buffer)},r.onerror=function(t){n(t,null)},r.send()},n.exports=e},{"./DictionaryLoader":19,"zlibjs/bin/gunzip.min.js":28}],19:[function(t,n,r){"use strict";function e(t){this.dic=new a,this.dic_path=t}var i=t("path"),o=t("async"),a=t("../dict/DynamicDictionaries");e.prototype.loadArrayBuffer=function(t,n){throw new Error("DictionaryLoader#loadArrayBuffer should be overwrite")},e.prototype.load=function(t){var n=this.dic,r=this.dic_path,e=this.loadArrayBuffer;o.parallel([function(t){o.map(["base.dat.gz","check.dat.gz"],function(t,n){e(i.join(r,t),function(t,r){return t?n(t):void n(null,r)})},function(r,e){if(r)return t(r);var i=new Int32Array(e[0]),o=new Int32Array(e[1]);n.loadTrie(i,o),t(null)})},function(t){o.map(["tid.dat.gz","tid_pos.dat.gz","tid_map.dat.gz"],function(t,n){e(i.join(r,t),function(t,r){return t?n(t):void n(null,r)})},function(r,e){if(r)return t(r);var i=new Uint8Array(e[0]),o=new Uint8Array(e[1]),a=new Uint8Array(e[2]);n.loadTokenInfoDictionaries(i,o,a),t(null)})},function(t){e(i.join(r,"cc.dat.gz"),function(r,e){if(r)return t(r);var i=new Int16Array(e);n.loadConnectionCosts(i),t(null)})},function(t){o.map(["unk.dat.gz","unk_pos.dat.gz","unk_map.dat.gz","unk_char.dat.gz","unk_compat.dat.gz","unk_invoke.dat.gz"],function(t,n){e(i.join(r,t),function(t,r){return t?n(t):void n(null,r)})},function(r,e){if(r)return t(r);var i=new Uint8Array(e[0]),o=new Uint8Array(e[1]),a=new Uint8Array(e[2]),u=new Uint8Array(e[3]),s=new Uint32Array(e[4]),c=new Uint8Array(e[5]);n.loadUnknownDictionaries(i,o,a,u,s,c),t(null)})}],function(r){t(r,n)})},n.exports=e},{"../dict/DynamicDictionaries":10,async:1,path:2}],20:[function(t,n,r){"use strict";function e(t){var n;if(null==t)n=1048576;else{if("number"!=typeof t){if(t instanceof Uint8Array)return this.buffer=t,void(this.position=0);throw typeof t+" is invalid parameter type for ByteBuffer constructor"}n=t}this.buffer=new Uint8Array(n),this.position=0}var i=function(t){for(var n=new Uint8Array(4*t.length),r=0,e=0;r=55296&&56319>=o){var a=o,u=t.charCodeAt(r++);if(!(u>=56320&&57343>=u))return null;i=1024*(a-55296)+65536+(u-56320)}else i=o;128>i?n[e++]=i:2048>i?(n[e++]=i>>>6|192,n[e++]=63&i|128):65536>i?(n[e++]=i>>>12|224,n[e++]=i>>6&63|128,n[e++]=63&i|128):1<<21>i&&(n[e++]=i>>>18|240,n[e++]=i>>12&63|128,n[e++]=i>>6&63|128,n[e++]=63&i|128)}return n.subarray(0,e)},o=function(t){for(var n,r,e,i,o,a,u,s="",c=0;cr?n=r:r>>5===6?(e=t[c++],n=(31&r)<<6|63&e):r>>4===14?(e=t[c++],i=t[c++],n=(15&r)<<12|(63&e)<<6|63&i):(e=t[c++],i=t[c++],o=t[c++],n=(7&r)<<18|(63&e)<<12|(63&i)<<6|63&o),65536>n?s+=String.fromCharCode(n):(n-=65536,a=55296|n>>10,u=56320|1023&n,s+=String.fromCharCode(a,u));return s};e.prototype.size=function(){return this.buffer.length},e.prototype.reallocate=function(){var t=new Uint8Array(2*this.buffer.length);t.set(this.buffer),this.buffer=t},e.prototype.shrink=function(){return this.buffer=this.buffer.subarray(0,this.position),this.buffer},e.prototype.put=function(t){this.buffer.length65535)throw t+" is over short value";var n=255&t,r=(65280&t)>>8;this.put(n),this.put(r)},e.prototype.getShort=function(t){if(null==t&&(t=this.position,this.position+=2),this.buffer.length4294967295)throw t+" is over integer value";var n=255&t,r=(65280&t)>>8,e=(16711680&t)>>16,i=(4278190080&t)>>24;this.put(n),this.put(r),this.put(e),this.put(i)},e.prototype.getInt=function(t){if(null==t&&(t=this.position,this.position+=4),this.buffer.length=55296&&56319>=e&&r=56320&&57343>=n)?1024*(e-55296)+n-56320+65536:e},e.prototype.toString=function(){return this.str},e.isSurrogatePair=function(t){var n=t.charCodeAt(0);return n>=55296&&56319>=n?!0:!1},n.exports=e},{}],23:[function(t,n,r){"use strict";function e(t){this.trie=t.trie,this.token_info_dictionary=t.token_info_dictionary,this.unknown_dictionary=t.unknown_dictionary}var i=t("./ViterbiNode"),o=t("./ViterbiLattice"),a=t("../util/SurrogateAwareString");e.prototype.build=function(t){for(var n,r,e,u,s,c=new o,f=new a(t),l=0;ll&&(o=f,u=l)}a.prev=o,a.shortest_cost=u}}}return t},e.prototype.backward=function(t){var n=[],r=t.nodes_end_at[t.nodes_end_at.length-1][0],e=r.prev;if(null==e)return[];for(;"BOS"!==e.type;){if(n.push(e),null==e.prev)return[];e=e.prev}return n.reverse()},n.exports=e},{}],27:[function(n,r,e){var i,o=[].indexOf||function(t){for(var n=0,r=this.length;r>n;n++)if(n in this&&this[n]===t)return n;return-1};i=i||{},i.version="1.3.7","function"==typeof t&&t.amd&&t("wanakana",[],function(){return i}),i.LOWERCASE_START=97,i.LOWERCASE_END=122,i.UPPERCASE_START=65,i.UPPERCASE_END=90,i.HIRAGANA_START=12353,i.HIRAGANA_END=12438,i.KATAKANA_START=12449,i.KATAKANA_END=12538,i.LOWERCASE_FULLWIDTH_START=65345,i.LOWERCASE_FULLWIDTH_END=65370,i.UPPERCASE_FULLWIDTH_START=65313,i.UPPERCASE_FULLWIDTH_END=65338,i.defaultOptions={useObseleteKana:!1,IMEMode:!1},i.bind=function(t){return t.addEventListener("input",i._onInput)},i.unbind=function(t){return t.removeEventListener("input",i._onInput)},i._onInput=function(t){var n,r,e,o,a,u;if(n=t.target,a=n.selectionStart,u=n.value.length,e=i._convertFullwidthCharsToASCII(n.value),r=i.toKana(e,{IMEMode:!0}),e!==r){if(n.value=r,"number"==typeof n.selectionStart)return n.selectionStart=n.selectionEnd=n.value.length;if("undefined"!=typeof n.createTextRange)return n.focus(),o=n.createTextRange(),o.collapse(!1),o.select()}},i._extend=function(t,n){var r;if(null==t)return n;for(r in n)null==t[r]&&null!=n[r]&&(t[r]=n[r]);return t},i._isCharInRange=function(t,n,r){var e;return e=t.charCodeAt(0),e>=n&&r>=e},i._isCharVowel=function(t,n){var r;return null==n&&(n=!0),r=n?/[aeiouy]/:/[aeiou]/,-1!==t.toLowerCase().charAt(0).search(r)},i._isCharConsonant=function(t,n){var r;return null==n&&(n=!0),r=n?/[bcdfghjklmnpqrstvwxyz]/:/[bcdfghjklmnpqrstvwxz]/,-1!==t.toLowerCase().charAt(0).search(r)},i._isCharKatakana=function(t){return i._isCharInRange(t,i.KATAKANA_START,i.KATAKANA_END)},i._isCharHiragana=function(t){return i._isCharInRange(t,i.HIRAGANA_START,i.HIRAGANA_END)},i._isCharKana=function(t){return i._isCharHiragana(t)||i._isCharKatakana(t)},i._isCharNotKana=function(t){return!i._isCharHiragana(t)&&!i._isCharKatakana(t)},i._convertFullwidthCharsToASCII=function(t){var n,r,e,o,a,u;for(r=t.split(""),o=a=0,u=r.length;u>a;o=++a)n=r[o],e=n.charCodeAt(0),i._isCharInRange(n,i.LOWERCASE_FULLWIDTH_START,i.LOWERCASE_FULLWIDTH_END)&&(r[o]=String.fromCharCode(e-i.LOWERCASE_FULLWIDTH_START+i.LOWERCASE_START)),i._isCharInRange(n,i.UPPERCASE_FULLWIDTH_START,i.UPPERCASE_FULLWIDTH_END)&&r[o](String.fromCharCode(e-i.UPPERCASE_FULLWIDTH_START+i.UPPERCASE_START));return r.join("")},i._katakanaToHiragana=function(t){var n,r,e,o,a,u,s;for(r=[],s=t.split(""),a=0,u=s.length;u>a;a++)o=s[a],i._isCharKatakana(o)?(n=o.charCodeAt(0),n+=i.HIRAGANA_START-i.KATAKANA_START,e=String.fromCharCode(n),r.push(e)):r.push(o);return r.join("")},i._hiraganaToKatakana=function(t){var n,r,e,o,a,u,s;for(e=[],s=t.split(""),a=0,u=s.length;u>a;a++)r=s[a],i._isCharHiragana(r)?(n=r.charCodeAt(0),n+=i.KATAKANA_START-i.HIRAGANA_START,o=String.fromCharCode(n),e.push(o)):e.push(r);return e.join("")},i._hiraganaToRomaji=function(t,n){var r,e,o,a,u,s,c,f,l,h;for(n=i._extend(n,i.defaultOptions),u=t.length,l=[],o=0,e=0,s=2,a=function(){return t.substr(o,e)},f=function(){return e=Math.min(s,u-o)};u>o;){for(f();e>0;){if(r=a(),i.isKatakana(r)&&(r=i._katakanaToHiragana(r)),"っ"===r.charAt(0)&&1===e&&u-1>o){c=!0,h="";break}if(h=i.J_to_R[r],null!=h&&c&&(h=h.charAt(0).concat(h),c=!1),null!=h)break;e--}null==h&&(h=r),l.push(h),o+=e||1}return l.join("")},i._romajiToHiragana=function(t,n){return i._romajiToKana(t,n,!0)},i._romajiToKana=function(t,n,r){var e,a,u,s,c,f,l,h,p,y;for(null==r&&(r=!1),n=i._extend(n,i.defaultOptions),p=t.length,l=[],s=0,y=3,c=function(){return t.substr(s,u)},f=function(t){return i._isCharInRange(t,i.UPPERCASE_START,i.UPPERCASE_END)};p>s;){for(u=Math.min(y,p-s);u>0;){if(e=c(),a=e.toLowerCase(),o.call(i.FOUR_CHARACTER_EDGE_CASES,a)>=0&&p-s>=4)u++,e=c(),a=e.toLowerCase();else{if("n"===a.charAt(0)){if(n.IMEMode&&"'"===a.charAt(1)&&2===u){h="ん";break}i._isCharConsonant(a.charAt(1),!1)&&i._isCharVowel(a.charAt(2))&&(u=1,e=c(),a=e.toLowerCase())}"n"!==a.charAt(0)&&i._isCharConsonant(a.charAt(0))&&e.charAt(0)===e.charAt(1)&&(u=1,a=e=i._isCharInRange(e.charAt(0),i.UPPERCASE_START,i.UPPERCASE_END)?"ッ":"っ")}if(h=i.R_to_J[a],null!=h)break;4===u?u-=2:u--}null==h&&(e=i._convertPunctuation(e),h=e),(null!=n?n.useObseleteKana:void 0)&&("wi"===a&&(h="ゐ"),"we"===a&&(h="ゑ")),n.IMEMode&&"n"===a.charAt(0)&&("y"===t.charAt(s+1).toLowerCase()&&i._isCharVowel(t.charAt(s+2))===!1||s===p-1||i.isKana(t.charAt(s+1)))&&(h=e.charAt(0)),r||f(e.charAt(0))&&(h=i._hiraganaToKatakana(h)),l.push(h),s+=u||1}return l.join("")},i._convertPunctuation=function(t,n){return" "===t?" ":"-"===t?"ー":t},i.isHiragana=function(t){var n;return n=t.split(""),n.every(i._isCharHiragana)},i.isKatakana=function(t){var n;return n=t.split(""),n.every(i._isCharKatakana)},i.isKana=function(t){var n;return n=t.split(""),n.every(function(t){return i.isHiragana(t)||i.isKatakana(t)})},i.isRomaji=function(t){var n;return n=t.split(""),n.every(function(t){return!i.isHiragana(t)&&!i.isKatakana(t)})},i.toHiragana=function(t,n){return i.isRomaji(t)?t=i._romajiToHiragana(t,n):i.isKatakana(t)?t=i._katakanaToHiragana(t,n):t},i.toKatakana=function(t,n){return i.isHiragana(t)?t=i._hiraganaToKatakana(t,n):i.isRomaji(t)?(t=i._romajiToHiragana(t,n),t=i._hiraganaToKatakana(t,n)):t},i.toKana=function(t,n){return t=i._romajiToKana(t,n)},i.toRomaji=function(t,n){return t=i._hiraganaToRomaji(t)},i.R_to_J={a:"あ",i:"い",u:"う",e:"え",o:"お",yi:"い",wu:"う",whu:"う",xa:"ぁ",xi:"ぃ",xu:"ぅ",xe:"ぇ",xo:"ぉ",xyi:"ぃ",xye:"ぇ",ye:"いぇ",wha:"うぁ",whi:"うぃ",whe:"うぇ",who:"うぉ",wi:"うぃ",we:"うぇ",va:"ゔぁ",vi:"ゔぃ",vu:"ゔ",ve:"ゔぇ",vo:"ゔぉ",vya:"ゔゃ",vyi:"ゔぃ",vyu:"ゔゅ",vye:"ゔぇ",vyo:"ゔょ",ka:"か",ki:"き",ku:"く",ke:"け",ko:"こ",lka:"ヵ",lke:"ヶ",xka:"ヵ",xke:"ヶ",kya:"きゃ",kyi:"きぃ",kyu:"きゅ",kye:"きぇ",kyo:"きょ",ca:"か",ci:"き",cu:"く",ce:"け",co:"こ",lca:"ヵ",lce:"ヶ",xca:"ヵ",xce:"ヶ",qya:"くゃ",qyu:"くゅ",qyo:"くょ",qwa:"くぁ",qwi:"くぃ",qwu:"くぅ",qwe:"くぇ",qwo:"くぉ",qa:"くぁ",qi:"くぃ",qe:"くぇ",qo:"くぉ",kwa:"くぁ",qyi:"くぃ",qye:"くぇ",ga:"が",gi:"ぎ",gu:"ぐ",ge:"げ",go:"ご",gya:"ぎゃ",gyi:"ぎぃ",gyu:"ぎゅ",gye:"ぎぇ",gyo:"ぎょ",gwa:"ぐぁ",gwi:"ぐぃ",gwu:"ぐぅ",gwe:"ぐぇ",gwo:"ぐぉ",sa:"さ",si:"し",shi:"し",su:"す",se:"せ",so:"そ",za:"ざ",zi:"じ",zu:"ず",ze:"ぜ",zo:"ぞ",ji:"じ",sya:"しゃ",syi:"しぃ",syu:"しゅ",sye:"しぇ",syo:"しょ",sha:"しゃ",shu:"しゅ",she:"しぇ",sho:"しょ",shya:"しゃ",shyu:"しゅ",shye:"しぇ",shyo:"しょ",swa:"すぁ",swi:"すぃ",swu:"すぅ",swe:"すぇ",swo:"すぉ",zya:"じゃ",zyi:"じぃ",zyu:"じゅ",zye:"じぇ",zyo:"じょ",ja:"じゃ",ju:"じゅ",je:"じぇ",jo:"じょ",jya:"じゃ",jyi:"じぃ",jyu:"じゅ",jye:"じぇ",jyo:"じょ",ta:"た",ti:"ち",tu:"つ",te:"て",to:"と",chi:"ち",tsu:"つ",ltu:"っ",xtu:"っ",tya:"ちゃ",tyi:"ちぃ",tyu:"ちゅ",tye:"ちぇ",tyo:"ちょ",cha:"ちゃ",chu:"ちゅ",che:"ちぇ",cho:"ちょ",cya:"ちゃ",cyi:"ちぃ",cyu:"ちゅ",cye:"ちぇ",cyo:"ちょ",chya:"ちゃ",chyu:"ちゅ",chye:"ちぇ",chyo:"ちょ",tsa:"つぁ",tsi:"つぃ",tse:"つぇ",tso:"つぉ",tha:"てゃ",thi:"てぃ",thu:"てゅ",the:"てぇ",tho:"てょ",twa:"とぁ",twi:"とぃ",twu:"とぅ",twe:"とぇ",two:"とぉ",da:"だ",di:"ぢ",du:"づ",de:"で","do":"ど",dya:"ぢゃ",dyi:"ぢぃ",dyu:"ぢゅ",dye:"ぢぇ",dyo:"ぢょ",dha:"でゃ",dhi:"でぃ",dhu:"でゅ",dhe:"でぇ",dho:"でょ",dwa:"どぁ",dwi:"どぃ",dwu:"どぅ",dwe:"どぇ",dwo:"どぉ",na:"な",ni:"に",nu:"ぬ",ne:"ね",no:"の",nya:"にゃ",nyi:"にぃ",nyu:"にゅ",nye:"にぇ",nyo:"にょ",ha:"は",hi:"ひ",hu:"ふ",he:"へ",ho:"ほ",fu:"ふ",hya:"ひゃ",hyi:"ひぃ",hyu:"ひゅ",hye:"ひぇ",hyo:"ひょ",fya:"ふゃ",fyu:"ふゅ",fyo:"ふょ",fwa:"ふぁ",fwi:"ふぃ",fwu:"ふぅ",fwe:"ふぇ",fwo:"ふぉ",fa:"ふぁ",fi:"ふぃ",fe:"ふぇ",fo:"ふぉ",fyi:"ふぃ",fye:"ふぇ",ba:"ば",bi:"び",bu:"ぶ",be:"べ",bo:"ぼ",bya:"びゃ",byi:"びぃ",byu:"びゅ",bye:"びぇ",byo:"びょ",pa:"ぱ",pi:"ぴ",pu:"ぷ",pe:"ぺ",po:"ぽ",pya:"ぴゃ",pyi:"ぴぃ",pyu:"ぴゅ",pye:"ぴぇ",pyo:"ぴょ",ma:"ま",mi:"み",mu:"む",me:"め",mo:"も",mya:"みゃ",myi:"みぃ",myu:"みゅ",mye:"みぇ",myo:"みょ",ya:"や",yu:"ゆ",yo:"よ",xya:"ゃ",xyu:"ゅ",xyo:"ょ",ra:"ら",ri:"り",ru:"る",re:"れ",ro:"ろ",rya:"りゃ",ryi:"りぃ",ryu:"りゅ",rye:"りぇ",ryo:"りょ",la:"ら",li:"り",lu:"る",le:"れ",lo:"ろ",lya:"りゃ",lyi:"りぃ",lyu:"りゅ",lye:"りぇ",lyo:"りょ",wa:"わ",wo:"を",lwe:"ゎ",xwa:"ゎ",n:"ん",nn:"ん","n ":"ん",xn:"ん",ltsu:"っ"},i.FOUR_CHARACTER_EDGE_CASES=["lts","chy","shy"],i.J_to_R={"あ":"a","い":"i","う":"u","え":"e","お":"o","ゔぁ":"va","ゔぃ":"vi","ゔ":"vu","ゔぇ":"ve","ゔぉ":"vo","か":"ka","き":"ki","きゃ":"kya","きぃ":"kyi","きゅ":"kyu","く":"ku","け":"ke","こ":"ko","が":"ga","ぎ":"gi","ぐ":"gu","げ":"ge","ご":"go","ぎゃ":"gya","ぎぃ":"gyi","ぎゅ":"gyu","ぎぇ":"gye","ぎょ":"gyo","さ":"sa","す":"su","せ":"se","そ":"so","ざ":"za","ず":"zu","ぜ":"ze","ぞ":"zo","し":"shi","しゃ":"sha","しゅ":"shu","しょ":"sho","じ":"ji","じゃ":"ja","じゅ":"ju","じょ":"jo","た":"ta","ち":"chi","ちゃ":"cha","ちゅ":"chu","ちょ":"cho","つ":"tsu","て":"te","と":"to","だ":"da","ぢ":"di","づ":"du","で":"de","ど":"do","な":"na","に":"ni","にゃ":"nya","にゅ":"nyu","にょ":"nyo","ぬ":"nu","ね":"ne","の":"no","は":"ha","ひ":"hi","ふ":"fu","へ":"he","ほ":"ho","ひゃ":"hya","ひゅ":"hyu","ひょ":"hyo","ふぁ":"fa","ふぃ":"fi","ふぇ":"fe","ふぉ":"fo","ば":"ba","び":"bi","ぶ":"bu","べ":"be","ぼ":"bo","びゃ":"bya","びゅ":"byu","びょ":"byo","ぱ":"pa","ぴ":"pi","ぷ":"pu","ぺ":"pe","ぽ":"po","ぴゃ":"pya","ぴゅ":"pyu","ぴょ":"pyo","ま":"ma","み":"mi","む":"mu","め":"me","も":"mo","みゃ":"mya","みゅ":"myu","みょ":"myo","や":"ya","ゆ":"yu","よ":"yo","ら":"ra","り":"ri","る":"ru","れ":"re","ろ":"ro","りゃ":"rya","りゅ":"ryu","りょ":"ryo","わ":"wa","を":"wo","ん":"n","ゐ":"wi","ゑ":"we","きぇ":"kye","きょ":"kyo","じぃ":"jyi","じぇ":"jye","ちぃ":"cyi","ちぇ":"che","ひぃ":"hyi","ひぇ":"hye","びぃ":"byi","びぇ":"bye","ぴぃ":"pyi","ぴぇ":"pye","みぇ":"mye","みぃ":"myi","りぃ":"ryi","りぇ":"rye","にぃ":"nyi","にぇ":"nye","しぃ":"syi","しぇ":"she","いぇ":"ye","うぁ":"wha","うぉ":"who","うぃ":"wi","うぇ":"we","ゔゃ":"vya","ゔゅ":"vyu","ゔょ":"vyo","すぁ":"swa","すぃ":"swi","すぅ":"swu","すぇ":"swe","すぉ":"swo","くゃ":"qya","くゅ":"qyu","くょ":"qyo","くぁ":"qwa","くぃ":"qwi","くぅ":"qwu","くぇ":"qwe","くぉ":"qwo","ぐぁ":"gwa","ぐぃ":"gwi","ぐぅ":"gwu","ぐぇ":"gwe","ぐぉ":"gwo","つぁ":"tsa","つぃ":"tsi","つぇ":"tse","つぉ":"tso","てゃ":"tha","てぃ":"thi","てゅ":"thu","てぇ":"the","てょ":"tho","とぁ":"twa","とぃ":"twi","とぅ":"twu","とぇ":"twe","とぉ":"two","ぢゃ":"dya","ぢぃ":"dyi","ぢゅ":"dyu","ぢぇ":"dye","ぢょ":"dyo","でゃ":"dha","でぃ":"dhi","でゅ":"dhu","でぇ":"dhe","でょ":"dho","どぁ":"dwa","どぃ":"dwi","どぅ":"dwu","どぇ":"dwe","どぉ":"dwo","ふぅ":"fwu","ふゃ":"fya","ふゅ":"fyu","ふょ":"fyo","ぁ":"a","ぃ":"i","ぇ":"e","ぅ":"u","ぉ":"o","ゃ":"ya","ゅ":"yu","ょ":"yo","っ":"","ゕ":"ka","ゖ":"ka","ゎ":"wa"," ":" ","んあ":"n'a","んい":"n'i","んう":"n'u","んえ":"n'e","んお":"n'o","んや":"n'ya","んゆ":"n'yu","んよ":"n'yo"},r.exports=i},{}],28:[function(t,n,r){(function(){"use strict";function t(t){throw t}function n(t,n){var r=t.split("."),e=l;!(r[0]in e)&&e.execScript&&e.execScript("var "+r[0]);for(var i;r.length&&(i=r.shift());)r.length||n===f?e=e[i]?e[i]:e[i]={}:e[i]=n}function r(t,n,r){var e,i="number"==typeof n?n:n=0,o="number"==typeof r?r:t.length;for(e=-1,i=7&o;i--;++n)e=e>>>8^v[255&(e^t[n])];for(i=o>>3;i--;n+=8)e=e>>>8^v[255&(e^t[n])],e=e>>>8^v[255&(e^t[n+1])],e=e>>>8^v[255&(e^t[n+2])],e=e>>>8^v[255&(e^t[n+3])],e=e>>>8^v[255&(e^t[n+4])],e=e>>>8^v[255&(e^t[n+5])],e=e>>>8^v[255&(e^t[n+6])],e=e>>>8^v[255&(e^t[n+7])];return(4294967295^e)>>>0}function e(){}function i(t){var n,r,e,i,o,a,u,s,c,f,l=t.length,p=0,y=Number.POSITIVE_INFINITY;for(s=0;l>s;++s)t[s]>p&&(p=t[s]),t[s]=e;){for(s=0;l>s;++s)if(t[s]===e){for(a=0,u=i,c=0;e>c;++c)a=a<<1|1&u,u>>=1;for(f=e<<16|s,c=a;n>c;c+=o)r[c]=f;++i}++e,i<<=1,o<<=1}return[r,p,y]}function o(n,r){switch(this.i=[],this.j=32768,this.d=this.f=this.c=this.n=0,this.input=h?new Uint8Array(n):n,this.o=!1,this.k=k,this.z=!1,(r||!(r={}))&&(r.index&&(this.c=r.index),r.bufferSize&&(this.j=r.bufferSize),r.bufferType&&(this.k=r.bufferType),r.resize&&(this.z=r.resize)),this.k){case w:this.a=32768,this.b=new(h?Uint8Array:Array)(32768+this.j+258);break;case k:this.a=0,this.b=new(h?Uint8Array:Array)(this.j),this.e=this.F,this.q=this.B,this.l=this.D;break;default:t(Error("invalid inflate mode"))}}function a(n,r){for(var e,i=n.f,o=n.d,a=n.input,u=n.c,s=a.length;r>o;)u>=s&&t(Error("input buffer is broken")),i|=a[u++]<>>r,n.d=o-r,n.c=u,e}function u(t,n){for(var r,e,i=t.f,o=t.d,a=t.input,u=t.c,s=a.length,c=n[0],f=n[1];f>o&&!(u>=s);)i|=a[u++]<>>16,t.f=i>>e,t.d=o-e,t.c=u,65535&r}function s(t){function n(t,n,r){var e,i,o,s=this.w;for(o=0;t>o;)switch(e=u(this,n)){case 16:for(i=3+a(this,2);i--;)r[o++]=s;break;case 17:for(i=3+a(this,3);i--;)r[o++]=0;s=0;break;case 18:for(i=11+a(this,7);i--;)r[o++]=0;s=0;break;default:s=r[o++]=e}return this.w=s,r}var r,e,o,s,c=a(t,5)+257,f=a(t,5)+1,l=a(t,4)+4,p=new(h?Uint8Array:Array)(E.length);for(s=0;l>s;++s)p[E[s]]=a(t,3);if(!h)for(s=l,l=p.length;l>s;++s)p[E[s]]=0;r=i(p),e=new(h?Uint8Array:Array)(c),o=new(h?Uint8Array:Array)(f),t.w=0,t.l(i(n.call(t,c,r,e)),i(n.call(t,f,r,o)))}function c(t){this.input=t,this.c=0,this.m=[],this.s=!1}var f=void 0,l=this,h="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;new(h?Uint8Array:Array)(256);var p;for(p=0;256>p;++p)for(var y=p,d=7,y=y>>>1;y;y>>>=1)--d;var g=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],v=h?new Uint32Array(g):g;e.prototype.getName=function(){return this.name},e.prototype.getData=function(){return this.data},e.prototype.H=function(){return this.I},n("Zlib.GunzipMember",e),n("Zlib.GunzipMember.prototype.getName",e.prototype.getName),n("Zlib.GunzipMember.prototype.getData",e.prototype.getData),n("Zlib.GunzipMember.prototype.getMtime",e.prototype.H);var m,_=[];for(m=0;288>m;m++)switch(!0){case 143>=m:_.push([m+48,8]);break;case 255>=m:_.push([m-144+400,9]);break;case 279>=m:_.push([m-256+0,7]);break;case 287>=m:_.push([m-280+192,8]);break;default:t("invalid literal: "+m)}var b=function(){function n(n){switch(!0){case 3===n:return[257,n-3,0];case 4===n:return[258,n-4,0];case 5===n:return[259,n-5,0];case 6===n:return[260,n-6,0];case 7===n:return[261,n-7,0];case 8===n:return[262,n-8,0];case 9===n:return[263,n-9,0];case 10===n:return[264,n-10,0];case 12>=n:return[265,n-11,1];case 14>=n:return[266,n-13,1];case 16>=n:return[267,n-15,1];case 18>=n:return[268,n-17,1];case 22>=n:return[269,n-19,2];case 26>=n:return[270,n-23,2];case 30>=n:return[271,n-27,2];case 34>=n:return[272,n-31,2];case 42>=n:return[273,n-35,3];case 50>=n:return[274,n-43,3];case 58>=n:return[275,n-51,3];case 66>=n:return[276,n-59,3];case 82>=n:return[277,n-67,4];case 98>=n:return[278,n-83,4];case 114>=n:return[279,n-99,4];case 130>=n:return[280,n-115,4];case 162>=n:return[281,n-131,5];case 194>=n:return[282,n-163,5];case 226>=n:return[283,n-195,5];case 257>=n:return[284,n-227,5];case 258===n:return[285,n-258,0];default:t("invalid length: "+n)}}var r,e,i=[];for(r=3;258>=r;r++)e=n(r),i[r]=e[2]<<24|e[1]<<16|e[0];return i}();h&&new Uint32Array(b);var w=0,k=1;o.prototype.g=function(){for(;!this.o;){var n=a(this,3);switch(1&n&&(this.o=!0),n>>>=1){case 0:var r=this.input,e=this.c,i=this.b,o=this.a,u=r.length,c=f,l=f,p=i.length,y=f;switch(this.d=this.f=0,e+1>=u&&t(Error("invalid uncompressed block header: LEN")),c=r[e++]|r[e++]<<8,e+1>=u&&t(Error("invalid uncompressed block header: NLEN")),l=r[e++]|r[e++]<<8,c===~l&&t(Error("invalid uncompressed block header: length verify")),e+c>r.length&&t(Error("input buffer is broken")),this.k){case w:for(;o+c>i.length;){if(y=p-o,c-=y,h)i.set(r.subarray(e,e+y),o),o+=y,e+=y;else for(;y--;)i[o++]=r[e++];this.a=o,i=this.e(),o=this.a}break;case k:for(;o+c>i.length;)i=this.e({t:2});break;default:t(Error("invalid inflate mode"))}if(h)i.set(r.subarray(e,e+c),o),o+=c,e+=c;else for(;c--;)i[o++]=r[e++];this.c=e,this.a=o,this.b=i;break;case 1:this.l(O,F);break;case 2:s(this);break;default:t(Error("unknown BTYPE: "+n))}}return this.q()};var A,C,S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=h?new Uint16Array(S):S,x=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],T=h?new Uint16Array(x):x,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],I=h?new Uint8Array(j):j,U=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],L=h?new Uint16Array(U):U,D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=h?new Uint8Array(D):D,z=new(h?Uint8Array:Array)(288);for(A=0,C=z.length;C>A;++A)z[A]=143>=A?8:255>=A?9:279>=A?7:8;var B,N,O=i(z),K=new(h?Uint8Array:Array)(30);for(B=0,N=K.length;N>B;++B)K[B]=5;var F=i(K);o.prototype.l=function(t,n){var r=this.b,e=this.a;this.r=t;for(var i,o,s,c,f=r.length-258;256!==(i=u(this,t));)if(256>i)e>=f&&(this.a=e,r=this.e(),e=this.a),r[e++]=i;else for(o=i-257,c=T[o],0=f&&(this.a=e,r=this.e(),e=this.a);c--;)r[e]=r[e++-s];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},o.prototype.D=function(t,n){var r=this.b,e=this.a;this.r=t;for(var i,o,s,c,f=r.length;256!==(i=u(this,t));)if(256>i)e>=f&&(r=this.e(),f=r.length),r[e++]=i;else for(o=i-257,c=T[o],0f&&(r=this.e(),f=r.length);c--;)r[e]=r[e++-s];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},o.prototype.e=function(){var t,n,r=new(h?Uint8Array:Array)(this.a-32768),e=this.a-32768,i=this.b;if(h)r.set(i.subarray(32768,r.length));else for(t=0,n=r.length;n>t;++t)r[t]=i[t+32768];if(this.i.push(r),this.n+=r.length,h)i.set(i.subarray(e,e+32768));else for(t=0;32768>t;++t)i[t]=i[e+t];return this.a=32768,i},o.prototype.F=function(t){var n,r,e,i,o=this.input.length/this.c+1|0,a=this.input,u=this.b;return t&&("number"==typeof t.t&&(o=t.t),"number"==typeof t.A&&(o+=t.A)),2>o?(r=(a.length-this.c)/this.r[2],i=258*(r/2)|0,e=in;++n)for(t=u[n],e=0,i=t.length;i>e;++e)s[o++]=t[e];for(n=32768,r=this.a;r>n;++n)s[o++]=a[n];return this.i=[],this.buffer=s},o.prototype.B=function(){var t,n=this.a;return h?this.z?(t=new Uint8Array(n),t.set(this.b.subarray(0,n))):t=this.b.subarray(0,n):(this.b.length>n&&(this.b.length=n),t=this.b),this.buffer=t},c.prototype.G=function(){return this.s||this.g(),this.m.slice()},c.prototype.g=function(){for(var n=this.input.length;this.c>>0,r(s,f,f)!==g&&t(Error("invalid CRC-32 checksum: 0x"+r(s,f,f).toString(16)+" / 0x"+g.toString(16))),i.M=a=(v[m++]|v[m++]<<8|v[m++]<<16|v[m++]<<24)>>>0,(4294967295&s.length)!==a&&t(Error("invalid input size: "+(4294967295&s.length)+" / "+a)),this.m.push(i),this.c=m}this.s=!0;var _,b,w,k=this.m,A=0,C=0;for(_=0,b=k.length;b>_;++_)C+=k[_].data.length;if(h)for(w=new Uint8Array(C),_=0;b>_;++_)w.set(k[_].data,A),A+=k[_].data.length;else{for(w=[],_=0;b>_;++_)w[_]=k[_].data;w=Array.prototype.concat.apply([],w)}return w},n("Zlib.Gunzip",c),n("Zlib.Gunzip.prototype.decompress",c.prototype.g),n("Zlib.Gunzip.prototype.getMembers",c.prototype.G)}).call(this)},{}],29:[function(t,n,r){"use strict";var e=t("kuromoji"),i=t("wanakana"),o=null,a=!1,u="undefined"!=typeof window;!u&&"undefined"!=typeof n&&n.exports&&(a=!0);var s=function(t){return t=t[0],t>="一"&&"鿏">=t||t>="豈"&&"﫿">=t||t>="㐀"&&"䶿">=t},c=function(t){for(var n=0;n"+_[L][0]+""+n.delimiter_start+""+i.toKatakana(_[L][2])+""+n.delimiter_end+"";return I;case"romaji":if("okurigana"===n.mode)for(var D=0;D<_.length;D++)I+=1!==_[D][1]?_[D][0]:_[D][0]+n.delimiter_start+i.toRomaji(_[D][2])+n.delimiter_end;else{I+="";for(var R=0;R<_.length;R++)I+=_[R][0]+""+n.delimiter_start+""+i.toRomaji(_[R][2])+""+n.delimiter_end+"";I+=""}return I;case"hiragana":if("okurigana"===n.mode)for(var z=0;z<_.length;z++)I+=1!==_[z][1]?_[z][0]:_[z][0]+n.delimiter_start+_[z][2]+n.delimiter_end;else for(var B=0;B<_.length;B++)I+=1!==_[B][1]?_[B][0]:""+_[B][0]+""+n.delimiter_start+""+_[B][2]+""+n.delimiter_end+"";return I}}},d=function(t,n){return n=n||{},n.to="hiragana",y(t,n)},g=function(t,n){return n=n||{},n.to="katakana",y(t,n)},v=function(t,n){return n=n||{},n.to="romaji",y(t,n)},m=function(n,r){"function"==typeof n?(r=n,n={}):"object"==typeof n?r&&"function"==typeof r||(r=function(){}):(n={},r&&"function"==typeof r||(r=function(){}));var i=n.dicPath;i||(i=a?t.resolve("kuromoji").replace(/src.*/,"dict/"):"bower_components/kuroshiro/dist/dict/"),e.builder({dicPath:i}).build(function(t,n){return t?r(t):(o=n,_.tokenize=o.tokenize,void r())})},_={init:m,isHiragana:i.isHiragana,isKatakana:i.isKatakana,isRomaji:i.isRomaji,isKanji:s,hasHiragana:c,hasKatakana:f,hasKanji:l,convert:y,toHiragana:d,toKatakana:g,toRomaji:v,toKana:i.toKana};n.exports=_},{kuromoji:17,wanakana:27}]},{},[29])(29)}); \ No newline at end of file +for(n=1<=e;){for(s=0;l>s;++s)if(t[s]===e){for(a=0,u=i,c=0;e>c;++c)a=a<<1|1&u,u>>=1;for(f=e<<16|s,c=a;n>c;c+=o)r[c]=f;++i}++e,i<<=1,o<<=1}return[r,p,y]}function o(n,r){switch(this.i=[],this.j=32768,this.d=this.f=this.c=this.n=0,this.input=h?new Uint8Array(n):n,this.o=!1,this.k=k,this.z=!1,(r||!(r={}))&&(r.index&&(this.c=r.index),r.bufferSize&&(this.j=r.bufferSize),r.bufferType&&(this.k=r.bufferType),r.resize&&(this.z=r.resize)),this.k){case w:this.a=32768,this.b=new(h?Uint8Array:Array)(32768+this.j+258);break;case k:this.a=0,this.b=new(h?Uint8Array:Array)(this.j),this.e=this.F,this.q=this.B,this.l=this.D;break;default:t(Error("invalid inflate mode"))}}function a(n,r){for(var e,i=n.f,o=n.d,a=n.input,u=n.c,s=a.length;r>o;)u>=s&&t(Error("input buffer is broken")),i|=a[u++]<>>r,n.d=o-r,n.c=u,e}function u(t,n){for(var r,e,i=t.f,o=t.d,a=t.input,u=t.c,s=a.length,c=n[0],f=n[1];f>o&&!(u>=s);)i|=a[u++]<>>16,t.f=i>>e,t.d=o-e,t.c=u,65535&r}function s(t){function n(t,n,r){var e,i,o,s=this.w;for(o=0;t>o;)switch(e=u(this,n)){case 16:for(i=3+a(this,2);i--;)r[o++]=s;break;case 17:for(i=3+a(this,3);i--;)r[o++]=0;s=0;break;case 18:for(i=11+a(this,7);i--;)r[o++]=0;s=0;break;default:s=r[o++]=e}return this.w=s,r}var r,e,o,s,c=a(t,5)+257,f=a(t,5)+1,l=a(t,4)+4,p=new(h?Uint8Array:Array)(E.length);for(s=0;l>s;++s)p[E[s]]=a(t,3);if(!h)for(s=l,l=p.length;l>s;++s)p[E[s]]=0;r=i(p),e=new(h?Uint8Array:Array)(c),o=new(h?Uint8Array:Array)(f),t.w=0,t.l(i(n.call(t,c,r,e)),i(n.call(t,f,r,o)))}function c(t){this.input=t,this.c=0,this.m=[],this.s=!1}var f=void 0,l=this,h="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;new(h?Uint8Array:Array)(256);var p;for(p=0;256>p;++p)for(var y=p,d=7,y=y>>>1;y;y>>>=1)--d;var g=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],v=h?new Uint32Array(g):g;e.prototype.getName=function(){return this.name},e.prototype.getData=function(){return this.data},e.prototype.H=function(){return this.I},n("Zlib.GunzipMember",e),n("Zlib.GunzipMember.prototype.getName",e.prototype.getName),n("Zlib.GunzipMember.prototype.getData",e.prototype.getData),n("Zlib.GunzipMember.prototype.getMtime",e.prototype.H);var m,_=[];for(m=0;288>m;m++)switch(!0){case 143>=m:_.push([m+48,8]);break;case 255>=m:_.push([m-144+400,9]);break;case 279>=m:_.push([m-256+0,7]);break;case 287>=m:_.push([m-280+192,8]);break;default:t("invalid literal: "+m)}var b=function(){function n(n){switch(!0){case 3===n:return[257,n-3,0];case 4===n:return[258,n-4,0];case 5===n:return[259,n-5,0];case 6===n:return[260,n-6,0];case 7===n:return[261,n-7,0];case 8===n:return[262,n-8,0];case 9===n:return[263,n-9,0];case 10===n:return[264,n-10,0];case 12>=n:return[265,n-11,1];case 14>=n:return[266,n-13,1];case 16>=n:return[267,n-15,1];case 18>=n:return[268,n-17,1];case 22>=n:return[269,n-19,2];case 26>=n:return[270,n-23,2];case 30>=n:return[271,n-27,2];case 34>=n:return[272,n-31,2];case 42>=n:return[273,n-35,3];case 50>=n:return[274,n-43,3];case 58>=n:return[275,n-51,3];case 66>=n:return[276,n-59,3];case 82>=n:return[277,n-67,4];case 98>=n:return[278,n-83,4];case 114>=n:return[279,n-99,4];case 130>=n:return[280,n-115,4];case 162>=n:return[281,n-131,5];case 194>=n:return[282,n-163,5];case 226>=n:return[283,n-195,5];case 257>=n:return[284,n-227,5];case 258===n:return[285,n-258,0];default:t("invalid length: "+n)}}var r,e,i=[];for(r=3;258>=r;r++)e=n(r),i[r]=e[2]<<24|e[1]<<16|e[0];return i}();h&&new Uint32Array(b);var w=0,k=1;o.prototype.g=function(){for(;!this.o;){var n=a(this,3);switch(1&n&&(this.o=!0),n>>>=1){case 0:var r=this.input,e=this.c,i=this.b,o=this.a,u=r.length,c=f,l=f,p=i.length,y=f;switch(this.d=this.f=0,e+1>=u&&t(Error("invalid uncompressed block header: LEN")),c=r[e++]|r[e++]<<8,e+1>=u&&t(Error("invalid uncompressed block header: NLEN")),l=r[e++]|r[e++]<<8,c===~l&&t(Error("invalid uncompressed block header: length verify")),e+c>r.length&&t(Error("input buffer is broken")),this.k){case w:for(;o+c>i.length;){if(y=p-o,c-=y,h)i.set(r.subarray(e,e+y),o),o+=y,e+=y;else for(;y--;)i[o++]=r[e++];this.a=o,i=this.e(),o=this.a}break;case k:for(;o+c>i.length;)i=this.e({t:2});break;default:t(Error("invalid inflate mode"))}if(h)i.set(r.subarray(e,e+c),o),o+=c,e+=c;else for(;c--;)i[o++]=r[e++];this.c=e,this.a=o,this.b=i;break;case 1:this.l(O,F);break;case 2:s(this);break;default:t(Error("unknown BTYPE: "+n))}}return this.q()};var A,C,S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=h?new Uint16Array(S):S,x=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],T=h?new Uint16Array(x):x,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],I=h?new Uint8Array(j):j,U=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],L=h?new Uint16Array(U):U,D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=h?new Uint8Array(D):D,z=new(h?Uint8Array:Array)(288);for(A=0,C=z.length;C>A;++A)z[A]=143>=A?8:255>=A?9:279>=A?7:8;var B,N,O=i(z),K=new(h?Uint8Array:Array)(30);for(B=0,N=K.length;N>B;++B)K[B]=5;var F=i(K);o.prototype.l=function(t,n){var r=this.b,e=this.a;this.r=t;for(var i,o,s,c,f=r.length-258;256!==(i=u(this,t));)if(256>i)e>=f&&(this.a=e,r=this.e(),e=this.a),r[e++]=i;else for(o=i-257,c=T[o],0=f&&(this.a=e,r=this.e(),e=this.a);c--;)r[e]=r[e++-s];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},o.prototype.D=function(t,n){var r=this.b,e=this.a;this.r=t;for(var i,o,s,c,f=r.length;256!==(i=u(this,t));)if(256>i)e>=f&&(r=this.e(),f=r.length),r[e++]=i;else for(o=i-257,c=T[o],0f&&(r=this.e(),f=r.length);c--;)r[e]=r[e++-s];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},o.prototype.e=function(){var t,n,r=new(h?Uint8Array:Array)(this.a-32768),e=this.a-32768,i=this.b;if(h)r.set(i.subarray(32768,r.length));else for(t=0,n=r.length;n>t;++t)r[t]=i[t+32768];if(this.i.push(r),this.n+=r.length,h)i.set(i.subarray(e,e+32768));else for(t=0;32768>t;++t)i[t]=i[e+t];return this.a=32768,i},o.prototype.F=function(t){var n,r,e,i,o=this.input.length/this.c+1|0,a=this.input,u=this.b;return t&&("number"==typeof t.t&&(o=t.t),"number"==typeof t.A&&(o+=t.A)),2>o?(r=(a.length-this.c)/this.r[2],i=258*(r/2)|0,e=in;++n)for(t=u[n],e=0,i=t.length;i>e;++e)s[o++]=t[e];for(n=32768,r=this.a;r>n;++n)s[o++]=a[n];return this.i=[],this.buffer=s},o.prototype.B=function(){var t,n=this.a;return h?this.z?(t=new Uint8Array(n),t.set(this.b.subarray(0,n))):t=this.b.subarray(0,n):(this.b.length>n&&(this.b.length=n),t=this.b),this.buffer=t},c.prototype.G=function(){return this.s||this.g(),this.m.slice()},c.prototype.g=function(){for(var n=this.input.length;this.c>>0,r(s,f,f)!==g&&t(Error("invalid CRC-32 checksum: 0x"+r(s,f,f).toString(16)+" / 0x"+g.toString(16))),i.M=a=(v[m++]|v[m++]<<8|v[m++]<<16|v[m++]<<24)>>>0,(4294967295&s.length)!==a&&t(Error("invalid input size: "+(4294967295&s.length)+" / "+a)),this.m.push(i),this.c=m}this.s=!0;var _,b,w,k=this.m,A=0,C=0;for(_=0,b=k.length;b>_;++_)C+=k[_].data.length;if(h)for(w=new Uint8Array(C),_=0;b>_;++_)w.set(k[_].data,A),A+=k[_].data.length;else{for(w=[],_=0;b>_;++_)w[_]=k[_].data;w=Array.prototype.concat.apply([],w)}return w},n("Zlib.Gunzip",c),n("Zlib.Gunzip.prototype.decompress",c.prototype.g),n("Zlib.Gunzip.prototype.getMembers",c.prototype.G)}).call(this)},{}],29:[function(t,n,r){"use strict";var e=t("kuromoji"),i=t("wanakana"),o=null,a=!1,u="undefined"!=typeof window;!u&&"undefined"!=typeof n&&n.exports&&(a=!0);var s=function(t){return t=t[0],t>="一"&&"鿏">=t||t>="豈"&&"﫿">=t||t>="㐀"&&"䶿">=t},c=function(t){for(var n=0;n"+_[R][0]+""+n.delimiter_start+""+i.toKatakana(_[R][2])+""+n.delimiter_end+"";return L;case"romaji":if("okurigana"===n.mode)for(var z=0;z<_.length;z++)L+=1!==_[z][1]?_[z][0]:_[z][0]+n.delimiter_start+i.toRomaji(_[z][2])+n.delimiter_end;else{L+="";for(var B=0;B<_.length;B++)L+=_[B][0]+""+n.delimiter_start+""+i.toRomaji(_[B][2])+""+n.delimiter_end+"";L+=""}return L;case"hiragana":if("okurigana"===n.mode)for(var N=0;N<_.length;N++)L+=1!==_[N][1]?_[N][0]:_[N][0]+n.delimiter_start+_[N][2]+n.delimiter_end;else for(var O=0;O<_.length;O++)L+=1!==_[O][1]?_[O][0]:""+_[O][0]+""+n.delimiter_start+""+_[O][2]+""+n.delimiter_end+"";return L}}},d=function(t,n){return n=n||{},n.to="hiragana",y(t,n)},g=function(t,n){return n=n||{},n.to="katakana",y(t,n)},v=function(t,n){return n=n||{},n.to="romaji",y(t,n)},m=function(n,r){"function"==typeof n?(r=n,n={}):"object"==typeof n?r&&"function"==typeof r||(r=function(){}):(n={},r&&"function"==typeof r||(r=function(){}));var i=n.dicPath;i||(i=a?t.resolve("kuromoji").replace(/src.*/,"dict/"):"bower_components/kuroshiro/dist/dict/"),e.builder({dicPath:i}).build(function(t,n){return t?r(t):(o=n,_.tokenize=o.tokenize,void r())})},_={init:m,isHiragana:i.isHiragana,isKatakana:i.isKatakana,isRomaji:i.isRomaji,isKanji:s,hasHiragana:c,hasKatakana:f,hasKanji:l,convert:y,toHiragana:d,toKatakana:g,toRomaji:v,toKana:i.toKana};n.exports=_},{kuromoji:17,wanakana:27}]},{},[29])(29)}); \ No newline at end of file diff --git a/dist/node/kuroshiro.js b/dist/node/kuroshiro.js index 4d80940..55e512b 100644 --- a/dist/node/kuroshiro.js +++ b/dist/node/kuroshiro.js @@ -193,23 +193,32 @@ var convert = function(str, options){ break; case 1: var pattern = ''; + var isLastTokenKanji = false; + var subs = []; // recognize kanjis and group them for(var c=0;c