!function(n){var e={};function o(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=n,o.c=e,o.d=function(n,e,i){o.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},o.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var a in n)o.d(i,a,function(e){return n[e]}.bind(null,a));return i},o.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(e,"a",e),e},o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},o.p="",o(o.s=0)}([function(n,e,o){var i=o(1),{spell:a,stroke:u,arg:r,has:t,_throw:s,_wran:l,dealUpLowFirst:g,removeTone:h,sumStroke:c,isCnChar:f,checkArgs:p,initCnchar:d}=o(2),y=o(3);function m(...n){return a(y.spell,n)}function z(...n){return u(y.stroke,n)}String.prototype.spell=function(...n){return m(this,...n)},String.prototype.stroke=function(...n){return z(this,...n)};let k={version:i,spell:m,stroke:z,check:!0,_origin:{spell:m,stroke:z},plugins:[],use:function(...n){n.forEach(n=>{"function"==typeof n&&n(k)})},_:{arg:r,has:t,_throw:s,_wran:l,dealUpLowFirst:g,removeTone:h,sumStroke:c,isCnChar:f,checkArgs:p},type:{spell:r,stroke:{array:r.array}}};"undefined"!=typeof window&&(window.cnchar=window.CnChar=k),d(k),n.exports=k},function(n,e){n.exports="2.0.0"},function(n,e){const o="āáǎàōóǒòēéěèīíǐìūúǔùǖǘǚǜnńňǹ",i="aoeiuün";function a(n){console.warn("CnChar Warning:"+n)}var u={array:"array",low:"low",up:"up",first:"first",poly:"poly",tone:"tone"},r=null;function t(n){let e=n.charCodeAt(0);return e>=19968&&e<=40869}function s(n,e){return-1!==n.indexOf(e)}function l(n,e){r._.poly&&g(n,p),s(e,u.first)&&g(n,h),s(e,u.up)?g(n,c):s(e,u.low)||g(n,f)}function g(n,e){n.forEach((o,i)=>{"string"!=typeof o?o.forEach((n,i)=>{o[i]=e(n)}):":"!==o[0]&&(n[i]=e(o))})}function h(n){return n[0]}function c(n){return n.toUpperCase()}function f(n){return c(n[0])+n.substr(1)}function p(n){return n.toLowerCase()}function d(n,e,a,u,r,t){let s={res:n,poly:!1};if(!u&&!r)return s;let l=parseInt(e[a+1]);return l>=5&&(l-=5,u&&(s.poly=!0)),r&&(s.res=function(n,e,a){if(0===a)return n;let u=n[e];return n.replace(u,o[4*i.indexOf(u)+(a-1)])}(n,t,l)),s}function y(n){let e=0;return n.forEach((function(n){e+=n})),e}var m=!1;function z(n,e,o){if(r.check)if(m)m=!1;else{o&&(m=!0);for(var i=[],a=r.type,u=e.length-1;u>=0;u--){let n=e[u];a.spell[n]||a.stroke[n]||(i.push(n),e.splice(u,1))}var t=[],l=[],g=(n,o)=>{"object"!=typeof n?(o=o||t,s(e,n)&&o.push(n)):n.forEach(n=>{g(n,o)})};"spell"===n?(s(e,"up")&&s(e,"low")&&t.push("low"),a.spell.origin&&!s(e,"origin")&&s(e,"poly")&&t.push("poly")):s(e,"order")?(g("array",l),s(e,"letter")?(g(["detail","shape","name","count"]),g("letter",l)):s(e,"detail")?g(["shape","name","count"]):s(e,"shape")?g(["name","count"]):s(e,"name")&&g(["count"])):(g(["detail","shape","name","letter"]),g("count",l)),k(i,"无效"),k(t,"被忽略"),k(l,"冗余")}}function k(n,e){n.length>0&&a(`以下参数${e}:${JSON.stringify(n)}`)}n.exports={_throw:function(n){throw new Error("CnChar Error:"+n)},_wran:a,arg:u,isCnChar:t,has:s,spell:function(n,e){let o=e[0].split("");z("spell",e=e.splice(1));let i=s(e,u.poly),a=s(e,u.tone),r=[];for(let e in n){let u=n[e],s=u[0];for(var g=0;g