forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.6 MiB
1 lines
4.6 MiB
{"version":3,"sources":["fineui.ie.js","webpack:///webpack/bootstrap","webpack:///typescript/bundle.ts","webpack:///typescript/index.ts","webpack:///typescript/core/decorator/decorator.ts"],"names":["_classCallCheck","instance","Constructor","TypeError","e","o","t","r","exports","n","i","l","call","m","c","d","Object","defineProperty","enumerable","get","Symbol","toStringTag","value","__esModule","create","bind","prototype","hasOwnProperty","p","s","iterator","constructor","Math","globalThis","window","self","Function","this","u","a","f","y","v","h","g","target","global","stat","noTargetGet","forced","undefined","sham","String","enforce","split","unsafe","source","join","toString","slice","WeakMap","type","b","has","set","x","getterFor","arguments","length","configurable","writable","push","version","mode","copyright","style","display","appendChild","src","contentWindow","document","open","write","close","F","promise","resolve","reject","getOwnPropertyDescriptor","min","ceil","floor","isNaN","apply","getPrototypeOf","stopped","result","next","done","stop","error","propertyIsEnumerable","1","valueOf","createElement","random","concat","getOwnPropertyNames","getOwnPropertySymbols","keys","indexOf","includes","normalize","replace","toLowerCase","data","NATIVE","POLYFILL","Array","isArray","S","O","j","w","P","forEach","map","filter","some","every","find","findIndex","callee","charCodeAt","charAt","codeAt","E","IteratorPrototype","A","BUGGY_SAFARI_ITERATORS","T","L","M","k","entries","name","values","proto","setPrototypeOf","Promise","location","setImmediate","clearImmediate","process","MessageChannel","Dispatch","postMessage","protocol","host","nextTick","now","test","port2","port1","onmessage","addEventListener","importScripts","removeChild","setTimeout","clear","allSettled","then","status","reason","RegExp","exec","lastIndex","index","max","defineProperties","assign","I","_","C","R","N","D","G","V","$","z","H","W","q","B","JSON","U","stringify","Y","J","K","Q","X","Z","tt","nt","et","rt","QObject","ot","findChild","it","ut","tag","description","ct","st","ft","yt","at","lt","pt","wrap","for","keyFor","useSetter","useSimple","string","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","kind","Arguments","fetch","versions","v8","createEvent","dispatchEvent","PromiseRejectionEvent","all","notified","reactions","state","ok","fail","domain","rejection","enter","exit","initEvent","emit","parent","catch","race","return","from","MutationObserver","WebKitMutationObserver","fn","createTextNode","observe","characterData","console","real","finally","Error","errors","message","AggregateError","try","any","unicode","groups","ignoreCase","multiline","dotAll","sticky","_global","BI","prepares","searchElement","fromIndex","len","abs","lastIndexOf","Number","log","warn","debug","info","time","dir","profile","exception","trace","assert","localStorage","items","setItem","Cache","addCookie","getItem","getCookie","removeItem","deleteCookie","key","falsy","skipArray","__ob__","$accessors","$vbthis","$vbsetter","arg","Date","Set","match","add","ua","navigator","userAgent","reg","_sort","sort","tmp","func","thisArg","args","arrayAggregator","array","setter","iteratee","accumulator","arrayEach","arrayEvery","predicate","arrayFilter","resIndex","arrayIncludes","baseIndexOf","arrayIncludesWith","comparator","arrayMap","arrayPush","offset","arrayReduce","initAccum","arraySome","asciiToArray","baseFindKey","collection","eachFunc","baseFindIndex","fromRight","strictIndexOf","baseIsNaN","baseProperty","object","basePropertyOf","baseReduce","baseSortBy","comparer","baseTimes","baseUnary","baseValues","props","cacheHas","cache","charsStartIndex","strSymbols","chrSymbols","charsEndIndex","countHolders","placeholder","getValue","hasUnicode","reHasUnicode","iteratorToArray","mapToArray","size","overArg","transform","replaceHolders","PLACEHOLDER","safeGet","setToArray","stringSize","unicodeSize","asciiSize","stringToArray","unicodeToArray","reUnicode","lodash","isObjectLike","LazyWrapper","LodashWrapper","wrapperClone","baseLodash","chainAll","__wrapped__","__actions__","__chain__","__index__","__values__","__dir__","__filtered__","__iteratees__","__takeCount__","MAX_ARRAY_LENGTH","__views__","lazyClone","copyArray","lazyReverse","clone","lazyValue","isArr","isRight","arrLength","view","getView","start","end","iteratees","iterLength","takeCount","nativeMin","baseWrapperValue","outer","iterIndex","computed","LAZY_MAP_FLAG","LAZY_FILTER_FLAG","Hash","entry","hashClear","__data__","nativeCreate","hashDelete","hashGet","HASH_UNDEFINED","hashHas","hashSet","ListCache","listCacheClear","listCacheDelete","assocIndexOf","pop","splice","listCacheGet","listCacheHas","listCacheSet","MapCache","mapCacheClear","hash","Map","mapCacheDelete","getMapData","mapCacheGet","mapCacheHas","mapCacheSet","SetCache","setCacheAdd","setCacheHas","Stack","stackClear","stackDelete","stackGet","stackHas","stackSet","pairs","LARGE_ARRAY_SIZE","arrayLikeKeys","inherited","isArg","isArguments","isBuff","isBuffer","isType","isTypedArray","skipIndexes","isIndex","assignMergeValue","eq","baseAssignValue","assignValue","objValue","baseAggregator","baseEach","baseAssign","copyObject","baseAssignIn","keysIn","baseAt","paths","skip","baseClamp","number","lower","upper","baseClone","bitmask","customizer","stack","isDeep","CLONE_DEEP_FLAG","isFlat","CLONE_FLAT_FLAG","isFull","CLONE_SYMBOLS_FLAG","isObject","initCloneArray","getTag","isFunc","funcTag","genTag","cloneBuffer","objectTag","argsTag","initCloneObject","copySymbolsIn","copySymbols","cloneableTags","initCloneByTag","stacked","isSet","subValue","isMap","keysFunc","getAllKeysIn","getAllKeys","baseDelay","wait","FUNC_ERROR_TEXT","baseDifference","isCommon","valuesLength","valuesIndex","baseEvery","baseExtremum","current","isSymbol","baseFilter","baseFlatten","depth","isStrict","isFlattenable","baseForOwn","baseFor","baseForOwnRight","baseForRight","baseFunctions","isFunction","baseGet","path","castPath","toKey","baseGetAllKeys","symbolsFunc","baseGetTag","undefinedTag","nullTag","symToStringTag","getRawTag","objectToString","baseGt","other","baseHas","baseHasIn","baseIntersection","arrays","othLength","othIndex","caches","maxLength","Infinity","seen","baseInverter","baseInvoke","last","baseIsArguments","baseIsDate","dateTag","baseIsEqual","baseIsEqualDeep","equalFunc","objIsArr","othIsArr","objTag","arrayTag","othTag","objIsObj","othIsObj","isSameTag","equalArrays","equalByTag","COMPARE_PARTIAL_FLAG","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","equalObjects","baseIsMap","mapTag","baseIsMatch","matchData","noCustomizer","srcValue","COMPARE_UNORDERED_FLAG","baseIsNative","isMasked","pattern","reIsNative","reIsHostCtor","toSource","baseIsRegExp","regexpTag","baseIsSet","setTag","baseIsTypedArray","isLength","typedArrayTags","baseIteratee","identity","baseMatchesProperty","baseMatches","property","baseKeys","isPrototype","nativeKeys","baseKeysIn","nativeKeysIn","isProto","baseLt","baseMap","isArrayLike","getMatchData","matchesStrictComparable","isKey","isStrictComparable","hasIn","baseMerge","srcIndex","baseMergeDeep","newValue","mergeFunc","isTyped","isArrayLikeObject","cloneTypedArray","isPlainObject","toPlainObject","baseOrderBy","orders","criteria","compareMultiple","basePick","basePickBy","baseSet","basePropertyDeep","baseRandom","nativeFloor","nativeRandom","baseRange","step","nativeMax","nativeCeil","baseRest","setToString","overRest","nested","baseSlice","baseSome","baseToString","symbolToString","INFINITY","baseUniq","createSet","seenIndex","baseUnset","actions","action","baseZipObject","assignFunc","valsLength","castArrayLikeObject","stringToPath","castSlice","buffer","allocUnsafe","copy","cloneArrayBuffer","arrayBuffer","byteLength","Uint8Array","cloneDataView","dataView","byteOffset","cloneRegExp","regexp","reFlags","cloneSymbol","symbol","symbolValueOf","typedArray","compareAscending","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","objCriteria","othCriteria","ordersLength","order","composeArgs","partials","holders","isCurried","argsIndex","argsLength","holdersLength","leftIndex","leftLength","rangeLength","isUncurried","composeArgsRight","holdersIndex","rightIndex","rightLength","isNew","getSymbols","getSymbolsIn","createAggregator","initializer","createAssigner","assigner","sources","guard","isIterateeCall","createBaseEach","iterable","createBaseFor","createBind","wrapper","root","Ctor","isBind","WRAP_BIND_FLAG","createCtor","thisBinding","baseCreate","createCurry","arity","getHolder","createRecurry","createHybrid","createFind","findIndexFunc","partialsRight","holdersRight","argPos","ary","holdersCount","newHolders","isBindKey","reorder","isFlip","reverse","isAry","WRAP_ARY_FLAG","WRAP_BIND_KEY_FLAG","WRAP_CURRY_FLAG","WRAP_CURRY_RIGHT_FLAG","WRAP_FLIP_FLAG","createInverter","toIteratee","createPartial","createRange","toFinite","wrapFunc","isCurry","newHoldersRight","newPartials","newPartialsRight","WRAP_PARTIAL_FLAG","WRAP_PARTIAL_RIGHT_FLAG","WRAP_CURRY_BOUND_FLAG","newData","isLaziable","setData","setWrapToString","createWrap","toInteger","getData","mergeData","baseSetData","customDefaultsMerge","customOmitClone","isPartial","arrValue","othValue","compared","dataViewTag","arrayBufferTag","boolTag","numberTag","errorTag","stringTag","convert","symbolTag","objProps","objLength","othProps","skipCtor","objCtor","othCtor","flatRest","flatten","getFuncName","realNames","otherFunc","isKeyable","getNative","isOwn","unmasked","nativeObjectToString","transforms","getWrapDetails","reWrapDetails","reSplitDetails","hasPath","hasFunc","input","getPrototype","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","insertWrapDetails","details","reWrapComment","spreadableSymbol","MAX_SAFE_INTEGER","reIsUint","reIsPlainProp","reIsDeepProp","funcName","maskSrcKey","objectProto","memoizeCapped","memoize","MAX_MEMOIZE_SIZE","srcBitmask","newBitmask","isCombo","WRAP_REARG_FLAG","otherArgs","indexes","oldArray","reference","updateWrapDetails","shortOut","count","lastCalled","stamp","nativeNow","remaining","HOT_SPAN","HOT_COUNT","funcToString","wrapFlags","pair","compact","drop","findLastIndex","flattenDeep","head","initial","nativeReverse","take","takeRight","uniq","uniqBy","unzip","group","zipObject","chain","tap","interceptor","thru","wrapperChain","wrapperCommit","wrapperNext","toArray","wrapperToIterator","wrapperPlant","previous","wrapperReverse","wrapped","wrapperValue","reduce","negate","isString","before","debounce","options","invokeFunc","lastArgs","lastThis","lastInvokeTime","leadingEdge","timerId","timerExpired","leading","remainingWait","timeSinceLastCall","lastCallTime","timeSinceLastInvoke","timeWaiting","maxing","maxWait","shouldInvoke","trailingEdge","trailing","cancel","clearTimeout","flush","debounced","isInvoking","toNumber","resolver","memoized","once","rest","throttle","cloneDeep","isBoolean","isEmpty","isEqual","isFinite","nativeIsFinite","asyncTag","proxyTag","isNumber","isNull","objectCtorString","isUndefined","symIterator","sign","MAX_INTEGER","remainder","NAN","reTrim","isBinary","reIsBinary","reIsOctal","freeParseInt","reIsBadHex","properties","findKey","findLastKey","defaultValue","omitBy","pickBy","prop","clamp","floating","temp","rand","freeParseFloat","escape","reHasUnescapedHtml","reUnescapedHtml","escapeHtmlChar","trim","chars","constant","matches","mixin","methodNames","methodName","noConflict","oldDash","noop","stubArray","stubFalse","uniqueId","prefix","id","idCounter","VERSION","LAZY_WHILE_FLAG","promiseTag","weakMapTag","rePropName","reRegExpChar","reEscapeChar","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsVarRange","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","htmlEscapes","&","<",">","\"","'","parseFloat","parseInt","freeGlobal","freeSelf","freeExports","nodeType","freeModule","module","moduleExports","freeProcess","nodeUtil","binding","nodeIsDate","isDate","nodeIsMap","nodeIsRegExp","isRegExp","nodeIsSet","nodeIsTypedArray","arrayProto","funcProto","coreJsData","uid","IE_PROTO","Buffer","objectCreate","isConcatSpreadable","nativeGetSymbols","nativeIsBuffer","DataView","metaMap","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","baseSetToString","ArrayBuffer","ctorString","quote","subString","difference","intersection","mapped","union","without","zip","wrapperAt","countBy","groupBy","sortBy","defer","delay","assignIn","defaults","propsIndex","propsLength","defaultsDeep","mergeWith","invert","invertBy","merge","omit","pick","range","extend","each","first","isFilter","getIteratee","takeName","dropName","findLast","invokeMap","dropRight","takeRightWhile","takeWhile","checkIteratee","isTaker","lodashFunc","retUnwrapped","isLazy","useLazy","isHybrid","isUnwrapped","onlyLazy","chainName","names","define","amd","traverse","context","obj","_apply","_applyFunc","is","deepContains","UUID","str","isWidget","widget","Widget","View","createWidgets","item","createWidget","deepClone","createItems","innerAttr","outerAttr","makeArray","shift","el","packageItems","layouts","formatEL","stripEL","trans2Element","widgets","wi","element","to","inverse","firstKey","res","lastKey","firstObject","lastObject","obj1","obj2","backEach","backAny","backEvery","backFindKey","backFind","remove","contains","removeAt","string2Array","array2String","abc2Int","idx","toUpperCase","int2Abc","num","DIGITS","makeObject","makeArrayByArray","isSorted","inherit","sb","sp","overrides","spp","superclass","init","initialized","freeze","isCapitalEqual","isWidthOrHeight","isNotNull","isEmptyArray","arr","isNotEmptyArray","isEmptyObject","isNotEmptyObject","isEmptyString","isNotEmptyString","isWindow","deepExtend","isDeepMatch","attrs","deepIndexOf","deepRemove","deepWithout","deepUnique","deepDiff","used","nextTickHandler","pending","copies","callbacks","timerFunc","isIE","counter","observer","textNode","queueNextTick","cb","_resolve","getTime","performance","webkitNow","getDate","radix","parseSafeInt","isNaturalNumber","isPositiveInteger","isNegativeInteger","isInteger","isNumeric","isFloat","isOdd","isEven","sum","average","toLocaleUpperCase","toLocaleLowerCase","isEndWithBlank","isLiteral","exp","literalValueRE","stripQuotes","camelize","character","hyphenate","encrypt","text","CRYPT_TYPE","AES","aesEncrypt","leftPad","val","ch","format","isLeapYear","year","checkDateVoid","YY","MM","DD","minDate","maxDate","back","checkDateLegal","ar","MD","_MD","parseDateTime","fmt","today","yearlength","otherlength","substring","hr","sec","_MN","substr","getFullYear","getMonth","getHours","getMinutes","getSeconds","search","dt","timeZone","localTime","localOffset","getTimezoneOffset","utc","OB","config","_constructor","destroyed","_initProps","_init","_initRef","_defaultConfig","_initListeners","listeners","lis","eventName","ref","_purgeRef","_getEvents","events","on","fns","proxy","un","newFns","ifn","purgeListeners","fireEvent","destroy","tagName","attributes","disabled","invisible","invalid","baseCls","extraCls","cls","css","beforeInit","beforeCreate","created","render","beforeMount","mounted","shouldUpdate","update","beforeDestroy","_initRoot","_initElementWidth","_initElementHeight","_initVisual","_initState","_initRender","__asking","_render","__async","_initElement","_initEffects","widgetName","_isRoot","_parent","addWidget","_renderEngine","_isWidget","_baseCls","addClass","attr","_children","width","height","setEnable","setValid","_isMounted","els","_mount","_setParent","force","deep","lifeHook","isVisible","_mountChildren","isEnabled","_setEnable","isValid","_setValid","Events","MOUNT","isMounted","setWidth","setHeight","enable","child","_manualSetEnable","valid","_manualSetValid","_setVisible","visible","removeClass","setVisible","VIEW","doBehavior","getWidth","getHeight","getName","DESTROY","getWidgetByName","removeWidget","nameOrWidget","hasWidget","getText","setText","setValue","disable","__d","_unMount","UNMOUNT","isolate","DOM","hang","empty","_destroy","registerRenderEngine","engine","createFragment","createDocumentFragment","mount","container","hydrate","ws","patchProps","children","triggerLifeHook","append","kv","shortcut","component","xtype","getWidget","getObject","CryptoJS","C_lib","lib","Base","subtype","mixIn","$super","propertyName","WordArray","words","sigBytes","encoder","Hex","wordArray","thisWords","thatWords","thisSigBytes","thatSigBytes","thatByte","nBytes","C_enc","enc","hexChars","bite","parse","hexStr","hexStrLength","Latin1","latin1Chars","fromCharCode","latin1Str","latin1StrLength","Utf8","decodeURIComponent","utf8Str","unescape","encodeURIComponent","BufferedBlockAlgorithm","reset","_data","_nDataBytes","_append","_process","doFlush","dataWords","dataSigBytes","blockSize","blockSizeBytes","nBlocksReady","_minBufferSize","nWordsReady","nBytesReady","_doProcessBlock","processedWords","Hasher","cfg","_doReset","messageUpdate","finalize","_doFinalize","_createHelper","hasher","_createHmacHelper","C_algo","HMAC","algo","Base64","_map","base64Chars","byte1","byte2","byte3","triplet","paddingChar","base64Str","base64StrLength","paddingIndex","bits1","bits2","FF","GG","HH","II","sin","MD5","_hash","offset_i","M_offset_i","M_offset_0","M_offset_1","M_offset_2","M_offset_3","M_offset_4","M_offset_5","M_offset_6","M_offset_7","M_offset_8","M_offset_9","M_offset_10","M_offset_11","M_offset_12","M_offset_13","M_offset_14","M_offset_15","nBitsTotal","nBitsLeft","nBitsTotalH","nBitsTotalL","H_i","HmacMD5","EvpKDF","keySize","iterations","compute","password","salt","derivedKey","derivedKeyWords","block","Cipher","createEncryptor","_ENC_XFORM_MODE","createDecryptor","_DEC_XFORM_MODE","xformMode","_xformMode","_key","dataUpdate","finalProcessedData","ivSize","selectCipherStrategy","PasswordBasedCipher","SerializableCipher","cipher","decrypt","ciphertext","StreamCipher","finalProcessedBlocks","C_mode","BlockCipherMode","iv","Encryptor","Decryptor","_cipher","_iv","CBC","xorBlock","_prevBlock","processBlock","encryptBlock","thisBlock","decryptBlock","C_pad","pad","Pkcs7","nPaddingBytes","paddingWord","paddingWords","padding","unpad","BlockCipher","modeCreator","_mode","CipherParams","cipherParams","formatter","C_format","OpenSSLFormatter","OpenSSL","openSSLStr","ciphertextWords","encryptor","cipherCfg","algorithm","_parse","plaintext","C_kdf","kdf","OpenSSLKdf","execute","derivedParams","ECB","SBOX","INV_SBOX","SUB_MIX_0","SUB_MIX_1","SUB_MIX_2","SUB_MIX_3","INV_SUB_MIX_0","INV_SUB_MIX_1","INV_SUB_MIX_2","INV_SUB_MIX_3","xi","sx","x2","x4","x8","RCON","keyWords","nRounds","_nRounds","ksRows","keySchedule","_keySchedule","ksRow","invKeySchedule","_invKeySchedule","invKsRow","_doCryptBlock","s0","s1","s2","s3","round","t0","t1","t2","t3","base64Cipher","aspect","advice","exist","dispatcher","beforeArr","rs","method","afterArr","after","ii","aspectArr","_index","_keyStr","_utf8_encode","utftext","_utf8_decode","c3","c2","encode","output","chr1","chr2","chr3","enc1","enc2","enc3","enc4","decode","_prefix","setUsername","username","getUsername","_getKeyPrefix","_generateKey","expiresHours","cookieString","date","setTime","toUTCString","cookie","CellSizeAndPositionManager","cellCount","cellSizeGetter","estimatedCellSize","_cellSizeGetter","_cellCount","_estimatedCellSize","_cellSizeAndPositionData","_lastMeasuredIndex","configure","getCellCount","getEstimatedCellSize","getLastMeasuredIndex","getSizeAndPositionOfCell","lastMeasuredCellSizeAndPosition","getSizeAndPositionOfLastMeasuredCell","getTotalSize","getUpdatedOffsetForIndex","align","containerSize","currentOffset","targetIndex","datum","maxOffset","minOffset","idealOffset","totalSize","getVisibleCellRange","_findNearestCell","resetCell","_binarySearch","high","low","middle","_exponentialSearch","interval","lastMeasuredIndex","ScalingCellSizeAndPositionManager","maxScrollSize","_cellSizeAndPositionManager","_maxScrollSize","getOffsetAdjustment","safeTotalSize","offsetPercentage","_getOffsetPercentage","_safeOffsetToOffset","_offsetToSafeOffset","_ChineseFirstPY","oMultiDiff","19969","19975","19988","20048","20056","20060","20094","20127","20167","20193","20250","20256","20282","20285","20291","20314","20315","20340","20375","20389","20391","20415","20446","20447","20504","20608","20854","20857","20911","20985","21032","21048","21049","21089","21119","21242","21273","21305","21306","21330","21333","21345","21378","21397","21414","21442","21477","21480","21484","21494","21505","21512","21523","21537","21542","21549","21571","21574","21588","21589","21618","21621","21632","21654","21679","21683","21710","21719","21734","21769","21780","21804","21834","21899","21903","21908","21939","21956","21964","21970","22003","22031","22040","22060","22066","22079","22129","22179","22237","22244","22280","22300","22313","22331","22343","22351","22395","22412","22484","22500","22534","22549","22561","22612","22771","22831","22841","22855","22865","23013","23081","23487","23558","23561","23586","23614","23615","23631","23646","23663","23673","23762","23769","23780","23884","24055","24113","24162","24191","24273","24324","24377","24378","24439","24554","24683","24694","24733","24925","25094","25100","25103","25153","25170","25179","25203","25240","25282","25303","25324","25341","25373","25375","25384","25457","25528","25530","25552","25774","25874","26044","26080","26292","26333","26355","26366","26397","26399","26415","26451","26526","26552","26561","26588","26597","26629","26638","26646","26653","26657","26727","26894","26937","26946","26999","27099","27449","27481","27542","27663","27748","27784","27788","27795","27812","27850","27852","27895","27898","27973","27981","27986","27994","28044","28065","28177","28267","28291","28337","28463","28548","28601","28689","28805","28820","28846","28952","28975","29100","29325","29575","29602","30010","30044","30058","30091","30111","30229","30427","30465","30631","30655","30684","30707","30729","30796","30917","31074","31085","31109","31181","31192","31293","31400","31584","31896","31909","31995","32321","32327","32418","32420","32421","32438","32473","32488","32521","32527","32562","32564","32735","32793","33071","33098","33100","33152","33261","33324","33333","33406","33426","33432","33445","33486","33493","33507","33540","33544","33564","33617","33632","33636","33637","33694","33705","33728","33882","34067","34074","34121","34255","34259","34425","34430","34485","34503","34532","34552","34558","34593","34660","34892","34928","34999","35048","35059","35098","35203","35265","35299","35782","35828","35830","35843","35895","35977","36158","36228","36426","36466","36710","36711","36767","36866","36951","37034","37063","37218","37325","38063","38079","38085","38107","38116","38123","38224","38241","38271","38415","38426","38461","38463","38466","38477","38518","38551","38585","38704","38739","38761","38808","39048","39049","39052","39076","39271","39534","39552","39584","39647","39730","39748","40109","40479","40516","40536","40583","40765","40784","40840","40863","_checkPYCh","uni","_mkPYRslt","ignoreMulti","splitChar","arrRslt","multiLen","strlen","tmpStr","tmpArr","makeFirstPY","arrResult","cancelAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","oCancelAnimationFrame","msCancelAnimationFrame","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","oRequestAnimationFrame","msRequestAnimationFrame","MouseMoveTracker","onMove","onMoveEnd","domNode","_isDragging","_animationFrameID","_domNode","_onMove","_onMoveEnd","_onMouseMove","_onMouseUp","_didMouseMove","captureMouseMoves","event","_eventMoveToken","_eventUpToken","EventListener","listen","_deltaX","_deltaY","_x","clientX","_y","clientY","preventDefault","returnValue","releaseMouseMoves","isDragging","normalizeWheel","sX","sY","pX","pY","detail","wheelDelta","wheelDeltaY","wheelDeltaX","axis","HORIZONTAL_AXIS","PIXEL_STEP","deltaY","deltaX","deltaMode","LINE_HEIGHT","PAGE_HEIGHT","spinX","spinY","pixelX","pixelY","WheelHandler","onWheel","handleScrollX","handleScrollY","stopPropagation","_didWheel","_handleScrollX","_handleScrollY","_stopPropagation","_onWheelCallback","normalizedEvent","changed","cancelBubble","defaultComparator","Heap","_items","_size","_comparator","_heapify","elt","lastElt","_sinkDown","_bubbleUp","peek","parentIndex","parentElt","leftChildIndex","rightChildIndex","swapIndex","leftChild","rightChild","LinkHashMap","scope","re","LRU","limit","tail","_keymap","put","removed","newer","older","returnEntry","node","Int32Array","xs","ceilLog2","PrefixIntervalTree","_half","_heap","getSize","sumUntil","sumTo","inclusiveEnd","begin","greatestLowerBound","leftSum","greatestStrictLowerBound","leastUpperBound","leastStrictUpperBound","uniform","initialValue","Queue","capacity","getElementByIndex","unshift","fromArray","Section","_indexMap","_indices","addCellIndex","getCellIndices","SECTION_SIZE","SectionManager","sectionSize","_sectionSize","_cellMetadata","_sections","indices","getSections","section","getCellMetadata","sectionXStart","sectionXStop","sectionYStart","sectionYStop","sections","sectionX","sectionY","getTotalSectionCount","registerCell","cellMetadatum","Tree","Node","addNode","newNode","addChild","isRoot","getRoot","initTree","nodes","queue","_toJSON","getChildren","toJSON","_toJSONWithNode","toJSONWithNode","param","_traverse","callback","_recursion","route","recursion","inOrderTraverse","_inOrderTraverse","getLeft","getRight","nrInOrderTraverse","preOrderTraverse","_preOrderTraverse","nrPreOrderTraverse","postOrderTraverse","_postOrderTraverse","nrPostOrderTraverse","preNode","isLeaf","getChildrenLength","getFirstChild","getLastChild","setLeft","left","setRight","right","setParent","getParent","getChild","getChildIndex","removeChildByIndex","behind","removeAllChilds","cur","equals","transformToArrayFormat","pId","newNodes","arrayFormat","transformToTreeFormat","sNodes","tmpMap","treeFormat","traversal","Vector","cross","sqrt","Region","isIntersects","isPointInside","vector1","vector2","vector3","getPosition","pos","BehaviorFactory","createBehavior","behavior","HighlightBehavior","RedMarkBehavior","Behavior","rule","Layout","scrollable","scrollx","scrolly","_init4Margin","_init4Scroll","top","bottom","overflow-x","overflow-y","appendFragment","frag","hasChild","_getChildName","_addElement","removeItemAt","_getOptions","_compare","item1","item2","aStack","bStack","className","areArrays","_getWrapper","_addItemAt","_removeItemAt","addItem","addItemAt","prependItem","prependTo","deleted","newItems","newChildren","shouldUpdateItem","updateItemAt","updated","del","addItems","fragment","added","prependItems","prepend","patchItem","oldVnode","vnode","updateChildren","oldCh","newCh","sameVnode","vnode1","vnode2","oldIndex","newIndex","opt","addVnodes","vnodes","startIdx","endIdx","insertBefore","removeVnodes","insert","isNext","insertKey","beforeKey","findOldVnode","vNode","beginIdx","found","oldStartIdx","newStartIdx","oldEndIdx","oldStartVnode","oldEndVnode","newEndIdx","newStartVnode","newEndVnode","sameOldVnode","stroke","removeIndex","populate","resize","_WidgetsPlugin","_ObjectPlugin","_ConfigPlugin","_GlobalWidgetConfigFn","_GlobalObjectConfigFn","widgetConfigFn","objectConfigFn","configWidget","registerWidget","relieveWidget","registerObject","relieveObject","Action","tar","actionPerformed","actionBack","ActionFactory","createAction","ShowAction","isInvalidDate","_eFormat","eFormat","neg","magnitudeNeg","magnitude","pow","integerLen","getInteger","precision","getPrecision","isValueCarry","isValueCarried","toFixed","formatExponential","isAllZero","formatLeft","valueLeftLen","roundNum","_dealNumberPrecision","fright","_numberFormat","numMod","fp","fleft","tp","tleft","tright","paddingZero","_dealWithRight","leftPlus","_dealWithLeft","rll","numReg","orilen","newnum","combo","com","tll","newstr","lres","cjkEncode","newText","code","cjkDecode","rightIdx","subText","eval","SPECIAL_TAGS"," ","htmlEncode","replaceAll","htmlDecode","cjkEncodeDO","jsonEncode","useHasOwn","\b","\t","\n","\f","\r","\\","encodeString","encodeArray","__time__","jsonDecode","_hasDateInJson","json","jo","parseJSON","getEncodeURL","urlTemplate","ori","url","specialCharsMap","reserveSpecialCharsMap","initialChar","encodeChar","contentFormat","cv","needTrim","date2Str","parseFmt","str2Date","compileJFmt","jfmt","_DN","getDay","hour","getTimezone","flagch","char","object2Number","object2Date","object2Time","doBe","run","doHighLight","unHighLight","Single","doRedMark","unRedMark","Controller","EVENT_CHANGE","BroadcastController","_broadcasts","send","BubblesController","_const","bubbleHeight","bubblesManager","storeBubbles","Resizers","_createBubble","direct","level","direction","_getOffsetLeft","offsetStyle","bounds","_getOffsetTop","_getLeftPosition","position","getLeftPosition","_getBottomPosition","getBottomPosition","_getTopPosition","getTopPosition","_getRightPosition","getRightPosition","show","adjustYOffset","adjustXOffset","isTopSpaceEnough","isLeftSpaceEnough","isRightSpaceEnough","hide","bubble","LayerController","layerManager","zindex","zIndex_layer","_resize","layer","trigger","make","op","layout","outerWidth","outerHeight","_getLayout","removeAll","MaskersController","zIndex_masker","PopoverController","modal","floatManager","floatLayer","floatContainer","floatOpened","zIndex_popover","zindexMap","_check","popover","Popover","EVENT_CLOSE","__hasZIndexMask__","__releaseZIndexMask__","__buildZIndexMask__","setZindex","ResizeController","resizerManger","ev","resizer","TooltipsController","tooltipsManager","showingTips","_createTooltip","stopEvent","tooltip","tip","belowMouse","scrollHeight","pageX","pageY","bodyHeight","hover","KEYDOWN","BACKSPACE","SPACE","ENTER","CONFIRM","ERROR","PAUSE","CLEAR","ADD","EDITING","EMPTY","RESIZE","BEFOREEDIT","AFTEREDIT","STARTEDIT","STOPEDIT","CHANGE","EXPAND","COLLAPSE","CALLBACK","CLICK","STATECHANGE","BEFORESTATECHANGE","INIT","AFTERINIT","SCROLL","STARTLOAD","AFTERLOAD","BS","AS","SC","SF","SS","BVW","AVW","AV","BW","AW","WS","WF","BA","AA","BD","AD","UC","BTOPDF","ATOPDF","BTOEXCEL","ATOEXCEL","BTOWORD","ATOWORD","BTOIMAGE","ATOIMAGE","BTOHTML","ATOHTML","BIMEXCEL","AIMEXCEL","BPDFPRINT","APDFPRINT","BFLASHPRINT","AFLASHPRINT","BAPPLETPRINT","AAPPLETPRINT","BSEVERPRINT","ASERVERPRINT","BEMAIL","AEMAIL","pushArray","sArray","pushDistinct","pushDistinctArray","i18nText","_SDN","_FD","_SMN","_QN","_OFFSET","SECOND","MINUTE","HOUR","DAY","WEEK","getMonthDays","month","getLastDateOfMonth","getDayOfYear","getWeekNumber","week","startOfWeek","StartOfWeek","middleDay","offsetWeekStartCount","offsetWeekMiddleCount","setDate","ms","setMonth","getQuarter","getOffsetDate","getOffsetQuarter","day","monthDay","getQuarterStartMonth","quarterStartMonth","nowMonth","getQuarterStartDate","getQuarterEndDate","quarterEndMonth","getOffsetMonth","getWeekStartDate","getWeekEndDate","print","yWith4number","wn","qr","pm","ir","dy","isKhtml","par","Func","createDistinctName","getGBWidth","getSearchResult","keyword","py","matched","pidx","beforeFunc","sFunc","__self","afterFunc","ret","accAdd","arg1","arg2","r1","r2","cm","sub","accSub","mul","accMul","div","digitLength","eSplit","float2Fixed","dLen","times","num1","num2","others","_i","num1Changed","num2Changed","baseNum","leftValue","accDivide","startWith","startTag","endWith","endTag","getQuery","appendQuery","paras","perfectStart","allIndexOf","loc","i18nStore","addI18n","i18n","localeText","moduleInjection","constantInjection","modelInjection","model","storeInjection","store","serviceInjection","service","providerInjection","provider","configFunctions","configFn","providers","globalAction","actionFn","points","point","pointFn","Modules","getModule","getAllModules","Constants","getConstant","callPoint","inst","bfns","afns","Models","getModel","stores","Stores","getStore","services","Services","getService","providerInstance","Providers","getProvider","$get","Actions","runAction","act","runGlobalAction","getContext","ShowListener","eventObj","cardLayout","cardNameCreator","cardCreator","emptyFn","afterCardCreated","afterCardShow","ob","cardName","isCardExisted","card","addCardByName","showCardByName","StyleLoaderManager","stylesManager","loadStyle","styleString","styles","getElementsByTagName","setAttribute","styleSheet","cssText","removeStyle","parentNode","Logic","createLogic","LogicFactory","Type","Vertical","Horizontal","Table","HorizontalFill","logic","VerticalLayoutLogic","HorizontalLayoutLogic","TableLayoutLogic","HorizontalFillLayoutLogic","createLogicTypeByDirection","Direction","Top","Bottom","Custom","Left","Right","createLogicItemsByDirection","dynamic","hgap","vgap","lgap","rgap","tgap","bgap","columns","rows","columnSize","rowSize","_isSupportFlex","isSupportFlex","isSupportCss3","supportFlex","isLessIE8","getIEVersion","verticalAlign","VerticalAlign","Middle","horizontalAlign","HorizontalAlign","Center","justOneItem","attachEvent","stylesCreated","requestFrame","raf","cancelFrame","resetTriggers","triggers","__resizeTriggers__","expand","firstElementChild","contract","lastElementChild","expandChild","scrollLeft","scrollWidth","scrollTop","offsetWidth","offsetHeight","checkTriggers","__resizeLast__","scrollListener","__resizeRAF__","__resizeListeners__","animation","animationstring","keyframeprefix","animationstartevent","domPrefixes","startEvents","pfx","elm","animationName","animationKeyframes","animationStyle","createStyles","addResizeListener","getComputedStyle","innerHTML","removeResizeListener","detachEvent","removeEventListener","ResizeDetector","ready","fromElement","toElement","elemData","jQuery","eventKey","handler","namespace","fromChildren","toChildren","doms","dom","isExist","preloadImages","srcArray","onload","complete","images","Image","onerror","getTextSizeWidth","fontSize","span","appendTo","getTextSizeHeight","getScrollWidth","_scrollWidth","ul","overflow","clientWidth","getImage","fillStyle","backgroundColor","canvas","ratio","ctx","font","measureText","textBaseline","fillText","backColor","toDataURL","isColor","color","isRGBColor","isHexColor","isDarkColor","hex","rgb","rgb2json","hex2rgb","grayLevel","getContrastColor","rgb2hex","rgbColour","rgbValues","red","green","blue","hexColour","int2hex","rgba2json","json2rgb","json2rgba","rgba","strNum","hexdig","tempValue","colorArray","rgba2rgb","rgbColor","bgColor","popup","extraWidth","getInnerLeftPosition","getInnerRightPosition","viewBounds","extraHeight","isInnerLeftSpaceEnough","windowBounds","isInnerRightSpaceEnough","isBottomSpaceEnough","isRightSpaceLarger","isBottomSpaceLarger","getLeftAlignPosition","getLeftAdaptPosition","getRightAlignPosition","comboBounds","getRightAdaptPosition","getTopAlignPosition","needAdaptHeight","comboOffset","popupBounds","adaptHeight","getTopAdaptPosition","getBottomAlignPosition","getBottomAdaptPosition","getCenterAdaptPosition","getMiddleAdaptPosition","getComboPositionByDirections","directions","leftRight","topBottom","innerLeftRight","isNeedAdaptHeight","tbFirst","lrFirst","firstDir","tW","tH","change","getComboPosition","maxHeight","resetHeight","eventType","capture","registerDefault","__isIE","__IEVersion","agent","v1","v2","isIE9Below","isEdge","isChrome","isFireFox","isOpera","isSafari","isMac","isWindows","humpString","htmlStyle","documentElement","_toHumb","$0","$1","isArraylike","createOptions","optionsCache","core_rnotwhite","flag","internalData","elem","pvt","acceptData","thisCache","internalKey","expando","getByName","isNode","core_deletedIds","guid","camelCase","internalRemoveData","isEmptyDataObject","cleanData","support","deleteExpando","dataAttr","rmultiDash","getAttribute","rbrace","returnTrue","returnFalse","sibling","winnow","elements","qualifier","keep","grep","retVal","filtered","isSimple","inArray","createSafeFragment","list","nodeNames","safeFrag","findOrAppend","ownerDocument","disableScript","getAttributeNode","specified","restoreScript","rscriptTypeMasked","removeAttribute","setGlobalEval","elems","refElements","cloneCopyEvent","dest","hasData","oldData","curData","handle","fixCloneNodeIssues","nodeName","noCloneEvent","removeEvent","outerHTML","html5Clone","manipulation_rcheckableType","defaultChecked","checked","defaultSelected","selected","getAll","core_strundefined","querySelectorAll","childNodes","fixDefaultChecked","vendorPropName","capName","origName","cssPrefixes","isHidden","showHide","hidden","css_defaultDisplay","setPositiveNumber","subtract","rnumsplit","augmentWidthOrHeight","extra","isBorderBox","cssExpand","getWidthOrHeight","valueIsBorderBox","getStyles","boxSizing","curCSS","rnumnonpx","boxSizingReliable","doc","elemdisplay","actualDisplay","iframe","contentDocument","detach","body","buildParams","traditional","rbracket","addToPrefiltersOrTransports","structure","dataTypeExpression","dataType","dataTypes","inspectPrefiltersOrTransports","originalOptions","jqXHR","inspect","inspected","prefilterOrFactory","dataTypeOrTransport","seekingTransport","transports","ajaxExtend","flatOptions","ajaxSettings","ajaxHandleResponses","responses","firstDataType","finalDataType","contents","responseFields","mimeType","getResponseHeader","converters","ajaxConvert","response","conv2","conv","prev","dataFilter","createStandardXHR","XMLHttpRequest","createActiveXHR","ActiveXObject","createFxNow","fxNow","createTweens","tweeners","Animation","animationPrefilters","deferred","Deferred","always","tick","currentTime","startTime","duration","percent","tweens","notifyWith","resolveWith","opts","specialEasing","originalProperties","createTween","tween","Tween","easing","gotoEnd","rejectWith","propFilter","fx","timer","anim","progress","hooks","cssHooks","defaultPrefilter","dataShow","toggle","oldfire","orig","handled","_queueHooks","unqueued","fire","overflowX","overflowY","inlineBlockNeedsLayout","zoom","shrinkWrapBlocks","rfxtypes","_removeData","genFx","includeWidth","which","opacity","getWindow","defaultView","parentWindow","readyList","rootjQuery","_jQuery","_$","class2type","core_version","core_concat","core_push","core_slice","core_indexOf","core_toString","core_hasOwn","core_trim","selector","core_pnum","rtrim","rquickExpr","rsingleTag","rvalidchars","rvalidbraces","rvalidescape","rvalidtokens","rmsPrefix","rdashAlpha","fcamelCase","letter","completed","readyState","jquery","parseHTML","getElementById","pushStack","prevObject","copyIsArray","isReady","readyWait","holdReady","hold","off","msg","keepScripts","parsed","scripts","buildFragment","parseXML","xml","DOMParser","parseFromString","async","loadXML","globalEval","execScript","results","second","inv","access","chainable","emptyGet","raw","bulk","frameElement","doScroll","doScrollCheck","Callbacks","firing","memory","fired","firingLength","firingIndex","firingStart","stopOnFalse","unique","lock","locked","fireWith","tuples","newDefer","tuple","returned","notify","pipe","stateString","when","subordinate","resolveValues","updateFunc","contexts","progressValues","progressContexts","resolveContexts","select","isSupported","getSetAttribute","leadingWhitespace","firstChild","tbody","htmlSerialize","hrefNormalized","cssFloat","checkOn","optSelected","enctype","cloneNode","boxModel","compatMode","reliableMarginRight","pixelPosition","noCloneChecked","optDisabled","radioValue","appendChecked","checkClone","lastChild","click","submit","focusin","backgroundClip","clearCloneStyle","marginDiv","tds","divReset","reliableHiddenOffsets","doesNotIncludeMarginInBodyOffset","offsetTop","marginRight","noData","embed","applet","removeData","dequeue","startLength","speeds","timeout","clearQueue","nodeHook","boolHook","rclass","rreturn","rfocusable","rclickable","rboolean","ruseDefault","getSetInput","removeAttr","removeProp","propFix","classes","clazz","proceed","toggleClass","stateVal","isBool","classNames","hasClass","valHooks","option","selectedIndex","one","notxml","nType","isXMLDoc","attrHooks","propName","attrNames","tabindex","readonly","class","maxlength","cellspacing","cellpadding","rowspan","colspan","usemap","frameborder","contenteditable","propHooks","tabIndex","attributeNode","href","button","setAttributeNode","createAttribute","rformElems","rkeyEvent","rmouseEvent","rfocusMorph","rtypenamespace","types","handleObjIn","special","eventHandle","handleObj","handlers","namespaces","origType","triggered","dispatch","delegateType","bindType","needsContext","expr","delegateCount","setup","mappedTypes","origCount","teardown","onlyHandlers","ontype","bubbleType","eventPath","Event","isTrigger","namespace_re","noBubble","isPropagationStopped","isDefaultPrevented","_default","fix","handlerQueue","delegateTarget","preDispatch","currentTarget","isImmediatePropagationStopped","postDispatch","sel","originalEvent","fixHook","fixHooks","mouseHooks","keyHooks","srcElement","metaKey","original","charCode","keyCode","eventDoc","clientLeft","clientTop","relatedTarget","load","focus","activeElement","blur","beforeunload","simulate","isSimulated","defaultPrevented","getPreventDefault","timeStamp","stopImmediatePropagation","mouseenter","mouseleave","related","submitBubbles","form","_submit_bubble","changeBubbles","_just_changed","focusinBubbles","attaches","origFn","unbind","delegate","undelegate","triggerHandler","isNative","rnative","createCache","Expr","cacheLength","markFunction","Sizzle","seed","old","nid","newContext","newSelector","preferredDoc","setDocument","documentIsXML","getByClassName","getElementsByClassName","qsa","rbuggyQSA","tokenize","rescape","toSelector","rsibling","qsaError","siblingCheck","diff","sourceIndex","MAX_NEGATIVE","nextSibling","createInputPseudo","createButtonPseudo","createPositionalPseudo","argument","matchIndexes","parseOnly","tokens","soFar","preFilters","cached","tokenCache","preFilter","rcomma","rcombinators","matchExpr","addCombinator","matcher","combinator","base","checkNonElements","doneName","outerCache","dirkey","dirruns","cachedruns","elementMatcher","matchers","condense","unmatched","newUnmatched","setMatcher","postFilter","postFinder","postSelector","preMap","postMap","preexisting","multipleContexts","matcherIn","matcherOut","matcherFromTokens","checkContext","leadingRelative","relative","implicitRelative","matchContext","matchAnyContext","outermostContext","matcherFromGroupMatchers","elementMatchers","setMatchers","matcherCachedRuns","bySet","byElement","superMatcher","expandContext","setMatched","matchedCount","outermost","contextBackup","dirrunsUnique","uniqueSort","token","runescape","funescape","compile","setFilters","isXML","hasDuplicate","docElem","rbuggyMatches","sortOrder","classCache","compilerCache","strundefined","whitespace","characterEncoding","identifier","operators","pseudos","rpseudo","ridentifier","ID","CLASS","NAME","TAG","ATTR","PSEUDO","CHILD","rinputs","rheader","rattributeQuotes","escaped","tagNameNoComments","createComment","pass","getElementsByName","getIdNotName","attrHandle","attrId","matchesSelector","mozMatchesSelector","webkitMatchesSelector","oMatchesSelector","msMatchesSelector","disconnectedMatch","compareDocumentPosition","adown","bup","compare","aup","ap","bp","detectDuplicates","duplicates","textContent","nodeValue","selectors","createPseudo","+","~","excess","unquoted","operator","check","what","simple","forward","ofType","nodeIndex","useCache","pseudo","not","innerText","lang","elemLang","hasFocus","enabled","header","even","odd","gt","radio","checkbox","file","image","filters","runtil","rparentsprev","rneedsContext","guaranteedUnique","targets","closest","prevAll","addBack","andSelf","parents","parentsUntil","until","nextAll","nextUntil","prevUntil","siblings","rinlinejQuery","rnoshimcache","rleadingWhitespace","rxhtmlTag","rtagName","rtbody","rhtml","rnoInnerhtml","rchecked","rscriptType","rcleanScript","wrapMap","legend","area","thead","tr","col","td","safeFragment","fragmentDiv","optgroup","tfoot","colgroup","caption","th","wrapAll","html","wrapInner","unwrap","replaceWith","domManip","keepData","dataAndEvents","deepDataAndEvents","table","hasScripts","iNoClone","ajax","throws","insertAfter","destElements","srcElements","inPage","selection","safe","ralpha","ropacity","rposition","rdisplayswap","rmargin","rrelNum","BODY","cssShow","visibility","cssNormalTransform","letterSpacing","fontWeight","bool","cssNumber","columnCount","fillOpacity","lineHeight","orphans","widows","zIndex","cssProps","float","swap","_computed","minWidth","maxWidth","getPropertyValue","currentStyle","rsLeft","runtimeStyle","pixelLeft","margin","border","suffix","expanded","parts","r20","rCRLF","rsubmitterTypes","rsubmittable","serialize","serializeArray","fnOver","fnOut","ajaxLocParts","ajaxLocation","ajax_nonce","ajax_rquery","rhash","rts","rheaders","rlocalProtocol","rnoContent","rprotocol","rurl","_load","prefilters","allTypes","params","responseText","success","active","lastModified","etag","isLocal","processData","contentType","accepts","*","* text","text html","text json","text xml","ajaxSetup","settings","ajaxPrefilter","ajaxTransport","nativeStatusText","headers","isSuccess","modified","statusText","timeoutTimer","transport","responseHeadersString","ifModified","cacheURL","callbackContext","statusCode","fireGlobals","globalEventContext","completeDeferred","responseHeaders","requestHeaders","requestHeadersNames","strAbort","getAllResponseHeaders","setRequestHeader","lname","overrideMimeType","abort","finalText","crossDomain","hasContent","beforeSend","getScript","getJSON","script","text script","scriptCharset","charset","onreadystatechange","isAbort","oldCallbacks","rjsonp","jsonp","jsonpCallback","originalSettings","callbackName","overwritten","responseContainer","jsonProp","xhrCallbacks","xhrSupported","xhrId","xhrOnUnloadAbort","xhr","cors","xhrFields","err","firefoxAccessException","unload","rfxnum","rrun","unit","scale","maxIterations","tweener","prefilter","eased","cssFn","speed","animate","fadeTo","optall","doAnimation","finish","stopQueue","timers","slideDown","slideUp","slideToggle","fadeIn","fadeOut","fadeToggle","linear","swing","cos","PI","setInterval","clearInterval","slow","fast","animated","setOffset","win","box","getBoundingClientRect","pageYOffset","pageXOffset","curElem","curOffset","curCSSTop","curCSSLeft","calculatePosition","curPosition","curTop","curLeft","using","offsetParent","parentOffset","scrollTo","Height","Width","content","","defaultExtra","insets","hasIgnoredBounds","__textKeywordMarked__","textLeft","tidx","ps","getDomHeight","hasVerticalScroll","hasHorizonScroll","clientHeight","getStyle","computedStyle","styleFloat","__isMouseInBounds__","offset2Body","zIndexMask","domArray","indexMask","mask","z-index","$import","loadReady","must","$scripts","_LOADED","$links","ext","link","rel","multiply","divide","acc","fractionDigits","RangeError","MAX","MIN","EVENT_RESPONSE_TIME","zIndex_popup","zIndex_tip","emptyStr","Key","48","49","50","51","52","53","54","55","56","57","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","96","97","98","99","100","101","102","103","104","105","106","107","109","110","111","KeyCode","COMMA","DELETE","DOWN","END","ESCAPE","HOME","LEFT","NUMPAD_ADD","NUMPAD_DECIMAL","NUMPAD_DIVIDE","NUMPAD_ENTER","NUMPAD_MULTIPLY","NUMPAD_SUBTRACT","PAGE_DOWN","PAGE_UP","PERIOD","RIGHT","TAB","UP","Status","SUCCESS","WRONG","START","WAITING","READY","RUNNING","OUTOFBOUNDS","NULL","Axis","Selection","Default","None","Multi","All","Stretch","AbsoluteCenterLayout","AbsoluteHorizontalLayout","AbsoluteVerticalLayout","CenterAdaptLayout","_ref","HorizontalAdaptLayout","LeftRightVerticalAdaptLayout","llgap","lrgap","lhgap","rlgap","rrgap","rhgap","layoutArray","textAlign","LeftVerticalAdaptLayout","RightVerticalAdaptLayout","TableAdaptLayout","$table","white-space","max-width","vertical-align","margin-top","margin-left","margin-right","margin-bottom","VerticalAdaptLayout","HorizontalAutoLayout","FloatHorizontalLayout","InlineCenterAdaptLayout","InlineLayout","whiteSpace","InlineVerticalAdaptLayout","FlexCenterLayout","flex-shrink","FlexHorizontalCenter","FlexHorizontalLayout","FlexVerticalCenter","FlexVerticalLayout","FlexWrapperCenterLayout","$wrapper","FlexWrapperHorizontalCenter","FlexWrapperHorizontalLayout","FlexWrapperVerticalCenter","FlexWrapperVerticalLayout","AbsoluteLayout","AdaptiveLayout","BorderLayout","regions","CardLayout","showIndex","tItem","defaultShowName","getCardByName","_deleteCardByName","deleteCardByName","cardItem","lastShowIndex","showLastCard","setDefaultShowName","getDefaultShowName","getAllCardNames","getShowingCard","deleteAllCard","hideAllCard","isAllCardHide","removeName","DefaultLayout","DivisionLayout","opitons","firstElement","row","widths","heights","column","totalW","lastW","totalH","FloatLeftLayout","FloatRightLayout","GridLayout","HorizontalLayout","border-spacing","border-collapse","$tr","HorizontalCellLayout","*display","*zoom","LatticeLayout","TableLayout","HTapeLayout","VTapeLayout","TdLayout","VerticalLayout","WindowLayout","CenterLayout","FloatCenterLayout","HorizontalCenterLayout","VerticalCenterLayout","MODE","BufferPool","_Shared","SharingPool","shared","cat","Req","factory","require","Fix","_$1","makeHashCode","rhashcode","_toString","parsePath","bailRE","segments","$$skips","cloneShadow","__ref__","isShadowEqual","getMixins","mixinInjection","runBinaryFunction","binarys","watch","vm","expOrFn","$watch","$vm","user","exps","watchers","running","oldValue","sync","isGlobal","getter","$$skipArray","_getter","currentModels","_loop","models","initState","_stateWatchers","_loop2","_key2","userDef","Watcher","_modelHashId","listener","defaultCallback","initComputed","_computedWatchers","_computedOrder","initWatch","watchObj","_watchers","createWatcher","injectMethod","$digest","initMethods","methods","initMixins","mixins","mixinType","mixin$$1","defineContext","getSingleContext","childContext","_contextWatchers","digestState","dirty","watcher","digestComputed","dirtyQueue","cleanQueue","digestContext","contextListeners","digest","stateDirty","contextDirty","computedDirty","ttl","TTL","_ttl","_ttl2","executeWatchListeners","syncListeners","asyncListeners","listner","refreshAllDefineModel","allDefineModelInstances","insta","getAllModelInstances","allModelInstances","refreshAll","Model","getModelID","originalMethods","_len","SymbolProto","ObjProto","deepEq","_wrapped","aCtor","bCtor","falsy$1","||","&&","(",")","getInstance","nextListener","callbackMap","queueNextListener","alive","watch$$1","orgEvent","delta","absDelta","offsetX","offsetY","pageHeight","lowestDelta","shouldAdjustOldDeltas","normalizeOffset","boundingRect","deltaFactor","nullLowestDeltaTimeout","nullLowestDelta","adjustOldDeltas","toFix","toBind","documentMode","mousewheel","onmousewheel","unmousewheel","Pane","tipText","overlap","onLoaded","_assertTip","_tipText","loading","loadingAnimation","setTipVisible","Layers","_loading","loaded","EVENT_LOADED","conf","title","warningTitle","tipType","_showToolTip","getTipType","getTitle","getWarningTitle","Tooltips","_hideTooltip","enableHover","_clearTimeOut","showTimeout","hideTimeout","_hoverBinded","_e","disabledHover","setTitle","setWarningTitle","isReadOnly","Text","highLight","padding-left","padding-right","padding-top","padding-bottom","textOverflow","_getShowText","setStyle","BasicButton","forceSelected","forceNotSelected","disableSelected","shadow","isShadowShowingOnSelected","setSelected","bindEvent","_createShadow","assertMask","$mask","mouseup","_hover","isSelected","clk","isOnce","destroyWhenHide","getBubble","BubblePopupBarView","EVENT_CLICK_TOOLBAR_BUTTON","hideView","onClick","BubbleCombo","EVENT_BEFORE_POPUPVIEW","isViewVisible","showView","hand","triggerArr","mouseDown","mousedown","_trigger","dblclick","doClick","_doClick","isDisableSelected","isForceSelected","isForceNotSelected","beforeClick","dishover","NodeButton","setOpened","isOpened","triggerCollapse","triggerExpand","Tip","ButtonGroup","behaviors","chooseType","_createBtns","_btnsCreator","buttons","btn","CHOOSE_TYPE_SINGLE","CHOOSE_TYPE_NONE","_packageBtns","btns","_packageSimpleItems","_packageItems","packBtns","_packageLayout","lay","_isSimpleLayout","removeItems","setNotSelectedValue","setEnabledValue","getNotSelectedValue","getAllButtons","getAllLeaves","getSelectedButtons","getNotSelectedButtons","getIndexByValue","getNodeById","getNodeByValue","CHOOSE_TYPE_MULTI","CHOOSE_TYPE_ALL","CHOOSE_TYPE_DEFAULT","ButtonTree","leaves","vs","TreeView","selectedValues","itemsCreator","_stop","_createTree","_loadMore","setSelectedValue","tree","_selectTreeNode","treeId","treeNode","_configSetting","getCheckStatus","half","checkNode","getUrl","_getParentValues","beforeExpand","isAjaxing","Msg","toast","ajaxGetNodes","onAsyncSuccess","halfCheck","zTree","totalCount","perTime","updateNode","selectNode","onAsyncError","textStatus","errorThrown","reloadType","reAsyncChildNodes","beforeCheck","track","treeObj","getSelectedNodes","onCheck","onExpand","onCollapse","setting","autoParam","otherParam","simpleData","showIcon","expandSpeed","nameIsHTML","dblClickExpand","getParentNode","_getNodeValue","_getHalfSelectedValues","checkState","parentValues","_buildTree","storeValues","_getTree","_addTreeNode","_getSelectedValues","hashMap","rootNoots","getNodes","_dealWidthNodes","ns","isParent","setLoading","hasNext","setLoaded","setEnd","addNodes","_initTree","hasChecked","getCheckedNodes","checkAll","setNode","checkAllNodes","expandAll","updateValue","refresh","getNodesByParam","REQ_TYPE_INIT_DATA","REQ_TYPE_ADJUST_DATA","REQ_TYPE_SELECT_DATA","REQ_TYPE_GET_SELECTED_DATA","EVENT_INIT","EVENT_AFTERINIT","AsyncTree","getZTreeObj","_beforeExpandNode","tNode","pNode","_join","valueA","valueB","_getJoinValue","checkedValues","PartTree","lastSearchValue","curSelectedValue","notSelectedValue","new_values","ListTreeView","_constants","SPLIT","storeValue","_checkValue","chkboxType","_transArrayToMap","treeArrays","_transMapToArray","treeMap","ListAsyncTree","ListPartTree","Maskers","Bubbles","Popovers","Broadcasts","StyleLoaders","CollectionView","cellSizeAndPositionGetter","horizontalOverscanSize","verticalOverscanSize","renderedCells","renderedKeys","renderRange","_scrollLock","_debounceRelease","scroll","_calculateChildrenToRender","EVENT_SCROLL","_calculateSizeAndPositionData","_populate","cellMetadata","sectionManager","_sectionManager","_height","_width","_cellRenderers","_lastRenderedCellIndices","_cellGroupRenderer","rendered","_getMaxScrollLeft","_getMaxScrollTop","minY","maxY","minX","maxX","childrenToDisplay","renderedWidgets","lefts","tops","leftMap","topMap","leftBorder","rightBorder","topBorder","bottomBorder","assertMinBorder","MAX_VALUE","assertMaxBorder","_left","_top","startTopIndex","endTopIndex","startLeftIndex","endLeftIndex","existSet","addSet","deleteArray","addedItems","_reRange","setScrollLeft","setScrollTop","setOverflowX","setOverflowY","getScrollLeft","getScrollTop","getMaxScrollLeft","getMaxScrollTop","_clearChildren","restore","cell","Combo","isDefaultInit","isNeedAdjustHeight","isNeedAdjustWidth","adjustLength","hideChecker","comboClass","hoverClass","_initCombo","_initPullDownAction","_popupView","_hideView","EVENT_EXPAND","EVENT_COLLAPSE","EVENT_TRIGGER_CHANGE","_assertPopupView","_toggle","_assertPopupViewRender","popupView","enterPopup","evs","EVENT_AFTER_INIT","_rendered","_hideIf","adjustWidth","adjustHeight","isHide","EVENT_BEFORE_HIDEVIEW","EVENT_AFTER_HIDEVIEW","EVENT_AFTER_POPUPVIEW","resetListWidth","maxW","resetListHeight","resetWidth","getPopupPosition","Expander","expanderClass","_expanded","_initExpander","expander","isExpanded","ComboGroup","son","VirtualGroup","buttonMap","Loader","hasPrev","_prevLoad","_nextLoad","button_group","Navigation","single","tab","cardMap","setSelect","_deleteOtherCards","currCardName","_assertCard","getSelect","getSelectedCard","Searcher","isAutoSearch","isAutoSync","onSearch","adapter","masker","editor","_search","_startSearch","_stopSearch","_pauseSearch","_isSearching","EVENT_START","startSearch","pauseSearch","EVENT_PAUSE","stopSearch","EVENT_STOP","_getLastSearchKeyword","getItems","finding","EVENT_SEARCHING","searchResult","matchResult","setAdapter","doSearch","isSearching","hasMatched","adjustView","getKeyword","getKeywords","Switcher","switcherClass","_initSwitcher","switcher","_created","Tab","curr","removeTab","cardname","getSelectedTab","getTab","EL","ele","messageShow","$pop","toastStack","alert","_show","confirm","prompt","min_width","autoClose","Toast","EVENT_DESTORY","hasCancel","controlItems","north","center","east","south","GridView","overscanColumnCount","overscanRowCount","rowHeightGetter","columnWidthGetter","_getOverscanIndices","overscanCellsCount","startIndex","stopIndex","overscanStartIndex","overscanStopIndex","visibleColumnIndices","_columnSizeAndPositionManager","visibleRowIndices","_rowSizeAndPositionManager","horizontalOffsetAdjustment","verticalOffsetAdjustment","_renderedColumnStartIndex","_renderedColumnStopIndex","_renderedRowStartIndex","_renderedRowStopIndex","overscanColumnIndices","overscanRowIndices","rowCount","columnStartIndex","columnStopIndex","rowStartIndex","rowStopIndex","minRowDatum","minColumnDatum","maxRowDatum","maxColumnDatum","rowIndex","rowDatum","columnIndex","columnDatum","_rowIndex","_columnIndex","_getRealMaxScrollLeft","totalWidth","estimatedColumnSize","estimatedRowSize","setColumnCount","setRowCount","setEstimatedColumnSize","setEstimatedRowSize","_constant","SIZE","SMALL","NORMAL","BIG","HEADER_HEIGHT","footer","closable","startX","startY","tracker","_calculateSize","dragger","compareHeight","EVENT_OPEN","BarPopover","EVENT_CANCEL","EVENT_CONFIRM","PopupView","minHeight","innerVGap","tool","tabs","min-width","mouseover","_createTool","_createTab","_createView","toolbar","_createToolBar","min-height","tbHeight","tabHeight","toolHeight","max-height","SearcherView","redmark","searcher","spliter","ListView","overscanHeight","renderedIndex","_calculateBlocksToRender","lastWidth","lastHeight","_renderMoreIf","minContentHeight","cnt","getElementHeight","addedHeight","VirtualList","topBlank","bottomBlank","minContentHeightFrom","minContentHeightTo","needDestroyed","firstFragment","lastFragment","currentFragment","lastCache","Pager","dynamicShow","dynamicShowFirstLast","dynamicShowPrevNext","pages","jump","firstPage","lastPage","currPage","dict","poor","flow","EVENT_AFTER_POPULATE","getCurrentPage","setAllPages","LoadingBar","_reset","IconButton","iconWidth","iconHeight","icon","ImageButton","setImageWidth","setImageHeight","getImageWidth","getImageHeight","setSrc","getSrc","Button","iconCls","ghost","textWidth","textHeight","TextButton","BlankIconIconTextItem","iconCls1","iconCls2","blankWidth","textHgap","textVgap","textLgap","textRgap","blank","icon1","icon2","BlankIconTextIconItem","BlankIconTextItem","IconTextIconItem","leftIconWrapperWidth","rightIconWrapperWidth","IconTextItem","iconWrapperWidth","TextIconItem","TextItem","IconTextIconNode","IconTextNode","TextIconNode","TextNode","Editor","inputType","validationChecker","quitChecker","allowBlank","watermark","errorText","outline","_assertWaterMark","contentWrapper","Input","EVENT_FOCUS","_checkError","EVENT_BLUR","_setErrorVisible","EVENT_CLICK","EVENT_KEY_DOWN","EVENT_QUICK_DOWN","EVENT_VALID","_checkWaterMark","EVENT_ERROR","isEditing","EVENT_RESTRICT","EVENT_EMPTY","EVENT_ENTER","EVENT_SPACE","EVENT_BACKSPACE","EVENT_REMOVE","EVENT_CHANGE_CONFIRM","_checkToolTip","disabledWaterMark","setErrorText","getErrorText","setWaterMark","disabledError","disableError","enableError","disableWaterMark","enableWaterMark","selectAll","onKeyDown","getLastValidValue","getLastChangedValue","MultifileEditor","multiple","maxSize","accept","File","EVENT_UPLOADSTART","EVENT_PROGRESS","EVENT_UPLOADED","upload","TextAreaEditor","_focus","_blur","Html","Icon","Iframe","setName","Img","ImageCheckbox","Checkbox","files","sendFile","multipart","boundary","CRLF","fileName","getAsBinary","sendAsBinary","fileSize","rpe","attachO","attach_type","filename","attach_array","onloadstart","total","simulation","onprogress","onabort","FormData","onloadprogress","interactive","sendFiles","sent","_wrap","self_","clean","attach","errorCode","errorMsg","fileType","attach_names","attachNum","_events","tempFile","errorType","replaceChild","totalProp","currentProp","ctrlKey","inputEventValid","_keydown","_keydown_","_clk","_click","_focusDebounce","_blurDebounce","keydown","keyup","focusout","_checkValidationOnValueChange","_isEditing","_lastValidValue","_defaultState","_start","lastValidValue","_lastChangedValue","_lastValue","_pause","lastValue","_valueChange","_lastSubmitValue","textValue","ImageRadio","Radio","AbstractLabel","_createJson","_createCenterEl","_createNotCenterEl","line-height","adaptLayout","HtmlLabel","IconLabel","Label","Link","Bubble","mousemove","_createBubbleText","_bottom","_right","Tooltip","texts","setLevel","Trigger","setKey","getKey","CustomTree","_formatItems","roots","_consts","BUTTON","LEVEL","ICO_LOADING","SWITCH","NODECREATED","ASYNC_SUCCESS","ASYNC_ERROR","REMOVE","SELECTED","UNSELECTED","ICON","SPAN","UL","line","ROOT","ROOTS","CENTER","BOTTOM","NOLINE","LINE","folder","OPEN","CLOSE","DOCU","CURSELECTED","_setting","addDiyDom","autoCancelSelected","fontCss","selectedMulti","showLine","showTitle","txtSelectedEnable","idKey","pIdKey","rootPId","leaf","beforeAsync","beforeDblClick","beforeRightClick","beforeMouseDown","beforeMouseUp","beforeCollapse","beforeRemove","onNodeCreated","onDblClick","onRightClick","onMouseDown","onMouseUp","onRemove","setRoot","expandTriggerFlag","curSelectedList","noSelection","createdNodes","zId","_ver","_initCache","getCache","setCache","_bindEvent","consts","tools","srcEvent","clickFlag","onSelected","onUnSelected","_unbindEvent","_eventProxy","getSetting","tId","nodeEventType","treeEventType","nodeEventCallback","treeEventCallback","eqs","getNodeMainDom","getMDom","attrName","getNodeCache","onSwitchNode","onClickNode","onZTreeMousedown","onZTreeMouseup","onZTreeDblclick","onZTreeContextmenu","proxyResult","_initNode","isFirstNode","isLastNode","openFlag","childKey","parentTId","zAsync","getPreNode","getNextNode","fixPIdKeyValue","proxys","beforeA","afterA","innerBeforeA","innerAfterA","zTreeTools","addNodeCache","getNodeCacheId","addAfterA","addBeforeA","addInnerAfterA","addInnerBeforeA","addInitBind","addInitUnBind","unbindEvent","addInitCache","initCache","addInitNode","initNode","addInitProxy","initProxy","isFirst","addInitRoot","initRoot","addNodesData","setNodeLineIcos","addSelectedNode","isSelectedNode","addCreatedNode","addZTreeTools","exSetting","getAfterA","getBeforeA","getInnerAfterA","getInnerBeforeA","getNodeByParam","getNodeName","nameKey","getNodeTitle","getNodesByParamFuzzy","getNodesByFilter","isSingle","invokeParam","tmpResult","getRoots","getSettings","getZTreeTools","treeTools","nextNode","removeNodeCache","removeSelectedNode","setZTreeTools","transformTozTreeFormat","parentKey","bindTree","eventParam","-moz-user-select","unbindTree","doProxy","uCanDo","switchNode","cancelPreSelectedNode","fun","zt","canAsync","str1","str2","curDom","targetExpr","isChildOrSelf","parentId","isSilent","target_switchObj","$$","target_icoObj","target_ulObj","replaceSwitchClass","replaceIcoClass","createNodes","expandCollapseParentNode","appendNodes","initFlag","tmpPNode","tmpPChild","childHtml","makeDOMNodeMainBefore","makeDOMNodeLine","makeDOMNodeNameBefore","makeDOMNodeIcon","makeDOMNodeNameAfter","makeUlHtml","makeDOMNodeMainAfter","appendParentULDom","nObj","ulObj","asyncNode","icoObj","tmpParam","pKey","spKey","_tmpV","excludeNode","createNodeCallback","zTreeHtml","expandCollapseNode","expandFlag","animateFlag","_callback","switchObj","iconOpen","iconClose","makeNodeIcoStyle","expandCollapseSonNode","treeNodes","selfAnimateSign","nameStr","makeNodeIcoClass","makeNodeLineClass","makeNodeUrl","fontcss","makeNodeFontCss","fontStyle","makeNodeTarget","icoCss","iconSkin","icoStyle","lineClass","makeNodeLineClassEx","urlKey","makeUlLineClass","removeChildNodes","tmp_switchObj","tmp_icoObj","setFirstNode","childLength","setLastNode","removeNode","tmp_ulObj","newLast","tmp_first_switchObj","newName","tmpName","tmpList","addFlag","setNodeFontCss","aObj","ulLine","setNodeName","setNodeTarget","setNodeUrl","_z","zSetting","zNodes","addCallback","xNewNodes","cancelSelectedNode","expandNode","sonSign","callbackFlag","getNodeByTId","getNodeIndex","transformTozTreeNodes","simpleNodes","transformToArray","checkTypeFlag","CHECK","STYLE","DEFAULT","DISABLED","FALSE","TRUE","FULL","PART","FOCUS","TYPE_ALL","TYPE_LEVEL","autoCheckTrigger","chkStyle","nocheckInherit","chkDisabledInherit","radioType","radioCheckedList","_handler","onCheckNode","onMouseoverCheck","onMouseoutCheck","checkedKey","checkedOld","nocheck","chkDisabled","check_Child_State","check_Focus","_beforeA","makeChkFlag","makeChkClass","_zTreeTools","checkObj","checkNodeRelation","setChkClass","repairParentChkClassWithSelf","repairAllChk","getTreeCheckedNodes","getChangeCheckedNodes","getTreeChangeCheckedNodes","setChkDisabled","inheritParent","inheritChildren","repairSonChkDisabled","repairParentChkDisabled","_updateNode","getRadioCheckedList","checkedList","onlyOne","chkFlag","cNode","_event","_tools","_view","setSonNodeCheckBox","setParentNodeCheckBox","checkboxType","notEffectByOtherNode","fullStyle","chkName","repairChkClass","repairParentChkClass","sNode","srcNode","pSign","pNodes","hasDisable","_createNodes","_removeNode","_appendNodes","IconChangeButton","setIcon","TriggerIconButton","HalfIconButton","HalfButton","MultiSelectItem","SingleSelectIconTextItem","SingleSelectItem","SingleSelectRadioItem","ArrowNode","FirstPlusGroupNode","IconArrowNode","LastPlusGroupNode","MidPlusGroupNode","MultiLayerIconArrowNode","PlusGroupNode","Switch","FirstTreeLeafItem","getId","getPId","IconTreeLeafItem","LastTreeLeafItem","MidTreeLeafItem","MultiLayerIconTreeLeafItem","isFront","TreeTextLeafItem","CalendarDateItem","Calendar","_dateCreator","De","mins","maxs","setFullYear","ymd","FDay","offSetFDay","PDay","NDay","lastMonth","currentDay","nextMonth","_getWeekLabel","days","_getItems","isFrontDate","newDate","isFinalDate","setMinDate","setMaxDate","getPageByDateJSON","page","getDateJSONByPage","months","YearCalendar","_yearCreator","getStartYear","startDate","endDate","INTERVAL","currentYear","years","isFrontYear","isFinalYear","getEndYear","tyears","getPageByYear","ArrowTreeGroupNodeCheckbox","CheckingMarkNode","FirstTreeNodeCheckbox","LastTreeNodeCheckbox","MidTreeNodeCheckbox","TreeNodeCheckbox","CustomColorChooser","ColorPickerEditor","farbtastic","Farbtastic","ColorChooser","colorPicker","ColorChooserPopup","EVENT_VALUE_CHANGE","_isRGBColor","colorEditor","_dealStoreColors","storeColors","_digestStoreColors","_getStoreColors","ColorPicker","customColorChooser","panel","more","PopupPanel","colors","que","setStoreColors","colorsArray","SimpleColorChooserPopup","SimpleColorChooser","ColorChooserTrigger","colorContainer","down","background-color","LongColorChooserTrigger","changeIcon","label","ColorPickerButton","_createMask","constants","REB_WIDTH","colorShow","RGB","checker","Ws","TextEditor","_checkEditors","none","lastColor","_isEmptyRGB","transparent","_showPreColor","SimpleColorPickerEditor","RADIUS","SQUARE","WIDTH","colorWrapper","wheel","overlay","hMarker","slMarker","_unpack","_pack","_setColor","unpack","hsl","_RGBToHSL","_updateDisplay","_setHSL","_HSLToRGB","m1","m2","_hueToRGB","angle","_absolutePosition","offsetLeft","_widgetCoords","mouseX","mouseY","_doMouseMove","circleDrag","hue","atan2","sat","lum","TRIANGLE_LENGTH","_getAdjustLength","_showTriangle","_hideTriangle","_createTriangle","triangle","_createLeftTriangle","_createRightTriangle","_createTopTriangle","_createBottomTriangle","BubblePopupView","buttonOpt","TextBubblePopupBarView","EditorIconCheckCombo","baseClass","EditorTrigger","TextValueCheckComboPopup","editorIconCheckCombo","IconCombo","IconComboPopup","iconCombo","IconComboTrigger","isShowDown","_digest","IconTextValueCombo","IconTextValueComboPopup","textIconCombo","SearchTextValueCombo","SearchTextValueTrigger","getSearcher","TextValueComboPopup","stopEditing","triggerBtn","SearchTextValueComboPopup","defaultText","_setState","setState","vals","formatItems","TextValueCheckCombo","textIconCheckCombo","TextValueCombo","setTipType","SmallTextValueCombo","ClearEditor","EVENT_CLEAR","_checkClear","ShelterEditor","EVENT_CLICK_LABEL","_showHint","_checkText","_showInput","setTextStyle","getState","SignEditor","StateEditor","stateValue","SimpleStateEditor","mouseOut","MultiPopupView","buttongroup","ListPane","calback","Panel","titleButtons","_createTitle","LinearSegmentButton","LinearSegment","buttonGroup","SelectList","allSelected","setAllSelected","_checkAllSelected","selectLength","notSelectLength","isAlreadyAllSelected","isHalf","setHalfSelected","setToolBarVisible","isAllSelected","assist","LazyLoader","PAGE","loader","_getNextItems","lastNum","lastItems","nextItems","ListLoader","SortList","sortable","containment","connectWith","cursor","tolerance","$currentItem","holder","ui","over","sorted","getSortedValues","attribute","LoadingPane","__loaded","AllCountPager","pagerDirection","pagerIconCls","_getPagerIconCls","pager","preCls","nextCls","allPages","alwaysShowPager","setPagerVisible","setVPage","setCount","DirectionPager","horizontal","vertical","_createVPager","_createHPager","vpager","vlabel","hpager","hlabel","getVPage","getHPage","setHPage","hasVNext","hasHNext","hasVPrev","hasHPrev","setHPagerVisible","setVPagerVisible","vShow","hShow","DetailPager","_lock","_debouce","SegmentButton","Segment","MultiSelectBar","isAllCheckedBySelectedValue","isHalfCheckedBySelectedValue","halfSelected","isSelect","isHalfSelect","_setSelected","isHalfSelected","isAllChecked","LevelTree","_assertId","DisplayTree","ListDisplayTree","getFont","SimpleTreeView","_getValue","triggerWidth","IconTrigger","iconButton","IconTextTrigger","textCls","trigerButton","iconItem","textItem","setTextCls","oldCls","SelectIconTextTrigger","_digist","TextTrigger","SelectTextTrigger","formatValue","SmallSelectTextTrigger","SmallTextTrigger","MonthDateCombo","YearPopup","YearDateCombo","DatePicker","_year","_month","_checkLeftValid","_checkRightValid","YearPicker","DateCalendarPopup","selectedTime","_createNav","calendar","_day","datePicker","_checkMin","_checkMax","timeOb","MonthPopup","_createYearCalendar","selectedYear","backBtn","preBtn","navigation","DateTriangleTrigger","StaticDatePaneCard","_getNewCurrentDate","_setCalenderValue","_setDatePicker","_setCalendar","DynamicDatePane","Static","Dynamic","dateTab","DynamicDateHelper","getCalculation","dynamicPane","_checkValueValid","DynamicDateCombo","DateTimeCombo","popupHeight","popupWidth","comboAdjustHeight","minute","DateTimePopup","BUTTON_CANCEL_EVENT_CHANGE","hidePopupView","BUTTON_OK_EVENT_CHANGE","cancelButton","okButton","dateCombo","CALENDAR_EVENT_CHANGE","dateButton","timeSelect","DateTimeTrigger","_printTime","dateStr","StaticDateTimePaneCard","DynamicDateTimeSelect","DynamicDateTimePane","DownListCombo","popupview","DownListPopup","downlistcombo","EVENT_SON_VALUE_CHANGE","fatherValue","DownListGroup","downlistgroup","DownListItem","DownListGroupItem","childValues","nextIcon","singleValues","childValueMap","fatherValueMap","_createChildren","changedValue","valueObject","item_done","childValue","father","_createChildValue","el_done","_isGroup","_needSpliter","spliter_container","itemLength","valueItem","valueArray","_checkValues","joinValue","itemGroup","popupItem","fartherValue","getCalculationByDate","quarter","workDay","holidays","DynamicDateCard","OFFSET","CURRENT","getBeginDate","BEGIN","checkgroup","TYPE","YEAR","QUARTER","MONTH","workDayBox","plainValue","resultPane","dateType","_getParamJson","WORK_DAY","positionValue","comboItems","_getText","_createValue","valuesItems","valueMap","selectValues","allowEdit","storeTriggerValue","DynamicDateTrigger","dateStore","dateObj","_checkDynamicValue","DynamicDatePopup","BUTTON_CLEAR_EVENT_CHANGE","BUTTON_lABEL_EVENT_CHANGE","comboWrapper","DynamicDateParamItem","offsetCombo","buttonHeight","_getTabJson","textButton","_setInnerValue","yearLength","yearMonthLength","yearFullMonthLength","compareFormat","formatStr","_getStandardDateStr","_autoAppend","_dateCheck","_checkVoid","_getTitle","_getFormatString","formatArray","dateArray","newArray","_yearCheck","splitMonth","_monthCheck","getPositionText","baseText","endText","EVENT_TRIGGER_CLICK","DynamicDateTimeCombo","DynamicDateTimeTrigger","DynamicDateTimePopup","_checkHour","_formatValueToDoubleDigit","_autoSwitch","_checkMinute","_checkSecond","_checkBorder","setDownEnable","setUpEnable","_assertValue","hasSecond","suffixArray","suffixString","dateString","SearchEditor","keywords","SmallSearchEditor","SmallTextEditor","IntervalSlider","EDITOR_WIDTH","EDITOR_R_GAP","EDITOR_HEIGHT","SLIDER_WIDTH_HALF","SLIDER_WIDTH","SLIDER_HEIGHT","TRACK_HEIGHT","digit","valueOne","valueTwo","calculation","AccurateCalculationModel","grayTrack","blueTrack","_createTrackWrapper","labelOne","_checkValidation","oldValueOne","_getPercentByValue","significantPercent","_setSliderOnePosition","_setBlueTrack","_checkLabelPosition","labelTwo","oldValueTwo","_setSliderTwoPosition","sliderOne","sliderTwo","_draggable","_createLabelWrapper","_createSliderWrapper","_rePosBySizeAfterMove","isLeft","_getGrayTrackLength","_getValueByPercent","_rePosBySizeAfterStop","optimizeSize","startDrag","defaultSize","mouseMoveTracker","dotText","_checkOverlap","labelOneLeft","labelTwoLeft","isSliderOneLeft","_resetLabelPosition","needReverse","_setBlueTrackLeft","_setBlueTrackWidth","percentOne","percentTwo","_setAllPosition","two","_setErrorText","accurateSubtraction","accurateMultiplication","accurateDivisionTenExponent","accurateAddition","reduceValue","_setDraggableEnable","_getPrecision","pre","toPrecision","eIndex","decimalPartLength","sciencePartLength","setMinAndMax","minNumber","maxNumber","NaN","_getMagnitude","_formatDecimal","stringNumber1","stringNumber2","numDecimalLength","magnitudeDiff","needAddZero","numDecimal","_stringNumberFactory","numStrArray","numInteger","_accurateSubtraction","getDecimalMaxLength","addZero","resultTemp","integerResult","decimalMaxLength","decimalResultTemp","decimalResult","borrow","_accurateAddition","_accurateMultiplication","dec1Int2","_accurateDivisionTenExponent","int1dec2","dec1dec2","stringNumber","partDecimalResult","MultiLayerDownListPopup","_createPopupItems","fatherArrayValue","fValue","getChildrenValue","MultiLayerSelectTreeCombo","allowSearchValue","allowInsertValue","_getSyncConfig","_getAsyncConfig","_getBaseConfig","MultiLayerSelectTreePopup","_getSearchConfig","valueFormatter","MultiLayerSelectTreeTrigger","EVENT_ADD_ITEM","baseConfig","MultiLayerSelectTreeInsertSearchPane","setKeyword","keywordGetter","MultiLayerSelectLevelTree","addNotMatchTip","showTip","_initData","_getSearchItems","_fillTreeStructure4Search","_getChildren","MultiLayerSelectTreeFirstPlusGroupNode","needBlankLayers","MultiLayerSelectTreeLastPlusGroupNode","MultiLayerSelectTreeMidPlusGroupNode","MultiLayerSelectTreePlusGroupNode","MultiLayerSingleTreeCombo","MultiLayerSingleTreePopup","MultiLayerSingleTreeTrigger","MultiLayerSingleTreeInsertSearchPane","MultiLayerSingleLevelTree","MultiLayerSingleTreeFirstPlusGroupNode","_createNode","MultiLayerSingleTreeLastPlusGroupNode","MultiLayerSingleTreeMidPlusGroupNode","MultiLayerSingleTreePlusGroupNode","MultiLayerSingleTreeFirstTreeLeafItem","MultiLayerSingleTreeLastTreeLeafItem","MultiLayerSingleTreeMidTreeLeafItem","MultiSelectCheckPane","onClickContinueSelect","txt","continueSelect","DisplaySelectedList","_createItems","MultiSelectCombo","assertShowValue","_startValue","numberCounter","setButtonChecked","requesting","_itemsCreator4Trigger","MultiSelectTrigger","_setStartValue","_joinKeywords","_joinAll","EVENT_CLICK_ITEM","EVENT_BEFORE_COUNTER_POPUPVIEW","updateSelectedValue","EVENT_COUNTER_CLICK","MultiSelectPopupView","_adjust","EVENT_CLICK_CONFIRM","EVENT_CLICK_CLEAR","wants2Quit","_stopEditing","MultiSelectCheckSelectedSwitcher","refreshPlaceHolderWidth","_makeMap","selectedMap","REQ_GET_ALL_DATA","notSelectedMap","adjust","setStartValue","REQ_GET_DATA_LENGTH","MultiSelectNoBarCombo","MultiSelectInsertCombo","MultiSelectInsertTrigger","_addItem","MultiSelectInsertNoBarCombo","MultiSelectInsertSearcher","wrapNumberCounter","MultiSelectLoader","startValue","firstItems","_scrollToTop","MultiSelectNoBarLoader","MultiSelectNoBarPopupView","MultiSelectSearcher","MultiSelectSearchInsertPane","tooltipClick","isMatchTipVisible","MultiSelectSearchLoader","_filterValues","newValues","MultiSelectSearchPane","MultiSelectCheckSelectedButton","MultiSelectEditor","checkPane","me","MultiSelectInsertList","searcherPane","_showAdapter","_showSearcherPane","MultiSelectInsertNoBarList","MultiSelectList","_count","MultiSelectTree","MultiSelectTreePopup","MultiTreeCheckPane","backToPopup","configs","EVENT_CONTINUE_CLICK","MultiTreeCombo","showCounter","isPopupView","isInit","want2showCounter","MultiTreePopup","MultiTreeInsertCombo","MultiTreeSearchInsertPane","_assertShowValue","MultiTreeListCombo","MultiTreeCheckSelectedButton","indicator","checkSelected","addTip","partTree","isAddTipVisible","MultiTreeSearchPane","MultiListTreeSearcher","MultiTreeSearcher","getChildrenNode","NumberEditor","topBtn","_finetuning","bottomBtn","NumberInterval","typeError","numberError","signalError","editorWidth","numberErrorCls","less","less_equal","numTip","validation","closeMin","smallEditor","smallEditorBubbleType","smallTip","bigEditor","bigEditorBubbleType","bigTip","smallCombo","bigCombo","closeMax","_setValidEvent","_setErrorEvent","_setBlurEvent","_setFocusEvent","_setComboValueChangedEvent","_setEditorValueChangedEvent","_setTitle","smallValue","bigValue","bigComboValue","smallComboValue","NumberIntervalSingleEidtor","isStateValid","setMinEnable","setCloseMinEnable","setMaxEnable","setCloseMaxEnable","showNumTip","hideNumTip","setNumTip","getNumTip","combo_value","minComboValue","maxComboValue","SearchMultiTextValueCombo","_updateAllValue","getCounter","allValueGetter","allValue","_itemsCreator","_getItemsByTimes","_hasNextByTimes","kw","SearchMultiSelectTrigger","SearchMultiSelectLoader","SearchMultiSelectPopupView","SearchMultiSelectSearcher","SelectTreeFirstPlusGroupNode","SelectTreeLastPlusGroupNode","SelectTreeMidPlusGroupNode","SelectTreePlusGroupNode","SelectTreeCombo","SingleTreePopup","SelectTreeExpander","SelectTreePopup","SingleSelectSearchLoader","allowNoSelect","SingleSelectList","SingleSelectSearchInsertPane","SingleSelectSearchPane","SingleSelectCombo","SingleSelectTrigger","SingleSelectPopupView","SingleSelectInsertCombo","SingleSelectComboItem","SingleSelectLoader","SingleSelectSearcher","SingleSelectInsertList","_allData","SingleSelectEditor","SignTextEditor","SliderIconButton","LARGE_SIZE","NORMAL_SIZE","LARGE_OFFSET","NORMAL_OFFSET","slider","SingleSlider","TRACK_GAP_HALF","TRACK_GAP","sliderVertical","trackLength","_setLabelPosition","_setSliderPosition","thousandth","SingleSliderLabel","HEIGHT","SingleSliderNormal","minMax","_createTrack","EVENT_DRAG","SingleTreeCombo","SingleTreeTrigger","_checkTitle","TextValueDownListCombo","_createValueMap","currentVal","DownListSelectTextTrigger","_formatItemArray","sourceArray","targetArray","TimePopup","BUTTON_NOW_EVENT_CHANGE","TimeCombo","_setNowTime","nowTome","TimeTrigger","COMPARE_FORMAT","COMPLETE_COMPARE_FORMAT","FORMAT_ARRAY","DEFAULT_DATE_STRING","_formatValue","DateInterval","timeErrorCls","_createCombo","_clearTitle","smallDate","bigDate","smallObj","bigObj","TimeInterval","TimePeriods","DynamicYearCard","StaticYearCard","DynamicYearCombo","DynamicYearTrigger","DynamicYearPopup","_titleCreator","DynamicYearMonthCard","StaticYearMonthCard","_createMonths","monthMap","yearPicker","_checkMonthStatus","selectedMonth","minYear","maxYear","minMonth","maxMonth","yearInvalid","monthInvalid","newObj","DynamicYearMonthCombo","DynamicYearMonthTrigger","DynamicYearMonthPopup","yearEditor","_createEditor","monthEditor","isYear","_doEditorConfirm","_getStaticTitle","monthValue","hasYear","hasMonth","YearMonthInterval","_checkValid","smallDate4Check","bigDate4Check","DynamicYearQuarterCard","StaticYearQuarterCard","_createQuarter","selectedQuarter","DynamicYearQuarterCombo","DynamicYearQuarterTrigger","DynamicYearQuarterPopup","quarterEditor","quarterValue","AbstractAllValueChooser","perPage","_valueFormatter","resultItems","AllValueChooserCombo","AllValueChooserPane","AllValueMultiTextValueCombo","_digestValue","numOfPage","AbstractTreeValueChooser","_reqInitTreeNode","_reqAdjustTreeNode","_reqSelectedTreeNode","_reqDisplayTreeNode","_reqTreeNode","doCheck","newParents","llen","_getChildCount","createOneJson","_getTreeNode","getCount","dealWithSelectedValues","canFindKey","isSearchValueInParent","_deleteNode","searched","_getNode","expandSelectedValue","isChild","strs","childrenCount","_isMatch","notSearch","can","nk","nv","nodeSearch","_getAddedValueNode","isAllSelect","isCurAllSelected","isOpen","findSelectedObj","judgeState","selected_value","dealWithSelectedValue","nextNames","getCheckState","tempCheck","childCount","allNodes","_getAllChildren","parentCheckState","valueFind","findParentNode","pValues","AbstractListTreeValueChooser","ListTreeValueChooserInsertCombo","TreeValueChooserInsertCombo","TreeValueChooserCombo","TreeValueChooserPane","pane","AbstractValueChooser","ValueChooserInsertCombo","ValueChooserCombo","ValueChooserPane","eventsApi","allEvents","triggerEvents","listenTo","listeningTo","_listeningTo","_listenId","listenToOnce","eventSplitter","stopListening","a1","a2","a3","Router","routes","_bindRoutes","optionalParam","namedParam","splatParam","escapeRegExp","_routeToRegExp","router","history","_extractParameters","navigate","optional","History","checkUrl","routeStripper","rootStripper","pathStripper","started","atRoot","pathname","getSearch","getHash","getPath","decodeURI","getFragment","_hasPushState","_wantsHashChange","hashChange","_hasHashChange","_wantsPushState","pushState","_checkUrlInterval","silent","loadUrl","_updateHash","keyOrFn","pushTarget","_target","targetStack","popTarget","pushContext","_context","contextStack","popContext","findStore","__cacheStore","createStore","needPop","_store","_widget","oldWatch","_create","pushed","unMount","unwatches","unwatch","additionFunc","ajaxComplete","nKeys","installedModules","__webpack_require__","moduleId","modules","fineui","Decorators","Target"],"mappings":";;AA21oCA,QAASA,iBAAgBC,SAAUC,aAAe,KAAMD,mBAAoBC,cAAgB,KAAM,IAAIC,WAAU,sCA31oC/G,SAASC,GAAY,QAASC,GAAEC,GAAG,GAAGC,EAAED,GAAG,MAAOC,GAAED,GAAGE,OAAQ,IAAIC,GAAEF,EAAED,IAAII,EAAEJ,EAAEK,GAAE,EAAGH,WAAY,OAAOJ,GAAEE,GAAGM,KAAKH,EAAED,QAAQC,EAAEA,EAAED,QAAQH,GAAGI,EAAEE,GAAE,EAAGF,EAAED,QAAvI,GAAID,KAA2IF,GAAEQ,EAAET,EAAEC,EAAES,EAAEP,EAAEF,EAAEU,EAAE,SAAST,EAAEG,EAAEL,GAAGC,EAAEA,EAAEC,EAAEG,IAAIO,OAAOC,eAAeX,EAAEG,GAAGS,YAAW,EAAGC,IAAIf,KAAKC,EAAEE,EAAE,SAASD,GAAG,mBAA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ACPC,MAAO,IACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,IACPC,MAAO,IACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,MAAO,KACPC,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AA2G,IAAlE5hC,EAAkE,0DAAJ,GAC5H,OAAO,SAA2DnrG,GAC9D,+FACIk0M,OAAA,WACI,IAAMz9L,EAAQ00F,EAAK10F,MAAQ00F,EAAK10F,MAAM3S,MAAMxD,MAAQa,UAEpD,OAAOgQ,GAAGu/E,OAAOC,SAASo8C,EAAMr0F,MAAOjiC,IAJ/C,GAAqBzW,K,mBAahB+sI,E,2VAMTh+H,MAAA,WACI,MAAO,I,GAPqGw4H,IAAIwF,O","file":"fineui.ie.min.js","sourcesContent":["!function(e){var r={};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&\"object\"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,\"default\",{enumerable:!0,value:n}),2&t&&\"string\"!=typeof n)for(var r in n)o.d(e,r,function(t){return n[t]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t[\"default\"]}:function(){return t};return o.d(n,\"a\",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p=\"\",o(o.s=70)}([function(r,t,n){\"use strict\";(function(t){function n(t){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var e=function e(t){return t&&t.Math==Math&&t};r.exports=e(\"object\"==(\"undefined\"==typeof globalThis?\"undefined\":n(globalThis))&&globalThis)||e(\"object\"==(\"undefined\"==typeof window?\"undefined\":n(window))&&window)||e(\"object\"==(\"undefined\"==typeof self?\"undefined\":n(self))&&self)||e(\"object\"==(void 0===t?\"undefined\":n(t))&&t)||Function(\"return this\")()}).call(this,n(74))},function(t,n,e){\"use strict\";var r=e(0),o=e(20),i=e(41),u=e(53),c=r.Symbol,s=o(\"wks\");t.exports=function(t){return s[t]||(s[t]=u&&c[t]||(u?c:i)(\"Symbol.\"+t))}},function(t,n,e){\"use strict\";function a(t){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var l=e(0),p=e(24).f,y=e(6),d=e(11),v=e(40),h=e(77),g=e(51);t.exports=function(t,n){var e,r,o,i,u,c=t.target,s=t.global,f=t.stat;if(e=s?l:f?l[c]||v(c,{}):(l[c]||{}).prototype)for(r in n){if(i=n[r],o=t.noTargetGet?(u=p(e,r))&&u.value:e[r],!g(s?r:c+(f?\".\":\"#\")+r,t.forced)&&o!==undefined){if(a(i)===a(o))continue;h(i,o)}(t.sham||o&&o.sham)&&y(i,\"sham\",!0),d(e,r,i,t)}}},function(t,n,e){\"use strict\";var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(String(t)+\" is not an object\");return t}},function(t,n,e){\"use strict\";t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){\"use strict\";var r=e(4);t.exports=!r(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(t,n,e){\"use strict\";var r=e(5),o=e(9),i=e(19);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){\"use strict\";function r(t){return(r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}t.exports=function(t){return\"object\"===r(t)?null!==t:\"function\"==typeof t}},function(t,n,e){\"use strict\";var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,e){\"use strict\";var r=e(5),o=e(47),i=e(3),u=e(38),c=Object.defineProperty;n.f=r?c:function(t,n,e){if(i(t),n=u(n,!0),i(e),o)try{return c(t,n,e)}catch(r){}if(\"get\"in e||\"set\"in e)throw TypeError(\"Accessors not supported\");return\"value\"in e&&(t[n]=e.value),t}},function(t,n,e){\"use strict\";t.exports=e(0)},function(t,n,e){\"use strict\";var c=e(0),r=e(20),s=e(6),f=e(8),a=e(40),o=e(48),i=e(16),u=i.get,l=i.enforce,p=String(o).split(\"toString\");r(\"inspectSource\",function(t){return o.call(t)}),(t.exports=function(t,n,e,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet;\"function\"==typeof e&&(\"string\"!=typeof n||f(e,\"name\")||s(e,\"name\",n),l(e).source=p.join(\"string\"==typeof n?n:\"\")),t!==c?(o?!u&&t[n]&&(i=!0):delete t[n],i?t[n]=e:s(t,n,e)):i?t[n]=e:a(n,e)})(Function.prototype,\"toString\",function(){return\"function\"==typeof this&&u(this).source||o.call(this)})},function(t,n,e){\"use strict\";var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,e){\"use strict\";t.exports=function(t){if(\"function\"!=typeof t)throw TypeError(String(t)+\" is not a function\");return t}},function(t,n,e){\"use strict\";var r=e(37),o=e(25);t.exports=function(t){return r(o(t))}},function(t,n,e){\"use strict\";t.exports=!1},function(t,n,e){\"use strict\";var r,o,i,u=e(76),c=e(0),s=e(7),f=e(6),a=e(8),l=e(26),p=e(27),y=c.WeakMap,d=function d(t){return i(t)?o(t):r(t,{})},v=function v(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError(\"Incompatible receiver, \"+e+\" required\");return n}};if(u){var h=new y,g=h.get,b=h.has,m=h.set;r=function r(t,n){return m.call(h,t,n),n},o=function o(t){return g.call(h,t)||{}},i=function i(t){return b.call(h,t)}}else{var x=l(\"state\");p[x]=!0,r=function r(t,n){return f(t,x,n),n},o=function o(t){return a(t,x)?t[x]:{}},i=function i(t){return a(t,x)}}t.exports={set:r,get:o,has:i,enforce:d,getterFor:v}},function(t,n,e){\"use strict\";var r=e(10),o=e(0),i=function i(t){return\"function\"==typeof t?t:undefined};t.exports=function(t,n){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][n]||o[t]&&o[t][n]}},function(t,n,e){\"use strict\";var r=e(25);t.exports=function(t){return Object(r(t))}},function(t,n,e){\"use strict\";t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){\"use strict\";var r=e(15),o=e(75);(t.exports=function(t,n){return o[t]||(o[t]=n!==undefined?n:{})})(\"versions\",[]).push({version:\"3.3.2\",mode:r?\"pure\":\"global\",copyright:\"© 2019 Denis Pushkarev (zloirock.ru)\"})},function(t,n,e){\"use strict\";var r=e(3),o=e(83),i=e(43),u=e(27),c=e(52),s=e(39),f=e(26)(\"IE_PROTO\"),a=\"prototype\",l=function l(){},p=function(){var t,n=s(\"iframe\"),e=i.length,r=\"script\";for(n.style.display=\"none\",c.appendChild(n),n.src=String(\"javascript:\"),(t=n.contentWindow.document).open(),t.write(\"<script>document.F=Object</\"+r+\">\"),t.close(),p=t.F;e--;)delete p[a][i[e]];return p()};t.exports=Object.create||function(t,n){var e;return null!==t?(l[a]=r(t),e=new l,l[a]=null,e[f]=t):e=p(),n===undefined?e:o(e,n)},u[f]=!0},function(t,n,e){\"use strict\";t.exports={}},function(t,n,e){\"use strict\";var o=e(13),i=function i(t){var e,r;this.promise=new t(function(t,n){if(e!==undefined||r!==undefined)throw TypeError(\"Bad Promise constructor\");e=t,r=n}),this.resolve=o(e),this.reject=o(r)};t.exports.f=function(t){return new i(t)}},function(t,n,e){\"use strict\";var r=e(5),o=e(36),i=e(19),u=e(14),c=e(38),s=e(8),f=e(47),a=Object.getOwnPropertyDescriptor;n.f=r?a:function(t,n){if(t=u(t),n=c(n,!0),f)try{return a(t,n)}catch(e){}if(s(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){\"use strict\";t.exports=function(t){if(t==undefined)throw TypeError(\"Can't call method on \"+t);return t}},function(t,n,e){\"use strict\";var r=e(20),o=e(41),i=r(\"keys\");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n,e){\"use strict\";t.exports={}},function(t,n,e){\"use strict\";var r=e(29),o=Math.min;t.exports=function(t){return 0<t?o(r(t),9007199254740991):0}},function(t,n,e){\"use strict\";var r=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?o:r)(t)}},function(t,n,e){\"use strict\";var r=e(9).f,o=e(8),i=e(1)(\"toStringTag\");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){\"use strict\";var i=e(13);t.exports=function(r,o,t){if(i(r),o===undefined)return r;switch(t){case 0:return function(){return r.call(o)};case 1:return function(t){return r.call(o,t)};case 2:return function(t,n){return r.call(o,t,n)};case 3:return function(t,n,e){return r.call(o,t,n,e)}}return function(){return r.apply(o,arguments)}}},function(t,n,e){\"use strict\";var r=e(8),o=e(18),i=e(26),u=e(57),c=i(\"IE_PROTO\"),s=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,n,e){\"use strict\";var r=e(0),o=e(31),i=Function.call;t.exports=function(t,n,e){return o(i,r[t].prototype[n],e)}},function(t,n,e){\"use strict\";function y(t){return(y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var d=e(3),v=e(123),h=e(28),g=e(31),b=e(124),m=e(125),x=function x(t,n){this.stopped=t,this.result=n};(t.exports=function(t,n,e,r,o){var i,u,c,s,f,a,l,p=g(n,e,r?2:1);if(o)i=t;else{if(\"function\"!=typeof(u=b(t)))throw TypeError(\"Target is not iterable\");if(v(u)){for(c=0,s=h(t.length);c<s;c++)if((f=r?p(d(l=t[c])[0],l[1]):p(t[c]))&&f instanceof x)return f;return new x(!1)}i=u.call(t)}for(a=i.next;!(l=a.call(i)).done;)if(\"object\"==y(f=m(i,p,l.value,r))&&f&&f instanceof x)return f;return new x(!1)}).stop=function(t){return new x(!0,t)}},function(t,n,e){\"use strict\";t.exports=function(t){try{return{error:!1,value:t()}}catch(n){return{error:!0,value:n}}}},function(t,n,e){\"use strict\";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){\"use strict\";var r=e(4),o=e(12),i=\"\".split;t.exports=r(function(){return!Object(\"z\").propertyIsEnumerable(0)})?function(t){return\"String\"==o(t)?i.call(t,\"\"):Object(t)}:Object},function(t,n,e){\"use strict\";var o=e(7);t.exports=function(t,n){if(!o(t))return t;var e,r;if(n&&\"function\"==typeof(e=t.toString)&&!o(r=e.call(t)))return r;if(\"function\"==typeof(e=t.valueOf)&&!o(r=e.call(t)))return r;if(!n&&\"function\"==typeof(e=t.toString)&&!o(r=e.call(t)))return r;throw TypeError(\"Can't convert object to primitive value\")}},function(t,n,e){\"use strict\";var r=e(0),o=e(7),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,n,e){\"use strict\";var r=e(0),o=e(6);t.exports=function(t,n){try{o(r,t,n)}catch(e){r[t]=n}return n}},function(t,n,e){\"use strict\";var r=0,o=Math.random();t.exports=function(t){return\"Symbol(\"+String(t===undefined?\"\":t)+\")_\"+(++r+o).toString(36)}},function(t,n,e){\"use strict\";var r=e(49),o=e(43).concat(\"length\",\"prototype\");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){\"use strict\";t.exports=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"]},function(t,n,e){\"use strict\";n.f=Object.getOwnPropertySymbols},function(t,n,e){\"use strict\";var r=e(49),o=e(43);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){\"use strict\";var r=e(17);t.exports=r(\"navigator\",\"userAgent\")||\"\"},function(t,n,e){\"use strict\";var r=e(5),o=e(4),i=e(39);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i(\"div\"),\"a\",{get:function(){return 7}}).a})},function(t,n,e){\"use strict\";var r=e(20);t.exports=r(\"native-function-to-string\",Function.toString)},function(t,n,e){\"use strict\";var u=e(8),c=e(14),s=e(50).indexOf,f=e(27);t.exports=function(t,n){var e,r=c(t),o=0,i=[];for(e in r)!u(f,e)&&u(r,e)&&i.push(e);for(;n.length>o;)u(r,e=n[o++])&&(~s(i,e)||i.push(e));return i}},function(t,n,e){\"use strict\";var s=e(14),f=e(28),a=e(79),r=function r(c){return function(t,n,e){var r,o=s(t),i=f(o.length),u=a(e,i);if(c&&n!=n){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((c||u in o)&&o[u]===n)return c||u||0;return!c&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},function(t,n,e){\"use strict\";var r=e(4),o=/#|\\.prototype\\./,i=function i(t,n){var e=c[u(t)];return e==f||e!=s&&(\"function\"==typeof n?r(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,\".\").toLowerCase()},c=i.data={},s=i.NATIVE=\"N\",f=i.POLYFILL=\"P\";t.exports=i},function(t,n,e){\"use strict\";var r=e(17);t.exports=r(\"document\",\"documentElement\")},function(t,n,e){\"use strict\";var r=e(4);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(t,n,e){\"use strict\";var r=e(12);t.exports=Array.isArray||function(t){return\"Array\"==r(t)}},function(t,n,e){\"use strict\";n.f=e(1)},function(t,n,e){\"use strict\";var x=e(31),S=e(37),O=e(18),j=e(28),w=e(93),P=[].push,r=function r(y){var d=1==y,v=2==y,h=3==y,g=4==y,b=6==y,m=5==y||b;return function(t,n,e,r){for(var o,i,u=O(t),c=S(u),s=x(n,e,3),f=j(c.length),a=0,l=r||w,p=d?l(t,f):v?l(t,0):undefined;a<f;a++)if((m||a in c)&&(i=s(o=c[a],a,u),y))if(d)p[a]=i;else if(i)switch(y){case 3:return!0;case 5:return o;case 6:return a;case 2:P.call(p,o)}else if(g)return!1;return b?-1:h||g?g:p}};t.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6)}},function(t,n,e){\"use strict\";var r=e(4);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,n,e){\"use strict\";var r=e(4);t.exports=function(t,n){var e=[][t];return!e||!r(function(){e.call(null,n||function(){throw 1},1)})}},function(t,n,e){\"use strict\";var o=e(12),i=e(1)(\"toStringTag\"),u=\"Arguments\"==o(function(){return arguments}()),c=function c(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,r;return t===undefined?\"Undefined\":null===t?\"Null\":\"string\"==typeof(e=c(n=Object(t),i))?e:u?o(n):\"Object\"==(r=o(n))&&\"function\"==typeof n.callee?\"Arguments\":r}},function(t,n,e){\"use strict\";var s=e(29),f=e(25),r=function r(c){return function(t,n){var e,r,o=String(f(t)),i=s(n),u=o.length;return i<0||u<=i?c?\"\":undefined:(e=o.charCodeAt(i))<55296||56319<e||i+1===u||(r=o.charCodeAt(i+1))<56320||57343<r?c?o.charAt(i):e:c?o.slice(i,i+2):r-56320+(e-55296<<10)+65536}};t.exports={codeAt:r(!1),charAt:r(!0)}},function(t,n,e){\"use strict\";var g=e(2),b=e(113),m=e(32),x=e(63),S=e(30),O=e(6),j=e(11),r=e(1),w=e(15),P=e(22),o=e(62),E=o.IteratorPrototype,A=o.BUGGY_SAFARI_ITERATORS,T=r(\"iterator\"),L=\"values\",M=\"entries\",k=function k(){return this};t.exports=function(t,n,e,r,o,i,u){b(e,n,r);var c,s,f,a=function a(t){if(t===o&&v)return v;if(!A&&t in y)return y[t];switch(t){case\"keys\":case L:case M:return function(){return new e(this,t)}}return function(){return new e(this)}},l=n+\" Iterator\",p=!1,y=t.prototype,d=y[T]||y[\"@@iterator\"]||o&&y[o],v=!A&&d||a(o),h=\"Array\"==n&&y.entries||d;if(h&&(c=m(h.call(new t)),E!==Object.prototype&&c.next&&(w||m(c)===E||(x?x(c,E):\"function\"!=typeof c[T]&&O(c,T,k)),S(c,l,!0,!0),w&&(P[l]=k))),o==L&&d&&d.name!==L&&(p=!0,v=function(){return d.call(this)}),w&&!u||y[T]===v||O(y,T,v),P[n]=v,o)if(s={values:a(L),keys:i?v:a(\"keys\"),entries:a(M)},u)for(f in s)!A&&!p&&f in y||j(y,f,s[f]);else g({target:n,proto:!0,forced:A||p},s);return s}},function(t,n,e){\"use strict\";var r,o,i,u=e(32),c=e(6),s=e(8),f=e(1),a=e(15),l=f(\"iterator\"),p=!1,y=function y(){return this};[].keys&&(\"next\"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):p=!0),r==undefined&&(r={}),a||s(r,l)||c(r,l,y),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,n,e){\"use strict\";var o=e(3),i=e(114);t.exports=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var e,r=!1,t={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,\"__proto__\").set).call(t,[]),r=t instanceof Array}catch(n){}return function(t,n){return o(t),i(n),r?e.call(t,n):function u(t,n){for(var e=Object.getOwnPropertyNames(n),r=0;r<e.length;r++){var o=e[r],i=Object.getOwnPropertyDescriptor(n,o);i&&i.configurable&&t[o]===undefined&&Object.defineProperty(t,o,i)}return t}(t,n),t}}():undefined)},function(t,n,e){\"use strict\";var r=e(0);t.exports=r.Promise},function(t,n,e){\"use strict\";var o=e(3),i=e(13),u=e(1)(\"species\");t.exports=function(t,n){var e,r=o(t).constructor;return r===undefined||(e=o(r)[u])==undefined?n:i(e)}},function(t,n,e){\"use strict\";var r,o,i,u=e(0),c=e(4),s=e(12),f=e(31),a=e(52),l=e(39),p=e(46),y=u.location,d=u.setImmediate,v=u.clearImmediate,h=u.process,g=u.MessageChannel,b=u.Dispatch,m=0,x={},S=\"onreadystatechange\",O=function O(t){if(x.hasOwnProperty(t)){var n=x[t];delete x[t],n()}},j=function j(t){return function(){O(t)}},w=function w(t){O(t.data)},P=function P(t){u.postMessage(t+\"\",y.protocol+\"//\"+y.host)};d&&v||(d=function(t){for(var n=[],e=1;e<arguments.length;)n.push(arguments[e++]);return x[++m]=function(){(\"function\"==typeof t?t:Function(t)).apply(undefined,n)},r(m),m},v=function(t){delete x[t]},\"process\"==s(h)?r=function r(t){h.nextTick(j(t))}:b&&b.now?r=function r(t){b.now(j(t))}:g&&!/(iphone|ipod|ipad).*applewebkit/i.test(p)?(i=(o=new g).port2,o.port1.onmessage=w,r=f(i.postMessage,i,1)):!u.addEventListener||\"function\"!=typeof postMessage||u.importScripts||c(P)?r=S in l(\"script\")?function r(t){a.appendChild(l(\"script\"))[S]=function(){a.removeChild(this),O(t)}}:function r(t){setTimeout(j(t),0)}:(r=P,u.addEventListener(\"message\",w,!1))),t.exports={set:d,clear:v}},function(t,n,e){\"use strict\";var r=e(3),o=e(7),i=e(23);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},function(t,n,e){\"use strict\";var r=e(2),f=e(13),o=e(23),i=e(35),a=e(34);r({target:\"Promise\",stat:!0},{allSettled:function(t){var c=this,n=o.f(c),s=n.resolve,e=n.reject,r=i(function(){var r=f(c.resolve),o=[],i=0,u=1;a(t,function(t){var n=i++,e=!1;o.push(undefined),u++,r.call(c,t).then(function(t){e||(e=!0,o[n]={status:\"fulfilled\",value:t},--u||s(o))},function(t){e||(e=!0,o[n]={status:\"rejected\",reason:t},--u||s(o))})}),--u||s(o)});return r.error&&e(r.value),n.promise}})},function(t,n,e){\"use strict\";var r,o,u=e(138),c=RegExp.prototype.exec,s=String.prototype.replace,i=c,f=(r=/a/,o=/b*/g,c.call(r,\"a\"),c.call(o,\"a\"),0!==r.lastIndex||0!==o.lastIndex),a=/()??/.exec(\"\")[1]!==undefined;(f||a)&&(i=function(t){var n,e,r,o,i=this;return a&&(e=new RegExp(\"^\"+i.source+\"$(?!\\\\s)\",u.call(i))),f&&(n=i.lastIndex),r=c.call(i,t),f&&r&&(i.lastIndex=i.global?r.index+r[0].length:n),a&&r&&1<r.length&&s.call(r[0],e,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===undefined&&(r[o]=undefined)}),r}),t.exports=i},function(t,n,e){e(71),e(80),e(84),e(88),e(94),e(97),e(101),e(104),e(108),t.exports=e(134)},function(t,n,e){\"use strict\";t.exports=e(72)},function(t,n,e){\"use strict\";e(73);var r=e(10).Object,o=t.exports=function o(t,n,e){return r.defineProperty(t,n,e)};r.defineProperty.sham&&(o.sham=!0)},function(t,n,e){\"use strict\";var r=e(2),o=e(5);r({target:\"Object\",stat:!0,forced:!o,sham:!o},{defineProperty:e(9).f})},function(t,n,e){\"use strict\";function r(t){return(r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var o;o=function(){return this}();try{o=o||new Function(\"return this\")()}catch(i){\"object\"===(\"undefined\"==typeof window?\"undefined\":r(window))&&(o=window)}t.exports=o},function(t,n,e){\"use strict\";var r=e(0),o=e(40),i=\"__core-js_shared__\",u=r[i]||o(i,{});t.exports=u},function(t,n,e){\"use strict\";var r=e(0),o=e(48),i=r.WeakMap;t.exports=\"function\"==typeof i&&/native code/.test(o.call(i))},function(t,n,e){\"use strict\";var c=e(8),s=e(78),f=e(24),a=e(9);t.exports=function(t,n){for(var e=s(n),r=a.f,o=f.f,i=0;i<e.length;i++){var u=e[i];c(t,u)||r(t,u,o(n,u))}}},function(t,n,e){\"use strict\";var r=e(17),o=e(42),i=e(44),u=e(3);t.exports=r(\"Reflect\",\"ownKeys\")||function(t){var n=o.f(u(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){\"use strict\";var r=e(29),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){\"use strict\";t.exports=e(81)},function(t,n,e){\"use strict\";e(82);var r=e(10).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){\"use strict\";e(2)({target:\"Object\",stat:!0,sham:!e(5)},{create:e(21)})},function(t,n,e){\"use strict\";var r=e(5),u=e(9),c=e(3),s=e(45);t.exports=r?Object.defineProperties:function(t,n){c(t);for(var e,r=s(n),o=r.length,i=0;i<o;)u.f(t,e=r[i++],n[e]);return t}},function(t,n,e){\"use strict\";t.exports=e(85)},function(t,n,e){\"use strict\";e(86);var r=e(10);t.exports=r.Object.assign},function(t,n,e){\"use strict\";var r=e(2),o=e(87);r({target:\"Object\",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,n,e){\"use strict\";var p=e(5),r=e(4),y=e(45),d=e(44),v=e(36),h=e(18),g=e(37),o=Object.assign;t.exports=!o||r(function(){var t={},n={},e=Symbol(),r=\"abcdefghijklmnopqrst\";return t[e]=7,r.split(\"\").forEach(function(t){n[t]=t}),7!=o({},t)[e]||y(o({},n)).join(\"\")!=r})?function(t,n){for(var e=h(t),r=arguments.length,o=1,i=d.f,u=v.f;o<r;)for(var c,s=g(arguments[o++]),f=i?y(s).concat(i(s)):y(s),a=f.length,l=0;l<a;)c=f[l++],p&&!u.call(s,c)||(e[c]=s[c]);return e}:o},function(t,n,e){\"use strict\";t.exports=e(89)},function(t,n,e){\"use strict\";e(90);var r=e(10);t.exports=r.Object.getOwnPropertySymbols},function(t,n,e){\"use strict\";function r(t){return(r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var o=e(2),i=e(0),u=e(15),c=e(5),s=e(53),f=e(4),a=e(8),l=e(54),p=e(7),y=e(3),d=e(18),v=e(14),h=e(38),g=e(19),b=e(21),m=e(45),x=e(42),S=e(91),O=e(44),j=e(24),w=e(9),P=e(36),E=e(6),A=e(11),T=e(20),L=e(26),M=e(27),k=e(41),I=e(1),_=e(55),F=e(92),C=e(30),R=e(16),N=e(56).forEach,D=L(\"hidden\"),G=\"Symbol\",V=\"prototype\",$=I(\"toPrimitive\"),z=R.set,H=R.getterFor(G),W=Object[V],q=i.Symbol,B=i.JSON,U=B&&B.stringify,Y=j.f,J=w.f,K=S.f,Q=P.f,X=T(\"symbols\"),Z=T(\"op-symbols\"),tt=T(\"string-to-symbol-registry\"),nt=T(\"symbol-to-string-registry\"),et=T(\"wks\"),rt=i.QObject,ot=!rt||!rt[V]||!rt[V].findChild,it=c&&f(function(){return 7!=b(J({},\"a\",{get:function(){return J(this,\"a\",{value:7}).a}})).a})?function(t,n,e){var r=Y(W,n);r&&delete W[n],J(t,n,e),r&&t!==W&&J(W,n,r)}:J,ut=function ut(t,n){var e=X[t]=b(q[V]);return z(e,{type:G,tag:t,description:n}),c||(e.description=n),e},ct=s&&\"symbol\"==r(q.iterator)?function(t){return\"symbol\"==r(t)}:function(t){return Object(t)instanceof q},st=function(t,n,e){t===W&&st(Z,n,e),y(t);var r=h(n,!0);return y(e),a(X,r)?(e.enumerable?(a(t,D)&&t[D][r]&&(t[D][r]=!1),e=b(e,{enumerable:g(0,!1)})):(a(t,D)||J(t,D,g(1,{})),t[D][r]=!0),it(t,r,e)):J(t,r,e)},ft=function(n,t){y(n);var e=v(t),r=m(e).concat(yt(e));return N(r,function(t){c&&!at.call(e,t)||st(n,t,e[t])}),n},at=function(t){var n=h(t,!0),e=Q.call(this,n);return!(this===W&&a(X,n)&&!a(Z,n))&&(!(e||!a(this,n)||!a(X,n)||a(this,D)&&this[D][n])||e)},lt=function(t,n){var e=v(t),r=h(n,!0);if(e!==W||!a(X,r)||a(Z,r)){var o=Y(e,r);return!o||!a(X,r)||a(e,D)&&e[D][r]||(o.enumerable=!0),o}},pt=function(t){var n=K(v(t)),e=[];return N(n,function(t){a(X,t)||a(M,t)||e.push(t)}),e},yt=function(t){var n=t===W,e=K(n?Z:v(t)),r=[];return N(e,function(t){!a(X,t)||n&&!a(W,t)||r.push(X[t])}),r};s||(A((q=function(){if(this instanceof q)throw TypeError(\"Symbol is not a constructor\");var t=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,n=k(t),e=function e(t){this===W&&e.call(Z,t),a(this,D)&&a(this[D],n)&&(this[D][n]=!1),it(this,n,g(1,t))};return c&&ot&&it(W,n,{configurable:!0,set:e}),ut(n,t)})[V],\"toString\",function(){return H(this).tag}),P.f=at,w.f=st,j.f=lt,x.f=S.f=pt,O.f=yt,c&&(J(q[V],\"description\",{configurable:!0,get:function(){return H(this).description}}),u||A(W,\"propertyIsEnumerable\",at,{unsafe:!0})),_.f=function(t){return ut(I(t),t)}),o({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:q}),N(m(et),function(t){F(t)}),o({target:G,stat:!0,forced:!s},{\"for\":function(t){var n=String(t);if(a(tt,n))return tt[n];var e=q(n);return tt[n]=e,nt[e]=n,e},keyFor:function(t){if(!ct(t))throw TypeError(t+\" is not a symbol\");if(a(nt,t))return nt[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),o({target:\"Object\",stat:!0,forced:!s,sham:!c},{create:function(t,n){return n===undefined?b(t):ft(b(t),n)},defineProperty:st,defineProperties:ft,getOwnPropertyDescriptor:lt}),o({target:\"Object\",stat:!0,forced:!s},{getOwnPropertyNames:pt,getOwnPropertySymbols:yt}),o({target:\"Object\",stat:!0,forced:f(function(){O.f(1)})},{getOwnPropertySymbols:function(t){return O.f(d(t))}}),B&&o({target:\"JSON\",stat:!0,forced:!s||f(function(){var t=q();return\"[null]\"!=U([t])||\"{}\"!=U({a:t})||\"{}\"!=U(Object(t))})},{stringify:function(t){for(var e,r,n=[t],o=1;o<arguments.length;)n.push(arguments[o++]);if(r=e=n[1],(p(e)||t!==undefined)&&!ct(t))return l(e)||(e=function e(t,n){if(\"function\"==typeof r&&(n=r.call(this,t,n)),!ct(n))return n}),n[1]=e,U.apply(B,n)}}),q[V][$]||E(q[V],$,q[V].valueOf),C(q,G),M[D]=!0},function(t,n,e){\"use strict\";function r(t){return(r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var o=e(14),i=e(42).f,u={}.toString,c=\"object\"==(\"undefined\"==typeof window?\"undefined\":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function s(t){try{return i(t)}catch(n){return c.slice()}};t.exports.f=function(t){return c&&\"[object Window]\"==u.call(t)?s(t):i(o(t))}},function(t,n,e){\"use strict\";var r=e(10),o=e(8),i=e(55),u=e(9).f;t.exports=function(t){var n=r.Symbol||(r.Symbol={});o(n,t)||u(n,t,{value:i.f(t)})}},function(t,n,e){\"use strict\";var r=e(7),o=e(54),i=e(1)(\"species\");t.exports=function(t,n){var e;return o(t)&&(\"function\"==typeof(e=t.constructor)&&(e===Array||o(e.prototype))||r(e)&&null===(e=e[i]))&&(e=undefined),new(e===undefined?Array:e)(0===n?0:n)}},function(t,n,e){\"use strict\";t.exports=e(95)},function(t,n,e){\"use strict\";e(96);var r=e(10);t.exports=r.Object.getPrototypeOf},function(t,n,e){\"use strict\";var r=e(2),o=e(4),i=e(18),u=e(32),c=e(57);r({target:\"Object\",stat:!0,forced:o(function(){u(1)}),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,n,e){\"use strict\";t.exports=e(98)},function(t,n,e){\"use strict\";e(99);var r=e(33);t.exports=r(\"Array\",\"forEach\")},function(t,n,e){\"use strict\";var r=e(2),o=e(100);r({target:\"Array\",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){\"use strict\";var r=e(56).forEach,o=e(58);t.exports=o(\"forEach\")?function(t){return r(this,t,1<arguments.length?arguments[1]:undefined)}:[].forEach},function(t,n,e){\"use strict\";t.exports=e(102)},function(t,n,e){\"use strict\";e(103);var r=e(33);t.exports=r(\"Array\",\"indexOf\")},function(t,n,e){\"use strict\";var r=e(2),o=e(50).indexOf,i=e(58),u=[].indexOf,c=!!u&&1/[1].indexOf(1,-0)<0,s=i(\"indexOf\");r({target:\"Array\",proto:!0,forced:c||s},{indexOf:function(t){return c?u.apply(this,arguments)||0:o(this,t,1<arguments.length?arguments[1]:undefined)}})},function(t,n,e){\"use strict\";t.exports=e(105)},function(t,n,e){\"use strict\";e(106);var r=e(33);t.exports=r(\"Function\",\"bind\")},function(t,n,e){\"use strict\";e(2)({target:\"Function\",proto:!0},{bind:e(107)})},function(t,n,e){\"use strict\";var i=e(13),u=e(7),c=[].slice,s={},f=function f(t,n,e){if(!(n in s)){for(var r=[],o=0;o<n;o++)r[o]=\"a[\"+o+\"]\";s[n]=Function(\"C,a\",\"return new C(\"+r.join(\",\")+\")\")}return s[n](t,e)};t.exports=Function.bind||function(n){var e=i(this),r=c.call(arguments,1),o=function(){var t=r.concat(c.call(arguments));return this instanceof o?f(e,t.length,t):e.apply(n,t)};return u(e.prototype)&&(o.prototype=e.prototype),o}},function(t,n,e){\"use strict\";t.exports=e(109),e(130),e(131),e(132),e(133)},function(t,n,e){\"use strict\";e(110),e(112),e(115),e(119),e(68),e(129);var r=e(10);t.exports=r.Promise},function(t,n,e){\"use strict\";var r=e(11),o=e(111),i=Object.prototype;o!==i.toString&&r(i,\"toString\",o,{unsafe:!0})},function(t,n,e){\"use strict\";var r=e(59),o={};o[e(1)(\"toStringTag\")]=\"z\",t.exports=\"[object z]\"!==String(o)?function(){return\"[object \"+r(this)+\"]\"}:o.toString},function(t,n,e){\"use strict\";var o=e(60).charAt,r=e(16),i=e(61),u=\"String Iterator\",c=r.set,s=r.getterFor(u);i(String,\"String\",function(t){c(this,{type:u,string:String(t),index:0})},function(){var t,n=s(this),e=n.string,r=n.index;return r>=e.length?{value:undefined,done:!0}:(t=o(e,r),n.index+=t.length,{value:t,done:!1})})},function(t,n,e){\"use strict\";var o=e(62).IteratorPrototype,i=e(21),u=e(19),c=e(30),s=e(22),f=function f(){return this};t.exports=function(t,n,e){var r=n+\" Iterator\";return t.prototype=i(o,{next:u(1,e)}),c(t,r,!1,!0),s[r]=f,t}},function(t,n,e){\"use strict\";var r=e(7);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError(\"Can't set \"+String(t)+\" as a prototype\");return t}},function(t,n,e){\"use strict\";var r=e(0),o=e(116),i=e(117),u=e(6),c=e(1),s=c(\"iterator\"),f=c(\"toStringTag\"),a=i.values;for(var l in o){var p=r[l],y=p&&p.prototype;if(y){if(y[s]!==a)try{u(y,s,a)}catch(v){y[s]=a}if(y[f]||u(y,f,l),o[l])for(var d in i)if(y[d]!==i[d])try{u(y,d,i[d])}catch(v){y[d]=i[d]}}}},function(t,n,e){\"use strict\";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){\"use strict\";var r=e(14),o=e(118),i=e(22),u=e(16),c=e(61),s=\"Array Iterator\",f=u.set,a=u.getterFor(s);t.exports=c(Array,\"Array\",function(t,n){f(this,{type:s,target:r(t),index:0,kind:n})},function(){var t=a(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=undefined,{value:undefined,done:!0}):\"keys\"==e?{value:r,done:!1}:\"values\"==e?{value:n[r],done:!1}:{value:[r,n[r]],done:!1}},\"values\"),i.Arguments=i.Array,o(\"keys\"),o(\"values\"),o(\"entries\")},function(t,n,e){\"use strict\";var r=e(1),o=e(21),i=e(6),u=r(\"unscopables\"),c=Array.prototype;c[u]==undefined&&i(c,u,o(null)),t.exports=function(t){c[u][t]=!0}},function(t,n,e){\"use strict\";var r,o,i,u,c=e(2),s=e(15),f=e(0),a=e(10),l=e(64),p=e(11),y=e(120),d=e(30),v=e(121),h=e(7),g=e(13),b=e(122),m=e(12),x=e(34),S=e(126),O=e(65),j=e(66).set,w=e(127),P=e(67),E=e(128),A=e(23),T=e(35),L=e(46),M=e(16),k=e(51),I=e(1)(\"species\"),_=\"Promise\",F=M.get,C=M.set,R=M.getterFor(_),N=l,D=f.TypeError,G=f.document,V=f.process,$=f.fetch,z=V&&V.versions,H=z&&z.v8||\"\",W=A.f,q=W,B=\"process\"==m(V),U=!!(G&&G.createEvent&&f.dispatchEvent),Y=\"unhandledrejection\",J=k(_,function(){var t=N.resolve(1),n=function n(){},e=(t.constructor={})[I]=function(t){t(n,n)};return!((B||\"function\"==typeof PromiseRejectionEvent)&&(!s||t[\"finally\"])&&t.then(n)instanceof e&&0!==H.indexOf(\"6.6\")&&-1===L.indexOf(\"Chrome/66\"))}),K=J||!S(function(t){N.all(t)[\"catch\"](function(){})}),Q=function Q(t){var n;return!(!h(t)||\"function\"!=typeof(n=t.then))&&n},X=function X(p,y,d){if(!y.notified){y.notified=!0;var v=y.reactions;w(function(){for(var t=y.value,n=1==y.state,e=0;v.length>e;){var r,o,i,u=v[e++],c=n?u.ok:u.fail,s=u.resolve,f=u.reject,a=u.domain;try{c?(n||(2===y.rejection&&et(p,y),y.rejection=1),!0===c?r=t:(a&&a.enter(),r=c(t),a&&(a.exit(),i=!0)),r===u.promise?f(D(\"Promise-chain cycle\")):(o=Q(r))?o.call(r,s,f):s(r)):f(t)}catch(l){a&&!i&&a.exit(),f(l)}}y.reactions=[],y.notified=!1,d&&!y.rejection&&tt(p,y)})}},Z=function Z(t,n,e){var r,o;U?((r=G.createEvent(\"Event\")).promise=n,r.reason=e,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:n,reason:e},(o=f[\"on\"+t])?o(r):t===Y&&E(\"Unhandled promise rejection\",e)},tt=function tt(e,r){j.call(f,function(){var t,n=r.value;if(nt(r)&&(t=T(function(){B?V.emit(\"unhandledRejection\",n,e):Z(Y,e,n)}),r.rejection=B||nt(r)?2:1,t.error))throw t.value})},nt=function nt(t){return 1!==t.rejection&&!t.parent},et=function et(t,n){j.call(f,function(){B?V.emit(\"rejectionHandled\",t):Z(\"rejectionhandled\",t,n.value)})},rt=function rt(n,e,r,o){return function(t){n(e,r,t,o)}},ot=function ot(t,n,e,r){n.done||(n.done=!0,r&&(n=r),n.value=e,n.state=2,X(t,n,!0))},it=function it(e,r,o,t){if(!r.done){r.done=!0,t&&(r=t);try{if(e===o)throw D(\"Promise can't be resolved itself\");var i=Q(o);i?w(function(){var t={done:!1};try{i.call(o,rt(it,e,t,r),rt(ot,e,t,r))}catch(n){ot(e,t,n,r)}}):(r.value=o,r.state=1,X(e,r,!1))}catch(n){ot(e,{done:!1},n,r)}}};J&&(N=function(t){b(this,N,_),g(t),r.call(this);var n=F(this);try{t(rt(it,this,n),rt(ot,this,n))}catch(e){ot(this,n,e)}},(r=function(t){C(this,{type:_,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=y(N.prototype,{then:function(t,n){var e=R(this),r=W(O(this,N));return r.ok=\"function\"!=typeof t||t,r.fail=\"function\"==typeof n&&n,r.domain=B?V.domain:undefined,e.parent=!0,e.reactions.push(r),0!=e.state&&X(this,e,!1),r.promise},\"catch\":function(t){return this.then(undefined,t)}}),o=function o(){var t=new r,n=F(t);this.promise=t,this.resolve=rt(it,t,n),this.reject=rt(ot,t,n)},A.f=W=function W(t){return t===N||t===i?new o(t):q(t)},s||\"function\"!=typeof l||(u=l.prototype.then,p(l.prototype,\"then\",function(t,n){var e=this;return new N(function(t,n){u.call(e,t,n)}).then(t,n)},{unsafe:!0}),\"function\"==typeof $&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return P(N,$.apply(f,arguments))}}))),c({global:!0,wrap:!0,forced:J},{Promise:N}),d(N,_,!1,!0),v(_),i=a[_],c({target:_,stat:!0,forced:J},{reject:function(t){var n=W(this);return n.reject.call(undefined,t),n.promise}}),c({target:_,stat:!0,forced:s||J},{resolve:function(t){return P(s&&this===i?N:this,t)}}),c({target:_,stat:!0,forced:K},{all:function(t){var c=this,n=W(c),s=n.resolve,f=n.reject,e=T(function(){var r=g(c.resolve),o=[],i=0,u=1;x(t,function(t){var n=i++,e=!1;o.push(undefined),u++,r.call(c,t).then(function(t){e||(e=!0,o[n]=t,--u||s(o))},f)}),--u||s(o)});return e.error&&f(e.value),n.promise},race:function(t){var e=this,r=W(e),o=r.reject,n=T(function(){var n=g(e.resolve);x(t,function(t){n.call(e,t).then(r.resolve,o)})});return n.error&&o(n.value),r.promise}})},function(t,n,e){\"use strict\";var o=e(11);t.exports=function(t,n,e){for(var r in n)o(t,r,n[r],e);return t}},function(t,n,e){\"use strict\";var r=e(17),o=e(9),i=e(1),u=e(5),c=i(\"species\");t.exports=function(t){var n=r(t),e=o.f;u&&n&&!n[c]&&e(n,c,{configurable:!0,get:function(){return this}})}},function(t,n,e){\"use strict\";t.exports=function(t,n,e){if(!(t instanceof n))throw TypeError(\"Incorrect \"+(e?e+\" \":\"\")+\"invocation\");return t}},function(t,n,e){\"use strict\";var r=e(1),o=e(22),i=r(\"iterator\"),u=Array.prototype;t.exports=function(t){return t!==undefined&&(o.Array===t||u[i]===t)}},function(t,n,e){\"use strict\";var r=e(59),o=e(22),i=e(1)(\"iterator\");t.exports=function(t){if(t!=undefined)return t[i]||t[\"@@iterator\"]||o[r(t)]}},function(t,n,e){\"use strict\";var u=e(3);t.exports=function(t,n,e,r){try{return r?n(u(e)[0],e[1]):n(e)}catch(i){var o=t[\"return\"];throw o!==undefined&&u(o.call(t)),i}}},function(t,n,e){\"use strict\";var o=e(1)(\"iterator\"),i=!1;try{var r=0,u={next:function(){return{done:!!r++}},\"return\":function(){i=!0}};u[o]=function(){return this},Array.from(u,function(){throw 2})}catch(c){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var r={};r[o]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(c){}return e}},function(t,n,e){\"use strict\";var r,o,i,u,c,s,f,a,l=e(0),p=e(24).f,y=e(12),d=e(66).set,v=e(46),h=l.MutationObserver||l.WebKitMutationObserver,g=l.process,b=l.Promise,m=\"process\"==y(g),x=p(l,\"queueMicrotask\"),S=x&&x.value;S||(r=function r(){var t,n;for(m&&(t=g.domain)&&t.exit();o;){n=o.fn,o=o.next;try{n()}catch(e){throw o?u():i=undefined,e}}i=undefined,t&&t.enter()},u=m?function u(){g.nextTick(r)}:h&&!/(iphone|ipod|ipad).*applewebkit/i.test(v)?(c=!0,s=document.createTextNode(\"\"),new h(r).observe(s,{characterData:!0}),function u(){s.data=c=!c}):b&&b.resolve?(f=b.resolve(undefined),a=f.then,function u(){a.call(f,r)}):function u(){d.call(l,r)}),t.exports=S||function(t){var n={fn:t,next:undefined};i&&(i.next=n),o||(o=n,u()),i=n}},function(t,n,e){\"use strict\";var r=e(0);t.exports=function(t,n){var e=r.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,n))}},function(t,n,e){\"use strict\";var r=e(2),o=e(15),i=e(64),u=e(17),c=e(65),s=e(67),f=e(11);r({target:\"Promise\",proto:!0,real:!0},{\"finally\":function(n){var e=c(this,u(\"Promise\")),t=\"function\"==typeof n;return this.then(t?function(t){return s(e,n()).then(function(){return t})}:n,t?function(t){return s(e,n()).then(function(){throw t})}:n)}}),o||\"function\"!=typeof i||i.prototype[\"finally\"]||f(i.prototype,\"finally\",u(\"Promise\").prototype[\"finally\"])},function(t,n,e){\"use strict\";var r=e(2),o=e(5),i=e(32),u=e(63),c=e(21),s=e(9),f=e(19),a=e(34),l=e(6),p=e(3),y=e(16),d=y.set,v=y.getterFor(\"AggregateError\"),h=function(t,n){var e=this;if(!(e instanceof h))return new h(t,n);u&&(e=u(new Error(n),i(e)));var r=[];return a(t,r.push,r),o?d(e,{errors:r,type:\"AggregateError\"}):e.errors=r,n!==undefined&&l(e,\"message\",String(n)),e};h.prototype=c(Error.prototype,{constructor:f(5,h),message:f(5,\"\"),name:f(5,\"AggregateError\"),toString:f(5,function(){var t=p(this).name;t=t===undefined?\"AggregateError\":String(t);var n=this.message;return t+\": \"+(n=n===undefined?\"\":String(n))})}),o&&s.f(h.prototype,\"errors\",{get:function(){return v(this).errors},configurable:!0}),r({global:!0},{AggregateError:h})},function(t,n,e){\"use strict\";e(68)},function(t,n,e){\"use strict\";var r=e(2),o=e(23),i=e(35);r({target:\"Promise\",stat:!0},{\"try\":function(t){var n=o.f(this),e=i(t);return(e.error?n.reject:n.resolve)(e.value),n.promise}})},function(t,n,e){\"use strict\";var r=e(2),l=e(13),p=e(17),o=e(23),i=e(35),y=e(34),d=\"No one promise resolved\";r({target:\"Promise\",stat:!0},{any:function(t){var s=this,n=o.f(s),f=n.resolve,a=n.reject,e=i(function(){var r=l(s.resolve),o=[],i=0,u=1,c=!1;y(t,function(t){var n=i++,e=!1;o.push(undefined),u++,r.call(s,t).then(function(t){e||c||(c=!0,f(t))},function(t){e||c||(e=!0,o[n]=t,--u||a(new(p(\"AggregateError\"))(o,d)))})}),--u||a(new(p(\"AggregateError\"))(o,d))});return e.error&&a(e.value),n.promise}})},function(t,n,e){\"use strict\";t.exports=e(135)},function(t,n,e){\"use strict\";e(136);var r=e(33);t.exports=r(\"String\",\"replace\")},function(t,n,e){\"use strict\";var r=e(137),j=e(3),p=e(18),w=e(28),P=e(29),i=e(25),E=e(139),A=e(140),T=Math.max,L=Math.min,y=Math.floor,d=/\\$([$&'`]|\\d\\d?|<[^>]*>)/g,v=/\\$([$&'`]|\\d\\d?)/g,M=function M(t){return t===undefined?t:String(t)};r(\"replace\",2,function(o,x,S){return[function(t,n){var e=i(this),r=t==undefined?undefined:t[o];return r!==undefined?r.call(t,e,n):x.call(String(e),t,n)},function(t,n){var e=S(x,t,this,n);if(e.done)return e.value;var r=j(t),o=String(this),i=\"function\"==typeof n;i||(n=String(n));var u=r.global;if(u){var c=r.unicode;r.lastIndex=0}for(var s=[];;){var f=A(r,o);if(null===f)break;if(s.push(f),!u)break;\"\"===String(f[0])&&(r.lastIndex=E(o,w(r.lastIndex),c))}for(var a=\"\",l=0,p=0;p<s.length;p++){f=s[p];for(var y=String(f[0]),d=T(L(P(f.index),o.length),0),v=[],h=1;h<f.length;h++)v.push(M(f[h]));var g=f.groups;if(i){var b=[y].concat(v,d,o);g!==undefined&&b.push(g);var m=String(n.apply(undefined,b))}else m=O(y,o,d,v,g,n);l<=d&&(a+=o.slice(l,d)+m,l=d+y.length)}return a+o.slice(l)}];function O(i,u,c,s,f,t){var a=c+i.length,l=s.length,n=v;return f!==undefined&&(f=p(f),n=d),x.call(t,n,function(t,n){var e;switch(n.charAt(0)){case\"$\":return\"$\";case\"&\":return i;case\"`\":return u.slice(0,c);case\"'\":return u.slice(a);case\"<\":e=f[n.slice(1,-1)];break;default:var r=+n;if(0==r)return t;if(l<r){var o=y(r/10);return 0===o?t:o<=l?s[o-1]===undefined?n.charAt(1):s[o-1]+n.charAt(1):t}e=s[r-1]}return e===undefined?\"\":e})}})},function(t,n,e){\"use strict\";var l=e(6),p=e(11),y=e(4),d=e(1),v=e(69),h=d(\"species\"),g=!y(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:\"7\"},t},\"7\"!==\"\".replace(t,\"$<a>\")}),b=!y(function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e=\"ab\".split(t);return 2!==e.length||\"a\"!==e[0]||\"b\"!==e[1]});t.exports=function(e,t,n,r){var o=d(e),i=!y(function(){var t={};return t[o]=function(){return 7},7!=\"\"[e](t)}),u=i&&!y(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},\"split\"===e&&(n.constructor={},n.constructor[h]=function(){return n}),n[o](\"\"),!t});if(!i||!u||\"replace\"===e&&!g||\"split\"===e&&!b){var c=/./[o],s=n(o,\"\"[e],function(t,n,e,r,o){return n.exec===v?i&&!o?{done:!0,value:c.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),f=s[0],a=s[1];p(String.prototype,e,f),p(RegExp.prototype,o,2==t?function(t,n){return a.call(t,this,n)}:function(t){return a.call(t,this)}),r&&l(RegExp.prototype[o],\"sham\",!0)}}},function(t,n,e){\"use strict\";var r=e(3);t.exports=function(){var t=r(this),n=\"\";return t.global&&(n+=\"g\"),t.ignoreCase&&(n+=\"i\"),t.multiline&&(n+=\"m\"),t.dotAll&&(n+=\"s\"),t.unicode&&(n+=\"u\"),t.sticky&&(n+=\"y\"),n}},function(t,n,e){\"use strict\";var r=e(60).charAt;t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){\"use strict\";function o(t){return(o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}var i=e(12),u=e(69);t.exports=function(t,n){var e=t.exec;if(\"function\"==typeof e){var r=e.call(t,n);if(\"object\"!==o(r))throw TypeError(\"RegExp exec method returned something other than an Object or null\");return r}if(\"RegExp\"!==i(t))throw TypeError(\"RegExp#exec called on incompatible receiver\");return u.call(t,n)}}]);/**\n * Created by richie on 15/7/8.\n */\n/**\n * 初始化BI对象\n */\nvar _global;\nif (typeof window !== \"undefined\") {\n _global = window;\n} else if (typeof global !== \"undefined\") {\n _global = global;\n} else if (typeof self !== \"undefined\") {\n _global = self;\n} else {\n _global = this;\n}\nif (_global.BI == null) {\n _global.BI = {prepares: []};\n}\nif(_global.BI.prepares == null) {\n _global.BI.prepares = [];\n}// Production steps of ECMA-262, Edition 5, 15.4.4.14\n// Reference: http://es5.github.io/#x15.4.4.14\nif (!Array.prototype.indexOf) {\n Array.prototype.indexOf = function (searchElement, fromIndex) {\n\n var k;\n\n // 1. Let o be the result of calling ToObject passing\n // the this value as the argument.\n if (this == null) {\n throw new TypeError(\"\\\"this\\\" is null or not defined\");\n }\n\n var o = Object(this);\n\n // 2. Let lenValue be the result of calling the Get\n // internal method of o with the argument \"length\".\n // 3. Let len be ToUint32(lenValue).\n var len = o.length >>> 0;\n\n // 4. If len is 0, return -1.\n if (len === 0) {\n return -1;\n }\n\n // 5. If argument fromIndex was passed let n be\n // ToInteger(fromIndex); else let n be 0.\n var n = fromIndex | 0;\n\n // 6. If n >= len, return -1.\n if (n >= len) {\n return -1;\n }\n\n // 7. If n >= 0, then Let k be n.\n // 8. Else, n<0, Let k be len - abs(n).\n // If k is less than 0, then let k be 0.\n k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);\n\n // 9. Repeat, while k < len\n while (k < len) {\n // a. Let Pk be ToString(k).\n // This is implicit for LHS operands of the in operator\n // b. Let kPresent be the result of calling the\n // HasProperty internal method of o with argument Pk.\n // This step can be combined with c\n // c. If kPresent is true, then\n // i. Let elementK be the result of calling the Get\n // internal method of o with the argument ToString(k).\n // ii. Let same be the result of applying the\n // Strict Equality Comparison Algorithm to\n // searchElement and elementK.\n // iii. If same is true, return k.\n if (k in o && o[k] === searchElement) {\n return k;\n }\n k++;\n }\n return -1;\n };\n}\nif (!Array.prototype.lastIndexOf) {\n Array.prototype.lastIndexOf = function (searchElement /* , fromIndex*/) {\n \"use strict\";\n\n if (this === void 0 || this === null) {\n throw new TypeError();\n }\n\n var n, k,\n t = Object(this),\n len = t.length >>> 0;\n if (len === 0) {\n return -1;\n }\n\n n = len - 1;\n if (arguments.length > 1) {\n n = Number(arguments[1]);\n if (n != n) {\n n = 0;\n } else if (n != 0 && n != (1 / 0) && n != -(1 / 0)) {\n n = (n > 0 || -1) * Math.floor(Math.abs(n));\n }\n }\n\n for (k = n >= 0\n ? Math.min(n, len - 1)\n : len - Math.abs(n); k >= 0; k--) {\n if (k in t && t[k] === searchElement) {\n return k;\n }\n }\n return -1;\n };\n}\n/**\n * 特殊情况\n * Created by wang on 15/6/23.\n */\n// 解决console未定义问题 guy\n_global.console = _global.console || (function () {\n var c = {};\n c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile\n = c.clear = c.exception = c.trace = c.assert = function () {\n };\n return c;\n})();\n/*\n * 前端缓存\n */\n_global.localStorage || (_global.localStorage = {\n items: {},\n setItem: function (k, v) {\n BI.Cache.addCookie(k, v);\n },\n getItem: function (k) {\n return BI.Cache.getCookie(k);\n },\n removeItem: function (k) {\n BI.Cache.deleteCookie(k);\n },\n key: function () {\n\n },\n clear: function () {\n this.items = {};\n }\n});\nif (!Object.keys) {\n Object.keys = function(o) {\n if (o !== Object(o)) {\n throw new TypeError('Object.keys called on a non-object');\n }\n // fix的问题\n var falsy;\n var skipArray = {\n __ob__: falsy,\n $accessors: falsy,\n $vbthis: falsy,\n $vbsetter: falsy\n };\n var k = [], p;\n for (p in o) {\n if (!(p in skipArray)) {\n if (Object.prototype.hasOwnProperty.call(o, p)) {\n k.push(p);\n }\n }\n }\n return k;\n };\n}\n\nif (!Array.isArray) {\n Array.isArray = function(arg) {\n return Object.prototype.toString.call(arg) === '[object Array]';\n };\n}\n\n/* 统一采用core-js的polyfill,此块暂去\n// https://stackoverflow.com/questions/10919915/ie8-getprototypeof-method\nif (typeof Object.getPrototypeOf !== \"function\") {\n Object.getPrototypeOf = \"\".__proto__ === String.prototype\n ? function (object) {\n return object.__proto__;\n }\n : function (object) {\n // May break if the constructor has been tampered with\n return object.constructor.prototype;\n };\n}\n */\n\nif(!Date.now) {\n Date.now = function () {\n return new Date().valueOf();\n };\n}if (typeof Set !== \"undefined\" && Set.toString().match(/native code/)) {\n\n} else {\n Set = function () {\n this.set = {};\n };\n Set.prototype.has = function (key) {\n return this.set[key] !== undefined;\n };\n Set.prototype.add = function (key) {\n this.set[key] = 1;\n };\n Set.prototype.clear = function () {\n this.set = {};\n };\n}// 修复ie9下sort方法的bug\n// IE的sort 需要显示声明返回-1, 0, 1三种比较结果才可正常工作,而Chrome, Firefox中可以直接返回true, false等\n// BI-36544 sort提供的参数就可以自定义返回值,不需要特别控制。这边使用冒泡相较于快排可能慢了点。\n// 这边先将webkit的限制去掉\n!function (window) {\n var ua = window.navigator.userAgent.toLowerCase(),\n reg = /msie/;\n if (reg.test(ua)) {\n var _sort = Array.prototype.sort;\n Array.prototype.sort = function (fn) {\n if (!!fn && typeof fn === \"function\") {\n if (this.length < 2) {\n return this;\n }\n var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0;\n for (; i < l; i++) {\n for (j = i + 1; j < l; j++) {\n t = fn.call(this, this[i], this[j]);\n r = (typeof t === \"number\" ? t :\n t ? 1 : 0) > 0;\n if (r === true) {\n tmp = this[i];\n this[i] = this[j];\n this[j] = tmp;\n }\n }\n }\n return this;\n }\n return _sort.call(this);\n\n };\n }\n}(window);/**\n * Created by richie on 15/7/8.\n */\n/**\n * 初始化BI对象\n */\nvar _global;\nif (typeof window !== \"undefined\") {\n _global = window;\n} else if (typeof global !== \"undefined\") {\n _global = global;\n} else if (typeof self !== \"undefined\") {\n _global = self;\n} else {\n _global = this;\n}\nif (_global.BI == null) {\n _global.BI = {prepares: []};\n}\nif(_global.BI.prepares == null) {\n _global.BI.prepares = [];\n}/**\n * @license\n * Lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash core plus=\"debounce,throttle,get,set,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim,merge,groupBy,uniqBy\"`\n * Copyright JS Foundation and other contributors <https://js.foundation/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.5';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var FUNC_ERROR_TEXT = 'Expected a function';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match HTML entities and HTML characters. */\n var reUnescapedHtml = /[&<>\"']/g,\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n /** Used to match leading and trailing whitespace. */\n var reTrim = /^\\s+|\\s+$/g;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n /** Used to compose unicode capture groups. */\n var rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n return key == '__proto__'\n ? undefined\n : object[key];\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = root['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = root.isFinite,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n\n return result;\n }\n\n if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n\n return result;\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n if (isObject(srcValue)) {\n stack || (stack = new Stack);\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, baseIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, baseIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n }\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(baseIteratee(predicate, 3)));\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, baseIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, baseIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, baseIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, baseIteratee);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(baseIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = baseIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\n function trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrim, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\n function constant(value) {\n return function() {\n return value;\n };\n }\n\n /**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\n function identity(value) {\n return value;\n }\n\n /**\n * Creates a function that invokes `func` with the arguments of the created\n * function. If `func` is a property name, the created function returns the\n * property value for a given element. If `func` is an array or object, the\n * created function returns `true` for elements that contain the equivalent\n * source properties, otherwise it returns `false`.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Util\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @returns {Function} Returns the callback.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));\n * // => [{ 'user': 'barney', 'age': 36, 'active': true }]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, _.iteratee(['user', 'fred']));\n * // => [{ 'user': 'fred', 'age': 40 }]\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, _.iteratee('user'));\n * // => ['barney', 'fred']\n *\n * // Create custom iteratee shorthands.\n * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {\n * return !_.isRegExp(func) ? iteratee(func) : function(string) {\n * return func.test(string);\n * };\n * });\n *\n * _.filter(['abc', 'def'], /ef/);\n * // => ['def']\n */\n function iteratee(func) {\n return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between a given\n * object and `source`, returning `true` if the given object has equivalent\n * property values, else `false`.\n *\n * **Note:** The created function is equivalent to `_.isMatch` with `source`\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));\n * // => [{ 'a': 4, 'b': 5, 'c': 6 }]\n */\n function matches(source) {\n return baseMatches(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Adds all own enumerable string keyed function properties of a source\n * object to the destination object. If `object` is a function, then methods\n * are added to its prototype as well.\n *\n * **Note:** Use `_.runInContext` to create a pristine `lodash` function to\n * avoid conflicts caused by modifying the original.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Function|Object} [object=lodash] The destination object.\n * @param {Object} source The object of functions to add.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.chain=true] Specify whether mixins are chainable.\n * @returns {Function|Object} Returns `object`.\n * @example\n *\n * function vowels(string) {\n * return _.filter(string, function(v) {\n * return /[aeiou]/i.test(v);\n * });\n * }\n *\n * _.mixin({ 'vowels': vowels });\n * _.vowels('fred');\n * // => ['e']\n *\n * _('fred').vowels().value();\n * // => ['e']\n *\n * _.mixin({ 'vowels': vowels }, { 'chain': false });\n * _('fred').vowels();\n * // => ['e']\n */\n function mixin(object, source, options) {\n var props = keys(source),\n methodNames = baseFunctions(source, props);\n\n if (options == null &&\n !(isObject(source) && (methodNames.length || !props.length))) {\n options = source;\n source = object;\n object = this;\n methodNames = baseFunctions(source, keys(source));\n }\n var chain = !(isObject(options) && 'chain' in options) || !!options.chain,\n isFunc = isFunction(object);\n\n arrayEach(methodNames, function(methodName) {\n var func = source[methodName];\n object[methodName] = func;\n if (isFunc) {\n object.prototype[methodName] = function() {\n var chainAll = this.__chain__;\n if (chain || chainAll) {\n var result = object(this.__wrapped__),\n actions = result.__actions__ = copyArray(this.__actions__);\n\n actions.push({ 'func': func, 'args': arguments, 'thisArg': object });\n result.__chain__ = chainAll;\n return result;\n }\n return func.apply(object, arrayPush([this.value()], arguments));\n };\n }\n });\n\n return object;\n }\n\n /**\n * Reverts the `_` variable to its previous value and returns a reference to\n * the `lodash` function.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @returns {Function} Returns the `lodash` function.\n * @example\n *\n * var lodash = _.noConflict();\n */\n function noConflict() {\n if (root._ === this) {\n root._ = oldDash;\n }\n return this;\n }\n\n /**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\n function noop() {\n // No operation performed.\n }\n\n /**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\n function property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n }\n\n /**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\n var range = createRange();\n\n /**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n function stubArray() {\n return [];\n }\n\n /**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\n function stubFalse() {\n return false;\n }\n\n /**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\n function uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\n function max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n }\n\n /**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\n function min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n }\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return wrapped values in chain sequences.\n lodash.assignIn = assignIn;\n lodash.before = before;\n lodash.bind = bind;\n lodash.chain = chain;\n lodash.compact = compact;\n lodash.concat = concat;\n lodash.countBy = countBy;\n lodash.create = create;\n lodash.debounce = debounce;\n lodash.defaults = defaults;\n lodash.defaultsDeep = defaultsDeep;\n lodash.defer = defer;\n lodash.delay = delay;\n lodash.difference = difference;\n lodash.drop = drop;\n lodash.filter = filter;\n lodash.flatten = flatten;\n lodash.flattenDeep = flattenDeep;\n lodash.groupBy = groupBy;\n lodash.initial = initial;\n lodash.intersection = intersection;\n lodash.invert = invert;\n lodash.invertBy = invertBy;\n lodash.iteratee = iteratee;\n lodash.keys = keys;\n lodash.map = map;\n lodash.matches = matches;\n lodash.merge = merge;\n lodash.mixin = mixin;\n lodash.negate = negate;\n lodash.omit = omit;\n lodash.omitBy = omitBy;\n lodash.once = once;\n lodash.pick = pick;\n lodash.range = range;\n lodash.reject = reject;\n lodash.rest = rest;\n lodash.set = set;\n lodash.slice = slice;\n lodash.sortBy = sortBy;\n lodash.take = take;\n lodash.takeRight = takeRight;\n lodash.tap = tap;\n lodash.throttle = throttle;\n lodash.thru = thru;\n lodash.toArray = toArray;\n lodash.union = union;\n lodash.uniq = uniq;\n lodash.uniqBy = uniqBy;\n lodash.unzip = unzip;\n lodash.values = values;\n lodash.without = without;\n lodash.zip = zip;\n lodash.zipObject = zipObject;\n\n // Add aliases.\n lodash.extend = assignIn;\n\n // Add methods to `lodash.prototype`.\n mixin(lodash, lodash);\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return unwrapped values in chain sequences.\n lodash.clamp = clamp;\n lodash.clone = clone;\n lodash.cloneDeep = cloneDeep;\n lodash.escape = escape;\n lodash.every = every;\n lodash.find = find;\n lodash.findIndex = findIndex;\n lodash.findKey = findKey;\n lodash.findLastIndex = findLastIndex;\n lodash.findLastKey = findLastKey;\n lodash.forEach = forEach;\n lodash.get = get;\n lodash.has = has;\n lodash.head = head;\n lodash.identity = identity;\n lodash.indexOf = indexOf;\n lodash.isArguments = isArguments;\n lodash.isArray = isArray;\n lodash.isArrayLike = isArrayLike;\n lodash.isBoolean = isBoolean;\n lodash.isDate = isDate;\n lodash.isEmpty = isEmpty;\n lodash.isEqual = isEqual;\n lodash.isFinite = isFinite;\n lodash.isFunction = isFunction;\n lodash.isNaN = isNaN;\n lodash.isNull = isNull;\n lodash.isNumber = isNumber;\n lodash.isObject = isObject;\n lodash.isPlainObject = isPlainObject;\n lodash.isRegExp = isRegExp;\n lodash.isString = isString;\n lodash.isUndefined = isUndefined;\n lodash.last = last;\n lodash.max = max;\n lodash.min = min;\n lodash.noConflict = noConflict;\n lodash.noop = noop;\n lodash.random = random;\n lodash.reduce = reduce;\n lodash.result = result;\n lodash.size = size;\n lodash.some = some;\n lodash.trim = trim;\n lodash.uniqueId = uniqueId;\n\n // Add aliases.\n lodash.each = forEach;\n lodash.first = head;\n\n mixin(lodash, (function() {\n var source = {};\n baseForOwn(lodash, function(func, methodName) {\n if (!hasOwnProperty.call(lodash.prototype, methodName)) {\n source[methodName] = func;\n }\n });\n return source;\n }()), { 'chain': false });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The semantic version number.\n *\n * @static\n * @memberOf _\n * @type {string}\n */\n lodash.VERSION = VERSION;\n\n // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\n arrayEach(['drop', 'take'], function(methodName, index) {\n LazyWrapper.prototype[methodName] = function(n) {\n n = n === undefined ? 1 : nativeMax(toInteger(n), 0);\n\n var result = (this.__filtered__ && !index)\n ? new LazyWrapper(this)\n : this.clone();\n\n if (result.__filtered__) {\n result.__takeCount__ = nativeMin(n, result.__takeCount__);\n } else {\n result.__views__.push({\n 'size': nativeMin(n, MAX_ARRAY_LENGTH),\n 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')\n });\n }\n return result;\n };\n\n LazyWrapper.prototype[methodName + 'Right'] = function(n) {\n return this.reverse()[methodName](n).reverse();\n };\n });\n\n // Add `LazyWrapper` methods that accept an `iteratee` value.\n arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\n var type = index + 1,\n isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;\n\n LazyWrapper.prototype[methodName] = function(iteratee) {\n var result = this.clone();\n result.__iteratees__.push({\n 'iteratee': getIteratee(iteratee, 3),\n 'type': type\n });\n result.__filtered__ = result.__filtered__ || isFilter;\n return result;\n };\n });\n\n // Add `LazyWrapper` methods for `_.head` and `_.last`.\n arrayEach(['head', 'last'], function(methodName, index) {\n var takeName = 'take' + (index ? 'Right' : '');\n\n LazyWrapper.prototype[methodName] = function() {\n return this[takeName](1).value()[0];\n };\n });\n\n // Add `LazyWrapper` methods for `_.initial` and `_.tail`.\n arrayEach(['initial', 'tail'], function(methodName, index) {\n var dropName = 'drop' + (index ? '' : 'Right');\n\n LazyWrapper.prototype[methodName] = function() {\n return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);\n };\n });\n\n LazyWrapper.prototype.compact = function() {\n return this.filter(identity);\n };\n\n LazyWrapper.prototype.find = function(predicate) {\n return this.filter(predicate).head();\n };\n\n LazyWrapper.prototype.findLast = function(predicate) {\n return this.reverse().find(predicate);\n };\n\n LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {\n if (typeof path == 'function') {\n return new LazyWrapper(this);\n }\n return this.map(function(value) {\n return baseInvoke(value, path, args);\n });\n });\n\n LazyWrapper.prototype.reject = function(predicate) {\n return this.filter(negate(getIteratee(predicate)));\n };\n\n LazyWrapper.prototype.slice = function(start, end) {\n start = toInteger(start);\n\n var result = this;\n if (result.__filtered__ && (start > 0 || end < 0)) {\n return new LazyWrapper(result);\n }\n if (start < 0) {\n result = result.takeRight(-start);\n } else if (start) {\n result = result.drop(start);\n }\n if (end !== undefined) {\n end = toInteger(end);\n result = end < 0 ? result.dropRight(-end) : result.take(end - start);\n }\n return result;\n };\n\n LazyWrapper.prototype.takeRightWhile = function(predicate) {\n return this.reverse().takeWhile(predicate).reverse();\n };\n\n LazyWrapper.prototype.toArray = function() {\n return this.take(MAX_ARRAY_LENGTH);\n };\n\n // Add `LazyWrapper` methods to `lodash.prototype`.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),\n isTaker = /^(?:head|last)$/.test(methodName),\n lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],\n retUnwrapped = isTaker || /^find/.test(methodName);\n\n if (!lodashFunc) {\n return;\n }\n lodash.prototype[methodName] = function() {\n var value = this.__wrapped__,\n args = isTaker ? [1] : arguments,\n isLazy = value instanceof LazyWrapper,\n iteratee = args[0],\n useLazy = isLazy || isArray(value);\n\n var interceptor = function(value) {\n var result = lodashFunc.apply(lodash, arrayPush([value], args));\n return (isTaker && chainAll) ? result[0] : result;\n };\n\n if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {\n // Avoid lazy use if the iteratee has a \"length\" value other than `1`.\n isLazy = useLazy = false;\n }\n var chainAll = this.__chain__,\n isHybrid = !!this.__actions__.length,\n isUnwrapped = retUnwrapped && !chainAll,\n onlyLazy = isLazy && !isHybrid;\n\n if (!retUnwrapped && useLazy) {\n value = onlyLazy ? value : new LazyWrapper(this);\n var result = func.apply(value, args);\n result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });\n return new LodashWrapper(result, chainAll);\n }\n if (isUnwrapped && onlyLazy) {\n return func.apply(this, args);\n }\n result = this.thru(interceptor);\n return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;\n };\n });\n\n // Add `Array` methods to `lodash.prototype`.\n arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\n var func = arrayProto[methodName],\n chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\n retUnwrapped = /^(?:pop|shift)$/.test(methodName);\n\n lodash.prototype[methodName] = function() {\n var args = arguments;\n if (retUnwrapped && !this.__chain__) {\n var value = this.value();\n return func.apply(isArray(value) ? value : [], args);\n }\n return this[chainName](function(value) {\n return func.apply(isArray(value) ? value : [], args);\n });\n };\n });\n\n // Map minified method names to their real names.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var lodashFunc = lodash[methodName];\n if (lodashFunc) {\n var key = (lodashFunc.name + ''),\n names = realNames[key] || (realNames[key] = []);\n\n names.push({ 'name': methodName, 'func': lodashFunc });\n }\n });\n\n realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{\n 'name': 'wrapper',\n 'func': undefined\n }];\n\n // Add methods to `LazyWrapper`.\n LazyWrapper.prototype.clone = lazyClone;\n LazyWrapper.prototype.reverse = lazyReverse;\n LazyWrapper.prototype.value = lazyValue;\n\n // Add lazy aliases.\n lodash.prototype.first = lodash.prototype.head;\n\n if (symIterator) {\n lodash.prototype[symIterator] = wrapperToIterator;\n }\n\n /*--------------------------------------------------------------------------*/\n\n // Some AMD build optimizers, like r.js, check for condition patterns like:\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n // Expose Lodash on the global object to prevent errors when Lodash is\n // loaded by a script tag in the presence of an AMD loader.\n // See http://requirejs.org/docs/errors.html#mismatch for more details.\n // Use `_.noConflict` to remove Lodash from the global object.\n root._ = lodash;\n\n // Define as an anonymous module so, through path mapping, it can be\n // referenced as the \"underscore\" module.\n define(function() {\n return lodash;\n });\n }\n // Check for `exports` after `define` in case a build optimizer adds it.\n else if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = lodash)._ = lodash;\n // Export for CommonJS support.\n freeExports._ = lodash;\n }\n else {\n // Export to the global object.\n root._ = lodash;\n }\n}.call(this));\n/**\n * 基本函数\n * Create By GUY 2014\\11\\17\n *\n */\nvar _global;\nif (typeof window !== \"undefined\") {\n _global = window;\n} else if (typeof global !== \"undefined\") {\n _global = global;\n} else if (typeof self !== \"undefined\") {\n _global = self;\n} else {\n _global = this;\n}\nif (!_global.BI) {\n _global.BI = {};\n}\n\n!(function (undefined) {\n var traverse = function (func, context) {\n return function (value, key, obj) {\n return func.call(context, key, value, obj);\n };\n };\n var _apply = function (name) {\n return function () {\n return _[name].apply(_, arguments);\n };\n };\n var _applyFunc = function (name) {\n return function () {\n var args = Array.prototype.slice.call(arguments, 0);\n args[1] = _.isFunction(args[1]) ? traverse(args[1], args[2]) : args[1];\n return _[name].apply(_, args);\n };\n };\n\n // Utility\n _.extend(BI, {\n assert: function (v, is) {\n if (this.isFunction(is)) {\n if (!is(v)) {\n throw new Error(v + \" error\");\n } else {\n return true;\n }\n }\n if (!this.isArray(is)) {\n is = [is];\n }\n if (!this.deepContains(is, v)) {\n throw new Error(v + \" error\");\n }\n },\n\n warn: function (message) {\n console.warn(message);\n },\n\n UUID: function () {\n var f = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\n var str = \"\";\n for (var i = 0; i < 16; i++) {\n var r = parseInt(f.length * Math.random(), 10);\n str += f[r];\n }\n return str;\n },\n\n isWidget: function (widget) {\n return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View);\n },\n\n createWidgets: function (items, options, context) {\n if (!BI.isArray(items)) {\n throw new Error(\"cannot create Widgets\");\n }\n if (BI.isWidget(options)) {\n context = options;\n options = {};\n } else {\n options || (options = {});\n }\n return BI.map(BI.flatten(items), function (i, item) {\n return BI.createWidget(item, BI.deepClone(options));\n });\n },\n\n createItems: function (data, innerAttr, outerAttr) {\n innerAttr = BI.isArray(innerAttr) ? innerAttr : BI.makeArray(BI.flatten(data).length, innerAttr || {});\n outerAttr = BI.isArray(outerAttr) ? outerAttr : BI.makeArray(BI.flatten(data).length, outerAttr || {});\n return BI.map(data, function (i, item) {\n if (BI.isArray(item)) {\n return BI.createItems(item, innerAttr, outerAttr);\n }\n if (item instanceof BI.Widget) {\n return BI.extend({}, innerAttr.shift(), outerAttr.shift(), {\n type: null,\n el: item\n });\n }\n if (innerAttr[0] instanceof BI.Widget) {\n outerAttr.shift();\n return BI.extend({}, item, {\n el: innerAttr.shift()\n });\n }\n if (item.el instanceof BI.Widget || (BI.View && item.el instanceof BI.View)) {\n innerAttr.shift();\n return BI.extend({}, outerAttr.shift(), {type: null}, item);\n }\n if (item.el) {\n return BI.extend({}, outerAttr.shift(), item, {\n el: BI.extend({}, innerAttr.shift(), item.el)\n });\n }\n return BI.extend({}, outerAttr.shift(), {\n el: BI.extend({}, innerAttr.shift(), item)\n });\n });\n },\n\n // 用容器包装items\n packageItems: function (items, layouts) {\n for (var i = layouts.length - 1; i >= 0; i--) {\n items = BI.map(items, function (k, it) {\n return BI.extend({}, layouts[i], {\n items: [\n BI.extend({}, layouts[i].el, {\n el: it\n })\n ]\n });\n });\n }\n return items;\n },\n\n formatEL: function (obj) {\n if (obj && !obj.type && obj.el) {\n return obj;\n }\n return {\n el: obj\n };\n },\n\n // 剥开EL\n stripEL: function (obj) {\n return obj.type && obj || obj.el || obj;\n },\n\n trans2Element: function (widgets) {\n return BI.map(widgets, function (i, wi) {\n return wi.element;\n });\n }\n });\n\n // 集合相关方法\n _.each([\"where\", \"findWhere\", \"invoke\", \"pluck\", \"shuffle\", \"sample\", \"toArray\", \"size\"], function (name) {\n BI[name] = _apply(name);\n });\n _.each([\"get\", \"set\", \"each\", \"map\", \"reduce\", \"reduceRight\", \"find\", \"filter\", \"reject\", \"every\", \"all\", \"some\", \"any\", \"max\", \"min\",\n \"sortBy\", \"groupBy\", \"indexBy\", \"countBy\", \"partition\", \"clamp\"], function (name) {\n if (name === \"any\") {\n BI[name] = _applyFunc(\"some\");\n } else {\n BI[name] = _applyFunc(name);\n }\n });\n _.extend(BI, {\n // 数数\n count: function (from, to, predicate) {\n var t;\n if (predicate) {\n for (t = from; t < to; t++) {\n predicate(t);\n }\n }\n return to - from;\n },\n\n // 倒数\n inverse: function (from, to, predicate) {\n return BI.count(to, from, predicate);\n },\n\n firstKey: function (obj) {\n var res = undefined;\n BI.any(obj, function (key, value) {\n res = key;\n return true;\n });\n return res;\n },\n\n lastKey: function (obj) {\n var res = undefined;\n BI.each(obj, function (key, value) {\n res = key;\n return true;\n });\n return res;\n },\n\n firstObject: function (obj) {\n var res = undefined;\n BI.any(obj, function (key, value) {\n res = value;\n return true;\n });\n return res;\n },\n\n lastObject: function (obj) {\n var res = undefined;\n BI.each(obj, function (key, value) {\n res = value;\n return true;\n });\n return res;\n },\n\n concat: function (obj1, obj2) {\n if (BI.isKey(obj1)) {\n return obj1 + \"\" + obj2;\n }\n if (BI.isArray(obj1)) {\n return obj1.concat(obj2);\n }\n if (BI.isObject(obj1)) {\n return _.extend({}, obj1, obj2);\n }\n },\n\n backEach: function (obj, predicate, context) {\n predicate = BI.iteratee(predicate, context);\n for (var index = obj.length - 1; index >= 0; index--) {\n predicate(index, obj[index], obj);\n }\n return false;\n },\n\n backAny: function (obj, predicate, context) {\n predicate = BI.iteratee(predicate, context);\n for (var index = obj.length - 1; index >= 0; index--) {\n if (predicate(index, obj[index], obj)) {\n return true;\n }\n }\n return false;\n },\n\n backEvery: function (obj, predicate, context) {\n predicate = BI.iteratee(predicate, context);\n for (var index = obj.length - 1; index >= 0; index--) {\n if (!predicate(index, obj[index], obj)) {\n return false;\n }\n }\n return true;\n },\n\n backFindKey: function (obj, predicate, context) {\n predicate = BI.iteratee(predicate, context);\n var keys = _.keys(obj), key;\n for (var i = keys.length - 1; i >= 0; i--) {\n key = keys[i];\n if (predicate(obj[key], key, obj)) {\n return key;\n }\n }\n },\n\n backFind: function (obj, predicate, context) {\n var key;\n if (BI.isArray(obj)) {\n key = BI.findLastIndex(obj, predicate, context);\n } else {\n key = BI.backFindKey(obj, predicate, context);\n }\n if (key !== void 0 && key !== -1) {\n return obj[key];\n }\n },\n\n remove: function (obj, target, context) {\n var isFunction = BI.isFunction(target);\n target = isFunction || BI.isArray(target) ? target : [target];\n var i;\n if (BI.isArray(obj)) {\n for (i = 0; i < obj.length; i++) {\n if ((isFunction && target.apply(context, [i, obj[i]]) === true) || (!isFunction && BI.contains(target, obj[i]))) {\n obj.splice(i--, 1);\n }\n }\n } else {\n BI.each(obj, function (i, v) {\n if ((isFunction && target.apply(context, [i, obj[i]]) === true) || (!isFunction && BI.contains(target, obj[i]))) {\n delete obj[i];\n }\n });\n }\n },\n\n removeAt: function (obj, index) {\n index = BI.isArray(index) ? index : [index];\n var isArray = BI.isArray(obj), i;\n for (i = 0; i < index.length; i++) {\n if (isArray) {\n obj[index[i]] = \"$deleteIndex\";\n } else {\n delete obj[index[i]];\n }\n }\n if (isArray) {\n BI.remove(obj, \"$deleteIndex\");\n }\n },\n\n string2Array: function (str) {\n return str.split(\"&-&\");\n },\n\n array2String: function (array) {\n return array.join(\"&-&\");\n },\n\n abc2Int: function (str) {\n var idx = 0, start = \"A\", str = str.toUpperCase();\n for (var i = 0, len = str.length; i < len; ++i) {\n idx = str.charAt(i).charCodeAt(0) - start.charCodeAt(0) + 26 * idx + 1;\n if (idx > (2147483646 - str.charAt(i).charCodeAt(0) + start.charCodeAt(0)) / 26) {\n return 0;\n }\n }\n return idx;\n },\n\n int2Abc: function (num) {\n var DIGITS = [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\", \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\", \"W\", \"X\", \"Y\", \"Z\"];\n var idx = num, str = \"\";\n if (num === 0) {\n return \"\";\n }\n while (idx !== 0) {\n var t = idx % 26;\n if (t === 0) {\n t = 26;\n }\n str = DIGITS[t - 1] + str;\n idx = (idx - t) / 26;\n }\n return str;\n }\n });\n\n // 数组相关的方法\n _.each([\"first\", \"initial\", \"last\", \"rest\", \"compact\", \"flatten\", \"without\", \"union\", \"intersection\",\n \"difference\", \"zip\", \"unzip\", \"object\", \"indexOf\", \"lastIndexOf\", \"sortedIndex\", \"range\", \"take\", \"takeRight\", \"uniqBy\"], function (name) {\n BI[name] = _apply(name);\n });\n _.each([\"findIndex\", \"findLastIndex\"], function (name) {\n BI[name] = _applyFunc(name);\n });\n _.extend(BI, {\n // 构建一个长度为length的数组\n makeArray: function (length, value) {\n var res = [];\n for (var i = 0; i < length; i++) {\n if (BI.isNull(value)) {\n res.push(i);\n } else {\n res.push(BI.deepClone(value));\n }\n }\n return res;\n },\n\n makeObject: function (array, value) {\n var map = {};\n for (var i = 0; i < array.length; i++) {\n if (BI.isNull(value)) {\n map[array[i]] = array[i];\n } else {\n map[array[i]] = BI.deepClone(value);\n }\n }\n return map;\n },\n\n makeArrayByArray: function (array, value) {\n var res = [];\n if (!array) {\n return res;\n }\n for (var i = 0, len = array.length; i < len; i++) {\n if (BI.isArray(array[i])) {\n res.push(arguments.callee(array[i], value));\n } else {\n res.push(BI.deepClone(value));\n }\n }\n return res;\n },\n\n uniq: function (array, isSorted, iteratee, context) {\n if (array == null) {\n return [];\n }\n if (!_.isBoolean(isSorted)) {\n context = iteratee;\n iteratee = isSorted;\n isSorted = false;\n }\n iteratee && (iteratee = traverse(iteratee, context));\n return _.uniq.call(_, array, isSorted, iteratee, context);\n }\n });\n\n // 对象相关方法\n _.each([\"keys\", \"allKeys\", \"values\", \"pairs\", \"invert\", \"create\", \"functions\", \"extend\", \"extendOwn\",\n \"defaults\", \"clone\", \"property\", \"propertyOf\", \"matcher\", \"isEqual\", \"isMatch\", \"isEmpty\",\n \"isElement\", \"isNumber\", \"isString\", \"isArray\", \"isObject\", \"isPlainObject\", \"isArguments\", \"isFunction\", \"isFinite\",\n \"isBoolean\", \"isDate\", \"isRegExp\", \"isError\", \"isNaN\", \"isUndefined\", \"zipObject\", \"cloneDeep\"], function (name) {\n BI[name] = _apply(name);\n });\n _.each([\"mapObject\", \"findKey\", \"pick\", \"omit\", \"tap\"], function (name) {\n BI[name] = _applyFunc(name);\n });\n _.extend(BI, {\n\n inherit: function (sb, sp, overrides) {\n if (typeof sp === \"object\") {\n overrides = sp;\n sp = sb;\n sb = function () {\n return sp.apply(this, arguments);\n };\n }\n var F = function () {\n }, spp = sp.prototype;\n F.prototype = spp;\n sb.prototype = new F();\n sb.superclass = spp;\n _.extend(sb.prototype, overrides, {\n superclass: sp\n });\n return sb;\n },\n\n init: function () {\n // 先把准备环境准备好\n while (BI.prepares && BI.prepares.length > 0) {\n BI.prepares.shift()();\n }\n BI.initialized = true;\n },\n\n has: function (obj, keys) {\n if (BI.isArray(keys)) {\n if (keys.length === 0) {\n return false;\n }\n return BI.every(keys, function (i, key) {\n return _.has(obj, key);\n });\n }\n return _.has.apply(_, arguments);\n },\n\n freeze: function (value) {\n // 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError\n // 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回\n if (Object.freeze && BI.isObject(value)) {\n return Object.freeze(value);\n }\n return value;\n },\n\n // 数字和字符串可以作为key\n isKey: function (key) {\n return BI.isNumber(key) || (BI.isString(key) && key.length > 0);\n },\n\n // 忽略大小写的等于\n isCapitalEqual: function (a, b) {\n a = BI.isNull(a) ? a : (\"\" + a).toLowerCase();\n b = BI.isNull(b) ? b : (\"\" + b).toLowerCase();\n return BI.isEqual(a, b);\n },\n\n isWidthOrHeight: function (w) {\n if (typeof w === \"number\") {\n return w >= 0;\n } else if (typeof w === \"string\") {\n return /^\\d{1,3}%$/.exec(w) || w == \"auto\" || /^\\d+px$/.exec(w);\n }\n },\n\n isNotNull: function (obj) {\n return !BI.isNull(obj);\n },\n\n isNull: function (obj) {\n return typeof obj === \"undefined\" || obj === null;\n },\n\n isEmptyArray: function (arr) {\n return BI.isArray(arr) && BI.isEmpty(arr);\n },\n\n isNotEmptyArray: function (arr) {\n return BI.isArray(arr) && !BI.isEmpty(arr);\n },\n\n isEmptyObject: function (obj) {\n return BI.isEqual(obj, {});\n },\n\n isNotEmptyObject: function (obj) {\n return BI.isPlainObject(obj) && !BI.isEmptyObject(obj);\n },\n\n isEmptyString: function (obj) {\n return BI.isString(obj) && obj.length === 0;\n },\n\n isNotEmptyString: function (obj) {\n return BI.isString(obj) && !BI.isEmptyString(obj);\n },\n\n isWindow: function (obj) {\n return obj != null && obj == obj.window;\n }\n });\n\n // deep方法\n _.extend(BI, {\n deepClone: _.cloneDeep,\n deepExtend: _.merge,\n\n isDeepMatch: function (object, attrs) {\n var keys = BI.keys(attrs), length = keys.length;\n if (object == null) {\n return !length;\n }\n var obj = Object(object);\n for (var i = 0; i < length; i++) {\n var key = keys[i];\n if (!BI.isEqual(attrs[key], obj[key]) || !(key in obj)) {\n return false;\n }\n }\n return true;\n },\n\n contains: function (obj, target, fromIndex) {\n if (!_.isArrayLike(obj)) obj = _.values(obj);\n return _.indexOf(obj, target, typeof fromIndex === \"number\" && fromIndex) >= 0;\n },\n\n deepContains: function (obj, copy) {\n if (BI.isObject(copy)) {\n return BI.any(obj, function (i, v) {\n if (BI.isEqual(v, copy)) {\n return true;\n }\n });\n }\n return BI.contains(obj, copy);\n },\n\n deepIndexOf: function (obj, target) {\n for (var i = 0; i < obj.length; i++) {\n if (BI.isEqual(target, obj[i])) {\n return i;\n }\n }\n return -1;\n },\n\n deepRemove: function (obj, target) {\n var done = false;\n var i;\n if (BI.isArray(obj)) {\n for (i = 0; i < obj.length; i++) {\n if (BI.isEqual(target, obj[i])) {\n obj.splice(i--, 1);\n done = true;\n }\n }\n } else {\n BI.each(obj, function (i, v) {\n if (BI.isEqual(target, obj[i])) {\n delete obj[i];\n done = true;\n }\n });\n }\n return done;\n },\n\n deepWithout: function (obj, target) {\n if (BI.isArray(obj)) {\n var result = [];\n for (var i = 0; i < obj.length; i++) {\n if (!BI.isEqual(target, obj[i])) {\n result.push(obj[i]);\n }\n }\n return result;\n }\n var result = {};\n BI.each(obj, function (i, v) {\n if (!BI.isEqual(target, obj[i])) {\n result[i] = v;\n }\n });\n return result;\n\n },\n\n deepUnique: function (array) {\n var result = [];\n BI.each(array, function (i, item) {\n if (!BI.deepContains(result, item)) {\n result.push(item);\n }\n });\n return result;\n },\n\n // 比较两个对象得出不一样的key值\n deepDiff: function (object, other) {\n object || (object = {});\n other || (other = {});\n var result = [];\n var used = [];\n for (var b in object) {\n if (this.has(object, b)) {\n if (!this.isEqual(object[b], other[b])) {\n result.push(b);\n }\n used.push(b);\n }\n }\n for (var b in other) {\n if (this.has(other, b) && !BI.contains(used, b)) {\n result.push(b);\n }\n }\n return result;\n }\n });\n\n // 通用方法\n _.each([\"uniqueId\", \"result\", \"chain\", \"iteratee\", \"escape\", \"unescape\"], function (name) {\n BI[name] = function () {\n return _[name].apply(_, arguments);\n };\n });\n\n // 事件相关方法\n _.each([\"bind\", \"once\", \"partial\", \"debounce\", \"throttle\", \"delay\", \"defer\", \"wrap\"], function (name) {\n BI[name] = function () {\n return _[name].apply(_, arguments);\n };\n });\n\n _.extend(BI, {\n nextTick: (function () {\n var callbacks = [];\n var pending = false;\n var timerFunc = void 0;\n\n function nextTickHandler() {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n }\n\n if (typeof Promise !== \"undefined\") {\n var p = Promise.resolve();\n timerFunc = function timerFunc() {\n p.then(nextTickHandler);\n };\n } else if (!BI.isIE() && typeof MutationObserver !== \"undefined\") {\n var counter = 1;\n var observer = new MutationObserver(nextTickHandler);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function timerFunc() {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n } else if (typeof setImmediate !== \"undefined\") {\n timerFunc = function timerFunc() {\n setImmediate(nextTickHandler);\n };\n } else {\n // Fallback to setTimeout.\n timerFunc = function timerFunc() {\n setTimeout(nextTickHandler, 0);\n };\n }\n\n return function queueNextTick(cb) {\n var _resolve = void 0;\n var args = [].slice.call(arguments, 1);\n callbacks.push(function () {\n if (cb) {\n try {\n cb.apply(null, args);\n } catch (e) {\n console.error(e);\n }\n } else if (_resolve) {\n _resolve.apply(null, args);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve, reject) {\n _resolve = resolve;\n });\n }\n };\n })()\n });\n\n // 数字相关方法\n _.each([\"random\"], function (name) {\n BI[name] = _apply(name);\n });\n _.extend(BI, {\n getTime: function () {\n if (_global.performance && _global.performance.now) {\n return _global.performance.now();\n }\n if (_global.performance && _global.performance.webkitNow) {\n return _global.performance.webkitNow();\n }\n if (Date.now) {\n return Date.now();\n }\n return BI.getDate().getTime();\n\n\n },\n\n parseInt: function (number) {\n var radix = 10;\n if (/^0x/g.test(number)) {\n radix = 16;\n }\n try {\n return parseInt(number, radix);\n } catch (e) {\n throw new Error(number + \"parse int error\");\n return NaN;\n }\n },\n\n parseSafeInt: function (value) {\n var MAX_SAFE_INTEGER = 9007199254740991;\n return value\n ? this.clamp(this.parseInt(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n },\n\n parseFloat: function (number) {\n try {\n return parseFloat(number);\n } catch (e) {\n throw new Error(number + \"parse float error\");\n return NaN;\n }\n },\n\n isNaturalNumber: function (number) {\n if (/^\\d+$/.test(number)) {\n return true;\n }\n return false;\n },\n\n isPositiveInteger: function (number) {\n if (/^\\+?[1-9][0-9]*$/.test(number)) {\n return true;\n }\n return false;\n },\n\n isNegativeInteger: function (number) {\n if (/^\\-[1-9][0-9]*$/.test(number)) {\n return true;\n }\n return false;\n },\n\n isInteger: function (number) {\n if (/^\\-?\\d+$/.test(number)) {\n return true;\n }\n return false;\n },\n\n isNumeric: function (number) {\n return !isNaN(parseFloat(number)) && isFinite(number);\n },\n\n isFloat: function (number) {\n if (/^([+-]?)\\\\d*\\\\.\\\\d+$/.test(number)) {\n return true;\n }\n return false;\n },\n\n isOdd: function (number) {\n if (!BI.isInteger(number)) {\n return false;\n }\n return (number & 1) === 1;\n },\n\n isEven: function (number) {\n if (!BI.isInteger(number)) {\n return false;\n }\n return (number & 1) === 0;\n },\n\n sum: function (array, iteratee, context) {\n var sum = 0;\n BI.each(array, function (i, item) {\n if (iteratee) {\n sum += Number(iteratee.apply(context, [i, item]));\n } else {\n sum += Number(item);\n }\n });\n return sum;\n },\n\n average: function (array, iteratee, context) {\n var sum = BI.sum(array, iteratee, context);\n return sum / array.length;\n }\n });\n\n // 字符串相关方法\n _.extend(BI, {\n trim: function () {\n return _.trim.apply(_, arguments);\n },\n\n toUpperCase: function (string) {\n return (string + \"\").toLocaleUpperCase();\n },\n\n toLowerCase: function (string) {\n return (string + \"\").toLocaleLowerCase();\n },\n\n isEndWithBlank: function (string) {\n return /(\\s|\\u00A0)$/.test(string);\n },\n\n isLiteral: function (exp) {\n var literalValueRE = /^\\s?(true|false|-?[\\d\\.]+|'[^']*'|\"[^\"]*\")\\s?$/;\n return literalValueRE.test(exp);\n },\n\n stripQuotes: function (str) {\n var a = str.charCodeAt(0);\n var b = str.charCodeAt(str.length - 1);\n return a === b && (a === 0x22 || a === 0x27)\n ? str.slice(1, -1)\n : str;\n },\n\n // background-color => backgroundColor\n camelize: function (str) {\n return str.replace(/-(.)/g, function (_, character) {\n return character.toUpperCase();\n });\n },\n\n // backgroundColor => background-color\n hyphenate: function (str) {\n return str.replace(/([A-Z])/g, \"-$1\").toLowerCase();\n },\n\n isNotEmptyString: function (str) {\n return BI.isString(str) && !BI.isEmpty(str);\n },\n\n isEmptyString: function (str) {\n return BI.isString(str) && BI.isEmpty(str);\n },\n\n /**\n * 通用加密方法\n */\n encrypt: function (type, text, key) {\n switch (type) {\n case BI.CRYPT_TYPE.AES:\n default:\n return BI.aesEncrypt(text, key);\n }\n },\n\n /**\n * 对字符串中的'和\\做编码处理\n * @static\n * @param {String} string 要做编码处理的字符串\n * @return {String} 编码后的字符串\n */\n escape: function (string) {\n return string.replace(/('|\\\\)/g, \"\\\\$1\");\n },\n\n /**\n * 让字符串通过指定字符做补齐的函数\n *\n * var s = BI.leftPad('123', 5, '0');//s的值为:'00123'\n *\n * @static\n * @param {String} val 原始值\n * @param {Number} size 总共需要的位数\n * @param {String} ch 用于补齐的字符\n * @return {String} 补齐后的字符串\n */\n leftPad: function (val, size, ch) {\n var result = String(val);\n if (!ch) {\n ch = \" \";\n }\n while (result.length < size) {\n result = ch + result;\n }\n return result.toString();\n },\n\n /**\n * 对字符串做替换的函数\n *\n * var cls = 'my-class', text = 'Some text';\n * var res = BI.format('<div class=\"{0}>{1}</div>\"', cls, text);\n * //res的值为:'<div class=\"my-class\">Some text</div>';\n *\n * @static\n * @param {String} format 要做替换的字符串,替换字符串1,替换字符串2...\n * @return {String} 做了替换后的字符串\n */\n format: function (format) {\n var args = Array.prototype.slice.call(arguments, 1);\n return format.replace(/\\{(\\d+)\\}/g, function (m, i) {\n return args[i];\n });\n }\n });\n\n // 日期相关方法\n _.extend(BI, {\n /**\n * 是否是闰年\n * @param year\n * @returns {boolean}\n */\n isLeapYear: function (year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n },\n\n /**\n * 检测是否在有效期\n *\n * @param YY 年\n * @param MM 月\n * @param DD 日\n * @param minDate '1900-01-01'\n * @param maxDate '2099-12-31'\n * @returns {Array} 若无效返回无效状态\n */\n checkDateVoid: function (YY, MM, DD, minDate, maxDate) {\n var back = [];\n YY = YY | 0;\n MM = MM | 0;\n DD = DD | 0;\n minDate = BI.isString(minDate) ? minDate.match(/\\d+/g) : minDate;\n maxDate = BI.isString(maxDate) ? maxDate.match(/\\d+/g) : maxDate;\n if (YY < minDate[0]) {\n back = [\"y\"];\n } else if (YY > maxDate[0]) {\n back = [\"y\", 1];\n } else if (YY >= minDate[0] && YY <= maxDate[0]) {\n if (YY == minDate[0]) {\n if (MM < minDate[1]) {\n back = [\"m\"];\n } else if (MM == minDate[1]) {\n if (DD < minDate[2]) {\n back = [\"d\"];\n }\n }\n }\n if (YY == maxDate[0]) {\n if (MM > maxDate[1]) {\n back = [\"m\", 1];\n } else if (MM == maxDate[1]) {\n if (DD > maxDate[2]) {\n back = [\"d\", 1];\n }\n }\n }\n }\n return back;\n },\n\n checkDateLegal: function (str) {\n var ar = str.match(/\\d+/g);\n var YY = ar[0] | 0, MM = ar[1] | 0, DD = ar[2] | 0;\n if (ar.length <= 1) {\n return true;\n }\n if (ar.length <= 2) {\n return MM >= 1 && MM <= 12;\n }\n var MD = BI.Date._MD.slice(0);\n MD[1] = BI.isLeapYear(YY) ? 29 : 28;\n return MM >= 1 && MM <= 12 && DD <= MD[MM - 1];\n },\n\n parseDateTime: function (str, fmt) {\n var today = BI.getDate();\n var y = 0;\n var m = 0;\n var d = 1;\n // wei : 对于fmt为‘YYYYMM’或者‘YYYYMMdd’的格式,str的值为类似'201111'的形式,因为年月之间没有分隔符,所以正则表达式分割无效,导致bug7376。\n var a = str.split(/\\W+/);\n if (fmt.toLowerCase() == \"%y%x\" || fmt.toLowerCase() == \"%y%x%d\") {\n var yearlength = 4;\n var otherlength = 2;\n a[0] = str.substring(0, yearlength);\n a[1] = str.substring(yearlength, yearlength + otherlength);\n a[2] = str.substring(yearlength + otherlength, yearlength + otherlength * 2);\n }\n var b = fmt.match(/%./g);\n var i = 0, j = 0;\n var hr = 0;\n var min = 0;\n var sec = 0;\n for (i = 0; i < a.length; ++i) {\n switch (b[i]) {\n case \"%d\":\n case \"%e\":\n d = parseInt(a[i], 10);\n break;\n\n case \"%X\":\n m = parseInt(a[i], 10) - 1;\n break;\n case \"%x\":\n m = parseInt(a[i], 10) - 1;\n break;\n\n case \"%Y\":\n case \"%y\":\n y = parseInt(a[i], 10);\n (y < 100) && (y += (y > 29) ? 1900 : 2000);\n break;\n\n case \"%b\":\n case \"%B\":\n for (j = 0; j < 12; ++j) {\n if (BI.Date._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) {\n m = j;\n break;\n }\n }\n break;\n\n case \"%H\":\n case \"%I\":\n case \"%k\":\n case \"%l\":\n hr = parseInt(a[i], 10);\n break;\n\n case \"%P\":\n case \"%p\":\n if (/pm/i.test(a[i]) && hr < 12) {\n hr += 12;\n } else if (/am/i.test(a[i]) && hr >= 12) {\n hr -= 12;\n }\n break;\n\n case \"%M\":\n min = parseInt(a[i], 10);\n case \"%S\":\n sec = parseInt(a[i], 10);\n break;\n }\n }\n // if (!a[i]) {\n // continue;\n //\t}\n if (isNaN(y)) {\n y = today.getFullYear();\n }\n if (isNaN(m)) {\n m = today.getMonth();\n }\n if (isNaN(d)) {\n d = today.getDate();\n }\n if (isNaN(hr)) {\n hr = today.getHours();\n }\n if (isNaN(min)) {\n min = today.getMinutes();\n }\n if (isNaN(sec)) {\n sec = today.getSeconds();\n }\n if (y != 0) {\n return BI.getDate(y, m, d, hr, min, sec);\n }\n y = 0;\n m = -1;\n d = 0;\n for (i = 0; i < a.length; ++i) {\n if (a[i].search(/[a-zA-Z]+/) != -1) {\n var t = -1;\n for (j = 0; j < 12; ++j) {\n if (BI.Date._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) {\n t = j;\n break;\n }\n }\n if (t != -1) {\n if (m != -1) {\n d = m + 1;\n }\n m = t;\n }\n } else if (parseInt(a[i], 10) <= 12 && m == -1) {\n m = a[i] - 1;\n } else if (parseInt(a[i], 10) > 31 && y == 0) {\n y = parseInt(a[i], 10);\n (y < 100) && (y += (y > 29) ? 1900 : 2000);\n } else if (d == 0) {\n d = a[i];\n }\n }\n if (y == 0) {\n y = today.getFullYear();\n }\n if (m != -1 && d != 0) {\n return BI.getDate(y, m, d, hr, min, sec);\n }\n return today;\n },\n\n getDate: function () {\n var length = arguments.length;\n var args = arguments;\n var dt;\n switch (length) {\n // new Date()\n case 0:\n dt = new Date();\n break;\n // new Date(long)\n case 1:\n dt = new Date(args[0]);\n break;\n // new Date(year, month)\n case 2:\n dt = new Date(args[0], args[1]);\n break;\n // new Date(year, month, day)\n case 3:\n dt = new Date(args[0], args[1], args[2]);\n break;\n // new Date(year, month, day, hour)\n case 4:\n dt = new Date(args[0], args[1], args[2], args[3]);\n break;\n // new Date(year, month, day, hour, minute)\n case 5:\n dt = new Date(args[0], args[1], args[2], args[3], args[4]);\n break;\n // new Date(year, month, day, hour, minute, second)\n case 6:\n dt = new Date(args[0], args[1], args[2], args[3], args[4], args[5]);\n break;\n // new Date(year, month, day, hour, minute, second, millisecond)\n case 7:\n dt = new Date(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n break;\n default:\n dt = new Date();\n break;\n }\n if (BI.isNotNull(BI.timeZone) && (arguments.length === 0 || (arguments.length === 1 && BI.isNumber(arguments[0])))) {\n var localTime = dt.getTime();\n // BI-33791 1901年以前的东8区标准是GMT+0805, 统一无论是什么时间,都以整的0800这样的为基准\n var localOffset = dt.getTimezoneOffset() * 60000; // 获得当地时间偏移的毫秒数\n var utc = localTime + localOffset; // utc即GMT时间标准时区\n return new Date(utc + BI.timeZone);// + Pool.timeZone.offset);\n }\n return dt;\n\n },\n\n getTime: function () {\n var length = arguments.length;\n var args = arguments;\n var dt;\n switch (length) {\n // new Date()\n case 0:\n dt = new Date();\n break;\n // new Date(long)\n case 1:\n dt = new Date(args[0]);\n break;\n // new Date(year, month)\n case 2:\n dt = new Date(args[0], args[1]);\n break;\n // new Date(year, month, day)\n case 3:\n dt = new Date(args[0], args[1], args[2]);\n break;\n // new Date(year, month, day, hour)\n case 4:\n dt = new Date(args[0], args[1], args[2], args[3]);\n break;\n // new Date(year, month, day, hour, minute)\n case 5:\n dt = new Date(args[0], args[1], args[2], args[3], args[4]);\n break;\n // new Date(year, month, day, hour, minute, second)\n case 6:\n dt = new Date(args[0], args[1], args[2], args[3], args[4], args[5]);\n break;\n // new Date(year, month, day, hour, minute, second, millisecond)\n case 7:\n dt = new Date(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n break;\n default:\n dt = new Date();\n break;\n }\n if (BI.isNotNull(BI.timeZone)) {\n // BI-33791 1901年以前的东8区标准是GMT+0805, 统一无论是什么时间,都以整的0800这样的为基准\n return dt.getTime() - BI.timeZone - new Date().getTimezoneOffset() * 60000;\n }\n return dt.getTime();\n\n }\n });\n})();\n!(function () {\n function extend () {\n var target = arguments[0] || {}, length = arguments.length, i = 1, options, name, src, copy;\n for (; i < length; i++) {\n // Only deal with non-null/undefined values\n if ((options = arguments[i]) != null) {\n // Extend the base object\n for (name in options) {\n src = target[name];\n copy = options[name];\n\n // Prevent never-ending loop\n if (target === copy) {\n continue;\n }\n\n if (copy !== undefined) {\n target[name] = copy;\n }\n }\n }\n }\n return target;\n }\n\n /**\n * 客户端观察者,主要处理事件的添加、删除、执行等\n * @class BI.OB\n * @abstract\n */\n BI.OB = function (config) {\n this._constructor(config);\n };\n _.extend(BI.OB.prototype, {\n props: {},\n init: null,\n destroyed: null,\n\n _constructor: function (config) {\n this._initProps(config);\n this._init();\n this._initRef();\n },\n\n _defaultConfig: function (config) {\n return {};\n },\n\n _initProps: function (config) {\n var props = this.props;\n if (BI.isFunction(this.props)) {\n props = this.props(config);\n }\n this.options = extend(this._defaultConfig(config), props, config);\n },\n\n _init: function () {\n this._initListeners();\n this.init && this.init();\n },\n\n _initListeners: function () {\n var self = this;\n if (this.options.listeners != null) {\n _.each(this.options.listeners, function (lis) {\n (lis.target ? lis.target : self)[lis.once ? \"once\" : \"on\"]\n (lis.eventName, _.bind(lis.action, self));\n });\n delete this.options.listeners;\n }\n },\n\n // 获得一个当前对象的引用\n _initRef: function () {\n if (this.options.ref) {\n this.options.ref.call(this, this);\n }\n },\n\n //释放当前对象\n _purgeRef: function () {\n if (this.options.ref) {\n this.options.ref.call(null);\n this.options.ref = null;\n }\n },\n\n _getEvents: function () {\n if (!_.isArray(this.events)) {\n this.events = [];\n }\n return this.events;\n },\n\n /**\n * 给观察者绑定一个事件\n * @param {String} eventName 事件的名字\n * @param {Function} fn 事件对应的执行函数\n */\n on: function (eventName, fn) {\n eventName = eventName.toLowerCase();\n var fns = this._getEvents()[eventName];\n if (!_.isArray(fns)) {\n fns = [];\n this._getEvents()[eventName] = fns;\n }\n fns.push(fn);\n },\n\n /**\n * 给观察者绑定一个只执行一次的事件\n * @param {String} eventName 事件的名字\n * @param {Function} fn 事件对应的执行函数\n */\n once: function (eventName, fn) {\n var proxy = function () {\n fn.apply(this, arguments);\n this.un(eventName, proxy);\n };\n this.on(eventName, proxy);\n },\n /**\n * 解除观察者绑定的指定事件\n * @param {String} eventName 要解除绑定事件的名字\n * @param {Function} fn 事件对应的执行函数,该参数是可选的,没有该参数时,将解除绑定所有同名字的事件\n */\n un: function (eventName, fn) {\n eventName = eventName.toLowerCase();\n\n /* alex:如果fn是null,就是把eventName上面所有方法都un掉*/\n if (fn == null) {\n delete this._getEvents()[eventName];\n } else {\n var fns = this._getEvents()[eventName];\n if (_.isArray(fns)) {\n var newFns = [];\n _.each(fns, function (ifn) {\n if (ifn != fn) {\n newFns.push(ifn);\n }\n });\n this._getEvents()[eventName] = newFns;\n }\n }\n },\n /**\n * 清除观察者的所有事件绑定\n */\n purgeListeners: function () {\n /* alex:清空events*/\n this.events = [];\n },\n /**\n * 触发绑定过的事件\n *\n * @param {String} eventName 要触发的事件的名字\n * @returns {Boolean} 如果事件函数返回false,则返回false并中断其他同名事件的执行,否则执行所有的同名事件并返回true\n */\n fireEvent: function () {\n var eventName = arguments[0].toLowerCase();\n var fns = this._getEvents()[eventName];\n if (BI.isArray(fns)) {\n if (BI.isArguments(arguments[1])) {\n for (var i = 0; i < fns.length; i++) {\n if (fns[i].apply(this, arguments[1]) === false) {\n return false;\n }\n }\n } else {\n var args = Array.prototype.slice.call(arguments, 1);\n for (var i = 0; i < fns.length; i++) {\n if (fns[i].apply(this, args) === false) {\n return false;\n }\n }\n }\n }\n return true;\n },\n\n destroy: function () {\n this.destroyed && this.destroyed();\n this._purgeRef();\n this.purgeListeners();\n }\n });\n})();/**\n * Widget超类\n * @class BI.Widget\n * @extends BI.OB\n *\n * @cfg {JSON} options 配置属性\n */\n\n!(function () {\n BI.Widget = BI.inherit(BI.OB, {\n _defaultConfig: function () {\n return BI.extend(BI.Widget.superclass._defaultConfig.apply(this), {\n root: false,\n tagName: \"div\",\n attributes: null,\n data: null,\n\n tag: null,\n disabled: false,\n invisible: false,\n invalid: false,\n baseCls: \"\",\n extraCls: \"\",\n cls: \"\",\n css: null\n });\n },\n\n // 覆盖父类的_constructor方法,widget不走ob的生命周期\n _constructor: function () {\n },\n\n beforeInit: null,\n\n // 生命周期函数\n beforeCreate: null,\n\n created: null,\n\n render: null,\n\n beforeMount: null,\n\n mounted: null,\n\n shouldUpdate: null,\n\n update: function () {\n },\n\n beforeDestroy: null,\n\n destroyed: null,\n\n _init: function () {\n BI.Widget.superclass._init.apply(this, arguments);\n this._initRoot();\n this._initElementWidth();\n this._initElementHeight();\n this._initVisual();\n this._initState();\n this._initRender();\n },\n\n _initRender: function () {\n if (this.beforeInit) {\n this.__asking = true;\n this.beforeInit(BI.bind(this._render, this));\n if (this.__asking === true) {\n this.__async = true;\n }\n } else {\n this._render();\n }\n },\n\n _render: function () {\n this.__asking = false;\n this.beforeCreate && this.beforeCreate();\n this._initElement();\n this._initEffects();\n this.created && this.created();\n },\n\n /**\n * 初始化根节点\n * @private\n */\n _initRoot: function () {\n var o = this.options;\n this.widgetName = o.widgetName || BI.uniqueId(\"widget\");\n this._isRoot = o.root;\n if (BI.isWidget(o.element)) {\n if (o.element instanceof BI.Widget) {\n this._parent = o.element;\n this._parent.addWidget(this.widgetName, this);\n } else {\n this._isRoot = true;\n }\n this.element = this.options.element.element;\n } else if (o.element) {\n // if (o.root !== true) {\n // throw new Error(\"root is a required property\");\n // }\n this.element = BI.Widget._renderEngine.createElement(this);\n this._isRoot = true;\n } else {\n this.element = BI.Widget._renderEngine.createElement(this);\n }\n this.element._isWidget = true;\n if (o._baseCls || o.baseCls || o.extraCls || o.cls) {\n this.element.addClass((o._baseCls || \"\") + \" \" + (o.baseCls || \"\") + \" \" + (o.extraCls || \"\") + \" \" + (o.cls || \"\"));\n }\n if (o.attributes) {\n this.element.attr(o.attributes);\n }\n if (o.data) {\n this.element.data(o.data);\n }\n if (o.css) {\n this.element.css(o.css);\n }\n this._children = {};\n },\n\n _initElementWidth: function () {\n var o = this.options;\n if (BI.isWidthOrHeight(o.width)) {\n this.element.css(\"width\", o.width);\n }\n },\n\n _initElementHeight: function () {\n var o = this.options;\n if (BI.isWidthOrHeight(o.height)) {\n this.element.css(\"height\", o.height);\n }\n },\n\n _initVisual: function () {\n var o = this.options;\n if (o.invisible) {\n // 用display属性做显示和隐藏,否则jquery会在显示时将display设为block会覆盖掉display:flex属性\n this.element.css(\"display\", \"none\");\n }\n },\n\n _initEffects: function () {\n var o = this.options;\n if (o.disabled || o.invalid) {\n if (this.options.disabled) {\n this.setEnable(false);\n }\n if (this.options.invalid) {\n this.setValid(false);\n }\n }\n },\n\n _initState: function () {\n this._isMounted = false;\n },\n\n _initElement: function () {\n var self = this;\n var els = this.render && this.render();\n if (BI.isPlainObject(els)) {\n els = [els];\n }\n if (BI.isArray(els)) {\n BI.each(els, function (i, el) {\n BI.createWidget(el, {\n element: self\n });\n });\n }\n // if (this._isRoot === true || !(this instanceof BI.Layout)) {\n this._mount();\n // }\n },\n\n _setParent: function (parent) {\n this._parent = parent;\n },\n\n /**\n *\n * @param force 是否强制挂载子节点\n * @param deep 子节点是否也是按照当前force处理\n * @param lifeHook 生命周期钩子触不触发,默认触发\n * @param predicate 递归每个widget的回调\n * @returns {boolean}\n * @private\n */\n _mount: function (force, deep, lifeHook, predicate) {\n var self = this;\n if (!force && (this._isMounted || !this.isVisible() || this.__asking === true || !(this._isRoot === true || (this._parent && this._parent._isMounted === true)))) {\n return false;\n }\n lifeHook !== false && this.beforeMount && this.beforeMount();\n this._isMounted = true;\n this._mountChildren && this._mountChildren();\n BI.each(this._children, function (i, widget) {\n !self.isEnabled() && widget._setEnable(false);\n !self.isValid() && widget._setValid(false);\n widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);\n });\n lifeHook !== false && this.mounted && this.mounted();\n this.fireEvent(BI.Events.MOUNT);\n predicate && predicate(this);\n return true;\n },\n\n _mountChildren: null,\n\n isMounted: function () {\n return this._isMounted;\n },\n\n setWidth: function (w) {\n this.options.width = w;\n this._initElementWidth();\n },\n\n setHeight: function (h) {\n this.options.height = h;\n this._initElementHeight();\n },\n\n _setEnable: function (enable) {\n if (enable === true) {\n this.options.disabled = false;\n } else if (enable === false) {\n this.options.disabled = true;\n }\n // 递归将所有子组件使能\n BI.each(this._children, function (i, child) {\n !child._manualSetEnable && child._setEnable && child._setEnable(enable);\n });\n },\n\n _setValid: function (valid) {\n if (valid === true) {\n this.options.invalid = false;\n } else if (valid === false) {\n this.options.invalid = true;\n }\n // 递归将所有子组件使有效\n BI.each(this._children, function (i, child) {\n !child._manualSetValid && child._setValid && child._setValid(valid);\n });\n },\n\n _setVisible: function (visible) {\n if (visible === true) {\n this.options.invisible = false;\n } else if (visible === false) {\n this.options.invisible = true;\n }\n },\n\n setEnable: function (enable) {\n this._manualSetEnable = true;\n this._setEnable(enable);\n if (enable === true) {\n this.element.removeClass(\"base-disabled disabled\");\n } else if (enable === false) {\n this.element.addClass(\"base-disabled disabled\");\n }\n },\n\n setVisible: function (visible) {\n this._setVisible(visible);\n if (visible === true) {\n // 用this.element.show()会把display属性改成block\n this.element.css(\"display\", \"\");\n this._mount();\n } else if (visible === false) {\n this.element.css(\"display\", \"none\");\n }\n this.fireEvent(BI.Events.VIEW, visible);\n },\n\n setValid: function (valid) {\n this._manualSetValid = true;\n this._setValid(valid);\n if (valid === true) {\n this.element.removeClass(\"base-invalid invalid\");\n } else if (valid === false) {\n this.element.addClass(\"base-invalid invalid\");\n }\n },\n\n doBehavior: function () {\n var args = arguments;\n // 递归将所有子组件使有效\n BI.each(this._children, function (i, child) {\n child.doBehavior && child.doBehavior.apply(child, args);\n });\n },\n\n getWidth: function () {\n return this.options.width;\n },\n\n getHeight: function () {\n return this.options.height;\n },\n\n isValid: function () {\n return !this.options.invalid;\n },\n\n addWidget: function (name, widget) {\n var self = this;\n if (name instanceof BI.Widget) {\n widget = name;\n name = widget.getName();\n }\n if (BI.isKey(name)) {\n name = name + \"\";\n }\n name = name || widget.getName() || BI.uniqueId(\"widget\");\n if (this._children[name]) {\n throw new Error(\"name has already been existed\");\n }\n widget._setParent && widget._setParent(this);\n widget.on(BI.Events.DESTROY, function () {\n BI.remove(self._children, this);\n });\n return (this._children[name] = widget);\n },\n\n getWidgetByName: function (name) {\n if (!BI.isKey(name) || name === this.getName()) {\n return this;\n }\n name = name + \"\";\n var widget = void 0, other = {};\n BI.any(this._children, function (i, wi) {\n if (i === name) {\n widget = wi;\n return true;\n }\n other[i] = wi;\n });\n if (!widget) {\n BI.any(other, function (i, wi) {\n return (widget = wi.getWidgetByName(i));\n });\n }\n return widget;\n },\n\n removeWidget: function (nameOrWidget) {\n var self = this;\n if (BI.isWidget(nameOrWidget)) {\n BI.remove(this._children, nameOrWidget);\n } else {\n delete this._children[nameOrWidget];\n }\n },\n\n hasWidget: function (name) {\n return this._children[name] != null;\n },\n\n getName: function () {\n return this.widgetName;\n },\n\n setTag: function (tag) {\n this.options.tag = tag;\n },\n\n getTag: function () {\n return this.options.tag;\n },\n\n attr: function (key, value) {\n var self = this;\n if (BI.isPlainObject(key)) {\n BI.each(key, function (k, v) {\n self.attr(k, v);\n });\n return;\n }\n if (BI.isNotNull(value)) {\n return this.options[key] = value;\n }\n return this.options[key];\n },\n\n css: function (name, value) {\n return this.element.css(name, value);\n },\n\n getText: function () {\n\n },\n\n setText: function (text) {\n\n },\n\n getValue: function () {\n\n },\n\n setValue: function (value) {\n\n },\n\n isEnabled: function () {\n return !this.options.disabled;\n },\n\n isVisible: function () {\n return !this.options.invisible;\n },\n\n disable: function () {\n this.setEnable(false);\n },\n\n enable: function () {\n this.setEnable(true);\n },\n\n valid: function () {\n this.setValid(true);\n },\n\n invalid: function () {\n this.setValid(false);\n },\n\n invisible: function () {\n this.setVisible(false);\n },\n\n visible: function () {\n this.setVisible(true);\n },\n\n __d: function () {\n this.beforeDestroy && this.beforeDestroy();\n this.beforeDestroy = null;\n BI.each(this._children, function (i, widget) {\n widget && widget._unMount && widget._unMount();\n });\n this._children = {};\n this._parent = null;\n this._isMounted = false;\n this.destroyed && this.destroyed();\n this.destroyed = null;\n },\n\n _unMount: function () {\n this.__d();\n this.fireEvent(BI.Events.UNMOUNT);\n this.purgeListeners();\n },\n\n isolate: function () {\n if (this._parent) {\n this._parent.removeWidget(this);\n }\n BI.DOM.hang([this]);\n },\n\n empty: function () {\n BI.each(this._children, function (i, widget) {\n widget && widget._unMount && widget._unMount();\n });\n this._children = {};\n this.element.empty();\n },\n\n _destroy: function () {\n this.__d();\n this.element.destroy();\n this.purgeListeners();\n },\n\n destroy: function () {\n this.__d();\n this.element.destroy();\n this.fireEvent(BI.Events.DESTROY);\n this._purgeRef();\n this.purgeListeners();\n }\n });\n BI.Widget.registerRenderEngine = function (engine) {\n BI.Widget._renderEngine = engine;\n };\n BI.Widget.registerRenderEngine({\n createElement: function (widget) {\n if (BI.isWidget(widget)) {\n var o = widget.options;\n if (o.element) {\n return BI.$(o.element);\n }\n return BI.$(document.createElement(o.tagName));\n }\n return BI.$(widget);\n },\n createFragment: function () {\n return document.createDocumentFragment();\n }\n });\n\n BI.mount = function (widget, container, predicate, hydrate) {\n if (hydrate === true) {\n // 将widget的element元素都挂载好,并建立相互关系\n widget.element.data(\"__widgets\", [widget]);\n var res = widget._mount(true, false, false, function (w) {\n BI.each(w._children, function (i, child) {\n var ws = child.element.data(\"__widgets\");\n if (!ws) {\n ws = [];\n }\n ws.push(child);\n child.element.data(\"__widgets\", ws);\n });\n predicate && predicate.apply(this, arguments);\n });\n // 将新的dom树属性(事件等)patch到已存在的dom上\n var c = BI.Widget._renderEngine.createElement;\n BI.DOM.patchProps(widget.element, c(c(container).children()[0]));\n\n var triggerLifeHook = function (w) {\n w.beforeMount && w.beforeMount();\n w.mounted && w.mounted();\n BI.each(w._children, function (i, child) {\n triggerLifeHook(child);\n });\n };\n // 最后触发组件树生命周期函数\n triggerLifeHook(widget);\n return res;\n }\n if (container) {\n BI.Widget._renderEngine.createElement(container).append(widget.element);\n }\n return widget._mount(true, false, false, predicate);\n };\n})();(function () {\n var kv = {};\n BI.shortcut = BI.component = function (xtype, cls) {\n if (kv[xtype] != null) {\n _global.console && console.error(\"shortcut:[\" + xtype + \"] has been registed\");\n }\n kv[xtype] = cls;\n };\n\n // 根据配置属性生成widget\n var createWidget = function (config) {\n var cls = kv[config.type];\n\n var widget = new cls();\n\n widget._initProps(config);\n widget._init();\n widget._initRef();\n\n return widget;\n };\n\n BI.createWidget = function (item, options, context) {\n // 先把准备环境准备好\n BI.init();\n var el, w;\n item || (item = {});\n if (BI.isWidget(options)) {\n context = options;\n options = {};\n } else {\n options || (options = {});\n }\n if (BI.isEmpty(item) && BI.isEmpty(options)) {\n return BI.createWidget({\n type: \"bi.layout\"\n });\n }\n if (BI.isWidget(item)) {\n return item;\n }\n if (item.type || options.type) {\n el = BI.extend({}, options, item);\n w = BI.Plugin.getWidget(el.type, el);\n w.listeners = (w.listeners || []).concat([{\n eventName: BI.Events.MOUNT,\n action: function () {\n BI.Plugin.getObject(el.type, this);\n }\n }]);\n return w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));\n }\n if (item.el && (item.el.type || options.type)) {\n el = BI.extend({}, options, item.el);\n w = BI.Plugin.getWidget(el.type, el);\n w.listeners = (w.listeners || []).concat([{\n eventName: BI.Events.MOUNT,\n action: function () {\n BI.Plugin.getObject(el.type, this);\n }\n }]);\n return w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));\n }\n if (BI.isWidget(item.el)) {\n return item.el;\n }\n throw new Error(\"无法根据item创建组件\");\n };\n\n BI.createElement = function () {\n var widget = BI.createWidget.apply(this, arguments);\n return widget.element;\n };\n\n})();!(function () {\n /*\n CryptoJS v3.1.2\n code.google.com/p/crypto-js\n (c) 2009-2013 by Jeff Mott. All rights reserved.\n code.google.com/p/crypto-js/wiki/License\n */\n /**\n * CryptoJS core components.\n */\n BI.CRYPT_TYPE = BI.CRYPT_TYPE || {};\n BI.CRYPT_TYPE.AES = \"aes\";\n\n var CryptoJS = CryptoJS || (function (Math, undefined) {\n /**\n * CryptoJS namespace.\n */\n var C = {};\n\n /**\n * Library namespace.\n */\n var C_lib = C.lib = {};\n\n /**\n * Base object for prototypal inheritance.\n */\n var Base = C_lib.Base = (function () {\n function F () {\n }\n\n return {\n /**\n * Creates a new object that inherits from this object.\n *\n * @param {Object} overrides Properties to copy into the new object.\n *\n * @return {Object} The new object.\n *\n * @static\n *\n * @example\n *\n * var MyType = CryptoJS.lib.Base.extend({\n * field: 'value',\n *\n * method: function () {\n * }\n * });\n */\n extend: function (overrides) {\n // Spawn\n F.prototype = this;\n var subtype = new F();\n\n // Augment\n if (overrides) {\n subtype.mixIn(overrides);\n }\n\n // Create default initializer\n if (!subtype.hasOwnProperty('init')) {\n subtype.init = function () {\n subtype.$super.init.apply(this, arguments);\n };\n }\n\n // Initializer's prototype is the subtype object\n subtype.init.prototype = subtype;\n\n // Reference supertype\n subtype.$super = this;\n\n return subtype;\n },\n\n /**\n * Extends this object and runs the init method.\n * Arguments to create() will be passed to init().\n *\n * @return {Object} The new object.\n *\n * @static\n *\n * @example\n *\n * var instance = MyType.create();\n */\n create: function () {\n var instance = this.extend();\n instance.init.apply(instance, arguments);\n\n return instance;\n },\n\n /**\n * Initializes a newly created object.\n * Override this method to add some logic when your objects are created.\n *\n * @example\n *\n * var MyType = CryptoJS.lib.Base.extend({\n * init: function () {\n * // ...\n * }\n * });\n */\n init: function () {\n },\n\n /**\n * Copies properties into this object.\n *\n * @param {Object} properties The properties to mix in.\n *\n * @example\n *\n * MyType.mixIn({\n * field: 'value'\n * });\n */\n mixIn: function (properties) {\n for (var propertyName in properties) {\n if (properties.hasOwnProperty(propertyName)) {\n this[propertyName] = properties[propertyName];\n }\n }\n\n // IE won't copy toString using the loop above\n if (properties.hasOwnProperty('toString')) {\n this.toString = properties.toString;\n }\n },\n\n /**\n * Creates a copy of this object.\n *\n * @return {Object} The clone.\n *\n * @example\n *\n * var clone = instance.clone();\n */\n clone: function () {\n return this.init.prototype.extend(this);\n }\n };\n }());\n\n /**\n * An array of 32-bit words.\n *\n * @property {Array} words The array of 32-bit words.\n * @property {number} sigBytes The number of significant bytes in this word array.\n */\n var WordArray = C_lib.WordArray = Base.extend({\n /**\n * Initializes a newly created word array.\n *\n * @param {Array} words (Optional) An array of 32-bit words.\n * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n *\n * @example\n *\n * var wordArray = CryptoJS.lib.WordArray.create();\n * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n */\n init: function (words, sigBytes) {\n words = this.words = words || [];\n\n if (sigBytes != undefined) {\n this.sigBytes = sigBytes;\n } else {\n this.sigBytes = words.length * 4;\n }\n },\n\n /**\n * Converts this word array to a string.\n *\n * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n *\n * @return {string} The stringified word array.\n *\n * @example\n *\n * var string = wordArray + '';\n * var string = wordArray.toString();\n * var string = wordArray.toString(CryptoJS.enc.Utf8);\n */\n toString: function (encoder) {\n return (encoder || Hex).stringify(this);\n },\n\n /**\n * Concatenates a word array to this word array.\n *\n * @param {WordArray} wordArray The word array to append.\n *\n * @return {WordArray} This word array.\n *\n * @example\n *\n * wordArray1.concat(wordArray2);\n */\n concat: function (wordArray) {\n // Shortcuts\n var thisWords = this.words;\n var thatWords = wordArray.words;\n var thisSigBytes = this.sigBytes;\n var thatSigBytes = wordArray.sigBytes;\n\n // Clamp excess bits\n this.clamp();\n\n // Concat\n if (thisSigBytes % 4) {\n // Copy one byte at a time\n for (var i = 0; i < thatSigBytes; i++) {\n var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n }\n } else if (thatWords.length > 0xffff) {\n // Copy one word at a time\n for (var i = 0; i < thatSigBytes; i += 4) {\n thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];\n }\n } else {\n // Copy all words at once\n thisWords.push.apply(thisWords, thatWords);\n }\n this.sigBytes += thatSigBytes;\n\n // Chainable\n return this;\n },\n\n /**\n * Removes insignificant bits.\n *\n * @example\n *\n * wordArray.clamp();\n */\n clamp: function () {\n // Shortcuts\n var words = this.words;\n var sigBytes = this.sigBytes;\n\n // Clamp\n words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n words.length = Math.ceil(sigBytes / 4);\n },\n\n /**\n * Creates a copy of this word array.\n *\n * @return {WordArray} The clone.\n *\n * @example\n *\n * var clone = wordArray.clone();\n */\n clone: function () {\n var clone = Base.clone.call(this);\n clone.words = this.words.slice(0);\n\n return clone;\n },\n\n /**\n * Creates a word array filled with random bytes.\n *\n * @param {number} nBytes The number of random bytes to generate.\n *\n * @return {WordArray} The random word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.lib.WordArray.random(16);\n */\n random: function (nBytes) {\n var words = [];\n for (var i = 0; i < nBytes; i += 4) {\n words.push((Math.random() * 0x100000000) | 0);\n }\n\n return new WordArray.init(words, nBytes);\n }\n });\n\n /**\n * Encoder namespace.\n */\n var C_enc = C.enc = {};\n\n /**\n * Hex encoding strategy.\n */\n var Hex = C_enc.Hex = {\n /**\n * Converts a word array to a hex string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The hex string.\n *\n * @static\n *\n * @example\n *\n * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n\n // Convert\n var hexChars = [];\n for (var i = 0; i < sigBytes; i++) {\n var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n hexChars.push((bite >>> 4).toString(16));\n hexChars.push((bite & 0x0f).toString(16));\n }\n\n return hexChars.join('');\n },\n\n /**\n * Converts a hex string to a word array.\n *\n * @param {string} hexStr The hex string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n */\n parse: function (hexStr) {\n // Shortcut\n var hexStrLength = hexStr.length;\n\n // Convert\n var words = [];\n for (var i = 0; i < hexStrLength; i += 2) {\n words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n }\n\n return new WordArray.init(words, hexStrLength / 2);\n }\n };\n\n /**\n * Latin1 encoding strategy.\n */\n var Latin1 = C_enc.Latin1 = {\n /**\n * Converts a word array to a Latin1 string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The Latin1 string.\n *\n * @static\n *\n * @example\n *\n * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n\n // Convert\n var latin1Chars = [];\n for (var i = 0; i < sigBytes; i++) {\n var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n latin1Chars.push(String.fromCharCode(bite));\n }\n\n return latin1Chars.join('');\n },\n\n /**\n * Converts a Latin1 string to a word array.\n *\n * @param {string} latin1Str The Latin1 string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n */\n parse: function (latin1Str) {\n // Shortcut\n var latin1StrLength = latin1Str.length;\n\n // Convert\n var words = [];\n for (var i = 0; i < latin1StrLength; i++) {\n words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n }\n\n return new WordArray.init(words, latin1StrLength);\n }\n };\n\n /**\n * UTF-8 encoding strategy.\n */\n var Utf8 = C_enc.Utf8 = {\n /**\n * Converts a word array to a UTF-8 string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The UTF-8 string.\n *\n * @static\n *\n * @example\n *\n * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n */\n stringify: function (wordArray) {\n try {\n return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n } catch (e) {\n throw new Error('Malformed UTF-8 data');\n }\n },\n\n /**\n * Converts a UTF-8 string to a word array.\n *\n * @param {string} utf8Str The UTF-8 string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n */\n parse: function (utf8Str) {\n return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n }\n };\n\n /**\n * Abstract buffered block algorithm template.\n *\n * The property blockSize must be implemented in a concrete subtype.\n *\n * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n */\n var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n /**\n * Resets this block algorithm's data buffer to its initial state.\n *\n * @example\n *\n * bufferedBlockAlgorithm.reset();\n */\n reset: function () {\n // Initial values\n this._data = new WordArray.init();\n this._nDataBytes = 0;\n },\n\n /**\n * Adds new data to this block algorithm's buffer.\n *\n * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n *\n * @example\n *\n * bufferedBlockAlgorithm._append('data');\n * bufferedBlockAlgorithm._append(wordArray);\n */\n _append: function (data) {\n // Convert string to WordArray, else assume WordArray already\n if (typeof data == 'string') {\n data = Utf8.parse(data);\n }\n\n // Append\n this._data.concat(data);\n this._nDataBytes += data.sigBytes;\n },\n\n /**\n * Processes available data blocks.\n *\n * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n *\n * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n *\n * @return {WordArray} The processed data.\n *\n * @example\n *\n * var processedData = bufferedBlockAlgorithm._process();\n * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n */\n _process: function (doFlush) {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n var dataSigBytes = data.sigBytes;\n var blockSize = this.blockSize;\n var blockSizeBytes = blockSize * 4;\n\n // Count blocks ready\n var nBlocksReady = dataSigBytes / blockSizeBytes;\n if (doFlush) {\n // Round up to include partial blocks\n nBlocksReady = Math.ceil(nBlocksReady);\n } else {\n // Round down to include only full blocks,\n // less the number of blocks that must remain in the buffer\n nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n }\n\n // Count words ready\n var nWordsReady = nBlocksReady * blockSize;\n\n // Count bytes ready\n var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n // Process blocks\n if (nWordsReady) {\n for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n // Perform concrete-algorithm logic\n this._doProcessBlock(dataWords, offset);\n }\n\n // Remove processed words\n var processedWords = dataWords.splice(0, nWordsReady);\n data.sigBytes -= nBytesReady;\n }\n\n // Return processed words\n return new WordArray.init(processedWords, nBytesReady);\n },\n\n /**\n * Creates a copy of this object.\n *\n * @return {Object} The clone.\n *\n * @example\n *\n * var clone = bufferedBlockAlgorithm.clone();\n */\n clone: function () {\n var clone = Base.clone.call(this);\n clone._data = this._data.clone();\n\n return clone;\n },\n\n _minBufferSize: 0\n });\n\n /**\n * Abstract hasher template.\n *\n * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n */\n var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n /**\n * Configuration options.\n */\n cfg: Base.extend(),\n\n /**\n * Initializes a newly created hasher.\n *\n * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n *\n * @example\n *\n * var hasher = CryptoJS.algo.SHA256.create();\n */\n init: function (cfg) {\n // Apply config defaults\n this.cfg = this.cfg.extend(cfg);\n\n // Set initial values\n this.reset();\n },\n\n /**\n * Resets this hasher to its initial state.\n *\n * @example\n *\n * hasher.reset();\n */\n reset: function () {\n // Reset data buffer\n BufferedBlockAlgorithm.reset.call(this);\n\n // Perform concrete-hasher logic\n this._doReset();\n },\n\n /**\n * Updates this hasher with a message.\n *\n * @param {WordArray|string} messageUpdate The message to append.\n *\n * @return {Hasher} This hasher.\n *\n * @example\n *\n * hasher.update('message');\n * hasher.update(wordArray);\n */\n update: function (messageUpdate) {\n // Append\n this._append(messageUpdate);\n\n // Update the hash\n this._process();\n\n // Chainable\n return this;\n },\n\n /**\n * Finalizes the hash computation.\n * Note that the finalize operation is effectively a destructive, read-once operation.\n *\n * @param {WordArray|string} messageUpdate (Optional) A final message update.\n *\n * @return {WordArray} The hash.\n *\n * @example\n *\n * var hash = hasher.finalize();\n * var hash = hasher.finalize('message');\n * var hash = hasher.finalize(wordArray);\n */\n finalize: function (messageUpdate) {\n // Final message update\n if (messageUpdate) {\n this._append(messageUpdate);\n }\n\n // Perform concrete-hasher logic\n var hash = this._doFinalize();\n\n return hash;\n },\n\n blockSize: 512 / 32,\n\n /**\n * Creates a shortcut function to a hasher's object interface.\n *\n * @param {Hasher} hasher The hasher to create a helper for.\n *\n * @return {Function} The shortcut function.\n *\n * @static\n *\n * @example\n *\n * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n */\n _createHelper: function (hasher) {\n return function (message, cfg) {\n return new hasher.init(cfg).finalize(message);\n };\n },\n\n /**\n * Creates a shortcut function to the HMAC's object interface.\n *\n * @param {Hasher} hasher The hasher to use in this HMAC helper.\n *\n * @return {Function} The shortcut function.\n *\n * @static\n *\n * @example\n *\n * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n */\n _createHmacHelper: function (hasher) {\n return function (message, key) {\n return new C_algo.HMAC.init(hasher, key).finalize(message);\n };\n }\n });\n\n /**\n * Algorithm namespace.\n */\n var C_algo = C.algo = {};\n\n return C;\n }(Math));\n\n /*\n CryptoJS v3.1.2\n code.google.com/p/crypto-js\n (c) 2009-2013 by Jeff Mott. All rights reserved.\n code.google.com/p/crypto-js/wiki/License\n */\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var C_enc = C.enc;\n\n /**\n * Base64 encoding strategy.\n */\n var Base64 = C_enc.Base64 = {\n /**\n * Converts a word array to a Base64 string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The Base64 string.\n *\n * @static\n *\n * @example\n *\n * var base64String = CryptoJS.enc.Base64.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n var map = this._map;\n\n // Clamp excess bits\n wordArray.clamp();\n\n // Convert\n var base64Chars = [];\n for (var i = 0; i < sigBytes; i += 3) {\n var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\n var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\n\n var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\n\n for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\n base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\n }\n }\n\n // Add padding\n var paddingChar = map.charAt(64);\n if (paddingChar) {\n while (base64Chars.length % 4) {\n base64Chars.push(paddingChar);\n }\n }\n\n return base64Chars.join('');\n },\n\n /**\n * Converts a Base64 string to a word array.\n *\n * @param {string} base64Str The Base64 string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Base64.parse(base64String);\n */\n parse: function (base64Str) {\n // Shortcuts\n var base64StrLength = base64Str.length;\n var map = this._map;\n\n // Ignore padding\n var paddingChar = map.charAt(64);\n if (paddingChar) {\n var paddingIndex = base64Str.indexOf(paddingChar);\n if (paddingIndex != -1) {\n base64StrLength = paddingIndex;\n }\n }\n\n // Convert\n var words = [];\n var nBytes = 0;\n for (var i = 0; i < base64StrLength; i++) {\n if (i % 4) {\n var bits1 = map.indexOf(base64Str.charAt(i - 1)) << ((i % 4) * 2);\n var bits2 = map.indexOf(base64Str.charAt(i)) >>> (6 - (i % 4) * 2);\n words[nBytes >>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8);\n nBytes++;\n }\n }\n\n return WordArray.create(words, nBytes);\n },\n\n _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\n };\n }());\n\n /*\n CryptoJS v3.1.2\n code.google.com/p/crypto-js\n (c) 2009-2013 by Jeff Mott. All rights reserved.\n code.google.com/p/crypto-js/wiki/License\n */\n (function (Math) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_algo = C.algo;\n\n // Constants table\n var T = [];\n\n // Compute constants\n (function () {\n for (var i = 0; i < 64; i++) {\n T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n }\n }());\n\n /**\n * MD5 hash algorithm.\n */\n var MD5 = C_algo.MD5 = Hasher.extend({\n _doReset: function () {\n this._hash = new WordArray.init([\n 0x67452301, 0xefcdab89,\n 0x98badcfe, 0x10325476\n ]);\n },\n\n _doProcessBlock: function (M, offset) {\n // Swap endian\n for (var i = 0; i < 16; i++) {\n // Shortcuts\n var offset_i = offset + i;\n var M_offset_i = M[offset_i];\n\n M[offset_i] = (\n (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n );\n }\n\n // Shortcuts\n var H = this._hash.words;\n\n var M_offset_0 = M[offset + 0];\n var M_offset_1 = M[offset + 1];\n var M_offset_2 = M[offset + 2];\n var M_offset_3 = M[offset + 3];\n var M_offset_4 = M[offset + 4];\n var M_offset_5 = M[offset + 5];\n var M_offset_6 = M[offset + 6];\n var M_offset_7 = M[offset + 7];\n var M_offset_8 = M[offset + 8];\n var M_offset_9 = M[offset + 9];\n var M_offset_10 = M[offset + 10];\n var M_offset_11 = M[offset + 11];\n var M_offset_12 = M[offset + 12];\n var M_offset_13 = M[offset + 13];\n var M_offset_14 = M[offset + 14];\n var M_offset_15 = M[offset + 15];\n\n // Working varialbes\n var a = H[0];\n var b = H[1];\n var c = H[2];\n var d = H[3];\n\n // Computation\n a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n a = II(a, b, c, d, M_offset_0, 6, T[48]);\n d = II(d, a, b, c, M_offset_7, 10, T[49]);\n c = II(c, d, a, b, M_offset_14, 15, T[50]);\n b = II(b, c, d, a, M_offset_5, 21, T[51]);\n a = II(a, b, c, d, M_offset_12, 6, T[52]);\n d = II(d, a, b, c, M_offset_3, 10, T[53]);\n c = II(c, d, a, b, M_offset_10, 15, T[54]);\n b = II(b, c, d, a, M_offset_1, 21, T[55]);\n a = II(a, b, c, d, M_offset_8, 6, T[56]);\n d = II(d, a, b, c, M_offset_15, 10, T[57]);\n c = II(c, d, a, b, M_offset_6, 15, T[58]);\n b = II(b, c, d, a, M_offset_13, 21, T[59]);\n a = II(a, b, c, d, M_offset_4, 6, T[60]);\n d = II(d, a, b, c, M_offset_11, 10, T[61]);\n c = II(c, d, a, b, M_offset_2, 15, T[62]);\n b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n // Intermediate hash value\n H[0] = (H[0] + a) | 0;\n H[1] = (H[1] + b) | 0;\n H[2] = (H[2] + c) | 0;\n H[3] = (H[3] + d) | 0;\n },\n\n _doFinalize: function () {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8;\n\n // Add padding\n dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n var nBitsTotalL = nBitsTotal;\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n );\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n );\n\n data.sigBytes = (dataWords.length + 1) * 4;\n\n // Hash final blocks\n this._process();\n\n // Shortcuts\n var hash = this._hash;\n var H = hash.words;\n\n // Swap endian\n for (var i = 0; i < 4; i++) {\n // Shortcut\n var H_i = H[i];\n\n H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n }\n\n // Return final computed hash\n return hash;\n },\n\n clone: function () {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n\n return clone;\n }\n });\n\n function FF (a, b, c, d, x, s, t) {\n var n = a + ((b & c) | (~b & d)) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n function GG (a, b, c, d, x, s, t) {\n var n = a + ((b & d) | (c & ~d)) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n function HH (a, b, c, d, x, s, t) {\n var n = a + (b ^ c ^ d) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n function II (a, b, c, d, x, s, t) {\n var n = a + (c ^ (b | ~d)) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.MD5('message');\n * var hash = CryptoJS.MD5(wordArray);\n */\n C.MD5 = Hasher._createHelper(MD5);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacMD5(message, key);\n */\n C.HmacMD5 = Hasher._createHmacHelper(MD5);\n }(Math));\n\n /*\n CryptoJS v3.1.2\n code.google.com/p/crypto-js\n (c) 2009-2013 by Jeff Mott. All rights reserved.\n code.google.com/p/crypto-js/wiki/License\n */\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var WordArray = C_lib.WordArray;\n var C_algo = C.algo;\n var MD5 = C_algo.MD5;\n\n /**\n * This key derivation function is meant to conform with EVP_BytesToKey.\n * www.openssl.org/docs/crypto/EVP_BytesToKey.html\n */\n var EvpKDF = C_algo.EvpKDF = Base.extend({\n /**\n * Configuration options.\n *\n * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\n * @property {Hasher} hasher The hash algorithm to use. Default: MD5\n * @property {number} iterations The number of iterations to perform. Default: 1\n */\n cfg: Base.extend({\n keySize: 128 / 32,\n hasher: MD5,\n iterations: 1\n }),\n\n /**\n * Initializes a newly created key derivation function.\n *\n * @param {Object} cfg (Optional) The configuration options to use for the derivation.\n *\n * @example\n *\n * var kdf = CryptoJS.algo.EvpKDF.create();\n * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });\n * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });\n */\n init: function (cfg) {\n this.cfg = this.cfg.extend(cfg);\n },\n\n /**\n * Derives a key from a password.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n *\n * @return {WordArray} The derived key.\n *\n * @example\n *\n * var key = kdf.compute(password, salt);\n */\n compute: function (password, salt) {\n // Shortcut\n var cfg = this.cfg;\n\n // Init hasher\n var hasher = cfg.hasher.create();\n\n // Initial values\n var derivedKey = WordArray.create();\n\n // Shortcuts\n var derivedKeyWords = derivedKey.words;\n var keySize = cfg.keySize;\n var iterations = cfg.iterations;\n\n // Generate key\n while (derivedKeyWords.length < keySize) {\n if (block) {\n hasher.update(block);\n }\n var block = hasher.update(password).finalize(salt);\n hasher.reset();\n\n // Iterations\n for (var i = 1; i < iterations; i++) {\n block = hasher.finalize(block);\n hasher.reset();\n }\n\n derivedKey.concat(block);\n }\n derivedKey.sigBytes = keySize * 4;\n\n return derivedKey;\n }\n });\n\n /**\n * Derives a key from a password.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n * @param {Object} cfg (Optional) The configuration options to use for this computation.\n *\n * @return {WordArray} The derived key.\n *\n * @static\n *\n * @example\n *\n * var key = CryptoJS.EvpKDF(password, salt);\n * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });\n * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });\n */\n C.EvpKDF = function (password, salt, cfg) {\n return EvpKDF.create(cfg).compute(password, salt);\n };\n }());\n\n\n /*\n CryptoJS v3.1.2\n code.google.com/p/crypto-js\n (c) 2009-2013 by Jeff Mott. All rights reserved.\n code.google.com/p/crypto-js/wiki/License\n */\n /**\n * Cipher core components.\n */\n CryptoJS.lib.Cipher || (function (undefined) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var WordArray = C_lib.WordArray;\n var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;\n var C_enc = C.enc;\n var Utf8 = C_enc.Utf8;\n var Base64 = C_enc.Base64;\n var C_algo = C.algo;\n var EvpKDF = C_algo.EvpKDF;\n\n /**\n * Abstract base cipher template.\n *\n * @property {number} keySize This cipher's key size. Default: 4 (128 bits)\n * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)\n * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.\n * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.\n */\n var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({\n /**\n * Configuration options.\n *\n * @property {WordArray} iv The IV to use for this operation.\n */\n cfg: Base.extend(),\n\n /**\n * Creates this cipher in encryption mode.\n *\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {Cipher} A cipher instance.\n *\n * @static\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });\n */\n createEncryptor: function (key, cfg) {\n return this.create(this._ENC_XFORM_MODE, key, cfg);\n },\n\n /**\n * Creates this cipher in decryption mode.\n *\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {Cipher} A cipher instance.\n *\n * @static\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });\n */\n createDecryptor: function (key, cfg) {\n return this.create(this._DEC_XFORM_MODE, key, cfg);\n },\n\n /**\n * Initializes a newly created cipher.\n *\n * @param {number} xformMode Either the encryption or decryption transormation mode constant.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });\n */\n init: function (xformMode, key, cfg) {\n // Apply config defaults\n this.cfg = this.cfg.extend(cfg);\n\n // Store transform mode and key\n this._xformMode = xformMode;\n this._key = key;\n\n // Set initial values\n this.reset();\n },\n\n /**\n * Resets this cipher to its initial state.\n *\n * @example\n *\n * cipher.reset();\n */\n reset: function () {\n // Reset data buffer\n BufferedBlockAlgorithm.reset.call(this);\n\n // Perform concrete-cipher logic\n this._doReset();\n },\n\n /**\n * Adds data to be encrypted or decrypted.\n *\n * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.\n *\n * @return {WordArray} The data after processing.\n *\n * @example\n *\n * var encrypted = cipher.process('data');\n * var encrypted = cipher.process(wordArray);\n */\n process: function (dataUpdate) {\n // Append\n this._append(dataUpdate);\n\n // Process available blocks\n return this._process();\n },\n\n /**\n * Finalizes the encryption or decryption process.\n * Note that the finalize operation is effectively a destructive, read-once operation.\n *\n * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.\n *\n * @return {WordArray} The data after final processing.\n *\n * @example\n *\n * var encrypted = cipher.finalize();\n * var encrypted = cipher.finalize('data');\n * var encrypted = cipher.finalize(wordArray);\n */\n finalize: function (dataUpdate) {\n // Final data update\n if (dataUpdate) {\n this._append(dataUpdate);\n }\n\n // Perform concrete-cipher logic\n var finalProcessedData = this._doFinalize();\n\n return finalProcessedData;\n },\n\n keySize: 128 / 32,\n\n ivSize: 128 / 32,\n\n _ENC_XFORM_MODE: 1,\n\n _DEC_XFORM_MODE: 2,\n\n /**\n * Creates shortcut functions to a cipher's object interface.\n *\n * @param {Cipher} cipher The cipher to create a helper for.\n *\n * @return {Object} An object with encrypt and decrypt shortcut functions.\n *\n * @static\n *\n * @example\n *\n * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);\n */\n _createHelper: (function () {\n function selectCipherStrategy (key) {\n if (typeof key == 'string') {\n return PasswordBasedCipher;\n } else {\n return SerializableCipher;\n }\n }\n\n return function (cipher) {\n return {\n encrypt: function (message, key, cfg) {\n return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);\n },\n\n decrypt: function (ciphertext, key, cfg) {\n return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);\n }\n };\n };\n }())\n });\n\n /**\n * Abstract base stream cipher template.\n *\n * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)\n */\n var StreamCipher = C_lib.StreamCipher = Cipher.extend({\n _doFinalize: function () {\n // Process partial blocks\n var finalProcessedBlocks = this._process(!!'flush');\n\n return finalProcessedBlocks;\n },\n\n blockSize: 1\n });\n\n /**\n * Mode namespace.\n */\n var C_mode = C.mode = {};\n\n /**\n * Abstract base block cipher mode template.\n */\n var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({\n /**\n * Creates this mode for encryption.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @static\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);\n */\n createEncryptor: function (cipher, iv) {\n return this.Encryptor.create(cipher, iv);\n },\n\n /**\n * Creates this mode for decryption.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @static\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);\n */\n createDecryptor: function (cipher, iv) {\n return this.Decryptor.create(cipher, iv);\n },\n\n /**\n * Initializes a newly created mode.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);\n */\n init: function (cipher, iv) {\n this._cipher = cipher;\n this._iv = iv;\n }\n });\n\n /**\n * Cipher Block Chaining mode.\n */\n var CBC = C_mode.CBC = (function () {\n /**\n * Abstract base CBC mode.\n */\n var CBC = BlockCipherMode.extend();\n\n /**\n * CBC encryptor.\n */\n CBC.Encryptor = CBC.extend({\n /**\n * Processes the data block at offset.\n *\n * @param {Array} words The data words to operate on.\n * @param {number} offset The offset where the block starts.\n *\n * @example\n *\n * mode.processBlock(data.words, offset);\n */\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize;\n\n // XOR and encrypt\n xorBlock.call(this, words, offset, blockSize);\n cipher.encryptBlock(words, offset);\n\n // Remember this block to use with next block\n this._prevBlock = words.slice(offset, offset + blockSize);\n }\n });\n\n /**\n * CBC decryptor.\n */\n CBC.Decryptor = CBC.extend({\n /**\n * Processes the data block at offset.\n *\n * @param {Array} words The data words to operate on.\n * @param {number} offset The offset where the block starts.\n *\n * @example\n *\n * mode.processBlock(data.words, offset);\n */\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize;\n\n // Remember this block to use with next block\n var thisBlock = words.slice(offset, offset + blockSize);\n\n // Decrypt and XOR\n cipher.decryptBlock(words, offset);\n xorBlock.call(this, words, offset, blockSize);\n\n // This block becomes the previous block\n this._prevBlock = thisBlock;\n }\n });\n\n function xorBlock (words, offset, blockSize) {\n // Shortcut\n var iv = this._iv;\n\n // Choose mixing block\n if (iv) {\n var block = iv;\n\n // Remove IV for subsequent blocks\n this._iv = undefined;\n } else {\n var block = this._prevBlock;\n }\n\n // XOR blocks\n for (var i = 0; i < blockSize; i++) {\n words[offset + i] ^= block[i];\n }\n }\n\n return CBC;\n }());\n\n /**\n * Padding namespace.\n */\n var C_pad = C.pad = {};\n\n /**\n * PKCS #5/7 padding strategy.\n */\n var Pkcs7 = C_pad.Pkcs7 = {\n /**\n * Pads data using the algorithm defined in PKCS #5/7.\n *\n * @param {WordArray} data The data to pad.\n * @param {number} blockSize The multiple that the data should be padded to.\n *\n * @static\n *\n * @example\n *\n * CryptoJS.pad.Pkcs7.pad(wordArray, 4);\n */\n pad: function (data, blockSize) {\n // Shortcut\n var blockSizeBytes = blockSize * 4;\n\n // Count padding bytes\n var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\n\n // Create padding word\n var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;\n\n // Create padding\n var paddingWords = [];\n for (var i = 0; i < nPaddingBytes; i += 4) {\n paddingWords.push(paddingWord);\n }\n var padding = WordArray.create(paddingWords, nPaddingBytes);\n\n // Add padding\n data.concat(padding);\n },\n\n /**\n * Unpads data that had been padded using the algorithm defined in PKCS #5/7.\n *\n * @param {WordArray} data The data to unpad.\n *\n * @static\n *\n * @example\n *\n * CryptoJS.pad.Pkcs7.unpad(wordArray);\n */\n unpad: function (data) {\n // Get number of padding bytes from last byte\n var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n // Remove padding\n data.sigBytes -= nPaddingBytes;\n }\n };\n\n /**\n * Abstract base block cipher template.\n *\n * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)\n */\n var BlockCipher = C_lib.BlockCipher = Cipher.extend({\n /**\n * Configuration options.\n *\n * @property {Mode} mode The block mode to use. Default: CBC\n * @property {Padding} padding The padding strategy to use. Default: Pkcs7\n */\n cfg: Cipher.cfg.extend({\n mode: CBC,\n padding: Pkcs7\n }),\n\n reset: function () {\n // Reset cipher\n Cipher.reset.call(this);\n\n // Shortcuts\n var cfg = this.cfg;\n var iv = cfg.iv;\n var mode = cfg.mode;\n\n // Reset block mode\n if (this._xformMode == this._ENC_XFORM_MODE) {\n var modeCreator = mode.createEncryptor;\n } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n var modeCreator = mode.createDecryptor;\n\n // Keep at least one block in the buffer for unpadding\n this._minBufferSize = 1;\n }\n this._mode = modeCreator.call(mode, this, iv && iv.words);\n },\n\n _doProcessBlock: function (words, offset) {\n this._mode.processBlock(words, offset);\n },\n\n _doFinalize: function () {\n // Shortcut\n var padding = this.cfg.padding;\n\n // Finalize\n if (this._xformMode == this._ENC_XFORM_MODE) {\n // Pad data\n padding.pad(this._data, this.blockSize);\n\n // Process final blocks\n var finalProcessedBlocks = this._process(!!'flush');\n } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n // Process final blocks\n var finalProcessedBlocks = this._process(!!'flush');\n\n // Unpad data\n padding.unpad(finalProcessedBlocks);\n }\n\n return finalProcessedBlocks;\n },\n\n blockSize: 128 / 32\n });\n\n /**\n * A collection of cipher parameters.\n *\n * @property {WordArray} ciphertext The raw ciphertext.\n * @property {WordArray} key The key to this ciphertext.\n * @property {WordArray} iv The IV used in the ciphering operation.\n * @property {WordArray} salt The salt used with a key derivation function.\n * @property {Cipher} algorithm The cipher algorithm.\n * @property {Mode} mode The block mode used in the ciphering operation.\n * @property {Padding} padding The padding scheme used in the ciphering operation.\n * @property {number} blockSize The block size of the cipher.\n * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.\n */\n var CipherParams = C_lib.CipherParams = Base.extend({\n /**\n * Initializes a newly created cipher params object.\n *\n * @param {Object} cipherParams An object with any of the possible cipher parameters.\n *\n * @example\n *\n * var cipherParams = CryptoJS.lib.CipherParams.create({\n * ciphertext: ciphertextWordArray,\n * key: keyWordArray,\n * iv: ivWordArray,\n * salt: saltWordArray,\n * algorithm: CryptoJS.algo.AES,\n * mode: CryptoJS.mode.CBC,\n * padding: CryptoJS.pad.PKCS7,\n * blockSize: 4,\n * formatter: CryptoJS.format.OpenSSL\n * });\n */\n init: function (cipherParams) {\n this.mixIn(cipherParams);\n },\n\n /**\n * Converts this cipher params object to a string.\n *\n * @param {Format} formatter (Optional) The formatting strategy to use.\n *\n * @return {string} The stringified cipher params.\n *\n * @throws Error If neither the formatter nor the default formatter is set.\n *\n * @example\n *\n * var string = cipherParams + '';\n * var string = cipherParams.toString();\n * var string = cipherParams.toString(CryptoJS.format.OpenSSL);\n */\n toString: function (formatter) {\n return (formatter || this.formatter).stringify(this);\n }\n });\n\n /**\n * Format namespace.\n */\n var C_format = C.format = {};\n\n /**\n * OpenSSL formatting strategy.\n */\n var OpenSSLFormatter = C_format.OpenSSL = {\n /**\n * Converts a cipher params object to an OpenSSL-compatible string.\n *\n * @param {CipherParams} cipherParams The cipher params object.\n *\n * @return {string} The OpenSSL-compatible string.\n *\n * @static\n *\n * @example\n *\n * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);\n */\n stringify: function (cipherParams) {\n // Shortcuts\n var ciphertext = cipherParams.ciphertext;\n var salt = cipherParams.salt;\n\n // Format\n if (salt) {\n var wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);\n } else {\n var wordArray = ciphertext;\n }\n\n return wordArray.toString(Base64);\n },\n\n /**\n * Converts an OpenSSL-compatible string to a cipher params object.\n *\n * @param {string} openSSLStr The OpenSSL-compatible string.\n *\n * @return {CipherParams} The cipher params object.\n *\n * @static\n *\n * @example\n *\n * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);\n */\n parse: function (openSSLStr) {\n // Parse base64\n var ciphertext = Base64.parse(openSSLStr);\n\n // Shortcut\n var ciphertextWords = ciphertext.words;\n\n // Test for salt\n if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {\n // Extract salt\n var salt = WordArray.create(ciphertextWords.slice(2, 4));\n\n // Remove salt from ciphertext\n ciphertextWords.splice(0, 4);\n ciphertext.sigBytes -= 16;\n }\n\n return CipherParams.create({ciphertext: ciphertext, salt: salt});\n }\n };\n\n /**\n * A cipher wrapper that returns ciphertext as a serializable cipher params object.\n */\n var SerializableCipher = C_lib.SerializableCipher = Base.extend({\n /**\n * Configuration options.\n *\n * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL\n */\n cfg: Base.extend({\n format: OpenSSLFormatter\n }),\n\n /**\n * Encrypts a message.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {WordArray|string} message The message to encrypt.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {CipherParams} A cipher params object.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n */\n encrypt: function (cipher, message, key, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Encrypt\n var encryptor = cipher.createEncryptor(key, cfg);\n var ciphertext = encryptor.finalize(message);\n\n // Shortcut\n var cipherCfg = encryptor.cfg;\n\n // Create and return serializable cipher params\n return CipherParams.create({\n ciphertext: ciphertext,\n key: key,\n iv: cipherCfg.iv,\n algorithm: cipher,\n mode: cipherCfg.mode,\n padding: cipherCfg.padding,\n blockSize: cipher.blockSize,\n formatter: cfg.format\n });\n },\n\n /**\n * Decrypts serialized ciphertext.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {WordArray} The plaintext.\n *\n * @static\n *\n * @example\n *\n * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n */\n decrypt: function (cipher, ciphertext, key, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Convert string to CipherParams\n ciphertext = this._parse(ciphertext, cfg.format);\n\n // Decrypt\n var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);\n\n return plaintext;\n },\n\n /**\n * Converts serialized ciphertext to CipherParams,\n * else assumed CipherParams already and returns ciphertext unchanged.\n *\n * @param {CipherParams|string} ciphertext The ciphertext.\n * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.\n *\n * @return {CipherParams} The unserialized ciphertext.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);\n */\n _parse: function (ciphertext, format) {\n if (typeof ciphertext == 'string') {\n return format.parse(ciphertext, this);\n } else {\n return ciphertext;\n }\n }\n });\n\n /**\n * Key derivation function namespace.\n */\n var C_kdf = C.kdf = {};\n\n /**\n * OpenSSL key derivation function.\n */\n var OpenSSLKdf = C_kdf.OpenSSL = {\n /**\n * Derives a key and IV from a password.\n *\n * @param {string} password The password to derive from.\n * @param {number} keySize The size in words of the key to generate.\n * @param {number} ivSize The size in words of the IV to generate.\n * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.\n *\n * @return {CipherParams} A cipher params object with the key, IV, and salt.\n *\n * @static\n *\n * @example\n *\n * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);\n * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');\n */\n execute: function (password, keySize, ivSize, salt) {\n // Generate random salt\n if (!salt) {\n salt = WordArray.random(64 / 8);\n }\n\n // Derive key and IV\n var key = EvpKDF.create({keySize: keySize + ivSize}).compute(password, salt);\n\n // Separate key and IV\n var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);\n key.sigBytes = keySize * 4;\n\n // Return params\n return CipherParams.create({key: key, iv: iv, salt: salt});\n }\n };\n\n /**\n * A serializable cipher wrapper that derives the key from a password,\n * and returns ciphertext as a serializable cipher params object.\n */\n var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({\n /**\n * Configuration options.\n *\n * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL\n */\n cfg: SerializableCipher.cfg.extend({\n kdf: OpenSSLKdf\n }),\n\n /**\n * Encrypts a message using a password.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {WordArray|string} message The message to encrypt.\n * @param {string} password The password.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {CipherParams} A cipher params object.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');\n * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });\n */\n encrypt: function (cipher, message, password, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Derive key and other params\n var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);\n\n // Add IV to config\n cfg.iv = derivedParams.iv;\n\n // Encrypt\n var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);\n\n // Mix in derived params\n ciphertext.mixIn(derivedParams);\n\n return ciphertext;\n },\n\n /**\n * Decrypts serialized ciphertext using a password.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n * @param {string} password The password.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {WordArray} The plaintext.\n *\n * @static\n *\n * @example\n *\n * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });\n * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });\n */\n decrypt: function (cipher, ciphertext, password, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Convert string to CipherParams\n ciphertext = this._parse(ciphertext, cfg.format);\n\n // Derive key and other params\n var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);\n\n // Add IV to config\n cfg.iv = derivedParams.iv;\n\n // Decrypt\n var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);\n\n return plaintext;\n }\n });\n }());\n\n /*\n CryptoJS v3.1.2\n code.google.com/p/crypto-js\n (c) 2009-2013 by Jeff Mott. All rights reserved.\n code.google.com/p/crypto-js/wiki/License\n */\n /**\n * Electronic Codebook block mode.\n */\n CryptoJS.mode.ECB = (function () {\n var ECB = CryptoJS.lib.BlockCipherMode.extend();\n\n ECB.Encryptor = ECB.extend({\n processBlock: function (words, offset) {\n this._cipher.encryptBlock(words, offset);\n }\n });\n\n ECB.Decryptor = ECB.extend({\n processBlock: function (words, offset) {\n this._cipher.decryptBlock(words, offset);\n }\n });\n\n return ECB;\n }());\n\n\n /*\n CryptoJS v3.1.2\n code.google.com/p/crypto-js\n (c) 2009-2013 by Jeff Mott. All rights reserved.\n code.google.com/p/crypto-js/wiki/License\n */\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var BlockCipher = C_lib.BlockCipher;\n var C_algo = C.algo;\n\n // Lookup tables\n var SBOX = [];\n var INV_SBOX = [];\n var SUB_MIX_0 = [];\n var SUB_MIX_1 = [];\n var SUB_MIX_2 = [];\n var SUB_MIX_3 = [];\n var INV_SUB_MIX_0 = [];\n var INV_SUB_MIX_1 = [];\n var INV_SUB_MIX_2 = [];\n var INV_SUB_MIX_3 = [];\n\n // Compute lookup tables\n (function () {\n // Compute double table\n var d = [];\n for (var i = 0; i < 256; i++) {\n if (i < 128) {\n d[i] = i << 1;\n } else {\n d[i] = (i << 1) ^ 0x11b;\n }\n }\n\n // Walk GF(2^8)\n var x = 0;\n var xi = 0;\n for (var i = 0; i < 256; i++) {\n // Compute sbox\n var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4);\n sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63;\n SBOX[x] = sx;\n INV_SBOX[sx] = x;\n\n // Compute multiplication\n var x2 = d[x];\n var x4 = d[x2];\n var x8 = d[x4];\n\n // Compute sub bytes, mix columns tables\n var t = (d[sx] * 0x101) ^ (sx * 0x1010100);\n SUB_MIX_0[x] = (t << 24) | (t >>> 8);\n SUB_MIX_1[x] = (t << 16) | (t >>> 16);\n SUB_MIX_2[x] = (t << 8) | (t >>> 24);\n SUB_MIX_3[x] = t;\n\n // Compute inv sub bytes, inv mix columns tables\n var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);\n INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);\n INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);\n INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);\n INV_SUB_MIX_3[sx] = t;\n\n // Compute next counter\n if (!x) {\n x = xi = 1;\n } else {\n x = x2 ^ d[d[d[x8 ^ x2]]];\n xi ^= d[d[xi]];\n }\n }\n }());\n\n // Precomputed Rcon lookup\n var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];\n\n /**\n * AES block cipher algorithm.\n */\n var AES = C_algo.AES = BlockCipher.extend({\n _doReset: function () {\n // Shortcuts\n var key = this._key;\n var keyWords = key.words;\n var keySize = key.sigBytes / 4;\n\n // Compute number of rounds\n var nRounds = this._nRounds = keySize + 6;\n\n // Compute number of key schedule rows\n var ksRows = (nRounds + 1) * 4;\n\n // Compute key schedule\n var keySchedule = this._keySchedule = [];\n for (var ksRow = 0; ksRow < ksRows; ksRow++) {\n if (ksRow < keySize) {\n keySchedule[ksRow] = keyWords[ksRow];\n } else {\n var t = keySchedule[ksRow - 1];\n\n if (!(ksRow % keySize)) {\n // Rot word\n t = (t << 8) | (t >>> 24);\n\n // Sub word\n t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\n\n // Mix Rcon\n t ^= RCON[(ksRow / keySize) | 0] << 24;\n } else if (keySize > 6 && ksRow % keySize == 4) {\n // Sub word\n t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\n }\n\n keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;\n }\n }\n\n // Compute inv key schedule\n var invKeySchedule = this._invKeySchedule = [];\n for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {\n var ksRow = ksRows - invKsRow;\n\n if (invKsRow % 4) {\n var t = keySchedule[ksRow];\n } else {\n var t = keySchedule[ksRow - 4];\n }\n\n if (invKsRow < 4 || ksRow <= 4) {\n invKeySchedule[invKsRow] = t;\n } else {\n invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^\n INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];\n }\n }\n },\n\n encryptBlock: function (M, offset) {\n this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);\n },\n\n decryptBlock: function (M, offset) {\n // Swap 2nd and 4th rows\n var t = M[offset + 1];\n M[offset + 1] = M[offset + 3];\n M[offset + 3] = t;\n\n this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);\n\n // Inv swap 2nd and 4th rows\n var t = M[offset + 1];\n M[offset + 1] = M[offset + 3];\n M[offset + 3] = t;\n },\n\n _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {\n // Shortcut\n var nRounds = this._nRounds;\n\n // Get input, add round key\n var s0 = M[offset] ^ keySchedule[0];\n var s1 = M[offset + 1] ^ keySchedule[1];\n var s2 = M[offset + 2] ^ keySchedule[2];\n var s3 = M[offset + 3] ^ keySchedule[3];\n\n // Key schedule row counter\n var ksRow = 4;\n\n // Rounds\n for (var round = 1; round < nRounds; round++) {\n // Shift rows, sub bytes, mix columns, add round key\n var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];\n var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];\n var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];\n var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];\n\n // Update state\n s0 = t0;\n s1 = t1;\n s2 = t2;\n s3 = t3;\n }\n\n // Shift rows, sub bytes, add round key\n var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];\n var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];\n var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];\n var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];\n\n // Set output\n M[offset] = t0;\n M[offset + 1] = t1;\n M[offset + 2] = t2;\n M[offset + 3] = t3;\n },\n\n keySize: 256 / 32\n });\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);\n */\n C.AES = BlockCipher._createHelper(AES);\n }());\n\n\n _.extend(BI, {\n /**\n * aes加密方法\n * aes-128-ecb\n *\n * @example\n *\n * var ciphertext = BI.aesEncrypt(text, key);\n */\n aesEncrypt: function (text, key) {\n key = CryptoJS.enc.Utf8.parse(key);\n var cipher = CryptoJS.AES.encrypt(text, key, {\n mode: CryptoJS.mode.ECB,\n padding: CryptoJS.pad.Pkcs7\n });\n\n var base64Cipher = cipher.ciphertext.toString(CryptoJS.enc.Base64);\n return base64Cipher;\n }\n });\n}());!(function () {\n function aspect (type) {\n return function (target, methodName, advice) {\n var exist = target[methodName],\n dispatcher;\n\n if (!exist || exist.target != target) {\n dispatcher = target[methodName] = function () {\n // before methods\n var beforeArr = dispatcher.before;\n var args = arguments, next;\n for (var l = beforeArr.length; l--;) {\n next = beforeArr[l].advice.apply(this, args);\n if (next === false) {\n return false;\n }\n args = next || args;\n }\n // target method\n var rs = dispatcher.method.apply(this, args);\n // after methods\n var afterArr = dispatcher.after;\n for (var i = 0, ii = afterArr.length; i < ii; i++) {\n next = afterArr[i].advice.call(this, rs, args);\n if (rs === false) {\n return false;\n }\n args = next || args;\n }\n return rs;\n };\n\n dispatcher.before = [];\n dispatcher.after = [];\n\n if (exist) {\n dispatcher.method = exist;\n }\n dispatcher.target = target;\n }\n\n var aspectArr = (dispatcher || exist)[type];\n var obj = {\n advice: advice,\n _index: aspectArr.length,\n remove: function () {\n aspectArr.splice(this._index, 1);\n }\n };\n aspectArr.push(obj);\n\n return obj;\n };\n }\n\n BI.aspect = {\n before: aspect(\"before\"),\n after: aspect(\"after\")\n };\n\n return BI.aspect;\n\n})();\n!(function () {\n\n var _keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\n\n // private method for UTF-8 encoding\n var _utf8_encode = function (string) {\n string = string.replace(/\\r\\n/g, \"\\n\");\n var utftext = \"\";\n\n for (var n = 0; n < string.length; n++) {\n\n var c = string.charCodeAt(n);\n\n if (c < 128) {\n utftext += String.fromCharCode(c);\n } else if ((c > 127) && (c < 2048)) {\n utftext += String.fromCharCode((c >> 6) | 192);\n utftext += String.fromCharCode((c & 63) | 128);\n } else {\n utftext += String.fromCharCode((c >> 12) | 224);\n utftext += String.fromCharCode(((c >> 6) & 63) | 128);\n utftext += String.fromCharCode((c & 63) | 128);\n }\n\n }\n\n return utftext;\n };\n\n // private method for UTF-8 decoding\n var _utf8_decode = function (utftext) {\n var string = \"\";\n var i = 0;\n var c = 0, c3 = 0, c2 = 0;\n\n while (i < utftext.length) {\n\n c = utftext.charCodeAt(i);\n\n if (c < 128) {\n string += String.fromCharCode(c);\n i++;\n } else if ((c > 191) && (c < 224)) {\n c2 = utftext.charCodeAt(i + 1);\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n i += 2;\n } else {\n c2 = utftext.charCodeAt(i + 1);\n c3 = utftext.charCodeAt(i + 2);\n string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n i += 3;\n }\n\n }\n return string;\n };\n\n _.extend(BI, {\n\n encode: function (input) {\n var output = \"\";\n var chr1, chr2, chr3, enc1, enc2, enc3, enc4;\n var i = 0;\n\n input = _utf8_encode(input);\n\n while (i < input.length) {\n\n chr1 = input.charCodeAt(i++);\n chr2 = input.charCodeAt(i++);\n chr3 = input.charCodeAt(i++);\n\n enc1 = chr1 >> 2;\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n enc4 = chr3 & 63;\n\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n\n output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n\n }\n\n return output;\n },\n\n // public method for decoding\n decode: function (input) {\n var output = \"\";\n var chr1, chr2, chr3;\n var enc1, enc2, enc3, enc4;\n var i = 0;\n\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\n while (i < input.length) {\n\n enc1 = _keyStr.indexOf(input.charAt(i++));\n enc2 = _keyStr.indexOf(input.charAt(i++));\n enc3 = _keyStr.indexOf(input.charAt(i++));\n enc4 = _keyStr.indexOf(input.charAt(i++));\n\n chr1 = (enc1 << 2) | (enc2 >> 4);\n chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n chr3 = ((enc3 & 3) << 6) | enc4;\n\n output = output + String.fromCharCode(chr1);\n\n if (enc3 != 64) {\n output = output + String.fromCharCode(chr2);\n }\n if (enc4 != 64) {\n output = output + String.fromCharCode(chr3);\n }\n\n }\n\n output = _utf8_decode(output);\n\n return output;\n\n }\n });\n})();\nBI.Cache = {\n _prefix: \"bi\",\n setUsername: function (username) {\n localStorage.setItem(BI.Cache._prefix + \".username\", (username + \"\" || \"\").toUpperCase());\n },\n getUsername: function () {\n return localStorage.getItem(BI.Cache._prefix + \".username\") || \"\";\n },\n _getKeyPrefix: function () {\n return BI.Cache.getUsername() + \".\" + BI.Cache._prefix + \".\";\n },\n _generateKey: function (key) {\n return BI.Cache._getKeyPrefix() + (key || \"\");\n },\n getItem: function (key) {\n return localStorage.getItem(BI.Cache._generateKey(key));\n },\n setItem: function (key, value) {\n localStorage.setItem(BI.Cache._generateKey(key), value);\n },\n removeItem: function (key) {\n localStorage.removeItem(BI.Cache._generateKey(key));\n },\n clear: function () {\n for (var i = localStorage.length; i >= 0; i--) {\n var key = localStorage.key(i);\n if (key) {\n if (key.indexOf(BI.Cache._getKeyPrefix()) === 0) {\n localStorage.removeItem(key);\n }\n }\n }\n },\n keys: function () {\n var result = [];\n for (var i = localStorage.length; i >= 0; i--) {\n var key = localStorage.key(i);\n if (key) {\n var prefix = BI.Cache._getKeyPrefix();\n if (key.indexOf(prefix) === 0) {\n result[result.length] = key.substring(prefix.length);\n }\n }\n }\n return result;\n },\n\n addCookie: function (name, value, path, expiresHours) {\n var cookieString = name + \"=\" + escape(value);\n // 判断是否设置过期时间\n if (expiresHours && expiresHours > 0) {\n var date = new Date();\n // expires是标准GMT格式时间,应该使用时间戳作为起始时间\n date.setTime(date.getTime() + expiresHours * 3600 * 1000);\n cookieString = cookieString + \"; expires=\" + date.toUTCString();\n }\n if (path) {\n cookieString = cookieString + \"; path=\" + path;\n }\n document.cookie = cookieString;\n },\n getCookie: function (name) {\n var arr, reg = new RegExp(\"(^| )\" + name + \"=([^;]*)(;|$)\");\n if (arr = document.cookie.match(reg)) {return unescape(arr[2]);}\n return null;\n },\n deleteCookie: function (name, path) {\n var date = new Date();\n date.setTime(date.getTime() - 10000);\n var cookieString = name + \"=v; expires=\" + date.toUTCString();\n if (path) {\n cookieString = cookieString + \"; path=\" + path;\n }\n document.cookie = cookieString;\n }\n};BI.CellSizeAndPositionManager = function (cellCount, cellSizeGetter, estimatedCellSize) {\n this._cellSizeGetter = cellSizeGetter;\n this._cellCount = cellCount;\n this._estimatedCellSize = estimatedCellSize;\n this._cellSizeAndPositionData = {};\n this._lastMeasuredIndex = -1;\n};\n\nBI.CellSizeAndPositionManager.prototype = {\n constructor: BI.CellSizeAndPositionManager,\n configure: function (cellCount, estimatedCellSize) {\n this._cellCount = cellCount;\n this._estimatedCellSize = estimatedCellSize;\n },\n\n getCellCount: function () {\n return this._cellCount;\n },\n\n getEstimatedCellSize: function () {\n return this._estimatedCellSize;\n },\n\n getLastMeasuredIndex: function () {\n return this._lastMeasuredIndex;\n },\n\n getSizeAndPositionOfCell: function (index) {\n if (index < 0 || index >= this._cellCount) {\n return;\n }\n if (index > this._lastMeasuredIndex) {\n var lastMeasuredCellSizeAndPosition = this.getSizeAndPositionOfLastMeasuredCell();\n var offset = lastMeasuredCellSizeAndPosition.offset + lastMeasuredCellSizeAndPosition.size;\n\n for (var i = this._lastMeasuredIndex + 1; i <= index; i++) {\n var size = this._cellSizeGetter(i);\n\n if (size == null || isNaN(size)) {\n continue;\n }\n\n this._cellSizeAndPositionData[i] = {\n offset: offset,\n size: size\n };\n\n offset += size;\n }\n\n this._lastMeasuredIndex = index;\n }\n return this._cellSizeAndPositionData[index];\n },\n\n getSizeAndPositionOfLastMeasuredCell: function () {\n return this._lastMeasuredIndex >= 0\n ? this._cellSizeAndPositionData[this._lastMeasuredIndex]\n : {\n offset: 0,\n size: 0\n };\n },\n\n getTotalSize: function () {\n var lastMeasuredCellSizeAndPosition = this.getSizeAndPositionOfLastMeasuredCell();\n return lastMeasuredCellSizeAndPosition.offset + lastMeasuredCellSizeAndPosition.size + (this._cellCount - this._lastMeasuredIndex - 1) * this._estimatedCellSize;\n },\n\n getUpdatedOffsetForIndex: function (align, containerSize, currentOffset, targetIndex) {\n var datum = this.getSizeAndPositionOfCell(targetIndex);\n var maxOffset = datum.offset;\n var minOffset = maxOffset - containerSize + datum.size;\n\n var idealOffset;\n\n switch (align) {\n case \"start\":\n idealOffset = maxOffset;\n break;\n case \"end\":\n idealOffset = minOffset;\n break;\n case \"center\":\n idealOffset = maxOffset - ((containerSize - datum.size) / 2);\n break;\n default:\n idealOffset = Math.max(minOffset, Math.min(maxOffset, currentOffset));\n break;\n }\n\n var totalSize = this.getTotalSize();\n\n return Math.max(0, Math.min(totalSize - containerSize, idealOffset));\n },\n\n getVisibleCellRange: function (containerSize, offset) {\n var totalSize = this.getTotalSize();\n\n if (totalSize === 0) {\n return {};\n }\n\n var maxOffset = offset + containerSize;\n var start = this._findNearestCell(offset);\n\n var datum = this.getSizeAndPositionOfCell(start);\n offset = datum.offset + datum.size;\n\n var stop = start;\n\n while (offset < maxOffset && stop < this._cellCount - 1) {\n stop++;\n offset += this.getSizeAndPositionOfCell(stop).size;\n }\n\n return {\n start: start,\n stop: stop\n };\n },\n\n resetCell: function (index) {\n this._lastMeasuredIndex = Math.min(this._lastMeasuredIndex, index - 1);\n },\n\n _binarySearch: function (high, low, offset) {\n var middle;\n var currentOffset;\n\n while (low <= high) {\n middle = low + Math.floor((high - low) / 2);\n currentOffset = this.getSizeAndPositionOfCell(middle).offset;\n\n if (currentOffset === offset) {\n return middle;\n } else if (currentOffset < offset) {\n low = middle + 1;\n } else if (currentOffset > offset) {\n high = middle - 1;\n }\n }\n\n if (low > 0) {\n return low - 1;\n }\n },\n\n _exponentialSearch: function (index, offset) {\n var interval = 1;\n\n while (index < this._cellCount && this.getSizeAndPositionOfCell(index).offset < offset) {\n index += interval;\n interval *= 2;\n }\n\n return this._binarySearch(Math.min(index, this._cellCount - 1), Math.floor(index / 2), offset);\n },\n\n _findNearestCell: function (offset) {\n if (isNaN(offset)) {\n return;\n }\n\n offset = Math.max(0, offset);\n\n var lastMeasuredCellSizeAndPosition = this.getSizeAndPositionOfLastMeasuredCell();\n var lastMeasuredIndex = Math.max(0, this._lastMeasuredIndex);\n\n if (lastMeasuredCellSizeAndPosition.offset >= offset) {\n return this._binarySearch(lastMeasuredIndex, 0, offset);\n }\n return this._exponentialSearch(lastMeasuredIndex, offset);\n \n }\n};\n\nBI.ScalingCellSizeAndPositionManager = function (cellCount, cellSizeGetter, estimatedCellSize, maxScrollSize) {\n this._cellSizeAndPositionManager = new BI.CellSizeAndPositionManager(cellCount, cellSizeGetter, estimatedCellSize);\n this._maxScrollSize = maxScrollSize || 10000000;\n};\n\nBI.ScalingCellSizeAndPositionManager.prototype = {\n constructor: BI.ScalingCellSizeAndPositionManager,\n\n configure: function () {\n this._cellSizeAndPositionManager.configure.apply(this._cellSizeAndPositionManager, arguments);\n },\n\n getCellCount: function () {\n return this._cellSizeAndPositionManager.getCellCount();\n },\n\n getEstimatedCellSize: function () {\n return this._cellSizeAndPositionManager.getEstimatedCellSize();\n },\n\n getLastMeasuredIndex: function () {\n return this._cellSizeAndPositionManager.getLastMeasuredIndex();\n },\n\n getOffsetAdjustment: function (containerSize, offset) {\n var totalSize = this._cellSizeAndPositionManager.getTotalSize();\n var safeTotalSize = this.getTotalSize();\n var offsetPercentage = this._getOffsetPercentage(containerSize, offset, safeTotalSize);\n\n return Math.round(offsetPercentage * (safeTotalSize - totalSize));\n },\n\n getSizeAndPositionOfCell: function (index) {\n return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(index);\n },\n\n getSizeAndPositionOfLastMeasuredCell: function () {\n return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell();\n },\n\n getTotalSize: function () {\n return Math.min(this._maxScrollSize, this._cellSizeAndPositionManager.getTotalSize());\n },\n\n getUpdatedOffsetForIndex: function (align, containerSize, currentOffset, targetIndex) {\n currentOffset = this._safeOffsetToOffset(containerSize, currentOffset);\n\n var offset = this._cellSizeAndPositionManager.getUpdatedOffsetForIndex(align, containerSize, currentOffset, targetIndex);\n\n return this._offsetToSafeOffset(containerSize, offset);\n },\n\n getVisibleCellRange: function (containerSize, offset) {\n offset = this._safeOffsetToOffset(containerSize, offset);\n\n return this._cellSizeAndPositionManager.getVisibleCellRange(containerSize, offset);\n },\n\n resetCell: function (index) {\n this._cellSizeAndPositionManager.resetCell(index);\n },\n\n _getOffsetPercentage: function (containerSize, offset, totalSize) {\n return totalSize <= containerSize\n ? 0\n : offset / (totalSize - containerSize);\n },\n\n _offsetToSafeOffset: function (containerSize, offset) {\n var totalSize = this._cellSizeAndPositionManager.getTotalSize();\n var safeTotalSize = this.getTotalSize();\n\n if (totalSize === safeTotalSize) {\n return offset;\n }\n var offsetPercentage = this._getOffsetPercentage(containerSize, offset, totalSize);\n\n return Math.round(offsetPercentage * (safeTotalSize - containerSize));\n \n },\n\n _safeOffsetToOffset: function (containerSize, offset) {\n var totalSize = this._cellSizeAndPositionManager.getTotalSize();\n var safeTotalSize = this.getTotalSize();\n\n if (totalSize === safeTotalSize) {\n return offset;\n }\n var offsetPercentage = this._getOffsetPercentage(containerSize, offset, safeTotalSize);\n\n return Math.round(offsetPercentage * (totalSize - containerSize));\n \n }\n};/**\n * 汉字拼音索引\n */\n\n!(function () {\n var _ChineseFirstPY = \"YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYY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.51windows.net/pages/pinyin.asp\n var oMultiDiff = {\n 19969: \"DZ\",\n 19975: \"WM\",\n 19988: \"QJ\",\n 20048: \"YL\",\n 20056: \"SC\",\n 20060: \"NM\",\n 20094: \"QG\",\n 20127: \"QJ\",\n 20167: \"QC\",\n 20193: \"YG\",\n 20250: \"KH\",\n 20256: \"ZC\",\n 20282: \"SC\",\n 20285: \"QJG\",\n 20291: \"TD\",\n 20314: \"YD\",\n 20315: \"BF\",\n 20340: \"NE\",\n 20375: \"TD\",\n 20389: \"YJ\",\n 20391: \"CZ\",\n 20415: \"PB\",\n 20446: \"YS\",\n 20447: \"SQ\",\n 20504: \"TC\",\n 20608: \"KG\",\n 20854: \"QJ\",\n 20857: \"ZC\",\n 20911: \"PF\",\n 20985: \"AW\",\n 21032: \"PB\",\n 21048: \"XQ\",\n 21049: \"SC\",\n 21089: \"YS\",\n 21119: \"JC\",\n 21242: \"SB\",\n 21273: \"SC\",\n 21305: \"YP\",\n 21306: \"QO\",\n 21330: \"ZC\",\n 21333: \"SDC\",\n 21345: \"QK\",\n 21378: \"CA\",\n 21397: \"SC\",\n 21414: \"XS\",\n 21442: \"SC\",\n 21477: \"JG\",\n 21480: \"TD\",\n 21484: \"ZS\",\n 21494: \"YX\",\n 21505: \"YX\",\n 21512: \"HG\",\n 21523: \"XH\",\n 21537: \"PB\",\n 21542: \"PF\",\n 21549: \"KH\",\n 21571: \"E\",\n 21574: \"DA\",\n 21588: \"TD\",\n 21589: \"O\",\n 21618: \"ZC\",\n 21621: \"KHA\",\n 21632: \"ZJ\",\n 21654: \"KG\",\n 21679: \"LKG\",\n 21683: \"KH\",\n 21710: \"A\",\n 21719: \"YH\",\n 21734: \"WOE\",\n 21769: \"A\",\n 21780: \"WN\",\n 21804: \"XH\",\n 21834: \"A\",\n 21899: \"ZD\",\n 21903: \"RN\",\n 21908: \"WO\",\n 21939: \"ZC\",\n 21956: \"SA\",\n 21964: \"YA\",\n 21970: \"TD\",\n 22003: \"A\",\n 22031: \"JG\",\n 22040: \"XS\",\n 22060: \"ZC\",\n 22066: \"ZC\",\n 22079: \"MH\",\n 22129: \"XJ\",\n 22179: \"XA\",\n 22237: \"NJ\",\n 22244: \"TD\",\n 22280: \"JQ\",\n 22300: \"YH\",\n 22313: \"XW\",\n 22331: \"YQ\",\n 22343: \"YJ\",\n 22351: \"PH\",\n 22395: \"DC\",\n 22412: \"TD\",\n 22484: \"PB\",\n 22500: \"PB\",\n 22534: \"ZD\",\n 22549: \"DH\",\n 22561: \"PB\",\n 22612: \"TD\",\n 22771: \"KQ\",\n 22831: \"HB\",\n 22841: \"JG\",\n 22855: \"QJ\",\n 22865: \"XQ\",\n 23013: \"ML\",\n 23081: \"WM\",\n 23487: \"SX\",\n 23558: \"QJ\",\n 23561: \"YW\",\n 23586: \"YW\",\n 23614: \"YW\",\n 23615: \"SN\",\n 23631: \"PB\",\n 23646: \"ZS\",\n 23663: \"ZT\",\n 23673: \"YG\",\n 23762: \"TD\",\n 23769: \"ZS\",\n 23780: \"QJ\",\n 23884: \"QK\",\n 24055: \"XH\",\n 24113: \"DC\",\n 24162: \"ZC\",\n 24191: \"GA\",\n 24273: \"QJ\",\n 24324: \"NL\",\n 24377: \"TD\",\n 24378: \"QJ\",\n 24439: \"PF\",\n 24554: \"ZS\",\n 24683: \"TD\",\n 24694: \"WE\",\n 24733: \"LK\",\n 24925: \"TN\",\n 25094: \"ZG\",\n 25100: \"XQ\",\n 25103: \"XH\",\n 25153: \"PB\",\n 25170: \"PB\",\n 25179: \"KG\",\n 25203: \"PB\",\n 25240: \"ZS\",\n 25282: \"FB\",\n 25303: \"NA\",\n 25324: \"KG\",\n 25341: \"ZY\",\n 25373: \"WZ\",\n 25375: \"XJ\",\n 25384: \"A\",\n 25457: \"A\",\n 25528: \"SD\",\n 25530: \"SC\",\n 25552: \"TD\",\n 25774: \"ZC\",\n 25874: \"ZC\",\n 26044: \"YW\",\n 26080: \"WM\",\n 26292: \"PB\",\n 26333: \"PB\",\n 26355: \"ZY\",\n 26366: \"CZ\",\n 26397: \"ZC\",\n 26399: \"QJ\",\n 26415: \"ZS\",\n 26451: \"SB\",\n 26526: \"ZC\",\n 26552: \"JG\",\n 26561: \"TD\",\n 26588: \"JG\",\n 26597: \"CZ\",\n 26629: \"ZS\",\n 26638: \"YL\",\n 26646: \"XQ\",\n 26653: \"KG\",\n 26657: \"XJ\",\n 26727: \"HG\",\n 26894: \"ZC\",\n 26937: \"ZS\",\n 26946: \"ZC\",\n 26999: \"KJ\",\n 27099: \"KJ\",\n 27449: \"YQ\",\n 27481: \"XS\",\n 27542: \"ZS\",\n 27663: \"ZS\",\n 27748: \"TS\",\n 27784: \"SC\",\n 27788: \"ZD\",\n 27795: \"TD\",\n 27812: \"O\",\n 27850: \"PB\",\n 27852: \"MB\",\n 27895: \"SL\",\n 27898: \"PL\",\n 27973: \"QJ\",\n 27981: \"KH\",\n 27986: \"HX\",\n 27994: \"XJ\",\n 28044: \"YC\",\n 28065: \"WG\",\n 28177: \"SM\",\n 28267: \"QJ\",\n 28291: \"KH\",\n 28337: \"ZQ\",\n 28463: \"TL\",\n 28548: \"DC\",\n 28601: \"TD\",\n 28689: \"PB\",\n 28805: \"JG\",\n 28820: \"QG\",\n 28846: \"PB\",\n 28952: \"TD\",\n 28975: \"ZC\",\n 29100: \"A\",\n 29325: \"QJ\",\n 29575: \"SL\",\n 29602: \"FB\",\n 30010: \"TD\",\n 30044: \"CX\",\n 30058: \"PF\",\n 30091: \"YSP\",\n 30111: \"YN\",\n 30229: \"XJ\",\n 30427: \"SC\",\n 30465: \"SX\",\n 30631: \"YQ\",\n 30655: \"QJ\",\n 30684: \"QJG\",\n 30707: \"SD\",\n 30729: \"XH\",\n 30796: \"LG\",\n 30917: \"PB\",\n 31074: \"NM\",\n 31085: \"JZ\",\n 31109: \"SC\",\n 31181: \"ZC\",\n 31192: \"MLB\",\n 31293: \"JQ\",\n 31400: \"YX\",\n 31584: \"YJ\",\n 31896: \"ZN\",\n 31909: \"ZY\",\n 31995: \"XJ\",\n 32321: \"PF\",\n 32327: \"ZY\",\n 32418: \"HG\",\n 32420: \"XQ\",\n 32421: \"HG\",\n 32438: \"LG\",\n 32473: \"GJ\",\n 32488: \"TD\",\n 32521: \"QJ\",\n 32527: \"PB\",\n 32562: \"ZSQ\",\n 32564: \"JZ\",\n 32735: \"ZD\",\n 32793: \"PB\",\n 33071: \"PF\",\n 33098: \"XL\",\n 33100: \"YA\",\n 33152: \"PB\",\n 33261: \"CX\",\n 33324: \"BP\",\n 33333: \"TD\",\n 33406: \"YA\",\n 33426: \"WM\",\n 33432: \"PB\",\n 33445: \"JG\",\n 33486: \"ZN\",\n 33493: \"TS\",\n 33507: \"QJ\",\n 33540: \"QJ\",\n 33544: \"ZC\",\n 33564: \"XQ\",\n 33617: \"YT\",\n 33632: \"QJ\",\n 33636: \"XH\",\n 33637: \"YX\",\n 33694: \"WG\",\n 33705: \"PF\",\n 33728: \"YW\",\n 33882: \"SR\",\n 34067: \"WM\",\n 34074: \"YW\",\n 34121: \"QJ\",\n 34255: \"ZC\",\n 34259: \"XL\",\n 34425: \"JH\",\n 34430: \"XH\",\n 34485: \"KH\",\n 34503: \"YS\",\n 34532: \"HG\",\n 34552: \"XS\",\n 34558: \"YE\",\n 34593: \"ZL\",\n 34660: \"YQ\",\n 34892: \"XH\",\n 34928: \"SC\",\n 34999: \"QJ\",\n 35048: \"PB\",\n 35059: \"SC\",\n 35098: \"ZC\",\n 35203: \"TQ\",\n 35265: \"JX\",\n 35299: \"JX\",\n 35782: \"SZ\",\n 35828: \"YS\",\n 35830: \"E\",\n 35843: \"TD\",\n 35895: \"YG\",\n 35977: \"MH\",\n 36158: \"JG\",\n 36228: \"QJ\",\n 36426: \"XQ\",\n 36466: \"DC\",\n 36710: \"JC\",\n 36711: \"ZYG\",\n 36767: \"PB\",\n 36866: \"SK\",\n 36951: \"YW\",\n 37034: \"YX\",\n 37063: \"XH\",\n 37218: \"ZC\",\n 37325: \"ZC\",\n 38063: \"PB\",\n 38079: \"TD\",\n 38085: \"QY\",\n 38107: \"DC\",\n 38116: \"TD\",\n 38123: \"YD\",\n 38224: \"HG\",\n 38241: \"XTC\",\n 38271: \"ZC\",\n 38415: \"YE\",\n 38426: \"KH\",\n 38461: \"YD\",\n 38463: \"AE\",\n 38466: \"PB\",\n 38477: \"XJ\",\n 38518: \"YT\",\n 38551: \"WK\",\n 38585: \"ZC\",\n 38704: \"XS\",\n 38739: \"LJ\",\n 38761: \"GJ\",\n 38808: \"SQ\",\n 39048: \"JG\",\n 39049: \"XJ\",\n 39052: \"HG\",\n 39076: \"CZ\",\n 39271: \"XT\",\n 39534: \"TD\",\n 39552: \"TD\",\n 39584: \"PB\",\n 39647: \"SB\",\n 39730: \"LG\",\n 39748: \"TPB\",\n 40109: \"ZQ\",\n 40479: \"ND\",\n 40516: \"HG\",\n 40536: \"HG\",\n 40583: \"QJ\",\n 40765: \"YQ\",\n 40784: \"QJ\",\n 40840: \"YK\",\n 40863: \"QJG\"\n };\n\n var _checkPYCh = function (ch) {\n var uni = ch.charCodeAt(0);\n // 如果不在汉字处理范围之内,返回原字符,也可以调用自己的处理函数\n if (uni > 40869 || uni < 19968) {return ch;} // dealWithOthers(ch);\n return (oMultiDiff[uni] ? oMultiDiff[uni] : (_ChineseFirstPY.charAt(uni - 19968)));\n };\n\n var _mkPYRslt = function (arr, options) {\n var ignoreMulti = options.ignoreMulti;\n var splitChar = options.splitChar;\n var arrRslt = [\"\"], k, multiLen = 0;\n for (var i = 0, len = arr.length; i < len; i++) {\n var str = arr[i];\n var strlen = str.length;\n // 多音字过多的情况下,指数增长会造成浏览器卡死,超过20完全卡死,18勉强能用,考虑到不同性能最好是16或者14\n // 超过14个多音字之后,后面的都用第一个拼音\n if (strlen == 1 || multiLen > 14 || ignoreMulti) {\n var tmpStr = str.substring(0, 1);\n for (k = 0; k < arrRslt.length; k++) {\n arrRslt[k] += tmpStr;\n }\n } else {\n var tmpArr = arrRslt.slice(0);\n arrRslt = [];\n multiLen ++;\n for (k = 0; k < strlen; k++) {\n // 复制一个相同的arrRslt\n var tmp = tmpArr.slice(0);\n // 把当前字符str[k]添加到每个元素末尾\n for (var j = 0; j < tmp.length; j++) {\n tmp[j] += str.charAt(k);\n }\n // 把复制并修改后的数组连接到arrRslt上\n arrRslt = arrRslt.concat(tmp);\n }\n }\n }\n // BI-56386 这边直接将所有多音字组合拼接是有风险的,因为丢失了每一组的起始索引信息, 外部使用indexOf等方法会造成错位\n // 一旦错位就可能认为不符合条件, 但实际上还是有可能符合条件的,故此处以一个无法搜索的不可见字符作为连接\n return arrRslt.join(splitChar || \"\").toLowerCase();\n };\n\n _.extend(BI, {\n makeFirstPY: function (str, options) {\n options = options || {};\n if (typeof (str) !== \"string\") {return \"\" + str;}\n var arrResult = []; // 保存中间结果的数组\n for (var i = 0, len = str.length; i < len; i++) {\n // 获得unicode码\n var ch = str.charAt(i);\n // 检查该unicode码是否在处理范围之内,在则返回该码对映汉字的拼音首字母,不在则调用其它函数处理\n arrResult.push(_checkPYCh(ch));\n }\n // 处理arrResult,返回所有可能的拼音首字母串数组\n return _mkPYRslt(arrResult, options);\n }\n });\n})();!(function () {\n var cancelAnimationFrame =\n _global.cancelAnimationFrame ||\n _global.webkitCancelAnimationFrame ||\n _global.mozCancelAnimationFrame ||\n _global.oCancelAnimationFrame ||\n _global.msCancelAnimationFrame ||\n _global.clearTimeout;\n\n var requestAnimationFrame = _global.requestAnimationFrame || _global.webkitRequestAnimationFrame || _global.mozRequestAnimationFrame || _global.oRequestAnimationFrame || _global.msRequestAnimationFrame || _global.setTimeout;\n\n\n BI.MouseMoveTracker = function (onMove, onMoveEnd, domNode) {\n this._isDragging = false;\n this._animationFrameID = null;\n this._domNode = domNode;\n this._onMove = onMove;\n this._onMoveEnd = onMoveEnd;\n\n this._onMouseMove = BI.bind(this._onMouseMove, this);\n this._onMouseUp = BI.bind(this._onMouseUp, this);\n this._didMouseMove = BI.bind(this._didMouseMove, this);\n };\n BI.MouseMoveTracker.prototype = {\n constructor: BI.MouseMoveTracker,\n captureMouseMoves: function (/* object*/ event) {\n if (!this._eventMoveToken && !this._eventUpToken) {\n this._eventMoveToken = BI.EventListener.listen(\n this._domNode,\n \"mousemove\",\n this._onMouseMove\n );\n this._eventUpToken = BI.EventListener.listen(\n this._domNode,\n \"mouseup\",\n this._onMouseUp\n );\n }\n\n if (!this._isDragging) {\n this._deltaX = 0;\n this._deltaY = 0;\n this._isDragging = true;\n this._x = event.clientX;\n this._y = event.clientY;\n }\n event.preventDefault ? event.preventDefault() : (event.returnValue = false);\n },\n\n releaseMouseMoves: function () {\n if (this._eventMoveToken && this._eventUpToken) {\n this._eventMoveToken.remove();\n this._eventMoveToken = null;\n this._eventUpToken.remove();\n this._eventUpToken = null;\n }\n\n if (this._animationFrameID !== null) {\n cancelAnimationFrame(this._animationFrameID);\n this._animationFrameID = null;\n }\n\n if (this._isDragging) {\n this._isDragging = false;\n this._x = null;\n this._y = null;\n }\n },\n\n isDragging: function () /* boolean*/ {\n return this._isDragging;\n },\n\n _onMouseMove: function (/* object*/ event) {\n var x = event.clientX;\n var y = event.clientY;\n\n this._deltaX += (x - this._x);\n this._deltaY += (y - this._y);\n\n if (this._animationFrameID === null) {\n // The mouse may move faster then the animation frame does.\n // Use `requestAnimationFrame` to avoid over-updating.\n this._animationFrameID =\n requestAnimationFrame(this._didMouseMove);\n }\n\n this._x = x;\n this._y = y;\n event.preventDefault ? event.preventDefault() : (event.returnValue = false);\n },\n\n _didMouseMove: function () {\n this._animationFrameID = null;\n this._onMove(this._deltaX, this._deltaY);\n this._deltaX = 0;\n this._deltaY = 0;\n },\n\n _onMouseUp: function () {\n if (this._animationFrameID) {\n this._didMouseMove();\n }\n this._onMoveEnd();\n }\n };\n})();!(function () {\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n var requestAnimationFrame = _global.requestAnimationFrame || _global.webkitRequestAnimationFrame || _global.mozRequestAnimationFrame || _global.oRequestAnimationFrame || _global.msRequestAnimationFrame || _global.setTimeout;\n\n function normalizeWheel (/* object*/event) /* object*/ {\n var sX = 0,\n sY = 0,\n // spinX, spinY\n pX = 0,\n pY = 0; // pixelX, pixelY\n\n // Legacy\n if (\"detail\" in event) {\n sY = event.detail;\n }\n if (\"wheelDelta\" in event) {\n sY = -event.wheelDelta / 120;\n }\n if (\"wheelDeltaY\" in event) {\n sY = -event.wheelDeltaY / 120;\n }\n if (\"wheelDeltaX\" in event) {\n sX = -event.wheelDeltaX / 120;\n }\n\n // side scrolling on FF with DOMMouseScroll\n if (\"axis\" in event && event.axis === event.HORIZONTAL_AXIS) {\n sX = sY;\n sY = 0;\n }\n\n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n\n if (\"deltaY\" in event) {\n pY = event.deltaY;\n }\n if (\"deltaX\" in event) {\n pX = event.deltaX;\n }\n\n if ((pX || pY) && event.deltaMode) {\n if (event.deltaMode === 1) {\n // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else {\n // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n\n // Fall-back if spin cannot be determined\n if (pX && !sX) {\n sX = pX < 1 ? -1 : 1;\n }\n if (pY && !sY) {\n sY = pY < 1 ? -1 : 1;\n }\n\n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }\n\n BI.WheelHandler = function (onWheel, handleScrollX, handleScrollY, stopPropagation) {\n this._animationFrameID = null;\n this._deltaX = 0;\n this._deltaY = 0;\n this._didWheel = BI.bind(this._didWheel, this);\n if (typeof handleScrollX !== \"function\") {\n handleScrollX = handleScrollX ?\n function () {\n return true;\n } :\n function () {\n return false;\n };\n }\n\n if (typeof handleScrollY !== \"function\") {\n handleScrollY = handleScrollY ?\n function () {\n return true;\n } :\n function () {\n return false;\n };\n }\n\n if (typeof stopPropagation !== \"function\") {\n stopPropagation = stopPropagation ?\n function () {\n return true;\n } :\n function () {\n return false;\n };\n }\n\n this._handleScrollX = handleScrollX;\n this._handleScrollY = handleScrollY;\n this._stopPropagation = stopPropagation;\n this._onWheelCallback = onWheel;\n this.onWheel = BI.bind(this.onWheel, this);\n };\n BI.WheelHandler.prototype = {\n constructor: BI.WheelHandler,\n onWheel: function (/* object*/ event) {\n var normalizedEvent = normalizeWheel(event);\n var deltaX = this._deltaX + normalizedEvent.pixelX;\n var deltaY = this._deltaY + normalizedEvent.pixelY;\n var handleScrollX = this._handleScrollX(deltaX, deltaY);\n var handleScrollY = this._handleScrollY(deltaY, deltaX);\n if (!handleScrollX && !handleScrollY) {\n return;\n }\n\n this._deltaX += handleScrollX ? normalizedEvent.pixelX : 0;\n this._deltaY += handleScrollY ? normalizedEvent.pixelY : 0;\n event.preventDefault ? event.preventDefault() : (event.returnValue = false);\n\n var changed;\n if (this._deltaX !== 0 || this._deltaY !== 0) {\n if (this._stopPropagation()) {\n event.stopPropagation ? event.stopPropagation() : (event.cancelBubble = true);\n }\n changed = true;\n }\n\n if (changed === true && this._animationFrameID === null) {\n this._animationFrameID = requestAnimationFrame(this._didWheel);\n }\n },\n\n _didWheel: function () {\n this._animationFrameID = null;\n this._onWheelCallback(this._deltaX, this._deltaY);\n this._deltaX = 0;\n this._deltaY = 0;\n }\n };\n})();\n(function () {\n function defaultComparator (a, b) {\n return a < b;\n }\n\n BI.Heap = function (items, comparator) {\n this._items = items || [];\n this._size = this._items.length;\n this._comparator = comparator || defaultComparator;\n this._heapify();\n };\n\n BI.Heap.prototype = {\n constructor: BI.Heap,\n empty: function () {\n return this._size === 0;\n },\n\n pop: function () {\n if (this._size === 0) {\n return;\n }\n\n var elt = this._items[0];\n\n var lastElt = this._items.pop();\n this._size--;\n\n if (this._size > 0) {\n this._items[0] = lastElt;\n this._sinkDown(0);\n }\n\n return elt;\n },\n\n push: function (item) {\n this._items[this._size++] = item;\n this._bubbleUp(this._size - 1);\n },\n\n size: function () {\n return this._size;\n },\n\n peek: function () {\n if (this._size === 0) {\n return;\n }\n\n return this._items[0];\n },\n\n _heapify: function () {\n for (var index = Math.floor((this._size + 1) / 2); index >= 0; index--) {\n this._sinkDown(index);\n }\n },\n\n _bubbleUp: function (index) {\n var elt = this._items[index];\n while (index > 0) {\n var parentIndex = Math.floor((index + 1) / 2) - 1;\n var parentElt = this._items[parentIndex];\n\n // if parentElt < elt, stop\n if (this._comparator(parentElt, elt)) {\n return;\n }\n\n // swap\n this._items[parentIndex] = elt;\n this._items[index] = parentElt;\n index = parentIndex;\n }\n },\n\n _sinkDown: function (index) {\n var elt = this._items[index];\n\n while (true) {\n var leftChildIndex = 2 * (index + 1) - 1;\n var rightChildIndex = 2 * (index + 1);\n var swapIndex = -1;\n\n if (leftChildIndex < this._size) {\n var leftChild = this._items[leftChildIndex];\n if (this._comparator(leftChild, elt)) {\n swapIndex = leftChildIndex;\n }\n }\n\n if (rightChildIndex < this._size) {\n var rightChild = this._items[rightChildIndex];\n if (this._comparator(rightChild, elt)) {\n if (swapIndex === -1 ||\n this._comparator(rightChild, this._items[swapIndex])) {\n swapIndex = rightChildIndex;\n }\n }\n }\n\n // if we don't have a swap, stop\n if (swapIndex === -1) {\n return;\n }\n\n this._items[index] = this._items[swapIndex];\n this._items[swapIndex] = elt;\n index = swapIndex;\n }\n }\n };\n})();\n\n!(function () {\n BI.LinkHashMap = function () {\n this.array = [];\n this.map = {};\n };\n BI.LinkHashMap.prototype = {\n constructor: BI.LinkHashMap,\n has: function (key) {\n if (key in this.map) {\n return true;\n }\n return false;\n },\n\n add: function (key, value) {\n if (typeof key === \"undefined\") {\n return;\n }\n if (key in this.map) {\n this.map[key] = value;\n } else {\n this.array.push(key);\n this.map[key] = value;\n }\n },\n\n remove: function (key) {\n if (key in this.map) {\n delete this.map[key];\n for (var i = 0; i < this.array.length; i++) {\n if (this.array[i] == key) {\n this.array.splice(i, 1);\n break;\n }\n }\n }\n },\n\n size: function () {\n return this.array.length;\n },\n\n each: function (fn, scope) {\n var scope = scope || window;\n var fn = fn || null;\n if (fn == null || typeof (fn) !== \"function\") {\n return;\n }\n for (var i = 0; i < this.array.length; i++) {\n var key = this.array[i];\n var value = this.map[key];\n var re = fn.call(scope, key, value, i, this.array, this.map);\n if (re == false) {\n break;\n }\n }\n },\n\n get: function (key) {\n return this.map[key];\n },\n\n toArray: function () {\n var array = [];\n this.each(function (key, value) {\n array.push(value);\n });\n return array;\n }\n };\n})();\n!(function () {\n BI.LRU = function (limit) {\n this.size = 0;\n this.limit = limit;\n this.head = this.tail = undefined;\n this._keymap = {};\n };\n\n var p = BI.LRU.prototype;\n\n p.put = function (key, value) {\n var removed;\n if (this.size === this.limit) {\n removed = this.shift();\n }\n\n var entry = this.get(key, true);\n if (!entry) {\n entry = {\n key: key\n };\n this._keymap[key] = entry;\n if (this.tail) {\n this.tail.newer = entry;\n entry.older = this.tail;\n } else {\n this.head = entry;\n }\n this.tail = entry;\n this.size++;\n }\n entry.value = value;\n\n return removed;\n };\n\n p.shift = function () {\n var entry = this.head;\n if (entry) {\n this.head = this.head.newer;\n this.head.older = undefined;\n entry.newer = entry.older = undefined;\n this._keymap[entry.key] = undefined;\n this.size--;\n }\n return entry;\n };\n\n\n p.get = function (key, returnEntry) {\n var entry = this._keymap[key];\n if (entry === undefined) return;\n if (entry === this.tail) {\n return returnEntry\n ? entry\n : entry.value;\n }\n // HEAD--------------TAIL\n // <.older .newer>\n // <--- add direction --\n // A B C <D> E\n if (entry.newer) {\n if (entry === this.head) {\n this.head = entry.newer;\n }\n entry.newer.older = entry.older; // C <-- E.\n }\n if (entry.older) {\n entry.older.newer = entry.newer; // C. --> E\n }\n entry.newer = undefined; // D --x\n entry.older = this.tail; // D. --> E\n if (this.tail) {\n this.tail.newer = entry; // E. <-- D\n }\n this.tail = entry;\n return returnEntry\n ? entry\n : entry.value;\n };\n\n p.has = function (key) {\n return this._keymap[key] != null;\n };\n})();// 线段树\n(function () {\n var parent = function (node) {\n return Math.floor(node / 2);\n };\n\n var Int32Array = _global.Int32Array || function (size) {\n var xs = [];\n for (var i = size - 1; i >= 0; --i) {\n xs[i] = 0;\n }\n return xs;\n };\n\n var ceilLog2 = function (x) {\n var y = 1;\n while (y < x) {\n y *= 2;\n }\n return y;\n };\n\n BI.PrefixIntervalTree = function (xs) {\n this._size = xs.length;\n this._half = ceilLog2(this._size);\n // _heap是一个_size两倍以上的堆\n this._heap = new Int32Array(2 * this._half);\n\n var i;\n // 初始化 >= _size 的堆空间, 即叶子节点\n for (i = 0; i < this._size; ++i) {\n this._heap[this._half + i] = xs[i];\n }\n // 初始化 < _size 的堆空间, 即非叶子节点,根节点包含整个区间\n for (i = this._half - 1; i > 0; --i) {\n this._heap[i] = this._heap[2 * i] + this._heap[2 * i + 1];\n }\n };\n\n BI.PrefixIntervalTree.prototype = {\n constructor: BI.PrefixIntervalTree,\n // 往_half之后的空间set值,需要更新其所有祖先节点的值\n set: function (index, value) {\n var node = this._half + index;\n this._heap[node] = value;\n\n node = parent(node);\n for (; node !== 0; node = parent(node)) {\n this._heap[node] =\n this._heap[2 * node] + this._heap[2 * node + 1];\n }\n },\n\n get: function (index) {\n var node = this._half + index;\n return this._heap[node];\n },\n\n getSize: function () {\n return this._size;\n },\n\n /**\n * get(0) + get(1) + ... + get(end - 1).\n */\n sumUntil: function (end) {\n if (end === 0) {\n return 0;\n }\n\n var node = this._half + end - 1;\n var sum = this._heap[node];\n for (; node !== 1; node = parent(node)) {\n if (node % 2 === 1) {\n sum += this._heap[node - 1];\n }\n }\n\n return sum;\n },\n\n /**\n * get(0) + get(1) + ... + get(inclusiveEnd).\n */\n sumTo: function (inclusiveEnd) {\n return this.sumUntil(inclusiveEnd + 1);\n },\n\n /**\n * sum get(begin) + get(begin + 1) + ... + get(end - 1).\n */\n sum: function (begin, end) {\n return this.sumUntil(end) - this.sumUntil(begin);\n },\n\n /**\n * Returns the smallest i such that 0 <= i <= size and sumUntil(i) <= t, or\n * -1 if no such i exists.\n */\n greatestLowerBound: function (t) {\n if (t < 0) {\n return -1;\n }\n\n var node = 1;\n if (this._heap[node] <= t) {\n return this._size;\n }\n\n while (node < this._half) {\n var leftSum = this._heap[2 * node];\n if (t < leftSum) {\n node = 2 * node;\n } else {\n node = 2 * node + 1;\n t -= leftSum;\n }\n }\n\n return node - this._half;\n },\n\n /**\n * Returns the smallest i such that 0 <= i <= size and sumUntil(i) < t, or\n * -1 if no such i exists.\n */\n greatestStrictLowerBound: function (t) {\n if (t <= 0) {\n return -1;\n }\n\n var node = 1;\n if (this._heap[node] < t) {\n return this._size;\n }\n\n while (node < this._half) {\n var leftSum = this._heap[2 * node];\n if (t <= leftSum) {\n node = 2 * node;\n } else {\n node = 2 * node + 1;\n t -= leftSum;\n }\n }\n\n return node - this._half;\n },\n\n /**\n * Returns the smallest i such that 0 <= i <= size and t <= sumUntil(i), or\n * size + 1 if no such i exists.\n */\n leastUpperBound: function (t) {\n return this.greatestStrictLowerBound(t) + 1;\n },\n\n /**\n * Returns the smallest i such that 0 <= i <= size and t < sumUntil(i), or\n * size + 1 if no such i exists.\n */\n leastStrictUpperBound: function (t) {\n return this.greatestLowerBound(t) + 1;\n }\n };\n\n BI.PrefixIntervalTree.uniform = function (size, initialValue) {\n var xs = [];\n for (var i = size - 1; i >= 0; --i) {\n xs[i] = initialValue;\n }\n\n return new BI.PrefixIntervalTree(xs);\n };\n\n BI.PrefixIntervalTree.empty = function (size) {\n return BI.PrefixIntervalTree.uniform(size, 0);\n };\n\n})();\n\n!(function () {\n BI.Queue = function (capacity) {\n this.capacity = capacity;\n this.array = [];\n };\n BI.Queue.prototype = {\n constructor: BI.Queue,\n\n contains: function (v) {\n return BI.contains(this.array, v);\n },\n\n indexOf: function (v) {\n return BI.contains(this.array, v);\n },\n\n getElementByIndex: function (index) {\n return this.array[index];\n },\n\n push: function (v) {\n this.array.push(v);\n if (this.capacity && this.array.length > this.capacity) {\n this.array.shift();\n }\n },\n\n pop: function () {\n this.array.pop();\n },\n\n shift: function () {\n this.array.shift();\n },\n\n unshift: function (v) {\n this.array.unshift(v);\n if (this.capacity && this.array.length > this.capacity) {\n this.array.pop();\n }\n },\n\n remove: function (v) {\n BI.remove(this.array, v);\n },\n\n splice: function () {\n this.array.splice.apply(this.array, arguments);\n },\n\n slice: function () {\n this.array.slice.apply(this.array, arguments);\n },\n\n size: function () {\n return this.array.length;\n },\n\n each: function (fn, scope) {\n var scope = scope || window;\n var fn = fn || null;\n if (fn == null || typeof (fn) !== \"function\") {\n return;\n }\n for (var i = 0; i < this.array.length; i++) {\n var re = fn.call(scope, i, this.array[i], this.array);\n if (re == false) {\n break;\n }\n }\n },\n\n toArray: function () {\n return this.array;\n },\n\n fromArray: function (array) {\n var self = this;\n BI.each(array, function (i, v) {\n self.push(v);\n });\n },\n\n clear: function () {\n this.array.length = 0;\n }\n };\n})();!(function () {\n var Section = function (height, width, x, y) {\n this.height = height;\n this.width = width;\n this.x = x;\n this.y = y;\n\n this._indexMap = {};\n this._indices = [];\n };\n\n Section.prototype = {\n constructor: Section,\n addCellIndex: function (index) {\n if (!this._indexMap[index]) {\n this._indexMap[index] = true;\n this._indices.push(index);\n }\n },\n\n getCellIndices: function () {\n return this._indices;\n }\n };\n\n var SECTION_SIZE = 100;\n BI.SectionManager = function (sectionSize) {\n this._sectionSize = sectionSize || SECTION_SIZE;\n this._cellMetadata = [];\n this._sections = {};\n };\n\n BI.SectionManager.prototype = {\n constructor: BI.SectionManager,\n getCellIndices: function (height, width, x, y) {\n var indices = {};\n\n BI.each(this.getSections(height, width, x, y), function (i, section) {\n BI.each(section.getCellIndices(), function (j, index) {\n indices[index] = index;\n });\n });\n\n return BI.map(BI.keys(indices), function (i, index) {\n return indices[index];\n });\n },\n\n getCellMetadata: function (index) {\n return this._cellMetadata[index];\n },\n\n getSections: function (height, width, x, y) {\n var sectionXStart = Math.floor(x / this._sectionSize);\n var sectionXStop = Math.floor((x + width - 1) / this._sectionSize);\n var sectionYStart = Math.floor(y / this._sectionSize);\n var sectionYStop = Math.floor((y + height - 1) / this._sectionSize);\n\n var sections = [];\n\n for (var sectionX = sectionXStart; sectionX <= sectionXStop; sectionX++) {\n for (var sectionY = sectionYStart; sectionY <= sectionYStop; sectionY++) {\n var key = sectionX + \".\" + sectionY;\n\n if (!this._sections[key]) {\n this._sections[key] = new Section(this._sectionSize, this._sectionSize, sectionX * this._sectionSize, sectionY * this._sectionSize);\n }\n\n sections.push(this._sections[key]);\n }\n }\n\n return sections;\n },\n\n getTotalSectionCount: function () {\n return BI.size(this._sections);\n },\n\n registerCell: function (cellMetadatum, index) {\n this._cellMetadata[index] = cellMetadatum;\n\n BI.each(this.getSections(cellMetadatum.height, cellMetadatum.width, cellMetadatum.x, cellMetadatum.y), function (i, section) {\n section.addCellIndex(index);\n });\n }\n };\n})();(function () {\n BI.Tree = function () {\n this.root = new BI.Node(BI.UUID());\n };\n\n BI.Tree.prototype = {\n constructor: BI.Tree,\n addNode: function (node, newNode, index) {\n if (BI.isNull(newNode)) {\n this.root.addChild(node, index);\n } else if (BI.isNull(node)) {\n this.root.addChild(newNode, index);\n } else {\n node.addChild(newNode, index);\n }\n },\n\n isRoot: function (node) {\n return node === this.root;\n },\n\n getRoot: function () {\n return this.root;\n },\n\n clear: function () {\n this.root.clear();\n },\n\n initTree: function (nodes) {\n var self = this;\n this.clear();\n var queue = [];\n BI.each(nodes, function (i, node) {\n var n = new BI.Node(node);\n n.set(\"data\", node);\n self.addNode(n);\n queue.push(n);\n });\n while (!BI.isEmpty(queue)) {\n var parent = queue.shift();\n var node = parent.get(\"data\");\n BI.each(node.children, function (i, child) {\n var n = new BI.Node(child);\n n.set(\"data\", child);\n queue.push(n);\n self.addNode(parent, n);\n });\n }\n },\n\n _toJSON: function (node) {\n var self = this;\n var children = [];\n BI.each(node.getChildren(), function (i, child) {\n children.push(self._toJSON(child));\n });\n return BI.extend({\n id: node.id\n }, BI.deepClone(node.get(\"data\")), (children.length > 0 ? {\n children: children\n } : {}));\n },\n\n toJSON: function (node) {\n var self = this, result = [];\n BI.each((node || this.root).getChildren(), function (i, child) {\n result.push(self._toJSON(child));\n });\n return result;\n },\n\n _toJSONWithNode: function (node) {\n var self = this;\n var children = [];\n BI.each(node.getChildren(), function (i, child) {\n children.push(self._toJSONWithNode(child));\n });\n return BI.extend({\n id: node.id\n }, BI.deepClone(node.get(\"data\")), {\n node: node\n }, (children.length > 0 ? {\n children: children\n } : {}));\n },\n\n toJSONWithNode: function (node) {\n var self = this, result = [];\n BI.each((node || this.root).getChildren(), function (i, child) {\n result.push(self._toJSONWithNode(child));\n });\n return result;\n },\n\n search: function (root, target, param) {\n if (!(root instanceof BI.Node)) {\n return arguments.callee.apply(this, [this.root, root, target]);\n }\n var self = this, next = null;\n\n if (BI.isNull(target)) {\n return null;\n }\n if (BI.isEqual(root[param || \"id\"], target)) {\n return root;\n }\n BI.any(root.getChildren(), function (i, child) {\n next = self.search(child, target, param);\n if (null !== next) {\n return true;\n }\n });\n return next;\n },\n\n _traverse: function (node, callback) {\n var queue = [];\n queue.push(node);\n while (!BI.isEmpty(queue)) {\n var temp = queue.shift();\n var b = callback && callback(temp);\n if (b === false) {\n break;\n }\n if (b === true) {\n continue;\n }\n if (temp != null) {\n queue = queue.concat(temp.getChildren());\n }\n }\n },\n\n traverse: function (callback) {\n this._traverse(this.root, callback);\n },\n\n _recursion: function (node, route, callback) {\n var self = this;\n return BI.every(node.getChildren(), function (i, child) {\n var next = BI.clone(route);\n next.push(child.id);\n var b = callback && callback(child, next);\n if (b === false) {\n return false;\n }\n if (b === true) {\n return true;\n }\n return self._recursion(child, next, callback);\n });\n },\n\n recursion: function (callback) {\n this._recursion(this.root, [], callback);\n },\n\n inOrderTraverse: function (callback) {\n this._inOrderTraverse(this.root, callback);\n },\n\n // 中序遍历(递归)\n _inOrderTraverse: function (node, callback) {\n if (node != null) {\n this._inOrderTraverse(node.getLeft());\n callback && callback(node);\n this._inOrderTraverse(node.getRight());\n }\n },\n\n // 中序遍历(非递归)\n nrInOrderTraverse: function (callback) {\n\n var stack = [];\n var node = this.root;\n while (node != null || !BI.isEmpty(stack)) {\n while (node != null) {\n stack.push(node);\n node = node.getLeft();\n }\n node = stack.pop();\n callback && callback(node);\n node = node.getRight();\n }\n },\n\n preOrderTraverse: function (callback) {\n this._preOrderTraverse(this.root, callback);\n },\n\n // 先序遍历(递归)\n _preOrderTraverse: function (node, callback) {\n if (node != null) {\n callback && callback(node);\n this._preOrderTraverse(node.getLeft());\n this._preOrderTraverse(node.getRight());\n }\n },\n\n // 先序遍历(非递归)\n nrPreOrderTraverse: function (callback) {\n\n var stack = [];\n var node = this.root;\n\n while (node != null || !BI.isEmpty(stack)) {\n\n while (node != null) {\n callback && callback(node);\n stack.push(node);\n node = node.getLeft();\n }\n node = stack.pop();\n node = node.getRight();\n }\n },\n\n postOrderTraverse: function (callback) {\n this._postOrderTraverse(this.root, callback);\n },\n\n // 后序遍历(递归)\n _postOrderTraverse: function (node, callback) {\n if (node != null) {\n this._postOrderTraverse(node.getLeft());\n this._postOrderTraverse(node.getRight());\n callback && callback(node);\n }\n },\n\n // 后续遍历(非递归)\n nrPostOrderTraverse: function (callback) {\n\n var stack = [];\n var node = this.root;\n var preNode = null;// 表示最近一次访问的节点\n\n while (node != null || !BI.isEmpty(stack)) {\n\n while (node != null) {\n stack.push(node);\n node = node.getLeft();\n }\n\n node = BI.last(stack);\n\n if (node.getRight() == null || node.getRight() == preNode) {\n callback && callback(node);\n node = stack.pop();\n preNode = node;\n node = null;\n } else {\n node = node.getRight();\n }\n }\n }\n };\n\n BI.Node = function (id) {\n if (BI.isObject(id)) {\n BI.extend(this, id);\n } else {\n this.id = id;\n }\n this.clear.apply(this, arguments);\n };\n\n BI.Node.prototype = {\n constructor: BI.Node,\n\n set: function (key, value) {\n if (BI.isObject(key)) {\n BI.extend(this, key);\n return;\n }\n this[key] = value;\n },\n\n get: function (key) {\n return this[key];\n },\n\n isLeaf: function () {\n return BI.isEmpty(this.children);\n },\n\n getChildren: function () {\n return this.children;\n },\n\n getChildrenLength: function () {\n return this.children.length;\n },\n\n getFirstChild: function () {\n return BI.first(this.children);\n },\n\n getLastChild: function () {\n return BI.last(this.children);\n },\n\n setLeft: function (left) {\n this.left = left;\n },\n\n getLeft: function () {\n return this.left;\n },\n\n setRight: function (right) {\n this.right = right;\n },\n\n getRight: function () {\n return this.right;\n },\n\n setParent: function (parent) {\n this.parent = parent;\n },\n\n getParent: function () {\n return this.parent;\n },\n\n getChild: function (index) {\n return this.children[index];\n },\n\n getChildIndex: function (id) {\n return BI.findIndex(this.children, function (i, ch) {\n return ch.get(\"id\") === id;\n });\n },\n\n removeChild: function (id) {\n this.removeChildByIndex(this.getChildIndex(id));\n },\n\n removeChildByIndex: function (index) {\n var before = this.getChild(index - 1);\n var behind = this.getChild(index + 1);\n if (before != null) {\n before.setRight(behind || null);\n }\n if (behind != null) {\n behind.setLeft(before || null);\n }\n this.children.splice(index, 1);\n },\n\n removeAllChilds: function () {\n this.children = [];\n },\n\n addChild: function (child, index) {\n var cur = null;\n if (BI.isUndefined(index)) {\n cur = this.children.length - 1;\n } else {\n cur = index - 1;\n }\n child.setParent(this);\n if (cur >= 0) {\n this.getChild(cur) && this.getChild(cur).setRight(child);\n child.setLeft(this.getChild(cur));\n }\n if (BI.isUndefined(index)) {\n this.children.push(child);\n } else {\n this.children.splice(index, 0, child);\n }\n },\n\n equals: function (obj) {\n return this === obj || this.id === obj.id;\n },\n\n clear: function () {\n this.parent = null;\n this.left = null;\n this.right = null;\n this.children = [];\n }\n };\n\n BI.extend(BI.Tree, {\n transformToArrayFormat: function (nodes, pId) {\n if (!nodes) return [];\n var r = [];\n if (BI.isArray(nodes)) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n var node = BI.clone(nodes[i]);\n node.pId = node.pId == null ? pId : node.pId;\n delete node.children;\n r.push(node);\n if (nodes[i][\"children\"]) {\n r = r.concat(BI.Tree.transformToArrayFormat(nodes[i][\"children\"], node.id));\n }\n }\n } else {\n var newNodes = BI.clone(nodes);\n newNodes.pId = newNodes.pId == null ? pId : newNodes.pId;\n delete newNodes.children;\n r.push(newNodes);\n if (nodes[\"children\"]) {\n r = r.concat(BI.Tree.transformToArrayFormat(nodes[\"children\"], newNodes.id));\n }\n }\n return r;\n },\n\n arrayFormat: function (nodes, pId) {\n if (!nodes) {\n return [];\n }\n var r = [];\n if (BI.isArray(nodes)) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n var node = nodes[i];\n node.pId = node.pId == null ? pId : node.pId;\n r.push(node);\n if (nodes[i][\"children\"]) {\n r = r.concat(BI.Tree.arrayFormat(nodes[i][\"children\"], node.id));\n }\n }\n } else {\n var newNodes = nodes;\n newNodes.pId = newNodes.pId == null ? pId : newNodes.pId;\n r.push(newNodes);\n if (nodes[\"children\"]) {\n r = r.concat(BI.Tree.arrayFormat(nodes[\"children\"], newNodes.id));\n }\n }\n return r;\n },\n\n transformToTreeFormat: function (sNodes) {\n var i, l;\n if (!sNodes) {\n return [];\n }\n\n if (BI.isArray(sNodes)) {\n var r = [];\n var tmpMap = {};\n for (i = 0, l = sNodes.length; i < l; i++) {\n if (BI.isNull(sNodes[i].id)) {\n return sNodes;\n }\n tmpMap[sNodes[i].id] = BI.clone(sNodes[i]);\n }\n for (i = 0, l = sNodes.length; i < l; i++) {\n if (tmpMap[sNodes[i].pId] && sNodes[i].id !== sNodes[i].pId) {\n if (!tmpMap[sNodes[i].pId].children) {\n tmpMap[sNodes[i].pId].children = [];\n }\n tmpMap[sNodes[i].pId].children.push(tmpMap[sNodes[i].id]);\n } else {\n r.push(tmpMap[sNodes[i].id]);\n }\n delete tmpMap[sNodes[i].id].pId;\n }\n return r;\n }\n return [sNodes];\n \n },\n\n treeFormat: function (sNodes) {\n var i, l;\n if (!sNodes) {\n return [];\n }\n\n if (BI.isArray(sNodes)) {\n var r = [];\n var tmpMap = {};\n for (i = 0, l = sNodes.length; i < l; i++) {\n if (BI.isNull(sNodes[i].id)) {\n return sNodes;\n }\n tmpMap[sNodes[i].id] = sNodes[i];\n }\n for (i = 0, l = sNodes.length; i < l; i++) {\n if (tmpMap[sNodes[i].pId] && sNodes[i].id !== sNodes[i].pId) {\n if (!tmpMap[sNodes[i].pId].children) {\n tmpMap[sNodes[i].pId].children = [];\n }\n tmpMap[sNodes[i].pId].children.push(tmpMap[sNodes[i].id]);\n } else {\n r.push(tmpMap[sNodes[i].id]);\n }\n }\n return r;\n }\n return [sNodes];\n \n },\n\n traversal: function (array, callback) {\n if (BI.isNull(array)) {\n return;\n }\n var self = this;\n BI.some(array, function (i, item) {\n if (callback(i, item) === false) {\n return true;\n }\n self.traversal(item.children, callback);\n });\n }\n });\n})();// 向量操作\nBI.Vector = function (x, y) {\n this.x = x;\n this.y = y;\n};\nBI.Vector.prototype = {\n constructor: BI.Vector,\n cross: function (v) {\n return (this.x * v.y - this.y * v.x);\n },\n length: function (v) {\n return (Math.sqrt(this.x * v.x + this.y * v.y));\n }\n};\nBI.Region = function (x, y, w, h) {\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n};\nBI.Region.prototype = {\n constructor: BI.Region,\n // 判断两个区域是否相交,若相交,则要么顶点互相包含,要么矩形边界(或对角线)相交\n isIntersects: function (obj) {\n if (this.isPointInside(obj.x, obj.y) ||\n this.isPointInside(obj.x + obj.w, obj.y) ||\n this.isPointInside(obj.x, obj.y + obj.h) ||\n this.isPointInside(obj.x + obj.w, obj.y + obj.h)) {\n return true;\n } else if (obj.isPointInside(this.x, this.y) ||\n obj.isPointInside(this.x + this.w, this.y) ||\n obj.isPointInside(this.x, this.y + this.h) ||\n obj.isPointInside(this.x + this.w, this.y + this.h)) {\n return true;\n } else if (obj.x != null && obj.y != null)// 判断矩形对角线相交 |v1 X v2||v1 X v3| < 0\n {\n var vector1 = new BI.Vector(this.w, this.h);// 矩形对角线向量\n var vector2 = new BI.Vector(obj.x - this.x, obj.y - this.y);\n var vector3 = new BI.Vector(vector2.x + obj.w, vector2.y + obj.h);\n if ((vector1.cross(vector2) * vector1.cross(vector3)) < 0) {\n return true;\n }\n }\n return false;\n },\n // 判断一个点是否在这个区域内部\n isPointInside: function (x, y) {\n if (this.x == null || this.y == null) {\n return false;\n }\n if (x >= this.x && x <= this.x + this.w && y >= this.y && y <= this.y + this.h) {\n return true;\n }\n return false;\n },\n // 返回区域的重心,因为是矩形所以返回中点\n getPosition: function () {\n var pos = [];\n pos.push(this.x + this.w / 2);\n pos.push(this.y + this.h / 2);\n return pos;\n }\n};BI.BehaviorFactory = {\n createBehavior: function (key, options) {\n var behavior;\n switch (key) {\n case \"highlight\":\n behavior = BI.HighlightBehavior;\n break;\n case \"redmark\":\n behavior = BI.RedMarkBehavior;\n break;\n }\n return new behavior(options);\n }\n};\n\n/**\n * guy\n * 行为控件\n * @class BI.Behavior\n * @extends BI.OB\n */\nBI.Behavior = BI.inherit(BI.OB, {\n _defaultConfig: function () {\n return BI.extend(BI.Behavior.superclass._defaultConfig.apply(this, arguments), {\n rule: function () {return true;}\n });\n },\n\n _init: function () {\n BI.Behavior.superclass._init.apply(this, arguments);\n\n },\n\n doBehavior: function () {\n\n }\n});/**\n * 布局容器类\n * @class BI.Layout\n * @extends BI.Widget\n *\n * @cfg {JSON} options 配置属性\n * @cfg {Boolean} [options.scrollable=false] 子组件超出容器边界之后是否会出现滚动条\n * @cfg {Boolean} [options.scrollx=false] 子组件超出容器边界之后是否会出现横向滚动条\n * @cfg {Boolean} [options.scrolly=false] 子组件超出容器边界之后是否会出现纵向滚动条\n */\nBI.Layout = BI.inherit(BI.Widget, {\n props: function () {\n return {\n scrollable: null, // true, false, null\n scrollx: false, // true, false\n scrolly: false, // true, false\n items: []\n };\n },\n\n render: function () {\n this._init4Margin();\n this._init4Scroll();\n },\n\n _init4Margin: function () {\n if (this.options.top) {\n this.element.css(\"top\", this.options.top);\n }\n if (this.options.left) {\n this.element.css(\"left\", this.options.left);\n }\n if (this.options.bottom) {\n this.element.css(\"bottom\", this.options.bottom);\n }\n if (this.options.right) {\n this.element.css(\"right\", this.options.right);\n }\n },\n\n _init4Scroll: function () {\n switch (this.options.scrollable) {\n case true:\n this.element.css(\"overflow\", \"auto\");\n break;\n case false:\n this.element.css(\"overflow\", \"hidden\");\n break;\n default :\n break;\n }\n if (this.options.scrollx) {\n this.element.css({\n \"overflow-x\": \"auto\",\n \"overflow-y\": \"hidden\"\n });\n }\n if (this.options.scrolly) {\n this.element.css({\n \"overflow-x\": \"hidden\",\n \"overflow-y\": \"auto\"\n });\n }\n },\n\n appendFragment: function (frag) {\n this.element.append(frag);\n },\n\n _mountChildren: function () {\n var self = this;\n var frag = BI.Widget._renderEngine.createFragment();\n var hasChild = false;\n BI.each(this._children, function (i, widget) {\n if (widget.element !== self.element) {\n frag.appendChild(widget.element[0]);\n hasChild = true;\n }\n });\n if (hasChild === true) {\n this.appendFragment(frag);\n }\n },\n\n _getChildName: function (index) {\n return index + \"\";\n },\n\n _addElement: function (i, item, context) {\n var self = this, w;\n if (!this.hasWidget(this._getChildName(i))) {\n w = BI.createWidget(item, context);\n w.on(BI.Events.DESTROY, function () {\n BI.each(self._children, function (name, child) {\n if (child === w) {\n BI.remove(self._children, child);\n self.removeItemAt(name | 0);\n }\n });\n });\n this.addWidget(this._getChildName(i), w);\n } else {\n w = this.getWidgetByName(this._getChildName(i));\n }\n return w;\n },\n\n _getOptions: function (item) {\n if (item instanceof BI.Widget) {\n item = item.options;\n }\n item = BI.stripEL(item);\n if (item instanceof BI.Widget) {\n item = item.options;\n }\n return item;\n },\n\n _compare: function (item1, item2) {\n var self = this;\n return eq(item1, item2);\n\n // 不比较函数\n function eq (a, b, aStack, bStack) {\n if (a === b) {\n return a !== 0 || 1 / a === 1 / b;\n }\n if (a == null || b == null) {\n return a === b;\n }\n var className = Object.prototype.toString.call(a);\n switch (className) {\n case \"[object RegExp]\":\n case \"[object String]\":\n return \"\" + a === \"\" + b;\n case \"[object Number]\":\n if (+a !== +a) {\n return +b !== +b;\n }\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case \"[object Date]\":\n case \"[object Boolean]\":\n return +a === +b;\n }\n\n var areArrays = className === \"[object Array]\";\n if (!areArrays) {\n if (BI.isFunction(a) && BI.isFunction(b)) {\n return true;\n }\n a = self._getOptions(a);\n b = self._getOptions(b);\n }\n\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n if (aStack[length] === a) {\n return bStack[length] === b;\n }\n }\n\n aStack.push(a);\n bStack.push(b);\n\n if (areArrays) {\n length = a.length;\n if (length !== b.length) {\n return false;\n }\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) {\n return false;\n }\n }\n } else {\n var keys = _.keys(a), key;\n length = keys.length;\n if (_.keys(b).length !== length) {\n return false;\n }\n while (length--) {\n key = keys[length];\n if (!(_.has(b, key) && eq(a[key], b[key], aStack, bStack))) {\n return false;\n }\n }\n }\n aStack.pop();\n bStack.pop();\n return true;\n }\n },\n\n _getWrapper: function () {\n return this.element;\n },\n\n _addItemAt: function (index, item) {\n for (var i = this.options.items.length; i > index; i--) {\n this._children[this._getChildName(i)] = this._children[this._getChildName(i - 1)];\n }\n delete this._children[this._getChildName(index)];\n this.options.items.splice(index, 0, item);\n },\n\n _removeItemAt: function (index) {\n for (var i = index; i < this.options.items.length - 1; i++) {\n this._children[this._getChildName(i)] = this._children[this._getChildName(i + 1)];\n }\n delete this._children[this._getChildName(this.options.items.length - 1)];\n this.options.items.splice(index, 1);\n },\n\n /**\n * 添加一个子组件到容器中\n * @param {JSON/BI.Widget} item 子组件\n */\n addItem: function (item) {\n return this.addItemAt(this.options.items.length, item);\n },\n\n prependItem: function (item) {\n return this.addItemAt(0, item);\n },\n\n addItemAt: function (index, item) {\n if (index < 0 || index > this.options.items.length) {\n return;\n }\n this._addItemAt(index, item);\n var w = this._addElement(index, item);\n if (index > 0) {\n this._children[this._getChildName(index - 1)].element.after(w.element);\n } else {\n w.element.prependTo(this._getWrapper());\n }\n w._mount();\n return w;\n },\n\n removeItemAt: function (indexes) {\n indexes = BI.isArray(indexes) ? indexes : [indexes];\n var deleted = [];\n var newItems = [], newChildren = {};\n for (var i = 0, len = this.options.items.length; i < len; i++) {\n var child = this._children[this._getChildName(i)];\n if (BI.contains(indexes, i)) {\n child && deleted.push(child);\n } else {\n newChildren[this._getChildName(newItems.length)] = child;\n newItems.push(this.options.items[i]);\n }\n }\n this.options.items = newItems;\n this._children = newChildren;\n BI.each(deleted, function (i, c) {\n c._destroy();\n });\n },\n\n shouldUpdateItem: function (index, item) {\n if (index < 0 || index > this.options.items.length - 1) {\n return false;\n }\n var child = this._children[this._getChildName(index)];\n if (!child.shouldUpdate) {\n return null;\n }\n return child.shouldUpdate(this._getOptions(item)) === true;\n },\n\n updateItemAt: function (index, item) {\n if (index < 0 || index > this.options.items.length - 1) {\n return;\n }\n\n var child = this._children[this._getChildName(index)];\n var updated;\n if (updated = child.update(this._getOptions(item))) {\n return updated;\n }\n var del = this._children[this._getChildName(index)];\n delete this._children[this._getChildName(index)];\n this.options.items.splice(index, 1);\n var w = this._addElement(index, item);\n this.options.items.splice(index, 0, item);\n this._children[this._getChildName(index)] = w;\n if (index > 0) {\n this._children[this._getChildName(index - 1)].element.after(w.element);\n } else {\n w.element.prependTo(this._getWrapper());\n }\n del._destroy();\n w._mount();\n },\n\n addItems: function (items, context) {\n var self = this, o = this.options;\n var fragment = BI.Widget._renderEngine.createFragment();\n var added = [];\n BI.each(items, function (i, item) {\n var w = self._addElement(o.items.length, item, context);\n self._children[self._getChildName(o.items.length)] = w;\n o.items.push(item);\n added.push(w);\n fragment.appendChild(w.element[0]);\n });\n if (this._isMounted) {\n this._getWrapper().append(fragment);\n BI.each(added, function (i, w) {\n w._mount();\n });\n }\n },\n\n prependItems: function (items, context) {\n var self = this;\n items = items || [];\n var fragment = BI.Widget._renderEngine.createFragment();\n var added = [];\n for (var i = items.length - 1; i >= 0; i--) {\n this._addItemAt(0, items[i]);\n var w = this._addElement(0, items[i], context);\n self._children[self._getChildName(0)] = w;\n this.options.items.unshift(items[i]);\n added.push(w);\n fragment.appendChild(w.element[0]);\n }\n if (this._isMounted) {\n this._getWrapper().prepend(fragment);\n BI.each(added, function (i, w) {\n w._mount();\n });\n }\n },\n\n getValue: function () {\n var self = this, value = [], child;\n BI.each(this.options.items, function (i) {\n if (child = self._children[self._getChildName(i)]) {\n var v = child.getValue();\n v = BI.isArray(v) ? v : [v];\n value = value.concat(v);\n }\n });\n return value;\n },\n\n setValue: function (v) {\n var self = this, child;\n BI.each(this.options.items, function (i) {\n if (child = self._children[self._getChildName(i)]) {\n child.setValue(v);\n }\n });\n },\n\n setText: function (v) {\n var self = this, child;\n BI.each(this.options.items, function (i) {\n if (child = self._children[self._getChildName(i)]) {\n child.setText(v);\n }\n });\n },\n\n patchItem: function (oldVnode, vnode, index) {\n var shouldUpdate = this.shouldUpdateItem(index, vnode);\n if (shouldUpdate === true || (shouldUpdate === null && !this._compare(oldVnode, vnode))) {\n return this.updateItemAt(index, vnode);\n }\n },\n\n updateChildren: function (oldCh, newCh) {\n var self = this;\n var oldStartIdx = 0, newStartIdx = 0;\n var oldEndIdx = oldCh.length - 1;\n var oldStartVnode = oldCh[0];\n var oldEndVnode = oldCh[oldEndIdx];\n var newEndIdx = newCh.length - 1;\n var newStartVnode = newCh[0];\n var newEndVnode = newCh[newEndIdx];\n var before;\n var updated;\n var children = {};\n BI.each(oldCh, function (i, child) {\n child = self._getOptions(child);\n var key = child.key == null ? i : child.key;\n if (BI.isKey(key)) {\n children[key] = self._children[self._getChildName(i)];\n }\n });\n\n while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\n if (BI.isNull(oldStartVnode)) {\n oldStartVnode = oldCh[++oldStartIdx];\n } else if (BI.isNull(oldEndVnode)) {\n oldEndVnode = oldCh[--oldEndIdx];\n } else if (sameVnode(oldStartVnode, newStartVnode, oldStartIdx, newStartIdx)) {\n updated = this.patchItem(oldStartVnode, newStartVnode, oldStartIdx) || updated;\n children[oldStartVnode.key == null ? this._getChildName(oldStartIdx) : oldStartVnode.key] = this._children[this._getChildName(oldStartIdx)];\n oldStartVnode = oldCh[++oldStartIdx];\n newStartVnode = newCh[++newStartIdx];\n } else if (sameVnode(oldEndVnode, newEndVnode, oldEndIdx, newEndIdx)) {\n updated = this.patchItem(oldEndVnode, newEndVnode, oldEndIdx) || updated;\n children[oldEndVnode.key == null ? this._getChildName(oldEndIdx) : oldEndVnode.key] = this._children[this._getChildName(oldEndIdx)];\n oldEndVnode = oldCh[--oldEndIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (sameVnode(oldStartVnode, newEndVnode)) {\n updated = this.patchItem(oldStartVnode, newEndVnode, oldStartIdx) || updated;\n children[oldStartVnode.key == null ? this._getChildName(oldStartIdx) : oldStartVnode.key] = this._children[this._getChildName(oldStartIdx)];\n insertBefore(oldStartVnode, oldEndVnode, true);\n oldStartVnode = oldCh[++oldStartIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (sameVnode(oldEndVnode, newStartVnode)) {\n updated = this.patchItem(oldEndVnode, newStartVnode, oldEndIdx) || updated;\n children[oldEndVnode.key == null ? this._getChildName(oldEndIdx) : oldEndVnode.key] = this._children[this._getChildName(oldEndIdx)];\n insertBefore(oldEndVnode, oldStartVnode);\n oldEndVnode = oldCh[--oldEndIdx];\n newStartVnode = newCh[++newStartIdx];\n } else {\n var sameOldVnode = findOldVnode(oldCh, newStartVnode, oldStartIdx, oldEndIdx);\n if (BI.isNull(sameOldVnode)) { // 不存在就把新的放到左边\n var node = addNode(newStartVnode);\n insertBefore(node, oldStartVnode);\n newStartVnode = newCh[++newStartIdx];\n } else { // 如果新节点在就旧节点区间中存在就复用一下\n BI.each(oldCh, function (index, child) {\n if (child && sameVnode(child, newStartVnode)) {\n updated = self.patchItem(sameOldVnode, newStartVnode, index) || updated;\n children[sameOldVnode.key == null ? self._getChildName(index) : sameOldVnode.key] = self._children[self._getChildName(index)];\n oldCh[index] = undefined;\n insertBefore(sameOldVnode, oldStartVnode);\n }\n });\n newStartVnode = newCh[++newStartIdx];\n }\n }\n }\n if (oldStartIdx > oldEndIdx) {\n before = BI.isNull(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1];\n addVnodes(before, newCh, newStartIdx, newEndIdx);\n } else if (newStartIdx > newEndIdx) {\n removeVnodes(oldCh, oldStartIdx, oldEndIdx);\n }\n\n this._children = {};\n BI.each(newCh, function (i, child) {\n var node = self._getOptions(child);\n var key = node.key == null ? self._getChildName(i) : node.key;\n children[key]._mount();\n self._children[self._getChildName(i)] = children[key];\n });\n\n function sameVnode (vnode1, vnode2, oldIndex, newIndex) {\n vnode1 = self._getOptions(vnode1);\n vnode2 = self._getOptions(vnode2);\n if (BI.isKey(vnode1.key)) {\n return vnode1.key === vnode2.key;\n }\n if (oldIndex >= 0) {\n return oldIndex === newIndex;\n }\n }\n\n function addNode (vnode, index) {\n var opt = self._getOptions(vnode);\n var key = opt.key == null ? self._getChildName(index) : opt.key;\n return children[key] = self._addElement(key, vnode);\n }\n\n function addVnodes (before, vnodes, startIdx, endIdx) {\n for (; startIdx <= endIdx; ++startIdx) {\n var node = addNode(vnodes[startIdx], startIdx);\n insertBefore(node, before, false, startIdx);\n }\n }\n\n function removeVnodes (vnodes, startIdx, endIdx) {\n for (; startIdx <= endIdx; ++startIdx) {\n var ch = vnodes[startIdx];\n if (BI.isNotNull(ch)) {\n var node = self._getOptions(ch);\n var key = node.key == null ? self._getChildName(startIdx) : node.key;\n delete self._children[self._getChildName(key)];\n children[key]._destroy();\n }\n }\n }\n\n function insertBefore (insert, before, isNext, index) {\n insert = self._getOptions(insert);\n before = before && self._getOptions(before);\n var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index);\n if (before && children[before.key]) {\n var beforeKey = BI.isKey(before.key) ? before.key : self._getChildName(index);\n var next;\n if (isNext) {\n next = children[beforeKey].element.next();\n } else {\n next = children[beforeKey].element;\n }\n if (next.length > 0) {\n next.before(children[insertKey].element);\n } else {\n self._getWrapper().append(children[insertKey].element);\n }\n } else {\n self._getWrapper().append(children[insertKey].element);\n }\n }\n\n function findOldVnode (vnodes, vNode, beginIdx, endIdx) {\n var i, found;\n for (i = beginIdx; i <= endIdx; ++i) {\n if (vnodes[i] && sameVnode(vnodes[i], vNode)) {\n found = vnodes[i];\n }\n }\n return found;\n }\n\n return updated;\n },\n\n update: function (opt) {\n var o = this.options;\n var items = opt.items || [];\n var updated = this.updateChildren(o.items, items);\n this.options.items = items;\n return updated;\n // var updated, i, len;\n // for (i = 0, len = Math.min(o.items.length, items.length); i < len; i++) {\n // if (!this._compare(o.items[i], items[i])) {\n // updated = this.updateItemAt(i, items[i]) || updated;\n // }\n // }\n // if (o.items.length > items.length) {\n // var deleted = [];\n // for (i = items.length; i < o.items.length; i++) {\n // deleted.push(this._children[this._getChildName(i)]);\n // delete this._children[this._getChildName(i)];\n // }\n // o.items.splice(items.length);\n // BI.each(deleted, function (i, w) {\n // w._destroy();\n // })\n // } else if (items.length > o.items.length) {\n // for (i = o.items.length; i < items.length; i++) {\n // this.addItemAt(i, items[i]);\n // }\n // }\n // return updated;\n },\n\n stroke: function (items) {\n var self = this;\n BI.each(items, function (i, item) {\n if (item) {\n self._addElement(i, item);\n }\n });\n },\n\n removeWidget: function (nameOrWidget) {\n var removeIndex;\n if (BI.isWidget(nameOrWidget)) {\n BI.each(this._children, function (name, child) {\n if (child === nameOrWidget) {\n removeIndex = name;\n }\n });\n } else {\n removeIndex = nameOrWidget;\n }\n if (removeIndex) {\n this._removeItemAt(removeIndex | 0);\n }\n },\n\n empty: function () {\n BI.Layout.superclass.empty.apply(this, arguments);\n this.options.items = [];\n },\n\n destroy: function () {\n BI.Layout.superclass.destroy.apply(this, arguments);\n this.options.items = [];\n },\n\n populate: function (items) {\n var self = this, o = this.options;\n items = items || [];\n if (this._isMounted) {\n this.update({items: items});\n return;\n }\n this.options.items = items;\n this.stroke(items);\n },\n\n resize: function () {\n\n }\n});\nBI.shortcut(\"bi.layout\", BI.Layout);\nBI.Plugin = BI.Plugin || {};\n!(function () {\n var _WidgetsPlugin = {};\n var _ObjectPlugin = {};\n var _ConfigPlugin = {};\n var _GlobalWidgetConfigFn, _GlobalObjectConfigFn;\n BI.extend(BI.Plugin, {\n\n getWidget: function (type, options) {\n if (_GlobalWidgetConfigFn) {\n _GlobalWidgetConfigFn(type, options);\n }\n var res;\n if (_ConfigPlugin[type]) {\n for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {\n if (res = _ConfigPlugin[type][i](options)) {\n options = res;\n }\n }\n }\n // Deprecated\n if (_WidgetsPlugin[type]) {\n for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {\n if (res = _WidgetsPlugin[type][i](options)) {\n return res;\n }\n }\n }\n return options;\n },\n\n config: function (widgetConfigFn, objectConfigFn) {\n _GlobalWidgetConfigFn = widgetConfigFn;\n _GlobalObjectConfigFn = objectConfigFn;\n },\n\n configWidget: function (type, fn) {\n if (!_ConfigPlugin[type]) {\n _ConfigPlugin[type] = [];\n }\n _ConfigPlugin[type].push(fn);\n },\n\n registerWidget: function (type, fn) {\n if (!_WidgetsPlugin[type]) {\n _WidgetsPlugin[type] = [];\n }\n if (_WidgetsPlugin[type].length > 0) {\n console.log(\"组件已经注册过了!\");\n }\n _WidgetsPlugin[type].push(fn);\n },\n\n relieveWidget: function (type) {\n delete _WidgetsPlugin[type];\n },\n\n getObject: function (type, object) {\n if (_GlobalObjectConfigFn) {\n _GlobalObjectConfigFn(type, object);\n }\n if (_ObjectPlugin[type]) {\n var res;\n for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {\n if (res = _ObjectPlugin[type][i](object)) {\n object = res;\n };\n }\n }\n return res || object;\n },\n\n registerObject: function (type, fn) {\n if (!_ObjectPlugin[type]) {\n _ObjectPlugin[type] = [];\n }\n if (_ObjectPlugin[type].length > 0) {\n console.log(\"对象已经注册过了!\");\n }\n _ObjectPlugin[type].push(fn);\n },\n\n relieveObject: function (type) {\n delete _ObjectPlugin[type];\n }\n });\n})();/**\n * guy\n * 由一个元素切换到另一个元素的行为\n * @class BI.Action\n * @extends BI.OB\n * @abstract\n */\nBI.Action = BI.inherit(BI.OB, {\n _defaultConfig: function () {\n return BI.extend(BI.Action.superclass._defaultConfig.apply(this, arguments), {\n src: null,\n tar: null\n });\n },\n\n _init: function () {\n BI.Action.superclass._init.apply(this, arguments);\n },\n\n actionPerformed: function (src, tar, callback) {\n\n },\n\n actionBack: function (tar, src, callback) {\n\n }\n});\n\nBI.ActionFactory = {\n createAction: function (key, options) {\n var action;\n switch (key) {\n case \"show\":\n action = BI.ShowAction;\n break;\n }\n return new action(options);\n }\n};/**\n * guy\n * 由一个元素切换到另一个元素的行为\n * @class BI.ShowAction\n * @extends BI.Action\n */\nBI.ShowAction = BI.inherit(BI.Action, {\n _defaultConfig: function () {\n return BI.extend(BI.ShowAction.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.ShowAction.superclass._init.apply(this, arguments);\n },\n\n actionPerformed: function (src, tar, callback) {\n tar = tar || this.options.tar;\n tar.setVisible(true);\n callback && callback();\n },\n\n actionBack: function (tar, src, callback) {\n tar = tar || this.options.tar;\n tar.setVisible(false);\n callback && callback();\n }\n});(function () {\n var _global;\n if (typeof window !== \"undefined\") {\n _global = window;\n } else if (typeof global !== \"undefined\") {\n _global = global;\n } else if (typeof self !== \"undefined\") {\n _global = self;\n } else {\n _global = this;\n }\n if (!_global.BI) {\n _global.BI = {};\n }\n\n function isEmpty (value) {\n // 判断是否为空值\n var result = value === \"\" || value === null || value === undefined;\n return result;\n }\n\n // 判断是否是无效的日期\n function isInvalidDate (date) {\n return date == \"Invalid Date\" || date == \"NaN\";\n }\n\n /**\n * CHART-1400\n * 使用数值计算的方式来获取任意数值的科学技术表示值。\n * 科学计数格式\n */\n function _eFormat (text, fmt) {\n text = +text;\n\n return eFormat(text, fmt);\n\n /**\n * 科学计数格式具体计算过程\n * @param num\n * @param format {String}有两种形式,\n * 1、\"0.00E00\"这样的字符串表示正常的科学计数表示,只不过规定了数值精确到百分位,\n * 而数量级的绝对值如果是10以下的时候在前面补零。\n * 2、 \"##0.0E0\"这样的字符串则规定用科学计数法表示之后的数值的整数部分是三位,精确到十分位,\n * 数量级没有规定,因为没见过实数里有用科学计数法表示之后E的后面会小于一位的情况(0无所谓)。\n * @returns {*}\n */\n function eFormat (num, format) {\n var neg = num < 0 ? (num *= -1, \"-\") : \"\",\n magnitudeNeg = \"\";\n\n var funcName = num > 0 && num < 1 ? \"floor\" : \"ceil\"; // -0.9999->-1\n // 数量级\n var magnitude = Math[funcName](Math.log(num) / Math.log(10));\n\n if (!isFinite(magnitude)) {\n return format.replace(/#/ig, \"\").replace(/\\.e/ig, \"E\");\n }\n\n num = num / Math.pow(10, magnitude);\n\n // 让num转化成[1, 10)区间上的数\n if (num > 0 && num < 1) {\n num *= 10;\n magnitude -= 1;\n }\n\n // 计算出format中需要显示的整数部分的位数,然后更新这个数值,也更新数量级\n var integerLen = getInteger(magnitude, format);\n integerLen > 1 && (magnitude -= integerLen - 1, num *= Math.pow(10, integerLen - 1));\n\n magnitude < 0 && (magnitudeNeg = \"-\", magnitude *= -1);\n\n // 获取科学计数法精确到的位数\n var precision = getPrecision(format);\n // 判断num经过四舍五入之后是否有进位\n var isValueCarry = isValueCarried(num);\n\n num *= Math.pow(10, precision);\n num = Math.round(num);\n // 如果出现进位的情况,将num除以10\n isValueCarry && (num /= 10, magnitude += magnitudeNeg === \"-\" ? -1 : 1);\n num /= Math.pow(10, precision);\n\n // 小数部分保留precision位\n num = num.toFixed(precision);\n // 格式化指数的部分\n magnitude = formatExponential(format, magnitude, magnitudeNeg);\n\n return neg + num + \"E\" + magnitude;\n }\n\n // 获取format格式规定的数量级的形式\n function formatExponential (format, num, magnitudeNeg) {\n num += \"\";\n if (!/e/ig.test(format)) {\n return num;\n }\n format = format.split(/e/ig)[1];\n\n while (num.length < format.length) {\n num = \"0\" + num;\n }\n\n // 如果magnitudeNeg是一个\"-\",而且num正好全是0,那么就别显示负号了\n var isAllZero = true;\n for (var i = 0, len = num.length; i < len; i++) {\n if (!isAllZero) {\n continue;\n }\n isAllZero = num.charAt(i) === \"0\";\n }\n magnitudeNeg = isAllZero ? \"\" : magnitudeNeg;\n\n return magnitudeNeg + num;\n }\n\n // 获取format规定的科学计数法精确到的位数\n function getPrecision (format) {\n if (!/e/ig.test(format)) {\n return 0;\n }\n var arr = format.split(/e/ig)[0].split(\".\");\n\n return arr.length > 1 ? arr[1].length : 0;\n }\n\n // 获取数值科学计数法表示之后整数的位数\n // 这边我们还需要考虑#和0的问题\n function getInteger (magnitude, format) {\n if (!/e/ig.test(format)) {\n return 0;\n }\n // return format.split(/e/ig)[0].split(\".\")[0].length;\n\n var formatLeft = format.split(/e/ig)[0].split(\".\")[0], i, f, len = formatLeft.length;\n var valueLeftLen = 0;\n\n for (i = 0; i < len; i++) {\n f = formatLeft.charAt(i);\n // \"#\"所在的位置到末尾长度小于等于值的整数部分长度,那么这个#才可以占位\n if (f == 0 || (f == \"#\" && (len - i <= magnitude + 1))) {\n valueLeftLen++;\n }\n }\n\n return valueLeftLen;\n }\n\n // 判断num通过round函数之后是否有进位\n function isValueCarried (num) {\n var roundNum = Math.round(num);\n num = (num + \"\").split(\".\")[0];\n roundNum = (roundNum + \"\").split(\".\")[0];\n return num.length !== roundNum.length;\n }\n }\n\n //'#.##'之类的格式处理 1.324e-18 这种的科学数字\n function _dealNumberPrecision (text, fright) {\n if (/[eE]/.test(text)) {\n var precision = 0, i = 0, ch;\n\n if (/[%‰]$/.test(fright)) {\n precision = /[%]$/.test(fright) ? 2 : 3;\n }\n\n for (var len = fright.length; i < len; i++) {\n if ((ch = fright.charAt(i)) == \"0\" || ch == \"#\") {\n precision++;\n }\n }\n return Number(text).toFixed(precision);\n }\n\n return text;\n }\n\n /**\n * 数字格式\n */\n function _numberFormat (text, format) {\n var text = text + \"\";\n\n //在调用数字格式的时候如果text里没有任何数字则不处理\n if (!(/[0-9]/.test(text)) || !format) {\n return text;\n }\n\n // 数字格式,区分正负数\n var numMod = format.indexOf(\";\");\n if (numMod > -1) {\n if (text >= 0) {\n return _numberFormat(text + \"\", format.substring(0, numMod));\n }\n return _numberFormat((-text) + \"\", format.substr(numMod + 1));\n\n } else {\n // 兼容格式处理负数的情况(copy:fr-jquery.format.js)\n if (+text < 0 && format.charAt(0) !== \"-\") {\n return _numberFormat((-text) + \"\", \"-\" + format);\n }\n }\n\n var fp = format.split(\".\"), fleft = fp[0] || \"\", fright = fp[1] || \"\";\n text = _dealNumberPrecision(text, fright);\n var tp = text.split(\".\"), tleft = tp[0] || \"\", tright = tp[1] || \"\";\n\n // 百分比,千分比的小数点移位处理\n if (/[%‰]$/.test(format)) {\n var paddingZero = /[%]$/.test(format) ? \"00\" : \"000\";\n tright += paddingZero;\n tleft += tright.substr(0, paddingZero.length);\n tleft = tleft.replace(/^0+/gi, \"\");\n tright = tright.substr(paddingZero.length).replace(/0+$/gi, \"\");\n }\n var right = _dealWithRight(tright, fright);\n if (right.leftPlus) {\n // 小数点后有进位\n tleft = parseInt(tleft) + 1 + \"\";\n\n tleft = isNaN(tleft) ? \"1\" : tleft;\n }\n right = right.num;\n var left = _dealWithLeft(tleft, fleft);\n if (!(/[0-9]/.test(left))) {\n left = left + \"0\";\n }\n if (!(/[0-9]/.test(right))) {\n return left + right;\n } else {\n return left + \".\" + right;\n }\n }\n\n /**\n * 处理小数点右边小数部分\n * @param tright 右边内容\n * @param fright 右边格式\n * @returns {JSON} 返回处理结果和整数部分是否需要进位\n * @private\n */\n function _dealWithRight (tright, fright) {\n var right = \"\", j = 0, i = 0;\n for (var len = fright.length; i < len; i++) {\n var ch = fright.charAt(i);\n var c = tright.charAt(j);\n switch (ch) {\n case \"0\":\n if (isEmpty(c)) {\n c = \"0\";\n }\n right += c;\n j++;\n break;\n case \"#\":\n right += c;\n j++;\n break;\n default :\n right += ch;\n break;\n }\n }\n var rll = tright.substr(j);\n var result = {};\n if (!isEmpty(rll) && rll.charAt(0) > 4) {\n // 有多余字符,需要四舍五入\n result.leftPlus = true;\n var numReg = right.match(/^[0-9]+/);\n if (numReg) {\n var num = numReg[0];\n var orilen = num.length;\n var newnum = parseInt(num) + 1 + \"\";\n // 进位到整数部分\n if (newnum.length > orilen) {\n newnum = newnum.substr(1);\n } else {\n newnum = BI.leftPad(newnum, orilen, \"0\");\n result.leftPlus = false;\n }\n right = right.replace(/^[0-9]+/, newnum);\n }\n }\n result.num = right;\n return result;\n }\n\n /**\n * 处理小数点左边整数部分\n * @param tleft 左边内容\n * @param fleft 左边格式\n * @returns {string} 返回处理结果\n * @private\n */\n function _dealWithLeft (tleft, fleft) {\n var left = \"\";\n var j = tleft.length - 1;\n var combo = -1, last = -1;\n var i = fleft.length - 1;\n for (; i >= 0; i--) {\n var ch = fleft.charAt(i);\n var c = tleft.charAt(j);\n switch (ch) {\n case \"0\":\n if (isEmpty(c)) {\n c = \"0\";\n }\n last = -1;\n left = c + left;\n j--;\n break;\n case \"#\":\n last = i;\n left = c + left;\n j--;\n break;\n case \",\":\n if (!isEmpty(c)) {\n // 计算一个,分隔区间的长度\n var com = fleft.match(/,[#0]+/);\n if (com) {\n combo = com[0].length - 1;\n }\n left = \",\" + left;\n }\n break;\n default :\n left = ch + left;\n break;\n }\n }\n if (last > -1) {\n // 处理剩余字符\n var tll = tleft.substr(0, j + 1);\n left = left.substr(0, last) + tll + left.substr(last);\n }\n if (combo > 0) {\n // 处理,分隔区间\n var res = left.match(/[0-9]+,/);\n if (res) {\n res = res[0];\n var newstr = \"\", n = res.length - 1 - combo;\n for (; n >= 0; n = n - combo) {\n newstr = res.substr(n, combo) + \",\" + newstr;\n }\n var lres = res.substr(0, n + combo);\n if (!isEmpty(lres)) {\n newstr = lres + \",\" + newstr;\n }\n }\n left = left.replace(/[0-9]+,/, newstr);\n }\n return left;\n }\n\n\n BI.cjkEncode = function (text) {\n // alex:如果非字符串,返回其本身(cjkEncode(234) 返回 \"\"是不对的)\n if (typeof text !== \"string\") {\n return text;\n }\n\n var newText = \"\";\n for (var i = 0; i < text.length; i++) {\n var code = text.charCodeAt(i);\n if (code >= 128 || code === 91 || code === 93) {// 91 is \"[\", 93 is \"]\".\n newText += \"[\" + code.toString(16) + \"]\";\n } else {\n newText += text.charAt(i);\n }\n }\n\n return newText;\n };\n\n /**\n * 将cjkEncode处理过的字符串转化为原始字符串\n *\n * @static\n * @param text 需要做解码的字符串\n * @return {String} 解码后的字符串\n */\n BI.cjkDecode = function (text) {\n if (text == null) {\n return \"\";\n }\n // 查找没有 \"[\", 直接返回. kunsnat:数字的时候, 不支持indexOf方法, 也是直接返回.\n if (!isNaN(text) || text.indexOf(\"[\") == -1) {\n return text;\n }\n\n var newText = \"\";\n for (var i = 0; i < text.length; i++) {\n var ch = text.charAt(i);\n if (ch == \"[\") {\n var rightIdx = text.indexOf(\"]\", i + 1);\n if (rightIdx > i + 1) {\n var subText = text.substring(i + 1, rightIdx);\n // james:主要是考虑[CDATA[]]这样的值的出现\n if (subText.length > 0) {\n ch = String.fromCharCode(eval(\"0x\" + subText));\n }\n\n i = rightIdx;\n }\n }\n\n newText += ch;\n }\n\n return newText;\n };\n\n // replace the html special tags\n var SPECIAL_TAGS = {\n \"&\": \"&\",\n \"\\\"\": \""\",\n \"<\": \"<\",\n \">\": \">\",\n \" \": \" \"\n };\n BI.htmlEncode = function (text) {\n return BI.isNull(text) ? \"\" : BI.replaceAll(text + \"\", \"&|\\\"|<|>|\\\\s\", function (v) {\n return SPECIAL_TAGS[v] ? SPECIAL_TAGS[v] : \" \";\n });\n };\n // html decode\n BI.htmlDecode = function (text) {\n return BI.isNull(text) ? \"\" : BI.replaceAll(text + \"\", \"&|"|<|>| \", function (v) {\n switch (v) {\n case \"&\":\n return \"&\";\n case \""\":\n return \"\\\"\";\n case \"<\":\n return \"<\";\n case \">\":\n return \">\";\n case \" \":\n default:\n return \" \";\n }\n });\n };\n\n BI.cjkEncodeDO = function (o) {\n if (BI.isPlainObject(o)) {\n var result = {};\n _.each(o, function (v, k) {\n if (!(typeof v === \"string\")) {\n v = BI.jsonEncode(v);\n }\n // wei:bug 43338,如果key是中文,cjkencode后o的长度就加了1,ie9以下版本死循环,所以新建对象result。\n k = BI.cjkEncode(k);\n result[k] = BI.cjkEncode(v);\n });\n return result;\n }\n return o;\n };\n\n BI.jsonEncode = function (o) {\n // james:这个Encode是抄的EXT的\n var useHasOwn = !!{}.hasOwnProperty;\n\n // crashes Safari in some instances\n // var validRE = /^(\"(\\\\.|[^\"\\\\\\n\\r])*?\"|[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t])+?$/;\n\n var m = {\n \"\\b\": \"\\\\b\",\n \"\\t\": \"\\\\t\",\n \"\\n\": \"\\\\n\",\n \"\\f\": \"\\\\f\",\n \"\\r\": \"\\\\r\",\n \"\\\"\": \"\\\\\\\"\",\n \"\\\\\": \"\\\\\\\\\"\n };\n\n var encodeString = function (s) {\n if (/[\"\\\\\\x00-\\x1f]/.test(s)) {\n return \"\\\"\" + s.replace(/([\\x00-\\x1f\\\\\"])/g, function (a, b) {\n var c = m[b];\n if (c) {\n return c;\n }\n c = b.charCodeAt();\n return \"\\\\u00\" +\n Math.floor(c / 16).toString(16) +\n (c % 16).toString(16);\n }) + \"\\\"\";\n }\n return \"\\\"\" + s + \"\\\"\";\n };\n\n var encodeArray = function (o) {\n var a = [\"[\"], b, i, l = o.length, v;\n for (i = 0; i < l; i += 1) {\n v = o[i];\n switch (typeof v) {\n case \"undefined\":\n case \"function\":\n case \"unknown\":\n break;\n default:\n if (b) {\n a.push(\",\");\n }\n a.push(v === null ? \"null\" : BI.jsonEncode(v));\n b = true;\n }\n }\n a.push(\"]\");\n return a.join(\"\");\n };\n\n if (typeof o === \"undefined\" || o === null) {\n return \"null\";\n } else if (BI.isArray(o)) {\n return encodeArray(o);\n } else if (o instanceof Date) {\n /*\n * alex:原来只是把年月日时分秒简单地拼成一个String,无法decode\n * 现在这么处理就可以decode了,但是JS.jsonDecode和Java.JSONObject也要跟着改一下\n */\n return BI.jsonEncode({\n __time__: o.getTime()\n });\n } else if (typeof o === \"string\") {\n return encodeString(o);\n } else if (typeof o === \"number\") {\n return isFinite(o) ? String(o) : \"null\";\n } else if (typeof o === \"boolean\") {\n return String(o);\n } else if (BI.isFunction(o)) {\n return String(o);\n }\n var a = [\"{\"], b, i, v;\n for (i in o) {\n if (!useHasOwn || o.hasOwnProperty(i)) {\n v = o[i];\n switch (typeof v) {\n case \"undefined\":\n case \"unknown\":\n break;\n default:\n if (b) {\n a.push(\",\");\n }\n a.push(BI.jsonEncode(i), \":\",\n v === null ? \"null\" : BI.jsonEncode(v));\n b = true;\n }\n }\n }\n a.push(\"}\");\n return a.join(\"\");\n\n };\n\n BI.jsonDecode = function (text) {\n\n try {\n // 注意0啊\n // var jo = $.parseJSON(text) || {};\n var jo = BI.$ ? BI.$.parseJSON(text) : _global.JSON.parse(text);\n if (jo == null) {\n jo = {};\n }\n } catch (e) {\n /*\n * richie:浏览器只支持标准的JSON字符串转换,而jQuery会默认调用浏览器的window.JSON.parse()函数进行解析\n * 比如:var str = \"{'a':'b'}\",这种形式的字符串转换为JSON就会抛异常\n */\n try {\n jo = new Function(\"return \" + text)() || {};\n } catch (e) {\n // do nothing\n }\n if (jo == null) {\n jo = [];\n }\n }\n if (!_hasDateInJson(text)) {\n return jo;\n }\n\n function _hasDateInJson (json) {\n if (!json || typeof json !== \"string\") {\n return false;\n }\n return json.indexOf(\"__time__\") != -1;\n }\n\n return (function (o) {\n if (typeof o === \"string\") {\n return o;\n }\n if (o && o.__time__ != null) {\n return new Date(o.__time__);\n }\n for (var a in o) {\n if (o[a] == o || typeof o[a] === \"object\" || _.isFunction(o[a])) {\n break;\n }\n o[a] = arguments.callee(o[a]);\n }\n\n return o;\n })(jo);\n };\n\n /**\n * 获取编码后的url\n * @param urlTemplate url模板\n * @param param 参数\n * @returns {*|String}\n * @example\n * BI.getEncodeURL(\"design/{tableName}/{fieldName}\",{tableName: \"A\", fieldName: \"a\"}) // design/A/a\n */\n BI.getEncodeURL = function (urlTemplate, param) {\n return urlTemplate.replaceAll(\"\\\\{(.*?)\\\\}\", function (ori, str) {\n return BI.encodeURIComponent(BI.isObject(param) ? param[str] : param);\n });\n };\n\n BI.encodeURIComponent = function (url) {\n BI.specialCharsMap = BI.specialCharsMap || {};\n url = url || \"\";\n url = BI.replaceAll(url + \"\", BI.keys(BI.specialCharsMap || []).join(\"|\"), function (str) {\n switch (str) {\n case \"\\\\\":\n return BI.specialCharsMap[\"\\\\\\\\\"] || str;\n default:\n return BI.specialCharsMap[str] || str;\n }\n });\n return _global.encodeURIComponent(url);\n };\n\n BI.decodeURIComponent = function (url) {\n var reserveSpecialCharsMap = {};\n BI.each(BI.specialCharsMap, function (initialChar, encodeChar) {\n reserveSpecialCharsMap[encodeChar] = initialChar === \"\\\\\\\\\" ? \"\\\\\" : initialChar;\n });\n url = url || \"\";\n url = BI.replaceAll(url + \"\", BI.keys(reserveSpecialCharsMap || []).join(\"|\"), function (str) {\n return reserveSpecialCharsMap[str] || str;\n });\n return _global.decodeURIComponent(url);\n };\n\n BI.contentFormat = function (cv, fmt) {\n if (isEmpty(cv)) {\n // 原值为空,返回空字符\n return \"\";\n }\n var text = cv.toString();\n if (isEmpty(fmt)) {\n // 格式为空,返回原字符\n return text;\n }\n if (fmt.match(/^T/)) {\n // T - 文本格式\n return text;\n } else if (fmt.match(/^D/)) {\n // D - 日期(时间)格式\n if (!(cv instanceof Date)) {\n if (typeof cv === \"number\") {\n // 毫秒数类型\n cv = new Date(cv);\n } else {\n //字符串类型转化为date类型\n cv = new Date(Date.parse((\"\" + cv).replace(/-|\\./g, \"/\")));\n }\n }\n if (!isInvalidDate(cv) && !BI.isNull(cv)) {\n var needTrim = fmt.match(/^DT/);\n text = BI.date2Str(cv, fmt.substring(needTrim ? 2 : 1));\n }\n } else if (fmt.match(/E/)) {\n // 科学计数格式\n text = _eFormat(text, fmt);\n } else {\n // 数字格式\n text = _numberFormat(text, fmt);\n }\n // ¤ - 货币格式\n text = text.replace(/¤/g, \"¥\");\n return text;\n };\n\n /**\n * 将Java提供的日期格式字符串装换为JS识别的日期格式字符串\n * @class FR.parseFmt\n * @param fmt 日期格式\n * @returns {String}\n */\n BI.parseFmt = function (fmt) {\n if (!fmt) {\n return \"\";\n }\n //日期\n fmt = String(fmt)\n //年\n .replace(/y{4,}/g, \"%Y\")//yyyy的时候替换为Y\n .replace(/y{2}/g, \"%y\")//yy的时候替换为y\n //月\n .replace(/M{4,}/g, \"%b\")//MMMM的时候替换为b,八\n .replace(/M{3}/g, \"%B\")//MMM的时候替换为M,八月\n .replace(/M{2}/g, \"%X\")//MM的时候替换为X,08\n .replace(/M{1}/g, \"%x\")//M的时候替换为x,8\n .replace(/a{1}/g, \"%p\");\n //天\n if (new RegExp(\"d{2,}\", \"g\").test(fmt)) {\n fmt = fmt.replace(/d{2,}/g, \"%d\");//dd的时候替换为d\n } else {\n fmt = fmt.replace(/d{1}/g, \"%e\");//d的时候替换为j\n }\n //时\n if (new RegExp(\"h{2,}\", \"g\").test(fmt)) {//12小时制\n fmt = fmt.replace(/h{2,}/g, \"%I\");\n } else {\n fmt = fmt.replace(/h{1}/g, \"%I\");\n }\n if (new RegExp(\"H{2,}\", \"g\").test(fmt)) {//24小时制\n fmt = fmt.replace(/H{2,}/g, \"%H\");\n } else {\n fmt = fmt.replace(/H{1}/g, \"%H\");\n }\n fmt = fmt.replace(/m{2,}/g, \"%M\")//分\n //秒\n .replace(/s{2,}/g, \"%S\");\n\n return fmt;\n };\n\n /**\n * 把字符串按照对应的格式转化成日期对象\n *\n * @example\n * var result = BI.str2Date('2013-12-12', 'yyyy-MM-dd');//Thu Dec 12 2013 00:00:00 GMT+0800\n *\n * @class BI.str2Date\n * @param str 字符串\n * @param format 日期格式\n * @returns {*}\n */\n BI.str2Date = function (str, format) {\n if (typeof str != \"string\" || typeof format != \"string\") {\n return null;\n }\n var fmt = BI.parseFmt(format);\n return BI.parseDateTime(str, fmt);\n };\n\n /**\n * 把日期对象按照指定格式转化成字符串\n *\n * @example\n * var date = new Date('Thu Dec 12 2013 00:00:00 GMT+0800');\n * var result = BI.date2Str(date, 'yyyy-MM-dd');//2013-12-12\n *\n * @class BI.date2Str\n * @param date 日期\n * @param format 日期格式\n * @returns {String}\n */\n BI.date2Str = function (date, format) {\n if (!date) {\n return \"\";\n }\n // O(len(format))\n var len = format.length, result = \"\";\n if (len > 0) {\n var flagch = format.charAt(0), start = 0, str = flagch;\n for (var i = 1; i < len; i++) {\n var ch = format.charAt(i);\n if (flagch !== ch) {\n result += compileJFmt({\n char: flagch,\n str: str,\n len: i - start\n }, date);\n flagch = ch;\n start = i;\n str = flagch;\n } else {\n str += ch;\n }\n }\n result += compileJFmt({\n char: flagch,\n str: str,\n len: len - start\n }, date);\n }\n return result;\n\n function compileJFmt (jfmt, date) {\n var str = jfmt.str, len = jfmt.len, ch = jfmt[\"char\"];\n switch (ch) {\n case \"E\": // 星期\n str = BI.Date._DN[date.getDay()];\n break;\n case \"y\": // 年\n if (len <= 3) {\n str = (date.getFullYear() + \"\").slice(2, 4);\n } else {\n str = date.getFullYear();\n }\n break;\n case \"M\": // 月\n if (len > 2) {\n str = BI.Date._MN[date.getMonth()];\n } else if (len < 2) {\n str = date.getMonth() + 1;\n } else {\n str = BI.leftPad(date.getMonth() + 1 + \"\", 2, \"0\");\n }\n break;\n case \"d\": // 日\n if (len > 1) {\n str = BI.leftPad(date.getDate() + \"\", 2, \"0\");\n } else {\n str = date.getDate();\n }\n break;\n case \"h\": // 时(12)\n var hour = date.getHours() % 12;\n if (hour === 0) {\n hour = 12;\n }\n if (len > 1) {\n str = BI.leftPad(hour + \"\", 2, \"0\");\n } else {\n str = hour;\n }\n break;\n case \"H\": // 时(24)\n if (len > 1) {\n str = BI.leftPad(date.getHours() + \"\", 2, \"0\");\n } else {\n str = date.getHours();\n }\n break;\n case \"m\":\n if (len > 1) {\n str = BI.leftPad(date.getMinutes() + \"\", 2, \"0\");\n } else {\n str = date.getMinutes();\n }\n break;\n case \"s\":\n if (len > 1) {\n str = BI.leftPad(date.getSeconds() + \"\", 2, \"0\");\n } else {\n str = date.getSeconds();\n }\n break;\n case \"a\":\n str = date.getHours() < 12 ? \"am\" : \"pm\";\n break;\n case \"z\":\n str = BI.getTimezone(date);\n break;\n default:\n str = jfmt.str;\n break;\n }\n return str;\n }\n };\n\n BI.object2Number = function (value) {\n if (value == null) {\n return 0;\n }\n if (typeof value === \"number\") {\n return value;\n }\n var str = value + \"\";\n if (str.indexOf(\".\") === -1) {\n return parseInt(str);\n }\n return parseFloat(str);\n };\n\n BI.object2Date = function (obj) {\n if (obj == null) {\n return new Date();\n }\n if (obj instanceof Date) {\n return obj;\n } else if (typeof obj === \"number\") {\n return new Date(obj);\n }\n var str = obj + \"\";\n str = str.replace(/-/g, \"/\");\n var dt = new Date(str);\n if (!isInvalidDate(dt)) {\n return dt;\n }\n\n return new Date();\n\n };\n\n BI.object2Time = function (obj) {\n if (obj == null) {\n return new Date();\n }\n if (obj instanceof Date) {\n return obj;\n }\n var str = obj + \"\";\n str = str.replace(/-/g, \"/\");\n var dt = new Date(str);\n if (!isInvalidDate(dt)) {\n return dt;\n }\n if (str.indexOf(\"/\") === -1 && str.indexOf(\":\") !== -1) {\n dt = new Date(\"1970/01/01 \" + str);\n if (!isInvalidDate(dt)) {\n return dt;\n }\n }\n dt = BI.parseDateTime(str, \"HH:mm:ss\");\n if (!isInvalidDate(dt)) {\n return dt;\n }\n return new Date();\n\n };\n})();\n/**\n * guy\n *\n * @class BI.HighlightBehavior\n * @extends BI.Behavior\n */\nBI.HighlightBehavior = BI.inherit(BI.Behavior, {\n _defaultConfig: function () {\n return BI.extend(BI.HighlightBehavior.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.HighlightBehavior.superclass._init.apply(this, arguments);\n\n },\n\n doBehavior: function (items) {\n var args = Array.prototype.slice.call(arguments, 1),\n o = this.options;\n BI.each(items, function (i, item) {\n if (item instanceof BI.Single) {\n var rule = o.rule(item.getValue(), item);\n\n function doBe (run) {\n if (run === true) {\n item.doHighLight && item.doHighLight.apply(item, args);\n } else {\n item.unHighLight && item.unHighLight.apply(item, args);\n }\n }\n\n if (BI.isFunction(rule)) {\n rule(doBe);\n } else {\n doBe(rule);\n }\n } else {\n item.doBehavior && item.doBehavior.apply(item, args);\n }\n });\n }\n});/**\n * guy\n * 标红行为\n * @class BI.RedMarkBehavior\n * @extends BI.Behavior\n */\nBI.RedMarkBehavior = BI.inherit(BI.Behavior, {\n _defaultConfig: function () {\n return BI.extend(BI.RedMarkBehavior.superclass._defaultConfig.apply(this, arguments), {\n\n });\n },\n\n _init: function () {\n BI.RedMarkBehavior.superclass._init.apply(this, arguments);\n\n },\n\n doBehavior: function (items) {\n var args = Array.prototype.slice.call(arguments, 1),\n o = this.options;\n BI.each(items, function (i, item) {\n if(item instanceof BI.Single) {\n if (o.rule(item.getValue(), item)) {\n item.doRedMark && item.doRedMark.apply(item, args);\n } else {\n item.doRedMark && item.unRedMark.apply(item, args);\n }\n } else {\n item.doBehavior && item.doBehavior.apply(item, args);\n }\n });\n }\n});/**\n * guy\n * 控制器\n * Controller层超类\n * @class BI.Controller\n * @extends BI.OB\n * @abstract\n */\nBI.Controller = BI.inherit(BI.OB, {\n _defaultConfig: function () {\n return BI.extend(BI.Controller.superclass._defaultConfig.apply(this, arguments), {\n\n });\n },\n _init: function () {\n BI.Controller.superclass._init.apply(this, arguments);\n },\n\n destroy: function () {\n\n }\n});\nBI.Controller.EVENT_CHANGE = \"__EVENT_CHANGE__\";/**\n * 广播\n *\n * Created by GUY on 2015/12/23.\n * @class\n */\nBI.BroadcastController = BI.inherit(BI.Controller, {\n _defaultConfig: function () {\n return BI.extend(BI.BroadcastController.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.BroadcastController.superclass._init.apply(this, arguments);\n this._broadcasts = {};\n },\n\n on: function (name, fn) {\n var self = this;\n if (!this._broadcasts[name]) {\n this._broadcasts[name] = [];\n }\n this._broadcasts[name].push(fn);\n return function () {\n self.remove(name, fn);\n };\n },\n\n send: function (name) {\n var args = [].slice.call(arguments, 1);\n BI.each(this._broadcasts[name], function (i, fn) {\n fn.apply(null, args);\n });\n },\n\n remove: function (name, fn) {\n var self = this;\n if (fn) {\n BI.remove(this._broadcasts[name], function (idx) {\n return self._broadcasts[name].indexOf(fn) === idx;\n });\n this._broadcasts[name].remove(fn);\n if (this._broadcasts[name].length === 0) {\n delete this._broadcasts[name];\n }\n } else {\n delete this._broadcasts[name];\n }\n return this;\n }\n});/**\n * 气泡图控制器\n * 控制气泡图的显示方向\n *\n * Created by GUY on 2015/8/21.\n * @class\n */\nBI.BubblesController = BI.inherit(BI.Controller, {\n _defaultConfig: function () {\n return BI.extend(BI.BubblesController.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _const: {\n bubbleHeight: 18\n },\n\n _init: function () {\n BI.BubblesController.superclass._init.apply(this, arguments);\n var self = this;\n this.bubblesManager = {};\n this.storeBubbles = {};\n BI.Resizers.add(\"bubbleController\" + BI.uniqueId(), function () {\n BI.each(self.bubblesManager, function (name) {\n self.remove(name);\n });\n self.bubblesManager = {};\n self.storeBubbles = {};\n });\n },\n\n _createBubble: function (direct, text, level, height) {\n return BI.createWidget({\n type: \"bi.bubble\",\n text: text,\n level: level,\n height: height || 18,\n direction: direct\n });\n },\n\n _getOffsetLeft: function (name, context, offsetStyle) {\n var left = 0;\n if (\"center\" === offsetStyle) {\n left = context.element.offset().left + (context.element.bounds().width - this.get(name).element.bounds().width) / 2;\n if (left < 0) {\n left = 0;\n }\n return left;\n }\n if (\"right\" === offsetStyle) {\n left = context.element.offset().left + context.element.bounds().width - this.get(name).element.bounds().width;\n if (left < 0) {\n left = 0;\n }\n return left;\n }\n return context.element.offset().left;\n },\n\n _getOffsetTop: function (name, context, offsetStyle) {\n var top = 0;\n if (\"center\" === offsetStyle) {\n top = context.element.offset().top + (context.element.bounds().height - this.get(name).element.bounds().height) / 2;\n if (top < 0) {\n top = 0;\n }\n return top;\n } else if (\"right\" === offsetStyle) {\n top = context.element.offset().top + context.element.bounds().height - this.get(name).element.bounds().height;\n if (top < 0) {\n top = 0;\n }\n return top;\n }\n return context.element.offset().top;\n },\n\n _getLeftPosition: function (name, context, offsetStyle) {\n var position = BI.DOM.getLeftPosition(context, this.get(name));\n position.top = this._getOffsetTop(name, context, offsetStyle);\n return position;\n },\n\n _getBottomPosition: function (name, context, offsetStyle) {\n var position = BI.DOM.getBottomPosition(context, this.get(name));\n position.left = this._getOffsetLeft(name, context, offsetStyle);\n return position;\n },\n\n _getTopPosition: function (name, context, offsetStyle) {\n var position = BI.DOM.getTopPosition(context, this.get(name));\n position.left = this._getOffsetLeft(name, context, offsetStyle);\n return position;\n },\n\n _getRightPosition: function (name, context, offsetStyle) {\n var position = BI.DOM.getRightPosition(context, this.get(name));\n position.top = this._getOffsetTop(name, context, offsetStyle);\n return position;\n },\n\n /**\n *\n * @param name\n * @param text\n * @param context\n * @param offsetStyle center, left, right三种类型, 默认left\n * @returns {BI.BubblesController}\n */\n show: function (name, text, context, opt) {\n opt || (opt = {});\n var container = opt.container || context;\n var offsetStyle = opt.offsetStyle || {};\n var level = opt.level || \"error\";\n var adjustYOffset = opt.adjustYOffset || 0;\n var adjustXOffset = opt.adjustXOffset || 0;\n if (!this.storeBubbles[name]) {\n this.storeBubbles[name] = {};\n }\n if (!this.storeBubbles[name][\"top\"]) {\n this.storeBubbles[name][\"top\"] = this._createBubble(\"top\", text, level);\n }\n BI.createWidget({\n type: \"bi.absolute\",\n element: container,\n items: [{\n el: this.storeBubbles[name][\"top\"]\n }]\n });\n this.set(name, this.storeBubbles[name][\"top\"]);\n var position = this._getTopPosition(name, context, offsetStyle);\n this.get(name).element.css({left: position.left + adjustXOffset, top: position.top - adjustYOffset});\n this.get(name).invisible();\n if (!BI.DOM.isTopSpaceEnough(context, this.get(name), adjustYOffset)) {\n if (!this.storeBubbles[name][\"left\"]) {\n this.storeBubbles[name][\"left\"] = this._createBubble(\"left\", text, level, 30);\n }\n BI.createWidget({\n type: \"bi.absolute\",\n element: container,\n items: [{\n el: this.storeBubbles[name][\"left\"]\n }]\n });\n this.set(name, this.storeBubbles[name][\"left\"]);\n var position = this._getLeftPosition(name, context, offsetStyle);\n this.get(name).element.css({left: position.left - adjustXOffset, top: position.top - adjustYOffset});\n this.get(name).invisible();\n if (!BI.DOM.isLeftSpaceEnough(context, this.get(name), adjustXOffset)) {\n if (!this.storeBubbles[name][\"right\"]) {\n this.storeBubbles[name][\"right\"] = this._createBubble(\"right\", text, level, 30);\n }\n BI.createWidget({\n type: \"bi.absolute\",\n element: container,\n items: [{\n el: this.storeBubbles[name][\"right\"]\n }]\n });\n this.set(name, this.storeBubbles[name][\"right\"]);\n var position = this._getRightPosition(name, context, offsetStyle);\n this.get(name).element.css({left: position.left + adjustXOffset, top: position.top - adjustYOffset});\n this.get(name).invisible();\n if (!BI.DOM.isRightSpaceEnough(context, this.get(name), adjustXOffset)) {\n if (!this.storeBubbles[name][\"bottom\"]) {\n this.storeBubbles[name][\"bottom\"] = this._createBubble(\"bottom\", text, level);\n }\n BI.createWidget({\n type: \"bi.absolute\",\n element: container,\n items: [{\n el: this.storeBubbles[name][\"bottom\"]\n }]\n });\n this.set(name, this.storeBubbles[name][\"bottom\"]);\n var position = this._getBottomPosition(name, context, offsetStyle);\n this.get(name).element.css({left: position.left + adjustXOffset, top: position.top + adjustYOffset});\n this.get(name).invisible();\n }\n }\n }\n this.get(name).setText(text);\n this.get(name).visible();\n return this;\n },\n\n hide: function (name) {\n if (!this.has(name)) {\n return this;\n }\n this.get(name).invisible();\n return this;\n },\n\n add: function (name, bubble) {\n if (this.has(name)) {\n return this;\n }\n this.set(name, bubble);\n return this;\n },\n\n get: function (name) {\n return this.bubblesManager[name];\n },\n\n set: function (name, bubble) {\n this.bubblesManager[name] = bubble;\n },\n\n has: function (name) {\n return this.bubblesManager[name] != null;\n },\n\n remove: function (name) {\n if (!this.has(name)) {\n return this;\n }\n BI.each(this.storeBubbles[name], function (dir, bubble) {\n bubble.destroy();\n });\n delete this.storeBubbles[name];\n delete this.bubblesManager[name];\n return this;\n }\n});/**\n * 弹出层面板控制器, z-index在10w层级\n *\n * Created by GUY on 2015/6/24.\n * @class\n */\nBI.LayerController = BI.inherit(BI.Controller, {\n _defaultConfig: function () {\n return BI.extend(BI.LayerController.superclass._defaultConfig.apply(this, arguments), {\n render: \"body\"\n });\n },\n\n _init: function () {\n BI.LayerController.superclass._init.apply(this, arguments);\n this.layerManager = {};\n this.layouts = {};\n this.zindex = BI.zIndex_layer;\n BI.Resizers.add(\"layerController\" + BI.uniqueId(), BI.bind(this._resize, this));\n },\n\n _resize: function () {\n BI.each(this.layouts, function (i, layer) {\n if (layer.element.is(\":visible\")) {\n layer.element.trigger(\"__resize__\");\n }\n });\n },\n\n make: function (name, container, op, context) {\n if (BI.isWidget(container)) {\n op = op || {};\n op.container = container;\n } else {\n context = op;\n op = container;\n }\n return this.create(name, null, op, context);\n },\n\n create: function (name, from, op, context) {\n if (this.has(name)) {\n return this.get(name);\n }\n op || (op = {});\n var offset = op.offset || {};\n var w = from;\n if (BI.isWidget(from)) {\n w = from.element;\n }\n if (BI.isNotEmptyString(w)) {\n w = BI.Widget._renderEngine.createElement(w);\n }\n if (this.has(name)) {\n return this.get(name);\n }\n var widget = BI.createWidget((op.render || {}), BI.extend({\n type: \"bi.layout\"\n }, op), context);\n var layout = BI.createWidget({\n type: \"bi.absolute\",\n invisible: true,\n items: [{\n el: widget,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n }, context);\n BI.createWidget({\n type: \"bi.absolute\",\n element: op.container || this.options.render,\n items: [{\n el: layout,\n left: offset.left || 0,\n right: offset.right || 0,\n top: offset.top || 0,\n bottom: offset.bottom || 0\n }]\n });\n if (w) {\n layout.element.addClass(\"bi-popup-view\");\n layout.element.css({\n left: w.offset().left + (offset.left || 0),\n top: w.offset().top + (offset.top || 0),\n width: offset.width || (w.outerWidth() - (offset.left || 0) - (offset.right || 0)) || \"\",\n height: offset.height || (w.outerHeight() - (offset.top || 0) - (offset.bottom || 0)) || \"\"\n });\n layout.element.on(\"__resize__\", function () {\n w.is(\":visible\") &&\n layout.element.css({\n left: w.offset().left + (offset.left || 0),\n top: w.offset().top + (offset.top || 0),\n width: offset.width || (w.outerWidth() - (offset.left || 0) - (offset.right || 0)) || \"\",\n height: offset.height || (w.outerHeight() - (offset.top || 0) - (offset.bottom || 0)) || \"\"\n });\n });\n }\n this.add(name, widget, layout);\n return widget;\n },\n\n hide: function (name, callback) {\n if (!this.has(name)) {\n return this;\n }\n this._getLayout(name).invisible();\n this._getLayout(name).element.hide(0, callback);\n return this;\n },\n\n show: function (name, callback) {\n if (!this.has(name)) {\n return this;\n }\n this._getLayout(name).visible();\n this._getLayout(name).element.css(\"z-index\", this.zindex++).show(0, callback).trigger(\"__resize__\");\n return this;\n },\n\n isVisible: function (name) {\n return this.has(name) && this._getLayout(name).isVisible();\n },\n\n add: function (name, layer, layout) {\n if (this.has(name)) {\n throw new Error(\"name is already exist\");\n }\n layout.setVisible(false);\n this.layerManager[name] = layer;\n this.layouts[name] = layout;\n layout.element.css(\"z-index\", this.zindex++);\n return this;\n },\n\n _getLayout: function (name) {\n return this.layouts[name];\n },\n\n get: function (name) {\n return this.layerManager[name];\n },\n\n has: function (name) {\n return this.layerManager[name] != null;\n },\n\n remove: function (name) {\n if (!this.has(name)) {\n return this;\n }\n this.layerManager[name].destroy();\n this.layouts[name].destroy();\n delete this.layerManager[name];\n delete this.layouts[name];\n return this;\n },\n\n removeAll: function () {\n var self = this;\n BI.each(BI.keys(this.layerManager), function (index, name) {\n self.layerManager[name].destroy();\n self.layouts[name].destroy();\n });\n this.layerManager = {};\n this.layouts = {};\n return this;\n }\n});/**\n * 遮罩面板, z-index在1亿层级\n *\n * Created by GUY on 2015/6/24.\n * @class\n */\nBI.MaskersController = BI.inherit(BI.LayerController, {\n _defaultConfig: function () {\n return BI.extend(BI.MaskersController.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.MaskersController.superclass._init.apply(this, arguments);\n this.zindex = BI.zIndex_masker;\n }\n});/**\n * guy\n * popover弹出层控制器, z-index在100w层级\n * @class BI.popoverController\n * @extends BI.Controller\n */\nBI.PopoverController = BI.inherit(BI.Controller, {\n _defaultConfig: function () {\n return BI.extend(BI.PopoverController.superclass._defaultConfig.apply(this, arguments), {\n modal: true, // 模态窗口\n render: \"body\"\n });\n },\n\n _init: function () {\n BI.PopoverController.superclass._init.apply(this, arguments);\n this.modal = this.options.modal;\n this.floatManager = {};\n this.floatLayer = {};\n this.floatContainer = {};\n this.floatOpened = {};\n this.zindex = BI.zIndex_popover;\n this.zindexMap = {};\n },\n\n _check: function (name) {\n return BI.isNotNull(this.floatManager[name]);\n },\n\n create: function (name, options, context) {\n if (this._check(name)) {\n return this;\n }\n var popover = BI.createWidget(options || {}, {\n type: \"bi.popover\"\n }, context);\n this.add(name, popover, options, context);\n return this;\n },\n\n add: function (name, popover, options, context) {\n var self = this;\n options || (options = {});\n if (this._check(name)) {\n return this;\n }\n this.floatContainer[name] = BI.createWidget({\n type: \"bi.absolute\",\n cls: \"bi-popup-view\",\n items: [{\n el: (this.floatLayer[name] = BI.createWidget({\n type: \"bi.absolute\",\n items: [popover]\n }, context)),\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this.floatManager[name] = popover;\n (function (key) {\n popover.on(BI.Popover.EVENT_CLOSE, function () {\n self.close(key);\n });\n })(name);\n BI.createWidget({\n type: \"bi.absolute\",\n element: options.container || this.options.render,\n items: [{\n el: this.floatContainer[name],\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n return this;\n },\n\n open: function (name) {\n if (!this._check(name)) {\n return this;\n }\n if (!this.floatOpened[name]) {\n this.floatOpened[name] = true;\n var container = this.floatContainer[name];\n container.element.css(\"zIndex\", this.zindex++);\n this.modal && container.element.__hasZIndexMask__(this.zindexMap[name]) && container.element.__releaseZIndexMask__(this.zindexMap[name]);\n this.zindexMap[name] = this.zindex;\n this.modal && container.element.__buildZIndexMask__(this.zindex++);\n this.get(name).setZindex(this.zindex++);\n this.floatContainer[name].visible();\n var popover = this.get(name);\n popover.show && popover.show();\n var W = BI.Widget._renderEngine.createElement(this.options.render).width(), H = BI.Widget._renderEngine.createElement(this.options.render).height();\n var w = popover.element.width(), h = popover.element.height();\n var left = (W - w) / 2, top = (H - h) / 2;\n if (left < 0) {\n left = 0;\n }\n if (top < 0) {\n top = 0;\n }\n popover.element.css({\n left: left + \"px\",\n top: top + \"px\"\n });\n }\n return this;\n },\n\n close: function (name) {\n if (!this._check(name)) {\n return this;\n }\n if (this.floatOpened[name]) {\n delete this.floatOpened[name];\n this.floatContainer[name].invisible();\n this.modal && this.floatContainer[name].element.__releaseZIndexMask__(this.zindexMap[name]);\n }\n return this;\n },\n\n get: function (name) {\n return this.floatManager[name];\n },\n\n remove: function (name) {\n if (!this._check(name)) {\n return this;\n }\n this.floatContainer[name].destroy();\n this.modal && this.floatContainer[name].element.__releaseZIndexMask__(this.zindexMap[name]);\n delete this.floatManager[name];\n delete this.floatLayer[name];\n delete this.zindexMap[name];\n delete this.floatContainer[name];\n delete this.floatOpened[name];\n return this;\n },\n\n removeAll: function () {\n var self = this;\n BI.each(this.floatContainer, function (name, container) {\n container.destroy();\n self.modal && self.floatContainer[name].element.__releaseZIndexMask__(self.zindexMap[name]);\n });\n this.floatManager = {};\n this.floatLayer = {};\n this.floatContainer = {};\n this.floatOpened = {};\n this.zindexMap = {};\n return this;\n }\n});/**\n * window.resize 控制器\n *\n * Created by GUY on 2015/6/24.\n * @class\n */\nBI.ResizeController = BI.inherit(BI.Controller, {\n _defaultConfig: function () {\n return BI.extend(BI.ResizeController.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.ResizeController.superclass._init.apply(this, arguments);\n var self = this;\n this.resizerManger = {};\n var fn = BI.debounce(function (ev) {\n // if (BI.isWindow(ev.target)) {\n self._resize(ev);\n // }\n }, 30);\n BI.Widget._renderEngine.createElement(_global).resize(fn);\n },\n\n _resize: function (ev) {\n BI.each(this.resizerManger, function (key, resizer) {\n if (resizer instanceof BI.$) {\n if (resizer.is(\":visible\")) {\n resizer.trigger(\"__resize__\");\n }\n return;\n }\n if (resizer instanceof BI.Layout) {\n resizer.resize();\n return;\n }\n if (BI.isFunction(resizer)) {\n resizer(ev);\n return;\n }\n });\n },\n\n add: function (name, resizer) {\n var self = this;\n if (this.has(name)) {\n return this;\n }\n this.resizerManger[name] = resizer;\n return function () {\n self.remove(name);\n };\n },\n\n get: function (name) {\n return this.resizerManger[name];\n },\n\n has: function (name) {\n return this.resizerManger[name] != null;\n },\n\n remove: function (name) {\n if (!this.has(name)) {\n return this;\n }\n delete this.resizerManger[name];\n return this;\n }\n});/**\n * tooltip控制器\n * 控制tooltip的显示, 且页面中只有一个tooltip显示\n *\n * Created by GUY on 2015/9/8.\n * @class BI.TooltipsController\n * @extends BI.Controller\n */\nBI.TooltipsController = BI.inherit(BI.Controller, {\n _defaultConfig: function () {\n return BI.extend(BI.TooltipsController.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _const: {\n height: 18\n },\n\n _init: function () {\n BI.TooltipsController.superclass._init.apply(this, arguments);\n this.tooltipsManager = {};\n this.showingTips = {};// 存储正在显示的tooltip\n },\n\n _createTooltip: function (text, level) {\n return BI.createWidget({\n type: \"bi.tooltip\",\n text: text,\n level: level,\n stopEvent: true\n });\n },\n\n hide: function (name, callback) {\n if (!this.has(name)) {\n return this;\n }\n delete this.showingTips[name];\n this.get(name).element.hide(0, callback);\n this.get(name).invisible();\n return this;\n },\n\n create: function (name, text, level, context) {\n if (!this.has(name)) {\n var tooltip = this._createTooltip(text, level);\n this.add(name, tooltip);\n BI.createWidget({\n type: \"bi.absolute\",\n element: context || \"body\",\n items: [{\n el: tooltip\n }]\n });\n tooltip.invisible();\n }\n return this.get(name);\n },\n\n // opt: {container: '', belowMouse: false}\n show: function (e, name, text, level, context, opt) {\n opt || (opt = {});\n var self = this;\n BI.each(this.showingTips, function (i, tip) {\n self.hide(i);\n });\n this.showingTips = {};\n if (!this.has(name)) {\n this.create(name, text, level, opt.container || \"body\");\n }\n if (!opt.belowMouse) {\n var offset = context.element.offset();\n var bounds = context.element.bounds();\n if (bounds.height === 0 || bounds.width === 0) {\n return;\n }\n var top = offset.top + bounds.height + 5;\n }\n var tooltip = this.get(name);\n tooltip.setText(text);\n tooltip.element.css({\n left: \"0px\",\n top: \"0px\"\n });\n tooltip.visible();\n tooltip.element.height(tooltip.element[0].scrollHeight);\n this.showingTips[name] = true;\n // scale影响要计算在内\n // var scale = context.element.offset().left / context.element.get(0).getBoundingClientRect().left;\n // var x = (e.pageX || e.clientX) * scale + 15, y = (e.pageY || e.clientY) * scale + 15;\n var x = (e.pageX || e.clientX) + 15, y = (e.pageY || e.clientY) + 15;\n if (x + tooltip.element.outerWidth() > BI.Widget._renderEngine.createElement(\"body\").outerWidth()) {\n x -= tooltip.element.outerWidth() + 15;\n }\n var bodyHeight = BI.Widget._renderEngine.createElement(\"body\").outerHeight();\n if (y + tooltip.element.outerHeight() > bodyHeight || top + tooltip.element.outerHeight() > bodyHeight) {\n y -= tooltip.element.outerHeight() + 15;\n !opt.belowMouse && (y = Math.min(y, offset.top - tooltip.element.outerHeight() - 5));\n } else {\n !opt.belowMouse && (y = Math.max(y, top));\n }\n tooltip.element.css({\n left: x < 0 ? 0 : x + \"px\",\n top: y < 0 ? 0 : y + \"px\"\n });\n tooltip.element.hover(function () {\n self.remove(name);\n context.element.trigger(\"mouseleave.title\" + context.getName());\n });\n return this;\n },\n\n add: function (name, bubble) {\n if (this.has(name)) {\n return this;\n }\n this.set(name, bubble);\n return this;\n },\n\n get: function (name) {\n return this.tooltipsManager[name];\n },\n\n set: function (name, bubble) {\n this.tooltipsManager[name] = bubble;\n },\n\n has: function (name) {\n return this.tooltipsManager[name] != null;\n },\n\n remove: function (name) {\n if (!this.has(name)) {\n return this;\n }\n this.tooltipsManager[name].destroy();\n delete this.tooltipsManager[name];\n return this;\n }\n});/**\n * 事件集合\n * @class BI.Events\n */\n_.extend(BI, {\n Events: {\n\n /**\n * @static\n * @property keydown事件\n */\n KEYDOWN: \"_KEYDOWN\",\n\n /**\n * @static\n * @property 回撤事件\n */\n BACKSPACE: \"_BACKSPACE\",\n\n /**\n * @static\n * @property 空格事件\n */\n SPACE: \"_SPACE\",\n\n /**\n * @static\n * @property 回车事件\n */\n ENTER: \"_ENTER\",\n\n /**\n * @static\n * @property 确定事件\n */\n CONFIRM: \"_CONFIRM\",\n\n /**\n * @static\n * @property 错误事件\n */\n ERROR: \"_ERROR\",\n\n /**\n * @static\n * @property 暂停事件\n */\n PAUSE: \"_PAUSE\",\n\n /**\n * @static\n * @property destroy事件\n */\n DESTROY: \"_DESTROY\",\n\n /**\n * @static\n * @property 挂载事件\n */\n MOUNT: \"_MOUNT\",\n\n /**\n * @static\n * @property 取消挂载事件\n */\n UNMOUNT: \"_UNMOUNT\",\n\n /**\n * @static\n * @property 清除选择\n */\n CLEAR: \"_CLEAR\",\n\n /**\n * @static\n * @property 添加数据\n */\n ADD: \"_ADD\",\n\n /**\n * @static\n * @property 正在编辑状态事件\n */\n EDITING: \"_EDITING\",\n\n /**\n * @static\n * @property 空状态事件\n */\n EMPTY: \"_EMPTY\",\n\n /**\n * @static\n * @property 显示隐藏事件\n */\n VIEW: \"_VIEW\",\n\n /**\n * @static\n * @property 窗体改变大小\n */\n RESIZE: \"_RESIZE\",\n\n /**\n * @static\n * @property 编辑前事件\n */\n BEFOREEDIT: \"_BEFOREEDIT\",\n\n /**\n * @static\n * @property 编辑后事件\n */\n AFTEREDIT: \"_AFTEREDIT\",\n\n /**\n * @static\n * @property 开始编辑事件\n */\n STARTEDIT: \"_STARTEDIT\",\n\n /**\n * @static\n * @property 停止编辑事件\n */\n STOPEDIT: \"_STOPEDIT\",\n\n /**\n * @static\n * @property 值改变事件\n */\n CHANGE: \"_CHANGE\",\n\n /**\n * @static\n * @property 下拉弹出菜单事件\n */\n EXPAND: \"_EXPAND\",\n\n /**\n * @static\n * @property 关闭下拉菜单事件\n */\n COLLAPSE: \"_COLLAPSE\",\n\n /**\n * @static\n * @property 回调事件\n */\n CALLBACK: \"_CALLBACK\",\n\n /**\n * @static\n * @property 点击事件\n */\n CLICK: \"_CLICK\",\n\n /**\n * @static\n * @property 状态改变事件,一般是用在复选按钮和单选按钮\n */\n STATECHANGE: \"_STATECHANGE\",\n\n /**\n * @static\n * @property 状态改变前事件\n */\n BEFORESTATECHANGE: \"_BEFORESTATECHANGE\",\n\n\n /**\n * @static\n * @property 初始化事件\n */\n INIT: \"_INIT\",\n\n /**\n * @static\n * @property 初始化后事件\n */\n AFTERINIT: \"_AFTERINIT\",\n\n /**\n * @static\n * @property 滚动条滚动事件\n */\n SCROLL: \"_SCROLL\",\n\n\n /**\n * @static\n * @property 开始加载事件\n */\n STARTLOAD: \"_STARTLOAD\",\n\n /**\n * @static\n * @property 加载后事件\n */\n AFTERLOAD: \"_AFTERLOAD\",\n\n\n /**\n * @static\n * @property 提交前事件\n */\n BS: \"beforesubmit\",\n\n /**\n * @static\n * @property 提交后事件\n */\n AS: \"aftersubmit\",\n\n /**\n * @static\n * @property 提交完成事件\n */\n SC: \"submitcomplete\",\n\n /**\n * @static\n * @property 提交失败事件\n */\n SF: \"submitfailure\",\n\n /**\n * @static\n * @property 提交成功事件\n */\n SS: \"submitsuccess\",\n\n /**\n * @static\n * @property 校验提交前事件\n */\n BVW: \"beforeverifywrite\",\n\n /**\n * @static\n * @property 校验提交后事件\n */\n AVW: \"afterverifywrite\",\n\n /**\n * @static\n * @property 校验后事件\n */\n AV: \"afterverify\",\n\n /**\n * @static\n * @property 填报前事件\n */\n BW: \"beforewrite\",\n\n /**\n * @static\n * @property 填报后事件\n */\n AW: \"afterwrite\",\n\n /**\n * @static\n * @property 填报成功事件\n */\n WS: \"writesuccess\",\n\n /**\n * @static\n * @property 填报失败事件\n */\n WF: \"writefailure\",\n\n /**\n * @static\n * @property 添加行前事件\n */\n BA: \"beforeappend\",\n\n /**\n * @static\n * @property 添加行后事件\n */\n AA: \"afterappend\",\n\n /**\n * @static\n * @property 删除行前事件\n */\n BD: \"beforedelete\",\n\n /**\n * @static\n * @property 删除行后事件\n */\n AD: \"beforedelete\",\n\n /**\n * @static\n * @property 未提交离开事件\n */\n UC: \"unloadcheck\",\n\n\n /**\n * @static\n * @property PDF导出前事件\n */\n BTOPDF: \"beforetopdf\",\n\n /**\n * @static\n * @property PDF导出后事件\n */\n ATOPDF: \"aftertopdf\",\n\n /**\n * @static\n * @property Excel导出前事件\n */\n BTOEXCEL: \"beforetoexcel\",\n\n /**\n * @static\n * @property Excel导出后事件\n */\n ATOEXCEL: \"aftertoexcel\",\n\n /**\n * @static\n * @property Word导出前事件\n */\n BTOWORD: \"beforetoword\",\n\n /**\n * @static\n * @property Word导出后事件\n */\n ATOWORD: \"aftertoword\",\n\n /**\n * @static\n * @property 图片导出前事件\n */\n BTOIMAGE: \"beforetoimage\",\n\n /**\n * @static\n * @property 图片导出后事件\n */\n ATOIMAGE: \"aftertoimage\",\n\n /**\n * @static\n * @property HTML导出前事件\n */\n BTOHTML: \"beforetohtml\",\n\n /**\n * @static\n * @property HTML导出后事件\n */\n ATOHTML: \"aftertohtml\",\n\n /**\n * @static\n * @property Excel导入前事件\n */\n BIMEXCEL: \"beforeimportexcel\",\n\n /**\n * @static\n * @property Excel导出后事件\n */\n AIMEXCEL: \"afterimportexcel\",\n\n /**\n * @static\n * @property PDF打印前事件\n */\n BPDFPRINT: \"beforepdfprint\",\n\n /**\n * @static\n * @property PDF打印后事件\n */\n APDFPRINT: \"afterpdfprint\",\n\n /**\n * @static\n * @property Flash打印前事件\n */\n BFLASHPRINT: \"beforeflashprint\",\n\n /**\n * @static\n * @property Flash打印后事件\n */\n AFLASHPRINT: \"afterflashprint\",\n\n /**\n * @static\n * @property Applet打印前事件\n */\n BAPPLETPRINT: \"beforeappletprint\",\n\n /**\n * @static\n * @property Applet打印后事件\n */\n AAPPLETPRINT: \"afterappletprint\",\n\n /**\n * @static\n * @property 服务器打印前事件\n */\n BSEVERPRINT: \"beforeserverprint\",\n\n /**\n * @static\n * @property 服务器打印后事件\n */\n ASERVERPRINT: \"afterserverprint\",\n\n /**\n * @static\n * @property 邮件发送前事件\n */\n BEMAIL: \"beforeemail\",\n\n /**\n * @static\n * @property 邮件发送后事件\n */\n AEMAIL: \"afteremail\"\n }\n});/**\n * 对数组对象的扩展\n * @class Array\n */\n_.extend(BI, {\n\n pushArray: function (sArray, array) {\n for (var i = 0; i < array.length; i++) {\n sArray.push(array[i]);\n }\n },\n pushDistinct: function (sArray, obj) {\n if (!BI.contains(sArray, obj)) {\n sArray.push(obj);\n }\n },\n pushDistinctArray: function (sArray, array) {\n for (var i = 0, len = array.length; i < len; i++) {\n BI.pushDistinct(sArray, array[i]);\n }\n }\n});\nBI.prepares.push(function () {\n BI.Date = BI.Date || {};\n // 牵扯到国际化这些常量在页面加载后再生效\n // full day names\n BI.Date._DN = [BI.i18nText(\"BI-Basic_Sunday\"),\n BI.i18nText(\"BI-Basic_Monday\"),\n BI.i18nText(\"BI-Basic_Tuesday\"),\n BI.i18nText(\"BI-Basic_Wednesday\"),\n BI.i18nText(\"BI-Basic_Thursday\"),\n BI.i18nText(\"BI-Basic_Friday\"),\n BI.i18nText(\"BI-Basic_Saturday\"),\n BI.i18nText(\"BI-Basic_Sunday\")];\n\n // short day names\n BI.Date._SDN = [BI.i18nText(\"BI-Basic_Simple_Sunday\"),\n BI.i18nText(\"BI-Basic_Simple_Monday\"),\n BI.i18nText(\"BI-Basic_Simple_Tuesday\"),\n BI.i18nText(\"BI-Basic_Simple_Wednesday\"),\n BI.i18nText(\"BI-Basic_Simple_Thursday\"),\n BI.i18nText(\"BI-Basic_Simple_Friday\"),\n BI.i18nText(\"BI-Basic_Simple_Saturday\"),\n BI.i18nText(\"BI-Basic_Simple_Sunday\")];\n\n // Monday first, etc.\n BI.Date._FD = 1;\n\n // full month namesdat\n BI.Date._MN = [\n BI.i18nText(\"BI-Basic_January\"),\n BI.i18nText(\"BI-Basic_February\"),\n BI.i18nText(\"BI-Basic_March\"),\n BI.i18nText(\"BI-Basic_April\"),\n BI.i18nText(\"BI-Basic_May\"),\n BI.i18nText(\"BI-Basic_June\"),\n BI.i18nText(\"BI-Basic_July\"),\n BI.i18nText(\"BI-Basic_August\"),\n BI.i18nText(\"BI-Basic_September\"),\n BI.i18nText(\"BI-Basic_October\"),\n BI.i18nText(\"BI-Basic_November\"),\n BI.i18nText(\"BI-Basic_December\")];\n\n // short month names\n BI.Date._SMN = [0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11];\n\n BI.Date._QN = [\"\", BI.i18nText(\"BI-Quarter_1\"),\n BI.i18nText(\"BI-Quarter_2\"),\n BI.i18nText(\"BI-Quarter_3\"),\n BI.i18nText(\"BI-Quarter_4\")];\n\n /** Adds the number of days array to the Date object. */\n BI.Date._MD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\n // 实际上无论周几作为一周的第一天,周初周末都是在-6-0间做偏移,用一个数组就可以\n BI.Date._OFFSET = [0, -1, -2, -3, -4, -5, -6];\n});/** Constants used for time computations */\nBI.Date = BI.Date || {};\nBI.Date.SECOND = 1000;\nBI.Date.MINUTE = 60 * BI.Date.SECOND;\nBI.Date.HOUR = 60 * BI.Date.MINUTE;\nBI.Date.DAY = 24 * BI.Date.HOUR;\nBI.Date.WEEK = 7 * BI.Date.DAY;\n\n_.extend(BI, {\n /**\n * 获取时区\n * @returns {String}\n */\n getTimezone: function (date) {\n return date.toString().replace(/^.* (?:\\((.*)\\)|([A-Z]{1,4})(?:[\\-+][0-9]{4})?(?: -?\\d+)?)$/, \"$1$2\").replace(/[^A-Z]/g, \"\");\n },\n\n /** Returns the number of days in the current month */\n getMonthDays: function (date, month) {\n var year = date.getFullYear();\n if (typeof month === \"undefined\") {\n month = date.getMonth();\n }\n if (((0 == (year % 4)) && ((0 != (year % 100)) || (0 == (year % 400)))) && month == 1) {\n return 29;\n }\n return BI.Date._MD[month];\n\n },\n\n /**\n * 获取每月的最后一天\n * @returns {Date}\n */\n getLastDateOfMonth: function (date) {\n return BI.getDate(date.getFullYear(), date.getMonth(), BI.getMonthDays(date));\n },\n\n /** Returns the number of day in the year. */\n getDayOfYear: function (date) {\n var now = BI.getDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);\n var then = BI.getDate(date.getFullYear(), 0, 0, 0, 0, 0);\n var time = now - then;\n return Math.floor(time / BI.Date.DAY);\n },\n\n /** Returns the number of the week in year, as defined in ISO 8601. */\n getWeekNumber: function (date) {\n var d = BI.getDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);\n var week = d.getDay();\n var startOfWeek = BI.StartOfWeek % 7;\n var middleDay = (startOfWeek + 3) % 7;\n middleDay = middleDay || 7;\n // 偏移到周周首之前需要多少天\n var offsetWeekStartCount = week < startOfWeek ? (7 + week - startOfWeek) : (week - startOfWeek);\n var offsetWeekMiddleCount = middleDay < startOfWeek ? (7 + middleDay - startOfWeek) : (middleDay - startOfWeek);\n d.setDate(d.getDate() - offsetWeekStartCount + offsetWeekMiddleCount);\n var ms = d.valueOf();\n d.setMonth(0);\n d.setDate(1);\n return Math.floor((ms - d.valueOf()) / (7 * 864e5)) + 1;\n },\n\n getQuarter: function (date) {\n return Math.floor(date.getMonth() / 3) + 1;\n },\n\n // 离当前时间多少天的时间\n getOffsetDate: function (date, offset) {\n return BI.getDate(BI.getTime(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()) + offset * 864e5);\n },\n\n getOffsetQuarter: function (date, n) {\n var dt = BI.getDate(BI.getTime(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()));\n var day = dt.getDate();\n var monthDay = BI.getMonthDays(BI.getDate(dt.getFullYear(), dt.getMonth() + BI.parseInt(n) * 3, 1));\n if (day > monthDay) {\n day = monthDay;\n }\n dt.setDate(day);\n dt.setMonth(dt.getMonth() + parseInt(n) * 3);\n return dt;\n },\n\n // 得到本季度的起始月份\n getQuarterStartMonth: function (date) {\n var quarterStartMonth = 0;\n var nowMonth = date.getMonth();\n if (nowMonth < 3) {\n quarterStartMonth = 0;\n }\n if (2 < nowMonth && nowMonth < 6) {\n quarterStartMonth = 3;\n }\n if (5 < nowMonth && nowMonth < 9) {\n quarterStartMonth = 6;\n }\n if (nowMonth > 8) {\n quarterStartMonth = 9;\n }\n return quarterStartMonth;\n },\n // 获得本季度的起始日期\n getQuarterStartDate: function (date) {\n return BI.getDate(date.getFullYear(), BI.getQuarterStartMonth(date), 1);\n },\n // 得到本季度的结束日期\n getQuarterEndDate: function (date) {\n var quarterEndMonth = BI.getQuarterStartMonth(date) + 2;\n return BI.getDate(date.getFullYear(), quarterEndMonth, BI.getMonthDays(date, quarterEndMonth));\n },\n\n // 指定日期n个月之前或之后的日期\n getOffsetMonth: function (date, n) {\n var dt = BI.getDate(BI.getTime(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()));\n var day = dt.getDate();\n var monthDay = BI.getMonthDays(BI.getDate(dt.getFullYear(), dt.getMonth() + parseInt(n), 1));\n if (day > monthDay) {\n day = monthDay;\n }\n dt.setDate(day);\n dt.setMonth(dt.getMonth() + parseInt(n));\n return dt;\n },\n\n // 获得本周的起始日期\n getWeekStartDate: function (date) {\n var w = date.getDay();\n var startOfWeek = BI.StartOfWeek % 7;\n return BI.getOffsetDate(date, BI.Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)]);\n },\n // 得到本周的结束日期\n getWeekEndDate: function (date) {\n var w = date.getDay();\n var startOfWeek = BI.StartOfWeek % 7;\n return BI.getOffsetDate(date, BI.Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6);\n },\n\n // 格式化打印日期\n print: function (date, str) {\n var m = date.getMonth();\n var d = date.getDate();\n var y = date.getFullYear();\n var yWith4number = y + \"\";\n while (yWith4number.length < 4) {\n yWith4number = \"0\" + yWith4number;\n }\n var wn = BI.getWeekNumber(date);\n var qr = BI.getQuarter(date);\n var w = date.getDay();\n var s = {};\n var hr = date.getHours();\n var pm = (hr >= 12);\n var ir = (pm) ? (hr - 12) : hr;\n var dy = BI.getDayOfYear(date);\n if (ir == 0) {\n ir = 12;\n }\n var min = date.getMinutes();\n var sec = date.getSeconds();\n s[\"%a\"] = BI.Date._SDN[w]; // abbreviated weekday name [FIXME: I18N]\n s[\"%A\"] = BI.Date._DN[w]; // full weekday name\n s[\"%b\"] = BI.Date._SMN[m]; // abbreviated month name [FIXME: I18N]\n s[\"%B\"] = BI.Date._MN[m]; // full month name\n // FIXME: %c : preferred date and time representation for the current locale\n s[\"%C\"] = 1 + Math.floor(y / 100); // the century number\n s[\"%d\"] = (d < 10) ? (\"0\" + d) : d; // the day of the month (range 01 to 31)\n s[\"%e\"] = d; // the day of the month (range 1 to 31)\n // FIXME: %D : american date style: %m/%d/%y\n // FIXME: %E, %F, %G, %g, %h (man strftime)\n s[\"%H\"] = (hr < 10) ? (\"0\" + hr) : hr; // hour, range 00 to 23 (24h format)\n s[\"%I\"] = (ir < 10) ? (\"0\" + ir) : ir; // hour, range 01 to 12 (12h format)\n s[\"%j\"] = (dy < 100) ? ((dy < 10) ? (\"00\" + dy) : (\"0\" + dy)) : dy; // day of the year (range 001 to 366)\n s[\"%k\"] = hr + \"\";\t\t// hour, range 0 to 23 (24h format)\n s[\"%l\"] = ir + \"\";\t\t// hour, range 1 to 12 (12h format)\n s[\"%X\"] = (m < 9) ? (\"0\" + (1 + m)) : (1 + m); // month, range 01 to 12\n s[\"%x\"] = m + 1; // month, range 1 to 12\n s[\"%M\"] = (min < 10) ? (\"0\" + min) : min; // minute, range 00 to 59\n s[\"%n\"] = \"\\n\";\t\t// a newline character\n s[\"%p\"] = pm ? \"PM\" : \"AM\";\n s[\"%P\"] = pm ? \"pm\" : \"am\";\n // FIXME: %r : the time in am/pm notation %I:%M:%S %p\n // FIXME: %R : the time in 24-hour notation %H:%M\n s[\"%s\"] = Math.floor(date.getTime() / 1000);\n s[\"%S\"] = (sec < 10) ? (\"0\" + sec) : sec; // seconds, range 00 to 59\n s[\"%t\"] = \"\\t\";\t\t// a tab character\n // FIXME: %T : the time in 24-hour notation (%H:%M:%S)\n s[\"%U\"] = s[\"%W\"] = s[\"%V\"] = (wn < 10) ? (\"0\" + wn) : wn;\n s[\"%u\"] = w + 1;\t// the day of the week (range 1 to 7, 1 = MON)\n s[\"%w\"] = w;\t\t// the day of the week (range 0 to 6, 0 = SUN)\n // FIXME: %x : preferred date representation for the current locale without the time\n // FIXME: %X : preferred time representation for the current locale without the date\n s[\"%y\"] = yWith4number.substr(2, 2); // year without the century (range 00 to 99)\n s[\"%Y\"] = yWith4number;\t\t// year with the century\n s[\"%%\"] = \"%\";\t\t// a literal '%' character\n s[\"%Q\"] = qr;\n\n var re = /%./g;\n BI.isKhtml = BI.isKhtml || function () {\n if(!_global.navigator) {\n return false;\n }\n return /Konqueror|Safari|KHTML/i.test(navigator.userAgent);\n };\n\n // 包含年周的格式化,ISO8601标准周的计数会影响年\n if ((str.indexOf(\"%Y\") !== -1 || str.indexOf(\"%y\") !== -1) && (str.indexOf(\"%W\") !== -1 || str.indexOf(\"%U\") !== -1 || str.indexOf(\"%V\") !== -1)) {\n switch (wn) {\n // 如果周数是1,但是当前却在12月,表示此周数为下一年的\n case 1:\n if (m === 11) {\n s[\"%y\"] = parseInt(s[\"%y\"]) + 1;\n s[\"%Y\"] = parseInt(s[\"%Y\"]) + 1;\n }\n break;\n // 如果周数是53,但是当前却在1月,表示此周数为上一年的\n case 53:\n if (m === 0) {\n s[\"%y\"] = parseInt(s[\"%y\"]) - 1;\n s[\"%Y\"] = parseInt(s[\"%Y\"]) - 1;\n }\n break;\n default:\n break;\n }\n }\n\n if (!BI.isKhtml()) {\n return str.replace(re, function (par) {\n return s[par] || par;\n });\n }\n var a = str.match(re);\n for (var i = 0; i < a.length; i++) {\n var tmp = s[a[i]];\n if (tmp) {\n re = new RegExp(a[i], \"g\");\n str = str.replace(re, tmp);\n }\n }\n\n return str;\n }\n});\n/**\n * 基本的函数\n * Created by GUY on 2015/6/24.\n */\nBI.Func = {};\n_.extend(BI.Func, {\n /**\n * 创建唯一的名字\n * @param array\n * @param name\n * @returns {*}\n */\n createDistinctName: function (array, name) {\n var src = name, idx = 1;\n name = name || \"\";\n while (true) {\n if (BI.every(array, function (i, item) {\n return BI.isKey(item) ? item !== name : item.name !== name;\n })) {\n break;\n }\n name = src + (idx++);\n }\n return name;\n },\n\n /**\n * 获取字符宽度\n * @param str\n * @return {number}\n */\n getGBWidth: function (str) {\n str = str + \"\";\n str = str.replace(/[^\\x00-\\xff]/g, \"xx\");\n return Math.ceil(str.length / 2);\n },\n\n /**\n * 获取搜索结果\n * @param items\n * @param keyword\n * @param param 搜索哪个属性\n */\n getSearchResult: function (items, keyword, param) {\n var isArray = BI.isArray(items);\n items = isArray ? BI.flatten(items) : items;\n param || (param = \"text\");\n if (!BI.isKey(keyword)) {\n return {\n find: BI.deepClone(items),\n match: isArray ? [] : {}\n };\n }\n var t, text, py;\n keyword = BI.toUpperCase(keyword);\n var matched = isArray ? [] : {}, find = isArray ? [] : {};\n BI.each(items, function (i, item) {\n // 兼容item为null的处理\n if (BI.isNull(item)) {\n return;\n }\n item = BI.deepClone(item);\n t = BI.stripEL(item);\n text = BI.find([t[param], t.text, t.value, t.name, t], function (index, val) {\n return BI.isNotNull(val);\n });\n\n if (BI.isNull(text) || BI.isObject(text)) return;\n\n py = BI.makeFirstPY(text, {\n splitChar: \"\\u200b\"\n });\n text = BI.toUpperCase(text);\n py = BI.toUpperCase(py);\n var pidx;\n if (text.indexOf(keyword) > -1) {\n if (text === keyword) {\n isArray ? matched.push(item) : (matched[i] = item);\n } else {\n isArray ? find.push(item) : (find[i] = item);\n }\n // BI-56386 这边两个pid / text.length是为了防止截取的首字符串不是完整的,但光这样做还不够,即时错位了,也不能说明就不符合条件\n } else if (pidx = py.indexOf(keyword), (pidx > -1)) {\n if (text === keyword || keyword.length === text.length) {\n isArray ? matched.push(item) : (matched[i] = item);\n } else {\n isArray ? find.push(item) : (find[i] = item);\n }\n }\n });\n return {\n match: matched,\n find: find\n };\n }\n});\n\n_.extend(BI, {\n beforeFunc: function (sFunc, func) {\n var __self = sFunc;\n return function () {\n if (func.apply(sFunc, arguments) === false) {\n return false;\n }\n return __self.apply(sFunc, arguments);\n };\n },\n\n afterFunc: function (sFunc, func) {\n var __self = sFunc;\n return function () {\n var ret = __self.apply(sFunc, arguments);\n if (ret === false) {\n return false;\n }\n func.apply(sFunc, arguments);\n return ret;\n };\n }\n});_.extend(BI, {\n // 给Number类型增加一个add方法,调用起来更加方便。\n add: function (num, arg) {\n return accAdd(arg, num);\n\n /**\n ** 加法函数,用来得到精确的加法结果\n ** 说明:javascript的加法结果会有误差,在两个浮点数相加的时候会比较明显。这个函数返回较为精确的加法结果。\n ** 调用:accAdd(arg1,arg2)\n ** 返回值:arg1加上arg2的精确结果\n **/\n function accAdd (arg1, arg2) {\n var r1, r2, m, c;\n try {\n r1 = arg1.toString().split(\".\")[1].length;\n } catch (e) {\n r1 = 0;\n }\n try {\n r2 = arg2.toString().split(\".\")[1].length;\n } catch (e) {\n r2 = 0;\n }\n c = Math.abs(r1 - r2);\n m = Math.pow(10, Math.max(r1, r2));\n if (c > 0) {\n var cm = Math.pow(10, c);\n if (r1 > r2) {\n arg1 = Number(arg1.toString().replace(\".\", \"\"));\n arg2 = Number(arg2.toString().replace(\".\", \"\")) * cm;\n } else {\n arg1 = Number(arg1.toString().replace(\".\", \"\")) * cm;\n arg2 = Number(arg2.toString().replace(\".\", \"\"));\n }\n } else {\n arg1 = Number(arg1.toString().replace(\".\", \"\"));\n arg2 = Number(arg2.toString().replace(\".\", \"\"));\n }\n return (arg1 + arg2) / m;\n }\n },\n\n // 给Number类型增加一个sub方法,调用起来更加方便。\n sub: function (num, arg) {\n return accSub(num, arg);\n\n /**\n ** 减法函数,用来得到精确的减法结果\n ** 说明:javascript的减法结果会有误差,在两个浮点数相减的时候会比较明显。这个函数返回较为精确的减法结果。\n ** 调用:accSub(arg1,arg2)\n ** 返回值:arg1加上arg2的精确结果\n **/\n function accSub (arg1, arg2) {\n var r1, r2, m, n;\n try {\n r1 = arg1.toString().split(\".\")[1].length;\n } catch (e) {\n r1 = 0;\n }\n try {\n r2 = arg2.toString().split(\".\")[1].length;\n } catch (e) {\n r2 = 0;\n }\n m = Math.pow(10, Math.max(r1, r2)); // last modify by deeka //动态控制精度长度\n n = (r1 >= r2) ? r1 : r2;\n return ((arg1 * m - arg2 * m) / m).toFixed(n);\n }\n },\n\n // 给Number类型增加一个mul方法,调用起来更加方便。\n mul: function (num, arg) {\n return accMul(arg, num);\n\n /**\n ** 乘法函数,用来得到精确的乘法结果\n ** 说明:javascript的乘法结果会有误差,在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。\n ** 调用:accMul(arg1,arg2)\n ** 返回值:arg1乘以 arg2的精确结果\n **/\n function accMul (arg1, arg2) {\n var m = 0, s1 = arg1.toString(), s2 = arg2.toString();\n try {\n m += s1.split(\".\")[1].length;\n } catch (e) {\n }\n try {\n m += s2.split(\".\")[1].length;\n } catch (e) {\n }\n return Number(s1.replace(\".\", \"\")) * Number(s2.replace(\".\", \"\")) / Math.pow(10, m);\n }\n },\n \n // 给Number类型增加一个div方法,调用起来更加方便。\n div: function (num, arg) {\n return accDivide(num, arg);\n\n /**\n * Return digits length of a number\n * @param {*number} num Input number\n */\n function digitLength (num) {\n // Get digit length of e\n var eSplit = num.toString().split(/[eE]/);\n var len = (eSplit[0].split(\".\")[1] || \"\").length - (+(eSplit[1] || 0));\n return len > 0 ? len : 0;\n }\n /**\n * 把小数转成整数,支持科学计数法。如果是小数则放大成整数\n * @param {*number} num 输入数\n */\n function float2Fixed (num) {\n if (num.toString().indexOf(\"e\") === -1) {\n return Number(num.toString().replace(\".\", \"\"));\n }\n var dLen = digitLength(num);\n return dLen > 0 ? num * Math.pow(10, dLen) : num;\n }\n\n /**\n * 精确乘法\n */\n function times (num1, num2) {\n var others = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n others[_i - 2] = arguments[_i];\n }\n if (others.length > 0) {\n return times.apply(void 0, [times(num1, num2), others[0]].concat(others.slice(1)));\n }\n var num1Changed = float2Fixed(num1);\n var num2Changed = float2Fixed(num2);\n var baseNum = digitLength(num1) + digitLength(num2);\n var leftValue = num1Changed * num2Changed;\n return leftValue / Math.pow(10, baseNum);\n }\n\n /**\n * 精确除法\n */\n function accDivide (num1, num2) {\n var others = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n others[_i - 2] = arguments[_i];\n }\n if (others.length > 0) {\n return accDivide.apply(void 0, [accDivide(num1, num2), others[0]].concat(others.slice(1)));\n }\n var num1Changed = float2Fixed(num1);\n var num2Changed = float2Fixed(num2);\n return times((num1Changed / num2Changed), Math.pow(10, digitLength(num2) - digitLength(num1)));\n }\n }\n\n});/**\n * 对字符串对象的扩展\n * @class String\n */\n_.extend(BI, {\n\n /**\n * 判断字符串是否已指定的字符串开始\n * @param str source字符串\n * @param {String} startTag 指定的开始字符串\n * @return {Boolean} 如果字符串以指定字符串开始则返回true,否则返回false\n */\n startWith: function (str, startTag) {\n str = str || \"\";\n if (startTag == null || startTag == \"\" || str.length === 0 || startTag.length > str.length) {\n return false;\n }\n return str.substr(0, startTag.length) == startTag;\n },\n /**\n * 判断字符串是否以指定的字符串结束\n * @param str source字符串\n * @param {String} endTag 指定的字符串\n * @return {Boolean} 如果字符串以指定字符串结束则返回true,否则返回false\n */\n endWith: function (str, endTag) {\n if (endTag == null || endTag == \"\" || str.length === 0 || endTag.length > str.length) {\n return false;\n }\n return str.substring(str.length - endTag.length) == endTag;\n },\n\n /**\n * 获取url中指定名字的参数\n * @param str source字符串\n * @param {String} name 参数的名字\n * @return {String} 参数的值\n */\n getQuery: function (str, name) {\n var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\");\n var r = str.substr(str.indexOf(\"?\") + 1).match(reg);\n if (r) {\n return unescape(r[2]);\n }\n return null;\n },\n\n /**\n * 给url加上给定的参数\n * @param str source字符串\n * @param {Object} paras 参数对象,是一个键值对对象\n * @return {String} 添加了给定参数的url\n */\n appendQuery: function (str, paras) {\n if (!paras) {\n return str;\n }\n var src = str;\n // 没有问号说明还没有参数\n if (src.indexOf(\"?\") === -1) {\n src += \"?\";\n }\n // 如果以问号结尾,说明没有其他参数\n if (src.endWith(\"?\") !== false) {\n } else {\n src += \"&\";\n }\n _.each(paras, function (value, name) {\n if (typeof(name) === \"string\") {\n src += name + \"=\" + value + \"&\";\n }\n });\n src = src.substr(0, src.length - 1);\n return src;\n },\n /**\n * 将所有符合第一个字符串所表示的字符串替换成为第二个字符串\n * @param str source字符串\n * @param {String} s1 要替换的字符串的正则表达式\n * @param {String} s2 替换的结果字符串\n * @returns {String} 替换后的字符串\n */\n replaceAll: function (str, s1, s2) {\n return str.replace(new RegExp(s1, \"gm\"), s2);\n },\n /**\n * 总是让字符串以指定的字符开头\n * @param str source字符串\n * @param {String} start 指定的字符\n * @returns {String} 以指定字符开头的字符串\n */\n perfectStart: function (str, start) {\n if (str.startWith(start)) {\n return str;\n }\n return start + str;\n\n },\n\n /**\n * 获取字符串中某字符串的所有项位置数组\n * @param str source字符串\n * @param {String} sub 子字符串\n * @return {Number[]} 子字符串在父字符串中出现的所有位置组成的数组\n */\n allIndexOf: function (str, sub) {\n if (typeof sub !== \"string\") {\n return [];\n }\n var location = [];\n var offset = 0;\n while (str.length > 0) {\n var loc = str.indexOf(sub);\n if (loc === -1) {\n break;\n }\n location.push(offset + loc);\n str = str.substring(loc + sub.length, str.length);\n offset += loc + sub.length;\n }\n return location;\n }\n});!(function () {\n var i18nStore = {};\n _.extend(BI, {\n addI18n: function (i18n) {\n BI.extend(i18nStore, i18n);\n },\n i18nText: function (key) {\n var localeText = i18nStore[key] || (BI.i18n && BI.i18n[key]) || \"\";\n if (!localeText) {\n localeText = key;\n }\n var len = arguments.length;\n if (len > 1) {\n if (localeText.indexOf(\"{R1}\") > -1) {\n for (var i = 1; i < len; i++) {\n var key = \"{R\" + i + \"}\";\n localeText = BI.replaceAll(localeText, key, arguments[i] + \"\");\n }\n } else {\n var args = Array.prototype.slice.call(arguments);\n var count = 1;\n return BI.replaceAll(localeText, \"\\\\{\\\\s*\\\\}\", function () {\n return args[count++] + \"\";\n });\n }\n }\n return localeText;\n }\n });\n})();(function () {\n var moduleInjection = {};\n BI.module = function (xtype, cls) {\n if (moduleInjection[xtype] != null) {\n _global.console && console.error(\"module:[\" + xtype + \"] has been registed\");\n }\n moduleInjection[xtype] = cls;\n };\n\n var constantInjection = {};\n BI.constant = function (xtype, cls) {\n if (constantInjection[xtype] != null) {\n _global.console && console.error(\"constant:[\" + xtype + \"] has been registed\");\n }\n constantInjection[xtype] = cls;\n };\n\n var modelInjection = {};\n BI.model = function (xtype, cls) {\n if (modelInjection[xtype] != null) {\n _global.console && console.error(\"model:[\" + xtype + \"] has been registed\");\n }\n modelInjection[xtype] = cls;\n };\n\n var storeInjection = {};\n BI.store = function (xtype, cls) {\n if (storeInjection[xtype] != null) {\n _global.console && console.error(\"store:[\" + xtype + \"] has been registed\");\n }\n storeInjection[xtype] = cls;\n };\n\n var serviceInjection = {};\n BI.service = function (xtype, cls) {\n if (serviceInjection[xtype] != null) {\n _global.console && console.error(\"service:[\" + xtype + \"] has been registed\");\n }\n serviceInjection[xtype] = cls;\n };\n\n var providerInjection = {};\n BI.provider = function (xtype, cls) {\n if (providerInjection[xtype] != null) {\n _global.console && console.error(\"provider:[\" + xtype + \"] has been registed\");\n }\n providerInjection[xtype] = cls;\n };\n\n var configFunctions = {};\n BI.config = function (type, configFn) {\n if (BI.initialized) {\n if (constantInjection[type]) {\n return (constantInjection[type] = configFn(constantInjection[type]));\n }\n if (providerInjection[type]) {\n if (!providers[type]) {\n providers[type] = new providerInjection[type]();\n }\n return configFn(providers[type]);\n }\n return BI.Plugin.configWidget(type, configFn);\n }\n if (!configFunctions[type]) {\n configFunctions[type] = [];\n BI.prepares.push(function () {\n var queue = configFunctions[type];\n for (var i = 0; i < queue.length; i++) {\n if (constantInjection[type]) {\n constantInjection[type] = queue[i](constantInjection[type]);\n continue;\n }\n if (providerInjection[type]) {\n if (!providers[type]) {\n providers[type] = new providerInjection[type]();\n }\n queue[i](providers[type]);\n continue;\n }\n BI.Plugin.configWidget(type, queue[i]);\n }\n configFunctions[type] = null;\n });\n }\n configFunctions[type].push(configFn);\n };\n\n var actions = {};\n var globalAction = [];\n BI.action = function (type, actionFn) {\n if (BI.isFunction(type)) {\n globalAction.push(type);\n return function () {\n BI.remove(globalAction, function (idx) {\n return globalAction.indexOf(actionFn) === idx;\n });\n };\n }\n if (!actions[type]) {\n actions[type] = [];\n }\n actions[type].push(actionFn);\n return function () {\n BI.remove(actions[type], function (idx) {\n return actions[type].indexOf(actionFn) === idx;\n });\n if (actions[type].length === 0) {\n delete actions[type];\n }\n };\n };\n\n var points = {};\n BI.point = function (type, action, pointFn, after) {\n if (!points[type]) {\n points[type] = {};\n }\n if (!points[type][action]) {\n points[type][action] = {};\n }\n if (!points[type][action][after ? \"after\" : \"before\"]) {\n points[type][action][after ? \"after\" : \"before\"] = [];\n }\n points[type][action][after ? \"after\" : \"before\"].push(pointFn);\n };\n\n BI.Modules = {\n getModule: function (type) {\n if (!moduleInjection[type]) {\n _global.console && console.error(\"module:[\" + type + \"] does not exists\");\n return false;\n }\n return moduleInjection[type];\n },\n getAllModules: function () {\n return moduleInjection;\n }\n };\n\n BI.Constants = {\n getConstant: function (type) {\n return constantInjection[type];\n }\n };\n\n var callPoint = function (inst, type) {\n if (points[type]) {\n for (var action in points[type]) {\n var bfns = points[type][action].before;\n if (bfns) {\n BI.aspect.before(inst, action, function (bfns) {\n return function () {\n for (var i = 0, len = bfns.length; i < len; i++) {\n try {\n bfns[i].apply(inst, arguments);\n } catch (e) {\n _global.console && console.error(e);\n }\n }\n };\n }(bfns));\n }\n var afns = points[type][action].after;\n if (afns) {\n BI.aspect.after(inst, action, function (afns) {\n return function () {\n for (var i = 0, len = afns.length; i < len; i++) {\n try {\n afns[i].apply(inst, arguments);\n } catch (e) {\n _global.console && console.error(e);\n }\n }\n };\n }(afns));\n }\n }\n }\n };\n\n BI.Models = {\n getModel: function (type, config) {\n var inst = new modelInjection[type](config);\n inst._constructor && inst._constructor(config);\n callPoint(inst, type);\n return inst;\n }\n };\n\n var stores = {};\n\n BI.Stores = {\n getStore: function (type, config) {\n if (stores[type]) {\n return stores[type];\n }\n var inst = stores[type] = new storeInjection[type](config);\n inst._constructor && inst._constructor(config);\n callPoint(inst, type);\n return inst;\n }\n };\n\n var services = {};\n\n BI.Services = {\n getService: function (type, config) {\n if (services[type]) {\n return services[type];\n }\n services[type] = new serviceInjection[type](config);\n callPoint(services[type], type);\n return services[type];\n }\n };\n\n var providers = {},\n providerInstance = {};\n\n BI.Providers = {\n getProvider: function (type, config) {\n if (!providers[type]) {\n providers[type] = new providerInjection[type]();\n }\n if (!providerInstance[type]) {\n providerInstance[type] = new (providers[type].$get())(config);\n }\n return providerInstance[type];\n }\n };\n\n BI.Actions = {\n runAction: function (type, event, config) {\n BI.each(actions[type], function (i, act) {\n try {\n act(event, config);\n } catch (e) {\n _global.console && console.error(e);\n }\n });\n },\n runGlobalAction: function () {\n var args = [].slice.call(arguments);\n BI.each(globalAction, function (i, act) {\n try {\n act.apply(null, args);\n } catch (e) {\n _global.console && console.error(e);\n }\n });\n }\n };\n\n BI.getContext = function (type, config) {\n if (constantInjection[type]) {\n return BI.Constants.getConstant(type);\n }\n if (modelInjection[type]) {\n return BI.Models.getModel(type, config);\n }\n if (storeInjection[type]) {\n return BI.Stores.getStore(type, config);\n }\n if (serviceInjection[type]) {\n return BI.Services.getService(type, config);\n }\n if (providerInjection[type]) {\n return BI.Providers.getProvider(type, config);\n }\n };\n})();/**\n * guy\n * 检测某个Widget的EventChange事件然后去show某个card\n * @type {*|void|Object}\n * @class BI.ShowListener\n * @extends BI.OB\n */\nBI.ShowListener = BI.inherit(BI.OB, {\n _defaultConfig: function () {\n return BI.extend(BI.ShowListener.superclass._defaultConfig.apply(this, arguments), {\n eventObj: BI.createWidget(),\n cardLayout: null,\n cardNameCreator: function (v) {\n return v;\n },\n cardCreator: BI.emptyFn,\n afterCardCreated: BI.emptyFn,\n afterCardShow: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.ShowListener.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (o.eventObj) {\n o.eventObj.on(BI.Controller.EVENT_CHANGE, function (type, v, ob) {\n if (type === BI.Events.CLICK) {\n v = v || o.eventObj.getValue();\n v = BI.isArray(v) ? (v.length > 1 ? v.toString() : v[0]) : v;\n if (BI.isNull(v)) {\n throw new Error(\"value cannot be null\");\n }\n var cardName = o.cardNameCreator(v);\n if (!o.cardLayout.isCardExisted(cardName)) {\n var card = o.cardCreator(cardName);\n o.cardLayout.addCardByName(cardName, card);\n o.afterCardCreated(cardName);\n }\n o.cardLayout.showCardByName(cardName);\n BI.nextTick(function () {\n o.afterCardShow(cardName);\n self.fireEvent(BI.ShowListener.EVENT_CHANGE, cardName);\n });\n }\n });\n }\n }\n});\nBI.ShowListener.EVENT_CHANGE = \"EVENT_CHANGE\";/**\n * style加载管理器\n *\n * Created by GUY on 2015/9/7.\n * @class\n */\nBI.StyleLoaderManager = BI.inherit(BI.OB, {\n _defaultConfig: function () {\n return BI.extend(BI.StyleLoaderManager.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.StyleLoaderManager.superclass._init.apply(this, arguments);\n this.stylesManager = {};\n },\n\n loadStyle: function (name, styleString) {\n if(!_global.document) {\n return;\n }\n var d = document, styles = d.createElement(\"style\");\n d.getElementsByTagName(\"head\")[0].appendChild(styles);\n styles.setAttribute(\"type\", \"text/css\");\n if (styles.styleSheet) {\n styles.styleSheet.cssText = styleString;\n } else {\n styles.appendChild(document.createTextNode(styleString));\n }\n this.stylesManager[name] = styles;\n\n return this;\n },\n\n get: function (name) {\n return this.stylesManager[name];\n },\n\n has: function (name) {\n return this.stylesManager[name] != null;\n },\n\n removeStyle: function (name) {\n if (!this.has(name)) {\n return this;\n }\n this.stylesManager[name].parentNode.removeChild(this.stylesManager[name]);\n delete this.stylesManager[name];\n return this;\n }\n});/**\n * @class BI.Logic\n * @extends BI.OB\n */\nBI.Logic = BI.inherit(BI.OB, {\n createLogic: function () {\n return this.options || {};\n }\n});\n\nBI.LogicFactory = {\n Type: {\n Vertical: \"vertical\",\n Horizontal: \"horizontal\",\n Table: \"table\",\n HorizontalFill: \"horizontal_fill\"\n },\n createLogic: function (key, options) {\n var logic;\n switch (key) {\n case BI.LogicFactory.Type.Vertical:\n logic = BI.VerticalLayoutLogic;\n break;\n case BI.LogicFactory.Type.Horizontal:\n logic = BI.HorizontalLayoutLogic;\n break;\n case BI.LogicFactory.Type.Table:\n logic = BI.TableLayoutLogic;\n break;\n case BI.LogicFactory.Type.HorizontalFill:\n logic = BI.HorizontalFillLayoutLogic;\n break;\n default :\n logic = BI.Logic;\n break;\n }\n return new logic(options).createLogic();\n },\n\n createLogicTypeByDirection: function (direction) {\n switch (direction) {\n case BI.Direction.Top:\n case BI.Direction.Bottom:\n case BI.Direction.Custom:\n return BI.LogicFactory.Type.Vertical;\n break;\n case BI.Direction.Left:\n case BI.Direction.Right:\n return BI.LogicFactory.Type.Horizontal;\n }\n },\n\n createLogicItemsByDirection: function (direction) {\n var layout;\n var items = Array.prototype.slice.call(arguments, 1);\n items = BI.map(items, function (i, item) {\n if (BI.isWidget(item)) {\n return {\n el: item,\n width: item.options.width,\n height: item.options.height\n };\n }\n return item;\n });\n switch (direction) {\n case BI.Direction.Bottom:\n layout = BI.LogicFactory.Type.Vertical;\n items.reverse();\n break;\n case BI.Direction.Right:\n layout = BI.LogicFactory.Type.Horizontal;\n items.reverse();\n break;\n case BI.Direction.Custom:\n items = items.slice(1);\n break;\n }\n return items;\n }\n};/**\n * guy\n * 上下布局逻辑\n * 上下布局的时候要考虑到是动态布局还是静态布局\n *\n * @class BI.VerticalLayoutLogic\n * @extends BI.Logic\n */\nBI.VerticalLayoutLogic = BI.inherit(BI.Logic, {\n _defaultConfig: function () {\n return BI.extend(BI.VerticalLayoutLogic.superclass._defaultConfig.apply(this, arguments), {\n dynamic: false,\n scrollable: null,\n scrolly: false,\n scrollx: false,\n items: [],\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n createLogic: function () {\n var layout, o = this.options;\n if (o.dynamic) {\n layout = \"bi.vertical\";\n } else {\n layout = \"bi.vtape\";\n }\n return {\n type: layout,\n scrollable: o.scrollable,\n scrolly: o.scrolly,\n scrollx: o.scrollx,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n items: o.items\n };\n },\n\n _init: function () {\n BI.VerticalLayoutLogic.superclass._init.apply(this, arguments);\n }\n});\n\n\n/**\n * guy\n * 左右布局逻辑\n * 左右布局的时候要考虑到是动态布局还是静态布局\n *\n * @class BI.HorizontalLayoutLogic\n * @extends BI.Logic\n */\nBI.HorizontalLayoutLogic = BI.inherit(BI.Logic, {\n _defaultConfig: function () {\n return BI.extend(BI.HorizontalLayoutLogic.superclass._defaultConfig.apply(this, arguments), {\n dynamic: false,\n scrollable: null,\n scrolly: false,\n scrollx: false,\n items: [],\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n createLogic: function () {\n var layout, o = this.options;\n if (o.dynamic) {\n layout = \"bi.vertical_adapt\";\n } else {\n layout = \"bi.htape\";\n }\n return {\n type: layout,\n scrollable: o.scrollable,\n scrolly: o.scrolly,\n scrollx: o.scrollx,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n items: o.items\n };\n },\n\n _init: function () {\n BI.HorizontalLayoutLogic.superclass._init.apply(this, arguments);\n }\n});\n\n/**\n * guy\n * 表格布局逻辑\n * 表格布局的时候要考虑到是动态布局还是静态布局\n *\n * @class BI.TableLayoutLogic\n * @extends BI.OB\n */\nBI.TableLayoutLogic = BI.inherit(BI.Logic, {\n _defaultConfig: function () {\n return BI.extend(BI.TableLayoutLogic.superclass._defaultConfig.apply(this, arguments), {\n dynamic: false,\n scrollable: null,\n scrolly: false,\n scrollx: false,\n columns: 0,\n rows: 0,\n columnSize: [],\n rowSize: [],\n hgap: 0,\n vgap: 0,\n items: []\n });\n },\n\n createLogic: function () {\n var layout, o = this.options;\n if (o.dynamic) {\n layout = \"bi.table\";\n } else {\n layout = \"bi.window\";\n }\n return {\n type: layout,\n scrollable: o.scrollable,\n scrolly: o.scrolly,\n scrollx: o.scrollx,\n columns: o.columns,\n rows: o.rows,\n columnSize: o.columnSize,\n rowSize: o.rowSize,\n hgap: o.hgap,\n vgap: o.vgap,\n items: o.items\n };\n },\n\n _init: function () {\n BI.TableLayoutLogic.superclass._init.apply(this, arguments);\n }\n});\n\n/**\n * guy\n * 左右充满布局逻辑\n *\n * @class BI.HorizontalFillLayoutLogic\n * @extends BI.Logic\n */\nBI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {\n _defaultConfig: function () {\n return BI.extend(BI.HorizontalFillLayoutLogic.superclass._defaultConfig.apply(this, arguments), {\n dynamic: false,\n scrollable: null,\n scrolly: false,\n scrollx: false,\n items: [],\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n createLogic: function () {\n var layout, o = this.options;\n var columnSize = [];\n BI.each(o.items, function (i, item) {\n columnSize.push(item.width || 0);\n });\n if (o.dynamic) {\n layout = \"bi.horizontal_adapt\";\n } else {\n layout = \"bi.htape\";\n }\n return {\n type: layout,\n columnSize: columnSize,\n scrollable: o.scrollable,\n scrolly: o.scrolly,\n scrollx: o.scrollx,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n items: o.items\n };\n },\n\n _init: function () {\n BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);\n }\n});// 工程配置\nBI.prepares.push(function () {\n // 注册布局\n // adapt类布局优先级规则\n // 1、在非IE且支持flex的浏览器下使用flex布局\n // 2、IE或者不支持flex的浏览器下使用inline布局\n // 3、在2的情况下如果布局的items大于1的话使用display:table的布局\n // 4、在3的情况下如果IE版本低于8使用table标签布局\n var _isSupportFlex;\n var isSupportFlex = function () {\n if (_isSupportFlex == null) {\n _isSupportFlex = !!(BI.isSupportCss3 && BI.isSupportCss3(\"flex\"));\n }\n return _isSupportFlex;\n };\n BI.Plugin.registerWidget(\"bi.horizontal\", function (ob) {\n var isIE = BI.isIE(), supportFlex = isSupportFlex(), isLessIE8 = isIE && BI.getIEVersion() < 8;\n // center_adapt\n if (ob.verticalAlign === BI.VerticalAlign.Middle && ob.horizontalAlign === BI.HorizontalAlign.Center) {\n if (isLessIE8) {\n return ob;\n }\n return BI.extend(ob, {type: \"bi.table_adapt\"});\n }\n // vertical_adapt\n if (ob.verticalAlign === BI.VerticalAlign.Middle && ob.horizontalAlign === BI.HorizontalAlign.Left) {\n if (isLessIE8) {\n return ob;\n }\n return BI.extend(ob, {type: \"bi.table_adapt\"});\n }\n // horizontal_adapt\n if (ob.verticalAlign === BI.VerticalAlign.Top && ob.horizontalAlign === BI.HorizontalAlign.Center) {\n if (isLessIE8) {\n return ob;\n }\n return BI.extend(ob, {type: \"bi.table_adapt\"});\n }\n if (!isIE) {\n if (supportFlex) {\n return BI.extend(ob, {type: \"bi.flex_horizontal\"});\n }\n return BI.extend(ob, {type: \"bi.table_adapt\"});\n }\n return ob;\n });\n BI.Plugin.registerWidget(\"bi.center_adapt\", function (ob) {\n var isIE = BI.isIE(), supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);\n if (!isIE && supportFlex && justOneItem) {\n // 有滚动条的情况下需要用到flex_scrollable_center_adapt布局\n if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {\n // 不是IE用flex_scrollable_center_adapt布局\n return BI.extend(ob, {type: \"bi.flex_scrollable_center_adapt\"});\n }\n return BI.extend(ob, {type: \"bi.flex_center_adapt\"});\n }\n // 一个item的情况下inline布局睥睨天下\n if (justOneItem) {\n return BI.extend(ob, {type: \"bi.inline_center_adapt\"});\n }\n return ob;\n });\n BI.Plugin.registerWidget(\"bi.vertical_adapt\", function (ob) {\n var isIE = BI.isIE(), supportFlex = isSupportFlex();\n if (!isIE && supportFlex) {\n // 有滚动条的情况下需要用到flex_scrollable_center_adapt布局\n if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {\n // 不是IE用flex__scrollable_center_adapt布局\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_vertical_center_adapt\"});\n }\n return BI.extend(ob, {type: \"bi.flex_vertical_center_adapt\"});\n }\n return BI.extend(ob, {type: \"bi.inline_vertical_adapt\"});\n });\n BI.Plugin.registerWidget(\"bi.horizontal_adapt\", function (ob) {\n if (ob.items && ob.items.length <= 1) {\n return BI.extend(ob, {type: \"bi.horizontal_auto\"});\n }\n return ob;\n });\n BI.Plugin.registerWidget(\"bi.float_center_adapt\", function (ob) {\n if (!BI.isIE() && isSupportFlex()) {\n // 有滚动条的情况下需要用到flex_scrollable_center_adapt布局\n if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {\n // 不是IE用flex_scrollable_center_adapt布局\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_center_adapt\"});\n }\n return BI.extend(ob, {type: \"bi.flex_center_adapt\"});\n }\n return BI.extend(ob, {type: \"bi.inline_center_adapt\"});\n });\n\n BI.Plugin.registerWidget(\"bi.flex_horizontal\", function (ob) {\n if (ob.scrollable === true || ob.scrolly === true) {\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_horizontal\"});\n }\n });\n BI.Plugin.registerWidget(\"bi.flex_vertical\", function (ob) {\n if (ob.scrollable === true || ob.scrollx === true) {\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_vertical\"});\n }\n });\n BI.Plugin.registerWidget(\"bi.flex_horizontal_adapt\", function (ob) {\n if (ob.scrollable === true || ob.scrollx === true) {\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_horizontal_adapt\"});\n }\n });\n BI.Plugin.registerWidget(\"bi.flex_vertical_adapt\", function (ob) {\n if (ob.scrollable === true || ob.scrolly === true) {\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_vertical_adapt\"});\n }\n });\n BI.Plugin.registerWidget(\"bi.flex_horizontal_center_adapt\", function (ob) {\n if (ob.scrollable === true || ob.scrollx === true) {\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_horizontal_adapt\"});\n }\n });\n BI.Plugin.registerWidget(\"bi.flex_vertical_center_adapt\", function (ob) {\n if (ob.scrollable === true || ob.scrolly === true) {\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_vertical_adapt\"});\n }\n });\n BI.Plugin.registerWidget(\"bi.flex_center_adapt\", function (ob) {\n if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {\n return BI.extend({}, ob, {type: \"bi.flex_scrollable_center_adapt\"});\n }\n });\n\n BI.Plugin.registerWidget(\"bi.radio\", function (ob) {\n if (BI.isIE() && BI.getIEVersion() < 9) {\n return BI.extend(ob, {type: \"bi.image_radio\"});\n }\n return ob;\n });\n\n BI.Plugin.registerWidget(\"bi.checkbox\", function (ob) {\n if (BI.isIE() && BI.getIEVersion() < 9) {\n return BI.extend(ob, {type: \"bi.image_checkbox\"});\n }\n return ob;\n });\n\n BI.Plugin.registerWidget(\"bi.half_icon_button\", function (ob) {\n if (BI.isIE() && BI.getIEVersion() < 9) {\n return ob;\n }\n return BI.extend(ob, {type: \"bi.half_button\"});\n });\n});/**\n * Detect Element Resize.\n * Forked in order to guard against unsafe 'window' and 'document' references.\n *\n * https://github.com/sdecima/javascript-detect-element-resize\n * Sebastian Decima\n *\n * version: 0.5.3\n **/\n!(function () {\n var attachEvent = _global.document && _global.document.attachEvent,\n stylesCreated = false;\n\n if (_global.document && !attachEvent) {\n var requestFrame = (function () {\n var raf = _global.requestAnimationFrame || _global.mozRequestAnimationFrame || _global.webkitRequestAnimationFrame ||\n function (fn) { return _global.setTimeout(fn, 20); };\n return function (fn) { return raf(fn); };\n })();\n\n var cancelFrame = (function () {\n var cancel = _global.cancelAnimationFrame || _global.mozCancelAnimationFrame || _global.webkitCancelAnimationFrame ||\n _global.clearTimeout;\n return function (id) { return cancel(id); };\n })();\n\n var resetTriggers = function (element) {\n var triggers = element.__resizeTriggers__,\n expand = triggers.firstElementChild,\n contract = triggers.lastElementChild,\n expandChild = expand.firstElementChild;\n contract.scrollLeft = contract.scrollWidth;\n contract.scrollTop = contract.scrollHeight;\n expandChild.style.width = expand.offsetWidth + 1 + \"px\";\n expandChild.style.height = expand.offsetHeight + 1 + \"px\";\n expand.scrollLeft = expand.scrollWidth;\n expand.scrollTop = expand.scrollHeight;\n };\n\n var checkTriggers = function (element) {\n return element.offsetWidth !== element.__resizeLast__.width ||\n element.offsetHeight !== element.__resizeLast__.height;\n };\n\n var scrollListener = function (e) {\n var element = this;\n resetTriggers(this);\n if (this.__resizeRAF__) cancelFrame(this.__resizeRAF__);\n this.__resizeRAF__ = requestFrame(function () {\n if (checkTriggers(element)) {\n element.__resizeLast__.width = element.offsetWidth;\n element.__resizeLast__.height = element.offsetHeight;\n element.__resizeListeners__.forEach(function (fn) {\n fn.call(element, e);\n });\n }\n });\n };\n\n /* Detect CSS Animations support to detect element display/re-attach */\n var animation = false,\n animationstring = \"animation\",\n keyframeprefix = \"\",\n animationstartevent = \"animationstart\",\n domPrefixes = \"Webkit Moz O ms\".split(\" \"),\n startEvents = \"webkitAnimationStart animationstart oAnimationStart MSAnimationStart\".split(\" \"),\n pfx = \"\";\n {\n var elm = document.createElement(\"fakeelement\");\n if (elm.style.animationName !== undefined) {\n animation = true;\n }\n\n if (animation === false) {\n for (var i = 0; i < domPrefixes.length; i++) {\n if (elm.style[domPrefixes[i] + \"AnimationName\"] !== undefined) {\n pfx = domPrefixes[i];\n animationstring = pfx + \"Animation\";\n keyframeprefix = \"-\" + pfx.toLowerCase() + \"-\";\n animationstartevent = startEvents[i];\n animation = true;\n break;\n }\n }\n }\n }\n\n var animationName = \"resizeanim\";\n var animationKeyframes = \"@\" + keyframeprefix + \"keyframes \" + animationName + \" { from { opacity: 0; } to { opacity: 0; } } \";\n var animationStyle = keyframeprefix + \"animation: 1ms \" + animationName + \"; \";\n }\n\n var createStyles = function () {\n if (!stylesCreated) {\n // opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360\n var css = (animationKeyframes ? animationKeyframes : \"\") +\n \".resize-triggers { \" + (animationStyle ? animationStyle : \"\") + \"visibility: hidden; opacity: 0; } \" +\n \".resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \\\" \\\"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }\",\n head = document.head || document.getElementsByTagName(\"head\")[0],\n style = document.createElement(\"style\");\n\n style.type = \"text/css\";\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n\n head.appendChild(style);\n stylesCreated = true;\n }\n };\n\n var addResizeListener = function (element, fn) {\n if (attachEvent) {\n element.attachEvent(\"onresize\", fn);\n BI.nextTick(fn);\n } else {\n if (!element.__resizeTriggers__) {\n if (getComputedStyle(element).position === \"static\") element.style.position = \"relative\";\n createStyles();\n element.__resizeLast__ = {};\n element.__resizeListeners__ = [];\n (element.__resizeTriggers__ = document.createElement(\"div\")).className = \"resize-triggers\";\n element.__resizeTriggers__.innerHTML = \"<div class=\\\"expand-trigger\\\"><div></div></div>\" +\n \"<div class=\\\"contract-trigger\\\"></div>\";\n element.appendChild(element.__resizeTriggers__);\n resetTriggers(element);\n element.addEventListener(\"scroll\", scrollListener, true);\n\n /* Listen for a css animation to detect element display/re-attach */\n animationstartevent && element.__resizeTriggers__.addEventListener(animationstartevent, function (e) {\n if (e.animationName === animationName) {resetTriggers(element);}\n });\n }\n element.__resizeListeners__.push(fn);\n }\n };\n var removeResizeListener = function (element, fn) {\n if (attachEvent) element.detachEvent(\"onresize\", fn);\n else {\n element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);\n if (!element.__resizeListeners__.length) {\n element.removeEventListener(\"scroll\", scrollListener);\n element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);\n }\n }\n };\n\n BI.ResizeDetector = {\n addResizeListener: function (widget, fn) {\n addResizeListener(widget.element[0], fn);\n return function () {\n removeResizeListener(widget.element[0], fn);\n };\n },\n removeResizeListener: function (widget, fn) {\n removeResizeListener(widget.element[0], fn);\n }\n };\n})();\n/**\n * 对DOM操作的通用函数\n * @type {{}}\n */\n!(function () {\n BI.DOM = {};\n\n BI.extend(BI.DOM, {\n ready: function (fn) {\n BI.Widget._renderEngine.createElement(document).ready(fn);\n }\n });\n\n BI.extend(BI.DOM, {\n\n patchProps: function (fromElement, toElement) {\n var elemData = BI.jQuery._data(fromElement[0]);\n var events = elemData.events;\n BI.each(events, function (eventKey, event) {\n BI.each(event, function (i, handler) {\n toElement.on(eventKey + (handler.namespace ? (\".\" + handler.namespace) : \"\"), handler);\n });\n });\n var fromChildren = fromElement.children(), toChildren = toElement.children();\n if (fromChildren.length !== toChildren.length) {\n throw new Error(\"不匹配\");\n }\n BI.each(fromChildren, function (i, child) {\n BI.DOM.patchProps(BI.jQuery(child), BI.jQuery(toChildren[i]));\n });\n BI.each(fromElement.data(\"__widgets\"), function (i, widget) {\n widget.element = toElement;\n });\n },\n /**\n * 把dom数组或元素悬挂起来,使其不对html产生影响\n * @param dom\n */\n hang: function (doms) {\n if (BI.isEmpty(doms)) {\n return;\n }\n var frag = BI.Widget._renderEngine.createFragment();\n BI.each(doms, function (i, dom) {\n dom instanceof BI.Widget && (dom = dom.element);\n dom instanceof BI.$ && dom[0] && frag.appendChild(dom[0]);\n });\n return frag;\n },\n\n isExist: function (obj) {\n return BI.Widget._renderEngine.createElement(\"body\").find(obj.element).length > 0;\n },\n\n // 预加载图片\n preloadImages: function (srcArray, onload) {\n var count = 0, images = [];\n\n function complete () {\n count++;\n if (count >= srcArray.length) {\n onload();\n }\n }\n\n BI.each(srcArray, function (i, src) {\n images[i] = new Image();\n images[i].src = src;\n images[i].onload = function () {\n complete();\n };\n images[i].onerror = function () {\n complete();\n };\n });\n },\n\n getTextSizeWidth: function (text, fontSize) {\n var span = BI.Widget._renderEngine.createElement(\"<span></span>\").addClass(\"text-width-span\").appendTo(\"body\");\n\n if (fontSize == null) {\n fontSize = 12;\n }\n fontSize = fontSize + \"px\";\n\n span.css(\"font-size\", fontSize).text(text);\n\n var width = span.width();\n span.remove();\n\n return width;\n },\n\n getTextSizeHeight: function (text, fontSize) {\n var span = BI.Widget._renderEngine.createElement(\"<span></span>\").addClass(\"text-width-span\").appendTo(\"body\");\n\n if (fontSize == null) {\n fontSize = 12;\n }\n fontSize = fontSize + \"px\";\n\n span.css(\"font-size\", fontSize).text(text);\n\n var height = span.height();\n span.remove();\n\n return height;\n },\n\n // 获取滚动条的宽度,页面display: none时候获取到的为0\n getScrollWidth: function () {\n if (BI.isNull(this._scrollWidth) || this._scrollWidth === 0) {\n var ul = BI.Widget._renderEngine.createElement(\"<div>\").width(50).height(50).css({\n position: \"absolute\",\n top: \"-9999px\",\n overflow: \"scroll\"\n }).appendTo(\"body\");\n this._scrollWidth = ul[0].offsetWidth - ul[0].clientWidth;\n ul.destroy();\n }\n return this._scrollWidth;\n },\n\n getImage: function (param, fillStyle, backgroundColor) {\n var canvas = document.createElement(\"canvas\");\n var ratio = 2;\n BI.Widget._renderEngine.createElement(\"body\").append(canvas);\n\n var ctx = canvas.getContext(\"2d\");\n ctx.font = \"12px Georgia\";\n var w = ctx.measureText(param).width + 4;\n canvas.width = w * ratio;\n canvas.height = 16 * ratio;\n ctx.font = 12 * ratio + \"px Georgia\";\n ctx.fillStyle = fillStyle || \"#3685f2\";\n ctx.textBaseline = \"middle\";\n // ctx.fillStyle = \"#EAF2FD\";\n ctx.fillText(param, 2 * ratio, 9 * ratio);\n BI.Widget._renderEngine.createElement(canvas).destroy();\n var backColor = backgroundColor || \"rgba(54, 133, 242, 0.1)\";\n // IE可以放大缩小所以要固定最大最小宽高\n return {\n width: w,\n height: 16,\n src: canvas.toDataURL(\"image/png\"),\n style: \"background-color: \" + backColor + \";vertical-align: middle; margin: 0 1px; width:\" + w + \"px;height: 16px; max-width:\" + w + \"px;max-height: 16px; min-width:\" + w + \"px;min-height: 16px\",\n param: param\n };\n }\n });\n\n BI.extend(BI.DOM, {\n isColor: function (color) {\n return color && (this.isRGBColor(color) || this.isHexColor(color));\n },\n\n isRGBColor: function (color) {\n if (!color) {\n return false;\n }\n return color.substr(0, 3) === \"rgb\";\n },\n\n isHexColor: function (color) {\n if (!color) {\n return false;\n }\n return color[0] === \"#\" && color.length === 7;\n },\n\n isDarkColor: function (hex) {\n if (!hex || !this.isHexColor(hex)) {\n return false;\n }\n var rgb = this.rgb2json(this.hex2rgb(hex));\n var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);\n if (grayLevel < 192/** 网上给的是140**/) {\n return true;\n }\n return false;\n },\n\n // 获取对比颜色\n getContrastColor: function (color) {\n if (!color || !this.isColor(color)) {\n return \"\";\n }\n if (this.isDarkColor(color)) {\n return \"#ffffff\";\n }\n return \"#1a1a1a\";\n },\n\n rgb2hex: function (rgbColour) {\n if (!rgbColour || rgbColour.substr(0, 3) != \"rgb\") {\n return \"\";\n }\n var rgbValues = rgbColour.match(/\\d+(\\.\\d+)?/g);\n var red = BI.parseInt(rgbValues[0]);\n var green = BI.parseInt(rgbValues[1]);\n var blue = BI.parseInt(rgbValues[2]);\n\n var hexColour = \"#\" + this.int2hex(red) + this.int2hex(green) + this.int2hex(blue);\n\n return hexColour;\n },\n\n rgb2json: function (rgbColour) {\n if (!rgbColour) {\n return {};\n }\n if (!this.isRGBColor(rgbColour)) {\n return {};\n }\n var rgbValues = rgbColour.match(/\\d+(\\.\\d+)?/g);\n return {\n r: BI.parseInt(rgbValues[0]),\n g: BI.parseInt(rgbValues[1]),\n b: BI.parseInt(rgbValues[2])\n };\n },\n\n rgba2json: function (rgbColour) {\n if (!rgbColour) {\n return {};\n }\n var rgbValues = rgbColour.match(/\\d+(\\.\\d+)?/g);\n return {\n r: BI.parseInt(rgbValues[0]),\n g: BI.parseInt(rgbValues[1]),\n b: BI.parseInt(rgbValues[2]),\n a: BI.parseFloat(rgbValues[3])\n };\n },\n\n json2rgb: function (rgb) {\n if (!BI.isKey(rgb.r) || !BI.isKey(rgb.g) || !BI.isKey(rgb.b)) {\n return \"\";\n }\n return \"rgb(\" + rgb.r + \",\" + rgb.g + \",\" + rgb.b + \")\";\n },\n\n json2rgba: function (rgba) {\n if (!BI.isKey(rgba.r) || !BI.isKey(rgba.g) || !BI.isKey(rgba.b)) {\n return \"\";\n }\n return \"rgba(\" + rgba.r + \",\" + rgba.g + \",\" + rgba.b + \",\" + rgba.a + \")\";\n },\n\n int2hex: function (strNum) {\n var hexdig = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\n\n return hexdig[strNum >>> 4] + \"\" + hexdig[strNum & 15];\n },\n\n hex2rgb: function (color) {\n if (!color) {\n return \"\";\n }\n if (!this.isHexColor(color)) {\n return color;\n }\n var tempValue = \"rgb(\", colorArray;\n\n if (color.length === 7) {\n colorArray = [BI.parseInt(\"0x\" + color.substring(1, 3)),\n BI.parseInt(\"0x\" + color.substring(3, 5)),\n BI.parseInt(\"0x\" + color.substring(5, 7))];\n } else if (color.length === 4) {\n colorArray = [BI.parseInt(\"0x\" + color.substring(1, 2)),\n BI.parseInt(\"0x\" + color.substring(2, 3)),\n BI.parseInt(\"0x\" + color.substring(3, 4))];\n }\n tempValue += colorArray[0] + \",\";\n tempValue += colorArray[1] + \",\";\n tempValue += colorArray[2] + \")\";\n\n return tempValue;\n },\n\n rgba2rgb: function (rgbColor, bgColor) {\n if (BI.isNull(bgColor)) {\n bgColor = 1;\n }\n if (rgbColor.substr(0, 4) != \"rgba\") {\n return \"\";\n }\n var rgbValues = rgbColor.match(/\\d+(\\.\\d+)?/g);\n if (rgbValues.length < 4) {\n return \"\";\n }\n var R = BI.parseFloat(rgbValues[0]);\n var G = BI.parseFloat(rgbValues[1]);\n var B = BI.parseFloat(rgbValues[2]);\n var A = BI.parseFloat(rgbValues[3]);\n\n return \"rgb(\" + Math.floor(255 * (bgColor * (1 - A)) + R * A) + \",\" +\n Math.floor(255 * (bgColor * (1 - A)) + G * A) + \",\" +\n Math.floor(255 * (bgColor * (1 - A)) + B * A) + \")\";\n }\n });\n\n BI.extend(BI.DOM, {\n\n getLeftPosition: function (combo, popup, extraWidth) {\n return {\n left: combo.element.offset().left - popup.element.outerWidth() - (extraWidth || 0)\n };\n },\n\n getInnerLeftPosition: function (combo, popup, extraWidth) {\n return {\n left: combo.element.offset().left + (extraWidth || 0)\n };\n },\n\n getRightPosition: function (combo, popup, extraWidth) {\n var el = combo.element;\n return {\n left: el.offset().left + el.outerWidth() + (extraWidth || 0)\n };\n },\n\n getInnerRightPosition: function (combo, popup, extraWidth) {\n var el = combo.element, viewBounds = popup.element.bounds();\n return {\n left: el.offset().left + el.outerWidth() - viewBounds.width - (extraWidth || 0)\n };\n },\n\n getTopPosition: function (combo, popup, extraHeight) {\n return {\n top: combo.element.offset().top - popup.element.outerHeight() - (extraHeight || 0)\n };\n },\n\n getBottomPosition: function (combo, popup, extraHeight) {\n var el = combo.element;\n return {\n top: el.offset().top + el.outerHeight() + (extraHeight || 0)\n };\n },\n\n isLeftSpaceEnough: function (combo, popup, extraWidth) {\n return BI.DOM.getLeftPosition(combo, popup, extraWidth).left >= 0;\n },\n\n isInnerLeftSpaceEnough: function (combo, popup, extraWidth) {\n var viewBounds = popup.element.bounds(),windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n return BI.DOM.getInnerLeftPosition(combo, popup, extraWidth).left + viewBounds.width <= windowBounds.width;\n },\n\n isRightSpaceEnough: function (combo, popup, extraWidth) {\n var viewBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n return BI.DOM.getRightPosition(combo, popup, extraWidth).left + viewBounds.width <= windowBounds.width;\n },\n\n isInnerRightSpaceEnough: function (combo, popup, extraWidth) {\n return BI.DOM.getInnerRightPosition(combo, popup, extraWidth).left >= 0;\n },\n\n isTopSpaceEnough: function (combo, popup, extraHeight) {\n return BI.DOM.getTopPosition(combo, popup, extraHeight).top >= 0;\n },\n\n isBottomSpaceEnough: function (combo, popup, extraHeight) {\n var viewBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n return BI.DOM.getBottomPosition(combo, popup, extraHeight).top + viewBounds.height <= windowBounds.height;\n },\n\n isRightSpaceLarger: function (combo) {\n var windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n return windowBounds.width - combo.element.offset().left - combo.element.bounds().width >= combo.element.offset().left;\n },\n\n isBottomSpaceLarger: function (combo) {\n var windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n return windowBounds.height - combo.element.offset().top - combo.element.bounds().height >= combo.element.offset().top;\n },\n\n getLeftAlignPosition: function (combo, popup, extraWidth) {\n var viewBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n var left = combo.element.offset().left + extraWidth;\n if (left + viewBounds.width > windowBounds.width) {\n left = windowBounds.width - viewBounds.width;\n }\n if (left < 0) {\n left = 0;\n }\n return {\n left: left\n };\n },\n\n getLeftAdaptPosition: function (combo, popup, extraWidth) {\n if (BI.DOM.isLeftSpaceEnough(combo, popup, extraWidth)) {\n return BI.DOM.getLeftPosition(combo, popup, extraWidth);\n }\n return {\n left: 0\n };\n },\n\n getRightAlignPosition: function (combo, popup, extraWidth) {\n var comboBounds = combo.element.bounds(), viewBounds = popup.element.bounds();\n var left = combo.element.offset().left + comboBounds.width - viewBounds.width - extraWidth;\n if (left < 0) {\n left = 0;\n }\n return {\n left: left\n };\n },\n\n getRightAdaptPosition: function (combo, popup, extraWidth) {\n if (BI.DOM.isRightSpaceEnough(combo, popup, extraWidth)) {\n return BI.DOM.getRightPosition(combo, popup, extraWidth);\n }\n return {\n left: BI.Widget._renderEngine.createElement(\"body\").bounds().width - popup.element.bounds().width\n };\n },\n\n getTopAlignPosition: function (combo, popup, extraHeight, needAdaptHeight) {\n var comboOffset = combo.element.offset();\n var comboBounds = combo.element.bounds(), popupBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n var top, adaptHeight;\n if (BI.DOM.isBottomSpaceEnough(combo, popup, -1 * comboBounds.height + extraHeight)) {\n top = comboOffset.top + extraHeight;\n } else if (needAdaptHeight) {\n top = comboOffset.top + extraHeight;\n adaptHeight = windowBounds.height - top;\n } else {\n top = windowBounds.height - popupBounds.height;\n if (top < extraHeight) {\n adaptHeight = windowBounds.height - extraHeight;\n }\n }\n if (top < extraHeight) {\n top = extraHeight;\n }\n return adaptHeight ? {\n top: top,\n adaptHeight: adaptHeight\n } : {\n top: top\n };\n },\n\n getTopAdaptPosition: function (combo, popup, extraHeight, needAdaptHeight) {\n var popupBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n if (BI.DOM.isTopSpaceEnough(combo, popup, extraHeight)) {\n return BI.DOM.getTopPosition(combo, popup, extraHeight);\n }\n if (needAdaptHeight) {\n return {\n top: 0,\n adaptHeight: combo.element.offset().top - extraHeight\n };\n }\n if (popupBounds.height + extraHeight > windowBounds.height) {\n return {\n top: 0,\n adaptHeight: windowBounds.height - extraHeight\n };\n }\n return {\n top: 0\n };\n },\n\n getBottomAlignPosition: function (combo, popup, extraHeight, needAdaptHeight) {\n var comboOffset = combo.element.offset();\n var comboBounds = combo.element.bounds(), popupBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n var top, adaptHeight;\n if (BI.DOM.isTopSpaceEnough(combo, popup, -1 * comboBounds.height + extraHeight)) {\n top = comboOffset.top + comboBounds.height - popupBounds.height - extraHeight;\n } else if (needAdaptHeight) {\n top = 0;\n adaptHeight = comboOffset.top + comboBounds.height - extraHeight;\n } else {\n top = 0;\n if (popupBounds.height + extraHeight > windowBounds.height) {\n adaptHeight = windowBounds.height - extraHeight;\n }\n }\n if (top < 0) {\n top = 0;\n }\n return adaptHeight ? {\n top: top,\n adaptHeight: adaptHeight\n } : {\n top: top\n };\n },\n\n getBottomAdaptPosition: function (combo, popup, extraHeight, needAdaptHeight) {\n var comboOffset = combo.element.offset();\n var comboBounds = combo.element.bounds(), popupBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n if (BI.DOM.isBottomSpaceEnough(combo, popup, extraHeight)) {\n return BI.DOM.getBottomPosition(combo, popup, extraHeight);\n }\n if (needAdaptHeight) {\n return {\n top: comboOffset.top + comboBounds.height + extraHeight,\n adaptHeight: windowBounds.height - comboOffset.top - comboBounds.height - extraHeight\n };\n }\n if (popupBounds.height + extraHeight > windowBounds.height) {\n return {\n top: extraHeight,\n adaptHeight: windowBounds.height - extraHeight\n };\n }\n return {\n top: windowBounds.height - popupBounds.height - extraHeight\n };\n },\n\n getCenterAdaptPosition: function (combo, popup) {\n var comboOffset = combo.element.offset();\n var comboBounds = combo.element.bounds(), popupBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n var left;\n if (comboOffset.left + comboBounds.width / 2 + popupBounds.width / 2 > windowBounds.width) {\n left = windowBounds.width - popupBounds.width;\n } else {\n left = comboOffset.left + comboBounds.width / 2 - popupBounds.width / 2;\n }\n if (left < 0) {\n left = 0;\n }\n return {\n left: left\n };\n },\n\n getMiddleAdaptPosition: function (combo, popup) {\n var comboOffset = combo.element.offset();\n var comboBounds = combo.element.bounds(), popupBounds = popup.element.bounds(),\n windowBounds = BI.Widget._renderEngine.createElement(\"body\").bounds();\n var top;\n if (comboOffset.top + comboBounds.height / 2 + popupBounds.height / 2 > windowBounds.height) {\n top = windowBounds.height - popupBounds.height;\n } else {\n top = comboOffset.top + comboBounds.height / 2 - popupBounds.height / 2;\n }\n if (top < 0) {\n top = 0;\n }\n return {\n top: top\n };\n },\n\n getComboPositionByDirections: function (combo, popup, extraWidth, extraHeight, needAdaptHeight, directions) {\n extraWidth || (extraWidth = 0);\n extraHeight || (extraHeight = 0);\n var i, direct;\n var leftRight = [], topBottom = [], innerLeftRight = [];\n var isNeedAdaptHeight = false, tbFirst = false, lrFirst = false;\n var left, top, pos, firstDir = directions[0];\n for (i = 0; i < directions.length; i++) {\n direct = directions[i];\n switch (direct) {\n case \"left\":\n leftRight.push(direct);\n break;\n case \"right\":\n leftRight.push(direct);\n break;\n case \"top\":\n topBottom.push(direct);\n break;\n case \"bottom\":\n topBottom.push(direct);\n break;\n case \"innerLeft\":\n innerLeftRight.push(direct);\n break;\n case \"innerRight\":\n innerLeftRight.push(direct);\n break;\n }\n }\n for (i = 0; i < directions.length; i++) {\n direct = directions[i];\n switch (direct) {\n case \"left\":\n if (!isNeedAdaptHeight) {\n var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? 0 : extraHeight;\n if (BI.DOM.isLeftSpaceEnough(combo, popup, tW)) {\n left = BI.DOM.getLeftPosition(combo, popup, tW).left;\n if (topBottom[0] === \"bottom\") {\n pos = BI.DOM.getTopAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"left,bottom\";\n } else {\n pos = BI.DOM.getBottomAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"left,top\";\n }\n if (tbFirst) {\n pos.change = \"left\";\n }\n pos.left = left;\n return pos;\n }\n }\n lrFirst = true;\n break;\n case \"right\":\n if (!isNeedAdaptHeight) {\n var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? extraWidth : extraHeight;\n if (BI.DOM.isRightSpaceEnough(combo, popup, tW)) {\n left = BI.DOM.getRightPosition(combo, popup, tW).left;\n if (topBottom[0] === \"bottom\") {\n pos = BI.DOM.getTopAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"right,bottom\";\n } else {\n pos = BI.DOM.getBottomAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"right,top\";\n }\n if (tbFirst) {\n pos.change = \"right\";\n }\n pos.left = left;\n return pos;\n }\n }\n lrFirst = true;\n break;\n case \"top\":\n var tW = lrFirst ? extraHeight : extraWidth, tH = lrFirst ? extraWidth : extraHeight;\n if (BI.DOM.isTopSpaceEnough(combo, popup, tH)) {\n top = BI.DOM.getTopPosition(combo, popup, tH).top;\n if (leftRight[0] === \"right\") {\n pos = BI.DOM.getLeftAlignPosition(combo, popup, tW, needAdaptHeight);\n pos.dir = \"top,right\";\n } else {\n pos = BI.DOM.getRightAlignPosition(combo, popup, tW);\n pos.dir = \"top,left\";\n }\n if (lrFirst) {\n pos.change = \"top\";\n }\n pos.top = top;\n return pos;\n }\n if (needAdaptHeight) {\n isNeedAdaptHeight = true;\n }\n tbFirst = true;\n break;\n case \"bottom\":\n var tW = lrFirst ? extraHeight : extraWidth, tH = lrFirst ? extraWidth : extraHeight;\n if (BI.DOM.isBottomSpaceEnough(combo, popup, tH)) {\n top = BI.DOM.getBottomPosition(combo, popup, tH).top;\n if (leftRight[0] === \"right\") {\n pos = BI.DOM.getLeftAlignPosition(combo, popup, tW, needAdaptHeight);\n pos.dir = \"bottom,right\";\n } else {\n pos = BI.DOM.getRightAlignPosition(combo, popup, tW);\n pos.dir = \"bottom,left\";\n }\n if (lrFirst) {\n pos.change = \"bottom\";\n }\n pos.top = top;\n return pos;\n }\n if (needAdaptHeight) {\n isNeedAdaptHeight = true;\n }\n tbFirst = true;\n break;\n case \"innerLeft\":\n if (!isNeedAdaptHeight) {\n var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? 0 : extraHeight;\n if (BI.DOM.isInnerLeftSpaceEnough(combo, popup, tW)) {\n left = BI.DOM.getInnerLeftPosition(combo, popup, tW).left;\n if (topBottom[0] === \"bottom\") {\n pos = BI.DOM.getTopAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"innerLeft,bottom\";\n } else {\n pos = BI.DOM.getBottomAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"innerLeft,top\";\n }\n if (tbFirst) {\n pos.change = \"innerLeft\";\n }\n pos.left = left;\n return pos;\n }\n }\n lrFirst = true;\n break;\n case \"innerRight\":\n if (!isNeedAdaptHeight) {\n var tW = tbFirst ? extraHeight : extraWidth, tH = tbFirst ? extraWidth : extraHeight;\n if (BI.DOM.isInnerRightSpaceEnough(combo, popup, tW)) {\n left = BI.DOM.getInnerRightPosition(combo, popup, tW).left;\n if (topBottom[0] === \"bottom\") {\n pos = BI.DOM.getTopAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"innerRight,bottom\";\n } else {\n pos = BI.DOM.getBottomAlignPosition(combo, popup, tH, needAdaptHeight);\n pos.dir = \"innerRight,top\";\n }\n if (tbFirst) {\n pos.change = \"innerRight\";\n }\n pos.left = left;\n return pos;\n }\n }\n break;\n\n }\n }\n\n // 此处为四个方向放不下时挑空间最大的方向去放置, 也就是说我设置了弹出方向为\"bottom,left\",\n // 最后发现实际弹出方向可能是\"top,left\",那么此时外界获取popup的方向应该是\"top,left\"\n switch (directions[0]) {\n case \"left\":\n case \"right\":\n if (BI.DOM.isRightSpaceLarger(combo)) {\n left = BI.DOM.getRightAdaptPosition(combo, popup, extraWidth).left;\n firstDir = \"right\";\n } else {\n left = BI.DOM.getLeftAdaptPosition(combo, popup, extraWidth).left;\n firstDir = \"left\";\n }\n if (topBottom[0] === \"bottom\") {\n pos = BI.DOM.getTopAlignPosition(combo, popup, extraHeight, needAdaptHeight);\n pos.left = left;\n pos.dir = firstDir + \",bottom\";\n return pos;\n }\n pos = BI.DOM.getBottomAlignPosition(combo, popup, extraHeight, needAdaptHeight);\n pos.left = left;\n pos.dir = firstDir + \",top\";\n return pos;\n default :\n if (BI.DOM.isBottomSpaceLarger(combo)) {\n pos = BI.DOM.getBottomAdaptPosition(combo, popup, extraHeight, needAdaptHeight);\n firstDir = \"bottom\";\n } else {\n pos = BI.DOM.getTopAdaptPosition(combo, popup, extraHeight, needAdaptHeight);\n firstDir = \"top\";\n }\n if (leftRight[0] === \"right\") {\n left = BI.DOM.getLeftAlignPosition(combo, popup, extraWidth, needAdaptHeight).left;\n pos.left = left;\n pos.dir = firstDir + \",right\";\n return pos;\n }\n left = BI.DOM.getRightAlignPosition(combo, popup, extraWidth).left;\n pos.left = left;\n pos.dir = firstDir + \",left\";\n return pos;\n }\n },\n\n\n getComboPosition: function (combo, popup, extraWidth, extraHeight, needAdaptHeight, directions, offsetStyle) {\n extraWidth || (extraWidth = 0);\n extraHeight || (extraHeight = 0);\n var bodyHeight = BI.Widget._renderEngine.createElement(\"body\").bounds().height - extraHeight;\n var maxHeight = Math.min(popup.attr(\"maxHeight\") || bodyHeight, bodyHeight);\n popup.resetHeight && popup.resetHeight(maxHeight);\n var position = BI.DOM.getComboPositionByDirections(combo, popup, extraWidth, extraHeight, needAdaptHeight, directions || [\"bottom\", \"top\", \"right\", \"left\"]);\n switch (offsetStyle) {\n case \"center\":\n if (position.change) {\n var p = BI.DOM.getMiddleAdaptPosition(combo, popup);\n position.top = p.top;\n } else {\n var p = BI.DOM.getCenterAdaptPosition(combo, popup);\n position.left = p.left;\n }\n break;\n case \"middle\":\n if (position.change) {\n var p = BI.DOM.getCenterAdaptPosition(combo, popup);\n position.left = p.left;\n } else {\n var p = BI.DOM.getMiddleAdaptPosition(combo, popup);\n position.top = p.top;\n }\n break;\n }\n if (needAdaptHeight === true) {\n popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight));\n }\n return position;\n }\n });\n})();\nBI.EventListener = {\n listen: function listen (target, eventType, callback) {\n if (target.addEventListener) {\n target.addEventListener(eventType, callback, false);\n return {\n remove: function remove () {\n target.removeEventListener(eventType, callback, false);\n }\n };\n } else if (target.attachEvent) {\n target.attachEvent(\"on\" + eventType, callback);\n return {\n remove: function remove () {\n target.detachEvent(\"on\" + eventType, callback);\n }\n };\n }\n },\n\n capture: function capture (target, eventType, callback) {\n if (target.addEventListener) {\n target.addEventListener(eventType, callback, true);\n return {\n remove: function remove () {\n target.removeEventListener(eventType, callback, true);\n }\n };\n }\n return {\n remove: BI.emptyFn\n };\n \n },\n\n registerDefault: function registerDefault () {\n }\n};// 浏览器相关方法\n_.extend(BI, {\n isIE: function () {\n if(!_global.navigator) {\n return false;\n }\n if (this.__isIE == null) {\n this.__isIE = /(msie|trident)/i.test(navigator.userAgent.toLowerCase());\n }\n return this.__isIE;\n },\n\n getIEVersion: function () {\n if(!_global.navigator) {\n return 0;\n }\n if (this.__IEVersion != null) {\n return this.__IEVersion;\n }\n var version = 0;\n var agent = navigator.userAgent.toLowerCase();\n var v1 = agent.match(/(?:msie\\s([\\w.]+))/);\n var v2 = agent.match(/(?:trident.*rv:([\\w.]+))/);\n if (v1 && v2 && v1[1] && v2[1]) {\n version = Math.max(v1[1] * 1, v2[1] * 1);\n } else if (v1 && v1[1]) {\n version = v1[1] * 1;\n } else if (v2 && v2[1]) {\n version = v2[1] * 1;\n } else {\n version = 0;\n }\n return this.__IEVersion = version;\n },\n\n isIE9Below: function () {\n if (!BI.isIE()) {\n return false;\n }\n return this.getIEVersion() < 9;\n },\n\n isEdge: function () {\n if(!_global.navigator) {\n return false;\n }\n return /edge/i.test(navigator.userAgent.toLowerCase());\n },\n\n isChrome: function () {\n if(!_global.navigator) {\n return false;\n }\n return /chrome/i.test(navigator.userAgent.toLowerCase());\n },\n\n isFireFox: function () {\n if(!_global.navigator) {\n return false;\n }\n return /firefox/i.test(navigator.userAgent.toLowerCase());\n },\n\n isOpera: function () {\n if(!_global.navigator) {\n return false;\n }\n return /opera/i.test(navigator.userAgent.toLowerCase());\n },\n\n isSafari: function () {\n if(!_global.navigator) {\n return false;\n }\n return /safari/i.test(navigator.userAgent.toLowerCase()) && !/chrome/i.test(navigator.userAgent.toLowerCase());\n },\n\n isKhtml: function () {\n if(!_global.navigator) {\n return false;\n }\n return /Konqueror|Safari|KHTML/i.test(navigator.userAgent);\n },\n\n isMac: function () {\n if(!_global.navigator) {\n return false;\n }\n return /macintosh|mac os x/i.test(navigator.userAgent);\n },\n\n isWindows: function () {\n if(!_global.navigator) {\n return false;\n }\n return /windows|win32/i.test(navigator.userAgent);\n },\n\n isSupportCss3: function (style) {\n if(!_global.document) {\n return false;\n }\n var prefix = [\"webkit\", \"Moz\", \"ms\", \"o\"],\n i, len,\n humpString = [],\n htmlStyle = document.documentElement.style,\n _toHumb = function (string) {\n if (!BI.isString(string)) {\n return \"\";\n }\n\n return string.replace(/-(\\w)/g, function ($0, $1) {\n return $1.toUpperCase();\n });\n };\n\n for (i in prefix) {\n humpString.push(_toHumb(prefix[i] + \"-\" + style));\n }\n humpString.push(_toHumb(style));\n\n for (i = 0, len = humpString.length; i < len; i++) {\n if (humpString[i] in htmlStyle) {\n return true;\n }\n }\n return false;\n }\n});/*!\n * jQuery JavaScript Library v1.9.1\n * http://jquery.com/\n *\n * Includes Sizzle.js\n * http://sizzlejs.com/\n *\n * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors\n * Released under the MIT license\n * http://jquery.org/license\n *\n * Date: 2013-2-4\n */\n(function( window, undefined ) {\n\n// Can't do this because several apps including ASP.NET trace\n// the stack via arguments.caller.callee and Firefox dies if\n// you try to trace through \"use strict\" call chains. (#13335)\n// Support: Firefox 18+\n//\"use strict\";\nvar\n\t// The deferred used on DOM ready\n\treadyList,\n\n\t// A central reference to the root jQuery(document)\n\trootjQuery,\n\n\t// Support: IE<9\n\t// For `typeof node.method` instead of `node.method !== undefined`\n\tcore_strundefined = typeof undefined,\n\n\t// Use the correct document accordingly with window argument (sandbox)\n\tdocument = window.document,\n\tlocation = window.location,\n\n\t// Map over jQuery in case of overwrite\n\t_jQuery = window.jQuery,\n\n\t// Map over the $ in case of overwrite\n\t_$ = window.$,\n\n\t// [[Class]] -> type pairs\n\tclass2type = {},\n\n\t// List of deleted data cache ids, so we can reuse them\n\tcore_deletedIds = [],\n\n\tcore_version = \"1.12.4\",\n\n\t// Save a reference to some core methods\n\tcore_concat = core_deletedIds.concat,\n\tcore_push = core_deletedIds.push,\n\tcore_slice = core_deletedIds.slice,\n\tcore_indexOf = core_deletedIds.indexOf,\n\tcore_toString = class2type.toString,\n\tcore_hasOwn = class2type.hasOwnProperty,\n\tcore_trim = core_version.trim,\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\treturn new jQuery.fn.init( selector, context, rootjQuery );\n\t},\n\n\t// Used for matching numbers\n\tcore_pnum = /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,\n\n\t// Used for splitting on whitespace\n\tcore_rnotwhite = /\\S+/g,\n\n\t// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)\n\trtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\n\t// Strict HTML recognition (#11290: must start with <)\n\trquickExpr = /^(?:(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,\n\n\t// Match a standalone tag\n\trsingleTag = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,\n\n\t// JSON RegExp\n\trvalidchars = /^[\\],:{}\\s]*$/,\n\trvalidbraces = /(?:^|:|,)(?:\\s*\\[)+/g,\n\trvalidescape = /\\\\(?:[\"\\\\\\/bfnrt]|u[\\da-fA-F]{4})/g,\n\trvalidtokens = /\"[^\"\\\\\\r\\n]*\"|true|false|null|-?(?:\\d+\\.|)\\d+(?:[eE][+-]?\\d+|)/g,\n\n\t// Matches dashed string for camelizing\n\trmsPrefix = /^-ms-/,\n\trdashAlpha = /-([\\da-z])/gi,\n\n\t// Used by jQuery.camelCase as callback to replace()\n\tfcamelCase = function( all, letter ) {\n\t\treturn letter.toUpperCase();\n\t},\n\n\t// The ready event handler\n\tcompleted = function( event ) {\n\n\t\t// readyState === \"complete\" is good enough for us to call the dom ready in oldIE\n\t\tif ( document.addEventListener || event.type === \"load\" || document.readyState === \"complete\" ) {\n\t\t\tdetach();\n\t\t\tjQuery.ready();\n\t\t}\n\t},\n\t// Clean-up method for dom ready events\n\tdetach = function() {\n\t\tif ( document.addEventListener ) {\n\t\t\tdocument.removeEventListener( \"DOMContentLoaded\", completed, false );\n\t\t\twindow.removeEventListener( \"load\", completed, false );\n\n\t\t} else {\n\t\t\tdocument.detachEvent( \"onreadystatechange\", completed );\n\t\t\twindow.detachEvent( \"onload\", completed );\n\t\t}\n\t};\n\njQuery.fn = jQuery.prototype = {\n\t// The current version of jQuery being used\n\tjquery: core_version,\n\n\tconstructor: jQuery,\n\tinit: function( selector, context, rootjQuery ) {\n\t\tvar match, elem;\n\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector.charAt(0) === \"<\" && selector.charAt( selector.length - 1 ) === \">\" && selector.length >= 3 ) {\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && (match[1] || !context) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[1] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[0] : context;\n\n\t\t\t\t\t// scripts is true for back-compat\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\tmatch[1],\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\ttrue\n\t\t\t\t\t) );\n\n\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\tif ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tfor ( match in context ) {\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\tif ( jQuery.isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this;\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[2] );\n\n\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\t\tif ( elem && elem.parentNode ) {\n\t\t\t\t\t\t// Handle the case where IE and Opera return items\n\t\t\t\t\t\t// by name instead of ID\n\t\t\t\t\t\tif ( elem.id !== match[2] ) {\n\t\t\t\t\t\t\treturn rootjQuery.find( selector );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Otherwise, we inject the element directly into the jQuery object\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t\tthis[0] = elem;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.context = document;\n\t\t\t\t\tthis.selector = selector;\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || rootjQuery ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(DOMElement)\n\t\t} else if ( selector.nodeType ) {\n\t\t\tthis.context = this[0] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( jQuery.isFunction( selector ) ) {\n\t\t\treturn rootjQuery.ready( selector );\n\t\t}\n\n\t\tif ( selector.selector !== undefined ) {\n\t\t\tthis.selector = selector.selector;\n\t\t\tthis.context = selector.context;\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t},\n\n\t// Start with an empty selector\n\tselector: \"\",\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\t// The number of elements contained in the matched element set\n\tsize: function() {\n\t\treturn this.length;\n\t},\n\n\ttoArray: function() {\n\t\treturn core_slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\t\treturn num == null ?\n\n\t\t\t// Return a 'clean' array\n\t\t\tthis.toArray() :\n\n\t\t\t// Return just the object\n\t\t\t( num < 0 ? this[ this.length + num ] : this[ num ] );\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\t\tret.context = this.context;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\t// (You can seed the arguments with an array of args, but this is\n\t// only used internally.)\n\teach: function( callback, args ) {\n\t\treturn jQuery.each( this, callback, args );\n\t},\n\n\tready: function( fn ) {\n\t\t// Add the callback\n\t\tjQuery.ready.promise().done( fn );\n\n\t\treturn this;\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( core_slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map(this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t}));\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor(null);\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: core_push,\n\tsort: [].sort,\n\tsplice: [].splice\n};\n\n// Give the init function the jQuery prototype for later instantiation\njQuery.fn.init.prototype = jQuery.fn;\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar src, copyIsArray, copy, name, options, clone,\n\t\ttarget = arguments[0] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !jQuery.isFunction(target) ) {\n\t\ttarget = {};\n\t}\n\n\t// extend jQuery itself if only one argument is passed\n\tif ( length === i ) {\n\t\ttarget = this;\n\t\t--i;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\t\t// Only deal with non-null/undefined values\n\t\tif ( (options = arguments[ i ]) != null ) {\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tsrc = target[ name ];\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {\n\t\t\t\t\tif ( copyIsArray ) {\n\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\tclone = src && jQuery.isArray(src) ? src : [];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src && jQuery.isPlainObject(src) ? src : {};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend({\n\tnoConflict: function( deep ) {\n\t\tif ( window.$ === jQuery ) {\n\t\t\twindow.$ = _$;\n\t\t}\n\n\t\tif ( deep && window.jQuery === jQuery ) {\n\t\t\twindow.jQuery = _jQuery;\n\t\t}\n\n\t\treturn jQuery;\n\t},\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See #6781\n\treadyWait: 1,\n\n\t// Hold (or release) the ready event\n\tholdReady: function( hold ) {\n\t\tif ( hold ) {\n\t\t\tjQuery.readyWait++;\n\t\t} else {\n\t\t\tjQuery.ready( true );\n\t\t}\n\t},\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n\t\tif ( !document.body ) {\n\t\t\treturn setTimeout( jQuery.ready );\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\n\t\t// Trigger any bound ready events\n\t\tif ( jQuery.fn.trigger ) {\n\t\t\tjQuery( document ).trigger(\"ready\").off(\"ready\");\n\t\t}\n\t},\n\n\t// See test/unit/core.js for details concerning isFunction.\n\t// Since version 1.3, DOM methods and functions like alert\n\t// aren't supported. They return false on IE (#2968).\n\tisFunction: function( obj ) {\n\t\treturn jQuery.type(obj) === \"function\";\n\t},\n\n\tisArray: Array.isArray || function( obj ) {\n\t\treturn jQuery.type(obj) === \"array\";\n\t},\n\n\tisWindow: function( obj ) {\n\t\treturn obj != null && obj == obj.window;\n\t},\n\n\tisNumeric: function( obj ) {\n\t\treturn !isNaN( parseFloat(obj) ) && isFinite( obj );\n\t},\n\n\ttype: function( obj ) {\n\t\tif ( obj == null ) {\n\t\t\treturn String( obj );\n\t\t}\n\t\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\t\tclass2type[ core_toString.call(obj) ] || \"object\" :\n\t\t\ttypeof obj;\n\t},\n\n\tisPlainObject: function( obj ) {\n\t\t// Must be an Object.\n\t\t// Because of IE, we also have to check the presence of the constructor property.\n\t\t// Make sure that DOM nodes and window objects don't pass through, as well\n\t\tif ( !obj || jQuery.type(obj) !== \"object\" || obj.nodeType || jQuery.isWindow( obj ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\t// Not own constructor property must be Object\n\t\t\tif ( obj.constructor &&\n\t\t\t\t!core_hasOwn.call(obj, \"constructor\") &&\n\t\t\t\t!core_hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\") ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch ( e ) {\n\t\t\t// IE8,9 Will throw exceptions on certain host objects #9897\n\t\t\treturn false;\n\t\t}\n\n\t\t// Own properties are enumerated firstly, so to speed up,\n\t\t// if last one is own, then all properties are own.\n\n\t\tvar key;\n\t\tfor ( key in obj ) {}\n\n\t\treturn key === undefined || core_hasOwn.call( obj, key );\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tvar name;\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\t// data: string of html\n\t// context (optional): If specified, the fragment will be created in this context, defaults to document\n\t// keepScripts (optional): If true, will include scripts passed in the html string\n\tparseHTML: function( data, context, keepScripts ) {\n\t\tif ( !data || typeof data !== \"string\" ) {\n\t\t\treturn null;\n\t\t}\n\t\tif ( typeof context === \"boolean\" ) {\n\t\t\tkeepScripts = context;\n\t\t\tcontext = false;\n\t\t}\n\t\tcontext = context || document;\n\n\t\tvar parsed = rsingleTag.exec( data ),\n\t\t\tscripts = !keepScripts && [];\n\n\t\t// Single tag\n\t\tif ( parsed ) {\n\t\t\treturn [ context.createElement( parsed[1] ) ];\n\t\t}\n\n\t\tparsed = jQuery.buildFragment( [ data ], context, scripts );\n\t\tif ( scripts ) {\n\t\t\tjQuery( scripts ).remove();\n\t\t}\n\t\treturn jQuery.merge( [], parsed.childNodes );\n\t},\n\n\tparseJSON: function( data ) {\n\t\t// Attempt to parse using the native JSON parser first\n\t\tif ( window.JSON && window.JSON.parse ) {\n\t\t\treturn window.JSON.parse( data );\n\t\t}\n\n\t\tif ( data === null ) {\n\t\t\treturn data;\n\t\t}\n\n\t\tif ( typeof data === \"string\" ) {\n\n\t\t\t// Make sure leading/trailing whitespace is removed (IE can't handle it)\n\t\t\tdata = jQuery.trim( data );\n\n\t\t\tif ( data ) {\n\t\t\t\t// Make sure the incoming data is actual JSON\n\t\t\t\t// Logic borrowed from http://json.org/json2.js\n\t\t\t\tif ( rvalidchars.test( data.replace( rvalidescape, \"@\" )\n\t\t\t\t\t.replace( rvalidtokens, \"]\" )\n\t\t\t\t\t.replace( rvalidbraces, \"\")) ) {\n\n\t\t\t\t\treturn ( new Function( \"return \" + data ) )();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tjQuery.error( \"Invalid JSON: \" + data );\n\t},\n\n\t// Cross-browser xml parsing\n\tparseXML: function( data ) {\n\t\tvar xml, tmp;\n\t\tif ( !data || typeof data !== \"string\" ) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tif ( window.DOMParser ) { // Standard\n\t\t\t\ttmp = new DOMParser();\n\t\t\t\txml = tmp.parseFromString( data , \"text/xml\" );\n\t\t\t} else { // IE\n\t\t\t\txml = new ActiveXObject( \"Microsoft.XMLDOM\" );\n\t\t\t\txml.async = \"false\";\n\t\t\t\txml.loadXML( data );\n\t\t\t}\n\t\t} catch( e ) {\n\t\t\txml = undefined;\n\t\t}\n\t\tif ( !xml || !xml.documentElement || xml.getElementsByTagName( \"parsererror\" ).length ) {\n\t\t\tjQuery.error( \"Invalid XML: \" + data );\n\t\t}\n\t\treturn xml;\n\t},\n\n\tnoop: function() {},\n\n\t// Evaluates a script in a global context\n\t// Workarounds based on findings by Jim Driscoll\n\t// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context\n\tglobalEval: function( data ) {\n\t\tif ( data && jQuery.trim( data ) ) {\n\t\t\t// We use execScript on Internet Explorer\n\t\t\t// We use an anonymous function so that context is window\n\t\t\t// rather than jQuery in Firefox\n\t\t\t( window.execScript || function( data ) {\n\t\t\t\twindow[ \"eval\" ].call( window, data );\n\t\t\t} )( data );\n\t\t}\n\t},\n\n\t// Convert dashed to camelCase; used by the css and data modules\n\t// Microsoft forgot to hump their vendor prefix (#9572)\n\tcamelCase: function( string ) {\n\t\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n\t},\n\n\tnodeName: function( elem, name ) {\n\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\t},\n\n\t// args is for internal usage only\n\teach: function( obj, callback, args ) {\n\t\tvar value,\n\t\t\ti = 0,\n\t\t\tlength = obj.length,\n\t\t\tisArray = isArraylike( obj );\n\n\t\tif ( args ) {\n\t\t\tif ( isArray ) {\n\t\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\t\tvalue = callback.apply( obj[ i ], args );\n\n\t\t\t\t\tif ( value === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( i in obj ) {\n\t\t\t\t\tvalue = callback.apply( obj[ i ], args );\n\n\t\t\t\t\tif ( value === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// A special, fast, case for the most common use of each\n\t\t} else {\n\t\t\tif ( isArray ) {\n\t\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\t\tvalue = callback.call( obj[ i ], i, obj[ i ] );\n\n\t\t\t\t\tif ( value === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( i in obj ) {\n\t\t\t\t\tvalue = callback.call( obj[ i ], i, obj[ i ] );\n\n\t\t\t\t\tif ( value === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\t// Use native String.trim function wherever possible\n\ttrim: core_trim && !core_trim.call(\"\\uFEFF\\xA0\") ?\n\t\tfunction( text ) {\n\t\t\treturn text == null ?\n\t\t\t\t\"\" :\n\t\t\t\tcore_trim.call( text );\n\t\t} :\n\n\t\t// Otherwise use our own trimming functionality\n\t\tfunction( text ) {\n\t\t\treturn text == null ?\n\t\t\t\t\"\" :\n\t\t\t\t( text + \"\" ).replace( rtrim, \"\" );\n\t\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArraylike( Object(arr) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tcore_push.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\tvar len;\n\n\t\tif ( arr ) {\n\t\t\tif ( core_indexOf ) {\n\t\t\t\treturn core_indexOf.call( arr, elem, i );\n\t\t\t}\n\n\t\t\tlen = arr.length;\n\t\t\ti = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;\n\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t// Skip accessing in sparse arrays\n\t\t\t\tif ( i in arr && arr[ i ] === elem ) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t},\n\n\tmerge: function( first, second ) {\n\t\tvar l = second.length,\n\t\t\ti = first.length,\n\t\t\tj = 0;\n\n\t\tif ( typeof l === \"number\" ) {\n\t\t\tfor ( ; j < l; j++ ) {\n\t\t\t\tfirst[ i++ ] = second[ j ];\n\t\t\t}\n\t\t} else {\n\t\t\twhile ( second[j] !== undefined ) {\n\t\t\t\tfirst[ i++ ] = second[ j++ ];\n\t\t\t}\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, inv ) {\n\t\tvar retVal,\n\t\t\tret = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length;\n\t\tinv = !!inv;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tretVal = !!callback( elems[ i ], i );\n\t\t\tif ( inv !== retVal ) {\n\t\t\t\tret.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar value,\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tisArray = isArraylike( elems ),\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their\n\t\tif ( isArray ) {\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret[ ret.length ] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret[ ret.length ] = value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn core_concat.apply( [], ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// Bind a function to a context, optionally partially applying any\n\t// arguments.\n\tproxy: function( fn, context ) {\n\t\tvar args, proxy, tmp;\n\n\t\tif ( typeof context === \"string\" ) {\n\t\t\ttmp = fn[ context ];\n\t\t\tcontext = fn;\n\t\t\tfn = tmp;\n\t\t}\n\n\t\t// Quick check to determine if target is callable, in the spec\n\t\t// this throws a TypeError, but we will just return undefined.\n\t\tif ( !jQuery.isFunction( fn ) ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\t// Simulated bind\n\t\targs = core_slice.call( arguments, 2 );\n\t\tproxy = function() {\n\t\t\treturn fn.apply( context || this, args.concat( core_slice.call( arguments ) ) );\n\t\t};\n\n\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\t\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\n\n\t\treturn proxy;\n\t},\n\n\t// Multifunctional method to get and set values of a collection\n\t// The value/s can optionally be executed if it's a function\n\taccess: function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\t\tvar i = 0,\n\t\t\tlength = elems.length,\n\t\t\tbulk = key == null;\n\n\t\t// Sets many values\n\t\tif ( jQuery.type( key ) === \"object\" ) {\n\t\t\tchainable = true;\n\t\t\tfor ( i in key ) {\n\t\t\t\tjQuery.access( elems, fn, i, key[i], true, emptyGet, raw );\n\t\t\t}\n\n\t\t// Sets one value\n\t\t} else if ( value !== undefined ) {\n\t\t\tchainable = true;\n\n\t\t\tif ( !jQuery.isFunction( value ) ) {\n\t\t\t\traw = true;\n\t\t\t}\n\n\t\t\tif ( bulk ) {\n\t\t\t\t// Bulk operations run against the entire set\n\t\t\t\tif ( raw ) {\n\t\t\t\t\tfn.call( elems, value );\n\t\t\t\t\tfn = null;\n\n\t\t\t\t// ...except when executing function values\n\t\t\t\t} else {\n\t\t\t\t\tbulk = fn;\n\t\t\t\t\tfn = function( elem, key, value ) {\n\t\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( fn ) {\n\t\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\t\tfn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn chainable ?\n\t\t\telems :\n\n\t\t\t// Gets\n\t\t\tbulk ?\n\t\t\t\tfn.call( elems ) :\n\t\t\t\tlength ? fn( elems[0], key ) : emptyGet;\n\t},\n\n\tnow: function() {\n\t\treturn ( new Date() ).getTime();\n\t}\n});\n\njQuery.ready.promise = function( obj ) {\n\tif ( !readyList ) {\n\n\t\treadyList = jQuery.Deferred();\n\n\t\t// Catch cases where $(document).ready() is called after the browser event has already occurred.\n\t\t// we once tried to use readyState \"interactive\" here, but it caused issues like the one\n\t\t// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15\n\t\tif ( document.readyState === \"complete\" ) {\n\t\t\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\t\t\tsetTimeout( jQuery.ready );\n\n\t\t// Standards-based browsers support DOMContentLoaded\n\t\t} else if ( document.addEventListener ) {\n\t\t\t// Use the handy event callback\n\t\t\tdocument.addEventListener( \"DOMContentLoaded\", completed, false );\n\n\t\t\t// A fallback to window.onload, that will always work\n\t\t\twindow.addEventListener( \"load\", completed, false );\n\n\t\t// If IE event model is used\n\t\t} else {\n\t\t\t// Ensure firing before onload, maybe late but safe also for iframes\n\t\t\tdocument.attachEvent( \"onreadystatechange\", completed );\n\n\t\t\t// A fallback to window.onload, that will always work\n\t\t\twindow.attachEvent( \"onload\", completed );\n\n\t\t\t// If IE and not a frame\n\t\t\t// continually check to see if the document is ready\n\t\t\tvar top = false;\n\n\t\t\ttry {\n\t\t\t\ttop = window.frameElement == null && document.documentElement;\n\t\t\t} catch(e) {}\n\n\t\t\tif ( top && top.doScroll ) {\n\t\t\t\t(function doScrollCheck() {\n\t\t\t\t\tif ( !jQuery.isReady ) {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Use the trick by Diego Perini\n\t\t\t\t\t\t\t// http://javascript.nwbox.com/IEContentLoaded/\n\t\t\t\t\t\t\ttop.doScroll(\"left\");\n\t\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\t\treturn setTimeout( doScrollCheck, 50 );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// detach all dom ready events\n\t\t\t\t\t\tdetach();\n\n\t\t\t\t\t\t// and execute any waiting functions\n\t\t\t\t\t\tjQuery.ready();\n\t\t\t\t\t}\n\t\t\t\t})();\n\t\t\t}\n\t\t}\n\t}\n\treturn readyList.promise( obj );\n};\n\n// Populate the class2type map\njQuery.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"), function(i, name) {\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n});\n\nfunction isArraylike( obj ) {\n\tvar length = obj.length,\n\t\ttype = jQuery.type( obj );\n\n\tif ( jQuery.isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\tif ( obj.nodeType === 1 && length ) {\n\t\treturn true;\n\t}\n\n\treturn type === \"array\" || type !== \"function\" &&\n\t\t( length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj );\n}\n\n// All jQuery objects should point back to these\nrootjQuery = jQuery(document);\n// String to Object options format cache\nvar optionsCache = {};\n\n// Convert String-formatted options into Object-formatted ones and store in cache\nfunction createOptions( options ) {\n\tvar object = optionsCache[ options ] = {};\n\tjQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t});\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\t( optionsCache[ options ] || createOptions( options ) ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Flag to know if list is currently firing\n\t\tfiring,\n\t\t// Last fire value (for non-forgettable lists)\n\t\tmemory,\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\t\t// End of the loop when firing\n\t\tfiringLength,\n\t\t// Index of currently firing callback (modified by remove if needed)\n\t\tfiringIndex,\n\t\t// First callback to fire (used internally by add and fireWith)\n\t\tfiringStart,\n\t\t// Actual callback list\n\t\tlist = [],\n\t\t// Stack of fire calls for repeatable lists\n\t\tstack = !options.once && [],\n\t\t// Fire callbacks\n\t\tfire = function( data ) {\n\t\t\tmemory = options.memory && data;\n\t\t\tfired = true;\n\t\t\tfiringIndex = firingStart || 0;\n\t\t\tfiringStart = 0;\n\t\t\tfiringLength = list.length;\n\t\t\tfiring = true;\n\t\t\tfor ( ; list && firingIndex < firingLength; firingIndex++ ) {\n\t\t\t\tif ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {\n\t\t\t\t\tmemory = false; // To prevent further calls using add\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfiring = false;\n\t\t\tif ( list ) {\n\t\t\t\tif ( stack ) {\n\t\t\t\t\tif ( stack.length ) {\n\t\t\t\t\t\tfire( stack.shift() );\n\t\t\t\t\t}\n\t\t\t\t} else if ( memory ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t} else {\n\t\t\t\t\tself.disable();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// Actual Callbacks object\n\t\tself = {\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\t// First, we save the current length\n\t\t\t\t\tvar start = list.length;\n\t\t\t\t\t(function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tvar type = jQuery.type( arg );\n\t\t\t\t\t\t\tif ( type === \"function\" ) {\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( arg && arg.length && type !== \"string\" ) {\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t})( arguments );\n\t\t\t\t\t// Do we need to add the callbacks to the\n\t\t\t\t\t// current firing batch?\n\t\t\t\t\tif ( firing ) {\n\t\t\t\t\t\tfiringLength = list.length;\n\t\t\t\t\t// With memory, if we're not firing then\n\t\t\t\t\t// we should call right away\n\t\t\t\t\t} else if ( memory ) {\n\t\t\t\t\t\tfiringStart = start;\n\t\t\t\t\t\tfire( memory );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\t\tvar index;\n\t\t\t\t\t\twhile( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\t\tlist.splice( index, 1 );\n\t\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\t\tif ( firing ) {\n\t\t\t\t\t\t\t\tif ( index <= firingLength ) {\n\t\t\t\t\t\t\t\t\tfiringLength--;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Check if a given callback is in the list.\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\thas: function( fn ) {\n\t\t\t\treturn fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );\n\t\t\t},\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tlist = [];\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Have the list do nothing anymore\n\t\t\tdisable: function() {\n\t\t\t\tlist = stack = memory = undefined;\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Is it disabled?\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\t\t\t// Lock the list in its current state\n\t\t\tlock: function() {\n\t\t\t\tstack = undefined;\n\t\t\t\tif ( !memory ) {\n\t\t\t\t\tself.disable();\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Is it locked?\n\t\t\tlocked: function() {\n\t\t\t\treturn !stack;\n\t\t\t},\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\targs = args || [];\n\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\tif ( list && ( !fired || stack ) ) {\n\t\t\t\t\tif ( firing ) {\n\t\t\t\t\t\tstack.push( args );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfire( args );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\njQuery.extend({\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\t\t\t\t// action, add listener, listener list, final state\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks(\"once memory\"), \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks(\"once memory\"), \"rejected\" ],\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks(\"memory\") ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\tthen: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\t\t\t\t\treturn jQuery.Deferred(function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\t\t\t\t\tvar action = tuple[ 0 ],\n\t\t\t\t\t\t\t\tfn = jQuery.isFunction( fns[ i ] ) && fns[ i ];\n\t\t\t\t\t\t\t// deferred[ done | fail | progress ] for forwarding actions to newDefer\n\t\t\t\t\t\t\tdeferred[ tuple[1] ](function() {\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\tif ( returned && jQuery.isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject )\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewDefer[ action + \"With\" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t}).promise();\n\t\t\t\t},\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Keep pipe for back-compat\n\t\tpromise.pipe = promise.then;\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 3 ];\n\n\t\t\t// promise[ done | fail | progress ] = list.add\n\t\t\tpromise[ tuple[1] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(function() {\n\t\t\t\t\t// state = [ resolved | rejected ]\n\t\t\t\t\tstate = stateString;\n\n\t\t\t\t// [ reject_list | resolve_list ].disable; progress_list.lock\n\t\t\t\t}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );\n\t\t\t}\n\n\t\t\t// deferred[ resolve | reject | notify ]\n\t\t\tdeferred[ tuple[0] ] = function() {\n\t\t\t\tdeferred[ tuple[0] + \"With\" ]( this === deferred ? promise : this, arguments );\n\t\t\t\treturn this;\n\t\t\t};\n\t\t\tdeferred[ tuple[0] + \"With\" ] = list.fireWith;\n\t\t});\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( subordinate /* , ..., subordinateN */ ) {\n\t\tvar i = 0,\n\t\t\tresolveValues = core_slice.call( arguments ),\n\t\t\tlength = resolveValues.length,\n\n\t\t\t// the count of uncompleted subordinates\n\t\t\tremaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,\n\n\t\t\t// the master Deferred. If resolveValues consist of only a single Deferred, just use that.\n\t\t\tdeferred = remaining === 1 ? subordinate : jQuery.Deferred(),\n\n\t\t\t// Update function for both resolve and progress values\n\t\t\tupdateFunc = function( i, contexts, values ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tcontexts[ i ] = this;\n\t\t\t\t\tvalues[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;\n\t\t\t\t\tif( values === progressValues ) {\n\t\t\t\t\t\tdeferred.notifyWith( contexts, values );\n\t\t\t\t\t} else if ( !( --remaining ) ) {\n\t\t\t\t\t\tdeferred.resolveWith( contexts, values );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t},\n\n\t\t\tprogressValues, progressContexts, resolveContexts;\n\n\t\t// add listeners to Deferred subordinates; treat others as resolved\n\t\tif ( length > 1 ) {\n\t\t\tprogressValues = new Array( length );\n\t\t\tprogressContexts = new Array( length );\n\t\t\tresolveContexts = new Array( length );\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {\n\t\t\t\t\tresolveValues[ i ].promise()\n\t\t\t\t\t\t.done( updateFunc( i, resolveContexts, resolveValues ) )\n\t\t\t\t\t\t.fail( deferred.reject )\n\t\t\t\t\t\t.progress( updateFunc( i, progressContexts, progressValues ) );\n\t\t\t\t} else {\n\t\t\t\t\t--remaining;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// if we're not waiting on anything, resolve the master\n\t\tif ( !remaining ) {\n\t\t\tdeferred.resolveWith( resolveContexts, resolveValues );\n\t\t}\n\n\t\treturn deferred.promise();\n\t}\n});\njQuery.support = (function() {\n\n\tvar support, all, a,\n\t\tinput, select, fragment,\n\t\topt, eventName, isSupported, i,\n\t\tdiv = document.createElement(\"div\");\n\n\t// Setup\n\tdiv.setAttribute( \"className\", \"t\" );\n\tdiv.innerHTML = \" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\";\n\n\t// Support tests won't run in some limited or non-browser environments\n\tall = div.getElementsByTagName(\"*\");\n\ta = div.getElementsByTagName(\"a\")[ 0 ];\n\tif ( !all || !a || !all.length ) {\n\t\treturn {};\n\t}\n\n\t// First batch of tests\n\tselect = document.createElement(\"select\");\n\topt = select.appendChild( document.createElement(\"option\") );\n\tinput = div.getElementsByTagName(\"input\")[ 0 ];\n\n\ta.style.cssText = \"top:1px;float:left;opacity:.5\";\n\tsupport = {\n\t\t// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)\n\t\tgetSetAttribute: div.className !== \"t\",\n\n\t\t// IE strips leading whitespace when .innerHTML is used\n\t\tleadingWhitespace: div.firstChild.nodeType === 3,\n\n\t\t// Make sure that tbody elements aren't automatically inserted\n\t\t// IE will insert them into empty tables\n\t\ttbody: !div.getElementsByTagName(\"tbody\").length,\n\n\t\t// Make sure that link elements get serialized correctly by innerHTML\n\t\t// This requires a wrapper element in IE\n\t\thtmlSerialize: !!div.getElementsByTagName(\"link\").length,\n\n\t\t// Get the style information from getAttribute\n\t\t// (IE uses .cssText instead)\n\t\tstyle: /top/.test( a.getAttribute(\"style\") ),\n\n\t\t// Make sure that URLs aren't manipulated\n\t\t// (IE normalizes it by default)\n\t\threfNormalized: a.getAttribute(\"href\") === \"/a\",\n\n\t\t// Make sure that element opacity exists\n\t\t// (IE uses filter instead)\n\t\t// Use a regex to work around a WebKit issue. See #5145\n\t\topacity: /^0.5/.test( a.style.opacity ),\n\n\t\t// Verify style float existence\n\t\t// (IE uses styleFloat instead of cssFloat)\n\t\tcssFloat: !!a.style.cssFloat,\n\n\t\t// Check the default checkbox/radio value (\"\" on WebKit; \"on\" elsewhere)\n\t\tcheckOn: !!input.value,\n\n\t\t// Make sure that a selected-by-default option has a working selected property.\n\t\t// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)\n\t\toptSelected: opt.selected,\n\n\t\t// Tests for enctype support on a form (#6743)\n\t\tenctype: !!document.createElement(\"form\").enctype,\n\n\t\t// Makes sure cloning an html5 element does not cause problems\n\t\t// Where outerHTML is undefined, this still works\n\t\thtml5Clone: document.createElement(\"nav\").cloneNode( true ).outerHTML !== \"<:nav></:nav>\",\n\n\t\t// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode\n\t\tboxModel: document.compatMode === \"CSS1Compat\",\n\n\t\t// Will be defined later\n\t\tdeleteExpando: true,\n\t\tnoCloneEvent: true,\n\t\tinlineBlockNeedsLayout: false,\n\t\tshrinkWrapBlocks: false,\n\t\treliableMarginRight: true,\n\t\tboxSizingReliable: true,\n\t\tpixelPosition: false\n\t};\n\n\t// Make sure checked status is properly cloned\n\tinput.checked = true;\n\tsupport.noCloneChecked = input.cloneNode( true ).checked;\n\n\t// Make sure that the options inside disabled selects aren't marked as disabled\n\t// (WebKit marks them as disabled)\n\tselect.disabled = true;\n\tsupport.optDisabled = !opt.disabled;\n\n\t// Support: IE<9\n\ttry {\n\t\tdelete div.test;\n\t} catch( e ) {\n\t\tsupport.deleteExpando = false;\n\t}\n\n\t// Check if we can trust getAttribute(\"value\")\n\tinput = document.createElement(\"input\");\n\tinput.setAttribute( \"value\", \"\" );\n\tsupport.input = input.getAttribute( \"value\" ) === \"\";\n\n\t// Check if an input maintains its value after becoming a radio\n\tinput.value = \"t\";\n\tinput.setAttribute( \"type\", \"radio\" );\n\tsupport.radioValue = input.value === \"t\";\n\n\t// #11217 - WebKit loses check when the name is after the checked attribute\n\tinput.setAttribute( \"checked\", \"t\" );\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tfragment = document.createDocumentFragment();\n\tfragment.appendChild( input );\n\n\t// Check if a disconnected checkbox will retain its checked\n\t// value of true after appended to the DOM (IE6/7)\n\tsupport.appendChecked = input.checked;\n\n\t// WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Support: IE<9\n\t// Opera does not clone events (and typeof div.attachEvent === undefined).\n\t// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()\n\tif ( div.attachEvent ) {\n\t\tdiv.attachEvent( \"onclick\", function() {\n\t\t\tsupport.noCloneEvent = false;\n\t\t});\n\n\t\tdiv.cloneNode( true ).click();\n\t}\n\n\t// Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event)\n\t// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php\n\tfor ( i in { submit: true, change: true, focusin: true }) {\n\t\tdiv.setAttribute( eventName = \"on\" + i, \"t\" );\n\n\t\tsupport[ i + \"Bubbles\" ] = eventName in window || div.attributes[ eventName ].expando === false;\n\t}\n\n\tdiv.style.backgroundClip = \"content-box\";\n\tdiv.cloneNode( true ).style.backgroundClip = \"\";\n\tsupport.clearCloneStyle = div.style.backgroundClip === \"content-box\";\n\n\t// Run tests that need a body at doc ready\n\tjQuery(function() {\n\t\tvar container, marginDiv, tds,\n\t\t\tdivReset = \"padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;\",\n\t\t\tbody = document.getElementsByTagName(\"body\")[0];\n\n\t\tif ( !body ) {\n\t\t\t// Return for frameset docs that don't have a body\n\t\t\treturn;\n\t\t}\n\n\t\tcontainer = document.createElement(\"div\");\n\t\tcontainer.style.cssText = \"border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px\";\n\n\t\tbody.appendChild( container ).appendChild( div );\n\n\t\t// Support: IE8\n\t\t// Check if table cells still have offsetWidth/Height when they are set\n\t\t// to display:none and there are still other visible table cells in a\n\t\t// table row; if so, offsetWidth/Height are not reliable for use when\n\t\t// determining if an element has been hidden directly using\n\t\t// display:none (it is still safe to use offsets if a parent element is\n\t\t// hidden; don safety goggles and see bug #4512 for more information).\n\t\tdiv.innerHTML = \"<table><tr><td></td><td>t</td></tr></table>\";\n\t\ttds = div.getElementsByTagName(\"td\");\n\t\ttds[ 0 ].style.cssText = \"padding:0;margin:0;border:0;display:none\";\n\t\tisSupported = ( tds[ 0 ].offsetHeight === 0 );\n\n\t\ttds[ 0 ].style.display = \"\";\n\t\ttds[ 1 ].style.display = \"none\";\n\n\t\t// Support: IE8\n\t\t// Check if empty table cells still have offsetWidth/Height\n\t\tsupport.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );\n\n\t\t// Check box-sizing and margin behavior\n\t\tdiv.innerHTML = \"\";\n\t\tdiv.style.cssText = \"box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;\";\n\t\tsupport.boxSizing = ( div.offsetWidth === 4 );\n\t\tsupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 );\n\n\t\t// Use window.getComputedStyle because jsdom on node.js will break without it.\n\t\tif ( window.getComputedStyle ) {\n\t\t\tsupport.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== \"1%\";\n\t\t\tsupport.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: \"4px\" } ).width === \"4px\";\n\n\t\t\t// Check if div with explicit width and no margin-right incorrectly\n\t\t\t// gets computed margin-right based on width of container. (#3333)\n\t\t\t// Fails in WebKit before Feb 2011 nightlies\n\t\t\t// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\n\t\t\tmarginDiv = div.appendChild( document.createElement(\"div\") );\n\t\t\tmarginDiv.style.cssText = div.style.cssText = divReset;\n\t\t\tmarginDiv.style.marginRight = marginDiv.style.width = \"0\";\n\t\t\tdiv.style.width = \"1px\";\n\n\t\t\tsupport.reliableMarginRight =\n\t\t\t\t!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );\n\t\t}\n\n\t\tif ( typeof div.style.zoom !== core_strundefined ) {\n\t\t\t// Support: IE<8\n\t\t\t// Check if natively block-level elements act like inline-block\n\t\t\t// elements when setting their display to 'inline' and giving\n\t\t\t// them layout\n\t\t\tdiv.innerHTML = \"\";\n\t\t\tdiv.style.cssText = divReset + \"width:1px;padding:1px;display:inline;zoom:1\";\n\t\t\tsupport.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );\n\n\t\t\t// Support: IE6\n\t\t\t// Check if elements with layout shrink-wrap their children\n\t\t\tdiv.style.display = \"block\";\n\t\t\tdiv.innerHTML = \"<div></div>\";\n\t\t\tdiv.firstChild.style.width = \"5px\";\n\t\t\tsupport.shrinkWrapBlocks = ( div.offsetWidth !== 3 );\n\n\t\t\tif ( support.inlineBlockNeedsLayout ) {\n\t\t\t\t// Prevent IE 6 from affecting layout for positioned elements #11048\n\t\t\t\t// Prevent IE from shrinking the body in IE 7 mode #12869\n\t\t\t\t// Support: IE<8\n\t\t\t\tbody.style.zoom = 1;\n\t\t\t}\n\t\t}\n\n\t\tbody.removeChild( container );\n\n\t\t// Null elements to avoid leaks in IE\n\t\tcontainer = div = tds = marginDiv = null;\n\t});\n\n\t// Null elements to avoid leaks in IE\n\tall = select = fragment = opt = a = input = null;\n\n\treturn support;\n})();\n\nvar rbrace = /(?:\\{[\\s\\S]*\\}|\\[[\\s\\S]*\\])$/,\n\trmultiDash = /([A-Z])/g;\n\nfunction internalData( elem, name, data, pvt /* Internal Use Only */ ){\n\tif ( !jQuery.acceptData( elem ) ) {\n\t\treturn;\n\t}\n\n\tvar thisCache, ret,\n\t\tinternalKey = jQuery.expando,\n\t\tgetByName = typeof name === \"string\",\n\n\t\t// We have to handle DOM nodes and JS objects differently because IE6-7\n\t\t// can't GC object references properly across the DOM-JS boundary\n\t\tisNode = elem.nodeType,\n\n\t\t// Only DOM nodes need the global jQuery cache; JS object data is\n\t\t// attached directly to the object so GC can occur automatically\n\t\tcache = isNode ? jQuery.cache : elem,\n\n\t\t// Only defining an ID for JS objects if its cache already exists allows\n\t\t// the code to shortcut on the same path as a DOM node with no cache\n\t\tid = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;\n\n\t// Avoid doing any more work than we need to when trying to get data on an\n\t// object that has no data at all\n\tif ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {\n\t\treturn;\n\t}\n\n\tif ( !id ) {\n\t\t// Only DOM nodes need a new unique ID for each element since their data\n\t\t// ends up in the global cache\n\t\tif ( isNode ) {\n\t\t\telem[ internalKey ] = id = core_deletedIds.pop() || jQuery.guid++;\n\t\t} else {\n\t\t\tid = internalKey;\n\t\t}\n\t}\n\n\tif ( !cache[ id ] ) {\n\t\tcache[ id ] = {};\n\n\t\t// Avoids exposing jQuery metadata on plain JS objects when the object\n\t\t// is serialized using JSON.stringify\n\t\tif ( !isNode ) {\n\t\t\tcache[ id ].toJSON = jQuery.noop;\n\t\t}\n\t}\n\n\t// An object can be passed to jQuery.data instead of a key/value pair; this gets\n\t// shallow copied over onto the existing cache\n\tif ( typeof name === \"object\" || typeof name === \"function\" ) {\n\t\tif ( pvt ) {\n\t\t\tcache[ id ] = jQuery.extend( cache[ id ], name );\n\t\t} else {\n\t\t\tcache[ id ].data = jQuery.extend( cache[ id ].data, name );\n\t\t}\n\t}\n\n\tthisCache = cache[ id ];\n\n\t// jQuery data() is stored in a separate object inside the object's internal data\n\t// cache in order to avoid key collisions between internal data and user-defined\n\t// data.\n\tif ( !pvt ) {\n\t\tif ( !thisCache.data ) {\n\t\t\tthisCache.data = {};\n\t\t}\n\n\t\tthisCache = thisCache.data;\n\t}\n\n\tif ( data !== undefined ) {\n\t\tthisCache[ jQuery.camelCase( name ) ] = data;\n\t}\n\n\t// Check for both converted-to-camel and non-converted data property names\n\t// If a data property was specified\n\tif ( getByName ) {\n\n\t\t// First Try to find as-is property data\n\t\tret = thisCache[ name ];\n\n\t\t// Test for null|undefined property data\n\t\tif ( ret == null ) {\n\n\t\t\t// Try to find the camelCased property\n\t\t\tret = thisCache[ jQuery.camelCase( name ) ];\n\t\t}\n\t} else {\n\t\tret = thisCache;\n\t}\n\n\treturn ret;\n}\n\nfunction internalRemoveData( elem, name, pvt ) {\n\tif ( !jQuery.acceptData( elem ) ) {\n\t\treturn;\n\t}\n\n\tvar i, l, thisCache,\n\t\tisNode = elem.nodeType,\n\n\t\t// See jQuery.data for more information\n\t\tcache = isNode ? jQuery.cache : elem,\n\t\tid = isNode ? elem[ jQuery.expando ] : jQuery.expando;\n\n\t// If there is already no cache entry for this object, there is no\n\t// purpose in continuing\n\tif ( !cache[ id ] ) {\n\t\treturn;\n\t}\n\n\tif ( name ) {\n\n\t\tthisCache = pvt ? cache[ id ] : cache[ id ].data;\n\n\t\tif ( thisCache ) {\n\n\t\t\t// Support array or space separated string names for data keys\n\t\t\tif ( !jQuery.isArray( name ) ) {\n\n\t\t\t\t// try the string as a key before any manipulation\n\t\t\t\tif ( name in thisCache ) {\n\t\t\t\t\tname = [ name ];\n\t\t\t\t} else {\n\n\t\t\t\t\t// split the camel cased version by spaces unless a key with the spaces exists\n\t\t\t\t\tname = jQuery.camelCase( name );\n\t\t\t\t\tif ( name in thisCache ) {\n\t\t\t\t\t\tname = [ name ];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tname = name.split(\" \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// If \"name\" is an array of keys...\n\t\t\t\t// When data is initially created, via (\"key\", \"val\") signature,\n\t\t\t\t// keys will be converted to camelCase.\n\t\t\t\t// Since there is no way to tell _how_ a key was added, remove\n\t\t\t\t// both plain key and camelCase key. #12786\n\t\t\t\t// This will only penalize the array argument path.\n\t\t\t\tname = name.concat( jQuery.map( name, jQuery.camelCase ) );\n\t\t\t}\n\n\t\t\tfor ( i = 0, l = name.length; i < l; i++ ) {\n\t\t\t\tdelete thisCache[ name[i] ];\n\t\t\t}\n\n\t\t\t// If there is no data left in the cache, we want to continue\n\t\t\t// and let the cache object itself get destroyed\n\t\t\tif ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\t// See jQuery.data for more information\n\tif ( !pvt ) {\n\t\tdelete cache[ id ].data;\n\n\t\t// Don't destroy the parent cache unless the internal data object\n\t\t// had been the only thing left in it\n\t\tif ( !isEmptyDataObject( cache[ id ] ) ) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// Destroy the cache\n\tif ( isNode ) {\n\t\tjQuery.cleanData( [ elem ], true );\n\n\t// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)\n\t} else if ( jQuery.support.deleteExpando || cache != cache.window ) {\n\t\tdelete cache[ id ];\n\n\t// When all else fails, null\n\t} else {\n\t\tcache[ id ] = null;\n\t}\n}\n\njQuery.extend({\n\tcache: {},\n\n\t// Unique for each copy of jQuery on the page\n\t// Non-digits removed to match rinlinejQuery\n\texpando: \"jQuery\" + ( core_version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// The following elements throw uncatchable exceptions if you\n\t// attempt to add expando properties to them.\n\tnoData: {\n\t\t\"embed\": true,\n\t\t// Ban all objects except for Flash (which handle expandos)\n\t\t\"object\": \"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\",\n\t\t\"applet\": true\n\t},\n\n\thasData: function( elem ) {\n\t\telem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];\n\t\treturn !!elem && !isEmptyDataObject( elem );\n\t},\n\n\tdata: function( elem, name, data ) {\n\t\treturn internalData( elem, name, data );\n\t},\n\n\tremoveData: function( elem, name ) {\n\t\treturn internalRemoveData( elem, name );\n\t},\n\n\t// For internal use only.\n\t_data: function( elem, name, data ) {\n\t\treturn internalData( elem, name, data, true );\n\t},\n\n\t_removeData: function( elem, name ) {\n\t\treturn internalRemoveData( elem, name, true );\n\t},\n\n\t// A method for determining if a DOM node can handle the data expando\n\tacceptData: function( elem ) {\n\t\t// Do not set data on non-element because it will not be cleared (#8335).\n\t\tif ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ];\n\n\t\t// nodes accept data unless otherwise specified; rejection can be conditional\n\t\treturn !noData || noData !== true && elem.getAttribute(\"classid\") === noData;\n\t}\n});\n\njQuery.fn.extend({\n\tdata: function( key, value ) {\n\t\tvar attrs, name,\n\t\t\telem = this[0],\n\t\t\ti = 0,\n\t\t\tdata = null;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = jQuery.data( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !jQuery._data( elem, \"parsedAttrs\" ) ) {\n\t\t\t\t\tattrs = elem.attributes;\n\t\t\t\t\tfor ( ; i < attrs.length; i++ ) {\n\t\t\t\t\t\tname = attrs[i].name;\n\n\t\t\t\t\t\tif ( !name.indexOf( \"data-\" ) ) {\n\t\t\t\t\t\t\tname = jQuery.camelCase( name.slice(5) );\n\n\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tjQuery._data( elem, \"parsedAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each(function() {\n\t\t\t\tjQuery.data( this, key );\n\t\t\t});\n\t\t}\n\n\t\treturn jQuery.access( this, function( value ) {\n\n\t\t\tif ( value === undefined ) {\n\t\t\t\t// Try to fetch any internally stored data first\n\t\t\t\treturn elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null;\n\t\t\t}\n\n\t\t\tthis.each(function() {\n\t\t\t\tjQuery.data( this, key, value );\n\t\t\t});\n\t\t}, null, value, arguments.length > 1, null, true );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.removeData( this, key );\n\t\t});\n\t}\n});\n\nfunction dataAttr( elem, key, data ) {\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\n\t\tvar name = \"data-\" + key.replace( rmultiDash, \"-$1\" ).toLowerCase();\n\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = data === \"true\" ? true :\n\t\t\t\t\tdata === \"false\" ? false :\n\t\t\t\t\tdata === \"null\" ? null :\n\t\t\t\t\t// Only convert to a number if it doesn't change the string\n\t\t\t\t\t+data + \"\" === data ? +data :\n\t\t\t\t\trbrace.test( data ) ? jQuery.parseJSON( data ) :\n\t\t\t\t\t\tdata;\n\t\t\t} catch( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tjQuery.data( elem, key, data );\n\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\n\treturn data;\n}\n\n// checks a cache object for emptiness\nfunction isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\njQuery.extend({\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = jQuery._data( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || jQuery.isArray(data) ) {\n\t\t\t\t\tqueue = jQuery._data( elem, type, jQuery.makeArray(data) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\thooks.cur = fn;\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// not intended for public consumption - generates a queueHooks object, or returns the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn jQuery._data( elem, key ) || jQuery._data( elem, key, {\n\t\t\tempty: jQuery.Callbacks(\"once memory\").add(function() {\n\t\t\t\tjQuery._removeData( elem, type + \"queue\" );\n\t\t\t\tjQuery._removeData( elem, key );\n\t\t\t})\n\t\t});\n\t}\n});\n\njQuery.fn.extend({\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[0], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each(function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[0] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t});\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t});\n\t},\n\t// Based off of the plugin by Clint Helfers, with permission.\n\t// http://blindsignals.com/index.php/2009/07/jquery-delay/\n\tdelay: function( time, type ) {\n\t\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\n\t\ttype = type || \"fx\";\n\n\t\treturn this.queue( type, function( next, hooks ) {\n\t\t\tvar timeout = setTimeout( next, time );\n\t\t\thooks.stop = function() {\n\t\t\t\tclearTimeout( timeout );\n\t\t\t};\n\t\t});\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile( i-- ) {\n\t\t\ttmp = jQuery._data( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n});\nvar nodeHook, boolHook,\n\trclass = /[\\t\\r\\n]/g,\n\trreturn = /\\r/g,\n\trfocusable = /^(?:input|select|textarea|button|object)$/i,\n\trclickable = /^(?:a|area)$/i,\n\trboolean = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,\n\truseDefault = /^(?:checked|selected)$/i,\n\tgetSetAttribute = jQuery.support.getSetAttribute,\n\tgetSetInput = jQuery.support.input;\n\njQuery.fn.extend({\n\tattr: function( name, value ) {\n\t\treturn jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );\n\t},\n\n\tremoveAttr: function( name ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.removeAttr( this, name );\n\t\t});\n\t},\n\n\tprop: function( name, value ) {\n\t\treturn jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );\n\t},\n\n\tremoveProp: function( name ) {\n\t\tname = jQuery.propFix[ name ] || name;\n\t\treturn this.each(function() {\n\t\t\t// try/catch handles cases where IE balks (such as removing a property on window)\n\t\t\ttry {\n\t\t\t\tthis[ name ] = undefined;\n\t\t\t\tdelete this[ name ];\n\t\t\t} catch( e ) {}\n\t\t});\n\t},\n\n\taddClass: function( value ) {\n\t\tvar classes, elem, cur, clazz, j,\n\t\t\ti = 0,\n\t\t\tlen = this.length,\n\t\t\tproceed = typeof value === \"string\" && value;\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each(function( j ) {\n\t\t\t\tjQuery( this ).addClass( value.call( this, j, this.className ) );\n\t\t\t});\n\t\t}\n\n\t\tif ( proceed ) {\n\t\t\t// The disjunction here is for better compressibility (see removeClass)\n\t\t\tclasses = ( value || \"\" ).match( core_rnotwhite ) || [];\n\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\telem = this[ i ];\n\t\t\t\tcur = elem.nodeType === 1 && ( elem.className ?\n\t\t\t\t\t( \" \" + elem.className + \" \" ).replace( rclass, \" \" ) :\n\t\t\t\t\t\" \"\n\t\t\t\t);\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( (clazz = classes[j++]) ) {\n\t\t\t\t\t\tif ( cur.indexOf( \" \" + clazz + \" \" ) < 0 ) {\n\t\t\t\t\t\t\tcur += clazz + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telem.className = jQuery.trim( cur );\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tremoveClass: function( value ) {\n\t\tvar classes, elem, cur, clazz, j,\n\t\t\ti = 0,\n\t\t\tlen = this.length,\n\t\t\tproceed = arguments.length === 0 || typeof value === \"string\" && value;\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each(function( j ) {\n\t\t\t\tjQuery( this ).removeClass( value.call( this, j, this.className ) );\n\t\t\t});\n\t\t}\n\t\tif ( proceed ) {\n\t\t\tclasses = ( value || \"\" ).match( core_rnotwhite ) || [];\n\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\telem = this[ i ];\n\t\t\t\t// This expression is here for better compressibility (see addClass)\n\t\t\t\tcur = elem.nodeType === 1 && ( elem.className ?\n\t\t\t\t\t( \" \" + elem.className + \" \" ).replace( rclass, \" \" ) :\n\t\t\t\t\t\"\"\n\t\t\t\t);\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( (clazz = classes[j++]) ) {\n\t\t\t\t\t\t// Remove *all* instances\n\t\t\t\t\t\twhile ( cur.indexOf( \" \" + clazz + \" \" ) >= 0 ) {\n\t\t\t\t\t\t\tcur = cur.replace( \" \" + clazz + \" \", \" \" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telem.className = value ? jQuery.trim( cur ) : \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\ttoggleClass: function( value, stateVal ) {\n\t\tvar type = typeof value,\n\t\t\tisBool = typeof stateVal === \"boolean\";\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each(function( i ) {\n\t\t\t\tjQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );\n\t\t\t});\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tif ( type === \"string\" ) {\n\t\t\t\t// toggle individual class names\n\t\t\t\tvar className,\n\t\t\t\t\ti = 0,\n\t\t\t\t\tself = jQuery( this ),\n\t\t\t\t\tstate = stateVal,\n\t\t\t\t\tclassNames = value.match( core_rnotwhite ) || [];\n\n\t\t\t\twhile ( (className = classNames[ i++ ]) ) {\n\t\t\t\t\t// check each className given, space separated list\n\t\t\t\t\tstate = isBool ? state : !self.hasClass( className );\n\t\t\t\t\tself[ state ? \"addClass\" : \"removeClass\" ]( className );\n\t\t\t\t}\n\n\t\t\t// Toggle whole class name\n\t\t\t} else if ( type === core_strundefined || type === \"boolean\" ) {\n\t\t\t\tif ( this.className ) {\n\t\t\t\t\t// store className if set\n\t\t\t\t\tjQuery._data( this, \"__className__\", this.className );\n\t\t\t\t}\n\n\t\t\t\t// If the element has a class name or if we're passed \"false\",\n\t\t\t\t// then remove the whole classname (if there was one, the above saved it).\n\t\t\t\t// Otherwise bring back whatever was previously saved (if anything),\n\t\t\t\t// falling back to the empty string if nothing was stored.\n\t\t\t\tthis.className = this.className || value === false ? \"\" : jQuery._data( this, \"__className__\" ) || \"\";\n\t\t\t}\n\t\t});\n\t},\n\n\thasClass: function( selector ) {\n\t\tvar className = \" \" + selector + \" \",\n\t\t\ti = 0,\n\t\t\tl = this.length;\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tif ( this[i].nodeType === 1 && (\" \" + this[i].className + \" \").replace(rclass, \" \").indexOf( className ) >= 0 ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t},\n\n\tval: function( value ) {\n\t\tvar ret, hooks, isFunction,\n\t\t\telem = this[0];\n\n\t\tif ( !arguments.length ) {\n\t\t\tif ( elem ) {\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];\n\n\t\t\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, \"value\" )) !== undefined ) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\tret = elem.value;\n\n\t\t\t\treturn typeof ret === \"string\" ?\n\t\t\t\t\t// handle most common string cases\n\t\t\t\t\tret.replace(rreturn, \"\") :\n\t\t\t\t\t// handle cases where value is null/undef or number\n\t\t\t\t\tret == null ? \"\" : ret;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tisFunction = jQuery.isFunction( value );\n\n\t\treturn this.each(function( i ) {\n\t\t\tvar val,\n\t\t\t\tself = jQuery(this);\n\n\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( isFunction ) {\n\t\t\t\tval = value.call( this, i, self.val() );\n\t\t\t} else {\n\t\t\t\tval = value;\n\t\t\t}\n\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\tif ( val == null ) {\n\t\t\t\tval = \"\";\n\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\tval += \"\";\n\t\t\t} else if ( jQuery.isArray( val ) ) {\n\t\t\t\tval = jQuery.map(val, function ( value ) {\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t});\n\t\t\t}\n\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\n\n\t\t\t// If set returns undefined, fall back to normal setting\n\t\t\tif ( !hooks || !(\"set\" in hooks) || hooks.set( this, val, \"value\" ) === undefined ) {\n\t\t\t\tthis.value = val;\n\t\t\t}\n\t\t});\n\t}\n});\n\njQuery.extend({\n\tvalHooks: {\n\t\toption: {\n\t\t\tget: function( elem ) {\n\t\t\t\t// attributes.value is undefined in Blackberry 4.7 but\n\t\t\t\t// uses .value. See #6932\n\t\t\t\tvar val = elem.attributes.value;\n\t\t\t\treturn !val || val.specified ? elem.value : elem.text;\n\t\t\t}\n\t\t},\n\t\tselect: {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar value, option,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tindex = elem.selectedIndex,\n\t\t\t\t\tone = elem.type === \"select-one\" || index < 0,\n\t\t\t\t\tvalues = one ? null : [],\n\t\t\t\t\tmax = one ? index + 1 : options.length,\n\t\t\t\t\ti = index < 0 ?\n\t\t\t\t\t\tmax :\n\t\t\t\t\t\tone ? index : 0;\n\n\t\t\t\t// Loop through all the selected options\n\t\t\t\tfor ( ; i < max; i++ ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t// oldIE doesn't update selected after form reset (#2551)\n\t\t\t\t\tif ( ( option.selected || i === index ) &&\n\t\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\t\t\t( jQuery.support.optDisabled ? !option.disabled : option.getAttribute(\"disabled\") === null ) &&\n\t\t\t\t\t\t\t( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, \"optgroup\" ) ) ) {\n\n\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\tvalue = jQuery( option ).val();\n\n\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn values;\n\t\t\t},\n\n\t\t\tset: function( elem, value ) {\n\t\t\t\tvar values = jQuery.makeArray( value );\n\n\t\t\t\tjQuery(elem).find(\"option\").each(function() {\n\t\t\t\t\tthis.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;\n\t\t\t\t});\n\n\t\t\t\tif ( !values.length ) {\n\t\t\t\t\telem.selectedIndex = -1;\n\t\t\t\t}\n\t\t\t\treturn values;\n\t\t\t}\n\t\t}\n\t},\n\n\tattr: function( elem, name, value ) {\n\t\tvar hooks, notxml, ret,\n\t\t\tnType = elem.nodeType;\n\n\t\t// don't get/set attributes on text, comment and attribute nodes\n\t\tif ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Fallback to prop when attributes are not supported\n\t\tif ( typeof elem.getAttribute === core_strundefined ) {\n\t\t\treturn jQuery.prop( elem, name, value );\n\t\t}\n\n\t\tnotxml = nType !== 1 || !jQuery.isXMLDoc( elem );\n\n\t\t// All attributes are lowercase\n\t\t// Grab necessary hook if one is defined\n\t\tif ( notxml ) {\n\t\t\tname = name.toLowerCase();\n\t\t\thooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\n\t\t\tif ( value === null ) {\n\t\t\t\tjQuery.removeAttr( elem, name );\n\n\t\t\t} else if ( hooks && notxml && \"set\" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {\n\t\t\t\treturn ret;\n\n\t\t\t} else {\n\t\t\t\telem.setAttribute( name, value + \"\" );\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t} else if ( hooks && notxml && \"get\" in hooks && (ret = hooks.get( elem, name )) !== null ) {\n\t\t\treturn ret;\n\n\t\t} else {\n\n\t\t\t// In IE9+, Flash objects don't have .getAttribute (#12945)\n\t\t\t// Support: IE9+\n\t\t\tif ( typeof elem.getAttribute !== core_strundefined ) {\n\t\t\t\tret = elem.getAttribute( name );\n\t\t\t}\n\n\t\t\t// Non-existent attributes return null, we normalize to undefined\n\t\t\treturn ret == null ?\n\t\t\t\tundefined :\n\t\t\t\tret;\n\t\t}\n\t},\n\n\tremoveAttr: function( elem, value ) {\n\t\tvar name, propName,\n\t\t\ti = 0,\n\t\t\tattrNames = value && value.match( core_rnotwhite );\n\n\t\tif ( attrNames && elem.nodeType === 1 ) {\n\t\t\twhile ( (name = attrNames[i++]) ) {\n\t\t\t\tpropName = jQuery.propFix[ name ] || name;\n\n\t\t\t\t// Boolean attributes get special treatment (#10870)\n\t\t\t\tif ( rboolean.test( name ) ) {\n\t\t\t\t\t// Set corresponding property to false for boolean attributes\n\t\t\t\t\t// Also clear defaultChecked/defaultSelected (if appropriate) for IE<8\n\t\t\t\t\tif ( !getSetAttribute && ruseDefault.test( name ) ) {\n\t\t\t\t\t\telem[ jQuery.camelCase( \"default-\" + name ) ] =\n\t\t\t\t\t\t\telem[ propName ] = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\telem[ propName ] = false;\n\t\t\t\t\t}\n\n\t\t\t\t// See #9699 for explanation of this approach (setting first, then removal)\n\t\t\t\t} else {\n\t\t\t\t\tjQuery.attr( elem, name, \"\" );\n\t\t\t\t}\n\n\t\t\t\telem.removeAttribute( getSetAttribute ? name : propName );\n\t\t\t}\n\t\t}\n\t},\n\n\tattrHooks: {\n\t\ttype: {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( !jQuery.support.radioValue && value === \"radio\" && jQuery.nodeName(elem, \"input\") ) {\n\t\t\t\t\t// Setting the type on a radio button after the value resets the value in IE6-9\n\t\t\t\t\t// Reset value to default in case type is set after value during creation\n\t\t\t\t\tvar val = elem.value;\n\t\t\t\t\telem.setAttribute( \"type\", value );\n\t\t\t\t\tif ( val ) {\n\t\t\t\t\t\telem.value = val;\n\t\t\t\t\t}\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tpropFix: {\n\t\ttabindex: \"tabIndex\",\n\t\treadonly: \"readOnly\",\n\t\t\"for\": \"htmlFor\",\n\t\t\"class\": \"className\",\n\t\tmaxlength: \"maxLength\",\n\t\tcellspacing: \"cellSpacing\",\n\t\tcellpadding: \"cellPadding\",\n\t\trowspan: \"rowSpan\",\n\t\tcolspan: \"colSpan\",\n\t\tusemap: \"useMap\",\n\t\tframeborder: \"frameBorder\",\n\t\tcontenteditable: \"contentEditable\"\n\t},\n\n\tprop: function( elem, name, value ) {\n\t\tvar ret, hooks, notxml,\n\t\t\tnType = elem.nodeType;\n\n\t\t// don't get/set properties on text, comment and attribute nodes\n\t\tif ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tnotxml = nType !== 1 || !jQuery.isXMLDoc( elem );\n\n\t\tif ( notxml ) {\n\t\t\t// Fix name and attach hooks\n\t\t\tname = jQuery.propFix[ name ] || name;\n\t\t\thooks = jQuery.propHooks[ name ];\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( hooks && \"set\" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {\n\t\t\t\treturn ret;\n\n\t\t\t} else {\n\t\t\t\treturn ( elem[ name ] = value );\n\t\t\t}\n\n\t\t} else {\n\t\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, name )) !== null ) {\n\t\t\t\treturn ret;\n\n\t\t\t} else {\n\t\t\t\treturn elem[ name ];\n\t\t\t}\n\t\t}\n\t},\n\n\tpropHooks: {\n\t\ttabIndex: {\n\t\t\tget: function( elem ) {\n\t\t\t\t// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set\n\t\t\t\t// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\t\t\t\tvar attributeNode = elem.getAttributeNode(\"tabindex\");\n\n\t\t\t\treturn attributeNode && attributeNode.specified ?\n\t\t\t\t\tparseInt( attributeNode.value, 10 ) :\n\t\t\t\t\trfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?\n\t\t\t\t\t\t0 :\n\t\t\t\t\t\tundefined;\n\t\t\t}\n\t\t}\n\t}\n});\n\n// Hook for boolean attributes\nboolHook = {\n\tget: function( elem, name ) {\n\t\tvar\n\t\t\t// Use .prop to determine if this attribute is understood as boolean\n\t\t\tprop = jQuery.prop( elem, name ),\n\n\t\t\t// Fetch it accordingly\n\t\t\tattr = typeof prop === \"boolean\" && elem.getAttribute( name ),\n\t\t\tdetail = typeof prop === \"boolean\" ?\n\n\t\t\t\tgetSetInput && getSetAttribute ?\n\t\t\t\t\tattr != null :\n\t\t\t\t\t// oldIE fabricates an empty string for missing boolean attributes\n\t\t\t\t\t// and conflates checked/selected into attroperties\n\t\t\t\t\truseDefault.test( name ) ?\n\t\t\t\t\t\telem[ jQuery.camelCase( \"default-\" + name ) ] :\n\t\t\t\t\t\t!!attr :\n\n\t\t\t\t// fetch an attribute node for properties not recognized as boolean\n\t\t\t\telem.getAttributeNode( name );\n\n\t\treturn detail && detail.value !== false ?\n\t\t\tname.toLowerCase() :\n\t\t\tundefined;\n\t},\n\tset: function( elem, value, name ) {\n\t\tif ( value === false ) {\n\t\t\t// Remove boolean attributes when set to false\n\t\t\tjQuery.removeAttr( elem, name );\n\t\t} else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {\n\t\t\t// IE<8 needs the *property* name\n\t\t\telem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );\n\n\t\t// Use defaultChecked and defaultSelected for oldIE\n\t\t} else {\n\t\t\telem[ jQuery.camelCase( \"default-\" + name ) ] = elem[ name ] = true;\n\t\t}\n\n\t\treturn name;\n\t}\n};\n\n// fix oldIE value attroperty\nif ( !getSetInput || !getSetAttribute ) {\n\tjQuery.attrHooks.value = {\n\t\tget: function( elem, name ) {\n\t\t\tvar ret = elem.getAttributeNode( name );\n\t\t\treturn jQuery.nodeName( elem, \"input\" ) ?\n\n\t\t\t\t// Ignore the value *property* by using defaultValue\n\t\t\t\telem.defaultValue :\n\n\t\t\t\tret && ret.specified ? ret.value : undefined;\n\t\t},\n\t\tset: function( elem, value, name ) {\n\t\t\tif ( jQuery.nodeName( elem, \"input\" ) ) {\n\t\t\t\t// Does not return so that setAttribute is also used\n\t\t\t\telem.defaultValue = value;\n\t\t\t} else {\n\t\t\t\t// Use nodeHook if defined (#1954); otherwise setAttribute is fine\n\t\t\t\treturn nodeHook && nodeHook.set( elem, value, name );\n\t\t\t}\n\t\t}\n\t};\n}\n\n// IE6/7 do not support getting/setting some attributes with get/setAttribute\nif ( !getSetAttribute ) {\n\n\t// Use this for any attribute in IE6/7\n\t// This fixes almost every IE6/7 issue\n\tnodeHook = jQuery.valHooks.button = {\n\t\tget: function( elem, name ) {\n\t\t\tvar ret = elem.getAttributeNode( name );\n\t\t\treturn ret && ( name === \"id\" || name === \"name\" || name === \"coords\" ? ret.value !== \"\" : ret.specified ) ?\n\t\t\t\tret.value :\n\t\t\t\tundefined;\n\t\t},\n\t\tset: function( elem, value, name ) {\n\t\t\t// Set the existing or create a new attribute node\n\t\t\tvar ret = elem.getAttributeNode( name );\n\t\t\tif ( !ret ) {\n\t\t\t\telem.setAttributeNode(\n\t\t\t\t\t(ret = elem.ownerDocument.createAttribute( name ))\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tret.value = value += \"\";\n\n\t\t\t// Break association with cloned elements by also using setAttribute (#9646)\n\t\t\treturn name === \"value\" || value === elem.getAttribute( name ) ?\n\t\t\t\tvalue :\n\t\t\t\tundefined;\n\t\t}\n\t};\n\n\t// Set contenteditable to false on removals(#10429)\n\t// Setting to empty string throws an error as an invalid value\n\tjQuery.attrHooks.contenteditable = {\n\t\tget: nodeHook.get,\n\t\tset: function( elem, value, name ) {\n\t\t\tnodeHook.set( elem, value === \"\" ? false : value, name );\n\t\t}\n\t};\n\n\t// Set width and height to auto instead of 0 on empty string( Bug #8150 )\n\t// This is for removals\n\tjQuery.each([ \"width\", \"height\" ], function( i, name ) {\n\t\tjQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( value === \"\" ) {\n\t\t\t\t\telem.setAttribute( name, \"auto\" );\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n}\n\n\n// Some attributes require a special call on IE\n// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\nif ( !jQuery.support.hrefNormalized ) {\n\tjQuery.each([ \"href\", \"src\", \"width\", \"height\" ], function( i, name ) {\n\t\tjQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar ret = elem.getAttribute( name, 2 );\n\t\t\t\treturn ret == null ? undefined : ret;\n\t\t\t}\n\t\t});\n\t});\n\n\t// href/src property should get the full normalized URL (#10299/#12915)\n\tjQuery.each([ \"href\", \"src\" ], function( i, name ) {\n\t\tjQuery.propHooks[ name ] = {\n\t\t\tget: function( elem ) {\n\t\t\t\treturn elem.getAttribute( name, 4 );\n\t\t\t}\n\t\t};\n\t});\n}\n\nif ( !jQuery.support.style ) {\n\tjQuery.attrHooks.style = {\n\t\tget: function( elem ) {\n\t\t\t// Return undefined in the case of empty string\n\t\t\t// Note: IE uppercases css property names, but if we were to .toLowerCase()\n\t\t\t// .cssText, that would destroy case senstitivity in URL's, like in \"background\"\n\t\t\treturn elem.style.cssText || undefined;\n\t\t},\n\t\tset: function( elem, value ) {\n\t\t\treturn ( elem.style.cssText = value + \"\" );\n\t\t}\n\t};\n}\n\n// Safari mis-reports the default selected property of an option\n// Accessing the parent's selectedIndex property fixes it\nif ( !jQuery.support.optSelected ) {\n\tjQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {\n\t\tget: function( elem ) {\n\t\t\tvar parent = elem.parentNode;\n\n\t\t\tif ( parent ) {\n\t\t\t\tparent.selectedIndex;\n\n\t\t\t\t// Make sure that it also works with optgroups, see #5701\n\t\t\t\tif ( parent.parentNode ) {\n\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t});\n}\n\n// IE6/7 call enctype encoding\nif ( !jQuery.support.enctype ) {\n\tjQuery.propFix.enctype = \"encoding\";\n}\n\n// Radios and checkboxes getter/setter\nif ( !jQuery.support.checkOn ) {\n\tjQuery.each([ \"radio\", \"checkbox\" ], function() {\n\t\tjQuery.valHooks[ this ] = {\n\t\t\tget: function( elem ) {\n\t\t\t\t// Handle the case where in Webkit \"\" is returned instead of \"on\" if a value isn't specified\n\t\t\t\treturn elem.getAttribute(\"value\") === null ? \"on\" : elem.value;\n\t\t\t}\n\t\t};\n\t});\n}\njQuery.each([ \"radio\", \"checkbox\" ], function() {\n\tjQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {\n\t\tset: function( elem, value ) {\n\t\t\tif ( jQuery.isArray( value ) ) {\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );\n\t\t\t}\n\t\t}\n\t});\n});\nvar rformElems = /^(?:input|select|textarea)$/i,\n\trkeyEvent = /^key/,\n\trmouseEvent = /^(?:mouse|contextmenu)|click/,\n\trfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\n\trtypenamespace = /^([^.]*)(?:\\.(.+)|)$/;\n\nfunction returnTrue() {\n\treturn true;\n}\n\nfunction returnFalse() {\n\treturn false;\n}\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tglobal: {},\n\n\tadd: function( elem, types, handler, data, selector ) {\n\t\tvar tmp, events, t, handleObjIn,\n\t\t\tspecial, eventHandle, handleObj,\n\t\t\thandlers, type, namespaces, origType,\n\t\t\telemData = jQuery._data( elem );\n\n\t\t// Don't attach events to noData or text/comment nodes (but allow plain objects)\n\t\tif ( !elemData ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tif ( !(events = elemData.events) ) {\n\t\t\tevents = elemData.events = {};\n\t\t}\n\t\tif ( !(eventHandle = elemData.handle) ) {\n\t\t\teventHandle = elemData.handle = function( e ) {\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ?\n\t\t\t\t\tjQuery.event.dispatch.apply( eventHandle.elem, arguments ) :\n\t\t\t\t\tundefined;\n\t\t\t};\n\t\t\t// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events\n\t\t\teventHandle.elem = elem;\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\t// jQuery(...).bind(\"mouseover mouseout\", fn);\n\t\ttypes = ( types || \"\" ).match( core_rnotwhite ) || [\"\"];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[t] ) || [];\n\t\t\ttype = origType = tmp[1];\n\t\t\tnamespaces = ( tmp[2] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend({\n\t\t\t\ttype: type,\n\t\t\t\torigType: origType,\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\tnamespace: namespaces.join(\".\")\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\tif ( !(handlers = events[ type ]) ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener/attachEvent if the special events handler returns false\n\t\t\t\tif ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\t\t\t\t\t// Bind the global event handler to the element\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle, false );\n\n\t\t\t\t\t} else if ( elem.attachEvent ) {\n\t\t\t\t\t\telem.attachEvent( \"on\" + type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t\t// Nullify elem to prevent memory leaks in IE\n\t\telem = null;\n\t},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\t\tvar j, handleObj, tmp,\n\t\t\torigCount, t, events,\n\t\t\tspecial, handlers, type,\n\t\t\tnamespaces, origType,\n\t\t\telemData = jQuery.hasData( elem ) && jQuery._data( elem );\n\n\t\tif ( !elemData || !(events = elemData.events) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = ( types || \"\" ).match( core_rnotwhite ) || [\"\"];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[t] ) || [];\n\t\t\ttype = origType = tmp[1];\n\t\t\tnamespaces = ( tmp[2] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\thandlers = events[ type ] || [];\n\t\t\ttmp = tmp[2] && new RegExp( \"(^|\\\\.)\" + namespaces.join(\"\\\\.(?:.*\\\\.|)\") + \"(\\\\.|$)\" );\n\n\t\t\t// Remove matching events\n\t\t\torigCount = j = handlers.length;\n\t\t\twhile ( j-- ) {\n\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t( !selector || selector === handleObj.selector || selector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\tif ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdelete elemData.handle;\n\n\t\t\t// removeData also checks for emptiness and clears the expando if empty\n\t\t\t// so use it instead of delete\n\t\t\tjQuery._removeData( elem, \"events\" );\n\t\t}\n\t},\n\n\ttrigger: function( event, data, elem, onlyHandlers ) {\n\t\tvar handle, ontype, cur,\n\t\t\tbubbleType, special, tmp, i,\n\t\t\teventPath = [ elem || document ],\n\t\t\ttype = core_hasOwn.call( event, \"type\" ) ? event.type : event,\n\t\t\tnamespaces = core_hasOwn.call( event, \"namespace\" ) ? event.namespace.split(\".\") : [];\n\n\t\tcur = tmp = elem = elem || document;\n\n\t\t// Don't do events on text and comment nodes\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( type.indexOf(\".\") >= 0 ) {\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\t\t\tnamespaces = type.split(\".\");\n\t\t\ttype = namespaces.shift();\n\t\t\tnamespaces.sort();\n\t\t}\n\t\tontype = type.indexOf(\":\") < 0 && \"on\" + type;\n\n\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\n\t\tevent = event[ jQuery.expando ] ?\n\t\t\tevent :\n\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\n\n\t\tevent.isTrigger = true;\n\t\tevent.namespace = namespaces.join(\".\");\n\t\tevent.namespace_re = event.namespace ?\n\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join(\"\\\\.(?:.*\\\\.|)\") + \"(\\\\.|$)\" ) :\n\t\t\tnull;\n\n\t\t// Clean up the event in case it is being reused\n\t\tevent.result = undefined;\n\t\tif ( !event.target ) {\n\t\t\tevent.target = elem;\n\t\t}\n\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\t\tdata = data == null ?\n\t\t\t[ event ] :\n\t\t\tjQuery.makeArray( data, [ event ] );\n\n\t\t// Allow special events to draw outside the lines\n\t\tspecial = jQuery.event.special[ type ] || {};\n\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\n\t\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\n\n\t\t\tbubbleType = special.delegateType || type;\n\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\n\t\t\t\tcur = cur.parentNode;\n\t\t\t}\n\t\t\tfor ( ; cur; cur = cur.parentNode ) {\n\t\t\t\teventPath.push( cur );\n\t\t\t\ttmp = cur;\n\t\t\t}\n\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\t\t\tif ( tmp === (elem.ownerDocument || document) ) {\n\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\n\t\t\t}\n\t\t}\n\n\t\t// Fire handlers on the event path\n\t\ti = 0;\n\t\twhile ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {\n\n\t\t\tevent.type = i > 1 ?\n\t\t\t\tbubbleType :\n\t\t\t\tspecial.bindType || type;\n\n\t\t\t// jQuery handler\n\t\t\thandle = ( jQuery._data( cur, \"events\" ) || {} )[ event.type ] && jQuery._data( cur, \"handle\" );\n\t\t\tif ( handle ) {\n\t\t\t\thandle.apply( cur, data );\n\t\t\t}\n\n\t\t\t// Native handler\n\t\t\thandle = ontype && cur[ ontype ];\n\t\t\tif ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t}\n\t\tevent.type = type;\n\n\t\t// If nobody prevented the default action, do it now\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\n\t\t\tif ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&\n\t\t\t\t!(type === \"click\" && jQuery.nodeName( elem, \"a\" )) && jQuery.acceptData( elem ) ) {\n\n\t\t\t\t// Call a native DOM method on the target with the same name name as the event.\n\t\t\t\t// Can't use an .isFunction() check here because IE6/7 fails that test.\n\t\t\t\t// Don't do default actions on window, that's where global variables be (#6170)\n\t\t\t\tif ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {\n\n\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\t\t\t\t\ttmp = elem[ ontype ];\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\t\t\t\t\tjQuery.event.triggered = type;\n\t\t\t\t\ttry {\n\t\t\t\t\t\telem[ type ]();\n\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t// IE<9 dies on focus/blur to hidden element (#1486,#12518)\n\t\t\t\t\t\t// only reproducible on winXP IE8 native, not IE9 in IE8 mode\n\t\t\t\t\t}\n\t\t\t\t\tjQuery.event.triggered = undefined;\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\tdispatch: function( event ) {\n\n\t\t// Make a writable jQuery.Event from the native event object\n\t\tevent = jQuery.event.fix( event );\n\n\t\tvar i, ret, handleObj, matched, j,\n\t\t\thandlerQueue = [],\n\t\t\targs = core_slice.call( arguments ),\n\t\t\thandlers = ( jQuery._data( this, \"events\" ) || {} )[ event.type ] || [],\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[0] = event;\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\ti = 0;\n\t\twhile ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tj = 0;\n\t\t\twhile ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t// Triggered event must either 1) have no namespace, or\n\t\t\t\t// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).\n\t\t\t\tif ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\tvar obj = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler );\n\t\t\t\t\tif(obj.apply){\n\t\t\t\t\t\tret = obj.apply( matched.elem, args );\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tif ( (event.result = ret) === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\thandlers: function( event, handlers ) {\n\t\tvar sel, handleObj, matches, i,\n\t\t\thandlerQueue = [],\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\tcur = event.target;\n\n\t\t// Find delegate handlers\n\t\t// Black-hole SVG <use> instance trees (#13180)\n\t\t// Avoid non-left-click bubbling in Firefox (#3861)\n\t\tif ( delegateCount && cur.nodeType && (!event.button || event.type !== \"click\") ) {\n\n\t\t\tfor ( ; cur != this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't check non-elements (#13208)\n\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\n\t\t\t\tif ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== \"click\") ) {\n\t\t\t\t\tmatches = [];\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (#13203)\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\tif ( matches[ sel ] === undefined ) {\n\t\t\t\t\t\t\tmatches[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) >= 0 :\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matches[ sel ] ) {\n\t\t\t\t\t\t\tmatches.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matches.length ) {\n\t\t\t\t\t\thandlerQueue.push({ elem: cur, handlers: matches });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tif ( delegateCount < handlers.length ) {\n\t\t\thandlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });\n\t\t}\n\n\t\treturn handlerQueue;\n\t},\n\n\tfix: function( event ) {\n\t\tif ( event[ jQuery.expando ] ) {\n\t\t\treturn event;\n\t\t}\n\n\t\t// Create a writable copy of the event object and normalize some properties\n\t\tvar i, prop, copy,\n\t\t\ttype = event.type,\n\t\t\toriginalEvent = event,\n\t\t\tfixHook = this.fixHooks[ type ];\n\n\t\tif ( !fixHook ) {\n\t\t\tthis.fixHooks[ type ] = fixHook =\n\t\t\t\trmouseEvent.test( type ) ? this.mouseHooks :\n\t\t\t\trkeyEvent.test( type ) ? this.keyHooks :\n\t\t\t\t{};\n\t\t}\n\t\tcopy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;\n\n\t\tevent = new jQuery.Event( originalEvent );\n\n\t\ti = copy.length;\n\t\twhile ( i-- ) {\n\t\t\tprop = copy[ i ];\n\t\t\tevent[ prop ] = originalEvent[ prop ];\n\t\t}\n\n\t\t// Support: IE<9\n\t\t// Fix target property (#1925)\n\t\tif ( !event.target ) {\n\t\t\tevent.target = originalEvent.srcElement || document;\n\t\t}\n\n\t\t// Support: Chrome 23+, Safari?\n\t\t// Target should not be a text node (#504, #13143)\n\t\tif ( event.target.nodeType === 3 ) {\n\t\t\tevent.target = event.target.parentNode;\n\t\t}\n\n\t\t// Support: IE<9\n\t\t// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)\n\t\tevent.metaKey = !!event.metaKey;\n\n\t\treturn fixHook.filter ? fixHook.filter( event, originalEvent ) : event;\n\t},\n\n\t// Includes some event props shared by KeyEvent and MouseEvent\n\tprops: \"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),\n\n\tfixHooks: {},\n\n\tkeyHooks: {\n\t\tprops: \"char charCode key keyCode\".split(\" \"),\n\t\tfilter: function( event, original ) {\n\n\t\t\t// Add which for key events\n\t\t\tif ( event.which == null ) {\n\t\t\t\tevent.which = original.charCode != null ? original.charCode : original.keyCode;\n\t\t\t}\n\n\t\t\treturn event;\n\t\t}\n\t},\n\n\tmouseHooks: {\n\t\tprops: \"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),\n\t\tfilter: function( event, original ) {\n\t\t\tvar body, eventDoc, doc,\n\t\t\t\tbutton = original.button,\n\t\t\t\tfromElement = original.fromElement;\n\n\t\t\t// Calculate pageX/Y if missing and clientX/Y available\n\t\t\tif ( event.pageX == null && original.clientX != null ) {\n\t\t\t\teventDoc = event.target.ownerDocument || document;\n\t\t\t\tdoc = eventDoc.documentElement;\n\t\t\t\tbody = eventDoc.body;\n\n\t\t\t\tevent.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );\n\t\t\t\tevent.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );\n\t\t\t}\n\n\t\t\t// Add relatedTarget, if necessary\n\t\t\tif ( !event.relatedTarget && fromElement ) {\n\t\t\t\tevent.relatedTarget = fromElement === event.target ? original.toElement : fromElement;\n\t\t\t}\n\n\t\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\t\t// Note: button is not normalized, so don't use it\n\t\t\tif ( !event.which && button !== undefined ) {\n\t\t\t\tevent.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );\n\t\t\t}\n\n\t\t\treturn event;\n\t\t}\n\t},\n\n\tspecial: {\n\t\tload: {\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\t\tclick: {\n\t\t\t// For checkbox, fire native event so checked state will be right\n\t\t\ttrigger: function() {\n\t\t\t\tif ( jQuery.nodeName( this, \"input\" ) && this.type === \"checkbox\" && this.click ) {\n\t\t\t\t\tthis.click();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tfocus: {\n\t\t\t// Fire native event if possible so blur/focus sequence is correct\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this !== document.activeElement && this.focus ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t// Support: IE<9\n\t\t\t\t\t\t// If we error on focus to hidden element (#1486, #12518),\n\t\t\t\t\t\t// let .trigger() run the handlers\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tdelegateType: \"focusin\"\n\t\t},\n\t\tblur: {\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this === document.activeElement && this.blur ) {\n\t\t\t\t\tthis.blur();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdelegateType: \"focusout\"\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t// Even when returnValue equals to undefined Firefox will still show alert\n\t\t\t\tif ( event.result !== undefined ) {\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tsimulate: function( type, elem, event, bubble ) {\n\t\t// Piggyback on a donor event to simulate a different one.\n\t\t// Fake originalEvent to avoid donor's stopPropagation, but if the\n\t\t// simulated event prevents default then we do the same on the donor.\n\t\tvar e = jQuery.extend(\n\t\t\tnew jQuery.Event(),\n\t\t\tevent,\n\t\t\t{ type: type,\n\t\t\t\tisSimulated: true,\n\t\t\t\toriginalEvent: {}\n\t\t\t}\n\t\t);\n\t\tif ( bubble ) {\n\t\t\tjQuery.event.trigger( e, null, elem );\n\t\t} else {\n\t\t\tjQuery.event.dispatch.call( elem, e );\n\t\t}\n\t\tif ( e.isDefaultPrevented() ) {\n\t\t\tevent.preventDefault();\n\t\t}\n\t}\n};\n\njQuery.removeEvent = document.removeEventListener ?\n\tfunction( elem, type, handle ) {\n\t\tif ( elem.removeEventListener ) {\n\t\t\telem.removeEventListener( type, handle, false );\n\t\t}\n\t} :\n\tfunction( elem, type, handle ) {\n\t\tvar name = \"on\" + type;\n\n\t\tif ( elem.detachEvent ) {\n\n\t\t\t// #8545, #7054, preventing memory leaks for custom events in IE6-8\n\t\t\t// detachEvent needed property on element, by name of that event, to properly expose it to GC\n\t\t\tif ( typeof elem[ name ] === core_strundefined ) {\n\t\t\t\telem[ name ] = null;\n\t\t\t}\n\n\t\t\telem.detachEvent( name, handle );\n\t\t}\n\t};\n\njQuery.Event = function( src, props ) {\n\t// Allow instantiation without the 'new' keyword\n\tif ( !(this instanceof jQuery.Event) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||\n\t\t\tsrc.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || jQuery.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse,\n\n\tpreventDefault: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isDefaultPrevented = returnTrue;\n\t\tif ( !e ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If preventDefault exists, run it on the original event\n\t\tif ( e.preventDefault ) {\n\t\t\te.preventDefault();\n\n\t\t// Support: IE\n\t\t// Otherwise set the returnValue property of the original event to false\n\t\t} else {\n\t\t\te.returnValue = false;\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isPropagationStopped = returnTrue;\n\t\tif ( !e ) {\n\t\t\treturn;\n\t\t}\n\t\t// If stopPropagation exists, run it on the original event\n\t\tif ( e.stopPropagation ) {\n\t\t\te.stopPropagation();\n\t\t}\n\n\t\t// Support: IE\n\t\t// Set the cancelBubble property of the original event to true\n\t\te.cancelBubble = true;\n\t},\n\tstopImmediatePropagation: function() {\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\t\tthis.stopPropagation();\n\t}\n};\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\njQuery.each({\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t// For mousenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || (related !== target && !jQuery.contains( target, related )) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n});\n\n// IE submit delegation\nif ( !jQuery.support.submitBubbles ) {\n\n\tjQuery.event.special.submit = {\n\t\tsetup: function() {\n\t\t\t// Only need this for delegated form submit events\n\t\t\tif ( jQuery.nodeName( this, \"form\" ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Lazy-add a submit handler when a descendant form may potentially be submitted\n\t\t\tjQuery.event.add( this, \"click._submit keypress._submit\", function( e ) {\n\t\t\t\t// Node name check avoids a VML-related crash in IE (#9807)\n\t\t\t\tvar elem = e.target,\n\t\t\t\t\tform = jQuery.nodeName( elem, \"input\" ) || jQuery.nodeName( elem, \"button\" ) ? elem.form : undefined;\n\t\t\t\tif ( form && !jQuery._data( form, \"submitBubbles\" ) ) {\n\t\t\t\t\tjQuery.event.add( form, \"submit._submit\", function( event ) {\n\t\t\t\t\t\tevent._submit_bubble = true;\n\t\t\t\t\t});\n\t\t\t\t\tjQuery._data( form, \"submitBubbles\", true );\n\t\t\t\t}\n\t\t\t});\n\t\t\t// return undefined since we don't need an event listener\n\t\t},\n\n\t\tpostDispatch: function( event ) {\n\t\t\t// If form was submitted by the user, bubble the event up the tree\n\t\t\tif ( event._submit_bubble ) {\n\t\t\t\tdelete event._submit_bubble;\n\t\t\t\tif ( this.parentNode && !event.isTrigger ) {\n\t\t\t\t\tjQuery.event.simulate( \"submit\", this.parentNode, event, true );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tteardown: function() {\n\t\t\t// Only need this for delegated form submit events\n\t\t\tif ( jQuery.nodeName( this, \"form\" ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Remove delegated handlers; cleanData eventually reaps submit handlers attached above\n\t\t\tjQuery.event.remove( this, \"._submit\" );\n\t\t}\n\t};\n}\n\n// IE change delegation and checkbox/radio fix\nif ( !jQuery.support.changeBubbles ) {\n\n\tjQuery.event.special.change = {\n\n\t\tsetup: function() {\n\n\t\t\tif ( rformElems.test( this.nodeName ) ) {\n\t\t\t\t// IE doesn't fire change on a check/radio until blur; trigger it on click\n\t\t\t\t// after a propertychange. Eat the blur-change in special.change.handle.\n\t\t\t\t// This still fires onchange a second time for check/radio after blur.\n\t\t\t\tif ( this.type === \"checkbox\" || this.type === \"radio\" ) {\n\t\t\t\t\tjQuery.event.add( this, \"propertychange._change\", function( event ) {\n\t\t\t\t\t\tif ( event.originalEvent.propertyName === \"checked\" ) {\n\t\t\t\t\t\t\tthis._just_changed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tjQuery.event.add( this, \"click._change\", function( event ) {\n\t\t\t\t\t\tif ( this._just_changed && !event.isTrigger ) {\n\t\t\t\t\t\t\tthis._just_changed = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Allow triggered, simulated change events (#11500)\n\t\t\t\t\t\tjQuery.event.simulate( \"change\", this, event, true );\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// Delegated event; lazy-add a change handler on descendant inputs\n\t\t\tjQuery.event.add( this, \"beforeactivate._change\", function( e ) {\n\t\t\t\tvar elem = e.target;\n\n\t\t\t\tif ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, \"changeBubbles\" ) ) {\n\t\t\t\t\tjQuery.event.add( elem, \"change._change\", function( event ) {\n\t\t\t\t\t\tif ( this.parentNode && !event.isSimulated && !event.isTrigger ) {\n\t\t\t\t\t\t\tjQuery.event.simulate( \"change\", this.parentNode, event, true );\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tjQuery._data( elem, \"changeBubbles\", true );\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\thandle: function( event ) {\n\t\t\tvar elem = event.target;\n\n\t\t\t// Swallow native change events from checkbox/radio, we already triggered them above\n\t\t\tif ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== \"radio\" && elem.type !== \"checkbox\") ) {\n\t\t\t\treturn event.handleObj.handler.apply( this, arguments );\n\t\t\t}\n\t\t},\n\n\t\tteardown: function() {\n\t\t\tjQuery.event.remove( this, \"._change\" );\n\n\t\t\treturn !rformElems.test( this.nodeName );\n\t\t}\n\t};\n}\n\n// Create \"bubbling\" focus and blur events\nif ( !jQuery.support.focusinBubbles ) {\n\tjQuery.each({ focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\n\t\t// Attach a single capturing handler while someone wants focusin/focusout\n\t\tvar attaches = 0,\n\t\t\thandler = function( event ) {\n\t\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );\n\t\t\t};\n\n\t\tjQuery.event.special[ fix ] = {\n\t\t\tsetup: function() {\n\t\t\t\tif ( attaches++ === 0 ) {\n\t\t\t\t\tdocument.addEventListener( orig, handler, true );\n\t\t\t\t}\n\t\t\t},\n\t\t\tteardown: function() {\n\t\t\t\tif ( --attaches === 0 ) {\n\t\t\t\t\tdocument.removeEventListener( orig, handler, true );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t});\n}\n\njQuery.fn.extend({\n\n\ton: function( types, selector, data, fn, /*INTERNAL*/ one ) {\n\t\tvar type, origFn;\n\n\t\t// Types can be a map of types/handlers\n\t\tif ( typeof types === \"object\" ) {\n\t\t\t// ( types-Object, selector, data )\n\t\t\tif ( typeof selector !== \"string\" ) {\n\t\t\t\t// ( types-Object, data )\n\t\t\t\tdata = data || selector;\n\t\t\t\tselector = undefined;\n\t\t\t}\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.on( type, selector, data, types[ type ], one );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\n\t\tif ( data == null && fn == null ) {\n\t\t\t// ( types, fn )\n\t\t\tfn = selector;\n\t\t\tdata = selector = undefined;\n\t\t} else if ( fn == null ) {\n\t\t\tif ( typeof selector === \"string\" ) {\n\t\t\t\t// ( types, selector, fn )\n\t\t\t\tfn = data;\n\t\t\t\tdata = undefined;\n\t\t\t} else {\n\t\t\t\t// ( types, data, fn )\n\t\t\t\tfn = data;\n\t\t\t\tdata = selector;\n\t\t\t\tselector = undefined;\n\t\t\t}\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t} else if ( !fn ) {\n\t\t\treturn this;\n\t\t}\n\n\t\tif ( one === 1 ) {\n\t\t\torigFn = fn;\n\t\t\tfn = function( event ) {\n\t\t\t\t// Can use an empty set, since event contains the info\n\t\t\t\tjQuery().off( event );\n\t\t\t\treturn origFn.apply( this, arguments );\n\t\t\t};\n\t\t\t// Use same guid so caller can remove using origFn\n\t\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.add( this, types, fn, data, selector );\n\t\t});\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn this.on( types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\t\t\t// ( event ) dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ? handleObj.origType + \".\" + handleObj.namespace : handleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each(function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t});\n\t},\n\n\tbind: function( types, data, fn ) {\n\t\treturn this.on( types, null, data, fn );\n\t},\n\tunbind: function( types, fn ) {\n\t\treturn this.off( types, null, fn );\n\t},\n\n\tdelegate: function( selector, types, data, fn ) {\n\t\treturn this.on( types, selector, data, fn );\n\t},\n\tundelegate: function( selector, types, fn ) {\n\t\t// ( namespace ) or ( selector, types [, fn] )\n\t\treturn arguments.length === 1 ? this.off( selector, \"**\" ) : this.off( types, selector || \"**\", fn );\n\t},\n\n\ttrigger: function( type, data ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.event.trigger( type, data, this );\n\t\t});\n\t},\n\ttriggerHandler: function( type, data ) {\n\t\tvar elem = this[0];\n\t\tif ( elem ) {\n\t\t\treturn jQuery.event.trigger( type, data, elem, true );\n\t\t}\n\t}\n});\n/*!\n * Sizzle CSS Selector Engine\n * Copyright 2012 jQuery Foundation and other contributors\n * Released under the MIT license\n * http://sizzlejs.com/\n */\n(function( window, undefined ) {\n\nvar i,\n\tcachedruns,\n\tExpr,\n\tgetText,\n\tisXML,\n\tcompile,\n\thasDuplicate,\n\toutermostContext,\n\n\t// Local document vars\n\tsetDocument,\n\tdocument,\n\tdocElem,\n\tdocumentIsXML,\n\trbuggyQSA,\n\trbuggyMatches,\n\tmatches,\n\tcontains,\n\tsortOrder,\n\n\t// Instance-specific data\n\texpando = \"sizzle\" + -(new Date()),\n\tpreferredDoc = window.document,\n\tsupport = {},\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\n\t// General-purpose constants\n\tstrundefined = typeof undefined,\n\tMAX_NEGATIVE = 1 << 31,\n\n\t// Array methods\n\tarr = [],\n\tpop = arr.pop,\n\tpush = arr.push,\n\tslice = arr.slice,\n\t// Use a stripped-down indexOf if we can't use a native one\n\tindexOf = arr.indexOf || function( elem ) {\n\t\tvar i = 0,\n\t\t\tlen = this.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( this[i] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t},\n\n\n\t// Regular expressions\n\n\t// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\t// http://www.w3.org/TR/css3-syntax/#characters\n\tcharacterEncoding = \"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",\n\n\t// Loosely modeled on CSS identifier characters\n\t// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors\n\t// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\n\tidentifier = characterEncoding.replace( \"w\", \"w#\" ),\n\n\t// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors\n\toperators = \"([*^$|!~]?=)\",\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + characterEncoding + \")\" + whitespace +\n\t\t\"*(?:\" + operators + whitespace + \"*(?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|(\" + identifier + \")|)|)\" + whitespace + \"*\\\\]\",\n\n\t// Prefer arguments quoted,\n\t// then not containing pseudos/brackets,\n\t// then attribute selectors/non-parenthetical expressions,\n\t// then anything else\n\t// These preferences are here to reduce the number of selectors\n\t// needing tokenize in the PSEUDO preFilter\n\tpseudos = \":(\" + characterEncoding + \")(?:\\\\(((['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes.replace( 3, 8 ) + \")*)|.*)\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([\\\\x20\\\\t\\\\r\\\\n\\\\f>+~])\" + whitespace + \"*\" ),\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + characterEncoding + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + characterEncoding + \")\" ),\n\t\t\"NAME\": new RegExp( \"^\\\\[name=['\\\"]?(\" + characterEncoding + \")['\\\"]?\\\\]\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + characterEncoding.replace( \"w\", \"w*\" ) + \")\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" + whitespace +\n\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" + whitespace +\n\t\t\t\"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace + \"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" +\n\t\t\twhitespace + \"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trsibling = /[\\x20\\t\\r\\n\\f]*[+~]/,\n\n\trnative = /^[^{]+\\{\\s*\\[native code/,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\trescape = /'|\\\\/g,\n\trattributeQuotes = /\\=[\\x20\\t\\r\\n\\f]*([^'\"\\]]*)[\\x20\\t\\r\\n\\f]*\\]/g,\n\n\t// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = /\\\\([\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|.)/g,\n\tfunescape = function( _, escaped ) {\n\t\tvar high = \"0x\" + escaped - 0x10000;\n\t\t// NaN means non-codepoint\n\t\treturn high !== high ?\n\t\t\tescaped :\n\t\t\t// BMP codepoint\n\t\t\thigh < 0 ?\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\t// Supplemental Plane codepoint (surrogate pair)\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t};\n\n// Use a stripped-down slice if we can't use a native one\ntry {\n\tslice.call( preferredDoc.documentElement.childNodes, 0 )[0].nodeType;\n} catch ( e ) {\n\tslice = function( i ) {\n\t\tvar elem,\n\t\t\tresults = [];\n\t\twhile ( (elem = this[i++]) ) {\n\t\t\tresults.push( elem );\n\t\t}\n\t\treturn results;\n\t};\n}\n\n/**\n * For feature detection\n * @param {Function} fn The function to test for native support\n */\nfunction isNative( fn ) {\n\treturn rnative.test( fn + \"\" );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {Function(string, Object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar cache,\n\t\tkeys = [];\n\n\treturn (cache = function( key, value ) {\n\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\tif ( keys.push( key += \" \" ) > Expr.cacheLength ) {\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn (cache[ key ] = value);\n\t});\n}\n\n/**\n * Mark a function for special use by Sizzle\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created div and expects a boolean result\n */\nfunction assert( fn ) {\n\tvar div = document.createElement(\"div\");\n\n\ttry {\n\t\treturn fn( div );\n\t} catch (e) {\n\t\treturn false;\n\t} finally {\n\t\t// release memory in IE\n\t\tdiv = null;\n\t}\n}\n\nfunction Sizzle( selector, context, results, seed ) {\n\tvar match, elem, m, nodeType,\n\t\t// QSA vars\n\t\ti, groups, old, nid, newContext, newSelector;\n\n\tif ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {\n\t\tsetDocument( context );\n\t}\n\n\tcontext = context || document;\n\tresults = results || [];\n\n\tif ( !selector || typeof selector !== \"string\" ) {\n\t\treturn results;\n\t}\n\n\tif ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {\n\t\treturn [];\n\t}\n\n\tif ( !documentIsXML && !seed ) {\n\n\t\t// Shortcuts\n\t\tif ( (match = rquickExpr.exec( selector )) ) {\n\t\t\t// Speed-up: Sizzle(\"#ID\")\n\t\t\tif ( (m = match[1]) ) {\n\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\telem = context.getElementById( m );\n\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\t\tif ( elem && elem.parentNode ) {\n\t\t\t\t\t\t// Handle the case where IE, Opera, and Webkit return items\n\t\t\t\t\t\t// by name instead of ID\n\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Context is not a document\n\t\t\t\t\tif ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&\n\t\t\t\t\t\tcontains( context, elem ) && elem.id === m ) {\n\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Speed-up: Sizzle(\"TAG\")\n\t\t\t} else if ( match[2] ) {\n\t\t\t\tpush.apply( results, slice.call(context.getElementsByTagName( selector ), 0) );\n\t\t\t\treturn results;\n\n\t\t\t// Speed-up: Sizzle(\".CLASS\")\n\t\t\t} else if ( (m = match[3]) && support.getByClassName && context.getElementsByClassName ) {\n\t\t\t\tpush.apply( results, slice.call(context.getElementsByClassName( m ), 0) );\n\t\t\t\treturn results;\n\t\t\t}\n\t\t}\n\n\t\t// QSA path\n\t\tif ( support.qsa && !rbuggyQSA.test(selector) ) {\n\t\t\told = true;\n\t\t\tnid = expando;\n\t\t\tnewContext = context;\n\t\t\tnewSelector = nodeType === 9 && selector;\n\n\t\t\t// qSA works strangely on Element-rooted queries\n\t\t\t// We can work around this by specifying an extra ID on the root\n\t\t\t// and working up from there (Thanks to Andrew Dupont for the technique)\n\t\t\t// IE 8 doesn't work on object elements\n\t\t\tif ( nodeType === 1 && context.nodeName.toLowerCase() !== \"object\" ) {\n\t\t\t\tgroups = tokenize( selector );\n\n\t\t\t\tif ( (old = context.getAttribute(\"id\")) ) {\n\t\t\t\t\tnid = old.replace( rescape, \"\\\\$&\" );\n\t\t\t\t} else {\n\t\t\t\t\tcontext.setAttribute( \"id\", nid );\n\t\t\t\t}\n\t\t\t\tnid = \"[id='\" + nid + \"'] \";\n\n\t\t\t\ti = groups.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tgroups[i] = nid + toSelector( groups[i] );\n\t\t\t\t}\n\t\t\t\tnewContext = rsibling.test( selector ) && context.parentNode || context;\n\t\t\t\tnewSelector = groups.join(\",\");\n\t\t\t}\n\n\t\t\tif ( newSelector ) {\n\t\t\t\ttry {\n\t\t\t\t\tpush.apply( results, slice.call( newContext.querySelectorAll(\n\t\t\t\t\t\tnewSelector\n\t\t\t\t\t), 0 ) );\n\t\t\t\t\treturn results;\n\t\t\t\t} catch(qsaError) {\n\t\t\t\t} finally {\n\t\t\t\t\tif ( !old ) {\n\t\t\t\t\t\tcontext.removeAttribute(\"id\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n}\n\n/**\n * Detect xml\n * @param {Element|Object} elem An element or a document\n */\nisXML = Sizzle.isXML = function( elem ) {\n\t// documentElement is verified for cases where it doesn't yet exist\n\t// (such as loading iframes in IE - #4833)\n\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\n\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\n};\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nsetDocument = Sizzle.setDocument = function( node ) {\n\tvar doc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// If no document and documentElement is available, return\n\tif ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Set our document\n\tdocument = doc;\n\tdocElem = doc.documentElement;\n\n\t// Support tests\n\tdocumentIsXML = isXML( doc );\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tsupport.tagNameNoComments = assert(function( div ) {\n\t\tdiv.appendChild( doc.createComment(\"\") );\n\t\treturn !div.getElementsByTagName(\"*\").length;\n\t});\n\n\t// Check if attributes should be retrieved by attribute nodes\n\tsupport.attributes = assert(function( div ) {\n\t\tdiv.innerHTML = \"<select></select>\";\n\t\tvar type = typeof div.lastChild.getAttribute(\"multiple\");\n\t\t// IE8 returns a string for some attributes even when not present\n\t\treturn type !== \"boolean\" && type !== \"string\";\n\t});\n\n\t// Check if getElementsByClassName can be trusted\n\tsupport.getByClassName = assert(function( div ) {\n\t\t// Opera can't find a second classname (in 9.6)\n\t\tdiv.innerHTML = \"<div class='hidden e'></div><div class='hidden'></div>\";\n\t\tif ( !div.getElementsByClassName || !div.getElementsByClassName(\"e\").length ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Safari 3.2 caches class attributes and doesn't catch changes\n\t\tdiv.lastChild.className = \"e\";\n\t\treturn div.getElementsByClassName(\"e\").length === 2;\n\t});\n\n\t// Check if getElementById returns elements by name\n\t// Check if getElementsByName privileges form controls or returns elements by ID\n\tsupport.getByName = assert(function( div ) {\n\t\t// Inject content\n\t\tdiv.id = expando + 0;\n\t\tdiv.innerHTML = \"<a name='\" + expando + \"'></a><div name='\" + expando + \"'></div>\";\n\t\tdocElem.insertBefore( div, docElem.firstChild );\n\n\t\t// Test\n\t\tvar pass = doc.getElementsByName &&\n\t\t\t// buggy browsers will return fewer than the correct 2\n\t\t\tdoc.getElementsByName( expando ).length === 2 +\n\t\t\t// buggy browsers will return more than the correct 0\n\t\t\tdoc.getElementsByName( expando + 0 ).length;\n\t\tsupport.getIdNotName = !doc.getElementById( expando );\n\n\t\t// Cleanup\n\t\tdocElem.removeChild( div );\n\n\t\treturn pass;\n\t});\n\n\t// IE6/7 return modified attributes\n\tExpr.attrHandle = assert(function( div ) {\n\t\tdiv.innerHTML = \"<a href='#'></a>\";\n\t\treturn div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&\n\t\t\tdiv.firstChild.getAttribute(\"href\") === \"#\";\n\t}) ?\n\t\t{} :\n\t\t{\n\t\t\t\"href\": function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"href\", 2 );\n\t\t\t},\n\t\t\t\"type\": function( elem ) {\n\t\t\t\treturn elem.getAttribute(\"type\");\n\t\t\t}\n\t\t};\n\n\t// ID find and filter\n\tif ( support.getIdNotName ) {\n\t\tExpr.find[\"ID\"] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== strundefined && !documentIsXML ) {\n\t\t\t\tvar m = context.getElementById( id );\n\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\treturn m && m.parentNode ? [m] : [];\n\t\t\t}\n\t\t};\n\t\tExpr.filter[\"ID\"] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute(\"id\") === attrId;\n\t\t\t};\n\t\t};\n\t} else {\n\t\tExpr.find[\"ID\"] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== strundefined && !documentIsXML ) {\n\t\t\t\tvar m = context.getElementById( id );\n\n\t\t\t\treturn m ?\n\t\t\t\t\tm.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode(\"id\").value === id ?\n\t\t\t\t\t\t[m] :\n\t\t\t\t\t\tundefined :\n\t\t\t\t\t[];\n\t\t\t}\n\t\t};\n\t\tExpr.filter[\"ID\"] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode(\"id\");\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find[\"TAG\"] = support.tagNameNoComments ?\n\t\tfunction( tag, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== strundefined ) {\n\t\t\t\treturn context.getElementsByTagName( tag );\n\t\t\t}\n\t\t} :\n\t\tfunction( tag, context ) {\n\t\t\tvar elem,\n\t\t\t\ttmp = [],\n\t\t\t\ti = 0,\n\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( tag === \"*\" ) {\n\t\t\t\twhile ( (elem = results[i++]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t\treturn results;\n\t\t};\n\n\t// Name\n\tExpr.find[\"NAME\"] = support.getByName && function( tag, context ) {\n\t\tif ( typeof context.getElementsByName !== strundefined ) {\n\t\t\treturn context.getElementsByName( name );\n\t\t}\n\t};\n\n\t// Class\n\tExpr.find[\"CLASS\"] = support.getByClassName && function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== strundefined && !documentIsXML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t// QSA and matchesSelector support\n\n\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\trbuggyMatches = [];\n\n\t// qSa(:focus) reports false when true (Chrome 21),\n\t// no need to also add to buggyMatches since matches checks buggyQSA\n\t// A support test would require too much code (would include document ready)\n\trbuggyQSA = [ \":focus\" ];\n\n\tif ( (support.qsa = isNative(doc.querySelectorAll)) ) {\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert(function( div ) {\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explictly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// http://bugs.jquery.com/ticket/12359\n\t\t\tdiv.innerHTML = \"<select><option selected=''></option></select>\";\n\n\t\t\t// IE8 - Some boolean attributes are not treated correctly\n\t\t\tif ( !div.querySelectorAll(\"[selected]\").length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:checked|disabled|ismap|multiple|readonly|selected|value)\" );\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !div.querySelectorAll(\":checked\").length ) {\n\t\t\t\trbuggyQSA.push(\":checked\");\n\t\t\t}\n\t\t});\n\n\t\tassert(function( div ) {\n\n\t\t\t// Opera 10-12/IE8 - ^= $= *= and empty values\n\t\t\t// Should not select anything\n\t\t\tdiv.innerHTML = \"<input type='hidden' i=''/>\";\n\t\t\tif ( div.querySelectorAll(\"[i^='']\").length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:\\\"\\\"|'')\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !div.querySelectorAll(\":enabled\").length ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\tdiv.querySelectorAll(\"*,:x\");\n\t\t\trbuggyQSA.push(\",.*:\");\n\t\t});\n\t}\n\n\tif ( (support.matchesSelector = isNative( (matches = docElem.matchesSelector ||\n\t\tdocElem.mozMatchesSelector ||\n\t\tdocElem.webkitMatchesSelector ||\n\t\tdocElem.oMatchesSelector ||\n\t\tdocElem.msMatchesSelector) )) ) {\n\n\t\tassert(function( div ) {\n\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t// on a disconnected node (IE 9)\n\t\t\tsupport.disconnectedMatch = matches.call( div, \"div\" );\n\n\t\t\t// This should fail with an exception\n\t\t\t// Gecko does not error, returns false instead\n\t\t\tmatches.call( div, \"[s!='']:x\" );\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t});\n\t}\n\n\trbuggyQSA = new RegExp( rbuggyQSA.join(\"|\") );\n\trbuggyMatches = new RegExp( rbuggyMatches.join(\"|\") );\n\n\t// Element contains another\n\t// Purposefully does not implement inclusive descendent\n\t// As in, an element does not contain itself\n\tcontains = isNative(docElem.contains) || docElem.compareDocumentPosition ?\n\t\tfunction( a, b ) {\n\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\tbup = b && b.parentNode;\n\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\t\t\t\tadown.contains ?\n\t\t\t\t\tadown.contains( bup ) :\n\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t\t\t));\n\t\t} :\n\t\tfunction( a, b ) {\n\t\t\tif ( b ) {\n\t\t\t\twhile ( (b = b.parentNode) ) {\n\t\t\t\t\tif ( b === a ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\n\t// Document order sorting\n\tsortOrder = docElem.compareDocumentPosition ?\n\tfunction( a, b ) {\n\t\tvar compare;\n\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\tif ( (compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b )) ) {\n\t\t\tif ( compare & 1 || a.parentNode && a.parentNode.nodeType === 11 ) {\n\t\t\t\tif ( a === doc || contains( preferredDoc, a ) ) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif ( b === doc || contains( preferredDoc, b ) ) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn compare & 4 ? -1 : 1;\n\t\t}\n\n\t\treturn a.compareDocumentPosition ? -1 : 1;\n\t} :\n\tfunction( a, b ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tap = [ a ],\n\t\t\tbp = [ b ];\n\n\t\t// Exit early if the nodes are identical\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\n\t\t// Parentless nodes are either documents or disconnected\n\t\t} else if ( !aup || !bup ) {\n\t\t\treturn a === doc ? -1 :\n\t\t\t\tb === doc ? 1 :\n\t\t\t\taup ? -1 :\n\t\t\t\tbup ? 1 :\n\t\t\t\t0;\n\n\t\t// If the nodes are siblings, we can do a quick check\n\t\t} else if ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\t\t}\n\n\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\tcur = a;\n\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\tap.unshift( cur );\n\t\t}\n\t\tcur = b;\n\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\tbp.unshift( cur );\n\t\t}\n\n\t\t// Walk down the tree looking for a discrepancy\n\t\twhile ( ap[i] === bp[i] ) {\n\t\t\ti++;\n\t\t}\n\n\t\treturn i ?\n\t\t\t// Do a sibling check if the nodes have a common ancestor\n\t\t\tsiblingCheck( ap[i], bp[i] ) :\n\n\t\t\t// Otherwise nodes in our document sort first\n\t\t\tap[i] === preferredDoc ? -1 :\n\t\t\tbp[i] === preferredDoc ? 1 :\n\t\t\t0;\n\t};\n\n\t// Always assume the presence of duplicates if sort doesn't\n\t// pass them to our comparison function (as in Google Chrome).\n\thasDuplicate = false;\n\t[0, 0].sort( sortOrder );\n\tsupport.detectDuplicates = hasDuplicate;\n\n\treturn document;\n};\n\nSizzle.matches = function( expr, elements ) {\n\treturn Sizzle( expr, null, null, elements );\n};\n\nSizzle.matchesSelector = function( elem, expr ) {\n\t// Set document vars if needed\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\tsetDocument( elem );\n\t}\n\n\t// Make sure that attribute selectors are quoted\n\texpr = expr.replace( rattributeQuotes, \"='$1']\" );\n\n\t// rbuggyQSA always contains :focus, so no need for an existence check\n\tif ( support.matchesSelector && !documentIsXML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && !rbuggyQSA.test(expr) ) {\n\t\ttry {\n\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\tif ( ret || support.disconnectedMatch ||\n\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} catch(e) {}\n\t}\n\n\treturn Sizzle( expr, document, null, [elem] ).length > 0;\n};\n\nSizzle.contains = function( context, elem ) {\n\t// Set document vars if needed\n\tif ( ( context.ownerDocument || context ) !== document ) {\n\t\tsetDocument( context );\n\t}\n\treturn contains( context, elem );\n};\n\nSizzle.attr = function( elem, name ) {\n\tvar val;\n\n\t// Set document vars if needed\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\tsetDocument( elem );\n\t}\n\n\tif ( !documentIsXML ) {\n\t\tname = name.toLowerCase();\n\t}\n\tif ( (val = Expr.attrHandle[ name ]) ) {\n\t\treturn val( elem );\n\t}\n\tif ( documentIsXML || support.attributes ) {\n\t\treturn elem.getAttribute( name );\n\t}\n\treturn ( (val = elem.getAttributeNode( name )) || elem.getAttribute( name ) ) && elem[ name ] === true ?\n\t\tname :\n\t\tval && val.specified ? val.value : null;\n};\n\nSizzle.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\n// Document sorting and removing duplicates\nSizzle.uniqueSort = function( results ) {\n\tvar elem,\n\t\tduplicates = [],\n\t\ti = 1,\n\t\tj = 0;\n\n\t// Unless we *know* we can detect duplicates, assume their presence\n\thasDuplicate = !support.detectDuplicates;\n\tresults.sort( sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\tfor ( ; (elem = results[i]); i++ ) {\n\t\t\tif ( elem === results[ i - 1 ] ) {\n\t\t\t\tj = duplicates.push( i );\n\t\t\t}\n\t\t}\n\t\twhile ( j-- ) {\n\t\t\tresults.splice( duplicates[ j ], 1 );\n\t\t}\n\t}\n\n\treturn results;\n};\n\nfunction siblingCheck( a, b ) {\n\tvar cur = b && a,\n\t\tdiff = cur && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE );\n\n\t// Use IE sourceIndex if available on both nodes\n\tif ( diff ) {\n\t\treturn diff;\n\t}\n\n\t// Check if b follows a\n\tif ( cur ) {\n\t\twhile ( (cur = cur.nextSibling) ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn a ? 1 : -1;\n}\n\n// Returns a function to use in pseudos for input types\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"input\" && elem.type === type;\n\t};\n}\n\n// Returns a function to use in pseudos for buttons\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\n\t};\n}\n\n// Returns a function to use in pseudos for positionals\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction(function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction(function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ (j = matchIndexes[i]) ] ) {\n\t\t\t\t\tseed[j] = !(matches[j] = seed[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n}\n\n/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */\ngetText = Sizzle.getText = function( elem ) {\n\tvar node,\n\t\tret = \"\",\n\t\ti = 0,\n\t\tnodeType = elem.nodeType;\n\n\tif ( !nodeType ) {\n\t\t// If no nodeType, this is expected to be an array\n\t\tfor ( ; (node = elem[i]); i++ ) {\n\t\t\t// Do not traverse comment nodes\n\t\t\tret += getText( node );\n\t\t}\n\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\t\t// Use textContent for elements\n\t\t// innerText usage removed for consistency of new lines (see #11153)\n\t\tif ( typeof elem.textContent === \"string\" ) {\n\t\t\treturn elem.textContent;\n\t\t} else {\n\t\t\t// Traverse its children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tret += getText( elem );\n\t\t\t}\n\t\t}\n\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\t\treturn elem.nodeValue;\n\t}\n\t// Do not include comment or processing instruction nodes\n\n\treturn ret;\n};\n\nExpr = Sizzle.selectors = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\tfind: {},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\t\"ATTR\": function( match ) {\n\t\t\tmatch[1] = match[1].replace( runescape, funescape );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[3] = ( match[4] || match[5] || \"\" ).replace( runescape, funescape );\n\n\t\t\tif ( match[2] === \"~=\" ) {\n\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\t\"CHILD\": function( match ) {\n\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\tmatch[1] = match[1].toLowerCase();\n\n\t\t\tif ( match[1].slice( 0, 3 ) === \"nth\" ) {\n\t\t\t\t// nth-* requires argument\n\t\t\t\tif ( !match[3] ) {\n\t\t\t\t\tSizzle.error( match[0] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === \"even\" || match[3] === \"odd\" ) );\n\t\t\t\tmatch[5] = +( ( match[7] + match[8] ) || match[3] === \"odd\" );\n\n\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[3] ) {\n\t\t\t\tSizzle.error( match[0] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\t\"PSEUDO\": function( match ) {\n\t\t\tvar excess,\n\t\t\t\tunquoted = !match[5] && match[2];\n\n\t\t\tif ( matchExpr[\"CHILD\"].test( match[0] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Accept quoted arguments as-is\n\t\t\tif ( match[4] ) {\n\t\t\t\tmatch[2] = match[4];\n\n\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t(excess = tokenize( unquoted, true )) &&\n\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t(excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length) ) {\n\n\t\t\t\t// excess is a negative index\n\t\t\t\tmatch[0] = match[0].slice( 0, excess );\n\t\t\t\tmatch[2] = unquoted.slice( 0, excess );\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\n\t\t\"TAG\": function( nodeName ) {\n\t\t\tif ( nodeName === \"*\" ) {\n\t\t\t\treturn function() { return true; };\n\t\t\t}\n\n\t\t\tnodeName = nodeName.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t};\n\t\t},\n\n\t\t\"CLASS\": function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t(pattern = new RegExp( \"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\" )) &&\n\t\t\t\tclassCache( className, function( elem ) {\n\t\t\t\t\treturn pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute(\"class\")) || \"\" );\n\t\t\t\t});\n\t\t},\n\n\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = Sizzle.attr( elem, name );\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\t\t\t\tif ( !operator ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tresult += \"\";\n\n\t\t\t\treturn operator === \"=\" ? result === check :\n\t\t\t\t\toperator === \"!=\" ? result !== check :\n\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\t\t\t\t\toperator === \"~=\" ? ( \" \" + result + \" \" ).indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\t\t\t\t\tfalse;\n\t\t\t};\n\t\t},\n\n\t\t\"CHILD\": function( type, what, argument, first, last ) {\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\tofType = what === \"of-type\";\n\n\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t} :\n\n\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\tvar cache, outerCache, node, diff, nodeIndex, start,\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\tuseCache = !xml && !ofType;\n\n\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\twhile ( (node = node[ dir ]) ) {\n\t\t\t\t\t\t\t\t\tif ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\tif ( forward && useCache ) {\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\t\t\t\t\t\t\touterCache = parent[ expando ] || (parent[ expando ] = {});\n\t\t\t\t\t\t\tcache = outerCache[ type ] || [];\n\t\t\t\t\t\t\tnodeIndex = cache[0] === dirruns && cache[1];\n\t\t\t\t\t\t\tdiff = cache[0] === dirruns && cache[2];\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\touterCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {\n\t\t\t\t\t\t\tdiff = cache[1];\n\n\t\t\t\t\t\t// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\tif ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {\n\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t},\n\n\t\t\"PSEUDO\": function( pseudo, argument ) {\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as Sizzle does\n\t\t\tif ( fn[ expando ] ) {\n\t\t\t\treturn fn( argument );\n\t\t\t}\n\n\t\t\t// But maintain support for old signatures\n\t\t\tif ( fn.length > 1 ) {\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\tmarkFunction(function( seed, matches ) {\n\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tidx = indexOf.call( seed, matched[i] );\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[i] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}) :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn fn;\n\t\t}\n\t},\n\n\tpseudos: {\n\t\t// Potentially complex pseudos\n\t\t\"not\": markFunction(function( selector ) {\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar input = [],\n\t\t\t\tresults = [],\n\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\n\n\t\t\treturn matcher[ expando ] ?\n\t\t\t\tmarkFunction(function( seed, matches, context, xml ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( (elem = unmatched[i]) ) {\n\t\t\t\t\t\t\tseed[i] = !(matches[i] = elem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}) :\n\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\tinput[0] = elem;\n\t\t\t\t\tmatcher( input, null, xml, results );\n\t\t\t\t\treturn !results.pop();\n\t\t\t\t};\n\t\t}),\n\n\t\t\"has\": markFunction(function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t};\n\t\t}),\n\n\t\t\"contains\": markFunction(function( text ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t}),\n\n\t\t// \"Whether an element is represented by a :lang() selector\n\t\t// is based solely on the element's language value\n\t\t// being equal to the identifier C,\n\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t// The identifier C does not have to be a valid language name.\"\n\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\"lang\": markFunction( function( lang ) {\n\t\t\t// lang value must be a valid identifider\n\t\t\tif ( !ridentifier.test(lang || \"\") ) {\n\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\n\t\t\t}\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\tvar elemLang;\n\t\t\t\tdo {\n\t\t\t\t\tif ( (elemLang = documentIsXML ?\n\t\t\t\t\t\telem.getAttribute(\"xml:lang\") || elem.getAttribute(\"lang\") :\n\t\t\t\t\t\telem.lang) ) {\n\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t}\n\t\t\t\t} while ( (elem = elem.parentNode) && elem.nodeType === 1 );\n\t\t\t\treturn false;\n\t\t\t};\n\t\t}),\n\n\t\t// Miscellaneous\n\t\t\"target\": function( elem ) {\n\t\t\tvar hash = window.location && window.location.hash;\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t},\n\n\t\t\"root\": function( elem ) {\n\t\t\treturn elem === docElem;\n\t\t},\n\n\t\t\"focus\": function( elem ) {\n\t\t\treturn elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);\n\t\t},\n\n\t\t// Boolean properties\n\t\t\"enabled\": function( elem ) {\n\t\t\treturn elem.disabled === false;\n\t\t},\n\n\t\t\"disabled\": function( elem ) {\n\t\t\treturn elem.disabled === true;\n\t\t},\n\n\t\t\"checked\": function( elem ) {\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\treturn (nodeName === \"input\" && !!elem.checked) || (nodeName === \"option\" && !!elem.selected);\n\t\t},\n\n\t\t\"selected\": function( elem ) {\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t// Contents\n\t\t\"empty\": function( elem ) {\n\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),\n\t\t\t// not comment, processing instructions, or others\n\t\t\t// Thanks to Diego Perini for the nodeName shortcut\n\t\t\t// Greater than \"@\" means alpha characters (specifically not starting with \"#\" or \"?\")\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tif ( elem.nodeName > \"@\" || elem.nodeType === 3 || elem.nodeType === 4 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t\"parent\": function( elem ) {\n\t\t\treturn !Expr.pseudos[\"empty\"]( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\t\"header\": function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\t\"input\": function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\t\"button\": function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t},\n\n\t\t\"text\": function( elem ) {\n\t\t\tvar attr;\n\t\t\t// IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)\n\t\t\t// use getAttribute instead to test this case\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\telem.type === \"text\" &&\n\t\t\t\t( (attr = elem.getAttribute(\"type\")) == null || attr.toLowerCase() === elem.type );\n\t\t},\n\n\t\t// Position-in-collection\n\t\t\"first\": createPositionalPseudo(function() {\n\t\t\treturn [ 0 ];\n\t\t}),\n\n\t\t\"last\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t}),\n\n\t\t\"eq\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t}),\n\n\t\t\"even\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"odd\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\tvar i = 1;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"lt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"gt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t})\n\t}\n};\n\n// Add button/input type pseudos\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\tExpr.pseudos[ i ] = createInputPseudo( i );\n}\nfor ( i in { submit: true, reset: true } ) {\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\n}\n\nfunction tokenize( selector, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, preFilters,\n\t\tcached = tokenCache[ selector + \" \" ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\tpreFilters = Expr.preFilter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || (match = rcomma.exec( soFar )) ) {\n\t\t\tif ( match ) {\n\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\tsoFar = soFar.slice( match[0].length ) || soFar;\n\t\t\t}\n\t\t\tgroups.push( tokens = [] );\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( (match = rcombinators.exec( soFar )) ) {\n\t\t\tmatched = match.shift();\n\t\t\ttokens.push( {\n\t\t\t\tvalue: matched,\n\t\t\t\t// Cast descendant combinators to space\n\t\t\t\ttype: match[0].replace( rtrim, \" \" )\n\t\t\t} );\n\t\t\tsoFar = soFar.slice( matched.length );\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in Expr.filter ) {\n\t\t\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\n\t\t\t\t(match = preFilters[ type ]( match ))) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push( {\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tmatches: match\n\t\t\t\t} );\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\treturn parseOnly ?\n\t\tsoFar.length :\n\t\tsoFar ?\n\t\t\tSizzle.error( selector ) :\n\t\t\t// Cache the tokens\n\t\t\ttokenCache( selector, groups ).slice( 0 );\n}\n\nfunction toSelector( tokens ) {\n\tvar i = 0,\n\t\tlen = tokens.length,\n\t\tselector = \"\";\n\tfor ( ; i < len; i++ ) {\n\t\tselector += tokens[i].value;\n\t}\n\treturn selector;\n}\n\nfunction addCombinator( matcher, combinator, base ) {\n\tvar dir = combinator.dir,\n\t\tcheckNonElements = base && dir === \"parentNode\",\n\t\tdoneName = done++;\n\n\treturn combinator.first ?\n\t\t// Check against closest ancestor/preceding element\n\t\tfunction( elem, context, xml ) {\n\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t}\n\t\t\t}\n\t\t} :\n\n\t\t// Check against all ancestor/preceding elements\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar data, cache, outerCache,\n\t\t\t\tdirkey = dirruns + \" \" + doneName;\n\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching\n\t\t\tif ( xml ) {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\touterCache = elem[ expando ] || (elem[ expando ] = {});\n\t\t\t\t\t\tif ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) {\n\t\t\t\t\t\t\tif ( (data = cache[1]) === true || data === cachedruns ) {\n\t\t\t\t\t\t\t\treturn data === true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcache = outerCache[ dir ] = [ dirkey ];\n\t\t\t\t\t\t\tcache[1] = matcher( elem, context, xml ) || cachedruns;\n\t\t\t\t\t\t\tif ( cache[1] === true ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n}\n\nfunction elementMatcher( matchers ) {\n\treturn matchers.length > 1 ?\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar i = matchers.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( !matchers[i]( elem, context, xml ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} :\n\t\tmatchers[0];\n}\n\nfunction condense( unmatched, map, filter, context, xml ) {\n\tvar elem,\n\t\tnewUnmatched = [],\n\t\ti = 0,\n\t\tlen = unmatched.length,\n\t\tmapped = map != null;\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( (elem = unmatched[i]) ) {\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\tif ( mapped ) {\n\t\t\t\t\tmap.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newUnmatched;\n}\n\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\tif ( postFilter && !postFilter[ expando ] ) {\n\t\tpostFilter = setMatcher( postFilter );\n\t}\n\tif ( postFinder && !postFinder[ expando ] ) {\n\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t}\n\treturn markFunction(function( seed, results, context, xml ) {\n\t\tvar temp, i, elem,\n\t\t\tpreMap = [],\n\t\t\tpostMap = [],\n\t\t\tpreexisting = results.length,\n\n\t\t\t// Get initial elements from seed or context\n\t\t\telems = seed || multipleContexts( selector || \"*\", context.nodeType ? [ context ] : context, [] ),\n\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\telems,\n\n\t\t\tmatcherOut = matcher ?\n\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t\t[] :\n\n\t\t\t\t\t// ...otherwise use results directly\n\t\t\t\t\tresults :\n\t\t\t\tmatcherIn;\n\n\t\t// Find primary matches\n\t\tif ( matcher ) {\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t}\n\n\t\t// Apply postFilter\n\t\tif ( postFilter ) {\n\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\ti = temp.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( (elem = temp[i]) ) {\n\t\t\t\t\tmatcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( seed ) {\n\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\tif ( postFinder ) {\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\ttemp = [];\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( (elem = matcherOut[i]) ) {\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\ttemp.push( (matcherIn[i] = elem) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpostFinder( null, (matcherOut = []), temp, xml );\n\t\t\t\t}\n\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\ti = matcherOut.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( (elem = matcherOut[i]) &&\n\t\t\t\t\t\t(temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {\n\n\t\t\t\t\t\tseed[temp] = !(results[temp] = elem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Add elements to results, through postFinder if defined\n\t\t} else {\n\t\t\tmatcherOut = condense(\n\t\t\t\tmatcherOut === results ?\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\tmatcherOut\n\t\t\t);\n\t\t\tif ( postFinder ) {\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t} else {\n\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t}\n\t\t}\n\t});\n}\n\nfunction matcherFromTokens( tokens ) {\n\tvar checkContext, matcher, j,\n\t\tlen = tokens.length,\n\t\tleadingRelative = Expr.relative[ tokens[0].type ],\n\t\timplicitRelative = leadingRelative || Expr.relative[\" \"],\n\t\ti = leadingRelative ? 1 : 0,\n\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\treturn elem === checkContext;\n\t\t}, implicitRelative, true ),\n\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\treturn indexOf.call( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\n\t\t\treturn ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\n\t\t\t\t(checkContext = context).nodeType ?\n\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\t\t} ];\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( (matcher = Expr.relative[ tokens[i].type ]) ) {\n\t\t\tmatchers = [ addCombinator(elementMatcher( matchers ), matcher) ];\n\t\t} else {\n\t\t\tmatcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );\n\n\t\t\t// Return special upon seeing a positional matcher\n\t\t\tif ( matcher[ expando ] ) {\n\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\tj = ++i;\n\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\tif ( Expr.relative[ tokens[j].type ] ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn setMatcher(\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\ti > 1 && toSelector( tokens.slice( 0, i - 1 ) ).replace( rtrim, \"$1\" ),\n\t\t\t\t\tmatcher,\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\tj < len && matcherFromTokens( (tokens = tokens.slice( j )) ),\n\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t);\n\t\t\t}\n\t\t\tmatchers.push( matcher );\n\t\t}\n\t}\n\n\treturn elementMatcher( matchers );\n}\n\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\t// A counter to specify which element is currently being matched\n\tvar matcherCachedRuns = 0,\n\t\tbySet = setMatchers.length > 0,\n\t\tbyElement = elementMatchers.length > 0,\n\t\tsuperMatcher = function( seed, context, xml, results, expandContext ) {\n\t\t\tvar elem, j, matcher,\n\t\t\t\tsetMatched = [],\n\t\t\t\tmatchedCount = 0,\n\t\t\t\ti = \"0\",\n\t\t\t\tunmatched = seed && [],\n\t\t\t\toutermost = expandContext != null,\n\t\t\t\tcontextBackup = outermostContext,\n\t\t\t\t// We must always have either seed elements or context\n\t\t\t\telems = seed || byElement && Expr.find[\"TAG\"]( \"*\", expandContext && context.parentNode || context ),\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\tdirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1);\n\n\t\t\tif ( outermost ) {\n\t\t\t\toutermostContext = context !== document && context;\n\t\t\t\tcachedruns = matcherCachedRuns;\n\t\t\t}\n\n\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t// Keep `i` a string if there are no elements so `matchedCount` will be \"00\" below\n\t\t\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( (matcher = elementMatchers[j++]) ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t\tcachedruns = ++matcherCachedRuns;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\tif ( bySet ) {\n\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\tif ( (elem = !matcher && elem) ) {\n\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Apply set filters to unmatched elements\n\t\t\tmatchedCount += i;\n\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( (matcher = setMatchers[j++]) ) {\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t}\n\n\t\t\t\tif ( seed ) {\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( !(unmatched[i] || setMatched[i]) ) {\n\t\t\t\t\t\t\t\tsetMatched[i] = pop.call( results );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t}\n\n\t\t\t\t// Add matches to results\n\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\tSizzle.uniqueSort( results );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Override manipulation of globals by nested matchers\n\t\t\tif ( outermost ) {\n\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\toutermostContext = contextBackup;\n\t\t\t}\n\n\t\t\treturn unmatched;\n\t\t};\n\n\treturn bySet ?\n\t\tmarkFunction( superMatcher ) :\n\t\tsuperMatcher;\n}\n\ncompile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {\n\tvar i,\n\t\tsetMatchers = [],\n\t\telementMatchers = [],\n\t\tcached = compilerCache[ selector + \" \" ];\n\n\tif ( !cached ) {\n\t\t// Generate a function of recursive functions that can be used to check each element\n\t\tif ( !group ) {\n\t\t\tgroup = tokenize( selector );\n\t\t}\n\t\ti = group.length;\n\t\twhile ( i-- ) {\n\t\t\tcached = matcherFromTokens( group[i] );\n\t\t\tif ( cached[ expando ] ) {\n\t\t\t\tsetMatchers.push( cached );\n\t\t\t} else {\n\t\t\t\telementMatchers.push( cached );\n\t\t\t}\n\t\t}\n\n\t\t// Cache the compiled function\n\t\tcached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );\n\t}\n\treturn cached;\n};\n\nfunction multipleContexts( selector, contexts, results ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tSizzle( selector, contexts[i], results );\n\t}\n\treturn results;\n}\n\nfunction select( selector, context, results, seed ) {\n\tvar i, tokens, token, type, find,\n\t\tmatch = tokenize( selector );\n\n\tif ( !seed ) {\n\t\t// Try to minimize operations if there is only one group\n\t\tif ( match.length === 1 ) {\n\n\t\t\t// Take a shortcut and set the context if the root selector is an ID\n\t\t\ttokens = match[0] = match[0].slice( 0 );\n\t\t\tif ( tokens.length > 2 && (token = tokens[0]).type === \"ID\" &&\n\t\t\t\t\tcontext.nodeType === 9 && !documentIsXML &&\n\t\t\t\t\tExpr.relative[ tokens[1].type ] ) {\n\n\t\t\t\tcontext = Expr.find[\"ID\"]( token.matches[0].replace( runescape, funescape ), context )[0];\n\t\t\t\tif ( !context ) {\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\n\t\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t\t}\n\n\t\t\t// Fetch a seed set for right-to-left matching\n\t\t\ti = matchExpr[\"needsContext\"].test( selector ) ? 0 : tokens.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\ttoken = tokens[i];\n\n\t\t\t\t// Abort if we hit a combinator\n\t\t\t\tif ( Expr.relative[ (type = token.type) ] ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ( (find = Expr.find[ type ]) ) {\n\t\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\t\tif ( (seed = find(\n\t\t\t\t\t\ttoken.matches[0].replace( runescape, funescape ),\n\t\t\t\t\t\trsibling.test( tokens[0].type ) && context.parentNode || context\n\t\t\t\t\t)) ) {\n\n\t\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\t\tpush.apply( results, slice.call( seed, 0 ) );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Compile and execute a filtering function\n\t// Provide `match` to avoid retokenization if we modified the selector above\n\tcompile( selector, match )(\n\t\tseed,\n\t\tcontext,\n\t\tdocumentIsXML,\n\t\tresults,\n\t\trsibling.test( selector )\n\t);\n\treturn results;\n}\n\n// Deprecated\nExpr.pseudos[\"nth\"] = Expr.pseudos[\"eq\"];\n\n// Easy API for creating new setFilters\nfunction setFilters() {}\nExpr.filters = setFilters.prototype = Expr.pseudos;\nExpr.setFilters = new setFilters();\n\n// Initialize with the default document\nsetDocument();\n\n// Override sizzle attribute retrieval\nSizzle.attr = jQuery.attr;\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\njQuery.expr[\":\"] = jQuery.expr.pseudos;\njQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\n\n\n})( window );\nvar runtil = /Until$/,\n\trparentsprev = /^(?:parents|prev(?:Until|All))/,\n\tisSimple = /^.[^:#\\[\\.,]*$/,\n\trneedsContext = jQuery.expr.match.needsContext,\n\t// methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend({\n\tfind: function( selector ) {\n\t\tvar i, ret, self,\n\t\t\tlen = this.length;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\tself = this;\n\t\t\treturn this.pushStack( jQuery( selector ).filter(function() {\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}) );\n\t\t}\n\n\t\tret = [];\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\tjQuery.find( selector, this[ i ], ret );\n\t\t}\n\n\t\t// Needed because $( selector, context ) becomes $( context ).find( selector )\n\t\tret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );\n\t\tret.selector = ( this.selector ? this.selector + \" \" : \"\" ) + selector;\n\t\treturn ret;\n\t},\n\n\thas: function( target ) {\n\t\tvar i,\n\t\t\ttargets = jQuery( target, this ),\n\t\t\tlen = targets.length;\n\n\t\treturn this.filter(function() {\n\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[i] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow(this, selector, false) );\n\t},\n\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow(this, selector, true) );\n\t},\n\n\tis: function( selector ) {\n\t\treturn !!selector && (\n\t\t\ttypeof selector === \"string\" ?\n\t\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\t\trneedsContext.test( selector ) ?\n\t\t\t\t\tjQuery( selector, this.context ).index( this[0] ) >= 0 :\n\t\t\t\t\tjQuery.filter( selector, this ).length > 0 :\n\t\t\t\tthis.filter( selector ).length > 0 );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tret = [],\n\t\t\tpos = rneedsContext.test( selectors ) || typeof selectors !== \"string\" ?\n\t\t\t\tjQuery( selectors, context || this.context ) :\n\t\t\t\t0;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tcur = this[i];\n\n\t\t\twhile ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) {\n\t\t\t\tif ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {\n\t\t\t\t\tret.push( cur );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcur = cur.parentNode;\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret );\n\t},\n\n\t// Determine the position of an element within\n\t// the matched set of elements\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;\n\t\t}\n\n\t\t// index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn jQuery.inArray( this[0], jQuery( elem ) );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn jQuery.inArray(\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[0] : elem, this );\n\t},\n\n\tadd: function( selector, context ) {\n\t\tvar set = typeof selector === \"string\" ?\n\t\t\t\tjQuery( selector, context ) :\n\t\t\t\tjQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),\n\t\t\tall = jQuery.merge( this.get(), set );\n\n\t\treturn this.pushStack( jQuery.unique(all) );\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter(selector)\n\t\t);\n\t}\n});\n\njQuery.fn.andSelf = jQuery.fn.addBack;\n\nfunction sibling( cur, dir ) {\n\tdo {\n\t\tcur = cur[ dir ];\n\t} while ( cur && cur.nodeType !== 1 );\n\n\treturn cur;\n}\n\njQuery.each({\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn jQuery.dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn jQuery.dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn jQuery.dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn jQuery.sibling( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n\t\treturn jQuery.nodeName( elem, \"iframe\" ) ?\n\t\t\telem.contentDocument || elem.contentWindow.document :\n\t\t\tjQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar ret = jQuery.map( this, fn, until );\n\n\t\tif ( !runtil.test( name ) ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tret = jQuery.filter( selector, ret );\n\t\t}\n\n\t\tret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;\n\n\t\tif ( this.length > 1 && rparentsprev.test( name ) ) {\n\t\t\tret = ret.reverse();\n\t\t}\n\n\t\treturn this.pushStack( ret );\n\t};\n});\n\njQuery.extend({\n\tfilter: function( expr, elems, not ) {\n\t\tif ( not ) {\n\t\t\texpr = \":not(\" + expr + \")\";\n\t\t}\n\n\t\treturn elems.length === 1 ?\n\t\t\tjQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :\n\t\t\tjQuery.find.matches(expr, elems);\n\t},\n\n\tdir: function( elem, dir, until ) {\n\t\tvar matched = [],\n\t\t\tcur = elem[ dir ];\n\n\t\twhile ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {\n\t\t\tif ( cur.nodeType === 1 ) {\n\t\t\t\tmatched.push( cur );\n\t\t\t}\n\t\t\tcur = cur[dir];\n\t\t}\n\t\treturn matched;\n\t},\n\n\tsibling: function( n, elem ) {\n\t\tvar r = [];\n\n\t\tfor ( ; n; n = n.nextSibling ) {\n\t\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\t\tr.push( n );\n\t\t\t}\n\t\t}\n\n\t\treturn r;\n\t}\n});\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, keep ) {\n\n\t// Can't pass null or undefined to indexOf in Firefox 4\n\t// Set to 0 to skip string check\n\tqualifier = qualifier || 0;\n\n\tif ( jQuery.isFunction( qualifier ) ) {\n\t\treturn jQuery.grep(elements, function( elem, i ) {\n\t\t\tvar retVal = !!qualifier.call( elem, i, elem );\n\t\t\treturn retVal === keep;\n\t\t});\n\n\t} else if ( qualifier.nodeType ) {\n\t\treturn jQuery.grep(elements, function( elem ) {\n\t\t\treturn ( elem === qualifier ) === keep;\n\t\t});\n\n\t} else if ( typeof qualifier === \"string\" ) {\n\t\tvar filtered = jQuery.grep(elements, function( elem ) {\n\t\t\treturn elem.nodeType === 1;\n\t\t});\n\n\t\tif ( isSimple.test( qualifier ) ) {\n\t\t\treturn jQuery.filter(qualifier, filtered, !keep);\n\t\t} else {\n\t\t\tqualifier = jQuery.filter( qualifier, filtered );\n\t\t}\n\t}\n\n\treturn jQuery.grep(elements, function( elem ) {\n\t\treturn ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;\n\t});\n}\nfunction createSafeFragment( document ) {\n\tvar list = nodeNames.split( \"|\" ),\n\t\tsafeFrag = document.createDocumentFragment();\n\n\tif ( safeFrag.createElement ) {\n\t\twhile ( list.length ) {\n\t\t\tsafeFrag.createElement(\n\t\t\t\tlist.pop()\n\t\t\t);\n\t\t}\n\t}\n\treturn safeFrag;\n}\n\nvar nodeNames = \"abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|\" +\n\t\t\"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\",\n\trinlinejQuery = / jQuery\\d+=\"(?:null|\\d+)\"/g,\n\trnoshimcache = new RegExp(\"<(?:\" + nodeNames + \")[\\\\s/>]\", \"i\"),\n\trleadingWhitespace = /^\\s+/,\n\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,\n\trtagName = /<([\\w:]+)/,\n\trtbody = /<tbody/i,\n\trhtml = /<|&#?\\w+;/,\n\trnoInnerhtml = /<(?:script|style|link)/i,\n\tmanipulation_rcheckableType = /^(?:checkbox|radio)$/i,\n\t// checked=\"checked\" or checked\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\trscriptType = /^$|\\/(?:java|ecma)script/i,\n\trscriptTypeMasked = /^true\\/(.*)/,\n\trcleanScript = /^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,\n\n\t// We have to close these tags to support XHTML (#13200)\n\twrapMap = {\n\t\toption: [ 1, \"<select multiple='multiple'>\", \"</select>\" ],\n\t\tlegend: [ 1, \"<fieldset>\", \"</fieldset>\" ],\n\t\tarea: [ 1, \"<map>\", \"</map>\" ],\n\t\tparam: [ 1, \"<object>\", \"</object>\" ],\n\t\tthead: [ 1, \"<table>\", \"</table>\" ],\n\t\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\t\tcol: [ 2, \"<table><tbody></tbody><colgroup>\", \"</colgroup></table>\" ],\n\t\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\n\t\t// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,\n\t\t// unless wrapped in a div with non-breaking characters in front of it.\n\t\t_default: jQuery.support.htmlSerialize ? [ 0, \"\", \"\" ] : [ 1, \"X<div>\", \"</div>\" ]\n\t},\n\tsafeFragment = createSafeFragment( document ),\n\tfragmentDiv = safeFragment.appendChild( document.createElement(\"div\") );\n\nwrapMap.optgroup = wrapMap.option;\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\njQuery.fn.extend({\n\ttext: function( value ) {\n\t\treturn jQuery.access( this, function( value ) {\n\t\t\treturn value === undefined ?\n\t\t\t\tjQuery.text( this ) :\n\t\t\t\tthis.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );\n\t\t}, null, value, arguments.length );\n\t},\n\n\twrapAll: function( html ) {\n\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tjQuery(this).wrapAll( html.call(this, i) );\n\t\t\t});\n\t\t}\n\n\t\tif ( this[0] ) {\n\t\t\t// The elements to wrap the target around\n\t\t\tvar wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);\n\n\t\t\tif ( this[0].parentNode ) {\n\t\t\t\twrap.insertBefore( this[0] );\n\t\t\t}\n\n\t\t\twrap.map(function() {\n\t\t\t\tvar elem = this;\n\n\t\t\t\twhile ( elem.firstChild && elem.firstChild.nodeType === 1 ) {\n\t\t\t\t\telem = elem.firstChild;\n\t\t\t\t}\n\n\t\t\t\treturn elem;\n\t\t\t}).append( this );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\twrapInner: function( html ) {\n\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tjQuery(this).wrapInner( html.call(this, i) );\n\t\t\t});\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tvar self = jQuery( this ),\n\t\t\t\tcontents = self.contents();\n\n\t\t\tif ( contents.length ) {\n\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t} else {\n\t\t\t\tself.append( html );\n\t\t\t}\n\t\t});\n\t},\n\n\twrap: function( html ) {\n\t\tvar isFunction = jQuery.isFunction( html );\n\n\t\treturn this.each(function(i) {\n\t\t\tjQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );\n\t\t});\n\t},\n\n\tunwrap: function() {\n\t\treturn this.parent().each(function() {\n\t\t\tif ( !jQuery.nodeName( this, \"body\" ) ) {\n\t\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t\t}\n\t\t}).end();\n\t},\n\n\tappend: function() {\n\t\treturn this.domManip(arguments, true, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tthis.appendChild( elem );\n\t\t\t}\n\t\t});\n\t},\n\n\tprepend: function() {\n\t\treturn this.domManip(arguments, true, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tthis.insertBefore( elem, this.firstChild );\n\t\t\t}\n\t\t});\n\t},\n\n\tbefore: function() {\n\t\treturn this.domManip( arguments, false, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t}\n\t\t});\n\t},\n\n\tafter: function() {\n\t\treturn this.domManip( arguments, false, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t}\n\t\t});\n\t},\n\n\t// keepData is for internal use only--do not document\n\tremove: function( selector, keepData ) {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; (elem = this[i]) != null; i++ ) {\n\t\t\tif ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) {\n\t\t\t\tif ( !keepData && elem.nodeType === 1 ) {\n\t\t\t\t\tjQuery.cleanData( getAll( elem ) );\n\t\t\t\t}\n\n\t\t\t\tif ( elem.parentNode ) {\n\t\t\t\t\tif ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {\n\t\t\t\t\t\tsetGlobalEval( getAll( elem, \"script\" ) );\n\t\t\t\t\t}\n\t\t\t\t\telem.parentNode.removeChild( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tempty: function() {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; (elem = this[i]) != null; i++ ) {\n\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\t\t\t}\n\n\t\t\t// Remove any remaining nodes\n\t\t\twhile ( elem.firstChild ) {\n\t\t\t\telem.removeChild( elem.firstChild );\n\t\t\t}\n\n\t\t\t// If this is a select, ensure that it displays empty (#12336)\n\t\t\t// Support: IE<9\n\t\t\tif ( elem.options && jQuery.nodeName( elem, \"select\" ) ) {\n\t\t\t\telem.options.length = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\treturn this.map( function () {\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t});\n\t},\n\n\thtml: function( value ) {\n\t\treturn jQuery.access( this, function( value ) {\n\t\t\tvar elem = this[0] || {},\n\t\t\t\ti = 0,\n\t\t\t\tl = this.length;\n\n\t\t\tif ( value === undefined ) {\n\t\t\t\treturn elem.nodeType === 1 ?\n\t\t\t\t\telem.innerHTML.replace( rinlinejQuery, \"\" ) :\n\t\t\t\t\tundefined;\n\t\t\t}\n\n\t\t\t// See if we can take a shortcut and just use innerHTML\n\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\n\t\t\t\t( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) &&\n\t\t\t\t( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&\n\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [\"\", \"\"] )[1].toLowerCase() ] ) {\n\n\t\t\t\tvalue = value.replace( rxhtmlTag, \"<$1></$2>\" );\n\n\t\t\t\ttry {\n\t\t\t\t\tfor (; i < l; i++ ) {\n\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\t\telem = this[i] || {};\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\t\t\t\t\t\t\telem.innerHTML = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\telem = 0;\n\n\t\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t\t} catch(e) {}\n\t\t\t}\n\n\t\t\tif ( elem ) {\n\t\t\t\tthis.empty().append( value );\n\t\t\t}\n\t\t}, null, value, arguments.length );\n\t},\n\n\treplaceWith: function( value ) {\n\t\tvar isFunc = jQuery.isFunction( value );\n\n\t\t// Make sure that the elements are removed from the DOM before they are inserted\n\t\t// this can help fix replacing a parent with child elements\n\t\tif ( !isFunc && typeof value !== \"string\" ) {\n\t\t\tvalue = jQuery( value ).not( this ).detach();\n\t\t}\n\n\t\treturn this.domManip( [ value ], true, function( elem ) {\n\t\t\tvar next = this.nextSibling,\n\t\t\t\tparent = this.parentNode;\n\n\t\t\tif ( parent ) {\n\t\t\t\tjQuery( this ).remove();\n\t\t\t\tparent.insertBefore( elem, next );\n\t\t\t}\n\t\t});\n\t},\n\n\tdetach: function( selector ) {\n\t\treturn this.remove( selector, true );\n\t},\n\n\tdomManip: function( args, table, callback ) {\n\n\t\t// Flatten any nested arrays\n\t\targs = core_concat.apply( [], args );\n\n\t\tvar first, node, hasScripts,\n\t\t\tscripts, doc, fragment,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tset = this,\n\t\t\tiNoClone = l - 1,\n\t\t\tvalue = args[0],\n\t\t\tisFunction = jQuery.isFunction( value );\n\n\t\t// We can't cloneNode fragments that contain checked, in WebKit\n\t\tif ( isFunction || !( l <= 1 || typeof value !== \"string\" || jQuery.support.checkClone || !rchecked.test( value ) ) ) {\n\t\t\treturn this.each(function( index ) {\n\t\t\t\tvar self = set.eq( index );\n\t\t\t\tif ( isFunction ) {\n\t\t\t\t\targs[0] = value.call( this, index, table ? self.html() : undefined );\n\t\t\t\t}\n\t\t\t\tself.domManip( args, table, callback );\n\t\t\t});\n\t\t}\n\n\t\tif ( l ) {\n\t\t\tfragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );\n\t\t\tfirst = fragment.firstChild;\n\n\t\t\tif ( fragment.childNodes.length === 1 ) {\n\t\t\t\tfragment = first;\n\t\t\t}\n\n\t\t\tif ( first ) {\n\t\t\t\ttable = table && jQuery.nodeName( first, \"tr\" );\n\t\t\t\tscripts = jQuery.map( getAll( fragment, \"script\" ), disableScript );\n\t\t\t\thasScripts = scripts.length;\n\n\t\t\t\t// Use the original fragment for the last item instead of the first because it can end up\n\t\t\t\t// being emptied incorrectly in certain situations (#8070).\n\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\tnode = fragment;\n\n\t\t\t\t\tif ( i !== iNoClone ) {\n\t\t\t\t\t\tnode = jQuery.clone( node, true, true );\n\n\t\t\t\t\t\t// Keep references to cloned scripts for later restoration\n\t\t\t\t\t\tif ( hasScripts ) {\n\t\t\t\t\t\t\tjQuery.merge( scripts, getAll( node, \"script\" ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tcallback.call(\n\t\t\t\t\t\ttable && jQuery.nodeName( this[i], \"table\" ) ?\n\t\t\t\t\t\t\tfindOrAppend( this[i], \"tbody\" ) :\n\t\t\t\t\t\t\tthis[i],\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\ti\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tif ( hasScripts ) {\n\t\t\t\t\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\n\n\t\t\t\t\t// Reenable scripts\n\t\t\t\t\tjQuery.map( scripts, restoreScript );\n\n\t\t\t\t\t// Evaluate executable scripts on first document insertion\n\t\t\t\t\tfor ( i = 0; i < hasScripts; i++ ) {\n\t\t\t\t\t\tnode = scripts[ i ];\n\t\t\t\t\t\tif ( rscriptType.test( node.type || \"\" ) &&\n\t\t\t\t\t\t\t!jQuery._data( node, \"globalEval\" ) && jQuery.contains( doc, node ) ) {\n\n\t\t\t\t\t\t\tif ( node.src ) {\n\t\t\t\t\t\t\t\t// Hope ajax is available...\n\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\turl: node.src,\n\t\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\t\tdataType: \"script\",\n\t\t\t\t\t\t\t\t\tasync: false,\n\t\t\t\t\t\t\t\t\tglobal: false,\n\t\t\t\t\t\t\t\t\t\"throws\": true\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery.globalEval( ( node.text || node.textContent || node.innerHTML || \"\" ).replace( rcleanScript, \"\" ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Fix #11809: Avoid leaking memory\n\t\t\t\tfragment = first = null;\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n});\n\nfunction findOrAppend( elem, tag ) {\n\treturn elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) );\n}\n\n// Replace/restore the type attribute of script elements for safe DOM manipulation\nfunction disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\n\treturn elem;\n}\nfunction restoreScript( elem ) {\n\tvar match = rscriptTypeMasked.exec( elem.type );\n\tif ( match ) {\n\t\telem.type = match[1];\n\t} else {\n\t\telem.removeAttribute(\"type\");\n\t}\n\treturn elem;\n}\n\n// Mark scripts as having already been evaluated\nfunction setGlobalEval( elems, refElements ) {\n\tvar elem,\n\t\ti = 0;\n\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\t\tjQuery._data( elem, \"globalEval\", !refElements || jQuery._data( refElements[i], \"globalEval\" ) );\n\t}\n}\n\nfunction cloneCopyEvent( src, dest ) {\n\n\tif ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {\n\t\treturn;\n\t}\n\n\tvar type, i, l,\n\t\toldData = jQuery._data( src ),\n\t\tcurData = jQuery._data( dest, oldData ),\n\t\tevents = oldData.events;\n\n\tif ( events ) {\n\t\tdelete curData.handle;\n\t\tcurData.events = {};\n\n\t\tfor ( type in events ) {\n\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\n\t\t\t}\n\t\t}\n\t}\n\n\t// make the cloned public data object a copy from the original\n\tif ( curData.data ) {\n\t\tcurData.data = jQuery.extend( {}, curData.data );\n\t}\n}\n\nfunction fixCloneNodeIssues( src, dest ) {\n\tvar nodeName, e, data;\n\n\t// We do not need to do anything for non-Elements\n\tif ( dest.nodeType !== 1 ) {\n\t\treturn;\n\t}\n\n\tnodeName = dest.nodeName.toLowerCase();\n\n\t// IE6-8 copies events bound via attachEvent when using cloneNode.\n\tif ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) {\n\t\tdata = jQuery._data( dest );\n\n\t\tfor ( e in data.events ) {\n\t\t\tjQuery.removeEvent( dest, e, data.handle );\n\t\t}\n\n\t\t// Event data gets referenced instead of copied if the expando gets copied too\n\t\tdest.removeAttribute( jQuery.expando );\n\t}\n\n\t// IE blanks contents when cloning scripts, and tries to evaluate newly-set text\n\tif ( nodeName === \"script\" && dest.text !== src.text ) {\n\t\tdisableScript( dest ).text = src.text;\n\t\trestoreScript( dest );\n\n\t// IE6-10 improperly clones children of object elements using classid.\n\t// IE10 throws NoModificationAllowedError if parent is null, #12132.\n\t} else if ( nodeName === \"object\" ) {\n\t\tif ( dest.parentNode ) {\n\t\t\tdest.outerHTML = src.outerHTML;\n\t\t}\n\n\t\t// This path appears unavoidable for IE9. When cloning an object\n\t\t// element in IE9, the outerHTML strategy above is not sufficient.\n\t\t// If the src has innerHTML and the destination does not,\n\t\t// copy the src.innerHTML into the dest.innerHTML. #10324\n\t\tif ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {\n\t\t\tdest.innerHTML = src.innerHTML;\n\t\t}\n\n\t} else if ( nodeName === \"input\" && manipulation_rcheckableType.test( src.type ) ) {\n\t\t// IE6-8 fails to persist the checked state of a cloned checkbox\n\t\t// or radio button. Worse, IE6-7 fail to give the cloned element\n\t\t// a checked appearance if the defaultChecked value isn't also set\n\n\t\tdest.defaultChecked = dest.checked = src.checked;\n\n\t\t// IE6-7 get confused and end up setting the value of a cloned\n\t\t// checkbox/radio button to an empty string instead of \"on\"\n\t\tif ( dest.value !== src.value ) {\n\t\t\tdest.value = src.value;\n\t\t}\n\n\t// IE6-8 fails to return the selected option to the default selected\n\t// state when cloning options\n\t} else if ( nodeName === \"option\" ) {\n\t\tdest.defaultSelected = dest.selected = src.defaultSelected;\n\n\t// IE6-8 fails to set the defaultValue to the correct value when\n\t// cloning other types of input fields\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\tdest.defaultValue = src.defaultValue;\n\t}\n}\n\njQuery.each({\n\tappendTo: \"append\",\n\tprependTo: \"prepend\",\n\tinsertBefore: \"before\",\n\tinsertAfter: \"after\",\n\treplaceAll: \"replaceWith\"\n}, function( name, original ) {\n\tjQuery.fn[ name ] = function( selector ) {\n\t\tvar elems,\n\t\t\ti = 0,\n\t\t\tret = [],\n\t\t\tinsert = jQuery( selector ),\n\t\t\tlast = insert.length - 1;\n\n\t\tfor ( ; i <= last; i++ ) {\n\t\t\telems = i === last ? this : this.clone(true);\n\t\t\tjQuery( insert[i] )[ original ]( elems );\n\n\t\t\t// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()\n\t\t\tcore_push.apply( ret, elems.get() );\n\t\t}\n\n\t\treturn this.pushStack( ret );\n\t};\n});\n\nfunction getAll( context, tag ) {\n\tvar elems, elem,\n\t\ti = 0,\n\t\tfound = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || \"*\" ) :\n\t\t\ttypeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || \"*\" ) :\n\t\t\tundefined;\n\n\tif ( !found ) {\n\t\tfor ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {\n\t\t\tif ( !tag || jQuery.nodeName( elem, tag ) ) {\n\t\t\t\tfound.push( elem );\n\t\t\t} else {\n\t\t\t\tjQuery.merge( found, getAll( elem, tag ) );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn tag === undefined || tag && jQuery.nodeName( context, tag ) ?\n\t\tjQuery.merge( [ context ], found ) :\n\t\tfound;\n}\n\n// Used in buildFragment, fixes the defaultChecked property\nfunction fixDefaultChecked( elem ) {\n\tif ( manipulation_rcheckableType.test( elem.type ) ) {\n\t\telem.defaultChecked = elem.checked;\n\t}\n}\n\njQuery.extend({\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\tvar destElements, node, clone, i, srcElements,\n\t\t\tinPage = jQuery.contains( elem.ownerDocument, elem );\n\n\t\tif ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( \"<\" + elem.nodeName + \">\" ) ) {\n\t\t\tclone = elem.cloneNode( true );\n\n\t\t// IE<=8 does not properly clone detached, unknown element nodes\n\t\t} else {\n\t\t\tfragmentDiv.innerHTML = elem.outerHTML;\n\t\t\tfragmentDiv.removeChild( clone = fragmentDiv.firstChild );\n\t\t}\n\n\t\tif ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&\n\t\t\t\t(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {\n\n\t\t\t// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2\n\t\t\tdestElements = getAll( clone );\n\t\t\tsrcElements = getAll( elem );\n\n\t\t\t// Fix all IE cloning issues\n\t\t\tfor ( i = 0; (node = srcElements[i]) != null; ++i ) {\n\t\t\t\t// Ensure that the destination node is not null; Fixes #9587\n\t\t\t\tif ( destElements[i] ) {\n\t\t\t\t\tfixCloneNodeIssues( node, destElements[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Copy the events from the original to the clone\n\t\tif ( dataAndEvents ) {\n\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\tsrcElements = srcElements || getAll( elem );\n\t\t\t\tdestElements = destElements || getAll( clone );\n\n\t\t\t\tfor ( i = 0; (node = srcElements[i]) != null; i++ ) {\n\t\t\t\t\tcloneCopyEvent( node, destElements[i] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcloneCopyEvent( elem, clone );\n\t\t\t}\n\t\t}\n\n\t\t// Preserve script evaluation history\n\t\tdestElements = getAll( clone, \"script\" );\n\t\tif ( destElements.length > 0 ) {\n\t\t\tsetGlobalEval( destElements, !inPage && getAll( elem, \"script\" ) );\n\t\t}\n\n\t\tdestElements = srcElements = node = null;\n\n\t\t// Return the cloned set\n\t\treturn clone;\n\t},\n\n\tbuildFragment: function( elems, context, scripts, selection ) {\n\t\tvar j, elem, contains,\n\t\t\ttmp, tag, tbody, wrap,\n\t\t\tl = elems.length,\n\n\t\t\t// Ensure a safe fragment\n\t\t\tsafe = createSafeFragment( context ),\n\n\t\t\tnodes = [],\n\t\t\ti = 0;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\telem = elems[ i ];\n\n\t\t\tif ( elem || elem === 0 ) {\n\n\t\t\t\t// Add nodes directly\n\t\t\t\tif ( jQuery.type( elem ) === \"object\" ) {\n\t\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t\t// Convert non-html into a text node\n\t\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t\t// Convert html into DOM nodes\n\t\t\t\t} else {\n\t\t\t\t\ttmp = tmp || safe.appendChild( context.createElement(\"div\") );\n\n\t\t\t\t\t// Deserialize a standard representation\n\t\t\t\t\ttag = ( rtagName.exec( elem ) || [\"\", \"\"] )[1].toLowerCase();\n\t\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\n\t\t\t\t\ttmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, \"<$1></$2>\" ) + wrap[2];\n\n\t\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\t\tj = wrap[0];\n\t\t\t\t\twhile ( j-- ) {\n\t\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Manually add leading whitespace removed by IE\n\t\t\t\t\tif ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {\n\t\t\t\t\t\tnodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remove IE's autoinserted <tbody> from table fragments\n\t\t\t\t\tif ( !jQuery.support.tbody ) {\n\n\t\t\t\t\t\t// String was a <table>, *may* have spurious <tbody>\n\t\t\t\t\t\telem = tag === \"table\" && !rtbody.test( elem ) ?\n\t\t\t\t\t\t\ttmp.firstChild :\n\n\t\t\t\t\t\t\t// String was a bare <thead> or <tfoot>\n\t\t\t\t\t\t\twrap[1] === \"<table>\" && !rtbody.test( elem ) ?\n\t\t\t\t\t\t\t\ttmp :\n\t\t\t\t\t\t\t\t0;\n\n\t\t\t\t\t\tj = elem && elem.childNodes.length;\n\t\t\t\t\t\twhile ( j-- ) {\n\t\t\t\t\t\t\tif ( jQuery.nodeName( (tbody = elem.childNodes[j]), \"tbody\" ) && !tbody.childNodes.length ) {\n\t\t\t\t\t\t\t\telem.removeChild( tbody );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t\t// Fix #12392 for WebKit and IE > 9\n\t\t\t\t\ttmp.textContent = \"\";\n\n\t\t\t\t\t// Fix #12392 for oldIE\n\t\t\t\t\twhile ( tmp.firstChild ) {\n\t\t\t\t\t\ttmp.removeChild( tmp.firstChild );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remember the top-level container for proper cleanup\n\t\t\t\t\ttmp = safe.lastChild;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Fix #11356: Clear elements from fragment\n\t\tif ( tmp ) {\n\t\t\tsafe.removeChild( tmp );\n\t\t}\n\n\t\t// Reset defaultChecked for any radios and checkboxes\n\t\t// about to be appended to the DOM in IE 6/7 (#8060)\n\t\tif ( !jQuery.support.appendChecked ) {\n\t\t\tjQuery.grep( getAll( nodes, \"input\" ), fixDefaultChecked );\n\t\t}\n\n\t\ti = 0;\n\t\twhile ( (elem = nodes[ i++ ]) ) {\n\n\t\t\t// #4087 - If origin and destination elements are the same, and this is\n\t\t\t// that element, do not do anything\n\t\t\tif ( selection && jQuery.inArray( elem, selection ) !== -1 ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tcontains = jQuery.contains( elem.ownerDocument, elem );\n\n\t\t\t// Append to fragment\n\t\t\ttmp = getAll( safe.appendChild( elem ), \"script\" );\n\n\t\t\t// Preserve script evaluation history\n\t\t\tif ( contains ) {\n\t\t\t\tsetGlobalEval( tmp );\n\t\t\t}\n\n\t\t\t// Capture executables\n\t\t\tif ( scripts ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( (elem = tmp[ j++ ]) ) {\n\t\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\t\tscripts.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttmp = null;\n\n\t\treturn safe;\n\t},\n\n\tcleanData: function( elems, /* internal */ acceptData ) {\n\t\tvar elem, type, id, data,\n\t\t\ti = 0,\n\t\t\tinternalKey = jQuery.expando,\n\t\t\tcache = jQuery.cache,\n\t\t\tdeleteExpando = jQuery.support.deleteExpando,\n\t\t\tspecial = jQuery.event.special;\n\n\t\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\n\t\t\tif ( acceptData || jQuery.acceptData( elem ) ) {\n\n\t\t\t\tid = elem[ internalKey ];\n\t\t\t\tdata = id && cache[ id ];\n\n\t\t\t\tif ( data ) {\n\t\t\t\t\tif ( data.events ) {\n\t\t\t\t\t\tfor ( type in data.events ) {\n\t\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\t\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remove cache only if it was not already removed by jQuery.event.remove\n\t\t\t\t\tif ( cache[ id ] ) {\n\n\t\t\t\t\t\tdelete cache[ id ];\n\n\t\t\t\t\t\t// IE does not allow us to delete expando properties from nodes,\n\t\t\t\t\t\t// nor does it have a removeAttribute function on Document nodes;\n\t\t\t\t\t\t// we must handle all of these cases\n\t\t\t\t\t\tif ( deleteExpando ) {\n\t\t\t\t\t\t\tdelete elem[ internalKey ];\n\n\t\t\t\t\t\t} else if ( typeof elem.removeAttribute !== core_strundefined ) {\n\t\t\t\t\t\t\telem.removeAttribute( internalKey );\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telem[ internalKey ] = null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcore_deletedIds.push( id );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n});\nvar iframe, getStyles, curCSS,\n\tralpha = /alpha\\([^)]*\\)/i,\n\tropacity = /opacity\\s*=\\s*([^)]*)/,\n\trposition = /^(top|right|bottom|left)$/,\n\t// swappable if display is none or starts with table except \"table\", \"table-cell\", or \"table-caption\"\n\t// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\n\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\n\trmargin = /^margin/,\n\trnumsplit = new RegExp( \"^(\" + core_pnum + \")(.*)$\", \"i\" ),\n\trnumnonpx = new RegExp( \"^(\" + core_pnum + \")(?!px)[a-z%]+$\", \"i\" ),\n\trrelNum = new RegExp( \"^([+-])=(\" + core_pnum + \")\", \"i\" ),\n\telemdisplay = { BODY: \"block\" },\n\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\tcssNormalTransform = {\n\t\tletterSpacing: 0,\n\t\tfontWeight: 400\n\t},\n\n\tcssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ],\n\tcssPrefixes = [ \"Webkit\", \"O\", \"Moz\", \"ms\" ];\n\n// return a css property mapped to a potentially vendor prefixed property\nfunction vendorPropName( style, name ) {\n\n\t// shortcut for names that are not vendor prefixed\n\tif ( name in style ) {\n\t\treturn name;\n\t}\n\n\t// check for vendor prefixed names\n\tvar capName = name.charAt(0).toUpperCase() + name.slice(1),\n\t\torigName = name,\n\t\ti = cssPrefixes.length;\n\n\twhile ( i-- ) {\n\t\tname = cssPrefixes[ i ] + capName;\n\t\tif ( name in style ) {\n\t\t\treturn name;\n\t\t}\n\t}\n\n\treturn origName;\n}\n\nfunction isHidden( elem, el ) {\n\t// isHidden might be called from jQuery#filter function;\n\t// in that case, element will be second argument\n\telem = el || elem;\n\treturn jQuery.css( elem, \"display\" ) === \"none\" || !jQuery.contains( elem.ownerDocument, elem );\n}\n\nfunction showHide( elements, show ) {\n\tvar display, elem, hidden,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tvalues[ index ] = jQuery._data( elem, \"olddisplay\" );\n\t\tdisplay = elem.style.display;\n\t\tif ( show ) {\n\t\t\t// Reset the inline display of this element to learn if it is\n\t\t\t// being hidden by cascaded rules or not\n\t\t\tif ( !values[ index ] && display === \"none\" ) {\n\t\t\t\telem.style.display = \"\";\n\t\t\t}\n\n\t\t\t// Set elements which have been overridden with display: none\n\t\t\t// in a stylesheet to whatever the default browser style is\n\t\t\t// for such an element\n\t\t\tif ( elem.style.display === \"\" && isHidden( elem ) ) {\n\t\t\t\tvalues[ index ] = jQuery._data( elem, \"olddisplay\", css_defaultDisplay(elem.nodeName) );\n\t\t\t}\n\t\t} else {\n\n\t\t\tif ( !values[ index ] ) {\n\t\t\t\thidden = isHidden( elem );\n\n\t\t\t\tif ( display && display !== \"none\" || !hidden ) {\n\t\t\t\t\tjQuery._data( elem, \"olddisplay\", hidden ? display : jQuery.css( elem, \"display\" ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of most of the elements in a second loop\n\t// to avoid the constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( !show || elem.style.display === \"none\" || elem.style.display === \"\" ) {\n\t\t\telem.style.display = show ? values[ index ] || \"\" : \"none\";\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend({\n\tcss: function( name, value ) {\n\t\treturn jQuery.access( this, function( elem, name, value ) {\n\t\t\tvar len, styles,\n\t\t\t\tmap = {},\n\t\t\t\ti = 0;\n\n\t\t\tif ( jQuery.isArray( name ) ) {\n\t\t\t\tstyles = getStyles( elem );\n\t\t\t\tlen = name.length;\n\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\n\t\t\t\t}\n\n\t\t\t\treturn map;\n\t\t\t}\n\n\t\t\treturn value !== undefined ?\n\t\t\t\tjQuery.style( elem, name, value ) :\n\t\t\t\tjQuery.css( elem, name );\n\t\t}, name, value, arguments.length > 1 );\n\t},\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state ) {\n\t\tvar bool = typeof state === \"boolean\";\n\n\t\treturn this.each(function() {\n\t\t\tif ( bool ? state : isHidden( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t});\n\t}\n});\n\njQuery.extend({\n\t// Add in style property hooks for overriding the default\n\t// behavior of getting and setting a style property\n\tcssHooks: {\n\t\topacity: {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// Exclude the following css properties to add px\n\tcssNumber: {\n\t\t\"columnCount\": true,\n\t\t\"fillOpacity\": true,\n\t\t\"fontWeight\": true,\n\t\t\"lineHeight\": true,\n\t\t\"opacity\": true,\n\t\t\"orphans\": true,\n\t\t\"widows\": true,\n\t\t\"zIndex\": true,\n\t\t\"zoom\": true\n\t},\n\n\t// Add in properties whose names you wish to fix before\n\t// setting or getting the value\n\tcssProps: {\n\t\t// normalize float css property\n\t\t\"float\": jQuery.support.cssFloat ? \"cssFloat\" : \"styleFloat\"\n\t},\n\n\t// Get and set the style property on a DOM Node\n\tstyle: function( elem, name, value, extra ) {\n\t\t// Don't set styles on text and comment nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, type, hooks,\n\t\t\torigName = jQuery.camelCase( name ),\n\t\t\tstyle = elem.style;\n\n\t\tname = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );\n\n\t\t// gets hook for the prefixed version\n\t\t// followed by the unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// Check if we're setting a value\n\t\tif ( value !== undefined ) {\n\t\t\ttype = typeof value;\n\n\t\t\t// convert relative number strings (+= or -=) to relative numbers. #7345\n\t\t\tif ( type === \"string\" && (ret = rrelNum.exec( value )) ) {\n\t\t\t\tvalue = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );\n\t\t\t\t// Fixes bug #9237\n\t\t\t\ttype = \"number\";\n\t\t\t}\n\n\t\t\t// Make sure that NaN and null values aren't set. See: #7116\n\t\t\tif ( value == null || type === \"number\" && isNaN( value ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If a number was passed in, add 'px' to the (except for certain CSS properties)\n\t\t\tif ( type === \"number\" && !jQuery.cssNumber[ origName ] ) {\n\t\t\t\tvalue += \"px\";\n\t\t\t}\n\n\t\t\t// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,\n\t\t\t// but it would mean to define eight (for every problematic property) identical functions\n\t\t\tif ( !jQuery.support.clearCloneStyle && value === \"\" && name.indexOf(\"background\") === 0 ) {\n\t\t\t\tstyle[ name ] = \"inherit\";\n\t\t\t}\n\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\tif ( !hooks || !(\"set\" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {\n\n\t\t\t\t// Wrapped to prevent IE from throwing errors when 'invalid' values are provided\n\t\t\t\t// Fixes bug #5509\n\t\t\t\ttry {\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t} catch(e) {}\n\t\t\t}\n\n\t\t} else {\n\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\t// Otherwise just get the value from the style object\n\t\t\treturn style[ name ];\n\t\t}\n\t},\n\n\tcss: function( elem, name, extra, styles ) {\n\t\tvar num, val, hooks,\n\t\t\torigName = jQuery.camelCase( name );\n\n\t\t// Make sure that we're working with the right name\n\t\tname = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );\n\n\t\t// gets hook for the prefixed version\n\t\t// followed by the unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// If a hook was provided get the computed value from there\n\t\tif ( hooks && \"get\" in hooks ) {\n\t\t\tval = hooks.get( elem, true, extra );\n\t\t}\n\n\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\tif ( val === undefined ) {\n\t\t\tval = curCSS( elem, name, styles );\n\t\t}\n\n\t\t//convert \"normal\" to computed value\n\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\n\t\t\tval = cssNormalTransform[ name ];\n\t\t}\n\n\t\t// Return, converting to number if forced or a qualifier was provided and val looks numeric\n\t\tif ( extra === \"\" || extra ) {\n\t\t\tnum = parseFloat( val );\n\t\t\treturn extra === true || jQuery.isNumeric( num ) ? num || 0 : val;\n\t\t}\n\t\treturn val;\n\t},\n\n\t// A method for quickly swapping in/out CSS properties to get correct calculations\n\tswap: function( elem, options, callback, args ) {\n\t\tvar ret, name,\n\t\t\told = {};\n\n\t\t// Remember the old values, and insert the new ones\n\t\tfor ( name in options ) {\n\t\t\told[ name ] = elem.style[ name ];\n\t\t\telem.style[ name ] = options[ name ];\n\t\t}\n\n\t\tret = callback.apply( elem, args || [] );\n\n\t\t// Revert the old values\n\t\tfor ( name in options ) {\n\t\t\telem.style[ name ] = old[ name ];\n\t\t}\n\n\t\treturn ret;\n\t}\n});\n\n// NOTE: we've included the \"window\" in window.getComputedStyle\n// because jsdom on node.js will break without it.\nif ( window.getComputedStyle ) {\n\tgetStyles = function( elem ) {\n\t\treturn window.getComputedStyle( elem, null );\n\t};\n\n\tcurCSS = function( elem, name, _computed ) {\n\t\tvar width, minWidth, maxWidth,\n\t\t\tcomputed = _computed || getStyles( elem ),\n\n\t\t\t// getPropertyValue is only needed for .css('filter') in IE9, see #12537\n\t\t\tret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined,\n\t\t\tstyle = elem.style;\n\n\t\tif ( computed ) {\n\n\t\t\tif ( ret === \"\" && !jQuery.contains( elem.ownerDocument, elem ) ) {\n\t\t\t\tret = jQuery.style( elem, name );\n\t\t\t}\n\n\t\t\t// A tribute to the \"awesome hack by Dean Edwards\"\n\t\t\t// Chrome < 17 and Safari 5.0 uses \"computed value\" instead of \"used value\" for margin-right\n\t\t\t// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels\n\t\t\t// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values\n\t\t\tif ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {\n\n\t\t\t\t// Remember the original values\n\t\t\t\twidth = style.width;\n\t\t\t\tminWidth = style.minWidth;\n\t\t\t\tmaxWidth = style.maxWidth;\n\n\t\t\t\t// Put in the new values to get a computed value out\n\t\t\t\tstyle.minWidth = style.maxWidth = style.width = ret;\n\t\t\t\tret = computed.width;\n\n\t\t\t\t// Revert the changed values\n\t\t\t\tstyle.width = width;\n\t\t\t\tstyle.minWidth = minWidth;\n\t\t\t\tstyle.maxWidth = maxWidth;\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t};\n} else if ( document.documentElement.currentStyle ) {\n\tgetStyles = function( elem ) {\n\t\treturn elem.currentStyle;\n\t};\n\n\tcurCSS = function( elem, name, _computed ) {\n\t\tvar left, rs, rsLeft,\n\t\t\tcomputed = _computed || getStyles( elem ),\n\t\t\tret = computed ? computed[ name ] : undefined,\n\t\t\tstyle = elem.style;\n\n\t\t// Avoid setting ret to empty string here\n\t\t// so we don't default to auto\n\t\tif ( ret == null && style && style[ name ] ) {\n\t\t\tret = style[ name ];\n\t\t}\n\n\t\t// From the awesome hack by Dean Edwards\n\t\t// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291\n\n\t\t// If we're not dealing with a regular pixel number\n\t\t// but a number that has a weird ending, we need to convert it to pixels\n\t\t// but not position css attributes, as those are proportional to the parent element instead\n\t\t// and we can't measure the parent instead because it might trigger a \"stacking dolls\" problem\n\t\tif ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {\n\n\t\t\t// Remember the original values\n\t\t\tleft = style.left;\n\t\t\trs = elem.runtimeStyle;\n\t\t\trsLeft = rs && rs.left;\n\n\t\t\t// Put in the new values to get a computed value out\n\t\t\tif ( rsLeft ) {\n\t\t\t\trs.left = elem.currentStyle.left;\n\t\t\t}\n\t\t\tstyle.left = name === \"fontSize\" ? \"1em\" : ret;\n\t\t\tret = style.pixelLeft + \"px\";\n\n\t\t\t// Revert the changed values\n\t\t\tstyle.left = left;\n\t\t\tif ( rsLeft ) {\n\t\t\t\trs.left = rsLeft;\n\t\t\t}\n\t\t}\n\n\t\treturn ret === \"\" ? \"auto\" : ret;\n\t};\n}\n\nfunction setPositiveNumber( elem, value, subtract ) {\n\tvar matches = rnumsplit.exec( value );\n\treturn matches ?\n\t\t// Guard against undefined \"subtract\", e.g., when used as in cssHooks\n\t\tMath.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || \"px\" ) :\n\t\tvalue;\n}\n\nfunction augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {\n\tvar i = extra === ( isBorderBox ? \"border\" : \"content\" ) ?\n\t\t// If we already have the right measurement, avoid augmentation\n\t\t4 :\n\t\t// Otherwise initialize for horizontal or vertical properties\n\t\tname === \"width\" ? 1 : 0,\n\n\t\tval = 0;\n\n\tfor ( ; i < 4; i += 2 ) {\n\t\t// both box models exclude margin, so add it if we want it\n\t\tif ( extra === \"margin\" ) {\n\t\t\tval += jQuery.css( elem, extra + cssExpand[ i ], true, styles );\n\t\t}\n\n\t\tif ( isBorderBox ) {\n\t\t\t// border-box includes padding, so remove it if we want content\n\t\t\tif ( extra === \"content\" ) {\n\t\t\t\tval -= jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\t\t\t}\n\n\t\t\t// at this point, extra isn't border nor margin, so remove border\n\t\t\tif ( extra !== \"margin\" ) {\n\t\t\t\tval -= jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\t\t} else {\n\t\t\t// at this point, extra isn't content, so add padding\n\t\t\tval += jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\n\t\t\t// at this point, extra isn't content nor padding, so add border\n\t\t\tif ( extra !== \"padding\" ) {\n\t\t\t\tval += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn val;\n}\n\nfunction getWidthOrHeight( elem, name, extra ) {\n\n\t// Start with offset property, which is equivalent to the border-box value\n\tvar valueIsBorderBox = true,\n\t\tval = name === \"width\" ? elem.offsetWidth : elem.offsetHeight,\n\t\tstyles = getStyles( elem ),\n\t\tisBorderBox = jQuery.support.boxSizing && jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\";\n\n\t// some non-html elements return undefined for offsetWidth, so check for null/undefined\n\t// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285\n\t// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668\n\tif ( val <= 0 || val == null ) {\n\t\t// Fall back to computed then uncomputed css if necessary\n\t\tval = curCSS( elem, name, styles );\n\t\tif ( val < 0 || val == null ) {\n\t\t\tval = elem.style[ name ];\n\t\t}\n\n\t\t// Computed unit is not pixels. Stop here and return.\n\t\tif ( rnumnonpx.test(val) ) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// we need the check for style in case a browser which returns unreliable values\n\t\t// for getComputedStyle silently falls back to the reliable elem.style\n\t\tvalueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );\n\n\t\t// Normalize \"\", auto, and prepare for extra\n\t\tval = parseFloat( val ) || 0;\n\t}\n\n\t// use the active box-sizing model to add/subtract irrelevant styles\n\treturn ( val +\n\t\taugmentWidthOrHeight(\n\t\t\telem,\n\t\t\tname,\n\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\n\t\t\tvalueIsBorderBox,\n\t\t\tstyles\n\t\t)\n\t) + \"px\";\n}\n\n// Try to determine the default display value of an element\nfunction css_defaultDisplay( nodeName ) {\n\tvar doc = document,\n\t\tdisplay = elemdisplay[ nodeName ];\n\n\tif ( !display ) {\n\t\tdisplay = actualDisplay( nodeName, doc );\n\n\t\t// If the simple way fails, read from inside an iframe\n\t\tif ( display === \"none\" || !display ) {\n\t\t\t// Use the already-created iframe if possible\n\t\t\tiframe = ( iframe ||\n\t\t\t\tjQuery(\"<iframe frameborder='0' width='0' height='0'/>\")\n\t\t\t\t.css( \"cssText\", \"display:block !important\" )\n\t\t\t).appendTo( doc.documentElement );\n\n\t\t\t// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse\n\t\t\tdoc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document;\n\t\t\tdoc.write(\"<!doctype html><html><body>\");\n\t\t\tdoc.close();\n\n\t\t\tdisplay = actualDisplay( nodeName, doc );\n\t\t\tiframe.detach();\n\t\t}\n\n\t\t// Store the correct default display\n\t\telemdisplay[ nodeName ] = display;\n\t}\n\n\treturn display;\n}\n\n// Called ONLY from within css_defaultDisplay\nfunction actualDisplay( name, doc ) {\n\tvar elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),\n\t\tdisplay = jQuery.css( elem[0], \"display\" );\n\telem.remove();\n\treturn display;\n}\n\njQuery.each([ \"height\", \"width\" ], function( i, name ) {\n\tjQuery.cssHooks[ name ] = {\n\t\tget: function( elem, computed, extra ) {\n\t\t\tif ( computed ) {\n\t\t\t\t// certain elements can have dimension info if we invisibly show them\n\t\t\t\t// however, it must have a current display style that would benefit from this\n\t\t\t\treturn elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, \"display\" ) ) ?\n\t\t\t\t\tjQuery.swap( elem, cssShow, function() {\n\t\t\t\t\t\treturn getWidthOrHeight( elem, name, extra );\n\t\t\t\t\t}) :\n\t\t\t\t\tgetWidthOrHeight( elem, name, extra );\n\t\t\t}\n\t\t},\n\n\t\tset: function( elem, value, extra ) {\n\t\t\tvar styles = extra && getStyles( elem );\n\t\t\treturn setPositiveNumber( elem, value, extra ?\n\t\t\t\taugmentWidthOrHeight(\n\t\t\t\t\telem,\n\t\t\t\t\tname,\n\t\t\t\t\textra,\n\t\t\t\t\tjQuery.support.boxSizing && jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\t\t\t\tstyles\n\t\t\t\t) : 0\n\t\t\t);\n\t\t}\n\t};\n});\n\nif ( !jQuery.support.opacity ) {\n\tjQuery.cssHooks.opacity = {\n\t\tget: function( elem, computed ) {\n\t\t\t// IE uses filters for opacity\n\t\t\treturn ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || \"\" ) ?\n\t\t\t\t( 0.01 * parseFloat( RegExp.$1 ) ) + \"\" :\n\t\t\t\tcomputed ? \"1\" : \"\";\n\t\t},\n\n\t\tset: function( elem, value ) {\n\t\t\tvar style = elem.style,\n\t\t\t\tcurrentStyle = elem.currentStyle,\n\t\t\t\topacity = jQuery.isNumeric( value ) ? \"alpha(opacity=\" + value * 100 + \")\" : \"\",\n\t\t\t\tfilter = currentStyle && currentStyle.filter || style.filter || \"\";\n\n\t\t\t// IE has trouble with opacity if it does not have layout\n\t\t\t// Force it by setting the zoom level\n\t\t\tstyle.zoom = 1;\n\n\t\t\t// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652\n\t\t\t// if value === \"\", then remove inline opacity #12685\n\t\t\tif ( ( value >= 1 || value === \"\" ) &&\n\t\t\t\t\tjQuery.trim( filter.replace( ralpha, \"\" ) ) === \"\" &&\n\t\t\t\t\tstyle.removeAttribute ) {\n\n\t\t\t\t// Setting style.filter to null, \"\" & \" \" still leave \"filter:\" in the cssText\n\t\t\t\t// if \"filter:\" is present at all, clearType is disabled, we want to avoid this\n\t\t\t\t// style.removeAttribute is IE Only, but so apparently is this code path...\n\t\t\t\tstyle.removeAttribute( \"filter\" );\n\n\t\t\t\t// if there is no filter style applied in a css rule or unset inline opacity, we are done\n\t\t\t\tif ( value === \"\" || currentStyle && !currentStyle.filter ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// otherwise, set new filter values\n\t\t\tstyle.filter = ralpha.test( filter ) ?\n\t\t\t\tfilter.replace( ralpha, opacity ) :\n\t\t\t\tfilter + \" \" + opacity;\n\t\t}\n\t};\n}\n\n// These hooks cannot be added until DOM ready because the support test\n// for it is not run until after DOM ready\njQuery(function() {\n\tif ( !jQuery.support.reliableMarginRight ) {\n\t\tjQuery.cssHooks.marginRight = {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\t\t\t\t\t// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\n\t\t\t\t\t// Work around by temporarily setting element display to inline-block\n\t\t\t\t\treturn jQuery.swap( elem, { \"display\": \"inline-block\" },\n\t\t\t\t\t\tcurCSS, [ elem, \"marginRight\" ] );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\n\t// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\n\t// getComputedStyle returns percent when specified for top/left/bottom/right\n\t// rather than make the css module depend on the offset module, we just check for it here\n\tif ( !jQuery.support.pixelPosition && jQuery.fn.position ) {\n\t\tjQuery.each( [ \"top\", \"left\" ], function( i, prop ) {\n\t\t\tjQuery.cssHooks[ prop ] = {\n\t\t\t\tget: function( elem, computed ) {\n\t\t\t\t\tif ( computed ) {\n\t\t\t\t\t\tcomputed = curCSS( elem, prop );\n\t\t\t\t\t\t// if curCSS returns percentage, fallback to offset\n\t\t\t\t\t\treturn rnumnonpx.test( computed ) ?\n\t\t\t\t\t\t\tjQuery( elem ).position()[ prop ] + \"px\" :\n\t\t\t\t\t\t\tcomputed;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\n});\n\nif ( jQuery.expr && jQuery.expr.filters ) {\n\tjQuery.expr.filters.hidden = function( elem ) {\n\t\t// Support: Opera <= 12.12\n\t\t// Opera reports offsetWidths and offsetHeights less than zero on some elements\n\t\treturn elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||\n\t\t\t(!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, \"display\" )) === \"none\");\n\t};\n\n\tjQuery.expr.filters.visible = function( elem ) {\n\t\treturn !jQuery.expr.filters.hidden( elem );\n\t};\n}\n\n// These hooks are used by animate to expand properties\njQuery.each({\n\tmargin: \"\",\n\tpadding: \"\",\n\tborder: \"Width\"\n}, function( prefix, suffix ) {\n\tjQuery.cssHooks[ prefix + suffix ] = {\n\t\texpand: function( value ) {\n\t\t\tvar i = 0,\n\t\t\t\texpanded = {},\n\n\t\t\t\t// assumes a single number if not a string\n\t\t\t\tparts = typeof value === \"string\" ? value.split(\" \") : [ value ];\n\n\t\t\tfor ( ; i < 4; i++ ) {\n\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\n\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\n\t\t\t}\n\n\t\t\treturn expanded;\n\t\t}\n\t};\n\n\tif ( !rmargin.test( prefix ) ) {\n\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\n\t}\n});\nvar r20 = /%20/g,\n\trbracket = /\\[\\]$/,\n\trCRLF = /\\r?\\n/g,\n\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\n\trsubmittable = /^(?:input|select|textarea|keygen)/i;\n\njQuery.fn.extend({\n\tserialize: function() {\n\t\treturn jQuery.param( this.serializeArray() );\n\t},\n\tserializeArray: function() {\n\t\treturn this.map(function(){\n\t\t\t// Can add propHook for \"elements\" to filter or add form elements\n\t\t\tvar elements = jQuery.prop( this, \"elements\" );\n\t\t\treturn elements ? jQuery.makeArray( elements ) : this;\n\t\t})\n\t\t.filter(function(){\n\t\t\tvar type = this.type;\n\t\t\t// Use .is(\":disabled\") so that fieldset[disabled] works\n\t\t\treturn this.name && !jQuery( this ).is( \":disabled\" ) &&\n\t\t\t\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\n\t\t\t\t( this.checked || !manipulation_rcheckableType.test( type ) );\n\t\t})\n\t\t.map(function( i, elem ){\n\t\t\tvar val = jQuery( this ).val();\n\n\t\t\treturn val == null ?\n\t\t\t\tnull :\n\t\t\t\tjQuery.isArray( val ) ?\n\t\t\t\t\tjQuery.map( val, function( val ){\n\t\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t\t}) :\n\t\t\t\t\t{ name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t}).get();\n\t}\n});\n\n//Serialize an array of form elements or a set of\n//key/values into a query string\njQuery.param = function( a, traditional ) {\n\tvar prefix,\n\t\ts = [],\n\t\tadd = function( key, value ) {\n\t\t\t// If value is a function, invoke it and return its value\n\t\t\tvalue = jQuery.isFunction( value ) ? value() : ( value == null ? \"\" : value );\n\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" + encodeURIComponent( value );\n\t\t};\n\n\t// Set traditional to true for jQuery <= 1.3.2 behavior.\n\tif ( traditional === undefined ) {\n\t\ttraditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;\n\t}\n\n\t// If an array was passed in, assume that it is an array of form elements.\n\tif ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\t\t// Serialize the form elements\n\t\tjQuery.each( a, function() {\n\t\t\tadd( this.name, this.value );\n\t\t});\n\n\t} else {\n\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t// did it), otherwise encode params recursively.\n\t\tfor ( prefix in a ) {\n\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t}\n\t}\n\n\t// Return the resulting serialization\n\treturn s.join( \"&\" ).replace( r20, \"+\" );\n};\n\nfunction buildParams( prefix, obj, traditional, add ) {\n\tvar name;\n\n\tif ( jQuery.isArray( obj ) ) {\n\t\t// Serialize array item.\n\t\tjQuery.each( obj, function( i, v ) {\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\tadd( prefix, v );\n\n\t\t\t} else {\n\t\t\t\t// Item is non-scalar (array or object), encode its numeric index.\n\t\t\t\tbuildParams( prefix + \"[\" + ( typeof v === \"object\" ? i : \"\" ) + \"]\", v, traditional, add );\n\t\t\t}\n\t\t});\n\n\t} else if ( !traditional && jQuery.type( obj ) === \"object\" ) {\n\t\t// Serialize object item.\n\t\tfor ( name in obj ) {\n\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t}\n\n\t} else {\n\t\t// Serialize scalar item.\n\t\tadd( prefix, obj );\n\t}\n}\njQuery.each( (\"blur focus focusin focusout load resize scroll unload click dblclick \" +\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\"change select submit keydown keypress keyup error contextmenu\").split(\" \"), function( i, name ) {\n\n\t// Handle event binding\n\tjQuery.fn[ name ] = function( data, fn ) {\n\t\treturn arguments.length > 0 ?\n\t\t\tthis.on( name, null, data, fn ) :\n\t\t\tthis.trigger( name );\n\t};\n});\n\njQuery.fn.hover = function( fnOver, fnOut ) {\n\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\n};\nvar\n\t// Document location\n\tajaxLocParts,\n\tajaxLocation,\n\tajax_nonce = jQuery.now(),\n\n\tajax_rquery = /\\?/,\n\trhash = /#.*$/,\n\trts = /([?&])_=[^&]*/,\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/mg, // IE leaves an \\r character at EOL\n\t// #7653, #8125, #8152: local protocol detection\n\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\n\trnoContent = /^(?:GET|HEAD)$/,\n\trprotocol = /^\\/\\//,\n\trurl = /^([\\w.+-]+:)(?:\\/\\/([^\\/?#:]*)(?::(\\d+)|)|)/,\n\n\t// Keep a copy of the old load method\n\t_load = jQuery.fn.load,\n\n\t/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t * - BEFORE asking for a transport\n\t * - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol \"*\" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t */\n\tprefilters = {},\n\n\t/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol \"*\" can be used\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t */\n\ttransports = {},\n\n\t// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\n\tallTypes = \"*/\".concat(\"*\");\n\n// #8138, IE may throw an exception when accessing\n// a field from window.location if document.domain has been set\ntry {\n\tajaxLocation = location.href;\n} catch( e ) {\n\t// Use the href attribute of an A element\n\t// since IE will modify it given document.location\n\tajaxLocation = document.createElement( \"a\" );\n\tajaxLocation.href = \"\";\n\tajaxLocation = ajaxLocation.href;\n}\n\n// Segment location into parts\najaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];\n\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports( structure ) {\n\n\t// dataTypeExpression is optional and defaults to \"*\"\n\treturn function( dataTypeExpression, func ) {\n\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\tfunc = dataTypeExpression;\n\t\t\tdataTypeExpression = \"*\";\n\t\t}\n\n\t\tvar dataType,\n\t\t\ti = 0,\n\t\t\tdataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || [];\n\n\t\tif ( jQuery.isFunction( func ) ) {\n\t\t\t// For each dataType in the dataTypeExpression\n\t\t\twhile ( (dataType = dataTypes[i++]) ) {\n\t\t\t\t// Prepend if requested\n\t\t\t\tif ( dataType[0] === \"+\" ) {\n\t\t\t\t\tdataType = dataType.slice( 1 ) || \"*\";\n\t\t\t\t\t(structure[ dataType ] = structure[ dataType ] || []).unshift( func );\n\n\t\t\t\t// Otherwise append\n\t\t\t\t} else {\n\t\t\t\t\t(structure[ dataType ] = structure[ dataType ] || []).push( func );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\n// Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n\n\tvar inspected = {},\n\t\tseekingTransport = ( structure === transports );\n\n\tfunction inspect( dataType ) {\n\t\tvar selected;\n\t\tinspected[ dataType ] = true;\n\t\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\n\t\t\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\n\t\t\tif( typeof dataTypeOrTransport === \"string\" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {\n\t\t\t\toptions.dataTypes.unshift( dataTypeOrTransport );\n\t\t\t\tinspect( dataTypeOrTransport );\n\t\t\t\treturn false;\n\t\t\t} else if ( seekingTransport ) {\n\t\t\t\treturn !( selected = dataTypeOrTransport );\n\t\t\t}\n\t\t});\n\t\treturn selected;\n\t}\n\n\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \"*\" ] && inspect( \"*\" );\n}\n\n// A special extend for ajax options\n// that takes \"flat\" options (not to be deep extended)\n// Fixes #9887\nfunction ajaxExtend( target, src ) {\n\tvar deep, key,\n\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\n\n\tfor ( key in src ) {\n\t\tif ( src[ key ] !== undefined ) {\n\t\t\t( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];\n\t\t}\n\t}\n\tif ( deep ) {\n\t\tjQuery.extend( true, target, deep );\n\t}\n\n\treturn target;\n}\n\njQuery.fn.load = function( url, params, callback ) {\n\tif ( typeof url !== \"string\" && _load ) {\n\t\treturn _load.apply( this, arguments );\n\t}\n\n\tvar selector, response, type,\n\t\tself = this,\n\t\toff = url.indexOf(\" \");\n\n\tif ( off >= 0 ) {\n\t\tselector = url.slice( off, url.length );\n\t\turl = url.slice( 0, off );\n\t}\n\n\t// If it's a function\n\tif ( jQuery.isFunction( params ) ) {\n\n\t\t// We assume that it's the callback\n\t\tcallback = params;\n\t\tparams = undefined;\n\n\t// Otherwise, build a param string\n\t} else if ( params && typeof params === \"object\" ) {\n\t\ttype = \"POST\";\n\t}\n\n\t// If we have elements to modify, make the request\n\tif ( self.length > 0 ) {\n\t\tjQuery.ajax({\n\t\t\turl: url,\n\n\t\t\t// if \"type\" variable is undefined, then \"GET\" method will be used\n\t\t\ttype: type,\n\t\t\tdataType: \"html\",\n\t\t\tdata: params\n\t\t}).done(function( responseText ) {\n\n\t\t\t// Save response for use in complete callback\n\t\t\tresponse = arguments;\n\n\t\t\tself.html( selector ?\n\n\t\t\t\t// If a selector was specified, locate the right elements in a dummy div\n\t\t\t\t// Exclude scripts to avoid IE 'Permission Denied' errors\n\t\t\t\tjQuery(\"<div>\").append( jQuery.parseHTML( responseText ) ).find( selector ) :\n\n\t\t\t\t// Otherwise use the full result\n\t\t\t\tresponseText );\n\n\t\t}).complete( callback && function( jqXHR, status ) {\n\t\t\tself.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );\n\t\t});\n\t}\n\n\treturn this;\n};\n\n// Attach a bunch of functions for handling common AJAX events\njQuery.each( [ \"ajaxStart\", \"ajaxStop\", \"ajaxComplete\", \"ajaxError\", \"ajaxSuccess\", \"ajaxSend\" ], function( i, type ){\n\tjQuery.fn[ type ] = function( fn ){\n\t\treturn this.on( type, fn );\n\t};\n});\n\njQuery.each( [ \"get\", \"post\" ], function( i, method ) {\n\tjQuery[ method ] = function( url, data, callback, type ) {\n\t\t// shift arguments if data argument was omitted\n\t\tif ( jQuery.isFunction( data ) ) {\n\t\t\ttype = type || callback;\n\t\t\tcallback = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\treturn jQuery.ajax({\n\t\t\turl: url,\n\t\t\ttype: method,\n\t\t\tdataType: type,\n\t\t\tdata: data,\n\t\t\tsuccess: callback\n\t\t});\n\t};\n});\n\njQuery.extend({\n\n\t// Counter for holding the number of active queries\n\tactive: 0,\n\n\t// Last-Modified header cache for next request\n\tlastModified: {},\n\tetag: {},\n\n\tajaxSettings: {\n\t\turl: ajaxLocation,\n\t\ttype: \"GET\",\n\t\tisLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),\n\t\tglobal: true,\n\t\tprocessData: true,\n\t\tasync: true,\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\t\t/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\tthrows: false,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\t*/\n\n\t\taccepts: {\n\t\t\t\"*\": allTypes,\n\t\t\ttext: \"text/plain\",\n\t\t\thtml: \"text/html\",\n\t\t\txml: \"application/xml, text/xml\",\n\t\t\tjson: \"application/json, text/javascript\"\n\t\t},\n\n\t\tcontents: {\n\t\t\txml: /xml/,\n\t\t\thtml: /html/,\n\t\t\tjson: /json/\n\t\t},\n\n\t\tresponseFields: {\n\t\t\txml: \"responseXML\",\n\t\t\ttext: \"responseText\"\n\t\t},\n\n\t\t// Data converters\n\t\t// Keys separate source (or catchall \"*\") and destination types with a single space\n\t\tconverters: {\n\n\t\t\t// Convert anything to text\n\t\t\t\"* text\": window.String,\n\n\t\t\t// Text to html (true = no transformation)\n\t\t\t\"text html\": true,\n\n\t\t\t// Evaluate text as a json expression\n\t\t\t\"text json\": jQuery.parseJSON,\n\n\t\t\t// Parse text as xml\n\t\t\t\"text xml\": jQuery.parseXML\n\t\t},\n\n\t\t// For options that shouldn't be deep extended:\n\t\t// you can add your own custom options here if\n\t\t// and when you create one that shouldn't be\n\t\t// deep extended (see ajaxExtend)\n\t\tflatOptions: {\n\t\t\turl: true,\n\t\t\tcontext: true\n\t\t}\n\t},\n\n\t// Creates a full fledged settings object into target\n\t// with both ajaxSettings and settings fields.\n\t// If target is omitted, writes into ajaxSettings.\n\tajaxSetup: function( target, settings ) {\n\t\treturn settings ?\n\n\t\t\t// Building a settings object\n\t\t\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\n\n\t\t\t// Extending ajaxSettings\n\t\t\tajaxExtend( jQuery.ajaxSettings, target );\n\t},\n\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t// Main method\n\tajax: function( url, options ) {\n\n\t\t// If url is an object, simulate pre-1.5 signature\n\t\tif ( typeof url === \"object\" ) {\n\t\t\toptions = url;\n\t\t\turl = undefined;\n\t\t}\n\n\t\t// Force options to be an object\n\t\toptions = options || {};\n\n\t\tvar // Cross-domain detection vars\n\t\t\tparts,\n\t\t\t// Loop variable\n\t\t\ti,\n\t\t\t// URL without anti-cache param\n\t\t\tcacheURL,\n\t\t\t// Response headers as string\n\t\t\tresponseHeadersString,\n\t\t\t// timeout handle\n\t\t\ttimeoutTimer,\n\n\t\t\t// To know if global events are to be dispatched\n\t\t\tfireGlobals,\n\n\t\t\ttransport,\n\t\t\t// Response headers\n\t\t\tresponseHeaders,\n\t\t\t// Create the final options object\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\t\t\t// Callbacks context\n\t\t\tcallbackContext = s.context || s,\n\t\t\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\n\t\t\tglobalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?\n\t\t\t\tjQuery( callbackContext ) :\n\t\t\t\tjQuery.event,\n\t\t\t// Deferreds\n\t\t\tdeferred = jQuery.Deferred(),\n\t\t\tcompleteDeferred = jQuery.Callbacks(\"once memory\"),\n\t\t\t// Status-dependent callbacks\n\t\t\tstatusCode = s.statusCode || {},\n\t\t\t// Headers (they are sent all at once)\n\t\t\trequestHeaders = {},\n\t\t\trequestHeadersNames = {},\n\t\t\t// The jqXHR state\n\t\t\tstate = 0,\n\t\t\t// Default abort message\n\t\t\tstrAbort = \"canceled\",\n\t\t\t// Fake xhr\n\t\t\tjqXHR = {\n\t\t\t\treadyState: 0,\n\n\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\tvar match;\n\t\t\t\t\tif ( state === 2 ) {\n\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\twhile ( (match = rheaders.exec( responseHeadersString )) ) {\n\t\t\t\t\t\t\t\tresponseHeaders[ match[1].toLowerCase() ] = match[ 2 ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() ];\n\t\t\t\t\t}\n\t\t\t\t\treturn match == null ? null : match;\n\t\t\t\t},\n\n\t\t\t\t// Raw string\n\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\treturn state === 2 ? responseHeadersString : null;\n\t\t\t\t},\n\n\t\t\t\t// Caches the header\n\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\tvar lname = name.toLowerCase();\n\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\tname = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;\n\t\t\t\t\t\trequestHeaders[ name ] = value;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Overrides response content-type header\n\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Status-dependent callbacks\n\t\t\t\tstatusCode: function( map ) {\n\t\t\t\t\tvar code;\n\t\t\t\t\tif ( map ) {\n\t\t\t\t\t\tif ( state < 2 ) {\n\t\t\t\t\t\t\tfor ( code in map ) {\n\t\t\t\t\t\t\t\t// Lazy-add the new callback in a way that preserves old ones\n\t\t\t\t\t\t\t\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Execute the appropriate callbacks\n\t\t\t\t\t\t\tjqXHR.always( map[ jqXHR.status ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Cancel the request\n\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\tvar finalText = statusText || strAbort;\n\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\ttransport.abort( finalText );\n\t\t\t\t\t}\n\t\t\t\t\tdone( 0, finalText );\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\t// Attach deferreds\n\t\tdeferred.promise( jqXHR ).complete = completeDeferred.add;\n\t\tjqXHR.success = jqXHR.done;\n\t\tjqXHR.error = jqXHR.fail;\n\n\t\t// Remove hash character (#7531: and string promotion)\n\t\t// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)\n\t\t// Handle falsy url in the settings object (#10093: consistency with old signature)\n\t\t// We also use the url parameter if available\n\t\ts.url = ( ( url || s.url || ajaxLocation ) + \"\" ).replace( rhash, \"\" ).replace( rprotocol, ajaxLocParts[ 1 ] + \"//\" );\n\n\t\t// Alias method option to type as per ticket #12004\n\t\ts.type = options.method || options.type || s.method || s.type;\n\n\t\t// Extract dataTypes list\n\t\ts.dataTypes = jQuery.trim( s.dataType || \"*\" ).toLowerCase().match( core_rnotwhite ) || [\"\"];\n\n\t\t// A cross-domain request is in order when we have a protocol:host:port mismatch\n\t\tif ( s.crossDomain == null ) {\n\t\t\tparts = rurl.exec( s.url.toLowerCase() );\n\t\t\ts.crossDomain = !!( parts &&\n\t\t\t\t( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||\n\t\t\t\t\t( parts[ 3 ] || ( parts[ 1 ] === \"http:\" ? 80 : 443 ) ) !=\n\t\t\t\t\t\t( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === \"http:\" ? 80 : 443 ) ) )\n\t\t\t);\n\t\t}\n\n\t\t// Convert data if not already a string\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t}\n\n\t\t// Apply prefilters\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t// If request was aborted inside a prefilter, stop there\n\t\tif ( state === 2 ) {\n\t\t\treturn jqXHR;\n\t\t}\n\n\t\t// We can fire global events as of now if asked to\n\t\tfireGlobals = s.global;\n\n\t\t// Watch for a new set of requests\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\tjQuery.event.trigger(\"ajaxStart\");\n\t\t}\n\n\t\t// Uppercase the type\n\t\ts.type = s.type.toUpperCase();\n\n\t\t// Determine if request has content\n\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t// Save the URL in case we're toying with the If-Modified-Since\n\t\t// and/or If-None-Match header later on\n\t\tcacheURL = s.url;\n\n\t\t// More options handling for requests with no content\n\t\tif ( !s.hasContent ) {\n\n\t\t\t// If data is available, append data to url\n\t\t\tif ( s.data ) {\n\t\t\t\tcacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? \"&\" : \"?\" ) + s.data );\n\t\t\t\t// #9682: remove data so that it's not used in an eventual retry\n\t\t\t\tdelete s.data;\n\t\t\t}\n\n\t\t\t// Add anti-cache in url if needed\n\t\t\tif ( s.cache === false ) {\n\t\t\t\ts.url = rts.test( cacheURL ) ?\n\n\t\t\t\t\t// If there is already a '_' parameter, set its value\n\t\t\t\t\tcacheURL.replace( rts, \"$1_=\" + ajax_nonce++ ) :\n\n\t\t\t\t\t// Otherwise add one to the end\n\t\t\t\t\tcacheURL + ( ajax_rquery.test( cacheURL ) ? \"&\" : \"?\" ) + \"_=\" + ajax_nonce++;\n\t\t\t}\n\t\t}\n\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\tif ( s.ifModified ) {\n\t\t\tif ( jQuery.lastModified[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ cacheURL ] );\n\t\t\t}\n\t\t\tif ( jQuery.etag[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ cacheURL ] );\n\t\t\t}\n\t\t}\n\n\t\t// Set the correct header, if data is being sent\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\n\t\t}\n\n\t\t// Set the Accepts header for the server, depending on the dataType\n\t\tjqXHR.setRequestHeader(\n\t\t\t\"Accept\",\n\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?\n\t\t\t\ts.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\n\t\t\t\ts.accepts[ \"*\" ]\n\t\t);\n\n\t\t// Check for headers option\n\t\tfor ( i in s.headers ) {\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t}\n\n\t\t// Allow custom headers/mimetypes and early abort\n\t\tif ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {\n\t\t\t// Abort if not done already and return\n\t\t\treturn jqXHR.abort();\n\t\t}\n\n\t\t// aborting is no longer a cancellation\n\t\tstrAbort = \"abort\";\n\n\t\t// Install callbacks on deferreds\n\t\tfor ( i in { success: 1, error: 1, complete: 1 } ) {\n\t\t\tjqXHR[ i ]( s[ i ] );\n\t\t}\n\n\t\t// Get transport\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t// If no transport, we auto-abort\n\t\tif ( !transport ) {\n\t\t\tdone( -1, \"No Transport\" );\n\t\t} else {\n\t\t\tjqXHR.readyState = 1;\n\n\t\t\t// Send global event\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t}\n\t\t\t// Timeout\n\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\ttimeoutTimer = setTimeout(function() {\n\t\t\t\t\tjqXHR.abort(\"timeout\");\n\t\t\t\t}, s.timeout );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tstate = 1;\n\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t} catch ( e ) {\n\t\t\t\t// Propagate exception as error if not done\n\t\t\t\tif ( state < 2 ) {\n\t\t\t\t\tdone( -1, e );\n\t\t\t\t// Simply rethrow otherwise\n\t\t\t\t} else {\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Callback for when everything is done\n\t\tfunction done( status, nativeStatusText, responses, headers ) {\n\t\t\tvar isSuccess, success, error, response, modified,\n\t\t\t\tstatusText = nativeStatusText;\n\n\t\t\t// Called once\n\t\t\tif ( state === 2 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// State is \"done\" now\n\t\t\tstate = 2;\n\n\t\t\t// Clear timeout if it exists\n\t\t\tif ( timeoutTimer ) {\n\t\t\t\tclearTimeout( timeoutTimer );\n\t\t\t}\n\n\t\t\t// Dereference transport for early garbage collection\n\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\ttransport = undefined;\n\n\t\t\t// Cache response headers\n\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t// Set readyState\n\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\n\n\t\t\t// Get response data\n\t\t\tif ( responses ) {\n\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\n\t\t\t}\n\n\t\t\t// If successful, handle type chaining\n\t\t\tif ( status >= 200 && status < 300 || status === 304 ) {\n\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\tif ( s.ifModified ) {\n\t\t\t\t\tmodified = jqXHR.getResponseHeader(\"Last-Modified\");\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.lastModified[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t\tmodified = jqXHR.getResponseHeader(\"etag\");\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.etag[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if no content\n\t\t\t\tif ( status === 204 ) {\n\t\t\t\t\tisSuccess = true;\n\t\t\t\t\tstatusText = \"nocontent\";\n\n\t\t\t\t// if not modified\n\t\t\t\t} else if ( status === 304 ) {\n\t\t\t\t\tisSuccess = true;\n\t\t\t\t\tstatusText = \"notmodified\";\n\n\t\t\t\t// If we have data, let's convert it\n\t\t\t\t} else {\n\t\t\t\t\tisSuccess = ajaxConvert( s, response );\n\t\t\t\t\tstatusText = isSuccess.state;\n\t\t\t\t\tsuccess = isSuccess.data;\n\t\t\t\t\terror = isSuccess.error;\n\t\t\t\t\tisSuccess = !error;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// We extract error from statusText\n\t\t\t\t// then normalize statusText and status for non-aborts\n\t\t\t\terror = statusText;\n\t\t\t\tif ( status || !statusText ) {\n\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set data for the fake xhr object\n\t\t\tjqXHR.status = status;\n\t\t\tjqXHR.statusText = ( nativeStatusText || statusText ) + \"\";\n\n\t\t\t// Success/Error\n\t\t\tif ( isSuccess ) {\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t} else {\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t}\n\n\t\t\t// Status-dependent callbacks\n\t\t\tjqXHR.statusCode( statusCode );\n\t\t\tstatusCode = undefined;\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( isSuccess ? \"ajaxSuccess\" : \"ajaxError\",\n\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t}\n\n\t\t\t// Complete\n\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\n\t\t\t\t// Handle the global AJAX counter\n\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\tjQuery.event.trigger(\"ajaxStop\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn jqXHR;\n\t},\n\n\tgetScript: function( url, callback ) {\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t},\n\n\tgetJSON: function( url, data, callback ) {\n\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t}\n});\n\n/* Handles responses to an ajax request:\n * - sets all responseXXX fields accordingly\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\tvar firstDataType, ct, finalDataType, type,\n\t\tcontents = s.contents,\n\t\tdataTypes = s.dataTypes,\n\t\tresponseFields = s.responseFields;\n\n\t// Fill responseXXX fields\n\tfor ( type in responseFields ) {\n\t\tif ( type in responses ) {\n\t\t\tjqXHR[ responseFields[type] ] = responses[ type ];\n\t\t}\n\t}\n\n\t// Remove auto dataType and get content-type in the process\n\twhile( dataTypes[ 0 ] === \"*\" ) {\n\t\tdataTypes.shift();\n\t\tif ( ct === undefined ) {\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader(\"Content-Type\");\n\t\t}\n\t}\n\n\t// Check if we're dealing with a known content-type\n\tif ( ct ) {\n\t\tfor ( type in contents ) {\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\tdataTypes.unshift( type );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check to see if we have a response for the expected dataType\n\tif ( dataTypes[ 0 ] in responses ) {\n\t\tfinalDataType = dataTypes[ 0 ];\n\t} else {\n\t\t// Try convertible dataTypes\n\t\tfor ( type in responses ) {\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[0] ] ) {\n\t\t\t\tfinalDataType = type;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( !firstDataType ) {\n\t\t\t\tfirstDataType = type;\n\t\t\t}\n\t\t}\n\t\t// Or just use first one\n\t\tfinalDataType = finalDataType || firstDataType;\n\t}\n\n\t// If we found a dataType\n\t// We add the dataType to the list if needed\n\t// and return the corresponding response\n\tif ( finalDataType ) {\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\tdataTypes.unshift( finalDataType );\n\t\t}\n\t\treturn responses[ finalDataType ];\n\t}\n}\n\n// Chain conversions given the request and the original response\nfunction ajaxConvert( s, response ) {\n\tvar conv2, current, conv, tmp,\n\t\tconverters = {},\n\t\ti = 0,\n\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\n\t\tdataTypes = s.dataTypes.slice(),\n\t\tprev = dataTypes[ 0 ];\n\n\t// Apply the dataFilter if provided\n\tif ( s.dataFilter ) {\n\t\tresponse = s.dataFilter( response, s.dataType );\n\t}\n\n\t// Create converters map with lowercased keys\n\tif ( dataTypes[ 1 ] ) {\n\t\tfor ( conv in s.converters ) {\n\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\n\t\t}\n\t}\n\n\t// Convert to each sequential dataType, tolerating list modification\n\tfor ( ; (current = dataTypes[++i]); ) {\n\n\t\t// There's only work to do if current dataType is non-auto\n\t\tif ( current !== \"*\" ) {\n\n\t\t\t// Convert response if prev dataType is non-auto and differs from current\n\t\t\tif ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t\t// Seek a direct converter\n\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\n\n\t\t\t\t// If none found, seek a pair\n\t\t\t\tif ( !conv ) {\n\t\t\t\t\tfor ( conv2 in converters ) {\n\n\t\t\t\t\t\t// If conv2 outputs current\n\t\t\t\t\t\ttmp = conv2.split(\" \");\n\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\n\n\t\t\t\t\t\t\t// If prev can be converted to accepted input\n\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\n\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\n\t\t\t\t\t\t\tif ( conv ) {\n\t\t\t\t\t\t\t\t// Condense equivalence converters\n\t\t\t\t\t\t\t\tif ( conv === true ) {\n\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\n\n\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\n\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\n\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\n\t\t\t\t\t\t\t\t\tdataTypes.splice( i--, 0, current );\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Apply converter (if not an equivalence)\n\t\t\t\tif ( conv !== true ) {\n\n\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\n\t\t\t\t\tif ( conv && s[\"throws\"] ) {\n\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t\treturn { state: \"parsererror\", error: conv ? e : \"No conversion from \" + prev + \" to \" + current };\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Update prev for next iteration\n\t\t\tprev = current;\n\t\t}\n\t}\n\n\treturn { state: \"success\", data: response };\n}\n// Install script dataType\njQuery.ajaxSetup({\n\taccepts: {\n\t\tscript: \"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"\n\t},\n\tcontents: {\n\t\tscript: /(?:java|ecma)script/\n\t},\n\tconverters: {\n\t\t\"text script\": function( text ) {\n\t\t\tjQuery.globalEval( text );\n\t\t\treturn text;\n\t\t}\n\t}\n});\n\n// Handle cache's special case and global\njQuery.ajaxPrefilter( \"script\", function( s ) {\n\tif ( s.cache === undefined ) {\n\t\ts.cache = false;\n\t}\n\tif ( s.crossDomain ) {\n\t\ts.type = \"GET\";\n\t\ts.global = false;\n\t}\n});\n\n// Bind script tag hack transport\njQuery.ajaxTransport( \"script\", function(s) {\n\n\t// This transport only deals with cross domain requests\n\tif ( s.crossDomain ) {\n\n\t\tvar script,\n\t\t\thead = document.head || jQuery(\"head\")[0] || document.documentElement;\n\n\t\treturn {\n\n\t\t\tsend: function( _, callback ) {\n\n\t\t\t\tscript = document.createElement(\"script\");\n\n\t\t\t\tscript.async = true;\n\n\t\t\t\tif ( s.scriptCharset ) {\n\t\t\t\t\tscript.charset = s.scriptCharset;\n\t\t\t\t}\n\n\t\t\t\tscript.src = s.url;\n\n\t\t\t\t// Attach handlers for all browsers\n\t\t\t\tscript.onload = script.onreadystatechange = function( _, isAbort ) {\n\n\t\t\t\t\tif ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {\n\n\t\t\t\t\t\t// Handle memory leak in IE\n\t\t\t\t\t\tscript.onload = script.onreadystatechange = null;\n\n\t\t\t\t\t\t// Remove the script\n\t\t\t\t\t\tif ( script.parentNode ) {\n\t\t\t\t\t\t\tscript.parentNode.removeChild( script );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Dereference the script\n\t\t\t\t\t\tscript = null;\n\n\t\t\t\t\t\t// Callback if not abort\n\t\t\t\t\t\tif ( !isAbort ) {\n\t\t\t\t\t\t\tcallback( 200, \"success\" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending\n\t\t\t\t// Use native DOM manipulation to avoid our domManip AJAX trickery\n\t\t\t\thead.insertBefore( script, head.firstChild );\n\t\t\t},\n\n\t\t\tabort: function() {\n\t\t\t\tif ( script ) {\n\t\t\t\t\tscript.onload( undefined, true );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n});\nvar oldCallbacks = [],\n\trjsonp = /(=)\\?(?=&|$)|\\?\\?/;\n\n// Default jsonp settings\njQuery.ajaxSetup({\n\tjsonp: \"callback\",\n\tjsonpCallback: function() {\n\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( ajax_nonce++ ) );\n\t\tthis[ callback ] = true;\n\t\treturn callback;\n\t}\n});\n\n// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\tvar callbackName, overwritten, responseContainer,\n\t\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\n\t\t\t\"url\" :\n\t\t\ttypeof s.data === \"string\" && !( s.contentType || \"\" ).indexOf(\"application/x-www-form-urlencoded\") && rjsonp.test( s.data ) && \"data\"\n\t\t);\n\n\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\n\tif ( jsonProp || s.dataTypes[ 0 ] === \"jsonp\" ) {\n\n\t\t// Get callback name, remembering preexisting value associated with it\n\t\tcallbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?\n\t\t\ts.jsonpCallback() :\n\t\t\ts.jsonpCallback;\n\n\t\t// Insert callback into url or form data\n\t\tif ( jsonProp ) {\n\t\t\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \"$1\" + callbackName );\n\t\t} else if ( s.jsonp !== false ) {\n\t\t\ts.url += ( ajax_rquery.test( s.url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\n\t\t}\n\n\t\t// Use data converter to retrieve json after script execution\n\t\ts.converters[\"script json\"] = function() {\n\t\t\tif ( !responseContainer ) {\n\t\t\t\tjQuery.error( callbackName + \" was not called\" );\n\t\t\t}\n\t\t\treturn responseContainer[ 0 ];\n\t\t};\n\n\t\t// force json dataType\n\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t// Install callback\n\t\toverwritten = window[ callbackName ];\n\t\twindow[ callbackName ] = function() {\n\t\t\tresponseContainer = arguments;\n\t\t};\n\n\t\t// Clean-up function (fires after converters)\n\t\tjqXHR.always(function() {\n\t\t\t// Restore preexisting value\n\t\t\twindow[ callbackName ] = overwritten;\n\n\t\t\t// Save back as free\n\t\t\tif ( s[ callbackName ] ) {\n\t\t\t\t// make sure that re-using the options doesn't screw things around\n\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\n\n\t\t\t\t// save the callback name for future use\n\t\t\t\toldCallbacks.push( callbackName );\n\t\t\t}\n\n\t\t\t// Call if it was a function and we have a response\n\t\t\tif ( responseContainer && jQuery.isFunction( overwritten ) ) {\n\t\t\t\toverwritten( responseContainer[ 0 ] );\n\t\t\t}\n\n\t\t\tresponseContainer = overwritten = undefined;\n\t\t});\n\n\t\t// Delegate to script\n\t\treturn \"script\";\n\t}\n});\nvar xhrCallbacks, xhrSupported,\n\txhrId = 0,\n\t// #5280: Internet Explorer will keep connections alive if we don't abort on unload\n\txhrOnUnloadAbort = window.ActiveXObject && function() {\n\t\t// Abort all pending requests\n\t\tvar key;\n\t\tfor ( key in xhrCallbacks ) {\n\t\t\txhrCallbacks[ key ]( undefined, true );\n\t\t}\n\t};\n\n// Functions to create xhrs\nfunction createStandardXHR() {\n\ttry {\n\t\treturn new window.XMLHttpRequest();\n\t} catch( e ) {}\n}\n\nfunction createActiveXHR() {\n\ttry {\n\t\treturn new window.ActiveXObject(\"Microsoft.XMLHTTP\");\n\t} catch( e ) {}\n}\n\n// Create the request object\n// (This is still attached to ajaxSettings for backward compatibility)\njQuery.ajaxSettings.xhr = window.ActiveXObject ?\n\t/* Microsoft failed to properly\n\t * implement the XMLHttpRequest in IE7 (can't request local files),\n\t * so we use the ActiveXObject when it is available\n\t * Additionally XMLHttpRequest can be disabled in IE7/IE8 so\n\t * we need a fallback.\n\t */\n\tfunction() {\n\t\treturn !this.isLocal && createStandardXHR() || createActiveXHR();\n\t} :\n\t// For all other browsers, use the standard XMLHttpRequest object\n\tcreateStandardXHR;\n\n// Determine support properties\nxhrSupported = jQuery.ajaxSettings.xhr();\njQuery.support.cors = !!xhrSupported && ( \"withCredentials\" in xhrSupported );\nxhrSupported = jQuery.support.ajax = !!xhrSupported;\n\n// Create transport if the browser can provide an xhr\nif ( xhrSupported ) {\n\n\tjQuery.ajaxTransport(function( s ) {\n\t\t// Cross domain only allowed if supported through XMLHttpRequest\n\t\tif ( !s.crossDomain || jQuery.support.cors ) {\n\n\t\t\tvar callback;\n\n\t\t\treturn {\n\t\t\t\tsend: function( headers, complete ) {\n\n\t\t\t\t\t// Get a new xhr\n\t\t\t\t\tvar handle, i,\n\t\t\t\t\t\txhr = s.xhr();\n\n\t\t\t\t\t// Open the socket\n\t\t\t\t\t// Passing null username, generates a login popup on Opera (#2865)\n\t\t\t\t\tif ( s.username ) {\n\t\t\t\t\t\txhr.open( s.type, s.url, s.async, s.username, s.password );\n\t\t\t\t\t} else {\n\t\t\t\t\t\txhr.open( s.type, s.url, s.async );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Apply custom fields if provided\n\t\t\t\t\tif ( s.xhrFields ) {\n\t\t\t\t\t\tfor ( i in s.xhrFields ) {\n\t\t\t\t\t\t\txhr[ i ] = s.xhrFields[ i ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Override mime type if needed\n\t\t\t\t\tif ( s.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\t\txhr.overrideMimeType( s.mimeType );\n\t\t\t\t\t}\n\n\t\t\t\t\t// X-Requested-With header\n\t\t\t\t\t// For cross-domain requests, seeing as conditions for a preflight are\n\t\t\t\t\t// akin to a jigsaw puzzle, we simply never set it to be sure.\n\t\t\t\t\t// (it can always be set on a per-request basis or even using ajaxSetup)\n\t\t\t\t\t// For same-domain requests, won't change header if already provided.\n\t\t\t\t\tif ( !s.crossDomain && !headers[\"X-Requested-With\"] ) {\n\t\t\t\t\t\theaders[\"X-Requested-With\"] = \"XMLHttpRequest\";\n\t\t\t\t\t}\n\n\t\t\t\t\t// Need an extra try/catch for cross domain requests in Firefox 3\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch( err ) {}\n\n\t\t\t\t\t// Do send the request\n\t\t\t\t\t// This may raise an exception which is actually\n\t\t\t\t\t// handled in jQuery.ajax (so no try/catch here)\n\t\t\t\t\txhr.send( ( s.hasContent && s.data ) || null );\n\n\t\t\t\t\t// Listener\n\t\t\t\t\tcallback = function( _, isAbort ) {\n\t\t\t\t\t\tvar status, responseHeaders, statusText, responses;\n\n\t\t\t\t\t\t// Firefox throws exceptions when accessing properties\n\t\t\t\t\t\t// of an xhr when a network error occurred\n\t\t\t\t\t\t// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t// Was never called and is aborted or complete\n\t\t\t\t\t\t\tif ( callback && ( isAbort || xhr.readyState === 4 ) ) {\n\n\t\t\t\t\t\t\t\t// Only called once\n\t\t\t\t\t\t\t\tcallback = undefined;\n\n\t\t\t\t\t\t\t\t// Do not keep as active anymore\n\t\t\t\t\t\t\t\tif ( handle ) {\n\t\t\t\t\t\t\t\t\txhr.onreadystatechange = jQuery.noop;\n\t\t\t\t\t\t\t\t\tif ( xhrOnUnloadAbort ) {\n\t\t\t\t\t\t\t\t\t\tdelete xhrCallbacks[ handle ];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// If it's an abort\n\t\t\t\t\t\t\t\tif ( isAbort ) {\n\t\t\t\t\t\t\t\t\t// Abort it manually if needed\n\t\t\t\t\t\t\t\t\tif ( xhr.readyState !== 4 ) {\n\t\t\t\t\t\t\t\t\t\txhr.abort();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresponses = {};\n\t\t\t\t\t\t\t\t\tstatus = xhr.status;\n\t\t\t\t\t\t\t\t\tresponseHeaders = xhr.getAllResponseHeaders();\n\n\t\t\t\t\t\t\t\t\t// When requesting binary data, IE6-9 will throw an exception\n\t\t\t\t\t\t\t\t\t// on any attempt to access responseText (#11426)\n\t\t\t\t\t\t\t\t\tif ( typeof xhr.responseText === \"string\" ) {\n\t\t\t\t\t\t\t\t\t\tresponses.text = xhr.responseText;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Firefox throws an exception when accessing\n\t\t\t\t\t\t\t\t\t// statusText for faulty cross-domain requests\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tstatusText = xhr.statusText;\n\t\t\t\t\t\t\t\t\t} catch( e ) {\n\t\t\t\t\t\t\t\t\t\t// We normalize with Webkit giving an empty statusText\n\t\t\t\t\t\t\t\t\t\tstatusText = \"\";\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Filter status for non standard behaviors\n\n\t\t\t\t\t\t\t\t\t// If the request is local and we have data: assume a success\n\t\t\t\t\t\t\t\t\t// (success with no data won't get notified, that's the best we\n\t\t\t\t\t\t\t\t\t// can do given current implementations)\n\t\t\t\t\t\t\t\t\tif ( !status && s.isLocal && !s.crossDomain ) {\n\t\t\t\t\t\t\t\t\t\tstatus = responses.text ? 200 : 404;\n\t\t\t\t\t\t\t\t\t// IE - #1450: sometimes returns 1223 when it should be 204\n\t\t\t\t\t\t\t\t\t} else if ( status === 1223 ) {\n\t\t\t\t\t\t\t\t\t\tstatus = 204;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch( firefoxAccessException ) {\n\t\t\t\t\t\t\tif ( !isAbort ) {\n\t\t\t\t\t\t\t\tcomplete( -1, firefoxAccessException );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Call complete if needed\n\t\t\t\t\t\tif ( responses ) {\n\t\t\t\t\t\t\tcomplete( status, statusText, responses, responseHeaders );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\tif ( !s.async ) {\n\t\t\t\t\t\t// if we're in sync mode we fire the callback\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t} else if ( xhr.readyState === 4 ) {\n\t\t\t\t\t\t// (IE6 & IE7) if it's in cache and has been\n\t\t\t\t\t\t// retrieved directly we need to fire the callback\n\t\t\t\t\t\tsetTimeout( callback );\n\t\t\t\t\t} else {\n\t\t\t\t\t\thandle = ++xhrId;\n\t\t\t\t\t\tif ( xhrOnUnloadAbort ) {\n\t\t\t\t\t\t\t// Create the active xhrs callbacks list if needed\n\t\t\t\t\t\t\t// and attach the unload handler\n\t\t\t\t\t\t\tif ( !xhrCallbacks ) {\n\t\t\t\t\t\t\t\txhrCallbacks = {};\n\t\t\t\t\t\t\t\tjQuery( window ).unload( xhrOnUnloadAbort );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Add to list of active xhrs callbacks\n\t\t\t\t\t\t\txhrCallbacks[ handle ] = callback;\n\t\t\t\t\t\t}\n\t\t\t\t\t\txhr.onreadystatechange = callback;\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tabort: function() {\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tcallback( undefined, true );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t});\n}\nvar fxNow, timerId,\n\trfxtypes = /^(?:toggle|show|hide)$/,\n\trfxnum = new RegExp( \"^(?:([+-])=|)(\" + core_pnum + \")([a-z%]*)$\", \"i\" ),\n\trrun = /queueHooks$/,\n\tanimationPrefilters = [ defaultPrefilter ],\n\ttweeners = {\n\t\t\"*\": [function( prop, value ) {\n\t\t\tvar end, unit,\n\t\t\t\ttween = this.createTween( prop, value ),\n\t\t\t\tparts = rfxnum.exec( value ),\n\t\t\t\ttarget = tween.cur(),\n\t\t\t\tstart = +target || 0,\n\t\t\t\tscale = 1,\n\t\t\t\tmaxIterations = 20;\n\n\t\t\tif ( parts ) {\n\t\t\t\tend = +parts[2];\n\t\t\t\tunit = parts[3] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\n\t\t\t\t// We need to compute starting value\n\t\t\t\tif ( unit !== \"px\" && start ) {\n\t\t\t\t\t// Iteratively approximate from a nonzero starting point\n\t\t\t\t\t// Prefer the current property, because this process will be trivial if it uses the same units\n\t\t\t\t\t// Fallback to end or a simple constant\n\t\t\t\t\tstart = jQuery.css( tween.elem, prop, true ) || end || 1;\n\n\t\t\t\t\tdo {\n\t\t\t\t\t\t// If previous iteration zeroed out, double until we get *something*\n\t\t\t\t\t\t// Use a string for doubling factor so we don't accidentally see scale as unchanged below\n\t\t\t\t\t\tscale = scale || \".5\";\n\n\t\t\t\t\t\t// Adjust and apply\n\t\t\t\t\t\tstart = start / scale;\n\t\t\t\t\t\tjQuery.style( tween.elem, prop, start + unit );\n\n\t\t\t\t\t// Update scale, tolerating zero or NaN from tween.cur()\n\t\t\t\t\t// And breaking the loop if scale is unchanged or perfect, or if we've just had enough\n\t\t\t\t\t} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );\n\t\t\t\t}\n\n\t\t\t\ttween.unit = unit;\n\t\t\t\ttween.start = start;\n\t\t\t\t// If a +=/-= token was provided, we're doing a relative animation\n\t\t\t\ttween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end;\n\t\t\t}\n\t\t\treturn tween;\n\t\t}]\n\t};\n\n// Animations created synchronously will run synchronously\nfunction createFxNow() {\n\tsetTimeout(function() {\n\t\tfxNow = undefined;\n\t});\n\treturn ( fxNow = jQuery.now() );\n}\n\nfunction createTweens( animation, props ) {\n\tjQuery.each( props, function( prop, value ) {\n\t\tvar collection = ( tweeners[ prop ] || [] ).concat( tweeners[ \"*\" ] ),\n\t\t\tindex = 0,\n\t\t\tlength = collection.length;\n\t\tfor ( ; index < length; index++ ) {\n\t\t\tif ( collection[ index ].call( animation, prop, value ) ) {\n\n\t\t\t\t// we're done with this property\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t});\n}\n\nfunction Animation( elem, properties, options ) {\n\tvar result,\n\t\tstopped,\n\t\tindex = 0,\n\t\tlength = animationPrefilters.length,\n\t\tdeferred = jQuery.Deferred().always( function() {\n\t\t\t// don't match elem in the :animated selector\n\t\t\tdelete tick.elem;\n\t\t}),\n\t\ttick = function() {\n\t\t\tif ( stopped ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tvar currentTime = fxNow || createFxNow(),\n\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\n\t\t\t\t// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)\n\t\t\t\ttemp = remaining / animation.duration || 0,\n\t\t\t\tpercent = 1 - temp,\n\t\t\t\tindex = 0,\n\t\t\t\tlength = animation.tweens.length;\n\n\t\t\tfor ( ; index < length ; index++ ) {\n\t\t\t\tanimation.tweens[ index ].run( percent );\n\t\t\t}\n\n\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ]);\n\n\t\t\tif ( percent < 1 && length ) {\n\t\t\t\treturn remaining;\n\t\t\t} else {\n\t\t\t\tdeferred.resolveWith( elem, [ animation ] );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\t\tanimation = deferred.promise({\n\t\t\telem: elem,\n\t\t\tprops: jQuery.extend( {}, properties ),\n\t\t\topts: jQuery.extend( true, { specialEasing: {} }, options ),\n\t\t\toriginalProperties: properties,\n\t\t\toriginalOptions: options,\n\t\t\tstartTime: fxNow || createFxNow(),\n\t\t\tduration: options.duration,\n\t\t\ttweens: [],\n\t\t\tcreateTween: function( prop, end ) {\n\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\n\t\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\n\t\t\t\tanimation.tweens.push( tween );\n\t\t\t\treturn tween;\n\t\t\t},\n\t\t\tstop: function( gotoEnd ) {\n\t\t\t\tvar index = 0,\n\t\t\t\t\t// if we are going to the end, we want to run all the tweens\n\t\t\t\t\t// otherwise we skip this part\n\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\n\t\t\t\tif ( stopped ) {\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tstopped = true;\n\t\t\t\tfor ( ; index < length ; index++ ) {\n\t\t\t\t\tanimation.tweens[ index ].run( 1 );\n\t\t\t\t}\n\n\t\t\t\t// resolve when we played the last frame\n\t\t\t\t// otherwise, reject\n\t\t\t\tif ( gotoEnd ) {\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}),\n\t\tprops = animation.props;\n\n\tpropFilter( props, animation.opts.specialEasing );\n\n\tfor ( ; index < length ; index++ ) {\n\t\tresult = animationPrefilters[ index ].call( animation, elem, props, animation.opts );\n\t\tif ( result ) {\n\t\t\treturn result;\n\t\t}\n\t}\n\n\tcreateTweens( animation, props );\n\n\tif ( jQuery.isFunction( animation.opts.start ) ) {\n\t\tanimation.opts.start.call( elem, animation );\n\t}\n\n\tjQuery.fx.timer(\n\t\tjQuery.extend( tick, {\n\t\t\telem: elem,\n\t\t\tanim: animation,\n\t\t\tqueue: animation.opts.queue\n\t\t})\n\t);\n\n\t// attach callbacks from options\n\treturn animation.progress( animation.opts.progress )\n\t\t.done( animation.opts.done, animation.opts.complete )\n\t\t.fail( animation.opts.fail )\n\t\t.always( animation.opts.always );\n}\n\nfunction propFilter( props, specialEasing ) {\n\tvar value, name, index, easing, hooks;\n\n\t// camelCase, specialEasing and expand cssHook pass\n\tfor ( index in props ) {\n\t\tname = jQuery.camelCase( index );\n\t\teasing = specialEasing[ name ];\n\t\tvalue = props[ index ];\n\t\tif ( jQuery.isArray( value ) ) {\n\t\t\teasing = value[ 1 ];\n\t\t\tvalue = props[ index ] = value[ 0 ];\n\t\t}\n\n\t\tif ( index !== name ) {\n\t\t\tprops[ name ] = value;\n\t\t\tdelete props[ index ];\n\t\t}\n\n\t\thooks = jQuery.cssHooks[ name ];\n\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\tvalue = hooks.expand( value );\n\t\t\tdelete props[ name ];\n\n\t\t\t// not quite $.extend, this wont overwrite keys already present.\n\t\t\t// also - reusing 'index' from above because we have the correct \"name\"\n\t\t\tfor ( index in value ) {\n\t\t\t\tif ( !( index in props ) ) {\n\t\t\t\t\tprops[ index ] = value[ index ];\n\t\t\t\t\tspecialEasing[ index ] = easing;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tspecialEasing[ name ] = easing;\n\t\t}\n\t}\n}\n\njQuery.Animation = jQuery.extend( Animation, {\n\n\ttweener: function( props, callback ) {\n\t\tif ( jQuery.isFunction( props ) ) {\n\t\t\tcallback = props;\n\t\t\tprops = [ \"*\" ];\n\t\t} else {\n\t\t\tprops = props.split(\" \");\n\t\t}\n\n\t\tvar prop,\n\t\t\tindex = 0,\n\t\t\tlength = props.length;\n\n\t\tfor ( ; index < length ; index++ ) {\n\t\t\tprop = props[ index ];\n\t\t\ttweeners[ prop ] = tweeners[ prop ] || [];\n\t\t\ttweeners[ prop ].unshift( callback );\n\t\t}\n\t},\n\n\tprefilter: function( callback, prepend ) {\n\t\tif ( prepend ) {\n\t\t\tanimationPrefilters.unshift( callback );\n\t\t} else {\n\t\t\tanimationPrefilters.push( callback );\n\t\t}\n\t}\n});\n\nfunction defaultPrefilter( elem, props, opts ) {\n\t/*jshint validthis:true */\n\tvar prop, index, length,\n\t\tvalue, dataShow, toggle,\n\t\ttween, hooks, oldfire,\n\t\tanim = this,\n\t\tstyle = elem.style,\n\t\torig = {},\n\t\thandled = [],\n\t\thidden = elem.nodeType && isHidden( elem );\n\n\t// handle queue: false promises\n\tif ( !opts.queue ) {\n\t\thooks = jQuery._queueHooks( elem, \"fx\" );\n\t\tif ( hooks.unqueued == null ) {\n\t\t\thooks.unqueued = 0;\n\t\t\toldfire = hooks.empty.fire;\n\t\t\thooks.empty.fire = function() {\n\t\t\t\tif ( !hooks.unqueued ) {\n\t\t\t\t\toldfire();\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\thooks.unqueued++;\n\n\t\tanim.always(function() {\n\t\t\t// doing this makes sure that the complete handler will be called\n\t\t\t// before this completes\n\t\t\tanim.always(function() {\n\t\t\t\thooks.unqueued--;\n\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\n\t\t\t\t\thooks.empty.fire();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t// height/width overflow pass\n\tif ( elem.nodeType === 1 && ( \"height\" in props || \"width\" in props ) ) {\n\t\t// Make sure that nothing sneaks out\n\t\t// Record all 3 overflow attributes because IE does not\n\t\t// change the overflow attribute when overflowX and\n\t\t// overflowY are set to the same value\n\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\n\n\t\t// Set display property to inline-block for height/width\n\t\t// animations on inline elements that are having width/height animated\n\t\tif ( jQuery.css( elem, \"display\" ) === \"inline\" &&\n\t\t\t\tjQuery.css( elem, \"float\" ) === \"none\" ) {\n\n\t\t\t// inline-level elements accept inline-block;\n\t\t\t// block-level elements need to be inline with layout\n\t\t\tif ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === \"inline\" ) {\n\t\t\t\tstyle.display = \"inline-block\";\n\n\t\t\t} else {\n\t\t\t\tstyle.zoom = 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( opts.overflow ) {\n\t\tstyle.overflow = \"hidden\";\n\t\tif ( !jQuery.support.shrinkWrapBlocks ) {\n\t\t\tanim.always(function() {\n\t\t\t\tstyle.overflow = opts.overflow[ 0 ];\n\t\t\t\tstyle.overflowX = opts.overflow[ 1 ];\n\t\t\t\tstyle.overflowY = opts.overflow[ 2 ];\n\t\t\t});\n\t\t}\n\t}\n\n\n\t// show/hide pass\n\tfor ( index in props ) {\n\t\tvalue = props[ index ];\n\t\tif ( rfxtypes.exec( value ) ) {\n\t\t\tdelete props[ index ];\n\t\t\ttoggle = toggle || value === \"toggle\";\n\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\thandled.push( index );\n\t\t}\n\t}\n\n\tlength = handled.length;\n\tif ( length ) {\n\t\tdataShow = jQuery._data( elem, \"fxshow\" ) || jQuery._data( elem, \"fxshow\", {} );\n\t\tif ( \"hidden\" in dataShow ) {\n\t\t\thidden = dataShow.hidden;\n\t\t}\n\n\t\t// store state if its toggle - enables .stop().toggle() to \"reverse\"\n\t\tif ( toggle ) {\n\t\t\tdataShow.hidden = !hidden;\n\t\t}\n\t\tif ( hidden ) {\n\t\t\tjQuery( elem ).show();\n\t\t} else {\n\t\t\tanim.done(function() {\n\t\t\t\tjQuery( elem ).hide();\n\t\t\t});\n\t\t}\n\t\tanim.done(function() {\n\t\t\tvar prop;\n\t\t\tjQuery._removeData( elem, \"fxshow\" );\n\t\t\tfor ( prop in orig ) {\n\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\n\t\t\t}\n\t\t});\n\t\tfor ( index = 0 ; index < length ; index++ ) {\n\t\t\tprop = handled[ index ];\n\t\t\ttween = anim.createTween( prop, hidden ? dataShow[ prop ] : 0 );\n\t\t\torig[ prop ] = dataShow[ prop ] || jQuery.style( elem, prop );\n\n\t\t\tif ( !( prop in dataShow ) ) {\n\t\t\t\tdataShow[ prop ] = tween.start;\n\t\t\t\tif ( hidden ) {\n\t\t\t\t\ttween.end = tween.start;\n\t\t\t\t\ttween.start = prop === \"width\" || prop === \"height\" ? 1 : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction Tween( elem, options, prop, end, easing ) {\n\treturn new Tween.prototype.init( elem, options, prop, end, easing );\n}\njQuery.Tween = Tween;\n\nTween.prototype = {\n\tconstructor: Tween,\n\tinit: function( elem, options, prop, end, easing, unit ) {\n\t\tthis.elem = elem;\n\t\tthis.prop = prop;\n\t\tthis.easing = easing || \"swing\";\n\t\tthis.options = options;\n\t\tthis.start = this.now = this.cur();\n\t\tthis.end = end;\n\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\t},\n\tcur: function() {\n\t\tvar hooks = Tween.propHooks[ this.prop ];\n\n\t\treturn hooks && hooks.get ?\n\t\t\thooks.get( this ) :\n\t\t\tTween.propHooks._default.get( this );\n\t},\n\trun: function( percent ) {\n\t\tvar eased,\n\t\t\thooks = Tween.propHooks[ this.prop ];\n\n\t\tif ( this.options.duration ) {\n\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\n\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\n\t\t\t);\n\t\t} else {\n\t\t\tthis.pos = eased = percent;\n\t\t}\n\t\tthis.now = ( this.end - this.start ) * eased + this.start;\n\n\t\tif ( this.options.step ) {\n\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t}\n\n\t\tif ( hooks && hooks.set ) {\n\t\t\thooks.set( this );\n\t\t} else {\n\t\t\tTween.propHooks._default.set( this );\n\t\t}\n\t\treturn this;\n\t}\n};\n\nTween.prototype.init.prototype = Tween.prototype;\n\nTween.propHooks = {\n\t_default: {\n\t\tget: function( tween ) {\n\t\t\tvar result;\n\n\t\t\tif ( tween.elem[ tween.prop ] != null &&\n\t\t\t\t(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {\n\t\t\t\treturn tween.elem[ tween.prop ];\n\t\t\t}\n\n\t\t\t// passing an empty string as a 3rd parameter to .css will automatically\n\t\t\t// attempt a parseFloat and fallback to a string if the parse fails\n\t\t\t// so, simple values such as \"10px\" are parsed to Float.\n\t\t\t// complex values such as \"rotate(1rad)\" are returned as is.\n\t\t\tresult = jQuery.css( tween.elem, tween.prop, \"\" );\n\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\n\t\t\treturn !result || result === \"auto\" ? 0 : result;\n\t\t},\n\t\tset: function( tween ) {\n\t\t\t// use step hook for back compat - use cssHook if its there - use .style if its\n\t\t\t// available and use plain properties where available\n\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\n\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\n\t\t\t} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {\n\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\n\t\t\t} else {\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Remove in 2.0 - this supports IE8's panic based approach\n// to setting things on disconnected nodes\n\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\n\tset: function( tween ) {\n\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\n\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t}\n\t}\n};\n\njQuery.each([ \"toggle\", \"show\", \"hide\" ], function( i, name ) {\n\tvar cssFn = jQuery.fn[ name ];\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn speed == null || typeof speed === \"boolean\" ?\n\t\t\tcssFn.apply( this, arguments ) :\n\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\n\t};\n});\n\njQuery.fn.extend({\n\tfadeTo: function( speed, to, easing, callback ) {\n\n\t\t// show any hidden elements after setting opacity to 0\n\t\treturn this.filter( isHidden ).css( \"opacity\", 0 ).show()\n\n\t\t\t// animate to the value specified\n\t\t\t.end().animate({ opacity: to }, speed, easing, callback );\n\t},\n\tanimate: function( prop, speed, easing, callback ) {\n\t\tvar empty = jQuery.isEmptyObject( prop ),\n\t\t\toptall = jQuery.speed( speed, easing, callback ),\n\t\t\tdoAnimation = function() {\n\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\n\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\n\t\t\t\tdoAnimation.finish = function() {\n\t\t\t\t\tanim.stop( true );\n\t\t\t\t};\n\t\t\t\t// Empty animations, or finishing resolves immediately\n\t\t\t\tif ( empty || jQuery._data( this, \"finish\" ) ) {\n\t\t\t\t\tanim.stop( true );\n\t\t\t\t}\n\t\t\t};\n\t\t\tdoAnimation.finish = doAnimation;\n\n\t\treturn empty || optall.queue === false ?\n\t\t\tthis.each( doAnimation ) :\n\t\t\tthis.queue( optall.queue, doAnimation );\n\t},\n\tstop: function( type, clearQueue, gotoEnd ) {\n\t\tvar stopQueue = function( hooks ) {\n\t\t\tvar stop = hooks.stop;\n\t\t\tdelete hooks.stop;\n\t\t\tstop( gotoEnd );\n\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tgotoEnd = clearQueue;\n\t\t\tclearQueue = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\tif ( clearQueue && type !== false ) {\n\t\t\tthis.queue( type || \"fx\", [] );\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tvar dequeue = true,\n\t\t\t\tindex = type != null && type + \"queueHooks\",\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tdata = jQuery._data( this );\n\n\t\t\tif ( index ) {\n\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\n\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( index in data ) {\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\n\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {\n\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\n\t\t\t\t\tdequeue = false;\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// start the next in the queue if the last step wasn't forced\n\t\t\t// timers currently will call their complete callbacks, which will dequeue\n\t\t\t// but only if they were gotoEnd\n\t\t\tif ( dequeue || !gotoEnd ) {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t}\n\t\t});\n\t},\n\tfinish: function( type ) {\n\t\tif ( type !== false ) {\n\t\t\ttype = type || \"fx\";\n\t\t}\n\t\treturn this.each(function() {\n\t\t\tvar index,\n\t\t\t\tdata = jQuery._data( this ),\n\t\t\t\tqueue = data[ type + \"queue\" ],\n\t\t\t\thooks = data[ type + \"queueHooks\" ],\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tlength = queue ? queue.length : 0;\n\n\t\t\t// enable finishing flag on private data\n\t\t\tdata.finish = true;\n\n\t\t\t// empty the queue first\n\t\t\tjQuery.queue( this, type, [] );\n\n\t\t\tif ( hooks && hooks.cur && hooks.cur.finish ) {\n\t\t\t\thooks.cur.finish.call( this );\n\t\t\t}\n\n\t\t\t// look for any active animations, and finish them\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\n\t\t\t\t\ttimers[ index ].anim.stop( true );\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// look for any animations in the old queue and finish them\n\t\t\tfor ( index = 0; index < length; index++ ) {\n\t\t\t\tif ( queue[ index ] && queue[ index ].finish ) {\n\t\t\t\t\tqueue[ index ].finish.call( this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// turn off finishing flag\n\t\t\tdelete data.finish;\n\t\t});\n\t}\n});\n\n// Generate parameters to create a standard animation\nfunction genFx( type, includeWidth ) {\n\tvar which,\n\t\tattrs = { height: type },\n\t\ti = 0;\n\n\t// if we include width, step value is 1 to do all cssExpand values,\n\t// if we don't include width, step value is 2 to skip over Left and Right\n\tincludeWidth = includeWidth? 1 : 0;\n\tfor( ; i < 4 ; i += 2 - includeWidth ) {\n\t\twhich = cssExpand[ i ];\n\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\n\t}\n\n\tif ( includeWidth ) {\n\t\tattrs.opacity = attrs.width = type;\n\t}\n\n\treturn attrs;\n}\n\n// Generate shortcuts for custom animations\njQuery.each({\n\tslideDown: genFx(\"show\"),\n\tslideUp: genFx(\"hide\"),\n\tslideToggle: genFx(\"toggle\"),\n\tfadeIn: { opacity: \"show\" },\n\tfadeOut: { opacity: \"hide\" },\n\tfadeToggle: { opacity: \"toggle\" }\n}, function( name, props ) {\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn this.animate( props, speed, easing, callback );\n\t};\n});\n\njQuery.speed = function( speed, easing, fn ) {\n\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\n\t\tcomplete: fn || !fn && easing ||\n\t\t\tjQuery.isFunction( speed ) && speed,\n\t\tduration: speed,\n\t\teasing: fn && easing || easing && !jQuery.isFunction( easing ) && easing\n\t};\n\n\topt.duration = jQuery.fx.off ? 0 : typeof opt.duration === \"number\" ? opt.duration :\n\t\topt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;\n\n\t// normalize opt.queue - true/undefined/null -> \"fx\"\n\tif ( opt.queue == null || opt.queue === true ) {\n\t\topt.queue = \"fx\";\n\t}\n\n\t// Queueing\n\topt.old = opt.complete;\n\n\topt.complete = function() {\n\t\tif ( jQuery.isFunction( opt.old ) ) {\n\t\t\topt.old.call( this );\n\t\t}\n\n\t\tif ( opt.queue ) {\n\t\t\tjQuery.dequeue( this, opt.queue );\n\t\t}\n\t};\n\n\treturn opt;\n};\n\njQuery.easing = {\n\tlinear: function( p ) {\n\t\treturn p;\n\t},\n\tswing: function( p ) {\n\t\treturn 0.5 - Math.cos( p*Math.PI ) / 2;\n\t}\n};\n\njQuery.timers = [];\njQuery.fx = Tween.prototype.init;\njQuery.fx.tick = function() {\n\tvar timer,\n\t\ttimers = jQuery.timers,\n\t\ti = 0;\n\n\tfxNow = jQuery.now();\n\n\tfor ( ; i < timers.length; i++ ) {\n\t\ttimer = timers[ i ];\n\t\t// Checks the timer has not already been removed\n\t\tif ( !timer() && timers[ i ] === timer ) {\n\t\t\ttimers.splice( i--, 1 );\n\t\t}\n\t}\n\n\tif ( !timers.length ) {\n\t\tjQuery.fx.stop();\n\t}\n\tfxNow = undefined;\n};\n\njQuery.fx.timer = function( timer ) {\n\tif ( timer() && jQuery.timers.push( timer ) ) {\n\t\tjQuery.fx.start();\n\t}\n};\n\njQuery.fx.interval = 13;\n\njQuery.fx.start = function() {\n\tif ( !timerId ) {\n\t\ttimerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );\n\t}\n};\n\njQuery.fx.stop = function() {\n\tclearInterval( timerId );\n\ttimerId = null;\n};\n\njQuery.fx.speeds = {\n\tslow: 600,\n\tfast: 200,\n\t// Default speed\n\t_default: 400\n};\n\n// Back Compat <1.8 extension point\njQuery.fx.step = {};\n\nif ( jQuery.expr && jQuery.expr.filters ) {\n\tjQuery.expr.filters.animated = function( elem ) {\n\t\treturn jQuery.grep(jQuery.timers, function( fn ) {\n\t\t\treturn elem === fn.elem;\n\t\t}).length;\n\t};\n}\njQuery.fn.offset = function( options ) {\n\tif ( arguments.length ) {\n\t\treturn options === undefined ?\n\t\t\tthis :\n\t\t\tthis.each(function( i ) {\n\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t});\n\t}\n\n\tvar docElem, win,\n\t\tbox = { top: 0, left: 0 },\n\t\telem = this[ 0 ],\n\t\tdoc = elem && elem.ownerDocument;\n\n\tif ( !doc ) {\n\t\treturn;\n\t}\n\n\tdocElem = doc.documentElement;\n\n\t// Make sure it's not a disconnected DOM node\n\tif ( !jQuery.contains( docElem, elem ) ) {\n\t\treturn box;\n\t}\n\n\t// If we don't have gBCR, just use 0,0 rather than error\n\t// BlackBerry 5, iOS 3 (original iPhone)\n\tif ( typeof elem.getBoundingClientRect !== core_strundefined ) {\n\t\tbox = elem.getBoundingClientRect();\n\t}\n\t// 解决transform下的offset问题(先恢复)\n\t// var el = elem,\n\t// offsetLeft = 0,\n\t// offsetTop = 0;\n\n\t// do{\n\t// \toffsetLeft += el.offsetLeft;\n\t// \toffsetTop += el.offsetTop;\n\t// \tel = el.offsetParent;\n\t// } while( el );\n\n\t// var elm = elem;\n\t// do{\n\t// \toffsetLeft -= elm.scrollLeft || 0;\n\t// \toffsetTop -= elm.scrollTop || 0;\n\t// \telm = elm.parentNode;\n\t// } while( elm );\n\twin = getWindow( doc );\n\treturn {\n\t\ttop: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),\n\t\tleft: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )\n\t};\n};\n\njQuery.offset = {\n\n\tsetOffset: function( elem, options, i ) {\n\t\tvar position = jQuery.css( elem, \"position\" );\n\n\t\t// set position first, in-case top/left are set even on static elem\n\t\tif ( position === \"static\" ) {\n\t\t\telem.style.position = \"relative\";\n\t\t}\n\n\t\tvar curElem = jQuery( elem ),\n\t\t\tcurOffset = curElem.offset(),\n\t\t\tcurCSSTop = jQuery.css( elem, \"top\" ),\n\t\t\tcurCSSLeft = jQuery.css( elem, \"left\" ),\n\t\t\tcalculatePosition = ( position === \"absolute\" || position === \"fixed\" ) && jQuery.inArray(\"auto\", [curCSSTop, curCSSLeft]) > -1,\n\t\t\tprops = {}, curPosition = {}, curTop, curLeft;\n\n\t\t// need to be able to calculate position if either top or left is auto and position is either absolute or fixed\n\t\tif ( calculatePosition ) {\n\t\t\tcurPosition = curElem.position();\n\t\t\tcurTop = curPosition.top;\n\t\t\tcurLeft = curPosition.left;\n\t\t} else {\n\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\n\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\n\t\t}\n\n\t\tif ( jQuery.isFunction( options ) ) {\n\t\t\toptions = options.call( elem, i, curOffset );\n\t\t}\n\n\t\tif ( options.top != null ) {\n\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\n\t\t}\n\t\tif ( options.left != null ) {\n\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\n\t\t}\n\n\t\tif ( \"using\" in options ) {\n\t\t\toptions.using.call( elem, props );\n\t\t} else {\n\t\t\tcurElem.css( props );\n\t\t}\n\t}\n};\n\n\njQuery.fn.extend({\n\n\tposition: function() {\n\t\tif ( !this[ 0 ] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar offsetParent, offset,\n\t\t\tparentOffset = { top: 0, left: 0 },\n\t\t\telem = this[ 0 ];\n\n\t\t// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent\n\t\tif ( jQuery.css( elem, \"position\" ) === \"fixed\" ) {\n\t\t\t// we assume that getBoundingClientRect is available when computed position is fixed\n\t\t\toffset = elem.getBoundingClientRect();\n\t\t} else {\n\t\t\t// Get *real* offsetParent\n\t\t\toffsetParent = this.offsetParent();\n\n\t\t\t// Get correct offsets\n\t\t\toffset = this.offset();\n\t\t\tif ( !jQuery.nodeName( offsetParent[ 0 ], \"html\" ) ) {\n\t\t\t\tparentOffset = offsetParent.offset();\n\t\t\t}\n\n\t\t\t// Add offsetParent borders\n\t\t\tparentOffset.top += jQuery.css( offsetParent[ 0 ], \"borderTopWidth\", true );\n\t\t\tparentOffset.left += jQuery.css( offsetParent[ 0 ], \"borderLeftWidth\", true );\n\t\t}\n\n\t\t// Subtract parent offsets and element margins\n\t\t// note: when an element has margin: auto the offsetLeft and marginLeft\n\t\t// are the same in Safari causing offset.left to incorrectly be 0\n\t\treturn {\n\t\t\ttop: offset.top - parentOffset.top - jQuery.css( elem, \"marginTop\", true ),\n\t\t\tleft: offset.left - parentOffset.left - jQuery.css( elem, \"marginLeft\", true)\n\t\t};\n\t},\n\n\toffsetParent: function() {\n\t\treturn this.map(function() {\n\t\t\tvar offsetParent = this.offsetParent || document.documentElement;\n\t\t\twhile ( offsetParent && ( !jQuery.nodeName( offsetParent, \"html\" ) && jQuery.css( offsetParent, \"position\") === \"static\" ) ) {\n\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t}\n\t\t\treturn offsetParent || document.documentElement;\n\t\t});\n\t}\n});\n\n\n// Create scrollLeft and scrollTop methods\njQuery.each( {scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\"}, function( method, prop ) {\n\tvar top = /Y/.test( prop );\n\n\tjQuery.fn[ method ] = function( val ) {\n\t\treturn jQuery.access( this, function( elem, method, val ) {\n\t\t\tvar win = getWindow( elem );\n\n\t\t\tif ( val === undefined ) {\n\t\t\t\treturn win ? (prop in win) ? win[ prop ] :\n\t\t\t\t\twin.document.documentElement[ method ] :\n\t\t\t\t\telem[ method ];\n\t\t\t}\n\n\t\t\tif ( win ) {\n\t\t\t\twin.scrollTo(\n\t\t\t\t\t!top ? val : jQuery( win ).scrollLeft(),\n\t\t\t\t\ttop ? val : jQuery( win ).scrollTop()\n\t\t\t\t);\n\n\t\t\t} else {\n\t\t\t\telem[ method ] = val;\n\t\t\t}\n\t\t}, method, val, arguments.length, null );\n\t};\n});\n\nfunction getWindow( elem ) {\n\treturn jQuery.isWindow( elem ) ?\n\t\telem :\n\t\telem.nodeType === 9 ?\n\t\t\telem.defaultView || elem.parentWindow :\n\t\t\tfalse;\n}\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\njQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\n\tjQuery.each( { padding: \"inner\" + name, content: type, \"\": \"outer\" + name }, function( defaultExtra, funcName ) {\n\t\t// margin is only for outerHeight, outerWidth\n\t\tjQuery.fn[ funcName ] = function( margin, value ) {\n\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\n\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\n\n\t\t\treturn jQuery.access( this, function( elem, type, value ) {\n\t\t\t\tvar doc;\n\n\t\t\t\tif ( jQuery.isWindow( elem ) ) {\n\t\t\t\t\t// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there\n\t\t\t\t\t// isn't a whole lot we can do. See pull request at this URL for discussion:\n\t\t\t\t\t// https://github.com/jquery/jquery/pull/764\n\t\t\t\t\treturn elem.document.documentElement[ \"client\" + name ];\n\t\t\t\t}\n\n\t\t\t\t// Get document width or height\n\t\t\t\tif ( elem.nodeType === 9 ) {\n\t\t\t\t\tdoc = elem.documentElement;\n\n\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest\n\t\t\t\t\t// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.\n\t\t\t\t\treturn Math.max(\n\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\n\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\n\t\t\t\t\t\tdoc[ \"client\" + name ]\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn value === undefined ?\n\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\n\t\t\t\t\tjQuery.css( elem, type, extra ) :\n\n\t\t\t\t\t// Set width or height on the element\n\t\t\t\t\tjQuery.style( elem, type, value, extra );\n\t\t\t}, type, chainable ? margin : undefined, chainable, null );\n\t\t};\n\t});\n});\n// Limit scope pollution from any deprecated API\n// (function() {\n\n// })();\n// Expose jQuery to the global object\nBI.jQuery = BI.$ = jQuery;\nwindow.$ = window.$ || jQuery;\nwindow.jQuery = window.jQuery || jQuery;\n\n// Expose jQuery as an AMD module, but only for AMD loaders that\n// understand the issues with loading multiple versions of jQuery\n// in a page that all might call define(). The loader will indicate\n// they have special allowances for multiple jQuery versions by\n// specifying define.amd.jQuery = true. Register as a named module,\n// since jQuery can be concatenated with other files that may use define,\n// but not use a proper concatenation script that understands anonymous\n// AMD modules. A named AMD is safest and most robust way to register.\n// Lowercase jquery is used because AMD module names are derived from\n// file names, and jQuery is normally delivered in a lowercase file name.\n// Do this after creating the global so that if an AMD module wants to call\n// noConflict to hide this version of jQuery, it will work.\nif ( typeof define === \"function\" && define.amd && define.amd.jQuery ) {\n\tdefine( \"jquery\", [], function () { return jQuery; } );\n}\n\n})( window );/*\n * 给jQuery.Event对象添加的工具方法\n */\nBI.$.extend(BI.$.Event.prototype, {\n // event.stopEvent\n stopEvent: function () {\n this.stopPropagation();\n this.preventDefault();\n }\n});if (BI.jQuery) {\n (function ($) {\n // richer:容器在其各个边缘留出的空间\n if (!$.fn.insets) {\n $.fn.insets = function () {\n var p = this.padding(),\n b = this.border();\n return {\n top: p.top,\n bottom: p.bottom + b.bottom + b.top,\n left: p.left,\n right: p.right + b.right + b.left\n };\n };\n }\n\n // richer:获取 && 设置jQuery元素的边界\n if (!$.fn.bounds) {\n $.fn.bounds = function (value) {\n var tmp = {hasIgnoredBounds: true};\n\n if (value) {\n if (!isNaN(value.x)) {\n tmp.left = value.x;\n }\n if (!isNaN(value.y)) {\n tmp.top = value.y;\n }\n if (value.width != null) {\n tmp.width = (value.width - (this.outerWidth(true) - this.width()));\n tmp.width = (tmp.width >= 0) ? tmp.width : value.width;\n // fix chrome\n // tmp.width = (tmp.width >= 0) ? tmp.width : 0;\n }\n if (value.height != null) {\n tmp.height = value.height - (this.outerHeight(true) - this.height());\n tmp.height = (tmp.height >= 0) ? tmp.height : value.height;\n // fix chrome\n // tmp.height = (tmp.height >= 0) ? tmp.height : value.0;\n }\n this.css(tmp);\n return this;\n }\n\n // richer:注意此方法只对可见元素有效\n tmp = this.position();\n return {\n x: tmp.left,\n y: tmp.top,\n // richer:这里计算外部宽度和高度的时候,都不包括边框\n width: this.outerWidth(),\n height: this.outerHeight()\n };\n\n };\n }\n })(BI.jQuery);\n\n BI.extend(BI.jQuery.fn, {\n\n destroy: function () {\n this.remove();\n if (BI.isIE() === true) {\n this[0].outerHTML = \"\";\n }\n },\n /**\n * 高亮显示\n * @param text 必需\n * @param keyword\n * @param py\n * @returns {*}\n * @private\n * 原理:\n * 1、得到text的拼音py, 分别看是否匹配关键字keyword, 得到匹配索引tidx和pidx\n * 2、比较tidx和pidx, 取大于-1且较小的索引,标红[索引,索引 + keyword.length - 1]的文本\n * 3、text和py各自取tidx/pidx + keyword.length索引开始的子串作为新的text和py, 重复1, 直到text和py有一个为\"\"\n */\n __textKeywordMarked__: function (text, keyword, py) {\n if (!BI.isKey(keyword) || (text + \"\").length > 100) {\n return this.html(BI.htmlEncode(text));\n }\n keyword = keyword + \"\";\n keyword = BI.toUpperCase(keyword);\n var textLeft = (text || \"\") + \"\";\n py = (py || BI.makeFirstPY(text, {\n splitChar: \"\\u200b\"\n })) + \"\";\n py = BI.toUpperCase(py);\n this.empty();\n // BI-48487 性能: makeFirstPY出来的py中包含多音字是必要的,但虽然此方法中做了限制。但是对于一个长度为60,包含14个多音字的字符串\n // 获取的的py长度将达到1966080, 远超过text的长度,到后面都是在做\"\".substring的无用功,所以此循环应保证py和textLeft长度不为0\n while (py.length > 0 && textLeft.length > 0) {\n var tidx = BI.toUpperCase(textLeft).indexOf(keyword);\n var pidx = py.indexOf(keyword);\n if (pidx >= 0) {\n pidx = (pidx - Math.floor(pidx / (textLeft.length + 1))) % textLeft.length;\n }\n\n // BI-56945 场景: 对'啊a'标红, a为keyword, 此时tidx为1, pidx为0, 此时使用tidx显然'啊'就无法标红了\n if (tidx >= 0 && (pidx > tidx || pidx === -1)) {\n // 标红的text未encode\n this.append(BI.htmlEncode(textLeft.substr(0, tidx)));\n this.append(BI.$(\"<span>\").addClass(\"bi-keyword-red-mark\")\n .html(BI.htmlEncode(textLeft.substr(tidx, keyword.length))));\n\n textLeft = textLeft.substr(tidx + keyword.length);\n if (BI.isNotEmptyString(py)) {\n // 每一组拼音都应该前进,而不是只是当前的\n py = BI.map(py.split(\"\\u200b\"), function (idx, ps) {\n return ps.slice(tidx + keyword.length);\n }).join(\"\\u200b\");\n }\n } else if (pidx >= 0) {\n // BI-56386 这边两个pid / text.length是为了防止截取的首字符串不是完整的,但光这样做还不够,即时错位了,也不能说明就不符合条件\n // 标红的text未encode\n this.append(BI.htmlEncode(textLeft.substr(0, pidx)));\n this.append(BI.$(\"<span>\").addClass(\"bi-keyword-red-mark\")\n .html(BI.htmlEncode(textLeft.substr(pidx, keyword.length))));\n if (BI.isNotEmptyString(py)) {\n // 每一组拼音都应该前进,而不是只是当前的\n py = BI.map(py.split(\"\\u200b\"), function (idx, ps) {\n return ps.slice(pidx + keyword.length);\n }).join(\"\\u200b\");\n }\n textLeft = textLeft.substr(pidx + keyword.length);\n } else {\n // 标红的text未encode\n this.append(BI.htmlEncode(textLeft));\n break;\n }\n }\n\n return this;\n },\n\n getDomHeight: function (parent) {\n var clone = BI.$(this).clone();\n clone.appendTo(BI.$(parent || \"body\"));\n var height = clone.height();\n clone.remove();\n return height;\n },\n\n // 是否有竖直滚动条\n hasVerticalScroll: function () {\n return this.height() > 0 && this[0].clientWidth < this[0].offsetWidth;\n },\n\n // 是否有水平滚动条\n hasHorizonScroll: function () {\n return this.width() > 0 && this[0].clientHeight < this[0].offsetHeight;\n },\n\n // 获取计算后的样式\n getStyle: function (name) {\n var node = this[0];\n var computedStyle = void 0;\n\n // W3C Standard\n if (_global.getComputedStyle) {\n // In certain cases such as within an iframe in FF3, this returns null.\n computedStyle = _global.getComputedStyle(node, null);\n if (computedStyle) {\n return computedStyle.getPropertyValue(BI.hyphenate(name));\n }\n }\n // Safari\n if (document.defaultView && document.defaultView.getComputedStyle) {\n computedStyle = document.defaultView.getComputedStyle(node, null);\n // A Safari bug causes this to return null for `display: none` elements.\n if (computedStyle) {\n return computedStyle.getPropertyValue(BI.hyphenate(name));\n }\n if (name === \"display\") {\n return \"none\";\n }\n }\n // Internet Explorer\n if (node.currentStyle) {\n if (name === \"float\") {\n return node.currentStyle.cssFloat || node.currentStyle.styleFloat;\n }\n return node.currentStyle[BI.camelize(name)];\n }\n return node.style && node.style[BI.camelize(name)];\n },\n\n __isMouseInBounds__: function (e) {\n var offset2Body = this.get(0).getBoundingClientRect ? this.get(0).getBoundingClientRect() : this.offset();\n var width = offset2Body.width || this.outerWidth();\n var height = offset2Body.height || this.outerHeight();\n // offset2Body.left的值可能会有小数,导致某点出现false\n return !(e.pageX < Math.floor(offset2Body.left) || e.pageX > offset2Body.left + width\n || e.pageY < Math.floor(offset2Body.top) || e.pageY > offset2Body.top + height);\n },\n\n __hasZIndexMask__: function (zindex) {\n return zindex && this.zIndexMask[zindex] != null;\n },\n\n __buildZIndexMask__: function (zindex, domArray) {\n this.zIndexMask = this.zIndexMask || {};// 存储z-index的mask\n this.indexMask = this.indexMask || [];// 存储mask\n var mask = BI.createWidget({\n type: \"bi.center_adapt\",\n cls: \"bi-z-index-mask\",\n items: domArray\n });\n\n mask.element.css({\"z-index\": zindex});\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: mask,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this.indexMask.push(mask);\n zindex && (this.zIndexMask[zindex] = mask);\n return mask.element;\n },\n\n __releaseZIndexMask__: function (zindex) {\n if (zindex && this.zIndexMask[zindex]) {\n BI.remove(this.indexMask, this.zIndexMask[zindex]);\n this.zIndexMask[zindex].destroy();\n return;\n }\n this.indexMask = this.indexMask || [];\n var indexMask = this.indexMask.pop();\n indexMask && indexMask.destroy();\n }\n });\n}\n_.extend(BI, {\n $import: function () {\n var _LOADED = {}; // alex:保存加载过的\n function loadReady (src, must) {\n var $scripts = BI.$(\"head script, body script\");\n BI.$.each($scripts, function (i, item) {\n if (item.src.indexOf(src) != -1) {\n _LOADED[src] = true;\n }\n });\n var $links = BI.$(\"head link\");\n BI.$.each($links, function (i, item) {\n if (item.href.indexOf(src) != -1 && must) {\n _LOADED[src] = false;\n BI.$(item).remove();\n }\n });\n }\n\n // must=true 强行加载\n return function (src, ext, must) {\n loadReady(src, must);\n // alex:如果已经加载过了的,直接return\n if (_LOADED[src] === true) {\n return;\n }\n if (ext === \"css\") {\n var link = document.createElement(\"link\");\n link.rel = \"stylesheet\";\n link.type = \"text/css\";\n link.href = src;\n var head = document.getElementsByTagName(\"head\")[0];\n head.appendChild(link);\n _LOADED[src] = true;\n } else {\n // alex:这里用同步调用的方式,必须等待ajax完成\n BI.$.ajax({\n url: src,\n dataType: \"script\", // alex:指定dataType为script,jquery会帮忙做globalEval的事情\n async: false,\n cache: true,\n complete: function (res, status) {\n /*\n * alex:发现jquery会很智能地判断一下返回的数据类型是不是script,然后做一个globalEval\n * 所以当status为success时就不需要再把其中的内容加到script里面去了\n */\n if (status == \"success\") {\n _LOADED[src] = true;\n }\n }\n });\n }\n };\n }()\n});if (!Number.prototype.toFixed || (0.00008).toFixed(3) !== \"0.000\" ||\n (0.9).toFixed(0) === \"0\" || (1.255).toFixed(2) !== \"1.25\" ||\n (1000000000000000128).toFixed(0) !== \"1000000000000000128\") {\n (function () {\n var base, size, data, i;\n base = 1e7;\n size = 6;\n data = [0, 0, 0, 0, 0, 0];\n function multiply (n, c) {\n var i = -1;\n while (++i < size) {\n c += n * data[i];\n data[i] = c % base;\n c = Math.floor(c / base);\n }\n }\n\n function divide (n) {\n var i = size, c = 0;\n while (--i >= 0) {\n c += data[i];\n data[i] = Math.floor(c / n);\n c = (c % n) * base;\n }\n }\n\n function toString () {\n var i = size;\n var s = \"\";\n while (--i >= 0) {\n if (s !== \"\" || i === 0 || data[i] !== 0) {\n var t = String(data[i]);\n if (s === \"\") {\n s = t;\n } else {\n s += \"0000000\".slice(0, 7 - t.length) + t;\n }\n }\n }\n return s;\n }\n\n function pow (x, n, acc) {\n return (n === 0 ? acc : (n % 2 === 1 ? pow(x, n - 1, acc * x)\n : pow(x * x, n / 2, acc)));\n }\n\n function log (x) {\n var n = 0;\n while (x >= 4096) {\n n += 12;\n x /= 4096;\n }\n while (x >= 2) {\n n += 1;\n x /= 2;\n }\n return n;\n }\n\n Number.prototype.toFixed = function (fractionDigits) {\n var f, x, s, m, e, z, j, k;\n f = Number(fractionDigits);\n f = f !== f ? 0 : Math.floor(f);\n\n if (f < 0 || f > 20) {\n throw new RangeError(\"Number.toFixed called with invalid number of decimals\");\n }\n\n x = Number(this);\n\n if (x !== x) {\n return \"NaN\";\n }\n\n if (x <= -1e21 || x > 1e21) {\n return String(x);\n }\n\n s = \"\";\n\n if (x < 0) {\n s = \"-\";\n x = -x;\n }\n\n m = \"0\";\n\n if (x > 1e-21) {\n // 1e-21<x<1e21\n // -70<log2(x)<70\n e = log(x * pow(2, 69, 1)) - 69;\n z = (e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1));\n z *= 0x10000000000000;// Math.pow(2,52);\n e = 52 - e;\n\n // -18<e<122\n // x=z/2^e\n if (e > 0) {\n multiply(0, z);\n j = f;\n\n while (j >= 7) {\n multiply(1e7, 0);\n j -= 7;\n }\n\n multiply(pow(10, j, 1), 0);\n j = e - 1;\n\n while (j >= 23) {\n divide(1 << 23);\n j -= 23;\n }\n divide(1 << j);\n multiply(1, 1);\n divide(2);\n m = toString();\n } else {\n multiply(0, z);\n multiply(1 << (-e), 0);\n m = toString() + \"0.00000000000000000000\".slice(2, 2 + f);\n }\n }\n\n if (f > 0) {\n k = m.length;\n\n if (k <= f) {\n m = s + \"0.0000000000000000000\".slice(0, f - k + 2) + m;\n } else {\n m = s + m.slice(0, k - f) + \".\" + m.slice(k - f);\n }\n } else {\n m = s + m;\n }\n\n return m;\n };\n\n })();\n}/**\n * 常量\n */\n\n_.extend(BI, {\n MAX: 0xfffffffffffffff,\n MIN: -0xfffffffffffffff,\n EVENT_RESPONSE_TIME: 200,\n zIndex_layer: 1e5,\n zIndex_popover: 1e6,\n zIndex_popup: 1e7,\n zIndex_masker: 1e8,\n zIndex_tip: 1e9,\n emptyStr: \"\",\n emptyFn: function () {\n },\n empty: null,\n Key: {\n 48: \"0\",\n 49: \"1\",\n 50: \"2\",\n 51: \"3\",\n 52: \"4\",\n 53: \"5\",\n 54: \"6\",\n 55: \"7\",\n 56: \"8\",\n 57: \"9\",\n 65: \"a\",\n 66: \"b\",\n 67: \"c\",\n 68: \"d\",\n 69: \"e\",\n 70: \"f\",\n 71: \"g\",\n 72: \"h\",\n 73: \"i\",\n 74: \"j\",\n 75: \"k\",\n 76: \"l\",\n 77: \"m\",\n 78: \"n\",\n 79: \"o\",\n 80: \"p\",\n 81: \"q\",\n 82: \"r\",\n 83: \"s\",\n 84: \"t\",\n 85: \"u\",\n 86: \"v\",\n 87: \"w\",\n 88: \"x\",\n 89: \"y\",\n 90: \"z\",\n 96: \"0\",\n 97: \"1\",\n 98: \"2\",\n 99: \"3\",\n 100: \"4\",\n 101: \"5\",\n 102: \"6\",\n 103: \"7\",\n 104: \"8\",\n 105: \"9\",\n 106: \"*\",\n 107: \"+\",\n 109: \"-\",\n 110: \".\",\n 111: \"/\"\n },\n KeyCode: {\n BACKSPACE: 8,\n COMMA: 188,\n DELETE: 46,\n DOWN: 40,\n END: 35,\n ENTER: 13,\n ESCAPE: 27,\n HOME: 36,\n LEFT: 37,\n NUMPAD_ADD: 107,\n NUMPAD_DECIMAL: 110,\n NUMPAD_DIVIDE: 111,\n NUMPAD_ENTER: 108,\n NUMPAD_MULTIPLY: 106,\n NUMPAD_SUBTRACT: 109,\n PAGE_DOWN: 34,\n PAGE_UP: 33,\n PERIOD: 190,\n RIGHT: 39,\n SPACE: 32,\n TAB: 9,\n UP: 38\n },\n Status: {\n SUCCESS: 1,\n WRONG: 2,\n START: 3,\n END: 4,\n WAITING: 5,\n READY: 6,\n RUNNING: 7,\n OUTOFBOUNDS: 8,\n NULL: -1\n },\n Direction: {\n Top: \"top\",\n Bottom: \"bottom\",\n Left: \"left\",\n Right: \"right\",\n Custom: \"custom\"\n },\n Axis: {\n Vertical: \"vertical\",\n Horizontal: \"horizontal\"\n },\n Selection: {\n Default: -2,\n None: -1,\n Single: 0,\n Multi: 1,\n All: 2\n },\n HorizontalAlign: {\n Left: \"left\",\n Right: \"right\",\n Center: \"center\",\n Stretch: \"stretch\"\n },\n VerticalAlign: {\n Middle: \"middle\",\n Top: \"top\",\n Bottom: \"bottom\",\n Stretch: \"stretch\"\n },\n StartOfWeek: 1\n});BI.version = \"2.0\";/**\n * absolute实现的居中布局\n * @class BI.AbsoluteCenterLayout\n * @extends BI.Layout\n */\nBI.AbsoluteCenterLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.AbsoluteCenterLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-absolute-center-layout\",\n hgap: 0,\n lgap: 0,\n rgap: 0,\n vgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.AbsoluteCenterLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.AbsoluteCenterLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"absolute\",\n left: o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0),\n right: o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0),\n top: o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0),\n bottom: o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0),\n margin: \"auto\"\n });\n return w;\n },\n\n resize: function () {\n // console.log(\"absolute_center_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n BI.AbsoluteCenterLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.absolute_center_adapt\", BI.AbsoluteCenterLayout);/**\n * absolute实现的居中布局\n * @class BI.AbsoluteHorizontalLayout\n * @extends BI.Layout\n */\nBI.AbsoluteHorizontalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.AbsoluteHorizontalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-absolute-horizontal-layout\",\n hgap: 0,\n lgap: 0,\n rgap: 0,\n vgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.AbsoluteHorizontalLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.AbsoluteHorizontalLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"absolute\",\n left: o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0),\n right: o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0),\n margin: \"auto\"\n });\n if (o.vgap + o.tgap + (item.vgap || 0) + (item.tgap || 0) !== 0) {\n w.element.css(\"top\", o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0));\n }\n if (o.vgap + o.bgap + (item.vgap || 0) + (item.bgap || 0) !== 0) {\n w.element.css(\"bottom\", o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0));\n }\n return w;\n },\n\n resize: function () {\n // console.log(\"absolute_horizontal_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n BI.AbsoluteHorizontalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.absolute_horizontal_adapt\", BI.AbsoluteHorizontalLayout);/**\n * absolute实现的居中布局\n * @class BI.AbsoluteVerticalLayout\n * @extends BI.Layout\n */\nBI.AbsoluteVerticalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.AbsoluteVerticalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-absolute-vertical-layout\",\n hgap: 0,\n lgap: 0,\n rgap: 0,\n vgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.AbsoluteVerticalLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.AbsoluteVerticalLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"absolute\",\n left: item.lgap,\n right: item.rgap,\n top: o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0),\n bottom: o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0),\n margin: \"auto\"\n });\n if (o.hgap + o.lgap + (item.hgap || 0) + (item.lgap || 0) !== 0) {\n w.element.css(\"left\", o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0));\n }\n if (o.hgap + o.rgap + (item.hgap || 0) + (item.rgap || 0) !== 0) {\n w.element.css(\"right\", o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0));\n }\n return w;\n },\n\n resize: function () {\n // console.log(\"absolute_vertical_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n BI.AbsoluteVerticalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.absolute_vertical_adapt\", BI.AbsoluteVerticalLayout);/**\n * 自适应水平和垂直方向都居中容器\n * @class BI.CenterAdaptLayout\n * @extends BI.Layout\n */\nBI.CenterAdaptLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.CenterAdaptLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-center-adapt-layout\",\n horizontalAlign: BI.HorizontalAlign.Center,\n columnSize: [],\n scrollx: false,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var o = this.options, self = this;\n BI.CenterAdaptLayout.superclass.render.apply(this, arguments);\n return {\n type: \"bi.horizontal\",\n verticalAlign: BI.VerticalAlign.Middle,\n horizontalAlign: o.horizontalAlign,\n columnSize: o.columnSize,\n scrollx: o.scrollx,\n items: o.items,\n ref: function (_ref) {\n self.layout = _ref;\n },\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n };\n },\n\n resize: function () {\n // console.log(\"center_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n this.layout.populate.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.center_adapt\", BI.CenterAdaptLayout);/**\n * 水平方向居中容器\n * @class BI.HorizontalAdaptLayout\n * @extends BI.Layout\n */\nBI.HorizontalAdaptLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.HorizontalAdaptLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-horizontal-adapt-layout\",\n verticalAlign: BI.VerticalAlign.Top,\n horizontalAlign: BI.HorizontalAlign.Center,\n columnSize: [],\n scrollx: false,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var self = this, o = this.options;\n BI.HorizontalAdaptLayout.superclass.render.apply(this, arguments);\n return {\n type: \"bi.horizontal\",\n verticalAlign: BI.VerticalAlign.Top,\n horizontalAlign: o.horizontalAlign,\n columnSize: o.columnSize,\n items: o.items,\n scrollx: o.scrollx,\n ref: function (_ref) {\n self.layout = _ref;\n },\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n };\n },\n\n resize: function () {\n // console.log(\"horizontal_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n this.layout.populate.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.horizontal_adapt\", BI.HorizontalAdaptLayout);/**\n * 左右分离,垂直方向居中容器\n * items:{\n left: [{el:{type:\"bi.button\"}}],\n right:[{el:{type:\"bi.button\"}}]\n }\n * @class BI.LeftRightVerticalAdaptLayout\n * @extends BI.Layout\n */\nBI.LeftRightVerticalAdaptLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.LeftRightVerticalAdaptLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-left-right-vertical-adapt-layout\",\n items: {},\n llgap: 0,\n lrgap: 0,\n lhgap: 0,\n rlgap: 0,\n rrgap: 0,\n rhgap: 0\n });\n },\n render: function () {\n var o = this.options, self = this;\n BI.LeftRightVerticalAdaptLayout.superclass.render.apply(this, arguments);\n var layoutArray = [];\n if (\"left\" in o.items) {\n layoutArray.push({\n type: \"bi.left\",\n items: [{\n el: {\n type: \"bi.vertical_adapt\",\n height: \"100%\",\n items: o.items.left,\n hgap: o.lhgap,\n lgap: o.llgap,\n rgap: o.lrgap\n }\n }]\n });\n }\n if (\"right\" in o.items) {\n layoutArray.push({\n type: \"bi.right\",\n items: [{\n el: {\n type: \"bi.vertical_adapt\",\n height: \"100%\",\n items: o.items.right,\n textAlign: \"right\",\n hgap: o.rhgap,\n lgap: o.rlgap,\n rgap: o.rrgap\n }\n }]\n });\n }\n return layoutArray;\n },\n\n resize: function () {\n // console.log(\"left_right_vertical_adapt布局不需要resize\");\n },\n\n addItem: function () {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n populate: function (items) {\n BI.LeftRightVerticalAdaptLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.left_right_vertical_adapt\", BI.LeftRightVerticalAdaptLayout);\n\n\nBI.LeftVerticalAdaptLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.LeftRightVerticalAdaptLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-left-vertical-adapt-layout\",\n items: [],\n lgap: 0,\n rgap: 0,\n hgap: 0\n });\n },\n render: function () {\n var o = this.options, self = this;\n BI.LeftVerticalAdaptLayout.superclass.render.apply(this, arguments);\n return {\n type: \"bi.left\",\n ref: function (_ref) {\n self.layout = _ref;\n },\n items: [{\n el: {\n type: \"bi.vertical_adapt\",\n height: \"100%\",\n items: o.items,\n lgap: o.lgap,\n hgap: o.hgap,\n rgap: o.rgap\n }\n }]\n };\n },\n\n resize: function () {\n // console.log(\"left_vertical_adapt布局不需要resize\");\n },\n\n addItem: function () {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n populate: function (items) {\n this.layout.populate.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.left_vertical_adapt\", BI.LeftVerticalAdaptLayout);\n\nBI.RightVerticalAdaptLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.RightVerticalAdaptLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-right-vertical-adapt-layout\",\n items: [],\n lgap: 0,\n rgap: 0,\n hgap: 0\n });\n },\n render: function () {\n var o = this.options, self = this;\n BI.RightVerticalAdaptLayout.superclass.render.apply(this, arguments);\n return {\n type: \"bi.right\",\n ref: function (_ref) {\n self.layout = _ref;\n },\n items: [{\n el: {\n type: \"bi.vertical_adapt\",\n height: \"100%\",\n textAlign: \"right\",\n items: o.items,\n lgap: o.lgap,\n hgap: o.hgap,\n rgap: o.rgap\n }\n }]\n };\n },\n\n resize: function () {\n\n },\n\n addItem: function () {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n populate: function (items) {\n this.layout.populate.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.right_vertical_adapt\", BI.RightVerticalAdaptLayout);/**\n * 使用display:table和display:table-cell实现的horizontal布局\n * @class BI.TableAdaptLayout\n * @extends BI.Layout\n */\nBI.TableAdaptLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.TableAdaptLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-table-center-adapt-layout\",\n columnSize: [],\n verticalAlign: BI.VerticalAlign.Top,\n horizontalAlign: BI.HorizontalAlign.Left,\n scrollx: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var o = this.options;\n BI.TableAdaptLayout.superclass.render.apply(this, arguments);\n this.$table = BI.Widget._renderEngine.createElement(\"<div>\").css({\n position: \"relative\",\n display: \"table\",\n height: o.verticalAlign === BI.VerticalAlign.Middle ? \"100%\" : \"auto\",\n width: o.horizontalAlign === BI.HorizontalAlign.Center ? \"100%\" : \"auto\",\n \"white-space\": \"nowrap\"\n });\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n\n var o = this.options;\n var td;\n var width = o.columnSize[i] <= 1 ? (o.columnSize[i] * 100 + \"%\") : o.columnSize[i];\n if (!this.hasWidget(this._getChildName(i))) {\n var w = BI.createWidget(item);\n w.element.css({position: \"relative\", top: \"0\", left: \"0\", margin: \"0px auto\"});\n td = BI.createWidget({\n type: \"bi.default\",\n width: width,\n items: [w]\n });\n this.addWidget(this._getChildName(i), td);\n } else {\n td = this.getWidgetByName(this._getChildName(i));\n td.element.width(width);\n }\n // 对于表现为td的元素设置最大宽度,有几点需要注意\n // 1、由于直接对td设置最大宽度是在规范中未定义的, 所以要使用类似td:firstChild来迂回实现\n // 2、不能给多个td设置最大宽度,这样只会平分宽度\n // 3、多百分比宽度就算了\n td.element.css({\"max-width\": o.columnSize[i] <= 1 ? width : width + \"px\"});\n if (i === 0) {\n td.element.addClass(\"first-element\");\n }\n td.element.css({\n position: \"relative\",\n display: \"table-cell\",\n \"vertical-align\": o.verticalAlign,\n margin: \"0\",\n padding: \"0\",\n height: \"100%\"\n });\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return td;\n },\n\n appendFragment: function (frag) {\n this.$table.append(frag);\n this.element.append(this.$table);\n },\n\n resize: function () {\n // console.log(\"center_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n BI.TableAdaptLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.table_adapt\", BI.TableAdaptLayout);/**\n * 垂直方向居中容器\n * @class BI.VerticalAdaptLayout\n * @extends BI.Layout\n */\nBI.VerticalAdaptLayout = BI.inherit(BI.Layout, {\n props: {\n baseCls: \"bi-vertical-adapt-layout\",\n horizontalAlign: BI.HorizontalAlign.Left,\n columnSize: [],\n scrollx: false,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n },\n\n render: function () {\n var self = this, o = this.options;\n BI.VerticalAdaptLayout.superclass.render.apply(this, arguments);\n return {\n type: \"bi.horizontal\",\n verticalAlign: BI.VerticalAlign.Middle,\n horizontalAlign: o.horizontalAlign,\n columnSize: o.columnSize,\n items: o.items,\n scrollx: o.scrollx,\n ref: function (_ref) {\n self.layout = _ref;\n },\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n };\n },\n\n resize: function () {\n // console.log(\"vertical_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n this.layout.populate.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.vertical_adapt\", BI.VerticalAdaptLayout);/**\n * 水平方向居中自适应容器\n * @class BI.HorizontalAutoLayout\n * @extends BI.Layout\n */\nBI.HorizontalAutoLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.HorizontalAutoLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-horizon-auto-layout\",\n hgap: 0,\n lgap: 0,\n rgap: 0,\n vgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.HorizontalAutoLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.HorizontalAutoLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n margin: \"0px auto\"\n });\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": (i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) +\"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n // console.log(\"horizontal_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n BI.HorizontalAutoLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.horizontal_auto\", BI.HorizontalAutoLayout);/**\n * 浮动的水平居中布局\n */\nBI.FloatHorizontalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FloatHorizontalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-float-horizontal-adapt-layout\",\n items: [],\n hgap: 0,\n vgap: 0,\n tgap: 0,\n bgap: 0,\n lgap: 0,\n rgap: 0\n });\n },\n render: function () {\n BI.FloatHorizontalLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n // console.log(\"float_horizontal_adapt布局不需要resize\");\n },\n\n mounted: function () {\n var self = this;\n var width = this.left.element.width(),\n height = this.left.element.height();\n this.left.element.width(width).height(height).css(\"float\", \"none\");\n BI.remove(this._children, function (i, wi) {\n if (wi === self.container) {\n delete self._children[i];\n }\n });\n BI.createWidget({\n type: \"bi.horizontal_auto\",\n element: this,\n items: [this.left]\n });\n },\n\n _addElement: function (i, item) {\n var self = this, o = this.options;\n this.left = BI.createWidget({\n type: \"bi.vertical\",\n items: [item],\n hgap: o.hgap,\n vgap: o.vgap,\n tgap: o.tgap,\n bgap: o.bgap,\n lgap: o.lgap,\n rgap: o.rgap\n });\n\n this.container = BI.createWidget({\n type: \"bi.left\",\n element: this,\n items: [this.left]\n });\n\n return this.left;\n },\n\n populate: function (items) {\n BI.HorizontalAutoLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.horizontal_float\", BI.FloatHorizontalLayout);/**\n * 内联布局\n * @class BI.InlineCenterAdaptLayout\n * @extends BI.Layout\n *\n * @cfg {JSON} options 配置属性\n * @cfg {Number} [hgap=0] 水平间隙\n * @cfg {Number} [vgap=0] 垂直间隙\n */\nBI.InlineCenterAdaptLayout = BI.inherit(BI.Layout, {\n\n props: function () {\n return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-inline-center-adapt-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.InlineCenterAdaptLayout.superclass.render.apply(this, arguments);\n this.element.css({\n whiteSpace: \"nowrap\",\n textAlign: \"center\"\n });\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item, length) {\n var o = this.options;\n var w = BI.InlineVerticalAdaptLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n \"vertical-align\": \"middle\"\n });\n w.element.addClass(\"inline-center-adapt-item\");\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n addItem: function (item) {\n throw new Error(\"不能添加元素\");\n },\n\n stroke: function (items) {\n var self = this;\n BI.each(items, function (i, item) {\n if (item) {\n self._addElement(i, item, items.length);\n }\n });\n },\n\n populate: function (items) {\n BI.InlineCenterAdaptLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.inline_center_adapt\", BI.InlineCenterAdaptLayout);/**\n * 内联布局\n * @class BI.InlineVerticalAdaptLayout\n * @extends BI.Layout\n *\n * @cfg {JSON} options 配置属性\n * @cfg {Number} [hgap=0] 水平间隙\n * @cfg {Number} [vgap=0] 垂直间隙\n */\nBI.InlineVerticalAdaptLayout = BI.inherit(BI.Layout, {\n\n props: function () {\n return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-inline-vertical-adapt-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n textAlign: \"left\"\n });\n },\n\n render: function () {\n BI.InlineVerticalAdaptLayout.superclass.render.apply(this, arguments);\n var o = this.options;\n this.element.css({\n whiteSpace: \"nowrap\",\n textAlign: o.textAlign\n });\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.InlineVerticalAdaptLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n \"vertical-align\": \"middle\"\n });\n w.element.addClass(\"inline-vertical-adapt-item\");\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) +\"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n populate: function (items) {\n BI.InlineVerticalAdaptLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.inline_vertical_adapt\", BI.InlineVerticalAdaptLayout);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexCenterLayout\n * @extends BI.Layout\n */\nBI.FlexCenterLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-center-adapt-layout\",\n hgap: 0,\n vgap: 0\n });\n },\n render: function () {\n BI.FlexCenterLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n \"flex-shrink\": \"0\",\n \"margin-left\": (i === 0 ? o.hgap : 0) + \"px\",\n \"margin-right\": o.hgap + \"px\",\n \"margin-top\": o.vgap + \"px\",\n \"margin-bottom\": o.vgap + \"px\"\n });\n return w;\n },\n\n resize: function () {\n // console.log(\"flex_center_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n BI.FlexCenterLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.flex_center_adapt\", BI.FlexCenterLayout);/**\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexHorizontalCenter\n * @extends BI.Layout\n */\nBI.FlexHorizontalCenter = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexHorizontalCenter.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-horizontal-center-adapt-layout\",\n verticalAlign: BI.VerticalAlign.Top,\n rowSize: [],\n scrolly: false,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.flex_vertical\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n horizontalAlign: BI.HorizontalAlign.Center,\n verticalAlign: o.verticalAlign,\n rowSize: o.rowSize,\n scrollx: o.scrollx,\n scrolly: o.scrolly,\n scrollable: o.scrollable,\n hgap: o.hgap,\n vgap: o.vgap,\n tgap: o.tgap,\n bgap: o.bgap,\n items: o.items\n };\n },\n\n resize: function () {\n // console.log(\"flex_vertical_center_adapt布局不需要resize\");\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate(items);\n }\n});\nBI.shortcut(\"bi.flex_horizontal_adapt\", BI.FlexHorizontalCenter);\nBI.shortcut(\"bi.flex_horizontal_center_adapt\", BI.FlexHorizontalCenter);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexHorizontalLayout\n * @extends BI.Layout\n */\nBI.FlexHorizontalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexHorizontalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-horizontal-layout\",\n verticalAlign: BI.VerticalAlign.Top,\n horizontalAlign: BI.HorizontalAlign.Left,// 如果只有一个子元素且想让该子元素横向撑满,设置成Stretch\n columnSize: [],\n scrollx: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.FlexHorizontalLayout.superclass.render.apply(this, arguments);\n var o = this.options;\n this.element.addClass(\"v-\" + o.verticalAlign).addClass(\"h-\" + o.horizontalAlign);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.FlexHorizontalLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n \"flex-shrink\": \"0\"\n });\n if (o.columnSize[i] > 0) {\n w.element.width(o.columnSize[i]);\n }\n if (o.columnSize[i] === \"fill\") {\n w.element.css(\"flex\", \"1\");\n }\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n // console.log(\"flex_horizontal布局不需要resize\");\n },\n\n populate: function (items) {\n BI.FlexHorizontalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.flex_horizontal\", BI.FlexHorizontalLayout);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexVerticalCenter\n * @extends BI.Layout\n */\nBI.FlexVerticalCenter = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexVerticalCenter.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-vertical-center-adapt-layout\",\n horizontalAlign: BI.HorizontalAlign.Left,\n columnSize: [],\n scrollx: false,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.flex_horizontal\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n verticalAlign: BI.VerticalAlign.Middle,\n horizontalAlign: o.horizontalAlign,\n columnSize: o.columnSize,\n scrollx: o.scrollx,\n scrolly: o.scrolly,\n scrollable: o.scrollable,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n hgap: o.hgap,\n items: o.items\n };\n },\n\n resize: function () {\n // console.log(\"flex_vertical_center_adapt布局不需要resize\");\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate(items);\n }\n});\nBI.shortcut(\"bi.flex_vertical_adapt\", BI.FlexVerticalCenter);\nBI.shortcut(\"bi.flex_vertical_center_adapt\", BI.FlexVerticalCenter);/**\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexVerticalLayout\n * @extends BI.Layout\n */\nBI.FlexVerticalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexVerticalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-vertical-layout\",\n horizontalAlign: BI.HorizontalAlign.Left,\n verticalAlign: BI.VerticalAlign.Top,\n rowSize: [],\n scrolly: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.FlexVerticalLayout.superclass.render.apply(this, arguments);\n var o = this.options;\n this.element.addClass(\"h-\" + o.horizontalAlign).addClass(\"v-\" + o.verticalAlign);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var w = BI.FlexVerticalLayout.superclass._addElement.apply(this, arguments);\n var o = this.options;\n w.element.css({\n position: \"relative\",\n \"flex-shrink\": \"0\"\n });\n if (o.rowSize[i] > 0) {\n w.element.height(o.rowSize[i]);\n }\n if (o.rowSize[i] === \"fill\") {\n w.element.css(\"flex\", \"1\");\n }\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": (i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n // console.log(\"flex_vertical布局不需要resize\");\n },\n\n populate: function (items) {\n BI.FlexVerticalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.flex_vertical\", BI.FlexVerticalLayout);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexWrapperCenterLayout\n * @extends BI.Layout\n */\nBI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-scrollable-center-adapt-layout clearfix\",\n scrollable: true\n });\n },\n render: function () {\n BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);\n this.$wrapper = BI.Widget._renderEngine.createElement(\"<div>\").addClass(\"flex-scrollable-center-adapt-layout-wrapper\");\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n \"margin-left\": (i === 0 ? o.hgap : 0) + \"px\",\n \"margin-right\": o.hgap + \"px\",\n \"margin-top\": o.vgap + \"px\",\n \"margin-bottom\": o.vgap + \"px\"\n });\n return w;\n },\n\n appendFragment: function (frag) {\n this.$wrapper.append(frag);\n this.element.append(this.$wrapper);\n },\n\n _getWrapper: function () {\n return this.$wrapper;\n },\n\n resize: function () {\n // console.log(\"flex_center_adapt布局不需要resize\");\n },\n\n populate: function (items) {\n BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.flex_scrollable_center_adapt\", BI.FlexWrapperCenterLayout);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexVerticalCenter\n * @extends BI.Layout\n */\nBI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexWrapperHorizontalCenter.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-scrollable-vertical-center-adapt-layout clearfix\",\n verticalAlign: BI.VerticalAlign.Top,\n rowSize: [],\n scrollable: true,\n scrolly: false,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.flex_scrollable_vertical\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n horizontalAlign: BI.HorizontalAlign.Center,\n verticalAlign: o.verticalAlign,\n rowSize: o.rowSize,\n scrollx: o.scrollx,\n scrolly: o.scrolly,\n scrollable: o.scrollable,\n hgap: o.hgap,\n vgap: o.vgap,\n tgap: o.tgap,\n bgap: o.bgap,\n items: o.items\n };\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate(items);\n }\n});\nBI.shortcut(\"bi.flex_scrollable_horizontal_adapt\", BI.FlexWrapperHorizontalCenter);\nBI.shortcut(\"bi.flex_scrollable_horizontal_center_adapt\", BI.FlexWrapperHorizontalCenter);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexHorizontalLayout\n * @extends BI.Layout\n */\nBI.FlexWrapperHorizontalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexWrapperHorizontalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-scrollable-horizontal-layout clearfix\",\n verticalAlign: BI.VerticalAlign.Top,\n horizontalAlign: BI.HorizontalAlign.Left,\n columnSize: [],\n scrollable: null,\n scrollx: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.FlexWrapperHorizontalLayout.superclass.render.apply(this, arguments);\n var o = this.options;\n this.$wrapper = BI.Widget._renderEngine.createElement(\"<div>\").addClass(\"flex-scrollable-horizontal-layout-wrapper v-\" + o.verticalAlign).addClass(\"h-\" + o.horizontalAlign);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.FlexWrapperHorizontalLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n \"flex-shrink\": \"0\"\n });\n if (o.columnSize[i] > 0) {\n w.element.width(o.columnSize[i]);\n }\n if (o.columnSize[i] === \"fill\") {\n w.element.css(\"flex\", \"1\");\n }\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n appendFragment: function (frag) {\n this.$wrapper.append(frag);\n this.element.append(this.$wrapper);\n },\n\n _getWrapper: function () {\n return this.$wrapper;\n },\n\n resize: function () {\n // console.log(\"flex_wrapper_horizontal布局不需要resize\");\n },\n\n populate: function (items) {\n BI.FlexWrapperHorizontalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.flex_scrollable_horizontal\", BI.FlexWrapperHorizontalLayout);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexVerticalCenter\n * @extends BI.Layout\n */\nBI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexWrapperVerticalCenter.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-scrollable-vertical-center-adapt-layout clearfix\",\n horizontalAlign: BI.HorizontalAlign.Left,\n columnSize: [],\n scrollx: false,\n scrollable: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.flex_scrollable_horizontal\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n verticalAlign: BI.VerticalAlign.Middle,\n horizontalAlign: o.horizontalAlign,\n columnSize: o.columnSize,\n scrollx: o.scrollx,\n scrolly: o.scrolly,\n scrollable: o.scrollable,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n items: o.items\n };\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate(items);\n }\n});\nBI.shortcut(\"bi.flex_scrollable_vertical_adapt\", BI.FlexWrapperVerticalCenter);\nBI.shortcut(\"bi.flex_scrollable_vertical_center_adapt\", BI.FlexWrapperVerticalCenter);/**\n *自适应水平和垂直方向都居中容器\n * Created by GUY on 2016/12/2.\n *\n * @class BI.FlexWrapperVerticalLayout\n * @extends BI.Layout\n */\nBI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FlexWrapperVerticalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-flex-scrollable-vertical-layout clearfix\",\n horizontalAlign: BI.HorizontalAlign.Left,\n verticalAlign: BI.VerticalAlign.Top,\n rowSize: [],\n scrollable: null,\n scrolly: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);\n var o = this.options;\n this.$wrapper = BI.Widget._renderEngine.createElement(\"<div>\").addClass(\"flex-scrollable-vertical-layout-wrapper h-\" + o.horizontalAlign).addClass(\"v-\" + o.verticalAlign);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.FlexWrapperVerticalLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\",\n \"flex-shrink\": \"0\"\n });\n if (o.rowSize[i] > 0) {\n w.element.height(o.rowSize[i]);\n }\n if (o.rowSize[i] === \"fill\") {\n w.element.css(\"flex\", \"1\");\n }\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": (i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n appendFragment: function (frag) {\n this.$wrapper.append(frag);\n this.element.append(this.$wrapper);\n },\n\n _getWrapper: function () {\n return this.$wrapper;\n },\n\n resize: function () {\n // console.log(\"flex_wrapper_vertical布局不需要resize\");\n },\n\n populate: function (items) {\n BI.FlexWrapperVerticalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.flex_scrollable_vertical\", BI.FlexWrapperVerticalLayout);/**\n * 固定子组件上下左右的布局容器\n * @class BI.AbsoluteLayout\n * @extends BI.Layout\n */\nBI.AbsoluteLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.AbsoluteLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-absolute-layout\",\n hgap: null,\n vgap: null,\n lgap: null,\n rgap: null,\n tgap: null,\n bgap: null\n });\n },\n render: function () {\n BI.AbsoluteLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.AbsoluteLayout.superclass._addElement.apply(this, arguments);\n var left = 0, right = 0, top = 0, bottom = 0;\n if (BI.isNotNull(item.left)) {\n w.element.css({left: item.left});\n left += item.left;\n }\n if (BI.isNotNull(item.right)) {\n w.element.css({right: item.right});\n right += item.right;\n }\n if (BI.isNotNull(item.top)) {\n w.element.css({top: item.top});\n top += item.top;\n }\n if (BI.isNotNull(item.bottom)) {\n w.element.css({bottom: item.bottom});\n bottom += item.bottom;\n }\n\n if (BI.isNotNull(o.hgap)) {\n left += o.hgap;\n w.element.css({left: left});\n right += o.hgap;\n w.element.css({right: right});\n }\n if (BI.isNotNull(o.vgap)) {\n top += o.vgap;\n w.element.css({top: top});\n bottom += o.vgap;\n w.element.css({bottom: bottom});\n }\n\n if (BI.isNotNull(o.lgap)) {\n left += o.lgap;\n w.element.css({left: left});\n }\n if (BI.isNotNull(o.rgap)) {\n right += o.rgap;\n w.element.css({right: right});\n }\n if (BI.isNotNull(o.tgap)) {\n top += o.tgap;\n w.element.css({top: top});\n }\n if (BI.isNotNull(o.bgap)) {\n bottom += o.bgap;\n w.element.css({bottom: bottom});\n }\n\n\n if (BI.isNotNull(item.width)) {\n w.element.css({width: item.width});\n }\n if (BI.isNotNull(item.height)) {\n w.element.css({height: item.height});\n }\n w.element.css({position: \"absolute\"});\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n stroke: function (items) {\n this.options.items = items || [];\n var self = this;\n BI.each(items, function (i, item) {\n if (item) {\n if (!BI.isWidget(item) && !item.el) {\n throw new Error(\"el must be exist\");\n }\n self._addElement(i, item);\n }\n });\n },\n\n populate: function (items) {\n BI.AbsoluteLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.absolute\", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.AdaptiveLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-adaptive-layout\",\n hgap: null,\n vgap: null,\n lgap: null,\n rgap: null,\n tgap: null,\n bgap: null\n });\n },\n render: function () {\n BI.AdaptiveLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.AdaptiveLayout.superclass._addElement.apply(this, arguments);\n w.element.css({position: \"relative\"});\n var left = 0, right = 0, top = 0, bottom = 0;\n if (BI.isNotNull(item.left)) {\n w.element.css({\n left: item.left\n });\n }\n if (BI.isNotNull(item.right)) {\n w.element.css({\n right: item.right\n });\n }\n if (BI.isNotNull(item.top)) {\n w.element.css({\n top: item.top\n });\n }\n if (BI.isNotNull(item.bottom)) {\n w.element.css({\n bottom: item.bottom\n });\n }\n\n if (BI.isNotNull(o.hgap)) {\n left += o.hgap;\n w.element.css({\"margin-left\": left});\n right += o.hgap;\n w.element.css({\"margin-right\": right});\n }\n if (BI.isNotNull(o.vgap)) {\n top += o.vgap;\n w.element.css({\"margin-top\": top});\n bottom += o.vgap;\n w.element.css({\"margin-bottom\": bottom});\n }\n\n if (BI.isNotNull(o.lgap)) {\n left += o.lgap;\n w.element.css({\"margin-left\": left});\n }\n if (BI.isNotNull(o.rgap)) {\n right += o.rgap;\n w.element.css({\"margin-right\": right});\n }\n if (BI.isNotNull(o.tgap)) {\n top += o.tgap;\n w.element.css({\"margin-top\": top});\n }\n if (BI.isNotNull(o.bgap)) {\n bottom += o.bgap;\n w.element.css({\"margin-bottom\": bottom});\n }\n\n if (BI.isNotNull(item.width)) {\n w.element.css({width: item.width});\n }\n if (BI.isNotNull(item.height)) {\n w.element.css({height: item.height});\n }\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n populate: function (items) {\n BI.AbsoluteLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.adaptive\", BI.AdaptiveLayout);/**\n * 上下的高度固定/左右的宽度固定,中间的高度/宽度自适应\n *\n * @class BI.BorderLayout\n * @extends BI.Layout\n */\nBI.BorderLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.BorderLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-border-layout\",\n items: {}\n });\n },\n render: function () {\n BI.BorderLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n stroke: function (regions) {\n var item;\n var top = 0;\n var bottom = 0;\n var left = 0;\n var right = 0;\n if (\"north\" in regions) {\n item = regions[\"north\"];\n if (item != null) {\n if (item.el) {\n if (!this.hasWidget(this.getName() + \"north\")) {\n var w = BI.createWidget(item);\n this.addWidget(this.getName() + \"north\", w);\n }\n this.getWidgetByName(this.getName() + \"north\").element.height(item.height)\n .css({\n position: \"absolute\",\n top: (item.top || 0),\n left: (item.left || 0),\n right: (item.right || 0),\n bottom: \"initial\"\n });\n }\n top = (item.height || 0) + (item.top || 0) + (item.bottom || 0);\n }\n }\n if (\"south\" in regions) {\n item = regions[\"south\"];\n if (item != null) {\n if (item.el) {\n if (!this.hasWidget(this.getName() + \"south\")) {\n var w = BI.createWidget(item);\n this.addWidget(this.getName() + \"south\", w);\n }\n this.getWidgetByName(this.getName() + \"south\").element.height(item.height)\n .css({\n position: \"absolute\",\n bottom: (item.bottom || 0),\n left: (item.left || 0),\n right: (item.right || 0),\n top: \"initial\"\n });\n }\n bottom = (item.height || 0) + (item.top || 0) + (item.bottom || 0);\n }\n }\n if (\"west\" in regions) {\n item = regions[\"west\"];\n if (item != null) {\n if (item.el) {\n if (!this.hasWidget(this.getName() + \"west\")) {\n var w = BI.createWidget(item);\n this.addWidget(this.getName() + \"west\", w);\n }\n this.getWidgetByName(this.getName() + \"west\").element.width(item.width)\n .css({\n position: \"absolute\",\n left: (item.left || 0),\n top: top,\n bottom: bottom,\n right: \"initial\"\n });\n }\n left = (item.width || 0) + (item.left || 0) + (item.right || 0);\n }\n }\n if (\"east\" in regions) {\n item = regions[\"east\"];\n if (item != null) {\n if (item.el) {\n if (!this.hasWidget(this.getName() + \"east\")) {\n var w = BI.createWidget(item);\n this.addWidget(this.getName() + \"east\", w);\n }\n this.getWidgetByName(this.getName() + \"east\").element.width(item.width)\n .css({\n position: \"absolute\",\n right: (item.right || 0),\n top: top,\n bottom: bottom,\n left: \"initial\"\n });\n }\n right = (item.width || 0) + (item.left || 0) + (item.right || 0);\n }\n }\n if (\"center\" in regions) {\n item = regions[\"center\"];\n if (item != null) {\n if (!this.hasWidget(this.getName() + \"center\")) {\n var w = BI.createWidget(item);\n this.addWidget(this.getName() + \"center\", w);\n }\n this.getWidgetByName(this.getName() + \"center\").element\n .css({position: \"absolute\", top: top, bottom: bottom, left: left, right: right});\n }\n }\n },\n\n update: function (opt) {\n },\n\n populate: function (items) {\n BI.BorderLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.border\", BI.BorderLayout);/**\n * 卡片布局,可以做到当前只显示一个组件,其他的都隐藏\n * @class BI.CardLayout\n * @extends BI.Layout\n *\n * @cfg {JSON} options 配置属性\n * @cfg {String} options.defaultShowName 默认展示的子组件名\n */\nBI.CardLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.CardLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-card-layout\",\n items: []\n });\n },\n render: function () {\n BI.CardLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n // console.log(\"default布局不需要resize\");\n },\n\n stroke: function (items) {\n var self = this, o = this.options;\n this.showIndex = void 0;\n BI.each(items, function (i, item) {\n if (item) {\n if (!self.hasWidget(item.cardName)) {\n var w = BI.createWidget(item);\n w.on(BI.Events.DESTROY, function () {\n var index = BI.findIndex(o.items, function (i, tItem) {\n return tItem.cardName == item.cardName;\n });\n if (index > -1) {\n o.items.splice(index, 1);\n }\n });\n self.addWidget(item.cardName, w);\n } else {\n var w = self.getWidgetByName(item.cardName);\n }\n w.element.css({position: \"absolute\", top: \"0\", right: \"0\", bottom: \"0\", left: \"0\"});\n w.setVisible(false);\n }\n });\n },\n\n update: function () {\n },\n\n empty: function () {\n BI.CardLayout.superclass.empty.apply(this, arguments);\n this.options.items = [];\n },\n\n populate: function (items) {\n BI.CardLayout.superclass.populate.apply(this, arguments);\n this._mount();\n this.options.defaultShowName && this.showCardByName(this.options.defaultShowName);\n },\n\n isCardExisted: function (cardName) {\n return BI.some(this.options.items, function (i, item) {\n return item.cardName == cardName && item.el;\n });\n },\n\n getCardByName: function (cardName) {\n if (!this.isCardExisted(cardName)) {\n throw new Error(\"cardName is not exist\");\n }\n return this._children[cardName];\n },\n\n _deleteCardByName: function (cardName) {\n delete this._children[cardName];\n var index = BI.findIndex(this.options.items, function (i, item) {\n return item.cardName == cardName;\n });\n if (index > -1) {\n this.options.items.splice(index, 1);\n }\n },\n\n deleteCardByName: function (cardName) {\n if (!this.isCardExisted(cardName)) {\n throw new Error(\"cardName is not exist\");\n }\n\n var child = this._children[cardName];\n this._deleteCardByName(cardName);\n child && child._destroy();\n },\n\n addCardByName: function (cardName, cardItem) {\n if (this.isCardExisted(cardName)) {\n throw new Error(\"cardName is already exist\");\n }\n var widget = BI.createWidget(cardItem, this);\n widget.element.css({\n position: \"relative\",\n top: \"0\",\n left: \"0\",\n width: \"100%\",\n height: \"100%\"\n }).appendTo(this.element);\n widget.invisible();\n this.addWidget(cardName, widget);\n this.options.items.push({el: cardItem, cardName: cardName});\n return widget;\n },\n\n showCardByName: function (name, action, callback) {\n var self = this;\n // name不存在的时候全部隐藏\n var exist = this.isCardExisted(name);\n if (this.showIndex != null) {\n this.lastShowIndex = this.showIndex;\n }\n this.showIndex = name;\n var flag = false;\n BI.each(this.options.items, function (i, item) {\n var el = self._children[item.cardName];\n if (el) {\n if (name != item.cardName) {\n // 动画效果只有在全部都隐藏的时候才有意义,且只要执行一次动画操作就够了\n !flag && !exist && (BI.Action && action instanceof BI.Action) ? (action.actionBack(el), flag = true) : el.invisible();\n } else {\n (BI.Action && action instanceof BI.Action) ? action.actionPerformed(void 0, el, callback) : (el.visible(), callback && callback());\n }\n }\n });\n },\n\n showLastCard: function () {\n var self = this;\n this.showIndex = this.lastShowIndex;\n BI.each(this.options.items, function (i, item) {\n self._children[item.cardName].setVisible(self.showIndex == i);\n });\n },\n\n setDefaultShowName: function (name) {\n this.options.defaultShowName = name;\n return this;\n },\n\n getDefaultShowName: function () {\n return this.options.defaultShowName;\n },\n\n getAllCardNames: function () {\n return BI.map(this.options.items, function (i, item) {\n return item.cardName;\n });\n },\n\n getShowingCard: function () {\n if (!BI.isKey(this.showIndex)) {\n return void 0;\n }\n return this.getWidgetByName(this.showIndex);\n },\n\n deleteAllCard: function () {\n var self = this;\n BI.each(this.getAllCardNames(), function (i, name) {\n self.deleteCardByName(name);\n });\n },\n\n hideAllCard: function () {\n var self = this;\n BI.each(this.options.items, function (i, item) {\n self._children[item.cardName].invisible();\n });\n },\n\n isAllCardHide: function () {\n var self = this;\n var flag = true;\n BI.some(this.options.items, function (i, item) {\n if (self._children[item.cardName].isVisible()) {\n flag = false;\n return false;\n }\n });\n return flag;\n },\n\n removeWidget: function (nameOrWidget) {\n var removeName;\n if (BI.isWidget(nameOrWidget)) {\n BI.each(this._children, function (name, child) {\n if (child === nameOrWidget) {\n removeName = name;\n }\n });\n } else {\n removeName = nameOrWidget;\n }\n if (removeName) {\n this._deleteCardByName(removeName);\n }\n }\n});\nBI.shortcut(\"bi.card\", BI.CardLayout);/**\n * 默认的布局方式\n *\n * @class BI.DefaultLayout\n * @extends BI.Layout\n */\nBI.DefaultLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.DefaultLayout.superclass.props.apply(this, arguments), {\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n items: []\n });\n },\n render: function () {\n BI.DefaultLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.DefaultLayout.superclass._addElement.apply(this, arguments);\n if (o.vgap + o.tgap + (item.tgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": o.hgap + o.lgap + (item.lgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n // console.log(\"default布局不需要resize\")\n },\n\n populate: function (items) {\n BI.DefaultLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.default\", BI.DefaultLayout);/**\n * 分隔容器的控件,按照宽度和高度所占比平分整个容器\n *\n * @class BI.DivisionLayout\n * @extends BI.Layout\n */\nBI.DivisionLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.DivisionLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-division-layout\",\n columns: null,\n rows: null,\n items: []\n // [\n // {\n // column: 0,\n // row: 0,\n // width: 0.25,\n // height: 0.33,\n // el: {type: 'bi.button', text: 'button1'}\n // },\n // {\n // column: 1,\n // row: 1,\n // width: 0.25,\n // height: 0.33,\n // el: {type: 'bi.button', text: 'button2'}\n // },\n // {\n // column: 3,\n // row: 2,\n // width: 0.25,\n // height: 0.33,\n // el: {type: 'bi.button', text: 'button3'}\n // }\n // ]\n });\n },\n render: function () {\n BI.DivisionLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n this.stroke(this.opitons.items);\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n stroke: function (items) {\n var o = this.options;\n var rows = o.rows || o.items.length, columns = o.columns || ((o.items[0] && o.items[0].length) | 0);\n var map = BI.makeArray(rows), widths = {}, heights = {};\n\n function firstElement (item, row, col) {\n if (row === 0) {\n item.addClass(\"first-row\");\n }\n if (col === 0) {\n item.addClass(\"first-col\");\n }\n item.addClass(BI.isOdd(row + 1) ? \"odd-row\" : \"even-row\");\n item.addClass(BI.isOdd(col + 1) ? \"odd-col\" : \"even-col\");\n item.addClass(\"center-element\");\n }\n\n function firstObject (item, row, col) {\n var cls = \"\";\n if (row === 0) {\n cls += \" first-row\";\n }\n if (col === 0) {\n cls += \" first-col\";\n }\n BI.isOdd(row + 1) ? (cls += \" odd-row\") : (cls += \" even-row\");\n BI.isOdd(col + 1) ? (cls += \" odd-col\") : (cls += \" even-col\");\n item.cls = (item.cls || \"\") + cls + \" center-element\";\n }\n\n function first (item, row, col) {\n if (item instanceof BI.Widget) {\n firstElement(item.element, row, col);\n } else if (item.el instanceof BI.Widget) {\n firstElement(item.el.element, row, col);\n } else if (item.el) {\n firstObject(item.el, row, col);\n } else {\n firstObject(item, row, col);\n }\n }\n\n BI.each(map, function (i) {\n map[i] = BI.makeArray(columns);\n });\n BI.each(items, function (i, item) {\n if (BI.isArray(item)) {\n BI.each(item, function (j, el) {\n widths[i] = (widths[i] || 0) + item.width;\n heights[j] = (heights[j] || 0) + item.height;\n map[i][j] = el;\n });\n return;\n }\n widths[item.row] = (widths[item.row] || 0) + item.width;\n heights[item.column] = (heights[item.column] || 0) + item.height;\n map[item.row][item.column] = item;\n });\n for (var i = 0; i < rows; i++) {\n var totalW = 0;\n for (var j = 0; j < columns; j++) {\n if (!map[i][j]) {\n throw new Error(\"item be required\");\n }\n if (!this.hasWidget(this.getName() + i + \"_\" + j)) {\n var w = BI.createWidget(map[i][j]);\n this.addWidget(this.getName() + i + \"_\" + j, w);\n } else {\n w = this.getWidgetByName(this.getName() + i + \"_\" + j);\n }\n var left = totalW * 100 / widths[i];\n w.element.css({position: \"absolute\", left: left + \"%\"});\n if (j > 0) {\n var lastW = this.getWidgetByName(this.getName() + i + \"_\" + (j - 1));\n lastW.element.css({right: (100 - left) + \"%\"});\n }\n if (j == o.columns - 1) {\n w.element.css({right: \"0%\"});\n }\n first(w, i, j);\n totalW += map[i][j].width;\n }\n }\n for (var j = 0; j < o.columns; j++) {\n var totalH = 0;\n for (var i = 0; i < o.rows; i++) {\n var w = this.getWidgetByName(this.getName() + i + \"_\" + j);\n var top = totalH * 100 / heights[j];\n w.element.css({top: top + \"%\"});\n if (i > 0) {\n var lastW = this.getWidgetByName(this.getName() + (i - 1) + \"_\" + j);\n lastW.element.css({bottom: (100 - top) + \"%\"});\n }\n if (i == o.rows - 1) {\n w.element.css({bottom: \"0%\"});\n }\n totalH += map[i][j].height;\n }\n }\n },\n\n update: function () {\n },\n\n populate: function (items) {\n BI.DivisionLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.division\", BI.DivisionLayout);/**\n * 靠左对齐的自由浮动布局\n * @class BI.FloatLeftLayout\n * @extends BI.Layout\n *\n * @cfg {JSON} options 配置属性\n * @cfg {Number} [hgap=0] 水平间隙\n * @cfg {Number} [vgap=0] 垂直间隙\n */\nBI.FloatLeftLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FloatLeftLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-float-left-layout clearfix\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.FloatLeftLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.FloatLeftLayout.superclass._addElement.apply(this, arguments);\n w.element.css({position: \"relative\", float: \"left\"});\n if (BI.isNotNull(item.left)) {\n w.element.css({left: item.left});\n }\n if (BI.isNotNull(item.right)) {\n w.element.css({right: item.right});\n }\n if (BI.isNotNull(item.top)) {\n w.element.css({top: item.top});\n }\n if (BI.isNotNull(item.bottom)) {\n w.element.css({bottom: item.bottom});\n }\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) +\"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n populate: function (items) {\n BI.FloatLeftLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.left\", BI.FloatLeftLayout);\n\n/**\n * 靠右对齐的自由浮动布局\n * @class BI.FloatRightLayout\n * @extends BI.Layout\n *\n * @cfg {JSON} options 配置属性\n * @cfg {Number} [hgap=0] 水平间隙\n * @cfg {Number} [vgap=0] 垂直间隙\n */\nBI.FloatRightLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FloatRightLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-float-right-layout clearfix\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.FloatRightLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.FloatRightLayout.superclass._addElement.apply(this, arguments);\n w.element.css({position: \"relative\", float: \"right\"});\n if (BI.isNotNull(item.left)) {\n w.element.css({left: item.left});\n }\n if (BI.isNotNull(item.right)) {\n w.element.css({right: item.right});\n }\n if (BI.isNotNull(item.top)) {\n w.element.css({top: item.top});\n }\n if (BI.isNotNull(item.bottom)) {\n w.element.css({bottom: item.bottom});\n }\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) +\"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": (i === 0 ? o.hgap : 0) + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n populate: function (items) {\n BI.FloatRightLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.right\", BI.FloatRightLayout);/**\n * 上下的高度固定/左右的宽度固定,中间的高度/宽度自适应\n *\n * @class BI.BorderLayout\n * @extends BI.Layout\n */\nBI.GridLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.GridLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-grid-layout\",\n columns: null,\n rows: null,\n items: []\n /* [\n {\n column: 0,\n row: 0,\n el: {type: 'bi.button', text: 'button1'}\n },\n {\n column: 1,\n row: 1,\n el: {type: 'bi.button', text: 'button2'}\n },\n {\n column: 3,\n row: 2,\n el: {type: 'bi.button', text: 'button3'}\n }\n ]*/\n });\n },\n render: function () {\n BI.GridLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n // console.log(\"grid布局不需要resize\")\n },\n\n addItem: function () {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n stroke: function (items) {\n var self = this, o = this.options;\n var rows = o.rows || o.items.length, columns = o.columns || ((o.items[0] && o.items[0].length) | 0);\n var width = 100 / columns, height = 100 / rows;\n var els = [];\n for (var i = 0; i < rows; i++) {\n els[i] = [];\n }\n\n function firstElement (item, row, col) {\n if (row === 0) {\n item.addClass(\"first-row\");\n }\n if (col === 0) {\n item.addClass(\"first-col\");\n }\n item.addClass(BI.isOdd(row + 1) ? \"odd-row\" : \"even-row\");\n item.addClass(BI.isOdd(col + 1) ? \"odd-col\" : \"even-col\");\n item.addClass(\"center-element\");\n }\n\n function firstObject (item, row, col) {\n var cls = \"\";\n if (row === 0) {\n cls += \" first-row\";\n }\n if (col === 0) {\n cls += \" first-col\";\n }\n BI.isOdd(row + 1) ? (cls += \" odd-row\") : (cls += \" even-row\");\n BI.isOdd(col + 1) ? (cls += \" odd-col\") : (cls += \" even-col\");\n item.cls = (item.cls || \"\") + cls + \" center-element\";\n }\n\n function first (item, row, col) {\n if (item instanceof BI.Widget) {\n firstElement(item.element, row, col);\n } else if (item.el instanceof BI.Widget) {\n firstElement(item.el.element, row, col);\n } else if (item.el) {\n firstObject(item.el, row, col);\n } else {\n firstObject(item, row, col);\n }\n }\n\n BI.each(items, function (i, item) {\n if (BI.isArray(item)) {\n BI.each(item, function (j, el) {\n els[i][j] = BI.createWidget(el);\n });\n return;\n }\n els[item.row][item.column] = BI.createWidget(item);\n });\n for (var i = 0; i < rows; i++) {\n for (var j = 0; j < columns; j++) {\n if (!els[i][j]) {\n els[i][j] = BI.createWidget({\n type: \"bi.layout\"\n });\n }\n first(els[i][j], i, j);\n els[i][j].element.css({\n position: \"absolute\",\n top: height * i + \"%\",\n left: width * j + \"%\",\n right: (100 - (width * (j + 1))) + \"%\",\n bottom: (100 - (height * (i + 1))) + \"%\"\n });\n this.addWidget(els[i][j]);\n }\n }\n },\n\n update: function () {\n },\n\n populate: function (items) {\n BI.GridLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.grid\", BI.GridLayout);/**\n * 水平布局\n * @class BI.HorizontalLayout\n * @extends BI.Layout\n */\nBI.HorizontalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.HorizontalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-horizontal-layout\",\n verticalAlign: BI.VerticalAlign.Top,\n horizontalAlign: BI.HorizontalAlign.Left,\n columnSize: [],\n scrollx: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n var o = this.options;\n BI.HorizontalLayout.superclass.render.apply(this, arguments);\n this.$table = BI.Widget._renderEngine.createElement(\"<table>\").attr({cellspacing: 0, cellpadding: 0}).css({\n position: \"relative\",\n \"white-space\": \"nowrap\",\n height: o.verticalAlign === BI.VerticalAlign.Middle ? \"100%\" : \"auto\",\n width: (o.horizontalAlign === BI.HorizontalAlign.Center || o.horizontalAlign === BI.HorizontalAlign.Stretch) ? \"100%\" : \"auto\",\n \"border-spacing\": \"0px\",\n border: \"none\",\n \"border-collapse\": \"separate\"\n });\n this.$tr = BI.Widget._renderEngine.createElement(\"<tr>\");\n this.$tr.appendTo(this.$table);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var td;\n var width = o.columnSize[i] <= 1 ? (o.columnSize[i] * 100 + \"%\") : o.columnSize[i];\n if (!this.hasWidget(this._getChildName(i))) {\n var w = BI.createWidget(item);\n w.element.css({position: \"relative\", margin: \"0px auto\"});\n td = BI.createWidget({\n type: \"bi.default\",\n tagName: \"td\",\n attributes: {\n width: width\n },\n items: [w]\n });\n this.addWidget(this._getChildName(i), td);\n } else {\n td = this.getWidgetByName(this._getChildName(i));\n td.element.attr(\"width\", width);\n }\n // 对于表现为td的元素设置最大宽度,有几点需要注意\n // 1、由于直接对td设置最大宽度是在规范中未定义的, 所以要使用类似td:firstChild来迂回实现\n // 2、不能给多个td设置最大宽度,这样只会平分宽度\n // 3、多百分比宽度就算了\n td.element.css({\"max-width\": o.columnSize[i] <= 1 ? width : width + \"px\"});\n if (i === 0) {\n td.element.addClass(\"first-element\");\n }\n td.element.css({\n position: \"relative\",\n \"vertical-align\": o.verticalAlign,\n margin: \"0\",\n padding: \"0\",\n border: \"none\"\n });\n\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) +\"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return td;\n },\n\n appendFragment: function (frag) {\n this.$tr.append(frag);\n this.element.append(this.$table);\n },\n\n resize: function () {\n // console.log(\"horizontal layout do not need to resize\");\n },\n\n _getWrapper: function () {\n return this.$tr;\n },\n\n populate: function (items) {\n BI.HorizontalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.horizontal\", BI.HorizontalLayout);\n\n/**\n * 水平布局\n * @class BI.HorizontalCellLayout\n * @extends BI.Layout\n */\nBI.HorizontalCellLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.HorizontalCellLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-horizontal-cell-layout\",\n scrollable: true,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.HorizontalCellLayout.superclass.render.apply(this, arguments);\n this.element.css({display: \"table\", \"vertical-align\": \"top\"});\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.HorizontalCellLayout.superclass._addElement.apply(this, arguments);\n w.element.css({position: \"relative\", display: \"table-cell\", \"vertical-align\": \"middle\"});\n if (o.hgap + o.lgap > 0) {\n w.element.css({\n \"margin-left\": o.hgap + o.lgap + \"px\"\n });\n }\n if (o.hgap + o.rgap > 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + \"px\"\n });\n }\n if (o.vgap + o.tgap > 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + \"px\"\n });\n }\n if (o.vgap + o.bgap > 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n // console.log(\"horizontal do not need to resize\");\n },\n\n populate: function (items) {\n BI.HorizontalCellLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.horizontal_cell\", BI.HorizontalCellLayout);/**\n * 内联布局\n * @class BI.InlineLayout\n * @extends BI.Layout\n *\n * @cfg {JSON} options 配置属性\n * @cfg {Number} [hgap=0] 水平间隙\n * @cfg {Number} [vgap=0] 垂直间隙\n */\nBI.InlineLayout = BI.inherit(BI.Layout, {\n\n props: function () {\n return BI.extend(BI.InlineLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-inline-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.InlineLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.InlineLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\"position\": \"relative\", display: \"inline-block\", \"*display\": \"inline\", \"*zoom\": 1});\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": (i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0) +\"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n populate: function (items) {\n BI.InlineLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.inline\", BI.InlineLayout);/**\n * 靠左对齐的自由浮动布局\n * @class BI.LatticeLayout\n * @extends BI.Layout\n *\n * @cfg {JSON} options 配置属性\n * @cfg {Number} [hgap=0] 水平间隙\n * @cfg {Number} [vgap=0] 垂直间隙\n */\nBI.LatticeLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.LatticeLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-lattice-layout clearfix\"\n // columnSize: [0.2, 0.2, 0.6],\n });\n },\n render: function () {\n BI.LatticeLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.LatticeLayout.superclass._addElement.apply(this, arguments);\n if (o.columnSize && o.columnSize[i]) {\n var width = o.columnSize[i] / BI.sum(o.columnSize) * 100 + \"%\";\n } else {\n var width = 1 / this.options.items.length * 100 + \"%\";\n }\n w.element.css({position: \"relative\", float: \"left\", width: width});\n return w;\n },\n\n addItem: function (item) {\n var w = BI.LatticeLayout.superclass.addItem.apply(this, arguments);\n this.resize();\n return w;\n },\n\n addItemAt: function (item) {\n var w = BI.LatticeLayout.superclass.addItemAt.apply(this, arguments);\n this.resize();\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n populate: function (items) {\n BI.LatticeLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.lattice\", BI.LatticeLayout);/**\n * 上下的高度固定/左右的宽度固定,中间的高度/宽度自适应\n *\n * @class BI.TableLayout\n * @extends BI.Layout\n */\nBI.TableLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.TableLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-table-layout\",\n scrolly: true,\n columnSize: [200, 200, \"fill\"],\n rowSize: 30, // or [30,30,30]\n hgap: 0,\n vgap: 0,\n items: [[\n {\n el: {text: \"label1\"}\n },\n {\n el: {text: \"label2\"}\n },\n {\n el: {text: \"label3\"}\n }\n ]]\n });\n },\n render: function () {\n BI.TableLayout.superclass.render.apply(this, arguments);\n this.rows = 0;\n this.populate(this.options.items);\n },\n\n _addElement: function (idx, arr) {\n var o = this.options;\n var abs = [], left = 0, right = 0, i, j;\n\n function firstElement (item, row, col) {\n if (row === 0) {\n item.addClass(\"first-row\");\n }\n if (col === 0) {\n item.addClass(\"first-col\");\n }\n item.addClass(BI.isOdd(row + 1) ? \"odd-row\" : \"even-row\");\n item.addClass(BI.isOdd(col + 1) ? \"odd-col\" : \"even-col\");\n item.addClass(\"center-element\");\n }\n\n function firstObject (item, row, col) {\n var cls = \"\";\n if (row === 0) {\n cls += \" first-row\";\n }\n if (col === 0) {\n cls += \" first-col\";\n }\n BI.isOdd(row + 1) ? (cls += \" odd-row\") : (cls += \" even-row\");\n BI.isOdd(col + 1) ? (cls += \" odd-col\") : (cls += \" even-col\");\n item.cls = (item.cls || \"\") + cls + \" center-element\";\n }\n\n function first (item, row, col) {\n if (item instanceof BI.Widget) {\n firstElement(item.element, row, col);\n } else if (item.el instanceof BI.Widget) {\n firstElement(item.el.element, row, col);\n } else if (item.el) {\n firstObject(item.el, row, col);\n } else {\n firstObject(item, row, col);\n }\n }\n\n for (i = 0; i < arr.length; i++) {\n if (BI.isNumber(o.columnSize[i])) {\n first(arr[i], this.rows, i);\n abs.push(BI.extend({\n top: 0,\n bottom: 0,\n left: o.columnSize[i] <= 1 ? left * 100 + \"%\" : left,\n width: o.columnSize[i] <= 1 ? o.columnSize[i] * 100 + \"%\" : o.columnSize[i]\n }, arr[i]));\n left += o.columnSize[i] + (o.columnSize[i] < 1 ? 0 : o.hgap);\n } else {\n break;\n }\n }\n for (j = arr.length - 1; j > i; j--) {\n if (BI.isNumber(o.columnSize[j])) {\n first(arr[j], this.rows, j);\n abs.push(BI.extend({\n top: 0,\n bottom: 0,\n right: o.columnSize[j] <= 1 ? right * 100 + \"%\" : right,\n width: o.columnSize[j] <= 1 ? o.columnSize[j] * 100 + \"%\" : o.columnSize[j]\n }, arr[j]));\n right += o.columnSize[j] + (o.columnSize[j] < 1 ? 0 : o.hgap);\n } else {\n throw new Error(\"item with fill can only be one\");\n }\n }\n if (i >= 0 && i < arr.length) {\n first(arr[i], this.rows, i);\n abs.push(BI.extend({\n top: 0,\n bottom: 0,\n left: left <= 1 ? left * 100 + \"%\" : left,\n right: right <= 1 ? right * 100 + \"%\" : right\n }, arr[i]));\n }\n var w = BI.createWidget({\n type: \"bi.absolute\",\n height: BI.isArray(o.rowSize) ? o.rowSize[this.rows] : o.rowSize,\n items: abs\n });\n if (this.rows > 0) {\n this.getWidgetByName(this.getName() + (this.rows - 1)).element.css({\n \"margin-bottom\": o.vgap\n });\n }\n w.element.css({\n position: \"relative\"\n });\n this.addWidget(this.getName() + (this.rows++), w);\n return w;\n },\n\n resize: function () {\n // console.log(\"table布局不需要resize\");\n },\n\n addItem: function (arr) {\n if (!BI.isArray(arr)) {\n throw new Error(\"item must be array\");\n }\n return BI.TableLayout.superclass.addItem.apply(this, arguments);\n },\n\n update: function () {\n },\n\n populate: function (items) {\n BI.TableLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.table\", BI.TableLayout);/**\n * 水平tape布局\n * @class BI.HTapeLayout\n * @extends BI.Layout\n */\nBI.HTapeLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.HTapeLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-h-tape-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n items: [\n {\n width: 100,\n el: {type: \"bi.button\", text: \"button1\"}\n },\n {\n width: \"fill\",\n el: {type: \"bi.button\", text: \"button2\"}\n },\n {\n width: 200,\n el: {type: \"bi.button\", text: \"button3\"}\n }\n ]\n });\n },\n render: function () {\n BI.HTapeLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n stroke: function (items) {\n var self = this, o = this.options;\n items = BI.compact(items);\n BI.each(items, function (i, item) {\n if (!self.hasWidget(self.getName() + i + \"\")) {\n var w = BI.createWidget(item);\n self.addWidget(self.getName() + i + \"\", w);\n } else {\n w = self.getWidgetByName(self.getName() + i + \"\");\n }\n w.element.css({position: \"absolute\", top: (item.vgap || 0) + (item.tgap || 0) + o.vgap + o.tgap + \"px\", bottom: (item.bgap || 0) + (item.vgap || 0) + o.vgap + o.bgap + \"px\"});\n });\n\n var left = {}, right = {};\n left[0] = 0;\n right[items.length - 1] = 0;\n\n BI.any(items, function (i, item) {\n var w = self.getWidgetByName(self.getName() + i + \"\");\n if (BI.isNull(left[i])) {\n left[i] = left[i - 1] + items[i - 1].width + (items[i - 1].lgap || 0) + 2 * (items[i - 1].hgap || 0) + o.hgap + o.lgap + o.rgap;\n }\n if (item.width < 1 && item.width >= 0) {\n w.element.css({left: left[i] * 100 + \"%\", width: item.width * 100 + \"%\"});\n } else {\n w.element.css({\n left: left[i] + (item.lgap || 0) + (item.hgap || 0) + o.hgap + o.lgap + \"px\",\n width: BI.isNumber(item.width) ? item.width : \"\"\n });\n }\n if (!BI.isNumber(item.width)) {\n return true;\n }\n });\n BI.backAny(items, function (i, item) {\n var w = self.getWidgetByName(self.getName() + i + \"\");\n if (BI.isNull(right[i])) {\n right[i] = right[i + 1] + items[i + 1].width + (items[i + 1].rgap || 0) + 2 * (items[i + 1].hgap || 0) + o.hgap + o.lgap + o.rgap;\n }\n if (item.width < 1 && item.width >= 0) {\n w.element.css({right: right[i] * 100 + \"%\", width: item.width * 100 + \"%\"});\n } else {\n w.element.css({\n right: right[i] + (item.rgap || 0) + (item.hgap || 0) + o.hgap + o.rgap + \"px\",\n width: BI.isNumber(item.width) ? item.width : \"\"\n });\n }\n if (!BI.isNumber(item.width)) {\n return true;\n }\n });\n },\n\n update: function () {\n var updated;\n BI.each(this._children, function (i, child) {\n updated = child.update() || updated;\n });\n return updated;\n },\n\n populate: function (items) {\n BI.HTapeLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.htape\", BI.HTapeLayout);\n\n/**\n * 垂直tape布局\n * @class BI.VTapeLayout\n * @extends BI.Layout\n */\nBI.VTapeLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.VTapeLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-v-tape-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n items: [\n {\n height: 100,\n el: {type: \"bi.button\", text: \"button1\"}\n },\n {\n height: \"fill\",\n el: {type: \"bi.button\", text: \"button2\"}\n },\n {\n height: 200,\n el: {type: \"bi.button\", text: \"button3\"}\n }\n ]\n });\n },\n render: function () {\n BI.VTapeLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n stroke: function (items) {\n var self = this, o = this.options;\n items = BI.compact(items);\n BI.each(items, function (i, item) {\n if (!self.hasWidget(self.getName() + i + \"\")) {\n var w = BI.createWidget(item);\n self.addWidget(self.getName() + i + \"\", w);\n } else {\n w = self.getWidgetByName(self.getName() + i + \"\");\n }\n w.element.css({position: \"absolute\", left: (item.lgap || 0) + (item.hgap || 0) + o.hgap + o.lgap + \"px\", right: + (item.hgap || 0) + (item.rgap || 0) + o.hgap + o.rgap + \"px\"});\n });\n\n var top = {}, bottom = {};\n top[0] = 0;\n bottom[items.length - 1] = 0;\n\n BI.any(items, function (i, item) {\n var w = self.getWidgetByName(self.getName() + i + \"\");\n if (BI.isNull(top[i])) {\n top[i] = top[i - 1] + items[i - 1].height + (items[i - 1].tgap || 0) + 2 * (items[i - 1].vgap || 0) + o.vgap + o.tgap + o.bgap;\n }\n if (item.height < 1 && item.height >= 0) {\n w.element.css({top: top[i] * 100 + \"%\", height: item.height * 100 + \"%\"});\n } else {\n w.element.css({\n top: top[i] + (item.vgap || 0) + (item.tgap || 0) + o.vgap + o.tgap + \"px\",\n height: BI.isNumber(item.height) ? item.height : \"\"\n });\n }\n if (!BI.isNumber(item.height)) {\n return true;\n }\n });\n BI.backAny(items, function (i, item) {\n var w = self.getWidgetByName(self.getName() + i + \"\");\n if (BI.isNull(bottom[i])) {\n bottom[i] = bottom[i + 1] + items[i + 1].height + (items[i + 1].bgap || 0) + 2 * (items[i + 1].vgap || 0) + o.vgap + o.tgap + o.bgap;\n }\n if (item.height < 1 && item.height >= 0) {\n w.element.css({bottom: bottom[i] * 100 + \"%\", height: item.height * 100 + \"%\"});\n } else {\n w.element.css({\n bottom: bottom[i] + (item.vgap || 0) + (item.bgap || 0) + o.vgap + o.bgap + \"px\",\n height: BI.isNumber(item.height) ? item.height : \"\"\n });\n }\n if (!BI.isNumber(item.height)) {\n return true;\n }\n });\n },\n\n update: function () {\n },\n\n populate: function (items) {\n BI.VTapeLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.vtape\", BI.VTapeLayout);/**\n * td布局\n * @class BI.TdLayout\n * @extends BI.Layout\n */\nBI.TdLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.TdLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-td-layout\",\n columnSize: [200, 200, 200],\n hgap: 0,\n vgap: 0,\n items: [[\n {\n el: {text: \"label1\"}\n },\n {\n el: {text: \"label2\"}\n },\n {\n el: {text: \"label3\"}\n }\n ]]\n });\n },\n render: function () {\n BI.TdLayout.superclass.render.apply(this, arguments);\n this.$table = BI.Widget._renderEngine.createElement(\"<table>\").attr({cellspacing: 0, cellpadding: 0}).css({\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n \"border-spacing\": \"0px\",\n border: \"none\",\n \"border-collapse\": \"separate\"\n });\n this.rows = 0;\n this.populate(this.options.items);\n },\n\n _addElement: function (idx, arr) {\n var o = this.options;\n\n function firstElement (item, row, col) {\n if (row === 0) {\n item.addClass(\"first-row\");\n }\n if (col === 0) {\n item.addClass(\"first-col\");\n }\n item.addClass(BI.isOdd(row + 1) ? \"odd-row\" : \"even-row\");\n item.addClass(BI.isOdd(col + 1) ? \"odd-col\" : \"even-col\");\n item.addClass(\"center-element\");\n }\n\n function firstObject (item, row, col) {\n var cls = \"\";\n if (row === 0) {\n cls += \" first-row\";\n }\n if (col === 0) {\n cls += \" first-col\";\n }\n BI.isOdd(row + 1) ? (cls += \" odd-row\") : (cls += \" even-row\");\n BI.isOdd(col + 1) ? (cls += \" odd-col\") : (cls += \" even-col\");\n item.cls = (item.cls || \"\") + cls + \" center-element\";\n }\n\n function first (item, row, col) {\n if (item instanceof BI.Widget) {\n firstElement(item.element, row, col);\n } else if (item.el instanceof BI.Widget) {\n firstElement(item.el.element, row, col);\n } else if (item.el) {\n firstObject(item.el, row, col);\n } else {\n firstObject(item, row, col);\n }\n }\n\n var tr = BI.createWidget({\n type: \"bi.default\",\n tagName: \"tr\"\n });\n\n for (var i = 0; i < arr.length; i++) {\n var w = BI.createWidget(arr[i]);\n w.element.css({position: \"relative\", top: \"0\", left: \"0\", margin: \"0px auto\"});\n if (arr[i].lgap) {\n w.element.css({\"margin-left\": arr[i].lgap + \"px\"});\n }\n if (arr[i].rgap) {\n w.element.css({\"margin-right\": arr[i].rgap + \"px\"});\n }\n if (arr[i].tgap) {\n w.element.css({\"margin-top\": arr[i].tgap + \"px\"});\n }\n if (arr[i].bgap) {\n w.element.css({\"margin-bottom\": arr[i].bgap + \"px\"});\n }\n first(w, this.rows++, i);\n var td = BI.createWidget({\n type: \"bi.default\",\n attributes: {\n width: o.columnSize[i] <= 1 ? (o.columnSize[i] * 100 + \"%\") : o.columnSize[i]\n },\n tagName: \"td\",\n items: [w]\n });\n td.element.css({\n position: \"relative\",\n \"vertical-align\": \"middle\",\n margin: \"0\",\n padding: \"0\",\n border: \"none\"\n });\n tr.addItem(td);\n }\n this.addWidget(this.getName() + idx, tr);\n return tr;\n },\n\n appendFragment: function (frag) {\n this.$table.append(frag);\n this.element.append(this.$table);\n },\n\n resize: function () {\n // console.log(\"td布局不需要resize\");\n },\n\n addItem: function (arr) {\n if (!BI.isArray(arr)) {\n throw new Error(\"item must be array\");\n }\n return BI.TdLayout.superclass.addItem.apply(this, arguments);\n },\n\n update: function () {\n },\n\n populate: function (items) {\n BI.TdLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.td\", BI.TdLayout);/**\n * 垂直布局\n * @class BI.VerticalLayout\n * @extends BI.Layout\n */\nBI.VerticalLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.VerticalLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-vertical-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n scrolly: true\n });\n },\n render: function () {\n BI.VerticalLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n _addElement: function (i, item) {\n var o = this.options;\n var w = BI.VerticalLayout.superclass._addElement.apply(this, arguments);\n w.element.css({\n position: \"relative\"\n });\n if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-top\": (i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-left\": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) +\"px\"\n });\n }\n if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {\n w.element.css({\n \"margin-right\": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + \"px\"\n });\n }\n if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {\n w.element.css({\n \"margin-bottom\": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + \"px\"\n });\n }\n return w;\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n populate: function (items) {\n BI.VerticalLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.vertical\", BI.VerticalLayout);/**\n *\n * @class BI.WindowLayout\n * @extends BI.Layout\n */\nBI.WindowLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.WindowLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-window-layout\",\n columns: 3,\n rows: 2,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n columnSize: [100, \"fill\", 200],\n rowSize: [100, \"fill\"],\n items: [[\n {\n el: {type: \"bi.button\", text: \"button1\"}\n },\n {\n el: {type: \"bi.button\", text: \"button2\"}\n },\n {\n el: {type: \"bi.button\", text: \"button3\"}\n }\n ]]\n });\n },\n render: function () {\n BI.WindowLayout.superclass.render.apply(this, arguments);\n this.populate(this.options.items);\n },\n\n resize: function () {\n this.stroke(this.options.items);\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n stroke: function (items) {\n var o = this.options;\n if (BI.isNumber(o.rowSize)) {\n o.rowSize = BI.makeArray(o.items.length, 1 / o.items.length);\n }\n if (BI.isNumber(o.columnSize)) {\n o.columnSize = BI.makeArray(o.items[0].length, 1 / o.items[0].length);\n }\n function firstElement (item, row, col) {\n if (row === 0) {\n item.addClass(\"first-row\");\n }\n if (col === 0) {\n item.addClass(\"first-col\");\n }\n item.addClass(BI.isOdd(row + 1) ? \"odd-row\" : \"even-row\");\n item.addClass(BI.isOdd(col + 1) ? \"odd-col\" : \"even-col\");\n item.addClass(\"center-element\");\n }\n\n function firstObject (item, row, col) {\n var cls = \"\";\n if (row === 0) {\n cls += \" first-row\";\n }\n if (col === 0) {\n cls += \" first-col\";\n }\n BI.isOdd(row + 1) ? (cls += \" odd-row\") : (cls += \" even-row\");\n BI.isOdd(col + 1) ? (cls += \" odd-col\") : (cls += \" even-col\");\n item.cls = (item.cls || \"\") + cls + \" center-element\";\n }\n\n function first (item, row, col) {\n if (item instanceof BI.Widget) {\n firstElement(item.element, row, col);\n } else if (item.el instanceof BI.Widget) {\n firstElement(item.el.element, row, col);\n } else if (item.el) {\n firstObject(item.el, row, col);\n } else {\n firstObject(item, row, col);\n }\n }\n\n for (var i = 0; i < o.rows; i++) {\n for (var j = 0; j < o.columns; j++) {\n if (!o.items[i][j]) {\n throw new Error(\"item be required\");\n }\n if (!this.hasWidget(this.getName() + i + \"_\" + j)) {\n var w = BI.createWidget(o.items[i][j]);\n w.element.css({position: \"absolute\"});\n this.addWidget(this.getName() + i + \"_\" + j, w);\n }\n }\n }\n var left = {}, right = {}, top = {}, bottom = {};\n left[0] = 0;\n top[0] = 0;\n right[o.columns - 1] = 0;\n bottom[o.rows - 1] = 0;\n // 从上到下\n for (var i = 0; i < o.rows; i++) {\n for (var j = 0; j < o.columns; j++) {\n var wi = this.getWidgetByName(this.getName() + i + \"_\" + j);\n if (BI.isNull(top[i])) {\n top[i] = top[i - 1] + (o.rowSize[i - 1] < 1 ? o.rowSize[i - 1] : o.rowSize[i - 1] + o.vgap + o.bgap);\n }\n var t = top[i] <= 1 ? top[i] * 100 + \"%\" : top[i] + o.vgap + o.tgap + \"px\", h = \"\";\n if (BI.isNumber(o.rowSize[i])) {\n h = o.rowSize[i] <= 1 ? o.rowSize[i] * 100 + \"%\" : o.rowSize[i] + \"px\";\n }\n wi.element.css({top: t, height: h});\n first(wi, i, j);\n }\n if (!BI.isNumber(o.rowSize[i])) {\n break;\n }\n }\n // 从下到上\n for (var i = o.rows - 1; i >= 0; i--) {\n for (var j = 0; j < o.columns; j++) {\n var wi = this.getWidgetByName(this.getName() + i + \"_\" + j);\n if (BI.isNull(bottom[i])) {\n bottom[i] = bottom[i + 1] + (o.rowSize[i + 1] < 1 ? o.rowSize[i + 1] : o.rowSize[i + 1] + o.vgap + o.tgap);\n }\n var b = bottom[i] <= 1 ? bottom[i] * 100 + \"%\" : bottom[i] + o.vgap + o.bgap + \"px\", h = \"\";\n if (BI.isNumber(o.rowSize[i])) {\n h = o.rowSize[i] <= 1 ? o.rowSize[i] * 100 + \"%\" : o.rowSize[i] + \"px\";\n }\n wi.element.css({bottom: b, height: h});\n first(wi, i, j);\n }\n if (!BI.isNumber(o.rowSize[i])) {\n break;\n }\n }\n // 从左到右\n for (var j = 0; j < o.columns; j++) {\n for (var i = 0; i < o.rows; i++) {\n var wi = this.getWidgetByName(this.getName() + i + \"_\" + j);\n if (BI.isNull(left[j])) {\n left[j] = left[j - 1] + (o.columnSize[j - 1] < 1 ? o.columnSize[j - 1] : o.columnSize[j - 1] + o.hgap + o.rgap);\n }\n var l = left[j] <= 1 ? left[j] * 100 + \"%\" : left[j] + o.hgap + o.lgap + \"px\", w = \"\";\n if (BI.isNumber(o.columnSize[j])) {\n w = o.columnSize[j] <= 1 ? o.columnSize[j] * 100 + \"%\" : o.columnSize[j] + \"px\";\n }\n wi.element.css({left: l, width: w});\n first(wi, i, j);\n }\n if (!BI.isNumber(o.columnSize[j])) {\n break;\n }\n }\n // 从右到左\n for (var j = o.columns - 1; j >= 0; j--) {\n for (var i = 0; i < o.rows; i++) {\n var wi = this.getWidgetByName(this.getName() + i + \"_\" + j);\n if (BI.isNull(right[j])) {\n right[j] = right[j + 1] + (o.columnSize[j + 1] < 1 ? o.columnSize[j + 1] : o.columnSize[j + 1] + o.hgap + o.lgap);\n }\n var r = right[j] <= 1 ? right[j] * 100 + \"%\" : right[j] + o.hgap + o.rgap + \"px\", w = \"\";\n if (BI.isNumber(o.columnSize[j])) {\n w = o.columnSize[j] <= 1 ? o.columnSize[j] * 100 + \"%\" : o.columnSize[j] + \"px\";\n }\n wi.element.css({right: r, width: w});\n first(wi, i, j);\n }\n if (!BI.isNumber(o.columnSize[j])) {\n break;\n }\n }\n },\n\n update: function () {\n },\n\n populate: function (items) {\n BI.WindowLayout.superclass.populate.apply(this, arguments);\n this._mount();\n }\n});\nBI.shortcut(\"bi.window\", BI.WindowLayout);/**\n * 水平和垂直方向都居中容器, 非自适应,用于宽度高度固定的面板\n * @class BI.CenterLayout\n * @extends BI.Layout\n */\nBI.CenterLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.CenterLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-center-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.CenterLayout.superclass.render.apply(this, arguments);\n var self = this, o = this.options;\n var list = [], items = o.items;\n BI.each(items, function (i) {\n list.push({\n column: i,\n row: 0,\n el: BI.createWidget({\n type: \"bi.default\",\n cls: \"center-element \" + (i === 0 ? \"first-element \" : \"\") + (i === items.length - 1 ? \"last-element\" : \"\")\n })\n });\n });\n BI.each(items, function (i, item) {\n if (item) {\n var w = BI.createWidget(item);\n w.element.css({\n position: \"absolute\",\n left: o.hgap + o.lgap,\n right: o.hgap + o.rgap,\n top: o.vgap + o.tgap,\n bottom: o.vgap + o.bgap,\n width: \"auto\",\n height: \"auto\"\n });\n list[i].el.addItem(w);\n }\n });\n return {\n type: \"bi.grid\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n columns: list.length,\n rows: 1,\n items: list\n };\n },\n\n resize: function () {\n // console.log(\"center布局不需要resize\");\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate.apply(this.wrapper, arguments);\n }\n});\nBI.shortcut(\"bi.center\", BI.CenterLayout);/**\n * 浮动布局实现的居中容器\n * @class BI.FloatCenterLayout\n * @extends BI.Layout\n */\nBI.FloatCenterLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.FloatCenterLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-float-center-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.FloatCenterLayout.superclass.render.apply(this, arguments);\n var self = this, o = this.options, items = o.items;\n var list = [], width = 100 / items.length;\n BI.each(items, function (i) {\n var widget = BI.createWidget({\n type: \"bi.default\"\n });\n widget.element.addClass(\"center-element \" + (i === 0 ? \"first-element \" : \"\") + (i === items.length - 1 ? \"last-element\" : \"\")).css({\n width: width + \"%\",\n height: \"100%\"\n });\n list.push({\n el: widget\n });\n });\n BI.each(items, function (i, item) {\n if (item) {\n var w = BI.createWidget(item);\n w.element.css({\n position: \"absolute\",\n left: o.hgap + o.lgap,\n right: o.hgap + o.rgap,\n top: o.vgap + o.tgap,\n bottom: o.vgap + o.bgap,\n width: \"auto\",\n height: \"auto\"\n });\n list[i].el.addItem(w);\n }\n });\n return {\n type: \"bi.left\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n items: list\n };\n },\n\n resize: function () {\n // console.log(\"floatcenter布局不需要resize\");\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate.apply(this.wrapper, arguments);\n }\n});\nBI.shortcut(\"bi.float_center\", BI.FloatCenterLayout);/**\n * 水平和垂直方向都居中容器, 非自适应,用于宽度高度固定的面板\n * @class BI.HorizontalCenterLayout\n * @extends BI.Layout\n */\nBI.HorizontalCenterLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.HorizontalCenterLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-horizontal-center-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n render: function () {\n BI.HorizontalCenterLayout.superclass.render.apply(this, arguments);\n var self = this, o = this.options, items = o.items;\n var list = [];\n BI.each(items, function (i) {\n list.push({\n column: i,\n row: 0,\n el: BI.createWidget({\n type: \"bi.default\",\n cls: \"center-element \" + (i === 0 ? \"first-element \" : \"\") + (i === items.length - 1 ? \"last-element\" : \"\")\n })\n });\n });\n BI.each(items, function (i, item) {\n if (item) {\n var w = BI.createWidget(item);\n w.element.css({\n position: \"absolute\",\n left: o.hgap + o.lgap,\n right: o.hgap + o.rgap,\n top: o.vgap + o.tgap,\n bottom: o.vgap + o.bgap,\n width: \"auto\"\n });\n list[i].el.addItem(w);\n }\n });\n return {\n type: \"bi.grid\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n columns: list.length,\n rows: 1,\n items: list\n };\n },\n\n resize: function () {\n // console.log(\"horizontal_center布局不需要resize\");\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate.apply(this.wrapper, arguments);\n }\n});\nBI.shortcut(\"bi.horizontal_center\", BI.HorizontalCenterLayout);/**\n * 垂直方向都居中容器, 非自适应,用于高度不固定的面板\n * @class BI.VerticalCenterLayout\n * @extends BI.Layout\n */\nBI.VerticalCenterLayout = BI.inherit(BI.Layout, {\n props: function () {\n return BI.extend(BI.VerticalCenterLayout.superclass.props.apply(this, arguments), {\n baseCls: \"bi-vertical-center-layout\",\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0\n });\n },\n\n render: function () {\n BI.VerticalCenterLayout.superclass.render.apply(this, arguments);\n var self = this, o = this.options, items = o.items;\n var list = [];\n BI.each(items, function (i) {\n list.push({\n column: 0,\n row: i,\n el: BI.createWidget({\n type: \"bi.default\",\n cls: \"center-element \" + (i === 0 ? \"first-element \" : \"\") + (i === items.length - 1 ? \"last-element\" : \"\")\n })\n });\n });\n BI.each(items, function (i, item) {\n if (item) {\n var w = BI.createWidget(item);\n w.element.css({\n position: \"absolute\",\n left: o.hgap + o.lgap,\n right: o.hgap + o.rgap,\n top: o.vgap + o.tgap,\n bottom: o.vgap + o.bgap,\n height: \"auto\"\n });\n list[i].el.addItem(w);\n }\n });\n return {\n type: \"bi.grid\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n columns: 1,\n rows: list.length,\n items: list\n };\n },\n\n resize: function () {\n // console.log(\"vertical_center布局不需要resize\");\n },\n\n addItem: function (item) {\n // do nothing\n throw new Error(\"cannot be added\");\n },\n\n update: function (opt) {\n return this.wrapper.update(opt);\n },\n\n populate: function (items) {\n this.wrapper.populate.apply(this.wrapper, arguments);\n }\n});\nBI.shortcut(\"bi.vertical_center\", BI.VerticalCenterLayout);/**\n * 缓冲池\n * @type {{Buffer: {}}}\n */\n\n(function () {\n var Buffer = {};\n var MODE = false;// 设置缓存模式为关闭\n\n BI.BufferPool = {\n put: function (name, cache) {\n if (BI.isNotNull(Buffer[name])) {\n throw new Error(\"Buffer Pool has the key already!\");\n }\n Buffer[name] = cache;\n },\n\n get: function (name) {\n return Buffer[name];\n }\n };\n})();/**\n * 共享池\n * @type {{Shared: {}}}\n */\n\n(function () {\n var _Shared = {};\n BI.SharingPool = {\n _Shared: _Shared,\n put: function (name, shared) {\n _Shared[name] = shared;\n },\n\n cat: function () {\n var args = Array.prototype.slice.call(arguments, 0),\n copy = _Shared;\n for (var i = 0; i < args.length; i++) {\n copy = copy && copy[args[i]];\n }\n return copy;\n },\n\n get: function () {\n return BI.deepClone(this.cat.apply(this, arguments));\n },\n\n remove: function (key) {\n delete _Shared[key];\n }\n };\n})();BI.Req = {\n\n};\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('underscore')) : typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'underscore'], factory) : factory(global.Fix = global.Fix || {}, global._, global._);\n})(this, function (exports, lodash, _$1) {\n 'use strict';\n\n _$1 = 'default' in _$1 ? _$1['default'] : _$1;\n\n var falsy = void 0;\n var $$skipArray = {\n $accessors: falsy,\n $vbthis: falsy,\n $vbsetter: falsy,\n $vm: falsy\n };\n\n var $$skips = ['$accessors', '$vbthis', '$vbsetter', '$vm'];\n\n var originalMethods = [];\n _$1.each(['slice', 'splice'], function (method) {\n originalMethods[method] = Array.prototype[method];\n });\n\n // Array.prototype.slice = function (...args) {\n // let array = originalMethods[\"slice\"].apply(this, args);\n // // let result = [];\n // // for (let i = 0; i < array.length; i++) {\n // // if (Object.prototype.toString.call(array[i]) === \"[object Array]\") result[i] = [...array[i]];\n // // if (Object.prototype.toString.call(array[i]) === \"[object Object]\") result[i] = _.extend({}, array[i]);\n // // result[i] = array[i];\n // // }\n // this.__ref__ = makeHashCode();\n // return array;\n // }\n\n Array.prototype.splice = function () {\n // for (let i = 0; i < this.length; i++) {\n // if (Object.prototype.toString.call(this[i]) === \"[object Array]\") this[i] = [...this[i]];\n // if (Object.prototype.toString.call(this[i]) === \"[object Object]\") this[i] = _.extend({}, this[i]);\n // }\n this.__ref__ = makeHashCode();\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return originalMethods[\"splice\"].apply(this, args);\n };\n\n function noop(a, b, c) {}\n\n function isNative(Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString());\n }\n\n var rhashcode = /\\d\\.\\d{4}/;\n\n // 生成UUID http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript\n function makeHashCode() {\n var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bi';\n\n /* istanbul ignore next*/\n return String(Math.random() + Math.random()).replace(rhashcode, prefix);\n }\n\n function isIE() {\n if (typeof navigator === 'undefined') {\n return false;\n }\n\n return (/(msie|trident)/i.test(navigator.userAgent.toLowerCase())\n );\n }\n\n function getIEVersion() {\n var version = 0;\n if (typeof navigator === 'undefined') {\n return false;\n }\n var agent = navigator.userAgent.toLowerCase();\n var v1 = agent.match(/(?:msie\\s([\\w.]+))/);\n var v2 = agent.match(/(?:trident.*rv:([\\w.]+))/);\n if (v1 && v2 && v1[1] && v2[1]) {\n version = Math.max(v1[1] * 1, v2[1] * 1);\n } else if (v1 && v1[1]) {\n version = v1[1] * 1;\n } else if (v2 && v2[1]) {\n version = v2[1] * 1;\n } else {\n version = 0;\n }\n\n return version;\n }\n var isIE9Below = isIE() && getIEVersion() < 9;\n\n var _toString = Object.prototype.toString;\n\n function isPlainObject(obj) {\n return _toString.call(obj) === '[object Object]';\n }\n\n var bailRE = /[^\\w.$]/;\n\n /* eslint no-param-reassign: ['off'] */\n function parsePath(path) {\n if (bailRE.test(path)) {\n return;\n }\n var segments = path.split('.');\n\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) return;\n obj = obj[segments[i]];\n }\n\n return obj;\n };\n }\n\n function toJSON(model) {\n var result = void 0;\n if (_$1.isArray(model)) {\n result = [];\n for (var i = 0, len = model.length; i < len; i++) {\n result[i] = toJSON(model[i]);\n }\n } else if (model && isPlainObject(model)) {\n result = {};\n for (var key in model) {\n if ($$skips.indexOf(key) === -1) {\n result[key] = toJSON(model[key]);\n }\n }\n } else {\n result = model;\n }\n return result;\n }\n\n function cloneShadow(obj) {\n if (obj === null) return null;\n\n if (Array.isArray(obj)) {\n var result = [].concat(obj);\n if (obj.__ref__ !== undefined) result.__ref__ = obj.__ref__;\n return result;\n }\n\n return toJSON(obj);\n }\n\n var nextTick = function () {\n var callbacks = [];\n var pending = false;\n var timerFunc = void 0;\n\n function nextTickHandler() {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n }\n\n // Here we have async deferring wrappers using microtasks.\n // In 2.5 we used (macro) tasks (in combination with microtasks).\n // However, it has subtle problems when state is changed right before repaint\n // (e.g. #6813, out-in transitions).\n // Also, using (macro) tasks in event handler would cause some weird behaviors\n // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).\n // So we now use microtasks everywhere, again.\n // A major drawback of this tradeoff is that there are some scenarios\n // where microtasks have too high a priority and fire in between supposedly\n // sequential events (e.g. #4521, #6690, which have workarounds)\n // or even between bubbling of the same event (#6566).\n\n // The nextTick behavior leverages the microtask queue, which can be accessed\n // via either native Promise.then or MutationObserver.\n // MutationObserver has wider support, however it is seriously bugged in\n // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n // completely stops working after triggering a few times... so, if native\n // Promise is available, we will use it:\n /* istanbul ignore next, $flow-disable-line */\n if (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n timerFunc = function timerFunc() {\n p.then(nextTickHandler);\n };\n } else if (!isIE && typeof MutationObserver !== 'undefined' && (isNative(MutationObserver) ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]')) {\n // Use MutationObserver where native Promise is not available,\n // e.g. PhantomJS, iOS7, Android 4.4\n // (#6466 MutationObserver is unreliable in IE11)\n var counter = 1;\n var observer = new MutationObserver(nextTickHandler);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function timerFunc() {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n // Fallback to setImmediate.\n // Technically it leverages the (macro) task queue,\n // but it is still a better choice than setTimeout.\n timerFunc = function timerFunc() {\n setImmediate(nextTickHandler);\n };\n } else {\n // Fallback to setTimeout.\n timerFunc = function timerFunc() {\n setTimeout(nextTickHandler, 0);\n };\n }\n\n return function queueNextTick(cb, ctx) {\n var _resolve = void 0;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n console.error(e);\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve, reject) {\n _resolve = resolve;\n });\n }\n };\n }();\n\n function inherit(sb, sp, overrides) {\n if (typeof sp === \"object\") {\n overrides = sp;\n sp = sb;\n sb = function temp() {\n return sp.apply(this, arguments);\n };\n }\n var F = function F() {},\n spp = sp.prototype;\n F.prototype = spp;\n sb.prototype = new F();\n sb.superclass = spp;\n _$1.extend(sb.prototype, overrides, {\n superclass: sp\n });\n return sb;\n }\n\n var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;\n var ObjProto = Object.prototype;\n var toString = ObjProto.toString;\n\n // Internal recursive comparison function for `isEqual`.\n /* eslint no-param-reassign: ['off'] */\n /* eslint no-use-before-define: [\"off\"] */\n var deepEq = function deepEq(a, b, aStack, bStack) {\n // Unwrap any wrapped objects.\n if (a instanceof _$1) a = a._wrapped;\n if (b instanceof _$1) b = b._wrapped;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, regular expressions, dates, and booleans are compared by value.\n case '[object RegExp]':\n case '[object String]':\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return '' + a === '' + b;\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case '[object Symbol]':\n return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);\n default:\n }\n\n var areArrays = className === '[object Array]';\n\n if (!areArrays) {\n if (typeof a != 'object' || typeof b != 'object') return false;\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor,\n bCtor = b.constructor;\n if (aCtor !== bCtor && !(_$1.isFunction(aCtor) && aCtor instanceof aCtor && _$1.isFunction(bCtor) && bCtor instanceof bCtor) && 'constructor' in a && 'constructor' in b) {\n return false;\n }\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var keys = _$1.keys(a);var key = void 0;\n length = keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (_$1.keys(b).length !== length) return false;\n while (length--) {\n // Deep compare each member\n key = keys[length];\n if ($$skips.indexOf(key) !== -1) {\n return true;\n }\n\n if (!(Object.keys(b).indexOf(key) !== -1 && eq(a[key], b[key], aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n\n return true;\n };\n\n var eq = function eq(a, b, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;\n\n // skip function\n if (type === 'function') return true;\n\n return deepEq(a, b, aStack, bStack);\n };\n\n // export function isShadowEqual(a, b) {\n // return shadowEq(a, b);\n // }\n\n function isShadowEqual(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length = void 0,\n i = void 0,\n key = void 0,\n keys = void 0;\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!isShadowEqual(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n if (a.constructor === RegExp) return true;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;) {\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n }\n\n for (i = length; i-- !== 0;) {\n key = keys[i];\n if ($$skips.indexOf(key) !== -1) continue;\n if (!isShadowEqual(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // skip function\n if (typeof a === 'function') return true;\n\n // true if both NaN, false otherwise\n return a !== a && b !== b;\n }\n\n var mixinInjection = {};\n\n function getMixins(type) {\n return mixinInjection[type];\n }\n\n function mixin(xtype, cls) {\n mixinInjection[xtype] = _.cloneDeep(cls);\n }\n\n var falsy$1 = void 0;\n var operators = {\n '||': falsy$1,\n '&&': falsy$1,\n '(': falsy$1,\n ')': falsy$1\n };\n\n function runBinaryFunction(binarys) {\n var expr = '';\n for (var i = 0, len = binarys.length; i < len; i++) {\n if (_$1.isBoolean(binarys[i]) || _$1.has(operators, binarys[i])) {\n expr += binarys[i];\n } else {\n expr += 'false';\n }\n }\n\n return new Function('return ' + expr)();\n }\n\n function watch(vm, expOrFn, cb) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n var model = vm;\n if (!model.$watch && model.$vm) {\n model = model.$vm;\n }\n if (isPlainObject(cb)) {\n options = cb;\n cb = cb.handler;\n }\n if (typeof cb === 'string') {\n cb = model[cb];\n }\n options = options || {};\n options.user = true;\n var exps = void 0;\n if (_$1.isFunction(expOrFn) || !(exps = expOrFn.match(/[a-zA-Z0-9_.*]+|[|][|]|[&][&]|[(]|[)]/g)) || exps.length === 1 && !/\\*/.test(expOrFn)) {\n model.$watch(expOrFn, cb, options);\n\n return [];\n }\n var watchers = [];\n var fns = exps.slice();\n var complete = false,\n running = false;\n var callback = function callback(index, newValue, oldValue, attrs) {\n if (complete === true) {\n return;\n }\n fns[index] = true;\n if (runBinaryFunction(fns)) {\n complete = true;\n cb.call(vm, newValue, oldValue, attrs);\n }\n if (options && options.sync) {\n complete = false;\n running = false;\n fns = exps.slice();\n } else {\n if (!running) {\n running = true;\n nextTick(function () {\n complete = false;\n running = false;\n fns = exps.slice();\n });\n }\n }\n };\n _$1.each(exps, function (exp, i) {\n if (_$1.has(operators, exp)) {\n return;\n }\n // a.**或a.*形式\n if (/^[1-9a-zA-Z.]+(\\*\\*$|\\*$)/.test(exp) || exp === '**') {\n var isGlobal = /\\*\\*$/.test(exp);\n if (isGlobal) {\n // a.**的形式\n exp = exp.replace('.**', '');\n } else {\n // a.*的形式\n exp = exp.replace('.*', '');\n }\n var getter = isGlobal ? exp : function () {\n var result = {};\n _$1.each(model.model, function (v, key) {\n if (key in $$skipArray) return;\n result[key] = v;\n });\n\n return result;\n };\n model.$watch(getter, function (newValue, oldValue, attrs) {\n callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs));\n }, _$1.extend(options, {\n deep: isGlobal\n }));\n\n return;\n }\n if (/\\*\\*$|\\*$/.test(exp)) {\n throw new Error('not support');\n }\n // 其他含有*的情况,如*.a,*.*.a,a.*.a\n if (/\\*/.test(exp)) {\n // 先获取到能获取到的对象\n var paths = exp.split('.');\n var _getter = function _getter() {\n var currentModels = {\n root: model.model\n };\n\n var _loop = function _loop(len, _i) {\n var models = {};\n if (paths[_i] === '*') {\n _$1.each(currentModels, function (model, key) {\n _$1.each(model, function (v, k) {\n if (key + k in $$skipArray) return;\n models[key + k] = v;\n });\n });\n } else {\n _$1.each(currentModels, function (model, key) {\n if (key + paths[_i] in $$skipArray) return;\n models[key + paths[_i]] = model[paths[_i]];\n });\n }\n currentModels = models;\n };\n\n for (var _i = 0, len = paths.length; _i < len; _i++) {\n _loop(len, _i);\n }\n\n return currentModels;\n };\n model.$watch(_getter, function (newValue, oldValue, attrs) {\n callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs));\n }, options);\n\n return;\n }\n model.$watch(exp, function (newValue, oldValue, attrs) {\n callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs));\n }, options);\n });\n\n return watchers;\n }\n\n var allModelInstances = {};\n var allDefineModelInstances = {};\n var emptyFn = function emptyFn() {};\n var TTL = 10;\n\n var Watcher = function () {\n function Watcher(_ref) {\n var get = _ref.get,\n last = _ref.last,\n listener = _ref.listener,\n sync = _ref.sync,\n deep = _ref.deep,\n id = _ref.id;\n\n _classCallCheck(this, Watcher);\n\n this.id = id;\n this.get = get;\n this.last = cloneShadow(last);\n this.listener = listener || emptyFn;\n this.sync = sync || false;\n\n return {\n id: this.id,\n get: this.get,\n last: this.last,\n listener: this.listener\n };\n }\n\n // 不要去掉,为了兼容IE8,IE8下instance of Constructor如果不绑定函数会出错\n\n\n Watcher.prototype.getInstance = function getInstance() {\n return this;\n };\n\n return Watcher;\n }();\n\n function initState(vm, state) {\n var watchers = vm._stateWatchers = {};\n for (var key in state) {\n vm.model[key] = state[key];\n }\n // state暂不支持func和context\n\n var _loop2 = function _loop2(_key2) {\n var userDef = state[_key2];\n\n watchers[_key2] = new Watcher({\n id: vm._modelHashId + '-' + _key2,\n get: function get() {\n return vm.model[_key2];\n },\n last: userDef,\n listener: vm.options.defaultCallback || emptyFn\n });\n };\n\n for (var _key2 in state) {\n _loop2(_key2);\n }\n }\n\n function initComputed(vm, computed) {\n var watchers = vm._computedWatchers = {};\n var order = vm._computedOrder = [];\n\n for (var key in computed) {\n var userDef = computed[key],\n context = vm;\n\n order.push(key);\n\n watchers[key] = new Watcher({\n id: vm._modelHashId + '-' + key,\n get: _$1.bind(userDef, context),\n last: undefined,\n listener: emptyFn\n });\n }\n }\n\n function initWatch(vm, watchObj) {\n vm._watchers || (vm._watchers = []);\n for (var expOrFn in watchObj) {\n var handler = watchObj[expOrFn];\n if (_$1.isArray(handler)) {\n for (var i = 0; i < handler.length; i++) {\n watch(vm, expOrFn, handler[i]);\n }\n } else {\n watch(vm, expOrFn, handler);\n }\n }\n }\n\n /* eslint no-param-reassign: ['off'] */\n function createWatcher(vm, expOrFn, cb) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n if (isPlainObject(cb)) {\n options = cb;\n cb = cb.handler;\n }\n if (typeof cb === 'string') {\n cb = vm[cb];\n }\n var getter = _$1.isFunction(expOrFn) ? _$1.bind(expOrFn, vm) : _$1.bind(function () {\n return parsePath('model.' + expOrFn)(vm);\n }, vm);\n\n return new Watcher({\n get: getter,\n listener: _$1.bind(cb, vm),\n last: getter(),\n sync: options.sync,\n deep: options.deep,\n id: options.id\n });\n }\n\n function injectMethod(method, vm) {\n return function () {\n var result = method.apply(vm, [].concat(Array.prototype.slice.call(arguments)));\n // 有回调的函数不作处理,拦截ajax请求\n vm.$digest();\n\n return result;\n };\n }\n\n function initMethods(vm, methods) {\n for (var key in methods) {\n vm[key] = methods[key] == null ? noop : injectMethod(methods[key], vm);\n }\n }\n\n function initMixins(vm) {\n var mixins = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n _$1.each(mixins.reverse(), function (mixinType) {\n var mixin$$1 = getMixins(mixinType);\n\n for (var key in mixin$$1) {\n if (typeof mixin$$1[key] !== 'function') continue;\n\n if (_$1.has(vm, key)) continue;\n\n vm[key] = injectMethod(mixin$$1[key], vm);\n }\n });\n }\n\n function defineContext(vm, keys) {\n var watchers = vm._contextWatchers = {};\n\n // 相关context挂上别的model中的修改监听\n function getSingleContext(key) {\n var p = vm._parent;\n while (p) {\n if (p.childContext && p.childContext.indexOf(key) > -1) {\n p.$watch(key, function (cur, last, p) {\n if (!vm._contextWatchers[key]) return;\n vm.model[key] = cur;\n vm._contextWatchers[key].last = cloneShadow(cur); // 避免重复调用(可以改成给watch添加一个参数保证下次比较一定相同)\n vm.$digest();\n }, {\n id: vm._modelHashId + '-' + key\n });\n\n return {\n p: p,\n value: p.model[key]\n };\n }\n p = p._parent;\n }\n }\n\n _$1.each(keys, function (key) {\n var context = getSingleContext(key);\n if (!context) return;\n vm.model[key] = context.p ? context.p.model[key] : undefined;\n watchers[key] = new Watcher({\n id: context.p._modelHashId + '-' + key,\n get: function get() {\n return vm.model[key];\n },\n last: vm.model[key],\n listener: _$1.bind(function (c) {\n context.p.model[key] = c;\n // context.p.model[key] = vm.model[key];\n context.p.$digest();\n }, context.p)\n });\n });\n }\n\n function digestState(vm) {\n var dirty = false;\n _$1.each(vm._stateWatchers, function (watcher, key) {\n var cur = watcher.get();\n var last = watcher.last;\n if (!isShadowEqual(cur, last)) {\n // addToListenerQueue(vm, watcher, cur, last);\n vm.model[key] = cur;\n dirty = true;\n watcher.last = cloneShadow(cur);\n }\n });\n\n return dirty;\n }\n\n function digestComputed(vm) {\n var dirty = false;\n var dirtyQueue = [],\n cleanQueue = [];\n\n _$1.each(vm._computedOrder, function (key) {\n var watcher = vm._computedWatchers[key];\n\n try {\n var cur = watcher.get();\n var last = watcher.last;\n if (!isShadowEqual(cur, last)) {\n // addToListenerQueue(vm, watcher, cur, last);\n vm.model[key] = cur;\n dirty = true;\n dirtyQueue.push(key);\n watcher.last = cloneShadow(cur);\n } else {\n cleanQueue.push(key);\n }\n } catch (err) {\n dirty = true;\n dirtyQueue.push(key);\n }\n });\n\n vm._computedOrder = [].concat(cleanQueue, dirtyQueue);\n\n return dirty;\n }\n\n function digestContext(vm) {\n var dirty = false;\n _$1.each(vm._contextWatchers, function (watcher, key) {\n var cur = watcher.get();\n var last = watcher.last;\n if (!isShadowEqual(cur, last)) {\n var listener = {\n id: watcher.id,\n cb: _$1.bind(watcher.listener, vm, cur, last, vm)\n };\n vm.contextListeners.push(listener);\n vm.model[key] = cur;\n dirty = true;\n watcher.last = cloneShadow(cur);\n }\n });\n\n return dirty;\n }\n\n function digest(vm) {\n var stateDirty = true,\n contextDirty = true,\n computedDirty = true;\n for (var ttl = TTL; stateDirty && ttl > 0; ttl--) {\n stateDirty = digestState(vm);\n }\n for (var _ttl = TTL; contextDirty && _ttl > 0; _ttl--) {\n contextDirty = digestContext(vm);\n }\n for (var _ttl2 = TTL; computedDirty && _ttl2 > 0; _ttl2--) {\n computedDirty = digestComputed(vm);\n }\n }\n\n var nextListener = function () {\n var callbackMap = {};\n\n return function queueNextListener(listener, ctx) {\n var id = listener.id;\n var cb = listener.cb;\n if (id && callbackMap[id]) {\n return;\n }\n nextTick(function () {\n cb();\n callbackMap[id] = false;\n }, ctx);\n callbackMap[id] = true;\n };\n }();\n\n function executeWatchListeners(vm) {\n var syncListeners = [].concat(vm.syncListeners || []);\n var asyncListeners = [].concat(vm.asyncListeners || []);\n var contextListeners = [].concat(vm.contextListeners || []);\n\n vm.asyncListeners = [];\n vm.syncListeners = [];\n\n var watchers = [].concat(vm._watchers);\n\n _$1.each(watchers, function (watcher) {\n if (!watcher) return;\n var cur = watcher.get();\n var last = watcher.last;\n\n if (isShadowEqual(cur, last)) return;\n\n var listner = {\n id: watcher.id,\n cb: _$1.bind(watcher.listener, vm, cur, last, vm)\n };\n\n watcher.sync === true ? syncListeners.push(listner) : asyncListeners.push(listner);\n\n watcher.last = cloneShadow(cur);\n });\n\n _$1.each(syncListeners, function (listener) {\n listener.cb();\n });\n if (contextListeners.length !== 0 || asyncListeners.length !== 0) {\n nextTick(function () {\n _$1.each(BI.uniqBy(contextListeners.reverse(), \"id\").reverse(), function (listener) {\n listener.cb();\n });\n _$1.each(asyncListeners, function (listener) {\n listener.cb();\n });\n });\n }\n }\n\n function refreshAllDefineModel() {\n _$1.each(allDefineModelInstances, function (insta) {\n insta && insta.$digest && insta.$digest();\n });\n }\n\n var Model = function () {\n function Model() {\n _classCallCheck(this, Model);\n }\n\n Model.prototype._constructor = function _constructor(model) {\n this.alive = true;\n this.options = model || {};\n this.model = {\n $vm: this\n };\n this._modelHashId = makeHashCode('model');\n this.syncListeners = [];\n this.asyncListeners = [];\n this.contextListeners = [];\n\n this._parent = Model.target;\n var state = _$1.isFunction(this.state) ? this.state() : this.state;\n var computed = this.computed;\n // Todo\n var context = this.context;\n var childContext = this.childContext;\n var watch$$1 = this.watch;\n var actions = this.actions;\n var mixins = this.mixins;\n\n context && defineContext(this, context);\n\n initMixins(this, mixins);\n this.init();\n initState(this, state);\n initComputed(this, computed);\n digest(this);\n initWatch(this, watch$$1);\n initMethods(this, actions);\n this.created && this.created();\n allModelInstances[this._modelHashId] = this;\n };\n\n Model.prototype._init = function _init() {};\n\n Model.prototype.init = function init() {\n this._init();\n };\n\n Model.prototype.destroy = function destroy() {\n this.alive = false;\n allModelInstances[this._modelHashId] = null;\n this._watchers && (this._watchers = []);\n this._computedWatchers && (this._computedWatchers = []);\n this._stateWatchers && (this._stateWatchers = []);\n this._contextWatchers && (this._contextWatchers = []);\n this.destroyed && this.destroyed();\n };\n\n Model.prototype.$watch = function $watch(expOrFn, cb, options) {\n var watcher = createWatcher(this, expOrFn, cb, options);\n this._watchers.push(watcher);\n };\n\n Model.prototype.$digest = function $digest() {\n digest(this);\n\n executeWatchListeners(this);\n\n // 非define创建的model$digest触发所有define定义的model的$digest(未来需要平台去除这些写法))\n if (!this.options.define) {\n refreshAllDefineModel();\n }\n };\n\n Model.prototype.getModelID = function getModelID() {\n return this._modelHashId;\n };\n\n return Model;\n }();\n\n function getAllModelInstances() {\n return allModelInstances;\n }\n\n function refreshAll() {\n _$1.each(getAllModelInstances(), function (insta) {\n insta && insta.$digest && insta.$digest();\n });\n }\n\n function define(model) {\n var OB = inherit(Model, {\n state: function state() {\n return model;\n }\n });\n var ob = new OB();\n ob._constructor({\n define: true\n });\n allDefineModelInstances[ob.getModelID()] = ob;\n\n return ob.model;\n }\n\n var version = '2.0';\n\n exports.version = version;\n exports.$$skipArray = $$skipArray;\n exports.mixin = mixin;\n exports.toJSON = toJSON;\n exports.nextListener = nextListener;\n exports.Model = Model;\n exports.getAllModelInstances = getAllModelInstances;\n exports.refreshAll = refreshAll;\n exports.define = define;\n exports.inherit = inherit;\n exports.watch = watch;\n\n exports.__esModule = true;\n});/* !\n * jQuery Mousewheel 3.1.13\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license\n * http://jquery.org/license\n */\n\n(function (factory) {\n if ( typeof define === \"function\" && define.amd ) {\n // AMD. Register as an anonymous module.\n define([\"../core/jquery\"], factory);\n } else if (typeof exports === \"object\") {\n // Node/CommonJS style for Browserify\n module.exports = factory;\n } else {\n // Browser globals\n factory(BI.jQuery);\n }\n}(function ($) {\n\n var toFix = [\"wheel\", \"mousewheel\", \"DOMMouseScroll\", \"MozMousePixelScroll\"],\n toBind = ( \"onwheel\" in document || document.documentMode >= 9 ) ?\n [\"wheel\"] : [\"mousewheel\", \"DomMouseScroll\", \"MozMousePixelScroll\"],\n slice = Array.prototype.slice,\n nullLowestDeltaTimeout, lowestDelta;\n\n if ( $.event.fixHooks ) {\n for ( var i = toFix.length; i; ) {\n $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;\n }\n }\n\n var special = $.event.special.mousewheel = {\n version: \"3.1.12\",\n\n setup: function () {\n if ( this.addEventListener ) {\n for ( var i = toBind.length; i; ) {\n this.addEventListener( toBind[--i], handler, false );\n }\n } else {\n this.onmousewheel = handler;\n }\n },\n\n teardown: function () {\n if ( this.removeEventListener ) {\n for ( var i = toBind.length; i; ) {\n this.removeEventListener( toBind[--i], handler, false );\n }\n } else {\n this.onmousewheel = null;\n }\n },\n\n settings: {\n adjustOldDeltas: true, // see shouldAdjustOldDeltas() below\n normalizeOffset: true // calls getBoundingClientRect for each event\n }\n };\n\n $.fn.extend({\n mousewheel: function (fn) {\n return fn ? this.bind(\"mousewheel\", fn) : this.trigger(\"mousewheel\");\n },\n\n unmousewheel: function (fn) {\n return this.unbind(\"mousewheel\", fn);\n }\n });\n\n\n function handler (event) {\n var orgEvent = event || _global.event,\n args = slice.call(arguments, 1),\n delta = 0,\n deltaX = 0,\n deltaY = 0,\n absDelta = 0,\n offsetX = 0,\n offsetY = 0;\n event = $.event.fix(orgEvent);\n event.type = \"mousewheel\";\n\n // Old school scrollwheel delta\n if ( \"detail\" in orgEvent ) { deltaY = orgEvent.detail * -1; }\n if ( \"wheelDelta\" in orgEvent ) { deltaY = orgEvent.wheelDelta; }\n if ( \"wheelDeltaY\" in orgEvent ) { deltaY = orgEvent.wheelDeltaY; }\n if ( \"wheelDeltaX\" in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; }\n\n // Firefox < 17 horizontal scrolling related to DOMMouseScroll event\n if ( \"axis\" in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {\n deltaX = deltaY * -1;\n deltaY = 0;\n }\n\n // Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy\n delta = deltaY === 0 ? deltaX : deltaY;\n\n // New school wheel delta (wheel event)\n if ( \"deltaY\" in orgEvent ) {\n deltaY = orgEvent.deltaY * -1;\n delta = deltaY;\n }\n if ( \"deltaX\" in orgEvent ) {\n deltaX = orgEvent.deltaX;\n if ( deltaY === 0 ) { delta = deltaX * -1; }\n }\n\n // No change actually happened, no reason to go any further\n if ( deltaY === 0 && deltaX === 0 ) { return; }\n\n // Need to convert lines and pages to pixels if we aren't already in pixels\n // There are three delta modes:\n // * deltaMode 0 is by pixels, nothing to do\n // * deltaMode 1 is by lines\n // * deltaMode 2 is by pages\n if ( orgEvent.deltaMode === 1 ) {\n var lineHeight = 40;\n delta *= lineHeight;\n deltaY *= lineHeight;\n deltaX *= lineHeight;\n } else if ( orgEvent.deltaMode === 2 ) {\n var pageHeight = 800;\n delta *= pageHeight;\n deltaY *= pageHeight;\n deltaX *= pageHeight;\n }\n\n // Store lowest absolute delta to normalize the delta values\n absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );\n\n if ( !lowestDelta || absDelta < lowestDelta ) {\n lowestDelta = absDelta;\n\n // Adjust older deltas if necessary\n if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {\n lowestDelta /= 40;\n }\n }\n\n // Adjust older deltas if necessary\n if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {\n // Divide all the things by 40!\n delta /= 40;\n deltaX /= 40;\n deltaY /= 40;\n }\n\n // Get a whole, normalized value for the deltas\n delta = Math[ delta >= 1 ? \"floor\" : \"ceil\" ](delta / lowestDelta);\n deltaX = Math[ deltaX >= 1 ? \"floor\" : \"ceil\" ](deltaX / lowestDelta);\n deltaY = Math[ deltaY >= 1 ? \"floor\" : \"ceil\" ](deltaY / lowestDelta);\n\n // Normalise offsetX and offsetY properties\n if ( special.settings.normalizeOffset && this.getBoundingClientRect ) {\n var boundingRect = this.getBoundingClientRect();\n offsetX = event.clientX - boundingRect.left;\n offsetY = event.clientY - boundingRect.top;\n }\n\n // Add information to the event object\n event.deltaX = deltaX;\n event.deltaY = deltaY;\n event.deltaFactor = lowestDelta;\n event.offsetX = offsetX;\n event.offsetY = offsetY;\n // Go ahead and set deltaMode to 0 since we converted to pixels\n // Although this is a little odd since we overwrite the deltaX/Y\n // properties with normalized deltas.\n event.deltaMode = 0;\n\n // Add event and delta to the front of the arguments\n args.unshift(event, delta, deltaX, deltaY);\n\n // Clearout lowestDelta after sometime to better\n // handle multiple device types that give different\n // a different lowestDelta\n // Ex: trackpad = 3 and mouse wheel = 120\n if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }\n nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);\n\n return ($.event.dispatch || $.event.handle).apply(this, args);\n }\n\n function nullLowestDelta () {\n lowestDelta = null;\n }\n\n function shouldAdjustOldDeltas (orgEvent, absDelta) {\n // If this is an older event and the delta is divisable by 120,\n // then we are assuming that the browser is treating this as an\n // older mouse wheel event and that we should divide the deltas\n // by 40 to try and get a more usable deltaFactor.\n // Side note, this actually impacts the reported scroll distance\n // in older browsers and can cause scrolling to be slower than native.\n // Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.\n return special.settings.adjustOldDeltas && orgEvent.type === \"mousewheel\" && absDelta % 120 === 0;\n }\n\n}));/**\n * 当没有元素时有提示信息的view\n *\n * Created by GUY on 2015/9/8.\n * @class BI.Pane\n * @extends BI.Widget\n * @abstract\n */\nBI.Pane = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.Pane.superclass._defaultConfig.apply(this, arguments), {\n _baseCls: \"bi-pane\",\n tipText: BI.i18nText(\"BI-No_Selected_Item\"),\n overlap: true,\n onLoaded: BI.emptyFn\n });\n },\n\n _assertTip: function () {\n var o = this.options;\n if (!this._tipText) {\n this._tipText = BI.createWidget({\n type: \"bi.label\",\n cls: \"bi-tips\",\n text: o.tipText,\n height: 25\n });\n BI.createWidget({\n type: \"bi.absolute_center_adapt\",\n element: this,\n items: [this._tipText]\n });\n }\n },\n\n loading: function () {\n var self = this, o = this.options;\n var isIE = BI.isIE();\n var loadingAnimation = BI.createWidget({\n type: \"bi.horizontal\",\n cls: \"bi-loading-widget\" + (isIE ? \" wave-loading hack\" : \"\"),\n height: 30,\n width: 30,\n hgap: 5,\n vgap: 2.5,\n items: isIE ? [] : [{\n type: \"bi.layout\",\n cls: \"animate-rect rect1\",\n height: 25,\n width: 3\n }, {\n type: \"bi.layout\",\n cls: \"animate-rect rect2\",\n height: 25,\n width: 3\n }, {\n type: \"bi.layout\",\n cls: \"animate-rect rect3\",\n height: 25,\n width: 3\n }]\n });\n // pane在同步方式下由items决定tipText的显示与否\n // loading的异步情况下由loaded后对面板的populate的时机决定\n this.setTipVisible(false);\n if (o.overlap === true) {\n if (!BI.Layers.has(this.getName())) {\n BI.createWidget({\n type: \"bi.absolute_center_adapt\",\n cls: \"loading-container\",\n items: [{\n el: loadingAnimation\n }],\n element: BI.Layers.make(this.getName(), this)\n });\n }\n BI.Layers.show(self.getName());\n } else if (BI.isNull(this._loading)) {\n this._loading = loadingAnimation;\n this._loading.element.css(\"zIndex\", 1);\n BI.createWidget({\n type: \"bi.absolute_center_adapt\",\n element: this,\n cls: \"loading-container\",\n items: [{\n el: this._loading,\n left: 0,\n right: 0,\n top: 0\n }]\n });\n }\n this.element.addClass(\"loading-status\");\n },\n\n loaded: function () {\n var self = this, o = this.options;\n BI.Layers.remove(self.getName());\n this._loading && this._loading.destroy();\n this._loading && (this._loading = null);\n o.onLoaded();\n self.fireEvent(BI.Pane.EVENT_LOADED);\n this.element.removeClass(\"loading-status\");\n },\n\n check: function () {\n this.setTipVisible(BI.isEmpty(this.options.items));\n },\n\n setTipVisible: function (b) {\n if (b === true) {\n this._assertTip();\n this._tipText.setVisible(true);\n } else {\n this._tipText && this._tipText.setVisible(false);\n }\n },\n\n populate: function (items) {\n this.options.items = items || [];\n this.check();\n },\n\n empty: function () {\n\n }\n});\nBI.Pane.EVENT_LOADED = \"EVENT_LOADED\";/**\n * guy\n * 这仅仅只是一个超类, 所有简单控件的基类\n * 1、类的控制,\n * 2、title的控制\n * 3、文字超过边界显示3个点\n * 4、cursor默认pointor\n * @class BI.Single\n * @extends BI.Widget\n * @abstract\n */\nBI.Single = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.Single.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n _baseCls: (conf._baseCls || \"\") + \" bi-single\",\n readonly: false,\n title: null,\n warningTitle: null,\n tipType: null, // success或warning\n value: null,\n belowMouse: false // title是否跟随鼠标\n });\n },\n\n _showToolTip: function (e, opt) {\n opt || (opt = {});\n var self = this, o = this.options;\n var type = this.getTipType() || (this.isEnabled() ? \"success\" : \"warning\");\n var title = type === \"success\" ? this.getTitle() : (this.getWarningTitle() || this.getTitle());\n if (BI.isKey(title)) {\n BI.Tooltips.show(e, this.getName(), title, type, this, opt);\n if (o.action) {\n BI.Actions.runAction(o.action, \"hover\", o, this);\n }\n BI.Actions.runGlobalAction(\"hover\", o, this);\n }\n },\n\n _hideTooltip: function () {\n var self = this;\n var tooltip = BI.Tooltips.get(this.getName());\n if (BI.isNotNull(tooltip)) {\n tooltip.element.fadeOut(200, function () {\n BI.Tooltips.remove(self.getName());\n });\n }\n },\n\n _init: function () {\n BI.Single.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isKey(o.title) || BI.isKey(o.warningTitle)\n || BI.isFunction(o.title) || BI.isFunction(o.warningTitle)) {\n this.enableHover({\n belowMouse: o.belowMouse,\n container: o.container\n });\n }\n },\n\n _clearTimeOut: function () {\n if (BI.isNotNull(this.showTimeout)) {\n clearTimeout(this.showTimeout);\n this.showTimeout = null;\n }\n if (BI.isNotNull(this.hideTimeout)) {\n clearTimeout(this.hideTimeout);\n this.hideTimeout = null;\n }\n },\n\n enableHover: function (opt) {\n opt || (opt = {});\n var self = this;\n if (!this._hoverBinded) {\n this.element.on(\"mouseenter.title\" + this.getName(), function (e) {\n self._e = e;\n if (self.getTipType() === \"warning\" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {\n self.showTimeout = BI.delay(function () {\n if (BI.isNotNull(self.showTimeout)) {\n self._showToolTip(self._e || e, opt);\n }\n }, 200);\n } else if (self.getTipType() === \"success\" || self.isEnabled()) {\n self.showTimeout = BI.delay(function () {\n if (BI.isNotNull(self.showTimeout)) {\n self._showToolTip(self._e || e, opt);\n }\n }, 500);\n }\n });\n this.element.on(\"mousemove.title\" + this.getName(), function (e) {\n self._e = e;\n if (BI.isNotNull(self.showTimeout)) {\n clearTimeout(self.showTimeout);\n self.showTimeout = null;\n }\n if(BI.isNull(self.hideTimeout)) {\n self.hideTimeout = BI.delay(function () {\n if (BI.isNotNull(self.hideTimeout)) {\n self._hideTooltip();\n }\n }, 500);\n }\n\n self.showTimeout = BI.delay(function () {\n // DEC-5321 IE下如果回调已经进入事件队列,clearTimeout将不会起作用\n if (BI.isNotNull(self.showTimeout)) {\n if (BI.isNotNull(self.hideTimeout)) {\n clearTimeout(self.hideTimeout);\n self.hideTimeout = null;\n }\n // CHART-10611 在拖拽的情况下, 鼠标拖拽着元素离开了拖拽元素的容器,但是子元素在dom结构上仍然属于容器\n // 这样会认为鼠标仍然在容器中, 500ms内放开的话,会在容器之外显示鼠标停留处显示容器的title\n if (self.element.__isMouseInBounds__(self._e || e)) {\n self._showToolTip(self._e || e, opt);\n }\n }\n }, 500);\n\n });\n this.element.on(\"mouseleave.title\" + this.getName(), function (e) {\n self._e = null;\n self._clearTimeOut();\n self._hideTooltip();\n });\n this._hoverBinded = true;\n }\n },\n\n disabledHover: function () {\n // 取消hover事件\n this._clearTimeOut();\n this._hideTooltip();\n this.element.unbind(\"mouseenter.title\" + this.getName())\n .unbind(\"mousemove.title\" + this.getName())\n .unbind(\"mouseleave.title\" + this.getName());\n this._hoverBinded = false;\n },\n\n populate: function (items) {\n this.items = items || [];\n },\n\n // opt: {container: '', belowMouse: false}\n setTitle: function (title, opt) {\n this.options.title = title;\n if (BI.isKey(title) || BI.isFunction(title)) {\n this.enableHover(opt);\n } else {\n this.disabledHover();\n }\n },\n\n setWarningTitle: function (title, opt) {\n this.options.warningTitle = title;\n if (BI.isKey(title) || BI.isFunction(title)) {\n this.enableHover(opt);\n } else {\n this.disabledHover();\n }\n },\n\n getTipType: function () {\n return this.options.tipType;\n },\n\n isReadOnly: function () {\n return !!this.options.readonly;\n },\n\n getTitle: function () {\n var title = this.options.title;\n if(BI.isFunction(title)) {\n return title();\n }\n return title;\n },\n\n getWarningTitle: function () {\n var title = this.options.warningTitle;\n if(BI.isFunction(title)) {\n return title();\n }\n return title;\n },\n\n setValue: function (val) {\n if (!this.options.readonly) {\n this.options.value = val;\n }\n },\n\n getValue: function () {\n return this.options.value;\n },\n\n _unMount: function () {\n BI.Single.superclass._unMount.apply(this, arguments);\n if(BI.isNotNull(this.showTimeout)) {\n clearTimeout(this.showTimeout);\n this.showTimeout = null;\n }\n BI.Tooltips.remove(this.getName());\n }\n});/**\n * guy 表示一行数据,通过position来定位位置的数据\n * @class BI.Text\n * @extends BI.Single\n */\nBI.Text = BI.inherit(BI.Single, {\n\n props: {\n baseCls: \"bi-text\",\n textAlign: \"left\",\n whiteSpace: \"normal\",\n lineHeight: null,\n handler: null, // 如果传入handler,表示处理文字的点击事件,不是区域的\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n text: \"\",\n py: \"\",\n highLight: false\n },\n\n render: function () {\n var self = this, o = this.options;\n if (o.hgap + o.lgap > 0) {\n this.element.css({\n \"padding-left\": o.hgap + o.lgap + \"px\"\n });\n }\n if (o.hgap + o.rgap > 0) {\n this.element.css({\n \"padding-right\": o.hgap + o.rgap + \"px\"\n });\n }\n if (o.vgap + o.tgap > 0) {\n this.element.css({\n \"padding-top\": o.vgap + o.tgap + \"px\"\n });\n }\n if (o.vgap + o.bgap > 0) {\n this.element.css({\n \"padding-bottom\": o.vgap + o.bgap + \"px\"\n });\n }\n if (BI.isNumber(o.height)) {\n this.element.css({lineHeight: o.height + \"px\"});\n }\n if (BI.isNumber(o.lineHeight)) {\n this.element.css({lineHeight: o.lineHeight + \"px\"});\n }\n if (BI.isWidthOrHeight(o.maxWidth)) {\n this.element.css({maxWidth: o.maxWidth});\n }\n this.element.css({\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n textOverflow: o.whiteSpace === \"nowrap\" ? \"ellipsis\" : \"\",\n overflow: o.whiteSpace === \"nowrap\" ? \"\" : (BI.isWidthOrHeight(o.height) ? \"auto\" : \"\")\n });\n if (o.handler) {\n this.text = BI.createWidget({\n type: \"bi.layout\",\n tagName: \"span\"\n });\n this.text.element.click(function () {\n o.handler(self.getValue());\n });\n BI.createWidget({\n type: \"bi.default\",\n element: this,\n items: [this.text]\n });\n } else {\n this.text = this;\n }\n\n var text = this._getShowText();\n if (BI.isKey(text)) {\n this.setText(text);\n } else if (BI.isKey(o.value)) {\n this.setText(o.value);\n }\n if (BI.isKey(o.keyword)) {\n this.doRedMark(o.keyword);\n }\n if (o.highLight) {\n this.doHighLight();\n }\n },\n\n _getShowText: function () {\n var o = this.options;\n return BI.isFunction(o.text) ? o.text() : o.text;\n },\n\n\n doRedMark: function (keyword) {\n var o = this.options;\n // render之后做的doredmark,这个时候虽然标红了,但是之后text mounted执行的时候并没有keyword\n o.keyword = keyword;\n this.text.element.__textKeywordMarked__(this._getShowText() || o.value, keyword, o.py);\n },\n\n unRedMark: function () {\n var o = this.options;\n o.keyword = \"\";\n this.text.element.__textKeywordMarked__(this._getShowText() || o.value, \"\", o.py);\n },\n\n doHighLight: function () {\n this.text.element.addClass(\"bi-high-light\");\n },\n\n unHighLight: function () {\n this.text.element.removeClass(\"bi-high-light\");\n },\n\n setValue: function (text) {\n BI.Text.superclass.setValue.apply(this, arguments);\n if (!this.isReadOnly()) {\n this.setText(text);\n }\n },\n\n setStyle: function (css) {\n this.text.element.css(css);\n },\n\n setText: function (text) {\n BI.Text.superclass.setText.apply(this, arguments);\n // 为textContext赋值为undefined时在ie和edge下会真的显示undefined\n this.options.text = BI.isNotNull(text) ? text : \"\";\n if (BI.isIE9Below()) {\n this.text.element.html(BI.htmlEncode(this._getShowText()));\n return;\n }\n if (/\\s/.test(text)) {\n this.text.element[0].innerHTML = BI.htmlEncode(this._getShowText());\n } else {\n // textContent性能更好,并且原生防xss\n this.text.element[0].textContent = this._getShowText();\n }\n BI.isKey(this.options.keyword) && this.doRedMark(this.options.keyword);\n }\n});\n\nBI.shortcut(\"bi.text\", BI.Text);\n/**\n * guy\n * @class BI.BasicButton\n * @extends BI.Single\n *\n * 一般的button父级\n */\nBI.BasicButton = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.BasicButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n _baseCls: (conf._baseCls || \"\") + \" bi-basic-button\" + (conf.invalid ? \"\" : \" cursor-pointer\") + ((BI.isIE() && BI.getIEVersion() < 10) ? \" hack\" : \"\"),\n value: \"\",\n text: \"\",\n stopEvent: false,\n stopPropagation: false,\n selected: false,\n once: false, // 点击一次选中有效,再点无效\n forceSelected: false, // 点击即选中, 选中了就不会被取消,与once的区别是forceSelected不影响事件的触发\n forceNotSelected: false, // 无论怎么点击都不会被选中\n disableSelected: false, // 使能选中\n\n shadow: false,\n isShadowShowingOnSelected: false, // 选中状态下是否显示阴影\n trigger: null,\n handler: BI.emptyFn,\n bubble: null\n });\n },\n _init: function () {\n BI.BasicButton.superclass._init.apply(this, arguments);\n var opts = this.options;\n if (opts.selected === true) {\n BI.nextTick(BI.bind(function () {\n this.setSelected(opts.selected);\n }, this));\n }\n BI.nextTick(BI.bind(this.bindEvent, this));\n\n if (opts.shadow) {\n this._createShadow();\n }\n if (opts.level) {\n this.element.addClass(\"button-\" + opts.level);\n }\n },\n\n _createShadow: function () {\n var self = this, o = this.options;\n\n var assertMask = function () {\n if (!self.$mask) {\n self.$mask = BI.createWidget(BI.isObject(o.shadow) ? o.shadow : {}, {\n type: \"bi.layout\",\n cls: \"bi-button-mask\"\n });\n self.$mask.invisible();\n BI.createWidget({\n type: \"bi.absolute\",\n element: self,\n items: [{\n el: self.$mask,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n }\n };\n\n this.element.mouseup(function () {\n if (!self._hover && !o.isShadowShowingOnSelected) {\n assertMask();\n self.$mask.invisible();\n }\n });\n this.element.on(\"mouseenter.\" + this.getName(), function (e) {\n if (self.element.__isMouseInBounds__(e)) {\n if (self.isEnabled() && !self._hover && (o.isShadowShowingOnSelected || !self.isSelected())) {\n assertMask();\n self.$mask.visible();\n }\n }\n });\n this.element.on(\"mousemove.\" + this.getName(), function (e) {\n if (!self.element.__isMouseInBounds__(e)) {\n if (self.isEnabled() && !self._hover) {\n assertMask();\n self.$mask.invisible();\n }\n }\n });\n this.element.on(\"mouseleave.\" + this.getName(), function () {\n if (self.isEnabled() && !self._hover) {\n assertMask();\n self.$mask.invisible();\n }\n });\n },\n\n bindEvent: function () {\n var self = this;\n var o = this.options, hand = this.handle();\n if (!hand) {\n return;\n }\n hand = hand.element;\n var triggerArr = (o.trigger || \"\").split(\",\");\n BI.each(triggerArr, function (idx, trigger) {\n switch (trigger) {\n case \"mouseup\":\n var mouseDown = false;\n hand.mousedown(function () {\n mouseDown = true;\n });\n hand.mouseup(function (e) {\n if (mouseDown === true) {\n clk(e);\n }\n mouseDown = false;\n ev(e);\n });\n break;\n case \"mousedown\":\n var mouseDown = false;\n var selected = false;\n hand.mousedown(function (e) {\n // if (e.button === 0) {\n BI.Widget._renderEngine.createElement(document).bind(\"mouseup.\" + self.getName(), function (e) {\n // if (e.button === 0) {\n if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) {\n // self.setSelected(!self.isSelected());\n self._trigger();\n }\n mouseDown = false;\n BI.Widget._renderEngine.createElement(document).unbind(\"mouseup.\" + self.getName());\n // }\n });\n if (mouseDown === true) {\n return;\n }\n if (self.isSelected()) {\n selected = true;\n } else {\n clk(e);\n }\n mouseDown = true;\n ev(e);\n // }\n });\n hand.mouseup(function (e) {\n // if (e.button === 0) {\n if (BI.DOM.isExist(self) && mouseDown === true && selected === true) {\n clk(e);\n }\n mouseDown = false;\n selected = false;\n BI.Widget._renderEngine.createElement(document).unbind(\"mouseup.\" + self.getName());\n // }\n });\n break;\n case \"dblclick\":\n hand.dblclick(clk);\n break;\n case \"lclick\":\n var mouseDown = false;\n var interval;\n hand.mousedown(function (e) {\n BI.Widget._renderEngine.createElement(document).bind(\"mouseup.\" + self.getName(), function (e) {\n interval && clearInterval(interval);\n interval = null;\n mouseDown = false;\n BI.Widget._renderEngine.createElement(document).unbind(\"mouseup.\" + self.getName());\n });\n if (mouseDown === true) {\n return;\n }\n if (!self.isEnabled() || (self.isOnce() && self.isSelected())) {\n return;\n }\n interval = setInterval(function () {\n if (self.isEnabled()) {\n self.doClick();\n }\n }, 180);\n mouseDown = true;\n ev(e);\n });\n break;\n default:\n if (o.stopEvent || o.stopPropagation) {\n hand.mousedown(function (e) {\n ev(e);\n });\n }\n hand.click(clk);\n break;\n }\n });\n\n // 之后的300ms点击无效\n var onClick = BI.debounce(this._doClick, BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n });\n\n function ev (e) {\n if (o.stopEvent) {\n e.stopEvent();\n }\n if (o.stopPropagation) {\n e.stopPropagation();\n }\n }\n\n function clk (e) {\n ev(e);\n if (!self.isEnabled() || (self.isOnce() && self.isSelected())) {\n return;\n }\n if (BI.isKey(o.bubble) || BI.isFunction(o.bubble)) {\n if (BI.isNull(self.combo)) {\n var popup;\n BI.createWidget({\n type: \"bi.absolute\",\n element: self,\n items: [{\n el: {\n type: \"bi.bubble_combo\",\n trigger: \"\",\n // bubble的提示不需要一直存在在界面上\n destroyWhenHide: true,\n ref: function () {\n self.combo = this;\n },\n el: {\n type: \"bi.layout\",\n height: \"100%\"\n },\n popup: {\n type: \"bi.text_bubble_bar_popup_view\",\n text: getBubble(),\n ref: function () {\n popup = this;\n },\n listeners: [{\n eventName: BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON,\n action: function (v) {\n self.combo.hideView();\n if (v) {\n onClick.apply(self, arguments);\n }\n }\n }]\n },\n listeners: [{\n eventName: BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW,\n action: function () {\n popup.populate(getBubble());\n }\n }]\n },\n left: 0,\n right: 0,\n bottom: 0,\n top: 0\n }]\n });\n }\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n return;\n }\n onClick.apply(self, arguments);\n }\n\n function getBubble () {\n var bubble = self.options.bubble;\n if (BI.isFunction(bubble)) {\n return bubble();\n }\n return bubble;\n }\n },\n\n _trigger: function (e) {\n var o = this.options;\n if (!this.isEnabled()) {\n return;\n }\n if (!this.isDisableSelected()) {\n this.isForceSelected() ? this.setSelected(true) :\n (this.isForceNotSelected() ? this.setSelected(false) :\n this.setSelected(!this.isSelected()));\n }\n if (this.isValid()) {\n o.handler.call(this, this.getValue(), this, e);\n var v = this.getValue();\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, v, this, e);\n this.fireEvent(BI.BasicButton.EVENT_CHANGE, v, this);\n if (o.action) {\n BI.Actions.runAction(o.action, \"click\", o, this);\n }\n BI.Actions.runGlobalAction(\"click\", o, this);\n }\n },\n\n _doClick: function (e) {\n if (this.isValid()) {\n this.beforeClick(e);\n }\n this._trigger(e);\n if (this.isValid()) {\n this.doClick(e);\n }\n },\n\n beforeClick: function () {\n\n },\n\n doClick: function () {\n\n },\n\n handle: function () {\n return this;\n },\n\n hover: function () {\n this._hover = true;\n this.handle().element.addClass(\"hover\");\n if (this.options.shadow) {\n this.$mask && this.$mask.setVisible(true);\n }\n },\n\n dishover: function () {\n this._hover = false;\n this.handle().element.removeClass(\"hover\");\n if (this.options.shadow) {\n this.$mask && this.$mask.setVisible(false);\n }\n },\n\n setSelected: function (b) {\n var o = this.options;\n o.selected = b;\n if (b) {\n this.handle().element.addClass(\"active\");\n } else {\n this.handle().element.removeClass(\"active\");\n }\n if (o.shadow && !o.isShadowShowingOnSelected) {\n this.$mask && this.$mask.setVisible(false);\n }\n },\n\n isSelected: function () {\n return this.options.selected;\n },\n\n isOnce: function () {\n return this.options.once;\n },\n\n isForceSelected: function () {\n return this.options.forceSelected;\n },\n\n isForceNotSelected: function () {\n return this.options.forceNotSelected;\n },\n\n isDisableSelected: function () {\n return this.options.disableSelected;\n },\n\n setText: function (text) {\n this.options.text = text;\n },\n\n getText: function () {\n return this.options.text;\n },\n\n _setEnable: function (enable) {\n BI.BasicButton.superclass._setEnable.apply(this, arguments);\n if (enable === true) {\n this.element.removeClass(\"base-disabled disabled\");\n } else if (enable === false) {\n this.element.addClass(\"base-disabled disabled\");\n }\n if (!enable) {\n if (this.options.shadow) {\n this.$mask && this.$mask.setVisible(false);\n }\n }\n },\n\n empty: function () {\n BI.Widget._renderEngine.createElement(document).unbind(\"mouseup.\" + this.getName());\n BI.BasicButton.superclass.empty.apply(this, arguments);\n },\n\n destroy: function () {\n BI.BasicButton.superclass.destroy.apply(this, arguments);\n }\n});\nBI.BasicButton.EVENT_CHANGE = \"BasicButton.EVENT_CHANGE\";/**\n * 表示一个可以展开的节点, 不仅有选中状态而且有展开状态\n *\n * Created by GUY on 2015/9/9.\n * @class BI.NodeButton\n * @extends BI.BasicButton\n * @abstract\n */\nBI.NodeButton = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n var conf = BI.NodeButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend( conf, {\n _baseCls: (conf._baseCls || \"\") + \" bi-node\",\n open: false\n });\n },\n\n _init: function () {\n BI.NodeButton.superclass._init.apply(this, arguments);\n var self = this;\n BI.nextTick(function () {\n self.setOpened(self.isOpened());\n });\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n this.setOpened(!this.isOpened());\n },\n\n isOnce: function () {\n return false;\n },\n\n isOpened: function () {\n return !!this.options.open;\n },\n\n setOpened: function (b) {\n this.options.open = !!b;\n },\n\n triggerCollapse: function () {\n if(this.isOpened()) {\n this.setOpened(false);\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, this.getValue(), this);\n }\n },\n\n triggerExpand: function () {\n if(!this.isOpened()) {\n this.setOpened(true);\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, this.getValue(), this);\n }\n }\n});/**\n * guy\n * tip提示\n * zIndex在10亿级别\n * @class BI.Tip\n * @extends BI.Single\n * @abstract\n */\nBI.Tip = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.Tip.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n _baseCls: (conf._baseCls || \"\") + \" bi-tip\",\n zIndex: BI.zIndex_tip\n });\n },\n\n _init: function () {\n BI.Tip.superclass._init.apply(this, arguments);\n this.element.css({zIndex: this.options.zIndex});\n }\n});/**\n * Created by GUY on 2015/6/26.\n * @class BI.ButtonGroup\n * @extends BI.Widget\n */\n\nBI.ButtonGroup = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.ButtonGroup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-button-group\",\n behaviors: {},\n items: [],\n value: \"\",\n chooseType: BI.Selection.Single,\n layouts: [{\n type: \"bi.center\",\n hgap: 0,\n vgap: 0\n }]\n });\n },\n\n _init: function () {\n BI.ButtonGroup.superclass._init.apply(this, arguments);\n var o = this.options;\n var behaviors = {};\n BI.each(o.behaviors, function (key, rule) {\n behaviors[key] = BI.BehaviorFactory.createBehavior(key, {\n rule: rule\n });\n });\n this.behaviors = behaviors;\n this.populate(o.items);\n if(BI.isKey(o.value) || BI.isNotEmptyArray(o.value)){\n this.setValue(o.value);\n }\n },\n\n _createBtns: function (items) {\n var o = this.options;\n return BI.createWidgets(BI.createItems(items, {\n type: \"bi.text_button\"\n }));\n },\n\n _btnsCreator: function (items) {\n var self = this, args = Array.prototype.slice.call(arguments), o = this.options;\n var buttons = this._createBtns(items);\n args[0] = buttons;\n\n BI.each(this.behaviors, function (i, behavior) {\n behavior.doBehavior.apply(behavior, args);\n });\n BI.each(buttons, function (i, btn) {\n btn.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (type === BI.Events.CLICK) {\n switch (o.chooseType) {\n case BI.ButtonGroup.CHOOSE_TYPE_SINGLE:\n self.setValue(btn.getValue());\n break;\n case BI.ButtonGroup.CHOOSE_TYPE_NONE:\n self.setValue([]);\n break;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.fireEvent(BI.ButtonGroup.EVENT_CHANGE, value, obj);\n } else {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n });\n btn.on(BI.Events.DESTROY, function () {\n BI.remove(self.buttons, btn);\n });\n });\n\n return buttons;\n },\n\n _packageBtns: function (btns) {\n var o = this.options;\n for (var i = o.layouts.length - 1; i > 0; i--) {\n btns = BI.map(btns, function (k, it) {\n return BI.extend({}, o.layouts[i], {\n items: [\n BI.extend({}, o.layouts[i].el, {\n el: it\n })\n ]\n });\n });\n }\n return btns;\n },\n\n _packageSimpleItems: function (btns) {\n var o = this.options;\n return BI.map(o.items, function (i, item) {\n if (BI.stripEL(item) === item) {\n return btns[i];\n }\n return BI.extend({}, item, {\n el: btns[i]\n });\n });\n },\n\n _packageItems: function (items, packBtns) {\n return BI.createItems(BI.makeArrayByArray(items, {}), BI.clone(packBtns));\n },\n\n _packageLayout: function (items) {\n var o = this.options, layout = BI.deepClone(o.layouts[0]);\n\n var lay = BI.formatEL(layout).el;\n while (lay && lay.items && !BI.isEmpty(lay.items)) {\n lay = BI.formatEL(lay.items[0]).el;\n }\n lay.items = items;\n return layout;\n },\n\n // 如果是一个简单的layout\n _isSimpleLayout: function () {\n var o = this.options;\n return o.layouts.length === 1 && !BI.isArray(o.items[0]);\n },\n\n doBehavior: function () {\n var args = Array.prototype.slice.call(arguments);\n args.unshift(this.buttons);\n BI.each(this.behaviors, function (i, behavior) {\n behavior.doBehavior.apply(behavior, args);\n });\n },\n\n prependItems: function (items) {\n var o = this.options;\n var btns = this._btnsCreator.apply(this, arguments);\n this.buttons = BI.concat(btns, this.buttons);\n\n if (this._isSimpleLayout() && this.layouts && this.layouts.prependItems) {\n this.layouts.prependItems(btns);\n return;\n }\n\n items = this._packageItems(items, this._packageBtns(btns));\n this.layouts.prependItems(this._packageLayout(items).items);\n },\n\n addItems: function (items) {\n var o = this.options;\n var btns = this._btnsCreator.apply(this, arguments);\n this.buttons = BI.concat(this.buttons, btns);\n\n // 如果是一个简单的layout\n if (this._isSimpleLayout() && this.layouts && this.layouts.addItems) {\n this.layouts.addItems(btns);\n return;\n }\n\n items = this._packageItems(items, this._packageBtns(btns));\n this.layouts.addItems(this._packageLayout(items).items);\n },\n\n removeItemAt: function (indexes) {\n BI.removeAt(this.buttons, indexes);\n this.layouts.removeItemAt(indexes);\n },\n\n removeItems: function (values) {\n values = BI.isArray(values) ? values : [values];\n var deleted = [];\n BI.each(this.buttons, function (i, button) {\n if (BI.deepContains(values, button.getValue())) {\n deleted.push(i);\n }\n });\n BI.removeAt(this.buttons, deleted);\n this.layouts.removeItemAt(deleted);\n },\n\n populate: function (items) {\n items = items || [];\n this.empty();\n this.options.items = items;\n\n this.buttons = this._btnsCreator.apply(this, arguments);\n if (this._isSimpleLayout()) {\n items = this._packageSimpleItems(this.buttons);\n } else {\n items = this._packageItems(items, this._packageBtns(this.buttons));\n }\n\n this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items)));\n },\n\n setNotSelectedValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n BI.each(this.buttons, function (i, item) {\n if (BI.deepContains(v, item.getValue())) {\n item.setSelected && item.setSelected(false);\n } else {\n item.setSelected && item.setSelected(true);\n }\n });\n },\n\n setEnabledValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n BI.each(this.buttons, function (i, item) {\n if (BI.deepContains(v, item.getValue())) {\n item.setEnable(true);\n } else {\n item.setEnable(false);\n }\n });\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n BI.each(this.buttons, function (i, item) {\n if (BI.deepContains(v, item.getValue())) {\n item.setSelected && item.setSelected(true);\n } else {\n item.setSelected && item.setSelected(false);\n }\n });\n },\n\n getNotSelectedValue: function () {\n var v = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isEnabled() && !(item.isSelected && item.isSelected())) {\n v.push(item.getValue());\n }\n });\n return v;\n },\n\n getValue: function () {\n var v = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isEnabled() && item.isSelected && item.isSelected()) {\n v.push(item.getValue());\n }\n });\n return v;\n },\n\n getAllButtons: function () {\n return this.buttons;\n },\n\n getAllLeaves: function () {\n return this.buttons;\n },\n\n getSelectedButtons: function () {\n var btns = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isSelected && item.isSelected()) {\n btns.push(item);\n }\n });\n return btns;\n },\n\n getNotSelectedButtons: function () {\n var btns = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isSelected && !item.isSelected()) {\n btns.push(item);\n }\n });\n return btns;\n },\n\n getIndexByValue: function (value) {\n var index = -1;\n BI.any(this.buttons, function (i, item) {\n if (item.isEnabled() && item.getValue() === value) {\n index = i;\n return true;\n }\n });\n return index;\n },\n\n getNodeById: function (id) {\n var node;\n BI.any(this.buttons, function (i, item) {\n if (item.isEnabled() && item.options.id === id) {\n node = item;\n return true;\n }\n });\n return node;\n },\n\n getNodeByValue: function (value) {\n var node;\n BI.any(this.buttons, function (i, item) {\n if (item.isEnabled() && item.getValue() === value) {\n node = item;\n return true;\n }\n });\n return node;\n },\n\n empty: function () {\n BI.ButtonGroup.superclass.empty.apply(this, arguments);\n this.options.items = [];\n },\n\n destroy: function () {\n BI.ButtonGroup.superclass.destroy.apply(this, arguments);\n this.options.items = [];\n }\n});\nBI.extend(BI.ButtonGroup, {\n CHOOSE_TYPE_SINGLE: BI.Selection.Single,\n CHOOSE_TYPE_MULTI: BI.Selection.Multi,\n CHOOSE_TYPE_ALL: BI.Selection.All,\n CHOOSE_TYPE_NONE: BI.Selection.None,\n CHOOSE_TYPE_DEFAULT: BI.Selection.Default\n});\nBI.ButtonGroup.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.button_group\", BI.ButtonGroup);/**\n * Created by GUY on 2015/8/10.\n * @class BI.ButtonTree\n * @extends BI.ButtonGroup\n */\n\nBI.ButtonTree = BI.inherit(BI.ButtonGroup, {\n _defaultConfig: function () {\n return BI.extend(BI.ButtonTree.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-button-tree\"\n });\n },\n\n _init: function () {\n BI.ButtonTree.superclass._init.apply(this, arguments);\n },\n\n setNotSelectedValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n BI.each(this.buttons, function (i, item) {\n if (!BI.isFunction(item.setSelected)) {\n item.setNotSelectedValue(v);\n return;\n }\n if (BI.deepContains(v, item.getValue())) {\n item.setSelected(false);\n } else {\n item.setSelected(true);\n }\n });\n },\n\n setEnabledValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n BI.each(this.buttons, function (i, item) {\n if (BI.isFunction(item.setEnabledValue)) {\n item.setEnabledValue(v);\n return;\n }\n if (BI.deepContains(v, item.getValue())) {\n item.setEnable(true);\n } else {\n item.setEnable(false);\n }\n });\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n BI.each(this.buttons, function (i, item) {\n if (!BI.isFunction(item.setSelected)) {\n item.setValue(v);\n return;\n }\n if (BI.deepContains(v, item.getValue())) {\n item.setSelected(true);\n } else {\n item.setSelected(false);\n }\n });\n },\n\n getNotSelectedValue: function () {\n var v = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isEnabled() && !BI.isFunction(item.setSelected)) {\n v = BI.concat(v, item.getNotSelectedValue());\n return;\n }\n if (item.isEnabled() && item.isSelected && !item.isSelected()) {\n v.push(item.getValue());\n }\n });\n return v;\n },\n\n getValue: function () {\n var v = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isEnabled() && !BI.isFunction(item.setSelected)) {\n v = BI.concat(v, item.getValue());\n return;\n }\n if (item.isEnabled() && item.isSelected && item.isSelected()) {\n v.push(item.getValue());\n }\n });\n return v;\n },\n\n getSelectedButtons: function () {\n var btns = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isEnabled() && !BI.isFunction(item.setSelected)) {\n btns = btns.concat(item.getSelectedButtons());\n return;\n }\n if (item.isSelected && item.isSelected()) {\n btns.push(item);\n }\n });\n return btns;\n },\n\n getNotSelectedButtons: function () {\n var btns = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isEnabled() && !BI.isFunction(item.setSelected)) {\n btns = btns.concat(item.getNotSelectedButtons());\n return;\n }\n if (item.isSelected && !item.isSelected()) {\n btns.push(item);\n }\n });\n return btns;\n },\n\n // 获取所有的叶子节点\n getAllLeaves: function () {\n var leaves = [];\n BI.each(this.buttons, function (i, item) {\n if (item.isEnabled() && !BI.isFunction(item.setSelected)) {\n leaves = leaves.concat(item.getAllLeaves());\n return;\n }\n if (item.isEnabled()) {\n leaves.push(item);\n }\n });\n return leaves;\n },\n\n getIndexByValue: function (value) {\n var index = -1;\n BI.any(this.buttons, function (i, item) {\n var vs = item.getValue();\n if (item.isEnabled() && (vs === value || BI.contains(vs, value))) {\n index = i;\n return true;\n }\n });\n return index;\n },\n\n getNodeById: function (id) {\n var node;\n BI.any(this.buttons, function (i, item) {\n if (item.isEnabled()) {\n if (item.attr(\"id\") === id) {\n node = item;\n return true;\n } else if (BI.isFunction(item.getNodeById)) {\n if (node = item.getNodeById(id)) {\n return true;\n }\n }\n }\n });\n return node;\n },\n\n getNodeByValue: function (value) {\n var node;\n BI.any(this.buttons, function (i, item) {\n if (item.isEnabled()) {\n if (BI.isFunction(item.getNodeByValue)) {\n if (node = item.getNodeByValue(value)) {\n return true;\n }\n } else if (item.attr(\"value\") === value) {\n node = item;\n return true;\n }\n }\n });\n return node;\n }\n});\nBI.ButtonTree.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.button_tree\", BI.ButtonTree);/**\n * guy\n * 异步树\n * @class BI.TreeView\n * @extends BI.Pane\n */\nBI.TreeView = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n return BI.extend(BI.TreeView.superclass._defaultConfig.apply(this, arguments), {\n _baseCls: \"bi-tree\",\n paras: {\n selectedValues: {}\n },\n itemsCreator: BI.emptyFn\n });\n },\n _init: function () {\n BI.TreeView.superclass._init.apply(this, arguments);\n var o = this.options;\n this._stop = false;\n\n this._createTree();\n this.tip = BI.createWidget({\n type: \"bi.loading_bar\",\n invisible: true,\n handler: BI.bind(this._loadMore, this)\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrollable: true,\n scrolly: false,\n element: this,\n items: [this.tip]\n });\n if(BI.isNotNull(o.value)) {\n this.setSelectedValue(o.value);\n }\n if (BI.isIE9Below && BI.isIE9Below()) {\n this.element.addClass(\"hack\");\n }\n },\n\n _createTree: function () {\n this.id = \"bi-tree\" + BI.UUID();\n if (this.nodes) {\n this.nodes.destroy();\n }\n if (this.tree) {\n this.tree.destroy();\n }\n this.tree = BI.createWidget({\n type: \"bi.layout\",\n element: \"<ul id='\" + this.id + \"' class='ztree'></ul>\"\n });\n BI.createWidget({\n type: \"bi.default\",\n element: this.element,\n items: [this.tree]\n });\n },\n\n // 选择节点触发方法\n _selectTreeNode: function (treeId, treeNode) {\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, treeNode, this);\n this.fireEvent(BI.TreeView.EVENT_CHANGE, treeNode, this);\n },\n\n // 配置属性\n _configSetting: function () {\n var paras = this.options.paras;\n var self = this;\n var setting = {\n async: {\n enable: true,\n url: getUrl,\n autoParam: [\"id\", \"name\"], // 节点展开异步请求自动提交id和name\n otherParam: BI.cjkEncodeDO(paras) // 静态参数\n },\n check: {\n enable: true\n },\n data: {\n key: {\n title: \"title\",\n name: \"text\" // 节点的name属性替换成text\n },\n simpleData: {\n enable: true // 可以穿id,pid属性的对象数组\n }\n },\n view: {\n showIcon: false,\n expandSpeed: \"\",\n nameIsHTML: true, // 节点可以用html标签代替\n dblClickExpand: false\n },\n callback: {\n beforeExpand: beforeExpand,\n onAsyncSuccess: onAsyncSuccess,\n onAsyncError: onAsyncError,\n beforeCheck: beforeCheck,\n onCheck: onCheck,\n onExpand: onExpand,\n onCollapse: onCollapse,\n onClick: onClick\n }\n };\n var className = \"dark\", perTime = 100;\n\n function onClick (event, treeId, treeNode) {\n // 当前点击节点的状态是半选,且为true_part, 则将其改为false_part,使得点击半选后切换到的是全选\n var checked = treeNode.checked;\n var status = treeNode.getCheckStatus();\n if(status.half === true && status.checked === true) {\n checked = false;\n }\n // 更新此node的check状态, 影响父子关联,并调用beforeCheck和onCheck回调\n self.nodes.checkNode(treeNode, !checked, true, true);\n }\n\n function getUrl (treeId, treeNode) {\n var parentNode = self._getParentValues(treeNode);\n treeNode.times = treeNode.times || 1;\n var param = \"id=\" + treeNode.id\n + \"×=\" + (treeNode.times++)\n + \"&parentValues= \" + _global.encodeURIComponent(BI.jsonEncode(parentNode))\n + \"&checkState=\" + _global.encodeURIComponent(BI.jsonEncode(treeNode.getCheckStatus()));\n\n return \"&\" + param;\n }\n\n function beforeExpand (treeId, treeNode) {\n if (!treeNode.isAjaxing) {\n if (!treeNode.children) {\n treeNode.times = 1;\n ajaxGetNodes(treeNode, \"refresh\");\n }\n return true;\n }\n BI.Msg.toast(\"Please Wait。\", \"warning\"); // 不展开节点,也不触发onExpand事件\n return false;\n\n }\n\n function onAsyncSuccess (event, treeId, treeNode, msg) {\n treeNode.halfCheck = false;\n if (!msg || msg.length === 0 || /^<html>[\\s,\\S]*<\\/html>$/gi.test(msg) || self._stop) {\n return;\n }\n var zTree = self.nodes;\n var totalCount = treeNode.count || 0;\n\n // 尝试去获取下一组节点,若获取值为空数组,表示获取完成\n // TODO by GUY\n if (treeNode.children.length > totalCount) {\n treeNode.count = treeNode.children.length;\n BI.delay(function () {\n ajaxGetNodes(treeNode);\n }, perTime);\n } else {\n // treeNode.icon = \"\";\n zTree.updateNode(treeNode);\n zTree.selectNode(treeNode.children[0]);\n // className = (className === \"dark\" ? \"\":\"dark\");\n }\n }\n\n function onAsyncError (event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {\n var zTree = self.nodes;\n BI.Msg.toast(\"Error!\", \"warning\");\n // treeNode.icon = \"\";\n // zTree.updateNode(treeNode);\n }\n\n function ajaxGetNodes (treeNode, reloadType) {\n var zTree = self.nodes;\n if (reloadType == \"refresh\") {\n zTree.updateNode(treeNode); // 刷新一下当前节点,如果treeNode.xxx被改了的话\n }\n zTree.reAsyncChildNodes(treeNode, reloadType, true); // 强制加载子节点,reloadType === refresh为先清空再加载,否则为追加到现有子节点之后\n }\n\n function beforeCheck (treeId, treeNode) {\n treeNode.halfCheck = false;\n if (treeNode.checked === true) {\n // 将展开的节点halfCheck设为false,解决展开节点存在halfCheck=true的情况 guy\n // 所有的半选状态都需要取消halfCheck=true的情况\n function track (children) {\n BI.each(children, function (i, ch) {\n if (ch.halfCheck === true) {\n ch.halfCheck = false;\n track(ch.children);\n }\n });\n }\n\n track(treeNode.children);\n var treeObj = self.nodes;\n var nodes = treeObj.getSelectedNodes();\n BI.$.each(nodes, function (index, node) {\n node.halfCheck = false;\n });\n }\n var status = treeNode.getCheckStatus();\n // 当前点击节点的状态是半选,且为true_part, 则将其改为false_part,使得点击半选后切换到的是全选\n if(status.half === true && status.checked === true) {\n treeNode.checked = false;\n }\n }\n\n function onCheck (event, treeId, treeNode) {\n self._selectTreeNode(treeId, treeNode);\n }\n\n function onExpand (event, treeId, treeNode) {\n treeNode.halfCheck = false;\n }\n\n function onCollapse (event, treeId, treeNode) {\n }\n\n return setting;\n },\n\n _getParentValues: function (treeNode) {\n if (!treeNode.getParentNode()) {\n return [];\n }\n var parentNode = treeNode.getParentNode();\n var result = this._getParentValues(parentNode);\n result = result.concat([this._getNodeValue(parentNode)]);\n return result;\n },\n\n _getNodeValue: function (node) {\n // 去除标红\n return node.value == null ? BI.replaceAll(node.text.replace(/<[^>]+>/g, \"\"), \" \", \" \") : node.value;\n },\n\n // 获取半选框值\n _getHalfSelectedValues: function (map, node) {\n var self = this;\n var checkState = node.getCheckStatus();\n // 将未选的去掉\n if (checkState.checked === false && checkState.half === false) {\n return;\n }\n // 如果节点已展开,并且是半选\n if (BI.isNotEmptyArray(node.children) && checkState.half === true) {\n var children = node.children;\n BI.each(children, function (i, ch) {\n self._getHalfSelectedValues(map, ch);\n });\n return;\n }\n var parent = node.parentValues || self._getParentValues(node);\n var path = parent.concat(this._getNodeValue(node));\n // 当前节点是全选的,因为上面的判断已经排除了不选和半选\n if (BI.isNotEmptyArray(node.children) || checkState.half === false) {\n this._buildTree(map, path);\n return;\n }\n // 剩下的就是半选不展开的节点,因为不知道里面是什么情况,所以借助selectedValues(这个是完整的选中情况)\n var storeValues = BI.deepClone(this.options.paras.selectedValues);\n var treeNode = this._getTree(storeValues, path);\n this._addTreeNode(map, parent, this._getNodeValue(node), treeNode);\n },\n\n // 获取的是以values最后一个节点为根的子树\n _getTree: function (map, values) {\n var cur = map;\n BI.any(values, function (i, value) {\n if (cur[value] == null) {\n return true;\n }\n cur = cur[value];\n });\n return cur;\n },\n\n // 以values为path一路向里补充map, 并在末尾节点添加key: value节点\n _addTreeNode: function (map, values, key, value) {\n var cur = map;\n BI.each(values, function (i, value) {\n if (cur[value] == null) {\n cur[value] = {};\n }\n cur = cur[value];\n });\n cur[key] = value;\n },\n\n // 构造树节点\n _buildTree: function (map, values) {\n var cur = map;\n BI.each(values, function (i, value) {\n if (cur[value] == null) {\n cur[value] = {};\n }\n cur = cur[value];\n });\n },\n\n // 获取选中的值\n _getSelectedValues: function () {\n var self = this;\n var hashMap = {};\n var rootNoots = this.nodes.getNodes();\n track(rootNoots); // 可以看到这个方法没有递归调用,所以在_getHalfSelectedValues中需要关心全选的节点\n function track (nodes) {\n BI.each(nodes, function (i, node) {\n var checkState = node.getCheckStatus();\n if (checkState.checked === true || checkState.half === true) {\n if (checkState.half === true) {\n self._getHalfSelectedValues(hashMap, node);\n } else {\n var parentValues = node.parentValues || self._getParentValues(node);\n var values = parentValues.concat([self._getNodeValue(node)]);\n self._buildTree(hashMap, values);\n }\n }\n });\n }\n\n return hashMap;\n },\n\n // 处理节点\n _dealWidthNodes: function (nodes) {\n var self = this, o = this.options;\n var ns = BI.Tree.arrayFormat(nodes);\n BI.each(ns, function (i, n) {\n n.title = n.title || n.text || n.value;\n n.isParent = n.isParent || n.parent;\n // 处理标红\n if (BI.isKey(o.paras.keyword)) {\n n.text = BI.$(\"<div>\").__textKeywordMarked__(n.text, o.paras.keyword, n.py).html();\n } else {\n n.text = BI.htmlEncode(n.text + \"\");\n }\n });\n return nodes;\n },\n\n _loadMore: function () {\n var self = this, o = this.options;\n this.tip.setLoading();\n var op = BI.extend({}, o.paras, {\n times: ++this.times\n });\n o.itemsCreator(op, function (res) {\n if (self._stop === true) {\n return;\n }\n var hasNext = !!res.hasNext, nodes = res.items || [];\n\n if (!hasNext) {\n self.tip.setEnd();\n } else {\n self.tip.setLoaded();\n }\n if (nodes.length > 0) {\n self.nodes.addNodes(null, self._dealWidthNodes(nodes));\n }\n });\n },\n\n // 生成树内部方法\n _initTree: function (setting) {\n var self = this, o = this.options;\n self.fireEvent(BI.Events.INIT);\n this.times = 1;\n var tree = this.tree;\n tree.empty();\n this.loading();\n this.tip.setVisible(false);\n var callback = function (nodes) {\n if (self._stop === true) {\n return;\n }\n self.nodes = BI.$.fn.zTree.init(tree.element, setting, nodes);\n };\n var op = BI.extend({}, o.paras, {\n times: 1\n });\n\n o.itemsCreator(op, function (res) {\n if (self._stop === true) {\n return;\n }\n var hasNext = !!res.hasNext, nodes = res.items || [];\n if (nodes.length > 0) {\n callback(self._dealWidthNodes(nodes));\n }\n self.setTipVisible(nodes.length <= 0);\n self.loaded();\n if (!hasNext) {\n self.tip.invisible();\n } else {\n self.tip.setLoaded();\n }\n op.times === 1 && self.fireEvent(BI.Events.AFTERINIT);\n });\n },\n\n // 构造树结构,\n initTree: function (nodes, setting) {\n var setting = setting || {\n async: {\n enable: false\n },\n check: {\n enable: false\n },\n data: {\n key: {\n title: \"title\",\n name: \"text\"\n },\n simpleData: {\n enable: true\n }\n },\n view: {\n showIcon: false,\n expandSpeed: \"\",\n nameIsHTML: true\n },\n callback: {}\n };\n this.nodes = BI.$.fn.zTree.init(this.tree.element, setting, nodes);\n },\n\n start: function () {\n this._stop = false;\n },\n\n stop: function () {\n this._stop = true;\n },\n\n // 生成树方法\n stroke: function (config) {\n delete this.options.keyword;\n BI.extend(this.options.paras, config);\n var setting = this._configSetting();\n this._createTree();\n this.start();\n this._initTree(setting);\n },\n\n populate: function () {\n this.stroke.apply(this, arguments);\n },\n\n hasChecked: function () {\n var treeObj = this.nodes;\n return treeObj.getCheckedNodes(true).length > 0;\n },\n\n checkAll: function (checked) {\n function setNode (children) {\n BI.each(children, function (i, child) {\n child.halfCheck = false;\n setNode(child.children);\n });\n }\n\n if (!this.nodes) {\n return;\n }\n\n BI.each(this.nodes.getNodes(), function (i, node) {\n node.halfCheck = false;\n setNode(node.children);\n });\n this.nodes.checkAllNodes(checked);\n },\n\n expandAll: function (flag) {\n this.nodes && this.nodes.expandAll(flag);\n },\n\n // 设置树节点的状态\n setValue: function (value, param) {\n this.checkAll(false);\n this.updateValue(value, param);\n this.refresh();\n },\n\n setSelectedValue: function (value) {\n this.options.paras.selectedValues = BI.deepClone(value || {});\n },\n\n updateValue: function (values, param) {\n if (!this.nodes) {\n return;\n }\n param || (param = \"value\");\n var treeObj = this.nodes;\n BI.each(values, function (v, op) {\n var nodes = treeObj.getNodesByParam(param, v, null);\n BI.each(nodes, function (j, node) {\n BI.extend(node, {checked: true}, op);\n treeObj.updateNode(node);\n });\n });\n },\n\n refresh: function () {\n this.nodes && this.nodes.refresh();\n },\n\n getValue: function () {\n if (!this.nodes) {\n return null;\n }\n return this._getSelectedValues();\n },\n\n destroyed: function () {\n this.stop();\n this.nodes && this.nodes.destroy();\n }\n});\nBI.extend(BI.TreeView, {\n REQ_TYPE_INIT_DATA: 1,\n REQ_TYPE_ADJUST_DATA: 2,\n REQ_TYPE_SELECT_DATA: 3,\n REQ_TYPE_GET_SELECTED_DATA: 4\n});\n\nBI.TreeView.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.TreeView.EVENT_INIT = BI.Events.INIT;\nBI.TreeView.EVENT_AFTERINIT = BI.Events.AFTERINIT;\n\nBI.shortcut(\"bi.tree_view\", BI.TreeView);/**\n * guy\n * 同步树\n * @class BI.AsyncTree\n * @extends BI.TreeView\n */\nBI.AsyncTree = BI.inherit(BI.TreeView, {\n _defaultConfig: function () {\n return BI.extend(BI.AsyncTree.superclass._defaultConfig.apply(this, arguments), {});\n },\n _init: function () {\n BI.AsyncTree.superclass._init.apply(this, arguments);\n },\n\n // 配置属性\n _configSetting: function () {\n var paras = this.options.paras;\n var self = this;\n var setting = {\n async: {\n enable: false, // 很明显这棵树把异步请求关掉了,所有的异步请求都是手动控制的\n otherParam: BI.cjkEncodeDO(paras)\n },\n check: {\n enable: true\n },\n data: {\n key: {\n title: \"title\",\n name: \"text\"\n },\n simpleData: {\n enable: true\n }\n },\n view: {\n showIcon: false,\n expandSpeed: \"\",\n nameIsHTML: true,\n dblClickExpand: false\n },\n callback: {\n beforeCheck: beforeCheck,\n onCheck: onCheck,\n beforeExpand: beforeExpand,\n onExpand: onExpand,\n onCollapse: onCollapse,\n onClick: onClick\n }\n };\n\n function onClick (event, treeId, treeNode) {\n var zTree = BI.$.fn.zTree.getZTreeObj(treeId);\n // 当前点击节点的状态是半选,且为true_part, 则将其改为false_part,使得点击半选后切换到的是全选\n var checked = treeNode.checked;\n var status = treeNode.getCheckStatus();\n if (status.half === true && status.checked === true) {\n checked = false;\n }\n zTree.checkNode(treeNode, !checked, true, true);\n }\n\n function beforeCheck (treeId, treeNode) {\n treeNode.halfCheck = false;\n if (treeNode.checked === true) {\n // 将展开的节点halfCheck设为false,解决展开节点存在halfCheck=true的情况 guy\n // 所有的半选状态都需要取消halfCheck=true的情况\n function track (children) {\n BI.each(children, function (i, ch) {\n if (ch.halfCheck === true) {\n ch.halfCheck = false;\n track(ch.children);\n }\n });\n }\n\n track(treeNode.children);\n\n var treeObj = BI.$.fn.zTree.getZTreeObj(treeId);\n var nodes = treeObj.getSelectedNodes();\n BI.each(nodes, function (index, node) {\n node.halfCheck = false;\n });\n }\n var status = treeNode.getCheckStatus();\n // 当前点击节点的状态是半选,且为true_part, 则将其改为false_part,使得点击半选后切换到的是全选\n if (status.half === true && status.checked === true) {\n treeNode.checked = false;\n }\n }\n\n function beforeExpand (treeId, treeNode) {\n self._beforeExpandNode(treeId, treeNode);\n }\n\n function onCheck (event, treeId, treeNode) {\n self._selectTreeNode(treeId, treeNode);\n }\n\n function onExpand (event, treeId, treeNode) {\n treeNode.halfCheck = false;\n }\n\n function onCollapse (event, treeId, treeNode) {\n treeNode.halfCheck = false;\n }\n\n return setting;\n },\n\n // 用来更新this.options.paras.selectedValues, 和ztree内部无关\n _selectTreeNode: function (treeId, treeNode) {\n var self = this, o = this.options;\n var parentValues = BI.deepClone(treeNode.parentValues || self._getParentValues(treeNode));\n var name = this._getNodeValue(treeNode);\n // var values = parentValues.concat([name]);\n if (treeNode.checked === true) {\n this._addTreeNode(this.options.paras.selectedValues, parentValues, name, {});\n } else {\n var tNode = treeNode;\n var pNode = this._getTree(this.options.paras.selectedValues, parentValues);\n if (BI.isNotNull(pNode[name])) {\n delete pNode[name];\n }\n while (tNode != null && BI.isEmpty(pNode)) {\n parentValues = parentValues.slice(0, parentValues.length - 1);\n tNode = tNode.getParentNode();\n if (tNode != null) {\n pNode = this._getTree(this.options.paras.selectedValues, parentValues);\n name = this._getNodeValue(tNode);\n delete pNode[name];\n }\n }\n }\n BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments);\n },\n\n // 展开节点\n _beforeExpandNode: function (treeId, treeNode) {\n var self = this, o = this.options;\n var parentValues = treeNode.parentValues || self._getParentValues(treeNode);\n var op = BI.extend({}, o.paras, {\n id: treeNode.id,\n times: 1,\n parentValues: parentValues.concat(this._getNodeValue(treeNode)),\n checkState: treeNode.getCheckStatus()\n });\n var complete = function (d) {\n var nodes = d.items || [];\n if (nodes.length > 0) {\n callback(self._dealWidthNodes(nodes), !!d.hasNext);\n }\n };\n var times = 1;\n\n function callback (nodes, hasNext) {\n self.nodes.addNodes(treeNode, nodes);\n // 展开节点是没有分页的\n if (hasNext === true) {\n BI.delay(function () {\n times++;\n op.times = times;\n o.itemsCreator(op, complete);\n }, 100);\n }\n }\n\n if (!treeNode.children) {\n setTimeout(function () {\n o.itemsCreator(op, complete);\n }, 17);\n }\n },\n\n // a,b 两棵树\n // a->b b->a 做两次校验, 构造一个校验后的map\n // e.g. 以a为基准,如果b没有此节点,则在map中添加。 如b有,且是全选的, 则在map中构造全选(为什么不添加a的值呢? 因为这次是取并集), 如果b中也有和a一样的存值,就递归\n _join: function (valueA, valueB) {\n var self = this;\n var map = {};\n track([], valueA, valueB);\n track([], valueB, valueA);\n\n function track (parent, node, compare) {\n BI.each(node, function (n, item) {\n if (BI.isNull(compare[n])) {\n self._addTreeNode(map, parent, n, item);\n } else if (BI.isEmpty(compare[n])) {\n self._addTreeNode(map, parent, n, item);\n } else {\n track(parent.concat([n]), node[n], compare[n]);\n }\n });\n }\n\n return map;\n },\n\n hasChecked: function () {\n return !BI.isEmpty(this.options.paras.selectedValues) || BI.AsyncTree.superclass.hasChecked.apply(this, arguments);\n },\n\n _getJoinValue: function () {\n if (!this.nodes) {\n return {};\n }\n var checkedValues = this._getSelectedValues();\n if (BI.isEmpty(checkedValues)) {\n return BI.deepClone(this.options.paras.selectedValues);\n }\n if (BI.isEmpty(this.options.paras.selectedValues)) {\n return checkedValues;\n }\n return this._join(checkedValues, this.options.paras.selectedValues);\n },\n\n getValue: function () {\n return this._getJoinValue();\n },\n\n // 生成树方法\n stroke: function (config) {\n delete this.options.keyword;\n BI.extend(this.options.paras, config);\n var setting = this._configSetting();\n this._initTree(setting);\n }\n});\n\nBI.shortcut(\"bi.async_tree\", BI.AsyncTree);/**\n * guy\n * 局部树,两个请求树, 第一个请求构造树,第二个请求获取节点\n * @class BI.PartTree\n * @extends BI.AsyncTree\n */\nBI.PartTree = BI.inherit(BI.AsyncTree, {\n _defaultConfig: function () {\n return BI.extend(BI.PartTree.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.PartTree.superclass._init.apply(this, arguments);\n },\n\n _loadMore: function () {\n var self = this, o = this.options;\n var op = BI.extend({}, o.paras, {\n type: BI.TreeView.REQ_TYPE_INIT_DATA,\n times: ++this.times\n });\n this.tip.setLoading();\n o.itemsCreator(op, function (d) {\n var hasNext = !!d.hasNext, nodes = d.items || [];\n o.paras.lastSearchValue = d.lastSearchValue;\n if (self._stop === true) {\n return;\n }\n if (!hasNext) {\n self.tip.setEnd();\n } else {\n self.tip.setLoaded();\n }\n if (nodes.length > 0) {\n self.nodes.addNodes(null, self._dealWidthNodes(nodes));\n }\n });\n },\n\n _selectTreeNode: function (treeId, treeNode) {\n var self = this, o = this.options;\n var parentValues = BI.deepClone(treeNode.parentValues || self._getParentValues(treeNode));\n var name = this._getNodeValue(treeNode);\n if (treeNode.checked === true) {\n this.options.paras.selectedValues = this._getJoinValue();\n // this._buildTree(self.options.paras.selectedValues, BI.concat(parentValues, name));\n o.itemsCreator(BI.extend({}, o.paras, {\n type: BI.TreeView.REQ_TYPE_ADJUST_DATA,\n curSelectedValue: name,\n parentValues: parentValues\n }), function (res) {\n self.options.paras.selectedValues = res;\n BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments);\n });\n } else {\n // 如果选中的值中不存在该值不处理\n // 因为反正是不选中,没必要管\n var t = this.options.paras.selectedValues;\n var p = parentValues.concat(name);\n for (var i = 0, len = p.length; i < len; i++) {\n t = t[p[i]];\n if (t == null) {\n return;\n }\n // 选中中国-江苏, 搜索南京,取消勾选\n if (BI.isEmpty(t)) {\n break;\n }\n }\n o.itemsCreator(BI.extend({}, o.paras, {\n type: BI.TreeView.REQ_TYPE_SELECT_DATA,\n notSelectedValue: name,\n parentValues: parentValues\n }), function (new_values) {\n self.options.paras.selectedValues = new_values;\n BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments);\n });\n }\n },\n\n _getSelectedValues: function () {\n var self = this;\n var hashMap = {};\n var rootNoots = this.nodes.getNodes();\n track(rootNoots);\n\n function track (nodes) {\n BI.each(nodes, function (i, node) {\n var checkState = node.getCheckStatus();\n if (checkState.checked === false) {\n return true;\n }\n var parentValues = node.parentValues || self._getParentValues(node);\n // 把文字中的html去掉,其实就是把文字颜色去掉\n var values = parentValues.concat([self._getNodeValue(node)]);\n self._buildTree(hashMap, values);\n // if(checkState.checked === true && checkState.half === false && nodes[i].flag === true){\n // continue;\n // }\n if (BI.isNotEmptyArray(node.children)) {\n track(node.children);\n return true;\n }\n if (checkState.half === true) {\n self._getHalfSelectedValues(hashMap, node);\n }\n });\n }\n\n return hashMap;\n },\n\n _initTree: function (setting, keyword) {\n var self = this, o = this.options;\n this.times = 1;\n var tree = this.tree;\n tree.empty();\n self.tip.setVisible(false);\n this.loading();\n var op = BI.extend({}, o.paras, {\n type: BI.TreeView.REQ_TYPE_INIT_DATA,\n times: this.times\n });\n var complete = function (d) {\n if (self._stop === true || keyword != o.paras.keyword) {\n return;\n }\n var hasNext = !!d.hasNext, nodes = d.items || [];\n o.paras.lastSearchValue = d.lastSearchValue;\n // 没有请求到数据也要初始化空树, 如果不初始化, 树就是上一次构造的树, 节点信息都是过期的\n callback(nodes.length > 0 ? self._dealWidthNodes(nodes) : []);\n self.setTipVisible(nodes.length <= 0);\n self.loaded();\n if (!hasNext) {\n self.tip.invisible();\n } else {\n self.tip.setLoaded();\n }\n self.fireEvent(BI.Events.AFTERINIT);\n };\n\n function callback (nodes) {\n if (self._stop === true) {\n return;\n }\n self.nodes = BI.$.fn.zTree.init(tree.element, setting, nodes);\n }\n\n BI.delay(function () {\n o.itemsCreator(op, complete);\n }, 100);\n },\n\n getValue: function () {\n return BI.deepClone(this.options.paras.selectedValues || {});\n },\n\n // 生成树方法\n stroke: function (config) {\n var o = this.options;\n delete o.paras.keyword;\n BI.extend(o.paras, config);\n delete o.paras.lastSearchValue;\n var setting = this._configSetting();\n this._initTree(setting, o.paras.keyword);\n }\n});\n\nBI.shortcut(\"bi.part_tree\", BI.PartTree);/**\n * author: windy\n * 继承自treeView, 此树的父子节点的勾选状态互不影响, 此树不会有半选节点\n * 返回value格式为[[\"A\"], [\"A\", \"a\"]]表示勾选了A且勾选了a\n * @class BI.ListTreeView\n * @extends BI.TreeView\n */\nBI.ListTreeView = BI.inherit(BI.TreeView, {\n\n _constants: {\n SPLIT: \"<|>\"\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.ListTreeView.superclass._defaultConfig.apply(this, arguments), {});\n },\n _init: function () {\n BI.ListTreeView.superclass._init.apply(this, arguments);\n var o = this.options;\n this.storeValue = o.value || {};\n },\n\n // 配置属性\n _configSetting: function () {\n var paras = this.options.paras;\n var self = this;\n var setting = {\n async: {\n enable: false\n },\n check: {\n enable: true,\n chkboxType: {Y: \"\", N: \"\"}\n },\n data: {\n key: {\n title: \"title\",\n name: \"text\"\n },\n simpleData: {\n enable: true\n }\n },\n view: {\n showIcon: false,\n expandSpeed: \"\",\n nameIsHTML: true,\n dblClickExpand: false\n },\n callback: {\n onCheck: onCheck,\n onClick: onClick\n }\n };\n\n function onClick (event, treeId, treeNode) {\n var zTree = BI.$.fn.zTree.getZTreeObj(treeId);\n var checked = treeNode.checked;\n self._checkValue(treeNode, !checked);\n zTree.checkNode(treeNode, !checked, true, true);\n }\n\n function onCheck (event, treeId, treeNode) {\n self._selectTreeNode(treeId, treeNode);\n }\n\n return setting;\n },\n\n _selectTreeNode: function (treeId, treeNode) {\n this._checkValue(treeNode, treeNode.checked);\n BI.ListTreeView.superclass._selectTreeNode.apply(this, arguments);\n },\n\n _transArrayToMap: function (treeArrays) {\n var self = this;\n var map = {};\n BI.each(treeArrays, function (idx, array) {\n var key = array.join(self._constants.SPLIT);\n map[key] = true;\n });\n return map;\n },\n\n _transMapToArray: function (treeMap) {\n var self = this;\n var array = [];\n BI.each(treeMap, function (key) {\n var item = key.split(self._constants.SPLIT);\n array.push(item);\n });\n return array;\n },\n\n _checkValue: function (treeNode, checked) {\n var key = BI.concat(this._getParentValues(treeNode), this._getNodeValue(treeNode)).join(this._constants.SPLIT);\n if(checked) {\n this.storeValue[key] = true;\n } else {\n delete this.storeValue[key];\n }\n },\n\n setSelectedValue: function (value) {\n this.options.paras.selectedValues = value || [];\n this.storeValue = this._transArrayToMap(value);\n },\n\n getValue: function () {\n return this._transMapToArray(this.storeValue);\n }\n});\n\nBI.shortcut(\"bi.list_tree_view\", BI.ListTreeView);/**\n * author: windy\n * 继承自treeView, 此树的父子节点的勾选状态互不影响, 此树不会有半选节点\n * 返回value格式为[\"A\", [\"A\", \"a\"]]表示勾选了A且勾选了a\n * @class BI.ListListAsyncTree\n * @extends BI.TreeView\n */\nBI.ListAsyncTree = BI.inherit(BI.ListTreeView, {\n _defaultConfig: function () {\n return BI.extend(BI.ListAsyncTree.superclass._defaultConfig.apply(this, arguments), {});\n },\n _init: function () {\n BI.ListAsyncTree.superclass._init.apply(this, arguments);\n },\n\n // 配置属性\n _configSetting: function () {\n var paras = this.options.paras;\n var self = this;\n var setting = {\n async: {\n enable: false, // 很明显这棵树把异步请求关掉了,所有的异步请求都是手动控制的\n otherParam: BI.cjkEncodeDO(paras)\n },\n check: {\n enable: true,\n chkboxType: {Y: \"\", N: \"\"}\n },\n data: {\n key: {\n title: \"title\",\n name: \"text\"\n },\n simpleData: {\n enable: true\n }\n },\n view: {\n showIcon: false,\n expandSpeed: \"\",\n nameIsHTML: true,\n dblClickExpand: false\n },\n callback: {\n onCheck: onCheck,\n beforeExpand: beforeExpand,\n beforeCheck: beforeCheck,\n onClick: onClick\n }\n };\n\n function beforeCheck (treeId, treeNode) {\n treeNode.half = false;\n }\n\n function onClick (event, treeId, treeNode) {\n var zTree = BI.$.fn.zTree.getZTreeObj(treeId);\n var checked = treeNode.checked;\n self._checkValue(treeNode, !checked);\n zTree.checkNode(treeNode, !checked, true, true);\n }\n\n function beforeExpand (treeId, treeNode) {\n self._beforeExpandNode(treeId, treeNode);\n }\n\n function onCheck (event, treeId, treeNode) {\n self._selectTreeNode(treeId, treeNode);\n }\n\n return setting;\n },\n\n // 展开节点\n _beforeExpandNode: function (treeId, treeNode) {\n var self = this, o = this.options;\n var parentValues = treeNode.parentValues || self._getParentValues(treeNode);\n var op = BI.extend({}, o.paras, {\n id: treeNode.id,\n times: 1,\n parentValues: parentValues.concat(this._getNodeValue(treeNode))\n });\n var complete = function (d) {\n var nodes = d.items || [];\n if (nodes.length > 0) {\n callback(self._dealWidthNodes(nodes), !!d.hasNext);\n }\n };\n var times = 1;\n\n function callback (nodes, hasNext) {\n self.nodes.addNodes(treeNode, nodes);\n // 展开节点是没有分页的\n if (hasNext === true) {\n BI.delay(function () {\n times++;\n op.times = times;\n o.itemsCreator(op, complete);\n }, 100);\n }\n }\n\n if (!treeNode.children) {\n setTimeout(function () {\n o.itemsCreator(op, complete);\n }, 17);\n }\n },\n\n hasChecked: function () {\n return !BI.isEmpty(this.options.paras.selectedValues) || BI.ListAsyncTree.superclass.hasChecked.apply(this, arguments);\n },\n\n // 生成树方法\n stroke: function (config) {\n delete this.options.keyword;\n BI.extend(this.options.paras, config);\n var setting = this._configSetting();\n this._initTree(setting);\n }\n});\n\nBI.shortcut(\"bi.list_async_tree\", BI.ListAsyncTree);/**\n * guy\n * 局部树,两个请求树, 第一个请求构造树,第二个请求获取节点\n * @class BI.ListPartTree\n * @extends BI.AsyncTree\n */\nBI.ListPartTree = BI.inherit(BI.ListAsyncTree, {\n _defaultConfig: function () {\n return BI.extend(BI.ListPartTree.superclass._defaultConfig.apply(this, arguments), {});\n },\n\n _init: function () {\n BI.ListPartTree.superclass._init.apply(this, arguments);\n },\n\n _loadMore: function () {\n var self = this, o = this.options;\n var op = BI.extend({}, o.paras, {\n type: BI.TreeView.REQ_TYPE_INIT_DATA,\n times: ++this.times\n });\n this.tip.setLoading();\n o.itemsCreator(op, function (d) {\n var hasNext = !!d.hasNext, nodes = d.items || [];\n o.paras.lastSearchValue = d.lastSearchValue;\n if (self._stop === true) {\n return;\n }\n if (!hasNext) {\n self.tip.setEnd();\n } else {\n self.tip.setLoaded();\n }\n if (nodes.length > 0) {\n self.nodes.addNodes(null, self._dealWidthNodes(nodes));\n }\n });\n },\n\n _initTree: function (setting, keyword) {\n var self = this, o = this.options;\n this.times = 1;\n var tree = this.tree;\n tree.empty();\n self.tip.setVisible(false);\n this.loading();\n var op = BI.extend({}, o.paras, {\n type: BI.TreeView.REQ_TYPE_INIT_DATA,\n times: this.times\n });\n var complete = function (d) {\n if (self._stop === true || keyword != o.paras.keyword) {\n return;\n }\n var hasNext = !!d.hasNext, nodes = d.items || [];\n o.paras.lastSearchValue = d.lastSearchValue;\n // 没有请求到数据也要初始化空树, 如果不初始化, 树就是上一次构造的树, 节点信息都是过期的\n callback(nodes.length > 0 ? self._dealWidthNodes(nodes) : []);\n self.setTipVisible(nodes.length <= 0);\n self.loaded();\n if (!hasNext) {\n self.tip.invisible();\n } else {\n self.tip.setLoaded();\n }\n self.fireEvent(BI.Events.AFTERINIT);\n };\n\n function callback (nodes) {\n if (self._stop === true) {\n return;\n }\n self.nodes = BI.$.fn.zTree.init(tree.element, setting, nodes);\n }\n\n BI.delay(function () {\n o.itemsCreator(op, complete);\n }, 100);\n },\n\n // 生成树方法\n stroke: function (config) {\n var o = this.options;\n delete o.paras.keyword;\n BI.extend(o.paras, config);\n delete o.paras.lastSearchValue;\n var setting = this._configSetting();\n this._initTree(setting, o.paras.keyword);\n }\n});\n\nBI.shortcut(\"bi.list_part_tree\", BI.ListPartTree);BI.prepares.push(function () {\n BI.Resizers = new BI.ResizeController();\n BI.Layers = new BI.LayerController();\n BI.Maskers = new BI.MaskersController();\n BI.Bubbles = new BI.BubblesController();\n BI.Tooltips = new BI.TooltipsController();\n BI.Popovers = new BI.PopoverController();\n BI.Broadcasts = new BI.BroadcastController();\n BI.StyleLoaders = new BI.StyleLoaderManager();\n});\n/**\n * CollectionView\n *\n * Created by GUY on 2016/1/15.\n * @class BI.CollectionView\n * @extends BI.Widget\n */\nBI.CollectionView = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.CollectionView.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-collection\",\n // width: 400, //必设\n // height: 300, //必设\n overflowX: true,\n overflowY: true,\n cellSizeAndPositionGetter: BI.emptyFn,\n horizontalOverscanSize: 0,\n verticalOverscanSize: 0,\n scrollLeft: 0,\n scrollTop: 0,\n items: []\n });\n },\n\n _init: function () {\n BI.CollectionView.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.renderedCells = [];\n this.renderedKeys = [];\n this.renderRange = {};\n this._scrollLock = false;\n this._debounceRelease = BI.debounce(function () {\n self._scrollLock = false;\n }, 1000 / 60);\n this.container = BI.createWidget({\n type: \"bi.absolute\"\n });\n this.element.scroll(function () {\n if (self._scrollLock === true) {\n return;\n }\n o.scrollLeft = self.element.scrollLeft();\n o.scrollTop = self.element.scrollTop();\n self._calculateChildrenToRender();\n self.fireEvent(BI.CollectionView.EVENT_SCROLL, {\n scrollLeft: o.scrollLeft,\n scrollTop: o.scrollTop\n });\n });\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n scrollable: o.overflowX === true && o.overflowY === true,\n scrolly: o.overflowX === false && o.overflowY === true,\n scrollx: o.overflowX === true && o.overflowY === false,\n items: [this.container]\n });\n if (o.items.length > 0) {\n this._calculateSizeAndPositionData();\n this._populate();\n }\n },\n\n mounted: function () {\n var o = this.options;\n if (o.scrollLeft !== 0 || o.scrollTop !== 0) {\n this.element.scrollTop(o.scrollTop);\n this.element.scrollLeft(o.scrollLeft);\n }\n },\n\n _calculateSizeAndPositionData: function () {\n var o = this.options;\n var cellMetadata = [];\n var sectionManager = new BI.SectionManager();\n var height = 0;\n var width = 0;\n\n for (var index = 0, len = o.items.length; index < len; index++) {\n var cellMetadatum = o.cellSizeAndPositionGetter(index);\n\n if (cellMetadatum.height == null || isNaN(cellMetadatum.height) ||\n cellMetadatum.width == null || isNaN(cellMetadatum.width) ||\n cellMetadatum.x == null || isNaN(cellMetadatum.x) ||\n cellMetadatum.y == null || isNaN(cellMetadatum.y)) {\n throw Error();\n }\n\n height = Math.max(height, cellMetadatum.y + cellMetadatum.height);\n width = Math.max(width, cellMetadatum.x + cellMetadatum.width);\n\n cellMetadatum.index = index;\n cellMetadata[index] = cellMetadatum;\n sectionManager.registerCell(cellMetadatum, index);\n }\n\n this._cellMetadata = cellMetadata;\n this._sectionManager = sectionManager;\n this._height = height;\n this._width = width;\n },\n\n _cellRenderers: function (height, width, x, y) {\n this._lastRenderedCellIndices = this._sectionManager.getCellIndices(height, width, x, y);\n return this._cellGroupRenderer();\n },\n\n _cellGroupRenderer: function () {\n var self = this, o = this.options;\n var rendered = [];\n BI.each(this._lastRenderedCellIndices, function (i, index) {\n var cellMetadata = self._sectionManager.getCellMetadata(index);\n rendered.push(cellMetadata);\n });\n return rendered;\n },\n\n _calculateChildrenToRender: function () {\n var self = this, o = this.options;\n var scrollLeft = BI.clamp(o.scrollLeft, 0, this._getMaxScrollLeft());\n var scrollTop = BI.clamp(o.scrollTop, 0, this._getMaxScrollTop());\n var left = Math.max(0, scrollLeft - o.horizontalOverscanSize);\n var top = Math.max(0, scrollTop - o.verticalOverscanSize);\n var right = Math.min(this._width, scrollLeft + o.width + o.horizontalOverscanSize);\n var bottom = Math.min(this._height, scrollTop + o.height + o.verticalOverscanSize);\n if (right > 0 && bottom > 0) {\n // 如果滚动的区间并没有超出渲染的范围\n if (top >= this.renderRange.minY && bottom <= this.renderRange.maxY && left >= this.renderRange.minX && right <= this.renderRange.maxX) {\n return;\n }\n var childrenToDisplay = this._cellRenderers(bottom - top, right - left, left, top);\n var renderedCells = [], renderedKeys = {}, renderedWidgets = {};\n // 存储所有的left和top\n var lefts = {}, tops = {};\n for (var i = 0, len = childrenToDisplay.length; i < len; i++) {\n var datum = childrenToDisplay[i];\n lefts[datum.x] = datum.x;\n lefts[datum.x + datum.width] = datum.x + datum.width;\n tops[datum.y] = datum.y;\n tops[datum.y + datum.height] = datum.y + datum.height;\n }\n lefts = BI.toArray(lefts);\n tops = BI.toArray(tops);\n var leftMap = BI.invert(lefts);\n var topMap = BI.invert(tops);\n // 存储上下左右四个边界\n var leftBorder = {}, rightBorder = {}, topBorder = {}, bottomBorder = {};\n var assertMinBorder = function (border, offset) {\n if (border[offset] == null) {\n border[offset] = Number.MAX_VALUE;\n }\n };\n var assertMaxBorder = function (border, offset) {\n if (border[offset] == null) {\n border[offset] = 0;\n }\n };\n for (var i = 0, len = childrenToDisplay.length; i < len; i++) {\n var datum = childrenToDisplay[i];\n var index = this.renderedKeys[datum.index] && this.renderedKeys[datum.index][1];\n var child;\n if (index >= 0) {\n if (datum.width !== this.renderedCells[index]._width) {\n this.renderedCells[index]._width = datum.width;\n this.renderedCells[index].el.setWidth(datum.width);\n }\n if (datum.height !== this.renderedCells[index]._height) {\n this.renderedCells[index]._height = datum.height;\n this.renderedCells[index].el.setHeight(datum.height);\n }\n if (this.renderedCells[index]._left !== datum.x) {\n this.renderedCells[index].el.element.css(\"left\", datum.x + \"px\");\n }\n if (this.renderedCells[index]._top !== datum.y) {\n this.renderedCells[index].el.element.css(\"top\", datum.y + \"px\");\n }\n renderedCells.push(child = this.renderedCells[index]);\n } else {\n child = BI.createWidget(BI.extend({\n type: \"bi.label\",\n width: datum.width,\n height: datum.height\n }, o.items[datum.index], {\n cls: (o.items[datum.index].cls || \"\") + \" container-cell\" + (datum.y === 0 ? \" first-row\" : \"\") + (datum.x === 0 ? \" first-col\" : \"\"),\n _left: datum.x,\n _top: datum.y\n }));\n renderedCells.push({\n el: child,\n left: datum.x,\n top: datum.y,\n _left: datum.x,\n _top: datum.y,\n _width: datum.width,\n _height: datum.height\n });\n }\n var startTopIndex = topMap[datum.y] | 0;\n var endTopIndex = topMap[datum.y + datum.height] | 0;\n for (var k = startTopIndex; k <= endTopIndex; k++) {\n var t = tops[k];\n assertMinBorder(leftBorder, t);\n assertMaxBorder(rightBorder, t);\n leftBorder[t] = Math.min(leftBorder[t], datum.x);\n rightBorder[t] = Math.max(rightBorder[t], datum.x + datum.width);\n }\n var startLeftIndex = leftMap[datum.x] | 0;\n var endLeftIndex = leftMap[datum.x + datum.width] | 0;\n for (var k = startLeftIndex; k <= endLeftIndex; k++) {\n var l = lefts[k];\n assertMinBorder(topBorder, l);\n assertMaxBorder(bottomBorder, l);\n topBorder[l] = Math.min(topBorder[l], datum.y);\n bottomBorder[l] = Math.max(bottomBorder[l], datum.y + datum.height);\n }\n\n renderedKeys[datum.index] = [datum.index, i];\n renderedWidgets[i] = child;\n }\n // 已存在的, 需要添加的和需要删除的\n var existSet = {}, addSet = {}, deleteArray = [];\n BI.each(renderedKeys, function (i, key) {\n if (self.renderedKeys[i]) {\n existSet[i] = key;\n } else {\n addSet[i] = key;\n }\n });\n BI.each(this.renderedKeys, function (i, key) {\n if (existSet[i]) {\n return;\n }\n if (addSet[i]) {\n return;\n }\n deleteArray.push(key[1]);\n });\n BI.each(deleteArray, function (i, index) {\n // 性能优化,不调用destroy方法防止触发destroy事件\n self.renderedCells[index].el._destroy();\n });\n var addedItems = [];\n BI.each(addSet, function (index, key) {\n addedItems.push(renderedCells[key[1]]);\n });\n this.container.addItems(addedItems);\n // 拦截父子级关系\n this.container._children = renderedWidgets;\n this.container.attr(\"items\", renderedCells);\n this.renderedCells = renderedCells;\n this.renderedKeys = renderedKeys;\n\n // Todo 左右比较特殊\n var minX = BI.min(leftBorder);\n var maxX = BI.max(rightBorder);\n\n var minY = BI.max(topBorder);\n var maxY = BI.min(bottomBorder);\n\n this.renderRange = {minX: minX, minY: minY, maxX: maxX, maxY: maxY};\n }\n },\n\n _getMaxScrollLeft: function () {\n return Math.max(0, this._width - this.options.width + (this.options.overflowX ? BI.DOM.getScrollWidth() : 0));\n },\n\n _getMaxScrollTop: function () {\n return Math.max(0, this._height - this.options.height + (this.options.overflowY ? BI.DOM.getScrollWidth() : 0));\n },\n\n _populate: function (items) {\n var o = this.options;\n this._reRange();\n if (items && items !== this.options.items) {\n this.options.items = items;\n this._calculateSizeAndPositionData();\n }\n if (o.items.length > 0) {\n this.container.setWidth(this._width);\n this.container.setHeight(this._height);\n\n this._calculateChildrenToRender();\n // 元素未挂载时不能设置scrollTop\n try {\n this.element.scrollTop(o.scrollTop);\n this.element.scrollLeft(o.scrollLeft);\n } catch (e) {\n }\n }\n },\n\n setScrollLeft: function (scrollLeft) {\n if (this.options.scrollLeft === scrollLeft) {\n return;\n }\n this._scrollLock = true;\n this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft());\n this._debounceRelease();\n this._calculateChildrenToRender();\n this.element.scrollLeft(this.options.scrollLeft);\n },\n\n setScrollTop: function (scrollTop) {\n if (this.options.scrollTop === scrollTop) {\n return;\n }\n this._scrollLock = true;\n this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop());\n this._debounceRelease();\n this._calculateChildrenToRender();\n this.element.scrollTop(this.options.scrollTop);\n },\n\n setOverflowX: function (b) {\n var self = this;\n if (this.options.overflowX !== !!b) {\n this.options.overflowX = !!b;\n BI.nextTick(function () {\n self.element.css({overflowX: b ? \"auto\" : \"hidden\"});\n });\n }\n },\n\n setOverflowY: function (b) {\n var self = this;\n if (this.options.overflowY !== !!b) {\n this.options.overflowY = !!b;\n BI.nextTick(function () {\n self.element.css({overflowY: b ? \"auto\" : \"hidden\"});\n });\n }\n },\n\n getScrollLeft: function () {\n return this.options.scrollLeft;\n },\n\n getScrollTop: function () {\n return this.options.scrollTop;\n },\n\n getMaxScrollLeft: function () {\n return this._getMaxScrollLeft();\n },\n\n getMaxScrollTop: function () {\n return this._getMaxScrollTop();\n },\n\n // 重新计算children\n _reRange: function () {\n this.renderRange = {};\n },\n\n _clearChildren: function () {\n this.container._children = {};\n this.container.attr(\"items\", []);\n },\n\n restore: function () {\n BI.each(this.renderedCells, function (i, cell) {\n cell.el._destroy();\n });\n this._clearChildren();\n this.renderedCells = [];\n this.renderedKeys = [];\n this.renderRange = {};\n this._scrollLock = false;\n },\n\n populate: function (items) {\n if (items && items !== this.options.items) {\n this.restore();\n }\n this._populate(items);\n }\n});\nBI.CollectionView.EVENT_SCROLL = \"EVENT_SCROLL\";\nBI.shortcut(\"bi.collection_view\", BI.CollectionView);/**\n * @class BI.Combo\n * @extends BI.Widget\n */\nBI.Combo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.Combo.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-combo\",\n trigger: \"click\",\n toggle: true,\n direction: \"bottom\", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right||right,innerRight||right,innerLeft||innerRight||innerLeft\n logic: {\n dynamic: true\n },\n container: null, // popupview放置的容器,默认为this.element\n isDefaultInit: false,\n destroyWhenHide: false,\n isNeedAdjustHeight: true, // 是否需要高度调整\n isNeedAdjustWidth: true,\n stopEvent: false,\n stopPropagation: false,\n adjustLength: 0, // 调整的距离\n adjustXOffset: 0,\n adjustYOffset: 0,\n hideChecker: BI.emptyFn,\n offsetStyle: \"left\", // left,right,center\n el: {},\n popup: {},\n comboClass: \"bi-combo-popup\",\n hoverClass: \"bi-combo-hover\"\n });\n },\n\n _init: function () {\n BI.Combo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this._initCombo();\n this._initPullDownAction();\n this.combo.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (self.isEnabled() && self.isValid()) {\n if (type === BI.Events.EXPAND) {\n self._popupView();\n }\n if (type === BI.Events.COLLAPSE) {\n self._hideView();\n }\n if (type === BI.Events.EXPAND) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.fireEvent(BI.Combo.EVENT_EXPAND);\n }\n if (type === BI.Events.COLLAPSE) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.isViewVisible() && self.fireEvent(BI.Combo.EVENT_COLLAPSE);\n }\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.Combo.EVENT_TRIGGER_CHANGE, obj);\n }\n }\n });\n\n self.element.on(\"mouseenter.\" + self.getName(), function (e) {\n if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {\n self.element.addClass(o.hoverClass);\n }\n });\n self.element.on(\"mouseleave.\" + self.getName(), function (e) {\n if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {\n self.element.removeClass(o.hoverClass);\n }\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"vertical\", BI.extend(o.logic, {\n items: [\n { el: this.combo }\n ]\n }))));\n o.isDefaultInit && (this._assertPopupView());\n BI.Resizers.add(this.getName(), BI.bind(function () {\n if (this.isViewVisible()) {\n this._hideView();\n }\n }, this));\n },\n\n _toggle: function () {\n this._assertPopupViewRender();\n if (this.popupView.isVisible()) {\n this._hideView();\n } else {\n if (this.isEnabled()) {\n this._popupView();\n }\n }\n },\n\n _initPullDownAction: function () {\n var self = this, o = this.options;\n var evs = (this.options.trigger || \"\").split(\",\");\n var st = function (e) {\n if (o.stopEvent) {\n e.stopEvent();\n }\n if (o.stopPropagation) {\n e.stopPropagation();\n }\n };\n\n var enterPopup = false;\n\n function hide () {\n if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) {\n self._hideView();\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, \"\", self.combo);\n self.fireEvent(BI.Combo.EVENT_COLLAPSE);\n }\n self.popupView && self.popupView.element.off(\"mouseenter.\" + self.getName()).off(\"mouseleave.\" + self.getName());\n enterPopup = false;\n }\n\n BI.each(evs, function (i, ev) {\n switch (ev) {\n case \"hover\":\n self.element.on(\"mouseenter.\" + self.getName(), function (e) {\n if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {\n self._popupView();\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, \"\", self.combo);\n self.fireEvent(BI.Combo.EVENT_EXPAND);\n }\n });\n self.element.on(\"mouseleave.\" + self.getName(), function (e) {\n if (self.popupView) {\n self.popupView.element.on(\"mouseenter.\" + self.getName(), function (e) {\n enterPopup = true;\n self.popupView.element.on(\"mouseleave.\" + self.getName(), function (e) {\n hide();\n });\n self.popupView.element.off(\"mouseenter.\" + self.getName());\n });\n BI.defer(function () {\n if (!enterPopup) {\n hide();\n }\n }, 50);\n }\n });\n break;\n case \"click\":\n var debounce = BI.debounce(function (e) {\n if (self.combo.element.__isMouseInBounds__(e)) {\n if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {\n // if (!o.toggle && self.isViewVisible()) {\n // return;\n // }\n o.toggle ? self._toggle() : self._popupView();\n if (self.isViewVisible()) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, \"\", self.combo);\n self.fireEvent(BI.Combo.EVENT_EXPAND);\n } else {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, \"\", self.combo);\n self.fireEvent(BI.Combo.EVENT_COLLAPSE);\n }\n }\n }\n }, BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n });\n self.element.off(ev + \".\" + self.getName()).on(ev + \".\" + self.getName(), function (e) {\n debounce(e);\n st(e);\n });\n break;\n case \"click-hover\":\n var debounce = BI.debounce(function (e) {\n if (self.combo.element.__isMouseInBounds__(e)) {\n if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {\n // if (self.isViewVisible()) {\n // return;\n // }\n self._popupView();\n if (self.isViewVisible()) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, \"\", self.combo);\n self.fireEvent(BI.Combo.EVENT_EXPAND);\n }\n }\n }\n }, BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n });\n self.element.off(\"click.\" + self.getName()).on(\"click.\" + self.getName(), function (e) {\n debounce(e);\n st(e);\n });\n self.element.on(\"mouseleave.\" + self.getName(), function (e) {\n if (self.popupView) {\n self.popupView.element.on(\"mouseenter.\" + self.getName(), function (e) {\n enterPopup = true;\n self.popupView.element.on(\"mouseleave.\" + self.getName(), function (e) {\n hide();\n });\n self.popupView.element.off(\"mouseenter.\" + self.getName());\n });\n BI.defer(function () {\n if (!enterPopup) {\n hide();\n }\n }, 50);\n }\n });\n break;\n }\n });\n },\n\n _initCombo: function () {\n this.combo = BI.createWidget(this.options.el, {\n value: this.options.value\n });\n },\n\n _assertPopupView: function () {\n var self = this, o = this.options;\n if (this.popupView == null) {\n this.popupView = BI.createWidget(this.options.popup, {\n type: \"bi.popup_view\",\n value: o.value\n }, this);\n this.popupView.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (type === BI.Events.CLICK) {\n self.combo.setValue(self.getValue());\n self.fireEvent(BI.Combo.EVENT_CHANGE, value, obj);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.popupView.setVisible(false);\n BI.nextTick(function () {\n self.fireEvent(BI.Combo.EVENT_AFTER_INIT);\n });\n }\n },\n\n _assertPopupViewRender: function () {\n this._assertPopupView();\n if (!this._rendered) {\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this.options.container || this,\n items: [\n {el: this.popupView}\n ]\n });\n this._rendered = true;\n }\n },\n\n _hideIf: function (e) {\n // if (this.element.__isMouseInBounds__(e) || (this.popupView && this.popupView.element.__isMouseInBounds__(e))) {\n // return;\n // }\n // BI-10290 公式combo双击公式内容会收起\n if ((this.element.find(e.target).length > 0)\n || (this.popupView && this.popupView.element.find(e.target).length > 0)\n || e.target.className === \"CodeMirror-cursor\" || BI.Widget._renderEngine.createElement(e.target).closest(\".CodeMirror-hints\").length > 0) {// BI-9887 CodeMirror的公式弹框需要特殊处理下\n var directions = this.options.direction.split(\",\");\n if (BI.contains(directions, \"innerLeft\") || BI.contains(directions, \"innerRight\")) {\n // popup可以出现的trigger内部的combo,滚动时不需要消失,而是调整位置\n this.adjustWidth();\n this.adjustHeight();\n }\n return;\n }\n var isHide = this.options.hideChecker.apply(this, [e]);\n if (isHide === false) {\n return;\n }\n this._hideView();\n },\n\n _hideView: function () {\n this.fireEvent(BI.Combo.EVENT_BEFORE_HIDEVIEW);\n if (this.options.destroyWhenHide === true) {\n this.popupView && this.popupView.destroy();\n this.popupView = null;\n this._rendered = false;\n } else {\n this.popupView && this.popupView.invisible();\n }\n this.element.removeClass(this.options.comboClass);\n\n BI.Widget._renderEngine.createElement(document).unbind(\"mousedown.\" + this.getName()).unbind(\"mousewheel.\" + this.getName());\n this.fireEvent(BI.Combo.EVENT_AFTER_HIDEVIEW);\n },\n\n _popupView: function (e) {\n this._assertPopupViewRender();\n this.fireEvent(BI.Combo.EVENT_BEFORE_POPUPVIEW);\n\n this.popupView.visible();\n this.adjustWidth(e);\n this.adjustHeight(e);\n\n this.element.addClass(this.options.comboClass);\n BI.Widget._renderEngine.createElement(document).unbind(\"mousedown.\" + this.getName()).unbind(\"mousewheel.\" + this.getName());\n BI.Widget._renderEngine.createElement(document).bind(\"mousedown.\" + this.getName(), BI.bind(this._hideIf, this)).bind(\"mousewheel.\" + this.getName(), BI.bind(this._hideIf, this));\n this.fireEvent(BI.Combo.EVENT_AFTER_POPUPVIEW);\n },\n\n adjustWidth: function (e) {\n var o = this.options;\n if (!this.popupView) {\n return;\n }\n if (o.isNeedAdjustWidth === true) {\n this.resetListWidth(\"\");\n var width = this.popupView.element.outerWidth();\n var maxW = this.element.outerWidth() || o.width;\n if (width > maxW + 80) {\n maxW = maxW + 80;\n } else if (width > maxW) {\n maxW = width;\n }\n this.resetListWidth(maxW < 100 ? 100 : maxW);\n }\n },\n\n adjustHeight: function (e) {\n var o = this.options, p = {};\n if (!this.popupView) {\n return;\n }\n var isVisible = this.popupView.isVisible();\n this.popupView.visible();\n var combo = BI.isNotNull(e) ? {\n element: {\n offset: function () {\n return {\n left: e.pageX,\n top: e.pageY\n };\n },\n bounds: function () {\n // offset为其相对于父定位元素的偏移\n return {\n x: e.offsetX,\n y: e.offsetY,\n width: 0,\n height: 24\n };\n },\n outerWidth: function () {\n return 0;\n },\n outerHeight: function () {\n return 24;\n }\n }\n } : this.combo;\n switch (o.direction) {\n case \"bottom\":\n case \"bottom,right\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, [\"bottom\", \"top\", \"right\", \"left\"], o.offsetStyle);\n break;\n case \"top\":\n case \"top,right\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, [\"top\", \"bottom\", \"right\", \"left\"], o.offsetStyle);\n break;\n case \"left\":\n case \"left,bottom\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"left\", \"right\", \"bottom\", \"top\"], o.offsetStyle);\n break;\n case \"right\":\n case \"right,bottom\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"right\", \"left\", \"bottom\", \"top\"], o.offsetStyle);\n break;\n case \"top,left\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, [\"top\", \"bottom\", \"left\", \"right\"], o.offsetStyle);\n break;\n case \"bottom,left\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, [\"bottom\", \"top\", \"left\", \"right\"], o.offsetStyle);\n break;\n case \"left,top\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"left\", \"right\", \"top\", \"bottom\"], o.offsetStyle);\n break;\n case \"right,top\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"right\", \"left\", \"top\", \"bottom\"], o.offsetStyle);\n break;\n case \"right,innerRight\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"right\", \"left\", \"innerRight\", \"innerLeft\", \"bottom\", \"top\"], o.offsetStyle);\n break;\n case \"right,innerLeft\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"right\", \"left\", \"innerLeft\", \"innerRight\", \"bottom\", \"top\"], o.offsetStyle);\n break;\n case \"innerRight\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"innerRight\", \"innerLeft\", \"right\", \"left\", \"bottom\", \"top\"], o.offsetStyle);\n break;\n case \"innerLeft\":\n p = BI.DOM.getComboPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength, o.adjustYOffset, o.isNeedAdjustHeight, [\"innerLeft\", \"innerRight\", \"left\", \"right\", \"bottom\", \"top\"], o.offsetStyle);\n break;\n case \"top,custom\":\n case \"custom,top\":\n p = BI.DOM.getTopAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);\n break;\n case \"custom,bottom\":\n case \"bottom,custom\":\n p = BI.DOM.getBottomAdaptPosition(combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight);\n break;\n case \"left,custom\":\n case \"custom,left\":\n p = BI.DOM.getLeftAdaptPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength);\n delete p.top;\n delete p.adaptHeight;\n break;\n case \"custom,right\":\n case \"right,custom\":\n p = BI.DOM.getRightAdaptPosition(combo, this.popupView, o.adjustXOffset || o.adjustLength);\n delete p.top;\n delete p.adaptHeight;\n break;\n }\n\n if (\"adaptHeight\" in p) {\n this.resetListHeight(p[\"adaptHeight\"]);\n }\n if (\"left\" in p) {\n this.popupView.element.css({\n left: p.left\n });\n }\n if (\"top\" in p) {\n this.popupView.element.css({\n top: p.top\n });\n }\n this.position = p;\n this.popupView.setVisible(isVisible);\n },\n\n resetListHeight: function (h) {\n this._assertPopupView();\n this.popupView.resetHeight && this.popupView.resetHeight(h);\n },\n\n resetListWidth: function (w) {\n this._assertPopupView();\n this.popupView.resetWidth && this.popupView.resetWidth(w);\n },\n\n populate: function (items) {\n this._assertPopupView();\n this.popupView.populate.apply(this.popupView, arguments);\n this.combo.populate.apply(this.combo, arguments);\n },\n\n _setEnable: function (arg) {\n BI.Combo.superclass._setEnable.apply(this, arguments);\n if (arg === true) {\n this.element.removeClass(\"base-disabled disabled\");\n } else if (arg === false) {\n this.element.addClass(\"base-disabled disabled\");\n }\n !arg && this.element.removeClass(this.options.hoverClass);\n !arg && this.isViewVisible() && this._hideView();\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n if (BI.isNull(this.popupView)) {\n this.options.popup.value = v;\n } else {\n this.popupView.setValue(v);\n }\n },\n\n getValue: function () {\n if (BI.isNull(this.popupView)) {\n return this.options.popup.value;\n } else {\n return this.popupView.getValue();\n }\n },\n\n isViewVisible: function () {\n return this.isEnabled() && this.combo.isEnabled() && !!this.popupView && this.popupView.isVisible();\n },\n\n showView: function (e) {\n // 减少popup 调整宽高的次数\n if (this.isEnabled() && this.combo.isEnabled() && !this.isViewVisible()) {\n this._popupView(e);\n }\n },\n\n hideView: function () {\n this._hideView();\n },\n\n getView: function () {\n return this.popupView;\n },\n\n getPopupPosition: function () {\n return this.position;\n },\n\n toggle: function () {\n this._toggle();\n },\n\n destroyed: function () {\n BI.Widget._renderEngine.createElement(document).unbind(\"mousedown.\" + this.getName())\n .unbind(\"mousewheel.\" + this.getName())\n .unbind(\"mouseenter.\" + this.getName())\n .unbind(\"mousemove.\" + this.getName())\n .unbind(\"mouseleave.\" + this.getName());\n BI.Resizers.remove(this.getName());\n this.popupView && this.popupView._destroy();\n }\n});\nBI.Combo.EVENT_TRIGGER_CHANGE = \"EVENT_TRIGGER_CHANGE\";\nBI.Combo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.Combo.EVENT_EXPAND = \"EVENT_EXPAND\";\nBI.Combo.EVENT_COLLAPSE = \"EVENT_COLLAPSE\";\nBI.Combo.EVENT_AFTER_INIT = \"EVENT_AFTER_INIT\";\n\n\nBI.Combo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.Combo.EVENT_AFTER_POPUPVIEW = \"EVENT_AFTER_POPUPVIEW\";\nBI.Combo.EVENT_BEFORE_HIDEVIEW = \"EVENT_BEFORE_HIDEVIEW\";\nBI.Combo.EVENT_AFTER_HIDEVIEW = \"EVENT_AFTER_HIDEVIEW\";\n\nBI.shortcut(\"bi.combo\", BI.Combo);/**\n *\n * 某个可以展开的节点\n *\n * Created by GUY on 2015/9/10.\n * @class BI.Expander\n * @extends BI.Widget\n */\nBI.Expander = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Expander.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-expander\",\n trigger: \"click\",\n toggle: true,\n // direction: \"bottom\", //top,bottom四个方向\n isDefaultInit: false, // 是否默认初始化子节点\n el: {},\n popup: {},\n expanderClass: \"bi-expander-popup\",\n hoverClass: \"bi-expander-hover\"\n });\n },\n\n _init: function () {\n BI.Expander.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this._expanded = !!o.el.open;\n this._initExpander();\n this._initPullDownAction();\n this.expander.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (self.isEnabled() && self.isValid()) {\n if (type === BI.Events.EXPAND) {\n self._popupView();\n }\n if (type === BI.Events.COLLAPSE) {\n self._hideView();\n }\n if (type === BI.Events.EXPAND) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.fireEvent(BI.Expander.EVENT_EXPAND);\n }\n if (type === BI.Events.COLLAPSE) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.isViewVisible() && self.fireEvent(BI.Expander.EVENT_COLLAPSE);\n }\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.Expander.EVENT_TRIGGER_CHANGE, value, obj);\n }\n }\n });\n\n this.element.hover(function () {\n if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {\n self.element.addClass(o.hoverClass);\n }\n }, function () {\n if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {\n self.element.removeClass(o.hoverClass);\n }\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [\n {el: this.expander}\n ]\n });\n o.isDefaultInit && this._assertPopupView();\n if (this.expander.isOpened() === true) {\n this._popupView();\n }\n },\n\n _toggle: function () {\n this._assertPopupViewRender();\n if (this.popupView.isVisible()) {\n this._hideView();\n } else {\n if (this.isEnabled()) {\n this._popupView();\n }\n }\n },\n\n _initPullDownAction: function () {\n var self = this, o = this.options;\n var evs = this.options.trigger.split(\",\");\n BI.each(evs, function (i, e) {\n switch (e) {\n case \"hover\":\n self.element[e](function (e) {\n if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {\n self._popupView();\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, \"\", self.expander);\n self.fireEvent(BI.Expander.EVENT_EXPAND);\n }\n }, function () {\n if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid() && o.toggle) {\n self._hideView();\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, \"\", self.expander);\n self.fireEvent(BI.Expander.EVENT_COLLAPSE);\n }\n });\n break;\n case \"click\":\n if (e) {\n self.element.off(e + \".\" + self.getName()).on(e + \".\" + self.getName(), BI.debounce(function (e) {\n if (self.expander.element.__isMouseInBounds__(e)) {\n if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {\n o.toggle ? self._toggle() : self._popupView();\n if (self.isExpanded()) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, \"\", self.expander);\n self.fireEvent(BI.Expander.EVENT_EXPAND);\n } else {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, \"\", self.expander);\n self.fireEvent(BI.Expander.EVENT_COLLAPSE);\n }\n }\n }\n }, BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n }));\n }\n break;\n }\n });\n },\n\n _initExpander: function () {\n this.expander = BI.createWidget(this.options.el);\n },\n\n _assertPopupView: function () {\n var self = this, o = this.options;\n if (this.popupView == null) {\n this.popupView = BI.createWidget(this.options.popup, {\n type: \"bi.button_group\",\n cls: \"expander-popup\",\n layouts: [{\n type: \"bi.vertical\",\n hgap: 0,\n vgap: 0\n }],\n value: o.value\n }, this);\n this.popupView.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n // self.setValue(self.getValue());\n self.fireEvent(BI.Expander.EVENT_CHANGE, value, obj);\n }\n });\n this.popupView.setVisible(this.isExpanded());\n BI.nextTick(function () {\n self.fireEvent(BI.Expander.EVENT_AFTER_INIT);\n });\n }\n },\n\n _assertPopupViewRender: function () {\n this._assertPopupView();\n if (!this._rendered) {\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [\n {el: this.popupView}\n ]\n });\n this._rendered = true;\n }\n },\n\n _hideView: function () {\n this.fireEvent(BI.Expander.EVENT_BEFORE_HIDEVIEW);\n this._expanded = false;\n this.expander.setOpened(false);\n this.popupView && this.popupView.invisible();\n this.element.removeClass(this.options.expanderClass);\n\n this.fireEvent(BI.Expander.EVENT_AFTER_HIDEVIEW);\n },\n\n _popupView: function () {\n this._assertPopupViewRender();\n this.fireEvent(BI.Expander.EVENT_BEFORE_POPUPVIEW);\n this._expanded = true;\n this.expander.setOpened(true);\n this.popupView.visible();\n this.element.addClass(this.options.expanderClass);\n this.fireEvent(BI.Expander.EVENT_AFTER_POPUPVIEW);\n },\n\n populate: function (items) {\n // this._assertPopupView();\n this.popupView && this.popupView.populate.apply(this.popupView, arguments);\n this.expander.populate.apply(this.expander, arguments);\n },\n\n _setEnable: function (arg) {\n BI.Expander.superclass._setEnable.apply(this, arguments);\n !arg && this.element.removeClass(this.options.hoverClass);\n !arg && this.isViewVisible() && this._hideView();\n },\n\n setValue: function (v) {\n this.expander.setValue(v);\n if (BI.isNull(this.popupView)) {\n this.options.popup.value = v;\n } else {\n this.popupView.setValue(v);\n }\n },\n\n getValue: function () {\n if (BI.isNull(this.popupView)) {\n return this.options.popup.value;\n } else {\n return this.popupView.getValue();\n }\n },\n\n isViewVisible: function () {\n return this.isEnabled() && this.expander.isEnabled() && !!this.popupView && this.popupView.isVisible();\n },\n\n isExpanded: function () {\n return this._expanded;\n },\n\n showView: function () {\n if (this.isEnabled() && this.expander.isEnabled()) {\n this._popupView();\n }\n },\n\n hideView: function () {\n this._hideView();\n },\n\n getView: function () {\n return this.popupView;\n },\n\n getAllLeaves: function () {\n return this.popupView && this.popupView.getAllLeaves();\n },\n\n getNodeById: function (id) {\n if (this.expander.options.id === id) {\n return this.expander;\n }\n return this.popupView && this.popupView.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n if (this.expander.getValue() === value) {\n return this.expander;\n }\n return this.popupView && this.popupView.getNodeByValue(value);\n },\n\n destroy: function () {\n BI.Expander.superclass.destroy.apply(this, arguments);\n }\n});\nBI.Expander.EVENT_EXPAND = \"EVENT_EXPAND\";\nBI.Expander.EVENT_COLLAPSE = \"EVENT_COLLAPSE\";\nBI.Expander.EVENT_TRIGGER_CHANGE = \"EVENT_TRIGGER_CHANGE\";\nBI.Expander.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.Expander.EVENT_AFTER_INIT = \"EVENT_AFTER_INIT\";\n\n\nBI.Expander.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.Expander.EVENT_AFTER_POPUPVIEW = \"EVENT_AFTER_POPUPVIEW\";\nBI.Expander.EVENT_BEFORE_HIDEVIEW = \"EVENT_BEFORE_HIDEVIEW\";\nBI.Expander.EVENT_AFTER_HIDEVIEW = \"EVENT_AFTER_HIDEVIEW\";\n\nBI.shortcut(\"bi.expander\", BI.Expander);/**\n * Created by GUY on 2015/8/10.\n */\n\nBI.ComboGroup = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.ComboGroup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-combo-group bi-list-item\",\n\n // 以下这些属性对每一个combo都是公用的\n trigger: \"click,hover\",\n direction: \"right\",\n adjustLength: 0,\n isDefaultInit: false,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n\n el: {type: \"bi.text_button\", text: \"\", value: \"\"},\n children: [],\n\n popup: {\n el: {\n type: \"bi.button_tree\",\n chooseType: 0,\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n }\n });\n },\n\n _init: function () {\n BI.ComboGroup.superclass._init.apply(this, arguments);\n this._populate(this.options.el);\n },\n\n _populate: function (item) {\n var self = this, o = this.options;\n var children = o.children;\n if (BI.isEmpty(children)) {\n throw new Error(\"ComboGroup构造错误\");\n }\n BI.each(children, function (i, ch) {\n var son = BI.formatEL(ch).el.children;\n ch = BI.formatEL(ch).el;\n if (!BI.isEmpty(son)) {\n ch.el = BI.clone(ch);\n ch.children = son;\n ch.type = \"bi.combo_group\";\n ch.action = o.action;\n ch.height = o.height;\n ch.direction = o.direction;\n ch.isDefaultInit = o.isDefaultInit;\n ch.isNeedAdjustHeight = o.isNeedAdjustHeight;\n ch.isNeedAdjustWidth = o.isNeedAdjustWidth;\n ch.adjustLength = o.adjustLength;\n ch.popup = o.popup;\n }\n });\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n element: this,\n container: o.container,\n height: o.height,\n trigger: o.trigger,\n direction: o.direction,\n isDefaultInit: o.isDefaultInit,\n isNeedAdjustWidth: o.isNeedAdjustWidth,\n isNeedAdjustHeight: o.isNeedAdjustHeight,\n adjustLength: o.adjustLength,\n el: item,\n popup: BI.extend({}, o.popup, {\n el: BI.extend({\n items: children\n }, o.popup.el)\n })\n });\n this.combo.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.ComboGroup.EVENT_CHANGE, obj);\n }\n });\n },\n\n getValue: function () {\n return this.combo.getValue();\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n }\n});\nBI.ComboGroup.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.combo_group\", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.VirtualGroup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-virtual-group\",\n items: [],\n layouts: [{\n type: \"bi.center\",\n hgap: 0,\n vgap: 0\n }]\n });\n },\n\n render: function () {\n var o = this.options;\n this.populate(o.items);\n if (BI.isKey(o.value)) {\n this.setValue(o.value);\n }\n },\n\n _packageBtns: function (items) {\n var o = this.options;\n var map = this.buttonMap = {};\n for (var i = o.layouts.length - 1; i > 0; i--) {\n items = BI.map(items, function (k, it) {\n var el = BI.stripEL(it);\n return BI.extend({}, o.layouts[i], {\n items: [\n BI.extend({}, o.layouts[i].el, {\n el: BI.extend({\n ref: function (_ref) {\n if (BI.isKey(map[el.value])) {\n map[el.value] = _ref;\n }\n }\n }, el)\n })\n ]\n });\n });\n }\n return items;\n },\n\n _packageLayout: function (items) {\n var o = this.options, layout = BI.deepClone(o.layouts[0]);\n\n var lay = BI.formatEL(layout).el;\n while (lay && lay.items && !BI.isEmpty(lay.items)) {\n lay = BI.formatEL(lay.items[0]).el;\n }\n lay.items = items;\n return layout;\n },\n\n addItems: function (items) {\n this.layouts.addItems(items);\n },\n\n prependItems: function (items) {\n this.layouts.prependItems(items);\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n BI.each(this.buttonMap, function (key, item) {\n if (item) {\n if (v.deepContains(key)) {\n item.setSelected && item.setSelected(true);\n } else {\n item.setSelected && item.setSelected(false);\n }\n }\n });\n },\n\n getNotSelectedValue: function () {\n var v = [];\n BI.each(this.buttonMap, function (i, item) {\n if (item) {\n if (item.isEnabled() && !(item.isSelected && item.isSelected())) {\n v.push(item.getValue());\n }\n }\n });\n return v;\n },\n\n getValue: function () {\n var v = [];\n BI.each(this.buttonMap, function (i, item) {\n if (item) {\n if (item.isEnabled() && item.isSelected && item.isSelected()) {\n v.push(item.getValue());\n }\n }\n });\n return v;\n },\n\n populate: function (items) {\n var self = this;\n items = items || [];\n this.options.items = items;\n items = this._packageBtns(items);\n if (!this.layouts) {\n this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items)));\n } else {\n this.layouts.populate(items);\n }\n }\n});\nBI.VirtualGroup.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.virtual_group\", BI.VirtualGroup);/**\n * 加载控件\n *\n * Created by GUY on 2015/8/31.\n * @class BI.Loader\n * @extends BI.Widget\n */\nBI.Loader = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Loader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-loader\",\n\n direction: \"top\",\n isDefaultInit: true, // 是否默认初始化数据\n logic: {\n dynamic: true,\n scrolly: true\n },\n\n // 下面是button_group的属性\n el: {\n type: \"bi.button_group\"\n },\n\n items: [],\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn,\n\n // 下面是分页信息\n count: false,\n prev: false,\n next: {},\n hasPrev: BI.emptyFn,\n hasNext: BI.emptyFn\n });\n },\n\n _prevLoad: function () {\n var self = this, o = this.options;\n this.prev.setLoading();\n o.itemsCreator.apply(this, [{times: --this.times}, function () {\n self.prev.setLoaded();\n self.prependItems.apply(self, arguments);\n }]);\n },\n\n _nextLoad: function () {\n var self = this, o = this.options;\n this.next.setLoading();\n o.itemsCreator.apply(this, [{times: ++this.times}, function () {\n self.next.setLoaded();\n self.addItems.apply(self, arguments);\n }]);\n },\n\n _init: function () {\n BI.Loader.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (o.itemsCreator === false) {\n o.prev = false;\n o.next = false;\n }\n if (o.prev !== false) {\n this.prev = BI.createWidget(BI.extend({\n type: \"bi.loading_bar\"\n }, o.prev));\n this.prev.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self._prevLoad();\n }\n });\n }\n\n this.button_group = BI.createWidget(o.el, {\n type: \"bi.button_group\",\n chooseType: 0,\n items: o.items,\n behaviors: {},\n layouts: [{\n type: \"bi.vertical\"\n }],\n value: o.value\n });\n this.button_group.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.Loader.EVENT_CHANGE, obj);\n }\n });\n\n if (o.next !== false) {\n this.next = BI.createWidget(BI.extend({\n type: \"bi.loading_bar\"\n }, o.next));\n this.next.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self._nextLoad();\n }\n });\n }\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({\n scrolly: true\n }, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.prev, this.button_group, this.next)\n }))));\n\n o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {\n o.isDefaultInit && BI.isEmpty(o.items) && this._populate();\n }, this));\n if (BI.isNotEmptyArray(o.items)) {\n this._populate(o.items);\n }\n },\n\n hasPrev: function () {\n var o = this.options;\n if (BI.isNumber(o.count)) {\n return this.count < o.count;\n }\n return !!o.hasPrev.apply(this, [{\n times: this.times,\n count: this.count\n }]);\n },\n\n hasNext: function () {\n var o = this.options;\n if (BI.isNumber(o.count)) {\n return this.count < o.count;\n }\n return !!o.hasNext.apply(this, [{\n times: this.times,\n count: this.count\n }]);\n },\n\n prependItems: function (items) {\n this.count += items.length;\n if (this.next !== false) {\n if (this.hasPrev()) {\n this.options.items = this.options.items.concat(items);\n this.prev.setLoaded();\n } else {\n this.prev.setEnd();\n }\n }\n this.button_group.prependItems.apply(this.button_group, arguments);\n },\n\n addItems: function (items) {\n this.count += items.length;\n if (BI.isObject(this.next)) {\n if (this.hasNext()) {\n this.options.items = this.options.items.concat(items);\n this.next.setLoaded();\n } else {\n this.next.setEnd();\n }\n }\n this.button_group.addItems.apply(this.button_group, arguments);\n },\n\n\n _populate: function (items) {\n var self = this, o = this.options;\n if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {\n o.itemsCreator.apply(this, [{times: 1}, function () {\n if (arguments.length === 0) {\n throw new Error(\"arguments can not be null!!!\");\n }\n self.populate.apply(self, arguments);\n o.onLoaded();\n }]);\n return false;\n }\n this.options.items = items;\n this.times = 1;\n this.count = 0;\n this.count += items.length;\n if (BI.isObject(this.next)) {\n if (this.hasNext()) {\n this.next.setLoaded();\n } else {\n this.next.invisible();\n }\n }\n if (BI.isObject(this.prev)) {\n if (this.hasPrev()) {\n this.prev.setLoaded();\n } else {\n this.prev.invisible();\n }\n }\n return true;\n },\n\n populate: function () {\n this._populate.apply(this, arguments) && this.button_group.populate.apply(this.button_group, arguments);\n },\n\n setNotSelectedValue: function () {\n this.button_group.setNotSelectedValue.apply(this.button_group, arguments);\n },\n\n getNotSelectedValue: function () {\n return this.button_group.getNotSelectedValue();\n },\n\n setValue: function () {\n this.button_group.setValue.apply(this.button_group, arguments);\n },\n\n getValue: function () {\n return this.button_group.getValue.apply(this.button_group, arguments);\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n getAllLeaves: function () {\n return this.button_group.getAllLeaves();\n },\n\n getSelectedButtons: function () {\n return this.button_group.getSelectedButtons();\n },\n\n getNotSelectedButtons: function () {\n return this.button_group.getNotSelectedButtons();\n },\n\n getIndexByValue: function (value) {\n return this.button_group.getIndexByValue(value);\n },\n\n getNodeById: function (id) {\n return this.button_group.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n return this.button_group.getNodeByValue(value);\n },\n\n empty: function () {\n this.button_group.empty();\n BI.each([this.prev, this.next], function (i, ob) {\n ob && ob.setVisible(false);\n });\n },\n\n destroy: function () {\n BI.Loader.superclass.destroy.apply(this, arguments);\n }\n});\nBI.Loader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.loader\", BI.Loader);/**\n * Created by GUY on 2015/6/26.\n */\n\nBI.Navigation = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Navigation.superclass._defaultConfig.apply(this, arguments), {\n direction: \"bottom\", // top, bottom, left, right, custom\n logic: {\n dynamic: false\n },\n single: false,\n showIndex: false,\n tab: false,\n cardCreator: function (v) {\n return BI.createWidget();\n },\n\n afterCardCreated: BI.emptyFn,\n afterCardShow: BI.emptyFn\n });\n },\n\n render: function () {\n var self = this, o = this.options;\n this.tab = BI.createWidget(this.options.tab, {type: \"bi.button_group\"});\n this.cardMap = {};\n this.showIndex = 0;\n this.layout = BI.createWidget({\n type: \"bi.card\"\n });\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({}, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.tab, this.layout)\n }))));\n\n\n new BI.ShowListener({\n eventObj: this.tab,\n cardLayout: this.layout,\n cardNameCreator: function (v) {\n return self.showIndex + v;\n },\n cardCreator: function (v) {\n var card = o.cardCreator(v);\n self.cardMap[v] = card;\n return card;\n },\n afterCardCreated: BI.bind(this.afterCardCreated, this),\n afterCardShow: BI.bind(this.afterCardShow, this)\n });\n },\n\n mounted: function () {\n var o = this.options;\n if (o.showIndex !== false) {\n this.setSelect(o.showIndex);\n }\n },\n\n _deleteOtherCards: function (currCardName) {\n var self = this, o = this.options;\n if (o.single === true) {\n BI.each(this.cardMap, function (name, card) {\n if (name !== (currCardName + \"\")) {\n self.layout.deleteCardByName(name);\n delete self.cardMap[name];\n }\n });\n }\n },\n\n afterCardCreated: function (v) {\n var self = this;\n this.cardMap[v].on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.Navigation.EVENT_CHANGE, obj);\n }\n });\n this.options.afterCardCreated.apply(this, arguments);\n },\n\n afterCardShow: function (v) {\n this.showIndex = v;\n this._deleteOtherCards(v);\n this.options.afterCardShow.apply(this, arguments);\n },\n\n populate: function () {\n var card = this.layout.getShowingCard();\n if (card) {\n return card.populate.apply(card, arguments);\n }\n },\n\n _assertCard: function (v) {\n if (!this.layout.isCardExisted(v)) {\n var card = this.options.cardCreator(v);\n this.cardMap[v] = card;\n this.layout.addCardByName(v, card);\n this.afterCardCreated(v);\n }\n },\n\n setSelect: function (v) {\n this._assertCard(v);\n this.layout.showCardByName(v);\n this._deleteOtherCards(v);\n if (this.showIndex !== v) {\n this.showIndex = v;\n BI.nextTick(BI.bind(this.afterCardShow, this, v));\n }\n },\n\n getSelect: function () {\n return this.showIndex;\n },\n\n getSelectedCard: function () {\n if (BI.isKey(this.showIndex)) {\n return this.cardMap[this.showIndex];\n }\n },\n\n /**\n * @override\n */\n setValue: function (v) {\n var card = this.layout.getShowingCard();\n if (card) {\n card.setValue(v);\n }\n },\n\n /**\n * @override\n */\n getValue: function () {\n var card = this.layout.getShowingCard();\n if (card) {\n return card.getValue();\n }\n },\n\n empty: function () {\n this.layout.deleteAllCard();\n this.cardMap = {};\n },\n\n destroy: function () {\n BI.Navigation.superclass.destroy.apply(this, arguments);\n }\n});\nBI.Navigation.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.navigation\", BI.Navigation);/**\n * 搜索逻辑控件\n *\n * Created by GUY on 2015/9/28.\n * @class BI.Searcher\n * @extends BI.Widget\n */\n\nBI.Searcher = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Searcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-searcher\",\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n vgap: 0,\n hgap: 0,\n\n isDefaultInit: false,\n isAutoSearch: true, // 是否自动搜索\n isAutoSync: true, // 是否自动同步数据, 即是否保持搜索面板和adapter面板状态值的统一\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n\n // isAutoSearch为false时启用\n onSearch: function (op, callback) {\n callback([]);\n },\n\n el: {\n type: \"bi.search_editor\"\n },\n\n popup: {\n type: \"bi.searcher_view\"\n },\n\n adapter: null,\n masker: { // masker层\n offset: {}\n }\n });\n },\n\n _init: function () {\n BI.Searcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.editor = BI.createWidget(o.el, {\n type: \"bi.search_editor\"\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n vgap: o.vgap,\n hgap: o.hgap,\n items: [this.editor]\n });\n o.isDefaultInit && (this._assertPopupView());\n\n var search = BI.debounce(BI.bind(this._search, this), BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function (type) {\n switch (type) {\n case BI.Events.STARTEDIT:\n self._startSearch();\n break;\n case BI.Events.EMPTY:\n self._stopSearch();\n break;\n case BI.Events.CHANGE:\n search();\n break;\n case BI.Events.PAUSE:\n self._pauseSearch();\n break;\n }\n });\n },\n\n _assertPopupView: function () {\n var self = this, o = this.options;\n if ((o.masker && !BI.Maskers.has(this.getName())) || (o.masker === false && !this.popupView)) {\n this.popupView = BI.createWidget(o.popup, {\n type: \"bi.searcher_view\",\n chooseType: o.chooseType\n });\n this.popupView.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n if (o.isAutoSync) {\n var values = o.adapter && o.adapter.getValue();\n if (!obj.isSelected()) {\n o.adapter && o.adapter.setValue(BI.deepWithout(values, obj.getValue()));\n } else {\n switch (o.chooseType) {\n case BI.ButtonGroup.CHOOSE_TYPE_SINGLE:\n o.adapter && o.adapter.setValue([obj.getValue()]);\n break;\n case BI.ButtonGroup.CHOOSE_TYPE_MULTI:\n values.push(obj.getValue());\n o.adapter && o.adapter.setValue(values);\n break;\n }\n }\n }\n self.fireEvent(BI.Searcher.EVENT_CHANGE, value, obj);\n }\n });\n BI.nextTick(function () {\n self.fireEvent(BI.Searcher.EVENT_AFTER_INIT);\n });\n }\n if (o.masker && !BI.Maskers.has(this.getName())) {\n BI.Maskers.create(this.getName(), o.adapter, BI.extend({\n container: this,\n render: this.popupView\n }, o.masker), this);\n }\n },\n\n _startSearch: function () {\n this._assertPopupView();\n this._stop = false;\n this._isSearching = true;\n this.fireEvent(BI.Searcher.EVENT_START);\n this.popupView.startSearch && this.popupView.startSearch();\n // 搜索前先清空dom\n // BI.Maskers.get(this.getName()).empty();\n BI.nextTick(function (name) {\n BI.Maskers.show(name);\n }, this.getName());\n },\n\n _pauseSearch: function () {\n var o = this.options, name = this.getName();\n this._stop = true;\n BI.nextTick(function (name) {\n BI.Maskers.hide(name);\n }, this.getName());\n if (this._isSearching === true) {\n this.popupView && this.popupView.pauseSearch && this.popupView.pauseSearch();\n this.fireEvent(BI.Searcher.EVENT_PAUSE);\n }\n this._isSearching = false;\n },\n\n _stopSearch: function () {\n var o = this.options, name = this.getName();\n this._stop = true;\n BI.Maskers.hide(name);\n if (this._isSearching === true) {\n this.popupView && this.popupView.stopSearch && this.popupView.stopSearch();\n this.fireEvent(BI.Searcher.EVENT_STOP);\n }\n this._isSearching = false;\n },\n\n _search: function () {\n var self = this, o = this.options, keyword = this._getLastSearchKeyword();\n if (keyword === \"\" || this._stop) {\n return;\n }\n if (o.isAutoSearch) {\n var items = (o.adapter && ((o.adapter.getItems && o.adapter.getItems()) || o.adapter.attr(\"items\"))) || [];\n var finding = BI.Func.getSearchResult(items, keyword);\n var match = finding.match, find = finding.find;\n this.popupView.populate(find, match, keyword);\n o.isAutoSync && o.adapter && o.adapter.getValue && this.popupView.setValue(o.adapter.getValue());\n self.fireEvent(BI.Searcher.EVENT_SEARCHING);\n return;\n }\n this.popupView.loading && this.popupView.loading();\n o.onSearch({\n times: 1,\n keyword: keyword,\n selectedValues: o.adapter && o.adapter.getValue()\n }, function (searchResult, matchResult) {\n if (!self._stop) {\n var args = [].slice.call(arguments);\n if (args.length > 0) {\n args.push(keyword);\n }\n BI.Maskers.show(self.getName());\n self.popupView.populate.apply(self.popupView, args);\n o.isAutoSync && o.adapter && o.adapter.getValue && self.popupView.setValue(o.adapter.getValue());\n self.popupView.loaded && self.popupView.loaded();\n self.fireEvent(BI.Searcher.EVENT_SEARCHING);\n }\n });\n },\n\n _getLastSearchKeyword: function () {\n if (this.isValid()) {\n var res = this.editor.getValue().match(/[\\S]+/g);\n return BI.isNull(res) ? \"\" : res[res.length - 1];\n }\n },\n\n setAdapter: function (adapter) {\n this.options.adapter = adapter;\n BI.Maskers.remove(this.getName());\n },\n\n doSearch: function () {\n if (this.isSearching()) {\n this._search();\n }\n },\n\n stopSearch: function () {\n this._stopSearch();// 先停止搜索,然后再去设置editor为空\n // important:停止搜索必须退出编辑状态,这里必须加上try(input框不显示时blur会抛异常)\n try {\n this.editor.blur();\n } catch (e) {\n if (!this.editor.blur) {\n throw new Error(\"editor没有实现blur方法\");\n }\n } finally {\n this.editor.setValue(\"\");\n }\n },\n\n isSearching: function () {\n return this._isSearching;\n },\n\n isViewVisible: function () {\n return this.editor.isEnabled() && BI.Maskers.isVisible(this.getName());\n },\n\n getView: function () {\n return this.popupView;\n },\n\n hasMatched: function () {\n this._assertPopupView();\n return this.popupView.hasMatched();\n },\n\n adjustHeight: function () {\n if (BI.Maskers.has(this.getName()) && BI.Maskers.get(this.getName()).isVisible()) {\n BI.Maskers.show(this.getName());\n }\n },\n\n adjustView: function () {\n this.isViewVisible() && BI.Maskers.show(this.getName());\n },\n\n setValue: function (v) {\n if (BI.isNull(this.popupView)) {\n this.options.popup.value = v;\n } else {\n this.popupView.setValue(v);\n }\n },\n\n getKeyword: function () {\n return this._getLastSearchKeyword();\n },\n\n getKeywords: function () {\n return this.editor.getKeywords();\n },\n\n getValue: function () {\n var o = this.options;\n if (o.isAutoSync && o.adapter && o.adapter.getValue) {\n return o.adapter.getValue();\n }\n if (this.isSearching()) {\n return this.popupView.getValue();\n } else if (o.adapter && o.adapter.getValue) {\n return o.adapter.getValue();\n }\n if (BI.isNull(this.popupView)) {\n return o.popup.value;\n }\n return this.popupView.getValue();\n\n },\n\n populate: function (result, searchResult, keyword) {\n var o = this.options;\n this._assertPopupView();\n this.popupView.populate.apply(this.popupView, arguments);\n if (o.isAutoSync && o.adapter && o.adapter.getValue) {\n this.popupView.setValue(o.adapter.getValue());\n }\n },\n\n empty: function () {\n this.popupView && this.popupView.empty();\n },\n\n destroyed: function () {\n BI.Maskers.remove(this.getName());\n }\n});\nBI.Searcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.Searcher.EVENT_START = \"EVENT_START\";\nBI.Searcher.EVENT_STOP = \"EVENT_STOP\";\nBI.Searcher.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.Searcher.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.Searcher.EVENT_AFTER_INIT = \"EVENT_AFTER_INIT\";\n\nBI.shortcut(\"bi.searcher\", BI.Searcher);/**\n *\n * 切换显示或隐藏面板\n *\n * Created by GUY on 2015/11/2.\n * @class BI.Switcher\n * @extends BI.Widget\n */\nBI.Switcher = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Switcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-switcher\",\n direction: BI.Direction.Top,\n trigger: \"click\",\n toggle: true,\n el: {},\n popup: {},\n adapter: null,\n masker: {},\n switcherClass: \"bi-switcher-popup\",\n hoverClass: \"bi-switcher-hover\"\n });\n },\n\n _init: function () {\n BI.Switcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this._initSwitcher();\n this._initPullDownAction();\n this.switcher.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (self.isEnabled() && self.isValid()) {\n if (type === BI.Events.EXPAND) {\n self._popupView();\n }\n if (type === BI.Events.COLLAPSE) {\n self._hideView();\n }\n if (type === BI.Events.EXPAND) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.fireEvent(BI.Switcher.EVENT_EXPAND);\n }\n if (type === BI.Events.COLLAPSE) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.isViewVisible() && self.fireEvent(BI.Switcher.EVENT_COLLAPSE);\n }\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.Switcher.EVENT_TRIGGER_CHANGE, value, obj);\n }\n }\n });\n\n this.element.hover(function () {\n if (self.isEnabled() && self.switcher.isEnabled()) {\n self.element.addClass(o.hoverClass);\n }\n }, function () {\n if (self.isEnabled() && self.switcher.isEnabled()) {\n self.element.removeClass(o.hoverClass);\n }\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [\n {el: this.switcher}\n ]\n });\n o.isDefaultInit && (this._assertPopupView());\n },\n\n _toggle: function () {\n this._assertPopupView();\n if (this.isExpanded()) {\n this._hideView();\n } else {\n if (this.isEnabled()) {\n this._popupView();\n }\n }\n },\n\n _initPullDownAction: function () {\n var self = this, o = this.options;\n var evs = this.options.trigger.split(\",\");\n BI.each(evs, function (i, e) {\n switch (e) {\n case \"hover\":\n self.element[e](function (e) {\n if (self.isEnabled() && self.switcher.isEnabled()) {\n self._popupView();\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, \"\", self.switcher);\n self.fireEvent(BI.Switcher.EVENT_EXPAND);\n }\n }, function () {\n if (self.isEnabled() && self.switcher.isEnabled() && o.toggle) {\n self._hideView();\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, \"\", self.switcher);\n self.fireEvent(BI.Switcher.EVENT_COLLAPSE);\n }\n });\n break;\n default :\n if (e) {\n self.element.off(e + \".\" + self.getName()).on(e + \".\" + self.getName(), BI.debounce(function (e) {\n if (self.switcher.element.__isMouseInBounds__(e)) {\n if (self.isEnabled() && self.switcher.isEnabled()) {\n o.toggle ? self._toggle() : self._popupView();\n if (self.isExpanded()) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, \"\", self.switcher);\n self.fireEvent(BI.Switcher.EVENT_EXPAND);\n } else {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, \"\", self.switcher);\n self.fireEvent(BI.Switcher.EVENT_COLLAPSE);\n }\n }\n }\n }, BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n }));\n }\n break;\n }\n });\n },\n\n _initSwitcher: function () {\n this.switcher = BI.createWidget(this.options.el, {\n value: this.options.value\n });\n },\n\n _assertPopupView: function () {\n var self = this, o = this.options;\n if (!this._created) {\n this.popupView = BI.createWidget(o.popup, {\n type: \"bi.button_group\",\n element: o.adapter && BI.Maskers.create(this.getName(), o.adapter, BI.extend({container: this}, o.masker)),\n cls: \"switcher-popup\",\n layouts: [{\n type: \"bi.vertical\",\n hgap: 0,\n vgap: 0\n }],\n value: o.value\n }, this);\n this.popupView.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.Switcher.EVENT_CHANGE, value, obj);\n }\n });\n if (o.direction !== BI.Direction.Custom && !o.adapter) {\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [\n {el: this.popupView}\n ]\n });\n }\n this._created = true;\n BI.nextTick(function () {\n self.fireEvent(BI.Switcher.EVENT_AFTER_INIT);\n });\n }\n },\n\n _hideView: function () {\n this.fireEvent(BI.Switcher.EVENT_BEFORE_HIDEVIEW);\n var self = this, o = this.options;\n o.adapter ? BI.Maskers.hide(self.getName()) : (self.popupView && self.popupView.setVisible(false));\n BI.nextTick(function () {\n o.adapter ? BI.Maskers.hide(self.getName()) : (self.popupView && self.popupView.setVisible(false));\n self.element.removeClass(o.switcherClass);\n self.fireEvent(BI.Switcher.EVENT_AFTER_HIDEVIEW);\n });\n },\n\n _popupView: function () {\n var self = this, o = this.options;\n this._assertPopupView();\n this.fireEvent(BI.Switcher.EVENT_BEFORE_POPUPVIEW);\n o.adapter ? BI.Maskers.show(this.getName()) : self.popupView.setVisible(true);\n BI.nextTick(function (name) {\n o.adapter ? BI.Maskers.show(name) : self.popupView.setVisible(true);\n self.element.addClass(o.switcherClass);\n self.fireEvent(BI.Switcher.EVENT_AFTER_POPUPVIEW);\n }, this.getName());\n },\n\n populate: function (items) {\n this._assertPopupView();\n this.popupView.populate.apply(this.popupView, arguments);\n this.switcher.populate.apply(this.switcher, arguments);\n },\n\n _setEnable: function (arg) {\n BI.Switcher.superclass._setEnable.apply(this, arguments);\n !arg && this.isViewVisible() && this._hideView();\n },\n\n setValue: function (v) {\n this.switcher.setValue(v);\n if (BI.isNull(this.popupView)) {\n this.options.popup.value = v;\n } else {\n this.popupView.setValue(v);\n }\n },\n\n getValue: function () {\n if (BI.isNull(this.popupView)) {\n return this.options.popup.value;\n } else {\n return this.popupView.getValue();\n }\n },\n\n setAdapter: function (adapter) {\n this.options.adapter = adapter;\n BI.Maskers.remove(this.getName());\n },\n\n isViewVisible: function () {\n return this.isEnabled() && this.switcher.isEnabled() &&\n (this.options.adapter ? BI.Maskers.isVisible(this.getName()) : (this.popupView && this.popupView.isVisible()));\n },\n\n isExpanded: function () {\n return this.isViewVisible();\n },\n\n showView: function () {\n if (this.isEnabled() && this.switcher.isEnabled()) {\n this._popupView();\n }\n },\n\n hideView: function () {\n this._hideView();\n },\n\n getView: function () {\n return this.popupView;\n },\n\n adjustView: function () {\n this.isViewVisible() && BI.Maskers.show(this.getName());\n },\n\n getAllLeaves: function () {\n return this.popupView && this.popupView.getAllLeaves();\n },\n\n getNodeById: function (id) {\n if (this.switcher.attr(\"id\") === id) {\n return this.switcher;\n }\n return this.popupView && this.popupView.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n if (this.switcher.getValue() === value) {\n return this.switcher;\n }\n return this.popupView && this.popupView.getNodeByValue(value);\n },\n\n empty: function () {\n this.popupView && this.popupView.empty();\n }\n});\nBI.Switcher.EVENT_EXPAND = \"EVENT_EXPAND\";\nBI.Switcher.EVENT_COLLAPSE = \"EVENT_COLLAPSE\";\nBI.Switcher.EVENT_TRIGGER_CHANGE = \"EVENT_TRIGGER_CHANGE\";\nBI.Switcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.Switcher.EVENT_AFTER_INIT = \"EVENT_AFTER_INIT\";\n\n\nBI.Switcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.Switcher.EVENT_AFTER_POPUPVIEW = \"EVENT_AFTER_POPUPVIEW\";\nBI.Switcher.EVENT_BEFORE_HIDEVIEW = \"EVENT_BEFORE_HIDEVIEW\";\nBI.Switcher.EVENT_AFTER_HIDEVIEW = \"EVENT_AFTER_HIDEVIEW\";\n\nBI.shortcut(\"bi.switcher\", BI.Switcher);/**\n * Created by GUY on 2015/6/26.\n */\n\nBI.Tab = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Tab.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-tab\",\n direction: \"top\", // top, bottom, left, right, custom\n single: false, // 是不是单页面\n logic: {\n dynamic: false\n },\n showIndex: false,\n tab: false,\n cardCreator: function (v) {\n return BI.createWidget();\n }\n });\n },\n\n render: function () {\n var self = this, o = this.options;\n if (BI.isObject(o.tab)) {\n this.tab = BI.createWidget(this.options.tab, {type: \"bi.button_group\"});\n this.tab.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n }\n this.cardMap = {};\n this.layout = BI.createWidget({\n type: \"bi.card\"\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({}, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.tab, this.layout)\n }))));\n\n var listener = new BI.ShowListener({\n eventObj: this.tab,\n cardLayout: this.layout,\n cardCreator: function (v) {\n var card = o.cardCreator.apply(self, arguments);\n self.cardMap[v] = card;\n return card;\n },\n afterCardShow: function (v) {\n self._deleteOtherCards(v);\n self.curr = v;\n }\n });\n listener.on(BI.ShowListener.EVENT_CHANGE, function (value) {\n self.fireEvent(BI.Tab.EVENT_CHANGE, value, self);\n });\n },\n\n _deleteOtherCards: function (currCardName) {\n var self = this, o = this.options;\n if (o.single === true) {\n BI.each(this.cardMap, function (name, card) {\n if (name !== (currCardName + \"\")) {\n self.layout.deleteCardByName(name);\n delete self.cardMap[name];\n }\n });\n }\n },\n\n _assertCard: function (v) {\n if (!this.layout.isCardExisted(v)) {\n var card = this.options.cardCreator(v);\n this.cardMap[v] = card;\n this.layout.addCardByName(v, card);\n }\n },\n\n mounted: function () {\n var o = this.options;\n if (o.showIndex !== false) {\n this.setSelect(o.showIndex);\n }\n },\n\n setSelect: function (v) {\n this.tab && this.tab.setValue(v);\n this._assertCard(v);\n this.layout.showCardByName(v);\n this._deleteOtherCards(v);\n if (this.curr !== v) {\n this.curr = v;\n }\n },\n\n removeTab: function (cardname) {\n var self = this, o = this.options;\n BI.any(this.cardMap, function (name, card) {\n if (BI.isEqual(name, (cardname + \"\"))) {\n self.layout.deleteCardByName(name);\n delete self.cardMap[name];\n return true;\n }\n });\n },\n\n getSelect: function () {\n return this.curr;\n },\n\n getSelectedTab: function () {\n return this.layout.getShowingCard();\n },\n\n getTab: function (v) {\n this._assertCard(v);\n return this.layout.getCardByName(v);\n },\n\n setValue: function (v) {\n var card = this.layout.getShowingCard();\n if (card) {\n card.setValue(v);\n }\n },\n\n getValue: function () {\n var card = this.layout.getShowingCard();\n if (card) {\n return card.getValue();\n }\n },\n\n populate: function () {\n var card = this.layout.getShowingCard();\n if (card) {\n return card.populate && card.populate.apply(card, arguments);\n }\n },\n\n empty: function () {\n this.layout.deleteAllCard();\n this.cardMap = {};\n },\n\n destroy: function () {\n this.cardMap = {};\n BI.Tab.superclass.destroy.apply(this, arguments);\n }\n});\nBI.Tab.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.tab\", BI.Tab);/**\n * 表示当前对象\n *\n * Created by GUY on 2015/9/7.\n * @class BI.EL\n * @extends BI.Widget\n */\nBI.EL = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.EL.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-el\",\n el: {},\n layout: {}\n });\n },\n _init: function () {\n BI.EL.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.ele = BI.createWidget(o.el);\n BI.createWidget(o.layout, {\n type: \"bi.adaptive\",\n element: this,\n items: [this.ele]\n });\n this.ele.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n },\n\n setValue: function (v) {\n this.ele.setValue(v);\n },\n\n getValue: function () {\n return this.ele.getValue();\n },\n\n populate: function () {\n this.ele.populate.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.el\", BI.EL);/**\n * z-index在1亿层级\n * 弹出提示消息框,用于模拟阻塞操作(通过回调函数实现)\n * @class BI.Msg\n */\nBI.Msg = function () {\n\n var messageShow, $mask, $pop;\n\n var toastStack = [];\n\n return {\n alert: function (title, message, callback) {\n this._show(false, title, message, callback);\n },\n confirm: function (title, message, callback) {\n this._show(true, title, message, callback);\n },\n prompt: function (title, message, value, callback, min_width) {\n // BI.Msg.prompt(title, message, value, callback, min_width);\n },\n toast: function (message, options, context) {\n options = options || {};\n context = context || BI.Widget._renderEngine.createElement(\"body\");\n var level = options.level || \"normal\";\n var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose;\n var callback = BI.isFunction(options.callback) ? options.callback : BI.emptyFn;\n var toast = BI.createWidget({\n type: \"bi.toast\",\n cls: \"bi-message-animate bi-message-leave\",\n level: level,\n autoClose: autoClose,\n text: message,\n listeners: [{\n eventName: BI.Toast.EVENT_DESTORY,\n action: function () {\n BI.remove(toastStack, toast.element);\n var _height = 10;\n BI.each(toastStack, function (i, element) {\n element.css({\"top\": _height});\n _height += element.outerHeight() + 10;\n });\n callback();\n }\n }]\n });\n var height = 10;\n BI.each(toastStack, function (i, element) {\n height += element.outerHeight() + 10;\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: context,\n items: [{\n el: toast,\n left: \"50%\",\n top: height\n }]\n });\n toastStack.push(toast.element);\n toast.element.css({\"margin-left\": -1 * toast.element.outerWidth() / 2});\n toast.element.removeClass(\"bi-message-leave\").addClass(\"bi-message-enter\");\n\n autoClose && BI.delay(function () {\n toast.element.removeClass(\"bi-message-enter\").addClass(\"bi-message-leave\");\n toast.destroy();\n }, 5000);\n },\n _show: function (hasCancel, title, message, callback) {\n $mask = BI.Widget._renderEngine.createElement(\"<div class=\\\"bi-z-index-mask\\\">\").css({\n position: \"absolute\",\n zIndex: BI.zIndex_tip - 2,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n opacity: 0.5\n }).appendTo(\"body\");\n $pop = BI.Widget._renderEngine.createElement(\"<div class=\\\"bi-message-depend\\\">\").css({\n position: \"absolute\",\n zIndex: BI.zIndex_tip - 1,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }).appendTo(\"body\");\n var close = function () {\n messageShow.destroy();\n $mask.remove();\n };\n var controlItems = [];\n if (hasCancel === true) {\n controlItems.push({\n el: {\n type: \"bi.button\",\n text: BI.i18nText(\"BI-Basic_Cancel\"),\n level: \"ignore\",\n handler: function () {\n close();\n if (BI.isFunction(callback)) {\n callback.apply(null, [false]);\n }\n }\n }\n });\n }\n controlItems.push({\n el: {\n type: \"bi.button\",\n text: BI.i18nText(\"BI-Basic_OK\"),\n handler: function () {\n close();\n if (BI.isFunction(callback)) {\n callback.apply(null, [true]);\n }\n }\n }\n });\n var conf = {\n element: $pop,\n type: \"bi.center_adapt\",\n items: [\n {\n type: \"bi.border\",\n cls: \"bi-card\",\n items: {\n north: {\n el: {\n type: \"bi.border\",\n cls: \"bi-message-title bi-background\",\n items: {\n center: {\n el: {\n type: \"bi.label\",\n cls: \"bi-font-bold\",\n text: title || BI.i18nText(\"BI-Basic_Prompt\"),\n textAlign: \"left\",\n hgap: 20,\n height: 40\n }\n },\n east: {\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-message-close close-font\",\n // height: 50,\n handler: function () {\n close();\n if (BI.isFunction(callback)) {\n callback.apply(null, [false]);\n }\n }\n },\n width: 60\n }\n }\n },\n height: 40\n },\n center: {\n el: {\n type: \"bi.label\",\n vgap: 10,\n hgap: 20,\n whiteSpace: \"normal\",\n text: message\n }\n },\n south: {\n el: {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.right_vertical_adapt\",\n lgap: 10,\n items: controlItems\n },\n top: 0,\n left: 20,\n right: 20,\n bottom: 0\n }]\n\n },\n height: 44\n }\n },\n width: 450,\n height: 200\n }\n ]\n };\n\n messageShow = BI.createWidget(conf);\n }\n };\n}();/**\n * GridView\n *\n * Created by GUY on 2016/1/11.\n * @class BI.GridView\n * @extends BI.Widget\n */\nBI.GridView = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.GridView.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-grid-view\",\n // width: 400, //必设\n // height: 300, //必设\n overflowX: true,\n overflowY: true,\n overscanColumnCount: 0,\n overscanRowCount: 0,\n rowHeightGetter: BI.emptyFn, // number类型或function类型\n columnWidthGetter: BI.emptyFn, // number类型或function类型\n // estimatedColumnSize: 100, //columnWidthGetter为function时必设\n // estimatedRowSize: 30, //rowHeightGetter为function时必设\n scrollLeft: 0,\n scrollTop: 0,\n items: []\n });\n },\n\n _init: function () {\n BI.GridView.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.renderedCells = [];\n this.renderedKeys = [];\n this.renderRange = {};\n this._scrollLock = false;\n this._debounceRelease = BI.debounce(function () {\n self._scrollLock = false;\n }, 1000 / 60);\n this.container = BI.createWidget({\n type: \"bi.absolute\"\n });\n this.element.scroll(function () {\n if (self._scrollLock === true) {\n return;\n }\n o.scrollLeft = self.element.scrollLeft();\n o.scrollTop = self.element.scrollTop();\n self._calculateChildrenToRender();\n self.fireEvent(BI.GridView.EVENT_SCROLL, {\n scrollLeft: o.scrollLeft,\n scrollTop: o.scrollTop\n });\n });\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n scrollable: o.overflowX === true && o.overflowY === true,\n scrolly: o.overflowX === false && o.overflowY === true,\n scrollx: o.overflowX === true && o.overflowY === false,\n items: [this.container]\n });\n if (o.items.length > 0) {\n this._populate();\n }\n },\n\n mounted: function () {\n var o = this.options;\n if (o.scrollLeft !== 0 || o.scrollTop !== 0) {\n this.element.scrollTop(o.scrollTop);\n this.element.scrollLeft(o.scrollLeft);\n }\n },\n\n _getOverscanIndices: function (cellCount, overscanCellsCount, startIndex, stopIndex) {\n return {\n overscanStartIndex: Math.max(0, startIndex - overscanCellsCount),\n overscanStopIndex: Math.min(cellCount - 1, stopIndex + overscanCellsCount)\n };\n },\n\n _calculateChildrenToRender: function () {\n var self = this, o = this.options;\n\n var width = o.width, height = o.height, scrollLeft = BI.clamp(o.scrollLeft, 0, this._getMaxScrollLeft()),\n scrollTop = BI.clamp(o.scrollTop, 0, this._getMaxScrollTop()),\n overscanColumnCount = o.overscanColumnCount, overscanRowCount = o.overscanRowCount;\n\n if (height > 0 && width > 0) {\n var visibleColumnIndices = this._columnSizeAndPositionManager.getVisibleCellRange(width, scrollLeft);\n var visibleRowIndices = this._rowSizeAndPositionManager.getVisibleCellRange(height, scrollTop);\n\n if (BI.isEmpty(visibleColumnIndices) || BI.isEmpty(visibleRowIndices)) {\n return;\n }\n var horizontalOffsetAdjustment = this._columnSizeAndPositionManager.getOffsetAdjustment(width, scrollLeft);\n var verticalOffsetAdjustment = this._rowSizeAndPositionManager.getOffsetAdjustment(height, scrollTop);\n\n this._renderedColumnStartIndex = visibleColumnIndices.start;\n this._renderedColumnStopIndex = visibleColumnIndices.stop;\n this._renderedRowStartIndex = visibleRowIndices.start;\n this._renderedRowStopIndex = visibleRowIndices.stop;\n\n var overscanColumnIndices = this._getOverscanIndices(this.columnCount, overscanColumnCount, this._renderedColumnStartIndex, this._renderedColumnStopIndex);\n\n var overscanRowIndices = this._getOverscanIndices(this.rowCount, overscanRowCount, this._renderedRowStartIndex, this._renderedRowStopIndex);\n\n var columnStartIndex = overscanColumnIndices.overscanStartIndex;\n var columnStopIndex = overscanColumnIndices.overscanStopIndex;\n var rowStartIndex = overscanRowIndices.overscanStartIndex;\n var rowStopIndex = overscanRowIndices.overscanStopIndex;\n\n // 算区间size\n var minRowDatum = this._rowSizeAndPositionManager.getSizeAndPositionOfCell(rowStartIndex);\n var minColumnDatum = this._columnSizeAndPositionManager.getSizeAndPositionOfCell(columnStartIndex);\n var maxRowDatum = this._rowSizeAndPositionManager.getSizeAndPositionOfCell(rowStopIndex);\n var maxColumnDatum = this._columnSizeAndPositionManager.getSizeAndPositionOfCell(columnStopIndex);\n var top = minRowDatum.offset + verticalOffsetAdjustment;\n var left = minColumnDatum.offset + horizontalOffsetAdjustment;\n var bottom = maxRowDatum.offset + verticalOffsetAdjustment + maxRowDatum.size;\n var right = maxColumnDatum.offset + horizontalOffsetAdjustment + maxColumnDatum.size;\n // 如果滚动的区间并没有超出渲染的范围\n if (top >= this.renderRange.minY && bottom <= this.renderRange.maxY && left >= this.renderRange.minX && right <= this.renderRange.maxX) {\n return;\n }\n\n var renderedCells = [], renderedKeys = {}, renderedWidgets = {};\n var minX = this._getMaxScrollLeft(), minY = this._getMaxScrollTop(), maxX = 0, maxY = 0;\n var count = 0;\n for (var rowIndex = rowStartIndex; rowIndex <= rowStopIndex; rowIndex++) {\n var rowDatum = this._rowSizeAndPositionManager.getSizeAndPositionOfCell(rowIndex);\n\n for (var columnIndex = columnStartIndex; columnIndex <= columnStopIndex; columnIndex++) {\n var key = rowIndex + \"-\" + columnIndex;\n var columnDatum = this._columnSizeAndPositionManager.getSizeAndPositionOfCell(columnIndex);\n\n var index = this.renderedKeys[key] && this.renderedKeys[key][2];\n var child;\n if (index >= 0) {\n if (columnDatum.size !== this.renderedCells[index]._width) {\n this.renderedCells[index]._width = columnDatum.size;\n this.renderedCells[index].el.setWidth(columnDatum.size);\n }\n if (rowDatum.size !== this.renderedCells[index]._height) {\n this.renderedCells[index]._height = rowDatum.size;\n this.renderedCells[index].el.setHeight(rowDatum.size);\n }\n if (this.renderedCells[index]._left !== columnDatum.offset + horizontalOffsetAdjustment) {\n this.renderedCells[index].el.element.css(\"left\", (columnDatum.offset + horizontalOffsetAdjustment) + \"px\");\n }\n if (this.renderedCells[index]._top !== rowDatum.offset + verticalOffsetAdjustment) {\n this.renderedCells[index].el.element.css(\"top\", (rowDatum.offset + verticalOffsetAdjustment) + \"px\");\n }\n renderedCells.push(child = this.renderedCells[index]);\n } else {\n child = BI.createWidget(BI.extend({\n type: \"bi.label\",\n width: columnDatum.size,\n height: rowDatum.size\n }, o.items[rowIndex][columnIndex], {\n cls: (o.items[rowIndex][columnIndex].cls || \"\") + \" grid-cell\" + (rowIndex === 0 ? \" first-row\" : \"\") + (columnIndex === 0 ? \" first-col\" : \"\"),\n _rowIndex: rowIndex,\n _columnIndex: columnIndex,\n _left: columnDatum.offset + horizontalOffsetAdjustment,\n _top: rowDatum.offset + verticalOffsetAdjustment\n }), this);\n renderedCells.push({\n el: child,\n left: columnDatum.offset + horizontalOffsetAdjustment,\n top: rowDatum.offset + verticalOffsetAdjustment,\n _left: columnDatum.offset + horizontalOffsetAdjustment,\n _top: rowDatum.offset + verticalOffsetAdjustment,\n _width: columnDatum.size,\n _height: rowDatum.size\n });\n }\n minX = Math.min(minX, columnDatum.offset + horizontalOffsetAdjustment);\n maxX = Math.max(maxX, columnDatum.offset + horizontalOffsetAdjustment + columnDatum.size);\n minY = Math.min(minY, rowDatum.offset + verticalOffsetAdjustment);\n maxY = Math.max(maxY, rowDatum.offset + verticalOffsetAdjustment + rowDatum.size);\n renderedKeys[key] = [rowIndex, columnIndex, count];\n renderedWidgets[count] = child;\n count++;\n }\n }\n // 已存在的, 需要添加的和需要删除的\n var existSet = {}, addSet = {}, deleteArray = [];\n BI.each(renderedKeys, function (i, key) {\n if (self.renderedKeys[i]) {\n existSet[i] = key;\n } else {\n addSet[i] = key;\n }\n });\n BI.each(this.renderedKeys, function (i, key) {\n if (existSet[i]) {\n return;\n }\n if (addSet[i]) {\n return;\n }\n deleteArray.push(key[2]);\n });\n BI.each(deleteArray, function (i, index) {\n // 性能优化,不调用destroy方法防止触发destroy事件\n self.renderedCells[index].el._destroy();\n });\n var addedItems = [];\n BI.each(addSet, function (index, key) {\n addedItems.push(renderedCells[key[2]]);\n });\n // 与listview一样, 给上下文\n this.container.addItems(addedItems, this);\n // 拦截父子级关系\n this.container._children = renderedWidgets;\n this.container.attr(\"items\", renderedCells);\n this.renderedCells = renderedCells;\n this.renderedKeys = renderedKeys;\n this.renderRange = {minX: minX, minY: minY, maxX: maxX, maxY: maxY};\n }\n },\n\n /**\n * 获取真实的可滚动的最大宽度\n * 对于grid_view如果没有全部渲染过,this._columnSizeAndPositionManager.getTotalSize获取的宽度是不准确的\n * 因此在调用setScrollLeft等函数时会造成没法移动到最右端(预估可移动具体太短)\n */\n _getRealMaxScrollLeft: function () {\n var o = this.options;\n var totalWidth = 0;\n BI.count(0, this.columnCount, function (index) {\n totalWidth += o.columnWidthGetter(index);\n });\n return Math.max(0, totalWidth - this.options.width + (this.options.overflowX ? BI.DOM.getScrollWidth() : 0));\n },\n\n _getMaxScrollLeft: function () {\n return Math.max(0, this._columnSizeAndPositionManager.getTotalSize() - this.options.width + (this.options.overflowX ? BI.DOM.getScrollWidth() : 0));\n },\n\n _getMaxScrollTop: function () {\n return Math.max(0, this._rowSizeAndPositionManager.getTotalSize() - this.options.height + (this.options.overflowY ? BI.DOM.getScrollWidth() : 0));\n },\n\n _populate: function (items) {\n var self = this, o = this.options;\n this._reRange();\n this.columnCount = 0;\n this.rowCount = 0;\n if (items && items !== this.options.items) {\n this.options.items = items;\n }\n if (BI.isNumber(o.columnCount)) {\n this.columnCount = o.columnCount;\n } else if (o.items.length > 0) {\n this.columnCount = o.items[0].length;\n }\n if (BI.isNumber(o.rowCount)) {\n this.rowCount = o.rowCount;\n } else {\n this.rowCount = o.items.length;\n }\n this.container.setWidth(this.columnCount * o.estimatedColumnSize);\n this.container.setHeight(this.rowCount * o.estimatedRowSize);\n\n this._columnSizeAndPositionManager = new BI.ScalingCellSizeAndPositionManager(this.columnCount, o.columnWidthGetter, o.estimatedColumnSize);\n this._rowSizeAndPositionManager = new BI.ScalingCellSizeAndPositionManager(this.rowCount, o.rowHeightGetter, o.estimatedRowSize);\n\n this._calculateChildrenToRender();\n // 元素未挂载时不能设置scrollTop\n try {\n this.element.scrollTop(o.scrollTop);\n this.element.scrollLeft(o.scrollLeft);\n } catch (e) {\n }\n },\n\n setScrollLeft: function (scrollLeft) {\n if (this.options.scrollLeft === scrollLeft) {\n return;\n }\n this._scrollLock = true;\n this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getRealMaxScrollLeft());\n this._debounceRelease();\n this._calculateChildrenToRender();\n this.element.scrollLeft(this.options.scrollLeft);\n },\n\n setScrollTop: function (scrollTop) {\n if (this.options.scrollTop === scrollTop) {\n return;\n }\n this._scrollLock = true;\n this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop());\n this._debounceRelease();\n this._calculateChildrenToRender();\n this.element.scrollTop(this.options.scrollTop);\n },\n\n setColumnCount: function (columnCount) {\n this.options.columnCount = columnCount;\n },\n\n setRowCount: function (rowCount) {\n this.options.rowCount = rowCount;\n },\n\n setOverflowX: function (b) {\n var self = this;\n if (this.options.overflowX !== !!b) {\n this.options.overflowX = !!b;\n BI.nextTick(function () {\n self.element.css({overflowX: b ? \"auto\" : \"hidden\"});\n });\n }\n },\n\n setOverflowY: function (b) {\n var self = this;\n if (this.options.overflowY !== !!b) {\n this.options.overflowY = !!b;\n BI.nextTick(function () {\n self.element.css({overflowY: b ? \"auto\" : \"hidden\"});\n });\n }\n },\n\n getScrollLeft: function () {\n return this.options.scrollLeft;\n },\n\n getScrollTop: function () {\n return this.options.scrollTop;\n },\n\n getMaxScrollLeft: function () {\n return this._getMaxScrollLeft();\n },\n\n getMaxScrollTop: function () {\n return this._getMaxScrollTop();\n },\n\n setEstimatedColumnSize: function (width) {\n this.options.estimatedColumnSize = width;\n },\n\n setEstimatedRowSize: function (height) {\n this.options.estimatedRowSize = height;\n },\n\n // 重新计算children\n _reRange: function () {\n this.renderRange = {};\n },\n\n _clearChildren: function () {\n this.container._children = {};\n this.container.attr(\"items\", []);\n },\n\n restore: function () {\n BI.each(this.renderedCells, function (i, cell) {\n cell.el._destroy();\n });\n this._clearChildren();\n this.renderedCells = [];\n this.renderedKeys = [];\n this.renderRange = {};\n this._scrollLock = false;\n },\n\n populate: function (items) {\n if (items && items !== this.options.items) {\n this.restore();\n }\n this._populate(items);\n }\n});\nBI.GridView.EVENT_SCROLL = \"EVENT_SCROLL\";\nBI.shortcut(\"bi.grid_view\", BI.GridView);\n/**\n * Popover弹出层,\n * @class BI.Popover\n * @extends BI.Widget\n */\nBI.Popover = BI.inherit(BI.Widget, {\n _constant: {\n SIZE: {\n SMALL: \"small\",\n NORMAL: \"normal\",\n BIG: \"big\"\n },\n HEADER_HEIGHT: 40\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.Popover.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-popover bi-card bi-border-radius\",\n // width: 600,\n // height: 500,\n size: \"normal\", // small, normal, big\n logic: {\n dynamic: false\n },\n header: null,\n body: null,\n footer: null,\n closable: true // BI-40839 是否显示右上角的关闭按钮\n });\n },\n render: function () {\n var self = this, o = this.options;\n this.startX = 0;\n this.startY = 0;\n this.tracker = new BI.MouseMoveTracker(function (deltaX, deltaY) {\n var size = self._calculateSize();\n var W = BI.Widget._renderEngine.createElement(\"body\").width(), H = BI.Widget._renderEngine.createElement(\"body\").height();\n self.startX += deltaX;\n self.startY += deltaY;\n self.element.css({\n left: BI.clamp(self.startX, 0, W - self.element.width()) + \"px\",\n top: BI.clamp(self.startY, 0, H - self.element.height()) + \"px\"\n });\n // BI-12134 没有什么特别好的方法\n BI.Resizers._resize();\n }, function () {\n self.tracker.releaseMouseMoves();\n }, _global);\n var items = [{\n el: {\n type: \"bi.htape\",\n cls: \"bi-message-title bi-header-background\",\n ref: function (_ref) {\n self.dragger = _ref;\n },\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, {\n extraCls: \"bi-font-bold\"\n }) : {\n type: \"bi.label\",\n cls: \"bi-font-bold\",\n height: this._constant.HEADER_HEIGHT,\n text: o.header,\n title: o.header,\n textAlign: \"left\"\n },\n left: 20,\n top: 0,\n right: 0,\n bottom: 0\n }]\n }, {\n el: o.closable ? {\n type: \"bi.icon_button\",\n cls: \"bi-message-close close-font\",\n height: this._constant.HEADER_HEIGHT,\n handler: function () {\n self.close();\n }\n } : {\n type: \"bi.layout\"\n },\n width: 56\n }],\n height: this._constant.HEADER_HEIGHT\n },\n height: this._constant.HEADER_HEIGHT\n }, {\n el: o.logic.dynamic ? {\n type: \"bi.vertical\",\n scrolly: false,\n cls: \"popover-body\",\n ref: function () {\n self.body = this;\n },\n hgap: 20,\n tgap: 10,\n items: [{\n el: BI.createWidget(o.body)\n }]\n } : {\n type: \"bi.absolute\",\n items: [{\n el: BI.createWidget(o.body),\n left: 20,\n top: 10,\n right: 20,\n bottom: 0\n }]\n }\n }];\n if (o.footer) {\n items.push({\n el: {\n type: \"bi.absolute\",\n items: [{\n el: BI.createWidget(o.footer),\n left: 20,\n top: 0,\n right: 20,\n bottom: 0\n }],\n height: 44\n },\n height: 44\n });\n }\n\n var size = this._calculateSize();\n\n return BI.extend({\n type: o.logic.dynamic ? \"bi.vertical\" : \"bi.vtape\",\n items: items,\n width: size.width\n }, o.logic.dynamic ? {\n type: \"bi.vertical\",\n scrolly: false\n } : {\n type: \"bi.vtape\",\n height: size.height\n });\n },\n\n mounted: function () {\n var self = this, o = this.options;\n this.dragger.element.mousedown(function (e) {\n var pos = self.element.offset();\n self.startX = pos.left;\n self.startY = pos.top;\n self.tracker.captureMouseMoves(e);\n });\n if (o.logic.dynamic) {\n var size = this._calculateSize();\n var height = this.element.height();\n var compareHeight = BI.clamp(height, size.height, 600) - (o.footer ? 84 : 44);\n this.body.element.height(compareHeight);\n }\n },\n\n _calculateSize: function () {\n var o = this.options;\n var size = {};\n if (BI.isNotNull(o.size)) {\n switch (o.size) {\n case this._constant.SIZE.SMALL:\n size.width = 450;\n size.height = 200;\n break;\n case this._constant.SIZE.BIG:\n size.width = 900;\n size.height = 500;\n break;\n default:\n size.width = 550;\n size.height = 500;\n }\n }\n return {\n width: o.width || size.width,\n height: o.height || size.height\n };\n },\n\n hide: function () {\n\n },\n\n open: function () {\n this.show();\n this.fireEvent(BI.Popover.EVENT_OPEN, arguments);\n },\n\n close: function () {\n this.hide();\n this.fireEvent(BI.Popover.EVENT_CLOSE, arguments);\n },\n\n setZindex: function (zindex) {\n this.element.css({\"z-index\": zindex});\n },\n\n destroyed: function () {\n }\n});\n\nBI.shortcut(\"bi.popover\", BI.Popover);\n\nBI.BarPopover = BI.inherit(BI.Popover, {\n _defaultConfig: function () {\n return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this, arguments), {\n btns: [BI.i18nText(\"BI-Basic_Sure\"), BI.i18nText(\"BI-Basic_Cancel\")]\n });\n },\n\n beforeCreate: function () {\n var self = this, o = this.options;\n o.footer || (o.footer = {\n type: \"bi.right_vertical_adapt\",\n lgap: 10,\n items: [{\n type: \"bi.button\",\n text: this.options.btns[1],\n value: 1,\n level: \"ignore\",\n handler: function (v) {\n self.fireEvent(BI.Popover.EVENT_CANCEL, v);\n self.close(v);\n }\n }, {\n type: \"bi.button\",\n text: this.options.btns[0],\n warningTitle: o.warningTitle,\n value: 0,\n handler: function (v) {\n self.fireEvent(BI.Popover.EVENT_CONFIRM, v);\n self.close(v);\n }\n }]\n });\n }\n});\n\nBI.shortcut(\"bi.bar_popover\", BI.BarPopover);\n\nBI.Popover.EVENT_CLOSE = \"EVENT_CLOSE\";\nBI.Popover.EVENT_OPEN = \"EVENT_OPEN\";\nBI.Popover.EVENT_CANCEL = \"EVENT_CANCEL\";\nBI.Popover.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n/**\n * 下拉框弹出层, zIndex在1000w\n * @class BI.PopupView\n * @extends BI.Widget\n */\nBI.PopupView = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.PopupView.superclass._defaultConfig.apply(this, arguments), {\n _baseCls: \"bi-popup-view\",\n maxWidth: \"auto\",\n minWidth: 100,\n // maxHeight: 200,\n minHeight: 24,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n vgap: 0,\n hgap: 0,\n innerVGap: 0,\n direction: BI.Direction.Top, // 工具栏的方向\n stopEvent: false, // 是否停止mousedown、mouseup事件\n stopPropagation: false, // 是否停止mousedown、mouseup向上冒泡\n logic: {\n dynamic: true\n },\n\n tool: false, // 自定义工具栏\n tabs: [], // 导航栏\n buttons: [], // toolbar栏\n\n el: {\n type: \"bi.button_group\",\n items: [],\n chooseType: 0,\n behaviors: {},\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n });\n },\n\n _init: function () {\n BI.PopupView.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var fn = function (e) {\n e.stopPropagation();\n }, stop = function (e) {\n e.stopEvent();\n return false;\n };\n this.element.css({\n \"z-index\": BI.zIndex_popup,\n \"min-width\": o.minWidth + \"px\",\n \"max-width\": o.maxWidth + \"px\"\n }).bind({click: fn});\n\n this.element.bind(\"mousewheel\", fn);\n\n o.stopPropagation && this.element.bind({mousedown: fn, mouseup: fn, mouseover: fn});\n o.stopEvent && this.element.bind({mousedown: stop, mouseup: stop, mouseover: stop});\n this.tool = this._createTool();\n this.tab = this._createTab();\n this.view = this._createView();\n this.toolbar = this._createToolBar();\n\n this.view.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.PopupView.EVENT_CHANGE);\n }\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({}, o.logic, {\n scrolly: false,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n vgap: o.vgap,\n hgap: o.hgap,\n items: BI.LogicFactory.createLogicItemsByDirection(o.direction,\n BI.extend({\n cls: \"list-view-outer bi-card list-view-shadow\"\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({}, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.tool, this.tab, this.view, this.toolbar)\n })))\n )\n }))));\n },\n\n _createView: function () {\n var o = this.options;\n this.button_group = BI.createWidget(o.el, {type: \"bi.button_group\", value: o.value});\n this.button_group.element.css({\"min-height\": o.minHeight + \"px\", \"padding-top\": o.innerVGap + \"px\", \"padding-bottom\": o.innerVGap + \"px\"});\n return this.button_group;\n },\n\n _createTool: function () {\n var o = this.options;\n if (false === o.tool) {\n return;\n }\n return BI.createWidget(o.tool);\n },\n\n _createTab: function () {\n var o = this.options;\n if (o.tabs.length === 0) {\n return;\n }\n return BI.createWidget({\n type: \"bi.center\",\n cls: \"list-view-tab\",\n height: 25,\n items: o.tabs,\n value: o.value\n });\n },\n\n _createToolBar: function () {\n var o = this.options;\n if (o.buttons.length === 0) {\n return;\n }\n\n return BI.createWidget({\n type: \"bi.center\",\n cls: \"list-view-toolbar bi-high-light bi-split-top\",\n height: 24,\n items: BI.createItems(o.buttons, {\n once: false,\n shadow: true,\n isShadowShowingOnSelected: true\n })\n });\n },\n\n getView: function () {\n return this.view;\n },\n\n populate: function (items) {\n this.view.populate.apply(this.view, arguments);\n },\n\n resetWidth: function (w) {\n this.options.width = w;\n this.element.width(w);\n },\n\n resetHeight: function (h) {\n var tbHeight = this.toolbar ? (this.toolbar.attr(\"height\") || 24) : 0,\n tabHeight = this.tab ? (this.tab.attr(\"height\") || 24) : 0,\n toolHeight = ((this.tool && this.tool.attr(\"height\")) || 24) * ((this.tool && this.tool.isVisible()) ? 1 : 0);\n var resetHeight = h - tbHeight - tabHeight - toolHeight - 2 * this.options.innerVGap;\n this.view.resetHeight ? this.view.resetHeight(resetHeight) :\n this.view.element.css({\"max-height\": resetHeight + \"px\"});\n },\n\n setValue: function (selectedValues) {\n this.tab && this.tab.setValue(selectedValues);\n this.view.setValue(selectedValues);\n },\n\n getValue: function () {\n return this.view.getValue();\n }\n});\nBI.PopupView.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.popup_view\", BI.PopupView);/**\n * 搜索面板\n *\n * Created by GUY on 2015/9/28.\n * @class BI.SearcherView\n * @extends BI.Pane\n */\n\nBI.SearcherView = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n var conf = BI.SearcherView.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-searcher-view bi-card\",\n tipText: BI.i18nText(\"BI-No_Select\"),\n chooseType: BI.Selection.Single,\n\n matcher: {// 完全匹配的构造器\n type: \"bi.button_group\",\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n items: [],\n layouts: [{\n type: \"bi.vertical\"\n }]\n },\n searcher: {\n type: \"bi.button_group\",\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n items: [],\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n });\n },\n\n _init: function () {\n BI.SearcherView.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.matcher = BI.createWidget(o.matcher, {\n type: \"bi.button_group\",\n chooseType: o.chooseType,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }],\n value: o.value\n });\n this.matcher.on(BI.Controller.EVENT_CHANGE, function (type, val, ob) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.SearcherView.EVENT_CHANGE, val, ob);\n }\n });\n this.spliter = BI.createWidget({\n type: \"bi.vertical\",\n height: 1,\n hgap: 10,\n items: [{\n type: \"bi.layout\",\n height: 1,\n cls: \"searcher-view-spliter bi-background\"\n }]\n });\n this.searcher = BI.createWidget(o.searcher, {\n type: \"bi.button_group\",\n chooseType: o.chooseType,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }],\n value: o.value\n });\n this.searcher.on(BI.Controller.EVENT_CHANGE, function (type, val, ob) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.SearcherView.EVENT_CHANGE, val, ob);\n }\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n items: [this.matcher, this.spliter, this.searcher]\n });\n },\n\n startSearch: function () {\n\n },\n\n stopSearch: function () {\n\n },\n\n setValue: function (v) {\n this.matcher.setValue(v);\n this.searcher.setValue(v);\n },\n\n getValue: function () {\n return this.matcher.getValue().concat(this.searcher.getValue());\n },\n\n populate: function (searchResult, matchResult, keyword) {\n searchResult || (searchResult = []);\n matchResult || (matchResult = []);\n this.setTipVisible(searchResult.length + matchResult.length === 0);\n this.spliter.setVisible(BI.isNotEmptyArray(matchResult) && BI.isNotEmptyArray(searchResult));\n this.matcher.populate(matchResult, keyword);\n this.searcher.populate(searchResult, keyword);\n },\n\n empty: function () {\n this.searcher.empty();\n this.matcher.empty();\n },\n\n hasMatched: function () {\n return this.matcher.getAllButtons().length > 0;\n }\n});\nBI.SearcherView.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.searcher_view\", BI.SearcherView);/**\n * 表示当前对象\n *\n * Created by GUY on 2017/5/23.\n * @class BI.ListView\n * @extends BI.Widget\n */\nBI.ListView = BI.inherit(BI.Widget, {\n props: function () {\n return {\n baseCls: \"bi-list-view\",\n overscanHeight: 100,\n blockSize: 10,\n scrollTop: 0,\n el: {},\n items: []\n };\n },\n\n init: function () {\n var self = this;\n this.renderedIndex = -1;\n this.cache = {};\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.vertical\",\n items: [BI.extend({\n type: \"bi.vertical\",\n scrolly: false,\n ref: function () {\n self.container = this;\n }\n }, o.el)],\n element: this\n };\n },\n\n mounted: function () {\n var self = this, o = this.options;\n this._populate();\n this.element.scroll(function (e) {\n o.scrollTop = self.element.scrollTop();\n self._calculateBlocksToRender();\n });\n var lastWidth = this.element.width(),\n lastHeight = this.element.height();\n BI.ResizeDetector.addResizeListener(this, function () {\n var width = self.element.width(),\n height = self.element.height();\n if (width !== lastWidth || height !== lastHeight) {\n lastWidth = width;\n lastHeight = height;\n self._calculateBlocksToRender();\n }\n });\n },\n\n _renderMoreIf: function () {\n var self = this, o = this.options;\n var height = this.element.height();\n var minContentHeight = o.scrollTop + height + o.overscanHeight;\n var index = (this.cache[this.renderedIndex] && (this.cache[this.renderedIndex].index + o.blockSize)) || 0,\n cnt = this.renderedIndex + 1;\n var lastHeight;\n var getElementHeight = function () {\n return self.container.element.height();\n };\n while ((lastHeight = getElementHeight()) < minContentHeight && index < o.items.length) {\n var items = o.items.slice(index, index + o.blockSize);\n this.container.addItems(items, this);\n var addedHeight = getElementHeight() - lastHeight;\n this.cache[cnt] = {\n index: index,\n scrollTop: lastHeight,\n height: addedHeight\n };\n this.renderedIndex = cnt;\n cnt++;\n index += o.blockSize;\n }\n },\n\n _calculateBlocksToRender: function () {\n var o = this.options;\n this._renderMoreIf();\n },\n\n _populate: function (items) {\n var o = this.options;\n if (items && this.options.items !== items) {\n this.options.items = items;\n }\n this._calculateBlocksToRender();\n this.element.scrollTop(o.scrollTop);\n },\n\n restore: function () {\n this.renderedIndex = -1;\n this.container.empty();\n this.cache = {};\n },\n\n populate: function (items) {\n if (items && this.options.items !== items) {\n this.restore();\n }\n this._populate(items);\n },\n\n destroyed: function () {\n this.restore();\n }\n});\nBI.shortcut(\"bi.list_view\", BI.ListView);\n\n/**\n * 表示当前对象\n *\n * Created by GUY on 2017/5/22.\n * @class BI.VirtualList\n * @extends BI.Widget\n */\nBI.VirtualList = BI.inherit(BI.Widget, {\n props: function () {\n return {\n baseCls: \"bi-virtual-list\",\n overscanHeight: 100,\n blockSize: 10,\n scrollTop: 0,\n items: []\n };\n },\n\n init: function () {\n var self = this;\n this.renderedIndex = -1;\n this.cache = {};\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.layout\",\n ref: function () {\n self.topBlank = this;\n }\n }, {\n type: \"bi.vertical\",\n scrolly: false,\n ref: function () {\n self.container = this;\n }\n }, {\n type: \"bi.layout\",\n ref: function () {\n self.bottomBlank = this;\n }\n }],\n element: this\n };\n },\n\n mounted: function () {\n var self = this, o = this.options;\n this._populate();\n this.element.scroll(function (e) {\n o.scrollTop = self.element.scrollTop();\n self._calculateBlocksToRender();\n });\n BI.ResizeDetector.addResizeListener(this, function () {\n self._calculateBlocksToRender();\n });\n },\n\n _renderMoreIf: function () {\n var self = this, o = this.options;\n var height = this.element.height();\n var minContentHeight = o.scrollTop + height + o.overscanHeight;\n var index = (this.cache[this.renderedIndex] && (this.cache[this.renderedIndex].index + o.blockSize)) || 0,\n cnt = this.renderedIndex + 1;\n var lastHeight;\n var getElementHeight = function () {\n return self.container.element.height() + self.topBlank.element.height() + self.bottomBlank.element.height();\n };\n while ((lastHeight = getElementHeight()) < minContentHeight && index < o.items.length) {\n var items = o.items.slice(index, index + o.blockSize);\n this.container.addItems(items, this);\n var addedHeight = getElementHeight() - lastHeight;\n this.cache[cnt] = {\n index: index,\n scrollTop: lastHeight,\n height: addedHeight\n };\n this.tree.set(cnt, addedHeight);\n this.renderedIndex = cnt;\n cnt++;\n index += o.blockSize;\n }\n },\n\n _calculateBlocksToRender: function () {\n var o = this.options;\n this._renderMoreIf();\n var height = this.element.height();\n var minContentHeightFrom = o.scrollTop - o.overscanHeight;\n var minContentHeightTo = o.scrollTop + height + o.overscanHeight;\n var start = this.tree.greatestLowerBound(minContentHeightFrom);\n var end = this.tree.leastUpperBound(minContentHeightTo);\n var needDestroyed = [];\n for (var i = 0; i < start; i++) {\n var index = this.cache[i].index;\n if (!this.cache[i].destroyed) {\n for (var j = index; j < index + o.blockSize && j < o.items.length; j++) {\n needDestroyed.push(this.container._children[j]);\n this.container._children[j] = null;\n }\n this.cache[i].destroyed = true;\n }\n }\n for (var i = end + 1; i <= this.renderedIndex; i++) {\n var index = this.cache[i].index;\n if (!this.cache[i].destroyed) {\n for (var j = index; j < index + o.blockSize && j < o.items.length; j++) {\n needDestroyed.push(this.container._children[j]);\n this.container._children[j] = null;\n }\n this.cache[i].destroyed = true;\n }\n }\n var firstFragment = BI.Widget._renderEngine.createFragment(), lastFragment = BI.Widget._renderEngine.createFragment();\n var currentFragment = firstFragment;\n for (var i = (start < 0 ? 0 : start); i <= end && i <= this.renderedIndex; i++) {\n var index = this.cache[i].index;\n if (!this.cache[i].destroyed) {\n currentFragment = lastFragment;\n }\n if (this.cache[i].destroyed === true) {\n for (var j = index; j < index + o.blockSize && j < o.items.length; j++) {\n var w = this.container._addElement(j, BI.extend({root: true}, BI.stripEL(o.items[j])), this);\n currentFragment.appendChild(w.element[0]);\n }\n this.cache[i].destroyed = false;\n }\n }\n this.container.element.prepend(firstFragment);\n this.container.element.append(lastFragment);\n this.topBlank.setHeight(this.cache[start < 0 ? 0 : start].scrollTop);\n var lastCache = this.cache[Math.min(end, this.renderedIndex)];\n this.bottomBlank.setHeight(this.tree.sumTo(this.renderedIndex) - lastCache.scrollTop - lastCache.height);\n BI.each(needDestroyed, function (i, child) {\n child && child._destroy();\n });\n },\n\n _populate: function (items) {\n var o = this.options;\n if (items && this.options.items !== items) {\n this.options.items = items;\n }\n this.tree = BI.PrefixIntervalTree.empty(Math.ceil(o.items.length / o.blockSize));\n this._calculateBlocksToRender();\n this.element.scrollTop(o.scrollTop);\n },\n\n _clearChildren: function () {\n BI.each(this.container._children, function (i, cell) {\n cell && cell._destroy();\n });\n this.container._children = {};\n this.container.attr(\"items\", []);\n },\n\n restore: function () {\n this.renderedIndex = -1;\n this._clearChildren();\n this.cache = {};\n this.options.scrollTop = 0;\n // 依赖于cache的占位元素也要初始化\n this.topBlank.setHeight(0);\n this.bottomBlank.setHeight(0);\n },\n\n populate: function (items) {\n if (items && this.options.items !== items) {\n this.restore();\n }\n this._populate();\n },\n\n destroyed: function () {\n this.restore();\n }\n});\nBI.shortcut(\"bi.virtual_list\", BI.VirtualList);\n\n/**\n * 分页控件\n *\n * Created by GUY on 2015/8/31.\n * @class BI.Pager\n * @extends BI.Widget\n */\nBI.Pager = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Pager.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-pager\",\n behaviors: {},\n layouts: [{\n type: \"bi.horizontal\",\n hgap: 10,\n vgap: 0\n }],\n\n dynamicShow: true, // 是否动态显示上一页、下一页、首页、尾页, 若为false,则指对其设置使能状态\n // dynamicShow为false时以下两个有用\n dynamicShowFirstLast: false, // 是否动态显示首页、尾页\n dynamicShowPrevNext: false, // 是否动态显示上一页、下一页\n pages: false, // 总页数\n curr: function () {\n return 1;\n }, // 初始化当前页\n groups: 0, // 连续显示分页数\n jump: BI.emptyFn, // 分页的回调函数\n\n first: false, // 是否显示首页\n last: false, // 是否显示尾页\n prev: \"上一页\",\n next: \"下一页\",\n\n firstPage: 1,\n lastPage: function () { // 在万不得已时才会调用这个函数获取最后一页的页码, 主要作用于setValue方法\n return 1;\n },\n hasPrev: BI.emptyFn, // pages不可用时有效\n hasNext: BI.emptyFn // pages不可用时有效\n });\n },\n _init: function () {\n BI.Pager.superclass._init.apply(this, arguments);\n var self = this;\n this.currPage = BI.result(this.options, \"curr\");\n // 翻页太灵敏\n // this._lock = false;\n // this._debouce = BI.debounce(function () {\n // self._lock = false;\n // }, 300);\n this._populate();\n },\n\n _populate: function () {\n var self = this, o = this.options, view = [], dict = {};\n this.empty();\n var pages = BI.result(o, \"pages\");\n var curr = BI.result(this, \"currPage\");\n var groups = BI.result(o, \"groups\");\n var first = BI.result(o, \"first\");\n var last = BI.result(o, \"last\");\n var prev = BI.result(o, \"prev\");\n var next = BI.result(o, \"next\");\n\n if (pages === false) {\n groups = 0;\n first = false;\n last = false;\n } else {\n groups > pages && (groups = pages);\n }\n\n // 计算当前组\n dict.index = Math.ceil((curr + ((groups > 1 && groups !== pages) ? 1 : 0)) / (groups === 0 ? 1 : groups));\n\n // 当前页非首页,则输出上一页\n if (((!o.dynamicShow && !o.dynamicShowPrevNext) || curr > 1) && prev !== false) {\n if (BI.isKey(prev)) {\n view.push({\n text: prev,\n value: \"prev\",\n disabled: pages === false ? o.hasPrev(curr) === false : !(curr > 1 && prev !== false)\n });\n } else {\n view.push(BI.extend({\n disabled: pages === false ? o.hasPrev(curr) === false : !(curr > 1 && prev !== false)\n }, prev));\n }\n }\n\n // 当前组非首组,则输出首页\n if (((!o.dynamicShow && !o.dynamicShowFirstLast) || (dict.index > 1 && groups !== 0)) && first) {\n view.push({\n text: first,\n value: \"first\",\n disabled: !(dict.index > 1 && groups !== 0)\n });\n if (dict.index > 1 && groups !== 0) {\n view.push({\n type: \"bi.label\",\n cls: \"page-ellipsis\",\n text: \"\\u2026\"\n });\n }\n }\n\n // 输出当前页组\n dict.poor = Math.floor((groups - 1) / 2);\n dict.start = dict.index > 1 ? curr - dict.poor : 1;\n dict.end = dict.index > 1 ? (function () {\n var max = curr + (groups - dict.poor - 1);\n return max > pages ? pages : max;\n }()) : groups;\n if (dict.end - dict.start < groups - 1) { // 最后一组状态\n dict.start = dict.end - groups + 1;\n }\n var s = dict.start, e = dict.end;\n if (first && last && (dict.index > 1 && groups !== 0) && (pages > groups && dict.end < pages && groups !== 0)) {\n s++;\n e--;\n }\n for (; s <= e; s++) {\n if (s === curr) {\n view.push({\n text: s,\n value: s,\n selected: true\n });\n } else {\n view.push({\n text: s,\n value: s\n });\n }\n }\n\n // 总页数大于连续分页数,且当前组最大页小于总页,输出尾页\n if (((!o.dynamicShow && !o.dynamicShowFirstLast) || (pages > groups && dict.end < pages && groups !== 0)) && last) {\n if (pages > groups && dict.end < pages && groups !== 0) {\n view.push({\n type: \"bi.label\",\n cls: \"page-ellipsis\",\n text: \"\\u2026\"\n });\n }\n view.push({\n text: last,\n value: \"last\",\n disabled: !(pages > groups && dict.end < pages && groups !== 0)\n });\n }\n\n // 当前页不为尾页时,输出下一页\n dict.flow = !prev && groups === 0;\n if (((!o.dynamicShow && !o.dynamicShowPrevNext) && next) || (curr !== pages && next || dict.flow)) {\n view.push((function () {\n if (BI.isKey(next)) {\n if (pages === false) {\n return {text: next, value: \"next\", disabled: o.hasNext(curr) === false};\n }\n return (dict.flow && curr === pages)\n ?\n {text: next, value: \"next\", disabled: true}\n :\n {text: next, value: \"next\", disabled: !(curr !== pages && next || dict.flow)};\n }\n return BI.extend({\n disabled: pages === false ? o.hasNext(curr) === false : !(curr !== pages && next || dict.flow)\n }, next);\n \n }()));\n }\n\n this.button_group = BI.createWidget({\n type: \"bi.button_group\",\n element: this,\n items: BI.createItems(view, {\n cls: \"bi-list-item-select bi-border-radius\",\n height: 23,\n hgap: 10\n }),\n behaviors: o.behaviors,\n layouts: o.layouts\n });\n this.button_group.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n // if (self._lock === true) {\n // return;\n // }\n // self._lock = true;\n // self._debouce();\n if (type === BI.Events.CLICK) {\n var v = self.button_group.getValue()[0];\n switch (v) {\n case \"first\":\n self.currPage = 1;\n break;\n case \"last\":\n self.currPage = pages;\n break;\n case \"prev\":\n self.currPage--;\n break;\n case \"next\":\n self.currPage++;\n break;\n default:\n self.currPage = v;\n break;\n }\n o.jump.apply(self, [{\n pages: pages,\n curr: self.currPage\n }]);\n self._populate();\n self.fireEvent(BI.Pager.EVENT_CHANGE, obj);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.fireEvent(BI.Pager.EVENT_AFTER_POPULATE);\n },\n\n getCurrentPage: function () {\n return this.currPage;\n },\n\n setAllPages: function (pages) {\n this.options.pages = pages;\n },\n\n hasPrev: function (v) {\n v || (v = 1);\n var o = this.options;\n var pages = this.options.pages;\n return pages === false ? o.hasPrev(v) : v > 1;\n },\n\n hasNext: function (v) {\n v || (v = 1);\n var o = this.options;\n var pages = this.options.pages;\n return pages === false ? o.hasNext(v) : v < pages;\n },\n\n setValue: function (v) {\n var o = this.options;\n v = v | 0;\n v = v < 1 ? 1 : v;\n if (o.pages === false) {\n var lastPage = BI.result(o, \"lastPage\"), firstPage = 1;\n this.currPage = v > lastPage ? lastPage : ((firstPage = BI.result(o, \"firstPage\")), (v < firstPage ? firstPage : v));\n } else {\n v = v > o.pages ? o.pages : v;\n this.currPage = v;\n }\n this._populate();\n },\n\n getValue: function () {\n var val = this.button_group.getValue()[0];\n switch (val) {\n case \"prev\":\n return -1;\n case \"next\":\n return 1;\n case \"first\":\n return BI.MIN;\n case \"last\":\n return BI.MAX;\n default :\n return val;\n }\n },\n\n attr: function (key, value) {\n BI.Pager.superclass.attr.apply(this, arguments);\n if (key === \"curr\") {\n this.currPage = BI.result(this.options, \"curr\");\n }\n },\n\n populate: function () {\n this._populate();\n }\n});\nBI.Pager.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.Pager.EVENT_AFTER_POPULATE = \"EVENT_AFTER_POPULATE\";\nBI.shortcut(\"bi.pager\", BI.Pager);/**\n * 超链接\n *\n * Created by GUY on 2015/9/9.\n * @class BI.A\n * @extends BI.Text\n * @abstract\n */\nBI.A = BI.inherit(BI.Text, {\n _defaultConfig: function () {\n var conf = BI.A.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-a display-block\",\n href: \"\",\n target: \"_blank\",\n el: null,\n tagName: \"a\"\n });\n },\n _init: function () {\n var o = this.options;\n BI.A.superclass._init.apply(this, arguments);\n this.element.attr({href: o.href, target: o.target});\n if (o.el) {\n BI.createWidget(o.el, {\n element: this\n });\n }\n }\n});\n\nBI.shortcut(\"bi.a\", BI.A);/**\n * guy\n * 加载条\n * @type {*|void|Object}\n */\nBI.LoadingBar = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.LoadingBar.superclass._defaultConfig.apply(this, arguments);\n return BI.extend( conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-loading-bar bi-tips\",\n height: 30,\n handler: BI.emptyFn\n });\n },\n _init: function () {\n BI.LoadingBar.superclass._init.apply(this, arguments);\n var self = this;\n this.loaded = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"loading-text bi-list-item-simple\",\n text: BI.i18nText(\"BI-Load_More\"),\n width: 120,\n handler: this.options.handler\n });\n this.loaded.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.loading = BI.createWidget({\n type: \"bi.layout\",\n width: this.options.height,\n height: this.options.height,\n cls: \"loading-background cursor-default\"\n });\n var loaded = BI.createWidget({\n type: \"bi.center_adapt\",\n items: [this.loaded]\n });\n var loading = BI.createWidget({\n type: \"bi.center_adapt\",\n items: [this.loading]\n });\n this.cardLayout = BI.createWidget({\n type: \"bi.card\",\n element: this,\n items: [{\n el: loaded,\n cardName: \"loaded\"\n }, {\n el: loading,\n cardName: \"loading\"\n }]\n });\n this.invisible();\n },\n\n _reset: function () {\n this.visible();\n this.loaded.setText(BI.i18nText(\"BI-Load_More\"));\n this.loaded.enable();\n },\n\n setLoaded: function () {\n this._reset();\n this.cardLayout.showCardByName(\"loaded\");\n },\n\n setEnd: function () {\n this.setLoaded();\n this.loaded.setText(BI.i18nText(\"BI-No_More_Data\"));\n this.loaded.disable();\n },\n\n setLoading: function () {\n this._reset();\n this.cardLayout.showCardByName(\"loading\");\n }\n});\n\nBI.shortcut(\"bi.loading_bar\", BI.LoadingBar);/**\n * @class BI.IconButton\n * @extends BI.BasicButton\n * 图标的button\n */\nBI.IconButton = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n var conf = BI.IconButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n _baseCls: (conf._baseCls || \"\") + \" bi-icon-button horizon-center\",\n iconWidth: null,\n iconHeight: null\n });\n },\n\n _init: function () {\n BI.IconButton.superclass._init.apply(this, arguments);\n var o = this.options;\n this.element.css({\n textAlign: \"center\"\n });\n this.icon = BI.createWidget({\n type: \"bi.icon\",\n width: o.iconWidth,\n height: o.iconHeight\n });\n if (BI.isNumber(o.height) && o.height > 0 && BI.isNull(o.iconWidth) && BI.isNull(o.iconHeight)) {\n this.element.css(\"lineHeight\", o.height + \"px\");\n BI.createWidget({\n type: \"bi.default\",\n element: this,\n items: [this.icon]\n });\n } else {\n this.element.css(\"lineHeight\", \"1\");\n BI.createWidget({\n element: this,\n type: \"bi.center_adapt\",\n items: [this.icon]\n });\n }\n },\n\n doClick: function () {\n BI.IconButton.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.IconButton.EVENT_CHANGE, this);\n }\n }\n});\nBI.IconButton.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_button\", BI.IconButton);/**\n * 图片的button\n *\n * Created by GUY on 2016/1/27.\n * @class BI.ImageButton\n * @extends BI.BasicButton\n */\nBI.ImageButton = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n var conf = BI.ImageButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-image-button\",\n src: \"\",\n iconWidth: \"100%\",\n iconHeight: \"100%\"\n });\n },\n\n _init: function () {\n BI.ImageButton.superclass._init.apply(this, arguments);\n var o = this.options;\n this.image = BI.createWidget({\n type: \"bi.img\",\n width: o.iconWidth,\n height: o.iconHeight,\n src: o.src\n });\n if (BI.isNumber(o.iconWidth) || BI.isNumber(o.iconHeight)) {\n BI.createWidget({\n type: \"bi.center_adapt\",\n element: this,\n items: [this.image]\n });\n } else {\n BI.createWidget({\n type: \"bi.adaptive\",\n element: this,\n items: [this.image],\n scrollable: false\n });\n }\n },\n\n setWidth: function (w) {\n BI.ImageButton.superclass.setWidth.apply(this, arguments);\n this.options.width = w;\n },\n\n setHeight: function (h) {\n BI.ImageButton.superclass.setHeight.apply(this, arguments);\n this.options.height = h;\n },\n\n setImageWidth: function (w) {\n this.image.setWidth(w);\n },\n\n setImageHeight: function (h) {\n this.image.setHeight(h);\n },\n\n getImageWidth: function () {\n return this.image.element.width();\n },\n\n getImageHeight: function () {\n return this.image.element.height();\n },\n\n setSrc: function (src) {\n this.options.src = src;\n this.image.setSrc(src);\n },\n\n getSrc: function () {\n return this.image.getSrc();\n },\n\n doClick: function () {\n BI.ImageButton.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.ImageButton.EVENT_CHANGE, this);\n }\n }\n});\nBI.ImageButton.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.image_button\", BI.ImageButton);\n/**\n * 文字类型的按钮\n * @class BI.Button\n * @extends BI.BasicButton\n *\n * @cfg {JSON} options 配置属性\n * @cfg {'common'/'success'/'warning'/'ignore'} [options.level='common'] 按钮类型,用不同颜色强调不同的场景\n */\nBI.Button = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function (props) {\n var conf = BI.Button.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-button\" + ((BI.isIE() && BI.isIE9Below()) ? \" hack\" : \"\"),\n minWidth: (props.block === true || props.clear === true) ? 0 : 80,\n height: 24,\n shadow: props.clear !== true,\n isShadowShowingOnSelected: true,\n readonly: true,\n iconCls: \"\",\n level: \"common\",\n block: false, // 是否块状显示,即不显示边框,没有最小宽度的限制\n clear: false, // 是否去掉边框和背景\n ghost: false, // 是否幽灵显示, 即正常状态无背景\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n textWidth: null,\n textHeight: null,\n hgap: props.clear ? 0 : 10,\n vgap: 0,\n tgap: 0,\n bgap: 0,\n lgap: 0,\n rgap: 0\n });\n },\n\n _init: function () {\n BI.Button.superclass._init.apply(this, arguments);\n var o = this.options, self = this;\n if (BI.isNumber(o.height) && !o.clear && !o.block) {\n this.element.css({height: o.height + \"px\", lineHeight: (o.height - 2) + \"px\"});\n } else if (o.clear || o.block) {\n this.element.css({lineHeight: o.height + \"px\"});\n } else {\n this.element.css({lineHeight: (o.height - 2) + \"px\"});\n }\n if (BI.isKey(o.iconCls)) {\n this.icon = BI.createWidget({\n type: \"bi.icon_label\",\n cls: o.iconCls,\n width: 18,\n height: o.height - 2,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n text: o.text,\n value: o.value,\n height: o.height - 2\n });\n BI.createWidget({\n type: \"bi.center_adapt\",\n element: this,\n hgap: o.hgap,\n vgap: o.vgap,\n items: [{\n type: \"bi.horizontal\",\n items: [this.icon, this.text]\n }]\n });\n } else {\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n textWidth: o.textWidth,\n textHeight: o.textHeight,\n hgap: o.hgap,\n vgap: o.vgap,\n tgap: o.tgap,\n bgap: o.bgap,\n lgap: o.lgap,\n rgap: o.rgap,\n element: this,\n text: o.text,\n value: o.value\n });\n }\n if (o.block === true) {\n this.element.addClass(\"block\");\n }\n if (o.clear === true) {\n this.element.addClass(\"clear\");\n }\n if (o.ghost === true) {\n this.element.addClass(\"ghost\");\n }\n if (o.minWidth > 0) {\n this.element.css({\"min-width\": o.minWidth + \"px\"});\n }\n },\n\n doClick: function () {\n BI.Button.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.Button.EVENT_CHANGE, this);\n }\n },\n\n setText: function (text) {\n BI.Button.superclass.setText.apply(this, arguments);\n this.text.setText(text);\n },\n\n setValue: function (text) {\n BI.Button.superclass.setValue.apply(this, arguments);\n if (!this.isReadOnly()) {\n this.text.setValue(text);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n destroy: function () {\n BI.Button.superclass.destroy.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.button\", BI.Button);\nBI.Button.EVENT_CHANGE = \"EVENT_CHANGE\";\n/**\n * guy\n * 可以点击的一行文字\n * @class BI.TextButton\n * @extends BI.BasicButton\n * 文字button\n */\nBI.TextButton = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n var conf = BI.TextButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-button\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n textWidth: null,\n textHeight: null,\n hgap: 0,\n lgap: 0,\n rgap: 0,\n text: \"\",\n py: \"\"\n });\n },\n\n _init: function () {\n BI.TextButton.superclass._init.apply(this, arguments);\n var o = this.options;\n this.text = BI.createWidget({\n type: \"bi.label\",\n element: this,\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n textWidth: o.textWidth,\n textHeight: o.textHeight,\n width: o.width,\n height: o.height,\n hgap: o.hgap,\n lgap: o.lgap,\n rgap: o.rgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n },\n\n doClick: function () {\n BI.TextButton.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.TextButton.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n setText: function (text) {\n BI.TextButton.superclass.setText.apply(this, arguments);\n text = BI.isArray(text) ? text.join(\",\") : text;\n this.text.setText(text);\n },\n\n setStyle: function (style) {\n this.text.setStyle(style);\n },\n\n setValue: function (text) {\n BI.TextButton.superclass.setValue.apply(this, arguments);\n if (!this.isReadOnly()) {\n text = BI.isArray(text) ? text.join(\",\") : text;\n this.text.setValue(text);\n }\n }\n});\nBI.TextButton.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_button\", BI.TextButton);/**\n * 带有一个占位\n *\n * Created by GUY on 2015/9/11.\n * @class BI.BlankIconIconTextItem\n * @extends BI.BasicButton\n */\nBI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.BlankIconIconTextItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-blank-icon-text-item\",\n logic: {\n dynamic: false\n },\n iconCls1: \"close-ha-font\",\n iconCls2: \"close-ha-font\",\n blankWidth: 0,\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.BlankIconIconTextItem.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n var blank = BI.createWidget({\n type: \"bi.layout\",\n width: o.blankWidth,\n height: o.height\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n this.icon1 = BI.createWidget({\n type: \"bi.icon_button\",\n cls: o.iconCls1,\n forceNotSelected: true,\n width: o.height,\n height: o.height\n });\n this.icon2 = BI.createWidget({\n type: \"bi.icon_button\",\n cls: o.iconCls2,\n forceNotSelected: true,\n width: o.height,\n height: o.height\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", blank, this.icon1, this.icon2, this.text)\n }))));\n },\n\n doClick: function () {\n BI.BlankIconIconTextItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.BlankIconIconTextItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n setSelected: function (b) {\n BI.BlankIconIconTextItem.superclass.setSelected.apply(this, arguments);\n this.icon1.setSelected(b);\n this.icon2.setSelected(b);\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n }\n});\nBI.BlankIconIconTextItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.blank_icon_icon_text_item\", BI.BlankIconIconTextItem);/**\n * guy\n * 一个占位符和两个icon和一行数 组成的一行listitem\n *\n * Created by GUY on 2015/9/15.\n * @class BI.BlankIconTextIconItem\n * @extends BI.BasicButton\n */\nBI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.BlankIconTextIconItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-blank-icon-text-icon-item\",\n logic: {\n dynamic: false\n },\n iconCls1: \"close-ha-font\",\n iconCls2: \"close-ha-font\",\n blankWidth: 0,\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.BlankIconTextIconItem.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n\n var icon1 = BI.createWidget({\n type: \"bi.icon_label\",\n cls: o.iconCls1,\n width: o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.icon_label\",\n cls: o.iconCls2,\n width: o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n },\n top: 0,\n bottom: 0,\n right: 0\n }]\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", {\n type: \"bi.layout\",\n width: o.blankWidth\n }, icon1, this.text, {\n type: \"bi.layout\",\n width: o.height\n })\n }))));\n },\n\n doClick: function () {\n BI.BlankIconTextIconItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.BlankIconTextIconItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n }\n});\nBI.BlankIconTextIconItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.blank_icon_text_icon_item\", BI.BlankIconTextIconItem);/**\n * 带有一个占位\n *\n * Created by GUY on 2015/9/11.\n * @class BI.BlankIconTextItem\n * @extends BI.BasicButton\n */\nBI.BlankIconTextItem = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.BlankIconTextItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-blank-icon-text-item\",\n logic: {\n dynamic: false\n },\n cls: \"close-ha-font\",\n blankWidth: 0,\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.BlankIconTextItem.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n var blank = BI.createWidget({\n type: \"bi.layout\",\n width: o.blankWidth\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n this.icon = BI.createWidget({\n type: \"bi.icon_label\",\n width: o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", blank, this.icon, this.text)\n }))));\n },\n\n doClick: function () {\n BI.BlankIconTextItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.BlankIconTextItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n }\n});\nBI.BlankIconTextItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.blank_icon_text_item\", BI.BlankIconTextItem);/**\n * guy\n * 两个icon和一行数 组成的一行listitem\n *\n * Created by GUY on 2015/9/9.\n * @class BI.IconTextIconItem\n * @extends BI.BasicButton\n */\nBI.IconTextIconItem = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.IconTextIconItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-icon-text-icon-item\",\n logic: {\n dynamic: false\n },\n iconCls1: \"close-ha-font\",\n iconCls2: \"close-ha-font\",\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.IconTextIconItem.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n\n var icon1 = BI.createWidget({\n type: \"bi.icon_label\",\n cls: o.iconCls1,\n width: o.leftIconWrapperWidth,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n var blank = BI.createWidget({\n type: \"bi.layout\",\n width: o.height\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.icon_label\",\n cls: o.iconCls2,\n width: o.rightIconWrapperWidth,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n },\n top: 0,\n bottom: 0,\n right: 0\n }]\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", icon1, this.text, blank)\n }))));\n },\n\n doClick: function () {\n BI.IconTextIconItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.IconTextIconItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n }\n});\nBI.IconTextIconItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_text_icon_item\", BI.IconTextIconItem);/**\n * guy\n *\n * Created by GUY on 2015/9/9.\n * @class BI.IconTextItem\n * @extends BI.BasicButton\n */\nBI.IconTextItem = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.IconTextItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-icon-text-item\",\n direction: BI.Direction.Left,\n logic: {\n dynamic: false\n },\n iconWrapperWidth: null,\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.IconTextItem.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n this.icon = BI.createWidget({\n type: \"bi.icon_label\",\n width: o.iconWrapperWidth || o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.icon, this.text)\n }))));\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n },\n\n doClick: function () {\n BI.IconTextItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.IconTextItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n }\n});\nBI.IconTextItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_text_item\", BI.IconTextItem);/**\n *\n * 图标的button\n *\n * Created by GUY on 2015/9/9.\n * @class BI.TextIconItem\n * @extends BI.BasicButton\n */\nBI.TextIconItem = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.TextIconItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-icon-item\",\n logic: {\n dynamic: false\n },\n cls: \"close-ha-font\",\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.TextIconItem.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n this.icon = BI.createWidget({\n type: \"bi.icon_label\",\n width: o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", this.text, this.icon)\n }))));\n },\n\n doClick: function () {\n BI.TextIconItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.TextIconItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n }\n});\nBI.TextIconItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_icon_item\", BI.TextIconItem);/**\n * guy\n * 一个button和一行数 组成的一行listitem\n *\n * Created by GUY on 2015/9/9.\n * @class BI.TextItem\n * @extends BI.BasicButton\n */\nBI.TextItem = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.TextItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-item\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.TextItem.superclass._init.apply(this, arguments);\n var o = this.options;\n this.text = BI.createWidget({\n type: \"bi.label\",\n element: this,\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n textHeight: o.whiteSpace == \"nowrap\" ? o.height : o.textHeight,\n height: o.height,\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n py: o.py\n });\n },\n\n doClick: function () {\n BI.TextItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.TextItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n }\n});\nBI.TextItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_item\", BI.TextItem);/**\n * guy\n * Created by GUY on 2015/9/9.\n * @class BI.IconTextIconNode\n * @extends BI.NodeButton\n */\nBI.IconTextIconNode = BI.inherit(BI.NodeButton, {\n\n _defaultConfig: function () {\n var conf = BI.IconTextIconNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-icon-text-icon-node\",\n logic: {\n dynamic: false\n },\n iconCls1: \"close-ha-font\",\n iconCls2: \"close-ha-font\",\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.IconTextIconNode.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n\n var icon1 = BI.createWidget({\n type: \"bi.icon_label\",\n cls: o.iconCls1,\n width: o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n var blank = BI.createWidget({\n type: \"bi.layout\",\n width: o.height,\n height: o.height\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.icon_label\",\n cls: o.iconCls2,\n width: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n },\n top: 0,\n bottom: 0,\n right: 0\n }]\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", icon1, this.text, blank)\n }))));\n },\n\n doClick: function () {\n BI.IconTextIconNode.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.IconTextIconNode.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n }\n});\nBI.IconTextIconNode.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_text_icon_node\", BI.IconTextIconNode);/**\n * guy\n * Created by GUY on 2015/9/9.\n * @class BI.IconTextNode\n * @extends BI.NodeButton\n */\nBI.IconTextNode = BI.inherit(BI.NodeButton, {\n\n _defaultConfig: function () {\n var conf = BI.IconTextNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-icon-text-node\",\n logic: {\n dynamic: false\n },\n cls: \"close-ha-font\",\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.IconTextNode.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n this.icon = BI.createWidget({\n type: \"bi.icon_label\",\n width: o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", this.icon, this.text)\n }))));\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n },\n\n doClick: function () {\n BI.IconTextNode.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.IconTextNode.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n }\n});\nBI.IconTextNode.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_text_node\", BI.IconTextNode);/**\n * Created by GUY on 2015/9/9.\n * @class BI.TextIconNode\n * @extends BI.NodeButton\n */\nBI.TextIconNode = BI.inherit(BI.NodeButton, {\n\n _defaultConfig: function () {\n var conf = BI.TextIconNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-icon-node\",\n logic: {\n dynamic: false\n },\n cls: \"close-ha-font\",\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.TextIconNode.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n this.icon = BI.createWidget({\n type: \"bi.icon_label\",\n width: o.height,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", this.text, this.icon)\n }))));\n },\n\n doClick: function () {\n BI.TextIconNode.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.TextIconNode.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n }\n});\nBI.TextIconNode.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_icon_node\", BI.TextIconNode);/**\n * guy\n *\n * Created by GUY on 2015/9/9.\n * @class BI.TextNode\n * @extends BI.NodeButton\n */\nBI.TextNode = BI.inherit(BI.NodeButton, {\n\n _defaultConfig: function () {\n var conf = BI.TextNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-node\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.TextNode.superclass._init.apply(this, arguments);\n var o = this.options;\n this.text = BI.createWidget({\n type: \"bi.label\",\n element: this,\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n textHeight: o.whiteSpace == \"nowrap\" ? o.height : o.textHeight,\n height: o.height,\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n py: o.py\n });\n },\n\n doClick: function () {\n BI.TextNode.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.TextNode.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n }\n});\nBI.TextNode.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_node\", BI.TextNode);/**\n * Created by GUY on 2015/4/15.\n * @class BI.Editor\n * @extends BI.Single\n */\nBI.Editor = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.Editor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-editor bi-focus-shadow\",\n hgap: 4,\n vgap: 2,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n // title,warningTitle这两个属性没用\n tipType: \"warning\",\n inputType: \"text\",\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n allowBlank: false,\n watermark: \"\",\n errorText: \"\"\n });\n },\n\n _init: function () {\n BI.Editor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = this.addWidget(BI.createWidget({\n type: \"bi.input\",\n element: \"<input type='\" + o.inputType + \"'/>\",\n root: true,\n value: o.value,\n watermark: o.watermark,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank\n }));\n this.editor.element.css({\n width: \"100%\",\n height: \"100%\",\n border: \"none\",\n outline: \"none\",\n padding: \"0\",\n margin: \"0\"\n });\n if (BI.isKey(this.options.watermark)) {\n this._assertWaterMark();\n }\n\n var _items = [];\n if (this.watermark) {\n _items.push({\n el: this.watermark,\n left: 3,\n right: 3,\n top: 0,\n bottom: 0\n });\n }\n _items.push({\n el: this.editor,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n });\n\n var items = [{\n el: {\n type: \"bi.absolute\",\n ref: function(_ref) {\n self.contentWrapper = _ref;\n },\n items: _items\n },\n left: o.hgap + o.lgap,\n right: o.hgap + o.rgap,\n top: o.vgap + o.tgap,\n bottom: o.vgap + o.bgap\n }];\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: items\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Input.EVENT_FOCUS, function () {\n self._checkError();\n self.element.addClass(\"bi-editor-focus\");\n self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);\n });\n this.editor.on(BI.Input.EVENT_BLUR, function () {\n self._setErrorVisible(false);\n self.element.removeClass(\"bi-editor-focus\");\n self.fireEvent(BI.Editor.EVENT_BLUR, arguments);\n });\n this.editor.on(BI.Input.EVENT_CLICK, function () {\n self.fireEvent(BI.Editor.EVENT_CLICK, arguments);\n });\n this.editor.on(BI.Input.EVENT_CHANGE, function () {\n self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Input.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.Editor.EVENT_KEY_DOWN, arguments);\n });\n this.editor.on(BI.Input.EVENT_QUICK_DOWN, function (e) {\n // tab键就不要隐藏了\n if (e.keyCode !== BI.KeyCode.TAB && self.watermark) {\n self.watermark.invisible();\n }\n });\n\n this.editor.on(BI.Input.EVENT_VALID, function () {\n self._checkWaterMark();\n self._setErrorVisible(false);\n self.fireEvent(BI.Editor.EVENT_VALID, arguments);\n });\n this.editor.on(BI.Input.EVENT_ERROR, function () {\n self._checkWaterMark();\n self.fireEvent(BI.Editor.EVENT_ERROR, arguments);\n self._setErrorVisible(self.isEditing());\n });\n this.editor.on(BI.Input.EVENT_RESTRICT, function () {\n self._checkWaterMark();\n var tip = self._setErrorVisible(true);\n tip && tip.element.fadeOut(100, function () {\n tip.element.fadeIn(100);\n });\n self.fireEvent(BI.Editor.EVENT_RESTRICT, arguments);\n });\n this.editor.on(BI.Input.EVENT_EMPTY, function () {\n self._checkWaterMark();\n self.fireEvent(BI.Editor.EVENT_EMPTY, arguments);\n });\n this.editor.on(BI.Input.EVENT_ENTER, function () {\n self.fireEvent(BI.Editor.EVENT_ENTER, arguments);\n });\n this.editor.on(BI.Input.EVENT_SPACE, function () {\n self.fireEvent(BI.Editor.EVENT_SPACE, arguments);\n });\n this.editor.on(BI.Input.EVENT_BACKSPACE, function () {\n self.fireEvent(BI.Editor.EVENT_BACKSPACE, arguments);\n });\n this.editor.on(BI.Input.EVENT_REMOVE, function () {\n self.fireEvent(BI.Editor.EVENT_REMOVE, arguments);\n });\n this.editor.on(BI.Input.EVENT_START, function () {\n self.fireEvent(BI.Editor.EVENT_START, arguments);\n });\n this.editor.on(BI.Input.EVENT_PAUSE, function () {\n self.fireEvent(BI.Editor.EVENT_PAUSE, arguments);\n });\n this.editor.on(BI.Input.EVENT_STOP, function () {\n self.fireEvent(BI.Editor.EVENT_STOP, arguments);\n });\n this.editor.on(BI.Input.EVENT_CONFIRM, function () {\n self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);\n });\n this.editor.on(BI.Input.EVENT_CHANGE_CONFIRM, function () {\n self.fireEvent(BI.Editor.EVENT_CHANGE_CONFIRM, arguments);\n });\n this.element.click(function (e) {\n e.stopPropagation();\n return false;\n });\n if (BI.isKey(this.options.value) || BI.isEmptyString(this.options.value)) {\n this._checkError();\n this._checkWaterMark();\n } else {\n this._checkWaterMark();\n }\n },\n\n _checkToolTip: function () {\n var o = this.options;\n var errorText = o.errorText;\n if (BI.isFunction(errorText)) {\n errorText = errorText(this.editor.getValue());\n }\n if (BI.isKey(errorText)) {\n if (!this.isEnabled() || this.isValid() || (BI.Bubbles.has(this.getName()) && BI.Bubbles.get(this.getName()).isVisible())) {\n this.setTitle(\"\");\n } else {\n this.setTitle(errorText);\n }\n }\n },\n\n _assertWaterMark: function() {\n var self = this, o = this.options;\n if(BI.isNull(this.watermark)) {\n this.watermark = BI.createWidget({\n type: \"bi.label\",\n cls: \"bi-water-mark\",\n text: this.options.watermark,\n height: o.height - 2 * (o.vgap + o.tgap),\n whiteSpace: \"nowrap\",\n textAlign: \"left\"\n });\n this.watermark.element.bind({\n mousedown: function (e) {\n if (self.isEnabled()) {\n self.editor.isEditing() || self.editor.focus();\n } else {\n self.editor.isEditing() && self.editor.blur();\n }\n e.stopEvent();\n }\n });\n this.watermark.element.bind(\"click\", function (e) {\n if (self.isEnabled()) {\n self.editor.isEditing() || self.editor.focus();\n } else {\n self.editor.isEditing() && self.editor.blur();\n }\n e.stopEvent();\n });\n }\n },\n\n _checkError: function () {\n this._setErrorVisible(this.isEnabled() && !this.isValid());\n this._checkToolTip();\n },\n\n _checkWaterMark: function () {\n var o = this.options;\n if (!this.disabledWaterMark && this.editor.getValue() === \"\" && BI.isKey(o.watermark)) {\n this.watermark && this.watermark.visible();\n } else {\n this.watermark && this.watermark.invisible();\n }\n },\n\n setErrorText: function (text) {\n this.options.errorText = text;\n },\n\n getErrorText: function () {\n return this.options.errorText;\n },\n\n setWaterMark: function(v) {\n this.options.watermark = v;\n if(BI.isNull(this.watermark)) {\n this._assertWaterMark();\n BI.createWidget({\n type: \"bi.absolute\",\n element: this.contentWrapper,\n items: [{\n el: this.watermark,\n left: 3,\n right: 3,\n top: 0,\n bottom: 0\n }]\n })\n }\n BI.isKey(v) && this.watermark.setText(v);\n },\n\n _setErrorVisible: function (b) {\n var o = this.options;\n var errorText = o.errorText;\n if (BI.isFunction(errorText)) {\n errorText = errorText(BI.trim(this.editor.getValue()));\n }\n if (!this.disabledError && BI.isKey(errorText)) {\n BI.Bubbles[b ? \"show\" : \"hide\"](this.getName(), errorText, this, {\n adjustYOffset: 2\n });\n this._checkToolTip();\n return BI.Bubbles.get(this.getName());\n }\n },\n\n disableError: function () {\n this.disabledError = true;\n this._checkError();\n },\n\n enableError: function () {\n this.disabledError = false;\n this._checkError();\n },\n\n disableWaterMark: function () {\n this.disabledWaterMark = true;\n this._checkWaterMark();\n },\n\n enableWaterMark: function () {\n this.disabledWaterMark = false;\n this._checkWaterMark();\n },\n\n focus: function () {\n this.element.addClass(\"text-editor-focus\");\n this.editor.focus();\n },\n\n blur: function () {\n this.element.removeClass(\"text-editor-focus\");\n this.editor.blur();\n },\n\n selectAll: function () {\n this.editor.selectAll();\n },\n\n onKeyDown: function (k) {\n this.editor.onKeyDown(k);\n },\n\n setValue: function (v) {\n BI.Editor.superclass.setValue.apply(this, arguments);\n this.editor.setValue(v);\n this._checkError();\n this._checkWaterMark();\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n getValue: function () {\n if (!this.isValid()) {\n return BI.trim(this.editor.getLastValidValue());\n }\n return BI.trim(this.editor.getValue());\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n destroyed: function () {\n BI.Bubbles.remove(this.getName());\n }\n});\nBI.Editor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.Editor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.Editor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.Editor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.Editor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.Editor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.Editor.EVENT_BACKSPACE = \"EVENT_BACKSPACE\";\n\nBI.Editor.EVENT_START = \"EVENT_START\";\nBI.Editor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.Editor.EVENT_STOP = \"EVENT_STOP\";\nBI.Editor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.Editor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.Editor.EVENT_VALID = \"EVENT_VALID\";\nBI.Editor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.Editor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.Editor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.Editor.EVENT_REMOVE = \"EVENT_REMOVE\";\nBI.Editor.EVENT_EMPTY = \"EVENT_EMPTY\";\n\nBI.shortcut(\"bi.editor\", BI.Editor);/**\n * 多文件\n *\n * Created by GUY on 2016/4/13.\n * @class BI.MultifileEditor\n * @extends BI.Single\n * @abstract\n */\nBI.MultifileEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.MultifileEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-multifile-editor\",\n multiple: false,\n maxSize: -1, // 1024 * 1024\n accept: \"\",\n url: \"\"\n });\n },\n\n _init: function () {\n var self = this, o = this.options;\n BI.MultifileEditor.superclass._init.apply(this, arguments);\n this.file = BI.createWidget({\n type: \"bi.file\",\n cls: \"multifile-editor\",\n width: \"100%\",\n height: \"100%\",\n name: o.name,\n url: o.url,\n multiple: o.multiple,\n accept: o.accept,\n maxSize: o.maxSize,\n title: o.title\n });\n this.file.on(BI.File.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultifileEditor.EVENT_CHANGE, arguments);\n });\n this.file.on(BI.File.EVENT_UPLOADSTART, function () {\n self.fireEvent(BI.MultifileEditor.EVENT_UPLOADSTART, arguments);\n });\n this.file.on(BI.File.EVENT_ERROR, function () {\n self.fireEvent(BI.MultifileEditor.EVENT_ERROR, arguments);\n });\n this.file.on(BI.File.EVENT_PROGRESS, function () {\n self.fireEvent(BI.MultifileEditor.EVENT_PROGRESS, arguments);\n });\n this.file.on(BI.File.EVENT_UPLOADED, function () {\n self.fireEvent(BI.MultifileEditor.EVENT_UPLOADED, arguments);\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.adaptive\",\n scrollable: false,\n items: [this.file]\n },\n top: 0,\n right: 0,\n left: 0,\n bottom: 0\n }]\n });\n },\n\n select: function () {\n this.file.select();\n },\n\n getValue: function () {\n return this.file.getValue();\n },\n\n upload: function () {\n this.file.upload();\n },\n\n reset: function () {\n this.file.reset();\n }\n});\nBI.MultifileEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultifileEditor.EVENT_UPLOADSTART = \"EVENT_UPLOADSTART\";\nBI.MultifileEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.MultifileEditor.EVENT_PROGRESS = \"EVENT_PROGRESS\";\nBI.MultifileEditor.EVENT_UPLOADED = \"EVENT_UPLOADED\";\nBI.shortcut(\"bi.multifile_editor\", BI.MultifileEditor);/**\n *\n * Created by GUY on 2016/1/18.\n * @class BI.TextAreaEditor\n * @extends BI.Single\n */\nBI.TextAreaEditor = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n return BI.extend(BI.TextAreaEditor.superclass._defaultConfig.apply(), {\n baseCls: \"bi-textarea-editor\",\n value: \"\"\n });\n },\n\n render: function() {\n var o = this.options, self = this;\n this.content = BI.createWidget({\n type: \"bi.layout\",\n tagName: \"textarea\",\n width: \"100%\",\n height: \"100%\",\n cls: \"bi-textarea textarea-editor-content display-block\"\n });\n this.content.element.css({resize: \"none\"});\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.adaptive\",\n items: [this.content]\n },\n left: 4,\n right: 4,\n top: 4,\n bottom: 8\n }]\n });\n\n this.content.element.on(\"input propertychange\", function (e) {\n self._checkWaterMark();\n self.fireEvent(BI.TextAreaEditor.EVENT_CHANGE);\n });\n\n this.content.element.focus(function () {\n if (self.isValid()) {\n self._focus();\n self.fireEvent(BI.TextAreaEditor.EVENT_FOCUS);\n }\n BI.Widget._renderEngine.createElement(document).bind(\"mousedown.\" + self.getName(), function (e) {\n if (BI.DOM.isExist(self) && !self.element.__isMouseInBounds__(e)) {\n BI.Widget._renderEngine.createElement(document).unbind(\"mousedown.\" + self.getName());\n self.content.element.blur();\n }\n });\n });\n this.content.element.blur(function () {\n if (self.isValid()) {\n self._blur();\n self.fireEvent(BI.TextAreaEditor.EVENT_BLUR);\n }\n BI.Widget._renderEngine.createElement(document).unbind(\"mousedown.\" + self.getName());\n });\n if (BI.isKey(o.value)) {\n this.setValue(o.value);\n }\n if (BI.isNotNull(o.style)) {\n this.setStyle(o.style);\n }\n this._checkWaterMark();\n },\n\n _checkWaterMark: function () {\n var self = this, o = this.options;\n var val = this.getValue();\n if (BI.isNotEmptyString(val)) {\n this.watermark && this.watermark.destroy();\n this.watermark = null;\n } else {\n if (BI.isNotEmptyString(o.watermark)) {\n if (!this.watermark) {\n this.watermark = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"bi-water-mark cursor-default\",\n textAlign: \"left\",\n whiteSpace: \"normal\",\n text: o.watermark,\n invalid: o.invalid,\n disabled: o.disabled\n });\n this.watermark.on(BI.TextButton.EVENT_CHANGE, function () {\n self.focus();\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.watermark,\n left: 4,\n top: 4,\n right: 0\n }]\n });\n } else {\n this.watermark.setText(o.watermark);\n this.watermark.setValid(!o.invalid);\n this.watermark.setEnable(!o.disabled);\n }\n }\n }\n },\n\n _focus: function () {\n this.content.element.addClass(\"textarea-editor-focus\");\n this._checkWaterMark();\n },\n\n _blur: function () {\n this.content.element.removeClass(\"textarea-editor-focus\");\n this._checkWaterMark();\n },\n\n focus: function () {\n this._focus();\n this.content.element.focus();\n },\n\n blur: function () {\n this._blur();\n this.content.element.blur();\n },\n\n getValue: function () {\n return this.content.element.val();\n },\n\n setValue: function (value) {\n this.content.element.val(value);\n this._checkWaterMark();\n },\n\n setStyle: function (style) {\n this.style = style;\n this.element.css(style);\n this.content.element.css(BI.extend({}, style, {\n color: style.color || BI.DOM.getContrastColor(BI.DOM.isRGBColor(style.backgroundColor) ? BI.DOM.rgb2hex(style.backgroundColor) : style.backgroundColor)\n }));\n },\n\n getStyle: function () {\n return this.style;\n },\n\n _setValid: function (b) {\n BI.TextAreaEditor.superclass._setValid.apply(this, arguments);\n // this.content.setValid(b);\n // this.watermark && this.watermark.setValid(b);\n },\n\n _setEnable: function (b) {\n BI.TextAreaEditor.superclass._setEnable.apply(this, [b]);\n this.content && (this.content.element[0].disabled = !b);\n }\n});\nBI.TextAreaEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.TextAreaEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.TextAreaEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.shortcut(\"bi.textarea_editor\", BI.TextAreaEditor);/**\n * guy 表示一行数据,通过position来定位位置的数据\n * @class BI.Html\n * @extends BI.Single\n */\nBI.Html = BI.inherit(BI.Single, {\n\n props: {\n baseCls: \"bi-html\",\n textAlign: \"left\",\n whiteSpace: \"normal\",\n lineHeight: null,\n handler: null, // 如果传入handler,表示处理文字的点击事件,不是区域的\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n text: \"\",\n highLight: false\n },\n\n render: function () {\n var self = this, o = this.options;\n if (o.hgap + o.lgap > 0) {\n this.element.css({\n \"padding-left\": o.hgap + o.lgap + \"px\"\n });\n }\n if (o.hgap + o.rgap > 0) {\n this.element.css({\n \"padding-right\": o.hgap + o.rgap + \"px\"\n });\n }\n if (o.vgap + o.tgap > 0) {\n this.element.css({\n \"padding-top\": o.vgap + o.tgap + \"px\"\n });\n }\n if (o.vgap + o.bgap > 0) {\n this.element.css({\n \"padding-bottom\": o.vgap + o.bgap + \"px\"\n });\n }\n if (BI.isNumber(o.height)) {\n this.element.css({lineHeight: o.height + \"px\"});\n }\n if (BI.isNumber(o.lineHeight)) {\n this.element.css({lineHeight: o.lineHeight + \"px\"});\n }\n if (BI.isWidthOrHeight(o.maxWidth)) {\n this.element.css({maxWidth: o.maxWidth});\n }\n this.element.css({\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n textOverflow: o.whiteSpace === 'nowrap' ? \"ellipsis\" : \"\",\n overflow: o.whiteSpace === \"nowrap\" ? \"\" : \"auto\"\n });\n if (o.handler) {\n this.text = BI.createWidget({\n type: \"bi.layout\",\n tagName: \"span\"\n });\n this.text.element.click(function () {\n o.handler(self.getValue());\n });\n BI.createWidget({\n type: \"bi.default\",\n element: this,\n items: [this.text]\n });\n } else {\n this.text = this;\n }\n\n if (BI.isKey(o.text)) {\n this.setText(o.text);\n } else if (BI.isKey(o.value)) {\n this.setText(o.value);\n }\n if (o.highLight) {\n this.doHighLight();\n }\n },\n\n doHighLight: function () {\n this.text.element.addClass(\"bi-high-light\");\n },\n\n unHighLight: function () {\n this.text.element.removeClass(\"bi-high-light\");\n },\n\n setValue: function (text) {\n BI.Html.superclass.setValue.apply(this, arguments);\n if (!this.isReadOnly()) {\n this.setText(text);\n }\n },\n\n setStyle: function (css) {\n this.text.element.css(css);\n },\n\n setText: function (text) {\n BI.Html.superclass.setText.apply(this, arguments);\n this.options.text = text;\n this.text.element.html(text);\n }\n});\n\nBI.shortcut(\"bi.html\", BI.Html);/**\n * guy 图标\n * @class BI.Icon\n * @extends BI.Single\n */\nBI.Icon = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.Icon.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n tagName: \"i\",\n baseCls: (conf.baseCls || \"\") + \" x-icon b-font horizon-center display-block\"\n });\n },\n _init: function () {\n BI.Icon.superclass._init.apply(this, arguments);\n if (BI.isIE9Below && BI.isIE9Below()) {\n this.element.addClass(\"hack\");\n }\n }\n});\nBI.shortcut(\"bi.icon\", BI.Icon);/**\n * @class BI.Iframe\n * @extends BI.Single\n * @abstract\n * Created by GameJian on 2016/3/2.\n */\nBI.Iframe = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.Iframe.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n tagName: \"iframe\",\n baseCls: (conf.baseCls || \"\") + \" bi-iframe\",\n src: \"\",\n name: \"\",\n attributes: {},\n width: \"100%\",\n height: \"100%\"\n });\n },\n\n _init: function () {\n var o = this.options;\n o.attributes.frameborder = \"0\";\n o.attributes.src = o.src;\n o.attributes.name = o.name;\n BI.Iframe.superclass._init.apply(this, arguments);\n },\n\n setSrc: function (src) {\n this.options.src = src;\n this.element.attr(\"src\", src);\n },\n\n getSrc: function () {\n return this.options.src;\n },\n\n setName: function (name) {\n this.options.name = name;\n this.element.attr(\"name\", name);\n },\n\n getName: function () {\n return this.options.name;\n }\n});\n\nBI.shortcut(\"bi.iframe\", BI.Iframe);/**\n * ͼƬ\n *\n * Created by GUY on 2016/1/26.\n * @class BI.Img\n * @extends BI.Single\n * @abstract\n */\nBI.Img = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.Img.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n tagName: \"img\",\n baseCls: (conf.baseCls || \"\") + \" bi-img display-block\",\n src: \"\",\n attributes: {},\n width: \"100%\",\n height: \"100%\"\n });\n },\n\n _init: function () {\n var o = this.options;\n o.attributes.src = o.src;\n BI.Img.superclass._init.apply(this, arguments);\n },\n\n setSrc: function (src) {\n this.options.src = src;\n this.element.attr(\"src\", src);\n },\n\n getSrc: function () {\n return this.options.src;\n }\n});\n\nBI.shortcut(\"bi.img\", BI.Img);\n/**\n * guy\n * @extends BI.Single\n * @type {*|void|Object}\n */\nBI.ImageCheckbox = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n var conf = BI.ImageCheckbox.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-image-checkbox check-box-icon\",\n selected: false,\n handler: BI.emptyFn,\n width: 16,\n height: 16,\n iconWidth: 16,\n iconHeight: 16\n });\n }\n});\nBI.ImageCheckbox.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;\n\nBI.shortcut(\"bi.image_checkbox\", BI.ImageCheckbox);/**\n * guy\n * @extends BI.Single\n * @type {*|void|Object}\n */\nBI.Checkbox = BI.inherit(BI.BasicButton, {\n\n props: {\n baseCls: \"bi-checkbox\",\n selected: false,\n handler: BI.emptyFn,\n width: 16,\n height: 16,\n iconWidth: 16,\n iconHeight: 16\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.center_adapt\",\n items: [{\n type: \"bi.default\",\n ref: function (_ref) {\n self.checkbox = _ref;\n },\n cls: \"checkbox-content\",\n width: o.iconWidth - 2,\n height: o.iconHeight - 2\n }]\n };\n },\n\n _setEnable: function (enable) {\n BI.Checkbox.superclass._setEnable.apply(this, arguments);\n if (enable === true) {\n this.checkbox.element.removeClass(\"base-disabled disabled\");\n } else {\n this.checkbox.element.addClass(\"base-disabled disabled\");\n }\n },\n\n doClick: function () {\n BI.Checkbox.superclass.doClick.apply(this, arguments);\n if(this.isValid()) {\n this.fireEvent(BI.Checkbox.EVENT_CHANGE);\n }\n },\n\n setSelected: function (b) {\n BI.Checkbox.superclass.setSelected.apply(this, arguments);\n if (b) {\n this.checkbox.element.addClass(\"bi-high-light-background\");\n } else {\n this.checkbox.element.removeClass(\"bi-high-light-background\");\n }\n }\n});\nBI.Checkbox.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.checkbox\", BI.Checkbox);/**\n * 文件\n *\n * Created by GUY on 2016/1/27.\n * @class BI.File\n * @extends BI.Single\n * @abstract\n */\n(function (document) {\n\n /**\n * @description normalize input.files. create if not present, add item method if not present\n * @param Object generated wrap object\n * @return Object the wrap object itself\n */\n var F = (function (item) {\n return function (input) {\n var files = input.files || [input];\n if (!files.item) {\n files.item = item;\n }\n return files;\n };\n })(function (i) {\n return this[i];\n });\n\n var event = {\n\n /**\n * @description add an event via addEventListener or attachEvent\n * @param DOMElement the element to add event\n * @param String event name without \"on\" (e.g. \"mouseover\")\n * @param Function the callback to associate as event\n * @return Object noswfupload.event\n */\n add: document.addEventListener ?\n function (node, name, callback) {\n node.addEventListener(name, callback, false);\n return this;\n } :\n function (node, name, callback) {\n node.attachEvent(\"on\" + name, callback);\n return this;\n },\n\n /**\n * @description remove an event via removeEventListener or detachEvent\n * @param DOMElement the element to remove event\n * @param String event name without \"on\" (e.g. \"mouseover\")\n * @param Function the callback associated as event\n * @return Object noswfupload.event\n */\n del: document.removeEventListener ?\n function (node, name, callback) {\n node.removeEventListener(name, callback, false);\n return this;\n } :\n function (node, name, callback) {\n node.detachEvent(\"on\" + name, callback);\n return this;\n },\n\n /**\n * @description to block event propagation and prevent event default\n * @param void generated event or undefined\n * @return Boolean false\n */\n stop: function (e) {\n if (!e) {\n if (self.event) {\n event.returnValue = !(event.cancelBubble = true);\n }\n } else {\n e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true;\n e.preventDefault ? e.preventDefault() : e.returnValue = false;\n }\n\n return false;\n }\n };\n\n var sendFile = (function (toString) {\n var multipart = function (boundary, name, file) {\n return \"--\".concat(\n boundary, CRLF,\n \"Content-Disposition: form-data; name=\\\"\", name, \"\\\"; filename=\\\"\", _global.encodeURIComponent(file.fileName), \"\\\"\", CRLF,\n \"Content-Type: application/octet-stream\", CRLF,\n CRLF,\n file.getAsBinary(), CRLF,\n \"--\", boundary, \"--\", CRLF\n );\n },\n isFunction = function (Function) {\n return toString.call(Function) === \"[object Function]\";\n },\n split = \"onabort.onerror.onloadstart.onprogress\".split(\".\"),\n length = split.length,\n CRLF = \"\\r\\n\",\n xhr = this.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject(\"Microsoft.XMLHTTP\"),\n sendFile;\n\n // FireFox 3+, Safari 4 beta (Chrome 2 beta file is buggy and will not work)\n if (xhr.upload || xhr.sendAsBinary) {\n sendFile = function (handler, maxSize, width, height) {\n if (-1 < maxSize && maxSize < handler.file.fileSize) {\n if (isFunction(handler.onerror)) {\n handler.onerror();\n }\n return;\n }\n for (var\n xhr = new XMLHttpRequest,\n upload = xhr.upload || {\n addEventListener: function (event, callback) {\n this[\"on\" + event] = callback;\n }\n },\n i = 0;\n i < length;\n i++\n ) {\n upload.addEventListener(\n split[i].substring(2),\n (function (event) {\n return function (rpe) {\n if (isFunction(handler[event])) {\n handler[event](rpe, xhr);\n }\n };\n })(split[i]),\n false\n );\n }\n upload.addEventListener(\n \"load\",\n function (rpe) {\n if (handler.onreadystatechange === false) {\n if (isFunction(handler.onload)) {\n handler.onload(rpe, xhr);\n }\n } else {\n setTimeout(function () {\n if (xhr.readyState === 4) {\n if (isFunction(handler.onload)) {\n handler.onload(rpe, xhr);\n }\n } else {\n setTimeout(arguments.callee, 15);\n }\n }, 15);\n }\n },\n false\n );\n xhr.open(\"post\", handler.url + \"&filename=\" + _global.encodeURIComponent(handler.file.fileName), true);\n if (!xhr.upload) {\n var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true};\n rpe.interval = setInterval(function () {\n rpe.loaded += 1024 / 4;\n if (rpe.total <= rpe.loaded) {\n rpe.loaded = rpe.total;\n }\n upload.onprogress(rpe);\n }, 100);\n xhr.onabort = function () {\n upload.onabort({});\n };\n xhr.onerror = function () {\n upload.onerror({});\n };\n xhr.onreadystatechange = function () {\n switch (xhr.readyState) {\n case 2:\n case 3:\n if (rpe.total <= rpe.loaded) {\n rpe.loaded = rpe.total;\n }\n upload.onprogress(rpe);\n break;\n case 4:\n clearInterval(rpe.interval);\n rpe.interval = 0;\n rpe.loaded = rpe.total;\n upload.onprogress(rpe);\n if (199 < xhr.status && xhr.status < 400) {\n upload[\"onload\"]({});\n var attachO = BI.jsonDecode(xhr.responseText);\n attachO.filename = handler.file.fileName;\n if (handler.file.type.indexOf(\"image\") != -1) {\n attachO.attach_type = \"image\";\n }\n handler.attach_array.push(attachO);\n } else {\n upload[\"onerror\"]({});\n }\n break;\n }\n };\n upload.onloadstart(rpe);\n } else {\n xhr.onreadystatechange = function () {\n switch (xhr.readyState) {\n case 4:\n var attachO = BI.jsonDecode(xhr.responseText);\n if (handler.file.type.indexOf(\"image\") != -1) {\n attachO.attach_type = \"image\";\n }\n attachO.filename = handler.file.fileName;\n if (handler.maxlength == 1) {\n handler.attach_array[0] = attachO;\n // handler.attach_array.push(attachO);\n } else {\n handler.attach_array.push(attachO);\n }\n break;\n }\n };\n if (isFunction(upload.onloadstart)) {\n upload.onloadstart();\n }\n }\n var boundary = \"AjaxUploadBoundary\" + (new Date).getTime();\n xhr.setRequestHeader(\"Content-Type\", \"multipart/form-data; boundary=\" + boundary);\n if (handler.file.getAsBinary) {\n xhr[xhr.sendAsBinary ? \"sendAsBinary\" : \"send\"](multipart(boundary, handler.name, handler.file));\n } else {\n xhr.setRequestHeader(\"Content-Type\", \"multipart/form-data\");\n // xhr.setRequestHeader(\"X-Name\", handler.name);\n // xhr.setRequestHeader(\"X-File-Name\", handler.file.fileName);\n var form = new FormData();\n form.append(\"FileData\", handler.file);\n xhr.send(form);\n }\n return handler;\n };\n }\n // Internet Explorer, Opera, others\n else {\n sendFile = function (handler, maxSize, width, height) {\n var url = handler.url.concat(-1 === handler.url.indexOf(\"?\") ? \"?\" : \"&\", \"AjaxUploadFrame=true\"),\n rpe = {\n loaded: 1, total: 100, simulation: true, interval: setInterval(function () {\n if (rpe.loaded < rpe.total) {\n ++rpe.loaded;\n }\n if (isFunction(handler.onprogress)) {\n handler.onprogress(rpe, {});\n }\n }, 100)\n },\n onload = function () {\n iframe.onreadystatechange = iframe.onload = iframe.onerror = null;\n form.parentNode.removeChild(form);\n form = null;\n clearInterval(rpe.interval);\n // rpe.loaded = rpe.total;\n try {\n var responseText = (iframe.contentWindow.document || iframe.contentWindow.contentDocument).body.innerHTML;\n var attachO = BI.jsonDecode(responseText);\n if (handler.file.type.indexOf(\"image\") != -1) {\n attachO.attach_type = \"image\";\n }\n\n // attachO.fileSize = responseText.length;\n attachO.filename = _global.decodeURIComponent(handler.file.fileName);\n if (handler.maxlength == 1) {\n handler.attach_array[0] = attachO;\n } else {\n handler.attach_array.push(attachO);\n }\n } catch (e) {\n if (isFunction(handler.onerror)) {\n handler.onerror(rpe, event || _global.event);\n }\n }\n if (isFunction(handler.onload)) {\n handler.onload(rpe, {responseText: responseText});\n }\n },\n target = [\"AjaxUpload\", (new Date).getTime(), String(Math.random()).substring(2)].join(\"_\");\n try { // IE < 8 does not accept enctype attribute ...\n var form = document.createElement(\"<form enctype=\\\"multipart/form-data\\\"></form>\"),\n iframe = handler.iframe || (handler.iframe = document.createElement(\"<iframe id=\\\"\" + target + \"\\\" name=\\\"\" + target + \"\\\" src=\\\"\" + url + \"\\\"></iframe>\"));\n } catch (e) {\n var form = document.createElement(\"form\"),\n iframe = handler.iframe || (handler.iframe = document.createElement(\"iframe\"));\n form.setAttribute(\"enctype\", \"multipart/form-data\");\n iframe.setAttribute(\"name\", iframe.id = target);\n iframe.setAttribute(\"src\", url);\n }\n iframe.style.position = \"absolute\";\n iframe.style.left = iframe.style.top = \"-10000px\";\n iframe.onload = onload;\n iframe.onerror = function (event) {\n if (isFunction(handler.onerror)) {\n handler.onerror(rpe, event || _global.event);\n }\n };\n iframe.onreadystatechange = function () {\n if (/loaded|complete/i.test(iframe.readyState)) {\n onload();\n\n // wei : todo,将附件信息放到handler.attach\n } else if (isFunction(handler.onloadprogress)) {\n if (rpe.loaded < rpe.total) {\n ++rpe.loaded;\n }\n handler.onloadprogress(rpe, {\n readyState: {\n loading: 2,\n interactive: 3,\n loaded: 4,\n complete: 4\n }[iframe.readyState] || 1\n });\n }\n };\n form.setAttribute(\"action\", handler.url + \"&filename=\" + _global.encodeURIComponent(handler.file.fileName));\n form.setAttribute(\"target\", iframe.id);\n form.setAttribute(\"method\", \"post\");\n form.appendChild(handler.file);\n form.style.display = \"none\";\n if (isFunction(handler.onloadstart)) {\n handler.onloadstart(rpe, {});\n }\n with (document.body || document.documentElement) {\n appendChild(iframe);\n appendChild(form);\n form.submit();\n }\n\n return handler;\n };\n }\n xhr = null;\n return sendFile;\n })(Object.prototype.toString);\n\n var sendFiles = function (handler, maxSize, width, height) {\n\n var length = handler.files.length,\n i = 0,\n onload = handler.onload,\n onloadstart = handler.onloadstart;\n handler.current = 0;\n handler.total = 0;\n handler.sent = 0;\n while (handler.current < length) {\n handler.total += (handler.files[handler.current].fileSize || handler.files[handler.current].size);\n handler.current++;\n }\n handler.current = 0;\n if (length && handler.files[0].fileSize !== -1) {\n handler.file = handler.files[handler.current];\n\n sendFile(handler, maxSize, width, height).onload = function (rpe, xhr) {\n handler.onloadstart = null;\n handler.sent += (handler.files[handler.current].fileSize || handler.files[handler.current].size);\n if (++handler.current < length) {\n handler.file = handler.files[handler.current];\n sendFile(handler, maxSize, width, height).onload = arguments.callee;\n } else if (onload) {\n handler.onloadstart = onloadstart;\n handler.onload = onload;\n handler.onload(rpe, xhr);\n }\n };\n } else if (length) {\n handler.total = length * 100;\n handler.file = handler.files[handler.current];\n sendFile(handler, maxSize, width, height).onload = function (rpe, xhr) {\n var callee = arguments.callee;\n handler.onloadstart = null;\n handler.sent += 100;\n if (++handler.current < length) {\n if (/\\b(chrome|safari)\\b/i.test(navigator.userAgent)) {\n handler.iframe.parentNode.removeChild(handler.iframe);\n handler.iframe = null;\n }\n setTimeout(function () {\n handler.file = handler.files[handler.current];\n sendFile(handler, maxSize, width, height).onload = callee;\n }, 15);\n } else if (onload) {\n setTimeout(function () {\n handler.iframe.parentNode.removeChild(handler.iframe);\n handler.iframe = null;\n handler.onloadstart = onloadstart;\n handler.onload = onload;\n handler.onload(rpe, xhr);\n }, 15);\n }\n };\n }\n return handler;\n };\n\n BI.File = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.File.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-file display-block\",\n tagName: \"input\",\n attributes: {\n type: \"file\"\n },\n name: \"\",\n url: \"\",\n multiple: true,\n accept: \"\", /** '*.jpg; *.zip'**/\n maxSize: -1 // 1024 * 1024\n });\n },\n\n _init: function () {\n var self = this, o = this.options;\n BI.File.superclass._init.apply(this, arguments);\n if (o.multiple === true) {\n this.element.attr(\"multiple\", \"multiple\");\n }\n this.element.attr(\"name\", o.name || this.getName());\n this.element.attr(\"title\", o.title || \"\");\n },\n\n created: function () {\n var self = this, o = this.options;\n // create the noswfupload.wrap Object\n // wrap.maxSize 文件大小限制\n // wrap.maxlength 文件个数限制\n var _wrap = this.wrap = this._wrap(this.element[0], o.maxSize);\n // fileType could contain whatever text but filter checks *.{extension}\n // if present\n\n // handlers\n\n _wrap.onloadstart = function (rpe, xhr) {\n // BI.Msg.toast(\"loadstart\");\n self.fireEvent(BI.File.EVENT_UPLOADSTART, arguments);\n };\n\n _wrap.onprogress = function (rpe, xhr) {\n // BI.Msg.toast(\"onprogress\");\n // percent for each bar\n\n // fileSize is -1 only if browser does not support file info access\n // this if splits recent browsers from others\n if (this.file.fileSize !== -1) {\n // simulation property indicates when the progress event is fake\n if (rpe.simulation) {\n\n } else {\n\n }\n } else {\n // if fileSIze is -1 browser is using an iframe because it does\n // not support\n // files sent via Ajax (XMLHttpRequest)\n // We can still show some information\n }\n self.fireEvent(BI.File.EVENT_PROGRESS, {\n file: this.file,\n total: rpe.total,\n loaded: rpe.loaded,\n simulation: rpe.simulation\n });\n };\n\n // generated if there is something wrong during upload\n _wrap.onerror = function () {\n // just inform the user something was wrong\n self.fireEvent(BI.File.EVENT_ERROR);\n };\n\n // generated when every file has been sent (one or more, it does not\n // matter)\n _wrap.onload = function (rpe, xhr) {\n var self_ = this;\n // just show everything is fine ...\n // ... and after a second reset the component\n setTimeout(function () {\n self_.clean(); // remove files from list\n self_.hide(); // hide progress bars and enable input file\n\n if (200 > xhr.status || xhr.status > 399) {\n BI.Msg.toast(BI.i18nText(\"BI-Upload_File_Error\"), {level: \"error\"});\n self.fireEvent(BI.File.EVENT_ERROR);\n return;\n }\n var error = BI.some(_wrap.attach_array, function (index, attach) {\n if (attach.errorCode) {\n BI.Msg.toast(attach.errorMsg, {level: \"error\"});\n self.fireEvent(BI.File.EVENT_ERROR, attach);\n return true;\n }\n });\n !error && self.fireEvent(BI.File.EVENT_UPLOADED);\n // enable again the submit button/element\n }, 1000);\n };\n _wrap.url = o.url;\n _wrap.fileType = o.accept; // 文件类型限制\n _wrap.attach_array = [];\n _wrap.attach_names = [];\n _wrap.attachNum = 0;\n },\n\n _events: function (wrap) {\n var self = this;\n event.add(wrap.dom.input, \"change\", function () {\n event.del(wrap.dom.input, \"change\", arguments.callee);\n for (var input = wrap.dom.input.cloneNode(true), i = 0, files = F(wrap.dom.input); i < files.length; i++) {\n var item = files.item(i);\n var tempFile = item.value || item.name;\n var value = item.fileName || (item.fileName = tempFile.split(\"\\\\\").pop()),\n ext = -1 !== value.indexOf(\".\") ? value.split(\".\").pop().toLowerCase() : \"unknown\",\n size = item.fileSize || item.size;\n if (wrap.fileType && -1 === wrap.fileType.indexOf(\"*.\" + ext)) {\n // 文件类型不支持\n BI.Msg.toast(BI.i18nText(\"BI-Upload_File_Type_Error\"), {level: \"error\"});\n self.fireEvent(BI.File.EVENT_ERROR, {\n errorType: 0,\n file: item\n });\n } else if (wrap.maxSize !== -1 && size && wrap.maxSize < size) {\n // 文件大小不支持\n BI.Msg.toast(BI.i18nText(\"BI-Upload_File_Size_Error\"), {level: \"error\"});\n self.fireEvent(BI.File.EVENT_ERROR, {\n errorType: 1,\n file: item\n });\n } else {\n wrap.files.unshift(item);\n // BI.Msg.toast(value);\n }\n }\n wrap.files.length > 0 && self.fireEvent(BI.File.EVENT_CHANGE, {\n files: wrap.files\n });\n input.value = \"\";\n wrap.dom.input.parentNode.replaceChild(input, wrap.dom.input);\n wrap.dom.input = input;\n event.add(wrap.dom.input, \"change\", arguments.callee);\n });\n return wrap;\n },\n\n _wrap: function () {\n var self = this, o = this.options;\n // be sure input accept multiple files\n var input = this.element[0];\n if (o.multiple === true) {\n this.element.attr(\"multiple\", \"multiple\");\n }\n input.value = \"\";\n\n // wrap Object\n return this._events({\n\n // DOM namespace\n dom: {\n input: input, // input file\n disabled: false // internal use, checks input file state\n },\n name: input.name, // name to send for each file ($_FILES[{name}] in the server)\n // maxSize is the maximum amount of bytes for each file\n maxSize: o.maxSize ? o.maxSize >> 0 : -1,\n files: [], // file list\n\n // remove every file from the noswfupload component\n clean: function () {\n this.files = [];\n },\n\n // upload one file a time (which make progress possible rather than all files in one shot)\n // the handler is an object injected into the wrap one, could be the wrap itself or\n // something like {onload:function(){alert(\"OK\")},onerror:function(){alert(\"Error\")}, etc ...}\n upload: function (handler) {\n if (handler) {\n for (var key in handler) {\n this[key] = handler[key];\n }\n }\n sendFiles(this, this.maxSize);\n return this;\n },\n\n // hide progress bar (total + current) and enable files selection\n hide: function () {\n if (this.dom.disabled) {\n this.dom.disabled = false;\n this.dom.input.removeAttribute(\"disabled\");\n }\n },\n\n // show progress bar and disable file selection (used during upload)\n // total and current are pixels used to style bars\n // totalProp and currentProp are properties to change, \"height\" by default\n show: function (total, current, totalProp, currentProp) {\n if (!this.dom.disabled) {\n this.dom.disabled = true;\n this.dom.input.setAttribute(\"disabled\", \"disabled\");\n }\n }\n });\n },\n\n select: function () {\n this.wrap && BI.Widget._renderEngine.createElement(this.wrap.dom.input).click();\n },\n\n upload: function (handler) {\n this.wrap && this.wrap.upload(handler);\n },\n\n getValue: function () {\n return this.wrap ? this.wrap.attach_array : [];\n },\n\n reset: function () {\n if (this.wrap) {\n this.wrap.attach_array = [];\n this.wrap.attach_names = [];\n this.wrap.attachNum = 0;\n }\n },\n\n _setEnable: function (enable) {\n BI.File.superclass._setEnable.apply(this, arguments);\n if (enable === true) {\n this.element.attr(\"disabled\", \"disabled\");\n } else {\n this.element.removeAttr(\"disabled\");\n }\n }\n });\n BI.File.EVENT_CHANGE = \"EVENT_CHANGE\";\n BI.File.EVENT_UPLOADSTART = \"EVENT_UPLOADSTART\";\n BI.File.EVENT_ERROR = \"EVENT_ERROR\";\n BI.File.EVENT_PROGRESS = \"EVENT_PROGRESS\";\n BI.File.EVENT_UPLOADED = \"EVENT_UPLOADED\";\n BI.shortcut(\"bi.file\", BI.File);\n})(_global.document || {});/**\n * guy\n * @class BI.Input 一个button和一行数 组成的一行listitem\n * @extends BI.Single\n * @type {*|void|Object}\n */\nBI.Input = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.Input.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-input display-block overflow-dot\",\n tagName: \"input\",\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn, // 按确定键能否退出编辑\n allowBlank: false\n });\n },\n\n _init: function () {\n BI.Input.superclass._init.apply(this, arguments);\n var self = this;\n var ctrlKey = false;\n var keyCode = null;\n var inputEventValid = false;\n var _keydown = BI.debounce(function (keyCode) {\n self.onKeyDown(keyCode, ctrlKey);\n self._keydown_ = false;\n }, 300);\n var _clk = BI.debounce(BI.bind(this._click, this), BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n });\n this._focusDebounce = BI.debounce(BI.bind(this._focus, this), BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n });\n this._blurDebounce = BI.debounce(BI.bind(this._blur, this), BI.EVENT_RESPONSE_TIME, {\n \"leading\": true,\n \"trailing\": false\n });\n this.element\n .keydown(function (e) {\n inputEventValid = false;\n ctrlKey = e.ctrlKey || e.metaKey; // mac的cmd支持一下\n keyCode = e.keyCode;\n self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);\n })\n .keyup(function (e) {\n keyCode = null;\n if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {\n self._keydown_ = true;\n _keydown(e.keyCode);\n }\n })\n .on(\"input propertychange\", function (e) {\n // 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了\n // 其中propertychange在元素属性发生改变的时候就会触发 是为了兼容IE8\n // 通过keyCode判断会漏掉输入法点击输入(右键粘贴暂缓)\n var originalEvent = e.originalEvent;\n if (BI.isNull(originalEvent.propertyName) || originalEvent.propertyName === \"value\") {\n inputEventValid = true;\n self._keydown_ = true;\n _keydown(keyCode);\n keyCode = null;\n }\n })\n .click(function (e) {\n e.stopPropagation();\n _clk();\n })\n .mousedown(function (e) {\n self.element.val(self.element.val());\n })\n .focus(function (e) { // 可以不用冒泡\n self._focusDebounce();\n })\n .focusout(function (e) {\n self._blurDebounce();\n });\n if (BI.isKey(this.options.value) || BI.isEmptyString(this.options.value)) {\n this.setValue(this.options.value);\n }\n },\n\n _focus: function () {\n this.element.addClass(\"bi-input-focus\");\n this._checkValidationOnValueChange();\n this._isEditing = true;\n if (this.getValue() == \"\") {\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this);\n this.fireEvent(BI.Input.EVENT_EMPTY);\n }\n this.fireEvent(BI.Input.EVENT_FOCUS);\n },\n\n _blur: function () {\n var self = this;\n if (self._keydown_ === true) {\n BI.delay(blur, 300);\n } else {\n blur();\n }\n\n function blur () {\n if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {\n self.element.val(self._lastValidValue ? self._lastValidValue : \"\");\n self._checkValidationOnValueChange();\n self._defaultState();\n }\n self.element.removeClass(\"bi-input-focus\");\n self._isEditing = false;\n self._start = false;\n if (self.isValid()) {\n var lastValidValue = self._lastValidValue;\n self._lastValidValue = self.getValue();\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CONFIRM, self.getValue(), self);\n self.fireEvent(BI.Input.EVENT_CONFIRM);\n if (self._lastValidValue !== lastValidValue) {\n self.fireEvent(BI.Input.EVENT_CHANGE_CONFIRM);\n }\n }\n self.fireEvent(BI.Input.EVENT_BLUR);\n }\n },\n\n _click: function () {\n if (this._isEditing !== true) {\n this.selectAll();\n this.fireEvent(BI.Input.EVENT_CLICK);\n }\n },\n\n onClick: function () {\n this._click();\n },\n\n onKeyDown: function (keyCode, ctrlKey) {\n if (!this.isValid() || BI.trim(this._lastChangedValue) !== BI.trim(this.getValue())) {\n this._checkValidationOnValueChange();\n }\n if (this.isValid() && BI.trim(this.getValue()) !== \"\") {\n if (BI.trim(this.getValue()) !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === \"\")\n || (this._pause === true && !/(\\s|\\u00A0)$/.test(this.getValue()))) {\n this._start = true;\n this._pause = false;\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STARTEDIT, this.getValue(), this);\n this.fireEvent(BI.Input.EVENT_START);\n }\n }\n if (keyCode == BI.KeyCode.ENTER) {\n if (this.isValid() || this.options.quitChecker.apply(this, [BI.trim(this.getValue())]) !== false) {\n this.blur();\n this.fireEvent(BI.Input.EVENT_ENTER);\n } else {\n this.fireEvent(BI.Input.EVENT_RESTRICT);\n }\n }\n if (keyCode == BI.KeyCode.SPACE) {\n this.fireEvent(BI.Input.EVENT_SPACE);\n }\n if (keyCode == BI.KeyCode.BACKSPACE && this._lastValue == \"\") {\n this.fireEvent(BI.Input.EVENT_REMOVE);\n }\n if (keyCode == BI.KeyCode.BACKSPACE || keyCode == BI.KeyCode.DELETE) {\n this.fireEvent(BI.Input.EVENT_BACKSPACE);\n }\n this.fireEvent(BI.Input.EVENT_KEY_DOWN, arguments);\n\n // _valueChange中会更新_lastValue, 这边缓存用以后续STOP事件服务\n var lastValue = this._lastValue;\n if(BI.trim(this.getValue()) !== BI.trim(this._lastValue || \"\")){\n this._valueChange();\n }\n if (BI.isEndWithBlank(this.getValue())) {\n this._pause = true;\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.PAUSE, \"\", this);\n this.fireEvent(BI.Input.EVENT_PAUSE);\n this._defaultState();\n } else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) &&\n BI.trim(this.getValue()) === \"\" && (lastValue !== null && BI.trim(lastValue) !== \"\")) {\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this);\n this.fireEvent(BI.Input.EVENT_STOP);\n }\n },\n\n // 初始状态\n _defaultState: function () {\n if (this.getValue() == \"\") {\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this);\n this.fireEvent(BI.Input.EVENT_EMPTY);\n }\n this._lastValue = this.getValue();\n this._lastSubmitValue = null;\n },\n\n _valueChange: function () {\n if (this.isValid() && BI.trim(this.getValue()) !== this._lastSubmitValue) {\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CHANGE, this.getValue(), this);\n this.fireEvent(BI.Input.EVENT_CHANGE);\n this._lastSubmitValue = BI.trim(this.getValue());\n }\n if (this.getValue() == \"\") {\n this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this);\n this.fireEvent(BI.Input.EVENT_EMPTY);\n }\n this._lastValue = this.getValue();\n },\n\n _checkValidationOnValueChange: function () {\n var o = this.options;\n var v = this.getValue();\n this.setValid(\n (o.allowBlank === true && BI.trim(v) == \"\") || (\n BI.isNotEmptyString(BI.trim(v)) && o.validationChecker.apply(this, [BI.trim(v)]) !== false\n )\n );\n },\n\n focus: function () {\n if (!this.element.is(\":visible\")) {\n throw new Error(\"input输入框在不可见下不能focus\");\n }\n if (!this._isEditing === true) {\n this.element.focus();\n this.selectAll();\n }\n },\n\n blur: function () {\n if (!this.element.is(\":visible\")) {\n throw new Error(\"input输入框在不可见下不能blur\");\n }\n if (this._isEditing === true) {\n this.element.blur();\n this._blurDebounce();\n }\n },\n\n selectAll: function () {\n if (!this.element.is(\":visible\")) {\n throw new Error(\"input输入框在不可见下不能select\");\n }\n this.element.select();\n this._isEditing = true;\n },\n\n setValue: function (textValue) {\n this.element.val(textValue);\n BI.nextTick(BI.bind(function () {\n this._checkValidationOnValueChange();\n this._defaultState();\n if (this.isValid()) {\n this._lastValidValue = this._lastSubmitValue = this.getValue();\n }\n }, this));\n },\n\n getValue: function () {\n return this.element.val() || \"\";\n },\n\n isEditing: function () {\n return this._isEditing;\n },\n\n getLastValidValue: function () {\n return this._lastValidValue;\n },\n\n getLastChangedValue: function () {\n return this._lastChangedValue;\n },\n\n _setValid: function () {\n BI.Input.superclass._setValid.apply(this, arguments);\n if (this.isValid()) {\n this._lastChangedValue = this.getValue();\n this.element.removeClass(\"bi-input-error\");\n this.fireEvent(BI.Input.EVENT_VALID, BI.trim(this.getValue()), this);\n } else {\n if (this._lastChangedValue === this.getValue()) {\n this._lastChangedValue = null;\n }\n this.element.addClass(\"bi-input-error\");\n this.fireEvent(BI.Input.EVENT_ERROR, BI.trim(this.getValue()), this);\n }\n },\n\n _setEnable: function (b) {\n BI.Input.superclass._setEnable.apply(this, [b]);\n this.element[0].disabled = !b;\n }\n});\nBI.Input.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.Input.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.Input.EVENT_CLICK = \"EVENT_CLICK\";\nBI.Input.EVENT_BLUR = \"EVENT_BLUR\";\nBI.Input.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.Input.EVENT_QUICK_DOWN = \"EVENT_QUICK_DOWN\";\nBI.Input.EVENT_SPACE = \"EVENT_SPACE\";\nBI.Input.EVENT_BACKSPACE = \"EVENT_BACKSPACE\";\n\nBI.Input.EVENT_START = \"EVENT_START\";\nBI.Input.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.Input.EVENT_STOP = \"EVENT_STOP\";\nBI.Input.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.Input.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.Input.EVENT_REMOVE = \"EVENT_REMOVE\";\nBI.Input.EVENT_EMPTY = \"EVENT_EMPTY\";\nBI.Input.EVENT_VALID = \"EVENT_VALID\";\nBI.Input.EVENT_ERROR = \"EVENT_ERROR\";\nBI.Input.EVENT_ENTER = \"EVENT_ENTER\";\nBI.Input.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.shortcut(\"bi.input\", BI.Input);\n/**\n * guy\n * @extends BI.Single\n * @type {*|void|Object}\n */\nBI.ImageRadio = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n var conf = BI.ImageRadio.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-radio radio-icon\",\n selected: false,\n handler: BI.emptyFn,\n width: 16,\n height: 16,\n iconWidth: 16,\n iconHeight: 16\n });\n },\n\n _init: function () {\n BI.ImageRadio.superclass._init.apply(this, arguments);\n },\n\n doClick: function () {\n BI.ImageRadio.superclass.doClick.apply(this, arguments);\n if(this.isValid()) {\n this.fireEvent(BI.ImageRadio.EVENT_CHANGE);\n }\n }\n});\nBI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;\n\nBI.shortcut(\"bi.image_radio\", BI.ImageRadio);/**\n * guy\n * @extends BI.Single\n * @type {*|void|Object}\n */\nBI.Radio = BI.inherit(BI.BasicButton, {\n\n props: {\n baseCls: \"bi-radio\",\n selected: false,\n handler: BI.emptyFn,\n width: 16,\n height: 16,\n iconWidth: 14,\n iconHeight: 14\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.center_adapt\",\n element: this.element,\n items: [{\n type: \"bi.layout\",\n cls: \"radio-content\",\n ref: function (_ref) {\n self.radio = _ref;\n },\n width: o.iconWidth,\n height: o.iconHeight\n }]\n };\n },\n\n _setEnable: function (enable) {\n BI.Radio.superclass._setEnable.apply(this, arguments);\n if (enable === true) {\n this.radio.element.removeClass(\"base-disabled disabled\");\n } else {\n this.radio.element.addClass(\"base-disabled disabled\");\n }\n },\n\n doClick: function () {\n BI.Radio.superclass.doClick.apply(this, arguments);\n if(this.isValid()) {\n this.fireEvent(BI.Radio.EVENT_CHANGE);\n }\n },\n\n setSelected: function (b) {\n BI.Radio.superclass.setSelected.apply(this, arguments);\n if (b) {\n this.radio.element.addClass(\"bi-high-light-background\");\n } else {\n this.radio.element.removeClass(\"bi-high-light-background\");\n }\n }\n});\nBI.Radio.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.radio\", BI.Radio);/**\n * Created by dailer on 2019/6/19.\n */\n\nBI.AbstractLabel = BI.inherit(BI.Single, {\n\n _defaultConfig: function (props) {\n var conf = BI.AbstractLabel.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n textAlign: \"center\",\n whiteSpace: \"nowrap\", // normal or nowrap\n textWidth: null,\n textHeight: null,\n hgap: 0,\n vgap: 0,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n text: \"\",\n highLight: false\n });\n },\n\n _createJson: function () {\n var o = this.options;\n return {\n type: \"bi.text\",\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n lineHeight: o.textHeight,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword,\n highLight: o.highLight\n };\n },\n\n _init: function () {\n BI.AbstractLabel.superclass._init.apply(this, arguments);\n\n if (this.options.textAlign === \"center\") {\n this._createCenterEl();\n } else {\n this._createNotCenterEl();\n }\n },\n\n _createCenterEl: function () {\n var o = this.options;\n var json = this._createJson();\n json.textAlign = \"left\";\n if (BI.isNumber(o.width) && o.width > 0) {\n if (BI.isNumber(o.textWidth) && o.textWidth > 0) {\n json.maxWidth = o.textWidth;\n if (BI.isNumber(o.height) && o.height > 0) { // 1.1\n BI.createWidget({\n type: \"bi.center_adapt\",\n height: o.height,\n scrollable: o.whiteSpace === \"normal\",\n element: this,\n items: [\n {\n el: (this.text = BI.createWidget(json))\n }\n ]\n });\n return;\n }\n BI.createWidget({ // 1.2\n type: \"bi.center_adapt\",\n scrollable: o.whiteSpace === \"normal\",\n element: this,\n items: [\n {\n el: (this.text = BI.createWidget(json))\n }\n ]\n });\n return;\n }\n if (o.whiteSpace == \"normal\") { // 1.3\n BI.extend(json, {\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n });\n this.text = BI.createWidget(json);\n BI.createWidget({\n type: \"bi.center_adapt\",\n scrollable: o.whiteSpace === \"normal\",\n element: this,\n items: [this.text]\n });\n return;\n }\n if (BI.isNumber(o.height) && o.height > 0) { // 1.4\n this.element.css({\n \"line-height\": o.height + \"px\"\n });\n json.textAlign = o.textAlign;\n this.text = BI.createWidget(BI.extend(json, {\n element: this,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n }));\n return;\n }\n BI.extend(json, { // 1.5\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n maxWidth: \"100%\"\n });\n this.text = BI.createWidget(json);\n BI.createWidget({\n type: \"bi.center_adapt\",\n scrollable: o.whiteSpace === \"normal\",\n element: this,\n items: [this.text]\n });\n return;\n }\n if (BI.isNumber(o.textWidth) && o.textWidth > 0) { // 1.6\n json.maxWidth = o.textWidth;\n BI.createWidget({\n type: \"bi.center_adapt\",\n scrollable: o.whiteSpace === \"normal\",\n element: this,\n items: [\n {\n el: (this.text = BI.createWidget(json))\n }\n ]\n });\n return;\n }\n if (o.whiteSpace == \"normal\") { // 1.7\n BI.extend(json, {\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n });\n this.text = BI.createWidget(json);\n BI.createWidget({\n type: \"bi.center_adapt\",\n scrollable: true,\n element: this,\n items: [this.text]\n });\n return;\n }\n if (BI.isNumber(o.height) && o.height > 0) { // 1.8\n this.element.css({\n \"line-height\": o.height + \"px\"\n });\n json.textAlign = o.textAlign;\n this.text = BI.createWidget(BI.extend(json, {\n element: this,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n }));\n return;\n }\n BI.extend(json, {\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n });\n\n this.text = BI.createWidget(BI.extend(json, {\n maxWidth: \"100%\"\n }));\n BI.createWidget({\n type: \"bi.center_adapt\",\n element: this,\n items: [this.text]\n });\n },\n\n _createNotCenterEl: function () {\n var o = this.options;\n var adaptLayout = o.textAlign === \"right\" ? \"bi.right_vertical_adapt\" : \"bi.vertical_adapt\";\n var json = this._createJson();\n if (BI.isNumber(o.width) && o.width > 0) {\n if (BI.isNumber(o.textWidth) && o.textWidth > 0) {\n json.width = o.textWidth;\n if (BI.isNumber(o.height) && o.height > 0) { // 2.1\n BI.createWidget({\n type: adaptLayout,\n height: o.height,\n scrollable: o.whiteSpace === \"normal\",\n element: this,\n items: [\n {\n el: (this.text = BI.createWidget(json))\n }\n ]\n });\n return;\n }\n BI.createWidget({ // 2.2\n type: adaptLayout,\n scrollable: o.whiteSpace === \"normal\",\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n element: this,\n items: [\n {\n el: (this.text = BI.createWidget(json))\n }\n ]\n });\n return;\n }\n if (BI.isNumber(o.height) && o.height > 0) { // 2.3\n this.text = BI.createWidget(BI.extend(json, {\n element: this,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n }));\n if (o.whiteSpace !== \"normal\") {\n this.element.css({\n \"line-height\": o.height - (o.vgap * 2) + \"px\"\n });\n }\n return;\n }\n json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;\n BI.createWidget({ // 2.4\n type: adaptLayout,\n scrollable: o.whiteSpace === \"normal\",\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n element: this,\n items: [{\n el: (this.text = BI.createWidget(json))\n }]\n });\n return;\n }\n if (BI.isNumber(o.textWidth) && o.textWidth > 0) {\n json.width = o.textWidth;\n BI.createWidget({ // 2.5\n type: adaptLayout,\n scrollable: o.whiteSpace === \"normal\",\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n element: this,\n items: [\n {\n el: (this.text = BI.createWidget(json))\n }\n ]\n });\n return;\n }\n if (BI.isNumber(o.height) && o.height > 0) {\n if (o.whiteSpace !== \"normal\") {\n this.element.css({\n \"line-height\": o.height - (o.vgap * 2) + \"px\"\n });\n }\n this.text = BI.createWidget(BI.extend(json, { // 2.6\n element: this,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n }));\n return;\n }\n BI.extend(json, {\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap\n });\n\n this.text = BI.createWidget(BI.extend(json, {\n maxWidth: \"100%\"\n }));\n BI.createWidget({\n type: adaptLayout,\n element: this,\n items: [this.text]\n });\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n setText: function (v) {\n this.options.text = v;\n this.text.setText(v);\n },\n\n getText: function () {\n return this.options.text;\n },\n\n setStyle: function (css) {\n this.text.setStyle(css);\n },\n\n setValue: function (v) {\n BI.AbstractLabel.superclass.setValue.apply(this, arguments);\n if (!this.isReadOnly()) {\n this.text.setValue(v);\n }\n },\n\n populate: function () {\n BI.AbstractLabel.superclass.populate.apply(this, arguments);\n }\n});/**\n * Created by GUY on 2015/6/26.\n */\n\nBI.HtmlLabel = BI.inherit(BI.AbstractLabel, {\n\n props: {\n baseCls: \"bi-html-label\"\n },\n\n _createJson: function () {\n var o = this.options;\n return {\n type: \"bi.html\",\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n lineHeight: o.textHeight,\n text: o.text,\n value: o.value\n };\n }\n});\n\nBI.shortcut(\"bi.html_label\", BI.HtmlLabel);/**\n * @class BI.IconButton\n * @extends BI.BasicButton\n * 图标标签\n */\nBI.IconLabel = BI.inherit(BI.Single, {\n\n props: {\n baseCls: \"bi-icon-label horizon-center\",\n iconWidth: null,\n iconHeight: null\n },\n\n _init: function () {\n BI.IconLabel.superclass._init.apply(this, arguments);\n var o = this.options;\n this.element.css({\n textAlign: \"center\"\n });\n this.icon = BI.createWidget({\n type: \"bi.icon\",\n width: o.iconWidth,\n height: o.iconHeight\n });\n if (BI.isNumber(o.height) && o.height > 0 && BI.isNull(o.iconWidth) && BI.isNull(o.iconHeight)) {\n this.element.css(\"lineHeight\", o.height + \"px\");\n BI.createWidget({\n type: \"bi.default\",\n element: this,\n items: [this.icon]\n });\n } else {\n this.element.css(\"lineHeight\", \"1\");\n BI.createWidget({\n element: this,\n type: \"bi.center_adapt\",\n items: [this.icon]\n });\n }\n }\n});\nBI.shortcut(\"bi.icon_label\", BI.IconLabel);/**\n * Created by GUY on 2015/6/26.\n */\n\nBI.Label = BI.inherit(BI.AbstractLabel, {\n\n props: {\n baseCls: \"bi-label\",\n py: \"\",\n keyword: \"\"\n },\n\n _createJson: function () {\n var o = this.options;\n return {\n type: \"bi.text\",\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n lineHeight: o.textHeight,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword,\n highLight: o.highLight\n };\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n }\n});\n\nBI.shortcut(\"bi.label\", BI.Label);/**\n * guy a元素\n * @class BI.Link\n * @extends BI.Text\n */\nBI.Link = BI.inherit(BI.Label, {\n _defaultConfig: function () {\n var conf = BI.Link.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-link display-block\",\n tagName: \"a\",\n href: \"\",\n target: \"_blank\"\n });\n },\n\n _createJson: function () {\n var o = this.options;\n return {\n type: \"bi.a\",\n textAlign: o.textAlign,\n whiteSpace: o.whiteSpace,\n lineHeight: o.textHeight,\n text: o.text,\n keyword: o.keyword,\n value: o.value,\n py: o.py,\n href: o.href,\n target: o.target\n };\n },\n\n _init: function () {\n BI.Link.superclass._init.apply(this, arguments);\n }\n});\n\nBI.shortcut(\"bi.link\", BI.Link);/**\n * guy\n * 气泡提示\n * @class BI.Bubble\n * @extends BI.Tip\n * @type {*|void|Object}\n */\nBI.Bubble = BI.inherit(BI.Tip, {\n _defaultConfig: function () {\n return BI.extend(BI.Bubble.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-bubble\",\n direction: \"top\",\n text: \"\",\n level: \"error\",\n height: 18\n });\n },\n _init: function () {\n BI.Bubble.superclass._init.apply(this, arguments);\n var fn = function (e) {\n e.stopPropagation();\n e.stopEvent();\n return false;\n };\n this.element.bind({click: fn, mousedown: fn, mouseup: fn, mouseover: fn, mouseenter: fn, mouseleave: fn, mousemove: fn});\n BI.createWidget({\n type: \"bi.left\",\n element: this,\n items: [this[\"_\" + this.options.direction]()]\n });\n },\n\n _createBubbleText: function () {\n var o = this.options;\n return (this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"bubble-text\" + (\" bubble-\" + o.level),\n text: o.text,\n hgap: 5,\n height: 18\n }));\n },\n\n _top: function () {\n return BI.createWidget({\n type: \"bi.vertical\",\n items: [{\n el: this._createBubbleText(),\n height: 18\n }, {\n el: {\n type: \"bi.layout\"\n },\n height: 3\n }]\n });\n },\n\n _bottom: function () {\n return BI.createWidget({\n type: \"bi.vertical\",\n items: [{\n el: {\n type: \"bi.layout\"\n },\n height: 3\n }, {\n el: this._createBubbleText(),\n height: 18\n }]\n });\n },\n\n _left: function () {\n return BI.createWidget({\n type: \"bi.right\",\n items: [{\n el: {\n type: \"bi.layout\",\n width: 3,\n height: 18\n }\n }, {\n el: this._createBubbleText()\n }]\n });\n },\n\n _right: function () {\n return BI.createWidget({\n type: \"bi.left\",\n items: [{\n el: {\n type: \"bi.layout\",\n width: 3,\n height: 18\n }\n }, {\n el: this._createBubbleText()\n }]\n });\n },\n\n setText: function (text) {\n this.text.setText(text);\n }\n});\n\nBI.shortcut(\"bi.bubble\", BI.Bubble);/**\n * toast提示\n *\n * Created by GUY on 2015/9/7.\n * @class BI.Toast\n * @extends BI.Tip\n */\nBI.Toast = BI.inherit(BI.Tip, {\n _const: {\n minWidth: 200,\n hgap: 10\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.Toast.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-toast\",\n text: \"\",\n level: \"success\" // success或warning\n });\n },\n _init: function () {\n BI.Toast.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.element.css({\n minWidth: this._const.minWidth + \"px\"\n });\n this.element.addClass(\"toast-\" + o.level);\n var fn = function (e) {\n e.stopPropagation();\n e.stopEvent();\n return false;\n };\n this.element.bind({click: fn, mousedown: fn, mouseup: fn, mouseover: fn, mouseenter: fn, mouseleave: fn, mousemove: fn});\n var cls = \"close-font\";\n switch(o.level) {\n case \"success\":\n cls = \"toast-success-font\";\n break;\n case \"error\":\n cls = \"toast-error-font\";\n break;\n case \"warning\":\n cls = \"toast-warning-font\";\n break;\n case \"normal\":\n default:\n cls = \"toast-message-font\";\n break;\n }\n\n var items = [{\n type: \"bi.icon_label\",\n cls: cls + \" toast-icon\",\n width: 36\n }, {\n el: {\n type: \"bi.label\",\n whiteSpace: \"normal\",\n text: o.text,\n textHeight: 16,\n textAlign: \"left\"\n },\n rgap: o.autoClose ? this._const.hgap : 0\n }];\n\n var columnSize = [36, \"\"];\n\n if(o.autoClose === false) {\n items.push({\n type: \"bi.icon_button\",\n cls: \"close-font toast-icon\",\n handler: function () {\n self.destroy();\n },\n width: 36\n });\n columnSize.push(36);\n }\n\n this.text = BI.createWidget({\n type: \"bi.horizontal_adapt\",\n element: this,\n items: items,\n vgap: 7,\n columnSize: columnSize\n });\n },\n\n setText: function (text) {\n this.text.setText(text);\n },\n\n beforeDestroy: function () {\n this.fireEvent(BI.Toast.EVENT_DESTORY);\n }\n});\nBI.Toast.EVENT_DESTORY = \"EVENT_DESTORY\";\nBI.shortcut(\"bi.toast\", BI.Toast);/**\n * title提示\n *\n * Created by GUY on 2015/9/7.\n * @class BI.Tooltip\n * @extends BI.Tip\n */\nBI.Tooltip = BI.inherit(BI.Tip, {\n _const: {\n hgap: 5,\n vgap: 3\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.Tooltip.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-tooltip\",\n text: \"\",\n level: \"success\", // success或warning\n stopEvent: false,\n stopPropagation: false\n });\n },\n _init: function () {\n BI.Tooltip.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.element.addClass(\"tooltip-\" + o.level);\n var fn = function (e) {\n o.stopPropagation && e.stopPropagation();\n o.stopEvent && e.stopEvent();\n };\n this.element.bind({\n click: fn,\n mousedown: fn,\n mouseup: fn,\n mouseover: fn,\n mouseenter: fn,\n mouseleave: fn,\n mousemove: fn\n });\n\n var texts = (o.text + \"\").split(\"\\n\");\n if (texts.length > 1) {\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n hgap: this._const.hgap,\n items: BI.map(texts, function (i, text) {\n return {\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"normal\",\n text: text,\n textHeight: 18\n };\n })\n });\n } else {\n this.text = BI.createWidget({\n type: \"bi.label\",\n element: this,\n textAlign: \"left\",\n whiteSpace: \"normal\",\n text: o.text,\n textHeight: 18,\n hgap: this._const.hgap\n });\n }\n },\n\n setWidth: function (width) {\n this.element.width(width - 2 * this._const.hgap);\n },\n\n setText: function (text) {\n this.text && this.text.setText(text);\n },\n\n setLevel: function (level) {\n this.element.removeClass(\"tooltip-success\").removeClass(\"tooltip-warning\");\n this.element.addClass(\"tooltip-\" + level);\n }\n});\n\nBI.shortcut(\"bi.tooltip\", BI.Tooltip);/**\n * 下拉\n * @class BI.Trigger\n * @extends BI.Single\n * @abstract\n */\nBI.Trigger = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.Trigger.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n _baseCls: (conf._baseCls || \"\") + \" bi-trigger cursor-pointer\",\n height: 24\n });\n },\n\n _init: function () {\n BI.Trigger.superclass._init.apply(this, arguments);\n },\n\n setKey: function () {\n\n },\n\n getKey: function () {\n\n }\n});/**\n *\n * 自定义树\n *\n * Created by GUY on 2015/9/7.\n * @class BI.CustomTree\n * @extends BI.Single\n */\nBI.CustomTree = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.CustomTree.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-custom-tree\",\n expander: {\n el: {},\n popup: {\n type: \"bi.custom_tree\"\n }\n },\n\n items: [],\n itemsCreator: BI.emptyFn,\n\n el: {\n type: \"bi.button_tree\",\n chooseType: 0,\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n });\n },\n\n _init: function () {\n BI.CustomTree.superclass._init.apply(this, arguments);\n this.initTree(this.options.items);\n },\n\n _formatItems: function (nodes) {\n var self = this, o = this.options;\n nodes = BI.Tree.transformToTreeFormat(nodes);\n\n var items = [];\n BI.each(nodes, function (i, node) {\n if (BI.isNotEmptyArray(node.children) || node.isParent === true) {\n var item = BI.extend({\n type: \"bi.expander\",\n el: {\n value: node.value\n },\n popup: {type: \"bi.custom_tree\"}\n }, BI.deepClone(o.expander), {\n id: node.id,\n pId: node.pId\n });\n var el = BI.stripEL(node);\n if (!BI.isWidget(el)) {\n el = BI.clone(el);\n delete el.children;\n BI.extend(item.el, el);\n } else {\n item.el = el;\n }\n item.popup.expander = BI.deepClone(o.expander);\n item.items = item.popup.items = node.children;\n item.itemsCreator = item.popup.itemsCreator = function (op) {\n if (BI.isNotNull(op.node)) {// 从子节点传过来的itemsCreator直接向上传递\n return o.itemsCreator.apply(self, arguments);\n }\n var args = Array.prototype.slice.call(arguments, 0);\n args[0].node = node;\n return o.itemsCreator.apply(self, args);\n };\n BI.isNull(item.popup.el) && (item.popup.el = BI.deepClone(o.el));\n items.push(item);\n } else {\n items.push(node);\n }\n });\n return items;\n },\n\n // 构造树结构,\n initTree: function (nodes) {\n var self = this, o = this.options;\n this.tree = BI.createWidget(o.el, {\n element: this,\n items: this._formatItems(nodes),\n itemsCreator: function (op, callback) {\n o.itemsCreator.apply(this, [op, function (items) {\n var args = Array.prototype.slice.call(arguments, 0);\n args[0] = self._formatItems(items);\n callback.apply(null, args);\n }]);\n },\n value: o.value\n });\n this.tree.on(BI.Controller.EVENT_CHANGE, function (type, val, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.CustomTree.EVENT_CHANGE, val, obj);\n }\n });\n },\n\n // 生成树方法\n stroke: function (nodes) {\n this.populate.apply(this, arguments);\n },\n\n populate: function (nodes) {\n var args = Array.prototype.slice.call(arguments, 0);\n if (arguments.length > 0) {\n args[0] = this._formatItems(nodes);\n }\n this.tree.populate.apply(this.tree, args);\n },\n\n setValue: function (v) {\n this.tree && this.tree.setValue(v);\n },\n\n getValue: function () {\n return this.tree ? this.tree.getValue() : [];\n },\n\n getAllButtons: function () {\n return this.tree ? this.tree.getAllButtons() : [];\n },\n\n getAllLeaves: function () {\n return this.tree ? this.tree.getAllLeaves() : [];\n },\n\n getNodeById: function (id) {\n return this.tree && this.tree.getNodeById(id);\n },\n\n getNodeByValue: function (id) {\n return this.tree && this.tree.getNodeByValue(id);\n },\n\n empty: function () {\n this.tree.empty();\n }\n});\nBI.CustomTree.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.custom_tree\", BI.CustomTree);/*\n * JQuery zTree core v3.5.18\n * http://zTree.me/\n *\n * Copyright (c) 2010 Hunter.z\n *\n * Licensed same as jquery - MIT License\n * http://www.opensource.org/licenses/mit-license.php\n *\n * email: hunter.z@263.net\n * Date: 2015-06-18\n */\n(function($){\n\tvar settings = {}, roots = {}, caches = {},\n\t//default consts of core\n\t_consts = {\n\t\tclassName: {\n\t\t\tBUTTON: \"button\",\n\t\t\tLEVEL: \"level\",\n\t\t\tICO_LOADING: \"ico_loading\",\n\t\t\tSWITCH: \"switch\"\n\t\t},\n\t\tevent: {\n\t\t\tNODECREATED: \"ztree_nodeCreated\",\n\t\t\tCLICK: \"ztree_click\",\n\t\t\tEXPAND: \"ztree_expand\",\n\t\t\tCOLLAPSE: \"ztree_collapse\",\n\t\t\tASYNC_SUCCESS: \"ztree_async_success\",\n\t\t\tASYNC_ERROR: \"ztree_async_error\",\n\t\t\tREMOVE: \"ztree_remove\",\n\t\t\tSELECTED: \"ztree_selected\",\n\t\t\tUNSELECTED: \"ztree_unselected\"\n\t\t},\n\t\tid: {\n\t\t\tA: \"_a\",\n\t\t\tICON: \"_ico\",\n\t\t\tSPAN: \"_span\",\n\t\t\tSWITCH: \"_switch\",\n\t\t\tUL: \"_ul\"\n\t\t},\n\t\tline: {\n\t\t\tROOT: \"root\",\n\t\t\tROOTS: \"roots\",\n\t\t\tCENTER: \"center\",\n\t\t\tBOTTOM: \"bottom\",\n\t\t\tNOLINE: \"noline\",\n\t\t\tLINE: \"line\"\n\t\t},\n\t\tfolder: {\n\t\t\tOPEN: \"open\",\n\t\t\tCLOSE: \"close\",\n\t\t\tDOCU: \"docu\"\n\t\t},\n\t\tnode: {\n\t\t\tCURSELECTED: \"curSelectedNode\"\n\t\t}\n\t},\n\t//default setting of core\n\t_setting = {\n\t\ttreeId: \"\",\n\t\ttreeObj: null,\n\t\tview: {\n\t\t\taddDiyDom: null,\n\t\t\tautoCancelSelected: true,\n\t\t\tdblClickExpand: true,\n\t\t\texpandSpeed: \"fast\",\n\t\t\tfontCss: {},\n\t\t\tnameIsHTML: false,\n\t\t\tselectedMulti: true,\n\t\t\tshowIcon: true,\n\t\t\tshowLine: true,\n\t\t\tshowTitle: true,\n\t\t\ttxtSelectedEnable: false\n\t\t},\n\t\tdata: {\n\t\t\tkey: {\n\t\t\t\tchildren: \"children\",\n\t\t\t\tname: \"name\",\n\t\t\t\ttitle: \"\",\n\t\t\t\turl: \"url\"\n\t\t\t},\n\t\t\tsimpleData: {\n\t\t\t\tenable: false,\n\t\t\t\tidKey: \"id\",\n\t\t\t\tpIdKey: \"pId\",\n\t\t\t\trootPId: null\n\t\t\t},\n\t\t\tkeep: {\n\t\t\t\tparent: false,\n\t\t\t\tleaf: false\n\t\t\t}\n\t\t},\n\t\tasync: {\n\t\t\tenable: false,\n\t\t\tcontentType: \"application/x-www-form-urlencoded\",\n\t\t\ttype: \"post\",\n\t\t\tdataType: \"text\",\n\t\t\turl: \"\",\n\t\t\tautoParam: [],\n\t\t\totherParam: [],\n\t\t\tdataFilter: null\n\t\t},\n\t\tcallback: {\n\t\t\tbeforeAsync:null,\n\t\t\tbeforeClick:null,\n\t\t\tbeforeDblClick:null,\n\t\t\tbeforeRightClick:null,\n\t\t\tbeforeMouseDown:null,\n\t\t\tbeforeMouseUp:null,\n\t\t\tbeforeExpand:null,\n\t\t\tbeforeCollapse:null,\n\t\t\tbeforeRemove:null,\n\n\t\t\tonAsyncError:null,\n\t\t\tonAsyncSuccess:null,\n\t\t\tonNodeCreated:null,\n\t\t\tonClick:null,\n\t\t\tonDblClick:null,\n\t\t\tonRightClick:null,\n\t\t\tonMouseDown:null,\n\t\t\tonMouseUp:null,\n\t\t\tonExpand:null,\n\t\t\tonCollapse:null,\n\t\t\tonRemove:null\n\t\t}\n\t},\n\t//default root of core\n\t//zTree use root to save full data\n\t_initRoot = function (setting) {\n\t\tvar r = data.getRoot(setting);\n\t\tif (!r) {\n\t\t\tr = {};\n\t\t\tdata.setRoot(setting, r);\n\t\t}\n\t\tr[setting.data.key.children] = [];\n\t\tr.expandTriggerFlag = false;\n\t\tr.curSelectedList = [];\n\t\tr.noSelection = true;\n\t\tr.createdNodes = [];\n\t\tr.zId = 0;\n\t\tr._ver = (new Date()).getTime();\n\t},\n\t//default cache of core\n\t_initCache = function(setting) {\n\t\tvar c = data.getCache(setting);\n\t\tif (!c) {\n\t\t\tc = {};\n\t\t\tdata.setCache(setting, c);\n\t\t}\n\t\tc.nodes = [];\n\t\tc.doms = [];\n\t},\n\t//default bindEvent of core\n\t_bindEvent = function(setting) {\n\t\tvar o = setting.treeObj,\n\t\tc = consts.event;\n\t\to.bind(c.NODECREATED, function (event, treeId, node) {\n\t\t\ttools.apply(setting.callback.onNodeCreated, [event, treeId, node]);\n\t\t});\n\n\t\to.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) {\n\t\t\ttools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]);\n\t\t});\n\n\t\to.bind(c.EXPAND, function (event, treeId, node) {\n\t\t\ttools.apply(setting.callback.onExpand, [event, treeId, node]);\n\t\t});\n\n\t\to.bind(c.COLLAPSE, function (event, treeId, node) {\n\t\t\ttools.apply(setting.callback.onCollapse, [event, treeId, node]);\n\t\t});\n\n\t\to.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) {\n\t\t\ttools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]);\n\t\t});\n\n\t\to.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) {\n\t\t\ttools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]);\n\t\t});\n\n\t\to.bind(c.REMOVE, function (event, treeId, treeNode) {\n\t\t\ttools.apply(setting.callback.onRemove, [event, treeId, treeNode]);\n\t\t});\n\n\t\to.bind(c.SELECTED, function (event, srcEvent, treeId, node) {\n\t\t\ttools.apply(setting.callback.onSelected, [srcEvent, treeId, node]);\n\t\t});\n\t\to.bind(c.UNSELECTED, function (event, srcEvent, treeId, node) {\n\t\t\ttools.apply(setting.callback.onUnSelected, [srcEvent, treeId, node]);\n\t\t});\n\t},\n\t_unbindEvent = function(setting) {\n\t\tvar o = setting.treeObj,\n\t\tc = consts.event;\n\t\to.unbind(c.NODECREATED)\n\t\t.unbind(c.CLICK)\n\t\t.unbind(c.EXPAND)\n\t\t.unbind(c.COLLAPSE)\n\t\t.unbind(c.ASYNC_SUCCESS)\n\t\t.unbind(c.ASYNC_ERROR)\n\t\t.unbind(c.REMOVE)\n\t\t.unbind(c.SELECTED)\n\t\t.unbind(c.UNSELECTED);\n\t},\n\t//default event proxy of core\n\t_eventProxy = function(event) {\n\t\tvar target = event.target,\n\t\tsetting = data.getSetting(event.data.treeId),\n\t\ttId = \"\", node = null,\n\t\tnodeEventType = \"\", treeEventType = \"\",\n\t\tnodeEventCallback = null, treeEventCallback = null,\n\t\ttmp = null;\n\n\t\tif (tools.eqs(event.type, \"mousedown\")) {\n\t\t\ttreeEventType = \"mousedown\";\n\t\t} else if (tools.eqs(event.type, \"mouseup\")) {\n\t\t\ttreeEventType = \"mouseup\";\n\t\t} else if (tools.eqs(event.type, \"contextmenu\")) {\n\t\t\ttreeEventType = \"contextmenu\";\n\t\t} else if (tools.eqs(event.type, \"click\")) {\n\t\t\tif (tools.eqs(target.tagName, \"span\") && target.getAttribute(\"treeNode\"+ consts.id.SWITCH) !== null) {\n\t\t\t\ttId = tools.getNodeMainDom(target).id;\n\t\t\t\tnodeEventType = \"switchNode\";\n\t\t\t} else {\n\t\t\t\ttmp = tools.getMDom(setting, target, [{tagName:\"a\", attrName:\"treeNode\"+consts.id.A}]);\n\t\t\t\tif (tmp) {\n\t\t\t\t\ttId = tools.getNodeMainDom(tmp).id;\n\t\t\t\t\tnodeEventType = \"clickNode\";\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (tools.eqs(event.type, \"dblclick\")) {\n\t\t\ttreeEventType = \"dblclick\";\n\t\t\ttmp = tools.getMDom(setting, target, [{tagName:\"a\", attrName:\"treeNode\"+consts.id.A}]);\n\t\t\tif (tmp) {\n\t\t\t\ttId = tools.getNodeMainDom(tmp).id;\n\t\t\t\tnodeEventType = \"switchNode\";\n\t\t\t}\n\t\t}\n\t\tif (treeEventType.length > 0 && tId.length == 0) {\n\t\t\ttmp = tools.getMDom(setting, target, [{tagName:\"a\", attrName:\"treeNode\"+consts.id.A}]);\n\t\t\tif (tmp) {tId = tools.getNodeMainDom(tmp).id;}\n\t\t}\n\t\t// event to node\n\t\tif (tId.length>0) {\n\t\t\tnode = data.getNodeCache(setting, tId);\n\t\t\tswitch (nodeEventType) {\n\t\t\t\tcase \"switchNode\" :\n\t\t\t\t\tif (!node.isParent) {\n\t\t\t\t\t\tnodeEventType = \"\";\n\t\t\t\t\t} else if (tools.eqs(event.type, \"click\")\n\t\t\t\t\t\t|| (tools.eqs(event.type, \"dblclick\") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) {\n\t\t\t\t\t\tnodeEventCallback = handler.onSwitchNode;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnodeEventType = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"clickNode\" :\n\t\t\t\t\tnodeEventCallback = handler.onClickNode;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// event to zTree\n\t\tswitch (treeEventType) {\n\t\t\tcase \"mousedown\" :\n\t\t\t\ttreeEventCallback = handler.onZTreeMousedown;\n\t\t\t\tbreak;\n\t\t\tcase \"mouseup\" :\n\t\t\t\ttreeEventCallback = handler.onZTreeMouseup;\n\t\t\t\tbreak;\n\t\t\tcase \"dblclick\" :\n\t\t\t\ttreeEventCallback = handler.onZTreeDblclick;\n\t\t\t\tbreak;\n\t\t\tcase \"contextmenu\" :\n\t\t\t\ttreeEventCallback = handler.onZTreeContextmenu;\n\t\t\t\tbreak;\n\t\t}\n\t\tvar proxyResult = {\n\t\t\tstop: false,\n\t\t\tnode: node,\n\t\t\tnodeEventType: nodeEventType,\n\t\t\tnodeEventCallback: nodeEventCallback,\n\t\t\ttreeEventType: treeEventType,\n\t\t\ttreeEventCallback: treeEventCallback\n\t\t};\n\t\treturn proxyResult\n\t},\n\t//default init node of core\n\t_initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {\n\t\tif (!n) return;\n\t\tvar r = data.getRoot(setting),\n\t\tchildKey = setting.data.key.children;\n\t\tn.level = level;\n\t\tn.tId = setting.treeId + \"_\" + (++r.zId);\n\t\tn.parentTId = parentNode ? parentNode.tId : null;\n\t\tn.open = (typeof n.open == \"string\") ? tools.eqs(n.open, \"true\") : !!n.open;\n\t\tif (n[childKey] && n[childKey].length > 0) {\n\t\t\tn.isParent = true;\n\t\t\tn.zAsync = true;\n\t\t} else {\n\t\t\tn.isParent = (typeof n.isParent == \"string\") ? tools.eqs(n.isParent, \"true\") : !!n.isParent;\n\t\t\tn.open = (n.isParent && !setting.async.enable) ? n.open : false;\n\t\t\tn.zAsync = !n.isParent;\n\t\t}\n\t\tn.isFirstNode = isFirstNode;\n\t\tn.isLastNode = isLastNode;\n\t\tn.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);};\n\t\tn.getPreNode = function() {return data.getPreNode(setting, n);};\n\t\tn.getNextNode = function() {return data.getNextNode(setting, n);};\n\t\tn.isAjaxing = false;\n\t\tdata.fixPIdKeyValue(setting, n);\n\t},\n\t_init = {\n\t\tbind: [_bindEvent],\n\t\tunbind: [_unbindEvent],\n\t\tcaches: [_initCache],\n\t\tnodes: [_initNode],\n\t\tproxys: [_eventProxy],\n\t\troots: [_initRoot],\n\t\tbeforeA: [],\n\t\tafterA: [],\n\t\tinnerBeforeA: [],\n\t\tinnerAfterA: [],\n\t\tzTreeTools: []\n\t},\n\t//method of operate data\n\tdata = {\n\t\taddNodeCache: function(setting, node) {\n\t\t\tdata.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node;\n\t\t},\n\t\tgetNodeCacheId: function(tId) {\n\t\t\treturn tId.substring(tId.lastIndexOf(\"_\")+1);\n\t\t},\n\t\taddAfterA: function(afterA) {\n\t\t\t_init.afterA.push(afterA);\n\t\t},\n\t\taddBeforeA: function(beforeA) {\n\t\t\t_init.beforeA.push(beforeA);\n\t\t},\n\t\taddInnerAfterA: function(innerAfterA) {\n\t\t\t_init.innerAfterA.push(innerAfterA);\n\t\t},\n\t\taddInnerBeforeA: function(innerBeforeA) {\n\t\t\t_init.innerBeforeA.push(innerBeforeA);\n\t\t},\n\t\taddInitBind: function(bindEvent) {\n\t\t\t_init.bind.push(bindEvent);\n\t\t},\n\t\taddInitUnBind: function(unbindEvent) {\n\t\t\t_init.unbind.push(unbindEvent);\n\t\t},\n\t\taddInitCache: function(initCache) {\n\t\t\t_init.caches.push(initCache);\n\t\t},\n\t\taddInitNode: function(initNode) {\n\t\t\t_init.nodes.push(initNode);\n\t\t},\n\t\taddInitProxy: function(initProxy, isFirst) {\n\t\t\tif (!!isFirst) {\n\t\t\t\t_init.proxys.splice(0,0,initProxy);\n\t\t\t} else {\n\t\t\t\t_init.proxys.push(initProxy);\n\t\t\t}\n\t\t},\n\t\taddInitRoot: function(initRoot) {\n\t\t\t_init.roots.push(initRoot);\n\t\t},\n\t\taddNodesData: function(setting, parentNode, nodes) {\n\t\t\tvar childKey = setting.data.key.children;\n\t\t\tif (!parentNode[childKey]) parentNode[childKey] = [];\n\t\t\tif (parentNode[childKey].length > 0) {\n\t\t\t\tparentNode[childKey][parentNode[childKey].length - 1].isLastNode = false;\n\t\t\t\tview.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]);\n\t\t\t}\n\t\t\tparentNode.isParent = true;\n\t\t\tparentNode[childKey] = parentNode[childKey].concat(nodes);\n\t\t},\n\t\taddSelectedNode: function(setting, node) {\n\t\t\tvar root = data.getRoot(setting);\n\t\t\tif (!data.isSelectedNode(setting, node)) {\n\t\t\t\troot.curSelectedList.push(node);\n\t\t\t}\n\t\t},\n\t\taddCreatedNode: function(setting, node) {\n\t\t\tif (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {\n\t\t\t\tvar root = data.getRoot(setting);\n\t\t\t\troot.createdNodes.push(node);\n\t\t\t}\n\t\t},\n\t\taddZTreeTools: function(zTreeTools) {\n\t\t\t_init.zTreeTools.push(zTreeTools);\n\t\t},\n\t\texSetting: function(s) {\n\t\t\t$.extend(true, _setting, s);\n\t\t},\n\t\tfixPIdKeyValue: function(setting, node) {\n\t\t\tif (setting.data.simpleData.enable) {\n\t\t\t\tnode[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId;\n\t\t\t}\n\t\t},\n\t\tgetAfterA: function(setting, node, array) {\n\t\t\tfor (var i=0, j=_init.afterA.length; i<j; i++) {\n\t\t\t\t_init.afterA[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tgetBeforeA: function(setting, node, array) {\n\t\t\tfor (var i=0, j=_init.beforeA.length; i<j; i++) {\n\t\t\t\t_init.beforeA[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tgetInnerAfterA: function(setting, node, array) {\n\t\t\tfor (var i=0, j=_init.innerAfterA.length; i<j; i++) {\n\t\t\t\t_init.innerAfterA[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tgetInnerBeforeA: function(setting, node, array) {\n\t\t\tfor (var i=0, j=_init.innerBeforeA.length; i<j; i++) {\n\t\t\t\t_init.innerBeforeA[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tgetCache: function(setting) {\n\t\t\treturn caches[setting.treeId];\n\t\t},\n\t\tgetNextNode: function(setting, node) {\n\t\t\tif (!node) return null;\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tp = node.parentTId ? node.getParentNode() : data.getRoot(setting);\n\t\t\tfor (var i=0, l=p[childKey].length-1; i<=l; i++) {\n\t\t\t\tif (p[childKey][i] === node) {\n\t\t\t\t\treturn (i==l ? null : p[childKey][i+1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tgetNodeByParam: function(setting, nodes, key, value) {\n\t\t\tif (!nodes || !key) return null;\n\t\t\tvar childKey = setting.data.key.children;\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tif (nodes[i][key] == value) {\n\t\t\t\t\treturn nodes[i];\n\t\t\t\t}\n\t\t\t\tvar tmp = data.getNodeByParam(setting, nodes[i][childKey], key, value);\n\t\t\t\tif (tmp) return tmp;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tgetNodeCache: function(setting, tId) {\n\t\t\tif (!tId) return null;\n\t\t\tvar n = caches[setting.treeId].nodes[data.getNodeCacheId(tId)];\n\t\t\treturn n ? n : null;\n\t\t},\n\t\tgetNodeName: function(setting, node) {\n\t\t\tvar nameKey = setting.data.key.name;\n\t\t\treturn \"\" + node[nameKey];\n\t\t},\n\t\tgetNodeTitle: function(setting, node) {\n\t\t\tvar t = setting.data.key.title === \"\" ? setting.data.key.name : setting.data.key.title;\n\t\t\treturn \"\" + node[t];\n\t\t},\n\t\tgetNodes: function(setting) {\n\t\t\treturn data.getRoot(setting)[setting.data.key.children];\n\t\t},\n\t\tgetNodesByParam: function(setting, nodes, key, value) {\n\t\t\tif (!nodes || !key) return [];\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tresult = [];\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tif (nodes[i][key] == value) {\n\t\t\t\t\tresult.push(nodes[i]);\n\t\t\t\t}\n\t\t\t\tresult = result.concat(data.getNodesByParam(setting, nodes[i][childKey], key, value));\n\t\t\t}\n\t\t\treturn result;\n\t\t},\n\t\tgetNodesByParamFuzzy: function(setting, nodes, key, value) {\n\t\t\tif (!nodes || !key) return [];\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tresult = [];\n\t\t\tvalue = value.toLowerCase();\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tif (typeof nodes[i][key] == \"string\" && nodes[i][key].toLowerCase().indexOf(value)>-1) {\n\t\t\t\t\tresult.push(nodes[i]);\n\t\t\t\t}\n\t\t\t\tresult = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value));\n\t\t\t}\n\t\t\treturn result;\n\t\t},\n\t\tgetNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) {\n\t\t\tif (!nodes) return (isSingle ? null : []);\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tresult = isSingle ? null : [];\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tif (tools.apply(filter, [nodes[i], invokeParam], false)) {\n\t\t\t\t\tif (isSingle) {return nodes[i];}\n\t\t\t\t\tresult.push(nodes[i]);\n\t\t\t\t}\n\t\t\t\tvar tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam);\n\t\t\t\tif (isSingle && !!tmpResult) {return tmpResult;}\n\t\t\t\tresult = isSingle ? tmpResult : result.concat(tmpResult);\n\t\t\t}\n\t\t\treturn result;\n\t\t},\n\t\tgetPreNode: function(setting, node) {\n\t\t\tif (!node) return null;\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tp = node.parentTId ? node.getParentNode() : data.getRoot(setting);\n\t\t\tfor (var i=0, l=p[childKey].length; i<l; i++) {\n\t\t\t\tif (p[childKey][i] === node) {\n\t\t\t\t\treturn (i==0 ? null : p[childKey][i-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tgetRoot: function(setting) {\n\t\t\treturn setting ? roots[setting.treeId] : null;\n\t\t},\n\t\tgetRoots: function() {\n\t\t\treturn roots;\n\t\t},\n\t\tgetSetting: function(treeId) {\n\t\t\treturn settings[treeId];\n\t\t},\n\t\tgetSettings: function() {\n\t\t\treturn settings;\n\t\t},\n\t\tgetZTreeTools: function(treeId) {\n\t\t\tvar r = this.getRoot(this.getSetting(treeId));\n\t\t\treturn r ? r.treeTools : null;\n\t\t},\n\t\tinitCache: function(setting) {\n\t\t\tfor (var i=0, j=_init.caches.length; i<j; i++) {\n\t\t\t\t_init.caches[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tinitNode: function(setting, level, node, parentNode, preNode, nextNode) {\n\t\t\tfor (var i=0, j=_init.nodes.length; i<j; i++) {\n\t\t\t\t_init.nodes[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tinitRoot: function(setting) {\n\t\t\tfor (var i=0, j=_init.roots.length; i<j; i++) {\n\t\t\t\t_init.roots[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tisSelectedNode: function(setting, node) {\n\t\t\tvar root = data.getRoot(setting);\n\t\t\tfor (var i=0, j=root.curSelectedList.length; i<j; i++) {\n\t\t\t\tif(node === root.curSelectedList[i]) return true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tremoveNodeCache: function(setting, node) {\n\t\t\tvar childKey = setting.data.key.children;\n\t\t\tif (node[childKey]) {\n\t\t\t\tfor (var i=0, l=node[childKey].length; i<l; i++) {\n\t\t\t\t\targuments.callee(setting, node[childKey][i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdata.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = null;\n\t\t},\n\t\tremoveSelectedNode: function(setting, node) {\n\t\t\tvar root = data.getRoot(setting);\n\t\t\tfor (var i=0, j=root.curSelectedList.length; i<j; i++) {\n\t\t\t\tif(node === root.curSelectedList[i] || !data.getNodeCache(setting, root.curSelectedList[i].tId)) {\n\t\t\t\t\troot.curSelectedList.splice(i, 1);\n\t\t\t\t\ti--;j--;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tsetCache: function(setting, cache) {\n\t\t\tcaches[setting.treeId] = cache;\n\t\t},\n\t\tsetRoot: function(setting, root) {\n\t\t\troots[setting.treeId] = root;\n\t\t},\n\t\tsetZTreeTools: function(setting, zTreeTools) {\n\t\t\tfor (var i=0, j=_init.zTreeTools.length; i<j; i++) {\n\t\t\t\t_init.zTreeTools[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\ttransformToArrayFormat: function (setting, nodes) {\n\t\t\tif (!nodes) return [];\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tr = [];\n\t\t\tif (tools.isArray(nodes)) {\n\t\t\t\tfor (var i=0, l=nodes.length; i<l; i++) {\n\t\t\t\t\tr.push(nodes[i]);\n\t\t\t\t\tif (nodes[i][childKey])\n\t\t\t\t\t\tr = r.concat(data.transformToArrayFormat(setting, nodes[i][childKey]));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tr.push(nodes);\n\t\t\t\tif (nodes[childKey])\n\t\t\t\t\tr = r.concat(data.transformToArrayFormat(setting, nodes[childKey]));\n\t\t\t}\n\t\t\treturn r;\n\t\t},\n\t\ttransformTozTreeFormat: function(setting, sNodes) {\n\t\t\tvar i,l,\n\t\t\tkey = setting.data.simpleData.idKey,\n\t\t\tparentKey = setting.data.simpleData.pIdKey,\n\t\t\tchildKey = setting.data.key.children;\n\t\t\tif (!key || key==\"\" || !sNodes) return [];\n\n\t\t\tif (tools.isArray(sNodes)) {\n\t\t\t\tvar r = [];\n\t\t\t\tvar tmpMap = {};\n\t\t\t\tfor (i=0, l=sNodes.length; i<l; i++) {\n\t\t\t\t\ttmpMap[sNodes[i][key]] = sNodes[i];\n\t\t\t\t}\n\t\t\t\tfor (i=0, l=sNodes.length; i<l; i++) {\n\t\t\t\t\tif (tmpMap[sNodes[i][parentKey]] && sNodes[i][key] != sNodes[i][parentKey]) {\n\t\t\t\t\t\tif (!tmpMap[sNodes[i][parentKey]][childKey])\n\t\t\t\t\t\t\ttmpMap[sNodes[i][parentKey]][childKey] = [];\n\t\t\t\t\t\ttmpMap[sNodes[i][parentKey]][childKey].push(sNodes[i]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tr.push(sNodes[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn r;\n\t\t\t}else {\n\t\t\t\treturn [sNodes];\n\t\t\t}\n\t\t}\n\t},\n\t//method of event proxy\n\tevent = {\n\t\tbindEvent: function(setting) {\n\t\t\tfor (var i=0, j=_init.bind.length; i<j; i++) {\n\t\t\t\t_init.bind[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tunbindEvent: function(setting) {\n\t\t\tfor (var i=0, j=_init.unbind.length; i<j; i++) {\n\t\t\t\t_init.unbind[i].apply(this, arguments);\n\t\t\t}\n\t\t},\n\t\tbindTree: function(setting) {\n\t\t\tvar eventParam = {\n\t\t\t\ttreeId: setting.treeId\n\t\t\t},\n\t\t\to = setting.treeObj;\n\t\t\tif (!setting.view.txtSelectedEnable) {\n\t\t\t\t// for can't select text\n\t\t\t\to.bind('selectstart', function(e){\n\t\t\t\t\tvar node\n\t\t\t\t\tvar n = e.originalEvent.srcElement.nodeName.toLowerCase();\n\t\t\t\t\treturn (n === \"input\" || n === \"textarea\" );\n\t\t\t\t}).css({\n\t\t\t\t\t\"-moz-user-select\":\"-moz-none\"\n\t\t\t\t});\n\t\t\t}\n\t\t\to.bind('click', eventParam, event.proxy);\n\t\t\to.bind('dblclick', eventParam, event.proxy);\n\t\t\to.bind('mouseover', eventParam, event.proxy);\n\t\t\to.bind('mouseout', eventParam, event.proxy);\n\t\t\to.bind('mousedown', eventParam, event.proxy);\n\t\t\to.bind('mouseup', eventParam, event.proxy);\n\t\t\to.bind('contextmenu', eventParam, event.proxy);\n\t\t},\n\t\tunbindTree: function(setting) {\n\t\t\tvar o = setting.treeObj;\n\t\t\to.unbind('click', event.proxy)\n\t\t\t.unbind('dblclick', event.proxy)\n\t\t\t.unbind('mouseover', event.proxy)\n\t\t\t.unbind('mouseout', event.proxy)\n\t\t\t.unbind('mousedown', event.proxy)\n\t\t\t.unbind('mouseup', event.proxy)\n\t\t\t.unbind('contextmenu', event.proxy);\n\t\t},\n\t\tdoProxy: function(e) {\n\t\t\tvar results = [];\n\t\t\tfor (var i=0, j=_init.proxys.length; i<j; i++) {\n\t\t\t\tvar proxyResult = _init.proxys[i].apply(this, arguments);\n\t\t\t\tresults.push(proxyResult);\n\t\t\t\tif (proxyResult.stop) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn results;\n\t\t},\n\t\tproxy: function(e) {\n\t\t\tvar setting = data.getSetting(e.data.treeId);\n\t\t\tif (!tools.uCanDo(setting, e)) return true;\n\t\t\tvar results = event.doProxy(e),\n\t\t\tr = true, x = false;\n\t\t\tfor (var i=0, l=results.length; i<l; i++) {\n\t\t\t\tvar proxyResult = results[i];\n\t\t\t\tif (proxyResult.nodeEventCallback) {\n\t\t\t\t\tx = true;\n\t\t\t\t\tr = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;\n\t\t\t\t}\n\t\t\t\tif (proxyResult.treeEventCallback) {\n\t\t\t\t\tx = true;\n\t\t\t\t\tr = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn r;\n\t\t}\n\t},\n\t//method of event handler\n\thandler = {\n\t\tonSwitchNode: function (event, node) {\n\t\t\tvar setting = data.getSetting(event.data.treeId);\n\t\t\tif (node.open) {\n\t\t\t\tif (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false) return true;\n\t\t\t\tdata.getRoot(setting).expandTriggerFlag = true;\n\t\t\t\tview.switchNode(setting, node);\n\t\t\t} else {\n\t\t\t\tif (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false) return true;\n\t\t\t\tdata.getRoot(setting).expandTriggerFlag = true;\n\t\t\t\tview.switchNode(setting, node);\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\t\tonClickNode: function (event, node) {\n\t\t\tvar setting = data.getSetting(event.data.treeId),\n\t\t\tclickFlag = ( (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey)) && data.isSelectedNode(setting, node)) ? 0 : (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey) && setting.view.selectedMulti) ? 2 : 1;\n\t\t\tif (tools.apply(setting.callback.beforeClick, [setting.treeId, node, clickFlag], true) == false) return true;\n\t\t\tif (clickFlag === 0) {\n\t\t\t\tview.cancelPreSelectedNode(setting, node);\n\t\t\t} else {\n\t\t\t\tview.selectNode(setting, node, clickFlag === 2);\n\t\t\t}\n\t\t\tsetting.treeObj.trigger(consts.event.CLICK, [event, setting.treeId, node, clickFlag]);\n\t\t\treturn true;\n\t\t},\n\t\tonZTreeMousedown: function(event, node) {\n\t\t\tvar setting = data.getSetting(event.data.treeId);\n\t\t\tif (tools.apply(setting.callback.beforeMouseDown, [setting.treeId, node], true)) {\n\t\t\t\ttools.apply(setting.callback.onMouseDown, [event, setting.treeId, node]);\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\t\tonZTreeMouseup: function(event, node) {\n\t\t\tvar setting = data.getSetting(event.data.treeId);\n\t\t\tif (tools.apply(setting.callback.beforeMouseUp, [setting.treeId, node], true)) {\n\t\t\t\ttools.apply(setting.callback.onMouseUp, [event, setting.treeId, node]);\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\t\tonZTreeDblclick: function(event, node) {\n\t\t\tvar setting = data.getSetting(event.data.treeId);\n\t\t\tif (tools.apply(setting.callback.beforeDblClick, [setting.treeId, node], true)) {\n\t\t\t\ttools.apply(setting.callback.onDblClick, [event, setting.treeId, node]);\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\t\tonZTreeContextmenu: function(event, node) {\n\t\t\tvar setting = data.getSetting(event.data.treeId);\n\t\t\tif (tools.apply(setting.callback.beforeRightClick, [setting.treeId, node], true)) {\n\t\t\t\ttools.apply(setting.callback.onRightClick, [event, setting.treeId, node]);\n\t\t\t}\n\t\t\treturn (typeof setting.callback.onRightClick) != \"function\";\n\t\t}\n\t},\n\t//method of tools for zTree\n\ttools = {\n\t\tapply: function(fun, param, defaultValue) {\n\t\t\tif ((typeof fun) == \"function\") {\n\t\t\t\treturn fun.apply(zt, param?param:[]);\n\t\t\t}\n\t\t\treturn defaultValue;\n\t\t},\n\t\tcanAsync: function(setting, node) {\n\t\t\tvar childKey = setting.data.key.children;\n\t\t\treturn (setting.async.enable && node && node.isParent && !(node.zAsync || (node[childKey] && node[childKey].length > 0)));\n\t\t},\n\t\tclone: function (obj){\n\t\t\tif (obj === null) return null;\n\t\t\tvar o = tools.isArray(obj) ? [] : {};\n\t\t\tfor(var i in obj){\n\t\t\t\to[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === \"object\" ? arguments.callee(obj[i]) : obj[i]);\n\t\t\t}\n\t\t\treturn o;\n\t\t},\n\t\teqs: function(str1, str2) {\n\t\t\treturn str1.toLowerCase() === str2.toLowerCase();\n\t\t},\n\t\tisArray: function(arr) {\n\t\t\treturn Object.prototype.toString.apply(arr) === \"[object Array]\";\n\t\t},\n\t\t$: function(node, exp, setting) {\n\t\t\tif (!!exp && typeof exp != \"string\") {\n\t\t\t\tsetting = exp;\n\t\t\t\texp = \"\";\n\t\t\t}\n\t\t\tif (typeof node == \"string\") {\n\t\t\t\treturn $(node, setting ? setting.treeObj.get(0).ownerDocument : null);\n\t\t\t} else {\n\t\t\t\treturn $(\"#\" + node.tId + exp, setting ? setting.treeObj : null);\n\t\t\t}\n\t\t},\n\t\tgetMDom: function (setting, curDom, targetExpr) {\n\t\t\tif (!curDom) return null;\n\t\t\twhile (curDom && curDom.id !== setting.treeId) {\n\t\t\t\tfor (var i=0, l=targetExpr.length; curDom.tagName && i<l; i++) {\n\t\t\t\t\tif (tools.eqs(curDom.tagName, targetExpr[i].tagName) && curDom.getAttribute(targetExpr[i].attrName) !== null) {\n\t\t\t\t\t\treturn curDom;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcurDom = curDom.parentNode;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tgetNodeMainDom:function(target) {\n\t\t\treturn ($(target).parent(\"li\").get(0) || $(target).parentsUntil(\"li\").parent().get(0));\n\t\t},\n\t\tisChildOrSelf: function(dom, parentId) {\n\t\t\treturn ( $(dom).closest(\"#\" + parentId).length> 0 );\n\t\t},\n\t\tuCanDo: function(setting, e) {\n\t\t\treturn true;\n\t\t}\n\t},\n\t//method of operate ztree dom\n\tview = {\n\t\taddNodes: function(setting, parentNode, newNodes, isSilent) {\n\t\t\tif (setting.data.keep.leaf && parentNode && !parentNode.isParent) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!tools.isArray(newNodes)) {\n\t\t\t\tnewNodes = [newNodes];\n\t\t\t}\n\t\t\tif (setting.data.simpleData.enable) {\n\t\t\t\tnewNodes = data.transformTozTreeFormat(setting, newNodes);\n\t\t\t}\n\t\t\tif (parentNode) {\n\t\t\t\tvar target_switchObj = $$(parentNode, consts.id.SWITCH, setting),\n\t\t\t\ttarget_icoObj = $$(parentNode, consts.id.ICON, setting),\n\t\t\t\ttarget_ulObj = $$(parentNode, consts.id.UL, setting);\n\n\t\t\t\tif (!parentNode.open) {\n\t\t\t\t\tview.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE);\n\t\t\t\t\tview.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE);\n\t\t\t\t\tparentNode.open = false;\n\t\t\t\t\ttarget_ulObj.css({\n\t\t\t\t\t\t\"display\": \"none\"\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tdata.addNodesData(setting, parentNode, newNodes);\n\t\t\t\tview.createNodes(setting, parentNode.level + 1, newNodes, parentNode);\n\t\t\t\tif (!isSilent) {\n\t\t\t\t\tview.expandCollapseParentNode(setting, parentNode, true);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdata.addNodesData(setting, data.getRoot(setting), newNodes);\n\t\t\t\tview.createNodes(setting, 0, newNodes, null);\n\t\t\t}\n\t\t},\n\t\tappendNodes: function(setting, level, nodes, parentNode, initFlag, openFlag) {\n\t\t\tif (!nodes) return [];\n\t\t\tvar html = [],\n\t\t\tchildKey = setting.data.key.children;\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tvar node = nodes[i];\n\t\t\t\tif (initFlag) {\n\t\t\t\t\tvar tmpPNode = (parentNode) ? parentNode: data.getRoot(setting),\n\t\t\t\t\ttmpPChild = tmpPNode[childKey],\n\t\t\t\t\tisFirstNode = ((tmpPChild.length == nodes.length) && (i == 0)),\n\t\t\t\t\tisLastNode = (i == (nodes.length - 1));\n\t\t\t\t\tdata.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag);\n\t\t\t\t\tdata.addNodeCache(setting, node);\n\t\t\t\t}\n\n\t\t\t\tvar childHtml = [];\n\t\t\t\tif (node[childKey] && node[childKey].length > 0) {\n\t\t\t\t\t//make child html first, because checkType\n\t\t\t\t\tchildHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open);\n\t\t\t\t}\n\t\t\t\tif (openFlag) {\n\n\t\t\t\t\tview.makeDOMNodeMainBefore(html, setting, node);\n\t\t\t\t\tview.makeDOMNodeLine(html, setting, node);\n\t\t\t\t\tdata.getBeforeA(setting, node, html);\n\t\t\t\t\tview.makeDOMNodeNameBefore(html, setting, node);\n\t\t\t\t\tdata.getInnerBeforeA(setting, node, html);\n\t\t\t\t\tview.makeDOMNodeIcon(html, setting, node);\n\t\t\t\t\tdata.getInnerAfterA(setting, node, html);\n\t\t\t\t\tview.makeDOMNodeNameAfter(html, setting, node);\n\t\t\t\t\tdata.getAfterA(setting, node, html);\n\t\t\t\t\tif (node.isParent && node.open) {\n\t\t\t\t\t\tview.makeUlHtml(setting, node, html, childHtml.join(''));\n\t\t\t\t\t}\n\t\t\t\t\tview.makeDOMNodeMainAfter(html, setting, node);\n\t\t\t\t\tdata.addCreatedNode(setting, node);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn html;\n\t\t},\n\t\tappendParentULDom: function(setting, node) {\n\t\t\tvar html = [],\n\t\t\tnObj = $$(node, setting);\n\t\t\tif (!nObj.get(0) && !!node.parentTId) {\n\t\t\t\tview.appendParentULDom(setting, node.getParentNode());\n\t\t\t\tnObj = $$(node, setting);\n\t\t\t}\n\t\t\tvar ulObj = $$(node, consts.id.UL, setting);\n\t\t\tif (ulObj.get(0)) {\n\t\t\t\tulObj.remove();\n\t\t\t}\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tchildHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true);\n\t\t\tview.makeUlHtml(setting, node, html, childHtml.join(''));\n\t\t\tnObj.append(html.join(''));\n\t\t},\n\t\tasyncNode: function(setting, node, isSilent, callback) {\n\t\t\tvar i, l;\n\t\t\tif (node && !node.isParent) {\n\t\t\t\ttools.apply(callback);\n\t\t\t\treturn false;\n\t\t\t} else if (node && node.isAjaxing) {\n\t\t\t\treturn false;\n\t\t\t} else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) {\n\t\t\t\ttools.apply(callback);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (node) {\n\t\t\t\tnode.isAjaxing = true;\n\t\t\t\tvar icoObj = $$(node, consts.id.ICON, setting);\n\t\t\t\ticoObj.attr({\"style\":\"\", \"class\":consts.className.BUTTON + \" \" + consts.className.ICO_LOADING});\n\t\t\t}\n\n\t\t\tvar tmpParam = {};\n\t\t\tfor (i = 0, l = setting.async.autoParam.length; node && i < l; i++) {\n\t\t\t\tvar pKey = setting.async.autoParam[i].split(\"=\"), spKey = pKey;\n\t\t\t\tif (pKey.length>1) {\n\t\t\t\t\tspKey = pKey[1];\n\t\t\t\t\tpKey = pKey[0];\n\t\t\t\t}\n\t\t\t\ttmpParam[spKey] = node[pKey];\n\t\t\t}\n\t\t\tif (tools.isArray(setting.async.otherParam)) {\n\t\t\t\tfor (i = 0, l = setting.async.otherParam.length; i < l; i += 2) {\n\t\t\t\t\ttmpParam[setting.async.otherParam[i]] = setting.async.otherParam[i + 1];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (var p in setting.async.otherParam) {\n\t\t\t\t\ttmpParam[p] = setting.async.otherParam[p];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar _tmpV = data.getRoot(setting)._ver;\n\t\t\t$.ajax({\n\t\t\t\tcontentType: setting.async.contentType,\n cache: false,\n\t\t\t\ttype: setting.async.type,\n\t\t\t\turl: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url),\n\t\t\t\tdata: tmpParam,\n\t\t\t\tdataType: setting.async.dataType,\n\t\t\t\tsuccess: function(msg) {\n\t\t\t\t\tif (_tmpV != data.getRoot(setting)._ver) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tvar newNodes = [];\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!msg || msg.length == 0) {\n\t\t\t\t\t\t\tnewNodes = [];\n\t\t\t\t\t\t} else if (typeof msg == \"string\") {\n\t\t\t\t\t\t\tnewNodes = eval(\"(\" + msg + \")\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewNodes = msg;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch(err) {\n\t\t\t\t\t\tnewNodes = msg;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (node) {\n\t\t\t\t\t\tnode.isAjaxing = null;\n\t\t\t\t\t\tnode.zAsync = true;\n\t\t\t\t\t}\n\t\t\t\t\tview.setNodeLineIcos(setting, node);\n\t\t\t\t\tif (newNodes && newNodes !== \"\") {\n\t\t\t\t\t\tnewNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes);\n\t\t\t\t\t\tview.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tview.addNodes(setting, node, [], !!isSilent);\n\t\t\t\t\t}\n\t\t\t\t\tsetting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]);\n\t\t\t\t\ttools.apply(callback);\n\t\t\t\t},\n\t\t\t\terror: function(XMLHttpRequest, textStatus, errorThrown) {\n\t\t\t\t\tif (_tmpV != data.getRoot(setting)._ver) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (node) node.isAjaxing = null;\n\t\t\t\t\tview.setNodeLineIcos(setting, node);\n\t\t\t\t\tsetting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn true;\n\t\t},\n\t\tcancelPreSelectedNode: function (setting, node, excludeNode) {\n\t\t\tvar list = data.getRoot(setting).curSelectedList,\n\t\t\t\ti, n;\n\t\t\tfor (i=list.length-1; i>=0; i--) {\n\t\t\t\tn = list[i];\n\t\t\t\tif (node === n || (!node && (!excludeNode || excludeNode !== n))) {\n\t\t\t\t\t$$(n, consts.id.A, setting).removeClass(consts.node.CURSELECTED);\n\t\t\t\t\tif (node) {\n\t\t\t\t\t\tdata.removeSelectedNode(setting, node);\n\t\t\t\t\t\tsetting.treeObj.trigger(consts.event.UNSELECTED, [event, setting.treeId, n]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.splice(i, 1);\n\t\t\t\t\t\tsetting.treeObj.trigger(consts.event.UNSELECTED, [event, setting.treeId, n]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcreateNodeCallback: function(setting) {\n\t\t\tif (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {\n\t\t\t\tvar root = data.getRoot(setting);\n\t\t\t\twhile (root.createdNodes.length>0) {\n\t\t\t\t\tvar node = root.createdNodes.shift();\n\t\t\t\t\ttools.apply(setting.view.addDiyDom, [setting.treeId, node]);\n\t\t\t\t\tif (!!setting.callback.onNodeCreated) {\n\t\t\t\t\t\tsetting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcreateNodes: function(setting, level, nodes, parentNode) {\n\t\t\tif (!nodes || nodes.length == 0) return;\n\t\t\tvar root = data.getRoot(setting),\n\t\t\tchildKey = setting.data.key.children,\n\t\t\topenFlag = !parentNode || parentNode.open || !!$$(parentNode[childKey][0], setting).get(0);\n\t\t\troot.createdNodes = [];\n\t\t\tvar zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag);\n\t\t\tif (!parentNode) {\n\t\t\t\tsetting.treeObj.append(zTreeHtml.join(''));\n\t\t\t} else {\n\t\t\t\tvar ulObj = $$(parentNode, consts.id.UL, setting);\n\t\t\t\tif (ulObj.get(0)) {\n\t\t\t\t\tulObj.append(zTreeHtml.join(''));\n\t\t\t\t}\n\t\t\t}\n\t\t\tview.createNodeCallback(setting);\n\t\t},\n\t\tdestroy: function(setting) {\n\t\t\tif (!setting) return;\n\t\t\tdata.initCache(setting);\n\t\t\tdata.initRoot(setting);\n\t\t\tevent.unbindTree(setting);\n\t\t\tevent.unbindEvent(setting);\n\t\t\tsetting.treeObj.empty();\n\t\t\tdelete settings[setting.treeId];\n\t\t},\n\t\texpandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) {\n\t\t\tvar root = data.getRoot(setting),\n\t\t\tchildKey = setting.data.key.children;\n\t\t\tif (!node) {\n\t\t\t\ttools.apply(callback, []);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (root.expandTriggerFlag) {\n\t\t\t\tvar _callback = callback;\n\t\t\t\tcallback = function(){\n\t\t\t\t\tif (_callback) _callback();\n\t\t\t\t\tif (node.open) {\n\t\t\t\t\t\tsetting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\troot.expandTriggerFlag = false;\n\t\t\t}\n\t\t\tif (!node.open && node.isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (node[childKey] && node[childKey].length>0 && !$$(node[childKey][0], setting).get(0)))) {\n\t\t\t\tview.appendParentULDom(setting, node);\n\t\t\t\tview.createNodeCallback(setting);\n\t\t\t}\n\t\t\tif (node.open == expandFlag) {\n\t\t\t\ttools.apply(callback, []);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar ulObj = $$(node, consts.id.UL, setting),\n\t\t\tswitchObj = $$(node, consts.id.SWITCH, setting),\n\t\t\ticoObj = $$(node, consts.id.ICON, setting);\n\n\t\t\tif (node.isParent) {\n\t\t\t\tnode.open = !node.open;\n\t\t\t\tif (node.iconOpen && node.iconClose) {\n\t\t\t\t\ticoObj.attr(\"style\", view.makeNodeIcoStyle(setting, node));\n\t\t\t\t}\n\n\t\t\t\tif (node.open) {\n\t\t\t\t\tview.replaceSwitchClass(node, switchObj, consts.folder.OPEN);\n\t\t\t\t\tview.replaceIcoClass(node, icoObj, consts.folder.OPEN);\n\t\t\t\t\tif (animateFlag == false || setting.view.expandSpeed == \"\") {\n\t\t\t\t\t\tulObj.show();\n\t\t\t\t\t\ttools.apply(callback, []);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (node[childKey] && node[childKey].length > 0) {\n\t\t\t\t\t\t\tulObj.slideDown(setting.view.expandSpeed, callback);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tulObj.show();\n\t\t\t\t\t\t\ttools.apply(callback, []);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tview.replaceSwitchClass(node, switchObj, consts.folder.CLOSE);\n\t\t\t\t\tview.replaceIcoClass(node, icoObj, consts.folder.CLOSE);\n\t\t\t\t\tif (animateFlag == false || setting.view.expandSpeed == \"\" || !(node[childKey] && node[childKey].length > 0)) {\n\t\t\t\t\t\tulObj.hide();\n\t\t\t\t\t\ttools.apply(callback, []);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tulObj.slideUp(setting.view.expandSpeed, callback);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttools.apply(callback, []);\n\t\t\t}\n\t\t},\n\t\texpandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) {\n\t\t\tif (!node) return;\n\t\t\tif (!node.parentTId) {\n\t\t\t\tview.expandCollapseNode(setting, node, expandFlag, animateFlag, callback);\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tview.expandCollapseNode(setting, node, expandFlag, animateFlag);\n\t\t\t}\n\t\t\tif (node.parentTId) {\n\t\t\t\tview.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback);\n\t\t\t}\n\t\t},\n\t\texpandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) {\n\t\t\tvar root = data.getRoot(setting),\n\t\t\tchildKey = setting.data.key.children,\n\t\t\ttreeNodes = (node) ? node[childKey]: root[childKey],\n\t\t\tselfAnimateSign = (node) ? false : animateFlag,\n\t\t\texpandTriggerFlag = data.getRoot(setting).expandTriggerFlag;\n\t\t\tdata.getRoot(setting).expandTriggerFlag = false;\n\t\t\tif (treeNodes) {\n\t\t\t\tfor (var i = 0, l = treeNodes.length; i < l; i++) {\n\t\t\t\t\tif (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdata.getRoot(setting).expandTriggerFlag = expandTriggerFlag;\n\t\t\tview.expandCollapseNode(setting, node, expandFlag, animateFlag, callback );\n\t\t},\n\t\tisSelectedNode: function (setting, node) {\n\t\t\tif (!node) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tvar list = data.getRoot(setting).curSelectedList,\n\t\t\t\ti;\n\t\t\tfor (i=list.length-1; i>=0; i--) {\n\t\t\t\tif (node === list[i]) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tmakeDOMNodeIcon: function(html, setting, node) {\n\t\t\tvar nameStr = data.getNodeName(setting, node),\n\t\t\tname = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');\n\t\t\thtml.push(\"<span id='\", node.tId, consts.id.ICON,\n\t\t\t\t\"' title='' treeNode\", consts.id.ICON,\" class='\", view.makeNodeIcoClass(setting, node),\n\t\t\t\t\"' style='\", view.makeNodeIcoStyle(setting, node), \"'></span><span id='\", node.tId, consts.id.SPAN,\n\t\t\t\t\"'>\",name,\"</span>\");\n\t\t},\n\t\tmakeDOMNodeLine: function(html, setting, node) {\n\t\t\thtml.push(\"<span id='\", node.tId, consts.id.SWITCH,\t\"' title='' class='\", view.makeNodeLineClass(setting, node), \"' treeNode\", consts.id.SWITCH,\"></span>\");\n\t\t},\n\t\tmakeDOMNodeMainAfter: function(html, setting, node) {\n\t\t\thtml.push(\"</li>\");\n\t\t},\n\t\tmakeDOMNodeMainBefore: function(html, setting, node) {\n\t\t\thtml.push(\"<li id='\", node.tId, \"' class='\", consts.className.LEVEL, node.level,\"' tabindex='0' hidefocus='true' treenode>\");\n\t\t},\n\t\tmakeDOMNodeNameAfter: function(html, setting, node) {\n\t\t\thtml.push(\"</a>\");\n\t\t},\n\t\tmakeDOMNodeNameBefore: function(html, setting, node) {\n\t\t\tvar title = data.getNodeTitle(setting, node),\n\t\t\turl = view.makeNodeUrl(setting, node),\n\t\t\tfontcss = view.makeNodeFontCss(setting, node),\n\t\t\tfontStyle = [];\n\t\t\tfor (var f in fontcss) {\n\t\t\t\tfontStyle.push(f, \":\", fontcss[f], \";\");\n\t\t\t}\n\t\t\thtml.push(\"<a id='\", node.tId, consts.id.A, \"' class='\", consts.className.LEVEL, node.level,\"' treeNode\", consts.id.A,\" onclick=\\\"\", (node.click || ''),\n\t\t\t\t\"\\\" \", ((url != null && url.length > 0) ? \"href='\" + url + \"'\" : \"\"), \" target='\",view.makeNodeTarget(node),\"' style='\", fontStyle.join(''),\n\t\t\t\t\"'\");\n\t\t\tif (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push(\"title='\", title.replace(/'/g,\"'\").replace(/</g,'<').replace(/>/g,'>'),\"'\");}\n\t\t\thtml.push(\">\");\n\t\t},\n\t\tmakeNodeFontCss: function(setting, node) {\n\t\t\tvar fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss);\n\t\t\treturn (fontCss && ((typeof fontCss) != \"function\")) ? fontCss : {};\n\t\t},\n\t\tmakeNodeIcoClass: function(setting, node) {\n\t\t\tvar icoCss = [\"ico\"];\n\t\t\tif (!node.isAjaxing) {\n\t\t\t\ticoCss[0] = (node.iconSkin ? node.iconSkin + \"_\" : \"\") + icoCss[0];\n\t\t\t\tif (node.isParent) {\n\t\t\t\t\ticoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);\n\t\t\t\t} else {\n\t\t\t\t\ticoCss.push(consts.folder.DOCU);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn consts.className.BUTTON + \" \" + icoCss.join('_');\n\t\t},\n\t\tmakeNodeIcoStyle: function(setting, node) {\n\t\t\tvar icoStyle = [];\n\t\t\tif (!node.isAjaxing) {\n\t\t\t\tvar icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon;\n\t\t\t\tif (icon) icoStyle.push(\"background:url(\", icon, \") 0 0 no-repeat;\");\n\t\t\t\tif (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) {\n\t\t\t\t\ticoStyle.push(\"width:0px;height:0px;\");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn icoStyle.join('');\n\t\t},\n\t\tmakeNodeLineClass: function(setting, node) {\n\t\t\tvar lineClass = [];\n\t\t\tif (setting.view.showLine) {\n\t\t\t\tif (node.level == 0 && node.isFirstNode && node.isLastNode) {\n\t\t\t\t\tlineClass.push(consts.line.ROOT);\n\t\t\t\t} else if (node.level == 0 && node.isFirstNode) {\n\t\t\t\t\tlineClass.push(consts.line.ROOTS);\n\t\t\t\t} else if (node.isLastNode) {\n\t\t\t\t\tlineClass.push(consts.line.BOTTOM);\n\t\t\t\t} else {\n\t\t\t\t\tlineClass.push(consts.line.CENTER);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlineClass.push(consts.line.NOLINE);\n\t\t\t}\n\t\t\tif (node.isParent) {\n\t\t\t\tlineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);\n\t\t\t} else {\n\t\t\t\tlineClass.push(consts.folder.DOCU);\n\t\t\t}\n\t\t\treturn view.makeNodeLineClassEx(node) + lineClass.join('_');\n\t\t},\n\t\tmakeNodeLineClassEx: function(node) {\n\t\t\treturn consts.className.BUTTON + \" \" + consts.className.LEVEL + node.level + \" \" + consts.className.SWITCH + \" \";\n\t\t},\n\t\tmakeNodeTarget: function(node) {\n\t\t\treturn (node.target || \"_blank\");\n\t\t},\n\t\tmakeNodeUrl: function(setting, node) {\n\t\t\tvar urlKey = setting.data.key.url;\n\t\t\treturn node[urlKey] ? node[urlKey] : null;\n\t\t},\n\t\tmakeUlHtml: function(setting, node, html, content) {\n\t\t\thtml.push(\"<ul id='\", node.tId, consts.id.UL, \"' class='\", consts.className.LEVEL, node.level, \" \", view.makeUlLineClass(setting, node), \"' style='display:\", (node.open ? \"block\": \"none\"),\"'>\");\n\t\t\thtml.push(content);\n\t\t\thtml.push(\"</ul>\");\n\t\t},\n\t\tmakeUlLineClass: function(setting, node) {\n\t\t\treturn ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : \"\");\n\t\t},\n\t\tremoveChildNodes: function(setting, node) {\n\t\t\tif (!node) return;\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tnodes = node[childKey];\n\t\t\tif (!nodes) return;\n\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tdata.removeNodeCache(setting, nodes[i]);\n\t\t\t}\n\t\t\tdata.removeSelectedNode(setting);\n\t\t\tdelete node[childKey];\n\n\t\t\tif (!setting.data.keep.parent) {\n\t\t\t\tnode.isParent = false;\n\t\t\t\tnode.open = false;\n\t\t\t\tvar tmp_switchObj = $$(node, consts.id.SWITCH, setting),\n\t\t\t\ttmp_icoObj = $$(node, consts.id.ICON, setting);\n\t\t\t\tview.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU);\n\t\t\t\tview.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU);\n\t\t\t\t$$(node, consts.id.UL, setting).remove();\n\t\t\t} else {\n\t\t\t\t$$(node, consts.id.UL, setting).empty();\n\t\t\t}\n\t\t},\n\t\tsetFirstNode: function(setting, parentNode) {\n\t\t\tvar childKey = setting.data.key.children, childLength = parentNode[childKey].length;\n\t\t\tif ( childLength > 0) {\n\t\t\t\tparentNode[childKey][0].isFirstNode = true;\n\t\t\t}\n\t\t},\n\t\tsetLastNode: function(setting, parentNode) {\n\t\t\tvar childKey = setting.data.key.children, childLength = parentNode[childKey].length;\n\t\t\tif ( childLength > 0) {\n\t\t\t\tparentNode[childKey][childLength - 1].isLastNode = true;\n\t\t\t}\n\t\t},\n\t\tremoveNode: function(setting, node) {\n\t\t\tvar root = data.getRoot(setting),\n\t\t\tchildKey = setting.data.key.children,\n\t\t\tparentNode = (node.parentTId) ? node.getParentNode() : root;\n\n\t\t\tnode.isFirstNode = false;\n\t\t\tnode.isLastNode = false;\n\t\t\tnode.getPreNode = function() {return null;};\n\t\t\tnode.getNextNode = function() {return null;};\n\n\t\t\tif (!data.getNodeCache(setting, node.tId)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$$(node, setting).remove();\n\t\t\tdata.removeNodeCache(setting, node);\n\t\t\tdata.removeSelectedNode(setting, node);\n\n\t\t\tfor (var i = 0, l = parentNode[childKey].length; i < l; i++) {\n\t\t\t\tif (parentNode[childKey][i].tId == node.tId) {\n\t\t\t\t\tparentNode[childKey].splice(i, 1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tview.setFirstNode(setting, parentNode);\n\t\t\tview.setLastNode(setting, parentNode);\n\n\t\t\tvar tmp_ulObj,tmp_switchObj,tmp_icoObj,\n\t\t\tchildLength = parentNode[childKey].length;\n\n\t\t\t//repair nodes old parent\n\t\t\tif (!setting.data.keep.parent && childLength == 0) {\n\t\t\t\t//old parentNode has no child nodes\n\t\t\t\tparentNode.isParent = false;\n\t\t\t\tparentNode.open = false;\n\t\t\t\ttmp_ulObj = $$(parentNode, consts.id.UL, setting);\n\t\t\t\ttmp_switchObj = $$(parentNode, consts.id.SWITCH, setting);\n\t\t\t\ttmp_icoObj = $$(parentNode, consts.id.ICON, setting);\n\t\t\t\tview.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU);\n\t\t\t\tview.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU);\n\t\t\t\ttmp_ulObj.css(\"display\", \"none\");\n\n\t\t\t} else if (setting.view.showLine && childLength > 0) {\n\t\t\t\t//old parentNode has child nodes\n\t\t\t\tvar newLast = parentNode[childKey][childLength - 1];\n\t\t\t\ttmp_ulObj = $$(newLast, consts.id.UL, setting);\n\t\t\t\ttmp_switchObj = $$(newLast, consts.id.SWITCH, setting);\n\t\t\t\ttmp_icoObj = $$(newLast, consts.id.ICON, setting);\n\t\t\t\tif (parentNode == root) {\n\t\t\t\t\tif (parentNode[childKey].length == 1) {\n\t\t\t\t\t\t//node was root, and ztree has only one root after move node\n\t\t\t\t\t\tview.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar tmp_first_switchObj = $$(parentNode[childKey][0], consts.id.SWITCH, setting);\n\t\t\t\t\t\tview.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS);\n\t\t\t\t\t\tview.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tview.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);\n\t\t\t\t}\n\t\t\t\ttmp_ulObj.removeClass(consts.line.LINE);\n\t\t\t}\n\t\t},\n\t\treplaceIcoClass: function(node, obj, newName) {\n\t\t\tif (!obj || node.isAjaxing) return;\n\t\t\tvar tmpName = obj.attr(\"class\");\n\t\t\tif (tmpName == undefined) return;\n\t\t\tvar tmpList = tmpName.split(\"_\");\n\t\t\tswitch (newName) {\n\t\t\t\tcase consts.folder.OPEN:\n\t\t\t\tcase consts.folder.CLOSE:\n\t\t\t\tcase consts.folder.DOCU:\n\t\t\t\t\ttmpList[tmpList.length-1] = newName;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobj.attr(\"class\", tmpList.join(\"_\"));\n\t\t},\n\t\treplaceSwitchClass: function(node, obj, newName) {\n\t\t\tif (!obj) return;\n\t\t\tvar tmpName = obj.attr(\"class\");\n\t\t\tif (tmpName == undefined) return;\n\t\t\tvar tmpList = tmpName.split(\"_\");\n\t\t\tswitch (newName) {\n\t\t\t\tcase consts.line.ROOT:\n\t\t\t\tcase consts.line.ROOTS:\n\t\t\t\tcase consts.line.CENTER:\n\t\t\t\tcase consts.line.BOTTOM:\n\t\t\t\tcase consts.line.NOLINE:\n\t\t\t\t\ttmpList[0] = view.makeNodeLineClassEx(node) + newName;\n\t\t\t\t\tbreak;\n\t\t\t\tcase consts.folder.OPEN:\n\t\t\t\tcase consts.folder.CLOSE:\n\t\t\t\tcase consts.folder.DOCU:\n\t\t\t\t\ttmpList[1] = newName;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobj.attr(\"class\", tmpList.join(\"_\"));\n\t\t\tif (newName !== consts.folder.DOCU) {\n\t\t\t\tobj.removeAttr(\"disabled\");\n\t\t\t} else {\n\t\t\t\tobj.attr(\"disabled\", \"disabled\");\n\t\t\t}\n\t\t},\n\t\tselectNode: function(setting, node, addFlag) {\n\t\t\tif (!addFlag) {\n\t\t\t\tview.cancelPreSelectedNode(setting, null, node);\n\t\t\t}\n\t\t\t$$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED);\n\t\t\tdata.addSelectedNode(setting, node);\n\t\t\tsetting.treeObj.trigger(consts.event.SELECTED, [event, setting.treeId, node]);\n\t\t},\n\t\tsetNodeFontCss: function(setting, treeNode) {\n\t\t\tvar aObj = $$(treeNode, consts.id.A, setting),\n\t\t\tfontCss = view.makeNodeFontCss(setting, treeNode);\n\t\t\tif (fontCss) {\n\t\t\t\taObj.css(fontCss);\n\t\t\t}\n\t\t},\n\t\tsetNodeLineIcos: function(setting, node) {\n\t\t\tif (!node) return;\n\t\t\tvar switchObj = $$(node, consts.id.SWITCH, setting),\n\t\t\tulObj = $$(node, consts.id.UL, setting),\n\t\t\ticoObj = $$(node, consts.id.ICON, setting),\n\t\t\tulLine = view.makeUlLineClass(setting, node);\n\t\t\tif (ulLine.length==0) {\n\t\t\t\tulObj.removeClass(consts.line.LINE);\n\t\t\t} else {\n\t\t\t\tulObj.addClass(ulLine);\n\t\t\t}\n\t\t\tswitchObj.attr(\"class\", view.makeNodeLineClass(setting, node));\n\t\t\tif (node.isParent) {\n\t\t\t\tswitchObj.removeAttr(\"disabled\");\n\t\t\t} else {\n\t\t\t\tswitchObj.attr(\"disabled\", \"disabled\");\n\t\t\t}\n\t\t\ticoObj.removeAttr(\"style\");\n\t\t\ticoObj.attr(\"style\", view.makeNodeIcoStyle(setting, node));\n\t\t\ticoObj.attr(\"class\", view.makeNodeIcoClass(setting, node));\n\t\t},\n\t\tsetNodeName: function(setting, node) {\n\t\t\tvar title = data.getNodeTitle(setting, node),\n\t\t\tnObj = $$(node, consts.id.SPAN, setting);\n\t\t\tnObj.empty();\n\t\t\tif (setting.view.nameIsHTML) {\n\t\t\t\tnObj.html(data.getNodeName(setting, node));\n\t\t\t} else {\n\t\t\t\tnObj.text(data.getNodeName(setting, node));\n\t\t\t}\n\t\t\tif (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) {\n\t\t\t\tvar aObj = $$(node, consts.id.A, setting);\n\t\t\t\taObj.attr(\"title\", !title ? \"\" : title);\n\t\t\t}\n\t\t},\n\t\tsetNodeTarget: function(setting, node) {\n\t\t\tvar aObj = $$(node, consts.id.A, setting);\n\t\t\taObj.attr(\"target\", view.makeNodeTarget(node));\n\t\t},\n\t\tsetNodeUrl: function(setting, node) {\n\t\t\tvar aObj = $$(node, consts.id.A, setting),\n\t\t\turl = view.makeNodeUrl(setting, node);\n\t\t\tif (url == null || url.length == 0) {\n\t\t\t\taObj.removeAttr(\"href\");\n\t\t\t} else {\n\t\t\t\taObj.attr(\"href\", url);\n\t\t\t}\n\t\t},\n\t\tswitchNode: function(setting, node) {\n\t\t\tif (node.open || !tools.canAsync(setting, node)) {\n\t\t\t\tview.expandCollapseNode(setting, node, !node.open);\n\t\t\t} else if (setting.async.enable) {\n\t\t\t\tif (!view.asyncNode(setting, node)) {\n\t\t\t\t\tview.expandCollapseNode(setting, node, !node.open);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (node) {\n\t\t\t\tview.expandCollapseNode(setting, node, !node.open);\n\t\t\t}\n\t\t}\n\t};\n\t// zTree defind\n\t$.fn.zTree = {\n\t\tconsts : _consts,\n\t\t_z : {\n\t\t\ttools: tools,\n\t\t\tview: view,\n\t\t\tevent: event,\n\t\t\tdata: data\n\t\t},\n\t\tgetZTreeObj: function(treeId) {\n\t\t\tvar o = data.getZTreeTools(treeId);\n\t\t\treturn o ? o : null;\n\t\t},\n\t\tdestroy: function(treeId) {\n\t\t\tif (!!treeId && treeId.length > 0) {\n\t\t\t\tview.destroy(data.getSetting(treeId));\n\t\t\t} else {\n\t\t\t\tfor(var s in settings) {\n\t\t\t\t\tview.destroy(settings[s]);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tinit: function(obj, zSetting, zNodes) {\n\t\t\tvar setting = tools.clone(_setting);\n\t\t\t$.extend(true, setting, zSetting);\n\t\t\tsetting.treeId = obj.attr(\"id\");\n\t\t\tsetting.treeObj = obj;\n\t\t\tsetting.treeObj.empty();\n\t\t\tsettings[setting.treeId] = setting;\n\t\t\t//For some older browser,(e.g., ie6)\n\t\t\tif(typeof document.body.style.maxHeight === \"undefined\") {\n\t\t\t\tsetting.view.expandSpeed = \"\";\n\t\t\t}\n\t\t\tdata.initRoot(setting);\n\t\t\tvar root = data.getRoot(setting),\n\t\t\tchildKey = setting.data.key.children;\n\t\t\tzNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : [];\n\t\t\tif (setting.data.simpleData.enable) {\n\t\t\t\troot[childKey] = data.transformTozTreeFormat(setting, zNodes);\n\t\t\t} else {\n\t\t\t\troot[childKey] = zNodes;\n\t\t\t}\n\n\t\t\tdata.initCache(setting);\n\t\t\tevent.unbindTree(setting);\n\t\t\tevent.bindTree(setting);\n\t\t\tevent.unbindEvent(setting);\n\t\t\tevent.bindEvent(setting);\n\n\t\t\tvar zTreeTools = {\n\t\t\t\tsetting : setting,\n\t\t\t\taddNodes : function(parentNode, newNodes, isSilent) {\n\t\t\t\t\tif (!newNodes) return null;\n\t\t\t\t\tif (!parentNode) parentNode = null;\n\t\t\t\t\tif (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null;\n\t\t\t\t\tvar xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]);\n\t\t\t\t\tfunction addCallback() {\n\t\t\t\t\t\tview.addNodes(setting, parentNode, xNewNodes, (isSilent==true));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (tools.canAsync(setting, parentNode)) {\n\t\t\t\t\t\tview.asyncNode(setting, parentNode, isSilent, addCallback);\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddCallback();\n\t\t\t\t\t}\n\t\t\t\t\treturn xNewNodes;\n\t\t\t\t},\n\t\t\t\tcancelSelectedNode : function(node) {\n\t\t\t\t\tview.cancelPreSelectedNode(setting, node);\n\t\t\t\t},\n\t\t\t\tdestroy : function() {\n\t\t\t\t\tview.destroy(setting);\n\t\t\t\t},\n\t\t\t\texpandAll : function(expandFlag) {\n\t\t\t\t\texpandFlag = !!expandFlag;\n\t\t\t\t\tview.expandCollapseSonNode(setting, null, expandFlag, true);\n\t\t\t\t\treturn expandFlag;\n\t\t\t\t},\n\t\t\t\texpandNode : function(node, expandFlag, sonSign, focus, callbackFlag) {\n\t\t\t\t\tif (!node || !node.isParent) return null;\n\t\t\t\t\tif (expandFlag !== true && expandFlag !== false) {\n\t\t\t\t\t\texpandFlag = !node.open;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackFlag = !!callbackFlag;\n\n\t\t\t\t\tif (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t} else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tif (expandFlag && node.parentTId) {\n\t\t\t\t\t\tview.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false);\n\t\t\t\t\t}\n\t\t\t\t\tif (expandFlag === node.open && !sonSign) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tdata.getRoot(setting).expandTriggerFlag = callbackFlag;\n\t\t\t\t\tif (!tools.canAsync(setting, node) && sonSign) {\n\t\t\t\t\t\tview.expandCollapseSonNode(setting, node, expandFlag, true, function() {\n\t\t\t\t\t\t\tif (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnode.open = !expandFlag;\n\t\t\t\t\t\tview.switchNode(this.setting, node);\n\t\t\t\t\t\tif (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}}\n\t\t\t\t\t}\n\t\t\t\t\treturn expandFlag;\n\t\t\t\t},\n\t\t\t\tgetNodes : function() {\n\t\t\t\t\treturn data.getNodes(setting);\n\t\t\t\t},\n\t\t\t\tgetNodeByParam : function(key, value, parentNode) {\n\t\t\t\t\tif (!key) return null;\n\t\t\t\t\treturn data.getNodeByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);\n\t\t\t\t},\n\t\t\t\tgetNodeByTId : function(tId) {\n\t\t\t\t\treturn data.getNodeCache(setting, tId);\n\t\t\t\t},\n\t\t\t\tgetNodesByParam : function(key, value, parentNode) {\n\t\t\t\t\tif (!key) return null;\n\t\t\t\t\treturn data.getNodesByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);\n\t\t\t\t},\n\t\t\t\tgetNodesByParamFuzzy : function(key, value, parentNode) {\n\t\t\t\t\tif (!key) return null;\n\t\t\t\t\treturn data.getNodesByParamFuzzy(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);\n\t\t\t\t},\n\t\t\t\tgetNodesByFilter: function(filter, isSingle, parentNode, invokeParam) {\n\t\t\t\t\tisSingle = !!isSingle;\n\t\t\t\t\tif (!filter || (typeof filter != \"function\")) return (isSingle ? null : []);\n\t\t\t\t\treturn data.getNodesByFilter(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), filter, isSingle, invokeParam);\n\t\t\t\t},\n\t\t\t\tgetNodeIndex : function(node) {\n\t\t\t\t\tif (!node) return null;\n\t\t\t\t\tvar childKey = setting.data.key.children,\n\t\t\t\t\tparentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);\n\t\t\t\t\tfor (var i=0, l = parentNode[childKey].length; i < l; i++) {\n\t\t\t\t\t\tif (parentNode[childKey][i] == node) return i;\n\t\t\t\t\t}\n\t\t\t\t\treturn -1;\n\t\t\t\t},\n\t\t\t\tgetSelectedNodes : function() {\n\t\t\t\t\tvar r = [], list = data.getRoot(setting).curSelectedList;\n\t\t\t\t\tfor (var i=0, l=list.length; i<l; i++) {\n\t\t\t\t\t\tr.push(list[i]);\n\t\t\t\t\t}\n\t\t\t\t\treturn r;\n\t\t\t\t},\n\t\t\t\tisSelectedNode : function(node) {\n\t\t\t\t\treturn data.isSelectedNode(setting, node);\n\t\t\t\t},\n\t\t\t\treAsyncChildNodes : function(parentNode, reloadType, isSilent) {\n\t\t\t\t\tif (!this.setting.async.enable) return;\n\t\t\t\t\tvar isRoot = !parentNode;\n\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\tparentNode = data.getRoot(setting);\n\t\t\t\t\t}\n\t\t\t\t\tif (reloadType==\"refresh\") {\n\t\t\t\t\t\tvar childKey = this.setting.data.key.children;\n\t\t\t\t\t\tfor (var i = 0, l = parentNode[childKey] ? parentNode[childKey].length : 0; i < l; i++) {\n\t\t\t\t\t\t\tdata.removeNodeCache(setting, parentNode[childKey][i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdata.removeSelectedNode(setting);\n\t\t\t\t\t\tparentNode[childKey] = [];\n\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\tthis.setting.treeObj.empty();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar ulObj = $$(parentNode, consts.id.UL, setting);\n\t\t\t\t\t\t\tulObj.empty();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tview.asyncNode(this.setting, isRoot? null:parentNode, !!isSilent);\n\t\t\t\t},\n\t\t\t\trefresh : function() {\n\t\t\t\t\tthis.setting.treeObj.empty();\n\t\t\t\t\tvar root = data.getRoot(setting),\n\t\t\t\t\tnodes = root[setting.data.key.children]\n\t\t\t\t\tdata.initRoot(setting);\n\t\t\t\t\troot[setting.data.key.children] = nodes\n\t\t\t\t\tdata.initCache(setting);\n\t\t\t\t\tview.createNodes(setting, 0, root[setting.data.key.children]);\n\t\t\t\t},\n\t\t\t\tremoveChildNodes : function(node) {\n\t\t\t\t\tif (!node) return null;\n\t\t\t\t\tvar childKey = setting.data.key.children,\n\t\t\t\t\tnodes = node[childKey];\n\t\t\t\t\tview.removeChildNodes(setting, node);\n\t\t\t\t\treturn nodes ? nodes : null;\n\t\t\t\t},\n\t\t\t\tremoveNode : function(node, callbackFlag) {\n\t\t\t\t\tif (!node) return;\n\t\t\t\t\tcallbackFlag = !!callbackFlag;\n\t\t\t\t\tif (callbackFlag && tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return;\n\t\t\t\t\tview.removeNode(setting, node);\n\t\t\t\t\tif (callbackFlag) {\n\t\t\t\t\t\tthis.setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tselectNode : function(node, addFlag) {\n\t\t\t\t\tif (!node) return;\n\t\t\t\t\tif (tools.uCanDo(setting)) {\n\t\t\t\t\t\taddFlag = setting.view.selectedMulti && addFlag;\n\t\t\t\t\t\tif (node.parentTId) {\n\t\t\t\t\t\t\tview.expandCollapseParentNode(setting, node.getParentNode(), true, false, function() {\n\t\t\t\t\t\t\t\ttry{$$(node, setting).focus().blur();}catch(e){}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry{$$(node, setting).focus().blur();}catch(e){}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tview.selectNode(setting, node, addFlag);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\ttransformTozTreeNodes : function(simpleNodes) {\n\t\t\t\t\treturn data.transformTozTreeFormat(setting, simpleNodes);\n\t\t\t\t},\n\t\t\t\ttransformToArray : function(nodes) {\n\t\t\t\t\treturn data.transformToArrayFormat(setting, nodes);\n\t\t\t\t},\n\t\t\t\tupdateNode : function(node, checkTypeFlag) {\n\t\t\t\t\tif (!node) return;\n\t\t\t\t\tvar nObj = $$(node, setting);\n\t\t\t\t\tif (nObj.get(0) && tools.uCanDo(setting)) {\n\t\t\t\t\t\tview.setNodeName(setting, node);\n\t\t\t\t\t\tview.setNodeTarget(setting, node);\n\t\t\t\t\t\tview.setNodeUrl(setting, node);\n\t\t\t\t\t\tview.setNodeLineIcos(setting, node);\n\t\t\t\t\t\tview.setNodeFontCss(setting, node);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\troot.treeTools = zTreeTools;\n\t\t\tdata.setZTreeTools(setting, zTreeTools);\n\n\t\t\tif (root[childKey] && root[childKey].length > 0) {\n\t\t\t\tview.createNodes(setting, 0, root[childKey]);\n\t\t\t} else if (setting.async.enable && setting.async.url && setting.async.url !== '') {\n\t\t\t\tview.asyncNode(setting);\n\t\t\t}\n\t\t\treturn zTreeTools;\n\t\t}\n\t};\n\n\tvar zt = $.fn.zTree,\n\t$$ = tools.$,\n\tconsts = zt.consts;\n})(BI.jQuery);/*\n * JQuery zTree excheck v3.5.18\n * http://zTree.me/\n *\n * Copyright (c) 2010 Hunter.z\n *\n * Licensed same as jquery - MIT License\n * http://www.opensource.org/licenses/mit-license.php\n *\n * email: hunter.z@263.net\n * Date: 2015-06-18\n */\n(function($){\n\t//default consts of excheck\n\tvar _consts = {\n\t\tevent: {\n\t\t\tCHECK: \"ztree_check\"\n\t\t},\n\t\tid: {\n\t\t\tCHECK: \"_check\"\n\t\t},\n\t\tcheckbox: {\n\t\t\tSTYLE: \"checkbox\",\n\t\t\tDEFAULT: \"chk\",\n\t\t\tDISABLED: \"disable\",\n\t\t\tFALSE: \"false\",\n\t\t\tTRUE: \"true\",\n\t\t\tFULL: \"full\",\n\t\t\tPART: \"part\",\n\t\t\tFOCUS: \"focus\"\n\t\t},\n\t\tradio: {\n\t\t\tSTYLE: \"radio\",\n\t\t\tTYPE_ALL: \"all\",\n\t\t\tTYPE_LEVEL: \"level\"\n\t\t}\n\t},\n\t//default setting of excheck\n\t_setting = {\n\t\tcheck: {\n\t\t\tenable: false,\n\t\t\tautoCheckTrigger: false,\n\t\t\tchkStyle: _consts.checkbox.STYLE,\n\t\t\tnocheckInherit: false,\n\t\t\tchkDisabledInherit: false,\n\t\t\tradioType: _consts.radio.TYPE_LEVEL,\n\t\t\tchkboxType: {\n\t\t\t\t\"Y\": \"ps\",\n\t\t\t\t\"N\": \"ps\"\n\t\t\t}\n\t\t},\n\t\tdata: {\n\t\t\tkey: {\n\t\t\t\tchecked: \"checked\"\n\t\t\t}\n\t\t},\n\t\tcallback: {\n\t\t\tbeforeCheck:null,\n\t\t\tonCheck:null\n\t\t}\n\t},\n\t//default root of excheck\n\t_initRoot = function (setting) {\n\t\tvar r = data.getRoot(setting);\n\t\tr.radioCheckedList = [];\n\t},\n\t//default cache of excheck\n\t_initCache = function(treeId) {},\n\t//default bind event of excheck\n\t_bindEvent = function(setting) {\n\t\tvar o = setting.treeObj,\n\t\tc = consts.event;\n\t\to.bind(c.CHECK, function (event, srcEvent, treeId, node) {\n\t\t\tevent.srcEvent = srcEvent;\n\t\t\ttools.apply(setting.callback.onCheck, [event, treeId, node]);\n\t\t});\n\t},\n\t_unbindEvent = function(setting) {\n\t\tvar o = setting.treeObj,\n\t\tc = consts.event;\n\t\to.unbind(c.CHECK);\n\t},\n\t//default event proxy of excheck\n\t_eventProxy = function(e) {\n\t\tvar target = e.target,\n\t\tsetting = data.getSetting(e.data.treeId),\n\t\ttId = \"\", node = null,\n\t\tnodeEventType = \"\", treeEventType = \"\",\n\t\tnodeEventCallback = null, treeEventCallback = null;\n\n\t\tif (tools.eqs(e.type, \"mouseover\")) {\n\t\t\tif (setting.check.enable && tools.eqs(target.tagName, \"span\") && target.getAttribute(\"treeNode\"+ consts.id.CHECK) !== null) {\n\t\t\t\ttId = tools.getNodeMainDom(target).id;\n\t\t\t\tnodeEventType = \"mouseoverCheck\";\n\t\t\t}\n\t\t} else if (tools.eqs(e.type, \"mouseout\")) {\n\t\t\tif (setting.check.enable && tools.eqs(target.tagName, \"span\") && target.getAttribute(\"treeNode\"+ consts.id.CHECK) !== null) {\n\t\t\t\ttId = tools.getNodeMainDom(target).id;\n\t\t\t\tnodeEventType = \"mouseoutCheck\";\n\t\t\t}\n\t\t} else if (tools.eqs(e.type, \"click\")) {\n\t\t\tif (setting.check.enable && tools.eqs(target.tagName, \"span\") && target.getAttribute(\"treeNode\"+ consts.id.CHECK) !== null) {\n\t\t\t\ttId = tools.getNodeMainDom(target).id;\n\t\t\t\tnodeEventType = \"checkNode\";\n\t\t\t}\n\t\t}\n\t\tif (tId.length>0) {\n\t\t\tnode = data.getNodeCache(setting, tId);\n\t\t\tswitch (nodeEventType) {\n\t\t\t\tcase \"checkNode\" :\n\t\t\t\t\tnodeEventCallback = _handler.onCheckNode;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"mouseoverCheck\" :\n\t\t\t\t\tnodeEventCallback = _handler.onMouseoverCheck;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"mouseoutCheck\" :\n\t\t\t\t\tnodeEventCallback = _handler.onMouseoutCheck;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tvar proxyResult = {\n\t\t\tstop: nodeEventType === \"checkNode\",\n\t\t\tnode: node,\n\t\t\tnodeEventType: nodeEventType,\n\t\t\tnodeEventCallback: nodeEventCallback,\n\t\t\ttreeEventType: treeEventType,\n\t\t\ttreeEventCallback: treeEventCallback\n\t\t};\n\t\treturn proxyResult\n\t},\n\t//default init node of excheck\n\t_initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {\n\t\tif (!n) return;\n\t\tvar checkedKey = setting.data.key.checked;\n\t\tif (typeof n[checkedKey] == \"string\") n[checkedKey] = tools.eqs(n[checkedKey], \"true\");\n\t\tn[checkedKey] = !!n[checkedKey];\n\t\tn.checkedOld = n[checkedKey];\n\t\tif (typeof n.nocheck == \"string\") n.nocheck = tools.eqs(n.nocheck, \"true\");\n\t\tn.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck);\n\t\tif (typeof n.chkDisabled == \"string\") n.chkDisabled = tools.eqs(n.chkDisabled, \"true\");\n\t\tn.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled);\n\t\tif (typeof n.halfCheck == \"string\") n.halfCheck = tools.eqs(n.halfCheck, \"true\");\n\t\tn.halfCheck = !!n.halfCheck;\n\t\tn.check_Child_State = -1;\n\t\tn.check_Focus = false;\n\t\tn.getCheckStatus = function() {return data.getCheckStatus(setting, n);};\n\n\t\tif (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && n[checkedKey] ) {\n\t\t\tvar r = data.getRoot(setting);\n\t\t\tr.radioCheckedList.push(n);\n\t\t}\n\t},\n\t//add dom for check\n\t_beforeA = function(setting, node, html) {\n\t\tvar checkedKey = setting.data.key.checked;\n\t\tif (setting.check.enable) {\n\t\t\tdata.makeChkFlag(setting, node);\n\t\t\thtml.push(\"<span ID='\", node.tId, consts.id.CHECK, \"' class='\", view.makeChkClass(setting, node), \"' treeNode\", consts.id.CHECK, (node.nocheck === true?\" style='display:none;'\":\"\"),\"></span>\");\n\t\t}\n\t},\n\t//update zTreeObj, add method of check\n\t_zTreeTools = function(setting, zTreeTools) {\n\t\tzTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) {\n\t\t\tvar checkedKey = this.setting.data.key.checked;\n\t\t\tif (node.chkDisabled === true) return;\n\t\t\tif (checked !== true && checked !== false) {\n\t\t\t\tchecked = !node[checkedKey];\n\t\t\t}\n\t\t\tcallbackFlag = !!callbackFlag;\n\n\t\t\tif (node[checkedKey] === checked && !checkTypeFlag) {\n\t\t\t\treturn;\n\t\t\t} else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) {\n\t\t\t\tnode[checkedKey] = checked;\n\t\t\t\tvar checkObj = $$(node, consts.id.CHECK, this.setting);\n\t\t\t\tif (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node);\n\t\t\t\tview.setChkClass(this.setting, checkObj, node);\n\t\t\t\tview.repairParentChkClassWithSelf(this.setting, node);\n\t\t\t\tif (callbackFlag) {\n\t\t\t\t\tthis.setting.treeObj.trigger(consts.event.CHECK, [null, this.setting.treeId, node]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tzTreeTools.checkAllNodes = function(checked) {\n\t\t\tview.repairAllChk(this.setting, !!checked);\n\t\t}\n\n\t\tzTreeTools.getCheckedNodes = function(checked) {\n\t\t\tvar childKey = this.setting.data.key.children;\n\t\t\tchecked = (checked !== false);\n\t\t\treturn data.getTreeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey], checked);\n\t\t}\n\n\t\tzTreeTools.getChangeCheckedNodes = function() {\n\t\t\tvar childKey = this.setting.data.key.children;\n\t\t\treturn data.getTreeChangeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey]);\n\t\t}\n\n\t\tzTreeTools.setChkDisabled = function(node, disabled, inheritParent, inheritChildren) {\n\t\t\tdisabled = !!disabled;\n\t\t\tinheritParent = !!inheritParent;\n\t\t\tinheritChildren = !!inheritChildren;\n\t\t\tview.repairSonChkDisabled(this.setting, node, disabled, inheritChildren);\n\t\t\tview.repairParentChkDisabled(this.setting, node.getParentNode(), disabled, inheritParent);\n\t\t}\n\n\t\tvar _updateNode = zTreeTools.updateNode;\n\t\tzTreeTools.updateNode = function(node, checkTypeFlag) {\n\t\t\tif (_updateNode) _updateNode.apply(zTreeTools, arguments);\n\t\t\tif (!node || !this.setting.check.enable) return;\n\t\t\tvar nObj = $$(node, this.setting);\n\t\t\tif (nObj.get(0) && tools.uCanDo(this.setting)) {\n\t\t\t\tvar checkObj = $$(node, consts.id.CHECK, this.setting);\n\t\t\t\tif (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node);\n\t\t\t\tview.setChkClass(this.setting, checkObj, node);\n\t\t\t\tview.repairParentChkClassWithSelf(this.setting, node);\n\t\t\t}\n\t\t}\n\t},\n\t//method of operate data\n\t_data = {\n\t\tgetRadioCheckedList: function(setting) {\n\t\t\tvar checkedList = data.getRoot(setting).radioCheckedList;\n\t\t\tfor (var i=0, j=checkedList.length; i<j; i++) {\n\t\t\t\tif(!data.getNodeCache(setting, checkedList[i].tId)) {\n\t\t\t\t\tcheckedList.splice(i, 1);\n\t\t\t\t\ti--; j--;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn checkedList;\n\t\t},\n\t\tgetCheckStatus: function(setting, node) {\n\t\t\tif (!setting.check.enable || node.nocheck || node.chkDisabled) return null;\n\t\t\tvar checkedKey = setting.data.key.checked,\n\t\t\tr = {\n\t\t\t\tchecked: node[checkedKey],\n\t\t\t\thalf: node.halfCheck ? node.halfCheck : (setting.check.chkStyle == consts.radio.STYLE ? (node.check_Child_State === 2) : (node[checkedKey] ? (node.check_Child_State > -1 && node.check_Child_State < 2) : (node.check_Child_State > 0)))\n\t\t\t};\n\t\t\treturn r;\n\t\t},\n\t\tgetTreeCheckedNodes: function(setting, nodes, checked, results) {\n\t\t\tif (!nodes) return [];\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tcheckedKey = setting.data.key.checked,\n\t\t\tonlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL);\n\t\t\tresults = !results ? [] : results;\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tif (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] == checked) {\n\t\t\t\t\tresults.push(nodes[i]);\n\t\t\t\t\tif(onlyOne) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdata.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results);\n\t\t\t\tif(onlyOne && results.length > 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn results;\n\t\t},\n\t\tgetTreeChangeCheckedNodes: function(setting, nodes, results) {\n\t\t\tif (!nodes) return [];\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tcheckedKey = setting.data.key.checked;\n\t\t\tresults = !results ? [] : results;\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tif (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] != nodes[i].checkedOld) {\n\t\t\t\t\tresults.push(nodes[i]);\n\t\t\t\t}\n\t\t\t\tdata.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results);\n\t\t\t}\n\t\t\treturn results;\n\t\t},\n\t\tmakeChkFlag: function(setting, node) {\n\t\t\tif (!node) return;\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tcheckedKey = setting.data.key.checked,\n\t\t\tchkFlag = -1;\n\t\t\tif (node[childKey]) {\n\t\t\t\tfor (var i = 0, l = node[childKey].length; i < l; i++) {\n\t\t\t\t\tvar cNode = node[childKey][i];\n\t\t\t\t\tvar tmp = -1;\n\t\t\t\t\tif (setting.check.chkStyle == consts.radio.STYLE) {\n\t\t\t\t\t\tif (cNode.nocheck === true || cNode.chkDisabled === true) {\n\t\t\t\t\t\t\ttmp = cNode.check_Child_State;\n\t\t\t\t\t\t} else if (cNode.halfCheck === true) {\n\t\t\t\t\t\t\ttmp = 2;\n\t\t\t\t\t\t} else if (cNode[checkedKey]) {\n\t\t\t\t\t\t\ttmp = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttmp = cNode.check_Child_State > 0 ? 2:0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (tmp == 2) {\n\t\t\t\t\t\t\tchkFlag = 2; break;\n\t\t\t\t\t\t} else if (tmp == 0){\n\t\t\t\t\t\t\tchkFlag = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (setting.check.chkStyle == consts.checkbox.STYLE) {\n\t\t\t\t\t\tif (cNode.nocheck === true || cNode.chkDisabled === true) {\n\t\t\t\t\t\t\ttmp = cNode.check_Child_State;\n\t\t\t\t\t\t} else if (cNode.halfCheck === true) {\n\t\t\t\t\t\t\ttmp = 1;\n\t\t\t\t\t\t} else if (cNode[checkedKey] ) {\n\t\t\t\t\t\t\ttmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttmp = (cNode.check_Child_State > 0) ? 1 : 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (tmp === 1) {\n\t\t\t\t\t\t\tchkFlag = 1; break;\n\t\t\t\t\t\t} else if (tmp === 2 && chkFlag > -1 && i > 0 && tmp !== chkFlag) {\n\t\t\t\t\t\t\tchkFlag = 1; break;\n\t\t\t\t\t\t} else if (chkFlag === 2 && tmp > -1 && tmp < 2) {\n\t\t\t\t\t\t\tchkFlag = 1; break;\n\t\t\t\t\t\t} else if (tmp > -1) {\n\t\t\t\t\t\t\tchkFlag = tmp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tnode.check_Child_State = chkFlag;\n\t\t}\n\t},\n\t//method of event proxy\n\t_event = {\n\n\t},\n\t//method of event handler\n\t_handler = {\n\t\tonCheckNode: function (event, node) {\n\t\t\tif (node.chkDisabled === true) return false;\n\t\t\tvar setting = data.getSetting(event.data.treeId),\n\t\t\tcheckedKey = setting.data.key.checked;\n\t\t\tif (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true;\n\t\t\tnode[checkedKey] = !node[checkedKey];\n\t\t\tview.checkNodeRelation(setting, node);\n\t\t\tvar checkObj = $$(node, consts.id.CHECK, setting);\n\t\t\tview.setChkClass(setting, checkObj, node);\n\t\t\tview.repairParentChkClassWithSelf(setting, node);\n\t\t\tsetting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]);\n\t\t\treturn true;\n\t\t},\n\t\tonMouseoverCheck: function(event, node) {\n\t\t\tif (node.chkDisabled === true) return false;\n\t\t\tvar setting = data.getSetting(event.data.treeId),\n\t\t\tcheckObj = $$(node, consts.id.CHECK, setting);\n\t\t\tnode.check_Focus = true;\n\t\t\tview.setChkClass(setting, checkObj, node);\n\t\t\treturn true;\n\t\t},\n\t\tonMouseoutCheck: function(event, node) {\n\t\t\tif (node.chkDisabled === true) return false;\n\t\t\tvar setting = data.getSetting(event.data.treeId),\n\t\t\tcheckObj = $$(node, consts.id.CHECK, setting);\n\t\t\tnode.check_Focus = false;\n\t\t\tview.setChkClass(setting, checkObj, node);\n\t\t\treturn true;\n\t\t}\n\t},\n\t//method of tools for zTree\n\t_tools = {\n\n\t},\n\t//method of operate ztree dom\n\t_view = {\n\t\tcheckNodeRelation: function(setting, node) {\n\t\t\tvar pNode, i, l,\n\t\t\tchildKey = setting.data.key.children,\n\t\t\tcheckedKey = setting.data.key.checked,\n\t\t\tr = consts.radio;\n\t\t\tif (setting.check.chkStyle == r.STYLE) {\n\t\t\t\tvar checkedList = data.getRadioCheckedList(setting);\n\t\t\t\tif (node[checkedKey]) {\n\t\t\t\t\tif (setting.check.radioType == r.TYPE_ALL) {\n\t\t\t\t\t\tfor (i = checkedList.length-1; i >= 0; i--) {\n\t\t\t\t\t\t\tpNode = checkedList[i];\n\t\t\t\t\t\t\tif (pNode[checkedKey] && pNode != node) {\n\t\t\t\t\t\t\t\tpNode[checkedKey] = false;\n\t\t\t\t\t\t\t\tcheckedList.splice(i, 1);\n\n\t\t\t\t\t\t\t\tview.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode);\n\t\t\t\t\t\t\t\tif (pNode.parentTId != node.parentTId) {\n\t\t\t\t\t\t\t\t\tview.repairParentChkClassWithSelf(setting, pNode);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcheckedList.push(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);\n\t\t\t\t\t\tfor (i = 0, l = parentNode[childKey].length; i < l; i++) {\n\t\t\t\t\t\t\tpNode = parentNode[childKey][i];\n\t\t\t\t\t\t\tif (pNode[checkedKey] && pNode != node) {\n\t\t\t\t\t\t\t\tpNode[checkedKey] = false;\n\t\t\t\t\t\t\t\tview.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (setting.check.radioType == r.TYPE_ALL) {\n\t\t\t\t\tfor (i = 0, l = checkedList.length; i < l; i++) {\n\t\t\t\t\t\tif (node == checkedList[i]) {\n\t\t\t\t\t\t\tcheckedList.splice(i, 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf(\"s\") > -1)) {\n\t\t\t\t\tview.setSonNodeCheckBox(setting, node, true);\n\t\t\t\t}\n\t\t\t\tif (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf(\"s\") > -1)) {\n\t\t\t\t\tview.setSonNodeCheckBox(setting, node, false);\n\t\t\t\t}\n\t\t\t\tif (node[checkedKey] && setting.check.chkboxType.Y.indexOf(\"p\") > -1) {\n\t\t\t\t\tview.setParentNodeCheckBox(setting, node, true);\n\t\t\t\t}\n\t\t\t\tif (!node[checkedKey] && setting.check.chkboxType.N.indexOf(\"p\") > -1) {\n\t\t\t\t\tview.setParentNodeCheckBox(setting, node, false);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tmakeChkClass: function(setting, node) {\n\t\t\tvar checkedKey = setting.data.key.checked,\n\t\t\tc = consts.checkbox, r = consts.radio,\n\t\t\tcheckboxType = setting.check.chkboxType;\n\t\t\tvar notEffectByOtherNode = (checkboxType.Y === \"\" && checkboxType.N === \"\");\n\t\t\tfullStyle = \"\";\n\t\t\tif (node.chkDisabled === true) {\n\t\t\t\tfullStyle = c.DISABLED;\n\t\t\t} else if (node.halfCheck) {\n\t\t\t\tfullStyle = c.PART;\n\t\t\t} else if (setting.check.chkStyle == r.STYLE) {\n\t\t\t\tfullStyle = (node.check_Child_State < 1)? c.FULL:c.PART;\n\t\t\t} else {\n\t\t\t\tfullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) || notEffectByOtherNode ? c.FULL:c.PART) : ((node.check_Child_State < 1 || notEffectByOtherNode)? c.FULL:c.PART);\n\t\t\t}\n\t\t\tvar chkName = setting.check.chkStyle + \"_\" + (node[checkedKey] ? c.TRUE : c.FALSE) + \"_\" + fullStyle;\n\t\t\tchkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + \"_\" + c.FOCUS : chkName;\n\t\t\treturn consts.className.BUTTON + \" \" + c.DEFAULT + \" \" + chkName;\n\t\t},\n\t\trepairAllChk: function(setting, checked) {\n\t\t\tif (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) {\n\t\t\t\tvar checkedKey = setting.data.key.checked,\n\t\t\t\tchildKey = setting.data.key.children,\n\t\t\t\troot = data.getRoot(setting);\n\t\t\t\tfor (var i = 0, l = root[childKey].length; i<l ; i++) {\n\t\t\t\t\tvar node = root[childKey][i];\n\t\t\t\t\tif (node.nocheck !== true && node.chkDisabled !== true) {\n\t\t\t\t\t\tnode[checkedKey] = checked;\n\t\t\t\t\t}\n\t\t\t\t\tview.setSonNodeCheckBox(setting, node, checked);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\trepairChkClass: function(setting, node) {\n\t\t\tif (!node) return;\n\t\t\tdata.makeChkFlag(setting, node);\n\t\t\tif (node.nocheck !== true) {\n\t\t\t\tvar checkObj = $$(node, consts.id.CHECK, setting);\n\t\t\t\tview.setChkClass(setting, checkObj, node);\n\t\t\t}\n\t\t},\n\t\trepairParentChkClass: function(setting, node) {\n\t\t\tif (!node || !node.parentTId) return;\n\t\t\tvar pNode = node.getParentNode();\n\t\t\tview.repairChkClass(setting, pNode);\n\t\t\tview.repairParentChkClass(setting, pNode);\n\t\t},\n\t\trepairParentChkClassWithSelf: function(setting, node) {\n\t\t\tif (!node) return;\n\t\t\tvar childKey = setting.data.key.children;\n\t\t\tif (node[childKey] && node[childKey].length > 0) {\n\t\t\t\tview.repairParentChkClass(setting, node[childKey][0]);\n\t\t\t} else {\n\t\t\t\tview.repairParentChkClass(setting, node);\n\t\t\t}\n\t\t},\n\t\trepairSonChkDisabled: function(setting, node, chkDisabled, inherit) {\n\t\t\tif (!node) return;\n\t\t\tvar childKey = setting.data.key.children;\n\t\t\tif (node.chkDisabled != chkDisabled) {\n\t\t\t\tnode.chkDisabled = chkDisabled;\n\t\t\t}\n\t\t\tview.repairChkClass(setting, node);\n\t\t\tif (node[childKey] && inherit) {\n\t\t\t\tfor (var i = 0, l = node[childKey].length; i < l; i++) {\n\t\t\t\t\tvar sNode = node[childKey][i];\n\t\t\t\t\tview.repairSonChkDisabled(setting, sNode, chkDisabled, inherit);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\trepairParentChkDisabled: function(setting, node, chkDisabled, inherit) {\n\t\t\tif (!node) return;\n\t\t\tif (node.chkDisabled != chkDisabled && inherit) {\n\t\t\t\tnode.chkDisabled = chkDisabled;\n\t\t\t}\n\t\t\tview.repairChkClass(setting, node);\n\t\t\tview.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit);\n\t\t},\n\t\tsetChkClass: function(setting, obj, node) {\n\t\t\tif (!obj) return;\n\t\t\tif (node.nocheck === true) {\n\t\t\t\tobj.hide();\n\t\t\t} else {\n\t\t\t\tobj.show();\n\t\t\t}\n obj.attr('class', view.makeChkClass(setting, node));\n\t\t},\n\t\tsetParentNodeCheckBox: function(setting, node, value, srcNode) {\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tcheckedKey = setting.data.key.checked,\n\t\t\tcheckObj = $$(node, consts.id.CHECK, setting);\n\t\t\tif (!srcNode) srcNode = node;\n\t\t\tdata.makeChkFlag(setting, node);\n\t\t\tif (node.nocheck !== true && node.chkDisabled !== true) {\n\t\t\t\tnode[checkedKey] = value;\n\t\t\t\tview.setChkClass(setting, checkObj, node);\n\t\t\t\tif (setting.check.autoCheckTrigger && node != srcNode) {\n\t\t\t\t\tsetting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node.parentTId) {\n\t\t\t\tvar pSign = true;\n\t\t\t\tif (!value) {\n\t\t\t\t\tvar pNodes = node.getParentNode()[childKey];\n\t\t\t\t\tfor (var i = 0, l = pNodes.length; i < l; i++) {\n\t\t\t\t\t\tif ((pNodes[i].nocheck !== true && pNodes[i].chkDisabled !== true && pNodes[i][checkedKey])\n\t\t\t\t\t\t|| ((pNodes[i].nocheck === true || pNodes[i].chkDisabled === true) && pNodes[i].check_Child_State > 0)) {\n\t\t\t\t\t\t\tpSign = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (pSign) {\n\t\t\t\t\tview.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tsetSonNodeCheckBox: function(setting, node, value, srcNode) {\n\t\t\tif (!node) return;\n\t\t\tvar childKey = setting.data.key.children,\n\t\t\tcheckedKey = setting.data.key.checked,\n\t\t\tcheckObj = $$(node, consts.id.CHECK, setting);\n\t\t\tif (!srcNode) srcNode = node;\n\n\t\t\tvar hasDisable = false;\n\t\t\tif (node[childKey]) {\n\t\t\t\tfor (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) {\n\t\t\t\t\tvar sNode = node[childKey][i];\n\t\t\t\t\tview.setSonNodeCheckBox(setting, sNode, value, srcNode);\n\t\t\t\t\tif (sNode.chkDisabled === true) hasDisable = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (node != data.getRoot(setting) && node.chkDisabled !== true) {\n\t\t\t\tif (hasDisable && node.nocheck !== true) {\n\t\t\t\t\tdata.makeChkFlag(setting, node);\n\t\t\t\t}\n\t\t\t\tif (node.nocheck !== true && node.chkDisabled !== true) {\n\t\t\t\t\tnode[checkedKey] = value;\n\t\t\t\t\tif (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1;\n\t\t\t\t} else {\n\t\t\t\t\tnode.check_Child_State = -1;\n\t\t\t\t}\n\t\t\t\tview.setChkClass(setting, checkObj, node);\n\t\t\t\tif (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true && node.chkDisabled !== true) {\n\t\t\t\t\tsetting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\n\t_z = {\n\t\ttools: _tools,\n\t\tview: _view,\n\t\tevent: _event,\n\t\tdata: _data\n\t};\n\t$.extend(true, $.fn.zTree.consts, _consts);\n\t$.extend(true, $.fn.zTree._z, _z);\n\n\tvar zt = $.fn.zTree,\n\ttools = zt._z.tools,\n\tconsts = zt.consts,\n\tview = zt._z.view,\n\tdata = zt._z.data,\n\tevent = zt._z.event,\n\t$$ = tools.$;\n\n\tdata.exSetting(_setting);\n\tdata.addInitBind(_bindEvent);\n\tdata.addInitUnBind(_unbindEvent);\n\tdata.addInitCache(_initCache);\n\tdata.addInitNode(_initNode);\n\tdata.addInitProxy(_eventProxy, true);\n\tdata.addInitRoot(_initRoot);\n\tdata.addBeforeA(_beforeA);\n\tdata.addZTreeTools(_zTreeTools);\n\n\tvar _createNodes = view.createNodes;\n\tview.createNodes = function(setting, level, nodes, parentNode) {\n\t\tif (_createNodes) _createNodes.apply(view, arguments);\n\t\tif (!nodes) return;\n\t\tview.repairParentChkClassWithSelf(setting, parentNode);\n\t}\n\tvar _removeNode = view.removeNode;\n\tview.removeNode = function(setting, node) {\n\t\tvar parentNode = node.getParentNode();\n\t\tif (_removeNode) _removeNode.apply(view, arguments);\n\t\tif (!node || !parentNode) return;\n\t\tview.repairChkClass(setting, parentNode);\n\t\tview.repairParentChkClass(setting, parentNode);\n\t}\n\n\tvar _appendNodes = view.appendNodes;\n\tview.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) {\n\t\tvar html = \"\";\n\t\tif (_appendNodes) {\n\t\t\thtml = _appendNodes.apply(view, arguments);\n\t\t}\n\t\tif (parentNode) {\n\t\t\tdata.makeChkFlag(setting, parentNode);\n\t\t}\n\t\treturn html;\n\t}\n})(BI.jQuery);/**\n * 可以改变图标的button\n *\n * Created by GUY on 2016/2/2.\n *\n * @class BI.IconChangeButton\n * @extends BI.Single\n */\nBI.IconChangeButton = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n var conf = BI.IconChangeButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-icon-change-button\",\n iconCls: \"\",\n iconWidth: null,\n iconHeight: null,\n\n stopEvent: false,\n stopPropagation: false,\n selected: false,\n once: false, // 点击一次选中有效,再点无效\n forceSelected: false, // 点击即选中, 选中了就不会被取消\n forceNotSelected: false, // 无论怎么点击都不会被选中\n disableSelected: false, // 使能选中\n\n shadow: false,\n isShadowShowingOnSelected: false, // 选中状态下是否显示阴影\n trigger: null,\n handler: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.IconChangeButton.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.button = BI.createWidget({\n type: \"bi.icon_button\",\n element: this,\n cls: o.iconCls,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight,\n\n stopEvent: o.stopEvent,\n stopPropagation: o.stopPropagation,\n selected: o.selected,\n once: o.once,\n forceSelected: o.forceSelected,\n forceNotSelected: o.forceNotSelected,\n disableSelected: o.disableSelected,\n\n shadow: o.shadow,\n isShadowShowingOnSelected: o.isShadowShowingOnSelected,\n trigger: o.trigger,\n handler: o.handler\n });\n\n this.button.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.button.on(BI.IconButton.EVENT_CHANGE, function () {\n self.fireEvent(BI.IconChangeButton.EVENT_CHANGE, arguments);\n });\n },\n\n isSelected: function () {\n return this.button.isSelected();\n },\n\n setSelected: function (b) {\n this.button.setSelected(b);\n },\n\n setIcon: function (cls) {\n var o = this.options;\n if (o.iconCls !== cls) {\n this.element.removeClass(o.iconCls).addClass(cls);\n o.iconCls = cls;\n }\n }\n});\nBI.IconChangeButton.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_change_button\", BI.IconChangeButton);/**\n * 统一的trigger图标按钮\n *\n * Created by GUY on 2015/9/16.\n * @class BI.TriggerIconButton\n * @extends BI.IconButton\n */\nBI.TriggerIconButton = BI.inherit(BI.IconButton, {\n\n _defaultConfig: function () {\n var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-trigger-icon-button\",\n extraCls: \"pull-down-font\"\n });\n }\n});\nBI.TriggerIconButton.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;\nBI.shortcut(\"bi.trigger_icon_button\", BI.TriggerIconButton);/**\n * guy\n * @extends BI.Single\n * @type {*|void|Object}\n */\nBI.HalfIconButton = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n var conf = BI.HalfIconButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-half-icon-button check-half-select-icon\",\n height: 16,\n width: 16,\n iconWidth: 16,\n iconHeight: 16,\n selected: false\n });\n }\n});\nBI.HalfIconButton.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;\n\nBI.shortcut(\"bi.half_icon_button\", BI.HalfIconButton);/**\n * guy\n * @extends BI.Single\n * @type {*|void|Object}\n */\nBI.HalfButton = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n var conf = BI.HalfIconButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-half-button bi-high-light-border\",\n height: 14,\n width: 14,\n selected: false\n });\n },\n\n _init: function () {\n BI.HalfButton.superclass._init.apply(this, arguments);\n BI.createWidget({\n type: \"bi.center_adapt\",\n element: this.element,\n items: [{\n type: \"bi.layout\",\n cls: \"bi-high-light-background\",\n width: 8,\n height: 8\n }]\n });\n },\n\n doClick: function () {\n BI.HalfButton.superclass.doClick.apply(this, arguments);\n if(this.isValid()) {\n this.fireEvent(BI.HalfButton.EVENT_CHANGE);\n }\n }\n});\nBI.HalfButton.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.half_button\", BI.HalfButton);/**\n * guy\n * 复选框item\n * @type {*|void|Object}\n */\nBI.MultiSelectItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-multi-select-item\",\n height: 24,\n logic: {\n dynamic: false\n },\n iconWrapperWidth: 26\n });\n },\n _init: function () {\n BI.MultiSelectItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.checkbox\"\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n rgap: o.rgap,\n text: o.text,\n keyword: o.keyword,\n value: o.value,\n py: o.py\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self.setSelected(self.isSelected());\n }\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", {\n type: \"bi.center_adapt\",\n items: [this.checkbox],\n width: o.iconWrapperWidth\n }, this.text)\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.MultiSelectItem.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n if (this.isValid()) {\n this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n setSelected: function (v) {\n BI.MultiSelectItem.superclass.setSelected.apply(this, arguments);\n this.checkbox.setSelected(v);\n }\n});\nBI.MultiSelectItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_item\", BI.MultiSelectItem);/**\n * Created by GUY on 2016/2/2.\n *\n * @class BI.SingleSelectIconTextItem\n * @extends BI.BasicButton\n */\nBI.SingleSelectIconTextItem = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectIconTextItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-single-select-icon-text-item bi-list-item-active\",\n iconCls: \"\",\n height: 24\n });\n },\n _init: function () {\n BI.SingleSelectIconTextItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.text = BI.createWidget({\n type: \"bi.icon_text_item\",\n element: this,\n cls: o.iconCls,\n once: o.once,\n iconWrapperWidth: o.iconWrapperWidth,\n selected: o.selected,\n height: o.height,\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth,\n text: o.text,\n keyword: o.keyword,\n value: o.value,\n py: o.py\n });\n this.text.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n },\n\n isSelected: function () {\n return this.text.isSelected();\n },\n\n setSelected: function (b) {\n this.text.setSelected(b);\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.SingleSelectIconTextItem.superclass.doClick.apply(this, arguments);\n }\n});\n\nBI.shortcut(\"bi.single_select_icon_text_item\", BI.SingleSelectIconTextItem);BI.SingleSelectItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-single-select-item bi-list-item-active\",\n hgap: 10,\n height: 24,\n textAlign: \"left\"\n });\n },\n _init: function () {\n BI.SingleSelectItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.text = BI.createWidget({\n type: \"bi.label\",\n element: this,\n textAlign: o.textAlign,\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n keyword: o.keyword,\n value: o.value,\n title: o.title || o.text,\n warningTitle: o.warningTitle,\n py: o.py\n });\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.SingleSelectItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.SingleSelectItem.EVENT_CHANGE, this.isSelected(), this);\n }\n },\n\n setSelected: function (v) {\n BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);\n }\n});\n\nBI.SingleSelectItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_select_item\", BI.SingleSelectItem);/**\n * guy\n * 单选框item\n * @type {*|void|Object}\n */\nBI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectRadioItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-single-select-radio-item\",\n logic: {\n dynamic: false\n },\n hgap: 10,\n height: 24\n });\n },\n _init: function () {\n BI.SingleSelectRadioItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.radio = BI.createWidget({\n type: \"bi.radio\",\n once: o.once\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n keyword: o.keyword,\n value: o.value,\n py: o.py\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", {\n type: \"bi.center_adapt\",\n items: [this.radio],\n width: 16\n }, this.text)\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.SingleSelectRadioItem.superclass.doClick.apply(this, arguments);\n this.radio.setSelected(this.isSelected());\n if (this.isValid()) {\n this.fireEvent(BI.SingleSelectRadioItem.EVENT_CHANGE, this.isSelected(), this);\n }\n },\n\n setSelected: function (v) {\n BI.SingleSelectRadioItem.superclass.setSelected.apply(this, arguments);\n this.radio.setSelected(v);\n\n }\n});\n\nBI.SingleSelectRadioItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_select_radio_item\", BI.SingleSelectRadioItem);/**\n * Created by roy on 15/10/16.\n */\nBI.ArrowNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.ArrowNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-arrow-group-node bi-list-item\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n var self = this, o = this.options;\n BI.ArrowNode.superclass._init.apply(this, arguments);\n this.checkbox = BI.createWidget({\n type: \"bi.arrow_group_node_checkbox\"\n });\n\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self.setSelected(self.isSelected());\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 16,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.ArrowNode.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isOpened());\n },\n \n setText: function (text) {\n BI.ArrowNode.superclass.setText.apply(this, arguments);\n this.text.setText(text);\n },\n\n setOpened: function (v) {\n BI.ArrowNode.superclass.setOpened.apply(this, arguments);\n this.checkbox.setSelected(v);\n }\n});\n\nBI.shortcut(\"bi.arrow_group_node\", BI.ArrowNode);/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.FirstPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.FirstPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-first-plus-group-node bi-list-item\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.FirstPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.first_tree_node_checkbox\",\n stopPropagation: true\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.FirstPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.FirstPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.first_plus_group_node\", BI.FirstPlusGroupNode);/**\n * Created by User on 2016/3/31.\n */\n/**\n * > + icon + 文本\n * @class BI.IconArrowNode\n * @extends BI.NodeButton\n */\nBI.IconArrowNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.IconArrowNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-icon-arrow-node bi-list-item\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n open: false,\n height: 24,\n iconHeight: 12,\n iconWidth: 12,\n iconCls: \"\"\n });\n },\n _init: function () {\n BI.IconArrowNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.arrow_group_node_checkbox\",\n width: 24,\n stopPropagation: true\n });\n\n var icon = BI.createWidget({\n type: \"bi.icon_label\",\n width: 24,\n cls: o.iconCls,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 16,\n el: this.checkbox\n }, {\n width: 16,\n el: icon\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items,\n rgap: 5\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.IconArrowNode.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.IconArrowNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.icon_arrow_node\", BI.IconArrowNode);/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.LastPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.LastPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-last-plus-group-node bi-list-item\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.LastPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.last_tree_node_checkbox\",\n stopPropagation: true\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if(type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.LastPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.LastPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.last_plus_group_node\", BI.LastPlusGroupNode);/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.MidPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MidPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-mid-plus-group-node bi-list-item\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MidPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.mid_tree_node_checkbox\",\n stopPropagation: true\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.MidPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MidPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.mid_plus_group_node\", BI.MidPlusGroupNode);BI.MultiLayerIconArrowNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerIconArrowNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-icon-arrow-node bi-list-item\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n open: false,\n height: 24,\n iconHeight: 16,\n iconWidth: 16,\n iconCls: \"\"\n });\n },\n _init: function () {\n BI.MultiLayerIconArrowNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = BI.createWidget({\n type: \"bi.icon_arrow_node\",\n iconCls: o.iconCls,\n cls: \"bi-list-item-none\",\n id: o.id,\n pId: o.pId,\n open: o.open,\n height: o.height,\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n this.node.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.setSelected(self.isSelected());\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var items = [];\n BI.count(0, o.layer, function () {\n items.push({\n type: \"bi.layout\",\n width: 15,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 15),\n items: [items]\n });\n },\n\n isOnce: function () {\n return true;\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n isSelected: function () {\n return this.node.isSelected();\n },\n\n setSelected: function (b) {\n BI.MultiLayerIconArrowNode.superclass.setSelected.apply(this, arguments);\n this.node.setSelected(b);\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerIconArrowNode.superclass.setOpened.apply(this, arguments);\n this.node.setOpened(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_icon_arrow_node\", BI.MultiLayerIconArrowNode);\n/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.PlusGroupNode\n * @extends BI.NodeButton\n */\nBI.PlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.PlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-plus-group-node bi-list-item\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.PlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.tree_node_checkbox\"\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n py: o.py\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self.setSelected(self.isSelected());\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.PlusGroupNode.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.PlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (this.checkbox) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.plus_group_node\", BI.PlusGroupNode);/**\n * Created by Windy on 2018/2/1.\n */\nBI.Switch = BI.inherit(BI.BasicButton, {\n\n props: {\n extraCls: \"bi-switch\",\n height: 22,\n width: 44,\n logic: {\n dynamic: false\n }\n },\n\n render: function () {\n var self = this;\n return {\n type: \"bi.absolute\",\n ref: function () {\n self.layout = this;\n },\n items: [{\n el: {\n type: \"bi.text_button\",\n cls: \"circle-button bi-card\"\n },\n width: 18,\n height: 18,\n top: 2,\n left: this.options.selected ? 24 : 2\n }]\n };\n },\n\n setSelected: function (v) {\n BI.Switch.superclass.setSelected.apply(this, arguments);\n this.layout.attr(\"items\")[0].left = v ? 24 : 2;\n this.layout.resize();\n },\n\n doClick: function () {\n BI.Switch.superclass.doClick.apply(this, arguments);\n this.fireEvent(BI.Switch.EVENT_CHANGE);\n }\n});\nBI.Switch.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.switch\", BI.Switch);BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.FirstTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-first-tree-leaf-item bi-list-item-active\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n layer: 0,\n height: 24\n });\n },\n _init: function () {\n BI.FirstTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.checkbox\"\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self.setSelected(self.isSelected());\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? \"\" : {\n width: 12,\n el: {\n type: \"bi.layout\",\n cls: (o.pNode && o.pNode.isLastNode) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n }\n }), {\n width: 24,\n el: {\n type: \"bi.layout\",\n cls: \"first-line-conn-background\",\n width: 24,\n height: o.height\n }\n }, {\n el: this.text\n });\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.FirstTreeLeafItem.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n },\n\n setSelected: function (v) {\n BI.FirstTreeLeafItem.superclass.setSelected.apply(this, arguments);\n this.checkbox.setSelected(v);\n }\n});\n\nBI.shortcut(\"bi.first_tree_leaf_item\", BI.FirstTreeLeafItem);BI.IconTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.IconTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-icon-tree-leaf-item bi-list-item-active\",\n logic: {\n dynamic: false\n },\n height: 24,\n iconWidth: 16,\n iconHeight: 16,\n iconCls: \"\"\n });\n },\n\n _init: function () {\n BI.IconTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n var icon = BI.createWidget({\n type: \"bi.center_adapt\",\n width: 24,\n cls: o.iconCls,\n items: [{\n type: \"bi.icon\",\n width: o.iconWidth,\n height: o.iconHeight\n }]\n });\n\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 16,\n el: icon\n }, {\n el: this.text\n });\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items,\n hgap: 5\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.IconTreeLeafItem.superclass.doClick.apply(this, arguments);\n },\n\n setSelected: function (v) {\n BI.IconTreeLeafItem.superclass.setSelected.apply(this, arguments);\n }\n});\n\nBI.shortcut(\"bi.icon_tree_leaf_item\", BI.IconTreeLeafItem);BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.LastTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-last-tree-leaf-item bi-list-item-active\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n layer: 0,\n height: 24\n });\n },\n _init: function () {\n BI.LastTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.checkbox\"\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self.setSelected(self.isSelected());\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? \"\" : {\n width: 12,\n el: {\n type: \"bi.layout\",\n cls: (o.pNode && o.pNode.isLastNode) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n }\n }), {\n width: 24,\n el: {\n type: \"bi.layout\",\n cls: \"last-line-conn-background\",\n width: 24,\n height: o.height\n }\n }, {\n el: this.text\n });\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.LastTreeLeafItem.superclass.doClick.apply(this, arguments);\n // this.checkbox.setSelected(this.isSelected());\n },\n\n setSelected: function (v) {\n BI.LastTreeLeafItem.superclass.setSelected.apply(this, arguments);\n // this.checkbox.setSelected(v);\n }\n});\n\nBI.shortcut(\"bi.last_tree_leaf_item\", BI.LastTreeLeafItem);BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.MidTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-mid-tree-leaf-item bi-list-item-active\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n layer: 0,\n height: 24\n });\n },\n _init: function () {\n BI.MidTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.checkbox\"\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self.setSelected(self.isSelected());\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, ((o.layer === 0) ? \"\" : {\n width: 12,\n el: {\n type: \"bi.layout\",\n cls: (o.pNode && o.pNode.isLastNode) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n }\n }), {\n width: 24,\n el: {\n type: \"bi.layout\",\n cls: \"mid-line-conn-background\",\n width: 24,\n height: o.height\n }\n }, {\n el: this.text\n });\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.MidTreeLeafItem.superclass.doClick.apply(this, arguments);\n this.checkbox.setSelected(this.isSelected());\n },\n\n setSelected: function (v) {\n BI.MidTreeLeafItem.superclass.setSelected.apply(this, arguments);\n this.checkbox.setSelected(v);\n }\n});\n\nBI.shortcut(\"bi.mid_tree_leaf_item\", BI.MidTreeLeafItem);/**\n * @class BI.MultiLayerIconTreeLeafItem\n * @extends BI.BasicButton\n */\nBI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerIconTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-multilayer-icon-tree-leaf-item bi-list-item-active\",\n layer: 0,\n height: 24,\n iconCls: \"\",\n iconHeight: 16,\n iconWidth: 16\n });\n },\n _init: function () {\n BI.MultiLayerIconTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.item = BI.createWidget({\n type: \"bi.icon_tree_leaf_item\",\n cls: \"bi-list-item-none\",\n iconCls: o.iconCls,\n id: o.id,\n pId: o.pId,\n isFront: true,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight\n });\n this.item.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var items = [];\n BI.count(0, o.layer, function () {\n items.push({\n type: \"bi.layout\",\n width: 15,\n height: o.height\n });\n });\n items.push(this.item);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 15),\n items: [items]\n });\n },\n\n doRedMark: function () {\n this.item.doRedMark.apply(this.item, arguments);\n },\n\n unRedMark: function () {\n this.item.unRedMark.apply(this.item, arguments);\n },\n\n doHighLight: function () {\n this.item.doHighLight.apply(this.item, arguments);\n },\n\n unHighLight: function () {\n this.item.unHighLight.apply(this.item, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.MultiLayerIconTreeLeafItem.superclass.doClick.apply(this, arguments);\n this.item.setSelected(this.isSelected());\n },\n\n setSelected: function (v) {\n BI.MultiLayerIconTreeLeafItem.superclass.setSelected.apply(this, arguments);\n this.item.setSelected(v);\n },\n\n getValue: function () {\n return this.options.value;\n }\n});\n\nBI.shortcut(\"bi.multilayer_icon_tree_leaf_item\", BI.MultiLayerIconTreeLeafItem);\n/**\n * 树叶子节点\n * Created by GUY on 2015/9/6.\n * @class BI.TreeTextLeafItem\n * @extends BI.BasicButton\n */\nBI.TreeTextLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.TreeTextLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-tree-text-leaf-item bi-list-item-active\",\n id: \"\",\n pId: \"\",\n height: 24,\n hgap: 0,\n lgap: 0,\n rgap: 0\n });\n },\n _init: function () {\n BI.TreeTextLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n lgap: o.lgap,\n rgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n el: this.text\n }]\n });\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n }\n});\n\nBI.shortcut(\"bi.tree_text_leaf_item\", BI.TreeTextLeafItem);/**\n * 专门为calendar的视觉加的button,作为私有button,不能配置任何属性,也不要用这个玩意\n */\nBI.CalendarDateItem = BI.inherit(BI.BasicButton, {\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.text_item\",\n cls: \"bi-list-item-select\",\n textAlign: \"center\",\n whiteSpace: \"normal\",\n text: o.text,\n value: o.value,\n ref: function () {\n self.text = this;\n }\n },\n left: o.lgap,\n right: o.rgap,\n top: 0,\n bottom: 0\n }]\n };\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n setSelected: function (b) {\n BI.CalendarDateItem.superclass.setSelected.apply(this, arguments);\n this.text.setSelected(b);\n },\n\n getValue: function () {\n return this.text.getValue();\n }\n});\nBI.shortcut(\"bi.calendar_date_item\", BI.CalendarDateItem);/**\n * Created by GUY on 2015/8/28.\n * @class BI.Calendar\n * @extends BI.Widget\n */\nBI.Calendar = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.Calendar.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-calendar\",\n logic: {\n dynamic: false\n },\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n year: 2015,\n month: 8,\n day: 25\n });\n },\n\n _dateCreator: function (Y, M, D) {\n var self = this, o = this.options, log = {}, De = BI.getDate();\n var mins = o.min.match(/\\d+/g);\n var maxs = o.max.match(/\\d+/g);\n Y < (mins[0] | 0) && (Y = (mins[0] | 0));\n Y > (maxs[0] | 0) && (Y = (maxs[0] | 0));\n\n De.setFullYear(Y, M, D);\n log.ymd = [De.getFullYear(), De.getMonth(), De.getDate()];\n\n var MD = BI.Date._MD.slice(0);\n MD[1] = BI.isLeapYear(log.ymd[0]) ? 29 : 28;\n\n // 日期所在月第一天\n De.setFullYear(log.ymd[0], log.ymd[1], 1);\n // 是周几\n log.FDay = De.getDay();\n\n // 当前BI.StartOfWeek与周日对齐后的FDay是周几\n var offSetFDay = (7 - BI.StartOfWeek + log.FDay) % 7;\n\n // 当前月页第一天是几号\n log.PDay = MD[M === 0 ? 11 : M - 1] - offSetFDay + 1;\n log.NDay = 1;\n\n var items = [];\n BI.each(BI.range(42), function (i) {\n var td = {}, YY = log.ymd[0], MM = log.ymd[1] + 1, DD;\n // 上个月的日期\n if (i < offSetFDay) {\n td.lastMonth = true;\n DD = i + log.PDay;\n // 上一年\n MM === 1 && (YY -= 1);\n MM = MM === 1 ? 12 : MM - 1;\n } else if (i >= offSetFDay && i < offSetFDay + MD[log.ymd[1]]) {\n DD = i - offSetFDay + 1;\n if (i - offSetFDay + 1 === log.ymd[2]) {\n td.currentDay = true;\n }\n } else {\n td.nextMonth = true;\n DD = log.NDay++;\n MM === 12 && (YY += 1);\n MM = MM === 12 ? 1 : MM + 1;\n }\n if (BI.checkDateVoid(YY, MM, DD, mins, maxs)[0]) {\n td.disabled = true;\n }\n td.text = DD;\n items.push(td);\n });\n return items;\n },\n\n _init: function () {\n BI.Calendar.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var items = BI.map(this._getWeekLabel(), function (i, value) {\n return {\n type: \"bi.label\",\n height: 24,\n text: value\n };\n });\n var title = BI.createWidget({\n type: \"bi.button_group\",\n height: 44,\n items: items,\n layouts: [{\n type: \"bi.center\",\n hgap: 5,\n vgap: 10\n }]\n });\n\n this.days = BI.createWidget({\n type: \"bi.button_group\",\n items: BI.createItems(this._getItems(), {}),\n layouts: [BI.LogicFactory.createLogic(\"table\", BI.extend({}, o.logic, {\n columns: 7,\n rows: 6,\n columnSize: [1 / 7, 1 / 7, 1 / 7, 1 / 7, 1 / 7, 1 / 7, 1 / 7],\n rowSize: 24,\n vgap: 10\n }))]\n });\n this.days.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n BI.createWidget(BI.extend({\n element: this\n\n }, BI.LogicFactory.createLogic(\"vertical\", BI.extend({}, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"top\", title, this.days)\n }))));\n },\n\n _getWeekLabel: function () {\n return BI.map(BI.range(0, 7), function (idx, v) {\n return BI.Date._SDN[(v + BI.StartOfWeek) % 7];\n });\n },\n\n isFrontDate: function () {\n var o = this.options, c = this._const;\n var Y = o.year, M = o.month, De = BI.getDate(), day = De.getDay();\n Y = Y | 0;\n De.setFullYear(Y, M, 1);\n var newDate = BI.getOffsetDate(De, -1 * (day + 1));\n return !!BI.checkDateVoid(newDate.getFullYear(), newDate.getMonth(), newDate.getDate(), o.min, o.max)[0];\n },\n\n isFinalDate: function () {\n var o = this.options, c = this._const;\n var Y = o.year, M = o.month, De = BI.getDate(), day = De.getDay();\n Y = Y | 0;\n De.setFullYear(Y, M, 1);\n var newDate = BI.getOffsetDate(De, 42 - day);\n return !!BI.checkDateVoid(newDate.getFullYear(), newDate.getMonth(), newDate.getDate(), o.min, o.max)[0];\n },\n\n _getItems: function () {\n var o = this.options;\n var days = this._dateCreator(o.year, o.month - 1, o.day);\n var items = [];\n items.push(days.slice(0, 7));\n items.push(days.slice(7, 14));\n items.push(days.slice(14, 21));\n items.push(days.slice(21, 28));\n items.push(days.slice(28, 35));\n items.push(days.slice(35, 42));\n\n return BI.map(items, function (i, item) {\n return BI.map(item, function (j, td) {\n var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month);\n return BI.extend(td, {\n type: \"bi.calendar_date_item\",\n textAlign: \"center\",\n whiteSpace: \"normal\",\n once: false,\n forceSelected: true,\n height: 24,\n value: o.year + \"-\" + month + \"-\" + td.text,\n disabled: td.lastMonth || td.nextMonth || td.disabled,\n lgap: 5,\n rgap: 5\n // selected: td.currentDay\n });\n });\n });\n },\n\n _populate: function() {\n this.days.populate(this._getItems());\n },\n\n setMinDate: function (minDate) {\n var o = this.options;\n if (BI.isNotEmptyString(o.min)) {\n o.min = minDate;\n this._populate();\n }\n },\n\n setMaxDate: function (maxDate) {\n var o = this.options;\n if (BI.isNotEmptyString(o.max)) {\n o.max = maxDate;\n this._populate();\n }\n },\n\n setValue: function (ob) {\n this.days.setValue([ob.year + \"-\" + ob.month + \"-\" + ob.day]);\n },\n\n getValue: function () {\n var date = this.days.getValue()[0].match(/\\d+/g);\n return {\n year: date[0] | 0,\n month: date[1] | 0,\n day: date[2] | 0\n };\n }\n});\n\nBI.extend(BI.Calendar, {\n getPageByDateJSON: function (json) {\n var year = BI.getDate().getFullYear();\n var month = BI.getDate().getMonth();\n var page = (json.year - year) * 12;\n page += json.month - 1 - month;\n return page;\n },\n getDateJSONByPage: function (v) {\n var months = BI.getDate().getMonth();\n var page = v;\n\n // 对当前page做偏移,使到当前年初\n page = page + months;\n\n var year = BI.parseInt(page / 12);\n if(page < 0 && page % 12 !== 0) {\n year--;\n }\n var month = page >= 0 ? (page % 12) : ((12 + page % 12) % 12);\n return {\n year: BI.getDate().getFullYear() + year,\n month: month + 1\n };\n }\n});\n\nBI.shortcut(\"bi.calendar\", BI.Calendar);/**\n * Created by GUY on 2015/8/28.\n * @class BI.YearCalendar\n * @extends BI.Widget\n */\nBI.YearCalendar = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n var conf = BI.YearCalendar.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-year-calendar\",\n behaviors: {},\n logic: {\n dynamic: false\n },\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n year: null\n });\n },\n\n _yearCreator: function (Y) {\n var o = this.options;\n Y = Y | 0;\n var start = BI.YearCalendar.getStartYear(Y);\n var items = [];\n // 对于年控件来说,只要传入的minDate和maxDate的year区间包含v就是合法的\n var startDate = BI.parseDateTime(o.min, \"%Y-%X-%d\");\n var endDate = BI.parseDateTime(o.max, \"%Y-%X-%d\");\n BI.each(BI.range(BI.YearCalendar.INTERVAL), function (i) {\n var td = {};\n if (BI.checkDateVoid(start + i, 1, 1, BI.print(BI.getDate(startDate.getFullYear(), 0, 1), \"%Y-%X-%d\"), BI.print(BI.getDate(endDate.getFullYear(), 0, 1), \"%Y-%X-%d\"))[0]) {\n td.disabled = true;\n }\n td.text = start + i;\n items.push(td);\n });\n return items;\n },\n\n _init: function () {\n BI.YearCalendar.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.currentYear = BI.getDate().getFullYear();\n\n this.years = BI.createWidget({\n type: \"bi.button_group\",\n behaviors: o.behaviors,\n items: BI.createItems(this._getItems(), {}),\n layouts: [BI.LogicFactory.createLogic(\"table\", BI.extend({}, o.logic, {\n columns: 2,\n rows: 6,\n columnSize: [1 / 2, 1 / 2],\n rowSize: 24\n })), {\n type: \"bi.center_adapt\",\n vgap: 1\n }]\n });\n this.years.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n BI.createWidget(BI.extend({\n element: this\n\n }, BI.LogicFactory.createLogic(\"vertical\", BI.extend({}, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"top\", this.years)\n }))));\n },\n\n isFrontYear: function () {\n var o = this.options;\n var Y = o.year;\n Y = Y | 0;\n return !!BI.checkDateVoid(BI.YearCalendar.getStartYear(Y) - 1, 1, 1, o.min, o.max)[0];\n },\n\n isFinalYear: function () {\n var o = this.options, c = this._const;\n var Y = o.year;\n Y = Y | 0;\n return !!BI.checkDateVoid(BI.YearCalendar.getEndYear(Y) + 1, 1, 1, o.min, o.max)[0];\n },\n\n _getItems: function () {\n var o = this.options;\n var years = this._yearCreator(o.year || this.currentYear);\n\n // 纵向排列年\n var len = years.length, tyears = BI.makeArray(len, \"\");\n var map = [0, 6, 1, 7, 2, 8, 3, 9, 4, 10, 5, 11];\n BI.each(years, function (i, y) {\n tyears[i] = years[map[i]];\n });\n\n var items = [];\n items.push(tyears.slice(0, 2));\n items.push(tyears.slice(2, 4));\n items.push(tyears.slice(4, 6));\n items.push(tyears.slice(6, 8));\n items.push(tyears.slice(8, 10));\n items.push(tyears.slice(10, 12));\n\n return BI.map(items, function (i, item) {\n return BI.map(item, function (j, td) {\n return BI.extend(td, {\n type: \"bi.text_item\",\n cls: \"bi-list-item-select\",\n textAlign: \"center\",\n whiteSpace: \"normal\",\n once: false,\n forceSelected: true,\n height: 24,\n width: 45,\n value: td.text,\n disabled: td.disabled\n });\n });\n });\n },\n\n _populate: function () {\n this.years.populate(this._getItems());\n },\n\n setMinDate: function (minDate) {\n var o = this.options;\n if (BI.isNotEmptyString(o.min)) {\n o.min = minDate;\n this._populate();\n }\n },\n\n setMaxDate: function (maxDate) {\n var o = this.options;\n if (BI.isNotEmptyString(this.options.max)) {\n o.max = maxDate;\n this._populate();\n }\n },\n\n setValue: function (val) {\n this.years.setValue([val]);\n },\n\n getValue: function () {\n return this.years.getValue()[0];\n }\n});\n// 类方法\nBI.extend(BI.YearCalendar, {\n INTERVAL: 12,\n\n // 获取显示的第一年\n getStartYear: function (year) {\n var cur = BI.getDate().getFullYear();\n return year - ((year - cur + 3) % BI.YearCalendar.INTERVAL + 12) % BI.YearCalendar.INTERVAL;\n },\n\n getEndYear: function (year) {\n return BI.YearCalendar.getStartYear(year) + BI.YearCalendar.INTERVAL - 1;\n },\n\n getPageByYear: function (year) {\n var cur = BI.getDate().getFullYear();\n year = BI.YearCalendar.getStartYear(year);\n return (year - cur + 3) / BI.YearCalendar.INTERVAL;\n }\n});\n\nBI.shortcut(\"bi.year_calendar\", BI.YearCalendar);/**\n * Created by roy on 15/10/16.\n * 右与下箭头切换的树节点\n */\nBI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n return BI.extend(BI.ArrowTreeGroupNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-arrow-group-node-checkbox\"\n });\n },\n\n setSelected: function (v) {\n BI.ArrowTreeGroupNodeCheckbox.superclass.setSelected.apply(this, arguments);\n if(v) {\n this.element.removeClass(\"expander-right-font\").addClass(\"expander-down-font\");\n } else {\n this.element.removeClass(\"expander-down-font\").addClass(\"expander-right-font\");\n }\n }\n});\nBI.shortcut(\"bi.arrow_group_node_checkbox\", BI.ArrowTreeGroupNodeCheckbox);/**\n * 十字型的树节点\n * @class BI.CheckingMarkNode\n * @extends BI.IconButton\n */\nBI.CheckingMarkNode = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n return BI.extend( BI.CheckingMarkNode.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"check-mark-font\"\n });\n },\n _init: function () {\n BI.CheckingMarkNode.superclass._init.apply(this, arguments);\n this.setSelected(this.options.selected);\n\n },\n setSelected: function (v) {\n BI.CheckingMarkNode.superclass.setSelected.apply(this, arguments);\n if(v === true) {\n this.element.addClass(\"check-mark-font\");\n } else {\n this.element.removeClass(\"check-mark-font\");\n }\n }\n});\nBI.shortcut(\"bi.checking_mark_node\", BI.CheckingMarkNode);/**\n * 十字型的树节点\n * @class BI.FirstTreeNodeCheckbox\n * @extends BI.IconButton\n */\nBI.FirstTreeNodeCheckbox = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n return BI.extend( BI.FirstTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"tree-collapse-icon-type2\",\n iconWidth: 24,\n iconHeight: 24\n });\n },\n\n setSelected: function (v) {\n BI.FirstTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);\n if(v === true) {\n this.element.addClass(\"tree-expand-icon-type2\");\n } else {\n this.element.removeClass(\"tree-expand-icon-type2\");\n }\n }\n});\nBI.shortcut(\"bi.first_tree_node_checkbox\", BI.FirstTreeNodeCheckbox);/**\n * 十字型的树节点\n * @class BI.LastTreeNodeCheckbox\n * @extends BI.IconButton\n */\nBI.LastTreeNodeCheckbox = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n return BI.extend(BI.LastTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"tree-collapse-icon-type4\",\n iconWidth: 24,\n iconHeight: 24\n });\n },\n\n setSelected: function (v) {\n BI.LastTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);\n if (v === true) {\n this.element.addClass(\"tree-expand-icon-type4\");\n } else {\n this.element.removeClass(\"tree-expand-icon-type4\");\n }\n }\n});\nBI.shortcut(\"bi.last_tree_node_checkbox\", BI.LastTreeNodeCheckbox);/**\n * 十字型的树节点\n * @class BI.MidTreeNodeCheckbox\n * @extends BI.IconButton\n */\nBI.MidTreeNodeCheckbox = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n return BI.extend( BI.MidTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"tree-collapse-icon-type3\",\n iconWidth: 24,\n iconHeight: 24\n });\n },\n\n setSelected: function (v) {\n BI.MidTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);\n if(v === true) {\n this.element.addClass(\"tree-expand-icon-type3\");\n } else {\n this.element.removeClass(\"tree-expand-icon-type3\");\n }\n }\n});\nBI.shortcut(\"bi.mid_tree_node_checkbox\", BI.MidTreeNodeCheckbox);/**\n * 十字型的树节点\n * @class BI.TreeNodeCheckbox\n * @extends BI.IconButton\n */\nBI.TreeNodeCheckbox = BI.inherit(BI.IconButton, {\n _defaultConfig: function () {\n return BI.extend( BI.TreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"tree-collapse-icon-type1\",\n iconWidth: 24,\n iconHeight: 24\n });\n },\n\n setSelected: function (v) {\n BI.TreeNodeCheckbox.superclass.setSelected.apply(this, arguments);\n if(v) {\n this.element.addClass(\"tree-expand-icon-type1\");\n } else {\n this.element.removeClass(\"tree-expand-icon-type1\");\n }\n }\n});\nBI.shortcut(\"bi.tree_node_checkbox\", BI.TreeNodeCheckbox);/**\n * 自定义选色\n *\n * Created by GUY on 2015/11/17.\n * @class BI.CustomColorChooser\n * @extends BI.Widget\n */\nBI.CustomColorChooser = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.CustomColorChooser.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-custom-color-chooser\",\n width: 227,\n height: 245\n });\n },\n\n _init: function () {\n BI.CustomColorChooser.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget(o.editor, {\n type: \"bi.simple_color_picker_editor\"\n });\n this.editor.on(BI.ColorPickerEditor.EVENT_CHANGE, function () {\n self.setValue(this.getValue());\n });\n this.farbtastic = BI.createWidget({\n type: \"bi.farbtastic\"\n });\n this.farbtastic.on(BI.Farbtastic.EVENT_CHANGE, function () {\n self.setValue(this.getValue());\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.editor,\n left: 0,\n top: 0,\n right: 0\n }],\n height: 30\n }, {\n type: \"bi.absolute\",\n items: [{\n el: this.farbtastic,\n left: 15,\n right: 15,\n top: 7\n }],\n height: 215\n }]\n });\n },\n\n setValue: function (color) {\n this.editor.setValue(color);\n this.farbtastic.setValue(color);\n },\n\n getValue: function () {\n return this.editor.getValue();\n }\n});\nBI.CustomColorChooser.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.custom_color_chooser\", BI.CustomColorChooser);/**\n * 选色控件\n *\n * Created by GUY on 2015/11/17.\n * @class BI.ColorChooser\n * @extends BI.Widget\n */\nBI.ColorChooser = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.ColorChooser.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-color-chooser\",\n value: \"\",\n height: 24\n });\n },\n\n _init: function () {\n BI.ColorChooser.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n element: this,\n container: o.container,\n adjustLength: 1,\n isNeedAdjustWidth: false,\n isNeedAdjustHeight: false,\n el: BI.extend({\n type: o.width <= 24 ? \"bi.color_chooser_trigger\" : \"bi.long_color_chooser_trigger\",\n ref: function (_ref) {\n self.trigger = _ref;\n },\n width: o.width - 2,\n height: o.height - 2\n }, o.el),\n popup: {\n el: BI.extend({\n type: \"bi.color_chooser_popup\",\n ref: function (_ref) {\n self.colorPicker = _ref;\n },\n listeners: [{\n eventName: BI.ColorChooserPopup.EVENT_VALUE_CHANGE,\n action: function () {\n fn();\n if (!self._isRGBColor(self.colorPicker.getValue())) {\n self.combo.hideView();\n }\n }\n }, {\n eventName: BI.ColorChooserPopup.EVENT_CHANGE,\n action: function () {\n fn();\n self.combo.hideView();\n }\n }]\n }, o.popup),\n width: 230\n },\n value: o.value\n });\n\n var fn = function () {\n var color = self.colorPicker.getValue();\n self.trigger.setValue(color);\n };\n\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n self.fireEvent(BI.ColorChooser.EVENT_CHANGE, arguments);\n });\n },\n\n _isRGBColor: function (color) {\n return BI.isNotEmptyString(color) && color !== \"transparent\";\n },\n\n isViewVisible: function () {\n return this.combo.isViewVisible();\n },\n\n hideView: function () {\n this.combo.hideView();\n },\n\n showView: function () {\n this.combo.showView();\n },\n\n setValue: function (color) {\n this.combo.setValue(color);\n },\n\n getValue: function () {\n return this.combo.getValue();\n }\n});\nBI.ColorChooser.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.color_chooser\", BI.ColorChooser);/**\n * 选色控件\n *\n * Created by GUY on 2015/11/17.\n * @class BI.ColorChooserPopup\n * @extends BI.Widget\n */\nBI.ColorChooserPopup = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-color-chooser-popup\",\n width: 230,\n height: 145,\n simple: false // 简单模式, popup中没有自动和透明\n },\n\n render: function () {\n var self = this, o = this.options;\n this.colorEditor = BI.createWidget(o.editor, {\n type: o.simple ? \"bi.simple_color_picker_editor\" : \"bi.color_picker_editor\",\n value: o.value,\n cls: \"bi-header-background bi-border-bottom\",\n height: 30\n });\n\n this.colorEditor.on(BI.ColorPickerEditor.EVENT_CHANGE, function () {\n self.setValue(this.getValue());\n self._dealStoreColors();\n self.fireEvent(BI.ColorChooserPopup.EVENT_VALUE_CHANGE, arguments);\n });\n\n this.storeColors = BI.createWidget({\n type: \"bi.color_picker\",\n cls: \"bi-border-bottom bi-border-right\",\n items: [this._digestStoreColors(this._getStoreColors())],\n width: 210,\n height: 24,\n value: o.value\n });\n this.storeColors.on(BI.ColorPicker.EVENT_CHANGE, function () {\n self.setValue(this.getValue()[0]);\n self._dealStoreColors();\n self.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE, arguments);\n });\n\n this.colorPicker = BI.createWidget({\n type: \"bi.color_picker\",\n width: 210,\n height: 50,\n value: o.value\n });\n\n this.colorPicker.on(BI.ColorPicker.EVENT_CHANGE, function () {\n self.setValue(this.getValue()[0]);\n self._dealStoreColors();\n self.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE, arguments);\n });\n\n this.customColorChooser = BI.createWidget({\n type: \"bi.custom_color_chooser\",\n editor: o.editor\n });\n\n var panel = BI.createWidget({\n type: \"bi.popup_panel\",\n buttons: [BI.i18nText(\"BI-Basic_Cancel\"), BI.i18nText(\"BI-Basic_Save\")],\n title: BI.i18nText(\"BI-Custom_Color\"),\n el: this.customColorChooser,\n stopPropagation: false,\n bgap: -1,\n rgap: 1,\n lgap: 1,\n minWidth: 227\n });\n\n this.more = BI.createWidget({\n type: \"bi.combo\",\n cls: \"bi-border-top\",\n container: null,\n direction: \"right,top\",\n isNeedAdjustHeight: false,\n el: {\n type: \"bi.text_item\",\n cls: \"color-chooser-popup-more bi-list-item\",\n textAlign: \"center\",\n height: 24,\n textLgap: 10,\n text: BI.i18nText(\"BI-Basic_More\") + \"...\"\n },\n popup: panel\n });\n\n this.more.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () {\n self.customColorChooser.setValue(self.getValue());\n });\n panel.on(BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON, function (index) {\n switch (index) {\n case 0:\n self.more.hideView();\n break;\n case 1:\n self.setValue(self.customColorChooser.getValue());\n self._dealStoreColors();\n self.more.hideView();\n self.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE, arguments);\n break;\n }\n });\n\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.vtape\",\n items: [this.colorEditor, {\n el: {\n type: \"bi.absolute\",\n items: [{\n el: this.storeColors,\n left: 10,\n right: 10,\n top: 5\n }]\n },\n height: 29\n }, {\n el: {\n type: \"bi.absolute\",\n items: [{\n el: this.colorPicker,\n left: 10,\n right: 10,\n top: 5,\n bottom: 5\n }]\n },\n height: 60\n }, {\n el: this.more,\n height: 24\n }]\n },\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.layout\",\n cls: \"disable-mask\",\n invisible: !o.disabled,\n ref: function () {\n self.mask = this;\n }\n },\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n };\n },\n\n mounted: function () {\n var self = this;\n var o = this.options;\n if (BI.isNotNull(o.value)) {\n this.setValue(o.value);\n }\n },\n\n _setEnable: function (enable) {\n BI.ColorChooserPopup.superclass._setEnable.apply(this, arguments);\n this.mask.setVisible(!enable);\n },\n\n _dealStoreColors: function () {\n var color = this.getValue();\n var colors = this._getStoreColors();\n var que = new BI.Queue(8);\n que.fromArray(colors);\n que.remove(color);\n que.unshift(color);\n var array = que.toArray();\n BI.Cache.setItem(\"colors\", BI.array2String(array));\n this.setStoreColors(array);\n },\n\n _digestStoreColors: function (colors) {\n var items = BI.map(colors, function (i, color) {\n return {\n value: color\n };\n });\n BI.count(colors.length, 8, function (i) {\n items.push({\n value: \"\",\n disabled: true\n });\n });\n return items;\n },\n\n _getStoreColors: function() {\n var self = this, o = this.options;\n var colorsArray = BI.string2Array(BI.Cache.getItem(\"colors\") || \"\");\n return BI.filter(colorsArray, function (idx, color) {\n return o.simple ? self._isRGBColor(color) : true;\n });\n },\n\n _isRGBColor: function (color) {\n return BI.isNotEmptyString(color) && color !== \"transparent\";\n },\n\n setStoreColors: function (colors) {\n if (BI.isArray(colors)) {\n this.storeColors.populate([this._digestStoreColors(colors)]);\n }\n },\n\n setValue: function (color) {\n this.colorEditor.setValue(color);\n this.colorPicker.setValue(color);\n this.storeColors.setValue(color);\n },\n\n getValue: function () {\n return this.colorEditor.getValue();\n }\n});\nBI.ColorChooserPopup.EVENT_VALUE_CHANGE = \"EVENT_VALUE_CHANGE\";\nBI.ColorChooserPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.color_chooser_popup\", BI.ColorChooserPopup);/**\n * 选色控件\n *\n * Created by GUY on 2015/11/17.\n * @class BI.SimpleColorChooserPopup\n * @extends BI.Widget\n */\nBI.SimpleColorChooserPopup = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SimpleColorChooserPopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-color-chooser-popup\"\n });\n },\n\n _init: function () {\n BI.SimpleColorChooserPopup.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.popup = BI.createWidget({\n type: \"bi.color_chooser_popup\",\n value: o.value,\n element: this,\n simple: true // 是否有自动\n });\n this.popup.on(BI.ColorChooserPopup.EVENT_CHANGE, function () {\n self.fireEvent(BI.SimpleColorChooserPopup.EVENT_CHANGE, arguments);\n });\n this.popup.on(BI.ColorChooserPopup.EVENT_VALUE_CHANGE, function () {\n self.fireEvent(BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE, arguments);\n });\n },\n\n setStoreColors: function (colors) {\n this.popup.setStoreColors(colors);\n },\n\n setValue: function (color) {\n this.popup.setValue(color);\n },\n\n getValue: function () {\n return this.popup.getValue();\n }\n});\nBI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE = \"EVENT_VALUE_CHANGE\";\nBI.SimpleColorChooserPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.simple_color_chooser_popup\", BI.SimpleColorChooserPopup);/**\n * 简单选色控件,没有自动和透明\n *\n * Created by GUY on 2015/11/17.\n * @class BI.SimpleColorChooser\n * @extends BI.Widget\n */\nBI.SimpleColorChooser = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SimpleColorChooser.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-simple-color-chooser\",\n value: \"#ffffff\"\n });\n },\n\n _init: function () {\n BI.SimpleColorChooser.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.combo = BI.createWidget({\n type: \"bi.color_chooser\",\n element: this,\n container: o.container,\n value: o.value,\n width: o.width,\n height: o.height,\n popup: {\n type: \"bi.simple_color_chooser_popup\"\n }\n });\n this.combo.on(BI.ColorChooser.EVENT_CHANGE, function () {\n self.fireEvent(BI.SimpleColorChooser.EVENT_CHANGE, arguments);\n });\n },\n\n isViewVisible: function () {\n return this.combo.isViewVisible();\n },\n\n hideView: function () {\n this.combo.hideView();\n },\n\n showView: function () {\n this.combo.showView();\n },\n\n setValue: function (color) {\n this.combo.setValue(color);\n },\n\n getValue: function () {\n return this.combo.getValue();\n }\n});\nBI.SimpleColorChooser.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.simple_color_chooser\", BI.SimpleColorChooser);/**\n * 选色控件\n *\n * Created by GUY on 2015/11/17.\n * @class BI.ColorChooserTrigger\n * @extends BI.Trigger\n */\nBI.ColorChooserTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n var conf = BI.ColorChooserTrigger.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-color-chooser-trigger bi-border\",\n height: 22\n });\n },\n\n _init: function () {\n BI.ColorChooserTrigger.superclass._init.apply(this, arguments);\n this.colorContainer = BI.createWidget({\n type: \"bi.layout\",\n cls: \"color-chooser-trigger-content\" + (BI.isIE9Below && BI.isIE9Below() ? \" hack\" : \"\")\n });\n\n var down = BI.createWidget({\n type: \"bi.icon_button\",\n disableSelected: true,\n cls: \"icon-combo-down-icon trigger-triangle-font icon-size-12\",\n width: 12,\n height: 8\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.colorContainer,\n left: 3,\n right: 3,\n top: 3,\n bottom: 3\n }, {\n el: down,\n right: -1,\n bottom: 1\n }]\n });\n if (BI.isNotNull(this.options.value)) {\n this.setValue(this.options.value);\n }\n },\n\n setValue: function (color) {\n BI.ColorChooserTrigger.superclass.setValue.apply(this, arguments);\n if (color === \"\") {\n this.colorContainer.element.css(\"background-color\", \"\").removeClass(\"trans-color-background\").addClass(\"auto-color-background\");\n } else if (color === \"transparent\") {\n this.colorContainer.element.css(\"background-color\", \"\").removeClass(\"auto-color-background\").addClass(\"trans-color-background\");\n } else {\n this.colorContainer.element.css({\"background-color\": color}).removeClass(\"auto-color-background\").removeClass(\"trans-color-background\");\n }\n }\n});\nBI.ColorChooserTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.color_chooser_trigger\", BI.ColorChooserTrigger);/**\n * 选色控件\n *\n * Created by GUY on 2015/11/17.\n * @class BI.LongColorChooserTrigger\n * @extends BI.Trigger\n */\nBI.LongColorChooserTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n var conf = BI.LongColorChooserTrigger.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-color-chooser-trigger bi-border\",\n height: 22\n });\n },\n\n _init: function () {\n BI.LongColorChooserTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.colorContainer = BI.createWidget({\n type: \"bi.htape\",\n cls: \"color-chooser-trigger-content\",\n items: [{\n type: \"bi.icon_change_button\",\n ref: function (_ref) {\n self.changeIcon = _ref;\n },\n disableSelected: true,\n iconCls: \"auto-color-icon\",\n width: 24,\n iconWidth: 16,\n iconHeight: 16\n }, {\n el: {\n type: \"bi.label\",\n ref: function (_ref) {\n self.label = _ref;\n },\n textAlign: \"left\",\n hgap: 5,\n height: 18,\n text: BI.i18nText(\"BI-Basic_Auto\")\n }\n }]\n });\n\n var down = BI.createWidget({\n type: \"bi.icon_button\",\n disableSelected: true,\n cls: \"icon-combo-down-icon trigger-triangle-font icon-size-12\",\n width: 12,\n height: 8\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.colorContainer,\n left: 3,\n right: 3,\n top: 3,\n bottom: 3\n }, {\n el: down,\n right: 3,\n bottom: 3\n }]\n });\n if (this.options.value) {\n this.setValue(this.options.value);\n }\n },\n\n setValue: function (color) {\n BI.LongColorChooserTrigger.superclass.setValue.apply(this, arguments);\n if (color === \"\") {\n this.colorContainer.element.css(\"background-color\", \"\");\n this.changeIcon.setVisible(true);\n this.label.setVisible(true);\n this.changeIcon.setIcon(\"auto-color-icon\");\n this.label.setText(BI.i18nText(\"BI-Basic_Auto\"));\n } else if (color === \"transparent\") {\n this.colorContainer.element.css(\"background-color\", \"\");\n this.changeIcon.setVisible(true);\n this.label.setVisible(true);\n this.changeIcon.setIcon(\"trans-color-icon\");\n this.label.setText(BI.i18nText(\"BI-Transparent_Color\"));\n } else {\n this.colorContainer.element.css({\"background-color\": color});\n this.changeIcon.setVisible(false);\n this.label.setVisible(false);\n }\n }\n});\nBI.LongColorChooserTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.long_color_chooser_trigger\", BI.LongColorChooserTrigger);/**\n * 简单选色控件按钮\n *\n * Created by GUY on 2015/11/16.\n * @class BI.ColorPickerButton\n * @extends BI.BasicButton\n */\nBI.ColorPickerButton = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.ColorPickerButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-color-picker-button bi-background bi-border-top bi-border-left\"\n });\n },\n\n _init: function () {\n BI.ColorPickerButton.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (o.value) {\n this.element.css(\"background-color\", o.value);\n var name = this.getName();\n this.element.hover(function () {\n self._createMask();\n if (self.isEnabled()) {\n BI.Maskers.show(name);\n }\n }, function () {\n if (!self.isSelected()) {\n BI.Maskers.hide(name);\n }\n });\n }\n },\n\n _createMask: function () {\n var o = this.options, name = this.getName();\n if (this.isEnabled() && !BI.Maskers.has(name)) {\n var w = BI.Maskers.make(name, this, {\n offset: {\n left: -1,\n top: -1,\n right: -1,\n bottom: -1\n }\n });\n w.element.addClass(\"color-picker-button-mask\").css(\"background-color\", o.value);\n }\n },\n\n setSelected: function (b) {\n BI.ColorPickerButton.superclass.setSelected.apply(this, arguments);\n if (b) {\n this._createMask();\n }\n BI.Maskers[b ? \"show\" : \"hide\"](this.getName());\n }\n});\nBI.ColorPickerButton.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.color_picker_button\", BI.ColorPickerButton);/**\n * 简单选色控件\n *\n * Created by GUY on 2015/11/16.\n * @class BI.ColorPicker\n * @extends BI.Widget\n */\nBI.ColorPicker = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.ColorPicker.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-color-picker\",\n items: null\n });\n },\n\n _items: [\n [{\n value: \"#ffffff\"\n }, {\n value: \"#f2f2f2\"\n }, {\n value: \"#e5e5e5\"\n }, {\n value: \"#d9d9d9\"\n }, {\n value: \"#cccccc\"\n }, {\n value: \"#bfbfbf\"\n }, {\n value: \"#b2b2b2\"\n }, {\n value: \"#a6a6a6\"\n }, {\n value: \"#999999\"\n }, {\n value: \"#8c8c8c\"\n }, {\n value: \"#808080\"\n }, {\n value: \"#737373\"\n }, {\n value: \"#666666\"\n }, {\n value: \"#4d4d4d\"\n }, {\n value: \"#333333\"\n }, {\n value: \"#000000\"\n }],\n [{\n value: \"#d8b5a6\"\n }, {\n value: \"#ff9e9a\"\n }, {\n value: \"#ffc17d\"\n }, {\n value: \"#f5e56b\"\n }, {\n value: \"#d8e698\"\n }, {\n value: \"#e0ebaf\"\n }, {\n value: \"#c3d825\"\n }, {\n value: \"#bbe2e7\"\n }, {\n value: \"#85d3cd\"\n }, {\n value: \"#bde1e6\"\n }, {\n value: \"#a0d8ef\"\n }, {\n value: \"#89c3eb\"\n }, {\n value: \"#bbc8e6\"\n }, {\n value: \"#bbbcde\"\n }, {\n value: \"#d6b4cc\"\n }, {\n value: \"#fbc0d3\"\n }],\n [{\n value: \"#bb9581\"\n }, {\n value: \"#f37d79\"\n }, {\n value: \"#fba74f\"\n }, {\n value: \"#ffdb4f\"\n }, {\n value: \"#c7dc68\"\n }, {\n value: \"#b0ca71\"\n }, {\n value: \"#99ab4e\"\n }, {\n value: \"#84b9cb\"\n }, {\n value: \"#00a3af\"\n }, {\n value: \"#2ca9e1\"\n }, {\n value: \"#0095d9\"\n }, {\n value: \"#4c6cb3\"\n }, {\n value: \"#8491c3\"\n }, {\n value: \"#a59aca\"\n }, {\n value: \"#cc7eb1\"\n }, {\n value: \"#e89bb4\"\n }],\n [{\n value: \"#9d775f\"\n }, {\n value: \"#dd4b4b\"\n }, {\n value: \"#ef8b07\"\n }, {\n value: \"#fcc800\"\n }, {\n value: \"#aacf53\"\n }, {\n value: \"#82ae46\"\n }, {\n value: \"#69821b\"\n }, {\n value: \"#59b9c6\"\n }, {\n value: \"#2a83a2\"\n }, {\n value: \"#007bbb\"\n }, {\n value: \"#19448e\"\n }, {\n value: \"#274a78\"\n }, {\n value: \"#4a488e\"\n }, {\n value: \"#7058a3\"\n }, {\n value: \"#884898\"\n }, {\n value: \"#d47596\"\n }]\n ],\n\n _init: function () {\n BI.ColorPicker.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.colors = BI.createWidget({\n type: \"bi.button_group\",\n element: this,\n items: BI.createItems(o.items || this._items, {\n type: \"bi.color_picker_button\",\n once: false\n }),\n layouts: [{\n type: \"bi.grid\"\n }],\n value: o.value\n });\n this.colors.on(BI.ButtonGroup.EVENT_CHANGE, function () {\n self.fireEvent(BI.ColorPicker.EVENT_CHANGE, arguments);\n });\n },\n\n populate: function (items) {\n var args = [].slice.call(arguments);\n args[0] = BI.createItems(items, {\n type: \"bi.color_picker_button\",\n once: false\n });\n this.colors.populate.apply(this.colors, args);\n },\n\n setValue: function (color) {\n this.colors.setValue(color);\n },\n\n getValue: function () {\n return this.colors.getValue();\n }\n});\nBI.ColorPicker.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.color_picker\", BI.ColorPicker);/**\n * 简单选色控件\n *\n * Created by GUY on 2015/11/16.\n * @class BI.ColorPickerEditor\n * @extends BI.Widget\n */\nBI.ColorPickerEditor = BI.inherit(BI.Widget, {\n\n constants: {\n REB_WIDTH: 32\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.ColorPickerEditor.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-color-picker-editor\",\n // width: 200,\n height: 30\n });\n },\n\n _init: function () {\n BI.ColorPickerEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this.constants;\n this.storeValue = {};\n this.colorShow = BI.createWidget({\n type: \"bi.layout\",\n cls: \"color-picker-editor-display bi-card bi-border\",\n height: 16,\n width: 16\n });\n var RGB = BI.createWidgets(BI.createItems([{text: \"R\"}, {text: \"G\"}, {text: \"B\"}], {\n type: \"bi.label\",\n cls: \"color-picker-editor-label\",\n width: 20,\n height: 20\n }));\n\n var checker = function (v) {\n return BI.isNumeric(v) && (v | 0) >= 0 && (v | 0) <= 255;\n };\n var Ws = BI.createWidgets([{}, {}, {}], {\n type: \"bi.small_text_editor\",\n cls: \"color-picker-editor-input\",\n validationChecker: checker,\n errorText: BI.i18nText(\"BI-Color_Picker_Error_Text\"),\n allowBlank: true,\n value: 255,\n width: c.REB_WIDTH,\n height: 20\n });\n BI.each(Ws, function (i, w) {\n w.on(BI.TextEditor.EVENT_CHANGE, function () {\n self._checkEditors();\n if (checker(self.storeValue.r) && checker(self.storeValue.g) && checker(self.storeValue.b)) {\n self.colorShow.element.css(\"background-color\", self.getValue());\n self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);\n }\n });\n });\n this.R = Ws[0];\n this.G = Ws[1];\n this.B = Ws[2];\n\n this.none = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"auto-color-icon\",\n width: 16,\n height: 16,\n iconWidth: 16,\n iconHeight: 16,\n title: BI.i18nText(\"BI-Basic_Auto\")\n });\n this.none.on(BI.IconButton.EVENT_CHANGE, function () {\n if (this.isSelected()) {\n self.lastColor = self.getValue();\n self.setValue(\"\");\n } else {\n self.setValue(self.lastColor || \"#ffffff\");\n }\n if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) || self._isEmptyRGB()) {\n self.colorShow.element.css(\"background-color\", self.getValue());\n self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);\n }\n });\n\n this.transparent = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"trans-color-icon\",\n width: 16,\n height: 16,\n iconWidth: 16,\n iconHeight: 16,\n title: BI.i18nText(\"BI-Transparent_Color\")\n });\n this.transparent.on(BI.IconButton.EVENT_CHANGE, function () {\n if (this.isSelected()) {\n self.lastColor = self.getValue();\n self.setValue(\"transparent\");\n } else {\n if (self.lastColor === \"transparent\") {\n self.lastColor = \"\";\n }\n self.setValue(self.lastColor || \"#ffffff\");\n }\n if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) ||\n self._isEmptyRGB()) {\n self.colorShow.element.css(\"background-color\", self.getValue());\n self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);\n }\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.vertical_adapt\",\n items: [{\n el: this.colorShow,\n width: 16\n }, {\n el: RGB[0],\n width: 20\n }, {\n el: this.R,\n width: c.REB_WIDTH\n }, {\n el: RGB[1],\n width: 20\n }, {\n el: this.G,\n width: c.REB_WIDTH\n }, {\n el: RGB[2],\n width: 20\n }, {\n el: this.B,\n width: c.REB_WIDTH\n }, {\n el: this.transparent,\n width: 16,\n lgap: 5\n }, {\n el: this.none,\n width: 16,\n lgap: 5\n }]\n },\n left: 10,\n right: 10,\n top: 0,\n bottom: 0\n }]\n });\n },\n\n _checkEditors: function () {\n if(BI.isEmptyString(this.R.getValue())) {\n this.R.setValue(0);\n }\n if(BI.isEmptyString(this.G.getValue())) {\n this.G.setValue(0);\n }\n if(BI.isEmptyString(this.B.getValue())) {\n this.B.setValue(0);\n }\n this.storeValue = {\n r: this.R.getValue() || 0,\n g: this.G.getValue() || 0,\n b: this.B.getValue() || 0\n };\n },\n\n _isEmptyRGB: function () {\n return BI.isEmptyString(this.storeValue.r) && BI.isEmptyString(this.storeValue.g) && BI.isEmptyString(this.storeValue.b);\n },\n\n _showPreColor: function (color) {\n if (color === \"\") {\n this.colorShow.element.css(\"background-color\", \"\").removeClass(\"trans-color-background\").addClass(\"auto-color-normal-background\");\n } else if (color === \"transparent\") {\n this.colorShow.element.css(\"background-color\", \"\").removeClass(\"auto-color-normal-background\").addClass(\"trans-color-background\");\n } else {\n this.colorShow.element.css({\"background-color\": color}).removeClass(\"auto-color-normal-background\").removeClass(\"trans-color-background\");\n }\n },\n\n _setEnable: function (enable) {\n BI.ColorPickerEditor.superclass._setEnable.apply(this, arguments);\n if (enable === true) {\n this.element.removeClass(\"base-disabled disabled\");\n } else if (enable === false) {\n this.element.addClass(\"base-disabled disabled\");\n }\n },\n\n setValue: function (color) {\n if (color === \"transparent\") {\n this.transparent.setSelected(true);\n this.none.setSelected(false);\n this._showPreColor(\"transparent\");\n this.R.setValue(\"\");\n this.G.setValue(\"\");\n this.B.setValue(\"\");\n this.storeValue = {\n r: \"\",\n g: \"\",\n b: \"\"\n };\n return;\n }\n if (!color) {\n color = \"\";\n this.none.setSelected(true);\n } else {\n this.none.setSelected(false);\n }\n this.transparent.setSelected(false);\n this._showPreColor(color);\n var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color));\n this.storeValue = {\n r: BI.isNull(json.r) ? \"\" : json.r,\n g: BI.isNull(json.r) ? \"\" : json.g,\n b: BI.isNull(json.r) ? \"\" : json.b\n };\n this.R.setValue(this.storeValue.r);\n this.G.setValue(this.storeValue.g);\n this.B.setValue(this.storeValue.b);\n },\n\n getValue: function () {\n if (this._isEmptyRGB() && this.transparent.isSelected()) {\n return \"transparent\";\n }\n return BI.DOM.rgb2hex(BI.DOM.json2rgb({\n r: this.storeValue.r,\n g: this.storeValue.g,\n b: this.storeValue.b\n }));\n }\n});\nBI.ColorPickerEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.color_picker_editor\", BI.ColorPickerEditor);/**\n * 简单选色控件\n *\n * Created by GUY on 2015/11/16.\n * @class BI.SimpleColorPickerEditor\n * @extends BI.Widget\n */\nBI.SimpleColorPickerEditor = BI.inherit(BI.Widget, {\n\n constants: {\n REB_WIDTH: 32\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.SimpleColorPickerEditor.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-color-picker-editor\",\n // width: 200,\n height: 30\n });\n },\n\n _init: function () {\n BI.SimpleColorPickerEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this.constants;\n this.colorShow = BI.createWidget({\n type: \"bi.layout\",\n cls: \"color-picker-editor-display bi-card bi-border\",\n height: 16,\n width: 16\n });\n var RGB = BI.createWidgets(BI.createItems([{text: \"R\"}, {text: \"G\"}, {text: \"B\"}], {\n type: \"bi.label\",\n cls: \"color-picker-editor-label\",\n width: 20,\n height: 20\n }));\n\n var checker = function (v) {\n return BI.isNumeric(v) && (v | 0) >= 0 && (v | 0) <= 255;\n };\n var Ws = BI.createWidgets([{}, {}, {}], {\n type: \"bi.small_text_editor\",\n cls: \"color-picker-editor-input\",\n validationChecker: checker,\n errorText: BI.i18nText(\"BI-Color_Picker_Error_Text\"),\n allowBlank: true,\n value: 255,\n width: c.REB_WIDTH,\n height: 20\n });\n BI.each(Ws, function (i, w) {\n w.on(BI.TextEditor.EVENT_CHANGE, function () {\n self._checkEditors();\n if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {\n self.colorShow.element.css(\"background-color\", self.getValue());\n self.fireEvent(BI.SimpleColorPickerEditor.EVENT_CHANGE);\n }\n });\n });\n this.R = Ws[0];\n this.G = Ws[1];\n this.B = Ws[2];\n\n BI.createWidget({\n type: \"bi.vertical_adapt\",\n element: this,\n items: [{\n el: this.colorShow,\n width: 16,\n lgap: 20,\n rgap: 15\n }, {\n el: RGB[0],\n width: 20\n }, {\n el: this.R,\n width: c.REB_WIDTH\n }, {\n el: RGB[1],\n width: 20\n }, {\n el: this.G,\n width: c.REB_WIDTH\n }, {\n el: RGB[2],\n width: 20\n }, {\n el: this.B,\n width: c.REB_WIDTH\n }]\n });\n },\n\n _checkEditors: function () {\n if(BI.isEmptyString(this.R.getValue())) {\n this.R.setValue(0);\n }\n if(BI.isEmptyString(this.G.getValue())) {\n this.G.setValue(0);\n }\n if(BI.isEmptyString(this.B.getValue())) {\n this.B.setValue(0);\n }\n },\n\n setValue: function (color) {\n this.colorShow.element.css({\"background-color\": color});\n var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color));\n this.R.setValue(BI.isNull(json.r) ? \"\" : json.r);\n this.G.setValue(BI.isNull(json.g) ? \"\" : json.g);\n this.B.setValue(BI.isNull(json.b) ? \"\" : json.b);\n },\n\n getValue: function () {\n return BI.DOM.rgb2hex(BI.DOM.json2rgb({\n r: this.R.getValue(),\n g: this.G.getValue(),\n b: this.B.getValue()\n }));\n }\n});\nBI.SimpleColorPickerEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.simple_color_picker_editor\", BI.SimpleColorPickerEditor);BI.Farbtastic = BI.inherit(BI.BasicButton, {\n\n constants: {\n RADIUS: 84,\n SQUARE: 100,\n WIDTH: 194\n },\n\n props: {\n baseCls: \"bi-farbtastic\",\n width: 195,\n height: 195,\n stopPropagation: true,\n value: \"#000000\"\n },\n\n render: function () {\n var self = this;\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.layout\",\n cls: \"\",\n ref: function (_ref) {\n self.colorWrapper = _ref;\n }\n },\n top: 47,\n left: 47,\n width: 101,\n height: 101\n }, {\n el: {\n type: \"bi.layout\",\n cls: \"wheel\",\n ref: function (_ref) {\n self.wheel = _ref;\n }\n },\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.layout\",\n cls: \"overlay\",\n ref: function (_ref) {\n self.overlay = _ref;\n }\n },\n top: 47,\n left: 47,\n width: 101,\n height: 101\n }, {\n el: {\n type: \"bi.layout\",\n cls: \"marker\",\n ref: function (_ref) {\n self.hMarker = _ref;\n },\n scrollable: false,\n width: 17,\n height: 17\n }\n }, {\n el: {\n type: \"bi.layout\",\n cls: \"marker\",\n ref: function (_ref) {\n self.slMarker = _ref;\n },\n scrollable: false,\n width: 17,\n height: 17\n }\n }]\n };\n },\n\n mounted: function () {\n var o = this.options;\n if (BI.isKey(o.value)) {\n this.setValue(o.value);\n }\n },\n\n _unpack: function (color) {\n if (color.length === 7) {\n return [parseInt(\"0x\" + color.substring(1, 3)) / 255,\n parseInt(\"0x\" + color.substring(3, 5)) / 255,\n parseInt(\"0x\" + color.substring(5, 7)) / 255];\n } else if (color.length === 4) {\n return [parseInt(\"0x\" + color.substring(1, 2)) / 15,\n parseInt(\"0x\" + color.substring(2, 3)) / 15,\n parseInt(\"0x\" + color.substring(3, 4)) / 15];\n }\n },\n\n _pack: function (rgb) {\n var r = Math.round(rgb[0] * 255);\n var g = Math.round(rgb[1] * 255);\n var b = Math.round(rgb[2] * 255);\n return \"#\" + (r < 16 ? \"0\" : \"\") + r.toString(16) +\n (g < 16 ? \"0\" : \"\") + g.toString(16) +\n (b < 16 ? \"0\" : \"\") + b.toString(16);\n },\n\n _setColor: function (color) {\n var unpack = this._unpack(color);\n if (this.value !== color && unpack) {\n this.value = color;\n this.rgb = unpack;\n this.hsl = this._RGBToHSL(this.rgb);\n this._updateDisplay();\n }\n },\n\n _setHSL: function (hsl) {\n this.hsl = hsl;\n this.rgb = this._HSLToRGB(hsl);\n this.value = this._pack(this.rgb);\n this._updateDisplay();\n return this;\n },\n\n _HSLToRGB: function (hsl) {\n var m1, m2, r, g, b;\n var h = hsl[0], s = hsl[1], l = hsl[2];\n m2 = (l <= 0.5) ? l * (s + 1) : l + s - l * s;\n m1 = l * 2 - m2;\n return [this._hueToRGB(m1, m2, h + 0.33333),\n this._hueToRGB(m1, m2, h),\n this._hueToRGB(m1, m2, h - 0.33333)];\n },\n\n _hueToRGB: function (m1, m2, h) {\n h = (h < 0) ? h + 1 : ((h > 1) ? h - 1 : h);\n if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;\n if (h * 2 < 1) return m2;\n if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6;\n return m1;\n },\n\n _RGBToHSL: function (rgb) {\n var min, max, delta, h, s, l;\n var r = rgb[0], g = rgb[1], b = rgb[2];\n min = Math.min(r, Math.min(g, b));\n max = Math.max(r, Math.max(g, b));\n delta = max - min;\n l = (min + max) / 2;\n s = 0;\n if (l > 0 && l < 1) {\n s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));\n }\n h = 0;\n if (delta > 0) {\n if (max == r && max != g) h += (g - b) / delta;\n if (max == g && max != b) h += (2 + (b - r) / delta);\n if (max == b && max != r) h += (4 + (r - g) / delta);\n h /= 6;\n }\n return [h, s, l];\n },\n\n _updateDisplay: function () {\n var angle = this.hsl[0] * 6.28;\n this.hMarker.element.css({\n left: Math.round(Math.sin(angle) * this.constants.RADIUS + this.constants.WIDTH / 2) + \"px\",\n top: Math.round(-Math.cos(angle) * this.constants.RADIUS + this.constants.WIDTH / 2) + \"px\"\n });\n\n this.slMarker.element.css({\n left: Math.round(this.constants.SQUARE * (.5 - this.hsl[1]) + this.constants.WIDTH / 2) + \"px\",\n top: Math.round(this.constants.SQUARE * (.5 - this.hsl[2]) + this.constants.WIDTH / 2) + \"px\"\n });\n\n // Saturation/Luminance gradient\n this.colorWrapper.element.css(\"backgroundColor\", this._pack(this._HSLToRGB([this.hsl[0], 1, 0.5])));\n\n this.fireEvent(BI.Farbtastic.EVENT_CHANGE, this.getValue(), this);\n },\n\n _absolutePosition: function (el) {\n var r = {x: el.offsetLeft, y: el.offsetTop};\n // Resolve relative to offsetParent\n if (el.offsetParent) {\n var tmp = this._absolutePosition(el.offsetParent);\n r.x += tmp.x;\n r.y += tmp.y;\n }\n return r;\n },\n\n _widgetCoords: function (event) {\n var x, y;\n var el = event.target || event.srcElement;\n var reference = this.wheel.element[0];\n\n if (typeof event.offsetX !== \"undefined\") {\n // Use offset coordinates and find common offsetParent\n var pos = {x: event.offsetX, y: event.offsetY};\n\n // Send the coordinates upwards through the offsetParent chain.\n var e = el;\n while (e) {\n e.mouseX = pos.x;\n e.mouseY = pos.y;\n pos.x += e.offsetLeft;\n pos.y += e.offsetTop;\n e = e.offsetParent;\n }\n\n // Look for the coordinates starting from the wheel widget.\n var e = reference;\n var offset = {x: 0, y: 0};\n while (e) {\n if (typeof e.mouseX !== \"undefined\") {\n x = e.mouseX - offset.x;\n y = e.mouseY - offset.y;\n break;\n }\n offset.x += e.offsetLeft;\n offset.y += e.offsetTop;\n e = e.offsetParent;\n }\n\n // Reset stored coordinates\n e = el;\n while (e) {\n e.mouseX = undefined;\n e.mouseY = undefined;\n e = e.offsetParent;\n }\n } else {\n // Use absolute coordinates\n var pos = this._absolutePosition(reference);\n x = (event.pageX || 0) - pos.x;\n y = (event.pageY || 0) - pos.y;\n }\n // Subtract distance to middle\n return {x: x - this.constants.WIDTH / 2, y: y - this.constants.WIDTH / 2};\n },\n\n _doMouseMove: function (event) {\n var pos = this._widgetCoords(event);\n\n // Set new HSL parameters\n if (this.circleDrag) {\n var hue = Math.atan2(pos.x, -pos.y) / 6.28;\n if (hue < 0) hue += 1;\n this._setHSL([hue, this.hsl[1], this.hsl[2]]);\n } else {\n var sat = Math.max(0, Math.min(1, -(pos.x / this.constants.SQUARE) + .5));\n var lum = Math.max(0, Math.min(1, -(pos.y / this.constants.SQUARE) + .5));\n this._setHSL([this.hsl[0], sat, lum]);\n }\n },\n\n doClick: function (event) {\n var pos = this._widgetCoords(event);\n this.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > this.constants.SQUARE;\n\n // Process\n this._doMouseMove(event);\n return false;\n },\n\n setValue: function (color) {\n this._setColor(color);\n },\n\n getValue: function () {\n return this.value;\n }\n});\nBI.Farbtastic.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.farbtastic\", BI.Farbtastic);/**\n * Created by GUY on 2017/2/8.\n *\n * @class BI.BubbleCombo\n * @extends BI.Widget\n */\nBI.BubbleCombo = BI.inherit(BI.Widget, {\n _const: {\n TRIANGLE_LENGTH: 6\n },\n _defaultConfig: function () {\n return BI.extend(BI.BubbleCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-bubble-combo\",\n trigger: \"click\",\n toggle: true,\n direction: \"bottom,left\", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right\n isDefaultInit: false,\n destroyWhenHide: false,\n isNeedAdjustHeight: true, // 是否需要高度调整\n isNeedAdjustWidth: true,\n stopPropagation: false,\n adjustLength: 0, // 调整的距离\n // adjustXOffset: 0,\n // adjustYOffset: 10,\n hideChecker: BI.emptyFn,\n offsetStyle: \"left\", // left,right,center\n el: {},\n popup: {}\n });\n },\n _init: function () {\n BI.BubbleCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n element: this,\n trigger: o.trigger,\n toggle: o.toggle,\n container: o.container,\n direction: o.direction,\n isDefaultInit: o.isDefaultInit,\n destroyWhenHide: o.destroyWhenHide,\n isNeedAdjustHeight: o.isNeedAdjustHeight,\n isNeedAdjustWidth: o.isNeedAdjustWidth,\n adjustLength: this._getAdjustLength(),\n stopPropagation: o.stopPropagation,\n adjustXOffset: 0,\n adjustYOffset: 0,\n hideChecker: o.hideChecker,\n offsetStyle: o.offsetStyle,\n el: o.el,\n popup: BI.extend({\n type: \"bi.bubble_popup_view\"\n }, o.popup)\n });\n this.combo.on(BI.Combo.EVENT_TRIGGER_CHANGE, function () {\n self.fireEvent(BI.BubbleCombo.EVENT_TRIGGER_CHANGE, arguments);\n });\n this.combo.on(BI.Combo.EVENT_CHANGE, function () {\n self.fireEvent(BI.BubbleCombo.EVENT_CHANGE, arguments);\n });\n this.combo.on(BI.Combo.EVENT_EXPAND, function () {\n self.fireEvent(BI.BubbleCombo.EVENT_EXPAND, arguments);\n });\n this.combo.on(BI.Combo.EVENT_COLLAPSE, function () {\n self.fireEvent(BI.BubbleCombo.EVENT_COLLAPSE, arguments);\n });\n this.combo.on(BI.Combo.EVENT_AFTER_INIT, function () {\n self.fireEvent(BI.BubbleCombo.EVENT_AFTER_INIT, arguments);\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW, arguments);\n });\n this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () {\n self._showTriangle();\n self.fireEvent(BI.BubbleCombo.EVENT_AFTER_POPUPVIEW, arguments);\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () {\n self._hideTriangle();\n self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW, arguments);\n });\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n self.fireEvent(BI.BubbleCombo.EVENT_AFTER_HIDEVIEW, arguments);\n });\n },\n\n _getAdjustLength: function () {\n return this._const.TRIANGLE_LENGTH + this.options.adjustLength;\n },\n\n _createTriangle: function (direction) {\n var pos = {}, op = {};\n var adjustLength = this.options.adjustLength;\n var offset = this.element.offset();\n var left = offset.left, right = offset.left + this.element.outerWidth();\n var top = offset.top, bottom = offset.top + this.element.outerHeight();\n switch (direction) {\n case \"left\":\n pos = {\n top: top,\n height: this.element.outerHeight(),\n left: left - adjustLength - this._const.TRIANGLE_LENGTH\n };\n op = {width: this._const.TRIANGLE_LENGTH};\n break;\n case \"right\":\n pos = {\n top: top,\n height: this.element.outerHeight(),\n left: right + adjustLength\n };\n op = {width: this._const.TRIANGLE_LENGTH};\n break;\n case \"top\":\n pos = {\n left: left,\n width: this.element.outerWidth(),\n top: top - adjustLength - this._const.TRIANGLE_LENGTH\n };\n op = {height: this._const.TRIANGLE_LENGTH};\n break;\n case \"bottom\":\n pos = {\n left: left,\n width: this.element.outerWidth(),\n top: bottom + adjustLength\n };\n op = {height: this._const.TRIANGLE_LENGTH};\n break;\n default:\n break;\n }\n this.triangle && this.triangle.destroy();\n this.triangle = BI.createWidget(op, {\n type: \"bi.center_adapt\",\n cls: \"button-combo-triangle-wrapper\",\n items: [{\n type: \"bi.layout\",\n cls: \"bubble-combo-triangle-\" + direction\n }]\n });\n pos.el = this.triangle;\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [pos]\n });\n },\n\n _createLeftTriangle: function () {\n this._createTriangle(\"left\");\n },\n\n _createRightTriangle: function () {\n this._createTriangle(\"right\");\n },\n\n _createTopTriangle: function () {\n this._createTriangle(\"top\");\n },\n\n _createBottomTriangle: function () {\n this._createTriangle(\"bottom\");\n },\n\n _showTriangle: function () {\n var pos = this.combo.getPopupPosition();\n switch (pos.dir) {\n case \"left,top\":\n case \"left,bottom\":\n this._createLeftTriangle();\n break;\n case \"right,top\":\n case \"right,bottom\":\n this._createRightTriangle();\n break;\n case \"top,left\":\n case \"top,right\":\n this._createTopTriangle();\n break;\n case \"bottom,left\":\n case \"bottom,right\":\n this._createBottomTriangle();\n break;\n }\n },\n\n _hideTriangle: function () {\n this.triangle && this.triangle.destroy();\n this.triangle = null;\n },\n\n hideView: function () {\n this._hideTriangle();\n this.combo && this.combo.hideView();\n },\n\n showView: function () {\n this.combo && this.combo.showView();\n },\n\n isViewVisible: function () {\n return this.combo.isViewVisible();\n }\n});\n\nBI.BubbleCombo.EVENT_TRIGGER_CHANGE = \"EVENT_TRIGGER_CHANGE\";\nBI.BubbleCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.BubbleCombo.EVENT_EXPAND = \"EVENT_EXPAND\";\nBI.BubbleCombo.EVENT_COLLAPSE = \"EVENT_COLLAPSE\";\nBI.BubbleCombo.EVENT_AFTER_INIT = \"EVENT_AFTER_INIT\";\n\n\nBI.BubbleCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.BubbleCombo.EVENT_AFTER_POPUPVIEW = \"EVENT_AFTER_POPUPVIEW\";\nBI.BubbleCombo.EVENT_BEFORE_HIDEVIEW = \"EVENT_BEFORE_HIDEVIEW\";\nBI.BubbleCombo.EVENT_AFTER_HIDEVIEW = \"EVENT_AFTER_HIDEVIEW\";\nBI.shortcut(\"bi.bubble_combo\", BI.BubbleCombo);/**\n * Created by GUY on 2017/2/8.\n *\n * @class BI.BubblePopupView\n * @extends BI.PopupView\n */\nBI.BubblePopupView = BI.inherit(BI.PopupView, {\n _defaultConfig: function () {\n var config = BI.BubblePopupView.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(config, {\n baseCls: config.baseCls + \" bi-bubble-popup-view\",\n minWidth: 220,\n maxWidth: 300,\n minHeight: 90\n });\n },\n _init: function () {\n BI.BubblePopupView.superclass._init.apply(this, arguments);\n }\n});\n\nBI.shortcut(\"bi.bubble_popup_view\", BI.BubblePopupView);\n\n/**\n * Created by GUY on 2017/2/8.\n *\n * @class BI.BubblePopupBarView\n * @extends BI.BubblePopupView\n */\nBI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {\n _defaultConfig: function () {\n return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-bubble-bar-popup-view\",\n buttons: [{\n value: false,\n text: BI.i18nText(\"BI-Basic_Cancel\"),\n ghost: true\n }, {\n text: BI.i18nText(BI.i18nText(\"BI-Basic_Sure\")),\n value: true\n }]\n });\n },\n _init: function () {\n BI.BubblePopupBarView.superclass._init.apply(this, arguments);\n },\n _createToolBar: function () {\n var o = this.options, self = this;\n\n var items = [];\n BI.each(o.buttons, function (i, buttonOpt) {\n if (BI.isWidget(buttonOpt)) {\n items.push(buttonOpt);\n } else {\n items.push(BI.extend({\n type: \"bi.button\",\n height: 24,\n handler: function (v) {\n self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v);\n }\n }, buttonOpt));\n }\n });\n return BI.createWidget({\n type: \"bi.center\",\n height: 44,\n rgap: 15,\n items: [{\n type: \"bi.right_vertical_adapt\",\n lgap: 10,\n items: items\n }]\n });\n },\n\n _createView: function () {\n var o = this.options;\n\n var button = BI.createWidget({\n type: \"bi.button_group\",\n items: [o.el],\n layouts: [{\n type: \"bi.vertical\",\n cls: \"bar-popup-container\",\n hgap: 15,\n tgap: 10\n }]\n });\n\n button.element.css(\"min-height\", o.minHeight - 44);\n\n return button;\n }\n});\nBI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON = \"EVENT_CLICK_TOOLBAR_BUTTON\";\nBI.shortcut(\"bi.bubble_bar_popup_view\", BI.BubblePopupBarView);\n\n/**\n * Created by Windy on 2018/2/2.\n *\n * @class BI.TextBubblePopupBarView\n * @extends BI.BubblePopupView\n */\nBI.TextBubblePopupBarView = BI.inherit(BI.Widget, {\n\n props: function () {\n return {\n baseCls: \"bi-text-bubble-bar-popup-view\",\n text: \"\",\n buttons: [{\n level: \"ignore\",\n value: false,\n stopPropagation: true,\n text: BI.i18nText(\"BI-Basic_Cancel\")\n }, {\n value: true,\n stopPropagation: true,\n text: BI.i18nText(\"BI-Basic_Sure\")\n }]\n };\n },\n\n render: function () {\n var self = this, o = this.options;\n var buttons = BI.map(o.buttons, function (index, buttonOpt) {\n if (BI.isWidget(buttonOpt)) {\n return buttonOpt;\n }\n return BI.extend({\n type: \"bi.button\",\n height: 24,\n handler: function (v) {\n self.fireEvent(BI.TextBubblePopupBarView.EVENT_CHANGE, v);\n }\n }, buttonOpt);\n\n });\n return {\n type: \"bi.bubble_bar_popup_view\",\n minWidth: o.minWidth,\n maxWidth: o.maxWidth,\n minHeight: o.minHeight,\n ref: function () {\n self.popup = this;\n },\n el: {\n type: \"bi.label\",\n text: o.text,\n whiteSpace: \"normal\",\n textAlign: \"left\",\n ref: function () {\n self.text = this;\n }\n },\n buttons: buttons\n };\n },\n\n populate: function (v) {\n this.text.setText(v || this.options.text);\n }\n});\nBI.TextBubblePopupBarView.EVENT_CHANGE = \"EVENT_CLICK_TOOLBAR_BUTTON\";\nBI.shortcut(\"bi.text_bubble_bar_popup_view\", BI.TextBubblePopupBarView);\n/**\n * Created by Young's on 2016/4/28.\n */\nBI.EditorIconCheckCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.EditorIconCheckCombo.superclass._defaultConfig.apply(this, arguments), {\n baseClass: \"bi-check-editor-combo\",\n width: 100,\n height: 24,\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n allowBlank: true,\n watermark: \"\",\n errorText: \"\"\n });\n },\n\n _init: function () {\n BI.EditorIconCheckCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.trigger = BI.createWidget({\n type: \"bi.editor_trigger\",\n items: o.items,\n height: o.height,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank,\n watermark: o.watermark,\n errorText: o.errorText,\n value: o.value\n });\n this.trigger.on(BI.EditorTrigger.EVENT_CHANGE, function () {\n self.popup.setValue(this.getValue());\n self.fireEvent(BI.EditorIconCheckCombo.EVENT_CHANGE, arguments);\n });\n this.trigger.on(BI.EditorTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.EditorIconCheckCombo.EVENT_FOCUS, arguments);\n });\n this.trigger.on(BI.EditorTrigger.EVENT_EMPTY, function () {\n self.fireEvent(BI.EditorIconCheckCombo.EVENT_EMPTY, arguments);\n });\n this.trigger.on(BI.EditorTrigger.EVENT_VALID, function () {\n self.fireEvent(BI.EditorIconCheckCombo.EVENT_VALID, arguments);\n });\n this.trigger.on(BI.EditorTrigger.EVENT_ERROR, function () {\n self.fireEvent(BI.EditorIconCheckCombo.EVENT_ERROR, arguments);\n });\n\n this.popup = BI.createWidget({\n type: \"bi.text_value_check_combo_popup\",\n chooseType: o.chooseType,\n items: o.items,\n value: o.value\n });\n this.popup.on(BI.TextValueCheckComboPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.editorIconCheckCombo.hideView();\n self.fireEvent(BI.EditorIconCheckCombo.EVENT_CHANGE);\n });\n this.popup.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editorIconCheckCombo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n element: this,\n adjustLength: 2,\n el: this.trigger,\n popup: {\n el: this.popup,\n maxHeight: 300\n }\n });\n },\n\n setValue: function (v) {\n this.editorIconCheckCombo.setValue(v);\n },\n\n getValue: function () {\n return this.trigger.getValue();\n },\n\n populate: function (items) {\n this.options.items = items;\n this.editorIconCheckCombo.populate(items);\n }\n});\nBI.EditorIconCheckCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.EditorIconCheckCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.EditorIconCheckCombo.EVENT_EMPTY = \"EVENT_EMPTY\";\nBI.EditorIconCheckCombo.EVENT_VALID = \"EVENT_VALID\";\nBI.EditorIconCheckCombo.EVENT_ERROR = \"EVENT_ERROR\";\nBI.shortcut(\"bi.editor_icon_check_combo\", BI.EditorIconCheckCombo);\n/**\n * Created by GUY on 2016/2/2.\n *\n * @class BI.IconCombo\n * @extend BI.Widget\n */\nBI.IconCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.IconCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-icon-combo\",\n width: 24,\n height: 24,\n el: {},\n popup: {},\n minWidth: 100,\n maxWidth: \"auto\",\n maxHeight: 300,\n direction: \"bottom\",\n adjustLength: 3, // 调整的距离\n adjustXOffset: 0,\n adjustYOffset: 0,\n offsetStyle: \"left\",\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE\n });\n },\n\n _init: function () {\n BI.IconCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.trigger = BI.createWidget(o.el, {\n type: \"bi.icon_combo_trigger\",\n iconCls: o.iconCls,\n title: o.title,\n items: o.items,\n width: o.width,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight,\n value: o.value\n });\n this.popup = BI.createWidget(o.popup, {\n type: \"bi.icon_combo_popup\",\n chooseType: o.chooseType,\n items: o.items,\n value: o.value\n });\n this.popup.on(BI.IconComboPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.iconCombo.hideView();\n self.fireEvent(BI.IconCombo.EVENT_CHANGE);\n });\n this.popup.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.iconCombo = BI.createWidget({\n type: \"bi.combo\",\n element: this,\n direction: o.direction,\n trigger: o.trigger,\n container: o.container,\n adjustLength: o.adjustLength,\n adjustXOffset: o.adjustXOffset,\n adjustYOffset: o.adjustYOffset,\n offsetStyle: o.offsetStyle,\n el: this.trigger,\n popup: {\n el: this.popup,\n maxWidth: o.maxWidth,\n maxHeight: o.maxHeight,\n minWidth: o.minWidth\n }\n });\n },\n\n showView: function () {\n this.iconCombo.showView();\n },\n\n hideView: function () {\n this.iconCombo.hideView();\n },\n\n setValue: function (v) {\n this.trigger.setValue(v);\n this.popup.setValue(v);\n },\n\n getValue: function () {\n var value = this.popup.getValue();\n return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]);\n },\n\n populate: function (items) {\n this.options.items = items;\n this.iconCombo.populate(items);\n }\n});\nBI.IconCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_combo\", BI.IconCombo);/**\n * Created by GUY on 2016/2/2.\n *\n * @class BI.IconComboPopup\n * @extend BI.Pane\n */\nBI.IconComboPopup = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n return BI.extend(BI.IconComboPopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi.icon-combo-popup\",\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE\n });\n },\n\n _init: function () {\n BI.IconComboPopup.superclass._init.apply(this, arguments);\n var o = this.options, self = this;\n this.popup = BI.createWidget({\n type: \"bi.button_group\",\n items: BI.createItems(o.items, {\n type: \"bi.single_select_icon_text_item\",\n height: 24\n }),\n chooseType: o.chooseType,\n layouts: [{\n type: \"bi.vertical\"\n }],\n value: o.value\n });\n\n this.popup.on(BI.Controller.EVENT_CHANGE, function (type, val, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.IconComboPopup.EVENT_CHANGE, val, obj);\n }\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n vgap: 5,\n items: [this.popup]\n });\n },\n\n populate: function (items) {\n BI.IconComboPopup.superclass.populate.apply(this, arguments);\n items = BI.createItems(items, {\n type: \"bi.single_select_icon_text_item\",\n height: 24\n });\n this.popup.populate(items);\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n setValue: function (v) {\n this.popup.setValue(v);\n }\n\n});\nBI.IconComboPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_combo_popup\", BI.IconComboPopup);/**\n * Created by GUY on 2016/2/2.\n *\n * @class BI.IconComboTrigger\n * @extend BI.Widget\n */\nBI.IconComboTrigger = BI.inherit(BI.Trigger, {\n _defaultConfig: function () {\n return BI.extend(BI.IconComboTrigger.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-icon-combo-trigger\",\n el: {},\n items: [],\n iconCls: \"\",\n width: 24,\n height: 24,\n isShowDown: true,\n value: \"\"\n });\n },\n\n _init: function () {\n BI.IconComboTrigger.superclass._init.apply(this, arguments);\n var o = this.options, self = this;\n var iconCls = \"\";\n if(BI.isKey(o.value)){\n iconCls = this._digest(o.value, o.items);\n }\n this.button = BI.createWidget(o.el, {\n type: \"bi.icon_change_button\",\n cls: \"icon-combo-trigger-icon\",\n iconCls: iconCls,\n disableSelected: true,\n width: o.isShowDown ? o.width - 12 : o.width,\n height: o.height,\n iconWidth: o.iconWidth,\n iconHeight: o.iconHeight,\n selected: BI.isNotEmptyString(iconCls)\n });\n this.down = BI.createWidget({\n type: \"bi.icon_button\",\n disableSelected: true,\n cls: \"icon-combo-down-icon trigger-triangle-font font-size-12\",\n width: 12,\n height: 8,\n selected: BI.isNotEmptyString(iconCls)\n });\n this.down.setVisible(o.isShowDown);\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.button,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: this.down,\n right: 3,\n bottom: 0\n }]\n });\n },\n\n _digest: function (v, items) {\n var iconCls = \"\";\n v = BI.isArray(v) ? v[0] : v;\n BI.any(items, function (i, item) {\n if (v === item.value) {\n iconCls = item.iconCls;\n return true;\n }\n });\n return iconCls;\n },\n\n populate: function (items) {\n var o = this.options;\n this.options.items = items || [];\n this.button.setIcon(o.iconCls);\n this.button.setSelected(false);\n this.down.setSelected(false);\n },\n\n setValue: function (v) {\n BI.IconComboTrigger.superclass.setValue.apply(this, arguments);\n var o = this.options;\n var iconCls = this._digest(v, this.options.items);\n v = BI.isArray(v) ? v[0] : v;\n if (BI.isNotEmptyString(iconCls)) {\n this.button.setIcon(iconCls);\n this.button.setSelected(true);\n this.down.setSelected(true);\n } else {\n this.button.setIcon(o.iconCls);\n this.button.setSelected(false);\n this.down.setSelected(false);\n }\n }\n});\nBI.IconComboTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_combo_trigger\", BI.IconComboTrigger);/**\n * Created by Windy on 2017/12/12.\n * combo : icon + text + icon, popup : icon + text\n */\nBI.IconTextValueCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.IconTextValueCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-icon-text-value-combo\",\n height: 24,\n iconHeight: null,\n iconWidth: null,\n value: \"\",\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.IconTextValueCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.trigger = BI.createWidget({\n type: \"bi.select_icon_text_trigger\",\n cls: \"icon-text-value-trigger\",\n items: o.items,\n height: o.height,\n text: o.text,\n iconCls: o.iconCls,\n value: o.value,\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth,\n iconWrapperWidth: o.iconWrapperWidth,\n title: o.title,\n warningTitle: o.warningTitle\n });\n this.popup = BI.createWidget({\n type: \"bi.icon_text_value_combo_popup\",\n items: o.items,\n value: o.value,\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth,\n iconWrapperWidth: o.iconWrapperWidth\n });\n this.popup.on(BI.IconTextValueComboPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.textIconCombo.hideView();\n self.fireEvent(BI.IconTextValueCombo.EVENT_CHANGE, arguments);\n });\n this.popup.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.textIconCombo = BI.createWidget({\n type: \"bi.combo\",\n element: this,\n container: o.container,\n adjustLength: 2,\n el: this.trigger,\n popup: {\n el: this.popup,\n maxHeight: 240,\n minHeight: 25\n }\n });\n if (BI.isKey(o.value)) {\n this.setValue(o.value);\n }\n },\n\n _checkError: function (v) {\n if(BI.isNotNull(v)) {\n v = BI.isArray(v) ? v : [v];\n var result = BI.find(this.options.items, function (idx, item) {\n return BI.contains(v, item.value);\n });\n if (BI.isNull(result)) {\n this.trigger.options.tipType = \"warning\";\n this.element.removeClass(\"combo-error\").addClass(\"combo-error\");\n } else {\n this.trigger.options.tipType = \"success\";\n this.element.removeClass(\"combo-error\");\n }\n }\n },\n\n setValue: function (v) {\n this.trigger.setValue(v);\n this.popup.setValue(v);\n this._checkError(v);\n },\n\n getValue: function () {\n var value = this.popup.getValue();\n return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]);\n },\n\n populate: function (items) {\n this.options.items = items;\n this.textIconCombo.populate(items);\n }\n});\nBI.IconTextValueCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_text_value_combo\", BI.IconTextValueCombo);\n/**\n * Created by Windy on 2017/12/12.\n */\nBI.IconTextValueComboPopup = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n return BI.extend(BI.IconTextValueComboPopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-icon-text-icon-popup\",\n behaviors: {\n redmark: function () {\n return true;\n }\n }\n });\n },\n\n _init: function () {\n BI.IconTextValueComboPopup.superclass._init.apply(this, arguments);\n var o = this.options, self = this;\n this.popup = BI.createWidget({\n type: \"bi.button_group\",\n items: BI.createItems(o.items, {\n type: \"bi.single_select_icon_text_item\",\n height: 24,\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth,\n iconWrapperWidth: o.iconWrapperWidth\n }),\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n layouts: [{\n type: \"bi.vertical\"\n }],\n behaviors: o.behaviors,\n value: o.value\n });\n\n this.popup.on(BI.Controller.EVENT_CHANGE, function (type, val, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.IconTextValueComboPopup.EVENT_CHANGE, val, obj);\n }\n });\n\n this.check();\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n vgap: 5,\n items: [this.popup]\n });\n },\n\n populate: function (items, keyword) {\n BI.IconTextValueComboPopup.superclass.populate.apply(this, arguments);\n var o = this.options;\n items = BI.createItems(items, {\n type: \"bi.single_select_icon_text_item\",\n height: 24,\n iconWrapperWidth: o.iconWrapperWidth,\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth\n });\n this.popup.populate(items, keyword);\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n setValue: function (v) {\n this.popup.setValue(v);\n }\n\n});\nBI.IconTextValueComboPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.icon_text_value_combo_popup\", BI.IconTextValueComboPopup);\n/**\n * Created by Windy on 2018/2/2.\n */\nBI.SearchTextValueCombo = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-search-text-value-combo\",\n height: 24,\n text: \"\",\n items: [],\n tipType: \"\",\n warningTitle: \"\",\n attributes: {\n tabIndex: 0\n }\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.combo\",\n container: o.container,\n adjustLength: 2,\n toggle: false,\n ref: function () {\n self.combo = this;\n },\n el: {\n type: \"bi.search_text_value_trigger\",\n cls: \"search-text-value-trigger\",\n ref: function () {\n self.trigger = this;\n },\n items: o.items,\n height: o.height - 2,\n text: o.text,\n value: o.value,\n tipType: o.tipType,\n warningTitle: o.warningTitle,\n title: o.title,\n listeners: [{\n eventName: BI.SearchTextValueTrigger.EVENT_CHANGE,\n action: function () {\n self.setValue(this.getValue());\n self.combo.hideView();\n self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE);\n }\n }]\n },\n popup: {\n el: {\n type: \"bi.text_value_combo_popup\",\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n value: o.value,\n items: o.items,\n ref: function () {\n self.popup = this;\n self.trigger.getSearcher().setAdapter(self.popup);\n },\n listeners: [{\n eventName: BI.TextValueComboPopup.EVENT_CHANGE,\n action: function () {\n self.setValue(this.getValue());\n self.combo.hideView();\n self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE);\n }\n }]\n },\n value: o.value,\n maxHeight: 252,\n minHeight: 25\n },\n listeners: [{\n eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,\n action: function () {\n self.trigger.stopEditing();\n }\n }, {\n eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,\n action: function () {\n self.fireEvent(BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW);\n }\n }],\n hideChecker: function (e) {\n return self.triggerBtn.element.find(e.target).length === 0;\n }\n },\n left: 0,\n right: 0,\n bottom: 0,\n top: 0\n }, {\n el: {\n type: \"bi.trigger_icon_button\",\n cls: \"trigger-icon-button\",\n ref: function () {\n self.triggerBtn = this;\n },\n width: o.height,\n height: o.height,\n handler: function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n }\n },\n right: 0,\n bottom: 0,\n top: 0\n }]\n };\n },\n\n mounted: function () {\n var o = this.options;\n if(BI.isKey(o.value)) {\n this._checkError(o.value);\n }\n },\n\n _checkError: function (v) {\n if(BI.isNotNull(v)) {\n v = BI.isArray(v) ? v : [v];\n var result = BI.find(this.options.items, function (idx, item) {\n return BI.contains(v, item.value);\n });\n if (BI.isNull(result)) {\n this.element.removeClass(\"combo-error\").addClass(\"combo-error\");\n this.trigger.attr(\"tipType\", \"warning\");\n } else {\n this.element.removeClass(\"combo-error\");\n this.trigger.attr(\"tipType\", \"success\");\n }\n }\n },\n\n populate: function (items) {\n this.options.items = items;\n this.combo.populate(items);\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n this._checkError(v);\n },\n\n getValue: function () {\n var value = this.combo.getValue();\n return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]);\n }\n});\nBI.SearchTextValueCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.search_text_value_combo\", BI.SearchTextValueCombo);\n/**\n * Created by Windy on 2018/2/5.\n */\nBI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {\n\n props: {\n baseCls: \"bi-search-text-value-popup\"\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.vertical\",\n vgap: 5,\n items: [{\n type: \"bi.button_group\",\n ref: function () {\n self.popup = this;\n },\n items: BI.createItems(o.items, {\n type: \"bi.single_select_item\",\n textAlign: o.textAlign,\n height: 24\n }),\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n layouts: [{\n type: \"bi.vertical\"\n }],\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n value: o.value,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function (type, val, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.SearchTextValueComboPopup.EVENT_CHANGE, val, obj);\n }\n }\n }]\n }]\n };\n },\n\n mounted: function() {\n this.check();\n },\n\n populate: function (find, match, keyword) {\n var items = BI.concat(find, match);\n BI.SearchTextValueComboPopup.superclass.populate.apply(this, items);\n items = BI.createItems(items, {\n type: \"bi.single_select_item\",\n height: 24\n });\n this.popup.populate(items, keyword);\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n setValue: function (v) {\n this.popup.setValue(v);\n }\n\n});\nBI.SearchTextValueComboPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.search_text_value_combo_popup\", BI.SearchTextValueComboPopup);/**\n * Created by Windy on 2018/2/2.\n */\nBI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {\n\n props: {\n extraCls: \"bi-search-text-value-trigger bi-border\",\n height: 24\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.htape\",\n items: [\n {\n el: {\n type: \"bi.searcher\",\n ref: function () {\n self.searcher = this;\n },\n isAutoSearch: false,\n el: {\n type: \"bi.state_editor\",\n ref: function () {\n self.editor = this;\n },\n defaultText: o.text,\n text: this._digest(o.value, o.items),\n value: o.value,\n height: o.height,\n tipText: \"\"\n },\n popup: {\n type: \"bi.search_text_value_combo_popup\",\n cls: \"bi-card\",\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE\n },\n onSearch: function (obj, callback) {\n var keyword = obj.keyword;\n var finding = BI.Func.getSearchResult(o.items, keyword);\n var matched = finding.match, find = finding.find;\n callback(find, matched);\n },\n listeners: [{\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.SearchTextValueTrigger.EVENT_CHANGE);\n }\n }]\n }\n }, {\n el: {\n type: \"bi.layout\",\n width: 24\n },\n width: 24\n }\n ]\n };\n },\n\n _setState: function (v) {\n this.editor.setState(v);\n },\n\n _digest: function(vals, items){\n var o = this.options;\n vals = BI.isArray(vals) ? vals : [vals];\n var result = [];\n var formatItems = BI.Tree.transformToArrayFormat(items);\n BI.each(formatItems, function (i, item) {\n if (BI.deepContains(vals, item.value) && !BI.contains(result, item.text || item.value)) {\n result.push(item.text || item.value);\n }\n });\n\n if (result.length > 0) {\n return result.join(\",\");\n } else {\n return BI.isFunction(o.text) ? o.text() : o.text;\n }\n },\n\n stopEditing: function () {\n this.searcher.stopSearch();\n },\n\n getSearcher: function () {\n return this.searcher;\n },\n\n populate: function (items) {\n this.options.items = items;\n },\n\n setValue: function (vals) {\n this._setState(this._digest(vals, this.options.items));\n },\n\n getValue: function () {\n return this.searcher.getValue();\n }\n});\nBI.SearchTextValueTrigger.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.SearchTextValueTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.SearchTextValueTrigger.EVENT_START = \"EVENT_START\";\nBI.SearchTextValueTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.search_text_value_trigger\", BI.SearchTextValueTrigger);/**\n * @class BI.TextValueCheckCombo\n * @extend BI.Widget\n * combo : text + icon, popup : check + text\n */\nBI.TextValueCheckCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.TextValueCheckCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-text-value-check-combo\",\n width: 100,\n height: 24,\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n value: \"\",\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.TextValueCheckCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.trigger = BI.createWidget({\n type: \"bi.select_text_trigger\",\n cls: \"text-value-trigger\",\n items: o.items,\n height: o.height,\n text: o.text,\n value: o.value\n });\n this.popup = BI.createWidget({\n type: \"bi.text_value_check_combo_popup\",\n chooseType: o.chooseType,\n items: o.items,\n value: o.value\n });\n this.popup.on(BI.TextValueCheckComboPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.textIconCheckCombo.hideView();\n self.fireEvent(BI.TextValueCheckCombo.EVENT_CHANGE);\n });\n this.popup.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.textIconCheckCombo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n element: this,\n adjustLength: 2,\n el: this.trigger,\n popup: {\n el: this.popup,\n maxHeight: 300\n }\n });\n\n if (BI.isKey(o.value)) {\n this.setValue(o.value);\n }\n },\n\n setTitle: function (title) {\n this.trigger.setTitle(title);\n },\n\n setValue: function (v) {\n this.trigger.setValue(v);\n this.popup.setValue(v);\n },\n\n setWarningTitle: function (title) {\n this.trigger.setWarningTitle(title);\n },\n\n getValue: function () {\n var value = this.popup.getValue();\n return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]);\n },\n\n populate: function (items) {\n this.options.items = items;\n this.textIconCheckCombo.populate(items);\n }\n});\nBI.TextValueCheckCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_value_check_combo\", BI.TextValueCheckCombo);BI.TextValueCheckComboPopup = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n return BI.extend(BI.TextValueCheckComboPopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-text-icon-popup\",\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE\n });\n },\n\n _init: function () {\n BI.TextValueCheckComboPopup.superclass._init.apply(this, arguments);\n var o = this.options, self = this;\n this.popup = BI.createWidget({\n type: \"bi.button_group\",\n items: this._formatItems(o.items),\n chooseType: o.chooseType,\n layouts: [{\n type: \"bi.vertical\"\n }],\n value: o.value\n });\n\n this.popup.on(BI.Controller.EVENT_CHANGE, function (type, val, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.TextValueCheckComboPopup.EVENT_CHANGE, val, obj);\n }\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n vgap: 5,\n items: [this.popup]\n });\n },\n\n _formatItems: function (items) {\n return BI.map(items, function (i, item) {\n return BI.extend({\n type: \"bi.single_select_item\",\n cls: \"bi-list-item\",\n height: 24\n }, item);\n });\n },\n\n populate: function (items) {\n BI.TextValueCheckComboPopup.superclass.populate.apply(this, arguments);\n this.popup.populate(this._formatItems(items));\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n setValue: function (v) {\n this.popup.setValue(v);\n }\n\n});\nBI.TextValueCheckComboPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_value_check_combo_popup\", BI.TextValueCheckComboPopup);\n/**\n * @class BI.TextValueCombo\n * @extend BI.Widget\n * combo : text + icon, popup : text\n * 参见场景dashboard布局方式选择\n */\nBI.TextValueCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.TextValueCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-text-value-combo\",\n height: 24,\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n text: \"\",\n value: \"\",\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.TextValueCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.trigger = BI.createWidget({\n type: \"bi.select_text_trigger\",\n cls: \"text-value-trigger\",\n items: o.items,\n height: o.height,\n text: o.text,\n value: o.value,\n warningTitle: o.warningTitle\n });\n this.popup = BI.createWidget({\n type: \"bi.text_value_combo_popup\",\n chooseType: o.chooseType,\n value: o.value,\n items: o.items\n });\n this.popup.on(BI.TextValueComboPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.textIconCombo.hideView();\n self.fireEvent(BI.TextValueCombo.EVENT_CHANGE, arguments);\n });\n this.popup.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.textIconCombo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n element: this,\n adjustLength: 2,\n el: this.trigger,\n popup: {\n el: this.popup,\n maxHeight: 240,\n minHeight: 25\n }\n });\n if(BI.isKey(o.value)) {\n this._checkError(o.value);\n }\n },\n\n _checkError: function (v) {\n if(BI.isNotNull(v)) {\n v = BI.isArray(v) ? v : [v];\n var result = BI.find(this.options.items, function (idx, item) {\n return BI.contains(v, item.value);\n });\n if (BI.isNull(result)) {\n this.trigger.setTipType(\"warning\");\n this.element.removeClass(\"combo-error\").addClass(\"combo-error\");\n } else {\n this.trigger.setTipType(\"success\");\n this.element.removeClass(\"combo-error\");\n }\n }\n },\n\n setValue: function (v) {\n this.trigger.setValue(v);\n this.popup.setValue(v);\n this._checkError(v);\n },\n\n getValue: function () {\n var value = this.popup.getValue();\n return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]);\n },\n\n populate: function (items) {\n this.options.items = items;\n this.textIconCombo.populate(items);\n }\n});\nBI.TextValueCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_value_combo\", BI.TextValueCombo);\n/**\n * @class BI.SmallTextValueCombo\n * @extend BI.Widget\n * combo : text + icon, popup : text\n * 参见场景dashboard布局方式选择\n */\nBI.SmallTextValueCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.SmallTextValueCombo.superclass._defaultConfig.apply(this, arguments), {\n width: 100,\n height: 20,\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n el: {},\n text: \"\"\n });\n },\n\n _init: function () {\n BI.SmallTextValueCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.trigger = BI.createWidget(o.el, {\n type: \"bi.small_select_text_trigger\",\n items: o.items,\n height: o.height,\n text: o.text\n });\n this.popup = BI.createWidget({\n type: \"bi.text_value_combo_popup\",\n chooseType: o.chooseType,\n items: o.items\n });\n this.popup.on(BI.TextValueComboPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.SmallTextValueCombo.hideView();\n self.fireEvent(BI.SmallTextValueCombo.EVENT_CHANGE);\n });\n this.popup.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.SmallTextValueCombo = BI.createWidget({\n type: \"bi.combo\",\n element: this,\n container: o.container,\n adjustLength: 2,\n el: this.trigger,\n popup: {\n el: this.popup,\n maxHeight: 240,\n minHeight: 25\n }\n });\n },\n\n setValue: function (v) {\n this.trigger.setValue(v);\n this.popup.setValue(v);\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n populate: function (items) {\n this.options.items = items;\n this.SmallTextValueCombo.populate(items);\n }\n});\nBI.SmallTextValueCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.small_text_value_combo\", BI.SmallTextValueCombo);BI.TextValueComboPopup = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n return BI.extend(BI.TextValueComboPopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-text-icon-popup\",\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE\n });\n },\n\n _init: function () {\n BI.TextValueComboPopup.superclass._init.apply(this, arguments);\n var o = this.options, self = this;\n this.popup = BI.createWidget({\n type: \"bi.button_group\",\n items: BI.createItems(o.items, {\n type: \"bi.single_select_item\",\n textAlign: o.textAlign,\n height: 24\n }),\n chooseType: o.chooseType,\n layouts: [{\n type: \"bi.vertical\"\n }],\n value: o.value\n });\n\n this.popup.on(BI.Controller.EVENT_CHANGE, function (type, val, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.TextValueComboPopup.EVENT_CHANGE, val, obj);\n }\n });\n this.check();\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n vgap: 5,\n items: [this.popup]\n });\n },\n\n populate: function (items) {\n BI.TextValueComboPopup.superclass.populate.apply(this, arguments);\n items = BI.createItems(items, {\n type: \"bi.single_select_item\",\n height: 24\n });\n this.popup.populate(items);\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n setValue: function (v) {\n this.popup.setValue(v);\n }\n\n});\nBI.TextValueComboPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_value_combo_popup\", BI.TextValueComboPopup);/**\n * 有清楚按钮的文本框\n * Created by GUY on 2015/9/29.\n * @class BI.SmallTextEditor\n * @extends BI.SearchEditor\n */\nBI.ClearEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.ClearEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-clear-editor\",\n height: 24,\n errorText: \"\",\n watermark: \"\",\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn\n });\n },\n _init: function () {\n BI.ClearEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height,\n watermark: o.watermark,\n allowBlank: true,\n errorText: o.errorText,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n value: o.value\n });\n this.clear = BI.createWidget({\n type: \"bi.icon_button\",\n stopEvent: true,\n cls: \"search-close-h-font\"\n });\n this.clear.on(BI.IconButton.EVENT_CHANGE, function () {\n self.setValue(\"\");\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT);\n self.fireEvent(BI.ClearEditor.EVENT_CLEAR);\n });\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [\n {\n el: this.editor\n },\n {\n el: this.clear,\n width: 24\n }]\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.editor.on(BI.Editor.EVENT_FOCUS, function () {\n self.fireEvent(BI.ClearEditor.EVENT_FOCUS);\n });\n this.editor.on(BI.Editor.EVENT_BLUR, function () {\n self.fireEvent(BI.ClearEditor.EVENT_BLUR);\n });\n this.editor.on(BI.Editor.EVENT_CLICK, function () {\n self.fireEvent(BI.ClearEditor.EVENT_CLICK);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE, function () {\n self._checkClear();\n self.fireEvent(BI.ClearEditor.EVENT_CHANGE);\n });\n this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.ClearEditor.EVENT_KEY_DOWN, v);\n });\n this.editor.on(BI.Editor.EVENT_SPACE, function () {\n self.fireEvent(BI.ClearEditor.EVENT_SPACE);\n });\n this.editor.on(BI.Editor.EVENT_BACKSPACE, function () {\n self.fireEvent(BI.ClearEditor.EVENT_BACKSPACE);\n });\n\n\n this.editor.on(BI.Editor.EVENT_VALID, function () {\n self.fireEvent(BI.ClearEditor.EVENT_VALID);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self.fireEvent(BI.ClearEditor.EVENT_ERROR);\n });\n this.editor.on(BI.Editor.EVENT_ENTER, function () {\n self.fireEvent(BI.ClearEditor.EVENT_ENTER);\n });\n this.editor.on(BI.Editor.EVENT_RESTRICT, function () {\n self.fireEvent(BI.ClearEditor.EVENT_RESTRICT);\n });\n this.editor.on(BI.Editor.EVENT_EMPTY, function () {\n self._checkClear();\n self.fireEvent(BI.ClearEditor.EVENT_EMPTY);\n });\n this.editor.on(BI.Editor.EVENT_REMOVE, function () {\n self.fireEvent(BI.ClearEditor.EVENT_REMOVE);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self.fireEvent(BI.ClearEditor.EVENT_CONFIRM);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self.fireEvent(BI.ClearEditor.EVENT_CHANGE_CONFIRM);\n });\n this.editor.on(BI.Editor.EVENT_START, function () {\n self.fireEvent(BI.ClearEditor.EVENT_START);\n });\n this.editor.on(BI.Editor.EVENT_PAUSE, function () {\n self.fireEvent(BI.ClearEditor.EVENT_PAUSE);\n });\n this.editor.on(BI.Editor.EVENT_STOP, function () {\n self.fireEvent(BI.ClearEditor.EVENT_STOP);\n });\n\n if (BI.isKey(o.value)) {\n this.clear.visible();\n } else {\n this.clear.invisible();\n }\n },\n\n _checkClear: function () {\n if (!this.getValue()) {\n this.clear.invisible();\n } else {\n this.clear.visible();\n }\n },\n\n setWaterMark: function (v) {\n this.options.watermark = v;\n this.editor.setWaterMark(v);\n },\n\n focus: function () {\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n },\n\n getValue: function () {\n if (this.isValid()) {\n var res = this.editor.getValue().match(/[\\S]+/g);\n return BI.isNull(res) ? \"\" : res[res.length - 1];\n }\n },\n\n setValue: function (v) {\n this.editor.setValue(v);\n if (BI.isKey(v)) {\n this.clear.visible();\n }\n },\n\n isValid: function () {\n return this.editor.isValid();\n }\n});\nBI.ClearEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.ClearEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.ClearEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.ClearEditor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.ClearEditor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.ClearEditor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.ClearEditor.EVENT_BACKSPACE = \"EVENT_BACKSPACE\";\nBI.ClearEditor.EVENT_CLEAR = \"EVENT_CLEAR\";\n\nBI.ClearEditor.EVENT_START = \"EVENT_START\";\nBI.ClearEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.ClearEditor.EVENT_STOP = \"EVENT_STOP\";\nBI.ClearEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.ClearEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.ClearEditor.EVENT_VALID = \"EVENT_VALID\";\nBI.ClearEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.ClearEditor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.ClearEditor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.ClearEditor.EVENT_REMOVE = \"EVENT_REMOVE\";\nBI.ClearEditor.EVENT_EMPTY = \"EVENT_EMPTY\";\nBI.shortcut(\"bi.clear_editor\", BI.ClearEditor);/**\n * 带标记的文本框\n * Created by GUY on 2016/1/25.\n * @class BI.ShelterEditor\n * @extends BI.Widget\n */\nBI.ShelterEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.ShelterEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-shelter-editor\",\n hgap: 4,\n vgap: 2,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n allowBlank: true,\n watermark: \"\",\n errorText: \"\",\n height: 24,\n textAlign: \"left\"\n });\n },\n\n _init: function () {\n BI.ShelterEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n value: o.value,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank,\n watermark: o.watermark,\n errorText: o.errorText\n });\n this.text = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"shelter-editor-text\",\n title: o.title,\n warningTitle: o.warningTitle,\n tipType: o.tipType,\n textAlign: o.textAlign,\n height: o.height,\n hgap: o.hgap\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.text,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this.text.on(BI.Controller.EVENT_CHANGE, function () {\n arguments[2] = self;\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.text.on(BI.TextButton.EVENT_CHANGE, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_CLICK_LABEL);\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_FOCUS, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_FOCUS, arguments);\n });\n this.editor.on(BI.Editor.EVENT_BLUR, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_BLUR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CLICK, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_CLICK, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.ShelterEditor.EVENT_KEY_DOWN, arguments);\n });\n\n this.editor.on(BI.Editor.EVENT_VALID, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_VALID, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self._showHint();\n self._checkText();\n self.fireEvent(BI.ShelterEditor.EVENT_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self._showHint();\n self._checkText();\n self.fireEvent(BI.ShelterEditor.EVENT_CHANGE_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_START, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_START, arguments);\n });\n this.editor.on(BI.Editor.EVENT_PAUSE, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_PAUSE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_STOP, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_STOP, arguments);\n });\n this.editor.on(BI.Editor.EVENT_SPACE, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_SPACE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self._checkText();\n self.fireEvent(BI.ShelterEditor.EVENT_ERROR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ENTER, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_ENTER, arguments);\n });\n this.editor.on(BI.Editor.EVENT_RESTRICT, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_RESTRICT, arguments);\n });\n this.editor.on(BI.Editor.EVENT_EMPTY, function () {\n self.fireEvent(BI.ShelterEditor.EVENT_EMPTY, arguments);\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [this.editor]\n });\n this._showHint();\n self._checkText();\n },\n\n _checkText: function () {\n var o = this.options;\n if (this.editor.getValue() === \"\") {\n this.text.setValue(o.watermark || \"\");\n this.text.element.addClass(\"bi-water-mark\");\n } else {\n this.text.setValue(this.editor.getValue());\n this.text.element.removeClass(\"bi-water-mark\");\n }\n BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);\n },\n\n _showInput: function () {\n this.editor.visible();\n this.text.invisible();\n },\n\n _showHint: function () {\n this.editor.invisible();\n this.text.visible();\n },\n\n setWaterMark: function (v) {\n this.options.watermark = v;\n this.editor.setWaterMark(v);\n },\n\n setTitle: function (title) {\n this.text.setTitle(title);\n },\n\n setWarningTitle: function (title) {\n this.text.setWarningTitle(title);\n },\n\n focus: function () {\n this._showInput();\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n this._showHint();\n this._checkText();\n },\n\n doRedMark: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n setErrorText: function (text) {\n this.editor.setErrorText(text);\n },\n\n getErrorText: function () {\n return this.editor.getErrorText();\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n setTextStyle: function (style) {\n this.text.setStyle(style);\n },\n\n setValue: function (k) {\n var o = this.options;\n this.editor.setValue(k);\n this._checkText();\n },\n\n getValue: function () {\n return this.editor.getValue();\n },\n\n getState: function () {\n return this.text.getValue();\n },\n\n setState: function (v) {\n this._showHint();\n this.text.setValue(v);\n }\n});\nBI.ShelterEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.ShelterEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.ShelterEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.ShelterEditor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.ShelterEditor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.ShelterEditor.EVENT_CLICK_LABEL = \"EVENT_CLICK_LABEL\";\n\nBI.ShelterEditor.EVENT_START = \"EVENT_START\";\nBI.ShelterEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.ShelterEditor.EVENT_STOP = \"EVENT_STOP\";\nBI.ShelterEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.ShelterEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.ShelterEditor.EVENT_VALID = \"EVENT_VALID\";\nBI.ShelterEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.ShelterEditor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.ShelterEditor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.ShelterEditor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.ShelterEditor.EVENT_EMPTY = \"EVENT_EMPTY\";\n\nBI.shortcut(\"bi.shelter_editor\", BI.ShelterEditor);\n/**\n * 带标记的文本框\n * Created by GUY on 2015/8/28.\n * @class BI.SignEditor\n * @extends BI.Widget\n */\nBI.SignEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.SignEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-sign-editor\",\n hgap: 4,\n vgap: 2,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n allowBlank: true,\n watermark: \"\",\n errorText: \"\",\n height: 24\n });\n },\n\n _init: function () {\n BI.SignEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n value: o.value,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank,\n watermark: o.watermark,\n errorText: o.errorText\n });\n this.text = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"sign-editor-text\",\n title: o.title,\n warningTitle: o.warningTitle,\n tipType: o.tipType,\n textAlign: \"left\",\n height: o.height,\n hgap: o.hgap,\n handler: function () {\n self._showInput();\n self.editor.focus();\n self.editor.selectAll();\n }\n });\n this.text.on(BI.TextButton.EVENT_CHANGE, function () {\n BI.nextTick(function () {\n self.fireEvent(BI.SignEditor.EVENT_CLICK_LABEL);\n });\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.text,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_FOCUS, function () {\n self.fireEvent(BI.SignEditor.EVENT_FOCUS, arguments);\n });\n this.editor.on(BI.Editor.EVENT_BLUR, function () {\n self.fireEvent(BI.SignEditor.EVENT_BLUR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CLICK, function () {\n self.fireEvent(BI.SignEditor.EVENT_CLICK, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE, function () {\n self.fireEvent(BI.SignEditor.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.SignEditor.EVENT_KEY_DOWN, arguments);\n });\n\n this.editor.on(BI.Editor.EVENT_VALID, function () {\n self.fireEvent(BI.SignEditor.EVENT_VALID, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self._showHint();\n self._checkText();\n self.fireEvent(BI.SignEditor.EVENT_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self._showHint();\n self._checkText();\n self.fireEvent(BI.SignEditor.EVENT_CHANGE_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_START, function () {\n self.fireEvent(BI.SignEditor.EVENT_START, arguments);\n });\n this.editor.on(BI.Editor.EVENT_PAUSE, function () {\n self.fireEvent(BI.SignEditor.EVENT_PAUSE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_STOP, function () {\n self.fireEvent(BI.SignEditor.EVENT_STOP, arguments);\n });\n this.editor.on(BI.Editor.EVENT_SPACE, function () {\n self.fireEvent(BI.SignEditor.EVENT_SPACE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self._checkText();\n self.fireEvent(BI.SignEditor.EVENT_ERROR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ENTER, function () {\n self.fireEvent(BI.SignEditor.EVENT_ENTER, arguments);\n });\n this.editor.on(BI.Editor.EVENT_RESTRICT, function () {\n self.fireEvent(BI.SignEditor.EVENT_RESTRICT, arguments);\n });\n this.editor.on(BI.Editor.EVENT_EMPTY, function () {\n self.fireEvent(BI.SignEditor.EVENT_EMPTY, arguments);\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [this.editor]\n });\n this._showHint();\n self._checkText();\n },\n\n _checkText: function () {\n var o = this.options;\n BI.nextTick(BI.bind(function () {\n if (this.editor.getValue() === \"\") {\n this.text.setValue(o.watermark || \"\");\n this.text.element.addClass(\"bi-water-mark\");\n } else {\n this.text.setValue(this.editor.getValue());\n this.text.element.removeClass(\"bi-water-mark\");\n BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);\n }\n }, this));\n },\n\n _showInput: function () {\n this.editor.visible();\n this.text.invisible();\n },\n\n _showHint: function () {\n this.editor.invisible();\n this.text.visible();\n },\n\n setTitle: function (title) {\n this.text.setTitle(title);\n },\n\n setWarningTitle: function (title) {\n this.text.setWarningTitle(title);\n },\n\n setWaterMark: function (v) {\n this.options.watermark = v;\n this.editor.setWaterMark(v);\n },\n\n focus: function () {\n this._showInput();\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n this._showHint();\n this._checkText();\n },\n\n doRedMark: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n setErrorText: function (text) {\n this.editor.setErrorText(text);\n },\n\n getErrorText: function () {\n return this.editor.getErrorText();\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n setValue: function (k) {\n this.editor.setValue(k);\n this._checkText();\n },\n\n getValue: function () {\n return this.editor.getValue();\n },\n\n getState: function () {\n return this.text.getValue();\n },\n\n setState: function (v) {\n this._showHint();\n this.text.setValue(v);\n }\n});\nBI.SignEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SignEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SignEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.SignEditor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.SignEditor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.SignEditor.EVENT_CLICK_LABEL = \"EVENT_CLICK_LABEL\";\n\nBI.SignEditor.EVENT_START = \"EVENT_START\";\nBI.SignEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.SignEditor.EVENT_STOP = \"EVENT_STOP\";\nBI.SignEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.SignEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.SignEditor.EVENT_VALID = \"EVENT_VALID\";\nBI.SignEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.SignEditor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.SignEditor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.SignEditor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.SignEditor.EVENT_EMPTY = \"EVENT_EMPTY\";\n\nBI.shortcut(\"bi.sign_editor\", BI.SignEditor);/**\n * guy\n * 记录状态的输入框\n * @class BI.StateEditor\n * @extends BI.Single\n */\nBI.StateEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.StateEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-state-editor\",\n hgap: 4,\n vgap: 2,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n allowBlank: true,\n watermark: \"\",\n errorText: \"\",\n height: 24,\n defaultText: \"\", // 默认显示值,默认显示值与显示值的区别是默认显示值标记灰色\n text: BI.i18nText(\"BI-Basic_Unrestricted\") // 显示值\n });\n },\n\n _init: function () {\n BI.StateEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n value: o.value,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank,\n watermark: o.watermark,\n errorText: o.errorText\n });\n this.text = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"bi-water-mark tip-text-style\",\n textAlign: \"left\",\n height: o.height,\n text: o.text,\n hgap: o.hgap,\n handler: function () {\n self._showInput();\n self.editor.focus();\n self.editor.setValue(\"\");\n },\n title: BI.isNotNull(o.tipText) ? o.tipText : function () {\n var title = \"\";\n if (BI.isString(self.stateValue)) {\n title = self.stateValue;\n }\n if (BI.isArray(self.stateValue) && self.stateValue.length === 1) {\n title = self.stateValue[0];\n }\n return title;\n },\n warningTitle: o.warningTitle,\n tipType: o.tipType\n });\n this.text.on(BI.TextButton.EVENT_CHANGE, function () {\n BI.nextTick(function () {\n self.fireEvent(BI.StateEditor.EVENT_CLICK_LABEL);\n });\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.text,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_FOCUS, function () {\n self.fireEvent(BI.StateEditor.EVENT_FOCUS, arguments);\n });\n this.editor.on(BI.Editor.EVENT_BLUR, function () {\n self.fireEvent(BI.StateEditor.EVENT_BLUR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CLICK, function () {\n self.fireEvent(BI.StateEditor.EVENT_CLICK, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE, function () {\n self.fireEvent(BI.StateEditor.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.StateEditor.EVENT_KEY_DOWN, arguments);\n });\n\n this.editor.on(BI.Editor.EVENT_VALID, function () {\n self.fireEvent(BI.StateEditor.EVENT_VALID, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self._showHint();\n self.fireEvent(BI.StateEditor.EVENT_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self._showHint();\n self.fireEvent(BI.StateEditor.EVENT_CHANGE_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_START, function () {\n self.fireEvent(BI.StateEditor.EVENT_START, arguments);\n });\n this.editor.on(BI.Editor.EVENT_PAUSE, function () {\n self.fireEvent(BI.StateEditor.EVENT_PAUSE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_STOP, function () {\n self.fireEvent(BI.StateEditor.EVENT_STOP, arguments);\n });\n this.editor.on(BI.Editor.EVENT_SPACE, function () {\n self.fireEvent(BI.StateEditor.EVENT_SPACE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self.fireEvent(BI.StateEditor.EVENT_ERROR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ENTER, function () {\n self.fireEvent(BI.StateEditor.EVENT_ENTER, arguments);\n });\n this.editor.on(BI.Editor.EVENT_RESTRICT, function () {\n self.fireEvent(BI.StateEditor.EVENT_RESTRICT, arguments);\n });\n this.editor.on(BI.Editor.EVENT_EMPTY, function () {\n self.fireEvent(BI.StateEditor.EVENT_EMPTY, arguments);\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [this.editor]\n });\n this._showHint();\n if (BI.isNotNull(o.text)) {\n this.setState(o.text);\n }\n },\n\n setWaterMark: function (v) {\n this.options.watermark = v;\n this.editor.setWaterMark(v);\n },\n\n doRedMark: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n focus: function () {\n if (this.options.disabled === false) {\n this._showInput();\n this.editor.focus();\n }\n },\n\n blur: function () {\n this.editor.blur();\n this._showHint();\n },\n\n _showInput: function () {\n this.editor.visible();\n this.text.invisible();\n },\n\n _showHint: function () {\n this.editor.invisible();\n this.text.visible();\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n setErrorText: function (text) {\n this.editor.setErrorText(text);\n },\n\n getErrorText: function () {\n return this.editor.getErrorText();\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n setValue: function (k) {\n this.editor.setValue(k);\n },\n\n getValue: function () {\n return this.editor.getValue();\n },\n\n getState: function () {\n return this.editor.getValue().match(/[^\\s]+/g);\n },\n\n setState: function (v) {\n var o = this.options;\n BI.StateEditor.superclass.setValue.apply(this, arguments);\n this.stateValue = v;\n if (BI.isNumber(v)) {\n if (v === BI.Selection.All) {\n this.text.setText(BI.i18nText(\"BI-Select_All\"));\n this.text.element.removeClass(\"bi-water-mark\");\n } else if (v === BI.Selection.Multi) {\n this.text.setText(BI.i18nText(\"BI-Select_Part\"));\n this.text.element.removeClass(\"bi-water-mark\");\n } else {\n this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);\n BI.isKey(o.defaultText) ? this.text.element.addClass(\"bi-water-mark\") : this.text.element.removeClass(\"bi-water-mark\");\n }\n return;\n }\n if (BI.isString(v)) {\n this.text.setText(v);\n // 配置了defaultText才判断标灰,其他情况不标灰\n (BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass(\"bi-water-mark\") : this.text.element.removeClass(\"bi-water-mark\");\n return;\n }\n if (BI.isArray(v)) {\n if (BI.isEmpty(v)) {\n this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);\n BI.isKey(o.defaultText) ? this.text.element.addClass(\"bi-water-mark\") : this.text.element.removeClass(\"bi-water-mark\");\n } else if (v.length === 1) {\n this.text.setText(v[0]);\n this.text.element.removeClass(\"bi-water-mark\");\n } else {\n this.text.setText(BI.i18nText(\"BI-Select_Part\"));\n this.text.element.removeClass(\"bi-water-mark\");\n }\n }\n },\n\n setTipType: function (v) {\n this.text.options.tipType = v;\n }\n});\nBI.StateEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.StateEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.StateEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.StateEditor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.StateEditor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.StateEditor.EVENT_CLICK_LABEL = \"EVENT_CLICK_LABEL\";\n\nBI.StateEditor.EVENT_START = \"EVENT_START\";\nBI.StateEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.StateEditor.EVENT_STOP = \"EVENT_STOP\";\nBI.StateEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.StateEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.StateEditor.EVENT_VALID = \"EVENT_VALID\";\nBI.StateEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.StateEditor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.StateEditor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.StateEditor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.StateEditor.EVENT_EMPTY = \"EVENT_EMPTY\";\n\nBI.shortcut(\"bi.state_editor\", BI.StateEditor);\n/**\n * 无限制-已选择状态输入框\n * Created by GUY on 2016/5/18.\n * @class BI.SimpleStateEditor\n * @extends BI.Single\n */\nBI.SimpleStateEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.SimpleStateEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-simple-state-editor\",\n hgap: 4,\n vgap: 2,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n mouseOut: false,\n allowBlank: true,\n watermark: \"\",\n errorText: \"\",\n height: 24,\n text: BI.i18nText(\"BI-Basic_Unrestricted\")\n });\n },\n\n _init: function () {\n BI.SimpleStateEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n value: o.value,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank,\n watermark: o.watermark,\n errorText: o.errorText\n });\n this.text = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"bi-water-mark\",\n textAlign: \"left\",\n text: o.text,\n height: o.height,\n hgap: o.hgap,\n handler: function () {\n self._showInput();\n self.editor.focus();\n self.editor.setValue(\"\");\n }\n });\n this.text.on(BI.TextButton.EVENT_CHANGE, function () {\n BI.nextTick(function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_CLICK_LABEL);\n });\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.text,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_FOCUS, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_FOCUS, arguments);\n });\n this.editor.on(BI.Editor.EVENT_BLUR, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_BLUR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CLICK, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_CLICK, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.SimpleStateEditor.EVENT_KEY_DOWN, arguments);\n });\n\n this.editor.on(BI.Editor.EVENT_VALID, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_VALID, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self._showHint();\n self.fireEvent(BI.SimpleStateEditor.EVENT_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self._showHint();\n self.fireEvent(BI.SimpleStateEditor.EVENT_CHANGE_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_START, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_START, arguments);\n });\n this.editor.on(BI.Editor.EVENT_PAUSE, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_PAUSE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_STOP, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_STOP, arguments);\n });\n this.editor.on(BI.Editor.EVENT_SPACE, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_SPACE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_ERROR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ENTER, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_ENTER, arguments);\n });\n this.editor.on(BI.Editor.EVENT_RESTRICT, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_RESTRICT, arguments);\n });\n this.editor.on(BI.Editor.EVENT_EMPTY, function () {\n self.fireEvent(BI.SimpleStateEditor.EVENT_EMPTY, arguments);\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [this.editor]\n });\n this._showHint();\n if(BI.isNotNull(o.text)){\n this.setState(o.text);\n }\n },\n\n setWaterMark: function (v) {\n this.options.watermark = v;\n this.editor.setWaterMark(v);\n },\n\n doRedMark: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n focus: function () {\n this._showInput();\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n this._showHint();\n },\n\n _showInput: function () {\n this.editor.visible();\n this.text.invisible();\n },\n\n _showHint: function () {\n this.editor.invisible();\n this.text.visible();\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n setErrorText: function (text) {\n this.editor.setErrorText(text);\n },\n\n getErrorText: function () {\n return this.editor.getErrorText();\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n setValue: function (k) {\n this.editor.setValue(k);\n },\n\n getValue: function () {\n return this.editor.getValue();\n },\n\n getState: function () {\n return this.editor.getValue().match(/[^\\s]+/g);\n },\n\n setState: function (v) {\n var o = this.options;\n BI.SimpleStateEditor.superclass.setValue.apply(this, arguments);\n if (BI.isNumber(v)) {\n if (v === BI.Selection.All) {\n this.text.setText(BI.i18nText(\"BI-Already_Selected\"));\n this.text.element.removeClass(\"bi-water-mark\");\n } else if (v === BI.Selection.Multi) {\n this.text.setText(BI.i18nText(\"BI-Already_Selected\"));\n this.text.element.removeClass(\"bi-water-mark\");\n } else {\n this.text.setText(o.text);\n this.text.element.addClass(\"bi-water-mark\");\n }\n return;\n }\n if (!BI.isArray(v) || v.length === 1) {\n this.text.setText(v);\n this.text.setTitle(v);\n this.text.element.removeClass(\"bi-water-mark\");\n } else if (BI.isEmpty(v)) {\n this.text.setText(o.text);\n this.text.element.addClass(\"bi-water-mark\");\n } else {\n this.text.setText(BI.i18nText(\"BI-Already_Selected\"));\n this.text.element.removeClass(\"bi-water-mark\");\n }\n }\n});\nBI.SimpleStateEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SimpleStateEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SimpleStateEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.SimpleStateEditor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.SimpleStateEditor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.SimpleStateEditor.EVENT_CLICK_LABEL = \"EVENT_CLICK_LABEL\";\n\nBI.SimpleStateEditor.EVENT_START = \"EVENT_START\";\nBI.SimpleStateEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.SimpleStateEditor.EVENT_STOP = \"EVENT_STOP\";\nBI.SimpleStateEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.SimpleStateEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.SimpleStateEditor.EVENT_VALID = \"EVENT_VALID\";\nBI.SimpleStateEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.SimpleStateEditor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.SimpleStateEditor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.SimpleStateEditor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.SimpleStateEditor.EVENT_EMPTY = \"EVENT_EMPTY\";\n\nBI.shortcut(\"bi.simple_state_editor\", BI.SimpleStateEditor);/**\n * 下拉框弹出层的多选版本,toolbar带有若干按钮, zIndex在1000w\n * @class BI.MultiPopupView\n * @extends BI.Widget\n */\n\nBI.MultiPopupView = BI.inherit(BI.PopupView, {\n\n _defaultConfig: function () {\n var conf = BI.MultiPopupView.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n _baseCls: (conf._baseCls || \"\") + \" bi-multi-list-view\",\n buttons: [BI.i18nText(\"BI-Basic_Sure\")]\n });\n },\n\n _init: function () {\n BI.MultiPopupView.superclass._init.apply(this, arguments);\n },\n\n _createToolBar: function () {\n var o = this.options, self = this;\n if (o.buttons.length === 0) {\n return;\n }\n\n var text = []; // 构造[{text:content},……]\n BI.each(o.buttons, function (idx, item) {\n text.push({\n text: item,\n value: idx\n });\n });\n\n this.buttongroup = BI.createWidget({\n type: \"bi.button_group\",\n cls: \"list-view-toolbar bi-high-light bi-split-top\",\n height: 24,\n items: BI.createItems(text, {\n type: \"bi.text_button\",\n once: false,\n shadow: true,\n isShadowShowingOnSelected: true\n }),\n layouts: [{\n type: \"bi.center\",\n hgap: 0,\n vgap: 0\n }]\n });\n\n this.buttongroup.on(BI.ButtonGroup.EVENT_CHANGE, function (value, obj) {\n self.fireEvent(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON, value, obj);\n });\n\n return this.buttongroup;\n }\n\n});\n\nBI.MultiPopupView.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON = \"EVENT_CLICK_TOOLBAR_BUTTON\";\n\nBI.shortcut(\"bi.multi_popup_view\", BI.MultiPopupView);/**\n * 可以理解为MultiPopupView和Panel两个面板的结合体\n * @class BI.PopupPanel\n * @extends BI.MultiPopupView\n */\n\nBI.PopupPanel = BI.inherit(BI.MultiPopupView, {\n\n _defaultConfig: function () {\n var conf = BI.PopupPanel.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-popup-panel\",\n title: \"\"\n });\n },\n\n _init: function () {\n BI.PopupPanel.superclass._init.apply(this, arguments);\n },\n\n _createTool: function () {\n var self = this, o = this.options;\n var close = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"close-h-font\",\n width: 25,\n height: 25\n });\n close.on(BI.IconButton.EVENT_CHANGE, function () {\n self.setVisible(false);\n self.fireEvent(BI.PopupPanel.EVENT_CLOSE);\n });\n return BI.createWidget({\n type: \"bi.htape\",\n cls: \"popup-panel-title bi-header-background\",\n height: 25,\n items: [{\n el: {\n type: \"bi.label\",\n textAlign: \"left\",\n text: o.title,\n height: 25,\n lgap: 10\n }\n }, {\n el: close,\n width: 25\n }]\n });\n }\n});\n\nBI.PopupPanel.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.PopupPanel.EVENT_CLOSE = \"EVENT_CLOSE\";\nBI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON = \"EVENT_CLICK_TOOLBAR_BUTTON\";\n\nBI.shortcut(\"bi.popup_panel\", BI.PopupPanel);/**\n * list面板\n *\n * Created by GUY on 2015/10/30.\n * @class BI.ListPane\n * @extends BI.Pane\n */\nBI.ListPane = BI.inherit(BI.Pane, {\n\n _defaultConfig: function () {\n var conf = BI.ListPane.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-list-pane\",\n logic: {\n dynamic: true\n },\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n vgap: 0,\n hgap: 0,\n items: [],\n itemsCreator: BI.emptyFn,\n hasNext: BI.emptyFn,\n onLoaded: BI.emptyFn,\n el: {\n type: \"bi.button_group\"\n }\n });\n },\n _init: function () {\n BI.ListPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.button_group = BI.createWidget(o.el, {\n type: \"bi.button_group\",\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n behaviors: {},\n items: o.items,\n itemsCreator: function (op, calback) {\n if (op.times === 1) {\n self.empty();\n BI.nextTick(function () {\n self.loading();\n });\n }\n o.itemsCreator(op, function () {\n calback.apply(self, arguments);\n op.times === 1 && BI.nextTick(function () {\n self.loaded();\n // callback可能在loading之前执行, check保证显示正确\n self.check();\n });\n });\n },\n hasNext: o.hasNext,\n layouts: [{\n type: \"bi.vertical\"\n }]\n });\n\n this.button_group.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.ListPane.EVENT_CHANGE, value, obj);\n }\n });\n this.check();\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Top), BI.extend({\n scrolly: true,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n vgap: o.vgap,\n hgap: o.hgap\n }, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Top, this.button_group)\n }))));\n },\n\n hasPrev: function () {\n return this.button_group.hasPrev && this.button_group.hasPrev();\n },\n\n hasNext: function () {\n return this.button_group.hasNext && this.button_group.hasNext();\n },\n\n prependItems: function (items) {\n this.options.items = items.concat(this.options.items);\n this.button_group.prependItems.apply(this.button_group, arguments);\n this.check();\n },\n\n addItems: function (items) {\n this.options.items = this.options.items.concat(items);\n this.button_group.addItems.apply(this.button_group, arguments);\n this.check();\n },\n\n removeItemAt: function (indexes) {\n indexes = indexes || [];\n BI.removeAt(this.options.items, indexes);\n this.button_group.removeItemAt.apply(this.button_group, arguments);\n this.check();\n },\n\n populate: function (items) {\n var self = this, o = this.options;\n if (arguments.length === 0 && (BI.isFunction(this.button_group.attr(\"itemsCreator\")))) {// 接管loader的populate方法\n this.button_group.attr(\"itemsCreator\").apply(this, [{times: 1}, function () {\n if (arguments.length === 0) {\n throw new Error(\"参数不能为空\");\n }\n self.populate.apply(self, arguments);\n }]);\n return;\n }\n BI.ListPane.superclass.populate.apply(this, arguments);\n this.button_group.populate.apply(this.button_group, arguments);\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n setNotSelectedValue: function () {\n this.button_group.setNotSelectedValue.apply(this.button_group, arguments);\n },\n\n getNotSelectedValue: function () {\n return this.button_group.getNotSelectedValue();\n },\n\n setValue: function () {\n this.button_group.setValue.apply(this.button_group, arguments);\n },\n\n getValue: function () {\n return this.button_group.getValue.apply(this.button_group, arguments);\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n getAllLeaves: function () {\n return this.button_group.getAllLeaves();\n },\n\n getSelectedButtons: function () {\n return this.button_group.getSelectedButtons();\n },\n\n getNotSelectedButtons: function () {\n return this.button_group.getNotSelectedButtons();\n },\n\n getIndexByValue: function (value) {\n return this.button_group.getIndexByValue(value);\n },\n\n getNodeById: function (id) {\n return this.button_group.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n return this.button_group.getNodeByValue(value);\n }\n});\nBI.ListPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.list_pane\", BI.ListPane);/**\n * 带有标题栏的pane\n * @class BI.Panel\n * @extends BI.Widget\n */\nBI.Panel = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Panel.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-panel bi-border\",\n title: \"\",\n titleButtons: [],\n el: {},\n logic: {\n dynamic: false\n }\n });\n },\n\n _init: function () {\n BI.Panel.superclass._init.apply(this, arguments);\n var o = this.options;\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"vertical\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"top\", this._createTitle()\n , this.options.el)\n }))));\n },\n\n _createTitle: function () {\n var self = this, o = this.options;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"panel-title-text\",\n text: o.title,\n height: 30\n });\n\n this.button_group = BI.createWidget({\n type: \"bi.button_group\",\n items: o.titleButtons,\n layouts: [{\n type: \"bi.center_adapt\",\n lgap: 10\n }]\n });\n\n this.button_group.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.button_group.on(BI.ButtonGroup.EVENT_CHANGE, function (value, obj) {\n self.fireEvent(BI.Panel.EVENT_CHANGE, value, obj);\n });\n\n return {\n el: {\n type: \"bi.left_right_vertical_adapt\",\n cls: \"panel-title bi-header-background bi-border-bottom\",\n height: 29,\n items: {\n left: [this.text],\n right: [this.button_group]\n },\n lhgap: 10,\n rhgap: 10\n },\n height: 29\n };\n },\n\n setTitle: function (title) {\n this.text.setValue(title);\n }\n});\nBI.Panel.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.panel\", BI.Panel);\nBI.LinearSegmentButton = BI.inherit(BI.BasicButton, {\n\n props: {\n extraCls: \"bi-line-segment-button bi-list-item-effect\",\n once: true,\n readonly: true,\n hgap: 10,\n height: 25\n },\n\n render: function () {\n var self = this, o = this.options;\n\n return [{\n type: \"bi.label\",\n text: o.text,\n height: o.height,\n value: o.value,\n hgap: o.hgap,\n ref: function () {\n self.text = this;\n }\n }, {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.layout\",\n cls: \"line-segment-button-line\",\n height: 2,\n ref: function () {\n self.line = this;\n }\n },\n left: 0,\n right: 0,\n bottom: 0\n }]\n }];\n },\n\n setSelected: function (v) {\n BI.LinearSegmentButton.superclass.setSelected.apply(this, arguments);\n if (v) {\n this.line.element.addClass(\"bi-high-light-background\");\n } else {\n this.line.element.removeClass(\"bi-high-light-background\");\n }\n },\n\n setText: function (text) {\n this.text.setText(text);\n }\n});\nBI.shortcut(\"bi.linear_segment_button\", BI.LinearSegmentButton);BI.LinearSegment = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-linear-segment bi-split-bottom\",\n items: [],\n height: 29\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.button_group\",\n items: BI.createItems(o.items, {\n type: \"bi.linear_segment_button\",\n height: o.height - 1\n }),\n layout: [{\n type: \"bi.center\"\n }],\n listeners: [{\n eventName: \"__EVENT_CHANGE__\",\n action: function () {\n self.fireEvent(\"__EVENT_CHANGE__\", arguments);\n }\n }, {\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }],\n ref: function () {\n self.buttonGroup = this;\n }\n };\n },\n\n setValue: function (v) {\n this.buttonGroup.setValue(v);\n },\n\n setEnabledValue: function (v) {\n this.buttonGroup.setEnabledValue(v);\n },\n\n\n getValue: function () {\n return this.buttonGroup.getValue();\n }\n});\nBI.shortcut(\"bi.linear_segment\", BI.LinearSegment);/**\n * 选择列表\n *\n * Created by GUY on 2015/11/1.\n * @class BI.SelectList\n * @extends BI.Widget\n */\nBI.SelectList = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SelectList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-select-list\",\n direction: BI.Direction.Top, // toolbar的位置\n logic: {\n dynamic: true\n },\n items: [],\n itemsCreator: BI.emptyFn,\n hasNext: BI.emptyFn,\n onLoaded: BI.emptyFn,\n toolbar: {\n type: \"bi.multi_select_bar\",\n iconWrapperWidth: 36\n },\n el: {\n type: \"bi.list_pane\"\n }\n });\n },\n _init: function () {\n BI.SelectList.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n // 全选\n this.toolbar = BI.createWidget(o.toolbar);\n this.allSelected = false;\n this.toolbar.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.allSelected = this.isSelected();\n if (type === BI.Events.CLICK) {\n self.setAllSelected(self.allSelected);\n self.fireEvent(BI.SelectList.EVENT_CHANGE, value, obj);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.list = BI.createWidget(o.el, {\n type: \"bi.list_pane\",\n items: o.items,\n itemsCreator: function (op, callback) {\n op.times === 1 && self.toolbar.setVisible(false);\n o.itemsCreator(op, function (items) {\n callback.apply(self, arguments);\n if (op.times === 1) {\n self.toolbar.setVisible(items && items.length > 0);\n self.toolbar.setEnable(self.isEnabled() && items && items.length > 0);\n }\n self._checkAllSelected();\n });\n },\n onLoaded: o.onLoaded,\n hasNext: o.hasNext\n });\n\n this.list.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (type === BI.Events.CLICK) {\n self._checkAllSelected();\n self.fireEvent(BI.SelectList.EVENT_CHANGE, value, obj);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({\n scrolly: true\n }, o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.toolbar, this.list)\n }))));\n\n if (o.items.length <= 0) {\n this.toolbar.setVisible(false);\n this.toolbar.setEnable(false);\n }\n if(BI.isNotNull(o.value)){\n this.setValue(o.value);\n }\n },\n\n _checkAllSelected: function () {\n var selectLength = this.list.getValue().length;\n var notSelectLength = this.getAllLeaves().length - selectLength;\n var hasNext = this.list.hasNext();\n var isAlreadyAllSelected = this.toolbar.isSelected();\n var isHalf = selectLength > 0 && (notSelectLength > 0 || (!isAlreadyAllSelected && hasNext));\n isHalf = isHalf || (notSelectLength > 0 && hasNext && isAlreadyAllSelected);\n this.toolbar.setHalfSelected(isHalf);\n !isHalf && this.toolbar.setSelected(selectLength > 0 && notSelectLength <= 0 && (!hasNext || isAlreadyAllSelected));\n },\n\n setAllSelected: function (v) {\n BI.each(this.getAllButtons(), function (i, btn) {\n (btn.setSelected || btn.setAllSelected).apply(btn, [v]);\n });\n this.allSelected = !!v;\n this.toolbar.setSelected(v);\n this.toolbar.setHalfSelected(false);\n },\n\n setToolBarVisible: function (b) {\n this.toolbar.setVisible(b);\n },\n\n isAllSelected: function () {\n return this.allSelected;\n // return this.toolbar.isSelected();\n },\n\n hasPrev: function () {\n return this.list.hasPrev();\n },\n\n hasNext: function () {\n return this.list.hasNext();\n },\n\n prependItems: function (items) {\n this.list.prependItems.apply(this.list, arguments);\n },\n\n addItems: function (items) {\n this.list.addItems.apply(this.list, arguments);\n },\n\n setValue: function (data) {\n var selectAll = data.type === BI.ButtonGroup.CHOOSE_TYPE_ALL;\n this.setAllSelected(selectAll);\n this.list[selectAll ? \"setNotSelectedValue\" : \"setValue\"](data.value);\n this._checkAllSelected();\n },\n\n getValue: function () {\n if (this.isAllSelected() === false) {\n return {\n type: BI.ButtonGroup.CHOOSE_TYPE_MULTI,\n value: this.list.getValue(),\n assist: this.list.getNotSelectedValue()\n };\n }\n return {\n type: BI.ButtonGroup.CHOOSE_TYPE_ALL,\n value: this.list.getNotSelectedValue(),\n assist: this.list.getValue()\n };\n\n },\n\n empty: function () {\n this.list.empty();\n },\n\n populate: function (items) {\n this.toolbar.setVisible(!BI.isEmptyArray(items));\n this.toolbar.setEnable(this.isEnabled() && !BI.isEmptyArray(items));\n this.list.populate.apply(this.list, arguments);\n this._checkAllSelected();\n },\n\n _setEnable: function (enable) {\n BI.SelectList.superclass._setEnable.apply(this, arguments);\n this.toolbar.setEnable(enable);\n },\n\n resetHeight: function (h) {\n var toolHeight = ( this.toolbar.element.outerHeight() || 25) * ( this.toolbar.isVisible() ? 1 : 0);\n this.list.resetHeight ? this.list.resetHeight(h - toolHeight) :\n this.list.element.css({\"max-height\": h - toolHeight + \"px\"});\n },\n\n setNotSelectedValue: function () {\n this.list.setNotSelectedValue.apply(this.list, arguments);\n this._checkAllSelected();\n },\n\n getNotSelectedValue: function () {\n return this.list.getNotSelectedValue();\n },\n\n getAllButtons: function () {\n return this.list.getAllButtons();\n },\n\n getAllLeaves: function () {\n return this.list.getAllLeaves();\n },\n\n getSelectedButtons: function () {\n return this.list.getSelectedButtons();\n },\n\n getNotSelectedButtons: function () {\n return this.list.getNotSelectedButtons();\n },\n\n getIndexByValue: function (value) {\n return this.list.getIndexByValue(value);\n },\n\n getNodeById: function (id) {\n return this.list.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n return this.list.getNodeByValue(value);\n }\n});\nBI.SelectList.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.select_list\", BI.SelectList);/**\n * Created by roy on 15/11/6.\n */\nBI.LazyLoader = BI.inherit(BI.Widget, {\n _const: {\n PAGE: 100\n },\n _defaultConfig: function () {\n return BI.extend(BI.LazyLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-lazy-loader\",\n el: {}\n });\n },\n\n _init: function () {\n var self = this, o = this.options;\n BI.LazyLoader.superclass._init.apply(this, arguments);\n var all = o.items.length;\n this.loader = BI.createWidget({\n type: \"bi.loader\",\n element: this,\n // 下面是button_group的属性\n el: o.el,\n\n itemsCreator: function (options, populate) {\n populate(self._getNextItems(options));\n },\n hasNext: function (option) {\n return option.count < all;\n }\n });\n\n this.loader.on(BI.Loader.EVENT_CHANGE, function (obj) {\n self.fireEvent(BI.LazyLoader.EVENT_CHANGE, obj);\n });\n },\n _getNextItems: function (options) {\n var self = this, o = this.options;\n var lastNum = o.items.length - this._const.PAGE * (options.times - 1);\n var lastItems = BI.takeRight(o.items, lastNum);\n var nextItems = BI.take(lastItems, this._const.PAGE);\n return nextItems;\n },\n\n populate: function (items) {\n this.loader.populate(items);\n },\n\n addItems: function (items) {\n this.loader.addItems(items);\n },\n\n empty: function () {\n this.loader.empty();\n },\n\n setNotSelectedValue: function () {\n this.loader.setNotSelectedValue.apply(this.loader, arguments);\n },\n\n getNotSelectedValue: function () {\n return this.loader.getNotSelectedValue();\n },\n\n setValue: function () {\n this.loader.setValue.apply(this.loader, arguments);\n },\n\n getValue: function () {\n return this.loader.getValue.apply(this.loader, arguments);\n },\n\n getAllButtons: function () {\n return this.loader.getAllButtons();\n },\n\n getAllLeaves: function () {\n return this.loader.getAllLeaves();\n },\n\n getSelectedButtons: function () {\n return this.loader.getSelectedButtons();\n },\n\n getNotSelectedButtons: function () {\n return this.loader.getNotSelectedButtons();\n },\n\n getIndexByValue: function (value) {\n return this.loader.getIndexByValue(value);\n },\n\n getNodeById: function (id) {\n return this.loader.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n return this.loader.getNodeByValue(value);\n }\n});\nBI.LazyLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.lazy_loader\", BI.LazyLoader);/**\n * 恶心的加载控件, 为解决排序问题引入的控件\n *\n * Created by GUY on 2015/11/12.\n * @class BI.ListLoader\n * @extends BI.Widget\n */\nBI.ListLoader = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.ListLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-list-loader\",\n\n isDefaultInit: true, // 是否默认初始化数据\n\n // 下面是button_group的属性\n el: {\n type: \"bi.button_group\"\n },\n\n items: [],\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn,\n\n // 下面是分页信息\n count: false,\n next: {},\n hasNext: BI.emptyFn\n });\n },\n\n _nextLoad: function () {\n var self = this, o = this.options;\n this.next.setLoading();\n o.itemsCreator.apply(this, [{times: ++this.times}, function () {\n self.next.setLoaded();\n self.addItems.apply(self, arguments);\n }]);\n },\n\n _init: function () {\n BI.ListLoader.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (o.itemsCreator === false) {\n o.next = false;\n }\n\n this.button_group = BI.createWidget(o.el, {\n type: \"bi.button_group\",\n element: this,\n chooseType: 0,\n items: o.items,\n behaviors: {},\n layouts: [{\n type: \"bi.vertical\"\n }]\n });\n this.button_group.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.ListLoader.EVENT_CHANGE, obj);\n }\n });\n\n if (o.next !== false) {\n this.next = BI.createWidget(BI.extend({\n type: \"bi.loading_bar\"\n }, o.next));\n this.next.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self._nextLoad();\n }\n });\n }\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n items: [this.next]\n });\n\n o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {\n this.populate();\n }, this));\n if (BI.isNotEmptyArray(o.items)) {\n this.populate(o.items);\n }\n },\n\n hasNext: function () {\n var o = this.options;\n if (BI.isNumber(o.count)) {\n return this.count < o.count;\n }\n return !!o.hasNext.apply(this, [{\n times: this.times,\n count: this.count\n }]);\n },\n\n addItems: function (items) {\n this.count += items.length;\n if (BI.isObject(this.next)) {\n this.options.items = this.options.items.concat(items);\n if (this.hasNext()) {\n this.next.setLoaded();\n } else {\n this.next.setEnd();\n }\n }\n this.button_group.addItems.apply(this.button_group, arguments);\n this.next.element.appendTo(this.element);\n },\n\n populate: function (items) {\n var self = this, o = this.options;\n if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {\n o.itemsCreator.apply(this, [{times: 1}, function () {\n if (arguments.length === 0) {\n throw new Error(\"参数不能为空\");\n }\n self.populate.apply(self, arguments);\n o.onLoaded();\n }]);\n return;\n }\n this.options.items = items;\n this.times = 1;\n this.count = 0;\n this.count += items.length;\n if (BI.isObject(this.next)) {\n if (this.hasNext()) {\n this.next.setLoaded();\n } else {\n this.next.invisible();\n }\n }\n BI.DOM.hang([this.next]);\n this.button_group.populate.apply(this.button_group, arguments);\n this.next.element.appendTo(this.element);\n },\n\n empty: function () {\n BI.DOM.hang([this.next]);\n this.button_group.empty();\n this.next.element.appendTo(this.element);\n BI.each([this.next], function (i, ob) {\n ob && ob.setVisible(false);\n });\n },\n\n setNotSelectedValue: function () {\n this.button_group.setNotSelectedValue.apply(this.button_group, arguments);\n },\n\n getNotSelectedValue: function () {\n return this.button_group.getNotSelectedValue();\n },\n\n setValue: function () {\n this.button_group.setValue.apply(this.button_group, arguments);\n },\n\n getValue: function () {\n return this.button_group.getValue.apply(this.button_group, arguments);\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n getAllLeaves: function () {\n return this.button_group.getAllLeaves();\n },\n\n getSelectedButtons: function () {\n return this.button_group.getSelectedButtons();\n },\n\n getNotSelectedButtons: function () {\n return this.button_group.getNotSelectedButtons();\n },\n\n getIndexByValue: function (value) {\n return this.button_group.getIndexByValue(value);\n },\n\n getNodeById: function (id) {\n return this.button_group.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n return this.button_group.getNodeByValue(value);\n }\n});\nBI.ListLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.list_loader\", BI.ListLoader);/**\n * Created by GUY on 2016/4/29.\n *\n * @class BI.SortList\n * @extends BI.Widget\n */\nBI.SortList = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.SortList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-sort-list\",\n\n isDefaultInit: true, // 是否默认初始化数据\n\n // 下面是button_group的属性\n el: {\n type: \"bi.button_group\"\n },\n\n items: [],\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn,\n\n // 下面是分页信息\n count: false,\n next: {},\n hasNext: BI.emptyFn\n\n // containment: this.element,\n // connectWith: \".bi-sort-list\",\n });\n },\n\n _init: function () {\n BI.SortList.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.loader = BI.createWidget({\n type: \"bi.list_loader\",\n element: this,\n isDefaultInit: o.isDefaultInit,\n el: o.el,\n items: this._formatItems(o.items),\n itemsCreator: function (op, callback) {\n o.itemsCreator(op, function (items) {\n callback(self._formatItems(items));\n });\n },\n onLoaded: o.onLoaded,\n count: o.count,\n next: o.next,\n hasNext: o.hasNext\n });\n this.loader.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.SortList.EVENT_CHANGE, value, obj);\n }\n });\n\n this.loader.element.sortable({\n containment: o.containment || this.element,\n connectWith: o.connectWith || \".bi-sort-list\",\n items: \".sort-item\",\n cursor: o.cursor || \"drag\",\n tolerance: o.tolerance || \"intersect\",\n placeholder: {\n element: function ($currentItem) {\n var holder = BI.createWidget({\n type: \"bi.layout\",\n cls: \"bi-sortable-holder\",\n height: $currentItem.outerHeight()\n });\n holder.element.css({\n \"margin-left\": $currentItem.css(\"margin-left\"),\n \"margin-right\": $currentItem.css(\"margin-right\"),\n \"margin-top\": $currentItem.css(\"margin-top\"),\n \"margin-bottom\": $currentItem.css(\"margin-bottom\"),\n margin: $currentItem.css(\"margin\")\n });\n return holder.element;\n },\n update: function () {\n\n }\n },\n start: function (event, ui) {\n\n },\n stop: function (event, ui) {\n self.fireEvent(BI.SortList.EVENT_CHANGE);\n },\n over: function (event, ui) {\n\n }\n });\n },\n\n _formatItems: function (items) {\n BI.each(items, function (i, item) {\n item = BI.stripEL(item);\n item.cls = item.cls ? item.cls + \" sort-item\" : \"sort-item\";\n item.attributes = {\n sorted: item.value\n };\n });\n return items;\n },\n\n hasNext: function () {\n return this.loader.hasNext();\n },\n\n addItems: function (items) {\n this.loader.addItems(items);\n },\n\n populate: function (items) {\n if (items) {\n arguments[0] = this._formatItems(items);\n }\n this.loader.populate.apply(this.loader, arguments);\n },\n\n empty: function () {\n this.loader.empty();\n },\n\n setNotSelectedValue: function () {\n this.loader.setNotSelectedValue.apply(this.loader, arguments);\n },\n\n getNotSelectedValue: function () {\n return this.loader.getNotSelectedValue();\n },\n\n setValue: function () {\n this.loader.setValue.apply(this.loader, arguments);\n },\n\n getValue: function () {\n return this.loader.getValue();\n },\n\n getAllButtons: function () {\n return this.loader.getAllButtons();\n },\n\n getAllLeaves: function () {\n return this.loader.getAllLeaves();\n },\n\n getSelectedButtons: function () {\n return this.loader.getSelectedButtons();\n },\n\n getNotSelectedButtons: function () {\n return this.loader.getNotSelectedButtons();\n },\n\n getIndexByValue: function (value) {\n return this.loader.getIndexByValue(value);\n },\n\n getNodeById: function (id) {\n return this.loader.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n return this.loader.getNodeByValue(value);\n },\n\n getSortedValues: function () {\n return this.loader.element.sortable(\"toArray\", {attribute: \"sorted\"});\n }\n});\nBI.SortList.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.sort_list\", BI.SortList);\n/**\n * author: young\n * createdDate: 2018/12/18\n * description:\n */\nBI.LoadingPane = BI.inherit(BI.Pane, {\n _mount: function () {\n var isMounted = BI.Pane.superclass._mount.apply(this, arguments);\n if (isMounted) {\n if (this.beforeInit) {\n this.__asking = true;\n this.loading();\n this.beforeInit(BI.bind(this.__loaded, this));\n }\n }\n },\n\n _initRender: function () {\n if (this.beforeInit) {\n this.__async = true;\n } else {\n this._render();\n }\n },\n\n __loaded: function () {\n this.__asking = false;\n this.loaded();\n this._render();\n }\n});/**\n * 有总页数和总行数的分页控件\n * Created by Young's on 2016/10/13.\n */\nBI.AllCountPager = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-all-count-pager\",\n pagerDirection: \"vertical\", // 翻页按钮方向,可选值:vertical/horizontal\n height: 24,\n pages: 1, // 必选项\n curr: 1, // 初始化当前页, pages为数字时可用,\n count: 1 // 总行数\n });\n },\n _init: function () {\n BI.AllCountPager.superclass._init.apply(this, arguments);\n var self = this, o = this.options, pagerIconCls = this._getPagerIconCls();\n this.editor = BI.createWidget({\n type: \"bi.small_text_editor\",\n cls: \"pager-editor bi-border-radius\",\n validationChecker: function (v) {\n return (self.rowCount.getValue() === 0 && v === \"0\") || BI.isPositiveInteger(v);\n },\n hgap: 4,\n vgap: 0,\n value: o.curr,\n errorText: BI.i18nText(\"BI-Please_Input_Positive_Integer\"),\n width: 40,\n height: 24,\n invisible: o.pages <= 1\n });\n\n this.pager = BI.createWidget({\n type: \"bi.pager\",\n width: 58,\n layouts: [{\n type: \"bi.horizontal\",\n lgap: 5\n }],\n\n dynamicShow: false,\n pages: o.pages,\n curr: o.curr,\n groups: 0,\n\n first: false,\n last: false,\n prev: {\n type: \"bi.icon_button\",\n value: \"prev\",\n title: BI.i18nText(\"BI-Previous_Page\"),\n warningTitle: BI.i18nText(\"BI-Current_Is_First_Page\"),\n height: 22,\n width: 22,\n cls: \"bi-border bi-border-radius all-pager-prev bi-list-item-select2 \" + pagerIconCls.preCls\n },\n next: {\n type: \"bi.icon_button\",\n value: \"next\",\n title: BI.i18nText(\"BI-Next_Page\"),\n warningTitle: BI.i18nText(\"BI-Current_Is_Last_Page\"),\n height: 22,\n width: 22,\n cls: \"bi-border bi-border-radius all-pager-next bi-list-item-select2 \" + pagerIconCls.nextCls\n },\n\n hasPrev: o.hasPrev,\n hasNext: o.hasNext,\n firstPage: o.firstPage,\n lastPage: o.lastPage,\n invisible: o.pages <= 1\n });\n\n this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {\n self.pager.setValue(BI.parseInt(self.editor.getValue()));\n self.fireEvent(BI.AllCountPager.EVENT_CHANGE);\n });\n this.pager.on(BI.Pager.EVENT_CHANGE, function () {\n self.fireEvent(BI.AllCountPager.EVENT_CHANGE);\n });\n this.pager.on(BI.Pager.EVENT_AFTER_POPULATE, function () {\n self.editor.setValue(self.pager.getCurrentPage());\n });\n\n this.allPages = BI.createWidget({\n type: \"bi.label\",\n title: o.pages,\n text: \"/\" + o.pages,\n lgap: 5,\n invisible: o.pages <= 1\n });\n\n this.rowCount = BI.createWidget({\n type: \"bi.label\",\n cls: \"row-count\",\n height: o.height,\n hgap: 5,\n text: o.count,\n title: o.count\n });\n\n var count = BI.createWidget({\n type: \"bi.left\",\n height: o.height,\n scrollable: false,\n items: [{\n type: \"bi.label\",\n height: o.height,\n text: BI.i18nText(\"BI-Basic_Total\"),\n width: 15\n }, this.rowCount, {\n type: \"bi.label\",\n height: o.height,\n text: BI.i18nText(\"BI-Tiao_Data\"),\n width: 50,\n textAlign: \"left\"\n }]\n });\n BI.createWidget({\n type: \"bi.left_right_vertical_adapt\",\n element: this,\n items: {\n left: [count],\n right: [this.editor, this.allPages, this.pager]\n }\n });\n },\n\n alwaysShowPager: true,\n\n _getPagerIconCls: function () {\n var o = this.options;\n switch (o.pagerDirection) {\n case \"horizontal\":\n return {\n preCls: \"row-pre-page-h-font \",\n nextCls: \"row-next-page-h-font \"\n };\n case \"vertical\":\n default:\n return {\n preCls: \"column-pre-page-h-font \",\n nextCls: \"column-next-page-h-font \"\n };\n }\n },\n\n setAllPages: function (v) {\n this.allPages.setText(\"/\" + v);\n this.allPages.setTitle(v);\n this.options.pages = v;\n this.pager.setAllPages(v);\n this.editor.setEnable(v >= 1);\n this.setPagerVisible(v > 1);\n },\n\n setValue: function (v) {\n this.pager.setValue(v);\n },\n\n setVPage: function (v) {\n this.pager.setValue(v);\n },\n\n setCount: function (count) {\n this.rowCount.setText(count);\n this.rowCount.setTitle(count);\n },\n\n getCurrentPage: function () {\n return this.pager.getCurrentPage();\n },\n\n hasPrev: function () {\n return this.pager.hasPrev();\n },\n\n hasNext: function () {\n return this.pager.hasNext();\n },\n\n setPagerVisible: function (b) {\n this.editor.setVisible(b);\n this.allPages.setVisible(b);\n this.pager.setVisible(b);\n },\n\n populate: function () {\n this.pager.populate();\n this.setPagerVisible(this.options.pages > 1);\n }\n});\nBI.AllCountPager.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.all_count_pager\", BI.AllCountPager);/**\n * 显示页码的分页控件\n *\n * Created by GUY on 2016/6/30.\n * @class BI.DirectionPager\n * @extends BI.Widget\n */\nBI.DirectionPager = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-direction-pager\",\n height: 24,\n horizontal: {\n pages: false, // 总页数\n curr: 1, // 初始化当前页, pages为数字时可用\n\n hasPrev: BI.emptyFn,\n hasNext: BI.emptyFn,\n firstPage: 1,\n lastPage: BI.emptyFn\n },\n vertical: {\n pages: false, // 总页数\n curr: 1, // 初始化当前页, pages为数字时可用\n\n hasPrev: BI.emptyFn,\n hasNext: BI.emptyFn,\n firstPage: 1,\n lastPage: BI.emptyFn\n }\n });\n },\n _init: function () {\n BI.DirectionPager.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var v = o.vertical, h = o.horizontal;\n this._createVPager();\n this._createHPager();\n this.layout = BI.createWidget({\n type: \"bi.absolute\",\n scrollable: false,\n element: this,\n items: [{\n el: this.vpager,\n top: 0,\n right: 86\n }, {\n el: this.vlabel,\n top: 0,\n right: 110\n }, {\n el: this.hpager,\n top: 0,\n right: 0\n }, {\n el: this.hlabel,\n top: 0,\n right: 24\n }]\n });\n },\n\n _createVPager: function () {\n var self = this, o = this.options;\n var v = o.vertical;\n this.vlabel = BI.createWidget({\n type: \"bi.label\",\n width: 24,\n height: 24,\n value: v.curr,\n title: v.curr,\n invisible: true\n });\n this.vpager = BI.createWidget({\n type: \"bi.pager\",\n width: 72,\n layouts: [{\n type: \"bi.horizontal\",\n scrollx: false,\n rgap: 24\n }],\n invisible: true,\n\n dynamicShow: false,\n pages: v.pages,\n curr: v.curr,\n groups: 0,\n\n first: false,\n last: false,\n prev: {\n type: \"bi.icon_button\",\n value: \"prev\",\n title: BI.i18nText(\"BI-Up_Page\"),\n warningTitle: BI.i18nText(\"BI-Current_Is_First_Page\"),\n height: 22,\n width: 22,\n cls: \"bi-border bi-border-radius direction-pager-prev column-pre-page-h-font bi-list-item-select2\"\n },\n next: {\n type: \"bi.icon_button\",\n value: \"next\",\n title: BI.i18nText(\"BI-Down_Page\"),\n warningTitle: BI.i18nText(\"BI-Current_Is_Last_Page\"),\n height: 22,\n width: 22,\n cls: \"bi-border bi-border-radius direction-pager-next column-next-page-h-font bi-list-item-select2\"\n },\n\n hasPrev: v.hasPrev,\n hasNext: v.hasNext,\n firstPage: v.firstPage,\n lastPage: v.lastPage\n });\n\n this.vpager.on(BI.Pager.EVENT_CHANGE, function () {\n self.fireEvent(BI.DirectionPager.EVENT_CHANGE);\n });\n this.vpager.on(BI.Pager.EVENT_AFTER_POPULATE, function () {\n self.vlabel.setValue(this.getCurrentPage());\n self.vlabel.setTitle(this.getCurrentPage());\n });\n },\n\n _createHPager: function () {\n var self = this, o = this.options;\n var h = o.horizontal;\n this.hlabel = BI.createWidget({\n type: \"bi.label\",\n width: 24,\n height: 24,\n value: h.curr,\n title: h.curr,\n invisible: true\n });\n this.hpager = BI.createWidget({\n type: \"bi.pager\",\n width: 72,\n layouts: [{\n type: \"bi.horizontal\",\n scrollx: false,\n rgap: 24\n }],\n invisible: true,\n\n dynamicShow: false,\n pages: h.pages,\n curr: h.curr,\n groups: 0,\n\n first: false,\n last: false,\n prev: {\n type: \"bi.icon_button\",\n value: \"prev\",\n title: BI.i18nText(\"BI-Left_Page\"),\n warningTitle: BI.i18nText(\"BI-Current_Is_First_Page\"),\n height: 22,\n width: 22,\n cls: \"bi-border bi-border-radius direction-pager-prev row-pre-page-h-font bi-list-item-select2\"\n },\n next: {\n type: \"bi.icon_button\",\n value: \"next\",\n title: BI.i18nText(\"BI-Right_Page\"),\n warningTitle: BI.i18nText(\"BI-Current_Is_Last_Page\"),\n height: 22,\n width: 22,\n cls: \"bi-border bi-border-radius direction-pager-next row-next-page-h-font bi-list-item-select2\"\n },\n\n hasPrev: h.hasPrev,\n hasNext: h.hasNext,\n firstPage: h.firstPage,\n lastPage: h.lastPage\n });\n\n this.hpager.on(BI.Pager.EVENT_CHANGE, function () {\n self.fireEvent(BI.DirectionPager.EVENT_CHANGE);\n });\n this.hpager.on(BI.Pager.EVENT_AFTER_POPULATE, function () {\n self.hlabel.setValue(this.getCurrentPage());\n self.hlabel.setTitle(this.getCurrentPage());\n });\n },\n\n getVPage: function () {\n return this.vpager.getCurrentPage();\n },\n\n getHPage: function () {\n return this.hpager.getCurrentPage();\n },\n\n setVPage: function (v) {\n this.vpager.setValue(v);\n this.vlabel.setValue(v);\n this.vlabel.setTitle(v);\n },\n\n setHPage: function (v) {\n this.hpager.setValue(v);\n this.hlabel.setValue(v);\n this.hlabel.setTitle(v);\n },\n\n hasVNext: function () {\n return this.vpager.hasNext();\n },\n\n hasHNext: function () {\n return this.hpager.hasNext();\n },\n\n hasVPrev: function () {\n return this.vpager.hasPrev();\n },\n\n hasHPrev: function () {\n return this.hpager.hasPrev();\n },\n\n setHPagerVisible: function (b) {\n this.hpager.setVisible(b);\n this.hlabel.setVisible(b);\n },\n\n setVPagerVisible: function (b) {\n this.vpager.setVisible(b);\n this.vlabel.setVisible(b);\n },\n\n populate: function () {\n this.vpager.populate();\n this.hpager.populate();\n var vShow = false, hShow = false;\n if (!this.hasHNext() && !this.hasHPrev()) {\n this.setHPagerVisible(false);\n } else {\n this.setHPagerVisible(true);\n hShow = true;\n }\n if (!this.hasVNext() && !this.hasVPrev()) {\n this.setVPagerVisible(false);\n } else {\n this.setVPagerVisible(true);\n vShow = true;\n }\n this.setVisible(hShow || vShow);\n var num = [86, 110, 0, 24];\n var items = this.layout.attr(\"items\");\n\n if (vShow === true && hShow === true) {\n items[0].right = num[0];\n items[1].right = num[1];\n items[2].right = num[2];\n items[3].right = num[3];\n } else if (vShow === true) {\n items[0].right = num[2];\n items[1].right = num[3];\n } else if (hShow === true) {\n items[2].right = num[2];\n items[3].right = num[3];\n }\n this.layout.attr(\"items\", items);\n this.layout.resize();\n },\n\n clear: function () {\n this.vpager.attr(\"curr\", 1);\n this.hpager.attr(\"curr\", 1);\n }\n});\nBI.DirectionPager.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.direction_pager\", BI.DirectionPager);/**\n * 分页控件\n *\n * Created by GUY on 2015/8/31.\n * @class BI.DetailPager\n * @extends BI.Widget\n */\nBI.DetailPager = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.DetailPager.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-detail-pager\",\n behaviors: {},\n layouts: [{\n type: \"bi.horizontal\",\n hgap: 10,\n vgap: 0\n }],\n\n dynamicShow: true, // 是否动态显示上一页、下一页、首页、尾页, 若为false,则指对其设置使能状态\n // dynamicShow为false时以下两个有用\n dynamicShowFirstLast: false, // 是否动态显示首页、尾页\n dynamicShowPrevNext: false, // 是否动态显示上一页、下一页\n pages: false, // 总页数\n curr: function () {\n return 1;\n }, // 初始化当前页\n groups: 0, // 连续显示分页数\n jump: BI.emptyFn, // 分页的回调函数\n\n first: false, // 是否显示首页\n last: false, // 是否显示尾页\n prev: \"上一页\",\n next: \"下一页\",\n\n firstPage: 1,\n lastPage: function () { // 在万不得已时才会调用这个函数获取最后一页的页码, 主要作用于setValue方法\n return 1;\n },\n hasPrev: BI.emptyFn, // pages不可用时有效\n hasNext: BI.emptyFn // pages不可用时有效\n });\n },\n _init: function () {\n BI.DetailPager.superclass._init.apply(this, arguments);\n var self = this;\n this.currPage = BI.result(this.options, \"curr\");\n // 翻页太灵敏\n this._lock = false;\n this._debouce = BI.debounce(function () {\n self._lock = false;\n }, 300);\n this._populate();\n },\n\n _populate: function () {\n var self = this, o = this.options, view = [], dict = {};\n this.empty();\n var pages = BI.result(o, \"pages\");\n var curr = BI.result(this, \"currPage\");\n var groups = BI.result(o, \"groups\");\n var first = BI.result(o, \"first\");\n var last = BI.result(o, \"last\");\n var prev = BI.result(o, \"prev\");\n var next = BI.result(o, \"next\");\n\n if (pages === false) {\n groups = 0;\n first = false;\n last = false;\n } else {\n groups > pages && (groups = pages);\n }\n\n // 计算当前组\n dict.index = Math.ceil((curr + ((groups > 1 && groups !== pages) ? 1 : 0)) / (groups === 0 ? 1 : groups));\n\n // 当前页非首页,则输出上一页\n if (((!o.dynamicShow && !o.dynamicShowPrevNext) || curr > 1) && prev !== false) {\n if (BI.isKey(prev)) {\n view.push({\n text: prev,\n value: \"prev\",\n disabled: pages === false ? o.hasPrev(curr) === false : !(curr > 1 && prev !== false)\n });\n } else {\n view.push(BI.extend({\n disabled: pages === false ? o.hasPrev(curr) === false : !(curr > 1 && prev !== false)\n }, prev));\n }\n }\n\n // 当前组非首组,则输出首页\n if (((!o.dynamicShow && !o.dynamicShowFirstLast) || (dict.index > 1 && groups !== 0)) && first) {\n view.push({\n text: first,\n value: \"first\",\n disabled: !(dict.index > 1 && groups !== 0)\n });\n if (dict.index > 1 && groups !== 0) {\n view.push({\n type: \"bi.label\",\n cls: \"page-ellipsis\",\n text: \"\\u2026\"\n });\n }\n }\n\n // 输出当前页组\n dict.poor = Math.floor((groups - 1) / 2);\n dict.start = dict.index > 1 ? curr - dict.poor : 1;\n dict.end = dict.index > 1 ? (function () {\n var max = curr + (groups - dict.poor - 1);\n return max > pages ? pages : max;\n }()) : groups;\n if (dict.end - dict.start < groups - 1) { // 最后一组状态\n dict.start = dict.end - groups + 1;\n }\n var s = dict.start, e = dict.end;\n if (first && last && (dict.index > 1 && groups !== 0) && (pages > groups && dict.end < pages && groups !== 0)) {\n s++;\n e--;\n }\n for (; s <= e; s++) {\n if (s === curr) {\n view.push({\n text: s,\n value: s,\n selected: true\n });\n } else {\n view.push({\n text: s,\n value: s\n });\n }\n }\n\n // 总页数大于连续分页数,且当前组最大页小于总页,输出尾页\n if (((!o.dynamicShow && !o.dynamicShowFirstLast) || (pages > groups && dict.end < pages && groups !== 0)) && last) {\n if (pages > groups && dict.end < pages && groups !== 0) {\n view.push({\n type: \"bi.label\",\n cls: \"page-ellipsis\",\n text: \"\\u2026\"\n });\n }\n view.push({\n text: last,\n value: \"last\",\n disabled: !(pages > groups && dict.end < pages && groups !== 0)\n });\n }\n\n // 当前页不为尾页时,输出下一页\n dict.flow = !prev && groups === 0;\n if (((!o.dynamicShow && !o.dynamicShowPrevNext) && next) || (curr !== pages && next || dict.flow)) {\n view.push((function () {\n if (BI.isKey(next)) {\n if (pages === false) {\n return {text: next, value: \"next\", disabled: o.hasNext(curr) === false};\n }\n return (dict.flow && curr === pages)\n ?\n {text: next, value: \"next\", disabled: true}\n :\n {text: next, value: \"next\", disabled: !(curr !== pages && next || dict.flow)};\n }\n return BI.extend({\n disabled: pages === false ? o.hasNext(curr) === false : !(curr !== pages && next || dict.flow)\n }, next);\n \n }()));\n }\n\n this.button_group = BI.createWidget({\n type: \"bi.button_group\",\n element: this,\n items: BI.createItems(view, {\n cls: \"page-item bi-border bi-list-item-active\",\n height: 23,\n hgap: 10\n }),\n behaviors: o.behaviors,\n layouts: o.layouts\n });\n this.button_group.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (self._lock === true) {\n return;\n }\n self._lock = true;\n self._debouce();\n if (type === BI.Events.CLICK) {\n var v = self.button_group.getValue()[0];\n switch (v) {\n case \"first\":\n self.currPage = 1;\n break;\n case \"last\":\n self.currPage = pages;\n break;\n case \"prev\":\n self.currPage--;\n break;\n case \"next\":\n self.currPage++;\n break;\n default:\n self.currPage = v;\n break;\n }\n o.jump.apply(self, [{\n pages: pages,\n curr: self.currPage\n }]);\n self._populate();\n self.fireEvent(BI.DetailPager.EVENT_CHANGE, obj);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.fireEvent(BI.DetailPager.EVENT_AFTER_POPULATE);\n },\n\n getCurrentPage: function () {\n return this.currPage;\n },\n\n setAllPages: function (pages) {\n this.options.pages = pages;\n },\n\n hasPrev: function (v) {\n v || (v = 1);\n var o = this.options;\n var pages = this.options.pages;\n return pages === false ? o.hasPrev(v) : v > 1;\n },\n\n hasNext: function (v) {\n v || (v = 1);\n var o = this.options;\n var pages = this.options.pages;\n return pages === false ? o.hasNext(v) : v < pages;\n },\n\n setValue: function (v) {\n var o = this.options;\n v = v | 0;\n v = v < 1 ? 1 : v;\n if (o.pages === false) {\n var lastPage = BI.result(o, \"lastPage\"), firstPage = 1;\n this.currPage = v > lastPage ? lastPage : ((firstPage = BI.result(o, \"firstPage\")), (v < firstPage ? firstPage : v));\n } else {\n v = v > o.pages ? o.pages : v;\n this.currPage = v;\n }\n this._populate();\n },\n\n getValue: function () {\n var val = this.button_group.getValue()[0];\n switch (val) {\n case \"prev\":\n return -1;\n case \"next\":\n return 1;\n case \"first\":\n return BI.MIN;\n case \"last\":\n return BI.MAX;\n default :\n return val;\n }\n },\n\n attr: function (key, value) {\n BI.DetailPager.superclass.attr.apply(this, arguments);\n if (key === \"curr\") {\n this.currPage = BI.result(this.options, \"curr\");\n }\n },\n\n populate: function () {\n this._populate();\n }\n});\nBI.DetailPager.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DetailPager.EVENT_AFTER_POPULATE = \"EVENT_AFTER_POPULATE\";\nBI.shortcut(\"bi.detail_pager\", BI.DetailPager);/**\n * 分段控件使用的button\n *\n * Created by GUY on 2015/9/7.\n * @class BI.SegmentButton\n * @extends BI.BasicButton\n */\nBI.SegmentButton = BI.inherit(BI.BasicButton, {\n\n _defaultConfig: function () {\n var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-segment-button bi-list-item-select\",\n shadow: true,\n readonly: true,\n hgap: 5\n });\n },\n\n _init: function () {\n BI.SegmentButton.superclass._init.apply(this, arguments);\n var opts = this.options, self = this;\n // if (BI.isNumber(opts.height) && BI.isNull(opts.lineHeight)) {\n // this.element.css({lineHeight : (opts.height - 2) + 'px'});\n // }\n this.text = BI.createWidget({\n type: \"bi.label\",\n element: this,\n textHeight: opts.height,\n whiteSpace: opts.whiteSpace,\n text: opts.text,\n value: opts.value,\n hgap: opts.hgap\n });\n },\n\n setSelected: function () {\n BI.SegmentButton.superclass.setSelected.apply(this, arguments);\n },\n\n setText: function (text) {\n BI.SegmentButton.superclass.setText.apply(this, arguments);\n this.text.setText(text);\n },\n\n destroy: function () {\n BI.SegmentButton.superclass.destroy.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.segment_button\", BI.SegmentButton);/**\n * 单选按钮组\n *\n * Created by GUY on 2015/9/7.\n * @class BI.Segment\n * @extends BI.Widget\n */\nBI.Segment = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.Segment.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-segment\",\n items: [],\n height: 24\n });\n },\n _init: function () {\n BI.Segment.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.buttonGroup = BI.createWidget({\n element: this,\n type: \"bi.button_group\",\n value: o.value,\n items: BI.createItems(o.items, {\n type: \"bi.segment_button\",\n height: o.height - 2,\n whiteSpace: o.whiteSpace\n }),\n layout: [\n {\n type: \"bi.center\"\n }\n ]\n });\n this.buttonGroup.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.buttonGroup.on(BI.ButtonGroup.EVENT_CHANGE, function (value, obj) {\n self.fireEvent(BI.Segment.EVENT_CHANGE, value, obj);\n });\n },\n\n _setEnable: function (enable) {\n BI.Segment.superclass._setEnable.apply(this, arguments);\n if (enable === true) {\n this.element.removeClass(\"base-disabled disabled\");\n } else if (enable === false) {\n this.element.addClass(\"base-disabled disabled\");\n }\n },\n\n setValue: function (v) {\n this.buttonGroup.setValue(v);\n },\n\n setEnabledValue: function (v) {\n this.buttonGroup.setEnabledValue(v);\n },\n\n getValue: function () {\n return this.buttonGroup.getValue();\n }\n});\nBI.Segment.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.segment\", BI.Segment);/**\n * guy\n * 复选导航条\n * Created by GUY on 2015/8/25.\n * @class BI.MultiSelectBar\n * @extends BI.BasicButton\n */\nBI.MultiSelectBar = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectBar.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-multi-select-bar\",\n height: 25,\n text: BI.i18nText(\"BI-Select_All\"),\n isAllCheckedBySelectedValue: BI.emptyFn,\n // 手动控制选中\n disableSelected: true,\n isHalfCheckedBySelectedValue: function (selectedValues) {\n return selectedValues.length > 0;\n },\n halfSelected: false,\n iconWrapperWidth: 26\n });\n },\n _init: function () {\n BI.MultiSelectBar.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var isSelect = o.selected === true;\n var isHalfSelect = !o.selected && o.halfSelected;\n this.checkbox = BI.createWidget({\n type: \"bi.checkbox\",\n stopPropagation: true,\n handler: function () {\n self.setSelected(self.isSelected());\n },\n selected: isSelect,\n invisible: isHalfSelect\n });\n this.half = BI.createWidget({\n type: \"bi.half_icon_button\",\n stopPropagation: true,\n handler: function () {\n self.setSelected(true);\n },\n invisible: isSelect || !isHalfSelect\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);\n });\n this.checkbox.on(BI.Checkbox.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);\n });\n this.half.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);\n });\n this.half.on(BI.HalfIconButton.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n keyword: o.keyword,\n value: o.value,\n py: o.py\n });\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n width: o.iconWrapperWidth,\n el: {\n type: \"bi.center_adapt\",\n items: [this.checkbox, this.half]\n }\n }, {\n el: this.text\n }]\n });\n },\n\n _setSelected: function (v) {\n this.checkbox.setSelected(!!v);\n },\n\n // 自己手动控制选中\n beforeClick: function () {\n var isHalf = this.isHalfSelected(), isSelected = this.isSelected();\n if (isHalf === true) {\n this.setSelected(true);\n } else {\n this.setSelected(!isSelected);\n }\n },\n\n setSelected: function (v) {\n this.checkbox.setSelected(v);\n this.setHalfSelected(false);\n },\n\n setHalfSelected: function (b) {\n this.halfSelected = !!b;\n if (b === true) {\n this.checkbox.setSelected(false);\n this.half.visible();\n this.checkbox.invisible();\n } else {\n this.half.invisible();\n this.checkbox.visible();\n }\n },\n\n isHalfSelected: function () {\n return !this.isSelected() && !!this.halfSelected;\n },\n\n isSelected: function () {\n return this.checkbox.isSelected();\n },\n\n setValue: function (selectedValues) {\n BI.MultiSelectBar.superclass.setValue.apply(this, arguments);\n var isAllChecked = this.options.isAllCheckedBySelectedValue.apply(this, arguments);\n this._setSelected(isAllChecked);\n !isAllChecked && this.setHalfSelected(this.options.isHalfCheckedBySelectedValue.apply(this, arguments));\n },\n\n doClick: function () {\n BI.MultiSelectBar.superclass.doClick.apply(this, arguments);\n if(this.isValid()) {\n this.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, this.isSelected(), this);\n }\n }\n});\nBI.MultiSelectBar.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_bar\", BI.MultiSelectBar);\n/**\n * guy\n * 二级树\n * @class BI.LevelTree\n * @extends BI.Single\n */\nBI.LevelTree = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.LevelTree.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-level-tree\",\n el: {\n chooseType: 0\n },\n expander: {},\n items: [],\n value: \"\"\n });\n },\n\n _init: function () {\n BI.LevelTree.superclass._init.apply(this, arguments);\n\n this.initTree(this.options.items);\n },\n\n _formatItems: function (nodes, layer, pNode) {\n var self = this;\n BI.each(nodes, function (i, node) {\n var extend = {layer: layer};\n if (!BI.isKey(node.id)) {\n node.id = BI.UUID();\n }\n extend.pNode = pNode;\n if (node.isParent === true || node.parent === true || BI.isNotEmptyArray(node.children)) {\n extend.type = \"bi.mid_plus_group_node\";\n if (i === nodes.length - 1) {\n extend.type = \"bi.last_plus_group_node\";\n extend.isLastNode = true;\n }\n if (i === 0 && !pNode) {\n extend.type = \"bi.first_plus_group_node\"\n }\n if (i === 0 && i === nodes.length - 1) { // 根\n extend.type = \"bi.plus_group_node\";\n }\n BI.defaults(node, extend);\n self._formatItems(node.children, layer + 1, node);\n } else {\n extend.type = \"bi.mid_tree_leaf_item\";\n if (i === 0 && !pNode) {\n extend.type = \"bi.first_tree_leaf_item\"\n }\n if (i === nodes.length - 1) {\n extend.type = \"bi.last_tree_leaf_item\";\n }\n BI.defaults(node, extend);\n }\n });\n return nodes;\n },\n\n _assertId: function (sNodes) {\n BI.each(sNodes, function (i, node) {\n if (!BI.isKey(node.id)) {\n node.id = BI.UUID();\n }\n });\n },\n\n // 构造树结构,\n initTree: function (nodes) {\n var self = this, o = this.options;\n this.empty();\n this._assertId(nodes);\n this.tree = BI.createWidget({\n type: \"bi.custom_tree\",\n element: this,\n expander: BI.extend({\n el: {},\n popup: {\n type: \"bi.custom_tree\"\n }\n }, o.expander),\n\n items: this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0),\n value: o.value,\n\n el: BI.extend({\n type: \"bi.button_tree\",\n chooseType: 0,\n layouts: [{\n type: \"bi.vertical\"\n }]\n }, o.el)\n });\n this.tree.on(BI.Controller.EVENT_CHANGE, function (type, value, ob) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.LevelTree.EVENT_CHANGE, value, ob);\n }\n });\n },\n\n // 生成树方法\n stroke: function (nodes) {\n this.tree.stroke.apply(this.tree, arguments);\n },\n\n populate: function (items, keyword) {\n items = this._formatItems(BI.Tree.transformToTreeFormat(items), 0);\n this.tree.populate(items, keyword);\n },\n\n setValue: function (v) {\n this.tree.setValue(v);\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n getAllLeaves: function () {\n return this.tree.getAllLeaves();\n },\n\n getNodeById: function (id) {\n return this.tree.getNodeById(id);\n },\n\n getNodeByValue: function (id) {\n return this.tree.getNodeByValue(id);\n }\n});\nBI.LevelTree.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.level_tree\", BI.LevelTree);/**\n * guy\n * 异步树\n * @class BI.DisplayTree\n * @extends BI.TreeView\n */\nBI.DisplayTree = BI.inherit(BI.TreeView, {\n _defaultConfig: function () {\n return BI.extend(BI.DisplayTree.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-display-tree\"\n });\n },\n _init: function () {\n BI.DisplayTree.superclass._init.apply(this, arguments);\n },\n\n // 配置属性\n _configSetting: function () {\n var setting = {\n view: {\n selectedMulti: false,\n dblClickExpand: false,\n showIcon: false,\n nameIsHTML: true,\n showTitle: false\n },\n data: {\n key: {\n title: \"title\",\n name: \"text\"\n },\n simpleData: {\n enable: true\n }\n },\n callback: {\n beforeCollapse: beforeCollapse\n }\n };\n\n function beforeCollapse(treeId, treeNode) {\n return false;\n }\n\n return setting;\n },\n\n _dealWidthNodes: function (nodes) {\n nodes = BI.DisplayTree.superclass._dealWidthNodes.apply(this, arguments);\n var self = this, o = this.options;\n BI.each(nodes, function (i, node) {\n node.isParent = node.isParent || node.parent;\n if (node.text == null) {\n if (node.count > 0) {\n node.text = node.value + \"(\" + BI.i18nText(\"BI-Basic_Altogether\") + node.count + BI.i18nText(\"BI-Basic_Count\") + \")\";\n }\n }\n });\n return nodes;\n },\n\n initTree: function (nodes, setting) {\n var setting = setting || this._configSetting();\n this.nodes = BI.$.fn.zTree.init(this.tree.element, setting, nodes);\n },\n\n destroy: function () {\n BI.DisplayTree.superclass.destroy.apply(this, arguments);\n }\n});\nBI.DisplayTree.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.display_tree\", BI.DisplayTree);/**\n * guy\n * 异步树\n * @class BI.ListListDisplayTree\n * @extends BI.TreeView\n */\nBI.ListDisplayTree = BI.inherit(BI.ListTreeView, {\n _defaultConfig: function () {\n return BI.extend(BI.ListDisplayTree.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-list-display-tree\"\n });\n },\n _init: function () {\n BI.ListDisplayTree.superclass._init.apply(this, arguments);\n },\n\n // 配置属性\n _configSetting: function () {\n var setting = {\n view: {\n selectedMulti: false,\n dblClickExpand: false,\n showIcon: false,\n nameIsHTML: true,\n showTitle: false,\n fontCss: getFont\n },\n data: {\n key: {\n title: \"title\",\n name: \"text\"\n },\n simpleData: {\n enable: true\n }\n },\n callback: {\n beforeCollapse: beforeCollapse\n }\n };\n\n function beforeCollapse(treeId, treeNode) {\n return false;\n }\n\n function getFont(treeId, node) {\n return node.isLeaf ? {} : {color: \"#999999\"};\n }\n\n return setting;\n },\n\n _dealWidthNodes: function (nodes) {\n nodes = BI.ListDisplayTree.superclass._dealWidthNodes.apply(this, arguments);\n var self = this, o = this.options;\n BI.each(nodes, function (i, node) {\n node.isParent = node.isParent || node.parent;\n if (node.text == null) {\n if (node.count > 0) {\n node.text = node.value + \"(\" + BI.i18nText(\"BI-Basic_Altogether\") + node.count + BI.i18nText(\"BI-Basic_Count\") + \")\";\n }\n }\n });\n return nodes;\n },\n\n initTree: function (nodes, setting) {\n var setting = setting || this._configSetting();\n this.nodes = BI.$.fn.zTree.init(this.tree.element, setting, nodes);\n },\n\n destroy: function () {\n BI.ListDisplayTree.superclass.destroy.apply(this, arguments);\n }\n});\nBI.ListDisplayTree.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.list_display_tree\", BI.ListDisplayTree);/**\n * 简单的多选树\n *\n * Created by GUY on 2016/2/16.\n * @class BI.SimpleTreeView\n * @extends BI.Widget\n */\nBI.SimpleTreeView = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.SimpleTreeView.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-simple-tree\",\n itemsCreator: BI.emptyFn,\n items: null\n });\n },\n _init: function () {\n BI.SimpleTreeView.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.structure = new BI.Tree();\n this.tree = BI.createWidget({\n type: \"bi.tree_view\",\n element: this,\n itemsCreator: function (op, callback) {\n var fn = function (items) {\n callback({\n items: items\n });\n self.structure.initTree(BI.Tree.transformToTreeFormat(items));\n };\n if (BI.isNotNull(o.items)) {\n fn(o.items);\n } else {\n o.itemsCreator(op, fn);\n }\n }\n });\n this.tree.on(BI.TreeView.EVENT_CHANGE, function () {\n self.fireEvent(BI.SimpleTreeView.EVENT_CHANGE, arguments);\n });\n if (BI.isNotEmptyArray(o.items)) {\n this.populate();\n }\n if (BI.isNotNull(o.value)) {\n this.setValue(o.value);\n }\n },\n\n populate: function (items, keyword) {\n if (items) {\n this.options.items = items;\n }\n this.tree.stroke({\n keyword: keyword\n });\n },\n\n _digest: function (v) {\n v || (v = []);\n var self = this, map = {};\n var selected = [];\n BI.each(v, function (i, val) {\n var node = self.structure.search(val, \"value\");\n if (node) {\n var p = node;\n p = p.getParent();\n if (p) {\n if (!map[p.value]) {\n map[p.value] = 0;\n }\n map[p.value]++;\n }\n\n while (p && p.getChildrenLength() <= map[p.value]) {\n selected.push(p.value);\n p = p.getParent();\n if (p) {\n if (!map[p.value]) {\n map[p.value] = 0;\n }\n map[p.value]++;\n }\n }\n }\n });\n return BI.makeObject(v.concat(selected));\n },\n\n setValue: function (v) {\n this.tree.setValue(this._digest(v));\n },\n\n _getValue: function () {\n var self = this, result = [], val = this.tree.getValue();\n var track = function (nodes) {\n BI.each(nodes, function (key, node) {\n if (BI.isEmpty(node)) {\n result.push(key);\n } else {\n track(node);\n }\n });\n };\n track(val);\n return result;\n },\n\n empty: function () {\n this.tree.empty();\n },\n\n getValue: function () {\n var self = this, result = [], val = this._getValue();\n BI.each(val, function (i, key) {\n var target = self.structure.search(key, \"value\");\n if (target) {\n self.structure._traverse(target, function (node) {\n if (node.isLeaf()) {\n result.push(node.value);\n }\n });\n }\n });\n return result;\n }\n});\nBI.SimpleTreeView.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.simple_tree\", BI.SimpleTreeView);\n/**\n * 文本输入框trigger\n *\n * Created by GUY on 2015/9/15.\n * @class BI.EditorTrigger\n * @extends BI.Trigger\n */\nBI.EditorTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4\n },\n\n _defaultConfig: function () {\n var conf = BI.EditorTrigger.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-editor-trigger bi-border\",\n height: 24,\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n allowBlank: false,\n watermark: \"\",\n errorText: \"\"\n });\n },\n\n _init: function () {\n this.options.height -= 2;\n BI.EditorTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.editor = BI.createWidget({\n type: \"bi.sign_editor\",\n height: o.height,\n value: o.value,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank,\n watermark: o.watermark,\n errorText: o.errorText,\n title: function () {\n return self.getValue();\n }\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_CHANGE, function () {\n self.fireEvent(BI.EditorTrigger.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_FOCUS, function () {\n self.fireEvent(BI.EditorTrigger.EVENT_FOCUS, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_EMPTY, function () {\n self.fireEvent(BI.EditorTrigger.EVENT_EMPTY, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_VALID, function () {\n self.fireEvent(BI.EditorTrigger.EVENT_VALID, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_ERROR, function () {\n self.fireEvent(BI.EditorTrigger.EVENT_ERROR, arguments);\n });\n\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [\n {\n el: this.editor\n }, {\n el: {\n type: \"bi.trigger_icon_button\",\n width: o.triggerWidth || o.height\n },\n width: o.triggerWidth || o.height\n }\n ]\n });\n },\n\n getValue: function () {\n return this.editor.getValue();\n },\n\n setValue: function (value) {\n this.editor.setValue(value);\n },\n\n setText: function (text) {\n this.editor.setState(text);\n }\n});\nBI.EditorTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.EditorTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.EditorTrigger.EVENT_EMPTY = \"EVENT_EMPTY\";\nBI.EditorTrigger.EVENT_VALID = \"EVENT_VALID\";\nBI.EditorTrigger.EVENT_ERROR = \"EVENT_ERROR\";\nBI.shortcut(\"bi.editor_trigger\", BI.EditorTrigger);\n/**\n * 图标按钮trigger\n *\n * Created by GUY on 2015/10/8.\n * @class BI.IconTrigger\n * @extends BI.Trigger\n */\nBI.IconTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n return BI.extend(BI.IconTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-icon-trigger\",\n extraCls: \"pull-down-font\",\n el: {},\n height: 24\n });\n },\n _init: function () {\n var o = this.options;\n BI.IconTrigger.superclass._init.apply(this, arguments);\n this.iconButton = BI.createWidget(o.el, {\n type: \"bi.trigger_icon_button\",\n element: this,\n width: o.width,\n height: o.height,\n extraCls: o.extraCls\n });\n }\n});\nBI.shortcut(\"bi.icon_trigger\", BI.IconTrigger);/**\n * 文字trigger\n *\n * Created by GUY on 2015/9/15.\n * @class BI.IconTextTrigger\n * @extends BI.Trigger\n */\nBI.IconTextTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4\n },\n\n _defaultConfig: function () {\n var conf = BI.IconTextTrigger.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-trigger\",\n height: 24,\n iconHeight: null,\n iconWidth: null,\n textCls: \"\"\n });\n },\n\n _init: function () {\n BI.IconTextTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"select-text-label\" + (BI.isKey(o.textCls) ? (\" \" + o.textCls) : \"\"),\n textAlign: \"left\",\n height: o.height,\n text: o.text\n });\n this.trigerButton = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.triggerWidth || o.height\n });\n\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n ref: function (_ref) {\n self.wrapper = _ref;\n },\n items: [{\n el: {\n type: \"bi.icon_change_button\",\n cls: \"icon-combo-trigger-icon\",\n iconCls: o.iconCls,\n ref: function (_ref) {\n self.icon = _ref;\n },\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth,\n disableSelected: true\n },\n width: BI.isEmptyString(o.iconCls) ? 0 : (o.iconWrapperWidth || o.height)\n },\n {\n el: this.text,\n lgap: BI.isEmptyString(o.iconCls) ? 5 : 0\n }, {\n el: this.trigerButton,\n width: o.triggerWidth || o.height\n }\n ]\n });\n },\n\n setValue: function (value) {\n this.text.setValue(value);\n },\n\n setIcon: function (iconCls) {\n var o = this.options;\n this.icon.setIcon(iconCls);\n var iconItem = this.wrapper.attr(\"items\")[0];\n var textItem = this.wrapper.attr(\"items\")[1];\n if(BI.isNull(iconCls) || BI.isEmptyString(iconCls)) {\n if(iconItem.width !== 0) {\n iconItem.width = 0;\n textItem.lgap = 5;\n this.wrapper.resize();\n }\n }else{\n if(iconItem.width !== (o.iconWrapperWidth || o.height)) {\n iconItem.width = (o.iconWrapperWidth || o.height);\n textItem.lgap = 0;\n this.wrapper.resize();\n }\n }\n },\n\n setTextCls: function(cls) {\n var o = this.options;\n var oldCls = o.textCls;\n o.textCls = cls;\n this.text.element.removeClass(oldCls).addClass(cls);\n },\n\n setText: function (text) {\n this.text.setText(text);\n }\n});\nBI.shortcut(\"bi.icon_text_trigger\", BI.IconTextTrigger);/**\n * Created by Windy on 2017/12/12.\n */\nBI.SelectIconTextTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SelectIconTextTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-select-text-trigger bi-border\",\n height: 24,\n iconHeight: null,\n iconWidth: null,\n iconCls: \"\"\n });\n },\n\n _init: function () {\n this.options.height -= 2;\n BI.SelectIconTextTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var obj = this._digist(o.value, o.items);\n this.trigger = BI.createWidget({\n type: \"bi.icon_text_trigger\",\n element: this,\n text: obj.text,\n textCls: obj.textCls,\n iconCls: obj.iconCls,\n height: o.height,\n iconHeight: o.iconHeight,\n iconWidth: o.iconWidth,\n iconWrapperWidth: o.iconWrapperWidth\n });\n },\n\n _digist: function (vals, items) {\n var o = this.options;\n vals = BI.isArray(vals) ? vals : [vals];\n var result;\n var formatItems = BI.Tree.transformToArrayFormat(items);\n BI.any(formatItems, function (i, item) {\n if (BI.deepContains(vals, item.value)) {\n result = {\n text: item.text || item.value,\n iconCls: item.iconCls\n };\n return true;\n }\n });\n\n if (BI.isNotNull(result)) {\n return {\n text: result.text,\n textCls: \"\",\n iconCls: result.iconCls\n };\n } else {\n return {\n text: BI.isFunction(o.text) ? o.text() : o.text,\n textCls: \"bi-water-mark\",\n iconCls: o.iconCls\n };\n }\n },\n\n setValue: function (vals) {\n var obj = this._digist(vals, this.options.items);\n this.trigger.setText(obj.text);\n this.trigger.setIcon(obj.iconCls);\n this.trigger.setTextCls(obj.textCls);\n },\n\n populate: function (items) {\n this.options.items = items;\n }\n});\nBI.shortcut(\"bi.select_icon_text_trigger\", BI.SelectIconTextTrigger);/**\n * 文字trigger\n *\n * Created by GUY on 2015/9/15.\n * @class BI.TextTrigger\n * @extends BI.Trigger\n */\nBI.TextTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4\n },\n\n _defaultConfig: function () {\n var conf = BI.TextTrigger.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-trigger\",\n height: 24,\n textCls: \"\"\n });\n },\n\n _init: function () {\n BI.TextTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"select-text-label\" + (BI.isKey(o.textCls) ? (\" \" + o.textCls) : \"\"),\n textAlign: \"left\",\n height: o.height,\n text: o.text,\n title: function () {\n return self.text.getText();\n },\n tipType: o.tipType,\n warningTitle: o.warningTitle,\n hgap: c.hgap,\n readonly: o.readonly\n });\n this.trigerButton = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.triggerWidth || o.height\n });\n\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [\n {\n el: this.text\n }, {\n el: this.trigerButton,\n width: o.triggerWidth || o.height\n }\n ]\n });\n },\n\n setTextCls: function(cls) {\n var o = this.options;\n var oldCls = o.textCls;\n o.textCls = cls;\n this.text.element.removeClass(oldCls).addClass(cls);\n },\n\n setText: function (text) {\n this.text.setText(text);\n },\n\n setTipType: function (v) {\n this.text.options.tipType = v;\n }\n});\nBI.shortcut(\"bi.text_trigger\", BI.TextTrigger);\n/**\n * 选择字段trigger\n *\n * Created by GUY on 2015/9/15.\n * @class BI.SelectTextTrigger\n * @extends BI.Trigger\n */\nBI.SelectTextTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SelectTextTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-select-text-trigger bi-border bi-focus-shadow\",\n height: 24\n });\n },\n\n _init: function () {\n this.options.height -= 2;\n BI.SelectTextTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var obj = this._digest(o.value, o.items);\n this.trigger = BI.createWidget({\n type: \"bi.text_trigger\",\n element: this,\n height: o.height,\n readonly: o.readonly,\n text: obj.text,\n textCls: obj.textCls,\n tipType: o.tipType,\n warningTitle: o.warningTitle\n });\n },\n\n _digest: function(vals, items){\n var o = this.options;\n vals = BI.isArray(vals) ? vals : [vals];\n var result = [];\n var formatItems = BI.Tree.transformToArrayFormat(items);\n BI.each(formatItems, function (i, item) {\n if (BI.deepContains(vals, item.value) && !BI.contains(result, item.text || item.value)) {\n result.push(item.text || item.value);\n }\n });\n\n if (result.length > 0) {\n return {\n textCls: \"\",\n text: result.join(\",\")\n }\n } else {\n return {\n textCls: \"bi-water-mark\",\n text: BI.isFunction(o.text) ? o.text() : o.text\n }\n }\n },\n\n setValue: function (vals) {\n var formatValue = this._digest(vals, this.options.items);\n this.trigger.setTextCls(formatValue.textCls);\n this.trigger.setText(formatValue.text);\n },\n\n setTipType: function (v) {\n this.trigger.setTipType(v);\n },\n\n populate: function (items) {\n this.options.items = items;\n }\n});\nBI.shortcut(\"bi.select_text_trigger\", BI.SelectTextTrigger);\n/**\n * 选择字段trigger小一号的\n *\n * @class BI.SmallSelectTextTrigger\n * @extends BI.Trigger\n */\nBI.SmallSelectTextTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SmallSelectTextTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-small-select-text-trigger bi-border\",\n height: 20\n });\n },\n\n _init: function () {\n this.options.height -= 2;\n BI.SmallSelectTextTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var obj = this._digest(o.value, o.items);\n this.trigger = BI.createWidget({\n type: \"bi.small_text_trigger\",\n element: this,\n height: o.height - 2,\n text: obj.text,\n cls: obj.cls\n });\n },\n\n _digest: function(vals, items){\n var o = this.options;\n vals = BI.isArray(vals) ? vals : [vals];\n var result = [];\n var formatItems = BI.Tree.transformToArrayFormat(items);\n BI.each(formatItems, function (i, item) {\n if (BI.deepContains(vals, item.value) && !BI.contains(result, item.text || item.value)) {\n result.push(item.text || item.value);\n }\n });\n\n if (result.length > 0) {\n return {\n cls: \"\",\n text: result.join(\",\")\n }\n } else {\n return {\n cls: \"bi-water-mark\",\n text: o.text\n }\n }\n },\n\n setValue: function (vals) {\n var formatValue = this._digest(vals, this.options.items);\n this.trigger.element.removeClass(\"bi-water-mark\").addClass(formatValue.cls);\n this.trigger.setText(formatValue.text);\n },\n\n populate: function (items) {\n this.options.items = items;\n }\n});\nBI.shortcut(\"bi.small_select_text_trigger\", BI.SmallSelectTextTrigger);/**\n * 文字trigger(右边小三角小一号的) ==\n *\n * @class BI.SmallTextTrigger\n * @extends BI.Trigger\n */\nBI.SmallTextTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4\n },\n\n _defaultConfig: function () {\n var conf = BI.SmallTextTrigger.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-text-trigger\",\n height: 20\n });\n },\n\n _init: function () {\n BI.SmallTextTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n height: o.height,\n text: o.text,\n hgap: c.hgap\n });\n this.trigerButton = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.triggerWidth || o.height\n });\n\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [\n {\n el: this.text\n }, {\n el: this.trigerButton,\n width: o.triggerWidth || o.height\n }\n ]\n });\n },\n\n setValue: function (value) {\n this.text.setValue(value);\n },\n\n setText: function (text) {\n this.text.setText(text);\n }\n});\nBI.shortcut(\"bi.small_text_trigger\", BI.SmallTextTrigger);/**\n * 日期控件中的月份下拉框\n *\n * Created by GUY on 2015/9/7.\n * @class BI.MonthDateCombo\n * @extends BI.Trigger\n */\nBI.MonthDateCombo = BI.inherit(BI.Trigger, {\n _defaultConfig: function () {\n return BI.extend( BI.MonthDateCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-month-combo\",\n height: 24,\n container: null\n });\n },\n _init: function () {\n BI.MonthDateCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.trigger = BI.createWidget({\n type: \"bi.date_triangle_trigger\"\n });\n\n this.popup = BI.createWidget({\n type: \"bi.month_popup\",\n behaviors: o.behaviors\n });\n\n this.popup.on(BI.YearPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n });\n\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n offsetStyle: \"center\",\n container: o.container,\n element: this,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: this.trigger,\n popup: {\n minWidth: 85,\n stopPropagation: false,\n el: this.popup\n }\n });\n this.combo.on(BI.Combo.EVENT_CHANGE, function () {\n self.combo.hideView();\n self.fireEvent(BI.MonthDateCombo.EVENT_CHANGE);\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.doBehavior();\n });\n },\n\n setValue: function (v) {\n this.trigger.setValue(v);\n this.popup.setValue(v);\n },\n\n getValue: function () {\n return this.popup.getValue();\n }\n});\nBI.MonthDateCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.month_date_combo\", BI.MonthDateCombo);/**\n * 年份下拉框\n *\n * Created by GUY on 2015/9/7.\n * @class BI.YearDateCombo\n * @extends BI.Trigger\n */\nBI.YearDateCombo = BI.inherit(BI.Trigger, {\n _defaultConfig: function () {\n return BI.extend( BI.YearDateCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-year-combo\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n behaviors: {},\n height: 24,\n container: null\n });\n },\n _init: function () {\n BI.YearDateCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.trigger = BI.createWidget({\n type: \"bi.date_triangle_trigger\"\n });\n\n this.popup = BI.createWidget({\n type: \"bi.year_popup\",\n behaviors: o.behaviors,\n min: o.min,\n max: o.max\n });\n\n this.popup.on(BI.YearPopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.YearDateCombo.EVENT_CHANGE);\n });\n\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n offsetStyle: \"center\",\n element: this,\n container: o.container,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: this.trigger,\n popup: {\n minWidth: 100,\n stopPropagation: false,\n el: this.popup\n }\n });\n this.combo.on(BI.Combo.EVENT_CHANGE, function () {\n self.fireEvent(BI.YearDateCombo.EVENT_CHANGE);\n });\n // BI-22551 popup未初始化传入的behavior无效\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.doBehavior();\n });\n },\n\n setMinDate: function (minDate) {\n this.popup.setMinDate(minDate);\n },\n\n setMaxDate: function (maxDate) {\n this.popup.setMaxDate(maxDate);\n },\n\n setValue: function (v) {\n this.trigger.setValue(v);\n this.popup.setValue(v);\n },\n\n getValue: function () {\n return this.popup.getValue();\n }\n});\nBI.YearDateCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.year_date_combo\", BI.YearDateCombo);\n/**\n * Created by GUY on 2015/9/7.\n * @class BI.DatePicker\n * @extends BI.Widget\n */\nBI.DatePicker = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.DatePicker.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-date-picker\",\n height: 40,\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\" // 最大日期\n });\n },\n\n _init: function () {\n BI.DatePicker.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this._year = BI.getDate().getFullYear();\n this._month = BI.getDate().getMonth() + 1;\n this.left = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"pre-page-h-font\",\n width: 24,\n height: 24\n });\n this.left.on(BI.IconButton.EVENT_CHANGE, function () {\n if (self._month === 1) {\n self.setValue({\n year: self.year.getValue() - 1,\n month: 12\n });\n } else {\n self.setValue({\n year: self.year.getValue(),\n month: self.month.getValue() - 1\n });\n }\n self.fireEvent(BI.DatePicker.EVENT_CHANGE);\n self._checkLeftValid();\n self._checkRightValid();\n });\n\n this.right = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"next-page-h-font\",\n width: 24,\n height: 24\n });\n\n this.right.on(BI.IconButton.EVENT_CHANGE, function () {\n if (self._month === 12) {\n self.setValue({\n year: self.year.getValue() + 1,\n month: 1\n });\n } else {\n self.setValue({\n year: self.year.getValue(),\n month: self.month.getValue() + 1\n });\n }\n self.fireEvent(BI.DatePicker.EVENT_CHANGE);\n self._checkLeftValid();\n self._checkRightValid();\n });\n\n this.year = BI.createWidget({\n type: \"bi.year_date_combo\",\n behaviors: o.behaviors,\n min: o.min,\n max: o.max\n });\n this.year.on(BI.YearDateCombo.EVENT_CHANGE, function () {\n self.setValue({\n year: self.year.getValue(),\n month: self.month.getValue()\n });\n self.fireEvent(BI.DatePicker.EVENT_CHANGE);\n });\n this.month = BI.createWidget({\n type: \"bi.month_date_combo\",\n behaviors: o.behaviors\n });\n this.month.on(BI.MonthDateCombo.EVENT_CHANGE, function () {\n self.setValue({\n year: self.year.getValue(),\n month: self.month.getValue()\n });\n self.fireEvent(BI.DatePicker.EVENT_CHANGE);\n });\n\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n el: {\n type: \"bi.center_adapt\",\n items: [this.left]\n },\n width: 24\n }, {\n type: \"bi.center_adapt\",\n items: [{\n el: {\n type: \"bi.horizontal\",\n width: 120,\n rgap: 10,\n items: [{\n el: this.year,\n lgap: 10\n }, this.month]\n }\n }]\n }, {\n el: {\n type: \"bi.center_adapt\",\n items: [this.right]\n },\n width: 24\n }]\n });\n this.setValue({\n year: this._year,\n month: this._month\n });\n },\n\n _checkLeftValid: function () {\n var o = this.options;\n var valid = !(this._month === 1 && this._year === BI.parseDateTime(o.min, \"%Y-%X-%d\").getFullYear());\n this.left.setEnable(valid);\n return valid;\n },\n\n _checkRightValid: function () {\n var o = this.options;\n var valid = !(this._month === 12 && this._year === BI.parseDateTime(o.max, \"%Y-%X-%d\").getFullYear());\n this.right.setEnable(valid);\n return valid;\n },\n\n setMinDate: function (minDate) {\n this.year.setMinDate(minDate);\n },\n\n setMaxDate: function (maxDate) {\n this.year.setMaxDate(maxDate);\n },\n\n setValue: function (ob) {\n this._year = BI.parseInt(ob.year);\n this._month = BI.parseInt(ob.month);\n this.year.setValue(ob.year);\n this.month.setValue(ob.month);\n this._checkLeftValid();\n this._checkRightValid();\n },\n\n getValue: function () {\n return {\n year: this.year.getValue(),\n month: this.month.getValue()\n };\n }\n});\nBI.DatePicker.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.date_picker\", BI.DatePicker);/**\n * Created by GUY on 2015/9/7.\n * @class BI.YearPicker\n * @extends BI.Widget\n */\nBI.YearPicker = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.YearPicker.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-year-picker\",\n behaviors: {},\n height: 40,\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\" // 最大日期\n });\n },\n\n _init: function () {\n BI.YearPicker.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this._year = BI.getDate().getFullYear();\n this.left = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"pre-page-h-font\",\n width: 25,\n height: 25\n });\n this.left.on(BI.IconButton.EVENT_CHANGE, function () {\n self.setValue(self.year.getValue() - 1);\n self.fireEvent(BI.YearPicker.EVENT_CHANGE);\n self._checkLeftValid();\n self._checkRightValid();\n });\n\n this.right = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"next-page-h-font\",\n width: 25,\n height: 25\n });\n\n this.right.on(BI.IconButton.EVENT_CHANGE, function () {\n self.setValue(self.year.getValue() + 1);\n self.fireEvent(BI.YearPicker.EVENT_CHANGE);\n self._checkLeftValid();\n self._checkRightValid();\n });\n\n this.year = BI.createWidget({\n type: \"bi.year_date_combo\",\n min: o.min,\n behaviors: o.behaviors,\n max: o.max\n });\n this.year.on(BI.YearDateCombo.EVENT_CHANGE, function () {\n self.setValue(self.year.getValue());\n self.fireEvent(BI.YearPicker.EVENT_CHANGE);\n });\n\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n el: {\n type: \"bi.center_adapt\",\n items: [this.left]\n },\n width: 25\n }, {\n type: \"bi.center_adapt\",\n items: [{\n el: {\n type: \"bi.horizontal_float\",\n width: 50,\n items: [{\n el: this.year\n }]\n }\n }]\n }, {\n el: {\n type: \"bi.center_adapt\",\n items: [this.right]\n },\n width: 25\n }]\n });\n this.setValue({\n year: this._year\n });\n },\n\n _checkLeftValid: function () {\n var o = this.options;\n var valid = !(this._year === BI.parseDateTime(o.min, \"%Y-%X-%d\").getFullYear());\n this.left.setEnable(valid);\n return valid;\n },\n\n _checkRightValid: function () {\n var o = this.options;\n var valid = !(this._year === BI.parseDateTime(o.max, \"%Y-%X-%d\").getFullYear());\n this.right.setEnable(valid);\n return valid;\n },\n\n setMinDate: function (minDate) {\n this.options.min = minDate;\n this.year.setMinDate(minDate);\n this._checkLeftValid();\n this._checkRightValid();\n },\n\n setMaxDate: function (maxDate) {\n this.options.max = maxDate;\n this.year.setMaxDate(maxDate);\n this._checkLeftValid();\n this._checkRightValid();\n },\n\n\n setValue: function (v) {\n this._year = v;\n this.year.setValue(v);\n this._checkLeftValid();\n this._checkRightValid();\n },\n\n getValue: function () {\n return this.year.getValue();\n }\n});\nBI.YearPicker.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.year_picker\", BI.YearPicker);\n/**\n * Created by GUY on 2015/9/7.\n * @class BI.DateCalendarPopup\n * @extends BI.Widget\n */\nBI.DateCalendarPopup = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.DateCalendarPopup.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-date-calendar-popup\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n selectedTime: null\n });\n },\n\n _createNav: function (v) {\n var date = BI.Calendar.getDateJSONByPage(v);\n var calendar = BI.createWidget({\n type: \"bi.calendar\",\n logic: {\n dynamic: true\n },\n min: this.options.min,\n max: this.options.max,\n year: date.year,\n month: date.month,\n // BI-45616 此处为确定当前应该展示哪个年月对应的Calendar, day不是关键数据, 给1号就可\n day: 1\n });\n return calendar;\n },\n\n _init: function () {\n BI.DateCalendarPopup.superclass._init.apply(this, arguments);\n var self = this,\n o = this.options;\n this.today = BI.getDate();\n this._year = this.today.getFullYear();\n this._month = this.today.getMonth() + 1;\n this._day = this.today.getDate();\n\n this.selectedTime = o.selectedTime || {\n year: this._year,\n month: this._month,\n day: this._day\n };\n this.datePicker = BI.createWidget({\n type: \"bi.date_picker\",\n behaviors: o.behaviors,\n min: o.min,\n max: o.max\n });\n\n this.calendar = BI.createWidget({\n direction: \"top\",\n logic: {\n dynamic: true\n },\n type: \"bi.navigation\",\n tab: this.datePicker,\n cardCreator: BI.bind(this._createNav, this),\n\n afterCardCreated: function () {\n\n },\n\n afterCardShow: function () {\n this.setValue(self.selectedTime);\n }\n });\n\n this.datePicker.on(BI.DatePicker.EVENT_CHANGE, function () {\n self.selectedTime = self.datePicker.getValue();\n self.selectedTime.day = 1;\n self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));\n });\n\n this.calendar.on(BI.Navigation.EVENT_CHANGE, function () {\n self.selectedTime = self.calendar.getValue();\n self.setValue(self.selectedTime);\n self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.calendar,\n left: 5,\n right: 5\n }, {\n el: {\n type: \"bi.layout\",\n cls: \"bi-split-top\"\n },\n height: 1,\n top: 40,\n left: 0,\n right: 0\n }]\n });\n },\n\n _checkMin: function () {\n var calendar = this.calendar.getSelectedCard();\n if (BI.isNotNull(calendar)) {\n calendar.setMinDate(this.options.min);\n }\n },\n\n _checkMax: function () {\n var calendar = this.calendar.getSelectedCard();\n if (BI.isNotNull(calendar)) {\n calendar.setMaxDate(this.options.max);\n }\n },\n\n setMinDate: function (minDate) {\n if (BI.isNotEmptyString(this.options.min)) {\n this.options.min = minDate;\n this.datePicker.setMinDate(minDate);\n this._checkMin();\n }\n },\n\n setMaxDate: function (maxDate) {\n if (BI.isNotEmptyString(this.options.max)) {\n this.options.max = maxDate;\n this.datePicker.setMaxDate(maxDate);\n this._checkMax();\n }\n },\n\n setValue: function (timeOb) {\n this.datePicker.setValue(timeOb);\n this.calendar.setSelect(BI.Calendar.getPageByDateJSON(timeOb));\n this.calendar.setValue(timeOb);\n this.selectedTime = timeOb;\n },\n\n getValue: function () {\n return this.selectedTime;\n }\n});\nBI.DateCalendarPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.date_calendar_popup\", BI.DateCalendarPopup);/**\n * 月份展示面板\n *\n * Created by GUY on 2015/9/2.\n * @class BI.MonthPopup\n * @extends BI.Trigger\n */\nBI.MonthPopup = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MonthPopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-month-popup\",\n behaviors: {}\n });\n },\n\n _init: function () {\n BI.MonthPopup.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n // 纵向排列月\n var month = [1, 7, 2, 8, 3, 9, 4, 10, 5, 11, 6, 12];\n var items = [];\n items.push(month.slice(0, 2));\n items.push(month.slice(2, 4));\n items.push(month.slice(4, 6));\n items.push(month.slice(6, 8));\n items.push(month.slice(8, 10));\n items.push(month.slice(10, 12));\n items = BI.map(items, function (i, item) {\n return BI.map(item, function (j, td) {\n return {\n type: \"bi.text_item\",\n cls: \"bi-list-item-select\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n once: false,\n forceSelected: true,\n height: 23,\n width: 38,\n value: td,\n text: td\n };\n });\n });\n\n this.month = BI.createWidget({\n type: \"bi.button_group\",\n element: this,\n behaviors: o.behaviors,\n items: BI.createItems(items, {}),\n layouts: [BI.LogicFactory.createLogic(\"table\", BI.extend({\n dynamic: true\n }, {\n columns: 2,\n rows: 6,\n columnSize: [1 / 2, 1 / 2],\n rowSize: 25\n })), {\n type: \"bi.center_adapt\",\n vgap: 1,\n hgap: 2\n }],\n value: o.value\n });\n\n this.month.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.MonthPopup.EVENT_CHANGE);\n }\n });\n },\n\n getValue: function () {\n return this.month.getValue()[0];\n },\n\n setValue: function (v) {\n v = BI.parseInt(v);\n this.month.setValue([v]);\n }\n});\nBI.MonthPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.month_popup\", BI.MonthPopup);/**\n * 年份展示面板\n *\n * Created by GUY on 2015/9/2.\n * @class BI.YearPopup\n * @extends BI.Trigger\n */\nBI.YearPopup = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.YearPopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-year-popup\",\n behaviors: {},\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\" // 最大日期\n });\n },\n\n _createYearCalendar: function (v) {\n var o = this.options, y = this._year;\n\n var calendar = BI.createWidget({\n type: \"bi.year_calendar\",\n behaviors: o.behaviors,\n min: o.min,\n max: o.max,\n logic: {\n dynamic: true\n },\n year: y + v * 12\n });\n calendar.setValue(this._year);\n return calendar;\n },\n\n _init: function () {\n BI.YearPopup.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.selectedYear = this._year = BI.getDate().getFullYear();\n\n this.backBtn = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"pre-page-h-font\",\n width: 24,\n height: 24,\n value: -1\n });\n\n this.preBtn = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"next-page-h-font\",\n width: 24,\n height: 24,\n value: 1\n });\n\n this.navigation = BI.createWidget({\n type: \"bi.navigation\",\n element: this,\n single: true,\n logic: {\n dynamic: true\n },\n tab: {\n cls: \"year-popup-navigation bi-high-light bi-split-top\",\n height: 24,\n items: [this.backBtn, this.preBtn]\n },\n cardCreator: BI.bind(this._createYearCalendar, this),\n\n afterCardShow: function () {\n this.setValue(self.selectedYear);\n var calendar = this.getSelectedCard();\n calendar && self.backBtn.setEnable(!calendar.isFrontYear());\n calendar && self.preBtn.setEnable(!calendar.isFinalYear());\n }\n });\n\n this.navigation.on(BI.Navigation.EVENT_CHANGE, function () {\n self.selectedYear = this.getValue();\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.fireEvent(BI.YearPopup.EVENT_CHANGE, self.selectedYear);\n });\n\n if(BI.isKey(o.value)){\n this.setValue(o.value);\n }\n },\n\n _checkMin: function () {\n var calendar = this.navigation.getSelectedCard();\n if (BI.isNotNull(calendar)) {\n calendar.setMinDate(this.options.min);\n this.backBtn.setEnable(!calendar.isFrontYear());\n this.preBtn.setEnable(!calendar.isFinalYear());\n }\n },\n\n _checkMax: function () {\n var calendar = this.navigation.getSelectedCard();\n if (BI.isNotNull(calendar)) {\n calendar.setMaxDate(this.options.max);\n this.backBtn.setEnable(!calendar.isFrontYear());\n this.preBtn.setEnable(!calendar.isFinalYear());\n }\n },\n\n setMinDate: function (minDate) {\n if (BI.isNotEmptyString(this.options.min)) {\n this.options.min = minDate;\n this._checkMin();\n }\n },\n\n setMaxDate: function (maxDate) {\n if (BI.isNotEmptyString(this.options.max)) {\n this.options.max = maxDate;\n this._checkMax();\n }\n },\n\n getValue: function () {\n return this.selectedYear;\n },\n\n setValue: function (v) {\n var o = this.options;\n v = BI.parseInt(v);\n // 对于年控件来说,只要传入的minDate和maxDate的year区间包含v就是合法的\n var startDate = BI.parseDateTime(o.min, \"%Y-%X-%d\");\n var endDate = BI.parseDateTime(o.max, \"%Y-%X-%d\");\n if (BI.checkDateVoid(v, 1, 1, BI.print(BI.getDate(startDate.getFullYear(), 0, 1), \"%Y-%X-%d\"), BI.print(BI.getDate(endDate.getFullYear(), 0, 1), \"%Y-%X-%d\"))[0]) {\n v = BI.getDate().getFullYear();\n this.selectedYear = \"\";\n this.navigation.setSelect(BI.YearCalendar.getPageByYear(v));\n this.navigation.setValue(\"\");\n } else {\n this.selectedYear = v;\n this.navigation.setSelect(BI.YearCalendar.getPageByYear(v));\n this.navigation.setValue(v);\n }\n }\n});\nBI.YearPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.year_popup\", BI.YearPopup);/**\n * 日期控件中的年份或月份trigger\n *\n * Created by GUY on 2015/9/7.\n * @class BI.DateTriangleTrigger\n * @extends BI.Trigger\n */\nBI.DateTriangleTrigger = BI.inherit(BI.Trigger, {\n _const: {\n height: 24,\n iconWidth: 12,\n iconHeight: 12\n },\n\n _defaultConfig: function () {\n return BI.extend( BI.DateTriangleTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-date-triangle-trigger pull-down-ha-font cursor-pointer\",\n height: 24\n });\n },\n _init: function () {\n BI.DateTriangleTrigger.superclass._init.apply(this, arguments);\n var o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"right\",\n text: o.text,\n value: o.value,\n height: c.height\n });\n\n BI.createWidget({\n type: \"bi.vertical_adapt\",\n element: this,\n items: [{\n el: this.text,\n rgap: 5\n }, {\n type: \"bi.icon_label\",\n width: 16\n }]\n });\n },\n\n setValue: function (v) {\n this.text.setValue(v);\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function (v) {\n this.text.setText(v);\n },\n\n getText: function () {\n return this.item.getText();\n },\n\n getKey: function () {\n\n }\n});\nBI.shortcut(\"bi.date_triangle_trigger\", BI.DateTriangleTrigger);/**\n * Created by zcf on 2017/2/20.\n */\nBI.StaticDatePaneCard = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.StaticDatePaneCard.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-date-pane\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n selectedTime: null\n });\n },\n _init: function () {\n BI.StaticDatePaneCard.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.today = BI.getDate();\n this._year = this.today.getFullYear();\n this._month = this.today.getMonth() + 1;\n\n this.selectedTime = o.selectedTime || {\n year: this._year,\n month: this._month\n };\n\n this.datePicker = BI.createWidget({\n type: \"bi.date_picker\",\n behaviors: o.behaviors,\n min: o.min,\n max: o.max\n });\n this.datePicker.on(BI.DatePicker.EVENT_CHANGE, function () {\n var value = self.datePicker.getValue();\n var monthDay = BI.getMonthDays(BI.getDate(value.year, value.month - 1, 1));\n var day = self.selectedTime.day || 0;\n if (day > monthDay) {\n day = monthDay;\n }\n self.selectedTime = {\n year: value.year,\n month: value.month\n };\n day !== 0 && (self.selectedTime.day = day);\n self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));\n self.calendar.setValue(self.selectedTime);\n day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);\n });\n\n this.calendar = BI.createWidget({\n direction: \"custom\",\n // logic: {\n // dynamic: false\n // },\n type: \"bi.navigation\",\n tab: this.datePicker,\n cardCreator: BI.bind(this._createNav, this)\n });\n this.calendar.on(BI.Navigation.EVENT_CHANGE, function () {\n self.selectedTime = self.calendar.getValue();\n self.calendar.empty();\n self.setValue(self.selectedTime);\n self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);\n });\n this.setValue(o.selectedTime);\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.datePicker,\n height: 40\n }, this.calendar],\n hgap: 10\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.layout\",\n cls: \"bi-split-top\"\n },\n height: 1,\n top: 40,\n left: 0,\n right: 0\n }]\n });\n\n },\n\n _createNav: function (v) {\n var date = BI.Calendar.getDateJSONByPage(v);\n var calendar = BI.createWidget({\n type: \"bi.calendar\",\n logic: {\n dynamic: false\n },\n min: this.options.min,\n max: this.options.max,\n year: date.year,\n month: date.month,\n day: this.selectedTime.day\n });\n return calendar;\n },\n\n _getNewCurrentDate: function () {\n var today = BI.getDate();\n return {\n year: today.getFullYear(),\n month: today.getMonth() + 1\n };\n },\n\n _setCalenderValue: function (date) {\n this.calendar.setSelect(BI.Calendar.getPageByDateJSON(date));\n this.calendar.setValue(date);\n this.selectedTime = date;\n },\n\n _setDatePicker: function (timeOb) {\n if (BI.isNull(timeOb) || BI.isNull(timeOb.year) || BI.isNull(timeOb.month)) {\n this.datePicker.setValue(this._getNewCurrentDate());\n } else {\n this.datePicker.setValue(timeOb);\n }\n },\n\n _setCalendar: function (timeOb) {\n if (BI.isNull(timeOb) || BI.isNull(timeOb.day)) {\n this.calendar.empty();\n this._setCalenderValue(this._getNewCurrentDate());\n } else {\n this._setCalenderValue(timeOb);\n }\n },\n\n setValue: function (timeOb) {\n this._setDatePicker(timeOb);\n this._setCalendar(timeOb);\n },\n\n getValue: function () {\n return this.selectedTime;\n }\n\n});\nBI.shortcut(\"bi.static_date_pane_card\", BI.StaticDatePaneCard);BI.DynamicDatePane = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-dynamic-date-pane\"\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.vtape\",\n items: [{\n el: {\n type: \"bi.linear_segment\",\n cls: \"bi-split-bottom\",\n height: 30,\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Multi_Date_YMD\"),\n value: BI.DynamicDatePane.Static\n }, {\n text: BI.i18nText(\"BI-Basic_Dynamic_Title\"),\n value: BI.DynamicDatePane.Dynamic\n }], {\n textAlign: \"center\"\n }),\n listeners: [{\n eventName: BI.ButtonGroup.EVENT_CHANGE,\n action: function () {\n var value = this.getValue()[0];\n self.dateTab.setSelect(value);\n switch (value) {\n case BI.DynamicDatePane.Static:\n var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue());\n self.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n });\n break;\n case BI.DynamicDatePane.Dynamic:\n self.dynamicPane.setValue({\n year: 0\n });\n break;\n default:\n break;\n }\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }],\n ref: function () {\n self.switcher = this;\n }\n },\n height: 30\n }, {\n type: \"bi.tab\",\n ref: function () {\n self.dateTab = this;\n },\n showIndex: BI.DynamicDatePane.Static,\n cardCreator: function (v) {\n switch (v) {\n case BI.DynamicDatePane.Static:\n return {\n type: \"bi.static_date_pane_card\",\n behaviors: o.behaviors,\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }],\n ref: function () {\n self.ymd = this;\n }\n };\n case BI.DynamicDatePane.Dynamic:\n default:\n return {\n type: \"bi.dynamic_date_card\",\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n if(self._checkValue(self.getValue())) {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }\n }],\n ref: function () {\n self.dynamicPane = this;\n }\n };\n }\n }\n }]\n };\n },\n\n mounted: function () {\n this.setValue(this.options.value);\n },\n\n _checkValueValid: function (value) {\n return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);\n },\n\n _checkValue: function (v) {\n switch (v.type) {\n case BI.DynamicDateCombo.Dynamic:\n return BI.isNotEmptyObject(v.value);\n case BI.DynamicDateCombo.Static:\n default:\n return true;\n }\n },\n\n setValue: function (v) {\n v = v || {};\n var type = v.type || BI.DynamicDateCombo.Static;\n var value = v.value || v;\n this.switcher.setValue(type);\n this.dateTab.setSelect(type);\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n this.dynamicPane.setValue(value);\n break;\n case BI.DynamicDateCombo.Static:\n default:\n if (this._checkValueValid(value)) {\n var date = BI.getDate();\n this.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1\n });\n } else {\n this.ymd.setValue(value);\n }\n break;\n }\n },\n\n getValue: function () {\n return {\n type: this.dateTab.getSelect(),\n value: this.dateTab.getValue()\n };\n }\n});\nBI.shortcut(\"bi.dynamic_date_pane\", BI.DynamicDatePane);\n\nBI.extend(BI.DynamicDatePane, {\n Static: 1,\n Dynamic: 2\n});/**\n * Created by Urthur on 2017/7/14.\n */\nBI.DateTimeCombo = BI.inherit(BI.Single, {\n constants: {\n popupHeight: 290,\n popupWidth: 270,\n comboAdjustHeight: 1,\n border: 1\n },\n _defaultConfig: function () {\n return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-date-time-combo bi-border bi-border-radius\",\n width: 200,\n height: 24,\n minDate: \"1900-01-01\",\n maxDate: \"2099-12-31\"\n });\n },\n _init: function () {\n BI.DateTimeCombo.superclass._init.apply(this, arguments);\n var self = this, opts = this.options;\n var date = BI.getDate();\n this.storeValue = BI.isNotNull(opts.value) ? opts.value : {\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate(),\n hour: date.getHours(),\n minute: date.getMinutes(),\n second: date.getSeconds()\n };\n this.trigger = BI.createWidget({\n type: \"bi.date_time_trigger\",\n min: opts.minDate,\n max: opts.maxDate,\n value: opts.value\n });\n\n this.popup = BI.createWidget({\n type: \"bi.date_time_popup\",\n behaviors: opts.behaviors,\n min: opts.minDate,\n max: opts.maxDate,\n value: opts.value\n });\n self.setValue(this.storeValue);\n\n this.popup.on(BI.DateTimePopup.BUTTON_CANCEL_EVENT_CHANGE, function () {\n self.setValue(self.storeValue);\n self.hidePopupView();\n self.fireEvent(BI.DateTimeCombo.EVENT_CANCEL);\n });\n this.popup.on(BI.DateTimePopup.BUTTON_OK_EVENT_CHANGE, function () {\n self.storeValue = self.popup.getValue();\n self.setValue(self.storeValue);\n self.hidePopupView();\n self.fireEvent(BI.DateTimeCombo.EVENT_CONFIRM);\n });\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: opts.container,\n toggle: false,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: this.trigger,\n adjustLength: this.constants.comboAdjustHeight,\n popup: {\n el: this.popup,\n width: this.constants.popupWidth,\n stopPropagation: false\n },\n // DEC-4250 和复选下拉一样,点击不收起\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0;\n }\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.popup.setValue(self.storeValue);\n self.fireEvent(BI.DateTimeCombo.EVENT_BEFORE_POPUPVIEW);\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-font\",\n width: 24,\n height: 24\n });\n triggerBtn.on(BI.IconButton.EVENT_CHANGE, function () {\n if (self.combo.isViewVisible()) {\n // self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.combo,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n top: 0,\n right: 0\n }]\n }]\n });\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.popup.setValue(v);\n this.trigger.setValue(v);\n },\n getValue: function () {\n return this.storeValue;\n },\n\n hidePopupView: function () {\n this.combo.hideView();\n }\n});\n\nBI.DateTimeCombo.EVENT_CANCEL = \"EVENT_CANCEL\";\nBI.DateTimeCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DateTimeCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DateTimeCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.date_time_combo\", BI.DateTimeCombo);\n/**\n * Created by Urthur on 2017/7/14.\n */\nBI.DateTimePopup = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.DateTimePopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-date-time-popup\",\n width: 268,\n height: 374\n });\n },\n _init: function () {\n BI.DateTimePopup.superclass._init.apply(this, arguments);\n var self = this, opts = this.options;\n this.cancelButton = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"multidate-popup-button bi-border-top bi-border-right\",\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Cancel\")\n });\n this.cancelButton.on(BI.TextButton.EVENT_CHANGE, function () {\n self.fireEvent(BI.DateTimePopup.BUTTON_CANCEL_EVENT_CHANGE);\n });\n\n this.okButton = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"multidate-popup-button bi-border-top\",\n shadow: true,\n text: BI.i18nText(\"BI-Basic_OK\")\n });\n this.okButton.on(BI.TextButton.EVENT_CHANGE, function () {\n self.fireEvent(BI.DateTimePopup.BUTTON_OK_EVENT_CHANGE);\n });\n\n this.dateCombo = BI.createWidget({\n type: \"bi.date_calendar_popup\",\n behaviors: opts.behaviors,\n min: self.options.min,\n max: self.options.max\n });\n self.dateCombo.on(BI.DateCalendarPopup.EVENT_CHANGE, function () {\n self.fireEvent(BI.DateTimePopup.CALENDAR_EVENT_CHANGE);\n });\n\n this.dateButton = BI.createWidget({\n type: \"bi.grid\",\n items: [[this.cancelButton, this.okButton]]\n });\n BI.createWidget({\n element: this,\n type: \"bi.vtape\",\n items: [{\n el: this.dateCombo\n }, {\n el: {\n type: \"bi.center_adapt\",\n cls: \"bi-split-top\",\n items: [{\n type: \"bi.dynamic_date_time_select\",\n ref: function (_ref) {\n self.timeSelect = _ref;\n }\n }]\n },\n height: 50\n }, {\n el: this.dateButton,\n height: 30\n }]\n });\n this.setValue(opts.value);\n },\n\n setValue: function (v) {\n var value = v, date;\n if (BI.isNull(value)) {\n date = BI.getDate();\n this.dateCombo.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n });\n this.timeSelect.setValue({\n hour: date.getHours(),\n minute: date.getMinutes(),\n second: date.getSeconds()\n });\n } else {\n this.dateCombo.setValue({\n year: value.year,\n month: value.month,\n day: value.day\n });\n this.timeSelect.setValue({\n hour: value.hour,\n minute: value.minute,\n second: value.second\n });\n }\n },\n\n getValue: function () {\n return BI.extend({\n year: this.dateCombo.getValue().year,\n month: this.dateCombo.getValue().month,\n day: this.dateCombo.getValue().day\n }, this.timeSelect.getValue());\n }\n});\nBI.DateTimePopup.BUTTON_OK_EVENT_CHANGE = \"BUTTON_OK_EVENT_CHANGE\";\nBI.DateTimePopup.BUTTON_CANCEL_EVENT_CHANGE = \"BUTTON_CANCEL_EVENT_CHANGE\";\nBI.DateTimePopup.CALENDAR_EVENT_CHANGE = \"CALENDAR_EVENT_CHANGE\";\nBI.shortcut(\"bi.date_time_popup\", BI.DateTimePopup);\n/**\n * Created by Urthur on 2017/7/14.\n */\nBI.DateTimeTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.DateTimeTrigger.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-date-time-trigger\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 24,\n width: 200\n });\n },\n _init: function () {\n BI.DateTimeTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n height: o.height,\n width: o.width,\n hgap: c.hgap\n });\n\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n el: this.text\n },{\n el: BI.createWidget(),\n width: o.height\n }]\n });\n this.setValue(o.value);\n },\n\n _printTime: function (v) {\n return v < 10 ? \"0\" + v : v;\n },\n\n setValue: function (v) {\n var self = this;\n var value = v, dateStr;\n if(BI.isNull(value)) {\n value = BI.getDate();\n dateStr = BI.print(value, \"%Y-%X-%d %H:%M:%S\");\n } else {\n var date = BI.getDate(value.year, value.month - 1, value.day, value.hour, value.minute, value.second);\n dateStr = BI.print(date, \"%Y-%X-%d %H:%M:%S\");\n\n }\n this.text.setText(dateStr);\n this.text.setTitle(dateStr);\n }\n\n});\nBI.shortcut(\"bi.date_time_trigger\", BI.DateTimeTrigger);\nBI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.StaticDateTimePaneCard.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-date-time-pane\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n selectedTime: null\n });\n },\n _init: function () {\n BI.StaticDateTimePaneCard.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.today = BI.getDate();\n this._year = this.today.getFullYear();\n this._month = this.today.getMonth() + 1;\n\n this.selectedTime = o.selectedTime || {\n year: this._year,\n month: this._month\n };\n\n this.datePicker = BI.createWidget({\n type: \"bi.date_picker\",\n behaviors: o.behaviors,\n min: o.min,\n max: o.max\n });\n this.datePicker.on(BI.DatePicker.EVENT_CHANGE, function () {\n var value = self.datePicker.getValue();\n var monthDay = BI.getMonthDays(BI.getDate(value.year, value.month - 1, 1));\n var day = self.selectedTime.day || 0;\n if (day > monthDay) {\n day = monthDay;\n }\n self.selectedTime = BI.extend(self.selectedTime, {\n year: value.year,\n month: value.month\n });\n day !== 0 && (self.selectedTime.day = day);\n self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));\n self.calendar.setValue(self.selectedTime);\n day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);\n });\n\n this.calendar = BI.createWidget({\n direction: \"custom\",\n // logic: {\n // dynamic: false\n // },\n type: \"bi.navigation\",\n tab: this.datePicker,\n cardCreator: BI.bind(this._createNav, this)\n });\n this.calendar.on(BI.Navigation.EVENT_CHANGE, function () {\n self.selectedTime = BI.extend(self.calendar.getValue(), self.timeSelect.getValue());\n self.calendar.empty();\n self.setValue(self.selectedTime);\n self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n hgap: 10,\n items: [{\n el: this.datePicker,\n height: 40\n }, this.calendar, {\n el: {\n type: \"bi.dynamic_date_time_select\",\n cls: \"bi-split-top\",\n ref: function () {\n self.timeSelect = this;\n },\n listeners: [{\n eventName: BI.DynamicDateTimeSelect.EVENT_CONFIRM,\n action: function () {\n self.selectedTime = BI.extend(self.calendar.getValue(), self.timeSelect.getValue());\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n },\n height: 40\n }]\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.layout\",\n cls: \"bi-split-top\"\n },\n height: 1,\n top: 40,\n left: 0,\n right: 0\n }]\n });\n this.setValue(o.selectedTime);\n\n },\n\n _createNav: function (v) {\n var date = BI.Calendar.getDateJSONByPage(v);\n var calendar = BI.createWidget({\n type: \"bi.calendar\",\n logic: {\n dynamic: false\n },\n min: this.options.min,\n max: this.options.max,\n year: date.year,\n month: date.month,\n day: this.selectedTime.day\n });\n return calendar;\n },\n\n _getNewCurrentDate: function () {\n var today = BI.getDate();\n return {\n year: today.getFullYear(),\n month: today.getMonth() + 1\n };\n },\n\n _setCalenderValue: function (date) {\n this.calendar.setSelect(BI.Calendar.getPageByDateJSON(date));\n this.calendar.setValue(date);\n this.selectedTime = BI.extend({}, this.timeSelect.getValue(), date);\n },\n\n _setDatePicker: function (timeOb) {\n if (BI.isNull(timeOb) || BI.isNull(timeOb.year) || BI.isNull(timeOb.month)) {\n this.datePicker.setValue(this._getNewCurrentDate());\n } else {\n this.datePicker.setValue(timeOb);\n }\n },\n\n _setCalendar: function (timeOb) {\n if (BI.isNull(timeOb) || BI.isNull(timeOb.day)) {\n this.calendar.empty();\n this._setCalenderValue(this._getNewCurrentDate());\n } else {\n this._setCalenderValue(timeOb);\n }\n },\n\n setValue: function (timeOb) {\n timeOb = timeOb || {};\n this._setDatePicker(timeOb);\n this._setCalendar(timeOb);\n this.timeSelect.setValue({\n hour: timeOb.hour,\n minute: timeOb.minute,\n second: timeOb.second\n });\n },\n\n getValue: function () {\n return this.selectedTime;\n }\n\n});\nBI.shortcut(\"bi.static_date_time_pane_card\", BI.StaticDateTimePaneCard);BI.DynamicDateTimePane = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-dynamic-date-pane\"\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.vtape\",\n items: [{\n el: {\n type: \"bi.linear_segment\",\n cls: \"bi-split-bottom\",\n height: 30,\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Multi_Date_YMD\"),\n value: BI.DynamicDateTimePane.Static\n }, {\n text: BI.i18nText(\"BI-Basic_Dynamic_Title\"),\n value: BI.DynamicDateTimePane.Dynamic\n }], {\n textAlign: \"center\"\n }),\n listeners: [{\n eventName: BI.ButtonGroup.EVENT_CHANGE,\n action: function () {\n var value = this.getValue()[0];\n self.dateTab.setSelect(value);\n switch (value) {\n case BI.DynamicDateTimePane.Static:\n var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue());\n self.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n });\n break;\n case BI.DynamicDateTimePane.Dynamic:\n self.dynamicPane.setValue({\n year: 0\n });\n break;\n default:\n break;\n }\n }\n }],\n ref: function () {\n self.switcher = this;\n }\n },\n height: 30\n }, {\n type: \"bi.tab\",\n ref: function () {\n self.dateTab = this;\n },\n showIndex: BI.DynamicDateTimePane.Static,\n cardCreator: function (v) {\n switch (v) {\n case BI.DynamicDateTimePane.Static:\n return {\n type: \"bi.static_date_time_pane_card\",\n behaviors: o.behaviors,\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }],\n ref: function () {\n self.ymd = this;\n }\n };\n case BI.DynamicDateTimePane.Dynamic:\n default:\n return {\n type: \"bi.dynamic_date_card\",\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n if(self._checkValue(self.getValue())) {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }\n }],\n ref: function () {\n self.dynamicPane = this;\n }\n };\n }\n }\n }]\n };\n },\n\n mounted: function () {\n this.setValue(this.options.value);\n },\n\n _checkValueValid: function (value) {\n return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);\n },\n\n _checkValue: function (v) {\n switch (v.type) {\n case BI.DynamicDateCombo.Dynamic:\n return BI.isNotEmptyObject(v.value);\n case BI.DynamicDateCombo.Static:\n default:\n return true;\n }\n },\n\n setValue: function (v) {\n v = v || {};\n var type = v.type || BI.DynamicDateTimePane.Static;\n var value = v.value || v;\n this.switcher.setValue(type);\n this.dateTab.setSelect(type);\n switch (type) {\n case BI.DynamicDateTimePane.Dynamic:\n this.dynamicPane.setValue(value);\n break;\n case BI.DynamicDateTimePane.Static:\n default:\n if (this._checkValueValid(value)) {\n var date = BI.getDate();\n this.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1\n });\n } else {\n this.ymd.setValue(value);\n }\n break;\n }\n },\n\n getValue: function () {\n return {\n type: this.dateTab.getSelect(),\n value: this.dateTab.getValue()\n };\n }\n});\nBI.shortcut(\"bi.dynamic_date_time_pane\", BI.DynamicDateTimePane);\n\nBI.extend(BI.DynamicDateTimePane, {\n Static: 1,\n Dynamic: 2\n});/**\n * Created by roy on 15/8/14.\n */\nBI.DownListCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.DownListCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-down-list-combo\",\n height: 24,\n items: [],\n adjustLength: 0,\n direction: \"bottom\",\n trigger: \"click\",\n container: null,\n stopPropagation: false,\n el: {}\n });\n },\n\n _init: function () {\n BI.DownListCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.popupview = BI.createWidget({\n type: \"bi.down_list_popup\",\n items: o.items,\n chooseType: o.chooseType,\n value: o.value\n });\n\n this.popupview.on(BI.DownListPopup.EVENT_CHANGE, function (value) {\n self.fireEvent(BI.DownListCombo.EVENT_CHANGE, value);\n self.downlistcombo.hideView();\n });\n\n this.popupview.on(BI.DownListPopup.EVENT_SON_VALUE_CHANGE, function (value, fatherValue) {\n self.fireEvent(BI.DownListCombo.EVENT_SON_VALUE_CHANGE, value, fatherValue);\n self.downlistcombo.hideView();\n });\n\n\n this.downlistcombo = BI.createWidget({\n element: this,\n type: \"bi.combo\",\n trigger: o.trigger,\n isNeedAdjustWidth: false,\n container: o.container,\n adjustLength: o.adjustLength,\n direction: o.direction,\n stopPropagation: o.stopPropagation,\n el: BI.createWidget(o.el, {\n type: \"bi.icon_trigger\",\n extraCls: o.iconCls,\n width: o.width,\n height: o.height\n }),\n popup: {\n el: this.popupview,\n stopPropagation: o.stopPropagation,\n maxHeight: 1000,\n minWidth: 140\n }\n });\n\n this.downlistcombo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.fireEvent(BI.DownListCombo.EVENT_BEFORE_POPUPVIEW);\n });\n },\n\n hideView: function () {\n this.downlistcombo.hideView();\n },\n\n showView: function (e) {\n this.downlistcombo.showView(e);\n },\n\n populate: function (items) {\n this.popupview.populate(items);\n },\n\n setValue: function (v) {\n this.popupview.setValue(v);\n },\n getValue: function () {\n return this.popupview.getValue();\n }\n});\nBI.DownListCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DownListCombo.EVENT_SON_VALUE_CHANGE = \"EVENT_SON_VALUE_CHANGE\";\nBI.DownListCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\n\nBI.shortcut(\"bi.down_list_combo\", BI.DownListCombo);/**\n * Created by roy on 15/9/6.\n */\nBI.DownListGroup = BI.inherit(BI.Widget, {\n constants: {\n iconCls: \"check-mark-ha-font\"\n },\n _defaultConfig: function () {\n return BI.extend(BI.DownListGroup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-down-list-group\",\n items: [\n {\n el: {}\n }\n ]\n });\n },\n _init: function () {\n BI.DownListGroup.superclass._init.apply(this, arguments);\n var o = this.options, self = this;\n\n this.downlistgroup = BI.createWidget({\n element: this,\n type: \"bi.button_tree\",\n items: o.items,\n chooseType: 0, // 0单选,1多选\n layouts: [{\n type: \"bi.vertical\",\n hgap: 0,\n vgap: 0\n }],\n value: o.value\n });\n this.downlistgroup.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if(type === BI.Events.CLICK) {\n self.fireEvent(BI.DownListGroup.EVENT_CHANGE, arguments);\n }\n });\n },\n getValue: function () {\n return this.downlistgroup.getValue();\n },\n setValue: function (v) {\n this.downlistgroup.setValue(v);\n }\n\n\n});\nBI.DownListGroup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.down_list_group\", BI.DownListGroup);BI.DownListItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n var conf = BI.DownListItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-down-list-item bi-list-item-active\",\n cls: \"\",\n height: 24,\n logic: {\n dynamic: true\n },\n selected: false,\n iconHeight: null,\n iconWidth: null,\n textHgap: 0,\n textVgap: 0,\n textLgap: 0,\n textRgap: 0\n });\n },\n _init: function () {\n BI.DownListItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n hgap: o.textHgap,\n vgap: o.textVgap,\n lgap: o.textLgap,\n rgap: o.textRgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n height: o.height\n });\n this.icon = BI.createWidget({\n type: \"bi.center_adapt\",\n width: 36,\n height: o.height,\n items: [{\n el: {\n type: \"bi.icon\",\n width: o.iconWidth,\n height: o.iconHeight\n }\n }]\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left), BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, this.icon, this.text)\n }))));\n },\n\n setValue: function () {\n if (!this.isReadOnly()) {\n this.text.setValue.apply(this.text, arguments);\n }\n },\n\n getValue: function () {\n return this.text.getValue();\n },\n\n setText: function () {\n this.text.setText.apply(this.text, arguments);\n },\n\n getText: function () {\n return this.text.getText();\n },\n\n doClick: function () {\n BI.DownListItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.DownListItem.EVENT_CHANGE, this.getValue(), this);\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n }\n});\nBI.DownListItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.down_list_item\", BI.DownListItem);BI.DownListGroupItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n var conf = BI.DownListGroupItem.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-down-list-group-item\",\n logic: {\n dynamic: false\n },\n // invalid: true,\n iconCls1: \"dot-e-font\",\n iconCls2: \"pull-right-e-font\"\n });\n },\n _init: function () {\n BI.DownListGroupItem.superclass._init.apply(this, arguments);\n var o = this.options;\n var self = this;\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-group-item-text\",\n textAlign: \"left\",\n text: o.text,\n value: o.value,\n height: o.height\n });\n\n this.icon1 = BI.createWidget({\n type: \"bi.icon_button\",\n cls: o.iconCls1,\n width: 36,\n disableSelected: true,\n selected: this._digest(o.value)\n });\n\n this.icon2 = BI.createWidget({\n type: \"bi.icon_button\",\n cls: o.iconCls2,\n width: 24,\n forceNotSelected: true\n });\n\n var blank = BI.createWidget({\n type: \"bi.layout\",\n width: 24\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.icon2,\n top: 0,\n bottom: 0,\n right: 0\n }]\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", this.icon1, this.text, blank)\n }))));\n\n this.element.hover(function () {\n if (self.isEnabled()) {\n self.hover();\n }\n }, function () {\n if (self.isEnabled()) {\n self.dishover();\n }\n });\n },\n\n _digest: function (v) {\n var self = this, o = this.options;\n v = BI.isArray(v) ? v : [v];\n return BI.any(v, function (idx, value) {\n return BI.contains(o.childValues, value);\n });\n },\n\n hover: function () {\n BI.DownListGroupItem.superclass.hover.apply(this, arguments);\n this.icon1.element.addClass(\"hover\");\n this.icon2.element.addClass(\"hover\");\n\n },\n\n dishover: function () {\n BI.DownListGroupItem.superclass.dishover.apply(this, arguments);\n this.icon1.element.removeClass(\"hover\");\n this.icon2.element.removeClass(\"hover\");\n },\n\n doClick: function () {\n BI.DownListGroupItem.superclass.doClick.apply(this, arguments);\n if (this.isValid()) {\n this.fireEvent(BI.DownListGroupItem.EVENT_CHANGE, this.getValue());\n }\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n setValue: function (v) {\n this.icon1.setSelected(this._digest(v));\n }\n});\nBI.DownListGroupItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.down_list_group_item\", BI.DownListGroupItem);/**\n * Created by roy on 15/9/8.\n * 处理popup中的item分组样式\n * 一个item分组中的成员大于一时,该分组设置为单选,并且默认状态第一个成员设置为已选择项\n */\nBI.DownListPopup = BI.inherit(BI.Pane, {\n constants: {\n nextIcon: \"pull-right-e-font\",\n height: 24,\n iconHeight: 12,\n iconWidth: 12,\n hgap: 0,\n vgap: 0,\n border: 1\n },\n _defaultConfig: function () {\n var conf = BI.DownListPopup.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-down-list-popup\",\n items: [],\n chooseType: BI.Selection.Multi\n });\n },\n _init: function () {\n BI.DownListPopup.superclass._init.apply(this, arguments);\n this.singleValues = [];\n this.childValueMap = {};\n this.fatherValueMap = {};\n this.items = BI.deepClone(this.options.items);\n var self = this, o = this.options, children = this._createChildren(this.items);\n this.popup = BI.createWidget({\n type: \"bi.button_tree\",\n items: BI.createItems(children,\n {}, {\n adjustLength: -2\n }\n ),\n layouts: [{\n type: \"bi.vertical\",\n hgap: this.constants.hgap,\n vgap: this.constants.vgap\n }],\n value: this._digest(o.value),\n chooseType: o.chooseType\n });\n\n this.popup.on(BI.ButtonTree.EVENT_CHANGE, function (value, object) {\n var changedValue = value;\n if (BI.isNotNull(self.childValueMap[value])) {\n changedValue = self.childValueMap[value];\n self.fireEvent(BI.DownListPopup.EVENT_SON_VALUE_CHANGE, changedValue, self.fatherValueMap[value]);\n } else {\n self.fireEvent(BI.DownListPopup.EVENT_CHANGE, changedValue, object);\n }\n\n\n if (!BI.contains(self.singleValues, changedValue)) {\n var item = self.getValue();\n var result = [];\n BI.each(item, function (i, valueObject) {\n if (valueObject.value != changedValue) {\n result.push(valueObject);\n }\n });\n self.setValue(result);\n }\n\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n items: [this.popup],\n vgap: 5\n });\n\n },\n _createChildren: function (items) {\n var self = this, result = [];\n // 不能修改populate进来的item的引用\n BI.each(items, function (i, it) {\n var item_done = {\n type: \"bi.down_list_group\",\n items: []\n };\n\n BI.each(it, function (i, item) {\n if (BI.isNotEmptyArray(item.children) && !BI.isEmpty(item.el)) {\n item.type = \"bi.combo_group\";\n // popup未初始化返回的是options中的value, 在经过buttontree的getValue concat之后,无法区分值来自options\n // 还是item自身, 这边控制defaultInit为true来避免这个问题\n item.isDefaultInit = true;\n item.cls = \"down-list-group\";\n item.trigger = \"hover\";\n item.isNeedAdjustWidth = false;\n item.el.title = item.el.title || item.el.text;\n item.el.type = \"bi.down_list_group_item\";\n item.el.logic = {\n dynamic: true\n };\n item.el.height = self.constants.height;\n item.el.iconCls2 = self.constants.nextIcon;\n item.popup = {\n lgap: 1,\n el: {\n type: \"bi.button_tree\",\n chooseType: 0,\n layouts: [{\n type: \"bi.vertical\"\n }]\n\n },\n innerVGap: 5,\n maxHeight: 378\n };\n item.el.childValues = [];\n BI.each(item.children, function (i, child) {\n var fatherValue = BI.deepClone(item.el.value);\n var childValue = BI.deepClone(child.value);\n self.singleValues.push(child.value);\n child.type = \"bi.down_list_item\";\n child.extraCls = \" child-down-list-item\";\n child.title = child.title || child.text;\n child.textRgap = 10;\n child.isNeedAdjustWidth = false;\n child.logic = {\n dynamic: true\n };\n child.father = fatherValue;\n self.fatherValueMap[self._createChildValue(fatherValue, childValue)] = fatherValue;\n self.childValueMap[self._createChildValue(fatherValue, childValue)] = childValue;\n child.value = self._createChildValue(fatherValue, childValue);\n item.el.childValues.push(child.value);\n });\n } else {\n item.type = \"bi.down_list_item\";\n item.title = item.title || item.text;\n item.textRgap = 10;\n item.isNeedAdjustWidth = false;\n item.logic = {\n dynamic: true\n };\n }\n var el_done = {};\n el_done.el = item;\n item_done.items.push(el_done);\n });\n if (self._isGroup(item_done.items)) {\n BI.each(item_done.items, function (i, item) {\n self.singleValues.push(item.el.value);\n });\n }\n\n result.push(item_done);\n if (self._needSpliter(i, items.length)) {\n var spliter_container = BI.createWidget({\n type: \"bi.vertical\",\n items: [{\n el: {\n type: \"bi.layout\",\n cls: \"bi-down-list-spliter bi-split-top cursor-pointer\",\n height: 0\n }\n\n }],\n cls: \"bi-down-list-spliter-container cursor-pointer\",\n vgap: 5,\n lgap: 10,\n rgap: 0\n });\n result.push(spliter_container);\n }\n });\n return result;\n },\n\n _isGroup: function (i) {\n return i.length > 1;\n },\n\n _needSpliter: function (i, itemLength) {\n return i < itemLength - 1;\n },\n\n _createChildValue: function (fatherValue, childValue) {\n return fatherValue + \"_\" + childValue;\n },\n\n _digest: function (valueItem) {\n var self = this;\n var valueArray = [];\n BI.each(valueItem, function (i, item) {\n var value;\n if (BI.isNotNull(item.childValue)) {\n value = self._createChildValue(item.value, item.childValue);\n } else {\n value = item.value;\n }\n valueArray.push(value);\n }\n );\n return valueArray;\n },\n\n _checkValues: function (values) {\n var value = [];\n BI.each(this.items, function (idx, itemGroup) {\n BI.each(itemGroup, function (id, item) {\n if(BI.isNotNull(item.children)) {\n var childValues = BI.map(item.children, \"value\");\n var v = joinValue(childValues, values[idx]);\n if(BI.isNotEmptyString(v)) {\n value.push(v);\n }\n }else{\n if(item.value === values[idx][0]) {\n value.push(values[idx][0]);\n }\n }\n });\n });\n return value;\n\n function joinValue (sources, targets) {\n var value = \"\";\n BI.some(sources, function (idx, s) {\n return BI.some(targets, function (id, t) {\n if(s === t) {\n value = s;\n return true;\n }\n });\n });\n return value;\n }\n },\n\n populate: function (items) {\n BI.DownListPopup.superclass.populate.apply(this, arguments);\n this.items = BI.deepClone(items);\n this.childValueMap = {};\n this.fatherValueMap = {};\n this.singleValues = [];\n var children = this._createChildren(this.items);\n var popupItem = BI.createItems(children,\n {}, {\n adjustLength: -2\n }\n );\n this.popup.populate(popupItem);\n },\n\n setValue: function (valueItem) {\n this.popup.setValue(this._digest(valueItem));\n },\n\n _getValue: function () {\n var v = [];\n BI.each(this.popup.getAllButtons(), function (i, item) {\n i % 2 === 0 && v.push(item.getValue());\n });\n return v;\n },\n\n getValue: function () {\n var self = this, result = [];\n var values = this._checkValues(this._getValue());\n BI.each(values, function (i, value) {\n var valueItem = {};\n if (BI.isNotNull(self.childValueMap[value])) {\n var fartherValue = self.fatherValueMap[value];\n valueItem.childValue = self.childValueMap[value];\n valueItem.value = fartherValue;\n } else {\n valueItem.value = value;\n }\n result.push(valueItem);\n });\n return result;\n }\n\n\n});\n\nBI.DownListPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DownListPopup.EVENT_SON_VALUE_CHANGE = \"EVENT_SON_VALUE_CHANGE\";\nBI.shortcut(\"bi.down_list_popup\", BI.DownListPopup);!(function () {\n BI.DynamicDateHelper = {};\n BI.extend(BI.DynamicDateHelper, {\n getCalculation: function (obj) {\n var date = BI.getDate();\n\n return this.getCalculationByDate(date, obj);\n },\n\n getCalculationByDate: function (date, obj) {\n if (BI.isNotNull(obj.year)) {\n date = BI.getDate((date.getFullYear() + BI.parseInt(obj.year)), date.getMonth(), date.getDate());\n }\n if (BI.isNotNull(obj.quarter)) {\n date = BI.getOffsetQuarter(date, BI.parseInt(obj.quarter));\n }\n if (BI.isNotNull(obj.month)) {\n date = BI.getOffsetMonth(date, BI.parseInt(obj.month));\n }\n if (BI.isNotNull(obj.week)) {\n date = BI.getOffsetDate(date, BI.parseInt(obj.week) * 7);\n }\n if (BI.isNotNull(obj.day)) {\n date = BI.getOffsetDate(date, BI.parseInt(obj.day));\n }\n if (BI.isNotNull(obj.workDay)) {\n // 配置了节假日就按照节假日计算工作日偏移,否则按正常的天去算\n if(BI.isNotNull(BI.holidays)) {\n var count = Math.abs(obj.workDay);\n for (var i = 0; i < count; i++) {\n date = BI.getOffsetDate(date, obj.workDay < 0 ? -1 : 1);\n if(BI.isNotNull(BI.holidays[BI.print(date, \"%Y-%X-%d\")])) {\n i--;\n }\n }\n } else {\n date = BI.getOffsetDate(date, BI.parseInt(obj.workDay));\n }\n }\n if (BI.isNotNull(obj.position) && obj.position !== BI.DynamicDateCard.OFFSET.CURRENT) {\n date = this.getBeginDate(date, obj);\n }\n\n return BI.getDate(date.getFullYear(), date.getMonth(), date.getDate());\n },\n\n getBeginDate: function (date, obj) {\n if (BI.isNotNull(obj.day)) {\n return obj.position === BI.DynamicDateCard.OFFSET.BEGIN ? BI.getDate(date.getFullYear(), date.getMonth(), 1) : BI.getDate(date.getFullYear(), date.getMonth(), (BI.getLastDateOfMonth(date)).getDate());\n }\n if (BI.isNotNull(obj.week)) {\n return obj.position === BI.DynamicDateCard.OFFSET.BEGIN ? BI.getWeekStartDate(date) : BI.getWeekEndDate(date);\n }\n if (BI.isNotNull(obj.month)) {\n return obj.position === BI.DynamicDateCard.OFFSET.BEGIN ? BI.getDate(date.getFullYear(), date.getMonth(), 1) : BI.getDate(date.getFullYear(), date.getMonth(), (BI.getLastDateOfMonth(date)).getDate());\n }\n if (BI.isNotNull(obj.quarter)) {\n return obj.position === BI.DynamicDateCard.OFFSET.BEGIN ? BI.getQuarterStartDate(date) : BI.getQuarterEndDate(date);\n }\n if (BI.isNotNull(obj.year)) {\n return obj.position === BI.DynamicDateCard.OFFSET.BEGIN ? BI.getDate(date.getFullYear(), 0, 1) : BI.getDate(date.getFullYear(), 11, 31);\n }\n return date;\n }\n });\n})();\nBI.DynamicDateCard = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-dynamic-date-card\"\n },\n\n render: function () {\n var self = this;\n this.position = BI.DynamicDateCard.OFFSET.CURRENT;\n return {\n type: \"bi.vertical\",\n items: [{\n el: {\n type: \"bi.label\",\n text: BI.i18nText(\"BI-Multi_Date_Relative_Current_Time\"),\n textAlign: \"left\",\n height: 12,\n lgap: 10\n },\n tgap: 10,\n bgap: 5\n }, {\n type: \"bi.button_group\",\n ref: function () {\n self.checkgroup = this;\n },\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI,\n lgap: 4,\n value: [BI.DynamicDateCard.TYPE.YEAR],\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Basic_Year\"),\n value: BI.DynamicDateCard.TYPE.YEAR\n }, {\n text: BI.i18nText(\"BI-Basic_Single_Quarter\"),\n value: BI.DynamicDateCard.TYPE.QUARTER\n }, {\n text: BI.i18nText(\"BI-Basic_Month\"),\n value: BI.DynamicDateCard.TYPE.MONTH\n }, {\n text: BI.i18nText(\"BI-Basic_Week\"),\n value: BI.DynamicDateCard.TYPE.WEEK\n }, {\n text: BI.i18nText(\"BI-Basic_Day\"),\n value: BI.DynamicDateCard.TYPE.DAY\n }], {\n type: \"bi.multi_select_item\",\n logic: {\n dynamic: true\n }\n }),\n layouts: [{\n type: \"bi.left\",\n rgap: 4\n }],\n listeners: [{\n eventName: BI.ButtonGroup.EVENT_CHANGE,\n action: function () {\n var value = self.checkgroup.getValue();\n if(value.length !== 0) {\n self.workDayBox.setSelected(false);\n }\n\n var plainValue = {};\n BI.each(self.resultPane.getAllButtons(), function (idx, button) {\n var value = button.getValue();\n if(BI.isNotNull(value.dateType)) {\n plainValue[value.dateType] = {\n value: value.value,\n offset: value.offset\n };\n }\n });\n self.resultPane.populate(self._getParamJson(BI.map(self.checkgroup.getValue(), function (idx, v) {\n var obj = {\n dateType: v\n };\n if(BI.has(plainValue, v)) {\n obj.value = plainValue[v].value;\n obj.offset = plainValue[v].offset;\n }\n return obj;\n })));\n self.position = BI.DynamicDateCard.OFFSET.CURRENT;\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n }, {\n type: \"bi.vertical_adapt\",\n lgap: 2,\n items: [{\n el: {\n type: \"bi.multi_select_item\",\n ref: function () {\n self.workDayBox = this;\n },\n logic: {\n dynamic: true\n },\n text: BI.i18nText(\"BI-Basic_Work_Day\"),\n value: BI.DynamicDateCard.TYPE.WORK_DAY,\n listeners: [{\n eventName: BI.MultiSelectItem.EVENT_CHANGE,\n action: function () {\n if(this.isSelected()) {\n self.checkgroup.setValue();\n }\n self.resultPane.populate(this.isSelected() ? self._getParamJson([{\n dateType: BI.DynamicDateCard.TYPE.WORK_DAY\n }]) : []);\n self.position = BI.DynamicDateCard.OFFSET.CURRENT;\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n }\n }],\n ref: function () {\n self.workDay = this;\n }\n }, {\n type: \"bi.button_group\",\n items: this._getParamJson([{\n dateType: BI.DynamicDateCard.TYPE.YEAR\n }]),\n ref: function () {\n self.resultPane = this;\n },\n layouts: [{\n type: \"bi.vertical\",\n bgap: 10,\n hgap: 10\n }]\n }]\n };\n },\n\n _getParamJson: function (values, positionValue) {\n var self = this;\n var items = BI.map(values, function (idx, value) {\n return {\n el: {\n type: \"bi.dynamic_date_param_item\",\n dateType: value.dateType,\n value: value.value,\n offset: value.offset,\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n },\n tgap: idx === 0 ? 5 : 0\n };\n });\n\n if(values.length === 1 && values[0].dateType === BI.DynamicDateCard.TYPE.DAY) {\n var comboItems = this._getText(BI.DynamicDateCard.TYPE.MONTH);\n comboItems[0].text = BI.i18nText(\"BI-Basic_Empty\");\n items.push({\n type: \"bi.text_value_combo\",\n height: 24,\n items: comboItems,\n container: null,\n value: positionValue || BI.DynamicDateCard.OFFSET.CURRENT,\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.position = this.getValue()[0];\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n });\n }else{\n if(values.length !== 0 && BI.last(values).dateType !== BI.DynamicDateCard.TYPE.DAY && BI.last(values).dateType !== BI.DynamicDateCard.TYPE.WORK_DAY) {\n items.push({\n type: \"bi.text_value_combo\",\n height: 24,\n container: null,\n items: this._getText(BI.last(values).dateType),\n value: positionValue || BI.DynamicDateCard.OFFSET.CURRENT,\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.position = this.getValue()[0];\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n });\n\n }\n }\n\n return items;\n },\n\n _getText: function (lastValue) {\n switch (lastValue) {\n case BI.DynamicDateCard.TYPE.YEAR:\n return [{\n text: BI.i18nText(\"BI-Basic_Current_Day\"),\n value: BI.DynamicDateCard.OFFSET.CURRENT\n }, {\n text: BI.i18nText(\"BI-Basic_Year_Begin\"),\n value: BI.DynamicDateCard.OFFSET.BEGIN\n }, {\n text: BI.i18nText(\"BI-Basic_Year_End\"),\n value: BI.DynamicDateCard.OFFSET.END\n }];\n case BI.DynamicDateCard.TYPE.QUARTER:\n return [{\n text: BI.i18nText(\"BI-Basic_Current_Day\"),\n value: BI.DynamicDateCard.OFFSET.CURRENT\n }, {\n text: BI.i18nText(\"BI-Basic_Quarter_Begin\"),\n value: BI.DynamicDateCard.OFFSET.BEGIN\n }, {\n text: BI.i18nText(\"BI-Basic_Quarter_End\"),\n value: BI.DynamicDateCard.OFFSET.END\n }];\n case BI.DynamicDateCard.TYPE.MONTH:\n return [{\n text: BI.i18nText(\"BI-Basic_Current_Day\"),\n value: BI.DynamicDateCard.OFFSET.CURRENT\n }, {\n text: BI.i18nText(\"BI-Basic_Month_Begin\"),\n value: BI.DynamicDateCard.OFFSET.BEGIN\n }, {\n text: BI.i18nText(\"BI-Basic_Month_End\"),\n value: BI.DynamicDateCard.OFFSET.END\n }];\n case BI.DynamicDateCard.TYPE.WEEK:\n default:\n return [{\n text: BI.i18nText(\"BI-Basic_Current_Day\"),\n value: BI.DynamicDateCard.OFFSET.CURRENT\n }, {\n text: BI.i18nText(\"BI-Basic_Week_Begin\"),\n value: BI.DynamicDateCard.OFFSET.BEGIN\n }, {\n text: BI.i18nText(\"BI-Basic_Week_End\"),\n value: BI.DynamicDateCard.OFFSET.END\n }];\n }\n },\n\n _createValue: function (type, v) {\n return {\n dateType: type,\n value: Math.abs(v),\n offset: v > 0 ? 1 : 0\n };\n },\n\n setValue: function (v) {\n v = v || {};\n this.position = v.position || BI.DynamicDateCard.OFFSET.CURRENT;\n var values = [];\n var valuesItems = [];\n if(BI.isNotNull(v.year)) {\n values.push(BI.DynamicDateCard.TYPE.YEAR);\n valuesItems.push(this._createValue(BI.DynamicDateCard.TYPE.YEAR, v.year));\n }\n if(BI.isNotNull(v.quarter)) {\n values.push(BI.DynamicDateCard.TYPE.QUARTER);\n valuesItems.push(this._createValue(BI.DynamicDateCard.TYPE.QUARTER, v.quarter));\n }\n if(BI.isNotNull(v.month)) {\n values.push(BI.DynamicDateCard.TYPE.MONTH);\n valuesItems.push(this._createValue(BI.DynamicDateCard.TYPE.MONTH, v.month));\n }\n if(BI.isNotNull(v.week)) {\n values.push(BI.DynamicDateCard.TYPE.WEEK);\n valuesItems.push(this._createValue(BI.DynamicDateCard.TYPE.WEEK, v.week));\n }\n if(BI.isNotNull(v.day)) {\n values.push(BI.DynamicDateCard.TYPE.DAY);\n valuesItems.push(this._createValue(BI.DynamicDateCard.TYPE.DAY, v.day));\n }\n if(BI.isNotNull(v.workDay)) {\n values.push(BI.DynamicDateCard.TYPE.WORK_DAY);\n valuesItems.push(this._createValue(BI.DynamicDateCard.TYPE.WORK_DAY, v.workDay));\n }\n this.checkgroup.setValue(values);\n this.workDayBox.setSelected(BI.isNotNull(v.workDay));\n this.resultPane.populate(this._getParamJson(valuesItems, v.position));\n },\n\n getValue: function () {\n var self = this;\n var valueMap = {};\n var selectValues = this.checkgroup.getValue();\n var buttons = this.resultPane.getAllButtons();\n if(selectValues.length !== 0) {\n BI.each(buttons, function (idx, button) {\n var value = button.getValue();\n switch (value.dateType) {\n case BI.DynamicDateCard.TYPE.YEAR:\n valueMap.year = (value.offset === 0 ? -value.value : value.value);\n break;\n case BI.DynamicDateCard.TYPE.QUARTER:\n valueMap.quarter = (value.offset === 0 ? -value.value : value.value);\n break;\n case BI.DynamicDateCard.TYPE.MONTH:\n valueMap.month = (value.offset === 0 ? -value.value : value.value);\n break;\n case BI.DynamicDateCard.TYPE.WEEK:\n valueMap.week = (value.offset === 0 ? -value.value : value.value);\n break;\n case BI.DynamicDateCard.TYPE.DAY:\n valueMap.day = (value.offset === 0 ? -value.value : value.value);\n break;\n default:\n break;\n }\n if(BI.isNull(value.dateType)) {\n valueMap.position = self.position || BI.DynamicDateCard.OFFSET.CURRENT;\n }\n });\n }\n if(this.workDayBox.isSelected()) {\n var value = buttons[0].getValue();\n valueMap.workDay = (value.offset === 0 ? -value.value : value.value);\n }\n return valueMap;\n }\n\n});\nBI.shortcut(\"bi.dynamic_date_card\", BI.DynamicDateCard);\n\nBI.extend(BI.DynamicDateCard, {\n TYPE: {\n YEAR: 1,\n QUARTER: 2,\n MONTH: 3,\n WEEK: 4,\n DAY: 5,\n WORK_DAY: 6\n },\n OFFSET: {\n CURRENT: 1,\n BEGIN: 2,\n END: 3\n }\n\n});BI.DynamicDateCombo = BI.inherit(BI.Single, {\n constants: {\n popupHeight: 259,\n popupWidth: 270,\n comboAdjustHeight: 1,\n border: 1\n },\n\n props: {\n baseCls: \"bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius\",\n height: 22,\n minDate: \"1900-01-01\",\n maxDate: \"2099-12-31\",\n format: \"\",\n allowEdit: true\n },\n\n\n render: function () {\n var self = this, opts = this.options;\n this.storeTriggerValue = \"\";\n var date = BI.getDate();\n this.storeValue = opts.value;\n return {\n type: \"bi.htape\",\n items: [{\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-change-h-font\",\n width: opts.height,\n height: opts.height,\n ref: function () {\n self.changeIcon = this;\n }\n },\n width: opts.height\n }, {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.combo\",\n container: opts.container,\n ref: function () {\n self.combo = this;\n },\n toggle: false,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n destroyWhenHide: true,\n el: {\n type: \"bi.dynamic_date_trigger\",\n min: opts.minDate,\n max: opts.maxDate,\n format: opts.format,\n allowEdit: opts.allowEdit,\n watermark: opts.watermark,\n height: opts.height,\n value: opts.value,\n ref: function () {\n self.trigger = this;\n },\n listeners: [{\n eventName: BI.DynamicDateTrigger.EVENT_KEY_DOWN,\n action: function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n }\n self.fireEvent(BI.DynamicDateCombo.EVENT_KEY_DOWN, arguments);\n }\n }, {\n eventName: BI.DynamicDateTrigger.EVENT_STOP,\n action: function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n }\n }, {\n eventName: BI.DynamicDateTrigger.EVENT_FOCUS,\n action: function () {\n self.storeTriggerValue = self.trigger.getKey();\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n self.fireEvent(BI.DynamicDateCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.DynamicDateTrigger.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.DynamicDateCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.DynamicDateTrigger.EVENT_ERROR,\n action: function () {\n self.storeValue = {\n type: BI.DynamicDateCombo.Static,\n value: {\n year: date.getFullYear(),\n month: date.getMonth() + 1\n }\n };\n self.fireEvent(BI.DynamicDateCombo.EVENT_ERROR);\n }\n }, {\n eventName: BI.DynamicDateTrigger.EVENT_VALID,\n action: function () {\n self.fireEvent(BI.DynamicDateCombo.EVENT_VALID);\n }\n }, {\n eventName: BI.DynamicDateTrigger.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDateCombo.EVENT_CHANGE);\n }\n }, {\n eventName: BI.DynamicDateTrigger.EVENT_CONFIRM,\n action: function () {\n if (self.combo.isViewVisible()) {\n return;\n }\n var dateStore = self.storeTriggerValue;\n var dateObj = self.trigger.getKey();\n if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) {\n self.storeValue = self.trigger.getValue();\n self.setValue(self.trigger.getValue());\n } else if (BI.isEmptyString(dateObj)) {\n self.storeValue = null;\n self.trigger.setValue();\n }\n self._checkDynamicValue(self.storeValue);\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }]\n },\n adjustLength: this.constants.comboAdjustHeight,\n popup: {\n el: {\n type: \"bi.dynamic_date_popup\",\n behaviors: opts.behaviors,\n min: opts.minDate,\n max: opts.maxDate,\n ref: function () {\n self.popup = this;\n },\n listeners: [{\n eventName: BI.DynamicDatePopup.BUTTON_CLEAR_EVENT_CHANGE,\n action: function () {\n self.setValue();\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicDatePopup.BUTTON_lABEL_EVENT_CHANGE,\n action: function () {\n var date = BI.getDate();\n self.setValue({\n type: BI.DynamicDateCombo.Static,\n value: {\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n }\n });\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE,\n action: function () {\n var value = self.popup.getValue();\n if(self._checkValue(value)) {\n self.setValue(value);\n }\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicDatePopup.EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }]\n },\n stopPropagation: false\n },\n // DEC-4250 和复选下拉一样,点击triggerBtn不默认收起\n hideChecker: function (e) {\n return self.triggerBtn.element.find(e.target).length === 0;\n },\n listeners: [{\n eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,\n action: function () {\n self.popup.setValue(self.storeValue);\n self.popup.setMinDate(opts.minDate);\n self.popup.setMaxDate(opts.maxDate);\n self.fireEvent(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW);\n }\n }]\n },\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-font\",\n width: opts.height,\n height: opts.height,\n listeners: [{\n eventName: BI.IconButton.EVENT_CHANGE,\n action: function () {\n if (self.combo.isViewVisible()) {\n // self.combo.hideView();\n } else {\n self.combo.showView();\n }\n }\n }],\n ref: function () {\n self.triggerBtn = this;\n }\n },\n top: 0,\n right: 0\n }]\n }],\n ref: function (_ref) {\n self.comboWrapper = _ref;\n }\n };\n },\n\n mounted: function () {\n this._checkDynamicValue(this.storeValue);\n },\n\n _checkDynamicValue: function (v) {\n var o = this.options;\n var type = null;\n if (BI.isNotNull(v)) {\n type = v.type;\n }\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n this.changeIcon.setVisible(true);\n this.comboWrapper.attr(\"items\")[0].width = o.height;\n this.comboWrapper.resize();\n break;\n default:\n this.comboWrapper.attr(\"items\")[0].width = 0;\n this.comboWrapper.resize();\n this.changeIcon.setVisible(false);\n break;\n }\n },\n\n _checkValue: function (v) {\n switch (v.type) {\n case BI.DynamicDateCombo.Dynamic:\n return BI.isNotEmptyObject(v.value);\n case BI.DynamicDateCombo.Static:\n default:\n return true;\n }\n },\n\n _defaultState: function () {\n\n },\n\n setMinDate: function (minDate) {\n var o = this.options;\n o.minDate = minDate;\n this.trigger.setMinDate(minDate);\n this.popup && this.popup.setMinDate(minDate);\n },\n\n setMaxDate: function (maxDate) {\n var o = this.options;\n o.maxDate = maxDate;\n this.trigger.setMaxDate(maxDate);\n this.popup && this.popup.setMaxDate(maxDate);\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.trigger.setValue(v);\n this._checkDynamicValue(v);\n },\n getValue: function () {\n return this.storeValue;\n },\n getKey: function () {\n return this.trigger.getKey();\n },\n hidePopupView: function () {\n this.combo.hideView();\n }\n});\n\nBI.DynamicDateCombo.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.DynamicDateCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicDateCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicDateCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.DynamicDateCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DynamicDateCombo.EVENT_VALID = \"EVENT_VALID\";\nBI.DynamicDateCombo.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\n\nBI.shortcut(\"bi.dynamic_date_combo\", BI.DynamicDateCombo);\n\nBI.extend(BI.DynamicDateCombo, {\n Static: 1,\n Dynamic: 2\n});BI.DynamicDateParamItem = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-dynamic-date-param-item\",\n dateType: BI.DynamicDateCard.TYPE.YEAR,\n value: 0,\n offset: 0,\n height: 24\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.htape\",\n items: [{\n el: {\n type: \"bi.sign_editor\",\n cls: \"bi-border\",\n height: 22,\n validationChecker: function (v) {\n return BI.isNaturalNumber(v);\n },\n value: o.value,\n ref: function () {\n self.editor = this;\n },\n errorText: function (v) {\n if(BI.isEmptyString(v)) {\n return BI.i18nText(\"BI-Basic_Please_Input_Content\");\n }\n return BI.i18nText(\"BI-Please_Input_Natural_Number\");\n },\n allowBlank: false,\n listeners: [{\n eventName: BI.SignEditor.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE);\n }\n }]\n },\n width: 60\n }, {\n el: {\n type: \"bi.label\",\n height: 24,\n text: this._getText()\n },\n width: o.dateType === BI.DynamicDateCard.TYPE.WORK_DAY ? 60 : 20\n }, {\n type: \"bi.text_value_combo\",\n height: 24,\n items: [{\n text: BI.i18nText(\"BI-Basic_Front\"),\n value: 0\n }, {\n text: BI.i18nText(\"BI-Basic_Behind\"),\n value: 1\n }],\n ref: function () {\n self.offsetCombo = this;\n },\n container: null,\n value: o.offset,\n listeners: [{\n eventName: BI.TextValueCombo.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE);\n }\n }]\n }]\n };\n },\n\n _getText: function () {\n var text = \"\";\n switch (this.options.dateType) {\n case BI.DynamicDateCard.TYPE.YEAR:\n text = BI.i18nText(\"BI-Basic_Year\");\n break;\n case BI.DynamicDateCard.TYPE.QUARTER:\n text = BI.i18nText(\"BI-Basic_Single_Quarter\");\n break;\n case BI.DynamicDateCard.TYPE.MONTH:\n text = BI.i18nText(\"BI-Basic_Month\");\n break;\n case BI.DynamicDateCard.TYPE.WEEK:\n text = BI.i18nText(\"BI-Basic_Week\");\n break;\n case BI.DynamicDateCard.TYPE.DAY:\n text = BI.i18nText(\"BI-Basic_Day\");\n break;\n case BI.DynamicDateCard.TYPE.WORK_DAY:\n default:\n text = BI.i18nText(\"BI-Basic_Work_Day\");\n break;\n }\n return text;\n },\n\n setValue: function (v) {\n v = v || {};\n v.value = v.value || 0;\n v.offset = v.offset || 0;\n this.editor.setValue(v.value);\n this.offsetCombo.setValue(v.offset);\n },\n\n getValue: function () {\n return {\n dateType: this.options.dateType,\n value: this.editor.getValue(),\n offset: this.offsetCombo.getValue()[0]\n };\n }\n\n});\nBI.DynamicDateParamItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_date_param_item\", BI.DynamicDateParamItem);\nBI.DynamicDatePopup = BI.inherit(BI.Widget, {\n constants: {\n tabHeight: 30,\n buttonHeight: 24\n },\n\n props: {\n baseCls: \"bi-dynamic-date-popup\",\n width: 248,\n height: 344\n },\n\n _init: function () {\n BI.DynamicDatePopup.superclass._init.apply(this, arguments);\n var self = this, opts = this.options, c = this.constants;\n this.storeValue = {type: BI.DynamicDateCombo.Static};\n BI.createWidget({\n element: this,\n type: \"bi.vtape\",\n items: [{\n el: this._getTabJson()\n }, {\n el: {\n type: \"bi.grid\",\n items: [[{\n type: \"bi.text_button\",\n cls: \"bi-high-light bi-split-top\",\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Clear\"),\n textHeight: c.buttonHeight - 1,\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDatePopup.BUTTON_CLEAR_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-left bi-split-right bi-high-light bi-split-top\",\n shadow: true,\n textHeight: c.buttonHeight - 1,\n text: BI.i18nText(\"BI-Multi_Date_Today\"),\n ref: function () {\n self.textButton = this;\n },\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDatePopup.BUTTON_lABEL_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-high-light bi-split-top\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_OK\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE);\n }\n }]\n }]]\n },\n height: 24\n }]\n });\n this.setValue(opts.value);\n },\n\n _getTabJson: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.tab\",\n ref: function () {\n self.dateTab = this;\n },\n tab: {\n type: \"bi.linear_segment\",\n cls: \"bi-split-bottom\",\n height: this.constants.tabHeight,\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Multi_Date_YMD\"),\n value: BI.DynamicDateCombo.Static\n }, {\n text: BI.i18nText(\"BI-Basic_Dynamic_Title\"),\n value: BI.DynamicDateCombo.Dynamic\n }], {\n textAlign: \"center\"\n })\n },\n cardCreator: function (v) {\n switch (v) {\n case BI.DynamicDateCombo.Dynamic:\n return {\n type: \"bi.dynamic_date_card\",\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self._setInnerValue(self.year, v);\n }\n }],\n ref: function () {\n self.dynamicPane = this;\n }\n };\n case BI.DynamicDateCombo.Static:\n default:\n return {\n type: \"bi.date_calendar_popup\",\n behaviors: o.behaviors,\n min: self.options.min,\n max: self.options.max,\n listeners: [{\n eventName: BI.DateCalendarPopup.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDatePopup.EVENT_CHANGE);\n }\n }],\n ref: function () {\n self.ymd = this;\n }\n };\n }\n },\n listeners: [{\n eventName: BI.Tab.EVENT_CHANGE,\n action: function () {\n var v = self.dateTab.getSelect();\n switch (v) {\n case BI.DynamicDateCombo.Static:\n var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue());\n self.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n });\n self._setInnerValue();\n break;\n case BI.DynamicDateCombo.Dynamic:\n default:\n if(self.storeValue && self.storeValue.type === BI.DynamicDateCombo.Dynamic) {\n self.dynamicPane.setValue(self.storeValue.value);\n }else{\n self.dynamicPane.setValue({\n year: 0\n });\n }\n self._setInnerValue();\n break;\n }\n }\n }]\n };\n },\n\n _setInnerValue: function () {\n if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {\n this.textButton.setValue(BI.i18nText(\"BI-Multi_Date_Today\"));\n this.textButton.setEnable(true);\n } else {\n var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());\n date = BI.print(date, \"%Y-%X-%d\");\n this.textButton.setValue(date);\n this.textButton.setEnable(false);\n }\n },\n\n _checkValueValid: function (value) {\n return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);\n },\n\n setMinDate: function (minDate) {\n if (this.options.min !== minDate) {\n this.options.min = minDate;\n this.ymd.setMinDate(minDate);\n }\n },\n\n setMaxDate: function (maxDate) {\n if (this.options.max !== maxDate) {\n this.options.max = maxDate;\n this.ymd.setMaxDate(maxDate);\n }\n },\n\n setValue: function (v) {\n this.storeValue = v;\n var self = this;\n var type, value;\n v = v || {};\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n this.dateTab.setSelect(type);\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n this.dynamicPane.setValue(value);\n self._setInnerValue();\n break;\n case BI.DynamicDateCombo.Static:\n default:\n if (this._checkValueValid(value)) {\n var date = BI.getDate();\n this.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n });\n this.textButton.setValue(BI.i18nText(\"BI-Multi_Date_Today\"));\n } else {\n this.ymd.setValue(value);\n this.textButton.setValue(BI.i18nText(\"BI-Multi_Date_Today\"));\n }\n this.textButton.setEnable(true);\n break;\n }\n },\n\n getValue: function () {\n return {\n type: this.dateTab.getSelect(),\n value: this.dateTab.getValue()\n };\n }\n});\nBI.DynamicDatePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE = \"BUTTON_OK_EVENT_CHANGE\";\nBI.DynamicDatePopup.BUTTON_lABEL_EVENT_CHANGE = \"BUTTON_lABEL_EVENT_CHANGE\";\nBI.DynamicDatePopup.BUTTON_CLEAR_EVENT_CHANGE = \"BUTTON_CLEAR_EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_date_popup\", BI.DynamicDatePopup);BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4,\n vgap: 2,\n yearLength: 4,\n yearMonthLength: 6,\n yearFullMonthLength: 7,\n compareFormat: \"%Y-%X-%d\"\n },\n\n props: {\n extraCls: \"bi-date-trigger\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 24,\n format: \"\", // 显示的日期格式化方式\n allowEdit: true, // 是否允许编辑\n watermark: \"\"\n },\n\n _init: function () {\n BI.DynamicDateTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.storeTriggerValue = \"\";\n this.editor = BI.createWidget({\n type: \"bi.sign_editor\",\n height: o.height,\n validationChecker: function (v) {\n var formatStr = self._getStandardDateStr(v);\n var date = formatStr.match(/\\d+/g);\n !BI.isKey(o.format) && self._autoAppend(v, date);\n return self._dateCheck(formatStr) && BI.checkDateLegal(formatStr) && self._checkVoid({\n year: date[0] | 0,\n month: date[1] | 0,\n day: date[2] | 0\n });\n },\n quitChecker: function () {\n return false;\n },\n hgap: c.hgap,\n vgap: c.vgap,\n allowBlank: true,\n watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText(\"BI-Basic_Unrestricted\"),\n errorText: function () {\n var str = \"\";\n if (!BI.isKey(o.format)) {\n str = self.editor.isEditing() ? BI.i18nText(\"BI-Date_Trigger_Error_Text\") : BI.i18nText(\"BI-Year_Trigger_Invalid_Text\");\n }\n return str;\n },\n title: BI.bind(this._getTitle, this)\n });\n this.editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () {\n self.fireEvent(BI.DynamicDateTrigger.EVENT_KEY_DOWN, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_FOCUS, function () {\n self.storeTriggerValue = self.getKey();\n self.fireEvent(BI.DynamicDateTrigger.EVENT_FOCUS);\n });\n this.editor.on(BI.SignEditor.EVENT_BLUR, function () {\n self.fireEvent(BI.DynamicDateTrigger.EVENT_BLUR);\n });\n this.editor.on(BI.SignEditor.EVENT_STOP, function () {\n self.fireEvent(BI.DynamicDateTrigger.EVENT_STOP);\n });\n this.editor.on(BI.SignEditor.EVENT_VALID, function () {\n self.fireEvent(BI.DynamicDateTrigger.EVENT_VALID);\n });\n this.editor.on(BI.SignEditor.EVENT_ERROR, function () {\n self.fireEvent(BI.DynamicDateTrigger.EVENT_ERROR);\n });\n this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () {\n var value = self.editor.getValue();\n if (BI.isNotNull(value)) {\n self.editor.setState(value);\n }\n\n if (BI.isNotEmptyString(value) && !BI.isEqual(self.storeTriggerValue, self.getKey())) {\n var formatStr = self._getStandardDateStr(value);\n var date = formatStr.match(/\\d+/g);\n self.storeValue = {\n type: BI.DynamicDateCombo.Static,\n value: {\n year: date[0] | 0,\n month: date[1] | 0,\n day: date[2] | 0\n }\n };\n }\n self.fireEvent(BI.DynamicDateTrigger.EVENT_CONFIRM);\n });\n this.editor.on(BI.SignEditor.EVENT_SPACE, function () {\n if (self.editor.isValid()) {\n self.editor.blur();\n }\n });\n this.editor.on(BI.SignEditor.EVENT_START, function () {\n self.fireEvent(BI.DynamicDateTrigger.EVENT_START);\n });\n this.editor.on(BI.SignEditor.EVENT_CHANGE, function () {\n self.fireEvent(BI.DynamicDateTrigger.EVENT_CHANGE);\n });\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n el: this.editor\n }, {\n el: BI.createWidget(),\n width: 24\n }]\n });\n !o.allowEdit && BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.text\",\n title: BI.bind(this._getTitle, this)\n },\n left: 0,\n right: 24,\n top: 0,\n bottom: 0\n }]\n });\n this.setValue(o.value);\n },\n\n _getTitle: function () {\n var storeValue = this.storeValue || {};\n var type = storeValue.type || BI.DynamicDateCombo.Static;\n var value = storeValue.value;\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n var date = BI.getDate();\n date = BI.DynamicDateHelper.getCalculation(value);\n var dateStr = BI.print(date, this._getFormatString());\n return BI.isEmptyString(text) ? dateStr : (text + \":\" + dateStr);\n case BI.DynamicDateCombo.Static:\n default:\n if (BI.isNull(value) || BI.isNull(value.day)) {\n return \"\";\n }\n return BI.print(BI.getDate(value.year, (value.month - 1), value.day), this._getFormatString());\n }\n },\n\n _getStandardDateStr: function (v) {\n var c = this._const;\n var result = [0, 1, 2];\n var formatArray = this._getFormatString().match(/%./g);\n BI.each(formatArray, function (idx, v) {\n switch (v) {\n case \"%Y\":\n case \"%y\":\n result[0] = idx;\n break;\n case \"%X\":\n case \"%x\":\n result[1] = idx;\n break;\n case \"%d\":\n case \"%e\":\n default:\n result[2] = idx;\n break;\n }\n });\n // 这边不能直接用\\d+去切日期, 因为format格式可能是20190607这样的没有分割符的 = =\n // 先看一下是否是合法的, 如果合法就变成标准格式的走原来的流程, 不合法不关心\n var date = BI.parseDateTime(v, this._getFormatString());\n if(BI.print(date, this._getFormatString()) === v) {\n v = BI.print(date, c.compareFormat);\n result = [0, 1, 2];\n }\n var dateArray = v.match(/\\d+/g);\n var newArray = [];\n BI.each(dateArray, function (idx) {\n newArray[idx] = dateArray[result[idx]];\n });\n // 这边之所以不直接返回join结果是因为年的格式可能只有2位,所以需要format一下\n if(newArray.length === result.length && newArray[0].length === 2) {\n return BI.print(BI.parseDateTime(newArray.join(\"-\"), c.compareFormat), c.compareFormat);\n }\n // 这边format成-20-也没关系, 反正都是不合法的\n return newArray.join(\"-\");\n },\n\n _getFormatString: function () {\n return this.options.format || this._const.compareFormat;\n },\n\n _dateCheck: function (date) {\n return BI.print(BI.parseDateTime(date, \"%Y-%x-%d\"), \"%Y-%x-%d\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%d\"), \"%Y-%X-%d\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%x-%e\"), \"%Y-%x-%e\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%e\"), \"%Y-%X-%e\") === date;\n },\n _checkVoid: function (obj) {\n return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.options.min, this.options.max)[0];\n },\n _autoAppend: function (v, dateObj) {\n if (BI.isNotNull(dateObj) && BI.checkDateLegal(v)) {\n switch (v.length) {\n case this._const.yearLength:\n if (this._yearCheck(v)) {\n this.editor.setValue(v + \"-\");\n }\n break;\n case this._const.yearMonthLength:\n case this._const.yearFullMonthLength:\n var splitMonth = v.split(\"-\")[1];\n if ((BI.isNotNull(splitMonth) && splitMonth.length === 2) || this._monthCheck(v)) {\n this.editor.setValue(v + \"-\");\n }\n break;\n }\n }\n },\n\n _yearCheck: function (v) {\n var date = BI.print(BI.parseDateTime(v, this._getFormatString()), this._const.compareFormat);\n return BI.print(BI.parseDateTime(v, \"%Y\"), \"%Y\") === v && date >= this.options.min && date <= this.options.max;\n },\n\n _monthCheck: function (v) {\n var date = BI.parseDateTime(v, this._getFormatString());\n var dateStr = BI.print(date, this._const.compareFormat);\n return (date.getMonth() >= 0 && (BI.print(BI.parseDateTime(v, \"%Y-%X\"), \"%Y-%X\") === v ||\n BI.print(BI.parseDateTime(v, \"%Y-%x\"), \"%Y-%x\") === v)) && dateStr >= this.options.min && dateStr <= this.options.max;\n },\n\n _setInnerValue: function (date) {\n var dateStr = BI.print(date, this._getFormatString());\n this.editor.setState(dateStr);\n this.editor.setValue(dateStr);\n },\n\n _getText: function (obj) {\n var value = \"\";\n var endText = \"\";\n if(BI.isNotNull(obj.year)) {\n if(BI.parseInt(obj.year) !== 0) {\n value += Math.abs(obj.year) + BI.i18nText(\"BI-Basic_Year\") + (obj.year < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Year\"), obj.position);\n }\n if(BI.isNotNull(obj.quarter)) {\n if(BI.parseInt(obj.quarter) !== 0) {\n value += Math.abs(obj.quarter) + BI.i18nText(\"BI-Basic_Single_Quarter\") + (obj.quarter < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Single_Quarter\"), obj.position);\n }\n if(BI.isNotNull(obj.month)) {\n if(BI.parseInt(obj.month) !== 0) {\n value += Math.abs(obj.month) + BI.i18nText(\"BI-Basic_Month\") + (obj.month < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Month\"), obj.position);\n }\n if(BI.isNotNull(obj.week)) {\n if(BI.parseInt(obj.week) !== 0) {\n value += Math.abs(obj.week) + BI.i18nText(\"BI-Basic_Week\") + (obj.week < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Week\"), obj.position);\n }\n if(BI.isNotNull(obj.day)) {\n if(BI.parseInt(obj.day) !== 0) {\n value += Math.abs(obj.day) + BI.i18nText(\"BI-Basic_Day\") + (obj.day < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = BI.size(obj) === 1 ? getPositionText(BI.i18nText(\"BI-Basic_Month\"), obj.position) : \"\";\n }\n if(BI.isNotNull(obj.workDay) && BI.parseInt(obj.workDay) !== 0) {\n value += Math.abs(obj.workDay) + BI.i18nText(\"BI-Basic_Work_Day\") + (obj.workDay < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n return value + endText;\n\n function getPositionText (baseText, position) {\n switch (position) {\n case BI.DynamicDateCard.OFFSET.BEGIN:\n return baseText + BI.i18nText(\"BI-Basic_Begin_Start\");\n case BI.DynamicDateCard.OFFSET.END:\n return baseText + BI.i18nText(\"BI-Basic_End_Stop\");\n case BI.DynamicDateCard.OFFSET.CURRENT:\n default:\n return BI.i18nText(\"BI-Basic_Current_Day\");\n }\n }\n },\n\n setValue: function (v) {\n var type, value, self = this;\n var date = BI.getDate();\n this.storeValue = v;\n if (BI.isNotNull(v)) {\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n }\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n date = BI.DynamicDateHelper.getCalculation(value);\n this._setInnerValue(date, text);\n break;\n case BI.DynamicDateCombo.Static:\n default:\n if (BI.isNull(value) || BI.isNull(value.day)) {\n this.editor.setState(\"\");\n this.editor.setValue(\"\");\n } else {\n var dateStr = BI.print(BI.getDate(value.year, (value.month - 1), value.day), this._getFormatString());\n this.editor.setState(dateStr);\n this.editor.setValue(dateStr);\n }\n break;\n }\n },\n\n setMinDate: function (minDate) {\n if (BI.isNotEmptyString(this.options.min)) {\n this.options.min = minDate;\n }\n },\n\n setMaxDate: function (maxDate) {\n if (BI.isNotEmptyString(this.options.max)) {\n this.options.max = maxDate;\n }\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n getValue: function () {\n return this.storeValue;\n }\n\n});\n\nBI.DynamicDateTrigger.EVENT_BLUR = \"EVENT_BLUR\";\nBI.DynamicDateTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicDateTrigger.EVENT_START = \"EVENT_START\";\nBI.DynamicDateTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.DynamicDateTrigger.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicDateTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DynamicDateTrigger.EVENT_VALID = \"EVENT_VALID\";\nBI.DynamicDateTrigger.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicDateTrigger.EVENT_TRIGGER_CLICK = \"EVENT_TRIGGER_CLICK\";\nBI.DynamicDateTrigger.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.shortcut(\"bi.dynamic_date_trigger\", BI.DynamicDateTrigger);\nBI.DynamicDateTimeCombo = BI.inherit(BI.Single, {\n constants: {\n popupHeight: 259,\n popupWidth: 270,\n comboAdjustHeight: 1,\n border: 1\n },\n\n props: {\n baseCls: \"bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius\",\n height: 22,\n minDate: \"1900-01-01\",\n maxDate: \"2099-12-31\",\n format: \"\",\n allowEdit: true\n },\n\n\n render: function () {\n var self = this, opts = this.options;\n this.storeTriggerValue = \"\";\n var date = BI.getDate();\n this.storeValue = opts.value;\n return {\n type: \"bi.htape\",\n items: [{\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-change-h-font\",\n width: opts.height,\n height: opts.height,\n ref: function () {\n self.changeIcon = this;\n }\n },\n width: opts.height\n }, {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.combo\",\n destroyWhenHide: true,\n container: opts.container,\n ref: function () {\n self.combo = this;\n },\n toggle: false,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: {\n type: \"bi.dynamic_date_time_trigger\",\n min: opts.minDate,\n max: opts.maxDate,\n allowEdit: opts.allowEdit,\n watermark: opts.watermark,\n format: opts.format,\n height: opts.height,\n value: opts.value,\n ref: function () {\n self.trigger = this;\n },\n listeners: [{\n eventName: BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN,\n action: function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n }\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_KEY_DOWN, arguments);\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_STOP,\n action: function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_TRIGGER_CLICK,\n action: function () {\n self.combo.toggle();\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_FOCUS,\n action: function () {\n self.storeTriggerValue = self.trigger.getKey();\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_ERROR,\n action: function () {\n self.storeValue = {\n type: BI.DynamicDateTimeCombo.Static,\n value: {\n year: date.getFullYear(),\n month: date.getMonth() + 1\n }\n };\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_ERROR);\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_VALID,\n action: function () {\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_VALID);\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CHANGE);\n }\n }, {\n eventName: BI.DynamicDateTimeTrigger.EVENT_CONFIRM,\n action: function () {\n if (self.combo.isViewVisible()) {\n return;\n }\n var dateStore = self.storeTriggerValue;\n var dateObj = self.trigger.getKey();\n if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) {\n self.storeValue = self.trigger.getValue();\n self.setValue(self.trigger.getValue());\n } else if (BI.isEmptyString(dateObj)) {\n self.storeValue = null;\n self.trigger.setValue();\n }\n self._checkDynamicValue(self.storeValue);\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);\n }\n }]\n },\n adjustLength: this.constants.comboAdjustHeight,\n popup: {\n el: {\n type: \"bi.dynamic_date_time_popup\",\n behaviors: opts.behaviors,\n min: opts.minDate,\n max: opts.maxDate,\n ref: function () {\n self.popup = this;\n },\n listeners: [{\n eventName: BI.DynamicDateTimePopup.BUTTON_CLEAR_EVENT_CHANGE,\n action: function () {\n self.setValue();\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicDateTimePopup.BUTTON_lABEL_EVENT_CHANGE,\n action: function () {\n var date = BI.getDate();\n self.setValue({\n type: BI.DynamicDateTimeCombo.Static,\n value: {\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate(),\n hour: 0,\n minute: 0,\n second: 0\n }\n });\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE,\n action: function () {\n var value = self.popup.getValue();\n if(self._checkValue(value)) {\n self.setValue(value);\n }\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicDateTimePopup.EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);\n }\n }]\n },\n stopPropagation: false\n },\n listeners: [{\n eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,\n action: function () {\n self.popup.setValue(self.storeValue);\n self.popup.setMinDate(opts.minDate);\n self.popup.setMaxDate(opts.maxDate);\n self.fireEvent(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW);\n }\n }],\n // DEC-4250 和复选下拉一样,点击不收起\n hideChecker: function (e) {\n return self.triggerBtn.element.find(e.target).length === 0;\n }\n },\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-font\",\n width: opts.height,\n height: opts.height,\n listeners: [{\n eventName: BI.IconButton.EVENT_CHANGE,\n action: function () {\n if (self.combo.isViewVisible()) {\n // self.combo.hideView();\n } else {\n self.combo.showView();\n }\n }\n }],\n ref: function () {\n self.triggerBtn = this;\n }\n },\n top: 0,\n right: 0\n }]\n }],\n ref: function (_ref) {\n self.comboWrapper = _ref;\n }\n };\n },\n\n mounted: function () {\n this._checkDynamicValue(this.storeValue);\n },\n\n _checkDynamicValue: function (v) {\n var o = this.options;\n var type = null;\n if (BI.isNotNull(v)) {\n type = v.type;\n }\n switch (type) {\n case BI.DynamicDateTimeCombo.Dynamic:\n this.changeIcon.setVisible(true);\n this.comboWrapper.attr(\"items\")[0].width = o.height;\n this.comboWrapper.resize();\n break;\n default:\n this.comboWrapper.attr(\"items\")[0].width = 0;\n this.comboWrapper.resize();\n this.changeIcon.setVisible(false);\n break;\n }\n },\n\n _checkValue: function (v) {\n switch (v.type) {\n case BI.DynamicDateCombo.Dynamic:\n return BI.isNotEmptyObject(v.value);\n case BI.DynamicDateCombo.Static:\n default:\n return true;\n }\n },\n\n setMinDate: function (minDate) {\n var o = this.options;\n o.minDate = minDate;\n this.trigger.setMinDate(minDate);\n this.popup && this.popup.setMinDate(minDate);\n },\n\n setMaxDate: function (maxDate) {\n var o = this.options;\n o.maxDate = maxDate;\n this.trigger.setMaxDate(maxDate);\n this.popup && this.popup.setMaxDate(maxDate);\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.trigger.setValue(v);\n this._checkDynamicValue(v);\n },\n getValue: function () {\n return this.storeValue;\n },\n getKey: function () {\n return this.trigger.getKey();\n },\n hidePopupView: function () {\n this.combo.hideView();\n },\n\n isValid: function () {\n return this.trigger.isValid();\n }\n});\n\nBI.DynamicDateTimeCombo.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.DynamicDateTimeCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicDateTimeCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicDateTimeCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.DynamicDateTimeCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DynamicDateTimeCombo.EVENT_VALID = \"EVENT_VALID\";\nBI.DynamicDateTimeCombo.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\n\nBI.shortcut(\"bi.dynamic_date_time_combo\", BI.DynamicDateTimeCombo);\n\nBI.extend(BI.DynamicDateTimeCombo, {\n Static: 1,\n Dynamic: 2\n});BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {\n constants: {\n tabHeight: 30,\n buttonHeight: 24\n },\n\n props: {\n baseCls: \"bi-dynamic-date-time-popup\",\n width: 248,\n height: 385\n },\n\n _init: function () {\n BI.DynamicDateTimePopup.superclass._init.apply(this, arguments);\n var self = this, opts = this.options, c = this.constants;\n this.storeValue = {type: BI.DynamicDateCombo.Static};\n BI.createWidget({\n element: this,\n type: \"bi.vtape\",\n items: [{\n el: this._getTabJson()\n }, {\n el: {\n type: \"bi.grid\",\n items: [[{\n type: \"bi.text_button\",\n cls: \"bi-high-light bi-split-top\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Clear\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDateTimePopup.BUTTON_CLEAR_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-left bi-split-right bi-high-light bi-split-top\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Multi_Date_Today\"),\n ref: function () {\n self.textButton = this;\n },\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDateTimePopup.BUTTON_lABEL_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-high-light bi-split-top\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_OK\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);\n }\n }]\n }]]\n },\n height: 24\n }]\n });\n this.setValue(opts.value);\n },\n\n _getTabJson: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.tab\",\n ref: function () {\n self.dateTab = this;\n },\n tab: {\n type: \"bi.linear_segment\",\n cls: \"bi-split-bottom\",\n height: this.constants.tabHeight,\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Multi_Date_YMD\"),\n value: BI.DynamicDateCombo.Static\n }, {\n text: BI.i18nText(\"BI-Basic_Dynamic_Title\"),\n value: BI.DynamicDateCombo.Dynamic\n }], {\n textAlign: \"center\"\n })\n },\n cardCreator: function (v) {\n switch (v) {\n case BI.DynamicDateCombo.Dynamic:\n return {\n type: \"bi.dynamic_date_card\",\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self._setInnerValue(self.year, v);\n }\n }],\n ref: function () {\n self.dynamicPane = this;\n }\n };\n case BI.DynamicDateCombo.Static:\n default:\n return {\n type: \"bi.vtape\",\n items: [{\n type: \"bi.date_calendar_popup\",\n behaviors: o.behaviors,\n min: self.options.min,\n max: self.options.max,\n ref: function () {\n self.ymd = this;\n }\n }, {\n el: {\n type: \"bi.dynamic_date_time_select\",\n cls: \"bi-split-top\",\n ref: function () {\n self.timeSelect = this;\n }\n },\n height: 40\n }]\n };\n }\n },\n listeners: [{\n eventName: BI.Tab.EVENT_CHANGE,\n action: function () {\n var v = self.dateTab.getSelect();\n switch (v) {\n case BI.DynamicDateCombo.Static:\n var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue());\n self.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n });\n self.timeSelect.setValue();\n self._setInnerValue();\n break;\n case BI.DynamicDateCombo.Dynamic:\n default:\n if(self.storeValue && self.storeValue.type === BI.DynamicDateCombo.Dynamic) {\n self.dynamicPane.setValue(self.storeValue.value);\n }else{\n self.dynamicPane.setValue({\n year: 0\n });\n }\n self._setInnerValue();\n break;\n }\n }\n }]\n };\n },\n\n _setInnerValue: function () {\n if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {\n this.textButton.setValue(BI.i18nText(\"BI-Multi_Date_Today\"));\n this.textButton.setEnable(true);\n } else {\n var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());\n date = BI.print(date, \"%Y-%X-%d\");\n this.textButton.setValue(date);\n this.textButton.setEnable(false);\n }\n },\n\n _checkValueValid: function (value) {\n return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);\n },\n\n setMinDate: function (minDate) {\n if (this.options.min !== minDate) {\n this.options.min = minDate;\n this.ymd.setMinDate(minDate);\n }\n },\n\n setMaxDate: function (maxDate) {\n if (this.options.max !== maxDate) {\n this.options.max = maxDate;\n this.ymd.setMaxDate(maxDate);\n }\n },\n\n setValue: function (v) {\n this.storeValue = v;\n var self = this;\n var type, value;\n v = v || {};\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n this.dateTab.setSelect(type);\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n this.dynamicPane.setValue(value);\n self._setInnerValue();\n break;\n case BI.DynamicDateCombo.Static:\n default:\n if (this._checkValueValid(value)) {\n var date = BI.getDate();\n this.ymd.setValue({\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate()\n });\n this.timeSelect.setValue();\n this.textButton.setValue(BI.i18nText(\"BI-Multi_Date_Today\"));\n } else {\n this.ymd.setValue(value);\n this.timeSelect.setValue({\n hour: value.hour,\n minute: value.minute,\n second: value.second\n });\n this.textButton.setValue(BI.i18nText(\"BI-Multi_Date_Today\"));\n }\n this.textButton.setEnable(true);\n break;\n }\n },\n\n getValue: function () {\n var type = this.dateTab.getSelect();\n return {\n type: type,\n value: type === BI.DynamicDateTimeCombo.Static ? BI.extend(this.ymd.getValue(), this.timeSelect.getValue()) : this.dynamicPane.getValue()\n };\n }\n});\nBI.DynamicDateTimePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE = \"BUTTON_OK_EVENT_CHANGE\";\nBI.DynamicDateTimePopup.BUTTON_lABEL_EVENT_CHANGE = \"BUTTON_lABEL_EVENT_CHANGE\";\nBI.DynamicDateTimePopup.BUTTON_CLEAR_EVENT_CHANGE = \"BUTTON_CLEAR_EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_date_time_popup\", BI.DynamicDateTimePopup);BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-date-time-select\"\n },\n\n render: function () {\n var self = this;\n return {\n type: \"bi.center_adapt\",\n items: [{\n type: \"bi.vertical_adapt\",\n items: [{\n el: {\n type: \"bi.number_editor\",\n ref: function () {\n self.hour = this;\n },\n validationChecker: function (v) {\n return BI.isNaturalNumber(v) && BI.parseInt(v) < 24;\n },\n errorText: function (v) {\n if(BI.isNumeric(v)) {\n return BI.i18nText(\"BI-Basic_Input_From_To_Number\", \"\\\"00-23\\\"\");\n }\n return BI.i18nText(\"BI-Numerical_Interval_Input_Data\");\n },\n listeners: [{\n eventName: BI.SignEditor.EVENT_CONFIRM,\n action: function () {\n var value = this.getValue();\n self._checkHour(value);\n this.setValue(self._formatValueToDoubleDigit(value));\n self.fireEvent(BI.DynamicDateTimeSelect.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.SignEditor.EVENT_CHANGE,\n action: function () {\n var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.HOUR);\n this.setValue(value);\n }\n }],\n width: 60,\n height: 24\n }\n }, {\n type: \"bi.label\",\n text: \":\",\n width: 20\n }, {\n type: \"bi.number_editor\",\n ref: function () {\n self.minute = this;\n },\n validationChecker: function (v) {\n return BI.isNaturalNumber(v) && BI.parseInt(v) < 60;\n },\n errorText: function (v) {\n if(BI.isNumeric(v)) {\n return BI.i18nText(\"BI-Basic_Input_From_To_Number\", \"\\\"00-59\\\"\");\n }\n return BI.i18nText(\"BI-Numerical_Interval_Input_Data\");\n },\n listeners: [{\n eventName: BI.SignEditor.EVENT_CONFIRM,\n action: function () {\n var value = this.getValue();\n self._checkMinute(value);\n this.setValue(self._formatValueToDoubleDigit(value), BI.DynamicDateTimeSelect.MINUTE);\n self.fireEvent(BI.DynamicDateTimeSelect.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.SignEditor.EVENT_CHANGE,\n action: function () {\n var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.MINUTE);\n this.setValue(value);\n }\n }],\n width: 60,\n height: 24\n }, {\n type: \"bi.label\",\n text: \":\",\n width: 20\n }, {\n type: \"bi.number_editor\",\n ref: function () {\n self.second = this;\n },\n validationChecker: function (v) {\n return BI.isNaturalNumber(v) && BI.parseInt(v) < 60;\n },\n errorText: function (v) {\n if(BI.isNumeric(v)) {\n return BI.i18nText(\"BI-Basic_Input_From_To_Number\", \"\\\"00-59\\\"\");\n }\n return BI.i18nText(\"BI-Numerical_Interval_Input_Data\");\n },\n listeners: [{\n eventName: BI.SignEditor.EVENT_CONFIRM,\n action: function () {\n var value = this.getValue();\n self._checkSecond(value);\n this.setValue(self._formatValueToDoubleDigit(value));\n self.fireEvent(BI.DynamicDateTimeSelect.EVENT_CONFIRM);\n }\n }],\n width: 60,\n height: 24\n }]\n }]\n };\n },\n\n _checkBorder: function (v) {\n v = v || {};\n this._checkHour(v.hour);\n this._checkMinute(v.minute);\n this._checkSecond(v.second);\n },\n\n _checkHour: function (value) {\n this.hour.setDownEnable(BI.parseInt(value) > 0);\n this.hour.setUpEnable(BI.parseInt(value) < 23);\n },\n\n _checkMinute: function (value) {\n this.minute.setDownEnable(BI.parseInt(value) > 0);\n this.minute.setUpEnable(BI.parseInt(value) < 59);\n },\n\n _checkSecond: function (value) {\n this.second.setDownEnable(BI.parseInt(value) > 0);\n this.second.setUpEnable(BI.parseInt(value) < 59);\n },\n\n _autoSwitch: function (v, type) {\n var limit = 0;\n var value = v + \"\";\n switch (type) {\n case BI.DynamicDateTimeSelect.HOUR:\n limit = 2;\n break;\n case BI.DynamicDateTimeSelect.MINUTE:\n limit = 5;\n break;\n default:\n break;\n }\n if(value.length === 1 && BI.parseInt(value) > limit) {\n value = \"0\" + value;\n }\n if (value.length === 2) {\n switch (type) {\n case BI.DynamicDateTimeSelect.HOUR:\n this.hour.isEditing() && this.minute.focus();\n break;\n case BI.DynamicDateTimeSelect.MINUTE:\n this.minute.isEditing() && this.second.focus();\n break;\n case BI.DynamicDateTimeSelect.SECOND:\n default:\n break;\n }\n }\n return value;\n },\n\n _formatValueToDoubleDigit: function (v) {\n if(BI.isNull(v) || BI.isEmptyString(v)) {\n v = 0;\n }\n var value = BI.parseInt(v);\n if(value < 10) {\n value = \"0\" + value;\n }\n return value;\n },\n\n _assertValue: function (v) {\n v = v || {};\n v.hour = this._formatValueToDoubleDigit(v.hour) || \"00\";\n v.minute = this._formatValueToDoubleDigit(v.minute) || \"00\";\n v.second = this._formatValueToDoubleDigit(v.second) || \"00\";\n return v;\n },\n\n getValue: function () {\n return {\n hour: BI.parseInt(this.hour.getValue()),\n minute: BI.parseInt(this.minute.getValue()),\n second: BI.parseInt(this.second.getValue())\n };\n },\n\n setValue: function (v) {\n v = this._assertValue(v);\n this.hour.setValue(v.hour);\n this.minute.setValue(v.minute);\n this.second.setValue(v.second);\n this._checkBorder(v);\n }\n\n});\nBI.DynamicDateTimeSelect.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.dynamic_date_time_select\", BI.DynamicDateTimeSelect);\n\nBI.extend(BI.DynamicDateTimeSelect, {\n HOUR: 1,\n MINUTE: 2,\n SECOND: 3\n});BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4,\n vgap: 2,\n yearLength: 4,\n yearMonthLength: 6,\n yearFullMonthLength: 7,\n compareFormat: \"%Y-%X-%d %H:%M:%S\"\n },\n\n props: {\n extraCls: \"bi-date-time-trigger\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 24,\n format: \"\", // 显示的日期格式化方式\n allowEdit: true, // 是否允许编辑\n watermark: \"\"\n },\n\n _init: function () {\n BI.DynamicDateTimeTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.storeTriggerValue = \"\";\n this.editor = BI.createWidget({\n type: \"bi.sign_editor\",\n height: o.height,\n validationChecker: function (v) {\n var formatStr = self._getStandardDateStr(v);\n var date = formatStr.match(/\\d+/g);\n !BI.isKey(o.format) && self._autoAppend(v, date);\n return self._dateCheck(formatStr) && BI.checkDateLegal(formatStr) && self._checkVoid({\n year: date[0] | 0,\n month: date[1] | 0,\n day: date[2] | 0\n });\n },\n quitChecker: function () {\n return false;\n },\n hgap: c.hgap,\n vgap: c.vgap,\n allowBlank: true,\n watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText(\"BI-Basic_Unrestricted\"),\n errorText: function () {\n var str = \"\";\n if (!BI.isKey(o.format)) {\n str = self.editor.isEditing() ? BI.i18nText(\"BI-Basic_Date_Time_Error_Text\") : BI.i18nText(\"BI-Year_Trigger_Invalid_Text\");\n }\n return str;\n },\n title: BI.bind(this._getTitle, this)\n });\n this.editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () {\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_FOCUS, function () {\n self.storeTriggerValue = self.getKey();\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_FOCUS);\n });\n this.editor.on(BI.SignEditor.EVENT_BLUR, function () {\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_BLUR);\n });\n this.editor.on(BI.SignEditor.EVENT_STOP, function () {\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_STOP);\n });\n this.editor.on(BI.SignEditor.EVENT_VALID, function () {\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_VALID);\n });\n this.editor.on(BI.SignEditor.EVENT_ERROR, function () {\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_ERROR);\n });\n this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () {\n var value = self.editor.getValue();\n if (BI.isNotNull(value)) {\n self.editor.setState(value);\n }\n\n if (BI.isNotEmptyString(value) && !BI.isEqual(self.storeTriggerValue, self.getKey())) {\n var formatStr = self._getStandardDateStr(value);\n var date = formatStr.match(/\\d+/g);\n self.storeValue = {\n type: BI.DynamicDateCombo.Static,\n value: {\n year: date[0] | 0,\n month: date[1] | 0,\n day: date[2] | 0,\n hour: date[3] | 0,\n minute: date[4] | 0,\n second: date[5] | 0\n }\n };\n }\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_CONFIRM);\n });\n this.editor.on(BI.SignEditor.EVENT_START, function () {\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_START);\n });\n this.editor.on(BI.SignEditor.EVENT_CHANGE, function () {\n self.fireEvent(BI.DynamicDateTimeTrigger.EVENT_CHANGE);\n });\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [{\n el: this.editor\n }, {\n el: BI.createWidget(),\n width: 24\n }]\n });\n\n !o.allowEdit && BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.text\",\n title: BI.bind(this._getTitle, this)\n },\n left: 0,\n right: 24,\n top: 0,\n bottom: 0\n }]\n });\n this.setValue(o.value);\n },\n\n _getTitle: function () {\n var storeValue = this.storeValue || {};\n var type = storeValue.type || BI.DynamicDateCombo.Static;\n var value = storeValue.value;\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n var date = BI.DynamicDateHelper.getCalculation(value);\n var dateStr = BI.print(date, this._getFormatString());\n return BI.isEmptyString(text) ? dateStr : (text + \":\" + dateStr);\n case BI.DynamicDateCombo.Static:\n default:\n if (BI.isNull(value) || BI.isNull(value.day)) {\n return \"\";\n }\n return BI.print(BI.getDate(value.year, (value.month - 1), value.day, value.hour || 0, value.minute || 0,\n value.second || 0), this._getFormatString());\n }\n },\n\n _getStandardDateStr: function (v) {\n var c = this._const;\n var result = [];\n var hasSecond = false;\n var formatArray = this._getFormatString().match(/%./g);\n BI.each(formatArray, function (idx, v) {\n switch (v) {\n case \"%Y\":\n case \"%y\":\n result[0] = idx;\n break;\n case \"%X\":\n case \"%x\":\n result[1] = idx;\n break;\n case \"%d\":\n case \"%e\":\n result[2] = idx;\n break;\n case \"%S\":\n hasSecond = true;\n break;\n default:\n break;\n }\n });\n // 这边不能直接用\\d+去切日期, 因为format格式可能是20190607这样的没有分割符的 = =\n // 先看一下是否是合法的, 如果合法就变成标准格式的走原来的流程, 不合法不关心\n var date = BI.parseDateTime(v, this._getFormatString());\n if(BI.print(date, this._getFormatString()) === v) {\n v = BI.print(date, c.compareFormat);\n result = [0, 1, 2];\n }\n var dateArray = v.match(/\\d+/g) || [];\n var newArray = [];\n // 处理乱序的年月日\n BI.each(dateArray.slice(0, 3), function (idx) {\n newArray[idx] = dateArray[result[idx]];\n });\n // 拼接时分秒和pm\n var suffixArray = dateArray.slice(3);\n // 时分秒补0\n BI.each(suffixArray, function (idx, v) {\n BI.isNumeric(v) && v.length === 1 && (suffixArray[idx] = \"0\" + v);\n });\n // hh:mm\n if(suffixArray.length === 2 && !hasSecond) {\n suffixArray.push(\"00\");\n }\n var suffixString = suffixArray.join(\":\");\n var dateString = newArray.slice(0, 3).join(\"-\");\n if (BI.isNotEmptyString(suffixString)) {\n dateString += \" \" + suffixString;\n }\n return dateString;\n },\n\n _getFormatString: function () {\n return this.options.format || this._const.compareFormat;\n },\n\n _dateCheck: function (date) {\n return BI.print(BI.parseDateTime(date, \"%Y-%x-%d %H:%M:%S\"), \"%Y-%x-%d %H:%M:%S\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%d %H:%M:%S\"), \"%Y-%X-%d %H:%M:%S\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%x-%e %H:%M:%S\"), \"%Y-%x-%e %H:%M:%S\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%e %H:%M:%S\"), \"%Y-%X-%e %H:%M:%S\") === date ||\n\n BI.print(BI.parseDateTime(date, \"%Y-%x-%d\"), \"%Y-%x-%d\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%d\"), \"%Y-%X-%d\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%x-%e\"), \"%Y-%x-%e\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%e\"), \"%Y-%X-%e\") === date;\n },\n _checkVoid: function (obj) {\n return !BI.checkDateVoid(obj.year, obj.month, obj.day, this.options.min, this.options.max)[0];\n },\n _autoAppend: function (v, dateObj) {\n if (BI.isNotNull(dateObj) && BI.checkDateLegal(v)) {\n switch (v.length) {\n case this._const.yearLength:\n if (this._yearCheck(v)) {\n this.editor.setValue(v + \"-\");\n }\n break;\n case this._const.yearMonthLength:\n case this._const.yearFullMonthLength:\n var splitMonth = v.split(\"-\")[1];\n if ((BI.isNotNull(splitMonth) && splitMonth.length === 2) || this._monthCheck(v)) {\n this.editor.setValue(v + \"-\");\n }\n break;\n }\n }\n },\n\n _yearCheck: function (v) {\n var date = BI.print(BI.parseDateTime(v, \"%Y-%X-%d\"), \"%Y-%X-%d\");\n return BI.print(BI.parseDateTime(v, \"%Y\"), \"%Y\") === v && date >= this.options.min && date <= this.options.max;\n },\n\n _monthCheck: function (v) {\n var date = BI.parseDateTime(v, \"%Y-%X-%d\");\n var dateStr = BI.print(date, \"%Y-%X-%d\");\n return (date.getMonth() > 0 && (BI.print(BI.parseDateTime(v, \"%Y-%X\"), \"%Y-%X\") === v ||\n BI.print(BI.parseDateTime(v, \"%Y-%x\"), \"%Y-%x\") === v)) && dateStr >= this.options.min && dateStr <= this.options.max;\n },\n\n _setInnerValue: function (date) {\n var dateStr = BI.print(date, this._getFormatString());\n this.editor.setState(dateStr);\n this.editor.setValue(dateStr);\n },\n\n _getText: function (obj) {\n var value = \"\";\n var endText = \"\";\n if(BI.isNotNull(obj.year)) {\n if(BI.parseInt(obj.year) !== 0) {\n value += Math.abs(obj.year) + BI.i18nText(\"BI-Basic_Year\") + (obj.year < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Year\"), obj.position);\n }\n if(BI.isNotNull(obj.quarter)) {\n if(BI.parseInt(obj.quarter) !== 0) {\n value += Math.abs(obj.quarter) + BI.i18nText(\"BI-Basic_Single_Quarter\") + (obj.quarter < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Single_Quarter\"), obj.position);\n }\n if(BI.isNotNull(obj.month)) {\n if(BI.parseInt(obj.month) !== 0) {\n value += Math.abs(obj.month) + BI.i18nText(\"BI-Basic_Month\") + (obj.month < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Month\"), obj.position);\n }\n if(BI.isNotNull(obj.week)) {\n if(BI.parseInt(obj.week) !== 0) {\n value += Math.abs(obj.week) + BI.i18nText(\"BI-Basic_Week\") + (obj.week < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = getPositionText(BI.i18nText(\"BI-Basic_Week\"), obj.position);\n }\n if(BI.isNotNull(obj.day)) {\n if(BI.parseInt(obj.day) !== 0) {\n value += Math.abs(obj.day) + BI.i18nText(\"BI-Basic_Day\") + (obj.day < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n endText = BI.size(obj) === 1 ? getPositionText(BI.i18nText(\"BI-Basic_Month\"), obj.position) : \"\";\n }\n if(BI.isNotNull(obj.workDay) && BI.parseInt(obj.workDay) !== 0) {\n value += Math.abs(obj.workDay) + BI.i18nText(\"BI-Basic_Work_Day\") + (obj.workDay < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n return value + endText;\n\n function getPositionText (baseText, position) {\n switch (position) {\n case BI.DynamicDateCard.OFFSET.BEGIN:\n return baseText + BI.i18nText(\"BI-Basic_Begin_Start\");\n case BI.DynamicDateCard.OFFSET.END:\n return baseText + BI.i18nText(\"BI-Basic_End_Stop\");\n case BI.DynamicDateCard.OFFSET.CURRENT:\n default:\n return BI.i18nText(\"BI-Basic_Current_Day\");\n }\n }\n },\n\n setMinDate: function (minDate) {\n if (BI.isNotEmptyString(this.options.min)) {\n this.options.min = minDate;\n }\n },\n\n setMaxDate: function (maxDate) {\n if (BI.isNotEmptyString(this.options.max)) {\n this.options.max = maxDate;\n }\n },\n\n setValue: function (v) {\n var type, value, self = this;\n var date = BI.getDate();\n this.storeValue = v;\n if (BI.isNotNull(v)) {\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n }\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n date = BI.DynamicDateHelper.getCalculation(value);\n this._setInnerValue(date, text);\n break;\n case BI.DynamicDateCombo.Static:\n default:\n if (BI.isNull(value) || BI.isNull(value.day)) {\n this.editor.setState(\"\");\n this.editor.setValue(\"\");\n } else {\n var dateStr = BI.print(BI.getDate(value.year, (value.month - 1), value.day, value.hour || 0, value.minute || 0,\n value.second || 0), this._getFormatString());\n this.editor.setState(dateStr);\n this.editor.setValue(dateStr);\n }\n break;\n }\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n getValue: function () {\n return this.storeValue;\n },\n\n isValid: function () {\n return this.editor.isValid();\n }\n\n});\n\nBI.DynamicDateTimeTrigger.EVENT_BLUR = \"EVENT_BLUR\";\nBI.DynamicDateTimeTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicDateTimeTrigger.EVENT_START = \"EVENT_START\";\nBI.DynamicDateTimeTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.DynamicDateTimeTrigger.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicDateTimeTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DynamicDateTimeTrigger.EVENT_VALID = \"EVENT_VALID\";\nBI.DynamicDateTimeTrigger.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicDateTimeTrigger.EVENT_TRIGGER_CLICK = \"EVENT_TRIGGER_CLICK\";\nBI.DynamicDateTimeTrigger.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.shortcut(\"bi.dynamic_date_time_trigger\", BI.DynamicDateTimeTrigger);/**\n * Created by roy on 15/9/14.\n */\nBI.SearchEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.SearchEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-search-editor bi-border bi-focus-shadow\",\n height: 24,\n errorText: \"\",\n watermark: BI.i18nText(\"BI-Basic_Search\"),\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn\n });\n },\n _init: function () {\n this.options.height -= 2;\n BI.SearchEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height,\n watermark: o.watermark,\n allowBlank: true,\n hgap: 1,\n errorText: o.errorText,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n value: o.value\n });\n this.clear = BI.createWidget({\n type: \"bi.icon_button\",\n stopEvent: true,\n cls: \"close-font\"\n });\n this.clear.on(BI.IconButton.EVENT_CHANGE, function () {\n self.setValue(\"\");\n self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT);\n // 从有内容到无内容的清空也是一次change\n self.fireEvent(BI.SearchEditor.EVENT_CHANGE);\n self.fireEvent(BI.SearchEditor.EVENT_CLEAR);\n });\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [\n {\n el: {\n type: \"bi.icon_label\",\n cls: \"search-font\"\n },\n width: 24\n },\n {\n el: self.editor\n },\n {\n el: this.clear,\n width: 24\n }\n ]\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.editor.on(BI.Editor.EVENT_FOCUS, function () {\n self.fireEvent(BI.SearchEditor.EVENT_FOCUS);\n });\n this.editor.on(BI.Editor.EVENT_BLUR, function () {\n self.fireEvent(BI.SearchEditor.EVENT_BLUR);\n });\n this.editor.on(BI.Editor.EVENT_CLICK, function () {\n self.fireEvent(BI.SearchEditor.EVENT_CLICK);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE, function () {\n self._checkClear();\n self.fireEvent(BI.SearchEditor.EVENT_CHANGE);\n });\n this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.SearchEditor.EVENT_KEY_DOWN, v);\n });\n this.editor.on(BI.Editor.EVENT_SPACE, function () {\n self.fireEvent(BI.SearchEditor.EVENT_SPACE);\n });\n this.editor.on(BI.Editor.EVENT_BACKSPACE, function () {\n self.fireEvent(BI.SearchEditor.EVENT_BACKSPACE);\n });\n\n\n this.editor.on(BI.Editor.EVENT_VALID, function () {\n self.fireEvent(BI.SearchEditor.EVENT_VALID);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self.fireEvent(BI.SearchEditor.EVENT_ERROR);\n });\n this.editor.on(BI.Editor.EVENT_ENTER, function () {\n self.fireEvent(BI.SearchEditor.EVENT_ENTER);\n });\n this.editor.on(BI.Editor.EVENT_RESTRICT, function () {\n self.fireEvent(BI.SearchEditor.EVENT_RESTRICT);\n });\n this.editor.on(BI.Editor.EVENT_EMPTY, function () {\n self._checkClear();\n self.fireEvent(BI.SearchEditor.EVENT_EMPTY);\n });\n this.editor.on(BI.Editor.EVENT_REMOVE, function () {\n self.fireEvent(BI.SearchEditor.EVENT_REMOVE);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self.fireEvent(BI.SearchEditor.EVENT_CONFIRM);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self.fireEvent(BI.SearchEditor.EVENT_CHANGE_CONFIRM);\n });\n this.editor.on(BI.Editor.EVENT_START, function () {\n self.fireEvent(BI.SearchEditor.EVENT_START);\n });\n this.editor.on(BI.Editor.EVENT_PAUSE, function () {\n self.fireEvent(BI.SearchEditor.EVENT_PAUSE);\n });\n this.editor.on(BI.Editor.EVENT_STOP, function () {\n self.fireEvent(BI.SearchEditor.EVENT_STOP);\n });\n\n this.clear.invisible();\n },\n\n _checkClear: function () {\n if (!this.getValue()) {\n this.clear.invisible();\n } else {\n this.clear.visible();\n }\n },\n\n setWaterMark: function (v) {\n this.options.watermark = v;\n this.editor.setWaterMark(v);\n },\n\n focus: function () {\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n },\n\n getValue: function () {\n if (this.isValid()) {\n return this.editor.getValue();\n }\n },\n\n getKeywords: function () {\n var val = this.editor.getLastChangedValue();\n var keywords = val.match(/[\\S]+/g);\n if (BI.isEndWithBlank(val)) {\n return keywords.concat([\" \"]);\n }\n return keywords;\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n setValue: function (v) {\n this.editor.setValue(v);\n if (BI.isKey(v)) {\n this.clear.visible();\n }\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n isValid: function () {\n return this.editor.isValid();\n }\n});\nBI.SearchEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SearchEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SearchEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.SearchEditor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.SearchEditor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.SearchEditor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.SearchEditor.EVENT_BACKSPACE = \"EVENT_BACKSPACE\";\nBI.SearchEditor.EVENT_CLEAR = \"EVENT_CLEAR\";\n\nBI.SearchEditor.EVENT_START = \"EVENT_START\";\nBI.SearchEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.SearchEditor.EVENT_STOP = \"EVENT_STOP\";\nBI.SearchEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.SearchEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.SearchEditor.EVENT_VALID = \"EVENT_VALID\";\nBI.SearchEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.SearchEditor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.SearchEditor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.SearchEditor.EVENT_REMOVE = \"EVENT_REMOVE\";\nBI.SearchEditor.EVENT_EMPTY = \"EVENT_EMPTY\";\nBI.shortcut(\"bi.search_editor\", BI.SearchEditor);/**\n * 小号搜索框\n * Created by GUY on 2015/9/29.\n * @class BI.SmallSearchEditor\n * @extends BI.SearchEditor\n */\nBI.SmallSearchEditor = BI.inherit(BI.SearchEditor, {\n _defaultConfig: function () {\n var conf = BI.SmallSearchEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-small-search-editor\",\n height: 20\n });\n },\n\n _init: function () {\n BI.SmallSearchEditor.superclass._init.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.small_search_editor\", BI.SmallSearchEditor);/**\n * guy\n * @class BI.TextEditor\n * @extends BI.Single\n */\nBI.TextEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.TextEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-text-editor bi-border bi-focus-shadow\",\n hgap: 4,\n vgap: 2,\n lgap: 0,\n rgap: 0,\n tgap: 0,\n bgap: 0,\n validationChecker: BI.emptyFn,\n quitChecker: BI.emptyFn,\n allowBlank: false,\n watermark: \"\",\n errorText: \"\",\n height: 24\n });\n },\n\n _init: function () {\n BI.TextEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNumber(o.height)) {\n this.element.css({height: o.height - 2});\n }\n if (BI.isNumber(o.width)) {\n this.element.css({width: o.width - 2});\n }\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height - 2,\n hgap: o.hgap,\n vgap: o.vgap,\n lgap: o.lgap,\n rgap: o.rgap,\n tgap: o.tgap,\n bgap: o.bgap,\n value: o.value,\n title: o.title,\n tipType: o.tipType,\n validationChecker: o.validationChecker,\n quitChecker: o.quitChecker,\n allowBlank: o.allowBlank,\n watermark: o.watermark,\n errorText: o.errorText\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.editor.on(BI.Editor.EVENT_FOCUS, function () {\n self.fireEvent(BI.TextEditor.EVENT_FOCUS);\n });\n this.editor.on(BI.Editor.EVENT_BLUR, function () {\n self.fireEvent(BI.TextEditor.EVENT_BLUR);\n });\n this.editor.on(BI.Editor.EVENT_CLICK, function () {\n self.fireEvent(BI.TextEditor.EVENT_CLICK);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE, function () {\n self.fireEvent(BI.TextEditor.EVENT_CHANGE);\n });\n this.editor.on(BI.Editor.EVENT_KEY_DOWN, function (v) {\n self.fireEvent(BI.TextEditor.EVENT_KEY_DOWN);\n });\n this.editor.on(BI.Editor.EVENT_SPACE, function (v) {\n self.fireEvent(BI.TextEditor.EVENT_SPACE);\n });\n this.editor.on(BI.Editor.EVENT_BACKSPACE, function (v) {\n self.fireEvent(BI.TextEditor.EVENT_BACKSPACE);\n });\n\n\n this.editor.on(BI.Editor.EVENT_VALID, function () {\n self.fireEvent(BI.TextEditor.EVENT_VALID);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self.fireEvent(BI.TextEditor.EVENT_CONFIRM);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self.fireEvent(BI.TextEditor.EVENT_CHANGE_CONFIRM);\n });\n this.editor.on(BI.Editor.EVENT_REMOVE, function (v) {\n self.fireEvent(BI.TextEditor.EVENT_REMOVE);\n });\n this.editor.on(BI.Editor.EVENT_START, function () {\n self.fireEvent(BI.TextEditor.EVENT_START);\n });\n this.editor.on(BI.Editor.EVENT_PAUSE, function () {\n self.fireEvent(BI.TextEditor.EVENT_PAUSE);\n });\n this.editor.on(BI.Editor.EVENT_STOP, function () {\n self.fireEvent(BI.TextEditor.EVENT_STOP);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self.fireEvent(BI.TextEditor.EVENT_ERROR, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ENTER, function () {\n self.fireEvent(BI.TextEditor.EVENT_ENTER);\n });\n this.editor.on(BI.Editor.EVENT_RESTRICT, function () {\n self.fireEvent(BI.TextEditor.EVENT_RESTRICT);\n });\n this.editor.on(BI.Editor.EVENT_EMPTY, function () {\n self.fireEvent(BI.TextEditor.EVENT_EMPTY);\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [this.editor]\n });\n },\n\n setWaterMark: function (v) {\n this.options.watermark = v;\n this.editor.setWaterMark(v);\n },\n\n focus: function () {\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n },\n\n setErrorText: function (text) {\n this.editor.setErrorText(text);\n },\n\n getErrorText: function () {\n return this.editor.getErrorText();\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n setValue: function (v) {\n this.editor.setValue(v);\n },\n\n getValue: function () {\n return this.editor.getValue();\n }\n});\nBI.TextEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.TextEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.TextEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.TextEditor.EVENT_CLICK = \"EVENT_CLICK\";\nBI.TextEditor.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.TextEditor.EVENT_SPACE = \"EVENT_SPACE\";\nBI.TextEditor.EVENT_BACKSPACE = \"EVENT_BACKSPACE\";\n\nBI.TextEditor.EVENT_START = \"EVENT_START\";\nBI.TextEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.TextEditor.EVENT_STOP = \"EVENT_STOP\";\nBI.TextEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.TextEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.TextEditor.EVENT_VALID = \"EVENT_VALID\";\nBI.TextEditor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.TextEditor.EVENT_ENTER = \"EVENT_ENTER\";\nBI.TextEditor.EVENT_RESTRICT = \"EVENT_RESTRICT\";\nBI.TextEditor.EVENT_REMOVE = \"EVENT_REMOVE\";\nBI.TextEditor.EVENT_EMPTY = \"EVENT_EMPTY\";\n\nBI.shortcut(\"bi.text_editor\", BI.TextEditor);/**\n * 小号搜索框\n * Created by GUY on 2015/9/29.\n * @class BI.SmallTextEditor\n * @extends BI.SearchEditor\n */\nBI.SmallTextEditor = BI.inherit(BI.TextEditor, {\n _defaultConfig: function () {\n var conf = BI.SmallTextEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-small-text-editor\",\n height: 20\n });\n },\n\n _init: function () {\n BI.SmallTextEditor.superclass._init.apply(this, arguments);\n }\n});\nBI.shortcut(\"bi.small_text_editor\", BI.SmallTextEditor);/**\n * Created by zcf on 2016/9/26.\n */\nBI.IntervalSlider = BI.inherit(BI.Single, {\n _constant: {\n EDITOR_WIDTH: 58,\n EDITOR_R_GAP: 60,\n EDITOR_HEIGHT: 30,\n SLIDER_WIDTH_HALF: 15,\n SLIDER_WIDTH: 30,\n SLIDER_HEIGHT: 30,\n TRACK_HEIGHT: 24\n },\n\n props: {\n baseCls: \"bi-interval-slider bi-slider-track\",\n digit: false,\n unit: \"\"\n },\n\n render: function () {\n\n var self = this;\n var c = this._constant;\n this.enable = false;\n this.valueOne = \"\";\n this.valueTwo = \"\";\n this.calculation = new BI.AccurateCalculationModel();\n\n // this.backgroundTrack = BI.createWidget({\n // type: \"bi.layout\",\n // cls: \"background-track\",\n // height: c.TRACK_HEIGHT\n // });\n this.grayTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"gray-track\",\n height: 6\n });\n this.blueTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"blue-track bi-high-light-background\",\n height: 6\n });\n this.track = this._createTrackWrapper();\n\n this.labelOne = BI.createWidget({\n type: \"bi.sign_text_editor\",\n cls: \"slider-editor-button\",\n text: this.options.unit,\n allowBlank: false,\n width: c.EDITOR_WIDTH,\n validationChecker: function (v) {\n return self._checkValidation(v);\n }\n });\n this.labelOne.element.hover(function () {\n self.labelOne.element.removeClass(\"bi-border\").addClass(\"bi-border\");\n }, function () {\n self.labelOne.element.removeClass(\"bi-border\");\n });\n this.labelOne.on(BI.Editor.EVENT_CONFIRM, function () {\n var oldValueOne = self.valueOne;\n var v = BI.parseFloat(this.getValue());\n self.valueOne = v;\n var percent = self._getPercentByValue(v);\n var significantPercent = BI.parseFloat(percent.toFixed(1));// 分成1000份\n self._setSliderOnePosition(significantPercent);\n self._setBlueTrack();\n self._checkLabelPosition(oldValueOne, self.valueTwo, self.valueOne, self.valueTwo);\n self.fireEvent(BI.IntervalSlider.EVENT_CHANGE);\n });\n\n this.labelTwo = BI.createWidget({\n type: \"bi.sign_text_editor\",\n cls: \"slider-editor-button\",\n text: this.options.unit,\n allowBlank: false,\n width: c.EDITOR_WIDTH,\n validationChecker: function (v) {\n return self._checkValidation(v);\n }\n });\n this.labelTwo.element.hover(function () {\n self.labelTwo.element.removeClass(\"bi-border\").addClass(\"bi-border\");\n }, function () {\n self.labelTwo.element.removeClass(\"bi-border\");\n });\n this.labelTwo.on(BI.Editor.EVENT_CONFIRM, function () {\n var oldValueTwo = self.valueTwo;\n var v = BI.parseFloat(this.getValue());\n self.valueTwo = v;\n var percent = self._getPercentByValue(v);\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setSliderTwoPosition(significantPercent);\n self._setBlueTrack();\n self._checkLabelPosition(self.valueOne, oldValueTwo, self.valueOne, self.valueTwo);\n self.fireEvent(BI.IntervalSlider.EVENT_CHANGE);\n });\n\n this.sliderOne = BI.createWidget({\n type: \"bi.single_slider_button\"\n });\n this.sliderTwo = BI.createWidget({\n type: \"bi.single_slider_button\"\n });\n this._draggable(this.sliderOne, true);\n this._draggable(this.sliderTwo, false);\n this._setVisible(false);\n\n return {\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.track,\n width: \"100%\",\n height: c.TRACK_HEIGHT\n }]\n }],\n hgap: 7,\n height: c.TRACK_HEIGHT\n },\n top: 23,\n left: 0,\n width: \"100%\"\n },\n this._createLabelWrapper(),\n this._createSliderWrapper()\n ]\n };\n },\n\n _rePosBySizeAfterMove: function (size, isLeft) {\n var o = this.options;\n var percent = size * 100 / (this._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n var v = this._getValueByPercent(significantPercent);\n v = this._assertValue(v);\n v = o.digit === false ? v : v.toFixed(o.digit);\n var oldValueOne = this.valueOne, oldValueTwo = this.valueTwo;\n if(isLeft) {\n this._setSliderOnePosition(significantPercent);\n this.labelOne.setValue(v);\n this.valueOne = v;\n this._checkLabelPosition(oldValueOne, oldValueTwo, v, this.valueTwo);\n }else{\n this._setSliderTwoPosition(significantPercent);\n this.labelTwo.setValue(v);\n this.valueTwo = v;\n this._checkLabelPosition(oldValueOne, oldValueTwo, this.valueOne, v);\n }\n this._setBlueTrack();\n },\n\n _rePosBySizeAfterStop: function (size, isLeft) {\n var percent = size * 100 / (this._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n isLeft ? this._setSliderOnePosition(significantPercent) : this._setSliderTwoPosition(significantPercent);\n },\n\n _draggable: function (widget, isLeft) {\n var self = this, o = this.options;\n var startDrag = false;\n var size = 0, offset = 0, defaultSize = 0;\n var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX) {\n if (mouseMoveTracker.isDragging()) {\n startDrag = true;\n offset += deltaX;\n size = optimizeSize(defaultSize + offset);\n widget.element.addClass(\"dragging\");\n self._rePosBySizeAfterMove(size, isLeft);\n }\n }, function () {\n if (startDrag === true) {\n size = optimizeSize(size);\n self._rePosBySizeAfterStop(size, isLeft);\n size = 0;\n offset = 0;\n defaultSize = size;\n startDrag = false;\n }\n widget.element.removeClass(\"dragging\");\n mouseMoveTracker.releaseMouseMoves();\n self.fireEvent(BI.IntervalSlider.EVENT_CHANGE);\n }, window);\n widget.element.on(\"mousedown\", function (event) {\n if(!widget.isEnabled()) {\n return;\n }\n defaultSize = this.offsetLeft;\n optimizeSize(defaultSize);\n mouseMoveTracker.captureMouseMoves(event);\n });\n\n function optimizeSize (s) {\n return BI.clamp(s, 0, self._getGrayTrackLength());\n }\n },\n\n _createLabelWrapper: function () {\n var c = this._constant;\n return {\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.labelOne,\n top: 0,\n left: \"0%\"\n }]\n }, {\n type: \"bi.absolute\",\n items: [{\n el: this.labelTwo,\n top: 0,\n left: \"100%\"\n }]\n }],\n rgap: c.EDITOR_R_GAP,\n height: c.SLIDER_HEIGHT\n },\n top: 0,\n left: 0,\n width: \"100%\"\n };\n },\n\n _createSliderWrapper: function () {\n var c = this._constant;\n return {\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.sliderOne,\n top: 0,\n left: \"0%\"\n }]\n }, {\n type: \"bi.absolute\",\n items: [{\n el: this.sliderTwo,\n top: 0,\n left: \"100%\"\n }]\n }],\n hgap: c.SLIDER_WIDTH_HALF,\n height: c.SLIDER_HEIGHT\n },\n top: 20,\n left: 0,\n width: \"100%\"\n };\n },\n\n _createTrackWrapper: function () {\n return BI.createWidget({\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.grayTrack,\n top: 0,\n left: 0,\n width: \"100%\"\n }, {\n el: this.blueTrack,\n top: 0,\n left: 0,\n width: \"0%\"\n }]\n }],\n hgap: 8,\n height: 8\n },\n top: 8,\n left: 0,\n width: \"100%\"\n }]\n });\n },\n\n _checkValidation: function (v) {\n var o = this.options;\n var valid = false;\n // 像90.这样的既不属于整数又不属于小数,是不合法的值\n var dotText = (v + \"\").split(\".\")[1];\n if (BI.isEmptyString(dotText)) {\n }else{\n if (BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)) {\n // 虽然规定了所填写的小数位数,但是我们认为所有的整数都是满足设置的小数位数的\n // 100等价于100.0 100.00 100.000\n if(o.digit === false || BI.isInteger(v)) {\n valid = true;\n }else{\n dotText = dotText || \"\";\n valid = (dotText.length === o.digit);\n }\n }\n }\n return valid;\n },\n\n _checkOverlap: function () {\n var labelOneLeft = this.labelOne.element[0].offsetLeft;\n var labelTwoLeft = this.labelTwo.element[0].offsetLeft;\n if (labelOneLeft <= labelTwoLeft) {\n if ((labelTwoLeft - labelOneLeft) < 90) {\n this.labelTwo.element.css({top: 40});\n } else {\n this.labelTwo.element.css({top: 0});\n }\n } else {\n if ((labelOneLeft - labelTwoLeft) < 90) {\n this.labelTwo.element.css({top: 40});\n } else {\n this.labelTwo.element.css({top: 0});\n }\n }\n },\n\n _checkLabelPosition: function (oldValueOne, oldValueTwo, valueOne, valueTwo, isLeft) {\n oldValueOne = BI.parseFloat(oldValueOne);\n oldValueTwo = BI.parseFloat(oldValueTwo);\n valueOne = BI.parseFloat(valueOne);\n valueTwo = BI.parseFloat(valueTwo);\n if((oldValueOne <= oldValueTwo && valueOne > valueTwo) || (oldValueOne >= oldValueTwo && valueOne < valueTwo)) {\n var isSliderOneLeft = BI.parseFloat(this.sliderOne.element[0].style.left) < BI.parseFloat(this.sliderTwo.element[0].style.left);\n this._resetLabelPosition(!isSliderOneLeft);\n }\n },\n\n _resetLabelPosition: function(needReverse) {\n this.labelOne.element.css({left: needReverse ? \"100%\" : \"0%\"});\n this.labelTwo.element.css({left: needReverse ? \"0%\" : \"100%\"});\n },\n\n _setSliderOnePosition: function (percent) {\n this.sliderOne.element.css({left: percent + \"%\"});\n },\n\n _setSliderTwoPosition: function (percent) {\n this.sliderTwo.element.css({left: percent + \"%\"});\n },\n\n _setBlueTrackLeft: function (percent) {\n this.blueTrack.element.css({left: percent + \"%\"});\n },\n\n _setBlueTrackWidth: function (percent) {\n this.blueTrack.element.css({width: percent + \"%\"});\n },\n\n _setBlueTrack: function () {\n var percentOne = this._getPercentByValue(this.labelOne.getValue());\n var percentTwo = this._getPercentByValue(this.labelTwo.getValue());\n if (percentOne <= percentTwo) {\n this._setBlueTrackLeft(percentOne);\n this._setBlueTrackWidth(percentTwo - percentOne);\n } else {\n this._setBlueTrackLeft(percentTwo);\n this._setBlueTrackWidth(percentOne - percentTwo);\n }\n },\n\n _setAllPosition: function (one, two) {\n this._setSliderOnePosition(one);\n this._setSliderTwoPosition(two);\n this._setBlueTrack();\n },\n\n _setVisible: function (visible) {\n this.sliderOne.setVisible(visible);\n this.sliderTwo.setVisible(visible);\n this.labelOne.setVisible(visible);\n this.labelTwo.setVisible(visible);\n },\n\n _setErrorText: function () {\n var errorText = BI.i18nText(\"BI-Basic_Please_Enter_Number_Between\", this.min, this.max);\n this.labelOne.setErrorText(errorText);\n this.labelTwo.setErrorText(errorText);\n },\n\n _getGrayTrackLength: function () {\n return this.grayTrack.element[0].scrollWidth;\n },\n\n // 其中取max-min后保留4为有效数字后的值的小数位数为最终value的精度\n _getValueByPercent: function (percent) {// return (((max-min)*percent)/100+min)\n var sub = this.calculation.accurateSubtraction(this.max, this.min);\n var mul = this.calculation.accurateMultiplication(sub, percent);\n var div = this.calculation.accurateDivisionTenExponent(mul, 2);\n if(this.precision < 0) {\n var value = BI.parseFloat(this.calculation.accurateAddition(div, this.min));\n var reduceValue = Math.round(this.calculation.accurateDivisionTenExponent(value, -this.precision));\n return this.calculation.accurateMultiplication(reduceValue, Math.pow(10, -this.precision));\n }\n return BI.parseFloat(this.calculation.accurateAddition(div, this.min).toFixed(this.precision));\n\n },\n\n _getPercentByValue: function (v) {\n return (v - this.min) * 100 / (this.max - this.min);\n },\n\n _setDraggableEnable: function (enable) {\n this.sliderOne.setEnable(enable);\n this.sliderTwo.setEnable(enable);\n },\n\n _getPrecision: function () {\n // 计算每一份值的精度(最大值和最小值的差值保留4为有效数字后的精度)\n // 如果差值的整数位数大于4,toPrecision(4)得到的是科学计数法123456 => 1.235e+5\n // 返回非负值: 保留的小数位数\n // 返回负值: 保留的10^n精度中的n\n var sub = this.calculation.accurateSubtraction(this.max, this.min);\n var pre = sub.toPrecision(4);\n // 科学计数法\n var eIndex = pre.indexOf(\"e\");\n var arr = [];\n if(eIndex > -1) {\n arr = pre.split(\"e\");\n var decimalPartLength = BI.size(arr[0].split(\".\")[1]);\n var sciencePartLength = BI.parseInt(arr[1].substring(1));\n return decimalPartLength - sciencePartLength;\n }\n arr = pre.split(\".\");\n return arr.length > 1 ? arr[1].length : 0;\n\n },\n\n _assertValue: function (value) {\n if(value <= this.min) {\n return this.min;\n }\n if(value >= this.max) {\n return this.max;\n }\n return value;\n },\n\n _setEnable: function (b) {\n BI.IntervalSlider.superclass._setEnable.apply(this, [b]);\n if(b) {\n this.blueTrack.element.removeClass(\"disabled-blue-track\").addClass(\"blue-track\");\n } else {\n this.blueTrack.element.removeClass(\"blue-track\").addClass(\"disabled-blue-track\");\n }\n },\n\n getValue: function () {\n if (this.valueOne <= this.valueTwo) {\n return {min: this.valueOne, max: this.valueTwo};\n }\n return {min: this.valueTwo, max: this.valueOne};\n\n },\n\n setMinAndMax: function (v) {\n var minNumber = BI.parseFloat(v.min);\n var maxNumber = BI.parseFloat(v.max);\n if ((!isNaN(minNumber)) && (!isNaN(maxNumber)) && (maxNumber >= minNumber )) {\n this.min = minNumber;\n this.max = maxNumber;\n this.valueOne = minNumber;\n this.valueTwo = maxNumber;\n this.precision = this._getPrecision();\n this._setDraggableEnable(true);\n }\n if (maxNumber === minNumber) {\n this._setDraggableEnable(false);\n }\n },\n\n setValue: function (v) {\n var o = this.options;\n var valueOne = BI.parseFloat(v.min);\n var valueTwo = BI.parseFloat(v.max);\n valueOne = o.digit === false ? valueOne : BI.parseFloat(valueOne.toFixed(o.digit));\n valueTwo = o.digit === false ? valueTwo : BI.parseFloat(valueTwo.toFixed(o.digit));\n if (!isNaN(valueOne) && !isNaN(valueTwo)) {\n if (this._checkValidation(valueOne)) {\n this.valueOne = (this.valueOne <= this.valueTwo ? valueOne : valueTwo);\n }\n if (this._checkValidation(valueTwo)) {\n this.valueTwo = (this.valueOne <= this.valueTwo ? valueTwo : valueOne);\n }\n if (valueOne < this.min) {\n this.valueOne = this.min;\n }\n if (valueTwo > this.max) {\n this.valueTwo = this.max;\n }\n }\n },\n\n reset: function () {\n this._setVisible(false);\n this.enable = false;\n this.valueOne = \"\";\n this.valueTwo = \"\";\n this.min = NaN;\n this.max = NaN;\n this._setBlueTrackWidth(0);\n },\n\n populate: function () {\n var o = this.options;\n if (!isNaN(this.min) && !isNaN(this.max)) {\n this.enable = true;\n this._setVisible(true);\n this._setErrorText();\n if ((BI.isNumeric(this.valueOne) || BI.isNotEmptyString(this.valueOne)) && (BI.isNumeric(this.valueTwo) || BI.isNotEmptyString(this.valueTwo))) {\n this.labelOne.setValue(o.digit === false ? this.valueOne : BI.parseFloat(this.valueOne).toFixed(o.digit));\n this.labelTwo.setValue(o.digit === false ? this.valueTwo : BI.parseFloat(this.valueTwo).toFixed(o.digit));\n this._setAllPosition(this._getPercentByValue(this.valueOne), this._getPercentByValue(this.valueTwo));\n } else {\n this.labelOne.setValue(this.min);\n this.labelTwo.setValue(this.max);\n this._setAllPosition(0, 100);\n }\n this._resetLabelPosition(this.valueOne > this.valueTwo);\n }\n }\n});\nBI.IntervalSlider.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.interval_slider\", BI.IntervalSlider);/**\n * Created by zcf on 2017/3/1.\n * 万恶的IEEE-754\n * 使用字符串精确计算含小数加法、减法、乘法和10的指数倍除法,支持负数\n */\nBI.AccurateCalculationModel = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.AccurateCalculationModel.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"\"\n });\n },\n\n _init: function () {\n BI.AccurateCalculationModel.superclass._init.apply(this, arguments);\n },\n\n _getMagnitude: function (n) {\n var magnitude = \"1\";\n for (var i = 0; i < n; i++) {\n magnitude += \"0\";\n }\n return BI.parseInt(magnitude);\n },\n\n _formatDecimal: function (stringNumber1, stringNumber2) {\n if (stringNumber1.numDecimalLength === stringNumber2.numDecimalLength) {\n return;\n }\n var magnitudeDiff = stringNumber1.numDecimalLength - stringNumber2.numDecimalLength;\n if (magnitudeDiff > 0) {\n var needAddZero = stringNumber2;\n } else {\n var needAddZero = stringNumber1;\n magnitudeDiff = (0 - magnitudeDiff);\n }\n for (var i = 0; i < magnitudeDiff; i++) {\n if (needAddZero.numDecimal === \"0\" && i === 0) {\n continue;\n }\n needAddZero.numDecimal += \"0\";\n }\n },\n\n _stringNumberFactory: function (num) {\n var strNum = num.toString();\n var numStrArray = strNum.split(\".\");\n var numInteger = numStrArray[0];\n if (numStrArray.length === 1) {\n var numDecimal = \"0\";\n var numDecimalLength = 0;\n } else {\n var numDecimal = numStrArray[1];\n var numDecimalLength = numStrArray[1].length;\n }\n return {\n numInteger: numInteger,\n numDecimal: numDecimal,\n numDecimalLength: numDecimalLength\n };\n },\n\n _accurateSubtraction: function (num1, num2) {// num1-num2 && num1>num2\n var stringNumber1 = this._stringNumberFactory(num1);\n var stringNumber2 = this._stringNumberFactory(num2);\n // 整数部分计算\n var integerResult = BI.parseInt(stringNumber1.numInteger) - BI.parseInt(stringNumber2.numInteger);\n // 小数部分\n this._formatDecimal(stringNumber1, stringNumber2);\n var decimalMaxLength = getDecimalMaxLength(stringNumber1, stringNumber2);\n\n if (BI.parseInt(stringNumber1.numDecimal) >= BI.parseInt(stringNumber2.numDecimal)) {\n var decimalResultTemp = (BI.parseInt(stringNumber1.numDecimal) - BI.parseInt(stringNumber2.numDecimal)).toString();\n var decimalResult = addZero(decimalResultTemp, decimalMaxLength);\n } else {// 否则借位\n integerResult--;\n var borrow = this._getMagnitude(decimalMaxLength);\n var decimalResultTemp = (borrow + BI.parseInt(stringNumber1.numDecimal) - BI.parseInt(stringNumber2.numDecimal)).toString();\n var decimalResult = addZero(decimalResultTemp, decimalMaxLength);\n }\n var result = integerResult + \".\" + decimalResult;\n return BI.parseFloat(result);\n\n function getDecimalMaxLength (num1, num2) {\n if (num1.numDecimal.length >= num2.numDecimal.length) {\n return num1.numDecimal.length;\n }\n return num2.numDecimal.length;\n }\n\n function addZero (resultTemp, length) {\n var diff = length - resultTemp.length;\n for (var i = 0; i < diff; i++) {\n resultTemp = \"0\" + resultTemp;\n }\n return resultTemp;\n }\n },\n\n _accurateAddition: function (num1, num2) {// 加法结合律\n var stringNumber1 = this._stringNumberFactory(num1);\n var stringNumber2 = this._stringNumberFactory(num2);\n // 整数部分计算\n var integerResult = BI.parseInt(stringNumber1.numInteger) + BI.parseInt(stringNumber2.numInteger);\n // 小数部分\n this._formatDecimal(stringNumber1, stringNumber2);\n\n var decimalResult = (BI.parseInt(stringNumber1.numDecimal) + BI.parseInt(stringNumber2.numDecimal)).toString();\n\n if (decimalResult !== \"0\") {\n if (decimalResult.length <= stringNumber1.numDecimal.length) {\n decimalResult = addZero(decimalResult, stringNumber1.numDecimal.length);\n } else {\n integerResult++;// 进一\n decimalResult = decimalResult.slice(1);\n }\n }\n var result = integerResult + \".\" + decimalResult;\n return BI.parseFloat(result);\n\n function addZero (resultTemp, length) {\n var diff = length - resultTemp.length;\n for (var i = 0; i < diff; i++) {\n resultTemp = \"0\" + resultTemp;\n }\n return resultTemp;\n }\n },\n\n _accurateMultiplication: function (num1, num2) {// 乘法分配律\n var stringNumber1 = this._stringNumberFactory(num1);\n var stringNumber2 = this._stringNumberFactory(num2);\n // 整数部分计算\n var integerResult = BI.parseInt(stringNumber1.numInteger) * BI.parseInt(stringNumber2.numInteger);\n // num1的小数和num2的整数\n var dec1Int2 = this._accurateDivisionTenExponent(BI.parseInt(stringNumber1.numDecimal) * BI.parseInt(stringNumber2.numInteger), stringNumber1.numDecimalLength);\n // num1的整数和num2的小数\n var int1dec2 = this._accurateDivisionTenExponent(BI.parseInt(stringNumber1.numInteger) * BI.parseInt(stringNumber2.numDecimal), stringNumber2.numDecimalLength);\n // 小数*小数\n var dec1dec2 = this._accurateDivisionTenExponent(BI.parseInt(stringNumber1.numDecimal) * BI.parseInt(stringNumber2.numDecimal), (stringNumber1.numDecimalLength + stringNumber2.numDecimalLength));\n\n return this._accurateAddition(this._accurateAddition(this._accurateAddition(integerResult, dec1Int2), int1dec2), dec1dec2);\n },\n\n _accurateDivisionTenExponent: function (num, n) {// num/10^n && n>0\n var stringNumber = this._stringNumberFactory(num);\n if (stringNumber.numInteger.length > n) {\n var integerResult = stringNumber.numInteger.slice(0, (stringNumber.numInteger.length - n));\n var partDecimalResult = stringNumber.numInteger.slice(-n);\n } else {\n var integerResult = \"0\";\n var partDecimalResult = addZero(stringNumber.numInteger, n);\n }\n var result = integerResult + \".\" + partDecimalResult + stringNumber.numDecimal;\n return BI.parseFloat(result);\n\n function addZero (resultTemp, length) {\n var diff = length - resultTemp.length;\n for (var i = 0; i < diff; i++) {\n resultTemp = \"0\" + resultTemp;\n }\n return resultTemp;\n }\n },\n\n accurateSubtraction: function (num1, num2) {\n if (num1 >= 0 && num2 >= 0) {\n if (num1 >= num2) {\n return this._accurateSubtraction(num1, num2);\n }\n return -this._accurateSubtraction(num2, num1);\n }\n if (num1 >= 0 && num2 < 0) {\n return this._accurateAddition(num1, -num2);\n }\n if (num1 < 0 && num2 >= 0) {\n return -this._accurateAddition(-num1, num2);\n }\n if (num1 < 0 && num2 < 0) {\n if (num1 >= num2) {\n return this._accurateSubtraction(-num2, -num1);\n }\n return this._accurateSubtraction(-num1, -num2);\n }\n },\n\n accurateAddition: function (num1, num2) {\n if (num1 >= 0 && num2 >= 0) {\n return this._accurateAddition(num1, num2);\n }\n if (num1 >= 0 && num2 < 0) {\n return this.accurateSubtraction(num1, -num2);\n }\n if (num1 < 0 && num2 >= 0) {\n return this.accurateSubtraction(num2, -num1);\n }\n if (num1 < 0 && num2 < 0) {\n return -this._accurateAddition(-num1, -num2);\n }\n },\n\n accurateMultiplication: function (num1, num2) {\n if (num1 >= 0 && num2 >= 0) {\n return this._accurateMultiplication(num1, num2);\n }\n if (num1 >= 0 && num2 < 0) {\n return -this._accurateMultiplication(num1, -num2);\n }\n if (num1 < 0 && num2 >= 0) {\n return -this._accurateMultiplication(-num1, num2);\n }\n if (num1 < 0 && num2 < 0) {\n return this._accurateMultiplication(-num1, -num2);\n }\n },\n\n accurateDivisionTenExponent: function (num1, n) {\n if (num1 >= 0) {\n return this._accurateDivisionTenExponent(num1, n);\n }\n return -this._accurateDivisionTenExponent(-num1, n);\n }\n});/**\n * Created by roy on 15/8/14.\n */\nBI.DownListCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.DownListCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multilayer-down-list-combo\",\n height: 24,\n items: [],\n adjustLength: 0,\n direction: \"bottom\",\n trigger: \"click\",\n container: null,\n stopPropagation: false,\n el: {}\n });\n },\n\n _init: function () {\n BI.DownListCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.popupview = BI.createWidget({\n type: \"bi.multi_layer_down_list_popup\",\n items: o.items,\n chooseType: o.chooseType,\n value: o.value\n });\n\n this.popupview.on(BI.DownListPopup.EVENT_CHANGE, function (value) {\n self.fireEvent(BI.DownListCombo.EVENT_CHANGE, value);\n self.downlistcombo.hideView();\n });\n\n this.popupview.on(BI.DownListPopup.EVENT_SON_VALUE_CHANGE, function (value, fatherValue) {\n self.fireEvent(BI.DownListCombo.EVENT_SON_VALUE_CHANGE, value, fatherValue);\n self.downlistcombo.hideView();\n });\n\n\n this.downlistcombo = BI.createWidget({\n element: this,\n type: \"bi.combo\",\n trigger: o.trigger,\n isNeedAdjustWidth: false,\n container: o.container,\n adjustLength: o.adjustLength,\n direction: o.direction,\n stopPropagation: o.stopPropagation,\n el: BI.createWidget(o.el, {\n type: \"bi.icon_trigger\",\n extraCls: o.iconCls ? o.iconCls : \"pull-down-font\",\n width: o.width,\n height: o.height\n }),\n popup: {\n el: this.popupview,\n stopPropagation: o.stopPropagation,\n maxHeight: 1000\n }\n });\n\n this.downlistcombo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.fireEvent(BI.DownListCombo.EVENT_BEFORE_POPUPVIEW);\n });\n },\n\n hideView: function () {\n this.downlistcombo.hideView();\n },\n\n showView: function (e) {\n this.downlistcombo.showView(e);\n },\n\n populate: function (items) {\n this.popupview.populate(items);\n },\n\n setValue: function (v) {\n this.popupview.setValue(v);\n },\n getValue: function () {\n return this.popupview.getValue();\n }\n});\nBI.DownListCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.DownListCombo.EVENT_SON_VALUE_CHANGE = \"EVENT_SON_VALUE_CHANGE\";\nBI.DownListCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\n\nBI.shortcut(\"bi.multi_layer_down_list_combo\", BI.DownListCombo);/**\n * Created by roy on 15/9/8.\n * 处理popup中的item分组样式\n * 一个item分组中的成员大于一时,该分组设置为单选,并且默认状态第一个成员设置为已选择项\n */\nBI.MultiLayerDownListPopup = BI.inherit(BI.Pane, {\n constants: {\n nextIcon: \"pull-right-e-font\",\n height: 25,\n iconHeight: 12,\n iconWidth: 12,\n hgap: 0,\n vgap: 0,\n border: 1\n },\n _defaultConfig: function () {\n var conf = BI.MultiLayerDownListPopup.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: \"bi-down-list-popup\",\n items: [],\n chooseType: BI.Selection.Multi\n });\n },\n _init: function () {\n BI.MultiLayerDownListPopup.superclass._init.apply(this, arguments);\n this.singleValues = [];\n this.childValueMap = {};\n this.fatherValueMap = {};\n var self = this, o = this.options, children = this._createPopupItems(o.items);\n this.popup = BI.createWidget({\n type: \"bi.button_tree\",\n items: BI.createItems(children,\n {}, {\n adjustLength: -2\n }\n ),\n layouts: [{\n type: \"bi.vertical\",\n hgap: this.constants.hgap,\n vgap: this.constants.vgap\n }],\n value: this._digest(o.value),\n chooseType: o.chooseType\n });\n\n this.popup.on(BI.ButtonTree.EVENT_CHANGE, function (value, object) {\n var changedValue = value;\n if (BI.isNotNull(self.childValueMap[value])) {\n changedValue = self.childValueMap[value];\n var fatherValue = self.fatherValueMap[value];\n var fatherArrayValue = (fatherValue + \"\").split(\"_\");\n self.fireEvent(BI.MultiLayerDownListPopup.EVENT_SON_VALUE_CHANGE, changedValue, fatherArrayValue.length > 1 ? fatherArrayValue : fatherValue);\n } else {\n self.fireEvent(BI.MultiLayerDownListPopup.EVENT_CHANGE, changedValue, object);\n }\n\n\n if (!BI.contains(self.singleValues, changedValue)) {\n var item = self.getValue();\n var result = [];\n BI.each(item, function (i, valueObject) {\n if (valueObject.value != changedValue) {\n result.push(valueObject);\n }\n });\n self.setValue(result);\n }\n\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n items: [this.popup],\n vgap: 5\n });\n\n },\n _createPopupItems: function (items) {\n var self = this, result = [];\n BI.each(items, function (i, it) {\n var item_done = {\n type: \"bi.down_list_group\",\n items: []\n };\n\n BI.each(it, function (i, item) {\n if (BI.isNotEmptyArray(item.children) && !BI.isEmpty(item.el)) {\n item.type = \"bi.combo_group\";\n item.cls = \"down-list-group\";\n item.trigger = \"hover\";\n item.isNeedAdjustWidth = false;\n item.el.title = item.el.title || item.el.text;\n item.el.type = \"bi.down_list_group_item\";\n item.el.logic = {\n dynamic: true\n };\n item.el.height = self.constants.height;\n item.el.iconCls2 = self.constants.nextIcon;\n item.popup = {\n lgap: 1,\n el: {\n type: \"bi.button_tree\",\n chooseType: 0,\n layouts: [{\n type: \"bi.vertical\"\n }]\n\n },\n innerVGap: 5\n };\n item.el.childValues = [];\n BI.each(item.children, function (i, child) {\n child = child.el ? BI.extend(child.el, {children: child.children}) : child;\n var fatherValue = BI.deepClone(item.el.value);\n var childValue = BI.deepClone(child.value);\n self.singleValues.push(child.value);\n child.type = \"bi.down_list_item\";\n child.extraCls = \" child-down-list-item\";\n child.title = child.title || child.text;\n child.textRgap = 10;\n child.isNeedAdjustWidth = false;\n child.logic = {\n dynamic: true\n };\n child.father = fatherValue;\n self.fatherValueMap[self._createChildValue(fatherValue, childValue)] = fatherValue;\n self.childValueMap[self._createChildValue(fatherValue, childValue)] = childValue;\n child.value = self._createChildValue(fatherValue, childValue);\n item.el.childValues.push(child.value);\n if (BI.isNotEmptyArray(child.children)) {\n child.type = \"bi.down_list_group_item\";\n self._createChildren(child);\n child.height = self.constants.height;\n child.iconCls2 = self.constants.nextIcon;\n item.el.childValues = BI.concat(item.el.childValues, child.childValues);\n }\n });\n } else {\n item.type = \"bi.down_list_item\";\n item.title = item.title || item.text;\n item.textRgap = 10;\n item.isNeedAdjustWidth = false;\n item.logic = {\n dynamic: true\n };\n }\n var el_done = {};\n el_done.el = item;\n item_done.items.push(el_done);\n });\n if (self._isGroup(item_done.items)) {\n BI.each(item_done.items, function (i, item) {\n self.singleValues.push(item.el.value);\n });\n }\n\n result.push(item_done);\n if (self._needSpliter(i, items.length)) {\n var spliter_container = BI.createWidget({\n type: \"bi.vertical\",\n items: [{\n el: {\n type: \"bi.layout\",\n cls: \"bi-down-list-spliter bi-border-top cursor-pointer\",\n height: 0\n }\n\n }],\n cls: \"bi-down-list-spliter-container cursor-pointer\",\n vgap: 5,\n lgap: 10\n });\n result.push(spliter_container);\n }\n });\n return result;\n },\n\n _createChildren: function (child) {\n var self = this;\n child.childValues = [];\n BI.each(child.children, function (i, c) {\n var fatherValue = BI.deepClone(child.value);\n var childValue = BI.deepClone(c.value);\n c.type = \"bi.down_list_item\";\n c.title = c.title || c.text;\n c.textRgap = 10;\n c.isNeedAdjustWidth = false;\n c.logic = {\n dynamic: true\n };\n c.father = fatherValue;\n self.fatherValueMap[self._createChildValue(fatherValue, childValue)] = fatherValue;\n self.childValueMap[self._createChildValue(fatherValue, childValue)] = childValue;\n c.value = self._createChildValue(fatherValue, childValue);\n child.childValues.push(c.value);\n });\n },\n\n _isGroup: function (i) {\n return i.length > 1;\n },\n\n _needSpliter: function (i, itemLength) {\n return i < itemLength - 1;\n },\n\n _createChildValue: function (fatherValue, childValue) {\n var fValue = fatherValue;\n if(BI.isArray(fatherValue)) {\n fValue = fatherValue.join(\"_\");\n }\n return fValue + \"_\" + childValue;\n },\n\n _digest: function (valueItem) {\n var self = this;\n var valueArray = [];\n BI.each(valueItem, function (i, item) {\n var value;\n if (BI.isNotNull(item.childValue)) {\n value = self._createChildValue(item.value, item.childValue);\n } else {\n value = item.value;\n }\n valueArray.push(value);\n }\n );\n return valueArray;\n },\n\n _checkValues: function (values) {\n var self = this, o = this.options;\n var value = [];\n BI.each(o.items, function (idx, itemGroup) {\n BI.each(itemGroup, function (id, item) {\n if(BI.isNotNull(item.children)) {\n var childValues = getChildrenValue(item);\n var v = joinValue(childValues, values[idx]);\n if(BI.isNotEmptyString(v)) {\n value.push(v);\n }\n }else{\n if(item.value === values[idx][0]) {\n value.push(values[idx][0]);\n }\n }\n });\n });\n return value;\n\n function joinValue (sources, targets) {\n var value = \"\";\n BI.some(sources, function (idx, s) {\n return BI.some(targets, function (id, t) {\n if(s === t) {\n value = s;\n return true;\n }\n });\n });\n return value;\n }\n\n function getChildrenValue (item) {\n var children = [];\n if(BI.isNotNull(item.children)) {\n BI.each(item.children, function (idx, child) {\n children = BI.concat(children, getChildrenValue(child));\n });\n } else {\n children.push(item.value);\n }\n return children;\n }\n },\n\n populate: function (items) {\n BI.MultiLayerDownListPopup.superclass.populate.apply(this, arguments);\n var self = this;\n self.childValueMap = {};\n self.fatherValueMap = {};\n self.singleValues = [];\n var children = self._createPopupItems(items);\n var popupItem = BI.createItems(children,\n {}, {\n adjustLength: -2\n }\n );\n self.popup.populate(popupItem);\n },\n\n setValue: function (valueItem) {\n this.popup.setValue(this._digest(valueItem));\n },\n\n _getValue: function () {\n var v = [];\n BI.each(this.popup.getAllButtons(), function (i, item) {\n i % 2 === 0 && v.push(item.getValue());\n });\n return v;\n },\n\n getValue: function () {\n var self = this, result = [];\n var values = this._checkValues(this._getValue());\n BI.each(values, function (i, value) {\n var valueItem = {};\n if (BI.isNotNull(self.childValueMap[value])) {\n var fartherValue = self.fatherValueMap[value];\n valueItem.childValue = self.childValueMap[value];\n var fatherArrayValue = (fartherValue + \"\").split(\"_\");\n valueItem.value = fatherArrayValue.length > 1 ? fatherArrayValue : fartherValue;\n } else {\n valueItem.value = value;\n }\n result.push(valueItem);\n });\n return result;\n }\n\n\n});\n\nBI.MultiLayerDownListPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiLayerDownListPopup.EVENT_SON_VALUE_CHANGE = \"EVENT_SON_VALUE_CHANGE\";\nBI.shortcut(\"bi.multi_layer_down_list_popup\", BI.MultiLayerDownListPopup);/**\n * @class BI.MultiLayerSelectTreeCombo\n * @extends BI.Widget\n */\nBI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSelectTreeCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multilayer-select-tree-combo\",\n isDefaultInit: false,\n height: 24,\n text: \"\",\n itemsCreator: BI.emptyFn,\n items: [],\n value: \"\",\n attributes: {\n tabIndex: 0\n },\n allowEdit: false,\n allowSearchValue: false,\n allowInsertValue: false\n });\n },\n\n render: function () {\n var self = this, o = this.options;\n\n var combo = (o.itemsCreator === BI.emptyFn) ? this._getSyncConfig() : this._getAsyncConfig();\n\n return (!o.allowEdit && o.itemsCreator === BI.emptyFn) ? combo : {\n type: \"bi.absolute\",\n items: [{\n el: combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.trigger_icon_button\",\n cls: \"trigger-icon-button\",\n ref: function (_ref) {\n self.triggerBtn = _ref;\n },\n width: o.height,\n height: o.height,\n handler: function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n }\n },\n right: 0,\n bottom: 0,\n top: 0\n }]\n };\n },\n\n _getBaseConfig: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.combo\",\n container: o.container,\n destroyWhenHide: o.destroyWhenHide,\n adjustLength: 2,\n ref: function (_ref) {\n self.combo = _ref;\n },\n popup: {\n el: {\n type: \"bi.multilayer_select_tree_popup\",\n isDefaultInit: o.isDefaultInit,\n itemsCreator: o.itemsCreator,\n items: o.items,\n ref: function (_ref) {\n self.trigger && self.trigger.getSearcher().setAdapter(_ref);\n },\n listeners: [{\n eventName: BI.MultiLayerSelectTreePopup.EVENT_CHANGE,\n action: function () {\n self.setValue(this.getValue());\n self.combo.hideView();\n self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE);\n }\n }],\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n });\n }\n },\n value: o.value,\n maxHeight: 400,\n minHeight: 240\n }\n };\n },\n\n _getSearchConfig: function() {\n var self = this, o = this.options;\n return {\n el: {\n type: \"bi.multilayer_select_tree_trigger\",\n container: o.container,\n allowInsertValue: o.allowInsertValue,\n allowSearchValue: o.allowSearchValue,\n allowEdit: o.allowEdit,\n cls: \"multilayer-select-tree-trigger\",\n ref: function (_ref) {\n self.trigger = _ref;\n },\n items: o.items,\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n watermark: o.watermark,\n height: o.height - 2,\n text: o.text,\n value: o.value,\n tipType: o.tipType,\n warningTitle: o.warningTitle,\n title: o.title,\n listeners: [{\n eventName: BI.MultiLayerSelectTreeTrigger.EVENT_CHANGE,\n action: function () {\n self.setValue(this.getValue());\n self.combo.hideView();\n self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE);\n }\n }, {\n eventName: BI.MultiLayerSelectTreeTrigger.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiLayerSelectTreeTrigger.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.MultiLayerSelectTreeTrigger.EVENT_SEARCHING,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_SEARCHING);\n }\n }, {\n eventName: BI.MultiLayerSelectTreeTrigger.EVENT_ADD_ITEM,\n action: function () {\n var value = self.trigger.getSearcher().getKeyword();\n self.combo.setValue([value]);\n self.combo.hideView();\n }\n }]\n },\n toggle: !o.allowEdit,\n hideChecker: function (e) {\n // 新增传配置container后对应hideChecker的修改\n // IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿\n // 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以\n // 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪\n return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0;\n\n },\n listeners: [{\n eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,\n action: function () {\n self.trigger.stopEditing();\n }\n }]\n }\n },\n\n _getSyncConfig: function () {\n var o = this.options;\n var baseConfig = this._getBaseConfig();\n return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : {\n el: {\n type: \"bi.single_tree_trigger\",\n text: o.text,\n height: o.height,\n items: o.items,\n value: o.value\n }\n });\n },\n\n _getAsyncConfig: function () {\n var config = this._getBaseConfig();\n return BI.extend(config, this._getSearchConfig());\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.combo.setValue(v);\n },\n\n getValue: function () {\n return this.combo.getValue();\n },\n\n populate: function (items) {\n this.combo.populate(items);\n }\n});\n\nBI.MultiLayerSelectTreeCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiLayerSelectTreeCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiLayerSelectTreeCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiLayerSelectTreeCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multilayer_select_tree_combo\", BI.MultiLayerSelectTreeCombo);/**\n * Created by GUY on 2016/1/26.\n *\n * @class BI.MultiLayerSelectTreeInsertSearchPane\n * @extends BI.Pane\n */\n\nBI.MultiLayerSelectTreeInsertSearchPane = BI.inherit(BI.Widget, {\n\n props: function() {\n return {\n baseCls: \"bi-multilayer-select-tree-popup\",\n tipText: BI.i18nText(\"BI-No_Selected_Item\"),\n isDefaultInit: false,\n itemsCreator: BI.emptyFn,\n items: [],\n value: \"\"\n };\n },\n\n render: function() {\n var self = this, o = this.options;\n this.tree = BI.createWidget({\n type: \"bi.multilayer_select_level_tree\",\n isDefaultInit: o.isDefaultInit,\n items: o.items,\n itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {\n o.itemsCreator(op, function (res) {\n callback(res);\n self.setKeyword(o.keywordGetter());\n });\n },\n keywordGetter: o.keywordGetter,\n value: o.value,\n scrollable: null,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }, {\n eventName: BI.MultiLayerSelectLevelTree.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeInsertSearchPane.EVENT_CHANGE);\n }\n }]\n });\n return {\n type: \"bi.vertical\",\n scrolly: false,\n scrollable: true,\n vgap: 5,\n items: [{\n type: \"bi.text_button\",\n invisible: true,\n text: BI.i18nText(\"BI-Basic_Click_To_Add_Text\", \"\"),\n height: 24,\n cls: \"bi-high-light\",\n hgap: 5,\n ref: function (_ref) {\n self.addNotMatchTip = _ref;\n },\n handler: function () {\n self.fireEvent(BI.MultiLayerSelectTreeInsertSearchPane.EVENT_ADD_ITEM, o.keywordGetter());\n }\n }, this.tree]\n };\n },\n\n setKeyword: function (keyword) {\n var showTip = BI.isEmptyArray(this.tree.getAllLeaves());\n this.addNotMatchTip.setVisible(showTip);\n showTip && this.addNotMatchTip.setText(BI.i18nText(\"BI-Basic_Click_To_Add_Text\", keyword));\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.tree.setValue(v);\n },\n\n populate: function (items) {\n this.tree.populate(items);\n }\n});\n\nBI.MultiLayerSelectTreeInsertSearchPane.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\nBI.MultiLayerSelectTreeInsertSearchPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multilayer_select_tree_insert_search_pane\", BI.MultiLayerSelectTreeInsertSearchPane);/**\n * guy\n * 二级树\n * @class BI.MultiLayerSelectLevelTree\n * @extends BI.Pane\n */\nBI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSelectLevelTree.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multilayer-select-level-tree\",\n isDefaultInit: false,\n items: [],\n itemsCreator: BI.emptyFn,\n keywordGetter: BI.emptyFn,\n value: \"\",\n scrollable: true\n });\n },\n\n _init: function () {\n var o = this.options;\n BI.MultiLayerSelectLevelTree.superclass._init.apply(this, arguments);\n\n this.storeValue = o.value;\n\n this.initTree(this.options.items);\n\n this.check();\n },\n\n _formatItems: function (nodes, layer, pNode) {\n var self = this, o = this.options;\n var keyword = o.keywordGetter();\n BI.each(nodes, function (i, node) {\n var extend = {};\n node.layer = layer;\n if (!BI.isKey(node.id)) {\n node.id = BI.UUID();\n }\n node.keyword = node.keyword || keyword;\n extend.pNode = pNode;\n if (node.isParent === true || node.parent === true || BI.isNotEmptyArray(node.children)) {\n extend.type = \"bi.multilayer_select_tree_mid_plus_group_node\";\n if (i === nodes.length - 1) {\n extend.type = \"bi.multilayer_select_tree_last_plus_group_node\";\n extend.isLastNode = true;\n }\n if (i === 0 && !pNode) {\n extend.type = \"bi.multilayer_select_tree_first_plus_group_node\";\n }\n if (i === 0 && i === nodes.length - 1 && !pNode) { // 根\n extend.type = \"bi.multilayer_select_tree_plus_group_node\";\n }\n BI.defaults(node, extend);\n self._formatItems(node.children, layer + 1, node);\n } else {\n extend.type = \"bi.multilayer_single_tree_mid_tree_leaf_item\";\n if (i === 0 && !pNode) {\n extend.type = \"bi.multilayer_single_tree_first_tree_leaf_item\";\n }\n if (i === nodes.length - 1) {\n extend.type = \"bi.multilayer_single_tree_last_tree_leaf_item\";\n }\n BI.defaults(node, extend);\n }\n });\n return nodes;\n },\n\n _assertId: function (sNodes) {\n BI.each(sNodes, function (i, node) {\n node.id = node.id || BI.UUID();\n });\n },\n\n // 构造树结构,\n initTree: function (nodes) {\n var self = this, o = this.options;\n var hasNext = false;\n this.empty();\n this._assertId(nodes);\n this.tree = BI.createWidget({\n type: \"bi.custom_tree\",\n cls: \"tree-view display-table\",\n expander: {\n type: \"bi.select_tree_expander\",\n isDefaultInit: o.isDefaultInit,\n el: {},\n popup: {\n type: \"bi.custom_tree\"\n }\n },\n\n items: this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0),\n itemsCreator: function (op, callback) {\n (op.times === 1 && !op.node) && BI.nextTick(function () {\n self.loading();\n });\n o.itemsCreator(op, function (ob) {\n hasNext = ob.hasNext;\n (op.times === 1 && !op.node) && self._populate(ob.items);\n callback(self._formatItems(BI.Tree.transformToTreeFormat(ob.items), op.node ? op.node.layer + 1 : 0, op.node));\n self.setValue(self.storeValue);\n (op.times === 1 && !op.node) && BI.nextTick(function () {\n self.loaded();\n });\n });\n },\n value: o.value,\n\n el: {\n type: \"bi.loader\",\n isDefaultInit: o.itemsCreator !== BI.emptyFn,\n el: {\n type: \"bi.button_tree\",\n chooseType: o.chooseType,\n behaviors: o.behaviors,\n layouts: [{\n type: \"bi.vertical\"\n }]\n },\n hasNext: function () {\n return hasNext;\n }\n }\n });\n this.tree.on(BI.Controller.EVENT_CHANGE, function (type, value) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.setValue(value);\n self.fireEvent(BI.MultiLayerSelectLevelTree.EVENT_CHANGE, arguments);\n }\n });\n\n BI.createWidget({\n type: \"bi.adaptive\",\n element: this,\n scrollable: o.scrollable,\n items: [this.tree]\n });\n },\n\n _populate: function () {\n BI.MultiLayerSelectLevelTree.superclass.populate.apply(this, arguments);\n },\n\n populate: function (nodes) {\n this._populate(nodes);\n BI.isNull(nodes) ? this.tree.populate() : this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0));\n },\n\n setValue: function (v) {\n // getValue依赖于storeValue, 那么不选的时候就不要更新storeValue了\n if(this.options.chooseType === BI.Selection.None) {\n } else {\n this.storeValue = v;\n this.tree.setValue(v);\n }\n },\n\n getValue: function () {\n return BI.isArray(this.storeValue) ?\n this.storeValue : BI.isNull(this.storeValue) ?\n [] : [this.storeValue];\n },\n\n getAllLeaves: function () {\n return this.tree.getAllLeaves();\n },\n\n getNodeById: function (id) {\n return this.tree.getNodeById(id);\n },\n\n getNodeByValue: function (id) {\n return this.tree.getNodeByValue(id);\n }\n});\nBI.MultiLayerSelectLevelTree.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.multilayer_select_level_tree\", BI.MultiLayerSelectLevelTree);/**\n * Created by GUY on 2016/1/26.\n *\n * @class BI.MultiLayerSelectTreePopup\n * @extends BI.Pane\n */\n\nBI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSelectTreePopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multilayer-select-tree-popup\",\n tipText: BI.i18nText(\"BI-No_Selected_Item\"),\n isDefaultInit: false,\n itemsCreator: BI.emptyFn,\n items: [],\n value: \"\",\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiLayerSelectTreePopup.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n\n this.tree = BI.createWidget({\n type: \"bi.multilayer_select_level_tree\",\n isDefaultInit: o.isDefaultInit,\n items: o.items,\n itemsCreator: o.itemsCreator,\n keywordGetter: o.keywordGetter,\n value: o.value,\n scrollable: null,\n onLoaded: function () {\n self.tree.check();\n o.onLoaded();\n }\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n scrollable: true,\n element: this,\n vgap: 5,\n items: [this.tree]\n });\n\n this.tree.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.tree.on(BI.MultiLayerSelectLevelTree.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiLayerSelectTreePopup.EVENT_CHANGE);\n });\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.tree.setValue(v);\n },\n\n populate: function (items) {\n this.tree.populate(items);\n }\n});\n\nBI.MultiLayerSelectTreePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multilayer_select_tree_popup\", BI.MultiLayerSelectTreePopup);/**\n * Created by Windy on 2018/2/2.\n */\nBI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {\n\n props: function() {\n return {\n extraCls: \"bi-multi-layer-select-tree-trigger bi-border bi-focus-shadow bi-border-radius\",\n height: 24,\n valueFormatter: function (v) {\n return v;\n },\n itemsCreator: BI.emptyFn,\n watermark: BI.i18nText(\"BI-Basic_Search\"),\n allowSearchValue: false\n };\n },\n\n render: function () {\n var self = this, o = this.options;\n if(o.itemsCreator === BI.emptyFn) {\n this._initData();\n }\n var content = {\n type: \"bi.htape\",\n items: [\n {\n el: {\n type: \"bi.searcher\",\n ref: function () {\n self.searcher = this;\n },\n masker: BI.isNotNull(o.container) ? {\n offset: {},\n container: o.container\n } : {\n offset: {}\n },\n isAutoSearch: false,\n el: {\n type: \"bi.state_editor\",\n ref: function () {\n self.editor = this;\n },\n defaultText: o.text,\n text: this._digest(o.value),\n value: o.value,\n height: o.height,\n tipText: \"\",\n watermark: o.watermark,\n listeners: [{\n eventName: BI.StateEditor.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_FOCUS);\n }\n }, {\n eventName: BI.StateEditor.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_BLUR);\n }\n }, {\n eventName: BI.StateEditor.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_SEARCHING);\n }\n }]\n },\n popup: {\n type: o.allowInsertValue ? \"bi.multilayer_select_tree_insert_search_pane\" : \"bi.multilayer_select_tree_popup\",\n itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {\n op.keyword = self.editor.getValue();\n o.itemsCreator(op, callback);\n },\n keywordGetter: function () {\n return self.editor.getValue();\n },\n cls: \"bi-card\",\n listeners: [{\n eventName: BI.MultiLayerSelectTreeInsertSearchPane.EVENT_ADD_ITEM,\n action: function () {\n self.options.text = self.getSearcher().getKeyword();\n self.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_ADD_ITEM);\n }\n }],\n ref: function (_ref) {\n self.popup = _ref;\n }\n },\n onSearch: function (obj, callback) {\n var keyword = obj.keyword;\n if(o.itemsCreator === BI.emptyFn) {\n callback(self._getSearchItems(keyword));\n o.allowInsertValue && self.popup.setKeyword(keyword);\n } else {\n callback();\n }\n },\n listeners: [{\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_CHANGE);\n }\n }]\n }\n }, {\n el: {\n type: \"bi.layout\",\n width: 24\n },\n width: 24\n }\n ]\n };\n\n return o.allowEdit ? content : {\n type: \"bi.absolute\",\n items: [{\n el: content,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.layout\"\n },\n left: 0,\n right: 24,\n top: 0,\n bottom: 0\n }]\n };\n },\n\n _initData: function() {\n var o = this.options;\n this.tree = new BI.Tree();\n this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items));\n this.tree.initTree(this.nodes);\n },\n\n _getSearchItems: function(keyword) {\n var self = this, o = this.options;\n // 把数组搜索换成用BI.tree搜索节点, 搜到了就不再往下搜索\n var items = [];\n this.tree.traverse(function (node) {\n var find = BI.Func.getSearchResult(self.tree.isRoot(node) ? [] : BI.concat([node.text], (o.allowSearchValue ? [node.value] : [])), keyword);\n if(find.find.length > 0 || find.match.length > 0) {\n items.push(node);\n return true;\n }\n });\n return this._fillTreeStructure4Search(items, \"id\");\n },\n\n _createJson: function(node, open) {\n return {\n id: node.id,\n pId: node.pId,\n text: node.text,\n value: node.value,\n isParent: BI.isNotEmptyArray(node.children),\n open: open\n }\n },\n\n _getChildren: function(node) {\n var self = this;\n node.children = node.children || [];\n var nodes = [];\n BI.each(node.children, function (idx, child) {\n var children = self._getChildren(child);\n nodes = nodes.concat(children);\n });\n return node.children.concat(nodes);\n },\n\n // 将搜索到的节点进行补充,构造成一棵完整的树\n _fillTreeStructure4Search: function (leaves) {\n var self = this;\n var result = [];\n var queue = [];\n BI.each(leaves, function (idx, node) {\n queue.push({pId: node.pId});\n result.push(node);\n result = result.concat(self._getChildren(node));\n });\n while (BI.isNotEmptyArray(queue)) {\n var node = queue.pop();\n var pNode = this.tree.search(this.tree.getRoot(), node.pId, \"id\");\n if (pNode != null) {\n pNode.open = true;\n queue.push({pId: pNode.pId});\n result.push(pNode);\n }\n }\n return BI.uniqBy(BI.map(result, function (idx, node) {\n return self._createJson(node, node.open);\n }), \"id\");\n },\n\n _digest: function (v) {\n var o = this.options;\n if(o.itemsCreator === BI.emptyFn) {\n var result = BI.find(o.items, function (i, item) {\n return item.value === v;\n });\n return BI.isNotNull(result) ? result.text : o.text;\n }\n return o.valueFormatter(v);\n },\n\n stopEditing: function () {\n this.searcher.stopSearch();\n },\n\n getSearcher: function () {\n return this.searcher;\n },\n\n populate: function (items) {\n this.options.items = items;\n this._initData(items);\n },\n\n setValue: function (v) {\n this.editor.setState(this._digest(v[0]));\n },\n\n getValue: function () {\n return this.searcher.getValue();\n }\n});\n\nBI.MultiLayerSelectTreeTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiLayerSelectTreeTrigger.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiLayerSelectTreeTrigger.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiLayerSelectTreeTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiLayerSelectTreeTrigger.EVENT_START = \"EVENT_START\";\nBI.MultiLayerSelectTreeTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiLayerSelectTreeTrigger.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\nBI.shortcut(\"bi.multilayer_select_tree_trigger\", BI.MultiLayerSelectTreeTrigger);/**\n * 加号表示的组节点\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSelectTreeFirstPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MultiLayerSelectTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-select-tree-first-plus-group-node bi-list-item-active\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = BI.createWidget({\n type: \"bi.select_tree_first_plus_group_node\",\n cls: \"bi-list-item-none\",\n stopPropagation: true,\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n keyword: o.keyword,\n open: o.open,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n this.node.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.setSelected(self.isSelected());\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n isOnce: function () {\n return true;\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n isSelected: function () {\n return this.node.isSelected();\n },\n\n setSelected: function (b) {\n BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass.setSelected.apply(this, arguments);\n this.node.setSelected(b);\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass.setOpened.apply(this, arguments);\n this.node.setOpened(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_select_tree_first_plus_group_node\", BI.MultiLayerSelectTreeFirstPlusGroupNode);/**\n * 加号表示的组节点\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSelectTreeLastPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MultiLayerSelectTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSelectTreeLastPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-select-tree-last-plus-group-node bi-list-item-active\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSelectTreeLastPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = BI.createWidget({\n type: \"bi.select_tree_last_plus_group_node\",\n cls: \"bi-list-item-none\",\n stopPropagation: true,\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n keyword: o.keyword,\n open: o.open,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n this.node.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.setSelected(self.isSelected());\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n isSelected: function () {\n return this.node.isSelected();\n },\n\n setSelected: function (b) {\n BI.MultiLayerSelectTreeLastPlusGroupNode.superclass.setSelected.apply(this, arguments);\n this.node.setSelected(b);\n },\n\n doClick: function () {\n BI.MultiLayerSelectTreeLastPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSelectTreeLastPlusGroupNode.superclass.setOpened.apply(this, arguments);\n this.node.setOpened(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_select_tree_last_plus_group_node\", BI.MultiLayerSelectTreeLastPlusGroupNode);/**\n * 加号表示的组节点\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSelectTreeMidPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MultiLayerSelectTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSelectTreeMidPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-select-tree-mid-plus-group-node bi-list-item-active\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSelectTreeMidPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = BI.createWidget({\n type: \"bi.select_tree_mid_plus_group_node\",\n cls: \"bi-list-item-none\",\n stopPropagation: true,\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n keyword: o.keyword,\n open: o.open,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n this.node.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.setSelected(self.isSelected());\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n isSelected: function () {\n return this.node.isSelected();\n },\n\n setSelected: function (b) {\n BI.MultiLayerSelectTreeMidPlusGroupNode.superclass.setSelected.apply(this, arguments);\n this.node.setSelected(b);\n },\n\n doClick: function () {\n BI.MultiLayerSelectTreeMidPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSelectTreeMidPlusGroupNode.superclass.setOpened.apply(this, arguments);\n this.node.setOpened(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_select_tree_mid_plus_group_node\", BI.MultiLayerSelectTreeMidPlusGroupNode);/**\n * 加号表示的组节点\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSelectTreePlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MultiLayerSelectTreePlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSelectTreePlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-select-tree-first-plus-group-node bi-list-item-active\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSelectTreePlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = BI.createWidget({\n type: \"bi.select_tree_plus_group_node\",\n cls: \"bi-list-item-none\",\n stopPropagation: true,\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n keyword: o.keyword,\n open: o.open,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py\n });\n this.node.on(BI.Controller.EVENT_CHANGE, function (type) {\n self.setSelected(self.isSelected());\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n isOnce: function () {\n return true;\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n isSelected: function () {\n return this.node.isSelected();\n },\n\n setSelected: function (b) {\n BI.MultiLayerSelectTreePlusGroupNode.superclass.setSelected.apply(this, arguments);\n this.node.setSelected(b);\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSelectTreePlusGroupNode.superclass.setOpened.apply(this, arguments);\n this.node.setOpened(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_select_tree_plus_group_node\", BI.MultiLayerSelectTreePlusGroupNode);/**\n * 多层级下拉单选树\n * Created by GUY on 2016/1/26.\n *\n * @class BI.MultiLayerSingleTreeCombo\n * @extends BI.Widget\n */\nBI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSingleTreeCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multilayer-single-tree-combo\",\n isDefaultInit: false,\n height: 24,\n text: \"\",\n itemsCreator: BI.emptyFn,\n items: [],\n value: \"\",\n attributes: {\n tabIndex: 0\n },\n allowEdit: false,\n allowSearchValue: false,\n allowInsertValue: false\n });\n },\n\n render: function () {\n var self = this, o = this.options;\n\n var combo = (o.itemsCreator === BI.emptyFn) ? this._getSyncConfig() : this._getAsyncConfig();\n\n return (!o.allowEdit && o.itemsCreator === BI.emptyFn) ? combo : {\n type: \"bi.absolute\",\n items: [{\n el: combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.trigger_icon_button\",\n cls: \"trigger-icon-button\",\n ref: function (_ref) {\n self.triggerBtn = _ref;\n },\n width: o.height,\n height: o.height,\n handler: function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n }\n },\n right: 0,\n bottom: 0,\n top: 0\n }]\n };\n },\n\n _getBaseConfig: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.combo\",\n container: o.container,\n destroyWhenHide: o.destroyWhenHide,\n adjustLength: 2,\n ref: function (_ref) {\n self.combo = _ref;\n },\n popup: {\n el: {\n type: \"bi.multilayer_single_tree_popup\",\n isDefaultInit: o.isDefaultInit,\n itemsCreator: o.itemsCreator,\n items: o.items,\n ref: function (_ref) {\n self.trigger && self.trigger.getSearcher().setAdapter(_ref);\n },\n listeners: [{\n eventName: BI.MultiLayerSingleTreePopup.EVENT_CHANGE,\n action: function () {\n self.setValue(this.getValue());\n self.combo.hideView();\n self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE);\n }\n }],\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n });\n }\n },\n value: o.value,\n maxHeight: 400,\n minHeight: 240\n }\n };\n },\n\n _getSearchConfig: function() {\n var self = this, o = this.options;\n return {\n el: {\n type: \"bi.multilayer_single_tree_trigger\",\n container: o.container,\n allowInsertValue: o.allowInsertValue,\n allowSearchValue: o.allowSearchValue,\n allowEdit: o.allowEdit,\n cls: \"multilayer-single-tree-trigger\",\n ref: function (_ref) {\n self.trigger = _ref;\n },\n watermark: o.watermark,\n items: o.items,\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n height: o.height - 2,\n text: o.text,\n value: o.value,\n tipType: o.tipType,\n warningTitle: o.warningTitle,\n title: o.title,\n listeners: [{\n eventName: BI.MultiLayerSingleTreeTrigger.EVENT_CHANGE,\n action: function () {\n self.setValue(this.getValue());\n self.combo.hideView();\n self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE);\n }\n }, {\n eventName: BI.MultiLayerSingleTreeTrigger.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiLayerSingleTreeTrigger.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.MultiLayerSingleTreeTrigger.EVENT_SEARCHING,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_SEARCHING);\n }\n }, {\n eventName: BI.MultiLayerSingleTreeTrigger.EVENT_ADD_ITEM,\n action: function () {\n var value = self.trigger.getSearcher().getKeyword();\n self.combo.setValue([value]);\n self.combo.hideView();\n }\n }]\n },\n toggle: !o.allowEdit,\n hideChecker: function (e) {\n // 新增传配置container后对应hideChecker的修改\n // IE11下,popover(position: fixed)下放置下拉控件(position: fixed), 滚动的时候会异常卡顿\n // 通过container参数将popup放置于popover之外解决此问题, 其他下拉控件由于元素少或者有分页,所以\n // 卡顿不明显, 先在此做尝试, 并在FineUI特殊处理待解决文档中标记跟踪\n return (o.container && self.trigger.getSearcher().isSearching() && self.trigger.getSearcher().getView().element.find(e.target).length > 0) ? false : self.triggerBtn.element.find(e.target).length === 0\n },\n listeners: [{\n eventName: BI.Combo.EVENT_AFTER_HIDEVIEW,\n action: function () {\n self.trigger.stopEditing();\n }\n }]\n }\n },\n\n _getSyncConfig: function () {\n var o = this.options;\n var baseConfig = this._getBaseConfig();\n return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : {\n el: {\n type: \"bi.single_tree_trigger\",\n text: o.text,\n height: o.height,\n items: o.items,\n value: o.value\n }\n });\n },\n\n _getAsyncConfig: function () {\n var config = this._getBaseConfig();\n return BI.extend(config, this._getSearchConfig());\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.combo.setValue(v);\n },\n\n getValue: function () {\n return this.combo.getValue();\n },\n\n populate: function (items) {\n this.combo.populate(items);\n }\n});\n\nBI.MultiLayerSingleTreeCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiLayerSingleTreeCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiLayerSingleTreeCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiLayerSingleTreeCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multilayer_single_tree_combo\", BI.MultiLayerSingleTreeCombo);/**\n * Created by GUY on 2016/1/26.\n *\n * @class BI.MultiLayerSingleTreeInsertSearchPane\n * @extends BI.Pane\n */\n\nBI.MultiLayerSingleTreeInsertSearchPane = BI.inherit(BI.Widget, {\n\n props: function() {\n return {\n baseCls: \"bi-multilayer-single-tree-popup\",\n tipText: BI.i18nText(\"BI-No_Selected_Item\"),\n isDefaultInit: false,\n itemsCreator: BI.emptyFn,\n items: [],\n value: \"\"\n };\n },\n\n render: function() {\n var self = this, o = this.options;\n this.tree = BI.createWidget({\n type: \"bi.multilayer_select_level_tree\",\n isDefaultInit: o.isDefaultInit,\n items: o.items,\n itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {\n o.itemsCreator(op, function (res) {\n callback(res);\n self.setKeyword(o.keywordGetter());\n });\n },\n keywordGetter: o.keywordGetter,\n value: o.value,\n scrollable: null,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }, {\n eventName: BI.MultiLayerSelectLevelTree.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeInsertSearchPane.EVENT_CHANGE);\n }\n }]\n });\n return {\n type: \"bi.vertical\",\n scrolly: false,\n scrollable: true,\n vgap: 5,\n items: [{\n type: \"bi.text_button\",\n invisible: true,\n text: BI.i18nText(\"BI-Basic_Click_To_Add_Text\", \"\"),\n height: 24,\n cls: \"bi-high-light\",\n hgap: 5,\n ref: function (_ref) {\n self.addNotMatchTip = _ref;\n },\n handler: function () {\n self.fireEvent(BI.MultiLayerSingleTreeInsertSearchPane.EVENT_ADD_ITEM, o.keywordGetter());\n }\n }, this.tree]\n };\n },\n\n setKeyword: function (keyword) {\n var showTip = BI.isEmptyArray(this.tree.getAllLeaves());\n this.addNotMatchTip.setVisible(showTip);\n showTip && this.addNotMatchTip.setText(BI.i18nText(\"BI-Basic_Click_To_Add_Text\", keyword));\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.tree.setValue(v);\n },\n\n populate: function (items) {\n this.tree.populate(items);\n }\n});\n\nBI.MultiLayerSingleTreeInsertSearchPane.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\nBI.MultiLayerSingleTreeInsertSearchPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multilayer_single_tree_insert_search_pane\", BI.MultiLayerSingleTreeInsertSearchPane);/**\n * guy\n * 二级树\n * @class BI.MultiLayerSingleLevelTree\n * @extends BI.Single\n */\nBI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSingleLevelTree.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multilayer-single-level-tree\",\n isDefaultInit: false,\n items: [],\n itemsCreator: BI.emptyFn,\n keywordGetter: BI.emptyFn,\n chooseType: BI.Selection.Single,\n scrollable: true\n });\n },\n\n _init: function () {\n var o = this.options;\n BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments);\n\n this.storeValue = o.value;\n\n this.initTree(this.options.items);\n\n this.check();\n },\n\n _formatItems: function (nodes, layer, pNode) {\n var self = this, o = this.options;\n var keyword = o.keywordGetter();\n BI.each(nodes, function (i, node) {\n var extend = {};\n node.layer = layer;\n if (!BI.isKey(node.id)) {\n node.id = BI.UUID();\n }\n node.keyword = node.keyword || keyword;\n extend.pNode = pNode;\n if (node.isParent === true || node.parent === true || BI.isNotEmptyArray(node.children)) {\n extend.type = \"bi.multilayer_single_tree_mid_plus_group_node\";\n if (i === nodes.length - 1) {\n extend.type = \"bi.multilayer_single_tree_last_plus_group_node\";\n extend.isLastNode = true;\n }\n if (i === 0 && !pNode) {\n extend.type = \"bi.multilayer_single_tree_first_plus_group_node\";\n }\n if (i === 0 && i === nodes.length - 1 && !pNode) { // 根\n extend.type = \"bi.multilayer_single_tree_plus_group_node\";\n }\n BI.defaults(node, extend);\n self._formatItems(node.children, layer + 1, node);\n } else {\n extend.type = \"bi.multilayer_single_tree_mid_tree_leaf_item\";\n if (i === 0 && !pNode) {\n extend.type = \"bi.multilayer_single_tree_first_tree_leaf_item\";\n }\n if (i === nodes.length - 1) {\n extend.type = \"bi.multilayer_single_tree_last_tree_leaf_item\";\n }\n BI.defaults(node, extend);\n }\n });\n return nodes;\n },\n\n _assertId: function (sNodes) {\n BI.each(sNodes, function (i, node) {\n node.id = node.id || BI.UUID();\n });\n },\n\n // 构造树结构,\n initTree: function (nodes) {\n var self = this, o = this.options;\n var hasNext = false;\n this.empty();\n this._assertId(nodes);\n this.tree = BI.createWidget({\n type: \"bi.custom_tree\",\n cls: \"tree-view display-table\",\n expander: {\n isDefaultInit: o.isDefaultInit,\n el: {},\n popup: {\n type: \"bi.custom_tree\"\n }\n },\n\n items: this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0),\n value: o.value,\n itemsCreator: function (op, callback) {\n (op.times === 1 && !op.node) && BI.nextTick(function () {\n self.loading();\n });\n o.itemsCreator(op, function (ob) {\n hasNext = ob.hasNext;\n (op.times === 1 && !op.node) && self._populate(ob.items);\n callback(self._formatItems(BI.Tree.transformToTreeFormat(ob.items), op.node ? op.node.layer + 1 : 0, op.node));\n self.setValue(self.storeValue);\n (op.times === 1 && !op.node) && BI.nextTick(function () {\n self.loaded();\n });\n });\n },\n\n el: {\n type: \"bi.loader\",\n isDefaultInit: o.itemsCreator !== BI.emptyFn,\n el: {\n type: \"bi.button_tree\",\n chooseType: o.chooseType,\n behaviors: o.behaviors,\n layouts: [{\n type: \"bi.vertical\"\n }]\n },\n hasNext: function () {\n return hasNext;\n }\n }\n });\n this.tree.on(BI.Controller.EVENT_CHANGE, function (type, v) {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n if (type === BI.Events.CLICK) {\n self.setValue(v);\n self.fireEvent(BI.MultiLayerSingleLevelTree.EVENT_CHANGE, v);\n }\n });\n\n BI.createWidget({\n type: \"bi.adaptive\",\n element: this,\n scrollable: o.scrollable,\n items: [this.tree]\n });\n },\n\n _populate: function () {\n BI.MultiLayerSelectLevelTree.superclass.populate.apply(this, arguments);\n },\n\n populate: function (nodes) {\n this._populate(nodes);\n BI.isNull(nodes) ? this.tree.populate() : this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0));\n },\n\n setValue: function (v) {\n // getValue依赖于storeValue, 那么不选的时候就不要更新storeValue了\n if(this.options.chooseType === BI.Selection.None) {\n } else {\n this.storeValue = v;\n this.tree.setValue(v);\n }\n },\n\n getValue: function () {\n return BI.isArray(this.storeValue) ?\n this.storeValue : BI.isNull(this.storeValue) ?\n [] : [this.storeValue];\n },\n\n getAllLeaves: function () {\n return this.tree.getAllLeaves();\n },\n\n getNodeById: function (id) {\n return this.tree.getNodeById(id);\n },\n\n getNodeByValue: function (id) {\n return this.tree.getNodeByValue(id);\n }\n});\nBI.MultiLayerSingleLevelTree.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.multilayer_single_level_tree\", BI.MultiLayerSingleLevelTree);\n/**\n * Created by GUY on 2016/1/26.\n *\n * @class BI.MultiLayerSingleTreePopup\n * @extends BI.Pane\n */\n\nBI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSingleTreePopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multilayer-singletree-popup\",\n tipText: BI.i18nText(\"BI-No_Selected_Item\"),\n isDefaultInit: false,\n itemsCreator: BI.emptyFn,\n items: [],\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiLayerSingleTreePopup.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n\n this.tree = BI.createWidget({\n type: \"bi.multilayer_single_level_tree\",\n isDefaultInit: o.isDefaultInit,\n items: o.items,\n itemsCreator: o.itemsCreator,\n keywordGetter: o.keywordGetter,\n value: o.value,\n scrollable: null,\n onLoaded: function () {\n self.tree.check();\n o.onLoaded();\n }\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n scrollable: true,\n element: this,\n vgap: 5,\n items: [this.tree]\n });\n\n this.tree.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.tree.on(BI.MultiLayerSingleLevelTree.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiLayerSingleTreePopup.EVENT_CHANGE);\n });\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.tree.setValue(v);\n },\n\n populate: function (items) {\n this.tree.populate(items);\n }\n});\n\nBI.MultiLayerSingleTreePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multilayer_single_tree_popup\", BI.MultiLayerSingleTreePopup);/**\n * Created by Windy on 2018/2/2.\n */\nBI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {\n\n props: function() {\n return {\n extraCls: \"bi-multi-layer-single-tree-trigger bi-border bi-focus-shadow bi-border-radius\",\n height: 24,\n valueFormatter: function (v) {\n return v;\n },\n itemsCreator: BI.emptyFn,\n watermark: BI.i18nText(\"BI-Basic_Search\"),\n allowSearchValue: false\n };\n },\n\n render: function () {\n var self = this, o = this.options;\n if(o.itemsCreator === BI.emptyFn) {\n this._initData();\n }\n var content = {\n type: \"bi.htape\",\n items: [\n {\n el: {\n type: \"bi.searcher\",\n ref: function () {\n self.searcher = this;\n },\n masker: BI.isNotNull(o.container) ? {\n offset: {},\n container: o.container\n } : {\n offset: {}\n },\n isAutoSearch: false,\n el: {\n type: \"bi.state_editor\",\n ref: function () {\n self.editor = this;\n },\n defaultText: o.text,\n text: this._digest(o.value),\n value: o.value,\n height: o.height,\n tipText: \"\",\n watermark: o.watermark,\n listeners: [{\n eventName: BI.StateEditor.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_FOCUS);\n }\n }, {\n eventName: BI.StateEditor.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_BLUR);\n }\n }, {\n eventName: BI.StateEditor.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_SEARCHING);\n }\n }]\n },\n popup: {\n type: o.allowInsertValue ? \"bi.multilayer_single_tree_insert_search_pane\" : \"bi.multilayer_single_tree_popup\",\n itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {\n op.keyword = self.editor.getValue();\n o.itemsCreator(op, callback);\n },\n keywordGetter: function () {\n return self.editor.getValue();\n },\n cls: \"bi-card\",\n listeners: [{\n eventName: BI.MultiLayerSingleTreeInsertSearchPane.EVENT_ADD_ITEM,\n action: function () {\n self.options.text = self.getSearcher().getKeyword();\n self.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_ADD_ITEM);\n }\n }],\n ref: function (_ref) {\n self.popup = _ref;\n }\n },\n onSearch: function (obj, callback) {\n var keyword = obj.keyword;\n if(o.itemsCreator === BI.emptyFn) {\n callback(self._getSearchItems(keyword));\n o.allowInsertValue && self.popup.setKeyword(keyword);\n } else {\n callback();\n }\n },\n listeners: [{\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_CHANGE);\n }\n }]\n }\n }, {\n el: {\n type: \"bi.layout\",\n width: 24\n },\n width: 24\n }\n ]\n };\n\n return o.allowEdit ? content : {\n type: \"bi.absolute\",\n items: [{\n el: content,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.layout\"\n },\n left: 0,\n right: 24,\n top: 0,\n bottom: 0\n }]\n };\n },\n\n _initData: function() {\n var o = this.options;\n this.tree = new BI.Tree();\n this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items));\n this.tree.initTree(this.nodes);\n },\n\n _getSearchItems: function(keyword) {\n var self = this, o = this.options;\n // 把数组搜索换成用BI.tree搜索节点, 搜到了就不再往下搜索\n var items = [];\n this.tree.traverse(function (node) {\n var find = BI.Func.getSearchResult(self.tree.isRoot(node) ? [] : BI.concat([node.text], (o.allowSearchValue ? [node.value] : [])), keyword);\n if(find.find.length > 0 || find.match.length > 0) {\n items.push(node);\n return true;\n }\n });\n return this._fillTreeStructure4Search(items, \"id\");\n },\n\n _createJson: function(node, open) {\n return {\n id: node.id,\n pId: node.pId,\n text: node.text,\n value: node.value,\n isParent: BI.isNotEmptyArray(node.children),\n open: open\n }\n },\n\n _getChildren: function(node) {\n var self = this;\n node.children = node.children || [];\n var nodes = [];\n BI.each(node.children, function (idx, child) {\n var children = self._getChildren(child);\n nodes = nodes.concat(children);\n });\n return node.children.concat(nodes);\n },\n\n // 将搜索到的节点进行补充,构造成一棵完整的树\n _fillTreeStructure4Search: function (leaves) {\n var self = this;\n var result = [];\n var queue = [];\n BI.each(leaves, function (idx, node) {\n queue.push({pId: node.pId});\n result.push(node);\n result = result.concat(self._getChildren(node));\n });\n while (BI.isNotEmptyArray(queue)) {\n var node = queue.pop();\n var pNode = this.tree.search(this.tree.getRoot(), node.pId, \"id\");\n if (pNode != null) {\n pNode.open = true;\n queue.push({pId: pNode.pId});\n result.push(pNode);\n }\n }\n return BI.uniqBy(BI.map(result, function (idx, node) {\n return self._createJson(node, node.open);\n }), \"id\");\n },\n\n _digest: function (v) {\n var o = this.options;\n if(o.itemsCreator === BI.emptyFn) {\n var result = BI.find(o.items, function (i, item) {\n return item.value === v;\n });\n return BI.isNotNull(result) ? result.text : o.text;\n }\n return o.valueFormatter(v);\n\n },\n\n stopEditing: function () {\n this.searcher.stopSearch();\n },\n\n getSearcher: function () {\n return this.searcher;\n },\n\n populate: function (items) {\n this.options.items = items;\n this._initData();\n },\n\n setValue: function (v) {\n this.editor.setState(this._digest(v[0]));\n },\n\n getValue: function () {\n return this.searcher.getValue();\n }\n});\nBI.MultiLayerSingleTreeTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiLayerSingleTreeTrigger.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiLayerSingleTreeTrigger.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiLayerSingleTreeTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiLayerSingleTreeTrigger.EVENT_START = \"EVENT_START\";\nBI.MultiLayerSingleTreeTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiLayerSingleTreeTrigger.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\nBI.shortcut(\"bi.multilayer_single_tree_trigger\", BI.MultiLayerSingleTreeTrigger);/**\n * 加号表示的组节点\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSingleTreeFirstPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MultiLayerSingleTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-single-tree-first-plus-group-node bi-list-item\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = this._createNode();\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n doClick: function () {\n BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.node)) {\n this.node.setOpened(v);\n }\n },\n\n _createNode: function () {\n var self = this, o = this.options;\n\n return BI.createWidget({\n type: \"bi.first_plus_group_node\",\n cls: \"bi-list-item-none\",\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n open: o.open,\n isLastNode: o.isLastNode,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }]\n });\n }\n});\n\nBI.shortcut(\"bi.multilayer_single_tree_first_plus_group_node\", BI.MultiLayerSingleTreeFirstPlusGroupNode);/**\n * 加号表示的组节点\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSingleTreeLastPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MultiLayerSingleTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSingleTreeLastPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-single-tree-last-plus-group-node bi-list-item\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSingleTreeLastPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = this._createNode();\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n doClick: function () {\n BI.MultiLayerSingleTreeLastPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSingleTreeLastPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.node)) {\n this.node.setOpened(v);\n }\n },\n\n _createNode: function () {\n var self = this, o = this.options;\n\n return BI.createWidget({\n type: \"bi.last_plus_group_node\",\n cls: \"bi-list-item-none\",\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n open: o.open,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }]\n });\n }\n});\n\nBI.shortcut(\"bi.multilayer_single_tree_last_plus_group_node\", BI.MultiLayerSingleTreeLastPlusGroupNode);/**\n * 加号表示的组节点\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSingleTreeMidPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.MultiLayerSingleTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSingleTreeMidPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-single-tree-mid-plus-group-node bi-list-item\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSingleTreeMidPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = this._createNode();\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n doClick: function () {\n BI.MultiLayerSingleTreeMidPlusGroupNode.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSingleTreeMidPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.node)) {\n this.node.setOpened(v);\n }\n },\n\n _createNode: function () {\n var self = this, o = this.options;\n\n return BI.createWidget({\n type: \"bi.mid_plus_group_node\",\n cls: \"bi-list-item-none\",\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n open: o.open,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }]\n });\n }\n});\n\nBI.shortcut(\"bi.multilayer_single_tree_mid_plus_group_node\", BI.MultiLayerSingleTreeMidPlusGroupNode);/**\n *@desc 根节点,既是第一个又是最后一个\n *@author dailer\n *@date 2018/09/16\n */\nBI.MultiLayerSingleTreePlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.MultiLayerSingleTreePlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-multilayer-single-tree-plus-group-node bi-list-item\",\n layer: 0, // 第几层级\n id: \"\",\n pId: \"\",\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSingleTreePlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.node = this._createNode();\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.node);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doRedMark: function () {\n this.node.doRedMark.apply(this.node, arguments);\n },\n\n unRedMark: function () {\n this.node.unRedMark.apply(this.node, arguments);\n },\n\n doClick: function () {\n BI.MultiLayerSingleTreePlusGroupNode.superclass.doClick.apply(this, arguments);\n this.node.setSelected(this.isSelected());\n },\n\n setOpened: function (v) {\n BI.MultiLayerSingleTreePlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.node)) {\n this.node.setOpened(v);\n }\n },\n\n _createNode: function () {\n var self = this, o = this.options;\n\n return BI.createWidget({\n type: \"bi.plus_group_node\",\n cls: \"bi-list-item-none\",\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n open: o.open,\n isLastNode: o.isLastNode,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }]\n });\n }\n});\n\nBI.shortcut(\"bi.multilayer_single_tree_plus_group_node\", BI.MultiLayerSingleTreePlusGroupNode);/**\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSingleTreeFirstTreeLeafItem\n * @extends BI.BasicButton\n */\nBI.MultiLayerSingleTreeFirstTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-multilayer-single-tree-first-tree-leaf-item bi-list-item-active\",\n logic: {\n dynamic: false\n },\n layer: 0,\n id: \"\",\n pId: \"\",\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.item = BI.createWidget({\n type: \"bi.first_tree_leaf_item\",\n cls: \"bi-list-item-none\",\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.item.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.item);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doHighLight: function () {\n this.item.doHighLight.apply(this.item, arguments);\n },\n\n unHighLight: function () {\n this.item.unHighLight.apply(this.item, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass.doClick.apply(this, arguments);\n this.item.setSelected(this.isSelected());\n },\n\n setSelected: function (v) {\n BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass.setSelected.apply(this, arguments);\n this.item.setSelected(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_single_tree_first_tree_leaf_item\", BI.MultiLayerSingleTreeFirstTreeLeafItem);/**\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSingleTreeLastTreeLeafItem\n * @extends BI.BasicButton\n */\nBI.MultiLayerSingleTreeLastTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSingleTreeLastTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-multilayer-single-tree-last-tree-leaf-item bi-list-item-active\",\n logic: {\n dynamic: false\n },\n layer: 0,\n id: \"\",\n pId: \"\",\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSingleTreeLastTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.item = BI.createWidget({\n type: \"bi.last_tree_leaf_item\",\n cls: \"bi-list-item-none\",\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.item.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.item);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doHighLight: function () {\n this.item.doHighLight.apply(this.item, arguments);\n },\n\n unHighLight: function () {\n this.item.unHighLight.apply(this.item, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.MultiLayerSingleTreeLastTreeLeafItem.superclass.doClick.apply(this, arguments);\n this.item.setSelected(this.isSelected());\n },\n\n setSelected: function (v) {\n BI.MultiLayerSingleTreeLastTreeLeafItem.superclass.setSelected.apply(this, arguments);\n this.item.setSelected(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_single_tree_last_tree_leaf_item\", BI.MultiLayerSingleTreeLastTreeLeafItem);/**\n *\n * Created by GUY on 2016/1/27.\n * @class BI.MultiLayerSingleTreeMidTreeLeafItem\n * @extends BI.BasicButton\n */\nBI.MultiLayerSingleTreeMidTreeLeafItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiLayerSingleTreeMidTreeLeafItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-multilayer-single-tree-mid-tree-leaf-item bi-list-item-active\",\n logic: {\n dynamic: false\n },\n layer: 0,\n id: \"\",\n pId: \"\",\n height: 24\n });\n },\n _init: function () {\n BI.MultiLayerSingleTreeMidTreeLeafItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.item = BI.createWidget({\n type: \"bi.mid_tree_leaf_item\",\n cls: \"bi-list-item-none\",\n logic: {\n dynamic: true\n },\n id: o.id,\n pId: o.pId,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n py: o.py,\n keyword: o.keyword\n });\n this.item.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {// 本身实现click功能\n return;\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n var needBlankLayers = [];\n var pNode = o.pNode;\n while (pNode) {\n if (pNode.isLastNode) {\n needBlankLayers.push(pNode.layer)\n }\n pNode = pNode.pNode;\n }\n\n var items = [];\n BI.count(0, o.layer, function (index) {\n items.push({\n type: \"bi.layout\",\n cls: BI.contains(needBlankLayers, index) ? \"\" : \"base-line-conn-background\",\n width: 12,\n height: o.height\n });\n });\n items.push(this.item);\n BI.createWidget({\n type: \"bi.td\",\n element: this,\n columnSize: BI.makeArray(o.layer, 12),\n items: [items]\n });\n },\n\n doHighLight: function () {\n this.item.doHighLight.apply(this.item, arguments);\n },\n\n unHighLight: function () {\n this.item.unHighLight.apply(this.item, arguments);\n },\n\n getId: function () {\n return this.options.id;\n },\n\n getPId: function () {\n return this.options.pId;\n },\n\n doClick: function () {\n BI.MultiLayerSingleTreeMidTreeLeafItem.superclass.doClick.apply(this, arguments);\n this.item.setSelected(this.isSelected());\n },\n\n setSelected: function (v) {\n BI.MultiLayerSingleTreeMidTreeLeafItem.superclass.setSelected.apply(this, arguments);\n this.item.setSelected(v);\n }\n});\n\nBI.shortcut(\"bi.multilayer_single_tree_mid_tree_leaf_item\", BI.MultiLayerSingleTreeMidTreeLeafItem);/**\n *\n * @class BI.MultiSelectCheckPane\n * @extends BI.Widget\n */\nBI.MultiSelectCheckPane = BI.inherit(BI.Widget, {\n\n constants: {\n height: 12,\n lgap: 10,\n tgap: 10,\n bgap: 5\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectCheckPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-check-pane bi-background\",\n items: [],\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n onClickContinueSelect: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectCheckPane.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n\n this.storeValue = opts.value || {};\n this.display = BI.createWidget({\n type: \"bi.display_selected_list\",\n items: opts.items,\n itemsCreator: function (op, callback) {\n op = BI.extend(op || {}, {\n selectedValues: self.storeValue.value\n });\n if (self.storeValue.type === BI.Selection.Multi) {\n callback({\n items: BI.map(self.storeValue.value, function (i, v) {\n var txt = opts.valueFormatter(v) || v;\n return {\n text: txt,\n value: v,\n title: txt\n };\n })\n });\n return;\n }\n opts.itemsCreator(op, callback);\n }\n });\n\n this.continueSelect = BI.createWidget({\n type: \"bi.text_button\",\n text: BI.i18nText(\"BI-Continue_Select\"),\n cls: \"multi-select-check-selected bi-high-light\"\n });\n\n this.continueSelect.on(BI.TextButton.EVENT_CHANGE, function () {\n opts.onClickContinueSelect();\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n height: this.constants.height,\n el: {\n type: \"bi.vertical_adapt\",\n cls: \"multi-select-continue-select\",\n items: [\n {\n el: {\n type: \"bi.label\",\n text: BI.i18nText(\"BI-Selected_Data\")\n },\n lgap: this.constants.lgap\n },\n {\n el: this.continueSelect,\n lgap: this.constants.lgap\n }]\n },\n tgap: this.constants.tgap\n }, {\n height: \"fill\",\n el: this.display,\n tgap: this.constants.bgap\n }]\n });\n },\n\n setValue: function (v) {\n this.storeValue = v || {};\n },\n\n empty: function () {\n this.display.empty();\n },\n\n populate: function () {\n this.display.populate.apply(this.display, arguments);\n }\n});\n\nBI.shortcut(\"bi.multi_select_check_pane\", BI.MultiSelectCheckPane);/**\n *\n *\n * 查看已选弹出层的展示面板\n * @class BI.DisplaySelectedList\n * @extends BI.Widget\n */\nBI.DisplaySelectedList = BI.inherit(BI.Pane, {\n\n constants: {\n height: 24,\n lgap: 10\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.DisplaySelectedList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-display-list\",\n itemsCreator: BI.emptyFn,\n items: []\n });\n },\n\n _init: function () {\n BI.DisplaySelectedList.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n\n this.hasNext = false;\n\n this.button_group = BI.createWidget({\n type: \"bi.list_pane\",\n element: this,\n el: {\n type: \"bi.loader\",\n isDefaultInit: false,\n logic: {\n dynamic: true,\n scrolly: true\n },\n items: this._createItems(opts.items),\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI,\n layouts: [{\n type: \"bi.vertical\",\n lgap: 10\n }]\n },\n itemsCreator: function (options, callback) {\n\n opts.itemsCreator(options, function (ob) {\n self.hasNext = !!ob.hasNext;\n callback(self._createItems(ob.items));\n });\n },\n hasNext: function () {\n return self.hasNext;\n }\n });\n },\n\n _createItems: function (items) {\n return BI.createItems(items, {\n type: \"bi.icon_text_item\",\n cls: \"cursor-default check-font icon-size-12 display-list-item bi-tips\",\n once: true,\n invalid: true,\n selected: true,\n height: this.constants.height,\n logic: {\n dynamic: true\n }\n });\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n populate: function (items) {\n if (arguments.length === 0) {\n this.button_group.populate();\n } else {\n this.button_group.populate(this._createItems(items));\n }\n }\n});\n\nBI.shortcut(\"bi.display_selected_list\", BI.DisplaySelectedList);/**\n *\n * @class BI.MultiSelectCombo\n * @extends BI.Single\n */\nBI.MultiSelectCombo = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-combo\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n attributes: {\n tabIndex: 0\n },\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.MultiSelectCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n self.trigger.getSearcher().setState(self.storeValue);\n self.numberCounter.setButtonChecked(self.storeValue);\n };\n this.storeValue = o.value || {};\n\n this._assertValue(this.storeValue);\n\n // 标记正在请求数据\n this.requesting = false;\n\n this.trigger = BI.createWidget({\n type: \"bi.multi_select_trigger\",\n allowEdit: o.allowEdit,\n height: o.height,\n text: o.text,\n // adapter: this.popup,\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: this.storeValue\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiSelectCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiSelectCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {\n self._setStartValue(\"\");\n this.getSearcher().setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP, function () {\n self._setStartValue(\"\");\n self.fireEvent(BI.MultiSelectCombo.EVENT_STOP);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_PAUSE, function () {\n if (this.getSearcher().hasMatched()) {\n var keyword = this.getSearcher().getKeyword();\n self._join({\n type: BI.Selection.Multi,\n value: [keyword]\n }, function () {\n self.combo.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.populate();\n self._setStartValue(\"\");\n });\n }\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function (keywords) {\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n self.combo.populate();\n self._setStartValue(\"\");\n } else {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n self.fireEvent(BI.MultiSelectCombo.EVENT_SEARCHING);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE, function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n });\n }\n self.fireEvent(BI.MultiSelectCombo.EVENT_CLICK_ITEM);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {\n // counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)\n // 只需要更新查看面板的selectedValue用以请求已选数据\n self.numberCounter.updateSelectedValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: !o.allowEdit,\n container: o.container,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.multi_select_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n self.numberCounter.setAdapter(this);\n },\n listeners: [{\n eventName: BI.MultiSelectPopupView.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n });\n self.fireEvent(BI.MultiSelectCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,\n action: function () {\n self._defaultState();\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,\n action: function () {\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n self.numberCounter.adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: o.value,\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0 && self.numberCounter.element.find(e.target).length === 0;\n }\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n this.setValue(self.storeValue);\n BI.nextTick(function () {\n self.populate();\n });\n });\n // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件\n this.wants2Quit = false;\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n // important:关闭弹出时又可能没有退出编辑状态\n self._stopEditing();\n if (self.requesting === true) {\n self.wants2Quit = true;\n } else {\n self.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM);\n }\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.numberCounter.hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n this.numberCounter = BI.createWidget({\n type: \"bi.multi_select_check_selected_switcher\",\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: this.storeValue\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n this.updateSelectedValue(self.storeValue);\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n self.trigger.refreshPlaceHolderWidth((b === true ? self.numberCounter.element.outerWidth() + 8 : 0));\n });\n });\n\n this.trigger.element.click(function (e) {\n if (self.trigger.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.vertical_adapt\",\n items: [this.numberCounter]\n },\n right: o.height,\n top: 0,\n height: o.height,\n }]\n });\n },\n\n _itemsCreator4Trigger: function(op, callback) {\n var self = this, o = this.options;\n o.itemsCreator(op, function (res) {\n if (op.times === 1 && BI.isNotNull(op.keywords)) {\n // 预防trigger内部把当前的storeValue改掉\n self.trigger.setValue(BI.deepClone(self.getValue()));\n }\n callback.apply(self, arguments);\n });\n },\n\n _stopEditing: function() {\n this.trigger.stopEditing();\n this.numberCounter.hideView();\n },\n\n _defaultState: function () {\n this._stopEditing();\n this.combo.hideView();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectCombo.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectCombo.REQ_GET_ALL_DATA,\n keywords: [this.trigger.getKey()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n BI.remove(self.storeValue.assist, item);\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n self._adjust(callback);\n });\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n adjust();\n callback();\n function adjust () {\n if (self.wants2Quit === true) {\n self.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM);\n self.wants2Quit = false;\n }\n self.requesting = false;\n }\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n BI.remove(self.storeValue.assist, v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.popup.setStartValue(value);\n },\n\n setValue: function (v) {\n this.storeValue = v || {};\n this._assertValue(this.storeValue);\n this.combo.setValue(this.storeValue);\n this.numberCounter.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue);\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n this.numberCounter.populate.apply(this.numberCounter, arguments);\n }\n});\n\nBI.extend(BI.MultiSelectCombo, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.MultiSelectCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiSelectCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiSelectCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiSelectCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiSelectCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.MultiSelectCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.multi_select_combo\", BI.MultiSelectCombo);/**\n *\n * @class BI.MultiSelectNoBarCombo\n * @extends BI.Single\n */\nBI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectNoBarCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-combo-no-bar\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.MultiSelectNoBarCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n self.trigger.getSearcher().setState(self.storeValue);\n self.numberCounter.setButtonChecked(self.storeValue);\n };\n this.storeValue = {\n type: BI.Selection.Multi,\n value: o.value || []\n };\n // 标记正在请求数据\n this.requesting = false;\n\n this.trigger = BI.createWidget({\n type: \"bi.multi_select_trigger\",\n height: o.height,\n text: o.text,\n // adapter: this.popup,\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: {\n type: BI.Selection.Multi,\n value: o.value\n }\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {\n self._setStartValue(\"\");\n this.getSearcher().setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP, function () {\n self._setStartValue(\"\");\n self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_STOP);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function (keywords) {\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n self.combo.populate();\n self._setStartValue(\"\");\n } else {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE, function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n });\n }\n self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CLICK_ITEM);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {\n // counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)\n // 只需要更新查看面板的selectedValue用以请求已选数据\n self.numberCounter.updateSelectedValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: false,\n container: o.container,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.multi_select_no_bar_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n self.numberCounter.setAdapter(this);\n },\n listeners: [{\n eventName: BI.MultiSelectPopupView.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n });\n self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,\n action: function () {\n self._defaultState();\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,\n action: function () {\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n self.numberCounter.adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: {\n type: BI.Selection.Multi,\n value: o.value\n },\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0 &&\n self.numberCounter.element.find(e.target).length === 0;\n }\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n this.setValue(self.storeValue);\n BI.nextTick(function () {\n self.populate();\n });\n });\n // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件\n this.wants2Quit = false;\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n // important:关闭弹出时又可能没有退出编辑状态\n self._stopEditing();\n if (self.requesting === true) {\n self.wants2Quit = true;\n } else {\n self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM);\n }\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.numberCounter.hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n this.numberCounter = BI.createWidget({\n type: \"bi.multi_select_check_selected_switcher\",\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: {\n type: BI.Selection.Multi,\n value: o.value\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n this.updateSelectedValue(self.storeValue);\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n self.trigger.refreshPlaceHolderWidth((b === true ? self.numberCounter.element.outerWidth() + 8 : 0));\n });\n });\n\n this.trigger.element.click(function (e) {\n if (self.trigger.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.vertical_adapt\",\n items: [this.numberCounter]\n },\n right: o.height,\n top: 0,\n height: o.height\n }]\n });\n },\n\n _itemsCreator4Trigger: function (op, callback) {\n var self = this, o = this.options;\n o.itemsCreator(op, function (res) {\n if (op.times === 1 && BI.isNotNull(op.keywords)) {\n // 预防trigger内部把当前的storeValue改掉\n self.trigger.setValue(BI.deepClone(self.storeValue));\n }\n callback.apply(self, arguments);\n });\n },\n\n _stopEditing: function () {\n this.trigger.stopEditing();\n this.numberCounter.hideView();\n },\n\n _defaultState: function () {\n this._stopEditing();\n this.combo.hideView();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectNoBarCombo.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest(items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectNoBarCombo.REQ_GET_ALL_DATA,\n keywords: [this.trigger.getKey()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n BI.remove(self.storeValue.assist, item);\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n self._adjust(callback);\n });\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n adjust();\n callback();\n\n function adjust() {\n if (self.wants2Quit === true) {\n self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM);\n self.wants2Quit = false;\n }\n self.requesting = false;\n }\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n BI.remove(self.storeValue.assist, v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.popup.setStartValue(value);\n },\n\n setValue: function (v) {\n this.storeValue = {\n type: BI.Selection.Multi,\n value: v || []\n };\n this.combo.setValue(this.storeValue);\n this.numberCounter.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue.value);\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n this.numberCounter.populate.apply(this.numberCounter, arguments);\n }\n});\n\nBI.extend(BI.MultiSelectNoBarCombo, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.MultiSelectNoBarCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiSelectNoBarCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiSelectNoBarCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiSelectNoBarCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiSelectNoBarCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.MultiSelectNoBarCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.multi_select_no_bar_combo\", BI.MultiSelectNoBarCombo);/**\n *\n * @class BI.MultiSelectInsertCombo\n * @extends BI.Single\n */\nBI.MultiSelectInsertCombo = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectInsertCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-insert-combo\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n attributes: {\n tabIndex: 0\n },\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.MultiSelectInsertCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n self.trigger.getSearcher().setState(self.storeValue);\n self.numberCounter.setButtonChecked(self.storeValue);\n };\n this.storeValue = o.value || {};\n // 标记正在请求数据\n this.requesting = false;\n\n this.trigger = BI.createWidget({\n type: \"bi.multi_select_insert_trigger\",\n allowEdit: o.allowEdit,\n height: o.height,\n text: o.text,\n watermark: o.watermark,\n // adapter: this.popup,\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: o.value\n });\n\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_START, function () {\n self._setStartValue(\"\");\n this.getSearcher().setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_STOP, function () {\n self._setStartValue(\"\");\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_STOP);\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () {\n if (this.getSearcher().hasMatched()) {\n self._addItem(assertShowValue);\n }\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM, function () {\n if (!this.getSearcher().hasMatched()) {\n self._addItem(assertShowValue);\n self._stopEditing();\n }\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) {\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n self.combo.populate();\n self._setStartValue(\"\");\n } else {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_SEARCHING);\n });\n\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_CHANGE, function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n });\n }\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM);\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {\n // counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)\n // 只需要更新查看面板的selectedValue用以请求已选数据\n self.numberCounter.updateSelectedValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: !o.allowEdit,\n el: this.trigger,\n adjustLength: 1,\n container: o.container,\n popup: {\n type: \"bi.multi_select_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n self.numberCounter.setAdapter(this);\n },\n listeners: [{\n eventName: BI.MultiSelectPopupView.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n });\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,\n action: function () {\n self._defaultState();\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,\n action: function () {\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n self.numberCounter.adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: o.value,\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0 &&\n self.numberCounter.element.find(e.target).length === 0;\n }\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n this.setValue(self.storeValue);\n BI.nextTick(function () {\n self.populate();\n });\n });\n // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件\n this.wants2Quit = false;\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n // important:关闭弹出时又可能没有退出编辑状态\n self._stopEditing();\n if (self.requesting === true) {\n self.wants2Quit = true;\n } else {\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM);\n }\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.numberCounter.hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n\n this.numberCounter = BI.createWidget({\n type: \"bi.multi_select_check_selected_switcher\",\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: o.value\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n this.updateSelectedValue(self.storeValue);\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n self.trigger.refreshPlaceHolderWidth((b === true ? self.numberCounter.element.outerWidth() + 8 : 0));\n });\n });\n\n this.trigger.element.click(function (e) {\n if (self.trigger.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.vertical_adapt\",\n items: [this.numberCounter]\n },\n right: o.height,\n top: 0,\n height: o.height,\n }]\n });\n },\n\n _itemsCreator4Trigger: function(op, callback) {\n var self = this, o = this.options;\n o.itemsCreator(op, function (res) {\n if (op.times === 1 && BI.isNotNull(op.keywords)) {\n // 预防trigger内部把当前的storeValue改掉\n self.trigger.setValue(BI.deepClone(self.getValue()));\n }\n callback.apply(self, arguments);\n });\n },\n\n _addItem: function (assertShowValue) {\n var self = this;\n var keyword = this.trigger.getSearcher().getKeyword();\n this._join({\n type: BI.Selection.Multi,\n value: [keyword]\n }, function () {\n // 如果在不选的状态下直接把该值添加进来\n if (self.storeValue.type === BI.Selection.Multi) {\n BI.pushDistinct(self.storeValue.value, keyword);\n }\n self.combo.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.populate();\n self._setStartValue(\"\");\n });\n },\n\n _stopEditing: function() {\n this.trigger.stopEditing();\n this.numberCounter.hideView();\n },\n\n _defaultState: function () {\n this._stopEditing();\n this.combo.hideView();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA,\n keywords: [this.trigger.getKey()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n BI.remove(self.storeValue.assist, item);\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n self._adjust(callback);\n });\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n adjust();\n callback();\n function adjust () {\n if (self.wants2Quit === true) {\n self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM);\n self.wants2Quit = false;\n }\n self.requesting = false;\n }\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n // value更新的时候assist也需要更新\n BI.remove(self.storeValue.assist, v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.popup.setStartValue(value);\n },\n\n setValue: function (v) {\n this.storeValue = v || {};\n this._assertValue(this.storeValue);\n this.combo.setValue(this.storeValue);\n this.numberCounter.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue);\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n this.numberCounter.populate.apply(this.numberCounter, arguments);\n }\n});\n\nBI.extend(BI.MultiSelectInsertCombo, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.MultiSelectInsertCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiSelectInsertCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiSelectInsertCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiSelectInsertCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiSelectInsertCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.MultiSelectInsertCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.multi_select_insert_combo\", BI.MultiSelectInsertCombo);/**\n *\n * @class BI.MultiSelectInsertCombo\n * @extends BI.Single\n */\nBI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectInsertNoBarCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-insert-combo-no-bar\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.MultiSelectInsertNoBarCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n self.trigger.getSearcher().setState(self.storeValue);\n self.numberCounter.setButtonChecked(self.storeValue);\n };\n this.storeValue = {\n type: BI.Selection.Multi,\n value: o.value || []\n };\n // 标记正在请求数据\n this.requesting = false;\n\n this.trigger = BI.createWidget({\n type: \"bi.multi_select_insert_trigger\",\n height: o.height,\n text: o.text,\n // adapter: this.popup,\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: {\n type: BI.Selection.Multi,\n value: o.value\n }\n });\n\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_START, function () {\n self._setStartValue(\"\");\n this.getSearcher().setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_STOP, function () {\n self._setStartValue(\"\");\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () {\n if (this.getSearcher().hasMatched()) {\n self._addItem(assertShowValue);\n }\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM, function () {\n if (!this.getSearcher().hasMatched()) {\n self._addItem(assertShowValue);\n self._stopEditing();\n }\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) {\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n self.combo.populate();\n self._setStartValue(\"\");\n } else {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n });\n\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_CHANGE, function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n });\n }\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {\n // counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)\n // 只需要更新查看面板的selectedValue用以请求已选数据\n self.numberCounter.updateSelectedValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: false,\n container: o.container,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.multi_select_no_bar_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n self.numberCounter.setAdapter(this);\n },\n listeners: [{\n eventName: BI.MultiSelectPopupView.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n });\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,\n action: function () {\n self._defaultState();\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,\n action: function () {\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n self.numberCounter.adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: {\n type: BI.Selection.Multi,\n value: o.value\n },\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0 &&\n self.numberCounter.element.find(e.target).length === 0;\n }\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n this.setValue(self.storeValue);\n BI.nextTick(function () {\n self.populate();\n });\n });\n // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件\n this.wants2Quit = false;\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n // important:关闭弹出时又可能没有退出编辑状态\n self._stopEditing();\n if (self.requesting === true) {\n self.wants2Quit = true;\n } else {\n self.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM);\n }\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.numberCounter.hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n this.numberCounter = BI.createWidget({\n type: \"bi.multi_select_check_selected_switcher\",\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: BI.bind(this._itemsCreator4Trigger, this),\n value: {\n type: BI.Selection.Multi,\n value: o.value\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n this.updateSelectedValue(self.storeValue);\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n self.trigger.refreshPlaceHolderWidth((b === true ? self.numberCounter.element.outerWidth() + 8 : 0));\n });\n });\n\n this.trigger.element.click(function (e) {\n if (self.trigger.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.vertical_adapt\",\n items: [this.numberCounter]\n },\n right: o.height,\n top: 0,\n height: o.height\n }]\n });\n },\n\n _itemsCreator4Trigger: function(op, callback) {\n var self = this, o = this.options;\n o.itemsCreator(op, function (res) {\n if (op.times === 1 && BI.isNotNull(op.keywords)) {\n // 预防trigger内部把当前的storeValue改掉\n self.trigger.setValue(BI.deepClone(self.storeValue));\n }\n callback.apply(self, arguments);\n });\n },\n\n _addItem: function (assertShowValue) {\n var self = this;\n var keyword = this.trigger.getSearcher().getKeyword();\n this._join({\n type: BI.Selection.Multi,\n value: [keyword]\n }, function () {\n // 如果在不选的状态下直接把该值添加进来\n if (self.storeValue.type === BI.Selection.Multi) {\n BI.pushDistinct(self.storeValue.value, keyword);\n }\n self.combo.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.populate();\n self._setStartValue(\"\");\n });\n },\n\n _stopEditing: function() {\n this.trigger.stopEditing();\n this.numberCounter.hideView();\n },\n\n _defaultState: function () {\n this._stopEditing();\n this.combo.hideView();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectInsertNoBarCombo.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this.requesting = true;\n o.itemsCreator({\n type: BI.MultiSelectInsertNoBarCombo.REQ_GET_ALL_DATA,\n keywords: [this.trigger.getKey()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n BI.remove(self.storeValue.assist, item);\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n self._adjust(callback);\n });\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n adjust();\n callback();\n function adjust () {\n if (self.wants2Quit === true) {\n self.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM);\n self.wants2Quit = false;\n }\n self.requesting = false;\n }\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n BI.remove(self.storeValue.assist, v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.popup.setStartValue(value);\n },\n\n setValue: function (v) {\n this.storeValue = {\n type: BI.Selection.Multi,\n value: v || []\n };\n this.combo.setValue(this.storeValue);\n this.numberCounter.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue.value);\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n this.numberCounter.populate.apply(this.numberCounter, arguments);\n }\n});\n\nBI.extend(BI.MultiSelectInsertNoBarCombo, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.multi_select_insert_no_bar_combo\", BI.MultiSelectInsertNoBarCombo);/**\n *\n * 复选下拉框\n * @class BI.MultiSelectInsertTrigger\n * @extends BI.Trigger\n */\n\nBI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, {\n\n constants: {\n height: 14,\n rgap: 4,\n lgap: 4\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectInsertTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-trigger bi-border bi-border-radius\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n searcher: {},\n switcher: {},\n\n adapter: null,\n masker: {},\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.MultiSelectInsertTrigger.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n if (o.height) {\n this.setHeight(o.height - 2);\n }\n\n this.searcher = BI.createWidget(o.searcher, {\n type: \"bi.multi_select_insert_searcher\",\n height: o.height,\n text: o.text,\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n watermark: o.watermark,\n popup: {},\n adapter: o.adapter,\n masker: o.masker,\n value: o.value\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_START, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_START);\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM);\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_PAUSE, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_PAUSE);\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_SEARCHING, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, arguments);\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_STOP, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_STOP);\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_BLUR);\n });\n this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiSelectInsertTrigger.EVENT_FOCUS);\n });\n\n this.wrapNumberCounter = BI.createWidget({\n type: \"bi.layout\"\n });\n\n this.wrapper = BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [\n {\n el: this.searcher,\n width: \"fill\"\n }, {\n el: this.wrapNumberCounter,\n width: 0\n }, {\n el: BI.createWidget(),\n width: 24\n }]\n });\n\n !o.allowEdit && BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.layout\"\n },\n left: 0,\n right: 24,\n top: 0,\n bottom: 0\n }]\n });\n },\n\n /**\n * 重新调整numberCounter的空白占位符\n */\n refreshPlaceHolderWidth: function(width) {\n this.wrapper.attr(\"items\")[1].width = width;\n this.wrapper.resize();\n },\n\n getSearcher: function () {\n return this.searcher;\n },\n\n stopEditing: function () {\n this.searcher.stopSearch();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n setValue: function (ob) {\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.searcher.getKey();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n }\n});\n\nBI.MultiSelectInsertTrigger.EVENT_TRIGGER_CLICK = \"EVENT_TRIGGER_CLICK\";\nBI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK = \"EVENT_COUNTER_CLICK\";\nBI.MultiSelectInsertTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiSelectInsertTrigger.EVENT_START = \"EVENT_START\";\nBI.MultiSelectInsertTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiSelectInsertTrigger.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.MultiSelectInsertTrigger.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW = \"EVENT_BEFORE_COUNTER_POPUPVIEW\";\nBI.MultiSelectInsertTrigger.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\nBI.MultiSelectInsertTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiSelectInsertTrigger.EVENT_BLUR = \"EVENT_BLUR\";\n\nBI.shortcut(\"bi.multi_select_insert_trigger\", BI.MultiSelectInsertTrigger);/**\n * 多选加载数据面板\n * Created by guy on 15/11/2.\n * @class BI.MultiSelectLoader\n * @extends Widget\n */\nBI.MultiSelectLoader = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-loader\",\n logic: {\n dynamic: true\n },\n el: {\n height: 400\n },\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectLoader.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n var hasNext = false;\n\n this.storeValue = opts.value || {};\n this._assertValue(this.storeValue);\n\n this.button_group = BI.createWidget({\n type: \"bi.select_list\",\n logic: opts.logic,\n toolbar: {\n type: \"bi.multi_select_bar\",\n cls: \"bi-list-item-active\",\n iconWrapperWidth: 36\n },\n el: BI.extend({\n onLoaded: opts.onLoaded,\n el: {\n type: \"bi.loader\",\n isDefaultInit: false,\n logic: {\n dynamic: true,\n scrolly: true\n },\n el: {\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n }\n }, opts.el),\n itemsCreator: function (op, callback) {\n var startValue = self._startValue;\n self.storeValue && (op = BI.extend(op || {}, {\n selectedValues: BI.isKey(startValue) && self.storeValue.type === BI.Selection.Multi\n ? self.storeValue.value.concat(startValue) : self.storeValue.value\n }));\n opts.itemsCreator(op, function (ob) {\n hasNext = ob.hasNext;\n var firstItems = [];\n if (op.times === 1 && self.storeValue) {\n var json = BI.map(self.storeValue.value, function (i, v) {\n var txt = opts.valueFormatter(v) || v;\n return {\n text: txt,\n value: v,\n title: txt,\n selected: self.storeValue.type === BI.Selection.Multi\n };\n });\n if (BI.isKey(self._startValue) && !BI.contains(self.storeValue.value, self._startValue)) {\n var txt = opts.valueFormatter(startValue) || startValue;\n json.unshift({\n text: txt,\n value: startValue,\n title: txt,\n selected: true\n });\n }\n firstItems = self._createItems(json);\n }\n callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || \"\");\n if (op.times === 1 && self.storeValue) {\n BI.isKey(startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, startValue) : BI.pushDistinct(self.storeValue.value, startValue));\n self.setValue(self.storeValue);\n }\n (op.times === 1) && self._scrollToTop();\n });\n },\n hasNext: function () {\n return hasNext;\n },\n value: this.storeValue\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Top), BI.extend({\n scrolly: true,\n vgap: 5\n }, opts.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Top, this.button_group)\n }))));\n this.button_group.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.button_group.on(BI.SelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectLoader.EVENT_CHANGE, arguments);\n });\n },\n\n _createItems: function (items) {\n return BI.createItems(items, {\n type: \"bi.multi_select_item\",\n logic: this.options.logic,\n cls: \"bi-list-item-active\",\n height: 24,\n selected: this.isAllSelected(),\n iconWrapperWidth: 36\n });\n },\n\n _scrollToTop: function () {\n var self = this;\n BI.delay(function () {\n self.button_group.element.scrollTop(0);\n }, 30);\n },\n\n isAllSelected: function () {\n return this.button_group.isAllSelected();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n setStartValue: function (v) {\n this._startValue = v;\n },\n\n setValue: function (v) {\n this.storeValue = v || {};\n this._assertValue(this.storeValue);\n this.button_group.setValue(this.storeValue);\n },\n\n getValue: function () {\n return this.button_group.getValue();\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n populate: function (items) {\n arguments[0] = this._createItems(items);\n this.button_group.populate.apply(this.button_group, arguments);\n },\n\n resetHeight: function (h) {\n this.button_group.resetHeight(h - 10);\n },\n\n resetWidth: function (w) {\n this.button_group.resetWidth(w);\n }\n});\n\nBI.MultiSelectLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_loader\", BI.MultiSelectLoader);/**\n * 多选加载数据面板\n * Created by guy on 15/11/2.\n * @class BI.MultiSelectNoBarLoader\n * @extends Widget\n */\nBI.MultiSelectNoBarLoader = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectNoBarLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-loader\",\n logic: {\n dynamic: true\n },\n el: {\n height: 400\n },\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectNoBarLoader.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n var hasNext = false;\n\n this.storeValue = opts.value || {};\n this._assertValue(this.storeValue);\n\n this.button_group = BI.createWidget(BI.extend({\n type: \"bi.list_pane\",\n onLoaded: opts.onLoaded,\n el: {\n type: \"bi.loader\",\n isDefaultInit: false,\n logic: {\n dynamic: true,\n scrolly: true\n },\n el: {\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n },\n itemsCreator: function (op, callback) {\n var startValue = self._startValue;\n self.storeValue && (op = BI.extend(op || {}, {\n selectedValues: BI.isKey(startValue) && self.storeValue.type === BI.Selection.Multi\n ? self.storeValue.value.concat(startValue) : self.storeValue.value\n }));\n opts.itemsCreator(op, function (ob) {\n hasNext = ob.hasNext;\n var firstItems = [];\n if (op.times === 1 && self.storeValue) {\n var json = BI.map(self.storeValue.value, function (i, v) {\n var txt = opts.valueFormatter(v) || v;\n return {\n text: txt,\n value: v,\n title: txt,\n selected: self.storeValue.type === BI.Selection.Multi\n };\n });\n if (BI.isKey(self._startValue) && !BI.contains(self.storeValue.value, self._startValue)) {\n var txt = opts.valueFormatter(startValue) || startValue;\n json.unshift({\n text: txt,\n value: startValue,\n title: txt,\n selected: true\n });\n }\n firstItems = self._createItems(json);\n }\n callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || \"\");\n if (op.times === 1 && self.storeValue) {\n BI.isKey(startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, startValue) : BI.pushDistinct(self.storeValue.value, startValue));\n self.setValue(self.storeValue);\n }\n (op.times === 1) && self._scrollToTop();\n });\n },\n hasNext: function () {\n return hasNext;\n },\n value: this.storeValue\n }, opts.el));\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n items: [this.button_group],\n vgap: 5\n });\n\n this.button_group.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.button_group.on(BI.SelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectNoBarLoader.EVENT_CHANGE, arguments);\n });\n },\n\n _createItems: function (items) {\n return BI.createItems(items, {\n type: \"bi.multi_select_item\",\n cls: \"bi-list-item-active\",\n logic: this.options.logic,\n height: 24,\n iconWrapperWidth: 36\n });\n },\n\n _scrollToTop: function () {\n var self = this;\n BI.delay(function () {\n self.button_group.element.scrollTop(0);\n }, 30);\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n setStartValue: function (v) {\n this._startValue = v;\n },\n\n setValue: function (v) {\n this.storeValue = v || {};\n this._assertValue(this.storeValue);\n this.button_group.setValue(this.storeValue.value);\n },\n\n getValue: function () {\n return {\n type: BI.Selection.Multi,\n value: this.button_group.getValue()\n };\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n populate: function (items) {\n arguments[0] = this._createItems(items);\n this.button_group.populate.apply(this.button_group, arguments);\n },\n\n resetHeight: function (h) {\n this.button_group.element.css({\"max-height\": h + \"px\"});\n },\n\n resetWidth: function () {\n\n }\n});\n\nBI.MultiSelectNoBarLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_no_bar_loader\", BI.MultiSelectNoBarLoader);/**\n * 带加载的多选下拉面板\n * @class BI.MultiSelectPopupView\n * @extends Widget\n */\nBI.MultiSelectPopupView = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectPopupView.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-popup-view\",\n maxWidth: \"auto\",\n minWidth: 135,\n maxHeight: 400,\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectPopupView.superclass._init.apply(this, arguments);\n var self = this, opts = this.options;\n\n this.loader = BI.createWidget({\n type: \"bi.multi_select_loader\",\n itemsCreator: opts.itemsCreator,\n valueFormatter: opts.valueFormatter,\n onLoaded: opts.onLoaded,\n value: opts.value\n });\n\n this.popupView = BI.createWidget({\n type: \"bi.multi_popup_view\",\n stopPropagation: false,\n maxWidth: opts.maxWidth,\n minWidth: opts.minWidth,\n maxHeight: opts.maxHeight,\n element: this,\n buttons: [BI.i18nText(\"BI-Basic_Clears\"), BI.i18nText(\"BI-Basic_Sure\")],\n el: this.loader,\n value: opts.value\n });\n\n this.popupView.on(BI.MultiPopupView.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectPopupView.EVENT_CHANGE);\n });\n this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON, function (index) {\n switch (index) {\n case 0:\n self.fireEvent(BI.MultiSelectPopupView.EVENT_CLICK_CLEAR);\n break;\n case 1:\n self.fireEvent(BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM);\n break;\n }\n });\n },\n\n isAllSelected: function () {\n return this.loader.isAllSelected();\n },\n\n setStartValue: function (v) {\n this.loader.setStartValue(v);\n },\n\n setValue: function (v) {\n this.popupView.setValue(v);\n },\n\n getValue: function () {\n return this.popupView.getValue();\n },\n\n populate: function (items) {\n this.popupView.populate.apply(this.popupView, arguments);\n },\n\n resetHeight: function (h) {\n this.popupView.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.popupView.resetWidth(w);\n }\n});\n\nBI.MultiSelectPopupView.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiSelectPopupView.EVENT_CLICK_CONFIRM = \"EVENT_CLICK_CONFIRM\";\nBI.MultiSelectPopupView.EVENT_CLICK_CLEAR = \"EVENT_CLICK_CLEAR\";\n\n\nBI.shortcut(\"bi.multi_select_popup_view\", BI.MultiSelectPopupView);/**\n * 带加载的多选下拉面板\n * @class BI.MultiSelectPopupView\n * @extends Widget\n */\nBI.MultiSelectNoBarPopupView = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectNoBarPopupView.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-popup-view\",\n maxWidth: \"auto\",\n minWidth: 135,\n maxHeight: 400,\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectNoBarPopupView.superclass._init.apply(this, arguments);\n var self = this, opts = this.options;\n\n this.loader = BI.createWidget({\n type: \"bi.multi_select_no_bar_loader\",\n itemsCreator: opts.itemsCreator,\n valueFormatter: opts.valueFormatter,\n onLoaded: opts.onLoaded,\n value: opts.value\n });\n\n this.popupView = BI.createWidget({\n type: \"bi.multi_popup_view\",\n stopPropagation: false,\n maxWidth: opts.maxWidth,\n minWidth: opts.minWidth,\n maxHeight: opts.maxHeight,\n element: this,\n buttons: [BI.i18nText(\"BI-Basic_Clears\"), BI.i18nText(\"BI-Basic_Sure\")],\n el: this.loader,\n value: opts.value\n });\n\n this.popupView.on(BI.MultiPopupView.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectNoBarPopupView.EVENT_CHANGE);\n });\n this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON, function (index) {\n switch (index) {\n case 0:\n self.fireEvent(BI.MultiSelectNoBarPopupView.EVENT_CLICK_CLEAR);\n break;\n case 1:\n self.fireEvent(BI.MultiSelectNoBarPopupView.EVENT_CLICK_CONFIRM);\n break;\n }\n });\n },\n\n setStartValue: function (v) {\n this.loader.setStartValue(v);\n },\n\n setValue: function (v) {\n this.popupView.setValue(v);\n },\n\n getValue: function () {\n return this.popupView.getValue();\n },\n\n populate: function (items) {\n this.popupView.populate.apply(this.popupView, arguments);\n },\n\n resetHeight: function (h) {\n this.popupView.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.popupView.resetWidth(w);\n }\n});\n\nBI.MultiSelectNoBarPopupView.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiSelectNoBarPopupView.EVENT_CLICK_CONFIRM = \"EVENT_CLICK_CONFIRM\";\nBI.MultiSelectNoBarPopupView.EVENT_CLICK_CLEAR = \"EVENT_CLICK_CLEAR\";\n\n\nBI.shortcut(\"bi.multi_select_no_bar_popup_view\", BI.MultiSelectNoBarPopupView);/**\n *\n * 复选下拉框\n * @class BI.MultiSelectTrigger\n * @extends BI.Trigger\n */\n\nBI.MultiSelectTrigger = BI.inherit(BI.Trigger, {\n\n constants: {\n height: 14,\n rgap: 4,\n lgap: 4\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-trigger bi-border bi-border-radius\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n searcher: {},\n switcher: {},\n\n adapter: null,\n masker: {},\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.MultiSelectTrigger.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n if (o.height) {\n this.setHeight(o.height - 2);\n }\n\n this.searcher = BI.createWidget(o.searcher, {\n type: \"bi.multi_select_searcher\",\n height: o.height,\n text: o.text,\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n watermark: o.watermark,\n popup: {},\n adapter: o.adapter,\n masker: o.masker,\n value: o.value\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {\n self.fireEvent(BI.MultiSelectTrigger.EVENT_START);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_PAUSE, function () {\n self.fireEvent(BI.MultiSelectTrigger.EVENT_PAUSE);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_SEARCHING, function () {\n self.fireEvent(BI.MultiSelectTrigger.EVENT_SEARCHING, arguments);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_STOP, function () {\n self.fireEvent(BI.MultiSelectTrigger.EVENT_STOP);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectTrigger.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiSelectTrigger.EVENT_BLUR);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiSelectTrigger.EVENT_FOCUS);\n });\n\n this.wrapNumberCounter = BI.createWidget({\n type: \"bi.layout\"\n });\n\n this.wrapper = BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [\n {\n el: this.searcher,\n width: \"fill\"\n }, {\n el: this.wrapNumberCounter,\n width: 0\n }, {\n el: BI.createWidget(),\n width: 24\n }]\n });\n\n !o.allowEdit && BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.layout\"\n },\n left: 0,\n right: 24,\n top: 0,\n bottom: 0\n }]\n });\n },\n\n /**\n * 重新调整numberCounter的空白占位符\n */\n refreshPlaceHolderWidth: function(width) {\n this.wrapper.attr(\"items\")[1].width = width;\n this.wrapper.resize();\n },\n\n getSearcher: function () {\n return this.searcher;\n },\n\n stopEditing: function () {\n this.searcher.stopSearch();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n setValue: function (ob) {\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.searcher.getKey();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n }\n});\n\nBI.MultiSelectTrigger.EVENT_TRIGGER_CLICK = \"EVENT_TRIGGER_CLICK\";\nBI.MultiSelectTrigger.EVENT_COUNTER_CLICK = \"EVENT_COUNTER_CLICK\";\nBI.MultiSelectTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiSelectTrigger.EVENT_START = \"EVENT_START\";\nBI.MultiSelectTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiSelectTrigger.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.MultiSelectTrigger.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW = \"EVENT_BEFORE_COUNTER_POPUPVIEW\";\nBI.MultiSelectTrigger.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiSelectTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\n\nBI.shortcut(\"bi.multi_select_trigger\", BI.MultiSelectTrigger);/**\n *\n * 在搜索框中输入文本弹出的面板\n * @class BI.MultiSelectSearchInsertPane\n * @extends Widget\n */\n\nBI.MultiSelectSearchInsertPane = BI.inherit(BI.Widget, {\n\n constants: {\n height: 24,\n lgap: 10,\n tgap: 5\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectSearchInsertPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-search-pane bi-card\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n keywordGetter: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectSearchInsertPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.tooltipClick = BI.createWidget({\n type: \"bi.label\",\n invisible: true,\n text: BI.i18nText(\"BI-Click_Blank_To_Select\"),\n cls: \"multi-select-toolbar\",\n height: this.constants.height\n });\n\n this.addNotMatchTip = BI.createWidget({\n type: \"bi.text_button\",\n invisible: true,\n text: BI.i18nText(\"BI-Basic_Click_To_Add_Text\", \"\"),\n height: this.constants.height,\n cls: \"bi-high-light\",\n hgap: 5,\n handler: function () {\n self.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter());\n }\n });\n\n this.loader = BI.createWidget({\n type: \"bi.multi_select_search_loader\",\n keywordGetter: o.keywordGetter,\n valueFormatter: o.valueFormatter,\n itemsCreator: function (op, callback) {\n o.itemsCreator.apply(self, [op, function (res) {\n callback(res);\n self.setKeyword(o.keywordGetter());\n }]);\n },\n value: o.value\n });\n this.loader.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.resizer = BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n type: \"bi.vertical\",\n items: [this.tooltipClick, this.addNotMatchTip],\n height: this.constants.height\n }, {\n el: this.loader\n }]\n });\n },\n\n setKeyword: function (keyword) {\n var btn;\n var isMatchTipVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === btn.getValue());\n this.tooltipClick.setVisible(isMatchTipVisible);\n this.addNotMatchTip.setVisible(!isMatchTipVisible);\n !isMatchTipVisible && this.addNotMatchTip.setText(BI.i18nText(\"BI-Basic_Click_To_Add_Text\", keyword));\n },\n\n isAllSelected: function () {\n return this.loader.isAllSelected();\n },\n\n hasMatched: function () {\n return this.tooltipClick.isVisible();\n },\n\n setValue: function (v) {\n this.loader.setValue(v);\n },\n\n getValue: function () {\n return this.loader.getValue();\n },\n\n empty: function () {\n this.loader.empty();\n },\n\n populate: function (items) {\n this.loader.populate.apply(this.loader, arguments);\n }\n});\n\nBI.MultiSelectSearchInsertPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\n\nBI.shortcut(\"bi.multi_select_search_insert_pane\", BI.MultiSelectSearchInsertPane);/**\n * 多选加载数据搜索loader面板\n * Created by guy on 15/11/4.\n * @class BI.MultiSelectSearchLoader\n * @extends Widget\n */\nBI.MultiSelectSearchLoader = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectSearchLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-search-loader\",\n itemsCreator: BI.emptyFn,\n keywordGetter: BI.emptyFn,\n valueFormatter: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectSearchLoader.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n var hasNext = false;\n this.storeValue = BI.deepClone(opts.value);\n this.button_group = BI.createWidget({\n type: \"bi.select_list\",\n toolbar: {\n type: \"bi.multi_select_bar\",\n cls: \"bi-list-item-active\",\n iconWrapperWidth: 36\n },\n element: this,\n logic: {\n dynamic: false\n },\n value: opts.value,\n el: {\n tipText: BI.i18nText(\"BI-No_Select\"),\n el: {\n type: \"bi.loader\",\n isDefaultInit: false,\n logic: {\n dynamic: true,\n scrolly: true\n },\n el: {\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n }\n },\n itemsCreator: function (op, callback) {\n self.storeValue && (op = BI.extend(op || {}, {\n selectedValues: self.storeValue.value\n }));\n opts.itemsCreator(op, function (ob) {\n var keyword = ob.keyword = opts.keywordGetter();\n hasNext = ob.hasNext;\n var firstItems = [];\n if (op.times === 1 && self.storeValue) {\n var json = self._filterValues(self.storeValue);\n firstItems = self._createItems(json);\n }\n callback(firstItems.concat(self._createItems(ob.items)), keyword);\n if (op.times === 1 && self.storeValue) {\n self.setValue(self.storeValue);\n }\n });\n },\n hasNext: function () {\n return hasNext;\n }\n });\n this.button_group.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.button_group.on(BI.SelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectSearchLoader.EVENT_CHANGE, arguments);\n });\n },\n\n _createItems: function (items) {\n return BI.createItems(items, {\n type: \"bi.multi_select_item\",\n logic: {\n dynamic: false\n },\n height: 24,\n selected: this.isAllSelected(),\n cls: \"bi-list-item-active\",\n iconWrapperWidth: 36\n });\n },\n\n isAllSelected: function () {\n return this.button_group.isAllSelected();\n },\n\n _filterValues: function (src) {\n var o = this.options;\n var keyword = o.keywordGetter();\n var values = BI.deepClone(src.value) || [];\n var newValues = BI.map(values, function (i, v) {\n return {\n text: o.valueFormatter(v) || v,\n value: v\n };\n });\n if (BI.isKey(keyword)) {\n var search = BI.Func.getSearchResult(newValues, keyword);\n values = search.match.concat(search.find);\n }\n return BI.map(values, function (i, v) {\n return {\n text: v.text,\n title: v.text,\n value: v.value,\n selected: src.type === BI.Selection.All\n };\n });\n },\n\n setValue: function (v) {\n // 暂存的值一定是新的值,不然v改掉后,storeValue也跟着改了\n this.storeValue = BI.deepClone(v);\n this.button_group.setValue(v);\n },\n\n getValue: function () {\n return this.button_group.getValue();\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n populate: function (items) {\n this.button_group.populate.apply(this.button_group, arguments);\n },\n\n resetHeight: function (h) {\n this.button_group.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.button_group.resetWidth(w);\n }\n});\n\nBI.MultiSelectSearchLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_search_loader\", BI.MultiSelectSearchLoader);/**\n *\n * 在搜索框中输入文本弹出的面板\n * @class BI.MultiSelectSearchPane\n * @extends Widget\n */\n\nBI.MultiSelectSearchPane = BI.inherit(BI.Widget, {\n\n constants: {\n height: 24,\n lgap: 10,\n tgap: 5\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectSearchPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-search-pane bi-card\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n keywordGetter: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectSearchPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.tooltipClick = BI.createWidget({\n type: \"bi.label\",\n invisible: true,\n text: BI.i18nText(\"BI-Click_Blank_To_Select\"),\n cls: \"multi-select-toolbar\",\n height: this.constants.height\n });\n\n this.loader = BI.createWidget({\n type: \"bi.multi_select_search_loader\",\n keywordGetter: o.keywordGetter,\n valueFormatter: o.valueFormatter,\n itemsCreator: function (op, callback) {\n o.itemsCreator.apply(self, [op, function (res) {\n callback(res);\n self.setKeyword(o.keywordGetter());\n }]);\n },\n value: o.value\n });\n this.loader.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.resizer = BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.tooltipClick,\n height: 0\n }, {\n el: this.loader\n }]\n });\n this.tooltipClick.setVisible(false);\n },\n\n setKeyword: function (keyword) {\n var btn;\n var isVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === btn.getValue());\n if (isVisible !== this.tooltipClick.isVisible()) {\n this.tooltipClick.setVisible(isVisible);\n this.resizer.attr(\"items\")[0].height = (isVisible ? this.constants.height : 0);\n this.resizer.resize();\n }\n },\n\n isAllSelected: function () {\n return this.loader.isAllSelected();\n },\n\n hasMatched: function () {\n return this.tooltipClick.isVisible();\n },\n\n setValue: function (v) {\n this.loader.setValue(v);\n },\n\n getValue: function () {\n return this.loader.getValue();\n },\n\n empty: function () {\n this.loader.empty();\n },\n\n populate: function (items) {\n this.loader.populate.apply(this.loader, arguments);\n }\n});\n\nBI.MultiSelectSearchPane.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.multi_select_search_pane\", BI.MultiSelectSearchPane);/**\n * 查看已选按钮\n * Created by guy on 15/11/3.\n * @class BI.MultiSelectCheckSelectedButton\n * @extends BI.Single\n */\nBI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectCheckSelectedButton.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-check-selected-button\",\n itemsCreator: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectCheckSelectedButton.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.numberCounter = BI.createWidget({\n type: \"bi.text_button\",\n element: this,\n hgap: 4,\n text: \"0\",\n textAlign: \"center\",\n textHeight: 16,\n cls: \"bi-high-light-background count-tip\"\n });\n this.numberCounter.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.numberCounter.on(BI.TextButton.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectCheckSelectedButton.EVENT_CHANGE, arguments);\n });\n\n this.numberCounter.element.hover(function () {\n self.numberCounter.setTag(self.numberCounter.getText());\n self.numberCounter.setText(BI.i18nText(\"BI-Check_Selected\"));\n }, function () {\n self.numberCounter.setText(self.numberCounter.getTag());\n });\n this.setVisible(false);\n if(BI.isNotNull(o.value)){\n this.setValue(o.value);\n }\n },\n\n _populate: function (ob) {\n var self = this, o = this.options;\n if (ob.type === BI.Selection.All) {\n o.itemsCreator({\n type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH\n }, function (res) {\n var length = res.count - ob.value.length;\n BI.nextTick(function () {\n self.numberCounter.setText(length);\n self.setVisible(length > 0);\n });\n });\n return;\n }\n BI.nextTick(function () {\n self.numberCounter.setText(ob.value.length);\n self.setVisible(ob.value.length > 0);\n });\n },\n\n _assertValue: function (ob) {\n ob || (ob = {});\n ob.type || (ob.type = BI.Selection.Multi);\n ob.value || (ob.value = []);\n return ob;\n },\n\n setValue: function (ob) {\n ob = this._assertValue(ob);\n this.options.value = ob;\n this._populate(ob);\n },\n\n populate: function () {\n this._populate(this._assertValue(this.options.value));\n },\n\n getValue: function () {\n\n }\n});\n\nBI.MultiSelectCheckSelectedButton.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_check_selected_button\", BI.MultiSelectCheckSelectedButton);/**\n * 多选输入框\n * Created by guy on 15/11/3.\n * @class BI.MultiSelectEditor\n * @extends Widget\n */\nBI.MultiSelectEditor = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectEditor.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-editor\",\n el: {},\n watermark: BI.i18nText(\"BI-Basic_Search\")\n });\n },\n\n _init: function () {\n BI.MultiSelectEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget(o.el, {\n type: \"bi.state_editor\",\n element: this,\n height: o.height,\n watermark: o.watermark,\n allowBlank: true,\n value: o.value,\n defaultText: o.text,\n text: o.text,\n tipType: o.tipType,\n warningTitle: o.warningTitle,\n });\n\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.editor.on(BI.StateEditor.EVENT_PAUSE, function () {\n self.fireEvent(BI.MultiSelectEditor.EVENT_PAUSE);\n });\n this.editor.on(BI.StateEditor.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiSelectEditor.EVENT_FOCUS);\n });\n this.editor.on(BI.StateEditor.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiSelectEditor.EVENT_BLUR);\n });\n },\n\n focus: function () {\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n },\n\n setState: function (state) {\n this.editor.setState(state);\n },\n\n setValue: function (v) {\n this.editor.setValue(v);\n },\n\n setTipType: function (v) {\n this.editor.setTipType(v);\n },\n\n getValue: function () {\n var v = this.editor.getState();\n if (BI.isArray(v) && v.length > 0) {\n return v[v.length - 1];\n }\n return \"\";\n\n },\n\n getKeywords: function () {\n var val = this.editor.getLastChangedValue();\n var keywords = val.match(/[\\S]+/g);\n if (BI.isEndWithBlank(val)) {\n return keywords.concat([\" \"]);\n }\n return keywords;\n },\n\n populate: function (items) {\n\n }\n});\n\nBI.MultiSelectEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiSelectEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiSelectEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.shortcut(\"bi.multi_select_editor\", BI.MultiSelectEditor);\n/**\n * searcher\n * Created by guy on 15/11/3.\n * @class BI.MultiSelectInsertSearcher\n * @extends Widget\n */\nBI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectInsertSearcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-searcher\",\n itemsCreator: BI.emptyFn,\n el: {},\n popup: {},\n valueFormatter: BI.emptyFn,\n adapter: null,\n masker: {},\n text: BI.i18nText(\"BI-Basic_Please_Select\")\n });\n },\n\n _init: function () {\n BI.MultiSelectInsertSearcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget(o.el, {\n type: \"bi.multi_select_editor\",\n watermark: o.watermark,\n height: o.height,\n text: o.text,\n listeners: [{\n eventName: BI.MultiSelectEditor.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiSelectEditor.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_BLUR);\n }\n }]\n });\n\n this.searcher = BI.createWidget({\n type: \"bi.searcher\",\n element: this,\n height: o.height,\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n el: this.editor,\n\n popup: BI.extend({\n type: \"bi.multi_select_search_insert_pane\",\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.editor.getValue();\n },\n itemsCreator: function (op, callback) {\n var keyword = self.editor.getValue();\n op.keywords = [keyword];\n this.setKeyword(keyword);\n o.itemsCreator(op, callback);\n },\n value: o.value,\n listeners: [{\n eventName: BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,\n action: function () {\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM);\n }\n }]\n }, o.popup),\n\n adapter: o.adapter,\n masker: o.masker\n });\n this.searcher.on(BI.Searcher.EVENT_START, function () {\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_START);\n });\n this.searcher.on(BI.Searcher.EVENT_PAUSE, function () {\n if (this.hasMatched()) {\n\n }\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_PAUSE);\n });\n this.searcher.on(BI.Searcher.EVENT_STOP, function () {\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_STOP);\n });\n this.searcher.on(BI.Searcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.Searcher.EVENT_SEARCHING, function () {\n var keywords = this.getKeywords();\n self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_SEARCHING, keywords);\n });\n if (BI.isNotNull(o.value)) {\n this.setState(o.value);\n }\n },\n\n adjustView: function () {\n this.searcher.adjustView();\n },\n\n isSearching: function () {\n return this.searcher.isSearching();\n },\n\n stopSearch: function () {\n this.searcher.stopSearch();\n },\n\n getKeyword: function () {\n return this.editor.getValue();\n },\n\n hasMatched: function () {\n return this.searcher.hasMatched();\n },\n\n hasChecked: function () {\n return this.searcher.getView() && this.searcher.getView().hasChecked();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n setState: function (ob) {\n var o = this.options;\n ob || (ob = {});\n ob.value || (ob.value = []);\n if (ob.type === BI.Selection.All) {\n if (ob.value.length === 0) {\n this.editor.setState(BI.Selection.All);\n } else if (BI.size(ob.assist) <= 20) {\n var state = \"\";\n BI.each(ob.assist, function (i, v) {\n if (i === 0) {\n state += \"\" + (o.valueFormatter(v + \"\") || v);\n } else {\n state += \",\" + (o.valueFormatter(v + \"\") || v);\n }\n });\n this.editor.setState(state);\n } else {\n this.editor.setState(BI.Selection.Multi);\n }\n } else {\n if (ob.value.length === 0) {\n this.editor.setState(BI.Selection.None);\n } else if (BI.size(ob.value) <= 20) {\n var state = \"\";\n BI.each(ob.value, function (i, v) {\n if (i === 0) {\n state += \"\" + (o.valueFormatter(v + \"\") || v);\n } else {\n state += \",\" + (o.valueFormatter(v + \"\") || v);\n }\n });\n this.editor.setState(state);\n } else {\n this.editor.setState(BI.Selection.Multi);\n }\n }\n },\n\n setValue: function (ob) {\n this.setState(ob);\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n },\n\n populate: function (items) {\n this.searcher.populate.apply(this.searcher, arguments);\n }\n});\n\nBI.MultiSelectInsertSearcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.MultiSelectInsertSearcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiSelectInsertSearcher.EVENT_START = \"EVENT_START\";\nBI.MultiSelectInsertSearcher.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiSelectInsertSearcher.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.MultiSelectInsertSearcher.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiSelectInsertSearcher.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\nBI.MultiSelectInsertSearcher.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiSelectInsertSearcher.EVENT_BLUR = \"EVENT_BLUR\";\nBI.shortcut(\"bi.multi_select_insert_searcher\", BI.MultiSelectInsertSearcher);/**\n * searcher\n * Created by guy on 15/11/3.\n * @class BI.MultiSelectSearcher\n * @extends Widget\n */\nBI.MultiSelectSearcher = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectSearcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-searcher\",\n itemsCreator: BI.emptyFn,\n el: {},\n popup: {},\n valueFormatter: BI.emptyFn,\n adapter: null,\n masker: {},\n text: BI.i18nText(\"BI-Basic_Please_Select\")\n });\n },\n\n _init: function () {\n BI.MultiSelectSearcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget(o.el, {\n type: \"bi.multi_select_editor\",\n height: o.height,\n text: o.text,\n watermark: o.watermark,\n listeners: [{\n eventName: BI.MultiSelectEditor.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.MultiSelectSearcher.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiSelectEditor.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.MultiSelectSearcher.EVENT_BLUR);\n }\n }]\n });\n\n this.searcher = BI.createWidget({\n type: \"bi.searcher\",\n element: this,\n height: o.height,\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n el: this.editor,\n\n popup: BI.extend({\n type: \"bi.multi_select_search_pane\",\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.editor.getValue();\n },\n itemsCreator: function (op, callback) {\n var keyword = self.editor.getValue();\n op.keywords = [keyword];\n this.setKeyword(keyword);\n o.itemsCreator(op, callback);\n },\n value: o.value\n }, o.popup),\n\n adapter: o.adapter,\n masker: o.masker\n });\n this.searcher.on(BI.Searcher.EVENT_START, function () {\n self.fireEvent(BI.MultiSelectSearcher.EVENT_START);\n });\n this.searcher.on(BI.Searcher.EVENT_PAUSE, function () {\n if (this.hasMatched()) {\n\n }\n self.fireEvent(BI.MultiSelectSearcher.EVENT_PAUSE);\n });\n this.searcher.on(BI.Searcher.EVENT_STOP, function () {\n self.fireEvent(BI.MultiSelectSearcher.EVENT_STOP);\n });\n this.searcher.on(BI.Searcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectSearcher.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.Searcher.EVENT_SEARCHING, function () {\n var keywords = this.getKeywords();\n self.fireEvent(BI.MultiSelectSearcher.EVENT_SEARCHING, keywords);\n });\n if (BI.isNotNull(o.value)) {\n this.setState(o.value);\n }\n },\n\n adjustView: function () {\n this.searcher.adjustView();\n },\n\n isSearching: function () {\n return this.searcher.isSearching();\n },\n\n stopSearch: function () {\n this.searcher.stopSearch();\n },\n\n getKeyword: function () {\n return this.editor.getValue();\n },\n\n hasMatched: function () {\n return this.searcher.hasMatched();\n },\n\n hasChecked: function () {\n return this.searcher.getView() && this.searcher.getView().hasChecked();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n setState: function (ob) {\n var o = this.options;\n ob || (ob = {});\n ob.value || (ob.value = []);\n if (ob.type === BI.Selection.All) {\n if (ob.value.length === 0) {\n this.editor.setState(BI.Selection.All);\n } else if (BI.size(ob.assist) <= 20) {\n var state = \"\";\n BI.each(ob.assist, function (i, v) {\n if (i === 0) {\n state += \"\" + (o.valueFormatter(v + \"\") || v);\n } else {\n state += \",\" + (o.valueFormatter(v + \"\") || v);\n }\n });\n this.editor.setState(state);\n } else {\n this.editor.setState(BI.Selection.Multi);\n }\n } else {\n if (ob.value.length === 0) {\n this.editor.setState(BI.Selection.None);\n } else if (BI.size(ob.value) <= 20) {\n var state = \"\";\n BI.each(ob.value, function (i, v) {\n if (i === 0) {\n state += \"\" + (o.valueFormatter(v + \"\") || v);\n } else {\n state += \",\" + (o.valueFormatter(v + \"\") || v);\n }\n });\n this.editor.setState(state);\n } else {\n this.editor.setState(BI.Selection.Multi);\n }\n }\n },\n\n setValue: function (ob) {\n this.setState(ob);\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n },\n\n populate: function (items) {\n this.searcher.populate.apply(this.searcher, arguments);\n }\n});\n\nBI.MultiSelectSearcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.MultiSelectSearcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiSelectSearcher.EVENT_START = \"EVENT_START\";\nBI.MultiSelectSearcher.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiSelectSearcher.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.MultiSelectSearcher.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiSelectSearcher.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiSelectSearcher.EVENT_BLUR = \"EVENT_BLUR\";\nBI.shortcut(\"bi.multi_select_searcher\", BI.MultiSelectSearcher);/**\n * 查看已选switcher\n * Created by guy on 15/11/3.\n * @class BI.MultiSelectCheckSelectedSwitcher\n * @extends Widget\n */\nBI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectCheckSelectedSwitcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-check-selected-switcher\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n el: {},\n popup: {},\n adapter: null,\n masker: {}\n });\n },\n\n _init: function () {\n BI.MultiSelectCheckSelectedSwitcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.button = BI.createWidget(o.el, {\n type: \"bi.multi_select_check_selected_button\",\n itemsCreator: o.itemsCreator,\n value: o.value\n });\n this.button.on(BI.Events.VIEW, function () {\n self.fireEvent(BI.Events.VIEW, arguments);\n });\n this.switcher = BI.createWidget({\n type: \"bi.switcher\",\n toggle: false,\n element: this,\n el: this.button,\n popup: BI.extend({\n type: \"bi.multi_select_check_pane\",\n valueFormatter: o.valueFormatter,\n itemsCreator: o.itemsCreator,\n onClickContinueSelect: function () {\n self.switcher.hideView();\n },\n ref: function (_ref) {\n self.checkPane = _ref;\n },\n value: o.value\n }, o.popup),\n adapter: o.adapter,\n masker: o.masker\n });\n this.switcher.on(BI.Switcher.EVENT_TRIGGER_CHANGE, function () {\n self.fireEvent(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE);\n });\n this.switcher.on(BI.Switcher.EVENT_BEFORE_POPUPVIEW, function () {\n self.fireEvent(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW);\n });\n this.switcher.on(BI.Switcher.EVENT_AFTER_POPUPVIEW, function () {\n var me = this;\n BI.nextTick(function () {\n me.populate();\n });\n });\n },\n\n adjustView: function () {\n this.switcher.adjustView();\n },\n\n hideView: function () {\n this.switcher.empty();\n this.switcher.hideView();\n },\n\n setAdapter: function (adapter) {\n this.switcher.setAdapter(adapter);\n },\n\n setValue: function (v) {\n this.switcher.setValue(v);\n },\n\n // 与setValue的区别是只更新查看已选面板的的selectedValue, 不会更新按钮的计数\n updateSelectedValue: function (v) {\n this.checkPane.setValue(v);\n },\n\n setButtonChecked: function (v) {\n this.button.setValue(v);\n },\n\n getValue: function () {\n\n },\n\n populate: function (items) {\n this.switcher.populate.apply(this.switcher, arguments);\n }\n});\n\nBI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE = \"EVENT_TRIGGER_CHANGE\";\nBI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.multi_select_check_selected_switcher\", BI.MultiSelectCheckSelectedSwitcher);/**\n * Created by zcf_1 on 2017/5/2.\n */\nBI.MultiSelectInsertList = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectInsertList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-insert-list\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn\n });\n },\n _init: function () {\n BI.MultiSelectInsertList.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n this.storeValue = o.value || {};\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n // self.trigger.setValue(self.storeValue);\n };\n\n this.adapter = BI.createWidget({\n type: \"bi.multi_select_loader\",\n cls: \"popup-multi-select-list bi-border-left bi-border-right bi-border-bottom\",\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n logic: {\n dynamic: true\n },\n // onLoaded: o.onLoaded,\n el: {},\n value: o.value\n });\n this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE, function () {\n self.storeValue = this.getValue();\n assertShowValue();\n self.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE);\n });\n\n this.searcherPane = BI.createWidget({\n type: \"bi.multi_select_search_insert_pane\",\n cls: \"bi-border-left bi-border-right bi-border-bottom\",\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.trigger.getKeyword();\n },\n itemsCreator: function (op, callback) {\n op.keywords = [self.trigger.getKeyword()];\n this.setKeyword(op.keywords[0]);\n o.itemsCreator(op, callback);\n },\n listeners: [{\n eventName: BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,\n action: function () {\n var keyword = self.trigger.getKeyword();\n if (!self.trigger.hasMatched()) {\n if (self.storeValue.type === BI.Selection.Multi) {\n BI.pushDistinct(self.storeValue.value, keyword);\n }\n self._showAdapter();\n self.adapter.setValue(self.storeValue);\n self.adapter.populate();\n if (self.storeValue.type === BI.Selection.Multi) {\n self.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE);\n }\n }\n }\n }]\n });\n this.searcherPane.setVisible(false);\n\n this.trigger = BI.createWidget({\n type: \"bi.searcher\",\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n adapter: this.adapter,\n popup: this.searcherPane,\n height: 200,\n masker: false,\n listeners: [{\n eventName: BI.Searcher.EVENT_START,\n action: function () {\n self._showSearcherPane();\n self._setStartValue(\"\");\n this.setValue(BI.deepClone(self.storeValue));\n }\n }, {\n eventName: BI.Searcher.EVENT_STOP,\n action: function () {\n self._showAdapter();\n self._setStartValue(\"\");\n self.adapter.setValue(self.storeValue);\n // 需要刷新回到初始界面,否则搜索的结果不能放在最前面\n self.adapter.populate();\n }\n }, {\n eventName: BI.Searcher.EVENT_PAUSE,\n action: function () {\n var keyword = this.getKeyword();\n if (this.hasMatched()) {\n self._join({\n type: BI.Selection.Multi,\n value: [keyword]\n }, function () {\n if (self.storeValue.type === BI.Selection.Multi) {\n BI.pushDistinct(self.storeValue.value, keyword);\n }\n self._showAdapter();\n self.adapter.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue(\"\");\n self.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE);\n });\n }\n self._showAdapter();\n }\n }, {\n eventName: BI.Searcher.EVENT_SEARCHING,\n action: function () {\n var keywords = this.getKeywords();\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue(\"\");\n } else {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n }\n self.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE);\n });\n }\n }\n }, {\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n self.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE);\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n self.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE);\n });\n }\n }\n }],\n value: o.value\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.trigger,\n height: 24\n }, {\n el: this.adapter,\n height: \"fill\"\n }]\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.searcherPane,\n top: 30,\n bottom: 0,\n left: 0,\n right: 0\n }]\n });\n },\n\n _showAdapter: function () {\n this.adapter.setVisible(true);\n this.searcherPane.setVisible(false);\n },\n\n _showSearcherPane: function () {\n this.searcherPane.setVisible(true);\n this.adapter.setVisible(false);\n },\n\n _defaultState: function () {\n this.trigger.stopEditing();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n // 和复选下拉框同步,allData做缓存是会爆炸的\n o.itemsCreator({\n type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n callback();\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n o.itemsCreator({\n type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA,\n keywords: [self.trigger.getKeyword()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n callback();\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n callback();\n });\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n callback();\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.adapter.setStartValue(value);\n },\n\n isAllSelected: function () {\n return this.adapter.isAllSelected();\n },\n\n resize: function () {\n // this.trigger.getCounter().adjustView();\n // this.trigger.adjustView();\n },\n setValue: function (v) {\n this.storeValue = v || {};\n this._assertValue(this.storeValue);\n this.adapter.setValue(this.storeValue);\n this.trigger.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue);\n },\n\n populate: function () {\n this.adapter.populate.apply(this.adapter, arguments);\n this.trigger.populate.apply(this.trigger, arguments);\n }\n});\n\nBI.extend(BI.MultiSelectInsertList, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.MultiSelectInsertList.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_insert_list\", BI.MultiSelectInsertList);/**\n * Created by zcf_1 on 2017/5/2.\n */\nBI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectInsertNoBarList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-insert-list\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn\n });\n },\n _init: function () {\n BI.MultiSelectInsertNoBarList.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n this.storeValue = {\n type: BI.Selection.Multi,\n value: o.value || []\n };\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n // self.trigger.setValue(self.storeValue);\n };\n\n this.adapter = BI.createWidget({\n type: \"bi.multi_select_no_bar_loader\",\n cls: \"popup-multi-select-list bi-border-left bi-border-right bi-border-bottom\",\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n logic: {\n dynamic: false\n },\n // onLoaded: o.onLoaded,\n el: {},\n value: {\n type: BI.Selection.Multi,\n value: o.value || []\n }\n });\n this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE, function () {\n self.storeValue = this.getValue();\n assertShowValue();\n self.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE);\n });\n\n this.searcherPane = BI.createWidget({\n type: \"bi.multi_select_search_insert_pane\",\n cls: \"bi-border-left bi-border-right bi-border-bottom\",\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.trigger.getKeyword();\n },\n itemsCreator: function (op, callback) {\n op.keywords = [self.trigger.getKeyword()];\n this.setKeyword(op.keywords[0]);\n o.itemsCreator(op, callback);\n },\n listeners: [{\n eventName: BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,\n action: function () {\n var keyword = self.trigger.getKeyword();\n if (!self.trigger.hasMatched()) {\n if (self.storeValue.type === BI.Selection.Multi) {\n BI.pushDistinct(self.storeValue.value, keyword);\n }\n self._showAdapter();\n self.adapter.setValue(self.storeValue);\n self.adapter.populate();\n if (self.storeValue.type === BI.Selection.Multi) {\n self.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE);\n }\n }\n }\n }]\n });\n this.searcherPane.setVisible(false);\n\n this.trigger = BI.createWidget({\n type: \"bi.searcher\",\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n adapter: this.adapter,\n popup: this.searcherPane,\n height: 200,\n masker: false,\n listeners: [{\n eventName: BI.Searcher.EVENT_START,\n action: function () {\n self._showSearcherPane();\n self._setStartValue(\"\");\n this.setValue(BI.deepClone(self.storeValue));\n }\n }, {\n eventName: BI.Searcher.EVENT_STOP,\n action: function () {\n self._showAdapter();\n self._setStartValue(\"\");\n self.adapter.setValue(self.storeValue);\n // 需要刷新回到初始界面,否则搜索的结果不能放在最前面\n self.adapter.populate();\n }\n }, {\n eventName: BI.Searcher.EVENT_PAUSE,\n action: function () {\n var keyword = this.getKeyword();\n if (this.hasMatched()) {\n self._join({\n type: BI.Selection.Multi,\n value: [keyword]\n }, function () {\n if (self.storeValue.type === BI.Selection.Multi) {\n BI.pushDistinct(self.storeValue.value, keyword);\n }\n self._showAdapter();\n self.adapter.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue(\"\");\n self.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE);\n });\n }\n }\n }, {\n eventName: BI.Searcher.EVENT_SEARCHING,\n action: function () {\n var keywords = this.getKeywords();\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue(\"\");\n } else {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n }\n self.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE);\n });\n }\n }\n }, {\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n self.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE);\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n self.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE);\n });\n }\n }\n }],\n value: {\n type: BI.Selection.Multi,\n value: o.value || []\n }\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.trigger,\n height: 24\n }, {\n el: this.adapter,\n height: \"fill\"\n }]\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.searcherPane,\n top: 30,\n bottom: 0,\n left: 0,\n right: 0\n }]\n });\n },\n\n _showAdapter: function () {\n this.adapter.setVisible(true);\n this.searcherPane.setVisible(false);\n },\n\n _showSearcherPane: function () {\n this.searcherPane.setVisible(true);\n this.adapter.setVisible(false);\n },\n\n _defaultState: function () {\n this.trigger.stopEditing();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n // 和复选下拉框同步,allData做缓存是会爆炸的\n o.itemsCreator({\n type: BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n callback();\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n o.itemsCreator({\n type: BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA,\n keywords: [self.trigger.getKeyword()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n callback();\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n callback();\n });\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n callback();\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.adapter.setStartValue(value);\n },\n\n isAllSelected: function () {\n return this.adapter.isAllSelected();\n },\n\n resize: function () {\n // this.trigger.getCounter().adjustView();\n // this.trigger.adjustView();\n },\n setValue: function (v) {\n this.storeValue = {\n type: BI.Selection.Multi,\n value: v || []\n };\n this.adapter.setValue(this.storeValue);\n this.trigger.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue.value);\n },\n\n populate: function () {\n this.adapter.populate.apply(this.adapter, arguments);\n this.trigger.populate.apply(this.trigger, arguments);\n }\n});\n\nBI.extend(BI.MultiSelectInsertNoBarList, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.MultiSelectInsertNoBarList.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_insert_no_bar_list\", BI.MultiSelectInsertNoBarList);/**\n * Created by zcf_1 on 2017/5/2.\n */\nBI.MultiSelectList = BI.inherit(BI.Widget, {\n _constant: {\n EDITOR_HEIGHT: 24\n },\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-list\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn\n });\n },\n _init: function () {\n BI.MultiSelectList.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n this.storeValue = {};\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n // self.trigger.setValue(self.storeValue);\n };\n\n this.adapter = BI.createWidget({\n type: \"bi.multi_select_loader\",\n cls: \"popup-multi-select-list bi-border-left bi-border-right bi-border-bottom\",\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n logic: {\n dynamic: false\n },\n // onLoaded: o.onLoaded,\n el: {}\n });\n this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE, function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n self.fireEvent(BI.MultiSelectList.EVENT_CHANGE);\n });\n });\n\n this.searcherPane = BI.createWidget({\n type: \"bi.multi_select_search_pane\",\n cls: \"bi-border-left bi-border-right bi-border-bottom\",\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.trigger.getKeyword();\n },\n itemsCreator: function (op, callback) {\n op.keywords = [self.trigger.getKeyword()];\n this.setKeyword(op.keywords[0]);\n o.itemsCreator(op, callback);\n }\n });\n this.searcherPane.setVisible(false);\n\n this.trigger = BI.createWidget({\n type: \"bi.searcher\",\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n adapter: this.adapter,\n popup: this.searcherPane,\n height: 200,\n masker: false,\n listeners: [{\n eventName: BI.Searcher.EVENT_START,\n action: function () {\n self._showSearcherPane();\n self._setStartValue(\"\");\n this.setValue(BI.deepClone(self.storeValue));\n }\n }, {\n eventName: BI.Searcher.EVENT_STOP,\n action: function () {\n self._showAdapter();\n self._setStartValue(\"\");\n self.adapter.setValue(self.storeValue);\n // 需要刷新回到初始界面,否则搜索的结果不能放在最前面\n self.adapter.populate();\n }\n }, {\n eventName: BI.Searcher.EVENT_PAUSE,\n action: function () {\n var keyword = this.getKeyword();\n if (this.hasMatched()) {\n self._join({\n type: BI.Selection.Multi,\n value: [keyword]\n }, function () {\n self._showAdapter();\n self.adapter.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue(\"\");\n self.fireEvent(BI.MultiSelectList.EVENT_CHANGE);\n });\n }\n }\n }, {\n eventName: BI.Searcher.EVENT_SEARCHING,\n action: function () {\n var keywords = this.getKeyword();\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue(\"\");\n } else {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n }\n self.fireEvent(BI.MultiSelectList.EVENT_CHANGE);\n });\n }\n }\n }, {\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n self.fireEvent(BI.MultiSelectList.EVENT_CHANGE);\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n self.fireEvent(BI.MultiSelectList.EVENT_CHANGE);\n });\n }\n }\n }]\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.trigger,\n height: this._constant.EDITOR_HEIGHT\n }, {\n el: this.adapter,\n height: \"fill\"\n }]\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.searcherPane,\n top: this._constant.EDITOR_HEIGHT,\n bottom: 0,\n left: 0,\n right: 0\n }]\n });\n },\n\n _showAdapter: function () {\n this.adapter.setVisible(true);\n this.searcherPane.setVisible(false);\n },\n\n _showSearcherPane: function () {\n this.searcherPane.setVisible(true);\n this.adapter.setVisible(false);\n },\n\n _defaultState: function () {\n this.trigger.stopEditing();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n // 和复选下拉框同步,allData做缓存是会爆炸的\n o.itemsCreator({\n type: BI.MultiSelectList.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n o.itemsCreator({\n type: BI.MultiSelectList.REQ_GET_ALL_DATA,\n keywords: [this.trigger.getKey()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n self._adjust(callback);\n });\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n if (!this._count) {\n o.itemsCreator({\n type: BI.MultiSelectList.REQ_GET_DATA_LENGTH\n }, function (res) {\n self._count = res.count;\n adjust();\n callback();\n });\n } else {\n adjust();\n callback();\n }\n\n function adjust () {\n if (self.storeValue.type === BI.Selection.All && self.storeValue.value.length >= self._count) {\n self.storeValue = {\n type: BI.Selection.Multi,\n value: []\n };\n } else if (self.storeValue.type === BI.Selection.Multi && self.storeValue.value.length >= self._count) {\n self.storeValue = {\n type: BI.Selection.All,\n value: []\n };\n }\n }\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.adapter.setStartValue(value);\n },\n\n isAllSelected: function () {\n return this.adapter.isAllSelected();\n },\n\n resize: function () {\n // this.trigger.getCounter().adjustView();\n // this.trigger.adjustView();\n },\n setValue: function (v) {\n this.storeValue = v || {};\n this._assertValue(this.storeValue);\n this.adapter.setValue(this.storeValue);\n this.trigger.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue);\n },\n\n populate: function () {\n this.adapter.populate.apply(this.adapter, arguments);\n this.trigger.populate.apply(this.trigger, arguments);\n }\n});\n\nBI.extend(BI.MultiSelectList, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.MultiSelectList.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_list\", BI.MultiSelectList);/**\n * Created by zcf_1 on 2017/5/11.\n */\nBI.MultiSelectTree = BI.inherit(BI.Single, {\n _constant: {\n EDITOR_HEIGHT: 24\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-tree\",\n itemsCreator: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiSelectTree.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.storeValue = {value: {}};\n\n this.adapter = BI.createWidget({\n type: \"bi.multi_select_tree_popup\",\n itemsCreator: o.itemsCreator\n });\n this.adapter.on(BI.MultiSelectTreePopup.EVENT_CHANGE, function () {\n if (self.searcher.isSearching()) {\n self.storeValue = {value: self.searcherPane.getValue()};\n } else {\n self.storeValue = {value: self.adapter.getValue()};\n }\n self.setSelectedValue(self.storeValue.value);\n self.fireEvent(BI.MultiSelectTree.EVENT_CHANGE);\n });\n\n // 搜索中的时候用的是parttree,同adapter中的synctree不一样\n this.searcherPane = BI.createWidget({\n type: \"bi.multi_tree_search_pane\",\n cls: \"bi-border-left bi-border-right bi-border-bottom\",\n keywordGetter: function () {\n return self.searcher.getKeyword();\n },\n itemsCreator: function (op, callback) {\n op.keyword = self.searcher.getKeyword();\n o.itemsCreator(op, callback);\n }\n });\n this.searcherPane.setVisible(false);\n\n this.searcher = BI.createWidget({\n type: \"bi.searcher\",\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback({\n keyword: self.searcher.getKeyword()\n });\n },\n adapter: this.adapter,\n popup: this.searcherPane,\n masker: false,\n listeners: [{\n eventName: BI.Searcher.EVENT_START,\n action: function () {\n self._showSearcherPane();\n // self.storeValue = {value: self.adapter.getValue()};\n // self.searcherPane.setSelectedValue(self.storeValue.value);\n }\n }, {\n eventName: BI.Searcher.EVENT_STOP,\n action: function () {\n self._showAdapter();\n // self.storeValue = {value: self.searcherPane.getValue()};\n // self.adapter.setSelectedValue(self.storeValue.value);\n BI.nextTick(function () {\n self.adapter.populate();\n });\n }\n }, {\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function () {\n if (self.searcher.isSearching()) {\n self.storeValue = {value: self.searcherPane.getValue()};\n } else {\n self.storeValue = {value: self.adapter.getValue()};\n }\n self.setSelectedValue(self.storeValue.value);\n self.fireEvent(BI.MultiSelectTree.EVENT_CHANGE);\n }\n }, {\n eventName: BI.Searcher.EVENT_PAUSE,\n action: function () {\n self._showAdapter();\n }\n }]\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.searcher,\n height: this._constant.EDITOR_HEIGHT\n }, {\n el: this.adapter,\n height: \"fill\"\n }]\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.searcherPane,\n top: this._constant.EDITOR_HEIGHT,\n bottom: 0,\n left: 0,\n right: 0\n }]\n });\n\n },\n\n _showAdapter: function () {\n this.adapter.setVisible(true);\n this.searcherPane.setVisible(false);\n },\n\n _showSearcherPane: function () {\n this.searcherPane.setVisible(true);\n this.adapter.setVisible(false);\n },\n\n resize: function () {\n\n },\n\n setSelectedValue: function (v) {\n this.storeValue.value = v || {};\n this.adapter.setSelectedValue(v);\n this.searcherPane.setSelectedValue(v);\n this.searcher.setValue({\n value: v || {}\n });\n },\n\n setValue: function (v) {\n this.adapter.setValue(v);\n },\n\n stopSearch: function () {\n this.searcher.stopSearch();\n },\n\n updateValue: function (v) {\n this.adapter.updateValue(v);\n },\n\n getValue: function () {\n return this.storeValue.value;\n },\n\n populate: function () {\n this.searcher.populate.apply(this.searcher, arguments);\n this.adapter.populate.apply(this.adapter, arguments);\n }\n});\nBI.MultiSelectTree.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_tree\", BI.MultiSelectTree);/**\n * Created by zcf on 2016/12/21.\n */\nBI.MultiSelectTreePopup = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.MultiSelectTreePopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-tree-popup bi-border-left bi-border-right bi-border-bottom\",\n itemsCreator: BI.emptyFn\n });\n },\n _init: function () {\n BI.MultiSelectTreePopup.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.popup = BI.createWidget({\n type: \"bi.async_tree\",\n element: this,\n itemsCreator: o.itemsCreator\n });\n this.popup.on(BI.TreeView.EVENT_AFTERINIT, function () {\n self.fireEvent(BI.MultiSelectTreePopup.EVENT_AFTER_INIT);\n });\n this.popup.on(BI.TreeView.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectTreePopup.EVENT_CHANGE);\n });\n },\n\n hasChecked: function () {\n return this.popup.hasChecked();\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n setValue: function (v) {\n v || (v = {});\n this.popup.setValue(v);\n },\n\n setSelectedValue: function (v) {\n v || (v = {});\n this.popup.setSelectedValue(v);\n },\n\n updateValue: function (v) {\n this.popup.updateValue(v);\n this.popup.refresh();\n },\n\n populate: function (config) {\n this.popup.stroke(config);\n }\n\n});\nBI.MultiSelectTreePopup.EVENT_AFTER_INIT = \"EVENT_AFTER_INIT\";\nBI.MultiSelectTreePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_select_tree_popup\", BI.MultiSelectTreePopup);/**\n *\n * @class BI.MultiTreeCheckPane\n * @extends BI.Pane\n */\nBI.MultiTreeCheckPane = BI.inherit(BI.Pane, {\n\n constants: {\n height: 25,\n lgap: 10,\n tgap: 5\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreeCheckPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-check-pane bi-background\",\n onClickContinueSelect: BI.emptyFn,\n el: {\n type: \"bi.display_tree\"\n }\n });\n },\n\n _init: function () {\n BI.MultiTreeCheckPane.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n\n this.selectedValues = {};\n\n var continueSelect = BI.createWidget({\n type: \"bi.text_button\",\n text: BI.i18nText(\"BI-Continue_Select\"),\n cls: \"multi-tree-check-selected\"\n });\n continueSelect.on(BI.TextButton.EVENT_CHANGE, function () {\n opts.onClickContinueSelect();\n BI.nextTick(function () {\n self.empty();\n });\n });\n\n var backToPopup = BI.createWidget({\n type: \"bi.left\",\n cls: \"multi-tree-continue-select\",\n items: [\n {\n el: {\n type: \"bi.label\",\n text: BI.i18nText(\"BI-Selected_Data\")\n },\n lgap: this.constants.lgap,\n tgap: this.constants.tgap\n },\n {\n el: continueSelect,\n lgap: this.constants.lgap,\n tgap: this.constants.tgap\n }]\n });\n\n this.display = BI.createWidget(opts.el, {\n type: \"bi.display_tree\",\n cls: \"bi-multi-tree-display\",\n itemsCreator: function (op, callback) {\n op.type = BI.TreeView.REQ_TYPE_GET_SELECTED_DATA;\n opts.itemsCreator(op, callback);\n },\n value: (opts.value || {}).value\n });\n\n this.display.on(BI.Events.AFTERINIT, function () {\n self.fireEvent(BI.Events.AFTERINIT);\n });\n\n this.display.on(BI.TreeView.EVENT_INIT, function () {\n backToPopup.setVisible(false);\n });\n\n this.display.on(BI.TreeView.EVENT_AFTERINIT, function () {\n backToPopup.setVisible(true);\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n height: this.constants.height,\n el: backToPopup\n }, {\n height: \"fill\",\n el: this.display\n }]\n });\n\n },\n\n empty: function () {\n this.display.empty();\n },\n\n populate: function (configs) {\n this.display.stroke(configs);\n },\n\n setValue: function (v) {\n v || (v = {});\n this.display.setSelectedValue(v.value);\n },\n\n getValue: function () {\n\n }\n});\n\nBI.MultiTreeCheckPane.EVENT_CONTINUE_CLICK = \"EVENT_CONTINUE_CLICK\";\n\n\nBI.shortcut(\"bi.multi_tree_check_pane\", BI.MultiTreeCheckPane);/**\n *\n * @class BI.MultiTreeCombo\n * @extends BI.Single\n */\n\nBI.MultiTreeCombo = BI.inherit(BI.Single, {\n\n constants: {\n offset: {\n top: 0,\n left: 0,\n right: 0,\n bottom: 25\n }\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreeCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-combo\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.MultiTreeCombo.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n\n var isInit = false;\n var want2showCounter = false;\n\n this.storeValue = {value: o.value || {}};\n\n this.trigger = BI.createWidget({\n type: \"bi.multi_select_trigger\",\n allowEdit: o.allowEdit,\n height: o.height,\n valueFormatter: o.valueFormatter,\n text: o.text,\n watermark: o.watermark,\n // adapter: this.popup,\n masker: {\n offset: this.constants.offset\n },\n searcher: {\n type: \"bi.multi_tree_searcher\",\n itemsCreator: o.itemsCreator\n },\n value: {value: o.value || {}}\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: !o.allowEdit,\n container: o.container,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.multi_tree_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n self.numberCounter.setAdapter(this);\n },\n listeners: [{\n eventName: BI.MultiTreePopup.EVENT_AFTERINIT,\n action: function () {\n self.numberCounter.adjustView();\n isInit = true;\n if (want2showCounter === true) {\n showCounter();\n }\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CHANGE,\n action: function () {\n change = true;\n var val = {\n type: BI.Selection.Multi,\n value: this.hasChecked() ? this.getValue() : {}\n };\n self.trigger.getSearcher().setState(val);\n self.numberCounter.setButtonChecked(val);\n self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CLICK_CONFIRM,\n action: function () {\n self.combo.hideView();\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CLICK_CLEAR,\n action: function () {\n clear = true;\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: o.itemsCreator,\n onLoaded: function () {\n BI.nextTick(function () {\n self.numberCounter.adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: {value: o.value || {}},\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0 &&\n self.numberCounter.element.find(e.target).length === 0;\n }\n });\n\n var change = false;\n var clear = false; // 标识当前是否点击了清空\n\n var isSearching = function () {\n return self.trigger.getSearcher().isSearching();\n };\n\n var isPopupView = function () {\n return self.combo.isViewVisible();\n };\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiTreeCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiTreeCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {\n self.storeValue = {value: self.combo.getValue()};\n this.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP, function () {\n self.storeValue = {value: this.getValue()};\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n BI.nextTick(function () {\n if (isPopupView()) {\n self.combo.populate();\n }\n });\n self.fireEvent(BI.MultiTreeCombo.EVENT_STOP);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function () {\n self.fireEvent(BI.MultiTreeCombo.EVENT_SEARCHING);\n });\n\n function showCounter () {\n if (isSearching()) {\n self.storeValue = {value: self.trigger.getValue()};\n } else if (isPopupView()) {\n self.storeValue = {value: self.combo.getValue()};\n }\n self.trigger.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n }\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_TRIGGER_CLICK, function () {\n self.combo.toggle();\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE, function () {\n var checked = this.getSearcher().hasChecked();\n var val = {\n type: BI.Selection.Multi,\n value: checked ? {1: 1} : {}\n };\n this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None);\n self.numberCounter.setButtonChecked(val);\n self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM);\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n if (isSearching()) {\n return;\n }\n if (change === true) {\n self.storeValue = {value: self.combo.getValue()};\n change = false;\n }\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n self.populate();\n\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () {\n if (isSearching()) {\n self._stopEditing();\n self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);\n } else {\n if (isPopupView()) {\n self._stopEditing();\n self.storeValue = {value: self.combo.getValue()};\n if (clear === true) {\n self.storeValue = {value: {}};\n }\n self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);\n }\n }\n clear = false;\n change = false;\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.numberCounter.hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n this.numberCounter = BI.createWidget({\n type: \"bi.multi_select_check_selected_switcher\",\n el: {\n type: \"bi.multi_tree_check_selected_button\"\n },\n popup: {\n type: \"bi.multi_tree_check_pane\"\n },\n masker: {\n offset: this.constants.offset\n },\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n value: {value: o.value || {}}\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n if (want2showCounter === false) {\n want2showCounter = true;\n }\n if (isInit === true) {\n want2showCounter = null;\n showCounter();\n }\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n self.trigger.refreshPlaceHolderWidth((b === true ? self.numberCounter.element.outerWidth() + 8 : 0));\n });\n });\n\n this.trigger.element.click(function (e) {\n if (self.trigger.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.vertical_adapt\",\n items: [this.numberCounter]\n },\n right: o.height,\n top: 0,\n height: o.height,\n }]\n });\n },\n\n _stopEditing: function() {\n this.trigger.stopEditing();\n this.numberCounter.hideView();\n },\n\n _defaultState: function () {\n this._stopEditing();\n this.combo.hideView();\n },\n\n setValue: function (v) {\n this.storeValue.value = v || {};\n this.combo.setValue({\n value: v || {}\n });\n this.numberCounter.setValue({\n value: v || {}\n });\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue.value);\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.MultiTreeCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiTreeCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiTreeCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiTreeCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiTreeCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.MultiTreeCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.multi_tree_combo\", BI.MultiTreeCombo);/**\n * 可以往当前选中节点下添加新值的下拉树\n * @class BI.MultiTreeInsertCombo\n * @extends BI.Single\n */\n\nBI.MultiTreeInsertCombo = BI.inherit(BI.Single, {\n\n constants: {\n offset: {\n top: 0,\n left: 0,\n right: 0,\n bottom: 25\n }\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreeInsertCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-insert-combo\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.MultiTreeInsertCombo.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n\n var isInit = false;\n var want2showCounter = false;\n\n this.storeValue = {value: o.value || {}};\n\n this.trigger = BI.createWidget({\n type: \"bi.multi_select_trigger\",\n allowEdit: o.allowEdit,\n height: o.height,\n valueFormatter: o.valueFormatter,\n // adapter: this.popup,\n masker: {\n offset: this.constants.offset\n },\n searcher: {\n type: \"bi.multi_tree_searcher\",\n text: o.text,\n watermark: o.watermark,\n itemsCreator: o.itemsCreator,\n popup: {\n type: \"bi.multi_tree_search_insert_pane\",\n listeners: [{\n eventName: BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM,\n action: function () {\n self.storeValue.value[self.trigger.getSearcher().getKeyword()] = {};\n self._assertShowValue();\n // setValue以更新paras.value, 之后从search popup中拿到的就能有add的值了\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n self._stopEditing();\n }\n }]\n }\n },\n value: {value: o.value || {}}\n\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: !o.allowEdit,\n container: o.container,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.multi_tree_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n self.numberCounter.setAdapter(this);\n },\n listeners: [{\n eventName: BI.MultiTreePopup.EVENT_AFTERINIT,\n action: function () {\n self.numberCounter.adjustView();\n isInit = true;\n if (want2showCounter === true) {\n showCounter();\n }\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CHANGE,\n action: function () {\n change = true;\n var val = {\n type: BI.Selection.Multi,\n value: this.hasChecked() ? this.getValue() : {}\n };\n self.trigger.getSearcher().setState(val);\n self.numberCounter.setButtonChecked(val);\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, self.combo.getValue());\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CLICK_CONFIRM,\n action: function () {\n self.combo.hideView();\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CLICK_CLEAR,\n action: function () {\n clear = true;\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: o.itemsCreator,\n onLoaded: function () {\n BI.nextTick(function () {\n self.numberCounter.adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: {value: o.value || {}},\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0 &&\n self.numberCounter.element.find(e.target).length === 0;\n }\n });\n\n var change = false;\n var clear = false; // 标识当前是否点击了清空\n\n var isSearching = function () {\n return self.trigger.getSearcher().isSearching();\n };\n\n var isPopupView = function () {\n return self.combo.isViewVisible();\n };\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {\n self.storeValue = {value: self.combo.getValue()};\n this.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP, function () {\n self.storeValue = {value: this.getValue()};\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n BI.nextTick(function () {\n if (isPopupView()) {\n self.combo.populate();\n }\n });\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_STOP);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function () {\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_SEARCHING);\n });\n\n function showCounter () {\n if (isSearching()) {\n self.storeValue = {value: self.trigger.getValue()};\n } else if (isPopupView()) {\n self.storeValue = {value: self.combo.getValue()};\n }\n self.trigger.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n }\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_TRIGGER_CLICK, function () {\n self.combo.toggle();\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE, function () {\n var checked = this.getSearcher().hasChecked();\n var val = {\n type: BI.Selection.Multi,\n value: checked ? {1: 1} : {}\n };\n this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None);\n self.numberCounter.setButtonChecked(val);\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, self.combo.getValue());\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n if (isSearching()) {\n return;\n }\n if (change === true) {\n self.storeValue = {value: self.combo.getValue()};\n change = false;\n }\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n self.populate();\n\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () {\n if (isSearching()) {\n self._stopEditing();\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CONFIRM);\n } else {\n if (isPopupView()) {\n self._stopEditing();\n self.storeValue = {value: self.combo.getValue()};\n if (clear === true) {\n self.storeValue = {value: {}};\n }\n self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CONFIRM);\n }\n }\n clear = false;\n change = false;\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.numberCounter.hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n this.numberCounter = BI.createWidget({\n type: \"bi.multi_select_check_selected_switcher\",\n el: {\n type: \"bi.multi_tree_check_selected_button\"\n },\n popup: {\n type: \"bi.multi_tree_check_pane\"\n },\n itemsCreator: o.itemsCreator,\n masker: {\n offset: this.constants.offset\n },\n valueFormatter: o.valueFormatter,\n value: o.value\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n if (want2showCounter === false) {\n want2showCounter = true;\n }\n if (isInit === true) {\n want2showCounter = null;\n showCounter();\n }\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n self.trigger.refreshPlaceHolderWidth((b === true ? self.numberCounter.element.outerWidth() + 8 : 0));\n });\n });\n\n this.trigger.element.click(function (e) {\n if (self.trigger.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.vertical_adapt\",\n items: [this.numberCounter]\n },\n right: o.height,\n top: 0,\n height: o.height,\n }]\n });\n },\n\n _assertShowValue: function () {\n this.trigger.getSearcher().setState(this.storeValue);\n this.numberCounter.setButtonChecked(this.storeValue);\n },\n\n _stopEditing: function() {\n this.trigger.stopEditing();\n this.numberCounter.hideView();\n },\n\n _defaultState: function () {\n this._stopEditing();\n this.combo.hideView();\n },\n\n setValue: function (v) {\n this.storeValue.value = v || {};\n this.combo.setValue({\n value: v || {}\n });\n this.numberCounter.setValue({\n value: v || {}\n });\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue.value);\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.MultiTreeInsertCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiTreeInsertCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiTreeInsertCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiTreeInsertCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.MultiTreeInsertCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiTreeInsertCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.multi_tree_insert_combo\", BI.MultiTreeInsertCombo);/**\n * 选中节点不影响父子节点状态的下拉树\n * @class BI.MultiTreeListCombo\n * @extends BI.Single\n */\n\nBI.MultiTreeListCombo = BI.inherit(BI.Single, {\n\n constants: {\n offset: {\n top: 0,\n left: 0,\n right: 0,\n bottom: 25\n }\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreeListCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-list-combo\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n allowEdit: true,\n allowInsertValue: true\n });\n },\n\n _init: function () {\n BI.MultiTreeListCombo.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n\n var isInit = false;\n var want2showCounter = false;\n\n this.storeValue = {value: o.value || []};\n\n this.trigger = BI.createWidget({\n type: \"bi.multi_select_trigger\",\n allowEdit: o.allowEdit,\n text: o.text,\n watermark: o.watermark,\n height: o.height,\n valueFormatter: o.valueFormatter,\n // adapter: this.popup,\n masker: {\n offset: this.constants.offset\n },\n searcher: {\n type: \"bi.multi_list_tree_searcher\",\n itemsCreator: o.itemsCreator,\n popup: {\n type: o.allowInsertValue ? \"bi.multi_tree_search_insert_pane\" : \"bi.multi_tree_search_pane\",\n el: {\n type: \"bi.list_part_tree\"\n },\n listeners: [{\n eventName: BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM,\n action: function () {\n self.storeValue.value.unshift([self.trigger.getSearcher().getKeyword()]);\n self._assertShowValue();\n // setValue以更新paras.value, 之后从search popup中拿到的就能有add的值了\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n self._stopEditing();\n }\n }]\n }\n },\n switcher: {\n el: {\n type: \"bi.multi_tree_check_selected_button\"\n },\n popup: {\n type: \"bi.multi_tree_check_pane\",\n el: {\n type: \"bi.list_display_tree\"\n },\n itemsCreator: o.itemsCreator\n }\n },\n value: {value: o.value || {}}\n\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: !o.allowEdit,\n container: o.container,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.multi_tree_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n self.numberCounter.setAdapter(this);\n },\n el: {\n type: \"bi.list_async_tree\"\n },\n listeners: [{\n eventName: BI.MultiTreePopup.EVENT_AFTERINIT,\n action: function () {\n self.numberCounter.adjustView();\n isInit = true;\n if (want2showCounter === true) {\n showCounter();\n }\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CHANGE,\n action: function () {\n change = true;\n var val = {\n type: BI.Selection.Multi,\n value: this.hasChecked() ? this.getValue() : []\n };\n self.trigger.getSearcher().setState(val);\n self.numberCounter.setButtonChecked(val);\n self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM, self.combo.getValue());\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CLICK_CONFIRM,\n action: function () {\n self.combo.hideView();\n }\n }, {\n eventName: BI.MultiTreePopup.EVENT_CLICK_CLEAR,\n action: function () {\n clear = true;\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: o.itemsCreator,\n onLoaded: function () {\n BI.nextTick(function () {\n self.numberCounter.adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: {value: o.value || {}},\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0 &&\n self.numberCounter.element.find(e.target).length === 0;\n }\n });\n\n var change = false;\n var clear = false; // 标识当前是否点击了清空\n\n var isSearching = function () {\n return self.trigger.getSearcher().isSearching();\n };\n\n var isPopupView = function () {\n return self.combo.isViewVisible();\n };\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.MultiTreeListCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.MultiTreeListCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {\n self.storeValue = {value: self.combo.getValue()};\n this.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP, function () {\n self.storeValue = {value: this.getValue()};\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n BI.nextTick(function () {\n if (isPopupView()) {\n self.combo.populate();\n }\n });\n self.fireEvent(BI.MultiTreeListCombo.EVENT_STOP);\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function () {\n self.fireEvent(BI.MultiTreeListCombo.EVENT_SEARCHING);\n });\n\n function showCounter () {\n if (isSearching()) {\n self.storeValue = {value: self.trigger.getValue()};\n } else if (isPopupView()) {\n self.storeValue = {value: self.combo.getValue()};\n }\n self.trigger.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n }\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_TRIGGER_CLICK, function () {\n self.combo.toggle();\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE, function () {\n var checked = this.getSearcher().hasChecked();\n var val = {\n type: BI.Selection.Multi,\n value: checked ? {1: 1} : {}\n };\n this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None);\n self.numberCounter.setButtonChecked(val);\n self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM, self.combo.getValue());\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n if (isSearching()) {\n return;\n }\n if (change === true) {\n self.storeValue = {value: self.combo.getValue()};\n change = false;\n }\n self.combo.setValue(self.storeValue);\n self.numberCounter.setValue(self.storeValue);\n self.populate();\n\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () {\n if (isSearching()) {\n self.trigger.stopEditing();\n self.fireEvent(BI.MultiTreeListCombo.EVENT_CONFIRM);\n } else {\n if (isPopupView()) {\n self._stopEditing();\n self.storeValue = {value: self.combo.getValue()};\n if (clear === true) {\n self.storeValue = {value: []};\n }\n self.fireEvent(BI.MultiTreeListCombo.EVENT_CONFIRM);\n }\n }\n clear = false;\n change = false;\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.numberCounter.hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n\n this.numberCounter = BI.createWidget({\n type: \"bi.multi_select_check_selected_switcher\",\n el: {\n type: \"bi.multi_tree_check_selected_button\"\n },\n popup: {\n type: \"bi.multi_tree_check_pane\"\n },\n itemsCreator: o.itemsCreator,\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n valueFormatter: o.valueFormatter,\n value: o.value\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n if (want2showCounter === false) {\n want2showCounter = true;\n }\n if (isInit === true) {\n want2showCounter = null;\n showCounter();\n }\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n self.trigger.refreshPlaceHolderWidth((b === true ? self.numberCounter.element.outerWidth() + 8 : 0));\n });\n });\n\n this.trigger.element.click(function (e) {\n if (self.trigger.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.vertical_adapt\",\n items: [this.numberCounter]\n },\n right: o.height,\n top: 0,\n height: o.height,\n }]\n });\n },\n\n _assertShowValue: function () {\n this.trigger.getSearcher().setState(this.storeValue);\n this.numberCounter.setButtonChecked(this.storeValue);\n },\n\n _stopEditing: function() {\n this.trigger.stopEditing();\n this.numberCounter.hideView();\n },\n\n _defaultState: function () {\n this._stopEditing();\n this.combo.hideView();\n },\n\n setValue: function (v) {\n this.storeValue.value = v || [];\n this.combo.setValue({\n value: v || []\n });\n this.numberCounter.setValue({\n value: v || []\n });\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue.value);\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.MultiTreeListCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.MultiTreeListCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.MultiTreeListCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiTreeListCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.MultiTreeListCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiTreeListCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.multi_tree_list_combo\", BI.MultiTreeListCombo);/**\n * 带加载的多选下拉面板\n * @class BI.MultiTreePopup\n * @extends BI.Pane\n */\nBI.MultiTreePopup = BI.inherit(BI.Pane, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreePopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-popup\",\n maxWidth: \"auto\",\n minWidth: 140,\n maxHeight: 400,\n onLoaded: BI.emptyFn,\n el: {\n type: \"bi.async_tree\"\n }\n });\n },\n\n _init: function () {\n BI.MultiTreePopup.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options, v = opts.value;\n\n this.selectedValues = {};\n\n this.tree = BI.createWidget(opts.el, {\n type: \"bi.async_tree\",\n height: 400,\n cls: \"popup-view-tree\",\n itemsCreator: opts.itemsCreator,\n onLoaded: opts.onLoaded,\n value: v.value || {}\n });\n\n this.popupView = BI.createWidget({\n type: \"bi.multi_popup_view\",\n element: this,\n stopPropagation: false,\n maxWidth: opts.maxWidth,\n minWidth: opts.minWidth,\n maxHeight: opts.maxHeight,\n buttons: [BI.i18nText(\"BI-Basic_Clears\"), BI.i18nText(\"BI-Basic_Sure\")],\n el: this.tree\n });\n\n this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON, function (index) {\n switch (index) {\n case 0:\n self.fireEvent(BI.MultiTreePopup.EVENT_CLICK_CLEAR);\n break;\n case 1:\n self.fireEvent(BI.MultiTreePopup.EVENT_CLICK_CONFIRM);\n break;\n }\n });\n\n this.tree.on(BI.TreeView.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiTreePopup.EVENT_CHANGE);\n });\n\n this.tree.on(BI.TreeView.EVENT_AFTERINIT, function () {\n self.fireEvent(BI.MultiTreePopup.EVENT_AFTERINIT);\n });\n\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n setValue: function (v) {\n v || (v = {});\n this.tree.setSelectedValue(v.value);\n },\n\n populate: function (config) {\n this.tree.stroke(config);\n },\n\n hasChecked: function () {\n return this.tree.hasChecked();\n },\n\n resetHeight: function (h) {\n this.popupView.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.popupView.resetWidth(w);\n }\n});\n\nBI.MultiTreePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiTreePopup.EVENT_CLICK_CONFIRM = \"EVENT_CLICK_CONFIRM\";\nBI.MultiTreePopup.EVENT_CLICK_CLEAR = \"EVENT_CLICK_CLEAR\";\nBI.MultiTreePopup.EVENT_AFTERINIT = \"EVENT_AFTERINIT\";\n\n\nBI.shortcut(\"bi.multi_tree_popup_view\", BI.MultiTreePopup);/**\n * 查看已选按钮\n * Created by guy on 15/11/3.\n * @class BI.MultiTreeCheckSelectedButton\n * @extends BI.Single\n */\nBI.MultiTreeCheckSelectedButton = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreeCheckSelectedButton.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-check-selected-button\",\n itemsCreator: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiTreeCheckSelectedButton.superclass._init.apply(this, arguments);\n var self = this;\n this.indicator = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"check-font trigger-check-selected icon-size-12\",\n width: 15,\n height: 15,\n stopPropagation: true\n });\n\n this.checkSelected = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"trigger-check-selected\",\n invisible: true,\n hgap: 4,\n text: BI.i18nText(\"BI-Check_Selected\"),\n textAlign: \"center\",\n textHeight: 15\n });\n this.checkSelected.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.checkSelected.on(BI.TextButton.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiSelectCheckSelectedButton.EVENT_CHANGE, arguments);\n });\n\n BI.createWidget({\n type: \"bi.horizontal\",\n element: this,\n items: [this.indicator, this.checkSelected]\n });\n\n this.element.hover(function () {\n self.indicator.setVisible(false);\n self.checkSelected.setVisible(true);\n }, function () {\n self.indicator.setVisible(true);\n self.checkSelected.setVisible(false);\n });\n this.setVisible(false);\n },\n\n setValue: function (v) {\n v || (v = {});\n var show = BI.size(v.value) > 0;\n this.setVisible(show);\n }\n});\n\nBI.MultiTreeCheckSelectedButton.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.multi_tree_check_selected_button\", BI.MultiTreeCheckSelectedButton);/**\n *\n * 在搜索框中输入文本弹出的面板\n * @class BI.MultiTreeSearchInsertPane\n * @extends BI.Pane\n */\n\nBI.MultiTreeSearchInsertPane = BI.inherit(BI.Widget, {\n\n constants: {\n height: 24,\n },\n\n props: {\n baseCls: \"bi-multi-tree-search-insert-pane bi-card\",\n itemsCreator: BI.emptyFn,\n keywordGetter: BI.emptyFn,\n el: {\n type: \"bi.part_tree\"\n }\n },\n\n render: function () {\n var self = this, opts = this.options;\n\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.text_button\",\n invisible: true,\n ref: function (_ref) {\n self.addTip = _ref;\n },\n text: BI.i18nText(\"BI-Basic_Click_To_Add_Text\", \"\"),\n height: this.constants.height,\n cls: \"bi-high-light\",\n handler: function () {\n self.fireEvent(BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM, opts.keywordGetter());\n }\n },\n top: 5,\n left: 0,\n right: 0\n }, {\n el: BI.extend({\n type: \"bi.part_tree\",\n tipText: BI.i18nText(\"BI-No_Select\"),\n itemsCreator: function (op, callback) {\n op.keyword = opts.keywordGetter();\n opts.itemsCreator(op, function (res) {\n callback(res);\n self.setKeyword(opts.keywordGetter(), res.items);\n });\n },\n ref: function (_ref) {\n self.partTree = _ref;\n },\n value: opts.value,\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }, {\n eventName: BI.TreeView.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.MultiTreeSearchInsertPane.EVENT_CHANGE);\n }\n }]\n }, opts.el),\n left: 0,\n top: 0,\n bottom: 0,\n right: 0\n }]\n };\n },\n\n setKeyword: function (keyword, nodes) {\n var isAddTipVisible = BI.isEmptyArray(nodes);\n this.addTip.setVisible(isAddTipVisible);\n this.partTree.setVisible(!isAddTipVisible);\n isAddTipVisible && this.addTip.setText(BI.i18nText(\"BI-Basic_Click_To_Add_Text\", keyword));\n },\n\n hasChecked: function () {\n return this.partTree.hasChecked();\n },\n\n setValue: function (v) {\n this.setSelectedValue(v.value);\n },\n\n setSelectedValue: function (v) {\n v || (v = {});\n this.partTree.setSelectedValue(v);\n },\n\n getValue: function () {\n return this.partTree.getValue();\n },\n\n empty: function () {\n this.partTree.empty();\n },\n\n populate: function (op) {\n this.partTree.stroke.apply(this.partTree, arguments);\n }\n});\n\nBI.MultiTreeSearchInsertPane.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.MultiTreeSearchInsertPane.EVENT_CLICK_CONFIRM = \"EVENT_CLICK_CONFIRM\";\nBI.MultiTreeSearchInsertPane.EVENT_CLICK_CLEAR = \"EVENT_CLICK_CLEAR\";\nBI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\n\nBI.shortcut(\"bi.multi_tree_search_insert_pane\", BI.MultiTreeSearchInsertPane);/**\n *\n * 在搜索框中输入文本弹出的面板\n * @class BI.MultiTreeSearchPane\n * @extends BI.Pane\n */\n\nBI.MultiTreeSearchPane = BI.inherit(BI.Pane, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreeSearchPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-search-pane bi-card\",\n itemsCreator: BI.emptyFn,\n keywordGetter: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.MultiTreeSearchPane.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n\n this.partTree = BI.createWidget({\n type: \"bi.part_tree\",\n element: this,\n tipText: BI.i18nText(\"BI-No_Select\"),\n itemsCreator: function (op, callback) {\n op.keyword = opts.keywordGetter();\n opts.itemsCreator(op, callback);\n },\n value: opts.value\n });\n\n this.partTree.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.partTree.on(BI.TreeView.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiTreeSearchPane.EVENT_CHANGE);\n });\n },\n\n hasChecked: function () {\n return this.partTree.hasChecked();\n },\n\n setValue: function (v) {\n this.setSelectedValue(v.value);\n },\n\n setSelectedValue: function (v) {\n v || (v = {});\n this.partTree.setSelectedValue(v);\n },\n\n getValue: function () {\n return this.partTree.getValue();\n },\n\n empty: function () {\n this.partTree.empty();\n },\n\n populate: function (op) {\n this.partTree.stroke.apply(this.partTree, arguments);\n }\n});\n\nBI.MultiTreeSearchPane.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.MultiTreeSearchPane.EVENT_CLICK_CONFIRM = \"EVENT_CLICK_CONFIRM\";\nBI.MultiTreeSearchPane.EVENT_CLICK_CLEAR = \"EVENT_CLICK_CLEAR\";\n\nBI.shortcut(\"bi.multi_tree_search_pane\", BI.MultiTreeSearchPane);/**\n * searcher\n * Created by guy on 15/11/3.\n * @class BI.MultiListTreeSearcher\n * @extends Widget\n */\nBI.MultiListTreeSearcher = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiListTreeSearcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-searcher\",\n itemsCreator: BI.emptyFn,\n valueFormatter: function (v) {\n return v;\n },\n popup: {},\n\n adapter: null,\n masker: {}\n });\n },\n\n _init: function () {\n BI.MultiListTreeSearcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.multi_select_editor\",\n height: o.height,\n text: o.text,\n watermark: o.watermark,\n el: {\n type: \"bi.simple_state_editor\",\n height: o.height\n }\n });\n\n this.searcher = BI.createWidget({\n type: \"bi.searcher\",\n element: this,\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback({\n keyword: self.editor.getValue()\n });\n },\n el: this.editor,\n\n popup: BI.extend({\n type: \"bi.multi_tree_search_pane\",\n keywordGetter: function () {\n return self.editor.getValue();\n },\n itemsCreator: function (op, callback) {\n op.keyword = self.editor.getValue();\n o.itemsCreator(op, callback);\n },\n value: o.value\n }, o.popup),\n\n adapter: o.adapter,\n masker: o.masker\n });\n this.searcher.on(BI.Searcher.EVENT_START, function () {\n self.fireEvent(BI.MultiListTreeSearcher.EVENT_START);\n });\n this.searcher.on(BI.Searcher.EVENT_PAUSE, function () {\n if (this.hasMatched()) {\n\n }\n self.fireEvent(BI.MultiListTreeSearcher.EVENT_PAUSE);\n });\n this.searcher.on(BI.Searcher.EVENT_STOP, function () {\n self.fireEvent(BI.MultiListTreeSearcher.EVENT_STOP);\n });\n this.searcher.on(BI.Searcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiListTreeSearcher.EVENT_CHANGE, arguments);\n });\n if (BI.isNotNull(o.value)) {\n this.setState(o.value);\n }\n },\n\n adjustView: function () {\n this.searcher.adjustView();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n isSearching: function () {\n return this.searcher.isSearching();\n },\n\n stopSearch: function () {\n this.searcher.stopSearch();\n },\n\n getKeyword: function () {\n return this.editor.getValue();\n },\n\n hasMatched: function () {\n return this.searcher.hasMatched();\n },\n\n hasChecked: function () {\n return this.searcher.getView() && this.searcher.getView().hasChecked();\n },\n\n setState: function (ob) {\n var o = this.options;\n ob || (ob = {});\n ob.value || (ob.value = []);\n var count = 0;\n if (BI.isNumber(ob)) {\n this.editor.setState(ob);\n } else if (BI.size(ob.value) === 0) {\n this.editor.setState(BI.Selection.None);\n } else {\n var text = \"\";\n BI.each(ob.value, function (idx, path) {\n var childValue = BI.last(path);\n text += (o.valueFormatter(childValue + \"\") || childValue) + \"; \";\n count++;\n });\n\n if (count > 20) {\n this.editor.setState(BI.Selection.Multi);\n } else {\n this.editor.setState(text);\n }\n }\n },\n\n setValue: function (ob) {\n this.setState(ob);\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n },\n\n populate: function (items) {\n this.searcher.populate.apply(this.searcher, arguments);\n }\n});\n\nBI.MultiListTreeSearcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.MultiListTreeSearcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiListTreeSearcher.EVENT_START = \"EVENT_START\";\nBI.MultiListTreeSearcher.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiListTreeSearcher.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.shortcut(\"bi.multi_list_tree_searcher\", BI.MultiListTreeSearcher);/**\n * searcher\n * Created by guy on 15/11/3.\n * @class BI.MultiTreeSearcher\n * @extends Widget\n */\nBI.MultiTreeSearcher = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.MultiTreeSearcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-tree-searcher\",\n itemsCreator: BI.emptyFn,\n valueFormatter: function (v) {\n return v;\n },\n popup: {},\n\n adapter: null,\n masker: {},\n });\n },\n\n _init: function () {\n BI.MultiTreeSearcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.multi_select_editor\",\n watermark: o.watermark,\n height: o.height,\n el: {\n type: \"bi.simple_state_editor\",\n text: o.text,\n height: o.height\n },\n listeners: [{\n eventName: BI.MultiSelectEditor.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.MultiSelectSearcher.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiSelectEditor.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.MultiSelectSearcher.EVENT_BLUR);\n }\n }]\n });\n\n this.searcher = BI.createWidget({\n type: \"bi.searcher\",\n element: this,\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback({\n keyword: self.editor.getValue()\n });\n },\n el: this.editor,\n\n popup: BI.extend({\n type: \"bi.multi_tree_search_pane\",\n keywordGetter: function () {\n return self.editor.getValue();\n },\n itemsCreator: function (op, callback) {\n op.keyword = self.editor.getValue();\n o.itemsCreator(op, callback);\n },\n value: o.value\n }, o.popup),\n\n adapter: o.adapter,\n masker: o.masker\n });\n this.searcher.on(BI.Searcher.EVENT_START, function () {\n self.fireEvent(BI.MultiTreeSearcher.EVENT_START);\n });\n this.searcher.on(BI.Searcher.EVENT_PAUSE, function () {\n if (this.hasMatched()) {\n\n }\n self.fireEvent(BI.MultiTreeSearcher.EVENT_PAUSE);\n });\n this.searcher.on(BI.Searcher.EVENT_STOP, function () {\n self.fireEvent(BI.MultiTreeSearcher.EVENT_STOP);\n });\n this.searcher.on(BI.Searcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.MultiTreeSearcher.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.Searcher.EVENT_SEARCHING, function () {\n var keywords = this.getKeywords();\n self.fireEvent(BI.MultiTreeSearcher.EVENT_SEARCHING, keywords);\n });\n if (BI.isNotNull(o.value)) {\n this.setState(o.value);\n }\n },\n\n adjustView: function () {\n this.searcher.adjustView();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n isSearching: function () {\n return this.searcher.isSearching();\n },\n\n stopSearch: function () {\n this.searcher.stopSearch();\n },\n\n getKeyword: function () {\n return this.editor.getValue();\n },\n\n hasMatched: function () {\n return this.searcher.hasMatched();\n },\n\n hasChecked: function () {\n return this.searcher.getView() && this.searcher.getView().hasChecked();\n },\n\n setState: function (ob) {\n var o = this.options;\n ob || (ob = {});\n ob.value || (ob.value = {});\n var count = 0;\n if (BI.isNumber(ob)) {\n this.editor.setState(ob);\n } else if (BI.size(ob.value) === 0) {\n this.editor.setState(BI.Selection.None);\n } else {\n var text = \"\";\n BI.each(ob.value, function (name, children) {\n var childNodes = getChildrenNode(children);\n text += (o.valueFormatter(name + \"\") || name) + (childNodes === \"\" ? \"\" : (\":\" + childNodes)) + \"; \";\n if (childNodes === \"\") {\n count++;\n }\n });\n\n if (count > 20) {\n this.editor.setState(BI.Selection.Multi);\n } else {\n this.editor.setState(text);\n }\n }\n\n function getChildrenNode (ob) {\n var text = \"\";\n var index = 0, size = BI.size(ob);\n BI.each(ob, function (name, children) {\n index++;\n var childNodes = getChildrenNode(children);\n text += (o.valueFormatter(name + \"\") || name) + (childNodes === \"\" ? \"\" : (\":\" + childNodes)) + (index === size ? \"\" : \",\");\n if (childNodes === \"\") {\n count++;\n }\n });\n return text;\n }\n },\n\n setValue: function (ob) {\n this.setState(ob);\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n },\n\n populate: function (items) {\n this.searcher.populate.apply(this.searcher, arguments);\n }\n});\n\nBI.MultiTreeSearcher.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.MultiTreeSearcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.MultiTreeSearcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.MultiTreeSearcher.EVENT_START = \"EVENT_START\";\nBI.MultiTreeSearcher.EVENT_STOP = \"EVENT_STOP\";\nBI.MultiTreeSearcher.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.shortcut(\"bi.multi_tree_searcher\", BI.MultiTreeSearcher);/**\n * Created by windy on 2017/3/13.\n * 数值微调器\n */\nBI.NumberEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.NumberEditor.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-number-editor bi-border bi-focus-shadow\",\n validationChecker: function () {\n return true;\n },\n valueFormatter: function (v) {\n return v;\n },\n value: 0,\n allowBlank: false,\n errorText: \"\",\n step: 1\n });\n },\n\n _init: function () {\n BI.NumberEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.sign_editor\",\n height: o.height - 2,\n allowBlank: o.allowBlank,\n value: o.valueFormatter(o.value),\n validationChecker: o.validationChecker,\n errorText: o.errorText\n });\n this.editor.on(BI.TextEditor.EVENT_CHANGE, function () {\n self.fireEvent(BI.NumberEditor.EVENT_CHANGE);\n });\n this.editor.on(BI.TextEditor.EVENT_ERROR, function () {\n o.value = BI.parseFloat(this.getLastValidValue());\n });\n this.editor.on(BI.TextEditor.EVENT_VALID, function () {\n o.value = BI.parseFloat(this.getValue());\n });\n this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {\n self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);\n });\n this.topBtn = BI.createWidget({\n type: \"bi.icon_button\",\n forceNotSelected: true,\n trigger: \"lclick,\",\n cls: \"add-up-font top-button bi-border-left bi-list-item-active2 icon-size-12\"\n });\n this.topBtn.on(BI.IconButton.EVENT_CHANGE, function () {\n self._finetuning(o.step);\n self.fireEvent(BI.NumberEditor.EVENT_CHANGE);\n self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);\n });\n this.bottomBtn = BI.createWidget({\n type: \"bi.icon_button\",\n trigger: \"lclick,\",\n forceNotSelected: true,\n cls: \"minus-down-font bottom-button bi-border-left bi-list-item-active2 icon-size-12\"\n });\n this.bottomBtn.on(BI.IconButton.EVENT_CHANGE, function () {\n self._finetuning(-o.step);\n self.fireEvent(BI.NumberEditor.EVENT_CHANGE);\n self.fireEvent(BI.NumberEditor.EVENT_CONFIRM);\n });\n BI.createWidget({\n type: \"bi.htape\",\n height: o.height - 2,\n element: this,\n items: [this.editor, {\n el: {\n type: \"bi.grid\",\n columns: 1,\n rows: 2,\n items: [{\n column: 0,\n row: 0,\n el: this.topBtn\n }, {\n column: 0,\n row: 1,\n el: this.bottomBtn\n }]\n },\n width: 23\n }]\n });\n },\n\n focus: function () {\n this.editor.focus();\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n // 微调\n _finetuning: function (add) {\n var v = BI.parseFloat(this.getValue());\n this.setValue(BI.add(v, add));\n },\n\n setUpEnable: function (v) {\n this.topBtn.setEnable(!!v);\n },\n\n setDownEnable: function (v) {\n this.bottomBtn.setEnable(!!v);\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n getValue: function () {\n return this.options.value;\n },\n\n setValue: function (v) {\n var o = this.options;\n o.value = v;\n this.editor.setValue(o.valueFormatter(v));\n }\n\n});\nBI.NumberEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.NumberEditor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.number_editor\", BI.NumberEditor);// 小于号的值为:0,小于等于号的值为:1\n// closeMIn:最小值的符号,closeMax:最大值的符号\n/**\n * Created by roy on 15/9/17.\n *\n */\nBI.NumberInterval = BI.inherit(BI.Single, {\n constants: {\n typeError: \"typeBubble\",\n numberError: \"numberBubble\",\n signalError: \"signalBubble\",\n editorWidth: 114,\n columns: 5,\n width: 24,\n rows: 1,\n numberErrorCls: \"number-error\",\n border: 1,\n less: 0,\n less_equal: 1,\n numTip: \"\",\n adjustYOffset: 2\n },\n _defaultConfig: function () {\n var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-number-interval\" + ((BI.isIE() && BI.getIEVersion() < 10) ? \" hack\" : \"\"),\n height: 24,\n validation: \"valid\",\n closeMin: true,\n allowBlank: true,\n watermark: BI.i18nText(\"BI-Basic_Unrestricted\")\n });\n },\n _init: function () {\n var self = this, c = this.constants, o = this.options;\n BI.NumberInterval.superclass._init.apply(this, arguments);\n this.smallEditor = BI.createWidget({\n type: \"bi.number_interval_single_editor\",\n height: o.height - 2,\n watermark: o.watermark,\n allowBlank: o.allowBlank,\n value: o.min,\n level: \"warning\",\n tipType: \"success\",\n title: function () {\n return self.smallEditor && self.smallEditor.getValue();\n },\n quitChecker: function () {\n return false;\n },\n validationChecker: function (v) {\n if (!BI.isNumeric(v)) {\n self.smallEditorBubbleType = c.typeError;\n return false;\n }\n return true;\n },\n cls: \"number-interval-small-editor bi-border\"\n });\n\n this.smallTip = BI.createWidget({\n type: \"bi.label\",\n text: o.numTip,\n height: o.height - 2,\n invisible: true\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this.smallEditor.element,\n items: [{\n el: this.smallTip,\n top: 0,\n right: 5\n }]\n });\n\n this.bigEditor = BI.createWidget({\n type: \"bi.number_interval_single_editor\",\n height: o.height - 2,\n watermark: o.watermark,\n allowBlank: o.allowBlank,\n value: o.max,\n level: \"warning\",\n tipType: \"success\",\n title: function () {\n return self.bigEditor && self.bigEditor.getValue();\n },\n quitChecker: function () {\n return false;\n },\n validationChecker: function (v) {\n if (!BI.isNumeric(v)) {\n self.bigEditorBubbleType = c.typeError;\n return false;\n }\n return true;\n },\n cls: \"number-interval-big-editor bi-border\"\n });\n\n this.bigTip = BI.createWidget({\n type: \"bi.label\",\n text: o.numTip,\n height: o.height - 2,\n invisible: true\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this.bigEditor.element,\n items: [{\n el: this.bigTip,\n top: 0,\n right: 5\n }]\n });\n\n // this.smallCombo = BI.createWidget({\n // type: \"bi.number_interval_combo\",\n // cls: \"number-interval-small-combo\",\n // height: o.height,\n // value: o.closemin ? 1 : 0,\n // offsetStyle: \"left\"\n // });\n //\n // this.bigCombo = BI.createWidget({\n // type: \"bi.number_interval_combo\",\n // cls: \"number-interval-big-combo\",\n // height: o.height,\n // value: o.closemax ? 1 : 0,\n // offsetStyle: \"left\"\n // });\n this.smallCombo = BI.createWidget({\n type: \"bi.icon_combo\",\n cls: \"number-interval-small-combo bi-border-top bi-border-bottom bi-border-right\",\n height: o.height - 2,\n items: [{\n text: \"(\" + BI.i18nText(\"BI-Less_Than\") + \")\",\n iconCls: \"less-font\",\n value: 0\n }, {\n text: \"(\" + BI.i18nText(\"BI-Less_And_Equal\") + \")\",\n value: 1,\n iconCls: \"less-equal-font\"\n }]\n });\n if (o.closeMin === true) {\n this.smallCombo.setValue(1);\n } else {\n this.smallCombo.setValue(0);\n }\n this.bigCombo = BI.createWidget({\n type: \"bi.icon_combo\",\n cls: \"number-interval-big-combo bi-border-top bi-border-bottom bi-border-left\",\n height: o.height - 2,\n items: [{\n text: \"(\" + BI.i18nText(\"BI-Less_Than\") + \")\",\n iconCls: \"less-font\",\n value: 0\n }, {\n text: \"(\" + BI.i18nText(\"BI-Less_And_Equal\") + \")\",\n value: 1,\n iconCls: \"less-equal-font\"\n }]\n });\n if (o.closeMax === true) {\n this.bigCombo.setValue(1);\n } else {\n this.bigCombo.setValue(0);\n }\n this.label = BI.createWidget({\n type: \"bi.label\",\n text: BI.i18nText(\"BI-Basic_Value\"),\n textHeight: o.height - c.border * 2,\n width: c.width - c.border * 2,\n height: o.height - c.border * 2,\n level: \"warning\",\n tipType: \"warning\"\n });\n this.left = BI.createWidget({\n type: \"bi.htape\",\n items: [{\n el: self.smallEditor\n }, {\n el: self.smallCombo,\n width: c.width - c.border\n }]\n\n });\n this.right = BI.createWidget({\n type: \"bi.htape\",\n items: [{\n el: self.bigCombo,\n width: c.width - c.border\n }, {\n el: self.bigEditor,\n // BI-23883 间距考虑边框\n lgap: 1\n }]\n });\n\n\n BI.createWidget({\n element: self,\n type: \"bi.center\",\n hgap: 15,\n height: o.height,\n items: [\n {\n type: \"bi.absolute\",\n items: [{\n el: self.left,\n left: -15,\n right: 0,\n top: 0,\n bottom: 0\n }]\n }, {\n type: \"bi.absolute\",\n items: [{\n el: self.right,\n left: 0,\n right: -15,\n top: 0,\n bottom: 0\n }]\n }\n ]\n });\n\n BI.createWidget({\n element: self,\n type: \"bi.horizontal_auto\",\n items: [\n self.label\n ]\n });\n\n\n self._setValidEvent(self.bigEditor, c.bigEditor);\n self._setValidEvent(self.smallEditor, c.smallEditor);\n self._setErrorEvent(self.bigEditor, c.bigEditor);\n self._setErrorEvent(self.smallEditor, c.smallEditor);\n self._setBlurEvent(self.bigEditor);\n self._setBlurEvent(self.smallEditor);\n self._setFocusEvent(self.bigEditor);\n self._setFocusEvent(self.smallEditor);\n self._setComboValueChangedEvent(self.bigCombo);\n self._setComboValueChangedEvent(self.smallCombo);\n self._setEditorValueChangedEvent(self.bigEditor);\n self._setEditorValueChangedEvent(self.smallEditor);\n\n self._checkValidation();\n },\n\n _checkValidation: function () {\n var self = this, c = this.constants, o = this.options;\n self._setTitle(\"\");\n BI.Bubbles.hide(c.typeError);\n BI.Bubbles.hide(c.numberError);\n BI.Bubbles.hide(c.signalError);\n if (!self.smallEditor.isValid() || !self.bigEditor.isValid()) {\n self.element.removeClass(\"number-error\");\n o.validation = \"invalid\";\n return c.typeError;\n }\n if (BI.isEmptyString(self.smallEditor.getValue()) || BI.isEmptyString(self.bigEditor.getValue())) {\n self.element.removeClass(\"number-error\");\n o.validation = \"valid\";\n return \"\";\n }\n var smallValue = parseFloat(self.smallEditor.getValue()), bigValue = parseFloat(self.bigEditor.getValue()),\n bigComboValue = self.bigCombo.getValue(), smallComboValue = self.smallCombo.getValue();\n if (bigComboValue[0] === c.less_equal && smallComboValue[0] === c.less_equal) {\n if (smallValue > bigValue) {\n self.element.addClass(\"number-error\");\n o.validation = \"invalid\";\n return c.numberError;\n }\n self.element.removeClass(\"number-error\");\n o.validation = \"valid\";\n return \"\";\n\n }\n if (smallValue > bigValue) {\n self.element.addClass(\"number-error\");\n o.validation = \"invalid\";\n return c.numberError;\n } else if (smallValue === bigValue) {\n self.element.addClass(\"number-error\");\n o.validation = \"invalid\";\n return c.signalError;\n }\n self.element.removeClass(\"number-error\");\n o.validation = \"valid\";\n return \"\";\n\n\n\n\n\n },\n\n _setTitle: function (v) {\n var self = this;\n self.bigEditor.setTitle(v);\n self.smallEditor.setTitle(v);\n self.label.setTitle(v);\n },\n\n _setFocusEvent: function (w) {\n var self = this, c = this.constants;\n w.on(BI.NumberIntervalSingleEidtor.EVENT_FOCUS, function () {\n self._setTitle(\"\");\n switch (self._checkValidation()) {\n case c.typeError:\n BI.Bubbles.show(c.typeError, BI.i18nText(\"BI-Numerical_Interval_Input_Data\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n break;\n case c.numberError:\n BI.Bubbles.show(c.numberError, BI.i18nText(\"BI-Numerical_Interval_Number_Value\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n break;\n case c.signalError:\n BI.Bubbles.show(c.signalError, BI.i18nText(\"BI-Numerical_Interval_Signal_Value\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n break;\n default :\n return;\n }\n\n });\n },\n _setBlurEvent: function (w) {\n var c = this.constants, self = this;\n w.on(BI.NumberIntervalSingleEidtor.EVENT_BLUR, function () {\n BI.Bubbles.hide(c.typeError);\n BI.Bubbles.hide(c.numberError);\n BI.Bubbles.hide(c.signalError);\n switch (self._checkValidation()) {\n case c.typeError:\n self._setTitle(BI.i18nText(\"BI-Numerical_Interval_Input_Data\"));\n break;\n case c.numberError:\n self._setTitle(BI.i18nText(\"BI-Numerical_Interval_Number_Value\"));\n break;\n case c.signalError:\n self._setTitle(BI.i18nText(\"BI-Numerical_Interval_Signal_Value\"));\n break;\n default:\n self._setTitle(\"\");\n }\n });\n },\n\n _setErrorEvent: function (w) {\n var c = this.constants, self = this;\n w.on(BI.NumberIntervalSingleEidtor.EVENT_ERROR, function () {\n self._checkValidation();\n BI.Bubbles.show(c.typeError, BI.i18nText(\"BI-Numerical_Interval_Input_Data\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n self.fireEvent(BI.NumberInterval.EVENT_ERROR);\n });\n },\n\n\n _setValidEvent: function (w) {\n var self = this, c = this.constants;\n w.on(BI.NumberIntervalSingleEidtor.EVENT_VALID, function () {\n switch (self._checkValidation()) {\n case c.numberError:\n BI.Bubbles.show(c.numberError, BI.i18nText(\"BI-Numerical_Interval_Number_Value\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n self.fireEvent(BI.NumberInterval.EVENT_ERROR);\n break;\n case c.signalError:\n BI.Bubbles.show(c.signalError, BI.i18nText(\"BI-Numerical_Interval_Signal_Value\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n self.fireEvent(BI.NumberInterval.EVENT_ERROR);\n break;\n default:\n self.fireEvent(BI.NumberInterval.EVENT_VALID);\n }\n });\n },\n\n\n _setEditorValueChangedEvent: function (w) {\n var self = this, c = this.constants;\n w.on(BI.NumberIntervalSingleEidtor.EVENT_CHANGE, function () {\n switch (self._checkValidation()) {\n case c.typeError:\n BI.Bubbles.show(c.typeError, BI.i18nText(\"BI-Numerical_Interval_Input_Data\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n break;\n case c.numberError:\n BI.Bubbles.show(c.numberError, BI.i18nText(\"BI-Numerical_Interval_Number_Value\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n break;\n case c.signalError:\n BI.Bubbles.show(c.signalError, BI.i18nText(\"BI-Numerical_Interval_Signal_Value\"), self, {\n offsetStyle: \"left\",\n adjustYOffset: c.adjustYOffset\n });\n break;\n default :\n break;\n }\n self.fireEvent(BI.NumberInterval.EVENT_CHANGE);\n });\n w.on(BI.NumberIntervalSingleEidtor.EVENT_CONFIRM, function () {\n self.fireEvent(BI.NumberInterval.EVENT_CONFIRM);\n });\n },\n\n _setComboValueChangedEvent: function (w) {\n var self = this, c = this.constants;\n w.on(BI.IconCombo.EVENT_CHANGE, function () {\n switch (self._checkValidation()) {\n case c.typeError:\n self._setTitle(BI.i18nText(\"BI-Numerical_Interval_Input_Data\"));\n self.fireEvent(BI.NumberInterval.EVENT_ERROR);\n break;\n case c.numberError:\n self._setTitle(BI.i18nText(\"BI-Numerical_Interval_Number_Value\"));\n self.fireEvent(BI.NumberInterval.EVENT_ERROR);\n break;\n case c.signalError:\n self._setTitle(BI.i18nText(\"BI-Numerical_Interval_Signal_Value\"));\n self.fireEvent(BI.NumberInterval.EVENT_ERROR);\n break;\n default :\n self.fireEvent(BI.NumberInterval.EVENT_CHANGE);\n self.fireEvent(BI.NumberInterval.EVENT_CONFIRM);\n self.fireEvent(BI.NumberInterval.EVENT_VALID);\n }\n });\n },\n\n isStateValid: function () {\n return this.options.validation === \"valid\";\n },\n\n setMinEnable: function (b) {\n this.smallEditor.setEnable(b);\n },\n\n setCloseMinEnable: function (b) {\n this.smallCombo.setEnable(b);\n },\n\n setMaxEnable: function (b) {\n this.bigEditor.setEnable(b);\n },\n\n setCloseMaxEnable: function (b) {\n this.bigCombo.setEnable(b);\n },\n\n showNumTip: function () {\n this.smallTip.setVisible(true);\n this.bigTip.setVisible(true);\n },\n\n hideNumTip: function () {\n this.smallTip.setVisible(false);\n this.bigTip.setVisible(false);\n },\n\n setNumTip: function (numTip) {\n this.smallTip.setText(numTip);\n this.bigTip.setText(numTip);\n },\n\n getNumTip: function () {\n return this.smallTip.getText();\n },\n\n setValue: function (data) {\n data = data || {};\n var self = this, combo_value;\n if (BI.isNumeric(data.min) || BI.isEmptyString(data.min)) {\n self.smallEditor.setValue(data.min);\n }\n\n if (!BI.isNotNull(data.min)) {\n self.smallEditor.setValue(\"\");\n }\n\n if (BI.isNumeric(data.max) || BI.isEmptyString(data.max)) {\n self.bigEditor.setValue(data.max);\n }\n\n if (!BI.isNotNull(data.max)) {\n self.bigEditor.setValue(\"\");\n }\n\n if (!BI.isNull(data.closeMin)) {\n if (data.closeMin === true) {\n combo_value = 1;\n } else {\n combo_value = 0;\n }\n self.smallCombo.setValue(combo_value);\n }\n\n if (!BI.isNull(data.closeMax)) {\n if (data.closeMax === true) {\n combo_value = 1;\n } else {\n combo_value = 0;\n }\n self.bigCombo.setValue(combo_value);\n }\n\n this._checkValidation();\n },\n\n\n getValue: function () {\n var self = this, value = {}, minComboValue = self.smallCombo.getValue(), maxComboValue = self.bigCombo.getValue();\n value.min = self.smallEditor.getValue();\n value.max = self.bigEditor.getValue();\n if (minComboValue[0] === 0) {\n value.closeMin = false;\n } else {\n value.closeMin = true;\n }\n\n if (maxComboValue[0] === 0) {\n value.closeMax = false;\n } else {\n value.closeMax = true;\n }\n return value;\n },\n\n destroyed: function () {\n var c = this.constants;\n BI.Bubbles.remove(c.typeError);\n BI.Bubbles.remove(c.numberError);\n BI.Bubbles.remove(c.signalError);\n }\n});\nBI.NumberInterval.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.NumberInterval.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.NumberInterval.EVENT_VALID = \"EVENT_VALID\";\nBI.NumberInterval.EVENT_ERROR = \"EVENT_ERROR\";\nBI.shortcut(\"bi.number_interval\", BI.NumberInterval);BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {\n props: {\n baseCls: \"bi-number-interval-single-editor\",\n tipType: \"success\",\n title: \"\"\n },\n\n render: function () {\n var self = this, o = this.options;\n\n return {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.editor\",\n ref: function (_ref) {\n self.editor = _ref;\n },\n height: o.height - 2,\n watermark: o.watermark,\n allowBlank: o.allowBlank,\n value: o.value,\n level: o.level,\n quitChecker: o.quitChecker,\n validationChecker: o.validationChecker,\n listeners: [{\n eventName: BI.Editor.EVENT_ERROR,\n action: function () {\n self.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_ERROR, arguments);\n }\n }, {\n eventName: BI.Editor.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_FOCUS, arguments);\n }\n }, {\n eventName: BI.Editor.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_BLUR, arguments);\n }\n }, {\n eventName: BI.Editor.EVENT_VALID,\n action: function () {\n self.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_VALID, arguments);\n }\n }, {\n eventName: BI.Editor.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_CHANGE, arguments);\n }\n }, {\n eventName: BI.Editor.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_CONFIRM, arguments);\n }\n }, {\n eventName: BI.Editor.EVENT_CHANGE_CONFIRM,\n action: function () {\n self.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_CHANGE_CONFIRM, arguments);\n }\n }]\n }]\n };\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n getValue: function () {\n return this.editor.getValue();\n },\n\n setTitle: function (v) {\n return this.editor.setTitle(v);\n },\n\n setValue: function (v) {\n return this.editor.setValue(v);\n }\n});\n\nBI.NumberIntervalSingleEidtor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.NumberIntervalSingleEidtor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.NumberIntervalSingleEidtor.EVENT_ERROR = \"EVENT_ERROR\";\nBI.NumberIntervalSingleEidtor.EVENT_VALID = \"EVENT_VALID\";\nBI.NumberIntervalSingleEidtor.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.NumberIntervalSingleEidtor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.NumberIntervalSingleEidtor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.number_interval_single_editor\", BI.NumberIntervalSingleEidtor);/**\n *\n * @class BI.SearchMultiTextValueCombo\n * @extends BI.Single\n */\nBI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SearchMultiTextValueCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-combo bi-search-multi-text-value-combo\",\n height: 24,\n items: []\n });\n },\n\n _init: function () {\n BI.SearchMultiTextValueCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));\n self._updateAllValue();\n self._checkError();\n self.trigger.getSearcher().setState(self.storeValue);\n self.trigger.getCounter().setButtonChecked(self.storeValue);\n };\n this.storeValue = BI.deepClone(o.value || {});\n this._updateAllValue();\n\n this._assertValue(this.storeValue);\n this._checkError();\n\n // 标记正在请求数据\n this.requesting = false;\n\n this.trigger = BI.createWidget({\n type: \"bi.search_multi_select_trigger\",\n text: o.text,\n height: o.height,\n // adapter: this.popup,\n masker: {\n offset: {\n left: 0,\n top: 0,\n right: 0,\n bottom: 25\n }\n },\n allValueGetter: function () {\n return self.allValue;\n },\n valueFormatter: o.valueFormatter,\n itemsCreator: function (op, callback) {\n self._itemsCreator(op, function (res) {\n if (op.times === 1 && BI.isNotNull(op.keywords)) {\n // 预防trigger内部把当前的storeValue改掉\n self.trigger.setValue(BI.deepClone(self.getValue()));\n }\n callback.apply(self, arguments);\n });\n },\n value: this.storeValue,\n warningTitle: o.warningTitle\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {\n self._setStartValue(\"\");\n this.getSearcher().setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP, function () {\n self._setStartValue(\"\");\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_PAUSE, function () {\n if (this.getSearcher().hasMatched()) {\n var keyword = this.getSearcher().getKeyword();\n self._join({\n type: BI.Selection.Multi,\n value: [keyword]\n }, function () {\n self.combo.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self._populate();\n self._setStartValue(\"\");\n });\n }\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function (keywords) {\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n self.combo.populate();\n self._setStartValue(\"\");\n } else {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n });\n\n this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE, function (value, obj) {\n if (obj instanceof BI.MultiSelectBar) {\n self._joinAll(this.getValue(), function () {\n assertShowValue();\n });\n } else {\n self._join(this.getValue(), function () {\n assertShowValue();\n });\n }\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {\n this.getCounter().setValue(self.storeValue);\n });\n this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n toggle: false,\n container: o.container,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.search_multi_select_popup_view\",\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n },\n listeners: [{\n eventName: BI.MultiSelectPopupView.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n });\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,\n action: function () {\n self._defaultState();\n }\n }, {\n eventName: BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,\n action: function () {\n self.setValue();\n self._defaultState();\n }\n }],\n itemsCreator: BI.bind(self._itemsCreator, this),\n valueFormatter: o.valueFormatter,\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n self.trigger.getCounter().adjustView();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n value: o.value,\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0;\n }\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n this.setValue(self.storeValue);\n BI.nextTick(function () {\n self._populate();\n });\n });\n // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件\n this.wants2Quit = false;\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n // important:关闭弹出时又可能没有退出编辑状态\n self.trigger.stopEditing();\n if (self.requesting === true) {\n self.wants2Quit = true;\n } else {\n /**\n * 在存在标红的情况,如果popover没有发生改变就确认需要同步trigger的值,否则对外value值和trigger样式不统一\n */\n assertShowValue();\n self.fireEvent(BI.SearchMultiTextValueCombo.EVENT_CONFIRM);\n }\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"multi-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n self.trigger.getCounter().hideView();\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this._checkError();\n },\n\n _defaultState: function () {\n this.trigger.stopEditing();\n this.combo.hideView();\n },\n\n _assertValue: function (val) {\n var o = this.options;\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n BI.remove(val.value, function (idx, value) {\n return !BI.contains(BI.map(o.items, \"value\"), value);\n });\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n this.requesting = true;\n this._itemsCreator({\n type: BI.SearchMultiTextValueCombo.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Multi ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _joinAll: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this.requesting = true;\n this._itemsCreator({\n type: BI.SearchMultiTextValueCombo.REQ_GET_ALL_DATA,\n keywords: [this.trigger.getKey()]\n }, function (ob) {\n var items = BI.map(ob.items, \"value\");\n if (self.storeValue.type === res.type) {\n var change = false;\n var map = self._makeMap(self.storeValue.value);\n BI.each(items, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (self.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n var selectedMap = self._makeMap(self.storeValue.value);\n var notSelectedMap = self._makeMap(res.value);\n var newItems = [];\n BI.each(items, function (i, item) {\n if (BI.isNotNull(selectedMap[items[i]])) {\n self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);\n delete selectedMap[items[i]];\n }\n if (BI.isNull(notSelectedMap[items[i]])) {\n BI.remove(self.storeValue.assist, item);\n newItems.push(item);\n }\n });\n self.storeValue.value = newItems.concat(BI.values(selectedMap));\n self._adjust(callback);\n });\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n if (!this._count) {\n this._itemsCreator({\n type: BI.SearchMultiTextValueCombo.REQ_GET_DATA_LENGTH\n }, function (res) {\n self._count = res.count;\n adjust();\n callback();\n });\n } else {\n adjust();\n callback();\n\n }\n\n function adjust () {\n if (self.storeValue.type === BI.Selection.All && self.storeValue.value.length >= self._count) {\n self.storeValue = {\n type: BI.Selection.Multi,\n value: []\n };\n } else if (self.storeValue.type === BI.Selection.Multi && self.storeValue.value.length >= self._count) {\n self.storeValue = {\n type: BI.Selection.All,\n value: []\n };\n }\n self._updateAllValue();\n self._checkError();\n if (self.wants2Quit === true) {\n self.fireEvent(BI.SearchMultiTextValueCombo.EVENT_CONFIRM);\n self.wants2Quit = false;\n }\n self.requesting = false;\n }\n },\n\n _join: function (res, callback) {\n var self = this, o = this.options;\n this._assertValue(res);\n this._assertValue(this.storeValue);\n if (this.storeValue.type === res.type) {\n var map = this._makeMap(this.storeValue.value);\n BI.each(res.value, function (i, v) {\n if (!map[v]) {\n self.storeValue.value.push(v);\n BI.remove(self.storeValue.assist, v);\n map[v] = v;\n }\n });\n var change = false;\n BI.each(res.assist, function (i, v) {\n if (BI.isNotNull(map[v])) {\n change = true;\n self.storeValue.assist && self.storeValue.assist.push(map[v]);\n delete map[v];\n }\n });\n change && (this.storeValue.value = BI.values(map));\n self._adjust(callback);\n return;\n }\n this._joinAll(res, callback);\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.popup.setStartValue(value);\n },\n\n _getItemsByTimes: function (items, times) {\n var res = [];\n for (var i = (times - 1) * 100; items[i] && i < times * 100; i++) {\n res.push(items[i]);\n }\n return res;\n },\n\n _hasNextByTimes: function (items, times) {\n return times * 100 < items.length;\n },\n\n _itemsCreator: function (options, callback) {\n var self = this, o = this.options;\n var items = o.items;\n var keywords = (options.keywords || []).slice();\n if (options.keyword) {\n keywords.push(options.keyword);\n }\n BI.each(keywords, function (i, kw) {\n var search = BI.Func.getSearchResult(items, kw);\n items = search.match.concat(search.find);\n });\n if (options.selectedValues) {// 过滤\n var filter = BI.makeObject(options.selectedValues, true);\n items = BI.filter(items, function (i, ob) {\n return !filter[ob.value];\n });\n }\n if (options.type == BI.MultiSelectCombo.REQ_GET_ALL_DATA) {\n callback({\n items: items\n });\n return;\n }\n if (options.type == BI.MultiSelectCombo.REQ_GET_DATA_LENGTH) {\n callback({count: items.length});\n return;\n }\n callback({\n items: self._getItemsByTimes(items, options.times),\n hasNext: self._hasNextByTimes(items, options.times)\n });\n },\n\n _checkError: function () {\n var v = this.storeValue.value || [];\n if(BI.isNotEmptyArray(v)) {\n v = BI.isArray(v) ? v : [v];\n var result = BI.find(this.allValue, function (idx, value) {\n return !BI.contains(v, value);\n });\n if (BI.isNull(result)) {\n BI.isNotNull(this.trigger) && (this.trigger.setTipType(\"success\"));\n this.element.removeClass(\"combo-error\");\n } else {\n BI.isNotNull(this.trigger) && (this.trigger.setTipType(\"warning\"));\n this.element.addClass(\"combo-error\");\n }\n } else {\n if(v.length === this.allValue.length){\n BI.isNotNull(this.trigger) && (this.trigger.setTipType(\"success\"));\n this.element.removeClass(\"combo-error\");\n }else {\n BI.isNotNull(this.trigger) && (this.trigger.setTipType(\"warning\"));\n this.element.addClass(\"combo-error\");\n }\n }\n },\n\n _updateAllValue: function () {\n this.storeValue = this.storeValue || {};\n this.allValue = BI.deepClone(this.storeValue.value || []);\n },\n\n setValue: function (v) {\n this.storeValue = BI.deepClone(v || {});\n this._updateAllValue();\n this._assertValue(this.storeValue);\n this.combo.setValue(this.storeValue);\n this._checkError();\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue);\n },\n\n _populate: function () {\n this._count = null;\n this.combo.populate();\n },\n\n populate: function (items) {\n this.options.items = items;\n this._populate();\n }\n});\n\nBI.extend(BI.SearchMultiTextValueCombo, {\n REQ_GET_DATA_LENGTH: 1,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.SearchMultiTextValueCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.search_multi_text_value_combo\", BI.SearchMultiTextValueCombo);\nBI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {\n\n constants: {\n height: 14,\n rgap: 4,\n lgap: 4\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.SearchMultiSelectTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-trigger bi-border\",\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n searcher: {},\n switcher: {},\n\n adapter: null,\n masker: {}\n });\n },\n\n _init: function () {\n BI.SearchMultiSelectTrigger.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n if (o.height) {\n this.setHeight(o.height - 2);\n }\n\n this.searcher = BI.createWidget(o.searcher, {\n type: \"bi.search_multi_select_searcher\",\n height: o.height,\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n allValueGetter: o.allValueGetter,\n popup: {},\n adapter: o.adapter,\n masker: o.masker,\n value: o.value,\n text: o.text,\n tipType: o.tipType,\n warningTitle: o.warningTitle\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {\n self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_PAUSE, function () {\n self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_PAUSE);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_SEARCHING, function () {\n self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_SEARCHING, arguments);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_STOP, function () {\n self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_STOP);\n });\n this.searcher.on(BI.MultiSelectSearcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_CHANGE, arguments);\n });\n this.numberCounter = BI.createWidget(o.switcher, {\n type: \"bi.multi_select_check_selected_switcher\",\n valueFormatter: o.valueFormatter,\n itemsCreator: o.itemsCreator,\n adapter: o.adapter,\n masker: o.masker,\n value: o.value\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () {\n self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_COUNTER_CLICK);\n });\n this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW, function () {\n self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW);\n });\n\n var wrapNumberCounter = BI.createWidget({\n type: \"bi.right_vertical_adapt\",\n hgap: 4,\n items: [{\n el: this.numberCounter\n }]\n });\n\n var wrapper = BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [\n {\n el: this.searcher,\n width: \"fill\"\n }, {\n el: wrapNumberCounter,\n width: 0\n }, {\n el: BI.createWidget(),\n width: 24\n }]\n });\n\n this.numberCounter.on(BI.Events.VIEW, function (b) {\n BI.nextTick(function () {// 自动调整宽度\n wrapper.attr(\"items\")[1].width = (b === true ? self.numberCounter.element.outerWidth() + 8 : 0);\n wrapper.resize();\n });\n });\n\n this.element.click(function (e) {\n if (self.element.find(e.target).length > 0) {\n self.numberCounter.hideView();\n }\n });\n },\n\n getCounter: function () {\n return this.numberCounter;\n },\n\n getSearcher: function () {\n return this.searcher;\n },\n\n stopEditing: function () {\n this.searcher.stopSearch();\n this.numberCounter.hideView();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n this.numberCounter.setAdapter(adapter);\n },\n\n setValue: function (ob) {\n this.searcher.setValue(ob);\n this.numberCounter.setValue(ob);\n },\n\n setTipType: function (v) {\n this.searcher.setTipType(v);\n },\n\n getKey: function () {\n return this.searcher.getKey();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n }\n});\n\nBI.SearchMultiSelectTrigger.EVENT_TRIGGER_CLICK = \"EVENT_TRIGGER_CLICK\";\nBI.SearchMultiSelectTrigger.EVENT_COUNTER_CLICK = \"EVENT_COUNTER_CLICK\";\nBI.SearchMultiSelectTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SearchMultiSelectTrigger.EVENT_START = \"EVENT_START\";\nBI.SearchMultiSelectTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.SearchMultiSelectTrigger.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.SearchMultiSelectTrigger.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.SearchMultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW = \"EVENT_BEFORE_COUNTER_POPUPVIEW\";\n\nBI.shortcut(\"bi.search_multi_select_trigger\", BI.SearchMultiSelectTrigger);\n/**\n * 多选加载数据面板\n * Created by guy on 15/11/2.\n * @class BI.SearchMultiSelectLoader\n * @extends Widget\n */\nBI.SearchMultiSelectLoader = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SearchMultiSelectLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-loader\",\n logic: {\n dynamic: true\n },\n el: {\n height: 400\n },\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.SearchMultiSelectLoader.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n var hasNext = false;\n\n this.storeValue = opts.value || {};\n this._assertValue(this.storeValue);\n\n this.button_group = BI.createWidget({\n type: \"bi.select_list\",\n element: this,\n logic: opts.logic,\n el: BI.extend({\n onLoaded: opts.onLoaded,\n el: {\n type: \"bi.loader\",\n isDefaultInit: false,\n logic: {\n dynamic: true,\n scrolly: true\n },\n el: {\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_MULTI,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n }\n }, opts.el),\n itemsCreator: function (op, callback) {\n var startValue = self._startValue;\n self.storeValue && (op = BI.extend(op || {}, {\n selectedValues: BI.isKey(startValue) && self.storeValue.type === BI.Selection.Multi\n ? self.storeValue.value.concat(startValue) : self.storeValue.value\n }));\n opts.itemsCreator(op, function (ob) {\n hasNext = ob.hasNext;\n var firstItems = [];\n if (op.times === 1 && self.storeValue) {\n var json = BI.map(self.storeValue.value, function (i, v) {\n var txt = opts.valueFormatter(v) || v;\n return {\n text: txt,\n value: v,\n title: txt,\n selected: self.storeValue.type === BI.Selection.Multi\n };\n });\n if (BI.isKey(self._startValue) && !BI.contains(self.storeValue.value, self._startValue)) {\n var txt = opts.valueFormatter(startValue) || startValue;\n json.unshift({\n text: txt,\n value: startValue,\n title: txt,\n selected: true\n });\n }\n firstItems = self._createItems(json);\n }\n callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || \"\");\n if (op.times === 1 && self.storeValue) {\n BI.isKey(startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, startValue) : BI.pushDistinct(self.storeValue.value, startValue));\n self.setValue(self.storeValue);\n }\n (op.times === 1) && self._scrollToTop();\n });\n },\n hasNext: function () {\n return hasNext;\n },\n value: this.storeValue\n });\n this.button_group.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.button_group.on(BI.SelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.SearchMultiSelectLoader.EVENT_CHANGE, arguments);\n });\n },\n\n _createItems: function (items) {\n return BI.createItems(items, {\n type: \"bi.multi_select_item\",\n logic: this.options.logic,\n cls: \"bi-list-item-active\",\n height: 24,\n selected: this.isAllSelected(),\n iconWrapperWidth: 36\n });\n },\n\n _scrollToTop: function () {\n var self = this;\n BI.delay(function () {\n self.button_group.element.scrollTop(0);\n }, 30);\n },\n\n isAllSelected: function () {\n return this.button_group.isAllSelected();\n },\n\n _assertValue: function (val) {\n val || (val = {});\n val.type || (val.type = BI.Selection.Multi);\n val.value || (val.value = []);\n },\n\n setStartValue: function (v) {\n this._startValue = v;\n },\n\n setValue: function (v) {\n this.storeValue = v || {};\n this._assertValue(this.storeValue);\n this.button_group.setValue(this.storeValue);\n },\n\n getValue: function () {\n return this.button_group.getValue();\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n populate: function (items) {\n arguments[0] = this._createItems(items);\n this.button_group.populate.apply(this.button_group, arguments);\n },\n\n resetHeight: function (h) {\n this.button_group.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.button_group.resetWidth(w);\n }\n});\n\nBI.SearchMultiSelectLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.search_multi_select_loader\", BI.SearchMultiSelectLoader);BI.SearchMultiSelectPopupView = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SearchMultiSelectPopupView.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-popup-view\",\n maxWidth: \"auto\",\n minWidth: 135,\n maxHeight: 400,\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.SearchMultiSelectPopupView.superclass._init.apply(this, arguments);\n var self = this, opts = this.options;\n\n this.loader = BI.createWidget({\n type: \"bi.search_multi_select_loader\",\n itemsCreator: opts.itemsCreator,\n valueFormatter: opts.valueFormatter,\n onLoaded: opts.onLoaded,\n value: opts.value\n });\n\n this.popupView = BI.createWidget({\n type: \"bi.multi_popup_view\",\n stopPropagation: false,\n maxWidth: opts.maxWidth,\n minWidth: opts.minWidth,\n maxHeight: opts.maxHeight,\n element: this,\n buttons: [BI.i18nText(\"BI-Basic_Clears\"), BI.i18nText(\"BI-Basic_Sure\")],\n el: this.loader,\n value: opts.value\n });\n\n this.popupView.on(BI.MultiPopupView.EVENT_CHANGE, function () {\n self.fireEvent(BI.SearchMultiSelectPopupView.EVENT_CHANGE);\n });\n this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON, function (index) {\n switch (index) {\n case 0:\n self.fireEvent(BI.SearchMultiSelectPopupView.EVENT_CLICK_CLEAR);\n break;\n case 1:\n self.fireEvent(BI.SearchMultiSelectPopupView.EVENT_CLICK_CONFIRM);\n break;\n }\n });\n },\n\n isAllSelected: function () {\n return this.loader.isAllSelected();\n },\n\n setStartValue: function (v) {\n this.loader.setStartValue(v);\n },\n\n setValue: function (v) {\n this.popupView.setValue(v);\n },\n\n getValue: function () {\n return this.popupView.getValue();\n },\n\n populate: function (items) {\n this.popupView.populate.apply(this.popupView, arguments);\n },\n\n resetHeight: function (h) {\n this.popupView.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.popupView.resetWidth(w);\n }\n});\n\nBI.SearchMultiSelectPopupView.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SearchMultiSelectPopupView.EVENT_CLICK_CONFIRM = \"EVENT_CLICK_CONFIRM\";\nBI.SearchMultiSelectPopupView.EVENT_CLICK_CLEAR = \"EVENT_CLICK_CLEAR\";\n\n\nBI.shortcut(\"bi.search_multi_select_popup_view\", BI.SearchMultiSelectPopupView);BI.SearchMultiSelectSearcher = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SearchMultiSelectSearcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-searcher\",\n itemsCreator: BI.emptyFn,\n el: {},\n popup: {},\n valueFormatter: BI.emptyFn,\n adapter: null,\n masker: {}\n });\n },\n\n _init: function () {\n BI.SearchMultiSelectSearcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget(o.el, {\n type: \"bi.multi_select_editor\",\n height: o.height,\n text: o.text,\n tipType: o.tipType,\n warningTitle: o.warningTitle\n });\n\n this.searcher = BI.createWidget({\n type: \"bi.searcher\",\n element: this,\n height: o.height,\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n el: this.editor,\n\n popup: BI.extend({\n type: \"bi.multi_select_search_pane\",\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.editor.getValue();\n },\n itemsCreator: function (op, callback) {\n var keyword = self.editor.getValue();\n op.keywords = [keyword];\n this.setKeyword(keyword);\n o.itemsCreator(op, callback);\n },\n value: o.value\n }, o.popup),\n\n adapter: o.adapter,\n masker: o.masker\n });\n this.searcher.on(BI.Searcher.EVENT_START, function () {\n self.fireEvent(BI.SearchMultiSelectSearcher.EVENT_START);\n });\n this.searcher.on(BI.Searcher.EVENT_PAUSE, function () {\n if (this.hasMatched()) {\n\n }\n self.fireEvent(BI.SearchMultiSelectSearcher.EVENT_PAUSE);\n });\n this.searcher.on(BI.Searcher.EVENT_STOP, function () {\n self.fireEvent(BI.SearchMultiSelectSearcher.EVENT_STOP);\n });\n this.searcher.on(BI.Searcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.SearchMultiSelectSearcher.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.Searcher.EVENT_SEARCHING, function () {\n var keywords = this.getKeywords();\n self.fireEvent(BI.SearchMultiSelectSearcher.EVENT_SEARCHING, keywords);\n });\n if(BI.isNotNull(o.value)) {\n this.setState(o.value);\n }\n },\n\n adjustView: function () {\n this.searcher.adjustView();\n },\n\n isSearching: function () {\n return this.searcher.isSearching();\n },\n\n stopSearch: function () {\n this.searcher.stopSearch();\n },\n\n getKeyword: function () {\n return this.editor.getValue();\n },\n\n hasMatched: function () {\n return this.searcher.hasMatched();\n },\n\n hasChecked: function () {\n return this.searcher.getView() && this.searcher.getView().hasChecked();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n setState: function (obj) {\n var o = this.options;\n var ob = {};\n ob.type = obj.type;\n ob.value = o.allValueGetter() || [];\n ob.assist = obj.assist;\n if (ob.type === BI.Selection.All) {\n if (ob.value.length === 0) {\n this.editor.setState(BI.Selection.All);\n } else if (BI.size(ob.assist) <= 20) {\n var state = \"\";\n BI.each(ob.assist, function (i, v) {\n if (i === 0) {\n state += \"\" + (o.valueFormatter(v + \"\") || v);\n } else {\n state += \",\" + (o.valueFormatter(v + \"\") || v);\n }\n });\n this.editor.setState(state);\n } else {\n this.editor.setState(BI.Selection.Multi);\n }\n } else {\n if (ob.value.length === 0) {\n this.editor.setState(BI.Selection.None);\n } else if (BI.size(ob.value) <= 20) {\n var state = \"\";\n BI.each(ob.value, function (i, v) {\n if (i === 0) {\n state += \"\" + (o.valueFormatter(v + \"\") || v);\n } else {\n state += \",\" + (o.valueFormatter(v + \"\") || v);\n }\n });\n this.editor.setState(state);\n } else {\n this.editor.setState(BI.Selection.Multi);\n }\n }\n },\n\n setTipType: function (v) {\n this.editor.setTipType(v);\n },\n\n setValue: function (ob) {\n this.setState(ob);\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n },\n\n populate: function (items) {\n this.searcher.populate.apply(this.searcher, arguments);\n }\n});\n\nBI.SearchMultiSelectSearcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.SearchMultiSelectSearcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SearchMultiSelectSearcher.EVENT_START = \"EVENT_START\";\nBI.SearchMultiSelectSearcher.EVENT_STOP = \"EVENT_STOP\";\nBI.SearchMultiSelectSearcher.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.SearchMultiSelectSearcher.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.shortcut(\"bi.search_multi_select_searcher\", BI.SearchMultiSelectSearcher);\n/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.SelectTreeFirstPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.SelectTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.SelectTreeFirstPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-select-tree-first-plus-group-node bi-list-item-active\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.SelectTreeFirstPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.first_tree_node_checkbox\",\n stopPropagation: true\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n py: o.py\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n isOnce: function () {\n return true;\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n },\n\n setOpened: function (v) {\n BI.SelectTreeFirstPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.select_tree_first_plus_group_node\", BI.SelectTreeFirstPlusGroupNode);/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.SelectTreeLastPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.SelectTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.SelectTreeLastPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-select-tree-last-plus-group-node bi-list-item-active\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.SelectTreeLastPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.last_tree_node_checkbox\",\n stopPropagation: true\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n py: o.py\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n isOnce: function () {\n return true;\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n },\n\n setOpened: function (v) {\n BI.SelectTreeLastPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.select_tree_last_plus_group_node\", BI.SelectTreeLastPlusGroupNode);/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.SelectTreeMidPlusGroupNode\n * @extends BI.NodeButton\n */\nBI.SelectTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.SelectTreeMidPlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-select-tree-mid-plus-group-node bi-list-item-active\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.SelectTreeMidPlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.mid_tree_node_checkbox\",\n stopPropagation: true\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n py: o.py\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n isOnce: function () {\n return true;\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n },\n\n setOpened: function (v) {\n BI.SelectTreeMidPlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.select_tree_mid_plus_group_node\", BI.SelectTreeMidPlusGroupNode);/**\n * 加号表示的组节点\n * Created by GUY on 2015/9/6.\n * @class BI.SelectTreePlusGroupNode\n * @extends BI.NodeButton\n */\nBI.SelectTreePlusGroupNode = BI.inherit(BI.NodeButton, {\n _defaultConfig: function () {\n var conf = BI.SelectTreePlusGroupNode.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-select-tree-plus-group-node bi-list-item-active\",\n logic: {\n dynamic: false\n },\n id: \"\",\n pId: \"\",\n readonly: true,\n open: false,\n height: 24\n });\n },\n _init: function () {\n BI.SelectTreePlusGroupNode.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.checkbox = BI.createWidget({\n type: \"bi.tree_node_checkbox\",\n stopPropagation: true\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n value: o.value,\n keyword: o.keyword,\n py: o.py\n });\n this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.triggerExpand();\n } else {\n self.triggerCollapse();\n }\n }\n });\n var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);\n var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {\n width: 24,\n el: this.checkbox\n }, this.text);\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {\n items: items\n }))));\n },\n\n isOnce: function () {\n return true;\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.NodeButton.superclass.doClick.apply(this, arguments);\n },\n\n setOpened: function (v) {\n BI.SelectTreePlusGroupNode.superclass.setOpened.apply(this, arguments);\n if (BI.isNotNull(this.checkbox)) {\n this.checkbox.setSelected(v);\n }\n }\n});\n\nBI.shortcut(\"bi.select_tree_plus_group_node\", BI.SelectTreePlusGroupNode);/**\n * @class BI.SelectTreeCombo\n * @extends BI.Widget\n */\nBI.SelectTreeCombo = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SelectTreeCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-select-tree-combo\",\n height: 24,\n text: \"\",\n items: [],\n value: \"\",\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.SelectTreeCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.trigger = BI.createWidget({\n type: \"bi.single_tree_trigger\",\n text: o.text,\n height: o.height,\n items: o.items,\n value: o.value\n });\n\n this.popup = BI.createWidget({\n type: \"bi.select_level_tree\",\n items: o.items,\n value: o.value\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n element: this,\n adjustLength: 2,\n el: this.trigger,\n popup: {\n el: this.popup\n }\n });\n\n this.combo.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.popup.on(BI.SingleTreePopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n });\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.trigger.setValue(v);\n this.popup.setValue(v);\n },\n\n getValue: function () {\n return this.popup.getValue();\n },\n\n populate: function (items) {\n this.combo.populate(items);\n }\n});\n\n\nBI.shortcut(\"bi.select_tree_combo\", BI.SelectTreeCombo);/**\n * @class BI.SelectTreeExpander\n * @extends BI.Widget\n */\nBI.SelectTreeExpander = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SelectTreeExpander.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-select-tree-expander\",\n trigger: \"\",\n toggle: true,\n direction: \"bottom\",\n isDefaultInit: true,\n el: {},\n popup: {}\n });\n },\n\n _init: function () {\n BI.SelectTreeExpander.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.trigger = BI.createWidget(o.el);\n this.trigger.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n if (this.isSelected()) {\n self.expander.setValue([]);\n }\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.expander = BI.createWidget({\n type: \"bi.expander\",\n element: this,\n trigger: o.trigger,\n toggle: o.toggle,\n direction: o.direction,\n isDefaultInit: o.isDefaultInit,\n el: this.trigger,\n popup: o.popup\n });\n this.expander.on(BI.Controller.EVENT_CHANGE, function (type) {\n if (type === BI.Events.CLICK) {\n self.trigger.setSelected(false);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n },\n\n getAllLeaves: function () {\n return this.expander.getAllLeaves();\n },\n\n setValue: function (v) {\n if (BI.contains(v, this.trigger.getValue())) {\n this.trigger.setSelected(true);\n this.expander.setValue([]);\n } else {\n this.trigger.setSelected(false);\n this.expander.setValue(v);\n }\n },\n\n getValue: function () {\n if (this.trigger.isSelected()) {\n return [this.trigger.getValue()];\n }\n return this.expander.getValue();\n },\n\n populate: function (items) {\n this.expander.populate(items);\n }\n});\n\nBI.shortcut(\"bi.select_tree_expander\", BI.SelectTreeExpander);/**\n * @class BI.SelectTreePopup\n * @extends BI.Pane\n */\n\nBI.SelectTreePopup = BI.inherit(BI.Pane, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SelectTreePopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-select-level-tree\",\n tipText: BI.i18nText(\"BI-No_Selected_Item\"),\n items: [],\n value: \"\"\n });\n },\n\n _formatItems: function (nodes, layer, pNode) {\n var self = this;\n BI.each(nodes, function (i, node) {\n var extend = {layer: layer};\n node.id = node.id || BI.UUID();\n extend.pNode = pNode;\n if (node.isParent === true || node.parent === true || BI.isNotEmptyArray(node.children)) {\n extend.type = \"bi.select_tree_mid_plus_group_node\";\n if (i === nodes.length - 1) {\n extend.type = \"bi.select_tree_last_plus_group_node\";\n extend.isLastNode = true;\n }\n if (i === 0 && !pNode) {\n extend.type = \"bi.select_tree_first_plus_group_node\"\n }\n if (i === 0 && i === nodes.length - 1) { // 根\n extend.type = \"bi.select_tree_plus_group_node\";\n }\n BI.defaults(node, extend);\n self._formatItems(node.children, layer + 1, node);\n } else {\n extend.type = \"bi.mid_tree_leaf_item\";\n if (i === 0 && !pNode) {\n extend.type = \"bi.first_tree_leaf_item\"\n }\n if (i === nodes.length - 1) {\n extend.type = \"bi.last_tree_leaf_item\";\n }\n BI.defaults(node, extend);\n }\n });\n return nodes;\n },\n\n _init: function () {\n BI.SelectTreePopup.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n\n this.tree = BI.createWidget({\n type: \"bi.level_tree\",\n expander: {\n type: \"bi.select_tree_expander\",\n isDefaultInit: true\n },\n items: this._formatItems(BI.Tree.transformToTreeFormat(o.items), 0),\n value: o.value,\n chooseType: BI.Selection.Single\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n vgap: 5,\n items: [this.tree]\n });\n\n this.tree.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.tree.on(BI.LevelTree.EVENT_CHANGE, function () {\n self.fireEvent(BI.SelectTreePopup.EVENT_CHANGE);\n });\n\n this.check();\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.tree.setValue(v);\n },\n\n populate: function (items) {\n BI.SelectTreePopup.superclass.populate.apply(this, arguments);\n this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(items)));\n }\n});\n\nBI.SelectTreePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.select_level_tree\", BI.SelectTreePopup);/**\n * 单选加载数据搜索loader面板\n * Created by guy on 15/11/4.\n * @class BI.SingleSelectSearchLoader\n * @extends Widget\n */\nBI.SingleSelectSearchLoader = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectSearchLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-search-loader\",\n allowNoSelect: false,\n itemsCreator: BI.emptyFn,\n keywordGetter: BI.emptyFn,\n valueFormatter: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.SingleSelectSearchLoader.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n var hasNext = false;\n\n this.button_group = BI.createWidget({\n type: \"bi.single_select_list\",\n allowNoSelect: opts.allowNoSelect,\n element: this,\n logic: {\n dynamic: false\n },\n value: opts.value,\n el: {\n tipText: BI.i18nText(\"BI-No_Select\"),\n el: {\n type: \"bi.loader\",\n isDefaultInit: false,\n logic: {\n dynamic: true,\n scrolly: true\n },\n el: {\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n }\n },\n itemsCreator: function (op, callback) {\n self.storeValue && (op = BI.extend(op || {}, {\n selectedValues: [self.storeValue]\n }));\n opts.itemsCreator(op, function (ob) {\n var keyword = ob.keyword = opts.keywordGetter();\n hasNext = ob.hasNext;\n var firstItems = [];\n if (op.times === 1 && BI.isNotNull(self.storeValue)) {\n var json = self._filterValues(self.storeValue);\n firstItems = self._createItems(json);\n }\n callback(firstItems.concat(self._createItems(ob.items)), keyword || \"\");\n if (op.times === 1 && self.storeValue) {\n self.setValue(self.storeValue);\n }\n });\n },\n hasNext: function () {\n return hasNext;\n }\n });\n this.button_group.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.button_group.on(BI.SingleSelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.SingleSelectSearchLoader.EVENT_CHANGE, arguments);\n });\n },\n\n _createItems: function (items) {\n return BI.createItems(items, {\n type: this.options.allowNoSelect ? \"bi.single_select_item\" : \"bi.single_select_combo_item\",\n cls: \"bi-list-item-active\",\n logic: {\n dynamic: false\n },\n height: 25,\n selected: false\n });\n },\n\n _filterValues: function (src) {\n var o = this.options;\n var keyword = o.keywordGetter();\n var values = src || [];\n var newValues = BI.map(BI.isArray(values) ? values : [values], function (i, v) {\n return {\n text: o.valueFormatter(v) || v,\n value: v\n };\n });\n if (BI.isKey(keyword)) {\n var search = BI.Func.getSearchResult(newValues, keyword);\n values = search.match.concat(search.find);\n }\n return BI.map(values, function (i, v) {\n return {\n text: v.text,\n title: v.text,\n value: v.value,\n selected: false\n };\n });\n },\n\n setValue: function (v) {\n // 暂存的值一定是新的值,不然v改掉后,storeValue也跟着改了\n this.storeValue = v;\n this.button_group.setValue(v);\n },\n\n getValue: function () {\n return this.button_group.getValue();\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n populate: function (items) {\n this.button_group.populate.apply(this.button_group, arguments);\n },\n\n resetHeight: function (h) {\n this.button_group.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.button_group.resetWidth(w);\n }\n});\n\nBI.SingleSelectSearchLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_select_search_loader\", BI.SingleSelectSearchLoader);/**\n *\n * 在搜索框中输入文本弹出的面板\n * @class BI.SingleSelectSearchInsertPane\n * @extends Widget\n */\n\nBI.SingleSelectSearchInsertPane = BI.inherit(BI.Widget, {\n\n constants: {\n height: 25,\n lgap: 10,\n tgap: 5\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectSearchInsertPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-search-pane bi-card\",\n allowNoSelect: false,\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n keywordGetter: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.SingleSelectSearchInsertPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.tooltipClick = BI.createWidget({\n type: \"bi.label\",\n invisible: true,\n text: BI.i18nText(\"BI-Click_Blank_To_Select\"),\n cls: \"multi-select-toolbar\",\n height: this.constants.height\n });\n\n this.addNotMatchTip = BI.createWidget({\n type: \"bi.text_button\",\n invisible: true,\n text: BI.i18nText(\"BI-Basic_Click_To_Add_Text\", \"\"),\n height: this.constants.height,\n cls: \"bi-high-light\",\n hgap: 5,\n handler: function () {\n self.fireEvent(BI.SingleSelectSearchInsertPane.EVENT_ADD_ITEM, o.keywordGetter());\n }\n });\n\n this.loader = BI.createWidget({\n type: \"bi.single_select_search_loader\",\n allowNoSelect: o.allowNoSelect,\n keywordGetter: o.keywordGetter,\n valueFormatter: o.valueFormatter,\n itemsCreator: function (op, callback) {\n o.itemsCreator.apply(self, [op, function (res) {\n callback(res);\n self.setKeyword(o.keywordGetter());\n }]);\n },\n value: o.value\n });\n this.loader.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.resizer = BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n type: \"bi.vertical\",\n items: [this.tooltipClick, this.addNotMatchTip],\n height: this.constants.height\n }, {\n el: this.loader\n }]\n });\n },\n\n setKeyword: function (keyword) {\n var btn;\n var isMatchTipVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === btn.getValue());\n this.tooltipClick.setVisible(isMatchTipVisible);\n this.addNotMatchTip.setVisible(!isMatchTipVisible);\n !isMatchTipVisible && this.addNotMatchTip.setText(BI.i18nText(\"BI-Basic_Click_To_Add_Text\", keyword));\n },\n\n hasMatched: function () {\n return this.tooltipClick.isVisible();\n },\n\n setValue: function (v) {\n this.loader.setValue(v);\n },\n\n getValue: function () {\n return this.loader.getValue();\n },\n\n empty: function () {\n this.loader.empty();\n },\n\n populate: function (items) {\n this.loader.populate.apply(this.loader, arguments);\n }\n});\n\nBI.SingleSelectSearchInsertPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SingleSelectSearchInsertPane.EVENT_ADD_ITEM = \"EVENT_ADD_ITEM\";\n\nBI.shortcut(\"bi.single_select_search_insert_pane\", BI.SingleSelectSearchInsertPane);/**\n *\n * 在搜索框中输入文本弹出的面板\n * @class BI.SingleSelectSearchPane\n * @extends Widget\n */\n\nBI.SingleSelectSearchPane = BI.inherit(BI.Widget, {\n\n constants: {\n height: 25,\n lgap: 10,\n tgap: 5\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectSearchPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-search-pane bi-card\",\n allowNoSelect: false,\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n keywordGetter: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.SingleSelectSearchPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.tooltipClick = BI.createWidget({\n type: \"bi.label\",\n invisible: true,\n text: BI.i18nText(\"BI-Click_Blank_To_Select\"),\n cls: \"multi-select-toolbar\",\n height: this.constants.height\n });\n\n this.loader = BI.createWidget({\n type: \"bi.single_select_search_loader\",\n allowNoSelect: o.allowNoSelect,\n keywordGetter: o.keywordGetter,\n valueFormatter: o.valueFormatter,\n itemsCreator: function (op, callback) {\n o.itemsCreator.apply(self, [op, function (res) {\n callback(res);\n self.setKeyword(o.keywordGetter());\n }]);\n },\n value: o.value\n });\n this.loader.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.resizer = BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.tooltipClick,\n height: 0\n }, {\n el: this.loader\n }]\n });\n this.tooltipClick.setVisible(false);\n },\n\n setKeyword: function (keyword) {\n var btn;\n var isVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === btn.getValue());\n if (isVisible !== this.tooltipClick.isVisible()) {\n this.tooltipClick.setVisible(isVisible);\n this.resizer.attr(\"items\")[0].height = (isVisible ? this.constants.height : 0);\n this.resizer.resize();\n }\n },\n\n hasMatched: function () {\n return this.tooltipClick.isVisible();\n },\n\n setValue: function (v) {\n this.loader.setValue(v);\n },\n\n getValue: function () {\n return this.loader.getValue();\n },\n\n empty: function () {\n this.loader.empty();\n },\n\n populate: function (items) {\n this.loader.populate.apply(this.loader, arguments);\n }\n});\n\nBI.SingleSelectSearchPane.EVENT_CHANGE = \"EVENT_CHANGE\";\n\nBI.shortcut(\"bi.single_select_search_pane\", BI.SingleSelectSearchPane);/**\n *\n * @class BI.SingleSelectCombo\n * @extends BI.Single\n */\nBI.SingleSelectCombo = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-combo\",\n allowNoSelect: false,\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n attributes: {\n tabIndex: 0\n },\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.SingleSelectCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue = self._startValue);\n self.trigger.getSearcher().setState(self.storeValue);\n };\n this.storeValue = o.value;\n // 标记正在请求数据\n this.requesting = false;\n\n this.trigger = BI.createWidget({\n type: \"bi.single_select_trigger\",\n height: o.height,\n // adapter: this.popup,\n allowNoSelect: o.allowNoSelect,\n allowEdit: o.allowEdit,\n valueFormatter: o.valueFormatter,\n itemsCreator: function (op, callback) {\n o.itemsCreator(op, function (res) {\n if (op.times === 1 && BI.isNotNull(op.keywords)) {\n // 预防trigger内部把当前的storeValue改掉\n self.trigger.setValue(self.getValue());\n }\n callback.apply(self, arguments);\n });\n },\n text: o.text,\n value: this.storeValue\n });\n\n this.trigger.on(BI.SingleSelectTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.SingleSelectCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.SingleSelectCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.SingleSelectTrigger.EVENT_START, function () {\n self._setStartValue();\n this.getSearcher().setValue(self.storeValue);\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_STOP, function () {\n self._setStartValue();\n self.fireEvent(BI.SingleSelectCombo.EVENT_STOP);\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {\n if (this.getSearcher().hasMatched()) {\n var keyword = this.getSearcher().getKeyword();\n self.combo.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.populate();\n self._setStartValue();\n }\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n self.combo.populate();\n self._setStartValue();\n } else {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n self.fireEvent(BI.SingleSelectCombo.EVENT_SEARCHING);\n });\n\n this.trigger.on(BI.SingleSelectTrigger.EVENT_CHANGE, function (value, obj) {\n self.storeValue = this.getValue();\n assertShowValue();\n self._defaultState();\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n toggle: false,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.single_select_popup_view\",\n allowNoSelect: o.allowNoSelect,\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n },\n listeners: [{\n eventName: BI.SingleSelectPopupView.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n self._defaultState();\n });\n self.fireEvent(BI.SingleSelectCombo.EVENT_CLICK_ITEM);\n }\n }],\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0;\n },\n value: o.value\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n this.setValue(self.storeValue);\n BI.nextTick(function () {\n self.populate();\n });\n });\n // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件\n this.wants2Quit = false;\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n // important:关闭弹出时又可能没有退出编辑状态\n self.trigger.stopEditing();\n if (self.requesting === true) {\n self.wants2Quit = true;\n } else {\n self.fireEvent(BI.SingleSelectCombo.EVENT_CONFIRM);\n }\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"single-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n },\n\n _defaultState: function () {\n this.trigger.stopEditing();\n this.combo.hideView();\n },\n\n _assertValue: function (val) {},\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n this.requesting = true;\n o.itemsCreator({\n type: BI.SingleSelectCombo.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n if (!this._count) {\n o.itemsCreator({\n type: BI.SingleSelectCombo.REQ_GET_DATA_LENGTH\n }, function (res) {\n self._count = res.count;\n adjust();\n callback();\n });\n } else {\n adjust();\n callback();\n\n }\n\n function adjust () {\n if (self.wants2Quit === true) {\n self.fireEvent(BI.SingleSelectCombo.EVENT_CONFIRM);\n self.wants2Quit = false;\n }\n self.requesting = false;\n }\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.popup.setStartValue(value);\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this._assertValue(this.storeValue);\n this.combo.setValue(this.storeValue);\n },\n\n getValue: function () {\n return this.storeValue;\n },\n\n populate: function () {\n this._count = null;\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.extend(BI.SingleSelectCombo, {\n REQ_GET_DATA_LENGTH: 0,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.SingleSelectCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.SingleSelectCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SingleSelectCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.SingleSelectCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.SingleSelectCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.SingleSelectCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.single_select_combo\", BI.SingleSelectCombo);\n/**\n *\n * @class BI.SingleSelectInsertCombo\n * @extends BI.Single\n */\nBI.SingleSelectInsertCombo = BI.inherit(BI.Single, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectInsertCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-combo\",\n allowNoSelect: false,\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n height: 24,\n attributes: {\n tabIndex: 0\n },\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.SingleSelectInsertCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue = self._startValue);\n self.trigger.getSearcher().setState(self.storeValue);\n };\n this.storeValue = o.value;\n // 标记正在请求数据\n this.requesting = false;\n\n this.trigger = BI.createWidget({\n type: \"bi.single_select_trigger\",\n height: o.height,\n allowNoSelect: o.allowNoSelect,\n allowEdit: o.allowEdit,\n // adapter: this.popup,\n valueFormatter: o.valueFormatter,\n itemsCreator: function (op, callback) {\n o.itemsCreator(op, function (res) {\n if (op.times === 1 && BI.isNotNull(op.keywords)) {\n // 预防trigger内部把当前的storeValue改掉\n self.trigger.setValue(self.getValue());\n }\n callback.apply(self, arguments);\n });\n },\n text: o.text,\n value: this.storeValue,\n searcher: {\n popup: {\n type: \"bi.single_select_search_insert_pane\",\n listeners: [{\n eventName: BI.SingleSelectSearchInsertPane.EVENT_ADD_ITEM,\n action: function () {\n if (!self.trigger.getSearcher().hasMatched()) {\n self.storeValue = self.trigger.getSearcher().getKeyword();\n assertShowValue();\n self._defaultState();\n }\n }\n }]\n }\n }\n });\n\n this.trigger.on(BI.SingleSelectTrigger.EVENT_FOCUS, function () {\n self.fireEvent(BI.SingleSelectInsertCombo.EVENT_FOCUS);\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_BLUR, function () {\n self.fireEvent(BI.SingleSelectInsertCombo.EVENT_BLUR);\n });\n\n this.trigger.on(BI.SingleSelectTrigger.EVENT_START, function () {\n self._setStartValue();\n this.getSearcher().setValue(self.storeValue);\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_STOP, function () {\n self._setStartValue();\n self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {\n if (this.getSearcher().hasMatched()) {\n var keyword = this.getSearcher().getKeyword();\n self.storeValue = keyword;\n self.combo.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.populate();\n self._setStartValue();\n }\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n self.combo.populate();\n self._setStartValue();\n } else {\n self.combo.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n self.fireEvent(BI.SingleSelectInsertCombo.EVENT_SEARCHING);\n });\n\n this.trigger.on(BI.SingleSelectTrigger.EVENT_CHANGE, function (value, obj) {\n self.storeValue = this.getValue();\n assertShowValue();\n self._defaultState();\n });\n this.trigger.on(BI.SingleSelectTrigger.EVENT_COUNTER_CLICK, function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n toggle: false,\n el: this.trigger,\n adjustLength: 1,\n popup: {\n type: \"bi.single_select_popup_view\",\n allowNoSelect: o.allowNoSelect,\n ref: function () {\n self.popup = this;\n self.trigger.setAdapter(this);\n },\n listeners: [{\n eventName: BI.SingleSelectPopupView.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self._adjust(function () {\n assertShowValue();\n self._defaultState();\n });\n self.fireEvent(BI.SingleSelectInsertCombo.EVENT_CLICK_ITEM);\n }\n }],\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n onLoaded: function () {\n BI.nextTick(function () {\n self.combo.adjustWidth();\n self.combo.adjustHeight();\n self.trigger.getSearcher().adjustView();\n });\n }\n },\n hideChecker: function (e) {\n return triggerBtn.element.find(e.target).length === 0;\n },\n value: o.value\n });\n\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n this.setValue(self.storeValue);\n BI.nextTick(function () {\n self.populate();\n });\n });\n // 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件\n this.wants2Quit = false;\n this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {\n // important:关闭弹出时又可能没有退出编辑状态\n self.trigger.stopEditing();\n if (self.requesting === true) {\n self.wants2Quit = true;\n } else {\n self.fireEvent(BI.SingleSelectInsertCombo.EVENT_CONFIRM);\n }\n });\n\n var triggerBtn = BI.createWidget({\n type: \"bi.trigger_icon_button\",\n width: o.height,\n height: o.height,\n cls: \"single-select-trigger-icon-button\"\n });\n triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n } else {\n self.combo.showView();\n }\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.combo,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: triggerBtn,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n },\n\n _defaultState: function () {\n this.trigger.stopEditing();\n this.combo.hideView();\n },\n\n _assertValue: function (val) {\n },\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n this.requesting = true;\n o.itemsCreator({\n type: BI.SingleSelectInsertCombo.REQ_GET_ALL_DATA,\n keywords: keywords\n }, function (ob) {\n var values = BI.map(ob.items, \"value\");\n digest(values);\n });\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n BI.remove(self.storeValue.value, val);\n }\n });\n self._adjust(callback);\n }\n },\n\n _adjust: function (callback) {\n var self = this, o = this.options;\n adjust();\n callback();\n\n function adjust () {\n if (self.wants2Quit === true) {\n self.fireEvent(BI.SingleSelectInsertCombo.EVENT_CONFIRM);\n self.wants2Quit = false;\n }\n self.requesting = false;\n }\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.popup.setStartValue(value);\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this._assertValue(this.storeValue);\n this.combo.setValue(this.storeValue);\n },\n\n getValue: function () {\n return this.storeValue;\n },\n\n populate: function () {\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.extend(BI.SingleSelectInsertCombo, {\n REQ_GET_DATA_LENGTH: 0,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.SingleSelectInsertCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SingleSelectInsertCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.SingleSelectInsertCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.SingleSelectInsertCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.SingleSelectInsertCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.SingleSelectInsertCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n\nBI.shortcut(\"bi.single_select_insert_combo\", BI.SingleSelectInsertCombo);BI.SingleSelectComboItem = BI.inherit(BI.BasicButton, {\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectComboItem.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-single-select-radio-item\",\n logic: {\n dynamic: false\n },\n height: 24\n });\n },\n _init: function () {\n BI.SingleSelectComboItem.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.radio = BI.createWidget({\n type: \"bi.radio\"\n });\n this.text = BI.createWidget({\n type: \"bi.label\",\n cls: \"list-item-text\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n textHeight: o.height,\n height: o.height,\n hgap: o.hgap,\n text: o.text,\n keyword: o.keyword,\n value: o.value,\n py: o.py\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(\"horizontal\", BI.extend(o.logic, {\n items: BI.LogicFactory.createLogicItemsByDirection(\"left\", {\n type: \"bi.center_adapt\",\n items: [this.radio],\n width: 26\n }, this.text)\n }))));\n },\n\n doRedMark: function () {\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doClick: function () {\n BI.SingleSelectComboItem.superclass.doClick.apply(this, arguments);\n this.radio.setSelected(this.isSelected());\n if (this.isValid()) {\n this.fireEvent(BI.SingleSelectComboItem.EVENT_CHANGE, this.isSelected(), this);\n }\n },\n\n setSelected: function (v) {\n BI.SingleSelectComboItem.superclass.setSelected.apply(this, arguments);\n this.radio.setSelected(v);\n\n }\n});\nBI.SingleSelectComboItem.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_select_combo_item\", BI.SingleSelectComboItem);/**\n * 选择列表\n *\n * Created by GUY on 2015/11/1.\n * @class BI.SingleSelectList\n * @extends BI.Widget\n */\nBI.SingleSelectList = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-select-list\",\n direction: BI.Direction.Top, // toolbar的位置\n logic: {\n dynamic: true\n },\n items: [],\n itemsCreator: BI.emptyFn,\n hasNext: BI.emptyFn,\n onLoaded: BI.emptyFn,\n el: {\n type: \"bi.list_pane\"\n },\n allowNoSelect: false\n });\n },\n _init: function () {\n BI.SingleSelectList.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.list = BI.createWidget(o.el, {\n type: \"bi.list_pane\",\n items: o.items,\n itemsCreator: function (op, callback) {\n op.times === 1 && self.toolbar && self.toolbar.setVisible(false);\n o.itemsCreator(op, function (items) {\n callback.apply(self, arguments);\n if (op.times === 1) {\n self.toolbar && self.toolbar.setVisible(items && items.length > 0);\n self.toolbar && self.toolbar.setEnable(items && items.length > 0);\n }\n });\n },\n onLoaded: o.onLoaded,\n hasNext: o.hasNext,\n value: o.value\n });\n\n this.list.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {\n if (type === BI.Events.CLICK) {\n self.fireEvent(BI.SingleSelectList.EVENT_CHANGE, value, obj);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n BI.createWidget(BI.extend({\n element: this\n }, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({\n scrolly: true\n }, o.logic, {\n items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {\n type: \"bi.single_select_item\",\n cls: \"bi-list-item-active\",\n height: 24,\n forceNotSelected: true,\n text: BI.i18nText(\"BI-Basic_No_Select\"),\n ref: function (_ref) {\n self.toolbar = _ref;\n },\n listeners: [{\n eventName: BI.Controller.EVENT_CHANGE,\n action: function (type) {\n if (type === BI.Events.CLICK) {\n self.list.setValue();\n self.fireEvent(BI.SingleSelectList.EVENT_CHANGE);\n }\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n }\n }]\n }, this.list) : BI.LogicFactory.createLogicItemsByDirection(o.direction, this.list)\n }))));\n\n },\n\n hasPrev: function () {\n return this.list.hasPrev();\n },\n\n hasNext: function () {\n return this.list.hasNext();\n },\n\n prependItems: function (items) {\n this.list.prependItems.apply(this.list, arguments);\n },\n\n addItems: function (items) {\n this.list.addItems.apply(this.list, arguments);\n },\n\n setValue: function (v) {\n this.list.setValue([v]);\n },\n\n getValue: function () {\n return this.list.getValue()[0];\n },\n\n empty: function () {\n this.list.empty();\n },\n\n populate: function (items) {\n this.list.populate.apply(this.list, arguments);\n },\n\n resetHeight: function (h) {\n this.list.resetHeight ? this.list.resetHeight(h) :\n this.list.element.css({\"max-height\": h + \"px\"});\n },\n\n setNotSelectedValue: function () {\n this.list.setNotSelectedValue.apply(this.list, arguments);\n },\n\n getNotSelectedValue: function () {\n return this.list.getNotSelectedValue();\n },\n\n getAllButtons: function () {\n return this.list.getAllButtons();\n },\n\n getAllLeaves: function () {\n return this.list.getAllLeaves();\n },\n\n getSelectedButtons: function () {\n return this.list.getSelectedButtons();\n },\n\n getNotSelectedButtons: function () {\n return this.list.getNotSelectedButtons();\n },\n\n getIndexByValue: function (value) {\n return this.list.getIndexByValue(value);\n },\n\n getNodeById: function (id) {\n return this.list.getNodeById(id);\n },\n\n getNodeByValue: function (value) {\n return this.list.getNodeByValue(value);\n }\n});\nBI.SingleSelectList.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_select_list\", BI.SingleSelectList);/**\n * 单选加载数据面板\n * Created by guy on 15/11/2.\n * @class BI.SingleSelectLoader\n * @extends Widget\n */\nBI.SingleSelectLoader = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-loader\",\n logic: {\n dynamic: true\n },\n el: {\n height: 400\n },\n allowNoSelect: false,\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.SingleSelectLoader.superclass._init.apply(this, arguments);\n\n var self = this, opts = this.options;\n var hasNext = false;\n this.storeValue = opts.value;\n this.button_group = BI.createWidget({\n type: \"bi.single_select_list\",\n allowNoSelect: opts.allowNoSelect,\n logic: opts.logic,\n el: BI.extend({\n onLoaded: opts.onLoaded,\n el: {\n type: \"bi.loader\",\n isDefaultInit: false,\n logic: {\n dynamic: true,\n scrolly: true\n },\n el: {\n chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE,\n behaviors: {\n redmark: function () {\n return true;\n }\n },\n layouts: [{\n type: \"bi.vertical\"\n }]\n }\n }\n }, opts.el),\n itemsCreator: function (op, callback) {\n var startValue = self._startValue;\n BI.isNotNull(self.storeValue) && (op = BI.extend(op || {}, {\n selectedValues: [self.storeValue]\n }));\n opts.itemsCreator(op, function (ob) {\n hasNext = ob.hasNext;\n var firstItems = [];\n if (op.times === 1 && BI.isNotNull(self.storeValue)) {\n var json = BI.map([self.storeValue], function (i, v) {\n var txt = opts.valueFormatter(v) || v;\n return {\n text: txt,\n value: v,\n title: txt,\n selected: true\n };\n });\n firstItems = self._createItems(json);\n }\n callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || \"\");\n if (op.times === 1 && self.storeValue) {\n BI.isKey(startValue) && (self.storeValue = startValue);\n self.setValue(self.storeValue);\n }\n (op.times === 1) && self._scrollToTop();\n });\n },\n hasNext: function () {\n return hasNext;\n },\n value: this.storeValue\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n items: [this.button_group],\n vgap: 5\n });\n\n this.button_group.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.button_group.on(BI.SingleSelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.SingleSelectLoader.EVENT_CHANGE, arguments);\n });\n },\n\n _createItems: function (items) {\n return BI.createItems(items, {\n type: this.options.allowNoSelect ? \"bi.single_select_item\" : \"bi.single_select_combo_item\",\n logic: this.options.logic,\n cls: \"bi-list-item-active\",\n height: 24,\n selected: false\n });\n },\n\n _scrollToTop: function () {\n var self = this;\n BI.delay(function () {\n self.button_group.element.scrollTop(0);\n }, 30);\n },\n\n _assertValue: function (val) {},\n\n setStartValue: function (v) {\n this._startValue = v;\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this._assertValue(this.storeValue);\n this.button_group.setValue(this.storeValue);\n },\n\n getValue: function () {\n return this.button_group.getValue();\n },\n\n getAllButtons: function () {\n return this.button_group.getAllButtons();\n },\n\n empty: function () {\n this.button_group.empty();\n },\n\n populate: function (items) {\n this.button_group.populate.apply(this.button_group, arguments);\n },\n\n resetHeight: function (h) {\n this.button_group.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.button_group.resetWidth(w);\n }\n});\n\nBI.SingleSelectLoader.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_select_loader\", BI.SingleSelectLoader);\n/**\n * 带加载的单选下拉面板\n * @class BI.SingleSelectPopupView\n * @extends Widget\n */\nBI.SingleSelectPopupView = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectPopupView.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-popup-view\",\n allowNoSelect: false,\n maxWidth: \"auto\",\n minWidth: 135,\n maxHeight: 400,\n valueFormatter: BI.emptyFn,\n itemsCreator: BI.emptyFn,\n onLoaded: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.SingleSelectPopupView.superclass._init.apply(this, arguments);\n var self = this, opts = this.options;\n\n this.loader = BI.createWidget({\n type: \"bi.single_select_loader\",\n allowNoSelect: opts.allowNoSelect,\n itemsCreator: opts.itemsCreator,\n valueFormatter: opts.valueFormatter,\n onLoaded: opts.onLoaded,\n value: opts.value\n });\n\n this.popupView = BI.createWidget({\n type: \"bi.popup_view\",\n stopPropagation: false,\n maxWidth: opts.maxWidth,\n minWidth: opts.minWidth,\n maxHeight: opts.maxHeight,\n element: this,\n el: this.loader,\n value: opts.value\n });\n\n this.popupView.on(BI.MultiPopupView.EVENT_CHANGE, function () {\n self.fireEvent(BI.SingleSelectPopupView.EVENT_CHANGE);\n });\n },\n\n setStartValue: function (v) {\n this.loader.setStartValue(v);\n },\n\n setValue: function (v) {\n this.popupView.setValue(v);\n },\n\n getValue: function () {\n return this.popupView.getValue();\n },\n\n populate: function (items) {\n this.popupView.populate.apply(this.popupView, arguments);\n },\n\n resetHeight: function (h) {\n this.popupView.resetHeight(h);\n },\n\n resetWidth: function (w) {\n this.popupView.resetWidth(w);\n }\n});\n\nBI.SingleSelectPopupView.EVENT_CHANGE = \"EVENT_CHANGE\";\n\n\nBI.shortcut(\"bi.single_select_popup_view\", BI.SingleSelectPopupView);/**\n *\n * 单选下拉框\n * @class BI.SingleSelectTrigger\n * @extends BI.Trigger\n */\n\nBI.SingleSelectTrigger = BI.inherit(BI.Trigger, {\n\n constants: {\n height: 14,\n rgap: 4,\n lgap: 4\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-trigger bi-border bi-border-radius\",\n allowNoSelect: false,\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn,\n searcher: {},\n switcher: {},\n\n adapter: null,\n masker: {},\n allowEdit: true\n });\n },\n\n _init: function () {\n BI.SingleSelectTrigger.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n if (o.height) {\n this.setHeight(o.height - 2);\n }\n\n this.searcher = BI.createWidget(o.searcher, {\n type: \"bi.single_select_searcher\",\n allowNoSelect: o.allowNoSelect,\n text: o.text,\n height: o.height,\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n popup: {},\n adapter: o.adapter,\n masker: o.masker,\n value: o.value\n });\n this.searcher.on(BI.SingleSelectSearcher.EVENT_START, function () {\n self.fireEvent(BI.SingleSelectTrigger.EVENT_START);\n });\n this.searcher.on(BI.SingleSelectSearcher.EVENT_PAUSE, function () {\n self.fireEvent(BI.SingleSelectTrigger.EVENT_PAUSE);\n });\n this.searcher.on(BI.SingleSelectSearcher.EVENT_SEARCHING, function () {\n self.fireEvent(BI.SingleSelectTrigger.EVENT_SEARCHING, arguments);\n });\n this.searcher.on(BI.SingleSelectSearcher.EVENT_STOP, function () {\n self.fireEvent(BI.SingleSelectTrigger.EVENT_STOP);\n });\n this.searcher.on(BI.SingleSelectSearcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.SingleSelectTrigger.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.SingleSelectSearcher.EVENT_FOCUS, function () {\n self.fireEvent(BI.SingleSelectTrigger.EVENT_FOCUS);\n });\n this.searcher.on(BI.SingleSelectSearcher.EVENT_BLUR, function () {\n self.fireEvent(BI.SingleSelectTrigger.EVENT_BLUR, arguments);\n });\n\n var wrapper = BI.createWidget({\n type: \"bi.htape\",\n element: this,\n items: [\n {\n el: this.searcher,\n width: \"fill\"\n }, {\n el: BI.createWidget(),\n width: 24\n }]\n });\n\n !o.allowEdit && BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.layout\"\n },\n left: 0,\n right: 24,\n top: 0,\n bottom: 0\n }]\n });\n },\n\n getSearcher: function () {\n return this.searcher;\n },\n\n stopEditing: function () {\n this.searcher.stopSearch();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n setValue: function (v) {\n this.searcher.setValue(v);\n },\n\n getKey: function () {\n return this.searcher.getKey();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n }\n});\n\nBI.SingleSelectTrigger.EVENT_TRIGGER_CLICK = \"EVENT_TRIGGER_CLICK\";\nBI.SingleSelectTrigger.EVENT_COUNTER_CLICK = \"EVENT_COUNTER_CLICK\";\nBI.SingleSelectTrigger.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SingleSelectTrigger.EVENT_START = \"EVENT_START\";\nBI.SingleSelectTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.SingleSelectTrigger.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.SingleSelectTrigger.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.SingleSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW = \"EVENT_BEFORE_COUNTER_POPUPVIEW\";\nBI.SingleSelectTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SingleSelectTrigger.EVENT_BLUR = \"EVENT_BLUR\";\n\nBI.shortcut(\"bi.single_select_trigger\", BI.SingleSelectTrigger);/**\n * @author: Teller\n * @createdAt: 2018/3/28\n * @Description\n*/\nBI.SingleSelectInsertList = BI.inherit(BI.Single, {\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-multi-select-insert-list\",\n allowNoSelect: false,\n itemsCreator: BI.emptyFn,\n valueFormatter: BI.emptyFn\n });\n },\n _init: function () {\n BI.SingleSelectInsertList.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n this.storeValue = o.value;\n\n var assertShowValue = function () {\n BI.isKey(self._startValue) && (self.storeValue = self._startValue);\n // self.trigger.setValue(self.storeValue);\n };\n\n this.adapter = BI.createWidget({\n type: \"bi.single_select_loader\",\n allowNoSelect: o.allowNoSelect,\n cls: \"popup-single-select-list bi-border-left bi-border-right bi-border-bottom\",\n itemsCreator: o.itemsCreator,\n valueFormatter: o.valueFormatter,\n logic: {\n dynamic: true\n },\n // onLoaded: o.onLoaded,\n el: {},\n value: o.value\n });\n this.adapter.on(BI.SingleSelectLoader.EVENT_CHANGE, function () {\n self.storeValue = this.getValue();\n assertShowValue();\n self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE);\n });\n\n this.searcherPane = BI.createWidget({\n type: \"bi.single_select_search_pane\",\n allowNoSelect: o.allowNoSelect,\n cls: \"bi-border-left bi-border-right bi-border-bottom\",\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.trigger.getKeyword();\n },\n itemsCreator: function (op, callback) {\n op.keywords = [self.trigger.getKeyword()];\n this.setKeyword(op.keywords[0]);\n o.itemsCreator(op, callback);\n }\n });\n this.searcherPane.setVisible(false);\n\n this.trigger = BI.createWidget({\n type: \"bi.searcher\",\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n adapter: this.adapter,\n popup: this.searcherPane,\n height: 200,\n masker: false,\n value: o.value,\n listeners: [{\n eventName: BI.Searcher.EVENT_START,\n action: function () {\n self._showSearcherPane();\n self._setStartValue();\n this.setValue(BI.deepClone(self.storeValue));\n }\n }, {\n eventName: BI.Searcher.EVENT_STOP,\n action: function () {\n self._showAdapter();\n self._setStartValue();\n self.adapter.setValue(self.storeValue);\n // 需要刷新回到初始界面,否则搜索的结果不能放在最前面\n self.adapter.populate();\n }\n }, {\n eventName: BI.Searcher.EVENT_PAUSE,\n action: function () {\n var keyword = this.getKeyword();\n self.storeValue = keyword;\n self._showAdapter();\n self.adapter.setValue(self.storeValue);\n self._setStartValue(keyword);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue();\n self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE);\n }\n }, {\n eventName: BI.Searcher.EVENT_SEARCHING,\n action: function () {\n var keywords = this.getKeyword();\n var last = BI.last(keywords);\n keywords = BI.initial(keywords || []);\n if (keywords.length > 0) {\n self._joinKeywords(keywords, function () {\n if (BI.isEndWithBlank(last)) {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n self.adapter.populate();\n self._setStartValue();\n } else {\n self.adapter.setValue(self.storeValue);\n assertShowValue();\n }\n });\n }\n }\n }, {\n eventName: BI.Searcher.EVENT_CHANGE,\n action: function () {\n self.storeValue = this.getValue();\n self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE);\n }\n }]\n });\n\n BI.createWidget({\n type: \"bi.vtape\",\n element: this,\n items: [{\n el: this.trigger,\n height: 24\n }, {\n el: this.adapter,\n height: \"fill\"\n }]\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.searcherPane,\n top: 24,\n bottom: 0,\n left: 0,\n right: 0\n }]\n });\n },\n\n _showAdapter: function () {\n this.adapter.setVisible(true);\n this.searcherPane.setVisible(false);\n },\n\n _showSearcherPane: function () {\n this.searcherPane.setVisible(true);\n this.adapter.setVisible(false);\n },\n\n _defaultState: function () {\n this.trigger.stopEditing();\n },\n\n _assertValue: function () {},\n\n _makeMap: function (values) {\n return BI.makeObject(values || []);\n },\n\n _joinKeywords: function (keywords, callback) {\n var self = this, o = this.options;\n this._assertValue(this.storeValue);\n if (!this._allData) {\n o.itemsCreator({\n type: BI.SingleSelectInsertList.REQ_GET_ALL_DATA\n }, function (ob) {\n self._allData = BI.map(ob.items, \"value\");\n digest(self._allData);\n });\n } else {\n digest(this._allData);\n }\n\n function digest (items) {\n var selectedMap = self._makeMap(items);\n BI.each(keywords, function (i, val) {\n if (BI.isNotNull(selectedMap[val])) {\n self.storeValue.type === BI.Selection.Single ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val);\n }\n });\n callback();\n }\n },\n\n _setStartValue: function (value) {\n this._startValue = value;\n this.adapter.setStartValue(value);\n },\n\n isAllSelected: function () {\n return this.adapter.isAllSelected();\n },\n\n resize: function () {\n // this.trigger.getCounter().adjustView();\n // this.trigger.adjustView();\n },\n setValue: function (v) {\n this.storeValue = v;\n this.adapter.setValue(this.storeValue);\n this.trigger.setValue(this.storeValue);\n },\n\n getValue: function () {\n return BI.deepClone(this.storeValue);\n },\n\n populate: function () {\n this._count = null;\n this._allData = null;\n this.adapter.populate.apply(this.adapter, arguments);\n this.trigger.populate.apply(this.trigger, arguments);\n }\n});\n\nBI.extend(BI.SingleSelectInsertList, {\n REQ_GET_DATA_LENGTH: 0,\n REQ_GET_ALL_DATA: -1\n});\n\nBI.SingleSelectInsertList.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_select_insert_list\", BI.SingleSelectInsertList);\n/**\n * 单选输入框\n * Created by guy on 15/11/3.\n * @class BI.SingleSelectEditor\n * @extends Widget\n */\nBI.SingleSelectEditor = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectEditor.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-editor\",\n el: {},\n text: BI.i18nText(\"BI-Basic_Please_Select\")\n });\n },\n\n _init: function () {\n BI.SingleSelectEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget(o.el, {\n type: \"bi.state_editor\",\n element: this,\n height: o.height,\n watermark: BI.i18nText(\"BI-Basic_Search\"),\n allowBlank: true,\n value: o.value,\n defaultText: o.text,\n text: o.text,\n });\n\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.editor.on(BI.StateEditor.EVENT_PAUSE, function () {\n self.fireEvent(BI.SingleSelectEditor.EVENT_PAUSE);\n });\n this.editor.on(BI.StateEditor.EVENT_FOCUS, function () {\n self.fireEvent(BI.SingleSelectEditor.EVENT_FOCUS);\n });\n this.editor.on(BI.StateEditor.EVENT_BLUR, function () {\n self.fireEvent(BI.SingleSelectEditor.EVENT_BLUR);\n });\n },\n\n focus: function () {\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n },\n\n setState: function (state) {\n this.editor.setState(state);\n },\n\n setValue: function (v) {\n this.editor.setValue(v);\n },\n\n getValue: function () {\n var v = this.editor.getState();\n if (BI.isArray(v) && v.length > 0) {\n return v[v.length - 1];\n }\n return \"\";\n\n },\n\n getKeywords: function () {\n var val = this.editor.getLastChangedValue();\n var keywords = val.match(/[\\S]+/g);\n if (BI.isEndWithBlank(val)) {\n return keywords.concat([\" \"]);\n }\n return keywords;\n },\n\n populate: function (items) {\n\n }\n});\n\nBI.SingleSelectEditor.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SingleSelectEditor.EVENT_BLUR = \"EVENT_BLUR\";\nBI.SingleSelectEditor.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.shortcut(\"bi.single_select_editor\", BI.SingleSelectEditor);/**\n * searcher\n * Created by guy on 15/11/3.\n * @class BI.SingleSelectSearcher\n * @extends Widget\n */\nBI.SingleSelectSearcher = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleSelectSearcher.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-select-searcher\",\n itemsCreator: BI.emptyFn,\n el: {},\n popup: {},\n valueFormatter: BI.emptyFn,\n adapter: null,\n masker: {},\n allowNoSelect: false\n });\n },\n\n _init: function () {\n BI.SingleSelectSearcher.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget(o.el, {\n type: \"bi.single_select_editor\",\n height: o.height,\n text: o.text,\n listeners: [{\n eventName: BI.SingleSelectEditor.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.SingleSelectSearcher.EVENT_FOCUS);\n }\n }, {\n eventName: BI.SingleSelectEditor.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.SingleSelectSearcher.EVENT_BLUR);\n }\n }]\n });\n\n this.searcher = BI.createWidget({\n type: \"bi.searcher\",\n element: this,\n height: o.height,\n isAutoSearch: false,\n isAutoSync: false,\n onSearch: function (op, callback) {\n callback();\n },\n el: this.editor,\n\n popup: BI.extend({\n type: \"bi.single_select_search_pane\",\n allowNoSelect: o.allowNoSelect,\n valueFormatter: o.valueFormatter,\n keywordGetter: function () {\n return self.editor.getValue();\n },\n itemsCreator: function (op, callback) {\n var keyword = self.editor.getValue();\n op.keywords = [keyword];\n this.setKeyword(keyword);\n o.itemsCreator(op, callback);\n },\n value: o.value\n }, o.popup),\n\n adapter: o.adapter,\n masker: o.masker\n });\n this.searcher.on(BI.Searcher.EVENT_START, function () {\n self.fireEvent(BI.SingleSelectSearcher.EVENT_START);\n });\n this.searcher.on(BI.Searcher.EVENT_PAUSE, function () {\n if (this.hasMatched()) {\n\n }\n self.fireEvent(BI.SingleSelectSearcher.EVENT_PAUSE);\n });\n this.searcher.on(BI.Searcher.EVENT_STOP, function () {\n self.fireEvent(BI.SingleSelectSearcher.EVENT_STOP);\n });\n this.searcher.on(BI.Searcher.EVENT_CHANGE, function () {\n self.fireEvent(BI.SingleSelectSearcher.EVENT_CHANGE, arguments);\n });\n this.searcher.on(BI.Searcher.EVENT_SEARCHING, function () {\n var keywords = this.getKeywords();\n self.fireEvent(BI.SingleSelectSearcher.EVENT_SEARCHING, keywords);\n });\n\n if(BI.isNotNull(o.value)){\n this.setState(o.value);\n }\n },\n\n adjustView: function () {\n this.searcher.adjustView();\n },\n\n isSearching: function () {\n return this.searcher.isSearching();\n },\n\n stopSearch: function () {\n this.searcher.stopSearch();\n },\n\n getKeyword: function () {\n return this.editor.getValue();\n },\n\n hasMatched: function () {\n return this.searcher.hasMatched();\n },\n\n hasChecked: function () {\n return this.searcher.getView() && this.searcher.getView().hasChecked();\n },\n\n setAdapter: function (adapter) {\n this.searcher.setAdapter(adapter);\n },\n\n setState: function (v) {\n var o = this.options;\n if (BI.isNull(v)) {\n this.editor.setState(BI.Selection.None);\n } else {\n this.editor.setState(o.valueFormatter(v + \"\") || (v + \"\"));\n }\n },\n\n setValue: function (ob) {\n this.setState(ob);\n this.searcher.setValue(ob);\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n\n getValue: function () {\n return this.searcher.getValue();\n },\n\n populate: function (items) {\n this.searcher.populate.apply(this.searcher, arguments);\n }\n});\n\nBI.SingleSelectSearcher.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.SingleSelectSearcher.EVENT_BLUR = \"EVENT_BLUR\";\nBI.SingleSelectSearcher.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.SingleSelectSearcher.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SingleSelectSearcher.EVENT_START = \"EVENT_START\";\nBI.SingleSelectSearcher.EVENT_STOP = \"EVENT_STOP\";\nBI.SingleSelectSearcher.EVENT_PAUSE = \"EVENT_PAUSE\";\nBI.SingleSelectSearcher.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.shortcut(\"bi.single_select_searcher\", BI.SingleSelectSearcher);\nBI.SignTextEditor = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n var conf = BI.SignTextEditor.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n baseCls: (conf.baseCls || \"\") + \" bi-sign-initial-editor\",\n validationChecker: BI.emptyFn,\n text: \"\",\n height: 24\n });\n },\n\n _init: function () {\n BI.SignTextEditor.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.editor = BI.createWidget({\n type: \"bi.editor\",\n height: o.height,\n hgap: 4,\n vgap: 2,\n value: o.value,\n validationChecker: o.validationChecker,\n allowBlank: false\n });\n this.text = BI.createWidget({\n type: \"bi.text_button\",\n cls: \"sign-editor-text\",\n title: function () {\n return self.getValue();\n },\n textAlign: o.textAlign,\n height: o.height,\n hgap: 4,\n handler: function () {\n self._showInput();\n self.editor.focus();\n self.editor.selectAll();\n }\n });\n this.text.on(BI.TextButton.EVENT_CHANGE, function () {\n BI.nextTick(function () {\n self.fireEvent(BI.SignTextEditor.EVENT_CLICK_LABEL);\n });\n });\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: this.text,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n });\n this.editor.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CONFIRM, function () {\n self._showHint();\n self._checkText();\n self.fireEvent(BI.SignTextEditor.EVENT_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM, function () {\n self._showHint();\n self._checkText();\n self.fireEvent(BI.SignTextEditor.EVENT_CHANGE_CONFIRM, arguments);\n });\n this.editor.on(BI.Editor.EVENT_ERROR, function () {\n self._checkText();\n });\n BI.createWidget({\n type: \"bi.vertical\",\n scrolly: false,\n element: this,\n items: [this.editor]\n });\n this._showHint();\n self._checkText();\n },\n\n _checkText: function () {\n var o = this.options;\n BI.nextTick(BI.bind(function () {\n if (this.editor.getValue() === \"\") {\n this.text.setValue(o.watermark || \"\");\n this.text.element.addClass(\"bi-water-mark\");\n } else {\n var v = this.editor.getValue();\n v = (BI.isEmpty(v) || v == o.text) ? o.text : v + o.text;\n this.text.setValue(v);\n this.text.element.removeClass(\"bi-water-mark\");\n }\n }, this));\n },\n\n _showInput: function () {\n this.editor.visible();\n this.text.invisible();\n },\n\n _showHint: function () {\n this.editor.invisible();\n this.text.visible();\n },\n\n setTitle: function (title) {\n this.text.setTitle(title);\n },\n\n setWarningTitle: function (title) {\n this.text.setWarningTitle(title);\n },\n\n focus: function () {\n this._showInput();\n this.editor.focus();\n },\n\n blur: function () {\n this.editor.blur();\n this._showHint();\n this._checkText();\n },\n\n doRedMark: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doRedMark.apply(this.text, arguments);\n },\n\n unRedMark: function () {\n this.text.unRedMark.apply(this.text, arguments);\n },\n\n doHighLight: function () {\n if (this.editor.getValue() === \"\" && BI.isKey(this.options.watermark)) {\n return;\n }\n this.text.doHighLight.apply(this.text, arguments);\n },\n\n unHighLight: function () {\n this.text.unHighLight.apply(this.text, arguments);\n },\n\n isValid: function () {\n return this.editor.isValid();\n },\n\n setErrorText: function (text) {\n this.editor.setErrorText(text);\n },\n\n getErrorText: function () {\n return this.editor.getErrorText();\n },\n\n isEditing: function () {\n return this.editor.isEditing();\n },\n\n getLastValidValue: function () {\n return this.editor.getLastValidValue();\n },\n\n getLastChangedValue: function () {\n return this.editor.getLastChangedValue();\n },\n\n setValue: function (v) {\n this.editor.setValue(v);\n this._checkText();\n },\n\n getValue: function () {\n return this.editor.getValue();\n },\n\n getState: function () {\n return this.text.getValue();\n },\n\n setState: function (v) {\n var o = this.options;\n this._showHint();\n v = (BI.isEmpty(v) || v == o.text) ? o.text : v + o.text;\n this.text.setValue(v);\n }\n});\nBI.SignTextEditor.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.SignTextEditor.EVENT_CHANGE_CONFIRM = \"EVENT_CHANGE_CONFIRM\";\nBI.SignTextEditor.EVENT_CLICK_LABEL = \"EVENT_CLICK_LABEL\";\n\nBI.shortcut(\"bi.sign_text_editor\", BI.SignTextEditor);/**\n * Created by zcf on 2016/9/22.\n */\nBI.SliderIconButton = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-single-slider-button\"\n },\n\n constants: {\n LARGE_SIZE: 16,\n NORMAL_SIZE: 12,\n LARGE_OFFSET: 4,\n NORMAL_OFFSET: 6\n },\n\n render: function () {\n var self = this;\n return {\n type: \"bi.absolute\",\n ref: function () {\n self.wrapper = this;\n },\n items: [{\n el: {\n type: \"bi.text_button\",\n cls: \"slider-button bi-high-light-border\",\n ref: function () {\n self.slider = this;\n }\n }\n }]\n };\n }\n});\nBI.shortcut(\"bi.single_slider_button\", BI.SliderIconButton);/**\n * Created by zcf on 2016/9/22.\n */\nBI.SingleSlider = BI.inherit(BI.Single, {\n _constant: {\n EDITOR_WIDTH: 90,\n EDITOR_HEIGHT: 30,\n SLIDER_WIDTH_HALF: 15,\n SLIDER_WIDTH: 30,\n SLIDER_HEIGHT: 30,\n TRACK_HEIGHT: 24,\n TRACK_GAP_HALF: 7,\n TRACK_GAP: 14\n },\n\n props: {\n baseCls: \"bi-single-slider bi-slider-track\",\n digit: false,\n unit: \"\"\n },\n\n render: function () {\n var self = this, o = this.options;\n var c = this._constant;\n this.enable = false;\n this.value = \"\";\n\n this.grayTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"gray-track\",\n height: 6\n });\n this.blueTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"blue-track bi-high-light-background\",\n height: 6\n });\n this.track = this._createTrackWrapper();\n\n this.slider = BI.createWidget({\n type: \"bi.single_slider_button\"\n });\n this._draggable(this.slider);\n var sliderVertical = BI.createWidget({\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [this.slider]\n }],\n hgap: c.SLIDER_WIDTH_HALF,\n height: c.SLIDER_HEIGHT\n });\n // 这边其实是有问题的,拖拽区域是个圆,在圆的边缘拖拽后放开,这边计算出来的蓝条宽度实际上会比放开时长一点或者短一点\n sliderVertical.element.click(function (e) {\n if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {\n var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;\n var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;\n var percent = 0;\n if (offset < 0) {\n percent = 0;\n }\n if (offset > 0 && offset < trackLength) {\n percent = offset * 100 / self._getGrayTrackLength();\n }\n if (offset >= trackLength) {\n percent = 100;\n }\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setAllPosition(significantPercent);\n var v = self._getValueByPercent(significantPercent);\n v = o.digit === false ? v : v.toFixed(o.digit);\n self.label.setValue(v);\n self.value = v;\n self.fireEvent(BI.SingleSlider.EVENT_CHANGE);\n }\n });\n this.label = BI.createWidget({\n type: \"bi.sign_text_editor\",\n cls: \"slider-editor-button\",\n text: o.unit,\n width: c.EDITOR_WIDTH - 2,\n allowBlank: false,\n textAlign: \"center\",\n validationChecker: function (v) {\n return self._checkValidation(v);\n }\n });\n this.label.element.hover(function () {\n self.label.element.removeClass(\"bi-border\").addClass(\"bi-border\");\n }, function () {\n self.label.element.removeClass(\"bi-border\");\n });\n this.label.on(BI.SignEditor.EVENT_CONFIRM, function () {\n var v = BI.parseFloat(this.getValue());\n var percent = self._getPercentByValue(v);\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setAllPosition(significantPercent);\n this.setValue(v);\n self.value = v;\n self.fireEvent(BI.SingleSlider.EVENT_CHANGE);\n });\n this._setVisible(false);\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.track,\n width: \"100%\",\n height: c.TRACK_HEIGHT\n }]\n }],\n hgap: c.TRACK_GAP_HALF,\n height: c.TRACK_HEIGHT\n },\n top: 23,\n left: 0,\n width: \"100%\"\n }, {\n el: sliderVertical,\n top: 20,\n left: 0,\n width: \"100%\"\n }, {\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.horizontal_auto\",\n items: [this.label]\n }],\n height: c.EDITOR_HEIGHT\n },\n top: 0,\n left: 0,\n width: \"100%\"\n }]\n };\n },\n\n _draggable: function (widget) {\n var self = this, o = this.options;\n var startDrag = false;\n var size = 0, offset = 0, defaultSize = 0;\n var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX) {\n if (mouseMoveTracker.isDragging()) {\n startDrag = true;\n offset += deltaX;\n size = optimizeSize(defaultSize + offset);\n widget.element.addClass(\"dragging\");\n var percent = size * 100 / (self._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));// 直接对计算出来的百分数保留到小数点后一位,相当于分成了1000份。\n self._setBlueTrack(significantPercent);\n self._setLabelPosition(significantPercent);\n self._setSliderPosition(significantPercent);\n var v = self._getValueByPercent(significantPercent);\n v = o.digit === false ? v : v.toFixed(o.digit);\n self.label.setValue(v);\n self.value = v;\n }\n }, function () {\n if (startDrag === true) {\n size = optimizeSize(size);\n var percent = size * 100 / (self._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setSliderPosition(significantPercent);\n size = 0;\n offset = 0;\n defaultSize = size;\n startDrag = false;\n }\n widget.element.removeClass(\"dragging\");\n mouseMoveTracker.releaseMouseMoves();\n self.fireEvent(BI.SingleSlider.EVENT_CHANGE);\n }, window);\n widget.element.on(\"mousedown\", function (event) {\n if(!widget.isEnabled()) {\n return;\n }\n defaultSize = this.offsetLeft;\n optimizeSize(defaultSize);\n mouseMoveTracker.captureMouseMoves(event);\n });\n\n function optimizeSize (s) {\n return BI.clamp(s, 0, self._getGrayTrackLength());\n }\n },\n\n _createTrackWrapper: function () {\n return BI.createWidget({\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.grayTrack,\n top: 0,\n left: 0,\n width: \"100%\"\n }, {\n el: this.blueTrack,\n top: 0,\n left: 0,\n width: \"0%\"\n }]\n }],\n hgap: 8,\n height: 8\n },\n top: 8,\n left: 0,\n width: \"100%\"\n }]\n });\n },\n\n _checkValidation: function (v) {\n var o = this.options;\n var valid = false;\n if (BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max)) {\n if(o.digit === false) {\n valid = true;\n }else{\n var dotText = (v + \"\").split(\".\")[1] || \"\";\n valid = (dotText.length === o.digit);\n }\n }\n return valid;\n },\n\n _setBlueTrack: function (percent) {\n this.blueTrack.element.css({width: percent + \"%\"});\n },\n\n _setLabelPosition: function (percent) {\n // this.label.element.css({left: percent + \"%\"});\n },\n\n _setSliderPosition: function (percent) {\n this.slider.element.css({left: percent + \"%\"});\n },\n\n _setAllPosition: function (percent) {\n this._setSliderPosition(percent);\n this._setLabelPosition(percent);\n this._setBlueTrack(percent);\n },\n\n _setVisible: function (visible) {\n this.slider.setVisible(visible);\n this.label.setVisible(visible);\n },\n\n _getGrayTrackLength: function () {\n return this.grayTrack.element[0].scrollWidth;\n },\n\n _getValueByPercent: function (percent) {\n var thousandth = BI.parseInt(percent * 10);\n return (((this.max - this.min) * thousandth) / 1000 + this.min);\n },\n\n _getPercentByValue: function (v) {\n return (v - this.min) * 100 / (this.max - this.min);\n },\n\n getValue: function () {\n return this.value;\n },\n\n setValue: function (v) {\n var o = this.options;\n v = BI.parseFloat(v);\n v = o.digit === false ? v : v.toFixed(o.digit);\n if ((!isNaN(v))) {\n if (this._checkValidation(v)) {\n this.value = v;\n }\n if (v > this.max) {\n this.value = this.max;\n }\n if (v < this.min) {\n this.value = this.min;\n }\n }\n },\n\n _setEnable: function (b) {\n BI.SingleSlider.superclass._setEnable.apply(this, [b]);\n if(b) {\n this.blueTrack.element.removeClass(\"disabled-blue-track\").addClass(\"blue-track\");\n } else {\n this.blueTrack.element.removeClass(\"blue-track\").addClass(\"disabled-blue-track\");\n }\n },\n\n setMinAndMax: function (v) {\n var minNumber = BI.parseFloat(v.min);\n var maxNumber = BI.parseFloat(v.max);\n if ((!isNaN(minNumber)) && (!isNaN(maxNumber)) && (maxNumber > minNumber )) {\n this.min = minNumber;\n this.max = maxNumber;\n }\n },\n\n reset: function () {\n this._setVisible(false);\n this.enable = false;\n this.value = \"\";\n this.min = 0;\n this.max = 0;\n this._setBlueTrack(0);\n\n },\n\n populate: function () {\n if (!isNaN(this.min) && !isNaN(this.max)) {\n this._setVisible(true);\n this.enable = true;\n this.label.setErrorText(BI.i18nText(\"BI-Basic_Please_Enter_Number_Between\", this.min, this.max));\n if (BI.isNumeric(this.value) || BI.isNotEmptyString(this.value)) {\n this.label.setValue(this.value);\n this._setAllPosition(this._getPercentByValue(this.value));\n } else {\n this.label.setValue(this.max);\n this._setAllPosition(100);\n }\n }\n }\n});\nBI.SingleSlider.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_slider\", BI.SingleSlider);/**\n * Created by Urthur on 2017/9/12.\n */\nBI.SingleSliderLabel = BI.inherit(BI.Single, {\n _constant: {\n EDITOR_WIDTH: 90,\n EDITOR_HEIGHT: 20,\n HEIGHT: 20,\n SLIDER_WIDTH_HALF: 15,\n SLIDER_WIDTH: 30,\n SLIDER_HEIGHT: 30,\n TRACK_HEIGHT: 24,\n TRACK_GAP_HALF: 7,\n TRACK_GAP: 14\n },\n _defaultConfig: function () {\n return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-slider-label bi-slider-track\",\n digit: false,\n unit: \"\"\n });\n },\n _init: function () {\n BI.SingleSliderLabel.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n var c = this._constant;\n this.enable = false;\n this.value = \"\";\n\n this.grayTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"gray-track\",\n height: 6\n });\n this.blueTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"blue-track bi-high-light-background\",\n height: 6\n });\n this.track = this._createTrackWrapper();\n\n this.slider = BI.createWidget({\n type: \"bi.single_slider_button\"\n });\n this._draggable(this.slider);\n var sliderVertical = BI.createWidget({\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [this.slider]\n }],\n hgap: c.SLIDER_WIDTH_HALF,\n height: c.SLIDER_HEIGHT\n });\n sliderVertical.element.click(function (e) {\n if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {\n var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;\n var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;\n var percent = 0;\n if (offset < 0) {\n percent = 0;\n }\n if (offset > 0 && offset < trackLength) {\n percent = offset * 100 / self._getGrayTrackLength();\n }\n if (offset >= trackLength) {\n percent = 100;\n }\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setAllPosition(significantPercent);\n var v = self._getValueByPercent(significantPercent);\n v = o.digit === false ? v : v.toFixed(o.digit);\n self.label.setText(v + o.unit);\n self.value = v;\n self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);\n }\n });\n this.label = BI.createWidget({\n type: \"bi.label\",\n height: c.HEIGHT,\n width: c.EDITOR_WIDTH - 2\n });\n\n this._setVisible(false);\n BI.createWidget({\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.track,\n width: \"100%\",\n height: c.TRACK_HEIGHT\n }]\n }],\n hgap: c.TRACK_GAP_HALF,\n height: c.TRACK_HEIGHT\n },\n top: 13,\n left: 0,\n width: \"100%\"\n }, {\n el: sliderVertical,\n top: 10,\n left: 0,\n width: \"100%\"\n }, {\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.horizontal_auto\",\n items: [this.label]\n }],\n height: c.EDITOR_HEIGHT\n },\n top: 0,\n left: 0,\n width: \"100%\"\n }]\n });\n },\n\n _draggable: function (widget) {\n var self = this, o = this.options;\n var startDrag = false;\n var size = 0, offset = 0, defaultSize = 0;\n var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX) {\n if (mouseMoveTracker.isDragging()) {\n startDrag = true;\n offset += deltaX;\n size = optimizeSize(defaultSize + offset);\n widget.element.addClass(\"dragging\");\n var percent = size * 100 / (self._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));// 直接对计算出来的百分数保留到小数点后一位,相当于分成了1000份。\n self._setBlueTrack(significantPercent);\n self._setLabelPosition(significantPercent);\n self._setSliderPosition(significantPercent);\n var v = self._getValueByPercent(significantPercent);\n v = o.digit === false ? v : v.toFixed(o.digit);\n self.label.setValue(v + o.unit);\n self.value = v;\n self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);\n }\n }, function () {\n if (startDrag === true) {\n size = optimizeSize(size);\n var percent = size * 100 / (self._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setSliderPosition(significantPercent);\n size = 0;\n offset = 0;\n defaultSize = size;\n startDrag = false;\n }\n widget.element.removeClass(\"dragging\");\n mouseMoveTracker.releaseMouseMoves();\n self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);\n }, window);\n widget.element.on(\"mousedown\", function (event) {\n if(!widget.isEnabled()) {\n return;\n }\n defaultSize = this.offsetLeft;\n optimizeSize(defaultSize);\n mouseMoveTracker.captureMouseMoves(event);\n });\n\n function optimizeSize (s) {\n return BI.clamp(s, 0, self._getGrayTrackLength());\n }\n },\n\n _createTrackWrapper: function () {\n return BI.createWidget({\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.grayTrack,\n top: 0,\n left: 0,\n width: \"100%\"\n }, {\n el: this.blueTrack,\n top: 0,\n left: 0,\n width: \"0%\"\n }]\n }],\n hgap: 8,\n height: 8\n },\n top: 8,\n left: 0,\n width: \"100%\"\n }]\n });\n },\n\n _checkValidation: function (v) {\n return BI.isNumeric(v) && !(BI.isNull(v) || v < this.min || v > this.max);\n },\n\n _setBlueTrack: function (percent) {\n this.blueTrack.element.css({width: percent + \"%\"});\n },\n\n _setLabelPosition: function (percent) {\n // this.label.element.css({left: percent + \"%\"});\n },\n\n _setSliderPosition: function (percent) {\n this.slider.element.css({left: percent + \"%\"});\n },\n\n _setAllPosition: function (percent) {\n this._setSliderPosition(percent);\n this._setLabelPosition(percent);\n this._setBlueTrack(percent);\n },\n\n _setVisible: function (visible) {\n this.slider.setVisible(visible);\n this.label.setVisible(visible);\n },\n\n _getGrayTrackLength: function () {\n return this.grayTrack.element[0].scrollWidth;\n },\n\n _getValueByPercent: function (percent) {\n var thousandth = BI.parseInt(percent * 10);\n return (((this.max - this.min) * thousandth) / 1000 + this.min);\n },\n\n _getPercentByValue: function (v) {\n return (v - this.min) * 100 / (this.max - this.min);\n },\n\n _setEnable: function (b) {\n BI.SingleSliderLabel.superclass._setEnable.apply(this, [b]);\n if(b) {\n this.blueTrack.element.removeClass(\"disabled-blue-track\").addClass(\"blue-track\");\n } else {\n this.blueTrack.element.removeClass(\"blue-track\").addClass(\"disabled-blue-track\");\n }\n },\n\n getValue: function () {\n return this.value;\n },\n\n setValue: function (v) {\n var o = this.options;\n v = BI.parseFloat(v);\n v = o.digit === false ? v : v.toFixed(o.digit);\n if ((!isNaN(v))) {\n if (this._checkValidation(v)) {\n this.value = v;\n }\n if (v > this.max) {\n this.value = this.max;\n }\n if (v < this.min) {\n this.value = this.min;\n }\n }\n },\n\n setMinAndMax: function (v) {\n var minNumber = BI.parseFloat(v.min);\n var maxNumber = BI.parseFloat(v.max);\n if ((!isNaN(minNumber)) && (!isNaN(maxNumber)) && (maxNumber > minNumber )) {\n this.min = minNumber;\n this.max = maxNumber;\n }\n },\n\n reset: function () {\n this._setVisible(false);\n this.enable = false;\n this.value = \"\";\n this.min = 0;\n this.max = 0;\n this._setBlueTrack(0);\n },\n\n populate: function () {\n var o = this.options;\n if (!isNaN(this.min) && !isNaN(this.max)) {\n this._setVisible(true);\n this.enable = true;\n if (BI.isNumeric(this.value) || BI.isNotEmptyString(this.value)) {\n this.label.setValue(this.value + o.unit);\n this._setAllPosition(this._getPercentByValue(this.value));\n } else {\n this.label.setValue(this.max + o.unit);\n this._setAllPosition(100);\n }\n }\n }\n});\nBI.SingleSliderLabel.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_slider_label\", BI.SingleSliderLabel);/**\n * normal single slider\n * Created by Young on 2017/6/21.\n */\nBI.SingleSliderNormal = BI.inherit(BI.Single, {\n\n _constant: {\n HEIGHT: 28,\n SLIDER_WIDTH_HALF: 15,\n SLIDER_WIDTH: 30,\n SLIDER_HEIGHT: 30,\n TRACK_HEIGHT: 24,\n TRACK_GAP_HALF: 7,\n TRACK_GAP: 14\n },\n\n props: {\n baseCls: \"bi-single-slider-normal bi-slider-track\",\n minMax: {\n min: 0,\n max: 100\n }\n // color: \"#3f8ce8\"\n },\n\n render: function () {\n var self = this;\n var c = this._constant;\n var track = this._createTrack();\n this.slider = BI.createWidget({\n type: \"bi.single_slider_button\"\n });\n this._draggable(this.slider);\n\n var sliderVertical = BI.createWidget({\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [this.slider]\n }],\n hgap: c.SLIDER_WIDTH_HALF,\n height: c.SLIDER_HEIGHT\n });\n sliderVertical.element.click(function (e) {\n if (self.enable && self.isEnabled() && sliderVertical.element[0] === e.originalEvent.target) {\n var offset = e.clientX - self.element.offset().left - c.SLIDER_WIDTH_HALF;\n var trackLength = self.track.element[0].scrollWidth - c.TRACK_GAP;\n var percent = 0;\n if (offset < 0) {\n percent = 0;\n }\n if (offset > 0 && offset < trackLength) {\n percent = offset * 100 / self._getGrayTrackLength();\n }\n if (offset >= trackLength) {\n percent = 100;\n }\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setAllPosition(significantPercent);\n var v = self._getValueByPercent(significantPercent);\n self.value = v;\n self.fireEvent(BI.SingleSlider.EVENT_CHANGE);\n }\n });\n\n return {\n type: \"bi.absolute\",\n element: this,\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: track,\n width: \"100%\",\n height: c.TRACK_HEIGHT\n }]\n }],\n hgap: c.TRACK_GAP_HALF,\n height: c.TRACK_HEIGHT\n },\n top: 3,\n left: 0,\n width: \"100%\"\n }, {\n el: sliderVertical,\n top: 0,\n left: 0,\n width: \"100%\"\n }]\n };\n },\n\n _draggable: function (widget) {\n var self = this, o = this.options;\n var startDrag = false;\n var size = 0, offset = 0, defaultSize = 0;\n var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX) {\n if (mouseMoveTracker.isDragging()) {\n startDrag = true;\n offset += deltaX;\n size = optimizeSize(defaultSize + offset);\n widget.element.addClass(\"dragging\");\n var percent = size * 100 / (self._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));// 直接对计算出来的百分数保留到小数点后一位,相当于分成了1000份。\n self._setBlueTrack(significantPercent);\n self._setSliderPosition(significantPercent);\n var v = self._getValueByPercent(significantPercent);\n v = o.digit === false ? v : v.toFixed(o.digit);\n self.value = v;\n self.fireEvent(BI.SingleSliderNormal.EVENT_DRAG, v);\n }\n }, function () {\n if (startDrag === true) {\n size = optimizeSize(size);\n var percent = size * 100 / (self._getGrayTrackLength());\n var significantPercent = BI.parseFloat(percent.toFixed(1));\n self._setSliderPosition(significantPercent);\n size = 0;\n offset = 0;\n defaultSize = size;\n startDrag = false;\n }\n widget.element.removeClass(\"dragging\");\n mouseMoveTracker.releaseMouseMoves();\n self.fireEvent(BI.SingleSlider.EVENT_CHANGE);\n }, window);\n widget.element.on(\"mousedown\", function (event) {\n if(!widget.isEnabled()) {\n return;\n }\n defaultSize = this.offsetLeft;\n optimizeSize(defaultSize);\n mouseMoveTracker.captureMouseMoves(event);\n });\n\n function optimizeSize (s) {\n return BI.clamp(s, 0, self._getGrayTrackLength());\n }\n },\n\n _createTrack: function () {\n var self = this;\n var c = this._constant;\n this.grayTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"gray-track\",\n height: 6\n });\n this.blueTrack = BI.createWidget({\n type: \"bi.layout\",\n cls: \"blue-track bi-high-light-background\",\n height: 6\n });\n if (this.options.color) {\n this.blueTrack.element.css({\"background-color\": this.options.color});\n }\n\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: this.grayTrack,\n top: 0,\n left: 0,\n width: \"100%\"\n }, {\n el: this.blueTrack,\n top: 0,\n left: 0,\n width: \"0%\"\n }]\n }],\n hgap: 8,\n height: 8\n },\n top: 8,\n left: 0,\n width: \"100%\"\n }],\n ref: function (ref) {\n self.track = ref;\n }\n };\n },\n\n _checkValidation: function (v) {\n return !(BI.isNull(v) || v < this.min || v > this.max);\n },\n\n _setBlueTrack: function (percent) {\n this.blueTrack.element.css({width: percent + \"%\"});\n },\n\n _setSliderPosition: function (percent) {\n this.slider.element.css({left: percent + \"%\"});\n },\n\n _setAllPosition: function (percent) {\n this._setSliderPosition(percent);\n this._setBlueTrack(percent);\n },\n\n _setVisible: function (visible) {\n this.slider.setVisible(visible);\n },\n\n _getGrayTrackLength: function () {\n return this.grayTrack.element[0].scrollWidth;\n },\n\n _getValueByPercent: function (percent) {\n var thousandth = BI.parseInt(percent * 10);\n return (((this.max - this.min) * thousandth) / 1000 + this.min);\n },\n\n _getPercentByValue: function (v) {\n return (v - this.min) * 100 / (this.max - this.min);\n },\n\n _setEnable: function (b) {\n BI.SingleSliderNormal.superclass._setEnable.apply(this, [b]);\n if(b) {\n this.blueTrack.element.removeClass(\"disabled-blue-track\").addClass(\"blue-track\");\n } else {\n this.blueTrack.element.removeClass(\"blue-track\").addClass(\"disabled-blue-track\");\n }\n },\n\n getValue: function () {\n return this.value;\n },\n\n setValue: function (v) {\n var value = BI.parseFloat(v);\n if ((!isNaN(value))) {\n if (this._checkValidation(value)) {\n this.value = value;\n }\n if (value > this.max) {\n this.value = this.max;\n }\n if (value < this.min) {\n this.value = this.min;\n }\n }\n },\n\n setMinAndMax: function (v) {\n var minNumber = BI.parseFloat(v.min);\n var maxNumber = BI.parseFloat(v.max);\n if ((!isNaN(minNumber)) && (!isNaN(maxNumber)) && (maxNumber > minNumber )) {\n this.min = minNumber;\n this.max = maxNumber;\n }\n },\n\n reset: function () {\n this._setVisible(false);\n this.enable = false;\n this.value = \"\";\n this.min = 0;\n this.max = 0;\n this._setBlueTrack(0);\n },\n\n populate: function () {\n if (!isNaN(this.min) && !isNaN(this.max)) {\n this._setVisible(true);\n this.enable = true;\n if (BI.isNumeric(this.value) || BI.isNotEmptyString(this.value)) {\n this._setAllPosition(this._getPercentByValue(this.value));\n } else {\n this._setAllPosition(100);\n }\n }\n }\n});\nBI.SingleSliderNormal.EVENT_DRAG = \"EVENT_DRAG\";\nBI.shortcut(\"bi.single_slider_normal\", BI.SingleSliderNormal);/**\n * @class BI.SingleTreeCombo\n * @extends BI.Widget\n */\nBI.SingleTreeCombo = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleTreeCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-tree-combo\",\n trigger: {},\n height: 24,\n text: \"\",\n items: [],\n value: \"\",\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.SingleTreeCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.trigger = BI.createWidget(BI.extend({\n type: \"bi.single_tree_trigger\",\n text: o.text,\n height: o.height,\n items: o.items,\n value: o.value\n }, o.trigger));\n\n this.popup = BI.createWidget({\n type: \"bi.single_level_tree\",\n items: o.items,\n value: o.value\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n element: this,\n adjustLength: 2,\n el: this.trigger,\n popup: {\n el: this.popup\n }\n });\n\n this.combo.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.fireEvent(BI.SingleTreeCombo.EVENT_BEFORE_POPUPVIEW, arguments);\n });\n\n this.popup.on(BI.SingleTreePopup.EVENT_CHANGE, function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.SingleTreeCombo.EVENT_CHANGE);\n });\n },\n\n populate: function (items) {\n this.combo.populate(items);\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.trigger.setValue(v);\n this.popup.setValue(v);\n },\n\n getValue: function () {\n return this.popup.getValue();\n }\n});\n\nBI.SingleTreeCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.SingleTreeCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.single_tree_combo\", BI.SingleTreeCombo);/**\n * @class BI.SingleTreePopup\n * @extends BI.Pane\n */\n\nBI.SingleTreePopup = BI.inherit(BI.Pane, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleTreePopup.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-level-tree\",\n tipText: BI.i18nText(\"BI-No_Selected_Item\"),\n items: [],\n value: \"\"\n });\n },\n\n _init: function () {\n BI.SingleTreePopup.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n \n this.tree = BI.createWidget({\n type: \"bi.level_tree\",\n expander: {\n isDefaultInit: true\n },\n items: o.items,\n value: o.value,\n chooseType: BI.Selection.Single\n });\n\n BI.createWidget({\n type: \"bi.vertical\",\n element: this,\n vgap: 5,\n items: [this.tree]\n });\n\n this.tree.on(BI.Controller.EVENT_CHANGE, function () {\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n });\n\n this.tree.on(BI.LevelTree.EVENT_CHANGE, function () {\n self.fireEvent(BI.SingleTreePopup.EVENT_CHANGE);\n });\n\n this.check();\n },\n\n getValue: function () {\n return this.tree.getValue();\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.tree.setValue(v);\n },\n\n populate: function (items) {\n BI.SingleTreePopup.superclass.populate.apply(this, arguments);\n this.tree.populate(items);\n }\n});\n\nBI.SingleTreePopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.single_level_tree\", BI.SingleTreePopup);/**\n * @class BI.SingleTreeTrigger\n * @extends BI.Trigger\n */\n\nBI.SingleTreeTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n return BI.extend(BI.SingleTreeTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-single-tree-trigger\",\n height: 24,\n text: \"\",\n items: [],\n value: \"\"\n });\n },\n\n _init: function () {\n BI.SingleTreeTrigger.superclass._init.apply(this, arguments);\n\n var self = this, o = this.options;\n\n this.trigger = BI.createWidget({\n type: \"bi.select_text_trigger\",\n element: this,\n text: o.text,\n items: o.items,\n height: o.height,\n value: o.value\n });\n },\n\n _checkTitle: function () {\n var self = this, val = this.getValue();\n BI.any(this.options.items, function (i, item) {\n if (BI.contains(val, item.value)) {\n self.trigger.setTitle(item.text || item.value);\n return true;\n }\n });\n },\n\n setValue: function (v) {\n v = BI.isArray(v) ? v : [v];\n this.options.value = v;\n this.trigger.setValue(v);\n this._checkTitle();\n },\n\n getValue: function () {\n return this.options.value || [];\n },\n\n populate: function (items) {\n BI.SingleTreeTrigger.superclass.populate.apply(this, arguments);\n this.trigger.populate(items);\n }\n\n});\n\nBI.shortcut(\"bi.single_tree_trigger\", BI.SingleTreeTrigger);/**\n * @class BI.TextValueDownListCombo\n * @extend BI.Widget\n */\nBI.TextValueDownListCombo = BI.inherit(BI.Widget, {\n _defaultConfig: function () {\n return BI.extend(BI.TextValueDownListCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-text-value-down-list-combo\",\n height: 24,\n attributes: {\n tabIndex: 0\n }\n });\n },\n\n _init: function () {\n BI.TextValueDownListCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this._createValueMap();\n\n var value;\n if(BI.isNotNull(o.value)) {\n value = this._digest(o.value);\n }\n this.trigger = BI.createWidget({\n type: \"bi.down_list_select_text_trigger\",\n cls: \"text-value-down-list-trigger\",\n height: o.height,\n items: o.items,\n text: o.text,\n value: value\n });\n\n this.combo = BI.createWidget({\n type: \"bi.down_list_combo\",\n element: this,\n chooseType: BI.Selection.Single,\n adjustLength: 2,\n height: o.height,\n el: this.trigger,\n value: BI.isNull(value) ? [] : [value],\n items: BI.deepClone(o.items)\n });\n\n this.combo.on(BI.DownListCombo.EVENT_CHANGE, function () {\n var currentVal = self.combo.getValue()[0].value;\n if (currentVal !== self.value) {\n self.setValue(currentVal);\n self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE);\n }\n });\n\n this.combo.on(BI.DownListCombo.EVENT_SON_VALUE_CHANGE, function () {\n var currentVal = self.combo.getValue()[0].childValue;\n if (currentVal !== self.value) {\n self.setValue(currentVal);\n self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE);\n }\n });\n },\n\n _createValueMap: function () {\n var self = this;\n this.valueMap = {};\n BI.each(BI.flatten(this.options.items), function (idx, item) {\n if (BI.has(item, \"el\")) {\n BI.each(item.children, function (id, it) {\n self.valueMap[it.value] = {value: item.el.value, childValue: it.value};\n });\n } else {\n self.valueMap[item.value] = {value: item.value};\n }\n });\n },\n\n _digest: function (v) {\n this.value = v;\n return this.valueMap[v];\n },\n\n setValue: function (v) {\n v = this._digest(v);\n this.combo.setValue([v]);\n this.trigger.setValue(v);\n },\n\n getValue: function () {\n var v = this.combo.getValue()[0];\n return [v.childValue || v.value];\n },\n\n populate: function (items) {\n this.options.items = BI.flatten(items);\n this.combo.populate(items);\n this._createValueMap();\n }\n});\nBI.TextValueDownListCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.text_value_down_list_combo\", BI.TextValueDownListCombo);/**\n * 选择字段trigger, downlist专用\n * 显示形式为 父亲值(儿子值)\n *\n * @class BI.DownListSelectTextTrigger\n * @extends BI.Trigger\n */\nBI.DownListSelectTextTrigger = BI.inherit(BI.Trigger, {\n\n _defaultConfig: function () {\n return BI.extend(BI.DownListSelectTextTrigger.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-down-list-select-text-trigger\",\n height: 24,\n text: \"\"\n });\n },\n\n _init: function () {\n BI.DownListSelectTextTrigger.superclass._init.apply(this, arguments);\n var o = this.options;\n this.trigger = BI.createWidget({\n type: \"bi.select_text_trigger\",\n element: this,\n height: o.height,\n items: this._formatItemArray(o.items),\n text: o.text,\n value: BI.isNull(o.value) ? \"\" : o.value.childValue || o.value.value\n });\n },\n\n _formatItemArray: function () {\n var sourceArray = BI.flatten(BI.deepClone(this.options.items));\n var targetArray = [];\n BI.each(sourceArray, function (idx, item) {\n if(BI.has(item, \"el\")) {\n BI.each(item.children, function (id, it) {\n it.text = item.el.text + \"(\" + it.text + \")\";\n });\n targetArray = BI.concat(targetArray, item.children);\n }else{\n targetArray.push(item);\n }\n });\n return targetArray;\n },\n\n setValue: function (vals) {\n this.trigger.setValue(vals.childValue || vals.value);\n },\n\n populate: function (items) {\n this.trigger.populate(this._formatItemArray(items));\n }\n});\nBI.shortcut(\"bi.down_list_select_text_trigger\", BI.DownListSelectTextTrigger);!(function () {\n BI.TimePopup = BI.inherit(BI.Widget, {\n props: {\n baseCls: \"bi-date-time-popup\",\n height: 68\n },\n render: function () {\n var self = this, o = this.options;\n\n return {\n type: \"bi.vtape\",\n items: [{\n el: {\n type: \"bi.center_adapt\",\n cls: \"bi-split-top\",\n items: [{\n type: \"bi.dynamic_date_time_select\",\n value: o.value,\n ref: function (_ref) {\n self.timeSelect = _ref;\n }\n }]\n },\n hgap: 10,\n height: 44\n }, {\n el: {\n type: \"bi.grid\",\n items: [[{\n type: \"bi.text_button\",\n cls: \"bi-high-light bi-split-top\",\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Clears\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.TimePopup.BUTTON_CLEAR_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-left bi-split-right bi-high-light bi-split-top\",\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Now\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.TimePopup.BUTTON_NOW_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-high-light bi-split-top\",\n shadow: true,\n text: BI.i18nText(\"BI-Basic_OK\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.TimePopup.BUTTON_OK_EVENT_CHANGE);\n }\n }]\n }]]\n },\n height: 24\n }]\n };\n },\n\n setValue: function (value) {\n if (this._checkValueValid(value)) {\n this.timeSelect.setValue();\n } else {\n this.timeSelect.setValue({\n hour: value.hour,\n minute: value.minute,\n second: value.second\n });\n }\n },\n\n getValue: function () {\n return this.timeSelect.getValue();\n },\n\n _checkValueValid: function (value) {\n return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);\n }\n });\n BI.TimePopup.BUTTON_OK_EVENT_CHANGE = \"BUTTON_OK_EVENT_CHANGE\";\n BI.TimePopup.BUTTON_CLEAR_EVENT_CHANGE = \"BUTTON_CLEAR_EVENT_CHANGE\";\n BI.TimePopup.BUTTON_NOW_EVENT_CHANGE = \"BUTTON_NOW_EVENT_CHANGE\";\n BI.TimePopup.CALENDAR_EVENT_CHANGE = \"CALENDAR_EVENT_CHANGE\";\n BI.shortcut(\"bi.time_popup\", BI.TimePopup);\n})();/**\n * 时间选择\n * qcc\n * 2019/2/28\n */\n\n!(function () {\n BI.TimeCombo = BI.inherit(BI.Single, {\n constants: {\n popupHeight: 80,\n popupWidth: 240,\n comboAdjustHeight: 1,\n border: 1\n },\n props: {\n baseCls: \"bi-time-combo bi-border bi-border-radius bi-focus-shadow\",\n width: 78,\n height: 22,\n format: \"\",\n allowEdit: false\n },\n\n render: function () {\n var self = this, opts = this.options;\n this.storeTriggerValue = \"\";\n this.storeValue = opts.value;\n\n var popup = {\n type: \"bi.time_popup\",\n value: opts.value,\n listeners: [{\n eventName: BI.TimePopup.BUTTON_CLEAR_EVENT_CHANGE,\n action: function () {\n self.setValue();\n self.hidePopupView();\n self.fireEvent(BI.TimeCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.TimePopup.BUTTON_OK_EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.hidePopupView();\n self.fireEvent(BI.TimeCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.TimePopup.BUTTON_NOW_EVENT_CHANGE,\n action: function () {\n self._setNowTime();\n }\n }],\n ref: function (_ref) {\n self.popup = _ref;\n }\n };\n return {\n type: \"bi.htape\",\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.combo\",\n container: opts.container,\n toggle: false,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: {\n type: \"bi.time_trigger\",\n height: opts.height,\n allowEdit: opts.allowEdit,\n watermark: opts.watermark,\n format: opts.format,\n value: opts.value,\n ref: function (_ref) {\n self.trigger = _ref;\n },\n listeners: [{\n eventName: \"EVENT_KEY_DOWN\",\n action: function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n }\n self.fireEvent(BI.TimeCombo.EVENT_KEY_DOWN, arguments);\n }\n }, {\n eventName: \"EVENT_STOP\",\n action: function () {\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n }\n }, {\n eventName: \"EVENT_FOCUS\",\n action: function () {\n self.storeTriggerValue = self.trigger.getKey();\n if (!self.combo.isViewVisible()) {\n self.combo.showView();\n }\n self.fireEvent(\"EVENT_FOCUS\");\n }\n }, {\n eventName: \"EVENT_BLUR\",\n action: function () {\n self.fireEvent(\"EVENT_BLUR\");\n }\n }, {\n eventName: \"EVENT_ERROR\",\n action: function () {\n var date = BI.getDate();\n self.storeValue = {\n hour: date.getHours(),\n minute: date.getMinutes(),\n second: date.getSeconds()\n };\n self.fireEvent(\"EVENT_ERROR\");\n }\n }, {\n eventName: \"EVENT_VALID\",\n action: function () {\n self.fireEvent(\"EVENT_VALID\");\n }\n }, {\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }, {\n eventName: \"EVENT_CONFIRM\",\n action: function () {\n if (self.combo.isViewVisible()) {\n return;\n }\n var dateStore = self.storeTriggerValue;\n var dateObj = self.trigger.getKey();\n if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) {\n self.storeValue = self.trigger.getValue();\n self.setValue(self.trigger.getValue());\n } else if (BI.isEmptyString(dateObj)) {\n self.storeValue = null;\n self.trigger.setValue();\n }\n self.fireEvent(\"EVENT_CONFIRM\");\n }\n }]\n },\n adjustLength: this.constants.comboAdjustHeight,\n popup: {\n el: popup,\n width: this.constants.popupWidth,\n stopPropagation: false\n },\n hideChecker: function (e) {\n return self.triggerBtn.element.find(e.target).length === 0;\n },\n listeners: [{\n eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW,\n action: function () {\n self.popup.setValue(self.storeValue);\n self.fireEvent(BI.TimeCombo.EVENT_BEFORE_POPUPVIEW);\n }\n }],\n ref: function (_ref) {\n self.combo = _ref;\n }\n },\n top: 0,\n left: 0,\n right: 22,\n bottom: 0\n }, {\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button time-font icon-size-16\",\n width: 22,\n height: 22,\n listeners: [{\n eventName: BI.IconButton.EVENT_CHANGE,\n action: function () {\n if (self.combo.isViewVisible()) {\n // self.combo.hideView();\n } else {\n self.combo.showView();\n }\n }\n }],\n ref: function (_ref) {\n self.triggerBtn = _ref;\n }\n },\n top: 0,\n right: 0\n }]\n }]\n };\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.trigger.setValue(v);\n },\n getValue: function () {\n return this.storeValue;\n },\n\n hidePopupView: function () {\n this.combo.hideView();\n },\n\n _setNowTime: function () {\n var date = BI.getDate();\n var nowTome = {\n hour: date.getHours(),\n minute: date.getMinutes(),\n second: date.getSeconds()\n };\n this.setValue(nowTome);\n this.hidePopupView();\n this.fireEvent(BI.TimeCombo.EVENT_CONFIRM);\n }\n });\n\n BI.TimeCombo.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\n BI.TimeCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n BI.TimeCombo.EVENT_CHANGE = \"EVENT_CHANGE\";\n BI.TimeCombo.EVENT_VALID = \"EVENT_VALID\";\n BI.TimeCombo.EVENT_ERROR = \"EVENT_ERROR\";\n BI.TimeCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\n BI.shortcut(\"bi.time_combo\", BI.TimeCombo);\n})();!(function () {\n BI.TimeTrigger = BI.inherit(BI.Trigger, {\n\n _const: {\n COMPARE_FORMAT: \"%H:%M:%S\",\n COMPLETE_COMPARE_FORMAT: \"%Y-%M-%d %H:%M:%S %P\",\n FORMAT_ARRAY: [\n \"%H:%M:%S\", // HH:mm:ss\n \"%I:%M:%S\", // hh:mm:ss\n \"%l:%M:%S\", // h:mm:ss\n \"%k:%M:%S\", // H:mm:ss\n \"%l:%M:%S %p\", // h:mm:ss a\n \"%l:%M:%S %P\", // h:mm:ss a\n \"%H:%M:%S %p\", // HH:mm:ss a\n \"%H:%M:%S %P\", // HH:mm:ss a\n \"%l:%M\", // h:mm\n \"%k:%M\", // H:mm\n \"%I:%M\", // hh:mm\n \"%H:%M\", // HH:mm\n \"%M:%S\" // mm:ss\n ],\n DEFAULT_DATE_STRING: \"2000-01-01\"\n },\n\n props: {\n extraCls: \"bi-time-trigger\",\n value: {},\n format: \"\",\n allowEdit: false\n },\n\n render: function () {\n var self = this, o = this.options;\n this.storeTriggerValue = \"\";\n this.storeValue = o.value;\n return {\n type: \"bi.absolute\",\n items: [{\n el: {\n type: \"bi.sign_editor\",\n height: o.height,\n validationChecker: function (v) {\n return self._dateCheck(v);\n },\n quitChecker: function () {\n return false;\n },\n ref: function (_ref) {\n self.editor = _ref;\n },\n value: this._formatValue(o.value),\n hgap: 4,\n allowBlank: true,\n watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText(\"BI-Basic_Unrestricted\"),\n title: BI.bind(this._getTitle, this),\n listeners: [{\n eventName: \"EVENT_KEY_DOWN\",\n action: function () {\n self.fireEvent(\"EVENT_KEY_DOWN\", arguments);\n }\n }, {\n eventName: \"EVENT_FOCUS\",\n action: function () {\n self.storeTriggerValue = self.getKey();\n self.fireEvent(\"EVENT_FOCUS\");\n }\n }, {\n eventName: \"EVENT_BLUR\",\n action: function () {\n self.fireEvent(\"EVENT_BLUR\");\n }\n }, {\n eventName: \"EVENT_STOP\",\n action: function () {\n self.fireEvent(\"EVENT_STOP\");\n }\n }, {\n eventName: \"EVENT_VALID\",\n action: function () {\n self.fireEvent(\"EVENT_VALID\");\n }\n }, {\n eventName: \"EVENT_ERROR\",\n action: function () {\n self.fireEvent(\"EVENT_ERROR\");\n }\n }, {\n eventName: \"EVENT_CONFIRM\",\n action: function () {\n var value = self.editor.getValue();\n if (BI.isNotNull(value)) {\n self.editor.setState(value);\n }\n if (BI.isNotEmptyString(value) && !BI.isEqual(self.storeTriggerValue, self.getKey())) {\n var date = value.match(/\\d+/g);\n self.storeValue = {\n hour: date[0] | 0,\n minute: date[1] | 0,\n second: date[2] | 0\n };\n }\n self.fireEvent(\"EVENT_CONFIRM\");\n }\n }, {\n eventName: \"EVENT_START\",\n action: function () {\n self.fireEvent(\"EVENT_START\");\n }\n }, {\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n },\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.text\",\n invisible: o.allowEdit,\n cls: \"show-text\",\n title: BI.bind(this._getTitle, this),\n hgap: 4\n },\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }]\n };\n },\n\n _dateCheck: function (date) {\n var c = this._const;\n return BI.any(c.FORMAT_ARRAY, function (idx, format) {\n return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + \" \" + date, c.COMPLETE_COMPARE_FORMAT), format) === date;\n });\n },\n\n _getTitle: function () {\n var storeValue = this.storeValue || {};\n var date = BI.getDate();\n return BI.print(BI.getDate(date.getFullYear(), 0, 1, storeValue.hour, storeValue.minute, storeValue.second), this._getFormatString());\n },\n\n _getFormatString: function () {\n return this.options.format || this._const.COMPARE_FORMAT;\n },\n\n _formatValue: function (v) {\n var now = BI.getDate();\n return BI.isNotEmptyObject(v) ? BI.print(BI.getDate(now.getFullYear(), now.getMonth(), now.getDay(), v.hour, v.minute, v.second), this._getFormatString()) : \"\";\n },\n\n getKey: function () {\n return this.editor.getValue();\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.editor.setValue(this._formatValue(v));\n },\n\n getValue: function () {\n return this.storeValue;\n }\n\n });\n BI.shortcut(\"bi.time_trigger\", BI.TimeTrigger);\n})();/**\n * Created by Baron on 2015/10/19.\n */\nBI.DateInterval = BI.inherit(BI.Single, {\n constants: {\n height: 24,\n width: 24,\n lgap: 15,\n offset: 0,\n timeErrorCls: \"time-error\"\n },\n _defaultConfig: function () {\n var conf = BI.DateInterval.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-date-interval\",\n minDate: \"1900-01-01\",\n maxDate: \"2099-12-31\"\n });\n },\n _init: function () {\n var self = this, o = this.options;\n BI.DateInterval.superclass._init.apply(this, arguments);\n\n o.value = o.value || {};\n this.left = this._createCombo(o.value.start);\n this.right = this._createCombo(o.value.end);\n this.label = BI.createWidget({\n type: \"bi.label\",\n height: this.constants.height,\n width: this.constants.width,\n text: \"-\"\n });\n BI.createWidget({\n element: self,\n type: \"bi.center\",\n height: this.constants.height,\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: self.left,\n left: this.constants.offset,\n right: this.constants.width / 2,\n top: 0,\n bottom: 0\n }]\n }, {\n type: \"bi.absolute\",\n items: [{\n el: self.right,\n left: this.constants.width / 2,\n right: this.constants.offset,\n top: 0,\n bottom: 0\n }]\n }]\n });\n BI.createWidget({\n type: \"bi.horizontal_auto\",\n element: this,\n items: [\n self.label\n ]\n });\n },\n\n _createCombo: function (v) {\n var self = this, o = this.options;\n var combo = BI.createWidget({\n type: \"bi.dynamic_date_combo\",\n behaviors: o.behaviors,\n value: v\n });\n combo.on(BI.DynamicDateCombo.EVENT_ERROR, function () {\n self._clearTitle();\n BI.Bubbles.hide(\"error\");\n self.element.removeClass(self.constants.timeErrorCls);\n self.fireEvent(BI.DateInterval.EVENT_ERROR);\n });\n\n combo.on(BI.DynamicDateCombo.EVENT_VALID, function () {\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n BI.Bubbles.show(\"error\", BI.i18nText(\"BI-Time_Interval_Error_Text\"), self, {\n offsetStyle: \"center\"\n });\n self.fireEvent(BI.DateInterval.EVENT_ERROR);\n } else {\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n }\n });\n\n combo.on(BI.DynamicDateCombo.EVENT_FOCUS, function () {\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n BI.Bubbles.show(\"error\", BI.i18nText(\"BI-Time_Interval_Error_Text\"), self, {\n offsetStyle: \"center\"\n });\n self.fireEvent(BI.DateInterval.EVENT_ERROR);\n } else {\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n }\n });\n\n // combo.on(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW, function () {\n // self.left.hidePopupView();\n // self.right.hidePopupView();\n // });\n\n combo.on(BI.DynamicDateCombo.EVENT_CONFIRM, function () {\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n self.fireEvent(BI.DateInterval.EVENT_ERROR);\n }else{\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n self.fireEvent(BI.DateInterval.EVENT_CHANGE);\n }\n });\n return combo;\n },\n _dateCheck: function (date) {\n return BI.print(BI.parseDateTime(date, \"%Y-%x-%d\"), \"%Y-%x-%d\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%d\"), \"%Y-%X-%d\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%x-%e\"), \"%Y-%x-%e\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%e\"), \"%Y-%X-%e\") === date;\n },\n _checkVoid: function (obj) {\n var o = this.options;\n return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];\n },\n _check: function (smallDate, bigDate) {\n var smallObj = smallDate.match(/\\d+/g), bigObj = bigDate.match(/\\d+/g);\n return this._dateCheck(smallDate) && BI.checkDateLegal(smallDate) && this._checkVoid({\n year: smallObj[0],\n month: smallObj[1],\n day: smallObj[2]\n }) && this._dateCheck(bigDate) && BI.checkDateLegal(bigDate) && this._checkVoid({\n year: bigObj[0],\n month: bigObj[1],\n day: bigObj[2]\n });\n },\n _compare: function (smallDate, bigDate) {\n smallDate = BI.print(BI.parseDateTime(smallDate, \"%Y-%X-%d\"), \"%Y-%X-%d\");\n bigDate = BI.print(BI.parseDateTime(bigDate, \"%Y-%X-%d\"), \"%Y-%X-%d\");\n return BI.isNotNull(smallDate) && BI.isNotNull(bigDate) && smallDate > bigDate;\n },\n _setTitle: function (v) {\n this.left.setTitle(v);\n this.right.setTitle(v);\n this.label.setTitle(v);\n },\n _clearTitle: function () {\n this.left.setTitle(\"\");\n this.right.setTitle(\"\");\n this.label.setTitle(\"\");\n },\n setValue: function (date) {\n date = date || {};\n this.left.setValue(date.start);\n this.right.setValue(date.end);\n },\n getValue: function () {\n return {start: this.left.getValue(), end: this.right.getValue()};\n }\n});\nBI.DateInterval.EVENT_VALID = \"EVENT_VALID\";\nBI.DateInterval.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DateInterval.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.date_interval\", BI.DateInterval);/**\n * Created by Baron on 2015/10/19.\n */\nBI.TimeInterval = BI.inherit(BI.Single, {\n constants: {\n height: 24,\n width: 24,\n lgap: 15,\n offset: 0,\n timeErrorCls: \"time-error\"\n },\n _defaultConfig: function () {\n var conf = BI.TimeInterval.superclass._defaultConfig.apply(this, arguments);\n return BI.extend(conf, {\n extraCls: \"bi-time-interval\",\n minDate: \"1900-01-01\",\n maxDate: \"2099-12-31\"\n });\n },\n _init: function () {\n var self = this, o = this.options;\n BI.TimeInterval.superclass._init.apply(this, arguments);\n\n o.value = o.value || {};\n this.left = this._createCombo(o.value.start);\n this.right = this._createCombo(o.value.end);\n this.label = BI.createWidget({\n type: \"bi.label\",\n height: this.constants.height,\n width: this.constants.width,\n text: \"-\"\n });\n BI.createWidget({\n element: self,\n type: \"bi.center\",\n height: this.constants.height,\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: self.left,\n left: this.constants.offset,\n right: this.constants.width / 2,\n top: 0,\n bottom: 0\n }]\n }, {\n type: \"bi.absolute\",\n items: [{\n el: self.right,\n left: this.constants.width / 2,\n right: this.constants.offset,\n top: 0,\n bottom: 0\n }]\n }]\n });\n BI.createWidget({\n type: \"bi.horizontal_auto\",\n element: this,\n items: [\n self.label\n ]\n });\n },\n\n _createCombo: function (v) {\n var self = this, o = this.options;\n var combo = BI.createWidget({\n type: \"bi.dynamic_date_time_combo\",\n behaviors: o.behaviors,\n value: v\n });\n combo.on(BI.DynamicDateTimeCombo.EVENT_ERROR, function () {\n self._clearTitle();\n BI.Bubbles.hide(\"error\");\n self.element.removeClass(self.constants.timeErrorCls);\n self.fireEvent(BI.TimeInterval.EVENT_ERROR);\n });\n\n combo.on(BI.DynamicDateTimeCombo.EVENT_VALID, function () {\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self.left.isValid() && self.right.isValid() && self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n BI.Bubbles.show(\"error\", BI.i18nText(\"BI-Time_Interval_Error_Text\"), self, {\n offsetStyle: \"center\"\n });\n self.fireEvent(BI.TimeInterval.EVENT_ERROR);\n } else {\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n }\n });\n\n combo.on(BI.DynamicDateTimeCombo.EVENT_FOCUS, function () {\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self.left.isValid() && self.right.isValid() && self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n BI.Bubbles.show(\"error\", BI.i18nText(\"BI-Time_Interval_Error_Text\"), self, {\n offsetStyle: \"center\"\n });\n self.fireEvent(BI.TimeInterval.EVENT_ERROR);\n } else {\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n }\n });\n\n // 不知道干啥的,先注释掉\n // combo.on(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW, function () {\n // self.left.hidePopupView();\n // self.right.hidePopupView();\n // });\n\n combo.on(BI.DynamicDateTimeCombo.EVENT_CONFIRM, function () {\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self.left.isValid() && self.right.isValid() && self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n self.fireEvent(BI.TimeInterval.EVENT_ERROR);\n }else{\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n self.fireEvent(BI.TimeInterval.EVENT_CHANGE);\n }\n });\n return combo;\n },\n _dateCheck: function (date) {\n return BI.print(BI.parseDateTime(date, \"%Y-%x-%d %H:%M:%S\"), \"%Y-%x-%d %H:%M:%S\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%d %H:%M:%S\"), \"%Y-%X-%d %H:%M:%S\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%x-%e %H:%M:%S\"), \"%Y-%x-%e %H:%M:%S\") === date ||\n BI.print(BI.parseDateTime(date, \"%Y-%X-%e %H:%M:%S\"), \"%Y-%X-%e %H:%M:%S\") === date;\n },\n _checkVoid: function (obj) {\n var o = this.options;\n return !BI.checkDateVoid(obj.year, obj.month, obj.day, o.minDate, o.maxDate)[0];\n },\n _check: function (smallDate, bigDate) {\n var smallObj = smallDate.match(/\\d+/g), bigObj = bigDate.match(/\\d+/g);\n return this._dateCheck(smallDate) && BI.checkDateLegal(smallDate) && this._checkVoid({\n year: smallObj[0],\n month: smallObj[1],\n day: smallObj[2]\n }) && this._dateCheck(bigDate) && BI.checkDateLegal(bigDate) && this._checkVoid({\n year: bigObj[0],\n month: bigObj[1],\n day: bigObj[2]\n });\n },\n _compare: function (smallDate, bigDate) {\n smallDate = BI.print(BI.parseDateTime(smallDate, \"%Y-%X-%d %H:%M:%S\"), \"%Y-%X-%d %H:%M:%S\");\n bigDate = BI.print(BI.parseDateTime(bigDate, \"%Y-%X-%d %H:%M:%S\"), \"%Y-%X-%d %H:%M:%S\");\n return BI.isNotNull(smallDate) && BI.isNotNull(bigDate) && smallDate > bigDate;\n },\n _setTitle: function (v) {\n this.left.setTitle(v);\n this.right.setTitle(v);\n this.label.setTitle(v);\n },\n _clearTitle: function () {\n this.left.setTitle(\"\");\n this.right.setTitle(\"\");\n this.label.setTitle(\"\");\n },\n setValue: function (date) {\n date = date || {};\n this.left.setValue(date.start);\n this.right.setValue(date.end);\n },\n getValue: function () {\n return {start: this.left.getValue(), end: this.right.getValue()};\n }\n});\nBI.TimeInterval.EVENT_VALID = \"EVENT_VALID\";\nBI.TimeInterval.EVENT_ERROR = \"EVENT_ERROR\";\nBI.TimeInterval.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.time_interval\", BI.TimeInterval);/**\n * 时间区间\n * qcc\n * 2019/2/28\n */\n\n!(function () {\n BI.TimePeriods = BI.inherit(BI.Single, {\n constants: {\n height: 24,\n width: 24,\n lgap: 15,\n offset: 0\n },\n props: {\n extraCls: \"bi-time-interval\",\n value: {}\n },\n render: function () {\n var self = this, o = this.options;\n\n return {\n type: \"bi.absolute\",\n height: this.constants.height,\n items: [{\n el: {\n type: \"bi.horizontal_auto\",\n items: [{\n type: \"bi.label\",\n height: this.constants.height,\n width: this.constants.width,\n text: \"-\",\n ref: function (_ref) {\n self.label = _ref;\n }\n }]\n },\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, {\n el: {\n type: \"bi.center\",\n height: this.constants.height,\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: BI.extend({\n ref: function (_ref) {\n self.left = _ref;\n }\n }, this._createCombo(o.value.start)),\n left: this.constants.offset,\n right: this.constants.width / 2,\n top: 0,\n bottom: 0\n }]\n }, {\n type: \"bi.absolute\",\n items: [{\n el: BI.extend({\n ref: function (_ref) {\n self.right = _ref;\n }\n }, this._createCombo(o.value.end)),\n left: this.constants.width / 2,\n right: this.constants.offset,\n top: 0,\n bottom: 0\n }]\n }]\n },\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }]\n };\n },\n\n _createCombo: function (v) {\n var self = this;\n return {\n type: \"bi.time_combo\",\n value: v,\n listeners: [{\n eventName: BI.TimeCombo.EVENT_BEFORE_POPUPVIEW,\n action: function () {\n self.left.hidePopupView();\n self.right.hidePopupView();\n }\n }, {\n eventName: BI.TimeCombo.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.TimePeriods.EVENT_CHANGE);\n }\n }, {\n eventName: BI.TimeCombo.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.TimePeriods.EVENT_CONFIRM);\n }\n }]\n };\n },\n\n setValue: function (date) {\n date = date || {};\n this.left.setValue(date.start);\n this.right.setValue(date.end);\n },\n getValue: function () {\n return {start: this.left.getValue(), end: this.right.getValue()};\n }\n });\n BI.TimePeriods.EVENT_CONFIRM = \"EVENT_CONFIRM\";\n BI.TimePeriods.EVENT_CHANGE = \"EVENT_CHANGE\";\n BI.shortcut(\"bi.time_periods\", BI.TimePeriods);\n})();/**\n * 年份展示面板\n *\n * Created by GUY on 2015/9/2.\n * @class BI.YearCard\n * @extends BI.Trigger\n */\nBI.DynamicYearCard = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-year-card\"\n },\n\n render: function () {\n var self = this;\n return {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.label\",\n text: BI.i18nText(\"BI-Multi_Date_Relative_Current_Time\"),\n textAlign: \"left\",\n height: 24\n }, {\n type: \"bi.dynamic_date_param_item\",\n ref: function () {\n self.item = this;\n },\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n }],\n vgap: 10,\n hgap: 10\n };\n },\n\n _createValue: function (type, v) {\n return {\n dateType: type,\n value: Math.abs(v),\n offset: v > 0 ? 1 : 0\n };\n },\n\n setValue: function (v) {\n v = v || {year: 0};\n this.item.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR, v.year));\n },\n\n getValue: function () {\n var value = this.item.getValue();\n return {\n year: (value.offset === 0 ? -value.value : value.value)\n };\n }\n});\nBI.DynamicYearCard.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_year_card\", BI.DynamicYearCard);/**\n * 年份展示面板\n *\n * Created by GUY on 2015/9/2.\n * @class BI.StaticYearCard\n * @extends BI.Trigger\n */\nBI.StaticYearCard = BI.inherit(BI.Widget, {\n\n _defaultConfig: function () {\n return BI.extend(BI.StaticYearCard.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-year-card\",\n behaviors: {},\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\" // 最大日期\n });\n },\n\n _createYearCalendar: function (v) {\n var o = this.options, y = this._year;\n\n var calendar = BI.createWidget({\n type: \"bi.year_calendar\",\n behaviors: o.behaviors,\n min: o.min,\n max: o.max,\n logic: {\n dynamic: true\n },\n year: y + v * 12\n });\n calendar.setValue(this._year);\n return calendar;\n },\n\n _init: function () {\n BI.StaticYearCard.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n\n this.selectedYear = this._year = BI.getDate().getFullYear();\n\n this.backBtn = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"pre-page-h-font\",\n width: 25,\n height: 25,\n value: -1,\n listeners: [{\n eventName: BI.IconButton.EVENT_CHANGE,\n action: function () {\n self.navigation.setSelect(self.navigation.getSelect() - 1);\n self._checkLeftValid();\n self._checkRightValid();\n }\n }]\n });\n\n this.preBtn = BI.createWidget({\n type: \"bi.icon_button\",\n cls: \"next-page-h-font\",\n width: 25,\n height: 25,\n value: 1,\n listeners: [{\n eventName: BI.IconButton.EVENT_CHANGE,\n action: function () {\n self.navigation.setSelect(self.navigation.getSelect() + 1);\n self._checkLeftValid();\n self._checkRightValid();\n }\n }]\n });\n\n this.navigation = BI.createWidget({\n type: \"bi.navigation\",\n direction: \"top\",\n element: this,\n single: true,\n logic: {\n dynamic: true\n },\n tab: {\n type: \"bi.htape\",\n cls: \"bi-split-top bi-split-bottom\",\n height: 30,\n items: [{\n el: {\n type: \"bi.center_adapt\",\n items: [self.backBtn]\n },\n width: 25\n }, {\n type: \"bi.layout\"\n }, {\n el: {\n type: \"bi.center_adapt\",\n items: [self.preBtn]\n },\n width: 25\n }]\n },\n cardCreator: BI.bind(this._createYearCalendar, this),\n\n afterCardShow: function () {\n this.setValue(self.selectedYear);\n var calendar = this.getSelectedCard();\n self.backBtn.setEnable(!calendar.isFrontYear());\n self.preBtn.setEnable(!calendar.isFinalYear());\n }\n });\n\n this.navigation.on(BI.Navigation.EVENT_CHANGE, function () {\n self.selectedYear = this.getValue();\n self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);\n self.fireEvent(BI.StaticYearCard.EVENT_CHANGE, self.selectedYear);\n });\n\n if(BI.isKey(o.value)){\n this.setValue(o.value);\n }\n },\n\n _checkLeftValid: function () {\n var o = this.options;\n var valid = true;\n this.backBtn.setEnable(valid);\n return valid;\n },\n\n _checkRightValid: function () {\n var o = this.options;\n var valid = true;\n this.preBtn.setEnable(valid);\n return valid;\n },\n\n getValue: function () {\n return {\n year: this.selectedYear\n };\n },\n\n setValue: function (obj) {\n var o = this.options;\n obj = obj || {};\n var v = obj.year;\n if (BI.checkDateVoid(v, 1, 1, o.min, o.max)[0]) {\n v = BI.getDate().getFullYear();\n this.selectedYear = \"\";\n this.navigation.setSelect(BI.YearCalendar.getPageByYear(v));\n this.navigation.setValue(\"\");\n } else {\n this.selectedYear = BI.parseInt(v);\n this.navigation.setSelect(BI.YearCalendar.getPageByYear(v));\n this.navigation.setValue(this.selectedYear);\n }\n this._checkLeftValid();\n this._checkRightValid();\n }\n});\nBI.StaticYearCard.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.static_year_card\", BI.StaticYearCard);BI.DynamicYearCombo = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-year-combo bi-border bi-focus-shadow\",\n behaviors: {},\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 22\n },\n\n _init: function () {\n BI.DynamicYearCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.storeValue = o.value;\n this.trigger = BI.createWidget({\n type: \"bi.dynamic_year_trigger\",\n min: o.min,\n max: o.max,\n height: o.height,\n value: o.value || \"\"\n });\n this.trigger.on(BI.DynamicYearTrigger.EVENT_KEY_DOWN, function () {\n if (self.combo.isViewVisible()) {\n self.combo.hideView();\n }\n });\n this.trigger.on(BI.DynamicYearTrigger.EVENT_FOCUS, function () {\n self.storeTriggerValue = this.getKey();\n });\n this.trigger.on(BI.DynamicYearTrigger.EVENT_START, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n });\n this.trigger.on(BI.DynamicYearTrigger.EVENT_STOP, function () {\n self.combo.showView();\n });\n this.trigger.on(BI.DynamicYearTrigger.EVENT_ERROR, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n });\n this.trigger.on(BI.DynamicYearTrigger.EVENT_CONFIRM, function () {\n if (self.combo.isViewVisible()) {\n return;\n }\n if (this.getKey() && this.getKey() !== self.storeTriggerValue) {\n self.storeValue = self.trigger.getValue();\n self.setValue(self.storeValue);\n } else if (!this.getKey()) {\n self.storeValue = null;\n self.setValue();\n }\n self._checkDynamicValue(self.storeValue);\n self.fireEvent(BI.DynamicYearCombo.EVENT_CONFIRM);\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: this.trigger,\n popup: {\n minWidth: 85,\n stopPropagation: false,\n el: {\n type: \"bi.dynamic_year_popup\",\n ref: function () {\n self.popup = this;\n },\n listeners: [{\n eventName: BI.DynamicYearPopup.EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicYearCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearPopup.BUTTON_CLEAR_EVENT_CHANGE,\n action: function () {\n self.setValue();\n self.combo.hideView();\n self.fireEvent(BI.DynamicYearCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearPopup.BUTTON_lABEL_EVENT_CHANGE,\n action: function () {\n var date = BI.getDate();\n self.setValue({type: BI.DynamicYearCombo.Static, value: {year: date.getFullYear()}});\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }],\n behaviors: o.behaviors,\n min: o.min,\n max: o.max\n },\n value: o.value || \"\"\n }\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.popup.setValue(self.storeValue);\n self.fireEvent(BI.DynamicYearCombo.EVENT_BEFORE_POPUPVIEW);\n });\n\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n ref: function () {\n self.comboWrapper = this;\n },\n items: [{\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-change-h-font\",\n width: 24,\n height: 24,\n ref: function () {\n self.changeIcon = this;\n }\n },\n width: 24\n }, this.combo]\n });\n this._checkDynamicValue(o.value);\n },\n\n _checkDynamicValue: function (v) {\n var type = null;\n if (BI.isNotNull(v)) {\n type = v.type;\n }\n switch (type) {\n case BI.DynamicYearCombo.Dynamic:\n this.changeIcon.setVisible(true);\n this.comboWrapper.attr(\"items\")[0].width = 24;\n this.comboWrapper.resize();\n break;\n default:\n this.comboWrapper.attr(\"items\")[0].width = 0;\n this.comboWrapper.resize();\n this.changeIcon.setVisible(false);\n break;\n }\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.trigger.setValue(v);\n this._checkDynamicValue(v);\n },\n\n getValue: function () {\n return this.storeValue;\n }\n\n});\nBI.DynamicYearCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicYearCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.dynamic_year_combo\", BI.DynamicYearCombo);\n\nBI.extend(BI.DynamicYearCombo, {\n Static: 1,\n Dynamic: 2\n});/**\n * 年份展示面板\n *\n * Created by GUY on 2015/9/2.\n * @class BI.DynamicYearPopup\n * @extends BI.Trigger\n */\nBI.DynamicYearPopup = BI.inherit(BI.Widget, {\n constants: {\n tabHeight: 30,\n buttonHeight: 24\n },\n\n props: {\n baseCls: \"bi-year-popup\",\n behaviors: {},\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期,\n width: 180,\n height: 240\n },\n\n render: function () {\n var self = this, opts = this.options, c = this.constants;\n this.storeValue = {type: BI.DynamicYearCombo.Static};\n return {\n type: \"bi.vtape\",\n items: [{\n el: this._getTabJson()\n }, {\n el: {\n type: \"bi.grid\",\n items: [[{\n type: \"bi.text_button\",\n cls: \"bi-split-top bi-high-light\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Clear\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearPopup.BUTTON_CLEAR_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n textHeight: c.buttonHeight - 1,\n cls: \"bi-split-left bi-split-right bi-high-light bi-split-top\",\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Current_Year\"),\n ref: function () {\n self.textButton = this;\n },\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearPopup.BUTTON_lABEL_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-top bi-high-light\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_OK\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE);\n }\n }]\n }]]\n },\n height: 24\n }]\n };\n },\n\n _setInnerValue: function () {\n if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {\n this.textButton.setValue(BI.i18nText(\"BI-Basic_Current_Year\"));\n this.textButton.setEnable(true);\n } else {\n var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());\n date = BI.print(date, \"%Y\");\n this.textButton.setValue(date);\n this.textButton.setEnable(false);\n }\n },\n\n _getTabJson: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.tab\",\n ref: function () {\n self.dateTab = this;\n },\n tab: {\n type: \"bi.linear_segment\",\n cls: \"bi-split-bottom\",\n height: this.constants.tabHeight,\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Basic_Year_Fen\"),\n value: BI.DynamicYearCombo.Static\n }, {\n text: BI.i18nText(\"BI-Basic_Dynamic_Title\"),\n value: BI.DynamicYearCombo.Dynamic\n }], {\n textAlign: \"center\"\n })\n },\n cardCreator: function (v) {\n switch (v) {\n case BI.DynamicYearCombo.Dynamic:\n return {\n type: \"bi.dynamic_year_card\",\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self._setInnerValue(self.year, v);\n }\n }],\n ref: function () {\n self.dynamicPane = this;\n }\n };\n case BI.DynamicYearCombo.Static:\n default:\n return {\n type: \"bi.static_year_card\",\n behaviors: o.behaviors,\n min: self.options.min,\n max: self.options.max,\n listeners: [{\n eventName: BI.StaticYearCard.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearPopup.EVENT_CHANGE);\n }\n }],\n ref: function () {\n self.year = this;\n }\n };\n }\n },\n listeners: [{\n eventName: BI.Tab.EVENT_CHANGE,\n action: function () {\n var v = self.dateTab.getSelect();\n switch (v) {\n case BI.DynamicYearCombo.Static:\n var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue());\n self.year.setValue({year: date.getFullYear()});\n self._setInnerValue();\n break;\n case BI.DynamicYearCombo.Dynamic:\n default:\n if(self.storeValue && self.storeValue.type === BI.DynamicYearCombo.Dynamic) {\n self.dynamicPane.setValue(self.storeValue.value);\n }else{\n self.dynamicPane.setValue({\n year: 0\n });\n }\n self._setInnerValue();\n break;\n }\n }\n }]\n };\n },\n\n setValue: function (v) {\n this.storeValue = v;\n var self = this;\n var type, value;\n v = v || {};\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n this.dateTab.setSelect(type);\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n this.dynamicPane.setValue(value);\n self._setInnerValue();\n break;\n case BI.DynamicDateCombo.Static:\n default:\n this.year.setValue(value);\n this.textButton.setValue(BI.i18nText(\"BI-Basic_Current_Year\"));\n this.textButton.setEnable(true);\n break;\n }\n },\n\n getValue: function () {\n return {\n type: this.dateTab.getSelect(),\n value: this.dateTab.getValue()\n };\n }\n\n});\nBI.DynamicYearPopup.BUTTON_CLEAR_EVENT_CHANGE = \"BUTTON_CLEAR_EVENT_CHANGE\";\nBI.DynamicYearPopup.BUTTON_lABEL_EVENT_CHANGE = \"BUTTON_lABEL_EVENT_CHANGE\";\nBI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE = \"BUTTON_OK_EVENT_CHANGE\";\nBI.DynamicYearPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_year_popup\", BI.DynamicYearPopup);BI.DynamicYearTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4,\n vgap: 2\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.DynamicYearTrigger.superclass._defaultConfig.apply(this, arguments), {\n extraCls: \"bi-year-trigger\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 24\n });\n },\n\n beforeInit: function (callback) {\n var o = this.options;\n o.title = BI.bind(this._titleCreator, this);\n callback();\n },\n\n _init: function () {\n BI.DynamicYearTrigger.superclass._init.apply(this, arguments);\n var self = this, o = this.options, c = this._const;\n this.editor = BI.createWidget({\n type: \"bi.sign_editor\",\n height: o.height,\n validationChecker: function (v) {\n return v === \"\" || (BI.isPositiveInteger(v) && !BI.checkDateVoid(v, 1, 1, o.min, o.max)[0]);\n },\n quitChecker: function (v) {\n return false;\n },\n hgap: c.hgap,\n vgap: c.vgap,\n watermark: BI.i18nText(\"BI-Basic_Unrestricted\"),\n allowBlank: true,\n errorText: function () {\n return BI.i18nText(\"BI-Year_Trigger_Invalid_Text\");\n }\n });\n this.editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () {\n self.fireEvent(BI.DynamicYearTrigger.EVENT_KEY_DOWN, arguments);\n });\n this.editor.on(BI.SignEditor.EVENT_FOCUS, function () {\n self.fireEvent(BI.DynamicYearTrigger.EVENT_FOCUS);\n });\n this.editor.on(BI.SignEditor.EVENT_STOP, function () {\n self.fireEvent(BI.DynamicYearTrigger.EVENT_STOP);\n });\n this.editor.on(BI.SignEditor.EVENT_CONFIRM, function () {\n var value = self.editor.getValue();\n if (BI.isNotNull(value)) {\n self.editor.setValue(value);\n }\n if (BI.isNotEmptyString(value)) {\n self.storeValue = {\n type: BI.DynamicDateCombo.Static,\n value: {\n year: value\n }\n };\n }\n\n self.fireEvent(BI.DynamicYearTrigger.EVENT_CONFIRM);\n });\n this.editor.on(BI.SignEditor.EVENT_SPACE, function () {\n if (self.editor.isValid()) {\n self.editor.blur();\n }\n });\n this.editor.on(BI.SignEditor.EVENT_START, function () {\n self.fireEvent(BI.DynamicYearTrigger.EVENT_START);\n });\n this.editor.on(BI.SignEditor.EVENT_ERROR, function () {\n self.fireEvent(BI.DynamicYearTrigger.EVENT_ERROR);\n });\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [{\n el: this.editor\n }, {\n el: {\n type: \"bi.text_button\",\n baseCls: \"bi-trigger-year-text\",\n text: BI.i18nText(\"BI-Multi_Date_Year\"),\n width: o.height\n },\n width: o.height\n }, {\n el: {\n type: \"bi.trigger_icon_button\",\n width: o.height\n },\n width: o.height\n }]\n });\n this.setValue(o.value);\n },\n\n _getText: function (obj) {\n var value = \"\";\n if(BI.isNotNull(obj.year) && BI.parseInt(obj.year) !== 0) {\n value += Math.abs(obj.year) + BI.i18nText(\"BI-Basic_Year\") + (obj.year < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n return value;\n },\n\n _setInnerValue: function (date, text) {\n var dateStr = BI.print(date, \"%Y\");\n this.editor.setState(dateStr);\n this.editor.setValue(dateStr);\n },\n\n _titleCreator: function () {\n var storeValue = this.storeValue || {};\n var type = storeValue.type || BI.DynamicDateCombo.Static;\n var value = storeValue.value;\n if(!this.editor.isValid()) {\n return \"\";\n }\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n var date = BI.getDate();\n date = BI.DynamicDateHelper.getCalculation(value);\n var dateStr = BI.print(date, \"%Y\");\n return BI.isEmptyString(text) ? dateStr : (text + \":\" + dateStr);\n case BI.DynamicDateCombo.Static:\n default:\n value = value || {};\n return value.year;\n }\n },\n\n setValue: function (v) {\n var type, value;\n var date = BI.getDate();\n this.storeValue = v;\n if (BI.isNotNull(v)) {\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n }\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n date = BI.DynamicDateHelper.getCalculation(value);\n this._setInnerValue(date, text);\n break;\n case BI.DynamicDateCombo.Static:\n default:\n value = value || {};\n this.editor.setState(value.year);\n this.editor.setValue(value.year);\n break;\n }\n },\n\n getValue: function () {\n return this.storeValue;\n },\n\n getKey: function () {\n return this.editor.getValue() | 0;\n }\n});\nBI.DynamicYearTrigger.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.DynamicYearTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicYearTrigger.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicYearTrigger.EVENT_START = \"EVENT_START\";\nBI.DynamicYearTrigger.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicYearTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.shortcut(\"bi.dynamic_year_trigger\", BI.DynamicYearTrigger);/**\n * 年月展示面板\n *\n * Created by GUY on 2015/9/2.\n * @class BI.YearCard\n * @extends BI.Trigger\n */\nBI.DynamicYearMonthCard = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-year-month-card\"\n },\n\n render: function () {\n var self = this;\n return {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.label\",\n text: BI.i18nText(\"BI-Multi_Date_Relative_Current_Time\"),\n textAlign: \"left\",\n height: 24\n }, {\n type: \"bi.dynamic_date_param_item\",\n ref: function () {\n self.year = this;\n },\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n }, {\n type: \"bi.dynamic_date_param_item\",\n dateType: BI.DynamicDateCard.TYPE.MONTH,\n ref: function () {\n self.month = this;\n },\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n }],\n vgap: 10,\n hgap: 10\n };\n },\n\n _createValue: function (type, v) {\n return {\n dateType: type,\n value: Math.abs(v),\n offset: v > 0 ? 1 : 0\n };\n },\n\n setValue: function (v) {\n v = v || {year: 0, month: 0};\n this.year.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR, v.year));\n this.month.setValue(this._createValue(BI.DynamicDateCard.TYPE.MONTH, v.month));\n },\n\n getValue: function () {\n var year = this.year.getValue();\n var month = this.month.getValue();\n return {\n year: (year.offset === 0 ? -year.value : year.value),\n month: (month.offset === 0 ? -month.value : month.value)\n };\n }\n});\nBI.DynamicYearMonthCard.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_year_month_card\", BI.DynamicYearMonthCard);BI.StaticYearMonthCard = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-static-year-month-card\",\n behaviors: {}\n },\n\n _createMonths: function () {\n var self = this;\n // 纵向排列月\n var month = [1, 7, 2, 8, 3, 9, 4, 10, 5, 11, 6, 12];\n var items = [];\n items.push(month.slice(0, 2));\n items.push(month.slice(2, 4));\n items.push(month.slice(4, 6));\n items.push(month.slice(6, 8));\n items.push(month.slice(8, 10));\n items.push(month.slice(10, 12));\n return BI.map(items, function (i, item) {\n return BI.map(item, function (j, td) {\n return {\n type: \"bi.text_item\",\n cls: \"bi-list-item-select\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n once: false,\n forceSelected: true,\n height: 23,\n width: 38,\n value: td,\n text: td,\n ref: function (_ref) {\n self.monthMap[j === 0 ? i : i + 6] = _ref;\n }\n };\n });\n });\n },\n\n render: function () {\n var self = this, o = this.options;\n this.monthMap = {};\n return {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.year_picker\",\n min: o.min,\n max: o.max,\n ref: function () {\n self.yearPicker = this;\n },\n behaviors: o.behaviors,\n height: 30,\n listeners: [{\n eventName: BI.YearPicker.EVENT_CHANGE,\n action: function () {\n var value = this.getValue();\n self._checkMonthStatus(value);\n self.setValue({\n year: value,\n month: self.selectedMonth\n });\n }\n }]\n }, {\n type: \"bi.button_group\",\n cls: \"bi-split-top\",\n behaviors: o.behaviors,\n ref: function () {\n self.month = this;\n },\n items: this._createMonths(),\n layouts: [BI.LogicFactory.createLogic(\"table\", BI.extend({\n dynamic: true\n }, {\n columns: 2,\n rows: 6,\n columnSize: [1 / 2, 1 / 2],\n rowSize: 25\n })), {\n type: \"bi.center_adapt\",\n vgap: 1,\n hgap: 2\n }],\n value: o.value,\n listeners: [{\n eventName: BI.ButtonGroup.EVENT_CHANGE,\n action: function () {\n self.selectedYear = self.yearPicker.getValue();\n self.selectedMonth = this.getValue()[0];\n self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE);\n }\n }]\n }]\n };\n },\n\n mounted: function() {\n this._checkMonthStatus(this.selectedYear);\n },\n\n _checkMonthStatus: function (year) {\n var o = this.options;\n var minDate = BI.parseDateTime(o.min, \"%Y-%X-%d\"), maxDate = BI.parseDateTime(o.max, \"%Y-%X-%d\");\n var minYear = minDate.getFullYear(), maxYear = maxDate.getFullYear();\n var minMonth = 0; var maxMonth = 11;\n minYear === year && (minMonth = minDate.getMonth());\n maxYear === year && (maxMonth = maxDate.getMonth());\n var yearInvalid = year < minYear || year > maxYear;\n BI.each(this.monthMap, function (month, obj) {\n var monthInvalid = month < minMonth || month > maxMonth;\n obj.setEnable(!yearInvalid && !monthInvalid);\n });\n },\n\n setMinDate: function (minDate) {\n if (this.options.min !== minDate) {\n this.options.min = minDate;\n this.yearPicker.setMinDate(minDate);\n this._checkMonthStatus(this.selectedYear);\n }\n },\n\n setMaxDate: function (maxDate) {\n if (this.options.max !== maxDate) {\n this.options.max = maxDate;\n this.yearPicker.setMaxDate(maxDate);\n this._checkMonthStatus(this.selectedYear);\n }\n },\n\n getValue: function () {\n return {\n year: this.selectedYear,\n month: this.selectedMonth\n };\n },\n\n setValue: function (obj) {\n var o = this.options;\n var newObj = {};\n newObj.year = obj.year || 0;\n newObj.month = obj.month || 0;\n if (newObj.year === 0 || newObj.month === 0 || BI.checkDateVoid(newObj.year, newObj.month, 1, o.min, o.max)[0]) {\n var year = newObj.year || BI.getDate().getFullYear();\n this.selectedYear = year;\n this.selectedMonth = \"\";\n this.yearPicker.setValue(year);\n this.month.setValue();\n } else {\n this.selectedYear = BI.parseInt(newObj.year);\n this.selectedMonth = BI.parseInt(newObj.month);\n this.yearPicker.setValue(this.selectedYear);\n this.month.setValue(this.selectedMonth);\n }\n }\n});\nBI.StaticYearMonthCard.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.static_year_month_card\", BI.StaticYearMonthCard);\nBI.DynamicYearMonthCombo = BI.inherit(BI.Single, {\n\n props: {\n baseCls: \"bi-year-month-combo bi-border bi-focus-shadow\",\n behaviors: {},\n minDate: \"1900-01-01\", // 最小日期\n maxDate: \"2099-12-31\", // 最大日期\n height: 22\n },\n\n _init: function () {\n BI.DynamicYearMonthCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.storeValue = o.value;\n this.storeTriggerValue = \"\";\n this.trigger = BI.createWidget({\n type: \"bi.dynamic_year_month_trigger\",\n min: o.minDate,\n max: o.maxDate,\n height: o.height,\n value: o.value || \"\"\n });\n this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_KEY_DOWN, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n });\n this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_START, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n });\n this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_STOP, function () {\n self.combo.showView();\n });\n this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_ERROR, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n self.fireEvent(BI.DynamicYearMonthCombo.EVENT_ERROR);\n });\n this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_VALID, function () {\n self.fireEvent(BI.DynamicYearMonthCombo.EVENT_VALID);\n });\n this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_CONFIRM, function () {\n // 没看出来干啥的,先去掉\n // if (self.combo.isViewVisible()) {\n // return;\n // }\n var dateStore = self.storeTriggerValue;\n var dateObj = self.trigger.getKey();\n if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) {\n self.storeValue = self.trigger.getValue();\n self.setValue(self.trigger.getValue());\n }\n self._checkDynamicValue(self.storeValue);\n self.fireEvent(BI.DynamicYearMonthCombo.EVENT_CONFIRM);\n });\n this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_FOCUS, function () {\n self.storeTriggerValue = self.trigger.getKey();\n self.fireEvent(BI.DynamicYearMonthCombo.EVENT_FOCUS);\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: this.trigger,\n popup: {\n minWidth: 100,\n stopPropagation: false,\n el: {\n type: \"bi.dynamic_year_month_popup\",\n ref: function () {\n self.popup = this;\n },\n listeners: [{\n eventName: BI.DynamicYearMonthPopup.EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicYearMonthCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearMonthPopup.BUTTON_CLEAR_EVENT_CHANGE,\n action: function () {\n self.setValue();\n self.combo.hideView();\n self.fireEvent(BI.DynamicYearMonthCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE,\n action: function () {\n var date = BI.getDate();\n self.setValue({type: BI.DynamicYearMonthCombo.Static, value: {year: date.getFullYear(), month: date.getMonth() + 1}});\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }],\n behaviors: o.behaviors,\n min: o.minDate,\n max: o.maxDate\n },\n value: o.value || \"\"\n }\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.popup.setValue(self.storeValue);\n self.fireEvent(BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW);\n });\n\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n ref: function () {\n self.comboWrapper = this;\n },\n items: [{\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-change-h-font\",\n width: 24,\n height: 24,\n ref: function () {\n self.changeIcon = this;\n }\n },\n width: 24\n }, this.combo]\n });\n this._checkDynamicValue(o.value);\n },\n\n _checkDynamicValue: function (v) {\n var type = null;\n if (BI.isNotNull(v)) {\n type = v.type;\n }\n switch (type) {\n case BI.DynamicYearMonthCombo.Dynamic:\n this.changeIcon.setVisible(true);\n this.comboWrapper.attr(\"items\")[0].width = 24;\n this.comboWrapper.resize();\n break;\n default:\n this.comboWrapper.attr(\"items\")[0].width = 0;\n this.comboWrapper.resize();\n this.changeIcon.setVisible(false);\n break;\n }\n },\n\n hideView: function () {\n this.combo.hideView();\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.trigger.setValue(v);\n this._checkDynamicValue(v);\n },\n\n getValue: function () {\n return this.storeValue;\n },\n\n getKey: function () {\n return this.trigger.getKey();\n },\n\n isValid: function () {\n return this.trigger.isValid();\n }\n\n});\nBI.DynamicYearMonthCombo.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicYearMonthCombo.EVENT_VALID = \"EVENT_VALID\";\nBI.DynamicYearMonthCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicYearMonthCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.dynamic_year_month_combo\", BI.DynamicYearMonthCombo);\n\nBI.extend(BI.DynamicYearMonthCombo, {\n Static: 1,\n Dynamic: 2\n});/**\n * 年月\n *\n * Created by GUY on 2015/9/2.\n * @class BI.DynamicYearMonthPopup\n * @extends BI.Trigger\n */\nBI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {\n constants: {\n tabHeight: 30,\n buttonHeight: 24\n },\n\n props: {\n baseCls: \"bi-year-month-popup\",\n behaviors: {},\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期,\n width: 180,\n height: 240\n },\n\n render: function () {\n var self = this, opts = this.options, c = this.constants;\n this.storeValue = {type: BI.DynamicYearMonthCombo.Static};\n return {\n type: \"bi.vtape\",\n items: [{\n el: this._getTabJson()\n }, {\n el: {\n type: \"bi.grid\",\n items: [[{\n type: \"bi.text_button\",\n cls: \"bi-split-top bi-high-light\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Clear\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_CLEAR_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-left bi-split-right bi-high-light bi-split-top\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Current_Month\"),\n ref: function () {\n self.textButton = this;\n },\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-top bi-high-light\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_OK\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE);\n }\n }]\n }]]\n },\n height: 24\n }]\n };\n },\n\n _setInnerValue: function () {\n if (this.dateTab.getSelect() === BI.DynamicDateCombo.Static) {\n this.textButton.setValue(BI.i18nText(\"BI-Basic_Current_Month\"));\n this.textButton.setEnable(true);\n } else {\n var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());\n date = BI.print(date, \"%Y-%x\");\n this.textButton.setValue(date);\n this.textButton.setEnable(false);\n }\n },\n\n _getTabJson: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.tab\",\n ref: function () {\n self.dateTab = this;\n },\n tab: {\n type: \"bi.linear_segment\",\n cls: \"bi-split-bottom\",\n height: this.constants.tabHeight,\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Basic_Year_Month\"),\n value: BI.DynamicYearCombo.Static\n }, {\n text: BI.i18nText(\"BI-Basic_Dynamic_Title\"),\n value: BI.DynamicYearCombo.Dynamic\n }], {\n textAlign: \"center\"\n })\n },\n cardCreator: function (v) {\n switch (v) {\n case BI.DynamicYearCombo.Dynamic:\n return {\n type: \"bi.dynamic_year_month_card\",\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self._setInnerValue(self.year, v);\n }\n }],\n ref: function () {\n self.dynamicPane = this;\n }\n };\n case BI.DynamicYearCombo.Static:\n default:\n return {\n type: \"bi.static_year_month_card\",\n behaviors: o.behaviors,\n min: self.options.min,\n max: self.options.max,\n listeners: [{\n eventName: BI.StaticYearMonthCard.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearMonthPopup.EVENT_CHANGE);\n }\n }],\n ref: function () {\n self.year = this;\n }\n };\n }\n },\n listeners: [{\n eventName: BI.Tab.EVENT_CHANGE,\n action: function () {\n var v = self.dateTab.getSelect();\n switch (v) {\n case BI.DynamicYearCombo.Static:\n var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue());\n self.year.setValue({year: date.getFullYear(), month: date.getMonth() + 1});\n self._setInnerValue();\n break;\n case BI.DynamicYearCombo.Dynamic:\n default:\n if(self.storeValue && self.storeValue.type === BI.DynamicYearCombo.Dynamic) {\n self.dynamicPane.setValue(self.storeValue.value);\n }else{\n self.dynamicPane.setValue({\n year: 0\n });\n }\n self._setInnerValue();\n break;\n }\n }\n }]\n };\n },\n\n setMinDate: function (minDate) {\n if (this.options.min !== minDate) {\n this.options.min = minDate;\n this.year.setMinDate(minDate);\n }\n },\n\n setMaxDate: function (maxDate) {\n if (this.options.max !== maxDate) {\n this.options.max = maxDate;\n this.year.setMaxDate(maxDate);\n }\n },\n\n setValue: function (v) {\n this.storeValue = v;\n var self = this;\n var type, value;\n v = v || {};\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n this.dateTab.setSelect(type);\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n this.dynamicPane.setValue(value);\n self._setInnerValue();\n break;\n case BI.DynamicDateCombo.Static:\n default:\n this.year.setValue(value);\n this.textButton.setValue(BI.i18nText(\"BI-Basic_Current_Month\"));\n this.textButton.setEnable(true);\n break;\n }\n },\n\n getValue: function () {\n return {\n type: this.dateTab.getSelect(),\n value: this.dateTab.getValue()\n };\n }\n\n});\nBI.DynamicYearMonthPopup.BUTTON_CLEAR_EVENT_CHANGE = \"BUTTON_CLEAR_EVENT_CHANGE\";\nBI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE = \"BUTTON_lABEL_EVENT_CHANGE\";\nBI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE = \"BUTTON_OK_EVENT_CHANGE\";\nBI.DynamicYearMonthPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_year_month_popup\", BI.DynamicYearMonthPopup);BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4,\n vgap: 2\n },\n\n props: {\n extraCls: \"bi-year-month-trigger\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 22\n },\n\n beforeInit: function (callback) {\n var o = this.options;\n o.title = BI.bind(this._titleCreator, this);\n callback();\n },\n\n _init: function () {\n BI.DynamicYearMonthTrigger.superclass._init.apply(this, arguments);\n var o = this.options;\n\n this.yearEditor = this._createEditor(true);\n this.monthEditor = this._createEditor(false);\n\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [{\n type: \"bi.center\",\n items: [{\n type: \"bi.htape\",\n items: [this.yearEditor, {\n el: {\n type: \"bi.text_button\",\n text: BI.i18nText(\"BI-Multi_Date_Year\"),\n width: o.height\n },\n width: o.height\n }]\n }, {\n type: \"bi.htape\",\n items: [this.monthEditor, {\n el: {\n type: \"bi.text_button\",\n text: BI.i18nText(\"BI-Multi_Date_Month\"),\n width: o.height\n },\n width: o.height}]\n }]\n }, {\n el: {\n type: \"bi.trigger_icon_button\",\n width: o.height\n },\n width: o.height\n }]\n });\n this.setValue(o.value);\n },\n\n _createEditor: function (isYear) {\n var self = this, o = this.options, c = this._const;\n var minDate = BI.parseDateTime(o.min, \"%Y-%X-%d\");\n var editor = BI.createWidget({\n type: \"bi.sign_editor\",\n height: o.height,\n validationChecker: function (v) {\n if(isYear) {\n return v === \"\" || (BI.isPositiveInteger(v) && !BI.checkDateVoid(v, v === minDate.getFullYear() ? minDate.getMonth() + 1 : 1, 1, o.min, o.max)[0]);\n }\n return v === \"\" || ((BI.isPositiveInteger(v) && v >= 1 && v <= 12) && !BI.checkDateVoid(BI.getDate().getFullYear(), v, 1, o.min, o.max)[0]);\n },\n quitChecker: function () {\n return false;\n },\n watermark: BI.i18nText(\"BI-Basic_Unrestricted\"),\n errorText: function (v) {\n return BI.i18nText(\"BI-Year_Trigger_Invalid_Text\");\n },\n hgap: c.hgap,\n vgap: c.vgap,\n allowBlank: true\n });\n editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () {\n self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_KEY_DOWN);\n });\n editor.on(BI.SignEditor.EVENT_FOCUS, function () {\n self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_FOCUS);\n });\n editor.on(BI.SignEditor.EVENT_STOP, function () {\n self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_STOP);\n });\n editor.on(BI.SignEditor.EVENT_CONFIRM, function () {\n self._doEditorConfirm(editor);\n self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM);\n });\n editor.on(BI.SignEditor.EVENT_SPACE, function () {\n if (editor.isValid()) {\n editor.blur();\n }\n });\n editor.on(BI.SignEditor.EVENT_START, function () {\n self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_START);\n });\n editor.on(BI.SignEditor.EVENT_ERROR, function () {\n self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_ERROR);\n });\n editor.on(BI.SignEditor.EVENT_VALID, function () {\n var year = self.yearEditor.getValue();\n var month = self.monthEditor.getValue();\n if(BI.isNotEmptyString(year) && BI.isNotEmptyString(month)) {\n if(BI.isPositiveInteger(year) && month >= 1 && month <= 12 && !BI.checkDateVoid(year, month, 1, o.min, o.max)[0]) {\n self.fireEvent(BI.DynamicYearMonthTrigger.EVENT_VALID);\n }\n }\n });\n editor.on(BI.SignEditor.EVENT_CHANGE, function () {\n if(isYear) {\n self._autoSwitch(editor);\n }\n });\n\n return editor;\n },\n\n _titleCreator: function () {\n var storeValue = this.storeValue || {};\n var type = storeValue.type || BI.DynamicDateCombo.Static;\n var value = storeValue.value;\n if(!this.monthEditor.isValid() || !this.yearEditor.isValid()) {\n return \"\";\n }\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n var date = BI.getDate();\n date = BI.DynamicDateHelper.getCalculation(value);\n var dateStr = BI.print(date, \"%Y-%x\");\n return BI.isEmptyString(text) ? dateStr : (text + \":\" + dateStr);\n case BI.DynamicDateCombo.Static:\n default:\n value = value || {};\n return this._getStaticTitle(value);\n }\n },\n\n _doEditorConfirm: function (editor) {\n var value = editor.getValue();\n if (BI.isNotNull(value)) {\n editor.setValue(value);\n }\n var monthValue = this.monthEditor.getValue();\n this.storeValue = {\n type: BI.DynamicDateCombo.Static,\n value: {\n year: this.yearEditor.getValue(),\n month: BI.isEmptyString(this.monthEditor.getValue()) ? \"\" : monthValue\n }\n };\n },\n\n _yearCheck: function (v) {\n var date = BI.print(BI.parseDateTime(v, \"%Y-%X-%d\"), \"%Y-%X-%d\");\n return BI.print(BI.parseDateTime(v, \"%Y\"), \"%Y\") === v && date >= this.options.min && date <= this.options.max;\n },\n\n _autoSwitch: function (editor) {\n var v = editor.getValue();\n if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {\n if (v.length === 4 && this._yearCheck(v)) {\n this._doEditorConfirm(editor);\n this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM);\n this.monthEditor.focus();\n }\n }\n },\n\n _getText: function (obj) {\n var value = \"\";\n if(BI.isNotNull(obj.year) && BI.parseInt(obj.year) !== 0) {\n value += Math.abs(obj.year) + BI.i18nText(\"BI-Basic_Year\") + (obj.year < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n if(BI.isNotNull(obj.month) && BI.parseInt(obj.month) !== 0) {\n value += Math.abs(obj.month) + BI.i18nText(\"BI-Basic_Month\") + (obj.month < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n return value;\n },\n\n _setInnerValue: function (date, text) {\n this.yearEditor.setValue(date.getFullYear());\n this.monthEditor.setValue(date.getMonth() + 1);\n },\n\n _getStaticTitle: function (value) {\n value = value || {};\n var hasYear = !(BI.isNull(value.year) || BI.isEmptyString(value.year));\n var hasMonth = !(BI.isNull(value.month) || BI.isEmptyString(value.month));\n switch ((hasYear << 1) | hasMonth) {\n // !hasYear && !hasMonth\n case 0:\n return \"\";\n // !hasYear && hasMonth\n case 1:\n return value.month;\n // hasYear && !hasMonth\n case 2:\n return value.year;\n // hasYear && hasMonth\n case 3:\n default:\n return value.year + \"-\" + value.month;\n }\n },\n\n setValue: function (v) {\n var type, value;\n var date = BI.getDate();\n this.storeValue = v;\n if (BI.isNotNull(v)) {\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n }\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n var text = this._getText(value);\n date = BI.DynamicDateHelper.getCalculation(value);\n this._setInnerValue(date, text);\n break;\n case BI.DynamicDateCombo.Static:\n default:\n value = value || {};\n var month = BI.isNull(value.month) ? null : value.month;\n this.yearEditor.setValue(value.year);\n this.monthEditor.setValue(month);\n break;\n }\n },\n\n getValue: function () {\n return this.storeValue;\n },\n\n getKey: function () {\n return this.yearEditor.getValue() + \"-\" + this.monthEditor.getValue();\n },\n\n isValid: function () {\n return this.yearEditor.isValid() && this.monthEditor.isValid();\n }\n});\nBI.DynamicYearMonthTrigger.EVENT_VALID = \"EVENT_VALID\";\nBI.DynamicYearMonthTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicYearMonthTrigger.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicYearMonthTrigger.EVENT_START = \"EVENT_START\";\nBI.DynamicYearMonthTrigger.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicYearMonthTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.DynamicYearMonthTrigger.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.shortcut(\"bi.dynamic_year_month_trigger\", BI.DynamicYearMonthTrigger);BI.YearMonthInterval = BI.inherit(BI.Single, {\n constants: {\n height: 24,\n width: 25,\n lgap: 15,\n offset: -15,\n timeErrorCls: \"time-error\"\n },\n\n props: {\n extraCls: \"bi-year-month-interval\",\n minDate: \"1900-01-01\",\n maxDate: \"2099-12-31\"\n },\n\n _init: function () {\n var self = this, o = this.options;\n BI.YearMonthInterval.superclass._init.apply(this, arguments);\n\n o.value = o.value || {};\n this.left = this._createCombo(o.value.start);\n this.right = this._createCombo(o.value.end);\n this.label = BI.createWidget({\n type: \"bi.label\",\n height: this.constants.height,\n width: this.constants.width,\n text: \"-\"\n });\n BI.createWidget({\n element: self,\n type: \"bi.center\",\n hgap: 15,\n height: this.constants.height,\n items: [{\n type: \"bi.absolute\",\n items: [{\n el: self.left,\n left: this.constants.offset,\n right: 0,\n top: 0,\n bottom: 0\n }]\n }, {\n type: \"bi.absolute\",\n items: [{\n el: self.right,\n left: 0,\n right: this.constants.offset,\n top: 0,\n bottom: 0\n }]\n }]\n });\n BI.createWidget({\n type: \"bi.horizontal_auto\",\n element: this,\n items: [\n self.label\n ]\n });\n },\n\n _createCombo: function (v) {\n var self = this, o = this.options;\n var combo = BI.createWidget({\n type: \"bi.dynamic_year_month_combo\",\n behaviors: o.behaviors,\n value: v,\n listeners: [{\n eventName: BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW,\n action: function () {\n self.fireEvent(BI.YearMonthInterval.EVENT_BEFORE_POPUPVIEW);\n }\n }]\n });\n combo.on(BI.DynamicYearMonthCombo.EVENT_ERROR, function () {\n self._clearTitle();\n BI.Bubbles.hide(\"error\");\n self.element.removeClass(self.constants.timeErrorCls);\n self.fireEvent(BI.YearMonthInterval.EVENT_ERROR);\n });\n\n combo.on(BI.DynamicYearMonthCombo.EVENT_VALID, function () {\n self._checkValid();\n });\n\n combo.on(BI.DynamicYearMonthCombo.EVENT_FOCUS, function () {\n self._checkValid();\n });\n\n combo.on(BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW, function () {\n self.left.hideView();\n self.right.hideView();\n });\n\n combo.on(BI.DynamicYearMonthCombo.EVENT_CONFIRM, function () {\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self.left.isValid() && self.right.isValid() && self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n self.fireEvent(BI.YearMonthInterval.EVENT_ERROR);\n }else{\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n self.fireEvent(BI.YearMonthInterval.EVENT_CHANGE);\n }\n });\n return combo;\n },\n\n\n _dateCheck: function (date) {\n return BI.print(BI.parseDateTime(date, \"%Y-%x\"), \"%Y-%x\") === date || BI.print(BI.parseDateTime(date, \"%Y-%X\"), \"%Y-%X\") === date;\n },\n\n\n // 判是否在最大最小之间\n _checkVoid: function (obj) {\n var o = this.options;\n return !BI.checkDateVoid(obj.year, obj.month, 1, o.minDate, o.maxDate)[0];\n },\n\n // 判格式合法\n _check: function (smallDate, bigDate) {\n var smallObj = smallDate.match(/\\d+/g), bigObj = bigDate.match(/\\d+/g);\n\n var smallDate4Check = \"\";\n if (BI.isNotNull(smallObj)) {\n smallDate4Check = (smallObj[0] || \"\") + \"-\" + (smallObj[1] || 1);\n }\n\n var bigDate4Check = \"\";\n if (BI.isNotNull(bigObj)) {\n bigDate4Check = (bigObj[0] || \"\") + \"-\" + (bigObj[1] || 1);\n }\n\n return this._dateCheck(smallDate4Check) && BI.checkDateLegal(smallDate) && this._checkVoid({\n year: smallObj[0],\n month: smallObj[1],\n day: 1\n }) && this._dateCheck(bigDate4Check) && BI.checkDateLegal(bigDate) && this._checkVoid({\n year: bigObj[0],\n month: bigObj[1],\n day: 1\n });\n },\n\n _compare: function (smallDate, bigDate) {\n smallDate = BI.print(BI.parseDateTime(smallDate, \"%Y-%X\"), \"%Y-%X\");\n bigDate = BI.print(BI.parseDateTime(bigDate, \"%Y-%X\"), \"%Y-%X\");\n return BI.isNotNull(smallDate) && BI.isNotNull(bigDate) && smallDate > bigDate;\n },\n _setTitle: function (v) {\n this.setTitle(v);\n },\n _clearTitle: function () {\n this.setTitle(\"\");\n },\n _checkValid: function () {\n var self = this;\n\n BI.Bubbles.hide(\"error\");\n var smallDate = self.left.getKey(), bigDate = self.right.getKey();\n if (self.left.isValid() && self.right.isValid() && self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) {\n self._setTitle(BI.i18nText(\"BI-Time_Interval_Error_Text\"));\n self.element.addClass(self.constants.timeErrorCls);\n BI.Bubbles.show(\"error\", BI.i18nText(\"BI-Time_Interval_Error_Text\"), self, {\n offsetStyle: \"center\"\n });\n self.fireEvent(BI.YearMonthInterval.EVENT_ERROR);\n } else {\n self._clearTitle();\n self.element.removeClass(self.constants.timeErrorCls);\n }\n },\n setValue: function (date) {\n date = date || {};\n this.left.setValue(date.start);\n this.right.setValue(date.end);\n\n this._checkValid();\n },\n getValue: function () {\n return {start: this.left.getValue(), end: this.right.getValue()};\n }\n});\nBI.YearMonthInterval.EVENT_VALID = \"EVENT_VALID\";\nBI.YearMonthInterval.EVENT_ERROR = \"EVENT_ERROR\";\nBI.YearMonthInterval.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.YearMonthInterval.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.year_month_interval\", BI.YearMonthInterval);\n/**\n * 年季度展示面板\n *\n * Created by GUY on 2015/9/2.\n * @class BI.YearCard\n * @extends BI.Trigger\n */\nBI.DynamicYearQuarterCard = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-year-month-card\"\n },\n\n render: function () {\n var self = this;\n return {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.label\",\n text: BI.i18nText(\"BI-Multi_Date_Relative_Current_Time\"),\n textAlign: \"left\",\n height: 24\n }, {\n type: \"bi.dynamic_date_param_item\",\n ref: function () {\n self.year = this;\n },\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n }, {\n type: \"bi.dynamic_date_param_item\",\n dateType: BI.DynamicDateCard.TYPE.QUARTER,\n ref: function () {\n self.quarter = this;\n },\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self.fireEvent(\"EVENT_CHANGE\");\n }\n }]\n }],\n vgap: 10,\n hgap: 10\n };\n },\n\n _createValue: function (type, v) {\n return {\n dateType: type,\n value: Math.abs(v),\n offset: v > 0 ? 1 : 0\n };\n },\n\n setValue: function (v) {\n v = v || {year: 0, month: 0};\n this.year.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR, v.year));\n this.quarter.setValue(this._createValue(BI.DynamicDateCard.TYPE.QUARTER, v.quarter));\n },\n\n getValue: function () {\n var year = this.year.getValue();\n var quarter = this.quarter.getValue();\n return {\n year: (year.offset === 0 ? -year.value : year.value),\n quarter: (quarter.offset === 0 ? -quarter.value : quarter.value)\n };\n }\n});\nBI.DynamicYearQuarterCard.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_year_quarter_card\", BI.DynamicYearQuarterCard);BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-static-year-quarter-card\",\n behaviors: {}\n },\n\n _createQuarter: function () {\n\n var items = [{\n text: BI.Date._QN[1],\n value: 1\n }, {\n text: BI.Date._QN[2],\n value: 2\n }, {\n text: BI.Date._QN[3],\n value: 3\n }, {\n text: BI.Date._QN[4],\n value: 4\n }];\n return BI.map(items, function (j, item) {\n return BI.extend(item, {\n type: \"bi.text_item\",\n cls: \"bi-list-item-select\",\n textAlign: \"center\",\n whiteSpace: \"nowrap\",\n once: false,\n forceSelected: true,\n height: 24\n });\n });\n },\n\n render: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.vertical\",\n items: [{\n type: \"bi.year_picker\",\n ref: function () {\n self.yearPicker = this;\n },\n behaviors: o.behaviors,\n height: 30,\n listeners: [{\n eventName: BI.YearPicker.EVENT_CHANGE,\n action: function () {\n var value = this.getValue();\n self.setValue({\n year: value,\n quarter: self.selectedQuarter\n });\n }\n }]\n }, {\n type: \"bi.button_group\",\n behaviors: o.behaviors,\n ref: function () {\n self.quarter = this;\n },\n items: this._createQuarter(),\n layouts: [{\n type: \"bi.vertical\",\n vgap: 10\n }],\n value: o.value,\n listeners: [{\n eventName: BI.ButtonGroup.EVENT_CHANGE,\n action: function () {\n self.selectedYear = self.yearPicker.getValue();\n self.selectedQuarter = this.getValue()[0];\n self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE);\n }\n }]\n }]\n };\n },\n\n\n getValue: function () {\n return {\n year: this.selectedYear,\n quarter: this.selectedQuarter\n };\n },\n\n setValue: function (obj) {\n var o = this.options;\n var newObj = {};\n newObj.year = obj.year || 0;\n newObj.quarter = obj.quarter || 0;\n if (newObj.quarter === 0 || newObj.year === 0 || BI.checkDateVoid(newObj.year, newObj.quarter, 1, o.min, o.max)[0]) {\n var year = newObj.year || BI.getDate().getFullYear();\n this.selectedYear = year;\n this.selectedQuarter = \"\";\n this.yearPicker.setValue(year);\n this.quarter.setValue();\n } else {\n this.selectedYear = BI.parseInt(newObj.year);\n this.selectedQuarter = BI.parseInt(newObj.quarter);\n this.yearPicker.setValue(this.selectedYear);\n this.quarter.setValue(this.selectedQuarter);\n }\n }\n});\nBI.StaticYearQuarterCard.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.static_year_quarter_card\", BI.StaticYearQuarterCard);\nBI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-year-quarter-combo bi-border bi-focus-shadow\",\n behaviors: {},\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 22\n },\n\n _init: function () {\n BI.DynamicYearQuarterCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.storeValue = o.value;\n self.storeTriggerValue = \"\";\n this.trigger = BI.createWidget({\n type: \"bi.dynamic_year_quarter_trigger\",\n min: o.min,\n max: o.max,\n height: o.height,\n value: o.value || \"\"\n });\n this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n });\n this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_START, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n });\n this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_STOP, function () {\n self.combo.showView();\n });\n this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_ERROR, function () {\n self.combo.isViewVisible() && self.combo.hideView();\n });\n this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM, function () {\n // 没看出来干啥的,先去掉\n // if (self.combo.isViewVisible()) {\n // return;\n // }\n var dateStore = self.storeTriggerValue;\n var dateObj = self.trigger.getKey();\n if (BI.isNotEmptyString(dateObj) && !BI.isEqual(dateObj, dateStore)) {\n self.storeValue = self.trigger.getValue();\n self.setValue(self.trigger.getValue());\n }\n self._checkDynamicValue(self.storeValue);\n self.fireEvent(BI.DynamicYearQuarterCombo.EVENT_CONFIRM);\n });\n this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_FOCUS, function () {\n self.storeTriggerValue = self.trigger.getKey();\n });\n\n this.combo = BI.createWidget({\n type: \"bi.combo\",\n container: o.container,\n isNeedAdjustHeight: false,\n isNeedAdjustWidth: false,\n el: this.trigger,\n popup: {\n minWidth: 85,\n stopPropagation: false,\n el: {\n type: \"bi.dynamic_year_quarter_popup\",\n ref: function () {\n self.popup = this;\n },\n listeners: [{\n eventName: BI.DynamicYearQuarterPopup.EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicYearQuarterCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearQuarterPopup.BUTTON_CLEAR_EVENT_CHANGE,\n action: function () {\n self.setValue();\n self.combo.hideView();\n self.fireEvent(BI.DynamicYearQuarterCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE,\n action: function () {\n var date = BI.getDate();\n self.setValue({type: BI.DynamicYearMonthCombo.Static, value: {year: date.getFullYear(), quarter: BI.getQuarter(date)}});\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }, {\n eventName: BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE,\n action: function () {\n self.setValue(self.popup.getValue());\n self.combo.hideView();\n self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);\n }\n }],\n behaviors: o.behaviors,\n min: o.min,\n max: o.max\n },\n value: o.value || \"\"\n }\n });\n this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {\n self.popup.setValue(self.storeValue);\n self.fireEvent(BI.DynamicYearQuarterCombo.EVENT_BEFORE_POPUPVIEW);\n });\n\n BI.createWidget({\n type: \"bi.htape\",\n element: this,\n ref: function () {\n self.comboWrapper = this;\n },\n items: [{\n el: {\n type: \"bi.icon_button\",\n cls: \"bi-trigger-icon-button date-change-h-font\",\n width: 24,\n height: 24,\n ref: function () {\n self.changeIcon = this;\n }\n },\n width: 24\n }, this.combo]\n });\n this._checkDynamicValue(o.value);\n },\n\n _checkDynamicValue: function (v) {\n var type = null;\n if (BI.isNotNull(v)) {\n type = v.type;\n }\n switch (type) {\n case BI.DynamicYearQuarterCombo.Dynamic:\n this.changeIcon.setVisible(true);\n this.comboWrapper.attr(\"items\")[0].width = 24;\n this.comboWrapper.resize();\n break;\n default:\n this.comboWrapper.attr(\"items\")[0].width = 0;\n this.comboWrapper.resize();\n this.changeIcon.setVisible(false);\n break;\n }\n },\n\n setValue: function (v) {\n this.storeValue = v;\n this.trigger.setValue(v);\n this._checkDynamicValue(v);\n },\n\n getValue: function () {\n return this.storeValue;\n }\n\n});\nBI.DynamicYearQuarterCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicYearQuarterCombo.EVENT_BEFORE_POPUPVIEW = \"EVENT_BEFORE_POPUPVIEW\";\nBI.shortcut(\"bi.dynamic_year_quarter_combo\", BI.DynamicYearQuarterCombo);\n\nBI.extend(BI.DynamicYearQuarterCombo, {\n Static: 1,\n Dynamic: 2\n});BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {\n constants: {\n tabHeight: 30,\n buttonHeight: 24\n },\n\n props: {\n baseCls: \"bi-year-quarter-popup\",\n behaviors: {},\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期,\n width: 180,\n height: 240\n },\n\n render: function () {\n var self = this, opts = this.options, c = this.constants;\n this.storeValue = {type: BI.DynamicYearQuarterCombo.Static};\n return {\n type: \"bi.vtape\",\n items: [{\n el: this._getTabJson()\n }, {\n el: {\n type: \"bi.grid\",\n items: [[{\n type: \"bi.text_button\",\n cls: \"bi-split-top bi-high-light\",\n shadow: true,\n textHeight: c.buttonHeight - 1,\n text: BI.i18nText(\"BI-Basic_Clear\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_CLEAR_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-left bi-split-right bi-high-light bi-split-top\",\n textHeight: c.buttonHeight - 1,\n shadow: true,\n text: BI.i18nText(\"BI-Basic_Current_Quarter\"),\n ref: function () {\n self.textButton = this;\n },\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE);\n }\n }]\n }, {\n type: \"bi.text_button\",\n cls: \"bi-split-top bi-high-light\",\n shadow: true,\n textHeight: c.buttonHeight - 1,\n text: BI.i18nText(\"BI-Basic_OK\"),\n listeners: [{\n eventName: BI.TextButton.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE);\n }\n }]\n }]]\n },\n height: 24\n }]\n };\n },\n\n _setInnerValue: function () {\n if (this.dateTab.getSelect() === BI.DynamicYearQuarterCombo.Static) {\n this.textButton.setValue(BI.i18nText(\"BI-Basic_Current_Quarter\"));\n this.textButton.setEnable(true);\n } else {\n var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue());\n date = BI.print(date, \"%Y-%Q\");\n this.textButton.setValue(date);\n this.textButton.setEnable(false);\n }\n },\n\n _getTabJson: function () {\n var self = this, o = this.options;\n return {\n type: \"bi.tab\",\n ref: function () {\n self.dateTab = this;\n },\n tab: {\n type: \"bi.linear_segment\",\n cls: \"bi-split-bottom\",\n height: this.constants.tabHeight,\n items: BI.createItems([{\n text: BI.i18nText(\"BI-Basic_Year_Quarter\"),\n value: BI.DynamicYearQuarterCombo.Static\n }, {\n text: BI.i18nText(\"BI-Basic_Dynamic_Title\"),\n value: BI.DynamicYearQuarterCombo.Dynamic\n }], {\n textAlign: \"center\"\n })\n },\n cardCreator: function (v) {\n switch (v) {\n case BI.DynamicYearQuarterCombo.Dynamic:\n return {\n type: \"bi.dynamic_year_quarter_card\",\n listeners: [{\n eventName: \"EVENT_CHANGE\",\n action: function () {\n self._setInnerValue(self.year, v);\n }\n }],\n ref: function () {\n self.dynamicPane = this;\n }\n };\n case BI.DynamicYearQuarterCombo.Static:\n default:\n return {\n type: \"bi.static_year_quarter_card\",\n behaviors: o.behaviors,\n min: self.options.min,\n max: self.options.max,\n listeners: [{\n eventName: BI.DynamicYearCard.EVENT_CHANGE,\n action: function () {\n self.fireEvent(BI.DynamicYearQuarterPopup.EVENT_CHANGE);\n }\n }],\n ref: function () {\n self.year = this;\n }\n };\n }\n },\n listeners: [{\n eventName: BI.Tab.EVENT_CHANGE,\n action: function () {\n var v = self.dateTab.getSelect();\n switch (v) {\n case BI.DynamicYearQuarterCombo.Static:\n var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue());\n self.year.setValue({year: date.getFullYear(), quarter: BI.getQuarter(date)});\n self._setInnerValue();\n break;\n case BI.DynamicYearQuarterCombo.Dynamic:\n default:\n if(self.storeValue && self.storeValue.type === BI.DynamicYearQuarterCombo.Dynamic) {\n self.dynamicPane.setValue(self.storeValue.value);\n }else{\n self.dynamicPane.setValue({\n year: 0\n });\n }\n self._setInnerValue();\n break;\n }\n }\n }]\n };\n },\n\n setValue: function (v) {\n this.storeValue = v;\n var self = this;\n var type, value;\n v = v || {};\n type = v.type || BI.DynamicDateCombo.Static;\n value = v.value || v;\n this.dateTab.setSelect(type);\n switch (type) {\n case BI.DynamicDateCombo.Dynamic:\n this.dynamicPane.setValue(value);\n self._setInnerValue();\n break;\n case BI.DynamicDateCombo.Static:\n default:\n this.year.setValue(value);\n this.textButton.setValue(BI.i18nText(\"BI-Basic_Current_Quarter\"));\n this.textButton.setEnable(true);\n break;\n }\n },\n\n getValue: function () {\n return {\n type: this.dateTab.getSelect(),\n value: this.dateTab.getValue()\n };\n }\n\n});\nBI.DynamicYearQuarterPopup.BUTTON_CLEAR_EVENT_CHANGE = \"BUTTON_CLEAR_EVENT_CHANGE\";\nBI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE = \"BUTTON_lABEL_EVENT_CHANGE\";\nBI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE = \"BUTTON_OK_EVENT_CHANGE\";\nBI.DynamicYearQuarterPopup.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.dynamic_year_quarter_popup\", BI.DynamicYearQuarterPopup);BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {\n _const: {\n hgap: 4,\n vgap: 2\n },\n\n props: {\n extraCls: \"bi-year-quarter-trigger\",\n min: \"1900-01-01\", // 最小日期\n max: \"2099-12-31\", // 最大日期\n height: 22\n },\n\n _init: function () {\n BI.DynamicYearQuarterTrigger.superclass._init.apply(this, arguments);\n var o = this.options;\n\n this.yearEditor = this._createEditor(true);\n this.quarterEditor = this._createEditor(false);\n\n BI.createWidget({\n element: this,\n type: \"bi.htape\",\n items: [{\n type: \"bi.center\",\n items: [{\n type: \"bi.htape\",\n items: [this.yearEditor, {\n el: {\n type: \"bi.text_button\",\n text: BI.i18nText(\"BI-Multi_Date_Year\"),\n width: o.height\n },\n width: o.height\n }]\n }, {\n type: \"bi.htape\",\n items: [this.quarterEditor, {\n el: {\n type: \"bi.text_button\",\n text: BI.i18nText(\"BI-Multi_Date_Quarter\"),\n width: 24\n },\n width: 24}]\n }]\n }, {\n el: {\n type: \"bi.trigger_icon_button\",\n width: o.height\n },\n width: o.height\n }]\n });\n this.setValue(o.value);\n },\n\n _createEditor: function (isYear) {\n var self = this, o = this.options, c = this._const;\n var editor = BI.createWidget({\n type: \"bi.sign_editor\",\n height: o.height,\n validationChecker: function (v) {\n if(isYear) {\n return v === \"\" || (BI.isPositiveInteger(v) && !BI.checkDateVoid(v, 1, 1, o.min, o.max)[0]);\n }\n return v === \"\" || ((BI.isPositiveInteger(v) && v >= 1 && v <= 4) && !BI.checkDateVoid(BI.getDate().getFullYear(), v, 1, o.min, o.max)[0]);\n },\n quitChecker: function () {\n return false;\n },\n errorText: function (v) {\n return BI.i18nText(\"BI-Year_Trigger_Invalid_Text\");\n },\n watermark: BI.i18nText(\"BI-Basic_Unrestricted\"),\n hgap: c.hgap,\n vgap: c.vgap,\n title: \"\",\n allowBlank: true\n });\n editor.on(BI.SignEditor.EVENT_KEY_DOWN, function () {\n self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN);\n });\n editor.on(BI.SignEditor.EVENT_FOCUS, function () {\n self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_FOCUS);\n });\n editor.on(BI.SignEditor.EVENT_STOP, function () {\n self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_STOP);\n });\n editor.on(BI.SignEditor.EVENT_CONFIRM, function () {\n self._doEditorConfirm(editor);\n self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM);\n });\n editor.on(BI.SignEditor.EVENT_SPACE, function () {\n if (editor.isValid()) {\n editor.blur();\n }\n });\n editor.on(BI.SignEditor.EVENT_START, function () {\n self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_START);\n });\n editor.on(BI.SignEditor.EVENT_ERROR, function () {\n self.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_ERROR);\n });\n editor.on(BI.SignEditor.EVENT_CHANGE, function () {\n if(isYear) {\n self._autoSwitch(editor);\n }\n });\n\n return editor;\n },\n\n _doEditorConfirm: function (editor) {\n var value = editor.getValue();\n if (BI.isNotNull(value)) {\n editor.setValue(value);\n }\n var quarterValue = this.quarterEditor.getValue();\n this.storeValue = {\n type: BI.DynamicYearQuarterCombo.Static,\n value: {\n year: this.yearEditor.getValue(),\n quarter: BI.isEmptyString(this.quarterEditor.getValue()) ? \"\" : quarterValue\n }\n };\n this.setTitle(this._getStaticTitle(this.storeValue.value));\n },\n\n _yearCheck: function (v) {\n var date = BI.print(BI.parseDateTime(v, \"%Y-%X-%d\"), \"%Y-%X-%d\");\n return BI.print(BI.parseDateTime(v, \"%Y\"), \"%Y\") === v && date >= this.options.min && date <= this.options.max;\n },\n\n _autoSwitch: function (editor) {\n var v = editor.getValue();\n if (BI.isNotEmptyString(v) && BI.checkDateLegal(v)) {\n if (v.length === 4 && this._yearCheck(v)) {\n this._doEditorConfirm(editor);\n this.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM);\n this.quarterEditor.focus();\n }\n }\n },\n\n _getStaticTitle: function (value) {\n value = value || {};\n var hasYear = !(BI.isNull(value.year) || BI.isEmptyString(value.year));\n var hasMonth = !(BI.isNull(value.quarter) || BI.isEmptyString(value.quarter));\n switch ((hasYear << 1) | hasMonth) {\n // !hasYear && !hasMonth\n case 0:\n return \"\";\n // !hasYear && hasMonth\n case 1:\n return value.quarter;\n // hasYear && !hasMonth\n case 2:\n return value.year;\n // hasYear && hasMonth\n case 3:\n default:\n return value.year + \"-\" + value.quarter;\n }\n },\n\n _getText: function (obj) {\n var value = \"\";\n if(BI.isNotNull(obj.year) && BI.parseInt(obj.year) !== 0) {\n value += Math.abs(obj.year) + BI.i18nText(\"BI-Basic_Year\") + (obj.year < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n if(BI.isNotNull(obj.quarter) && BI.parseInt(obj.quarter) !== 0) {\n value += Math.abs(obj.quarter) + BI.i18nText(\"BI-Basic_Single_Quarter\") + (obj.quarter < 0 ? BI.i18nText(\"BI-Basic_Front\") : BI.i18nText(\"BI-Basic_Behind\"));\n }\n return value;\n },\n\n _setInnerValue: function (date, text) {\n var dateStr = BI.print(date, \"%Y-%Q\");\n this.yearEditor.setValue(date.getFullYear());\n this.quarterEditor.setValue(BI.getQuarter(date));\n this.setTitle(BI.isEmptyString(text) ? dateStr : (text + \":\" + dateStr));\n },\n\n setValue: function (v) {\n var type, value;\n var date = BI.getDate();\n this.storeValue = v;\n if (BI.isNotNull(v)) {\n type = v.type || BI.DynamicYearQuarterCombo.Static;\n value = v.value || v;\n }\n switch (type) {\n case BI.DynamicYearQuarterCombo.Dynamic:\n var text = this._getText(value);\n date = BI.DynamicDateHelper.getCalculation(value);\n this._setInnerValue(date, text);\n break;\n case BI.DynamicYearQuarterCombo.Static:\n default:\n value = value || {};\n var quarter = BI.isNull(value.quarter) ? null : value.quarter;\n this.yearEditor.setValue(value.year);\n this.yearEditor.setTitle(value.year);\n this.quarterEditor.setValue(quarter);\n this.quarterEditor.setTitle(quarter);\n this.setTitle(this._getStaticTitle(value));\n break;\n }\n },\n\n getValue: function () {\n return this.storeValue;\n },\n\n getKey: function () {\n return this.yearEditor.getValue() + \"-\" + this.quarterEditor.getValue();\n }\n});\nBI.DynamicYearQuarterTrigger.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.DynamicYearQuarterTrigger.EVENT_ERROR = \"EVENT_ERROR\";\nBI.DynamicYearQuarterTrigger.EVENT_START = \"EVENT_START\";\nBI.DynamicYearQuarterTrigger.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.DynamicYearQuarterTrigger.EVENT_STOP = \"EVENT_STOP\";\nBI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN = \"EVENT_KEY_DOWN\";\nBI.shortcut(\"bi.dynamic_year_quarter_trigger\", BI.DynamicYearQuarterTrigger);/**\n * 简单的复选下拉框控件, 适用于数据量少的情况, 与valuechooser的区别是allvaluechooser setValue和getValue返回的是所有值\n * 封装了字段处理逻辑\n *\n * Created by GUY on 2015/10/29.\n * @class BI.AbstractAllValueChooser\n * @extends BI.Widget\n */\nBI.AbstractAllValueChooser = BI.inherit(BI.Widget, {\n\n _const: {\n perPage: 100\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.AbstractAllValueChooser.superclass._defaultConfig.apply(this, arguments), {\n width: 200,\n height: 30,\n items: null,\n itemsCreator: BI.emptyFn,\n cache: true\n });\n },\n\n _valueFormatter: function (v) {\n var text = v;\n if (BI.isNotNull(this.items)) {\n BI.some(this.items, function (i, item) {\n // 把value都换成字符串\n // 需要考虑到value也可能是数字\n if (item.value === v || item.value + \"\" === v) {\n text = item.text;\n return true;\n }\n });\n }\n return text;\n },\n\n _itemsCreator: function (options, callback) {\n var self = this, o = this.options;\n if (!o.cache || !this.items) {\n o.itemsCreator({}, function (items) {\n self.items = items;\n call(items);\n });\n } else {\n call(this.items);\n }\n function call (items) {\n var keywords = (options.keywords || []).slice();\n if (options.keyword) {\n keywords.push(options.keyword);\n }\n var resultItems = items;\n if(BI.isNotEmptyArray(keywords)) {\n resultItems = [];\n BI.each(keywords, function (i, kw) {\n var search = BI.Func.getSearchResult(items, kw);\n resultItems = resultItems.concat(search.match).concat(search.find);\n });\n resultItems = BI.uniq(resultItems);\n }\n if (options.selectedValues) {// 过滤\n var filter = BI.makeObject(options.selectedValues, true);\n resultItems = BI.filter(resultItems, function (i, ob) {\n return !filter[ob.value];\n });\n }\n if (options.type === BI.MultiSelectCombo.REQ_GET_ALL_DATA) {\n callback({\n items: resultItems\n });\n return;\n }\n if (options.type === BI.MultiSelectCombo.REQ_GET_DATA_LENGTH) {\n callback({count: resultItems.length});\n return;\n }\n callback({\n items: resultItems,\n hasNext: false\n });\n }\n }\n});/**\n * 简单的复选下拉框控件, 适用于数据量少的情况, 与valuechooser的区别是allvaluechooser setValue和getValue返回的是所有值\n * 封装了字段处理逻辑\n *\n * Created by GUY on 2015/10/29.\n * @class BI.AllValueChooserCombo\n * @extends BI.AbstractAllValueChooser\n */\nBI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.AllValueChooserCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-all-value-chooser-combo\",\n width: 200,\n height: 24,\n items: null,\n itemsCreator: BI.emptyFn,\n cache: true\n });\n },\n\n _init: function () {\n BI.AllValueChooserCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNotNull(o.items)) {\n this.items = o.items;\n }\n this.combo = BI.createWidget({\n type: \"bi.multi_select_combo\",\n text: o.text,\n element: this,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this),\n width: o.width,\n height: o.height,\n value: {\n type: BI.Selection.Multi,\n value: o.value || []\n }\n });\n\n this.combo.on(BI.MultiSelectCombo.EVENT_CONFIRM, function () {\n self.fireEvent(BI.AllValueChooserCombo.EVENT_CONFIRM);\n });\n },\n\n setValue: function (v) {\n this.combo.setValue({\n type: BI.Selection.Multi,\n value: v || []\n });\n },\n\n getValue: function () {\n var val = this.combo.getValue() || {};\n if (val.type === BI.Selection.All) {\n return val.assist;\n }\n return val.value || [];\n },\n\n populate: function (items) {\n // 直接用combo的populate不会作用到AbstractValueChooser上\n this.items = items;\n this.combo.populate.apply(this, arguments);\n }\n});\nBI.AllValueChooserCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.all_value_chooser_combo\", BI.AllValueChooserCombo);/**\n * 简单的复选面板, 适用于数据量少的情况, 与valuechooser的区别是allvaluechooser setValue和getValue返回的是所有值\n * 封装了字段处理逻辑\n *\n * Created by GUY on 2015/10/29.\n * @class BI.AllValueChooserPane\n * @extends BI.AbstractAllValueChooser\n */\nBI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.AllValueChooserPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-all-value-chooser-pane\",\n width: 200,\n height: 30,\n items: null,\n itemsCreator: BI.emptyFn,\n cache: true\n });\n },\n\n _init: function () {\n BI.AllValueChooserPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNotNull(o.items)) {\n this.items = o.items;\n }\n this.list = BI.createWidget({\n type: \"bi.multi_select_list\",\n element: this,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this),\n width: o.width,\n height: o.height\n });\n\n this.list.on(BI.MultiSelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.AllValueChooserPane.EVENT_CHANGE);\n });\n },\n\n setValue: function (v) {\n this.list.setValue({\n type: BI.Selection.Multi,\n value: v || []\n });\n },\n\n getValue: function () {\n var val = this.list.getValue() || {};\n if (val.type === BI.Selection.All) {\n return val.assist;\n }\n return val.value || [];\n },\n\n populate: function (items) {\n // 直接用combo的populate不会作用到AbstractValueChooser上\n this.items = items;\n this.list.populate.apply(this.list, arguments);\n }\n});\nBI.AllValueChooserPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.all_value_chooser_pane\", BI.AllValueChooserPane);BI.AllValueMultiTextValueCombo = BI.inherit(BI.Widget, {\n\n props: {\n baseCls: \"bi-all-value-multi-text-value-combo\",\n width: 200,\n height: 24,\n items: []\n },\n\n render: function () {\n var self = this, o = this.options;\n var value = this._digestValue(o.value);\n return {\n type: \"bi.search_multi_text_value_combo\",\n text: o.text,\n height: o.height,\n items: o.items,\n value: value,\n numOfPage: 100,\n valueFormatter: o.valueFormatter,\n warningTitle: o.warningTitle,\n listeners: [{\n eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.AllValueMultiTextValueCombo.EVENT_CONFIRM);\n }\n }],\n ref: function () {\n self.combo = this;\n }\n };\n },\n\n setValue: function (v) {\n var value = this._digestValue(v);\n this.combo.setValue(value);\n },\n\n getValue: function () {\n var obj = this.combo.getValue() || {};\n obj.value = obj.value || [];\n if(obj.type === BI.Selection.All) {\n var values = [];\n BI.each(this.options.items, function (idx, item) {\n !BI.contains(obj.value, item.value) && values.push(item.value);\n });\n return values;\n }\n return obj.value || [];\n },\n\n populate: function (items) {\n this.options.items = items;\n this.combo.populate.apply(this, arguments);\n },\n\n _digestValue: function (v) {\n return {\n type: BI.Selection.Multi,\n value: v || []\n };\n }\n});\nBI.AllValueMultiTextValueCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.all_value_multi_text_value_combo\", BI.AllValueMultiTextValueCombo);\nBI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {\n\n _const: {\n perPage: 100\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.AbstractTreeValueChooser.superclass._defaultConfig.apply(this, arguments), {\n items: null,\n itemsCreator: BI.emptyFn,\n open: false\n });\n },\n\n _valueFormatter: function (v) {\n var text = v;\n if (BI.isNotNull(this.items)) {\n BI.some(this.items, function (i, item) {\n if (item.value === v || item.value + \"\" === v) {\n text = item.text;\n return true;\n }\n });\n }\n return text;\n },\n\n _initData: function (items) {\n this.items = items;\n var nodes = BI.Tree.treeFormat(items);\n this.tree = new BI.Tree();\n this.tree.initTree(nodes);\n },\n\n _itemsCreator: function (options, callback) {\n var self = this, o = this.options;\n if (!this.items) {\n o.itemsCreator({}, function (items) {\n self._initData(items);\n call();\n });\n } else {\n call();\n }\n\n function call() {\n switch (options.type) {\n case BI.TreeView.REQ_TYPE_INIT_DATA:\n self._reqInitTreeNode(options, callback);\n break;\n case BI.TreeView.REQ_TYPE_ADJUST_DATA:\n self._reqAdjustTreeNode(options, callback);\n break;\n case BI.TreeView.REQ_TYPE_SELECT_DATA:\n self._reqSelectedTreeNode(options, callback);\n break;\n case BI.TreeView.REQ_TYPE_GET_SELECTED_DATA:\n self._reqDisplayTreeNode(options, callback);\n break;\n default :\n self._reqTreeNode(options, callback);\n break;\n }\n }\n },\n\n _reqDisplayTreeNode: function (op, callback) {\n var self = this;\n var result = [];\n var selectedValues = op.selectedValues;\n\n if (selectedValues == null || BI.isEmpty(selectedValues)) {\n callback({});\n return;\n }\n\n doCheck([], this.tree.getRoot(), selectedValues);\n\n callback({\n items: result\n });\n\n function doCheck(parentValues, node, selected) {\n if (selected == null || BI.isEmpty(selected)) {\n BI.each(node.getChildren(), function (i, child) {\n var newParents = BI.clone(parentValues);\n newParents.push(child.value);\n var llen = self._getChildCount(newParents);\n createOneJson(child, node.id, llen);\n doCheck(newParents, child, {});\n });\n return;\n }\n BI.each(selected, function (k) {\n var node = self._getTreeNode(parentValues, k);\n // 找不到就是新增值\n if(BI.isNull(node)) {\n createOneJson({\n id: BI.UUID(),\n text: k,\n value: k\n }, BI.UUID(), 0);\n } else {\n var newParents = BI.clone(parentValues);\n newParents.push(node.value);\n createOneJson(node, node.parent && node.parent.id, getCount(selected[k], newParents));\n doCheck(newParents, node, selected[k]);\n }\n });\n }\n\n function getCount(jo, parentValues) {\n if (jo == null) {\n return 0;\n }\n if (BI.isEmpty(jo)) {\n return self._getChildCount(parentValues);\n }\n\n return BI.size(jo);\n }\n\n function createOneJson(node, pId, llen) {\n result.push({\n id: node.id,\n pId: pId,\n text: node.text + (llen > 0 ? (\"(\" + BI.i18nText(\"BI-Basic_Altogether\") + llen + BI.i18nText(\"BI-Basic_Count\") + \")\") : \"\"),\n value: node.value,\n open: true\n });\n }\n },\n\n _reqSelectedTreeNode: function (op, callback) {\n var self = this;\n var selectedValues = BI.deepClone(op.selectedValues);\n var notSelectedValue = op.notSelectedValue || {};\n var keyword = op.keyword || \"\";\n var parentValues = op.parentValues || [];\n\n if (selectedValues == null || BI.isEmpty(selectedValues)) {\n callback({});\n return;\n }\n\n dealWithSelectedValues(selectedValues);\n callback(selectedValues);\n\n\n function dealWithSelectedValues(selectedValues) {\n var p = parentValues.concat(notSelectedValue);\n // 存储的值中存在这个值就把它删掉\n // 例如选中了中国-江苏-南京, 取消中国或江苏或南京\n if (canFindKey(selectedValues, p)) {\n // 如果搜索的值在父亲链中\n if (isSearchValueInParent(p)) {\n // 例如选中了 中国-江苏, 搜索江苏, 取消江苏\n // 例如选中了 中国-江苏, 搜索江苏, 取消中国\n self._deleteNode(selectedValues, p);\n } else {\n var searched = [];\n var find = search(parentValues, notSelectedValue, [], searched);\n if (find && BI.isNotEmptyArray(searched)) {\n BI.each(searched, function (i, arr) {\n var node = self._getNode(selectedValues, arr);\n if (node) {\n // 例如选中了 中国-江苏-南京,搜索南京,取消中国\n self._deleteNode(selectedValues, arr);\n } else {\n // 例如选中了 中国-江苏,搜索南京,取消中国\n expandSelectedValue(selectedValues, arr, BI.last(arr));\n }\n });\n }\n }\n }\n\n // 存储的值中不存在这个值,但父亲节点是全选的情况\n // 例如选中了中国-江苏,取消南京\n // important 选中了中国-江苏,取消了江苏,但是搜索的是南京\n if (isChild(selectedValues, p)) {\n var result = [], find = false;\n // 如果parentValues中有匹配的值,说明搜索结果不在当前值下\n if (isSearchValueInParent(p)) {\n find = true;\n } else {\n // 从当前值开始搜\n find = search(parentValues, notSelectedValue, result);\n p = parentValues;\n }\n\n if (find === true) {\n // 去掉点击的节点之后的结果集\n expandSelectedValue(selectedValues, p, notSelectedValue);\n // 添加去掉搜索的结果集\n if (result.length > 0) {\n BI.each(result, function (i, strs) {\n self._buildTree(selectedValues, strs);\n });\n }\n }\n }\n\n }\n\n function expandSelectedValue(selectedValues, parents, notSelectedValue) {\n var next = selectedValues;\n var childrenCount = [];\n var path = [];\n // 去掉点击的节点之后的结果集\n BI.some(parents, function (i, v) {\n var t = next[v];\n if (t == null) {\n if (i === 0) {\n return true;\n }\n if (BI.isEmpty(next)) {\n var split = parents.slice(0, i);\n var expanded = self._getChildren(split);\n path.push(split);\n childrenCount.push(expanded.length);\n // 如果只有一个值且取消的就是这个值\n if (i === parents.length - 1 && expanded.length === 1 && expanded[0].value === notSelectedValue) {\n for (var j = childrenCount.length - 1; j >= 0; j--) {\n if (childrenCount[j] === 1) {\n self._deleteNode(selectedValues, path[j]);\n } else {\n break;\n }\n }\n } else {\n BI.each(expanded, function (m, child) {\n if (i === parents.length - 1 && child.value === notSelectedValue) {\n return true;\n }\n next[child.value] = {};\n });\n }\n next = next[v];\n } else {\n return true;\n // next = {};\n // next[v] = {};\n }\n } else {\n next = t;\n }\n });\n }\n\n function search(parents, current, result, searched) {\n var newParents = BI.clone(parents);\n newParents.push(current);\n if (self._isMatch(parents, current, keyword)) {\n searched && searched.push(newParents);\n return true;\n }\n\n var children = self._getChildren(newParents);\n\n var notSearch = [];\n var can = false;\n\n BI.each(children, function (i, child) {\n if (search(newParents, child.value, result, searched)) {\n can = true;\n } else {\n notSearch.push(child.value);\n }\n });\n if (can === true) {\n BI.each(notSearch, function (i, v) {\n var next = BI.clone(newParents);\n next.push(v);\n result.push(next);\n });\n }\n return can;\n }\n\n function isSearchValueInParent(parentValues) {\n for (var i = 0, len = parentValues.length; i < len; i++) {\n if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) {\n return true;\n }\n }\n return false;\n }\n\n function canFindKey(selectedValues, parents) {\n var t = selectedValues;\n for (var i = 0; i < parents.length; i++) {\n var v = parents[i];\n t = t[v];\n if (t == null) {\n return false;\n }\n }\n return true;\n }\n\n function isChild(selectedValues, parents) {\n var t = selectedValues;\n for (var i = 0; i < parents.length; i++) {\n var v = parents[i];\n if (!BI.has(t, v)) {\n return false;\n }\n t = t[v];\n if (BI.isEmpty(t)) {\n return true;\n }\n }\n return false;\n }\n },\n\n _reqAdjustTreeNode: function (op, callback) {\n var self = this;\n var result = [];\n var selectedValues = op.selectedValues;\n if (selectedValues == null || BI.isEmpty(selectedValues)) {\n callback({});\n return;\n }\n BI.each(selectedValues, function (k, v) {\n result.push([k]);\n });\n\n dealWithSelectedValues(selectedValues, []);\n\n var jo = {};\n BI.each(result, function (i, strs) {\n self._buildTree(jo, strs);\n });\n callback(jo);\n\n function dealWithSelectedValues(selected, parents) {\n if (selected == null || BI.isEmpty(selected)) {\n return true;\n }\n var can = true;\n BI.each(selected, function (k, v) {\n var p = BI.clone(parents);\n p.push(k);\n if (!dealWithSelectedValues(selected[k], p)) {\n BI.each(selected[k], function (nk, nv) {\n var t = BI.clone(p);\n t.push(nk);\n result.push(t);\n });\n can = false;\n }\n });\n return can && isAllSelected(selected, parents);\n }\n\n function isAllSelected(selected, parents) {\n return BI.isEmpty(selected) || self._getChildCount(parents) === BI.size(selected);\n }\n },\n\n _reqInitTreeNode: function (op, callback) {\n var self = this;\n var result = [];\n var keyword = op.keyword || \"\";\n var selectedValues = op.selectedValues;\n var lastSearchValue = op.lastSearchValue || \"\"; // 一次请求100个,但是搜索是拿全部的,lastSearchValue是上一次遍历到的节点索引\n var output = search();\n BI.nextTick(function () {\n callback({\n hasNext: output.length > self._const.perPage,\n items: result,\n lastSearchValue: BI.last(output)\n });\n });\n\n function search() {\n var children = self._getChildren([]);\n var start = children.length;\n if (lastSearchValue !== \"\") {\n for (var j = 0, len = start; j < len; j++) {\n if (children[j].value === lastSearchValue) {\n start = j + 1;\n break;\n }\n }\n } else {\n start = 0;\n }\n var output = [];\n for (var i = start, len = children.length; i < len; i++) {\n if (output.length < self._const.perPage) {\n var find = nodeSearch(1, [], children[i].value, false, result);\n } else if (output.length === self._const.perPage) {\n var find = nodeSearch(1, [], children[i].value, false, []);\n }\n if (find[0] === true) {\n output.push(children[i].value);\n }\n if (output.length > self._const.perPage) {\n break;\n }\n }\n\n // 深层嵌套的比较麻烦,这边先实现的是在根节点添加\n if (op.times === 1) {\n var nodes = self._getAddedValueNode([], selectedValues);\n result = BI.concat(BI.filter(nodes, function (idx, node) {\n var find = BI.Func.getSearchResult([node.text || node.value], keyword);\n return find.find.length > 0 || find.match.length > 0;\n }), result);\n }\n return output;\n }\n\n function nodeSearch(deep, parentValues, current, isAllSelect, result) {\n if (self._isMatch(parentValues, current, keyword)) {\n var checked = isAllSelect || isSelected(parentValues, current);\n createOneJson(parentValues, current, false, checked, !isAllSelect && isHalf(parentValues, current), true, result);\n return [true, checked];\n }\n var newParents = BI.clone(parentValues);\n newParents.push(current);\n var children = self._getChildren(newParents);\n\n var can = false, checked = false;\n\n var isCurAllSelected = isAllSelect || isAllSelected(parentValues, current);\n BI.each(children, function (i, child) {\n var state = nodeSearch(deep + 1, newParents, child.value, isCurAllSelected, result);\n if (state[1] === true) {\n checked = true;\n }\n if (state[0] === true) {\n can = true;\n }\n });\n if (can === true) {\n checked = isCurAllSelected || (isSelected(parentValues, current) && checked);\n createOneJson(parentValues, current, true, checked, false, false, result);\n }\n return [can, checked];\n }\n\n function createOneJson(parentValues, value, isOpen, checked, half, flag, result) {\n var node = self._getTreeNode(parentValues, value);\n result.push({\n id: node.id,\n pId: node.pId,\n text: node.text,\n value: node.value,\n title: node.title,\n isParent: node.getChildrenLength() > 0,\n open: isOpen,\n checked: checked,\n halfCheck: half,\n flag: flag\n });\n }\n\n function isHalf(parentValues, value) {\n var find = findSelectedObj(parentValues);\n if (find == null) {\n return null;\n }\n return BI.any(find, function (v, ob) {\n if (v === value) {\n if (ob != null && !BI.isEmpty(ob)) {\n return true;\n }\n }\n });\n }\n\n function isAllSelected(parentValues, value) {\n var find = findSelectedObj(parentValues);\n if (find == null) {\n return null;\n }\n return BI.any(find, function (v, ob) {\n if (v === value) {\n if (ob != null && BI.isEmpty(ob)) {\n return true;\n }\n }\n });\n }\n\n function isSelected(parentValues, value) {\n var find = findSelectedObj(parentValues);\n if (find == null) {\n return false;\n }\n return BI.any(find, function (v) {\n if (v === value) {\n return true;\n }\n });\n }\n\n function findSelectedObj(parentValues) {\n var find = selectedValues;\n if (find == null) {\n return null;\n }\n BI.every(parentValues, function (i, v) {\n find = find[v];\n if (find == null) {\n return false;\n }\n return true;\n });\n return find;\n }\n },\n\n _reqTreeNode: function (op, callback) {\n var self = this, o = this.options;\n var result = [];\n var times = op.times;\n var checkState = op.checkState || {};\n var parentValues = op.parentValues || [];\n var selectedValues = op.selectedValues || {};\n var valueMap = {};\n // if (judgeState(parentValues, selectedValues, checkState)) {\n valueMap = dealWithSelectedValue(parentValues, selectedValues);\n // }\n var nodes = this._getChildren(parentValues);\n for (var i = (times - 1) * this._const.perPage; nodes[i] && i < times * this._const.perPage; i++) {\n var state = getCheckState(nodes[i].value, parentValues, valueMap, checkState);\n result.push({\n id: nodes[i].id,\n pId: nodes[i].pId,\n value: nodes[i].value,\n text: nodes[i].text,\n times: 1,\n isParent: nodes[i].getChildrenLength() > 0,\n checked: state[0],\n halfCheck: state[1],\n open: o.open\n });\n }\n // 如果指定节点全部打开\n if (o.open) {\n var allNodes = [];\n // 获取所有节点\n BI.each(nodes, function (idx, node) {\n allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));\n });\n BI.each(allNodes, function (idx, node) {\n var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);\n // REPORT-24409 fix: 设置节点全部展开,添加的节点没有给状态\n var parentCheckState = {};\n var find = BI.find(result, function (idx, pNode) {\n return pNode.id === node.pId;\n });\n if (find) {\n parentCheckState.checked = find.halfCheck ? false : find.checked;\n parentCheckState.half = find.halfCheck;\n }\n var state = getCheckState(node.value, node.parentValues, valueMap, parentCheckState);\n result.push({\n id: node.id,\n pId: node.pId,\n value: node.value,\n text: node.text,\n times: 1,\n isParent: node.getChildrenLength() > 0,\n checked: state[0],\n halfCheck: state[1],\n open: self.options.open\n });\n });\n }\n // 深层嵌套的比较麻烦,这边先实现的是在根节点添加\n if (parentValues.length === 0 && times === 1) {\n result = BI.concat(self._getAddedValueNode(parentValues, selectedValues), result);\n }\n BI.nextTick(function () {\n callback({\n items: result,\n hasNext: nodes.length > times * self._const.perPage\n });\n });\n\n function judgeState(parentValues, selected_value, checkState) {\n var checked = checkState.checked, half = checkState.half;\n if (parentValues.length > 0 && !checked) {\n return false;\n }\n return (parentValues.length === 0 || (checked && half) && !BI.isEmpty(selected_value));\n }\n\n function dealWithSelectedValue(parentValues, selectedValues) {\n var valueMap = {};\n BI.each(parentValues, function (i, v) {\n selectedValues = selectedValues[v] || {};\n });\n BI.each(selectedValues, function (value, obj) {\n if (BI.isNull(obj)) {\n valueMap[value] = [0, 0];\n return;\n }\n if (BI.isEmpty(obj)) {\n valueMap[value] = [2, 0];\n return;\n }\n var nextNames = {};\n BI.each(obj, function (t, o) {\n if (BI.isNull(o) || BI.isEmpty(o)) {\n nextNames[t] = true;\n }\n });\n // valueMap的数组第一个参数为不选: 0, 半选: 1, 全选:2, 第二个参数为改节点下选中的子节点个数(子节点全选或者不存在)\n valueMap[value] = [1, BI.size(nextNames)];\n });\n return valueMap;\n }\n\n function getCheckState(current, parentValues, valueMap, checkState) {\n // 节点本身的checked和half优先级最高\n var checked = checkState.checked, half = checkState.half;\n var tempCheck = false, halfCheck = false;\n if (BI.has(valueMap, current)) {\n // 可能是半选\n if (valueMap[current][0] === 1) {\n var values = BI.clone(parentValues);\n values.push(current);\n var childCount = self._getChildCount(values);\n if (childCount > 0 && childCount !== valueMap[current][1]) {\n halfCheck = true;\n }\n } else if (valueMap[current][0] === 2) {\n tempCheck = true;\n }\n }\n var check;\n if (!checked && !halfCheck && !tempCheck) {\n // 当节点自身是不选的,且通过selectedValues没有得到全选, 则check状态取决于valueMap\n check = BI.has(valueMap, current);\n } else {\n // 不是上面那种情况就先看在节点没有带有明确半选的时候,通过节点自身的checked和valueMap的状态能都得到选中信息\n check = ((tempCheck || checked) && !half) || BI.has(valueMap, current);\n }\n return [check, halfCheck];\n }\n },\n\n _getAddedValueNode: function (parentValues, selectedValues) {\n var nodes = this._getChildren(parentValues);\n return BI.map(BI.difference(BI.keys(selectedValues), BI.map(nodes, \"value\")), function (idx, v) {\n return {\n id: BI.UUID(),\n pId: nodes.length > 0 ? nodes[0].pId : BI.UUID(),\n value: v,\n text: v,\n times: 1,\n isParent: false,\n checked: true,\n halfCheck: false\n };\n });\n },\n\n _getNode: function (selectedValues, parentValues) {\n var pNode = selectedValues;\n for (var i = 0, len = parentValues.length; i < len; i++) {\n if (pNode == null) {\n return null;\n }\n pNode = pNode[parentValues[i]];\n }\n return pNode;\n },\n\n _deleteNode: function (selectedValues, values) {\n var name = values[values.length - 1];\n var p = values.slice(0, values.length - 1);\n var pNode = this._getNode(selectedValues, p);\n if (pNode != null && pNode[name]) {\n delete pNode[name];\n // 递归删掉空父节点\n while (p.length > 0 && BI.isEmpty(pNode)) {\n name = p[p.length - 1];\n p = p.slice(0, p.length - 1);\n pNode = this._getNode(selectedValues, p);\n if (pNode != null) {\n delete pNode[name];\n }\n }\n }\n },\n\n _buildTree: function (jo, values) {\n var t = jo;\n BI.each(values, function (i, v) {\n if (!BI.has(t, v)) {\n t[v] = {};\n }\n t = t[v];\n });\n },\n\n _isMatch: function (parentValues, value, keyword) {\n var o = this.options;\n var node = this._getTreeNode(parentValues, value);\n if (!node) {\n return false;\n }\n var find = BI.Func.getSearchResult([node.text || node.value], keyword);\n if(o.allowSearchValue && node.value) {\n var valueFind = BI.Func.getSearchResult([node.value], keyword);\n return valueFind.find.length > 0 || valueFind.match.length > 0 ||\n find.find.length > 0 || find.match.length > 0;\n }\n return find.find.length > 0 || find.match.length > 0;\n },\n\n _getTreeNode: function (parentValues, v) {\n var self = this;\n var findParentNode;\n var index = 0;\n this.tree.traverse(function (node) {\n if (self.tree.isRoot(node)) {\n return;\n }\n if (index > parentValues.length) {\n return false;\n }\n if (index === parentValues.length && node.value === v) {\n findParentNode = node;\n return false;\n }\n if (node.value === parentValues[index]) {\n index++;\n return;\n }\n return true;\n });\n return findParentNode;\n },\n\n _getChildren: function (parentValues) {\n if (parentValues.length > 0) {\n var value = BI.last(parentValues);\n var parent = this._getTreeNode(parentValues.slice(0, parentValues.length - 1), value);\n } else {\n var parent = this.tree.getRoot();\n }\n return parent.getChildren();\n },\n\n _getAllChildren: function(parentValues) {\n var children = this._getChildren(parentValues);\n var nodes = [].concat(children);\n BI.each(nodes, function (idx, node) {\n node.parentValues = parentValues;\n });\n var queue = BI.map(children, function (idx, node) {\n return {\n parentValues: parentValues,\n value: node.value\n };\n });\n while (BI.isNotEmptyArray(queue)) {\n var node = queue.shift();\n var pValues = (node.parentValues).concat(node.value);\n var childNodes = this._getChildren(pValues);\n BI.each(childNodes, function (idx, node) {\n node.parentValues = pValues;\n });\n queue = queue.concat(childNodes);\n nodes = nodes.concat(childNodes);\n }\n return nodes;\n },\n\n _getChildCount: function (parentValues) {\n return this._getChildren(parentValues).length;\n }\n});BI.AbstractListTreeValueChooser = BI.inherit(BI.AbstractTreeValueChooser, {\n\n _reqDisplayTreeNode: function (op, callback) {\n var self = this;\n var result = {};\n var selectedValues = op.selectedValues;\n\n if (selectedValues == null || BI.isEmpty(selectedValues)) {\n callback({});\n return;\n }\n\n doCheck([], this.tree.getRoot(), selectedValues);\n\n callback({\n items: BI.values(result)\n });\n\n function doCheck(parentValues, node, selected) {\n BI.each(selected, function (idx, path) {\n BI.each(path, function (id, value) {\n var nodeValue = value;\n var node = self._getTreeNode(path.slice(0, id), nodeValue);\n // 找不到就是新增值\n if (BI.isNull(node)) {\n createOneJson({\n id: BI.UUID(),\n text: nodeValue,\n value: nodeValue,\n isLeaf: true\n }, BI.UUID());\n } else {\n if(!BI.has(result, node.id)) {\n createOneJson(node, node.parent && node.parent.id);\n }\n result[node.id].isLeaf !== true && (result[node.id].isLeaf = id === path.length - 1);\n }\n });\n });\n }\n\n function createOneJson(node, pId) {\n result[node.id] = {\n id: node.id,\n pId: pId,\n text: node.text,\n value: node.value,\n open: true,\n isLeaf: node.isLeaf\n };\n }\n },\n\n _reqInitTreeNode: function (op, callback) {\n var self = this;\n var result = [];\n var keyword = op.keyword || \"\";\n var selectedValues = op.selectedValues;\n var lastSearchValue = op.lastSearchValue || \"\"; // 一次请求100个,但是搜索是拿全部的,lastSearchValue是上一次遍历到的节点索引\n var output = search();\n BI.nextTick(function () {\n callback({\n hasNext: output.length > self._const.perPage,\n items: result,\n lastSearchValue: BI.last(output)\n });\n });\n\n function search() {\n var children = self._getChildren([]);\n var start = children.length;\n if (lastSearchValue !== \"\") {\n for (var j = 0, len = start; j < len; j++) {\n if (children[j].value === lastSearchValue) {\n start = j + 1;\n break;\n }\n }\n } else {\n start = 0;\n }\n var output = [];\n for (var i = start, len = children.length; i < len; i++) {\n if (output.length < self._const.perPage) {\n var find = nodeSearch(1, [], children[i].value, result);\n } else if (output.length === self._const.perPage) {\n var find = nodeSearch(1, [], children[i].value, []);\n }\n if (find[0] === true) {\n output.push(children[i].value);\n }\n if (output.length > self._const.perPage) {\n break;\n }\n }\n\n // 深层嵌套的比较麻烦,这边先实现的是在根节点添加\n if (op.times === 1) {\n var nodes = self._getAddedValueNode([], selectedValues);\n result = BI.concat(BI.filter(nodes, function (idx, node) {\n var find = BI.Func.getSearchResult([node.text || node.value], keyword);\n return find.find.length > 0 || find.match.length > 0;\n }), result);\n }\n return output;\n }\n\n function nodeSearch(deep, parentValues, current, result) {\n if (self._isMatch(parentValues, current, keyword)) {\n var checked = isSelected(current);\n createOneJson(parentValues, current, false, checked, true, result);\n return [true, checked];\n }\n var newParents = BI.clone(parentValues);\n newParents.push(current);\n var children = self._getChildren(newParents);\n\n var can = false, checked = false;\n\n BI.each(children, function (i, child) {\n var state = nodeSearch(deep + 1, newParents, child.value, result);\n if (state[1] === true) {\n checked = true;\n }\n if (state[0] === true) {\n can = true;\n }\n });\n if (can === true) {\n checked = isSelected(current);\n createOneJson(parentValues, current, true, checked, false, result);\n }\n return [can, checked];\n }\n\n function createOneJson(parentValues, value, isOpen, checked, flag, result) {\n var node = self._getTreeNode(parentValues, value);\n result.push({\n id: node.id,\n pId: node.pId,\n text: node.text,\n value: node.value,\n title: node.title,\n isParent: node.getChildrenLength() > 0,\n open: isOpen,\n checked: checked,\n halfCheck: false,\n flag: flag\n });\n }\n\n function isHalf(parentValues, value) {\n var find = findSelectedObj(parentValues);\n if (find == null) {\n return null;\n }\n return BI.any(find, function (v, ob) {\n if (v === value) {\n if (ob != null && !BI.isEmpty(ob)) {\n return true;\n }\n }\n });\n }\n\n function isAllSelected(parentValues, value) {\n var find = findSelectedObj(parentValues);\n if (find == null) {\n return null;\n }\n return BI.any(find, function (v, ob) {\n if (v === value) {\n if (ob != null && BI.isEmpty(ob)) {\n return true;\n }\n }\n });\n }\n\n function isSelected(value) {\n return BI.any(selectedValues, function (idx, array) {\n return BI.last(array) === value;\n });\n }\n\n function findSelectedObj(parentValues) {\n var find = selectedValues;\n if (find == null) {\n return null;\n }\n BI.every(parentValues, function (i, v) {\n find = find[v];\n if (find == null) {\n return false;\n }\n return true;\n });\n return find;\n }\n },\n\n _reqTreeNode: function (op, callback) {\n var self = this, o = this.options;\n var result = [];\n var times = op.times;\n var parentValues = op.parentValues || [];\n var selectedValues = op.selectedValues || [];\n var valueMap = dealWithSelectedValue(selectedValues);\n var nodes = this._getChildren(parentValues);\n for (var i = (times - 1) * this._const.perPage; nodes[i] && i < times * this._const.perPage; i++) {\n var checked = BI.has(valueMap, nodes[i].value);\n result.push({\n id: nodes[i].id,\n pId: nodes[i].pId,\n value: nodes[i].value,\n text: nodes[i].text,\n times: 1,\n isParent: nodes[i].getChildrenLength() > 0,\n checked: checked,\n halfCheck: false,\n open: o.open\n });\n }\n // 如果指定节点全部打开\n if (o.open) {\n var allNodes = [];\n // 获取所有节点\n BI.each(nodes, function (idx, node) {\n allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));\n });\n BI.each(allNodes, function (idx, node) {\n var checked = BI.has(valueMap, node.value);\n result.push({\n id: node.id,\n pId: node.pId,\n value: node.value,\n text: node.text,\n times: 1,\n isParent: node.getChildrenLength() > 0,\n checked: checked,\n halfCheck: false,\n open: o.open\n });\n });\n }\n // 深层嵌套的比较麻烦,这边先实现的是在根节点添加\n if (parentValues.length === 0 && times === 1) {\n result = BI.concat(self._getAddedValueNode(parentValues, selectedValues), result);\n }\n BI.nextTick(function () {\n callback({\n items: result,\n hasNext: nodes.length > times * self._const.perPage\n });\n });\n\n function dealWithSelectedValue(selectedValues) {\n var valueMap = {};\n BI.each(selectedValues, function (idx, v) {\n valueMap[BI.last(v)] = [2, 0];\n });\n return valueMap;\n }\n },\n\n _getAddedValueNode: function (parentValues, selectedValues) {\n var nodes = this._getChildren(parentValues);\n var values = BI.flatten(BI.filter(selectedValues, function (idx, array) {\n return array.length === 1;\n }));\n return BI.map(BI.difference(values, BI.map(nodes, \"value\")), function (idx, v) {\n return {\n id: BI.UUID(),\n pId: nodes.length > 0 ? nodes[0].pId : BI.UUID(),\n value: v,\n text: v,\n times: 1,\n isParent: false,\n checked: true,\n halfCheck: false\n };\n });\n }\n});/**\n * 简单的复选下拉树控件, 适用于数据量少的情况, 可以自增值\n *\n * Created by GUY on 2015/10/29.\n * @class BI.ListTreeValueChooserInsertCombo\n * @extends BI.Widget\n */\nBI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.ListTreeValueChooserInsertCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-list-tree-value-chooser-insert-combo\",\n width: 200,\n height: 24,\n items: null,\n itemsCreator: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.ListTreeValueChooserInsertCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNotNull(o.items)) {\n this._initData(o.items);\n }\n this.combo = BI.createWidget({\n type: \"bi.multi_tree_list_combo\",\n element: this,\n text: o.text,\n value: o.value,\n watermark: o.watermark,\n allowInsertValue: o.allowInsertValue,\n allowEdit: o.allowEdit,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this),\n width: o.width,\n height: o.height,\n listeners: [{\n eventName: BI.MultiTreeListCombo.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiTreeListCombo.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.MultiTreeListCombo.EVENT_STOP,\n action: function () {\n self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_STOP);\n }\n }, {\n eventName: BI.MultiTreeListCombo.EVENT_CLICK_ITEM,\n action: function () {\n self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiTreeListCombo.EVENT_SEARCHING,\n action: function () {\n self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_SEARCHING);\n }\n }, {\n eventName: BI.MultiTreeListCombo.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM);\n }\n }]\n });\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n },\n\n getValue: function () {\n return this.combo.getValue();\n },\n\n populate: function (items) {\n this._initData(items);\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.ListTreeValueChooserInsertCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.ListTreeValueChooserInsertCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.ListTreeValueChooserInsertCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.ListTreeValueChooserInsertCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.list_tree_value_chooser_insert_combo\", BI.ListTreeValueChooserInsertCombo);/**\n * 简单的复选下拉树控件, 适用于数据量少的情况, 可以自增值\n *\n * Created by GUY on 2015/10/29.\n * @class BI.TreeValueChooserInsertCombo\n * @extends BI.Widget\n */\nBI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.TreeValueChooserInsertCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-tree-value-chooser-insert-combo\",\n width: 200,\n height: 24,\n items: null,\n itemsCreator: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.TreeValueChooserInsertCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNotNull(o.items)) {\n this._initData(o.items);\n }\n this.combo = BI.createWidget({\n type: \"bi.multi_tree_insert_combo\",\n allowEdit: o.allowEdit,\n text: o.text,\n value: o.value,\n watermark: o.watermark,\n element: this,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this),\n width: o.width,\n height: o.height,\n listeners: [{\n eventName: BI.MultiTreeInsertCombo.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiTreeInsertCombo.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.MultiTreeInsertCombo.EVENT_STOP,\n action: function () {\n self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_STOP);\n }\n }, {\n eventName: BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM,\n action: function () {\n self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiTreeInsertCombo.EVENT_SEARCHING,\n action: function () {\n self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_SEARCHING);\n }\n }, {\n eventName: BI.MultiTreeInsertCombo.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CONFIRM);\n }\n }]\n });\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n },\n\n getValue: function () {\n return this.combo.getValue();\n },\n\n populate: function (items) {\n this._initData(items);\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.TreeValueChooserInsertCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.TreeValueChooserInsertCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.TreeValueChooserInsertCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.TreeValueChooserInsertCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.TreeValueChooserInsertCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.tree_value_chooser_insert_combo\", BI.TreeValueChooserInsertCombo);/**\n * 简单的复选下拉树控件, 适用于数据量少的情况\n *\n * Created by GUY on 2015/10/29.\n * @class BI.TreeValueChooserCombo\n * @extends BI.Widget\n */\nBI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.TreeValueChooserCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-tree-value-chooser-combo\",\n width: 200,\n height: 24,\n items: null,\n itemsCreator: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.TreeValueChooserCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNotNull(o.items)) {\n this._initData(o.items);\n }\n this.combo = BI.createWidget({\n type: \"bi.multi_tree_combo\",\n text: o.text,\n allowEdit: o.allowEdit,\n value: o.value,\n watermark: o.watermark,\n element: this,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this),\n width: o.width,\n height: o.height,\n listeners: [{\n eventName: BI.MultiTreeCombo.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiTreeCombo.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.MultiTreeCombo.EVENT_STOP,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_STOP);\n }\n }, {\n eventName: BI.MultiTreeCombo.EVENT_CLICK_ITEM,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiTreeCombo.EVENT_SEARCHING,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_SEARCHING);\n }\n }, {\n eventName: BI.MultiTreeCombo.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.TreeValueChooserCombo.EVENT_CONFIRM);\n }\n }]\n });\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n },\n\n getValue: function () {\n return this.combo.getValue();\n },\n\n populate: function (items) {\n this._initData(items);\n this.combo.populate.apply(this.combo, arguments);\n }\n});\n\nBI.TreeValueChooserCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.TreeValueChooserCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.TreeValueChooserCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.TreeValueChooserCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.TreeValueChooserCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.TreeValueChooserCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.shortcut(\"bi.tree_value_chooser_combo\", BI.TreeValueChooserCombo);/**\n * 简单的树面板, 适用于数据量少的情况\n *\n * Created by GUY on 2015/10/29.\n * @class BI.TreeValueChooserPane\n * @extends BI.AbstractTreeValueChooser\n */\nBI.TreeValueChooserPane = BI.inherit(BI.AbstractTreeValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.TreeValueChooserPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-tree-value-chooser-pane\",\n items: null,\n itemsCreator: BI.emptyFn\n });\n },\n\n _init: function () {\n BI.TreeValueChooserPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.pane = BI.createWidget({\n type: \"bi.multi_select_tree\",\n element: this,\n itemsCreator: BI.bind(this._itemsCreator, this)\n });\n\n this.pane.on(BI.MultiSelectTree.EVENT_CHANGE, function () {\n self.fireEvent(BI.TreeValueChooserPane.EVENT_CHANGE);\n });\n if (BI.isNotNull(o.items)) {\n this._initData(o.items);\n this.populate();\n }\n },\n\n setSelectedValue: function (v) {\n this.pane.setSelectedValue(v);\n },\n\n setValue: function (v) {\n this.pane.setValue(v);\n },\n\n getValue: function () {\n return this.pane.getValue();\n },\n\n populate: function () {\n this.pane.populate.apply(this.pane, arguments);\n }\n});\nBI.TreeValueChooserPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.tree_value_chooser_pane\", BI.TreeValueChooserPane);/**\n * 简单的复选下拉框控件, 适用于数据量少的情况\n * 封装了字段处理逻辑\n *\n * Created by GUY on 2015/10/29.\n * @class BI.AbstractValueChooser\n * @extends BI.Widget\n */\nBI.AbstractValueChooser = BI.inherit(BI.Widget, {\n\n _const: {\n perPage: 100\n },\n\n _defaultConfig: function () {\n return BI.extend(BI.AbstractValueChooser.superclass._defaultConfig.apply(this, arguments), {\n items: null,\n itemsCreator: BI.emptyFn,\n cache: true\n });\n },\n\n _valueFormatter: function (v) {\n var text = v;\n if (BI.isNotNull(this.items)) {\n BI.some(this.items, function (i, item) {\n // 把value都换成字符串\n if (item.value === v || item.value + \"\" === v) {\n text = item.text;\n return true;\n }\n });\n }\n return text;\n },\n\n _getItemsByTimes: function (items, times) {\n var res = [];\n for (var i = (times - 1) * this._const.perPage; items[i] && i < times * this._const.perPage; i++) {\n res.push(items[i]);\n }\n return res;\n },\n\n _hasNextByTimes: function (items, times) {\n return times * this._const.perPage < items.length;\n },\n\n _itemsCreator: function (options, callback) {\n var self = this, o = this.options;\n if (!o.cache || !this.items) {\n o.itemsCreator({}, function (items) {\n self.items = items;\n call(items);\n });\n } else {\n call(this.items);\n }\n function call (items) {\n var keywords = (options.keywords || []).slice();\n var resultItems = items;\n if(BI.isNotEmptyArray(keywords)) {\n resultItems = [];\n BI.each(keywords, function (i, kw) {\n var search = BI.Func.getSearchResult(items, kw);\n resultItems = resultItems.concat(search.match).concat(search.find);\n });\n resultItems = BI.uniq(resultItems);\n }\n if (options.selectedValues) {// 过滤\n var filter = BI.makeObject(options.selectedValues, true);\n resultItems = BI.filter(resultItems, function (i, ob) {\n return !filter[ob.value];\n });\n }\n if (options.type === BI.MultiSelectCombo.REQ_GET_ALL_DATA) {\n callback({\n items: resultItems\n });\n return;\n }\n if (options.type === BI.MultiSelectCombo.REQ_GET_DATA_LENGTH) {\n callback({count: resultItems.length});\n return;\n }\n callback({\n items: self._getItemsByTimes(resultItems, options.times),\n hasNext: self._hasNextByTimes(resultItems, options.times)\n });\n }\n }\n});/**\n * 简单的复选下拉框控件, 适用于数据量少的情况\n * 封装了字段处理逻辑\n */\nBI.ValueChooserInsertCombo = BI.inherit(BI.AbstractValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.ValueChooserInsertCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-value-chooser-insert-combo\",\n width: 200,\n height: 24,\n items: null,\n itemsCreator: BI.emptyFn,\n cache: true\n });\n },\n\n _init: function () {\n BI.ValueChooserInsertCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNotNull(o.items)) {\n this.items = o.items;\n }\n this.combo = BI.createWidget({\n type: \"bi.multi_select_insert_combo\",\n element: this,\n allowEdit: o.allowEdit,\n text: o.text,\n value: o.value,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this),\n width: o.width,\n height: o.height,\n listeners: [{\n eventName: BI.MultiSelectCombo.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.ValueChooserInsertCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.ValueChooserInsertCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_STOP,\n action: function () {\n self.fireEvent(BI.ValueChooserInsertCombo.EVENT_STOP);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_CLICK_ITEM,\n action: function () {\n self.fireEvent(BI.ValueChooserInsertCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_SEARCHING,\n action: function () {\n self.fireEvent(BI.ValueChooserInsertCombo.EVENT_SEARCHING);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.ValueChooserInsertCombo.EVENT_CONFIRM);\n }\n }]\n });\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n },\n\n getValue: function () {\n var val = this.combo.getValue() || {};\n return {\n type: val.type,\n value: val.value\n };\n },\n\n populate: function (items) {\n // 直接用combo的populate不会作用到AbstractValueChooser上\n this.items = items;\n this.combo.populate.apply(this, arguments);\n }\n});\n\nBI.ValueChooserInsertCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.ValueChooserInsertCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.ValueChooserInsertCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.ValueChooserInsertCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.ValueChooserInsertCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.ValueChooserInsertCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.value_chooser_insert_combo\", BI.ValueChooserInsertCombo);/**\n * 简单的复选下拉框控件, 适用于数据量少的情况\n * 封装了字段处理逻辑\n *\n * Created by GUY on 2015/10/29.\n * @class BI.ValueChooserCombo\n * @extends BI.Widget\n */\nBI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.ValueChooserCombo.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-value-chooser-combo\",\n width: 200,\n height: 24,\n items: null,\n itemsCreator: BI.emptyFn,\n cache: true\n });\n },\n\n _init: function () {\n BI.ValueChooserCombo.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n if (BI.isNotNull(o.items)) {\n this.items = o.items;\n }\n this.combo = BI.createWidget({\n type: \"bi.multi_select_combo\",\n element: this,\n allowEdit: o.allowEdit,\n text: o.text,\n value: o.value,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this),\n width: o.width,\n height: o.height,\n listeners: [{\n eventName: BI.MultiSelectCombo.EVENT_FOCUS,\n action: function () {\n self.fireEvent(BI.ValueChooserCombo.EVENT_FOCUS);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_BLUR,\n action: function () {\n self.fireEvent(BI.ValueChooserCombo.EVENT_BLUR);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_STOP,\n action: function () {\n self.fireEvent(BI.ValueChooserCombo.EVENT_STOP);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_CLICK_ITEM,\n action: function () {\n self.fireEvent(BI.ValueChooserCombo.EVENT_CLICK_ITEM);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_SEARCHING,\n action: function () {\n self.fireEvent(BI.ValueChooserCombo.EVENT_SEARCHING);\n }\n }, {\n eventName: BI.MultiSelectCombo.EVENT_CONFIRM,\n action: function () {\n self.fireEvent(BI.ValueChooserCombo.EVENT_CONFIRM);\n }\n }]\n });\n },\n\n setValue: function (v) {\n this.combo.setValue(v);\n },\n\n getValue: function () {\n var val = this.combo.getValue() || {};\n return {\n type: val.type,\n value: val.value\n };\n },\n\n populate: function (items) {\n // 直接用combo的populate不会作用到AbstractValueChooser上\n this.items = items;\n this.combo.populate.apply(this, arguments);\n }\n});\n\nBI.ValueChooserCombo.EVENT_BLUR = \"EVENT_BLUR\";\nBI.ValueChooserCombo.EVENT_FOCUS = \"EVENT_FOCUS\";\nBI.ValueChooserCombo.EVENT_STOP = \"EVENT_STOP\";\nBI.ValueChooserCombo.EVENT_SEARCHING = \"EVENT_SEARCHING\";\nBI.ValueChooserCombo.EVENT_CLICK_ITEM = \"EVENT_CLICK_ITEM\";\nBI.ValueChooserCombo.EVENT_CONFIRM = \"EVENT_CONFIRM\";\nBI.shortcut(\"bi.value_chooser_combo\", BI.ValueChooserCombo);/**\n * 简单的复选面板, 适用于数据量少的情况\n * 封装了字段处理逻辑\n *\n * Created by GUY on 2015/10/29.\n * @class BI.ValueChooserPane\n * @extends BI.Widget\n */\nBI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, {\n\n _defaultConfig: function () {\n return BI.extend(BI.ValueChooserPane.superclass._defaultConfig.apply(this, arguments), {\n baseCls: \"bi-value-chooser-pane\",\n items: null,\n itemsCreator: BI.emptyFn,\n cache: true\n });\n },\n\n _init: function () {\n BI.ValueChooserPane.superclass._init.apply(this, arguments);\n var self = this, o = this.options;\n this.list = BI.createWidget({\n type: \"bi.multi_select_list\",\n element: this,\n value: o.value,\n itemsCreator: BI.bind(this._itemsCreator, this),\n valueFormatter: BI.bind(this._valueFormatter, this)\n });\n\n this.list.on(BI.MultiSelectList.EVENT_CHANGE, function () {\n self.fireEvent(BI.ValueChooserPane.EVENT_CHANGE);\n });\n if (BI.isNotNull(o.items)) {\n this.items = o.items;\n this.list.populate();\n }\n },\n\n setValue: function (v) {\n this.list.setValue(v);\n },\n\n getValue: function () {\n var val = this.list.getValue() || {};\n return {\n type: val.type,\n value: val.value\n };\n },\n\n populate: function (items) {\n // 直接用combo的populate不会作用到AbstractValueChooser上\n items && (this.items = items);\n this.list.populate.apply(this.list, arguments);\n }\n});\nBI.ValueChooserPane.EVENT_CHANGE = \"EVENT_CHANGE\";\nBI.shortcut(\"bi.value_chooser_pane\", BI.ValueChooserPane);(function () {\n var Events = {\n\n // Bind an event to a `callback` function. Passing `\"all\"` will bind\n // the callback to all events fired.\n on: function (name, callback, context) {\n if (!eventsApi(this, \"on\", name, [callback, context]) || !callback) return this;\n this._events || (this._events = {});\n var events = this._events[name] || (this._events[name] = []);\n events.push({callback: callback, context: context, ctx: context || this});\n return this;\n },\n\n // Bind an event to only be triggered a single time. After the first time\n // the callback is invoked, it will be removed.\n once: function (name, callback, context) {\n if (!eventsApi(this, \"once\", name, [callback, context]) || !callback) return this;\n var self = this;\n var once = _.once(function () {\n self.off(name, once);\n callback.apply(this, arguments);\n });\n once._callback = callback;\n return this.on(name, once, context);\n },\n\n // Remove one or many callbacks. If `context` is null, removes all\n // callbacks with that function. If `callback` is null, removes all\n // callbacks for the event. If `name` is null, removes all bound\n // callbacks for all events.\n off: function (name, callback, context) {\n if (!this._events || !eventsApi(this, \"off\", name, [callback, context])) return this;\n\n // Remove all callbacks for all events.\n if (!name && !callback && !context) {\n this._events = void 0;\n return this;\n }\n\n var names = name ? [name] : _.keys(this._events);\n for (var i = 0, length = names.length; i < length; i++) {\n name = names[i];\n\n // Bail out if there are no events stored.\n var events = this._events[name];\n if (!events) continue;\n\n // Remove all callbacks for this event.\n if (!callback && !context) {\n delete this._events[name];\n continue;\n }\n\n // Find any remaining events.\n var remaining = [];\n for (var j = 0, k = events.length; j < k; j++) {\n var event = events[j];\n if (\n callback && callback !== event.callback &&\n callback !== event.callback._callback ||\n context && context !== event.context\n ) {\n remaining.push(event);\n }\n }\n\n // Replace events if there are any remaining. Otherwise, clean up.\n if (remaining.length) {\n this._events[name] = remaining;\n } else {\n delete this._events[name];\n }\n }\n\n return this;\n },\n\n un: function () {\n this.off.apply(this, arguments);\n },\n\n // Trigger one or many events, firing all bound callbacks. Callbacks are\n // passed the same arguments as `trigger` is, apart from the event name\n // (unless you're listening on `\"all\"`, which will cause your callback to\n // receive the true name of the event as the first argument).\n trigger: function (name) {\n if (!this._events) return this;\n var args = slice.call(arguments, 1);\n if (!eventsApi(this, \"trigger\", name, args)) return this;\n var events = this._events[name];\n var allEvents = this._events.all;\n if (events) triggerEvents(events, args);\n if (allEvents) triggerEvents(allEvents, arguments);\n return this;\n },\n\n fireEvent: function () {\n this.trigger.apply(this, arguments);\n },\n\n // Inversion-of-control versions of `on` and `once`. Tell *this* object to\n // listen to an event in another object ... keeping track of what it's\n // listening to.\n listenTo: function (obj, name, callback) {\n var listeningTo = this._listeningTo || (this._listeningTo = {});\n var id = obj._listenId || (obj._listenId = _.uniqueId(\"l\"));\n listeningTo[id] = obj;\n if (!callback && typeof name === \"object\") callback = this;\n obj.on(name, callback, this);\n return this;\n },\n\n listenToOnce: function (obj, name, callback) {\n if (typeof name === \"object\") {\n for (var event in name) this.listenToOnce(obj, event, name[event]);\n return this;\n }\n if (eventSplitter.test(name)) {\n var names = name.split(eventSplitter);\n for (var i = 0, length = names.length; i < length; i++) {\n this.listenToOnce(obj, names[i], callback);\n }\n return this;\n }\n if (!callback) return this;\n var once = _.once(function () {\n this.stopListening(obj, name, once);\n callback.apply(this, arguments);\n });\n once._callback = callback;\n return this.listenTo(obj, name, once);\n },\n\n // Tell this object to stop listening to either specific events ... or\n // to every object it's currently listening to.\n stopListening: function (obj, name, callback) {\n var listeningTo = this._listeningTo;\n if (!listeningTo) return this;\n var remove = !name && !callback;\n if (!callback && typeof name === \"object\") callback = this;\n if (obj) (listeningTo = {})[obj._listenId] = obj;\n for (var id in listeningTo) {\n obj = listeningTo[id];\n obj.off(name, callback, this);\n if (remove || _.isEmpty(obj._events)) delete this._listeningTo[id];\n }\n return this;\n }\n\n };\n\n // Regular expression used to split event strings.\n var eventSplitter = /\\s+/;\n\n // Implement fancy features of the Events API such as multiple event\n // names `\"change blur\"` and jQuery-style event maps `{change: action}`\n // in terms of the existing API.\n var eventsApi = function (obj, action, name, rest) {\n if (!name) return true;\n\n // Handle event maps.\n if (typeof name === \"object\") {\n for (var key in name) {\n obj[action].apply(obj, [key, name[key]].concat(rest));\n }\n return false;\n }\n\n // Handle space separated event names.\n if (eventSplitter.test(name)) {\n var names = name.split(eventSplitter);\n for (var i = 0, length = names.length; i < length; i++) {\n obj[action].apply(obj, [names[i]].concat(rest));\n }\n return false;\n }\n\n return true;\n };\n\n // A difficult-to-believe, but optimized internal dispatch function for\n // triggering events. Tries to keep the usual cases speedy (most internal\n // BI events have 3 arguments).\n var triggerEvents = function (events, args) {\n var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];\n switch (args.length) {\n case 0:\n while (++i < l) (ev = events[i]).callback.call(ev.ctx);\n return;\n case 1:\n while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1);\n return;\n case 2:\n while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2);\n return;\n case 3:\n while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3);\n return;\n default:\n while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args);\n return;\n }\n };\n\n // BI.Router\n // ---------------\n\n // Routers map faux-URLs to actions, and fire events when routes are\n // matched. Creating a new one sets its `routes` hash, if not set statically.\n var Router = BI.Router = function (options) {\n options || (options = {});\n if (options.routes) this.routes = options.routes;\n this._bindRoutes();\n this._init.apply(this, arguments);\n };\n\n // Cached regular expressions for matching named param parts and splatted\n // parts of route strings.\n var optionalParam = /\\((.*?)\\)/g;\n var namedParam = /(\\(\\?)?:\\w+/g;\n var splatParam = /\\*\\w+/g;\n var escapeRegExp = /[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;\n\n // Set up all inheritable **BI.Router** properties and methods.\n _.extend(Router.prototype, Events, {\n\n // _init is an empty function by default. Override it with your own\n // initialization logic.\n _init: function () {\n },\n\n // Manually bind a single named route to a callback. For example:\n //\n // this.route('search/:query/p:num', 'search', function(query, num) {\n // ...\n // });\n //\n route: function (route, name, callback) {\n if (!_.isRegExp(route)) route = this._routeToRegExp(route);\n if (_.isFunction(name)) {\n callback = name;\n name = \"\";\n }\n if (!callback) callback = this[name];\n var router = this;\n BI.history.route(route, function (fragment) {\n var args = router._extractParameters(route, fragment);\n if (router.execute(callback, args, name) !== false) {\n router.trigger.apply(router, [\"route:\" + name].concat(args));\n router.trigger(\"route\", name, args);\n BI.history.trigger(\"route\", router, name, args);\n }\n });\n return this;\n },\n\n // Execute a route handler with the provided parameters. This is an\n // excellent place to do pre-route setup or post-route cleanup.\n execute: function (callback, args, name) {\n if (callback) callback.apply(this, args);\n },\n\n // Simple proxy to `BI.history` to save a fragment into the history.\n navigate: function (fragment, options) {\n BI.history.navigate(fragment, options);\n return this;\n },\n\n // Bind all defined routes to `BI.history`. We have to reverse the\n // order of the routes here to support behavior where the most general\n // routes can be defined at the bottom of the route map.\n _bindRoutes: function () {\n if (!this.routes) return;\n this.routes = _.result(this, \"routes\");\n var route, routes = _.keys(this.routes);\n while ((route = routes.pop()) != null) {\n this.route(route, this.routes[route]);\n }\n },\n\n // Convert a route string into a regular expression, suitable for matching\n // against the current location hash.\n _routeToRegExp: function (route) {\n route = route.replace(escapeRegExp, \"\\\\$&\")\n .replace(optionalParam, \"(?:$1)?\")\n .replace(namedParam, function (match, optional) {\n return optional ? match : \"([^/?]+)\";\n })\n .replace(splatParam, \"([^?]*?)\");\n return new RegExp(\"^\" + route + \"(?:\\\\?([\\\\s\\\\S]*))?$\");\n },\n\n // Given a route, and a URL fragment that it matches, return the array of\n // extracted decoded parameters. Empty or unmatched parameters will be\n // treated as `null` to normalize cross-browser behavior.\n _extractParameters: function (route, fragment) {\n var params = route.exec(fragment).slice(1);\n return _.map(params, function (param, i) {\n // Don't decode the search params.\n if (i === params.length - 1) return param || null;\n return param ? decodeURIComponent(param) : null;\n });\n }\n\n });\n\n // History\n // ----------------\n\n // Handles cross-browser history management, based on either\n // [pushState](http://diveintohtml5.info/history.html) and real URLs, or\n // [onhashchange](https://developer.mozilla.org/en-US/docs/DOM/window.onhashchange)\n // and URL fragments. If the browser supports neither (old IE, natch),\n // falls back to polling.\n var History = function () {\n this.handlers = [];\n this.checkUrl = _.bind(this.checkUrl, this);\n\n // Ensure that `History` can be used outside of the browser.\n if (typeof window !== \"undefined\") {\n this.location = _global.location;\n this.history = _global.history;\n }\n };\n\n // Cached regex for stripping a leading hash/slash and trailing space.\n var routeStripper = /^[#\\/]|\\s+$/g;\n\n // Cached regex for stripping leading and trailing slashes.\n var rootStripper = /^\\/+|\\/+$/g;\n\n // Cached regex for stripping urls of hash.\n var pathStripper = /#.*$/;\n\n // Has the history handling already been started?\n History.started = false;\n\n // Set up all inheritable **BI.History** properties and methods.\n _.extend(History.prototype, Events, {\n\n // The default interval to poll for hash changes, if necessary, is\n // twenty times a second.\n interval: 50,\n\n // Are we at the app root?\n atRoot: function () {\n var path = this.location.pathname.replace(/[^\\/]$/, \"$&/\");\n return path === this.root && !this.getSearch();\n },\n\n // In IE6, the hash fragment and search params are incorrect if the\n // fragment contains `?`.\n getSearch: function () {\n var match = this.location.href.replace(/#.*/, \"\").match(/\\?.+/);\n return match ? match[0] : \"\";\n },\n\n // Gets the true hash value. Cannot use location.hash directly due to bug\n // in Firefox where location.hash will always be decoded.\n getHash: function (window) {\n var match = (window || this).location.href.match(/#(.*)$/);\n return match ? match[1] : \"\";\n },\n\n // Get the pathname and search params, without the root.\n getPath: function () {\n var path = decodeURI(this.location.pathname + this.getSearch());\n var root = this.root.slice(0, -1);\n if (!path.indexOf(root)) path = path.slice(root.length);\n return path.charAt(0) === \"/\" ? path.slice(1) : path;\n },\n\n // Get the cross-browser normalized URL fragment from the path or hash.\n getFragment: function (fragment) {\n if (fragment == null) {\n if (this._hasPushState || !this._wantsHashChange) {\n fragment = this.getPath();\n } else {\n fragment = this.getHash();\n }\n }\n return fragment.replace(routeStripper, \"\");\n },\n\n // Start the hash change handling, returning `true` if the current URL matches\n // an existing route, and `false` otherwise.\n start: function (options) {\n if (History.started) throw new Error(\"BI.history has already been started\");\n History.started = true;\n\n // Figure out the initial configuration. Do we need an iframe?\n // Is pushState desired ... is it available?\n this.options = _.extend({root: \"/\"}, this.options, options);\n this.root = this.options.root;\n this._wantsHashChange = this.options.hashChange !== false;\n this._hasHashChange = \"onhashchange\" in window;\n this._wantsPushState = !!this.options.pushState;\n this._hasPushState = !!(this.options.pushState && this.history && this.history.pushState);\n this.fragment = this.getFragment();\n\n // Normalize root to always include a leading and trailing slash.\n this.root = (\"/\" + this.root + \"/\").replace(rootStripper, \"/\");\n\n // Transition from hashChange to pushState or vice versa if both are\n // requested.\n if (this._wantsHashChange && this._wantsPushState) {\n\n // If we've started off with a route from a `pushState`-enabled\n // browser, but we're currently in a browser that doesn't support it...\n if (!this._hasPushState && !this.atRoot()) {\n var root = this.root.slice(0, -1) || \"/\";\n this.location.replace(root + \"#\" + this.getPath());\n // Return immediately as browser will do redirect to new url\n return true;\n\n // Or if we've started out with a hash-based route, but we're currently\n // in a browser where it could be `pushState`-based instead...\n } else if (this._hasPushState && this.atRoot()) {\n this.navigate(this.getHash(), {replace: true});\n }\n\n }\n\n // Proxy an iframe to handle location events if the browser doesn't\n // support the `hashchange` event, HTML5 history, or the user wants\n // `hashChange` but not `pushState`.\n if (!this._hasHashChange && this._wantsHashChange && (!this._wantsPushState || !this._hasPushState)) {\n var iframe = document.createElement(\"iframe\");\n iframe.src = \"javascript:0\";\n iframe.style.display = \"none\";\n iframe.tabIndex = -1;\n var body = document.body;\n // Using `appendChild` will throw on IE < 9 if the document is not ready.\n this.iframe = body.insertBefore(iframe, body.firstChild).contentWindow;\n this.iframe.document.open().close();\n this.iframe.location.hash = \"#\" + this.fragment;\n }\n\n // Add a cross-platform `addEventListener` shim for older browsers.\n var addEventListener = _global.addEventListener || function (eventName, listener) {\n return attachEvent(\"on\" + eventName, listener);\n };\n\n // Depending on whether we're using pushState or hashes, and whether\n // 'onhashchange' is supported, determine how we check the URL state.\n if (this._hasPushState) {\n addEventListener(\"popstate\", this.checkUrl, false);\n } else if (this._wantsHashChange && this._hasHashChange && !this.iframe) {\n addEventListener(\"hashchange\", this.checkUrl, false);\n } else if (this._wantsHashChange) {\n this._checkUrlInterval = setInterval(this.checkUrl, this.interval);\n }\n\n if (!this.options.silent) return this.loadUrl();\n },\n\n // Disable BI.history, perhaps temporarily. Not useful in a real app,\n // but possibly useful for unit testing Routers.\n stop: function () {\n // Add a cross-platform `removeEventListener` shim for older browsers.\n var removeEventListener = _global.removeEventListener || function (eventName, listener) {\n return detachEvent(\"on\" + eventName, listener);\n };\n\n // Remove window listeners.\n if (this._hasPushState) {\n removeEventListener(\"popstate\", this.checkUrl, false);\n } else if (this._wantsHashChange && this._hasHashChange && !this.iframe) {\n removeEventListener(\"hashchange\", this.checkUrl, false);\n }\n\n // Clean up the iframe if necessary.\n if (this.iframe) {\n document.body.removeChild(this.iframe.frameElement);\n this.iframe = null;\n }\n\n // Some environments will throw when clearing an undefined interval.\n if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);\n History.started = false;\n },\n\n // Add a route to be tested when the fragment changes. Routes added later\n // may override previous routes.\n route: function (route, callback) {\n this.handlers.unshift({route: route, callback: callback});\n },\n\n // Checks the current URL to see if it has changed, and if it has,\n // calls `loadUrl`, normalizing across the hidden iframe.\n checkUrl: function (e) {\n var current = this.getFragment();\n\n // If the user pressed the back button, the iframe's hash will have\n // changed and we should use that for comparison.\n if (current === this.fragment && this.iframe) {\n current = this.getHash(this.iframe);\n }\n\n if (current === this.fragment) return false;\n if (this.iframe) this.navigate(current);\n this.loadUrl();\n },\n\n // Attempt to load the current URL fragment. If a route succeeds with a\n // match, returns `true`. If no defined routes matches the fragment,\n // returns `false`.\n loadUrl: function (fragment) {\n fragment = this.fragment = this.getFragment(fragment);\n return _.some(this.handlers, function (handler) {\n if (handler.route.test(fragment)) {\n handler.callback(fragment);\n return true;\n }\n });\n },\n\n // Save a fragment into the hash history, or replace the URL state if the\n // 'replace' option is passed. You are responsible for properly URL-encoding\n // the fragment in advance.\n //\n // The options object can contain `trigger: true` if you wish to have the\n // route callback be fired (not usually desirable), or `replace: true`, if\n // you wish to modify the current URL without adding an entry to the history.\n navigate: function (fragment, options) {\n if (!History.started) return false;\n if (!options || options === true) options = {trigger: !!options};\n\n // Normalize the fragment.\n fragment = this.getFragment(fragment || \"\");\n\n // Don't include a trailing slash on the root.\n var root = this.root;\n if (fragment === \"\" || fragment.charAt(0) === \"?\") {\n root = root.slice(0, -1) || \"/\";\n }\n var url = root + fragment;\n\n // Strip the hash and decode for matching.\n fragment = decodeURI(fragment.replace(pathStripper, \"\"));\n\n if (this.fragment === fragment) return;\n this.fragment = fragment;\n\n // If pushState is available, we use it to set the fragment as a real URL.\n if (this._hasPushState) {\n this.history[options.replace ? \"replaceState\" : \"pushState\"]({}, document.title, url);\n\n // If hash changes haven't been explicitly disabled, update the hash\n // fragment to store history.\n } else if (this._wantsHashChange) {\n this._updateHash(this.location, fragment, options.replace);\n if (this.iframe && (fragment !== this.getHash(this.iframe))) {\n // Opening and closing the iframe tricks IE7 and earlier to push a\n // history entry on hash-tag change. When replace is true, we don't\n // want this.\n if (!options.replace) this.iframe.document.open().close();\n this._updateHash(this.iframe.location, fragment, options.replace);\n }\n\n // If you've told us that you explicitly don't want fallback hashchange-\n // based history, then `navigate` becomes a page refresh.\n } else {\n return this.location.assign(url);\n }\n if (options.trigger) return this.loadUrl(fragment);\n },\n\n // Update the hash location, either replacing the current entry, or adding\n // a new one to the browser history.\n _updateHash: function (location, fragment, replace) {\n if (replace) {\n var href = location.href.replace(/(javascript:|#).*$/, \"\");\n location.replace(href + \"#\" + fragment);\n } else {\n // Some browsers require that `hash` contains a leading #.\n location.hash = \"#\" + fragment;\n }\n }\n\n });\n\n // Create the default BI.history.\n BI.history = new History;\n}());;(function () {\n function initWatch(vm, watch) {\n vm._watchers || (vm._watchers = []);\n for (var key in watch) {\n var handler = watch[key];\n if (BI.isArray(handler)) {\n for (var i = 0; i < handler.length; i++) {\n vm._watchers.push(createWatcher(vm, key, handler[i]));\n }\n } else {\n vm._watchers.push(createWatcher(vm, key, handler));\n }\n }\n }\n\n function createWatcher(vm, keyOrFn, handler) {\n return Fix.watch(vm.store, keyOrFn, _.bind(handler, vm), {\n store: vm.store\n });\n }\n\n var target = null;\n var targetStack = [];\n\n function pushTarget(_target) {\n if (target) targetStack.push(target);\n Fix.Model.target = target = _target;\n }\n\n function popTarget() {\n Fix.Model.target = target = targetStack.pop();\n }\n\n var context = null;\n var contextStack = [];\n\n function pushContext(_context) {\n if (context) contextStack.push(context);\n Fix.Model.context = context = _context;\n }\n\n function popContext() {\n Fix.Model.context = context = contextStack.pop();\n }\n\n var oldWatch = Fix.watch;\n Fix.watch = function (model, expOrFn, cb, options) {\n if (BI.isPlainObject(cb)) {\n options = cb;\n cb = cb.handler;\n }\n if (typeof cb === \"string\") {\n cb = model[cb];\n }\n return oldWatch.call(this, model, expOrFn, function () {\n options && options.store && pushTarget(options.store);\n var res = cb.apply(this, arguments);\n options && options.store && popTarget();\n return res;\n }, options);\n };\n\n function findStore(widget) {\n if (target != null) {\n return target;\n }\n widget = widget || context;\n var p = widget;\n while (p) {\n if (p instanceof Fix.Model || p.store || p.__cacheStore) {\n break;\n }\n p = p._parent || (p.options && p.options.element);\n }\n if (p) {\n if (p instanceof Fix.Model) {\n return widget.__cacheStore = p;\n }\n widget.__cacheStore = p.store || p.__cacheStore;\n return p.__cacheStore || p.store;\n }\n }\n\n var _create = BI.createWidget;\n BI.createWidget = function (item, options, context) {\n var pushed = false;\n if (BI.isWidget(options)) {\n pushContext(options);\n pushed = true;\n } else if (context != null) {\n pushContext(context);\n pushed = true;\n }\n var result = _create.apply(this, arguments);\n pushed && popContext();\n return result;\n };\n\n _.each([\"populate\", \"addItems\", \"prependItems\"], function (name) {\n var old = BI.Loader.prototype[name];\n BI.Loader.prototype[name] = function () {\n pushContext(this);\n var result = old.apply(this, arguments);\n popContext();\n return result;\n };\n });\n\n function createStore() {\n var needPop = false;\n if (_global.Fix && this._store) {\n var store = findStore(this.options.context || this.options.element);\n if (store) {\n pushTarget(store);\n needPop = true;\n }\n this.store = this._store();\n this.store && (this.store._widget = this);\n needPop && popTarget();\n needPop = false;\n pushTarget(this.store);\n if (this.store instanceof Fix.Model) {\n this.model = this.store.model;\n } else {\n this.model = this.store;\n }\n needPop = true;\n }\n return needPop;\n }\n\n BI.Widget.prototype._initRender = function () {\n if (this.beforeInit) {\n this.__asking = true;\n this.beforeInit(BI.bind(function () {\n if (this.model && this.model.$vm) {\n this.model.$vm.$digest();\n }\n this._render();\n }, this));\n if (this.__asking === true) {\n this.__async = true;\n }\n } else {\n this._render();\n }\n };\n\n var _init = BI.Widget.prototype._init;\n BI.Widget.prototype._init = function () {\n var self = this;\n var needPop = createStore.call(this);\n _init.apply(this, arguments);\n needPop && popTarget();\n };\n\n var _render = BI.Widget.prototype._render;\n BI.Widget.prototype._render = function () {\n var needPop = false;\n if (_global.Fix && this._store) {\n needPop = true;\n pushTarget(this.store);\n initWatch(this, this.watch);\n }\n _render.apply(this, arguments);\n needPop && popTarget();\n };\n\n var unMount = BI.Widget.prototype.__d;\n BI.Widget.prototype.__d = function () {\n unMount.apply(this, arguments);\n this.store && BI.isFunction(this.store.destroy) && this.store.destroy();\n BI.each(this._watchers, function (i, unwatches) {\n unwatches = BI.isArray(unwatches) ? unwatches : [unwatches];\n BI.each(unwatches, function (j, unwatch) {\n unwatch();\n });\n });\n this._watchers && (this._watchers = []);\n if (this.store) {\n this.store._parent && (this.store._parent = null);\n this.store._widget && (this.store._widget = null);\n this.store = null;\n }\n delete this.__cacheStore;\n };\n\n _.each([\"_mount\"], function (name) {\n var old = BI.Widget.prototype[name];\n old && (BI.Widget.prototype[name] = function () {\n this.store && pushTarget(this.store);\n try {\n var res = old.apply(this, arguments);\n } catch (e) {\n console.error(e);\n }\n this.store && popTarget();\n return res;\n });\n });\n\n var additionFunc = function () {\n BI.nextTick(function () {\n Fix && Fix.refreshAll && Fix.refreshAll();\n });\n };\n\n $(document).ajaxComplete(additionFunc);\n\n if (BI.history) {\n var navigate = BI.history.navigate;\n // navigate之后不会立即变化有一段延迟\n BI.history.navigate = function () {\n navigate.apply(this, arguments);\n BI.defer(function () {\n additionFunc();\n }, 200);\n }\n var back = window.history.back;\n window.history.back = function () {\n back.apply(this, arguments);\n BI.defer(function () {\n additionFunc();\n }, 200);\n }\n }\n\n if (BI.Router) {\n var execute = BI.Router.prototype.execute;\n BI.Router.prototype.execute = function () {\n execute.apply(this, arguments);\n additionFunc();\n }\n }\n\n _.each([\"each\", \"map\", \"reduce\", \"reduceRight\", \"find\", \"filter\", \"reject\", \"every\", \"all\", \"some\", \"any\", \"max\", \"min\",\n \"sortBy\", \"groupBy\", \"indexBy\", \"countBy\", \"partition\",\n \"keys\", \"allKeys\", \"values\", \"pairs\", \"invert\",\n \"mapObject\", \"findKey\", \"pick\", \"omit\", \"tap\"], function (name) {\n var old = BI[name];\n BI[name] = function (obj, fn, context) {\n return typeof fn === \"function\" ? old(obj, function (key, value) {\n if (!(key in Fix.$$skipArray)) {\n return fn.apply(this, arguments);\n }\n }, context) : old.apply(this, arguments);\n };\n });\n BI.isEmpty = function (ob) {\n if (BI.isPlainObject(ob) && ob.__ob__) {\n return BI.keys(ob).length === 0;\n }\n return _.isEmpty(ob);\n };\n BI.keys = function (ob) {\n var keys = _.keys(ob);\n var nKeys = [];\n for (var i = 0; i < keys.length; i++) {\n if (!(keys[i] in Fix.$$skipArray)) {\n nKeys.push(keys[i]);\n }\n }\n return nKeys;\n };\n BI.values = function (ob) {\n var keys = BI.keys(obj);\n var length = keys.length;\n var values = [];\n for (var i = 0; i < length; i++) {\n values[i] = obj[keys[i]];\n }\n return values;\n };\n BI.extend = function () {\n var args = Array.prototype.slice.call(arguments);\n if (args.length < 1) {\n return {};\n }\n var object = args[0];\n var i = 1;\n while (i < args.length) {\n BI.each(args[i], function (key, v) {\n object[key] = v;\n });\n i++;\n }\n return object;\n };\n BI.size = function (ob) {\n if (BI.isPlainObject(ob) && ob.__ob__) {\n return BI.keys(ob).length;\n }\n return _.size(ob);\n };\n BI.isEmptyObject = function (ob) {\n return BI.size(ob) === 0;\n };\n BI.deepClone = function (ob) {\n return Fix.toJSON(ob);\n };\n\n Fix.set = function (obj, k, v) {\n try {\n if(obj) {\n obj[k] = v;\n }\n } catch (e) {\n\n } finally {\n return _.cloneDeep(obj);\n }\n }\n Fix.del = function (obj, k) {\n try {\n delete obj[k];\n } catch (e) {\n\n } finally {\n return _.cloneDeep(obj);\n }\n }\n BI.watch = Fix.watch;\n}());\n\n//# sourceMappingURL=fineui.ie.js.map"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 141);\n","import fineui from \"./index\";\n\nBI.extend(BI, fineui);\n","import { _Combo, _ComboStatic } from \"./base/combination/combo\";\nimport { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from \"./base/combination/group.button\";\nimport { _Tab, _TabStatic } from \"./base/combination/tab\";\nimport { _Pane, _PaneStatic } from \"./base/pane\";\nimport { _BasicButton, _BasicButtonStatic } from \"./base/single/button/button.basic\";\nimport { _Button, _ButtonStatic } from \"./base/single/button/buttons/button\";\nimport { _TextButton, _TextButtonStatic } from \"./base/single/button/buttons/button.text\";\nimport { _IconTextItem, _IconTextItemStatic } from \"./base/single/button/listitem/icontextitem\";\nimport { _Editor, _EditorStatic } from \"./base/single/editor/editor\";\nimport { _AbstractLabel } from \"./base/single/label/abstract.label\";\nimport { _Label } from \"./base/single/label/label\";\nimport { _Single } from \"./base/single/single\";\nimport { _Trigger } from \"./base/single/trigger/trigger\";\nimport { _IconChangeButton, _IconChangeButtonStatic } from \"./case/button/icon/icon.change\";\nimport { _MultiSelectItem, _MultiSelectItemStatic } from \"./case/button/item.multiselect\";\nimport { _BubbleCombo, _BubbleComboStatic } from \"./case/combo/bubblecombo/combo.bubble\";\nimport { _TextValueCombo, _TextValueComboStatic } from \"./case/combo/combo.textvalue\";\nimport { _LoadingPane } from \"./case/loading/loading_pane\";\nimport { _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from \"./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo\";\nimport { _Action, _ActionFactory } from \"./core/action/action\";\nimport { _ShowAction } from \"./core/action/action.show\";\nimport { _base } from \"./core/base\";\nimport { _Behavior, _BehaviorFactory } from \"./core/behavior/behavior\";\nimport { _HighlightBehavior } from \"./core/behavior/behavior.highlight\";\nimport { _RedMarkBehavior } from \"./core/behavior/behavior.redmark\";\nimport * as decorator from \"./core/decorator/decorator\";\nimport { _func } from \"./core/func\";\nimport { _i18n } from \"./core/i18n\";\nimport { _OB } from \"./core/ob\";\nimport { _Widget, _WidgetStatic } from \"./core/widget\";\nimport { _Layout } from \"./core/wrapper/layout\";\nimport { _HTapeLayout, _VTapeLayout } from \"./core/wrapper/layout/layout.tape\";\n\n\ntype ClassConstructor<T extends {}> = T & {\n new(config: any): T;\n (config: any): T;\n readonly prototype: T;\n}\n\nexport interface BI extends _func, _i18n, _base {\n OB: ClassConstructor<_OB>;\n Widget: ClassConstructor<_Widget> & _WidgetStatic;\n Single: ClassConstructor<_Single>;\n BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic;\n Button: ClassConstructor<_Button> & _ButtonStatic;\n TextButton: ClassConstructor<_TextButton> & _TextButtonStatic;\n IconChangeButton: ClassConstructor<_IconChangeButton> & _IconChangeButtonStatic;\n Trigger: ClassConstructor<_Trigger>;\n Action: ClassConstructor<_Action>;\n ActionFactory: ClassConstructor<_ActionFactory>;\n ShowAction: ClassConstructor<_ShowAction>;\n Behavior: ClassConstructor<_Behavior>;\n BehaviorFactory: ClassConstructor<_BehaviorFactory>;\n HighlightBehavior: ClassConstructor<_HighlightBehavior>;\n RedMarkBehavior: ClassConstructor<_RedMarkBehavior>;\n Pane: ClassConstructor<_Pane> & _PaneStatic;\n LoadingPane: ClassConstructor<_LoadingPane>;\n Tab: ClassConstructor<_Tab> & _TabStatic;\n ButtonGroup: ClassConstructor<_ButtonGroup> & _ButtonGroupChooseType & _ButtonGroupStatic;\n Combo: ClassConstructor<_Combo> & _ComboStatic;\n TextValueCombo: ClassConstructor<_TextValueCombo> & _TextValueComboStatic;\n BubbleCombo: ClassConstructor<_BubbleCombo> & _BubbleComboStatic;\n AllValueMultiTextValueCombo: ClassConstructor<_AllValueMultiTextValueCombo> & _AllValueMultiTextValueComboStatic;\n IconTextItem: ClassConstructor<_IconTextItem> & _IconTextItemStatic;\n MultiSelectItem: ClassConstructor<_MultiSelectItem> & _MultiSelectItemStatic;\n AbstractLabel: ClassConstructor<_AbstractLabel>;\n Label: ClassConstructor<_Label>;\n Editor: ClassConstructor<_Editor> & _EditorStatic;\n Layout: ClassConstructor<_Layout>;\n HTapeLayout: ClassConstructor<_HTapeLayout>;\n VTapeLayout: ClassConstructor<_VTapeLayout>;\n Decorators: typeof decorator;\n}\n\nexport default {\n Decorators: decorator,\n};\n","export type Constructor<T> = new(...args: any[]) => T;\n\n/**\n * 注册widget\n */\nexport function shortcut() {\n return function decorator<U>(Target: Constructor<U> & {xtype: string}): void {\n BI.shortcut(Target.xtype, Target);\n };\n}\n\n/**\n * 注册model\n */\nexport function model() {\n return function decorator<U extends {new(...args:any[]):{}} & {xtype: string, context?: ReadonlyArray<string>}>(Target: U): void {\n BI.model(Target.xtype, Target);\n };\n}\n\n/**\n * 类注册_store属性\n * @param Model model类\n * @param opts 额外条件\n */\nexport function store<T>(Model: Constructor<T> & {xtype: string}, opts: { props?(this: unknown): { [key: string]: unknown } } = {}) {\n return function classDecorator<U extends {new(...args:any[]):{}}>(constructor:U) {\n return class extends constructor {\n _store() {\n const props = opts.props ? opts.props.apply(this) : undefined;\n\n return BI.Models.getModel(Model.xtype, props);\n }\n };\n };\n}\n\n/**\n * Model基类\n */\nexport class Model<U extends {types?: {[key: string]: unknown} | {}, context?: ReadonlyArray<string>} = {}> extends Fix.Model {\n // @ts-ignore this[\"computed\"][key]为空\n model: Pick<{[key in keyof U[\"types\"]]: U[\"types\"][key]}, U[\"context\"][number]> & {[key in keyof ReturnType<this[\"state\"]>]: ReturnType<this[\"state\"]>[key]} & {[key in keyof this[\"computed\"]]: ReturnType<this[\"computed\"][key]>};\n\n store: this[\"actions\"];\n\n state(): {[key: string]: unknown} | {} {\n return {};\n }\n\n context: U[\"context\"];\n\n actions:{[key: string]: (...args: any[]) => any};\n\n childContext: ReadonlyArray<keyof (this[\"computed\"] & ReturnType<this[\"state\"]>)>;\n\n // @ts-ignore this[\"computed\"][key]为空\n TYPE: Pick<{[key in keyof this[\"computed\"]]: ReturnType<this[\"computed\"][key]>} & {[key in keyof ReturnType<this[\"state\"]>]: ReturnType<this[\"state\"]>[key]}, this[\"childContext\"][number]>;\n\n computed: {[key: string]: () => unknown} | {};\n}\n\n/* 分享一段很好看的代码\n// union to intersection of functions\ntype UnionToIoF<U> =\n (U extends any ? (k: (x: U) => void) => void : never) extends\n ((k: infer I) => void) ? I : never\n\n// return last element from Union\ntype UnionPop<U> = UnionToIoF<U> extends { (a: infer A): void; } ? A : never;\n\n// prepend an element to a tuple.\ntype Prepend<U, T extends ReadonlyArray<any>> =\n ((a: U, ...r: T) => void) extends (...r: infer R) => void ? R : never;\n\ntype UnionToTupleRecursively<Union, Result extends ReadonlyArray<any>> = {\n 1: Result;\n 0: UnionToTupleRecursively_<Union, UnionPop<Union>, Result>;\n // 0: UnionToTupleRecursively<Exclude<Union, UnionPop<Union>>, Prepend<UnionPop<Union>, Result>>\n}[[Union] extends [never] ? 1 : 0];\n\ntype UnionToTupleRecursively_<Union, Element, Result extends ReadonlyArray<any>> =\n UnionToTupleRecursively<Exclude<Union, Element>, Prepend<Element, Result>>;\n\ntype UnionToTuple<U> = UnionToTupleRecursively<U, []>;\n*/\n"]} |