/*! fineui 2019-03-12 19:03:14 */
function _classCallCheck ( a , b ) { if ( ! ( a instanceof b ) ) throw new TypeError ( "Cannot call a class as a function" ) } var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , null == _global . BI && ( _global . BI = { prepares : [ ] } ) , null == _global . BI . prepares && ( _global . BI . prepares = [ ] ) , function ( ) { function a ( a , b , c ) { switch ( c . length ) { case 0 : return a . call ( b ) ; case 1 : return a . call ( b , c [ 0 ] ) ; case 2 : return a . call ( b , c [ 0 ] , c [ 1 ] ) ; case 3 : return a . call ( b , c [ 0 ] , c [ 1 ] , c [ 2 ] ) } return a . apply ( b , c ) } function b ( a , b , c , d ) { for ( var e = - 1 , f = null == a ? 0 : a . length ; ++ e < f ; ) { var g = a [ e ] ; b ( d , g , c ( g ) , a ) } return d } function c ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d && b ( a [ c ] , c , a ) !== ! 1 ; ) ; return a } function d ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( ! b ( a [ c ] , c , a ) ) return ! 1 ; return ! 0 } function e ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; b ( g , c , a ) && ( f [ e ++ ] = g ) } return f } function f ( a , b ) { var c = null == a ? 0 : a . length ; return ! ! c && o ( a , b , 0 ) > - 1 } function g ( a , b , c ) { for ( var d = - 1 , e = null == a ? 0 : a . length ; ++ d < e ; ) if ( c ( b , a [ d ] ) ) return ! 0 ; return ! 1 } function h ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = Array ( d ) ; ++ c < d ; ) e [ c ] = b ( a [ c ] , c , a ) ; return e } function i ( a , b ) { for ( var c = - 1 , d = b . length , e = a . length ; ++ c < d ; ) a [ e + c ] = b [ c ] ; return a } function j ( a , b , c , d ) { var e = - 1 , f = null == a ? 0 : a . length ; for ( d && f && ( c = a [ ++ e ] ) ; ++ e < f ; ) c = b ( c , a [ e ] , e , a ) ; return c } function k ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( b ( a [ c ] , c , a ) ) return ! 0 ; return ! 1 } function l ( a ) { return a . split ( "" ) } function m ( a , b , c ) { var d ; return c ( a , function ( a , c , e ) { if ( b ( a , c , e ) ) return d = c , ! 1 } ) , d } function n ( a , b , c , d ) { for ( var e = a . length , f = c + ( d ? 1 : - 1 ) ; d ? f -- : ++ f < e ; ) if ( b ( a [ f ] , f , a ) ) return f ; return - 1 } function o ( a , b , c ) { return b === b ? J ( a , b , c ) : n ( a , p , c ) } function p ( a ) { return a !== a } function q ( a ) { return function ( b ) { return null == b ? Ie : b [ a ] } } function r ( a ) { return function ( b ) { return null == a ? Ie : a [ b ] } } function s ( a , b , c , d , e ) { return e ( a , function ( a , e , f ) { c = d ? ( d = ! 1 , a ) : b ( c , a , e , f ) } ) , c } function t ( a , b ) { var c = a . length ; for ( a . sort ( b ) ; c -- ; ) a [ c ] = a [ c ] . value ; return a } function u ( a , b ) { for ( var c = - 1 , d = Array ( a ) ; ++ c < a ; ) d [ c ] = b ( c ) ; return d } function v ( a ) { return function ( b ) { return a ( b ) } } function w ( a , b ) { return h ( b , function ( b ) { return a [ b ] } ) } function x ( a , b ) { return a . has ( b ) } function y ( a , b ) { for ( var c = - 1 , d = a . length ; ++ c < d && o ( b , a [ c ] , 0 ) > - 1 ; ) ; return c } function z ( a , b ) { for ( var c = a . length ; c -- && o ( b , a [ c ] , 0 ) > - 1 ; ) ; return c } function A ( a , b ) { for ( var c = a . length , d = 0 ; c -- ; ) a [ c ] === b && ++ d ; return d } function B ( a , b ) { return null == a ? Ie : a [ b ] } function C ( a ) { return Cg . test ( a ) } function D ( a ) { for ( var b , c = [ ] ; ! ( b = a . next ( ) ) . done ; ) c . push ( b . value ) ; return c } function E ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a , d ) { c [ ++ b ] = [ d , a ] } ) , c } function F ( a , b ) { return function ( c ) { return a ( b ( c ) ) } } function G ( a , b ) { for ( var c = - 1 , d = a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; g !== b && g !== Oe || ( a [ c ] = Oe , f [ e ++ ] = c ) } return f } function H ( a , b ) { return "__proto__" == b ? Ie : a [ b ] } function I ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a ) { c [ ++ b ] = a } ) , c } function J ( a , b , c ) { for ( var d = c - 1 , e = a . length ; ++ d < e ; ) if ( a [ d ] === b ) return d ; return - 1 } function K ( a ) { return C ( a ) ? M ( a ) : Vg ( a ) } function L ( a ) { return C ( a ) ? N ( a ) : l ( a ) } function M ( a ) { for ( var b = Bg . lastIndex = 0 ; Bg . test ( a ) ; ) ++ b ; return b } function N ( a ) { return a . match ( Bg ) || [ ] } function O ( a ) { if ( Td ( a ) && ! si ( a ) && ! ( a instanceof R ) ) { if ( a instanceof Q ) return a ; if ( ah . call ( a , "__wrapped__" ) ) return Xc ( a ) } return new Q ( a ) } function P ( ) { } function Q ( a , b ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _chain _ _ = ! ! b , this . _ _index _ _ = 0 , this . _ _values _ _ = Ie } function R ( a ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _dir _ _ = 1 , this . _ _filtered _ _ = ! 1 , this . _ _iteratees _ _ = [ ] , this . _ _takeCount _ _ = mf , this . _ _views _ _ = [ ] } function S ( ) { var a = new R ( this . _ _wrapped _ _ ) ; return a . _ _actions _ _ = Qb ( this . _ _actions _ _ ) , a . _ _dir _ _ = this . _ _dir _ _ , a . _ _filtered _ _ = this . _ _filtered _ _ , a . _ _iteratees _ _ = Qb ( this . _ _iteratees _ _ ) , a . _ _takeCount _ _ = this . _ _takeCount _ _ , a . _ _views _ _ = Qb ( this . _ _views _ _ ) , a } function T ( ) { if ( this . _ _filtered _ _ ) { var a = new R ( this ) ; a . _ _dir _ _ = - 1 , a . _ _filtered _ _ = ! 0 } else a = this . clone ( ) , a . _ _dir _ _ *= - 1 ; return a } function U ( ) { var a = this . _ _wrapped _ _ . value ( ) , b = this . _ _dir _ _ , c = si ( a ) , d = b < 0 , e = c ? a . length : 0 , f = uc ( 0 , e , this . _ _views _ _ ) , g = f . start , h = f . end , i = h - g , j = d ? h : g - 1 , k = this . _ _ite
var d = null == a ? Ie : Oa ( a , b ) ; return d === Ie ? c : d } function je ( a , b ) { return null != a && wc ( a , b , Sa ) } function ke ( a , b ) { return null != a && wc ( a , b , Ta ) } function le ( a ) { return Kd ( a ) ? ua ( a ) : gb ( a ) } function me ( a ) { return Kd ( a ) ? ua ( a , ! 0 ) : hb ( a ) } function ne ( a , b ) { return oe ( a , Dd ( fb ( b ) ) ) } function oe ( a , b ) { if ( null == a ) return { } ; var c = h ( nc ( a ) , function ( a ) { return [ a ] } ) ; return b = fb ( b ) , qb ( a , c , function ( a , c ) { return b ( a , c [ 0 ] ) } ) } function pe ( a , b , c ) { b = Eb ( b , a ) ; var d = - 1 , e = b . length ; for ( e || ( e = 1 , a = Ie ) ; ++ d < e ; ) { var f = null == a ? Ie : a [ Uc ( b [ d ] ) ] ; f === Ie && ( d = e , f = c ) , a = Qd ( f ) ? f . call ( a ) : f } return a } function qe ( a ) { return null == a ? [ ] : w ( a , le ( a ) ) } function re ( a , b , c ) { return c === Ie && ( c = b , b = Ie ) , c !== Ie && ( c = ce ( c ) , c = c === c ? c : 0 ) , b !== Ie && ( b = ce ( b ) , b = b === b ? b : 0 ) , Da ( ce ( a ) , b , c ) } function se ( a , b , c ) { if ( c && "boolean" != typeof c && Dc ( a , b , c ) && ( b = c = Ie ) , c === Ie && ( "boolean" == typeof b ? ( c = b , b = Ie ) : "boolean" == typeof a && ( c = a , a = Ie ) ) , a === Ie && b === Ie ? ( a = 0 , b = 1 ) : ( a = ae ( a ) , b === Ie ? ( b = a , a = 0 ) : b = ae ( b ) ) , a > b ) { var d = a ; a = b , b = d } if ( c || a % 1 || b % 1 ) { var e = Ch ( ) ; return Ah ( a + e * ( b - a + Gg ( "1e-" + ( ( e + "" ) . length - 1 ) ) ) , b ) } return sb ( a , b ) } function te ( a ) { return a = ee ( a ) , a && Uf . test ( a ) ? a . replace ( Tf , Wg ) : a } function ue ( a , b , c ) { if ( a = ee ( a ) , a && ( c || b === Ie ) ) return a . replace ( Zf , "" ) ; if ( ! a || ! ( b = yb ( b ) ) ) return a ; var d = L ( a ) , e = L ( b ) , f = y ( d , e ) , g = z ( d , e ) + 1 ; return Fb ( d , f , g ) . join ( "" ) } function ve ( a ) { return function ( ) { return a } } function we ( a ) { return a } function xe ( a ) { return fb ( "function" == typeof a ? a : Ea ( a , Pe ) ) } function ye ( a ) { return kb ( Ea ( a , Pe ) ) } function ze ( a , b , d ) { var e = le ( b ) , f = Na ( b , e ) ; null != d || Sd ( b ) && ( f . length || ! e . length ) || ( d = b , b = a , a = this , f = Na ( b , le ( b ) ) ) ; var g = ! ( Sd ( d ) && "chain" in d && ! d . chain ) , h = Qd ( a ) ; return c ( f , function ( c ) { var d = b [ c ] ; a [ c ] = d , h && ( a . prototype [ c ] = function ( ) { var b = this . _ _chain _ _ ; if ( g || b ) { var c = a ( this . _ _wrapped _ _ ) , e = c . _ _actions _ _ = Qb ( this . _ _actions _ _ ) ; return e . push ( { func : d , args : arguments , thisArg : a } ) , c . _ _chain _ _ = b , c } return d . apply ( a , i ( [ this . value ( ) ] , arguments ) ) } ) } ) , a } function Ae ( ) { return Kg . _ === this && ( Kg . _ = fh ) , this } function Be ( ) { } function Ce ( a ) { return Ec ( a ) ? q ( Uc ( a ) ) : rb ( a ) } function De ( ) { return [ ] } function Ee ( ) { return ! 1 } function Fe ( a ) { var b = ++ bh ; return ee ( a ) + b } function Ge ( a ) { return a && a . length ? Ia ( a , we , Ra ) : Ie } function He ( a ) { return a && a . length ? Ia ( a , we , ib ) : Ie } var Ie , Je = "4.17.5" , Ke = 200 , Le = "Expected a function" , Me = "__lodash_hash_undefined__" , Ne = 500 , Oe = "__lodash_placeholder__" , Pe = 1 , Qe = 2 , Re = 4 , Se = 1 , Te = 2 , Ue = 1 , Ve = 2 , We = 4 , Xe = 8 , Ye = 16 , Ze = 32 , $e = 64 , _e = 128 , af = 256 , bf = 512 , cf = 800 , df = 16 , ef = 1 , ff = 2 , gf = 3 , hf = 1 / 0 , jf = 9007199254740991 , kf = 1.7976931348623157 e308 , lf = NaN , mf = 4294967295 , nf = [ [ "ary" , _e ] , [ "bind" , Ue ] , [ "bindKey" , Ve ] , [ "curry" , Xe ] , [ "curryRight" , Ye ] , [ "flip" , bf ] , [ "partial" , Ze ] , [ "partialRight" , $e ] , [ "rearg" , af ] ] , of = "[object Arguments]" , pf = "[object Array]" , qf = "[object AsyncFunction]" , rf = "[object Boolean]" , sf = "[object Date]" , tf = "[object Error]" , uf = "[object Function]" , vf = "[object GeneratorFunction]" , wf = "[object Map]" , xf = "[object Number]" , yf = "[object Null]" , zf = "[object Object]" , Af = "[object Promise]" , Bf = "[object Proxy]" , Cf = "[object RegExp]" , Df = "[object Set]" , Ef = "[object String]" , Ff = "[object Symbol]" , Gf = "[object Undefined]" , Hf = "[object WeakMap]" , If = "[object ArrayBuffer]" , Jf = "[object DataView]" , Kf = "[object Float32Array]" , Lf = "[object Float64Array]" , Mf = "[object Int8Array]" , Nf = "[object Int16Array]" , Of = "[object Int32Array]" , Pf = "[object Uint8Array]" , Qf = "[object Uint8ClampedArray]" , Rf = "[object Uint16Array]" , Sf = "[object Uint32Array]" , Tf = /[&<>"']/g , Uf = RegExp ( Tf . source ) , Vf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/ , Wf = /^\w*$/ , Xf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , Yf = /[\\^$.*+?()[\]{}|]/g , Zf = /^\s+|\s+$/g , $f = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , _f = /\{\n\/\* \[wrapped with (.+)\] \*/ , ag = /,? & / , bg = /\\(\\)?/g , cg = /\w*$/ , dg = /^[-+]0x[0-9a-f]+$/i , eg = /^0b[01]+$/i , fg = /^\[object .+?Constructor\]$/ , gg = /^0o[0-7]+$/i , hg = /^(?:0|[1-9]\d*)$/ , ig = "\\ud800-\\udfff" , jg = "\\u0300-\\u036f" , kg = "\\ufe20-\\ufe2f" , lg = "\\u20d0-\\u20ff" , mg = jg + kg + lg , ng = "\\ufe0e\\ufe0f" , og = "[" + ig + "]" , pg = "[" + mg + "]" , qg = "\\ud83c[\\udffb-\\udfff]" , rg = "(?:" + pg + "|" + qg + ")" , sg = "[^" + ig + "]" , tg = "(?:\\ud83c[\\udde6-\\uddff]){2}" , ug = "[\\ud800-\\udbff][\\udc00-\\udfff]" , vg = "\\u200d" , wg = rg + "?" , xg = "[" + ng + "]?" , yg = "(?:" +
this . un ( a , c ) } ; this . on ( a , c ) } , un : function ( a , b ) { if ( a = a . toLowerCase ( ) , null == b ) delete this . _getEvents ( ) [ a ] ; else { var c = this . _getEvents ( ) [ a ] ; if ( _ . isArray ( c ) ) { var d = [ ] ; _ . each ( c , function ( a ) { a != b && d . push ( a ) } ) , this . _getEvents ( ) [ a ] = d } } } , purgeListeners : function ( ) { this . events = [ ] } , fireEvent : function ( ) { var a = arguments [ 0 ] . toLowerCase ( ) , b = this . _getEvents ( ) [ a ] ; if ( BI . isArray ( b ) ) if ( BI . isArguments ( arguments [ 1 ] ) ) { for ( var c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , arguments [ 1 ] ) === ! 1 ) return ! 1 } else for ( var d = Array . prototype . slice . call ( arguments , 1 ) , c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , d ) === ! 1 ) return ! 1 ; return ! 0 } , destroy : function ( ) { this . destroyed && this . destroyed ( ) , this . _purgeRef ( ) , this . purgeListeners ( ) } } ) } ( ) , ! function ( ) { BI . Widget = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Widget . superclass . _defaultConfig . apply ( this ) , { root : ! 1 , tagName : "div" , attributes : null , data : null , tag : null , disabled : ! 1 , invisible : ! 1 , invalid : ! 1 , baseCls : "" , extraCls : "" , cls : "" } ) } , beforeInit : null , beforeCreate : null , created : null , render : null , beforeMount : null , mounted : null , shouldUpdate : null , update : function ( ) { } , beforeDestroy : null , destroyed : null , _init : function ( ) { BI . Widget . superclass . _init . apply ( this , arguments ) , this . _initRoot ( ) , this . _initElementWidth ( ) , this . _initElementHeight ( ) , this . _initVisual ( ) , this . _initState ( ) , this . _initRender ( ) } , _initRender : function ( ) { this . beforeInit ? ( this . _ _asking = ! 0 , this . beforeInit ( BI . bind ( this . _render , this ) ) , this . _ _asking === ! 0 && ( this . _ _async = ! 0 ) ) : this . _render ( ) } , _render : function ( ) { this . _ _asking = ! 1 , this . beforeCreate && this . beforeCreate ( ) , this . _initElement ( ) , this . _initEffects ( ) , this . created && this . created ( ) } , _initRoot : function ( ) { var a = this . options ; this . widgetName = a . widgetName || BI . uniqueId ( "widget" ) , this . _isRoot = a . root , BI . isWidget ( a . element ) ? ( a . element instanceof BI . Widget ? ( this . _parent = a . element , this . _parent . addWidget ( this . widgetName , this ) ) : this . _isRoot = ! 0 , this . element = this . options . element . element ) : a . element ? ( this . element = BI . Widget . _renderEngine . createElement ( this ) , this . _isRoot = ! 0 ) : this . element = BI . Widget . _renderEngine . createElement ( this ) , this . element . _isWidget = ! 0 , ( a . _baseCls || a . baseCls || a . extraCls || a . cls ) && this . element . addClass ( ( a . _baseCls || "" ) + " " + ( a . baseCls || "" ) + " " + ( a . extraCls || "" ) + " " + ( a . cls || "" ) ) , a . attributes && this . element . attr ( a . attributes ) , a . data && this . element . data ( a . data ) , this . _children = { } } , _initElementWidth : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . width ) && this . element . css ( "width" , a . width ) } , _initElementHeight : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . height ) && this . element . css ( "height" , a . height ) } , _initVisual : function ( ) { var a = this . options ; a . invisible && this . element . css ( "display" , "none" ) } , _initEffects : function ( ) { var a = this . options ; ( a . disabled || a . invalid ) && ( this . options . disabled && this . setEnable ( ! 1 ) , this . options . invalid && this . setValid ( ! 1 ) ) } , _initState : function ( ) { this . _isMounted = ! 1 } , _initElement : function ( ) { var a = this , b = this . render && this . render ( ) ; BI . isPlainObject ( b ) && ( b = [ b ] ) , BI . isArray ( b ) && BI . each ( b , function ( b , c ) { BI . createWidget ( c , { element : a } ) } ) , this . _mount ( ) } , _setParent : function ( a ) { this . _parent = a } , _mount : function ( a , b , c , d ) { var e = this ; return ! ! ( a || ! this . _isMounted && this . isVisible ( ) && this . _ _asking !== ! 0 && ( this . _isRoot === ! 0 || this . _parent && this . _parent . _isMounted === ! 0 ) ) && ( c !== ! 1 && this . beforeMount && this . beforeMount ( ) , this . _isMounted = ! 0 , this . _mountChildren && this . _mountChildren ( ) , BI . each ( this . _children , function ( f , g ) { ! e . isEnabled ( ) && g . _setEnable ( ! 1 ) , ! e . isValid ( ) && g . _setValid ( ! 1 ) , g . _mount && g . _mount ( ! ! b && a , b , c , d ) } ) , c !== ! 1 && this . mounted && this . mounted ( ) , d && d ( this ) , ! 0 ) } , _mountChildren : null , isMounted : function ( ) { return this . _isMounted } , setWidth : function ( a ) { this . options . width = a , this . _initElementWidth ( ) } , setHeight : function ( a ) { this . options . height = a , this . _initElementHeight ( ) } , _setEnable : function ( a ) { a === ! 0 ? this . options . disabled = ! 1 : a === ! 1 && ( this . options . disabled = ! 0 ) , BI . each ( this . _children , function ( b , c ) { ! c . _manualSetEnable && c . _setEnable && c . _setEnable ( a ) } ) } , _setValid : function ( a ) { a === ! 0 ? this . options . invalid = ! 1 : a === ! 1 && ( this . options . invalid = ! 0 ) , BI . each ( this . _children , function ( b , c ) { ! c . _manualSetValid && c . _setValid && c . _setValid ( a ) } ) } , _setVisible : function ( a ) { a === ! 0 ? this .
19969 : "DZ" , 19975 : "WM" , 19988 : "QJ" , 20048 : "YL" , 20056 : "SC" , 20060 : "NM" , 20094 : "QG" , 20127 : "QJ" , 20167 : "QC" , 20193 : "YG" , 20250 : "KH" , 20256 : "ZC" , 20282 : "SC" , 20285 : "QJG" , 20291 : "TD" , 20314 : "YD" , 20315 : "BF" , 20340 : "NE" , 20375 : "TD" , 20389 : "YJ" , 20391 : "CZ" , 20415 : "PB" , 20446 : "YS" , 20447 : "SQ" , 20504 : "TC" , 20608 : "KG" , 20854 : "QJ" , 20857 : "ZC" , 20911 : "PF" , 20985 : "AW" , 21032 : "PB" , 21048 : "XQ" , 21049 : "SC" , 21089 : "YS" , 21119 : "JC" , 21242 : "SB" , 21273 : "SC" , 21305 : "YP" , 21306 : "QO" , 21330 : "ZC" , 21333 : "SDC" , 21345 : "QK" , 21378 : "CA" , 21397 : "SC" , 21414 : "XS" , 21442 : "SC" , 21477 : "JG" , 21480 : "TD" , 21484 : "ZS" , 21494 : "YX" , 21505 : "YX" , 21512 : "HG" , 21523 : "XH" , 21537 : "PB" , 21542 : "PF" , 21549 : "KH" , 21571 : "E" , 21574 : "DA" , 21588 : "TD" , 21589 : "O" , 21618 : "ZC" , 21621 : "KHA" , 21632 : "ZJ" , 21654 : "KG" , 21679 : "LKG" , 21683 : "KH" , 21710 : "A" , 21719 : "YH" , 21734 : "WOE" , 21769 : "A" , 21780 : "WN" , 21804 : "XH" , 21834 : "A" , 21899 : "ZD" , 21903 : "RN" , 21908 : "WO" , 21939 : "ZC" , 21956 : "SA" , 21964 : "YA" , 21970 : "TD" , 22003 : "A" , 22031 : "JG" , 22040 : "XS" , 22060 : "ZC" , 22066 : "ZC" , 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 (
actionBack : function ( a , b , c ) { } } ) , BI . ActionFactory = { createAction : function ( a , b ) { var c ; switch ( a ) { case "show" : c = BI . ShowAction } return new c ( b ) } } , BI . ShowAction = BI . inherit ( BI . Action , { _defaultConfig : function ( ) { return BI . extend ( BI . ShowAction . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . ShowAction . superclass . _init . apply ( this , arguments ) } , actionPerformed : function ( a , b , c ) { b = b || this . options . tar , b . setVisible ( ! 0 ) , c && c ( ) } , actionBack : function ( a , b , c ) { a = a || this . options . tar , a . setVisible ( ! 1 ) , c && c ( ) } } ) , function ( ) { function isEmpty ( a ) { var b = "" === a || null === a || void 0 === a ; return b } function isInvalidDate ( a ) { return "Invalid Date" == a || "NaN" == a } function _eFormat ( a , b ) { function c ( a , b ) { var c = a < 0 ? ( a *= - 1 , "-" ) : "" , h = "" , i = a > 0 && a < 1 ? "floor" : "ceil" , j = Math [ i ] ( Math . log ( a ) / Math . log ( 10 ) ) ; if ( ! isFinite ( j ) ) return b . replace ( /#/gi , "" ) . replace ( /\.e/gi , "E" ) ; a /= Math . pow ( 10 , j ) , a > 0 && a < 1 && ( a *= 10 , j -= 1 ) ; var k = f ( j , b ) ; k > 1 && ( j -= k - 1 , a *= Math . pow ( 10 , k - 1 ) ) , j < 0 && ( h = "-" , j *= - 1 ) ; var l = e ( b ) , m = g ( a ) ; return a *= Math . pow ( 10 , l ) , a = Math . round ( a ) , m && ( a /= 10 , j += "-" === h ? - 1 : 1 ) , a /= Math . pow ( 10 , l ) , a = a . toFixed ( l ) , j = d ( b , j , h ) , c + a + "E" + j } function d ( a , b , c ) { if ( b += "" , ! /e/gi . test ( a ) ) return b ; for ( a = a . split ( /e/gi ) [ 1 ] ; b . length < a . length ; ) b = "0" + b ; for ( var d = ! 0 , e = 0 , f = b . length ; e < f ; e ++ ) d && ( d = "0" === b . charAt ( e ) ) ; return c = d ? "" : c , c + b } function e ( a ) { if ( ! /e/gi . test ( a ) ) return 0 ; var b = a . split ( /e/gi ) [ 0 ] . split ( "." ) ; return b . length > 1 ? b [ 1 ] . length : 0 } function f ( a , b ) { if ( ! /e/gi . test ( b ) ) return 0 ; var c , d , e = b . split ( /e/gi ) [ 0 ] . split ( "." ) [ 0 ] , f = e . length , g = 0 ; for ( c = 0 ; c < f ; c ++ ) d = e . charAt ( c ) , ( 0 == d || "#" == d && f - c <= a + 1 ) && g ++ ; return g } function g ( a ) { var b = Math . round ( a ) ; return a = ( a + "" ) . split ( "." ) [ 0 ] , b = ( b + "" ) . split ( "." ) [ 0 ] , a . length !== b . length } return a = + a , c ( a , b ) } function _dealNumberPrecision ( a , b ) { if ( /[eE]/ . test ( a ) ) { var c , d = 0 , e = 0 ; /[%‰]$/ . test ( b ) && ( d = /[%]$/ . test ( b ) ? 2 : 3 ) ; for ( var f = b . length ; e < f ; e ++ ) "0" != ( c = b . charAt ( e ) ) && "#" != c || d ++ ; return Number ( a ) . toFixed ( d ) } return a } function _numberFormat ( a , b ) { var a = a + "" ; if ( ! /[0-9]/ . test ( a ) || ! b ) return a ; var c = b . indexOf ( ";" ) ; if ( c > - 1 ) return a >= 0 ? _numberFormat ( a + "" , b . substring ( 0 , c ) ) : _numberFormat ( - a + "" , b . substr ( c + 1 ) ) ; if ( + a < 0 && "-" !== b . charAt ( 0 ) ) return _numberFormat ( - a + "" , "-" + b ) ; var d = b . split ( "." ) , e = d [ 0 ] || "" , f = d [ 1 ] || "" ; a = _dealNumberPrecision ( a , f ) ; var g = a . split ( "." ) , h = g [ 0 ] || "" , i = g [ 1 ] || "" ; if ( /[%‰]$/ . test ( b ) ) { var j = /[%]$/ . test ( b ) ? "00" : "000" ; i += j , h += i . substr ( 0 , j . length ) , h = h . replace ( /^0+/gi , "" ) , i = i . substr ( j . length ) . replace ( /0+$/gi , "" ) } var k = _dealWithRight ( i , f ) ; k . leftPlus && ( h = parseInt ( h ) + 1 + "" , h = isNaN ( h ) ? "1" : h ) , k = k . num ; var l = _dealWithLeft ( h , e ) ; return /[0-9]/ . test ( l ) || ( l += "0" ) , /[0-9]/ . test ( k ) ? l + "." + k : l + k } function _dealWithRight ( a , b ) { for ( var c = "" , d = 0 , e = 0 , f = b . length ; e < f ; e ++ ) { var g = b . charAt ( e ) , h = a . charAt ( d ) ; switch ( g ) { case "0" : isEmpty ( h ) && ( h = "0" ) , c += h , d ++ ; break ; case "#" : c += h , d ++ ; break ; default : c += g } } var i = a . substr ( d ) , j = { } ; if ( ! isEmpty ( i ) && i . charAt ( 0 ) > 4 ) { j . leftPlus = ! 0 ; var k = c . match ( /^[0-9]+/ ) ; if ( k ) { var l = k [ 0 ] , m = l . length , n = parseInt ( l ) + 1 + "" ; n . length > m ? n = n . substr ( 1 ) : ( n = BI . leftPad ( n , m , "0" ) , j . leftPlus = ! 1 ) , c = c . replace ( /^[0-9]+/ , n ) } } return j . num = c , j } function _dealWithLeft ( a , b ) { for ( var c = "" , d = a . length - 1 , e = - 1 , f = - 1 , g = b . length - 1 ; g >= 0 ; g -- ) { var h = b . charAt ( g ) , i = a . charAt ( d ) ; switch ( h ) { case "0" : isEmpty ( i ) && ( i = "0" ) , f = - 1 , c = i + c , d -- ; break ; case "#" : f = g , c = i + c , d -- ; break ; case "," : if ( ! isEmpty ( i ) ) { var j = b . match ( /,[#0]+/ ) ; j && ( e = j [ 0 ] . length - 1 ) , c = "," + c } break ; default : c = h + c } } if ( f > - 1 ) { var k = a . substr ( 0 , d + 1 ) ; c = c . substr ( 0 , f ) + k + c . substr ( f ) } if ( e > 0 ) { var l = c . match ( /[0-9]+,/ ) ; if ( l ) { l = l [ 0 ] ; for ( var m = "" , n = l . length - 1 - e ; n >= 0 ; n -= e ) m = l . substr ( n , e ) + "," + m ; var o = l . substr ( 0 , n + e ) ; isEmpty ( o ) || ( m = o + "," + m ) } c = c . replace ( /[0-9]+,/ , m ) } return c } var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , _global . BI || ( _global . BI = { } ) , BI . cjkEncode = function ( a ) { if ( "string" != typeof a ) return a ; for ( var b = "" , c = 0 ; c < a . length ; c ++ ) { var d = a . charCodeAt ( c ) ; b += d >= 128 || 91 === d || 93 === d ? "[" + d . toString ( 16 ) + "]" : a . charAt ( c ) } return b } , BI . cjkDecode = function ( text ) { if ( null == text ) return "" ; if ( ! isNaN ( text ) || text . indexOf ( "[" ) == - 1 ) return text ; for ( var newText = "" , i = 0 ; i < text . length ; i ++ ) { var ch = text . charAt ( i ) ; if ( "[" == ch ) { var rightIdx = text . indexOf ( "]" , i + 1 ) ; if ( righ
} } ) , { match : h , find : i } } } ) , _ . extend ( BI , { beforeFunc : function ( a , b ) { var c = a ; return function ( ) { return b . apply ( a , arguments ) !== ! 1 && c . apply ( a , arguments ) } } , afterFunc : function ( a ) { var b = sFunc ; return function ( ) { var c = b . apply ( sFunc , arguments ) ; return c !== ! 1 && ( a . apply ( sFunc , arguments ) , c ) } } } ) , _ . extend ( BI , { add : function ( a , b ) { function c ( 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 } return c ( b , a ) } , sub : function ( a , b ) { function c ( 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 ) } return c ( a , b ) } , mul : function ( a , b ) { function c ( 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 ) } return c ( b , a ) } , div : function ( a , b ) { function c ( a ) { var b = a . toString ( ) . split ( /[eE]/ ) , c = ( b [ 0 ] . split ( "." ) [ 1 ] || "" ) . length - + ( b [ 1 ] || 0 ) ; return c > 0 ? c : 0 } function d ( a ) { if ( a . toString ( ) . indexOf ( "e" ) === - 1 ) return Number ( a . toString ( ) . replace ( "." , "" ) ) ; var b = c ( a ) ; return b > 0 ? a * Math . pow ( 10 , b ) : a } function e ( a , b ) { for ( var f = [ ] , g = 2 ; g < arguments . length ; g ++ ) f [ g - 2 ] = arguments [ g ] ; if ( f . length > 0 ) return e . apply ( void 0 , [ e ( a , b ) , f [ 0 ] ] . concat ( f . slice ( 1 ) ) ) ; var h = d ( a ) , i = d ( b ) , j = c ( a ) + c ( b ) , k = h * i ; return k / Math . pow ( 10 , j ) } function f ( a , b ) { for ( var g = [ ] , h = 2 ; h < arguments . length ; h ++ ) g [ h - 2 ] = arguments [ h ] ; if ( g . length > 0 ) return f . apply ( void 0 , [ f ( a , b ) , g [ 0 ] ] . concat ( g . slice ( 1 ) ) ) ; var i = d ( a ) , j = d ( b ) ; return e ( i / j , Math . pow ( 10 , c ( b ) - c ( a ) ) ) } return f ( a , b ) } } ) , _ . extend ( BI , { startWith : function ( a , b ) { return a = a || "" , ! ( null == b || "" == b || 0 === a . length || b . length > a . length ) && a . substr ( 0 , b . length ) == b } , endWith : function ( a , b ) { return ! ( null == b || "" == b || 0 === a . length || b . length > a . length ) && a . substring ( a . length - b . length ) == b } , getQuery : function ( a , b ) { var c = new RegExp ( "(^|&)" + b + "=([^&]*)(&|$)" ) , d = a . substr ( a . indexOf ( "?" ) + 1 ) . match ( c ) ; return d ? unescape ( d [ 2 ] ) : null } , appendQuery : function ( a , b ) { if ( ! b ) return a ; var c = a ; return c . indexOf ( "?" ) === - 1 && ( c += "?" ) , c . endWith ( "?" ) !== ! 1 || ( c += "&" ) , _ . each ( b , function ( a , b ) { "string" == typeof b && ( c += b + "=" + a + "&" ) } ) , c = c . substr ( 0 , c . length - 1 ) } , replaceAll : function ( a , b , c ) { return a . replace ( new RegExp ( b , "gm" ) , c ) } , perfectStart : function ( a , b ) { return a . startWith ( b ) ? a : b + a } , allIndexOf : function ( a , b ) { if ( "string" != typeof b ) return [ ] ; for ( var c = [ ] , d = 0 ; a . length > 0 ; ) { var e = a . indexOf ( b ) ; if ( e === - 1 ) break ; c . push ( d + e ) , a = a . substring ( e + b . length , a . length ) , d += e + b . length } return c } } ) , ! function ( ) { var a = { } ; _ . extend ( BI , { addI18n : function ( b ) { BI . extend ( a , b ) } , i18nText : function ( b ) { var c = a [ b ] || BI . i18n && BI . i18n [ b ] || "" ; c || ( c = b ) ; var d = arguments . length ; if ( d > 1 ) { if ( ! ( c . indexOf ( "{R1}" ) > - 1 ) ) { var e = Array . prototype . slice . call ( arguments ) , f = 1 ; return BI . replaceAll ( c , "\\{\\s*\\}" , function ( ) { return e [ f ++ ] + "" } ) } for ( var g = 1 ; g < d ; g ++ ) { var b = "{R" + g + "}" ; c = BI . replaceAll ( c , b , arguments [ g ] + "" ) } } return c } } ) } ( ) , function ( ) { var a = { } ; BI . module = function ( b , c ) { null != a [ b ] && _global . console && console . error ( "module:[" + b + "] has been registed" ) , a [ b ] = c } ; var b = { } ; BI . constant = function ( a , c ) { null != b [ a ] && _global . console && console . error ( "constant:[" + a + "] has been registed" ) , b [ a ] = c } ; var c = { } ; BI . model = function ( a , b ) { null != c [ a ] && _global . console && console . error ( "model:[" + a + "] has been registed" ) , c [ a ] = b } ; var d = { } ; BI . store = function ( a , b ) { null != d [ a ] && _global . console && console . error ( "store:[" + a + "] has been registed" ) , d [ a ] = b } ; var e = { } ; BI . service = function ( a , b ) { null != e [ a ] && _global . console && console . error ( "service:[" + a + "] has been registed" ) , e [ a ] = b } ; var f = { } ; BI . provider = function ( a , b ) { null != f [ a ] && _global . console && console . error ( "provider:[" + a + "] has been registed" ) , f [ a ] = b } , BI . config = function ( a , c ) { return b [ a ] ? b [ a ] = c ( b [ a ] ) : f [ a ] ? ( m [ a ] || ( m [ a ] = new f [ a ] ) , c ( m [ a ] ) ) : void BI . Plugin .
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 && b [ ia . expando ] ) { e = ia . _data ( b ) ; for ( d in e . events ) ia . removeEvent ( b , d , e . handle ) ; b . removeAttribute ( ia . expando ) } "script" === c && b . text !== a . text ? ( o ( b ) . text = a . text , p ( b ) ) : "object" === c ? ( b . parentNode && ( b . outerHTML = a . outerHTML ) , ia . support . html5Clone && a . innerHTML && ! ia . trim ( b . innerHTML ) && ( b . innerHTML = a . innerHTML ) ) : "input" === c && bb . test ( a . type ) ? ( b . defaultChecked = b . checked = a . checked , b . value !== a . value && ( b . value = a . value ) ) : "option" === c ? b . defaultSelected = b . selected = a . defaultSelected : "input" !== c && "textarea" !== c || ( b . defaultValue = a . defaultValue ) } } function t ( a , c ) { var d , e , f = 0 , g = typeof a . getElementsByTagName !== V ? a . getElementsByTagName ( c || "*" ) : typeof a . querySelectorAll !== V ? a . querySelectorAll ( c || "*" ) : b ; if ( ! g ) for ( g = [ ] , d = a . childNodes || a ; null != ( e = d [ f ] ) ; f ++ ) ! c || ia . nodeName ( e , c ) ? g . push ( e ) : ia . merge ( g , t ( e , c ) ) ; return c === b || c && ia . nodeName ( a , c ) ? ia . merge ( [ a ] , g ) : g } function u ( a ) { bb . test ( a . type ) && ( a . defaultChecked = a . checked ) } function v ( a , b ) { if ( b in a ) return b ; for ( var c = b . charAt ( 0 ) . toUpperCase ( ) + b . slice ( 1 ) , d = b , e = yb . length ; e -- ; ) if ( b = yb [ e ] + c , b in a ) return b ; return d } function w ( a , b ) { return a = b || a , "none" === ia . css ( a , "display" ) || ! ia . contains ( a . ownerDocument , a ) } function x ( a , b ) { for ( var c , d , e , f = [ ] , g = 0 , h = a . length ; g < h ; g ++ ) d = a [ g ] , d . style && ( f [ g ] = ia . _data ( d , "olddisplay" ) , c = d . style . display , b ? ( f [ g ] || "none" !== c || ( d . style . display = "" ) , "" === d . style . display && w ( d ) && ( f [ g ] = ia . _data ( d , "olddisplay" , B ( d . nodeName ) ) ) ) : f [ g ] || ( e = w ( d ) , ( c && "none" !== c || ! e ) && ia . _data ( d , "olddisplay" , e ? c : ia . css ( d , "display" ) ) ) ) ; for ( g = 0 ; g < h ; g ++ ) d = a [ g ] , d . style && ( b && "none" !== d . style . display && "" !== d . style . display || ( d . style . display = b ? f [ g ] || "" : "none" ) ) ; return a } function y ( a , b , c ) { var d = rb . exec ( b ) ; return d ? Math . max ( 0 , d [ 1 ] - ( c || 0 ) ) + ( d [ 2 ] || "px" ) : b } function z ( a , b , c , d , e ) { for ( var f = c === ( d ? "border" : "content" ) ? 4 : "width" === b ? 1 : 0 , g = 0 ; f < 4 ; f += 2 ) "margin" === c && ( g += ia . css ( a , c + xb [ f ] , ! 0 , e ) ) , d ? ( "content" === c && ( g -= ia . css ( a , "padding" + xb [ f ] , ! 0 , e ) ) , "margin" !== c && ( g -= ia . css ( a , "border" + xb [ f ] + "Width" , ! 0 , e ) ) ) : ( g += ia . css ( a , "padding" + xb [ f ] , ! 0 , e ) , "padding" !== c && ( g += ia . css ( a , "border" + xb [ f ] + "Width" , ! 0 , e ) ) ) ; return g } function A ( a , b , c ) { var d = ! 0 , e = "width" === b ? a . offsetWidth : a . offsetHeight , f = kb ( a ) , g = ia . support . boxSizing && "border-box" === ia . css ( a , "boxSizing" , ! 1 , f ) ; if ( e <= 0 || null == e ) { if ( e = lb ( a , b , f ) , ( e < 0 || null == e ) && ( e = a . style [ b ] ) , sb . test ( e ) ) return e ; d = g && ( ia . support . boxSizingReliable || e === a . style [ b ] ) , e = parseFloat ( e ) || 0 } return e + z ( a , b , c || ( g ? "border" : "content" ) , d , f ) + "px" } function B ( a ) { var b = W , c = ub [ a ] ; return c || ( c = C ( a , b ) , "none" !== c && c || ( jb = ( jb || ia ( "<iframe frameborder='0' width='0' height='0'/>" ) . css ( "cssText" , "display:block !important" ) ) . appendTo ( b . documentElement ) , b = ( jb [ 0 ] . contentWindow || jb [ 0 ] . contentDocument ) . document , b . write ( "<!doctype html><html><body>" ) , b . close ( ) , c = C ( a , b ) , jb . detach ( ) ) , ub [ a ] = c ) , c } function C ( a , b ) { var c = ia ( b . createElement ( a ) ) . appendTo ( b . body ) , d = ia . css ( c [ 0 ] , "display" ) ; return c . remove ( ) , d } function D ( a , b , c , d ) { var e ; if ( ia . isArray ( b ) ) ia . each ( b , function ( b , e ) { c || Ab . test ( a ) ? d ( a , e ) : D ( a + "[" + ( "object" == typeof e ? b : "" ) + "]" , e , c , d ) } ) ; else if ( c || "object" !== ia . type ( b ) ) d ( a , b ) ; else for ( e in b ) D ( a + "[" + e + "]" , b [ e ] , c , d ) } function E ( a ) { return function ( b , c ) { "string" != typeof b && ( c = b , b = "*" ) ; var d , e = 0 , f = b . toLowerCase ( ) . match ( ka ) || [ ] ; if ( ia . isFunction ( c ) ) for ( ; d = f [ e ++ ] ; ) "+" === d [ 0 ] ? ( d = d . slice ( 1 ) || "*" , ( a [ d ] = a [ d ] |
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 . attachEvent && a . attachEvent ( "on" + o , l ) ) ) , k . add && ( k . add . call ( a , m ) , m . handler . guid || ( m . handler . guid = d . guid ) ) , f ? n . splice ( n . delegateCount ++ , 0 , m ) : n . push ( m ) , ia . event . global [ o ] = ! 0 ; a = null } } , remove : function ( a , b , c , d , e ) { var f , g , h , i , j , k , l , m , n , o , p , q = ia . hasData ( a ) && ia . _data ( a ) ; if ( q && ( k = q . events ) ) { for ( b = ( b || "" ) . match ( ka ) || [ "" ] , j = b . length ; j -- ; ) if ( h = Oa . exec ( b [ j ] ) || [ ] , n = p = h [ 1 ] , o = ( h [ 2 ] || "" ) . split ( "." ) . sort ( ) , n ) { for ( l = ia . event . special [ n ] || { } , n = ( d ? l . delegateType : l . bindType ) || n , m = k [ n ] || [ ] , h = h [ 2 ] && new RegExp ( "(^|\\.)" + o . join ( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) , i = f = m . length ; f -- ; ) g = m [ f ] , ! e && p !== g . origType || c && c . guid !== g . guid || h && ! h . test ( g . namespace ) || d && d !== g . selector && ( "**" !== d || ! g . selector ) || ( m . splice ( f , 1 ) , g . selector && m . delegateCount -- , l . remove && l . remove . call ( a , g ) ) ; i && ! m . length && ( l . teardown && l . teardown . call ( a , o , q . handle ) !== ! 1 || ia . removeEvent ( a , n , q . handle ) , delete k [ n ] ) } else for ( n in k ) ia . event . remove ( a , n + b [ j ] , c , d , ! 0 ) ; ia . isEmptyObject ( k ) && ( delete q . handle , ia . _removeData ( a , "events" ) ) } } , trigger : function ( c , d , e , f ) { var g , h , i , j , k , l , m , n = [ e || W ] , o = ga . call ( c , "type" ) ? c . type : c , p = ga . call ( c , "namespace" ) ? c . namespace . split ( "." ) : [ ] ; if ( i = l = e = e || W , 3 !== e . nodeType && 8 !== e . nodeType && ! Na . test ( o + ia . event . triggered ) && ( o . indexOf ( "." ) >= 0 && ( p = o . split ( "." ) , o = p . shift ( ) , p . sort ( ) ) , h = o . indexOf ( ":" ) < 0 && "on" + o , c = c [ ia . expando ] ? c : new ia . Event ( o , "object" == typeof c && c ) , c . isTrigger = ! 0 , c . namespace = p . join ( "." ) , c . namespace _re = c . namespace ? new RegExp ( "(^|\\.)" + p . join ( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : null , c . result = b , c . target || ( c . target = e ) , d = null == d ? [ c ] : ia . makeArray ( d , [ c ] ) , k = ia . event . special [ o ] || { } , f || ! k . trigger || k . trigger . apply ( e , d ) !== ! 1 ) ) { if ( ! f && ! k . noBubble && ! ia . isWindow ( e ) ) { for ( j = k . delegateType || o , Na . test ( j + o ) || ( i = i . parentNode ) ; i ; i = i . parentNode ) n . push ( i ) , l = i ; l === ( e . ownerDocument || W ) && n . push ( l . defaultView || l . parentWindow || a ) } for ( m = 0 ; ( i = n [ m ++ ] ) && ! c . isPropagationStopped ( ) ; ) c . type = m > 1 ? j : k . bindType || o , g = ( ia . _data ( i , "events" ) || { } ) [ c . type ] && ia . _data ( i , "handle" ) , g && g . apply ( i , d ) , g = h && i [ h ] , g && ia . acceptData ( i ) && g . apply && g . apply ( i , d ) === ! 1 && c . preventDefault ( ) ; if ( c . type = o , ! f && ! c . isDefaultPrevented ( ) && ( ! k . _default || k . _default . apply ( e . ownerDocument , d ) === ! 1 ) && ( "click" !== o || ! ia . nodeName ( e , "a" ) ) && ia . acceptData ( e ) && h && e [ o ] && ! ia . isWindow ( e ) ) { l = e [ h ] , l && ( e [ h ] = null ) , ia . event . triggered = o ; try { e [ o ] ( ) } catch ( q ) { } ia . event . triggered = b , l && ( e [ h ] = l ) } return c . result } } , dispatch : function ( a ) { a = ia . event . fix ( a ) ; var c , d , e , f , g , h = [ ] , i = da . call ( arguments ) , j = ( ia . _data ( this , "events" ) || { } ) [ a . type ] || [ ] , k = ia . event . special [ a . type ] || { } ; if ( i [ 0 ] = a , a . delegateTarget = this , ! k . preDispatch || k . preDispatch . call ( this , a ) !== ! 1 ) { for ( h = ia . event . handlers . call ( this , a , j ) , c = 0 ; ( f = h [ c ++ ] ) && ! a . isPropagationStopped ( ) ; ) for ( a . currentTarget = f . elem , g = 0 ; ( e = f . handlers [ g ++ ] ) && ! a . isImmediatePropagationStopped ( ) ; ) if ( ! a . namespace _re || a . namespace _re . test ( e . namespace ) ) { a . handleObj = e , a . data = e . data ; var l = ( ia . event . special [ e . origType ] || { } ) . handle || e . handler ; l . apply && ( d = l . apply ( f . elem , i ) ) , d !== b && ( a . result = d ) === ! 1 && ( a . preventDefault ( ) , a . stopPropagation ( ) ) } return k . postDispatch && k . postDispatch . call ( this , a ) , a . result } } , handlers : function ( a , c ) { var d , e , f , g , h = [ ] , i = c . delegateCount , j = a . target ; if ( i && j . nodeType && ( ! a . button || "click" !== a . type ) ) for ( ; j != this ; j = j . parentNode || this ) if ( 1 === j . nodeType && ( j . disabled !== ! 0 || "click" !== a . type ) ) { for ( f = [ ] , g = 0 ; g < i ; g ++ ) e = c [ g ] , d = e . selector + " " , f [ d ] === b && ( f [ d ] = e . needsContext ? ia ( d , this ) . inde
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 . length ? c . wrapAll ( a ) : b . append ( a ) } ) } , wrap : function ( a ) { var b = ia . isFunction ( a ) ; return this . each ( function ( c ) { ia ( this ) . wrapAll ( b ? a . call ( this , c ) : a ) } ) } , unwrap : function ( ) { return this . parent ( ) . each ( function ( ) { ia . nodeName ( this , "body" ) || ia ( this ) . replaceWith ( this . childNodes ) } ) . end ( ) } , append : function ( ) { return this . domManip ( arguments , ! 0 , function ( a ) { 1 !== this . nodeType && 11 !== this . nodeType && 9 !== this . nodeType || this . appendChild ( a ) } ) } , prepend : function ( ) { return this . domManip ( arguments , ! 0 , function ( a ) { 1 !== this . nodeType && 11 !== this . nodeType && 9 !== this . nodeType || this . insertBefore ( a , this . firstChild ) } ) } , before : function ( ) { return this . domManip ( arguments , ! 1 , function ( a ) { this . parentNode && this . parentNode . insertBefore ( a , this ) } ) } , after : function ( ) { return this . domManip ( arguments , ! 1 , function ( a ) { this . parentNode && this . parentNode . insertBefore ( a , this . nextSibling ) } ) } , remove : function ( a , b ) { for ( var c , d = 0 ; null != ( c = this [ d ] ) ; d ++ ) ( ! a || ia . filter ( a , [ c ] ) . length > 0 ) && ( b || 1 !== c . nodeType || ia . cleanData ( t ( c ) ) , c . parentNode && ( b && ia . contains ( c . ownerDocument , c ) && q ( t ( c , "script" ) ) , c . parentNode . removeChild ( c ) ) ) ; return this } , empty : function ( ) { for ( var a , b = 0 ; null != ( a = this [ b ] ) ; b ++ ) { for ( 1 === a . nodeType && ia . cleanData ( t ( a , ! 1 ) ) ; a . firstChild ; ) a . removeChild ( a . firstChild ) ; a . options && ia . nodeName ( a , "select" ) && ( a . options . length = 0 ) } return this } , clone : function ( a , b ) { return a = null != a && a , b = null == b ? a : b , this . map ( function ( ) { return ia . clone ( this , a , b ) } ) } , html : function ( a ) { return ia . access ( this , function ( a ) { var c = this [ 0 ] || { } , d = 0 , e = this . length ; if ( a === b ) return 1 === c . nodeType ? c . innerHTML . replace ( Va , "" ) : b ; if ( "string" == typeof a && ! ab . test ( a ) && ( ia . support . htmlSerialize || ! Wa . test ( a ) ) && ( ia . support . leadingWhitespace || ! Xa . test ( a ) ) && ! gb [ ( Za . exec ( a ) || [ "" , "" ] ) [ 1 ] . toLowerCase ( ) ] ) { a = a . replace ( Ya , "<$1></$2>" ) ; try { for ( ; d < e ; d ++ ) c = this [ d ] || { } , 1 === c . nodeType && ( ia . cleanData ( t ( c , ! 1 ) ) , c . innerHTML = a ) ; c = 0 } catch ( f ) { } } c && this . empty ( ) . append ( a ) } , null , a , arguments . length ) } , replaceWith : function ( a ) { var b = ia . isFunction ( a ) ; return b || "string" == typeof a || ( a = ia ( a ) . not ( this ) . detach ( ) ) , this . domManip ( [ a ] , ! 0 , function ( a ) { var b = this . nextSibling , c = this . parentNode ; c && ( ia ( this ) . remove ( ) , c . insertBefore ( a , b ) ) } ) } , detach : function ( a ) { return this . remove ( a , ! 0 ) } , domManip : function ( a , c , d ) { a = ba . apply ( [ ] , a ) ; var e , f , g , h , i , j , k = 0 , l = this . length , m = this , q = l - 1 , r = a [ 0 ] , s = ia . isFunction ( r ) ; if ( s || ! ( l <= 1 || "string" != typeof r || ia . support . checkClone ) && cb . test ( r ) ) return this . each ( function ( e ) { var f = m . eq ( e ) ; s && ( a [ 0 ] = r . call ( this , e , c ? f . html ( ) : b ) ) , f . domManip ( a , c , d ) } ) ; if ( l && ( j = ia . buildFragment ( a , this [ 0 ] . ownerDocument , ! 1 , this ) , e = j . firstChild , 1 === j . childNodes . length && ( j = e ) , e ) ) { for ( c = c && ia . nodeName ( e , "tr" ) , h = ia . map ( t ( j , "script" ) , o ) , g = h . length ; k < l ; k ++ ) f = j , k !== q && ( f = ia . clone ( f , ! 0 , ! 0 ) , g && ia . merge ( h , t ( f , "script" ) ) ) , d . call ( c && ia . nodeName ( this [ k ] , "table" ) ? n ( this [ k ] , "tbody" ) : this [ k ] , f , k ) ; if ( g ) for ( i = h [ h . length - 1 ] . ownerDocument , ia . map ( h , p ) , k = 0 ; k < g ; k ++ ) f = h [ k ] , db . test ( f . type || "" ) && ! ia . _data ( f , "globalEval" ) && ia . contains ( i , f ) && ( f . src ? ia . ajax ( { url : f . src , type : "GET" , dataType : "script" , async : ! 1 , global : ! 1 , "throws" : ! 0 } ) : ia . globalEval ( ( f . text || f . textContent || f . innerHTML || "" ) . replace ( fb , "" ) ) ) ; j = e = null } return this } } ) , ia . each ( { appendTo : "append" , prependTo : "prepend" , insertBefore : "before" , insertAfter : "after" , replaceAll : "replaceWith" } , function ( a , b ) { ia . fn [ a ] = function ( a ) { for ( var c , d = 0 , e = [ ] , f = ia ( a ) , g = f . length - 1 ; d <= g ; d ++ ) c = d === g ? this : this . clone ( ! 0 ) , ia ( f [ d ] ) [ b ] ( c ) , ca . apply ( e , c
h = - h ) , j = "0" , h > 1e-21 ) if ( k = e ( h * d ( 2 , 69 , 1 ) ) - 69 , l = k < 0 ? h * d ( 2 , - k , 1 ) : h / d ( 2 , k , 1 ) , l *= 4503599627370496 , k = 52 - k , k > 0 ) { for ( a ( 0 , l ) , m = g ; m >= 7 ; ) a ( 1e7 , 0 ) , m -= 7 ; for ( a ( d ( 10 , m , 1 ) , 0 ) , m = k - 1 ; m >= 23 ; ) b ( 1 << 23 ) , m -= 23 ; b ( 1 << m ) , a ( 1 , 1 ) , b ( 2 ) , j = c ( ) } else a ( 0 , l ) , a ( 1 << - k , 0 ) , j = c ( ) + "0.00000000000000000000" . slice ( 2 , 2 + g ) ; return g > 0 ? ( n = j . length , j = n <= g ? i + "0.0000000000000000000" . slice ( 0 , g - n + 2 ) + j : i + j . slice ( 0 , n - g ) + "." + j . slice ( n - g ) ) : j = i + j , j } } ( ) , _ . extend ( BI , { MAX : 0x1000000000000000 , MIN : - 0x1000000000000000 , EVENT _RESPONSE _TIME : 200 , zIndex _layer : 1e5 , zIndex _popover : 1e6 , zIndex _popup : 1e7 , zIndex _masker : 1e8 , zIndex _tip : 1e9 , emptyStr : "" , emptyFn : function ( ) { } , empty : null , Key : { 48 : "0" , 49 : "1" , 50 : "2" , 51 : "3" , 52 : "4" , 53 : "5" , 54 : "6" , 55 : "7" , 56 : "8" , 57 : "9" , 65 : "a" , 66 : "b" , 67 : "c" , 68 : "d" , 69 : "e" , 70 : "f" , 71 : "g" , 72 : "h" , 73 : "i" , 74 : "j" , 75 : "k" , 76 : "l" , 77 : "m" , 78 : "n" , 79 : "o" , 80 : "p" , 81 : "q" , 82 : "r" , 83 : "s" , 84 : "t" , 85 : "u" , 86 : "v" , 87 : "w" , 88 : "x" , 89 : "y" , 90 : "z" , 96 : "0" , 97 : "1" , 98 : "2" , 99 : "3" , 100 : "4" , 101 : "5" , 102 : "6" , 103 : "7" , 104 : "8" , 105 : "9" , 106 : "*" , 107 : "+" , 109 : "-" , 110 : "." , 111 : "/" } , KeyCode : { BACKSPACE : 8 , COMMA : 188 , DELETE : 46 , DOWN : 40 , END : 35 , ENTER : 13 , ESCAPE : 27 , HOME : 36 , LEFT : 37 , NUMPAD _ADD : 107 , NUMPAD _DECIMAL : 110 , NUMPAD _DIVIDE : 111 , NUMPAD _ENTER : 108 , NUMPAD _MULTIPLY : 106 , NUMPAD _SUBTRACT : 109 , PAGE _DOWN : 34 , PAGE _UP : 33 , PERIOD : 190 , RIGHT : 39 , SPACE : 32 , TAB : 9 , UP : 38 } , Status : { SUCCESS : 1 , WRONG : 2 , START : 3 , END : 4 , WAITING : 5 , READY : 6 , RUNNING : 7 , OUTOFBOUNDS : 8 , NULL : - 1 } , Direction : { Top : "top" , Bottom : "bottom" , Left : "left" , Right : "right" , Custom : "custom" } , Axis : { Vertical : "vertical" , Horizontal : "horizontal" } , Selection : { Default : - 2 , None : - 1 , Single : 0 , Multi : 1 , All : 2 } , HorizontalAlign : { Left : "left" , Right : "right" , Center : "center" , Stretch : "stretch" } , VerticalAlign : { Middle : "middle" , Top : "top" , Bottom : "bottom" , Stretch : "stretch" } , StartOfWeek : 1 } ) , BI . version = "2.0" , BI . AbsoluteCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AbsoluteCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-absolute-center-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . AbsoluteCenterLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AbsoluteCenterLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "absolute" , left : c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) , right : c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) , top : c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) , bottom : c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) , margin : "auto" } ) , d } , resize : function ( ) { } , populate : function ( a ) { BI . AbsoluteCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.absolute_center_adapt" , BI . AbsoluteCenterLayout ) , BI . AbsoluteHorizontalLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AbsoluteHorizontalLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-absolute-horizontal-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . AbsoluteHorizontalLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AbsoluteHorizontalLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "absolute" , left : c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) , right : c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) , margin : "auto" } ) , c . vgap + c . tgap + ( b . vgap || 0 ) + ( b . tgap || 0 ) !== 0 && d . element . css ( "top" , c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) ) , c . vgap + c . bgap + ( b . vgap || 0 ) + ( b . bgap || 0 ) !== 0 && d . element . css ( "bottom" , c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) ) , d } , resize : function ( ) { } , populate : function ( a ) { BI . AbsoluteHorizontalLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.absolute_horizontal_adapt" , BI . AbsoluteHorizontalLayout ) , BI . AbsoluteVerticalLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AbsoluteVerticalLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-absolute-vertical-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . AbsoluteVerticalLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AbsoluteVerticalLayout . superclass . _addElement . apply ( this , argument
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 , function ( b , c ) { return c . cardName == a } ) ; b > - 1 && this . options . items . splice ( b , 1 ) } , deleteCardByName : function ( a ) { if ( ! this . isCardExisted ( a ) ) throw new Error ( "cardName is not exist" ) ; var b = this . _children [ a ] ; this . _deleteCardByName ( a ) , b && b . _destroy ( ) } , addCardByName : function ( a , b ) { if ( this . isCardExisted ( a ) ) throw new Error ( "cardName is already exist" ) ; var c = BI . createWidget ( b , this ) ; return c . element . css ( { position : "relative" , top : "0" , left : "0" , width : "100%" , height : "100%" } ) . appendTo ( this . element ) , c . invisible ( ) , this . addWidget ( a , c ) , this . options . items . push ( { el : b , cardName : a } ) , c } , showCardByName : function ( a , b , c ) { var d = this , e = this . isCardExisted ( a ) ; null != this . showIndex && ( this . lastShowIndex = this . showIndex ) , this . showIndex = a ; var f = ! 1 ; BI . each ( this . options . items , function ( g , h ) { var i = d . _children [ h . cardName ] ; i && ( a != h . cardName ? ! f && ! e && BI . Action && b instanceof BI . Action ? ( b . actionBack ( i ) , f = ! 0 ) : i . invisible ( ) : BI . Action && b instanceof BI . Action ? b . actionPerformed ( void 0 , i , c ) : ( i . visible ( ) , c && c ( ) ) ) } ) } , showLastCard : function ( ) { var a = this ; this . showIndex = this . lastShowIndex , BI . each ( this . options . items , function ( b , c ) { a . _children [ c . cardName ] . setVisible ( a . showIndex == b ) } ) } , setDefaultShowName : function ( a ) { return this . options . defaultShowName = a , this } , getDefaultShowName : function ( ) { return this . options . defaultShowName } , getAllCardNames : function ( ) { return BI . map ( this . options . items , function ( a , b ) { return b . cardName } ) } , getShowingCard : function ( ) { if ( BI . isKey ( this . showIndex ) ) retur
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 ) , function ( ) { var a = { } ; BI . 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 = { } ; BI . 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 ] } } } ( ) , BI . Req = { } , function ( a , b ) { "object" == typeof exports && "undefined" != typeof module ? b ( exports ) : "function" == typeof define && define . amd ? define ( [ "exports" ] , b ) : b ( a . Fix = a . Fix || { } ) } ( this , function ( a ) { "use strict" ; function b ( a , b , c ) { } function c ( a ) { return "function" == typeof a && /native code/ . test ( a . toString ( ) ) } function d ( a ) { return a = a || "bi" , String ( Math . random ( ) + Math . random ( ) ) . replace ( R , a ) } function e ( a ) { return "[object Object]" === W . call ( a ) } function f ( a , b ) { var c = ! 0 , d = Object . getOwnPropertyDescriptor && Object . ge
var c = this . getValue ( ) ; this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . CLICK , c , this , a ) , this . fireEvent ( BI . BasicButton . EVENT _CHANGE , c , this ) , b . action && BI . Actions . runAction ( b . action , "click" , b , this ) , BI . Actions . runGlobalAction ( "click" , b , this ) } } , _doClick : function ( a ) { this . isValid ( ) && this . beforeClick ( a ) , this . _trigger ( a ) , this . isValid ( ) && this . doClick ( a ) } , beforeClick : function ( ) { } , doClick : function ( ) { } , handle : function ( ) { return this } , hover : function ( ) { this . _hover = ! 0 , this . handle ( ) . element . addClass ( "hover" ) , this . options . shadow && this . $mask && this . $mask . setVisible ( ! 0 ) } , dishover : function ( ) { this . _hover = ! 1 , this . handle ( ) . element . removeClass ( "hover" ) , this . options . shadow && this . $mask && this . $mask . setVisible ( ! 1 ) } , setSelected : function ( a ) { var b = this . options ; b . selected = a , a ? this . handle ( ) . element . addClass ( "active" ) : this . handle ( ) . element . removeClass ( "active" ) , b . shadow && ! b . isShadowShowingOnSelected && this . $mask && this . $mask . setVisible ( ! 1 ) } , isSelected : function ( ) { return this . options . selected } , isOnce : function ( ) { return this . options . once } , isForceSelected : function ( ) { return this . options . forceSelected } , isForceNotSelected : function ( ) { return this . options . forceNotSelected } , isDisableSelected : function ( ) { return this . options . disableSelected } , setText : function ( a ) { this . options . text = a } , getText : function ( ) { return this . options . text } , _setEnable : function ( a ) { BI . BasicButton . superclass . _setEnable . apply ( this , arguments ) , a === ! 0 ? this . element . removeClass ( "base-disabled disabled" ) : a === ! 1 && this . element . addClass ( "base-disabled disabled" ) , a || this . options . shadow && this . $mask && this . $mask . setVisible ( ! 1 ) } , empty : function ( ) { BI . Widget . _renderEngine . createElement ( document ) . unbind ( "mouseup." + this . getName ( ) ) , BI . BasicButton . superclass . empty . apply ( this , arguments ) } , destroy : function ( ) { BI . BasicButton . superclass . destroy . apply ( this , arguments ) } } ) , BI . BasicButton . EVENT _CHANGE = "BasicButton.EVENT_CHANGE" , BI . NodeButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . NodeButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { _baseCls : ( a . _baseCls || "" ) + " bi-node" , open : ! 1 } ) } , _init : function ( ) { BI . NodeButton . superclass . _init . apply ( this , arguments ) ; var a = this ; BI . nextTick ( function ( ) { a . setOpened ( a . isOpened ( ) ) } ) } , doClick : function ( ) { BI . NodeButton . superclass . doClick . apply ( this , arguments ) , this . setOpened ( ! this . isOpened ( ) ) } , isOnce : function ( ) { return ! 1 } , isOpened : function ( ) { return ! ! this . options . open } , setOpened : function ( a ) { this . options . open = ! ! a } , triggerCollapse : function ( ) { this . isOpened ( ) && ( this . setOpened ( ! 1 ) , this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , this . getValue ( ) , this ) ) } , triggerExpand : function ( ) { this . isOpened ( ) || ( this . setOpened ( ! 0 ) , this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , this . getValue ( ) , this ) ) } } ) , BI . Tip = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . Link . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { _baseCls : ( a . _baseCls || "" ) + " bi-tip" , zIndex : BI . zIndex _tip } ) } , _init : function ( ) { BI . Tip . superclass . _init . apply ( this , arguments ) , this . element . css ( { zIndex : this . options . zIndex } ) } } ) , BI . ButtonGroup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ButtonGroup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-button-group" , behaviors : { } , items : [ ] , value : "" , chooseType : BI . Selection . Single , layouts : [ { type : "bi.center" , hgap : 0 , vgap : 0 } ] } ) } , _init : function ( ) { BI . ButtonGroup . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = { } ; BI . each ( a . behaviors , function ( a , c ) { b [ a ] = BI . BehaviorFactory . createBehavior ( a , { rule : c } ) } ) , this . behaviors = b , this . populate ( a . items ) , ( BI . isKey ( a . value ) || BI . isNotEmptyArray ( a . value ) ) && this . setValue ( a . value ) } , _createBtns : function ( a ) { this . options ; return BI . createWidgets ( BI . createItems ( a , { type : "bi.text_button" } ) ) } , _btnsCreator : function ( a ) { var b = this , c = Array . prototype . slice . call ( arguments ) , d = this . options , e = this . _createBtns ( a ) ; return c [ 0 ] = e , BI . each ( this . behaviors , function ( a , b ) { b . doBehavior . apply ( b , c ) } ) , BI . each ( e , function ( a , c ) { c . on ( BI . Controller . EVENT _CHANGE , function ( a , e , f ) { if ( a === BI . Events . CLICK ) { switch ( d . chooseType ) { case BI . ButtonGroup . CHOOSE _TYPE _SINGLE : b . setValue ( c . getValue ( ) ) ; break ; case BI . ButtonGroup . CHOOSE _
a . isEnabled ( ) && a . isValid ( ) && a . combo . isEnabled ( ) && a . combo . isValid ( ) && a . element . removeClass ( b . hoverClass ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . combo } ] } ) , b . isDefaultInit && this . _assertPopupView ( ) , BI . Resizers . add ( this . getName ( ) , BI . bind ( function ( ) { this . isViewVisible ( ) && this . _hideView ( ) } , this ) ) } , _toggle : function ( ) { this . _assertPopupViewRender ( ) , this . popupView . isVisible ( ) ? this . _hideView ( ) : this . isEnabled ( ) && this . _popupView ( ) } , _initPullDownAction : function ( ) { function a ( ) { b . isEnabled ( ) && b . isValid ( ) && b . combo . isEnabled ( ) && b . combo . isValid ( ) && c . toggle === ! 0 && ( b . _hideView ( ) , b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _COLLAPSE ) ) , b . popupView && b . popupView . element . off ( "mouseenter." + b . getName ( ) ) . off ( "mouseleave." + b . getName ( ) ) , f = ! 1 } var b = this , c = this . options , d = ( this . options . trigger || "" ) . split ( "," ) , e = function ( a ) { c . stopEvent && a . stopEvent ( ) , c . stopPropagation && a . stopPropagation ( ) } , f = ! 1 ; BI . each ( d , function ( d , g ) { switch ( g ) { case "hover" : b . element . on ( "mouseenter." + b . getName ( ) , function ( a ) { b . isEnabled ( ) && b . isValid ( ) && b . combo . isEnabled ( ) && b . combo . isValid ( ) && ( b . _popupView ( ) , b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _EXPAND ) ) } ) , b . element . on ( "mouseleave." + b . getName ( ) , function ( c ) { b . popupView && ( b . popupView . element . on ( "mouseenter." + b . getName ( ) , function ( c ) { f = ! 0 , b . popupView . element . on ( "mouseleave." + b . getName ( ) , function ( b ) { a ( ) } ) , b . popupView . element . off ( "mouseenter." + b . getName ( ) ) } ) , BI . defer ( function ( ) { f || a ( ) } , 50 ) ) } ) ; break ; case "click" : var h = BI . debounce ( function ( a ) { b . combo . element . _ _isMouseInBounds _ _ ( a ) && b . isEnabled ( ) && b . isValid ( ) && b . combo . isEnabled ( ) && b . combo . isValid ( ) && ( c . toggle ? b . _toggle ( ) : b . _popupView ( ) , b . isViewVisible ( ) ? ( b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _EXPAND ) ) : ( b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _COLLAPSE ) ) ) } , BI . EVENT _RESPONSE _TIME , { leading : ! 0 , trailing : ! 1 } ) ; b . element . off ( g + "." + b . getName ( ) ) . on ( g + "." + b . getName ( ) , function ( a ) { h ( a ) , e ( a ) } ) ; break ; case "click-hover" : var h = BI . debounce ( function ( a ) { b . combo . element . _ _isMouseInBounds _ _ ( a ) && b . isEnabled ( ) && b . isValid ( ) && b . combo . isEnabled ( ) && b . combo . isValid ( ) && ( b . _popupView ( ) , b . isViewVisible ( ) && ( b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _EXPAND ) ) ) } , BI . EVENT _RESPONSE _TIME , { leading : ! 0 , trailing : ! 1 } ) ; b . element . off ( "click." + b . getName ( ) ) . on ( "click." + b . getName ( ) , function ( a ) { h ( a ) , e ( a ) } ) , b . element . on ( "mouseleave." + b . getName ( ) , function ( c ) { b . popupView && ( b . popupView . element . on ( "mouseenter." + b . getName ( ) , function ( c ) { f = ! 0 , b . popupView . element . on ( "mouseleave." + b . getName ( ) , function ( b ) { a ( ) } ) , b . popupView . element . off ( "mouseenter." + b . getName ( ) ) } ) , BI . defer ( function ( ) { f || a ( ) } , 50 ) ) } ) } } ) } , _initCombo : function ( ) { this . combo = 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.popup_view" , value : b . value } , this ) , this . popupView . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { b === BI . Events . CLICK && ( a . combo . setValue ( a . getValue ( ) ) , a . fireEvent ( BI . Combo . EVENT _CHANGE , c , d ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . popupView . setVisible ( ! 1 ) , BI . nextTick ( function ( ) { a . fireEvent ( BI . Combo . EVENT _AFTER _INIT ) } ) ) } , _assertPopupViewRender : function ( ) { this . _assertPopupView ( ) , this . _rendered || ( BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this . options . container || this , items : [ { el : this . popupView } ] } ) , this . _rendered = ! 0 ) } , _hideIf : function ( a ) { if ( ! ( this . element . find ( a . target ) . length > 0 || this . popupView && this . popupView . element . find ( a . target ) . length > 0 || "CodeMirror-cursor" === a . target . className || BI . Widget . _renderEngine . createElement ( a . target ) . closest ( ".CodeMirror-hints" ) . length > 0 ) ) { var b = this . options . hideChecker . apply ( this , [ a ] ) ; b !== ! 1 && this . _hideView ( ) } } , _hideView : function ( ) { this . fireEvent ( BI . Combo . EVENT _BEFORE _HIDEVIEW ) , this . options . destroyWhenHide === ! 0 ? ( this . popupView && this . popupView . destroy ( ) , this . popupView = null , this . _re
direction : BI . Direction . Top , trigger : "click" , toggle : ! 0 , el : { } , popup : { } , adapter : null , masker : { } , switcherClass : "bi-switcher-popup" , hoverClass : "bi-switcher-hover" } ) } , _init : function ( ) { BI . Switcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . _initSwitcher ( ) , this . _initPullDownAction ( ) , this . switcher . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . isEnabled ( ) && a . isValid ( ) && ( b === BI . Events . EXPAND && a . _popupView ( ) , b === BI . Events . COLLAPSE && a . _hideView ( ) , b === BI . Events . EXPAND && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . fireEvent ( BI . Switcher . EVENT _EXPAND ) ) , b === BI . Events . COLLAPSE && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . isViewVisible ( ) && a . fireEvent ( BI . Switcher . EVENT _COLLAPSE ) ) , b === BI . Events . CLICK && a . fireEvent ( BI . Switcher . EVENT _TRIGGER _CHANGE , c , d ) ) } ) , this . element . hover ( function ( ) { a . isEnabled ( ) && a . switcher . isEnabled ( ) && a . element . addClass ( b . hoverClass ) } , function ( ) { a . isEnabled ( ) && a . switcher . isEnabled ( ) && a . element . removeClass ( b . hoverClass ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . switcher } ] } ) , b . isDefaultInit && this . _assertPopupView ( ) } , _toggle : function ( ) { this . _assertPopupView ( ) , this . isExpanded ( ) ? this . _hideView ( ) : this . isEnabled ( ) && this . _popupView ( ) } , _initPullDownAction : function ( ) { var a = this , b = this . options , c = this . options . trigger . split ( "," ) ; BI . each ( c , function ( c , d ) { switch ( d ) { case "hover" : a . element [ d ] ( function ( b ) { a . isEnabled ( ) && a . switcher . isEnabled ( ) && ( a . _popupView ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _EXPAND ) ) } , function ( ) { a . isEnabled ( ) && a . switcher . isEnabled ( ) && b . toggle && ( a . _hideView ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _COLLAPSE ) ) } ) ; break ; default : d && a . element . off ( d + "." + a . getName ( ) ) . on ( d + "." + a . getName ( ) , BI . debounce ( function ( c ) { a . switcher . element . _ _isMouseInBounds _ _ ( c ) && a . isEnabled ( ) && a . switcher . isEnabled ( ) && ( b . toggle ? a . _toggle ( ) : a . _popupView ( ) , a . isExpanded ( ) ? ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _EXPAND ) ) : ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _COLLAPSE ) ) ) } , BI . EVENT _RESPONSE _TIME , { leading : ! 0 , trailing : ! 1 } ) ) } } ) } , _initSwitcher : function ( ) { this . switcher = BI . createWidget ( this . options . el , { value : this . options . value } ) } , _assertPopupView : function ( ) { var a = this , b = this . options ; this . _created || ( this . popupView = BI . createWidget ( b . popup , { type : "bi.button_group" , element : b . adapter && BI . Maskers . create ( this . getName ( ) , b . adapter , BI . extend ( { container : this } , b . masker ) ) , cls : "switcher-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 . Switcher . EVENT _CHANGE , c , d ) } ) , b . direction === BI . Direction . Custom || b . adapter || BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . popupView } ] } ) , this . _created = ! 0 , BI . nextTick ( function ( ) { a . fireEvent ( BI . Switcher . EVENT _AFTER _INIT ) } ) ) } , _hideView : function ( ) { this . fireEvent ( BI . Switcher . EVENT _BEFORE _HIDEVIEW ) ; var a = this , b = this . options ; b . adapter ? BI . Maskers . hide ( a . getName ( ) ) : a . popupView && a . popupView . setVisible ( ! 1 ) , BI . nextTick ( function ( ) { b . adapter ? BI . Maskers . hide ( a . getName ( ) ) : a . popupView && a . popupView . setVisible ( ! 1 ) , a . element . removeClass ( b . switcherClass ) , a . fireEvent ( BI . Switcher . EVENT _AFTER _HIDEVIEW ) } ) } , _popupView : function ( ) { var a = this , b = this . options ; this . _assertPopupView ( ) , this . fireEvent ( BI . Switcher . EVENT _BEFORE _POPUPVIEW ) , b . adapter ? BI . Maskers . show ( this . getName ( ) ) : a . popupView . setVisible ( ! 0 ) , BI . nextTick ( function ( c ) { b . adapter ? BI . Maskers . show ( c ) : a . popupView . setVisible ( ! 0 ) , a . element . addClass ( b . switcherClass ) , a . fireEvent ( BI . Switcher . EVENT _AFTER _POPUPVIEW ) } , this . getName ( ) ) } , populate : function ( a ) { this . _assertPopupView ( ) , this . popupView . populate . apply ( this . popupView , arguments ) , this . switcher . populate . apply ( this . switcher , arguments ) } , _setEnable : function ( a ) { BI . Switcher . superclass . _setEnable . apply ( this , arguments ) , ! a && this . isViewVisible ( ) && this . _hideView ( ) } , setVal
root : ! 0 } , BI . stripEL ( a . items [ j ] ) ) ) ; m . appendChild ( n . element [ 0 ] ) } this . cache [ h ] . destroyed = ! 1 } } this . container . element . prepend ( k ) , this . container . element . append ( l ) , this . topBlank . setHeight ( this . cache [ e < 0 ? 0 : e ] . scrollTop ) ; var o = this . cache [ Math . min ( f , this . renderedIndex ) ] ; this . bottomBlank . setHeight ( this . tree . sumTo ( this . renderedIndex ) - o . scrollTop - o . height ) , BI . each ( g , function ( a , b ) { b && b . _destroy ( ) } ) } , _populate : function ( a ) { var b = this . options ; a && this . options . items !== a && ( this . options . items = a ) , this . tree = BI . PrefixIntervalTree . empty ( Math . ceil ( b . items . length / b . blockSize ) ) , this . _calculateBlocksToRender ( ) , this . element . scrollTop ( b . scrollTop ) } , _clearChildren : function ( ) { BI . each ( this . container . _children , function ( a , b ) { b && b . el . _destroy ( ) } ) , this . container . _children = { } , this . container . attr ( "items" , [ ] ) } , restore : function ( ) { this . renderedIndex = - 1 , this . _clearChildren ( ) , this . cache = { } , this . options . scrollTop = 0 } , populate : function ( a ) { a && this . options . items !== a && this . restore ( ) , this . _populate ( ) } , destroyed : function ( ) { this . restore ( ) } } ) , BI . shortcut ( "bi.virtual_list" , BI . VirtualList ) , BI . Pager = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . Pager . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-pager" , behaviors : { } , layouts : [ { type : "bi.horizontal" , hgap : 10 , vgap : 0 } ] , dynamicShow : ! 0 , dynamicShowFirstLast : ! 1 , dynamicShowPrevNext : ! 1 , pages : ! 1 , curr : function ( ) { return 1 } , groups : 0 , jump : BI . emptyFn , first : ! 1 , last : ! 1 , prev : "上一页" , next : "下一页" , firstPage : 1 , lastPage : function ( ) { return 1 } , hasPrev : BI . emptyFn , hasNext : BI . emptyFn } ) } , _init : function ( ) { BI . Pager . superclass . _init . apply ( this , arguments ) ; this . currPage = BI . result ( this . options , "curr" ) , this . _populate ( ) } , _populate : function ( ) { var a = this , b = this . options , c = [ ] , d = { } ; this . empty ( ) ; var e = BI . result ( b , "pages" ) , f = BI . result ( this , "currPage" ) , g = BI . result ( b , "groups" ) , h = BI . result ( b , "first" ) , i = BI . result ( b , "last" ) , j = BI . result ( b , "prev" ) , k = BI . result ( b , "next" ) ; e === ! 1 ? ( g = 0 , h = ! 1 , i = ! 1 ) : g > e && ( g = e ) , d . index = Math . ceil ( ( f + ( g > 1 && g !== e ? 1 : 0 ) ) / ( 0 === g ? 1 : g ) ) , ( ! b . dynamicShow && ! b . dynamicShowPrevNext || f > 1 ) && j !== ! 1 && ( BI . isKey ( j ) ? c . push ( { text : j , value : "prev" , disabled : e === ! 1 ? b . hasPrev ( f ) === ! 1 : ! ( f > 1 && j !== ! 1 ) } ) : c . push ( BI . extend ( { disabled : e === ! 1 ? b . hasPrev ( f ) === ! 1 : ! ( f > 1 && j !== ! 1 ) } , j ) ) ) , ( ! b . dynamicShow && ! b . dynamicShowFirstLast || d . index > 1 && 0 !== g ) && h && ( c . push ( { text : h , value : "first" , disabled : ! ( d . index > 1 && 0 !== g ) } ) , d . index > 1 && 0 !== g && c . push ( { type : "bi.label" , cls : "page-ellipsis" , text : "…" } ) ) , d . poor = Math . floor ( ( g - 1 ) / 2 ) , d . start = d . index > 1 ? f - d . poor : 1 , d . end = d . index > 1 ? function ( ) { var a = f + ( g - d . poor - 1 ) ; return a > e ? e : a } ( ) : g , d . end - d . start < g - 1 && ( d . start = d . end - g + 1 ) ; var l = d . start , m = d . end ; for ( h && i && d . index > 1 && 0 !== g && e > g && d . end < e && 0 !== g && ( l ++ , m -- ) ; l <= m ; l ++ ) l === f ? c . push ( { text : l , value : l , selected : ! 0 } ) : c . push ( { text : l , value : l } ) ; ( ! b . dynamicShow && ! b . dynamicShowFirstLast || e > g && d . end < e && 0 !== g ) && i && ( e > g && d . end < e && 0 !== g && c . push ( { type : "bi.label" , cls : "page-ellipsis" , text : "…" } ) , c . push ( { text : i , value : "last" , disabled : ! ( e > g && d . end < e && 0 !== g ) } ) ) , d . flow = ! j && 0 === g , ( ! b . dynamicShow && ! b . dynamicShowPrevNext && k || f !== e && k || d . flow ) && c . push ( function ( ) { return BI . isKey ( k ) ? e === ! 1 ? { text : k , value : "next" , disabled : b . hasNext ( f ) === ! 1 } : d . flow && f === e ? { text : k , value : "next" , disabled : ! 0 } : { text : k , value : "next" , disabled : ! ( f !== e && k || d . flow ) } : BI . extend ( { disabled : e === ! 1 ? b . hasNext ( f ) === ! 1 : ! ( f !== e && k || d . flow ) } , k ) } ( ) ) , this . button _group = BI . createWidget ( { type : "bi.button_group" , element : this , items : BI . createItems ( c , { cls : "bi-list-item-select" , height : 23 , hgap : 10 } ) , behaviors : b . behaviors , layouts : b . layouts } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( c , d , f ) { if ( c === BI . Events . CLICK ) { var g = a . button _group . getValue ( ) [ 0 ] ; switch ( g ) { case "first" : a . currPage = 1 ; break ; case "last" : a . currPage = e ; break ; case "prev" : a . currPage -- ; break ; case "next" : a . currPage ++ ; break ; default : a . currPage = g } b . jump . apply ( a , [ { pages : e , curr : a . currPage } ] ) , a . _populate ( ) , a . fireEvent ( BI . Pager . EVENT _CHANGE , f ) } a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . fireEvent ( BI . Pager . EVENT _AFTER _POPULATE ) } , getCurrentPage : function ( ) { return this . currPage } , setAllPages : function ( a ) { this . options . pages = a } , hasPrev : function ( a ) { a || ( a = 1 ) ; var b = this . options , c = this . options . pages ; return c === ! 1
text : a . text , value : a . value , keyword : a . keyword , py : a . py } ) } , doClick : function ( ) { BI . TextNode . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . TextNode . EVENT _CHANGE , this . getValue ( ) , this ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , setValue : function ( ) { this . isReadOnly ( ) || this . text . setValue . apply ( this . text , arguments ) } , getValue : function ( ) { return this . text . getValue ( ) } , setText : function ( ) { this . text . setText . apply ( this . text , arguments ) } , getText : function ( ) { return this . text . getText ( ) } } ) , BI . TextNode . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_node" , BI . TextNode ) , BI . Editor = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . Editor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : "bi-editor bi-focus-shadow" , hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , tipType : "warning" , inputType : "text" , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 1 , watermark : "" , errorText : "" } ) } , _init : function ( ) { BI . Editor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = this . addWidget ( BI . createWidget ( { type : "bi.input" , element : "<input type='" + b . inputType + "'/>" , root : ! 0 , value : b . value , watermark : b . watermark , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank } ) ) , this . editor . element . css ( { width : "100%" , height : "100%" , border : "none" , outline : "none" , padding : "0" , margin : "0" } ) , BI . isKey ( this . options . watermark ) && ( this . watermark = BI . createWidget ( { type : "bi.label" , cls : "bi-water-mark" , text : this . options . watermark , forceCenter : ! 0 , height : b . height - 2 * ( b . vgap + b . tgap ) , whiteSpace : "nowrap" , textAlign : "left" } ) , this . watermark . element . bind ( { mousedown : function ( b ) { a . isEnabled ( ) ? a . editor . isEditing ( ) || a . editor . focus ( ) : a . editor . isEditing ( ) && a . editor . blur ( ) , b . stopEvent ( ) } } ) , this . watermark . element . bind ( "click" , function ( b ) { a . isEnabled ( ) ? a . editor . isEditing ( ) || a . editor . focus ( ) : a . editor . isEditing ( ) && a . editor . blur ( ) , b . stopEvent ( ) } ) ) ; var c = [ ] ; this . watermark && c . push ( { el : this . watermark , left : 3 , right : 3 , top : 0 , bottom : 0 } ) , c . push ( { el : this . editor , left : 0 , right : 0 , top : 0 , bottom : 0 } ) ; var d = [ { el : { type : "bi.absolute" , items : c } , left : b . hgap + b . lgap , right : b . hgap + b . rgap , top : b . vgap + b . tgap , bottom : b . vgap + b . bgap } ] ; BI . createWidget ( { type : "bi.absolute" , element : this , items : d } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _FOCUS , function ( ) { a . _checkError ( ) , a . element . addClass ( "bi-editor-focus" ) , a . fireEvent ( BI . Editor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Input . EVENT _BLUR , function ( ) { a . _setErrorVisible ( ! 1 ) , a . element . removeClass ( "bi-editor-focus" ) , a . fireEvent ( BI . Editor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Input . EVENT _CLICK , function ( ) { a . fireEvent ( BI . Editor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Input . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Editor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . Editor . EVENT _KEY _DOWN , arguments ) } ) , this . editor . on ( BI . Input . EVENT _QUICK _DOWN , function ( b ) { b . keyCode !== BI . KeyCode . TAB && a . watermark && a . watermark . invisible ( ) } ) , this . editor . on ( BI . Input . EVENT _VALID , function ( ) { a . _checkWaterMark ( ) , a . _setErrorVisible ( ! 1 ) , a . fireEvent ( BI . Editor . EVENT _VALID , arguments ) } ) , this . editor . on ( BI . Input . EVENT _ERROR , function ( ) { a . _checkWaterMark ( ) , a . fireEvent ( BI . Editor . EVENT _ERROR , arguments ) , a . _setErrorVisible ( a . isEditing ( ) ) } ) , this . editor . on ( BI . Input . EVENT _RESTRICT , function ( ) { a . _checkWaterMark ( ) ; var b = a . _setErrorVisible ( ! 0 ) ; b && b . element . fadeOut ( 100 , function ( ) { b . element . fadeIn ( 100 ) } ) , a . fireEvent ( BI . Editor . EVENT _RESTRICT , arguments ) } ) , this . editor . on ( BI . Input . EVENT _EMPTY , function ( ) { a . _checkWaterMark ( ) , a . fireEvent ( BI . Editor . EVENT _EMPTY , arguments ) } ) , this . editor . on ( BI . Input . EVENT _ENTER , function ( ) { a . fireEvent ( BI . Editor . EVENT _ENTER , arguments ) } ) , this . editor . on ( BI . Input . EVENT _SPACE , function ( ) { a . fireEvent ( BI . Editor . EVENT _SPACE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _BACKSPACE , function ( ) { a . fireEvent ( BI . Editor . EVENT _BACKSPACE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _REMOVE , function ( ) { a . fireEvent ( BI . Edito
BI . nextTick ( BI . bind ( function ( ) { this . _checkValidationOnValueChange ( ) , this . _defaultState ( ) , this . isValid ( ) && ( this . _lastValidValue = this . _lastSubmitValue = this . getValue ( ) ) } , this ) ) } , getValue : function ( ) { return this . element . val ( ) || "" } , isEditing : function ( ) { return this . _isEditing } , getLastValidValue : function ( ) { return this . _lastChangedValue } , _setValid : function ( ) { BI . Input . superclass . _setValid . apply ( this , arguments ) , this . isValid ( ) ? ( this . _lastChangedValue = this . getValue ( ) , this . element . removeClass ( "bi-input-error" ) , this . fireEvent ( BI . Input . EVENT _VALID , BI . trim ( this . getValue ( ) ) , this ) ) : ( this . _lastChangedValue === this . getValue ( ) && ( this . _lastChangedValue = null ) , this . element . addClass ( "bi-input-error" ) , this . fireEvent ( BI . Input . EVENT _ERROR , BI . trim ( this . getValue ( ) ) , this ) ) } , _setEnable : function ( a ) { BI . Input . superclass . _setEnable . apply ( this , [ a ] ) , this . element [ 0 ] . disabled = ! a } } ) , BI . Input . EVENT _CHANGE = "EVENT_CHANGE" , BI . Input . EVENT _FOCUS = "EVENT_FOCUS" , BI . Input . EVENT _CLICK = "EVENT_CLICK" , BI . Input . EVENT _BLUR = "EVENT_BLUR" , BI . Input . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . Input . EVENT _QUICK _DOWN = "EVENT_QUICK_DOWN" , BI . Input . EVENT _SPACE = "EVENT_SPACE" , BI . Input . EVENT _BACKSPACE = "EVENT_BACKSPACE" , BI . Input . EVENT _START = "EVENT_START" , BI . Input . EVENT _PAUSE = "EVENT_PAUSE" , BI . Input . EVENT _STOP = "EVENT_STOP" , BI . Input . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . Input . EVENT _REMOVE = "EVENT_REMOVE" , BI . Input . EVENT _EMPTY = "EVENT_EMPTY" , BI . Input . EVENT _VALID = "EVENT_VALID" , BI . Input . EVENT _ERROR = "EVENT_ERROR" , BI . Input . EVENT _ENTER = "EVENT_ENTER" , BI . Input . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . shortcut ( "bi.input" , BI . Input ) , BI . ImageRadio = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { var a = BI . ImageRadio . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-radio radio-icon" , selected : ! 1 , handler : BI . emptyFn , width : 16 , height : 16 , iconWidth : 16 , iconHeight : 16 } ) } , _init : function ( ) { BI . ImageRadio . superclass . _init . apply ( this , arguments ) } , doClick : function ( ) { BI . ImageRadio . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . ImageRadio . EVENT _CHANGE ) } } ) , BI . ImageRadio . EVENT _CHANGE = "Radio.EVENT_CHANGE" , BI . shortcut ( "bi.image_radio" , BI . ImageRadio ) , BI . Radio = BI . inherit ( BI . BasicButton , { props : { baseCls : "bi-radio" , selected : ! 1 , handler : BI . emptyFn , width : 16 , height : 16 , iconWidth : 14 , iconHeight : 14 } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.center_adapt" , element : this . element , items : [ { type : "bi.layout" , cls : "radio-content bi-border" , ref : function ( b ) { a . radio = b } , width : b . iconWidth , height : b . iconHeight } ] } } , _setEnable : function ( a ) { BI . Radio . superclass . _setEnable . apply ( this , arguments ) , a === ! 0 ? this . radio . element . removeClass ( "base-disabled disabled" ) : this . radio . element . addClass ( "base-disabled disabled" ) } , doClick : function ( ) { BI . Radio . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . Radio . EVENT _CHANGE ) } , setSelected : function ( a ) { BI . Radio . superclass . setSelected . apply ( this , arguments ) , a ? this . radio . element . removeClass ( "bi-border" ) . addClass ( "bi-high-light-background bi-high-light-border" ) : this . radio . element . removeClass ( "bi-high-light-background bi-high-light-border" ) . addClass ( "bi-border" ) } } ) , BI . Radio . EVENT _CHANGE = "Radio.EVENT_CHANGE" , BI . shortcut ( "bi.radio" , BI . Radio ) , BI . HtmlLabel = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . HtmlLabel . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-label" , textAlign : "center" , whiteSpace : "nowrap" , forceCenter : ! 1 , textWidth : null , textHeight : null , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , text : "" } ) } , _createJson : function ( ) { var a = this . options ; return { type : "bi.html" , textAlign : a . textAlign , whiteSpace : a . whiteSpace , lineHeight : a . textHeight , text : a . text , value : a . value } } , _init : function ( ) { BI . HtmlLabel . superclass . _init . apply ( this , arguments ) , "center" === this . options . textAlign ? this . _createCenterEl ( ) : this . _createNotCenterEl ( ) } , _createCenterEl : function ( ) { var a = this . options , b = this . _createJson ( ) ; if ( BI . isNumber ( a . width ) && a . width > 0 ) { if ( BI . isNumber ( a . textWidth ) && a . textWidth > 0 ) { if ( BI . isNumber ( a . height ) && a . height > 0 ) { var c = ( a . width - a . textWidth ) / 2 ; return BI . createWidget ( { type : "bi.adaptive" , height : a . height , scrollable : " n
_init . innerBeforeA . push ( a ) } , addInitBind : function ( a ) { _init . bind . push ( a ) } , addInitUnBind : function ( a ) { _init . unbind . push ( a ) } , addInitCache : function ( a ) { _init . caches . push ( a ) } , addInitNode : function ( a ) { _init . nodes . push ( a ) } , addInitProxy : function ( a , b ) { b ? _init . proxys . splice ( 0 , 0 , a ) : _init . proxys . push ( a ) } , addInitRoot : function ( a ) { _init . roots . push ( a ) } , addNodesData : function ( a , b , c ) { var d = a . data . key . children ; b [ d ] || ( b [ d ] = [ ] ) , b [ d ] . length > 0 && ( b [ d ] [ b [ d ] . length - 1 ] . isLastNode = ! 1 , view . setNodeLineIcos ( a , b [ d ] [ b [ d ] . length - 1 ] ) ) , b . isParent = ! 0 , b [ d ] = b [ d ] . concat ( c ) } , addSelectedNode : function ( a , b ) { var c = data . getRoot ( a ) ; data . isSelectedNode ( a , b ) || c . curSelectedList . push ( b ) } , addCreatedNode : function ( a , b ) { if ( a . callback . onNodeCreated || a . view . addDiyDom ) { var c = data . getRoot ( a ) ; c . createdNodes . push ( b ) } } , addZTreeTools : function ( a ) { _init . zTreeTools . push ( a ) } , exSetting : function ( a ) { $ . extend ( ! 0 , _setting , a ) } , fixPIdKeyValue : function ( a , b ) { a . data . simpleData . enable && ( b [ a . data . simpleData . pIdKey ] = b . parentTId ? b . getParentNode ( ) [ a . data . simpleData . idKey ] : a . data . simpleData . rootPId ) } , getAfterA : function ( a , b , c ) { for ( var d = 0 , e = _init . afterA . length ; d < e ; d ++ ) _init . afterA [ d ] . apply ( this , arguments ) } , getBeforeA : function ( a , b , c ) { for ( var d = 0 , e = _init . beforeA . length ; d < e ; d ++ ) _init . beforeA [ d ] . apply ( this , arguments ) } , getInnerAfterA : function ( a , b , c ) { for ( var d = 0 , e = _init . innerAfterA . length ; d < e ; d ++ ) _init . innerAfterA [ d ] . apply ( this , arguments ) } , getInnerBeforeA : function ( a , b , c ) { for ( var d = 0 , e = _init . innerBeforeA . length ; d < e ; d ++ ) _init . innerBeforeA [ d ] . apply ( this , arguments ) } , getCache : function ( a ) { return caches [ a . treeId ] } , getNextNode : function ( a , b ) { if ( ! b ) return null ; for ( var c = a . data . key . children , d = b . parentTId ? b . getParentNode ( ) : data . getRoot ( a ) , e = 0 , f = d [ c ] . length - 1 ; e <= f ; e ++ ) if ( d [ c ] [ e ] === b ) return e == f ? null : d [ c ] [ e + 1 ] ; return null } , getNodeByParam : function ( a , b , c , d ) { if ( ! b || ! c ) return null ; for ( var e = a . data . key . children , f = 0 , g = b . length ; f < g ; f ++ ) { if ( b [ f ] [ c ] == d ) return b [ f ] ; var h = data . getNodeByParam ( a , b [ f ] [ e ] , c , d ) ; if ( h ) return h } return null } , getNodeCache : function ( a , b ) { if ( ! b ) return null ; var c = caches [ a . treeId ] . nodes [ data . getNodeCacheId ( b ) ] ; return c ? c : null } , getNodeName : function ( a , b ) { var c = a . data . key . name ; return "" + b [ c ] } , getNodeTitle : function ( a , b ) { var c = "" === a . data . key . title ? a . data . key . name : a . data . key . title ; return "" + b [ c ] } , getNodes : function ( a ) { return data . getRoot ( a ) [ a . data . key . children ] } , getNodesByParam : function ( a , b , c , d ) { if ( ! b || ! c ) return [ ] ; for ( var e = a . data . key . children , f = [ ] , g = 0 , h = b . length ; g < h ; g ++ ) b [ g ] [ c ] == d && f . push ( b [ g ] ) , f = f . concat ( data . getNodesByParam ( a , b [ g ] [ e ] , c , d ) ) ; return f } , getNodesByParamFuzzy : function ( a , b , c , d ) { if ( ! b || ! c ) return [ ] ; var e = a . data . key . children , f = [ ] ; d = d . toLowerCase ( ) ; for ( var g = 0 , h = b . length ; g < h ; g ++ ) "string" == typeof b [ g ] [ c ] && b [ g ] [ c ] . toLowerCase ( ) . indexOf ( d ) > - 1 && f . push ( b [ g ] ) , f = f . concat ( data . getNodesByParamFuzzy ( a , b [ g ] [ e ] , c , d ) ) ; return f } , getNodesByFilter : function ( a , b , c , d , e ) { if ( ! b ) return d ? null : [ ] ; for ( var f = a . data . key . children , g = d ? null : [ ] , h = 0 , i = b . length ; h < i ; h ++ ) { if ( tools . apply ( c , [ b [ h ] , e ] , ! 1 ) ) { if ( d ) return b [ h ] ; g . push ( b [ h ] ) } var j = data . getNodesByFilter ( a , b [ h ] [ f ] , c , d , e ) ; if ( d && j ) return j ; g = d ? j : g . concat ( j ) } return g } , getPreNode : function ( a , b ) { if ( ! b ) return null ; for ( var c = a . data . key . children , d = b . parentTId ? b . getParentNode ( ) : data . getRoot ( a ) , e = 0 , f = d [ c ] . length ; e < f ; e ++ ) if ( d [ c ] [ e ] === b ) return 0 == e ? null : d [ c ] [ e - 1 ] ; return null } , getRoot : function ( a ) { return a ? roots [ a . treeId ] : null } , getRoots : function ( ) { return roots } , getSetting : function ( a ) { return settings [ a ] } , getSettings : function ( ) { return settings } , getZTreeTools : function ( a ) { var b = this . getRoot ( this . getSetting ( a ) ) ; return b ? b . treeTools : null } , initCache : function ( a ) { for ( var b = 0 , c = _init . caches . length ; b < c ; b ++ ) _init . caches [ b ] . apply ( this , arguments ) } , initNode : function ( a , b , c , d , e , f ) { for ( var g = 0 , h = _init . nodes . length ; g < h ; g ++ ) _init . nodes [ g ] . apply ( this , arguments ) } , initRoot : function ( a ) { for ( var b = 0 , c = _init . roots . length ; b < c ; b ++ ) _init . roots [ b ] . apply ( this , arguments ) } , isSelectedNode : function ( a , b ) { for ( var c = data . getRoot ( a ) , d = 0 , e = c . curSelectedList . length ; d < e ; d ++ ) if ( b === c . curSelectedList [ d ] ) return ! 0 ; return ! 1 } , removeNodeCache : function ( a , b ) { var c = a . data . key . children ; if ( b [ c ] ) for ( var d = 0 , e = b [ c ] . length ; d < e ; d ++ ) arguments . callee ( a , b [ c ] [ d ] ) ; data . getC
if ( ! b ) return [ ] ; var d = a . data . key . children , e = a . data . key . checked ; c = c ? c : [ ] ; for ( var f = 0 , g = b . length ; f < g ; f ++ ) b [ f ] . nocheck !== ! 0 && b [ f ] . chkDisabled !== ! 0 && b [ f ] [ e ] != b [ f ] . checkedOld && c . push ( b [ f ] ) , v . getTreeChangeCheckedNodes ( a , b [ f ] [ d ] , c ) ; return c } , makeChkFlag : function ( a , b ) { if ( b ) { var c = a . data . key . children , d = a . data . key . checked , e = - 1 ; if ( b [ c ] ) for ( var f = 0 , g = b [ c ] . length ; f < g ; f ++ ) { var h = b [ c ] [ f ] , i = - 1 ; if ( a . check . chkStyle == t . radio . STYLE ) { if ( i = h . nocheck === ! 0 || h . chkDisabled === ! 0 ? h . check _Child _State : h . halfCheck === ! 0 ? 2 : h [ d ] ? 2 : h . check _Child _State > 0 ? 2 : 0 , 2 == i ) { e = 2 ; break } 0 == i && ( e = 0 ) } else if ( a . check . chkStyle == t . checkbox . STYLE ) { if ( i = h . nocheck === ! 0 || h . chkDisabled === ! 0 ? h . check _Child _State : h . halfCheck === ! 0 ? 1 : h [ d ] ? h . check _Child _State === - 1 || 2 === h . check _Child _State ? 2 : 1 : h . check _Child _State > 0 ? 1 : 0 , 1 === i ) { e = 1 ; break } if ( 2 === i && e > - 1 && f > 0 && i !== e ) { e = 1 ; break } if ( 2 === e && i > - 1 && i < 2 ) { e = 1 ; break } i > - 1 && ( e = i ) } } b . check _Child _State = e } } } , m = { } , n = { onCheckNode : function ( a , b ) { if ( b . chkDisabled === ! 0 ) return ! 1 ; var c = v . getSetting ( a . data . treeId ) , d = c . data . key . checked ; if ( 0 == s . apply ( c . callback . beforeCheck , [ c . treeId , b ] , ! 0 ) ) return ! 0 ; b [ d ] = ! b [ d ] , u . checkNodeRelation ( c , b ) ; var e = w ( b , t . id . CHECK , c ) ; return u . setChkClass ( c , e , b ) , u . repairParentChkClassWithSelf ( c , b ) , c . treeObj . trigger ( t . event . CHECK , [ a , c . treeId , b ] ) , ! 0 } , onMouseoverCheck : function ( a , b ) { if ( b . chkDisabled === ! 0 ) return ! 1 ; var c = v . getSetting ( a . data . treeId ) , d = w ( b , t . id . CHECK , c ) ; return b . check _Focus = ! 0 , u . setChkClass ( c , d , b ) , ! 0 } , onMouseoutCheck : function ( a , b ) { if ( b . chkDisabled === ! 0 ) return ! 1 ; var c = v . getSetting ( a . data . treeId ) , d = w ( b , t . id . CHECK , c ) ; return b . check _Focus = ! 1 , u . setChkClass ( c , d , b ) , ! 0 } } , o = { } , p = { checkNodeRelation : function ( a , b ) { var c , d , e , f = a . data . key . children , g = a . data . key . checked , h = t . radio ; if ( a . check . chkStyle == h . STYLE ) { var i = v . getRadioCheckedList ( a ) ; if ( b [ g ] ) if ( a . check . radioType == h . TYPE _ALL ) { for ( d = i . length - 1 ; d >= 0 ; d -- ) c = i [ d ] , c [ g ] && c != b && ( c [ g ] = ! 1 , i . splice ( d , 1 ) , u . setChkClass ( a , w ( c , t . id . CHECK , a ) , c ) , c . parentTId != b . parentTId && u . repairParentChkClassWithSelf ( a , c ) ) ; i . push ( b ) } else { var j = b . parentTId ? b . getParentNode ( ) : v . getRoot ( a ) ; for ( d = 0 , e = j [ f ] . length ; d < e ; d ++ ) c = j [ f ] [ d ] , c [ g ] && c != b && ( c [ g ] = ! 1 , u . setChkClass ( a , w ( c , t . id . CHECK , a ) , c ) ) } else if ( a . check . radioType == h . TYPE _ALL ) for ( d = 0 , e = i . length ; d < e ; d ++ ) if ( b == i [ d ] ) { i . splice ( d , 1 ) ; break } } else b [ g ] && ( ! b [ f ] || 0 == b [ f ] . length || a . check . chkboxType . Y . indexOf ( "s" ) > - 1 ) && u . setSonNodeCheckBox ( a , b , ! 0 ) , b [ g ] || b [ f ] && 0 != b [ f ] . length && ! ( a . check . chkboxType . N . indexOf ( "s" ) > - 1 ) || u . setSonNodeCheckBox ( a , b , ! 1 ) , b [ g ] && a . check . chkboxType . Y . indexOf ( "p" ) > - 1 && u . setParentNodeCheckBox ( a , b , ! 0 ) , ! b [ g ] && a . check . chkboxType . N . indexOf ( "p" ) > - 1 && u . setParentNodeCheckBox ( a , b , ! 1 ) } , makeChkClass : function ( a , b ) { var c = a . data . key . checked , d = t . checkbox , e = t . radio , f = "" ; f = b . chkDisabled === ! 0 ? d . DISABLED : b . halfCheck ? d . PART : a . check . chkStyle == e . STYLE ? b . check _Child _State < 1 ? d . FULL : d . PART : b [ c ] ? 2 === b . check _Child _State || b . check _Child _State === - 1 ? d . FULL : d . PART : b . check _Child _State < 1 ? d . FULL : d . PART ; var g = a . check . chkStyle + "_" + ( b [ c ] ? d . TRUE : d . FALSE ) + "_" + f ; return g = b . check _Focus && b . chkDisabled !== ! 0 ? g + "_" + d . FOCUS : g , t . className . BUTTON + " " + d . DEFAULT + " " + g } , repairAllChk : function ( a , b ) { if ( a . check . enable && a . check . chkStyle === t . checkbox . STYLE ) for ( var c = a . data . key . checked , d = a . data . key . children , e = v . getRoot ( a ) , f = 0 , g = e [ d ] . length ; f < g ; f ++ ) { var h = e [ d ] [ f ] ; h . nocheck !== ! 0 && h . chkDisabled !== ! 0 && ( h [ c ] = b ) , u . setSonNodeCheckBox ( a , h , b ) } } , repairChkClass : function ( a , b ) { if ( b && ( v . makeChkFlag ( a , b ) , b . nocheck !== ! 0 ) ) { var c = w ( b , t . id . CHECK , a ) ; u . setChkClass ( a , c , b ) } } , repairParentChkClass : function ( a , b ) { if ( b && b . parentTId ) { var c = b . getParentNode ( ) ; u . repairChkClass ( a , c ) , u . repairParentChkClass ( a , c ) } } , repairParentChkClassWithSelf : function ( a , b ) { if ( b ) { var c = a . data . key . children ; b [ c ] && b [ c ] . length > 0 ? u . repairParentChkClass ( a , b [ c ] [ 0 ] ) : u . repairParentChkClass ( a , b ) } } , repairSonChkDisabled : function ( a , b , c , d ) { if ( b ) { var e = a . data . key . children ; if ( b . chkDisabled != c && ( b . chkDisabled = c ) , u . repairChkClass ( a , b ) , b [ e ] && d ) for ( var f = 0 , g = b [ e ] . length ; f < g ; f ++ ) { var h = b [ e ] [ f ] ; u . repairSonChkDisabled ( a , h , c , d ) } } } , repairParentChkDisabled : function ( a , b , c , d ) { b && ( b . chkDisabled != c && d && ( b . chkDisabled = c ) , u . repairChkClass ( a , b ) , u . repairParentChkDisabled ( a , b . getParentNode ( ) , c , d ) ) } , setChkClass : function
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 : 12 , el : { type : "bi.layout" , cls : b . pNode && b . pNode . isLastNode ? "" : "base-line-conn-background" , width : 12 , height : b . height } } , { width : 24 , el : { type : "bi.layout" , cls : "mid-line-conn-background" , width : 24 , 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 . MidTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . checkbox . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . MidTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . checkbox . setSelected ( a ) } } ) , BI . shortcut ( "bi.mid_tree_leaf_item" , BI . MidTreeLeafItem ) , BI . MultiLayerIconTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerIconTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multilayer-icon-tree-leaf-item bi-list-item-active" , layer : 0 , height : 24 , iconCls : "" , iconHeight : 16 , iconWidth : 16 } ) } , _init : function ( ) { BI . MultiLayerIconTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . item = BI . createWidget ( { type : "bi.icon_tree_leaf_item" , cls : "bi-list-item-none" , iconCls : b . iconCls , id : b . id , pId : b . pId , isFront : ! 0 , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py , iconWidth : b . iconWidth , iconHeight : b . iconHeight } ) , 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" , width : 24 , height : b . height } ) } ) , c . push ( this . item ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( b . layer , 24 ) , 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 . MultiLayerIconTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . item . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . MultiLayerIconTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . item . setSelected ( a ) } , getValue : function ( ) { return this . options . value } } ) , BI . shortcut ( "bi.multilayer_icon_tree_leaf_item" , BI . MultiLayerIconTreeLeafItem ) , BI . TreeTextLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . TreeTextLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-tree-text-leaf-item bi-list-item-active" , id : "" , pId : "" , height : 24 , hgap : 0 , lgap : 0 , rgap : 0 } ) } , _init : function ( ) { BI . TreeTextLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : a . height , height : a . height , hgap : a . hgap , lgap : a . lgap , rgap : a . hgap , text : a . text , value : a . value , py : a . py } ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ { el : this . text } ] } ) } , 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 } } ) , BI . shortcut ( "bi.tree_text_leaf_item" , BI . TreeTextLeafItem ) , BI . CalendarDateItem = BI . inherit ( BI . BasicButton , { render : function ( ) { var a = this , b = this . options ; return { type : "bi.absolute" , ite
} , _showPreColor : function ( a ) { "" === a ? this . colorShow . element . css ( "background-color" , "" ) . removeClass ( "trans-color-background" ) . addClass ( "auto-color-normal-background" ) : "transparent" === a ? this . colorShow . element . css ( "background-color" , "" ) . removeClass ( "auto-color-normal-background" ) . addClass ( "trans-color-background" ) : this . colorShow . element . css ( { "background-color" : a } ) . removeClass ( "auto-color-normal-background" ) . removeClass ( "trans-color-background" ) } , _setEnable : function ( a ) { BI . ColorPickerEditor . superclass . _setEnable . apply ( this , arguments ) , a === ! 0 ? this . element . removeClass ( "base-disabled disabled" ) : a === ! 1 && this . element . addClass ( "base-disabled disabled" ) } , setValue : function ( a ) { if ( "transparent" === a ) return this . transparent . setSelected ( ! 0 ) , this . none . setSelected ( ! 1 ) , this . _showPreColor ( "transparent" ) , this . R . setValue ( "" ) , this . G . setValue ( "" ) , this . B . setValue ( "" ) , void ( this . storeValue = { r : "" , g : "" , b : "" } ) ; a ? this . none . setSelected ( ! 1 ) : ( a = "" , this . none . setSelected ( ! 0 ) ) , this . transparent . setSelected ( ! 1 ) , this . _showPreColor ( a ) ; var b = BI . DOM . rgb2json ( BI . DOM . hex2rgb ( a ) ) ; this . storeValue = { r : BI . isNull ( b . r ) ? "" : b . r , g : BI . isNull ( b . r ) ? "" : b . g , b : BI . isNull ( b . r ) ? "" : b . b } , this . R . setValue ( this . storeValue . r ) , this . G . setValue ( this . storeValue . g ) , this . B . setValue ( this . storeValue . b ) } , getValue : function ( ) { return this . _isEmptyRGB ( ) && this . transparent . isSelected ( ) ? "transparent" : BI . DOM . rgb2hex ( BI . DOM . json2rgb ( { r : this . storeValue . r , g : this . storeValue . g , b : this . storeValue . b } ) ) } } ) , BI . ColorPickerEditor . EVENT _CHANGE = "ColorPickerEditor.EVENT_CHANGE" , BI . shortcut ( "bi.color_picker_editor" , BI . ColorPickerEditor ) , BI . SimpleColorPickerEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SimpleColorPickerEditor . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-color-picker-editor" , height : 30 } ) } , _init : function ( ) { BI . SimpleColorPickerEditor . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . colorShow = BI . createWidget ( { type : "bi.layout" , cls : "color-picker-editor-display bi-card bi-border" , height : 16 , width : 16 } ) ; var b = BI . createWidgets ( BI . createItems ( [ { text : "R" } , { text : "G" } , { text : "B" } ] , { type : "bi.label" , cls : "color-picker-editor-label" , width : 20 , height : 20 } ) ) , c = function ( a ) { return BI . isNumeric ( a ) && ( 0 | a ) >= 0 && ( 0 | a ) <= 255 } , d = BI . createWidgets ( [ { } , { } , { } ] , { type : "bi.small_text_editor" , cls : "color-picker-editor-input" , validationChecker : c , errorText : BI . i18nText ( "BI-Color_Picker_Error_Text" ) , allowBlank : ! 0 , value : 255 , width : 32 , height : 20 } ) ; BI . each ( d , function ( b , c ) { c . on ( BI . TextEditor . EVENT _CHANGE , function ( ) { a . R . isValid ( ) && a . G . isValid ( ) && a . B . isValid ( ) && ( a . colorShow . element . css ( "background-color" , a . getValue ( ) ) , a . fireEvent ( BI . SimpleColorPickerEditor . EVENT _CHANGE ) ) } ) } ) , this . R = d [ 0 ] , this . G = d [ 1 ] , this . B = d [ 2 ] , BI . createWidget ( { type : "bi.vertical_adapt" , element : this , items : [ { el : this . colorShow , width : 16 , lgap : 20 , rgap : 15 } , { el : b [ 0 ] , width : 20 } , { el : this . R , width : 30 } , { el : b [ 1 ] , width : 20 } , { el : this . G , width : 30 } , { el : b [ 2 ] , width : 20 } , { el : this . B , width : 30 } ] } ) } , setValue : function ( a ) { this . colorShow . element . css ( { "background-color" : a } ) ; var b = BI . DOM . rgb2json ( BI . DOM . hex2rgb ( a ) ) ; this . R . setValue ( BI . isNull ( b . r ) ? "" : b . r ) , this . G . setValue ( BI . isNull ( b . g ) ? "" : b . g ) , this . B . setValue ( BI . isNull ( b . b ) ? "" : b . b ) } , getValue : function ( ) { return BI . DOM . rgb2hex ( BI . DOM . json2rgb ( { r : this . R . getValue ( ) , g : this . G . getValue ( ) , b : this . B . getValue ( ) } ) ) } } ) , BI . SimpleColorPickerEditor . EVENT _CHANGE = "ColorPickerEditor.EVENT_CHANGE" , BI . shortcut ( "bi.simple_color_picker_editor" , BI . SimpleColorPickerEditor ) , BI . Farbtastic = BI . inherit ( BI . BasicButton , { constants : { RADIUS : 84 , SQUARE : 100 , WIDTH : 194 } , props : { baseCls : "bi-farbtastic" , width : 195 , height : 195 , stopPropagation : ! 0 , value : "#000000" } , render : function ( ) { var a = this ; return { type : "bi.absolute" , items : [ { el : { type : "bi.layout" , cls : "" , ref : function ( b ) { a . colorWrapper = b } } , top : 47 , left : 47 , width : 101 , height : 101 } , { el : { type : "bi.layout" , cls : "wheel" , ref : function ( b ) { a . wheel = b } } , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : { type : "bi.layout" , cls : "overlay" , ref : function ( b ) { a . overlay = b } } , top : 47 , left : 47 , width : 101 , height : 101 } , { el : { type : "bi.layout" , cls : "marker" , ref : function ( b ) { a . hMarker = b } , scrollable : ! 1 , width : 17 , height : 17 } } , { el : { type : "bi.layout" , cls : "marker" , ref : function ( b ) { a . slMa
} ) , this . SmallTextIconCheckCombo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 300 } } ) } , setValue : function ( a ) { this . SmallTextIconCheckCombo . setValue ( a ) } , getValue : function ( ) { return this . popup . getValue ( ) } , populate : function ( a ) { this . options . items = a , this . SmallTextIconCheckCombo . populate ( a ) } } ) , BI . SmallTextValueCheckCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.small_text_value_check_combo" , BI . SmallTextValueCheckCombo ) , BI . TextValueCheckComboPopup = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . TextValueCheckComboPopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-text-icon-popup" , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE } ) } , _init : function ( ) { BI . TextValueCheckComboPopup . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this ; this . popup = BI . createWidget ( { type : "bi.button_group" , items : this . _formatItems ( a . items ) , 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 . TextValueCheckComboPopup . EVENT _CHANGE , c , d ) } ) , BI . createWidget ( { type : "bi.vertical" , element : this , vgap : 5 , items : [ this . popup ] } ) } , _formatItems : function ( a ) { return BI . map ( a , function ( a , b ) { return BI . extend ( { type : "bi.single_select_item" , cls : "bi-list-item" , height : 24 } , b ) } ) } , populate : function ( a ) { BI . TextValueCheckComboPopup . superclass . populate . apply ( this , arguments ) , this . popup . populate ( this . _formatItems ( a ) ) } , getValue : function ( ) { return this . popup . getValue ( ) } , setValue : function ( a ) { this . popup . setValue ( a ) } } ) , BI . TextValueCheckComboPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_value_check_combo_popup" , BI . TextValueCheckComboPopup ) , BI . TextValueCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . TextValueCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-text-value-combo" , height : 24 , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , text : "" , value : "" , attributes : { tabIndex : 0 } } ) } , _init : function ( ) { BI . TextValueCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.select_text_trigger" , cls : "text-value-trigger" , items : b . items , height : b . height , text : b . text , value : b . value , warningTitle : b . warningTitle } ) , this . popup = BI . createWidget ( { type : "bi.text_value_combo_popup" , chooseType : b . chooseType , value : b . value , items : b . items } ) , this . popup . on ( BI . TextValueComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . textIconCombo . hideView ( ) , a . fireEvent ( BI . TextValueCombo . EVENT _CHANGE , arguments ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . textIconCombo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 240 } } ) , BI . isKey ( b . value ) && this . _checkError ( b . value ) } , _checkError : function ( a ) { if ( BI . isNotNull ( a ) ) { a = BI . isArray ( a ) ? a : [ a ] ; var b = BI . find ( this . options . items , function ( b , c ) { return BI . contains ( a , c . value ) } ) ; BI . isNull ( b ) ? ( this . trigger . setTipType ( "warning" ) , this . element . removeClass ( "combo-error" ) . addClass ( "combo-error" ) ) : ( this . trigger . setTipType ( "success" ) , this . element . removeClass ( "combo-error" ) ) } } , setValue : function ( a ) { this . trigger . setValue ( a ) , this . popup . setValue ( a ) , this . _checkError ( 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 . textIconCombo . populate ( a ) } } ) , BI . TextValueCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_value_combo" , BI . TextValueCombo ) , BI . SmallTextValueCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SmallTextValueCombo . superclass . _defaultConfig . apply ( this , arguments ) , { width : 100 , height : 20 , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , el : { } , text : "" } ) } , _init : function ( ) { BI . SmallTextValueCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( b . el , { type : "bi.small_select_text_trigger" , items : b . items , height : b . height , text : b . text } ) , this . popup = BI . cr
this . editor . on ( BI . Editor . EVENT _STOP , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _STOP , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _SPACE , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _SPACE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _ERROR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ENTER , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _ENTER , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _RESTRICT , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _RESTRICT , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _EMPTY , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _EMPTY , arguments ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ this . editor ] } ) , this . _showHint ( ) , BI . isNotNull ( b . text ) && this . setState ( b . text ) } , 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 ) } , focus : function ( ) { this . _showInput ( ) , this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) , this . _showHint ( ) } , _showInput : function ( ) { this . editor . visible ( ) , this . text . invisible ( ) } , _showHint : function ( ) { this . editor . invisible ( ) , this . text . visible ( ) } , 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 ( ) } , setValue : function ( a ) { this . editor . setValue ( a ) } , getValue : function ( ) { return this . editor . getValue ( ) } , getState : function ( ) { return this . editor . getValue ( ) . match ( /[^\s]+/g ) } , setState : function ( a ) { return BI . SimpleStateEditor . superclass . setValue . apply ( this , arguments ) , BI . isNumber ( a ) ? void ( a === BI . Selection . All ? ( this . text . setText ( BI . i18nText ( "BI-Already_Selected" ) ) , this . text . element . removeClass ( "state-editor-infinite-text" ) ) : a === BI . Selection . Multi ? ( this . text . setText ( BI . i18nText ( "BI-Already_Selected" ) ) , this . text . element . removeClass ( "state-editor-infinite-text" ) ) : ( this . text . setText ( BI . i18nText ( "BI-Basic_Unrestricted" ) ) , this . text . element . addClass ( "state-editor-infinite-text" ) ) ) : void ( BI . isArray ( a ) && 1 !== a . length ? BI . isEmpty ( a ) ? ( this . text . setText ( BI . i18nText ( "BI-Basic_Unrestricted" ) ) , this . text . element . addClass ( "state-editor-infinite-text" ) ) : ( this . text . setText ( BI . i18nText ( "BI-Already_Selected" ) ) , this . text . element . removeClass ( "state-editor-infinite-text" ) ) : ( this . text . setText ( a ) , this . text . setTitle ( a ) , this . text . element . removeClass ( "state-editor-infinite-text" ) ) ) } } ) , BI . SimpleStateEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . SimpleStateEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . SimpleStateEditor . EVENT _BLUR = "EVENT_BLUR" , BI . SimpleStateEditor . EVENT _CLICK = "EVENT_CLICK" , BI . SimpleStateEditor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . SimpleStateEditor . EVENT _CLICK _LABEL = "EVENT_CLICK_LABEL" , BI . SimpleStateEditor . EVENT _START = "EVENT_START" , BI . SimpleStateEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . SimpleStateEditor . EVENT _STOP = "EVENT_STOP" , BI . SimpleStateEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . SimpleStateEditor . EVENT _VALID = "EVENT_VALID" , BI . SimpleStateEditor . EVENT _ERROR = "EVENT_ERROR" , BI . SimpleStateEditor . EVENT _ENTER = "EVENT_ENTER" , BI . SimpleStateEditor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . SimpleStateEditor . EVENT _SPACE = "EVENT_SPACE" , BI . SimpleStateEditor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.simple_state_editor" , BI . SimpleStateEditor ) , BI . MultiPopupView = BI . inherit ( BI . PopupView , { _defaultConfig : function ( ) { var a = BI . MultiPopupView . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { _baseCls : ( a . _baseCls || "" ) + " bi-multi-list-view" , buttons : [ BI . i18nText ( "BI-Basic_Sure" ) ] } ) } , _init : function ( ) { BI . MultiPopupView . superclass . _init . apply ( this , arguments ) } , _createToolBar : function ( ) { var a = this . options , b = this ; if ( 0 !== a . buttons . length ) { var c = [ ] ; return BI . each ( a . buttons , function ( a , b ) { c . push ( { text : b , value : a } ) } ) , this .
a . _lock = ! 1 } , 300 ) , this . _populate ( ) } , _populate : function ( ) { var a = this , b = this . options , c = [ ] , d = { } ; this . empty ( ) ; var e = BI . result ( b , "pages" ) , f = BI . result ( this , "currPage" ) , g = BI . result ( b , "groups" ) , h = BI . result ( b , "first" ) , i = BI . result ( b , "last" ) , j = BI . result ( b , "prev" ) , k = BI . result ( b , "next" ) ; e === ! 1 ? ( g = 0 , h = ! 1 , i = ! 1 ) : g > e && ( g = e ) , d . index = Math . ceil ( ( f + ( g > 1 && g !== e ? 1 : 0 ) ) / ( 0 === g ? 1 : g ) ) , ( ! b . dynamicShow && ! b . dynamicShowPrevNext || f > 1 ) && j !== ! 1 && ( BI . isKey ( j ) ? c . push ( { text : j , value : "prev" , disabled : e === ! 1 ? b . hasPrev ( f ) === ! 1 : ! ( f > 1 && j !== ! 1 ) } ) : c . push ( BI . extend ( { disabled : e === ! 1 ? b . hasPrev ( f ) === ! 1 : ! ( f > 1 && j !== ! 1 ) } , j ) ) ) , ( ! b . dynamicShow && ! b . dynamicShowFirstLast || d . index > 1 && 0 !== g ) && h && ( c . push ( { text : h , value : "first" , disabled : ! ( d . index > 1 && 0 !== g ) } ) , d . index > 1 && 0 !== g && c . push ( { type : "bi.label" , cls : "page-ellipsis" , text : "…" } ) ) , d . poor = Math . floor ( ( g - 1 ) / 2 ) , d . start = d . index > 1 ? f - d . poor : 1 , d . end = d . index > 1 ? function ( ) { var a = f + ( g - d . poor - 1 ) ; return a > e ? e : a } ( ) : g , d . end - d . start < g - 1 && ( d . start = d . end - g + 1 ) ; var l = d . start , m = d . end ; for ( h && i && d . index > 1 && 0 !== g && e > g && d . end < e && 0 !== g && ( l ++ , m -- ) ; l <= m ; l ++ ) l === f ? c . push ( { text : l , value : l , selected : ! 0 } ) : c . push ( { text : l , value : l } ) ; ( ! b . dynamicShow && ! b . dynamicShowFirstLast || e > g && d . end < e && 0 !== g ) && i && ( e > g && d . end < e && 0 !== g && c . push ( { type : "bi.label" , cls : "page-ellipsis" , text : "…" } ) , c . push ( { text : i , value : "last" , disabled : ! ( e > g && d . end < e && 0 !== g ) } ) ) , d . flow = ! j && 0 === g , ( ! b . dynamicShow && ! b . dynamicShowPrevNext && k || f !== e && k || d . flow ) && c . push ( function ( ) { return BI . isKey ( k ) ? e === ! 1 ? { text : k , value : "next" , disabled : b . hasNext ( f ) === ! 1 } : d . flow && f === e ? { text : k , value : "next" , disabled : ! 0 } : { text : k , value : "next" , disabled : ! ( f !== e && k || d . flow ) } : BI . extend ( { disabled : e === ! 1 ? b . hasNext ( f ) === ! 1 : ! ( f !== e && k || d . flow ) } , k ) } ( ) ) , this . button _group = BI . createWidget ( { type : "bi.button_group" , element : this , items : BI . createItems ( c , { cls : "page-item bi-border bi-list-item-active" , height : 23 , hgap : 10 } ) , behaviors : b . behaviors , layouts : b . layouts } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( c , d , f ) { if ( a . _lock !== ! 0 ) { if ( a . _lock = ! 0 , a . _debouce ( ) , c === BI . Events . CLICK ) { var g = a . button _group . getValue ( ) [ 0 ] ; switch ( g ) { case "first" : a . currPage = 1 ; break ; case "last" : a . currPage = e ; break ; case "prev" : a . currPage -- ; break ; case "next" : a . currPage ++ ; break ; default : a . currPage = g } b . jump . apply ( a , [ { pages : e , curr : a . currPage } ] ) , a . _populate ( ) , a . fireEvent ( BI . DetailPager . EVENT _CHANGE , f ) } a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } ) , this . fireEvent ( BI . DetailPager . EVENT _AFTER _POPULATE ) } , getCurrentPage : function ( ) { return this . currPage } , setAllPages : function ( a ) { this . options . pages = a } , hasPrev : function ( a ) { a || ( a = 1 ) ; var b = this . options , c = this . options . pages ; return c === ! 1 ? b . hasPrev ( a ) : a > 1 } , hasNext : function ( a ) { a || ( a = 1 ) ; var b = this . options , c = this . options . pages ; return c === ! 1 ? b . hasNext ( a ) : a < c } , setValue : function ( a ) { var b = this . options ; if ( a = 0 | a , a = a < 1 ? 1 : a , b . pages === ! 1 ) { var c = BI . result ( b , "lastPage" ) , d = 1 ; this . currPage = a > c ? c : ( d = BI . result ( b , "firstPage" ) , a < d ? d : a ) } else a = a > b . pages ? b . pages : a , this . currPage = a ; this . _populate ( ) } , getValue : function ( ) { var a = this . button _group . getValue ( ) [ 0 ] ; switch ( a ) { case "prev" : return - 1 ; case "next" : return 1 ; case "first" : return BI . MIN ; case "last" : return BI . MAX ; default : return a } } , attr : function ( a , b ) { BI . DetailPager . superclass . attr . apply ( this , arguments ) , "curr" === a && ( this . currPage = BI . result ( this . options , "curr" ) ) } , populate : function ( ) { this . _populate ( ) } } ) , BI . DetailPager . EVENT _CHANGE = "EVENT_CHANGE" , BI . DetailPager . EVENT _AFTER _POPULATE = "EVENT_AFTER_POPULATE" , BI . shortcut ( "bi.detail_pager" , BI . DetailPager ) , BI . SegmentButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . SegmentButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-segment-button bi-list-item-select" , shadow : ! 0 , readonly : ! 0 , hgap : 5 } ) } , _init : function ( ) { BI . SegmentButton . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textHeight : a . height , whiteSpace : a . whiteSpace , text : a . text , value : a . value , hgap : a . hgap } ) } , setSelected : function ( ) { BI . SegmentButton . superclass . setSelected . apply ( this , arguments ) } , setText : function ( a ) { BI . SegmentButton . superclass . setText . apply ( this , arguments ) , this . text . setText ( a ) } , destroy : function (
BI . DateTriangleTrigger = BI . inherit ( BI . Trigger , { _const : { height : 24 , iconWidth : 12 , iconHeight : 12 } , _defaultConfig : function ( ) { return BI . extend ( BI . DateTriangleTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-date-triangle-trigger pull-down-ha-font cursor-pointer" , height : 24 } ) } , _init : function ( ) { BI . DateTriangleTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this . _const ; this . text = BI . createWidget ( { type : "bi.label" , cls : "list-item-text" , textAlign : "right" , text : a . text , value : a . value , height : b . height } ) , BI . createWidget ( { type : "bi.vertical_adapt" , element : this , items : [ { el : this . text , rgap : 5 } , { type : "bi.icon_label" , width : 16 } ] } ) } , setValue : function ( a ) { this . text . setValue ( a ) } , getValue : function ( ) { return this . text . getValue ( ) } , setText : function ( a ) { this . text . setText ( a ) } , getText : function ( ) { return this . item . getText ( ) } , getKey : function ( ) { } } ) , BI . shortcut ( "bi.date_triangle_trigger" , BI . DateTriangleTrigger ) , BI . StaticDatePaneCard = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . StaticDatePaneCard . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : "bi-date-pane" , min : "1900-01-01" , max : "2099-12-31" , selectedTime : null } ) } , _init : function ( ) { BI . StaticDatePaneCard . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . today = BI . getDate ( ) , this . _year = this . today . getFullYear ( ) , this . _month = this . today . getMonth ( ) + 1 , this . selectedTime = b . selectedTime || { year : this . _year , month : this . _month } , this . datePicker = BI . createWidget ( { type : "bi.date_picker" , behaviors : b . behaviors , min : b . min , max : b . max } ) , this . datePicker . on ( BI . DatePicker . EVENT _CHANGE , function ( ) { var b = a . datePicker . getValue ( ) , c = BI . getMonthDays ( BI . getDate ( b . year , b . month - 1 , 1 ) ) , d = a . selectedTime . day || 0 ; d > c && ( d = c ) , a . selectedTime = { year : b . year , month : b . month } , 0 !== d && ( a . selectedTime . day = d ) , a . calendar . setSelect ( BI . Calendar . getPageByDateJSON ( a . selectedTime ) ) , a . calendar . setValue ( a . selectedTime ) , 0 !== d && a . fireEvent ( BI . DateCalendarPopup . EVENT _CHANGE ) } ) , this . calendar = BI . createWidget ( { direction : "custom" , type : "bi.navigation" , tab : this . datePicker , cardCreator : BI . bind ( this . _createNav , this ) } ) , this . calendar . on ( BI . Navigation . EVENT _CHANGE , function ( ) { a . selectedTime = a . calendar . getValue ( ) , a . calendar . empty ( ) , a . setValue ( a . selectedTime ) , a . fireEvent ( BI . DateCalendarPopup . EVENT _CHANGE ) } ) , this . setValue ( b . selectedTime ) , BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . datePicker , height : 40 } , this . calendar ] , hgap : 10 } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.layout" , cls : "bi-split-top" } , height : 1 , top : 40 , left : 0 , right : 0 } ] } ) } , _createNav : function ( a ) { var b = BI . Calendar . getDateJSONByPage ( a ) , c = BI . createWidget ( { type : "bi.calendar" , logic : { dynamic : ! 1 } , min : this . options . min , max : this . options . max , year : b . year , month : b . month , day : this . selectedTime . day } ) ; return c } , _getNewCurrentDate : function ( ) { var a = BI . getDate ( ) ; return { year : a . getFullYear ( ) , month : a . getMonth ( ) + 1 } } , _setCalenderValue : function ( a ) { this . calendar . setSelect ( BI . Calendar . getPageByDateJSON ( a ) ) , this . calendar . setValue ( a ) , this . selectedTime = a } , _setDatePicker : function ( a ) { BI . isNull ( a ) || BI . isNull ( a . year ) || BI . isNull ( a . month ) ? this . datePicker . setValue ( this . _getNewCurrentDate ( ) ) : this . datePicker . setValue ( a ) } , _setCalendar : function ( a ) { BI . isNull ( a ) || BI . isNull ( a . day ) ? ( this . calendar . empty ( ) , this . _setCalenderValue ( this . _getNewCurrentDate ( ) ) ) : this . _setCalenderValue ( a ) } , setValue : function ( a ) { this . _setDatePicker ( a ) , this . _setCalendar ( a ) } , getValue : function ( ) { return this . selectedTime } } ) , BI . shortcut ( "bi.static_date_pane_card" , BI . StaticDatePaneCard ) , BI . DynamicDatePane = BI . inherit ( BI . Widget , { props : { baseCls : "bi-dynamic-date-pane" } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.vtape" , items : [ { el : { type : "bi.linear_segment" , cls : "bi-split-bottom" , height : 30 , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Multi_Date_YMD" ) , value : BI . DynamicDatePane . Static } , { text : BI . i18nText ( "BI-Basic_Dynamic_Title" ) , value : BI . DynamicDatePane . Dynamic } ] , { textAlign : "center" } ) , listeners : [ { eventName : BI . ButtonGroup . EVENT _CHANGE , action : function ( ) { var b = this . getValue ( ) [ 0 ] ; switch ( a . dateTab . setSelect ( b ) , b ) { case BI . DynamicDatePane . Static : var c = BI . DynamicDateHelper . getCalculation ( a . dyna
} } ] } , tgap : 0 === a ? 5 : 0 } } ) ; if ( 1 === a . length && a [ 0 ] . dateType === BI . DynamicDateCard . TYPE . DAY ) { var e = this . _getText ( BI . DynamicDateCard . TYPE . MONTH ) ; e [ 0 ] . text = BI . i18nText ( "BI-Basic_Empty" ) , d . push ( { type : "bi.text_value_combo" , height : 24 , items : e , container : null , value : b || BI . DynamicDateCard . OFFSET . CURRENT , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { c . position = this . getValue ( ) [ 0 ] , c . fireEvent ( "EVENT_CHANGE" ) } } ] } ) } else 0 !== a . length && BI . last ( a ) . dateType !== BI . DynamicDateCard . TYPE . DAY && BI . last ( a ) . dateType !== BI . DynamicDateCard . TYPE . WORK _DAY && d . push ( { type : "bi.text_value_combo" , height : 24 , container : null , items : this . _getText ( BI . last ( a ) . dateType ) , value : b || BI . DynamicDateCard . OFFSET . CURRENT , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { c . position = this . getValue ( ) [ 0 ] , c . fireEvent ( "EVENT_CHANGE" ) } } ] } ) ; return d } , _getText : function ( a ) { switch ( a ) { case BI . DynamicDateCard . TYPE . YEAR : return [ { text : BI . i18nText ( "BI-Basic_Current_Day" ) , value : BI . DynamicDateCard . OFFSET . CURRENT } , { text : BI . i18nText ( "BI-Basic_Year_Begin" ) , value : BI . DynamicDateCard . OFFSET . BEGIN } , { text : BI . i18nText ( "BI-Basic_Year_End" ) , value : BI . DynamicDateCard . OFFSET . END } ] ; case BI . DynamicDateCard . TYPE . QUARTER : return [ { text : BI . i18nText ( "BI-Basic_Current_Day" ) , value : BI . DynamicDateCard . OFFSET . CURRENT } , { text : BI . i18nText ( "BI-Basic_Quarter_Begin" ) , value : BI . DynamicDateCard . OFFSET . BEGIN } , { text : BI . i18nText ( "BI-Basic_Quarter_End" ) , value : BI . DynamicDateCard . OFFSET . END } ] ; case BI . DynamicDateCard . TYPE . MONTH : return [ { text : BI . i18nText ( "BI-Basic_Current_Day" ) , value : BI . DynamicDateCard . OFFSET . CURRENT } , { text : BI . i18nText ( "BI-Basic_Month_Begin" ) , value : BI . DynamicDateCard . OFFSET . BEGIN } , { text : BI . i18nText ( "BI-Basic_Month_End" ) , value : BI . DynamicDateCard . OFFSET . END } ] ; case BI . DynamicDateCard . TYPE . WEEK : default : return [ { text : BI . i18nText ( "BI-Basic_Current_Day" ) , value : BI . DynamicDateCard . OFFSET . CURRENT } , { text : BI . i18nText ( "BI-Basic_Week_Begin" ) , value : BI . DynamicDateCard . OFFSET . BEGIN } , { text : BI . i18nText ( "BI-Basic_Week_End" ) , value : BI . DynamicDateCard . OFFSET . END } ] } } , _createValue : function ( a , b ) { return { dateType : a , value : Math . abs ( b ) , offset : b > 0 ? 1 : 0 } } , setValue : function ( a ) { a = a || { } , this . position = a . position || BI . DynamicDateCard . OFFSET . CURRENT ; var b = [ ] , c = [ ] ; BI . isNotNull ( a . year ) && ( b . push ( BI . DynamicDateCard . TYPE . YEAR ) , c . push ( this . _createValue ( BI . DynamicDateCard . TYPE . YEAR , a . year ) ) ) , BI . isNotNull ( a . quarter ) && ( b . push ( BI . DynamicDateCard . TYPE . QUARTER ) , c . push ( this . _createValue ( BI . DynamicDateCard . TYPE . QUARTER , a . quarter ) ) ) , BI . isNotNull ( a . month ) && ( b . push ( BI . DynamicDateCard . TYPE . MONTH ) , c . push ( this . _createValue ( BI . DynamicDateCard . TYPE . MONTH , a . month ) ) ) , BI . isNotNull ( a . week ) && ( b . push ( BI . DynamicDateCard . TYPE . WEEK ) , c . push ( this . _createValue ( BI . DynamicDateCard . TYPE . WEEK , a . week ) ) ) , BI . isNotNull ( a . day ) && ( b . push ( BI . DynamicDateCard . TYPE . DAY ) , c . push ( this . _createValue ( BI . DynamicDateCard . TYPE . DAY , a . day ) ) ) , BI . isNotNull ( a . workDay ) && ( b . push ( BI . DynamicDateCard . TYPE . WORK _DAY ) , c . push ( this . _createValue ( BI . DynamicDateCard . TYPE . WORK _DAY , a . workDay ) ) ) , this . checkgroup . setValue ( b ) , this . workDayBox . setSelected ( BI . isNotNull ( a . workDay ) ) , this . resultPane . populate ( this . _getParamJson ( c , a . position ) ) } , getValue : function ( ) { var a = this , b = { } , c = this . checkgroup . getValue ( ) , d = this . resultPane . getAllButtons ( ) ; if ( 0 !== c . length && BI . each ( d , function ( c , d ) { var e = d . getValue ( ) ; switch ( e . dateType ) { case BI . DynamicDateCard . TYPE . YEAR : b . year = 0 === e . offset ? - e . value : e . value ; break ; case BI . DynamicDateCard . TYPE . QUARTER : b . quarter = 0 === e . offset ? - e . value : e . value ; break ; case BI . DynamicDateCard . TYPE . MONTH : b . month = 0 === e . offset ? - e . value : e . value ; break ; case BI . DynamicDateCard . TYPE . WEEK : b . week = 0 === e . offset ? - e . value : e . value ; break ; case BI . DynamicDateCard . TYPE . DAY : b . day = 0 === e . offset ? - e . value : e . value } BI . isNull ( e . dateType ) && ( b . position = a . position || BI . DynamicDateCard . OFFSET . CURRENT ) } ) , this . workDayBox . isSelected ( ) ) { var e = d [ 0 ] . getValue ( ) ; b . workDay = 0 === e . offset ? - e . value : e . value } return b } } ) , BI . shortcut ( "bi.dynamic_date_card" , BI . DynamicDateCard ) , BI . extend ( BI . DynamicDateCard , { TYPE : { YEAR : 1 , QUARTER : 2 , MONTH : 3 , WEEK : 4 , DAY : 5 , WORK _DAY : 6 } , OFFSET : { CURRENT : 1 , BEGIN : 2 , END : 3 } } ) , BI . DynamicDateCombo = BI . inherit ( BI . Single , { constants : { popupHeight : 259 , popupWidth : 270 , comboAdjus
} , listeners : [ { eventName : BI . SignEditor . EVENT _CONFIRM , action : function ( ) { var b = this . getValue ( ) ; a . _checkHour ( b ) , this . setValue ( a . _formatValueToDoubleDigit ( b ) ) , a . fireEvent ( BI . DynamicDateTimeSelect . EVENT _CONFIRM ) } } , { eventName : BI . SignEditor . EVENT _CHANGE , action : function ( ) { var b = a . _autoSwitch ( this . getValue ( ) , BI . DynamicDateTimeSelect . HOUR ) ; this . setValue ( b ) } } ] , width : 60 , height : 24 } } , { type : "bi.label" , text : ":" , width : 20 } , { type : "bi.number_editor" , ref : function ( ) { a . minute = this } , validationChecker : function ( a ) { return BI . isNaturalNumber ( a ) && BI . parseInt ( a ) < 60 } , errorText : function ( a ) { return BI . isNumeric ( a ) ? BI . i18nText ( "BI-Basic_Input_From_To_Number" , '"00-59"' ) : BI . i18nText ( "BI-Numerical_Interval_Input_Data" ) } , listeners : [ { eventName : BI . SignEditor . EVENT _CONFIRM , action : function ( ) { var b = this . getValue ( ) ; a . _checkMinute ( b ) , this . setValue ( a . _formatValueToDoubleDigit ( b ) , BI . DynamicDateTimeSelect . MINUTE ) , a . fireEvent ( BI . DynamicDateTimeSelect . EVENT _CONFIRM ) } } , { eventName : BI . SignEditor . EVENT _CHANGE , action : function ( ) { var b = a . _autoSwitch ( this . getValue ( ) , BI . DynamicDateTimeSelect . MINUTE ) ; this . setValue ( b ) } } ] , width : 60 , height : 24 } , { type : "bi.label" , text : ":" , width : 20 } , { type : "bi.number_editor" , ref : function ( ) { a . second = this } , validationChecker : function ( a ) { return BI . isNaturalNumber ( a ) && BI . parseInt ( a ) < 60 } , errorText : function ( a ) { return BI . isNumeric ( a ) ? BI . i18nText ( "BI-Basic_Input_From_To_Number" , '"00-59"' ) : BI . i18nText ( "BI-Numerical_Interval_Input_Data" ) } , listeners : [ { eventName : BI . SignEditor . EVENT _CONFIRM , action : function ( ) { var b = this . getValue ( ) ; a . _checkSecond ( b ) , this . setValue ( a . _formatValueToDoubleDigit ( b ) ) , a . fireEvent ( BI . DynamicDateTimeSelect . EVENT _CONFIRM ) } } ] , width : 60 , height : 24 } ] } ] } } , _checkBorder : function ( a ) { a = a || { } , this . _checkHour ( a . hour ) , this . _checkMinute ( a . minute ) , this . _checkSecond ( a . second ) } , _checkHour : function ( a ) { this . hour . setDownEnable ( BI . parseInt ( a ) > 0 ) , this . hour . setUpEnable ( BI . parseInt ( a ) < 23 ) } , _checkMinute : function ( a ) { this . minute . setDownEnable ( BI . parseInt ( a ) > 0 ) , this . minute . setUpEnable ( BI . parseInt ( a ) < 59 ) } , _checkSecond : function ( a ) { this . second . setDownEnable ( BI . parseInt ( a ) > 0 ) , this . second . setUpEnable ( BI . parseInt ( a ) < 59 ) } , _autoSwitch : function ( a , b ) { var c = 0 , d = a + "" ; switch ( b ) { case BI . DynamicDateTimeSelect . HOUR : c = 2 ; break ; case BI . DynamicDateTimeSelect . MINUTE : c = 5 } if ( 1 === d . length && BI . parseInt ( d ) > c && ( d = "0" + d ) , 2 === d . length ) switch ( b ) { case BI . DynamicDateTimeSelect . HOUR : this . hour . isEditing ( ) && this . minute . focus ( ) ; break ; case BI . DynamicDateTimeSelect . MINUTE : this . minute . isEditing ( ) && this . second . focus ( ) ; break ; case BI . DynamicDateTimeSelect . SECOND : } return d } , _formatValueToDoubleDigit : function ( a ) { ( BI . isNull ( a ) || BI . isEmptyString ( a ) ) && ( a = 0 ) ; var b = BI . parseInt ( a ) ; return b < 10 && ( b = "0" + b ) , b } , _assertValue : function ( a ) { return a = a || { } , a . hour = this . _formatValueToDoubleDigit ( a . hour ) || "00" , a . minute = this . _formatValueToDoubleDigit ( a . minute ) || "00" , a . second = this . _formatValueToDoubleDigit ( a . second ) || "00" , a } , getValue : function ( ) { return { hour : BI . parseInt ( this . hour . getValue ( ) ) , minute : BI . parseInt ( this . minute . getValue ( ) ) , second : BI . parseInt ( this . second . getValue ( ) ) } } , setValue : function ( a ) { a = this . _assertValue ( a ) , this . hour . setValue ( a . hour ) , this . minute . setValue ( a . minute ) , this . second . setValue ( a . second ) , this . _checkBorder ( a ) } } ) , BI . DynamicDateTimeSelect . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.dynamic_date_time_select" , BI . DynamicDateTimeSelect ) , BI . extend ( BI . DynamicDateTimeSelect , { HOUR : 1 , MINUTE : 2 , SECOND : 3 } ) , BI . DynamicDateTimeTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 , yearLength : 4 , yearMonthLength : 6 , yearFullMonthLength : 7 } , props : { extraCls : "bi-date-time-trigger" , min : "1900-01-01" , max : "2099-12-31" , height : 24 } , _init : function ( ) { BI . DynamicDateTimeTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . storeTriggerValue = "" , this . editor = BI . createWidget ( { type : "bi.sign_editor" , height : b . height , validationChecker : function ( b ) { var c = b . match ( /\d+/g ) ; return a . _autoAppend ( b , c ) , a . _dateCheck ( b ) && BI . checkDateLegal ( b ) && a . _checkVoid ( { year : 0 | c [ 0 ] , month : 0 | c [ 1 ] , day : 0 | c [ 2 ] } ) } , quitChecker : function ( ) { return ! 1 } , hgap : c . hgap , vgap : c . vgap , allowBlank : ! 0 , watermark : BI . i18nText ( "BI-Basic_Unrestricted" ) , errorText : function ( ) { return a .
} } ) , BI . MonthCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MonthCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-month-combo" , behaviors : { } , height : 24 } ) } , _init : function ( ) { BI . MonthCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.month_trigger" , value : b . value } ) , this . trigger . on ( BI . MonthTrigger . EVENT _CONFIRM , function ( b ) { a . combo . isViewVisible ( ) || ( this . getKey ( ) && this . getKey ( ) !== a . storeValue ? a . setValue ( this . getValue ( ) ) : this . getKey ( ) || a . setValue ( ) , a . fireEvent ( BI . MonthCombo . EVENT _CONFIRM ) ) } ) , this . trigger . on ( BI . MonthTrigger . EVENT _FOCUS , function ( ) { a . storeValue = this . getKey ( ) } ) , this . trigger . on ( BI . MonthTrigger . EVENT _START , function ( ) { a . combo . hideView ( ) } ) , this . trigger . on ( BI . MonthTrigger . EVENT _STOP , function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } ) , this . popup = BI . createWidget ( { type : "bi.month_popup" , behaviors : b . behaviors , value : b . value } ) , this . popup . on ( BI . MonthPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . combo . hideView ( ) , a . fireEvent ( BI . MonthCombo . EVENT _CONFIRM ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , isNeedAdjustHeight : ! 1 , isNeedAdjustWidth : ! 1 , el : this . trigger , popup : { minWidth : 85 , el : this . popup } } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . MonthCombo . EVENT _BEFORE _POPUPVIEW ) } ) } , setValue : function ( a ) { this . trigger . setValue ( a ) , this . popup . setValue ( a ) } , getValue : function ( ) { return BI . isNull ( this . popup ) ? this . options . value || "" : this . popup . getValue ( ) || "" } } ) , BI . MonthCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . MonthCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.month_combo" , BI . MonthCombo ) , BI . MonthPopup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MonthPopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-month-popup" , behaviors : { } } ) } , _init : function ( ) { BI . MonthPopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = [ 1 , 7 , 2 , 8 , 3 , 9 , 4 , 10 , 5 , 11 , 6 , 12 ] , d = [ ] ; d . push ( c . slice ( 0 , 2 ) ) , d . push ( c . slice ( 2 , 4 ) ) , d . push ( c . slice ( 4 , 6 ) ) , d . push ( c . slice ( 6 , 8 ) ) , d . push ( c . slice ( 8 , 10 ) ) , d . push ( c . slice ( 10 , 12 ) ) , d = BI . map ( d , function ( a , b ) { return BI . map ( b , function ( a , b ) { return { type : "bi.text_item" , cls : "bi-list-item-active" , textAlign : "center" , whiteSpace : "nowrap" , once : ! 1 , forceSelected : ! 0 , height : 23 , width : 38 , value : b , text : b } } ) } ) , this . month = BI . createWidget ( { type : "bi.button_group" , element : this , behaviors : b . behaviors , items : BI . createItems ( d , { } ) , layouts : [ BI . LogicFactory . createLogic ( "table" , BI . extend ( { dynamic : ! 0 } , { columns : 2 , rows : 6 , columnSize : [ . 5 , . 5 ] , rowSize : 25 } ) ) , { type : "bi.center_adapt" , vgap : 1 , hgap : 2 } ] , value : b . value } ) , this . month . on ( BI . Controller . EVENT _CHANGE , function ( b ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , b === BI . Events . CLICK && a . fireEvent ( BI . MonthPopup . EVENT _CHANGE ) } ) } , getValue : function ( ) { return this . month . getValue ( ) [ 0 ] } , setValue : function ( a ) { a = BI . parseInt ( a ) , this . month . setValue ( [ a ] ) } } ) , BI . MonthPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.month_popup" , BI . MonthPopup ) , BI . MonthTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 } , _defaultConfig : function ( ) { return BI . extend ( BI . MonthTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-month-trigger bi-border" , height : 24 } ) } , _init : function ( ) { BI . MonthTrigger . 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 <= 12 } , quitChecker : function ( a ) { return ! 1 } , hgap : c . hgap , vgap : c . vgap , allowBlank : ! 0 , errorText : BI . i18nText ( "BI-Month_Trigger_Error_Text" ) } ) , this . editor . on ( BI . SignEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . MonthTrigger . EVENT _FOCUS ) } ) , this . editor . on ( BI . SignEditor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MonthTrigger . 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 . MonthTrigger . EVENT _CONFIRM ) } ) , this . editor . on ( BI . SignEditor . EVENT _SPACE , function ( ) { a . editor . isValid ( ) && a . editor . blur ( ) } ) , this . editor . on
extraCls : "bi-multilayer-single-tree-last-plus-group-node bi-list-item" , layer : 0 , id : "" , pId : "" , open : ! 1 , height : 24 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeLastPlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . node = this . _createNode ( ) ; for ( var b = [ ] , c = a . pNode ; c ; ) c . isLastNode && b . push ( c . layer ) , c = c . pNode ; var d = [ ] ; BI . count ( 0 , a . layer , function ( c ) { d . push ( { type : "bi.layout" , cls : BI . contains ( b , c ) ? "" : "base-line-conn-background" , width : 12 , height : a . height } ) } ) , d . push ( this . node ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( a . layer , 12 ) , items : [ d ] } ) } , doRedMark : function ( ) { this . node . doRedMark . apply ( this . node , arguments ) } , 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 ) } , _createNode : function ( ) { var a = this , b = this . options ; return BI . createWidget ( { type : "bi.last_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 , keyword : b . keyword , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } ] } ) } } ) , 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 : 24 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeMidPlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . node = this . _createNode ( ) ; for ( var b = [ ] , c = a . pNode ; c ; ) c . isLastNode && b . push ( c . layer ) , c = c . pNode ; var d = [ ] ; BI . count ( 0 , a . layer , function ( c ) { d . push ( { type : "bi.layout" , cls : BI . contains ( b , c ) ? "" : "base-line-conn-background" , width : 12 , height : a . height } ) } ) , d . push ( this . node ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( a . layer , 12 ) , items : [ d ] } ) } , 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 ) } , _createNode : function ( ) { var a = this , b = this . options ; return 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 , keyword : b . keyword , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } ] } ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_mid_plus_group_node" , BI . MultiLayerSingleTreeMidPlusGroupNode ) , BI . MultiLayerSingleTreePlusGroupNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . MultiLayerSingleTreePlusGroupNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-multilayer-single-tree-plus-group-node bi-list-item" , layer : 0 , id : "" , pId : "" , open : ! 1 , height : 24 } ) } , _init : function ( ) { BI . MultiLayerSingleTreePlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . node = this . _createNode ( ) ; for ( var b = [ ] , c = a . pNode ; c ; ) c . isLastNode && b . push ( c . layer ) , c = c . pNode ; var d = [ ] ; BI . count ( 0 , a . layer , function ( c ) { d . push ( { type : "bi.layout" , cls : BI . contains ( b , c ) ? "" : "base-line-conn-background" , width : 12 , height : a . height } ) } ) , d . push ( this . node ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( a . layer , 12 ) , items : [ d ] } ) } , doRedMark : function ( ) { this . node . doRedMark . apply ( this . node , arguments ) } , unRedMark :
delete g [ b ] ) } ) , f && ( c . storeValue . value = BI . values ( g ) ) , void c . _adjust ( b ) } var h = c . _makeMap ( c . storeValue . value ) , i = c . _makeMap ( a . value ) , j = [ ] ; BI . each ( e , function ( a , b ) { BI . isNotNull ( h [ e [ a ] ] ) && ( c . storeValue . assist && c . storeValue . assist . push ( h [ e [ a ] ] ) , delete h [ e [ a ] ] ) , BI . isNull ( i [ e [ a ] ] ) && ( BI . remove ( c . storeValue . assist , b ) , j . push ( b ) ) } ) , c . storeValue . value = j . concat ( BI . values ( h ) ) , c . _adjust ( b ) } ) } , _adjust : function ( a ) { function b ( ) { c . wants2Quit === ! 0 && ( c . fireEvent ( BI . MultiSelectInsertNoBarCombo . EVENT _CONFIRM ) , c . wants2Quit = ! 1 ) , c . requesting = ! 1 } var c = this ; this . options ; b ( ) , a ( ) } , _join : function ( a , b ) { var c = this ; this . options ; if ( this . _assertValue ( a ) , this . _assertValue ( this . storeValue ) , this . storeValue . type === a . type ) { var d = this . _makeMap ( this . storeValue . value ) ; BI . each ( a . value , function ( a , b ) { d [ b ] || ( c . storeValue . value . push ( b ) , BI . remove ( c . storeValue . assist , b ) , d [ b ] = b ) } ) ; var e = ! 1 ; return BI . each ( a . assist , function ( a , b ) { BI . isNotNull ( d [ b ] ) && ( e = ! 0 , c . storeValue . assist && c . storeValue . assist . push ( d [ b ] ) , delete d [ b ] ) } ) , e && ( this . storeValue . value = BI . values ( d ) ) , void c . _adjust ( b ) } this . _joinAll ( a , b ) } , _setStartValue : function ( a ) { this . _startValue = a , this . popup . setStartValue ( a ) } , setValue : function ( a ) { this . storeValue = { type : BI . Selection . Multi , value : a || [ ] } , this . combo . setValue ( this . storeValue ) } , getValue : function ( ) { return BI . deepClone ( this . storeValue . value ) } , populate : function ( ) { this . combo . populate . apply ( this . combo , arguments ) } } ) , BI . extend ( BI . MultiSelectInsertNoBarCombo , { REQ _GET _DATA _LENGTH : 1 , REQ _GET _ALL _DATA : - 1 } ) , BI . MultiSelectInsertNoBarCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.multi_select_insert_no_bar_combo" , BI . MultiSelectInsertNoBarCombo ) , BI . MultiSelectInsertTrigger = BI . inherit ( BI . Trigger , { constants : { height : 14 , rgap : 4 , lgap : 4 } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectInsertTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-trigger bi-border" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , searcher : { } , switcher : { } , adapter : null , masker : { } } ) } , _init : function ( ) { BI . MultiSelectInsertTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . height && this . setHeight ( b . height - 2 ) , this . searcher = BI . createWidget ( b . searcher , { type : "bi.multi_select_insert_searcher" , height : b . height , text : b . text , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , popup : { } , adapter : b . adapter , masker : b . masker , value : b . value } ) , this . searcher . on ( BI . MultiSelectInsertSearcher . EVENT _START , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _START ) } ) , this . searcher . on ( BI . MultiSelectInsertSearcher . EVENT _ADD _ITEM , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _ADD _ITEM ) } ) , this . searcher . on ( BI . MultiSelectInsertSearcher . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _PAUSE ) } ) , this . searcher . on ( BI . MultiSelectInsertSearcher . EVENT _SEARCHING , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _SEARCHING , arguments ) } ) , this . searcher . on ( BI . MultiSelectInsertSearcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _STOP ) } ) , this . searcher . on ( BI . MultiSelectInsertSearcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _CHANGE , arguments ) } ) , this . numberCounter = BI . createWidget ( b . switcher , { type : "bi.multi_select_check_selected_switcher" , valueFormatter : b . valueFormatter , itemsCreator : b . itemsCreator , adapter : b . adapter , masker : b . masker , value : b . value } ) , this . numberCounter . on ( BI . MultiSelectCheckSelectedSwitcher . EVENT _TRIGGER _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _COUNTER _CLICK ) } ) , this . numberCounter . on ( BI . MultiSelectCheckSelectedSwitcher . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . MultiSelectInsertTrigger . EVENT _BEFORE _COUNTER _POPUPVIEW ) } ) ; var c = BI . createWidget ( { type : "bi.right_vertical_adapt" , hgap : 4 , items : [ { el : this . numberCounter } ] } ) , d = BI . createWidget ( { type : "bi.htape" , element : this , items : [ { el : this . searcher , width : "fill" } , { el : c , width : 0 } , { el : BI . createWidget ( ) , width : 24 } ] } ) ; this . numberCounter . on ( BI . Events . VIEW , function ( b ) { BI . nextTick ( function ( ) { d . attr ( "items" ) [ 1 ] . width = b === ! 0 ? a . numberCounter . element . outerWidth ( ) + 8 : 0 , d . resize ( ) } ) } ) , this . element . click ( function ( b ) { a . element . find ( b . target ) . length > 0 && a
_defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectSearcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-searcher" , itemsCreator : BI . emptyFn , el : { } , popup : { } , valueFormatter : BI . emptyFn , adapter : null , masker : { } , text : BI . i18nText ( "BI-Basic_Please_Select" ) } ) } , _init : function ( ) { BI . MultiSelectSearcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( b . el , { type : "bi.multi_select_editor" , height : b . height , text : b . text } ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , element : this , height : b . height , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( a , b ) { b ( ) } , el : this . editor , popup : BI . extend ( { type : "bi.multi_select_search_pane" , valueFormatter : b . valueFormatter , keywordGetter : function ( ) { return a . editor . getValue ( ) } , itemsCreator : function ( c , d ) { var e = a . editor . getValue ( ) ; c . keywords = [ e ] , this . setKeyword ( e ) , b . itemsCreator ( c , d ) } , value : b . value } , b . popup ) , adapter : b . adapter , masker : b . masker } ) , this . searcher . on ( BI . Searcher . EVENT _START , function ( ) { a . fireEvent ( BI . MultiSelectSearcher . EVENT _START ) } ) , this . searcher . on ( BI . Searcher . EVENT _PAUSE , function ( ) { this . hasMatched ( ) , a . fireEvent ( BI . MultiSelectSearcher . EVENT _PAUSE ) } ) , this . searcher . on ( BI . Searcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . MultiSelectSearcher . EVENT _STOP ) } ) , this . searcher . on ( BI . Searcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectSearcher . EVENT _CHANGE , arguments ) } ) , this . searcher . on ( BI . Searcher . EVENT _SEARCHING , function ( ) { var b = this . getKeywords ( ) ; a . fireEvent ( BI . MultiSelectSearcher . EVENT _SEARCHING , b ) } ) , BI . isNotNull ( b . value ) && this . setState ( b . value ) } , 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 ; if ( a || ( a = { } ) , a . value || ( a . value = [ ] ) , a . type === BI . Selection . All ) if ( 0 === a . value . length ) this . editor . setState ( BI . Selection . All ) ; else if ( BI . size ( a . assist ) <= 20 ) { var c = "" ; BI . each ( a . assist , function ( a , d ) { c += 0 === a ? "" + ( b . valueFormatter ( d + "" ) || d ) : "," + ( b . valueFormatter ( d + "" ) || d ) } ) , this . editor . setState ( c ) } else this . editor . setState ( BI . Selection . Multi ) ; else if ( 0 === a . value . length ) this . editor . setState ( BI . Selection . None ) ; else if ( BI . size ( a . value ) <= 20 ) { var c = "" ; BI . each ( a . value , function ( a , d ) { c += 0 === a ? "" + ( b . valueFormatter ( d + "" ) || d ) : "," + ( b . valueFormatter ( d + "" ) || d ) } ) , this . editor . setState ( c ) } else this . editor . setState ( BI . Selection . Multi ) } , 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 . MultiSelectSearcher . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . MultiSelectSearcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiSelectSearcher . EVENT _START = "EVENT_START" , BI . MultiSelectSearcher . EVENT _STOP = "EVENT_STOP" , BI . MultiSelectSearcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . MultiSelectSearcher . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . shortcut ( "bi.multi_select_searcher" , BI . MultiSelectSearcher ) , BI . MultiSelectCheckSelectedSwitcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectCheckSelectedSwitcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-check-selected-switcher" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , el : { } , popup : { } , adapter : null , masker : { } } ) } , _init : function ( ) { BI . MultiSelectCheckSelectedSwitcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . button = BI . createWidget ( b . el , { type : "bi.multi_select_check_selected_button" , itemsCreator : b . itemsCreator , value : b . value } ) , this . button . on ( BI . Events . VIEW , function ( ) { a . fireEvent ( BI . Events . VIEW , arguments ) } ) , this . switcher = BI . createWidget ( { type : "bi.switcher" , toggle : ! 1 , element : this , el : this . button , popup : BI . extend ( { type : "bi.multi_select_check_pane" , valueFormatter : b . valueFormatter , itemsCreator
b . combo . isViewVisible ( ) || b . combo . showView ( ) } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _CHANGE , function ( ) { var a = this . getSearcher ( ) . hasChecked ( ) , b = { type : BI . Selection . Multi , value : a ? { 1 : 1 } : { } } ; this . getSearcher ( ) . setState ( a ? BI . Selection . Multi : BI . Selection . None ) , this . getCounter ( ) . setButtonChecked ( b ) } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { h ( ) || ( f === ! 0 && ( b . storeValue = { value : b . combo . getValue ( ) } , f = ! 1 ) , b . combo . setValue ( b . storeValue ) , b . populate ( ) ) } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _HIDEVIEW , function ( ) { h ( ) ? ( b . trigger . stopEditing ( ) , b . fireEvent ( BI . MultiTreeCombo . EVENT _CONFIRM ) ) : i ( ) && ( b . trigger . stopEditing ( ) , 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 : funct
BI . isNotNull ( e [ b ] ) && ( d . storeValue . type === BI . Selection . Multi ? BI . pushDistinct ( d . storeValue . value , b ) : BI . remove ( d . storeValue . value , b ) ) } ) , d . _adjust ( b ) } var d = this ; this . options ; this . _assertValue ( this . storeValue ) , this . requesting = ! 0 , this . _itemsCreator ( { type : BI . SearchMultiTextValueCombo . REQ _GET _ALL _DATA , keywords : a } , function ( a ) { var b = BI . map ( a . items , "value" ) ; c ( b ) } ) } , _joinAll : function ( a , b ) { var c = this ; this . options ; this . _assertValue ( a ) , this . requesting = ! 0 , this . _itemsCreator ( { type : BI . SearchMultiTextValueCombo . REQ _GET _ALL _DATA , keywords : [ this . trigger . getKey ( ) ] } , function ( d ) { var e = BI . map ( d . items , "value" ) ; if ( c . storeValue . type === a . type ) { var f = ! 1 , g = c . _makeMap ( c . storeValue . value ) ; return BI . each ( e , function ( a , b ) { BI . isNotNull ( g [ b ] ) && ( f = ! 0 , c . storeValue . assist && c . storeValue . assist . push ( g [ b ] ) , delete g [ b ] ) } ) , f && ( c . storeValue . value = BI . values ( g ) ) , void c . _adjust ( b ) } var h = c . _makeMap ( c . storeValue . value ) , i = c . _makeMap ( a . value ) , j = [ ] ; BI . each ( e , function ( a , b ) { BI . isNotNull ( h [ e [ a ] ] ) && ( c . storeValue . assist && c . storeValue . assist . push ( h [ e [ a ] ] ) , delete h [ e [ a ] ] ) , BI . isNull ( i [ e [ a ] ] ) && ( BI . remove ( c . storeValue . assist , b ) , j . push ( b ) ) } ) , c . storeValue . value = j . concat ( BI . values ( h ) ) , c . _adjust ( b ) } ) } , _adjust : function ( a ) { function b ( ) { c . storeValue . type === BI . Selection . All && c . storeValue . value . length >= c . _count ? c . storeValue = { type : BI . Selection . Multi , value : [ ] } : c . storeValue . type === BI . Selection . Multi && c . storeValue . value . length >= c . _count && ( c . storeValue = { type : BI . Selection . All , value : [ ] } ) , c . _updateAllValue ( ) , c . _checkError ( ) , c . wants2Quit === ! 0 && ( c . fireEvent ( BI . SearchMultiTextValueCombo . EVENT _CONFIRM ) , c . wants2Quit = ! 1 ) , c . requesting = ! 1 } var c = this ; this . options ; this . _count ? ( b ( ) , a ( ) ) : this . _itemsCreator ( { type : BI . SearchMultiTextValueCombo . REQ _GET _DATA _LENGTH } , function ( d ) { c . _count = d . count , b ( ) , a ( ) } ) } , _join : function ( a , b ) { var c = this ; this . options ; if ( this . _assertValue ( a ) , this . _assertValue ( this . storeValue ) , this . storeValue . type === a . type ) { var d = this . _makeMap ( this . storeValue . value ) ; BI . each ( a . value , function ( a , b ) { d [ b ] || ( c . storeValue . value . push ( b ) , BI . remove ( c . storeValue . assist , b ) , d [ b ] = b ) } ) ; var e = ! 1 ; return BI . each ( a . assist , function ( a , b ) { BI . isNotNull ( d [ b ] ) && ( e = ! 0 , c . storeValue . assist && c . storeValue . assist . push ( d [ b ] ) , delete d [ b ] ) } ) , e && ( this . storeValue . value = BI . values ( d ) ) , void c . _adjust ( b ) } this . _joinAll ( a , b ) } , _setStartValue : function ( a ) { this . _startValue = a , this . popup . setStartValue ( a ) } , _getItemsByTimes : function ( a , b ) { for ( var c = [ ] , d = 100 * ( b - 1 ) ; a [ d ] && d < 100 * b ; d ++ ) c . push ( a [ d ] ) ; return c } , _hasNextByTimes : function ( a , b ) { return 100 * b < a . length } , _itemsCreator : function ( a , b ) { var c = this , d = this . options , e = d . items , f = ( a . keywords || [ ] ) . slice ( ) ; if ( a . keyword && f . push ( a . keyword ) , BI . each ( f , function ( a , b ) { var c = BI . Func . getSearchResult ( e , b ) ; e = c . match . concat ( c . find ) } ) , a . selectedValues ) { var g = BI . makeObject ( a . selectedValues , ! 0 ) ; e = BI . filter ( e , function ( a , b ) { return ! g [ b . value ] } ) } return a . type == BI . MultiSelectCombo . REQ _GET _ALL _DATA ? void b ( { items : e } ) : a . type == BI . MultiSelectCombo . REQ _GET _DATA _LENGTH ? void b ( { count : e . length } ) : void b ( { items : c . _getItemsByTimes ( e , a . times ) , hasNext : c . _hasNextByTimes ( e , a . times ) } ) } , _checkError : function ( ) { var a = this . storeValue . value || [ ] ; if ( BI . isNotEmptyArray ( a ) ) { a = BI . isArray ( a ) ? a : [ a ] ; var b = BI . find ( this . allValue , function ( b , c ) { return ! BI . contains ( a , c ) } ) ; BI . isNull ( b ) ? ( BI . isNotNull ( this . trigger ) && this . trigger . setTipType ( "success" ) , this . element . removeClass ( "combo-error" ) ) : ( BI . isNotNull ( this . trigger ) && this . trigger . setTipType ( "warning" ) , this . element . addClass ( "combo-error" ) ) } else a . length === this . allValue . length ? ( BI . isNotNull ( this . trigger ) && this . trigger . setTipType ( "success" ) , this . element . removeClass ( "combo-error" ) ) : ( BI . isNotNull ( this . trigger ) && this . trigger . setTipType ( "warning" ) , this . element . addClass ( "combo-error" ) ) } , _updateAllValue : function ( ) { this . storeValue = this . storeValue || { } , this . allValue = BI . deepClone ( this . storeValue . value || [ ] ) } , setValue : function ( a ) { this . storeValue = BI . deepClone ( a || { } ) , this . _updateAllValue ( ) , this . _assertValue ( this . storeValue ) , this . combo . setValue ( this . storeValue ) , this . _checkError ( ) } , getValue : function ( ) { return BI . deepClone ( this . storeValue ) } , _populate : function ( ) { this . _count = null , this . combo . populate ( ) } , populate : function ( a ) { this . options . items = a , t
type : "bi.single_select_trigger" , height : b . height , allowNoSelect : b . allowNoSelect , 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 ) } ) } , text : b . text , value : this . storeValue } ) , 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 . 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 ( ) , a . _defaultState ( ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _COUNTER _CLICK , function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , container : b . container , toggle : ! 1 , el : this . trigger , adjustLength : 1 , popup : { type : "bi.single_select_popup_view" , allowNoSelect : b . allowNoSelect , 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 ( ) , 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 } , value : b . value } ) , 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 ) { } , _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 ] ) && BI . remove ( d . storeValue . value , 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 . map ( a . items , "value" ) ; c ( b ) } ) } , _adjust : function ( a ) { function b ( ) { c . wants2Quit === ! 0 && ( c . fireEvent ( BI . SingleSelectCombo . EVENT _CONFIRM ) , c . wants2Quit = ! 1 ) , c . requesting = ! 1 } var c = this , d = this . options ; this . _count ? ( b ( ) , a ( ) ) : d . itemsCreator ( { type : BI . SingleSelectCombo . REQ _GET _DATA _LENGTH } , function ( d ) { c . _count = d . count , b ( ) , a ( ) } ) } , _setStartValue : function ( a ) { this . _startValue = a , this . popup . setStartValue ( a ) } , setValue : function ( a ) { this . storeValue = a , this . _assertValue ( this . storeValue ) , this . combo . setValue ( this . storeValue ) } , getValue : function ( ) { return this . storeValue } , populate : function ( ) { this . _count = null , this . combo . populate . apply ( this . combo , arguments ) } } ) , BI . extend ( BI . SingleSelectCombo , { REQ _GET _DATA _LENGTH : 0 , REQ _GET _ALL _DATA : - 1 } ) , BI . SingleSelectCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.single_select_combo" , BI . SingleSelectCombo ) , BI . SingleSelectInsertCombo = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectInsertCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-select-combo" , allo
type : "bi.sign_text_editor" , cls : "slider-editor-button" , text : b . unit , width : c . EDITOR _WIDTH - 2 , allowBlank : ! 1 , textAlign : "center" , validationChecker : function ( b ) { return a . _checkValidation ( b ) } } ) , this . label . element . hover ( function ( ) { a . label . element . removeClass ( "bi-border" ) . addClass ( "bi-border" ) } , function ( ) { a . label . element . removeClass ( "bi-border" ) } ) , this . label . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { var b = BI . parseFloat ( this . getValue ( ) ) , c = a . _getPercentByValue ( b ) , d = BI . parseFloat ( c . toFixed ( 1 ) ) ; a . _setAllPosition ( d ) , this . setValue ( b ) , a . value = b , a . fireEvent ( BI . SingleSlider . EVENT _CHANGE ) } ) , this . _setVisible ( ! 1 ) , { type : "bi.absolute" , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : this . track , width : "100%" , height : c . TRACK _HEIGHT } ] } ] , hgap : 7 , height : c . TRACK _HEIGHT } , top : 23 , left : 0 , width : "100%" } , { el : d , top : 20 , left : 0 , width : "100%" } , { el : { type : "bi.vertical" , items : [ { type : "bi.horizontal_auto" , items : [ this . label ] } ] , height : c . EDITOR _HEIGHT } , top : 0 , left : 0 , width : "100%" } ] } } , _draggable : function ( a ) { function b ( a ) { return BI . clamp ( a , 0 , c . _getGrayTrackLength ( ) ) } var c = this , d = this . options , e = ! 1 , f = 0 , g = 0 , h = 0 , i = new BI . MouseMoveTracker ( function ( j ) { if ( i . isDragging ( ) ) { e = ! 0 , g += j , f = b ( h + g ) , a . element . addClass ( "dragging" ) ; var k = 100 * f / c . _getGrayTrackLength ( ) , l = BI . parseFloat ( k . toFixed ( 1 ) ) ; c . _setBlueTrack ( l ) , c . _setLabelPosition ( l ) , c . _setSliderPosition ( l ) ; var m = c . _getValueByPercent ( l ) ; m = d . digit === ! 1 ? m : m . toFixed ( d . digit ) , c . label . setValue ( m ) , c . value = m , c . fireEvent ( BI . SingleSlider . EVENT _CHANGE ) } } , function ( ) { if ( e === ! 0 ) { f = b ( f ) ; var d = 100 * f / c . _getGrayTrackLength ( ) , j = BI . parseFloat ( d . toFixed ( 1 ) ) ; c . _setSliderPosition ( j ) , f = 0 , g = 0 , h = f , e = ! 1 } a . element . removeClass ( "dragging" ) , i . releaseMouseMoves ( ) , c . fireEvent ( BI . SingleSlider . EVENT _CHANGE ) } , window ) ; a . element . on ( "mousedown" , function ( c ) { a . isEnabled ( ) && ( h = this . offsetLeft , b ( h ) , i . captureMouseMoves ( c ) ) } ) } , _createTrackWrapper : function ( ) { return BI . createWidget ( { type : "bi.absolute" , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : this . grayTrack , top : 0 , left : 0 , width : "100%" } , { el : this . blueTrack , top : 0 , left : 0 , width : "0%" } ] } ] , hgap : 8 , height : 8 } , top : 8 , left : 0 , width : "100%" } ] } ) } , _checkValidation : function ( a ) { var b = this . options , c = ! 1 ; if ( BI . isNumeric ( a ) && ! ( BI . isNull ( a ) || a < this . min || a > this . max ) ) if ( b . digit === ! 1 ) c = ! 0 ; else { var d = ( a + "" ) . split ( "." ) [ 1 ] || "" ; c = d . length === b . digit } return c } , _setBlueTrack : function ( a ) { this . blueTrack . element . css ( { width : a + "%" } ) } , _setLabelPosition : function ( a ) { } , _setSliderPosition : function ( a ) { this . slider . element . css ( { left : a + "%" } ) } , _setAllPosition : function ( a ) { this . _setSliderPosition ( a ) , this . _setLabelPosition ( a ) , this . _setBlueTrack ( a ) } , _setVisible : function ( a ) { this . slider . setVisible ( a ) , this . label . setVisible ( a ) } , _getGrayTrackLength : function ( ) { return this . grayTrack . element [ 0 ] . scrollWidth } , _getValueByPercent : function ( a ) { var b = BI . parseInt ( 10 * a ) ; return ( this . max - this . min ) * b / 1e3 + this . min } , _getPercentByValue : function ( a ) { return 100 * ( a - this . min ) / ( this . max - this . min ) } , getValue : function ( ) { return this . value } , setValue : function ( a ) { var b = this . options ; a = BI . parseFloat ( a ) , a = b . digit === ! 1 ? a : a . toFixed ( b . digit ) , isNaN ( a ) || ( this . _checkValidation ( a ) && ( this . value = a ) , a > this . max && ( this . value = this . max ) , a < this . min && ( this . value = this . min ) ) } , _setEnable : function ( a ) { BI . SingleSlider . superclass . _setEnable . apply ( this , [ a ] ) , a ? this . blueTrack . element . removeClass ( "disabled-blue-track" ) . addClass ( "blue-track" ) : this . blueTrack . element . removeClass ( "blue-track" ) . addClass ( "disabled-blue-track" ) } , setMinAndMax : function ( a ) { var b = BI . parseFloat ( a . min ) , c = BI . parseFloat ( a . max ) ; ! isNaN ( b ) && ! isNaN ( c ) && c > b && ( this . min = b , this . max = c ) } , reset : function ( ) { this . _setVisible ( ! 1 ) , this . enable = ! 1 , this . value = "" , this . min = 0 , this . max = 0 , this . _setBlueTrack ( 0 ) } , populate : function ( ) { isNaN ( this . min ) || isNaN ( this . max ) || ( this . _setVisible ( ! 0 ) , this . enable = ! 0 , this . label . setErrorText ( BI . i18nText ( "BI-Basic_Please_Enter_Number_Between" , this . min , this . max ) ) , BI . isNumeric ( this . value ) || BI . isNotEmptyString ( this . value ) ? ( this . label . setValue ( this . value ) , this . _setAllPosition ( this . _getPercentByValue ( this . value ) ) ) : ( this . label . setValue ( this . max ) , this . _setAllPosition ( 100 ) ) ) } } ) , BI . SingleSlider . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( " bi . single _
BI . StaticYearCard = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . StaticYearCard . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-year-card" , behaviors : { } , min : "1900-01-01" , max : "2099-12-31" } ) } , _createYearCalendar : function ( a ) { var b = this . options , c = this . _year , d = BI . createWidget ( { type : "bi.year_calendar" , behaviors : b . behaviors , min : b . min , max : b . max , logic : { dynamic : ! 0 } , year : c + 12 * a } ) ; return d . setValue ( this . _year ) , d } , _init : function ( ) { BI . StaticYearCard . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . selectedYear = this . _year = BI . getDate ( ) . getFullYear ( ) , this . backBtn = BI . createWidget ( { type : "bi.icon_button" , cls : "pre-page-h-font" , width : 25 , height : 25 , value : - 1 , listeners : [ { eventName : BI . IconButton . EVENT _CHANGE , action : function ( ) { a . navigation . setSelect ( a . navigation . getSelect ( ) - 1 ) , a . _checkLeftValid ( ) , a . _checkRightValid ( ) } } ] } ) , this . preBtn = BI . createWidget ( { type : "bi.icon_button" , cls : "next-page-h-font" , width : 25 , height : 25 , value : 1 , listeners : [ { eventName : BI . IconButton . EVENT _CHANGE , action : function ( ) { a . navigation . setSelect ( a . navigation . getSelect ( ) + 1 ) , a . _checkLeftValid ( ) , a . _checkRightValid ( ) } } ] } ) , this . navigation = BI . createWidget ( { type : "bi.navigation" , direction : "top" , element : this , single : ! 0 , logic : { dynamic : ! 0 } , tab : { type : "bi.htape" , cls : "bi-split-top bi-split-bottom" , height : 30 , items : [ { el : { type : "bi.center_adapt" , items : [ a . backBtn ] } , width : 25 } , { type : "bi.layout" } , { el : { type : "bi.center_adapt" , items : [ a . preBtn ] } , width : 25 } ] } , cardCreator : BI . bind ( this . _createYearCalendar , this ) , afterCardShow : function ( ) { this . setValue ( a . selectedYear ) ; var b = this . getSelectedCard ( ) ; a . backBtn . setEnable ( ! b . isFrontYear ( ) ) , a . preBtn . 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 . StaticYearCard . EVENT _CHANGE , a . selectedYear ) } ) , BI . isKey ( b . value ) && this . setValue ( b . value ) } , _checkLeftValid : function ( ) { var a = ( this . options , ! 0 ) ; return this . backBtn . setEnable ( a ) , a } , _checkRightValid : function ( ) { var a = ( this . options , ! 0 ) ; return this . preBtn . setEnable ( a ) , a } , getValue : function ( ) { return { year : this . selectedYear } } , setValue : function ( a ) { var b = this . options ; a = a || { } ; var c = a . year ; BI . checkDateVoid ( c , 1 , 1 , b . min , b . max ) [ 0 ] ? ( c = BI . getDate ( ) . getFullYear ( ) , this . selectedYear = "" , this . navigation . setSelect ( BI . YearCalendar . getPageByYear ( c ) ) , this . navigation . setValue ( "" ) ) : ( this . selectedYear = BI . parseInt ( c ) , this . navigation . setSelect ( BI . YearCalendar . getPageByYear ( c ) ) , this . navigation . setValue ( this . selectedYear ) ) , this . _checkLeftValid ( ) , this . _checkRightValid ( ) } } ) , BI . StaticYearCard . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.static_year_card" , BI . StaticYearCard ) , BI . DynamicYearCombo = BI . inherit ( BI . Widget , { props : { baseCls : "bi-year-combo bi-border bi-focus-shadow" , behaviors : { } , min : "1900-01-01" , max : "2099-12-31" , height : 22 } , _init : function ( ) { BI . DynamicYearCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . storeValue = b . value , this . trigger = BI . createWidget ( { type : "bi.dynamic_year_trigger" , min : b . min , max : b . max , height : b . height , value : b . value || "" } ) , this . trigger . on ( BI . DynamicYearTrigger . EVENT _FOCUS , function ( ) { a . storeTriggerValue = this . getKey ( ) } ) , this . trigger . on ( BI . DynamicYearTrigger . EVENT _START , function ( ) { a . combo . isViewVisible ( ) && a . combo . hideView ( ) } ) , this . trigger . on ( BI . DynamicYearTrigger . EVENT _STOP , function ( ) { a . combo . showView ( ) } ) , this . trigger . on ( BI . DynamicYearTrigger . EVENT _ERROR , function ( ) { a . combo . isViewVisible ( ) && a . combo . hideView ( ) } ) , this . trigger . on ( BI . DynamicYearTrigger . EVENT _CONFIRM , function ( ) { a . combo . isViewVisible ( ) || ( this . getKey ( ) && this . getKey ( ) !== a . storeTriggerValue ? ( a . storeValue = a . trigger . getValue ( ) , a . setValue ( a . storeValue ) ) : this . getKey ( ) || ( a . storeValue = null , a . setValue ( ) ) , a . _checkDynamicValue ( a . storeValue ) , a . fireEvent ( BI . DynamicYearCombo . EVENT _CONFIRM ) ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , container : b . container , isNeedAdjustHeight : ! 1 , isNeedAdjustWidth : ! 1 , el : this . trigger , popup : { minWidth : 85 , stopPropagation : ! 1 , el : { type : "bi.dynamic_year_popup" , ref : function ( ) { a . popup = this } , listeners : [ { eventName : BI . DynamicYearPopup . EVENT _CHANGE , action : function ( ) { a . setValue ( a . popu
year : c [ 0 ] , month : c [ 1 ] , day : 1 } ) && this . _dateCheck ( f ) && BI . checkDateLegal ( b ) && this . _checkVoid ( { year : d [ 0 ] , month : d [ 1 ] , day : 1 } ) } , _compare : function ( a , b ) { return a = BI . print ( BI . parseDateTime ( a , "%Y-%X" ) , "%Y-%X" ) , b = BI . print ( BI . parseDateTime ( b , "%Y-%X" ) , "%Y-%X" ) , BI . isNotNull ( a ) && BI . isNotNull ( b ) && a > b } , _setTitle : function ( a ) { this . setTitle ( a ) } , _clearTitle : function ( ) { this . setTitle ( "" ) } , _checkValid : function ( ) { var a = this ; BI . Bubbles . hide ( "error" ) ; var b = a . left . getKey ( ) , c = a . right . getKey ( ) ; a . left . isValid ( ) && a . right . isValid ( ) && a . _check ( b , c ) && a . _compare ( b , c ) ? ( a . _setTitle ( BI . i18nText ( "BI-Time_Interval_Error_Text" ) ) , a . element . addClass ( a . constants . timeErrorCls ) , BI . Bubbles . show ( "error" , BI . i18nText ( "BI-Time_Interval_Error_Text" ) , a , { offsetStyle : "center" } ) , a . fireEvent ( BI . YearMonthInterval . EVENT _ERROR ) ) : ( a . _clearTitle ( ) , a . element . removeClass ( a . constants . timeErrorCls ) ) } , setValue : function ( a ) { a = a || { } , this . left . setValue ( a . start ) , this . right . setValue ( a . end ) , this . _checkValid ( ) } , getValue : function ( ) { return { start : this . left . getValue ( ) , end : this . right . getValue ( ) } } } ) , BI . YearMonthInterval . EVENT _VALID = "EVENT_VALID" , BI . YearMonthInterval . EVENT _ERROR = "EVENT_ERROR" , BI . YearMonthInterval . EVENT _CHANGE = "EVENT_CHANGE" , BI . YearMonthInterval . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.year_month_interval" , BI . YearMonthInterval ) , BI . DynamicYearQuarterCard = BI . inherit ( BI . Widget , { props : { baseCls : "bi-year-month-card" } , render : function ( ) { var a = this ; return { type : "bi.vertical" , items : [ { type : "bi.label" , text : BI . i18nText ( "BI-Multi_Date_Relative_Current_Time" ) , textAlign : "left" , height : 24 } , { type : "bi.dynamic_date_param_item" , ref : function ( ) { a . year = this } , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] } , { type : "bi.dynamic_date_param_item" , dateType : BI . DynamicDateCard . TYPE . QUARTER , ref : function ( ) { a . quarter = this } , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] } ] , vgap : 10 , hgap : 10 } } , _createValue : function ( a , b ) { return { dateType : a , value : Math . abs ( b ) , offset : b > 0 ? 1 : 0 } } , setValue : function ( a ) { a = a || { year : 0 , month : 0 } , this . year . setValue ( this . _createValue ( BI . DynamicDateCard . TYPE . YEAR , a . year ) ) , this . quarter . setValue ( this . _createValue ( BI . DynamicDateCard . TYPE . QUARTER , a . quarter ) ) } , getValue : function ( ) { var a = this . year . getValue ( ) , b = this . quarter . getValue ( ) ; return { year : 0 === a . offset ? - a . value : a . value , quarter : 0 === b . offset ? - b . value : b . value } } } ) , BI . DynamicYearQuarterCard . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.dynamic_year_quarter_card" , BI . DynamicYearQuarterCard ) , BI . StaticYearQuarterCard = BI . inherit ( BI . Widget , { props : { baseCls : "bi-static-year-quarter-card" , behaviors : { } } , _createQuarter : function ( ) { var a = [ { text : BI . Date . _QN [ 1 ] , value : 1 } , { text : BI . Date . _QN [ 2 ] , value : 2 } , { text : BI . Date . _QN [ 3 ] , value : 3 } , { text : BI . Date . _QN [ 4 ] , value : 4 } ] ; return BI . map ( a , function ( a , b ) { return BI . extend ( b , { type : "bi.text_item" , cls : "bi-list-item-active" , textAlign : "center" , whiteSpace : "nowrap" , once : ! 1 , forceSelected : ! 0 , height : 24 } ) } ) } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.vertical" , items : [ { type : "bi.year_picker" , ref : function ( ) { a . yearPicker = this } , behaviors : b . behaviors , height : 30 , listeners : [ { eventName : BI . YearPicker . EVENT _CHANGE , action : function ( ) { var b = this . getValue ( ) ; a . setValue ( { year : b , quarter : a . selectedQuarter } ) } } ] } , { type : "bi.button_group" , behaviors : b . behaviors , ref : function ( ) { a . quarter = this } , items : this . _createQuarter ( ) , layouts : [ { type : "bi.vertical" , vgap : 10 } ] , value : b . value , listeners : [ { eventName : BI . ButtonGroup . EVENT _CHANGE , action : function ( ) { a . selectedYear = a . yearPicker . getValue ( ) , a . selectedQuarter = this . getValue ( ) [ 0 ] , a . fireEvent ( BI . StaticYearQuarterCard . EVENT _CHANGE ) } } ] } ] } } , getValue : function ( ) { return { year : this . selectedYear , quarter : this . selectedQuarter } } , setValue : function ( a ) { var b = this . options , c = { } ; if ( c . year = a . year || 0 , c . quarter = a . quarter || 0 , 0 === c . quarter || 0 === c . year || BI . checkDateVoid ( c . year , c . quarter , 1 , b . min , b . max ) [ 0 ] ) { var d = c . year || BI . getDate ( ) . getFullYear ( ) ; this . selectedYear = d , this . selectedQuarter = "" , this . yearPicker . setValue ( d ) , this . quarter . setValue ( ) } else this . selectedYear = BI . parseInt ( c . year ) , this . selectedQuarter = BI . parseInt ( c . quarter ) , this . yearPicker . setValue ( this . selectedYear ) ,
this . combo = BI . createWidget ( { type : "bi.multi_select_combo" , element : this , text : b . text , itemsCreator : BI . bind ( this . _itemsCreator , this ) , valueFormatter : BI . bind ( this . _valueFormatter , this ) , width : b . width , height : b . height } ) , this . combo . on ( BI . MultiSelectCombo . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . ValueChooserCombo . EVENT _CONFIRM ) } ) } , setValue : function ( a ) { this . combo . setValue ( a ) } , getValue : function ( ) { var a = this . combo . getValue ( ) || { } ; return { type : a . type , value : a . value } } , populate : function ( a ) { this . items = a , this . combo . populate . apply ( this , arguments ) } } ) , BI . ValueChooserCombo . EVENT _CONFIRM = "ValueChooserCombo.EVENT_CONFIRM" , BI . shortcut ( "bi.value_chooser_combo" , BI . ValueChooserCombo ) , BI . ValueChooserPane = BI . inherit ( BI . AbstractValueChooser , { _defaultConfig : function ( ) { return BI . extend ( BI . ValueChooserPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-value-chooser-pane" , items : null , itemsCreator : BI . emptyFn , cache : ! 0 } ) } , _init : function ( ) { BI . ValueChooserPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . list = BI . createWidget ( { type : "bi.multi_select_list" , element : this , itemsCreator : BI . bind ( this . _itemsCreator , this ) , valueFormatter : BI . bind ( this . _valueFormatter , this ) } ) , this . list . on ( BI . MultiSelectList . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . ValueChooserPane . EVENT _CHANGE ) } ) , BI . isNotNull ( b . items ) && ( this . items = b . items , this . list . populate ( ) ) } , setValue : function ( a ) { this . list . setValue ( a ) } , getValue : function ( ) { var a = this . list . getValue ( ) || { } ; return { type : a . type , value : a . value } } , populate : function ( a ) { a && ( this . items = a ) , this . list . populate . apply ( this . list , arguments ) } } ) , BI . ValueChooserPane . EVENT _CHANGE = "ValueChooserPane.EVENT_CHANGE" , BI . shortcut ( "bi.value_chooser_pane" , BI . ValueChooserPane ) , function ( ) { function a ( a , c ) { a . _watchers || ( a . _watchers = [ ] ) ; for ( var d in c ) { var e = c [ d ] ; if ( BI . isArray ( e ) ) for ( var f = 0 ; f < e . length ; f ++ ) a . _watchers . push ( b ( a , d , e [ f ] ) ) ; else a . _watchers . push ( b ( a , d , e ) ) } } function b ( a , b , c ) { return Fix . watch ( a . model , b , _ . bind ( c , a ) , { store : a . store } ) } function c ( a ) { i && j . push ( i ) , Fix . Model . target = i = a } function d ( ) { Fix . Model . target = i = j . pop ( ) } function e ( a ) { k && l . push ( k ) , Fix . Model . context = k = a } function f ( ) { Fix . Model . context = k = l . pop ( ) } function g ( a ) { if ( null != i ) return i ; a = a || k ; for ( var b = a ; b && ! ( b instanceof Fix . Model || b . store || b . _ _cacheStore ) ; ) b = b . _parent || b . options && b . options . element ; return b ? b instanceof Fix . Model ? a . _ _cacheStore = b : ( a . _ _cacheStore = b . store || b . _ _cacheStore , b . _ _cacheStore || b . store ) : void 0 } function h ( ) { var a = ! 1 ; if ( _global . Fix && this . _store ) { var b = g ( this . options . context || this . options . element ) ; b && ( c ( b ) , a = ! 0 ) , this . store = this . _store ( ) , this . store && ( this . store . _widget = this ) , a && d ( ) , a = ! 1 , c ( this . store ) , this . store instanceof Fix . Model ? this . model = this . store . model : this . model = this . store , a = ! 0 } return a } var i = null , j = [ ] , k = null , l = [ ] , m = Fix . watch ; Fix . watch = function ( a , b , e , f ) { return BI . isPlainObject ( e ) && ( f = e , e = e . handler ) , "string" == typeof e && ( e = a [ e ] ) , m . call ( this , a , b , function ( ) { f && f . store && c ( f . store ) ; var a = e . apply ( this , arguments ) ; return f && f . store && d ( ) , a } , f ) } ; var n = BI . createWidget ; BI . createWidget = function ( a , b , c ) { var d = ! 1 ; BI . isWidget ( b ) ? ( e ( b ) , d = ! 0 ) : null != c && ( e ( c ) , d = ! 0 ) ; var g = n . apply ( this , arguments ) ; return d && f ( ) , g } , _ . each ( [ "populate" , "addItems" , "prependItems" ] , function ( a ) { var b = BI . Loader . prototype [ a ] ; BI . Loader . prototype [ a ] = function ( ) { e ( this ) ; var a = b . apply ( this , arguments ) ; return f ( ) , a } } ) ; var o = BI . Widget . prototype . _init ; BI . Widget . prototype . _init = function ( ) { var a = h . call ( this ) ; o . apply ( this , arguments ) , a && d ( ) } ; var p = BI . Widget . prototype . _render ; BI . Widget . prototype . _render = function ( ) { var b = ! 1 ; _global . Fix && this . _store && ( b = ! 0 , c ( this . store ) , a ( this , this . watch ) ) , p . apply ( this , arguments ) , b && d ( ) } ; var q = BI . Widget . prototype . _ _d ; BI . Widget . prototype . _ _d = function ( ) { q . apply ( this , arguments ) , this . store && BI . isFunction ( this . store . destroy ) && this . store . destroy ( ) , BI . each ( this . _watchers , function ( a , b ) { b = BI . isArray ( b ) ? b : [ b ] , BI . each ( b , function ( a , b ) { b ( ) } ) } ) , this . _watchers && ( this . _watchers = [ ] ) , this . store && ( this . store . _parent && ( this . store . _parent = null ) , this . store . _widget && ( this . store . _widget = null ) , this . store = null ) , delete this . _ _cacheStore } , _ . each ( [ "_mount" ] , function ( a ) { var b = BI . Widget . prototype [ a ] ; b && ( BI . Widget . pro