|
|
!function(I){function e(e){for(var t,n,i=e[0],r=e[1],o=0,a=[];o<i.length;o++)n=i[o],Object.prototype.hasOwnProperty.call(x,n)&&x[n]&&a.push(x[n][0]),x[n]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(I[t]=r[t]);for(C&&C(e);a.length;)a.shift()()}function O(e){delete x[e]}var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,t){!function(e,t){if(B[e]&&d[e]){for(var n in d[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(z[n]=t[n]);0==--u&&0===c&&m()}}(e,t),n&&n(e,t)};var N,i=!0,L="93d090c153a6f0c4ccac",t=1e4,P={},E=[],r=[];function o(t){var n=$[t];if(!n)return Y;function i(e){return n.hot.active?($[e]?-1===$[e].parents.indexOf(t)&&$[e].parents.push(t):(E=[t],N=e),-1===n.children.indexOf(e)&&n.children.push(e)):(console.warn("[HMR] unexpected require("+e+") from disposed module "+t),E=[]),Y(e)}for(var e in Y)Object.prototype.hasOwnProperty.call(Y,e)&&"e"!==e&&"t"!==e&&Object.defineProperty(i,e,function(t){return{configurable:!0,enumerable:!0,get:function(){return Y[t]},set:function(e){Y[t]=e}}}(e));return i.e=function(e){return"ready"===s&&H("prepare"),c++,Y.e(e).then(t,function(e){throw t(),e});function t(){c--,"prepare"===s&&(h[e]||f(e),0===c&&0===u&&m())}},i.t=function(e,t){return 1&t&&(e=i(e)),Y.t(e,-2&t)},i}var a=[],s="idle";function H(e){s=e;for(var t=0;t<a.length;t++)a[t].call(null,e)}var l,z,R,j,u=0,c=0,h={},d={},B={};function F(e){return+e+""===e?+e:e}function p(e){if("idle"!==s)throw new Error("check() is only allowed in idle status");return i=e,H("check"),o=(o=t)||1e4,new Promise(function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var i=new XMLHttpRequest,r=Y.p+""+L+".hot-update.json";i.open("GET",r,!0),i.timeout=o,i.send(null)}catch(e){return n(e)}i.onreadystatechange=function(){if(4===i.readyState)if(0===i.status)n(new Error("Manifest request to "+r+" timed out."));else if(404===i.status)t();else if(200!==i.status&&304!==i.status)n(new Error("Manifest request to "+r+" failed."));else{try{var e=JSON.parse(i.responseText)}catch(e){return void n(e)}t(e)}}}).then(function(e){if(!e)return H(V()?"ready":"idle"),null;d={},h={},B=e.c,R=e.h,H("prepare");var t,e=new Promise(function(e,t){l={resolve:e,reject:t}});for(t in z={},x)f(t);return"prepare"===s&&0===c&&0===u&&m(),e});var o}function f(e){var t,n;B[e]?(d[e]=!0,u++,t=e,(n=document.createElement("script")).charset="utf-8",n.src=Y.p+""+t+"."+L+".hot-update.js",document.head.appendChild(n)):h[e]=!0}function m(){H("ready");var t=l;if(l=null,t)if(i)Promise.resolve().then(function(){return g(i)}).then(function(e){t.resolve(e)},function(e){t.reject(e)});else{var e,n=[];for(e in z)Object.prototype.hasOwnProperty.call(z,e)&&n.push(F(e));t.resolve(n)}}function g(e){if("ready"!==s)throw new Error("apply() is only allowed in ready status");return function e(n){V();var t;var i;var r;var c;function o(e){for(var t=[e],n={},i=t.map(function(e){return{chain:[e],id:e}});0<i.length;){var r=i.pop(),o=r.id,a=r.chain;if((c=$[o])&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(c.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s<c.parents.length;s++){var l=c.parents[s],u=$[l];if(u){if(u.hot._declinedDependencies[o])return{type:"declined",chain:a.concat([l]),moduleId:o,parentId:l};-1===t.indexOf(l)&&(u.hot._acceptedDependencies[o]?(n[l]||(n[l]=[]),h(n[l],[o])):(delete n[l],t.push(l),i.push({chain:a.concat([l]),id:l})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];-1===e.indexOf(i)&&e.push(i)}}var a={};var s=[];var l={};var u=function(){console.warn("[HMR] unexpected require("+p.moduleId+") to disposed module")};for(var d in z)if(Object.prototype.hasOwnProperty.call(z,d)){var p;y=F(d),p=z[d]?o(y):{type:"disposed",moduleId:d};var f=!1,m=!1,g=!1,v="";switch(p.chain&&(v="\nUpdate propagation: "+p.chain.join(" -> ")),p.type){case"self-declined":n.onDeclined&&n.onDeclined(p),n.ignoreDeclined||(f=new Error("Aborted because of self decline: "+p.mod /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */,e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;return i||((t=document.createElement("div")).setAttribute(n,"return;"),i="function"==typeof t[n]),i=!i&&r&&"wheel"===e?document.implementation.hasFeature("Events.wheel","3.0"):i}},function(e,t,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=i},function(e,t,n){e.exports={default:n(460),__esModule:!0}},function(e,t,n){n(461),e.exports=n(115).Object.assign},function(e,t,n){var i=n(181);i(i.S+i.F,"Object",{assign:n(464)})},function(e,t,n){var o=n(463);e.exports=function(i,r,e){if(o(i),void 0===r)return i;switch(e){case 1:return function(e){return i.call(r,e)};case 2:return function(e,t){return i.call(r,e,t)};case 3:return function(e,t,n){return i.call(r,e,t,n)}}return function(){return i.apply(r,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var d=n(77),p=n(141),f=n(188),m=n(144),g=n(189),v=n(293),r=Object.assign;e.exports=!r||n(117)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=r({},e)[n]||Object.keys(r({},t)).join("")!=i})?function(e,t){for(var n=g(e),i=arguments.length,r=1,o=f.f,a=m.f;r<i;)for(var s,l=v(arguments[r++]),u=o?p(l).concat(o(l)):p(l),c=u.length,h=0;h<c;)s=u[h++],d&&!a.call(l,s)||(n[s]=l[s]);return n}:r},function(e,t,n){var l=n(94),u=n(466),c=n(467);e.exports=function(s){return function(e,t,n){var i,r=l(e),o=u(r.length),a=c(n,o);if(s&&t!=t){for(;a<o;)if((i=r[a++])!=i)return!0}else for(;a<o;a++)if((s||a in r)&&r[a]===t)return s||a||0;return!s&&-1}}},function(e,t,n){var i=n(184),r=Math.min;e.exports=function(e){return 0<e?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(184),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t,n){e.exports={default:n(469),__esModule:!0}},function(e,t,n){n(470),n(476),e.exports=n(192).f("iterator")},function(e,t,n){"use strict";var i=n(471)(!0);n(295)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(t=i(e,t),this._i+=t.length,{value:t,done:!1})})},function(e,t,n){var a=n(184),s=n(183);e.exports=function(o){return function(e,t){var n,i=String(s(e)),r=a(t),e=i.length;return r<0||e<=r?o?"":void 0:(t=i.charCodeAt(r))<55296||56319<t||r+1===e||(n=i.charCodeAt(r+1))<56320||57343<n?o?i.charAt(r):t:o?i.slice(r,r+2):n-56320+(t-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(297),r=n(140),o=n(191),a={};n(92)(a,n(95)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var a=n(93),s=n(139),l=n(141);e.exports=n(77)?Object.defineProperties:function(e,t){s(e);for(var n,i=l(t),r=i.length,o=0;o<r;)a.f(e,n=i[o++],t[n]);return e}},function(e,t,n){n=n(65).document;e.exports=n&&n.documentElement},function(e,t,n){var i=n(78),r=n(189),o=n(185)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(477);for(var i=n(65),r=n(92),o=n(190),a=n(95)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=i[u],c=c&&c.prototype;c&&!c[a]&&r(c,a,u),o[u]=o. /*! * wordcloud2.js * http://timdream.org/wordcloud2.js/
* * Copyright 2011 - 2013 Tim Chien * Released under the MIT license */function i(g,e){if(o){(g=!Array.isArray(g)?[g]:g).forEach(function(e,t){if("string"==typeof e){if(g[t]=document.getElementById(e),!g[t])throw"The element id specified is not found."}else if(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."});var t,_={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var n in e)n in _&&(_[n]=e[n]);if("function"!=typeof _.weightFactor&&(t=_.weightFactor,_.weightFactor=function(e){return e*t}),"function"!=typeof _.shape)switch(_.shape){case"circle":default:_.shape="circle";break;case"cardioid":_.shape=function(e){return 1-Math.sin(e)};break;case"diamond":case"square":_.shape=function(e){e%=2*Math.PI/4;return 1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":_.shape=function(e){e%=2*Math.PI/3;return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":_.shape=function(e){e=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":_.shape=function(e){e=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":_.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return 0<=(e+.955)%(2*Math.PI/5)-2*Math.PI/10?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}_.gridSize=Math.max(Math.floor(_.gridSize),4);var v,y,x,f,m,b,w,C=_.gridSize,S=C-_.maskGapWidth,d=Math.abs(_.maxRotation-_.minRotation),p=Math.min(_.maxRotation,_.minRotation),A=_.rotationStep;switch(_.color){case"random-dark":w=function(){return r(10,50)};break;case"random-light":w=function(){return r(50,90)};break;default:"function"==typeof _.color&&(w=_.color)}var M=null;"function"==typeof _.classes&&(M=_.classes);var T,k=!1,D=[],i=function(e){var t=e.currentTarget,n=t.getBoundingClientRect(),e=e.touches?(i=e.touches[0].clientX,e.touches[0].clientY):(i=e.clientX,e.clientY),i=i-n.left,e=e-n.top,i=Math.floor(i*(t.width/n.width||1)/C),n=Math.floor(e*(t.height/n.height||1)/C);return D[i][n]},I=function(e){var t=i(e);T!==t&&((T=t)?_.hover(t.item,t.dimension,e):_.hover(void 0,void 0,e))},O=function(e){var t=i(e);t&&(_.click(t.item,t.dimension,e),e.preventDefault())},N=[],L=function(){return 0<_.abortThreshold&&(new Date).getTime()-b>_.abortThreshold},P=function(e,t,n,i,r,o){var a,s,l=r.occupied,u=_.drawMask;u&&((a=g[0].getContext("2d")).save(),a.fillStyle=_.maskColor),k&&(s={x:(e+(r=r.bounds)[3])*C,y:(t+r[0])*C,w:(r[1]-r[3]+1)*C,h:(r[2]-r[0]+1)*C});for(var c,h,d,p=l.length;p--;){var f=e+l[p][0],m=t+l[p][1];y<=f||x<=m||f<0||m<0||(c=m,h=u,d=s,m=o,y<=(f=f)||x<=c||f<0||c<0||(v[f][c]=!1,h&&g[0].getContext("2d").fillRect(f*C,c*C,S,S),k&&(D[f][c]={item:m,dimension:d})))}u&&a.restore()},E=function(i){var r,o,a;Array.isArray(i)?(r=i[0],o=i[1]):(r=i.word,o=i.weight,a=i.attributes);var s=0===_.rotateRatio||Math.random()>_.rotateRatio?0:0===d?p:p+Math.round(Math.random()*d/A)*A,l=function(e,t,n){var i=_.weightFactor(t);if(i<=_.minSize)return!1;var r=1;i<z&&(r=function(){for(var e=2;e*i<z;)e+=2;return e}());var o=document.createElement("canvas"),a=o.getContext("2d",{willReadFrequently:!0});a.font=_.fontWeight+" "+(i*r).toString(10)+"px "+_.fontFamily;var s=a.measureText(e).width/r,l=Math.max(i*r,a.measureText("m").width,a.measureText("W").width)/r,u=s+2*l,c=3*l,h=Math.ceil(u/C),t=Math.ceil(c/C),u=h*C,c=t*C,h=-s/2,t=.4*-l,d=Math.ceil((u*Math.abs(Math.sin(n))+c*Math.abs(Math.cos(n)))/C),u=Math.ceil((u*Math.abs(Math.cos(n))+c*Math.abs(Math.sin(n)))/C),p=u*C,c=d*C;o.setAttribute("width",p),o.setAttribute("height",c),a.scale(1/r,1/r),a.translate(p*r/2,c*r/2),a.rotate(-n),a.font=_.fontWeight+" /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6 */ e.exports=function(){"use strict";function i(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function l(e){return typeof e==="function"}var e=void 0;if(Array.isArray)e=Array.isArray;else e=function(e){return Object.prototype.toString.call(e)==="[object Array]"};var n=e,r=0,t=void 0,o=void 0,a=function e(t,n){b[r]=t;b[r+1]=n;r+=2;if(r===2)if(o)o(_);else C()};function s(e){o=e}function u(e){a=e}var c=typeof window!=="undefined"?window:undefined,h=c||{},d=h.MutationObserver||h.WebKitMutationObserver,p=typeof self==="undefined"&&typeof ie!=="undefined"&&{}.toString.call(ie)==="[object process]",f=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function m(){return function(){return ie.nextTick(_)}}function g(){if(typeof t!=="undefined")return function(){t(_)};return x()}function v(){var e=0;var t=new d(_);var n=document.createTextNode("");t.observe(n,{characterData:true});return function(){n.data=e=++e%2}}function y(){var e=new MessageChannel;e.port1.onmessage=_;return function(){return e.port2.postMessage(0)}}function x(){var e=setTimeout;return function(){return e(_,1)}}var b=new Array(1e3);function _(){for(var e=0;e<r;e+=2){var t=b[e];var n=b[e+1];t(n);b[e]=undefined;b[e+1]=undefined}r=0}function w(){try{var e=Function("return this")().require("vertx");t=e.runOnLoop||e.runOnContext;return g()}catch(e){return x()}}var C=void 0;if(p)C=m();else if(d)C=v();else if(f)C=y();else if(c===undefined&&"function"==="function")C=w();else C=x();function S(e,t){var n=this;var i=new this.constructor(T);if(i[M]===undefined)G(i);var r=n._state;if(r){var o=arguments[r-1];a(function(){return $(r,i,o,n._result)})}else F(n,i,e,t);return i}function A(e){var t=this;if(e&&typeof e==="object"&&e.constructor===t)return e;var n=new t(T);z(n,e);return n}var M=Math.random().toString(36).substring(2);function T(){}var k=void 0,D=1,I=2;function O(){return new TypeError("You cannot resolve a promise with itself")}function N(){return new TypeError("A promises callback cannot return that same promise.")}function L(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}function P(e,i,r){a(function(t){var n=false;var e=L(r,i,function(e){if(n)return;n=true;if(i!==e)z(t,e);else j(t,e)},function(e){if(n)return;n=true;B(t,e)},"Settle: "+(t._label||" unknown promise"));if(!n&&e){n=true;B(t,e)}},e)}function E(t,e){if(e._state===D)j(t,e._result);else if(e._state===I)B(t,e._result);else F(e,undefined,function(e){return z(t,e)},function(e){return B(t,e)})}function H(e,t,n){if(t.constructor===e.constructor&&n===S&&t.constructor.resolve===A)E(e,t);else if(n===undefined)j(e,t);else if(l(n))P(e,t,n);else j(e,t)}function z(t,e){if(t===e)B(t,O());else if(i(e)){var n=void 0;try{n=e.then}catch(e){B(t,e);return}H(t,e,n)}else j(t,e)}function R(e){if(e._onerror)e._onerror(e._result);V(e)}function j(e,t){if(e._state!==k)return;e._result=t;e._state=D;if(e._subscribers.length!==0)a(V,e)}function B(e,t){if(e._state!==k)return;e._state=I;e._result=t;a(R,e)}function F(e,t,n,i){var r=e._subscribers;var o=r.length;e._onerror=null;r[o]=t;r[o+D]=n;r[o+I]=i;if(o===0&&e._state)a(V,e)}function V(e){var t=e._subscribers;var n=e._state;if(t.length===0)return;var i=void 0,r=void 0,o=e._result;for(var a=0;a<t.length;a+=3){i=t[a];r=t[a+n];if(i)$(n,i,r,o);else r(o)}e._subscribers.length=0}function $(e,t,n,i){var r=l(n),o=void 0,a=void 0,s=true;if(r){try{o=n(i)}catch(e){s=false;a=e}if(t===o){B(t,N());return}}else o=i;if(t._state!==k);else if(r&&s)z(t,o);else if(s===false)B(t,a);else if(e===D)j(t,o);else if(e===I)B(t,o)}function Y(n,e){try{e(function e(t){z(n,t)},function e(t){B(n,t)})}catch(e){B(n,e)}}var W=0;function X(){return W++}function G(e){e[M]=W++;e._state=undefined;e._result=undefined;e._subscribers=[]}function U(){return new Error("Array Methods must be provided an Array")}var q=function(){function e(e,t){this._instanceConstructor=e;this.promise=new e(T);if(!this.promise[M])G(this.promise);if(n(t)){this.length=t.length;this._remaining=t.length;this._result=new Array(this.length);if(this.length===0)j(this.promise,thi
|