├── .babelrc
├── src
├── build.js
└── VueHelmet.js
├── .editorconfig
├── .eslintrc.js
├── .gitignore
├── webpack.config.js
├── webpack.common.js
├── LICENSE
├── package.json
├── README.md
└── dist
├── vue-helmet.common.js
├── vue-helmet.min.js
└── vue-helmet.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015"],
3 | "plugins": ["transform-runtime"]
4 | }
--------------------------------------------------------------------------------
/src/build.js:
--------------------------------------------------------------------------------
1 | import VueHelmetComponent from './VueHelmet'
2 |
3 | export function install(Vue) {
4 | Vue.component('vue-helmet', VueHelmetComponent)
5 | }
6 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
4 | extends: 'standard',
5 | // required to lint *.vue files
6 | env: {
7 | 'browser': true,
8 | },
9 | plugins: [
10 | 'html'
11 | ],
12 | // add your custom rules here
13 | 'rules': {
14 | // allow paren-less arrow functions
15 | 'arrow-parens': 0,
16 | // allow debugger during development
17 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
18 | 'comma-dangle': 0,
19 | 'no-unused-vars': 1,
20 | 'space-before-function-paren': 0,
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 |
6 | # Runtime data
7 | pids
8 | *.pid
9 | *.seed
10 |
11 | # Directory for instrumented libs generated by jscoverage/JSCover
12 | lib-cov
13 |
14 | # Coverage directory used by tools like istanbul
15 | coverage
16 |
17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18 | .grunt
19 |
20 | # node-waf configuration
21 | .lock-wscript
22 |
23 | # Compiled binary addons (http://nodejs.org/api/addons.html)
24 | build/Release
25 |
26 | # Dependency directory
27 | node_modules
28 |
29 | # Optional npm cache directory
30 | .npm
31 |
32 | # Optional REPL history
33 | .node_repl_history
34 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 | var webpack = require('webpack');
2 | var version = require("./package.json").version;
3 | var banner =
4 | "/**\n" +
5 | " * vue-helmet v" + version + "\n" +
6 | " * https://github.com/miaolz123/vue-helmet\n" +
7 | " * MIT License\n" +
8 | " */\n";
9 |
10 | module.exports = {
11 | entry: './src/build.js',
12 | output: {
13 | path: './dist',
14 | filename: 'vue-helmet.js',
15 | library: 'VueHelmet',
16 | libraryTarget: 'umd'
17 | },
18 | plugins: [
19 | new webpack.BannerPlugin(banner, { raw: true })
20 | ],
21 | module: {
22 | loaders: [{
23 | test: /\.vue$/,
24 | loader: 'vue'
25 | }, {
26 | test: /\.css$/,
27 | loader: "style!css"
28 | }, {
29 | test: /\.js$/,
30 | loader: 'babel',
31 | exclude: /node_modules/
32 | }, {
33 | test: /\.json$/,
34 | loader: 'json-loader'
35 | }]
36 | },
37 | }
38 |
--------------------------------------------------------------------------------
/webpack.common.js:
--------------------------------------------------------------------------------
1 | var webpack = require("webpack");
2 | var version = require("./package.json").version;
3 | var banner =
4 | "/**\n" +
5 | " * vue-helmet v" + version + "\n" +
6 | " * https://github.com/miaolz123/vue-helmet\n" +
7 | " * MIT License\n" +
8 | " */\n";
9 |
10 | module.exports = {
11 | entry: "./src/VueHelmet.js",
12 | target: "node",
13 | output: {
14 | path: "./dist",
15 | filename: "vue-helmet.common.js",
16 | library: "VueHelmet",
17 | libraryTarget: "umd"
18 | },
19 | externals: /^[^.]/,
20 | plugins: [
21 | new webpack.BannerPlugin(banner, { raw: true })
22 | ],
23 | module: {
24 | loaders: [{
25 | test: /\.vue$/,
26 | loader: "vue"
27 | }, {
28 | test: /\.js$/,
29 | loader: "babel",
30 | exclude: /node_modules/
31 | }, {
32 | test: /\.css$/,
33 | loader: "style!css"
34 | }, {
35 | test: /\.json$/,
36 | loader: "json-loader"
37 | }]
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 miaolz123
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-helmet",
3 | "version": "1.1.5",
4 | "description": "A HTML head manager for Vue",
5 | "main": "dist/vue-helmet.common.js",
6 | "files": [
7 | "dist/vue-helmet.js",
8 | "dist/vue-helmet.min.js",
9 | "dist/vue-helmet.common.js",
10 | "src"
11 | ],
12 | "scripts": {
13 | "start": "webpack --config webpack.config.js",
14 | "min": "uglifyjs ./dist/vue-helmet.js -m -c --noerr -o ./dist/vue-helmet.min.js",
15 | "build": "webpack --config webpack.common.js",
16 | "test": "echo true"
17 | },
18 | "repository": {
19 | "type": "git",
20 | "url": "git+https://github.com/miaolz123/vue-helmet.git"
21 | },
22 | "keywords": [
23 | "vue",
24 | "helmet",
25 | "vue-helmet"
26 | ],
27 | "author": "miaolz123",
28 | "license": "MIT",
29 | "bugs": {
30 | "url": "https://github.com/miaolz123/vue-helmet/issues"
31 | },
32 | "homepage": "https://github.com/miaolz123/vue-helmet#readme",
33 | "devDependencies": {
34 | "babel-core": "^6.8.0",
35 | "babel-loader": "^6.2.4",
36 | "babel-plugin-transform-es2015-parameters": "^6.8.0",
37 | "babel-plugin-transform-runtime": "^6.8.0",
38 | "babel-preset-es2015": "^6.6.0",
39 | "babel-runtime": "^6.6.1",
40 | "webpack": "^1.13.0"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue-helmet
2 |
3 | [](https://www.npmjs.com/package/vue-helmet)
4 | [](https://www.npmjs.com/package/vue-helmet)
5 | [](https://www.npmjs.com/package/vue-helmet)
6 |
7 | Like [react-helmet](https://github.com/nfl/react-helmet), a HTML head manager for Vue, edit the page title easily!
8 |
9 | # Instllation
10 |
11 | ### Browser globals
12 |
13 | > The **dist** folder contains `vue-helmet.js` and `vue-helmet.min.js` with the component exported in the `window.VueHelmet` object.
14 |
15 | ```html
16 |
17 |
18 |
24 | ```
25 |
26 | ### NPM
27 |
28 | ```shell
29 | $ npm install --save vue-helmet
30 | ```
31 |
32 | ## CommonJS
33 |
34 | ```js
35 | var VueHelmet = require('vue-helmet');
36 |
37 | new Vue({
38 | components: {
39 | 'vue-helmet': VueHelmet
40 | }
41 | })
42 | ```
43 |
44 | ## ES6
45 |
46 | ```js
47 | import VueHelmet from 'vue-helmet'
48 |
49 | new Vue({
50 | components: {
51 | VueHelmet
52 | }
53 | })
54 | ```
55 |
56 | # Example
57 |
58 | - vue-router & vue-helmet Example : [Code](//github.com/miaolz123/vue-helmet/tree/gh-pages) | [Demo](//miaolz123.github.io/vue-helmet/)
59 | - ...
60 |
61 | # Props
62 |
63 | | Prop | Type | Example |
64 | | ---- | ---- | ------- |
65 | | html-attributes | Object | `:html-attributes="{'lang': 'zh-CN'}"` |
66 | | title | String | `title="New Title Here"` |
67 | | base | Object | `:base="{'target': '_blank', 'href': 'http://a.d.c'}"` |
68 | | meta | Object | `:meta="{'description': 'New Description Here.'}"` |
69 | | links | Array | `:links="[{'rel': 'canonical', 'href': 'http://a.b.c'}]"` |
70 | | scripts | Array | `:scripts="[{'type': 'text/javascript', 'src': 'http://abc.xyz/filename.js'}]"` |
71 |
72 | # Contributors
73 |
74 | - [miaolz123](//github.com/miaolz123)
75 | - [MouCai](//github.com/MouCai)
76 |
77 | # License
78 |
79 | Copyright (c) 2016 [miaolz123](//github.com/miaolz123) by [MIT](//opensource.org/licenses/MIT)
--------------------------------------------------------------------------------
/src/VueHelmet.js:
--------------------------------------------------------------------------------
1 | const isArrayLike = (obj) => {
2 | const jtype = (obj) => {
3 | let class2type = {}
4 | let toString = class2type.toString
5 | if (obj == null) {
6 | return obj + ''
7 | }
8 | return typeof obj === 'object' || typeof obj === 'function'
9 | ? class2type[toString.call(obj)] || 'object' : typeof obj
10 | }
11 | const isWindow = (obj) => {
12 | return obj != null && obj === obj.window
13 | }
14 | let length = !!obj && 'length' in obj && obj.length
15 | let type = jtype(obj)
16 | if (type === 'function' || isWindow(obj)) {
17 | return false
18 | }
19 | return type === 'array' || length === 0 ||
20 | typeof length === 'number' && length > 0 && (length - 1) in obj
21 | }
22 |
23 | const range = (obj, callback) => {
24 | let length = 0
25 | let i = 0
26 | if (isArrayLike(obj)) {
27 | length = obj.length
28 | for (; i < length; i++) {
29 | if (callback.call(obj[i], i, obj[i]) === false) {
30 | break
31 | }
32 | }
33 | } else {
34 | for (i in obj) {
35 | if (callback.call(obj[i], i, obj[i]) === false) {
36 | break
37 | }
38 | }
39 | }
40 | return obj
41 | }
42 |
43 | const updateHtmlAttributes = (attributes) => {
44 | const htmlTags = document.getElementsByTagName('html')
45 | if (htmlTags.length > 0) {
46 | range(attributes, (k, v) => {
47 | htmlTags[0].setAttribute(k, v)
48 | })
49 | }
50 | }
51 |
52 | const updateBase = (attributes) => {
53 | const headElement = document.head || document.querySelector('head')
54 | const oldBases = headElement.getElementsByTagName('base')
55 | const newBase = document.createElement('base')
56 | range(oldBases, () => {
57 | headElement.removeChild(oldBases[0])
58 | })
59 | range(attributes, (k, v) => {
60 | newBase.setAttribute(k, v)
61 | })
62 | headElement.appendChild(newBase)
63 | }
64 |
65 | const updateMeta = (attributes) => {
66 | const headElement = document.head || document.querySelector('head')
67 | const oldMetas = headElement.getElementsByTagName('meta')
68 | const attributeKeys = Object.keys(attributes)
69 | let i = 0
70 | range(oldMetas, () => {
71 | if (attributeKeys.indexOf(oldMetas[i].name) > -1) {
72 | headElement.removeChild(oldMetas[i])
73 | } else i++
74 | })
75 | range(attributes, (k, v) => {
76 | const newElement = document.createElement('meta')
77 | newElement.setAttribute('name', k)
78 | newElement.setAttribute('content', v)
79 | headElement.appendChild(newElement)
80 | })
81 | }
82 |
83 | const updateLink = (links) => {
84 | const headElement = document.head || document.querySelector('head')
85 | const oldLinks = headElement.getElementsByTagName('link')
86 | range(links, (i, link) => {
87 | const newElement = document.createElement('link')
88 | range(link, (k, v) => {
89 | newElement.setAttribute(k, v)
90 | })
91 | range(oldLinks, (index) => {
92 | if (oldLinks[index].isEqualNode(newElement)) {
93 | headElement.removeChild(oldLinks[index])
94 | }
95 | })
96 | headElement.appendChild(newElement)
97 | })
98 | }
99 |
100 | const updateScript = (scripts) => {
101 | const headElement = document.head || document.querySelector('head')
102 | const oldScripts = headElement.getElementsByTagName('script')
103 | range(scripts, (i, script) => {
104 | const newElement = document.createElement('script')
105 | range(script, (k, v) => {
106 | newElement.setAttribute(k, v)
107 | })
108 | range(oldScripts, (index) => {
109 | if (oldScripts[index].isEqualNode(newElement)) {
110 | headElement.removeChild(oldScripts[index])
111 | }
112 | })
113 | headElement.appendChild(newElement)
114 | })
115 | }
116 |
117 | const flush = () => {
118 | const htmlTags = document.getElementsByTagName('html')
119 | if (htmlTags.length > 0) {
120 | const bodies = htmlTags[0].getElementsByTagName('body')
121 | range(bodies, (i, body) => {
122 | if (i + 1 < bodies.length && body.childElementCount === 0) {
123 | htmlTags[0].removeChild(body)
124 | }
125 | })
126 | }
127 | }
128 |
129 | const doRender = (callback) => {
130 | callback.call()
131 | const ua = navigator.userAgent.toLowerCase()
132 | if (ua.indexOf('iphone') > -1 && ua.indexOf('micromessenger') > -1) {
133 | setTimeout(() => {
134 | callback.call()
135 | const iframe = document.createElement('iframe')
136 | iframe.style.visibility = 'hidden'
137 | iframe.style.width = '1px'
138 | iframe.style.height = '1px'
139 | iframe.src = '/favicon.ico'
140 | iframe.onload = () => {
141 | setTimeout(() => {
142 | document.body.removeChild(iframe)
143 | }, 0)
144 | }
145 | document.body.appendChild(iframe)
146 | }, 0)
147 | }
148 | }
149 |
150 | export default {
151 | props: {
152 | htmlAttributes: {
153 | type: Object,
154 | },
155 | title: {
156 | type: String,
157 | },
158 | base: {
159 | type: Object,
160 | },
161 | meta: {
162 | type: Object,
163 | },
164 | links: {
165 | type: Array,
166 | },
167 | scripts: {
168 | type: Array,
169 | },
170 | },
171 | data: () => ({
172 | head: document.head.outerHTML,
173 | }),
174 | ready() {
175 | doRender(() => {
176 | if (this.htmlAttributes) updateHtmlAttributes(this.htmlAttributes)
177 | if (this.title) document.title = this.title
178 | if (this.base) updateBase(this.base)
179 | if (this.meta) updateMeta(this.meta)
180 | if (this.links) updateLink(this.links)
181 | if (this.scripts) updateScript(this.scripts)
182 | flush()
183 | })
184 | },
185 | beforeDestroy() {
186 | doRender(() => {
187 | document.head.outerHTML = this.head
188 | flush()
189 | })
190 | },
191 | }
192 |
--------------------------------------------------------------------------------
/dist/vue-helmet.common.js:
--------------------------------------------------------------------------------
1 | /**
2 | * vue-helmet v1.1.5
3 | * https://github.com/miaolz123/vue-helmet
4 | * MIT License
5 | */
6 |
7 | (function webpackUniversalModuleDefinition(root, factory) {
8 | if(typeof exports === 'object' && typeof module === 'object')
9 | module.exports = factory(require("babel-runtime/core-js/object/keys"), require("babel-runtime/helpers/typeof"));
10 | else if(typeof define === 'function' && define.amd)
11 | define(["babel-runtime/core-js/object/keys", "babel-runtime/helpers/typeof"], factory);
12 | else if(typeof exports === 'object')
13 | exports["VueHelmet"] = factory(require("babel-runtime/core-js/object/keys"), require("babel-runtime/helpers/typeof"));
14 | else
15 | root["VueHelmet"] = factory(root["babel-runtime/core-js/object/keys"], root["babel-runtime/helpers/typeof"]);
16 | })(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__) {
17 | return /******/ (function(modules) { // webpackBootstrap
18 | /******/ // The module cache
19 | /******/ var installedModules = {};
20 |
21 | /******/ // The require function
22 | /******/ function __webpack_require__(moduleId) {
23 |
24 | /******/ // Check if module is in cache
25 | /******/ if(installedModules[moduleId])
26 | /******/ return installedModules[moduleId].exports;
27 |
28 | /******/ // Create a new module (and put it into the cache)
29 | /******/ var module = installedModules[moduleId] = {
30 | /******/ exports: {},
31 | /******/ id: moduleId,
32 | /******/ loaded: false
33 | /******/ };
34 |
35 | /******/ // Execute the module function
36 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
37 |
38 | /******/ // Flag the module as loaded
39 | /******/ module.loaded = true;
40 |
41 | /******/ // Return the exports of the module
42 | /******/ return module.exports;
43 | /******/ }
44 |
45 |
46 | /******/ // expose the modules object (__webpack_modules__)
47 | /******/ __webpack_require__.m = modules;
48 |
49 | /******/ // expose the module cache
50 | /******/ __webpack_require__.c = installedModules;
51 |
52 | /******/ // __webpack_public_path__
53 | /******/ __webpack_require__.p = "";
54 |
55 | /******/ // Load entry module and return exports
56 | /******/ return __webpack_require__(0);
57 | /******/ })
58 | /************************************************************************/
59 | /******/ ([
60 | /* 0 */
61 | /***/ function(module, exports, __webpack_require__) {
62 |
63 | 'use strict';
64 |
65 | Object.defineProperty(exports, "__esModule", {
66 | value: true
67 | });
68 |
69 | var _keys = __webpack_require__(1);
70 |
71 | var _keys2 = _interopRequireDefault(_keys);
72 |
73 | var _typeof2 = __webpack_require__(2);
74 |
75 | var _typeof3 = _interopRequireDefault(_typeof2);
76 |
77 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
78 |
79 | var isArrayLike = function isArrayLike(obj) {
80 | var jtype = function jtype(obj) {
81 | var class2type = {};
82 | var toString = class2type.toString;
83 | if (obj == null) {
84 | return obj + '';
85 | }
86 | return (typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) === 'object' || typeof obj === 'function' ? class2type[toString.call(obj)] || 'object' : typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj);
87 | };
88 | var isWindow = function isWindow(obj) {
89 | return obj != null && obj === obj.window;
90 | };
91 | var length = !!obj && 'length' in obj && obj.length;
92 | var type = jtype(obj);
93 | if (type === 'function' || isWindow(obj)) {
94 | return false;
95 | }
96 | return type === 'array' || length === 0 || typeof length === 'number' && length > 0 && length - 1 in obj;
97 | };
98 |
99 | var range = function range(obj, callback) {
100 | var length = 0;
101 | var i = 0;
102 | if (isArrayLike(obj)) {
103 | length = obj.length;
104 | for (; i < length; i++) {
105 | if (callback.call(obj[i], i, obj[i]) === false) {
106 | break;
107 | }
108 | }
109 | } else {
110 | for (i in obj) {
111 | if (callback.call(obj[i], i, obj[i]) === false) {
112 | break;
113 | }
114 | }
115 | }
116 | return obj;
117 | };
118 |
119 | var updateHtmlAttributes = function updateHtmlAttributes(attributes) {
120 | var htmlTags = document.getElementsByTagName('html');
121 | if (htmlTags.length > 0) {
122 | range(attributes, function (k, v) {
123 | htmlTags[0].setAttribute(k, v);
124 | });
125 | }
126 | };
127 |
128 | var updateBase = function updateBase(attributes) {
129 | var headElement = document.head || document.querySelector('head');
130 | var oldBases = headElement.getElementsByTagName('base');
131 | var newBase = document.createElement('base');
132 | range(oldBases, function () {
133 | headElement.removeChild(oldBases[0]);
134 | });
135 | range(attributes, function (k, v) {
136 | newBase.setAttribute(k, v);
137 | });
138 | headElement.appendChild(newBase);
139 | };
140 |
141 | var updateMeta = function updateMeta(attributes) {
142 | var headElement = document.head || document.querySelector('head');
143 | var oldMetas = headElement.getElementsByTagName('meta');
144 | var attributeKeys = (0, _keys2.default)(attributes);
145 | var i = 0;
146 | range(oldMetas, function () {
147 | if (attributeKeys.indexOf(oldMetas[i].name) > -1) {
148 | headElement.removeChild(oldMetas[i]);
149 | } else i++;
150 | });
151 | range(attributes, function (k, v) {
152 | var newElement = document.createElement('meta');
153 | newElement.setAttribute('name', k);
154 | newElement.setAttribute('content', v);
155 | headElement.appendChild(newElement);
156 | });
157 | };
158 |
159 | var updateLink = function updateLink(links) {
160 | var headElement = document.head || document.querySelector('head');
161 | var oldLinks = headElement.getElementsByTagName('link');
162 | range(links, function (i, link) {
163 | var newElement = document.createElement('link');
164 | range(link, function (k, v) {
165 | newElement.setAttribute(k, v);
166 | });
167 | range(oldLinks, function (index) {
168 | if (oldLinks[index].isEqualNode(newElement)) {
169 | headElement.removeChild(oldLinks[index]);
170 | }
171 | });
172 | headElement.appendChild(newElement);
173 | });
174 | };
175 |
176 | var updateScript = function updateScript(scripts) {
177 | var headElement = document.head || document.querySelector('head');
178 | var oldScripts = headElement.getElementsByTagName('script');
179 | range(scripts, function (i, script) {
180 | var newElement = document.createElement('script');
181 | range(script, function (k, v) {
182 | newElement.setAttribute(k, v);
183 | });
184 | range(oldScripts, function (index) {
185 | if (oldScripts[index].isEqualNode(newElement)) {
186 | headElement.removeChild(oldScripts[index]);
187 | }
188 | });
189 | headElement.appendChild(newElement);
190 | });
191 | };
192 |
193 | var flush = function flush() {
194 | var htmlTags = document.getElementsByTagName('html');
195 | if (htmlTags.length > 0) {
196 | (function () {
197 | var bodies = htmlTags[0].getElementsByTagName('body');
198 | range(bodies, function (i, body) {
199 | if (i + 1 < bodies.length && body.childElementCount === 0) {
200 | htmlTags[0].removeChild(body);
201 | }
202 | });
203 | })();
204 | }
205 | };
206 |
207 | var doRender = function doRender(callback) {
208 | callback.call();
209 | var ua = navigator.userAgent.toLowerCase();
210 | if (ua.indexOf('iphone') > -1 && ua.indexOf('micromessenger') > -1) {
211 | setTimeout(function () {
212 | callback.call();
213 | var iframe = document.createElement('iframe');
214 | iframe.style.visibility = 'hidden';
215 | iframe.style.width = '1px';
216 | iframe.style.height = '1px';
217 | iframe.src = '/favicon.ico';
218 | iframe.onload = function () {
219 | setTimeout(function () {
220 | document.body.removeChild(iframe);
221 | }, 0);
222 | };
223 | document.body.appendChild(iframe);
224 | }, 0);
225 | }
226 | };
227 |
228 | exports.default = {
229 | props: {
230 | htmlAttributes: {
231 | type: Object
232 | },
233 | title: {
234 | type: String
235 | },
236 | base: {
237 | type: Object
238 | },
239 | meta: {
240 | type: Object
241 | },
242 | links: {
243 | type: Array
244 | },
245 | scripts: {
246 | type: Array
247 | }
248 | },
249 | data: function data() {
250 | return {
251 | head: document.head.outerHTML
252 | };
253 | },
254 | ready: function ready() {
255 | var _this = this;
256 |
257 | doRender(function () {
258 | if (_this.htmlAttributes) updateHtmlAttributes(_this.htmlAttributes);
259 | if (_this.title) document.title = _this.title;
260 | if (_this.base) updateBase(_this.base);
261 | if (_this.meta) updateMeta(_this.meta);
262 | if (_this.links) updateLink(_this.links);
263 | if (_this.scripts) updateScript(_this.scripts);
264 | flush();
265 | });
266 | },
267 | beforeDestroy: function beforeDestroy() {
268 | var _this2 = this;
269 |
270 | doRender(function () {
271 | document.head.outerHTML = _this2.head;
272 | flush();
273 | });
274 | }
275 | };
276 |
277 | /***/ },
278 | /* 1 */
279 | /***/ function(module, exports) {
280 |
281 | module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
282 |
283 | /***/ },
284 | /* 2 */
285 | /***/ function(module, exports) {
286 |
287 | module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
288 |
289 | /***/ }
290 | /******/ ])
291 | });
292 | ;
--------------------------------------------------------------------------------
/dist/vue-helmet.min.js:
--------------------------------------------------------------------------------
1 | !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VueHelmet=n():t.VueHelmet=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){t.component("vue-helmet",u["default"])}Object.defineProperty(n,"__esModule",{value:!0}),n.install=o;var i=e(1),u=r(i)},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(2),i=r(o),u=e(37),c=r(u),f=function(t){var n=function(t){var n={},e=n.toString;return null==t?t+"":"object"===("undefined"==typeof t?"undefined":(0,c["default"])(t))||"function"==typeof t?n[e.call(t)]||"object":"undefined"==typeof t?"undefined":(0,c["default"])(t)},e=function(t){return null!=t&&t===t.window},r=!!t&&"length"in t&&t.length,o=n(t);return"function"!==o&&!e(t)&&("array"===o||0===r||"number"==typeof r&&r>0&&r-1 in t)},a=function(t,n){var e=0,r=0;if(f(t))for(e=t.length;r0&&a(t,function(t,e){n[0].setAttribute(t,e)})},l=function(t){var n=document.head||document.querySelector("head"),e=n.getElementsByTagName("base"),r=document.createElement("base");a(e,function(){n.removeChild(e[0])}),a(t,function(t,n){r.setAttribute(t,n)}),n.appendChild(r)},p=function(t){var n=document.head||document.querySelector("head"),e=n.getElementsByTagName("meta"),r=(0,i["default"])(t),o=0;a(e,function(){r.indexOf(e[o].name)>-1?n.removeChild(e[o]):o++}),a(t,function(t,e){var r=document.createElement("meta");r.setAttribute("name",t),r.setAttribute("content",e),n.appendChild(r)})},d=function(t){var n=document.head||document.querySelector("head"),e=n.getElementsByTagName("link");a(t,function(t,r){var o=document.createElement("link");a(r,function(t,n){o.setAttribute(t,n)}),a(e,function(t){e[t].isEqualNode(o)&&n.removeChild(e[t])}),n.appendChild(o)})},y=function(t){var n=document.head||document.querySelector("head"),e=n.getElementsByTagName("script");a(t,function(t,r){var o=document.createElement("script");a(r,function(t,n){o.setAttribute(t,n)}),a(e,function(t){e[t].isEqualNode(o)&&n.removeChild(e[t])}),n.appendChild(o)})},v=function(){var t=document.getElementsByTagName("html");t.length>0&&!function(){var n=t[0].getElementsByTagName("body");a(n,function(e,r){e+1-1&&n.indexOf("micromessenger")>-1&&setTimeout(function(){t.call();var n=document.createElement("iframe");n.style.visibility="hidden",n.style.width="1px",n.style.height="1px",n.src="/favicon.ico",n.onload=function(){setTimeout(function(){document.body.removeChild(n)},0)},document.body.appendChild(n)},0)};n["default"]={props:{htmlAttributes:{type:Object},title:{type:String},base:{type:Object},meta:{type:Object},links:{type:Array},scripts:{type:Array}},data:function(){return{head:document.head.outerHTML}},ready:function(){var t=this;h(function(){t.htmlAttributes&&s(t.htmlAttributes),t.title&&(document.title=t.title),t.base&&l(t.base),t.meta&&p(t.meta),t.links&&d(t.links),t.scripts&&y(t.scripts),v()})},beforeDestroy:function(){var t=this;h(function(){document.head.outerHTML=t.head,v()})}}},function(t,n,e){t.exports={"default":e(3),__esModule:!0}},function(t,n,e){e(4),t.exports=e(24).Object.keys},function(t,n,e){var r=e(5),o=e(7);e(22)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(6);t.exports=function(t){return Object(r(t))}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(8),o=e(21);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(9),o=e(10),i=e(13)(!1),u=e(17)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,a=[];for(e in c)e!=u&&r(c,e)&&a.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~i(a,e)||a.push(e));return a}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(11),o=e(6);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(12);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(10),o=e(14),i=e(16);t.exports=function(t){return function(n,e,u){var c,f=r(n),a=o(f.length),s=i(u,a);if(t&&e!=e){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(15),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(15),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(18)("keys"),o=e(20);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(19),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(23),o=e(24),i=e(33);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(19),o=e(24),i=e(25),u=e(27),c="prototype",f=function(t,n,e){var a,s,l,p=t&f.F,d=t&f.G,y=t&f.S,v=t&f.P,h=t&f.B,m=t&f.W,b=d?o:o[n]||(o[n]={}),g=b[c],x=d?r:y?r[n]:(r[n]||{})[c];d&&(e=n);for(a in e)s=!p&&x&&void 0!==x[a],s&&a in b||(l=s?x[a]:e[a],b[a]=d&&"function"!=typeof x[a]?e[a]:h&&s?i(l,r):m&&x[a]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[c]=t[c],n}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((b.virtual||(b.virtual={}))[a]=l,t&f.R&&g&&!g[a]&&u(g,a,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(26);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(28),o=e(36);t.exports=e(32)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(29),o=e(31),i=e(35),u=Object.defineProperty;n.f=e(32)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(30);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(32)&&!e(33)(function(){return 7!=Object.defineProperty(e(34)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){t.exports=!e(33)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){var r=e(30),o=e(19).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(30);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(38),i=r(o),u=e(58),c=r(u),f="function"==typeof c["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]?"symbol":typeof t};n["default"]="function"==typeof c["default"]&&"symbol"===f(i["default"])?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,n,e){t.exports={"default":e(39),__esModule:!0}},function(t,n,e){e(40),e(53),t.exports=e(57).f("iterator")},function(t,n,e){"use strict";var r=e(41)(!0);e(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(15),o=e(6);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),f=r(e),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){"use strict";var r=e(43),o=e(23),i=e(44),u=e(27),c=e(9),f=e(45),a=e(46),s=e(50),l=e(52),p=e(51)("iterator"),d=!([].keys&&"next"in[].keys()),y="@@iterator",v="keys",h="values",m=function(){return this};t.exports=function(t,n,e,b,g,x,O){a(e,n,b);var S,w,_,j=function(t){if(!d&&t in M)return M[t];switch(t){case v:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},E=n+" Iterator",P=g==h,A=!1,M=t.prototype,T=M[p]||M[y]||g&&M[g],k=T||j(g),N=g?P?j("entries"):k:void 0,C="Array"==n?M.entries||T:T;if(C&&(_=l(C.call(new t)),_!==Object.prototype&&(s(_,E,!0),r||c(_,p)||u(_,p,m))),P&&T&&T.name!==h&&(A=!0,k=function(){return T.call(this)}),r&&!O||!d&&!A&&M[p]||u(M,p,k),f[n]=k,f[E]=m,g)if(S={values:P?k:j(h),keys:x?k:j(v),entries:N},O)for(w in S)w in M||i(M,w,S[w]);else o(o.P+o.F*(d||A),n,S);return S}},function(t,n){t.exports=!0},function(t,n,e){t.exports=e(27)},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(47),o=e(36),i=e(50),u={};e(27)(u,e(51)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(29),o=e(48),i=e(21),u=e(17)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=e(34)("iframe"),r=i.length,o=">";for(n.style.display="none",e(49).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){t.exports=e(19).document&&document.documentElement},function(t,n,e){var r=e(28).f,o=e(9),i=e(51)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(18)("wks"),o=e(20),i=e(19).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,n,e){var r=e(9),o=e(5),i=e(17)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){e(54);for(var r=e(19),o=e(27),i=e(45),u=e(51)("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],f=0;f<5;f++){var a=c[f],s=r[a],l=s&&s.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,n,e){"use strict";var r=e(55),o=e(56),i=e(45),u=e(10);t.exports=e(42)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){n.f=e(51)},function(t,n,e){t.exports={"default":e(59),__esModule:!0}},function(t,n,e){e(60),e(71),e(72),e(73),t.exports=e(24).Symbol},function(t,n,e){"use strict";var r=e(19),o=e(9),i=e(32),u=e(23),c=e(44),f=e(61).KEY,a=e(33),s=e(18),l=e(50),p=e(20),d=e(51),y=e(57),v=e(62),h=e(63),m=e(64),b=e(67),g=e(29),x=e(10),O=e(35),S=e(36),w=e(47),_=e(68),j=e(70),E=e(28),P=e(7),A=j.f,M=E.f,T=_.f,k=r.Symbol,N=r.JSON,C=N&&N.stringify,F="prototype",I=d("_hidden"),B=d("toPrimitive"),L={}.propertyIsEnumerable,q=s("symbol-registry"),D=s("symbols"),R=s("op-symbols"),W=Object[F],H="function"==typeof k,J=r.QObject,G=!J||!J[F]||!J[F].findChild,K=i&&a(function(){return 7!=w(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=A(W,n);r&&delete W[n],M(t,n,e),r&&t!==W&&M(W,n,r)}:M,z=function(t){var n=D[t]=w(k[F]);return n._k=t,n},V=H&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},Y=function(t,n,e){return t===W&&Y(R,n,e),g(t),n=O(n,!0),g(e),o(D,n)?(e.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),e=w(e,{enumerable:S(0,!1)})):(o(t,I)||M(t,I,S(1,{})),t[I][n]=!0),K(t,n,e)):M(t,n,e)},Q=function(t,n){g(t);for(var e,r=m(n=x(n)),o=0,i=r.length;i>o;)Y(t,e=r[o++],n[e]);return t},U=function(t,n){return void 0===n?w(t):Q(w(t),n)},X=function(t){var n=L.call(this,t=O(t,!0));return!(this===W&&o(D,t)&&!o(R,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,I)&&this[I][t])||n)},Z=function(t,n){if(t=x(t),n=O(n,!0),t!==W||!o(D,n)||o(R,n)){var e=A(t,n);return!e||!o(D,n)||o(t,I)&&t[I][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=T(x(t)),r=[],i=0;e.length>i;)o(D,n=e[i++])||n==I||n==f||r.push(n);return r},tt=function(t){for(var n,e=t===W,r=T(e?R:x(t)),i=[],u=0;r.length>u;)!o(D,n=r[u++])||e&&!o(W,n)||i.push(D[n]);return i};H||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===W&&n.call(R,e),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),K(this,t,S(1,e))};return i&&G&&K(W,t,{configurable:!0,set:n}),z(t)},c(k[F],"toString",function(){return this._k}),j.f=Z,E.f=Y,e(69).f=_.f=$,e(66).f=X,e(65).f=tt,i&&!e(43)&&c(W,"propertyIsEnumerable",X,!0),y.f=function(t){return z(d(t))}),u(u.G+u.W+u.F*!H,{Symbol:k});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=P(d.store),et=0;nt.length>et;)v(nt[et++]);u(u.S+u.F*!H,"Symbol",{"for":function(t){return o(q,t+="")?q[t]:q[t]=k(t)},keyFor:function(t){if(V(t))return h(q,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!H,"Object",{create:U,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),N&&u(u.S+u.F*(!H||a(function(){var t=k();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&b(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!V(n))return n}),r[1]=n,C.apply(N,r)}}}),k[F][B]||e(27)(k[F],B,k[F].valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(20)("meta"),o=e(30),i=e(9),u=e(28).f,c=0,f=Object.isExtensible||function(){return!0},a=!e(33)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[r].w},d=function(t){return a&&y.NEED&&f(t)&&!i(t,r)&&s(t),t},y=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,n,e){var r=e(19),o=e(24),i=e(43),u=e(57),c=e(28).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(7),o=e(10);t.exports=function(t,n){for(var e,i=o(t),u=r(i),c=u.length,f=0;c>f;)if(i[e=u[f++]]===n)return e}},function(t,n,e){var r=e(7),o=e(65),i=e(66);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(12);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(10),o=e(69).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n,e){var r=e(8),o=e(21).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(66),o=e(36),i=e(10),u=e(35),c=e(9),f=e(31),a=Object.getOwnPropertyDescriptor;n.f=e(32)?a:function(t,n){if(t=i(t),n=u(n,!0),f)try{return a(t,n)}catch(e){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){},function(t,n,e){e(62)("asyncIterator")},function(t,n,e){e(62)("observable")}])});
--------------------------------------------------------------------------------
/dist/vue-helmet.js:
--------------------------------------------------------------------------------
1 | /**
2 | * vue-helmet v1.1.5
3 | * https://github.com/miaolz123/vue-helmet
4 | * MIT License
5 | */
6 |
7 | (function webpackUniversalModuleDefinition(root, factory) {
8 | if(typeof exports === 'object' && typeof module === 'object')
9 | module.exports = factory();
10 | else if(typeof define === 'function' && define.amd)
11 | define([], factory);
12 | else if(typeof exports === 'object')
13 | exports["VueHelmet"] = factory();
14 | else
15 | root["VueHelmet"] = factory();
16 | })(this, function() {
17 | return /******/ (function(modules) { // webpackBootstrap
18 | /******/ // The module cache
19 | /******/ var installedModules = {};
20 |
21 | /******/ // The require function
22 | /******/ function __webpack_require__(moduleId) {
23 |
24 | /******/ // Check if module is in cache
25 | /******/ if(installedModules[moduleId])
26 | /******/ return installedModules[moduleId].exports;
27 |
28 | /******/ // Create a new module (and put it into the cache)
29 | /******/ var module = installedModules[moduleId] = {
30 | /******/ exports: {},
31 | /******/ id: moduleId,
32 | /******/ loaded: false
33 | /******/ };
34 |
35 | /******/ // Execute the module function
36 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
37 |
38 | /******/ // Flag the module as loaded
39 | /******/ module.loaded = true;
40 |
41 | /******/ // Return the exports of the module
42 | /******/ return module.exports;
43 | /******/ }
44 |
45 |
46 | /******/ // expose the modules object (__webpack_modules__)
47 | /******/ __webpack_require__.m = modules;
48 |
49 | /******/ // expose the module cache
50 | /******/ __webpack_require__.c = installedModules;
51 |
52 | /******/ // __webpack_public_path__
53 | /******/ __webpack_require__.p = "";
54 |
55 | /******/ // Load entry module and return exports
56 | /******/ return __webpack_require__(0);
57 | /******/ })
58 | /************************************************************************/
59 | /******/ ([
60 | /* 0 */
61 | /***/ function(module, exports, __webpack_require__) {
62 |
63 | 'use strict';
64 |
65 | Object.defineProperty(exports, "__esModule", {
66 | value: true
67 | });
68 | exports.install = install;
69 |
70 | var _VueHelmet = __webpack_require__(1);
71 |
72 | var _VueHelmet2 = _interopRequireDefault(_VueHelmet);
73 |
74 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
75 |
76 | function install(Vue) {
77 | Vue.component('vue-helmet', _VueHelmet2.default);
78 | }
79 |
80 | /***/ },
81 | /* 1 */
82 | /***/ function(module, exports, __webpack_require__) {
83 |
84 | 'use strict';
85 |
86 | Object.defineProperty(exports, "__esModule", {
87 | value: true
88 | });
89 |
90 | var _keys = __webpack_require__(2);
91 |
92 | var _keys2 = _interopRequireDefault(_keys);
93 |
94 | var _typeof2 = __webpack_require__(37);
95 |
96 | var _typeof3 = _interopRequireDefault(_typeof2);
97 |
98 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
99 |
100 | var isArrayLike = function isArrayLike(obj) {
101 | var jtype = function jtype(obj) {
102 | var class2type = {};
103 | var toString = class2type.toString;
104 | if (obj == null) {
105 | return obj + '';
106 | }
107 | return (typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) === 'object' || typeof obj === 'function' ? class2type[toString.call(obj)] || 'object' : typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj);
108 | };
109 | var isWindow = function isWindow(obj) {
110 | return obj != null && obj === obj.window;
111 | };
112 | var length = !!obj && 'length' in obj && obj.length;
113 | var type = jtype(obj);
114 | if (type === 'function' || isWindow(obj)) {
115 | return false;
116 | }
117 | return type === 'array' || length === 0 || typeof length === 'number' && length > 0 && length - 1 in obj;
118 | };
119 |
120 | var range = function range(obj, callback) {
121 | var length = 0;
122 | var i = 0;
123 | if (isArrayLike(obj)) {
124 | length = obj.length;
125 | for (; i < length; i++) {
126 | if (callback.call(obj[i], i, obj[i]) === false) {
127 | break;
128 | }
129 | }
130 | } else {
131 | for (i in obj) {
132 | if (callback.call(obj[i], i, obj[i]) === false) {
133 | break;
134 | }
135 | }
136 | }
137 | return obj;
138 | };
139 |
140 | var updateHtmlAttributes = function updateHtmlAttributes(attributes) {
141 | var htmlTags = document.getElementsByTagName('html');
142 | if (htmlTags.length > 0) {
143 | range(attributes, function (k, v) {
144 | htmlTags[0].setAttribute(k, v);
145 | });
146 | }
147 | };
148 |
149 | var updateBase = function updateBase(attributes) {
150 | var headElement = document.head || document.querySelector('head');
151 | var oldBases = headElement.getElementsByTagName('base');
152 | var newBase = document.createElement('base');
153 | range(oldBases, function () {
154 | headElement.removeChild(oldBases[0]);
155 | });
156 | range(attributes, function (k, v) {
157 | newBase.setAttribute(k, v);
158 | });
159 | headElement.appendChild(newBase);
160 | };
161 |
162 | var updateMeta = function updateMeta(attributes) {
163 | var headElement = document.head || document.querySelector('head');
164 | var oldMetas = headElement.getElementsByTagName('meta');
165 | var attributeKeys = (0, _keys2.default)(attributes);
166 | var i = 0;
167 | range(oldMetas, function () {
168 | if (attributeKeys.indexOf(oldMetas[i].name) > -1) {
169 | headElement.removeChild(oldMetas[i]);
170 | } else i++;
171 | });
172 | range(attributes, function (k, v) {
173 | var newElement = document.createElement('meta');
174 | newElement.setAttribute('name', k);
175 | newElement.setAttribute('content', v);
176 | headElement.appendChild(newElement);
177 | });
178 | };
179 |
180 | var updateLink = function updateLink(links) {
181 | var headElement = document.head || document.querySelector('head');
182 | var oldLinks = headElement.getElementsByTagName('link');
183 | range(links, function (i, link) {
184 | var newElement = document.createElement('link');
185 | range(link, function (k, v) {
186 | newElement.setAttribute(k, v);
187 | });
188 | range(oldLinks, function (index) {
189 | if (oldLinks[index].isEqualNode(newElement)) {
190 | headElement.removeChild(oldLinks[index]);
191 | }
192 | });
193 | headElement.appendChild(newElement);
194 | });
195 | };
196 |
197 | var updateScript = function updateScript(scripts) {
198 | var headElement = document.head || document.querySelector('head');
199 | var oldScripts = headElement.getElementsByTagName('script');
200 | range(scripts, function (i, script) {
201 | var newElement = document.createElement('script');
202 | range(script, function (k, v) {
203 | newElement.setAttribute(k, v);
204 | });
205 | range(oldScripts, function (index) {
206 | if (oldScripts[index].isEqualNode(newElement)) {
207 | headElement.removeChild(oldScripts[index]);
208 | }
209 | });
210 | headElement.appendChild(newElement);
211 | });
212 | };
213 |
214 | var flush = function flush() {
215 | var htmlTags = document.getElementsByTagName('html');
216 | if (htmlTags.length > 0) {
217 | (function () {
218 | var bodies = htmlTags[0].getElementsByTagName('body');
219 | range(bodies, function (i, body) {
220 | if (i + 1 < bodies.length && body.childElementCount === 0) {
221 | htmlTags[0].removeChild(body);
222 | }
223 | });
224 | })();
225 | }
226 | };
227 |
228 | var doRender = function doRender(callback) {
229 | callback.call();
230 | var ua = navigator.userAgent.toLowerCase();
231 | if (ua.indexOf('iphone') > -1 && ua.indexOf('micromessenger') > -1) {
232 | setTimeout(function () {
233 | callback.call();
234 | var iframe = document.createElement('iframe');
235 | iframe.style.visibility = 'hidden';
236 | iframe.style.width = '1px';
237 | iframe.style.height = '1px';
238 | iframe.src = '/favicon.ico';
239 | iframe.onload = function () {
240 | setTimeout(function () {
241 | document.body.removeChild(iframe);
242 | }, 0);
243 | };
244 | document.body.appendChild(iframe);
245 | }, 0);
246 | }
247 | };
248 |
249 | exports.default = {
250 | props: {
251 | htmlAttributes: {
252 | type: Object
253 | },
254 | title: {
255 | type: String
256 | },
257 | base: {
258 | type: Object
259 | },
260 | meta: {
261 | type: Object
262 | },
263 | links: {
264 | type: Array
265 | },
266 | scripts: {
267 | type: Array
268 | }
269 | },
270 | data: function data() {
271 | return {
272 | head: document.head.outerHTML
273 | };
274 | },
275 | ready: function ready() {
276 | var _this = this;
277 |
278 | doRender(function () {
279 | if (_this.htmlAttributes) updateHtmlAttributes(_this.htmlAttributes);
280 | if (_this.title) document.title = _this.title;
281 | if (_this.base) updateBase(_this.base);
282 | if (_this.meta) updateMeta(_this.meta);
283 | if (_this.links) updateLink(_this.links);
284 | if (_this.scripts) updateScript(_this.scripts);
285 | flush();
286 | });
287 | },
288 | beforeDestroy: function beforeDestroy() {
289 | var _this2 = this;
290 |
291 | doRender(function () {
292 | document.head.outerHTML = _this2.head;
293 | flush();
294 | });
295 | }
296 | };
297 |
298 | /***/ },
299 | /* 2 */
300 | /***/ function(module, exports, __webpack_require__) {
301 |
302 | module.exports = { "default": __webpack_require__(3), __esModule: true };
303 |
304 | /***/ },
305 | /* 3 */
306 | /***/ function(module, exports, __webpack_require__) {
307 |
308 | __webpack_require__(4);
309 | module.exports = __webpack_require__(24).Object.keys;
310 |
311 | /***/ },
312 | /* 4 */
313 | /***/ function(module, exports, __webpack_require__) {
314 |
315 | // 19.1.2.14 Object.keys(O)
316 | var toObject = __webpack_require__(5)
317 | , $keys = __webpack_require__(7);
318 |
319 | __webpack_require__(22)('keys', function(){
320 | return function keys(it){
321 | return $keys(toObject(it));
322 | };
323 | });
324 |
325 | /***/ },
326 | /* 5 */
327 | /***/ function(module, exports, __webpack_require__) {
328 |
329 | // 7.1.13 ToObject(argument)
330 | var defined = __webpack_require__(6);
331 | module.exports = function(it){
332 | return Object(defined(it));
333 | };
334 |
335 | /***/ },
336 | /* 6 */
337 | /***/ function(module, exports) {
338 |
339 | // 7.2.1 RequireObjectCoercible(argument)
340 | module.exports = function(it){
341 | if(it == undefined)throw TypeError("Can't call method on " + it);
342 | return it;
343 | };
344 |
345 | /***/ },
346 | /* 7 */
347 | /***/ function(module, exports, __webpack_require__) {
348 |
349 | // 19.1.2.14 / 15.2.3.14 Object.keys(O)
350 | var $keys = __webpack_require__(8)
351 | , enumBugKeys = __webpack_require__(21);
352 |
353 | module.exports = Object.keys || function keys(O){
354 | return $keys(O, enumBugKeys);
355 | };
356 |
357 | /***/ },
358 | /* 8 */
359 | /***/ function(module, exports, __webpack_require__) {
360 |
361 | var has = __webpack_require__(9)
362 | , toIObject = __webpack_require__(10)
363 | , arrayIndexOf = __webpack_require__(13)(false)
364 | , IE_PROTO = __webpack_require__(17)('IE_PROTO');
365 |
366 | module.exports = function(object, names){
367 | var O = toIObject(object)
368 | , i = 0
369 | , result = []
370 | , key;
371 | for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
372 | // Don't enum bug & hidden keys
373 | while(names.length > i)if(has(O, key = names[i++])){
374 | ~arrayIndexOf(result, key) || result.push(key);
375 | }
376 | return result;
377 | };
378 |
379 | /***/ },
380 | /* 9 */
381 | /***/ function(module, exports) {
382 |
383 | var hasOwnProperty = {}.hasOwnProperty;
384 | module.exports = function(it, key){
385 | return hasOwnProperty.call(it, key);
386 | };
387 |
388 | /***/ },
389 | /* 10 */
390 | /***/ function(module, exports, __webpack_require__) {
391 |
392 | // to indexed object, toObject with fallback for non-array-like ES3 strings
393 | var IObject = __webpack_require__(11)
394 | , defined = __webpack_require__(6);
395 | module.exports = function(it){
396 | return IObject(defined(it));
397 | };
398 |
399 | /***/ },
400 | /* 11 */
401 | /***/ function(module, exports, __webpack_require__) {
402 |
403 | // fallback for non-array-like ES3 and non-enumerable old V8 strings
404 | var cof = __webpack_require__(12);
405 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
406 | return cof(it) == 'String' ? it.split('') : Object(it);
407 | };
408 |
409 | /***/ },
410 | /* 12 */
411 | /***/ function(module, exports) {
412 |
413 | var toString = {}.toString;
414 |
415 | module.exports = function(it){
416 | return toString.call(it).slice(8, -1);
417 | };
418 |
419 | /***/ },
420 | /* 13 */
421 | /***/ function(module, exports, __webpack_require__) {
422 |
423 | // false -> Array#indexOf
424 | // true -> Array#includes
425 | var toIObject = __webpack_require__(10)
426 | , toLength = __webpack_require__(14)
427 | , toIndex = __webpack_require__(16);
428 | module.exports = function(IS_INCLUDES){
429 | return function($this, el, fromIndex){
430 | var O = toIObject($this)
431 | , length = toLength(O.length)
432 | , index = toIndex(fromIndex, length)
433 | , value;
434 | // Array#includes uses SameValueZero equality algorithm
435 | if(IS_INCLUDES && el != el)while(length > index){
436 | value = O[index++];
437 | if(value != value)return true;
438 | // Array#toIndex ignores holes, Array#includes - not
439 | } else for(;length > index; index++)if(IS_INCLUDES || index in O){
440 | if(O[index] === el)return IS_INCLUDES || index || 0;
441 | } return !IS_INCLUDES && -1;
442 | };
443 | };
444 |
445 | /***/ },
446 | /* 14 */
447 | /***/ function(module, exports, __webpack_require__) {
448 |
449 | // 7.1.15 ToLength
450 | var toInteger = __webpack_require__(15)
451 | , min = Math.min;
452 | module.exports = function(it){
453 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
454 | };
455 |
456 | /***/ },
457 | /* 15 */
458 | /***/ function(module, exports) {
459 |
460 | // 7.1.4 ToInteger
461 | var ceil = Math.ceil
462 | , floor = Math.floor;
463 | module.exports = function(it){
464 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
465 | };
466 |
467 | /***/ },
468 | /* 16 */
469 | /***/ function(module, exports, __webpack_require__) {
470 |
471 | var toInteger = __webpack_require__(15)
472 | , max = Math.max
473 | , min = Math.min;
474 | module.exports = function(index, length){
475 | index = toInteger(index);
476 | return index < 0 ? max(index + length, 0) : min(index, length);
477 | };
478 |
479 | /***/ },
480 | /* 17 */
481 | /***/ function(module, exports, __webpack_require__) {
482 |
483 | var shared = __webpack_require__(18)('keys')
484 | , uid = __webpack_require__(20);
485 | module.exports = function(key){
486 | return shared[key] || (shared[key] = uid(key));
487 | };
488 |
489 | /***/ },
490 | /* 18 */
491 | /***/ function(module, exports, __webpack_require__) {
492 |
493 | var global = __webpack_require__(19)
494 | , SHARED = '__core-js_shared__'
495 | , store = global[SHARED] || (global[SHARED] = {});
496 | module.exports = function(key){
497 | return store[key] || (store[key] = {});
498 | };
499 |
500 | /***/ },
501 | /* 19 */
502 | /***/ function(module, exports) {
503 |
504 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
505 | var global = module.exports = typeof window != 'undefined' && window.Math == Math
506 | ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
507 | if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
508 |
509 | /***/ },
510 | /* 20 */
511 | /***/ function(module, exports) {
512 |
513 | var id = 0
514 | , px = Math.random();
515 | module.exports = function(key){
516 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
517 | };
518 |
519 | /***/ },
520 | /* 21 */
521 | /***/ function(module, exports) {
522 |
523 | // IE 8- don't enum bug keys
524 | module.exports = (
525 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
526 | ).split(',');
527 |
528 | /***/ },
529 | /* 22 */
530 | /***/ function(module, exports, __webpack_require__) {
531 |
532 | // most Object methods by ES6 should accept primitives
533 | var $export = __webpack_require__(23)
534 | , core = __webpack_require__(24)
535 | , fails = __webpack_require__(33);
536 | module.exports = function(KEY, exec){
537 | var fn = (core.Object || {})[KEY] || Object[KEY]
538 | , exp = {};
539 | exp[KEY] = exec(fn);
540 | $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
541 | };
542 |
543 | /***/ },
544 | /* 23 */
545 | /***/ function(module, exports, __webpack_require__) {
546 |
547 | var global = __webpack_require__(19)
548 | , core = __webpack_require__(24)
549 | , ctx = __webpack_require__(25)
550 | , hide = __webpack_require__(27)
551 | , PROTOTYPE = 'prototype';
552 |
553 | var $export = function(type, name, source){
554 | var IS_FORCED = type & $export.F
555 | , IS_GLOBAL = type & $export.G
556 | , IS_STATIC = type & $export.S
557 | , IS_PROTO = type & $export.P
558 | , IS_BIND = type & $export.B
559 | , IS_WRAP = type & $export.W
560 | , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
561 | , expProto = exports[PROTOTYPE]
562 | , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
563 | , key, own, out;
564 | if(IS_GLOBAL)source = name;
565 | for(key in source){
566 | // contains in native
567 | own = !IS_FORCED && target && target[key] !== undefined;
568 | if(own && key in exports)continue;
569 | // export native or passed
570 | out = own ? target[key] : source[key];
571 | // prevent global pollution for namespaces
572 | exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
573 | // bind timers to global for call from export context
574 | : IS_BIND && own ? ctx(out, global)
575 | // wrap global constructors for prevent change them in library
576 | : IS_WRAP && target[key] == out ? (function(C){
577 | var F = function(a, b, c){
578 | if(this instanceof C){
579 | switch(arguments.length){
580 | case 0: return new C;
581 | case 1: return new C(a);
582 | case 2: return new C(a, b);
583 | } return new C(a, b, c);
584 | } return C.apply(this, arguments);
585 | };
586 | F[PROTOTYPE] = C[PROTOTYPE];
587 | return F;
588 | // make static versions for prototype methods
589 | })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
590 | // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
591 | if(IS_PROTO){
592 | (exports.virtual || (exports.virtual = {}))[key] = out;
593 | // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
594 | if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out);
595 | }
596 | }
597 | };
598 | // type bitmap
599 | $export.F = 1; // forced
600 | $export.G = 2; // global
601 | $export.S = 4; // static
602 | $export.P = 8; // proto
603 | $export.B = 16; // bind
604 | $export.W = 32; // wrap
605 | $export.U = 64; // safe
606 | $export.R = 128; // real proto method for `library`
607 | module.exports = $export;
608 |
609 | /***/ },
610 | /* 24 */
611 | /***/ function(module, exports) {
612 |
613 | var core = module.exports = {version: '2.4.0'};
614 | if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
615 |
616 | /***/ },
617 | /* 25 */
618 | /***/ function(module, exports, __webpack_require__) {
619 |
620 | // optional / simple context binding
621 | var aFunction = __webpack_require__(26);
622 | module.exports = function(fn, that, length){
623 | aFunction(fn);
624 | if(that === undefined)return fn;
625 | switch(length){
626 | case 1: return function(a){
627 | return fn.call(that, a);
628 | };
629 | case 2: return function(a, b){
630 | return fn.call(that, a, b);
631 | };
632 | case 3: return function(a, b, c){
633 | return fn.call(that, a, b, c);
634 | };
635 | }
636 | return function(/* ...args */){
637 | return fn.apply(that, arguments);
638 | };
639 | };
640 |
641 | /***/ },
642 | /* 26 */
643 | /***/ function(module, exports) {
644 |
645 | module.exports = function(it){
646 | if(typeof it != 'function')throw TypeError(it + ' is not a function!');
647 | return it;
648 | };
649 |
650 | /***/ },
651 | /* 27 */
652 | /***/ function(module, exports, __webpack_require__) {
653 |
654 | var dP = __webpack_require__(28)
655 | , createDesc = __webpack_require__(36);
656 | module.exports = __webpack_require__(32) ? function(object, key, value){
657 | return dP.f(object, key, createDesc(1, value));
658 | } : function(object, key, value){
659 | object[key] = value;
660 | return object;
661 | };
662 |
663 | /***/ },
664 | /* 28 */
665 | /***/ function(module, exports, __webpack_require__) {
666 |
667 | var anObject = __webpack_require__(29)
668 | , IE8_DOM_DEFINE = __webpack_require__(31)
669 | , toPrimitive = __webpack_require__(35)
670 | , dP = Object.defineProperty;
671 |
672 | exports.f = __webpack_require__(32) ? Object.defineProperty : function defineProperty(O, P, Attributes){
673 | anObject(O);
674 | P = toPrimitive(P, true);
675 | anObject(Attributes);
676 | if(IE8_DOM_DEFINE)try {
677 | return dP(O, P, Attributes);
678 | } catch(e){ /* empty */ }
679 | if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
680 | if('value' in Attributes)O[P] = Attributes.value;
681 | return O;
682 | };
683 |
684 | /***/ },
685 | /* 29 */
686 | /***/ function(module, exports, __webpack_require__) {
687 |
688 | var isObject = __webpack_require__(30);
689 | module.exports = function(it){
690 | if(!isObject(it))throw TypeError(it + ' is not an object!');
691 | return it;
692 | };
693 |
694 | /***/ },
695 | /* 30 */
696 | /***/ function(module, exports) {
697 |
698 | module.exports = function(it){
699 | return typeof it === 'object' ? it !== null : typeof it === 'function';
700 | };
701 |
702 | /***/ },
703 | /* 31 */
704 | /***/ function(module, exports, __webpack_require__) {
705 |
706 | module.exports = !__webpack_require__(32) && !__webpack_require__(33)(function(){
707 | return Object.defineProperty(__webpack_require__(34)('div'), 'a', {get: function(){ return 7; }}).a != 7;
708 | });
709 |
710 | /***/ },
711 | /* 32 */
712 | /***/ function(module, exports, __webpack_require__) {
713 |
714 | // Thank's IE8 for his funny defineProperty
715 | module.exports = !__webpack_require__(33)(function(){
716 | return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
717 | });
718 |
719 | /***/ },
720 | /* 33 */
721 | /***/ function(module, exports) {
722 |
723 | module.exports = function(exec){
724 | try {
725 | return !!exec();
726 | } catch(e){
727 | return true;
728 | }
729 | };
730 |
731 | /***/ },
732 | /* 34 */
733 | /***/ function(module, exports, __webpack_require__) {
734 |
735 | var isObject = __webpack_require__(30)
736 | , document = __webpack_require__(19).document
737 | // in old IE typeof document.createElement is 'object'
738 | , is = isObject(document) && isObject(document.createElement);
739 | module.exports = function(it){
740 | return is ? document.createElement(it) : {};
741 | };
742 |
743 | /***/ },
744 | /* 35 */
745 | /***/ function(module, exports, __webpack_require__) {
746 |
747 | // 7.1.1 ToPrimitive(input [, PreferredType])
748 | var isObject = __webpack_require__(30);
749 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case
750 | // and the second argument - flag - preferred type is a string
751 | module.exports = function(it, S){
752 | if(!isObject(it))return it;
753 | var fn, val;
754 | if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
755 | if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;
756 | if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
757 | throw TypeError("Can't convert object to primitive value");
758 | };
759 |
760 | /***/ },
761 | /* 36 */
762 | /***/ function(module, exports) {
763 |
764 | module.exports = function(bitmap, value){
765 | return {
766 | enumerable : !(bitmap & 1),
767 | configurable: !(bitmap & 2),
768 | writable : !(bitmap & 4),
769 | value : value
770 | };
771 | };
772 |
773 | /***/ },
774 | /* 37 */
775 | /***/ function(module, exports, __webpack_require__) {
776 |
777 | "use strict";
778 |
779 | exports.__esModule = true;
780 |
781 | var _iterator = __webpack_require__(38);
782 |
783 | var _iterator2 = _interopRequireDefault(_iterator);
784 |
785 | var _symbol = __webpack_require__(58);
786 |
787 | var _symbol2 = _interopRequireDefault(_symbol);
788 |
789 | var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default ? "symbol" : typeof obj; };
790 |
791 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
792 |
793 | exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
794 | return typeof obj === "undefined" ? "undefined" : _typeof(obj);
795 | } : function (obj) {
796 | return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
797 | };
798 |
799 | /***/ },
800 | /* 38 */
801 | /***/ function(module, exports, __webpack_require__) {
802 |
803 | module.exports = { "default": __webpack_require__(39), __esModule: true };
804 |
805 | /***/ },
806 | /* 39 */
807 | /***/ function(module, exports, __webpack_require__) {
808 |
809 | __webpack_require__(40);
810 | __webpack_require__(53);
811 | module.exports = __webpack_require__(57).f('iterator');
812 |
813 | /***/ },
814 | /* 40 */
815 | /***/ function(module, exports, __webpack_require__) {
816 |
817 | 'use strict';
818 | var $at = __webpack_require__(41)(true);
819 |
820 | // 21.1.3.27 String.prototype[@@iterator]()
821 | __webpack_require__(42)(String, 'String', function(iterated){
822 | this._t = String(iterated); // target
823 | this._i = 0; // next index
824 | // 21.1.5.2.1 %StringIteratorPrototype%.next()
825 | }, function(){
826 | var O = this._t
827 | , index = this._i
828 | , point;
829 | if(index >= O.length)return {value: undefined, done: true};
830 | point = $at(O, index);
831 | this._i += point.length;
832 | return {value: point, done: false};
833 | });
834 |
835 | /***/ },
836 | /* 41 */
837 | /***/ function(module, exports, __webpack_require__) {
838 |
839 | var toInteger = __webpack_require__(15)
840 | , defined = __webpack_require__(6);
841 | // true -> String#at
842 | // false -> String#codePointAt
843 | module.exports = function(TO_STRING){
844 | return function(that, pos){
845 | var s = String(defined(that))
846 | , i = toInteger(pos)
847 | , l = s.length
848 | , a, b;
849 | if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
850 | a = s.charCodeAt(i);
851 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
852 | ? TO_STRING ? s.charAt(i) : a
853 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
854 | };
855 | };
856 |
857 | /***/ },
858 | /* 42 */
859 | /***/ function(module, exports, __webpack_require__) {
860 |
861 | 'use strict';
862 | var LIBRARY = __webpack_require__(43)
863 | , $export = __webpack_require__(23)
864 | , redefine = __webpack_require__(44)
865 | , hide = __webpack_require__(27)
866 | , has = __webpack_require__(9)
867 | , Iterators = __webpack_require__(45)
868 | , $iterCreate = __webpack_require__(46)
869 | , setToStringTag = __webpack_require__(50)
870 | , getPrototypeOf = __webpack_require__(52)
871 | , ITERATOR = __webpack_require__(51)('iterator')
872 | , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
873 | , FF_ITERATOR = '@@iterator'
874 | , KEYS = 'keys'
875 | , VALUES = 'values';
876 |
877 | var returnThis = function(){ return this; };
878 |
879 | module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
880 | $iterCreate(Constructor, NAME, next);
881 | var getMethod = function(kind){
882 | if(!BUGGY && kind in proto)return proto[kind];
883 | switch(kind){
884 | case KEYS: return function keys(){ return new Constructor(this, kind); };
885 | case VALUES: return function values(){ return new Constructor(this, kind); };
886 | } return function entries(){ return new Constructor(this, kind); };
887 | };
888 | var TAG = NAME + ' Iterator'
889 | , DEF_VALUES = DEFAULT == VALUES
890 | , VALUES_BUG = false
891 | , proto = Base.prototype
892 | , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]
893 | , $default = $native || getMethod(DEFAULT)
894 | , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined
895 | , $anyNative = NAME == 'Array' ? proto.entries || $native : $native
896 | , methods, key, IteratorPrototype;
897 | // Fix native
898 | if($anyNative){
899 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base));
900 | if(IteratorPrototype !== Object.prototype){
901 | // Set @@toStringTag to native iterators
902 | setToStringTag(IteratorPrototype, TAG, true);
903 | // fix for some old engines
904 | if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);
905 | }
906 | }
907 | // fix Array#{values, @@iterator}.name in V8 / FF
908 | if(DEF_VALUES && $native && $native.name !== VALUES){
909 | VALUES_BUG = true;
910 | $default = function values(){ return $native.call(this); };
911 | }
912 | // Define iterator
913 | if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){
914 | hide(proto, ITERATOR, $default);
915 | }
916 | // Plug for library
917 | Iterators[NAME] = $default;
918 | Iterators[TAG] = returnThis;
919 | if(DEFAULT){
920 | methods = {
921 | values: DEF_VALUES ? $default : getMethod(VALUES),
922 | keys: IS_SET ? $default : getMethod(KEYS),
923 | entries: $entries
924 | };
925 | if(FORCED)for(key in methods){
926 | if(!(key in proto))redefine(proto, key, methods[key]);
927 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
928 | }
929 | return methods;
930 | };
931 |
932 | /***/ },
933 | /* 43 */
934 | /***/ function(module, exports) {
935 |
936 | module.exports = true;
937 |
938 | /***/ },
939 | /* 44 */
940 | /***/ function(module, exports, __webpack_require__) {
941 |
942 | module.exports = __webpack_require__(27);
943 |
944 | /***/ },
945 | /* 45 */
946 | /***/ function(module, exports) {
947 |
948 | module.exports = {};
949 |
950 | /***/ },
951 | /* 46 */
952 | /***/ function(module, exports, __webpack_require__) {
953 |
954 | 'use strict';
955 | var create = __webpack_require__(47)
956 | , descriptor = __webpack_require__(36)
957 | , setToStringTag = __webpack_require__(50)
958 | , IteratorPrototype = {};
959 |
960 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
961 | __webpack_require__(27)(IteratorPrototype, __webpack_require__(51)('iterator'), function(){ return this; });
962 |
963 | module.exports = function(Constructor, NAME, next){
964 | Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});
965 | setToStringTag(Constructor, NAME + ' Iterator');
966 | };
967 |
968 | /***/ },
969 | /* 47 */
970 | /***/ function(module, exports, __webpack_require__) {
971 |
972 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
973 | var anObject = __webpack_require__(29)
974 | , dPs = __webpack_require__(48)
975 | , enumBugKeys = __webpack_require__(21)
976 | , IE_PROTO = __webpack_require__(17)('IE_PROTO')
977 | , Empty = function(){ /* empty */ }
978 | , PROTOTYPE = 'prototype';
979 |
980 | // Create object with fake `null` prototype: use iframe Object with cleared prototype
981 | var createDict = function(){
982 | // Thrash, waste and sodomy: IE GC bug
983 | var iframe = __webpack_require__(34)('iframe')
984 | , i = enumBugKeys.length
985 | , gt = '>'
986 | , iframeDocument;
987 | iframe.style.display = 'none';
988 | __webpack_require__(49).appendChild(iframe);
989 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url
990 | // createDict = iframe.contentWindow.Object;
991 | // html.removeChild(iframe);
992 | iframeDocument = iframe.contentWindow.document;
993 | iframeDocument.open();
994 | iframeDocument.write(' i)dP.f(O, P = keys[i++], Properties[P]);
1028 | return O;
1029 | };
1030 |
1031 | /***/ },
1032 | /* 49 */
1033 | /***/ function(module, exports, __webpack_require__) {
1034 |
1035 | module.exports = __webpack_require__(19).document && document.documentElement;
1036 |
1037 | /***/ },
1038 | /* 50 */
1039 | /***/ function(module, exports, __webpack_require__) {
1040 |
1041 | var def = __webpack_require__(28).f
1042 | , has = __webpack_require__(9)
1043 | , TAG = __webpack_require__(51)('toStringTag');
1044 |
1045 | module.exports = function(it, tag, stat){
1046 | if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
1047 | };
1048 |
1049 | /***/ },
1050 | /* 51 */
1051 | /***/ function(module, exports, __webpack_require__) {
1052 |
1053 | var store = __webpack_require__(18)('wks')
1054 | , uid = __webpack_require__(20)
1055 | , Symbol = __webpack_require__(19).Symbol
1056 | , USE_SYMBOL = typeof Symbol == 'function';
1057 |
1058 | var $exports = module.exports = function(name){
1059 | return store[name] || (store[name] =
1060 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
1061 | };
1062 |
1063 | $exports.store = store;
1064 |
1065 | /***/ },
1066 | /* 52 */
1067 | /***/ function(module, exports, __webpack_require__) {
1068 |
1069 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1070 | var has = __webpack_require__(9)
1071 | , toObject = __webpack_require__(5)
1072 | , IE_PROTO = __webpack_require__(17)('IE_PROTO')
1073 | , ObjectProto = Object.prototype;
1074 |
1075 | module.exports = Object.getPrototypeOf || function(O){
1076 | O = toObject(O);
1077 | if(has(O, IE_PROTO))return O[IE_PROTO];
1078 | if(typeof O.constructor == 'function' && O instanceof O.constructor){
1079 | return O.constructor.prototype;
1080 | } return O instanceof Object ? ObjectProto : null;
1081 | };
1082 |
1083 | /***/ },
1084 | /* 53 */
1085 | /***/ function(module, exports, __webpack_require__) {
1086 |
1087 | __webpack_require__(54);
1088 | var global = __webpack_require__(19)
1089 | , hide = __webpack_require__(27)
1090 | , Iterators = __webpack_require__(45)
1091 | , TO_STRING_TAG = __webpack_require__(51)('toStringTag');
1092 |
1093 | for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
1094 | var NAME = collections[i]
1095 | , Collection = global[NAME]
1096 | , proto = Collection && Collection.prototype;
1097 | if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);
1098 | Iterators[NAME] = Iterators.Array;
1099 | }
1100 |
1101 | /***/ },
1102 | /* 54 */
1103 | /***/ function(module, exports, __webpack_require__) {
1104 |
1105 | 'use strict';
1106 | var addToUnscopables = __webpack_require__(55)
1107 | , step = __webpack_require__(56)
1108 | , Iterators = __webpack_require__(45)
1109 | , toIObject = __webpack_require__(10);
1110 |
1111 | // 22.1.3.4 Array.prototype.entries()
1112 | // 22.1.3.13 Array.prototype.keys()
1113 | // 22.1.3.29 Array.prototype.values()
1114 | // 22.1.3.30 Array.prototype[@@iterator]()
1115 | module.exports = __webpack_require__(42)(Array, 'Array', function(iterated, kind){
1116 | this._t = toIObject(iterated); // target
1117 | this._i = 0; // next index
1118 | this._k = kind; // kind
1119 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
1120 | }, function(){
1121 | var O = this._t
1122 | , kind = this._k
1123 | , index = this._i++;
1124 | if(!O || index >= O.length){
1125 | this._t = undefined;
1126 | return step(1);
1127 | }
1128 | if(kind == 'keys' )return step(0, index);
1129 | if(kind == 'values')return step(0, O[index]);
1130 | return step(0, [index, O[index]]);
1131 | }, 'values');
1132 |
1133 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
1134 | Iterators.Arguments = Iterators.Array;
1135 |
1136 | addToUnscopables('keys');
1137 | addToUnscopables('values');
1138 | addToUnscopables('entries');
1139 |
1140 | /***/ },
1141 | /* 55 */
1142 | /***/ function(module, exports) {
1143 |
1144 | module.exports = function(){ /* empty */ };
1145 |
1146 | /***/ },
1147 | /* 56 */
1148 | /***/ function(module, exports) {
1149 |
1150 | module.exports = function(done, value){
1151 | return {value: value, done: !!done};
1152 | };
1153 |
1154 | /***/ },
1155 | /* 57 */
1156 | /***/ function(module, exports, __webpack_require__) {
1157 |
1158 | exports.f = __webpack_require__(51);
1159 |
1160 | /***/ },
1161 | /* 58 */
1162 | /***/ function(module, exports, __webpack_require__) {
1163 |
1164 | module.exports = { "default": __webpack_require__(59), __esModule: true };
1165 |
1166 | /***/ },
1167 | /* 59 */
1168 | /***/ function(module, exports, __webpack_require__) {
1169 |
1170 | __webpack_require__(60);
1171 | __webpack_require__(71);
1172 | __webpack_require__(72);
1173 | __webpack_require__(73);
1174 | module.exports = __webpack_require__(24).Symbol;
1175 |
1176 | /***/ },
1177 | /* 60 */
1178 | /***/ function(module, exports, __webpack_require__) {
1179 |
1180 | 'use strict';
1181 | // ECMAScript 6 symbols shim
1182 | var global = __webpack_require__(19)
1183 | , has = __webpack_require__(9)
1184 | , DESCRIPTORS = __webpack_require__(32)
1185 | , $export = __webpack_require__(23)
1186 | , redefine = __webpack_require__(44)
1187 | , META = __webpack_require__(61).KEY
1188 | , $fails = __webpack_require__(33)
1189 | , shared = __webpack_require__(18)
1190 | , setToStringTag = __webpack_require__(50)
1191 | , uid = __webpack_require__(20)
1192 | , wks = __webpack_require__(51)
1193 | , wksExt = __webpack_require__(57)
1194 | , wksDefine = __webpack_require__(62)
1195 | , keyOf = __webpack_require__(63)
1196 | , enumKeys = __webpack_require__(64)
1197 | , isArray = __webpack_require__(67)
1198 | , anObject = __webpack_require__(29)
1199 | , toIObject = __webpack_require__(10)
1200 | , toPrimitive = __webpack_require__(35)
1201 | , createDesc = __webpack_require__(36)
1202 | , _create = __webpack_require__(47)
1203 | , gOPNExt = __webpack_require__(68)
1204 | , $GOPD = __webpack_require__(70)
1205 | , $DP = __webpack_require__(28)
1206 | , $keys = __webpack_require__(7)
1207 | , gOPD = $GOPD.f
1208 | , dP = $DP.f
1209 | , gOPN = gOPNExt.f
1210 | , $Symbol = global.Symbol
1211 | , $JSON = global.JSON
1212 | , _stringify = $JSON && $JSON.stringify
1213 | , PROTOTYPE = 'prototype'
1214 | , HIDDEN = wks('_hidden')
1215 | , TO_PRIMITIVE = wks('toPrimitive')
1216 | , isEnum = {}.propertyIsEnumerable
1217 | , SymbolRegistry = shared('symbol-registry')
1218 | , AllSymbols = shared('symbols')
1219 | , OPSymbols = shared('op-symbols')
1220 | , ObjectProto = Object[PROTOTYPE]
1221 | , USE_NATIVE = typeof $Symbol == 'function'
1222 | , QObject = global.QObject;
1223 | // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
1224 | var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
1225 |
1226 | // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
1227 | var setSymbolDesc = DESCRIPTORS && $fails(function(){
1228 | return _create(dP({}, 'a', {
1229 | get: function(){ return dP(this, 'a', {value: 7}).a; }
1230 | })).a != 7;
1231 | }) ? function(it, key, D){
1232 | var protoDesc = gOPD(ObjectProto, key);
1233 | if(protoDesc)delete ObjectProto[key];
1234 | dP(it, key, D);
1235 | if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);
1236 | } : dP;
1237 |
1238 | var wrap = function(tag){
1239 | var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
1240 | sym._k = tag;
1241 | return sym;
1242 | };
1243 |
1244 | var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){
1245 | return typeof it == 'symbol';
1246 | } : function(it){
1247 | return it instanceof $Symbol;
1248 | };
1249 |
1250 | var $defineProperty = function defineProperty(it, key, D){
1251 | if(it === ObjectProto)$defineProperty(OPSymbols, key, D);
1252 | anObject(it);
1253 | key = toPrimitive(key, true);
1254 | anObject(D);
1255 | if(has(AllSymbols, key)){
1256 | if(!D.enumerable){
1257 | if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));
1258 | it[HIDDEN][key] = true;
1259 | } else {
1260 | if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
1261 | D = _create(D, {enumerable: createDesc(0, false)});
1262 | } return setSymbolDesc(it, key, D);
1263 | } return dP(it, key, D);
1264 | };
1265 | var $defineProperties = function defineProperties(it, P){
1266 | anObject(it);
1267 | var keys = enumKeys(P = toIObject(P))
1268 | , i = 0
1269 | , l = keys.length
1270 | , key;
1271 | while(l > i)$defineProperty(it, key = keys[i++], P[key]);
1272 | return it;
1273 | };
1274 | var $create = function create(it, P){
1275 | return P === undefined ? _create(it) : $defineProperties(_create(it), P);
1276 | };
1277 | var $propertyIsEnumerable = function propertyIsEnumerable(key){
1278 | var E = isEnum.call(this, key = toPrimitive(key, true));
1279 | if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;
1280 | return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
1281 | };
1282 | var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
1283 | it = toIObject(it);
1284 | key = toPrimitive(key, true);
1285 | if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;
1286 | var D = gOPD(it, key);
1287 | if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
1288 | return D;
1289 | };
1290 | var $getOwnPropertyNames = function getOwnPropertyNames(it){
1291 | var names = gOPN(toIObject(it))
1292 | , result = []
1293 | , i = 0
1294 | , key;
1295 | while(names.length > i){
1296 | if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);
1297 | } return result;
1298 | };
1299 | var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
1300 | var IS_OP = it === ObjectProto
1301 | , names = gOPN(IS_OP ? OPSymbols : toIObject(it))
1302 | , result = []
1303 | , i = 0
1304 | , key;
1305 | while(names.length > i){
1306 | if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);
1307 | } return result;
1308 | };
1309 |
1310 | // 19.4.1.1 Symbol([description])
1311 | if(!USE_NATIVE){
1312 | $Symbol = function Symbol(){
1313 | if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');
1314 | var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
1315 | var $set = function(value){
1316 | if(this === ObjectProto)$set.call(OPSymbols, value);
1317 | if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
1318 | setSymbolDesc(this, tag, createDesc(1, value));
1319 | };
1320 | if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});
1321 | return wrap(tag);
1322 | };
1323 | redefine($Symbol[PROTOTYPE], 'toString', function toString(){
1324 | return this._k;
1325 | });
1326 |
1327 | $GOPD.f = $getOwnPropertyDescriptor;
1328 | $DP.f = $defineProperty;
1329 | __webpack_require__(69).f = gOPNExt.f = $getOwnPropertyNames;
1330 | __webpack_require__(66).f = $propertyIsEnumerable;
1331 | __webpack_require__(65).f = $getOwnPropertySymbols;
1332 |
1333 | if(DESCRIPTORS && !__webpack_require__(43)){
1334 | redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
1335 | }
1336 |
1337 | wksExt.f = function(name){
1338 | return wrap(wks(name));
1339 | }
1340 | }
1341 |
1342 | $export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});
1343 |
1344 | for(var symbols = (
1345 | // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
1346 | 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
1347 | ).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);
1348 |
1349 | for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);
1350 |
1351 | $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
1352 | // 19.4.2.1 Symbol.for(key)
1353 | 'for': function(key){
1354 | return has(SymbolRegistry, key += '')
1355 | ? SymbolRegistry[key]
1356 | : SymbolRegistry[key] = $Symbol(key);
1357 | },
1358 | // 19.4.2.5 Symbol.keyFor(sym)
1359 | keyFor: function keyFor(key){
1360 | if(isSymbol(key))return keyOf(SymbolRegistry, key);
1361 | throw TypeError(key + ' is not a symbol!');
1362 | },
1363 | useSetter: function(){ setter = true; },
1364 | useSimple: function(){ setter = false; }
1365 | });
1366 |
1367 | $export($export.S + $export.F * !USE_NATIVE, 'Object', {
1368 | // 19.1.2.2 Object.create(O [, Properties])
1369 | create: $create,
1370 | // 19.1.2.4 Object.defineProperty(O, P, Attributes)
1371 | defineProperty: $defineProperty,
1372 | // 19.1.2.3 Object.defineProperties(O, Properties)
1373 | defineProperties: $defineProperties,
1374 | // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
1375 | getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
1376 | // 19.1.2.7 Object.getOwnPropertyNames(O)
1377 | getOwnPropertyNames: $getOwnPropertyNames,
1378 | // 19.1.2.8 Object.getOwnPropertySymbols(O)
1379 | getOwnPropertySymbols: $getOwnPropertySymbols
1380 | });
1381 |
1382 | // 24.3.2 JSON.stringify(value [, replacer [, space]])
1383 | $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){
1384 | var S = $Symbol();
1385 | // MS Edge converts symbol values to JSON as {}
1386 | // WebKit converts symbol values to JSON as null
1387 | // V8 throws on boxed symbols
1388 | return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
1389 | })), 'JSON', {
1390 | stringify: function stringify(it){
1391 | if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
1392 | var args = [it]
1393 | , i = 1
1394 | , replacer, $replacer;
1395 | while(arguments.length > i)args.push(arguments[i++]);
1396 | replacer = args[1];
1397 | if(typeof replacer == 'function')$replacer = replacer;
1398 | if($replacer || !isArray(replacer))replacer = function(key, value){
1399 | if($replacer)value = $replacer.call(this, key, value);
1400 | if(!isSymbol(value))return value;
1401 | };
1402 | args[1] = replacer;
1403 | return _stringify.apply($JSON, args);
1404 | }
1405 | });
1406 |
1407 | // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
1408 | $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(27)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
1409 | // 19.4.3.5 Symbol.prototype[@@toStringTag]
1410 | setToStringTag($Symbol, 'Symbol');
1411 | // 20.2.1.9 Math[@@toStringTag]
1412 | setToStringTag(Math, 'Math', true);
1413 | // 24.3.3 JSON[@@toStringTag]
1414 | setToStringTag(global.JSON, 'JSON', true);
1415 |
1416 | /***/ },
1417 | /* 61 */
1418 | /***/ function(module, exports, __webpack_require__) {
1419 |
1420 | var META = __webpack_require__(20)('meta')
1421 | , isObject = __webpack_require__(30)
1422 | , has = __webpack_require__(9)
1423 | , setDesc = __webpack_require__(28).f
1424 | , id = 0;
1425 | var isExtensible = Object.isExtensible || function(){
1426 | return true;
1427 | };
1428 | var FREEZE = !__webpack_require__(33)(function(){
1429 | return isExtensible(Object.preventExtensions({}));
1430 | });
1431 | var setMeta = function(it){
1432 | setDesc(it, META, {value: {
1433 | i: 'O' + ++id, // object ID
1434 | w: {} // weak collections IDs
1435 | }});
1436 | };
1437 | var fastKey = function(it, create){
1438 | // return primitive with prefix
1439 | if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
1440 | if(!has(it, META)){
1441 | // can't set metadata to uncaught frozen object
1442 | if(!isExtensible(it))return 'F';
1443 | // not necessary to add metadata
1444 | if(!create)return 'E';
1445 | // add missing metadata
1446 | setMeta(it);
1447 | // return object ID
1448 | } return it[META].i;
1449 | };
1450 | var getWeak = function(it, create){
1451 | if(!has(it, META)){
1452 | // can't set metadata to uncaught frozen object
1453 | if(!isExtensible(it))return true;
1454 | // not necessary to add metadata
1455 | if(!create)return false;
1456 | // add missing metadata
1457 | setMeta(it);
1458 | // return hash weak collections IDs
1459 | } return it[META].w;
1460 | };
1461 | // add metadata on freeze-family methods calling
1462 | var onFreeze = function(it){
1463 | if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);
1464 | return it;
1465 | };
1466 | var meta = module.exports = {
1467 | KEY: META,
1468 | NEED: false,
1469 | fastKey: fastKey,
1470 | getWeak: getWeak,
1471 | onFreeze: onFreeze
1472 | };
1473 |
1474 | /***/ },
1475 | /* 62 */
1476 | /***/ function(module, exports, __webpack_require__) {
1477 |
1478 | var global = __webpack_require__(19)
1479 | , core = __webpack_require__(24)
1480 | , LIBRARY = __webpack_require__(43)
1481 | , wksExt = __webpack_require__(57)
1482 | , defineProperty = __webpack_require__(28).f;
1483 | module.exports = function(name){
1484 | var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
1485 | if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
1486 | };
1487 |
1488 | /***/ },
1489 | /* 63 */
1490 | /***/ function(module, exports, __webpack_require__) {
1491 |
1492 | var getKeys = __webpack_require__(7)
1493 | , toIObject = __webpack_require__(10);
1494 | module.exports = function(object, el){
1495 | var O = toIObject(object)
1496 | , keys = getKeys(O)
1497 | , length = keys.length
1498 | , index = 0
1499 | , key;
1500 | while(length > index)if(O[key = keys[index++]] === el)return key;
1501 | };
1502 |
1503 | /***/ },
1504 | /* 64 */
1505 | /***/ function(module, exports, __webpack_require__) {
1506 |
1507 | // all enumerable object keys, includes symbols
1508 | var getKeys = __webpack_require__(7)
1509 | , gOPS = __webpack_require__(65)
1510 | , pIE = __webpack_require__(66);
1511 | module.exports = function(it){
1512 | var result = getKeys(it)
1513 | , getSymbols = gOPS.f;
1514 | if(getSymbols){
1515 | var symbols = getSymbols(it)
1516 | , isEnum = pIE.f
1517 | , i = 0
1518 | , key;
1519 | while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);
1520 | } return result;
1521 | };
1522 |
1523 | /***/ },
1524 | /* 65 */
1525 | /***/ function(module, exports) {
1526 |
1527 | exports.f = Object.getOwnPropertySymbols;
1528 |
1529 | /***/ },
1530 | /* 66 */
1531 | /***/ function(module, exports) {
1532 |
1533 | exports.f = {}.propertyIsEnumerable;
1534 |
1535 | /***/ },
1536 | /* 67 */
1537 | /***/ function(module, exports, __webpack_require__) {
1538 |
1539 | // 7.2.2 IsArray(argument)
1540 | var cof = __webpack_require__(12);
1541 | module.exports = Array.isArray || function isArray(arg){
1542 | return cof(arg) == 'Array';
1543 | };
1544 |
1545 | /***/ },
1546 | /* 68 */
1547 | /***/ function(module, exports, __webpack_require__) {
1548 |
1549 | // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
1550 | var toIObject = __webpack_require__(10)
1551 | , gOPN = __webpack_require__(69).f
1552 | , toString = {}.toString;
1553 |
1554 | var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
1555 | ? Object.getOwnPropertyNames(window) : [];
1556 |
1557 | var getWindowNames = function(it){
1558 | try {
1559 | return gOPN(it);
1560 | } catch(e){
1561 | return windowNames.slice();
1562 | }
1563 | };
1564 |
1565 | module.exports.f = function getOwnPropertyNames(it){
1566 | return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
1567 | };
1568 |
1569 |
1570 | /***/ },
1571 | /* 69 */
1572 | /***/ function(module, exports, __webpack_require__) {
1573 |
1574 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
1575 | var $keys = __webpack_require__(8)
1576 | , hiddenKeys = __webpack_require__(21).concat('length', 'prototype');
1577 |
1578 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){
1579 | return $keys(O, hiddenKeys);
1580 | };
1581 |
1582 | /***/ },
1583 | /* 70 */
1584 | /***/ function(module, exports, __webpack_require__) {
1585 |
1586 | var pIE = __webpack_require__(66)
1587 | , createDesc = __webpack_require__(36)
1588 | , toIObject = __webpack_require__(10)
1589 | , toPrimitive = __webpack_require__(35)
1590 | , has = __webpack_require__(9)
1591 | , IE8_DOM_DEFINE = __webpack_require__(31)
1592 | , gOPD = Object.getOwnPropertyDescriptor;
1593 |
1594 | exports.f = __webpack_require__(32) ? gOPD : function getOwnPropertyDescriptor(O, P){
1595 | O = toIObject(O);
1596 | P = toPrimitive(P, true);
1597 | if(IE8_DOM_DEFINE)try {
1598 | return gOPD(O, P);
1599 | } catch(e){ /* empty */ }
1600 | if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);
1601 | };
1602 |
1603 | /***/ },
1604 | /* 71 */
1605 | /***/ function(module, exports) {
1606 |
1607 |
1608 |
1609 | /***/ },
1610 | /* 72 */
1611 | /***/ function(module, exports, __webpack_require__) {
1612 |
1613 | __webpack_require__(62)('asyncIterator');
1614 |
1615 | /***/ },
1616 | /* 73 */
1617 | /***/ function(module, exports, __webpack_require__) {
1618 |
1619 | __webpack_require__(62)('observable');
1620 |
1621 | /***/ }
1622 | /******/ ])
1623 | });
1624 | ;
--------------------------------------------------------------------------------