!function(n){function g(h){if(i[h])return i[h].exports;var u=i[h]={i:h,l:!1,exports:{}};return n[h].call(u.exports,u,u.exports,g),u.l=!0,u.exports}var i={};g.m=n,g.c=i,g.i=function(n){return n},g.d=function(n,i,h){g.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:h})},g.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return g.d(i,"a",i),i},g.o=function(n,g){return Object.prototype.hasOwnProperty.call(n,g)},g.p="",g(g.s=4)}([function(n,g,i){"use strict";function h(n,g){if(!(n instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(g,"__esModule",{value:!0}),g.PinyinHelper=g.PinyinFormat=void 0;var u=function(){function n(n,g){for(var i=0;i<g.length;i++){var h=g[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(n,h.key,h)}}return function(g,i,h){return i&&n(g.prototype,i),h&&n(g,h),g}}(),y=i(2),z=i(1),o=g.PinyinFormat={WITH_TONE_MARK:"WITH_TONE_MARK",WITHOUT_TONE:"WITHOUT_TONE",WITH_TONE_NUMBER:"WITH_TONE_NUMBER",FIRST_LETTER:"FIRST_LETTER"},l=y.PinyinResource.getPinyinResource(),j=y.PinyinResource.getMutilPinyinResource(),c="aeiouv",s="āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜ";g.PinyinHelper=function(){function n(){h(this,n)}return u(n,null,[{key:"_convertWithToneNumber",value:function(n){for(var g=n.split(","),i=g.length-1;i>=0;i--){for(var h=!1,u=g[i].replace("ü","v"),y=u.length-1;y>=0;y--){var z=u.charAt(y);if(z<"a"||z>"z"){var o=s.indexOf(z),l=o%4+1,j=c.charAt((o-o%4)/4);g[i]=u.replace(z,j)+l,h=!0;break}}h||(g[i]=u+"5")}return g}},{key:"_convertWithoutTone",value:function(n){for(var g=s.length-1;g>=0;g--){var i=s.charAt(g),h=c.charAt((g-g%4)/4);n=n.replace(new RegExp(i,"gm"),h)}return n.replace("ü","v").split(",")}},{key:"_formatPinyin",value:function(n,g){return g==o.WITH_TONE_MARK?n.split(","):g==o.WITH_TONE_NUMBER?this._convertWithToneNumber(n):g==o.WITHOUT_TONE?this._convertWithoutTone(n):g==o.FIRST_LETTER?this._convertWithoutTone(n):[]}},{key:"_convertToPinyinArray",value:function(n,g){var i=l[n];if(void 0!==i){for(var h=[],u=this._formatPinyin(i,g),y=0;y<u.length;y++)h.push(u[y]);return h}return[]}},{key:"_getWords",value:function(n){for(var g=1;g<6;g++){if(void 0!==j[n.substring(0,g)])return[n.substring(0,g)]}return[]}},{key:"convertToPinyinString",value:function(n,g,i){var h=[""],u=0;n=z.ChineseHelper.convertToSimplifiedChinese(n);for(var y=0,l=n.length,c="";y<l;){var s=n.substring(y),x=this._getWords(s);if(0==x.length){var t=n.charAt(y);if(z.ChineseHelper.isChinese(t)||"〇"==t){var d=this._convertToPinyinArray(t,i);d.length>0?i==o.FIRST_LETTER?(u++,h[u]=d[0].charAt(0)):(u++,h[u]=d[0]+g):h[u]+=n.charAt(y)}else h[u]+=n.charAt(y);y++}else{for(var q=x[x.length-1],d=this._formatPinyin(j[q],i),b=0,m=d.length;b<m;b++)i==o.FIRST_LETTER?(u++,h[u]=d[b].charAt(0)):(u++,h[u]=d[b]+g);y+=q.length}}for(var y=0;y<h.length;++y)if(""!==h[y]){var p=new RegExp(g+"$");p.test(h[y])?c+=h[y].replace("undefined","").substring(0,h[y].length-g.length)+g:c+=h[y].replace("undefined","")+g}return c[c.length-1]===g?c.substring(0,c.length-g.length):c}},{key:"getShortPinyin",value:function(n){return this.convertToPinyinString(n,"",o.FIRST_LETTER)}},{key:"hasMultiPinyin",value:function(n){var g=l[n];return void 0!==n&&g.split(",").length>1}},{key:"addPinyinDictResource",value:function(n){l=Object.assign(n,l)}},{key:"addMutilPinyinDictResource",value:function(n){j=Object.assign(n,j)}}]),n}()},function(n,g,i){"use strict";function h(n,g){if(!(n instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(g,"__esModule",{value:!0}),g.ChineseHelper=void 0;var u=function(){function n(n,g){for(var i=0;i<g.length;i++){var h=g[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(n,h.key,h)}}return function(g,i,h){return i&&n(g.prototype,i),h&&n(g,h),g}}(),y=i(2),z=/^[\u4e00-\u9fa5]+$/,o=y.PinyinResource.getChineseResource();g.ChineseHelper=function(){function n(){h(this,n)}return u(n,null,[{key:"_convertCharToSimplifiedChinese",value:function(n){var g=o[n];return void 0===g?n:g}},{key:"_convertCharToTraditionalChinese",value:function(n){for(var g in o)if(o[g]==n)return g;return n}},{key:"convertToSimplifiedChinese",value:function(n){for(var g="",i=0;i<n.length;i++){var h=n.charAt(i);g+=this._convertCharToSimplifiedChinese(h)}return g}},{key:"convertToTraditionalChinese",value:function(n){for(var g="",i=0;i<n.length;i++){var h=n.charAt(i);g+=this._convertCharToTraditionalChinese(h)}return g}},{key:"isTraditionalChinese",value:function(n){return void 0!==o[n]}},{key:"isChinese",value:function(n){return"〇"==n||z.test(n)}},{key:"containsChinese",value:function(n){for(var g=0;g<n.length;g++)if(this.isChinese(n.charAt(g)))return!0;return!1}},{key:"addChineseDictResource",value:function(n){o=Object.assign(n,o)}}]),n}()},function(n,g,i){"use strict";function h(n,g){if(!(n instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(g,"__esModule",{value:!0}),g.PinyinResource=void 0;var u=function(){function n(n,g){for(var i=0;i<g.length;i++){var h=g[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(n,h.key,h)}}return function(g,i,h){return i&&n(g.prototype,i),h&&n(g,h),g}}(),y=i(5),z=i(6),o=i(7);g.PinyinResource=function(){function n(){h(this,n)}return u(n,null,[{key:"getPinyinResource",value:function(){return o.pinyin_dict}},{key:"getMutilPinyinResource",value:function(){return z.mutil_pinyin_dict}},{key:"getChineseResource",value:function(){return y.chinese_dict}}]),n}()},function(n,g){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(i=window)}n.exports=i},function(n,g,i){"use strict";(function(n){var g=i(0),h=i(1),u=i(0);!function(){n.PinyinHelper=g.PinyinHelper,n.ChineseHelper=h.ChineseHelper,n.PinyinFormat=u.PinyinFormat}()}).call(g,i(3))},function(n,g,i){"use strict";function h(n,g,i){return g in n?Object.defineProperty(n,g,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[g]=i,n}Object.defineProperty(g,"__esModule",{value:!0});var u;g.chinese_dict=(u={"臺":"台","萬":"万","與":"与","醜":"丑","專":"专","業":"业","叢":"丛","東":"东","絲":"丝","丟":"丢","兩":"两","嚴":"严","喪":"丧","個":"个","爿":"丬","豐":"丰","臨":"临","為":"为","麗":"丽","舉":"举","麼":"么","義":"义","烏":"乌","樂":"乐","喬":"乔","習":"习","鄉":"乡","書":"书","買":"买","亂":"乱","爭":"争","於":"于","虧":"亏","雲":"云","亙":"亘","亞":"亚","產":"产","畝":"亩","親":"亲","褻":"亵","嚲":"亸","億":"亿","僅":"仅","從":"从","侖":"仑","倉":"仓","儀":"仪","們":"们","價":"价","眾":"众","優":"优","夥":"伙","會":"会","傴":"伛","傘":"伞","偉":"伟","傳":"传","傷":"伤","倀":"伥","倫":"伦","傖":"伧","偽":"伪","佇":"伫","體":"体","餘":"余","傭":"佣","僉":"佥","俠":"侠","侶":"侣","僥":"侥","偵":"侦","側":"侧","僑":"侨","儈":"侩","儕":"侪","儂":"侬","俁":"俣","儔":"俦","儼":"俨","倆":"俩","儷":"俪","儉":"俭","債":"债","傾":"倾","傯":"偬","僂":"偻","僨":"偾","償":"偿","儻":"傥","儐":"傧","儲":"储","儺":"傩","兒":"儿","兌":"兑","兗":"兖","黨":"党","蘭":"兰","關":"关","興":"兴","茲":"兹","養":"养","獸":"兽","囅":"冁","內":"内","岡":"冈","冊":"册","寫":"写","軍":"军","農":"农","塚":"冢","馮":"冯","衝":"冲","決":"决","況":"况","凍":"冻","淨":"净","淒":"凄","準":"准","涼":"凉","淩":"凌","減":"减","湊":"凑","凜":"凛","幾":"几","鳳":"凤","鳧":"凫","憑":"凭","凱":"凯","擊":"击","氹":"凼","鑿":"凿","芻":"刍","劃":"划","劉":"刘","則":"则","剛":"刚","創":"创","刪":"删","彆":"别","剗":"刬","剄":"刭","製":"制","劊":"刽","劌":"刿","剴":"剀","劑":"剂","剮":"剐","�
soorou
- 粉丝: 45
- 资源: 606
最新资源
- 在MATLAB中用物理神经网络求解质量-弹簧-阻尼器系统.rar
- 展望汉密尔顿蒙特卡罗,matlab代码.rar
- 这是对移动自组网智能天线和全向天线进行比较Matlab代码.rar
- 直流电机控制器级联设计的有效性 matlab代码.rar
- Android Studio Ladybug(android-studio-2024.2.1.12-mac.zip.001)
- 西门子TIA FB285功能块使用手册
- ERP MES 两套系统源代码 WPF AGV C# WPF开发 A,WPF MES 上位机产线执行系统 1, 完整纯源代码; 2, AGV自动调度; 3, SQLSERVER数据库 带附加文件
- 大数据技术领域中hadoop分布式系统的架构与应用
- Unity简单UI动画制作
- tomcat安装及配置教程-跨平台Tomcat安装配置教程:从零开始部署Web服务器
- 微软常用运行库合集2019.03
- Android Studio Ladybug(android-studio-2024.2.1.12-mac-arm.zip.002)
- selenium在Web应用自动化测试中的应用与优势
- 121m 纯电动汽车Simulink仿真模型建模详细步骤 通过文档的形式,跟着文档一步一步操作,既可以提高自己的建模能力,又可以对整个建模思路进行借鉴,形成设计能力 附带模型 丶
- 沾锡机半自动上料机设备3D图纸和工程图机械结构设计图纸和其它技术资料和技术方案非常好100%好用.zip
- TMC5160、TMC5130高性能步进电机驱动代码 代码都已长时间验证,稳定可靠运行 图里资料就是到手资料 简介: 德国TMC步进电机驱动代码 送你OrCAD或者AD版本原理图 自己整个重新写的
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈