var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(za,Ga,Ma){if(za==Array.prototype||za==Object.prototype)return za;za[Ga]=Ma.value;return za};
$jscomp.getGlobal=function(za){za=["object"==typeof globalThis&&globalThis,za,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Ga=0;Ga<za.length;++Ga){var Ma=za[Ga];if(Ma&&Ma.Math==Math)return Ma}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;
$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(za,Ga){var Ma=$jscomp.propertyToPolyfillSymbol[Ga];if(null==Ma)return za[Ga];Ma=za[Ma];return void 0!==Ma?Ma:za[Ga]};$jscomp.polyfill=function(za,Ga,Ma,Sa){Ga&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(za,Ga,Ma,Sa):$jscomp.polyfillUnisolated(za,Ga,Ma,Sa))};
$jscomp.polyfillUnisolated=function(za,Ga,Ma,Sa){Ma=$jscomp.global;za=za.split(".");for(Sa=0;Sa<za.length-1;Sa++){var Ua=za[Sa];if(!(Ua in Ma))return;Ma=Ma[Ua]}za=za[za.length-1];Sa=Ma[za];Ga=Ga(Sa);Ga!=Sa&&null!=Ga&&$jscomp.defineProperty(Ma,za,{configurable:!0,writable:!0,value:Ga})};
$jscomp.polyfillIsolated=function(za,Ga,Ma,Sa){var Ua=za.split(".");za=1===Ua.length;Sa=Ua[0];Sa=!za&&Sa in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var Xa=0;Xa<Ua.length-1;Xa++){var V=Ua[Xa];if(!(V in Sa))return;Sa=Sa[V]}Ua=Ua[Ua.length-1];Ma=$jscomp.IS_SYMBOL_NATIVE&&"es6"===Ma?Sa[Ua]:null;Ga=Ga(Ma);null!=Ga&&(za?$jscomp.defineProperty($jscomp.polyfills,Ua,{configurable:!0,writable:!0,value:Ga}):Ga!==Ma&&(void 0===$jscomp.propertyToPolyfillSymbol[Ua]&&(Ma=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[Ua]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(Ua):$jscomp.POLYFILL_PREFIX+Ma+"$"+Ua),$jscomp.defineProperty(Sa,$jscomp.propertyToPolyfillSymbol[Ua],{configurable:!0,writable:!0,value:Ga})))};$jscomp.polyfill("Array.prototype.fill",function(za){return za?za:function(Ga,Ma,Sa){var Ua=this.length||0;0>Ma&&(Ma=Math.max(0,Ua+Ma));if(null==Sa||Sa>Ua)Sa=Ua;Sa=Number(Sa);0>Sa&&(Sa=Math.max(0,Ua+Sa));for(Ma=Number(Ma||0);Ma<Sa;Ma++)this[Ma]=Ga;return this}},"es6","es3");
$jscomp.typedArrayFill=function(za){return za?za:Array.prototype.fill};$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.findInternal=function(za,Ga,Ma){za instanceof String&&(za=String(za));for(var Sa=za.length,Ua=0;Ua<Sa;Ua++){var Xa=za[Ua];if(Ga.call(Ma,Xa,Ua,za))return{i:Ua,v:Xa}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(za){return za?za:function(Ga,Ma){return $jscomp.findInternal(this,Ga,Ma).v}},"es6","es3");
(function(){function za(){var V=[];this.addListener=function(C){for(var E=!1,R=V.length-1;0<=R;R--)if(C==V[R]){E=!0;break}E||V.push(C)};this.removeListener=function(C){for(var E=V.length-1;0<=E;E--)if(C==V[E]){V.splice(E,1);break}};this.removeAllListener=function(){V.length=0};this.fireEvent=function(C){for(var E=0;E<V.length;E++)C(V[E])}}function Ga(){this.setFormatString=function(V){throw Error("Override me.");};this.format=function(V){throw Error("Override me.");};this.protectedMethod={addZeroBefore:function(V,
C){for(var E="",R=0;R<C;R++)E+="0";return E+V},addZeroAfter:function(V,C){for(var E="",R=0;R<C;R++)E+="0";return V+E}}}function Ma(){function V(){var y=!1,N=0,t=0,P=0,a=".",x=",",m="",Q="",ea,ta,Ha;this.setNoNumber=function(la){y=la};this.setIgnoreNegativeSign=function(la){ea=la};this.setRoundingMode=function(la){ta=la};this.setDecimal=function(la){N=la};this.getDecimal=function(){return N};this.setGrouping=function(la){t=la};this.setUnitPower=function(la){P=la};this.setDecimalSymbol=function(la){a=
la};this.setGroupingSymbol=function(la){x=la};this.setPrefix=function(la){m=la};this.setSuffix=function(la){Q=la};this.format=function(la){if(y)la="";else{var ka=""+la;la="";"-"==ka.charAt(0)&&(ka=ka.substring(1),la="-");var ra=ka,pa=ra.indexOf("e-");if(0<pa&&pa+2<ra.length){ka=ra.substring(0,pa);ra=ra.substring(pa+2);ra=parseInt(ra);var Da=ka.indexOf(".");0<=Da&&(ka=ka.substring(0,Da)+ka.substring(Da+1));ra="0."+E.addZeroBefore(ka,ra-1)}pa=ra.indexOf("e+");0<pa&&pa+2<ra.length&&(ka=ra.substring(0,
pa),ra=ra.substring(pa+2),ra=parseInt(ra),Da=ka.indexOf("."),0<=Da?(pa=ka.substring(0,Da),ka=ka.substring(Da+1)):(pa=ka,ka=""),ka=ka.length>ra?ka.substring(0,ra)+"."+ka.substring(ra):E.addZeroAfter(ka,ra-ka.length),ra=pa+ka);ka=ra;ra=ka.indexOf(".");0<=ra?ka=ka.substring(0,ra)+ka.substring(ra+1):ra=ka.length;pa=ra-P;0>pa?ka=E.addZeroBefore(ka,0-pa):pa>ka.length&&(ka=E.addZeroAfter(ka,pa-ka.length));ra=ka.substring(0,pa);ka=ka.substring(pa);la=[la,ra,ka];ra=la[0];ka=la[2];Ha=!1;pa=N-ka.length;if(0<
pa)ka=E.addZeroAfter(ka,pa);else if(0>pa){pa=parseInt(ka.charAt(N));ra=ra?!0:!1;Da=!1;switch(ta){case Ma.RoundingMode.HALF_UP:Da=4<pa;break;case Ma.RoundingMode.CEILING:Da=0<pa&&!ra;break;case Ma.RoundingMode.FLOOR:Da=0<pa&&ra}ra=Da;ka=ka.substring(0,N);ra&&(0==N?Ha=!0:(ra=ka.length,ka=""+(parseInt(ka,10)+1),ka.length>ra?(ka=ka.substring(1),Ha=!0):ka.length<ra&&(ka=E.addZeroBefore(ka,ra-ka.length))))}ra=la[0];la=la[1];if(15<la.length){for(;1<la.length&&"0"==la.charAt(0);)la=la.substring(1);if(Ha)for(pa=
la.length-1;0<=pa;)if(Da=parseInt(la.charAt(pa)),Da+=1,9<Da&&(Da=0),la=la.substring(0,pa)+Da+la.substring(pa+1),0==pa&&(la="1"+la),0==Da)pa--;else break}else la=0==la.length?0:parseInt(la,10),la=(Ha?la+1:la)+"";if(0<t)for(pa=la.length-t;0<pa;pa-=t)la=la.substring(0,pa)+x+la.substring(pa);la=(ea?"":ra)+la;la+=ka?a+ka:""}return m+la+Q}}Ga.call(this);var C=this,E=this.protectedMethod,R,sa,J;this.setFormatString=function(y){M(y)};this.format=function(y,N){for(var t,P=0;P<sa.length;P++)if(!R||!R[P]||R[P](y)){t=
sa[P];if(null==t)return""+y;"string"==typeof t&&(t=C.parseString(t),t.setIgnoreNegativeSign(J[P]),sa[P]=t);break}t.setRoundingMode(N?N:Ma.RoundingMode.HALF_UP);return t.format(y)};var M=function(y){if(y){var N=y.split(";");3<=N.length?(R=[function(t){return 0==parseFloat(t)},function(t){return 0>parseFloat(t)},null],sa=[N[2],N[1],N[0]],J=[!1,!0,!1]):2==N.length?(R=[function(t){return 0>parseFloat(t)},null],sa=[N[1],N[0]],J=[!0,!1]):(R=null,sa=[y],J=[!1])}else R=null,sa=[null]};this.parseString=function(y){var N=
new V,t=y.search(/\{-?\d+\}/);if(0<=t){var P=y.indexOf("}",t),a=parseInt(y.substring(t+1,P));y=y.substring(0,t)+y.substring(P+1);N.setUnitPower(a)}var x=-1,m=-1;t=-1;var Q=y.indexOf("#");if(0<=Q){m=y.lastIndexOf("#");x=null;for(P=Q+1;P<m;P++){a=y.charAt(P);if(null!=x&&"#"!=a){x=null;t=-1;break}"#"!=a&&(x=a,t=P)}null!=x&&N.setGroupingSymbol(x);x=Q;m+=1}Q=-1;var ea=y.indexOf("0");if(0<=ea){var ta=y.lastIndexOf("0"),Ha=null;for(P=ea+1;P<ta;P++){a=y.charAt(P);if(null!=Ha&&"0"!=a){Ha=null;Q=-1;break}"0"!=
a&&(Ha=a,Q=P)}null!=Ha&&(N.setDecimalSymbol(Ha),N.setDecimal(ta-Q));x=0>x?ea:Math.min(x,ea);m=Math.max(m,ta+1)}0<=x?N.setPrefix(y.substring(0,x)):(N.setPrefix(y),N.setNoNumber(!0));0<=m&&N.setSuffix(y.substring(m));0<=t&&(0<=Q?N.setGrouping(Q-t-1):N.setGrouping(m-t-1));return N}}function Sa(){Ga.call(this);var V=this.protectedMethod,C="january february march april may june july august september october november december".split(" "),E="sunday monday tuesday wednesday thursday friday saturday".split(" "),
R=["am","pm"],sa=Xa.MLS,J;this.setFormatString=function(N){for(var t=[],P=null,a="",x=!1,m=0;m<N.length;m++){var Q=N.charAt(m);x?"'"==Q?(x=!1,a&&t.push([!1,a]),a=""):a+=Q:"'"==Q&&0<=N.indexOf("'",m+1)?(x=!0,a&&t.push([!0,a]),a="",P=null):(P&&Q!=P?(a&&t.push([!0,a]),a=Q):a+=Q,P=Q)}t.push([!0,a]);J=t};this.format=function(N){var t=N;var P=null;t instanceof Date?P=t:"string"==typeof t?(t=t.replace(/-/g,"/"),P=new Date(t)):"number"==typeof t&&(P=new Date(t));if(t=P){N=J;P="";for(var a=0;a<N.length;a++){var x=
N[a],m=x[1],Q=m.length;switch(x[0]?m.charAt(0):""){case "y":x=Q;m=t.getFullYear()+"";m=y(m,x,!1);x=m=M(m,x);break;case "q":x=t.getMonth();x=Math.floor(x/3)+1+"";break;case "M":x=Q;m=t.getMonth();2<x?(m=C[m],m=sa.get(m,m),4>x&&(m=y(m,3,!0))):m=M(m+1+"",x);x=m;break;case "d":x=Q;m=t.getDate()+"";x=m=M(m,x);break;case "H":x=Q;m=t.getHours()+"";x=m=M(m,x);break;case "m":x=Q;m=t.getMinutes()+"";x=m=M(m,x);break;case "s":x=Q;m=t.getSeconds()+"";x=m=M(m,x);break;case "a":x=t.getHours();x=R[12>x?0:1];x=sa.get(x,
x);break;case "h":x=Q;m=t.getHours()%12;x=M((0==m?12:m)+"",x);break;case "E":x=Q;m=t.getDay();m=E[m];m=sa.get(m,m);4>x&&(m=y(m,3,!0));x=m;break;default:x=m}P+=x}t=P}else t=N;return t};var M=function(N,t){var P=N.length;P<t&&(N=V.addZeroBefore(N,t-P));return N},y=function(N,t,P){var a=N.length;a>t&&(N=P?N.substring(0,t):N.substring(a-t));return N}}function Ua(){var V=Ua.PERIOD_DAY,C=null,E=0,R=!1,sa=null;this.setPeriod=function(J){V=J};this.getPeriod=function(){return V};this.setWhichPeriod=function(J){C=
J};this.getWhichPeriod=function(){return C};this.setFromNowOn=function(J){E=J};this.getFromNowOn=function(){return E};this.setUpToNow=function(J){R=J};this.getUpToNow=function(){return R};this.setAnchor=function(J){sa=J};this.getAnchor=function(){return sa};this.toJsonObject=function(){var J={};J.period=V;J.whichPeriod=C;J.fromNowOn=E;J.upToNow=R;J.anchor=sa&&sa instanceof Date?sa.getTime():sa;return J};this.fromJsonObject=function(J){if(J&&(V=J.hasOwnProperty("period")?J.period:V,C=J.hasOwnProperty("whichPeriod")?
J.whichPeriod:null,E=J.hasOwnProperty("fromNowOn")?J.fromNowOn:E,R=J.hasOwnProperty("upToNow")?J.upToNow:R,J=J.hasOwnProperty("anchor")?parseInt(J.anchor):null,!isNaN(J)&&null!=J)){var M=new Date;M.setTime(J);sa=M}}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.common&&(com.kingdee.bos.qing.common=
{});var Xa=com.kingdee.bos.qing.common;Xa.MLS=new function(){var V;this.hookAccessor=function(C){V=C};this.get=function(C,E){return V?V.get(C,E):E}};Xa.Util=new function(){this.decodeParamFromUrl=function(C,E){var R=E+"=";for(E=-1;!(E=C.indexOf(R,E+1),0>=E);){var sa=C.charAt(E-1);if("&"==sa||"?"==sa)break}return-1!=E?(E+=R.length,R=C.indexOf("&",E),R=-1==R?C.length:R,window.decodeURIComponent(C.substring(E,R))):null};this.appendParamToUrl=function(C,E,R){C+=0>C.indexOf("?")?"?":"&";return C=C+E+"="+
window.encodeURIComponent(R)};this.setCookie=function(C,E,R){var sa=new Date;sa.setTime(sa.getTime()+864E5*R);R="expires="+sa.toUTCString();document.cookie=C+"="+E+"; "+R+";path=/"};this.getCookie=function(C){C+="=";for(var E=document.cookie.split(";"),R=0;R<E.length;R++){for(var sa=E[R];" "==sa.charAt(0);)sa=sa.substring(1);if(0==sa.indexOf(C))return sa.substring(C.length,sa.length)}return""};this.isIEBrowser=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("msie")?!0:!1};this.createUUID=
function(){for(var C=[],E=0;36>E;E++)C[E]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);C[14]="4";C[19]="0123456789abcdef".substr(Math.floor(4*Math.random())+8,1);C[8]=C[13]=C[18]=C[23]="-";return C.join("")};this.cleanInvalidChar=function(C,E){for(var R=!1,sa=C.length-1;0<=sa;sa--){var J=C.charCodeAt(sa);if(55295<J&&57344>J||32>J&&9!=J&&10!=J&&13!=J)C=C.substring(0,sa)+C.substring(sa+1),R=!0}R&&E(C);return R};this.formatDate=function(C,E){var R=new Sa;R.setFormatString(C?C:"yyyy-MM-dd HH:mm:ss");
return R.format(E?E:new Date)};var V=/^[a-zA-Z][a-zA-Z0-9_]*$/;this.checkVariableNaming=function(C){return V.test(C)}};Xa.MathUtil=new function(){(function(){"undefined"==typeof Math.log10&&(Math.log10=function(V){return Math.log(V)/Math.LN10})})();this.addDecimal=function(V,C){if(0==V&&0==C)return 0;if(0==V)return C;if(0==C)return V;var E=Math.abs(V),R=Math.abs(C),sa=""+E,J=""+R,M=!1,y=!1;if(0>V&&0>C)M=!0;else if(0<V&&0>C||0>V&&0<C)E<R&&(M=sa,sa=J,J=M),y=!0,M=0>C&&E<R||0>V&&E>R;try{var N=sa.split("."),
t=J.split(".");if(2==N.length||2==t.length){var P=N[0],a=N[1];!a&&(a="0");var x=t[0],m=t[1];!m&&(m="0");for(var Q=Math.max(a.length,m.length),ea=Math.min(a.length,m.length)+1;ea<=Q;ea++)a.length<ea&&(a+="0"),m.length<ea&&(m+="0");E=0;y&&(a="1"+a,E--);var ta=parseInt(a),Ha=parseInt(m);a=ta+(y?-Ha:Ha)+"";if(a.length>Q)E++,a=a.substring(1);else if(a.length<Q)for(ea=a.length;ea<Q;ea++)a="0"+a;var la=parseInt(P),ka=parseInt(x);return parseFloat((M?"-":"")+(la+(y?-ka:ka)+E)+"."+a)}return V+C}catch(ra){return V+
C}}};Xa.BrowserUtil=new function(){var V,C;this.getBrowserName=function(){!V&&E();return V};this.getBrowserVersion=function(){!C&&E();return C};var E=function(){var R=window.navigator.userAgent.toLowerCase();0<=R.indexOf("edg")?(V="Edge",C=R.match(/edg\/([\d.]+)/)[1]):0<=R.indexOf("edge")?(V="Edge",C=R.match(/edge\/([\d.]+)/)[1]):0<=R.indexOf("chrome")?(V="Chrome",C=R.match(/chrome\/([\d.]+)/)[1]):0<=R.indexOf("safari")?(V="Safari",C=R.match(/version\/([\d.]+)/)[1]):0<=R.indexOf("firefox")?(V="FireFox",
C=R.match(/firefox\/([\d.]+)/)[1]):0<=R.indexOf("msie")?(V="IE",C=R.match(/msie ([\d.]+)/)[1]):0<=R.indexOf("trident")?(V="IE",C="11"):0<=R.indexOf("opera")?(V="Opera",C=R.match(/opera.([\d.]+)/)[1]):(V="Other unknown",C="?")}};Xa.FullScreenHelper=new function(){var V=this,C,E,R=[],sa=function(){C||(C=new za,void 0!==document.onwebkitfullscreenchange?document.onwebkitfullscreenchange=function(N){J(document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)}:void 0!==document.onmsfullscreenchange?
document.onmsfullscreenchange=function(N){J(document.msFullscreenElement)}:void 0!==document.onmozfullscreenchange?document.onmozfullscreenchange=function(N){J(document.mozFullscreenElement||document.fullscreenElement)}:document.addEventListener("fullscreenchange",function(N){J(document.fullscreenElement)}));return C},J=function(N){N||(R=[]);M()};this.addChangedListener=function(N){sa().addListener(N)};this.removeChangedListener=function(N){sa().removeListener(N)};var M=function(){var N=0<R.length?
R[R.length-1]:null;C.fireEvent(function(t){t(N)})};this.request=function(N){y()?(E&&E(),R.push(N),1<R.length?M():(N=document.body,N.requestFullScreen?N.requestFullScreen():N.webkitRequestFullScreen?N.webkitRequestFullScreen():N.msRequestFullscreen?N.msRequestFullscreen():N.mozRequestFullScreen&&N.mozRequestFullScreen())):window.console&&window.console.error("Unsupport full-screen.")};var y=function(){return document.body.requestFullScreen||document.body.webkitRequestFullScreen||document.body.msRequestFullscreen||
document.body.mozRequestFullScreen?!0:!1};this.exit=function(){if(y()){R.pop();if(0<R.length)return M(),!0;V.exitAll();return!1}};this.exitAll=function(){document.exitFullScreen?document.exitFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()};this.setRequestListener=function(N){E=N}};Xa.DomUtil=new function(){this.getCurrentTargetPosition=function(C){var E=
C.originalEvent;return void 0==C.offsetX&&void 0==C.layerX&&void 0!=E?[void 0==E.offsetX?E.layerX:E.offsetX,void 0==E.offsetY?E.layerY:E.offsetY]:[void 0==C.offsetX?C.layerX:C.offsetX,void 0==C.offsetY?C.layerY:C.offsetY]};this.upwardCoordinate=function(C,E,R){for(var sa=R.scrollLeft-R.clientLeft,J=R.scrollTop-R.clientTop;C!=R;){if(C==document.body)throw Error("Not immediate family.");var M=C.parentNode;sa+=M.clientLeft-M.scrollLeft+C.offsetLeft;J+=M.clientTop-M.scrollTop+C.offsetTop;C=M}return[Math.round(sa)+
E[0],Math.round(J)+E[1]]};this.upwardSearch=function(C,E,R){for(;0<C.length&&C[0]!=E[0];){if(R(C))return C;C=C.parent()}return null};this.upwardSearchHasClass=function(C,E,R){return this.upwardSearch(C,E,function(sa){return sa.hasClass(R)})};this.upwardSearchHasData=function(C,E,R){return this.upwardSearch(C,E,function(sa){return sa.data(R)})};this.isInDomTree=function(C){for(var E=C;E!=document.body;)if(E=E.parentNode,!E||E===C)return!1;return!0};this.isDescendent=function(C,E){for(;C&&C!=document.body;){if(C==
E)return!0;C=C.parentNode}return!1};this.layoutCtrl=function(C,E,R,sa,J){var M={position:"absolute"};M.left=E;M.top=R;M.width=sa;M.height=J;C.css(M)};this.layoutCtrlWithLRTB=function(C,E,R,sa,J,M,y){var N={position:"absolute"};(E||0===E||""===E)&&(N.left=E);(R||0===R||""===R)&&(N.right=R);(sa||0===sa||""===sa)&&(N.width=sa);(J||0===J||""===J)&&(N.top=J);(M||0===M||""===M)&&(N.bottom=M);(y||0===y||""===y)&&(N.height=y);C.css(N)};this.layoutCtrlCenterAlign=function(C,E){var R={position:"absolute",left:"50%"};
R["margin-left"]=-(E>>1)+"px";R.width=E+"px";C.css(R)};this.layoutCtrlMiddleAlign=function(C,E){var R={position:"absolute",top:"50%"};R["margin-top"]=-(E>>1)+"px";R.height=E+"px";R["line-height"]=E+"px";C.css(R)};this.makeTextOmissible=function(C){C.css({overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"})};this.makeSelectable=function(C,E){var R=E?"":"none";C.css({"user-select":R,"-webkit-user-select":R,"-moz-user-select":R,"-ms-user-select":R,"-o-user-select":R});if(E)C.off("selectstart",
V);else C.on("selectstart",V)};var V=function(C){return!1}};Xa.Base64Util=new function(){this.encode=function(V){if(void 0==V||""==V)return"";V=V.replace("/\r\ng","\n");for(var C="",E=0;E<V.length;E++){var R=V.charCodeAt(E);128>R?C+=String.fromCharCode(R):(127<R&&2048>R?C+=String.fromCharCode(R>>6|192):(C+=String.fromCharCode(R>>12|224),C+=String.fromCharCode(R>>6&63|128)),C+=String.fromCharCode(R&63|128))}V=C;C="";for(var sa,J,M,y,N=0;N<V.length;)sa=V.charCodeAt(N++),E=V.charCodeAt(N++),R=V.charCodeAt(N++),
J=sa>>2,sa=(sa&3)<<4|E>>4,M=(E&15)<<2|R>>6,y=R&63,isNaN(E)?M=y=64:isNaN(R)&&(y=64),C=C+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(J)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(sa)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(M)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(y);return C};this.decode=function(V){var C="",E=0;for(V=V.replace(/[^A-Za-z0-9\+\/=]/g,"");E<V.length;){var R=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(V.charAt(E++));var sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(V.charAt(E++));var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(V.charAt(E++));var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(V.charAt(E++));R=R<<2|sa>>4;sa=(sa&15)<<4|J>>2;var y=(J&3)<<6|M;C+=String.fromCharCode(R);64!=J&&(C+=String.fromCharCode(sa));64!=M&&
(C+=String.fromCharCode(y))}V=C;C="";for(J=0;J<V.length;)M=V.charCodeAt(J),128>M?(C+=String.fromCharCode(M),J++):191<M&&224>M?(E=V.charCodeAt(J+1),C+=String.fromCharCode((M&31)<<6|E&63),J+=2):(E=V.charCodeAt(J+1),R=V.charCodeAt(J+2),C+=String.fromCharCode((M&15)<<12|(E&63)<<6|R&63),J+=3);return C}};Xa.Base32Util=new function(){this.encode=function(V){if(void 0==V||""==V)return"";V=V.replace("/\r\ng","\n");for(var C="",E=0;E<V.length;E++){var R=V.charCodeAt(E);128>R?C+=String.fromCharCode(R):(127<
R&&2048>R?C+=String.fromCharCode(R>>6|192):(C+=String.fromCharCode(R>>12|224),C+=String.fromCharCode(R>>6&63|128)),C+=String.fromCharCode(R&63|128))}V=C;C="";for(var sa,J,M,y,N,t,P,a,x,m,Q=0;Q<V.length;)sa=V.charCodeAt(Q++),E=V.charCodeAt(Q++),R=V.charCodeAt(Q++),J=V.charCodeAt(Q++),M=V.charCodeAt(Q++),y=sa>>3,sa=(sa&7)<<2|E>>6,N=(E&63)>>1,t=(E&1)<<4|R>>4,P=(R&15)<<1|J>>7,a=(J&127)>>2,x=(J&3)<<3|M>>5,m=M&31,isNaN(E)?N=t=P=a=x=m=32:isNaN(R)?P=a=x=m=32:isNaN(J)?a=x=m=32:isNaN(M)&&(m=32),C=C+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(y)+
"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(sa)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(N)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(t)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(P)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(a)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(x)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(m);return C};this.decode=function(V){var C="",E=0;for(V=V.replace(/[^A-Z3-9_]/g,"");E<V.length;){var R="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));var sa="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));
var J="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));var M="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));var y="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));var N="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));var t="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));var P="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(V.charAt(E++));R=R<<3|(sa&31)>>2;sa=(sa&3)<<6|J<<1|M>>4;M=(M&15)<<4|y>>1;var a=(y&1)<<7|N<<2|t>>3;t=(t&7)<<5|P;C+=String.fromCharCode(R);
32!=J&&(C+=String.fromCharCode(sa));32!=y&&(C+=String.fromCharCode(M));32!=N&&(C+=String.fromCharCode(a));32!=P&&(C+=String.fromCharCode(t))}V=C;C="";for(J=0;J<V.length;)y=V.charCodeAt(J),128>y?(C+=String.fromCharCode(y),J++):191<y&&224>y?(N=V.charCodeAt(J+1),C+=String.fromCharCode((y&31)<<6|N&63),J+=2):(N=V.charCodeAt(J+1),P=V.charCodeAt(J+2),C+=String.fromCharCode((y&15)<<12|(N&63)<<6|P&63),J+=3);return C}};Xa.ColorUtil=new function(){var V=/^rgba\(\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(0|1|0\.\d*|1\.0*)\s*\)$/i,
C=/^rgb\(\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*\)$/i,E=/^hsl\(\s*(360|3[0-5][0-9]|[0-2]?\d?\d)\s*,\s*(100|\d?\d)%\s*,\s*(100|\d?\d)%\s*\)$/i,R=/^hsla\(\s*(360|3[0-5][0-9]|[0-2]?\d?\d)\s*,\s*(100|\d?\d)%\s*,\s*(100|\d?\d)%\s*,\s*(0|1|0\.\d*|1\.0*)\s*\)$/i,sa=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,J=/^#([a-f\d])([a-f\d])([a-f\d])$/i,M=this;this.isHexRgb=function(y){return sa.test(y)};this.isSimpleHexRgb=function(y){return J.test(y)};
this.isFunctionRgb=function(y){return C.test(y)};this.isFunctionRgba=function(y){return V.test(y)};this.isFunctionHsl=function(y){return E.test(y)};this.isFunctionHsla=function(y){return R.test(y)};this.decodeHexRgb=function(y){y=sa.exec(y);return[parseInt(y[1],16),parseInt(y[2],16),parseInt(y[3],16)]};this.decodeSimpleHexRgb=function(y){y=J.exec(y);return[parseInt(y[1]+y[1],16),parseInt(y[2]+y[2],16),parseInt(y[3]+y[3],16)]};this.decodeFunctionRgb=function(y){y=C.exec(y);return[parseInt(y[1]),parseInt(y[2]),
parseInt(y[3])]};this.decodeFunctionRgba=function(y){y=V.exec(y);return[parseInt(y[1]),parseInt(y[2]),parseInt(y[3]),parseFloat(y[4])]};this.decodeFunctionHsl=function(y){y=E.exec(y);return[parseInt(y[1]),parseInt(y[2]),parseInt(y[3])]};this.decodeFunctionHsla=function(y){y=R.exec(y);return[parseInt(y[1]),parseInt(y[2]),parseInt(y[3]),parseFloat(y[4])]};this.decodeStringToRgbArray=function(y){return M.isHexRgb(y)?M.decodeHexRgb(y):M.isSimpleHexRgb(y)?M.decodeSimpleHexRgb(y):M.isFunctionRgb(y)?M.decodeFunctionRgb(y):
M.isFunctionHsl(y)?(y=M.decodeFunctionHsl(y),M.hslToRgb(y[0],y[1],y[2])):M.isFunctionRgba(y)?(y=M.decodeFunctionRgba(y),[y[0],y[1],y[2]]):M.isFunctionHsla(y)?(y=M.decodeFunctionHsla(y),M.hslToRgb(y[0],y[1],y[2])):null};this.decodeStringToRgbaArray=function(y){var N=null;M.isHexRgb(y)?(N=M.decodeHexRgb(y),N.push(1)):M.isSimpleHexRgb(y)?(N=M.decodeSimpleHexRgb(y),N.push(1)):M.isFunctionRgb(y)?(N=M.decodeFunctionRgb(y),N.push(1)):M.isFunctionHsl(y)?(N=M.decodeFunctionHsl(y),N=M.hslToRgb(N[0],N[1],N[2]),
N.push(1)):M.isFunctionRgba(y)?N=M.decodeFunctionRgba(y):M.isFunctionHsla(y)&&(y=M.decodeFunctionHsla(y),N=M.hslToRgb(y[0],y[1],y[2]),N.push(y[3]));return N};this.rgbToHsl=function(y,N,t){y/=255;N/=255;t/=255;var P=Math.max(y,N,t),a=Math.min(y,N,t),x=(P+a)/2;if(P==a)var m=a=0;else{var Q=P-a;a=.5>=x?Q/(P+a):Q/(2-P-a);switch(P){case y:m=(N-t)/Q;break;case N:m=(t-y)/Q+2;break;case t:m=(y-N)/Q+4}m*=60;0>m&&(m+=360)}return[Math.round(m),Math.round(100*a),Math.round(100*x)]};this.hslToRgb=function(y,N,
t){y/=360;N/=100;t/=100;if(0==N)t=N=y=Math.round(255*t);else{var P=function(m,Q,ea){0>ea&&(ea+=1);1<ea&&--ea;return ea<1/6?m+6*(Q-m)*ea:.5>ea?Q:ea<2/3?m+(Q-m)*(2/3-ea)*6:m},a=.5>t?t*(1+N):t+N-t*N,x=2*t-a;t=Math.round(255*P(x,a,y+1/3));N=Math.round(255*P(x,a,y));y=Math.round(255*P(x,a,y-1/3))}return[t,N,y]};this.rgbToHsv=function(y,N,t){y/=255;N/=255;t/=255;var P=Math.max(y,N,t),a=Math.min(y,N,t);if(P==a)var x=0;else{var m=P-a;switch(P){case y:x=(N-t)/m;break;case N:x=(t-y)/m+2;break;case t:x=(y-N)/
m+4}x*=60;0>x&&(x+=360)}return[Math.round(x),Math.round(100*(0==P?0:1-a/P)),Math.round(100*P)]};this.hsvToRgb=function(y,N,t){N/=100;t/=100;var P=Math.floor(y/60)%6,a=y/60-P;y=t*(1-N);var x=t*(1-a*N);N=t*(1-(1-a)*N);switch(P){case 0:var m=t;var Q=N;var ea=y;break;case 1:m=x;Q=t;ea=y;break;case 2:m=y;Q=t;ea=N;break;case 3:m=y;Q=x;ea=t;break;case 4:m=N;Q=y;ea=t;break;case 5:m=t,Q=y,ea=x}return[Math.round(255*m),Math.round(255*Q),Math.round(255*ea)]};this.withOpacityToRgba=function(y,N){var t=M.decodeStringToRgbArray(y);
if(t)for(t.push(N),y="rgba(#0,#1,#2,#3)",N=0;4>N;N++)y=y.replace("#"+N,t[N]);return y};this.splitRgbAndOpacity=function(y){var N=1,t=M.decodeStringToRgbaArray(y);if(t){y="rgb(#0,#1,#2)";for(N=0;3>N;N++)y=y.replace("#"+N,t[N]);N=t[3]}return[y,N]};this.isTheSame=function(y,N){y=M.decodeStringToRgbaArray(y);N=M.decodeStringToRgbaArray(N);if(y&&N){for(var t=0;3>t;t++)if(y[t]!=N[t])return!1;return!0}return!1}};Xa.CssUtil=new function(){var V=["","-ms-","-moz-","-webkit-","-o-"];this.rotate=function(C,
E){var R=C.css;E="rotate("+E+"deg)";for(var sa={},J=0;J<V.length;J++)sa[V[J]+"transform"]=E;R.call(C,sa)}};Xa.CanvasUtil=new function(){this.createCanvas=function(){return document.createElement("canvas")};this.createContext2d=function(J,M,y){J.width=M;J.height=y;J.resetEnlargedByQing();return J.getContext("2d")};var V=/(\d*\.?\d*)(px|pt|em|rem)/g,C={fillRect:[null],clearRect:[null],strokeRect:[null],moveTo:[null],lineTo:[null],arc:[[0,1,2]],arcTo:[null],quadraticCurveTo:[null],bezierCurveTo:[null],
isPointinPath:[null],isPointinStroke:[null],rect:[null],translate:[null],createRadialGradient:[null],createLinearGradient:[null],drawImage:[{3:[1,2],5:[1,2,3,4],9:[5,6,7,8]}],fillText:[[1,2,3],!0],strokeText:[[1,2,3],!0],stroke:[null,!1,!0]},E=function(J,M,y,N,t){J[M]=function(P){return function(){var a=window.devicePixelRatio||1,x=1<a,m=x?Array.prototype.slice.call(arguments):arguments;if(x){var Q=null;y&&(Q=y instanceof Array?y:y[m.length]);for(var ea=0,ta=0;ta<m.length;ta++)Q&&ta!=Q[ea]||(ea++,
m[ta]*=a);Q=this.font;ea=this.lineWidth;N&&(this.font=sa(Q));t&&(this.lineWidth*=a)}a=P.apply(this,m);x&&(N&&(this.font=Q),t&&(this.lineWidth=ea));return a}}(J[M])},R=function(J){J.getContext=function(M){return function(y){var N=M.call(this,y);"2d"!=y||this.qingEnlarged||(this.qingEnlarged=!0,y=window.devicePixelRatio||1,1<y&&(this.width*=y,this.height*=y));return N}}(J.getContext);J.resetEnlargedByQing=function(){this.qingEnlarged=!1}};(function(){if("undefined"!=typeof CanvasRenderingContext2D&&
"undefined"!=typeof HTMLCanvasElement){for(var J in C){var M=C[J];E(CanvasRenderingContext2D.prototype,J,M[0],M[1]?!0:!1,M[2]?!0:!1)}R(HTMLCanvasElement.prototype)}})();var sa=function(J){return J.replace(V,function(M,y,N){return y*(window.devicePixelRatio||1)+N})}};Xa.TextMeasurer=function(){var V,C;this.setFontSize=function(R,sa){E().font="bold "+R+"px "+(sa?sa:"sans-serif")};this.measureWidth=function(R){R=E().measureText(R).width;return parseInt(R+1)};this.destroy=function(){};var E=function(){C||
(V=document.createElement("canvas"),V.width=1,V.height=1,C=V.getContext("2d"));return C}};Xa.Graphics=function(V){var C=[1,0,0,1,0,0],E=[1,0,0,1,0,0];this.getContext=function(){return V};this.getWidth=function(){var J=V.canvas.style&&V.canvas.style.width;return J?parseInt(J):V.canvas.width};this.getHeight=function(){var J=V.canvas.style&&V.canvas.style.height;return J?parseInt(J):V.canvas.height};this.stroke=function(){V.stroke()};this.beginPath=function(){V.beginPath()};this.closePath=function(){V.closePath()};
this.fill=function(){V.fill()};this.setTransformMatrix=function(J,M,y,N,t,P){t=Math.floor(t)==t?t+.5:t;P=Math.floor(P)==P?P+.5:P;C=[J,M,y,N,t,P];var a=J*N-M*y;E=[N/a,-M/a,-y/a,J/a,(y*P-N*t)/a,-(J*P-M*t)/a]};this.transformXY=function(J,M){return R(J,M)};this.retransformMouseXY=function(J,M){return[E[0]*J+E[2]*M+E[4],E[1]*J+E[3]*M+E[5]]};var R=function(J,M){return[C[0]*J+C[2]*M+C[4],C[1]*J+C[3]*M+C[5]]},sa=function(J){var M=-Math.asin(C[2]);M=0>C[0]?Math.PI-M:M;return J+M};this.fillText=function(J,
M,y,N){var t=!0;M=R(M,y);N&&(t=N(M));!1!==t&&V.fillText(J,M[0],M[1])};this.moveTo=function(J,M){J=R(J,M);V.moveTo(J[0],J[1])};this.lineTo=function(J,M){J=R(J,M);V.lineTo(J[0],J[1])};this.drawDashedLine=function(J,M,y,N,t){y-=J;N-=M;t=~~(Math.sqrt(y*y+N*N)/t);V.beginPath();for(var P=0;P<t;P++){var a=R(J+y*P/t,M+N*P/t);P&1?V.lineTo(a[0],a[1]):V.moveTo(a[0],a[1])}V.stroke()};this.arc=function(J,M,y,N,t,P){J=R(J,M);N=sa(N);t=sa(t);V.arc(J[0],J[1],y,N,t,P)};this.bezierCurveTo=function(J,M,y,N,t,P){J=R(J,
M);y=R(y,N);t=R(t,P);V.bezierCurveTo(J[0],J[1],y[0],y[1],t[0],t[1])};this.fillRect=function(J,M,y,N){J=R(J,M);y=R(y,N);N=Math.min(J[0],y[0]);M=Math.min(J[1],y[1]);V.fillRect(N,M,Math.max(J[0],y[0])-N,Math.max(J[1],y[1])-M)};this.strokeRect=function(J,M,y,N){J=R(J,M);y=R(y,N);N=Math.min(J[0],y[0]);M=Math.min(J[1],y[1]);V.strokeRect(N,M,Math.max(J[0],y[0])-N,Math.max(J[1],y[1])-M)};this.clearAll=function(){V.clearRect(0,0,V.canvas.width,V.canvas.height)}};Xa.EventListenerList=za;Xa.NumberFormater=Ma;
Xa.DateFormater=Sa;Xa.PercentageFaker=function(){var V=0;this.run=function(C){C?V=100:(C=100-V,V+=Math.sqrt(C)/100*C*(1+(4*Math.random()-2)/10));return Math.floor(V)}};Xa.RelativePeriodModel=Ua;Xa.CompositeCtrl=function(){var V=this,C,E=[];this.setEnabled=function(J){for(var M=0;M<E.length;M++)E[M].setEnabled(J)};this.getJqUi=function(){C||(C=$("<div>"),C.css({display:"flex","flex-flow":"row nowrap","align-items":"stretch"}));return C};this.addGap=function(J){R($("<div>"),J)};this.addStableChild=
function(J,M){E.push(J);R(J.getJqUi(),M)};this.addActiveChild=function(J){E.push(J);J=J.getJqUi();sa(J);J.css("flex","auto")};var R=function(J,M){sa(J);J.css("flex","none");M&&J.css("width",M)},sa=function(J){J.appendTo(V.getJqUi());J.css("position","relative")}};Xa.BlocksToTable=function(){function V(){var la,ka,ra,pa;this.setLeft=function(Da){la=Da};this.getLeft=function(){return la};this.setRight=function(Da){ka=Da};this.getRight=function(){return ka};this.setTop=function(Da){ra=Da};this.getTop=
function(){return ra};this.setBottom=function(Da){pa=Da};this.getBottom=function(){return pa}}function C(){var la,ka=[],ra=[];this.setValue=function(pa){la=pa};this.getValue=function(){return la};this.addAhead=function(pa){ka.push(pa)};this.getAllAheads=function(){return ka.slice(0)};this.addBehind=function(pa){ra.push(pa)};this.getAllBehinds=function(){return ra.slice(0)};this.toString=function(){return la+"->["+ka.join(",")+"]["+ra.join(",")+"]"}}function E(){var la,ka=!1,ra,pa,Da,Ba;this.setOriginal=
function(Oa){la=Oa};this.getOriginal=function(){return la};this.setFixed=function(Oa){ka=Oa};this.isFixed=function(){return ka};this.setGivenTargetWhenFixed=function(Oa){ra=Oa};this.getGivenTargetWhenFixed=function(){return ra};this.setAdjusted=function(Oa){pa=Oa};this.getAdjusted=function(){return pa};this.setCoordinate=function(Oa,Ta){Da=Oa;Ba=Ta};this.getCoordinateBefore=function(){return Da};this.getCoordinateAfter=function(){return Ba};this.toString=function(){return la+"|"+(ka?"Fixed":"Adjustable")+
"|"+Da+"("+pa+")"+Ba}}var R=!0,sa,J,M,y,N,t,P,a;this.setGapFixed=function(la){R=la};this.setDesigningSize=function(la,ka){sa=la;J=ka;M=[];y=[];N={}};this.appendBlock=function(la,ka,ra,pa,Da,Ba,Oa){var Ta=Math.max(0,Math.min(sa,ka));ka=Math.max(0,Math.min(sa,ka+pa));pa=Math.max(0,Math.min(J,ra));ra=Math.max(0,Math.min(J,ra+Da));Ta<ka&&pa<ra&&(x(M,la,Ta,ka),x(y,la,pa,ra),N[la]=[Ba?!0:!1,Oa?!0:!1])};this.transformTo=function(la,ka){if(!a){t=[];P=[];a={};x(M,null,0,sa);x(y,null,0,J);m(M,t,"setLeft","setRight");
m(y,P,"setTop","setBottom");for(var ra in a){var pa=a[ra],Da=N[ra],Ba=Da[1];if(Da[0])for(Da=pa.getLeft();Da<=pa.getRight();Da++){var Oa=t[Da];Oa.setFixed(!0)}if(Ba)for(Da=pa.getTop();Da<=pa.getBottom();Da++)Oa=P[Da],Oa.setFixed(!0)}ea(t,"getLeft","getRight");ea(P,"getTop","getBottom");N=y=M=null}Ha(t,sa,la);Ha(P,J,ka)};this.searchBlockRect=function(la){var ka=a[la];if(ka){var ra=t[ka.getLeft()].getCoordinateBefore(),pa=t[ka.getRight()].getCoordinateAfter();la=Math.min(ra,pa);ra=Math.max(ra,pa);pa=
P[ka.getTop()].getCoordinateBefore();ka=P[ka.getBottom()].getCoordinateAfter();var Da=Math.min(pa,ka);return[la,Da,ra-la,Math.max(pa,ka)-Da]}return null};var x=function(la,ka,ra,pa){for(var Da=pa,Ba=!1,Oa=la.length-1;0<=Oa;Oa--){var Ta=!1,Wa=la[Oa];Da==Wa.getValue()?Ta=!0:Da>Wa.getValue()&&(Wa=new C,Wa.setValue(Da),la.splice(Oa+1,0,Wa),Ta=!0);if(Ta){if(Ba){ka&&Wa.addAhead(ka);return}ka&&Wa.addBehind(ka);Ba=!0;Da=ra;Oa++}}Ba||(Wa=new C,Wa.setValue(pa),ka&&Wa.addBehind(ka),la.splice(0,0,Wa));Wa=new C;
Wa.setValue(ra);ka&&Wa.addAhead(ka);la.splice(0,0,Wa)},m=function(la,ka,ra,pa){for(var Da=1;Da<la.length;Da++){var Ba=la[Da-1],Oa=la[Da],Ta=new E;Ta.setOriginal(Oa.getValue()-Ba.getValue());ka.push(Ta);Ba=Ba.getAllAheads();Oa=Oa.getAllBehinds();var Wa=Da-1;Q(Wa,Ba,ra);Q(Wa,Oa,pa);R&&(Wa=Da==la.length-1,!(1!=Da&&0<Ba.length||!Wa&&0<Oa.length)&&40>=Ta.getOriginal()&&Ta.setFixed(!0))}},Q=function(la,ka,ra){for(var pa=0;pa<ka.length;pa++){var Da=ka[pa],Ba=a[Da];Ba||(Ba=new V,a[Da]=Ba);(0,Ba[ra])(la)}},
ea=function(la,ka,ra){for(var pa in a){var Da=a[pa],Ba=Da[ka](),Oa=Da[ra]();Da=la;for(var Ta=[],Wa=[];Ba<=Oa;Ba++){var ab=Da[Ba];if(ab.isFixed())Ta.push(Ba),0<Wa.length&&ta(ab,Wa);else for(Wa.push(Ba),ab=0;ab<Ta.length;ab++)ta(Da[Ta[ab]],Ba)}}for(ka=0;ka<la.length;ka++)if(ra=la[ka],ra.isFixed()&&!ra.getGivenTargetWhenFixed()){if(!bb){var bb=[];for(pa=0;pa<la.length;pa++)!la[pa].isFixed()&&bb.push(pa)}ta(ra,bb)}for(ka=0;ka<la.length;ka++)if(ra=la[ka],ra.isFixed()){bb=ra.getGivenTargetWhenFixed();ra=
0;for(var Aa in bb)pa=parseInt(Aa),pa=la[pa],ra+=pa.getOriginal();for(Aa in bb)pa=parseInt(Aa),pa=la[pa],pa=pa.getOriginal()/ra,bb[Aa]=pa}},ta=function(la,ka){var ra=la.getGivenTargetWhenFixed();ra||(ra={},la.setGivenTargetWhenFixed(ra));if("number"==typeof ka)ra[ka]=!0;else for(var pa=0;pa<ka.length;pa++)la=ka[pa],ra[la]=!0},Ha=function(la,ka,ra){for(var pa=!1,Da=0;Da<la.length;Da++){var Ba=la[Da],Oa=Ba.getOriginal()/ka*ra;Ba.setAdjusted(Oa);Ba.isFixed()&&(pa=!0)}if(pa)for(ka=0;ka<la.length;ka++)if(pa=
la[ka],pa.isFixed()){ra=pa.getAdjusted()-pa.getOriginal();pa.setAdjusted(pa.getOriginal());pa=pa.getGivenTargetWhenFixed();for(var Ta in pa)Da=parseInt(Ta),Da=la[Da],Ba=pa[Ta],Ba=Da.getAdjusted()+ra*Ba,Da.setAdjusted(Ba)}for(ka=Ta=0;ka<la.length;ka++)ra=la[ka],pa=parseInt(Ta+.5),Da=ra.getAdjusted(),Ta+=Da,Da=parseInt(Ta+.5),ra.setCoordinate(pa,Da)}};Ma.RoundingMode={};Ma.RoundingMode.DOWN="Down";Ma.RoundingMode.HALF_UP="HalfUp";Ma.RoundingMode.CEILING="Ceiling";Ma.RoundingMode.FLOOR="Floor";Ua.PERIOD_YEAR=
"Year";Ua.PERIOD_QUARTER="Quarter";Ua.PERIOD_MONTH="Month";Ua.PERIOD_WEEK="Week";Ua.PERIOD_DAY="Day";Ua.PERIOD_HOUR="Hour";Ua.PERIOD_MINUTE="Minute"})();(function(){function za(){var t,P,a,x,m,Q,ea;this.setLoadCssUrl=function(ta){m=ta};this.getLoadCssUrl=function(){return m};this.setImpl=function(ta){t=ta};this.getImpl=function(){return t};this.setDownloadUrl=function(ta){P=ta};this.getDownloadUrl=function(){return P};this.setUploadUrl=function(ta){a=ta};this.getUploadUrl=function(){return a};this.setLoadImgUrl=function(ta){x=ta};this.getLoadImgUrl=function(){return x};this.setLappPrivateUrl=function(ta){Q=ta};this.getLappPrivateUrl=function(){return Q};
this.setErrorPageUrl=function(ta){ea=ta};this.getErrorPageUrl=function(){return ea}}function Ga(){this.getClientID=function(){return za.getImpl().getClientID()};this.call=function(t,P,a,x,m){za.getImpl().call(t,P,a,x,m)};this.cancel=function(t){za.getImpl().cancel(t)};this.closePage=function(t,P){za.getImpl().closePage(t,P)};this.subscribeChannel=function(t,P){za.getImpl().subscribeChannel(t,P)};this.unsubscribeChannel=function(t,P){za.getImpl().unsubscribeChannel(t,P)};this.downloadFile=function(t,
P){var a=R.appendParamToUrl(za.getDownloadUrl(),"isExport","true");a=R.appendParamToUrl(a,"exportUuid",P);a=R.appendParamToUrl(a,"fileName",t);window.open(a,"_self")};this.previewFile=function(t,P,a){var x=R.appendParamToUrl(za.getDownloadUrl(),"isExport","false");x=R.appendParamToUrl(x,"exportUuid",a);x=R.appendParamToUrl(x,"fileName",P);V.openNewTab(t,x)};this.getLoadImgUrl=function(t,P){t=R.appendParamToUrl(za.getLoadImgUrl(),"fileName",t);return t=R.appendParamToUrl(t,"fileType",P)};this.getLoadImgUrlByFullPath=
function(t){return R.appendParamToUrl(za.getLoadImgUrl(),"fullPath",t)};this.getLoadCssUrl=function(t,P){t=R.appendParamToUrl(za.getLoadCssUrl(),"fileName",t);return R.appendParamToUrl(t,"fileType",P)};this.getLappPrivateUrl=function(t){return R.appendParamToUrl(za.getLappPrivateUrl(),"serviceType",t)};this.openErrorPage=function(t,P,a){t=R.appendParamToUrl(za.getErrorPageUrl(),"errorCode",t);P&&(t=R.appendParamToUrl(t,"errorMessage",P));if(a)for(var x in a)t=R.appendParamToUrl(t,x,a[x]);window.location.replace(t)}}
function Ma(t,P,a,x){var m,Q=!0,ea=!1,ta,Ha,la,ka,ra,pa,Da=0,Ba;this.setUserObject=function(Aa){Ba=Aa};this.getUserObject=function(){return Ba};this.tryAgain=function(){Da=0;ka()};this.setShowBlocking=function(Aa){Q=Aa};this.setBlockingPrompt=function(Aa){Ha=Aa};this.setBlockingJqUi=function(Aa,cb){ta=Aa};this.setModalLayerCosmeticHandler=function(Aa){la=Aa};this.setCancelable=function(Aa){ea=Aa};this.setProgressListener=function(Aa){pa=Aa};var Oa=function(){m&&m.remove();var Aa=null;ea&&Q&&(Aa=Wa);
m=Ma.block(ta,Ha,Aa);la&&(la(m),m.children().css("background-color","rgba(0,0,0,0.001)"))},Ta=function(){m&&m.remove();m=null},Wa=function(){ra&&ra()},ab=function(Aa){M&&M(Aa)||(ra=null,"number"==typeof Aa.errorCode?bb(Aa.errorCode,Aa.errorMessage,Aa.errorStackMessage,null):(P&&P(Aa.data),Ta(),x&&x()))},bb=function(Aa,cb,hb,ib){if(0==Aa){if(3>Da){Ta();Da++;ka();return}cb=E.get("promptForErrorCode0","\u7531\u4e8e\u7f51\u7edc\u95ee\u9898\uff0c\u4e0d\u80fd\u6b63\u5e38\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002")}var Qa=
!1;y&&(Qa=y(Aa,cb,hb,ib));!Qa&&a&&(Qa=a(Aa,cb,hb));Qa||(N?N(Aa,cb,hb):(cb=E.get("remoteCallException","\u8bbf\u95ee\u670d\u52a1\u5668\u8fc7\u7a0b\u51fa\u73b0\u9519\u8bef\uff1a")+cb,Aa&&(cb+="\r\n"+E.get("errorCode","\u9519\u8bef\u7801\uff1a")+Aa),Aa=cb,cb=com.kingdee.bos.qing.ui.component.MessageDialog,ib=new cb,ib.setOptionType(cb.OPTION_OK),ib.setMessage(Aa),hb&&ib.setDetail(hb),ib.showDialog()));Ta();x&&x()};this.protectedMethod={remote:function(Aa,cb){Da=0;var hb=R.createUUID(),ib=function(){var Qa=
ab,mb=bb;pa&&(t.progressing(hb,pa),Qa=function(X){t.abortProgressing(hb,pa);ab(X)},mb=function(X,v,da,Y){t.abortProgressing(hb,pa);bb(X,v,da,Y)});t.call(hb,Aa,cb,Qa,mb)};ea&&(ra=function(){t.abortProgressing(hb,pa);t.cancel(hb)});ka=function(){Q&&Oa();setTimeout(function(){ib()},1E3)};Q&&Oa();ib();return!Q&&ea?Wa:null},setShowBlocking:function(Aa){Q=Aa}}}function Sa(){var t;this.bindLoader=function(P){t=P};this.getIconUrl=function(P,a){return"url("+t.getIconUrl(P,a)+")"}}function Ua(){var t=12,P=
"sans-serif";this.setFontSize=function(a){t=a;$(document.body).css("font-size",a+"px")};this.getFontSize=function(){return t};this.setFontName=function(a){P=a;$(document.body).css("font-family",a)};this.getFontName=function(){return P}}function Xa(){var t=0,P=0,a,x,m,Q=1,ea=1;this.setFilePath=function(ta){a=ta};this.setStartPosition=function(ta,Ha){t=ta;P=Ha};this.setIconSize=function(ta,Ha){x=ta;m=Ha};this.setGap=function(ta,Ha){Q=ta;ea=void 0==Ha?ta:Ha};this.createDescription=function(ta,Ha){return[a,
t+(x+Q)*Ha,P+(m+ea)*ta]}}function V(){var t;this.registerImpl=function(P){t=P};this.openNewTab=function(P,a,x){if(t){for(;J.exit(););t.open(P,a,x)}else window.open(a)};this.openNewTabInAppId=function(P,a,x,m){if(t){for(;J.exit(););t.open(P,a,x,m)}else window.open(a)};this.closeCurrentTab=function(){t?t.closeTab():window.close()}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&
(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.framework&&(com.kingdee.bos.qing.framework={});"undefined"==typeof com.kingdee.bos.qing.framework.common&&(com.kingdee.bos.qing.framework.common={});var C=com.kingdee.bos.qing.framework.common;za=new za;Ga=new Ga;Ua=new Ua;Sa=new Sa;V=new V;C.RemoteFrameworkRegister=za;C.RemoteFramework=Ga;C.GlobalFont=Ua;C.Resource=Sa;C.TabbedUiUtil=V;C.MultilanguageManager=new function(){function t(m){var Q;this.get=function(ea,ta){if(!Q){var Ha=
x(m);Q=0>Ha?{}:a[Ha]}ea=Q[ea];return void 0===ea?ta:ea}}var P=[],a=[];this.registPackageResources=function(m,Q){var ea=x(m);0>ea&&(P.push(m),ea=P.length-1);a[ea]=Q};var x=function(m){for(var Q=0;Q<P.length;Q++)if(P[Q]===m)return Q;return-1};this.createPackageAccessor=function(m){return new t(m)}};C.WebPageInitializer=new function(){this.init=function(){var t=com.kingdee.bos.qing.SkinUtil,P=com.kingdee.bos.qing.CodeLoader,a=com.kingdee.bos.qing.ui.component.SkinUiContext;t.makeColorEffective();a.setModern(t.isModernStyle());
Sa.bindLoader(P);Ua.setFontSize(12);Ua.setFontName("Microsoft YaHei")}};C.WindowMessageHelper=new function(){var t,P;this.setEnvListener=function(x){t=x};this.setRemoteCallListener=function(x){P=x};var a=function(x){window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var m=!1;if(x.origin)if(x.origin==window.location.origin)m=!0;else if("https://www.yunzhijia.com"==x.origin||"http://q.kingdee.com"==
x.origin||"http://qtest.kingdee.com"==x.origin||"https://q.kingdee.com"==x.origin||"https://qtest.kingdee.com"==x.origin)m=!0;else{var Q=x.origin,ea=window.document.createElement("a");ea.href=Q;ea.hostname==window.location.hostname&&(m=!0)}if(m){m=null;if("string"===typeof x.data)try{m=JSON.parse(x.data)}catch(ta){return}else m=x.data;if(m.QingPostMessageType)P&&P(m,x);else if(t&&t(m),!m.stopPropagate&&(x=document.getElementsByTagName("iframe"),0<x.length))for(Q=0;Q<x.length;Q++){ea=x[Q];try{ea.contentWindow.postMessage(JSON.stringify(m),
"*")}catch(ta){}}}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent?window.attachEvent("onmessage",a):window.onmessage=a)};C.FontLibSupporter=new function(){var t,P;this.config=function(a,x){t=a;P=x};this.setupWebPage=function(a){if(t&&P){var x=2,m=function(ta,Ha){!ta&&window.console&&console.error("FontLib loading error: "+Ha);x--;0==x&&a()},Q=R.appendParamToUrl(t,"timestamp",(new Date).getTime()),ea=document.createElement("link");ea.rel=
"stylesheet";ea.href=Q;ea.onerror=function(){m(!1,t)};ea.onload=function(){m(!0,t)};document.head.appendChild(ea);Q=R.appendParamToUrl(P,"timestamp",(new Date).getTime());ea=document.createElement("script");ea.src=Q;ea.onerror=function(){m(!1,P)};ea.onload=function(){m(!0,P)};document.head.appendChild(ea)}else a()}};C.FontProvider=new function(){function t(a,x){this.getFontFamily=function(){return a};this.getDisplayName=function(){return x}}var P=[];this.register=function(a){for(var x=0;x<a.length;x++){var m=
a[x];P.push(new t(m[0],m[1]))}};this.copyItemList=function(){return P.slice(0)};this.getItemCount=function(){return P.length};this.getItem=function(a){return P[a]};this.createItem=function(a,x){return new t(a,x)}};C.WorkerHelper=new function(){function t(){var x={};self.addEventListener("message",function(m){var Q=m.data[0];if("NEW_INTERVAL"===Q){var ea=m.data[2];m=setInterval(function(){self.postMessage([ea])},m.data[1]);x[ea]=m}else"CLEAR_INTERVAL"===Q&&(ea=m.data[1],m=x[ea],delete x[ea],self.clearInterval(m))})}
var P,a={};this.setInterval=function(x,m){var Q=R.createUUID();x&&(a[Q]=x);P||(x=new Blob(["("+t.toString()+")()"],{type:"text/javascript"}),x=window.URL.createObjectURL(x),P=new Worker(x),P.addEventListener("message",function(ea){(ea=a[ea.data[0]])&&ea()}));P.postMessage(["NEW_INTERVAL",m,Q]);return Q};this.clearInterval=function(x){P&&(P.postMessage(["CLEAR_INTERVAL",x]),delete a[x])}};C.AbstractRemoteCall=function(){var t=this;this.call=function(P,a,x,m,Q){x.remoteMethod=a;a=t.getRemoteUrl(x);
return Ga.call(P,a,x,m,Q)};this.cancel=function(P){return Ga.cancel(P)};this.getRemoteUrl=function(P){throw Error("Override me.");};this.progressing=function(P,a){Ga.subscribeChannel("Progress_"+P,a)};this.abortProgressing=function(P,a){Ga.unsubscribeChannel("Progress_"+P,a)}};C.AbstractFacade=Ma;C.AbstractIcons=function(){var t=this,P,a;this.background=function(m,Q){if(null===Q)m.css("background-image","none");else{!P&&x();var ea=P[Q];if(ea){Q=-ea[1];var ta=-ea[2];ea=Sa.getIconUrl(ea[0]);m.css({"background-image":ea,
"background-position":Q+"px "+ta+"px","background-repeat":"no-repeat"})}else m.css("background-image",t.getInsteadOfNotFound()),m.css("background-repeat","no-repeat"),m.css("background-position","center")}};this.backgroundWithHover=function(m,Q,ea){t.background(m,Q);ea=ea?ea:m;ea.on("mouseenter",function(ta){t.background(m,Q+"_hover")});ea.on("mouseleave",function(ta){t.background(m,Q)})};this.regist=function(m,Q){!P&&x();if(P[m])throw Error("Duplicate definition.");P[m]=Q};this.getInsteadOfNotFound=
function(){return"url(data:image/gif;base64,R0lGODlhDAAMAIABALCwsP///yH5BAEAAAEALAAAAAAMAAwAAAIajI8Jy5oBTnRzSlORzVh36IDW9XkaszyqUQAAOw==)"};var x=function(){P={};a=new Xa;t.protectedInit(P,a)};this.protectedInit=function(m,Q){};this.protectedMethod={registIcon:function(m,Q,ea){m=a.createDescription(m,Q);P[ea]=m}}};C.IconsFile=Xa;C.WindowResizeObserver=function(){var t,P,a=100,x,m;this.setCallback=function(ea){P=ea};this.setCallbackImmediately=function(ea){t=ea};this.setDelay=function(ea){a=ea};this.observe=
function(){"function"==typeof window.ResizeObserver&&(m=new ResizeObserver(function(ea,ta){$(document.body).is(":visible")&&Q()}),m.observe(document.body));$(window).on("resize",Q)};var Q=function(){t&&t();clearTimeout(x);x=setTimeout(P,a)};this.unobserve=function(){m&&m.unobserve(document.body);$(window).off("resize",Q)}};C.FileUploader=function(){var t,P,a,x,m,Q=!0,ea,ta,Ha,la;this.setCancelListener=function(Ba){Ha=Ba};this.setText=function(Ba){ta=Ba};this.setShowBlocking=function(Ba){Q=Ba};this.setBlockingJqUi=
function(Ba){ea=Ba};this.setRequestPreparer=function(Ba){t=Ba};this.setProgressHandler=function(Ba){P=Ba};this.setSuccessHandler=function(Ba){a=Ba};this.setFinishedHandler=function(Ba){x=Ba};this.uploadTo=function(Ba){Q&&(la=Ma.block(ea,ta,Ha));var Oa=new FormData;t(Oa);m=new XMLHttpRequest;m.upload.onprogress=ka;m.onload=ra;m.onerror=pa;m.onreadystatechange=Da;m.open("POST",Ba);m.send(Oa)};this.abort=function(){m.abort()};var ka=function(Ba){P&&(Ba=parseInt(Ba.loaded/Ba.total*100),P(Ba))},ra=function(Ba){x(!1);
la&&la.remove()},pa=function(Ba){x(!0);la&&la.remove()},Da=function(Ba){4==m.readyState&&(200==m.status?(Ba=JSON.parse(m.responseText),"number"==typeof Ba.errorCode?x(!0,Ba.errorCode,Ba.errorMessage):a(Ba)):window.console&&console.error(m.status),la&&la.remove())}};var E=C.MultilanguageManager.createPackageAccessor(C),R,sa,J;(function(){var t=com.kingdee.bos.qing.common;t.MLS.hookAccessor(C.MultilanguageManager.createPackageAccessor(t));R=t.Util;sa=t.DomUtil;J=t.FullScreenHelper})();var M;Ma.setCustomSuccessIntercepter=
function(t){M=t};var y;Ma.setCustomPreprocessingErrorHandler=function(t){y=t};var N;Ma.setCustomErrorHandler=function(t){N=t};Ma.block=function(t,P,a){var x=$("<div>");x.addClass("sa-common-loading-modallayer");sa.layoutCtrl(x,0,0,"100%","100%");var m=$("<div>");m.addClass("sa-common-loading-panel");m.css({"margin-left":"-100px","margin-top":"-40px"});m.appendTo(x);sa.layoutCtrl(m,"50%","50%",200,80);var Q=$("<div>");Q.addClass("sa-common-loading-icon");Q.css("background-image",Sa.getIconUrl("common",
"loading.gif"));Q.css({"margin-left":"-20px","margin-top":"-30px"});Q.appendTo(m);sa.layoutCtrl(Q,"50%","50%",40,40);Q=$("<div>");Q.text("string"==typeof P?P:E.get("loading","\u52a0\u8f7d\u4e2d"));Q.addClass("sa-common-loading-text");Q.css({"margin-left":"-100px","margin-top":"15px",color:"#999"});Q.appendTo(m);sa.layoutCtrl(Q,"50%","50%",200,20);if(a){var ea=$("<span>");ea.text("  "+E.get("loadingToCancel","\u70b9\u51fb\u8fd9\u91cc\u53d6\u6d88"));ea.css({display:"none","white-space":"pre-wrap",cursor:"pointer",
color:"#88c"});ea.appendTo(Q);ea.on("click",a);setTimeout(function(){ea.css("display","")},3E3)}x.appendTo(t?t:$(document.body));return x};V.QING_ANALYSIS="qing";V.QING_RPT="qing_rpt";V.QING_MODELER="qing_modeler";C.OfficialArticleUtil=new function(){var t,P=function(){if(!t){var a=R.decodeParamFromUrl(location.search,"path");t=(a?a:"")+"/qing/officialArticleEntrance.do?";(a=R.decodeParamFromUrl(location.search,"QINGSESSIONID"))&&(t=t+"QINGSESSIONID="+a+"&");(a=R.decodeParamFromUrl(location.search,
"appID"))&&(t=t+"appID="+a+"&");t+="docIdType="}return t};this.getColumnToRowUrl=function(){return P()+"COLUMN_TO_ROW"};this.getSupportQingAnalysisUrl=function(){return P()+"SUPPORT_QING_ANALYSIS"};this.getSupportQingAnalysisDocSysUrl=function(){return P()+"SUPPORT_QING_ANALYSIS&docType=PURE_DOCUMENT"};this.getRESTfulAuthUrl=function(){return P()+"RESTFUL_HTTP_AUTH"};this.getMobileLightAppUrl=function(){return P()+"MOBILE_LIGHT_APP"};this.getMobileTimedPushUrl=function(){return P()+"MOBILE_TIMED_PUSH"};
this.getQingRptSuperQueryUrl=function(){return P()+"QING_RPT_SUPER_QUERY"};this.getQingRptSqlDataSetUrl=function(){return P()+"QING_RPT_SQL_DATASET"}}})();(function(){function za(){var h=this,c,b=!0;this.setUserObject=function(g){c=g};this.getUserObject=function(){return c};this.setEnabled=function(g){b=g;h.protectedUpdateEnabledState()};this.isEnabled=function(){return b};this.setTooltips=function(g){h.getJqUi().attr("title",g)};this.getJqUi=function(){throw Error("Override me.");};this.protectedUpdateEnabledState=function(){};var d=function(g,k){e(g,k,"sa-ctrl-common-singlelineborder","sa-ctrl-common-singlelineborder_disabled")},e=function(g,k,p,
w){k?(g.addClass(p),g.removeClass(w)):(g.removeClass(p),g.addClass(w))};this.protectedMethod={createBorder:function(g){var k=$("<div>");k.css("pointer-events","none");k.addClass("sa-ctrl-common-border");v.layoutCtrlWithLRTB(k,0,0,null,0,0,null);k.appendTo(g);return k},setUiBorderVisible:function(g,k){k?d(g,b):(g.removeClass("sa-ctrl-common-singlelineborder"),g.removeClass("sa-ctrl-common-singlelineborder_disabled"))},setUiBorderEnabled:d,setUiForegroundEnabled:function(g,k){e(g,k,"sa-ctrl-common-foreground_enabled",
"sa-ctrl-common-foreground_disabled")},setUiBackgroundEnabled:function(g,k){e(g,k,"sa-ctrl-common-background_enabled","sa-ctrl-common-background_disabled")}}}function Ga(){var h=this,c=!0;this.showFeature=function(b){c=b;h.protectedUpdateFeatureDisplay()};this.isShowFeature=function(){return c};this.protectedUpdateFeatureDisplay=function(){throw Error("Implement");}}function Ma(){var h=this,c,b,d=!0,e,g=!1,k=!1,p,w,B;this.setText=function(l){c=l};this.getText=function(){return c};this.setIconName=
function(l){b=l};this.getIconName=function(){return b};this.setEnabled=function(l){d!=l&&(d=l,B&&B(h))};this.isEnabled=function(){return d};this.setUserObject=function(l){e=l};this.getUserObject=function(){return e};this.setCheckable=function(l){g=l};this.isCheckable=function(){return g};this.setGroupName=function(l){p=l};this.getGroupName=function(){return p};this.setChecked=function(l){k!=l&&(k=l,w&&w(h))};this.isChecked=function(){return k};this.isRadio=function(){return g&&p};this.isCheckbox=
function(){return g&&!p};this.setCheckedChangedListener=function(l){w=l};this.setEnabledChangedListener=function(l){B=l}}function Sa(){Ma.call(this);var h=this,c=[],b,d;this.addItemModel=function(w){if(!(w instanceof Ua||w instanceof Sa))throw Error("Wrong class");c.push(w);w.isCheckable()&&(w.isRadio()?g(w):w.isCheckbox()&&k(w),w.setCheckedChangedListener(e));w.setEnabledChangedListener(p)};this.addSeperator=function(){c.push("-")};this.isSeperator=function(w){return"-"==w};this.getItemCount=function(){return c.length};
this.getItemModel=function(w){return c[w]};this.setItemCheckedChangedListener=function(w){b=w};this.setItemEnabledChangedListener=function(w){d=w};var e=function(w){g(w);k(w);b&&b(w)},g=function(w){if(w.isRadio()&&w.isChecked()){for(var B=0;B<c.length;B++){var l=c[B];if(!h.isSeperator(l)&&l!=w&&l.isRadio()&&l.getGroupName()==w.getGroupName()&&(l.setChecked(!1),l instanceof Sa))for(var n=l.getItemCount()-1;0<=n;n--){var r=l.getItemModel(n);!h.isSeperator(r)&&r.isRadio()&&r.getGroupName()==w.getGroupName()&&
r.setChecked(!1)}}h.isRadio()&&h.getGroupName()==w.getGroupName()&&h.setChecked(!0)}},k=function(w){if(h.isCheckbox()&&w.isCheckbox()){w=!1;for(var B=0;B<c.length;B++){var l=c[B];if(!h.isSeperator(l)&&l.isCheckbox()&&l.isChecked()){w=!0;break}}h.setChecked(w)}},p=function(w){d&&d(w)}}function Ua(h){Ma.call(this);var c=this;this.fireListener=function(){h(c)}}function Xa(){var h=this,c,b,d,e,g,k,p;this.setIconSetter=function(f){k=f};this.setModel=function(f){c=f;c.setItemCheckedChangedListener(Z);c.setItemEnabledChangedListener(ua);
b&&l()};this.getModel=function(){return c};this.setHideListener=function(f){e=f};this.setWidth=function(f){d=f};this.show=function(f,u,O,G,S,fa){g=S;b||B();G&&b.data("whoCallMe",G[0]);b.appendTo(f);for(G=f;"hidden"!=G.css("overflow")&&G[0]!=document.body;)G=G.parent();var K=null===u;K||(S=[u,0],S=v.upwardCoordinate(f[0],S,G[0]),u=0>S[0]?u-S[0]+2:u);u=K?f.outerWidth()-6:u;O=K?-1:O;var D=b.width()+2,F=b.height()+2;S=[u+D,O+F];S=v.upwardCoordinate(f[0],S,G[0]);var ja=S[0]-G.innerWidth(),qa=S[1]-G.innerHeight();
if(0<ja){var ma=K?-D+4:u-ja-2;S=[ma,0];S=v.upwardCoordinate(f[0],S,G[0]);u=0<S[0]?ma:Math.abs(S[0])<.4*D?ma-S[0]:u-ja}0<qa&&(K?O=O-qa-2:(fa=O+(fa?fa[1]:0)-F,S=[0,fa],S=v.upwardCoordinate(f[0],S,G[0]),0<=S[1]&&(O=fa)));b.css("left",u);b.css("top",O);$(document.body).on("mousedown",w)};this.hide=function(){$(document.body).off("mousedown",w);g?(b.remove(),b=null):(b.find(".sa-ctrl-menu-item-text_hover").removeClass("sa-ctrl-menu-item-text_hover"),b.detach());e&&e()};this.isShowing=function(){return b&&
0<b.parent().length};this.getJqUi=function(){!b&&B();return b};this.setItemHoverListener=function(f){p=f};var w=function(f){f=f.target;if(f!=b.data("whoCallMe")){for(;f&&f!=document.body;){if(f==b[0])return;f=$(f).parent()[0]}h.hide()}},B=function(){b=$("<div>");b.addClass("sa-ctrl-menu");d&&b.css("min-width",d);l()},l=function(){for(var f=0;f<c.getItemCount();f++){var u=c.getItemModel(f),O=$("<div>");O.data("model",u);var G=$("<div>");G.addClass("sa-ctrl-menu-item-vline");G.appendTo(O);if(c.isSeperator(u))u=
O,u.addClass("sa-ctrl-menu-seperator"),u.css("cursor","default"),G=$("<div>"),G.addClass("sa-ctrl-menu-item-hline"),G.appendTo(u);else{G=O;var S=u;G.addClass("sa-ctrl-menu-item");var fa=$("<div>");fa.text(S.getText());fa.addClass("sa-ctrl-menu-item-text");fa.appendTo(G);W(G,S);u.isRadio()?(G=O,S=u,fa=$("<div>"),fa.addClass("sa-ctrl-menu-item-radio"),fa.appendTo(G),T(G,S)):u.isCheckbox()?(G=O,S=u,fa=$("<div>"),fa.addClass("sa-ctrl-menu-item-checkbox"),fa.appendTo(G),z(G,S)):u.getIconName()&&(G=O,S=
u,fa=$("<div>"),k(fa,S.getIconName()),fa.addClass("sa-ctrl-menu-item-icon"),fa.appendTo(G),H(G,S));O.on("mouseenter",n);O.on("mouseleave",r);if(u instanceof Sa)G=O,S=$("<div>"),S.text("\u25b2"),S.addClass("sa-ctrl-menu-item-more"),S.appendTo(G);else O.on("click",aa(u));O.on("mouseenter",A(u));O.on("mouseleave",L(u))}O.appendTo(b)}},n=function(f){f=$(f.currentTarget);var u=f.data("model");u.isEnabled()&&f.find(".sa-ctrl-menu-item-text").addClass("sa-ctrl-menu-item-text_hover");p&&p(!0,u,f)},r=function(f){f=
$(f.currentTarget);var u=f.data("model");u.isEnabled()&&f.find(".sa-ctrl-menu-item-text").removeClass("sa-ctrl-menu-item-text_hover");p&&p(!1,u,f)},z=function(f,u){f=f.children(".sa-ctrl-menu-item-checkbox");u="menu-checkbox"+(u.isChecked()?"-checked":"-unchecked");I.background(f,u)},T=function(f,u){f=f.children(".sa-ctrl-menu-item-radio");u="menu-radio"+(u.isChecked()?"-checked":"-unchecked");I.background(f,u)},aa=function(f){return function(u){$(u.currentTarget);f instanceof Sa||!f.isEnabled()||
((f.isCheckbox()||f.isRadio()&&!f.isChecked())&&f.setChecked(!f.isChecked()),h.hide(),f.fireListener())}},A=function(f){return function(u){u=$(u.currentTarget);u.css("cursor",f.isEnabled()?"":"default");if(f instanceof Sa&&f.isEnabled()){var O=u.data("menu");O||(O=new Xa,O.setWidth(d),O.setModel(f),O.setHideListener(ha),O.setItemHoverListener(p),u.data("menu",O));O.show(u,null,null,u,!1)}}},L=function(f){return function(u){u=$(u.currentTarget);f instanceof Sa&&(u=u.data("menu"))&&(u.setHideListener(null),
u.hide(),u.setHideListener(ha))}},ha=function(){h.hide()},Z=function(f){for(var u=b.children(".sa-ctrl-menu-item"),O=0;O<u.length;O++){var G=u.eq(O);if(G.data("model")==f){f.isRadio()?T(G,f):z(G,f);break}}},ua=function(f){if(b)for(var u=b.children(".sa-ctrl-menu-item"),O=0;O<u.length;O++){var G=u.eq(O);if(G.data("model")==f){W(G,f);H(G,f);break}}},W=function(f,u){u.isEnabled()?f.removeClass("sa-ctrl-menu-item_disabled"):f.addClass("sa-ctrl-menu-item_disabled")},H=function(f,u){f=f.find(".sa-ctrl-menu-item-icon");
u.isEnabled()?f.empty():(u=$("<div>"),u.addClass("sa-ctrl-menu-item-icon-mask"),f.append(u))}}function V(h){var c=this,b,d=$("<div>"),e,g=$("<div>"),k,p=!1,w,B=[],l=[],n=[],r=!1,z=320,T=240,aa=function(){if(!b){b=$("<div>");b.addClass("sa-ctrl-dialog");b.appendTo(h);d.addClass("sa-ctrl-dialog-title sa-ctrl-dialog-titlebar");d.appendTo(b);var f=$("<div>");f.text("\u00d7");f.addClass("sa-ctrl-dialog-close");f.appendTo(b);f.on("click",function(u){W(!1,function(O){O&&(c.hide(),H())})});e=$("<div>");e.addClass("sa-ctrl-dialog-toolbar");
e.appendTo(b);g.addClass("sa-ctrl-dialog-contentpane");g.appendTo(b);v.makeSelectable(d,!1);v.makeSelectable(f,!1);A(!1);Z()}},A=function(f){f?(b.removeClass("sa-ctrl-common-unselectable"),b.off("selectstart",L)):(b.addClass("sa-ctrl-common-unselectable"),b.on("selectstart",L))},L=function(){return!1};this.setSelectable=function(f){aa();A(f)};this.addResizeListener=function(f){B.push(f)};this.addClosingListener=function(f,u){l.push([f,u?!0:!1])};this.addClosedListener=function(f){n.push(f)};this.setBounds=
function(f,u,O,G){aa();b.css("left",f);b.css("top",u);b.css("width",O);b.css("height",G)};this.setMinSize=function(f,u){z=f;T=u};this.setToolbarVisible=function(f){aa();e.css("display",f?"block":"none");g.css("top",parseInt(e.css("top"))+(f?e.outerHeight():0)+"px")};this.show=function(){aa();b.css("display","block")};this.hide=function(){b&&b.css("display","none")};this.destroy=function(){b&&b.remove()};this.isVisible=function(){return b&&"none"!=b.css("display")};this.setTitle=function(f){d.text(f)};
this.setContent=function(f,u){u?(f.addClass("sa-ctrl-dialog-padding_scrollable"),u=$("<div>"),v.layoutCtrlWithLRTB(u,0,0,null,1,0,null),u.css("overflow-x","hidden"),u.css("overflow-y","auto"),u.append(f),g.append(u)):(f.addClass("sa-ctrl-dialog-padding"),g.append(f))};this.getMessageCurtain=function(f){f||w||(w=new sa,w.getJqUi().appendTo(g));return w};this.setResizeEnabled=function(){aa();var f=!1,u=!1,O=!1,G;b.on("mousemove",function(K){if(!O){var D=b.outerWidth(),F=b.outerHeight();D=[D,F];D=v.upwardCoordinate(b[0],
D,document.body);f=K.pageX>D[0]-5;u=K.pageY>D[1]-5;b.css("cursor",f&&u?"se-resize":f?"e-resize":u?"s-resize":"default")}});b.on("mousedown",function(K){O=!0;if(f||u)h.on("mousemove",S),h.on("mouseleave",fa),h.on("mouseup",fa),G=h.css("cursor"),h.css("cursor",b.css("cursor"))});b.on("mouseup",function(K){u=f=O=!1});var S=function(K){var D=v.getCurrentTargetPosition(K);D=v.upwardCoordinate(K.target,D,h[0]);K=D[0]-b.prop("offsetLeft");D=D[1]-b.prop("offsetTop");var F=!1;f&&K>=z&&(b.css("width",K+"px"),
F=!0);u&&D>=T&&(b.css("height",D+"px"),F=!0);F&&ua()},fa=function(K){u=f=O=!1;h.off("mousemove",S);h.off("mouseleave",fa);h.off("mouseup",fa);h.css("cursor",G)}};this.setFullScreenEnabled=function(f){!f&&(f=V.FULLSCREEN_ONLY_WIDTH|V.FULLSCREEN_ONLY_HEIGHT);aa();var u=$("<div>");u.addClass("sa-ctrl-dialog-fullscreen");u.appendTo(b);var O=$("<div>");O.addClass("sa-ctrl-dialog-fullscreen-inner sa-ctrl-dialog-fullscreen-inner_able");O.appendTo(u);u.on("click",function(G){(r=!r)?(O.addClass("sa-ctrl-dialog-fullscreen-inner_ed"),
O.removeClass("sa-ctrl-dialog-fullscreen-inner_able")):(O.addClass("sa-ctrl-dialog-fullscreen-inner_able"),O.removeClass("sa-ctrl-dialog-fullscreen-inner_ed"));if(r){var S=(f&V.FULLSCREEN_ONLY_WIDTH)==V.FULLSCREEN_ONLY_WIDTH,fa=(f&V.FULLSCREEN_ONLY_HEIGHT)==V.FULLSCREEN_ONLY_HEIGHT,K=[b.css("left"),b.css("top"),b.css("width"),b.css("height")];b.data("myOriBounds",K);var D=xa.getFullScreenPadding();G=S?D[0]:K[0];var F=fa?D[1]:K[1];S=S?h.innerWidth()-G-D[2]:K[2];fa=fa?h.innerHeight()-F-D[3]:K[3];c.setBounds(G,
F,S,fa)}else K=b.data("myOriBounds"),b.removeData("myOriBounds"),c.setBounds(K[0],K[1],K[2],K[3]);ua()})};this.createToolbarButton=function(f,u,O){aa();0<e.children().length&&O&&(O=$("<div>"),O.addClass("sa-ctrl-dialog-toolbar-seperator"),O.appendTo(e));O=$("<div>");O.text(f);O.addClass("sa-ctrl-dialog-toolbar-button");O.appendTo(e);O.on("click",u);return O};this.showFooterPane=function(f){aa();k=$("<div>");k.addClass("sa-ctrl-dialog-footer");k.addClass("sa-ctrl-common-unselectable");k.appendTo(b);
g.css("bottom",parseInt(k.css("bottom"))+k.outerHeight()+"px");if(f)f(k);else if(f=k,p){var u=ha(!1);u.setText(ba.get("closing","\u5173\u95ed"));u.setHighlight(!0);u.getJqUi().addClass("sa-ctrl-dialog-footer-okcancel-center");u.getJqUi().appendTo(f)}else u=ha(!0),u.setText(ba.get("ok","\u786e\u5b9a")),u.setHighlight(!0),u.getJqUi().addClass("sa-ctrl-dialog-footer-okcancel-"+(oa.isModern()?"right":"left")),u.getJqUi().appendTo(f),u=ha(!1),u.setText(ba.get("cancle","\u53d6\u6d88")),u.setHighlight(!1),
u.getJqUi().addClass("sa-ctrl-dialog-footer-okcancel-"+(oa.isModern()?"left":"right")),u.getJqUi().appendTo(f)};this.setFooterClosingOnly=function(f){p=f};var ha=function(f){var u=new m;u.addActionListener(function(O){O.setEnabled(!1);W(f,function(G){G?(c.hide(),H()):O.setEnabled(!0)})});return u},Z=function(){var f,u,O,G,S=h.css("cursor"),fa=d.css("cursor"),K,D=!1,F=0,ja=function(ma){F=2>F?++F:0;if(!(0<F)){var q=v.getCurrentTargetPosition(ma);q=v.upwardCoordinate(ma.target,q,h[0]);ma=q[0]-K[0];q=
q[1]-K[1];ma=ma+O>f?f-O:ma;q=q+G>u?u-G:q;q=0>q?0:q;b.css("left",(0>ma?0:ma)+"px");b.css("top",q+"px")}},qa=function(ma){d.css("cursor",fa);h.css("cursor",S);h.off("mousemove",ja);h.off("mouseleave",qa);h.off("mouseup",qa)};d.on("mousedown",function(ma){D=!0;K=v.getCurrentTargetPosition(ma);K=v.upwardCoordinate(ma.target,K,b[0])});d.on("mouseup",function(ma){D=!1;K=null});d.on("mousemove",function(ma){D&&(D=!1,f=h.width(),u=h.height(),O=b.outerWidth(),G=b.outerHeight(),h.on("mousemove",ja),h.on("mouseleave",
qa),h.on("mouseup",qa),h.css("cursor","move"),d.css("cursor","move"))})},ua=function(){for(var f=0;f<B.length;f++)(0,B[f])(b.outerWidth(),b.outerHeight())},W=function(f,u){for(var O=!0,G=l.length,S=0;S<l.length;S++){var fa=l[S][0];l[S][1]?fa(c,f,function(K){O=O&&K;G--;0==G&&u(O)}):(O=O&&fa(c,f),G--)}0==G&&u(O)},H=function(){for(var f=0;f<n.length;f++)(0,n[f])(c)}}function C(){var h=$("<div class='sa-ctrl-common-modallayer'>"),c=new V(h),b=0,d=0,e=320,g=240,k=-1,p=-1,w=-1,B=-1,l=!1,n=!1,r,z,T=function(){return!0},
aa,A,L=!1;this.setPosition=function(W,H){b=W;d=H};this.setSize=function(W,H){e=W;g=H};var ha=function(W){var H=W.prop("clientWidth");W=W.prop("clientHeight");var f=e,u=g;if(l){f=0>k?e:k;u=0>p?g:p;var O=0>w?e:w,G=0>B?g:B;H<W?(f=Math.max(f,Math.min(O,parseInt(.9*H))),u=Math.max(u,Math.min(G,parseInt(f*g/e)))):(u=Math.max(u,Math.min(G,parseInt(.9*W))),f=Math.max(f,Math.min(O,parseInt(u*e/g))))}b||(b=Math.max(0,H-f>>1),d=Math.max(0,W-u>>1));return[b,d,f,u]};this.showDialog=function(){var W=r(),H=$(document.body);
h.appendTo(H);H=ha(H);c.setBounds(H[0],H[1],H[2],H[3]);c.setToolbarVisible(!1);c.setContent(W,n);null!==z&&c.showFooterPane(z);c.addClosingListener(function(f,u,O){if(O)(f=u?T:aa)?f(function(G){G&&A(u);O(G)}):O(!0);else return(f=u?T?T():!0:aa?aa():!0)&&A(u),f},L);c.addClosedListener(function(f){Z()});c.show()};var Z=function(){c.destroy();h.remove()},ua=function(W,H){T=W;L=H?!0:!1};this.protectedMethod={setMinSize:function(W,H){l=!0;k=W;p=H},setMaxSize:function(W,H){l=!0;w=W;B=H},getMessageCurtain:function(W){return c.getMessageCurtain(W)},
setTitle:function(W){c.setTitle(W)},setScrollable:function(W){n=W},setSelectable:function(W){c.setSelectable(W)},getDialogCtrl:function(){return c},setContentPaneCreator:function(W){r=W},setFooterPaneCreator:function(W){z=W},setFooterClosingOnly:function(W){c.setFooterClosingOnly(W)},setClosingChecker:ua,setClosingChecker2:function(W,H,f){aa=H;ua(W,f)},setClosingAction:function(W){A=W},layoutCtrl:function(W,H,f,u,O,G){v.layoutCtrl(H,f,u,O,G);H.appendTo(W)},destroy:Z}}function E(){var h=this,c=$("<div class='sa-ctrl-common-modallayer'>"),
b=new V(c),d=0,e=0,g=320,k=200,p=null,w,B,l=0,n={},r=function(f){return!0},z,T,aa;n[E.RETURN_OK]=ba.get("ok","\u786e\u5b9a");n[E.RETURN_CANCEL]=ba.get("cancle","\u53d6\u6d88");n[E.RETURN_YES]=ba.get("yes","\u662f");n[E.RETURN_NO]=ba.get("no","\u5426");this.setOptionType=function(f){l=f;""!==p&&(p=l==E.OPTION_OK?ba.get("msgTips","\u6d88\u606f\u63d0\u793a"):ba.get("confirmTips","\u64cd\u4f5c\u786e\u8ba4"))};this.setButtonText=function(f,u){n[f]=u};this.setCustomPainter=function(f){T=f;H()};var A=function(f,
u){var O=$("<div class='sa-ctrl-msgdlg-text'>");O.css("bottom",B?20:0);O.text(u);f.append(O)};this.setTitle=function(f){b.setTitle(f);p=""};this.setMessage=function(f){aa=f;H()};this.setDetail=function(f){B=$('<textarea readonly="true" ></textarea>');B.text(f);B.addClass("sa-ctrl-msgdlg-detail");B.on("click",function(){B.select()})};this.setClosingChecker=function(f){r=f};this.setClosedAction=function(f){z=f};this.setBounds=function(f,u,O,G){d=f;e=u;g=O;k=G};this.showDialog=function(f,u){Ea.callUntilVisible(function(){L(f,
u)})};var L=function(f,u){g=f?f:g;k=u?u:k;f=$(document.body);u=f.innerWidth();var O=f.innerHeight();g>u&&(g=u-2,d=0);k>O&&(k=O-2,d=0);c.appendTo(f);d||(d=u-g>>1,e=O-k>>1);p&&b.setTitle(p);b.setBounds(d,e,g,k);b.setToolbarVisible(!1);b.setContent(ha());b.showFooterPane(Z);b.addClosedListener(W);b.addClosingListener(function(G,S){return r(E.RETURN_CANCEL)?!0:!1});h.protectedCustomize(c);b.show()};this.protectedCustomize=function(f){};var ha=function(){w=$("<div>");if(B){var f=$("<div>");f.text(ba.get("detail",
"\u8be6\u7ec6..."));f.addClass("sa-ctrl-msgdlg-more");f.css("bottom",0);f.on("click",function(u){f.css("display","none");B.css("bottom",0);B.css("height",100);B.css("left",0);B.css("width",w.innerWidth());B.appendTo(w);k+=100;b.setBounds(d,e,g,k)});w.append(f)}H();return w},Z=function(f){var u=[];(l&E.RETURN_OK)==E.RETURN_OK&&u.push(ua(E.RETURN_OK));(l&E.RETURN_YES)==E.RETURN_YES&&u.push(ua(E.RETURN_YES));(l&E.RETURN_NO)==E.RETURN_NO&&u.push(ua(E.RETURN_NO));(l&E.RETURN_CANCEL)==E.RETURN_CANCEL&&
u.push(ua(E.RETURN_CANCEL));if(l==E.OPTION_OK_CANCEL||l==E.OPTION_YES_NO){var O=u[0];u=u[1];O.setHighlight(!0);u.setHighlight(!1);O.getJqUi().addClass("sa-ctrl-dialog-footer-okcancel-"+(oa.isModern()?"right":"left"));u.getJqUi().addClass("sa-ctrl-dialog-footer-okcancel-"+(oa.isModern()?"left":"right"));f.append(O.getJqUi());f.append(u.getJqUi())}else{O=f.innerWidth()-(120*u.length-20)>>1;for(var G=0;G<u.length;G++){var S=u[G];S.setHighlight(0==G);v.layoutCtrlWithLRTB(S.getJqUi(),O,null,100,null,16,
28);f.append(S.getJqUi());O+=120}}},ua=function(f){var u=n[f],O=new m;O.setText(u);O.addActionListener(function(G){G.setEnabled(!1);r(f)?(b.hide(),W(b)):G.setEnabled(!0)});return O},W=function(f){z&&z();f.destroy();c.remove()},H=function(){w&&(T?T:A)(w,aa)}}function R(){var h=0,c=0,b=380,d=280,e=E.MSG_CONFIRM,g=E.OPTION_OK_CANCEL,k=new function(){E.call(this);this.protectedCustomize=function(r){r.find(".sa-ctrl-dialog-title").removeClass("sa-ctrl-dialog-titlebar")}},p,w=!1;this.setExtendPainter=function(r){p=
r};this.setMsgImageType=function(r){e=r};this.setOptionType=function(r){g=r};this.setButtonText=function(r,z){k.setButtonText(r,z)};this.setClosingChecker=function(r){k.setClosingChecker(r)};this.setClosedAction=function(r){k.setClosedAction(r)};this.setBounds=function(r,z,T,aa){b=r;d=z;h=T;c=aa};this.setMessage=function(r){k.setMessage(r)};this.setDetail=function(r){k.setDetail(r);w=!0};this.setTitle=function(r){k.setTitle(r)};this.showDialog=function(){k.setCustomPainter(B);k.setOptionType(g);k.setBounds(h,
c,b,d);k.showDialog()};var B=function(r,z){var T=$("<div>");T.addClass("sa-ctrl-feedback-dialog-image");I.background(T,n());var aa=$('<div class="sa-ctrl-feedback-dialog-extend">');aa.css("bottom",w?20:0);(p?p:l)(aa,z);T.appendTo(r);aa.appendTo(r)},l=function(r,z){var T=$("<div>");T.addClass("sa-ctrl-feedback-dialog-text");T.text(z);T.attr("title",z);T.appendTo(r)},n=function(){switch(e){case E.MSG_CONFIRM:return"msg-confirm";case E.MSG_DELETE:return"msg-delete";case E.MSG_SAVE:return"msg-save";case E.MSG_WARNING:return"msg-warning";
case E.MSG_JURISDICTION:return"msg-jurisdiction";case E.MSG_WRONG:return"msg-wrong";default:throw Error("Unknown MsgImageType: "+e);}}}function sa(){var h,c,b,d,e,g=0;this.getJqUi=function(){h||p();return h};this.hide=function(B){w(!B)};this.showSuccess=function(B,l){l=l?l:2E3;k("sa-ctrl-msgct_success","msg-success",ba.get("msgSuccess","\u6210\u529f"),B,l);e.css("display","none")};this.showPrompt=function(B,l){l=l?l:5E3;k("sa-ctrl-msgct_prompt","msg-prompt",ba.get("msgPrompt","\u63d0\u793a"),B,l);
e.css("display","block")};this.showError=function(B){k("sa-ctrl-msgct_error","msg-error",ba.get("msgError","\u5931\u8d25"),B,-1);e.css("display","block")};var k=function(B,l,n,r,z){r=r?r:"";h.removeClass("sa-ctrl-msgct_success");h.removeClass("sa-ctrl-msgct_prompt");h.removeClass("sa-ctrl-msgct_error");h.addClass(B);I.background(c,l);b.text(n);d.text(r);d.attr("title",r);g?clearTimeout(g):(h.css({display:"block",height:"0px"}),h.animate({height:"50px"},300));-1!=z&&(g=setTimeout(function(){w(!0)},
z))},p=function(){c=$("<div>");c.addClass("sa-ctrl-msgct-icon");b=$("<div>");b.addClass("sa-ctrl-msgct-title");d=$("<div>");d.addClass("sa-ctrl-msgct-text");e=$("<div>");e.addClass("sa-ctrl-msgct-close");e.on("click",function(B){w(!0)});I.background(e,"msg-close");h=$("<div>");h.addClass("sa-ctrl-msgct");h.css("display","none");h.append(c);h.append(b);h.append(d);h.append(e)},w=function(B){clearTimeout(g);g=0;B?h.animate({height:"0px"},100,function(){h.css({display:"none"})}):h.css({height:"0px",
display:"none"})}}function J(h){za.call(this);var c=this.protectedMethod,b,d=$("<div>"),e=!1,g;d.text(h);d.addClass("sa-ctrl-label-text");d.css({height:"20px","line-height":"20px"});v.makeTextOmissible(d);c.setUiForegroundEnabled(d,!0);this.getJqUi=function(){b||(b=$("<div>"),b.css({display:"flex","align-items":"center"}),b.append(d),p(),k());return b};this.setAlign=function(w){g=w;b&&p()};this.setEnabled=function(w){c.setUiForegroundEnabled(d,w)};this.setText=function(w){d.text(w)};this.getText=
function(){return d.text()};this.setRequired=function(w){e=w;b&&k()};var k=function(){if(e){var w=$("<div>");w.addClass("sa-ctrl-label-required");w.text("*");w.css({color:"#fb2323",height:"22px","margin-left":"2px"});w.appendTo(b)}else b.children(".sa-ctrl-label-required").remove()},p=function(){b.css("justify-content",g==J.ALIGN_CENTER?"center":g==J.ALIGN_RIGHT?"flex-end":"")}}function M(){y.call(this);var h=this,c=this.protectedMethod,b,d=!0;(function(){c.getJqInput().attr("autocomplete","new-password");
c.getJqInput().attr("type","password");h.addEditingListener(function(e){d&&(d=!1,c.getJqInput().val(""),b="")});h.addEditedListener(function(e){b=c.getJqInput().val()})})();this.setPassword=function(e){b=e;c.getJqInput().val(e?"******":"");d=!0};this.getPassword=function(){return b}}function y(){za.call(this);var h=this.protectedMethod,c=this,b,d=$("<input>"),e,g=[],k=[],p=[],w=[],B=!1;this.getJqUi=function(){b||(b=$("<div>"),b.addClass("sa-ctrl-textfield"),d.addClass("sa-ctrl-textfield-input"),d.on("blur",
A),d.on("input",aa),d.on("keydown",n),d.on("cut",r),d.on("paste",z),d.appendTo(b),c.protectedUpdateEnabledState());return b};this.setText=function(Z){B=null===Z?!0:!1;L();d.val(Z);ha()};this.getText=function(){return B?null:d.val()};this.setPlaceholder=function(Z){"placeholder"in d[0]?d.attr("placeholder",Z):(e&&(e.remove(),d.off("blur",ha),d.off("focus",ha),d.off("keydown",ha)),e=$("<div>"),e.text(Z),e.css("color","#ccc"),e.on("mousedown",function(ua){d.focus()}),e.appendTo(c.getJqUi()),v.layoutCtrlWithLRTB(e,
4,4,null,2,2,null),ha(),d.on("blur",ha),d.on("focus",ha),d.on("keydown",ha))};this.setReadonly=function(Z){d.attr("readonly",Z)};this.requestFocus=function(){d.focus()};this.addEditingListener=function(Z){g.push(Z)};this.addEditedListener=function(Z){k.push(Z)};this.addBlurListener=function(Z){p.push(Z)};this.addAcceptableListener=function(Z){w.push(Z)};this.setTabindex=function(Z){d.attr("tabindex",Z)};this.setSelectingScope=function(Z,ua){d[0].setSelectionRange(Z,ua)};this.protectedUpdateEnabledState=
function(){b&&(d.attr("disabled",!c.isEnabled()),h.setUiBorderEnabled(b,c.isEnabled()),h.setUiBackgroundEnabled(d,c.isEnabled()),h.setUiForegroundEnabled(d,c.isEnabled()))};var l=function(Z){for(var ua=0;ua<w.length;ua++)(0,w[ua])(c,Z)},n=function(Z){T();13==Z.keyCode||9==Z.keyCode?l(!0):27==Z.keyCode&&l(!1)},r=function(Z){T()},z=function(Z){T()},T=function(){B=!1;L();for(var Z=0;Z<g.length;Z++)(0,g[Z])(c)},aa=function(Z){U.cleanText(d);for(Z=0;Z<k.length;Z++)(0,k[Z])(c)},A=function(Z){for(Z=0;Z<
p.length;Z++)(0,p[Z])(c)},L=function(){B&&d.attr("placeholder"," ?")},ha=function(){e&&setTimeout(function(){e.css("display",d.val()?"none":"")},0)};h.getJqInput=function(){return d}}function N(){var h=[],c=[];this.addChangedListener=function(e){c.push(e)};this.addElement=function(e){h.push(e);e.addCheckedListener(b)};this.toCheckTheElement=function(e){for(var g=0;g<h.length;g++){var k=h[g];if(e(k)){k.setChecked(!0);break}}};var b=function(e,g){if(e.isChecked()){for(var k=0;k<h.length;k++){var p=
h[k];p!=e&&p.setChecked(!1)}d(e,g)}else{p=!0;for(k=0;k<h.length;k++)if(h[k].isChecked()){p=!1;break}p&&(e.setChecked(!0),d(e,g))}},d=function(e,g){for(var k=0;k<c.length;k++)(0,c[k])(e,g)}}function t(){za.call(this);Ga.call(this);var h=this.protectedMethod,c=this,b,d=$("<div>"),e=$("<input>"),g=[],k,p=0,w=100,B=1,l=function(D){return Math.round(D)},n=!1,r,z=function(D){n=!1},T=function(D){n&&L()},aa=function(D){13==D.keyCode?(n&&L(),D.preventDefault()):27==D.keyCode&&H()},A=function(D){n=!0;var F=
D=!1,ja=!1,qa=$.trim(e.val());0==qa.length&&(ja=!0);"-"==qa.substr(0,1)&&(D=!0,qa=qa.substring(1));"."==qa.substr(-1,1)&&(F=!0,qa=qa.substring(0,qa.length-1));qa=qa.replace(/[^\d\.]/g,"");""==qa?ja||D||H():F&&e.val((D?"-":"")+qa+".")},L=function(){var D=$.trim(e.val());D=parseFloat(D);isNaN(D)?H():(D>w?D=w:D<p&&(D=p),D=l(D),Z(D,t.CHANGED_BY_MANUAL_EDIT))},ha=function(D){if("number"!=typeof D)throw Error("Not number");},Z=function(D,F){if(D!==k){var ja=k;k=D;for(D=0;D<g.length;D++)(0,g[D])(c,ja,k,
F)}H()};this.setValue=function(D){null===D||ha(D);Z(D,t.CHANGED_BY_API)};this.getValue=function(){return k};this.setConstraint=function(D,F,ja){ha(D);ha(F);ha(ja);p=Math.min(D,F);w=Math.max(D,F);B=ja};this.supportDecimal=function(D){c.setAcceptEditingDecorator(function(F){return ua(F,D)});c.setCustomPainter(function(F){return ua(F,D)})};var ua=function(D,F){var ja=""+D,qa=ja.indexOf(".");0<=qa&&(D=qa+1,F=ja.substring(D,D+F),ja=ja.substring(0,qa),D=parseFloat(ja+"."+F));return D};this.getJqUi=function(){if(!b){b=
$("<div>");b.addClass("sa-ctrl-spinner");d.addClass("sa-ctrl-spinner-text");d.appendTo(b);e.addClass("sa-ctrl-textfield-input");e.on("focus",z);e.on("blur",T);e.on("keydown",aa);e.on("input",A);e.appendTo(d);var D=$("<div>");D.addClass("sa-ctrl-spinner-up");D.appendTo(b);D.on("mousedown",O);D.on("mouseup",G);D.on("mouseleave",G);var F=$("<div>");F.text("\u25b2");F.addClass("sa-ctrl-spinner-up-inner");F.appendTo(D);D=$("<div>");D.addClass("sa-ctrl-spinner-down");D.appendTo(b);D.on("mousedown",S);D.on("mouseup",
fa);D.on("mouseleave",fa);F=$("<div>");F.text("\u25b2");F.addClass("sa-ctrl-spinner-down-inner");F.appendTo(D);c.protectedUpdateEnabledState()}return b};this.setCustomPainter=function(D){r=D;H()};this.setAcceptEditingDecorator=function(D){l=D};this.addValueChangedListener=function(D,F){F&&(D=W(D));g.push(D)};var W=function(D){var F;return function(ja,qa,ma,q){q==t.CHANGED_BY_MANUAL_ADJUST?(clearTimeout(F),F=setTimeout(function(){D(ja,qa,ma,q)},625)):q==t.CHANGED_BY_MANUAL_EDIT&&D(ja,qa,ma,q)}},H=
function(){var D=r?r(k):null===k?"?":k;e.val(D)},f,u,O=function(D){if(c.isEnabled()){f=400;var F=function(){u=setTimeout(function(){K(B);f=Math.max(100,f-50);F()},f)};K(B);F()}},G=function(D){clearTimeout(u)},S=function(D){if(c.isEnabled()){f=400;var F=function(){u=setTimeout(function(){K(-B);f=Math.max(100,f-100);F()},f)};K(-B);F()}},fa=function(D){clearTimeout(u)},K=function(D){D=X.addDecimal(null===k?p:k,D);D=D<p?p:D;D=D>w?w:D;Z(D,t.CHANGED_BY_MANUAL_ADJUST)};this.protectedUpdateEnabledState=function(){if(b){h.setUiBorderEnabled(b,
c.isEnabled());h.setUiBackgroundEnabled(d,c.isEnabled());h.setUiForegroundEnabled(e,c.isEnabled());var D=b.find(".sa-ctrl-spinner-up"),F=b.find(".sa-ctrl-spinner-down");c.isEnabled()?(D.addClass("sa-ctrl-spinner-arrow_enabled"),F.addClass("sa-ctrl-spinner-arrow_enabled")):(D.removeClass("sa-ctrl-spinner-arrow_enabled"),F.removeClass("sa-ctrl-spinner-arrow_enabled"));e.attr("disabled",!c.isEnabled())}c.protectedUpdateFeatureDisplay()};this.protectedUpdateFeatureDisplay=function(){if(b){var D=c.isShowFeature()&&
c.isEnabled();d.css("background-color",D?"":"transparent");d.siblings().css("display",D?"":"none");h.setUiBorderVisible(b,c.isShowFeature())}}}function P(){za.call(this);var h=this.protectedMethod,c=this,b=[],d=[],e=null,g=!1,k=!0,p=!1,w=!0,B=!1,l,n,r,z,T=[],aa=[],A=[];this.setItemModels=function(K,D){b=K?K:[];z=D?D:G;Z();c.protectedUpdateEnabledState();l&&setTimeout(c.scrollSelectedToVisible,0)};this.setSelecteds=function(K){if(K.length==d.length){for(var D=!0,F=0;F<K.length;F++)if(0>O(K[F])){D=
!1;break}if(D)return}D=d;d=K;ua();K=d;for(F=0;F<A.length;F++)(0,A[F])(c,D,K)};this.getSelecteds=function(){return d};this.setBorderVisible=function(K){w=K};this.getJqUi=function(){if(!l){l=$("<div>");w&&h.createBorder(l);var K=$("<div>");K.addClass("sa-ctrl-list-owner");K.on("mousedown",H);if(0<aa.length)K.on("dblclick",f);S(K);K.appendTo(l);Z();c.protectedUpdateEnabledState()}return l};this.setCustomItemPainter=function(K){n=K};this.setCustomSelectedsPainter=function(K){r=K};this.addPressedListener=
function(K){T.push(K)};this.addDBLClickListener=function(K){aa.push(K)};this.addSelectedChangedListener=function(K){A.push(K)};this.setMultiSelectable=function(K){g=K};this.setToggleSelectingEnabled=function(K){k=K};this.setContinuousSelectingEnabled=function(K){p=K};this.protectedUpdateEnabledState=function(){if(l){h.setUiBackgroundEnabled(l,c.isEnabled());h.setUiForegroundEnabled(l,c.isEnabled());var K=ha();c.isEnabled()?K.addClass("sa-ctrl-list-item_enabled"):K.removeClass("sa-ctrl-list-item_enabled");
ua()}};var L=function(K,D){K.text(D)};this.getItemUiByModel=function(K){for(var D=ha(),F=0;F<D.length;F++){var ja=D.eq(F);if(z(K,ja.data("model")))return ja}return null};var ha=function(){return l.find(".sa-ctrl-list-item")},Z=function(){if(l){var K=l.children(".sa-ctrl-list-owner");K.empty();for(var D=$(document.createDocumentFragment()),F=n?n:L,ja=0;ja<b.length;ja++){var qa=$("<div>");qa.addClass("sa-ctrl-list-item");qa.addClass("sa-ctrl-list-item-defaultlayout");var ma=b[ja];qa.data("model",ma);
F(qa,ma);D.append(qa)}K.append(D)}},ua=function(){if(l){var K=l.find(".sa-ctrl-list-item_selected_enabled");K.removeClass("sa-ctrl-list-item_selected_enabled");for(var D=[],F=0;F<K.length;F++)D.push($(K[F]));K=[];if(c.isEnabled())for(var ja=ha(),qa=0;qa<d.length;qa++){var ma=d[qa];for(F=0;F<ja.length;F++){var q=ja.eq(F),ia=q.data("model");if(z(ia,ma)){q.addClass("sa-ctrl-list-item_selected_enabled");K.push(q);break}}}r&&r(D,K)}};this.scrollSelectedToVisible=function(K){if(l&&0!=d.length){K=K?K:d[0];
for(var D=ha(),F=0;F<D.length;F++){var ja=D.eq(F),qa=ja.data("model");if(z(qa,K)){K=l.children(".sa-ctrl-list-owner");D=K.prop("clientHeight");F=K.prop("scrollTop");qa=F+D;var ma=ja.prop("offsetTop");ja=ma+ja.prop("offsetHeight");ma<F?K.prop("scrollTop",ma-10):ja>qa&&K.prop("scrollTop",ja-D+10);break}}}};var W=function(K){if(!c.isEnabled())return!1;var D=$(K.target);if(D=v.upwardSearchHasClass(D,l,"sa-ctrl-list-item")){var F=D.data("model");D=d.slice();var ja=g&&p&&K.shiftKey;if(k&&(K.ctrlKey||K.metaKey))if(K=
O(F),0<=K)D.splice(K,1),e==F&&(e=0==D.length?null:D[D.length-1]);else{if(g||0==D.length)D.push(F),e=F}else if(ja&&0<D.length){ja=null==e?0:u(e);K=u(F);F=b.slice(Math.min(ja,K),Math.max(ja,K)+1);for(K=F.length-1;0<=K;K--){ja=F[K];for(var qa=0;qa<D.length;qa++)if(z(D[qa],ja)){F.splice(K,1);break}}D=D.concat(F)}else D=[F],e=F;c.setSelecteds(D);return!0}return!1},H=function(K){if(W(K)){K=k&&(K.ctrlKey||K.metaKey);for(var D=0;D<T.length;D++)(0,T[D])(c,K)}},f=function(K){if(W(K))for(K=0;K<aa.length;K++)(0,aa[K])(c)},
u=function(K){for(var D=0;D<b.length;D++)if(z(b[D],K))return D;return-1},O=function(K){for(var D=0;D<d.length;D++)if(z(K,d[D]))return D;return-1},G=function(K,D){return K===D};this.setScrollerShy=function(K){B=K;l&&S(l.children(".sa-ctrl-list-owner"))};var S=function(K){B?(K.css("overflow","hidden"),K.on("mouseenter",fa),K.on("mouseleave",fa)):(K.off("mouseenter",fa),K.off("mouseleave",fa))},fa=function(K){"mouseenter"==K.type?$(K.currentTarget).css("overflow","auto"):"mouseleave"==K.type&&$(K.currentTarget).css("overflow",
"hidden")}}function a(){za.call(this);var h=this,c=this.protectedMethod,b=!0,d=23,e,g,k,p,w=[],B=[],l=[],n=!1,r={},z=null,T;this.setRootVisible=function(q){b=q;Z()};this.isRootVisible=function(){return b};this.setLineHeight=function(q){d=q;ha()};this.getLineHeight=function(){return d};this.setRoot=function(q){if(q&&q.getParent())throw Error("Root.getParent() must be null.");e=q;Z()};this.getRoot=function(){return e};this.addChild=function(q,ia,ya){"number"==typeof ya?q.insertChild(ia,ya):(ya=q.getChildCount(),
q.addChild(ia));var Ia=h.searchUiByModel(q);if(Ia){var Ya=u(ia,k?k:O);if(ia.isLeafNode())var $a=Ya;else $a=$(document.createDocumentFragment()),Ya.appendTo($a),H(ia,Ya);if(0==ya)q=Ia;else{var db=q.getChild(ya-1);db.isLeafNode()||db.deepFirstVisiting(function(fb){db=fb},!0);q=h.searchUiByModel(db)}$a.insertAfter(q)}};this.removeChild=function(q,ia){var ya=h.searchUiByModel(ia);ya&&(f(ia,ya),ya.remove());q.removeChild(ia)};this.removeAllChildren=function(q){var ia=h.searchUiByModel(q);ia&&f(q,ia);q.removeAllChildren()};
this.hookLoadingHandler=function(q){T=q};this.setNodePainter=function(q){k=q;Z()};this.setNodeSelectingStateUpdater=function(q){p=q};this.getJqUi=function(){g||(g=$("<div>"),g.addClass("sa-ctrl-tree"),g.on("mousedown",ja),g.on("mouseover",D),g.on("mouseout",F),ha(),Z(),h.protectedUpdateEnabledState());return g};this.refresh=function(q,ia){if(q){var ya=h.searchUiByModel(q);if(ya){var Ia=ya.find(".sa-ctrl-tree-nodeline-head");S(Ia,q.isExpanded(),!1);Ia=K(ya);Ia.empty();(k?k:O)(Ia,q);q.isLeafNode()||
ia||(f(q,ya),H(q,ya))}}else Z()};this.expandToNode=function(q,ia){q=q.getTreePath();ia=ia?q.length:q.length-1;for(var ya=0;ya<ia;ya++){var Ia=q[ya];Ia.isLeafNode()||Ia.isExpanded()||(Ia.setExpanded(!0),h.refresh(Ia))}};this.searchAllNodeUi=function(q){for(var ia=g.children(),ya=0;ya<ia.length;ya++){var Ia=ia.eq(ya),Ya=G(Ia);q(Ya,Ia)}};this.searchUiByModel=function(q){var ia=null;h.searchAllNodeUi(function(ya,Ia){return ya==q?(ia=Ia,!0):!1});return ia};this.scrollSelectedToVisible=function(){var q=
h.getSelecteds();h.scrollNodeToVisible(0<q.length?q[0]:null)};this.scrollNodeToVisible=function(q){if(g&&q)for(var ia=g.children(),ya=0;ya<ia.length;ya++){var Ia=ia.eq(ya);if(q==G(Ia)){q=g.prop("clientHeight");ia=g.prop("scrollTop");ya=ia+q;var Ya=Ia.prop("offsetTop");Ia=Ya+Ia.prop("offsetHeight");Ya<ia?g.prop("scrollTop",Ya-10):Ia>ya&&g.prop("scrollTop",Ia-q+10);break}}};this.addSelectingListener=function(q){w.push(q)};this.addSelectedListener=function(q){B.push(q)};var aa=function(q){for(var ia=
0;ia<B.length;ia++)(0,B[ia])(h,q)};this.addExpandedListener=function(q){l.push(q)};var A=function(q){for(var ia=0;ia<l.length;ia++)(0,l[ia])(h,q)};this.setMultiSelectable=function(q){n=q};this.getSelecteds=function(){var q=[];e&&e.visiting(function(ia){r[ia.getUiTag()]&&q.push(ia)});return q};this.setSelecteds=function(q){r={};if(q)for(var ia=0;ia<q.length;ia++)L(q[ia].getUiTag(),!0);ua()};var L=function(q,ia){ia?r[q]=!0:delete r[q]};this.protectedUpdateEnabledState=function(){h.isEnabled()?g.removeClass("sa-ctrl-tree_disabled"):
g.addClass("sa-ctrl-tree_disabled");g.find(".sa-ctrl-tree-nodeline-head").css("cursor",h.isEnabled()?"pointer":"")};var ha=function(){g&&g.css("line-height",d+"px")},Z=function(){if(g&&e){g.empty();var q=k?k:O,ia=$(document.createDocumentFragment());e.deepFirstVisiting(function(ya){if(b||ya!=e)ya=u(ya,q),ia.append(ya)},!0);g.append(ia)}},ua=function(){if(g)for(var q=g.children(".sa-ctrl-tree-nodeline"),ia=0;ia<q.length;ia++){var ya=q.eq(ia),Ia=ya.attr("name");W(ya,Ia)}},W=function(q,ia){(ia=r[ia])?
q.addClass("sa-ctrl-tree-nodeline_selected"):q.removeClass("sa-ctrl-tree-nodeline_selected");if(p){var ya=K(q);q=G(q);p(ya,q,ia)}},H=function(q,ia){var ya=k?k:O,Ia=$(document.createDocumentFragment());q.deepFirstVisiting(function(Ya){Ya!=q&&(Ya=u(Ya,ya),Ia.append(Ya))},!0);Ia.insertAfter(ia)},f=function(q,ia){q=q.getLevel();for(ia=ia.next();0<ia.length&&!(G(ia).getLevel()<=q);){var ya=ia;ia=ia.next();ya.remove()}},u=function(q,ia){var ya=$("<div>");ya.css("position","relative");ya.css("height",d);
ya.data("model",q);ya.addClass("sa-ctrl-tree-nodeline");ya.attr("name",q.getUiTag());W(ya,q.getUiTag());var Ia=20*(q.getLevel()+(b?0:-1));if(!q.isLeafNode()){var Ya=$("<div>");Ya.addClass("sa-ctrl-tree-nodeline-head");h.isEnabled()&&Ya.css("cursor","pointer");Ya.appendTo(ya);v.layoutCtrlWithLRTB(Ya,Ia,null,20,0,0,null);var $a=$("<div>");$a.appendTo(Ya);S(Ya,q.isExpanded(),!1);v.layoutCtrlCenterAlign($a,16);v.layoutCtrlMiddleAlign($a,16)}Ia+=20;Ya=$("<div>");v.makeTextOmissible(Ya);Ya.addClass("sa-ctrl-tree-nodeline-paintable");
c.setUiForegroundEnabled(Ya,!0);ia(Ya,q);Ya.css("display","inline-block");Ya.css("background-color","inherit");Ya.css("color","inherit");Ya.css("position","relative");Ya.css("height","100%");Ya.css("left",Ia);Ya.appendTo(ya);return ya},O=function(q,ia){q.css("padding-left","4px");q.css("padding-right","4px");q.text(ia.getUserObject())},G=function(q){return q.data("model")},S=function(q,ia,ya){q=q.children().eq(0);I.background(q,(ia?"tree-expanded":"tree-collapsed")+(ya?"_hover":""))},fa=function(q){return v.upwardSearchHasClass(q,
g,"sa-ctrl-tree-nodeline-head")},K=function(q){return q.children(".sa-ctrl-tree-nodeline-paintable")},D=function(q){if(h.isEnabled()&&(q=$(q.target),q=fa(q))){var ia=G(q.parent());S(q,ia.isExpanded(),!0)}},F=function(q){if(h.isEnabled()&&(q=$(q.target),q=fa(q))){var ia=G(q.parent());S(q,ia.isExpanded(),!1)}},ja=function(q){if(h.isEnabled()){var ia=$(q.target),ya=fa(ia);if(ya)qa(ya);else if(ia=v.upwardSearchHasClass(ia,g,"sa-ctrl-tree-nodeline")){ia=G(ia);for(ya=0;ya<w.length;ya++)(0,w[ya])(h,ia);
ia.isSelectable()&&(n?(ya=q.shiftKey,q.ctrlKey||q.metaKey?(q=r[ia.getUiTag()],L(ia.getUiTag(),!q),ua()):ya?(!z&&(z=h.getSelecteds()[0]),!z&&(z=e),z==ia?L(ia.getUiTag(),!0):ma(ia),ua()):h.setSelecteds([ia]),z=ia,aa(ia)):r[ia.getUiTag()]||(h.setSelecteds([ia]),aa(ia)))}}},qa=function(q){var ia=q.parent(),ya=G(ia);ya.isExpanded()?(ya.setExpanded(!1),f(ya,ia)):(ya.setExpanded(!0),!ia.data("qing-system-loading")&&0==ya.getChildCount()&&T?(ia.data("qing-system-loading",!0),T(ya,function(){ia.removeData("qing-system-loading");
H(ya,ia)})):H(ya,ia));S(q,ya.isExpanded(),!0);A(ya)},ma=function(q){var ia=!1,ya=!1;e.deepFirstVisiting(function(Ia){!ya&&Ia.isSelectable()&&(ia&&L(Ia.getUiTag(),!0),Ia==z||Ia==q)&&(ia?ya=!0:(ia=!0,L(Ia.getUiTag(),!0)))},!0)}}function x(h){var c=this,b=h,d=!0,e=null,g;this.setUserObject=function(k){b=k};this.getUserObject=function(){return b};this.setSelectable=function(k){d=k};this.isSelectable=function(){return d};this.isLeafNode=function(){return!1};this.getTreePath=function(){for(var k=[],p=c;p;)k.push(p),
p=p.getParent();return k=k.reverse()};this.getParent=function(){return e};this.setParent=function(k){e=k};this.getUiTag=function(){g||(g=Ja.allocate());return g};this.getLevel=function(){for(var k=-1,p=c;p;)k++,p=p.getParent();return k}}function m(h){za.call(this);var c=this.protectedMethod,b=this,d,e=$("<div>"+h+"</div>"),g,k=[],p=!0;this.setHighlight=function(B){p=B};this.getJqUi=function(){d||(d=$("<div>"),d.addClass("sa-ctrl-button"),d.on("click",w),e.addClass("sa-ctrl-button-text"),e.appendTo(d),
g=c.createBorder(d),b.protectedUpdateEnabledState());return d};this.addActionListener=function(B){k.push(B)};this.setText=function(B){e.text(B)};this.protectedUpdateEnabledState=function(){if(d)if(b.isEnabled()){d.addClass("sa-ctrl-button_enabled");if(p)var B="sa-ctrl-button-background-highlight",l="sa-ctrl-button-text-highlight",n="sa-ctrl-button-border-highlight";else B="sa-ctrl-button-background-normal",l="sa-ctrl-button-text-normal",n="sa-ctrl-button-border-normal";d.addClass(B);e.addClass(l);
g.addClass(n);d.removeClass("sa-ctrl-button_disabled");e.removeClass("sa-ctrl-button-text_disabled");g.removeClass("sa-ctrl-button-border_disabled")}else d.addClass("sa-ctrl-button_disabled"),e.addClass("sa-ctrl-button-text_disabled"),g.addClass("sa-ctrl-button-border_disabled"),d.removeClass("sa-ctrl-button_enabled"),p?(B="sa-ctrl-button-background-highlight",l="sa-ctrl-button-text-highlight",n="sa-ctrl-button-border-highlight"):(B="sa-ctrl-button-background-normal",l="sa-ctrl-button-text-normal",
n="sa-ctrl-button-border-normal"),d.removeClass(B),e.removeClass(l),g.removeClass(n)};var w=function(B){if(b.isEnabled())for(B=0;B<k.length;B++)(0,k[B])(b)}}function Q(h){za.call(this);var c=this,b,d=$("<div>"+h+"</div>"),e=[];this.setText=function(k){d.text(k)};this.addActionListener=function(k){e.push(k)};this.getJqUi=function(){b||(b=$("<div>"),b.addClass("sa-ctrl-workbutton"),b.on("click",g),v.layoutCtrlWithLRTB(d,4,4,null,"50%",null,20),d.css("line-height","20px"),d.css("margin-top","-10px"),
d.css("white-space","nowrap"),d.appendTo(b),c.protectedUpdateEnabledState());return b};this.protectedUpdateEnabledState=function(){b&&(c.isEnabled()?(b.addClass("sa-ctrl-workbutton_enabled"),b.removeClass("sa-ctrl-workbutton_disabled")):(b.removeClass("sa-ctrl-workbutton_enabled"),b.addClass("sa-ctrl-workbutton_disabled")))};var g=function(k){if(c.isEnabled())for(k=0;k<e.length;k++)(0,e[k])(c)}}function ea(){za.call(this);var h=this,c,b,d,e,g,k=[],p;this.setIconSetter=function(n){p=n};this.setText=
function(n){d||(d=$("<div>"),d.addClass("sa-ctrl-tbbtn-text"));d.text(n)};this.getText=function(){return d.text()};this.setIconName=function(n){g=n;h.protectedUpdateEnabledState()};this.setTooltips=function(n){d.attr("title",n)};this.setShowDropdownArrow=function(n){n&&!e?(d&&d.addClass("sa-ctrl-tbbtn-textwitharrow"),e=$("<div>"),e.addClass("sa-ctrl-tbbtn-arrow"),I.background(e,"dropdown-menu"),c&&e.appendTo(c)):!n&&e&&(d&&d.removeClass("sa-ctrl-tbbtn-textwitharrow"),e.remove(),e=null)};this.addActionListener=
function(n){k.push(n)};var w=function(n){for(var r=0;r<k.length;r++)(0,k[r])(h,n)};this.fireAction=function(){h.isEnabled()&&c&&w(c)};this.getJqUi=function(){c||(c=$("<div>"),c.addClass("sa-ctrl-tbbtn"),c.on("mousedown",l),c.on("mouseenter",function(n){B(!0)}),c.on("mouseleave",function(n){B(!1)}),b=$("<div>&nbsp</div>"),b.addClass("sa-ctrl-tbbtn-icon"),b&&b.appendTo(c),d&&d.appendTo(c),e&&(e.appendTo(c),d&&d.addClass("sa-ctrl-tbbtn-textwitharrow")),h.protectedUpdateEnabledState());return c};this.protectedUpdateEnabledState=
function(){c&&(h.isEnabled()?(c.addClass("sa-ctrl-tbbtn_enabled"),c.removeClass("sa-ctrl-tbbtn_disabled")):(c.addClass("sa-ctrl-tbbtn_disabled"),c.removeClass("sa-ctrl-tbbtn_enabled")),g?(b.css("display","block"),p(b,g+(h.isEnabled()?"":"_disabled"))):b.css("display","none"))};var B=function(n){h.isEnabled()&&g&&p(b,g+(n?"_hover":""))},l=function(n){h.isEnabled()&&w($(n.target))}}function ta(){za.call(this);ta.Child.call(this);var h=this,c=!0,b=ta.RESIZE_MODE_FIRST_FIXED,d=0,e,g,k,p,w,B,l=-1,n=-1,
r=-1,z=-1,T=-1,aa=-1,A=-1,L=null;(function(){p=$("<div>");p.addClass("sa-ctrl-splitpane-line");p.on("mousedown",function(fa){G(fa)});p.on("mouseenter",function(fa){O(p,!0)});p.on("mouseleave",function(fa){0==e.find(".sa-ctrl-splitpane-mask").length&&O(p,!1)});var S=$("<div>");S.addClass("sa-ctrl-splitpane-line-tip");S.appendTo(p);g=$("<div>");g.addClass("sa-ctrl-splitpane-part");k=$("<div>");k.addClass("sa-ctrl-splitpane-part");e=$("<div>");e.addClass("sa-ctrl-splitpane");e.append(p);e.append(g);
e.append(k)})();this.setHorizontalSplit=function(S){c=S;ha();ua()};this.setResizeMode=function(S){b=S};this.getJqUi=function(){return e};this.resize=function(S){ua(S)};this.setFirstChild=function(S){g.empty();w=S;w.getJqUi().appendTo(g);w.getJqUi().addClass("sa-ctrl-splitpane-child");ua()};this.setSecondChild=function(S){k.empty();B=S;B.getJqUi().appendTo(k);B.getJqUi().addClass("sa-ctrl-splitpane-child");ua()};this.setFirstSize=function(S,fa,K){n=S;r=void 0==fa?-1:fa;z=void 0==K?-1:K;ua()};this.setSecondSize=
function(S,fa,K){T=S;aa=void 0==fa?-1:fa;A=void 0==K?-1:K;ua()};this.setSplitLineWide=function(S){l=S};this.getJqSplitLine=function(){return p};this.clearState=function(){L=null;d=0};this.collapseFirstHalf=function(S){if(S)d=1,L=[n,r,z],h.setFirstSize(0,0,0),h.setEnabled(!1);else{d=0;if(L){S=L[0];var fa=L[1],K=L[2];L=null;h.setFirstSize(S,fa,K)}h.setEnabled(!0)}ua()};this.collapseSecondHalf=function(S){if(S)d=2,L=[T,aa,A],h.setSecondSize(0,0,0),h.setEnabled(!1);else{d=0;if(L){S=L[0];var fa=L[1],K=
L[2];L=null;h.setSecondSize(S,fa,K)}h.setEnabled(!0)}ua()};this.hideFirstHalf=function(S){Z(S,g);ua()};this.hideSecondHalf=function(S){Z(S,k);ua()};this.getNonemptyFirstWide=function(){return 1==d?L[0]:n};this.getNonemptySecondWide=function(){return 2==d?L[0]:T};this.protectedUpdateEnabledState=function(){ha()};var ha=function(){var S=p.find(".sa-ctrl-splitpane-line-tip");h.isEnabled()?(S.css("display",""),S.addClass("sa-ctrl-splitpane-line-tip-"+(c?"v":"h"))):S.css("display","none")},Z=function(S,
fa){S?(fa.css("display","none"),p.css("display","none")):(fa.css("display",""),p.css("display",""));(fa==g?k:g).css("display","")},ua=function(S){if(!(0>n&&0>T)&&w&&B){var fa=-1,K=n,D=T;if(v.isInDomTree(e[0])){var F=c?e.innerWidth():e.innerHeight();fa=0<F?F:fa}var ja=0<=K?K:0<=r?r:0<=z?z:0,qa=0<=D?D:0<=aa?aa:0<=A?A:0;if(0>fa)var ma=ja+qa;else ma=fa-f(),ma=0>ma?0:ma;fa=0>r?0:r;D=0>z?999999:z;K=0>aa?0:aa;F=0>A?999999:A;ma-=ja+qa;0!=ma&&(ma=[ja,qa,ma],ja=ma[0],qa=ma[1],ma=ma[2]);if(0!=ma)switch(b){case ta.RESIZE_MODE_FIRST_FIXED:ma=
u(qa,K,F,ma);qa=ma[0];ma=ma[1];0!=ma&&(ma=u(ja,fa,D,ma),ja=ma[0],ma=ma[1],0!=ma&&(ma=[ja,qa],ja=ma[0],qa=ma[1]));break;case ta.RESIZE_MODE_SECOND_FIXED:ma=u(ja,fa,D,ma);ja=ma[0];ma=ma[1];0!=ma&&(ma=u(qa,K,F,ma),qa=ma[0],ma=ma[1],0!=ma&&(ma=[ja,qa],ja=ma[0],qa=ma[1]));break;case ta.RESIZE_MODE_RATIO:var q=ma;ma=parseInt(ja/(ja+qa)*q);q-=ma;ja=u(ja,fa,D,ma);q=u(qa,K,F,q);ma=ja[0];qa=q[0];ja=ja[1];q=q[1];0!=ja&&0==q?(q=u(qa,K,F,ja),qa=q[0],q=q[1],0!=q&&(fa=[ma,qa],ma=fa[0],qa=fa[1])):0==ja&&0!=q?(ja=
u(ma,fa,D,q),ma=ja[0],ja=ja[1],0!=ja&&(fa=[ma,qa],ma=fa[0],qa=fa[1])):0!=ja&&0!=q&&(fa=[ma,qa],ma=fa[0],qa=fa[1]);ma=[ma,qa];ja=ma[0];qa=ma[1];break;default:throw Error("Unknown resize-mode: "+b);}n=ja;T=qa;W();S=S?!0:!1;1==d?g.css("display","none"):(g.css("display",""),w.resize(S));2==d?k.css("display","none"):(k.css("display",""),B.resize(S))}},W=function(){var S=n,fa=T;1==d?(S=0,fa=n+T):2==d&&(S=n+T,fa=0);var K=0+S,D=K+f();H(g,0,S);H(p,K,f());H(k,D,fa)},H=function(S,fa,K){var D={position:"absolute"};
c?(D.left=fa,void 0!==K&&(D.width=K),D.top=0,D.bottom=0,D.height=""):(D.left=0,D.right=0,D.width="",D.top=fa,void 0!==K&&(D.height=K));S.css(D)},f=function(){return"none"==p.css("display")?0:0>l?8:l},u=function(S,fa,K,D){S+=D;D=0;S<fa?(D=S-fa,S=fa):S>K&&(D=S-K,S=K);return[S,D]},O=function(S,fa){S.css("cursor",h.isEnabled()&&fa?c?"e-resize":"n-resize":"default")},G=function(S){if(h.isEnabled()){var fa=$("<div>");fa.addClass("sa-ctrl-splitpane-mask");fa.appendTo(e);O(fa,!0);var K=0>r?0:r,D=0>z?999999:
z,F=0>aa?0:aa,ja=0>A?999999:A;S=v.getCurrentTargetPosition(S);S=v.upwardCoordinate(p[0],S,e[0]);var qa=c?S[0]:S[1],ma=n,q=T,ia=function($a){var db=v.getCurrentTargetPosition($a);db=v.upwardCoordinate($a.target,db,e[0]);$a=(c?db[0]:db[1])-qa;db=ma+$a;var fb=q-$a;if(db<K||db>D)db=db<K?K:D,$a=db-ma,fb=q-$a;else if(fb<F||fb>ja)fb=fb<F?F:ja,$a=q-fb,db=ma+$a;n=db;T=fb;W();w.resize(!0);B.resize(!0)},ya=function($a){Ya()},Ia=function($a){this.contains($a.toElement||$a.relatedTarget)||Ya()},Ya=function(){fa.remove();
w.resize(!1);B.resize(!1);O(p,!1);e.off("mousemove",ia);e.off("mouseup",ya);e.off("mouseleave",Ia)};e.on("mousemove",ia);e.on("mouseup",ya);e.on("mouseleave",Ia)}}}function Ha(){var h=this,c=$("<div>"),b,d,e=[],g=Ha.FIRST_LEVEL;this.setTabLevel=function(l){g=l};this.addTab=function(l,n){var r=$("<div>");r.text(l.getTitle());r.addClass(B());r.appendTo(c);r.on("click",function(z){p(r,l)});n&&(b?p(r,l):d=l)};this.setCurrentTabPane=function(l){d=l;if(b){for(var n=null,r=c.find("."+B()),z=0;z<r.length;z++){var T=
$(r[z]);if(T.text()==l.getTitle()){n=T;break}}n&&p(n,l)}};this.getCurrentTabPane=function(){return d};this.getJqUi=function(){if(!b&&(b=$("<div>"),b.addClass(g==Ha.SECOND_LEVEL?"sa-ctrl-second-tab-container":"sa-ctrl-tab-container"),b.appendTo(c),d))for(var l=d.getTitle(),n=d,r=c.children("."+B()),z=0;z<r.length;z++){var T=$(r[z]);T.text()==l&&p(T,n)}return c};this.addTabChangedListener=function(l){e.push(l)};var k=function(l){for(var n=0;n<e.length;n++)(0,e[n])(h,l)},p=function(l,n){var r=B(),z=
r+"_selected";d=n;c.children("."+r).removeClass(z);l.addClass(z);l=n.getJqUi();r=b.children();z=!1;for(var T=0;T<r.length;T++)r[T]==l[0]?(z=!0,$(r[T]).css("display","block"),w(n)):$(r[T]).css("display","none");z||(v.layoutCtrlWithLRTB(l,0,0,null,0,0,null),l.appendTo(b),w(n))},w=function(l){v.isInDomTree(l.getJqUi()[0])?(l.into(),k(l)):setTimeout(function(){l.into();k(l)},10)},B=function(){return g==Ha.SECOND_LEVEL?"sa-ctrl-tab-second-head":"sa-ctrl-tab-head"}}function la(){var h=$("<div class='sa-ctrl-common-modallayer'>"),
c,b=new V(h),d=$("<div>"),e,g,k,p,w=!1,B;this.setTitle=function(f){c=f};this.setSteps=function(f){k=f;ha(f[0])};this.show=function(f,u){var O=$(document.body);h.appendTo(O);B=[f,u];l(f,u);b.setSelectable(!0);b.setToolbarVisible(!1);b.setContent(d);b.showFooterPane(r);b.addClosedListener(A);b.show();W();f=p.isLastStep();H(f);z(p,null,!1)};var l=function(f,u){var O=$(document.body),G=O.innerWidth();O=O.innerHeight();b.setBounds(Math.max(0,G-f>>1),Math.max(0,O-u>>1),f,u)},n=function(f){return b.getMessageCurtain(f)},
r=function(f){e=new m;e.setText(ba.get("back","\u4e0a\u4e00\u6b65"));e.addActionListener(aa);var u=e.getJqUi();u.addClass("sa-ctrl-wizard-prev");u.appendTo(f);g=new m;g.addActionListener(T);u=g.getJqUi();u.addClass("sa-ctrl-wizard-next");u.appendTo(f)},z=function(f,u,O){var G=n(!0);G&&G.hide(!0);u&&u.getJqUi().css("display","none");G=f.getJqUi({getMessageCurtain:n,setPreviousEnabled:function(fa){e.setEnabled(fa)},setNextEnabled:function(fa){g.setEnabled(fa)}});G.parent().length?G.css("display","block"):
G.appendTo(d);G=f.getSubTitle();b.setTitle((c?c+"-":"")+(G?G:""));var S=f.getSuggestedDialogSize();S?(G=S[0],S=S[1],l(G,S),w=!0):w&&(G=B[0],S=B[1],l(G,S),w=!1);f.intoThisStep(u,O)},T=function(f){p.outThisStep(!1,function(u){if(p.isLastStep())L(!0);else if(u!=p){if(u)u instanceof Array?(ua(p,u),u=u[0]):ua(p,[u]);else a:{for(u=k.length-2;0<=u;u--)if(k[u]==p){u=k[u+1];break a}u=null}var O=p;ha(u);z(p,O,!1)}})},aa=function(f){p.outThisStep(!0,function(u){if(u!=p){u=Z(p);var O=p;ha(u);z(p,O,!0)}})},A=
function(f){L(!1)},L=function(f){for(var u=0;u<k.length;u++)k[u].over(f);b.destroy();h.remove()},ha=function(f){p=f;e&&W();g&&(f=p.isLastStep(),H(f))},Z=function(f){for(var u=k.length-1;0<u;u--)if(k[u]==f)return k[u-1];return null},ua=function(f,u){for(var O=k.length-1;0<=O;O--)if(k[O]==f){f=k.splice(O+1,k.length-1-O);for(O=0;O<f.length;O++)f[O].over(!1);k=k.concat(u);break}},W=function(){var f=Z(p);f=f&&f.isReturnable();e.setEnabled(f)},H=function(f){f=f?ba.get("finish","\u5b8c\u6210"):ba.get("next",
"\u4e0b\u4e00\u6b65");g.setText(f)}}function ka(){za.call(this);var h=this,c=this.protectedMethod,b=[],d,e,g,k;this.getJqUi=function(){if(!d){var aa=$("<div>");aa.addClass("sa-ctrl-date-head");p(aa,ba.get("hour","\u65f6"),0);p(aa,ba.get("minute","\u5206"),33);p(aa,ba.get("second","\u79d2"),66);var A=$("<div>");w(A,l(),0);w(A,n(),33);w(A,r(),66);d=$("<div>");d.append(aa);d.append(A);v.layoutCtrlWithLRTB(aa,0,0,null,0,null,36);v.layoutCtrlWithLRTB(A,0,0,null,36,0,null);c.setUiBackgroundEnabled(d,!0)}return d};
this.suggestSize=function(){return[168,208]};this.setSelected=function(aa,A,L){l().setSelecteds([aa]);n().setSelecteds([A]);r().setSelecteds([L]);l().scrollSelectedToVisible();n().scrollSelectedToVisible();r().scrollSelectedToVisible()};this.getHour=function(){return l().getSelecteds()[0]};this.getMinute=function(){return n().getSelecteds()[0]};this.getSecond=function(){return r().getSelecteds()[0]};this.addSelectedChangedListener=function(aa){b.push(aa)};var p=function(aa,A,L){var ha=$("<div>");
ha.text(A);ha.css("text-align","center");v.layoutCtrlWithLRTB(ha,0,0,null);v.layoutCtrlMiddleAlign(ha,20);A=$("<div>");A.append(ha);B(aa,A,L)},w=function(aa,A,L){A=A.getJqUi();B(aa,A,L);0<L&&A.addClass("sa-ctrl-date-separater")},B=function(aa,A,L){A.css("box-sizing","border-box");v.layoutCtrl(A,L+"%",0,"34%","100%");A.appendTo(aa)},l=function(){!e&&(e=z(24));return e},n=function(){!g&&(g=z(60));return g},r=function(){!k&&(k=z(60));return k},z=function(aa){var A=new P;A.setItemModels(T(aa));A.setSelecteds([0]);
A.setScrollerShy(!0);A.setToggleSelectingEnabled(!1);A.setBorderVisible(!1);A.setCustomItemPainter(function(L,ha){L.css({"padding-left":"20px",height:"26px","line-height":"26px"});L.text(10>ha?"0"+ha:ha)});A.addSelectedChangedListener(function(L,ha,Z){for(L=0;L<b.length;L++)(0,b[L])(h)});return A},T=function(aa){for(var A=[],L=0;L<aa;L++)A.push(L);return A}}function ra(){za.call(this);var h=[ba.get("sunday","\u65e5"),ba.get("monday","\u4e00"),ba.get("tuesday","\u4e8c"),ba.get("wednesday","\u4e09"),
ba.get("thursday","\u56db"),ba.get("friday","\u4e94"),ba.get("saturday","\u516d")],c=this,b=this.protectedMethod,d,e,g=1;this.setStartDayOfWeek=function(w){g=w;p()};this.setCurrentMonth=function(w,B){k(w,B-1)};var k=function(w,B){e=ra.createDateObject(w,B,1);p()};this.getJqUi=function(){d||(d=$("<div>"),b.setUiBackgroundEnabled(d,!0),p());return d};this.suggestSize=function(){return[240,232]};var p=function(){if(d&&e){var w=$("<div>");v.layoutCtrlWithLRTB(w,8,8,null,2,6,null);for(var B=100/7,l=100/
7,n=B+"%",r=l+"%",z=0;7>z;z++){var T=(z+g)%7,aa=new J;aa.setText(h[T]);aa.setAlign(J.ALIGN_CENTER);aa.getJqUi().css({"font-weight":"bold"});aa.getJqUi().appendTo(w);T=z*B+"%";v.layoutCtrl(aa.getJqUi(),T,0,n,r)}z=e.getFullYear();aa=e.getMonth();var A=e.getDay(),L=ra.createToday();T=L.getFullYear();var ha=L.getMonth(),Z=L.getDate(),ua=aa+1;L.setFullYear(z,ua,0);var W=L.getDate();L.setFullYear(z,aa,0);var H=L.getFullYear(),f=L.getMonth(),u=L.getDate();L.setFullYear(z,ua,1);ua=L.getFullYear();L=L.getMonth();
A=(A-g+7)%7;for(var O=0;42>O;O++){var G=(O+g)%7,S=O%7,fa=(1+parseInt(O/7))*l+"%",K=S*B+"%";S=$("<div>");S.appendTo(w);v.layoutCtrl(S,K,fa,n,r);O<A?(K=u-A+O+1,fa=Z==K&&ha==f&&T==H,c.protectedDrawOneDay(S,!1,K,f,H,G,fa)):O<A+W?(K=O-A+1,fa=Z==K&&ha==aa&&T==z,c.protectedDrawOneDay(S,!0,K,aa,z,G,fa)):(K=O-A-W+1,fa=Z==K&&ha==L&&T==ua,c.protectedDrawOneDay(S,!1,K,L,ua,G,fa))}d.empty();d.append(w);c.protectedUpdateUi()}};this.protectedUpdateUi=function(){};this.protectedDrawOneDay=function(w,B,l,n,r,z,T){n=
new J;n.setText(l);n.setAlign(J.ALIGN_CENTER);n.getJqUi().appendTo(w);v.layoutCtrlWithLRTB(n.getJqUi(),0,0,null,0,0,null);!B&&n.setEnabled(!1)};this.protectedMethod.getCurrentMonthObject=function(){return e};this.protectedMethod.updateCurrentMonth=k;this.protectedMethod.updateUi=p}function pa(){function h(){this.slide=function(W,H,f,u){var O=new Oa;O.setSelectedYear(H);O.setSelectedMonth(f+1);H=new Q;H.setText(ba.get("ok","\u786e\u5b9a"));H.addActionListener(function(fa){S.animate({height:0},275,
function(){S.remove();var K=O.getSelectedYear(),D=O.getSelectedMonth();u(K,D-1)})});f=new Q;f.setText(ba.get("toCurrentMonth","\u672c\u6708"));f.addActionListener(function(fa){S.remove();fa=ra.createToday();u(fa.getFullYear(),fa.getMonth())});var G=$("<div>");G.addClass("sa-ctrl-date-foot");G.append(H.getJqUi());G.append(f.getJqUi());v.layoutCtrlWithLRTB(f.getJqUi(),4,null,60,null,4,24);v.layoutCtrlWithLRTB(H.getJqUi(),null,4,60,null,4,24);var S=$("<div>");S.addClass("sa-ctrl-common-popup");d.setUiBackgroundEnabled(S,
!0);S.append(O.getJqUi());S.append(G);v.layoutCtrlWithLRTB(O.getJqUi(),0,0,null,0,32,null);v.layoutCtrlWithLRTB(G,0,0,null,null,0,32);H=W.prop("offsetTop")+W.prop("offsetHeight");f=W.parent().prop("clientHeight")-H-6;S.appendTo(W.parent());v.layoutCtrlWithLRTB(S,6,6,null,H,null,null);S.animate({height:f},325,function(){O.scrollSelectedToVisible()})}}za.call(this);ra.call(this);var c=ra.getDisplayMonths(),b=this,d=this.protectedMethod,e,g,k,p,w,B=[],l;this.addSelectedChangedListener=function(W){B.push(W)};
this.setCurrentMonthNavigatorListener=function(W){w=W};var n=this.suggestSize;this.suggestSize=function(){var W=n();return[W[0],W[1]+36]};var r=this.getJqUi;this.getJqUi=function(){if(!e){e=$("<div>");k=r();g=$("<div>");g.addClass("sa-ctrl-date-head");g.css("cursor","pointer");g.on("click",ua);var W=ha("<",-1),H=ha(">",1);v.layoutCtrlWithLRTB(W,0,null,40,0,0,null);v.layoutCtrlWithLRTB(H,null,0,40,0,0,null);k.on("mouseover",A);k.on("mouseleave",L);e.append(g);e.append(k);v.layoutCtrlWithLRTB(g,0,0,
null,0,null,36);v.layoutCtrlWithLRTB(k,0,0,null,36,0,null);b.protectedUpdateUi()}return e};this.setSelected=function(W,H,f){--H;z().setFullYear(W,H,f);d.updateCurrentMonth(W,H)};this.isSelected=function(){return l?!0:!1};this.getSelectedYear=function(){return z().getFullYear()};this.getSelectedMonth=function(){return z().getMonth()+1};this.getSelectedDay=function(){return z().getDate()};var z=function(){!l&&(l=ra.createToday());return l},T=function(W,H,f){return l&&l.getDate()==f&&l.getMonth()==H&&
l.getFullYear()==W};this.protectedUpdateUi=function(){var W=d.getCurrentMonthObject();if(g&&W){W=ba.get("yearMonthFormat","#1\u5e74 #2").replace("#1",W.getFullYear()).replace("#2",c[W.getMonth()]);var H=$("<div>");H.text(W);H.addClass("sa-ctrl-date-head-month");g.children(".sa-ctrl-date-head-month").remove();g.append(H);v.layoutCtrlWithLRTB(H,40,40,null);v.layoutCtrlMiddleAlign(H,36)}};this.protectedDrawOneDay=function(W,H,f,u,O,G,S){G=$("<div>");v.layoutCtrlCenterAlign(G,26);v.layoutCtrlMiddleAlign(G,
26);G.text(f);G.css("text-align","center");G.css("line-height","24px");G.css("border-radius","13px");G.css("box-sizing","border-box");G.addClass("sa-ctrl-date-day");H?T(O,u,f)?G.addClass("sa-ctrl-date-day-selected"):G.addClass("sa-ctrl-date-day-normal"):G.addClass("sa-ctrl-date-day-adjacent");W.append(G);W.addClass("sa-ctrl-date-cell");W.css("cursor","pointer");W.on("click",function(fa){T(O,u,f)?!H&&d.updateCurrentMonth(O,u):(z().setFullYear(O,u,f),H?d.updateUi():d.updateCurrentMonth(O,u));for(fa=
0;fa<B.length;fa++)(0,B[fa])(b)});S&&aa(W)};var aa=function(W){var H=$("<div>");H.css("border-radius","2px");H.addClass("sa-ctrl-date-day-today");H.appendTo(W);v.layoutCtrlWithLRTB(H,null,null,null,null,3,4);v.layoutCtrlCenterAlign(H,4)},A=function(W){W=$(W.target);var H=(W=(W=v.upwardSearchHasClass(W,k,"sa-ctrl-date-cell"))?W.children(".sa-ctrl-date-day"):null)?W[0]:null,f=k.find(".sa-ctrl-date-day_hover");H!=f[0]&&(f.removeClass("sa-ctrl-date-day_hover"),W&&W.addClass("sa-ctrl-date-day_hover"))},
L=function(W){k.find(".sa-ctrl-date-day_hover").removeClass("sa-ctrl-date-day_hover")},ha=function(W,H){var f=$("<div>");f.text(W);f.css("transform","scaleY(1.5) translateY(-2px)");W=$("<div>");W.addClass("sa-ctrl-date-head-handler");W.on("click",function(u){var O=d.getCurrentMonthObject(),G=O.getFullYear();O=O.getMonth();d.updateCurrentMonth(G,O+H);u.stopPropagation()});W.append(f);v.layoutCtrlCenterAlign(f,16);v.layoutCtrlMiddleAlign(f,16);g.append(W);return W},Z=function(W){g.children(".sa-ctrl-date-head-handler").css("display",
W?"":"none");g.css("cursor",W?"pointer":"")},ua=function(W){if(!p){p=new h;var H=d.getCurrentMonthObject();W=H.getFullYear();H=H.getMonth();p.slide(g,W,H,function(f,u){d.updateCurrentMonth(f,u);p=null;Z(!0);w&&w(b,!1)});Z(!1);w&&w(b,!0)}}}function Da(){var h=this,c,b=new P;this.getJqUi=function(){c||(c=$("<div>"),h.setYearScope(1900,2199),d(b),b.getJqUi().appendTo(c),h.protectedInitUi(c,b));return c};this.scrollSelectedToVisible=function(){b.scrollSelectedToVisible();h.protectedScrollSelectedToVisible()};
this.protectedScrollSelectedToVisible=function(){throw Error("Implement");};this.setYearScope=function(g,k){g=e(g,k);b.setItemModels(g)};this.getSelectedYear=function(){var g=b.getSelecteds();return 0<g.length?g[0]:null};this.setSelectedYear=function(g){b.setSelecteds([g])};this.protectedInitUi=function(g,k){throw Error("Implement");};var d=function(g,k){g.setScrollerShy(!0);g.setToggleSelectingEnabled(!1);g.setBorderVisible(!1);g.setCustomItemPainter(function(p,w){p.css({"padding-left":"40px",height:"26px",
"line-height":"26px"});p.text(k?k[w]:w)})},e=function(g,k){for(var p=[];g<=k;g++)p.push(g);return p};this.protectedMethod={initList:d,createSelectableItems:e}}function Ba(){Da.call(this);var h=this.protectedMethod,c=new P;this.getSelectedQuarter=function(){var b=c.getSelecteds();return 0<b.length?b[0]:null};this.setSelectedQuarter=function(b){c.setSelecteds([b])};this.protectedInitUi=function(b,d){for(var e=[],g=0;3>=g;g++)e[g]=ba.get("quarter","\u7b2c #1 \u5b63\u5ea6").replace("#1",g+1);h.initList(c,
e);e=h.createSelectableItems(0,3);c.setItemModels(e);c.getJqUi().addClass("sa-ctrl-date-separater");c.getJqUi().appendTo(b);v.layoutCtrlWithLRTB(d.getJqUi(),0,null,"50%",0,0,null);v.layoutCtrlWithLRTB(c.getJqUi(),null,0,"50%",0,0,null)};this.protectedScrollSelectedToVisible=function(){c.scrollSelectedToVisible()}}function Oa(){Da.call(this);var h=this.protectedMethod,c=new P;this.getSelectedMonth=function(){var b=c.getSelecteds();return 0<b.length?b[0]+1:null};this.setSelectedMonth=function(b){c.setSelecteds([b-
1])};this.protectedInitUi=function(b,d){h.initList(c,ra.getDisplayMonths());var e=h.createSelectableItems(0,11);c.setItemModels(e);c.getJqUi().addClass("sa-ctrl-date-separater");c.getJqUi().appendTo(b);v.layoutCtrlWithLRTB(d.getJqUi(),0,null,"50%",0,0,null);v.layoutCtrlWithLRTB(c.getJqUi(),null,0,"50%",0,0,null)};this.protectedScrollSelectedToVisible=function(){c.scrollSelectedToVisible()}}function Ta(){za.call(this);Ga.call(this);var h=this,c=this.protectedMethod,b,d=!1,e;this.showFeature=function(p){k().showFeature(p)};
this.isShowFeature=function(){return k().isShowFeature()};this.setEnabled=function(p){k().setEnabled(p)};this.isEnabled=function(){return k().isEnabled()};this.addModelChangedListener=function(p){k().addSelectionListener(function(w,B){B&&(e=w.getSelectedModel(),p(h))})};this.getJqUi=function(){return k().getJqUi()};this.setSelectedNullable=function(p){d=p};this.isSelectedNullable=function(){return d};this.isSelectedNull=function(){return!e};this.setDateObject=function(p){if(!d&&!p)throw Error("Illegal argument");
e=p;k().setSelectedModel(e)};this.getDateObject=function(){return e};this.getYear=function(){return e.getFullYear()};this.getMonth=function(){return e.getMonth()+1};this.getDay=function(){return e.getDate()};var g=function(p,w){var B="";p&&(B=new Y,B.setFormatString(h.protectedGetFormatString()),B=B.format(p));w.text(B)};this.protectedGetFormatString=function(){return"yyyy-MM-dd"};var k=function(){b||(b=new Wa,b.setIconName("calendar"),b.setCustomPainter(g),b.setDropdownCreator(function(p,w,B,l){c.setUiBackgroundEnabled(p,
!0);l=new pa;if(w)l.setSelected(w.getFullYear(),w.getMonth()+1,w.getDate());else{var n=ra.createToday();l.setCurrentMonth(n.getFullYear(),n.getMonth()+1)}p.append(l.getJqUi());return h.protectedCreatePopupUi(p,w,B,l)}));return b};this.protectedCreatePopupUi=function(p,w,B,l){l.addSelectedChangedListener(function(T){T=ra.createDateObject(l.getSelectedYear(),l.getSelectedMonth()-1,l.getSelectedDay());B(T)});var n=l.suggestSize();w=n[0];n=n[1];if(d){var r=new Q;r.setText(ba.get("clean","\u6e05\u7a7a"));
r.addActionListener(function(T){B(null)});var z=$("<div>");z.addClass("sa-ctrl-date-foot");z.append(r.getJqUi());v.layoutCtrlWithLRTB(r.getJqUi(),4,null,60,null,4,24);p.append(z);v.layoutCtrlWithLRTB(l.getJqUi(),0,0,null,0,32,null);v.layoutCtrlWithLRTB(z,0,0,null,null,0,32);n+=32}else v.layoutCtrlWithLRTB(l.getJqUi(),0,0,null,0,0,null);return[w,n]}}function Wa(){za.call(this);Ga.call(this);var h=this.protectedMethod,c=this,b,d,e,g,k,p,w,B,l=[],n=["arrow-down","arrow-up"];this.getSelectedModel=function(){return b};
this.setSelectedModel=function(H){b=H;A();r(!1)};this.addSelectionListener=function(H){l.push(H)};this.removeSelectionListener=function(H){for(var f=l.length-1;0<=f;f--)l[f]==H&&l.splice(f,1)};var r=function(H){for(var f=0;f<l.length;f++)(0,l[f])(c,H)};this.setCustomPainter=function(H){B=H;A()};this.setDropdownCreator=function(H){p=H};var z=function(H){return p(H,b,function(f){Z();b=f;A();r(!0)},function(){Z()},function(f){w=f})};this.getJqUi=function(){d||T();return d};this.setIconName=function(H,
f){n=[H,f?f:H]};this.protectedUpdateFeatureDisplay=function(){d&&(e.css("display",c.isShowFeature()?"":"none"),h.setUiBorderVisible(d,c.isShowFeature()))};var T=function(){d=$("<div>");d.addClass("sa-ctrl-combobox");d.on("click",ha);g=$("<div>");g.addClass("sa-ctrl-combobox-text");g.appendTo(d);e=$("<div>");e.addClass("sa-ctrl-combobox-arrow");e.appendTo(d);e.on("mouseenter",function(H){c.isEnabled()&&L(!0)});e.on("mouseleave",function(H){c.isEnabled()&&L(!1)});L(!1);A();c.protectedUpdateEnabledState()},
aa=function(H,f){f.text(H?H:"")},A=function(){g&&(B?B:aa)(b,g)},L=function(H){var f=k?n[1]:n[0];H&&(f+="_hover");I.background(e,f)};this.protectedUpdateEnabledState=function(){d&&(h.setUiBorderEnabled(d,c.isEnabled()),h.setUiBackgroundEnabled(d,c.isEnabled()),h.setUiForegroundEnabled(d,c.isEnabled()),c.isEnabled()?e.css({cursor:"pointer",opacity:""}):e.css({cursor:"",opacity:"0.4"}));c.protectedUpdateFeatureDisplay()};var ha=function(H){if(c.isEnabled())if(k)Z();else{H=$(document.body);k=$("<div>");
k.addClass("sa-ctrl-common-popup");k.addClass("sa-ctrl-common-unselectable");k.appendTo(H);var f=z(k),u=f?f[0]:-1,O=f?f[1]:-1;f=H.prop("clientWidth");var G=H.prop("clientHeight"),S=G>>1,fa=d.outerWidth(),K=d.outerHeight(),D=Math.max(0,S-K),F=[0,K-1];F=v.upwardCoordinate(d[0],F,H[0]);var ja=F[0],qa=F[1];u=0>u?fa:u;O=0>O?D:O;qa+O>G&&(qa>S+K?(F=[0,0],F=v.upwardCoordinate(d[0],F,H[0]),G=F[1]-O+1,0<=G?qa=G:(qa=2,O=F[1]-2)):O=G-qa-2);ja+u>f-10&&(ja=f-u-10,0>ja&&(ja=0));v.layoutCtrl(k,ja,qa,u,O);H.on("mousedown",
W);H.on("wheel",ua);$(window).on("resize",Z);L(!1);w&&w()}},Z=function(){if(k){var H=$(document.body);H.off("mousedown",W);H.off("wheel",ua);$(window).off("resize",Z);k.remove();k=null;L(!1)}},ua=function(H){v.isDescendent(H.target,k[0])||Z()},W=function(H){d.is(":visible")&&(v.isDescendent(H.target,d[0])||v.isDescendent(H.target,k[0]))||Z()}}function ab(){var h,c=new bb,b=ab.ICON_TYPE_QUESTION;this.setIconType=function(e){b=e;d()};this.getJqUi=function(){h||(h=$("<div>"),d(),c.mounting(h));return h};
this.setTipsHtml=function(e){c.setHtml(e)};this.setTipsText=function(e){c.setText(e)};this.setTipsSize=function(e,g){c.setSuggestedSize(e,g)};this.setContainer=function(e){c.setContainer(e)};var d=function(){if(h)if(b==ab.ICON_TYPE_QUESTION)I.background(h,"question"),h.addClass("sa-ctrl-helpicon-question");else if(b==ab.ICON_TYPE_INFO)I.background(h,"info"),h.addClass("sa-ctrl-helpicon-info");else throw Error("The icon type error, please set first.");}}function bb(){var h,c,b=$("<div>"),d,e,g;this.setText=
function(n){b.text(n)};this.setHtml=function(n){b.html(n)};this.setSuggestedSize=function(n,r){h=n;c=r};this.setContainer=function(n){e=n};this.mounting=function(n){n.off("mouseenter",k);n.off("mouseleave",p);n.on("mouseenter",k);n.on("mouseleave",p)};var k=function(n){clearTimeout(g);B();n=$(n.currentTarget);var r=e?e:$(document.body);w().appendTo(r);b.on("mouseenter",function(z){clearTimeout(g)});b.on("mouseleave",function(z){clearTimeout(g);B()});l(r,n)},p=function(n){clearTimeout(g);g=setTimeout(B,
125)},w=function(){d||(d=$("<div>"),d.addClass("sa-ctrl-tips-arrow"),b.css("overflow","auto"),b.css({"box-sizing":"border-box","white-space":"pre-wrap"}),b.addClass("sa-ctrl-tips-content"));var n=$(document.createDocumentFragment());n.append(b);n.append(d);return n},B=function(){d&&d.remove();b&&b.remove()},l=function(n,r){var z=n.innerWidth(),T=n.innerHeight(),aa=r.width()>>1,A=r.height()>>1,L=[aa,A];L=v.upwardCoordinate(r[0],L,n[0]);n=L[0];L=L[1];r=h;var ha=c;r&&ha||(b.css("max-width",z+"px"),v.layoutCtrl(b,
-1E3,-1E3,"auto","auto"),r=b.outerWidth(),ha=b.outerHeight());var Z="N",ua=L+A+5;if(ua+ha>T-4&&(Z="S",ua=L-A-5-ha,4>ua)){Z="W";var W=n+aa+5;W+r>z-4&&(Z="E",W=n-aa-5-r,4>W&&(n<.5*z?(Z="W",W=z-4-r,W<n+5&&(W=n+5,r=z-4-W)):(aa=4-W,W+=aa,r-=aa)))}if("N"==Z||"S"==Z){W=n-10;W+r>z-4&&(W=z-4-r,4>W&&(r-=4-W,W=4));var H=n-4;var f=ua+("S"==Z?ha:0)-5}else if("W"==Z||"E"==Z)ua=L-10,ua+ha>T-4&&(ua=T-4-ha,4>ua&&(ha-=4-ua,ua=4)),f=L-4,H=W+("E"==Z?r:0)-5;d.css("transform","rotate("+("N"==Z?45:"E"==Z?135:"S"==Z?225:
"W"==Z?315:0)+"deg)");v.layoutCtrl(d,H,f,8,8);v.layoutCtrl(b,W,ua,r,ha)}}function Aa(){var h=this,c=255,b=255,d=255,e=[];this.addChangedListener=function(k){e.push(k)};this.getRed=function(){return c};this.getGreen=function(){return b};this.getBlue=function(){return d};this.setRgb=function(k,p,w){k=Math.max(0,Math.min(255,parseInt(k)));p=Math.max(0,Math.min(255,parseInt(p)));w=Math.max(0,Math.min(255,parseInt(w)));if(c!=k||b!=p||d!=w)for(c=k,b=p,d=w,k=0;k<e.length;k++)(0,e[k])(h)};this.setHsl=function(k,
p,w){k=ca.hslToRgb(k,p,w);h.setRgb(k[0],k[1],k[2])};this.decodeFrom=function(k){(k=ca.decodeStringToRgbArray(k))&&h.setRgb(k[0],k[1],k[2])};this.encodeToHexRgb=function(){return"#"+g(c)+g(b)+g(d)};var g=function(k){var p=k.toString(16).toUpperCase();return 16>k?"0"+p:p};this.isEquals=function(k){return k instanceof Aa?c==k.getRed()&&b==k.getGreen()&&d==k.getBlue():!1}}function cb(){function h(){C.call(this);var A=this.protectedMethod,L=this,ha=this.showDialog;this.showDialog=function(Z,ua){var W=
new c;W.setColor(Z.getRed(),Z.getGreen(),Z.getBlue());L.setSize(420,300);A.setTitle(ba.get("otherColorDialogTitle","\u989c\u8272"));A.setContentPaneCreator(function(){return W.createJqUi()});A.setClosingAction(function(H){H&&ua(W.getColor())});ha();W.model2Ui()}}function c(){var A=0,L=0,ha=0,Z=0,ua=0,W=0,H,f,u,O,G,S,fa,K,D,F,ja=!1;this.setColor=function(Fa,Ra,Pa){qa(Fa,Ra,Pa)};this.getColor=function(){return[A,L,ha]};var qa=function(Fa,Ra,Pa){A=Fa;L=Ra;ha=Pa;Fa=ca.rgbToHsl(A,L,ha);Z=Fa[0];ua=Fa[1];
W=Fa[2];ya()},ma=function(Fa,Ra,Pa){Z=Fa;ua=Ra;W=Pa;Fa=ca.hslToRgb(Z,ua,W);A=Fa[0];L=Fa[1];ha=Fa[2];ya()};this.createJqUi=function(){var Fa=na.createCanvas(),Ra=na.createContext2d(Fa,160,160),Pa=Ra.createLinearGradient(0,0,160,0);Pa.addColorStop(0,"hsl(0, 100.0%, 50.0%)");Pa.addColorStop(1/6,"hsl(60, 100.0%, 50.0%)");Pa.addColorStop(2/6,"hsl(120, 100.0%, 50.0%)");Pa.addColorStop(.5,"hsl(180, 100.0%, 50.0%)");Pa.addColorStop(4/6,"hsl(240, 100.0%, 50.0%)");Pa.addColorStop(5/6,"hsl(300, 100.0%, 50.0%)");
Pa.addColorStop(1,"hsl(360, 100.0%, 50.0%)");Ra.fillStyle=Pa;Ra.fillRect(0,0,160,160);Ra=Fa.getContext("2d");Pa=Ra.createLinearGradient(0,0,0,160);Pa.addColorStop(0,"hsla(0, 100.0%, 50.0%, 0)");Pa.addColorStop(1,"hsla(0, 00.0%, 50.0%, 1)");Ra.fillStyle=Pa;Ra.fillRect(0,0,160,160);f=$(Fa);Fa=$("<div>");Fa.css({border:"1px solid #000","border-radius":"14px"});O=Fa;Fa=$(na.createCanvas());Fa.css("cursor","pointer");Fa.on("click",Ya);u=Fa;Fa=$("<div>");Fa.css({cursor:"pointer",width:0,height:0,"border-width":"5px 10px 5px 0",
"border-style":"solid","border-color":"transparent #333 transparent transparent"});fb(Fa);G=Fa;Fa=$("<div>");Fa.css("cursor","pointer");Fa.on("click",Ia);eb(Fa);S=ia();fa=ia();K=ia();D=new y;D.addEditedListener(db);F=$("<div>");F.addClass("sa-ctrl-colorchooser-preview");Ra=q(ba.get("red","\u7ea2\u8272"),S);Pa=q(ba.get("green","\u7eff\u8272"),fa);var kb=q(ba.get("blue","\u84dd\u8272"),K),lb=q(ba.get("colorHex","\u8272\u503c"),D),Za=8,gb=8;v.layoutCtrl(f,Za,gb,160,160);v.layoutCtrl(O,Za,gb,12,12);v.layoutCtrl(Fa,
Za,gb,160,160);Za+=175;v.layoutCtrl(u,Za,gb,15,160);Za+=15;v.layoutCtrl(G,Za,gb,0,0);Za+=60;v.layoutCtrl(Ra,Za,gb,120,23);gb+=33;v.layoutCtrl(Pa,Za,gb,120,23);gb+=33;v.layoutCtrl(kb,Za,gb,120,23);gb+=33;v.layoutCtrl(lb,Za,gb,120,23);v.layoutCtrl(F,Za,gb+38,120,23);H=$("<div>");H.append(f);H.append(O);H.append(Fa);H.append(u);H.append(G);H.append(Ra);H.append(Pa);H.append(kb);H.append(lb);H.append(F);return H};this.model2Ui=function(){ya()};var q=function(Fa,Ra){var Pa=new J;Pa.setText(Fa);v.layoutCtrlWithLRTB(Pa.getJqUi(),
0,null,50,0,0,null);v.layoutCtrlWithLRTB(Ra.getJqUi(),50,0,null,0,0,null);Fa=$("<div>");Fa.append(Pa.getJqUi());Fa.append(Ra.getJqUi());return Fa},ia=function(){var Fa=new t;Fa.addValueChangedListener($a);Fa.setConstraint(0,255,1);return Fa},ya=function(){if(H){var Fa=Z,Ra=ua,Pa=na.createContext2d(u[0],15,160),kb=Pa.createLinearGradient(0,0,0,160);kb.addColorStop(0,"#fff");kb.addColorStop(.5,"hsl("+Fa+","+Ra+"%, 50.0%)");kb.addColorStop(1,"#000");Pa.fillStyle=kb;Pa.fillRect(0,0,15,160);Fa=W;Fa=u.prop("offsetTop")+
160*(100-Fa)/100-5;G.css("top",Fa);Fa=Z;Ra=ua;Pa=f.prop("offsetLeft");kb=f.prop("offsetTop");O.css({left:Pa+160*Fa/360-7,top:kb+160*(100-Ra)/100-7});ja=!0;S.setValue(A);fa.setValue(L);K.setValue(ha);ja=!1;Fa=new Aa;Fa.setRgb(A,L,ha);Fa=Fa.encodeToHexRgb();D.setText(Fa);F.css("background-color",Fa)}},Ia=function(Fa){var Ra=v.getCurrentTargetPosition(Fa);Fa=Ra[1];Ra=parseInt(Ra[0]/160*360);Fa=parseInt(100-100*Fa/160);ma(Ra,Fa,W)},Ya=function(Fa){Fa=v.getCurrentTargetPosition(Fa)[1];Fa=parseInt(100-
100*Fa/160);ma(Z,ua,Fa)},$a=function(Fa,Ra,Pa){ja||(Fa=S.getValue(),Ra=fa.getValue(),Pa=K.getValue(),qa(Fa,Ra,Pa))},db=function(Fa){var Ra=$.trim(D.getText()),Pa=Ra.replace(/[^0-9a-f]/gi,"");Pa=6<Pa.length?Pa.substr(0,6):Pa;Pa="#"+Pa;Ra!=Pa&&Fa.setText(Pa);ca.isSimpleHexRgb(Pa)||(Fa=ca.decodeStringToRgbArray(Pa))&&qa(Fa[0],Fa[1],Fa[2])},fb=function(Fa){var Ra,Pa;Fa.on("mousedown",function(Za){Ra=Za.screenY;Za=[0,5];Za=v.upwardCoordinate(G[0],Za,H[0]);var gb=[0,0];gb=v.upwardCoordinate(u[0],gb,H[0]);
Pa=Za[1]-gb[1];Za=$(document.body);Za.css("cursor","pointer");Za.on("mousemove",kb);Za.on("mouseup",lb);Za.on("mouseleave",lb)});var kb=function(Za){Za=Pa+(Za.screenY-Ra);0>Za?Za=0:160<Za&&(Za=160);Za=parseInt(100-100*Za/160);ma(Z,ua,Za)},lb=function(Za){Za=$(document.body);Za.off("mousemove",kb);Za.off("mouseup",lb);Za.off("mouseleave",lb);Za.css("cursor","default")}},eb=function(Fa){var Ra,Pa,kb,lb;Fa.on("mousedown",function(Na){var jb=v.getCurrentTargetPosition(Na);Ra=jb[0];Pa=jb[1];kb=Na.screenX;
lb=Na.screenY;Na=$(document.body);Na.css("cursor","pointer");Na.on("mousemove",Za);Na.on("mouseup",gb);Na.on("mouseleave",gb)});var Za=function(Na){var jb=Ra+(Na.screenX-kb);Na=Pa+(Na.screenY-lb);Na=0>Na?0:160<Na?160:Na;jb=parseInt((0>jb?0:160<jb?160:jb)/160*360);Na=parseInt(100-100*Na/160);ma(jb,Na,W)},gb=function(Na){Na=$(document.body);Na.off("mousemove",Za);Na.off("mouseup",gb);Na.off("mouseleave",gb);Na.css("cursor","default")}}}za.call(this);var b=this,d=Ka,e,g,k=[],p,w;this.setColorPool=function(A){d=
A;w=null};var B=function(){if(!w){w={};for(var A=0;A<d.length;A++)for(var L=d[A],ha=0;ha<L.length;ha++)w[L[ha].toUpperCase()]=!0}return d};this.getModel=function(){e||(e=new Aa,e.addChangedListener(r));return e};this.setOpenDialogListener=function(A){g=A};this.addSelectedListener=function(A){k.push(A)};var l=function(){for(var A=0;A<k.length;A++)(0,k[A])(b.getModel())};this.createJqUi=function(){var A=$("<div>");A.on("click",T);A.addClass("sa-ctrl-colorchooser-pallet");for(var L=B().length,ha=B()[0].length,
Z=21*ha-2,ua=6,W=0;W<L;W++){for(var H=0;H<ha;H++){var f=B()[W][H];f=n(f,!0);f.appendTo(A);var u=6+21*H;v.layoutCtrl(f,u,ua,19,19)}ua+=21}L=La.getRecent(ha);if(0<L.length){H=$("<div>");H.css("border-top","1px solid #f0f0f0");H.appendTo(A);v.layoutCtrl(H,0,ua,"100%",0);ua+=2;for(H=0;H<L.length;H++)f=L[H],ha=!w[f.toUpperCase()],f=n(f,ha),f.appendTo(A),u=6+21*H,v.layoutCtrl(f,u,ua,19,19);ua+=21}H=ba.get("otherColor","\u5176\u5b83\u989c\u8272");L=ua;ha=$("<div>");ha.text(H);ha.addClass("sa-ctrl-colorchooser-pallet-other");
ha.addClass("sa-ctrl-colorchooser-pallet-item");ha.css("line-height","17px");v.layoutCtrl(ha,6,L,Z,19);ha.on("click",aa);ha.appendTo(A);ua=ua+19+6;A.css("width",Z+12);A.css("height",ua);return p=A};var n=function(A,L){var ha=new Aa;ha.decodeFrom(A);var Z=$("<div>");Z.attr("title",A.toUpperCase());Z.addClass("sa-ctrl-colorchooser-pallet-item");Z.data("model",ha);var ua=$("<span>");ua.addClass("sa-ctrl-colorchooser-pallet-iteminner");ua.css("background-color",A);ua.appendTo(Z);v.layoutCtrlWithLRTB(ua,
1,1,null,1,1,null);L&&b.getModel().isEquals(ha)&&z(Z);return Z},r=function(A){if(p){var L=p.find(".sa-ctrl-colorchooser-pallet-item");L.removeClass("sa-ctrl-colorchooser-pallet-item_selected");for(var ha=0;ha<L.length;ha++){var Z=$(L[ha]);A=Z.data("model");if(b.getModel().isEquals(A)){z(Z);break}}}},z=function(A){A.addClass("sa-ctrl-colorchooser-pallet-item_selected")},T=function(A){var L=$(A.currentTarget);A=$(A.target);if(A=v.upwardSearchHasClass(A,L,"sa-ctrl-colorchooser-pallet-item"))if(L=A.data("model"))b.getModel().setRgb(L.getRed(),
L.getGreen(),L.getBlue()),l()},aa=function(){g&&g();(new h).showDialog(b.getModel(),function(A){b.getModel().setRgb(A[0],A[1],A[2]);l();A=b.getModel().encodeToHexRgb();w[A.toUpperCase()]||La.push(A)})}}function hb(){function h(){var l=$("<div>"),n,r,z=0;this.setSelectedListener=function(f){n=f};this.setItems=function(f,u){aa(f,u)};this.getJqUi=function(){l.addClass("sa-ctrl-lefttab-header");return l};this.refreshUi=function(){r();T()};this.jumpToTab=function(f,u){var O=z!=f;z=f;if(O&&u){f=null;u=
ha();for(O=0;O<u.length;O++){var G=u.eq(O);if(G.data("myIndex")==z){f=G;break}}ua(f)}};this.keepSelectedVisible=function(){T()};var T=function(){var f=ha().eq(z),u=f.parent(),O=u.prop("clientHeight"),G=u.prop("scrollTop"),S=G+O,fa=f.prop("offsetTop");f=fa+f.prop("offsetHeight");fa<G?u.animate({scrollTop:fa},125):f>S&&u.animate({scrollTop:f-O},125)},aa=function(f,u){var O=0,G=$("<div>");G.css({overflow:"hidden"});for(var S=0;S<=f.length;S++){var fa=$("<div>");if(S<f.length){var K=f[S].getTabHeadText();
fa.text(K);fa.attr("title",K);fa.data("myIndex",S)}else u=4;fa.addClass("sa-ctrl-lefttab-item");fa.css({position:"relative",height:u+"px","line-height":u+"px"});v.makeTextOmissible(fa);fa.appendTo(G);S==z&&H(fa);O+=u}G.on("click",Z);f=A(G,16);var D=f[0],F=f[1];r=function(){var ja=O>l.prop("clientHeight");D.css("display",ja?"":"none");F.css("display",ja?"":"none");ja=ja?16:0;v.layoutCtrlWithLRTB(G,0,0,null,ja,ja,null)};v.layoutCtrlWithLRTB(D,0,0,null,0,null,16);v.layoutCtrlWithLRTB(G,0,0,null,16,16,
null);v.layoutCtrlWithLRTB(F,0,0,null,null,0,16);l.append(G);l.append(D);l.append(F)},A=function(f,u){var O=L(f,-1,"up",function(G,S){G=G.prop("scrollTop")-0;return 0<=G&&G<=S},function(G,S){G.animate({top:2*u},50,function(){G.animate({top:u},500,S)})});O.css("background-color","transparent");f=L(f,1,"down",function(G,S){G=G.prop("scrollHeight")-G.prop("clientHeight")-G.prop("scrollTop");return 0<=G&&G<=S},function(G,S){O.css("background-color","");G.animate({top:0,bottom:2*u},50,function(){G.animate({top:u,
bottom:u},500,function(){O.css("background-color","transparent");S()})})});return[O,f]},L=function(f,u,O,G,S){var fa,K=!1,D=$("<div>");D.addClass("sa-ctrl-lefttab-thumb-"+O);D.on("mouseenter",function(ja){F.addClass("sa-ctrl-lefttab-arrow_hover");fa=setInterval(function(){var qa=f.prop("scrollTop");f.prop("scrollTop",qa+u);G(f,0)&&clearInterval(fa)},10)});D.on("mouseleave",function(ja){F.removeClass("sa-ctrl-lefttab-arrow_hover");clearInterval(fa)});D.on("click",function(ja){!K&&G(f,4)&&(K=!0,S(f,
function(){K=!1}))});var F=$("<div>");F.addClass("sa-ctrl-lefttab-arrow sa-ctrl-lefttab-arrow-"+O);F.appendTo(D);return D},ha=function(){return l.find(".sa-ctrl-lefttab-item")},Z=function(f){(f=v.upwardSearchHasClass($(f.target),$(f.currentTarget),"sa-ctrl-lefttab-item"))&&0<=f.data("myIndex")&&(z=f.data("myIndex"),ua(f))},ua=function(f){ha().removeClass("sa-ctrl-lefttab-item_selected");W(f);return f},W=function(f){f.addClass("sa-ctrl-lefttab-item_selected");T();n(z)},H=function(f){setTimeout(function(){W(f)},
0)}}za.call(this);var c=this.protectedMethod,b,d,e,g,k,p,w;this.setTabPanes=function(l){b=l};this.setTabHeadItemHeight=function(l){d=l};this.setTabHeadWidth=function(l){e=l};this.getJqUi=function(){!g&&B();return g};this.refreshUi=function(){p.refreshUi()};this.jumpToTab=function(l){return p.jumpToTab(l,g?!0:!1)};this.setBorderVisible=function(l){w=l};var B=function(l,n){g=$("<div>");k=$("<div>");k.on("click",function(r){p.keepSelectedVisible()});p=new h;p.setSelectedListener(function(r){r=b[r];var z=
r.getJqUi();v.layoutCtrlWithLRTB(z,0,0,null,0,0,null);k.children().css("display","none");k.append(z);z.css("display","block");r.into()});p.setItems(b,d);l=p.getJqUi();v.layoutCtrlWithLRTB(l,0,null,e,0,0,null);v.layoutCtrlWithLRTB(k,e,0,null,0,0,null);g.append(l);g.append(k);w&&c.createBorder(g)}}function ib(){var h=this,c=$("<div>"),b,d=$("<div>"),e=$("<div>"),g=$("<div>"),k=[],p=[],w,B,l,n,r;this.resize=function(){w&&(A(w),L(),l&&l.isShowing()&&(d.data("oDropdownSelectorMenu",null),l.hide()))};this.getJqUi=
function(){b||(c.addClass("sa-ctrl-dynamictab"),b=$("<div>"),b.addClass("sa-ctrl-dynamictab-container"),b.appendTo(c),e.addClass("sa-ctrl-dynamictab-arrow-left"),e.appendTo(c),e.css("display","none"),e.on("click",function(F){W();F=c.prop("clientWidth");var ja=82,qa=null;if(null!=n){for(var ma=n;0<=ma;ma--)if(ja+=u(p[ma]),ja+50>F){qa=ma+1;break}T(p[null==qa?0:qa],!1)}}),g.addClass("sa-ctrl-dynamictab-arrow-right"),g.appendTo(c),g.css("display","none"),g.on("click",function(F){c.prop("clientWidth");
null!=r&&(F=r,T(p[null==F?p.length-1:F],!1))}),d.addClass("sa-ctrl-dynamictab-hide-fold"),d.appendTo(c),d.css("display","none"),d.text("\u25b2"),d.on("click",function(F){var ja=[];if(null!=n)for(var qa=0;qa<=n;qa++)ja.push(p[qa]);if(null!=r)for(qa=r;qa<p.length;qa++)ja.push(p[qa]);ja&&0<ja.length&&ha(F,ja)}),w&&fa(w));c.resize(f);return c};var z=function(F){var ja=F.getId(),qa=F.getCloseable(),ma=$("<div>");ma.addClass("sa-ctrl-dynamictab-head");var q=$("<div>");q.addClass("sa-ctrl-dynamictab-head-text");
ma.attr("id",ja);ma.addClass("sa-ctrl-dynamictab-head");ma.appendTo(c);q.text(F.getTitle());q.attr("title",F.getTitle());q.appendTo(ma);q.on("click",function(ya){h.setSelectedTabPane(F);fa(F)});if(qa){ma.css("width",q[0].clientWidth+25+"px");F.setCloseCallback(function(ya){h.removeTab(ya)});var ia=$("<div>");ia.addClass("sa-ctrl-dynamictab-close");ia.text("\u00d7");ia.css("display","none");ia.css("left",q[0].clientWidth+5+"px");ia.on("click",function(){F.onClose()});ma.on("mouseover",function(){ia.css("display",
"block")});ma.on("mouseout",function(){ia.css("display","none")});ia.appendTo(ma)}};this.addTab=function(F,ja){if(!F)throw Error("Add Tab Error: Tab cannot be null!");for(var qa=null,ma=F.getId(),q=null,ia=0;ia<p.length;ia++)if(ma==p[ia].getId()){qa=p[ia];(ma=O(qa))&&"none"==ma[0].style.display&&(q=ia);break}if(ja){if(null!=q){T(qa,!0);return}if(qa){w&&qa.getId()==w.getId()||(h.setSelectedTabPane(F),fa(qa));return}}else if(null!=q||qa)return;p.push(F);aa();z(F);f(F);ja&&(h.setSelectedTabPane(F),fa(F))};
var T=function(F,ja){ja&&h.setSelectedTabPane(F);b&&F&&(A(F),L(),ja&&fa(F))};this.setSelectedTabPane=function(F){B=w;w=F};this.getSelectedTabPane=function(){return w};this.getDynamicTabPanes=function(){return p};this.removeTab=function(F){if(!F)throw Error("Close Tab Error: Tab cannot be null!");var ja=F.getId(),qa=H(ja);H(w.getId());var ma=p[p.length-1];var q=w;ja==w.getId()&&(q=ja==ma.getId()?Number(qa)-1:Number(qa)+1,q=p[q]);p.splice(qa,1);qa=F.getJqUi();$(qa[0]).remove();(F=O(F))&&F.remove();
T(q,!0);L();aa()};var aa=function(){var F=c.children(".sa-ctrl-dynamictab-container");p&&0==p.length?F.css("border","0px"):F.css("border-top","1px solid #ccc")};this.addTabSelectedListener=function(F){k.push(F)};var A=function(F){if(F){var ja=H(F.getId());if(ja){W();F=c.prop("clientWidth");for(var qa=82,ma=null,q=ja;q<p.length;q++)if(qa+=u(p[q]),qa+50>F){ma=q-1;break}if(null==ma)for(q=ja-1;0<=q;q--){qa+=u(p[q]);if(qa+50>F){ja=q+1;break}0==q&&(ja=null)}F=null==ma?p.length-1:ma;for(q=null==ja?0:ja;q<=
F;q++)S(p[q]);if(null!=ja){for(q=0;q<ja;q++)G(p[q]);n=ja-1}else n=null;if(null!=ma){for(q=ma+1;q<p.length;q++)G(p[q]);r=ma+1}else r=null}}},L=function(){n=0>n?null:n;null==n&&null==r?(d.css("display","none"),g.css("display","none"),e.css("display","none")):(d.css("display","block"),g.css("display","block"),e.css("display","block"),null==n&&null!=r?e.css("display","none"):null!=n&&null==r&&g.css("display","none"))},ha=function(F,ja){var qa=$(F.target),ma=$(F.currentTarget);if((l=ma.data("oDropdownSelectorMenu"))&&
l.isShowing())ma.data("oDropdownSelectorMenu",null),l.hide();else{F=$(document.documentElement.clientWidth)-200;l=new Xa;l.setWidth(F);var q=new Sa;Z(q,ja);l.setModel(q);l.setHideListener(function(){ma.data("oDropdownSelectorMenu",null)});ma.data("oDropdownSelectorMenu",l);l.show(c,F,0,qa,!0);l.getJqUi().addClass("sa-ctrl-dynamictab-hide-fold-drop")}},Z=function(F,ja){if(F&&ja)for(var qa in ja){var ma=Xa.createRadio(ja[qa].getTitle(),ja[qa].getId(),!1,ua);ma.setUserObject(ja[qa]);F.addItemModel(ma)}return F},
ua=function(F){F=F.getUserObject().getId();(F=H(F))&&T(p[F],!0)},W=function(){for(var F=0;F<p.length;F++)S(p[F])},H=function(F){var ja=null;if(F)for(var qa in p)if(F==p[qa].getId()){ja=qa;break}return ja},f=function(F){var ja=c.prop("clientWidth");if(p&&0<p.length){F=82+u(F);for(var qa=null,ma=p.length-2;0<=ma;ma--)if(F+=u(p[ma]),F+50>ja){qa=ma;break}if(null!=qa){for(ma=0;ma<=qa;ma++)G(p[ma]);n=qa;L()}}},u=function(F){return O(F).prop("offsetWidth")},O=function(F){return c.children("#"+F.getId())},
G=function(F){c.children("#"+F.getId()).css("display","none")},S=function(F){c.children("#"+F.getId()).css("display","block")},fa=function(F){var ja=O(F);c.children(".sa-ctrl-dynamictab-head").removeClass("sa-ctrl-dynamictab-head_selected");ja.addClass("sa-ctrl-dynamictab-head_selected");ja=F.getJqUi();for(var qa=b.children(),ma=!1,q=0;q<qa.length;q++)qa[q]==ja[0]?(ma=!0,$(qa[q]).css("display","block"),D(F)):$(qa[q]).css("display","none");ma||(v.layoutCtrlWithLRTB(ja,0,0,null,0,0,null),ja.appendTo(b),
D(F))},K=function(F){for(var ja=0;ja<k.length;ja++)(0,k[ja])(h,F,B)},D=function(F){v.isInDomTree(F.getJqUi()[0])?K(F):setTimeout(function(){K(F)},10)}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.ui&&(com.kingdee.bos.qing.ui={});"undefined"==typeof com.kingdee.bos.qing.ui.component&&(com.kingdee.bos.qing.ui.component=
{});var Qa=com.kingdee.bos.qing.ui.component;Qa.Menu=Xa;Qa.MenuModel=Sa;Qa.MenuItemModel=Ua;Qa.Dialog=V;Qa.AbstractModalDialog=C;Qa.MessageDialog=E;Qa.MessageCurtain=sa;Qa.SimpleConfirmer=function(){var h=this,c=$("<div class='sa-ctrl-common-modallayer'>"),b=$("<div>"),d,e,g;this.setText=function(k){b.text(k)};this.setConfirmedButtonText=function(k){g=k};this.setConfirmedListener=function(k){d=k};this.setSecondRelatedYGetter=function(k){e=k};this.show=function(k,p){var w=$("<div>");w.addClass("sa-ctrl-simpleconfirmer");
w.appendTo(c);var B=$("<div>");B.css("z-index",1);B.addClass("sa-ctrl-simpleconfirmer-border");B.appendTo(w);B=$("<div>");B.css("z-index",2);B.addClass("sa-ctrl-simpleconfirmer-arrow");B.appendTo(w);b.css("z-index",3);b.addClass("sa-ctrl-simpleconfirmer-content");h.protectedDecorateContent(b);b.appendTo(w);var l=new m;l.setHighlight(!0);l.setText(g?g:ba.get("ok","\u786e\u5b9a"));l.addActionListener(function(aa){aa.setEnabled(!1);c.remove();d&&d(!0)});l=l.getJqUi();l.css("z-index",3);l.addClass(p?
"sa-ctrl-simpleconfirmer-btn-okonly":"sa-ctrl-simpleconfirmer-btn-okcancel-"+(oa.isModern()?"right":"left"));l.appendTo(w);p||(p=new m,p.setHighlight(!1),p.setText(ba.get("cancle","\u53d6\u6d88")),p.addActionListener(function(aa){aa.setEnabled(!1);c.remove();d&&d(!1)}),p=p.getJqUi(),p.css("z-index",3),p.addClass("sa-ctrl-simpleconfirmer-btn-okcancel-"+(oa.isModern()?"left":"right")),p.appendTo(w));var n=$(document.body);c.appendTo(n);c.on("click",function(aa){v.upwardSearchHasClass($(aa.target),c,
"sa-ctrl-simpleconfirmer")||(w.hide(),setTimeout(function(){w.show()},150))});p=10;var r=w.outerHeight(),z=[-p,-r];z=v.upwardCoordinate(k[0],z,n[0]);l=z[0];z=z[1];if(3>z){var T=e?e(k):k.outerHeight();z=z+r+T;B.addClass("sa-ctrl-simpleconfirmer-arrow_up")}else B.addClass("sa-ctrl-simpleconfirmer-arrow_down");w.css({position:"absolute",left:-2E3,top:-2E3});r=w.outerWidth();T=l+r;n=n.innerWidth()-3;T>n&&(n=T-n,l-=n,p+=n);3>=l&&(n=3-l,l+=n,p-=n);w.css({left:l,top:z});p=p-(B.outerWidth()>>1)+Math.min(k.outerWidth()>>
1,r-30);B.css("left",p)};this.protectedDecorateContent=function(k){k.addClass("sa-ctrl-simpleconfirmer-text");k.addClass("sa-ctrl-common-unselectable")}};Qa.Label=J;Qa.TextField=y;Qa.PasswordField=function(){za.call(this);var h=new M;this.setEnabled=function(c){h.setEnabled(c)};this.isEnabled=function(){return h.isEnabled()};this.getJqUi=function(){return h.getJqUi()};this.setPassword=function(c){h.setPassword(c)};this.getPassword=function(){return h.getPassword()};this.setTabindex=function(c){h.setTabindex(c)}};
Qa.SearchBox=function(){za.call(this);var h=this.protectedMethod,c=this,b,d=[],e=$("<input>"),g,k,p,w=0,B,l=!1,n=!1,r=[];this.getJqUi=function(){b||z();return b};this.setShowSearchIcon=function(H){n=H};this.addSearchListener=function(H){d.push(H)};this.setSearchListenerDelay=function(H){w=H};this.setPlaceholder=function(H){"placeholder"in e[0]?e.attr("placeholder",H):(g&&(g.remove(),e.off("blur",W),e.off("focus",W),e.off("keydown",W)),g=$("<div>"),g.text(H),g.css("color","#ccc"),g.on("mousedown",
function(f){e.focus()}),g.appendTo(c.getJqUi()),v.layoutCtrlWithLRTB(g,4,4,null,2,2,null),W(),e.on("blur",W),e.on("focus",W),e.on("keydown",W))};this.setAlwaysShowCleanIcon=function(H){l=H;k&&Z()};this.addCloseListener=function(H){r.push(H)};var z=function(){b=$("<div>");b.addClass("sa-ctrl-textfield");b.on("mouseenter",T);b.on("mouseleave",aa);h.setUiBorderEnabled(b,!0);var H=$("<div>");H.appendTo(b);e.css({border:0,outline:"none","background-color":"rgba(0,0,0,0)",padding:"1px"});e.on("input",A);
e.appendTo(H);v.layoutCtrl(e,0,0,"100%","100%");n?(p=$("<div>"),p.appendTo(b),I.background(p,"search"),v.layoutCtrlWithLRTB(p,2,null,16),v.layoutCtrlMiddleAlign(p,16),v.layoutCtrlWithLRTB(H,20,20,null,0,null,"100%")):v.layoutCtrlWithLRTB(H,4,20,null,0,null,"100%");k=$("<div>");k.text("\u00d7");k.attr("title",ba.get("clean","\u6e05\u9664"));k.addClass("sa-ctrl-searchbox-close");k.css({cursor:"pointer","text-align":"center","font-size":"16px",height:"16px","line-height":"16px",top:"50%","margin-top":"-9px"});
k.on("click",function(){if(L())e.val(""),ha(0),e.focus();else for(var f=0;f<r.length;f++)(0,r[f])(c)});k.appendTo(b);v.layoutCtrlWithLRTB(k,null,1,16);Z()},T=function(){p&&I.background(p,"search_hover")},aa=function(){p&&I.background(p,"search")};this.getText=function(){return e.val()};this.clear=function(){e.val("");ha(-1);e.focus()};this.setFoucs=function(){e.focus()};var A=function(H){U.cleanText(e);ha(w)},L=function(){var H=c.getText();return null!=H&&""!=H},ha=function(H){Z(L());0<=H&&ua(H)},
Z=function(H){k.css("display",l||H?"block":"none")},ua=function(H){clearTimeout(B);B=setTimeout(function(){for(var f=0;f<d.length;f++)(0,d[f])(c)},H)},W=function(){g&&setTimeout(function(){g.css("display",e.val()?"none":"")},0)}};Qa.TextArea=function(){za.call(this);var h=this.protectedMethod,c=this,b,d=$("<textarea>"),e=[],g;this.getJqUi=function(){b||(b=$("<div>"),d.attr("spellcheck",!1),d.addClass("sa-ctrl-textarea-real"),d.on("input",p),d.on("beforedeactivate",w),d.on("focus",B),h.createBorder(b),
b.append(d),setTimeout(function(){b.css("background-color",d.css("background-color"))},0));return b};this.setText=function(l){d.val(l)};this.getText=function(){return d.val()};this.requestFocus=function(){d.focus()};this.addEditedListener=function(l){e.push(l)};this.setSelectingScope=function(l,n){d[0].setSelectionRange(l,n)};this.getSelectingScope=function(){return g?g:k()};var k=function(){var l=d[0].selectionStart,n=d[0].selectionEnd;l="number"==typeof l?l:0;n="number"==typeof n?n:0;return[Math.min(l,
n),Math.max(l,n)]},p=function(l){U.cleanText(d);for(l=0;l<e.length;l++)(0,e[l])(c)},w=function(l){g=k()},B=function(l){g=null}};Qa.CheckBox=function(){za.call(this);var h=this.protectedMethod,c=this,b,d,e=$("<div>"),g=!1,k=!1,p=[],w=function(){b=$("<div>");b.addClass("sa-ctrl-checkbox");b.on("click",n);d=$("<div>");d.addClass("sa-ctrl-checkbox-box");d.appendTo(b);e.addClass("sa-ctrl-checkbox-text");e.appendTo(b);B();c.protectedUpdateEnabledState()};this.addCheckedListener=function(z){p.push(z)};this.setText=
function(z){e.text(z)};this.setHalfCheckable=function(z){k=z};this.setChecked=function(z){z!==g&&(g=z,B(),r(!1))};this.isChecked=function(){return g};this.isCheckedUnsure=function(){return k&&null===g};this.getJqUi=function(){b||w();return b};this.setCustomStyle=function(z,T){e.css(z,T)};this.protectedUpdateEnabledState=function(){b&&(h.setUiForegroundEnabled(e,c.isEnabled()),l())};var B=function(){d&&(d.text(null===g?"?":""),I.background(d,g?"checkbox":null),l())},l=function(){d.removeClass("sa-ctrl-checkbox-checked_enabled");
d.removeClass("sa-ctrl-checkbox-checked_disable");d.removeClass("sa-ctrl-checkbox-unchecked_enabled");d.removeClass("sa-ctrl-checkbox-unchecked_disable");g&&c.isEnabled()?d.addClass("sa-ctrl-checkbox-checked_enabled"):g&&!c.isEnabled()?d.addClass("sa-ctrl-checkbox-checked_disable"):!g&&c.isEnabled()?d.addClass("sa-ctrl-checkbox-unchecked_enabled"):g||c.isEnabled()||d.addClass("sa-ctrl-checkbox-unchecked_disable")},n=function(z){c.isEnabled()&&(g=k?null===g?!0:g?!1:null:!g,B(),r(!0))},r=function(z){for(var T=
0;T<p.length;T++)(0,p[T])(c,z)};w()};Qa.RadioButton=function(){za.call(this);N.Element.call(this);var h=this.protectedMethod,c=this,b,d=$("<div>"),e=$("<div>"),g=$("<div>"),k=!1,p=[];this.addCheckedListener=function(n){p.push(n)};this.setText=function(n){g.text(n)};this.setChecked=function(n){n!==k&&(k=n,w(),l(!1))};this.isChecked=function(){return k};this.getJqUi=function(){b||(b=$("<div>"),b.addClass("sa-ctrl-radio"),b.on("click",B),b.append(d),b.append(g),d.css("border-radius","7px"),v.layoutCtrlWithLRTB(d,
0,null,12),v.layoutCtrlMiddleAlign(d,12),e.css("border-radius","7px"),v.layoutCtrlWithLRTB(e,3,3,null,3,3,null),v.makeTextOmissible(g),v.layoutCtrlWithLRTB(g,20,0),v.layoutCtrlMiddleAlign(g,22),w());return b};this.setCustomStyle=function(n,r){g.css(n,r)};this.protectedUpdateEnabledState=function(){w()};var w=function(){b&&(h.setUiForegroundEnabled(g,c.isEnabled()),k?(d.removeClass(),e.removeClass(),c.isEnabled()?(d.addClass("sa-ctrl-radio-outer-checked_enabled"),e.addClass("sa-ctrl-radio-inner-checked_enabled")):
(d.addClass("sa-ctrl-radio-outer-checked_disabled"),e.addClass("sa-ctrl-radio-inner-checked_disabled")),e.appendTo(d)):(e.remove(),d.removeClass(),c.isEnabled()?d.addClass("sa-ctrl-radio-outer_enabled"):d.addClass("sa-ctrl-radio-outer_disabled")))},B=function(n){c.isEnabled()&&(k=!k,w(),l(!0))},l=function(n){for(var r=0;r<p.length;r++)(0,p[r])(c,n)}};Qa.RadioButtonGroup=N;Qa.Spinner=t;Qa.ComboBox=function(){za.call(this);Ga.call(this);var h=this.protectedMethod,c=this,b=[],d,e,g=$("<div>"),k,p,w,
B,l,n=[],r,z=!1,T=0;this.setItemModels=function(G,S){w=S;b=G;l=null};this.setSelected=function(G){d=G;W();l&&ha()};this.getSelected=function(){return d};this.setCustomPainter=function(G){p=G;W();l&&Z()};this.setDropdownMinWidth=function(G){T=G};this.setDropdownAsLongAsPossible=function(G){z=G};this.setDropdownListener=function(G){r=G};this.addSelectedChangedListener=function(G){n.push(G)};this.getJqUi=function(){e||aa();return e};this.protectedUpdateEnabledState=function(){e&&(h.setUiBorderEnabled(e,
c.isEnabled()),h.setUiBackgroundEnabled(e,c.isEnabled()),h.setUiForegroundEnabled(e,c.isEnabled()),c.isEnabled()?k.addClass("sa-ctrl-combobox-arrow_enabled"):k.removeClass("sa-ctrl-combobox-arrow_enabled"));c.protectedUpdateFeatureDisplay()};this.protectedUpdateFeatureDisplay=function(){if(e){var G=c.isShowFeature()&&c.isEnabled();k.css("display",G?"":"none");h.setUiBorderVisible(e,c.isShowFeature())}};var aa=function(){e=$("<div>");e.addClass("sa-ctrl-combobox");e.on("click",H);g.addClass("sa-ctrl-combobox-text");
g.appendTo(e);k=$("<div>");k.addClass("sa-ctrl-combobox-arrow");k.appendTo(e);k.on("mouseenter",function(G){c.isEnabled()&&ua(!0)});k.on("mouseleave",function(G){c.isEnabled()&&ua(!1)});ua(!1);c.protectedUpdateEnabledState()},A=function(){l=new P;l.setToggleSelectingEnabled(!1);l.setItemModels(b,w);ha();l.addSelectedChangedListener(function(G,S,fa){if(!L)for(G=d,fa=0<fa.length?fa[0]:null,c.setSelected(fa),S=0;S<n.length;S++)(0,n[S])(c,G,fa)});l.addPressedListener(function(G,S){f()});Z()},L=!1,ha=
function(){L=!0;l.setSelecteds(d||0===d||!1===d?[d]:[]);L=!1},Z=function(){p?l.setCustomItemPainter(function(G,S){p(!1,G,S)}):l.setCustomItemPainter(null)},ua=function(G){var S=B?"arrow-up":"arrow-down";G&&(S+="_hover");I.background(k,S)},W=function(){g.empty();p?p(!0,g,d):g.text(d||0===d||!1===d?d:"")},H=function(G){if(c.isEnabled())if(B)f();else{l||A();G=$(document.body);var S=e.outerHeight(),fa=Math.max(T,e.outerWidth()),K=[0,S-1];K=v.upwardCoordinate(e[0],K,G[0]);S=K[0];var D=K[1];if(T){var F=
G.prop("clientWidth");S+T>F&&(S=F-T-4)}K=G.prop("clientHeight");F=Math.min(20*Math.max(1,Math.min(b.length,z?65535:10))+2,(K>>1)-10);D+F>K&&(K=[0,0],K=v.upwardCoordinate(e[0],K,G[0]),K=K[1]-F+1,0<=K&&(D=K));B=$("<div>");B.addClass("sa-ctrl-common-popup");B.addClass("sa-ctrl-common-unselectable");B.css("position","absolute");B.css("left",S+"px");B.css("top",D+"px");B.css("width",fa+"px");B.css("height",F+"px");B.appendTo(G);fa=l.getJqUi();fa.appendTo(B);fa.css("position","absolute");fa.css("left",
"0px");fa.css("top","0px");fa.css("width","100%");fa.css("height","100%");l.scrollSelectedToVisible();G.on("mousedown",O);G.on("wheel",u);$(window).on("resize",f);ua(!1);r&&r(c,!0)}},f=function(){if(B){var G=$(document.body);G.off("mousedown",O);G.off("wheel",u);$(window).off("resize",f);B.detach();B=null;ua(!1);r&&r(c,!1)}},u=function(G){v.isDescendent(G.target,l.getJqUi()[0])||f()},O=function(G){e.is(":visible")&&(v.isDescendent(G.target,e[0])||v.isDescendent(G.target,B[0]))||f()}};Qa.List=P;Qa.Tree=
a;Qa.Button=m;Qa.WorkButton=Q;Qa.DynamicScroller=function(){var h=this,c,b,d,e,g,k=0,p,w,B,l;this.setItemHeight=function(A){b=A};this.setItemCount=function(A){d=A};this.setItemUiCreator=function(A){e=A};this.getJqUi=function(){c||(c=$("<div>"),c.css({"overflow-x":"hidden","overflow-y":"auto"}),c.scroll(r));return c};this.getPaintedItems=function(){var A=[],L=c.children("[name^=lazy_update_scroller]");L.each(function(ha){A.push($(L[ha]))});return A};this.repaint=function(A){c.empty();var L=c.prop("clientHeight");
L||(L=window.screen.height);l=L;p=.5*l;w=1*l;B||(B=$('<div style="position:absolute; left:0px; width:20px; height:1px; overflow:hidden">'));B.css("top",d*b+"px");B.appendTo(c);A?(L=c.prop("scrollHeight")-2-l,A=A>L?L:A,c.prop("scrollTop",A),L=n(A-w),A=n(A+l+w),T(0,L,0,A)):T(0,0,0,n(l+w));k=c.prop("scrollTop")};this.keepState=function(){c.data("myScrollTop",c.prop("scrollTop"))};this.restoreState=function(){var A=c.data("myScrollTop");h.repaint(A)};var n=function(A){A=Math.ceil(A/b);return 0>A?0:A},
r=function(A){clearTimeout(g);g=setTimeout(z,50)},z=function(){var A=c.prop("scrollTop");if(A<k-p||A>k+p){var L=n(k-w);var ha=c.prop("scrollTop");ha=[ha-w,ha+l+w];var Z=ha[0],ua=ha[1];ha=n(k+l+w);Z=n(Z);ua=n(ua);T(L,ha,Z,ua);k=A}},T=function(A,L,ha,Z){if(Z>L){var ua=Z;var W=ha>L?ha:L;var H=A;var f=ha>L?L:ha}else W=ha,ua=A>Z?Z:A,f=L,H=A>Z?A:Z;aa(W,ua);setTimeout(function(){for(var u=f,O=H;O<u;O++)O<d&&c.children("[name='lazy_update_scroller_"+O+"']").remove()},100)},aa=function(A,L){for(var ha=$(document.createDocumentFragment());A<
L;A++)if(A<d){var Z=e(A);Z.css("position","absolute");Z.css("top",A*b);Z.css("height",b);Z.attr("name","lazy_update_scroller_"+A);Z.appendTo(ha)}ha.prependTo(c)}};Qa.RegionSlider=function(){var h=this,c=[],b,d,e,g,k,p,w,B=!1,l,n,r,z,T,aa;this.setFormatString=function(q){b=new da;b.setFormatString(q);q=q.split(";");q=(new da).parseString(q[0]);d=(new da).parseString("0.00");d.setDecimal(q.getDecimal())};this.setLimited=function(q,ia){e=q;g=ia;k=g-e;L()};this.setValue=function(q,ia){p=q;w=ia;L();l&&
(H(T,p),H(aa,w),setTimeout(ha,0))};this.getValue=function(){return[p,w]};this.getJqUi=function(){if(!l){l=$("<div>");l.addClass("sa-ctrl-regionslider");T=new J;T.setAlign(J.ALIGN_LEFT);var q=T.getJqUi();q.addClass("sa-ctrl-regionslider-label sa-ctrl-regionslider-label-low");q.appendTo(l);qa(T,function(){return p},F);aa=new J;aa.setAlign(J.ALIGN_RIGHT);q=aa.getJqUi();q.addClass("sa-ctrl-regionslider-label sa-ctrl-regionslider-label-high");q.appendTo(l);qa(aa,function(){return w},ja);void 0!==p&&(H(T,
p),H(aa,w),setTimeout(ha,0))}return l};this.addValueChangedListener=function(q){c.push(q)};var A=function(){for(var q=0;q<c.length;q++)(0,c[q])(h)},L=function(){void 0!==e&&void 0!==g&&void 0!==p&&void 0!==w&&(e<=p&&p<=g&&e<=w&&w<=g||(B=!0))},ha=function(){r=l.innerWidth();z=r-24;n||(n=$(na.createCanvas()),n.addClass("sa-ctrl-regionslider-canvas"),n.appendTo(l),ma(n));n.css({width:r,height:20});var q=W(u(),!0),ia=W(G(),!1);Z(q,ia);ua(q-8,q,1,13,17);ua(ia,ia+8,1,17,13)},Z=function(q,ia){var ya=na.createContext2d(n[0],
r,20);ya.lineWidth=1;ya.strokeStyle="#666";ya.strokeRect(11,5,z,7);ya.fillStyle="#fff";ya.fillRect(11,5,z,7);0<k&&(ya.fillStyle="#ddd",ya.fillRect(q,5,ia-q,7))},ua=function(q,ia,ya,Ia,Ya){var $a=n[0].getContext("2d");$a.strokeStyle="#666";$a.beginPath();$a.moveTo(q,ya);$a.lineTo(ia,ya);$a.lineTo(ia,Ya);$a.lineTo(q,Ia);$a.closePath();$a.stroke();$a.fillStyle="#fff";$a.fill()},W=function(q,ia){return 12+(0==k?ia?0:z:Math.floor((q-e)/k*z))},H=function(q,ia){var ya=ia;b&&(ya=b.format(ia,q==T?da.RoundingMode.FLOOR:
da.RoundingMode.CEILING));q.setText(ya)},f=function(q){return d?(d.setRoundingMode(da.RoundingMode.FLOOR),parseFloat(d.format(q))):q},u=function(){return Math.max(Math.min(p,g),e)},O=function(q){return d?(d.setRoundingMode(da.RoundingMode.CEILING),parseFloat(d.format(q))):q},G=function(){return Math.max(Math.min(w,g),e)},S=function(){return B?(B=!1,e<=p&&p<=g||(p=e,H(T,p)),e<=w&&w<=g||(w=g,H(aa,w)),!0):!1},fa=function(q,ia,ya,Ia){q?(q=e,ia=q+(G()-u())):ia?(ia=g,q=ia-(G()-u())):(q=f(e+ya/z*k),ia=q+
(G()-u()));H(T,q);H(aa,ia);Ia||(p=f(q),w=O(ia),A())},K=function(q,ia,ya,Ia){q?q=e:ia?q=G():(q=e+ya/z*k,q=Math.max(q,e),q=Math.min(q,G()));H(T,q);Ia||(p=f(q),A())},D=function(q,ia,ya,Ia){q?q=u():ia?q=g:(q=e+ya/z*k,q=Math.min(q,g),q=Math.max(q,u()));H(aa,q);Ia||(w=O(q),A())},F=function(q){q=parseFloat(q);isNaN(q)?H(T,p):(q=Math.max(q,e),q=Math.min(q,G()),p=f(q),H(T,q),ha(),A())},ja=function(q){q=parseFloat(q);isNaN(q)?H(aa,w):(q=Math.min(q,g),q=Math.max(q,u()),w=O(q),H(aa,q),ha(),A())},qa=function(q,
ia,ya){var Ia,Ya=function(eb){v.isDescendent(eb.target,q.getJqUi()[0])||eb.target==Ia[0]||(db(),fb())},$a=function(eb){13==eb.keyCode||9==eb.keyCode?(db(),fb()):27==eb.keyCode&&fb()},db=function(){var eb=$.trim(Ia.val());ya(eb)},fb=function(){$(document.body).off("mousedown",Ya);Ia[0].blur();Ia.remove()};q.getJqUi().mousedown(function(eb){S();Ia=$("<input>");Ia.val(ia());Ia.data("value",q.getUserObject());Ia.addClass("sa-ctrl-regionslider-editor");Ia.css("left",q.getJqUi().prop("offsetLeft"));Ia.css("width",
q.getJqUi().prop("offsetWidth")-4);Ia.css("padding-left",2);Ia.css("padding-right",2);Ia.appendTo(l);setTimeout(function(){Ia[0].focus()},0);$(document.body).on("mousedown",Ya);Ia.on("keydown",$a)})},ma=function(q){var ia=!1,ya=!1,Ia=0,Ya,$a,db,fb,eb,Fa,Ra,Pa;q.mousedown(function(Na){Ia=gb(Na);0!=Ia&&(ya=S(),ia=!0,Ya=Na.screenX,$a=0,db=W(u(),!0),fb=W(G(),!1),eb=W(e,!0),Fa=W(g,!1),Ra=eb,Pa=Fa,Na=$(document.body),Na.on("mouseup",kb),Na.on("mouseleave",lb))});q.mousemove(function(Na){if(ia){ya=!0;$a=
Na.screenX-Ya;if(1==Ia)Na=db,Na=Math.max(Na+$a,eb),Ra=Na=Math.min(Na,fb),Pa=fb,K(Ra==eb,Ra==fb,Ra-eb,!0);else if(2==Ia)Ra=db,Na=fb,Na=Math.min(Na+$a,Fa),Pa=Na=Math.max(Na,db),D(Pa==db,Pa==Fa,Pa-eb,!0);else if(3==Ia){Na=db+$a;if(Na<eb)Na=[eb,eb+(fb-db)];else{var jb=fb+$a;Na=jb>Fa?[Fa-(fb-db),Fa]:[Na,jb]}Ra=Na[0];Pa=Na[1];fa(Ra==eb,Pa==Fa,Ra-eb,!0)}Z(Ra,Pa);ua(Ra-8,Ra,1,13,17);ua(Pa,Pa+8,1,17,13)}else Na=gb(Na),Ia!=Na&&(Ia=Na,q.css("cursor",1==Na||2==Na?"e-resize":3==Na?"pointer":"default"))});var kb=
function(Na){ya&&(3==Ia?fa(Ra==eb,Pa==Fa,Ra-eb):1==Ia?K(Ra==eb,Ra==fb,Ra-eb):2==Ia&&D(Pa==db,Pa==Fa,Pa-eb));Za()},lb=function(Na){Za();H(T,p);H(aa,w)},Za=function(){ya=ia=!1;var Na=$(document.body);Na.off("mouseup",kb);Na.off("mouseleave",lb);ha()},gb=function(Na){var jb=v.getCurrentTargetPosition(Na);Na=jb[0];jb=jb[1];if(1>jb||17<jb)return 0;var nb=W(u(),!0);if((0<k||B)&&nb-8<=Na&&Na<=nb)return 1;var ob=W(G(),!1);return(0<k||B)&&ob<=Na&&Na<=ob+8?2:(0<k||B)&&(0<k||B)&&nb<Na&&Na<ob&&5<=jb&&12>=jb?
3:0}}};Qa.Toolbar=function(){var h,c={},b=0,d=null;this.getJqUi=function(){h||(h=$("<div>"),h.addClass("sa-ctrl-toolbar"),h.css("overflow","visible"));return h};this.appendSeperator=function(l){var n=$("<div>");n.addClass("sa-ctrl-toolbar-seperator");n.appendTo(l)};this.createButton=function(l,n,r,z,T){var aa=new ea;aa.setText(z);aa.setTooltips(T);n&&aa.setShowDropdownArrow(!0);aa.addActionListener(function(A,L){n?p(A.getJqUi(),L,r,l):r(A)});aa.getJqUi().appendTo(l);e(aa,n?r:null);return aa};this.refresh=
function(){d&&(B(d.getJqUi()),d.getJqUi().remove());var l=[];d=g(l);d.getJqUi().appendTo(h);var n=h.prop("clientHeight"),r=h.find(".sa-ctrl-tbbtn,.sa-ctrl-toolbar-seperator");r.css("display","");for(var z=!1,T=r.length-2;0<=T;T--){var aa=r.eq(T);B(aa);var A=aa.prop("offsetTop")+aa.prop("offsetHeight"),L=d.getJqUi().prop("offsetTop")+d.getJqUi().prop("offsetHeight");A=[0,A];A=v.upwardCoordinate(aa[0],A,h[0]);A=A[1];if(A>n||z&&L>n){if(L=aa.attr("name"))l.push(L),z=!0;aa.css("display","none")}else break}z||
(d.getJqUi().remove(),d=null)};var e=function(l,n){var r="btn"+ ++b;l.getJqUi().attr("name",r);c[r]=[l,n]},g=function(l){var n=new ea;n.setText("...");n.setShowDropdownArrow(!0);n.addActionListener(function(r,z){p(r.getJqUi(),z,function(){for(var T=new Sa,aa=l.length-1;0<=aa;aa--){var A=l[aa],L=c[A][0];A=(A=c[A][1])?A():new Ua(k(L));A.setText(L.getText());A.setEnabled(L.isEnabled());T.addItemModel(A)}return T},h)});return n},k=function(l){return function(){l.fireAction()}},p=function(l,n,r,z){var T=
l.data("menu");T&&T.isShowing()?B(l):w(l,n,r,z)},w=function(l,n,r,z){var T=new Xa;T.setModel(r());T.setHideListener(function(){l.removeData("menu")});l.data("menu",T);r=l.prop("offsetLeft");var aa=l.prop("offsetHeight")+l.prop("offsetTop");T.show(z,r,aa,n,!0)},B=function(l){var n=l.data("menu");n&&n.isShowing()&&(l.removeData("menu"),n.hide())}};Qa.ToolbarButton=ea;Qa.SplitPane=ta;Qa.TabContainer=Ha;Qa.WizardDialog=la;Qa.TimeList=ka;Qa.AbstractMonthlyCalendar=ra;Qa.Calendar=pa;Qa.DateOfYearQuarterPanel=
Ba;Qa.DateOfYearMonthPanel=Oa;Qa.TimeSelector=function(){za.call(this);Ga.call(this);var h=this,c=this.protectedMethod,b,d=!1,e=[0,0,0];this.showFeature=function(w){p().showFeature(w)};this.isShowFeature=function(){return p().isShowFeature()};this.setEnabled=function(w){p().setEnabled(w)};this.isEnabled=function(){return p().isEnabled()};this.addSelectionListener=function(w){p().addSelectionListener(function(B,l){l&&(e=B.getSelectedModel(),w(h))})};this.getJqUi=function(){return p().getJqUi()};this.setSelectedNullable=
function(w){d=w};this.setSelected=function(w,B,l){if(!d&&null===w)throw Error("Illegal argument");e=null===w?null:[w,B,l];p().setSelectedModel(e)};this.isSelectedNull=function(){return null===e};this.getHour=function(){return e[0]};this.getMinute=function(){return e[1]};this.getSecond=function(){return e[2]};var g=function(w){return(10>w?"0":"")+w},k=function(w,B){var l="";w&&(l=g(w[0])+" : "+g(w[1])+" : "+g(w[2]));B.text(l)},p=function(){b||(b=new Wa,b.setIconName("time"),b.setCustomPainter(k),b.setDropdownCreator(function(w,
B,l,n){n=$("<div>");n.addClass("sa-ctrl-date-foot");if(d){var r=new Q;r.setText(ba.get("clean","\u6e05\u7a7a"));r.addActionListener(function(T){l(null)});r.getJqUi().appendTo(n);v.layoutCtrlWithLRTB(r.getJqUi(),6,null,60,null,5,22)}r=new Q;r.setText(ba.get("ok","\u786e\u5b9a"));r.addActionListener(function(T){l([z.getHour(),z.getMinute(),z.getSecond()])});r.getJqUi().appendTo(n);v.layoutCtrlWithLRTB(r.getJqUi(),null,6,60,null,5,22);var z=new ka;setTimeout(function(){z.setSelected(B?B[0]:0,B?B[1]:
0,B?B[2]:0)},0);w.append(z.getJqUi());w.append(n);v.layoutCtrlWithLRTB(z.getJqUi(),0,0,null,0,32,null);v.layoutCtrlWithLRTB(n,0,0,null,null,0,32);c.setUiBackgroundEnabled(w,!0);w=z.suggestSize();return[w[0],w[1]+32]}));return b}};Qa.DateSelector=Ta;Qa.DateTimeSelector=function(){Ta.call(this);var h=this;this.getHour=function(){return h.getDateObject().getHours()};this.getMinute=function(){return h.getDateObject().getMinutes()};this.getSecond=function(){return h.getDateObject().getSeconds()};this.protectedGetFormatString=
function(){return"yyyy-MM-dd HH:mm:ss"};this.protectedCreatePopupUi=function(c,b,d,e){e.setCurrentMonthNavigatorListener(function(T,aa){p.css("display",aa?"":"none")});e.addSelectedChangedListener(function(T){l.setEnabled(!0)});var g=$("<div>"),k=$("<div>"),p=$([g[0],k[0]]);p.css("display","none");p.addClass("sa-ctrl-date-mask");var w=new ka;w.getJqUi().addClass("sa-ctrl-date-separater");setTimeout(function(){b?w.setSelected(b.getHours(),b.getMinutes(),b.getSeconds()):w.setSelected(0,0,0)},0);var B=
$("<div>");B.addClass("sa-ctrl-date-foot");var l=new Q;l.setText(ba.get("ok","\u786e\u5b9a"));l.setEnabled(e.isSelected());l.addActionListener(function(T){T=ra.createDateObject(e.getSelectedYear(),e.getSelectedMonth()-1,e.getSelectedDay());T.setHours(w.getHour(),w.getMinute(),w.getSecond(),0);d(T)});l.getJqUi().appendTo(B);v.layoutCtrlWithLRTB(l.getJqUi(),null,4,60,null,4,24);if(h.isSelectedNullable()){var n=new Q;n.setText(ba.get("clean","\u6e05\u7a7a"));n.addActionListener(function(T){d(null)});
n.getJqUi().appendTo(B);v.layoutCtrlWithLRTB(n.getJqUi(),4,null,60,null,4,24)}c.append(w.getJqUi());c.append(B);c.append(g);c.append(k);c=e.suggestSize();n=w.suggestSize();var r=c[0]+n[0],z=Math.max(c[1],n[1])+32;v.layoutCtrlWithLRTB(e.getJqUi(),0,null,c[0],0,32,null);v.layoutCtrlWithLRTB(w.getJqUi(),null,0,n[0],0,32,null);v.layoutCtrlWithLRTB(g,null,0,n[0],0,32,null);v.layoutCtrlWithLRTB(B,0,0,null,null,0,32);v.layoutCtrlWithLRTB(k,0,0,null,null,0,32);return[r,z]}};Qa.F7Selector=function(){za.call(this);
Ga.call(this);var h=this.protectedMethod,c=this,b,d,e,g,k,p=!1,w,B=[],l=[];this.setClearable=function(L){p=L};this.setModel=function(L){k=L;A()};this.getModel=function(){return k};this.setCustomPainter=function(L){w=L;A()};this.addActionListener=function(L){B.push(L)};this.removeActionListener=function(L){for(var ha=B.length-1;0<=ha;ha--)B[ha]==L&&B.splice(ha,1)};this.addClearListener=function(L){l.push(L)};this.removeClearListener=function(L){for(var ha=l.length-1;0<=ha;ha--)l[ha]==L&&l.splice(ha,
1)};var n=function(){p&&k&&c.isEnabled()?g?g.show():(g=$("<div>"),g.addClass("sa-ctrl-f7selector-btn"),g.addClass("sa-ctrl-f7selector-btnclear"),g.on("click",z),I.background(g,"delete"),d.append(g),c.protectedUpdateEnabledState()):g&&g.hide()},r=function(){g&&g.hide()},z=function(){if(c.isEnabled()&&p){c.setModel(null);g&&g.hide();for(var L=l.length,ha=0;ha<L;ha++)(0,l[ha])(c)}};this.getJqUi=function(){if(!b){d=$("<div>");d.on("mouseenter",n);d.on("mouseleave",r);d.addClass("sa-ctrl-f7selector-textcontainer");
e=$("<div>");e.addClass("sa-ctrl-f7selector-text");e.appendTo(d);var L=$("<div>");L.addClass("sa-ctrl-f7selector-btn");L.addClass("sa-ctrl-f7selector-btnedit");L.on("click",T);I.background(L,"editor");b=$("<div>");b.addClass("sa-ctrl-f7selector");b.append(d);b.append(L);A();c.protectedUpdateEnabledState()}return b};this.protectedUpdateFeatureDisplay=function(){b&&(b.find(".sa-ctrl-f7selector-btnedit").css("display",c.isShowFeature()?"":"none"),h.setUiBorderVisible(b,c.isShowFeature()))};var T=function(){if(c.isEnabled())for(var L=
B.length,ha=0;ha<L;ha++)(0,B[ha])(c)},aa=function(L){return L?L:""};this.protectedUpdateEnabledState=function(){if(b){h.setUiBorderEnabled(b,c.isEnabled());h.setUiBackgroundEnabled(b,c.isEnabled());h.setUiForegroundEnabled(b,c.isEnabled());var L=b.find(".sa-ctrl-f7selector-btn");c.isEnabled()?L.addClass("sa-ctrl-f7selector-btn_enabled"):L.removeClass("sa-ctrl-f7selector-btn_enabled")}c.protectedUpdateFeatureDisplay()};var A=function(){if(e){var L=(w?w:aa)(k);e.text(L)}}};Qa.DropdownSelector=Wa;Qa.Tips=
bb;Qa.HelpIcon=ab;Qa.ComboColor=function(){za.call(this);var h=this.protectedMethod,c=this,b,d,e,g,k,p=new cb;this.addSelectedListener=function(aa){p.addSelectedListener(aa)};this.setPopupListener=function(aa){k=aa};this.setColorPool=function(aa){p.setColorPool(aa)};this.getModel=function(){return p.getModel()};this.getJqUi=function(){b||(b=$("<div>"),b.addClass("sa-ctrl-combocolor"),d=$("<div>"),d.addClass("sa-ctrl-combocolor-color"),d.appendTo(b),l(),e=$("<div>"),e.addClass("sa-ctrl-combocolor-arrow"),
e.on("click",r),e.appendTo(b),I.background(e,"arrow-down"),c.protectedUpdateEnabledState(),c.getModel().addChangedListener(w),p.addSelectedListener(B),p.setOpenDialogListener(z));return b};var w=function(aa){l()},B=function(aa){z()},l=function(){d&&d.css("background-color",c.getModel().encodeToHexRgb())},n=function(){I.background(e,g?"arrow-up":"arrow-down")};this.protectedUpdateEnabledState=function(){b&&(h.setUiBorderEnabled(b,c.isEnabled()),d.css("opacity",c.isEnabled()?"":"0.4"),e.css("opacity",
c.isEnabled()?"":"0.4"),e.css("cursor",c.isEnabled()?"":"default"))};var r=function(aa){if(c.isEnabled())if(g)z();else{aa=$(document.body);var A=[0,b.outerHeight()-1];A=v.upwardCoordinate(b[0],A,aa[0]);var L=A[0],ha=A[1];g=p.createJqUi();var Z=g.outerHeight();A=aa.prop("clientHeight");ha+Z>=A&&(A=[0,0],A=v.upwardCoordinate(b[0],A,aa[0]),Z=A[1]-Z-1,0<=Z&&(ha=Z));g.addClass("sa-ctrl-common-popup");g.addClass("sa-ctrl-common-unselectable");g.css("position","absolute");g.css("left",L+"px");g.css("top",
ha+"px");g.appendTo(aa);aa.on("mousedown",T);$(window).on("resize",z);n();k&&k(!0)}},z=function(){g&&($(document.body).off("mousedown",T),$(window).off("resize",z),g.remove(),g=null,n(),k&&k(!1))},T=function(aa){var A=$(document.body),L=$(aa.target);if(b.is(":visible")){for(;L[0]!=A[0];){if(L[0]==b[0])return;L=L.parent()}for(L=$(aa.target);L[0]!=A[0];){if(L[0]==g[0])return;L=L.parent()}}z()}};Qa.ColorChooser=cb;Qa.SwitchButton=function(){za.call(this);var h=this,c,b,d=!0,e=[];this.addStateChangeListener=
function(B){e.push(B)};var g=function(B){for(var l=0;l<e.length;l++)(0,e[l])(h,B,d)};this.setOn=function(B){d=B;p(!0);g(!1)};this.isOn=function(){return d};this.getJqUi=function(){if(!c){var B=$("<div>");c=$("<div>");c.on("click",k);c.appendTo(B);b=$("<div>");b.addClass("sa-ctrl-switcher-thumb");b.appendTo(c);p(!1);c.css("border-radius","10px");c.css("width",31);v.layoutCtrlMiddleAlign(c,19);b.css("border-radius","8px");b.css("width",15);v.layoutCtrlMiddleAlign(b,15)}return c.parent()};var k=function(){h.isEnabled()&&
(d=!d,p(!0),g(!0))};this.protectedUpdateEnabledState=function(){p(!1)};var p=function(B){c&&(h.isEnabled()?(c.css("cursor","pointer"),c.css("opacity","")):(c.css("cursor",""),c.css("opacity","0.5")),d?(c.addClass("sa-ctrl-switcher_on"),c.removeClass("sa-ctrl-switcher_off"),w(B,14)):(c.removeClass("sa-ctrl-switcher_on"),c.addClass("sa-ctrl-switcher_off"),w(B,2)))},w=function(B,l){B?b.animate({left:l+"px"},"fast"):b.css("left",l+"px")}};Qa.LeftTabContainer=hb;Qa.ToggleButton=function(){za.call(this);
var h=this,c=this.protectedMethod,b,d=!1,e,g=[];this.setText=function(w){b=w};this.setSelected=function(w){d=w;e&&k()};this.isSelected=function(){return d};this.addActionListener=function(w){g.push(w)};this.getJqUi=function(){e||(e=$("<div>"),e.text(b),e.addClass("sa-ctrl-togglebutton"),e.on("click",p),h.protectedUpdateEnabledState(),k());return e};this.protectedUpdateEnabledState=function(){if(e){var w=h.isEnabled();w?e.addClass("sa-ctrl-togglebutton_enabled"):e.removeClass("sa-ctrl-togglebutton_enabled");
c.setUiForegroundEnabled(e,w);c.setUiBackgroundEnabled(e,w)}};var k=function(){d?e.addClass("sa-ctrl-togglebutton_selected"):e.removeClass("sa-ctrl-togglebutton_selected")},p=function(w){if(h.isEnabled())for(h.setSelected(!d),w=0;w<g.length;w++)(0,g[w])(h,d)}};Qa.TitleContainer=function(){za.call(this);var h=this.protectedMethod,c,b=$("<div>"),d=$("<div>"),e=!0;this.setBorderVisible=function(g){e=g};this.setTitle=function(g){b.text(g)};this.getJqUi=function(){if(!c){b.css("font-weight","bold");v.makeTextOmissible(b);
var g=$("<div>");g.css("background-color","#f4f4f4");var k=$("<div>");k.css("background-color","#f4f4f4");k.css("transform","rotate(-45deg)");k.css("transform-origin","left bottom");d.css("overflow","auto");c=$("<div>");c.css("color","#666");c.css("overflow","hidden");c.append(d);c.append(g);c.append(k);c.append(b);e&&h.createBorder(c);v.layoutCtrlWithLRTB(b,6,null,94,4,null,20);v.layoutCtrlWithLRTB(g,0,null,90,0,null,26);v.layoutCtrlWithLRTB(k,90,null,36,-10,null,36);v.layoutCtrlWithLRTB(d,6,6,null,
30,6,null)}return c};this.getJqContainer=function(){return d}};Qa.DynamicTabContainer=ib;var mb,X,v,da,Y,ca,na,wa,Ca,ba;(function(){var h=com.kingdee.bos.qing.common;mb=h.Util;X=h.MathUtil;v=h.DomUtil;da=h.NumberFormater;Y=h.DateFormater;ca=h.ColorUtil;na=h.CanvasUtil;h=com.kingdee.bos.qing.framework.common;wa=h.AbstractIcons;Ca=h.WindowResizeObserver;ba=h.MultilanguageManager.createPackageAccessor(Qa)})();var oa=new function(){var h=!1;this.setModern=function(c){h=c};this.isModern=function(){return h}};
Qa.SkinUiContext=oa;var Ea=new function(){var h;this.callUntilVisible=function(c){$(document.body).is(":visible")?(h=null,c()):(h&&h.unobserve(),h=new Ca,h.setCallback(function(){h.unobserve();c()}),h.observe())}},I=new function(){wa.call(this);var h=this.protectedMethod;this.protectedInit=function(d,e){d=com.kingdee.bos.qing.common.ComboIcon;if(!d)throw Error("com.kingdee.bos.qing.common.ComboIcon not found.");d.define(e,"msg");c(0,0,"msg-success");c(0,1,"msg-prompt");c(0,2,"msg-error");c(0,3,"msg-close");
c(1,0,"msg-delete");c(1,1,"msg-confirm");c(1,2,"msg-warning");c(1,3,"msg-save");c(2,0,"msg-jurisdiction");c(2,1,"msg-wrong");d.define(e,"common");b(0,0,"arrow-down");b(0,1,"arrow-up");b(0,2,"checkbox");b(0,3,"calendar");b(0,4,"editor");b(0,5,"delete");b(0,6,"tree-collapsed");b(0,7,"tree-expanded");b(0,8,"search");b(3,3,"time");b(3,6,"info");b(3,7,"question");b(3,8,"dropdown-menu");c(3,0,"verified-right");c(3,1,"verified-wrong");b(6,0,"menu-radio-checked");b(7,0,"menu-radio-unchecked");b(6,1,"menu-checkbox-checked");
b(7,1,"menu-checkbox-unchecked")};var c=function(d,e,g){h.registIcon(d,e,g)},b=function(d,e,g){c(d,e,g);c(d+1,e,g+"_hover")}};Qa.Icons=I;var U=new function(){this.cleanText=function(h){mb.cleanInvalidChar(h.val(),function(c){var b=h[0].selectionStart;b="number"==typeof b?Math.min(c.length,Math.max(0,b-2)):c.length;h.val(c);h[0].setSelectionRange(b,b)})}};Xa.createSubMenu=function(h,c,b){var d=new Sa;d.setText(h);d.setCheckable(c?!0:!1);c&&b&&d.setGroupName(b);return d};Xa.createActionMenuItem=function(h,
c){return va(h,c,!1)};Xa.createCheckbox=function(h,c,b){return va(h,b,!0,null,c)};Xa.createRadio=function(h,c,b,d){return va(h,d,!0,c,b)};var va=function(h,c,b,d,e){c=new Ua(c);c.setText(h);c.setCheckable(b?!0:!1);b&&(d&&c.setGroupName(d),c.setChecked(e?!0:!1));return c},xa=new function(){var h=[0,0,0,0];this.getFullScreenPadding=function(){return h};this.setFullScreenPadding=function(c,b,d,e){h=[c,b,d,e]}};V.setFullScreenPadding=xa.setFullScreenPadding;V.FULLSCREEN_ONLY_WIDTH=1;V.FULLSCREEN_ONLY_HEIGHT=
2;E.RETURN_OK=1;E.RETURN_CANCEL=2;E.RETURN_YES=4;E.RETURN_NO=8;E.OPTION_OK=E.RETURN_OK;E.OPTION_OK_CANCEL=E.RETURN_OK|E.RETURN_CANCEL;E.OPTION_YES_NO=E.RETURN_YES|E.RETURN_NO;E.OPTION_YES_NO_CANCEL=E.RETURN_YES|E.RETURN_NO|E.RETURN_CANCEL;E.MSG_CONFIRM=257;E.MSG_DELETE=258;E.MSG_SAVE=259;E.MSG_WARNING=513;E.MSG_JURISDICTION=514;E.MSG_WRONG=769;E.createFeedbackDialog=function(){return new R};sa.TYPE_SUCCESS=1;sa.TYPE_PROMPT=2;sa.TYPE_ERROR=3;J.ALIGN_LEFT=0;J.ALIGN_CENTER=1;J.ALIGN_RIGHT=2;N.Element=
function(){this.isChecked=function(){throw Error("Override me.");};this.setChecked=function(h){throw Error("Override me.");};this.addCheckedListener=function(h){throw Error("Override me.");}};t.CHANGED_BY_API=0;t.CHANGED_BY_MANUAL_ADJUST=1;t.CHANGED_BY_MANUAL_EDIT=2;P.undressItem=function(h){h.removeClass("sa-ctrl-list-item")};var Ja=new function(){var h=0;this.allocate=function(){return"TN"+h++}};a.LeafNode=function(h){x.call(this,h);this.isLeafNode=function(){return!0}};a.BranchNode=function(h){x.call(this,
h);var c=this,b=[],d=!1;this.addChild=function(e){b.push(e);e.setParent(c)};this.insertChild=function(e,g){b.splice(g,0,e);e.setParent(c)};this.getChildCount=function(){return b.length};this.getChild=function(e){return b[e]};this.getAllChildren=function(){return b.slice(0)};this.removeChild=function(e){for(var g=b.length-1;0<=g;g--)if(b[g]==e){b.splice(g,1);e.setParent(null);break}};this.removeAllChildren=function(){for(var e=b.length-1;0<=e;e--)b[e].setParent(null);b=[]};this.setExpanded=function(e){d=
e};this.isExpanded=function(){return d};this.deepFirstVisiting=function(e,g){e(c);if(!g||d)for(var k=0;k<b.length;k++){var p=b[k];p.isLeafNode()?e(p):p.deepFirstVisiting(e,g)}};this.visiting=function(e){for(var g=[c];0<g.length;){var k=g.pop();if(e(k))break;if(!k.isLeafNode())for(var p=k.getChildCount()-1;0<=p;p--)g.push(k.getChild(p))}}};ta.RESIZE_MODE_FIRST_FIXED=0;ta.RESIZE_MODE_SECOND_FIXED=1;ta.RESIZE_MODE_RATIO=2;ta.Child=function(){this.getJqUi=function(){throw Error("Implement me.");};this.resize=
function(h){throw Error("Implement me.");}};ta.createChildWrapper=function(h,c){return new function(){this.getJqUi=function(){return h instanceof $?h:h.getJqUi()};this.resize=function(b){c&&c(b)}}};Ha.AbstractTabPane=function(){this.getTitle=function(){};this.getJqUi=function(){};this.into=function(){}};Ha.FIRST_LEVEL=1;Ha.SECOND_LEVEL=2;la.AbstractWizardStep=function(){this.getSubTitle=function(){return null};this.getSuggestedDialogSize=function(){return null};this.getJqUi=function(h){throw Error("Override me.");
};this.intoThisStep=function(h,c){throw Error("Override me.");};this.outThisStep=function(h,c){throw Error("Override me. Remember to call funCallback(oStep).");};this.isLastStep=function(){return!1};this.isReturnable=function(){return!0};this.over=function(h){}};ra.createToday=function(){var h=new Date;h.setHours(0,0,0,0);return h};ra.createDateObject=function(h,c,b){var d=ra.createToday();d.setFullYear(h,c,b);return d};ra.getDisplayMonths=function(){return[ba.get("january","\u4e00\u6708"),ba.get("february",
"\u4e8c\u6708"),ba.get("march","\u4e09\u6708"),ba.get("april","\u56db\u6708"),ba.get("may","\u4e94\u6708"),ba.get("june","\u516d\u6708"),ba.get("july","\u4e03\u6708"),ba.get("august","\u516b\u6708"),ba.get("september","\u4e5d\u6708"),ba.get("october","\u5341\u6708"),ba.get("november","\u5341\u4e00\u6708"),ba.get("december","\u5341\u4e8c\u6708")]};Ba.toDateRange=function(h,c){c*=3;var b=new Date;b.setFullYear(h,c,1);b.setHours(0,0,0,0);var d=new Date;d.setFullYear(h,c+3,0);d.setHours(23,59,59,999);
return[b.getTime(),d.getTime()]};Oa.toDateRange=function(h,c){var b=new Date;b.setFullYear(h,c,1);b.setHours(0,0,0,0);var d=new Date;d.setFullYear(h,c+1,0);d.setHours(23,59,59,999);return[b.getTime(),d.getTime()]};ab.ICON_TYPE_QUESTION="question";ab.ICON_TYPE_INFO="info";cb.getColorPool7=function(){return Va};var Ka=[["#56a4ff","#2ec6c8","#9b89f4","#fb6490","#97ce68"],["#f28e2b","#f8cc57","#84a2fb","#26b175","#5c8aea"],["#5adcac","#e15759","#f98aaa","#bfddff","#b2de8d"],["#88bfff","#d66fc2","#f0787a",
"#bcb2f0","#a7b5d3"]],Va=["#ffffff #fff2f4 #fffbf2 #fffde6 #faffeb #f2fffc #f2f9ff #f9f2ff".split(" "),"#b2b2b2 #ffadb6 #ffe0a6 #ffef8a #ddff8f #a1f5e8 #b3d6ff #d4a8ff".split(" "),"#666666 #ff5257 #ffb44a #ffd52e #99d92b #3dccc0 #5797ff #9a4dff".split(" "),"#212121 #d1130d #ff991c #d49b00 #589c00 #008f8c #104ccc #4e08c7".split(" "),"#000000 #800d00 #ad5400 #825700 #254a00 #003a3d #001f7a #230075".split(" ")],La=new function(){this.push=function(c){for(var b=h(),d=0;d<b.length;d++)if(c==b[d]){b.splice(d,
1);break}b.push(c);12<b.length&&(b=b.slice(b.length-12));c=b.join(",");try{window.sessionStorage.setItem("kd.qing.ctrl.color",c)}catch(e){window.console&&window.console.warn(e)}};this.getRecent=function(c){var b=h();b=b.reverse();return b=b.slice(0,c)};var h=function(){try{var c=window.sessionStorage.getItem("kd.qing.ctrl.color")}catch(b){window.console&&window.console.warn(b)}return c?c.split(","):[]}};hb.AbstractTabPane=function(){this.getTabHeadText=function(){};this.getJqUi=function(){};this.into=
function(){}};ib.AbstractTabPane=function(){var h=this,c,b;this.getTitle=function(){};this.getJqUi=function(){};this.getCloseable=function(){return!0};this.getId=function(){c||(c="tab_"+com.kingdee.bos.qing.common.Util.createUUID());return c};this.setCloseCallback=function(d){b=d};this.onClose=function(){h.protectedAskCloseable(function(d){d&&b(h)})};this.protectedAskCloseable=function(d){throw Error("Override me.");}}})();(function(){function za(X,v){this.toString=function(){return X};this.getUnitPower=function(){return v}}function Ga(){var X=this,v=2,da,Y=!0,ca=!1,na,wa=0,Ca,ba,oa;this.getDecimal=function(){return v};this.setDecimal=function(I){v=I};this.isDecimalUnsure=function(){return v==Ga.UNSURE};this.getDecimalSymbol=function(){return da};this.setDecimalSymbol=function(I){da=I};this.isDecimalSymbolUnsure=function(){return da==Ga.UNSURE};this.getGroupingSymbol=function(){return na};this.setGroupingSymbol=function(I){na=
I};this.isGroupingSymbolUnsure=function(){return na==Ga.UNSURE};this.isThousand=function(){return Y};this.setThousand=function(I){Y=I;ca=!0===I?!1:ca};this.isThousandUnsure=function(){return Y==Ga.UNSURE};this.isTenThousand=function(){return ca};this.setTenThousand=function(I){ca=I;Y=!0===ca?!1:Y};this.isTenThousandUnsure=function(){return ca==Ga.UNSURE};this.getUnitPower=function(){return wa};this.setUnitPower=function(I){wa=I};this.isUnitPowerUnsure=function(){return wa==Ga.UNSURE};this.getPrefix=
function(){return Ca};this.setPrefix=function(I){Ca=I};this.isPrefixUnsure=function(){return Ca==Ga.UNSURE};this.getSuffix=function(){return ba};this.setSuffix=function(I){ba=I};this.isSuffixUnsure=function(){return ba==Ga.UNSURE};this.getNegativePattern=function(){return oa};this.setNegativePattern=function(I){oa=I};this.isNegativePatternUnsure=function(){return oa==Ga.UNSURE};this.isUnsure=function(){return X.isDecimalUnsure()||X.isDecimalSymbolUnsure()||X.isThousandUnsure()||X.isTenThousandUnsure()||
X.isGroupingSymbolUnsure()||X.isUnitPowerUnsure()||X.isPrefixUnsure()||X.isSuffixUnsure()||X.isNegativePatternUnsure()};this.encode=function(){if(X.isUnsure())throw Error("Unsure NumberFormatModel");var I=0!=wa?"{"+wa+"}":"";Y?I+="#"+(na?na:Ga.DEFAULT_GROUPING_SYMBOL)+"##":ca&&(I+="#"+(na?na:Ga.DEFAULT_GROUPING_SYMBOL)+"###");I+="0";if(0<v){I+=da?da:Ga.DEFAULT_DECIMAL_SYMBOL;for(var U=0;U<v;U++)I+="0"}var va=Ca?Ca:"",xa=ba?ba:"";U=va+I+xa;oa&&(I=oa.jointFormatString(va,I,xa))&&(U+=";"+I);return U};
this.decode=function(I){if(I){var U=I.split(";");I=U[0];U=1<U.length?U[1]:null;var va=Ea(I);I=va[0];wa=va[1];U&&(va=Ea(U),U=va[0]);var xa=va=-1,Ja=-1,Ka=I.indexOf("#");if(0<=Ka){xa=I.lastIndexOf("#");va=null;for(var Va=Ka+1;Va<xa;Va++){var La=I.charAt(Va);if(null!=va&&"#"!=La){va=null;Ja=-1;break}"#"!=La&&(va=La,Ja=Va)}null!=va&&(na=va);va=Ka;xa+=1}v=0;Ka=-1;var h=I.indexOf("0");if(0<=h){var c=I.lastIndexOf("0"),b=null;for(Va=h+1;Va<c;Va++){La=I.charAt(Va);if(null!=b&&"0"!=La){b=null;Ka=-1;break}"0"!=
La&&(b=La,Ka=Va)}null!=b&&(da=b,v=c-Ka);va=0>va?h:Math.min(va,h);xa=Math.max(xa,c+1)}Ca=0<=va?I.substring(0,va):I;0<=xa&&(ba=I.substring(xa));ca=Y=!1;0<=Ja&&(Ja=0<=Ka?Ka-Ja-1:xa-Ja-1,3==Ja?(Y=!0,ca=!1):4==Ja&&(Y=!1,ca=!0));I=I.substring(0<=va?va:0,0<=xa?xa:I.length);a:{va=Ca?Ca:"";Ja=ba?ba:"";for(Va=0;Va<mb.length;Va++)if(La=mb[Va],La.jointFormatString(va,I,Ja)==U){oa=La;break a}oa=void 0}}};var Ea=function(I){var U=0,va=I.indexOf("{");if(0<=va){var xa=I.indexOf("}");xa>va+1&&(U=I.substring(va+1,
xa),U=parseInt(U),U=isNaN(U)?0:U,I=I.substring(0,va)+I.substring(xa+1))}return[I,U]};this.merge=function(I){v=v!=I.getDecimal()?Ga.UNSURE:v;da=da!=I.getDecimalSymbol()?Ga.UNSURE:da;Y=Y!=I.isThousand()?Ga.UNSURE:Y;ca=ca!=I.isTenThousand()?Ga.UNSURE:ca;na=na!=I.getGroupingSymbol()?Ga.UNSURE:na;wa=wa!=I.getUnitPower()?Ga.UNSURE:wa;Ca=Ca!=I.getPrefix()?Ga.UNSURE:Ca;ba=ba!=I.getSuffix()?Ga.UNSURE:ba;oa=oa!=I.getNegativePattern()?Ga.UNSURE:oa};this.accept=function(I){v=I.isDecimalUnsure()?v:I.getDecimal();
da=I.isDecimalSymbolUnsure()?da:I.getDecimalSymbol();Y=I.isThousandUnsure()?Y:I.isThousand();ca=I.isTenThousandUnsure()?ca:I.isTenThousand();na=I.isGroupingSymbolUnsure()?na:I.getGroupingSymbol();wa=I.isUnitPowerUnsure()?wa:I.getUnitPower();Ca=I.isPrefixUnsure()?Ca:I.getPrefix();ba=I.isSuffixUnsure()?ba:I.getSuffix();oa=I.isNegativePatternUnsure()?oa:I.getNegativePattern()}}function Ma(){var X=this,v=null,da=null;this.jointFormatString=function(Y,ca,na){throw Error("Override me.");};this.setDemoPrefixAndSuffix=
function(Y,ca){v=Y;da=ca};this.toString=function(){return X.jointFormatString(X.protectedGetDemoPrefix(),1234,X.protectedGetDemoSuffix())};this.protectedGetDemoPrefix=function(){return null==v?"":v};this.protectedGetDemoSuffix=function(){return null==da?"":da};this.protectedMethod={getDemoPrefix:function(){return v},getDemoSuffix:function(){return da}}}function Sa(){var X=this,v=/^[\s\u3000\u4E00-\u9FA5a-zA-Z0-9_]{1,}$/,da,Y,ca,na,wa,Ca,ba,oa,Ea,I,U,va,xa,Ja,Ka,Va;this.setFieldsProvider=function(n){va=
n;va.setChoosingListener(function(r){p(r)})};this.setFunctionsProviderCreator=function(n){xa=n};this.setEditingTarget=function(n,r,z){Ja=n;Ka=r;Va=z};this.getEditedDisplayName=function(){return Ka};this.getEditedExecutableFormula=function(){return Va};this.getJqUi=function(){if(!da){var n=new ta(x.get("formulaName","\u540d\u79f0"));Y=new Ha;Y.getJqUi().on("input",w);var r=new ta(x.get("formulaExpression","\u8868\u8fbe\u5f0f"));ca=new la;ca.addEditedListener(w);na=$("<span>");wa=new ta;wa.getJqUi().css("display",
"none");wa.getJqUi().css("cursor","pointer");wa.getJqUi().css("color","#c33");wa.getJqUi().attr("title",x.get("moveCursorToErrorPosition","\u5b9a\u4f4d\u5149\u6807\u5230\u51fa\u9519\u4f4d\u7f6e"));wa.getJqUi().on("click",l);var z=new ta(x.get("providedFields","\u5b57\u6bb5")),T=new ta(x.get("providedFunctions","\u51fd\u6570")),aa=new ta(x.get("functionDescription","\u51fd\u6570\u8bf4\u660e"));Ca=$("<div>");Ca.addClass("sa-common-border");Ca.css("overflow-y","auto");var A=da=$("<div>");n=n.getJqUi();
M.layoutCtrl(n,0,0,64,23);n.appendTo(A);A=da;n=Y.getJqUi();M.layoutCtrl(n,65,0,260,23);n.appendTo(A);A=da;r=r.getJqUi();M.layoutCtrl(r,0,33,64,23);r.appendTo(A);r=da;A=na;M.layoutCtrl(A,65,36,16,16);A.appendTo(r);r=da;A=wa.getJqUi();M.layoutCtrl(A,85,33,500,23);A.appendTo(r);d(da,ca.getJqUi(),0,0,null,60,315,null);d(da,z.getJqUi(),0,null,200,null,280,23);d(da,va.getJqUi(),0,null,200,null,0,280);d(da,T.getJqUi(),210,null,180,null,280,23);d(da,c(),210,null,180,null,0,280);d(da,aa.getJqUi(),400,0,null,
null,280,23);d(da,Ca,400,0,null,null,0,280)}return da};this.prepareToStart=function(){Y.setText(Ka);var n=Va?U(Va,!0):"";ca.setText(n);Ka?(ca.requestFocus(),w()):Y.requestFocus()};this.isValidToAccepted=function(){X.acceptEditing();return Ka?Va?La():(B(!1,0,x.get("exprEmpty","\u8868\u8fbe\u5f0f\u4e0d\u80fd\u4e3a\u7a7a")),!1):(B(!1,-1,x.get("nameEmpty","\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a")),!1)};var La=function(){return Ka.match(v)?I(Ja,Ka)?(B(!1,-1,x.get("nameExist","\u540d\u79f0#1\u5df2\u5b58\u5728").replace("#1",
Ka)),!1):!0:(B(!1,-1,x.get("nameIncludeUnexpectedStr","\u8ba1\u7b97\u5b57\u6bb5\u540d\u79f0\u53ea\u80fd\u7531\u6c49\u5b57\u3001\u5b57\u6bcd\u3001\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u7ec4\u6210")),!1)};this.acceptEditing=function(){var n=$.trim(ca.getText());Va=U(n,!1);Ka=$.trim(Y.getText())};this.setSyntaxValidator=function(n){Ea=n};var h=function(){Ea(Va,Ja,function(n,r,z){B(n,r,z)})};this.setDuplicatedNameChecker=function(n){I=n};this.setDisplayNameTranslator=function(n){U=n};var c=function(){var n=
$("<div>");n.text("loading...");J.lazyImportFunctionProvider(function(){var r=xa(com.kingdee.bos.qing.functions.FunctionsProviderFactory);b(n,r)});return n},b=function(n,r){var z=r.getTypes(),T=new pa;T.setItemModels(z);T.setSelected(z[0]);T.addSelectedChangedListener(function(Z,ua,W){ha(!1);aa.clear();Z=r.getFunctions(T.getSelected());A.setItemModels(Z)});var aa=new Da;aa.setPlaceholder(x.get("searchboxPlaceholder","\u641c\u7d22"));aa.addSearchListener(function(Z){ha(!1);Z=$.trim(aa.getText()).toUpperCase();
var ua=[],W=r.getFunctions(T.getSelected());if(Z){for(var H=0;H<W.length;H++)0<=W[H].getName().indexOf(Z)&&ua.push(W[H]);0==ua.length&&ha(!0)}else ua=W;A.setItemModels(ua)});var A=new Ba;A.setBorderVisible(!1);A.setMultiSelectable(!1);A.setCustomItemPainter(function(Z,ua){Z.text(ua.getName())});A.addDBLClickListener(function(Z){Z=A.getSelecteds()[0];p(Z.getTyping())});A.addPressedListener(function(Z,ua){Z=A.getSelecteds()[0];g(Z)});z=r.getFunctions(z[0]);A.setItemModels(z);A.setSelecteds([z[0]]);
g(z[0]);var L=$("<div>");L.addClass("sa-common-border");d(L,aa.getJqUi(),0,0,null,0,null,23);d(L,A.getJqUi(),0,0,null,24,0,null);n.empty();d(n,T.getJqUi(),0,0,null,0,null,23);d(n,L,0,0,null,30,0,null);var ha=function(Z){Z?(Z=new ta(x.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),Z.setEnabled(!1),Z.setAlign(ta.ALIGN_CENTER),d(L,Z.getJqUi(),0,0,null,30,null,20),Z.getJqUi().addClass("qing-sys-prompt")):L.children(".qing-sys-prompt").remove()}},d=function(n,r,z,T,aa,A,L,ha){M.layoutCtrlWithLRTB(r,
z,T,aa,A,L,ha);r.appendTo(n)},e=function(n){for(;-1!=n.indexOf("<");)n=n.replace("<","&lt;");for(;-1!=n.indexOf("&lt;br/>");)n=n.replace("&lt;br/>","<br/>");return n},g=function(n){if(n){var r="<div style=padding:10px;color:#666>";n.getDesc()&&(r+=k(x.get("descFeature","\u529f\u80fd\uff1a")),r=r+"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+e(n.getDesc()));n.getSyntax()&&(r=r+"<br/><br/>"+k(x.get("descGrammar","\u8bed\u6cd5\uff1a")),r=r+"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+
e(n.getSyntax()));var z=n.getParameters();if(z){r=r+"<br/><br/>"+k(x.get("descParams","\u53c2\u6570\uff1a"));for(var T=0;T<z.getCount();T++)r+="<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",r+=k(z.getName(T)),r+=" ",r+=e(z.getDesc(T));(z=z.getExtraDesc())&&(r=r+"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+e(z))}z=n.getReturn();T=n.getExample();z&&(r=r+"<br/><br/>"+k(x.get("descReturn","\u8fd4\u56de\u503c\uff1a")),r=r+"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+e(n.getReturn()));
T&&(r=r+"<br/><br/>"+k(x.get("descExamples","\u793a\u4f8b\uff1a")),r=r+"<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+e(n.getExample()));Ca.html(r+"</div>")}},k=function(n){return"<b>"+n+"</b>"},p=function(n){var r=ca.getSelectingScope(),z=r[0];r=r[1];var T=ca.getText();T=T.substring(0,z)+n+T.substring(r);ca.setText(T);z+=n.length;n.match("\\(\\)")&&--z;ca.setSelectingScope(z,z);ca.requestFocus();w()},w=function(){clearTimeout(ba);ba=setTimeout(function(){X.acceptEditing();Ka&&!La()||h()},
1E3)},B=function(n,r,z){n?(ea.background(na,"verified-right"),wa.getJqUi().css("display","none"),wa.setText("")):(ea.background(na,"verified-wrong"),wa.getJqUi().css("display","block"),wa.setText(z),oa=r)},l=function(){if(-1==oa)Y.requestFocus();else{var n=Va.substr(0,oa);n=U(n,!0);n=n.length;ca.setSelectingScope(n,n);ca.requestFocus()}}}function Ua(){var X,v,da=!1;this.setModel=function(ba){X=ba};this.getModel=function(){return X};this.setContainsTime=function(ba){da=ba};var Y=function(){return da};
this.getJqUi=function(){v||ca();return v};var ca=function(){var ba={},oa=[];da&&(oa.push(t.PERIOD_MINUTE),oa.push(t.PERIOD_HOUR));oa.push(t.PERIOD_DAY);oa.push(t.PERIOD_WEEK);oa.push(t.PERIOD_MONTH);oa.push(t.PERIOD_QUARTER);oa.push(t.PERIOD_YEAR);var Ea=new ta;Ea.setText(x.get("rdrPeriod","\u65f6\u95f4\u7c92\u5ea6"));var I=$("<div>");wa(ba,X.getPeriod()).getJqUi().appendTo(I);var U=new pa;U.setItemModels(oa);U.setSelected(X.getPeriod());U.setCustomPainter(Ca);U.addSelectedChangedListener(function(La,
h,c){X.setPeriod(c);I.children().detach();La=wa(ba,X.getPeriod());La.getJqUi().appendTo(I);La.reset()});oa=new ta;oa.setText(x.get("rdrBasedOn","\u57fa\u51c6\u65e5\u671f"));var va=new Oa,xa=new Oa;if(da){va.setText(x.get("rdrBasedOnNowForTime","\u57fa\u4e8e\u5f53\u65f6"));xa.setText(x.get("rdrBasedOnOneForTime","\u57fa\u4e8e\u6307\u5b9a\u65f6\u95f4"));var Ja=new ab}else va.setText(x.get("rdrBasedOnNowForDate","\u57fa\u4e8e\u5f53\u5929")),xa.setText(x.get("rdrBasedOnOneForDate","\u57fa\u4e8e\u6307\u5b9a\u65e5\u671f")),
Ja=new Wa;var Ka=X.getAnchor(),Va=Ka?!0:!1;va.setChecked(!Va);xa.setChecked(Va);Ja.setEnabled(Va);Ja.setDateObject(Ka?Ka:new Date);Ja.addModelChangedListener(function(La){X.setAnchor(La.getDateObject())});Ka=new Ta;Ka.addElement(va);Ka.addElement(xa);Ka.addChangedListener(function(La,h){La=xa.isChecked();Ja.setEnabled(La);X.setAnchor(La?Ja.getDateObject():null)});v=$("<div>");na(v,Ea.getJqUi(),0,0,60,23);na(v,U.getJqUi(),60,0,100,23);na(v,I,0,30,400,180);na(v,oa.getJqUi(),0,210,400,23);na(v,va.getJqUi(),
30,235,100,23);na(v,xa.getJqUi(),30,265,100,23);na(v,Ja.getJqUi(),130,265,160,23)},na=function(ba,oa,Ea,I,U,va){M.layoutCtrl(oa,Ea,I,U,va);oa.appendTo(ba)},wa=function(ba,oa){var Ea=ba[oa];Ea||(Ea=new Xa(X,{isContainsTime:Y}),ba[oa]=Ea);return Ea},Ca=function(ba,oa,Ea){switch(Ea){case t.PERIOD_YEAR:var I=x.get("rdrPeriodYear","\u5e74");break;case t.PERIOD_QUARTER:I=x.get("rdrPeriodQuarter","\u5b63\u5ea6");break;case t.PERIOD_MONTH:I=x.get("rdrPeriodMonth","\u6708");break;case t.PERIOD_WEEK:I=x.get("rdrPeriodWeek",
"\u5468");break;case t.PERIOD_DAY:I=x.get("rdrPeriodDay","\u5929");break;case t.PERIOD_HOUR:I=x.get("rdrPeriodHour","\u5c0f\u65f6");break;case t.PERIOD_MINUTE:I=x.get("rdrPeriodMinute","\u5206\u949f")}oa.text(I)}}function Xa(X,v){var da,Y,ca,na,wa,Ca,ba,oa,Ea,I=!1;this.getJqUi=function(){if(!da){da=$("<div>");var La=new Ta;La.addChangedListener(Ja);Y=va("Current",La);ca=va("BeforeOne",La);na=va("AfterOne",La);wa=va("FromNowOnBefore",La);Ca=va("FromNowOnAfter",La);ba=va("UpToNow",La);oa=new ra;oa.setConstraint(1,
9999,1);oa.setValue(3);oa.addValueChangedListener(Ka);Ea=new ra;Ea.setConstraint(1,9999,1);Ea.setValue(3);Ea.addValueChangedListener(Va);xa(da,ca.getJqUi(),30,0,220,23);xa(da,Y.getJqUi(),30,30,220,23);xa(da,na.getJqUi(),30,60,220,23);xa(da,wa.getJqUi(),30,90,160,23);xa(da,Ca.getJqUi(),30,120,160,23);xa(da,oa.getJqUi(),190,90,60,23);xa(da,Ea.getJqUi(),190,120,60,23);!v.isContainsTime()&&X.getPeriod()==t.PERIOD_DAY||xa(da,ba.getJqUi(),30,150,220,23);U()}return da};this.reset=function(){!v.isContainsTime()&&
X.getPeriod()==t.PERIOD_DAY&&X.getUpToNow()&&(X.setWhichPeriod(0),X.setUpToNow(!1),X.setFromNowOn(0));U()};var U=function(){var La=X.getWhichPeriod(),h=X.getFromNowOn(),c=X.getUpToNow();oa.setEnabled(!1);Ea.setEnabled(!1);I=!0;null===La?c?ba.setChecked(!0):0>h?(wa.setChecked(!0),oa.setValue(-h),oa.setEnabled(!0)):0<h&&(Ca.setChecked(!0),Ea.setValue(h),Ea.setEnabled(!0)):-1==La?ca.setChecked(!0):0==La?Y.setChecked(!0):1==La&&na.setChecked(!0);I=!1},va=function(La,h){var c=Xa.getMLSKeyPrefix(X.getPeriod());
(La=x.get(c+La))&&0<=La.indexOf("#1")&&(La=La.replace("#1",x.get("rdrFromNowOnReplacement","\u591a\u5c11")));c=new Oa;c.setText(La);c.setTooltips(La);h.addElement(c);return c},xa=function(La,h,c,b,d,e){M.layoutCtrl(h,c,b,d,e);h.appendTo(La)},Ja=function(La,h){if(!I){La=null;h=!1;var c=0;ca.isChecked()?La=-1:Y.isChecked()?La=0:na.isChecked()?La=1:wa.isChecked()?c=-oa.getValue():Ca.isChecked()?c=Ea.getValue():ba.isChecked()&&(h=!0);X.setWhichPeriod(La);X.setUpToNow(h);X.setFromNowOn(c);U()}},Ka=function(La){!I&&
X.setFromNowOn(-La.getValue())},Va=function(La){!I&&X.setFromNowOn(La.getValue())}}function V(){var X=this,v,da,Y,ca,na,wa,Ca,ba;this.setValue=function(b){if(0>b||100<b)throw Error("Value must be integer between 0~100.");b=parseInt(b);oa().setSelectedModel(b)};this.getValue=function(){var b=oa().getSelectedModel();return b||0===b?b:100};this.setValueChangedListener=function(b){ba=b};this.setEnabled=function(b){oa().setEnabled(b)};this.getJqUi=function(){return oa().getJqUi()};this.setUserObject=function(b){oa().setUserObject(b)};
this.getUserObject=function(){return oa().getUserObject()};var oa=function(){v||(v=new ib,v.setCustomPainter(Ea),v.setDropdownCreator(I));return v},Ea=function(b,d){d.text((b||0===b?b:100)+"%")},I=function(b,d,e){b.css("border","1px solid lightgray");b.css("background-color","#fff");d=new ta(x.get("transparent","\u900f\u660e"));d.setAlign(ta.ALIGN_LEFT);e=new ta(x.get("opacity","\u4e0d\u900f\u660e"));e.setAlign(ta.ALIGN_RIGHT);na=$("<div>");na.css("text-align","center");na.css("color","gray");U();
M.layoutCtrlWithLRTB(na,40,40,null,10,null,16);M.layoutCtrlWithLRTB(Y,40,40,null,28,null,16);M.layoutCtrlWithLRTB(d.getJqUi(),20,null,80,45,null,20);M.layoutCtrlWithLRTB(e.getJqUi(),null,20,80,45,null,20);b.append(na);b.append(Y);b.append(d.getJqUi());b.append(e.getJqUi());da=b;da.on("selectstart",function(){return!1});da.on("mousedown",Ka);da.on("mouseup",La);da.on("mouseleave",h);da.on("mousemove",Va);wa=200;va();return[wa+80,75]},U=function(){var b=$("<div>");b.css("background-color","gray");b.css("transform",
"rotate(45deg)");var d=$("<div>");d.css("background-color","gray");M.layoutCtrl(b,2,2,10,10);M.layoutCtrlWithLRTB(d,0,0,null,7,0,null);ca=$("<div>");ca.css("cursor","pointer");ca.append(d);ca.append(b);M.layoutCtrl(ca,0,0,14,14);Ca=7;Y=$("<div>");Y.css("border-top","2px solid gray");Y.append(ca)},va=function(){var b=X.getValue();ca.css("left",wa*b/100-Ca);na.text(b+"%")},xa=function(b){b=parseInt(b/wa*100);b=Math.min(100,Math.max(0,b));X.setValue(b);va()},Ja=!1,Ka=function(b){var d=b.target;if(d==
Y[0])b=M.getCurrentTargetPosition(b),xa(b[0]),Ja=!0;else if(d==ca[0]||d==ca.children().eq(0)[0]||d==ca.children().eq(1)[0])Ja=!0},Va=function(b){Ja&&c(b,!0)},La=function(b){Ja&&c(b,!1);Ja=!1},h=function(b){Ja&&c(b,!1);Ja=!1},c=function(b,d){var e=M.getCurrentTargetPosition(b);e=M.upwardCoordinate(b.target,e,da[0]);b=e[0]-Y.prop("offsetLeft");xa(b);ba&&ba(X.getValue(),d)}}function C(){var X=this,v,da,Y,ca,na;this.setUserObject=function(oa){v=oa};this.getUserObject=function(){return v};this.setEnabled=
function(oa){wa().setEnabled(oa)};this.setColor=function(oa){wa().setSelectedModel(oa)};this.getColor=function(){return wa().getSelectedModel()};this.setColorSelectedListener=function(oa){Y=oa};this.setDisplayForNull=function(oa){ca=oa};this.setColorPool=function(oa){na=oa};this.getJqUi=function(){return wa().getJqUi()};var wa=function(){da||(da=new ib,da.setDropdownCreator(Ca),da.setCustomPainter(ba),da.addSelectionListener(function(oa,Ea){Ea&&Y&&Y(X)}));return da},Ca=function(oa,Ea,I){Ea=new E;
Ea.setColorPoolGetter(function(){return na});Ea.setColorConfirmedListener(function(U){I(U)});Ea.setPopupListener(function(){X.getJqUi().click()});Ea=Ea.createJqUi(X.getColor(),ca);Ea.appendTo(oa);M.layoutCtrlWithLRTB(Ea,0,0,null,0,0,null);return[Ea.outerWidth(),Ea.outerHeight()]},ba=function(oa,Ea){var I=Ea.parent(),U=I.children(".sa-ctrl-combocolor-color");0==U.length&&(U=$("<div>"),U.addClass("sa-ctrl-combocolor-color"),U.appendTo(I));oa?(U.css({display:"","background-color":oa}),Ea.text("")):(U.css({display:"none",
"background-color":""}),Ea.text(ca?ca:x.get("defaultColor","\u7cfb\u7edf\u9ed8\u8ba4")))}}function E(){var X,v,da,Y,ca;this.setColorConfirmedListener=function(ba){da=ba};this.setPopupListener=function(ba){Y=ba};var na=function(){Y()};this.setColorPoolGetter=function(ba){ca=ba};this.createJqUi=function(ba,oa){X=$("<div>");X.text(oa?oa:x.get("defaultColor","\u7cfb\u7edf\u9ed8\u8ba4"));X.addClass("sa-ctrl-colorchooser-pallet-other");X.addClass("sa-ctrl-colorchooser-pallet-item");X.on("click",wa);ba||
(X.addClass("sa-ctrl-colorchooser-pallet-item_selected"),ba="#808080");v=new Qa;v.addSelectedListener(Ca);v.setOpenDialogListener(na);v.getModel().decodeFrom(ba);(ba=ca())&&v.setColorPool(ba);ba=v.createJqUi();oa=$("<div>");oa.append(X);oa.append(ba);M.layoutCtrlWithLRTB(X,6,6,null,8,null,20);M.layoutCtrlWithLRTB(ba,0,0,null,28,0,null);oa.css("background-color","#fff");oa.css("width",ba.outerWidth());oa.css("height",ba.outerHeight()+28);return oa};var wa=function(ba){da(null)},Ca=function(ba){ba=
ba.encodeToHexRgb();da(ba)}}function R(){var X=this,v,da=!1,Y="",ca,na,wa,Ca=!0;this.setUserObject=function(I){v=I};this.getUserObject=function(){return v};this.setUiListMode=function(I){da=I};this.setDefaultDisplay=function(I){Y=I};this.getJqUi=function(){ba();return na.getJqUi()};this.setSelected=function(I){ba();!I&&(I="");for(var U=0;U<ca.length;U++){var va=ca[U];if(va.getFontFamily()==I){var xa=va;break}}!xa&&(xa=Q.createItem(I,I));Ca=!1;da?na.setSelecteds([xa]):na.setSelected(xa);Ca=!0;return xa.getDisplayName()};
this.getSelected=function(){if(na)var I=da?(I=na.getSelecteds())&&0<I.length?I[0]:null:na.getSelected();I=I?I.getFontFamily():null;!I&&(I=null);return I};this.setSelectionListener=function(I){wa=I};var ba=function(){na||(da?oa():Ea(),ca=[Q.createItem("",void 0==Y?"":Y)],ca=ca.concat(Q.copyItemList()),na.setItemModels(ca,function(I,U){return I.getFontFamily()==U.getFontFamily()}))},oa=function(){na=new Ba;na.setToggleSelectingEnabled(!1);na.setCustomItemPainter(function(I,U){U=U?U.getDisplayName():
"";I.text(U)});na.addPressedListener(function(I,U){wa&&wa(X,X.getSelected())})},Ea=function(){na=new pa;na.setDropdownAsLongAsPossible(!0);na.setCustomPainter(function(I,U,va){I=va?va.getDisplayName():"";U.text(I)});na.addSelectedChangedListener(function(I,U,va){Ca&&wa&&wa(X,X.getSelected())})}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing=
{});"undefined"==typeof com.kingdee.bos.qing.common&&(com.kingdee.bos.qing.common={});"undefined"==typeof com.kingdee.bos.qing.common.ui&&(com.kingdee.bos.qing.common.ui={});var sa=com.kingdee.bos.qing.common.ui;sa.NumberFormatSettingPanel=function(){var X,v,da=new ra,Y=new ta,ca=new Ha,na=new ka,wa=new ka,Ca=new ta,ba=new Ha,oa=new pa,Ea=new Ha,I=new Ha,U=new pa,va=!1,xa,Ja,Ka=mb.slice(),Va=[new za(x.get("nullUnit","-- \u65e0 --"),0),new za(x.get("oneInThousand","\u5343\u5206\u4e4b\u4e00(\u2030)"),
-3),new za(x.get("onePercent","\u767e\u5206\u4e4b\u4e00(\uff05)"),-2),new za(x.get("hundred","\u767e"),2),new za(x.get("thousand","\u5343"),3),new za(x.get("tenThousand","\u4e07"),4),new za(x.get("hundredThousand","\u5341\u4e07"),5),new za(x.get("million","\u767e\u4e07"),6),new za(x.get("tenMillion","\u5343\u4e07"),7),new za(x.get("hundredMillion","\u4ebf"),8),new za(x.get("billion","\u5341\u4ebf"),9),new za(x.get("tenBillion","\u767e\u4ebf"),10),new za(x.get("hundredBillion","\u5343\u4ebf"),11),
new za(x.get("trillion","\u4e07\u4ebf"),12)],La=function(r){for(var z=0;z<Va.length;z++)if(Va[z].getUnitPower()===r)return Va[z];return null};this.setModel=function(r){xa=r;da.setValue(xa.isDecimalUnsure()?null:xa.getDecimal());ca.setText(xa.isDecimalSymbolUnsure()?null:xa.getDecimalSymbol()?xa.getDecimalSymbol():Ga.DEFAULT_DECIMAL_SYMBOL);r=xa.isThousandUnsure()||xa.isTenThousandUnsure();na.setHalfCheckable(r);na.setChecked(r?null:xa.isThousand());wa.setHalfCheckable(!1);wa.setChecked(xa.isTenThousandUnsure()?
!1:xa.isTenThousand());ba.setText(xa.isGroupingSymbolUnsure()?null:xa.getGroupingSymbol()?xa.getGroupingSymbol():Ga.DEFAULT_GROUPING_SYMBOL);oa.setSelected(xa.isUnitPowerUnsure()?null:La(xa.getUnitPower()));Ea.setText(xa.isPrefixUnsure()?null:xa.getPrefix()?xa.getPrefix():"");I.setText(xa.isSuffixUnsure()?null:xa.getSuffix()?xa.getSuffix():"");n();U.setSelected(xa.isNegativePatternUnsure()?null:xa.getNegativePattern());l()};this.getModel=function(){var r=new Ga;r.setDecimal(null===da.getValue()?Ga.UNSURE:
da.getValue());var z=ca.getText();z=z?z.charAt(0):z;r.setDecimalSymbol(null===z?Ga.UNSURE:z);na.isCheckedUnsure()?(r.setThousand(xa.isThousand()),r.setTenThousand(xa.isTenThousand())):(r.setThousand(na.isChecked()),r.setTenThousand(wa.isChecked()));z=(z=ba.getText())?z.charAt(0):z;r.setGroupingSymbol(null===z?Ga.UNSURE:z);r.setUnitPower(null===oa.getSelected()?Ga.UNSURE:oa.getSelected().getUnitPower());r.setPrefix(null===Ea.getText()?Ga.UNSURE:Ea.getText());r.setSuffix(null===I.getText()?Ga.UNSURE:
I.getText());r.setNegativePattern(null===U.getSelected()?Ga.UNSURE:U.getSelected());return r};this.setDirtyListener=function(r){Ja=r};this.isDirty=function(){return va};this.clearDirtyState=function(){va=!1;Ja&&Ja(va)};this.isValidToAccepted=function(){return"none"==v.css("display")};this.getJqUi=function(){if(!X){X=$("<div>");var r=new ta(x.get("decimalDigits","\u5c0f\u6570\u4f4d\u6570")+":");da.setConstraint(0,20,1);da.addValueChangedListener(c);da.addValueChangedListener(g);Y.setText(x.get("decimalSymbol",
"\u5c0f\u6570\u70b9\u7b26\u53f7")+":");ca.addEditingListener(g);na.setText(x.get("thousandSeparator","\u5343\u4f4d\u5206\u9694\u7b26"));na.addCheckedListener(b);na.addCheckedListener(g);wa.setText(x.get("tenThousandSeparator","\u4e07\u4f4d\u5206\u9694\u7b26"));wa.addCheckedListener(b);wa.addCheckedListener(g);Ca.setText(x.get("separator","\u5206\u9694\u7b26\u53f7")+":");ba.addEditingListener(g);var z=new ta(x.get("numUnit","\u6570\u91cf\u5355\u4f4d")+":");oa.setItemModels(Va);oa.setCustomPainter(w);
oa.addSelectedChangedListener(d);oa.addSelectedChangedListener(g);var T=new ta(x.get("prefixSuffix","\u524d\u7f00/\u540e\u7f00")+":");Ea.addEditedListener(e);Ea.addEditedListener(g);I.addEditedListener(e);I.addEditedListener(g);v=$("<span>");v.text(x.get("affixesError","\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26{}.,#0"));v.css({color:"#c00","text-align":"right",display:"none"});var aa=new ta(x.get("negative","\u8d1f\u6570")+":");U.setItemModels(Ka);U.setCustomPainter(w);U.addSelectedChangedListener(g);
k();p();h(r.getJqUi(),0,0,80,23);h(da.getJqUi(),80,0,100,23);h(Y.getJqUi(),216,0,80,23);h(ca.getJqUi(),296,0,45,23);h(na.getJqUi(),0,33,100,23);h(wa.getJqUi(),100,33,100,23);h(Ca.getJqUi(),216,33,80,23);h(ba.getJqUi(),296,33,45,23);h(z.getJqUi(),0,66,80,23);h(oa.getJqUi(),80,66,100,23);h(T.getJqUi(),216,66,80,23);h(v,216,90,180,23);h(Ea.getJqUi(),296,66,45,23);h(I.getJqUi(),351,66,45,23);h(aa.getJqUi(),0,99,80,23);h(U.getJqUi(),80,99,100,23)}return X};var h=function(r,z,T,aa,A){M.layoutCtrl(r,z,T,
aa,A);r.appendTo(X)},c=function(r,z,T,aa){k()},b=function(r){r==na?(na.isCheckedUnsure()||na.isChecked())&&wa.setChecked(!1):r==wa&&wa.isChecked()&&na.setChecked(!1);p()},d=function(r,z,T){r=La(-2);var aa=La(-3);z==r&&"%"==I.getText()&&B("");z==aa&&"\u2030"==I.getText()&&B("");T==r&&null!=I.getText()&&B("%");T==aa&&null!=I.getText()&&B("\u2030")},e=function(r){n();l()},g=function(r){va=!0;Ja&&Ja(va)},k=function(){var r=0<da.getValue();Y.setEnabled(r);ca.setEnabled(r)},p=function(){var r=na.isCheckedUnsure()||
na.isChecked()||wa.isChecked();Ca.setEnabled(r);ba.setEnabled(r)},w=function(r,z,T){r?z.text(null===T?"?":T):z.text(T?T:"")},B=function(r){I.setText(r);n();l()},l=function(){var r=Ea.getText(),z=I.getText();r=r?r:null;z=z?z:null;for(var T=0;T<Ka.length;T++)Ka[T].setDemoPrefixAndSuffix(r,z);U.setItemModels(Ka);U.setSelected(U.getSelected())},n=function(){if(v){var r=Ea.getText(),z=I.getText(),T=/[\{\}\.,#0]/;T.test(r)||T.test(z)?v.css("display","block"):v.css("display","none")}}};sa.NumberFormatModel=
Ga;sa.NumberFormatSample=function(){var X=!1;this.setJustForInteger=function(v){X=v};this.toSampleString=function(v){var da=new Ga;da.decode(v);var Y=12345,ca=da.getUnitPower(),na=0;if(0>ca)Y=0,na=-ca;else for(var wa=0;wa<ca;wa++)Y*=10;ca=da.getDecimal()+na;if(0<ca)for(Y+=".",wa=1;wa<=ca&&!(X&&wa>na);wa++)Y+=wa%10;da.getNegativePattern().toString()&&(Y="-"+Y);da=new y;da.setFormatString(v);return Y=da.format(Y)}};sa.FormulaEditorPanel=Sa;sa.RelativePeriodPanel=Ua;sa.ManualOrderingList=function(){var X=
new Ba,v;this.createJqUi=function(){var oa=new bb;oa.setText(x.get("orderingListUp","\u4e0a\u79fb"));oa.getJqUi().on("mousedown",Y);oa.getJqUi().on("mouseup",ca);oa.getJqUi().on("mouseleave",ca);var Ea=new bb;Ea.setText(x.get("orderingListDown","\u4e0b\u79fb"));Ea.getJqUi().on("mousedown",wa);Ea.getJqUi().on("mouseup",Ca);Ea.getJqUi().on("mouseleave",Ca);var I=$("<div>");I.append(oa.getJqUi());I.append(Ea.getJqUi());I.append(X.getJqUi());M.layoutCtrlWithLRTB(oa.getJqUi(),null,50,40,0,null,22);M.layoutCtrlWithLRTB(Ea.getJqUi(),
null,0,40,0,null,22);M.layoutCtrlWithLRTB(X.getJqUi(),0,0,null,26,0,null);return I};this.setItems=function(oa,Ea){v=oa;X.setToggleSelectingEnabled(!1);X.setCustomItemPainter(Ea?Ea:null);X.setItemModels(v);X.setSelecteds([v[0]])};this.getItems=function(){return v};var da,Y=function(oa){var Ea=function(){var I=X.getSelecteds()[0];if(I==v[0])I=!1;else{var U=ba(I);v.splice(U,1);v.splice(U-1,0,I);X.setItemModels(v);I=!0}I&&(da=setTimeout(Ea,325))};Ea()},ca=function(oa){clearTimeout(da)},na,wa=function(oa){var Ea=
function(){var I=X.getSelecteds()[0];if(I==v[v.length-1])I=!1;else{var U=ba(I);v.splice(U,1);v.splice(U+1,0,I);X.setItemModels(v);I=!0}I&&(na=setTimeout(Ea,325))};Ea()},Ca=function(oa){clearTimeout(na)},ba=function(oa){for(var Ea=0;Ea<v.length;Ea++)if(oa==v[Ea])return Ea;throw Error("Impossible");}};sa.BlinkHelper=function(){var X=250,v=150,da=6,Y=!1,ca,na,wa;this.setDuration=function(Ca,ba){clearTimeout(na);X=Ca;v=ba};this.setTimes=function(Ca,ba){clearTimeout(na);da=2*Ca+(ba?1:0);Y=ba};this.setAction=
function(Ca){clearTimeout(na);ca=Ca};this.terminate=function(){clearTimeout(na);wa&&wa();ca&&ca()};this.blink=function(Ca){if(0>=da)throw Error("Illegal usage");clearTimeout(na);wa=Y?function(){Ca.hide()}:function(){Ca.show()};var ba=function(){if(0==da)ca&&ca(),wa=null;else{if(da%2==(Y?0:1)){Ca.show();var oa=X}else Ca.hide(),oa=v;na=setTimeout(ba,oa);da--}};ba()}};sa.LocalFileSelector=function(){function X(wa){this.isSizeLargeThan=function(Ca){return wa.size>Ca};this.isTypeMatched=function(){return Y?
Y(wa.type):!0};this.getFileName=function(){return wa.name};this.getFile=function(){return wa}}var v=this,da,Y,ca;this.appendInvislbelUiTo=function(wa){ca=$("<input type='file'>");ca.on("change",na);M.layoutCtrl(ca,-100,-100,0,0);ca.appendTo(wa)};this.selectFile=function(wa,Ca,ba){da=wa;Y=ba;Ca&&ca.attr("accept",Ca);ca.prop("value","");ca.click()};this.selectImageFile=function(wa){v.selectFile(wa,"image/*",function(Ca){return 0==Ca.indexOf("image/")})};var na=function(wa){da(new X(wa.currentTarget.files[0]))}};
sa.RadioButtonGroupWithTabbedPane=function(){var X,v=[],da=0,Y,ca=$("<div>"),na,wa,Ca,ba=!0;this.addItem=function(U,va,xa,Ja){var Ka=new Oa;Ka.setText(Ja);Ka.setUserObject([U,xa]);Ea().addElement(Ka);v.push(Ka);U=Ka.getJqUi();M.layoutCtrl(U,da,0,va,23);ca.append(U);da+=va+20};this.setSelected=function(U){for(var va=0;va<v.length;va++){var xa=v[va];if(U==xa.getUserObject()[0]){xa.setChecked(!0);break}}};this.getSelected=function(){for(var U=0;U<v.length;U++){var va=v[U];if(va.isChecked())return va.getUserObject()[0]}return null};
this.setSelectedChangedListener=function(U){Ca=U};this.setBottomLineVisible=function(U){ba=U};this.getJqUi=function(){if(!Y){wa=$("<div>");var U=$("<div>");U.addClass("sa-common-border");U.css({"background-color":"#fff","border-width":0,"border-top-width":"1px","border-left-width":"1px"});P.rotate(U,45);na=U;U=oa();var va=oa();M.layoutCtrlWithLRTB(ca,0,0,null,0,null,23);M.layoutCtrlWithLRTB(U,0,0,null,32,null,1);M.layoutCtrlWithLRTB(na,20,null,10,27,null,10);M.layoutCtrlWithLRTB(wa,0,0,null,40,8,
null);M.layoutCtrlWithLRTB(va,0,0,null,null,0,1);Y=$("<div>");Y.append(ca);Y.append(U);Y.append(na);Y.append(wa);ba&&Y.append(va)}return Y};var oa=function(){var U=$("<div>");U.addClass("sa-common-border");U.css({"border-width":0,"border-top-width":"1px"});return U},Ea=function(){X||(X=new Ta,X.addChangedListener(function(U,va){wa.children().detach();var xa=U.getUserObject()[1];xa.appendTo(wa);M.layoutCtrlWithLRTB(xa,20,20,null,0,0,null);I(U.getJqUi());xa=U.getUserObject()[0];U=U.getUserObject()[1];
Ca&&Ca(va,xa,U)}));return X},I=function(U){setTimeout(function(){var va=[20,0];va=M.upwardCoordinate(U[0],va,Y[0]);na.css("left",va[0]+"px")},0)}};sa.DateRangePanel=function(){var X=this,v,da=new Aa,Y=new Aa,ca=0,na,wa;this.setDateRange=function(I,U){oa(da,I);oa(Y,U);ca=0};this.getDateRange=function(){var I=Ea(da,!0),U=Ea(Y,!1);I>U&&(I=Ea(Y,!0),U=Ea(da,!1));return[I,U]};this.setSelectedListener=function(I){na=I};this.setMaskRequestListener=function(I){wa=I};this.getJqUi=function(){!v&&Ca();return v};
var Ca=function(){var I=new ta(x.get("adrFromDate","\u5f00\u59cb\u65e5\u671f\uff1a")),U=new ta(x.get("adrToDate","\u7ed3\u675f\u65e5\u671f\uff1a")),va=ba(),xa=ba();da.setCurrentMonthNavigatorListener(function(Ja,Ka){xa.css("display",Ka?"":"none");wa&&wa(X,Ka)});Y.setCurrentMonthNavigatorListener(function(Ja,Ka){va.css("display",Ka?"":"none");wa&&wa(X,Ka)});da.addSelectedChangedListener(function(Ja){ca|=16;17==(ca&17)&&na&&na(X)});Y.addSelectedChangedListener(function(Ja){ca|=1;17==(ca&17)&&na&&na(X)});
v=$("<div>");v.append(I.getJqUi());v.append(U.getJqUi());v.append(da.getJqUi());v.append(Y.getJqUi());v.append(va);v.append(xa);M.layoutCtrlWithLRTB(I.getJqUi(),0,null,250,0,null,30);M.layoutCtrlWithLRTB(U.getJqUi(),null,0,250,0,null,30);M.layoutCtrlWithLRTB(da.getJqUi(),0,null,250,30,0,null);M.layoutCtrlWithLRTB(Y.getJqUi(),null,0,250,30,0,null);M.layoutCtrlWithLRTB(va,0,null,250,0,0,null);M.layoutCtrlWithLRTB(xa,null,0,250,0,0,null)},ba=function(){var I=$("<div>");I.css("display","none");I.addClass("sa-ctrl-date-mask");
return I},oa=function(I,U){U=U?new Date(U):new Date;I.setSelected(U.getFullYear(),U.getMonth()+1,U.getDate())},Ea=function(I,U){var va=I.getSelectedYear(),xa=I.getSelectedMonth();I=I.getSelectedDay();var Ja=new Date;Ja.setFullYear(va,xa-1,I);U?Ja.setHours(0,0,0,0):Ja.setHours(23,59,59,999);return Ja.getTime()}};sa.OpacityEditor=V;sa.AbstractLeftRightSelector=function(){var X=this,v,da,Y,ca,na;this.getJqUi=function(){v||(ca=wa(">",!0),na=wa("<",!1),da=Ca(X.protectedCreateLeftJqTitle(),X.protectedGetLeftCtrl()),
Y=Ca(X.protectedCreateRightJqTitle(),X.protectedGetRightCtrl()),v=$("<div>"),v.append(da),v.append(Y),v.append(ca.getJqUi()),v.append(na.getJqUi()));return v};this.relayout=function(){var ba=v.prop("clientWidth"),oa=v.prop("clientHeight");M.layoutCtrlWithLRTB(da,0,(ba>>1)+36,null,0,0,null);M.layoutCtrlWithLRTB(Y,(ba>>1)+36,0,null,0,0,null);M.layoutCtrlWithLRTB(ca.getJqUi(),null,null,null,null,(oa>>1)+8,28);M.layoutCtrlCenterAlign(ca.getJqUi(),40);M.layoutCtrlWithLRTB(na.getJqUi(),null,null,null,(oa>>
1)+8,null,28);M.layoutCtrlCenterAlign(na.getJqUi(),40)};var wa=function(ba,oa){ba=new bb(ba);ba.getJqUi().css({border:"1px solid #ddd","font-size":"18px"});ba.addActionListener(function(Ea){X.protectedSelect(oa)});return ba},Ca=function(ba,oa){var Ea=$("<div>");Ea.append(oa.getJqUi());ba?(Ea.append(ba),M.layoutCtrlWithLRTB(ba,0,0,null,0,null,20),M.layoutCtrlWithLRTB(oa.getJqUi(),0,0,null,22,0,null)):M.layoutCtrlWithLRTB(oa.getJqUi(),0,0,null,0,0,null);return Ea};this.protectedCreateLeftJqTitle=function(){return null};
this.protectedCreateRightJqTitle=function(){return null};this.protectedGetLeftCtrl=function(){throw Error("Implement");};this.protectedGetRightCtrl=function(){throw Error("Implement");};this.protectedSelect=function(ba){throw Error("Implement");};this.protectedMethod={getButtonSelect:function(){return ca},getButtonDeselect:function(){return na}}};sa.ColorSelector=C;sa.ColorWithOpacitySelector=function(){var X=this,v,da=new C,Y=new V,ca,na;this.setUserObject=function(Ca){v=Ca};this.getUserObject=function(){return v};
this.setEnabled=function(Ca){da.setEnabled(Ca);Y.setEnabled(Ca)};this.setColorPool=function(Ca){da.setColorPool(Ca)};this.setDisplayForNull=function(Ca){da.setDisplayForNull(Ca)};this.setNullableColor=function(Ca){var ba=null,oa=100;Ca&&(Ca=a.splitRgbAndOpacity(Ca),ba=Ca[0],oa=parseInt(100*Ca[1]));da.setColor(ba);Y.setValue(oa);wa(ba?!0:!1,!1)};this.getNullableColor=function(){var Ca=da.getColor(),ba=Y.getValue();return Ca?a.withOpacityToRgba(Ca,ba/100):null};this.setChangedListener=function(Ca){na=
Ca};this.getJqUi=function(){if(!ca){da.setColorSelectedListener(function(ba){ba=ba.getColor()?!0:!1;wa(ba,!0);na&&na(X)});Y.setValueChangedListener(function(ba,oa){oa||na&&na(X)});ca=$("<div>");ca.append(da.getJqUi());ca.append(Y.getJqUi());M.layoutCtrlWithLRTB(da.getJqUi(),0,0,null,0,0,null);M.layoutCtrlWithLRTB(Y.getJqUi(),null,0,0,0,0,null);var Ca=da.getColor()?!0:!1;wa(Ca,!1)}return ca};var wa=function(Ca,ba){var oa=0,Ea=0;Ca&&(oa=64,Ea=60);ba?(da.getJqUi().animate({right:oa},250),Y.getJqUi().animate({width:Ea},
250)):(da.getJqUi().css({right:oa}),Y.getJqUi().css({width:Ea}))}};sa.FontSelector=R;var J,M,y,N,t,P,a,x,m,Q,ea,ta,Ha,la,ka,ra,pa,Da,Ba,Oa,Ta,Wa,ab,bb,Aa,cb,hb,ib,Qa;(function(){var X=com.kingdee.bos.qing;J=X.CommonCodeImporter;X=com.kingdee.bos.qing.common;M=X.DomUtil;y=X.NumberFormater;N=X.DateFormater;t=X.RelativePeriodModel;P=X.CssUtil;a=X.ColorUtil;X=com.kingdee.bos.qing.framework.common;x=X.MultilanguageManager.createPackageAccessor(sa);m=X.GlobalFont;Q=X.FontProvider;X=com.kingdee.bos.qing.ui.component;
ea=X.Icons;ta=X.Label;Ha=X.TextField;la=X.TextArea;ka=X.CheckBox;ra=X.Spinner;pa=X.ComboBox;Da=X.SearchBox;Ba=X.List;Oa=X.RadioButton;Ta=X.RadioButtonGroup;Wa=X.DateSelector;ab=X.DateTimeSelector;bb=X.WorkButton;Aa=X.Calendar;cb=X.Menu;hb=X.MenuModel;ib=X.DropdownSelector;Qa=X.ColorChooser})();Ga.UNSURE="qing.system.UNSURE";Ga.DEFAULT_DECIMAL_SYMBOL=".";Ga.DEFAULT_GROUPING_SYMBOL=",";var mb=[new function(){Ma.call(this);this.jointFormatString=function(X,v,da){return null};this.toString=function(){return""}},
new function(){Ma.call(this);var X=this.protectedMethod;this.protectedGetDemoPrefix=function(){var v=X.getDemoPrefix();return null==v?x.get("prefix","\u524d\u7f00"):v};this.jointFormatString=function(v,da,Y){return"-"+v+da+Y}},new function(){Ma.call(this);var X=this.protectedMethod;this.protectedGetDemoPrefix=function(){var v=X.getDemoPrefix();return null==v?x.get("prefix","\u524d\u7f00"):v};this.jointFormatString=function(v,da,Y){return v+"-"+da+Y}},new function(){Ma.call(this);this.jointFormatString=
function(X,v,da){return"("+X+v+da+")"}},new function(){Ma.call(this);this.jointFormatString=function(X,v,da){return X+v+da}}];Sa.FieldsProvider=function(){var X;this.getJqUi=function(){throw Error("Override me.");};this.setChoosingListener=function(v){X=v};this.protectedMethod={fireChoosingEvent:function(v){X(v)}}};Ua.modelToDisplayText=function(X,v){var da="",Y=0,ca=X.getWhichPeriod(),na=X.getFromNowOn(),wa=X.getUpToNow();null===ca?wa?da="UpToNow":0>na?(da="FromNowOnBefore",Y=-na):0<na&&(da="FromNowOnAfter",
Y=na):-1==ca?da="BeforeOne":0==ca?da="Current":1==ca&&(da="AfterOne");ca=Xa.getMLSKeyPrefix(X.getPeriod());(da=x.get(ca+da))&&0<=da.indexOf("#1")&&Y&&(da=da.replace("#1",Y));X=X.getAnchor();null!=X&&(Y=new N,Y.setFormatString(v?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd"),v=Y.format(X),da+=x.get("rdrDisplayBasedOn","\u57fa\u4e8e(#1)").replace("#1",v));return da};Xa.getMLSKeyPrefix=function(X){switch(X){case t.PERIOD_YEAR:return"rdrYear";case t.PERIOD_QUARTER:return"rdrQuarter";case t.PERIOD_MONTH:return"rdrMonth";
case t.PERIOD_WEEK:return"rdrWeek";case t.PERIOD_DAY:return"rdrDay";case t.PERIOD_HOUR:return"rdrHour";case t.PERIOD_MINUTE:return"rdrMinute";default:return""}};sa.TableUtil=new function(){function X(){KTableSelectionRender.call(this);var U=$("<div>");this.show=function(xa,Ja,Ka,Va,La){M.layoutCtrl(U,Ja,Ka,Va-Ja,La-Ka);va();U.css("z-index",0);xa.append(U)};this.remove=function(){U.remove()};this.current=function(){va()};this.letOthersOld=function(xa){};var va=function(xa){U.addClass("sa-common-table-selection")}}
var v=com.kingdee.bos.qing.common,da=this,Y,ca,na,wa,Ca,ba,oa;this.createTable=function(){var U=new KTable;U.setCrossFrozenRenderMode(KTCrossFrozenRenderMode.STUPID_LIGHT);U.setSyncMergeBlockWhenModelChanged(!1);U.setSyncUIWhenModelChanged(!1);U.setFrozenRows(da.getHeadRowCount());U.setDraggableAdjusting(!0,da.getHeadRowCount(),0);var va=U.setStyle;Y||(Y=new KTStyle,Y.setVerticalAlign("middle"),Y.setFontSize(m.getFontSize()),Y.setFontUnit("px"),Y.setFontName(m.getFontName()),Y.setColor(v.CommonTableSkin.COLOR));
va.call(U,Y);U.setBorder(null);U.getCellRender().setPaddingHV(6,1);U.getCellRender().setEllipsis(!0);return U};this.clear=function(U){var va=U.isSyncUIWhenModelChanged();U.setSyncUIWhenModelChanged(!1);U.removeAllColumns();U.removeAllRows();U.setSyncUIWhenModelChanged(va)};this.clearWithoutHead=function(U){var va=U.isSyncUIWhenModelChanged();U.setSyncUIWhenModelChanged(!1);for(var xa=U.getRowsCount()-1;2<xa;xa--)U.removeRow(xa);U.setSyncUIWhenModelChanged(va)};this.getHeadRowCount=function(){return 3};
this.createHeadRow=function(U){var va=U.isSyncUIWhenModelChanged();U.setSyncUIWhenModelChanged(!1);var xa=U.addRow();xa.setHeight(6);xa.setStyle(Ea());xa=U.addRow();xa.setHeight(22);xa.setStyle(Ea());var Ja=xa.setBorder;ca||(ca=new KTBorderStyle,ca.setLeftBorderWidth(1),ca.setLeftBorderPen("solid"),ca.setLeftBorderColor(v.CommonTableSkin.HEAD_ROW_BORDER_COLOR));Ja.call(xa,ca);Ja=U.addRow();Ja.setHeight(6);Ja.setStyle(Ea());U.setSyncUIWhenModelChanged(va);return xa};this.createRow=function(U,va){var xa=
U.isSyncUIWhenModelChanged();U.setSyncUIWhenModelChanged(!1);var Ja=U.getRowsCount(),Ka=U.addRow();Ka.setHeight(30);if(void 0===va||!0===va)va=Ka.setStyle,1==Ja%2?(wa||(wa=new KTStyle,wa.setBackgroundColor(v.CommonTableSkin.ODD_ROW_BACKGROUND_COLOR)),Ja=wa):(Ca||(Ca=new KTStyle,Ca.setBackgroundColor(v.CommonTableSkin.EVEN_ROW_BACKGROUND_COLOR)),Ja=Ca),va.call(Ka,Ja);Ka.setBorder(null);U.setSyncUIWhenModelChanged(xa);return Ka};this.refresh=function(U){if(1<U.getRowsCount()){var va=new KTBorderStyle;
va.setLeftBorderWidth(0);U.getRow(1).getCell(0).setBorder(va)}U.updateUI();U.relayoutViews()};var Ea=function(){na||(na=new KTStyle,na.setBackgroundColor(v.CommonTableSkin.HEAD_ROW_BACKGROUND_COLOR),na.setBold(!0),na.setTextAlign("center"));return na};this.getColumnStyle=function(U){if(U)return ba||(ba=new KTStyle,ba.setTextAlign("right")),ba;oa||(oa=new KTStyle,oa.setTextAlign("left"));return oa};this.bindTextEditor=function(U,va,xa){var Ja=!1;U.addCellClickListener(function(Ka,Va){if(!(Ja||Va.getRowIdx()<
da.getHeadRowCount())&&va(Va.getRowIdx(),Va.getColIdx())){var La=Va.getRow(),h=Va.getCol(),c=Va.getCell(),b=function(k,p){if(k&&(k=$.trim(e.getText()),!xa(La,h,c,k,p)&&p))return;document.body.removeEventListener("mousedown",d,!0);g.remove();Ja=!1},d=function(k){for(k=k.target;k!=document.body;){if(k==g[0])return;k=k.parentNode}b(!0,!1)};document.body.addEventListener("mousedown",d,!0);Ja=!0;var e=new Ha;e.setText($.trim(c.getValue()));e.addAcceptableListener(function(k,p){b(p,!0)});var g=e.getJqUi();
g.css({"z-index":65535,position:"absolute",left:Va.getXCellAtTable(),top:Va.getYCellAtTable(),width:h.getWidth()-2,height:La.getHeight()-2});Ka=$(U.getUI()).children().first();g.appendTo(Ka);e.requestFocus()}})};this.createCtrlInCell=function(U,va,xa,Ja){U=$(U);U.empty();Ja=new Ja;U.data("my-ctrl",Ja);I(U,!1);var Ka=Ja.getJqUi();Ka.css({position:"absolute",left:"1px",top:"1px",width:va-2,height:xa-2,"background-color":"transparent"});Ka.appendTo(U);return Ja};var I=function(U,va){(U=U.data("my-ctrl"))&&
U.showFeature&&U.showFeature(va)};this.bindTableListenerForCtrl=function(U,va){var xa=-1,Ja=-1,Ka=null;U.setCellAcrossListener(function(Va,La,h){Va||(h=La=-1);if(xa!=La||Ja!=h)Ka&&I(Ka,!1),Ka&&va&&va(Ka,!1),Ka=Va,xa=La,Ja=h,Va=da.getHeadRowCount(),xa>=Va&&Ka&&(I(Ka,!0),va&&va(Ka,!0,xa,Ja))})};this.setupSingleRowSelection=function(U){U.getSelectionModel().setMode(KTSelectionModel.MODE_SINGLE);U.getSelectionModel().setPolicy(KTSelectionModel.POLICY_ROW);U.setSelectionRender(X)}};sa.CommonIconUtil=new function(){this.createWarning=
function(){var X=$("<div>");X.text("!");X.css({width:"12px",height:"12px","line-height":"12px","font-size":"12px","font-weight":"bold","text-align":"center","background-color":"yellow",color:"#bc1118",border:"solid 1px #bc1118","border-radius":"7px"});return X}};R.searchDisplayName=function(X){for(var v=null,da=0;da<Q.getItemCount();da++){var Y=Q.getItem(da);if(Y.getFontFamily()==X){v=Y;break}}return v?v.getDisplayName():null};sa.EngineeringMenu=new function(){var X,v;this.addSeperator=function(){da().addSeperator()};
this.addMenuItem=function(ca,na){ca=cb.createActionMenuItem(ca,na);da().addItemModel(ca)};var da=function(){if(!X){X=new hb;var ca=cb.createActionMenuItem("\u5de5\u7a0b\u83dc\u5355");ca.setEnabled(!1);X.addItemModel(ca);X.addSeperator();$(document.body).on("keydown",function(na){na.altKey&&na.shiftKey&&68==na.keyCode&&Y()})}return X},Y=function(){v||(v=new cb,v.setModel(da()),v.setHideListener(function(){v=null}),v.show($(document.body),2,2,null,!0),v.getJqUi().css("z-index","9999999"))}}})();(function(){function za(x,m,Q,ea){P.call(this,x,m,Q,ea);this.setShowBlocking(!1);var ta=this.protectedMethod;this.recordResourceOperation=function(Ha,la,ka,ra,pa){ta.remote("recordResourceOperation",{sourceId:Ha,operationType:la,pageId:ka,sourceType:ra,appType:pa})}}function Ga(x,m,Q,ea){P.call(this,x,m,Q,ea);this.setShowBlocking(!1);var ta=this.protectedMethod;this.loadBehaviorContext=function(Ha){ta.remote("loadBehaviorContext",{appId:Ha})};this.loadDataSourceInfo=function(Ha){Ha={tags:JSON.stringify(Ha)};
ta.remote("loadDataSourceInfo",Ha)}}function Ma(){t.call(this);var x;this.getRemoteUrl=function(m){return x};this.setRemoteUrl=function(m){x=m}}function Sa(x){this.sendBehaviorData=function(m){var Q={type:"POST",dataType:"json",contentType:"application/json; charset=utf-8"};Q.url=x;Q.data=JSON.stringify(m);Q.success=void 0;Q.error=void 0;$.ajax(Q)}}function Ua(){var x;this.collect=function(m,Q,ea){if(!x){var ta=[V,C,E,R];x=[];for(var Ha=0;Ha<ta.length;Ha++){var la=new ta[Ha];x.push(la)}}for(ta=0;ta<
x.length;ta++)x[ta].collect(m,Q,ea)}}function Xa(){var x=this,m;this.collect=function(Q,ea,ta){m||(m=x.protectedInitMap());var Ha=m[Q]?!0:!1;Ha&&this.protectedCollect(Q,ea,ta)};this.protectedInitMap=function(){throw Error("Override me.");};this.protectedCollect=function(Q,ea,ta){throw Error("Override me.");};this.protectedMethod={getMap:function(){return m}}}function V(){Xa.call(this);var x=this.protectedMethod;this.protectedInitMap=function(){var m={};m[a.LONGER_CHART_TYPE]=a.CATEGORY_LONGER_CHART_TYPE;
m[a.SQUARE_CHART_TYPE]=a.CATEGORY_SQUARE_CHART_TYPE;m[a.SQUARE_NAVIGATETO]=a.CATEGORY_SQUARE_NAVIGATETO;m[a.DM_IMPORT_TYPE]=a.CATEGORY_DM_IMPORT_TYPE;m[a.DM_DATA_EXTRACT_TYPE]=a.CATEGORY_DM_DATA_EXTRACT_TYPE;m[a.DM_CREATE_RELATION]=a.CATEGORY_DM_CREATE_RELATION;m[a.TM_CREATE_THEME_TYPE]=a.CATEGORY_TM_CREATE_THEME_TYPE;m[a.TM_THEME_ENTRANCE_TYPE]=a.CATEGORY_TM_THEME_ENTRANCE_TYPE;m[a.AI_ANALYSIS_CHART_OPERATION]=a.CATEGORY_AI_ANALYSIS_CHART_OPERATION;m[a.EXPORT_TYPE]=a.CATEGORY_EXPORT_TYPE;m[a.PUBLISH_TO_TYPE]=
a.CATEGORY_PUBLISH_TO_TYPE;m[a.COMMUNICATE_TYPE]=a.CATEGORY_COMMUNICATE_TYPE;m[a.DSB_IMPORT_LONGER_TYPE]=a.CATEGORY_DSB_IMPORT_LONGER_TYPE;m[a.DSB_IMPORT_SQUARE_TYPE]=a.CATEGORY_DSB_IMPORT_SQUARE_TYPE;m[a.CORE_CUSTOM_FIELD]=a.CATEGORY_CORE_CUSTOM_FIELD;m[a.DM_OPERATING_NEW_FIELD]=a.CATEGORY_DM_OPERATING_NEW_FIELD;m[a.EXT_CREATE_EXTREPORT_TYPE]=a.CATEGORY_EXT_CREATE_EXTREPORT_TYPE;m[a.EXT_EXTREPORT_ENTRANCE_TYPE]=a.CATEGORY_EXT_EXTREPORT_ENTRANCE_TYPE;m[a.MODELSET_TYPE_WHEN_ENTER_MAIN_PAGE]=a.CATEGORY_MODELSET_TYPE_WHEN_ENTER_MAIN_PAGE;
m[a.MODELSET_IS_ENABLE_OR_DISABLE]=a.CATEGORY_MODELSET_IS_ENABLE_OR_DISABLE;m[a.MODEL_TYPE]=a.CATEGORY_MODEL_TYPE;m[a.MODEL_SHOW_METHOD]=a.CATEGORY_MODEL_SHOW_METHOD;m[a.DEPLOY_METHOD]=a.CATEGORY_DEPLOY_METHOD;m[a.ENTER_DATA_AUTH_MANAGE]=a.CATEGORY_ENTER_DATA_AUTH_MANAGE;m[a.MODEL_GROUP_LEVEL]=a.CATEGORY_MODEL_GROUP_LEVEL;m[a.CONTAIN_CHILDREN_MODEL_GROUP]=a.CATEGORY_CONTAIN_CHILDREN_MODEL_GROUP;m[a.BUTTON_TYPE]=a.CATEGORY_BUTTON_TYPE;m[a.FUNCTION]=a.CATEGORY_FUNCTION;m[a.PAGE_SHOW_METHOD]=a.CATEGORY_PAGE_SHOW_METHOD;
m[a.AUTH_USER_ROLE_TYPE]=a.CATEGORY_AUTH_USER_ROLE_TYPE;m[a.DATA_AUTH_SETTING_SHOW_METHOD]=a.CATEGORY_DATA_AUTH_SETTING_SHOW_METHOD;m[a.DATA_AUTH_SETTING_INHERIT_METHOD]=a.CATEGORY_DATA_AUTH_SETTING_INHERIT_METHOD;m[a.SOURCE_TYPE]=a.CATEGORY_SOURCE_TYPE;m[a.CREATE_SNAP_SCHEDULE_TYPE]=a.CATEGORY_EXT_SNAP_SCHEDULE_CREATE_TYPE;m[a.UPDATE_SNAP_SCHEDULE_TYPE]=a.CATEGORY_EXT_SNAP_SCHEDULE_UPDATE_TYPE;m[a.DELETE_SNAP_SCHEDULE_TYPE]=a.CATEGORY_EXT_SNAP_SCHEDULE_DELETE_TYPE;m[a.ENABLE_SNAP_SCHEDULE_TYPE]=
a.CATEGORY_EXT_SNAP_SCHEDULE_ENABLE_TYPE;m[a.DISABLE_SNAP_SCHEDULE_TYPE]=a.CATEGORY_EXT_SNAP_SCHEDULE_DISABLE_TYPE;m[a.EXT_RPT_SNAP_EDIT]=a.CATEGORY_EXT_SNAP_EDIT_TYPE;m[a.SAVE_SNAP_TO_TYPE]=a.CATEGORY_EXT_SNAP_SAVE_TYPE;m[a.CLOUD_GALLERY_DOWNLOAD]=a.CATEGORY_CLOUD_GALLERY_DOWNLOAD;m[a.SAVE_DATASET_DESIGNER_TYPE]=a.CATEGORY_EXT_DATASET_DESIGNER_SAVE_TYPE;m[a.SAVEAS_DATASET_DESIGNER_TYPE]=a.CATEGORY_EXT_DATASET_DESIGNER_SAVEAS_TYPE;m[a.PREVIEW_DATASET_DESIGNER_TYPE]=a.CATEGORY_EXT_DATASET_DESIGNER_PREVIEW_TYPE;
m[a.CHECK_DATASET_DESIGNER_TYPE]=a.CATEGORY_EXT_DATASET_DESIGNER_CHECK_TYPE;m[a.WORKBENCH_MENU_DIR_OPERTAION]=a.CATEGORY_WORKBENCH_MENU_DIR_OPERTAION;m[a.WORKBENCH_MENU_TREE_OPERATION]=a.CATEGORY_WORKBENCH_MENU_TREE_OPERATION;m[a.WORKBENCH_MENU_NODE_CLICK_OPERATION]=a.CATEGORY_WORKBENCH_MENU_NODE_CLICK_OPERATION;m[a.WORKBENCH_MENU_NODE_DRAG_OPERATION]=a.CATEGORY_WORKBENCH_MENU_NODE_DRAG_OPERATION;m[a.WORKBENCH_SCHEMA_LIST_OPERATION]=a.CATEGORY_WORKBENCH_SCHEMA_LIST_OPERATION;m[a.WORKBENCH_TAB_OPERATION]=
a.CATEGORY_WORKBENCH_TAB_OPERATION;m[a.WORKBENCH_GRID_CARD_DESIGN_OPERATION]=a.CATEGORY_WORKBENCH_GRID_CARD_DESIGN_OPERATION;m[a.WORKBENCH_GRID_LONGER_OPERATION]=a.CATEGORY_WORKBENCH_GRID_LONGER_OPERATION;m[a.WORKBENCH_GRID_SQUARE_OPERATION]=a.CATEGORY_WORKBENCH_GRID_SQUARE_OPERATION;m[a.WORKBENCH_GRID_DSB_OPERATION]=a.CATEGORY_WORKBENCH_GRID_DSB_OPERATION;m[a.WORKBENCH_GRID_REPORT_OPERATION]=a.CATEGORY_WORKBENCH_GRID_REPORT_OPERATION;m[a.WORKBENCH_AI_ARRIVE_OPERATION]=a.CATEGORY_WORKBENCH_AI_ARRIVE_OPERATION;
m[a.WORKBENCH_AI_CONTENT_OPERATION]=a.CATEGORY_WORKBENCH_AI_CONTENT_OPERATION;m[a.WORKBENCH_AI_QUESTION_OPERATION]=a.CATEGORY_WORKBENCH_AI_QUESTION_OPERATION;m[a.WORKBENCH_AI_CHART_CLICK_OPERATION]=a.CATEGORY_WORKBENCH_AI_CHART_CLICK_OPERATION;m[a.WORKBENCH_AI_CHART_DRAG_OPERATION]=a.CATEGORY_WORKBENCH_AI_CHART_DRAG_OPERATION;m[a.WORKBENCH_AI_PANEL_OPERATION]=a.CATEGORY_WORKBENCH_AI_PANEL_OPERATION;return m};this.protectedCollect=function(m,Q,ea){m=x.getMap()[m];a.CATEGORY_CORE_CUSTOM_FIELD==m&&"0"==
Q||ea(m,Q)}}function C(){Xa.call(this);var x=this.protectedMethod;this.protectedInitMap=function(){var m={};m[a.LONGER_SEARCH_DETAILS]=a.CATEGORY_LONGER_SEARCH_DETAILS;m[a.LONGER_EXPORT_DETAILS]=a.CATEGORY_LONGER_EXPORT_DETAILS;m[a.SQUARE_DRILLDOWN]=a.CATEGORY_SQUARE_DRILLDOWN;m[a.SQUARE_AFFECTION]=a.CATEGORY_SQUARE_AFFECTION;m[a.SQUARE_EXTRA_FILTER]=a.CATEGORY_SQUARE_EXTRA_FILTER;m[a.PRINT_PREVIEW]=a.CATEGORY_PRINT_PREVIEW;m[a.PUBLISH_MANAGER]=a.CATEGORY_PUBLISH_MANAGER;m[a.SCHEMA_SAVE]=a.CATEGORY_SCHEMA_SAVE;
m[a.DSB_SAVE]=a.CATEGORY_DSB_SAVE;m[a.DM_OPERATING_MERGE_TABLE]=a.CATEGORY_DM_OPERATING_MERGE_TABLE;return m};this.protectedCollect=function(m,Q,ea){m=x.getMap()[m];ea(m,m)}}function E(){Xa.call(this);var x=this.protectedMethod;this.protectedInitMap=function(){var m={};m[a.DSB_WIDGET_TYPE]=a.CATEGORY_DSB_WIDGET_TYPE;m[a.DM_SOURCE_TYPE]=a.CATEGORY_DM_SOURCE_TYPE;m[a.DATATABLE_MODEL_TRANSFORM_NODE_TYPE]=a.CATEGORY_DATATABLE_MODEL_TRANSFORM_NODE_TYPE;m[a.METRIC_MODEL_DIMENSION_TYPE]=a.CATEGORY_METRIC_MODEL_DIMENSION_TYPE;
return m};this.protectedCollect=function(m,Q,ea){m=x.getMap()[m];for(var ta=Q.length,Ha=0;Ha<ta;Ha++)ea(m,Q[Ha],ta)}}function R(){function x(){var Ba,Oa,Ta;this.setCategory=function(Wa){Ba=Wa};this.getCategory=function(){return Ba};this.setTag=function(Wa){Oa=Wa};this.getTag=function(){return Oa};this.setSuffixName=function(Wa){Ta=Wa};this.getSuffixName=function(){return Ta}}Xa.call(this);var m=this.protectedMethod,Q={STANDARD_EMBEDED:"\u6807\u51c6\u5d4c\u5165\u5f0f",CUSTOM_EMBEDED:"\u4e8c\u5f00\u5d4c\u5165\u5f0f",
PRESET_THEME:"\u9884\u7f6e\u4e3b\u9898",THEME:"\u4e3b\u9898"},ea={},ta={},Ha=[],la;this.protectedInitMap=function(){ea[a.SQUARE_DATASOURCE_TYPE]="(\u6570\u636e\u6597\u65b9)";ea[a.LONGER_DATASOURCE_TYPE]="(\u6570\u636e\u5206\u6790)";var Ba={};Ba[a.SQUARE_DATASOURCE_TYPE]=a.CATEGORY_DATASOURCE_TYPE;Ba[a.LONGER_DATASOURCE_TYPE]=a.CATEGORY_DATASOURCE_TYPE;return Ba};this.protectedCollect=function(Ba,Oa,Ta){var Wa=m.getMap()[Ba];if(Ba=ea[Ba])if(ta[Oa])ta[Oa]&&Ta(Wa,ta[Oa]+Ba);else{var ab=new x;ab.setCategory(Wa);
ab.setTag(Oa);ab.setSuffixName(Ba);Ha.push(ab);ka(Ta)}};var ka=function(Ba){clearTimeout(la);la=setTimeout(function(){var Oa=Ha;Ha=[];ra(Oa,Ba)},5E3)},ra=function(Ba,Oa){for(var Ta=[],Wa=0;Wa<Ba.length;Wa++)Ta.push(Ba[Wa].getTag());(new Ga(Da(),function(ab){for(var bb in ab)ta[bb]=Q[ab[bb]];for(ab=0;ab<Ba.length;ab++){var Aa=Ba[ab];bb=Aa.getCategory();var cb=Aa.getTag();Aa=Aa.getSuffixName();ta[cb]&&Oa(bb,ta[cb]+Aa)}},function(){return!0})).loadDataSourceInfo(Ta)},pa,Da=function(){if(!pa){pa=new Ma;
var Ba=N.decodeParamFromUrl(location.search,"path");pa.setRemoteUrl((Ba?Ba:"")+"/qing/loadBehaviorContext.do")}return pa}}function sa(){var x,m;this.setLogtype=function(Q){x=Q};this.getLogtype=function(){return x};this.setDataList=function(Q){m=Q};this.getDataList=function(){return m};this.addData=function(Q){m||(m=[]);m.push(Q)};this.toJson=function(){var Q={};Q.logtype=x;for(var ea=[],ta=0;ta<m.length;ta++){var Ha=m[ta].toJson();ea.push(Ha)}Q.data=ea;return Q};this.fromJson=function(Q){x=Q.logtype;
m=[];Q=Q.data;for(var ea=0;ea<Q.length;ea++){var ta=new J;ta.fromJson(Q[ea]);m.push(ta)}}}function J(){var x=this,m,Q;this.setLogtype=function(ea){m=ea};this.getLogtype=function(){return m};this.setMessage=function(ea){Q=ea};this.getMessage=function(){return Q};this.toJson=function(){var ea={};ea.message=Q.toJson();ea.logtype=m;return ea};this.fromJson=function(ea){m=ea.logtype;Q=new M;Q.fromJson(ea.message)};this.copy=function(){var ea=x.toJson(),ta=new J;ta.fromJson(ea);return ta}}function M(){var x=
this,m,Q,ea,ta,Ha,la,ka,ra,pa,Da,Ba,Oa,Ta,Wa,ab,bb;this.setEntrance=function(Aa){ra=Aa};this.getEntrance=function(){return ra};this.setCategory=function(Aa){pa=Aa};this.getCategory=function(){return pa};this.setScene=function(Aa){Da=Aa};this.getScene=function(){return Da};this.setConsumingTime=function(Aa){Ba=Aa};this.getConsumingTime=function(){return Ba};this.setSceneExt=function(Aa){Oa=Aa};this.getSceneExt=function(){return Oa};this.setTime=function(Aa){Ta=Aa};this.getTime=function(){return Ta};
this.setExt3=function(Aa){ab=Aa};this.getExt3=function(){return ab};this.setExt4=function(Aa){bb=Aa};this.getExt4=function(){return bb};this.toJson=function(){var Aa={};Aa.qingUserId=m;Aa.userId=Q;Aa.accountId=ea;Aa.productNo=ta;Aa.productName=Ha;Aa.productVersion=la;Aa.qingVersion=ka;Aa.entrance=ra;Aa.category=pa;Aa.scene=Da;Aa.consumingTime=Ba;Aa.sceneExt=Oa;Aa.time=Ta;Aa.ext2=Wa;Aa.ext3=ab;Aa.ext4=bb;return Aa};this.fromJson=function(Aa){m=Aa.qingUserId;Q=Aa.userId;ea=Aa.accountId;ta=Aa.productNo;
Ha=Aa.productName;la=Aa.productVersion;ka=Aa.qingVersion;ra=Aa.entrance;pa=Aa.category;Da=Aa.scene;Ba=Aa.consumingTime;Oa=Aa.sceneExt;Ta=Aa.time;Wa=Aa.ext2;ab=Aa.ext3;bb=Aa.ext4};this.copy=function(){var Aa=x.toJson(),cb=new M;cb.fromJson(Aa);return cb}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.behavior&&
(com.kingdee.bos.qing.behavior={});var y=com.kingdee.bos.qing.behavior,N,t,P;(function(){var x=com.kingdee.bos.qing.common;N=x.Util;x=com.kingdee.bos.qing.framework.common;t=x.AbstractRemoteCall;P=x.AbstractFacade})();var a=new function(){var x=null,m,Q,ea=!0,ta,Ha,la,ka,ra;this.onBehaviorChannelMessage=function(Y){var ca=null;try{ca=JSON.parse(Y)}catch(na){return}Y=ca.url;m!=Y&&(m=Y);bb(ca.logResult)};this.interestInBehaviorEntrance=function(Y){if(ea){var ca=function(){var na=Q.getMessage();na.setEntrance(Y);
na.setExt4(Oa());pa(na);ab(Q)};Q?ca():Ba(ca)}};this.interestInBehavior=function(Y,ca,na,wa){ea&&Q&&(Ha||(Ha=new Ua),Ha.collect(Y,ca,function(Ca,ba,oa){oa=oa?oa:wa;var Ea=Q.copy(),I=Ea.getMessage();I.setCategory(Ca);I.setScene(ba);I.setConsumingTime(na);I.setSceneExt(oa);pa(I);ab(Ea)}))};this.getEntrance=function(Y,ca){0==ca?Y+=a.ENTRANCE_APPMENU:4==ca?Y+=a.ENTRANCE_GUIMENU:1==ca?Y+=a.ENTRANCE_CENTER:5==ca?Y+=a.ENTRANCE_CARD_REPOSITORY:6==ca&&(Y+=a.ENTRANCE_EMAIL);return Y};this.getLappEntrance=function(Y,
ca){return Y=ca?Y+a.ENTRANCE_LAPP_SHARE:Y+a.ENTRANCE_LAPP};var pa=function(Y){ka?Y.setTime(ka):Y.setTime((new Date).getTime())},Da=function(){ka=Q.getMessage().getTime();la=(new Date).getTime();ra&&clearInterval(ra);ra=setInterval(function(){var Y=(new Date).getTime(),ca=Y-la;if(0>ca||7E4<ca)ca=0;ka+=ca;la=Y},3E4)},Ba=function(Y){(new Ga(Wa(),function(ca){ea=ca.allowedSend;if(0!=ea){m=ca.url;Q=new J;Q.fromJson(ca.userBehaviorSceneData);var na=ca.operatingEnvLogResult;na&&bb(na);(ca=ca.statisticLogResult)&&
bb(ca);Da();Y()}},function(){return!0})).loadBehaviorContext(Oa())},Oa=function(){var Y=N.decodeParamFromUrl(location.search,"appID");Y||(Y="qing");return Y},Ta,Wa=function(){if(!Ta){Ta=new Ma;var Y=N.decodeParamFromUrl(location.search,"path");Ta.setRemoteUrl((Y?Y:"")+"/qing/loadBehaviorContext.do")}return Ta},ab=function(Y){x||(x=new sa);x.setLogtype(Y.getLogtype());x.addData(Y);clearTimeout(ta);ta=setTimeout(function(){var ca=x;x=null;bb(ca.toJson())},5E3)},bb=function(Y){(new Sa(m)).sendBehaviorData(Y)},
Aa,cb,hb,ib,Qa=[],mb;this.initAccessRecordParams=function(Y,ca,na,wa){Aa=Y;cb=ca;hb=na;ib=wa;mb=!0};this.setRefuseOperationType=function(Y){Qa=Y};this.recordResourceOperation=function(Y){mb&&!X(Y)&&(new za(da(),null,function(){return!0})).recordResourceOperation(Aa,Y,cb,hb,ib)};var X=function(Y){for(var ca in Qa)if(Qa[ca]==Y)return!0;return!1},v,da=function(){if(!v){v=new Ma;var Y=N.decodeParamFromUrl(location.search,"path");v.setRemoteUrl((Y?Y:"")+"/qing/accessRecord.do")}return v}};y.BehaviorManager=
a;a.OperationType={};a.OperationType.QING_VISIT="0";a.OperationType.QING_EXIT="1";a.OperationType.QING_EXPORT="2";a.OperationType.QING_PRINT="3";a.OperationType.QING_PUBLISH="4";a.OperationType.QING_PUSH="5";a.OperationType.QING_SNAPSHOT_SAVE="6";a.OperationType.QING_SNAPSHOT_EDIT="7";a.SourceType={};a.SourceType.QING_PUBLISH="0";a.SourceType.QING_SNAPSHOT="1";a.AppType={};a.AppType.QING="0";a.AppType.QING_RPT="1";a.ENTRANCE_DATA_MODELING="\u6570\u636e\u5efa\u6a21\u9875\u9762";a.ENTRANCE_THEME_MANAGER=
"\u4e3b\u9898\u7ba1\u7406\u9875\u9762";a.ENTRANCE_THEME_SQUARE="\u4e3b\u9898\u7ba1\u7406\u8fdb\u5165\u7684\u6570\u636e\u6597\u65b9\u9875\u9762";a.ENTRANCE_THEME_ANALYSIS="\u4e3b\u9898\u7ba1\u7406\u8fdb\u5165\u7684\u6570\u636e\u5206\u6790\u9875\u9762";a.ENTRANCE_THEME_DASHBOARD="\u4e3b\u9898\u7ba1\u7406\u8fdb\u5165\u7684\u4eea\u8868\u677f\u9875\u9762";a.ENTRANCE_THEME_AI_ANALYSIS="\u4e3b\u9898\u7ba1\u7406\u8fdb\u5165\u7684\u5bf9\u8bdd\u5f0f\u8f7b\u5206\u6790\u9875\u9762";a.ENTRANCE_CARD="\u5361\u7247\u5e93\u5361\u7247";
a.ENTRANCE_CARD_SQUARE="\u5361\u7247\u5e93\u5361\u7247\u8fdb\u5165\u7684\u6570\u636e\u6597\u65b9\u9875\u9762";a.ENTRANCE_CARD_ANALYSIS="\u5361\u7247\u5e93\u5361\u7247\u8fdb\u5165\u7684\u6570\u636e\u5206\u6790\u9875\u9762";a.ENTRANCE_LIGHTAPP_SQUARE="\u8f7b\u5e94\u7528\u6570\u636e\u6597\u65b9\u9875\u9762";a.ENTRANCE_LIGHTAPP_ANALYSIS="\u8f7b\u5e94\u7528\u6570\u636e\u5206\u6790\u9875\u9762";a.ENTRANCE_LIGHTAPP_DASHBOARD="\u8f7b\u5e94\u7528\u4eea\u8868\u677f\u9875\u9762";a.ENTRANCE_PUBLISH_ANALYSIS=
"\u53d1\u5e03\u7684\u6570\u636e\u5206\u6790\u9875\u9762";a.ENTRANCE_PUBLISH_DASHBOARD="\u53d1\u5e03\u7684\u4eea\u8868\u677f\u9875\u9762";a.ENTRANCE_PUBLISH_DASHBOARD_ANALYSIS="\u53d1\u5e03\u7684\u4eea\u8868\u677f\u8fdb\u5165\u7684\u6570\u636e\u5206\u6790\u9875\u9762";a.ENTRANCE_PUBLISH_EMAIL_ANALYSIS="\u53d1\u5e03\u7684email\u5206\u6790\u9875\u9762";a.ENTRANCE_EMBEDDED_CTRL="\u5d4c\u5165\u5f0f\u63a7\u4ef6";a.ENTRANCE_EMBEDDED_VIEW="\u5d4c\u5165\u5f0f\u89c6\u56fe";a.ENTRANCE_MANAGEMENT_HAND_OVER="\u8f7b\u5206\u6790\u7ba1\u7406\u79fb\u4ea4\u9875\u9762";
a.ENTRANCE_ANALYSIS_CENTER="\u6570\u636e\u5de5\u4f5c\u53f0\u9875\u9762";a.ENTRANCE_MACRO="\u5b8f\u5b9a\u4e49\u9875\u9762";a.ENTRANCE_DBMANAGE="\u516c\u5171\u6570\u636e\u6e90\u9875\u9762";a.ENTRANCE_IMAGELIB="\u56fe\u7247\u5e93\u9875\u9762";a.ENTRANCE_FONTLIB="\u5b57\u4f53\u5e93\u9875\u9762";a.ENTRANCE_RESOURCE_STATISTICS="\u7528\u6237\u521b\u5efa\u5185\u5bb9\u7edf\u8ba1\u9875\u9762";a.ENTRANCE_ACCESS_ANALYSIS="\u53d1\u5e03\u5185\u5bb9\u8bbf\u95ee\u7edf\u8ba1\u9875\u9762";a.ENTRANCE_CLOUD_GALLERY=
"\u4e91\u7d20\u6750\u9875\u9762";a.ENTRANCE_CLOUD_GALLERY_DETAILS="\u4e91\u7d20\u6750\u8be6\u60c5\u9875\u9762";a.ENTRANCE_EXTREPORT_MANAGER="\u8f7b\u62a5\u8868\u7ba1\u7406\u9875\u9762";a.ENTRANCE_EXTREPORT_MANAGER_PREVIEW="\u8f7b\u62a5\u8868\u7ba1\u7406\u9875\u9762\u8fdb\u5165\u7684\u62a5\u8868\u9884\u89c8\u9875\u9762";a.ENTRANCE_EXTREPORT_APPMANU_PREVIEW="\u5e94\u7528\u83dc\u5355\u8fdb\u5165\u7684\u8f7b\u62a5\u8868\u9884\u89c8\u9875\u9762";a.ENTRANCE_EXTREPORT_CENTER_PREVIEW="\u6570\u636e\u5de5\u4f5c\u53f0\u8fdb\u5165\u7684\u8f7b\u62a5\u8868\u9884\u89c8\u9875\u9762";
a.ENTRANCE_EXTREPORT_SNAP_CENTER="\u8f7b\u62a5\u8868\u5feb\u7167\u4e2d\u5fc3\u9875\u9762";a.ENTRANCE_EXTREPORT_SNAP_SCHEDULE_CENTER="\u8f7b\u62a5\u8868\u5feb\u7167\u8c03\u5ea6\u4e2d\u5fc3\u9875\u9762";a.ENTRANCE_EXTREPORT_CREATION_STATISTIC_CENTER="\u8f7b\u62a5\u8868\u7528\u6237\u521b\u5efa\u5185\u5bb9\u7edf\u8ba1";a.ENTRANCE_EXTREPORT_ACCESS_STATISTIC_CENTER="\u8f7b\u62a5\u8868\u53d1\u5e03\u5185\u5bb9\u8bbf\u95ee\u7edf\u8ba1";a.ENTRANCE_EXTREPORT_DATASET_DESIGNER="\u8f7b\u62a5\u8868\u6570\u636e\u96c6\u8bbe\u8ba1\u5668\u9875\u9762";
a.ENTRANCE_MODELER_MODELSET_MANAGE="\u6a21\u578b\u96c6\u7ba1\u7406\u9875\u9762";a.ENTRANCE_MODELER_MAIN_PAGE="\u6a21\u578b\u96c6\u4e3b\u754c\u9762\u9875\u9762";a.ENTRANCE_MODELER_DEPLOY_MANAGE="\u90e8\u7f72\u7ba1\u7406\u9875\u9762";a.ENTRANCE_MODELER_DATA_AUTH="\u6570\u636e\u6743\u9650\u9875\u9762";a.ENTRANCE_MODELER_SOURCE_MANAGE="\u6570\u636e\u6e90\u7ba1\u7406\u9875\u9762";a.ENTRANCE_MODELER_DATATABLE_MODEL_DESIGNER="\u6570\u636e\u8868\u6a21\u578b\u8bbe\u8ba1\u5668\u9875\u9762";a.ENTRANCE_MODELER_METRIC_MODEL_DESIGNER=
"\u6307\u6807\u6a21\u578b\u8bbe\u8ba1\u5668\u9875\u9762";a.ENTRANCE_MODELER_RELATION_MODEL_DESIGNER="\u5173\u7cfb\u6a21\u578b\u8bbe\u8ba1\u5668\u9875\u9762";a.ENTRANCE_APPMENU="(\u5e94\u7528\u83dc\u5355)";a.ENTRANCE_GUIMENU="(\u95e8\u6237\u83dc\u5355)";a.ENTRANCE_CENTER="(\u6570\u636e\u5de5\u4f5c\u53f0)";a.ENTRANCE_CARD_REPOSITORY="(\u5361\u7247\u5e93)";a.ENTRANCE_EMAIL="(email)";a.ENTRANCE_LAPP_SHARE="(\u5206\u4eab)";a.ENTRANCE_LAPP="(\u8f7b\u5e94\u7528)";a.ENTRANCE_WORKBENCH="\u6570\u636e\u5de5\u4f5c\u53f0";
a.CATEGORY_LONGER_CHART_TYPE="\u6570\u636e\u5206\u6790\u56fe\u8868\u7c7b\u578b";a.CATEGORY_SQUARE_CHART_TYPE="\u6570\u636e\u6597\u65b9\u56fe\u8868\u7c7b\u578b";a.CATEGORY_DSB_WIDGET_TYPE="\u4eea\u8868\u677f\u4f7f\u7528\u5143\u4ef6\u7c7b\u578b";a.CATEGORY_LONGER_SEARCH_DETAILS="\u6570\u636e\u5206\u6790\u67e5\u770b\u660e\u7ec6";a.CATEGORY_LONGER_EXPORT_DETAILS="\u6570\u636e\u5206\u6790\u67e5\u770b\u660e\u7ec6\u5bfc\u51fa";a.CATEGORY_SQUARE_DRILLDOWN="\u6597\u65b9\u4e0b\u94bb";a.CATEGORY_SQUARE_AFFECTION=
"\u6597\u65b9\u8054\u52a8";a.CATEGORY_SQUARE_NAVIGATETO="\u6597\u65b9\u8054\u67e5\u5230\u5355\u636e";a.CATEGORY_SQUARE_EXTRA_FILTER="\u6597\u65b9\u5916\u7f6e\u8fc7\u6ee4";a.CATEGORY_CORE_CUSTOM_FIELD="\u8ba1\u7b97\u5b57\u6bb5\u7684\u4f7f\u7528";a.CATEGORY_DSB_IMPORT_LONGER_TYPE="\u4eea\u8868\u677f\u6dfb\u52a0\u6570\u636e\u5206\u6790\u9009\u62e9\u6765\u6e90";a.CATEGORY_DSB_IMPORT_SQUARE_TYPE="\u4eea\u8868\u677f\u6dfb\u52a0\u6570\u636e\u6597\u65b9\u9009\u62e9\u6765\u6e90";a.CATEGORY_DM_SOURCE_TYPE=
"\u6570\u636e\u5efa\u6a21\u6570\u636e\u6e90\u9009\u62e9";a.CATEGORY_DM_IMPORT_TYPE="\u6570\u636e\u5e93\u5f15\u5165\u6570\u636e\u8868\u65b9\u5f0f";a.CATEGORY_DM_DATA_EXTRACT_TYPE="\u6570\u636e\u5efa\u6a21\u6570\u636e\u63d0\u53d6\u65b9\u5f0f";a.CATEGORY_DM_OPERATING_MERGE_TABLE="\u6570\u636e\u5efa\u6a21\u5408\u5e76\u6570\u636e\u5e93\u8868";a.CATEGORY_DM_OPERATING_NEW_FIELD="\u6570\u636e\u5efa\u6a21\u65b0\u5efa\u8ba1\u7b97\u5b57\u6bb5";a.CATEGORY_DM_CREATE_RELATION="\u6570\u636e\u5efa\u6a21\u65b0\u5efa\u5173\u7cfb";
a.CATEGORY_TM_CREATE_THEME_TYPE="\u65b0\u5efa\u4e3b\u9898\u7c7b\u578b";a.CATEGORY_TM_THEME_ENTRANCE_TYPE="\u4e3b\u9898\u7ba1\u7406\u9875\u9762\u8fdb\u5165\u8f7b\u5206\u6790\u9009\u62e9\u7c7b\u578b";a.CATEGORY_AI_ANALYSIS_CHART_OPERATION="\u56fe\u8868\u64cd\u4f5c";a.CATEGORY_PRINT_PREVIEW="\u6253\u5370\u9884\u89c8";a.CATEGORY_EXPORT_TYPE="\u5bfc\u51fa\u7c7b\u578b";a.CATEGORY_PUBLISH_TO_TYPE="\u53d1\u5e03\u5230\uff08\u53d1\u5e03\u5bf9\u8c61\uff09";a.CATEGORY_COMMUNICATE_TYPE="\u6c9f\u901a\u7c7b\u578b";
a.CATEGORY_SCHEMA_SAVE="\u4fdd\u5b58\u5206\u6790\u65b9\u6848";a.CATEGORY_DSB_SAVE="\u4fdd\u5b58\u4eea\u8868\u677f";a.CATEGORY_DATASOURCE_TYPE="\u6570\u636e\u6765\u6e90\u7c7b\u578b";a.CATEGORY_EXT_CREATE_EXTREPORT_TYPE="\u65b0\u5efa\u62a5\u8868\u7c7b\u578b";a.CATEGORY_EXT_EXTREPORT_ENTRANCE_TYPE="\u8f7b\u62a5\u8868\u7ba1\u7406\u9875\u9762\u8fdb\u5165\u8bbe\u8ba1\u5668\u9009\u62e9\u7c7b\u578b";a.CATEGORY_MODELSET_TYPE_WHEN_ENTER_MAIN_PAGE="\u8fdb\u5165\u6a21\u578b\u96c6\u4e3b\u754c\u9762\u65f6\u7684\u6a21\u578b\u96c6\u7c7b\u578b";
a.CATEGORY_MODELSET_IS_ENABLE_OR_DISABLE="\u542f\u7528/\u7981\u7528";a.CATEGORY_MODEL_TYPE="\u6a21\u578b\u7c7b\u578b";a.CATEGORY_MODEL_SHOW_METHOD="\u6a21\u578b\u5c55\u793a\u65b9\u5f0f";a.CATEGORY_DEPLOY_METHOD="\u90e8\u7f72\u65b9\u5f0f";a.CATEGORY_ENTER_DATA_AUTH_MANAGE="\u8fdb\u5165\u6570\u636e\u6743\u9650\u7ba1\u7406\u9875\u9762";a.CATEGORY_MODEL_GROUP_LEVEL="\u5206\u7ec4\u5c42\u7ea7";a.CATEGORY_CONTAIN_CHILDREN_MODEL_GROUP="\u5305\u542b\u4e0b\u7ea7";a.CATEGORY_BUTTON_TYPE="\u6309\u94ae\u7c7b\u578b";
a.CATEGORY_FUNCTION="\u529f\u80fd";a.CATEGORY_PAGE_SHOW_METHOD="\u9875\u9762\u5c55\u793a\u65b9\u5f0f";a.CATEGORY_AUTH_USER_ROLE_TYPE="\u6388\u6743\u7528\u6237/\u89d2\u8272\u7c7b\u578b";a.CATEGORY_DATA_AUTH_SETTING_SHOW_METHOD="\u6570\u636e\u6743\u9650\u8bbe\u7f6e-\u5c55\u793a\u65b9\u5f0f";a.CATEGORY_DATA_AUTH_SETTING_INHERIT_METHOD="\u6570\u636e\u6743\u9650\u8bbe\u7f6e-\u6743\u9650\u7ee7\u627f\u65b9\u5f0f";a.CATEGORY_SOURCE_TYPE="\u6570\u636e\u6e90\u7c7b\u578b";a.CATEGORY_DATATABLE_MODEL_TRANSFORM_NODE_TYPE=
"\u6570\u636e\u8868\u6a21\u578b\u8f6c\u6362\u8282\u70b9\u7c7b\u578b";a.CATEGORY_METRIC_MODEL_DIMENSION_TYPE="\u6307\u6807\u6a21\u578b\u7ef4\u5ea6\u7c7b\u578b";a.CATEGORY_EXT_SNAP_SCHEDULE_CREATE_TYPE="\u8f7b\u62a5\u8868-\u5feb\u7167\u8c03\u5ea6\u7ba1\u7406-\u521b\u5efa\u8c03\u5ea6\u4efb\u52a1";a.CATEGORY_EXT_SNAP_SCHEDULE_UPDATE_TYPE="\u8f7b\u62a5\u8868-\u5feb\u7167\u8c03\u5ea6\u7ba1\u7406-\u4fee\u6539\u8c03\u5ea6\u4efb\u52a1";a.CATEGORY_EXT_SNAP_SCHEDULE_DELETE_TYPE="\u8f7b\u62a5\u8868-\u5feb\u7167\u8c03\u5ea6\u7ba1\u7406-\u5220\u9664\u8c03\u5ea6\u4efb\u52a1";
a.CATEGORY_EXT_SNAP_SCHEDULE_ENABLE_TYPE="\u8f7b\u62a5\u8868-\u5feb\u7167\u8c03\u5ea6\u7ba1\u7406-\u5f00\u542f\u8c03\u5ea6\u4efb\u52a1";a.CATEGORY_EXT_SNAP_SCHEDULE_DISABLE_TYPE="\u8f7b\u62a5\u8868-\u5feb\u7167\u8c03\u5ea6\u7ba1\u7406-\u5173\u95ed\u8c03\u5ea6\u4efb\u52a1";a.CATEGORY_EXT_SNAP_EDIT_TYPE="\u8f7b\u62a5\u8868-\u5feb\u7167\u4e2d\u5fc3-\u7f16\u8f91\u5feb\u7167";a.CATEGORY_EXT_SNAP_SAVE_TYPE="\u8f7b\u62a5\u8868-\u5feb\u7167\u4e2d\u5fc3-\u4fdd\u5b58\u5feb\u7167";a.CATEGORY_CLOUD_GALLERY_DOWNLOAD=
"\u4e91\u7d20\u6750\u4e0b\u8f7d\u64cd\u4f5c";a.CATEGORY_EXT_DATASET_DESIGNER_SAVE_TYPE="\u8f7b\u62a5\u8868-\u6570\u636e\u96c6\u8bbe\u8ba1\u5668-\u4fdd\u5b58";a.CATEGORY_EXT_DATASET_DESIGNER_SAVEAS_TYPE="\u8f7b\u62a5\u8868-\u6570\u636e\u96c6\u8bbe\u8ba1\u5668-\u53e6\u5b58\u4e3a";a.CATEGORY_EXT_DATASET_DESIGNER_PREVIEW_TYPE="\u8f7b\u62a5\u8868-\u6570\u636e\u96c6\u8bbe\u8ba1\u5668-\u9884\u89c8";a.CATEGORY_EXT_DATASET_DESIGNER_CHECK_TYPE="\u8f7b\u62a5\u8868-\u6570\u636e\u96c6\u8bbe\u8ba1\u5668-\u6821\u9a8c";
a.CATEGORY_WORKBENCH_MENU_DIR_OPERTAION="\u6570\u636e\u5de5\u4f5c\u53f0-\u9009\u62e9\u5de6\u4fa7\u6811\u5f62\u83dc\u5355\u7684\u5206\u7c7b";a.CATEGORY_WORKBENCH_MENU_TREE_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u5de6\u4fa7\u6811\u5f62\u83dc\u5355\u64cd\u4f5c";a.CATEGORY_WORKBENCH_MENU_NODE_CLICK_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u9009\u62e9\u6570\u636e\u5185\u5bb9\u7684\u7c7b\u578b";a.CATEGORY_WORKBENCH_MENU_NODE_DRAG_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u62d6\u52a8\u6570\u636e\u5185\u5bb9\u7684\u7c7b\u578b";
a.CATEGORY_WORKBENCH_SCHEMA_LIST_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u5de5\u4f5c\u53f0\u5217\u8868\u64cd\u4f5c";a.CATEGORY_WORKBENCH_TAB_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u9875\u7b7e\u64cd\u4f5c";a.CATEGORY_WORKBENCH_GRID_CARD_DESIGN_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u5361\u7247\u4ea4\u4e92";a.CATEGORY_WORKBENCH_GRID_LONGER_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u64cd\u4f5c\u6570\u636e\u5206\u6790\u5361\u7247";a.CATEGORY_WORKBENCH_GRID_SQUARE_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u64cd\u4f5c\u6570\u636e\u6597\u65b9\u5361\u7247";
a.CATEGORY_WORKBENCH_GRID_DSB_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u64cd\u4f5c\u4eea\u8868\u677f\u5361\u7247";a.CATEGORY_WORKBENCH_GRID_REPORT_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u64cd\u4f5c\u62a5\u8868\u5361\u7247";a.CATEGORY_WORKBENCH_AI_ARRIVE_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u6b22\u8fce\u9875/\u5bf9\u8bdd\u9875\u8fdb\u5165\u65b9\u5f0f";a.CATEGORY_WORKBENCH_AI_CONTENT_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u9009\u62e9\u5206\u6790\u5185\u5bb9\u7684\u504f\u597d";a.CATEGORY_WORKBENCH_AI_QUESTION_OPERATION=
"\u6570\u636e\u5de5\u4f5c\u53f0-\u8f93\u5165\u95ee\u9898\u7684\u504f\u597d";a.CATEGORY_WORKBENCH_AI_CHART_CLICK_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u70b9\u51fb\u56fe\u8868\u64cd\u4f5c";a.CATEGORY_WORKBENCH_AI_CHART_DRAG_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u62d6\u62fd\u56fe\u8868\u64cd\u4f5c";a.CATEGORY_WORKBENCH_AI_PANEL_OPERATION="\u6570\u636e\u5de5\u4f5c\u53f0-\u5bf9\u8bdd\u6846\u64cd\u4f5c";a.LONGER_CHART_TYPE="longer-chart-type";a.SQUARE_CHART_TYPE="square-chart-type";a.DSB_WIDGET_TYPE=
"dsb-widget-type";a.LONGER_SEARCH_DETAILS="longer-search-details";a.LONGER_EXPORT_DETAILS="longer-export-details";a.SQUARE_DRILLDOWN="square-drilldown";a.SQUARE_AFFECTION="square-affection";a.SQUARE_NAVIGATETO="square-navigateto";a.SQUARE_EXTRA_FILTER="square-extrafilter";a.CORE_CUSTOM_FIELD="core-customfield";a.DSB_IMPORT_LONGER_TYPE="dsb-import-longer-type";a.DSB_IMPORT_SQUARE_TYPE="dsb-import-square-type";a.DM_SOURCE_TYPE="dm-source-type";a.DM_IMPORT_TYPE="dm-import-type";a.DM_DATA_EXTRACT_TYPE=
"dm-data-extract-type";a.DM_OPERATING_MERGE_TABLE="dm-operating-merge-table";a.DM_OPERATING_NEW_FIELD="dm-operating-new-field";a.DM_CREATE_RELATION="dm-create-relation";a.TM_CREATE_THEME_TYPE="tm-create-theme-type";a.TM_THEME_ENTRANCE_TYPE="tm-theme-entrance-type";a.AI_ANALYSIS_CHART_OPERATION="ai-analysis-chart-operation";a.PRINT_PREVIEW="print-preview";a.EXPORT_TYPE="export-type";a.PUBLISH_TO_TYPE="publish-to-type";a.COMMUNICATE_TYPE="communicate-type";a.SCHEMA_SAVE="schema-save";a.DSB_SAVE="dsb-save";
a.SQUARE_DATASOURCE_TYPE="square-datasource-type";a.LONGER_DATASOURCE_TYPE="longer-datasource-type";a.EXT_CREATE_EXTREPORT_TYPE="ext-create-extreport-type";a.EXT_EXTREPORT_ENTRANCE_TYPE="ext-extreport-entrance-type";a.MODELSET_TYPE_WHEN_ENTER_MAIN_PAGE="modelset-type-when-enter-main-page";a.MODELSET_IS_ENABLE_OR_DISABLE="modelset-is-enable-or-disable";a.MODEL_TYPE="model-type";a.MODEL_SHOW_METHOD="model-show-method";a.DEPLOY_METHOD="deploy-method";a.ENTER_DATA_AUTH_MANAGE="enter-data-auth-manage";
a.MODEL_GROUP_LEVEL="model-group-level";a.CONTAIN_CHILDREN_MODEL_GROUP="contain-children-model-group";a.BUTTON_TYPE="button-type";a.FUNCTION="function";a.PAGE_SHOW_METHOD="page-show-method";a.AUTH_USER_ROLE_TYPE="auth-user-role-type";a.DATA_AUTH_SETTING_SHOW_METHOD="data-auth-setting-show-method";a.DATA_AUTH_SETTING_INHERIT_METHOD="data-auth-setting-inherit-method";a.SOURCE_TYPE="source-type";a.DATATABLE_MODEL_TRANSFORM_NODE_TYPE="datatable-model-transform-node-type";a.METRIC_MODEL_DIMENSION_TYPE=
"metric-model-dimension-type";a.EXT_RPT_SNAP_EDIT="ext-rpt-snap-edit";a.SAVE_SNAP_TO_TYPE="save-snap-to-type";a.CREATE_SNAP_SCHEDULE_TYPE="ext-create-snap-schedule-type";a.UPDATE_SNAP_SCHEDULE_TYPE="ext-update-snap-schedule-type";a.DELETE_SNAP_SCHEDULE_TYPE="ext-delete-snap-schedule-type";a.ENABLE_SNAP_SCHEDULE_TYPE="ext-enable-snap-schedule-type";a.DISABLE_SNAP_SCHEDULE_TYPE="ext-disable-snap-schedule-type";a.CLOUD_GALLERY_DOWNLOAD="cloud_gallery_download";a.SAVE_DATASET_DESIGNER_TYPE="ext-save-dataset-designer-type";
a.SAVEAS_DATASET_DESIGNER_TYPE="ext-saveas-dataset-designer-type";a.PREVIEW_DATASET_DESIGNER_TYPE="ext-preview-dataset-designer-type";a.CHECK_DATASET_DESIGNER_TYPE="ext-check-dataset-designer-type";a.WORKBENCH_MENU_DIR_OPERTAION="wb-menu-dir-operation";a.WORKBENCH_MENU_TREE_OPERATION="wb-menu-tree-operation";a.WORKBENCH_MENU_NODE_CLICK_OPERATION="wb-menu-node-click-operation";a.WORKBENCH_MENU_NODE_DRAG_OPERATION="wb-menu-node-drag-operation";a.WORKBENCH_SCHEMA_LIST_OPERATION="wb-schema-list-operation";
a.WORKBENCH_TAB_OPERATION="wb-tab-operation";a.WORKBENCH_GRID_CARD_DESIGN_OPERATION="wb-grid-design-operation";a.WORKBENCH_GRID_LONGER_OPERATION="wb-grid-long-card-operation";a.WORKBENCH_GRID_SQUARE_OPERATION="wb-grid-square-card-operation";a.WORKBENCH_GRID_DSB_OPERATION="wb-grid-dsb-card-operation";a.WORKBENCH_GRID_REPORT_OPERATION="wb-grid-report-card-operation";a.WORKBENCH_AI_ARRIVE_OPERATION="wb-ai-arrive-operation";a.WORKBENCH_AI_CONTENT_OPERATION="wb-ai-content-operation";a.WORKBENCH_AI_QUESTION_OPERATION=
"wb-ai-question-operation";a.WORKBENCH_AI_CHART_CLICK_OPERATION="wb-ai-chart-drag-operation";a.WORKBENCH_AI_CHART_DRAG_OPERATION="wb-ai-chart-drag-operation";a.WORKBENCH_AI_PANEL_OPERATION="wb-ai-panel-operation"})();
//qingVersionTag: 20250415