/* automatically generated by JSCoverage - do not edit */
try {
  if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) {
    // this is a browser window that was opened from another window

    if (! top.opener._$jscoverage) {
      top.opener._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null) {
    // this is a browser window

    try {
      if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) {
        top._$jscoverage = top.opener._$jscoverage;
      }
    }
    catch (e) {}

    if (! top._$jscoverage) {
      top._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null && top._$jscoverage) {
    _$jscoverage = top._$jscoverage;
  }
}
catch (e) {}
if (typeof _$jscoverage !== 'object') {
  _$jscoverage = {};
}
if (! _$jscoverage['ui/popup.js']) {
  _$jscoverage['ui/popup.js'] = [];
  _$jscoverage['ui/popup.js'][3] = 0;
  _$jscoverage['ui/popup.js'][4] = 0;
  _$jscoverage['ui/popup.js'][9] = 0;
  _$jscoverage['ui/popup.js'][10] = 0;
  _$jscoverage['ui/popup.js'][13] = 0;
  _$jscoverage['ui/popup.js'][14] = 0;
  _$jscoverage['ui/popup.js'][15] = 0;
  _$jscoverage['ui/popup.js'][16] = 0;
  _$jscoverage['ui/popup.js'][17] = 0;
  _$jscoverage['ui/popup.js'][18] = 0;
  _$jscoverage['ui/popup.js'][19] = 0;
  _$jscoverage['ui/popup.js'][20] = 0;
  _$jscoverage['ui/popup.js'][25] = 0;
  _$jscoverage['ui/popup.js'][26] = 0;
  _$jscoverage['ui/popup.js'][29] = 0;
  _$jscoverage['ui/popup.js'][31] = 0;
  _$jscoverage['ui/popup.js'][33] = 0;
  _$jscoverage['ui/popup.js'][41] = 0;
  _$jscoverage['ui/popup.js'][42] = 0;
  _$jscoverage['ui/popup.js'][45] = 0;
  _$jscoverage['ui/popup.js'][56] = 0;
  _$jscoverage['ui/popup.js'][57] = 0;
  _$jscoverage['ui/popup.js'][58] = 0;
  _$jscoverage['ui/popup.js'][60] = 0;
  _$jscoverage['ui/popup.js'][62] = 0;
  _$jscoverage['ui/popup.js'][70] = 0;
  _$jscoverage['ui/popup.js'][71] = 0;
  _$jscoverage['ui/popup.js'][75] = 0;
  _$jscoverage['ui/popup.js'][77] = 0;
  _$jscoverage['ui/popup.js'][79] = 0;
  _$jscoverage['ui/popup.js'][85] = 0;
  _$jscoverage['ui/popup.js'][86] = 0;
  _$jscoverage['ui/popup.js'][87] = 0;
  _$jscoverage['ui/popup.js'][91] = 0;
  _$jscoverage['ui/popup.js'][93] = 0;
  _$jscoverage['ui/popup.js'][95] = 0;
  _$jscoverage['ui/popup.js'][96] = 0;
  _$jscoverage['ui/popup.js'][98] = 0;
  _$jscoverage['ui/popup.js'][101] = 0;
  _$jscoverage['ui/popup.js'][103] = 0;
  _$jscoverage['ui/popup.js'][107] = 0;
  _$jscoverage['ui/popup.js'][116] = 0;
  _$jscoverage['ui/popup.js'][118] = 0;
  _$jscoverage['ui/popup.js'][120] = 0;
  _$jscoverage['ui/popup.js'][127] = 0;
  _$jscoverage['ui/popup.js'][128] = 0;
  _$jscoverage['ui/popup.js'][129] = 0;
  _$jscoverage['ui/popup.js'][132] = 0;
  _$jscoverage['ui/popup.js'][133] = 0;
  _$jscoverage['ui/popup.js'][137] = 0;
  _$jscoverage['ui/popup.js'][138] = 0;
  _$jscoverage['ui/popup.js'][141] = 0;
  _$jscoverage['ui/popup.js'][142] = 0;
  _$jscoverage['ui/popup.js'][144] = 0;
  _$jscoverage['ui/popup.js'][145] = 0;
  _$jscoverage['ui/popup.js'][146] = 0;
  _$jscoverage['ui/popup.js'][147] = 0;
  _$jscoverage['ui/popup.js'][148] = 0;
  _$jscoverage['ui/popup.js'][149] = 0;
  _$jscoverage['ui/popup.js'][150] = 0;
  _$jscoverage['ui/popup.js'][152] = 0;
  _$jscoverage['ui/popup.js'][154] = 0;
  _$jscoverage['ui/popup.js'][155] = 0;
  _$jscoverage['ui/popup.js'][156] = 0;
  _$jscoverage['ui/popup.js'][157] = 0;
  _$jscoverage['ui/popup.js'][160] = 0;
  _$jscoverage['ui/popup.js'][163] = 0;
  _$jscoverage['ui/popup.js'][164] = 0;
  _$jscoverage['ui/popup.js'][165] = 0;
  _$jscoverage['ui/popup.js'][166] = 0;
  _$jscoverage['ui/popup.js'][168] = 0;
  _$jscoverage['ui/popup.js'][169] = 0;
  _$jscoverage['ui/popup.js'][170] = 0;
  _$jscoverage['ui/popup.js'][171] = 0;
  _$jscoverage['ui/popup.js'][172] = 0;
  _$jscoverage['ui/popup.js'][173] = 0;
  _$jscoverage['ui/popup.js'][175] = 0;
  _$jscoverage['ui/popup.js'][176] = 0;
  _$jscoverage['ui/popup.js'][177] = 0;
  _$jscoverage['ui/popup.js'][178] = 0;
  _$jscoverage['ui/popup.js'][181] = 0;
  _$jscoverage['ui/popup.js'][182] = 0;
  _$jscoverage['ui/popup.js'][186] = 0;
  _$jscoverage['ui/popup.js'][187] = 0;
  _$jscoverage['ui/popup.js'][188] = 0;
  _$jscoverage['ui/popup.js'][189] = 0;
  _$jscoverage['ui/popup.js'][190] = 0;
  _$jscoverage['ui/popup.js'][195] = 0;
  _$jscoverage['ui/popup.js'][196] = 0;
  _$jscoverage['ui/popup.js'][197] = 0;
  _$jscoverage['ui/popup.js'][205] = 0;
  _$jscoverage['ui/popup.js'][208] = 0;
  _$jscoverage['ui/popup.js'][209] = 0;
  _$jscoverage['ui/popup.js'][210] = 0;
  _$jscoverage['ui/popup.js'][211] = 0;
  _$jscoverage['ui/popup.js'][215] = 0;
  _$jscoverage['ui/popup.js'][219] = 0;
  _$jscoverage['ui/popup.js'][222] = 0;
  _$jscoverage['ui/popup.js'][223] = 0;
  _$jscoverage['ui/popup.js'][226] = 0;
  _$jscoverage['ui/popup.js'][227] = 0;
  _$jscoverage['ui/popup.js'][228] = 0;
  _$jscoverage['ui/popup.js'][229] = 0;
  _$jscoverage['ui/popup.js'][230] = 0;
  _$jscoverage['ui/popup.js'][235] = 0;
  _$jscoverage['ui/popup.js'][238] = 0;
  _$jscoverage['ui/popup.js'][240] = 0;
  _$jscoverage['ui/popup.js'][241] = 0;
  _$jscoverage['ui/popup.js'][242] = 0;
  _$jscoverage['ui/popup.js'][244] = 0;
  _$jscoverage['ui/popup.js'][245] = 0;
}
_$jscoverage['ui/popup.js'].source = ["<span class=\"c\">///import core</span>","<span class=\"c\">///import uicore</span>","<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","    <span class=\"k\">var</span> utils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>utils<span class=\"k\">,</span>","        uiUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>uiUtils<span class=\"k\">,</span>","        domUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>dom<span class=\"k\">.</span>domUtils<span class=\"k\">,</span>","        UIBase <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>UIBase<span class=\"k\">,</span>","        Popup <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>options<span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initOptions<span class=\"k\">(</span>options<span class=\"k\">);</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initPopup<span class=\"k\">();</span>","        <span class=\"k\">}</span><span class=\"k\">;</span>","","    <span class=\"k\">var</span> allPopups <span class=\"k\">=</span> <span class=\"k\">[];</span>","    <span class=\"k\">function</span> closeAllPopup<span class=\"k\">(</span> evt<span class=\"k\">,</span>el <span class=\"k\">)</span><span class=\"k\">{</span>","        <span class=\"k\">for</span> <span class=\"k\">(</span> <span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span> i <span class=\"k\">&lt;</span> allPopups<span class=\"k\">.</span>length<span class=\"k\">;</span> i<span class=\"k\">++</span> <span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> pop <span class=\"k\">=</span> allPopups<span class=\"k\">[</span>i<span class=\"k\">];</span>","            <span class=\"k\">if</span> <span class=\"k\">(!</span>pop<span class=\"k\">.</span>isHidden<span class=\"k\">())</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>pop<span class=\"k\">.</span>queryAutoHide<span class=\"k\">(</span>el<span class=\"k\">)</span> <span class=\"k\">!==</span> <span class=\"k\">false</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">if</span><span class=\"k\">(</span>evt<span class=\"k\">&amp;&amp;</span><span class=\"s\">/scroll/ig</span><span class=\"k\">.</span>test<span class=\"k\">(</span>evt<span class=\"k\">.</span>type<span class=\"k\">)&amp;&amp;</span>pop<span class=\"k\">.</span>className<span class=\"k\">==</span><span class=\"s\">\"edui-wordpastepop\"</span><span class=\"k\">)</span>   <span class=\"k\">return</span><span class=\"k\">;</span>","                    pop<span class=\"k\">.</span>hide<span class=\"k\">();</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span>","","        <span class=\"k\">if</span><span class=\"k\">(</span>allPopups<span class=\"k\">.</span>length<span class=\"k\">)</span>","            pop<span class=\"k\">.</span>editor<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">\"afterhidepop\"</span><span class=\"k\">);</span>","    <span class=\"k\">}</span>","","    Popup<span class=\"k\">.</span>postHide <span class=\"k\">=</span> closeAllPopup<span class=\"k\">;</span>","","    <span class=\"k\">var</span> ANCHOR_CLASSES <span class=\"k\">=</span> <span class=\"k\">[</span><span class=\"s\">'edui-anchor-topleft'</span><span class=\"k\">,</span><span class=\"s\">'edui-anchor-topright'</span><span class=\"k\">,</span>","        <span class=\"s\">'edui-anchor-bottomleft'</span><span class=\"k\">,</span><span class=\"s\">'edui-anchor-bottomright'</span><span class=\"k\">];</span>","    Popup<span class=\"k\">.</span>prototype <span class=\"k\">=</span> <span class=\"k\">{</span>","        SHADOW_RADIUS<span class=\"k\">:</span> <span class=\"s\">5</span><span class=\"k\">,</span>","        content<span class=\"k\">:</span> <span class=\"k\">null</span><span class=\"k\">,</span>","        _hidden<span class=\"k\">:</span> <span class=\"k\">false</span><span class=\"k\">,</span>","        autoRender<span class=\"k\">:</span> <span class=\"k\">true</span><span class=\"k\">,</span>","        canSideLeft<span class=\"k\">:</span> <span class=\"k\">true</span><span class=\"k\">,</span>","        canSideUp<span class=\"k\">:</span> <span class=\"k\">true</span><span class=\"k\">,</span>","        initPopup<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initUIBase<span class=\"k\">();</span>","            allPopups<span class=\"k\">.</span>push<span class=\"k\">(</span> <span class=\"k\">this</span> <span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        getHtmlTpl<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"s\">'&lt;div id=\"##\" class=\"edui-popup %%\" onmousedown=\"return false;\"&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">' &lt;div id=\"##_body\" class=\"edui-popup-body\"&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">' &lt;iframe style=\"position:absolute;z-index:-1;left:0;top:0;background-color: transparent;\" frameborder=\"0\" width=\"100%\" height=\"100%\" src=\"javascript:\"&gt;&lt;/iframe&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">' &lt;div class=\"edui-shadow\"&gt;&lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">' &lt;div id=\"##_content\" class=\"edui-popup-content\"&gt;'</span> <span class=\"k\">+</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>getContentHtmlTpl<span class=\"k\">()</span> <span class=\"k\">+</span>","                <span class=\"s\">'  &lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">' &lt;/div&gt;'</span> <span class=\"k\">+</span>","                <span class=\"s\">'&lt;/div&gt;'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        getContentHtmlTpl<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">if</span><span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>content<span class=\"k\">)</span><span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">typeof</span> <span class=\"k\">this</span><span class=\"k\">.</span>content <span class=\"k\">==</span> <span class=\"s\">'string'</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>content<span class=\"k\">;</span>","                <span class=\"k\">}</span>","                <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>content<span class=\"k\">.</span>renderHtml<span class=\"k\">();</span>","            <span class=\"k\">}</span><span class=\"k\">else</span><span class=\"k\">{</span>","                <span class=\"k\">return</span> <span class=\"s\">''</span>","            <span class=\"k\">}</span>","","        <span class=\"k\">}</span><span class=\"k\">,</span>","        _UIBase_postRender<span class=\"k\">:</span> UIBase<span class=\"k\">.</span>prototype<span class=\"k\">.</span>postRender<span class=\"k\">,</span>","        postRender<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","","","            <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>content <span class=\"k\">instanceof</span> UIBase<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>content<span class=\"k\">.</span>postRender<span class=\"k\">();</span>","            <span class=\"k\">}</span>","","            <span class=\"c\">//&#25429;&#33719;&#40736;&#26631;&#28378;&#36718;</span>","            <span class=\"k\">if</span><span class=\"k\">(</span> <span class=\"k\">this</span><span class=\"k\">.</span>captureWheel <span class=\"k\">&amp;&amp;</span> <span class=\"k\">!</span><span class=\"k\">this</span><span class=\"k\">.</span>captured <span class=\"k\">)</span> <span class=\"k\">{</span>","","                <span class=\"k\">this</span><span class=\"k\">.</span>captured <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","","                <span class=\"k\">var</span> winHeight <span class=\"k\">=</span> <span class=\"k\">(</span> document<span class=\"k\">.</span>documentElement<span class=\"k\">.</span>clientHeight <span class=\"k\">||</span> document<span class=\"k\">.</span>body<span class=\"k\">.</span>clientHeight <span class=\"k\">)</span>  <span class=\"k\">-</span> <span class=\"s\">80</span><span class=\"k\">,</span>","                    _height <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>offsetHeight<span class=\"k\">,</span>","                    _top <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getXY<span class=\"k\">(</span> <span class=\"k\">this</span><span class=\"k\">.</span>combox<span class=\"k\">.</span>getDom<span class=\"k\">()</span> <span class=\"k\">).</span>y<span class=\"k\">,</span>","                    content <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'content'</span><span class=\"k\">),</span>","                    me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">;</span>","","                <span class=\"k\">while</span><span class=\"k\">(</span> _top <span class=\"k\">+</span> _height <span class=\"k\">&gt;</span> winHeight <span class=\"k\">)</span> <span class=\"k\">{</span>","                    _height <span class=\"k\">-=</span> <span class=\"s\">30</span><span class=\"k\">;</span>","                    content<span class=\"k\">.</span>style<span class=\"k\">.</span>height <span class=\"k\">=</span> _height <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","","                <span class=\"c\">//&#38459;&#27490;&#22312;combox&#19978;&#30340;&#40736;&#26631;&#28378;&#36718;&#20107;&#20214;, &#38450;&#27490;&#29992;&#25143;&#30340;&#27491;&#24120;&#25805;&#20316;&#34987;&#35823;&#35299;</span>","                <span class=\"k\">if</span><span class=\"k\">(</span> window<span class=\"k\">.</span>XMLHttpRequest <span class=\"k\">)</span> <span class=\"k\">{</span>","","                    domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span> content<span class=\"k\">,</span> <span class=\"k\">(</span> <span class=\"s\">'onmousewheel'</span> <span class=\"k\">in</span> document<span class=\"k\">.</span>body <span class=\"k\">)</span> <span class=\"k\">?</span> <span class=\"s\">'mousewheel'</span> <span class=\"k\">:</span><span class=\"s\">'DOMMouseScroll'</span> <span class=\"k\">,</span> <span class=\"k\">function</span><span class=\"k\">(</span>e<span class=\"k\">)</span><span class=\"k\">{</span>","","                        <span class=\"k\">if</span><span class=\"k\">(</span>e<span class=\"k\">.</span>preventDefault<span class=\"k\">)</span> <span class=\"k\">{</span>","                            e<span class=\"k\">.</span>preventDefault<span class=\"k\">();</span>","                        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                            e<span class=\"k\">.</span>returnValue <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","                        <span class=\"k\">}</span>","","                        <span class=\"k\">if</span><span class=\"k\">(</span> e<span class=\"k\">.</span>wheelDelta <span class=\"k\">)</span> <span class=\"k\">{</span>","","                            content<span class=\"k\">.</span>scrollTop <span class=\"k\">-=</span> <span class=\"k\">(</span> e<span class=\"k\">.</span>wheelDelta <span class=\"k\">/</span> <span class=\"s\">120</span> <span class=\"k\">)*</span><span class=\"s\">60</span><span class=\"k\">;</span>","","                        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","","                            content<span class=\"k\">.</span>scrollTop <span class=\"k\">-=</span> <span class=\"k\">(</span> e<span class=\"k\">.</span>detail <span class=\"k\">/</span> <span class=\"k\">-</span><span class=\"s\">3</span> <span class=\"k\">)*</span><span class=\"s\">60</span><span class=\"k\">;</span>","","                        <span class=\"k\">}</span>","","                    <span class=\"k\">}</span><span class=\"k\">);</span>","","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","","                    <span class=\"c\">//ie6</span>","                    domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(),</span> <span class=\"s\">'mousewheel'</span> <span class=\"k\">,</span> <span class=\"k\">function</span><span class=\"k\">(</span>e<span class=\"k\">)</span><span class=\"k\">{</span>","","                        e<span class=\"k\">.</span>returnValue <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","","                        me<span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'content'</span><span class=\"k\">).</span>scrollTop <span class=\"k\">-=</span> <span class=\"k\">(</span> e<span class=\"k\">.</span>wheelDelta <span class=\"k\">/</span> <span class=\"s\">120</span> <span class=\"k\">)*</span><span class=\"s\">60</span><span class=\"k\">;</span>","","                    <span class=\"k\">}</span><span class=\"k\">);</span>","","                <span class=\"k\">}</span>","","            <span class=\"k\">}</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'postRenderAfter'</span><span class=\"k\">);</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>hide<span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">);</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_UIBase_postRender<span class=\"k\">();</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        _doAutoRender<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(!</span><span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">()</span> <span class=\"k\">&amp;&amp;</span> <span class=\"k\">this</span><span class=\"k\">.</span>autoRender<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>render<span class=\"k\">();</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        mesureSize<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">var</span> box <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'content'</span><span class=\"k\">);</span>","            <span class=\"k\">return</span> uiUtils<span class=\"k\">.</span>getClientRect<span class=\"k\">(</span>box<span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        fitSize<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">if</span><span class=\"k\">(</span> <span class=\"k\">this</span><span class=\"k\">.</span>captureWheel <span class=\"k\">&amp;&amp;</span> <span class=\"k\">this</span><span class=\"k\">.</span>sized <span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>__size<span class=\"k\">;</span>","            <span class=\"k\">}</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>sized <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","            <span class=\"k\">var</span> popBodyEl <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'body'</span><span class=\"k\">);</span>","            popBodyEl<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","            popBodyEl<span class=\"k\">.</span>style<span class=\"k\">.</span>height <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","            <span class=\"k\">var</span> size <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>mesureSize<span class=\"k\">();</span>","            <span class=\"k\">if</span><span class=\"k\">(</span> <span class=\"k\">this</span><span class=\"k\">.</span>captureWheel <span class=\"k\">)</span> <span class=\"k\">{</span>","                popBodyEl<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span>  <span class=\"k\">-(-</span><span class=\"s\">20</span> <span class=\"k\">-</span>size<span class=\"k\">.</span>width<span class=\"k\">)</span> <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                popBodyEl<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span>  size<span class=\"k\">.</span>width <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","            popBodyEl<span class=\"k\">.</span>style<span class=\"k\">.</span>height <span class=\"k\">=</span> size<span class=\"k\">.</span>height <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>__size <span class=\"k\">=</span> size<span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>captureWheel <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'content'</span><span class=\"k\">).</span>style<span class=\"k\">.</span>overflow <span class=\"k\">=</span> <span class=\"s\">'auto'</span><span class=\"k\">);</span>","            <span class=\"k\">return</span> size<span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        showAnchor<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span> element<span class=\"k\">,</span> hoz <span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>showAnchorRect<span class=\"k\">(</span> uiUtils<span class=\"k\">.</span>getClientRect<span class=\"k\">(</span> element <span class=\"k\">),</span> hoz <span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        showAnchorRect<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span> rect<span class=\"k\">,</span> hoz<span class=\"k\">,</span> adj <span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_doAutoRender<span class=\"k\">();</span>","            <span class=\"k\">var</span> vpRect <span class=\"k\">=</span> uiUtils<span class=\"k\">.</span>getViewportRect<span class=\"k\">();</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_show<span class=\"k\">();</span>","            <span class=\"k\">var</span> popSize <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>fitSize<span class=\"k\">();</span>","","            <span class=\"k\">var</span> sideLeft<span class=\"k\">,</span> sideUp<span class=\"k\">,</span> left<span class=\"k\">,</span> top<span class=\"k\">;</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>hoz<span class=\"k\">)</span> <span class=\"k\">{</span>","                sideLeft <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>canSideLeft <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>rect<span class=\"k\">.</span>right <span class=\"k\">+</span> popSize<span class=\"k\">.</span>width <span class=\"k\">&gt;</span> vpRect<span class=\"k\">.</span>right <span class=\"k\">&amp;&amp;</span> rect<span class=\"k\">.</span>left <span class=\"k\">&gt;</span> popSize<span class=\"k\">.</span>width<span class=\"k\">);</span>","                sideUp <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>canSideUp <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>rect<span class=\"k\">.</span>top <span class=\"k\">+</span> popSize<span class=\"k\">.</span>height <span class=\"k\">&gt;</span> vpRect<span class=\"k\">.</span>bottom <span class=\"k\">&amp;&amp;</span> rect<span class=\"k\">.</span>bottom <span class=\"k\">&gt;</span> popSize<span class=\"k\">.</span>height<span class=\"k\">);</span>","                left <span class=\"k\">=</span> <span class=\"k\">(</span>sideLeft <span class=\"k\">?</span> rect<span class=\"k\">.</span>left <span class=\"k\">-</span> popSize<span class=\"k\">.</span>width <span class=\"k\">:</span> rect<span class=\"k\">.</span>right<span class=\"k\">);</span>","                top <span class=\"k\">=</span> <span class=\"k\">(</span>sideUp <span class=\"k\">?</span> rect<span class=\"k\">.</span>bottom <span class=\"k\">-</span> popSize<span class=\"k\">.</span>height <span class=\"k\">:</span> rect<span class=\"k\">.</span>top<span class=\"k\">);</span>","            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                sideLeft <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>canSideLeft <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>rect<span class=\"k\">.</span>right <span class=\"k\">+</span> popSize<span class=\"k\">.</span>width <span class=\"k\">&gt;</span> vpRect<span class=\"k\">.</span>right <span class=\"k\">&amp;&amp;</span> rect<span class=\"k\">.</span>left <span class=\"k\">&gt;</span> popSize<span class=\"k\">.</span>width<span class=\"k\">);</span>","                sideUp <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>canSideUp <span class=\"k\">&amp;&amp;</span> <span class=\"k\">(</span>rect<span class=\"k\">.</span>top <span class=\"k\">+</span> popSize<span class=\"k\">.</span>height <span class=\"k\">&gt;</span> vpRect<span class=\"k\">.</span>bottom <span class=\"k\">&amp;&amp;</span> rect<span class=\"k\">.</span>bottom <span class=\"k\">&gt;</span> popSize<span class=\"k\">.</span>height<span class=\"k\">);</span>","                left <span class=\"k\">=</span> <span class=\"k\">(</span>sideLeft <span class=\"k\">?</span> rect<span class=\"k\">.</span>right <span class=\"k\">-</span> popSize<span class=\"k\">.</span>width <span class=\"k\">:</span> rect<span class=\"k\">.</span>left<span class=\"k\">);</span>","                top <span class=\"k\">=</span> <span class=\"k\">(</span>sideUp <span class=\"k\">?</span> rect<span class=\"k\">.</span>top <span class=\"k\">-</span> popSize<span class=\"k\">.</span>height <span class=\"k\">:</span> rect<span class=\"k\">.</span>bottom<span class=\"k\">);</span>","            <span class=\"k\">}</span>","","            <span class=\"k\">var</span> popEl <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">();</span>","            uiUtils<span class=\"k\">.</span>setViewportOffset<span class=\"k\">(</span>popEl<span class=\"k\">,</span> <span class=\"k\">{</span>","                left<span class=\"k\">:</span> left<span class=\"k\">,</span>","                top<span class=\"k\">:</span> top","            <span class=\"k\">}</span><span class=\"k\">);</span>","            domUtils<span class=\"k\">.</span>removeClasses<span class=\"k\">(</span>popEl<span class=\"k\">,</span> ANCHOR_CLASSES<span class=\"k\">);</span>","            popEl<span class=\"k\">.</span>className <span class=\"k\">+=</span> <span class=\"s\">' '</span> <span class=\"k\">+</span> ANCHOR_CLASSES<span class=\"k\">[(</span>sideUp <span class=\"k\">?</span> <span class=\"s\">1</span> <span class=\"k\">:</span> <span class=\"s\">0</span><span class=\"k\">)</span> <span class=\"k\">*</span> <span class=\"s\">2</span> <span class=\"k\">+</span> <span class=\"k\">(</span>sideLeft <span class=\"k\">?</span> <span class=\"s\">1</span> <span class=\"k\">:</span> <span class=\"s\">0</span><span class=\"k\">)];</span>","            <span class=\"k\">if</span><span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">)</span><span class=\"k\">{</span>","                popEl<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">.</span>container<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">*</span> <span class=\"s\">1</span> <span class=\"k\">+</span> <span class=\"s\">10</span><span class=\"k\">;</span>","                baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>uiUtils<span class=\"k\">.</span>getFixedLayer<span class=\"k\">().</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">=</span> popEl<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">-</span> <span class=\"s\">1</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","","        <span class=\"k\">}</span><span class=\"k\">,</span>","        showAt<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span>offset<span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> left <span class=\"k\">=</span> offset<span class=\"k\">.</span>left<span class=\"k\">;</span>","            <span class=\"k\">var</span> top <span class=\"k\">=</span> offset<span class=\"k\">.</span>top<span class=\"k\">;</span>","            <span class=\"k\">var</span> rect <span class=\"k\">=</span> <span class=\"k\">{</span>","                left<span class=\"k\">:</span> left<span class=\"k\">,</span>","                top<span class=\"k\">:</span> top<span class=\"k\">,</span>","                right<span class=\"k\">:</span> left<span class=\"k\">,</span>","                bottom<span class=\"k\">:</span> top<span class=\"k\">,</span>","                height<span class=\"k\">:</span> <span class=\"s\">0</span><span class=\"k\">,</span>","                width<span class=\"k\">:</span> <span class=\"s\">0</span>","            <span class=\"k\">}</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>showAnchorRect<span class=\"k\">(</span>rect<span class=\"k\">,</span> <span class=\"k\">false</span><span class=\"k\">,</span> <span class=\"k\">true</span><span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        _show<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>_hidden<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">var</span> box <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">();</span>","                box<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>_hidden <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","<span class=\"c\">//                if (box.setActive) {</span>","<span class=\"c\">//                    box.setActive();</span>","<span class=\"c\">//                }</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'show'</span><span class=\"k\">);</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        isHidden<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>_hidden<span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        show<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_doAutoRender<span class=\"k\">();</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_show<span class=\"k\">();</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        hide<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span>notNofity<span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(!</span><span class=\"k\">this</span><span class=\"k\">.</span>_hidden <span class=\"k\">&amp;&amp;</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">())</span> <span class=\"k\">{</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>_hidden <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                <span class=\"k\">if</span> <span class=\"k\">(!</span>notNofity<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">this</span><span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'hide'</span><span class=\"k\">);</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        queryAutoHide<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span>el<span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"k\">!</span>el <span class=\"k\">||</span> <span class=\"k\">!</span>uiUtils<span class=\"k\">.</span>contains<span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(),</span> el<span class=\"k\">);</span>","        <span class=\"k\">}</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","    utils<span class=\"k\">.</span>inherits<span class=\"k\">(</span>Popup<span class=\"k\">,</span> UIBase<span class=\"k\">);</span>","    ","    domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span> document<span class=\"k\">,</span> <span class=\"s\">'mousedown'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span> evt <span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">var</span> el <span class=\"k\">=</span> evt<span class=\"k\">.</span>target <span class=\"k\">||</span> evt<span class=\"k\">.</span>srcElement<span class=\"k\">;</span>","        closeAllPopup<span class=\"k\">(</span> evt<span class=\"k\">,</span>el <span class=\"k\">);</span>","    <span class=\"k\">}</span> <span class=\"k\">);</span>","    domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span> window<span class=\"k\">,</span> <span class=\"s\">'scroll'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>evt<span class=\"k\">,</span>el<span class=\"k\">)</span> <span class=\"k\">{</span>","        closeAllPopup<span class=\"k\">(</span> evt<span class=\"k\">,</span>el <span class=\"k\">);</span>","    <span class=\"k\">}</span> <span class=\"k\">);</span>","","<span class=\"k\">}</span><span class=\"k\">)();</span>"];
_$jscoverage['ui/popup.js'][3]++;
(function () {
  _$jscoverage['ui/popup.js'][4]++;
  var utils = baidu.editor.utils, uiUtils = baidu.editor.ui.uiUtils, domUtils = baidu.editor.dom.domUtils, UIBase = baidu.editor.ui.UIBase, Popup = (baidu.editor.ui.Popup = (function (options) {
  _$jscoverage['ui/popup.js'][9]++;
  this.initOptions(options);
  _$jscoverage['ui/popup.js'][10]++;
  this.initPopup();
}));
  _$jscoverage['ui/popup.js'][13]++;
  var allPopups = [];
  _$jscoverage['ui/popup.js'][14]++;
  function closeAllPopup(evt, el) {
    _$jscoverage['ui/popup.js'][15]++;
    for (var i = 0; (i < allPopups.length); (i++)) {
      _$jscoverage['ui/popup.js'][16]++;
      var pop = allPopups[i];
      _$jscoverage['ui/popup.js'][17]++;
      if ((! pop.isHidden())) {
        _$jscoverage['ui/popup.js'][18]++;
        if ((pop.queryAutoHide(el) !== false)) {
          _$jscoverage['ui/popup.js'][19]++;
          if ((evt && /scroll/gi.test(evt.type) && (pop.className == "edui-wordpastepop"))) {
            _$jscoverage['ui/popup.js'][19]++;
            return;
          }
          _$jscoverage['ui/popup.js'][20]++;
          pop.hide();
        }
      }
}
    _$jscoverage['ui/popup.js'][25]++;
    if (allPopups.length) {
      _$jscoverage['ui/popup.js'][26]++;
      pop.editor.fireEvent("afterhidepop");
    }
}
  _$jscoverage['ui/popup.js'][29]++;
  Popup.postHide = closeAllPopup;
  _$jscoverage['ui/popup.js'][31]++;
  var ANCHOR_CLASSES = ["edui-anchor-topleft", "edui-anchor-topright", "edui-anchor-bottomleft", "edui-anchor-bottomright"];
  _$jscoverage['ui/popup.js'][33]++;
  Popup.prototype = {SHADOW_RADIUS: 5, content: null, _hidden: false, autoRender: true, canSideLeft: true, canSideUp: true, initPopup: (function () {
  _$jscoverage['ui/popup.js'][41]++;
  this.initUIBase();
  _$jscoverage['ui/popup.js'][42]++;
  allPopups.push(this);
}), getHtmlTpl: (function () {
  _$jscoverage['ui/popup.js'][45]++;
  return ("<div id=\"##\" class=\"edui-popup %%\" onmousedown=\"return false;\">" + " <div id=\"##_body\" class=\"edui-popup-body\">" + " <iframe style=\"position:absolute;z-index:-1;left:0;top:0;background-color: transparent;\" frameborder=\"0\" width=\"100%\" height=\"100%\" src=\"javascript:\"></iframe>" + " <div class=\"edui-shadow\"></div>" + " <div id=\"##_content\" class=\"edui-popup-content\">" + this.getContentHtmlTpl() + "  </div>" + " </div>" + "</div>");
}), getContentHtmlTpl: (function () {
  _$jscoverage['ui/popup.js'][56]++;
  if (this.content) {
    _$jscoverage['ui/popup.js'][57]++;
    if (((typeof this.content) == "string")) {
      _$jscoverage['ui/popup.js'][58]++;
      return this.content;
    }
    _$jscoverage['ui/popup.js'][60]++;
    return this.content.renderHtml();
  }
  else {
    _$jscoverage['ui/popup.js'][62]++;
    return "";
  }
}), _UIBase_postRender: UIBase.prototype.postRender, postRender: (function () {
  _$jscoverage['ui/popup.js'][70]++;
  if ((this.content instanceof UIBase)) {
    _$jscoverage['ui/popup.js'][71]++;
    this.content.postRender();
  }
  _$jscoverage['ui/popup.js'][75]++;
  if ((this.captureWheel && (! this.captured))) {
    _$jscoverage['ui/popup.js'][77]++;
    this.captured = true;
    _$jscoverage['ui/popup.js'][79]++;
    var winHeight = ((document.documentElement.clientHeight || document.body.clientHeight) - 80), _height = this.getDom().offsetHeight, _top = domUtils.getXY(this.combox.getDom()).y, content = this.getDom("content"), me = this;
    _$jscoverage['ui/popup.js'][85]++;
    while (((_top + _height) > winHeight)) {
      _$jscoverage['ui/popup.js'][86]++;
      _height -= 30;
      _$jscoverage['ui/popup.js'][87]++;
      content.style.height = (_height + "px");
}
    _$jscoverage['ui/popup.js'][91]++;
    if (window.XMLHttpRequest) {
      _$jscoverage['ui/popup.js'][93]++;
      domUtils.on(content, (("onmousewheel" in document.body)? "mousewheel": "DOMMouseScroll"), (function (e) {
  _$jscoverage['ui/popup.js'][95]++;
  if (e.preventDefault) {
    _$jscoverage['ui/popup.js'][96]++;
    e.preventDefault();
  }
  else {
    _$jscoverage['ui/popup.js'][98]++;
    e.returnValue = false;
  }
  _$jscoverage['ui/popup.js'][101]++;
  if (e.wheelDelta) {
    _$jscoverage['ui/popup.js'][103]++;
    content.scrollTop -= ((e.wheelDelta / 120) * 60);
  }
  else {
    _$jscoverage['ui/popup.js'][107]++;
    content.scrollTop -= ((e.detail / -3) * 60);
  }
}));
    }
    else {
      _$jscoverage['ui/popup.js'][116]++;
      domUtils.on(this.getDom(), "mousewheel", (function (e) {
  _$jscoverage['ui/popup.js'][118]++;
  e.returnValue = false;
  _$jscoverage['ui/popup.js'][120]++;
  me.getDom("content").scrollTop -= ((e.wheelDelta / 120) * 60);
}));
    }
  }
  _$jscoverage['ui/popup.js'][127]++;
  this.fireEvent("postRenderAfter");
  _$jscoverage['ui/popup.js'][128]++;
  this.hide(true);
  _$jscoverage['ui/popup.js'][129]++;
  this._UIBase_postRender();
}), _doAutoRender: (function () {
  _$jscoverage['ui/popup.js'][132]++;
  if (((! this.getDom()) && this.autoRender)) {
    _$jscoverage['ui/popup.js'][133]++;
    this.render();
  }
}), mesureSize: (function () {
  _$jscoverage['ui/popup.js'][137]++;
  var box = this.getDom("content");
  _$jscoverage['ui/popup.js'][138]++;
  return uiUtils.getClientRect(box);
}), fitSize: (function () {
  _$jscoverage['ui/popup.js'][141]++;
  if ((this.captureWheel && this.sized)) {
    _$jscoverage['ui/popup.js'][142]++;
    return this.__size;
  }
  _$jscoverage['ui/popup.js'][144]++;
  this.sized = true;
  _$jscoverage['ui/popup.js'][145]++;
  var popBodyEl = this.getDom("body");
  _$jscoverage['ui/popup.js'][146]++;
  popBodyEl.style.width = "";
  _$jscoverage['ui/popup.js'][147]++;
  popBodyEl.style.height = "";
  _$jscoverage['ui/popup.js'][148]++;
  var size = this.mesureSize();
  _$jscoverage['ui/popup.js'][149]++;
  if (this.captureWheel) {
    _$jscoverage['ui/popup.js'][150]++;
    popBodyEl.style.width = ((- (-20 - size.width)) + "px");
  }
  else {
    _$jscoverage['ui/popup.js'][152]++;
    popBodyEl.style.width = (size.width + "px");
  }
  _$jscoverage['ui/popup.js'][154]++;
  popBodyEl.style.height = (size.height + "px");
  _$jscoverage['ui/popup.js'][155]++;
  this.__size = size;
  _$jscoverage['ui/popup.js'][156]++;
  (this.captureWheel && (this.getDom("content").style.overflow = "auto"));
  _$jscoverage['ui/popup.js'][157]++;
  return size;
}), showAnchor: (function (element, hoz) {
  _$jscoverage['ui/popup.js'][160]++;
  this.showAnchorRect(uiUtils.getClientRect(element), hoz);
}), showAnchorRect: (function (rect, hoz, adj) {
  _$jscoverage['ui/popup.js'][163]++;
  this._doAutoRender();
  _$jscoverage['ui/popup.js'][164]++;
  var vpRect = uiUtils.getViewportRect();
  _$jscoverage['ui/popup.js'][165]++;
  this._show();
  _$jscoverage['ui/popup.js'][166]++;
  var popSize = this.fitSize();
  _$jscoverage['ui/popup.js'][168]++;
  var sideLeft, sideUp, left, top;
  _$jscoverage['ui/popup.js'][169]++;
  if (hoz) {
    _$jscoverage['ui/popup.js'][170]++;
    sideLeft = (this.canSideLeft && (((rect.right + popSize.width) > vpRect.right) && (rect.left > popSize.width)));
    _$jscoverage['ui/popup.js'][171]++;
    sideUp = (this.canSideUp && (((rect.top + popSize.height) > vpRect.bottom) && (rect.bottom > popSize.height)));
    _$jscoverage['ui/popup.js'][172]++;
    left = (sideLeft? (rect.left - popSize.width): rect.right);
    _$jscoverage['ui/popup.js'][173]++;
    top = (sideUp? (rect.bottom - popSize.height): rect.top);
  }
  else {
    _$jscoverage['ui/popup.js'][175]++;
    sideLeft = (this.canSideLeft && (((rect.right + popSize.width) > vpRect.right) && (rect.left > popSize.width)));
    _$jscoverage['ui/popup.js'][176]++;
    sideUp = (this.canSideUp && (((rect.top + popSize.height) > vpRect.bottom) && (rect.bottom > popSize.height)));
    _$jscoverage['ui/popup.js'][177]++;
    left = (sideLeft? (rect.right - popSize.width): rect.left);
    _$jscoverage['ui/popup.js'][178]++;
    top = (sideUp? (rect.top - popSize.height): rect.bottom);
  }
  _$jscoverage['ui/popup.js'][181]++;
  var popEl = this.getDom();
  _$jscoverage['ui/popup.js'][182]++;
  uiUtils.setViewportOffset(popEl, {left: left, top: top});
  _$jscoverage['ui/popup.js'][186]++;
  domUtils.removeClasses(popEl, ANCHOR_CLASSES);
  _$jscoverage['ui/popup.js'][187]++;
  popEl.className += (" " + ANCHOR_CLASSES[(((sideUp? 1: 0) * 2) + (sideLeft? 1: 0))]);
  _$jscoverage['ui/popup.js'][188]++;
  if (this.editor) {
    _$jscoverage['ui/popup.js'][189]++;
    popEl.style.zIndex = ((this.editor.container.style.zIndex * 1) + 10);
    _$jscoverage['ui/popup.js'][190]++;
    baidu.editor.ui.uiUtils.getFixedLayer().style.zIndex = (popEl.style.zIndex - 1);
  }
}), showAt: (function (offset) {
  _$jscoverage['ui/popup.js'][195]++;
  var left = offset.left;
  _$jscoverage['ui/popup.js'][196]++;
  var top = offset.top;
  _$jscoverage['ui/popup.js'][197]++;
  var rect = {left: left, top: top, right: left, bottom: top, height: 0, width: 0};
  _$jscoverage['ui/popup.js'][205]++;
  this.showAnchorRect(rect, false, true);
}), _show: (function () {
  _$jscoverage['ui/popup.js'][208]++;
  if (this._hidden) {
    _$jscoverage['ui/popup.js'][209]++;
    var box = this.getDom();
    _$jscoverage['ui/popup.js'][210]++;
    box.style.display = "";
    _$jscoverage['ui/popup.js'][211]++;
    this._hidden = false;
    _$jscoverage['ui/popup.js'][215]++;
    this.fireEvent("show");
  }
}), isHidden: (function () {
  _$jscoverage['ui/popup.js'][219]++;
  return this._hidden;
}), show: (function () {
  _$jscoverage['ui/popup.js'][222]++;
  this._doAutoRender();
  _$jscoverage['ui/popup.js'][223]++;
  this._show();
}), hide: (function (notNofity) {
  _$jscoverage['ui/popup.js'][226]++;
  if (((! this._hidden) && this.getDom())) {
    _$jscoverage['ui/popup.js'][227]++;
    this.getDom().style.display = "none";
    _$jscoverage['ui/popup.js'][228]++;
    this._hidden = true;
    _$jscoverage['ui/popup.js'][229]++;
    if ((! notNofity)) {
      _$jscoverage['ui/popup.js'][230]++;
      this.fireEvent("hide");
    }
  }
}), queryAutoHide: (function (el) {
  _$jscoverage['ui/popup.js'][235]++;
  return ((! el) || (! uiUtils.contains(this.getDom(), el)));
})};
  _$jscoverage['ui/popup.js'][238]++;
  utils.inherits(Popup, UIBase);
  _$jscoverage['ui/popup.js'][240]++;
  domUtils.on(document, "mousedown", (function (evt) {
  _$jscoverage['ui/popup.js'][241]++;
  var el = (evt.target || evt.srcElement);
  _$jscoverage['ui/popup.js'][242]++;
  closeAllPopup(evt, el);
}));
  _$jscoverage['ui/popup.js'][244]++;
  domUtils.on(window, "scroll", (function (evt, el) {
  _$jscoverage['ui/popup.js'][245]++;
  closeAllPopup(evt, el);
}));
})();
