[
  {
    "path": ".gitignore",
    "content": "*.db\n*.sublime-project\n*.sublime-workspace\n/package\n/node_modules\n/bower_components\n/build\n/dist\n/.sass-cache\n*.patch\n*.diff\n*~\n"
  },
  {
    "path": ".jshintrc",
    "content": "{\n  \"esversion\": 6\n}"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# 更新记录\n\nv1.6.6 - 2018-02-05\n\n- 解决部分页面划词翻译结果样式失控的问题\n\nv1.6.5 - 2018-01-25\n\n- 解决升级依赖导致的脚本错误\n\nV1.6.4 - 2018-01-23\n\n- 解决百度翻译失效的问题（需要新的权限）\n- 解决页面划词翻译结果位置不准确的问题\n\nV1.6.3 - 2017-12-20\n\n- 修复了必应和百度翻译失效的问题\n\nV1.6.2 - 2017-07-23\n\n- 修正页面划词结果的样式冲突 (thanks @wszgxa)\n\nV1.6.1 - 2016-12-03\n\n- 解决了有道词典调用限制的问题\n- 解决翻译中的浮层无法关闭的问题\n\nV1.6 - 2016-06-17\n\n- 支持必应翻译\n\nV1.5.4 - 2016-05-28\n\n- 解决链接划词模式劫持全局快捷键导致页面链接点击异常的问题\n- 链接划词的快捷键更新为 Ctrl+Shift+L\n\nV1.5.3 - 2016-05-26\n\n- 解决有时页面冒出一大堆之前的翻译结果的问题 #58\n\nV1.5.1 - 2016-03-06\n\n- 解决开启链接划词模式会破坏某些网页布局的问题\n\nV1.5 - 2015-12-27\n\n- 使用黑科技重新实现百度词典翻译\n\nV1.4.2 - 2015-12-19\n\n- 百度词典API已经停止服务，移除百度翻译\n\nV1.4 - 2015-12-19\n\n- 可以手动关闭页面划词翻译的结果面板\n- 扩展更新时显示功能更新\n\nV1.3 - 2015-03-11\n\n- 添加独立的偏好设定页面，并精简弹出窗口\n- 鼠标移上页面翻译结果时，结果面板不消失，移出后重新计时\n- 解决页面翻译结果被页内查找框遮盖的问题\n- 页面划词翻译结果分为两种显示形式，就近和窗口边缘\n- 将链接划词的激活快捷键修改为敲击两次 Caps Lock\n- 弹出窗口中支持长文本的翻译\n- 添加百度翻译的服务，可以在有道和百度之间切换了\n\nV1.2 - 2014-05-30\n\n- 支持对 IFRAME 中的内容进行划词翻译\n- 支持对使用了 Turbolinks 技术的网站进行划词翻译\n- 支持在划词内容附近显示翻译结果\n- 限于有道翻译 API 的使用协议，移除缓存功能\n\nV1.1 - 2014-02-16\n\n- 页面划词时，如果一个单词的翻译还未消失，再次对该词划词，不会重复翻译\n- 修正部分单词没有查找到翻译仍然显示翻译结果的问题\n- 页面划词翻译结果增加透明和淡入淡出效果\n- 为翻译结果添加音标（如果有）\n- 更新链接文本划词翻译的描述\n- 解决频繁划词导致翻译结果跑出屏幕的问题（支持使用滚轮滚动）\n"
  },
  {
    "path": "Gruntfile.js",
    "content": "module.exports = function(grunt) {\n  var manifest = require('./src/manifest');\n  var filename = manifest.name + ' v' + manifest.version + '.zip';\n\n  grunt.initConfig({\n    browserify: {\n      options: {\n        transform: [['babelify', { 'presets': ['es2015'] }]]\n      },\n      default: {\n        files: [{\n          expand: true,\n          cwd: 'src/',\n          src: 'js/*.js',\n          dest: 'build/'\n        }]\n      }\n    },\n    jshint: {\n      options: {\n        jshintrc: true\n      },\n      files: ['src/js/**/*.js']\n    },\n    uglify: {\n      options: {\n        mangle: false\n      },\n      default: {\n        files: [{\n          expand: true,\n          cwd: 'build/',\n          src: 'js/*.js',\n          dest: 'build/'\n        }]\n      }\n    },\n    sass: {\n      options: {\n        sourcemap: 'none'\n      },\n      default: {\n        files: [{\n          expand: true,\n          cwd: 'src/',\n          src: 'css/*.scss',\n          dest: 'build/',\n          ext: '.css'\n        }]\n      }\n    },\n    copy: {\n      default: {\n        files: [{\n          expand: true,\n          cwd: 'src/',\n          src: [\n            'img/**/*',\n            '*.html',\n            'manifest.json'\n          ],\n          dest: 'build/'\n        }]\n      }\n    },\n    clean: {\n      build: ['build'],\n      release: ['dist']\n    },\n    watch: {\n      scripts: {\n        files: 'src/js/**/*.js',\n        tasks: ['jshint', 'browserify'],\n      },\n      styles: {\n        files: 'src/css/**/*',\n        tasks: ['sass'],\n      },\n      static: {\n        files: [\n          'src/img/**/*',\n          'src/*.html',\n          'src/manifest.json'\n        ],\n        tasks: ['copy'],\n      }\n    },\n    compress: {\n      dist: {\n        options: {\n          archive: 'dist/' + filename\n        },\n        files: [{\n          expand: true,\n          cwd: 'build/',\n          src: '**/*',\n        }]\n      }\n    }\n  });\n\n  grunt.loadNpmTasks('grunt-contrib-uglify');\n  grunt.loadNpmTasks('grunt-contrib-sass');\n  grunt.loadNpmTasks('grunt-browserify');\n  grunt.loadNpmTasks('grunt-contrib-copy');\n  grunt.loadNpmTasks('grunt-contrib-jshint');\n  grunt.loadNpmTasks('grunt-contrib-watch');\n  grunt.loadNpmTasks('grunt-contrib-compress');\n  grunt.loadNpmTasks('grunt-contrib-clean');\n\n  grunt.registerTask('build', ['jshint', 'browserify', 'sass', 'copy']);\n  grunt.registerTask('dist', ['clean', 'build', 'uglify', 'compress'])\n  grunt.registerTask('default', ['clean', 'build', 'watch'])\n};"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2013, GDG Xi'an\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n  Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n  Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n  Neither the name of the {organization} nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  {
    "path": "README.md",
    "content": "# TransIt\n\n> TransIt 已更名为 [SmoothTranslator](https://github.com/greatghoul/smooth-translator)，此项目不再开发新功能，只修复问题。\n\nTransIt - 让划词翻译更简单\n\n<a href=\"https://chrome.google.com/webstore/detail/transit/pfjipfdmbpbkcadkdpmacdcefoohagdc\"><img src=\"https://camo.githubusercontent.com/334b4f665751356b1f4afb758f8ddde55b9c71b8/68747470733a2f2f7261772e6769746875622e636f6d2f476f6f676c654368726f6d652f6368726f6d652d6170702d73616d706c65732f6d61737465722f74727969746e6f77627574746f6e5f736d616c6c2e706e67\" border=\"0\" /></a>\n\nhttp://gdgxian.org/crx-transit/\n\n## 功能列表\n\n- 页面英文划词翻译 \n- 连续对多个单词进行划词翻译\n- 对超链接中的文本进行划词翻译\n- 调整页面划词翻译结果显示的时间长短\n- 适应更多的页面，包括 Iframe 嵌套\n- 支持在窗口边缘和选词附近两种方式显示翻译结果\n- 支持百度和有道翻译两种翻译服务\n\n## 相关资源\n\n- 更新历史 http://git.io/pz7B\n- 项目主页 http://git.io/pz7K\n- 问题和反馈 http://git.io/pz7M\n- 项目贡献者 https://git.io/v5LUv\n\n# 开发\n\n## 安装依赖\n\n首先保证你的机器上装有`Node`, 同时`Node`的版本大于`6.0`\n\n然后安装`bower`和`grunt`:\n\n```bash\nnpm install -g bower grunt\n```\n\n最后, 在项目根目录运行`bower install`和`npm install`安装所有的依赖.\n\n## 构建一个本地可运行的Chrome插件\n\n```bash\ngrunt build\n```\n\n然后使用Chrome浏览器, 打开`Developer mode`, 然后`Load unpacked extension`, 选择项目根目录下的`build`目录即可.\n\n## 打包\n\n```bash\ngrunt dist\n```\n\ndist目录下将会有一个`.zip`压缩包\n\n\n## 开发模式\n\n```bash\ngrunt default\n```\n\n将会对项目进行编译, 然后检测文件的改变, 实时编译项目文件.\n\n## 贡献者列表\n\n- [@greatghoul](https://github.com/greatghoul)\n- [@wszgxa](https://github.com/wszgxa)\n- [@ververcpp](https://github.com/ververcpp)\n- [@david30xie](https://github.com/david30xie)\n- [@phith0n](https://github.com/phith0n)"
  },
  {
    "path": "bower.json",
    "content": "{\n  \"name\": \"crx-transit\",\n  \"ignore\": [\n    \"**/.*\",\n    \"node_modules\",\n    \"bower_components\",\n    \"test\",\n    \"tests\"\n  ],\n  \"dependencies\": {\n    \"angular\": \"~1.3.12\",\n    \"angular-elastic\": \"~2.4.2\",\n    \"underscore\": \"~1.8.3\"\n  }\n}\n"
  },
  {
    "path": "index.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no\"/>\n<meta name=\"description\" content=\"百度翻译为您提供高质量在线翻译和词典结果，支持中、英、日、韩、法、泰、西、俄、葡等28种热门语言互译。\"/>\n<title>百度翻译</title>\n\n\n<script>\n            if (typeof page === 'undefined') {\n                page = {};\n            }\n        </script>\n\n<script>\npage.common = {\n    token: '9b8bb341109338ba7e875bd9a9dd88ba',\n    langList: {\n                            'zh': '中文'\n            ,                    'jp': '日语'\n            ,                    'jpka': '日语假名'\n            ,                    'th': '泰语'\n            ,                    'fra': '法语'\n            ,                    'en': '英语'\n            ,                    'spa': '西班牙语'\n            ,                    'kor': '韩语'\n            ,                    'tr': '土耳其语'\n            ,                    'vie': '越南语'\n            ,                    'ms': '马来语'\n            ,                    'de': '德语'\n            ,                    'ru': '俄语'\n            ,                    'ir': '伊朗语'\n            ,                    'ara': '阿拉伯语'\n            ,                    'est': '爱沙尼亚语'\n            ,                    'be': '白俄罗斯语'\n            ,                    'bul': '保加利亚语'\n            ,                    'hi': '印地语'\n            ,                    'is': '冰岛语'\n            ,                    'pl': '波兰语'\n            ,                    'fa': '波斯语'\n            ,                    'dan': '丹麦语'\n            ,                    'tl': '菲律宾语'\n            ,                    'fin': '芬兰语'\n            ,                    'nl': '荷兰语'\n            ,                    'ca': '加泰罗尼亚语'\n            ,                    'cs': '捷克语'\n            ,                    'hr': '克罗地亚语'\n            ,                    'lv': '拉脱维亚语'\n            ,                    'lt': '立陶宛语'\n            ,                    'rom': '罗马尼亚语'\n            ,                    'af': '南非语'\n            ,                    'no': '挪威语'\n            ,                    'pt_BR': '巴西语'\n            ,                    'pt': '葡萄牙语'\n            ,                    'swe': '瑞典语'\n            ,                    'sr': '塞尔维亚语'\n            ,                    'eo': '世界语'\n            ,                    'sk': '斯洛伐克语'\n            ,                    'slo': '斯洛文尼亚语'\n            ,                    'sw': '斯瓦希里语'\n            ,                    'uk': '乌克兰语'\n            ,                    'iw': '希伯来语'\n            ,                    'el': '希腊语'\n            ,                    'hu': '匈牙利语'\n            ,                    'hy': '亚美尼亚语'\n            ,                    'it': '意大利语'\n            ,                    'id': '印尼语'\n            ,                    'sq': '阿尔巴尼亚语'\n            ,                    'am': '阿姆哈拉语'\n            ,                    'as': '阿萨姆语'\n            ,                    'az': '阿塞拜疆语'\n            ,                    'eu': '巴斯克语'\n            ,                    'bn': '孟加拉语'\n            ,                    'bs': '波斯尼亚语'\n            ,                    'gl': '加利西亚语'\n            ,                    'ka': '格鲁吉亚语'\n            ,                    'gu': '古吉拉特语'\n            ,                    'ha': '豪萨语'\n            ,                    'ig': '伊博语'\n            ,                    'iu': '因纽特语'\n            ,                    'ga': '爱尔兰语'\n            ,                    'zu': '祖鲁语'\n            ,                    'kn': '卡纳达语'\n            ,                    'kk': '哈萨克语'\n            ,                    'ky': '吉尔吉斯语'\n            ,                    'lb': '卢森堡语'\n            ,                    'mk': '马其顿语'\n            ,                    'mt': '马耳他语'\n            ,                    'mi': '毛利语'\n            ,                    'mr': '马拉提语'\n            ,                    'ne': '尼泊尔语'\n            ,                    'or': '奥利亚语'\n            ,                    'pa': '旁遮普语'\n            ,                    'qu': '凯楚亚语'\n            ,                    'tn': '塞茨瓦纳语'\n            ,                    'si': '僧加罗语'\n            ,                    'ta': '泰米尔语'\n            ,                    'tt': '塔塔尔语'\n            ,                    'te': '泰卢固语'\n            ,                    'ur': '乌尔都语'\n            ,                    'uz': '乌兹别克语'\n            ,                    'cy': '威尔士语'\n            ,                    'yo': '约鲁巴语'\n            ,                    'yue': '粤语'\n            ,                    'wyw': '文言文'\n            ,                    'cht': '中文繁体'\n                      \n    },\n\n    langMap: {\n                            'zh': [\n                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'zh'\n                    ,                                    'vie'\n                                       \n            ],                    'en': [\n                                    'zh'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'ara': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'est': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'bul': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'pl': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'dan': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'de': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'ru': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'fra': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'fin': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'kor': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'nl': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'cs': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'rom': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'pt': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'jp': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'jpka'\n                    ,                                    'vie'\n                                       \n            ],                    'swe': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'slo': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'th': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'wyw': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'spa': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'el': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'hu': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'it': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'yue': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'cht'\n                    ,                                    'vie'\n                                       \n            ],                    'cht': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'vie'\n                                       \n            ],                    'vie': [\n                                    'zh'\n                    ,                                    'en'\n                    ,                                    'ara'\n                    ,                                    'est'\n                    ,                                    'bul'\n                    ,                                    'pl'\n                    ,                                    'dan'\n                    ,                                    'de'\n                    ,                                    'ru'\n                    ,                                    'fra'\n                    ,                                    'fin'\n                    ,                                    'kor'\n                    ,                                    'nl'\n                    ,                                    'cs'\n                    ,                                    'rom'\n                    ,                                    'pt'\n                    ,                                    'jp'\n                    ,                                    'swe'\n                    ,                                    'slo'\n                    ,                                    'th'\n                    ,                                    'wyw'\n                    ,                                    'spa'\n                    ,                                    'el'\n                    ,                                    'hu'\n                    ,                                    'it'\n                    ,                                    'yue'\n                    ,                                    'cht'\n                                       \n            ]          \n    },\n\n    locale: 'zh',\n\n    remote: {\n        query: '',\n        lang: 'auto2zh'\n    },\n    user: {\n        isLogin: '',\n        userId: '',\n        user_name: '',\n        show_name: ''\n    },\n\n    exchangeFlag: false,\n        isOnValentineActi: false,\n            isOnAprilFoolActi: false,\n            isOnEasterActi: false\n    };\npage.isOnChristmasActi = '0';\n</script>\n<script>\n            window._hmt = window._hmt || [];\n            (function() {\n              var hm = document.createElement(\"script\");\n              hm.src = \"https://hm.baidu.com/hm.js?afd111fa62852d1f37001d1f980b6800\";\n              var s = document.getElementsByTagName(\"script\")[0]; \n              s.parentNode.insertBefore(hm, s);\n            })();\n        </script>\n<script>\n            if (window._SF_) {\n                _hmt.push(['_setAutoPageview', false]);\n            }\n            (function() {\n                var hm = document.createElement(\"script\");\n                hm.src = \"//hm.baidu.com/hm.js?64ecd82404c51e03dc91cb9e8c025574\";\n                var s = document.getElementsByTagName(\"script\")[0];\n                s.parentNode.insertBefore(hm, s);\n            })();\n        </script>\n<script>\n            _hmt.push(['_setAccount', '64ecd82404c51e03dc91cb9e8c025574']);\n        </script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"//fanyi.baidu.com/static/translate-mobile/pkg/aio_9ce4980.css\"/><style></style></head>\n<body>\n<script>\n            // 给html加上一个重置类\n            document.documentElement.className += 'fanyi-reset-html';\n            page.indexLog = {\n                logUrl: 'https://click.fanyi.baidu.com?',\n                // 2 表示 wise 端\n                src: 2,\n                locate: 'zh',\n                // 3 wise 首页\n                page: 3\n            };\n        </script>\n<div class=\"fanyi-sfr-container\">\n\n<header class=\"header\" id=\"shoubai-header\">\n<div class=\"header-inner cf\">\n<h1>百度翻译</h1>\n<div class=\"header-btn-group\">\n<a href=\"javascript:;\" class=\"user-btn\" id=\"login-btn\"><img src=\"//fanyi.baidu.com/static/translate-mobile/widget/header/user_f93c402.png\" width=\"22\" height=\"22\"></a>\n<a href=\"javascript:;\" class=\"menu-btn\" id=\"more-menu-btn\"><img src=\"//fanyi.baidu.com/static/translate-mobile/widget/header/menu_c780b66.png\" width=\"22\" height=\"22\"></a>\n</div>\n</div>\n<div class=\"header-border\"></div>\n<div class=\"menu-wrap\" id=\"more-menu\">\n<ul class=\"menu\">\n<li><a href=\"javascript:\" class=\"go-to-index\">首页</a></li>\n<li><a href=\"#\" class=\"go-to-setting\">设置</a></li>\n<li><a href=\"http://ufosdk.baidu.com/?m=Client&a=postView&appid=10536&hasRt=false&u=http://fanyi.baidu.com\" class=\"go-to-feedback\">意见反馈</a></li>\n<li><a href=\"http://weibo.com/baidutranslate\" class=\"go-to-attention\">关注我们</a></li>\n<li><a href=\"http://fanyi.baidu.com/appdownload/download.html\" class=\"go-to-download\">下载APP</a></li>\n</ul>\n</div>\n<div class=\"menu-wrap\" id=\"user-menu\">\n<ul class=\"menu\">\n<li><a href=\"javascript:\" class=\"go-to-logout\">退出登录</a></li>\n</ul>\n</div>\n</header>\n<section class=\"translang\">\n<a href=\"javascript:;\" class=\"translang-btn orilang-btn j-orilang\">\n<select class=\"selectbox j-fromSelect\">\n<option value=\"auto\">自动检测</option>\n<option value=\"zh\">\n中文\n</option>\n<option value=\"en\">\n英语\n</option>\n<option value=\"ara\">\n阿拉伯语\n</option>\n<option value=\"est\">\n爱沙尼亚语\n</option>\n<option value=\"bul\">\n保加利亚语\n</option>\n<option value=\"pl\">\n波兰语\n</option>\n<option value=\"dan\">\n丹麦语\n</option>\n<option value=\"de\">\n德语\n</option>\n<option value=\"ru\">\n俄语\n</option>\n<option value=\"fra\">\n法语\n</option>\n<option value=\"fin\">\n芬兰语\n</option>\n<option value=\"kor\">\n韩语\n</option>\n<option value=\"nl\">\n荷兰语\n</option>\n<option value=\"cs\">\n捷克语\n</option>\n<option value=\"rom\">\n罗马尼亚语\n</option>\n<option value=\"pt\">\n葡萄牙语\n</option>\n<option value=\"jp\">\n日语\n</option>\n<option value=\"swe\">\n瑞典语\n</option>\n<option value=\"slo\">\n斯洛文尼亚语\n</option>\n<option value=\"th\">\n泰语\n</option>\n<option value=\"wyw\">\n文言文\n</option>\n<option value=\"spa\">\n西班牙语\n</option>\n<option value=\"el\">\n希腊语\n</option>\n<option value=\"hu\">\n匈牙利语\n</option>\n<option value=\"it\">\n意大利语\n</option>\n<option value=\"vie\">\n越南语\n</option>\n<option value=\"yue\">\n粤语\n</option>\n<option value=\"cht\">\n中文繁体\n</option>\n</select>\n<span class=\"checkbox-pretend\">\n<span class=\"selected-text\">自动检测</span>\n<i class=\"arrow-down\"></i>\n</span>\n</a>\n<a class=\"exchange-btn j-exchange\">\n<span class=\"exchange-mask\"></span>\n</a>\n<a href=\"javascript:;\" class=\"translang-btn objlang-btn j-objlang\">\n<select class=\"selectbox j-toSelect\">\n<option value=\"zh\">\n中文\n</option>\n<option value=\"en\">\n英语\n</option>\n<option value=\"ara\">\n阿拉伯语\n</option>\n<option value=\"est\">\n爱沙尼亚语\n</option>\n<option value=\"bul\">\n保加利亚语\n</option>\n<option value=\"pl\">\n波兰语\n</option>\n<option value=\"dan\">\n丹麦语\n</option>\n<option value=\"de\">\n德语\n</option>\n<option value=\"ru\">\n俄语\n</option>\n<option value=\"fra\">\n法语\n</option>\n<option value=\"fin\">\n芬兰语\n</option>\n<option value=\"kor\">\n韩语\n</option>\n<option value=\"nl\">\n荷兰语\n</option>\n<option value=\"cs\">\n捷克语\n</option>\n<option value=\"rom\">\n罗马尼亚语\n</option>\n<option value=\"pt\">\n葡萄牙语\n</option>\n<option value=\"jp\">\n日语\n</option>\n<option value=\"swe\">\n瑞典语\n</option>\n<option value=\"slo\">\n斯洛文尼亚语\n</option>\n<option value=\"th\">\n泰语\n</option>\n<option value=\"wyw\">\n文言文\n</option>\n<option value=\"spa\">\n西班牙语\n</option>\n<option value=\"el\">\n希腊语\n</option>\n<option value=\"hu\">\n匈牙利语\n</option>\n<option value=\"it\">\n意大利语\n</option>\n<option value=\"vie\">\n越南语\n</option>\n<option value=\"yue\">\n粤语\n</option>\n<option value=\"cht\">\n中文繁体\n</option>\n</select>\n<span class=\"checkbox-pretend\">\n<span class=\"selected-text\">中文</span>\n<i class=\"arrow-down\"></i>\n</span>\n</a>\n</section>\n<section class=\"translatein j-translatein\">\n<div class=\"trans-input\">\n<a href=\"javascript:\" class=\"trans-clear j-clearBtn\"></a>\n<textarea placeholder=\"请输入文字\" disabled class=\"transtext\" id=\"j-textarea\" data-height=\"25\" value=\"\"></textarea>\n</div>\n<div class=\"transoper\" id=\"j-transoper\">\n<button class=\"camera-btn j-cameraBtn\" id=\"j-cameraBtn\"></button>\n<a class=\"sound-btn j-soungBtn\" id=\"single-sound\"><span class=\"horn j-horn\"></span></a>\n<div class=\"lang-detact j-langdetect\">检测为<a href=\"#\" class=\"detected-lang j-detextedLang\"></a></div>\n<div class=\"correct\">您是否要找:&nbsp;<a href=\"#\" class=\"correct-text\"></a></div>\n<div class=\"promp-lang\">正在使用<span></span>发音</div>\n</div>\n<div class=\"loading j-loading\"></div>\n<div class=\"mach-trans\"></div>\n</section>\n<div class=\"trans-btn j-tranBtn\">翻 译</div>\n<script type=\"text/template\" id=\"input-transoper-sound\">\n    <p class=\"ph\">\n    {{if tplData.withPhono}}\n        {{if tplData.ctx.ph_en}}\n            <span class=\"concise-tts\">\n            {{if tplData.wordName}}\n                <a class=\"sound-btn\" data-sound=\"{{tplData.wordName}}\" data-langs=\"uk\">\n                    <span class=\"horn j-horn\"></span>\n                    <span class=\"repeat-btn repeat-off\">\n                        <span class=\"out-cycle\"></span>\n                        <span class=\"in-rect\"></span>\n                    </span>\n                </a>\n            {{/if}}\n            <span class=\"sound-text\">英 [{{tplData.ctx.ph_en}}]</span>\n            </span>\n        {{/if}}\n        {{if tplData.ctx.ph_am}}\n            <span class=\"concise-tts\">\n            {{if tplData.wordName}}\n                <a class=\"sound-btn\" data-sound=\"{{tplData.wordName}}\" data-langs=\"en\">\n                    <span class=\"horn j-horn\"></span>\n                    <span class=\"repeat-btn repeat-off\">\n                        <span class=\"out-cycle\"></span>\n                        <span class=\"in-rect\"></span>\n                    </span>\n                </a>\n            {{/if}}\n            <span class=\"sound-text\">美 [{{tplData.ctx.ph_am}}]</span>\n            </span>\n        {{/if}}\n        {{if !tplData.ctx.ph_en && !tplData.ctx.ph_am && tplData.ctx.ph_new}}\n            <span class=\"concise-tts\">\n            {{if tplData.wordName}}\n                <a class=\"sound-btn\" data-sound=\"{{tplData.wordName}}\" data-langs=\"en\">\n                    <span class=\"horn j-horn\"></span>\n                    <span class=\"repeat-btn repeat-off\">\n                        <span class=\"out-cycle\"></span>\n                        <span class=\"in-rect\"></span>\n                    </span>\n                </a>\n            {{/if}}\n            <span class=\"sound-text\">[{{tplData.ctx.ph_new}}]</span>\n            </span>\n        {{/if}}\n    {{else}}\n        <span class=\"concise-tts\">\n            <a class=\"sound-btn\" data-sound=\"{{tplData.wordName}}\" data-langs=\"en\">\n                <span class=\"horn j-horn\"></span>\n                <span class=\"repeat-btn repeat-off\">\n                    <span class=\"out-cycle\"></span>\n                    <span class=\"in-rect\"></span>\n                </span>\n            </a>\n        </span>\n    {{/if}}\n    </p>\n</script>\n<script type=\"text/template\" id=\"input-mach-trans-tpl\">\n    <div class=\"j-concise-trans concise-trans\">\n    {{if tplData.jp_pinyin}}\n        {{each tplData.trans as result}}\n            <div class=\"phonetic-output\">\n            {{each result as jpObj}}\n                <div class=\"phonetic-output-item\">\n                    <em class=\"phonetic-output-pinyin\">{{jpObj.dst}}</em>\n                    <span class=\"phonetic-output-cnt\">{{jpObj.src}}</span>\n                </div>\n            {{/each}}\n            </div>\n        {{/each}}\n    {{else if tplData.lmData}}\n        {{each tplData.lmData as result}}\n            <div class=\"phonetic-output\">\n                {{each result as lmObj}}\n                <div class=\"phonetic-output-item\">\n                    <em class=\"phonetic-output-pinyin\">{{lmObj.trg}}</em>\n                    <span class=\"phonetic-output-cnt\">{{lmObj.src}}</span>\n                </div>\n                {{/each}}\n            </div>\n        {{/each}}\n    {{else}}\n        {{each tplData.trans as result}}\n            <p class=\"trans-content\" {{if tplData.to === 'ara'}}style=\"margin-left:25px;margin-right:0;text-align:right;direction:rtl;\"{{/if}}>\n                {{result.dst}}\n            </p>\n        {{/each}}\n    {{/if}}\n    {{if tplData.canSound}}\n        {{if tplData.withPhono}}\n            <p class=\"ph\">\n            {{if tplData.en_ph.ph_en}}\n                <span class=\"concise-tts\">\n                <a class=\"sound-btn\" data-sound=\"{{tplData.soundData}}\" data-langs=\"uk\">\n                    <span class=\"horn j-horn\"></span>\n                    <span class=\"repeat-btn repeat-off\">\n                        <span class=\"out-cycle\"></span>\n                        <span class=\"in-rect\"></span>\n                    </span>\n                </a>\n                <span class=\"sound-text\">英 [{{tplData.en_ph.ph_en}}]</span>\n                </span>\n            {{/if}}\n            {{if tplData.en_ph.ph_am}}\n                <span class=\"concise-tts\">\n                <a class=\"sound-btn\" data-sound=\"{{tplData.soundData}}\" data-langs=\"en\">\n                    <span class=\"horn j-horn\"></span>\n                    <span class=\"repeat-btn repeat-off\">\n                        <span class=\"out-cycle\"></span>\n                        <span class=\"in-rect\"></span>\n                    </span>\n                </a>\n                <span class=\"sound-text\">美 [{{tplData.en_ph.ph_am}}]</span>\n                </span>\n            {{/if}}\n            {{if !tplData.en_ph.ph_en && !tplData.en_ph.ph_am && tplData.en_ph.ph_new}}\n                <span class=\"concise-tts\">\n                <a class=\"sound-btn\" data-sound=\"{{tplData.soundData}}\" data-langs=\"en\">\n                    <span class=\"horn j-horn\"></span>\n                    <span class=\"repeat-btn repeat-off\">\n                        <span class=\"out-cycle\"></span>\n                        <span class=\"in-rect\"></span>\n                    </span>\n                </a>\n                <span class=\"sound-text\">[{{tplData.en_ph.ph_new}}]</span>\n                </span>\n            {{/if}}\n            {{if tplData.supportCopy}}<a href=\"javascript:void(0)\" class=\"copy-btn\"></a>{{/if}}\n            </p>\n        {{else}}\n            <a class=\"sound-btn\"  {{if tplData.to === 'ara'}}style=\"left:6px;width:19px;box-sizing:content-box;\"{{/if}} data-sound=\"{{tplData.soundData}}\" data-langs=\"{{if !tplData.to}}en{{else if tplData.to === 'yue'}}cte{{else}}{{tplData.to}}{{/if}}\">\n                <span class=\"horn j-horn\"></span>\n            </a>\n            {{if tplData.supportCopy}}<a href=\"javascript:void(0)\" class=\"copy-btn\"></a>{{/if}}\n        {{/if}}\n    {{else}}\n        {{if tplData.supportCopy}}<a href=\"javascript:void(0)\" class=\"copy-btn\"></a>{{/if}}\n    {{/if}}\n    </div>\n</script>\n<script type=\"text/template\" id=\"input-dict-tpl\">\n    <div class=\"j-concise-dict concise-dict\">\n    {{if tplData.symbols}}\n    {{each tplData.symbols as ctx}}\n        {{if ctx && ctx.parts}}\n        {{each ctx.parts as subCtx}}\n            {{if subCtx}}\n                <div class=\"speech\">\n                {{if subCtx.part}}\n                    <strong>{{subCtx.part}}</strong>\n                {{else if subCtx.part_name}}\n                    <strong>{{subCtx.part_name}}</strong>\n                {{else}}\n                    <strong class=\"no-value\"></strong>\n                {{/if}}\n                    <div class=\"speech-content\">{{if subCtx.means}}{{each subCtx.means as mean midx}}{{if !(subCtx.part_name && subCtx.part_name === '网络' && midx > 4)}}{{if mean.word_mean && mean.isSeeAlso}}<span>请参见</span>&nbsp;<span class=\"second-trans\" data-query=\"{{mean.word_mean | trim}}\">{{mean.word_mean | trim}}</span>{{else if mean.word_mean}}{{if mean.text}}{{if mean.domain}}{{mean.domain}}{{/if}}{{if mean.beg_end === '0' && mean.exp}}{{mean.exp}}{{/if}}<span class=\"second-trans\" data-query=\"{{mean.text | trim}}\">{{mean.text | trim}}</span>{{if mean.beg_end === '1' && mean.exp}}{{mean.exp}}{{/if}}{{else}}<span class=\"second-trans\" data-query=\"{{mean.word_mean | trim}}\">{{mean.word_mean | trim}}</span>{{/if}}{{if midx !== subCtx.means.length - 1}};&nbsp;{{else}}&nbsp;{{/if}}{{else}}{{if midx !== subCtx.means.length - 1}}<span>{{mean}};</span>{{else}}<span>{{mean}}</span><br/>{{/if}}{{/if}}{{/if}}{{/each}}{{/if}}</div>\n                </div>\n            {{/if}}\n        {{/each}}\n        {{/if}}\n    {{/each}}\n    {{if tplData.wordTag}}<div class=\"dict-tag\">{{tplData.wordTag}}</div>{{/if}}\n    {{/if}}\n    {{if tplData.exchange}}\n        <h3 class=\"word-exchange dicttype-title\">变形</h3>\n        <div class=\"exchange\">\n            <div class=\"exchange-content\">\n                <span class=\"exchange-title\">名词</span>\n                <div class=\"exchange-box\">\n                {{if tplData.exchange.noun && tplData.exchange.noun.length > 0}}\n                {{each tplData.exchange.noun as noun}}\n                    <p>\n                        <span class=\"noun\">{{noun.key | toStateName}}</span>\n                        {{each noun.words as word wrdIdx}}\n                        <span class=\"second-trans\" data-query=\"{{word}}\" data-type=\"ex\">{{word}}</span>\n                        {{if wrdIdx !== noun.words.length - 1}};&nbsp;{{else}}&nbsp;{{/if}}\n                        {{/each}}\n                    </p>\n                {{/each}}\n                {{/if}}\n                </div>\n            </div>\n            <div class=\"exchange-content\">\n                <span class=\"exchange-title\">动词</span>\n                <div class=\"exchange-box\">\n                {{if tplData.exchange.verb && tplData.exchange.verb.length > 0}}\n                {{each tplData.exchange.verb as verb}}\n                    <p>\n                        <span class=\"verb\">{{verb.key | toStateName}}</span>\n                        {{each verb.words as word wrdIdx}}\n                        <span class=\"second-trans\" data-query=\"{{word}}\" data-type=\"ex\">{{word}}</span>\n                        {{if wrdIdx !== verb.words.length - 1}};&nbsp;{{else}}&nbsp;{{/if}}\n                        {{/each}}\n                    </p>\n                {{/each}}\n                {{/if}}\n                </div>\n            </div>\n            <div class=\"exchange-content\">\n                <span class=\"exchange-title\">形容词</span>\n                <div class=\"exchange-box\">\n                {{if tplData.exchange.adj && tplData.exchange.adj.length > 0}}\n                {{each tplData.exchange.adj as adj}}\n                    <p>\n                        <span class=\"adj\">{{adj.key | toStateName}}</span>\n                        {{each adj.words as word wrdIdx}}\n                        <span class=\"second-trans\" data-query=\"{{word}}\" data-type=\"ex\">{{word}}</span>\n                        {{if wrdIdx !== adj.words.length - 1}};&nbsp;{{else}}&nbsp;{{/if}}\n                        {{/each}}\n                    </p>\n                {{/each}}\n                {{/if}}\n                </div>\n            </div>\n        </div>\n    {{/if}}\n    {{if tplData.symbols}}\n    {{if tplData.from && tplData.from === 'kingsoft'}}<div class=\"dict-origin\">数据来源：金山词霸</div>{{/if}}\n    {{/if}}\n    {{if tplData.netdata}}\n        {{if tplData.netdata.types && tplData.netdata.types.length > 0}}\n            <h3 class=\"dicttype-title\">网络释义</h3>\n            <div class=\"dicttype-content\">\n            {{each tplData.netdata.types as netItem}}\n                <div class=\"web-means-item\">\n                    <div class=\"webmeans-main\">\n                        <span class=\"webmeans-left\">{{netItem.type}}</span>\n                        <div class=\"webmeans-right\">{{netItem.trans}}<span class=\"webmeans-arr\"><i></i></span></div>\n                    </div>\n                    <div class=\"webmeans-detail\">\n                        <div class=\"webmeans-describe\">{{netItem.define}}</div>\n                        <a href=\"{{netItem.url}}\" class=\"webmeans-link\">{{netItem.url | getDomainHost}}</a>\n                    </div>\n                </div>\n            {{/each}}\n            </div>\n        {{/if}}\n    {{/if}}\n    </div>\n</script>\n<script type=\"text/template\" id=\"input-zh-en-dict-tpl\">\n    <div class=\"concise-dict concise-dict-ze\">\n        {{if tplData.symbols && tplData.symbols.length > 1}}\n        <div class=\"concise-dict-ze-nav\">\n            <ul>\n                {{each tplData.symbols as symbolVal symbolIdx}}\n                <li class=\"phonetic {{if symbolIdx === 0}}phonetic-active{{/if}}\">[{{symbolVal.word_symbol}}]</li>\n                {{/each}}\n            </ul>\n        </div>\n        {{/if}}\n        {{if tplData.symbols}}\n            {{each tplData.symbols as symbolVal symbolIdx}}\n            <div class=\"concise-dict-ze-wrap {{if symbolIdx === 0}}concise-dict-ze-wrap-active{{/if}}\">\n                {{if symbolVal && symbolVal.parts}}\n                    {{each symbolVal.parts as eachPart}}\n                    <div class=\"each-query-part\">\n                        {{if eachPart.part_name}}\n                        <p class=\"query-part\">[{{eachPart.part_name}}]</p>\n                        {{/if}}\n                        {{if eachPart.means}}\n                        <ul class=\"query-part-means\">\n                            {{each eachPart.means as partMean partMeanIdx}}\n                                {{if eachPart.part_name === '网络' && partMeanIdx > 4}}\n                                {{else}}\n                                    {{if partMean.word_mean && partMean.isSeeAlso}}\n                                    <li class=\"part-means-mean\">\n                                        <span>请参见</span>&nbsp;<span class=\"second-trans\">{{partMean.word_mean}}</span>\n                                    </li>\n                                    {{else if partMean.word_mean}}\n                                        {{if partMean.text}}\n                                        <li class=\"part-means-mean {{if partMean.beg_end === '0' && partMean.exp}}multi-line{{/if}}\">\n                                            <span class=\"each-mean\">\n                                            {{if partMean.domain}}{{partMean.domain}}{{/if}}\n                                            {{if partMean.beg_end === '0' && partMean.exp}}{{partMean.exp}}{{/if}}\n                                            {{if (/[\\u0391-\\uFFE5]+/).test(partMean.text)}}\n                                            <span>{{partMean.text | trim}}</span>\n                                            {{else}}\n                                            <span class=\"second-trans\" data-type=\"ze\">{{partMean.text | trim}}</span>\n                                            {{/if}}\n                                            {{if partMean.beg_end === '1' && partMean.exp}}{{partMean.exp}}{{/if}}\n                                            </span>\n                                            {{if partMean.part}}<span class=\"part-name\">{{partMean.part}}</span>{{/if}}\n                                            {{if partMean.means && partMean.means.length > 0}}<span class=\"means\">{{partMean.means | joinWithSemicolon}}</span>{{/if}}\n                                        </li>\n                                        {{else}}\n                                        <li class=\"part-means-mean {{if partMean.beg_end === '0' && partMean.exp}}multi-line{{/if}}\">\n                                            <span class=\"each-mean\">\n                                            {{if (/[\\u0391-\\uFFE5]+/).test(partMean.word_mean)}}\n                                            <span>{{partMean.word_mean | trim}}</span>\n                                            {{else}}\n                                            <span class=\"second-trans\" data-type=\"ze\">{{partMean.word_mean | trim}}</span>\n                                            {{/if}}\n                                            </span>\n                                            {{if partMean.part}}<span class=\"part-name\">{{partMean.part}}</span>{{/if}}\n                                            {{if partMean.means && partMean.means.length > 0}}<span class=\"means\">{{partMean.means | joinWithSemicolon}}</span>{{/if}}\n                                        </li>\n                                        {{/if}}\n                                    {{else}}\n                                    <li class=\"part-means-mean\">\n                                        <span class=\"each-mean\">\n                                        {{if (/[\\u0391-\\uFFE5]+/).test(partMean)}}\n                                        <span>{{partMean}}</span>\n                                        {{else}}\n                                        <span class=\"second-trans\" data-type=\"ze\">{{partMean | trim}}</span>\n                                        {{/if}}\n                                        </span>\n                                    </li>\n                                    {{/if}}\n                                {{/if}}\n                            {{/each}}\n                        </ul>\n                        {{/if}}\n                    </div>\n                    {{/each}}\n                {{/if}}\n            </div>\n            {{/each}}\n        {{/if}}\n        {{if tplData.symbols}}\n        {{if tplData.from && tplData.from === 'kingsoft'}}<div class=\"dict-origin\">数据来源：金山词霸</div>{{/if}}\n        {{/if}}\n        {{if tplData.netdata}}\n            {{if tplData.netdata.types && tplData.netdata.types.length > 0}}\n                <h3 class=\"dicttype-title\">网络释义</h3>\n                <div class=\"dicttype-content\">\n                {{each tplData.netdata.types as netItem}}\n                    <div class=\"web-means-item\">\n                        <div class=\"webmeans-main\">\n                            <span class=\"webmeans-left\">{{netItem.type}}</span>\n                            <div class=\"webmeans-right\">{{netItem.trans}}<span class=\"webmeans-arr\"><i></i></span></div>\n                        </div>\n                        <div class=\"webmeans-detail\">\n                            <div class=\"webmeans-describe\">{{netItem.define}}</div>\n                            <a href=\"{{netItem.url}}\" class=\"webmeans-link\">{{netItem.url | getDomainHost}}</a>\n                        </div>\n                    </div>\n                {{/each}}\n                </div>\n            {{/if}}\n        {{/if}}\n    </div>\n</script>\n<a class=\"app-bar\" href=\"javascript:\" style=\"display: none;\">\n<span class=\"app-bar-text\">牛津/柯林斯词典，尽在百度翻译APP</span>\n</a>\n<div class=\"history-wrap j-history\">\n</div>\n<script type=\"text/html\" id=\"tplHistoryItem\">\n    <div class=\"history-items\">\n        {{each list as item}}\n        <div class=\"history-item\">\n            <a href=\"{{item.url}}\" class=\"history-link\"><span class=\"history-word\">{{item.word}}</span><span class=\"history-mean\">{{item.mean}}</span></a><a href=\"###\" class=\"history-close-btn\"></a>\n        </div>\n        {{/each}}\n        {{if list.length > 3}}\n        <div class=\"history-empty\">清空所有历史</div>\n        {{/if}}\n    </div>\n</script>\n<div class=\"sug-wrap j-sug\">\n</div>\n<script type=\"text/html\" id=\"tplSugItem\">\n{{each list as item}}\n<div class=\"sug-box\">\n    <a href=\"{{item.url}}\" class=\"sug-item\">\n        <span class=\"sug-word\">{{item.word}}</span><span class=\"sug-mean\">{{item.mean}}</span>\n    </a>\n</div>\n{{/each}}\n</script>\n<section class=\"translateout j-transOut\">\n<div class=\"extend-output\" id=\"j-extendOutput\">\n<div class=\"extend-title j-extendTitle\">\n</div>\n<div class=\"extend-content j-extendContent\"></div>\n</div>\n</section>\n<script type=\"text/template\" id=\"output-cluster-tpl\">\n    <div {{#setClass}}>\n        <h3 {{#logType}}>{{#title}}</h3>\n        <div class=\"container-cluster\">{{#content}}</div>\n    </div>\n</script>\n<script type=\"text/template\" id=\"output-cluster-keyword-tpl\">\n    <ol>\n        {{each tplData.data as keyword}}\n        <li><span class=\"second-trans\" data-query=\"{{keyword.word}}\" data-from-lang=\"{{tplData.from}}\" data-to-lang=\"{{tplData.to}}\" data-type=\"ky\">{{keyword.word}}</span><span class=\"means\">{{keyword.mean}}</span></li>\n        {{/each}}\n    </ol>\n</script>\n<script type=\"text/template\" id=\"output-cluster-edict-tpl\">\n    <div class=\"mean-wrap\">\n        {{each tplData.item as item itemIdx}}\n        <div class=\"mean\">\n            <p class=\"pos\">{{item.pos}}</p>\n            <ul>\n                {{each item.tr_group as trVal trIdx}}\n                <li>\n                    <span class=\"num-label\">{{trIdx + 1}}.</span>\n                    {{if trVal.tr && trVal.tr.length > 0}}\n                        <p class=\"explain\">{{trVal.tr.toString()}}</p>\n                    {{/if}}\n                    {{if trVal.example && trVal.example.length > 0}}\n                        <div class=\"examples\">\n                            {{each trVal.example as trExample}}\n                            <p class=\"example\">{{trExample}}</p>\n                            {{/each}}\n                        </div>\n                    {{/if}}\n                    {{if trVal.similar_word && trVal.similar_word.length > 0}}\n                        <p class=\"synonym\">\n                            synonym:&nbsp;\n                            {{each trVal.similar_word as trSimilar}}\n                            <span class=\"second-trans\" data-type=\"edict\">{{trSimilar}}</span>;&nbsp;\n                            {{/each}}\n                        </p>\n                    {{/if}}\n                </li>\n                {{/each}}\n            </ul>\n        </div>\n        {{/each}}\n    </div>\n</script>\n<script type=\"text/template\" id=\"output-cluster-st-tpl\">\n    <ol>\n    {{each stItemList as stItem stIdx}}\n        <li>\n        {{if stItem.isFirstNetSt}}\n            <div class=\"st-net-tips\"><p>以下例句来源于网络，仅供参考</p></div>\n        {{/if}}\n            <label>{{stIdx + 1}}.</label>\n            <div>\n                <p class=\"st-source\">{{#stItem.stSource.stHTML}}{{if stItem.stSource.withSound}}<a class=\"sound-btn\"><span class=\"j-horn\"></span></a>{{/if}}</p>\n                <p class=\"st-target\">{{#stItem.stTarget.stHTML}}{{if stItem.stTarget.withSound}}<a class=\"sound-btn\"><span class=\"j-horn\"></span></a>{{/if}}</p>\n                {{if stItem.stResource}}<p class=\"st-resource\"><a class=\"st-link\" {{#stItem.stResource.resourceHref}} target=\"_blank\">{{stItem.stResource.resourceValue}}</a></p>{{/if}}\n            </div>\n        </li>\n    {{/each}}\n    </ol>\n</script>\n<script type=\"text/template\" id=\"output-cluster-general-tpl\">\n    <ol>\n    {{each wordObj as val}}\n        {{if val && val.en && val.zh}}\n            {{if fromLang === 'en'}}\n                <li>\n                    <span class=\"general-word\"><span></span><span class=\"second-trans\" data-query=\"{{val.en}}\">{{val.en}}</span></span>\n                    <span class=\"general-mean\">{{val.zh}}</span>\n                </li>\n            {{else if fromLang === 'zh'}}\n                <li>\n                    <span class=\"general-word\"><span></span><span class=\"second-trans\" data-query=\"{{val.zh}}\">{{val.zh}}</span></span>\n                    <span class=\"general-mean\">{{val.en}}</span>\n                </li>\n            {{/if}}\n        {{/if}}\n    {{/each}}\n    </ol>\n</script>\n<div class=\"extra\">\n<div class=\"gotop hide\" go-flag=1></div>\n</div>\n<section class=\"article\">\n<ol></ol>\n</section>\n<div class=\"article-loading\"><span class=\"article-loading-logo\"></span><span>正在载入...</span></div>\n<script type=\"text/html\" id=\"tplArticleItem\">\n    {{each list as item}}\n    <li data-url=\"{{item.url}}\" {{if item.passage_id && item.type && item.type === 2}}data-id=\"{{item.passage_id}}\"{{/if}}>\n        <div class=\"article-container\">\n            <div class=\"article-thumb\">\n                <div class=\"article-thumb-img-container\">\n                    <img src=\"{{if item.cover_url}}{{item.cover_url}}{{else}}{{item.thumb_url}}{{/if}}\" class=\"article-thumb-img\"/>\n                </div>\n                {{if item.sub_type === 1}}\n                <img class=\"article-thumb-tag\" src=\"//fanyi.baidu.com/static/translate-mobile/widget/article/video3x_091c302.png\" width=\"26\" height=\"26\" />\n                {{else if item.sub_type === 2}}\n                <img class=\"article-thumb-tag\" src=\"//fanyi.baidu.com/static/translate-mobile/widget/article/audio3x_8aa0929.png\" width=\"26\" height=\"26\" />\n                {{/if}}\n            </div><!--\n         --><div class=\"article-title\">\n                <div class=\"article-title-row-1\">{{if item.title_tag}}<span class=\"title-tag\">{{item.title_tag}}</span>{{/if}}<span class=\"title-zh\">{{item.body}}</span></div>\n                <p class=\"title-en\">{{item.detail}}</p>\n                {{if item.pas_tag}}<span class=\"pas-tag\">{{item.pas_tag}}</span>{{/if}}\n            </div>\n        </div>\n    </li>\n    {{/each}}\n</script>\n<div class=\"fanyi-toast\"></div>\n<section class=\"bottom-intro\">\n<div class=\"intro-title\">\n<h1>下载百度翻译APP</h1>\n<h3>更&nbsp;多&nbsp;精&nbsp;彩&nbsp;内&nbsp;容&nbsp;和&nbsp;特&nbsp;色&nbsp;功&nbsp;能</h3>\n</div>\n<div class=\"intro-nav clearfix\">\n<a href=\"//fanyi.baidu.com/appintro?cat=camera\" class=\"intro-link intro-camera\">\n<div class=\"intro-logo\"></div>\n<div class=\"intro-text\">拍照翻译</div>\n</a>\n<a href=\"//fanyi.baidu.com/appintro?cat=conversation\" class=\"intro-link intro-conversation\">\n<div class=\"intro-logo\"></div>\n<div class=\"intro-text\">语音翻译</div>\n</a>\n<a href=\"//fanyi.baidu.com/appintro?cat=offline\" class=\"intro-link intro-offline\">\n<div class=\"intro-logo\"></div>\n<div class=\"intro-text\">离线翻译</div>\n</a>\n</div>\n<div class=\"intro-copyright\">Baidu Copyright</div>\n</section>\n<div class=\"setting-container\">\n<div class=\"setting-header\"><span class=\"left-arrow setting-back\"></span>设置</div>\n<h1 class=\"setting-title\">发音语速调节</h1>\n<div class=\"setting-control-bar\">\n<div class=\"setting-progress\">\n<div class=\"progress-bg\"></div>\n<div class=\"progress-avtive\"></div>\n<div class=\"progress-slider\"></div>\n</div>\n</div>\n<div class=\"setting-control-font\">\n<div class=\"text text-left\">较慢</div>\n<div class=\"text text-right\">较快</div>\n适中</div>\n<div class=\"setting-tip\"><p>滑动滚动条，调节联网时语音速度的快慢。</p><p>您可点击下方按钮进行试听。</p></div>\n<div class=\"setting-try\"><a href=\"#\" class=\"try-btn\"><span class=\"horn\"></span>试听</a>\n<p class=\"setting-sound-text\">Welcome to use Baidu Translate! It's a free automatic translator that gives you instant multilingual translation.</p></div>\n</div>\n<div class=\"ft-container\">\n<span class=\"ft-arrow\"><span class=\"ft-arrow-outer\"></span><span class=\"ft-arrow-inner\"></span></span>\n<div class=\"ft-tip\"><span class=\"ft-msg\">打开 \"菜单\" - \"设置\" , 可调节发音语速哦~</span><span class=\"ft-close\"></span></div>\n</div>\n<div class=\"app-guide\">\n<div class=\"app-guide-wrapper\">\n<div class=\"app-guide-main\">\n<h1>新增权威词典&nbsp;&nbsp;内容来自<span class=\"app-guide-title-sp\">牛津</span></h1>\n<h2>百度翻译&nbsp;&nbsp;APP7.3</h2>\n<p><strong>极简设计/拍照翻译/语音翻译/离线翻译/权威词典</strong></p>\n<div class=\"app-guide-img-intro\"><img src=\"//fanyi.baidu.com/static/translate-mobile/widget/appGuide/img/intro-v7-3_22b3380.png\"></div>\n</div>\n<div class=\"app-guide-aside\"><span class=\"app-guide-close\"></span></div>\n<div class=\"app-guide-footer\"><a class=\"app-guide-btn app-guide-btn-down\" href=\"###\">立即下载</a></div>\n</div>\n</div>\n\n</div>\n\n<script type=\"text/javascript\" src=\"//fanyi.baidu.com/static/translate-mobile/tools/esl_11267c7.js\"></script>\n<script type=\"text/javascript\">require.config({paths: {\"translate-mobile:static\\/libs\\/zepto\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:static\\/log\\/log\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/tools\\/clipboard\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/tools\\/template\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/util\\/crossDomain\\/crossDomain\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/util\\/hash\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/util\\/invoke\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/util\\/string\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/util\\/util\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/public_47d9bb1\",\"translate-mobile:widget\\/appBar\\/appBar\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/appGuide\\/appGuide\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/appIntro\\/videoPlayer\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/appIntro\\/appIntro\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/toast\\/toast\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/bottomintro\\/bottomintro\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/article\\/article\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/input\\/correct\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/input\\/clear\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/config\\/config\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/media\\/media\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/history\\/storage\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/floatTip\\/floatTip\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/media\\/sound\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/translate\\/secondTrans\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/scrollTab\\/scrollTab\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/extendTrans\\/st\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/extendTrans\\/zdict\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/extendTrans\\/edict\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/extendTrans\\/general\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/extendTrans\\/cluster\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/baseTrans\\/lmHandler\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/baseTrans\\/trans\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/baseTrans\\/dict\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/baseTrans\\/keyword\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/baseTrans\\/baseTrans\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/locateTab\\/locateTab\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/extendTrans\\/extendTrans\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/history\\/history\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/translate\\/langDetect\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/sug\\/sug\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/translate\\/translate\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/input\\/input\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/transLang\\/transLang\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/setting\\/setting\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/autoRequest\\/autoRequest\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/extra\\/gotop\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/header\\/header\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:widget\\/main\\/main\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\",\"translate-mobile:static\\/index\\/index\":\"\\/\\/fanyi.baidu.com\\/static\\/translate-mobile\\/pkg\\/aio_624341a\"}});</script><script type=\"text/javascript\">!function(){            // 不知道为什么polyfill不会被模块化，所以自己手动加一下吧\n            require.config({\n                paths: {\n                    'translate-mobile:static/libs/polyfill': '//fanyi.baidu.com/static/translate-mobile/libs/polyfill.min_15cf767.js'.slice(0, -3),\n                    'translate-mobile:static/tools/vConsole': '//fanyi.baidu.com/static/translate-mobile/tools/vconsole.min_e9f53ae.js'.slice(0, -3)\n                }\n            });\n            /*require(['translate-mobile:static/tools/vConsole'], function (VConsole) {\n                var vConsole = new VConsole();\n            });*/\n            require(['translate-mobile:static/libs/zepto'], function (Zepto) {\n                Zepto.initZepto();\n            });\n        }();\n!function(){    require(['translate-mobile:widget/header/header'], function (header) {\n        header.init();\n    }); \n}();\n!function(){    page.common.langFrom = [\n                    \"zh\"\n            ,                    \"en\"\n            ,                    \"ara\"\n            ,                    \"est\"\n            ,                    \"bul\"\n            ,                    \"pl\"\n            ,                    \"dan\"\n            ,                    \"de\"\n            ,                    \"ru\"\n            ,                    \"fra\"\n            ,                    \"fin\"\n            ,                    \"kor\"\n            ,                    \"nl\"\n            ,                    \"cs\"\n            ,                    \"rom\"\n            ,                    \"pt\"\n            ,                    \"jp\"\n            ,                    \"swe\"\n            ,                    \"slo\"\n            ,                    \"th\"\n            ,                    \"wyw\"\n            ,                    \"spa\"\n            ,                    \"el\"\n            ,                    \"hu\"\n            ,                    \"it\"\n            ,                    \"vie\"\n            ,                    \"yue\"\n            ,                    \"cht\"\n                        ];\n    page.common.langTo = [\n                    \"zh\"\n            ,                    \"en\"\n            ,                    \"ara\"\n            ,                    \"est\"\n            ,                    \"bul\"\n            ,                    \"pl\"\n            ,                    \"dan\"\n            ,                    \"de\"\n            ,                    \"ru\"\n            ,                    \"fra\"\n            ,                    \"fin\"\n            ,                    \"kor\"\n            ,                    \"nl\"\n            ,                    \"cs\"\n            ,                    \"rom\"\n            ,                    \"pt\"\n            ,                    \"jp\"\n            ,                    \"swe\"\n            ,                    \"slo\"\n            ,                    \"th\"\n            ,                    \"wyw\"\n            ,                    \"spa\"\n            ,                    \"el\"\n            ,                    \"hu\"\n            ,                    \"it\"\n            ,                    \"vie\"\n            ,                    \"yue\"\n            ,                    \"cht\"\n                        ];\n    require(['translate-mobile:widget/transLang/transLang'], function (translateLang) {\n        translateLang.init();\n    });\n}();\n!function(){    /* 手机拍照翻译JS SDK release版: //graph.baidu.com/mms/graph/static/resource/sdk/mobile.js\n     * BD_MMS.ready              API准备好可以使用了\n     * BD_MMS.invokeGraphPlugin  调起手百拍照插件\n     * BD_MMS.isBox              当前页面是否在手机百度内\n     * BD_MMS.checkGraphType     检测手百拍照插件是否支持该垂类\n     */\n    require.config({\n        paths: {\n            \"BD_MMS\": \"https://gss3.bdstatic.com/5foUcz3n1MgCo2Kml5_Y_D3/graph/static/resource/sdk/v1.10.0/mms.amd\"\n        }\n　　 });\n    require(['BD_MMS'], function (BD_MMS) {\n            if (!(BD_MMS.isBox() && BD_MMS.checkGraphType('translate'))) {\n                var camera = document.getElementById('j-cameraBtn');\n                var cameraParent = camera.parentNode;\n                if (cameraParent) {\n                    cameraParent.removeChild(camera);\n                }\n            }\n            else {\n                /* 调起拍照插件\n                 * 该API只适用百度框的H5页面\n                 * 手百和百度HD的H5页面下，调起拍照插件\n                 */\n\n                /* global _hmt */\n                _hmt.push(['_trackEvent', 'Wap端相机icon展现量']);\n\n                if (!document.getElementById('j-cameraBtn')) {\n                    var cameraBtn = document.createElement(\"button\");\n                    cameraBtn.className = 'camera-btn j-cameraBtn';\n                    cameraBtn.id = 'j-cameraBtn';\n\n                    var $transoper = document.getElementById('j-transoper')\n                    $transoper.insertBefore(cameraBtn, $transoper.childNodes[0]);\n                }\n\n                var $cameraBtn = document.getElementById('j-cameraBtn');\n                $cameraBtn.style.display = 'block';\n\n                $cameraBtn.onclick = function () {\n                    /* global _hmt */\n                    _hmt.push(['_trackEvent', 'Wap端相机点击量']);\n\n                    BD_MMS.invokeGraphPlugin({\n                        /* 指定要拍照插件的垂类\n                         * 可用的值:\n                         * general(默认，通用)\n                         * question(拍题)\n                         * medicine(拍药)\n                         * translate(翻译)\n                         * barcode(扫一扫)\n                         */\n                        type: 'translate',\n                        stat: {\n                            tn: 'bdbox', // 区分渠道来源\n                            srcp: 'baidufanyi' // 区分当前渠道图搜入口位置\n                        }\n                    });\n                };\n            }\n    });\n}();\n!function(){    require(['translate-mobile:widget/main/main'], function (main) {\n        main.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/appBar/appBar'], function (appBar) {\n        appBar.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/history/history'], function (history) {\n        history.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/sug/sug'], function (sug) {\n        sug.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/extra/gotop'], function (gotop) {\n        gotop.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/article/article'], function (article) {\n        article.init();\n    });\n}();\n!function(){\trequire(['translate-mobile:widget/toast/toast']);\n}();\n!function(){    require(['translate-mobile:widget/bottomintro/bottomintro'], function (bottomIntro) {\n        bottomIntro.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/setting/setting'], function (setting) {\n        setting.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/floatTip/floatTip'], function (ft) {\n        ft.init();\n    });\n}();\n!function(){    require(['translate-mobile:widget/appGuide/appGuide'], function (appGuide) {\n        appGuide.init();\n    });\n}();\n!function(){        // sf页面单独统计下PV\n        if (window._SF_) {\n            _hmt.push(['_setReferrerOverride', location.origin + '/?url=&eqid=' + window.page.comm.eqid]);\n            _hmt.push(['_trackPageview', location.pathname + location.search]);\n        }\n        require.config({\n            paths: {\n                'wx': '//res.wx.qq.com/open/js/jweixin-1.0.0',\n                'setShareInfo': '//qzonestyle.gtimg.cn/qzone/qzact/common/share/share',\n                'shareConfig': '//b.bdstatic.com/searchbox/icms/searchbox/js/common/openjs/shareconfig.min'\n            }\n    　　 });\n        require(['translate-mobile:static/index/index']);\n    }();</script></body>\n</html>\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"crx-transit\",\n  \"devDependencies\": {\n    \"babel-preset-es2015\": \"^6.9.0\",\n    \"babelify\": \"latest\",\n    \"grunt\": \"^0.4.5\",\n    \"grunt-browserify\": \"^5.0.0\",\n    \"grunt-contrib-clean\": \"^1.1.0\",\n    \"grunt-contrib-compress\": \"^1.1.1\",\n    \"grunt-contrib-copy\": \"^1.0.0\",\n    \"grunt-contrib-jshint\": \"^1.0.0\",\n    \"grunt-contrib-sass\": \"^1.0.0\",\n    \"grunt-contrib-uglify\": \"^1.0.1\",\n    \"grunt-contrib-watch\": \"^1.0.0\"\n  },\n  \"dependencies\": {\n    \"angular\": \"^1.4.1\",\n    \"angular-elastic\": \"^2.3.5\",\n    \"cuid\": \"^2.0.2\",\n    \"jquery\": \"~> 3.0.0\",\n    \"lodash\": \"^4.17.4\",\n    \"md5\": \"^2.2.1\",\n    \"sugar\": \"^1.4.1\",\n    \"vinyl-source-stream\": \"^1.1.0\"\n  },\n  \"browserify\": {\n    \"transform\": [\n      [\n        \"babelify\",\n        {\n          \"presets\": [\n            \"es2015\"\n          ]\n        }\n      ]\n    ]\n  }\n}\n"
  },
  {
    "path": "src/css/contentstyle.scss",
    "content": "@import \"includes/link-colors\";\n\n[class*='transit-'],\n[class*='transit-'][id],\n[class*='transit-'] *,\n[class*='transit-'][id] * {\n  margin: 0;\n  padding: 0;\n  border: 0;\n  font-size: 100%;\n  font-family: \"Helvetica Neue\", \"Luxi Sans\", \"DejaVu Sans\", Tahoma, \"Hiragino Sans GB\", \"Microsoft Yahei\", sans-serif;\n  vertical-align: baseline;\n  width: auto;\n  height: auto;\n  background: none;\n  border-radius: 0;\n  text-align: left;\n}\n\n.transit-notify-list {\n  background: transparent;\n  position: fixed;\n  margin: 0;\n  padding: 0;\n  z-index: 2147483647;\n  width: 250px;\n  right: 15px;\n  top: 35px;\n  text-align: left;\n  overflow: auto;\n  max-height: calc(100% - 40px);\n\n  &::-webkit-scrollbar {\n    display: none;\n    width: 0px;\n  }\n\n  .transit-list-inner {\n    list-style: none;\n    margin: 0;\n    padding: 0;\n  }\n}\n\n.transit-list-full {\n  bottom: 5px;\n}\n\n.transit-spirit {\n  position: absolute;\n  width: 40px;\n  background-color: transparent;\n}\n\n.transit-notify {\n  z-index: 2147483647;\n  max-width: 250px;\n  min-width: 150px;\n  line-height: 1.5;\n  font-size: 14px;\n  margin-bottom: 5px;\n  text-align: left;\n  border-radius: 5px;\n  box-shadow: 3px 3px 3px #000000;\n  opacity: 0.9;\n\n  @import 'includes/_transit_result';\n}\n\na.transit-notify-close {\n  float: right;\n  text-decoration: none;\n  margin-right: 3px;\n  font-size: .8em;\n  @include link-colors(#aaa, #999, #999, #aaa);\n}\n\n// typo `translt` to ignore style reset.\n.translt-link-inspect-mode a {\n  text-decoration: none !important;\n  pointer-events: none !important;\n}\n"
  },
  {
    "path": "src/css/includes/_settings.scss",
    "content": ""
  },
  {
    "path": "src/css/includes/_sprite.scss",
    "content": ".icon {\n  display: inline-block;\n  background-repeat: no-repeat;\n  background-image: url(../img/sprite.svg);\n  opacity: 0.6;\n}\n.icon-cog {\n  width: 16px;\n  height: 16px;\n  background-position: 0 0;\n}\n.icon-text {\n  width: 15px;\n  height: 16px;\n  background-position: -32px 0;\n}\n.icon-link {\n  width: 15px;\n  height: 16px;\n  background-position: -64px 0;\n}\n"
  },
  {
    "path": "src/css/includes/_transit_result.scss",
    "content": ".transit-result {\n  &.transit-success {\n    background: #336721;\n    padding: 3px 6px;\n    margin: 0;\n    color: #EDF8ED;\n  }\n\n  &.transit-warning {\n    background: #FFF8DC;\n    padding: 3px 6px;\n    margin: 0;\n    color: #888888;\n  }\n\n  h6, code, pre {\n    border: none !important;\n    background-color: transparent !important;\n    color: inherit !important;\n    padding: 0;\n    margin: 0;\n    text-transform: none;\n    font-size: 14px;\n    line-height: 20px;\n    white-space: normal;\n  }\n\n  h6 {\n    font-size: 16px;\n    margin-bottom: 5px;\n    font-weight: 600;\n  }\n}"
  },
  {
    "path": "src/css/includes/link-colors.scss",
    "content": "@mixin link-colors($normal, $hover: false, $active: false, $visited: false, $focus: false) {\n  &:link {\n    color: $normal;  \n  }\n  @if $visited {\n    &:visited {\n      color: $visited;\n    }\n  }\n  @if $focus {\n    &:focus {\n      color: $focus;\n    }\n  }\n  @if $hover {\n    &:hover {\n      color: $hover;\n    }\n  }\n  @if $active {\n    &:active {\n      color: $active;\n    }\n  }\n}"
  },
  {
    "path": "src/css/options.scss",
    "content": "body {\n  background: #efefe9;\n  margin: 0;\n  padding: 0;\n  color: #555;\n}\n\n.board {\n  width: 75%;\n  margin: 60px auto;\n  background: #fff;\n}\n\n.borad-header {\n  background: #fafafa url(../img/bg.png);\n  background-size: 30%;\n  border-bottom: 1px solid #eeeeee;\n  padding: 10px 30px;\n}\n\n.borad-header .title {\n  margin-top: 10px;\n  margin-bottom: 10px;\n  font-size: 30px;\n  line-height: 48px;\n  display: inline-block;\n}\n\n.borad-header img {\n  vertical-align: top;\n}\n\n.board-content {\n  padding: 30px;\n}\n\ninput[type=range] {\n  vertical-align: middle;\n}\n\n.form-group {\n  margin-bottom: 15px;\n  padding-bottom: 15px;\n  border-bottom: 1px solid #f0f0f0;\n\n  &:last-child {\n    border-bottom: 0;\n    margin-bottom: 0;\n    padding-bottom: 0;\n  }\n\n  .control-label {\n    margin: 3px 0;\n    float: left;\n    width: 200px;\n    font-weight: bold;\n    font-size: 1.1em;\n  }\n\n  .controls {\n    margin-left: 200px;\n\n    .radio-inline {\n      display: inline-block;\n      margin-right: 5px;\n    }\n\n    .hint {\n      color: #aaaaaa;\n      margin-top: 10px;\n      margin-bottom: 0;\n\n      code {\n        padding: 2px 4px;\n        font-size: 90%;\n        color: #c7254e;\n        background-color: #f9f2f4;\n        border-radius: 4px;\n      }\n    }\n  }\n\n  \n}"
  },
  {
    "path": "src/css/popup.scss",
    "content": "@import 'includes/transit_result';\n@import 'includes/sprite';\n\nbody {\n  width: 200px;\n  margin: 0;\n  padding: 7px;\n  font-size: 14px;\n  line-height: 20px;\n  color: #555;\n}\n\n.ng-hide {\n  display: block!important;\n  position: absolute;\n  top: -9999px;\n  left: -9999px;\n}\n\n.pull-right {\n  float: right;\n}\n\n#source {\n  -webkit-appearance: textfield;\n  border: 1px inset #e0e0e0;\n  background-color: #fefbf5;\n  resize: none;\n  font-size: 14px;\n  line-height: 20px;\n  color: #555;\n  width: 100%;\n  height: 20px;\n  max-height: 80px;\n  margin: 0 0 2px 0;\n  padding: 2px 4px;\n  font-weight: bold;\n  box-sizing: border-box;\n\n  &:active, &:focus {\n    outline: -webkit-focus-ring-color auto 3px;\n  }\n}\n\n.btn-translator {\n  width: 29px;\n  height: 16px;\n  margin-right: 69px;\n  background-size: 16px 16px;\n  background-repeat: no-repeat;\n  background-position: center center;\n\n  &.youdao {\n    background-size: 29px 16px;\n    background-image: url(../img/translators/youdao.png);\n  }\n\n  &.baidu {\n    background-image: url(../img/translators/baidu.png);\n  }\n\n  &.bing {\n    background-image: url(../img/translators/bing.png);\n  }\n}\n\n.transit-result {\n  max-height: 200px;\n  margin-top: 7px;\n  padding: 3px 6px;\n  overflow-y: auto;\n  white-space: pre-line;\n\n  &.transit-success {\n    background: #efffef;\n    color: #2B3F29;\n  }\n\n  &.transit-warning {\n    background: #FFF8DC;\n    color: #888888;\n  }\n\n  h6 {\n    display: none;\n  }\n}\n\nfooter {\n  height: 16px;\n  margin-top: 7px;\n}\n\n.checkbox-inline {\n  display: inline-block;\n  cursor: pointer;\n\n  input {\n    display: none;\n  }\n\n  input:not(:checked) + .icon {\n    opacity: 0.3;\n  }\n}\n\n.translator-logo {\n  height: 16px; \n}"
  },
  {
    "path": "src/jasmine/SpecRunner.html",
    "content": "<!DOCTYPE HTML>\n<html>\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n  <title>Jasmine Spec Runner v2.0.2</title>\n\n  <link rel=\"shortcut icon\" type=\"image/png\" href=\"lib/jasmine_favicon.png\">\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"lib/jasmine.css\">\n\n  <script type=\"text/javascript\" src=\"lib/jasmine.js\"></script>\n  <script type=\"text/javascript\" src=\"lib/jasmine-html.js\"></script>\n  <script type=\"text/javascript\" src=\"lib/boot.js\"></script>\n\n  <!-- include source files here... -->\n  <script type=\"text/javascript\" src=\"../js/translators/youdao_translator.js\"></script>\n  <script type=\"text/javascript\" src=\"../js/translators/baidu_translator.js\"></script>\n\n  <!-- include spec files here... -->\n  <script type=\"text/javascript\" src=\"spec/SpecHelper.js\"></script>\n  <script type=\"text/javascript\" src=\"spec/translators/youdao_translator_spec.js\"></script>\n  <script type=\"text/javascript\" src=\"spec/translators/baidu_translator_spec.js\"></script>\n\n</head>\n\n<body>\n</body>\n</html>\n"
  },
  {
    "path": "src/jasmine/lib/boot.js",
    "content": "/**\n Starting with version 2.0, this file \"boots\" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project.\n\n If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms.\n\n The location of `boot.js` can be specified and/or overridden in `jasmine.yml`.\n\n [jasmine-gem]: http://github.com/pivotal/jasmine-gem\n */\n\n(function() {\n\n  /**\n   * ## Require &amp; Instantiate\n   *\n   * Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference.\n   */\n  window.jasmine = jasmineRequire.core(jasmineRequire);\n\n  /**\n   * Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference.\n   */\n  jasmineRequire.html(jasmine);\n\n  /**\n   * Create the Jasmine environment. This is used to run all specs in a project.\n   */\n  var env = jasmine.getEnv();\n\n  /**\n   * ## The Global Interface\n   *\n   * Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged.\n   */\n  var jasmineInterface = jasmineRequire.interface(jasmine, env);\n\n  /**\n   * Add all of the Jasmine global/public interface to the proper global, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`.\n   */\n  if (typeof window == \"undefined\" && typeof exports == \"object\") {\n    extend(exports, jasmineInterface);\n  } else {\n    extend(window, jasmineInterface);\n  }\n\n  /**\n   * ## Runner Parameters\n   *\n   * More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface.\n   */\n\n  var queryString = new jasmine.QueryString({\n    getWindowLocation: function() { return window.location; }\n  });\n\n  var catchingExceptions = queryString.getParam(\"catch\");\n  env.catchExceptions(typeof catchingExceptions === \"undefined\" ? true : catchingExceptions);\n\n  /**\n   * ## Reporters\n   * The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any).\n   */\n  var htmlReporter = new jasmine.HtmlReporter({\n    env: env,\n    onRaiseExceptionsClick: function() { queryString.setParam(\"catch\", !env.catchingExceptions()); },\n    getContainer: function() { return document.body; },\n    createElement: function() { return document.createElement.apply(document, arguments); },\n    createTextNode: function() { return document.createTextNode.apply(document, arguments); },\n    timer: new jasmine.Timer()\n  });\n\n  /**\n   * The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results  from JavaScript.\n   */\n  env.addReporter(jasmineInterface.jsApiReporter);\n  env.addReporter(htmlReporter);\n\n  /**\n   * Filter which specs will be run by matching the start of the full name against the `spec` query param.\n   */\n  var specFilter = new jasmine.HtmlSpecFilter({\n    filterString: function() { return queryString.getParam(\"spec\"); }\n  });\n\n  env.specFilter = function(spec) {\n    return specFilter.matches(spec.getFullName());\n  };\n\n  /**\n   * Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack.\n   */\n  window.setTimeout = window.setTimeout;\n  window.setInterval = window.setInterval;\n  window.clearTimeout = window.clearTimeout;\n  window.clearInterval = window.clearInterval;\n\n  /**\n   * ## Execution\n   *\n   * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded.\n   */\n  var currentWindowOnload = window.onload;\n\n  window.onload = function() {\n    if (currentWindowOnload) {\n      currentWindowOnload();\n    }\n    htmlReporter.initialize();\n    env.execute();\n  };\n\n  /**\n   * Helper function for readability above.\n   */\n  function extend(destination, source) {\n    for (var property in source) destination[property] = source[property];\n    return destination;\n  }\n\n}());\n"
  },
  {
    "path": "src/jasmine/lib/console.js",
    "content": "/*\nCopyright (c) 2008-2014 Pivotal Labs\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\nfunction getJasmineRequireObj() {\n  if (typeof module !== 'undefined' && module.exports) {\n    return exports;\n  } else {\n    window.jasmineRequire = window.jasmineRequire || {};\n    return window.jasmineRequire;\n  }\n}\n\ngetJasmineRequireObj().console = function(jRequire, j$) {\n  j$.ConsoleReporter = jRequire.ConsoleReporter();\n};\n\ngetJasmineRequireObj().ConsoleReporter = function() {\n\n  var noopTimer = {\n    start: function(){},\n    elapsed: function(){ return 0; }\n  };\n\n  function ConsoleReporter(options) {\n    var print = options.print,\n      showColors = options.showColors || false,\n      onComplete = options.onComplete || function() {},\n      timer = options.timer || noopTimer,\n      specCount,\n      failureCount,\n      failedSpecs = [],\n      pendingCount,\n      ansi = {\n        green: '\\x1B[32m',\n        red: '\\x1B[31m',\n        yellow: '\\x1B[33m',\n        none: '\\x1B[0m'\n      };\n\n    this.jasmineStarted = function() {\n      specCount = 0;\n      failureCount = 0;\n      pendingCount = 0;\n      print('Started');\n      printNewline();\n      timer.start();\n    };\n\n    this.jasmineDone = function() {\n      printNewline();\n      for (var i = 0; i < failedSpecs.length; i++) {\n        specFailureDetails(failedSpecs[i]);\n      }\n\n      if(specCount > 0) {\n        printNewline();\n\n        var specCounts = specCount + ' ' + plural('spec', specCount) + ', ' +\n          failureCount + ' ' + plural('failure', failureCount);\n\n        if (pendingCount) {\n          specCounts += ', ' + pendingCount + ' pending ' + plural('spec', pendingCount);\n        }\n\n        print(specCounts);\n      } else {\n        print('No specs found');\n      }\n\n      printNewline();\n      var seconds = timer.elapsed() / 1000;\n      print('Finished in ' + seconds + ' ' + plural('second', seconds));\n\n      printNewline();\n\n      onComplete(failureCount === 0);\n    };\n\n    this.specDone = function(result) {\n      specCount++;\n\n      if (result.status == 'pending') {\n        pendingCount++;\n        print(colored('yellow', '*'));\n        return;\n      }\n\n      if (result.status == 'passed') {\n        print(colored('green', '.'));\n        return;\n      }\n\n      if (result.status == 'failed') {\n        failureCount++;\n        failedSpecs.push(result);\n        print(colored('red', 'F'));\n      }\n    };\n\n    return this;\n\n    function printNewline() {\n      print('\\n');\n    }\n\n    function colored(color, str) {\n      return showColors ? (ansi[color] + str + ansi.none) : str;\n    }\n\n    function plural(str, count) {\n      return count == 1 ? str : str + 's';\n    }\n\n    function repeat(thing, times) {\n      var arr = [];\n      for (var i = 0; i < times; i++) {\n        arr.push(thing);\n      }\n      return arr;\n    }\n\n    function indent(str, spaces) {\n      var lines = (str || '').split('\\n');\n      var newArr = [];\n      for (var i = 0; i < lines.length; i++) {\n        newArr.push(repeat(' ', spaces).join('') + lines[i]);\n      }\n      return newArr.join('\\n');\n    }\n\n    function specFailureDetails(result) {\n      printNewline();\n      print(result.fullName);\n\n      for (var i = 0; i < result.failedExpectations.length; i++) {\n        var failedExpectation = result.failedExpectations[i];\n        printNewline();\n        print(indent(failedExpectation.message, 2));\n        print(indent(failedExpectation.stack, 2));\n      }\n\n      printNewline();\n    }\n  }\n\n  return ConsoleReporter;\n};\n"
  },
  {
    "path": "src/jasmine/lib/jasmine-html.js",
    "content": "/*\nCopyright (c) 2008-2014 Pivotal Labs\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\njasmineRequire.html = function(j$) {\n  j$.ResultsNode = jasmineRequire.ResultsNode();\n  j$.HtmlReporter = jasmineRequire.HtmlReporter(j$);\n  j$.QueryString = jasmineRequire.QueryString();\n  j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter();\n};\n\njasmineRequire.HtmlReporter = function(j$) {\n\n  var noopTimer = {\n    start: function() {},\n    elapsed: function() { return 0; }\n  };\n\n  function HtmlReporter(options) {\n    var env = options.env || {},\n      getContainer = options.getContainer,\n      createElement = options.createElement,\n      createTextNode = options.createTextNode,\n      onRaiseExceptionsClick = options.onRaiseExceptionsClick || function() {},\n      timer = options.timer || noopTimer,\n      results = [],\n      specsExecuted = 0,\n      failureCount = 0,\n      pendingSpecCount = 0,\n      htmlReporterMain,\n      symbols;\n\n    this.initialize = function() {\n      clearPrior();\n      htmlReporterMain = createDom('div', {className: 'jasmine_html-reporter'},\n        createDom('div', {className: 'banner'},\n          createDom('a', {className: 'title', href: 'http://jasmine.github.io/', target: '_blank'}),\n          createDom('span', {className: 'version'}, j$.version)\n        ),\n        createDom('ul', {className: 'symbol-summary'}),\n        createDom('div', {className: 'alert'}),\n        createDom('div', {className: 'results'},\n          createDom('div', {className: 'failures'})\n        )\n      );\n      getContainer().appendChild(htmlReporterMain);\n\n      symbols = find('.symbol-summary');\n    };\n\n    var totalSpecsDefined;\n    this.jasmineStarted = function(options) {\n      totalSpecsDefined = options.totalSpecsDefined || 0;\n      timer.start();\n    };\n\n    var summary = createDom('div', {className: 'summary'});\n\n    var topResults = new j$.ResultsNode({}, '', null),\n      currentParent = topResults;\n\n    this.suiteStarted = function(result) {\n      currentParent.addChild(result, 'suite');\n      currentParent = currentParent.last();\n    };\n\n    this.suiteDone = function(result) {\n      if (currentParent == topResults) {\n        return;\n      }\n\n      currentParent = currentParent.parent;\n    };\n\n    this.specStarted = function(result) {\n      currentParent.addChild(result, 'spec');\n    };\n\n    var failures = [];\n    this.specDone = function(result) {\n      if(noExpectations(result) && console && console.error) {\n        console.error('Spec \\'' + result.fullName + '\\' has no expectations.');\n      }\n\n      if (result.status != 'disabled') {\n        specsExecuted++;\n      }\n\n      symbols.appendChild(createDom('li', {\n          className: noExpectations(result) ? 'empty' : result.status,\n          id: 'spec_' + result.id,\n          title: result.fullName\n        }\n      ));\n\n      if (result.status == 'failed') {\n        failureCount++;\n\n        var failure =\n          createDom('div', {className: 'spec-detail failed'},\n            createDom('div', {className: 'description'},\n              createDom('a', {title: result.fullName, href: specHref(result)}, result.fullName)\n            ),\n            createDom('div', {className: 'messages'})\n          );\n        var messages = failure.childNodes[1];\n\n        for (var i = 0; i < result.failedExpectations.length; i++) {\n          var expectation = result.failedExpectations[i];\n          messages.appendChild(createDom('div', {className: 'result-message'}, expectation.message));\n          messages.appendChild(createDom('div', {className: 'stack-trace'}, expectation.stack));\n        }\n\n        failures.push(failure);\n      }\n\n      if (result.status == 'pending') {\n        pendingSpecCount++;\n      }\n    };\n\n    this.jasmineDone = function() {\n      var banner = find('.banner');\n      banner.appendChild(createDom('span', {className: 'duration'}, 'finished in ' + timer.elapsed() / 1000 + 's'));\n\n      var alert = find('.alert');\n\n      alert.appendChild(createDom('span', { className: 'exceptions' },\n        createDom('label', { className: 'label', 'for': 'raise-exceptions' }, 'raise exceptions'),\n        createDom('input', {\n          className: 'raise',\n          id: 'raise-exceptions',\n          type: 'checkbox'\n        })\n      ));\n      var checkbox = find('#raise-exceptions');\n\n      checkbox.checked = !env.catchingExceptions();\n      checkbox.onclick = onRaiseExceptionsClick;\n\n      if (specsExecuted < totalSpecsDefined) {\n        var skippedMessage = 'Ran ' + specsExecuted + ' of ' + totalSpecsDefined + ' specs - run all';\n        alert.appendChild(\n          createDom('span', {className: 'bar skipped'},\n            createDom('a', {href: '?', title: 'Run all specs'}, skippedMessage)\n          )\n        );\n      }\n      var statusBarMessage = '';\n      var statusBarClassName = 'bar ';\n\n      if (totalSpecsDefined > 0) {\n        statusBarMessage += pluralize('spec', specsExecuted) + ', ' + pluralize('failure', failureCount);\n        if (pendingSpecCount) { statusBarMessage += ', ' + pluralize('pending spec', pendingSpecCount); }\n        statusBarClassName += (failureCount > 0) ? 'failed' : 'passed';\n      } else {\n        statusBarClassName += 'skipped';\n        statusBarMessage += 'No specs found';\n      }\n\n      alert.appendChild(createDom('span', {className: statusBarClassName}, statusBarMessage));\n\n      var results = find('.results');\n      results.appendChild(summary);\n\n      summaryList(topResults, summary);\n\n      function summaryList(resultsTree, domParent) {\n        var specListNode;\n        for (var i = 0; i < resultsTree.children.length; i++) {\n          var resultNode = resultsTree.children[i];\n          if (resultNode.type == 'suite') {\n            var suiteListNode = createDom('ul', {className: 'suite', id: 'suite-' + resultNode.result.id},\n              createDom('li', {className: 'suite-detail'},\n                createDom('a', {href: specHref(resultNode.result)}, resultNode.result.description)\n              )\n            );\n\n            summaryList(resultNode, suiteListNode);\n            domParent.appendChild(suiteListNode);\n          }\n          if (resultNode.type == 'spec') {\n            if (domParent.getAttribute('class') != 'specs') {\n              specListNode = createDom('ul', {className: 'specs'});\n              domParent.appendChild(specListNode);\n            }\n            var specDescription = resultNode.result.description;\n            if(noExpectations(resultNode.result)) {\n              specDescription = 'SPEC HAS NO EXPECTATIONS ' + specDescription;\n            }\n            specListNode.appendChild(\n              createDom('li', {\n                  className: resultNode.result.status,\n                  id: 'spec-' + resultNode.result.id\n                },\n                createDom('a', {href: specHref(resultNode.result)}, specDescription)\n              )\n            );\n          }\n        }\n      }\n\n      if (failures.length) {\n        alert.appendChild(\n          createDom('span', {className: 'menu bar spec-list'},\n            createDom('span', {}, 'Spec List | '),\n            createDom('a', {className: 'failures-menu', href: '#'}, 'Failures')));\n        alert.appendChild(\n          createDom('span', {className: 'menu bar failure-list'},\n            createDom('a', {className: 'spec-list-menu', href: '#'}, 'Spec List'),\n            createDom('span', {}, ' | Failures ')));\n\n        find('.failures-menu').onclick = function() {\n          setMenuModeTo('failure-list');\n        };\n        find('.spec-list-menu').onclick = function() {\n          setMenuModeTo('spec-list');\n        };\n\n        setMenuModeTo('failure-list');\n\n        var failureNode = find('.failures');\n        for (var i = 0; i < failures.length; i++) {\n          failureNode.appendChild(failures[i]);\n        }\n      }\n    };\n\n    return this;\n\n    function find(selector) {\n      return getContainer().querySelector('.jasmine_html-reporter ' + selector);\n    }\n\n    function clearPrior() {\n      // return the reporter\n      var oldReporter = find('');\n      \n      if(oldReporter) {\n        getContainer().removeChild(oldReporter);\n      }\n    }\n\n    function createDom(type, attrs, childrenVarArgs) {\n      var el = createElement(type);\n\n      for (var i = 2; i < arguments.length; i++) {\n        var child = arguments[i];\n\n        if (typeof child === 'string') {\n          el.appendChild(createTextNode(child));\n        } else {\n          if (child) {\n            el.appendChild(child);\n          }\n        }\n      }\n\n      for (var attr in attrs) {\n        if (attr == 'className') {\n          el[attr] = attrs[attr];\n        } else {\n          el.setAttribute(attr, attrs[attr]);\n        }\n      }\n\n      return el;\n    }\n\n    function pluralize(singular, count) {\n      var word = (count == 1 ? singular : singular + 's');\n\n      return '' + count + ' ' + word;\n    }\n\n    function specHref(result) {\n      return '?spec=' + encodeURIComponent(result.fullName);\n    }\n\n    function setMenuModeTo(mode) {\n      htmlReporterMain.setAttribute('class', 'jasmine_html-reporter ' + mode);\n    }\n\n    function noExpectations(result) {\n      return (result.failedExpectations.length + result.passedExpectations.length) === 0 &&\n        result.status === 'passed';\n    }\n  }\n\n  return HtmlReporter;\n};\n\njasmineRequire.HtmlSpecFilter = function() {\n  function HtmlSpecFilter(options) {\n    var filterString = options && options.filterString() && options.filterString().replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n    var filterPattern = new RegExp(filterString);\n\n    this.matches = function(specName) {\n      return filterPattern.test(specName);\n    };\n  }\n\n  return HtmlSpecFilter;\n};\n\njasmineRequire.ResultsNode = function() {\n  function ResultsNode(result, type, parent) {\n    this.result = result;\n    this.type = type;\n    this.parent = parent;\n\n    this.children = [];\n\n    this.addChild = function(result, type) {\n      this.children.push(new ResultsNode(result, type, this));\n    };\n\n    this.last = function() {\n      return this.children[this.children.length - 1];\n    };\n  }\n\n  return ResultsNode;\n};\n\njasmineRequire.QueryString = function() {\n  function QueryString(options) {\n\n    this.setParam = function(key, value) {\n      var paramMap = queryStringToParamMap();\n      paramMap[key] = value;\n      options.getWindowLocation().search = toQueryString(paramMap);\n    };\n\n    this.getParam = function(key) {\n      return queryStringToParamMap()[key];\n    };\n\n    return this;\n\n    function toQueryString(paramMap) {\n      var qStrPairs = [];\n      for (var prop in paramMap) {\n        qStrPairs.push(encodeURIComponent(prop) + '=' + encodeURIComponent(paramMap[prop]));\n      }\n      return '?' + qStrPairs.join('&');\n    }\n\n    function queryStringToParamMap() {\n      var paramStr = options.getWindowLocation().search.substring(1),\n        params = [],\n        paramMap = {};\n\n      if (paramStr.length > 0) {\n        params = paramStr.split('&');\n        for (var i = 0; i < params.length; i++) {\n          var p = params[i].split('=');\n          var value = decodeURIComponent(p[1]);\n          if (value === 'true' || value === 'false') {\n            value = JSON.parse(value);\n          }\n          paramMap[decodeURIComponent(p[0])] = value;\n        }\n      }\n\n      return paramMap;\n    }\n\n  }\n\n  return QueryString;\n};\n"
  },
  {
    "path": "src/jasmine/lib/jasmine.css",
    "content": "body { overflow-y: scroll; }\n\n.jasmine_html-reporter { background-color: #eeeeee; padding: 5px; margin: -8px; font-size: 11px; font-family: Monaco, \"Lucida Console\", monospace; line-height: 14px; color: #333333; }\n.jasmine_html-reporter a { text-decoration: none; }\n.jasmine_html-reporter a:hover { text-decoration: underline; }\n.jasmine_html-reporter p, .jasmine_html-reporter h1, .jasmine_html-reporter h2, .jasmine_html-reporter h3, .jasmine_html-reporter h4, .jasmine_html-reporter h5, .jasmine_html-reporter h6 { margin: 0; line-height: 14px; }\n.jasmine_html-reporter .banner, .jasmine_html-reporter .symbol-summary, .jasmine_html-reporter .summary, .jasmine_html-reporter .result-message, .jasmine_html-reporter .spec .description, .jasmine_html-reporter .spec-detail .description, .jasmine_html-reporter .alert .bar, .jasmine_html-reporter .stack-trace { padding-left: 9px; padding-right: 9px; }\n.jasmine_html-reporter .banner { position: relative; }\n.jasmine_html-reporter .banner .title { background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAZCAMAAACGusnyAAACdlBMVEX/////AP+AgICqVaqAQICZM5mAVYCSSZKAQICOOY6ATYCLRouAQICJO4mSSYCIRIiPQICHPIeOR4CGQ4aMQICGPYaLRoCFQ4WKQICPPYWJRYCOQoSJQICNPoSIRICMQoSHQICHRICKQoOHQICKPoOJO4OJQYOMQICMQ4CIQYKLQICIPoKLQ4CKQICNPoKJQISMQ4KJ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zLDkyNS41NjYgNjA3LjQ2NSw5MDMuNDQ1IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICAgICAgICAgIGlkPSJwYXRoNTIiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojOGE0MTgyO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIiAvPjxwYXRoCiAgICAgICAgICAgICBkPSJtIDM4MC42ODgsNjIyLjEyOSAtMTEuNjI2LDM1LjgwMSAxNzUuNzU4LDU3LjA5IDExLjYyMSwtMzUuODAxIC0xNzUuNzUzLC01Ny4wOSIKICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgICAgICAgICBpZD0icGF0aDU0IgogICAgICAgICAgICAgc3R5bGU9ImZpbGw6IzhhNDE4MjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIgLz48cGF0aAogICAgICAgICAgICAgZD0ibSA3MTYuMjg5LDM3Ni41OSAzNy42NDA2LDAgMCwxODQuODE2IC0zNy42NDA2LDAgMCwtMTg0LjgxNiB6IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICAgICAgICAgIGlkPSJwYXRoNTYiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojOGE0MTgyO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIiAvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=') no-repeat, none; -webkit-background-size: 100%; -moz-background-size: 100%; -o-background-size: 100%; background-size: 100%; display: block; float: left; width: 90px; height: 25px; }\n.jasmine_html-reporter .banner .version { margin-left: 14px; position: relative; top: 6px; }\n.jasmine_html-reporter .banner .duration { position: absolute; right: 14px; top: 6px; }\n.jasmine_html-reporter #jasmine_content { position: fixed; right: 100%; }\n.jasmine_html-reporter .version { color: #aaaaaa; }\n.jasmine_html-reporter .banner { margin-top: 14px; }\n.jasmine_html-reporter .duration { color: #aaaaaa; float: right; }\n.jasmine_html-reporter .symbol-summary { overflow: hidden; *zoom: 1; margin: 14px 0; }\n.jasmine_html-reporter .symbol-summary li { display: inline-block; height: 8px; width: 14px; font-size: 16px; }\n.jasmine_html-reporter .symbol-summary li.passed { font-size: 14px; }\n.jasmine_html-reporter .symbol-summary li.passed:before { color: #007069; content: \"\\02022\"; }\n.jasmine_html-reporter .symbol-summary li.failed { line-height: 9px; }\n.jasmine_html-reporter .symbol-summary li.failed:before { color: #ca3a11; content: \"\\d7\"; font-weight: bold; margin-left: -1px; }\n.jasmine_html-reporter .symbol-summary li.disabled { font-size: 14px; }\n.jasmine_html-reporter .symbol-summary li.disabled:before { color: #bababa; content: \"\\02022\"; }\n.jasmine_html-reporter .symbol-summary li.pending { line-height: 17px; }\n.jasmine_html-reporter .symbol-summary li.pending:before { color: #ba9d37; content: \"*\"; }\n.jasmine_html-reporter .symbol-summary li.empty { font-size: 14px; }\n.jasmine_html-reporter .symbol-summary li.empty:before { color: #ba9d37; content: \"\\02022\"; }\n.jasmine_html-reporter .exceptions { color: #fff; float: right; margin-top: 5px; margin-right: 5px; }\n.jasmine_html-reporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; }\n.jasmine_html-reporter .bar.failed { background-color: #ca3a11; }\n.jasmine_html-reporter .bar.passed { background-color: #007069; }\n.jasmine_html-reporter .bar.skipped { background-color: #bababa; }\n.jasmine_html-reporter .bar.menu { background-color: #fff; color: #aaaaaa; }\n.jasmine_html-reporter .bar.menu a { color: #333333; }\n.jasmine_html-reporter .bar a { color: white; }\n.jasmine_html-reporter.spec-list .bar.menu.failure-list, .jasmine_html-reporter.spec-list .results .failures { display: none; }\n.jasmine_html-reporter.failure-list .bar.menu.spec-list, .jasmine_html-reporter.failure-list .summary { display: none; }\n.jasmine_html-reporter .running-alert { background-color: #666666; }\n.jasmine_html-reporter .results { margin-top: 14px; }\n.jasmine_html-reporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; }\n.jasmine_html-reporter.showDetails .summaryMenuItem:hover { text-decoration: underline; }\n.jasmine_html-reporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; }\n.jasmine_html-reporter.showDetails .summary { display: none; }\n.jasmine_html-reporter.showDetails #details { display: block; }\n.jasmine_html-reporter .summaryMenuItem { font-weight: bold; text-decoration: underline; }\n.jasmine_html-reporter .summary { margin-top: 14px; }\n.jasmine_html-reporter .summary ul { list-style-type: none; margin-left: 14px; padding-top: 0; padding-left: 0; }\n.jasmine_html-reporter .summary ul.suite { margin-top: 7px; margin-bottom: 7px; }\n.jasmine_html-reporter .summary li.passed a { color: #007069; }\n.jasmine_html-reporter .summary li.failed a { color: #ca3a11; }\n.jasmine_html-reporter .summary li.empty a { color: #ba9d37; }\n.jasmine_html-reporter .summary li.pending a { color: #ba9d37; }\n.jasmine_html-reporter .description + .suite { margin-top: 0; }\n.jasmine_html-reporter .suite { margin-top: 14px; }\n.jasmine_html-reporter .suite a { color: #333333; }\n.jasmine_html-reporter .failures .spec-detail { margin-bottom: 28px; }\n.jasmine_html-reporter .failures .spec-detail .description { background-color: #ca3a11; }\n.jasmine_html-reporter .failures .spec-detail .description a { color: white; }\n.jasmine_html-reporter .result-message { padding-top: 14px; color: #333333; white-space: pre; }\n.jasmine_html-reporter .result-message span.result { display: block; }\n.jasmine_html-reporter .stack-trace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; }\n"
  },
  {
    "path": "src/jasmine/lib/jasmine.js",
    "content": "/*\nCopyright (c) 2008-2014 Pivotal Labs\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\nfunction getJasmineRequireObj() {\n  if (typeof module !== 'undefined' && module.exports) {\n    return exports;\n  } else {\n    window.jasmineRequire = window.jasmineRequire || {};\n    return window.jasmineRequire;\n  }\n}\n\ngetJasmineRequireObj().core = function(jRequire) {\n  var j$ = {};\n\n  jRequire.base(j$);\n  j$.util = jRequire.util();\n  j$.Any = jRequire.Any();\n  j$.CallTracker = jRequire.CallTracker();\n  j$.MockDate = jRequire.MockDate();\n  j$.Clock = jRequire.Clock();\n  j$.DelayedFunctionScheduler = jRequire.DelayedFunctionScheduler();\n  j$.Env = jRequire.Env(j$);\n  j$.ExceptionFormatter = jRequire.ExceptionFormatter();\n  j$.Expectation = jRequire.Expectation();\n  j$.buildExpectationResult = jRequire.buildExpectationResult();\n  j$.JsApiReporter = jRequire.JsApiReporter();\n  j$.matchersUtil = jRequire.matchersUtil(j$);\n  j$.ObjectContaining = jRequire.ObjectContaining(j$);\n  j$.pp = jRequire.pp(j$);\n  j$.QueueRunner = jRequire.QueueRunner(j$);\n  j$.ReportDispatcher = jRequire.ReportDispatcher();\n  j$.Spec = jRequire.Spec(j$);\n  j$.SpyStrategy = jRequire.SpyStrategy();\n  j$.Suite = jRequire.Suite();\n  j$.Timer = jRequire.Timer();\n  j$.version = jRequire.version();\n\n  j$.matchers = jRequire.requireMatchers(jRequire, j$);\n\n  return j$;\n};\n\ngetJasmineRequireObj().requireMatchers = function(jRequire, j$) {\n  var availableMatchers = [\n      'toBe',\n      'toBeCloseTo',\n      'toBeDefined',\n      'toBeFalsy',\n      'toBeGreaterThan',\n      'toBeLessThan',\n      'toBeNaN',\n      'toBeNull',\n      'toBeTruthy',\n      'toBeUndefined',\n      'toContain',\n      'toEqual',\n      'toHaveBeenCalled',\n      'toHaveBeenCalledWith',\n      'toMatch',\n      'toThrow',\n      'toThrowError'\n    ],\n    matchers = {};\n\n  for (var i = 0; i < availableMatchers.length; i++) {\n    var name = availableMatchers[i];\n    matchers[name] = jRequire[name](j$);\n  }\n\n  return matchers;\n};\n\ngetJasmineRequireObj().base = (function (jasmineGlobal) {\n  if (typeof module !== 'undefined' && module.exports) {\n    jasmineGlobal = global;\n  }\n\n  return function(j$) {\n    j$.unimplementedMethod_ = function() {\n      throw new Error('unimplemented method');\n    };\n\n    j$.MAX_PRETTY_PRINT_DEPTH = 40;\n    j$.MAX_PRETTY_PRINT_ARRAY_LENGTH = 100;\n    j$.DEFAULT_TIMEOUT_INTERVAL = 5000;\n\n    j$.getGlobal = function() {\n      return jasmineGlobal;\n    };\n\n    j$.getEnv = function(options) {\n      var env = j$.currentEnv_ = j$.currentEnv_ || new j$.Env(options);\n      //jasmine. singletons in here (setTimeout blah blah).\n      return env;\n    };\n\n    j$.isArray_ = function(value) {\n      return j$.isA_('Array', value);\n    };\n\n    j$.isString_ = function(value) {\n      return j$.isA_('String', value);\n    };\n\n    j$.isNumber_ = function(value) {\n      return j$.isA_('Number', value);\n    };\n\n    j$.isA_ = function(typeName, value) {\n      return Object.prototype.toString.apply(value) === '[object ' + typeName + ']';\n    };\n\n    j$.isDomNode = function(obj) {\n      return obj.nodeType > 0;\n    };\n\n    j$.any = function(clazz) {\n      return new j$.Any(clazz);\n    };\n\n    j$.objectContaining = function(sample) {\n      return new j$.ObjectContaining(sample);\n    };\n\n    j$.createSpy = function(name, originalFn) {\n\n      var spyStrategy = new j$.SpyStrategy({\n          name: name,\n          fn: originalFn,\n          getSpy: function() { return spy; }\n        }),\n        callTracker = new j$.CallTracker(),\n        spy = function() {\n          callTracker.track({\n            object: this,\n            args: Array.prototype.slice.apply(arguments)\n          });\n          return spyStrategy.exec.apply(this, arguments);\n        };\n\n      for (var prop in originalFn) {\n        if (prop === 'and' || prop === 'calls') {\n          throw new Error('Jasmine spies would overwrite the \\'and\\' and \\'calls\\' properties on the object being spied upon');\n        }\n\n        spy[prop] = originalFn[prop];\n      }\n\n      spy.and = spyStrategy;\n      spy.calls = callTracker;\n\n      return spy;\n    };\n\n    j$.isSpy = function(putativeSpy) {\n      if (!putativeSpy) {\n        return false;\n      }\n      return putativeSpy.and instanceof j$.SpyStrategy &&\n        putativeSpy.calls instanceof j$.CallTracker;\n    };\n\n    j$.createSpyObj = function(baseName, methodNames) {\n      if (!j$.isArray_(methodNames) || methodNames.length === 0) {\n        throw 'createSpyObj requires a non-empty array of method names to create spies for';\n      }\n      var obj = {};\n      for (var i = 0; i < methodNames.length; i++) {\n        obj[methodNames[i]] = j$.createSpy(baseName + '.' + methodNames[i]);\n      }\n      return obj;\n    };\n  };\n})(this);\n\ngetJasmineRequireObj().util = function() {\n\n  var util = {};\n\n  util.inherit = function(childClass, parentClass) {\n    var Subclass = function() {\n    };\n    Subclass.prototype = parentClass.prototype;\n    childClass.prototype = new Subclass();\n  };\n\n  util.htmlEscape = function(str) {\n    if (!str) {\n      return str;\n    }\n    return str.replace(/&/g, '&amp;')\n      .replace(/</g, '&lt;')\n      .replace(/>/g, '&gt;');\n  };\n\n  util.argsToArray = function(args) {\n    var arrayOfArgs = [];\n    for (var i = 0; i < args.length; i++) {\n      arrayOfArgs.push(args[i]);\n    }\n    return arrayOfArgs;\n  };\n\n  util.isUndefined = function(obj) {\n    return obj === void 0;\n  };\n\n  util.arrayContains = function(array, search) {\n    var i = array.length;\n    while (i--) {\n      if (array[i] == search) {\n        return true;\n      }\n    }\n    return false;\n  };\n\n  return util;\n};\n\ngetJasmineRequireObj().Spec = function(j$) {\n  function Spec(attrs) {\n    this.expectationFactory = attrs.expectationFactory;\n    this.resultCallback = attrs.resultCallback || function() {};\n    this.id = attrs.id;\n    this.description = attrs.description || '';\n    this.fn = attrs.fn;\n    this.beforeFns = attrs.beforeFns || function() { return []; };\n    this.afterFns = attrs.afterFns || function() { return []; };\n    this.onStart = attrs.onStart || function() {};\n    this.exceptionFormatter = attrs.exceptionFormatter || function() {};\n    this.getSpecName = attrs.getSpecName || function() { return ''; };\n    this.expectationResultFactory = attrs.expectationResultFactory || function() { };\n    this.queueRunnerFactory = attrs.queueRunnerFactory || function() {};\n    this.catchingExceptions = attrs.catchingExceptions || function() { return true; };\n\n    if (!this.fn) {\n      this.pend();\n    }\n\n    this.result = {\n      id: this.id,\n      description: this.description,\n      fullName: this.getFullName(),\n      failedExpectations: [],\n      passedExpectations: []\n    };\n  }\n\n  Spec.prototype.addExpectationResult = function(passed, data) {\n    var expectationResult = this.expectationResultFactory(data);\n    if (passed) {\n      this.result.passedExpectations.push(expectationResult);\n    } else {\n      this.result.failedExpectations.push(expectationResult);\n    }\n  };\n\n  Spec.prototype.expect = function(actual) {\n    return this.expectationFactory(actual, this);\n  };\n\n  Spec.prototype.execute = function(onComplete) {\n    var self = this;\n\n    this.onStart(this);\n\n    if (this.markedPending || this.disabled) {\n      complete();\n      return;\n    }\n\n    var allFns = this.beforeFns().concat(this.fn).concat(this.afterFns());\n\n    this.queueRunnerFactory({\n      fns: allFns,\n      onException: onException,\n      onComplete: complete,\n      enforceTimeout: function() { return true; }\n    });\n\n    function onException(e) {\n      if (Spec.isPendingSpecException(e)) {\n        self.pend();\n        return;\n      }\n\n      self.addExpectationResult(false, {\n        matcherName: '',\n        passed: false,\n        expected: '',\n        actual: '',\n        error: e\n      });\n    }\n\n    function complete() {\n      self.result.status = self.status();\n      self.resultCallback(self.result);\n\n      if (onComplete) {\n        onComplete();\n      }\n    }\n  };\n\n  Spec.prototype.disable = function() {\n    this.disabled = true;\n  };\n\n  Spec.prototype.pend = function() {\n    this.markedPending = true;\n  };\n\n  Spec.prototype.status = function() {\n    if (this.disabled) {\n      return 'disabled';\n    }\n\n    if (this.markedPending) {\n      return 'pending';\n    }\n\n    if (this.result.failedExpectations.length > 0) {\n      return 'failed';\n    } else {\n      return 'passed';\n    }\n  };\n\n  Spec.prototype.getFullName = function() {\n    return this.getSpecName(this);\n  };\n\n  Spec.pendingSpecExceptionMessage = '=> marked Pending';\n\n  Spec.isPendingSpecException = function(e) {\n    return !!(e && e.toString && e.toString().indexOf(Spec.pendingSpecExceptionMessage) !== -1);\n  };\n\n  return Spec;\n};\n\nif (typeof window == void 0 && typeof exports == 'object') {\n  exports.Spec = jasmineRequire.Spec;\n}\n\ngetJasmineRequireObj().Env = function(j$) {\n  function Env(options) {\n    options = options || {};\n\n    var self = this;\n    var global = options.global || j$.getGlobal();\n\n    var totalSpecsDefined = 0;\n\n    var catchExceptions = true;\n\n    var realSetTimeout = j$.getGlobal().setTimeout;\n    var realClearTimeout = j$.getGlobal().clearTimeout;\n    this.clock = new j$.Clock(global, new j$.DelayedFunctionScheduler(), new j$.MockDate(global));\n\n    var runnableLookupTable = {};\n\n    var spies = [];\n\n    var currentSpec = null;\n    var currentSuite = null;\n\n    var reporter = new j$.ReportDispatcher([\n      'jasmineStarted',\n      'jasmineDone',\n      'suiteStarted',\n      'suiteDone',\n      'specStarted',\n      'specDone'\n    ]);\n\n    this.specFilter = function() {\n      return true;\n    };\n\n    var equalityTesters = [];\n\n    var customEqualityTesters = [];\n    this.addCustomEqualityTester = function(tester) {\n      customEqualityTesters.push(tester);\n    };\n\n    j$.Expectation.addCoreMatchers(j$.matchers);\n\n    var nextSpecId = 0;\n    var getNextSpecId = function() {\n      return 'spec' + nextSpecId++;\n    };\n\n    var nextSuiteId = 0;\n    var getNextSuiteId = function() {\n      return 'suite' + nextSuiteId++;\n    };\n\n    var expectationFactory = function(actual, spec) {\n      return j$.Expectation.Factory({\n        util: j$.matchersUtil,\n        customEqualityTesters: customEqualityTesters,\n        actual: actual,\n        addExpectationResult: addExpectationResult\n      });\n\n      function addExpectationResult(passed, result) {\n        return spec.addExpectationResult(passed, result);\n      }\n    };\n\n    var specStarted = function(spec) {\n      currentSpec = spec;\n      reporter.specStarted(spec.result);\n    };\n\n    var beforeFns = function(suite) {\n      return function() {\n        var befores = [];\n        while(suite) {\n          befores = befores.concat(suite.beforeFns);\n          suite = suite.parentSuite;\n        }\n        return befores.reverse();\n      };\n    };\n\n    var afterFns = function(suite) {\n      return function() {\n        var afters = [];\n        while(suite) {\n          afters = afters.concat(suite.afterFns);\n          suite = suite.parentSuite;\n        }\n        return afters;\n      };\n    };\n\n    var getSpecName = function(spec, suite) {\n      return suite.getFullName() + ' ' + spec.description;\n    };\n\n    // TODO: we may just be able to pass in the fn instead of wrapping here\n    var buildExpectationResult = j$.buildExpectationResult,\n        exceptionFormatter = new j$.ExceptionFormatter(),\n        expectationResultFactory = function(attrs) {\n          attrs.messageFormatter = exceptionFormatter.message;\n          attrs.stackFormatter = exceptionFormatter.stack;\n\n          return buildExpectationResult(attrs);\n        };\n\n    // TODO: fix this naming, and here's where the value comes in\n    this.catchExceptions = function(value) {\n      catchExceptions = !!value;\n      return catchExceptions;\n    };\n\n    this.catchingExceptions = function() {\n      return catchExceptions;\n    };\n\n    var maximumSpecCallbackDepth = 20;\n    var currentSpecCallbackDepth = 0;\n\n    function clearStack(fn) {\n      currentSpecCallbackDepth++;\n      if (currentSpecCallbackDepth >= maximumSpecCallbackDepth) {\n        currentSpecCallbackDepth = 0;\n        realSetTimeout(fn, 0);\n      } else {\n        fn();\n      }\n    }\n\n    var catchException = function(e) {\n      return j$.Spec.isPendingSpecException(e) || catchExceptions;\n    };\n\n    var queueRunnerFactory = function(options) {\n      options.catchException = catchException;\n      options.clearStack = options.clearStack || clearStack;\n      options.timer = {setTimeout: realSetTimeout, clearTimeout: realClearTimeout};\n\n      new j$.QueueRunner(options).execute();\n    };\n\n    var topSuite = new j$.Suite({\n      env: this,\n      id: getNextSuiteId(),\n      description: 'Jasmine__TopLevel__Suite',\n      queueRunner: queueRunnerFactory,\n      resultCallback: function() {} // TODO - hook this up\n    });\n    runnableLookupTable[topSuite.id] = topSuite;\n    currentSuite = topSuite;\n\n    this.topSuite = function() {\n      return topSuite;\n    };\n\n    this.execute = function(runnablesToRun) {\n      runnablesToRun = runnablesToRun || [topSuite.id];\n\n      var allFns = [];\n      for(var i = 0; i < runnablesToRun.length; i++) {\n        var runnable = runnableLookupTable[runnablesToRun[i]];\n        allFns.push((function(runnable) { return function(done) { runnable.execute(done); }; })(runnable));\n      }\n\n      reporter.jasmineStarted({\n        totalSpecsDefined: totalSpecsDefined\n      });\n\n      queueRunnerFactory({fns: allFns, onComplete: reporter.jasmineDone});\n    };\n\n    this.addReporter = function(reporterToAdd) {\n      reporter.addReporter(reporterToAdd);\n    };\n\n    this.addMatchers = function(matchersToAdd) {\n      j$.Expectation.addMatchers(matchersToAdd);\n    };\n\n    this.spyOn = function(obj, methodName) {\n      if (j$.util.isUndefined(obj)) {\n        throw new Error('spyOn could not find an object to spy upon for ' + methodName + '()');\n      }\n\n      if (j$.util.isUndefined(obj[methodName])) {\n        throw new Error(methodName + '() method does not exist');\n      }\n\n      if (obj[methodName] && j$.isSpy(obj[methodName])) {\n        //TODO?: should this return the current spy? Downside: may cause user confusion about spy state\n        throw new Error(methodName + ' has already been spied upon');\n      }\n\n      var spy = j$.createSpy(methodName, obj[methodName]);\n\n      spies.push({\n        spy: spy,\n        baseObj: obj,\n        methodName: methodName,\n        originalValue: obj[methodName]\n      });\n\n      obj[methodName] = spy;\n\n      return spy;\n    };\n\n    var suiteFactory = function(description) {\n      var suite = new j$.Suite({\n        env: self,\n        id: getNextSuiteId(),\n        description: description,\n        parentSuite: currentSuite,\n        queueRunner: queueRunnerFactory,\n        onStart: suiteStarted,\n        resultCallback: function(attrs) {\n          reporter.suiteDone(attrs);\n        }\n      });\n\n      runnableLookupTable[suite.id] = suite;\n      return suite;\n    };\n\n    this.describe = function(description, specDefinitions) {\n      var suite = suiteFactory(description);\n\n      var parentSuite = currentSuite;\n      parentSuite.addChild(suite);\n      currentSuite = suite;\n\n      var declarationError = null;\n      try {\n        specDefinitions.call(suite);\n      } catch (e) {\n        declarationError = e;\n      }\n\n      if (declarationError) {\n        this.it('encountered a declaration exception', function() {\n          throw declarationError;\n        });\n      }\n\n      currentSuite = parentSuite;\n\n      return suite;\n    };\n\n    this.xdescribe = function(description, specDefinitions) {\n      var suite = this.describe(description, specDefinitions);\n      suite.disable();\n      return suite;\n    };\n\n    var specFactory = function(description, fn, suite) {\n      totalSpecsDefined++;\n\n      var spec = new j$.Spec({\n        id: getNextSpecId(),\n        beforeFns: beforeFns(suite),\n        afterFns: afterFns(suite),\n        expectationFactory: expectationFactory,\n        exceptionFormatter: exceptionFormatter,\n        resultCallback: specResultCallback,\n        getSpecName: function(spec) {\n          return getSpecName(spec, suite);\n        },\n        onStart: specStarted,\n        description: description,\n        expectationResultFactory: expectationResultFactory,\n        queueRunnerFactory: queueRunnerFactory,\n        fn: fn\n      });\n\n      runnableLookupTable[spec.id] = spec;\n\n      if (!self.specFilter(spec)) {\n        spec.disable();\n      }\n\n      return spec;\n\n      function removeAllSpies() {\n        for (var i = 0; i < spies.length; i++) {\n          var spyEntry = spies[i];\n          spyEntry.baseObj[spyEntry.methodName] = spyEntry.originalValue;\n        }\n        spies = [];\n      }\n\n      function specResultCallback(result) {\n        removeAllSpies();\n        j$.Expectation.resetMatchers();\n        customEqualityTesters = [];\n        currentSpec = null;\n        reporter.specDone(result);\n      }\n    };\n\n    var suiteStarted = function(suite) {\n      reporter.suiteStarted(suite.result);\n    };\n\n    this.it = function(description, fn) {\n      var spec = specFactory(description, fn, currentSuite);\n      currentSuite.addChild(spec);\n      return spec;\n    };\n\n    this.xit = function(description, fn) {\n      var spec = this.it(description, fn);\n      spec.pend();\n      return spec;\n    };\n\n    this.expect = function(actual) {\n      if (!currentSpec) {\n        throw new Error('\\'expect\\' was used when there was no current spec, this could be because an asynchronous test timed out');\n      }\n\n      return currentSpec.expect(actual);\n    };\n\n    this.beforeEach = function(beforeEachFunction) {\n      currentSuite.beforeEach(beforeEachFunction);\n    };\n\n    this.afterEach = function(afterEachFunction) {\n      currentSuite.afterEach(afterEachFunction);\n    };\n\n    this.pending = function() {\n      throw j$.Spec.pendingSpecExceptionMessage;\n    };\n  }\n\n  return Env;\n};\n\ngetJasmineRequireObj().JsApiReporter = function() {\n\n  var noopTimer = {\n    start: function(){},\n    elapsed: function(){ return 0; }\n  };\n\n  function JsApiReporter(options) {\n    var timer = options.timer || noopTimer,\n        status = 'loaded';\n\n    this.started = false;\n    this.finished = false;\n\n    this.jasmineStarted = function() {\n      this.started = true;\n      status = 'started';\n      timer.start();\n    };\n\n    var executionTime;\n\n    this.jasmineDone = function() {\n      this.finished = true;\n      executionTime = timer.elapsed();\n      status = 'done';\n    };\n\n    this.status = function() {\n      return status;\n    };\n\n    var suites = {};\n\n    this.suiteStarted = function(result) {\n      storeSuite(result);\n    };\n\n    this.suiteDone = function(result) {\n      storeSuite(result);\n    };\n\n    function storeSuite(result) {\n      suites[result.id] = result;\n    }\n\n    this.suites = function() {\n      return suites;\n    };\n\n    var specs = [];\n    this.specStarted = function(result) { };\n\n    this.specDone = function(result) {\n      specs.push(result);\n    };\n\n    this.specResults = function(index, length) {\n      return specs.slice(index, index + length);\n    };\n\n    this.specs = function() {\n      return specs;\n    };\n\n    this.executionTime = function() {\n      return executionTime;\n    };\n\n  }\n\n  return JsApiReporter;\n};\n\ngetJasmineRequireObj().Any = function() {\n\n  function Any(expectedObject) {\n    this.expectedObject = expectedObject;\n  }\n\n  Any.prototype.jasmineMatches = function(other) {\n    if (this.expectedObject == String) {\n      return typeof other == 'string' || other instanceof String;\n    }\n\n    if (this.expectedObject == Number) {\n      return typeof other == 'number' || other instanceof Number;\n    }\n\n    if (this.expectedObject == Function) {\n      return typeof other == 'function' || other instanceof Function;\n    }\n\n    if (this.expectedObject == Object) {\n      return typeof other == 'object';\n    }\n    \n    if (this.expectedObject == Boolean) {\n      return typeof other == 'boolean';\n    }\n\n    return other instanceof this.expectedObject;\n  };\n\n  Any.prototype.jasmineToString = function() {\n    return '<jasmine.any(' + this.expectedObject + ')>';\n  };\n\n  return Any;\n};\n\ngetJasmineRequireObj().CallTracker = function() {\n\n  function CallTracker() {\n    var calls = [];\n\n    this.track = function(context) {\n      calls.push(context);\n    };\n\n    this.any = function() {\n      return !!calls.length;\n    };\n\n    this.count = function() {\n      return calls.length;\n    };\n\n    this.argsFor = function(index) {\n      var call = calls[index];\n      return call ? call.args : [];\n    };\n\n    this.all = function() {\n      return calls;\n    };\n\n    this.allArgs = function() {\n      var callArgs = [];\n      for(var i = 0; i < calls.length; i++){\n        callArgs.push(calls[i].args);\n      }\n\n      return callArgs;\n    };\n\n    this.first = function() {\n      return calls[0];\n    };\n\n    this.mostRecent = function() {\n      return calls[calls.length - 1];\n    };\n\n    this.reset = function() {\n      calls = [];\n    };\n  }\n\n  return CallTracker;\n};\n\ngetJasmineRequireObj().Clock = function() {\n  function Clock(global, delayedFunctionScheduler, mockDate) {\n    var self = this,\n      realTimingFunctions = {\n        setTimeout: global.setTimeout,\n        clearTimeout: global.clearTimeout,\n        setInterval: global.setInterval,\n        clearInterval: global.clearInterval\n      },\n      fakeTimingFunctions = {\n        setTimeout: setTimeout,\n        clearTimeout: clearTimeout,\n        setInterval: setInterval,\n        clearInterval: clearInterval\n      },\n      installed = false,\n      timer;\n\n\n    self.install = function() {\n      replace(global, fakeTimingFunctions);\n      timer = fakeTimingFunctions;\n      installed = true;\n\n      return self;\n    };\n\n    self.uninstall = function() {\n      delayedFunctionScheduler.reset();\n      mockDate.uninstall();\n      replace(global, realTimingFunctions);\n\n      timer = realTimingFunctions;\n      installed = false;\n    };\n\n    self.mockDate = function(initialDate) {\n      mockDate.install(initialDate);\n    };\n\n    self.setTimeout = function(fn, delay, params) {\n      if (legacyIE()) {\n        if (arguments.length > 2) {\n          throw new Error('IE < 9 cannot support extra params to setTimeout without a polyfill');\n        }\n        return timer.setTimeout(fn, delay);\n      }\n      return Function.prototype.apply.apply(timer.setTimeout, [global, arguments]);\n    };\n\n    self.setInterval = function(fn, delay, params) {\n      if (legacyIE()) {\n        if (arguments.length > 2) {\n          throw new Error('IE < 9 cannot support extra params to setInterval without a polyfill');\n        }\n        return timer.setInterval(fn, delay);\n      }\n      return Function.prototype.apply.apply(timer.setInterval, [global, arguments]);\n    };\n\n    self.clearTimeout = function(id) {\n      return Function.prototype.call.apply(timer.clearTimeout, [global, id]);\n    };\n\n    self.clearInterval = function(id) {\n      return Function.prototype.call.apply(timer.clearInterval, [global, id]);\n    };\n\n    self.tick = function(millis) {\n      if (installed) {\n        mockDate.tick(millis);\n        delayedFunctionScheduler.tick(millis);\n      } else {\n        throw new Error('Mock clock is not installed, use jasmine.clock().install()');\n      }\n    };\n\n    return self;\n\n    function legacyIE() {\n      //if these methods are polyfilled, apply will be present\n      return !(realTimingFunctions.setTimeout || realTimingFunctions.setInterval).apply;\n    }\n\n    function replace(dest, source) {\n      for (var prop in source) {\n        dest[prop] = source[prop];\n      }\n    }\n\n    function setTimeout(fn, delay) {\n      return delayedFunctionScheduler.scheduleFunction(fn, delay, argSlice(arguments, 2));\n    }\n\n    function clearTimeout(id) {\n      return delayedFunctionScheduler.removeFunctionWithId(id);\n    }\n\n    function setInterval(fn, interval) {\n      return delayedFunctionScheduler.scheduleFunction(fn, interval, argSlice(arguments, 2), true);\n    }\n\n    function clearInterval(id) {\n      return delayedFunctionScheduler.removeFunctionWithId(id);\n    }\n\n    function argSlice(argsObj, n) {\n      return Array.prototype.slice.call(argsObj, n);\n    }\n  }\n\n  return Clock;\n};\n\ngetJasmineRequireObj().DelayedFunctionScheduler = function() {\n  function DelayedFunctionScheduler() {\n    var self = this;\n    var scheduledLookup = [];\n    var scheduledFunctions = {};\n    var currentTime = 0;\n    var delayedFnCount = 0;\n\n    self.tick = function(millis) {\n      millis = millis || 0;\n      var endTime = currentTime + millis;\n\n      runScheduledFunctions(endTime);\n      currentTime = endTime;\n    };\n\n    self.scheduleFunction = function(funcToCall, millis, params, recurring, timeoutKey, runAtMillis) {\n      var f;\n      if (typeof(funcToCall) === 'string') {\n        /* jshint evil: true */\n        f = function() { return eval(funcToCall); };\n        /* jshint evil: false */\n      } else {\n        f = funcToCall;\n      }\n\n      millis = millis || 0;\n      timeoutKey = timeoutKey || ++delayedFnCount;\n      runAtMillis = runAtMillis || (currentTime + millis);\n\n      var funcToSchedule = {\n        runAtMillis: runAtMillis,\n        funcToCall: f,\n        recurring: recurring,\n        params: params,\n        timeoutKey: timeoutKey,\n        millis: millis\n      };\n\n      if (runAtMillis in scheduledFunctions) {\n        scheduledFunctions[runAtMillis].push(funcToSchedule);\n      } else {\n        scheduledFunctions[runAtMillis] = [funcToSchedule];\n        scheduledLookup.push(runAtMillis);\n        scheduledLookup.sort(function (a, b) {\n          return a - b;\n        });\n      }\n\n      return timeoutKey;\n    };\n\n    self.removeFunctionWithId = function(timeoutKey) {\n      for (var runAtMillis in scheduledFunctions) {\n        var funcs = scheduledFunctions[runAtMillis];\n        var i = indexOfFirstToPass(funcs, function (func) {\n          return func.timeoutKey === timeoutKey;\n        });\n\n        if (i > -1) {\n          if (funcs.length === 1) {\n            delete scheduledFunctions[runAtMillis];\n            deleteFromLookup(runAtMillis);\n          } else {\n            funcs.splice(i, 1);\n          }\n\n          // intervals get rescheduled when executed, so there's never more\n          // than a single scheduled function with a given timeoutKey\n          break;\n        }\n      }\n    };\n\n    self.reset = function() {\n      currentTime = 0;\n      scheduledLookup = [];\n      scheduledFunctions = {};\n      delayedFnCount = 0;\n    };\n\n    return self;\n\n    function indexOfFirstToPass(array, testFn) {\n      var index = -1;\n\n      for (var i = 0; i < array.length; ++i) {\n        if (testFn(array[i])) {\n          index = i;\n          break;\n        }\n      }\n\n      return index;\n    }\n\n    function deleteFromLookup(key) {\n      var value = Number(key);\n      var i = indexOfFirstToPass(scheduledLookup, function (millis) {\n        return millis === value;\n      });\n\n      if (i > -1) {\n        scheduledLookup.splice(i, 1);\n      }\n    }\n\n    function reschedule(scheduledFn) {\n      self.scheduleFunction(scheduledFn.funcToCall,\n        scheduledFn.millis,\n        scheduledFn.params,\n        true,\n        scheduledFn.timeoutKey,\n        scheduledFn.runAtMillis + scheduledFn.millis);\n    }\n\n    function runScheduledFunctions(endTime) {\n      if (scheduledLookup.length === 0 || scheduledLookup[0] > endTime) {\n        return;\n      }\n\n      do {\n        currentTime = scheduledLookup.shift();\n\n        var funcsToRun = scheduledFunctions[currentTime];\n        delete scheduledFunctions[currentTime];\n\n        for (var i = 0; i < funcsToRun.length; ++i) {\n          var funcToRun = funcsToRun[i];\n          funcToRun.funcToCall.apply(null, funcToRun.params || []);\n\n          if (funcToRun.recurring) {\n            reschedule(funcToRun);\n          }\n        }\n      } while (scheduledLookup.length > 0 &&\n              // checking first if we're out of time prevents setTimeout(0)\n              // scheduled in a funcToRun from forcing an extra iteration\n                 currentTime !== endTime  &&\n                 scheduledLookup[0] <= endTime);\n    }\n  }\n\n  return DelayedFunctionScheduler;\n};\n\ngetJasmineRequireObj().ExceptionFormatter = function() {\n  function ExceptionFormatter() {\n    this.message = function(error) {\n      var message = '';\n\n      if (error.name && error.message) {\n        message += error.name + ': ' + error.message;\n      } else {\n        message += error.toString() + ' thrown';\n      }\n\n      if (error.fileName || error.sourceURL) {\n        message += ' in ' + (error.fileName || error.sourceURL);\n      }\n\n      if (error.line || error.lineNumber) {\n        message += ' (line ' + (error.line || error.lineNumber) + ')';\n      }\n\n      return message;\n    };\n\n    this.stack = function(error) {\n      return error ? error.stack : null;\n    };\n  }\n\n  return ExceptionFormatter;\n};\n\ngetJasmineRequireObj().Expectation = function() {\n\n  var matchers = {};\n\n  function Expectation(options) {\n    this.util = options.util || { buildFailureMessage: function() {} };\n    this.customEqualityTesters = options.customEqualityTesters || [];\n    this.actual = options.actual;\n    this.addExpectationResult = options.addExpectationResult || function(){};\n    this.isNot = options.isNot;\n\n    for (var matcherName in matchers) {\n      this[matcherName] = matchers[matcherName];\n    }\n  }\n\n  Expectation.prototype.wrapCompare = function(name, matcherFactory) {\n    return function() {\n      var args = Array.prototype.slice.call(arguments, 0),\n        expected = args.slice(0),\n        message = '';\n\n      args.unshift(this.actual);\n\n      var matcher = matcherFactory(this.util, this.customEqualityTesters),\n          matcherCompare = matcher.compare;\n\n      function defaultNegativeCompare() {\n        var result = matcher.compare.apply(null, args);\n        result.pass = !result.pass;\n        return result;\n      }\n\n      if (this.isNot) {\n        matcherCompare = matcher.negativeCompare || defaultNegativeCompare;\n      }\n\n      var result = matcherCompare.apply(null, args);\n\n      if (!result.pass) {\n        if (!result.message) {\n          args.unshift(this.isNot);\n          args.unshift(name);\n          message = this.util.buildFailureMessage.apply(null, args);\n        } else {\n          if (Object.prototype.toString.apply(result.message) === '[object Function]') {\n            message = result.message();\n          } else {\n            message = result.message;\n          }\n        }\n      }\n\n      if (expected.length == 1) {\n        expected = expected[0];\n      }\n\n      // TODO: how many of these params are needed?\n      this.addExpectationResult(\n        result.pass,\n        {\n          matcherName: name,\n          passed: result.pass,\n          message: message,\n          actual: this.actual,\n          expected: expected // TODO: this may need to be arrayified/sliced\n        }\n      );\n    };\n  };\n\n  Expectation.addCoreMatchers = function(matchers) {\n    var prototype = Expectation.prototype;\n    for (var matcherName in matchers) {\n      var matcher = matchers[matcherName];\n      prototype[matcherName] = prototype.wrapCompare(matcherName, matcher);\n    }\n  };\n\n  Expectation.addMatchers = function(matchersToAdd) {\n    for (var name in matchersToAdd) {\n      var matcher = matchersToAdd[name];\n      matchers[name] = Expectation.prototype.wrapCompare(name, matcher);\n    }\n  };\n\n  Expectation.resetMatchers = function() {\n    for (var name in matchers) {\n      delete matchers[name];\n    }\n  };\n\n  Expectation.Factory = function(options) {\n    options = options || {};\n\n    var expect = new Expectation(options);\n\n    // TODO: this would be nice as its own Object - NegativeExpectation\n    // TODO: copy instead of mutate options\n    options.isNot = true;\n    expect.not = new Expectation(options);\n\n    return expect;\n  };\n\n  return Expectation;\n};\n\n//TODO: expectation result may make more sense as a presentation of an expectation.\ngetJasmineRequireObj().buildExpectationResult = function() {\n  function buildExpectationResult(options) {\n    var messageFormatter = options.messageFormatter || function() {},\n      stackFormatter = options.stackFormatter || function() {};\n\n    return {\n      matcherName: options.matcherName,\n      expected: options.expected,\n      actual: options.actual,\n      message: message(),\n      stack: stack(),\n      passed: options.passed\n    };\n\n    function message() {\n      if (options.passed) {\n        return 'Passed.';\n      } else if (options.message) {\n        return options.message;\n      } else if (options.error) {\n        return messageFormatter(options.error);\n      }\n      return '';\n    }\n\n    function stack() {\n      if (options.passed) {\n        return '';\n      }\n\n      var error = options.error;\n      if (!error) {\n        try {\n          throw new Error(message());\n        } catch (e) {\n          error = e;\n        }\n      }\n      return stackFormatter(error);\n    }\n  }\n\n  return buildExpectationResult;\n};\n\ngetJasmineRequireObj().MockDate = function() {\n  function MockDate(global) {\n    var self = this;\n    var currentTime = 0;\n\n    if (!global || !global.Date) {\n      self.install = function() {};\n      self.tick = function() {};\n      self.uninstall = function() {};\n      return self;\n    }\n\n    var GlobalDate = global.Date;\n\n    self.install = function(mockDate) {\n      if (mockDate instanceof GlobalDate) {\n        currentTime = mockDate.getTime();\n      } else {\n        currentTime = new GlobalDate().getTime();\n      }\n\n      global.Date = FakeDate;\n    };\n\n    self.tick = function(millis) {\n      millis = millis || 0;\n      currentTime = currentTime + millis;\n    };\n\n    self.uninstall = function() {\n      currentTime = 0;\n      global.Date = GlobalDate;\n    };\n\n    createDateProperties();\n\n    return self;\n\n    function FakeDate() {\n      switch(arguments.length) {\n        case 0:\n          return new GlobalDate(currentTime);\n        case 1:\n          return new GlobalDate(arguments[0]);\n        case 2:\n          return new GlobalDate(arguments[0], arguments[1]);\n        case 3:\n          return new GlobalDate(arguments[0], arguments[1], arguments[2]);\n        case 4:\n          return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3]);\n        case 5:\n          return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3],\n                                arguments[4]);\n        case 6:\n          return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3],\n                                arguments[4], arguments[5]);\n        case 7:\n          return new GlobalDate(arguments[0], arguments[1], arguments[2], arguments[3],\n                                arguments[4], arguments[5], arguments[6]);\n      }\n    }\n\n    function createDateProperties() {\n\n      FakeDate.now = function() {\n        if (GlobalDate.now) {\n          return currentTime;\n        } else {\n          throw new Error('Browser does not support Date.now()');\n        }\n      };\n\n      FakeDate.toSource = GlobalDate.toSource;\n      FakeDate.toString = GlobalDate.toString;\n      FakeDate.parse = GlobalDate.parse;\n      FakeDate.UTC = GlobalDate.UTC;\n    }\n\t}\n\n  return MockDate;\n};\n\ngetJasmineRequireObj().ObjectContaining = function(j$) {\n\n  function ObjectContaining(sample) {\n    this.sample = sample;\n  }\n\n  ObjectContaining.prototype.jasmineMatches = function(other, mismatchKeys, mismatchValues) {\n    if (typeof(this.sample) !== 'object') { throw new Error('You must provide an object to objectContaining, not \\''+this.sample+'\\'.'); }\n\n    mismatchKeys = mismatchKeys || [];\n    mismatchValues = mismatchValues || [];\n\n    var hasKey = function(obj, keyName) {\n      return obj !== null && !j$.util.isUndefined(obj[keyName]);\n    };\n\n    for (var property in this.sample) {\n      if (!hasKey(other, property) && hasKey(this.sample, property)) {\n        mismatchKeys.push('expected has key \\'' + property + '\\', but missing from actual.');\n      }\n      else if (!j$.matchersUtil.equals(other[property], this.sample[property])) {\n        mismatchValues.push('\\'' + property + '\\' was \\'' + (other[property] ? j$.util.htmlEscape(other[property].toString()) : other[property]) + '\\' in actual, but was \\'' + (this.sample[property] ? j$.util.htmlEscape(this.sample[property].toString()) : this.sample[property]) + '\\' in expected.');\n      }\n    }\n\n    return (mismatchKeys.length === 0 && mismatchValues.length === 0);\n  };\n\n  ObjectContaining.prototype.jasmineToString = function() {\n    return '<jasmine.objectContaining(' + j$.pp(this.sample) + ')>';\n  };\n\n  return ObjectContaining;\n};\n\ngetJasmineRequireObj().pp = function(j$) {\n\n  function PrettyPrinter() {\n    this.ppNestLevel_ = 0;\n    this.seen = [];\n  }\n\n  PrettyPrinter.prototype.format = function(value) {\n    this.ppNestLevel_++;\n    try {\n      if (j$.util.isUndefined(value)) {\n        this.emitScalar('undefined');\n      } else if (value === null) {\n        this.emitScalar('null');\n      } else if (value === 0 && 1/value === -Infinity) {\n        this.emitScalar('-0');\n      } else if (value === j$.getGlobal()) {\n        this.emitScalar('<global>');\n      } else if (value.jasmineToString) {\n        this.emitScalar(value.jasmineToString());\n      } else if (typeof value === 'string') {\n        this.emitString(value);\n      } else if (j$.isSpy(value)) {\n        this.emitScalar('spy on ' + value.and.identity());\n      } else if (value instanceof RegExp) {\n        this.emitScalar(value.toString());\n      } else if (typeof value === 'function') {\n        this.emitScalar('Function');\n      } else if (typeof value.nodeType === 'number') {\n        this.emitScalar('HTMLNode');\n      } else if (value instanceof Date) {\n        this.emitScalar('Date(' + value + ')');\n      } else if (j$.util.arrayContains(this.seen, value)) {\n        this.emitScalar('<circular reference: ' + (j$.isArray_(value) ? 'Array' : 'Object') + '>');\n      } else if (j$.isArray_(value) || j$.isA_('Object', value)) {\n        this.seen.push(value);\n        if (j$.isArray_(value)) {\n          this.emitArray(value);\n        } else {\n          this.emitObject(value);\n        }\n        this.seen.pop();\n      } else {\n        this.emitScalar(value.toString());\n      }\n    } finally {\n      this.ppNestLevel_--;\n    }\n  };\n\n  PrettyPrinter.prototype.iterateObject = function(obj, fn) {\n    for (var property in obj) {\n      if (!Object.prototype.hasOwnProperty.call(obj, property)) { continue; }\n      fn(property, obj.__lookupGetter__ ? (!j$.util.isUndefined(obj.__lookupGetter__(property)) &&\n          obj.__lookupGetter__(property) !== null) : false);\n    }\n  };\n\n  PrettyPrinter.prototype.emitArray = j$.unimplementedMethod_;\n  PrettyPrinter.prototype.emitObject = j$.unimplementedMethod_;\n  PrettyPrinter.prototype.emitScalar = j$.unimplementedMethod_;\n  PrettyPrinter.prototype.emitString = j$.unimplementedMethod_;\n\n  function StringPrettyPrinter() {\n    PrettyPrinter.call(this);\n\n    this.string = '';\n  }\n\n  j$.util.inherit(StringPrettyPrinter, PrettyPrinter);\n\n  StringPrettyPrinter.prototype.emitScalar = function(value) {\n    this.append(value);\n  };\n\n  StringPrettyPrinter.prototype.emitString = function(value) {\n    this.append('\\'' + value + '\\'');\n  };\n\n  StringPrettyPrinter.prototype.emitArray = function(array) {\n    if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) {\n      this.append('Array');\n      return;\n    }\n    var length = Math.min(array.length, j$.MAX_PRETTY_PRINT_ARRAY_LENGTH);\n    this.append('[ ');\n    for (var i = 0; i < length; i++) {\n      if (i > 0) {\n        this.append(', ');\n      }\n      this.format(array[i]);\n    }\n    if(array.length > length){\n      this.append(', ...');\n    }\n    this.append(' ]');\n  };\n\n  StringPrettyPrinter.prototype.emitObject = function(obj) {\n    if (this.ppNestLevel_ > j$.MAX_PRETTY_PRINT_DEPTH) {\n      this.append('Object');\n      return;\n    }\n\n    var self = this;\n    this.append('{ ');\n    var first = true;\n\n    this.iterateObject(obj, function(property, isGetter) {\n      if (first) {\n        first = false;\n      } else {\n        self.append(', ');\n      }\n\n      self.append(property);\n      self.append(': ');\n      if (isGetter) {\n        self.append('<getter>');\n      } else {\n        self.format(obj[property]);\n      }\n    });\n\n    this.append(' }');\n  };\n\n  StringPrettyPrinter.prototype.append = function(value) {\n    this.string += value;\n  };\n\n  return function(value) {\n    var stringPrettyPrinter = new StringPrettyPrinter();\n    stringPrettyPrinter.format(value);\n    return stringPrettyPrinter.string;\n  };\n};\n\ngetJasmineRequireObj().QueueRunner = function(j$) {\n\n  function once(fn) {\n    var called = false;\n    return function() {\n      if (!called) {\n        called = true;\n        fn();\n      }\n    };\n  }\n\n  function QueueRunner(attrs) {\n    this.fns = attrs.fns || [];\n    this.onComplete = attrs.onComplete || function() {};\n    this.clearStack = attrs.clearStack || function(fn) {fn();};\n    this.onException = attrs.onException || function() {};\n    this.catchException = attrs.catchException || function() { return true; };\n    this.enforceTimeout = attrs.enforceTimeout || function() { return false; };\n    this.userContext = {};\n    this.timer = attrs.timeout || {setTimeout: setTimeout, clearTimeout: clearTimeout};\n  }\n\n  QueueRunner.prototype.execute = function() {\n    this.run(this.fns, 0);\n  };\n\n  QueueRunner.prototype.run = function(fns, recursiveIndex) {\n    var length = fns.length,\n        self = this,\n        iterativeIndex;\n\n    for(iterativeIndex = recursiveIndex; iterativeIndex < length; iterativeIndex++) {\n      var fn = fns[iterativeIndex];\n      if (fn.length > 0) {\n        return attemptAsync(fn);\n      } else {\n        attemptSync(fn);\n      }\n    }\n\n    var runnerDone = iterativeIndex >= length;\n\n    if (runnerDone) {\n      this.clearStack(this.onComplete);\n    }\n\n    function attemptSync(fn) {\n      try {\n        fn.call(self.userContext);\n      } catch (e) {\n        handleException(e);\n      }\n    }\n\n    function attemptAsync(fn) {\n      var clearTimeout = function () {\n          Function.prototype.apply.apply(self.timer.clearTimeout, [j$.getGlobal(), [timeoutId]]);\n        },\n        next = once(function () {\n          clearTimeout(timeoutId);\n          self.run(fns, iterativeIndex + 1);\n        }),\n        timeoutId;\n\n      if (self.enforceTimeout()) {\n        timeoutId = Function.prototype.apply.apply(self.timer.setTimeout, [j$.getGlobal(), [function() {\n          self.onException(new Error('Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.'));\n          next();\n        }, j$.DEFAULT_TIMEOUT_INTERVAL]]);\n      }\n\n      try {\n        fn.call(self.userContext, next);\n      } catch (e) {\n        handleException(e);\n        next();\n      }\n    }\n\n    function handleException(e) {\n      self.onException(e);\n      if (!self.catchException(e)) {\n        //TODO: set a var when we catch an exception and\n        //use a finally block to close the loop in a nice way..\n        throw e;\n      }\n    }\n  };\n\n  return QueueRunner;\n};\n\ngetJasmineRequireObj().ReportDispatcher = function() {\n  function ReportDispatcher(methods) {\n\n    var dispatchedMethods = methods || [];\n\n    for (var i = 0; i < dispatchedMethods.length; i++) {\n      var method = dispatchedMethods[i];\n      this[method] = (function(m) {\n        return function() {\n          dispatch(m, arguments);\n        };\n      }(method));\n    }\n\n    var reporters = [];\n\n    this.addReporter = function(reporter) {\n      reporters.push(reporter);\n    };\n\n    return this;\n\n    function dispatch(method, args) {\n      for (var i = 0; i < reporters.length; i++) {\n        var reporter = reporters[i];\n        if (reporter[method]) {\n          reporter[method].apply(reporter, args);\n        }\n      }\n    }\n  }\n\n  return ReportDispatcher;\n};\n\n\ngetJasmineRequireObj().SpyStrategy = function() {\n\n  function SpyStrategy(options) {\n    options = options || {};\n\n    var identity = options.name || 'unknown',\n        originalFn = options.fn || function() {},\n        getSpy = options.getSpy || function() {},\n        plan = function() {};\n\n    this.identity = function() {\n      return identity;\n    };\n\n    this.exec = function() {\n      return plan.apply(this, arguments);\n    };\n\n    this.callThrough = function() {\n      plan = originalFn;\n      return getSpy();\n    };\n\n    this.returnValue = function(value) {\n      plan = function() {\n        return value;\n      };\n      return getSpy();\n    };\n\n    this.throwError = function(something) {\n      var error = (something instanceof Error) ? something : new Error(something);\n      plan = function() {\n        throw error;\n      };\n      return getSpy();\n    };\n\n    this.callFake = function(fn) {\n      plan = fn;\n      return getSpy();\n    };\n\n    this.stub = function(fn) {\n      plan = function() {};\n      return getSpy();\n    };\n  }\n\n  return SpyStrategy;\n};\n\ngetJasmineRequireObj().Suite = function() {\n  function Suite(attrs) {\n    this.env = attrs.env;\n    this.id = attrs.id;\n    this.parentSuite = attrs.parentSuite;\n    this.description = attrs.description;\n    this.onStart = attrs.onStart || function() {};\n    this.resultCallback = attrs.resultCallback || function() {};\n    this.clearStack = attrs.clearStack || function(fn) {fn();};\n\n    this.beforeFns = [];\n    this.afterFns = [];\n    this.queueRunner = attrs.queueRunner || function() {};\n    this.disabled = false;\n\n    this.children = [];\n\n    this.result = {\n      id: this.id,\n      status: this.disabled ? 'disabled' : '',\n      description: this.description,\n      fullName: this.getFullName()\n    };\n  }\n\n  Suite.prototype.getFullName = function() {\n    var fullName = this.description;\n    for (var parentSuite = this.parentSuite; parentSuite; parentSuite = parentSuite.parentSuite) {\n      if (parentSuite.parentSuite) {\n        fullName = parentSuite.description + ' ' + fullName;\n      }\n    }\n    return fullName;\n  };\n\n  Suite.prototype.disable = function() {\n    this.disabled = true;\n    this.result.status = 'disabled';\n  };\n\n  Suite.prototype.beforeEach = function(fn) {\n    this.beforeFns.unshift(fn);\n  };\n\n  Suite.prototype.afterEach = function(fn) {\n    this.afterFns.unshift(fn);\n  };\n\n  Suite.prototype.addChild = function(child) {\n    this.children.push(child);\n  };\n\n  Suite.prototype.execute = function(onComplete) {\n    var self = this;\n\n    this.onStart(this);\n\n    if (this.disabled) {\n      complete();\n      return;\n    }\n\n    var allFns = [];\n\n    for (var i = 0; i < this.children.length; i++) {\n      allFns.push(wrapChildAsAsync(this.children[i]));\n    }\n\n    this.queueRunner({\n      fns: allFns,\n      onComplete: complete\n    });\n\n    function complete() {\n      self.resultCallback(self.result);\n\n      if (onComplete) {\n        onComplete();\n      }\n    }\n\n    function wrapChildAsAsync(child) {\n      return function(done) { child.execute(done); };\n    }\n  };\n\n  return Suite;\n};\n\nif (typeof window == void 0 && typeof exports == 'object') {\n  exports.Suite = jasmineRequire.Suite;\n}\n\ngetJasmineRequireObj().Timer = function() {\n  var defaultNow = (function(Date) {\n    return function() { return new Date().getTime(); };\n  })(Date);\n\n  function Timer(options) {\n    options = options || {};\n\n    var now = options.now || defaultNow,\n      startTime;\n\n    this.start = function() {\n      startTime = now();\n    };\n\n    this.elapsed = function() {\n      return now() - startTime;\n    };\n  }\n\n  return Timer;\n};\n\ngetJasmineRequireObj().matchersUtil = function(j$) {\n  // TODO: what to do about jasmine.pp not being inject? move to JSON.stringify? gut PrettyPrinter?\n\n  return {\n    equals: function(a, b, customTesters) {\n      customTesters = customTesters || [];\n\n      return eq(a, b, [], [], customTesters);\n    },\n\n    contains: function(haystack, needle, customTesters) {\n      customTesters = customTesters || [];\n\n      if (Object.prototype.toString.apply(haystack) === '[object Array]') {\n        for (var i = 0; i < haystack.length; i++) {\n          if (eq(haystack[i], needle, [], [], customTesters)) {\n            return true;\n          }\n        }\n        return false;\n      }\n      return !!haystack && haystack.indexOf(needle) >= 0;\n    },\n\n    buildFailureMessage: function() {\n      var args = Array.prototype.slice.call(arguments, 0),\n        matcherName = args[0],\n        isNot = args[1],\n        actual = args[2],\n        expected = args.slice(3),\n        englishyPredicate = matcherName.replace(/[A-Z]/g, function(s) { return ' ' + s.toLowerCase(); });\n\n      var message = 'Expected ' +\n        j$.pp(actual) +\n        (isNot ? ' not ' : ' ') +\n        englishyPredicate;\n\n      if (expected.length > 0) {\n        for (var i = 0; i < expected.length; i++) {\n          if (i > 0) {\n            message += ',';\n          }\n          message += ' ' + j$.pp(expected[i]);\n        }\n      }\n\n      return message + '.';\n    }\n  };\n\n  // Equality function lovingly adapted from isEqual in\n  //   [Underscore](http://underscorejs.org)\n  function eq(a, b, aStack, bStack, customTesters) {\n    var result = true;\n\n    for (var i = 0; i < customTesters.length; i++) {\n      var customTesterResult = customTesters[i](a, b);\n      if (!j$.util.isUndefined(customTesterResult)) {\n        return customTesterResult;\n      }\n    }\n\n    if (a instanceof j$.Any) {\n      result = a.jasmineMatches(b);\n      if (result) {\n        return true;\n      }\n    }\n\n    if (b instanceof j$.Any) {\n      result = b.jasmineMatches(a);\n      if (result) {\n        return true;\n      }\n    }\n\n    if (b instanceof j$.ObjectContaining) {\n      result = b.jasmineMatches(a);\n      if (result) {\n        return true;\n      }\n    }\n\n    if (a instanceof Error && b instanceof Error) {\n      return a.message == b.message;\n    }\n\n    // Identical objects are equal. `0 === -0`, but they aren't identical.\n    // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).\n    if (a === b) { return a !== 0 || 1 / a == 1 / b; }\n    // A strict comparison is necessary because `null == undefined`.\n    if (a === null || b === null) { return a === b; }\n    var className = Object.prototype.toString.call(a);\n    if (className != Object.prototype.toString.call(b)) { return false; }\n    switch (className) {\n      // Strings, numbers, dates, and booleans are compared by value.\n      case '[object String]':\n        // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n        // equivalent to `new String(\"5\")`.\n        return a == String(b);\n      case '[object Number]':\n        // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n        // other numeric values.\n        return a != +a ? b != +b : (a === 0 ? 1 / a == 1 / b : a == +b);\n      case '[object Date]':\n      case '[object Boolean]':\n        // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n        // millisecond representations. Note that invalid dates with millisecond representations\n        // of `NaN` are not equivalent.\n        return +a == +b;\n      // RegExps are compared by their source patterns and flags.\n      case '[object RegExp]':\n        return a.source == b.source &&\n          a.global == b.global &&\n          a.multiline == b.multiline &&\n          a.ignoreCase == b.ignoreCase;\n    }\n    if (typeof a != 'object' || typeof b != 'object') { return false; }\n    // Assume equality for cyclic structures. The algorithm for detecting cyclic\n    // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n    var length = aStack.length;\n    while (length--) {\n      // Linear search. Performance is inversely proportional to the number of\n      // unique nested structures.\n      if (aStack[length] == a) { return bStack[length] == b; }\n    }\n    // Add the first object to the stack of traversed objects.\n    aStack.push(a);\n    bStack.push(b);\n    var size = 0;\n    // Recursively compare objects and arrays.\n    if (className == '[object Array]') {\n      // Compare array lengths to determine if a deep comparison is necessary.\n      size = a.length;\n      result = size == b.length;\n      if (result) {\n        // Deep compare the contents, ignoring non-numeric properties.\n        while (size--) {\n          if (!(result = eq(a[size], b[size], aStack, bStack, customTesters))) { break; }\n        }\n      }\n    } else {\n      // Objects with different constructors are not equivalent, but `Object`s\n      // from different frames are.\n      var aCtor = a.constructor, bCtor = b.constructor;\n      if (aCtor !== bCtor && !(isFunction(aCtor) && (aCtor instanceof aCtor) &&\n        isFunction(bCtor) && (bCtor instanceof bCtor))) {\n        return false;\n      }\n      // Deep compare objects.\n      for (var key in a) {\n        if (has(a, key)) {\n          // Count the expected number of properties.\n          size++;\n          // Deep compare each member.\n          if (!(result = has(b, key) && eq(a[key], b[key], aStack, bStack, customTesters))) { break; }\n        }\n      }\n      // Ensure that both objects contain the same number of properties.\n      if (result) {\n        for (key in b) {\n          if (has(b, key) && !(size--)) { break; }\n        }\n        result = !size;\n      }\n    }\n    // Remove the first object from the stack of traversed objects.\n    aStack.pop();\n    bStack.pop();\n\n    return result;\n\n    function has(obj, key) {\n      return obj.hasOwnProperty(key);\n    }\n\n    function isFunction(obj) {\n      return typeof obj === 'function';\n    }\n  }\n};\n\ngetJasmineRequireObj().toBe = function() {\n  function toBe() {\n    return {\n      compare: function(actual, expected) {\n        return {\n          pass: actual === expected\n        };\n      }\n    };\n  }\n\n  return toBe;\n};\n\ngetJasmineRequireObj().toBeCloseTo = function() {\n\n  function toBeCloseTo() {\n    return {\n      compare: function(actual, expected, precision) {\n        if (precision !== 0) {\n          precision = precision || 2;\n        }\n\n        return {\n          pass: Math.abs(expected - actual) < (Math.pow(10, -precision) / 2)\n        };\n      }\n    };\n  }\n\n  return toBeCloseTo;\n};\n\ngetJasmineRequireObj().toBeDefined = function() {\n  function toBeDefined() {\n    return {\n      compare: function(actual) {\n        return {\n          pass: (void 0 !== actual)\n        };\n      }\n    };\n  }\n\n  return toBeDefined;\n};\n\ngetJasmineRequireObj().toBeFalsy = function() {\n  function toBeFalsy() {\n    return {\n      compare: function(actual) {\n        return {\n          pass: !!!actual\n        };\n      }\n    };\n  }\n\n  return toBeFalsy;\n};\n\ngetJasmineRequireObj().toBeGreaterThan = function() {\n\n  function toBeGreaterThan() {\n    return {\n      compare: function(actual, expected) {\n        return {\n          pass: actual > expected\n        };\n      }\n    };\n  }\n\n  return toBeGreaterThan;\n};\n\n\ngetJasmineRequireObj().toBeLessThan = function() {\n  function toBeLessThan() {\n    return {\n\n      compare: function(actual, expected) {\n        return {\n          pass: actual < expected\n        };\n      }\n    };\n  }\n\n  return toBeLessThan;\n};\ngetJasmineRequireObj().toBeNaN = function(j$) {\n\n  function toBeNaN() {\n    return {\n      compare: function(actual) {\n        var result = {\n          pass: (actual !== actual)\n        };\n\n        if (result.pass) {\n          result.message = 'Expected actual not to be NaN.';\n        } else {\n          result.message = function() { return 'Expected ' + j$.pp(actual) + ' to be NaN.'; };\n        }\n\n        return result;\n      }\n    };\n  }\n\n  return toBeNaN;\n};\n\ngetJasmineRequireObj().toBeNull = function() {\n\n  function toBeNull() {\n    return {\n      compare: function(actual) {\n        return {\n          pass: actual === null\n        };\n      }\n    };\n  }\n\n  return toBeNull;\n};\n\ngetJasmineRequireObj().toBeTruthy = function() {\n\n  function toBeTruthy() {\n    return {\n      compare: function(actual) {\n        return {\n          pass: !!actual\n        };\n      }\n    };\n  }\n\n  return toBeTruthy;\n};\n\ngetJasmineRequireObj().toBeUndefined = function() {\n\n  function toBeUndefined() {\n    return {\n      compare: function(actual) {\n        return {\n          pass: void 0 === actual\n        };\n      }\n    };\n  }\n\n  return toBeUndefined;\n};\n\ngetJasmineRequireObj().toContain = function() {\n  function toContain(util, customEqualityTesters) {\n    customEqualityTesters = customEqualityTesters || [];\n\n    return {\n      compare: function(actual, expected) {\n\n        return {\n          pass: util.contains(actual, expected, customEqualityTesters)\n        };\n      }\n    };\n  }\n\n  return toContain;\n};\n\ngetJasmineRequireObj().toEqual = function() {\n\n  function toEqual(util, customEqualityTesters) {\n    customEqualityTesters = customEqualityTesters || [];\n\n    return {\n      compare: function(actual, expected) {\n        var result = {\n          pass: false\n        };\n\n        result.pass = util.equals(actual, expected, customEqualityTesters);\n\n        return result;\n      }\n    };\n  }\n\n  return toEqual;\n};\n\ngetJasmineRequireObj().toHaveBeenCalled = function(j$) {\n\n  function toHaveBeenCalled() {\n    return {\n      compare: function(actual) {\n        var result = {};\n\n        if (!j$.isSpy(actual)) {\n          throw new Error('Expected a spy, but got ' + j$.pp(actual) + '.');\n        }\n\n        if (arguments.length > 1) {\n          throw new Error('toHaveBeenCalled does not take arguments, use toHaveBeenCalledWith');\n        }\n\n        result.pass = actual.calls.any();\n\n        result.message = result.pass ?\n          'Expected spy ' + actual.and.identity() + ' not to have been called.' :\n          'Expected spy ' + actual.and.identity() + ' to have been called.';\n\n        return result;\n      }\n    };\n  }\n\n  return toHaveBeenCalled;\n};\n\ngetJasmineRequireObj().toHaveBeenCalledWith = function(j$) {\n\n  function toHaveBeenCalledWith(util, customEqualityTesters) {\n    return {\n      compare: function() {\n        var args = Array.prototype.slice.call(arguments, 0),\n          actual = args[0],\n          expectedArgs = args.slice(1),\n          result = { pass: false };\n\n        if (!j$.isSpy(actual)) {\n          throw new Error('Expected a spy, but got ' + j$.pp(actual) + '.');\n        }\n\n        if (!actual.calls.any()) {\n          result.message = function() { return 'Expected spy ' + actual.and.identity() + ' to have been called with ' + j$.pp(expectedArgs) + ' but it was never called.'; };\n          return result;\n        }\n\n        if (util.contains(actual.calls.allArgs(), expectedArgs, customEqualityTesters)) {\n          result.pass = true;\n          result.message = function() { return 'Expected spy ' + actual.and.identity() + ' not to have been called with ' + j$.pp(expectedArgs) + ' but it was.'; };\n        } else {\n          result.message = function() { return 'Expected spy ' + actual.and.identity() + ' to have been called with ' + j$.pp(expectedArgs) + ' but actual calls were ' + j$.pp(actual.calls.allArgs()).replace(/^\\[ | \\]$/g, '') + '.'; };\n        }\n\n        return result;\n      }\n    };\n  }\n\n  return toHaveBeenCalledWith;\n};\n\ngetJasmineRequireObj().toMatch = function() {\n\n  function toMatch() {\n    return {\n      compare: function(actual, expected) {\n        var regexp = new RegExp(expected);\n\n        return {\n          pass: regexp.test(actual)\n        };\n      }\n    };\n  }\n\n  return toMatch;\n};\n\ngetJasmineRequireObj().toThrow = function(j$) {\n\n  function toThrow(util) {\n    return {\n      compare: function(actual, expected) {\n        var result = { pass: false },\n          threw = false,\n          thrown;\n\n        if (typeof actual != 'function') {\n          throw new Error('Actual is not a Function');\n        }\n\n        try {\n          actual();\n        } catch (e) {\n          threw = true;\n          thrown = e;\n        }\n\n        if (!threw) {\n          result.message = 'Expected function to throw an exception.';\n          return result;\n        }\n\n        if (arguments.length == 1) {\n          result.pass = true;\n          result.message = function() { return 'Expected function not to throw, but it threw ' + j$.pp(thrown) + '.'; };\n\n          return result;\n        }\n\n        if (util.equals(thrown, expected)) {\n          result.pass = true;\n          result.message = function() { return 'Expected function not to throw ' + j$.pp(expected) + '.'; };\n        } else {\n          result.message = function() { return 'Expected function to throw ' + j$.pp(expected) + ', but it threw ' +  j$.pp(thrown) + '.'; };\n        }\n\n        return result;\n      }\n    };\n  }\n\n  return toThrow;\n};\n\ngetJasmineRequireObj().toThrowError = function(j$) {\n  function toThrowError (util) {\n    return {\n      compare: function(actual) {\n        var threw = false,\n          pass = {pass: true},\n          fail = {pass: false},\n          thrown,\n          errorType,\n          message,\n          regexp,\n          name,\n          constructorName;\n\n        if (typeof actual != 'function') {\n          throw new Error('Actual is not a Function');\n        }\n\n        extractExpectedParams.apply(null, arguments);\n\n        try {\n          actual();\n        } catch (e) {\n          threw = true;\n          thrown = e;\n        }\n\n        if (!threw) {\n          fail.message = 'Expected function to throw an Error.';\n          return fail;\n        }\n\n        if (!(thrown instanceof Error)) {\n          fail.message = function() { return 'Expected function to throw an Error, but it threw ' + j$.pp(thrown) + '.'; };\n          return fail;\n        }\n\n        if (arguments.length == 1) {\n          pass.message = 'Expected function not to throw an Error, but it threw ' + fnNameFor(thrown) + '.';\n          return pass;\n        }\n\n        if (errorType) {\n          name = fnNameFor(errorType);\n          constructorName = fnNameFor(thrown.constructor);\n        }\n\n        if (errorType && message) {\n          if (thrown.constructor == errorType && util.equals(thrown.message, message)) {\n            pass.message = function() { return 'Expected function not to throw ' + name + ' with message ' + j$.pp(message) + '.'; };\n            return pass;\n          } else {\n            fail.message = function() { return 'Expected function to throw ' + name + ' with message ' + j$.pp(message) +\n              ', but it threw ' + constructorName + ' with message ' + j$.pp(thrown.message) + '.'; };\n            return fail;\n          }\n        }\n\n        if (errorType && regexp) {\n          if (thrown.constructor == errorType && regexp.test(thrown.message)) {\n            pass.message = function() { return 'Expected function not to throw ' + name + ' with message matching ' + j$.pp(regexp) + '.'; };\n            return pass;\n          } else {\n            fail.message = function() { return 'Expected function to throw ' + name + ' with message matching ' + j$.pp(regexp) +\n              ', but it threw ' + constructorName + ' with message ' + j$.pp(thrown.message) + '.'; };\n            return fail;\n          }\n        }\n\n        if (errorType) {\n          if (thrown.constructor == errorType) {\n            pass.message = 'Expected function not to throw ' + name + '.';\n            return pass;\n          } else {\n            fail.message = 'Expected function to throw ' + name + ', but it threw ' + constructorName + '.';\n            return fail;\n          }\n        }\n\n        if (message) {\n          if (thrown.message == message) {\n            pass.message = function() { return 'Expected function not to throw an exception with message ' + j$.pp(message) + '.'; };\n            return pass;\n          } else {\n            fail.message = function() { return 'Expected function to throw an exception with message ' + j$.pp(message) +\n              ', but it threw an exception with message ' + j$.pp(thrown.message) + '.'; };\n            return fail;\n          }\n        }\n\n        if (regexp) {\n          if (regexp.test(thrown.message)) {\n            pass.message = function() { return 'Expected function not to throw an exception with a message matching ' + j$.pp(regexp) + '.'; };\n            return pass;\n          } else {\n            fail.message = function() { return 'Expected function to throw an exception with a message matching ' + j$.pp(regexp) +\n              ', but it threw an exception with message ' + j$.pp(thrown.message) + '.'; };\n            return fail;\n          }\n        }\n\n        function fnNameFor(func) {\n            return func.name || func.toString().match(/^\\s*function\\s*(\\w*)\\s*\\(/)[1];\n        }\n\n        function extractExpectedParams() {\n          if (arguments.length == 1) {\n            return;\n          }\n\n          if (arguments.length == 2) {\n            var expected = arguments[1];\n\n            if (expected instanceof RegExp) {\n              regexp = expected;\n            } else if (typeof expected == 'string') {\n              message = expected;\n            } else if (checkForAnErrorType(expected)) {\n              errorType = expected;\n            }\n\n            if (!(errorType || message || regexp)) {\n              throw new Error('Expected is not an Error, string, or RegExp.');\n            }\n          } else {\n            if (checkForAnErrorType(arguments[1])) {\n              errorType = arguments[1];\n            } else {\n              throw new Error('Expected error type is not an Error.');\n            }\n\n            if (arguments[2] instanceof RegExp) {\n              regexp = arguments[2];\n            } else if (typeof arguments[2] == 'string') {\n              message = arguments[2];\n            } else {\n              throw new Error('Expected error message is not a string or RegExp.');\n            }\n          }\n        }\n\n        function checkForAnErrorType(type) {\n          if (typeof type !== 'function') {\n            return false;\n          }\n\n          var Surrogate = function() {};\n          Surrogate.prototype = type.prototype;\n          return (new Surrogate()) instanceof Error;\n        }\n      }\n    };\n  }\n\n  return toThrowError;\n};\n\ngetJasmineRequireObj().interface = function(jasmine, env) {\n  var jasmineInterface = {\n    describe: function(description, specDefinitions) {\n      return env.describe(description, specDefinitions);\n    },\n\n    xdescribe: function(description, specDefinitions) {\n      return env.xdescribe(description, specDefinitions);\n    },\n\n    it: function(desc, func) {\n      return env.it(desc, func);\n    },\n\n    xit: function(desc, func) {\n      return env.xit(desc, func);\n    },\n\n    beforeEach: function(beforeEachFunction) {\n      return env.beforeEach(beforeEachFunction);\n    },\n\n    afterEach: function(afterEachFunction) {\n      return env.afterEach(afterEachFunction);\n    },\n\n    expect: function(actual) {\n      return env.expect(actual);\n    },\n\n    pending: function() {\n      return env.pending();\n    },\n\n    spyOn: function(obj, methodName) {\n      return env.spyOn(obj, methodName);\n    },\n\n    jsApiReporter: new jasmine.JsApiReporter({\n      timer: new jasmine.Timer()\n    }),\n\n    jasmine: jasmine\n  };\n\n  jasmine.addCustomEqualityTester = function(tester) {\n    env.addCustomEqualityTester(tester);\n  };\n\n  jasmine.addMatchers = function(matchers) {\n    return env.addMatchers(matchers);\n  };\n\n  jasmine.clock = function() {\n    return env.clock;\n  };\n\n  return jasmineInterface;\n};\n\ngetJasmineRequireObj().version = function() {\n  return '2.0.2';\n};\n"
  },
  {
    "path": "src/jasmine/loadjasmine.js",
    "content": "document.addEventListener('DOMContentLoaded', function () {\n    document.getElementById(\"loadjasmine\").addEventListener('click', loadJasmine);\n});\n\nfunction loadJasmine() {\n  console.log(\"Loading Jasmine...\");\n  var jasmineEnv = jasmine.getEnv();\n      jasmineEnv.updateInterval = 1000;\n\n      var htmlReporter = new jasmine.HtmlReporter();\n\n      jasmineEnv.addReporter(htmlReporter);\n\n      jasmineEnv.specFilter = function(spec) {\n        return htmlReporter.specFilter(spec);\n      };\n  function execJasmine() {\n        jasmineEnv.execute();\n      }\n  function runTests() { \n        execJasmine();\n      }\n  document.getElementById(\"runtests\").addEventListener('click', runTests);\n}"
  },
  {
    "path": "src/jasmine/spec/SpecHelper.js",
    "content": ""
  },
  {
    "path": "src/jasmine/spec/translators/baidu_translator_spec.js",
    "content": "describe('BaiduTranslator', function() {\n  var translator = BaiduTranslator;\n\n  it('should named baidu', function() {\n    expect(translator.name).toEqual('baidu');\n  });\n\n  it('should translate empty text to null', function(done) {\n    translator.translate('', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should translate blank text to null', function(done) {\n    translator.translate(' ', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should translate invisible text to null', function(done) {\n    translator.translate('\\t     ', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should returns translation and phonetic for word', function(done) {\n    translator.translate('translate', function(result) {\n      expect(result).not.toBeNull();\n      expect(result.translation).toContain('vt.& vi. 翻译；解释；转化；被翻译');\n      expect(result.phonetic).toEqual('[trænsˈlet, trænz-, ˈtrænsˌlet, ˈtrænz-]');\n      done();\n    });\n  });\n\n  it('should translate invald word to null', function(done) {\n    translator.translate('fdsafdsafds', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should returns only translation for phrase', function(done) {\n    translator.translate('good time', function(result) {\n      expect(result).not.toBeNull();\n      expect(result.translation).toContain('好的时间');\n      expect(result.phonetic).not.toBeDefined();\n      done();\n    });\n  });\n\n  it('should translate invald phrase to null', function(done) {\n    translator.translate('fdsafdsafds afdsae', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n});"
  },
  {
    "path": "src/jasmine/spec/translators/youdao_translator_spec.js",
    "content": "describe('YoudaoTranslator', function() {\n  var translator = YoudaoTranslator;\n\n  it('should named youdao', function() {\n    expect(translator.name).toEqual('youdao');\n  });\n\n  it('should translate empty text to null', function(done) {\n    translator.translate('', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should translate blank text to null', function(done) {\n    translator.translate(' ', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should translate invisible text to null', function(done) {\n    translator.translate('\\t     ', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should returns translation and phonetic for word', function(done) {\n    translator.translate('translate', function(result) {\n      expect(result).not.toBeNull();\n      expect(result.translation).toContain('vt. 翻译；转化；解释；转变为；调动');\n      expect(result.phonetic).toEqual('[træns\\'leɪt; trɑːns-; -nz-]');\n      done();\n    });\n  });\n\n  it('should translate invald word to null', function(done) {\n    translator.translate('fdsafdsafds', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n\n  it('should returns only translation for phrase', function(done) {\n    translator.translate('good time', function(result) {\n      expect(result).not.toBeNull();\n      expect(result.translation).toContain('好时机；繁荣时期');\n      expect(result.phonetic).not.toBeDefined();\n      done();\n    });\n  });\n\n  it('should translate invald phrase to null', function(done) {\n    translator.translate('fdsafdsafds afdsae', function(result) {\n      expect(result).toBeNull();\n      done();\n    });\n  });\n});"
  },
  {
    "path": "src/js/config/application.js",
    "content": "import app from '../lib/crxkit';\n\napp.setup({\n  name: 'transit',\n  options: {\n    notifyTimeout: 5,     // 页面划词结果显示时间\n    pageInspect: true,    // 是否启用页面划词\n    linkInspect: true,    // 是否启用链接划词\n    pushItem: false,      // 是否推送单词到服务端,\n    notifyMode: 'margin', // 结果默认显示在右上角\n    translator: 'youdao', // 默认的翻译服务\n  }\n});\n\napp.showUpdateNotes = function() {\n  chrome.notifications.create({\n    type: 'basic',\n    title: 'TransIt V1.6.6 更新记录',\n    message: '- 解决部分页面划词翻译结果样式失控的问题',\n    iconUrl: 'img/icon48.png'\n  }, function () {});\n};\n\nmodule.exports = app;\n"
  },
  {
    "path": "src/js/contentscript.js",
    "content": "/*\n * TransIt ContentScript\n */\n\nimport $ from 'jquery';\nimport app from './config/application';\nimport notify from './lib/notify';\nimport { getSelection } from './lib/utils';\n\nlet capslockEvents = [];\n\nfunction isInFrameset() {\n  return !!window.top.document.querySelector('frameset');\n}\n\n// Ctrl + Shift + L\nfunction isLinkInspectKeymap(evt) {\n  return evt.ctrlKey && evt.shiftKey && evt.which == 12;\n}\n\nfunction shortcutHandler(evt) {\n  if (app.options.linkInspect && isLinkInspectKeymap(evt)) {\n    toggleLinkInspectMode();\n  }\n}\n\nfunction toggleLinkInspectMode(flag) {\n  $('body').toggleClass('translt-link-inspect-mode', flag);\n  const enabled = $('body').is('.translt-link-inspect-mode');\n  chrome.runtime.sendMessage({ type: 'linkInspect', enabled: enabled });\n}\n\n// Inspect translation works only on word\nfunction canTranslate(text) {\n  return /^[a-z]+(\\'|\\'s)?$/i.test(text);\n}\n\nfunction selectionHandler(evt) {\n  toggleLinkInspectMode(false);\n\n  const selection = getSelection(evt);\n\n  if (selection) {\n    chrome.runtime.sendMessage({ type: 'selection', text: selection.text });\n\n    if (app.options.pageInspect && canTranslate(selection.text)) {\n      if (app.options.notifyMode == 'in-place' || isInFrameset()) {\n        notify(selection.text, {\n          mode: 'in-place',\n          position: selection.position,\n          timeout: app.options.notifyTimeout\n        });\n      } else {\n        top.notify(selection.text, {\n          mode: 'margin',\n          timeout: app.options.notifyTimeout\n        });\n      }\n    }\n  }\n}\n\napp.initOptions(function(options) {\n  $(document).on('keypress', shortcutHandler);\n  $(document).on('mouseup', selectionHandler);\n});"
  },
  {
    "path": "src/js/event.js",
    "content": "/*\n * TransIt Event\n * \n * jshint strict: true\n */\n\nimport cuid from 'cuid';\nimport translators from './translators';\nimport app from './config/application';\n\n// Key name to store current text in local storage\nconst CURRENT_TEXT_KEY = 'transit_current_text';\n\n// Setter / Getter for current text\n// \n// If text if passed, update `current_text` in local storage,\n// otherwise, read from local storage.\nfunction currentText(text) {\n  if (text) {\n    localStorage.setItem(CURRENT_TEXT_KEY, text);\n    return text;\n  } else {\n    return localStorage.getItem(CURRENT_TEXT_KEY);\n  }\n}\n\n// Translate text and send result back\n// \n// TODO: Cache translated result to speed up querying.\nfunction translateHanlder(message, sender, sendResponse) {\n  const translator = translators[app.options.translator];\n  translator.translate(message.text, sendResponse);\n}\n\n// Save current selection to localStorage\nfunction selectionHandler(message, sender, sendResponse) {\n  currentText(message.text);\n}\n\nfunction currentTextHandler(message, sender, sendResponse) {\n  sendResponse(currentText());\n}\n\nfunction linkInspectHandler(message, sender, sendResponse) {\n  app.log(message);\n  if (message.enabled) {\n    chrome.browserAction.setIcon({ path: 'img/icon48-link.png' });\n  } else {\n    chrome.browserAction.setIcon({ path: 'img/icon48.png' });\n  }\n}\n\napp.registerMessageDispatcher({\n  translate: translateHanlder,\n  selection: selectionHandler,\n  currentText: currentTextHandler,\n  linkInspect: linkInspectHandler\n});\n\napp.initOptions();\n\n// Listen to extension update and show update notes\nchrome.runtime.onInstalled.addListener(function(details) {\n  if (details.reason == 'update') {\n    app.showUpdateNotes();\n  }\n});\n"
  },
  {
    "path": "src/js/lib/crxkit.js",
    "content": "/**\n * Chrome Extension Utilities\n *\n * jshint strict: true\n */\n\nimport sugar from 'sugar';\n\nlet options = {};\nlet name = 'crxkit';\n\nfunction noop() {}\n\nfunction registerMessageDispatcher(dispatcher) {\n  chrome.runtime.onMessage.addListener(\n    function(message, sender, sendResponse) {\n      const handler = dispatcher[message.type] || noop;\n      handler(message, sender, sendResponse);\n\n      return true;\n    }\n  );\n}\n\nfunction talkToPage(tabId, message, callback) {\n  if (tabId) {\n    chrome.tabs.sendMessage(tabId, message, callback);\n  } else {\n    chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {\n      talkToPage(tabs[0].id, message, callback);\n    });\n  }\n}\n\nfunction openExtensionPage(filename) {\n  var optionsUrl = chrome.extension.getURL(filename);\n\n  chrome.tabs.query({}, function(tabs) {\n    var optionTab = tabs.find({ url: optionsUrl });\n\n    if (optionTab) {\n      chrome.tabs.reload(optionTab.id);\n      chrome.tabs.update(optionTab.id, { highlighted: true });\n    } else {\n      chrome.tabs.create({ url: optionsUrl });\n    }\n  });\n}\n\n/*\n * 从 storage 中读取配置，如果没有配置，则初始化为默认值\n *\n * @params {function} callback - Callback after options loaded.\n */\nfunction initOptions(callback) {\n  chrome.storage.sync.get(null, function(data) {\n    Object.merge(options, data);\n    \n    chrome.storage.sync.set(options);\n\n    chrome.storage.onChanged.addListener(function(changes) {\n      for (var name in changes) {\n        var change = changes[name];\n        options[name] = change.newValue;\n      }\n    });\n\n    if (Object.isFunction(callback)) {\n      callback();\n    }\n  });\n}\n\nfunction log() {\n  var message = Array.prototype.slice.call(arguments, 0);\n  var pefix = '[{1}]'.assign(name);\n  console.log.apply(console, [pefix].concat(message));\n}\n\nfunction setup(settings) {\n  Object.merge(options, settings.options);\n  name = settings.name;\n}\n\nmodule.exports = {\n  initOptions: initOptions,\n  registerMessageDispatcher: registerMessageDispatcher,\n  openExtensionPage: openExtensionPage,\n  talkToPage: talkToPage,\n  options: options,\n  setup: setup,\n  log: log,\n};"
  },
  {
    "path": "src/js/lib/notify.js",
    "content": "import $ from 'jquery';\nimport sugar from 'sugar';\nimport {\n  stopPropagation,\n  clearSelection,\n  renderTranslation\n} from './utils';\n\nvar notifyList = [];\nvar tpls = {\n  notify: '<div class=\"transit-notify transit-{1}\">' +\n          ' <a href=\"javascript:;\" class=\"transit-notify-close\">&times;</a>' +\n          ' <div class=\"transit-notify-content\">{2}</div>' +\n          '</div>',\n  list: '<div class=\"transit-notify-list\">' +\n        '  <div class=\"transit-list-inner\"></div>' +\n        '</div>',\n  success: '<div class=\"transit-result transit-success\">{1}</div>',\n  warning: '<div class=\"transit-result transit-warning\">{1}</div>',\n  loading: '<div class=\"transit-result transit-success\">' +\n           '正在翻译 <strong>{1} ...</strong></div>',\n};\n\nfunction getNotifyList() {\n  var $notifyList = $('.transit-notify-list');\n  if ($notifyList.length <= 0) {\n    $notifyList = $(tpls.list).appendTo('body');\n  }\n\n  return $notifyList;\n}\n\nvar Notify = function(text, options) {\n  this.text = text;\n  this.options = options;\n\n  this.render();\n  this.bind();\n  this.request();\n};\n\n// Render the notify onto the page.\nNotify.prototype.render = function() {\n  var loading = tpls.loading.assign(this.text);\n  this.$el = $(tpls.notify.assign(this.options.mode, loading));\n\n  if (this.options.mode == 'margin') {\n    var $list = getNotifyList().find('.transit-list-inner');\n    this.$el.appendTo($list);\n  } else {\n    this.$el.appendTo('body')\n      .css({ position: 'absolute' })\n      .css(this.options.position)\n      .fadeIn();\n  }\n};\n\n// Request for translation.\nNotify.prototype.request = function() {\n  var self = this;\n  var message = { type: 'translate', text: self.text };\n\n  chrome.extension.sendMessage(message, function(response) {\n    var result = renderTranslation(self.text, response);\n    self.$el.find('.transit-notify-content').html(result);\n    self.hide();\n  });\n};\n\n// Mouse over to stop the auto hide timeout.\nNotify.prototype.mouseover = function() {\n  var $notify = this.$el;\n  $notify.clearQueue();\n  $notify.stop();\n\n  if ($notify.is('.transit-in-place')) {\n    $notify.insertAfter($('.transit-in-place:last'));\n    event.stopPropagation();\n  }\n};\n\n// Setup event binding\nNotify.prototype.bind = function() {\n  this.$el.hover(\n    $.proxy(this.mouseover, this),\n    $.proxy(this.hide, this)\n  );\n\n  var $close = this.$el.find('.transit-notify-close');\n  $close.click($.proxy(this.close, this));\n\n  // Prevent trigger transit event.\n  $close.mouseup(stopPropagation);\n};\n\n// Hide the notify after configured seconds.\nNotify.prototype.hide = function() {\n  this.$el.delay(this.options.timeout * 1000)\n          .fadeOut($.proxy(this.destroy, this));\n};\n\n// Close the notify immediately\nNotify.prototype.close = function(event) {\n  clearSelection();\n  this.$el.fadeOut($.proxy(this.destroy, this));\n};\n\n// Destroy the notify and remove it from the page.\nNotify.prototype.destroy = function() {\n  notifyList.remove({ text: this.text });\n  this.$el.remove();\n};\n\nconst notify = function(text, options) {\n  if (!notifyList.find({ text: text })) {\n    notifyList.push(new Notify(text, options));\n  }\n};\n\nwindow.notify = notify;\nexport default notify;"
  },
  {
    "path": "src/js/lib/utils.js",
    "content": "import $ from 'jquery';\n\nexport function renderTranslation(query, result) {\n  let phonetic = '';\n  let translation = '未找到释义';\n  let className = 'transit-warning';\n\n  if (result) {\n    phonetic = result.phonetic;\n    translation = result.translation;\n    className = 'transit-success';\n  }\n\n  return `` +\n    `<div class=\"transit-result ${className}\">` +\n    `  <h6>${query}</h6>` +\n    `  <code>${phonetic || ''}</code>` +\n    `  <pre>${translation}</pre>` +\n    `</div>`;\n}\n\nfunction getComputedPosition(position) {\n  const $elem = $('<div class=\"transit-spirit\"></div>').appendTo('body');\n  $elem.css(position);\n  \n  const computedStyle = window.getComputedStyle($elem.get(0));\n  const computedPosition = {\n    left: computedStyle.left,\n    top: computedStyle.top,\n    right: computedStyle.right,\n    bottom: computedStyle.bottom,\n  };\n\n  $elem.remove();\n  return computedPosition;\n}\n\nfunction getPosition(evt, selection) {\n  const rect = selection.getRangeAt(0).getBoundingClientRect();\n  const scroll = { x: window.pageXOffset, y: window.pageYOffset };\n\n  // 如果选中的文本是在文本框中，则使用鼠标位置\n  let position = null;\n  if (rect.left === 0 && rect.top === 0) {\n    position = { left: evt.clientX, top: evt.clientY, height: 24 };\n  } else {\n    position = { left: rect.left + scroll.x, top: rect.top + scroll.y, height: rect.height };\n  }\n\n  // 生成一个临时元素以获取精准定位\n  var computedPosition = getComputedPosition(position);\n\n  if (position.top >= 150) {\n    return { left: position.left, bottom: parseFloat(computedPosition.bottom) + rect.height + 10 };\n  } else {\n    return { left: position.left, top: parseFloat(computedPosition.top) + rect.height + 10 };\n  }\n}\n\nexport function getSelection(evt) {\n  const selection = window.getSelection();\n  const text = selection.toString().trim();\n\n  if (text) {\n    return { text: text, position: getPosition(evt, selection) };\n  } else {\n    return null;\n  }\n}\n\nexport function clearSelection() {\n  const selection = window.getSelection();\n  if (selection) {\n    selection.empty();\n  }\n}\n\nexport function sanitizeHTML(html) {\n  var match = html.match(/<body[\\s\\S]*<\\/body>/img);\n  return match[0].replace(/<script([\\s\\S]*?)<\\/script>/img, '')\n                 .replace(/<style([\\s\\S]*?)<\\/style>/img, '')\n                 .replace(/<img([\\s\\S]*?)>/img, '')\n                 .replace(/<video([\\s\\S]*?)>/img, '');\n}\n\nexport function stopPropagation(event) {\n  event.stopPropagation();\n}\n"
  },
  {
    "path": "src/js/ng/controllers/options_controller.js",
    "content": "import app from '../../config/application';\nimport angular from 'angular';\n\nangular\n  .module('TransitApp')\n  .controller('OptionsCtrl', function($scope) {\n    $scope.openExtensionPage = function() {\n      app.openExtensionPage('options.html');\n      window.close();\n    };\n\n    $scope.nextTranslator = function() {\n      const translators = ['baidu', 'youdao', 'bing'];\n      \n      let index = translators.indexOf($scope.options.translator) + 1;\n      $scope.options.translator = translators[index % translators.length];\n    };\n\n    app.initOptions(function() {\n      $scope.options = app.options;\n      app.log('Options Loaded:', app.options);\n\n      function saveOptions() {\n        chrome.storage.sync.set($scope.options);\n      }\n\n      $scope.$apply();\n\n      for (var name in app.options) {\n        $scope.$watch(\"options.\" + name, saveOptions);\n      }\n    });\n  });\n"
  },
  {
    "path": "src/js/ng/controllers/translate_controller.js",
    "content": "import sugar from 'sugar';\nimport app from '../../config/application';\nimport { renderTranslation } from '../../lib/utils';\n\nangular\n  .module('TransitApp')\n  .controller('TranslateCtrl', function($scope, $timeout) {\n    $scope.source = '';\n    $scope.output = '';\n\n\n    $scope.resetSource = function() {\n      $scope.source = '';\n      $scope.output = '';\n    };\n\n    $scope.translate = function(source) {\n      $scope.source = (source || '').trim();\n\n      if ($scope.source) {\n        $scope.output = '<div class=\"loading\">正在查询...</div>';\n\n        var message = { type: 'translate', text: $scope.source };\n        chrome.extension.sendMessage(message, function(response) {\n          app.log(\"Translate:\", response);\n          $scope.$apply(function() {\n            $scope.output = renderTranslation($scope.source, response);\n          });\n        });\n      } else {\n        $scope.output = '';\n      }\n    };\n\n    $scope.handleKeydown = function($event) {\n      // 如果内容不为空，按下 ESC，会清空当前内容，否则，关闭窗口\n      if ($event.keyCode === 27) {\n        if (!$scope.source.isBlank()) {\n          $event.stopPropagation();\n          $event.preventDefault();\n          $scope.resetSource();\n        }\n      } else if ($event.keyCode === 13) {\n        $event.stopPropagation();\n        $event.preventDefault();\n\n        // 通过 Ctrl+Enter 或者 Cmd+Enter 进行换行\n        // 如果仅按下 Enter，提交翻译\n        if ($event.metaKey || $event.ctrlKey) {\n          document.execCommand('insertText', false, '\\n');\n        } else {\n          $scope.translate($scope.source);\n          \n          chrome.runtime.sendMessage({ type: 'selection', text: $scope.source });\n        }\n      }\n    };\n\n    $scope.handleChange = function($event) {\n      if ($scope.source.isBlank()) {\n        return $scope.resetSource();\n      }\n    };\n\n    chrome.runtime.sendMessage({ type: 'currentText' }, (text) => {\n      $scope.translate(text);\n\n      $timeout(function() {\n        var source = document.querySelector('#source');\n        source.focus();\n        source.select();\n      }, 500);\n    });\n  });\n"
  },
  {
    "path": "src/js/ng/filters/html_safe_filter.js",
    "content": "import angular from 'angular';\n\nangular\n  .module('TransitApp')\n  .filter('html_safe', function($sce) {\n    return $sce.trustAsHtml;\n  });"
  },
  {
    "path": "src/js/options.js",
    "content": "/*\n * TransIt Options\n * \n * jshint strict: true\n */\n\nvar angular = require('angular');\n\nangular.module('TransitApp', []);\n\nrequire('./ng/controllers/options_controller');\n"
  },
  {
    "path": "src/js/popup.js",
    "content": "/*\n * TransIt Popup\n * \n * jshint strict: true\n */\n\nvar angular = require('angular');\nvar elastic = require('angular-elastic');\n\nangular.module('TransitApp', ['monospaced.elastic']);\n\nrequire('./ng/filters/html_safe_filter');\nrequire('./ng/controllers/translate_controller');\nrequire('./ng/controllers/options_controller');"
  },
  {
    "path": "src/js/translators/baidu_translator.js",
    "content": "/**\n * 使用百度翻译 API 提供翻译功能\n *\n * http://fanyi-api.baidu.com/api/trans/product/apidoc\n */\n\nimport $ from 'jquery';\nimport _ from 'lodash';\n\nconst API_URL = 'http://fanyi.baidu.com/basetrans';\nconst USER_AGENT = 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1';\n\n// 修改百度翻译 API 请求，将 User Agent 修改为移动设备\nchrome.webRequest.onBeforeSendHeaders.addListener(function (details) {\n  let header = null;\n\n  header = _.find(details.requestHeaders, { name: 'User-Agent' });\n  header.value = USER_AGENT;\n\n  header = _.find(details.requestHeaders, { name: 'Origin' });\n  header.value = 'http://fanyi.baidu.com';\n\n  return { requestHeaders: details.requestHeaders };\n}, { urls: [API_URL] }, ['blocking', 'requestHeaders']);\n\nfunction formatResult(result) {\n  if (!result) return null;\n\n  const response = {};\n\n  if (_.has(result, 'dict.symbols[0].parts')) {\n    try {\n      const phonetic = _.get(result, 'dict.symbols[0].ph_am');\n      if (phonetic) {\n        response.phonetic = `[${phonetic}]`;\n      }\n\n      const parts = _.get(result, 'dict.symbols[0].parts', []);\n      response.translation = _.map(parts, (part) => `${part.part} ${part.means.join(';')}`).join('<br/>');\n    } catch (e) {\n      return null;\n    }\n  } else {\n    const trans_result = _.get(result, 'trans[0]', {});\n    if (trans_result.src == trans_result.dst) {\n      return null;\n    } else {\n      response.translation = trans_result.dst;\n    }\n  }\n\n  return response;\n}\n\nfunction requestText(text, callback) {\n  let headers = new Headers();\n  headers.append('Content-Type', 'application/x-www-form-urlencoded');\n\n  fetch(API_URL, {\n    method: 'POST',\n    body: $.param({ from: 'en', to: 'zh', 'query': text }),\n    headers: headers\n  }).then(response => response.json())\n    .then(result => callback(formatResult(result)))\n    .catch(() => callback(null));\n}\n\nexport default {\n  name: 'baidu',\n  translate (text, callback) {\n    if (/^\\s*$/.test(text)) {\n      callback(null);\n    } else {\n      requestText(text, callback);\n    }\n  }\n};\n"
  },
  {
    "path": "src/js/translators/bing_translator.js",
    "content": "/**\n * Bing Translator\n */\nimport sugar from 'sugar';\nimport $ from 'jquery';\nimport { sanitizeHTML } from '../lib/utils';\n\nconst DICT_URL = 'https://cn.bing.com/dict/search';\nconst TRANSLATE_URL = 'https://cn.bing.com/translator/api/Translate/TranslateArray?from=-&to=zh-CHS';\nconst REFERER = 'http://cn.bing.com/dict/?mkt=zh-cn&setlang=zh';\n\nexport default class BingTranslator {\n  constructor() {\n    this.name = 'bing';\n  }\n\n  _parseMean(index, meanNode) {\n    const $mean = $(meanNode);\n    const def = $mean.find('.def').text();\n    let   pos = $mean.find('.pos').text();\n\n    if (pos == '网络') {\n      pos = index > 0 ? '<br/><strong>网络：</strong><br/>' : '';\n    } else {\n      pos = `${pos} `;\n    }\n\n    return `${pos}${def}`;\n  }\n\n  _parseWord(page) {\n    var $result = $(sanitizeHTML(page));\n\n    if ($result.find('.qdef').length) {\n      var response = {};\n\n      var $phonetic = $result.find('.hd_prUS');\n      if ($phonetic.length) {\n        response.phonetic = $phonetic.text().replace('美 ', '');\n      }\n      \n      var $means = $result.find('.hd_area + ul > li');\n      response.translation =\n        $means.map(this._parseMean).toArray().join('<br/>');\n\n      return response;\n    } else if ($result.find('.p1-11').length) {\n      return { translation: $result.find('.p1-11').text() };\n    } else {\n      return null;\n    }\n  }\n\n  _parseText(data) {\n    const translation = data.items.map(item => item.text).join('<br/><br/>');\n\n    return { translation: translation };\n  }\n\n  _requestWord(text, callback) {\n    const settings = {\n      url: DICT_URL,\n      data: { q: text },\n      headers: {\n        'Accept-Language': 'zh-CN,zh;q=0.8'\n      }\n    };\n\n    $.ajax(settings)\n      .done(page => callback(this._parseWord(page)))\n      .fail(() => callback(null));\n  }\n\n  _buildLine(text, index) {\n    console.log(text, index);\n    const timestamp = new Date().getTime();\n    \n    return {\n      id: timestamp + index,\n      text: text\n    };\n  }\n\n  _splitLines(text) {\n    return text.split(/\\s*\\n\\s*/mg).map(this._buildLine);\n  }\n\n  _requestText(text, callback) {\n    const settings = {\n      url: TRANSLATE_URL,\n      type: 'POST',\n      data: JSON.stringify(this._splitLines(text)),\n      contentType: 'application/json; charset=utf-8',\n      dataType: 'json',\n      headers: {\n        'Accept-Language': 'zh-CN,zh;q=0.8'\n      }\n    };\n\n    $.ajax(settings)\n      .done(data => callback(this._parseText(data)))\n      .fail(() => callback(null));\n  }\n\n  translate(text, callback) {\n    if (/^\\s*$/.test(text)) {\n      callback(null);\n    } else if (/^[a-zA-Z]+$/.test(text)) {\n      this._requestWord(text, callback);\n    } else {\n      this._requestText(text, callback);\n    }\n  }\n}\n"
  },
  {
    "path": "src/js/translators/index.js",
    "content": "import BaiduTranslator from './baidu_translator';\nimport YoudaoTranslator from './youdao_translator';\nimport BingTranslator from './bing_translator';\n\nexport default {\n  baidu: BaiduTranslator,\n  youdao: new YoudaoTranslator(),\n  bing: new BingTranslator(),\n};\n"
  },
  {
    "path": "src/js/translators/youdao_translator.js",
    "content": "/**\n * 有道翻译\n */\n\nimport sugar from 'sugar';\nimport $ from 'jquery';\nimport { sanitizeHTML } from '../lib/utils';\n\nexport default class YoudaoTranslator {\n  constructor() {\n    this.name = 'youdao';\n  }\n\n  _parseWord(page) {\n    var $result = $(sanitizeHTML(page)).find('#ec_contentWrp');\n\n    if ($result.length) {\n      var response = {};\n\n      var $phonetic = $result.find('.phonetic');\n      if ($phonetic.length) {\n        response.phonetic = $phonetic.last().text();\n      }\n      \n      const $means = $result.find('ul li').toArray();\n      response.translation = $means.map(node => node.innerText).join('<br/>');\n\n      return response;\n    } else {\n      return null;\n    }\n  }\n\n  _parseText(page) {\n    const $result = $(sanitizeHTML(page));\n    const $means = $result.find('#translateResult li').toArray();\n    const translation = $means.map(item => item.innerText).join('<br/><br/>');\n\n    return { translation: translation };\n  }\n\n  _requestWord(text, callback) {\n    const settings = {\n      url: `http://mobile.youdao.com/dict?le=eng&q=${text}`,\n      method: 'GET',\n      headers: {\n        'Accept-Language': 'zh-CN,zh;q=0.8'\n      }\n    };\n\n    $.ajax(settings)\n      .done(page => callback(this._parseWord(page)))\n      .fail(() => callback(null));\n  }\n\n  _requestText(text, callback) {\n    const settings = {\n      url: 'http://mobile.youdao.com/translate',\n      type: 'POST',\n      data: {\n        inputtext: text,\n        type: 'AUTO'\n      },\n      headers: {\n        'Accept-Language': 'zh-CN,zh;q=0.8',\n        'Origin': 'http://mobile.youdao.com',\n        'Refer': 'http://mobile.youdao.com/translate'\n      }\n    };\n\n    $.ajax(settings)\n      .done(data => callback(this._parseText(data)))\n      .fail(() => callback(null));\n  }\n\n  translate(text, callback) {\n    if (/^\\s*$/.test(text)) {\n      callback(null);\n    } else if (/^[a-zA-Z]+$/.test(text)) {\n      this._requestWord(text, callback);\n    } else {\n      this._requestText(text, callback);\n    }\n  }\n}\n"
  },
  {
    "path": "src/manifest.json",
    "content": "{\n  \"manifest_version\": 2,\n\n  \"name\": \"TransIt\",\n  \"description\": \"让划词翻译更简单\",\n  \"version\": \"1.6.6\",\n\n  \"icons\": {\n    \"48\": \"img/icon48.png\",\n    \"128\": \"img/icon128.png\"\n  },\n\n  \"background\": {\n    \"scripts\": [\"js/event.js\"],\n    \"persistent\": true\n  },\n\n  \"options_page\": \"options.html\",\n\n  \"browser_action\": {\n    \"default_icon\": \"img/icon48.png\",\n    \"default_popup\": \"popup.html\"\n  },\n\n  \"content_scripts\": [\n    {\n      \"matches\": [\"<all_urls>\"],\n      \"css\": [\"css/contentstyle.css\"],\n      \"js\": [\"js/contentscript.js\"],\n      \"all_frames\": true\n    }\n  ],\n\n  \"permissions\": [\n    \"tabs\",\n    \"storage\",\n    \"notifications\",\n    \"webRequest\",\n    \"webRequestBlocking\",\n    \"http://fanyi.baidu.com/basetrans\",\n    \"http://cn.bing.com/dict/search\",\n    \"http://cn.bing.com/translator/api/Translate/TranslateArray\"\n  ],\n\n  \"content_security_policy\": \"script-src 'self' 'unsafe-eval'; object-src 'self'\"\n}\n"
  },
  {
    "path": "src/options.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\" ng-app=\"TransitApp\" ng-csp>\n<head>\n  <meta charset=\"UTF-8\">\n  <title>偏好设定</title>\n  \n  <link rel=\"stylesheet\" href=\"css/options.css\" type=\"text/css\" />\n</head>\n<body ng-controller=\"OptionsCtrl\">\n  <div class=\"board\">\n\n    <div class=\"borad-header\">\n      <strong class=\"title\">\n        <img src=\"img/icon48.png\" alt=\"TransIt Logo\" /> 偏好设定\n      </strong>\n    </div>\n\n    <div class=\"board-content\">\n\n      <form class=\"form-horizontal\" role=\"form\" ng-controller=\"OptionsCtrl\">\n\n        <div class=\"form-group\">\n          <label class=\"control-label\">翻译服务</label>\n          <div class=\"controls\">\n            <label class=\"radio-inline\"><input type=\"radio\" name=\"translator\" ng-model=\"options.translator\" value=\"youdao\" /> 有道翻译</label>\n            <label class=\"radio-inline\"><input type=\"radio\" name=\"translator\" ng-model=\"options.translator\" value=\"baidu\" /> 百度翻译</label>\n            <label class=\"radio-inline\"><input type=\"radio\" name=\"translator\" ng-model=\"options.translator\" value=\"bing\" /> 必应翻译</label>\n          </div>\n        </div>\n\n        <div class=\"form-group\">\n          <label class=\"control-label\">启用页面划词</label>\n          <div class=\"controls\">\n            <label class=\"radio-inline\"><input type=\"radio\" name=\"pageInspect\" ng-model=\"options.pageInspect\" ng-value=\"true\" />启用</label>\n            <label class=\"radio-inline\"><input type=\"radio\" name=\"pageInspect\" ng-model=\"options.pageInspect\" ng-value=\"false\" /> 停用</label>\n          </div>\n        </div>\n\n        <div class=\"form-group\">\n          <label class=\"control-label\">启用链接划词</label>\n          <div class=\"controls\">\n            <label class=\"radio-inline\"><input type=\"radio\" name=\"linkInspect\" ng-model=\"options.linkInspect\" ng-value=\"true\" />启用</label>\n            <label class=\"radio-inline\"><input type=\"radio\" name=\"linkInspect\" ng-model=\"options.linkInspect\" ng-value=\"false\" /> 停用</label>\n\n            <div class=\"hint\">\n              使用快捷键\n              <code>Ctrl + Shift + L</code>\n              启用/禁用链接划词模式。\n              划词结束或者点击页面任意一处，将自动恢复为禁用状态。\n            </div>\n          </div>\n        </div>\n\n        <div class=\"form-group notify-mode\">\n          <label class=\"control-label\">划词翻译结果显示位置</label>\n          <div class=\"controls\">\n            <label class=\"radio-inline\">\n              <input type=\"radio\" name=\"notifyMode\" ng-model=\"options.notifyMode\" value=\"margin\" /> 在窗口边缘显示\n            </label>\n            <label class=\"radio-inline\">\n              <input type=\"radio\" name=\"notifyMode\" ng-model=\"options.notifyMode\" value=\"in-place\" /> 在选择的文本附近显示\n            </label>\n          </div>\n        </div>\n\n        <div class=\"form-group\">\n          <label class=\"control-label\">划词翻译结果显示时长</label>\n          <div class=\"controls\" style=\"padding-top: 7px;\">\n            <input type=\"range\" min=\"3\" max=\"10\" step=\"1\" ng-model=\"options.notifyTimeout\" data-highlight=\"true\" />\n            <span class=\"label label-info\">{{ options.notifyTimeout }} 秒</span>\n          </div>\n\n        </div>\n\n      </form>\n\n    </div><!-- .board-content -->\n\n  </div><!-- .board -->\n\n  <script type=\"text/javascript\" src=\"js/options.js\"></script>\n</body>\n</html>"
  },
  {
    "path": "src/popup.html",
    "content": "<!DOCTYPE html>\n<html ng-app=\"TransitApp\" ng-csp>\n<head>\n  <meta charset=\"utf-8\"/>\n  <title>TransIt</title> \n\n  <link rel=\"stylesheet\" href=\"css/popup.css\" type=\"text/css\" />\n</head>\n<body>\n  <div class=\"translator\" ng-controller=\"TranslateCtrl\">\n    <textarea id=\"source\" placeholder=\"输入文字进行翻译 ...\"\n              ng-model=\"source\"\n              ng-trim=\"false\"\n              ng-keydown=\"handleKeydown($event)\"\n              ng-keyup=\"handleChange($event)\"\n              msd-elastic></textarea>\n\n    <div id=\"result\" ng-bind-html=\"output | html_safe\"></div>\n  </div>\n\n  <footer ng-controller=\"OptionsCtrl\">\n    <a href=\"#\" title=\"偏好设定\"\n       class=\"pull-right\"\n       ng-click=\"openExtensionPage()\">\n       <span class=\"icon icon-cog\"></span>\n    </a>\n\n    <a href=\"#\" title=\"点击切换翻译服务\"\n       class=\"btn-translator pull-right {{options.translator}}\"\n       ng-click=\"nextTranslator()\"></a>\n\n    <label class=\"checkbox-inline\" title=\"页面划词\">\n      <input type=\"checkbox\" ng-model=\"options.pageInspect\" />\n      <span class=\"icon icon-text\"></span>\n    </label>\n\n    <label class=\"checkbox-inline\" title=\"链接划词（Ctrl+Shift+L）\">\n      <input type=\"checkbox\" ng-model=\"options.linkInspect\" /> \n      <span class=\"icon icon-link\"></span>\n    </label>\n  </footer>\n  \n  <script src=\"js/popup.js\" type=\"text/javascript\"></script>\n</body>\n</html>\n"
  }
]