From 9aee6e1e318f0cc0ab47bfd984e90a95c0055fb2 Mon Sep 17 00:00:00 2001 From: Allenice <994298628@qq.com> Date: Fri, 14 Sep 2018 16:27:52 +0800 Subject: [PATCH] update polyfill, svgo config and build size --- babel.config.js | 9 +- default/svgo.js | 6 +- demo/index.html | 2 +- demo/js/50d1.1fbd341d.js | 2 - demo/js/50d1.6b40a290.js | 2 + ...1.1fbd341d.js.map => 50d1.6b40a290.js.map} | 2 +- demo/js/app.5f80e0d5.js | 2 - demo/js/app.5f80e0d5.js.map | 1 - demo/js/app.8fc75a08.js | 2 + demo/js/app.8fc75a08.js.map | 1 + ....a9841473.js => chunk-vendors.2d7fcd0c.js} | 10 +- demo/js/chunk-vendors.2d7fcd0c.js.map | 1 + demo/js/chunk-vendors.a9841473.js.map | 1 - dist/components/svgicon.common.js | 1086 ----------------- dist/components/svgicon.common.js.map | 2 +- dist/components/svgicon.umd.js | 1086 ----------------- dist/components/svgicon.umd.js.map | 2 +- dist/components/svgicon.umd.min.js | 2 +- dist/components/svgicon.umd.min.js.map | 2 +- dist/polyfill.js | 2 +- package.json | 5 +- polyfill/index.js | 15 + polyfill/innersvg-polyfill.js | 98 ++ src/assets/svg/setting.svg | 22 + src/components/icons/arrow.ts | 14 +- src/components/icons/check.ts | 14 +- src/components/icons/clock.ts | 14 +- src/components/icons/colorwheel.ts | 14 +- src/components/icons/index.ts | 1 + src/components/icons/mask.ts | 14 +- src/components/icons/setting.ts | 13 + src/components/icons/sora/arrow.ts | 14 +- src/components/icons/sora/fit/arrow.ts | 14 +- src/components/icons/sora/fit/mask.ts | 14 +- src/components/icons/vue.ts | 14 +- tests/example/vue-init-webpack/src/App.vue | 21 +- tests/example/vue-init-webpack/src/main.js | 5 + webpack.config.js | 44 + yarn.lock | 167 ++- 39 files changed, 466 insertions(+), 2274 deletions(-) delete mode 100644 demo/js/50d1.1fbd341d.js create mode 100644 demo/js/50d1.6b40a290.js rename demo/js/{50d1.1fbd341d.js.map => 50d1.6b40a290.js.map} (93%) delete mode 100644 demo/js/app.5f80e0d5.js delete mode 100644 demo/js/app.5f80e0d5.js.map create mode 100644 demo/js/app.8fc75a08.js create mode 100644 demo/js/app.8fc75a08.js.map rename demo/js/{chunk-vendors.a9841473.js => chunk-vendors.2d7fcd0c.js} (56%) create mode 100644 demo/js/chunk-vendors.2d7fcd0c.js.map delete mode 100644 demo/js/chunk-vendors.a9841473.js.map create mode 100755 polyfill/index.js create mode 100755 polyfill/innersvg-polyfill.js create mode 100644 src/assets/svg/setting.svg create mode 100644 src/components/icons/setting.ts create mode 100644 webpack.config.js diff --git a/babel.config.js b/babel.config.js index 999feb1f..1ee47be6 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,10 @@ module.exports = { - presets: ['@vue/app'] + presets: [ + [ + '@vue/app', + { + useBuiltIns: false + } + ] + ] } diff --git a/default/svgo.js b/default/svgo.js index 05083f44..9bc0684b 100644 --- a/default/svgo.js +++ b/default/svgo.js @@ -6,9 +6,6 @@ module.exports = { { removeTitle: true }, - { - removeStyleElement: true - }, { removeComments: true }, @@ -18,6 +15,9 @@ module.exports = { { removeUselessDefs: true }, + { + convertStyleToAttrs: true + }, { cleanupIDs: { remove: true, diff --git a/demo/index.html b/demo/index.html index d776bdd4..b2e45f5a 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1 +1 @@ -vue-svgicon
\ No newline at end of file +vue-svgicon
\ No newline at end of file diff --git a/demo/js/50d1.1fbd341d.js b/demo/js/50d1.1fbd341d.js deleted file mode 100644 index b602049d..00000000 --- a/demo/js/50d1.1fbd341d.js +++ /dev/null @@ -1,2 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["50d1"],{"50d1":function(c,a,l){"use strict";l.r(a);l("cadf"),l("551c"),l("097d");var d=l("0032");d["a"].register({download:{width:200,height:200,viewBox:"0 0 1024 1024",data:''}}),d["a"].register({good:{width:200,height:200,viewBox:"0 0 1024 1024",data:''}})}}]); -//# sourceMappingURL=50d1.1fbd341d.js.map \ No newline at end of file diff --git a/demo/js/50d1.6b40a290.js b/demo/js/50d1.6b40a290.js new file mode 100644 index 00000000..d56852b6 --- /dev/null +++ b/demo/js/50d1.6b40a290.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["50d1"],{"50d1":function(c,a,l){"use strict";l.r(a);var d=l("0032");d["a"].register({download:{width:200,height:200,viewBox:"0 0 1024 1024",data:''}}),d["a"].register({good:{width:200,height:200,viewBox:"0 0 1024 1024",data:''}})}}]); +//# sourceMappingURL=50d1.6b40a290.js.map \ No newline at end of file diff --git a/demo/js/50d1.1fbd341d.js.map b/demo/js/50d1.6b40a290.js.map similarity index 93% rename from demo/js/50d1.1fbd341d.js.map rename to demo/js/50d1.6b40a290.js.map index 9afb798e..fc87d56c 100644 --- a/demo/js/50d1.1fbd341d.js.map +++ b/demo/js/50d1.6b40a290.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./src/components/icons-async/download.ts","webpack:///./src/components/icons-async/good.ts"],"names":["SvgIcon","register","download","width","height","viewBox","data","good"],"mappings":"6JAGAA,EAAA,KAAKC,UACDC,UACIC,MAAO,IACPC,OAAQ,IACRC,QAAS,gBACTC,KACI,glBCNZN,EAAA,KAAKC,UACDM,MACIJ,MAAO,IACPC,OAAQ,IACRC,QAAS,gBACTC,KACI","file":"js/50d1.1fbd341d.js","sourcesContent":["/* eslint-disable */\n//@ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n download: {\n width: 200,\n height: 200,\n viewBox: '0 0 1024 1024',\n data:\n ''\n }\n})\n","/* eslint-disable */\n//@ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n good: {\n width: 200,\n height: 200,\n viewBox: '0 0 1024 1024',\n data:\n ''\n }\n})\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./src/components/icons-async/download.ts","webpack:///./src/components/icons-async/good.ts"],"names":["SvgIcon","register","download","width","height","viewBox","data","good"],"mappings":"+HAGAA,EAAA,KAAKC,UACDC,UACIC,MAAO,IACPC,OAAQ,IACRC,QAAS,gBACTC,KACI,glBCNZN,EAAA,KAAKC,UACDM,MACIJ,MAAO,IACPC,OAAQ,IACRC,QAAS,gBACTC,KACI","file":"js/50d1.6b40a290.js","sourcesContent":["/* eslint-disable */\n//@ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n download: {\n width: 200,\n height: 200,\n viewBox: '0 0 1024 1024',\n data:\n ''\n }\n})\n","/* eslint-disable */\n//@ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n good: {\n width: 200,\n height: 200,\n viewBox: '0 0 1024 1024',\n data:\n ''\n }\n})\n"],"sourceRoot":""} \ No newline at end of file diff --git a/demo/js/app.5f80e0d5.js b/demo/js/app.5f80e0d5.js deleted file mode 100644 index 21c4e4cd..00000000 --- a/demo/js/app.5f80e0d5.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(t){function e(e){for(var o,a,c=e[0],l=e[1],s=e[2],d=0,u=[];d0&&(t=this.addColor(t))):a.push({name:this.iconName,component:this}),this.getValidPathData(t)},box:function(){var t=this.width||16,e=this.width||16;return this.iconData?this.iconData.viewBox?this.iconData.viewBox:"0 0 ".concat(this.iconData.width," ").concat(this.iconData.height):"0 0 ".concat(parseFloat(t)," ").concat(parseFloat(e))},style:function(){var t,e,i=/^\d+$/,o=Number(this.scale);!isNaN(o)&&this.iconData?(t=Number(this.iconData.width)*o+"px",e=Number(this.iconData.height)*o+"px"):(t=i.test(this.width)?this.width+"px":this.width||c,e=i.test(this.height)?this.height+"px":this.height||c);var n={};return t&&(n.width=t),e&&(n.height=e),n}},created:function(){r[this.iconName]&&(this.loaded=!0)},methods:{addColor:function(t){var e=this,i=/<(path|rect|circle|polygon|line|polyline|ellipse)\s/gi,o=0;return t.replace(i,function(t){var i=e.colors[o++]||e.colors[e.colors.length-1],n=e.fill;if(i&&"_"===i)return t;i&&0===i.indexOf("r-")&&(n=!n,i=i.split("r-")[1]);var r=n?"fill":"stroke",a=n?"stroke":"fill";return t+"".concat(r,'="').concat(i,'" ').concat(a,'="none" ')})},addOriginalColor:function(t){var e=/_fill="|_stroke="/gi;return t.replace(e,function(t){return t&&t.slice(1)})},getValidPathData:function(t){if(this.original&&this.colors.length>0){var e=/<(path|rect|circle|polygon|line|polyline|ellipse)(\sfill|\sstroke)([="\w\s\.\-\+#\$\&>]+)(fill|stroke)/gi;t=t.replace(e,function(t,e,i,o,n){return"<".concat(e).concat(i).concat(o,"_").concat(n)})}return t},setTitle:function(t){if(this.title){var e=this.title.replace(/\/gi,">").replace(/&/g,"&");return"".concat(e,"")+t}return t},onClick:function(t){this.$emit("click",t)}},install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.tagName||"svgicon";e.classPrefix&&(l=e.classPrefix),s=!!e.isStroke,e.defaultWidth&&(c=e.defaultWidth),e.defaultHeight&&e.defaultHeight,t.component(i,this)},register:function(t){var e=function(e){r[e]||(r[e]=t[e]),a=a.filter(function(t,i){return t.name===e&&t.component.$set(t.component,"loaded",!0),t.name!==e})};for(var i in t)e(i)},icons:r},h=d,u=i("2877"),f=Object(u["a"])(h,o,n,!1,null,null,null);f.options.__file="SvgIcon.vue";e["a"]=f.exports},"42a0":function(t,e,i){"use strict";i.r(e);i("cadf"),i("551c"),i("097d");var o=i("5ee5"),n=i.n(o),r=i("c665"),a=i("dc0a"),c=i("aa9a"),l=i("d328"),s=i("11d9"),d=i("9ab4"),h=i("60a3"),u=(i("a481"),{dir:['\n \n \n \n \n '],fill:['\n \n \n '],"r-color":['\n \n '],color:['\n \n \n \n \n '],size:['\n \n \n \n \n \n '],"multi-color":[''],"multi-color2":['','\n \n\n \n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SvgIcon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SvgIcon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SvgIcon.vue?vue&type=template&id=30190379&\"\nimport script from \"./SvgIcon.vue?vue&type=script&lang=js&\"\nexport * from \"./SvgIcon.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\ncomponent.options.__file = \"SvgIcon.vue\"\nexport default component.exports","// demo code map\nexport default {\n dir: [\n `\n \n \n \n \n `\n ],\n fill: [\n `\n \n \n `\n ],\n 'r-color': [\n `\n \n `\n ],\n color: [\n `\n \n \n \n \n `\n ],\n size: [\n `\n \n \n \n \n \n `\n ],\n 'multi-color': [\n ``\n ],\n 'multi-color2': [\n ``,\n `\n \n\n \n `\n ],\n 'original-color': [\n `\n \n \n \n \n `\n ],\n gradient: [\n ``,\n `\n \n `\n ],\n namespace: [\n `\n \n \n \n `\n ],\n uid: [\n `\n \n \n `\n ],\n async: [\n `\n \n \n \n \n `,\n `\n \n\n \n `\n ]\n} as { [key: string]: string[] }\n","// 引用代码高亮样式\n\nimport * as hljs from 'highlight.js/lib/highlight'\nhljs.registerLanguage(\n 'javascript',\n require('highlight.js/lib/languages/javascript')\n)\nhljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'))\n\nexport default hljs\n","import { Component, Vue, Prop } from 'vue-property-decorator'\nimport codeMap from '@/common/codeMap'\nimport hlj from '@/common/highlight'\n\n@Component({\n components: {}\n})\nexport default class DemoBlock extends Vue {\n @Prop() protected code!: string\n\n @Prop() protected datas!: any[]\n\n protected get codeString() {\n return codeMap[this.code]\n }\n\n protected mounted() {\n let codeEl: HTMLElement = this.$refs.code as HTMLElement\n if (codeEl) {\n codeEl.textContent = this.codeString[1]\n ? this.codeString[1].replace(/#{{(\\w+)}}/g, (match, name) => {\n return this.codeString[0]\n })\n : this.codeString[0]\n\n hlj.highlightBlock(codeEl)\n }\n }\n\n protected render() {\n if (this.codeString) {\n let datas = this.datas || []\n\n @Component({\n name: 'PreviewBlock',\n template: `
${this.codeString[0]}
`\n })\n class PreviewBlock extends Vue {\n protected datas: any[] = datas\n }\n\n return (\n
\n \n
\n
\n                            \n                        
\n
\n
\n )\n } else {\n return
\n }\n }\n}\n","import { Component, Vue } from 'vue-property-decorator'\nimport DemoBlock from '@/components/DemoBlock'\n\n@Component({\n components: {\n DemoBlock\n }\n})\nexport default class App extends Vue {\n protected colors =\n '#FBAD20 #F5EB13 #B8D433 #6BC9C6 #058BC5 #34469D #7E4D9F #C63D96 #ED1944'\n\n protected mounted() {\n setTimeout(() => {\n import('@/components/icons-async').then(() => {\n console.log('Async icons loaded')\n })\n }, 3000)\n }\n\n protected render() {\n return (\n
\n

\n \n

\n

Vue Svg Icon

\n

\n \n Star\n \n

\n
\n

Color (defalt: inherit)

\n

\n \n

\n\n

Multi Color (define by path/shape order)

\n \n \n\n

Use original colors

\n \n\n

Gradient

\n \n\n

Size (defalt unit: px)

\n \n\n

Fill (default: fill)

\n \n\n

r-color (reverse fill property)

\n \n
circle is fill, path is stroke
\n\n

Direction (default: right)

\n \n\n

Namespace

\n \n\n

Unique Id

\n \n\n

Async

\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n )\n }\n}\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n arrow: {\n width: 4,\n height: 7,\n viewBox: '0 0 4 7',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n check: {\n width: 32,\n height: 31,\n viewBox: '0 0 32 31',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n clock: {\n width: 16,\n height: 16,\n viewBox: '0 0 16 16',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n colorwheel: {\n width: 16,\n height: 16,\n viewBox: '0 0 800 800',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n mask: {\n width: 16,\n height: 16,\n viewBox: '0 0 200 200',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'sora/arrow': {\n width: 200,\n height: 200,\n viewBox: '0 0 1024 1024',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'sora/fit/arrow': {\n width: 254.688,\n height: 200,\n viewBox: '0 0 1304 1024',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'sora/fit/mask': {\n width: 16,\n height: 16,\n viewBox: '0 0 200 200',\n data:\n ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n vue: {\n width: 2500,\n height: 2158,\n viewBox: '0 0 256 221',\n data:\n ''\n }\n})\n","import Vue from 'vue'\nimport App from './App'\nimport SvgIcon from '@/components/SvgIcon.vue'\n\nimport '@/components/icons'\nimport 'highlight.js/styles/github-gist.css'\n\nVue.config.productionTip = false\n\nVue.use(SvgIcon, {\n tagName: 'icon'\n})\n\nnew Vue({\n render: h => {\n return \n }\n}).$mount('#app')\n"],"sourceRoot":""} \ No newline at end of file diff --git a/demo/js/app.8fc75a08.js b/demo/js/app.8fc75a08.js new file mode 100644 index 00000000..5d37c95d --- /dev/null +++ b/demo/js/app.8fc75a08.js @@ -0,0 +1,2 @@ +(function(t){function e(e){for(var n,a,c=e[0],l=e[1],s=e[2],d=0,u=[];d0&&(t=this.addColor(t))):a.push({name:this.iconName,component:this}),this.getValidPathData(t)},box:function(){var t=this.width||16,e=this.width||16;return this.iconData?this.iconData.viewBox?this.iconData.viewBox:"0 0 ".concat(this.iconData.width," ").concat(this.iconData.height):"0 0 ".concat(parseFloat(t)," ").concat(parseFloat(e))},style:function(){var t,e,i=/^\d+$/,n=Number(this.scale);!isNaN(n)&&this.iconData?(t=Number(this.iconData.width)*n+"px",e=Number(this.iconData.height)*n+"px"):(t=i.test(this.width)?this.width+"px":this.width||c,e=i.test(this.height)?this.height+"px":this.height||c);var o={};return t&&(o.width=t),e&&(o.height=e),o}},created:function(){r[this.iconName]&&(this.loaded=!0)},methods:{addColor:function(t){var e=this,i=/<(path|rect|circle|polygon|line|polyline|ellipse)\s/gi,n=0;return t.replace(i,function(t){var i=e.colors[n++]||e.colors[e.colors.length-1],o=e.fill;if(i&&"_"===i)return t;i&&0===i.indexOf("r-")&&(o=!o,i=i.split("r-")[1]);var r=o?"fill":"stroke",a=o?"stroke":"fill";return t+"".concat(r,'="').concat(i,'" ').concat(a,'="none" ')})},addOriginalColor:function(t){var e=/_fill="|_stroke="/gi;return t.replace(e,function(t){return t&&t.slice(1)})},getValidPathData:function(t){if(this.original&&this.colors.length>0){var e=/<(path|rect|circle|polygon|line|polyline|ellipse)(\sfill|\sstroke)([="\w\s\.\-\+#\$\&>]+)(fill|stroke)/gi;t=t.replace(e,function(t,e,i,n,o){return"<".concat(e).concat(i).concat(n,"_").concat(o)})}return t},setTitle:function(t){if(this.title){var e=this.title.replace(/\/gi,">").replace(/&/g,"&");return"".concat(e,"")+t}return t},onClick:function(t){this.$emit("click",t)}},install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.tagName||"svgicon";e.classPrefix&&(l=e.classPrefix),s=!!e.isStroke,e.defaultWidth&&(c=e.defaultWidth),e.defaultHeight&&e.defaultHeight,t.component(i,this)},register:function(t){var e=function(e){r[e]||(r[e]=t[e]),a=a.filter(function(t,i){return t.name===e&&t.component.$set(t.component,"loaded",!0),t.name!==e})};for(var i in t)e(i)},icons:r},h=d,u=i("2877"),f=Object(u["a"])(h,n,o,!1,null,null,null);f.options.__file="SvgIcon.vue";e["a"]=f.exports},"07c6":function(t,e,i){"use strict";(function(t){var e=i("ad52");!function(n,o){"object"==("undefined"===typeof exports?"undefined":Object(e["a"])(exports))&&"object"==Object(e["a"])(t)?t.exports=o():"function"==typeof define&&i("3c35")?define([],o):"object"==("undefined"===typeof exports?"undefined":Object(e["a"])(exports))?exports.VueSvgIconPolyfill=o():n.VueSvgIconPolyfill=o()}(window,function(){return function(t){var i={};function n(e){if(i[e])return i[e].exports;var o=i[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=i,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i)return t;if(4&i&&"object"==Object(e["a"])(t)&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,i){var n=i(1);"string"!=typeof window.document.createElementNS("http://www.w3.org/2000/svg","svg").innerHTML&&n()},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=function t(e,i){var n=e.nodeType;if(3==n)i.push(e.textContent.replace(/&/,"&").replace(/",">"));else if(1==n){if(i.push("<",e.tagName),e.hasAttributes())for(var o=e.attributes,r=0,a=o.length;r");var l=e.childNodes;for(r=0,a=l.length;r")}else i.push("/>")}else{if(8!=n)throw"Error serializing XML. Unhandled node of type: "+n;i.push("\x3c!--",e.nodeValue,"--\x3e")}};Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){for(var e=[],i=this.firstChild;i;)t(i,e),i=i.nextSibling;return e.join("")},set:function(t){for(;this.firstChild;)this.removeChild(this.firstChild);try{var e=new DOMParser;e.async=!1;for(var i=""+t+"",n=e.parseFromString(i,"text/xml").documentElement,o=n.firstChild;o;)this.appendChild(this.ownerDocument.importNode(o,!0)),o=o.nextSibling}catch(t){throw console.error(t),new Error("Error parsing XML string")}}}),Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}})}}])})}).call(this,i("dd40")(t))},"42a0":function(t,e,i){"use strict";i.r(e);i("07c6");var n=i("5ee5"),o=i.n(n),r=i("d125"),a=i("548c"),c=i("fe0e"),l=i("18ac"),s=i("7b9a"),d=i("9ab4"),h=i("60a3"),u={dir:['\n \n \n \n \n '],fill:['\n \n \n '],"r-color":['\n \n '],color:['\n \n \n \n \n '],size:['\n \n \n \n \n \n '],"multi-color":[''],"multi-color2":['','\n \n\n \n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SvgIcon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SvgIcon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SvgIcon.vue?vue&type=template&id=30190379&\"\nimport script from \"./SvgIcon.vue?vue&type=script&lang=js&\"\nexport * from \"./SvgIcon.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\ncomponent.options.__file = \"SvgIcon.vue\"\nexport default component.exports","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.VueSvgIconPolyfill=t():e.VueSvgIconPolyfill=t()}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";var n=r(1);\"string\"!=typeof window.document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").innerHTML&&n()},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(){var e=function e(t,r){var n=t.nodeType;if(3==n)r.push(t.textContent.replace(/&/,\"&\").replace(/\",\">\"));else if(1==n){if(r.push(\"<\",t.tagName),t.hasAttributes())for(var o=t.attributes,i=0,u=o.length;i\");for(var l=t.childNodes,i=0,u=l.length;i\")}else r.push(\"/>\")}else{if(8!=n)throw\"Error serializing XML. Unhandled node of type: \"+n;r.push(\"\\x3c!--\",t.nodeValue,\"--\\x3e\")}};Object.defineProperty(SVGElement.prototype,\"innerHTML\",{get:function(){for(var t=[],r=this.firstChild;r;)e(r,t),r=r.nextSibling;return t.join(\"\")},set:function(e){for(;this.firstChild;)this.removeChild(this.firstChild);try{var t=new DOMParser;t.async=!1;for(var r=\"\"+e+\"\",n=t.parseFromString(r,\"text/xml\").documentElement,o=n.firstChild;o;)this.appendChild(this.ownerDocument.importNode(o,!0)),o=o.nextSibling}catch(e){throw console.error(e),new Error(\"Error parsing XML string\")}}}),Object.defineProperty(SVGElement.prototype,\"innerSVG\",{get:function(){return this.innerHTML},set:function(e){this.innerHTML=e}})}}])});","// demo code map\nexport default {\n dir: [\n `\n \n \n \n \n `\n ],\n fill: [\n `\n \n \n `\n ],\n 'r-color': [\n `\n \n `\n ],\n color: [\n `\n \n \n \n \n `\n ],\n size: [\n `\n \n \n \n \n \n `\n ],\n 'multi-color': [\n ``\n ],\n 'multi-color2': [\n ``,\n `\n \n\n \n `\n ],\n 'original-color': [\n `\n \n \n \n \n `\n ],\n gradient: [\n ``,\n `\n \n `\n ],\n namespace: [\n `\n \n \n \n `\n ],\n uid: [\n `\n \n \n `\n ],\n async: [\n `\n \n \n \n \n `,\n `\n \n\n \n `\n ]\n} as { [key: string]: string[] }\n","// 引用代码高亮样式\n\nimport * as hljs from 'highlight.js/lib/highlight'\nhljs.registerLanguage(\n 'javascript',\n require('highlight.js/lib/languages/javascript')\n)\nhljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'))\n\nexport default hljs\n","import { Component, Vue, Prop } from 'vue-property-decorator'\nimport codeMap from '@/common/codeMap'\nimport hlj from '@/common/highlight'\n\n@Component({\n components: {}\n})\nexport default class DemoBlock extends Vue {\n @Prop() protected code!: string\n\n @Prop() protected datas!: any[]\n\n protected get codeString() {\n return codeMap[this.code]\n }\n\n protected mounted() {\n let codeEl: HTMLElement = this.$refs.code as HTMLElement\n if (codeEl) {\n codeEl.textContent = this.codeString[1]\n ? this.codeString[1].replace(/#{{(\\w+)}}/g, (match, name) => {\n return this.codeString[0]\n })\n : this.codeString[0]\n\n hlj.highlightBlock(codeEl)\n }\n }\n\n protected render() {\n if (this.codeString) {\n let datas = this.datas || []\n\n @Component({\n name: 'PreviewBlock',\n template: `
${this.codeString[0]}
`\n })\n class PreviewBlock extends Vue {\n protected datas: any[] = datas\n }\n\n return (\n
\n \n
\n
\n                            \n                        
\n
\n
\n )\n } else {\n return
\n }\n }\n}\n","import { Component, Vue } from 'vue-property-decorator'\nimport DemoBlock from '@/components/DemoBlock'\n\n@Component({\n components: {\n DemoBlock\n }\n})\nexport default class App extends Vue {\n protected colors =\n '#FBAD20 #F5EB13 #B8D433 #6BC9C6 #058BC5 #34469D #7E4D9F #C63D96 #ED1944'\n\n protected mounted() {\n setTimeout(() => {\n import('@/components/icons-async').then(() => {\n console.log('Async icons loaded')\n })\n }, 3000)\n }\n\n protected render() {\n return (\n
\n

\n \n

\n

Vue Svg Icon

\n

\n \n Star\n \n

\n
\n

Color (defalt: inherit)

\n

\n \n

\n\n

Multi Color (define by path/shape order)

\n \n \n\n

Use original colors

\n \n\n

Gradient

\n \n\n

Size (defalt unit: px)

\n \n\n

Fill (default: fill)

\n \n\n

r-color (reverse fill property)

\n \n
circle is fill, path is stroke
\n\n

Direction (default: right)

\n \n\n

Namespace

\n \n\n

Unique Id

\n \n\n

Async

\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n )\n }\n}\n","\n/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'arrow': {\n width: 4,\n height: 7,\n viewBox: '0 0 4 7',\n data: ''\n }\n})\n","\n/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'check': {\n width: 32,\n height: 31,\n viewBox: '0 0 32 31',\n data: ''\n }\n})\n","\n/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'clock': {\n width: 16,\n height: 16,\n viewBox: '0 0 16 16',\n data: ''\n }\n})\n","\n/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'colorwheel': {\n width: 16,\n height: 16,\n viewBox: '0 0 800 800',\n data: ''\n }\n})\n","\n/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'mask': {\n width: 16,\n height: 16,\n viewBox: '0 0 200 200',\n data: ''\n }\n})\n","/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n setting: {\n width: 17,\n height: 16,\n viewBox: '0 0 17 16',\n data:\n ''\n }\n})\n","\n/* eslint-disable */\n/* tslint:disable */\n// @ts-ignore\nimport icon from 'vue-svgicon'\nicon.register({\n 'sora/arrow': {\n width: 200,\n height: 200,\n viewBox: '0 0 1024 1024',\n data: '",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[n],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},n]}]}}},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"98db":function(e,t,n){(function(e,t){ + */function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("5ee5")),o={__proto__:[]}instanceof Array;function a(e){return function(t,n,r){var i="function"===typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!==typeof r&&(r=void 0),i.__decorators__.push(function(t){return e(t,n,r)})}}function s(){for(var e=[],t=0;t-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);"function"===typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return u(this,e)}});var r=e.__decorators__;r&&(r.forEach(function(e){return e(t)}),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),a=o instanceof i?o.constructor:i,s=a.extend(t);return p(s,e,a),s}function p(e,t,n){Object.getOwnPropertyNames(t).forEach(function(r){if("prototype"!==r){var i=Object.getOwnPropertyDescriptor(e,r);if(!i||i.configurable){var a=Object.getOwnPropertyDescriptor(t,r);if(!o){if("cid"===r)return;var s=Object.getOwnPropertyDescriptor(n,r);if(!c(a.value)&&s&&s.value===a.value)return}0,Object.defineProperty(e,r,a)}}})}function d(e){return"function"===typeof e?l(e):function(t){return l(t,e)}}(function(e){function t(e){f.push.apply(f,e)}e.registerHooks=t})(d||(d={}));var v=d;t.default=v,t.createDecorator=a,t.mixins=s},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"765d":function(e,t,n){n("6718")("observable")},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"7b9a":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7163"),i=n.n(r);function o(e){return o=i.a||function(e){return e.__proto__},o(e)}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},8415:function(e,t,n){e.exports=n("d8d6")},8436:function(e,t){e.exports=function(){}},"8dcb":function(e,t){e.exports=function(e){var t="[A-Za-z0-9\\._:-]+",n={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0}]},{className:"tag",begin:"|$)",end:">",keywords:{name:"style"},contains:[n],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[n],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},n]}]}}},"8e60":function(e,t,n){e.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},"98db":function(e,t,n){(function(e,t){ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -24,5 +24,5 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;(function(n){(function(e){var r="object"===typeof t?t:"object"===typeof self?self:"object"===typeof this?this:Function("return this;")(),i=o(n);function o(e,t){return function(n,r){"function"!==typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}"undefined"===typeof r.Reflect?r.Reflect=n:i=o(r.Reflect,i),e(i)})(function(t){var n=Object.prototype.hasOwnProperty,r="function"===typeof Symbol,i=r&&"undefined"!==typeof Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&"undefined"!==typeof Symbol.iterator?Symbol.iterator:"@@iterator",a="function"===typeof Object.create,s={__proto__:[]}instanceof Array,c=!a&&!s,u={create:a?function(){return oe(Object.create(null))}:s?function(){return oe({__proto__:null})}:function(){return oe({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},f=Object.getPrototypeOf(Function),l="object"===typeof e&&Object({NODE_ENV:"production",BASE_URL:"/vue-svgicon/"})&&"true"===Object({NODE_ENV:"production",BASE_URL:"/vue-svgicon/"})["REFLECT_METADATA_USE_MAP_POLYFILL"],p=l||"function"!==typeof Map||"function"!==typeof Map.prototype.entries?ne():Map,d=l||"function"!==typeof Set||"function"!==typeof Set.prototype.entries?re():Set,v=l||"function"!==typeof WeakMap?ie():WeakMap,h=new v;function y(e,t,n,r){if(L(n)){if(!W(e))throw new TypeError;if(!J(t))throw new TypeError;return C(e,t)}if(!W(e))throw new TypeError;if(!B(t))throw new TypeError;if(!B(r)&&!L(r)&&!D(r))throw new TypeError;return D(r)&&(r=void 0),n=V(n),A(e,t,n,r)}function m(e,t){function n(n,r){if(!B(n))throw new TypeError;if(!L(r)&&!q(r))throw new TypeError;M(e,t,n,r)}return n}function g(e,t,n,r){if(!B(n))throw new TypeError;return L(r)||(r=V(r)),M(e,t,n,r)}function _(e,t,n){if(!B(t))throw new TypeError;return L(n)||(n=V(n)),S(e,t,n)}function b(e,t,n){if(!B(t))throw new TypeError;return L(n)||(n=V(n)),T(e,t,n)}function w(e,t,n){if(!B(t))throw new TypeError;return L(n)||(n=V(n)),N(e,t,n)}function x(e,t,n){if(!B(t))throw new TypeError;return L(n)||(n=V(n)),j(e,t,n)}function E(e,t){if(!B(e))throw new TypeError;return L(t)||(t=V(t)),R(e,t)}function O(e,t){if(!B(e))throw new TypeError;return L(t)||(t=V(t)),I(e,t)}function k(e,t,n){if(!B(t))throw new TypeError;L(n)||(n=V(n));var r=$(t,n,!1);if(L(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var i=h.get(t);return i.delete(n),i.size>0||(h.delete(t),!0)}function C(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!L(i)&&!D(i)){if(!J(i))throw new TypeError;t=i}}return t}function A(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=e[i],a=o(t,n,r);if(!L(a)&&!D(a)){if(!B(a))throw new TypeError;r=a}}return r}function $(e,t,n){var r=h.get(e);if(L(r)){if(!n)return;r=new p,h.set(e,r)}var i=r.get(t);if(L(i)){if(!n)return;i=new p,r.set(t,i)}return i}function S(e,t,n){var r=T(e,t,n);if(r)return!0;var i=te(t);return!D(i)&&S(e,i,n)}function T(e,t,n){var r=$(t,n,!1);return!L(r)&&K(r.has(e))}function N(e,t,n){var r=T(e,t,n);if(r)return j(e,t,n);var i=te(t);return D(i)?void 0:N(e,i,n)}function j(e,t,n){var r=$(t,n,!1);if(!L(r))return r.get(e)}function M(e,t,n,r){var i=$(n,r,!0);i.set(e,t)}function R(e,t){var n=I(e,t),r=te(e);if(null===r)return n;var i=R(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new d,a=[],s=0,c=n;s=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9c80":function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a25f:function(e,t,n){var r=n("7726"),i=r.navigator;e.exports=i&&i.userAgent||""},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},a5b8:function(e,t,n){"use strict";var r=n("d8e8");function i(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},a70e:function(e,t,n){(function(e){"object"===typeof window&&window||"object"===typeof self&&self;e(t)})(function(e){var t=[],n=Object.keys,r={},i={},o=/^(no-?highlight|plain|text)$/i,a=/\blang(?:uage)?-([\w-]+)\b/i,s=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,c="",u={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function f(e){return e.replace(/&/g,"&").replace(//g,">")}function l(e){return e.nodeName.toLowerCase()}function p(e,t){var n=e&&e.exec(t);return n&&0===n.index}function d(e){return o.test(e)}function v(e){var t,n,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",n=a.exec(o),n)return T(n[1])?n[1]:"no-highlight";for(o=o.split(/\s+/),t=0,r=o.length;t"}function u(e){o+=""}function p(e){("start"===e.event?c:u)(e.node)}while(e.length||n.length){var d=s();if(o+=f(r.substring(i,d[0].offset)),i=d[0].offset,d===e){a.reverse().forEach(u);do{p(d.splice(0,1)[0]),d=s()}while(d===e&&d.length&&d[0].offset===i);a.reverse().forEach(c)}else"start"===d[0].event?a.push(d[0].node):a.pop(),p(d.splice(0,1)[0])}return o+f(r.substr(i))}function g(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map(function(t){return h(e,{variants:null},t)})),e.cached_variants||e.endsWithParent&&[h(e)]||[e]}function _(e){function t(e){return e&&e.source||e}function r(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}function i(o,a){if(!o.compiled){if(o.compiled=!0,o.keywords=o.keywords||o.beginKeywords,o.keywords){var s={},c=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"===typeof o.keywords?c("keyword",o.keywords):n(o.keywords).forEach(function(e){c(e,o.keywords[e])}),o.keywords=s}o.lexemesRe=r(o.lexemes||/\w+/,!0),a&&(o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")\\b"),o.begin||(o.begin=/\B|\b/),o.beginRe=r(o.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(o.endRe=r(o.end)),o.terminator_end=t(o.end)||"",o.endsWithParent&&a.terminator_end&&(o.terminator_end+=(o.end?"|":"")+a.terminator_end)),o.illegal&&(o.illegalRe=r(o.illegal)),null==o.relevance&&(o.relevance=1),o.contains||(o.contains=[]),o.contains=Array.prototype.concat.apply([],o.contains.map(function(e){return g("self"===e?o:e)})),o.contains.forEach(function(e){i(e,o)}),o.starts&&i(o.starts,a);var u=o.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([o.terminator_end,o.illegal]).map(t).filter(Boolean);o.terminators=u.length?r(u.join("|"),!0):{exec:function(){return null}}}}i(e)}function b(e,t,n,i){function o(e,t){var n,r;for(n=0,r=t.contains.length;n',o+t+a}function v(){var e,t,n,r;if(!O.keywords)return f(A);r="",t=0,O.lexemesRe.lastIndex=0,n=O.lexemesRe.exec(A);while(n)r+=f(A.substring(t,n.index)),e=l(O,n),e?($+=e[1],r+=d(e[0],f(n[0]))):r+=f(n[0]),t=O.lexemesRe.lastIndex,n=O.lexemesRe.exec(A);return r+f(A.substr(t))}function h(){var e="string"===typeof O.subLanguage;if(e&&!r[O.subLanguage])return f(A);var t=e?b(O.subLanguage,A,!0,k[O.subLanguage]):w(A,O.subLanguage.length?O.subLanguage:void 0);return O.relevance>0&&($+=t.relevance),e&&(k[O.subLanguage]=t.top),d(t.language,t.value,!1,!0)}function y(){C+=null!=O.subLanguage?h():v(),A=""}function m(e){C+=e.className?d(e.className,"",!0):"",O=Object.create(e,{parent:{value:O}})}function g(e,t){if(A+=e,null==t)return y(),0;var n=o(t,O);if(n)return n.skip?A+=t:(n.excludeBegin&&(A+=t),y(),n.returnBegin||n.excludeBegin||(A=t)),m(n,t),n.returnBegin?0:t.length;var r=a(O,t);if(r){var i=O;i.skip?A+=t:(i.returnEnd||i.excludeEnd||(A+=t),y(),i.excludeEnd&&(A=t));do{O.className&&(C+=c),O.skip||($+=O.relevance),O=O.parent}while(O!==r.parent);return r.starts&&m(r.starts,""),i.returnEnd?0:t.length}if(s(t,O))throw new Error('Illegal lexeme "'+t+'" for mode "'+(O.className||"")+'"');return A+=t,t.length||1}var x=T(e);if(!x)throw new Error('Unknown language: "'+e+'"');_(x);var E,O=i||x,k={},C="";for(E=O;E!==x;E=E.parent)E.className&&(C=d(E.className,"",!0)+C);var A="",$=0;try{var S,N,j=0;while(1){if(O.terminators.lastIndex=j,S=O.terminators.exec(t),!S)break;N=g(t.substring(j,S.index),S[0]),j=S.index+N}for(g(t.substr(j)),E=O;E.parent;E=E.parent)E.className&&(C+=c);return{relevance:$,value:C,language:e,top:O}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:f(t)};throw e}}function w(e,t){t=t||u.languages||n(r);var i={relevance:0,value:f(e)},o=i;return t.filter(T).forEach(function(t){var n=b(t,e,!1);n.language=t,n.relevance>o.relevance&&(o=n),n.relevance>i.relevance&&(o=i,i=n)}),o.language&&(i.second_best=o),i}function x(e){return u.tabReplace||u.useBR?e.replace(s,function(e,t){return u.useBR&&"\n"===e?"
":u.tabReplace?t.replace(/\t/g,u.tabReplace):""}):e}function E(e,t,n){var r=t?i[t]:n,o=[e.trim()];return e.match(/\bhljs\b/)||o.push("hljs"),-1===e.indexOf(r)&&o.push(r),o.join(" ").trim()}function O(e){var t,n,r,i,o,a=v(e);d(a)||(u.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e,o=t.textContent,r=a?b(a,o,!0):w(o),n=y(t),n.length&&(i=document.createElementNS("http://www.w3.org/1999/xhtml","div"),i.innerHTML=r.value,r.value=m(n,y(i),o)),r.value=x(r.value),e.innerHTML=r.value,e.className=E(e.className,a,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function k(e){u=h(u,e)}function C(){if(!C.called){C.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,O)}}function A(){addEventListener("DOMContentLoaded",C,!1),addEventListener("load",C,!1)}function $(t,n){var o=r[t]=n(e);o.aliases&&o.aliases.forEach(function(e){i[e]=t})}function S(){return n(r)}function T(e){return e=(e||"").toLowerCase(),r[e]||r[i[e]]}return e.highlight=b,e.highlightAuto=w,e.fixMarkup=x,e.highlightBlock=O,e.configure=k,e.initHighlighting=C,e.initHighlightingOnLoad=A,e.registerLanguage=$,e.listLanguages=S,e.getLanguage=T,e.inherit=h,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,r){var i=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return i.contains.push(e.PHRASAL_WORDS_MODE),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),i},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e})},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),l=function(e,t,n){var i={},s=o(function(){return!!a[e]()||c[e]()!=c}),u=i[e]=s?t(p):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},p=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(f,"")),e};e.exports=l},aa9a:function(e,t,n){"use strict";function r(e,t){for(var n=0;nf)if(s=c[f++],s!=s)return!0}else for(;u>f;f++)if((e||f in c)&&c[f]===n)return e||f||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,f=n("11e9").f,l=n("86cc").f,p=n("aa77").trim,d="Number",v=r[d],h=v,y=v.prototype,m=o(n("2aeb")(y))==d,g="trim"in String.prototype,_=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=g?t.trim():p(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,c=t.slice(2),u=0,f=c.length;ui)return NaN;return parseInt(c,r)}}return+t};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof v&&(m?c(function(){y.valueOf.call(n)}):o(n)!=d)?a(new h(_(t)),n,v):_(t)};for(var b,w=n("9e1e")?u(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(h,b=w[x])&&!i(v,b)&&l(v,b,f(h,b));v.prototype=y,y.constructor=v,n("2aba")(r,d,v)}},c665:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},d328:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},i(e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?o(e):t}n.d(t,"a",function(){return a})},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},dc0a:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");r(e.prototype,t&&t.prototype),t&&r(e,t)}n.d(t,"a",function(){return i})},dcbc:function(e,t,n){var r=n("2aba");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c0)return!0;var i=h.get(t);return i.delete(n),i.size>0||(h.delete(t),!0)}function C(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!I(i)&&!D(i)){if(!J(i))throw new TypeError;t=i}}return t}function A(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=e[i],a=o(t,n,r);if(!I(a)&&!D(a)){if(!B(a))throw new TypeError;r=a}}return r}function S(e,t,n){var r=h.get(e);if(I(r)){if(!n)return;r=new p,h.set(e,r)}var i=r.get(t);if(I(i)){if(!n)return;i=new p,r.set(t,i)}return i}function $(e,t,n){var r=T(e,t,n);if(r)return!0;var i=te(t);return!D(i)&&$(e,i,n)}function T(e,t,n){var r=S(t,n,!1);return!I(r)&&K(r.has(e))}function N(e,t,n){var r=T(e,t,n);if(r)return j(e,t,n);var i=te(t);return D(i)?void 0:N(e,i,n)}function j(e,t,n){var r=S(t,n,!1);if(!I(r))return r.get(e)}function M(e,t,n,r){var i=S(n,r,!0);i.set(e,t)}function P(e,t){var n=R(e,t),r=te(e);if(null===r)return n;var i=P(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new d,a=[],s=0,c=n;s=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},a70e:function(e,t,n){(function(e){"object"===typeof window&&window||"object"===typeof self&&self;e(t)})(function(e){var t=[],n=Object.keys,r={},i={},o=/^(no-?highlight|plain|text)$/i,a=/\blang(?:uage)?-([\w-]+)\b/i,s=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,c="",u={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function f(e){return e.replace(/&/g,"&").replace(//g,">")}function l(e){return e.nodeName.toLowerCase()}function p(e,t){var n=e&&e.exec(t);return n&&0===n.index}function d(e){return o.test(e)}function v(e){var t,n,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",n=a.exec(o),n)return T(n[1])?n[1]:"no-highlight";for(o=o.split(/\s+/),t=0,r=o.length;t"}function u(e){o+=""}function p(e){("start"===e.event?c:u)(e.node)}while(e.length||n.length){var d=s();if(o+=f(r.substring(i,d[0].offset)),i=d[0].offset,d===e){a.reverse().forEach(u);do{p(d.splice(0,1)[0]),d=s()}while(d===e&&d.length&&d[0].offset===i);a.reverse().forEach(c)}else"start"===d[0].event?a.push(d[0].node):a.pop(),p(d.splice(0,1)[0])}return o+f(r.substr(i))}function g(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map(function(t){return h(e,{variants:null},t)})),e.cached_variants||e.endsWithParent&&[h(e)]||[e]}function b(e){function t(e){return e&&e.source||e}function r(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}function i(o,a){if(!o.compiled){if(o.compiled=!0,o.keywords=o.keywords||o.beginKeywords,o.keywords){var s={},c=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"===typeof o.keywords?c("keyword",o.keywords):n(o.keywords).forEach(function(e){c(e,o.keywords[e])}),o.keywords=s}o.lexemesRe=r(o.lexemes||/\w+/,!0),a&&(o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")\\b"),o.begin||(o.begin=/\B|\b/),o.beginRe=r(o.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(o.endRe=r(o.end)),o.terminator_end=t(o.end)||"",o.endsWithParent&&a.terminator_end&&(o.terminator_end+=(o.end?"|":"")+a.terminator_end)),o.illegal&&(o.illegalRe=r(o.illegal)),null==o.relevance&&(o.relevance=1),o.contains||(o.contains=[]),o.contains=Array.prototype.concat.apply([],o.contains.map(function(e){return g("self"===e?o:e)})),o.contains.forEach(function(e){i(e,o)}),o.starts&&i(o.starts,a);var u=o.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([o.terminator_end,o.illegal]).map(t).filter(Boolean);o.terminators=u.length?r(u.join("|"),!0):{exec:function(){return null}}}}i(e)}function _(e,t,n,i){function o(e,t){var n,r;for(n=0,r=t.contains.length;n',o+t+a}function v(){var e,t,n,r;if(!E.keywords)return f(A);r="",t=0,E.lexemesRe.lastIndex=0,n=E.lexemesRe.exec(A);while(n)r+=f(A.substring(t,n.index)),e=l(E,n),e?(S+=e[1],r+=d(e[0],f(n[0]))):r+=f(n[0]),t=E.lexemesRe.lastIndex,n=E.lexemesRe.exec(A);return r+f(A.substr(t))}function h(){var e="string"===typeof E.subLanguage;if(e&&!r[E.subLanguage])return f(A);var t=e?_(E.subLanguage,A,!0,k[E.subLanguage]):w(A,E.subLanguage.length?E.subLanguage:void 0);return E.relevance>0&&(S+=t.relevance),e&&(k[E.subLanguage]=t.top),d(t.language,t.value,!1,!0)}function y(){C+=null!=E.subLanguage?h():v(),A=""}function m(e){C+=e.className?d(e.className,"",!0):"",E=Object.create(e,{parent:{value:E}})}function g(e,t){if(A+=e,null==t)return y(),0;var n=o(t,E);if(n)return n.skip?A+=t:(n.excludeBegin&&(A+=t),y(),n.returnBegin||n.excludeBegin||(A=t)),m(n,t),n.returnBegin?0:t.length;var r=a(E,t);if(r){var i=E;i.skip?A+=t:(i.returnEnd||i.excludeEnd||(A+=t),y(),i.excludeEnd&&(A=t));do{E.className&&(C+=c),E.skip||(S+=E.relevance),E=E.parent}while(E!==r.parent);return r.starts&&m(r.starts,""),i.returnEnd?0:t.length}if(s(t,E))throw new Error('Illegal lexeme "'+t+'" for mode "'+(E.className||"")+'"');return A+=t,t.length||1}var x=T(e);if(!x)throw new Error('Unknown language: "'+e+'"');b(x);var O,E=i||x,k={},C="";for(O=E;O!==x;O=O.parent)O.className&&(C=d(O.className,"",!0)+C);var A="",S=0;try{var $,N,j=0;while(1){if(E.terminators.lastIndex=j,$=E.terminators.exec(t),!$)break;N=g(t.substring(j,$.index),$[0]),j=$.index+N}for(g(t.substr(j)),O=E;O.parent;O=O.parent)O.className&&(C+=c);return{relevance:S,value:C,language:e,top:E}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:f(t)};throw e}}function w(e,t){t=t||u.languages||n(r);var i={relevance:0,value:f(e)},o=i;return t.filter(T).forEach(function(t){var n=_(t,e,!1);n.language=t,n.relevance>o.relevance&&(o=n),n.relevance>i.relevance&&(o=i,i=n)}),o.language&&(i.second_best=o),i}function x(e){return u.tabReplace||u.useBR?e.replace(s,function(e,t){return u.useBR&&"\n"===e?"
":u.tabReplace?t.replace(/\t/g,u.tabReplace):""}):e}function O(e,t,n){var r=t?i[t]:n,o=[e.trim()];return e.match(/\bhljs\b/)||o.push("hljs"),-1===e.indexOf(r)&&o.push(r),o.join(" ").trim()}function E(e){var t,n,r,i,o,a=v(e);d(a)||(u.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e,o=t.textContent,r=a?_(a,o,!0):w(o),n=y(t),n.length&&(i=document.createElementNS("http://www.w3.org/1999/xhtml","div"),i.innerHTML=r.value,r.value=m(n,y(i),o)),r.value=x(r.value),e.innerHTML=r.value,e.className=O(e.className,a,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function k(e){u=h(u,e)}function C(){if(!C.called){C.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,E)}}function A(){addEventListener("DOMContentLoaded",C,!1),addEventListener("load",C,!1)}function S(t,n){var o=r[t]=n(e);o.aliases&&o.aliases.forEach(function(e){i[e]=t})}function $(){return n(r)}function T(e){return e=(e||"").toLowerCase(),r[e]||r[i[e]]}return e.highlight=_,e.highlightAuto=w,e.fixMarkup=x,e.highlightBlock=E,e.configure=k,e.initHighlighting=C,e.initHighlightingOnLoad=A,e.registerLanguage=S,e.listLanguages=$,e.getLanguage=T,e.inherit=h,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,r){var i=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return i.contains.push(e.PHRASAL_WORDS_MODE),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),i},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e})},ad52:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("8415"),i=n.n(r),o=n("db78"),a=n.n(o);function s(e){return s="function"===typeof a.a&&"symbol"===typeof i.a?function(e){return typeof e}:function(e){return e&&"function"===typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":typeof e},s(e)}function c(e){return c="function"===typeof a.a&&"symbol"===s(i.a)?function(e){return s(e)}:function(e){return e&&"function"===typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":s(e)},c(e)}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b11d:function(e,t,n){},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),c=n("794b"),u=Object.getOwnPropertyDescriptor;t.f=n("8e60")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},c207:function(e,t){},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},ccb9:function(e,t,n){t.f=n("5168")},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},d125:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},db78:function(e,t,n){e.exports=n("f921")},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},dd40:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;cc)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},ead6:function(e,t,n){var r=n("f772"),i=n("e4ae"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("d864")(Function.call,n("bf0b").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,c=Object.isExtensible||function(){return!0},u=!n("294c")(function(){return c(Object.preventExtensions({}))}),f=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},l=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";f(e)}return e[r].i},p=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;f(e)}return e[r].w},d=function(e){return u&&v.NEED&&c(e)&&!o(e,r)&&f(e),e},v=e.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},ecb0:function(e,t,n){e.exports=n("25b0")},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fa99:function(e,t,n){n("0293"),e.exports=n("584a").Object.getPrototypeOf},fe0e:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("0a75"),i=n.n(r);function o(e,t){for(var n=0;n