(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a4ee6"],{"0918":function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(o("56b3"));function u(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function r(e){var t=e.state.info.options;return(null===t||void 0===t?void 0:t.hoverTime)||500}function a(e,t){var o=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===n.nodeName&&void 0===o.hoverTimeout){var u=n.getBoundingClientRect(),a=function(){clearTimeout(o.hoverTimeout),o.hoverTimeout=setTimeout(l,d)},m=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",m),clearTimeout(o.hoverTimeout),o.hoverTimeout=void 0},l=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",m),o.hoverTimeout=void 0,f(e,u)},d=r(e);o.hoverTimeout=setTimeout(l,d),i.default.on(document,"mousemove",a),i.default.on(e.getWrapperElement(),"mouseout",m)}}function f(e,t){var o=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info,i=n.options,u=i.render||e.getHelper(o,"info");if(u){var r=e.getTokenAt(o,!0);if(r){var a=u(r,i,e,o);a&&m(e,t,a)}}}function m(e,t,o){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(o),document.body.appendChild(n);var u=n.getBoundingClientRect(),r=window.getComputedStyle(n),a=u.right-u.left+parseFloat(r.marginLeft)+parseFloat(r.marginRight),f=u.bottom-u.top+parseFloat(r.marginTop)+parseFloat(r.marginBottom),m=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(m=t.top-f),m<0&&(m=t.bottom);var l,d=Math.max(0,window.innerWidth-a-15);d>t.left&&(d=t.left),n.style.opacity="1",n.style.top=m+"px",n.style.left=d+"px";var s=function(){clearTimeout(l)},p=function(){clearTimeout(l),l=setTimeout(c,200)},c=function(){i.default.off(n,"mouseover",s),i.default.off(n,"mouseout",p),i.default.off(e.getWrapperElement(),"mouseout",p),n.style.opacity?(n.style.opacity="0",setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n)}),600)):n.parentNode&&n.parentNode.removeChild(n)};i.default.on(n,"mouseover",s),i.default.on(n,"mouseout",p),i.default.on(e.getWrapperElement(),"mouseout",p)}i.default.defineOption("info",!1,(function(e,t,o){if(o&&o!==i.default.Init){var n=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var r=e.state.info=u(t);r.onMouseOver=a.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}}))}}]);