/*! fineui */
function accAdd ( a , b ) { var c , d , e , f ; try { c = a . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { c = 0 } try { d = b . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { d = 0 } if ( f = Math . abs ( c - d ) , e = Math . pow ( 10 , Math . max ( c , d ) ) , f > 0 ) { var h = Math . pow ( 10 , f ) ; c > d ? ( a = Number ( a . toString ( ) . replace ( "." , "" ) ) , b = Number ( b . toString ( ) . replace ( "." , "" ) ) * h ) : ( a = Number ( a . toString ( ) . replace ( "." , "" ) ) * h , b = Number ( b . toString ( ) . replace ( "." , "" ) ) ) } else a = Number ( a . toString ( ) . replace ( "." , "" ) ) , b = Number ( b . toString ( ) . replace ( "." , "" ) ) ; return ( a + b ) / e } function accSub ( a , b ) { var c , d , e , f ; try { c = a . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { c = 0 } try { d = b . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { d = 0 } return e = Math . pow ( 10 , Math . max ( c , d ) ) , f = c >= d ? c : d , ( ( a * e - b * e ) / e ) . toFixed ( f ) } function accMul ( a , b ) { var c = 0 , d = a . toString ( ) , e = b . toString ( ) ; try { c += d . split ( "." ) [ 1 ] . length } catch ( f ) { } try { c += e . split ( "." ) [ 1 ] . length } catch ( f ) { } return Number ( d . replace ( "." , "" ) ) * Number ( e . replace ( "." , "" ) ) / Math . pow ( 10 , c ) } function accDiv ( arg1 , arg2 ) { var t1 = 0 , t2 = 0 , r1 , r2 ; try { t1 = arg1 . toString ( ) . split ( "." ) [ 1 ] . length } catch ( e ) { } try { t2 = arg2 . toString ( ) . split ( "." ) [ 1 ] . length } catch ( e ) { } with ( Math ) return r1 = Number ( arg1 . toString ( ) . replace ( "." , "" ) ) , r2 = Number ( arg2 . toString ( ) . replace ( "." , "" ) ) , t2 > t1 ? r1 / r2 * pow ( 10 , t2 - t1 ) : r1 / r2 / pow ( 10 , t1 - t2 ) } ! function ( a , b ) { function c ( a ) { var b = a . length , c = ia . type ( a ) ; return ! ia . isWindow ( a ) && ( ! ( 1 !== a . nodeType || ! b ) || ( "array" === c || "function" !== c && ( 0 === b || "number" == typeof b && b > 0 && b - 1 in a ) ) ) } function d ( a ) { var b = xa [ a ] = { } ; return ia . each ( a . match ( ka ) || [ ] , function ( a , c ) { b [ c ] = ! 0 } ) , b } function e ( a , c , d , e ) { if ( ia . acceptData ( a ) ) { var f , g , h = ia . expando , i = "string" == typeof c , j = a . nodeType , k = j ? ia . cache : a , l = j ? a [ h ] : a [ h ] && h ; if ( l && k [ l ] && ( e || k [ l ] . data ) || ! i || d !== b ) return l || ( j ? a [ h ] = l = _ . pop ( ) || ia . guid ++ : l = h ) , k [ l ] || ( k [ l ] = { } , j || ( k [ l ] . toJSON = ia . noop ) ) , "object" != typeof c && "function" != typeof c || ( e ? k [ l ] = ia . extend ( k [ l ] , c ) : k [ l ] . data = ia . extend ( k [ l ] . data , c ) ) , f = k [ l ] , e || ( f . data || ( f . data = { } ) , f = f . data ) , d !== b && ( f [ ia . camelCase ( c ) ] = d ) , i ? ( g = f [ c ] , null == g && ( g = f [ ia . camelCase ( c ) ] ) ) : g = f , g } } function f ( a , b , c ) { if ( ia . acceptData ( a ) ) { var d , e , f , g = a . nodeType , i = g ? ia . cache : a , j = g ? a [ ia . expando ] : ia . expando ; if ( i [ j ] ) { if ( b && ( f = c ? i [ j ] : i [ j ] . data ) ) { ia . isArray ( b ) ? b = b . concat ( ia . map ( b , ia . camelCase ) ) : b in f ? b = [ b ] : ( b = ia . camelCase ( b ) , b = b in f ? [ b ] : b . split ( " " ) ) ; for ( d = 0 , e = b . length ; d < e ; d ++ ) delete f [ b [ d ] ] ; if ( ! ( c ? h : ia . isEmptyObject ) ( f ) ) return } ( c || ( delete i [ j ] . data , h ( i [ j ] ) ) ) && ( g ? ia . cleanData ( [ a ] , ! 0 ) : ia . support . deleteExpando || i != i . window ? delete i [ j ] : i [ j ] = null ) } } } function g ( a , c , d ) { if ( d === b && 1 === a . nodeType ) { var e = "data-" + c . replace ( za , "-$1" ) . toLowerCase ( ) ; if ( d = a . getAttribute ( e ) , "string" == typeof d ) { try { d = "true" === d || "false" !== d && ( "null" === d ? null : + d + "" === d ? + d : ya . test ( d ) ? ia . parseJSON ( d ) : d ) } catch ( f ) { } ia . data ( a , c , d ) } else d = b } return d } function h ( a ) { var b ; for ( b in a ) if ( ( "data" !== b || ! ia . isEmptyObject ( a [ b ] ) ) && "toJSON" !== b ) return ! 1 ; return ! 0 } function i ( ) { return ! 0 } function j ( ) { return ! 1 } function k ( a , b ) { do a = a [ b ] ; while ( a && 1 !== a . nodeType ) ; return a } function l ( a , b , c ) { if ( b = b || 0 , ia . isFunction ( b ) ) return ia . grep ( a , function ( a , d ) { var e = ! ! b . call ( a , d , a ) ; return e === c } ) ; if ( b . nodeType ) return ia . grep ( a , function ( a ) { return a === b === c } ) ; if ( "string" == typeof b ) { var d = ia . grep ( a , function ( a ) { return 1 === a . nodeType } ) ; if ( Ra . test ( b ) ) return ia . filter ( b , d , ! c ) ; b = ia . filter ( b , d ) } return ia . grep ( a , function ( a ) { return ia . inArray ( a , b ) >= 0 === c } ) } function m ( a ) { var b = Ua . split ( "|" ) , c = a . createDocumentFragment ( ) ; if ( c . createElement ) for ( ; b . length ; ) c . createElement ( b . pop ( ) ) ; return c } function n ( a , b ) { return a . getElementsByTagName ( b ) [ 0 ] || a . appendChild ( a . ownerDocument . createElement ( b ) ) } function o ( a ) { var b = a . getAttributeNode ( "type" ) ; return a . type = ( b && b . specified ) + "/" + a . type , a } function p ( a ) { var b = eb . exec ( a . type ) ; return b ? a . type = b [ 1 ] : a . removeAttribute ( "type" ) , a } function q ( a , b ) { for ( var c , d = 0 ; null != ( c = a [ d ] ) ; d ++ ) ia . _data ( c , "globalEval" , ! b || ia . _data ( b [ d ] , "globalEval" ) ) } function r ( a , b ) { if ( 1 === b . nodeType && ia . hasData ( a ) ) { var c , d , e , f = ia . _data ( a ) , g = ia . _data ( b , f ) , h = f . events ; if ( h ) { delete g . handle , g . events = { } ; for ( c in h ) for ( d = 0 , e = h [ c ] . length ; d < e ; d ++ ) ia . event . add ( b , c , h [ c ] [ d ] ) } g . data && ( g . data = ia . extend ( { } , g . data ) ) } } function s ( a , b ) { var c , d , e ; if ( 1 === b . nodeType ) { if ( c = b . nodeName . toLowerCase ( ) , ! ia . support . noCloneEvent &&
Ga . test ( c ) ? ! Ia && Ha . test ( c ) ? a [ ia . camelCase ( "default-" + c ) ] = a [ d ] = ! 1 : a [ d ] = ! 1 : ia . attr ( a , c , "" ) , a . removeAttribute ( Ia ? c : d ) } , attrHooks : { type : { set : function ( a , b ) { if ( ! ia . support . radioValue && "radio" === b && ia . nodeName ( a , "input" ) ) { var c = a . value ; return a . setAttribute ( "type" , b ) , c && ( a . value = c ) , b } } } } , propFix : { tabindex : "tabIndex" , readonly : "readOnly" , "for" : "htmlFor" , "class" : "className" , maxlength : "maxLength" , cellspacing : "cellSpacing" , cellpadding : "cellPadding" , rowspan : "rowSpan" , colspan : "colSpan" , usemap : "useMap" , frameborder : "frameBorder" , contenteditable : "contentEditable" } , prop : function ( a , c , d ) { var e , f , g , h = a . nodeType ; if ( a && 3 !== h && 8 !== h && 2 !== h ) return g = 1 !== h || ! ia . isXMLDoc ( a ) , g && ( c = ia . propFix [ c ] || c , f = ia . propHooks [ c ] ) , d !== b ? f && "set" in f && ( e = f . set ( a , d , c ) ) !== b ? e : a [ c ] = d : f && "get" in f && null !== ( e = f . get ( a , c ) ) ? e : a [ c ] } , propHooks : { tabIndex : { get : function ( a ) { var c = a . getAttributeNode ( "tabindex" ) ; return c && c . specified ? parseInt ( c . value , 10 ) : Ea . test ( a . nodeName ) || Fa . test ( a . nodeName ) && a . href ? 0 : b } } } } ) , Ba = { get : function ( a , c ) { var d = ia . prop ( a , c ) , e = "boolean" == typeof d && a . getAttribute ( c ) , f = "boolean" == typeof d ? Ja && Ia ? null != e : Ha . test ( c ) ? a [ ia . camelCase ( "default-" + c ) ] : ! ! e : a . getAttributeNode ( c ) ; return f && f . value !== ! 1 ? c . toLowerCase ( ) : b } , set : function ( a , b , c ) { return b === ! 1 ? ia . removeAttr ( a , c ) : Ja && Ia || ! Ha . test ( c ) ? a . setAttribute ( ! Ia && ia . propFix [ c ] || c , c ) : a [ ia . camelCase ( "default-" + c ) ] = a [ c ] = ! 0 , c } } , Ja && Ia || ( ia . attrHooks . value = { get : function ( a , c ) { var d = a . getAttributeNode ( c ) ; return ia . nodeName ( a , "input" ) ? a . defaultValue : d && d . specified ? d . value : b } , set : function ( a , b , c ) { return ia . nodeName ( a , "input" ) ? void ( a . defaultValue = b ) : Aa && Aa . set ( a , b , c ) } } ) , Ia || ( Aa = ia . valHooks . button = { get : function ( a , c ) { var d = a . getAttributeNode ( c ) ; return d && ( "id" === c || "name" === c || "coords" === c ? "" !== d . value : d . specified ) ? d . value : b } , set : function ( a , c , d ) { var e = a . getAttributeNode ( d ) ; return e || a . setAttributeNode ( e = a . ownerDocument . createAttribute ( d ) ) , e . value = c += "" , "value" === d || c === a . getAttribute ( d ) ? c : b } } , ia . attrHooks . contenteditable = { get : Aa . get , set : function ( a , b , c ) { Aa . set ( a , "" !== b && b , c ) } } , ia . each ( [ "width" , "height" ] , function ( a , b ) { ia . attrHooks [ b ] = ia . extend ( ia . attrHooks [ b ] , { set : function ( a , c ) { if ( "" === c ) return a . setAttribute ( b , "auto" ) , c } } ) } ) ) , ia . support . hrefNormalized || ( ia . each ( [ "href" , "src" , "width" , "height" ] , function ( a , c ) { ia . attrHooks [ c ] = ia . extend ( ia . attrHooks [ c ] , { get : function ( a ) { var d = a . getAttribute ( c , 2 ) ; return null == d ? b : d } } ) } ) , ia . each ( [ "href" , "src" ] , function ( a , b ) { ia . propHooks [ b ] = { get : function ( a ) { return a . getAttribute ( b , 4 ) } } } ) ) , ia . support . style || ( ia . attrHooks . style = { get : function ( a ) { return a . style . cssText || b } , set : function ( a , b ) { return a . style . cssText = b + "" } } ) , ia . support . optSelected || ( ia . propHooks . selected = ia . extend ( ia . propHooks . selected , { get : function ( a ) { var b = a . parentNode ; return b && ( b . selectedIndex , b . parentNode && b . parentNode . selectedIndex ) , null } } ) ) , ia . support . enctype || ( ia . propFix . enctype = "encoding" ) , ia . support . checkOn || ia . each ( [ "radio" , "checkbox" ] , function ( ) { ia . valHooks [ this ] = { get : function ( a ) { return null === a . getAttribute ( "value" ) ? "on" : a . value } } } ) , ia . each ( [ "radio" , "checkbox" ] , function ( ) { ia . valHooks [ this ] = ia . extend ( ia . valHooks [ this ] , { set : function ( a , b ) { if ( ia . isArray ( b ) ) return a . checked = ia . inArray ( ia ( a ) . val ( ) , b ) >= 0 } } ) } ) ; var Ka = /^(?:input|select|textarea)$/i , La = /^key/ , Ma = /^(?:mouse|contextmenu)|click/ , Na = /^(?:focusinfocus|focusoutblur)$/ , Oa = /^([^.]*)(?:\.(.+)|)$/ ; ia . event = { global : { } , add : function ( a , c , d , e , f ) { var g , h , i , j , k , l , m , n , o , p , q , r = ia . _data ( a ) ; if ( r ) { for ( d . handler && ( j = d , d = j . handler , f = j . selector ) , d . guid || ( d . guid = ia . guid ++ ) , ( h = r . events ) || ( h = r . events = { } ) , ( l = r . handle ) || ( l = r . handle = function ( a ) { return typeof ia === V || a && ia . event . triggered === a . type ? b : ia . event . dispatch . apply ( l . elem , arguments ) } , l . elem = a ) , c = ( c || "" ) . match ( ka ) || [ "" ] , i = c . length ; i -- ; ) g = Oa . exec ( c [ i ] ) || [ ] , o = q = g [ 1 ] , p = ( g [ 2 ] || "" ) . split ( "." ) . sort ( ) , k = ia . event . special [ o ] || { } , o = ( f ? k . delegateType : k . bindType ) || o , k = ia . event . special [ o ] || { } , m = ia . extend ( { type : o , origType : q , data : e , handler : d , guid : d . guid , selector : f , needsContext : f && ia . expr . match . needsContext . test ( f ) , namespace : p . join ( "." ) } , j ) , ( n = h [ o ] ) || ( n = h [ o ] = [ ] , n . delegateCount = 0 , k . setup && k . setup . call ( a , e , p , l ) !== ! 1 || ( a . addEventListener ? a . addEventListener ( o , l , ! 1 ) : a . att
return this . pushStack ( l ( this , a , ! 0 ) ) } , is : function ( a ) { return ! ! a && ( "string" == typeof a ? Sa . test ( a ) ? ia ( a , this . context ) . index ( this [ 0 ] ) >= 0 : ia . filter ( a , this ) . length > 0 : this . filter ( a ) . length > 0 ) } , closest : function ( a , b ) { for ( var c , d = 0 , e = this . length , f = [ ] , g = Sa . test ( a ) || "string" != typeof a ? ia ( a , b || this . context ) : 0 ; d < e ; d ++ ) for ( c = this [ d ] ; c && c . ownerDocument && c !== b && 11 !== c . nodeType ; ) { if ( g ? g . index ( c ) > - 1 : ia . find . matchesSelector ( c , a ) ) { f . push ( c ) ; break } c = c . parentNode } return this . pushStack ( f . length > 1 ? ia . unique ( f ) : f ) } , index : function ( a ) { return a ? "string" == typeof a ? ia . inArray ( this [ 0 ] , ia ( a ) ) : ia . inArray ( a . jquery ? a [ 0 ] : a , this ) : this [ 0 ] && this [ 0 ] . parentNode ? this . first ( ) . prevAll ( ) . length : - 1 } , add : function ( a , b ) { var c = "string" == typeof a ? ia ( a , b ) : ia . makeArray ( a && a . nodeType ? [ a ] : a ) , d = ia . merge ( this . get ( ) , c ) ; return this . pushStack ( ia . unique ( d ) ) } , addBack : function ( a ) { return this . add ( null == a ? this . prevObject : this . prevObject . filter ( a ) ) } } ) , ia . fn . andSelf = ia . fn . addBack , ia . each ( { parent : function ( a ) { var b = a . parentNode ; return b && 11 !== b . nodeType ? b : null } , parents : function ( a ) { return ia . dir ( a , "parentNode" ) } , parentsUntil : function ( a , b , c ) { return ia . dir ( a , "parentNode" , c ) } , next : function ( a ) { return k ( a , "nextSibling" ) } , prev : function ( a ) { return k ( a , "previousSibling" ) } , nextAll : function ( a ) { return ia . dir ( a , "nextSibling" ) } , prevAll : function ( a ) { return ia . dir ( a , "previousSibling" ) } , nextUntil : function ( a , b , c ) { return ia . dir ( a , "nextSibling" , c ) } , prevUntil : function ( a , b , c ) { return ia . dir ( a , "previousSibling" , c ) } , siblings : function ( a ) { return ia . sibling ( ( a . parentNode || { } ) . firstChild , a ) } , children : function ( a ) { return ia . sibling ( a . firstChild ) } , contents : function ( a ) { return ia . nodeName ( a , "iframe" ) ? a . contentDocument || a . contentWindow . document : ia . merge ( [ ] , a . childNodes ) } } , function ( a , b ) { ia . fn [ a ] = function ( c , d ) { var e = ia . map ( this , b , c ) ; return Pa . test ( a ) || ( d = c ) , d && "string" == typeof d && ( e = ia . filter ( d , e ) ) , e = this . length > 1 && ! Ta [ a ] ? ia . unique ( e ) : e , this . length > 1 && Qa . test ( a ) && ( e = e . reverse ( ) ) , this . pushStack ( e ) } } ) , ia . extend ( { filter : function ( a , b , c ) { return c && ( a = ":not(" + a + ")" ) , 1 === b . length ? ia . find . matchesSelector ( b [ 0 ] , a ) ? [ b [ 0 ] ] : [ ] : ia . find . matches ( a , b ) } , dir : function ( a , c , d ) { for ( var e = [ ] , f = a [ c ] ; f && 9 !== f . nodeType && ( d === b || 1 !== f . nodeType || ! ia ( f ) . is ( d ) ) ; ) 1 === f . nodeType && e . push ( f ) , f = f [ c ] ; return e } , sibling : function ( a , b ) { for ( var c = [ ] ; a ; a = a . nextSibling ) 1 === a . nodeType && a !== b && c . push ( a ) ; return c } } ) ; var Ua = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video" , Va = / jQuery\d+="(?:null|\d+)"/g , Wa = new RegExp ( "<(?:" + Ua + ")[\\s/>]" , "i" ) , Xa = /^\s+/ , Ya = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi , Za = /<([\w:]+)/ , $a = /<tbody/i , _a = /<|&#?\w+;/ , ab = /<(?:script|style|link)/i , bb = /^(?:checkbox|radio)$/i , cb = /checked\s*(?:[^=]|=\s*.checked.)/i , db = /^$|\/(?:java|ecma)script/i , eb = /^true\/(.*)/ , fb = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g , gb = { option : [ 1 , "<select multiple='multiple'>" , "</select>" ] , legend : [ 1 , "<fieldset>" , "</fieldset>" ] , area : [ 1 , "<map>" , "</map>" ] , param : [ 1 , "<object>" , "</object>" ] , thead : [ 1 , "<table>" , "</table>" ] , tr : [ 2 , "<table><tbody>" , "</tbody></table>" ] , col : [ 2 , "<table><tbody></tbody><colgroup>" , "</colgroup></table>" ] , td : [ 3 , "<table><tbody><tr>" , "</tr></tbody></table>" ] , _default : ia . support . htmlSerialize ? [ 0 , "" , "" ] : [ 1 , "X<div>" , "</div>" ] } , hb = m ( W ) , ib = hb . appendChild ( W . createElement ( "div" ) ) ; gb . optgroup = gb . option , gb . tbody = gb . tfoot = gb . colgroup = gb . caption = gb . thead , gb . th = gb . td , ia . fn . extend ( { text : function ( a ) { return ia . access ( this , function ( a ) { return a === b ? ia . text ( this ) : this . empty ( ) . append ( ( this [ 0 ] && this [ 0 ] . ownerDocument || W ) . createTextNode ( a ) ) } , null , a , arguments . length ) } , wrapAll : function ( a ) { if ( ia . isFunction ( a ) ) return this . each ( function ( b ) { ia ( this ) . wrapAll ( a . call ( this , b ) ) } ) ; if ( this [ 0 ] ) { var b = ia ( a , this [ 0 ] . ownerDocument ) . eq ( 0 ) . clone ( ! 0 ) ; this [ 0 ] . parentNode && b . insertBefore ( this [ 0 ] ) , b . map ( function ( ) { for ( var a = this ; a . firstChild && 1 === a . firstChild . nodeType ; ) a = a . firstChild ; return a } ) . append ( this ) } return this } , wrapInner : function ( a ) { return ia . isFunction ( a ) ? this . each ( function ( b ) { ia ( this ) . wrapInner ( a . call ( this , b ) ) } ) : this . each ( function ( ) { var b = ia ( this ) , c = b . contents ( ) ; c . leng
return d } function u ( a ) { return function ( b ) { return a ( b ) } } function v ( a , b ) { return g ( b , function ( b ) { return a [ b ] } ) } function w ( a , b ) { return a . has ( b ) } function x ( a , b ) { for ( var c = a . length , d = 0 ; c -- ; ) a [ c ] === b && ++ d ; return d } function y ( a , b ) { return null == a ? $d : a [ b ] } function z ( a ) { return Uf . test ( a ) } function A ( a ) { for ( var b , c = [ ] ; ! ( b = a . next ( ) ) . done ; ) c . push ( b . value ) ; return c } function B ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a , d ) { c [ ++ b ] = [ d , a ] } ) , c } function C ( a , b ) { return function ( c ) { return a ( b ( c ) ) } } function D ( a , b ) { for ( var c = - 1 , d = a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; g !== b && g !== ee || ( a [ c ] = ee , f [ e ++ ] = c ) } return f } function E ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a ) { c [ ++ b ] = a } ) , c } function F ( a , b , c ) { for ( var d = c - 1 , e = a . length ; ++ d < e ; ) if ( a [ d ] === b ) return d ; return - 1 } function G ( a ) { return z ( a ) ? I ( a ) : kg ( a ) } function H ( a ) { return z ( a ) ? J ( a ) : k ( a ) } function I ( a ) { for ( var b = Tf . lastIndex = 0 ; Tf . test ( a ) ; ) ++ b ; return b } function J ( a ) { return a . match ( Tf ) || [ ] } function K ( a ) { if ( qd ( a ) && ! Ah ( a ) && ! ( a instanceof N ) ) { if ( a instanceof M ) return a ; if ( rg . call ( a , "__wrapped__" ) ) return Cc ( a ) } return new M ( a ) } function L ( ) { } function M ( a , b ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _chain _ _ = ! ! b , this . _ _index _ _ = 0 , this . _ _values _ _ = $d } function N ( a ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _dir _ _ = 1 , this . _ _filtered _ _ = ! 1 , this . _ _iteratees _ _ = [ ] , this . _ _takeCount _ _ = De , this . _ _views _ _ = [ ] } function O ( ) { var a = new N ( this . _ _wrapped _ _ ) ; return a . _ _actions _ _ = zb ( this . _ _actions _ _ ) , a . _ _dir _ _ = this . _ _dir _ _ , a . _ _filtered _ _ = this . _ _filtered _ _ , a . _ _iteratees _ _ = zb ( this . _ _iteratees _ _ ) , a . _ _takeCount _ _ = this . _ _takeCount _ _ , a . _ _views _ _ = zb ( this . _ _views _ _ ) , a } function P ( ) { if ( this . _ _filtered _ _ ) { var a = new N ( this ) ; a . _ _dir _ _ = - 1 , a . _ _filtered _ _ = ! 0 } else a = this . clone ( ) , a . _ _dir _ _ *= - 1 ; return a } function Q ( ) { var a = this . _ _wrapped _ _ . value ( ) , b = this . _ _dir _ _ , c = Ah ( a ) , d = b < 0 , e = c ? a . length : 0 , f = _b ( 0 , e , this . _ _views _ _ ) , g = f . start , h = f . end , i = h - g , j = d ? h : g - 1 , k = this . _ _iteratees _ _ , l = k . length , m = 0 , n = Og ( i , this . _ _takeCount _ _ ) ; if ( ! c || ! d && e == i && n == i ) return nb ( a , this . _ _actions _ _ ) ; var o = [ ] ; a : for ( ; i -- && m < n ; ) { j += b ; for ( var p = - 1 , q = a [ j ] ; ++ p < l ; ) { var r = k [ p ] , s = r . iteratee , t = r . type , u = s ( q ) ; if ( t == xe ) q = u ; else if ( ! u ) { if ( t == we ) continue a ; break a } } o [ m ++ ] = q } return o } function R ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . clear ( ) ; ++ b < c ; ) { var d = a [ b ] ; this . set ( d [ 0 ] , d [ 1 ] ) } } function S ( ) { this . _ _data _ _ = Vg ? Vg ( null ) : { } , this . size = 0 } function T ( a ) { var b = this . has ( a ) && delete this . _ _data _ _ [ a ] ; return this . size -= b ? 1 : 0 , b } function U ( a ) { var b = this . _ _data _ _ ; if ( Vg ) { var c = b [ a ] ; return c === ce ? $d : c } return rg . call ( b , a ) ? b [ a ] : $d } function V ( a ) { var b = this . _ _data _ _ ; return Vg ? b [ a ] !== $d : rg . call ( b , a ) } function W ( a , b ) { var c = this . _ _data _ _ ; return this . size += this . has ( a ) ? 0 : 1 , c [ a ] = Vg && b === $d ? ce : b , this } function X ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . clear ( ) ; ++ b < c ; ) { var d = a [ b ] ; this . set ( d [ 0 ] , d [ 1 ] ) } } function Y ( ) { this . _ _data _ _ = [ ] , this . size = 0 } function Z ( a ) { var b = this . _ _data _ _ , c = sa ( b , a ) ; if ( c < 0 ) return ! 1 ; var d = b . length - 1 ; return c == d ? b . pop ( ) : Eg . call ( b , c , 1 ) , -- this . size , ! 0 } function $ ( a ) { var b = this . _ _data _ _ , c = sa ( b , a ) ; return c < 0 ? $d : b [ c ] [ 1 ] } function _ ( a ) { return sa ( this . _ _data _ _ , a ) > - 1 } function aa ( a , b ) { var c = this . _ _data _ _ , d = sa ( c , a ) ; return d < 0 ? ( ++ this . size , c . push ( [ a , b ] ) ) : c [ d ] [ 1 ] = b , this } function ba ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . clear ( ) ; ++ b < c ; ) { var d = a [ b ] ; this . set ( d [ 0 ] , d [ 1 ] ) } } function ca ( ) { this . size = 0 , this . _ _data _ _ = { hash : new R , map : new ( Rg || X ) , string : new R } } function da ( a ) { var b = Xb ( this , a ) [ "delete" ] ( a ) ; return this . size -= b ? 1 : 0 , b } function ea ( a ) { return Xb ( this , a ) . get ( a ) } function fa ( a ) { return Xb ( this , a ) . has ( a ) } function ga ( a , b ) { var c = Xb ( this , a ) , d = c . size ; return c . set ( a , b ) , this . size += c . size == d ? 0 : 1 , this } function ha ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . _ _data _ _ = new ba ; ++ b < c ; ) this . add ( a [ b ] ) } function ia ( a ) { return this . _ _data _ _ . set ( a , ce ) , this } function ja ( a ) { return this . _ _data _ _ . has ( a ) } function ka ( a ) { var b = this . _ _data _ _ = new X ( a ) ; this . size = b . size } function la ( ) { this . _ _data _ _ = new X , this . size = 0 } function ma ( a ) { var b = this . _ _data _ _ , c = b [ "delete" ] ( a ) ; return this . size = b . size , c } function na ( a ) { return this . _ _data _ _ . get ( a ) } function oa ( a ) { return this . _ _data _ _ . has ( a ) } function pa ( a , b ) { var c = this . _ _data _ _ ; if ( c instanceof X ) { var d = c . _ _data _ _ ; if ( !
Zb ( _f , "DataView" ) ) , Rg = Zb ( _f , "Map" ) , Sg = Zb ( _f , "Promise" ) , Tg = Zb ( _f , "Set" ) , Ug = Zb ( _f , "WeakMap" ) , Vg = Zb ( Object , "create" ) , Wg = Ug && new Ug , Xg = { } , Yg = Ac ( Qg ) , Zg = Ac ( Rg ) , $g = Ac ( Sg ) , _g = Ac ( Tg ) , ah = Ac ( Ug ) , bh = yg ? yg . prototype : $d , ch = bh ? bh . valueOf : $d , dh = bh ? bh . toString : $d , eh = function ( ) { function a ( ) { } return function ( b ) { if ( ! pd ( b ) ) return { } ; if ( Cg ) return Cg ( b ) ; a . prototype = b ; var c = new a ; return a . prototype = $d , c } } ( ) ; K . prototype = L . prototype , K . prototype . constructor = K , M . prototype = eh ( L . prototype ) , M . prototype . constructor = M , N . prototype = eh ( L . prototype ) , N . prototype . constructor = N , R . prototype . clear = S , R . prototype [ "delete" ] = T , R . prototype . get = U , R . prototype . has = V , R . prototype . set = W , X . prototype . clear = Y , X . prototype [ "delete" ] = Z , X . prototype . get = $ , X . prototype . has = _ , X . prototype . set = aa , ba . prototype . clear = ca , ba . prototype [ "delete" ] = da , ba . prototype . get = ea , ba . prototype . has = fa , ba . prototype . set = ga , ha . prototype . add = ha . prototype . push = ia , ha . prototype . has = ja , ka . prototype . clear = la , ka . prototype [ "delete" ] = ma , ka . prototype . get = na , ka . prototype . has = oa , ka . prototype . set = pa ; var fh = Eb ( Da ) , gh = Fb ( ) , hh = Fb ( ! 0 ) , ih = Wg ? function ( a , b ) { return Wg . set ( a , b ) , a } : Od , jh = Ig ? function ( a , b ) { return Ig ( a , "toString" , { configurable : ! 0 , enumerable : ! 1 , value : Nd ( b ) , writable : ! 0 } ) } : Od , kh = Tg && 1 / E ( new Tg ( [ , - 0 ] ) ) [ 1 ] == ze ? function ( a ) { return new Tg ( a ) } : Td , lh = Wg ? function ( a ) { return Wg . get ( a ) } : Td , mh = Jg ? function ( a ) { return null == a ? [ ] : ( a = Object ( a ) , d ( Jg ( a ) , function ( b ) { return Dg . call ( a , b ) } ) ) } : Vd , nh = Jg ? function ( a ) { for ( var b = [ ] ; a ; ) h ( b , mh ( a ) ) , a = Bg ( a ) ; return b } : Vd , oh = Ia ; ( Qg && oh ( new Qg ( new ArrayBuffer ( 1 ) ) ) != $e || Rg && oh ( new Rg ) != Ne || Sg && oh ( Sg . resolve ( ) ) != Re || Tg && oh ( new Tg ) != Ue || Ug && oh ( new Ug ) != Ye ) && ( oh = function ( a ) { var b = Ia ( a ) , c = b == Qe ? a . constructor : $d , d = c ? Ac ( c ) : "" ; if ( d ) switch ( d ) { case Yg : return $e ; case Zg : return Ne ; case $g : return Re ; case _g : return Ue ; case ah : return Ye } return b } ) ; var ph = yc ( ih ) , qh = yc ( jh ) , rh = qc ( function ( a ) { var b = [ ] ; return 46 === a . charCodeAt ( 0 ) && b . push ( "" ) , a . replace ( nf , function ( a , c , d , e ) { b . push ( d ? e . replace ( tf , "$1" ) : c || a ) } ) , b } ) , sh = hb ( Pc ) , th = ( Sb ( function ( a ) { var b = a . length , c = b ? a [ 0 ] : 0 , d = this . _ _wrapped _ _ , e = function ( b ) { return wa ( b , a ) } ; return ! ( b > 1 || this . _ _actions _ _ . length ) && d instanceof N && hc ( c ) ? ( d = d . slice ( c , + c + ( b ? 1 : 0 ) ) , d . _ _actions _ _ . push ( { func : Sc , args : [ e ] , thisArg : $d } ) , new M ( d , this . _ _chain _ _ ) . thru ( function ( a ) { return b && ! a . length && a . push ( $d ) , a } ) ) : this . thru ( e ) } ) , Jb ( Fc ) ) , uh = hb ( function ( a , b ) { if ( null == a ) return [ ] ; var c = b . length ; return c > 1 && ic ( a , b [ 0 ] , b [ 1 ] ) ? b = [ ] : c > 2 && ic ( b [ 0 ] , b [ 1 ] , b [ 2 ] ) && ( b = [ b [ 0 ] ] ) , db ( a , Ca ( b , 1 ) , [ ] ) } ) , vh = function ( ) { return _f . Date . now ( ) } , wh = hb ( function ( a , b , c ) { var d = ke ; if ( c . length ) { var e = D ( c , Wb ( wh ) ) ; d |= pe } return Ob ( a , d , b , c , e ) } ) , xh = hb ( function ( a , b ) { return ya ( a , 1 , b ) } ) , yh = hb ( function ( a , b , c ) { return ya ( a , Ad ( b ) || 0 , c ) } ) ; bd . Cache = ba ; var zh = Oa ( function ( ) { return arguments } ( ) ) ? Oa : function ( a ) { return qd ( a ) && rg . call ( a , "callee" ) && ! Dg . call ( a , "callee" ) } , Ah = Array . isArray , Bh = Kg || Wd , Ch = fg ? u ( fg ) : Pa , Dh = gg ? u ( gg ) : Sa , Eh = hg ? u ( hg ) : Va , Fh = ig ? u ( ig ) : Wa , Gh = jg ? u ( jg ) : Xa , Hh = Db ( function ( a , b ) { Ab ( b , Jd ( b ) , a ) } ) , Ih = hb ( function ( a , b ) { a = Object ( a ) ; var c = - 1 , d = b . length , e = d > 2 ? b [ 2 ] : $d ; for ( e && ic ( b [ 0 ] , b [ 1 ] , e ) && ( d = 1 ) ; ++ c < d ; ) for ( var f = b [ c ] , g = Jd ( f ) , h = - 1 , i = g . length ; ++ h < i ; ) { var j = g [ h ] , k = a [ j ] ; ( k === $d || gd ( k , og [ j ] ) && ! rg . call ( a , j ) ) && ( a [ j ] = f [ j ] ) } return a } ) , Jh = Lb ( function ( a , b , c ) { null != b && "function" != typeof b . toString && ( b = ug . call ( b ) ) , a [ b ] = c } , Nd ( Od ) ) , Kh = Lb ( function ( a , b , c ) { null != b && "function" != typeof b . toString && ( b = ug . call ( b ) ) , rg . call ( a , b ) ? a [ b ] . push ( c ) : a [ b ] = [ c ] } , Ya ) , Lh = Sb ( function ( a , b ) { return null == a ? { } : eb ( a , b ) } ) ; K . assignIn = Hh , K . before = _c , K . bind = wh , K . chain = Qc , K . compact = Dc , K . concat = Ec , K . create = Cd , K . debounce = ad , K . defaults = Ih , K . defer = xh , K . delay = yh , K . filter = Vc , K . flatten = Hc , K . flattenDeep = Ic , K . invert = Jh , K . invertBy = Kh , K . iteratee = Pd , K . keys = Id , K . map = Xc , K . matches = Qd , K . mixin = Rd , K . negate = cd , K . once = dd , K . pick = Lh , K . slice = Mc , K . sortBy = uh , K . tap = Rc , K . throttle = ed , K . thru = Sc , K . toArray = xd , K . uniq = Nc , K . uniqBy = Oc , K . unzip = Pc , K . values = Ld , K . zip = sh , K . extend = Hh , Rd ( K , K ) , K . clone = fd , K . escape = Md , K . every = Uc , K . find = th , K . findIndex = Fc , K . findKey = Dd , K . findLastIndex = Gc , K . findLastKey = Ed , K . forEach = Wc , K . get = Fd , K . has = Gd , K . head = Jc , K . identity = Od , K . indexOf = Kc , K . isArguments = zh , K . isArray = Ah , K . isArrayLike = hd , K . isBoolean = jd , K . isDate = Ch , K . isEmpty = kd , K . isEqua
BI . isWidget ( a ) ? BI . remove ( this . _children , a ) : delete this . _children [ a ] } , hasWidget : function ( a ) { return null != this . _children [ a ] } , getName : function ( ) { return this . widgetName } , setTag : function ( a ) { this . options . tag = a } , getTag : function ( ) { return this . options . tag } , attr : function ( a , b ) { var c = this ; return BI . isPlainObject ( a ) ? void BI . each ( a , function ( a , b ) { c . attr ( a , b ) } ) : BI . isNotNull ( b ) ? this . options [ a ] = b : this . options [ a ] } , getText : function ( ) { } , setText : function ( a ) { } , getValue : function ( ) { } , setValue : function ( a ) { } , isEnabled : function ( ) { return ! this . options . disabled } , isVisible : function ( ) { return ! this . options . invisible } , disable : function ( ) { this . setEnable ( ! 1 ) } , enable : function ( ) { this . setEnable ( ! 0 ) } , valid : function ( ) { this . setValid ( ! 0 ) } , invalid : function ( ) { this . setValid ( ! 1 ) } , invisible : function ( ) { this . setVisible ( ! 1 ) } , visible : function ( ) { this . setVisible ( ! 0 ) } , _ _d : function ( ) { this . beforeDestroy && this . beforeDestroy ( ) , BI . each ( this . _children , function ( a , b ) { b && b . _unMount && b . _unMount ( ) } ) , this . _children = { } , this . _parent = null , this . _isMounted = ! 1 , this . destroyed && this . destroyed ( ) } , _unMount : function ( ) { this . _ _d ( ) , this . fireEvent ( BI . Events . UNMOUNT ) , this . purgeListeners ( ) } , isolate : function ( ) { this . _parent && this . _parent . removeWidget ( this ) , BI . DOM . hang ( [ this ] ) } , empty : function ( ) { BI . each ( this . _children , function ( a , b ) { b && b . _unMount && b . _unMount ( ) } ) , this . _children = { } , this . element . empty ( ) } , _destroy : function ( ) { this . _ _d ( ) , this . element . destroy ( ) , this . purgeListeners ( ) } , destroy : function ( ) { this . _ _d ( ) , this . element . destroy ( ) , this . fireEvent ( BI . Events . DESTROY ) , this . _purgeRef ( ) , this . purgeListeners ( ) } } ) , function ( ) { var a = { } ; BI . shortcut = function ( b , c ) { if ( null != a [ b ] ) throw "shortcut:[" + b + "] has been registed" ; a [ b ] = c } ; var b = function ( b ) { if ( b . classType ) return new ( new Function ( "return " + b . classType + ";" ) ( ) ) ( b ) ; var c = a [ b . type ] ; return new c ( b ) } ; BI . createWidget = function ( a , c , d ) { var e , f ; if ( a || ( a = { } ) , BI . isWidget ( c ) ? ( d = c , c = { } ) : c || ( c = { } ) , BI . isEmpty ( a ) && BI . isEmpty ( c ) ) return BI . createWidget ( { type : "bi.layout" } ) ; if ( BI . isWidget ( a ) ) return a ; if ( a . type || c . type ) return e = BI . extend ( { } , c , a ) , f = BI . Plugin . getWidget ( e . type , e ) , f . type === e . type ? BI . Plugin . getObject ( e . type , b ( f ) ) : BI . createWidget ( BI . extend ( { } , a , { type : f . type } , c ) ) ; if ( a . el && ( a . el . type || c . type ) ) return e = BI . extend ( { } , c , a . el ) , f = BI . Plugin . getWidget ( e . type , e ) , f . type === e . type ? BI . Plugin . getObject ( e . type , b ( f ) ) : BI . createWidget ( BI . extend ( { } , a , { type : f . type } , c ) ) ; if ( BI . isWidget ( a . el ) ) return a . el ; throw new Error ( "无法根据item创建组件" ) } } ( ) , function ( a , b ) { function c ( a ) { return function ( b , c , d ) { var e , f = b [ c ] ; f && f . target == b || ( e = b [ c ] = function ( ) { for ( var a , b = e . before , c = arguments , d = b . length ; d -- ; ) { if ( a = b [ d ] . advice . apply ( this , c ) , a === ! 1 ) return ! 1 ; c = a || c } for ( var f = e . method . apply ( this , c ) , g = e . after , h = 0 , i = g . length ; h < i ; h ++ ) { if ( a = g [ h ] . advice . call ( this , f , c ) , f === ! 1 ) return ! 1 ; c = a || c } return f } , e . before = [ ] , e . after = [ ] , f && ( e . method = f ) , e . target = b ) ; var g = ( e || f ) [ a ] , h = { advice : d , _index : g . length , remove : function ( ) { g . splice ( this . _index , 1 ) } } ; return g . push ( h ) , h } } return BI . aspect = { before : c ( "before" ) , after : c ( "after" ) } , BI . aspect } ( window ) , ! function ( ) { var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" , b = function ( a ) { a = a . replace ( /\r\n/g , "\n" ) ; for ( var b = "" , c = 0 ; c < a . length ; c ++ ) { var d = a . charCodeAt ( c ) ; d < 128 ? b += String . fromCharCode ( d ) : d > 127 && d < 2048 ? ( b += String . fromCharCode ( d >> 6 | 192 ) , b += String . fromCharCode ( 63 & d | 128 ) ) : ( b += String . fromCharCode ( d >> 12 | 224 ) , b += String . fromCharCode ( d >> 6 & 63 | 128 ) , b += String . fromCharCode ( 63 & d | 128 ) ) } return b } , c = function ( a ) { for ( var b = "" , c = 0 , d = 0 , e = 0 , f = 0 ; c < a . length ; ) d = a . charCodeAt ( c ) , d < 128 ? ( b += String . fromCharCode ( d ) , c ++ ) : d > 191 && d < 224 ? ( f = a . charCodeAt ( c + 1 ) , b += String . fromCharCode ( ( 31 & d ) << 6 | 63 & f ) , c += 2 ) : ( f = a . charCodeAt ( c + 1 ) , e = a . charCodeAt ( c + 2 ) , b += String . fromCharCode ( ( 15 & d ) << 12 | ( 63 & f ) << 6 | 63 & e ) , c += 3 ) ; return b } ; _ . extend ( BI , { encode : function ( c ) { var d , e , f , g , h , i , j , k = "" , l = 0 ; for ( c = b ( c ) ; l < c . length ; ) d = c . charCodeAt ( l ++ ) , e = c . charCodeAt ( l ++ ) , f = c . charCodeAt ( l ++ ) , g = d >> 2 , h = ( 3 & d ) << 4 | e >> 4 , i = ( 15 & e ) << 2 | f >> 6 , j = 63 & f , isNaN ( e ) ? i = j = 64 : isNaN ( f ) && ( j = 64 ) , k = k + a . charAt ( g ) + a . charAt ( h ) + a . charAt ( i ) + a . charAt ( j ) ; return k } , decode : function ( b ) { var d , e , f , g , h , i , j , k = "" , l = 0 ; for ( b = b . replace ( /[^A-Za-z0-9\+\/\=]/g , "" ) ; l < b . length ; ) g = a . indexOf ( b . charAt ( l ++ ) ) ,
22079 : "MH" , 22129 : "XJ" , 22179 : "XA" , 22237 : "NJ" , 22244 : "TD" , 22280 : "JQ" , 22300 : "YH" , 22313 : "XW" , 22331 : "YQ" , 22343 : "YJ" , 22351 : "PH" , 22395 : "DC" , 22412 : "TD" , 22484 : "PB" , 22500 : "PB" , 22534 : "ZD" , 22549 : "DH" , 22561 : "PB" , 22612 : "TD" , 22771 : "KQ" , 22831 : "HB" , 22841 : "JG" , 22855 : "QJ" , 22865 : "XQ" , 23013 : "ML" , 23081 : "WM" , 23487 : "SX" , 23558 : "QJ" , 23561 : "YW" , 23586 : "YW" , 23614 : "YW" , 23615 : "SN" , 23631 : "PB" , 23646 : "ZS" , 23663 : "ZT" , 23673 : "YG" , 23762 : "TD" , 23769 : "ZS" , 23780 : "QJ" , 23884 : "QK" , 24055 : "XH" , 24113 : "DC" , 24162 : "ZC" , 24191 : "GA" , 24273 : "QJ" , 24324 : "NL" , 24377 : "TD" , 24378 : "QJ" , 24439 : "PF" , 24554 : "ZS" , 24683 : "TD" , 24694 : "WE" , 24733 : "LK" , 24925 : "TN" , 25094 : "ZG" , 25100 : "XQ" , 25103 : "XH" , 25153 : "PB" , 25170 : "PB" , 25179 : "KG" , 25203 : "PB" , 25240 : "ZS" , 25282 : "FB" , 25303 : "NA" , 25324 : "KG" , 25341 : "ZY" , 25373 : "WZ" , 25375 : "XJ" , 25384 : "A" , 25457 : "A" , 25528 : "SD" , 25530 : "SC" , 25552 : "TD" , 25774 : "ZC" , 25874 : "ZC" , 26044 : "YW" , 26080 : "WM" , 26292 : "PB" , 26333 : "PB" , 26355 : "ZY" , 26366 : "CZ" , 26397 : "ZC" , 26399 : "QJ" , 26415 : "ZS" , 26451 : "SB" , 26526 : "ZC" , 26552 : "JG" , 26561 : "TD" , 26588 : "JG" , 26597 : "CZ" , 26629 : "ZS" , 26638 : "YL" , 26646 : "XQ" , 26653 : "KG" , 26657 : "XJ" , 26727 : "HG" , 26894 : "ZC" , 26937 : "ZS" , 26946 : "ZC" , 26999 : "KJ" , 27099 : "KJ" , 27449 : "YQ" , 27481 : "XS" , 27542 : "ZS" , 27663 : "ZS" , 27748 : "TS" , 27784 : "SC" , 27788 : "ZD" , 27795 : "TD" , 27812 : "O" , 27850 : "PB" , 27852 : "MB" , 27895 : "SL" , 27898 : "PL" , 27973 : "QJ" , 27981 : "KH" , 27986 : "HX" , 27994 : "XJ" , 28044 : "YC" , 28065 : "WG" , 28177 : "SM" , 28267 : "QJ" , 28291 : "KH" , 28337 : "ZQ" , 28463 : "TL" , 28548 : "DC" , 28601 : "TD" , 28689 : "PB" , 28805 : "JG" , 28820 : "QG" , 28846 : "PB" , 28952 : "TD" , 28975 : "ZC" , 29100 : "A" , 29325 : "QJ" , 29575 : "SL" , 29602 : "FB" , 30010 : "TD" , 30044 : "CX" , 30058 : "PF" , 30091 : "YSP" , 30111 : "YN" , 30229 : "XJ" , 30427 : "SC" , 30465 : "SX" , 30631 : "YQ" , 30655 : "QJ" , 30684 : "QJG" , 30707 : "SD" , 30729 : "XH" , 30796 : "LG" , 30917 : "PB" , 31074 : "NM" , 31085 : "JZ" , 31109 : "SC" , 31181 : "ZC" , 31192 : "MLB" , 31293 : "JQ" , 31400 : "YX" , 31584 : "YJ" , 31896 : "ZN" , 31909 : "ZY" , 31995 : "XJ" , 32321 : "PF" , 32327 : "ZY" , 32418 : "HG" , 32420 : "XQ" , 32421 : "HG" , 32438 : "LG" , 32473 : "GJ" , 32488 : "TD" , 32521 : "QJ" , 32527 : "PB" , 32562 : "ZSQ" , 32564 : "JZ" , 32735 : "ZD" , 32793 : "PB" , 33071 : "PF" , 33098 : "XL" , 33100 : "YA" , 33152 : "PB" , 33261 : "CX" , 33324 : "BP" , 33333 : "TD" , 33406 : "YA" , 33426 : "WM" , 33432 : "PB" , 33445 : "JG" , 33486 : "ZN" , 33493 : "TS" , 33507 : "QJ" , 33540 : "QJ" , 33544 : "ZC" , 33564 : "XQ" , 33617 : "YT" , 33632 : "QJ" , 33636 : "XH" , 33637 : "YX" , 33694 : "WG" , 33705 : "PF" , 33728 : "YW" , 33882 : "SR" , 34067 : "WM" , 34074 : "YW" , 34121 : "QJ" , 34255 : "ZC" , 34259 : "XL" , 34425 : "JH" , 34430 : "XH" , 34485 : "KH" , 34503 : "YS" , 34532 : "HG" , 34552 : "XS" , 34558 : "YE" , 34593 : "ZL" , 34660 : "YQ" , 34892 : "XH" , 34928 : "SC" , 34999 : "QJ" , 35048 : "PB" , 35059 : "SC" , 35098 : "ZC" , 35203 : "TQ" , 35265 : "JX" , 35299 : "JX" , 35782 : "SZ" , 35828 : "YS" , 35830 : "E" , 35843 : "TD" , 35895 : "YG" , 35977 : "MH" , 36158 : "JG" , 36228 : "QJ" , 36426 : "XQ" , 36466 : "DC" , 36710 : "JC" , 36711 : "ZYG" , 36767 : "PB" , 36866 : "SK" , 36951 : "YW" , 37034 : "YX" , 37063 : "XH" , 37218 : "ZC" , 37325 : "ZC" , 38063 : "PB" , 38079 : "TD" , 38085 : "QY" , 38107 : "DC" , 38116 : "TD" , 38123 : "YD" , 38224 : "HG" , 38241 : "XTC" , 38271 : "ZC" , 38415 : "YE" , 38426 : "KH" , 38461 : "YD" , 38463 : "AE" , 38466 : "PB" , 38477 : "XJ" , 38518 : "YT" , 38551 : "WK" , 38585 : "ZC" , 38704 : "XS" , 38739 : "LJ" , 38761 : "GJ" , 38808 : "SQ" , 39048 : "JG" , 39049 : "XJ" , 39052 : "HG" , 39076 : "CZ" , 39271 : "XT" , 39534 : "TD" , 39552 : "TD" , 39584 : "PB" , 39647 : "SB" , 39730 : "LG" , 39748 : "TPB" , 40109 : "ZQ" , 40479 : "ND" , 40516 : "HG" , 40536 : "HG" , 40583 : "QJ" , 40765 : "YQ" , 40784 : "QJ" , 40840 : "YK" , 40863 : "QJG" } , c = function ( c ) { var d = c . charCodeAt ( 0 ) ; return d > 40869 || d < 19968 ? c : b [ d ] ? b [ d ] : a . charAt ( d - 19968 ) } , d = function ( a ) { for ( var b , c = [ "" ] , d = 0 , e = a . length ; d < e ; d ++ ) { var f = a [ d ] , g = f . length ; if ( 1 == g ) for ( b = 0 ; b < c . length ; b ++ ) c [ b ] += f ; else { var h = c . slice ( 0 ) ; for ( c = [ ] , b = 0 ; b < g ; b ++ ) { for ( var i = h . slice ( 0 ) , j = 0 ; j < i . length ; j ++ ) i [ j ] += f . charAt ( b ) ; c = c . concat ( i ) } } } return c . join ( "" ) . toLowerCase ( ) } ; _ . extend ( BI , { makeFirstPY : function ( a ) { if ( "string" != typeof a ) return "" + a ; for ( var b = [ ] , e = 0 , f = a . length ; e < f ; e ++ ) { var g = a . charAt ( e ) ; b . push ( c ( g ) ) } return d ( b ) } } ) } ( ) , ! function ( ) { var a ; a = "undefined" != typeof window ? window : "undefined" != typeof self ? self : this ; var b = "undefined" != typeof document && document . addEventListener , c = ! 1 ; if ( b ) { var d = function ( ) { var b = a . requestAnimationFrame || a . mozRequestAnimationFrame || a . webkitRequestAnimationFrame || function ( b ) { return a . setTimeout ( b , 20 ) } ; return function ( a ) { return b ( a ) } } ( ) , e = function ( ) { var b = a . cancelAnimationFrame || a . mozCancelAnimationFrame || a . webkitCancelAnim
if ( ! a ) return [ ] ; var c = [ ] ; if ( BI . isArray ( a ) ) for ( var d = 0 , e = a . length ; d < e ; d ++ ) { var f = a [ d ] ; f . pId = null == f . pId ? b : f . pId , c . push ( f ) , a [ d ] . children && ( c = c . concat ( BI . Tree . arrayFormat ( a [ d ] . children , f . id ) ) ) } else { var g = a ; g . pId = null == g . pId ? b : g . pId , c . push ( g ) , a . children && ( c = c . concat ( BI . Tree . arrayFormat ( a . children , g . id ) ) ) } return c } , transformToTreeFormat : function ( a ) { var b , c ; if ( ! a ) return [ ] ; if ( BI . isArray ( a ) ) { var d = [ ] , e = [ ] ; for ( b = 0 , c = a . length ; b < c ; b ++ ) { if ( BI . isNull ( a [ b ] . id ) ) return a ; e [ a [ b ] . id ] = BI . clone ( a [ b ] ) } for ( b = 0 , c = a . length ; b < c ; b ++ ) e [ a [ b ] . pId ] && a [ b ] . id !== a [ b ] . pId ? ( e [ a [ b ] . pId ] . children || ( e [ a [ b ] . pId ] . children = [ ] ) , e [ a [ b ] . pId ] . children . push ( e [ a [ b ] . id ] ) ) : d . push ( e [ a [ b ] . id ] ) , delete e [ a [ b ] . id ] . pId ; return d } return [ a ] } , treeFormat : function ( a ) { var b , c ; if ( ! a ) return [ ] ; if ( BI . isArray ( a ) ) { var d = [ ] , e = [ ] ; for ( b = 0 , c = a . length ; b < c ; b ++ ) { if ( BI . isNull ( a [ b ] . id ) ) return a ; e [ a [ b ] . id ] = a [ b ] } for ( b = 0 , c = a . length ; b < c ; b ++ ) e [ a [ b ] . pId ] && a [ b ] . id !== a [ b ] . pId ? ( e [ a [ b ] . pId ] . children || ( e [ a [ b ] . pId ] . children = [ ] ) , e [ a [ b ] . pId ] . children . push ( e [ a [ b ] . id ] ) ) : d . push ( e [ a [ b ] . id ] ) ; return d } return [ a ] } , traversal : function ( a , b ) { if ( ! BI . isNull ( a ) ) { var c = this ; BI . any ( a , function ( a , d ) { return b ( a , d ) === ! 1 || void c . traversal ( d . children , b ) } ) } } } ) } ( ) , BI . Vector = function ( a , b ) { this . x = a , this . y = b } , BI . Vector . prototype = { constructor : BI . Vector , cross : function ( a ) { return this . x * a . y - this . y * a . x } , length : function ( a ) { return Math . sqrt ( this . x * a . x + this . y * a . y ) } } , BI . Region = function ( a , b , c , d ) { this . x = a , this . y = b , this . w = c , this . h = d } , BI . Region . prototype = { constructor : BI . Region , isIntersects : function ( a ) { if ( this . isPointInside ( a . x , a . y ) || this . isPointInside ( a . x + a . w , a . y ) || this . isPointInside ( a . x , a . y + a . h ) || this . isPointInside ( a . x + a . w , a . y + a . h ) ) return ! 0 ; if ( a . isPointInside ( this . x , this . y ) || a . isPointInside ( this . x + this . w , this . y ) || a . isPointInside ( this . x , this . y + this . h ) || a . isPointInside ( this . x + this . w , this . y + this . h ) ) return ! 0 ; if ( null != a . x && null != a . y ) { var b = new BI . Vector ( this . w , this . h ) , c = new BI . Vector ( a . x - this . x , a . y - this . y ) , d = new BI . Vector ( c . x + a . w , c . y + a . h ) ; if ( b . cross ( c ) * b . cross ( d ) < 0 ) return ! 0 } return ! 1 } , isPointInside : function ( a , b ) { return null != this . x && null != this . y && ( a >= this . x && a <= this . x + this . w && b >= this . y && b <= this . y + this . h ) } , getPosition : function ( ) { var a = [ ] ; return a . push ( this . x + this . w / 2 ) , a . push ( this . y + this . h / 2 ) , a } } , BI . BehaviorFactory = { createBehavior : function ( a , b ) { var c ; switch ( a ) { case "highlight" : c = BI . HighlightBehavior ; break ; case "redmark" : c = BI . RedMarkBehavior } return new c ( b ) } } , BI . Behavior = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Behavior . superclass . _defaultConfig . apply ( this , arguments ) , { rule : function ( ) { return ! 0 } } ) } , _init : function ( ) { BI . Behavior . superclass . _init . apply ( this , arguments ) } , doBehavior : function ( ) { } } ) , BI . Layout = BI . inherit ( BI . Widget , { props : function ( ) { return { scrollable : null , scrollx : ! 1 , scrolly : ! 1 , items : [ ] } } , render : function ( ) { this . _init4Margin ( ) , this . _init4Scroll ( ) } , _init4Margin : function ( ) { this . options . top && this . element . css ( "top" , this . options . top ) , this . options . left && this . element . css ( "left" , this . options . left ) , this . options . bottom && this . element . css ( "bottom" , this . options . bottom ) , this . options . right && this . element . css ( "right" , this . options . right ) } , _init4Scroll : function ( ) { switch ( this . options . scrollable ) { case ! 0 : this . element . css ( "overflow" , "auto" ) ; break ; case ! 1 : this . element . css ( "overflow" , "hidden" ) } this . options . scrollx && this . element . css ( { "overflow-x" : "auto" , "overflow-y" : "hidden" } ) , this . options . scrolly && this . element . css ( { "overflow-x" : "hidden" , "overflow-y" : "auto" } ) } , _mountChildren : function ( ) { var a = this , b = document . createDocumentFragment ( ) , c = ! 1 ; BI . each ( this . _children , function ( d , e ) { e . element !== a . element && ( b . appendChild ( e . element [ 0 ] ) , c = ! 0 ) } ) , c === ! 0 && this . element . append ( b ) } , _getChildName : function ( a ) { return a + "" } , _addElement : function ( a , b ) { var c , d = this ; return this . hasWidget ( this . _getChildName ( a ) ) ? c = this . getWidgetByName ( this . _getChildName ( a ) ) : ( c = BI . createWidget ( b ) , c . on ( BI . Events . DESTROY , function ( ) { BI . each ( d . _children , function ( a , b ) { b === c && ( BI . remove ( d . _children , b ) , d . removeItemAt ( 0 | a ) ) } ) } ) , this . addWidget ( this . _getChildName ( a ) , c ) ) , c } , _getOptions : function ( a ) { return a instanceof BI . Widget && ( a = a . options ) , a = BI . stripEL ( a ) , a instanceof BI . Widget && ( a = a . options ) , a } , _compare : function ( a ,
return this . resizerManger [ a ] } , has : function ( a ) { return null != this . resizerManger [ a ] } , remove : function ( a ) { return this . has ( a ) ? ( delete this . resizerManger [ a ] , this ) : this } } ) , BI . TooltipsController = BI . inherit ( BI . Controller , { _defaultConfig : function ( ) { return BI . extend ( BI . TooltipsController . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _const : { height : 20 } , _init : function ( ) { BI . TooltipsController . superclass . _init . apply ( this , arguments ) , this . tooltipsManager = { } , this . showingTips = { } } , _createTooltip : function ( a , b ) { return BI . createWidget ( { type : "bi.tooltip" , text : a , level : b , stopEvent : ! 0 , height : this . _const . height } ) } , hide : function ( a , b ) { return this . has ( a ) ? ( delete this . showingTips [ a ] , this . get ( a ) . element . hide ( 0 , b ) , this . get ( a ) . invisible ( ) , this ) : this } , create : function ( a , b , c , d ) { if ( ! this . has ( a ) ) { var e = this . _createTooltip ( b , c ) ; this . add ( a , e ) , BI . createWidget ( { type : "bi.absolute" , element : d || "body" , items : [ { el : e } ] } ) , e . invisible ( ) } return this . get ( a ) } , show : function ( a , b , c , d , e , f ) { f || ( f = { } ) ; var g = this ; if ( BI . each ( this . showingTips , function ( a , b ) { g . hide ( a ) } ) , this . showingTips = { } , this . has ( b ) || this . create ( b , c , d , f . container || e ) , ! f . belowMouse ) { var h = e . element . offset ( ) , i = e . element . bounds ( ) ; if ( 0 === i . height || 0 === i . width ) return ; var j = h . top + i . height + 5 } var k = this . get ( b ) ; k . setText ( c ) , k . element . css ( { left : "0px" , top : "0px" } ) , k . visible ( ) , k . element . height ( k . element [ 0 ] . scrollHeight ) , this . showingTips [ b ] = ! 0 ; var l = ( a . pageX || a . clientX ) + 15 , m = ( a . pageY || a . clientY ) + 15 ; return l + k . element . outerWidth ( ) > $ ( "body" ) . outerWidth ( ) && ( l -= k . element . outerWidth ( ) + 15 ) , m + k . element . outerHeight ( ) > $ ( "body" ) . outerHeight ( ) ? ( m -= k . element . outerHeight ( ) + 15 , ! f . belowMouse && ( m = Math . min ( m , h . top - k . element . outerHeight ( ) - 5 ) ) ) : ! f . belowMouse && ( m = Math . max ( m , j ) ) , k . element . css ( { left : l < 0 ? 0 : l + "px" , top : m < 0 ? 0 : m + "px" } ) , k . element . hover ( function ( ) { g . remove ( b ) , e . element . trigger ( "mouseleave.title" + e . getName ( ) ) } ) , this } , add : function ( a , b ) { return this . has ( a ) ? this : ( this . set ( a , b ) , this ) } , get : function ( a ) { return this . tooltipsManager [ a ] } , set : function ( a , b ) { this . tooltipsManager [ a ] = b } , has : function ( a ) { return null != this . tooltipsManager [ a ] } , remove : function ( a ) { return this . has ( a ) ? ( this . tooltipsManager [ a ] . destroy ( ) , delete this . tooltipsManager [ a ] , this ) : this } } ) , _ . extend ( BI , { Events : { KEYDOWN : "_KEYDOWN" , BACKSPACE : "_BACKSPACE" , SPACE : "_SPACE" , ENTER : "_ENTER" , CONFIRM : "_CONFIRM" , ERROR : "_ERROR" , PAUSE : "_PAUSE" , DESTROY : "_DESTROY" , UNMOUNT : "_UNMOUNT" , CLEAR : "_CLEAR" , ADD : "_ADD" , EDITING : "_EDITING" , EMPTY : "_EMPTY" , VIEW : "_VIEW" , RESIZE : "_RESIZE" , BEFOREEDIT : "_BEFOREEDIT" , AFTEREDIT : "_AFTEREDIT" , STARTEDIT : "_STARTEDIT" , STOPEDIT : "_STOPEDIT" , CHANGE : "_CHANGE" , EXPAND : "_EXPAND" , COLLAPSE : "_COLLAPSE" , CALLBACK : "_CALLBACK" , CLICK : "_CLICK" , STATECHANGE : "_STATECHANGE" , BEFORESTATECHANGE : "_BEFORESTATECHANGE" , INIT : "_INIT" , AFTERINIT : "_AFTERINIT" , SCROLL : "_SCROLL" , STARTLOAD : "_STARTLOAD" , AFTERLOAD : "_AFTERLOAD" , BS : "beforesubmit" , AS : "aftersubmit" , SC : "submitcomplete" , SF : "submitfailure" , SS : "submitsuccess" , BVW : "beforeverifywrite" , AVW : "afterverifywrite" , AV : "afterverify" , BW : "beforewrite" , AW : "afterwrite" , WS : "writesuccess" , WF : "writefailure" , BA : "beforeappend" , AA : "afterappend" , BD : "beforedelete" , AD : "beforedelete" , UC : "unloadcheck" , BTOPDF : "beforetopdf" , ATOPDF : "aftertopdf" , BTOEXCEL : "beforetoexcel" , ATOEXCEL : "aftertoexcel" , BTOWORD : "beforetoword" , ATOWORD : "aftertoword" , BTOIMAGE : "beforetoimage" , ATOIMAGE : "aftertoimage" , BTOHTML : "beforetohtml" , ATOHTML : "aftertohtml" , BIMEXCEL : "beforeimportexcel" , AIMEXCEL : "afterimportexcel" , BPDFPRINT : "beforepdfprint" , APDFPRINT : "afterpdfprint" , BFLASHPRINT : "beforeflashprint" , AFLASHPRINT : "afterflashprint" , BAPPLETPRINT : "beforeappletprint" , AAPPLETPRINT : "afterappletprint" , BSEVERPRINT : "beforeserverprint" , ASERVERPRINT : "afterserverprint" , BEMAIL : "beforeemail" , AEMAIL : "afteremail" } } ) , BI . extend ( jQuery . fn , { destroy : function ( ) { this . remove ( ) , BI . isIE ( ) === ! 0 && ( this [ 0 ] . outerHTML = "" ) } , _ _textKeywordMarked _ _ : function ( a , b , c ) { if ( ! BI . isKey ( b ) || ( a + "" ) . length > 100 ) return this . html ( BI . htmlEncode ( a ) ) ; b += "" , b = BI . toUpperCase ( b ) ; var d = ( a || "" ) + "" ; for ( c = ( c || BI . makeFirstPY ( a ) ) + "" , null != c && ( c = BI . toUpperCase ( c ) ) , this . empty ( ) ; ; ) { var e = BI . toUpperCase ( d ) . indexOf ( b ) , f = null ; if ( null != c && ( f = c . indexOf ( b ) , f >= 0 && ( f %= a . length ) ) , e >= 0 ) this . appen
var b = new RegExp ( "(^|&)" + a + "=([^&]*)(&|$)" ) , c = this . substr ( this . indexOf ( "?" ) + 1 ) . match ( b ) ; return c ? unescape ( c [ 2 ] ) : null } , appendQuery : function ( a ) { if ( ! a ) return this ; var b = this ; return b . indexOf ( "?" ) === - 1 && ( b += "?" ) , b . endWith ( "?" ) !== ! 1 || ( b += "&" ) , _ . each ( a , function ( a , c ) { "string" == typeof c && ( b += c + "=" + a + "&" ) } ) , b = b . substr ( 0 , b . length - 1 ) } , replaceAll : function ( a , b ) { return this . replace ( new RegExp ( a , "gm" ) , b ) } , perfectStart : function ( a ) { return this . startWith ( a ) ? this : a + this } , allIndexOf : function ( a ) { if ( "string" != typeof a ) return [ ] ; for ( var b = this , c = [ ] , d = 0 ; b . length > 0 ; ) { var e = b . indexOf ( a ) ; if ( e === - 1 ) break ; c . push ( d + e ) , b = b . substring ( e + a . length , b . length ) , d += e + a . length } return c } } ) , BI . EventListener = { listen : function ( a , b , c ) { return a . addEventListener ? ( a . addEventListener ( b , c , ! 1 ) , { remove : function ( ) { a . removeEventListener ( b , c , ! 1 ) } } ) : a . attachEvent ? ( a . attachEvent ( "on" + b , c ) , { remove : function ( ) { a . detachEvent ( "on" + b , c ) } } ) : void 0 } , capture : function ( a , b , c ) { return a . addEventListener ? ( a . addEventListener ( b , c , ! 0 ) , { remove : function ( ) { a . removeEventListener ( b , c , ! 0 ) } } ) : { remove : BI . emptyFn } } , registerDefault : function ( ) { } } , ! function ( ) { var a = window . cancelAnimationFrame || window . webkitCancelAnimationFrame || window . mozCancelAnimationFrame || window . oCancelAnimationFrame || window . msCancelAnimationFrame || window . clearTimeout , b = window . requestAnimationFrame || window . webkitRequestAnimationFrame || window . mozRequestAnimationFrame || window . oRequestAnimationFrame || window . msRequestAnimationFrame || window . setTimeout ; BI . MouseMoveTracker = function ( a , b , c ) { this . _isDragging = ! 1 , this . _animationFrameID = null , this . _domNode = c , this . _onMove = a , this . _onMoveEnd = b , this . _onMouseMove = BI . bind ( this . _onMouseMove , this ) , this . _onMouseUp = BI . bind ( this . _onMouseUp , this ) , this . _didMouseMove = BI . bind ( this . _didMouseMove , this ) } , BI . MouseMoveTracker . prototype = { constructor : BI . MouseMoveTracker , captureMouseMoves : function ( a ) { this . _eventMoveToken || this . _eventUpToken || ( this . _eventMoveToken = BI . EventListener . listen ( this . _domNode , "mousemove" , this . _onMouseMove ) , this . _eventUpToken = BI . EventListener . listen ( this . _domNode , "mouseup" , this . _onMouseUp ) ) , this . _isDragging || ( this . _deltaX = 0 , this . _deltaY = 0 , this . _isDragging = ! 0 , this . _x = a . clientX , this . _y = a . clientY ) , a . preventDefault ? a . preventDefault ( ) : a . returnValue = ! 1 } , releaseMouseMoves : function ( ) { this . _eventMoveToken && this . _eventUpToken && ( this . _eventMoveToken . remove ( ) , this . _eventMoveToken = null , this . _eventUpToken . remove ( ) , this . _eventUpToken = null ) , null !== this . _animationFrameID && ( a ( this . _animationFrameID ) , this . _animationFrameID = null ) , this . _isDragging && ( this . _isDragging = ! 1 , this . _x = null , this . _y = null ) } , isDragging : function ( ) { return this . _isDragging } , _onMouseMove : function ( a ) { var c = a . clientX , d = a . clientY ; this . _deltaX += c - this . _x , this . _deltaY += d - this . _y , null === this . _animationFrameID && ( this . _animationFrameID = b ( this . _didMouseMove ) ) , this . _x = c , this . _y = d , a . preventDefault ? a . preventDefault ( ) : a . returnValue = ! 1 } , _didMouseMove : function ( ) { this . _animationFrameID = null , this . _onMove ( this . _deltaX , this . _deltaY ) , this . _deltaX = 0 , this . _deltaY = 0 } , _onMouseUp : function ( ) { this . _animationFrameID && this . _didMouseMove ( ) , this . _onMoveEnd ( ) } } } ( ) , ! function ( ) { function a ( a ) { var e = 0 , f = 0 , g = 0 , h = 0 ; return "detail" in a && ( f = a . detail ) , "wheelDelta" in a && ( f = - a . wheelDelta / 120 ) , "wheelDeltaY" in a && ( f = - a . wheelDeltaY / 120 ) , "wheelDeltaX" in a && ( e = - a . wheelDeltaX / 120 ) , "axis" in a && a . axis === a . HORIZONTAL _AXIS && ( e = f , f = 0 ) , g = e * b , h = f * b , "deltaY" in a && ( h = a . deltaY ) , "deltaX" in a && ( g = a . deltaX ) , ( g || h ) && a . deltaMode && ( 1 === a . deltaMode ? ( g *= c , h *= c ) : ( g *= d , h *= d ) ) , g && ! e && ( e = g < 1 ? - 1 : 1 ) , h && ! f && ( f = h < 1 ? - 1 : 1 ) , { spinX : e , spinY : f , pixelX : g , pixelY : h } } var b = 10 , c = 40 , d = 800 , e = window . requestAnimationFrame || window . webkitRequestAnimationFrame || window . mozRequestAnimationFrame || window . oRequestAnimationFrame || window . msRequestAnimationFrame || window . setTimeout ; BI . WheelHandler = function ( a , b , c , d ) { this . _animationFrameID = null , this . _deltaX = 0 , this . _deltaY = 0 , this . _didWheel = BI . bind ( this . _didWheel , this ) , "function" != typeof b && ( b = b ? function ( ) { return ! 0 } : function ( ) { return ! 1 } ) , "function" != typeof c && ( c = c ? function ( ) { return ! 0 } : function ( ) { return ! 1 } ) , "function" != typeof d && ( d = d ? function ( ) { return ! 0 } : function ( ) { return ! 1 } ) , this . _handleScrollX = b , this . _handl
bottom : h } ) ) , BI . isNotNull ( c . lgap ) && ( e += c . lgap , d . element . css ( { left : e } ) ) , BI . isNotNull ( c . rgap ) && ( f += c . rgap , d . element . css ( { right : f } ) ) , BI . isNotNull ( c . tgap ) && ( g += c . tgap , d . element . css ( { top : g } ) ) , BI . isNotNull ( c . bgap ) && ( h += c . bgap , d . element . css ( { bottom : h } ) ) , BI . isNotNull ( b . width ) && d . element . css ( { width : b . width } ) , BI . isNotNull ( b . height ) && d . element . css ( { height : b . height } ) , d } , resize : function ( ) { this . stroke ( this . options . items ) } , populate : function ( a ) { BI . AbsoluteLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.adaptive" , BI . AdaptiveLayout ) , BI . BorderLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . BorderLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-border-layout" , items : { } } ) } , render : function ( ) { BI . BorderLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { this . stroke ( this . options . items ) } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { var b , c = 0 , d = 0 , e = 0 , f = 0 ; if ( "north" in a && ( b = a . north , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "north" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "north" , g ) } this . getWidgetByName ( this . getName ( ) + "north" ) . element . height ( b . height ) . css ( { position : "absolute" , top : b . top || 0 , left : b . left || 0 , right : b . right || 0 , bottom : "initial" } ) } c = ( b . height || 0 ) + ( b . top || 0 ) + ( b . bottom || 0 ) } if ( "south" in a && ( b = a . south , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "south" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "south" , g ) } this . getWidgetByName ( this . getName ( ) + "south" ) . element . height ( b . height ) . css ( { position : "absolute" , bottom : b . bottom || 0 , left : b . left || 0 , right : b . right || 0 , top : "initial" } ) } d = ( b . height || 0 ) + ( b . top || 0 ) + ( b . bottom || 0 ) } if ( "west" in a && ( b = a . west , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "west" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "west" , g ) } this . getWidgetByName ( this . getName ( ) + "west" ) . element . width ( b . width ) . css ( { position : "absolute" , left : b . left || 0 , top : c , bottom : d , right : "initial" } ) } e = ( b . width || 0 ) + ( b . left || 0 ) + ( b . right || 0 ) } if ( "east" in a && ( b = a . east , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "east" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "east" , g ) } this . getWidgetByName ( this . getName ( ) + "east" ) . element . width ( b . width ) . css ( { position : "absolute" , right : b . right || 0 , top : c , bottom : d , left : "initial" } ) } f = ( b . width || 0 ) + ( b . left || 0 ) + ( b . right || 0 ) } if ( "center" in a && ( b = a . center , null != b ) ) { if ( ! this . hasWidget ( this . getName ( ) + "center" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "center" , g ) } this . getWidgetByName ( this . getName ( ) + "center" ) . element . css ( { position : "absolute" , top : c , bottom : d , left : e , right : f } ) } } , populate : function ( a ) { BI . BorderLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.border" , BI . BorderLayout ) , BI . CardLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . CardLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-card-layout" , items : [ ] } ) } , render : function ( ) { BI . CardLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { } , stroke : function ( a ) { var b = this , c = this . options ; this . showIndex = void 0 , BI . each ( a , function ( a , d ) { if ( d ) { if ( b . hasWidget ( d . cardName ) ) var e = b . getWidgetByName ( d . cardName ) ; else { var e = BI . createWidget ( d ) ; e . on ( BI . Events . DESTROY , function ( ) { var a = BI . findIndex ( c . items , function ( a , b ) { return b . cardName == d . cardName } ) ; a > - 1 && c . items . splice ( a , 1 ) } ) , b . addWidget ( d . cardName , e ) } e . element . css ( { position : "absolute" , top : "0" , right : "0" , bottom : "0" , left : "0" } ) , e . setVisible ( ! 1 ) } } ) } , update : function ( ) { } , empty : function ( ) { BI . CardLayout . superclass . empty . apply ( this , arguments ) , this . options . items = [ ] } , populate : function ( a ) { BI . CardLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) , this . options . defaultShowName && this . showCardByName ( this . options . defaultShowName ) } , isCardExisted : function ( a ) { return BI . some ( this . options . items , function ( b , c ) { return c . cardName == a && c . el } ) } , getCardByName : function ( a ) { if ( ! this . isCardExisted ( a ) ) throw new Error ( "cardName is not exist" ) ; return this . _children [ a ] } , _deleteCardByName : function ( a ) { delete this . _children [ a ] ; var b = BI . findIndex ( this . options . items ,
BI . CenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.center" , BI . CenterLayout ) , BI . FloatCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . FloatCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-float-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . FloatCenterLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { var b = this . options , c = [ ] , d = 100 / a . length ; BI . each ( a , function ( b ) { var e = BI . createWidget ( { type : "bi.default" } ) ; e . element . addClass ( "center-element " + ( 0 === b ? "first-element " : "" ) + ( b === a . length - 1 ? "last-element" : "" ) ) . css ( { width : d + "%" , height : "100%" } ) , c . push ( { el : e } ) } ) , BI . each ( a , function ( a , d ) { if ( d ) { var e = BI . createWidget ( d ) ; e . element . css ( { position : "absolute" , left : b . hgap + b . lgap , right : b . hgap + b . rgap , top : b . vgap + b . tgap , bottom : b . vgap + b . bgap , width : "auto" , height : "auto" } ) , c [ a ] . el . addItem ( e ) } } ) , BI . createWidget ( { type : "bi.left" , element : this , items : c } ) } , populate : function ( a ) { BI . FloatCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.float_center" , BI . FloatCenterLayout ) , BI . HorizontalCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . HorizontalCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-horizontal-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . HorizontalCenterLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { var b = this . options , c = [ ] ; BI . each ( a , function ( b ) { c . push ( { column : b , row : 0 , el : BI . createWidget ( { type : "bi.default" , cls : "center-element " + ( 0 === b ? "first-element " : "" ) + ( b === a . length - 1 ? "last-element" : "" ) } ) } ) } ) , BI . each ( a , function ( a , d ) { if ( d ) { var e = BI . createWidget ( d ) ; e . element . css ( { position : "absolute" , left : b . hgap + b . lgap , right : b . hgap + b . rgap , top : b . vgap + b . tgap , bottom : b . vgap + b . bgap , width : "auto" } ) , c [ a ] . el . addItem ( e ) } } ) , BI . createWidget ( { type : "bi.grid" , element : this , columns : c . length , rows : 1 , items : c } ) } , populate : function ( a ) { BI . HorizontalCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.horizontal_center" , BI . HorizontalCenterLayout ) , BI . VerticalCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . VerticalCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-vertical-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . VerticalCenterLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { var b = this . options , c = [ ] ; BI . each ( a , function ( b ) { c . push ( { column : 0 , row : b , el : BI . createWidget ( { type : "bi.default" , cls : "center-element " + ( 0 === b ? "first-element " : "" ) + ( b === a . length - 1 ? "last-element" : "" ) } ) } ) } ) , BI . each ( a , function ( a , d ) { if ( d ) { var e = BI . createWidget ( d ) ; e . element . css ( { position : "absolute" , left : b . hgap + b . lgap , right : b . hgap + b . rgap , top : b . vgap + b . tgap , bottom : b . vgap + b . bgap , height : "auto" } ) , c [ a ] . el . addItem ( e ) } } ) , BI . createWidget ( { type : "bi.grid" , element : this , columns : 1 , rows : c . length , items : c } ) } , populate : function ( a ) { BI . VerticalCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.vertical_center" , BI . VerticalCenterLayout ) , BI . Data = Data = { } , Data . Constant = BICst = { } , function ( ) { var a = { } ; Data . BufferPool = { put : function ( b , c ) { if ( BI . isNotNull ( a [ b ] ) ) throw new Error ( "Buffer Pool has the key already!" ) ; a [ b ] = c } , get : function ( b ) { return a [ b ] } } } ( ) , function ( ) { var a = { } ; Data . SharingPool = { _Shared : a , put : function ( b , c ) { a [ b ] = c } , cat : function ( ) { for ( var b = Array . prototype . slice . call ( arguments , 0 ) , c = a , d = 0 ; d < b . length ; d ++ ) c = c && c [ b [ d ] ] ; return c } , get : function ( ) { return BI . deepClone ( this . cat . apply ( this , arguments ) ) } , remove : function ( b ) { delete a [ b ] } } } ( ) , Data . Req = { } , Data . Source = BISource = { } , function ( a ) { "function" == typeof define && define . amd ? define ( [ "../core/jquery" ] , a ) : "object" == typeof exports ? module . exports = a : a ( jQuery ) } ( function ( a ) { function b ( b ) {
var e = l . nodes , g = c . count || 0 ; c . children . length > g ? ( c . count = c . children . length , BI . delay ( function ( ) { f ( c ) } , n ) ) : ( e . updateNode ( c ) , e . selectNode ( c . children [ 0 ] ) ) } } function e ( a , b , c , d , e , f ) { l . nodes ; BI . Msg . toast ( "Error!" , "warning" ) } function f ( a , b ) { var c = l . nodes ; "refresh" == b && c . updateNode ( a ) , c . reAsyncChildNodes ( a , b , ! 0 ) } function g ( a , b ) { function c ( a ) { BI . each ( a , function ( a , b ) { b . halfCheck === ! 0 && ( b . halfCheck = ! 1 , c ( b . children ) ) } ) } if ( b . halfCheck = ! 1 , b . checked === ! 0 ) { c ( b . children ) ; var d = l . nodes , e = d . getSelectedNodes ( ) ; $ . each ( e , function ( a , b ) { b . halfCheck = ! 1 } ) } } function h ( a , b , c ) { l . _selectTreeNode ( b , c ) } function i ( a , b , c ) { c . halfCheck = ! 1 } function j ( a , b , c ) { } var k = this . options . paras , l = this , m = { async : { enable : ! 0 , url : b , autoParam : [ "id" , "name" ] , otherParam : BI . cjkEncodeDO ( k ) } , check : { enable : ! 0 } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , view : { showIcon : ! 1 , expandSpeed : "" , nameIsHTML : ! 0 , dblClickExpand : ! 1 } , callback : { beforeExpand : c , onAsyncSuccess : d , onAsyncError : e , beforeCheck : g , onCheck : h , onExpand : i , onCollapse : j , onClick : a } } , n = 100 ; return m } , _getParentValues : function ( a ) { if ( ! a . getParentNode ( ) ) return [ ] ; var b = a . getParentNode ( ) , c = this . _getParentValues ( b ) ; return c = c . concat ( [ this . _getNodeValue ( b ) ] ) } , _getNodeValue : function ( a ) { return null == a . value ? a . text . replace ( /<[^>]+>/g , "" ) . replaceAll ( " " , " " ) : a . value } , _getHalfSelectedValues : function ( a , b ) { var c = this , d = b . getCheckStatus ( ) ; if ( d . checked !== ! 1 || d . half !== ! 1 ) { if ( BI . isNotEmptyArray ( b . children ) && d . half === ! 0 ) { var e = b . children ; return void BI . each ( e , function ( b , d ) { c . _getHalfSelectedValues ( a , d ) } ) } var f = b . parentValues || c . _getParentValues ( b ) , g = f . concat ( this . _getNodeValue ( b ) ) ; if ( BI . isNotEmptyArray ( b . children ) || d . half === ! 1 ) return void this . _buildTree ( a , g ) ; var h = BI . deepClone ( this . options . paras . selectedValues ) , i = this . _getTree ( h , g ) ; this . _addTreeNode ( a , f , this . _getNodeValue ( b ) , i ) } } , _getTree : function ( a , b ) { var c = a ; return BI . any ( b , function ( a , b ) { return null == c [ b ] || void ( c = c [ b ] ) } ) , c } , _addTreeNode : function ( a , b , c , d ) { var e = a ; BI . each ( b , function ( a , b ) { null == e [ b ] && ( e [ b ] = { } ) , e = e [ b ] } ) , e [ c ] = d } , _buildTree : function ( a , b ) { var c = a ; BI . each ( b , function ( a , b ) { null == c [ b ] && ( c [ b ] = { } ) , c = c [ b ] } ) } , _getSelectedValues : function ( ) { function a ( a ) { BI . each ( a , function ( a , d ) { var e = d . getCheckStatus ( ) ; if ( e . checked === ! 0 || e . half === ! 0 ) if ( e . half === ! 0 ) b . _getHalfSelectedValues ( c , d ) ; else { var f = d . parentValues || b . _getParentValues ( d ) , g = f . concat ( [ b . _getNodeValue ( d ) ] ) ; b . _buildTree ( c , g ) } } ) } var b = this , c = { } , d = this . nodes . getNodes ( ) ; return a ( d ) , c } , _dealWidthNodes : function ( a ) { var b = this . options , c = BI . Tree . arrayFormat ( a ) ; return BI . each ( c , function ( a , c ) { c . title = c . title || c . text || c . value , BI . isKey ( b . paras . keyword ) ? c . text = $ ( "<div>" ) . _ _textKeywordMarked _ _ ( c . text , b . paras . keyword , c . py ) . html ( ) : c . text = ( c . text + "" ) . replaceAll ( " " , " " ) } ) , a } , _loadMore : function ( ) { var a = this , b = this . options ; this . tip . setLoading ( ) ; var c = BI . extend ( { } , b . paras , { times : ++ this . times } ) ; b . itemsCreator ( c , function ( b ) { if ( a . _stop !== ! 0 ) { var c = ! ! b . hasNext , d = b . items || [ ] ; c ? a . tip . setLoaded ( ) : a . tip . setEnd ( ) , d . length > 0 && a . nodes . addNodes ( null , a . _dealWidthNodes ( d ) ) } } ) } , _initTree : function ( a ) { var b = this , c = this . options ; b . fireEvent ( BI . Events . INIT ) , this . times = 1 ; var d = this . tree ; d . empty ( ) , this . loading ( ) , this . tip . setVisible ( ! 1 ) ; var e = function ( c ) { b . _stop !== ! 0 && ( b . nodes = $ . fn . zTree . init ( d . element , a , c ) ) } , f = BI . extend ( { } , c . paras , { times : 1 } ) ; c . itemsCreator ( f , function ( a ) { if ( b . _stop !== ! 0 ) { var c = ! ! a . hasNext , d = a . items || [ ] ; d . length > 0 && e ( b . _dealWidthNodes ( d ) ) , b . setTipVisible ( d . length <= 0 ) , b . loaded ( ) , c ? b . tip . setLoaded ( ) : b . tip . invisible ( ) , 1 === f . times && b . fireEvent ( BI . Events . AFTERINIT ) } } ) } , initTree : function ( a , b ) { var b = b || { async : { enable : ! 1 } , check : { enable : ! 1 } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , view : { showIcon : ! 1 , expandSpeed : "" , nameIsHTML : ! 0 } , callback : { } } ; this . nodes = $ . fn . zTree . init ( this . tree . element , b , a ) } , start : function ( ) { this . _stop = ! 1 } , stop : function ( ) { this . _stop = ! 0 } , stroke : function ( a ) { delete this . options . keyword , BI . extend ( this . options . paras , a ) ; var b = this . _configSetting ( ) ; this . _createTree ( ) , this . start ( ) , this . _initTree ( b ) } , populate : function ( ) { this . stroke . apply ( this , arguments ) } , hasChecked : function ( ) { var a = this . nodes ; return a . getCheckedNodes ( ! 0 ) . length > 0 }
a . fireEvent ( BI . Expander . EVENT _EXPAND ) ) } , function ( ) { a . isEnabled ( ) && a . isValid ( ) && a . expander . isEnabled ( ) && a . expander . isValid ( ) && b . toggle && ( a . _hideView ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . expander ) , a . fireEvent ( BI . Expander . EVENT _COLLAPSE ) ) } ) ; break ; default : d && a . element . off ( d + "." + a . getName ( ) ) . on ( d + "." + a . getName ( ) , BI . debounce ( function ( c ) { a . expander . element . _ _isMouseInBounds _ _ ( c ) && a . isEnabled ( ) && a . isValid ( ) && a . expander . isEnabled ( ) && a . expander . isValid ( ) && ( b . toggle ? a . _toggle ( ) : a . _popupView ( ) , a . isExpanded ( ) ? ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , a . expander ) , a . fireEvent ( BI . Expander . EVENT _EXPAND ) ) : ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . expander ) , a . fireEvent ( BI . Expander . EVENT _COLLAPSE ) ) ) } , BI . EVENT _RESPONSE _TIME , ! 0 ) ) } } ) } , _initExpander : function ( ) { this . expander = BI . createWidget ( this . options . el , { value : this . options . value } ) } , _assertPopupView : function ( ) { var a = this , b = this . options ; null == this . popupView && ( this . popupView = BI . createWidget ( this . options . popup , { type : "bi.button_group" , cls : "expander-popup" , layouts : [ { type : "bi.vertical" , hgap : 0 , vgap : 0 } ] , value : b . value } , this ) , this . popupView . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , b === BI . Events . CLICK && a . fireEvent ( BI . Expander . EVENT _CHANGE , c , d ) } ) , this . popupView . setVisible ( this . isExpanded ( ) ) , BI . nextTick ( function ( ) { a . fireEvent ( BI . Expander . EVENT _AFTER _INIT ) } ) ) } , _assertPopupViewRender : function ( ) { this . _assertPopupView ( ) , this . _rendered || ( BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . popupView } ] } ) , this . _rendered = ! 0 ) } , _hideView : function ( ) { this . fireEvent ( BI . Expander . EVENT _BEFORE _HIDEVIEW ) , this . _expanded = ! 1 , this . expander . setOpened ( ! 1 ) , this . popupView && this . popupView . invisible ( ) , this . element . removeClass ( this . options . expanderClass ) , this . fireEvent ( BI . Expander . EVENT _AFTER _HIDEVIEW ) } , _popupView : function ( ) { this . _assertPopupViewRender ( ) , this . fireEvent ( BI . Expander . EVENT _BEFORE _POPUPVIEW ) , this . _expanded = ! 0 , this . expander . setOpened ( ! 0 ) , this . popupView . visible ( ) , this . element . addClass ( this . options . expanderClass ) , this . fireEvent ( BI . Expander . EVENT _AFTER _POPUPVIEW ) } , populate : function ( a ) { this . popupView && this . popupView . populate . apply ( this . popupView , arguments ) , this . expander . populate . apply ( this . expander , arguments ) } , _setEnable : function ( a ) { BI . Expander . superclass . _setEnable . apply ( this , arguments ) , ! a && this . element . removeClass ( this . options . hoverClass ) , ! a && this . isViewVisible ( ) && this . _hideView ( ) } , setValue : function ( a ) { this . expander . setValue ( a ) , BI . isNull ( this . popupView ) ? this . options . popup . value = a : this . popupView . setValue ( a ) } , getValue : function ( ) { return BI . isNull ( this . popupView ) ? this . options . popup . value : this . popupView . getValue ( ) } , isViewVisible : function ( ) { return this . isEnabled ( ) && this . expander . isEnabled ( ) && ! ! this . popupView && this . popupView . isVisible ( ) } , isExpanded : function ( ) { return this . _expanded } , showView : function ( ) { this . isEnabled ( ) && this . expander . isEnabled ( ) && this . _popupView ( ) } , hideView : function ( ) { this . _hideView ( ) } , getView : function ( ) { return this . popupView } , getAllLeaves : function ( ) { return this . popupView && this . popupView . getAllLeaves ( ) } , getNodeById : function ( a ) { return this . expander . options . id === a ? this . expander : this . popupView && this . popupView . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . expander . getValue ( ) === a ? this . expander : this . popupView && this . popupView . getNodeByValue ( a ) } , destroy : function ( ) { BI . Expander . superclass . destroy . apply ( this , arguments ) } } ) , BI . Expander . EVENT _EXPAND = "EVENT_EXPAND" , BI . Expander . EVENT _COLLAPSE = "EVENT_COLLAPSE" , BI . Expander . EVENT _TRIGGER _CHANGE = "EVENT_TRIGGER_CHANGE" , BI . Expander . EVENT _CHANGE = "EVENT_CHANGE" , BI . Expander . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . Expander . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . Expander . EVENT _AFTER _POPUPVIEW = "EVENT_AFTER_POPUPVIEW" , BI . Expander . EVENT _BEFORE _HIDEVIEW = "EVENT_BEFORE_HIDEVIEW" , BI . Expander . EVENT _AFTER _HIDEVIEW = "EVENT_AFTER_HIDEVIEW" , BI . shortcut ( "bi.expander" , BI . Expander ) , BI . ComboGroup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ComboGroup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : " bi - combo - grou
d . shift = ! 1 , d . selForContextMenu = null , d . activeTouch = null , c . init ( d ) } function c ( b ) { b . doc . mode = a . getMode ( b . options , b . doc . modeOption ) , d ( b ) } function d ( a ) { a . doc . iter ( function ( a ) { a . stateAfter && ( a . stateAfter = null ) , a . styles && ( a . styles = null ) } ) , a . doc . frontier = a . doc . first , Ma ( a , 100 ) , a . state . modeGen ++ , a . curOp && Ib ( a ) } function e ( a ) { a . options . lineWrapping ? ( Rg ( a . display . wrapper , "CodeMirror-wrap" ) , a . display . sizer . style . minWidth = "" , a . display . sizerWidth = null ) : ( Qg ( a . display . wrapper , "CodeMirror-wrap" ) , m ( a ) ) , g ( a ) , Ib ( a ) , gb ( a ) , setTimeout ( function ( ) { s ( a ) } , 100 ) } function f ( a ) { var b = rb ( a . display ) , c = a . options . lineWrapping , d = c && Math . max ( 5 , a . display . scroller . clientWidth / sb ( a . display ) - 3 ) ; return function ( e ) { if ( sd ( a . doc , e ) ) return 0 ; var f = 0 ; if ( e . widgets ) for ( var g = 0 ; g < e . widgets . length ; g ++ ) e . widgets [ g ] . height && ( f += e . widgets [ g ] . height ) ; return c ? f + ( Math . ceil ( e . text . length / d ) || 1 ) * b : f + b } } function g ( a ) { var b = a . doc , c = f ( a ) ; b . iter ( function ( a ) { var b = c ( a ) ; b != a . height && Yd ( a , b ) } ) } function h ( a ) { a . display . wrapper . className = a . display . wrapper . className . replace ( /\s*cm-s-\S+/g , "" ) + a . options . theme . replace ( /(^|\s)\s*/g , " cm-s-" ) , gb ( a ) } function i ( a ) { j ( a ) , Ib ( a ) , setTimeout ( function ( ) { v ( a ) } , 20 ) } function j ( a ) { var b = a . display . gutters , c = a . options . gutters ; Ne ( b ) ; for ( var d = 0 ; d < c . length ; ++ d ) { var e = c [ d ] , f = b . appendChild ( Me ( "div" , null , "CodeMirror-gutter " + e ) ) ; "CodeMirror-linenumbers" == e && ( a . display . lineGutter = f , f . style . width = ( a . display . lineNumWidth || 1 ) + "px" ) } b . style . display = d ? "" : "none" , k ( a ) } function k ( a ) { var b = a . display . gutters . offsetWidth ; a . display . sizer . style . marginLeft = b + "px" } function l ( a ) { if ( 0 == a . height ) return 0 ; for ( var b , c = a . text . length , d = a ; b = ld ( d ) ; ) { var e = b . find ( 0 , ! 0 ) ; d = e . from . line , c += e . from . ch - e . to . ch } for ( d = a ; b = md ( d ) ; ) { var e = b . find ( 0 , ! 0 ) ; c -= d . text . length - e . from . ch , d = e . to . line , c += d . text . length - e . to . ch } return c } function m ( a ) { var b = a . display , c = a . doc ; b . maxLine = Vd ( c , c . first ) , b . maxLineLength = l ( b . maxLine ) , b . maxLineChanged = ! 0 , c . iter ( function ( a ) { var c = l ( a ) ; c > b . maxLineLength && ( b . maxLineLength = c , b . maxLine = a ) } ) } function n ( a ) { var b = De ( a . gutters , "CodeMirror-linenumbers" ) ; b == - 1 && a . lineNumbers ? a . gutters = a . gutters . concat ( [ "CodeMirror-linenumbers" ] ) : b > - 1 && ! a . lineNumbers && ( a . gutters = a . gutters . slice ( 0 ) , a . gutters . splice ( b , 1 ) ) } function o ( a ) { var b = a . display , c = b . gutters . offsetWidth , d = Math . round ( a . doc . height + Ra ( a . display ) ) ; return { clientHeight : b . scroller . clientHeight , viewHeight : b . wrapper . clientHeight , scrollWidth : b . scroller . scrollWidth , clientWidth : b . scroller . clientWidth , viewWidth : b . wrapper . clientWidth , barLeft : a . options . fixedGutter ? c : 0 , docHeight : d , scrollHeight : d + Ta ( a ) + b . barHeight , nativeBarWidth : b . nativeBarWidth , gutterWidth : c } } function p ( a , b , c ) { this . cm = c ; var d = this . vert = Me ( "div" , [ Me ( "div" , null , null , "min-width: 1px" ) ] , "CodeMirror-vscrollbar" ) , e = this . horiz = Me ( "div" , [ Me ( "div" , null , null , "height: 100%; min-height: 1px" ) ] , "CodeMirror-hscrollbar" ) ; a ( d ) , a ( e ) , xg ( d , "scroll" , function ( ) { d . clientHeight && b ( d . scrollTop , "vertical" ) } ) , xg ( e , "scroll" , function ( ) { e . clientWidth && b ( e . scrollLeft , "horizontal" ) } ) , this . checkedOverlay = ! 1 , nf && of < 8 && ( this . horiz . style . minHeight = this . vert . style . minWidth = "18px" ) } function q ( ) { } function r ( b ) { b . display . scrollbars && ( b . display . scrollbars . clear ( ) , b . display . scrollbars . addClass && Qg ( b . display . wrapper , b . display . scrollbars . addClass ) ) , b . display . scrollbars = new a . scrollbarModel [ b . options . scrollbarStyle ] ( function ( a ) { b . display . wrapper . insertBefore ( a , b . display . scrollbarFiller ) , xg ( a , "mousedown" , function ( ) { b . state . focused && setTimeout ( function ( ) { b . display . input . focus ( ) } , 0 ) } ) , a . setAttribute ( "cm-not-content" , "true" ) } , function ( a , c ) { "horizontal" == c ? bc ( b , a ) : ac ( b , a ) } , b ) , b . display . scrollbars . addClass && Rg ( b . display . wrapper , b . display . scrollbars . addClass ) } function s ( a , b ) { b || ( b = o ( a ) ) ; var c = a . display . barWidth , d = a . display . barHeight ; t ( a , b ) ; for ( var e = 0 ; e < 4 && c != a . display . barWidth || d != a . display . barHeight ; e ++ ) c != a . display . barWidth && a . options . lineWrapping && F ( a ) , t ( a , o ( a ) ) , c = a . display . barWidth , d = a . display . barHeight } function t ( a , b ) { var c = a . display , d = c . scrollbars . update ( b ) ; c . sizer . style . paddingRight = ( c . barWidth = d . right ) + "px" , c . sizer . style . paddingBottom = ( c . barHeight = d . bottom ) + "px" , d . right && d . bottom ? ( c . scrollbarFiller . style . display = "block" , c
e = Zd ( g = j . to . line ) } } function qb ( a , b , c , d , e ) { function f ( d ) { var e = mb ( a , Ff ( c , d ) , "line" , b , j ) ; return h = ! 0 , g > e . bottom ? e . left - i : g < e . top ? e . left + i : ( h = ! 1 , e . left ) } var g = e - _d ( b ) , h = ! 1 , i = 2 * a . display . wrapper . clientWidth , j = _a ( a , b ) , k = ae ( b ) , l = b . text . length , m = _e ( b ) , n = af ( b ) , o = f ( m ) , p = h , q = f ( n ) , r = h ; if ( d > q ) return ob ( c , n , r , 1 ) ; for ( ; ; ) { if ( k ? n == m || n == hf ( b , m , 1 ) : n - m <= 1 ) { for ( var s = d < o || d - o <= q - d ? m : n , t = d - ( s == m ? o : q ) ; Le ( b . text . charAt ( s ) ) ; ) ++ s ; var u = ob ( c , s , s == m ? p : r , t < - 1 ? - 1 : t > 1 ? 1 : 0 ) ; return u } var v = Math . ceil ( l / 2 ) , w = m + v ; if ( k ) { w = m ; for ( var x = 0 ; x < v ; ++ x ) w = hf ( b , w , 1 ) } var y = f ( w ) ; y > d ? ( n = w , q = y , ( r = h ) && ( q += 1e3 ) , l = v ) : ( m = w , o = y , p = h , l -= v ) } } function rb ( a ) { if ( null != a . cachedTextHeight ) return a . cachedTextHeight ; if ( null == If ) { If = Me ( "pre" ) ; for ( var b = 0 ; b < 49 ; ++ b ) If . appendChild ( document . createTextNode ( "x" ) ) , If . appendChild ( Me ( "br" ) ) ; If . appendChild ( document . createTextNode ( "x" ) ) } Oe ( a . measure , If ) ; var c = If . offsetHeight / 50 ; return c > 3 && ( a . cachedTextHeight = c ) , Ne ( a . measure ) , c || 1 } function sb ( a ) { if ( null != a . cachedCharWidth ) return a . cachedCharWidth ; var b = Me ( "span" , "xxxxxxxxxx" ) , c = Me ( "pre" , [ b ] ) ; Oe ( a . measure , c ) ; var d = b . getBoundingClientRect ( ) , e = ( d . right - d . left ) / 10 ; return e > 2 && ( a . cachedCharWidth = e ) , e || 10 } function tb ( a ) { a . curOp = { cm : a , viewChanged : ! 1 , startHeight : a . doc . height , forceUpdate : ! 1 , updateInput : null , typing : ! 1 , changeObjs : null , cursorActivityHandlers : null , cursorActivityCalled : 0 , selectionChanged : ! 1 , updateMaxLine : ! 1 , scrollLeft : null , scrollTop : null , scrollToPos : null , focus : ! 1 , id : ++ Nf } , Mf ? Mf . ops . push ( a . curOp ) : a . curOp . ownsGroup = Mf = { ops : [ a . curOp ] , delayedCallbacks : [ ] } } function ub ( a ) { var b = a . delayedCallbacks , c = 0 ; do { for ( ; c < b . length ; c ++ ) b [ c ] ( ) ; for ( var d = 0 ; d < a . ops . length ; d ++ ) { var e = a . ops [ d ] ; if ( e . cursorActivityHandlers ) for ( ; e . cursorActivityCalled < e . cursorActivityHandlers . length ; ) e . cursorActivityHandlers [ e . cursorActivityCalled ++ ] ( e . cm ) } } while ( c < b . length ) } function vb ( a ) { var b = a . curOp , c = b . ownsGroup ; if ( c ) try { ub ( c ) } finally { Mf = null ; for ( var d = 0 ; d < c . ops . length ; d ++ ) c . ops [ d ] . cm . curOp = null ; wb ( c ) } } function wb ( a ) { for ( var b = a . ops , c = 0 ; c < b . length ; c ++ ) xb ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) yb ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) zb ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) Ab ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) Bb ( b [ c ] ) } function xb ( a ) { var b = a . cm , c = b . display ; A ( b ) , a . updateMaxLine && m ( b ) , a . mustUpdate = a . viewChanged || a . forceUpdate || null != a . scrollTop || a . scrollToPos && ( a . scrollToPos . from . line < c . viewFrom || a . scrollToPos . to . line >= c . viewTo ) || c . maxLineChanged && b . options . lineWrapping , a . update = a . mustUpdate && new z ( b , a . mustUpdate && { top : a . scrollTop , ensure : a . scrollToPos } , a . forceUpdate ) } function yb ( a ) { a . updatedDisplay = a . mustUpdate && B ( a . cm , a . update ) } function zb ( a ) { var b = a . cm , c = b . display ; a . updatedDisplay && F ( b ) , a . barMeasure = o ( b ) , c . maxLineChanged && ! b . options . lineWrapping && ( a . adjustWidthTo = Za ( b , c . maxLine , c . maxLine . text . length ) . left + 3 , b . display . sizerWidth = a . adjustWidthTo , a . barMeasure . scrollWidth = Math . max ( c . scroller . clientWidth , c . sizer . offsetLeft + a . adjustWidthTo + Ta ( b ) + b . display . barWidth ) , a . maxScrollLeft = Math . max ( 0 , c . sizer . offsetLeft + a . adjustWidthTo - Ua ( b ) ) ) , ( a . updatedDisplay || a . selectionChanged ) && ( a . preparedSelection = c . input . prepareSelection ( ) ) } function Ab ( a ) { var b = a . cm ; null != a . adjustWidthTo && ( b . display . sizer . style . minWidth = a . adjustWidthTo + "px" , a . maxScrollLeft < b . doc . scrollLeft && bc ( b , Math . min ( b . display . scroller . scrollLeft , a . maxScrollLeft ) , ! 0 ) , b . display . maxLineChanged = ! 1 ) , a . preparedSelection && b . display . input . showSelection ( a . preparedSelection ) , a . updatedDisplay && E ( b , a . barMeasure ) , ( a . updatedDisplay || a . startHeight != b . doc . height ) && s ( b , a . barMeasure ) , a . selectionChanged && La ( b ) , b . state . focused && a . updateInput && b . display . input . reset ( a . typing ) , a . focus && a . focus == Pe ( ) && Y ( a . cm ) } function Bb ( a ) { var b = a . cm , c = b . display , d = b . doc ; if ( a . updatedDisplay && C ( b , a . update ) , null == c . wheelStartX || null == a . scrollTop && null == a . scrollLeft && ! a . scrollToPos || ( c . wheelStartX = c . wheelStartY = null ) , null == a . scrollTop || c . scroller . scrollTop == a . scrollTop && ! a . forceScroll || ( d . scrollTop = Math . max ( 0 , Math . min ( c . scroller . scrollHeight - c . scroller . clientHeight , a . scrollTop ) ) , c . scrollbars . setScrollTop ( d . scrollTop ) , c . scroller . scrollTop = d . scrollTop ) , null == a . scrollLeft || c . scroller . scrollLeft == a . scrollLeft && ! a . forceScroll || ( d . scrollLeft = Math . max (
this . from = b , this . to = c } function Yc ( a , b ) { if ( a ) for ( var c = 0 ; c < a . length ; ++ c ) { var d = a [ c ] ; if ( d . marker == b ) return d } } function Zc ( a , b ) { for ( var c , d = 0 ; d < a . length ; ++ d ) a [ d ] != b && ( c || ( c = [ ] ) ) . push ( a [ d ] ) ; return c } function $c ( a , b ) { a . markedSpans = a . markedSpans ? a . markedSpans . concat ( [ b ] ) : [ b ] , b . marker . attachLine ( a ) } function _c ( a , b , c ) { if ( a ) for ( var d , e = 0 ; e < a . length ; ++ e ) { var f = a [ e ] , g = f . marker , h = null == f . from || ( g . inclusiveLeft ? f . from <= b : f . from < b ) ; if ( h || f . from == b && "bookmark" == g . type && ( ! c || ! f . marker . insertLeft ) ) { var i = null == f . to || ( g . inclusiveRight ? f . to >= b : f . to > b ) ; ( d || ( d = [ ] ) ) . push ( new Xc ( g , f . from , i ? null : f . to ) ) } } return d } function ad ( a , b , c ) { if ( a ) for ( var d , e = 0 ; e < a . length ; ++ e ) { var f = a [ e ] , g = f . marker , h = null == f . to || ( g . inclusiveRight ? f . to >= b : f . to > b ) ; if ( h || f . from == b && "bookmark" == g . type && ( ! c || f . marker . insertLeft ) ) { var i = null == f . from || ( g . inclusiveLeft ? f . from <= b : f . from < b ) ; ( d || ( d = [ ] ) ) . push ( new Xc ( g , i ? null : f . from - b , null == f . to ? null : f . to - b ) ) } } return d } function bd ( a , b ) { if ( b . full ) return null ; var c = sa ( a , b . from . line ) && Vd ( a , b . from . line ) . markedSpans , d = sa ( a , b . to . line ) && Vd ( a , b . to . line ) . markedSpans ; if ( ! c && ! d ) return null ; var e = b . from . ch , f = b . to . ch , g = 0 == Gf ( b . from , b . to ) , h = _c ( c , e , g ) , i = ad ( d , f , g ) , j = 1 == b . text . length , k = Ce ( b . text ) . length + ( j ? e : 0 ) ; if ( h ) for ( var l = 0 ; l < h . length ; ++ l ) { var m = h [ l ] ; if ( null == m . to ) { var n = Yc ( i , m . marker ) ; n ? j && ( m . to = null == n . to ? null : n . to + k ) : m . to = e } } if ( i ) for ( var l = 0 ; l < i . length ; ++ l ) { var m = i [ l ] ; if ( null != m . to && ( m . to += k ) , null == m . from ) { var n = Yc ( h , m . marker ) ; n || ( m . from = k , j && ( h || ( h = [ ] ) ) . push ( m ) ) } else m . from += k , j && ( h || ( h = [ ] ) ) . push ( m ) } h && ( h = cd ( h ) ) , i && i != h && ( i = cd ( i ) ) ; var o = [ h ] ; if ( ! j ) { var p , q = b . text . length - 2 ; if ( q > 0 && h ) for ( var l = 0 ; l < h . length ; ++ l ) null == h [ l ] . to && ( p || ( p = [ ] ) ) . push ( new Xc ( h [ l ] . marker , null , null ) ) ; for ( var l = 0 ; l < q ; ++ l ) o . push ( p ) ; o . push ( i ) } return o } function cd ( a ) { for ( var b = 0 ; b < a . length ; ++ b ) { var c = a [ b ] ; null != c . from && c . from == c . to && c . marker . clearWhenEmpty !== ! 1 && a . splice ( b -- , 1 ) } return a . length ? a : null } function dd ( a , b ) { var c = le ( a , b ) , d = bd ( a , b ) ; if ( ! c ) return d ; if ( ! d ) return c ; for ( var e = 0 ; e < c . length ; ++ e ) { var f = c [ e ] , g = d [ e ] ; if ( f && g ) a : for ( var h = 0 ; h < g . length ; ++ h ) { for ( var i = g [ h ] , j = 0 ; j < f . length ; ++ j ) if ( f [ j ] . marker == i . marker ) continue a ; f . push ( i ) } else g && ( c [ e ] = g ) } return c } function ed ( a , b , c ) { var d = null ; if ( a . iter ( b . line , c . line + 1 , function ( a ) { if ( a . markedSpans ) for ( var b = 0 ; b < a . markedSpans . length ; ++ b ) { var c = a . markedSpans [ b ] . marker ; ! c . readOnly || d && De ( d , c ) != - 1 || ( d || ( d = [ ] ) ) . push ( c ) } } ) , ! d ) return null ; for ( var e = [ { from : b , to : c } ] , f = 0 ; f < d . length ; ++ f ) for ( var g = d [ f ] , h = g . find ( 0 ) , i = 0 ; i < e . length ; ++ i ) { var j = e [ i ] ; if ( ! ( Gf ( j . to , h . from ) < 0 || Gf ( j . from , h . to ) > 0 ) ) { var k = [ i , 1 ] , l = Gf ( j . from , h . from ) , m = Gf ( j . to , h . to ) ; ( l < 0 || ! g . inclusiveLeft && ! l ) && k . push ( { from : j . from , to : h . from } ) , ( m > 0 || ! g . inclusiveRight && ! m ) && k . push ( { from : h . to , to : j . to } ) , e . splice . apply ( e , k ) , i += k . length - 1 } } return e } function fd ( a ) { var b = a . markedSpans ; if ( b ) { for ( var c = 0 ; c < b . length ; ++ c ) b [ c ] . marker . detachLine ( a ) ; a . markedSpans = null } } function gd ( a , b ) { if ( b ) { for ( var c = 0 ; c < b . length ; ++ c ) b [ c ] . marker . attachLine ( a ) ; a . markedSpans = b } } function hd ( a ) { return a . inclusiveLeft ? - 1 : 0 } function id ( a ) { return a . inclusiveRight ? 1 : 0 } function jd ( a , b ) { var c = a . lines . length - b . lines . length ; if ( 0 != c ) return c ; var d = a . find ( ) , e = b . find ( ) , f = Gf ( d . from , e . from ) || hd ( a ) - hd ( b ) ; if ( f ) return - f ; var g = Gf ( d . to , e . to ) || id ( a ) - id ( b ) ; return g ? g : b . id - a . id } function kd ( a , b ) { var c , d = Ef && a . markedSpans ; if ( d ) for ( var e , f = 0 ; f < d . length ; ++ f ) e = d [ f ] , e . marker . collapsed && null == ( b ? e . from : e . to ) && ( ! c || jd ( c , e . marker ) < 0 ) && ( c = e . marker ) ; return c } function ld ( a ) { return kd ( a , ! 0 ) } function md ( a ) { return kd ( a , ! 1 ) } function nd ( a , b , c , d , e ) { var f = Vd ( a , b ) , g = Ef && f . markedSpans ; if ( g ) for ( var h = 0 ; h < g . length ; ++ h ) { var i = g [ h ] ; if ( i . marker . collapsed ) { var j = i . marker . find ( 0 ) , k = Gf ( j . from , c ) || hd ( i . marker ) - hd ( e ) , l = Gf ( j . to , d ) || id ( i . marker ) - id ( e ) ; if ( ! ( k >= 0 && l <= 0 || k <= 0 && l >= 0 ) && ( k <= 0 && ( Gf ( j . to , c ) > 0 || i . marker . inclusiveRight && e . inclusiveLeft ) || k >= 0 && ( Gf ( j . from , d ) < 0 || i . marker . inclusiveLeft && e . inclusiveRight ) ) ) return ! 0 } } } function od ( a ) { for ( var b ; b = ld ( a ) ; ) a = b . find ( - 1 , ! 0 ) . line ; return a } function pd ( a ) { for ( var b , c ; b = md ( a ) ; ) a = b . find ( 1 , ! 0 ) . line , ( c || ( c = [ ] ) ) . push ( a ) ; return c } function qd ( a , b ) { var c = Vd ( a , b ) , d = od ( c ) ; return c == d ? b : Zd ( d ) } function rd ( a , b ) { if ( b > a . lastLine ( ) ) return b ; var c , d = Vd ( a , b ) ;
} else setTimeout ( c , 50 ) } } , setUneditable : Fe , needsContentAttribute : ! 1 } , da . prototype ) , fa . prototype = He ( { init : function ( a ) { function b ( a ) { if ( d . somethingSelected ( ) ) Hf = d . getSelections ( ) , "cut" == a . type && d . replaceSelection ( "" , null , "cut" ) ; else { if ( ! d . options . lineWiseCopyCut ) return ; var b = ba ( d ) ; Hf = b . text , "cut" == a . type && d . operation ( function ( ) { d . setSelections ( b . ranges , 0 , Dg ) , d . replaceSelection ( "" , null , "cut" ) } ) } if ( a . clipboardData && ! wf ) a . preventDefault ( ) , a . clipboardData . clearData ( ) , a . clipboardData . setData ( "text/plain" , Hf . join ( "\n" ) ) ; else { var c = ea ( ) , e = c . firstChild ; d . display . lineSpace . insertBefore ( c , d . display . lineSpace . firstChild ) , e . value = Hf . join ( "\n" ) ; var f = document . activeElement ; Ig ( e ) , setTimeout ( function ( ) { d . display . lineSpace . removeChild ( c ) , f . focus ( ) } , 50 ) } } var c = this , d = c . cm , e = c . div = a . lineDiv ; e . contentEditable = "true" , ca ( e ) , xg ( e , "paste" , function ( a ) { _ ( a , d ) } ) , xg ( e , "compositionstart" , function ( a ) { var b = a . data ; if ( c . composing = { sel : d . doc . sel , data : b , startData : b } , b ) { var e = d . doc . sel . primary ( ) , f = d . getLine ( e . head . line ) , g = f . indexOf ( b , Math . max ( 0 , e . head . ch - b . length ) ) ; g > - 1 && g <= e . head . ch && ( c . composing . sel = oa ( Ff ( e . head . line , g ) , Ff ( e . head . line , g + b . length ) ) ) } } ) , xg ( e , "compositionupdate" , function ( a ) { c . composing . data = a . data } ) , xg ( e , "compositionend" , function ( a ) { var b = c . composing ; b && ( a . data == b . startData || /\u200b/ . test ( a . data ) || ( b . data = a . data ) , setTimeout ( function ( ) { b . handled || c . applyComposition ( b ) , c . composing == b && ( c . composing = null ) } , 50 ) ) } ) , xg ( e , "touchstart" , function ( ) { c . forceCompositionEnd ( ) } ) , xg ( e , "input" , function ( ) { c . composing || c . pollContent ( ) || Cb ( c . cm , function ( ) { Ib ( d ) } ) } ) , xg ( e , "copy" , b ) , xg ( e , "cut" , b ) } , prepareSelection : function ( ) { var a = Ia ( this . cm , ! 1 ) ; return a . focus = this . cm . state . focused , a } , showSelection : function ( a ) { a && this . cm . display . view . length && ( a . focus && this . showPrimarySelection ( ) , this . showMultipleSelections ( a ) ) } , showPrimarySelection : function ( ) { var a = window . getSelection ( ) , b = this . cm . doc . sel . primary ( ) , c = ia ( this . cm , a . anchorNode , a . anchorOffset ) , d = ia ( this . cm , a . focusNode , a . focusOffset ) ; if ( ! c || c . bad || ! d || d . bad || 0 != Gf ( X ( c , d ) , b . from ( ) ) || 0 != Gf ( W ( c , d ) , b . to ( ) ) ) { var e = ga ( this . cm , b . from ( ) ) , f = ga ( this . cm , b . to ( ) ) ; if ( e || f ) { var g = this . cm . display . view , h = a . rangeCount && a . getRangeAt ( 0 ) ; if ( e ) { if ( ! f ) { var i = g [ g . length - 1 ] . measure , j = i . maps ? i . maps [ i . maps . length - 1 ] : i . map ; f = { node : j [ j . length - 1 ] , offset : j [ j . length - 2 ] - j [ j . length - 3 ] } } } else e = { node : g [ 0 ] . measure . map [ 2 ] , offset : 0 } ; try { var k = Jg ( e . node , e . offset , f . offset , f . node ) } catch ( l ) { } k && ( a . removeAllRanges ( ) , a . addRange ( k ) , h && null == a . anchorNode ? a . addRange ( h ) : kf && this . startGracePeriod ( ) ) , this . rememberSelection ( ) } } } , startGracePeriod : function ( ) { var a = this ; clearTimeout ( this . gracePeriod ) , this . gracePeriod = setTimeout ( function ( ) { a . gracePeriod = ! 1 , a . selectionChanged ( ) && a . cm . operation ( function ( ) { a . cm . curOp . selectionChanged = ! 0 } ) } , 20 ) } , showMultipleSelections : function ( a ) { Oe ( this . cm . display . cursorDiv , a . cursors ) , Oe ( this . cm . display . selectionDiv , a . selection ) } , rememberSelection : function ( ) { var a = window . getSelection ( ) ; this . lastAnchorNode = a . anchorNode , this . lastAnchorOffset = a . anchorOffset , this . lastFocusNode = a . focusNode , this . lastFocusOffset = a . focusOffset } , selectionInEditor : function ( ) { var a = window . getSelection ( ) ; if ( ! a . rangeCount ) return ! 1 ; var b = a . getRangeAt ( 0 ) . commonAncestorContainer ; return Ng ( this . div , b ) } , focus : function ( ) { "nocursor" != this . cm . options . readOnly && this . div . focus ( ) } , blur : function ( ) { this . div . blur ( ) } , getField : function ( ) { return this . div } , supportsTouch : function ( ) { return ! 0 } , receivedFocus : function ( ) { function a ( ) { b . cm . state . focused && ( b . pollSelection ( ) , b . polling . set ( b . cm . options . pollInterval , a ) ) } var b = this ; this . selectionInEditor ( ) ? this . pollSelection ( ) : Cb ( this . cm , function ( ) { b . cm . curOp . selectionChanged = ! 0 } ) , this . polling . set ( this . cm . options . pollInterval , a ) } , selectionChanged : function ( ) { var a = window . getSelection ( ) ; return a . anchorNode != this . lastAnchorNode || a . anchorOffset != this . lastAnchorOffset || a . focusNode != this . lastFocusNode || a . focusOffset != this . lastFocusOffset } , pollSelection : function ( ) { if ( ! this . composing && ! this . gracePeriod && this . selectionChanged ( ) ) { var a = window . getSelection ( ) , b = this . cm ; this . rememberSelection ( ) ; var c = ia ( b , a . anchorNode , a . anchorOffset ) , d = ia ( b , a . focusNode , a . focusOffse
this . lines . length = 0 , this . explicitlyCleared = ! 0 , this . atomic && this . doc . cantEdit && ( this . doc . cantEdit = ! 1 , a && Ea ( a . doc ) ) , a && te ( a , "markerCleared" , a , this ) , b && vb ( a ) , this . parent && this . parent . clear ( ) } } , kg . prototype . find = function ( a , b ) { null == a && "bookmark" == this . type && ( a = 1 ) ; for ( var c , d , e = 0 ; e < this . lines . length ; ++ e ) { var f = this . lines [ e ] , g = Yc ( f . markedSpans , this ) ; if ( null != g . from && ( c = Ff ( b ? f : Zd ( f ) , g . from ) , a == - 1 ) ) return c ; if ( null != g . to && ( d = Ff ( b ? f : Zd ( f ) , g . to ) , 1 == a ) ) return d } return c && { from : c , to : d } } , kg . prototype . changed = function ( ) { var a = this . find ( - 1 , ! 0 ) , b = this , c = this . doc . cm ; a && c && Cb ( c , function ( ) { var d = a . line , e = Zd ( a . line ) , f = $a ( c , e ) ; if ( f && ( eb ( f ) , c . curOp . selectionChanged = c . curOp . forceUpdate = ! 0 ) , c . curOp . updateMaxLine = ! 0 , ! sd ( b . doc , d ) && null != b . height ) { var g = b . height ; b . height = null ; var h = vd ( b ) - g ; h && Yd ( d , d . height + h ) } } ) } , kg . prototype . attachLine = function ( a ) { if ( ! this . lines . length && this . doc . cm ) { var b = this . doc . cm . curOp ; b . maybeHiddenMarkers && De ( b . maybeHiddenMarkers , this ) != - 1 || ( b . maybeUnhiddenMarkers || ( b . maybeUnhiddenMarkers = [ ] ) ) . push ( this ) } this . lines . push ( a ) } , kg . prototype . detachLine = function ( a ) { if ( this . lines . splice ( De ( this . lines , a ) , 1 ) , ! this . lines . length && this . doc . cm ) { var b = this . doc . cm . curOp ; ( b . maybeHiddenMarkers || ( b . maybeHiddenMarkers = [ ] ) ) . push ( this ) } } ; var jg = 0 , lg = a . SharedTextMarker = function ( a , b ) { this . markers = a , this . primary = b ; for ( var c = 0 ; c < a . length ; ++ c ) a [ c ] . parent = this } ; ye ( lg ) , lg . prototype . clear = function ( ) { if ( ! this . explicitlyCleared ) { this . explicitlyCleared = ! 0 ; for ( var a = 0 ; a < this . markers . length ; ++ a ) this . markers [ a ] . clear ( ) ; te ( this , "clear" ) } } , lg . prototype . find = function ( a , b ) { return this . primary . find ( a , b ) } ; var mg = a . LineWidget = function ( a , b , c ) { if ( c ) for ( var d in c ) c . hasOwnProperty ( d ) && ( this [ d ] = c [ d ] ) ; this . doc = a , this . node = b } ; ye ( mg ) , mg . prototype . clear = function ( ) { var a = this . doc . cm , b = this . line . widgets , c = this . line , d = Zd ( c ) ; if ( null != d && b ) { for ( var e = 0 ; e < b . length ; ++ e ) b [ e ] == this && b . splice ( e -- , 1 ) ; b . length || ( c . widgets = null ) ; var f = vd ( this ) ; Yd ( c , Math . max ( 0 , c . height - f ) ) , a && Cb ( a , function ( ) { ud ( a , c , - f ) , Jb ( a , d , "widget" ) } ) } } , mg . prototype . changed = function ( ) { var a = this . height , b = this . doc . cm , c = this . line ; this . height = null ; var d = vd ( this ) - a ; d && ( Yd ( c , c . height + d ) , b && Cb ( b , function ( ) { b . curOp . forceUpdate = ! 0 , ud ( b , c , d ) } ) ) } ; var ng = a . Line = function ( a , b , c ) { this . text = a , gd ( this , b ) , this . height = c ? c ( this ) : 1 } ; ye ( ng ) , ng . prototype . lineNo = function ( ) { return Zd ( this ) } ; var og = { } , pg = { } ; Rd . prototype = { chunkSize : function ( ) { return this . lines . length } , removeInner : function ( a , b ) { for ( var c = a , d = a + b ; c < d ; ++ c ) { var e = this . lines [ c ] ; this . height -= e . height , yd ( e ) , te ( e , "delete" ) } this . lines . splice ( a , b ) } , collapse : function ( a ) { a . push . apply ( a , this . lines ) } , insertInner : function ( a , b , c ) { this . height += c , this . lines = this . lines . slice ( 0 , a ) . concat ( b ) . concat ( this . lines . slice ( a ) ) ; for ( var d = 0 ; d < b . length ; ++ d ) b [ d ] . parent = this } , iterN : function ( a , b , c ) { for ( var d = a + b ; a < d ; ++ a ) if ( c ( this . lines [ a ] ) ) return ! 0 } } , Sd . prototype = { chunkSize : function ( ) { return this . size } , removeInner : function ( a , b ) { this . size -= b ; for ( var c = 0 ; c < this . children . length ; ++ c ) { var d = this . children [ c ] , e = d . chunkSize ( ) ; if ( a < e ) { var f = Math . min ( b , e - a ) , g = d . height ; if ( d . removeInner ( a , f ) , this . height -= g - d . height , e == f && ( this . children . splice ( c -- , 1 ) , d . parent = null ) , 0 == ( b -= f ) ) break ; a = 0 } else a -= e } if ( this . size - b < 25 && ( this . children . length > 1 || ! ( this . children [ 0 ] instanceof Rd ) ) ) { var h = [ ] ; this . collapse ( h ) , this . children = [ new Rd ( h ) ] , this . children [ 0 ] . parent = this } } , collapse : function ( a ) { for ( var b = 0 ; b < this . children . length ; ++ b ) this . children [ b ] . collapse ( a ) } , insertInner : function ( a , b , c ) { this . size += b . length , this . height += c ; for ( var d = 0 ; d < this . children . length ; ++ d ) { var e = this . children [ d ] , f = e . chunkSize ( ) ; if ( a <= f ) { if ( e . insertInner ( a , b , c ) , e . lines && e . lines . length > 50 ) { for ( ; e . lines . length > 50 ; ) { var g = e . lines . splice ( e . lines . length - 25 , 25 ) , h = new Rd ( g ) ; e . height -= h . height , this . children . splice ( d + 1 , 0 , h ) , h . parent = this } this . maybeSpill ( ) } break } a -= f } } , maybeSpill : function ( ) { if ( ! ( this . children . length <= 10 ) ) { var a = this ; do { var b = a . children . splice ( a . children . length - 5 , 5 ) , c = new Sd ( b ) ; if ( a . parent ) { a . size -= c . size , a . height -= c . height ; var d = De ( a . parent . children , a ) ; a . parent . children . splice ( d + 1 , 0 , c ) } else { var e = new Sd ( a . children ) ; e . parent = a , a . children = [ e , c ] , a = e } c . parent = a . parent
this . editor . focus ( ) } , insertField : function ( a ) { var b = this . editor . getCursor ( ) ; this . editor . replaceSelection ( " " + a + " " ) ; var c = this . editor . getCursor ( ) ; this . editor . markText ( b , c , { className : "fieldName" , atomic : ! 0 , startStyle : "start" , endStyle : "end" } ) , this . editor . replaceSelection ( " " ) , this . editor . focus ( ) } , insertFunction : function ( a ) { var b = this . editor . getCursor ( ) ; this . editor . replaceSelection ( a ) ; var c = this . editor . getCursor ( ) ; this . editor . markText ( b , c , { className : "#function" , atomic : ! 0 } ) , this . editor . replaceSelection ( "() " ) , c = this . editor . getCursor ( ) , c . ch = c . ch - 2 , this . editor . setCursor ( c ) , this . editor . focus ( ) } , insertOperator : function ( a ) { var b = this . editor . getCursor ( ) ; this . editor . replaceSelection ( a ) ; var c = this . editor . getCursor ( ) ; this . editor . markText ( b , c , { className : "%operator" , atomic : ! 0 } ) , this . editor . replaceSelection ( " " ) , this . editor . focus ( ) } , setFunction : function ( a ) { var b = this . editor . getCursor ( ) ; this . editor . replaceSelection ( a ) ; var c = this . editor . getCursor ( ) ; this . editor . markText ( b , c , { className : "#function" , atomic : ! 0 } ) } , insertString : function ( a ) { this . editor . replaceSelection ( a ) , this . editor . focus ( ) } , getFormulaString : function ( ) { return this . editor . getValue ( ) } , getUsedFields : function ( ) { var a = this . options . fieldTextValueMap , b = [ ] ; return this . editor . getValue ( ! 0 , function ( c ) { var d = c . text ; _ . forEach ( c . markedSpans , function ( c , e ) { switch ( c . marker . className ) { case "fieldName" : var f = a [ d . substr ( c . from + 1 , c . to - c . from - 2 ) ] ; b . contains ( f ) || b . push ( f ) } } ) } ) , b } , getCheckString : function ( ) { return this . editor . getValue ( ! 0 , function ( a ) { var b = a . text , c = a . text , d = 0 ; return c . text = b , _ . forEach ( a . markedSpans , function ( a , b ) { switch ( a . marker . className ) { case "fieldName" : var e = a . to - a . from ; c = c . substr ( 0 , a . from + d ) + "$a" + c . substr ( a . to + d , c . length ) , d = d + 2 - e } } ) , c } ) } , getValue : function ( ) { var a = this . options . fieldTextValueMap ; return this . editor . getValue ( "\n" , function ( b ) { var c = b . text , d = b . text , e = 0 ; return d . text = c , _ . forEach ( b . markedSpans , function ( b , c ) { switch ( b . marker . className ) { case "fieldName" : var f = b . to - b . from , g = b . from + e + 1 , h = f - 2 , i = a [ d . substr ( g , h ) ] ; d = d . substr ( 0 , b . from + e ) + "${" + i + "}" + d . substr ( b . to + e , d . length ) , e += i . length - f + 3 } } ) , d } ) } , setValue : function ( a ) { this . editor . setValue ( a ) } , setFieldTextValueMap : function ( a ) { this . options . fieldTextValueMap = a } , refresh : function ( ) { var a = this ; BI . nextTick ( function ( ) { a . editor . refresh ( ) } ) } } ) , BI . FormulaEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . FormulaEditor . EVENT _BLUR = "EVENT_BLUR" , BI . FormulaEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . shortcut ( "bi.formula_editor" , BI . FormulaEditor ) , $ . extend ( BI , { Msg : function ( ) { var a , b , c ; return { alert : function ( a , b , c ) { this . _show ( ! 1 , a , b , c ) } , confirm : function ( a , b , c ) { this . _show ( ! 0 , a , b , c ) } , prompt : function ( a , b , c , d , e ) { } , toast : function ( a , b , c ) { b = b || { } , c = c || $ ( "body" ) ; var d = b . level || "normal" , e = ! ! BI . isNull ( b . autoClose ) || b . autoClose , f = BI . createWidget ( { type : "bi.toast" , cls : "bi-message-animate bi-message-leave" , level : d , autoClose : e , text : a } ) ; BI . createWidget ( { type : "bi.absolute" , element : c , items : [ { el : f , left : "50%" , top : 10 } ] } ) , f . element . css ( { "margin-left" : - 1 * f . element . outerWidth ( ) / 2 } ) , f . element . removeClass ( "bi-message-leave" ) . addClass ( "bi-message-enter" ) , e && BI . delay ( function ( ) { f . element . removeClass ( "bi-message-enter" ) . addClass ( "bi-message-leave" ) , BI . delay ( function ( ) { f . destroy ( ) } , 1e3 ) } , 5e3 ) } , _show : function ( d , e , f , g ) { b = $ ( '<div class="bi-z-index-mask">' ) . css ( { position : "absolute" , zIndex : BI . zIndex _tip - 2 , top : 0 , left : 0 , right : 0 , bottom : 0 , opacity : . 5 } ) . appendTo ( "body" ) , c = $ ( '<div class="bi-message-depend">' ) . css ( { position : "absolute" , zIndex : BI . zIndex _tip - 1 , top : 0 , left : 0 , right : 0 , bottom : 0 } ) . appendTo ( "body" ) ; var h = function ( ) { a . destroy ( ) , b . remove ( ) } , i = [ ] ; d === ! 0 && i . push ( { el : { type : "bi.button" , text : BI . i18nText ( "BI-Basic_Cancel" ) , height : 30 , level : "ignore" , handler : function ( ) { h ( ) , BI . isFunction ( g ) && g . apply ( null , [ ! 1 ] ) } } } ) , i . push ( { el : { type : "bi.button" , text : BI . i18nText ( "BI-Basic_OK" ) , height : 30 , handler : function ( ) { h ( ) , BI . isFunction ( g ) && g . apply ( null , [ ! 0 ] ) } } } ) ; var j = { element : c , type : "bi.center_adapt" , items : [ { type : "bi.border" , cls : "bi-message-content bi-card" , items : { north : { el : { type : "bi.border" , cls : "bi-message-title bi-background" , items : { center : { el : { type : "bi.label" , text : e || BI . i18nText ( "BI-Basic_Prompt" ) , textAlign : "left" , hgap : 20 , height : 50 } }
} , getImageWidth : function ( ) { return this . image . element . width ( ) } , getImageHeight : function ( ) { return this . image . element . height ( ) } , setSrc : function ( a ) { this . options . src = a , this . image . setSrc ( a ) } , getSrc : function ( ) { return this . image . getSrc ( ) } , doClick : function ( ) { BI . ImageButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . ImageButton . EVENT _CHANGE , this ) } } ) , BI . ImageButton . EVENT _CHANGE = "ImageButton.EVENT_CHANGE" , BI . shortcut ( "bi.image_button" , BI . ImageButton ) , function ( a ) { BI . Button = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( a ) { var b = BI . Button . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( b , { baseCls : ( b . baseCls || "" ) + " bi-button" , minWidth : a . block === ! 0 || a . clear === ! 0 ? 0 : 80 , shadow : a . clear !== ! 0 , isShadowShowingOnSelected : ! 0 , readonly : ! 0 , iconCls : "" , level : "common" , block : ! 1 , clear : ! 1 , ghost : ! 1 , textAlign : "center" , whiteSpace : "nowrap" , forceCenter : ! 1 , textWidth : null , textHeight : null , hgap : a . clear ? 0 : 10 , vgap : 0 , tgap : 0 , bgap : 0 , lgap : 0 , rgap : 0 } ) } , _init : function ( ) { BI . Button . superclass . _init . apply ( this , arguments ) ; var a = this . options ; ! BI . isNumber ( a . height ) || a . clear || a . block ? this . element . css ( { lineHeight : a . height + "px" } ) : this . element . css ( { height : a . height + "px" , lineHeight : a . height + "px" } ) , BI . isKey ( a . iconCls ) ? ( this . icon = BI . createWidget ( { type : "bi.icon" , width : 18 } ) , this . text = BI . createWidget ( { type : "bi.label" , text : a . text , value : a . value } ) , BI . createWidget ( { type : "bi.horizontal_auto" , cls : a . iconCls , element : this , hgap : a . hgap , vgap : a . vgap , tgap : a . tgap , bgap : a . bgap , lgap : a . lgap , rgap : a . rgap , items : [ { type : "bi.horizontal" , items : [ this . icon , this . text ] } ] } ) ) : this . text = BI . createWidget ( { type : "bi.label" , textAlign : a . textAlign , whiteSpace : a . whiteSpace , forceCenter : a . forceCenter , textWidth : a . textWidth , textHeight : a . textHeight , hgap : a . hgap , vgap : a . vgap , tgap : a . tgap , bgap : a . bgap , lgap : a . lgap , rgap : a . rgap , element : this , text : a . text , value : a . value } ) , a . block === ! 0 && this . element . addClass ( "block" ) , a . clear === ! 0 && this . element . addClass ( "clear" ) , a . ghost === ! 0 && this . element . addClass ( "ghost" ) , a . minWidth > 0 && this . element . css ( { "min-width" : a . minWidth + "px" } ) } , doClick : function ( ) { BI . Button . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . Button . EVENT _CHANGE , this ) } , setText : function ( a ) { BI . Button . superclass . setText . apply ( this , arguments ) , this . text . setText ( a ) } , setValue : function ( a ) { BI . Button . superclass . setValue . apply ( this , arguments ) , this . isReadOnly ( ) || this . text . setValue ( a ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , destroy : function ( ) { BI . Button . superclass . destroy . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.button" , BI . Button ) , BI . Button . EVENT _CHANGE = "EVENT_CHANGE" } ( jQuery ) , BI . TextButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . TextButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-button" , textAlign : "center" , whiteSpace : "nowrap" , forceCenter : ! 1 , textWidth : null , textHeight : null , hgap : 0 , lgap : 0 , rgap : 0 , text : "" , py : "" } ) } , _init : function ( ) { BI . TextButton . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : a . textAlign , whiteSpace : a . whiteSpace , textWidth : a . textWidth , textHeight : a . textHeight , forceCenter : a . forceCenter , width : a . width , height : a . height , hgap : a . hgap , lgap : a . lgap , rgap : a . rgap , text : a . text , value : a . value , py : a . py , keyword : a . keyword } ) } , doClick : function ( ) { BI . TextButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . TextButton . EVENT _CHANGE , this . getValue ( ) , this ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , setText : function ( a ) { BI . TextButton . superclass . setText . apply ( this , arguments ) , a = BI . isArray ( a ) ? a . join ( "," ) : a , this . text . setText ( a ) } , setStyle : function ( a ) { t
this . _checkToolTip ( ) } , _checkWaterMark : function ( ) { var a = this . options ; ! this . disabledWaterMark && "" === this . editor . getValue ( ) && BI . isKey ( a . watermark ) ? this . watermark && this . watermark . visible ( ) : this . watermark && this . watermark . invisible ( ) } , setErrorText : function ( a ) { this . options . errorText = a } , getErrorText : function ( ) { return this . options . errorText } , setErrorVisible : function ( a ) { var b = this . options , c = b . errorText ; if ( BI . isFunction ( c ) && ( c = c ( this . editor . getValue ( ) ) ) , ! this . disabledError && BI . isKey ( c ) ) return BI . Bubbles [ a ? "show" : "hide" ] ( this . getName ( ) , c , this ) , this . _checkToolTip ( ) , BI . Bubbles . get ( this . getName ( ) ) } , disableError : function ( ) { this . disabledError = ! 0 , this . _checkError ( ) } , enableError : function ( ) { this . disabledError = ! 1 , this . _checkError ( ) } , disableWaterMark : function ( ) { this . disabledWaterMark = ! 0 , this . _checkWaterMark ( ) } , enableWaterMark : function ( ) { this . disabledWaterMark = ! 1 , this . _checkWaterMark ( ) } , focus : function ( ) { this . element . addClass ( "text-editor-focus" ) , this . editor . focus ( ) } , blur : function ( ) { this . element . removeClass ( "text-editor-focus" ) , this . editor . blur ( ) } , selectAll : function ( ) { this . editor . selectAll ( ) } , onKeyDown : function ( a ) { this . editor . onKeyDown ( a ) } , setValue : function ( a ) { BI . Editor . superclass . setValue . apply ( this , arguments ) , this . editor . setValue ( a ) , this . _checkError ( ) , this . _checkWaterMark ( ) } , getLastValidValue : function ( ) { return this . editor . getLastValidValue ( ) } , resetLastValidValue : function ( ) { this . editor . resetLastValidValue ( ) } , getValue : function ( ) { return this . isValid ( ) ? BI . trim ( this . editor . getValue ( ) ) : BI . trim ( this . editor . getLastValidValue ( ) ) } , isEditing : function ( ) { return this . editor . isEditing ( ) } , isValid : function ( ) { return this . editor . isValid ( ) } } ) , BI . Editor . EVENT _CHANGE = "EVENT_CHANGE" , BI . Editor . EVENT _FOCUS = "EVENT_FOCUS" , BI . Editor . EVENT _BLUR = "EVENT_BLUR" , BI . Editor . EVENT _CLICK = "EVENT_CLICK" , BI . Editor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . Editor . EVENT _SPACE = "EVENT_SPACE" , BI . Editor . EVENT _BACKSPACE = "EVENT_BACKSPACE" , BI . Editor . EVENT _START = "EVENT_START" , BI . Editor . EVENT _PAUSE = "EVENT_PAUSE" , BI . Editor . EVENT _STOP = "EVENT_STOP" , BI . Editor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . Editor . EVENT _VALID = "EVENT_VALID" , BI . Editor . EVENT _ERROR = "EVENT_ERROR" , BI . Editor . EVENT _ENTER = "EVENT_ENTER" , BI . Editor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . Editor . EVENT _REMOVE = "EVENT_REMOVE" , BI . Editor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.editor" , BI . Editor ) , BI . MultifileEditor = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . MultifileEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-multifile-editor" , multiple : ! 1 , maxSize : - 1 , accept : "" , url : "" } ) } , _init : function ( ) { var a = this , b = this . options ; BI . MultifileEditor . superclass . _init . apply ( this , arguments ) , this . file = BI . createWidget ( { type : "bi.file" , cls : "multifile-editor" , width : "100%" , height : "100%" , name : b . name , url : b . url , multiple : b . multiple , accept : b . accept , maxSize : b . maxSize } ) , this . file . on ( BI . File . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _CHANGE , arguments ) } ) , this . file . on ( BI . File . EVENT _UPLOADSTART , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _UPLOADSTART , arguments ) } ) , this . file . on ( BI . File . EVENT _ERROR , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _ERROR , arguments ) } ) , this . file . on ( BI . File . EVENT _PROGRESS , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _PROGRESS , arguments ) } ) , this . file . on ( BI . File . EVENT _UPLOADED , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _UPLOADED , arguments ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.adaptive" , scrollable : ! 1 , items : [ this . file ] } , top : 0 , right : 0 , left : 0 , bottom : 0 } ] } ) } , select : function ( ) { this . file . select ( ) } , getValue : function ( ) { return this . file . getValue ( ) } , upload : function ( ) { this . file . upload ( ) } , reset : function ( ) { this . file . reset ( ) } } ) , BI . MultifileEditor . EVENT _CHANGE = "MultifileEditor.EVENT_CHANGE" , BI . MultifileEditor . EVENT _UPLOADSTART = "MultifileEditor.EVENT_UPLOADSTART" , BI . MultifileEditor . EVENT _ERROR = "MultifileEditor.EVENT_ERROR" , BI . MultifileEditor . EVENT _PROGRESS = "MultifileEditor.EVENT_PROGRESS" , BI . MultifileEditor . EVENT _UPLOADED = "MultifileEditor.EVENT_UPLOADED" , BI . shortcut ( "bi.multifile_editor" , BI . MultifileEditor ) , BI . TextAreaEditor = BI . inherit ( BI . Single , { _defaultConf
} ) ) , void BI . createWidget ( { type : "bi.layout" , element : this . text , scrollable : "normal" === a . whiteSpace } ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , setText : function ( a ) { this . options . text = a , this . text . setText ( a ) } , getText : function ( ) { return this . options . text } , setStyle : function ( a ) { this . text . setStyle ( a ) } , setValue : function ( a ) { BI . Label . superclass . setValue . apply ( this , arguments ) , this . isReadOnly ( ) || this . text . setValue ( a ) } , populate : function ( ) { BI . Label . superclass . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.label" , BI . Label ) , BI . Link = BI . inherit ( BI . Label , { _defaultConfig : function ( ) { var a = BI . Link . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-link" , href : "" , target : "_blank" } ) } , _createJson : function ( ) { var a = this . options ; return { type : "bi.a" , textAlign : a . textAlign , whiteSpace : a . whiteSpace , lineHeight : a . textHeight , text : a . text , keyword : a . keyword , value : a . value , py : a . py , href : a . href , target : a . target } } , _init : function ( ) { BI . Link . superclass . _init . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.link" , BI . Link ) , BI . Bubble = BI . inherit ( BI . Tip , { _defaultConfig : function ( ) { return BI . extend ( BI . Bubble . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-bubble" , direction : "top" , text : "" , level : "error" , height : 35 } ) } , _init : function ( ) { BI . Bubble . superclass . _init . apply ( this , arguments ) ; var a = function ( a ) { return a . stopPropagation ( ) , a . stopEvent ( ) , ! 1 } ; this . element . bind ( { click : a , mousedown : a , mouseup : a , mouseover : a , mouseenter : a , mouseleave : a , mousemove : a } ) , BI . createWidget ( { type : "bi.left" , element : this , items : [ this [ "_" + this . options . direction ] ( ) ] } ) } , _createBubbleText : function ( ) { var a = this . options ; return this . text = BI . createWidget ( { type : "bi.label" , cls : "bubble-text bubble-" + a . level , text : a . text , hgap : 10 , height : 30 } ) } , _top : function ( ) { return BI . createWidget ( { type : "bi.vertical" , items : [ { el : this . _createBubbleText ( ) , height : 30 } , { el : { type : "bi.layout" } , height : 3 } ] } ) } , _bottom : function ( ) { return BI . createWidget ( { type : "bi.vertical" , items : [ { el : { type : "bi.layout" } , height : 3 } , { el : this . _createBubbleText ( ) , height : 30 } ] } ) } , _left : function ( ) { return BI . createWidget ( { type : "bi.right" , items : [ { el : { type : "bi.layout" , width : 3 , height : 30 } } , { el : this . _createBubbleText ( ) } ] } ) } , _right : function ( ) { return BI . createWidget ( { type : "bi.left" , items : [ { el : { type : "bi.layout" , width : 3 , height : 30 } } , { el : this . _createBubbleText ( ) } ] } ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.bubble" , BI . Bubble ) , BI . Toast = BI . inherit ( BI . Tip , { _const : { minWidth : 200 , hgap : 10 } , _defaultConfig : function ( ) { return BI . extend ( BI . Toast . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-toast" , text : "" , level : "success" } ) } , _init : function ( ) { BI . Toast . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . element . css ( { minWidth : this . _const . minWidth + "px" } ) , this . element . addClass ( "toast-" + b . level ) ; var c = function ( a ) { return a . stopPropagation ( ) , a . stopEvent ( ) , ! 1 } ; this . element . bind ( { click : c , mousedown : c , mouseup : c , mouseover : c , mouseenter : c , mouseleave : c , mousemove : c } ) ; var d = "close-font" ; switch ( b . level ) { case "success" : d = "toast-success-font" ; break ; case "error" : d = "toast-error-font" ; break ; case "warning" : d = "toast-warning-font" ; break ; case "normal" : default : d = "toast-message-font" } var e = [ { type : "bi.center_adapt" , cls : d + " toast-icon" , items : [ { type : "bi.icon" } ] , width : 36 } , { el : { type : "bi.label" , whiteSpace : "normal" , text : b . text , textAlign : "left" } , rgap : b . autoClose ? this . _const . hgap : 0 } ] , f = [ 36 , "" ] ; b . autoClose === ! 1 && ( e . push ( { type : "bi.icon_button" , cls : "close-font toast-icon" , handler : function ( ) { a . destroy ( ) } , width : 36 } ) , f . push ( 36 ) ) , this . text = BI . createWidget ( { type : "bi.horizontal_adapt" , element : this , items : e , vgap : 5 , columnSize : f } ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.toast" , BI . Toast ) , BI . Tooltip = BI . inherit ( BI . Tip , { _const : { hgap : 10 } , _defaultConfig : function ( ) { return BI . extend ( BI . Tooltip . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-tooltip" , text : "" , level : "success" , stopEvent : ! 1 , stopPropag
c . style . color = H ( a ) . replace ( d , F ) ; var b = h . queryCommandValue ( "ForeColor" ) ; return b = ( 255 & b ) << 16 | 65280 & b | ( 16711680 & b ) >>> 16 , "#" + ( "000000" + b . toString ( 16 ) ) . slice ( - 6 ) } catch ( e ) { return "none" } } ) } else { var i = z . doc . createElement ( "i" ) ; i . title = "Raphaël Colour Picker" , i . style . display = "none" , z . doc . body . appendChild ( i ) , sa = e ( function ( a ) { return i . style . color = a , z . doc . defaultView . getComputedStyle ( i , F ) . getPropertyValue ( "color" ) } ) } return sa ( a ) } , ta = function ( ) { return "hsb(" + [ this . h , this . s , this . b ] + ")" } , ua = function ( ) { return "hsl(" + [ this . h , this . s , this . l ] + ")" } , va = function ( ) { return this . hex } , wa = function ( a , c , d ) { if ( null == c && b . is ( a , "object" ) && "r" in a && "g" in a && "b" in a && ( d = a . b , c = a . g , a = a . r ) , null == c && b . is ( a , T ) ) { var e = b . getRGB ( a ) ; a = e . r , c = e . g , d = e . b } return ( a > 1 || c > 1 || d > 1 ) && ( a /= 255 , c /= 255 , d /= 255 ) , [ a , c , d ] } , xa = function ( a , c , d , e ) { a *= 255 , c *= 255 , d *= 255 ; var f = { r : a , g : c , b : d , hex : b . rgb ( a , c , d ) , toString : va } ; return b . is ( e , "finite" ) && ( f . opacity = e ) , f } ; b . color = function ( a ) { var c ; return b . is ( a , "object" ) && "h" in a && "s" in a && "b" in a ? ( c = b . hsb2rgb ( a ) , a . r = c . r , a . g = c . g , a . b = c . b , a . hex = c . hex ) : b . is ( a , "object" ) && "h" in a && "s" in a && "l" in a ? ( c = b . hsl2rgb ( a ) , a . r = c . r , a . g = c . g , a . b = c . b , a . hex = c . hex ) : ( b . is ( a , "string" ) && ( a = b . getRGB ( a ) ) , b . is ( a , "object" ) && "r" in a && "g" in a && "b" in a ? ( c = b . rgb2hsl ( a ) , a . h = c . h , a . s = c . s , a . l = c . l , c = b . rgb2hsb ( a ) , a . v = c . b ) : ( a = { hex : "none" } , a . r = a . g = a . b = a . h = a . s = a . v = a . l = - 1 ) ) , a . toString = va , a } , b . hsb2rgb = function ( a , b , c , d ) { this . is ( a , "object" ) && "h" in a && "s" in a && "b" in a && ( c = a . b , b = a . s , d = a . o , a = a . h ) , a *= 360 ; var e , f , g , h , i ; return a = a % 360 / 60 , i = c * b , h = i * ( 1 - P ( a % 2 - 1 ) ) , e = f = g = c - i , a = ~ ~ a , e += [ i , h , 0 , 0 , h , i ] [ a ] , f += [ h , i , i , h , 0 , 0 ] [ a ] , g += [ 0 , 0 , h , i , i , h ] [ a ] , xa ( e , f , g , d ) } , b . hsl2rgb = function ( a , b , c , d ) { this . is ( a , "object" ) && "h" in a && "s" in a && "l" in a && ( c = a . l , b = a . s , a = a . h ) , ( a > 1 || b > 1 || c > 1 ) && ( a /= 360 , b /= 100 , c /= 100 ) , a *= 360 ; var e , f , g , h , i ; return a = a % 360 / 60 , i = 2 * b * ( c < . 5 ? c : 1 - c ) , h = i * ( 1 - P ( a % 2 - 1 ) ) , e = f = g = c - i / 2 , a = ~ ~ a , e += [ i , h , 0 , 0 , h , i ] [ a ] , f += [ h , i , i , h , 0 , 0 ] [ a ] , g += [ 0 , 0 , h , i , i , h ] [ a ] , xa ( e , f , g , d ) } , b . rgb2hsb = function ( a , b , c ) { c = wa ( a , b , c ) , a = c [ 0 ] , b = c [ 1 ] , c = c [ 2 ] ; var d , e , f , g ; return f = N ( a , b , c ) , g = f - O ( a , b , c ) , d = 0 == g ? null : f == a ? ( b - c ) / g : f == b ? ( c - a ) / g + 2 : ( a - b ) / g + 4 , d = ( d + 360 ) % 6 * 60 / 360 , e = 0 == g ? 0 : g / f , { h : d , s : e , b : f , toString : ta } } , b . rgb2hsl = function ( a , b , c ) { c = wa ( a , b , c ) , a = c [ 0 ] , b = c [ 1 ] , c = c [ 2 ] ; var d , e , f , g , h , i ; return g = N ( a , b , c ) , h = O ( a , b , c ) , i = g - h , d = 0 == i ? null : g == a ? ( b - c ) / i : g == b ? ( c - a ) / i + 2 : ( a - b ) / i + 4 , d = ( d + 360 ) % 6 * 60 / 360 , f = ( g + h ) / 2 , e = 0 == i ? 0 : f < . 5 ? i / ( 2 * f ) : i / ( 2 - 2 * f ) , { h : d , s : e , l : f , toString : ua } } , b . _path2string = function ( ) { return this . join ( "," ) . replace ( fa , "$1" ) } ; b . _preload = function ( a , b ) { var c = z . doc . createElement ( "img" ) ; c . style . cssText = "position:absolute;left:-9999em;top:-9999em" , c . onload = function ( ) { b . call ( this ) , this . onload = null , z . doc . body . removeChild ( this ) } , c . onerror = function ( ) { z . doc . body . removeChild ( this ) } , z . doc . body . appendChild ( c ) , c . src = a } ; b . getRGB = e ( function ( a ) { if ( ! a || ( a = H ( a ) ) . indexOf ( "-" ) + 1 ) return { r : - 1 , g : - 1 , b : - 1 , hex : "none" , error : 1 , toString : f } ; if ( "none" == a ) return { r : - 1 , g : - 1 , b : - 1 , hex : "none" , toString : f } ; ! ( ea [ y ] ( a . toLowerCase ( ) . substring ( 0 , 2 ) ) || "#" == a . charAt ( ) ) && ( a = sa ( a ) ) ; var c , d , e , g , h , i , j = a . match ( W ) ; return j ? ( j [ 2 ] && ( e = _ ( j [ 2 ] . substring ( 5 ) , 16 ) , d = _ ( j [ 2 ] . substring ( 3 , 5 ) , 16 ) , c = _ ( j [ 2 ] . substring ( 1 , 3 ) , 16 ) ) , j [ 3 ] && ( e = _ ( ( h = j [ 3 ] . charAt ( 3 ) ) + h , 16 ) , d = _ ( ( h = j [ 3 ] . charAt ( 2 ) ) + h , 16 ) , c = _ ( ( h = j [ 3 ] . charAt ( 1 ) ) + h , 16 ) ) , j [ 4 ] && ( i = j [ 4 ] [ I ] ( da ) , c = $ ( i [ 0 ] ) , "%" == i [ 0 ] . slice ( - 1 ) && ( c *= 2.55 ) , d = $ ( i [ 1 ] ) , "%" == i [ 1 ] . slice ( - 1 ) && ( d *= 2.55 ) , e = $ ( i [ 2 ] ) , "%" == i [ 2 ] . slice ( - 1 ) && ( e *= 2.55 ) , "rgba" == j [ 1 ] . toLowerCase ( ) . slice ( 0 , 4 ) && ( g = $ ( i [ 3 ] ) ) , i [ 3 ] && "%" == i [ 3 ] . slice ( - 1 ) && ( g /= 100 ) ) , j [ 5 ] ? ( i = j [ 5 ] [ I ] ( da ) , c = $ ( i [ 0 ] ) , "%" == i [ 0 ] . slice ( - 1 ) && ( c *= 2.55 ) , d = $ ( i [ 1 ] ) , "%" == i [ 1 ] . slice ( - 1 ) && ( d *= 2.55 ) , e = $ ( i [ 2 ] ) , "%" == i [ 2 ] . slice ( - 1 ) && ( e *= 2.55 ) , ( "deg" == i [ 0 ] . slice ( - 3 ) || "°" == i [ 0 ] . slice ( - 1 ) ) && ( c /= 360 ) , "hsba" == j [ 1 ] . toLowerCase ( ) . slice ( 0 , 4 ) && ( g = $ ( i [ 3 ] ) ) , i [ 3 ] && "%" == i [ 3 ] . slice ( - 1 ) && ( g /= 100 ) , b . hsb2rgb ( c , d , e , g ) ) : j [ 6 ] ? ( i = j [ 6 ] [ I ] ( da ) , c = $ ( i [ 0 ] ) , "%" == i [ 0 ] . slice ( - 1 ) && ( c *= 2.55 ) , d = $ ( i [ 1 ] ) , "%" == i [ 1 ] . slice ( - 1 ) && ( d *= 2.55 ) , e = $ ( i [ 2 ] ) , "%" == i [ 2 ] . slice ( - 1 ) && ( e *= 2.55 ) , ( "deg" == i [ 0 ] . slice ( - 3 ) || "°" == i [ 0 ] . slice ( - 1 ) ) && ( c /= 360 ) , "hsla" == j [ 1 ] . toLowerCase ( ) . slice ( 0 , 4 ) && ( g = $ ( i [ 3 ] ) ) , i [ 3 ] && "%" == i [ 3 ] . slice ( - 1 ) && ( g /= 100 ) , b . hsl2rgb ( c , d , e , g ) ) : ( j = { r : c , g : d , b : e , toString : f } , j . hex = "#" + ( 16777216 | e | d << 8 | c << 16 ) . toString ( 16 ) . slice ( 1 ) , b . is
return b ? a . on ( "raphael.anim.frame." + this . id , b ) : a . unbind ( "raphael.anim.frame." + this . id ) , this } , q . prototype . delay = function ( a ) { var b = new q ( this . anim , this . ms ) ; return b . times = this . times , b . del = + a || 0 , b } , q . prototype . repeat = function ( a ) { var b = new q ( this . anim , this . ms ) ; return b . del = this . del , b . times = M . floor ( N ( a , 0 ) ) || 1 , b } , b . animation = function ( a , c , d , e ) { if ( a instanceof q ) return a ; ! b . is ( d , "function" ) && d || ( e = e || d || null , d = null ) , a = Object ( a ) , c = + c || 0 ; var f , g , h = { } ; for ( g in a ) a [ y ] ( g ) && $ ( g ) != g && $ ( g ) + "%" != g && ( f = ! 0 , h [ g ] = a [ g ] ) ; if ( f ) return d && ( h . easing = d ) , e && ( h . callback = e ) , new q ( { 100 : h } , c ) ; if ( e ) { var i = 0 ; for ( var j in a ) { var k = _ ( j ) ; a [ y ] ( j ) && k > i && ( i = k ) } i += "%" , ! a [ i ] . callback && ( a [ i ] . callback = e ) } return new q ( a , c ) } , Xa . animate = function ( a , c , d , e ) { var f = this ; if ( f . removed ) return e && e . call ( f ) , f ; var g = a instanceof q ? a : b . animation ( a , c , d , e ) ; return r ( g , f , g . percents [ 0 ] , null , f . attr ( ) ) , f } , Xa . setTime = function ( a , b ) { return a && null != b && this . status ( a , O ( b , a . ms ) / a . ms ) , this } , Xa . status = function ( a , b ) { var c , d , e = [ ] , f = 0 ; if ( null != b ) return r ( a , this , - 1 , O ( b , 1 ) ) , this ; for ( c = fb . length ; f < c ; f ++ ) if ( d = fb [ f ] , d . el . id == this . id && ( ! a || d . anim == a ) ) { if ( a ) return d . status ; e . push ( { anim : d . anim , status : d . status } ) } return a ? 0 : e } , Xa . pause = function ( b ) { for ( var c = 0 ; c < fb . length ; c ++ ) fb [ c ] . el . id != this . id || b && fb [ c ] . anim != b || a ( "raphael.anim.pause." + this . id , this , fb [ c ] . anim ) !== ! 1 && ( fb [ c ] . paused = ! 0 ) ; return this } , Xa . resume = function ( b ) { for ( var c = 0 ; c < fb . length ; c ++ ) if ( fb [ c ] . el . id == this . id && ( ! b || fb [ c ] . anim == b ) ) { var d = fb [ c ] ; a ( "raphael.anim.resume." + this . id , this , d . anim ) !== ! 1 && ( delete d . paused , this . status ( d . anim , d . status ) ) } return this } , Xa . stop = function ( b ) { for ( var c = 0 ; c < fb . length ; c ++ ) fb [ c ] . el . id != this . id || b && fb [ c ] . anim != b || a ( "raphael.anim.stop." + this . id , this , fb [ c ] . anim ) !== ! 1 && fb . splice ( c -- , 1 ) ; return this } , a . on ( "raphael.remove" , s ) , a . on ( "raphael.clear" , s ) , Xa . toString = function ( ) { return "Raphaël’s object" } ; var jb = function ( a ) { if ( this . items = [ ] , this . length = 0 , this . type = "set" , a ) for ( var b = 0 , c = a . length ; b < c ; b ++ ) ! a [ b ] || a [ b ] . constructor != Xa . constructor && a [ b ] . constructor != jb || ( this [ this . items . length ] = this . items [ this . items . length ] = a [ b ] , this . length ++ ) } , kb = jb . prototype ; kb . push = function ( ) { for ( var a , b , c = 0 , d = arguments . length ; c < d ; c ++ ) a = arguments [ c ] , ! a || a . constructor != Xa . constructor && a . constructor != jb || ( b = this . items . length , this [ b ] = this . items [ b ] = a , this . length ++ ) ; return this } , kb . pop = function ( ) { return this . length && delete this [ this . length -- ] , this . items . pop ( ) } , kb . forEach = function ( a , b ) { for ( var c = 0 , d = this . items . length ; c < d ; c ++ ) if ( a . call ( b , this . items [ c ] , c ) === ! 1 ) return this ; return this } ; for ( var lb in Xa ) Xa [ y ] ( lb ) && ( kb [ lb ] = function ( a ) { return function ( ) { var b = arguments ; return this . forEach ( function ( c ) { c [ a ] [ C ] ( c , b ) } ) } } ( lb ) ) ; return kb . attr = function ( a , c ) { if ( a && b . is ( a , U ) && b . is ( a [ 0 ] , "object" ) ) for ( var d = 0 , e = a . length ; d < e ; d ++ ) this . items [ d ] . attr ( a [ d ] ) ; else for ( var f = 0 , g = this . items . length ; f < g ; f ++ ) this . items [ f ] . attr ( a , c ) ; return this } , kb . clear = function ( ) { for ( ; this . length ; ) this . pop ( ) } , kb . splice = function ( a , b , c ) { a = a < 0 ? N ( this . length + a , 0 ) : a , b = N ( 0 , O ( this . length - a , b ) ) ; var d , e = [ ] , f = [ ] , g = [ ] ; for ( d = 2 ; d < arguments . length ; d ++ ) g . push ( arguments [ d ] ) ; for ( d = 0 ; d < b ; d ++ ) f . push ( this [ a + d ] ) ; for ( ; d < this . length - a ; d ++ ) e . push ( this [ a + d ] ) ; var h = g . length ; for ( d = 0 ; d < h + e . length ; d ++ ) this . items [ a + d ] = this [ a + d ] = d < h ? g [ d ] : e [ d - h ] ; for ( d = this . items . length = this . length -= b - h ; this [ d ] ; ) delete this [ d ++ ] ; return new jb ( f ) } , kb . exclude = function ( a ) { for ( var b = 0 , c = this . length ; b < c ; b ++ ) if ( this [ b ] == a ) return this . splice ( b , 1 ) , ! 0 } , kb . animate = function ( a , c , d , e ) { ( b . is ( d , "function" ) || ! d ) && ( e = d || null ) ; var f , g , h = this . items . length , i = h , j = this ; if ( ! h ) return this ; e && ( g = function ( ) { ! -- h && e . call ( j ) } ) , d = b . is ( d , T ) ? d : g ; var k = b . animation ( a , c , d , g ) ; for ( f = this . items [ -- i ] . animate ( k ) ; i -- ; ) this . items [ i ] && ! this . items [ i ] . removed && this . items [ i ] . animateWith ( f , k , k ) , this . items [ i ] && ! this . items [ i ] . removed || h -- ; return this } , kb . insertAfter = function ( a ) { for ( var b = this . items . length ; b -- ; ) this . items [ b ] . insertAfter ( a ) ; return this } , kb . getBBox = function ( ) { for ( var a = [ ] , b = [ ] , c = [ ] , d = [ ] , e = this . items . length ; e -- ; ) if ( ! this . items [ e ] . removed ) { var f = this . items [ e ] . getBBox ( ) ; a . push ( f . x ) , b . push ( f . y ) , c . push ( f . x + f . width ) , d . push ( f . y + f . height ) } return a = O [ C ] ( 0 , a ) , b = O [ C ] ( 0 , b ) , c = N [ C ] ( 0 , c ) , d = N [ C ] ( 0
p = U . style , m . font && ( p . font = m . font ) , m [ "font-family" ] && ( p . fontFamily = m [ "font-family" ] ) , m [ "font-weight" ] && ( p . fontWeight = m [ "font-weight" ] ) , m [ "font-style" ] && ( p . fontStyle = m [ "font-style" ] ) , W = d ( m [ "font-size" ] || W && W [ 0 ] ) || 10 , p . fontSize = W * V + "px" , s . textpath . string && ( U . innerHTML = c ( s . textpath . string ) . replace ( /</g , "<" ) . replace ( /&/g , "&" ) . replace ( /\n/g , "<br>" ) ) ; var X = U . getBoundingClientRect ( ) ; s . W = m . w = ( X . right - X . left ) / V , s . H = m . h = ( X . bottom - X . top ) / V , s . X = m . x , s . Y = m . y + s . H / 2 , ( "x" in i || "y" in i ) && ( s . path . v = a . format ( "m{0},{1}l{2},{1}" , f ( m . x * u ) , f ( m . y * u ) , f ( m . x * u ) + 1 ) ) ; for ( var Y = [ "x" , "y" , "text" , "font" , "font-family" , "font-weight" , "font-style" , "font-size" ] , Z = 0 , $ = Y . length ; Z < $ ; Z ++ ) if ( Y [ Z ] in i ) { s . _ . dirty = 1 ; break } switch ( m [ "text-anchor" ] ) { case "start" : s . textpath . style [ "v-text-align" ] = "left" , s . bbx = s . W / 2 ; break ; case "end" : s . textpath . style [ "v-text-align" ] = "right" , s . bbx = - s . W / 2 ; break ; default : s . textpath . style [ "v-text-align" ] = "center" , s . bbx = 0 } s . textpath . style [ "v-text-kern" ] = ! 0 } } , C = function ( b , f , g ) { b . attrs = b . attrs || { } ; var h = ( b . attrs , Math . pow ) , i = "linear" , j = ".5 .5" ; if ( b . attrs . gradient = f , f = c ( f ) . replace ( a . _radial _gradient , function ( a , b , c ) { return i = "radial" , b && c && ( b = d ( b ) , c = d ( c ) , h ( b - . 5 , 2 ) + h ( c - . 5 , 2 ) > . 25 && ( c = e . sqrt ( . 25 - h ( b - . 5 , 2 ) ) * ( 2 * ( c > . 5 ) - 1 ) + . 5 ) , j = b + n + c ) , o } ) , f = f . split ( /\s*\-\s*/ ) , "linear" == i ) { var k = f . shift ( ) ; if ( k = - d ( k ) , isNaN ( k ) ) return null } var l = a . _parseDots ( f ) ; if ( ! l ) return null ; if ( b = b . shape || b . node , l . length ) { b . removeChild ( g ) , g . on = ! 0 , g . method = "none" , g . color = l [ 0 ] . color , g . color2 = l [ l . length - 1 ] . color ; for ( var m = [ ] , p = 0 , q = l . length ; p < q ; p ++ ) l [ p ] . offset && m . push ( l [ p ] . offset + n + l [ p ] . color ) ; g . colors = m . length ? m . join ( ) : "0% " + g . color , "radial" == i ? ( g . type = "gradientTitle" , g . focus = "100%" , g . focussize = "0 0" , g . focusposition = j , g . angle = 0 ) : ( g . type = "gradient" , g . angle = ( 270 - k ) % 360 ) , b . appendChild ( g ) } return 1 } , D = function ( b , c ) { this [ 0 ] = this . node = b , b . raphael = ! 0 , this . id = a . _oid ++ , b . raphaelid = this . id , this . X = 0 , this . Y = 0 , this . attrs = { } , this . paper = c , this . matrix = a . matrix ( ) , this . _ = { transform : [ ] , sx : 1 , sy : 1 , dx : 0 , dy : 0 , deg : 0 , dirty : 1 , dirtyT : 1 } , ! c . bottom && ( c . bottom = this ) , this . prev = c . top , c . top && ( c . top . next = this ) , c . top = this , this . next = null } , E = a . el ; D . prototype = E , E . constructor = D , E . transform = function ( b ) { if ( null == b ) return this . _ . transform ; var d , e = this . paper . _viewBoxShift , f = e ? "s" + [ e . scale , e . scale ] + "-1-1t" + [ e . dx , e . dy ] : o ; e && ( d = b = c ( b ) . replace ( /\.{3}|\u2026/g , this . _ . transform || o ) ) , a . _extractTransform ( this , f + b ) ; var g , h = this . matrix . clone ( ) , i = this . skew , j = this . node , k = ~ c ( this . attrs . fill ) . indexOf ( "-" ) , l = ! c ( this . attrs . fill ) . indexOf ( "url(" ) ; if ( h . translate ( 1 , 1 ) , l || k || "image" == this . type ) if ( i . matrix = "1 0 0 1" , i . offset = "0 0" , g = h . split ( ) , k && g . noRotation || ! g . isSimple ) { j . style . filter = h . toFilter ( ) ; var m = this . getBBox ( ) , p = this . getBBox ( 1 ) , q = m . x - p . x , r = m . y - p . y ; j . coordorigin = q * - u + n + r * - u , z ( this , 1 , 1 , q , r , 0 ) } else j . style . filter = o , z ( this , g . scalex , g . scaley , g . dx , g . dy , g . rotate ) ; else j . style . filter = o , i . matrix = c ( h ) , i . offset = h . offset ( ) ; return null !== d && ( this . _ . transform = d , a . _extractTransform ( this , d ) ) , this } , E . rotate = function ( a , b , e ) { if ( this . removed ) return this ; if ( null != a ) { if ( a = c ( a ) . split ( k ) , a . length - 1 && ( b = d ( a [ 1 ] ) , e = d ( a [ 2 ] ) ) , a = d ( a [ 0 ] ) , null == e && ( b = e ) , null == b || null == e ) { var f = this . getBBox ( 1 ) ; b = f . x + f . width / 2 , e = f . y + f . height / 2 } return this . _ . dirtyT = 1 , this . transform ( this . _ . transform . concat ( [ [ "r" , a , b , e ] ] ) ) , this } } , E . translate = function ( a , b ) { return this . removed ? this : ( a = c ( a ) . split ( k ) , a . length - 1 && ( b = d ( a [ 1 ] ) ) , a = d ( a [ 0 ] ) || 0 , b = + b || 0 , this . _ . bbox && ( this . _ . bbox . x += a , this . _ . bbox . y += b ) , this . transform ( this . _ . transform . concat ( [ [ "t" , a , b ] ] ) ) , this ) } , E . scale = function ( a , b , e , f ) { if ( this . removed ) return this ; if ( a = c ( a ) . split ( k ) , a . length - 1 && ( b = d ( a [ 1 ] ) , e = d ( a [ 2 ] ) , f = d ( a [ 3 ] ) , isNaN ( e ) && ( e = null ) , isNaN ( f ) && ( f = null ) ) , a = d ( a [ 0 ] ) , null == b && ( b = a ) , null == f && ( e = f ) , null == e || null == f ) var g = this . getBBox ( 1 ) ; return e = null == e ? g . x + g . width / 2 : e , f = null == f ? g . y + g . height / 2 : f , this . transform ( this . _ . transform . concat ( [ [ "s" , a , b , e , f ] ] ) ) , this . _ . dirtyT = 1 , this } , E . hide = function ( ) { return ! this . removed && ( this . node . style . display = "none" ) , this } , E . show = function ( ) { return ! this . removed && ( this . node . style . display = o ) , this } , E . auxGetBBox = a . el . getBBox , E . getBBox = function ( ) { var a = this . auxGetBBox ( ) ; if ( this . paper && this . paper . _viewBoxShift ) { var b = { } , c = 1 / this . paper
this . bottomLeft . setHeight ( l ) , this . bottomRight . setWidth ( m ) , this . bottomRight . setHeight ( n ) , this . topLeftCollection . setWidth ( g ) , this . topLeftCollection . setHeight ( h ) , this . topRightCollection . setWidth ( i ) , this . topRightCollection . setHeight ( j ) , this . bottomLeftCollection . setWidth ( k ) , this . bottomLeftCollection . setHeight ( l ) , this . bottomRightCollection . setWidth ( m ) , this . bottomRightCollection . setHeight ( n ) ; var o = this . contextLayout . attr ( "items" ) ; o [ 1 ] . left = b , o [ 2 ] . top = this . _getFreezeHeaderHeight ( ) , o [ 3 ] . left = b , o [ 3 ] . top = this . _getFreezeHeaderHeight ( ) , this . contextLayout . attr ( "items" , o ) , this . contextLayout . resize ( ) ; var p = [ ] , q = [ ] , r = [ ] , s = [ ] , t = function ( a , b , c ) { BI . each ( a , function ( a , d ) { var e = { type : "bi.collection_table_cell" , cell : b [ d . row ] [ d . col ] } ; c . push ( e ) } ) } ; t ( this . topLeftItems , a . header , p ) , t ( this . topRightItems , a . header , q ) , t ( this . bottomLeftItems , this . _getActualItems ( ) , r ) , t ( this . bottomRightItems , this . _getActualItems ( ) , s ) , this . topLeftCollection . populate ( p ) , this . topRightCollection . populate ( q ) , this . bottomLeftCollection . populate ( r ) , this . bottomRightCollection . populate ( s ) } } ) , BI . shortcut ( "bi.quick_collection_table" , BI . QuickCollectionTable ) , BI . GridTableCell = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . GridTableCell . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-grid-table-cell bi-border-right bi-border-bottom" , width : 0 , height : 0 , _rowIndex : 0 , _columnIndex : 0 , _left : 0 , _top : 0 , cell : { } } ) } , _init : function ( ) { BI . GridTableCell . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . cell = BI . createWidget ( BI . extend ( { type : "bi.label" } , a . cell , { cls : ( a . cell . cls || "" ) + "grid-table-cell-wrapper" , width : a . width - ( 0 === a . _columnIndex ? 1 : 0 ) - 1 , height : a . height - ( 0 === a . _rowIndex ? 1 : 0 ) - 1 } ) ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . cell , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) } , setWidth : function ( a ) { BI . GridTableCell . superclass . setWidth . apply ( this , arguments ) ; var b = this . options ; this . cell . setWidth ( b . width - ( 0 === b . _columnIndex ? 1 : 0 ) - 1 ) } , setHeight : function ( a ) { BI . GridTableCell . superclass . setHeight . apply ( this , arguments ) ; var b = this . options ; this . cell . setHeight ( b . height - ( 0 === b . _rowIndex ? 1 : 0 ) - 1 ) } } ) , BI . shortcut ( "bi.grid_table_cell" , BI . GridTableCell ) , BI . GridTable = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . GridTable . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-grid-table" , headerRowSize : 25 , rowSize : 25 , columnSize : [ ] , isNeedFreeze : ! 1 , freezeCols : [ ] , header : [ ] , items : [ ] , regionColumnSize : [ ] } ) } , render : function ( ) { var a = this , b = this . options ; this . _width = 0 , this . _height = 0 , this . _scrollBarSize = BI . DOM . getScrollWidth ( ) ; var c = function ( ) { return b . rowSize } , d = function ( a ) { return b . columnSize [ a ] } , e = function ( c ) { return b . columnSize [ c + a . _getFreezeColLength ( ) ] } ; this . topLeftGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : d } ) , this . topLeftGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomLeftGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . topRightGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : e } ) , this . topRightGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomRightGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . bottomLeftGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : d } ) , this . bottomLeftGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomRightGrid . setScrollTop ( b . scrollTop ) , a . topLeftGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . bottomRightGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : e } ) , this . bottomRightGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomLeftGrid . setScrollTop ( b . scrollTop ) , a . topRightGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . topLeft = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . topLeftGrid ] } ) , this . topRight = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . topRightGrid ] } ) , this . bottomLeft = BI . createWi
} , _initFreezeScroll : function ( ) { function a ( a , c , d ) { a . scroll ( function ( e ) { d . scrollTop ( a . scrollTop ( ) ) , c . scrollLeft ( a . scrollLeft ( ) ) , b . fireEvent ( BI . Table . EVENT _TABLE _SCROLL ) } ) } var b = this ; this . options ; a ( this . scrollBottomRight . element , this . scrollTopRight . element , this . scrollBottomLeft . element ) } , resize : function ( ) { this . _resize && this . _resize ( ) } , _createCells : function ( a , b , c , d , e , f , g ) { var h = this , i = this . options , j = { } , k = { } , l = { } , m = { } , n = { } ; b = b || i . columnSize , c = c || i . mergeCols , d = d || { } , e = e || { } , f = f || 0 , g || ( g = i . rowSize ) ; var o = document . createDocumentFragment ( ) ; return BI . each ( a , function ( a , p ) { function q ( a , b ) { var c = ( 0 | j [ b ] . attr ( "height" ) ) + g + 1 ; j [ b ] . attr ( "height" , c ) . css ( "height" , c ) ; var f = ( 0 | ( j [ b ] . attr ( "rowspan" ) || 1 ) ) + 1 ; j [ b ] . attr ( "rowspan" , f ) , j [ b ] . _ _mergeRows . pushDistinct ( a ) , d [ a ] [ b ] = j [ b ] , e [ a ] [ b ] = m [ b ] } function r ( a , c ) { if ( b [ c ] ) { var f = 0 | k [ a ] . attr ( "width" ) ; f > 1.05 && b [ c ] ? ( f = f + b [ c ] + 1 , c === b . length - 1 && f -- ) : f += b [ c ] , f = h . _calculateWidth ( f ) , k [ a ] . attr ( "width" , f ) . css ( "width" , f ) , l [ a ] . element . width ( f ) } var g = ( 0 | ( k [ a ] . attr ( "colspan" ) || 1 ) ) + 1 ; k [ a ] . attr ( "colspan" , g ) , k [ a ] . _ _mergeCols . pushDistinct ( c ) , d [ a ] [ c ] = k [ a ] , e [ a ] [ c ] = l [ a ] } function s ( a , c ) { var i = h . _calculateWidth ( b [ c ] ) ; i > 1.05 && c === b . length - 1 && i -- ; var o = h . _calculateHeight ( g ) , q = $ ( "<td>" ) . attr ( "height" , o ) . attr ( "width" , i ) . css ( { width : i , height : o , position : "relative" } ) . addClass ( 0 === ( 1 & c ) ? "odd-col" : "even-col" ) . addClass ( 0 === a ? "first-row" : "" ) . addClass ( 0 === c ? "first-col" : "" ) . addClass ( c === p . length - 1 ? "last-col" : "" ) , r = BI . createWidget ( n [ a ] [ c ] , { type : "bi.table_cell" , textAlign : "left" , width : BI . isNumeric ( i ) ? i : "" , height : BI . isNumeric ( o ) ? o : "" , _row : a , _col : c + f } ) ; h . addWidget ( r . getName ( ) , r ) , r . _mount ( ) , r . element . css ( "position" , "relative" ) , q . append ( r . element ) , t . append ( q ) , j [ c ] = q , j [ c ] . _ _mergeRows = [ a ] , m [ c ] = r , k [ a ] = q , k [ a ] . _ _mergeCols = [ c ] , l [ a ] = r , d [ a ] [ c ] = q , e [ a ] [ c ] = r } var t = $ ( "<tr>" ) . addClass ( 0 === ( 1 & a ) ? "odd" : "even" ) ; BI . each ( p , function ( b , f ) { if ( n [ a ] || ( n [ a ] = { } ) , d [ a ] || ( d [ a ] = { } ) , e [ a ] || ( e [ a ] = { } ) , n [ a ] [ b ] = f , i . isNeedMerge && c . contains ( b ) ) if ( 0 === a && 0 === b ) s ( 0 , 0 ) ; else if ( 0 === b && a > 0 ) { var g = i . mergeRule ( n [ a ] [ b ] , n [ a - 1 ] [ b ] ) ; g === ! 0 ? ( q ( a , b ) , k [ a ] = j [ b ] , l [ a ] = m [ b ] ) : s ( a , b ) } else if ( 0 === a && b > 0 ) { var h = i . mergeRule ( n [ a ] [ b ] , n [ a ] [ b - 1 ] ) ; h === ! 0 ? ( r ( a , b ) , j [ b ] = k [ a ] , m [ b ] = l [ a ] ) : s ( a , b ) } else { var g = i . mergeRule ( n [ a ] [ b ] , n [ a - 1 ] [ b ] ) , h = i . mergeRule ( n [ a ] [ b ] , n [ a ] [ b - 1 ] ) ; if ( h && g ) return ; h && r ( a , b ) , g && q ( a , b ) , h || g || s ( a , b ) } else s ( a , b ) } ) , o . appendChild ( t [ 0 ] ) } ) , o } , _createColGroupCells : function ( a , b ) { var c = this , d = this . options ; a = a || d . columnSize , b = b || { } ; var e = document . createDocumentFragment ( ) ; return BI . each ( a , function ( a , d ) { var f = c . _calculateWidth ( d ) , g = $ ( "<col>" ) . attr ( "width" , f ) . css ( "width" , f ) ; b [ a ] = g , e . appendChild ( g [ 0 ] ) } ) , e } , _createHeaderCells : function ( a , b , c , d , e , f ) { var g = this . options ; f || ( f = 0 ) ; var h = this . _createCells ( a , b , BI . range ( g . columnSize . length ) , d , e , f , g . headerRowSize || g . rowSize ) ; return h } , _createFooterCells : function ( a , b , c , d ) { var e = ( this . options , this . _createCells ( a , b , [ ] , c , d , 0 ) ) ; return e } , _createColGroup : function ( a , b , c ) { this . options ; return this . colgroup = this . _colgroup ( ) , this . colgroup . element . append ( this . _createColGroupCells ( a , b , c ) ) , this . colgroup } , _createHeader : function ( ) { var a = this . options ; if ( a . header !== ! 1 ) return this . header = this . _header ( ) , this . header . element . append ( this . _createHeaderCells ( a . header , null , null , this . headerTds , this . headerItems ) ) , this . header } , _createFooter : function ( a , b , c ) { var d = this . options ; if ( d . footer !== ! 1 ) return this . footer = this . _footer ( ) , this . footer . element . append ( this . _createFooterCells ( d . footer , null , this . footerTds , this . footerItems ) ) , this . footer } , _createBody : function ( ) { var a = this . options ; return this . body = this . _body ( ) , this . body . element . append ( this . _createCells ( a . items , null , null , this . bodyTds , this . bodyItems ) ) , this . body } , _createNormalTable : function ( ) { var a = this , b = this . options , c = this . _table ( ) ; this . colgroupTds = { } , this . headerTds = { } , this . footerTds = { } , this . bodyTds = { } , this . headerItems = { } , this . footerItems = { } , this . bodyItems = { } ; var d = this . _createColGroup ( null , this . colgroupTds ) , e = this . _createHeader ( ) , f = this . _createFooter ( ) , g = this . _createBody ( ) ; BI . createWidget ( { type : "bi.adaptive" , element : c , items : [ d , e , f , g ] } ) ; var h = BI . sum ( this . options . columnSize ) || void 0 ; h = this . _calculateWidth ( h ) , BI . isNumeric ( h ) && h > 1 && ( h += b . columnSize . length ) , thi
} , empty : function ( ) { this . tree . empty ( ) } } ) , BI . CustomTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.custom_tree" , BI . CustomTree ) , function ( $ ) { var settings = { } , roots = { } , caches = { } , _consts = { className : { BUTTON : "button" , LEVEL : "level" , ICO _LOADING : "ico_loading" , SWITCH : "switch" } , event : { NODECREATED : "ztree_nodeCreated" , CLICK : "ztree_click" , EXPAND : "ztree_expand" , COLLAPSE : "ztree_collapse" , ASYNC _SUCCESS : "ztree_async_success" , ASYNC _ERROR : "ztree_async_error" , REMOVE : "ztree_remove" , SELECTED : "ztree_selected" , UNSELECTED : "ztree_unselected" } , id : { A : "_a" , ICON : "_ico" , SPAN : "_span" , SWITCH : "_switch" , UL : "_ul" } , line : { ROOT : "root" , ROOTS : "roots" , CENTER : "center" , BOTTOM : "bottom" , NOLINE : "noline" , LINE : "line" } , folder : { OPEN : "open" , CLOSE : "close" , DOCU : "docu" } , node : { CURSELECTED : "curSelectedNode" } } , _setting = { treeId : "" , treeObj : null , view : { addDiyDom : null , autoCancelSelected : ! 0 , dblClickExpand : ! 0 , expandSpeed : "fast" , fontCss : { } , nameIsHTML : ! 1 , selectedMulti : ! 0 , showIcon : ! 0 , showLine : ! 0 , showTitle : ! 0 , txtSelectedEnable : ! 1 } , data : { key : { children : "children" , name : "name" , title : "" , url : "url" } , simpleData : { enable : ! 1 , idKey : "id" , pIdKey : "pId" , rootPId : null } , keep : { parent : ! 1 , leaf : ! 1 } } , async : { enable : ! 1 , contentType : "application/x-www-form-urlencoded" , type : "post" , dataType : "text" , url : "" , autoParam : [ ] , otherParam : [ ] , dataFilter : null } , callback : { beforeAsync : null , beforeClick : null , beforeDblClick : null , beforeRightClick : null , beforeMouseDown : null , beforeMouseUp : null , beforeExpand : null , beforeCollapse : null , beforeRemove : null , onAsyncError : null , onAsyncSuccess : null , onNodeCreated : null , onClick : null , onDblClick : null , onRightClick : null , onMouseDown : null , onMouseUp : null , onExpand : null , onCollapse : null , onRemove : null } } , _initRoot = function ( a ) { var b = data . getRoot ( a ) ; b || ( b = { } , data . setRoot ( a , b ) ) , b [ a . data . key . children ] = [ ] , b . expandTriggerFlag = ! 1 , b . curSelectedList = [ ] , b . noSelection = ! 0 , b . createdNodes = [ ] , b . zId = 0 , b . _ver = ( new Date ) . getTime ( ) } , _initCache = function ( a ) { var b = data . getCache ( a ) ; b || ( b = { } , data . setCache ( a , b ) ) , b . nodes = [ ] , b . doms = [ ] } , _bindEvent = function ( a ) { var b = a . treeObj , c = consts . event ; b . bind ( c . NODECREATED , function ( b , c , d ) { tools . apply ( a . callback . onNodeCreated , [ b , c , d ] ) } ) , b . bind ( c . CLICK , function ( b , c , d , e , f ) { tools . apply ( a . callback . onClick , [ c , d , e , f ] ) } ) , b . bind ( c . EXPAND , function ( b , c , d ) { tools . apply ( a . callback . onExpand , [ b , c , d ] ) } ) , b . bind ( c . COLLAPSE , function ( b , c , d ) { tools . apply ( a . callback . onCollapse , [ b , c , d ] ) } ) , b . bind ( c . ASYNC _SUCCESS , function ( b , c , d , e ) { tools . apply ( a . callback . onAsyncSuccess , [ b , c , d , e ] ) } ) , b . bind ( c . ASYNC _ERROR , function ( b , c , d , e , f , g ) { tools . apply ( a . callback . onAsyncError , [ b , c , d , e , f , g ] ) } ) , b . bind ( c . REMOVE , function ( b , c , d ) { tools . apply ( a . callback . onRemove , [ b , c , d ] ) } ) , b . bind ( c . SELECTED , function ( b , c , d , e ) { tools . apply ( a . callback . onSelected , [ c , d , e ] ) } ) , b . bind ( c . UNSELECTED , function ( b , c , d , e ) { tools . apply ( a . callback . onUnSelected , [ c , d , e ] ) } ) } , _unbindEvent = function ( a ) { var b = a . treeObj , c = consts . event ; b . unbind ( c . NODECREATED ) . unbind ( c . CLICK ) . unbind ( c . EXPAND ) . unbind ( c . COLLAPSE ) . unbind ( c . ASYNC _SUCCESS ) . unbind ( c . ASYNC _ERROR ) . unbind ( c . REMOVE ) . unbind ( c . SELECTED ) . unbind ( c . UNSELECTED ) } , _eventProxy = function ( a ) { var b = a . target , c = data . getSetting ( a . data . treeId ) , d = "" , e = null , f = "" , g = "" , h = null , i = null , j = null ; if ( tools . eqs ( a . type , "mousedown" ) ? g = "mousedown" : tools . eqs ( a . type , "mouseup" ) ? g = "mouseup" : tools . eqs ( a . type , "contextmenu" ) ? g = "contextmenu" : tools . eqs ( a . type , "click" ) ? tools . eqs ( b . tagName , "span" ) && null !== b . getAttribute ( "treeNode" + consts . id . SWITCH ) ? ( d = tools . getNodeMainDom ( b ) . id , f = "switchNode" ) : ( j = tools . getMDom ( c , b , [ { tagName : "a" , attrName : "treeNode" + consts . id . A } ] ) , j && ( d = tools . getNodeMainDom ( j ) . id , f = "clickNode" ) ) : tools . eqs ( a . type , "dblclick" ) && ( g = "dblclick" , j = tools . getMDom ( c , b , [ { tagName : "a" , attrName : "treeNode" + consts . id . A } ] ) , j && ( d = tools . getNodeMainDom ( j ) . id , f = "switchNode" ) ) , g . length > 0 && 0 == d . length && ( j = tools . getMDom ( c , b , [ { tagName : "a" , attrName : "treeNode" + consts . id . A } ] ) , j && ( d = tools . getNodeMainDom ( j ) . id ) ) , d . length > 0 ) switch ( e = data . getNodeCache ( c , d ) , f ) { case "switchNode" : e . isParent && ( tools . eqs ( a . type , "click" ) || tools . eqs ( a . type , "dblclick" ) && tools . apply ( c . view . dblClickExpand , [ c . treeId , e ] , c . view . dblClickExpand ) ) ? h = handler . onSwitchNode : f = "" ; break ; case "clickNode" : h = handler . onClickNode } switch ( g ) { case " mousedown
try { $$ ( a , d ) . focus ( ) . blur ( ) } catch ( b ) { } } ) ; else try { $$ ( a , d ) . focus ( ) . blur ( ) } catch ( c ) { } view . selectNode ( d , a , b ) } } , transformTozTreeNodes : function ( a ) { return data . transformTozTreeFormat ( d , a ) } , transformToArray : function ( a ) { return data . transformToArrayFormat ( d , a ) } , updateNode : function ( a , b ) { if ( a ) { var c = $$ ( a , d ) ; c . get ( 0 ) && tools . uCanDo ( d ) && ( view . setNodeName ( d , a ) , view . setNodeTarget ( d , a ) , view . setNodeUrl ( d , a ) , view . setNodeLineIcos ( d , a ) , view . setNodeFontCss ( d , a ) ) } } } ; return e . treeTools = g , data . setZTreeTools ( d , g ) , e [ f ] && e [ f ] . length > 0 ? view . createNodes ( d , 0 , e [ f ] ) : d . async . enable && d . async . url && "" !== d . async . url && view . asyncNode ( d ) , g } } ; var zt = $ . fn . zTree , $$ = tools . $ , consts = zt . consts } ( jQuery ) , function ( a ) { var b = { event : { CHECK : "ztree_check" } , id : { CHECK : "_check" } , checkbox : { STYLE : "checkbox" , DEFAULT : "chk" , DISABLED : "disable" , FALSE : "false" , TRUE : "true" , FULL : "full" , PART : "part" , FOCUS : "focus" } , radio : { STYLE : "radio" , TYPE _ALL : "all" , TYPE _LEVEL : "level" } } , c = { check : { enable : ! 1 , autoCheckTrigger : ! 1 , chkStyle : b . checkbox . STYLE , nocheckInherit : ! 1 , chkDisabledInherit : ! 1 , radioType : b . radio . TYPE _LEVEL , chkboxType : { Y : "ps" , N : "ps" } } , data : { key : { checked : "checked" } } , callback : { beforeCheck : null , onCheck : null } } , d = function ( a ) { var b = v . getRoot ( a ) ; b . radioCheckedList = [ ] } , e = function ( a ) { } , f = function ( a ) { var b = a . treeObj , c = t . event ; b . bind ( c . CHECK , function ( b , c , d , e ) { b . srcEvent = c , s . apply ( a . callback . onCheck , [ b , d , e ] ) } ) } , g = function ( a ) { var b = a . treeObj , c = t . event ; b . unbind ( c . CHECK ) } , h = function ( a ) { var b = a . target , c = v . getSetting ( a . data . treeId ) , d = "" , e = null , f = "" , g = "" , h = null , i = null ; if ( s . eqs ( a . type , "mouseover" ) ? c . check . enable && s . eqs ( b . tagName , "span" ) && null !== b . getAttribute ( "treeNode" + t . id . CHECK ) && ( d = s . getNodeMainDom ( b ) . id , f = "mouseoverCheck" ) : s . eqs ( a . type , "mouseout" ) ? c . check . enable && s . eqs ( b . tagName , "span" ) && null !== b . getAttribute ( "treeNode" + t . id . CHECK ) && ( d = s . getNodeMainDom ( b ) . id , f = "mouseoutCheck" ) : s . eqs ( a . type , "click" ) && c . check . enable && s . eqs ( b . tagName , "span" ) && null !== b . getAttribute ( "treeNode" + t . id . CHECK ) && ( d = s . getNodeMainDom ( b ) . id , f = "checkNode" ) , d . length > 0 ) switch ( e = v . getNodeCache ( c , d ) , f ) { case "checkNode" : h = n . onCheckNode ; break ; case "mouseoverCheck" : h = n . onMouseoverCheck ; break ; case "mouseoutCheck" : h = n . onMouseoutCheck } var j = { stop : "checkNode" === f , node : e , nodeEventType : f , nodeEventCallback : h , treeEventType : g , treeEventCallback : i } ; return j } , i = function ( a , b , c , d , e , f , g ) { if ( c ) { var h = a . data . key . checked ; if ( "string" == typeof c [ h ] && ( c [ h ] = s . eqs ( c [ h ] , "true" ) ) , c [ h ] = ! ! c [ h ] , c . checkedOld = c [ h ] , "string" == typeof c . nocheck && ( c . nocheck = s . eqs ( c . nocheck , "true" ) ) , c . nocheck = ! ! c . nocheck || a . check . nocheckInherit && d && ! ! d . nocheck , "string" == typeof c . chkDisabled && ( c . chkDisabled = s . eqs ( c . chkDisabled , "true" ) ) , c . chkDisabled = ! ! c . chkDisabled || a . check . chkDisabledInherit && d && ! ! d . chkDisabled , "string" == typeof c . halfCheck && ( c . halfCheck = s . eqs ( c . halfCheck , "true" ) ) , c . halfCheck = ! ! c . halfCheck , c . check _Child _State = - 1 , c . check _Focus = ! 1 , c . getCheckStatus = function ( ) { return v . getCheckStatus ( a , c ) } , a . check . chkStyle == t . radio . STYLE && a . check . radioType == t . radio . TYPE _ALL && c [ h ] ) { var i = v . getRoot ( a ) ; i . radioCheckedList . push ( c ) } } } , j = function ( a , b , c ) { a . data . key . checked ; a . check . enable && ( v . makeChkFlag ( a , b ) , c . push ( "<span ID='" , b . tId , t . id . CHECK , "' class='" , u . makeChkClass ( a , b ) , "' treeNode" , t . id . CHECK , b . nocheck === ! 0 ? " style='display:none;'" : "" , "></span>" ) ) } , k = function ( a , b ) { b . checkNode = function ( a , b , c , d ) { var e = this . setting . data . key . checked ; if ( a . chkDisabled !== ! 0 && ( b !== ! 0 && b !== ! 1 && ( b = ! a [ e ] ) , d = ! ! d , ( a [ e ] !== b || c ) && ( ! d || 0 != s . apply ( this . setting . callback . beforeCheck , [ this . setting . treeId , a ] , ! 0 ) ) && s . uCanDo ( this . setting ) && this . setting . check . enable && a . nocheck !== ! 0 ) ) { a [ e ] = b ; var f = w ( a , t . id . CHECK , this . setting ) ; ( c || this . setting . check . chkStyle === t . radio . STYLE ) && u . checkNodeRelation ( this . setting , a ) , u . setChkClass ( this . setting , f , a ) , u . repairParentChkClassWithSelf ( this . setting , a ) , d && this . setting . treeObj . trigger ( t . event . CHECK , [ null , this . setting . treeId , a ] ) } } , b . checkAllNodes = function ( a ) { u . repairAllChk ( this . setting , ! ! a ) } , b . getCheckedNodes = function ( a ) { var b = this . setting . data . key . children ; return a = a !== ! 1 , v . getTreeCheckedNodes ( this . setting , v . getRoot ( this . setting ) [ b ] , a ) } , b . getChangeCheckedNodes = function ( ) { var a = this . setting . data . key . children ; return v .
items : d } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . FirstTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . checkbox . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . FirstTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . checkbox . setSelected ( a ) } } ) , BI . shortcut ( "bi.first_tree_leaf_item" , BI . FirstTreeLeafItem ) , BI . IconTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . IconTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-icon-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , height : 25 , iconWidth : 16 , iconHeight : 16 , iconCls : "" } ) } , _init : function ( ) { BI . IconTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = BI . createWidget ( { type : "bi.center_adapt" , width : 23 , cls : a . iconCls , items : [ { type : "bi.icon" , width : a . iconWidth , height : a . iconHeight } ] } ) ; this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : a . height , height : a . height , hgap : a . hgap , text : a . text , value : a . value , py : a . py } ) ; var c = BI . LogicFactory . createLogicTypeByDirection ( BI . Direction . Left ) , d = BI . LogicFactory . createLogicItemsByDirection ( BI . Direction . Left , { width : 23 , el : b } , { el : this . text } ) ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( c , BI . extend ( a . logic , { items : d } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . IconTreeLeafItem . superclass . doClick . apply ( this , arguments ) } , setSelected : function ( a ) { BI . IconTreeLeafItem . superclass . setSelected . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.icon_tree_leaf_item" , BI . IconTreeLeafItem ) , BI . LastTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . LastTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-last-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , id : "" , pId : "" , layer : 0 , height : 25 } ) } , _init : function ( ) { BI . LastTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . checkbox = BI . createWidget ( { type : "bi.checkbox" } ) , this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . setSelected ( a . isSelected ( ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = BI . LogicFactory . createLogicTypeByDirection ( BI . Direction . Left ) , d = BI . LogicFactory . createLogicItemsByDirection ( BI . Direction . Left , 0 === b . layer ? "" : { width : 13 , el : { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } } , { width : 25 , el : { type : "bi.layout" , cls : "mid-line-conn-background" , width : 25 , height : b . height } } , { el : this . text } ) ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( c , BI . extend ( b . logic , { items : d } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . LastTreeLeafItem . superclass . doClick . apply ( this , arguments ) } , setSelected : function ( a ) { BI . LastTreeLeafItem . superclass . setSelected . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.last_tree_leaf_item" , BI . LastTreeLeafItem ) , BI . MidTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { retur
return ! ! this . className . match ( new RegExp ( "\\s*" + a + "\\s*" ) ) } ) , a } , setMoviePath : function ( a ) { this . moviePath = a } , dispatch : function ( a , b , c ) { var d = this . clients [ a ] ; d && d . receiveEvent ( b , c ) } , register : function ( a , b ) { this . clients [ a ] = b } , getDOMObjectPosition : function ( a , b ) { var c = { left : 0 , top : 0 , width : a . width ? a . width : a . offsetWidth , height : a . height ? a . height : a . offsetHeight } ; return a && a != b && ( c . left += a . offsetLeft , c . top += a . offsetTop ) , c } , Client : function ( a ) { this . handlers = { } , this . id = ZeroClipboard . nextId ++ , this . movieId = "ZeroClipboardMovie_" + this . id , ZeroClipboard . register ( this . id , this ) , a && this . glue ( a ) } } ; ZeroClipboard . Client . prototype = { id : 0 , ready : ! 1 , movie : null , clipText : "" , handCursorEnabled : ! 0 , cssEffects : ! 0 , handlers : null , glue : function ( a , b , c ) { this . domElement = ZeroClipboard . $ ( a ) ; var d = 99 ; this . domElement . style . zIndex && ( d = parseInt ( this . domElement . style . zIndex , 10 ) + 1 ) , "string" == typeof b ? b = ZeroClipboard . $ ( b ) : "undefined" == typeof b && ( b = document . getElementsByTagName ( "body" ) [ 0 ] ) ; var e = ZeroClipboard . getDOMObjectPosition ( this . domElement , b ) ; this . div = document . createElement ( "div" ) , this . div . className = "zclip" , this . div . id = "zclip-" + this . movieId , $ ( this . domElement ) . data ( "zclipId" , "zclip-" + this . movieId ) ; var f = this . div . style ; if ( f . position = "absolute" , f . left = "" + e . left + "px" , f . top = "" + e . top + "px" , f . width = "" + e . width + "px" , f . height = "" + e . height + "px" , f . zIndex = d , "object" == typeof c ) for ( addedStyle in c ) f [ addedStyle ] = c [ addedStyle ] ; b . appendChild ( this . div ) , this . div . innerHTML = this . getHTML ( e . width , e . height ) } , getHTML : function ( a , b ) { var c = "" , d = "id=" + this . id + "&width=" + a + "&height=" + b ; if ( navigator . userAgent . match ( /MSIE/ ) ) { var e = location . href . match ( /^https/i ) ? "https://" : "http://" ; c += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + e + 'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + a + '" height="' + b + '" id="' + this . movieId + '" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="' + ZeroClipboard . moviePath + '" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="' + d + '"/><param name="wmode" value="transparent"/></object>' } else c += '<embed id="' + this . movieId + '" src="' + ZeroClipboard . moviePath + '" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="' + a + '" height="' + b + '" name="' + this . movieId + '" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="' + d + '" wmode="transparent" />' ; return c } , hide : function ( ) { this . div && ( this . div . style . left = "-2000px" ) } , show : function ( ) { this . reposition ( ) } , destroy : function ( ) { if ( this . domElement && this . div ) { this . hide ( ) , this . div . innerHTML = "" ; var a = document . getElementsByTagName ( "body" ) [ 0 ] ; try { a . removeChild ( this . div ) } catch ( b ) { } this . domElement = null , this . div = null } } , reposition : function ( a ) { if ( a && ( this . domElement = ZeroClipboard . $ ( a ) , this . domElement || this . hide ( ) ) , this . domElement && this . div ) { var b = ZeroClipboard . getDOMObjectPosition ( this . domElement ) , c = this . div . style ; c . left = "" + b . left + "px" , c . top = "" + b . top + "px" } } , setText : function ( a ) { this . clipText = a , this . ready && this . movie . setText ( a ) } , addEventListener : function ( a , b ) { a = a . toString ( ) . toLowerCase ( ) . replace ( /^on/ , "" ) , this . handlers [ a ] || ( this . handlers [ a ] = [ ] ) , this . handlers [ a ] . push ( b ) } , setHandCursor : function ( a ) { this . handCursorEnabled = a , this . ready && this . movie . setHandCursor ( a ) } , setCSSEffects : function ( a ) { this . cssEffects = ! ! a } , receiveEvent : function ( a , b ) { switch ( a = a . toString ( ) . toLowerCase ( ) . replace ( /^on/ , "" ) ) { case "load" : if ( this . movie = document . getElementById ( this . movieId ) , ! this . movie ) { var c = this ; return void setTimeout ( function ( ) { c . receiveEvent ( "load" , null ) } , 1 ) } if ( ! this . ready && navigator . userAgent . match ( /Firefox/ ) && navigator . userAgent . match ( /Windows/ ) ) { var c = this ; return setTimeout ( function ( ) { c . receiveEvent ( "load" , null ) } , 100 ) , void ( this . ready = ! 0 ) } this . ready = ! 0 ; try { this . movie . setText ( this . clipText ) } catch ( d ) { } try { this . movie . setHandCursor ( this . handCursorEnabled ) } catch ( d ) { } break ; case "mouseover"
} ) , this . popup = BI . createWidget ( { type : "bi.text_value_check_combo_popup" , chooseType : b . chooseType , items : b . items , value : b . value } ) , this . popup . on ( BI . TextValueCheckComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . editorIconCheckCombo . hideView ( ) , a . fireEvent ( BI . EditorIconCheckCombo . EVENT _CHANGE ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editorIconCheckCombo = BI . createWidget ( { type : "bi.combo" , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 300 } } ) } , setValue : function ( a ) { this . editorIconCheckCombo . setValue ( a ) } , getValue : function ( ) { return this . trigger . getValue ( ) } , populate : function ( a ) { this . options . items = a , this . editorIconCheckCombo . populate ( a ) } } ) , BI . EditorIconCheckCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.editor_icon_check_combo" , BI . EditorIconCheckCombo ) , BI . IconCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . IconCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-icon-combo" , width : 24 , height : 24 , el : { } , popup : { } , minWidth : 100 , maxWidth : "auto" , maxHeight : 300 , direction : "bottom" , adjustLength : 3 , adjustXOffset : 0 , adjustYOffset : 0 , offsetStyle : "left" , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE } ) } , _init : function ( ) { BI . IconCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( b . el , { type : "bi.icon_combo_trigger" , iconCls : b . iconCls , title : b . title , items : b . items , width : b . width , height : b . height , iconWidth : b . iconWidth , iconHeight : b . iconHeight , value : b . value } ) , this . popup = BI . createWidget ( b . popup , { type : "bi.icon_combo_popup" , chooseType : b . chooseType , items : b . items , value : b . value } ) , this . popup . on ( BI . IconComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . iconCombo . hideView ( ) , a . fireEvent ( BI . IconCombo . EVENT _CHANGE ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . iconCombo = BI . createWidget ( { type : "bi.combo" , element : this , direction : b . direction , trigger : b . trigger , container : b . container , adjustLength : b . adjustLength , adjustXOffset : b . adjustXOffset , adjustYOffset : b . adjustYOffset , offsetStyle : b . offsetStyle , el : this . trigger , popup : { el : this . popup , maxWidth : b . maxWidth , maxHeight : b . maxHeight , minWidth : b . minWidth } } ) } , showView : function ( ) { this . iconCombo . showView ( ) } , hideView : function ( ) { this . iconCombo . hideView ( ) } , setValue : function ( a ) { this . trigger . setValue ( a ) , this . popup . setValue ( a ) } , getValue : function ( ) { var a = this . popup . getValue ( ) ; return BI . isNull ( a ) ? [ ] : BI . isArray ( a ) ? a : [ a ] } , populate : function ( a ) { this . options . items = a , this . iconCombo . populate ( a ) } } ) , BI . IconCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_combo" , BI . IconCombo ) , BI . IconComboPopup = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . IconComboPopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi.icon-combo-popup" , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE } ) } , _init : function ( ) { BI . IconComboPopup . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this ; this . popup = BI . createWidget ( { type : "bi.button_group" , items : BI . createItems ( a . items , { type : "bi.single_select_icon_text_item" , height : 30 } ) , chooseType : a . chooseType , layouts : [ { type : "bi.vertical" } ] , value : a . value } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( a , c , d ) { b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a === BI . Events . CLICK && b . fireEvent ( BI . IconComboPopup . EVENT _CHANGE , c , d ) } ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . popup ] } ) } , populate : function ( a ) { BI . IconComboPopup . superclass . populate . apply ( this , arguments ) , a = BI . createItems ( a , { type : "bi.single_select_icon_text_item" , height : 30 } ) , this . popup . populate ( a ) } , getValue : function ( ) { return this . popup . getValue ( ) } , setValue : function ( a ) { this . popup . setValue ( a ) } } ) , BI . IconComboPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_combo_popup" , BI . IconComboPopup ) , BI . IconComboTrigger = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . IconComboTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-icon-combo-trigger" , el : { } , items : [ ] , iconCls : "" , width : 25 , height : 25 , isShowDown : ! 0 , value : "" } ) } , _init : function ( ) { BI . IconCo
this . text . setTitle ( a ) } , setWarningTitle : function ( a ) { this . text . setWarningTitle ( a ) } , focus : function ( ) { this . _showInput ( ) , this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) , this . _showHint ( ) , this . _checkText ( ) } , doRedMark : function ( ) { "" === this . editor . getValue ( ) && BI . isKey ( this . options . watermark ) || this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { "" === this . editor . getValue ( ) && BI . isKey ( this . options . watermark ) || this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , isValid : function ( ) { return this . editor . isValid ( ) } , setErrorText : function ( a ) { this . editor . setErrorText ( a ) } , getErrorText : function ( ) { return this . editor . getErrorText ( ) } , isEditing : function ( ) { return this . editor . isEditing ( ) } , getLastValidValue : function ( ) { return this . editor . getLastValidValue ( ) } , setTextStyle : function ( a ) { this . text . setStyle ( a ) } , setValue : function ( a ) { this . editor . setValue ( a ) , this . _checkText ( ) } , getValue : function ( ) { return this . editor . getValue ( ) } , getState : function ( ) { return this . text . getValue ( ) } , setState : function ( a ) { this . _showHint ( ) , this . text . setValue ( a ) } } ) , BI . ShelterEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . ShelterEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . ShelterEditor . EVENT _BLUR = "EVENT_BLUR" , BI . ShelterEditor . EVENT _CLICK = "EVENT_CLICK" , BI . ShelterEditor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . ShelterEditor . EVENT _CLICK _LABEL = "EVENT_CLICK_LABEL" , BI . ShelterEditor . EVENT _START = "EVENT_START" , BI . ShelterEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . ShelterEditor . EVENT _STOP = "EVENT_STOP" , BI . ShelterEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . ShelterEditor . EVENT _VALID = "EVENT_VALID" , BI . ShelterEditor . EVENT _ERROR = "EVENT_ERROR" , BI . ShelterEditor . EVENT _ENTER = "EVENT_ENTER" , BI . ShelterEditor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . ShelterEditor . EVENT _SPACE = "EVENT_SPACE" , BI . ShelterEditor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.shelter_editor" , BI . ShelterEditor ) , BI . SignInitialEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . SignInitialEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-sign-initial-editor" , hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 0 , watermark : "" , errorText : "" , value : "" , text : "" , height : 24 } ) } , _init : function ( ) { BI . SignInitialEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.editor" , height : b . height , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap , value : b . value , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank , watermark : b . watermark , errorText : b . errorText } ) , this . text = BI . createWidget ( { type : "bi.text_button" , cls : "sign-editor-text" , title : b . title , warningTitle : b . warningTitle , tipType : b . tipType , textAlign : "left" , height : b . height , hgap : 4 , handler : function ( ) { a . _showInput ( ) , a . editor . focus ( ) , a . editor . selectAll ( ) } } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { BI . nextTick ( function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _CLICK _LABEL ) } ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . text , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . SignInitialEditor . EVENT _KEY _DOWN , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _VALID , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _VALID , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . _showHint ( ) , a . _checkText ( ) , a . fireEvent ( BI . SignInitialEditor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Edito
} , lhgap : 10 , rhgap : 10 } , height : 29 } } , setTitle : function ( a ) { this . text . setValue ( a ) } } ) , BI . Panel . EVENT _CHANGE = "Panel.EVENT_CHANGE" , BI . shortcut ( "bi.panel" , BI . Panel ) , BI . SelectList = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SelectList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-select-list" , direction : BI . Direction . Top , logic : { dynamic : ! 0 } , items : [ ] , itemsCreator : BI . emptyFn , hasNext : BI . emptyFn , onLoaded : BI . emptyFn , toolbar : { type : "bi.multi_select_bar" } , el : { type : "bi.list_pane" } } ) } , _init : function ( ) { BI . SelectList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . toolbar = BI . createWidget ( b . toolbar ) , this . allSelected = ! 1 , this . toolbar . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . allSelected = this . isSelected ( ) , b === BI . Events . CLICK && ( a . setAllSelected ( a . allSelected ) , a . fireEvent ( BI . SelectList . EVENT _CHANGE , c , d ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . list = BI . createWidget ( b . el , { type : "bi.list_pane" , items : b . items , itemsCreator : function ( c , d ) { 1 === c . times && a . toolbar . setVisible ( ! 1 ) , b . itemsCreator ( c , function ( b ) { d . apply ( a , arguments ) , 1 === c . times && ( a . toolbar . setVisible ( b && b . length > 0 ) , a . toolbar . setEnable ( b && b . length > 0 ) ) , a . _checkAllSelected ( ) } ) } , onLoaded : b . onLoaded , hasNext : b . hasNext } ) , this . list . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { b === BI . Events . CLICK && ( a . _checkAllSelected ( ) , a . fireEvent ( BI . SelectList . EVENT _CHANGE , c , d ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( BI . LogicFactory . createLogicTypeByDirection ( b . direction ) , BI . extend ( { scrolly : ! 0 } , b . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( b . direction , this . toolbar , this . list ) } ) ) ) ) , b . items . length <= 0 && ( this . toolbar . setVisible ( ! 1 ) , this . toolbar . setEnable ( ! 1 ) ) , BI . isNotNull ( b . value ) && this . setValue ( b . value ) } , _checkAllSelected : function ( ) { var a = this . list . getValue ( ) . length , b = this . getAllLeaves ( ) . length - a , c = this . list . hasNext ( ) , d = this . toolbar . isSelected ( ) , e = a > 0 && ( b > 0 || ! d && c ) ; e = e || b > 0 && c && d , this . toolbar . setHalfSelected ( e ) , ! e && this . toolbar . setSelected ( a > 0 && b <= 0 && ( ! c || d ) ) } , setAllSelected : function ( a ) { BI . each ( this . getAllButtons ( ) , function ( b , c ) { ( c . setSelected || c . setAllSelected ) . apply ( c , [ a ] ) } ) , this . allSelected = ! ! a , this . toolbar . setSelected ( a ) , this . toolbar . setHalfSelected ( ! 1 ) } , setToolBarVisible : function ( a ) { this . toolbar . setVisible ( a ) } , isAllSelected : function ( ) { return this . allSelected } , hasPrev : function ( ) { return this . list . hasPrev ( ) } , hasNext : function ( ) { return this . list . hasNext ( ) } , prependItems : function ( a ) { this . list . prependItems . apply ( this . list , arguments ) } , addItems : function ( a ) { this . list . addItems . apply ( this . list , arguments ) } , setValue : function ( a ) { var b = a . type === BI . ButtonGroup . CHOOSE _TYPE _ALL ; this . setAllSelected ( b ) , this . list [ b ? "setNotSelectedValue" : "setValue" ] ( a . value ) , this . _checkAllSelected ( ) } , getValue : function ( ) { return this . isAllSelected ( ) === ! 1 ? { type : BI . ButtonGroup . CHOOSE _TYPE _MULTI , value : this . list . getValue ( ) , assist : this . list . getNotSelectedValue ( ) } : { type : BI . ButtonGroup . CHOOSE _TYPE _ALL , value : this . list . getNotSelectedValue ( ) , assist : this . list . getValue ( ) } } , empty : function ( ) { this . list . empty ( ) } , populate : function ( a ) { this . toolbar . setVisible ( ! BI . isEmptyArray ( a ) ) , this . toolbar . setEnable ( ! BI . isEmptyArray ( a ) ) , this . list . populate . apply ( this . list , arguments ) , this . _checkAllSelected ( ) } , _setEnable : function ( a ) { BI . SelectList . superclass . _setEnable . apply ( this , arguments ) , this . toolbar . setEnable ( a ) } , resetHeight : function ( a ) { var b = ( this . toolbar . element . outerHeight ( ) || 25 ) * ( this . toolbar . isVisible ( ) ? 1 : 0 ) ; this . list . resetHeight ? this . list . resetHeight ( a - b ) : this . list . element . css ( { "max-height" : a - b + "px" } ) } , setNotSelectedValue : function ( ) { this . list . setNotSelectedValue . apply ( this . list , arguments ) , this . _checkAllSelected ( ) } , getNotSelectedValue : function ( ) { return this . list . getNotSelectedValue ( ) } , getAllButtons : function ( ) { return this . list . getAllButtons ( ) } , getAllLeaves : function ( ) { return this . list . getAllLeaves ( ) } , getSelectedButtons : function ( ) { return this . list . getSelectedButtons ( ) } , getNotSelectedButtons : function ( ) { return this . list . getNotSelectedButtons ( ) } , getIndexByValue : function ( a ) { return this . list . getIndexByValue ( a ) } , getNodeById : f
} ) , this . underline = BI . createWidget ( { type : "bi.icon_button" , cls : "text-color-underline-font" } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . font , top : 2 , left : 2 } , { el : this . underline , top : 7 , left : 2 } ] } ) } , setValue : function ( a ) { this . underline . element . css ( "color" , a ) } , getValue : function ( ) { return this . font . element . css ( "color" ) } } ) , BI . shortcut ( "bi.rich_editor_background_color_chooser_trigger" , BI . RichEditorBackgroundChooserTrigger ) , BI . RichEditorAlignCenterButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorAlignCenterButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "justifycenter" } ) } , _init : function ( ) { BI . RichEditorAlignCenterButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . align = BI . createWidget ( { type : "bi.icon_button" , element : this , forceNotSelected : ! 0 , title : BI . i18nText ( "BI-Word_Align_Center" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-align-center-font" } ) , this . align . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { } , deactivate : function ( ) { } } ) , BI . shortcut ( "bi.rich_editor_align_center_button" , BI . RichEditorAlignCenterButton ) , BI . RichEditorAlignLeftButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorAlignLeftButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "justifyleft" } ) } , _init : function ( ) { BI . RichEditorAlignLeftButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . align = BI . createWidget ( { type : "bi.icon_button" , element : this , forceNotSelected : ! 0 , title : BI . i18nText ( "BI-Word_Align_Left" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-align-left-font" } ) , this . align . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { } , deactivate : function ( ) { } } ) , BI . shortcut ( "bi.rich_editor_align_left_button" , BI . RichEditorAlignLeftButton ) , BI . RichEditorAlignRightButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorAlignRightButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "justifyright" } ) } , _init : function ( ) { BI . RichEditorAlignRightButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . align = BI . createWidget ( { type : "bi.icon_button" , element : this , forceNotSelected : ! 0 , title : BI . i18nText ( "BI-Word_Align_Right" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-align-right-font" } ) , this . align . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { } , deactivate : function ( ) { } } ) , BI . shortcut ( "bi.rich_editor_align_right_button" , BI . RichEditorAlignRightButton ) , BI . RichEditorBoldButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorBoldButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "Bold" , tags : [ "B" , "STRONG" ] , css : { fontWeight : "bold" } } ) } , _init : function ( ) { BI . RichEditorBoldButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . bold = BI . createWidget ( { type : "bi.icon_button" , element : this , title : BI . i18nText ( "BI-Basic_Bold" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-bold-font" } ) , this . bold . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { this . bold . setSelected ( ! 0 ) } , deactivate : function ( ) { this . bold . setSelected ( ! 1 ) } } ) , BI . shortcut ( "bi.rich_editor_bold_button" , BI . RichEditorBoldButton ) , BI . RichEditorItalicButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorItalicButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "Italic" , tags : [ "EM" , "I" ] , css : { fontStyle : "italic" } } ) } , _init : function ( ) { BI . RichEditorItalicButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . italic = BI . createWidget ( { type : "bi.icon_button" , element : this , title : BI . i18nText ( "BI-Basic_Italic" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-italic-font" } ) , this . italic . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { this . italic .
b . regionColumnSize = this . getRegionColumnSize ( ) , b . columnSize = this . getColumnSize ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _REGION _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _AFTER _COLUMN _RESIZE , function ( ) { b . regionColumnSize = this . getRegionColumnSize ( ) , b . columnSize = this . getColumnSize ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _COLUMN _RESIZE , arguments ) } ) } , setWidth : function ( a ) { BI . LayerTreeTable . superclass . setWidth . apply ( this , arguments ) , this . table . setWidth ( a ) } , setHeight : function ( a ) { BI . LayerTreeTable . superclass . setHeight . apply ( this , arguments ) , this . table . setHeight ( a ) } , setColumnSize : function ( a ) { this . options . columnSize = a } , getColumnSize : function ( ) { var a = this . table . getColumnSize ( ) , b = this . _getHDeep ( ) , c = [ ] ; return b > 0 && ( c = BI . makeArray ( b , a [ 0 ] / b ) ) , c . concat ( a . slice ( 1 ) ) } , setRegionColumnSize : function ( a ) { this . options . regionColumnSize = a , this . table . setRegionColumnSize ( a ) } , getRegionColumnSize : function ( ) { return this . table . getRegionColumnSize ( ) } , setVerticalScroll : function ( a ) { this . table . setVerticalScroll ( a ) } , setLeftHorizontalScroll : function ( a ) { this . table . setLeftHorizontalScroll ( a ) } , setRightHorizontalScroll : function ( a ) { this . table . setRightHorizontalScroll ( a ) } , getVerticalScroll : function ( ) { return this . table . getVerticalScroll ( ) } , getLeftHorizontalScroll : function ( ) { return this . table . getLeftHorizontalScroll ( ) } , getRightHorizontalScroll : function ( ) { return this . table . getRightHorizontalScroll ( ) } , attr : function ( a , b ) { var c = this ; if ( BI . isObject ( a ) ) return void BI . each ( a , function ( a , b ) { c . attr ( a , b ) } ) ; switch ( BI . LayerTreeTable . superclass . attr . apply ( this , arguments ) , a ) { case "columnSize" : case "minColumnSize" : case "maxColumnSize" : case "freezeCols" : case "mergeCols" : return } this . table . attr . apply ( this . table , [ a , b ] ) } , restore : function ( ) { this . table . restore ( ) } , populate : function ( a , b , c , d ) { var e = this . options ; e . items = a || [ ] , b && ( e . header = b ) , c && ( e . crossItems = c ) , d && ( e . crossHeader = d ) ; var f = this . _digest ( ) ; this . table . setColumnSize ( f . columnSize ) , this . table . attr ( "freezeCols" , f . freezeCols ) , this . table . attr ( "minColumnSize" , f . minColumnSize ) , this . table . attr ( "maxColumnSize" , f . maxColumnSize ) , this . table . populate ( f . items , f . header ) } , destroy : function ( ) { this . table . destroy ( ) , BI . LayerTreeTable . superclass . destroy . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.layer_tree_table" , BI . LayerTreeTable ) , BI . TableStyleCell = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . TableStyleCell . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-table-style-cell" , styleGetter : BI . emptyFn } ) } , _init : function ( ) { BI . TableStyleCell . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : "left" , forceCenter : ! 0 , hgap : 5 , text : a . text } ) , this . _digestStyle ( ) } , _digestStyle : function ( ) { var a = this . options , b = a . styleGetter ( ) ; b && this . text . element . css ( b ) } , setText : function ( a ) { this . text . setText ( a ) } , populate : function ( ) { this . _digestStyle ( ) } } ) , BI . shortcut ( "bi.table_style_cell" , BI . TableStyleCell ) , BI . TableTree = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . TableTree . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-table-tree" , el : { type : "bi.resizable_table" } , isNeedResize : ! 0 , isResizeAdapt : ! 0 , freezeCols : [ ] , isNeedMerge : ! 0 , mergeCols : [ ] , mergeRule : BI . emptyFn , columnSize : [ ] , minColumnSize : [ ] , maxColumnSize : [ ] , headerRowSize : 25 , rowSize : 25 , regionColumnSize : [ ] , headerCellStyleGetter : BI . emptyFn , summaryCellStyleGetter : BI . emptyFn , sequenceCellStyleGetter : BI . emptyFn , header : [ ] , items : [ ] , crossHeader : [ ] , crossItems : [ ] } ) } , _getVDeep : function ( ) { return this . options . crossHeader . length } , _getHDeep : function ( ) { var a = this . options ; return Math . max ( a . mergeCols . length , a . freezeCols . length , BI . TableTree . maxDeep ( a . items ) - 1 ) } , _init : function ( ) { BI . TableTree . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _digest ( ) ; this . table = BI . createWidget ( b . el , { type : "bi.resizable_table" , element : this , width : b . width , height : b . height , isNeedResize : b . isNeedResize , isResizeAdapt : b . isResizeAdapt , isNeedFreeze : b . isNeedFreeze , freezeCols : b . freezeCols , isNeedMerge : b . isNeedMerge , mergeCols : b . mergeCols , mergeRule : b . mergeRule , columnSize : b . columnSize , minColumnSize : b . minColumnSize , maxColumnSize : b . maxCo
var a = this . options ; this . trigger = BI . createWidget ( { type : "bi.text_trigger" , element : this , height : a . height , readonly : a . readonly , text : this . _digest ( a . value , a . items ) } ) } , _digest : function ( a , b ) { var c = this . options ; a = BI . isArray ( a ) ? a : [ a ] ; var d = [ ] , e = BI . Tree . transformToArrayFormat ( b ) ; return BI . each ( e , function ( b , c ) { BI . deepContains ( a , c . value ) && ! d . contains ( c . text || c . value ) && d . push ( c . text || c . value ) } ) , d . length > 0 ? d . join ( "," ) : c . text } , setValue : function ( a ) { this . trigger . setText ( this . _digest ( a , this . options . items ) ) } , populate : function ( a ) { this . options . items = a } } ) , BI . shortcut ( "bi.select_text_trigger" , BI . SelectTextTrigger ) , BI . SmallSelectTextTrigger = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . SmallSelectTextTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-small-select-text-trigger bi-border" , height : 20 } ) } , _init : function ( ) { this . options . height -= 2 , BI . SmallSelectTextTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this . _digest ( a . text , a . items ) ; this . trigger = BI . createWidget ( { type : "bi.small_text_trigger" , element : this , height : a . height - 2 , text : b . text , cls : b . cls } ) } , _digest : function ( a , b ) { var c = this . options ; a = BI . isArray ( a ) ? a : [ a ] ; var d = [ ] , e = BI . Tree . transformToArrayFormat ( b ) ; return BI . each ( e , function ( b , c ) { BI . deepContains ( a , c . value ) && ! d . contains ( c . text || c . value ) && d . push ( c . text || c . value ) } ) , d . length > 0 ? { cls : "" , text : d . join ( "," ) } : { cls : "bi-water-mark" , text : c . text } } , setValue : function ( a ) { this . trigger . setText ( this . _digest ( a , this . options . items ) ) } , populate : function ( a ) { this . options . items = a } } ) , BI . shortcut ( "bi.small_select_text_trigger" , BI . SmallSelectTextTrigger ) , BI . SmallTextTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 } , _defaultConfig : function ( ) { var a = BI . SmallTextTrigger . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-trigger" , height : 20 } ) } , _init : function ( ) { BI . SmallTextTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this . _const ; this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , height : a . height , text : a . text , hgap : b . hgap } ) , this . trigerButton = BI . createWidget ( { type : "bi.trigger_icon_button" , width : a . triggerWidth || a . height } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : this . text } , { el : this . trigerButton , width : a . triggerWidth || a . height } ] } ) } , setValue : function ( a ) { this . text . setValue ( a ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.small_text_trigger" , BI . SmallTextTrigger ) , BI . SequenceTableTreeNumber = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SequenceTableTreeNumber . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-sequence-table-tree-number" , isNeedFreeze : ! 1 , startSequence : 1 , scrollTop : 0 , headerRowSize : 25 , rowSize : 25 , sequenceHeaderCreator : null , header : [ ] , items : [ ] , crossHeader : [ ] , crossItems : [ ] } ) } , _init : function ( ) { BI . SequenceTableTreeNumber . superclass . _init . apply ( this , arguments ) ; this . options ; this . vCurr = 1 , this . hCurr = 1 , this . tasks = [ ] , this . renderedCells = [ ] , this . renderedKeys = [ ] , this . container = BI . createWidget ( { type : "bi.absolute" , width : 60 , scrollable : ! 1 } ) , this . scrollContainer = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . container ] } ) , this . headerContainer = BI . createWidget ( { type : "bi.absolute" , cls : "bi-border" , width : 58 , scrollable : ! 1 } ) , this . layout = BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . headerContainer , height : this . _getHeaderHeight ( ) - 2 } , { el : { type : "bi.layout" } , height : 2 } , { el : this . scrollContainer } ] } ) , this . start = this . options . startSequence , this . cache = { } , this . _nextState ( ) , this . _populate ( ) } , _getNextSequence : function ( a ) { function b ( a ) { c . cache [ a . text || a . value ] || ( c . cache [ a . text || a . value ] = e ) , e ++ } var c = this , d = this . start , e = this . start ; return BI . each ( a , function ( a , f ) { BI . isNotEmptyArray ( f . children ) && BI . each ( f . children , function ( a , f ) { 0 === a && c . cache [ f . text || f . value ] && ( d = e = c . cache [ f . text || f . value ] ) , b ( f ) } ) } ) , this . start = e , d } , _getStart : function ( a ) { var b = this , c = this . start ; return BI . some ( a , function ( a , d ) { if ( BI . isNotEmptyArray ( d . children ) ) return BI . some ( d . children , function ( a , d ) { if ( 0 === a && b . cache [ d . text || d . value ] ) return c = b . cache [ d . text || d . value ] , ! 0 } ) } ) , c } , _formatNumber : function ( a ) { function b ( a ) { var c = 0 ; re
} ) , this . okButton = BI . createWidget ( { type : "bi.text_button" , forceCenter : ! 0 , cls : "multidate-popup-button bi-border-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) } ) , this . okButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . BUTTON _OK _EVENT _CHANGE ) } ) , this . dateCombo = BI . createWidget ( { type : "bi.date_calendar_popup" , min : a . options . min , max : a . options . max } ) , a . dateCombo . on ( BI . DateCalendarPopup . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . CALENDAR _EVENT _CHANGE ) } ) , this . dateSelect = BI . createWidget ( { type : "bi.vertical_adapt" , cls : "bi-border-top" , items : [ { type : "bi.label" , text : BI . i18nText ( "BI-Basic_Time" ) , width : 45 } , { type : "bi.date_time_select" , max : 23 , min : 0 , width : 60 , height : 30 , listeners : [ { eventName : BI . DateTimeSelect . EVENT _CONFIRM , action : function ( ) { a . fireEvent ( BI . DateTimePopup . CALENDAR _EVENT _CHANGE ) } } ] , ref : function ( b ) { a . hour = b } } , { type : "bi.label" , text : ":" , width : 15 } , { type : "bi.date_time_select" , max : 59 , min : 0 , width : 60 , height : 30 , listeners : [ { eventName : BI . DateTimeSelect . EVENT _CONFIRM , action : function ( ) { a . fireEvent ( BI . DateTimePopup . CALENDAR _EVENT _CHANGE ) } } ] , ref : function ( b ) { a . minute = b } } , { type : "bi.label" , text : ":" , width : 15 } , { type : "bi.date_time_select" , max : 59 , min : 0 , width : 60 , height : 30 , listeners : [ { eventName : BI . DateTimeSelect . EVENT _CONFIRM , action : function ( ) { a . fireEvent ( BI . DateTimePopup . CALENDAR _EVENT _CHANGE ) } } ] , ref : function ( b ) { a . second = b } } ] } ) , this . setValue ( b . value ) , this . dateButton = BI . createWidget ( { type : "bi.grid" , items : [ [ this . cancelButton , this . okButton ] ] } ) , BI . createWidget ( { element : this , type : "bi.vtape" , items : [ { el : this . dateCombo } , { el : this . dateSelect , height : 50 } , { el : this . dateButton , height : 30 } ] } ) } , setValue : function ( a ) { var b , c = a ; BI . isNull ( c ) ? ( b = BI . getDate ( ) , this . dateCombo . setValue ( { year : b . getFullYear ( ) , month : b . getMonth ( ) , day : BI . getDate ( ) } ) , this . hour . setValue ( b . getHours ( ) ) , this . minute . setValue ( b . getMinutes ( ) ) , this . second . setValue ( b . getSeconds ( ) ) ) : ( this . dateCombo . setValue ( { year : c . year , month : c . month , day : c . day } ) , this . hour . setValue ( c . hour ) , this . minute . setValue ( c . minute ) , this . second . setValue ( c . second ) ) } , getValue : function ( ) { return { year : this . dateCombo . getValue ( ) . year , month : this . dateCombo . getValue ( ) . month , day : this . dateCombo . getValue ( ) . day , hour : this . hour . getValue ( ) , minute : this . minute . getValue ( ) , second : this . second . getValue ( ) } } } ) , BI . DateTimePopup . BUTTON _OK _EVENT _CHANGE = "BUTTON_OK_EVENT_CHANGE" , BI . DateTimePopup . BUTTON _CANCEL _EVENT _CHANGE = "BUTTON_CANCEL_EVENT_CHANGE" , BI . DateTimePopup . CALENDAR _EVENT _CHANGE = "CALENDAR_EVENT_CHANGE" , BI . shortcut ( "bi.date_time_popup" , BI . DateTimePopup ) , BI . DateTimeSelect = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . DateTimeSelect . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-date-time-select bi-border" , max : 23 , min : 0 } ) } , _init : function ( ) { BI . DateTimeSelect . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.sign_editor" , value : this . _alertInEditorValue ( b . min ) , allowBlank : ! 1 , errorText : BI . i18nText ( "BI-Please_Input_Natural_Number" ) , validationChecker : function ( a ) { return BI . isNaturalNumber ( a ) } } ) , this . editor . on ( BI . TextEditor . EVENT _CONFIRM , function ( ) { a . _finetuning ( 0 ) , a . fireEvent ( BI . DateTimeSelect . EVENT _CONFIRM ) } ) , this . topBtn = BI . createWidget ( { type : "bi.icon_button" , cls : "column-pre-page-h-font top-button bi-border-left bi-border-bottom" } ) , this . topBtn . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . _finetuning ( 1 ) , a . fireEvent ( BI . DateTimeSelect . EVENT _CONFIRM ) } ) , this . bottomBtn = BI . createWidget ( { type : "bi.icon_button" , cls : "column-next-page-h-font bottom-button bi-border-left" } ) , this . bottomBtn . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . _finetuning ( - 1 ) , a . fireEvent ( BI . DateTimeSelect . EVENT _CONFIRM ) } ) , this . _finetuning ( 0 ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ this . editor , { el : { type : "bi.grid" , columns : 1 , rows : 2 , items : [ { column : 0 , row : 0 , el : this . topBtn } , { column : 0 , row : 1 , el : this . bottomBtn } ] } , width : 30 } ] } ) } , _alertOutEditorValue : function ( a ) { return a > this . options . max && ( a = this . options . min ) , a < this . options . min && ( a = this . options . max ) , BI . parseInt ( a ) } , _alertInEditorValue : function ( a ) { return a > this . options . max && ( a = this . options . min ) , a < this . options . min && ( a = this . options . max ) , a = a < 10 ? "0" + a : a
BI . shortcut ( "bi.file_manager_list" , BI . FileManagerList ) , BI . FileManagerNavButton = BI . inherit ( BI . Widget , { _const : { normal _color : "#ffffff" , select _color : "#eff1f4" } , _defaultConfig : function ( ) { return BI . extend ( BI . FileManagerNavButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-file-manager-nav-button" , selected : ! 1 , height : 40 } ) } , _init : function ( ) { BI . FileManagerNavButton . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . button = BI . createWidget ( { type : "bi.text_button" , cls : "file-manager-nav-button-text bi-card" , once : ! 0 , selected : b . selected , text : b . text , title : b . text , value : b . value , height : b . height , lgap : 20 , rgap : 10 } ) , this . button . on ( BI . Controller . EVENT _CHANGE , function ( ) { arguments [ 2 ] = a , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var d = BI . createWidget ( { type : "bi.svg" , cls : "file-manager-nav-button-triangle" , width : 15 , height : b . height } ) , e = d . path ( "M0,0L15,20L0,40" ) . attr ( { stroke : c . select _color , fill : b . selected ? c . select _color : c . normal _color } ) ; this . button . on ( BI . TextButton . EVENT _CHANGE , function ( ) { this . isSelected ( ) ? e . attr ( "fill" , c . select _color ) : e . attr ( "fill" , c . normal _color ) } ) , BI . createWidget ( { type : "bi.default" , element : this , items : [ this . button ] } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : d , right : - 15 , top : 0 , bottom : 0 } ] } ) } , isSelected : function ( ) { return this . button . isSelected ( ) } , setValue : function ( a ) { this . button . setValue ( a ) } , getValue : function ( ) { return this . button . getValue ( ) } , populate : function ( a ) { } } ) , BI . FileManagerNavButton . EVENT _CHANGE = "FileManagerNavButton.EVENT_CHANGE" , BI . shortcut ( "bi.file_manager_nav_button" , BI . FileManagerNavButton ) , BI . FileManagerNav = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . FileManagerNav . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-file-manager-nav bi-border-left" , height : 40 , items : [ ] } ) } , _init : function ( ) { BI . FileManagerNav . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . tree = new BI . Tree , this . refreshTreeData ( b . items ) , this . tree . getRoot ( ) . set ( "data" , { text : BI . i18nText ( "BI-Created_By_Me" ) , value : BI . FileManagerNav . ROOT _CREATE _BY _ME , id : BI . FileManagerNav . ROOT _CREATE _BY _ME } ) , this . button _group = BI . createWidget ( { type : "bi.button_group" , element : this , items : [ { type : "bi.file_manager_nav_button" , text : BI . i18nText ( "BI-Created_By_Me" ) , selected : ! 0 , id : BI . FileManagerNav . ROOT _CREATE _BY _ME , value : BI . FileManagerNav . ROOT _CREATE _BY _ME } ] , layouts : [ { type : "bi.horizontal" } ] } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . ButtonGroup . EVENT _CHANGE , function ( b , c ) { a . fireEvent ( BI . FileManagerNav . EVENT _CHANGE , arguments ) } ) } , _getAllParents : function ( a ) { var b , c = [ ] ; for ( b = a ? this . tree . search ( a ) : this . tree . getRoot ( ) ; b . parent ; ) c . push ( b ) , b = b . parent ; return c . push ( b ) , c . reverse ( ) } , _formatNodes : function ( a ) { var b = [ ] ; return BI . each ( a , function ( a , c ) { b . push ( BI . extend ( { type : "bi.file_manager_nav_button" , id : c . id } , c . get ( "data" ) ) ) } ) , BI . last ( b ) . selected = ! 0 , b } , getValue : function ( ) { return this . button _group . getValue ( ) } , getId : function ( ) { var a = [ ] ; return BI . each ( this . button _group . getSelectedButtons ( ) , function ( b , c ) { a . push ( c . attr ( "id" ) ) } ) , a } , refreshTreeData : function ( a ) { this . tree . initTree ( BI . Tree . transformToTreeFormat ( a ) ) , this . tree . getRoot ( ) . set ( "data" , { text : BI . i18nText ( "BI-Created_By_Me" ) , value : BI . FileManagerNav . ROOT _CREATE _BY _ME , id : BI . FileManagerNav . ROOT _CREATE _BY _ME } ) } , populate : function ( a ) { var b = BI . isNull ( a ) ? [ this . tree . getRoot ( ) ] : this . _getAllParents ( a . id ) ; this . button _group . populate ( this . _formatNodes ( b ) ) } } ) , BI . extend ( BI . FileManagerNav , { ROOT _CREATE _BY _ME : "-1" } ) , BI . FileManagerNav . EVENT _CHANGE = "FileManagerNav.EVENT_CHANGE" , BI . shortcut ( "bi.file_manager_nav" , BI . FileManagerNav ) , BI . IntervalSlider = BI . inherit ( BI . Widget , { _constant : { EDITOR _WIDTH : 58 , EDITOR _R _GAP : 60 , EDITOR _HEIGHT : 30 , SLIDER _WIDTH _HALF : 15 , SLIDER _WIDTH : 30 , SLIDER _HEIGHT : 30 , TRACK _HEIGHT : 24 } , _defaultConfig : function ( ) { return BI . extend ( BI . IntervalSlider . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-interval-slider bi-slider-track" , digit : ! 1 , unit : "" } ) } , _init : function ( ) { BI . IntervalSlider . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . _c
} , { isEditorExist : ! 1 , value : BI . MultiDateCombo . DATE _TYPE . MULTI _DATE _DAY _TODAY , text : BI . i18nText ( "BI-Multi_Date_Today" ) } ] } , defaultSelectedItem : function ( ) { return BI . MultiDateCombo . DATE _TYPE . MULTI _DATE _DAY _PREV } } ) , BI . DayCard . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.daycard" , BI . DayCard ) , BI . MonthCard = BI . inherit ( BI . MultiDateCard , { _defaultConfig : function ( ) { return $ . extend ( BI . MonthCard . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multidate-monthcard" } ) } , _init : function ( ) { BI . MonthCard . superclass . _init . apply ( this , arguments ) } , dateConfig : function ( ) { return [ { selected : ! 0 , isEditorExist : ! 0 , value : BI . MultiDateCombo . DATE _TYPE . MULTI _DATE _MONTH _PREV , text : BI . i18nText ( "BI-Multi_Date_Month_Prev" ) } , { isEditorExist : ! 0 , value : BI . MultiDateCombo . DATE _TYPE . MULTI _DATE _MONTH _AFTER , text : BI . i18nText ( "BI-Multi_Date_Month_Next" ) } , { value : BI . MultiDateCombo . DATE _TYPE . MULTI _DATE _MONTH _BEGIN , isEditorExist : ! 1 , text : BI . i18nText ( "BI-Multi_Date_Month_Begin" ) } , { value : BI . MultiDateCombo . DATE _TYPE . MULTI _DATE _MONTH _END , isEditorExist : ! 1 , text : BI . i18nText ( "BI-Multi_Date_Month_End" ) } ] } , defaultSelectedItem : function ( ) { return BI . MultiDateCombo . DATE _TYPE . MULTI _DATE _MONTH _PREV } } ) , BI . MonthCard . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.monthcard" , BI . MonthCard ) , BI . MultiDatePopup = BI . inherit ( BI . Widget , { constants : { tabHeight : 30 , tabWidth : 42 , titleHeight : 27 , itemHeight : 30 , triggerHeight : 24 , buttonWidth : 90 , buttonHeight : 25 , cardHeight : 229 , cardWidth : 270 , popupHeight : 259 , popupWidth : 270 , comboAdjustHeight : 1 , ymdWidth : 58 , lgap : 2 , border : 1 } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiDatePopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multidate-popup" , width : 268 , height : 260 } ) } , _init : function ( ) { BI . MultiDatePopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . storeValue = "" , this . textButton = BI . createWidget ( { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-multidate-popup-label bi-border-left bi-border-right bi-border-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Multi_Date_Today" ) } ) , this . textButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiDatePopup . BUTTON _lABEL _EVENT _CHANGE ) } ) , this . clearButton = BI . createWidget ( { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-multidate-popup-button bi-border-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_Clear" ) } ) , this . clearButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiDatePopup . BUTTON _CLEAR _EVENT _CHANGE ) } ) , this . okButton = BI . createWidget ( { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-multidate-popup-button bi-border-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) } ) , this . okButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiDatePopup . BUTTON _OK _EVENT _CHANGE ) } ) , this . dateTab = BI . createWidget ( { type : "bi.tab" , tab : { cls : "bi-multidate-popup-tab bi-border-bottom" , height : this . constants . tabHeight , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Multi_Date_YMD" ) , value : BI . MultiDateCombo . MULTI _DATE _YMD _CARD , width : this . constants . ymdWidth } , { text : BI . i18nText ( "BI-Multi_Date_Year" ) , value : BI . MultiDateCombo . MULTI _DATE _YEAR _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Quarter" ) , value : BI . MultiDateCombo . MULTI _DATE _QUARTER _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Month" ) , value : BI . MultiDateCombo . MULTI _DATE _MONTH _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Week" ) , value : BI . MultiDateCombo . MULTI _DATE _WEEK _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Day" ) , value : BI . MultiDateCombo . MULTI _DATE _DAY _CARD } ] , { width : this . constants . tabWidth , textAlign : "center" , height : this . constants . itemHeight , cls : "bi-multidate-popup-item bi-list-item-active" } ) , layouts : [ { type : "bi.left" } ] } , cardCreator : function ( b ) { switch ( b ) { case BI . MultiDateCombo . MULTI _DATE _YMD _CARD : return a . ymd = BI . createWidget ( { type : "bi.date_calendar_popup" , min : a . options . min , max : a . options . max } ) , a . ymd . on ( BI . DateCalendarPopup . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiDatePopup . CALENDAR _EVENT _CHANGE ) } ) , a . ymd ; case BI . MultiDateCombo . MULTI _DATE _YEAR _CARD : return a . year = BI . createWidget ( { type : "bi.yearcard" } ) , a . year . on ( BI . MultiDateCard . EVENT _CHANGE , function ( b ) { a . _setInnerValue ( a . year , b ) } ) , a . year ; case BI . MultiDateCombo . MULTI _DATE _QUARTER _CARD : return a . quarter = BI . createWidget ( { type : "bi.quartercard" } ) , a . quarter . on (
} , unRedMark : function ( ) { this . node . unRedMark . apply ( this . node , arguments ) } , doClick : function ( ) { BI . MultiLayerSingleTreeLastPlusGroupNode . superclass . doClick . apply ( this , arguments ) , this . node . setSelected ( this . isSelected ( ) ) } , setOpened : function ( a ) { BI . MultiLayerSingleTreeLastPlusGroupNode . superclass . setOpened . apply ( this , arguments ) , BI . isNotNull ( this . node ) && this . node . setOpened ( a ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_last_plus_group_node" , BI . MultiLayerSingleTreeLastPlusGroupNode ) , BI . MultiLayerSingleTreeMidPlusGroupNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . MultiLayerSingleTreeMidPlusGroupNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-multilayer-single-tree-mid-plus-group-node bi-list-item" , layer : 0 , id : "" , pId : "" , open : ! 1 , height : 25 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeMidPlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . node = BI . createWidget ( { type : "bi.mid_plus_group_node" , cls : "bi-list-item-none" , logic : { dynamic : ! 0 } , id : b . id , pId : b . pId , open : b . open , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py } ) , this . node . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = [ ] ; BI . count ( 0 , b . layer , function ( ) { c . push ( { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } ) } ) , c . push ( this . node ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( b . layer , 13 ) , items : [ c ] } ) } , doRedMark : function ( ) { this . node . doRedMark . apply ( this . node , arguments ) } , unRedMark : function ( ) { this . node . unRedMark . apply ( this . node , arguments ) } , doClick : function ( ) { BI . MultiLayerSingleTreeMidPlusGroupNode . superclass . doClick . apply ( this , arguments ) , this . node . setSelected ( this . isSelected ( ) ) } , setOpened : function ( a ) { BI . MultiLayerSingleTreeMidPlusGroupNode . superclass . setOpened . apply ( this , arguments ) , BI . isNotNull ( this . node ) && this . node . setOpened ( a ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_mid_plus_group_node" , BI . MultiLayerSingleTreeMidPlusGroupNode ) , BI . MultiLayerSingleTreeFirstTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multilayer-single-tree-first-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , layer : 0 , id : "" , pId : "" , height : 25 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . item = BI . createWidget ( { type : "bi.first_tree_leaf_item" , cls : "bi-list-item-none" , logic : { dynamic : ! 0 } , id : b . id , pId : b . pId , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py } ) , this . item . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = [ ] ; BI . count ( 0 , b . layer , function ( ) { c . push ( { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } ) } ) , c . push ( this . item ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( b . layer , 13 ) , items : [ c ] } ) } , doRedMark : function ( ) { this . item . doRedMark . apply ( this . item , arguments ) } , unRedMark : function ( ) { this . item . unRedMark . apply ( this . item , arguments ) } , doHighLight : function ( ) { this . item . doHighLight . apply ( this . item , arguments ) } , unHighLight : function ( ) { this . item . unHighLight . apply ( this . item , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . item . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . item . setSelected ( a ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_first_tree_leaf_item" , BI . MultiLayerSingleTreeFirstTreeLeafItem ) , BI . MultiLayerSingleTreeLastTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSingleTreeLastTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multilayer-single-tree-last-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , layer : 0 , id : "" , pId : "" , height : 25 } ) } , _init : funct
a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . SelectList . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectSearchLoader . EVENT _CHANGE , arguments ) } ) } , _createItems : function ( a ) { return BI . createItems ( a , { type : "bi.multi_select_item" , logic : { dynamic : ! 1 } , height : 25 , selected : this . isAllSelected ( ) } ) } , isAllSelected : function ( ) { return this . button _group . isAllSelected ( ) } , _filterValues : function ( a ) { var b = this . options , c = b . keywordGetter ( ) , d = BI . deepClone ( a . value ) || [ ] , e = BI . map ( d , function ( a , c ) { return { text : b . valueFormatter ( c ) || c , value : c } } ) ; if ( BI . isKey ( c ) ) { var f = BI . Func . getSearchResult ( e , c ) ; d = f . matched . concat ( f . find ) } return BI . map ( d , function ( b , c ) { return { text : c . text , title : c . text , value : c . value , selected : a . type === BI . Selection . All } } ) } , setValue : function ( a ) { this . storeValue = BI . deepClone ( a ) , this . button _group . setValue ( a ) } , getValue : function ( ) { return this . button _group . getValue ( ) } , getAllButtons : function ( ) { return this . button _group . getAllButtons ( ) } , empty : function ( ) { this . button _group . empty ( ) } , populate : function ( a ) { this . button _group . populate . apply ( this . button _group , arguments ) } , resetHeight : function ( a ) { this . button _group . resetHeight ( a ) } , resetWidth : function ( a ) { this . button _group . resetWidth ( a ) } } ) , BI . MultiSelectSearchLoader . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_search_loader" , BI . MultiSelectSearchLoader ) , BI . MultiSelectSearchPane = BI . inherit ( BI . Widget , { constants : { height : 25 , lgap : 10 , tgap : 5 } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectSearchPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-search-pane bi-card" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , keywordGetter : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectSearchPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . tooltipClick = BI . createWidget ( { type : "bi.label" , invisible : ! 0 , text : BI . i18nText ( "BI-Click_Blank_To_Select" ) , cls : "multi-select-toolbar" , height : this . constants . height } ) , this . loader = BI . createWidget ( { type : "bi.multi_select_search_loader" , keywordGetter : b . keywordGetter , valueFormatter : b . valueFormatter , itemsCreator : function ( c , d ) { b . itemsCreator . apply ( a , [ c , function ( c ) { d ( c ) , a . setKeyword ( b . keywordGetter ( ) ) } ] ) } , value : b . value } ) , this . loader . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . resizer = BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . tooltipClick , height : 0 } , { el : this . loader } ] } ) , this . tooltipClick . setVisible ( ! 1 ) } , setKeyword : function ( a ) { var b , c = this . loader . getAllButtons ( ) . length > 0 && ( b = this . loader . getAllButtons ( ) [ 0 ] ) && a === b . getValue ( ) ; c !== this . tooltipClick . isVisible ( ) && ( this . tooltipClick . setVisible ( c ) , this . resizer . attr ( "items" ) [ 0 ] . height = c ? this . constants . height : 0 , this . resizer . resize ( ) ) } , isAllSelected : function ( ) { return this . loader . isAllSelected ( ) } , hasMatched : function ( ) { return this . tooltipClick . isVisible ( ) } , setValue : function ( a ) { this . loader . setValue ( a ) } , getValue : function ( ) { return this . loader . getValue ( ) } , empty : function ( ) { this . loader . empty ( ) } , populate : function ( a ) { this . loader . populate . apply ( this . loader , arguments ) } } ) , BI . MultiSelectSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_search_pane" , BI . MultiSelectSearchPane ) , BI . MultiSelectCheckSelectedButton = BI . inherit ( BI . Single , { _const : { checkSelected : BI . i18nText ( "BI-Check_Selected" ) } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectCheckSelectedButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-check-selected-button bi-high-light" , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectCheckSelectedButton . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . numberCounter = BI . createWidget ( { type : "bi.text_button" , element : this , hgap : 4 , text : "0" , textAlign : "center" , textHeight : 15 } ) , this . numberCounter . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . numberCounter . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectCheckSelectedButton . EVENT _CHANGE , arguments ) } ) , this . numberCounter . element . hover ( function ( ) { a . numberCounter . setTag ( a . numberCounter . getText ( ) ) , a . numberCounter . setText ( a . _const . check
b . storeValue = { value : b . combo . getValue ( ) } , g === ! 0 && ( b . storeValue = { value : { } } ) , b . fireEvent ( BI . MultiTreeCombo . EVENT _CONFIRM ) ) , g = ! 1 , f = ! 1 } ) ; var j = BI . createWidget ( { type : "bi.trigger_icon_button" , width : c . height , height : c . height , cls : "multi-select-trigger-icon-button" } ) ; j . on ( BI . TriggerIconButton . EVENT _CHANGE , function ( ) { b . trigger . getCounter ( ) . hideView ( ) , b . combo . isViewVisible ( ) ? b . combo . hideView ( ) : b . combo . showView ( ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . combo , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : j , right : 0 , top : 0 , bottom : 0 } ] } ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) , this . combo . hideView ( ) } , setValue : function ( a ) { this . storeValue . value = a || { } , this . combo . setValue ( { value : a || { } } ) } , getValue : function ( ) { return this . storeValue . value } , populate : function ( ) { this . combo . populate . apply ( this . combo , arguments ) } } ) , BI . MultiTreeCombo . EVENT _CONFIRM = "MultiTreeCombo.EVENT_CONFIRM" , BI . shortcut ( "bi.multi_tree_combo" , BI . MultiTreeCombo ) , BI . MultiTreePopup = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreePopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-popup" , maxWidth : "auto" , minWidth : 100 , maxHeight : 400 , onLoaded : BI . emptyFn } ) } , _init : function ( ) { BI . MultiTreePopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . selectedValues = { } , this . tree = BI . createWidget ( { type : "bi.async_tree" , height : 400 , cls : "popup-view-tree" , itemsCreator : b . itemsCreator , onLoaded : b . onLoaded , value : b . value || { } } ) , this . popupView = BI . createWidget ( { type : "bi.multi_popup_view" , element : this , stopPropagation : ! 1 , maxWidth : b . maxWidth , minWidth : b . minWidth , maxHeight : b . maxHeight , buttons : [ BI . i18nText ( "BI-Basic_Clears" ) , BI . i18nText ( "BI-Basic_Sure" ) ] , el : this . tree } ) , this . popupView . on ( BI . MultiPopupView . EVENT _CLICK _TOOLBAR _BUTTON , function ( b ) { switch ( b ) { case 0 : a . fireEvent ( BI . MultiTreePopup . EVENT _CLICK _CLEAR ) ; break ; case 1 : a . fireEvent ( BI . MultiTreePopup . EVENT _CLICK _CONFIRM ) } } ) , this . tree . on ( BI . TreeView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiTreePopup . EVENT _CHANGE ) } ) , this . tree . on ( BI . TreeView . EVENT _AFTERINIT , function ( ) { a . fireEvent ( BI . MultiTreePopup . EVENT _AFTERINIT ) } ) } , getValue : function ( ) { return this . tree . getValue ( ) } , setValue : function ( a ) { a || ( a = { } ) , this . tree . setSelectedValue ( a . value ) } , populate : function ( a ) { this . tree . stroke ( a ) } , hasChecked : function ( ) { return this . tree . hasChecked ( ) } , resetHeight : function ( a ) { this . popupView . resetHeight ( a ) } , resetWidth : function ( a ) { this . popupView . resetWidth ( a ) } } ) , BI . MultiTreePopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiTreePopup . EVENT _CLICK _CONFIRM = "EVENT_CLICK_CONFIRM" , BI . MultiTreePopup . EVENT _CLICK _CLEAR = "EVENT_CLICK_CLEAR" , BI . MultiTreePopup . EVENT _AFTERINIT = "EVENT_AFTERINIT" , BI . shortcut ( "bi.multi_tree_popup_view" , BI . MultiTreePopup ) , BI . MultiTreeSearchPane = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeSearchPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-search-pane bi-card" , itemsCreator : BI . emptyFn , keywordGetter : BI . emptyFn } ) } , _init : function ( ) { BI . MultiTreeSearchPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . partTree = BI . createWidget ( { type : "bi.part_tree" , element : this , tipText : BI . i18nText ( "BI-No_Select" ) , itemsCreator : function ( a , c ) { a . keyword = b . keywordGetter ( ) , b . itemsCreator ( a , c ) } , value : b . value } ) , this . partTree . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . partTree . on ( BI . TreeView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiTreeSearchPane . EVENT _CHANGE ) } ) } , hasChecked : function ( ) { return this . partTree . hasChecked ( ) } , setValue : function ( a ) { this . setSelectedValue ( a . value ) } , setSelectedValue : function ( a ) { a || ( a = { } ) , this . partTree . setSelectedValue ( a ) } , getValue : function ( ) { return this . partTree . getValue ( ) } , empty : function ( ) { this . partTree . empty ( ) } , populate : function ( a ) { this . partTree . stroke . apply ( this . partTree , arguments ) } } ) , BI . MultiTreeSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiTreeSearchPane . EVENT _CLICK _CONFIRM = "EVENT_CLICK_CONFIRM" , BI . MultiTreeSearchPane . EVENT _CLICK _CLEAR = "EVENT_CLICK_CLEAR" , BI . shortcut ( "bi.multi_tree_search_pane" , BI . MultiTreeSearchPane ) , BI . MultiTreeCheckSelectedButton = BI . inherit ( BI . S
b === BI . Events . CLICK && a . fireEvent ( BI . MonthPopup . EVENT _CHANGE ) } ) } , getValue : function ( ) { return this . quarter . getValue ( ) [ 0 ] } , setValue : function ( a ) { this . quarter . setValue ( [ a ] ) } } ) , BI . QuarterPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.quarter_popup" , BI . QuarterPopup ) , BI . QuarterTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 , textWidth : 40 , errorText : BI . i18nText ( "BI-Quarter_Trigger_Error_Text" ) } , _defaultConfig : function ( ) { return BI . extend ( BI . QuarterTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-quarter-trigger bi-border" , height : 24 } ) } , _init : function ( ) { BI . QuarterTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . editor = BI . createWidget ( { type : "bi.sign_editor" , height : b . height , validationChecker : function ( a ) { return "" === a || BI . isPositiveInteger ( a ) && a >= 1 && a <= 4 } , quitChecker : function ( a ) { return ! 1 } , hgap : c . hgap , vgap : c . vgap , allowBlank : ! 0 , errorText : c . errorText } ) , this . editor . on ( BI . SignEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . QuarterTrigger . EVENT _FOCUS ) } ) , this . editor . on ( BI . SignEditor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . QuarterTrigger . EVENT _CHANGE ) } ) , this . editor . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { var b = a . editor . getValue ( ) ; BI . isNotNull ( b ) && ( a . editor . setValue ( b ) , a . editor . setTitle ( b ) ) , a . fireEvent ( BI . QuarterTrigger . EVENT _CONFIRM ) } ) , this . editor . on ( BI . SignEditor . EVENT _SPACE , function ( ) { a . editor . isValid ( ) && a . editor . blur ( ) } ) , this . editor . on ( BI . SignEditor . EVENT _START , function ( ) { a . fireEvent ( BI . QuarterTrigger . EVENT _START ) } ) , this . editor . on ( BI . SignEditor . EVENT _STOP , function ( ) { a . fireEvent ( BI . QuarterTrigger . EVENT _STOP ) } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : this . editor } , { el : { type : "bi.text_button" , baseCls : "bi-trigger-quarter-text" , text : BI . i18nText ( "BI-Multi_Date_Quarter" ) , width : c . textWidth } , width : c . textWidth } , { el : { type : "bi.trigger_icon_button" , width : b . height } , width : b . height } ] } ) , this . setValue ( b . value ) } , setValue : function ( a ) { a = a || "" , this . editor . setState ( a ) , this . editor . setValue ( a ) , this . editor . setTitle ( a ) } , getKey : function ( ) { return this . editor . getValue ( ) } } ) , BI . QuarterTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . QuarterTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . QuarterTrigger . EVENT _START = "EVENT_START" , BI . QuarterTrigger . EVENT _STOP = "EVENT_STOP" , BI . QuarterTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.quarter_trigger" , BI . QuarterTrigger ) , BI . ResponisveTable = BI . inherit ( BI . Widget , { _const : { perColumnSize : 100 } , _defaultConfig : function ( ) { return BI . extend ( BI . ResponisveTable . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-responsive-table" , isNeedFreeze : ! 1 , freezeCols : [ ] , logic : { dynamic : ! 1 } , isNeedMerge : ! 1 , mergeCols : [ ] , mergeRule : function ( a , b ) { return BI . isEqual ( a , b ) } , columnSize : [ ] , headerRowSize : 25 , footerRowSize : 25 , rowSize : 25 , regionColumnSize : ! 1 , header : [ ] , footer : ! 1 , items : [ ] , crossHeader : [ ] , crossItems : [ ] } ) } , _init : function ( ) { BI . ResponisveTable . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . table = BI . createWidget ( { type : "bi.table_view" , element : this , logic : b . logic , isNeedFreeze : b . isNeedFreeze , freezeCols : b . freezeCols , isNeedMerge : b . isNeedMerge , mergeCols : b . mergeCols , mergeRule : b . mergeRule , columnSize : b . columnSize , headerRowSize : b . headerRowSize , footerRowSize : b . footerRowSize , rowSize : b . rowSize , regionColumnSize : b . regionColumnSize , header : b . header , footer : b . footer , items : b . items , crossHeader : b . crossHeader , crossItems : b . crossItems } ) , this . table . on ( BI . Table . EVENT _TABLE _AFTER _INIT , function ( ) { a . _initRegionSize ( ) , a . table . resize ( ) , a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _INIT , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _RESIZE , function ( ) { a . _resizeRegion ( ) , a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _SCROLL , function ( ) { a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _BEFORE _REGION _RESIZE , function ( ) { a . fireEvent ( BI . Table . EVENT _TABLE _BEFORE _REGION _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _REGION _RESIZE , function ( ) { b . isNeedResize === ! 0 && a . _isAdaptiveColumn ( ) && a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _REGION _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _AFT
return this . loader . getValue ( ) } , empty : function ( ) { this . loader . empty ( ) } , populate : function ( a ) { this . loader . populate . apply ( this . loader , arguments ) } } ) , BI . SingleSelectSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_select_search_pane" , BI . SingleSelectSearchPane ) , BI . SingleSelectCombo = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-select-combo" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , height : 28 } ) } , _init : function ( ) { BI . SingleSelectCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = function ( ) { BI . isKey ( a . _startValue ) && ( a . storeValue = a . _startValue ) , a . trigger . getSearcher ( ) . setState ( a . storeValue ) } ; this . storeValue = "" , this . requesting = ! 1 , this . trigger = BI . createWidget ( { type : "bi.single_select_trigger" , height : b . height , masker : { offset : { left : 1 , top : 1 , right : 2 , bottom : 33 } } , valueFormatter : b . valueFormatter , itemsCreator : function ( c , d ) { b . itemsCreator ( c , function ( b ) { 1 === c . times && BI . isNotNull ( c . keywords ) && a . trigger . setValue ( a . getValue ( ) ) , d . apply ( a , arguments ) } ) } } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _START , function ( ) { a . _setStartValue ( "" ) , this . getSearcher ( ) . setValue ( a . storeValue ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _STOP , function ( ) { a . _setStartValue ( "" ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _PAUSE , function ( ) { if ( this . getSearcher ( ) . hasMatched ( ) ) { var b = this . getSearcher ( ) . getKeyword ( ) ; a . _join ( { type : BI . Selection . Multi , value : [ b ] } , function ( ) { a . combo . setValue ( a . storeValue ) , a . _setStartValue ( b ) , c ( ) , a . populate ( ) , a . _setStartValue ( "" ) } ) } } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _SEARCHING , function ( b ) { var d = BI . last ( b ) ; b = BI . initial ( b || [ ] ) , b . length > 0 && a . _joinKeywords ( b , function ( ) { BI . isEndWithBlank ( d ) ? ( a . combo . setValue ( a . storeValue ) , c ( ) , a . combo . populate ( ) , a . _setStartValue ( "" ) ) : ( a . combo . setValue ( a . storeValue ) , c ( ) ) } ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _CHANGE , function ( b , d ) { a . storeValue = this . getValue ( ) , c ( ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _COUNTER _CLICK , function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , toggle : ! 1 , el : this . trigger , adjustLength : 1 , popup : { type : "bi.single_select_popup_view" , ref : function ( ) { a . popup = this , a . trigger . setAdapter ( this ) } , listeners : [ { eventName : BI . SingleSelectPopupView . EVENT _CHANGE , action : function ( ) { a . storeValue = this . getValue ( ) , a . _adjust ( function ( ) { c ( ) } ) } } , { eventName : BI . SingleSelectPopupView . EVENT _CLICK _CONFIRM , action : function ( ) { a . _defaultState ( ) } } , { eventName : BI . SingleSelectPopupView . EVENT _CLICK _CLEAR , action : function ( ) { a . setValue ( ) , a . _defaultState ( ) } } ] , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , onLoaded : function ( ) { BI . nextTick ( function ( ) { a . combo . adjustWidth ( ) , a . combo . adjustHeight ( ) , a . trigger . getSearcher ( ) . adjustView ( ) } ) } } , hideChecker : function ( a ) { return 0 === d . element . find ( a . target ) . length } } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { this . setValue ( a . storeValue ) , BI . nextTick ( function ( ) { a . populate ( ) } ) } ) , this . wants2Quit = ! 1 , this . combo . on ( BI . Combo . EVENT _AFTER _HIDEVIEW , function ( ) { a . trigger . stopEditing ( ) , a . requesting === ! 0 ? a . wants2Quit = ! 0 : a . fireEvent ( BI . SingleSelectCombo . EVENT _CONFIRM ) } ) ; var d = BI . createWidget ( { type : "bi.trigger_icon_button" , width : b . height , height : b . height , cls : "single-select-trigger-icon-button" } ) ; d . on ( BI . TriggerIconButton . EVENT _CHANGE , function ( ) { a . combo . isViewVisible ( ) ? a . combo . hideView ( ) : a . combo . showView ( ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . combo , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : d , right : 0 , top : 0 , bottom : 0 } ] } ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) , this . combo . hideView ( ) } , _assertValue : function ( a ) { a || ( a = "" ) } , _makeMap : function ( a ) { return BI . makeObject ( a || [ ] ) } , _joinKeywords : function ( a , b ) { function c ( c ) { var e = d . _makeMap ( c ) ; BI . each ( a , function ( a , b ) { BI . isNotNull ( e [ b ] ) && d . storeValue . value . remove ( b ) } ) , d . _adjust ( b ) } var d = this , e = this . options ; this . _assertValue ( this . storeValue ) , this . requesting = ! 0 , e . itemsCreator ( { type : BI . SingleSelectCombo . REQ _GET _ALL _DATA , keywords : a } , function ( a ) { var b = BI . pluck ( a . items , "value" ) ; c ( b ) } ) } , _joinAll : function ( a , b ) { var c = this , d
this . hasMatched ( ) , a . fireEvent ( BI . SingleSelectSearcher . EVENT _PAUSE ) } ) , this . searcher . on ( BI . Searcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . SingleSelectSearcher . EVENT _STOP ) } ) , this . searcher . on ( BI . Searcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SingleSelectSearcher . EVENT _CHANGE , arguments ) } ) , this . searcher . on ( BI . Searcher . EVENT _SEARCHING , function ( ) { var b = this . getKeywords ( ) ; a . fireEvent ( BI . SingleSelectSearcher . EVENT _SEARCHING , b ) } ) } , adjustView : function ( ) { this . searcher . adjustView ( ) } , isSearching : function ( ) { return this . searcher . isSearching ( ) } , stopSearch : function ( ) { this . searcher . stopSearch ( ) } , getKeyword : function ( ) { return this . editor . getValue ( ) } , hasMatched : function ( ) { return this . searcher . hasMatched ( ) } , hasChecked : function ( ) { return this . searcher . getView ( ) && this . searcher . getView ( ) . hasChecked ( ) } , setAdapter : function ( a ) { this . searcher . setAdapter ( a ) } , setState : function ( a ) { var b = this . options ; a || ( a = "" ) , "" === a ? this . editor . setState ( BI . Selection . None ) : this . editor . setState ( b . valueFormatter ( a + "" ) || a + "" ) } , setValue : function ( a ) { this . setState ( a ) , this . searcher . setValue ( a ) } , getKey : function ( ) { return this . editor . getValue ( ) } , getValue : function ( ) { return this . searcher . getValue ( ) } , populate : function ( a ) { this . searcher . populate . apply ( this . searcher , arguments ) } } ) , BI . SingleSelectSearcher . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . SingleSelectSearcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . SingleSelectSearcher . EVENT _START = "EVENT_START" , BI . SingleSelectSearcher . EVENT _STOP = "EVENT_STOP" , BI . SingleSelectSearcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . SingleSelectSearcher . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . shortcut ( "bi.single_select_add_searcher" , BI . SingleSelectSearcher ) , BI . SignTextEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . SignTextEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-sign-initial-editor" , hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 0 , watermark : "" , errorText : "" , text : "" , height : 24 } ) } , _init : function ( ) { BI . SignTextEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.editor" , height : b . height , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap , value : b . value , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank , watermark : b . watermark , errorText : b . errorText } ) , this . text = BI . createWidget ( { type : "bi.text_button" , cls : "sign-editor-text" , title : b . title , warningTitle : b . warningTitle , tipType : b . tipType , textAlign : "left" , height : b . height , hgap : 4 , handler : function ( ) { a . _showInput ( ) , a . editor . focus ( ) , a . editor . selectAll ( ) } } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { BI . nextTick ( function ( ) { a . fireEvent ( BI . SignTextEditor . EVENT _CLICK _LABEL ) } ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . text , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . _showHint ( ) , a . _checkText ( ) , a . fireEvent ( BI . SignTextEditor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . _checkText ( ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ this . editor ] } ) , this . _showHint ( ) , a . _checkText ( ) } , _checkText : function ( ) { var a = this . options ; BI . nextTick ( BI . bind ( function ( ) { if ( "" === this . editor . getValue ( ) ) this . text . setValue ( a . watermark || "" ) , this . text . element . addClass ( "bi-water-mark" ) ; else { var b = this . editor . getValue ( ) ; b = BI . isEmpty ( b ) || b == a . text ? a . text : b + a . text , this . text . setValue ( b ) , this . text . element . removeClass ( "bi-water-mark" ) } } , this ) ) } , _showInput : function ( ) { this . editor . visible ( ) , this . text . invisible ( ) } , _showHint : function ( ) { this . editor . invisible ( ) , this . text . visible ( ) } , setTitle : function ( a ) { this . text . setTitle ( a ) } , setWarningTitle : function ( a ) { this . text . setWarningTitle ( a ) } , focus : function ( ) { this . _showInput ( ) , this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) , this . _showHint ( ) , this . _checkText ( ) } , doRedMark : function ( ) { "" === this . editor . getValue ( ) && BI . isKey ( this . options . watermark ) || this . text . doRedMark . apply ( this . text ,
type : "bi.navigation" , element : this , single : ! 0 , logic : { dynamic : ! 0 } , tab : { cls : "year-popup-navigation bi-high-light bi-border-top" , height : 25 , items : [ c , d ] } , cardCreator : BI . bind ( this . _createYearCalendar , this ) , afterCardShow : function ( ) { this . setValue ( a . selectedYear ) ; var b = this . getSelectedCard ( ) ; c . setEnable ( ! b . isFrontYear ( ) ) , d . setEnable ( ! b . isFinalYear ( ) ) } } ) , this . navigation . on ( BI . Navigation . EVENT _CHANGE , function ( ) { a . selectedYear = this . getValue ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . fireEvent ( BI . YearPopup . EVENT _CHANGE , a . selectedYear ) } ) , BI . isKey ( b . value ) && this . setValue ( b . value ) } , getValue : function ( ) { return this . selectedYear } , setValue : function ( a ) { var b = this . options ; BI . checkDateVoid ( a , 1 , 1 , b . min , b . max ) [ 0 ] ? ( a = BI . getDate ( ) . getFullYear ( ) , this . selectedYear = "" , this . navigation . setSelect ( BI . YearCalendar . getPageByYear ( a ) ) , this . navigation . setValue ( "" ) ) : ( this . selectedYear = a , this . navigation . setSelect ( BI . YearCalendar . getPageByYear ( a ) ) , this . navigation . setValue ( a ) ) } } ) , BI . YearPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.year_popup" , BI . YearPopup ) , BI . YearTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 , errorText : BI . i18nText ( "BI-Please_Input_Positive_Integer" ) , errorTextInvalid : BI . i18nText ( "BI-Year_Trigger_Invalid_Text" ) } , _defaultConfig : function ( ) { return BI . extend ( BI . YearTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-year-trigger bi-border" , min : "1900-01-01" , max : "2099-12-31" , height : 24 } ) } , _init : function ( ) { BI . YearTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . editor = BI . createWidget ( { type : "bi.sign_editor" , height : b . height , validationChecker : function ( d ) { return a . editor . setErrorText ( BI . isPositiveInteger ( d ) ? c . errorTextInvalid : c . errorText ) , "" === d || BI . isPositiveInteger ( d ) && ! BI . checkDateVoid ( d , 1 , 1 , b . min , b . max ) [ 0 ] } , quitChecker : function ( a ) { return ! 1 } , hgap : c . hgap , vgap : c . vgap , allowBlank : ! 0 , errorText : c . errorText , value : b . value } ) , this . editor . on ( BI . SignEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . YearTrigger . EVENT _FOCUS ) } ) , this . editor . on ( BI . SignEditor . EVENT _STOP , function ( ) { a . fireEvent ( BI . YearTrigger . EVENT _STOP ) } ) , this . editor . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { var b = a . editor . getValue ( ) ; BI . isNotNull ( b ) && ( a . editor . setValue ( b ) , a . editor . setTitle ( b ) ) , a . fireEvent ( BI . YearTrigger . EVENT _CONFIRM ) } ) , this . editor . on ( BI . SignEditor . EVENT _SPACE , function ( ) { a . editor . isValid ( ) && a . editor . blur ( ) } ) , this . editor . on ( BI . SignEditor . EVENT _START , function ( ) { a . fireEvent ( BI . YearTrigger . EVENT _START ) } ) , this . editor . on ( BI . SignEditor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . YearTrigger . EVENT _ERROR ) } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : this . editor } , { el : { type : "bi.text_button" , baseCls : "bi-trigger-year-text" , text : BI . i18nText ( "BI-Multi_Date_Year" ) , width : b . height } , width : b . height } , { el : { type : "bi.trigger_icon_button" , width : b . height } , width : b . height } ] } ) } , setValue : function ( a ) { this . editor . setState ( a ) , this . editor . setValue ( a ) , this . editor . setTitle ( a ) } , getKey : function ( ) { return 0 | this . editor . getValue ( ) } } ) , BI . YearTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . YearTrigger . EVENT _ERROR = "EVENT_ERROR" , BI . YearTrigger . EVENT _START = "EVENT_START" , BI . YearTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . YearTrigger . EVENT _STOP = "EVENT_STOP" , BI . shortcut ( "bi.year_trigger" , BI . YearTrigger ) , BI . YearMonthCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . YearMonthCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-year-month-combo" , yearBehaviors : { } , monthBehaviors : { } , height : 25 } ) } , _init : function ( ) { BI . YearMonthCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . value = b . value || { } , this . year = BI . createWidget ( { type : "bi.year_combo" , behaviors : b . yearBehaviors , value : b . value . year } ) , this . month = BI . createWidget ( { type : "bi.month_combo" , behaviors : b . monthBehaviors , value : b . value . month } ) , this . year . on ( BI . YearCombo . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . YearMonthCombo . EVENT _CONFIRM ) } ) , this . year . on ( BI . YearCombo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . YearMonthCombo . EVENT _BEFORE _POPUPVIEW ) } ) , this . month . on ( BI . MonthCombo . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . YearMonthCombo . EVENT _CONFIRM ) } ) , this . month . on ( BI . MonthCombo .
"BI-Selected_Data" : "已选数据:" , "BI-Multi_Date_Quarter" : "季度" , "BI-Check_Selected" : "查看已选" , "BI-Basic_Search" : "搜索" , "BI-Basic_May" : "五月" , "BI-Continue_Select" : "继续选择" , "BI-Please_Input_Positive_Integer" : "请输入正整数" , "BI-Upload_File_Type_Error" : "文件类型不支持" , "BI-Basic_Friday" : "星期五" , "BI-Down_Page" : "向下翻页" , "BI-Basic_Monday" : "星期一" , "BI-Left_Page" : "向左翻页" , "BI-Transparent_Color" : "透明" , "BI-Basic_Simple_Monday" : "一" , "BI-Multi_Date_Year_End" : "年末" , "BI-Time_Interval_Error_Text" : "请保证前面时间小于/等于后面的时间" , "BI-Basic_Time" : "时间" , "BI-Basic_OK" : "确定" , "BI-Basic_Sure" : "确定" , "BI-Basic_Simple_Thursday" : "四" , "BI-Multi_Date_Year_Prev" : "年前" , "BI-Tiao_Data" : "条数据" , "BI-Basic_Italic" : "斜体" , "BI-Basic_Union_Relation" : "联合关联" } ;