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(ca,ea,Z){if(ca==Array.prototype||ca==Object.prototype)return ca;ca[ea]=Z.value;return ca};
$jscomp.getGlobal=function(ca){ca=["object"==typeof globalThis&&globalThis,ca,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var ea=0;ea<ca.length;++ea){var Z=ca[ea];if(Z&&Z.Math==Math)return Z}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(ca,ea){var Z=$jscomp.propertyToPolyfillSymbol[ea];if(null==Z)return ca[ea];Z=ca[Z];return void 0!==Z?Z:ca[ea]};$jscomp.polyfill=function(ca,ea,Z,fa){ea&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(ca,ea,Z,fa):$jscomp.polyfillUnisolated(ca,ea,Z,fa))};
$jscomp.polyfillUnisolated=function(ca,ea,Z,fa){Z=$jscomp.global;ca=ca.split(".");for(fa=0;fa<ca.length-1;fa++){var da=ca[fa];if(!(da in Z))return;Z=Z[da]}ca=ca[ca.length-1];fa=Z[ca];ea=ea(fa);ea!=fa&&null!=ea&&$jscomp.defineProperty(Z,ca,{configurable:!0,writable:!0,value:ea})};
$jscomp.polyfillIsolated=function(ca,ea,Z,fa){var da=ca.split(".");ca=1===da.length;fa=da[0];fa=!ca&&fa in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var ka=0;ka<da.length-1;ka++){var y=da[ka];if(!(y in fa))return;fa=fa[y]}da=da[da.length-1];Z=$jscomp.IS_SYMBOL_NATIVE&&"es6"===Z?fa[da]:null;ea=ea(Z);null!=ea&&(ca?$jscomp.defineProperty($jscomp.polyfills,da,{configurable:!0,writable:!0,value:ea}):ea!==Z&&(void 0===$jscomp.propertyToPolyfillSymbol[da]&&(Z=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[da]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(da):$jscomp.POLYFILL_PREFIX+Z+"$"+da),$jscomp.defineProperty(fa,$jscomp.propertyToPolyfillSymbol[da],{configurable:!0,writable:!0,value:ea})))};$jscomp.polyfill("Array.prototype.fill",function(ca){return ca?ca:function(ea,Z,fa){var da=this.length||0;0>Z&&(Z=Math.max(0,da+Z));if(null==fa||fa>da)fa=da;fa=Number(fa);0>fa&&(fa=Math.max(0,da+fa));for(Z=Number(Z||0);Z<fa;Z++)this[Z]=ea;return this}},"es6","es3");
$jscomp.typedArrayFill=function(ca){return ca?ca: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(ca,ea,Z){ca instanceof String&&(ca=String(ca));for(var fa=ca.length,da=0;da<fa;da++){var ka=ca[da];if(ea.call(Z,ka,da,ca))return{i:da,v:ka}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(ca){return ca?ca:function(ea,Z){return $jscomp.findInternal(this,ea,Z).v}},"es6","es3");
(function(){function ca(){var y=[];this.addListener=function(r){for(var k=!1,f=y.length-1;0<=f;f--)if(r==y[f]){k=!0;break}k||y.push(r)};this.removeListener=function(r){for(var k=y.length-1;0<=k;k--)if(r==y[k]){y.splice(k,1);break}};this.removeAllListener=function(){y.length=0};this.fireEvent=function(r){for(var k=0;k<y.length;k++)r(y[k])}}function ea(){this.setFormatString=function(y){throw Error("Override me.");};this.format=function(y){throw Error("Override me.");};this.protectedMethod={addZeroBefore:function(y,
r){for(var k="",f=0;f<r;f++)k+="0";return k+y},addZeroAfter:function(y,r){for(var k="",f=0;f<r;f++)k+="0";return y+k}}}function Z(){function y(){var a=!1,d=0,h=0,B=0,w=".",v=",",x="",O="",C,na,Y;this.setNoNumber=function(Q){a=Q};this.setIgnoreNegativeSign=function(Q){C=Q};this.setRoundingMode=function(Q){na=Q};this.setDecimal=function(Q){d=Q};this.getDecimal=function(){return d};this.setGrouping=function(Q){h=Q};this.setUnitPower=function(Q){B=Q};this.setDecimalSymbol=function(Q){w=Q};this.setGroupingSymbol=
function(Q){v=Q};this.setPrefix=function(Q){x=Q};this.setSuffix=function(Q){O=Q};this.format=function(Q){if(a)Q="";else{var V=""+Q;Q="";"-"==V.charAt(0)&&(V=V.substring(1),Q="-");var X=V.indexOf(".");0<=X?V=V.substring(0,X)+V.substring(X+1):X=V.length;var ja=X-B;0>ja?V=k.addZeroBefore(V,0-ja):ja>V.length&&(V=k.addZeroAfter(V,ja-V.length));X=V.substring(0,ja);V=V.substring(ja);Q=[Q,X,V];X=Q[0];V=Q[2];Y=!1;ja=d-V.length;if(0<ja)V=k.addZeroAfter(V,ja);else if(0>ja){ja=parseInt(V.charAt(d));X=X?!0:!1;
var ra=!1;switch(na){case Z.RoundingMode.HALF_UP:ra=4<ja;break;case Z.RoundingMode.CEILING:ra=0<ja&&!X;break;case Z.RoundingMode.FLOOR:ra=0<ja&&X}X=ra;V=V.substring(0,d);X&&(0==d?Y=!0:(X=V.length,V=""+(parseInt(V,10)+1),V.length>X?(V=V.substring(1),Y=!0):V.length<X&&(V=k.addZeroBefore(V,X-V.length))))}X=Q[0];Q=Q[1];if(15<Q.length){for(;1<Q.length&&"0"==Q.charAt(0);)Q=Q.substring(1);if(Y)for(ja=Q.length-1;0<=ja;)if(ra=parseInt(Q.charAt(ja)),ra+=1,9<ra&&(ra=0),Q=Q.substring(0,ja)+ra+Q.substring(ja+
1),0==ja&&(Q="1"+Q),0==ra)ja--;else break}else Q=0==Q.length?0:parseInt(Q,10),Q=(Y?Q+1:Q)+"";if(0<h)for(ja=Q.length-h;0<ja;ja-=h)Q=Q.substring(0,ja)+v+Q.substring(ja);Q=(C?"":X)+Q;Q+=V?w+V:""}return x+Q+O}}ea.call(this);var r=this,k=this.protectedMethod,f,t,e;this.setFormatString=function(a){b(a)};this.format=function(a,d){for(var h,B=0;B<t.length;B++)if(!f||!f[B]||f[B](a)){h=t[B];if(null==h)return""+a;"string"==typeof h&&(h=r.parseString(h),h.setIgnoreNegativeSign(e[B]),t[B]=h);break}h.setRoundingMode(d?
d:Z.RoundingMode.HALF_UP);return h.format(a)};var b=function(a){if(a){var d=a.split(";");3<=d.length?(f=[function(h){return 0==parseFloat(h)},function(h){return 0>parseFloat(h)},null],t=[d[2],d[1],d[0]],e=[!1,!0,!1]):2==d.length?(f=[function(h){return 0>parseFloat(h)},null],t=[d[1],d[0]],e=[!0,!1]):(f=null,t=[a],e=[!1])}else f=null,t=[null]};this.parseString=function(a){var d=new y,h=a.search(/\{-?\d+\}/);if(0<=h){var B=a.indexOf("}",h),w=parseInt(a.substring(h+1,B));a=a.substring(0,h)+a.substring(B+
1);d.setUnitPower(w)}var v=-1,x=-1;h=-1;var O=a.indexOf("#");if(0<=O){x=a.lastIndexOf("#");v=null;for(B=O+1;B<x;B++){w=a.charAt(B);if(null!=v&&"#"!=w){v=null;h=-1;break}"#"!=w&&(v=w,h=B)}null!=v&&d.setGroupingSymbol(v);v=O;x+=1}O=-1;var C=a.indexOf("0");if(0<=C){var na=a.lastIndexOf("0"),Y=null;for(B=C+1;B<na;B++){w=a.charAt(B);if(null!=Y&&"0"!=w){Y=null;O=-1;break}"0"!=w&&(Y=w,O=B)}null!=Y&&(d.setDecimalSymbol(Y),d.setDecimal(na-O));v=0>v?C:Math.min(v,C);x=Math.max(x,na+1)}0<=v?d.setPrefix(a.substring(0,
v)):(d.setPrefix(a),d.setNoNumber(!0));0<=x&&d.setSuffix(a.substring(x));0<=h&&(0<=O?d.setGrouping(O-h-1):d.setGrouping(x-h-1));return d}}function fa(){ea.call(this);var y=this.protectedMethod,r="january february march april may june july august september october november december".split(" "),k="sunday monday tuesday wednesday thursday friday saturday".split(" "),f=["am","pm"],t=ka.MLS,e;this.setFormatString=function(d){for(var h=[],B=null,w="",v=!1,x=0;x<d.length;x++){var O=d.charAt(x);v?"'"==O?
(v=!1,w&&h.push([!1,w]),w=""):w+=O:"'"==O&&0<=d.indexOf("'",x+1)?(v=!0,w&&h.push([!0,w]),w="",B=null):(B&&O!=B?(w&&h.push([!0,w]),w=O):w+=O,B=O)}h.push([!0,w]);e=h};this.format=function(d){var h=d;var B=null;h instanceof Date?B=h:"string"==typeof h?(h=h.replace(/-/g,"/"),B=new Date(h)):"number"==typeof h&&(B=new Date(h));if(h=B){d=e;B="";for(var w=0;w<d.length;w++){var v=d[w],x=v[1],O=x.length;switch(v[0]?x.charAt(0):""){case "y":v=O;x=h.getFullYear()+"";x=a(x,v,!1);v=x=b(x,v);break;case "M":v=O;
x=h.getMonth();2<v?(x=r[x],x=t.get(x,x),4>v&&(x=a(x,3,!0))):x=b(x+1+"",v);v=x;break;case "d":v=O;x=h.getDate()+"";v=x=b(x,v);break;case "H":v=O;x=h.getHours()+"";v=x=b(x,v);break;case "m":v=O;x=h.getMinutes()+"";v=x=b(x,v);break;case "s":v=O;x=h.getSeconds()+"";v=x=b(x,v);break;case "a":v=h.getHours();v=f[12>v?0:1];v=t.get(v,v);break;case "h":v=O;x=h.getHours()%12;v=b((0==x?12:x)+"",v);break;case "E":v=O;x=h.getDay();x=k[x];x=t.get(x,x);4>v&&(x=a(x,3,!0));v=x;break;default:v=x}B+=v}h=B}else h=d;return h};
var b=function(d,h){var B=d.length;B<h&&(d=y.addZeroBefore(d,h-B));return d},a=function(d,h,B){var w=d.length;w>h&&(d=B?d.substring(0,h):d.substring(w-h));return d}}function da(){var y=da.PERIOD_DAY,r=null,k=0,f=!1,t=null;this.setPeriod=function(e){y=e};this.getPeriod=function(){return y};this.setWhichPeriod=function(e){r=e};this.getWhichPeriod=function(){return r};this.setFromNowOn=function(e){k=e};this.getFromNowOn=function(){return k};this.setUpToNow=function(e){f=e};this.getUpToNow=function(){return f};
this.setAnchor=function(e){t=e};this.getAnchor=function(){return t};this.toJsonObject=function(){var e={};e.period=y;e.whichPeriod=r;e.fromNowOn=k;e.upToNow=f;e.anchor=t&&t instanceof Date?t.getTime():t;return e};this.fromJsonObject=function(e){if(e&&(y=e.hasOwnProperty("period")?e.period:y,r=e.hasOwnProperty("whichPeriod")?e.whichPeriod:null,k=e.hasOwnProperty("fromNowOn")?e.fromNowOn:k,f=e.hasOwnProperty("upToNow")?e.upToNow:f,e=e.hasOwnProperty("anchor")?parseInt(e.anchor):null,!isNaN(e)&&null!=
e)){var b=new Date;b.setTime(e);t=b}}}"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 ka=com.kingdee.bos.qing.common;ka.MLS=new function(){var y;this.hookAccessor=function(r){y=r};this.get=function(r,k){return y?y.get(r,k):k}};ka.Util=new function(){this.decodeParamFromUrl=
function(r,k){var f=k+"=";for(k=-1;!(k=r.indexOf(f,k+1),0>=k);){var t=r.charAt(k-1);if("&"==t||"?"==t)break}return-1!=k?(k+=f.length,f=r.indexOf("&",k),f=-1==f?r.length:f,window.decodeURIComponent(r.substring(k,f))):null};this.appendParamToUrl=function(r,k,f){r+=0>r.indexOf("?")?"?":"&";return r=r+k+"="+window.encodeURIComponent(f)};this.setCookie=function(r,k,f){var t=new Date;t.setTime(t.getTime()+864E5*f);f="expires="+t.toUTCString();document.cookie=r+"="+k+"; "+f+";path=/"};this.getCookie=function(r){r+=
"=";for(var k=document.cookie.split(";"),f=0;f<k.length;f++){for(var t=k[f];" "==t.charAt(0);)t=t.substring(1);if(0==t.indexOf(r))return t.substring(r.length,t.length)}return""};this.isIEBrowser=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("msie")?!0:!1};this.createUUID=function(){for(var r=[],k=0;36>k;k++)r[k]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);r[14]="4";r[19]="0123456789abcdef".substr(Math.floor(4*Math.random())+8,1);r[8]=r[13]=r[18]=r[23]="-";return r.join("")};
this.cleanInvalidChar=function(r,k){for(var f=!1,t=r.length-1;0<=t;t--){var e=r.charCodeAt(t);if(55295<e&&57344>e||32>e&&9!=e&&10!=e&&13!=e)r=r.substring(0,t)+r.substring(t+1),f=!0}f&&k(r);return f};this.formatDate=function(r,k){var f=new fa;f.setFormatString(r?r:"yyyy-MM-dd HH:mm:ss");return f.format(k?k:new Date)};var y=/^[a-zA-Z][a-zA-Z0-9_]*$/;this.checkVariableNaming=function(r){return y.test(r)}};ka.BrowserUtil=new function(){var y,r;this.getBrowserName=function(){!y&&k();return y};this.getBrowserVersion=
function(){!r&&k();return r};var k=function(){var f=window.navigator.userAgent.toLowerCase();0<=f.indexOf("edge")?(y="Edge",r=f.match(/edge\/([\d.]+)/)[1]):0<=f.indexOf("chrome")?(y="Chrome",r=f.match(/chrome\/([\d.]+)/)[1]):0<=f.indexOf("safari")?(y="Safari",r=f.match(/version\/([\d.]+)/)[1]):0<=f.indexOf("firefox")?(y="FireFox",r=f.match(/firefox\/([\d.]+)/)[1]):0<=f.indexOf("msie")?(y="IE",r=f.match(/msie ([\d.]+)/)[1]):0<=f.indexOf("trident")?(y="IE",r="11"):0<=f.indexOf("opera")?(y="Opera",r=
f.match(/opera.([\d.]+)/)[1]):(y="Other unknown",r="?")}};ka.FullScreenHelper=new function(){var y=this,r,k,f=[],t=function(){r||(r=new ca,void 0!==document.onwebkitfullscreenchange?document.onwebkitfullscreenchange=function(d){e(document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)}:void 0!==document.onmsfullscreenchange?document.onmsfullscreenchange=function(d){e(document.msFullscreenElement)}:void 0!==document.onmozfullscreenchange?document.onmozfullscreenchange=function(d){e(document.mozFullscreenElement||
document.fullscreenElement)}:document.addEventListener("fullscreenchange",function(d){e(document.fullscreenElement)}));return r},e=function(d){d||(f=[]);b()};this.addChangedListener=function(d){t().addListener(d)};this.removeChangedListener=function(d){t().removeListener(d)};var b=function(){var d=0<f.length?f[f.length-1]:null;r.fireEvent(function(h){h(d)})};this.request=function(d){a()?(k&&k(),f.push(d),1<f.length?b():(d=document.body,d.requestFullScreen?d.requestFullScreen():d.webkitRequestFullScreen?
d.webkitRequestFullScreen():d.msRequestFullscreen?d.msRequestFullscreen():d.mozRequestFullScreen&&d.mozRequestFullScreen())):window.console&&window.console.error("Unsupport full-screen.")};var a=function(){return document.body.requestFullScreen||document.body.webkitRequestFullScreen||document.body.msRequestFullscreen||document.body.mozRequestFullScreen?!0:!1};this.exit=function(){if(a()){f.pop();if(0<f.length)return b(),!0;y.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(d){k=d}};ka.DomUtil=new function(){this.getCurrentTargetPosition=function(r){var k=r.originalEvent;return void 0==r.offsetX&&void 0==r.layerX&&void 0!=k?[void 0==k.offsetX?k.layerX:k.offsetX,void 0==k.offsetY?k.layerY:k.offsetY]:[void 0==r.offsetX?r.layerX:r.offsetX,void 0==r.offsetY?r.layerY:
r.offsetY]};this.upwardCoordinate=function(r,k,f){for(var t=f.scrollLeft-f.clientLeft,e=f.scrollTop-f.clientTop;r!=f;){if(r==document.body)throw Error("Not immediate family.");var b=r.parentNode;t+=b.clientLeft-b.scrollLeft+r.offsetLeft;e+=b.clientTop-b.scrollTop+r.offsetTop;r=b}return[t+k[0],e+k[1]]};this.upwardSearch=function(r,k,f){for(;0<r.length&&r[0]!=k[0];){if(f(r))return r;r=r.parent()}return null};this.upwardSearchHasClass=function(r,k,f){return this.upwardSearch(r,k,function(t){return t.hasClass(f)})};
this.upwardSearchHasData=function(r,k,f){return this.upwardSearch(r,k,function(t){return t.data(f)})};this.isInDomTree=function(r){for(var k=r;k!=document.body;)if(k=k.parentNode,!k||k===r)return!1;return!0};this.isDescendent=function(r,k){for(;r&&r!=document.body;){if(r==k)return!0;r=r.parentNode}return!1};this.layoutCtrl=function(r,k,f,t,e){var b={position:"absolute"};b.left=k;b.top=f;b.width=t;b.height=e;r.css(b)};this.layoutCtrlWithLRTB=function(r,k,f,t,e,b,a){var d={position:"absolute"};(k||
0===k)&&(d.left=k);(f||0===f)&&(d.right=f);(t||0===t)&&(d.width=t);(e||0===e)&&(d.top=e);(b||0===b)&&(d.bottom=b);(a||0===a)&&(d.height=a);r.css(d)};this.layoutCtrlCenterAlign=function(r,k){var f={position:"absolute",left:"50%"};f["margin-left"]=-(k>>1)+"px";f.width=k+"px";r.css(f)};this.layoutCtrlMiddleAlign=function(r,k){var f={position:"absolute",top:"50%"};f["margin-top"]=-(k>>1)+"px";f.height=k+"px";f["line-height"]=k+"px";r.css(f)};this.makeTextOmissible=function(r){r.css({overflow:"hidden",
"white-space":"nowrap","text-overflow":"ellipsis"})};this.makeSelectable=function(r,k){var f=k?"":"none";r.css({"user-select":f,"-webkit-user-select":f,"-moz-user-select":f,"-ms-user-select":f,"-o-user-select":f});if(k)r.off("selectstart",y);else r.on("selectstart",y)};var y=function(r){return!1}};ka.Base64Util=new function(){this.encode=function(y){if(void 0==y||""==y)return"";y=y.replace("/\r\ng","\n");for(var r="",k=0;k<y.length;k++){var f=y.charCodeAt(k);128>f?r+=String.fromCharCode(f):(127<f&&
2048>f?r+=String.fromCharCode(f>>6|192):(r+=String.fromCharCode(f>>12|224),r+=String.fromCharCode(f>>6&63|128)),r+=String.fromCharCode(f&63|128))}y=r;r="";for(var t,e,b,a,d=0;d<y.length;)t=y.charCodeAt(d++),k=y.charCodeAt(d++),f=y.charCodeAt(d++),e=t>>2,t=(t&3)<<4|k>>4,b=(k&15)<<2|f>>6,a=f&63,isNaN(k)?b=a=64:isNaN(f)&&(a=64),r=r+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a);return r};this.decode=function(y){var r="",k=0;for(y=y.replace(/[^A-Za-z0-9\+\/=]/g,"");k<y.length;){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(y.charAt(k++));var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(y.charAt(k++));var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(y.charAt(k++));var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(y.charAt(k++));
f=f<<2|t>>4;t=(t&15)<<4|e>>2;var a=(e&3)<<6|b;r+=String.fromCharCode(f);64!=e&&(r+=String.fromCharCode(t));64!=b&&(r+=String.fromCharCode(a))}y=r;r="";for(e=0;e<y.length;)b=y.charCodeAt(e),128>b?(r+=String.fromCharCode(b),e++):191<b&&224>b?(k=y.charCodeAt(e+1),r+=String.fromCharCode((b&31)<<6|k&63),e+=2):(k=y.charCodeAt(e+1),f=y.charCodeAt(e+2),r+=String.fromCharCode((b&15)<<12|(k&63)<<6|f&63),e+=3);return r}};ka.Base32Util=new function(){this.encode=function(y){if(void 0==y||""==y)return"";y=y.replace("/\r\ng",
"\n");for(var r="",k=0;k<y.length;k++){var f=y.charCodeAt(k);128>f?r+=String.fromCharCode(f):(127<f&&2048>f?r+=String.fromCharCode(f>>6|192):(r+=String.fromCharCode(f>>12|224),r+=String.fromCharCode(f>>6&63|128)),r+=String.fromCharCode(f&63|128))}y=r;r="";for(var t,e,b,a,d,h,B,w,v,x,O=0;O<y.length;)t=y.charCodeAt(O++),k=y.charCodeAt(O++),f=y.charCodeAt(O++),e=y.charCodeAt(O++),b=y.charCodeAt(O++),a=t>>3,t=(t&7)<<2|k>>6,d=(k&63)>>1,h=(k&1)<<4|f>>4,B=(f&15)<<1|e>>7,w=(e&127)>>2,v=(e&3)<<3|b>>5,x=b&
31,isNaN(k)?d=h=B=w=v=x=32:isNaN(f)?B=w=v=x=32:isNaN(e)?w=v=x=32:isNaN(b)&&(x=32),r=r+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(a)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(t)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(d)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(h)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(B)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(w)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(v)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(x);return r};this.decode=function(y){var r="",k=0;
for(y=y.replace(/[^A-Z3-9_]/g,"");k<y.length;){var f="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));var t="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));var e="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));var b="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));var a="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));var d="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));var h="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));
var B="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(y.charAt(k++));f=f<<3|(t&31)>>2;t=(t&3)<<6|e<<1|b>>4;b=(b&15)<<4|a>>1;var w=(a&1)<<7|d<<2|h>>3;h=(h&7)<<5|B;r+=String.fromCharCode(f);32!=e&&(r+=String.fromCharCode(t));32!=a&&(r+=String.fromCharCode(b));32!=d&&(r+=String.fromCharCode(w));32!=B&&(r+=String.fromCharCode(h))}y=r;r="";for(e=0;e<y.length;)a=y.charCodeAt(e),128>a?(r+=String.fromCharCode(a),e++):191<a&&224>a?(d=y.charCodeAt(e+1),r+=String.fromCharCode((a&31)<<6|d&63),e+=2):(d=y.charCodeAt(e+
1),B=y.charCodeAt(e+2),r+=String.fromCharCode((a&15)<<12|(d&63)<<6|B&63),e+=3);return r}};ka.ColorUtil=new function(){var y=/^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,r=/^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,k=/^hsl\(\s*(360|3[0-5][0-9]|[0-2]?\d?\d)\s*,\s*(100|\d?\d)%\s*,\s*(100|\d?\d)%\s*\)$/i,
f=/^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,t=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,e=/^#([a-f\d])([a-f\d])([a-f\d])$/i,b=this;this.isHexRgb=function(a){return t.test(a)};this.isSimpleHexRgb=function(a){return e.test(a)};this.isFunctionRgb=function(a){return r.test(a)};this.isFunctionRgba=function(a){return y.test(a)};this.isFunctionHsl=function(a){return k.test(a)};this.isFunctionHsla=function(a){return f.test(a)};this.decodeHexRgb=
function(a){a=t.exec(a);return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]};this.decodeSimpleHexRgb=function(a){a=e.exec(a);return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]};this.decodeFunctionRgb=function(a){a=r.exec(a);return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]};this.decodeFunctionRgba=function(a){a=y.exec(a);return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),parseFloat(a[4])]};this.decodeFunctionHsl=function(a){a=k.exec(a);return[parseInt(a[1]),
parseInt(a[2]),parseInt(a[3])]};this.decodeFunctionHsla=function(a){a=f.exec(a);return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),parseFloat(a[4])]};this.decodeStringToRgbArray=function(a){return b.isHexRgb(a)?b.decodeHexRgb(a):b.isSimpleHexRgb(a)?b.decodeSimpleHexRgb(a):b.isFunctionRgb(a)?b.decodeFunctionRgb(a):b.isFunctionHsl(a)?(a=b.decodeFunctionHsl(a),b.hslToRgb(a[0],a[1],a[2])):b.isFunctionRgba(a)?(a=b.decodeFunctionRgba(a),[a[0],a[1],a[2]]):b.isFunctionHsla(a)?(a=b.decodeFunctionHsla(a),
b.hslToRgb(a[0],a[1],a[2])):null};this.decodeStringToRgbaArray=function(a){var d=null;b.isHexRgb(a)?(d=b.decodeHexRgb(a),d.push(1)):b.isSimpleHexRgb(a)?(d=b.decodeSimpleHexRgb(a),d.push(1)):b.isFunctionRgb(a)?(d=b.decodeFunctionRgb(a),d.push(1)):b.isFunctionHsl(a)?(d=b.decodeFunctionHsl(a),d=b.hslToRgb(d[0],d[1],d[2]),d.push(1)):b.isFunctionRgba(a)?d=b.decodeFunctionRgba(a):b.isFunctionHsla(a)&&(a=b.decodeFunctionHsla(a),d=b.hslToRgb(a[0],a[1],a[2]),d.push(a[3]));return d};this.rgbToHsl=function(a,
d,h){a/=255;d/=255;h/=255;var B=Math.max(a,d,h),w=Math.min(a,d,h),v=(B+w)/2;if(B==w)var x=w=0;else{var O=B-w;w=.5>=v?O/(B+w):O/(2-B-w);switch(B){case a:x=(d-h)/O;break;case d:x=(h-a)/O+2;break;case h:x=(a-d)/O+4}x*=60;0>x&&(x+=360)}return[Math.round(x),Math.round(100*w),Math.round(100*v)]};this.hslToRgb=function(a,d,h){a/=360;d/=100;h/=100;if(0==d)h=d=a=Math.round(255*h);else{var B=function(x,O,C){0>C&&(C+=1);1<C&&--C;return C<1/6?x+6*(O-x)*C:.5>C?O:C<2/3?x+(O-x)*(2/3-C)*6:x},w=.5>h?h*(1+d):h+d-h*
d,v=2*h-w;h=Math.round(255*B(v,w,a+1/3));d=Math.round(255*B(v,w,a));a=Math.round(255*B(v,w,a-1/3))}return[h,d,a]};this.rgbToHsv=function(a,d,h){a/=255;d/=255;h/=255;var B=Math.max(a,d,h),w=Math.min(a,d,h);if(B==w)var v=0;else{var x=B-w;switch(B){case a:v=(d-h)/x;break;case d:v=(h-a)/x+2;break;case h:v=(a-d)/x+4}v*=60;0>v&&(v+=360)}return[Math.round(v),Math.round(100*(0==B?0:1-w/B)),Math.round(100*B)]};this.hsvToRgb=function(a,d,h){d/=100;h/=100;var B=Math.floor(a/60)%6,w=a/60-B;a=h*(1-d);var v=h*
(1-w*d);d=h*(1-(1-w)*d);switch(B){case 0:var x=h;var O=d;var C=a;break;case 1:x=v;O=h;C=a;break;case 2:x=a;O=h;C=d;break;case 3:x=a;O=v;C=h;break;case 4:x=d;O=a;C=h;break;case 5:x=h,O=a,C=v}return[Math.round(255*x),Math.round(255*O),Math.round(255*C)]};this.withOpacityToRgba=function(a,d){var h=b.decodeStringToRgbArray(a);if(h)for(h.push(d),a="rgba(#0,#1,#2,#3)",d=0;4>d;d++)a=a.replace("#"+d,h[d]);return a};this.splitRgbAndOpacity=function(a){var d=1,h=b.decodeStringToRgbaArray(a);if(h){a="rgb(#0,#1,#2)";
for(d=0;3>d;d++)a=a.replace("#"+d,h[d]);d=h[3]}return[a,d]}};ka.CssUtil=new function(){var y=["","-ms-","-moz-","-webkit-","-o-"];this.rotate=function(r,k){var f=r.css;k="rotate("+k+"deg)";for(var t={},e=0;e<y.length;e++)t[y[e]+"transform"]=k;f.call(r,t)}};ka.TextMeasurer=function(){var y,r;this.setFontSize=function(f,t){k().font="bold "+f+"px "+(t?t:"sans-serif")};this.measureWidth=function(f){f=k().measureText(f).width;return parseInt(f+1)};this.destroy=function(){};var k=function(){r||(y=document.createElement("canvas"),
y.width=1,y.height=1,r=y.getContext("2d"));return r}};ka.Graphics=function(y){var r=[1,0,0,1,0,0],k=[1,0,0,1,0,0];this.getContext=function(){return y};this.getWidth=function(){var e=y.canvas.style&&y.canvas.style.width;return e?parseInt(e):y.canvas.width};this.getHeight=function(){var e=y.canvas.style&&y.canvas.style.height;return e?parseInt(e):y.canvas.height};this.stroke=function(){y.stroke()};this.beginPath=function(){y.beginPath()};this.closePath=function(){y.closePath()};this.fill=function(){y.fill()};
this.setTransformMatrix=function(e,b,a,d,h,B){h=Math.floor(h)==h?h+.5:h;B=Math.floor(B)==B?B+.5:B;r=[e,b,a,d,h,B];var w=e*d-b*a;k=[d/w,-b/w,-a/w,e/w,(a*B-d*h)/w,-(e*B-b*h)/w]};this.transformXY=function(e,b){return f(e,b)};this.retransformMouseXY=function(e,b){return[k[0]*e+k[2]*b+k[4],k[1]*e+k[3]*b+k[5]]};var f=function(e,b){return[r[0]*e+r[2]*b+r[4],r[1]*e+r[3]*b+r[5]]},t=function(e){var b=-Math.asin(r[2]);b=0>r[0]?Math.PI-b:b;return e+b};this.fillText=function(e,b,a,d){var h=!0;b=f(b,a);d&&(h=d(b));
!1!==h&&y.fillText(e,b[0],b[1])};this.moveTo=function(e,b){e=f(e,b);y.moveTo(e[0],e[1])};this.lineTo=function(e,b){e=f(e,b);y.lineTo(e[0],e[1])};this.drawDashedLine=function(e,b,a,d,h){a-=e;d-=b;h=~~(Math.sqrt(a*a+d*d)/h);y.beginPath();for(var B=0;B<h;B++){var w=f(e+a*B/h,b+d*B/h);B&1?y.lineTo(w[0],w[1]):y.moveTo(w[0],w[1])}y.stroke()};this.arc=function(e,b,a,d,h,B){e=f(e,b);d=t(d);h=t(h);y.arc(e[0],e[1],a,d,h,B)};this.bezierCurveTo=function(e,b,a,d,h,B){e=f(e,b);a=f(a,d);h=f(h,B);y.bezierCurveTo(e[0],
e[1],a[0],a[1],h[0],h[1])};this.fillRect=function(e,b,a,d){e=f(e,b);a=f(a,d);d=Math.min(e[0],a[0]);b=Math.min(e[1],a[1]);y.fillRect(d,b,Math.max(e[0],a[0])-d,Math.max(e[1],a[1])-b)};this.strokeRect=function(e,b,a,d){e=f(e,b);a=f(a,d);d=Math.min(e[0],a[0]);b=Math.min(e[1],a[1]);y.strokeRect(d,b,Math.max(e[0],a[0])-d,Math.max(e[1],a[1])-b)};this.clearAll=function(){y.clearRect(0,0,y.canvas.width,y.canvas.height)}};ka.EventListenerList=ca;ka.NumberFormater=Z;ka.DateFormater=fa;ka.PercentageFaker=function(){var y=
0;this.run=function(r){r?y=100:(r=100-y,y+=Math.sqrt(r)/100*r*(1+(4*Math.random()-2)/10));return Math.floor(y)}};ka.RelativePeriodModel=da;ka.CompositeCtrl=function(){var y=this,r,k=[];this.setEnabled=function(e){for(var b=0;b<k.length;b++)k[b].setEnabled(e)};this.getJqUi=function(){r||(r=$("<div>"),r.css({display:"flex","flex-flow":"row nowrap","align-items":"stretch"}));return r};this.addGap=function(e){f($("<div>"),e)};this.addStableChild=function(e,b){k.push(e);f(e.getJqUi(),b)};this.addActiveChild=
function(e){k.push(e);e=e.getJqUi();t(e);e.css("flex","auto")};var f=function(e,b){t(e);e.css("flex","none");b&&e.css("width",b)},t=function(e){e.appendTo(y.getJqUi());e.css("position","relative")}};Z.RoundingMode={};Z.RoundingMode.DOWN="Down";Z.RoundingMode.HALF_UP="HalfUp";Z.RoundingMode.CEILING="Ceiling";Z.RoundingMode.FLOOR="Floor";da.PERIOD_YEAR="Year";da.PERIOD_QUARTER="Quarter";da.PERIOD_MONTH="Month";da.PERIOD_WEEK="Week";da.PERIOD_DAY="Day";da.PERIOD_HOUR="Hour";da.PERIOD_MINUTE="Minute"})();(function(){function ca(){var k,f,t;this.setFilePath=function(e){k=e};this.setFileSize=function(e,b){f=e;t=b};this.createDescription=function(e,b){return[k,f,t,e,b]}}function ea(){var k=0,f=0,t,e,b,a=1,d=1;this.setFilePath=function(h){t=h};this.setStartPosition=function(h,B){k=h;f=B};this.setIconSize=function(h,B){e=h;b=B};this.setGap=function(h,B){a=h;d=void 0==B?h:B};this.createDescription=function(h,B){return[t,k+(e+a)*B,f+(b+d)*h]}}function Z(k,f,t,e){var b,a=!1,d,h=0,B=com.kingdee.bos.qing.lapp.integration.EnvUtil,
w=com.kingdee.bos.qing.lapp.integration.RemoteFrameworkUtil;this.tryAgain=function(){h=0;d()};this.setShowBlocking=function(Y){a=Y};var v=function(){b=$("<div>");b.addClass("lapp-common-loading-modallayer");var Y=$("<div>");Y.addClass("lapp-common-loading-icon");Y.css("background-image",com.kingdee.bos.qing.lapp.framework.common.Resource.getIconUrl("qing-lapp/core","pullup_loading.gif"));Y.appendTo(b);b.appendTo($(document.body))},x=function(Y,Q,V,X){Y=w.createRemoteUrl(k,Y,ka);Q.language=na();var ja=
Q.customSettings;delete Q.customSettings;jQuery.support.cors=!0;r&&r(Q);ja=ja?ja:{};ja.type="POST";ja.dataType="json";ja.url=Y;ja.data=Q;ja.success=function(ra){V(ra)};ja.error=function(ra,wa){X(ra.status,wa,ra)};$.ajax(ja)},O=function(Y){"number"==typeof Y.errorCode?C(Y.errorCode,Y.errorMessage):(f(Y.data),b&&b.remove(),e&&e())},C=function(Y,Q,V){var X=da.MultilanguageManager.createPackageAccessor(da);if(!navigator.onLine&&B.isMobile()){var ja=$("<div>");ja.addClass("lapp-networkdisavailable");ja.on("touchstart",
function(){ja&&ja.remove();d()});Y=$("<span>");Y.addClass("lapp-networkdisavailable-icon");Y.css("background-image","url(data:image/png;base64, )");
Q=$("<span>");Q.addClass("lapp-networkdisavailable-fail");Q.text(X.get("promotForNetworkError","\u54ce\u5440\uff0c\u7f51\u7edc\u52a0\u8f7d\u5931\u8d25\u4e86"));V=$("<span>");V.addClass("lapp-networkdisavailable-retry");V.text(X.get("promotForNetworkErrorRetry","\u8bf7\u68c0\u67e5\u7f51\u7edc\u8bbe\u7f6e\u6216\u8f7b\u89e6\u5c4f\u5e55\u91cd\u65b0\u52a0\u8f7d"));Y.appendTo(ja);Q.appendTo(ja);V.appendTo(ja);ja.appendTo($(document.body))}else if(0==Y)3>h?(b&&b.remove(),h++,d()):Q=X.get("promptForErrorCode0",
"\u7531\u4e8e\u7f51\u7edc\u95ee\u9898\uff0c\u4e0d\u80fd\u6b63\u5e38\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002");else if(10001==Y)B.redirectToLogin();else{var ra=!1;t&&(ra=t(Y,Q));ra||(y?y(Y,Q,V):(Q=X.get("remoteCallException","\u8bbf\u95ee\u670d\u52a1\u5668\u8fc7\u7a0b\u51fa\u73b0\u9519\u8bef\uff1a")+Q,Y&&(Q+="\r\n"+X.get("errorCode","\u9519\u8bef\u7801\uff1a")+Y),alert(Q)));b&&b.remove();e&&e()}},na=function(){if(null==navigator.userAgent.split("lang:")[1]||""==navigator.userAgent.split("lang:")[1])var Y=
"zh_CN";else Y=navigator.userAgent.split("lang:")[1].split(";")[0],"zh-CN"==Y?Y="zh_CN":"en-CN"==Y&&(Y="en");return Y};this.protectedMethod={remote:function(Y,Q){h=0;a&&v();d=function(){a&&v();setTimeout(function(){x(Y,Q,O,C)},1E3)};x(Y,Q,O,C)},setShowBlocking:function(Y){a=Y}}}function fa(){function k(){var x,O;this.setLogtype=function(C){x=C};this.getLogtype=function(){return x};this.setDataList=function(C){O=C};this.getDataList=function(){return O};this.addData=function(C){O||(O=[]);O.push(C)};
this.toJson=function(){var C={};C.logtype=x;for(var na=[],Y=0;Y<O.length;Y++){var Q=O[Y].toJson();na.push(Q)}C.data=na;return C};this.fromJson=function(C){x=C.logtype;O=[];C=C.data;for(var na=0;na<C.length;na++){var Y=new f;Y.fromJson(C[na]);O.push(Y)}}}function f(){var x=this,O,C;this.setLogtype=function(na){O=na};this.getLogtype=function(){return O};this.setMessage=function(na){C=na};this.getMessage=function(){return C};this.toJson=function(){var na={};na.logtype=O;na.message=C.toJson();return na};
this.fromJson=function(na){O=na.logtype;C=new t;C.fromJson(na.message)};this.copy=function(){var na=x.toJson(),Y=new x.constructor;Y.fromJson(na);return Y}}function t(){var x,O,C,na,Y;this.setScene=function(Q){Y=Q};this.getScene=function(){return Y};this.setTime=function(Q){na=Q};this.getTime=function(){return na};this.toJson=function(){var Q={};Q.lappUserId=x;Q.appName=O;Q.corpId=C;Q.time=na;Q.scene=Y;return Q};this.fromJson=function(Q){x=Q.lappUserId;O=Q.appName;C=Q.corpId;na=Q.time;Y=Q.scene}}
var e=this,b=null,a,d,h;this.protectedLoadBehaviorContext=function(x){throw Error("Override me.");};this.interestInBehavior=function(x){a?B(x):e.protectedLoadBehaviorContext(function(O,C,na){var Y=new t;Y.fromJson(O);a=new f;a.setMessage(Y);a.setLogtype(C);d=na;B(x)})};var B=function(x){var O=a.copy(),C=O.getMessage();C.setScene(x);C.setTime((new Date).getTime());w(O)},w=function(x){b||(b=new k);b.setLogtype(x.getLogtype());b.addData(x);clearTimeout(h);h=setTimeout(function(){var O=b.toJson();b=null;
v(O)},1E3)},v=function(x){$.ajax({type:"post",async:!0,url:d,dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(x),success:function(O){},error:function(O){}})}}"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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.framework&&
(com.kingdee.bos.qing.lapp.framework={});"undefined"==typeof com.kingdee.bos.qing.lapp.framework.common&&(com.kingdee.bos.qing.lapp.framework.common={});var da=com.kingdee.bos.qing.lapp.framework.common;da.LanguageUtil=new function(){this.getParamLanguage=function(){if(null==navigator.userAgent.split("lang:")[1]||""==navigator.userAgent.split("lang:")[1])var k="zh_CN";else k=navigator.userAgent.split("lang:")[1].split(";")[0],"zh-CN"==k?k="zh_CN":"en-CN"==k&&(k="en");return k}};da.MultilanguageManager=
new function(){function k(b){var a;this.get=function(d,h){if(!a){var B=e(b);a=0>B?{}:t[B]}d=a[d];return void 0===d?h:d}}var f=[],t=[];this.registPackageResources=function(b,a){var d=e(b);0>d&&(f.push(b),d=f.length-1);t[d]=a};var e=function(b){for(var a=0;a<f.length;a++)if(f[a]===b)return a;return-1};this.createPackageAccessor=function(b){return new k(b)}};da.Resource=new function(){var k=com.kingdee.bos.qing.CodeLoader,f=com.kingdee.bos.qing.lapp.integration.RemoteFrameworkUtil;this.bindLoader=function(t){k=
t};this.getIconUrl=function(t,e){e&&(t=t+"/resource/"+e);t=f.getResourcePrefix()+t;return"url("+k.getIconUrl(t)+")"};this.getUrl=function(t,e){e&&(t=t+"/resource/"+e);t=f.getResourcePrefix()+t;return k.getIconUrl(t)}};da.AbstractMobileIcons=function(){var k=this,f,t;this.background=function(b,a){if(null===a)b.css("background-image","none");else{!f&&e();var d=f[a];if(d){a=d[1];var h=d[2],B=d[3],w=d[4];d=da.Resource.getIconUrl(d[0]);b.css({"background-image":d,"background-position":B/2+"px "+w/2+"px",
"background-repeat":"no-repeat","background-size":a/2+"px "+h/2+"px"})}else b.css("background-image","url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC)"),b.css("background-repeat","no-repeat"),b.css("background-position","center")}};this.getBackground=function(b){b=b.css("background-position");for(var a in f){var d=f[a];if(b==d[3]/2+"px "+d[4]/2+"px")return a}};
this.regist=function(b,a){!f&&e();if(f[b])throw Error("Duplicate definition.");f[b]=a};var e=function(){f={};t=new ca;k.protectedInit(f,t)};this.protectedInit=function(b,a){};this.protectedMethod={registIcon:function(b,a,d){b=t.createDescription(b,a);f[d]=b}}};da.AbstractIcons=function(){var k=this,f,t;this.background=function(b,a){if(null===a)b.css("background-image","none");else{!f&&e();var d=f[a];if(d){a=-d[1];var h=-d[2];d=da.Resource.getIconUrl(d[0]);b.css({"background-image":d,"background-position":a+
"px "+h+"px","background-repeat":"no-repeat"})}else b.css("background-image","url(data:image/gif;base64,R0lGODlhDAAMAJEDAKOjo+fn5////////yH5BAEAAAMALAAAAAAMAAwAAAImnI8ZwBDqgljPUIGXMw7PCHDeJYRDRy5cQH4WI3nby37VocHJjhQAOw==)"),b.css("background-repeat","no-repeat"),b.css("background-position","center")}};this.backgroundWithHover=function(b,a,d){k.background(b,a);d=d?d:b;d.on("mouseenter",function(h){k.background(b,a+"_hover")});d.on("mouseleave",function(h){k.background(b,a)})};this.regist=function(b,
a){!f&&e();if(f[b])throw Error("Duplicate definition.");f[b]=a};var e=function(){f={};t=new ea;k.protectedInit(f,t)};this.protectedInit=function(b,a){};this.protectedMethod={registIcon:function(b,a,d){b=t.createDescription(b,a);f[d]=b}}};da.WindowResizeObserver=function(){var k,f,t=100,e,b;this.setCallback=function(d){f=d};this.setCallbackImmediately=function(d){k=d};this.setDelay=function(d){t=d};this.observe=function(){"function"==typeof window.ResizeObserver&&(b=new ResizeObserver(function(d,h){$(document.body).is(":visible")&&
a()}),b.observe(document.body));$(window).on("resize",a)};var a=function(){k&&k();f&&(clearTimeout(e),e=setTimeout(f,t))};this.unobserve=function(){b&&b.unobserve(document.body);$(window).off("resize",a)}};da.AbstractFacade=Z;da.AbstractBehaviorManager=fa;var ka=!1;Z.setWithoutDotDo=function(k){ka=k};var y;Z.setCustomErrorHandler=function(k){y=k};var r;Z.setSSOParamAppender=function(k){r=k};fa.SCENE_FAVORITE="\u5173\u6ce8";fa.SCENE_CANCEL_FAVORITE="\u53d6\u6d88\u5173\u6ce8";fa.SCENE_SHARE="\u5206\u4eab";
fa.SCENE_COMMENT="\u8bc4\u8bba";fa.SCENE_LIKE="\u70b9\u8d5e";fa.SCENE_DELETE_CARD="\u5220\u9664\u5361\u7247"})();(function(){function ca(){var k=this,f,t,e,b,a,d,h,B,w,v;this.setPropertyChangeListener=function(x){v=x};this.removePropertyChangeListener=function(){v=null};this.setId=function(x){f=x};this.getId=function(){return f};this.setName=function(x){t!=x&&(t=x)};this.getName=function(){return t};this.getCompleteName=function(){return t+(e?" ("+e+")":"")};this.setAnalysesCount=function(x){e!=x&&(e=x,v&&v(k))};this.getAnalysesCount=function(){return e?e:0};this.setSeq=function(x){b=x};this.getSeq=function(){return b};
this.setOpenId=function(x){a=x};this.getOpenId=function(){return a};this.setDeleted=function(x){d=x};this.getAnalysisList=function(){return w};this.isDefaultOpen=function(){return h};this.getIdsSameName=function(x){return B};this.fromJsonObject=function(x){f=x.id;t=x.name;e=x.analyticalCount;b=x.seq;a=x.openId;h=x.defaultOpen;B=x.idSameName;if(x=x.analysisVOs){w=[];for(var O=0;O<x.length;O++){var C=new ea;C.fromJsonObject(x[O]);w.push(C)}}};this.toJsonObject=function(){var x={};x.id=f;x.name=t;x.isDeleted=
d;x.seq=b;x.openId=a;x.idSameName=B;var O=[];if(w)for(var C=0;C<w.length;C++)O.push(w[C].toJsonObject());x.analysisVOs=O;return x}}function ea(){var k,f,t,e,b,a,d,h,B,w,v,x,O,C,na,Y,Q,V,X,ja,ra,wa,ua;this.setId=function(T){k=T};this.getId=function(){return k};this.setParentId=function(T){f=T};this.getParentId=function(){return f};this.setName=function(T){t=T};this.getName=function(){return t};this.setScene=function(T){e=T};this.getScene=function(){return e};this.isFavorite=function(){return b};this.setFavorite=
function(T){b=T};this.setSeq=function(T){v=T};this.getSeq=function(){return v};this.getPermissionInfo=function(){return x};this.setShareCreator=function(T){O=T};this.getShareCreator=function(){return O};this.setShareTime=function(T){C=T};this.getShareTime=function(){return C};this.setDesc=function(T){a=T};this.getDesc=function(){return a};this.setUrl=function(T){d=T};this.getUrl=function(){return d};this.setSmallThumbnail=function(T){B=T};this.getSmallThumbnail=function(){return B};this.setLargeThumbnail=
function(T){w=T};this.getLargeThumbnail=function(){return w};this.setLayoutType=function(T){h=T};this.setUploadData=function(T){na=T};this.isUploadData=function(){return na};this.setQsId=function(T){Y=T};this.getQsId=function(){return Y};this.setSchemaId=function(T){Q=T};this.getSchemaId=function(){return Q};this.setDemo=function(T){V=T};this.getDemo=function(){return V};this.isDeleted=function(){return X};this.setViewType=function(T){ja=T};this.getViewType=function(){return ja};this.setBottomAnnotation=
function(T){ra=T};this.getBottomAnnotation=function(){return ra};this.setDisplayStyle=function(T){wa=T};this.getDisplayStyle=function(){return wa};this.setCreatorName=function(T){ua=T};this.getCreatorName=function(){return ua};this.fromJsonObject=function(T){k=T.id;f=T.parentId;t=T.name;e=T.scene;b=T.favorite;a=T.description;d=T.url;w=T.largeThumb;B=T.smallThumb;na=T.withData;Y=T.qsId;Q=T.schemaId;V=T.demo;O=T.shareCreator;C=T.shareTime;X=T.isDeleted;x=T.permissionInfo;ja=T.viewType;ra=T.bottomAnnotation;
wa=T.displayStyle;ua=T.creatorName;v=T.seq};this.toJsonObject=function(){var T={};T.id=k;T.parentId=f;T.name=t;T.scene=e;T.favorite=b;T.description=a;T.url=d;T.layoutType=h;T.largeThumb=w;T.smallThumb=B;T.withData=na;T.qsId=Y;T.schemaId=Q;T.demo=V;T.shareCreator=O;T.shareTime=C;T.viewType=ja;T.bottomAnnotation=ra;T.displayStyle=wa;T.creatorName=ua;T.seq=v;return T}}function Z(){var k,f,t,e,b;this.setId=function(a){k=a};this.getId=function(){return k};this.setName=function(a){f=a};this.getName=function(){return f};
this.setAvatar=function(a){t=a};this.getAvatar=function(){return t};this.setReplyTotalCount=function(a){e=a};this.getReplyTotalCount=function(){return e};this.setReplyUnreadCount=function(a){b=a};this.getReplyUnreadCount=function(){return b};this.fromJsonObject=function(a){k=a.id;f=a.name;t=a.avator;e=a.replyTotalCount;b=a.replyUnreadCount};this.toJsonObject=function(){var a={};a.id=k;a.name=f;a.avator=t;a.replyTotalCount=e;a.replyUnreadCount=b;return a}}function fa(){var k,f,t,e,b,a,d,h,B,w,v,x,
O;this.setReplyerIco=function(C){k=C};this.getReplyerIco=function(){return k};this.setReplyerName=function(C){f=C};this.getReplyerName=function(){return f};this.setReplyerId=function(C){t=C};this.getReplyerId=function(){return t};this.setReceiverName=function(C){e=C};this.getReceiverName=function(){return e};this.setReceiverId=function(C){b=sReceiverId};this.getReceiverId=function(){return b};this.setSharingCreatorName=function(C){a=C};this.getSharingCreatorName=function(){return a};this.setSharingCreatorId=
function(C){d=C};this.getSharingCreatorId=function(){return d};this.setContents=function(C){h=C};this.getContents=function(){return h};this.setCreateTime=function(C){B=C};this.getCreateTime=function(){return B};this.setTitle=function(C){w=C};this.getTitle=function(){return w};this.setSharingTargetId=function(C){v=C};this.getSharingTargetId=function(){return v};this.setSharingContents=function(C){x=C};this.getSharingContents=function(){return x};this.isDeleted=function(){return O};this.fromJsonObject=
function(C){k=C.replyerIco;f=C.replyerName;t=C.replyerId;e=C.receiverName;b=C.receiverId;a=C.sharingCreatorName;d=C.sharingCreatorId;h=C.contents;B=C.createTime;w=C.title;v=C.sharingTargetId;x=C.sharingContents;O=C.isDeleted};this.toJsonObject=function(){var C={};C.replyerIco=k;C.replyerName=f;C.replyerId=t;C.receiverName=e;C.receiverId=b;C.sharingCreatorName=a;C.sharingCreatorId=d;C.contents=h;C.createTime=B;C.title=w;C.sharingTargetId=v;C.sharingContents=x;return C}}function da(){var k,f,t,e,b;
this.setTabIndex=function(a){k=a};this.getTabIndex=function(){return k};this.setScrollTop=function(a){f=a};this.getScrollTop=function(){return f};this.setKeyword=function(a){t=a};this.getKeyword=function(){return t};this.setType=function(a){e=a};this.getType=function(){return e};this.setTriggerAnalysis=function(a){b=a};this.getTriggerAnalysis=function(){return b};this.protectedMethod={fromJsonObject:function(a){k=a.tabIndex;f=a.scrollTop;t=a.keyword;e=a.type;b=new ea;b.fromJsonObject(a.triggerAnalysis)},
toJsonObject:function(){var a={};a.tabIndex=k;a.scrollTop=f;a.keyword=t;a.type=e;a.triggerAnalysis=b.toJsonObject();return a}}}function ka(){var k,f=[],t,e;this.setDisplayMode=function(b){k=b};this.getDisplayMode=function(){return k};this.setAllDatacenterModel=function(b){f=b};this.getAllDatacenterModel=function(){return f};this.setCurrentDatacenterModel=function(b){t=b};this.getCurrentDatacenterModel=function(){return t};this.setVisitedViewType=function(b){e=b};this.getVisitedViewType=function(){return e};
this.fromJsonObject=function(b){k=b.displayMode;b.currentDatacenterBO&&(t=new y,t.fromJsonObject(b.currentDatacenterBO));if(b.datacenterBOs){f=[];for(var a=b.datacenterBOs,d=0;d<a.length;d++){var h=new y;h.fromJsonObject(a[d]);f.push(h)}}e=b.visitedViewType}}function y(){var k,f,t,e,b,a,d;this.setId=function(h){k=h};this.getId=function(){return k};this.setCreateTime=function(h){f=h};this.getCreateTime=function(){return f};this.setUpdateTime=function(h){t=h};this.getUpdateTime=function(){return t};
this.setProductType=function(h){e=h};this.getProductType=function(){return e};this.setAccountName=function(h){b=h};this.getAccountName=function(){return b};this.setUserDatacenterRelationId=function(h){d=h};this.getUserDatacenterRelationId=function(){return d};this.setLastUsedTime=function(h){a=h};this.getLastUsedTime=function(){return a};this.fromJsonObject=function(h){k=h.id;f=h.createTime;t=h.updateTime;e=h.productType;b=h.accountName;a=h.lastUsedTime;d=h.userDatacenterRelationId}}"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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.model&&(com.kingdee.bos.qing.lapp.model={});var r=com.kingdee.bos.qing.lapp.model;r.Directory=ca;r.DirectorySet=function(){var k=this,f=[],t;this.setChangedListener=function(a){t=a};
this.removeChangedListener=function(){t=null};this.isEmpty=function(){return 0==f.length};this.getCount=function(){return f.length};this.add=function(a){f.push(a);a.setPropertyChangeListener(b)};this.remove=function(a){var d=k.getIndex(a);0>d||(f.splice(d,1),a.removePropertyChangeListener())};this.get=function(a){return f[a]};this.getAllDirectory=function(){return f};this.reOrder=function(a){for(var d=0;d<f.length;d++){var h=f[d];h.setSeq(a[h.getId()])}f=f.sort(e)};this.getById=function(a){for(var d=
0;d<f.length;d++)if(f[d].getId()==a)return f[d];return null};this.getIndex=function(a){for(var d=0;d<f.length;d++)if(f[d]==a)return d;return-1};var e=function(a,d){a=a.getSeq();d=d.getSeq();return a>d?1:a<d?-1:0},b=function(a){t&&t(a)};this.fromJsonObject=function(a){for(var d=0;d<a.length;d++){var h=new ca;h.fromJsonObject(a[d]);f.push(h);h.setPropertyChangeListener(b)}};this.toJsonObject=function(){for(var a=[],d=0;d<f.length;d++)a.push(f[d].toJsonObject());return a}};r.Analysis=ea;r.Post=function(){var k,
f,t,e;this.setAnalysisId=function(b){k=b};this.setAuthorId=function(b){f=b};this.setAuthorName=function(b){t=b};this.setAuthorHeadUrl=function(b){e=b};this.toJsonObject=function(){var b={};b.analysisId=k;b.creatorId=f;b.creatorName=t;b.avatar=e;return b}};r.ShareImageVO=function(){var k,f,t,e,b;this.setJsonModelWrapper=function(a){k=a};this.setExportOriginalImg=function(a){f=a};this.setExportSmallImg=function(a){t=a};this.setExportOneMobileScreenImg=function(a){e=a};this.setExportThumbnailImg=function(a){b=
a};this.toJsonObject=function(){var a={};a.modelWrapper=JSON.stringify(k);f&&(a.isExportOriginalImg=f);t&&(a.isExportSmallImg=t);e&&(a.isExportAScreenImg=e);b&&(a.isExportThumbnail=b);return a}};r.ImageSharedPathModel=function(){var k,f,t,e;this.getThumbnailImgPath=function(){return k};this.setThumbnailImgPath=function(b){k=b};this.getOneMobileScreenImgPath=function(){return f};this.setOneMobileScreenImgPath=function(b){f=b};this.getSmallImgPath=function(){return t};this.setSmallImgPath=function(b){t=
b};this.getOriginalImgPath=function(){return e};this.setOriginalImgPath=function(b){e=b};this.fromJsonObject=function(b){k=b.thumbnailImgPath;t=b.smallImgPath;e=b.originalImgPath;f=b.oneMobileScreenImgPath}};r.SharingModel=function(){var k=this,f,t,e,b,a,d,h,B=[];this.setAnalysisId=function(w){f=w};this.getAnalysisId=function(){return f};this.setId=function(w){t=w};this.getId=function(){return t};this.setTitle=function(w){e=w};this.getTitle=function(){return e};this.setContent=function(w){b=w};this.getContent=
function(){return b};this.setThrumb=function(w){a=w};this.getThrumb=function(){return a};this.setViewType=function(w){d=w};this.getViewType=function(){return d};this.setAccountName=function(w){h=w};this.getAccountName=function(){return h};this.setArrSharingTargets=function(w){B=w};this.getArrSharingTargets=function(){return B};this.isEmpty=function(){return 0==B.length};this.getCount=function(){return B.length};this.remove=function(w){var v=k.getIndex(w);0>v||(B.splice(v,1),w.removePropertyChangeListener())};
this.get=function(w){return B[w]};this.getAllSharingTargetsModel=function(){return B};this.getById=function(w){for(var v=0;v<B.length;v++)if(B[v].getId()==w)return B[v];return null};this.getIndex=function(w){for(var v=0;v<B.length;v++)if(B[v]==w)return v;return-1};this.fromJsonObject=function(w){f=w.analysisId;t=w.id;e=w.title;b=w.contents;a=w.thrumb;d=w.viewType;h=w.accountName;B=[];w=w.sharingTargetVOs;for(var v=0;v<w.length;v++){var x=new Z;x.fromJsonObject(w[v]);B.push(x)}};this.toJsonObject=
function(){for(var w={},v=[],x=0;x<B.length;x++)v.push(B[x].toJsonObject());w.sharingTargetVOs=v;w.title=e;w.contents=b;w.thrumb=a;w.id=t;w.analysisId=t;return w}};r.SharingTargetsModel=Z;r.MessageModel=fa;r.CardViewCachePageModel=function(){da.call(this);var k=this.protectedMethod,f,t,e,b,a,d;this.setAnalysisList=function(h){f=h};this.getAnalysisList=function(){return f};this.setAnalysisListPage=function(h){t=h};this.getAnalysisListPage=function(){return t};this.setHasNextPage=function(h){e=h};this.isHasNextPage=
function(){return e};this.setLastUpdateTime=function(h){b=h};this.getLastUpdateTime=function(){return b};this.setAuthorizedAnalysis=function(h){d=h};this.isAuthorizedAnalysis=function(){return d};this.setAllId=function(h){a=h};this.getAllId=function(){return a};this.fromJsonObject=function(h){k.fromJsonObject(h);f=[];for(var B=h.analysisList,w=0;w<B.length;w++){var v=new ea;v.fromJsonObject(B[w]);f.push(v)}t=h.analysisListPage;e=h.hasNextPage;b=h.lastUpdateTime;d=h.authorizedAnalysis;a=h.allId};this.toJsonObject=
function(){for(var h=k.toJsonObject(),B=[],w=0;w<f.length;w++)B.push(f[w].toJsonObject());h.analysisList=B;h.analysisListPage=t;h.hasNextPage=e;h.lastUpdateTime=b;h.authorizedAnalysis=d;h.allId=a;return h}};r.ListViewCachePageModel=function(){da.call(this);var k=this.protectedMethod,f;this.setOpenDirNames=function(t){f=t};this.getOpenDirNames=function(){return f};this.fromJsonObject=function(t){k.fromJsonObject(t);f=t.openDirNames};this.toJsonObject=function(){var t=k.toJsonObject();t.openDirNames=
f;return t}};r.DatacenterInfo=ka;r.DatacenterModel=y;r.YZJAnalysis=function(){ea.call(this);var k,f,t=!0,e=!1,b=this.fromJsonObject,a=this.toJsonObject,d=this;this.setDatacenterId=function(h){k=h};this.getDatacenterId=function(){return k};this.setAccountName=function(h){f=h};this.getAccountName=function(){return f};this.setAuthorized=function(h){t=h};this.isAuthorized=function(){return t};this.setNoFound=function(h){e=h};this.isNoFound=function(){return e};this.fromJsonObject=function(h){b(h);k=h.datacenterId;
f=h.accountName;t=h.authorized};this.toJsonObject=function(){var h=a();h.datacenterId=k;h.accountName=f;h.authorized=t;return h};this.fromAnalysis=function(h){h=h.toJsonObject();d.fromJsonObject(h);t=!0;e=!1}};ea.LT_NORMAL="NORMAL";ea.LT_WIDTH="WIDTH";ea.LT_HEIGHT="HEIGHT";ea.LT_ALL="ALL";ea.LT_ADAPT="ADAPT";ea.VIEW_TYPE_LONGER="1";ea.VIEW_TYPE_SQUARE="2";ea.VIEW_TYPE_DASHBOARD="3";ea.DISPLAYSTYLE_THUMNAIL="1";ea.DISPLAYSTYLE_EXECUTION="2";fa.REPLY="REPLY";fa.COMMENT="COMMENT";ka.DISPLAY_MODE_NONE=
"NONE";ka.DISPLAY_MODE_SHOW_ALL="SHOW_ALL";ka.DISPLAY_MODE_SHOW_LAST_USED="SHOW_LAST_USED"})();(function(){function ca(ka,y,r,k){Z.call(this,ka,y,r,k);var f=this.protectedMethod,t=com.kingdee.bos.qing.lapp.integration.EnvUtil.getOS(),e=function(b,a){f.remote(b,a)};this.getOwnDirList=function(){var b={};try{b={phoneModel:t,screenPixel:document.documentElement.clientWidth+", "+document.documentElement.clientHeight}}catch(a){b={}}e("getDirListIfEmptyThenCreate",b)};this.getAllDirList=function(){var b={};try{b={phoneModel:t,screenPixel:document.documentElement.clientWidth+", "+document.documentElement.clientHeight}}catch(a){b=
{}}e("getAllDirList",b)};this.getAllDirContent=function(b){e("getAllDirContent",{datacenterId:b})};this.getAuthorizedDirList=function(){var b={};try{b={phoneModel:t,screenPixel:document.documentElement.clientWidth+", "+document.documentElement.clientHeight}}catch(a){b={}}e("getAuthorizedDirList",b)};this.orderDirectory=function(b){b={model:JSON.stringify(b)};e("reOrder",b)};this.batchEditDirectory=function(b){b={list:JSON.stringify(b.toJsonObject())};e("edit",b)};this.batchSaveOrder=function(b){b=
{list:JSON.stringify(b.toJsonObject())};e("saveOrder",b)};this.saveDirectory=function(b){b={model:JSON.stringify(b.toJsonObject())};e("saveLappDirectory",b)};this.deleteDirectory=function(b){e("delete",{id:b})};this.isDirectoryExisted=function(b){e("isExisted",{name:b})};this.getAllAnalysisList=function(b,a,d,h,B){e("getAllAnalysisList",null!=a?{directoryName:b,size:6,page:a,name:d,modifiedTime:h,type:B}:{directoryId:sDirectoryId})};this.getOwnAnalysisIdList=function(b,a,d){e("getOwnAnalysisIdList",
{directoryName:b,type:a,name:d})};this.getMyFollow=function(){e("getFavoriteList",{})};this.getFollow=function(b){e("getFavoriteList",{type:b})};this.savaAnalysis=function(b,a,d,h){b={model:JSON.stringify(b.toJsonObject()),eid:a,scene:d,webShare:h};e("saveLappAnalysis",b)};this.isAnalysisNameDuplicate=function(b,a){e("isNameDuplicate",{parentId:b,name:a})};this.moveToOtherDirectory=function(b,a){e("moveToOtherDirectory",{directoryId:b,ids:a})};this.deleteAnalysis=function(b){e("deleteById",{id:b})};
this.deleteAnalyses=function(b){e("delete",{ids:b})};this.updateFavorites=function(b){e("updateFavorites",{ids:b})};this.updateFavoritesOrder=function(b,a){e("updateFavoritesOrder",{ids:b,seqs:a})};this.updateFavorite=function(b,a){e("updateFavorite",{id:b,sharingTargetId:a})};this.getSchemaContent=function(b,a){e("getSchemaContent",{id:b,ticket:a})};this.getSharing=function(b){e("query",{size:10,page:b})};this.deleteShare=function(b){e("delete",{id:b})};this.deleteShareGroup=function(b){e("delete",
{id:b})};this.getAnalysis=function(b){e("get",{id:b})};this.getUserUnReadCount=function(b){e("getUserUnReadCount",{scene:b})};this.getQuerySendedList=function(b,a){e("query",{type:"SEND",modifiedTime:a,size:6,page:b})};this.getQueryReceivedList=function(b,a){e("query",{type:"RECEIVE",modifiedTime:a,size:6,page:b})};this.getQueryReceivedUnreadedList=function(){e("getList",{type:"RECEIVE"})};this.clearReceivedList=function(){e("delete",{type:"RECEIVE"})};this.clearSendedList=function(){e("delete",{type:"SEND"})};
this.clearMessage=function(b){e("deleteMessage",{id:b})};this.setReaded=function(b){e("setReaded",{sharingTargetId:b})};this.getCommentCount=function(b){e("getCommentCount",{sharingTargetId:b})};this.getWxqyhJsapiInfos=function(b,a,d){e("getWxqyhJsapiInfos",{corpid:b,agentid:a,url:d})};this.getTimestamp=function(){e("getTimestamp",{})};this.loadDatacenterInfo=function(){e("loadDatacenterInfo",{})};this.updateLastUsedTime=function(b,a){e("updateLastUsedTime",{currentRelationId:b,notUsedRelationIds:a})};
this.getBehaviorContext=function(){e("getBehaviorContext",{})};this.updateConfig=function(b){e("updateConfig",{visitedViewType:b})};this.getAgreementStatus=function(){e("getAgreementStatus",{})};this.updateAgreementStatus=function(b){e("updateAgreementStatus",{agreementStatus:b})};this.getYZJCardList=function(b){b={selectedAnalysisIds:JSON.stringify(b)};e("getYZJCardList",b)};this.delUser=function(){e("delUser",{})};this.logout=function(){e("logout",{})};this.getYZJAppId=function(b){e("getYZJAppId",
{eid:b})}}"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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.framework&&(com.kingdee.bos.qing.lapp.framework={});var ea=com.kingdee.bos.qing.lapp.framework;ea.Facade=ca;var Z,fa;(function(){var ka=com.kingdee.bos.qing.lapp.framework.common;
Z=ka.AbstractFacade;fa=ka.AbstractBehaviorManager})();ca.setCustomErrorHandler=function(ka){Z.setCustomErrorHandler(ka)};ca.setSSOParamAppender=function(ka){Z.setSSOParamAppender(ka)};var da=new function(){fa.call(this);this.protectedLoadBehaviorContext=function(ka){(new ca("behavior",function(y){ka(y.message,y.logtype,y.url)})).getBehaviorContext()}};ea.BehaviorManager=da})();(function(){function ca(){var n=$("<div class= 'lapp-ctrl-common-modallayer'>"),c=$("<div class= 'lapp-ctrl-toast'>"),l=0;this.show=function(g,m){c.text(g);c.appendTo(n);n.css("background","rgba(255,255,255,0)");n.appendTo($(document.body));l&&clearTimeout(l);l=setTimeout(function(){clearTimeout(l);l=0;n.remove()},m)}}function ea(){var n,c,l,g,m,q=!1,p,A,K,H=0;this.setFunChangeTab=function(D){p=D};this.setFunLockedCallback=function(D){A=D};this.setInitialSlidePos=function(D){H=D};this.show=function(D,
E){c.appendTo(D);l.appendTo(E);n=new Swiper(".swiper-container",{initialSlide:H,onSlideChangeStart:function(L){L=$(D.find(".lapp-tab").get(L.activeIndex));R(L.data("oTabPane"),L)}})};this.addTab=function(D,E){S();var L=$("<div>");L.addClass("lapp-tab touch");L.attr("data-touchFeedback","true");L.text(D);L.data("oTabPane",E);L.appendTo(c);K||(K=[]);K.push(L);D=$("<div>");D.addClass("swiper-slide");E.getJqUi().appendTo(D);D.appendTo(g);H==K.length-1&&0==H&&R(E,L)};this.refreshContent=function(D){m&&
m.remove();m.refresh(D)};this.getCurrentTabPane=function(){return m};this.getCurrentTabPaneIndex=function(){for(var D=0;D<K.length;D++)if(K[D].data("oTabPane")==m)return D;return-1};this.lock=function(){q=!0;n&&n.lockSwipes()};this.unlock=function(){q=!1;n&&n.unlockSwipes()};var S=function(){c||(c=$("<div>"),c.addClass("lapp-tab-container"),c.on("click",function(D){D=$(D.target);D.hasClass("lapp-tab")&&(q?A&&A():R(D.data("oTabPane"),D))}),l=$("<div>"),l.addClass("swiper-container lapp-swiper-container"),
g=$("<div>"),g.addClass("swiper-wrapper"),g.appendTo(l))},R=function(D,E){m&&m.remove();p&&p(D);m=D;c.children(".lapp-tab").removeClass("lapp-tab_selected");E.addClass("lapp-tab_selected");var L=c.width()/2,aa=c.width()&&E.prop("offsetLeft");if(E.outerWidth()+20>=L){var oa=aa+E.outerWidth()-L;c.scrollLeft()>=parseInt(oa)&&(oa=aa-E.outerWidth()-L)}else oa=aa-L;c.scrollLeft(0<oa?oa:0);n&&n.slideTo(E.index(),100,!1);D.into()}}function Z(){var n=[],c,l;this.setItemModels=function(q){n=q};this.show=function(){if(!c){c=
$("<div>");c.addClass("lapp-ctrl-common-modallayer");c.on("click",m);var q=$("<div>");q.addClass("lapp-ctrl-bottomselector");for(var p=0;p<n.length;p++){var A=n[p],K=$("<div>");K.addClass("lapp-ctrl-bottomselector-item");K.text(A.getName());K.data("model",A);K.on("click",g);K.appendTo(q);p!=n.length-1&&(A=$("<div>"),A.addClass("lapp-ctrl-bottomselector-border"),A.appendTo(q))}q.appendTo(c);c.appendTo($(document.body))}};this.setSelectedListener=function(q){l=q};var g=function(q){q=$(q.target).data("model");
l(q)},m=function(){c.remove();c=null}}function fa(n){var c=0;this.setThreshold=function(g){c=g};this.loading=function(){for(var g=n.find(".scrollLoading"),m=g.length,q=[],p=0;p<m;p++){void 0!==$(g[p]).attr("data-url")&&!1!==$(g[p]).attr("data-url")||$(g[p]).attr("data-url","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC");var A={jqImage:$(g[p]),sUrl:$(g[p]).attr("data-url")};
q.push(A)}g=n.outerHeight();m=n.offset().top;for(p=0;p<q.length;p++)l(q[p],g,m)};var l=function(g,m,q){var p=g.jqImage,A=g.sUrl;if(p&&(g=p.offset().top-(q+m+c),q=p.offset().top+p.height()-q+c,p.is(":visible")&&0>g&&0<q)){var K=new Image;K.onload=function(){p.removeClass("scrollLoading");p.css("background-image","url("+A+")");K=null};K.onerror=function(){p.removeClass("scrollLoading");p.css("background-image","url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC)");
K=null};K.src=A}};n.on("scroll",this.loading)}function da(){var n=[],c=[];this.addChangedListener=function(g){c.push(g)};this.addElement=function(g){n.push(g);g.addCheckedListener(l)};this.getElements=function(){return n};this.clearAllChecked=function(){for(var g=0;g<n.length;g++)n[g].setChecked(!1)};var l=function(g,m){if(g.isChecked()){for(var q=0;q<n.length;q++){var p=n[q];p!=g&&p.setChecked(!1)}for(q=0;q<c.length;q++)(0,c[q])(g,m)}}}function ka(){var n=ra.isMobile();this.start=function(){return n?
"touchstart":"mousedown"};this.move=function(){return n?"touchmove":"mousemove"};this.end=function(){return n?"touchend":"mouseup"};this.leave=function(){return"mouseleave"};this.getEvent=function(c){return n?c.originalEvent.touches[0]:c};this.getCurrentTargetPosition=function(c){if(n){var l=c.target,g=l.getBoundingClientRect();return[(c.originalEvent.touches[0].clientX-g.left)*l.width/window.devicePixelRatio/g.width,(c.originalEvent.touches[0].clientY-g.top)*l.height/window.devicePixelRatio/g.height]}return X.getCurrentTargetPosition(c)};
this.getMousePos=function(c){if(n)return c=c.originalEvent.touches[0],[c.screenX,c.screenY];c=c||window.event;var l=document.documentElement.scrollLeft||document.body.scrollLeft,g=document.documentElement.scrollTop||document.body.scrollTop;return[c.pageX||c.clientY+l,c.pageY||c.clientY+g]}}function y(){var n=0,c=0,l=300,g=300,m,q,p,A=V.get("close","\u5173\u95ed"),K=!0,H,S;this.setHeight=function(E){g=E};this.setWidth=function(E){l=E};this.showDialog=function(){var E=$(document.body);q=$("<div>");
q.addClass("lapp-ctrl-common-modallayer");q.appendTo(E);K&&q.on("click",R);var L=E.prop("clientWidth");E=E.prop("clientHeight");n=Math.max(0,L-l>>1);c=Math.max(0,E-g>>1);m=$("<div>");X.layoutCtrlWithLRTB(m,n,null,l,c,null,g);m.appendTo(q);m.css("background-color","#fff");m.css("user-select","none");m.css("box-shadow","0 2px 8px 0 rgba(0,0,0,0.15)");m.css("border-radius","10px");if(p){var aa=$("<div>");aa.addClass("lapp-info-dialog-title");X.makeTextOmissible(aa);aa.text(p);aa.attr("title",p);X.layoutCtrlWithLRTB(aa,
20,20,null,0,null,40);aa.appendTo(m)}L=H();aa?X.layoutCtrlWithLRTB(L,20,20,null,40,40,null):X.layoutCtrlWithLRTB(L,20,20,null,20,20,null);L.appendTo(m);aa=$("<div>");aa.addClass("lapp-info-dialog-bottom");S?S(aa):(L=$("<div>"),L.text(A),L.appendTo(aa));aa.on("click",D);X.layoutCtrlWithLRTB(aa,0,0,l,null,0,40);aa.appendTo(m)};this.setTitle=function(E){p=E};this.setBottomText=function(E){A=E};this.setContentCreator=function(E){H=E};var R=function(E){X.isDescendent(E.target,m[0])||D()},D=function(){q&&
q.remove()};this.protectedMethod={setFooterCreator:function(E){S=E},preventTouchOutsideToClose:function(){K=!1}}}function r(){var n=this,c,l=!0;this.setUserObject=function(q){c=q};this.getUserObject=function(){return c};this.setEnabled=function(q){l=q;n.protectedUpdateEnabledState()};this.isEnabled=function(){return l};this.setTooltips=function(q){n.getJqUi().attr("title",q)};this.getJqUi=function(){throw Error("Override me.");};this.protectedUpdateEnabledState=function(){};var g=function(q,p){m(q,
p,"sa-ctrl-common-singlelineborder","sa-ctrl-common-singlelineborder_disabled")},m=function(q,p,A,K){p?(q.addClass(A),q.removeClass(K)):(q.removeClass(A),q.addClass(K))};this.protectedMethod={createBorder:function(q){var p=$("<div>");p.addClass("sa-ctrl-common-border");X.layoutCtrlWithLRTB(p,0,0,null,0,0,null);p.appendTo(q);return p},setUiBorderVisible:function(q,p){p?g(q,l):(q.removeClass("sa-ctrl-common-singlelineborder"),q.removeClass("sa-ctrl-common-singlelineborder_disabled"))},setUiBorderEnabled:g,
setUiForegroundEnabled:function(q,p){m(q,p,"sa-ctrl-common-foreground_enabled","sa-ctrl-common-foreground_disabled")},setUiBackgroundEnabled:function(q,p){m(q,p,"sa-ctrl-common-background_enabled","sa-ctrl-common-background_disabled")}}}function k(n){r.call(this);var c=this.protectedMethod,l=this,g,m=$("<div>"+n+"</div>"),q,p=[],A=!0;this.setHighlight=function(H){A=H};this.getJqUi=function(){g||(g=$("<div>"),g.addClass("sa-ctrl-button"),g.on("click",K),m.addClass("sa-ctrl-button-text"),m.appendTo(g),
q=c.createBorder(g),l.protectedUpdateEnabledState());return g};this.addActionListener=function(H){p.push(H)};this.setText=function(H){m.text(H)};this.protectedUpdateEnabledState=function(){if(g)if(l.isEnabled()){g.addClass("sa-ctrl-button_enabled");if(A)var H="sa-ctrl-button-background-highlight",S="sa-ctrl-button-text-highlight",R="sa-ctrl-button-border-highlight";else H="sa-ctrl-button-background-normal",S="sa-ctrl-button-text-normal",R="sa-ctrl-button-border-normal";g.addClass(H);m.addClass(S);
q.addClass(R);g.removeClass("sa-ctrl-button_disabled");m.removeClass("sa-ctrl-button-text_disabled");q.removeClass("sa-ctrl-button-border_disabled")}else g.addClass("sa-ctrl-button_disabled"),m.addClass("sa-ctrl-button-text_disabled"),q.addClass("sa-ctrl-button-border_disabled"),g.removeClass("sa-ctrl-button_enabled"),A?(H="sa-ctrl-button-background-highlight",S="sa-ctrl-button-text-highlight",R="sa-ctrl-button-border-highlight"):(H="sa-ctrl-button-background-normal",S="sa-ctrl-button-text-normal",
R="sa-ctrl-button-border-normal"),g.removeClass(H),m.removeClass(S),q.removeClass(R)};var K=function(H){if(l.isEnabled())for(H=0;H<p.length;H++)(0,p[H])(l)}}function f(){var n,c,l,g,m,q=0;this.getJqUi=function(){n||A();return n};this.hide=function(H){K(!H)};this.showSuccess=function(H,S){S=S?S:2E3;p("sa-ctrl-msgct_success","msg-success",V.get("msgSuccess","\u6210\u529f"),H,S);m.css("display","none")};this.showPrompt=function(H,S){S=S?S:5E3;p("sa-ctrl-msgct_prompt","msg-prompt",V.get("msgPrompt","\u63d0\u793a"),
H,S);m.css("display","block")};this.showError=function(H){p("sa-ctrl-msgct_error","msg-error",V.get("msgError","\u5931\u8d25"),H,-1);m.css("display","block")};var p=function(H,S,R,D,E){D=D?D:"";n.removeClass("sa-ctrl-msgct_success");n.removeClass("sa-ctrl-msgct_prompt");n.removeClass("sa-ctrl-msgct_error");n.addClass(H);ua.background(c,S);l.text(R);g.text(D);g.attr("title",D);q?clearTimeout(q):(n.css({display:"block",height:"0px"}),n.animate({height:"50px"},300));-1!=E&&(q=setTimeout(function(){K(!0)},
E))},A=function(){c=$("<div>");c.addClass("sa-ctrl-msgct-icon");l=$("<div>");l.addClass("sa-ctrl-msgct-title");g=$("<div>");g.addClass("sa-ctrl-msgct-text");m=$("<div>");m.addClass("sa-ctrl-msgct-close");m.on("click",function(H){K(!0)});ua.background(m,"msg-close");n=$("<div>");n.addClass("sa-ctrl-msgct");n.css("display","none");n.append(c);n.append(l);n.append(g);n.append(m)},K=function(H){clearTimeout(q);q=0;H?n.animate({height:"0px"},100,function(){n.css({display:"none"})}):n.css({height:"0px",
display:"none"})}}function t(n){var c=this,l,g=$("<div>"),m,q=$("<div>"),p,A,K=[],H=[],S=[],R=!1,D=320,E=240,L=function(){if(!l){l=$("<div>");l.addClass("sa-ctrl-dialog");l.appendTo(n);g.addClass("sa-ctrl-dialog-title sa-ctrl-dialog-titlebar");g.appendTo(l);var G=$("<div>");G.text("\u00d7");G.addClass("sa-ctrl-dialog-close");G.appendTo(l);G.on("click",function(J){qa(!1,function(M){M&&(c.hide(),U())})});m=$("<div>");m.addClass("sa-ctrl-dialog-toolbar");m.appendTo(l);q.addClass("sa-ctrl-dialog-contentpane");
q.appendTo(l);X.makeSelectable(g,!1);X.makeSelectable(G,!1);aa(!1);la()}},aa=function(G){G?(l.removeClass("sa-ctrl-common-unselectable"),l.off("selectstart",oa)):(l.addClass("sa-ctrl-common-unselectable"),l.on("selectstart",oa))},oa=function(){return!1};this.setSelectable=function(G){L();aa(G)};this.addResizeListener=function(G){K.push(G)};this.addClosingListener=function(G,J){H.push([G,J?!0:!1])};this.addClosedListener=function(G){S.push(G)};this.setBounds=function(G,J,M,P){L();l.css("left",G);l.css("top",
J);l.css("width",M);l.css("height",P)};this.setMinSize=function(G,J){D=G;E=J};this.setToolbarVisible=function(G){L();m.css("display",G?"block":"none");q.css("top",parseInt(m.css("top"))+(G?m.outerHeight():0)+"px")};this.show=function(){L();l.css("display","block")};this.hide=function(){l&&l.css("display","none")};this.destroy=function(){l&&l.remove()};this.isVisible=function(){return l&&"none"!=l.css("display")};this.setTitle=function(G){g.text(G)};this.setContent=function(G,J){J?(G.addClass("sa-ctrl-dialog-padding_scrollable"),
J=$("<div>"),X.layoutCtrlWithLRTB(J,0,0,null,1,0,null),J.css("overflow-x","hidden"),J.css("overflow-y","auto"),J.append(G),q.append(J)):(G.addClass("sa-ctrl-dialog-padding"),q.append(G))};this.getMessageCurtain=function(G){G||A||(A=new f,A.getJqUi().appendTo(q));return A};this.setResizeEnabled=function(){L();var G=!1,J=!1,M=!1,P;l.on("mousemove",function(I){if(!M){var u=X.getCurrentTargetPosition(I);u=X.upwardCoordinate(I.target,u,l[0]);I=u[0];u=u[1];var N=l.outerWidth(),ha=l.outerHeight();G=I>N-
5;J=u>ha-5;l.css("cursor",G&&J?"se-resize":G?"e-resize":J?"s-resize":"default")}});l.on("mousedown",function(I){M=!0;if(G||J)n.on("mousemove",F),n.on("mouseleave",z),n.on("mouseup",z),P=n.css("cursor"),n.css("cursor",l.css("cursor"))});l.on("mouseup",function(I){J=G=M=!1});var F=function(I){var u=X.getCurrentTargetPosition(I);u=X.upwardCoordinate(I.target,u,n[0]);I=u[0]-l.prop("offsetLeft");u=u[1]-l.prop("offsetTop");var N=!1;G&&I>=D&&(l.css("width",I+"px"),N=!0);J&&u>=E&&(l.css("height",u+"px"),
N=!0);N&&pa()},z=function(I){J=G=M=!1;n.off("mousemove",F);n.off("mouseleave",z);n.off("mouseup",z);n.css("cursor",P)}};this.setFullScreenEnabled=function(){L();var G=$("<div>");G.addClass("sa-ctrl-dialog-fullscreen");G.appendTo(l);var J=$("<div>");J.addClass("sa-ctrl-dialog-fullscreen-inner sa-ctrl-dialog-fullscreen-inner_able");J.appendTo(G);G.on("click",function(M){(R=!R)?(J.addClass("sa-ctrl-dialog-fullscreen-inner_ed"),J.removeClass("sa-ctrl-dialog-fullscreen-inner_able")):(J.addClass("sa-ctrl-dialog-fullscreen-inner_able"),
J.removeClass("sa-ctrl-dialog-fullscreen-inner_ed"));if(R){M=[l.css("left"),l.css("top"),l.css("width"),l.css("height")];l.data("myOriBounds",M);var P=ya.getFullScreenPadding();M=P[0];var F=P[1],z=n.innerWidth()-M-P[2];P=n.innerHeight()-F-P[3];c.setBounds(M,F,z,P)}else M=l.data("myOriBounds"),l.removeData("myOriBounds"),c.setBounds(M[0],M[1],M[2],M[3]);pa()})};this.createToolbarButton=function(G,J,M){L();0<m.children().length&&M&&(M=$("<div>"),M.addClass("sa-ctrl-dialog-toolbar-seperator"),M.appendTo(m));
M=$("<div>");M.text(G);M.addClass("sa-ctrl-dialog-toolbar-button");M.appendTo(m);M.on("click",J);return M};this.showFooterPane=function(G){L();p=$("<div>");p.addClass("sa-ctrl-dialog-footer");p.addClass("sa-ctrl-common-unselectable");p.appendTo(l);q.css("bottom",parseInt(p.css("bottom"))+p.outerHeight()+"px");G?G(p):ma(p)};var ma=function(G){var J=new k(V.get("ok","\u786e\u5b9a"));J.setHighlight(!0);J.getJqUi().addClass("sa-ctrl-dialog-footer-ok");J.getJqUi().appendTo(G);J.addActionListener(function(M){M.setEnabled(!1);
qa(!0,function(P){P?(c.hide(),U()):M.setEnabled(!0)})});J=new k(V.get("cancle","\u53d6\u6d88"));J.setHighlight(!1);J.getJqUi().addClass("sa-ctrl-dialog-footer-cancel");J.getJqUi().appendTo(G);J.addActionListener(function(M){M.setEnabled(!1);qa(!1,function(P){P?(c.hide(),U()):M.setEnabled(!0)})})},la=function(){var G,J,M,P,F=n.css("cursor"),z=g.css("cursor"),I,u=!1,N=0,ha=function(ia){N=2>N?++N:0;if(!(0<N)){var W=X.getCurrentTargetPosition(ia);W=X.upwardCoordinate(ia.target,W,n[0]);ia=W[0]-I[0];W=
W[1]-I[1];ia=ia+M>G?G-M:ia;W=W+P>J?J-P:W;W=0>W?0:W;l.css("left",(0>ia?0:ia)+"px");l.css("top",W+"px")}},ba=function(ia){g.css("cursor",z);n.css("cursor",F);n.off("mousemove",ha);n.off("mouseleave",ba);n.off("mouseup",ba)};g.on("mousedown",function(ia){u=!0;I=X.getCurrentTargetPosition(ia);I=X.upwardCoordinate(ia.target,I,l[0])});g.on("mouseup",function(ia){u=!1;I=null});g.on("mousemove",function(ia){u&&(u=!1,G=n.width(),J=n.height(),M=l.outerWidth(),P=l.outerHeight(),n.on("mousemove",ha),n.on("mouseleave",
ba),n.on("mouseup",ba),n.css("cursor","move"),g.css("cursor","move"))})},pa=function(){for(var G=0;G<K.length;G++)(0,K[G])(l.outerWidth(),l.outerHeight())},qa=function(G,J){for(var M=!0,P=H.length,F=0;F<H.length;F++){var z=H[F][0];H[F][1]?z(c,G,function(I){M=M&&I;P--;0==P&&J(M)}):(M=M&&z(c,G),P--)}0==P&&J(M)},U=function(){for(var G=0;G<S.length;G++)(0,S[G])(c)};this.protectedMethod={paintCustomTitle:function(G){G(g)}}}function e(){var n=$("<div class='sa-ctrl-common-modallayer'>"),c=new t(n),l=0,
g=0,m=320,q=240,p=-1,A=-1,K=-1,H=-1,S=!1,R=!1,D,E,L=function(){return!0},aa,oa,ma=!1;this.setPosition=function(U,G){l=U;g=G};this.setSize=function(U,G){m=U;q=G};var la=function(U){var G=U.prop("clientWidth");U=U.prop("clientHeight");var J=m,M=q;if(S){J=0>p?m:p;M=0>A?q:A;var P=0>K?m:K,F=0>H?q:H;G<U?(J=Math.max(J,Math.min(P,parseInt(.9*G))),M=Math.max(M,Math.min(F,parseInt(J*q/m)))):(M=Math.max(M,Math.min(F,parseInt(.9*U))),J=Math.max(J,Math.min(P,parseInt(M*m/q))))}l||(l=Math.max(0,G-J>>1),g=Math.max(0,
U-M>>1));return[l,g,J,M]};this.showDialog=function(){var U=D(),G=$(document.body);n.appendTo(G);G=la(G);c.setBounds(G[0],G[1],G[2],G[3]);c.setToolbarVisible(!1);c.setContent(U,R);null!==E&&c.showFooterPane(E);c.addClosingListener(function(J,M,P){if(P)(J=M?L:aa)?J(function(F){F&&oa(M);P(F)}):P(!0);else return(J=M?L?L():!0:aa?aa():!0)&&oa(M),J},ma);c.addClosedListener(function(J){pa()});c.show()};var pa=function(){c.destroy();n.remove()},qa=function(U,G){L=U;ma=G?!0:!1};this.protectedMethod={setMinSize:function(U,
G){S=!0;p=U;A=G},setMaxSize:function(U,G){S=!0;K=U;H=G},getMessageCurtain:function(U){return c.getMessageCurtain(U)},setTitle:function(U){c.setTitle(U)},setScrollable:function(U){R=U},setSelectable:function(U){c.setSelectable(U)},getDialogCtrl:function(){return c},setDialogCtrlClass:function(U){c=new U(n)},setContentPaneCreator:function(U){D=U},setFooterPaneCreator:function(U){E=U},setClosingChecker:qa,setClosingChecker2:function(U,G,J){aa=G;qa(U,J)},setClosingAction:function(U){oa=U},layoutCtrl:function(U,
G,J,M,P,F){X.layoutCtrl(G,J,M,P,F);G.appendTo(U)},destroy:pa}}function b(n){t.call(this,n);var c=this.protectedMethod,l;this.setSearchListener=function(m){l||g(m)};var g=function(m){l=new a;l.addSearchListener(m);l.setSearchListenerDelay(800);l.setPlaceholder(V.get("pleaseInputSearchText","\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9"));c.paintCustomTitle(function(q){var p=l.getJqUi();p.appendTo(q);X.layoutCtrlWithLRTB(p,null,40,200,null,4,23);p=$("<div>");ua.background(p,"icon_search_hover");p.appendTo(q);
X.layoutCtrlWithLRTB(p,null,244,16,null,6,16)})}}function a(){r.call(this);var n=this.protectedMethod,c=this,l,g=[],m=$("<input>"),q,p,A=0,K,H=!1,S=[];this.getJqUi=function(){l||R();return l};this.addSearchListener=function(la){g.push(la)};this.setSearchListenerDelay=function(la){A=la};this.setPlaceholder=function(la){"placeholder"in m[0]?m.attr("placeholder",la):(q&&(q.remove(),m.off("blur",ma),m.off("focus",ma),m.off("keydown",ma)),q=$("<div>"),q.text(la),q.css("color","#ccc"),q.on("mousedown",
function(pa){m.focus()}),q.appendTo(c.getJqUi()),X.layoutCtrlWithLRTB(q,4,4,null,2,2,null),ma(),m.on("blur",ma),m.on("focus",ma),m.on("keydown",ma))};this.setAlwaysShowCleanIcon=function(la){H=la;p&&aa()};this.addCloseListener=function(la){S.push(la)};var R=function(){l=$("<div>");l.addClass("sa-ctrl-textfield");n.setUiBorderEnabled(l,!0);m.addClass("sa-ctrl-textfield-input");m.on("input",D);m.appendTo(l);p=$("<div>");p.attr("title",V.get("clean","\u6e05\u9664"));p.addClass("sa-ctrl-searchbox-close");
p.text("\u00d7");p.on("click",function(){if(E())m.val(""),L(0),m.focus();else for(var la=0;la<S.length;la++)(0,S[la])(c)});aa()};this.getText=function(){return m.val()};this.clear=function(){m.val("");L(-1);m.focus()};this.setFoucs=function(){m.focus()};var D=function(la){Da.cleanText(m);L(A)},E=function(){var la=c.getText();return null!=la&&""!=la},L=function(la){aa(E());0<=la&&oa(la)},aa=function(la){p.css("display",H||la?"block":"none")},oa=function(la){clearTimeout(K);K=setTimeout(function(){for(var pa=
0;pa<g.length;pa++)(0,g[pa])(c)},la)},ma=function(){q&&setTimeout(function(){q.css("display",m.val()?"none":"")},0)}}function d(){var n=[],c=[];this.addChangedListener=function(m){c.push(m)};this.addElement=function(m){n.push(m);m.addCheckedListener(l)};var l=function(m,q){if(m.isChecked()){for(var p=0;p<n.length;p++){var A=n[p];A!=m&&A.setChecked(!1)}g(m,q)}else{A=!0;for(p=0;p<n.length;p++)if(n[p].isChecked()){A=!1;break}A&&(m.setChecked(!0),g(m,q))}},g=function(m,q){for(var p=0;p<c.length;p++)(0,c[p])(m,
q)}}function h(){var n=this,c=!0;this.showFeature=function(l){c=l;n.protectedUpdateFeatureDisplay()};this.isShowFeature=function(){return c};this.protectedUpdateFeatureDisplay=function(){throw Error("Implement");}}function B(){r.call(this);var n=this.protectedMethod,c=this,l=[],g=[],m=null,q=!1,p=!0,A=!1,K=!0,H,S,R,D,E=[],L=[],aa=[];this.setItemModels=function(F,z){l=F?F:[];D=z?z:P;la();c.protectedUpdateEnabledState();H&&setTimeout(c.scrollSelectedToVisible,0)};this.setSelecteds=function(F){if(F.length==
g.length){for(var z=!0,I=0;I<F.length;I++)if(0>M(F[I])){z=!1;break}if(z)return}z=g;g=F;pa();F=g;for(I=0;I<aa.length;I++)(0,aa[I])(c,z,F)};this.getSelecteds=function(){return g};this.setBorderVisible=function(F){K=F};this.getJqUi=function(){if(!H){H=$("<div>");K&&n.createBorder(H);var F=$("<div>");F.addClass("sa-ctrl-list-owner");F.on("mousedown",U);if(0<L.length)F.on("dblclick",G);F.appendTo(H);la();c.protectedUpdateEnabledState()}return H};this.setCustomItemPainter=function(F){S=F};this.setCustomSelectedsPainter=
function(F){R=F};this.addPressedListener=function(F){E.push(F)};this.addDBLClickListener=function(F){L.push(F)};this.addSelectedChangedListener=function(F){aa.push(F)};this.setMultiSelectable=function(F){q=F};this.setToggleSelectingEnabled=function(F){p=F};this.setContinuousSelectingEnabled=function(F){A=F};this.protectedUpdateEnabledState=function(){if(H){n.setUiBackgroundEnabled(H,c.isEnabled());n.setUiForegroundEnabled(H,c.isEnabled());var F=ma();c.isEnabled()?F.addClass("sa-ctrl-list-item_enabled"):
F.removeClass("sa-ctrl-list-item_enabled");pa()}};var oa=function(F,z){F.text(z)};this.getItemUiByModel=function(F){for(var z=ma(),I=0;I<z.length;I++){var u=z.eq(I);if(D(F,u.data("model")))return u}return null};var ma=function(){return H.find(".sa-ctrl-list-item")},la=function(){if(H){var F=H.find(".sa-ctrl-list-owner");F.empty();for(var z=$(document.createDocumentFragment()),I=S?S:oa,u=0;u<l.length;u++){var N=$("<div>");N.addClass("sa-ctrl-list-item");N.addClass("sa-ctrl-list-item-defaultlayout");
var ha=l[u];N.data("model",ha);I(N,ha);z.append(N)}F.append(z)}},pa=function(){if(H){var F=H.find(".sa-ctrl-list-item_selected_enabled");F.removeClass("sa-ctrl-list-item_selected_enabled");for(var z=[],I=0;I<F.length;I++)z.push($(F[I]));F=[];if(c.isEnabled())for(var u=ma(),N=0;N<g.length;N++){var ha=g[N];for(I=0;I<u.length;I++){var ba=u.eq(I),ia=ba.data("model");if(D(ia,ha)){ba.addClass("sa-ctrl-list-item_selected_enabled");F.push(ba);break}}}R&&R(z,F)}};this.scrollSelectedToVisible=function(F){if(H&&
0!=g.length){F=F?F:g[0];for(var z=ma(),I=0;I<z.length;I++){var u=z.eq(I),N=u.data("model");if(D(N,F)){F=H.find(".sa-ctrl-list-owner");z=F.prop("clientHeight");I=F.prop("scrollTop");N=I+z;var ha=u.prop("offsetTop");u=ha+u.prop("offsetHeight");ha<I?F.prop("scrollTop",ha-10):u>N&&F.prop("scrollTop",u-z+10);break}}}};var qa=function(F){if(!c.isEnabled())return!1;var z=$(F.target);if(z=X.upwardSearchHasClass(z,H,"sa-ctrl-list-item")){var I=z.data("model");z=g.slice();var u=q&&A&&F.shiftKey;if(p&&(F.ctrlKey||
F.metaKey))if(F=M(I),0<=F)z.splice(F,1),m==I&&(m=0==z.length?null:z[z.length-1]);else{if(q||0==z.length)z.push(I),m=I}else if(u&&0<z.length){u=null==m?0:J(m);F=J(I);I=l.slice(Math.min(u,F),Math.max(u,F)+1);for(F=I.length-1;0<=F;F--){u=I[F];for(var N=0;N<z.length;N++)if(D(z[N],u)){I.splice(F,1);break}}z=z.concat(I)}else z=[I],m=I;c.setSelecteds(z);return!0}return!1},U=function(F){if(qa(F)){F=p&&(F.ctrlKey||F.metaKey);for(var z=0;z<E.length;z++)(0,E[z])(c,F)}},G=function(F){if(qa(F))for(F=0;F<L.length;F++)(0,L[F])(c)},
J=function(F){for(var z=0;z<l.length;z++)if(D(l[z],F))return z;return-1},M=function(F){for(var z=0;z<g.length;z++)if(D(F,g[z]))return z;return-1},P=function(F,z){return F===z}}function w(){r.call(this);w.Child.call(this);var n=this,c=!0,l=w.RESIZE_MODE_FIRST_FIXED,g=0,m,q,p,A,K,H,S=-1,R=-1,D=-1,E=-1,L=-1,aa=-1,oa=-1,ma=null;(function(){A=$("<div>");A.addClass("sa-ctrl-splitpane-line");A.on("mousedown",function(I){F(I)});A.on("mouseenter",function(I){P(A,!0)});A.on("mouseleave",function(I){0==m.find(".sa-ctrl-splitpane-mask").length&&
P(A,!1)});var z=$("<div>");z.addClass("sa-ctrl-splitpane-line-tip");z.appendTo(A);q=$("<div>");q.addClass("sa-ctrl-splitpane-part");p=$("<div>");p.addClass("sa-ctrl-splitpane-part");m=$("<div>");m.addClass("sa-ctrl-splitpane");m.append(A);m.append(q);m.append(p)})();this.setHorizontalSplit=function(z){c=z;la();qa()};this.setResizeMode=function(z){l=z};this.getJqUi=function(){return m};this.resize=function(z){qa(z)};this.setFirstChild=function(z){q.empty();K=z;K.getJqUi().appendTo(q);K.getJqUi().addClass("sa-ctrl-splitpane-child");
qa()};this.setSecondChild=function(z){p.empty();H=z;H.getJqUi().appendTo(p);H.getJqUi().addClass("sa-ctrl-splitpane-child");qa()};this.setFirstSize=function(z,I,u){R=z;D=void 0==I?-1:I;E=void 0==u?-1:u;qa()};this.setSecondSize=function(z,I,u){L=z;aa=void 0==I?-1:I;oa=void 0==u?-1:u;qa()};this.setSplitLineWide=function(z){S=z};this.getJqSplitLine=function(){return A};this.clearState=function(){ma=null};this.collapseFirstHalf=function(z){if(z)g=1,ma=[R,D,E],n.setFirstSize(0,0,0),n.setEnabled(!1);else{g=
0;if(ma){z=ma[0];var I=ma[1],u=ma[2];ma=null;n.setFirstSize(z,I,u)}n.setEnabled(!0)}qa()};this.collapseSecondHalf=function(z){if(z)g=2,ma=[L,aa,oa],n.setSecondSize(0,0,0),n.setEnabled(!1);else{g=0;if(ma){z=ma[0];var I=ma[1],u=ma[2];ma=null;n.setSecondSize(z,I,u)}n.setEnabled(!0)}qa()};this.hideFirstHalf=function(z){pa(z,q);qa()};this.hideSecondHalf=function(z){pa(z,p);qa()};this.getNonemptyFirstWide=function(){return 1==g?ma[0]:R};this.getNonemptySecondWide=function(){return 2==g?ma[0]:L};this.protectedUpdateEnabledState=
function(){la()};var la=function(){var z=A.find(".sa-ctrl-splitpane-line-tip");n.isEnabled()?(z.css("display",""),z.addClass("sa-ctrl-splitpane-line-tip-"+(c?"v":"h"))):z.css("display","none")},pa=function(z,I){z?(I.css("display","none"),A.css("display","none")):(I.css("display",""),A.css("display",""));(I==q?p:q).css("display","")},qa=function(z){if(!(0>R&&0>L)&&K&&H){var I=-1,u=R,N=L;if(X.isInDomTree(m[0])){var ha=c?m.innerWidth():m.innerHeight();I=0<ha?ha:I}var ba=0<=u?u:0<=D?D:0<=E?E:0,ia=0<=
N?N:0<=aa?aa:0<=oa?oa:0;if(0>I)var W=ba+ia;else W=I-J(),W=0>W?0:W;I=0>D?0:D;N=0>E?999999:E;u=0>aa?0:aa;ha=0>oa?999999:oa;W-=ba+ia;0!=W&&(W=[ba,ia,W],ba=W[0],ia=W[1],W=W[2]);if(0!=W)switch(l){case w.RESIZE_MODE_FIRST_FIXED:W=M(ia,u,ha,W);ia=W[0];W=W[1];0!=W&&(W=M(ba,I,N,W),ba=W[0],W=W[1],0!=W&&(W=[ba,ia],ba=W[0],ia=W[1]));break;case w.RESIZE_MODE_SECOND_FIXED:W=M(ba,I,N,W);ba=W[0];W=W[1];0!=W&&(W=M(ia,u,ha,W),ia=W[0],W=W[1],0!=W&&(W=[ba,ia],ba=W[0],ia=W[1]));break;case w.RESIZE_MODE_RATIO:var sa=W;
W=parseInt(ba/(ba+ia)*sa);sa-=W;ba=M(ba,I,N,W);sa=M(ia,u,ha,sa);W=ba[0];ia=sa[0];ba=ba[1];sa=sa[1];0!=ba&&0==sa?(sa=M(ia,u,ha,ba),ia=sa[0],sa=sa[1],0!=sa&&(I=[W,ia],W=I[0],ia=I[1])):0==ba&&0!=sa?(ba=M(W,I,N,sa),W=ba[0],ba=ba[1],0!=ba&&(I=[W,ia],W=I[0],ia=I[1])):0!=ba&&0!=sa&&(I=[W,ia],W=I[0],ia=I[1]);W=[W,ia];ba=W[0];ia=W[1];break;default:throw Error("Unknown resize-mode: "+l);}R=ba;L=ia;U();z=z?!0:!1;1==g?q.css("display","none"):(q.css("display",""),K.resize(z));2==g?p.css("display","none"):(p.css("display",
""),H.resize(z))}},U=function(){var z=R,I=L;1==g?(z=0,I=R+L):2==g&&(z=R+L,I=0);var u=0+z,N=u+J();G(q,0,z);G(A,u,J());G(p,N,I)},G=function(z,I,u){var N={position:"absolute"};c?(N.left=I,void 0!==u&&(N.width=u),N.top=0,N.bottom=0,N.height=""):(N.left=0,N.right=0,N.width="",N.top=I,void 0!==u&&(N.height=u));z.css(N)},J=function(){return"none"==A.css("display")?0:0>S?8:S},M=function(z,I,u,N){z+=N;N=0;z<I?(N=z-I,z=I):z>u&&(N=z-u,z=u);return[z,N]},P=function(z,I){z.css("cursor",n.isEnabled()&&I?c?"e-resize":
"n-resize":"default")},F=function(z){if(n.isEnabled()){var I=$("<div>");I.addClass("sa-ctrl-splitpane-mask");I.appendTo(m);P(I,!0);var u=0>D?0:D,N=0>E?999999:E,ha=0>aa?0:aa,ba=0>oa?999999:oa;z=X.getCurrentTargetPosition(z);z=X.upwardCoordinate(A[0],z,m[0]);var ia=c?z[0]:z[1],W=R,sa=L,za=function(ta){var va=X.getCurrentTargetPosition(ta);va=X.upwardCoordinate(ta.target,va,m[0]);ta=(c?va[0]:va[1])-ia;va=W+ta;var xa=sa-ta;if(va<u||va>N)va=va<u?u:N,ta=va-W,xa=sa-ta;else if(xa<ha||xa>ba)xa=xa<ha?ha:ba,
ta=sa-xa,va=W+ta;R=va;L=xa;U();K.resize(!0);H.resize(!0)},Ba=function(ta){Aa()},Ca=function(ta){this.contains(ta.toElement||ta.relatedTarget)||Aa()},Aa=function(){I.remove();K.resize(!1);H.resize(!1);P(A,!1);m.off("mousemove",za);m.off("mouseup",Ba);m.off("mouseleave",Ca)};m.on("mousemove",za);m.on("mouseup",Ba);m.on("mouseleave",Ca)}}}function v(){var n=this,c=$("<div class='sa-ctrl-common-modallayer'>"),l=new t(c),g=0,m=0,q=320,p=200,A=null,K,H,S=0,R={},D=function(J){return!0},E,L,aa;R[v.RETURN_OK]=
V.get("ok","\u786e\u5b9a");R[v.RETURN_CANCEL]=V.get("cancle","\u53d6\u6d88");R[v.RETURN_YES]=V.get("yes","\u662f");R[v.RETURN_NO]=V.get("no","\u5426");this.setOptionType=function(J){S=J;""!==A&&(A=S==v.OPTION_OK?V.get("msgTips","\u6d88\u606f\u63d0\u793a"):V.get("confirmTips","\u64cd\u4f5c\u786e\u8ba4"))};this.setButtonText=function(J,M){R[J]=M};this.setCustomPainter=function(J){L=J;G()};var oa=function(J,M){var P=$("<div class='sa-ctrl-msgdlg-text'>");P.css("bottom",H?20:0);P.text(M);J.append(P)};
this.setTitle=function(J){l.setTitle(J);A=""};this.setMessage=function(J){aa=J;G()};this.setDetail=function(J){H=$('<textarea readonly="true" ></textarea>');H.text(J);H.addClass("sa-ctrl-msgdlg-detail");H.on("click",function(){H.select()})};this.setClosingChecker=function(J){D=J};this.setClosedAction=function(J){E=J};this.setBounds=function(J,M,P,F){g=J;m=M;q=P;p=F};this.showDialog=function(J,M){T.callUntilVisible(function(){ma(J,M)})};var ma=function(J,M){q=J?J:q;p=M?M:p;M=$(document.body);c.appendTo(M);
g||(J=M.innerWidth(),M=M.innerHeight(),g=J-q>>1,m=M-p>>1);A&&l.setTitle(A);l.setBounds(g,m,q,p);l.setToolbarVisible(!1);l.setContent(la());l.showFooterPane(pa);l.addClosedListener(U);l.addClosingListener(function(P,F){return D(v.RETURN_CANCEL)?!0:!1});n.protectedCustomize(c);l.show()};this.protectedCustomize=function(J){};var la=function(){K=$("<div>");if(H){var J=$("<div>");J.text(V.get("detail","\u8be6\u7ec6..."));J.addClass("sa-ctrl-msgdlg-more");J.css("bottom",0);J.on("click",function(M){J.css("display",
"none");H.css("bottom",0);H.css("height",100);H.css("left",0);H.css("width",K.innerWidth());H.appendTo(K);p+=100;l.setBounds(g,m,q,p)});K.append(J)}G();return K},pa=function(J){var M=[];(S&v.RETURN_OK)==v.RETURN_OK&&M.push(qa(v.RETURN_OK));(S&v.RETURN_YES)==v.RETURN_YES&&M.push(qa(v.RETURN_YES));(S&v.RETURN_NO)==v.RETURN_NO&&M.push(qa(v.RETURN_NO));(S&v.RETURN_CANCEL)==v.RETURN_CANCEL&&M.push(qa(v.RETURN_CANCEL));if(S==v.OPTION_OK_CANCEL||S==v.OPTION_YES_NO){var P=M[0];M=M[1];P.setHighlight(!0);M.setHighlight(!1);
P.getJqUi().addClass("sa-ctrl-dialog-footer-ok");M.getJqUi().addClass("sa-ctrl-dialog-footer-cancel");J.append(P.getJqUi());J.append(M.getJqUi())}else{P=J.innerWidth()-(120*M.length-20)>>1;for(var F=0;F<M.length;F++){var z=M[F];z.setHighlight(0==F);X.layoutCtrlWithLRTB(z.getJqUi(),P,null,100,null,16,28);J.append(z.getJqUi());P+=120}}},qa=function(J){var M=R[J],P=new k;P.setText(M);P.addActionListener(function(F){F.setEnabled(!1);D(J)?(l.hide(),U(l)):F.setEnabled(!0)});return P},U=function(J){E&&E();
J.destroy();c.remove()},G=function(){K&&(L?L:oa)(K,aa)}}function x(){var n=0,c=0,l=380,g=280,m=v.MSG_CONFIRM,q=v.OPTION_OK_CANCEL,p=new function(){v.call(this);this.protectedCustomize=function(D){D.find(".sa-ctrl-dialog-title").removeClass("sa-ctrl-dialog-titlebar")}},A,K=!1;this.setExtendPainter=function(D){A=D};this.setMsgImageType=function(D){m=D};this.setOptionType=function(D){q=D};this.setButtonText=function(D,E){p.setButtonText(D,E)};this.setClosingChecker=function(D){p.setClosingChecker(D)};
this.setClosedAction=function(D){p.setClosedAction(D)};this.setBounds=function(D,E,L,aa){l=D;g=E;n=L;c=aa};this.setMessage=function(D){p.setMessage(D)};this.setDetail=function(D){p.setDetail(D);K=!0};this.setTitle=function(D){p.setTitle(D)};this.showDialog=function(){p.setCustomPainter(H);p.setOptionType(q);p.setBounds(n,c,l,g);p.showDialog()};var H=function(D,E){var L=$("<div>");L.addClass("sa-ctrl-feedback-dialog-image");ua.background(L,R());var aa=$('<div class="sa-ctrl-feedback-dialog-extend">');
aa.css("bottom",K?20:0);(A?A:S)(aa,E);L.appendTo(D);aa.appendTo(D)},S=function(D,E){var L=$("<div>");L.addClass("sa-ctrl-feedback-dialog-text");L.text(E);L.attr("title",E);L.appendTo(D)},R=function(){switch(m){case v.MSG_CONFIRM:return"msg-confirm";case v.MSG_DELETE:return"msg-delete";case v.MSG_SAVE:return"msg-save";case v.MSG_WARNING:return"msg-warning";case v.MSG_JURISDICTION:return"msg-jurisdiction";case v.MSG_WRONG:return"msg-wrong";default:throw Error("Unknown MsgImageType: "+m);}}}function O(){r.call(this);
h.call(this);var n=this.protectedMethod,c=this,l,g=$("<div>"),m=$("<input>"),q=[],p,A=0,K=100,H=1,S=function(u){return Math.round(u)},R=!1,D,E=function(u){R=!1},L=function(u){R&&ma()},aa=function(u){13==u.keyCode?(R&&ma(),u.preventDefault()):27==u.keyCode&&U()},oa=function(u){R=!0;var N=u=!1,ha=!1,ba=$.trim(m.val());0==ba.length&&(ha=!0);"-"==ba.substr(0,1)&&(u=!0,ba=ba.substring(1));"."==ba.substr(-1,1)&&(N=!0,ba=ba.substring(0,ba.length-1));ba=ba.replace(/[^\d\.]/g,"");""==ba?ha||u||U():N&&m.val((u?
"-":"")+ba+".")},ma=function(){var u=$.trim(m.val());u=parseFloat(u);isNaN(u)?U():(u>K?u=K:u<A&&(u=A),u=S(u),pa(u,O.CHANGED_BY_MANUAL_EDIT))},la=function(u){if("number"!=typeof u)throw Error("Not number");},pa=function(u,N){if(u!==p){var ha=p;p=u;for(u=0;u<q.length;u++)(0,q[u])(c,ha,p,N)}U()};this.setValue=function(u){null===u||la(u);pa(u,O.CHANGED_BY_API)};this.getValue=function(){return p};this.setConstraint=function(u,N,ha){la(u);la(N);la(ha);A=Math.min(u,N);K=Math.max(u,N);H=ha};this.supportDecimal=
function(u){var N=Math.pow(10,Math.max(1,parseInt(u)));c.setAcceptEditingDecorator(function(ha){return parseInt(ha*N+.5)/N});c.setCustomPainter(function(ha){return parseInt(ha*N+.5)/N})};this.getJqUi=function(){if(!l){l=$("<div>");l.addClass("sa-ctrl-spinner");g.addClass("sa-ctrl-spinner-text");g.appendTo(l);m.addClass("sa-ctrl-textfield-input");m.on("focus",E);m.on("blur",L);m.on("keydown",aa);m.on("input",oa);m.appendTo(g);var u=$("<div>");u.addClass("sa-ctrl-spinner-up");u.appendTo(l);u.on("mousedown",
M);u.on("mouseup",P);u.on("mouseleave",P);var N=$("<div>");N.text("\u25b2");N.addClass("sa-ctrl-spinner-up-inner");N.appendTo(u);u=$("<div>");u.addClass("sa-ctrl-spinner-down");u.appendTo(l);u.on("mousedown",F);u.on("mouseup",z);u.on("mouseleave",z);N=$("<div>");N.text("\u25b2");N.addClass("sa-ctrl-spinner-down-inner");N.appendTo(u);c.protectedUpdateEnabledState()}return l};this.setCustomPainter=function(u){D=u;U()};this.setAcceptEditingDecorator=function(u){S=u};this.addValueChangedListener=function(u,
N){N&&(u=qa(u));q.push(u)};var qa=function(u){var N;return function(ha,ba,ia,W){W==O.CHANGED_BY_MANUAL_ADJUST?(clearTimeout(N),N=setTimeout(function(){u(ha,ba,ia,W)},625)):W==O.CHANGED_BY_MANUAL_EDIT&&u(ha,ba,ia,W)}},U=function(){var u=D?D(p):null===p?"?":p;m.val(u)},G,J,M=function(u){if(c.isEnabled()){G=400;var N=function(){J=setTimeout(function(){I(H);G=Math.max(100,G-50);N()},G)};I(H);N()}},P=function(u){clearTimeout(J)},F=function(u){if(c.isEnabled()){G=400;var N=function(){J=setTimeout(function(){I(-H);
G=Math.max(100,G-100);N()},G)};I(-H);N()}},z=function(u){clearTimeout(J)},I=function(u){u=(null===p?A:p)+u;u=u<A?A:u;u=u>K?K:u;pa(u,O.CHANGED_BY_MANUAL_ADJUST)};this.protectedUpdateEnabledState=function(){if(l){n.setUiBorderEnabled(l,c.isEnabled());n.setUiBackgroundEnabled(g,c.isEnabled());n.setUiForegroundEnabled(m,c.isEnabled());var u=l.find(".sa-ctrl-spinner-up"),N=l.find(".sa-ctrl-spinner-down");c.isEnabled()?(u.addClass("sa-ctrl-spinner-arrow_enabled"),N.addClass("sa-ctrl-spinner-arrow_enabled")):
(u.removeClass("sa-ctrl-spinner-arrow_enabled"),N.removeClass("sa-ctrl-spinner-arrow_enabled"));m.attr("disabled",!c.isEnabled())}c.protectedUpdateFeatureDisplay()};this.protectedUpdateFeatureDisplay=function(){if(l){var u=c.isShowFeature()&&c.isEnabled();g.css("background-color",u?"":"transparent");g.siblings().css("display",u?"":"none");n.setUiBorderVisible(l,c.isShowFeature())}}}"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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.component&&(com.kingdee.bos.qing.lapp.component={});var C=com.kingdee.bos.qing.lapp.component;C.HeadBar=function(){var n,c=$("<div>"),l,g,m=!1;this.setTitle=function(p){c.text(p)};this.setQAListener=function(p){m=!0;g=p};this.setRightText=function(p,A){q();var K=$("<span>");K.text(p);K.addClass("lapp-head-rightbtn touch");
K.attr("data-touchFeedback","true");K.on("click",A);K.appendTo(n);return K};this.addRightIconButton=function(p,A){q();var K=$("<div>");K.addClass("lapp-head-righticon-container touch");K.attr("data-touchFeedback","true");var H=$("<span>");H.addClass("lapp-head-righticon");H.css("background-image","url("+p+")");K.on("click",A);H.prependTo(K);K.prependTo(n);return K};this.addRightIconTextButton=function(p,A,K){q();A=$("<div>");A.addClass("lapp-head-right-icontext touch");A.attr("data-touchFeedback",
"true");A.on("click",K);K=$("<span>");K.addClass("lapp-head-finish-icon");K.css("background-image","url("+p+")");p=$("<span>");p.text(V.get("done","\u5b8c\u6210"));p.addClass("lapp-head-finish-text");K.appendTo(A);p.appendTo(A);A.prependTo(n);return A};this.setBackListener=function(p){l=p};this.getJqUi=function(){q();return n};var q=function(){if(!n){n=$("<div>");n.addClass("lapp-head-bar");var p=$("<div>");p.addClass("lapp-head-triangle-container touch");p.attr("data-touchFeedback","true");p.on("click",
l);var A=$("<span>");A.addClass("lapp-head-triangle");wa.background(A,"icon_back");A.appendTo(p);p.appendTo(n);p=$("<div>");p.addClass("lapp-head-title-container");c.addClass("lapp-head-title");if(m){A=$("<div>");A.addClass("lapp-head-question");A.on("click",g);var K=$("<div>");K.addClass("lapp-head-question-icon");wa.background(K,"icon_question");K.appendTo(A);K=$("<div>");K.addClass("lapp-head-container");c.appendTo(K);A.appendTo(K);K.appendTo(p)}else c.appendTo(p);p.appendTo(n)}}};C.SearchBox=
function(){var n=this,c,l=[],g,m,q,p,A=0,K;this.getJqUi=function(){c||H();return c};this.clearFnShowInput=function(E){c.off("click");E&&c.on("click",E)};this.setFnShowInput=function(){c.off("click");c.on("click",S)};this.addSearchListener=function(E){l.push(E)};this.setSearchListenerDelay=function(E){A=E};var H=function(){c=$("<div>");c.addClass("lapp-search-input-container");c.on("click",S);q=$("<span>");q.addClass("lapp-search-icon");q.css("background-image",na.getIconUrl("qing-lapp/core","icon_search.png"));
q.appendTo(c);p=$("<span>");p.addClass("lapp-search-text");p.text(V.get("search","\u641c\u7d22"));p.appendTo(c);m=$("<div>");m.attr("title",V.get("clear","\u6e05\u9664"));m.addClass("lapp-search-close");m.text("\u00d7");m.on("click",function(){n.clear()})},S=function(){p.css("display","none");g?g.css("display",""):(g=$("<input>"),g.addClass("lapp-search-input"),g.attr("placeholder",V.get("search","\u641c\u7d22")),g.on("input",function(E){R(A)}),g.on("blur",function(){var E=n.getText();if(null==E||
0==E.replace(/(^[\s\u3000]*)|([\s\u3000]*$)/g,"").length)p.css("display",""),g.css("display","none")}),g.appendTo(c));g.focus()};this.getText=function(){return g?$.trim(g.val()):""};this.setText=function(E){S();g.val(E)};this.clearText=function(){g&&g.val("");$(g).blur();m&&m.detach()};this.clear=function(){g&&g.val("");R(0);m&&m.detach();g&&g.focus()};this.setFoucs=function(){g.focus()};var R=function(E){var L=n.getText();null!=L&&""!=L?m.appendTo(c):m.detach();D(E)},D=function(E){clearTimeout(K);
K=setTimeout(function(){for(var L=0;L<l.length;L++)(0,l[L])(n)},E)}};C.Toast=ca;C.MessageCurtain=function(){var n,c=0;this.getJqUi=function(){n||l();return n};this.show=function(g){n||l();n.text(g);n.css("display","block");c&&clearTimeout(c);c=setTimeout(function(){clearTimeout(c);c=0;n.remove()},2E3)};var l=function(){n=$("<div>");n.addClass("lapp-ctrl-message-curtain");n.css("display","none");n.appendTo(document.body)}};C.ErrorDialog=function(n){var c=$("<div class= 'lapp-ctrl-common-modallayer'>"),
l=$("<div class= 'lapp-ctrl-errdlg'>"),g;this.setErrorText=function(q){g=q};this.show=function(){var q=$("<div>");q.addClass("lapp-ctrl-errdlg-icon");q.css("background-image",na.getIconUrl("qing-lapp/core","icon_error.png"));var p=$("<span>");p.addClass("lapp-ctrl-errdlg-text");g?p.text(g):p.text(V.get("fixError","\u51fa\u9519\u4e86\uff0c\u7a0b\u5e8f\u733f\u6b63\u5728\u52aa\u529b\u4fee\u590d\u4e2d\u2026"));var A=$("<span>");A.addClass("lapp-ctrl-errdlg-btn");A.text(V.get("understand","\u6211\u77e5\u9053\u4e86"));
A.on("click",m);q.appendTo(l);p.appendTo(l);A.appendTo(l);l.appendTo(c);c.appendTo(n)};var m=function(){c.remove()}};C.MessageDialog=function(){var n=this,c,l=$("<span>"),g=$("<span>"),m,q,p,A=[],K,H,S;this.setJqOwner=function(E){S=E};this.setTitle=function(E){l.text(E)};this.setMessage=function(E){g.text(E)};this.setInputVisible=function(){H=$("<input>")};this.setInputValue=function(E){H.val(E)};this.getInputValue=function(){return $.trim(H.val())};this.showDialog=function(E,L){q=E;p=L;R();m.appendTo(S);
H&&H.focus()};this.addClosingListener=function(E){A.push(E)};this.setClosingAction=function(E){K=E};this.destroy=function(){m.remove()};var R=function(){if(!c){m=$("<div>");m.addClass("lapp-ctrl-common-modallayer");c=$("<div>");c.addClass("lapp-ctrl-dialog");q&&c.css("width",q+"px");p&&c.css("height",p+"px");l.text(V.get("confirmTips","\u64cd\u4f5c\u786e\u8ba4"));l.addClass("lapp-ctrl-dialog-title");l.appendTo(c);g.addClass("lapp-ctrl-dialog-message");g.appendTo(c);H&&(H.addClass("lapp-ctrl-dialog-input"),
H.appendTo(c));var E=$("<div>");E.addClass("lapp-ctrl-dialog-footer");var L=$("<span>");L.addClass("lapp-ctrl-dialog-footer-btn lapp-ctrl-dialog-footer-btn_cancel");L.text(V.get("cancel","\u53d6\u6d88"));L.on("click",function(){D(!1)&&n.destroy();K(!1)});L.appendTo(E);L=$("<span>");L.addClass("lapp-ctrl-dialog-footer-border");L.appendTo(E);L=$("<span>");L.text(V.get("OK","\u786e\u5b9a"));L.addClass("lapp-ctrl-dialog-footer-btn lapp-ctrl-dialog-footer-btn_ok");L.on("click",function(){D(!0)&&n.destroy();
K(!0)});L.appendTo(E);E.appendTo(c);c.appendTo(m)}},D=function(E){for(var L=!0,aa=0;aa<A.length;aa++){var oa=A[aa];L=L&&oa(n,E)}return L}};C.SwiperTabContainer=ea;C.BottomSelector=Z;C.PullUpScroller=function(){var n,c,l=0,g,m,q;this.getJqUi=function(){n||(n=$("<div>"),n.css({"overflow-x":"hidden","overflow-y":"auto"}),n.on("scroll",p),new fa(n));return n};this.scrollTop=function(A){n.scrollTop(A)};this.getScrollTop=function(){return n.scrollTop()};var p=function(A){clearTimeout(g);g=setTimeout(function(){var K;
if(K=m){K=n.prop("scrollTop");var H=n.prop("clientHeight"),S=n.prop("scrollHeight");K=K+H>=S-2-(c?c.outerHeight():0)}K&&m();q&&q(n.prop("scrollTop"),n.prop("scrollTop")>l);l=n.prop("scrollTop")},50)};this.setScrollToBottomListener=function(A){m=A};this.removeScrollToBottomListener=function(){m=null};this.setScrollListener=function(A){q=A};this.showLoading=function(A){if(A){if(!c){c=$("<div>");c.addClass("lapp-ctrl-pullupscroller-loading");A=$("<span>");A.addClass("lapp-ctrl-pullupscroller-loading-icon");
A.css("background-image",na.getIconUrl("qing-lapp/core","pullup_loading.gif"));var K=$("<span>");K.addClass("lapp-ctrl-pullupscroller-loading-text");K.text(V.get("loading","\u6b63\u5728\u52a0\u8f7d..."));A.appendTo(c);K.appendTo(c)}c.appendTo(n)}else c&&c.remove()}};C.LazyLoader=fa;C.RadioBar=function(){da.Element.call(this);var n=this,c,l,g,m,q=!1,p=[],A=function(){c=$("<div>");c.addClass("lapp-checkbar");c.on("click",H);l=$("<div>");l.addClass("lapp-checkbar-icon");l.appendTo(c);var R=$("<div>");
R.addClass("lapp-checkbar-text");R.appendTo(c);g=$("<div>");g.addClass("lapp-checkbar-large-text");g.appendTo(R);m=$("<div>");m.addClass("lapp-checkbar-small-text");m.appendTo(R)};this.addCheckedListener=function(R){p.push(R)};this.setText=function(R,D){g.text(R);m.text(D)};this.setTextAndLogo=function(R,D){g.text(R);D(m)};this.setChecked=function(R){R!==q&&(q=R,K(),S(!1))};this.isChecked=function(){return q};this.getJqUi=function(){c||A();return c};var K=function(){q?l.css("background-image",na.getIconUrl("qing-lapp/core",
"icon_radiobar_checked.png")):l.css("background-image","")},H=function(R){q=!0;K();S(!0)},S=function(R){for(var D=0;D<p.length;D++)(0,p[D])(n,R)};A()};C.RadioBarGroup=da;C.EventAction=ka;C.InfoDialog=y;C.MobileDialog=function(){y.call(this);var n=this,c=this.protectedMethod,l,g;c.preventTouchOutsideToClose();this.createFooterWithTwoBtn=function(m,q,p,A){n.creatNormalFooterWithTwoBtn(p,A);m&&l.text(m);q&&g.text(q)};this.creatNormalFooterWithTwoBtn=function(m,q){l=$("<div>");l.addClass("lapp-dialog-cancle-btn");
l.text(V.get("cancle","\u53d6\u6d88"));m&&l.on("click",m);g=$("<div>");g.addClass("lapp-dialog-ok-btn");g.text(V.get("ok","\u786e\u5b9a"));q&&g.on("click",q);c.setFooterCreator(function(p){l&&l.appendTo(p);g&&g.appendTo(p)})};this.setFooterCreator=function(m){c.setFooterCreator(m)}};C.AbstractModalDialog=e;C.RadioButton=function(){r.call(this);d.Element.call(this);var n=this.protectedMethod,c=this,l,g=$("<div>"),m=$("<div>"),q=$("<div>"),p=!1,A=[];this.addCheckedListener=function(R){A.push(R)};this.setText=
function(R){q.text(R)};this.setChecked=function(R){R!==p&&(p=R,K(),S(!1))};this.isChecked=function(){return p};this.getJqUi=function(){l||(l=$("<div>"),l.addClass("sa-ctrl-radio"),l.on("click",H),l.append(g),l.append(q),g.css("border-radius","7px"),X.layoutCtrlWithLRTB(g,0,null,12),X.layoutCtrlMiddleAlign(g,12),m.css("border-radius","7px"),X.layoutCtrlWithLRTB(m,3,3,null,3,3,null),X.makeTextOmissible(q),X.layoutCtrlWithLRTB(q,20,0),X.layoutCtrlMiddleAlign(q,22),K());return l};this.setCustomStyle=
function(R,D){q.css(R,D)};this.protectedUpdateEnabledState=function(){K()};var K=function(){l&&(n.setUiForegroundEnabled(q,c.isEnabled()),p?(g.removeClass(),m.removeClass(),c.isEnabled()?(g.addClass("sa-ctrl-radio-outer-checked_enabled"),m.addClass("sa-ctrl-radio-inner-checked_enabled")):(g.addClass("sa-ctrl-radio-outer-checked_disabled"),m.addClass("sa-ctrl-radio-inner-checked_disabled")),m.appendTo(g)):(m.remove(),g.removeClass(),c.isEnabled()?g.addClass("sa-ctrl-radio-outer_enabled"):g.addClass("sa-ctrl-radio-outer_disabled")))},
H=function(R){c.isEnabled()&&(p=!p,K(),S(!0))},S=function(R){for(var D=0;D<A.length;D++)(0,A[D])(c,R)}};C.RadioButtonGroup=d;C.CheckBox=function(){r.call(this);var n=this.protectedMethod,c=this,l,g,m=$("<div>"),q=!1,p=!1,A=[],K=function(){l=$("<div>");l.addClass("sa-ctrl-checkbox");l.on("click",R);g=$("<div>");g.addClass("sa-ctrl-checkbox-box");g.appendTo(l);m.addClass("sa-ctrl-checkbox-text");m.appendTo(l);H();c.protectedUpdateEnabledState()};this.addCheckedListener=function(E){A.push(E)};this.setText=
function(E){m.text(E)};this.setHalfCheckable=function(E){p=E};this.setChecked=function(E){E!==q&&(q=E,H(),D(!1))};this.isChecked=function(){return q};this.isCheckedUnsure=function(){return p&&null===q};this.getJqUi=function(){l||K();return l};this.setCustomStyle=function(E,L){m.css(E,L)};this.protectedUpdateEnabledState=function(){l&&(n.setUiForegroundEnabled(m,c.isEnabled()),S())};var H=function(){g&&(g.text(null===q?"?":""),ua.background(g,q?"checkbox":null),S())},S=function(){g.removeClass("sa-ctrl-checkbox-checked_enabled");
g.removeClass("sa-ctrl-checkbox-checked_disable");g.removeClass("sa-ctrl-checkbox-unchecked_enabled");g.removeClass("sa-ctrl-checkbox-unchecked_disable");q&&c.isEnabled()?g.addClass("sa-ctrl-checkbox-checked_enabled"):q&&!c.isEnabled()?g.addClass("sa-ctrl-checkbox-checked_disable"):!q&&c.isEnabled()?g.addClass("sa-ctrl-checkbox-unchecked_enabled"):q||c.isEnabled()||g.addClass("sa-ctrl-checkbox-unchecked_disable")},R=function(E){c.isEnabled()&&(q=p?null===q?!0:q?!1:null:!q,H(),D(!0))},D=function(E){for(var L=
0;L<A.length;L++)(0,A[L])(c,E)};K()};C.ComboBox=function(){r.call(this);h.call(this);var n=this.protectedMethod,c=this,l=[],g,m,q=$("<div>"),p,A,K,H,S,R=[],D,E=!1;this.setItemModels=function(P,F){K=F;l=P;S=null};this.setSelected=function(P){g=P;qa();S&&ma()};this.getSelected=function(){return g};this.setCustomPainter=function(P){A=P;qa();S&&la()};this.setDropdownAsLongAsPossible=function(P){E=P};this.setDropdownListener=function(P){D=P};this.addSelectedChangedListener=function(P){R.push(P)};this.getJqUi=
function(){m||L();return m};this.protectedUpdateEnabledState=function(){m&&(n.setUiBorderEnabled(m,c.isEnabled()),n.setUiBackgroundEnabled(m,c.isEnabled()),n.setUiForegroundEnabled(m,c.isEnabled()),c.isEnabled()?p.addClass("sa-ctrl-combobox-arrow_enabled"):p.removeClass("sa-ctrl-combobox-arrow_enabled"));c.protectedUpdateFeatureDisplay()};this.isChildOfPopup=function(P){return H?X.isDescendent(P,H[0]):!1};this.protectedUpdateFeatureDisplay=function(){if(m){var P=c.isShowFeature()&&c.isEnabled();p.css("display",
P?"":"none");n.setUiBorderVisible(m,c.isShowFeature())}};var L=function(){m=$("<div>");m.addClass("sa-ctrl-combobox");m.on("click",U);q.addClass("sa-ctrl-combobox-text");q.appendTo(m);p=$("<div>");p.addClass("sa-ctrl-combobox-arrow");p.appendTo(m);p.on("mouseenter",function(P){c.isEnabled()&&pa(!0)});p.on("mouseleave",function(P){c.isEnabled()&&pa(!1)});pa(!1);c.protectedUpdateEnabledState()},aa=function(){S=new B;S.setToggleSelectingEnabled(!1);S.setItemModels(l,K);ma();S.addSelectedChangedListener(function(P,
F,z){if(!oa)for(P=g,z=0<z.length?z[0]:null,c.setSelected(z),F=0;F<R.length;F++)(0,R[F])(c,P,z)});S.addPressedListener(function(P,F){G()});la()},oa=!1,ma=function(){oa=!0;S.setSelecteds(g||0===g||!1===g?[g]:[]);oa=!1},la=function(){A?S.setCustomItemPainter(function(P,F){A(!1,P,F)}):S.setCustomItemPainter(null)},pa=function(P){var F=H?"arrow-up":"arrow-down";P&&(F+="_hover");ua.background(p,F)},qa=function(){q.empty();A?A(!0,q,g):q.text(g||0===g||!1===g?g:"")},U=function(P){if(c.isEnabled())if(H)G();
else{S||aa();P=$(document.body);var F=m.outerHeight(),z=m.outerWidth(),I=[0,F-1];I=X.upwardCoordinate(m[0],I,P[0]);F=I[0];var u=I[1];I=P.prop("clientHeight");var N=Math.min(20*Math.max(1,Math.min(l.length,E?65535:10))+2,(I>>1)-10);u+N>I&&(I=[0,0],I=X.upwardCoordinate(m[0],I,P[0]),I=I[1]-N+1,0<=I&&(u=I));H=$("<div>");H.addClass("sa-ctrl-common-popup");H.addClass("sa-ctrl-common-unselectable");H.css("position","absolute");H.css("left",F+"px");H.css("top",u+"px");H.css("width",z+"px");H.css("height",
N+"px");H.appendTo(P);z=S.getJqUi();z.appendTo(H);z.css("position","absolute");z.css("left","0px");z.css("top","0px");z.css("width","100%");z.css("height","100%");S.scrollSelectedToVisible();P.on("mousedown",M);P.on("mousewheel",J);pa(!1);D&&D(c,!0)}},G=function(){if(H){var P=$(document.body);P.off("mousedown",M);P.off("mousewheel",J);H.detach();H=null;pa(!1);D&&D(c,!1)}},J=function(P){X.isDescendent(P.target,S.getJqUi()[0])||G()},M=function(P){m.is(":visible")&&(X.isDescendent(P.target,m[0])||X.isDescendent(P.target,
H[0]))||G()}};C.SplitPane=w;C.Label=function(n){r.call(this);var c=this.protectedMethod,l,g=$("<div>");g.text(n);g.addClass("sa-ctrl-label-text");c.setUiForegroundEnabled(g,!0);this.getJqUi=function(){l||(l=$("<div>"),l.append(g));return l};this.setEnabled=function(m){c.setUiForegroundEnabled(g,m)};this.setText=function(m){g.text(m)};this.getText=function(){return g.text()}};C.DesktopMessageDialog=v;C.AbstractModalDialogWithSearchBox=function(){e.call(this);var n=this.protectedMethod;n.setDialogCtrlClass(b);
this.protectedMethod.setSearchListener=function(c){n.getDialogCtrl().setSearchListener(c)}};C.DragDropTool=function(){var n=[],c,l,g,m,q,p,A,K,H,S=0,R,D,E,L,aa=!1;new ka;var oa=!1,ma=!1;this.setJqArrTarget=function(U){n=U};this.addJqTarget=function(U){la(U);n.push(U)};this.setFunLongTouch=function(U){K=U};this.setFunMoveEnd=function(U){H=U};this.setMoveItemClassName=function(U){p=U};this.setScrollClassName=function(U){A=U};this.init=function(){if(0<n.length)for(var U in n)la(n[U])};var la=function(U){var G=
new ka,J,M=!1,P,F;U.on(G.start(),function(u){"undefined"!=typeof u.touches&&1<u.touches.length||(F=setTimeout(function(){q=$("."+A);ra.isMobile()||(q.on(G.move(),z),q.on(G.end(),I));if(!K||K($(u.currentTarget)))if(c=$(u.currentTarget).parents().filter("."+p),m=c.parents().eq(0),c[0]&&m[0]&&q[0]){M=!0;var N=c[0].getBoundingClientRect();E=N.height;S=ra.isMobile()?u.originalEvent.targetTouches[0].pageY:G.getMousePos(u)[1];P=S-N.top;D=q.scrollTop();l=c.clone(!0);l.insertBefore(c);l.empty();l.css("height",
E+"px");var ha=c.css("margin-left");ha=ha?parseInt(ha,10):0;g=c.detach();g.css("left",N.left-ha);g.css("top",N.top);g.css("width",N.width);g.css("opacity","0.8");g.css("position","fixed");g.css("zIndex","100000");g.addClass("order-choose");g.appendTo($(document.body));J=setInterval(function(){pa();var ba=c[0].getBoundingClientRect();ba=L?ba.bottom+2:ba.top-2;var ia=q[0].getBoundingClientRect();ba=ba<ia.top?-1:ba>ia.bottom?1:0;oa=!1;ia=m[0].getBoundingClientRect();var W=g[0].getBoundingClientRect().top;
ia=W>=ia.top&&W+E<=ia.bottom?!0:!1;ba&&ia?(D+=10*ba,q.scrollTop(D),oa=!0,ma=!1):ia||ma||(D+=40*ba,q.scrollTop(D),ma=oa=!0)},15)}},400))});U.on(G.move(),function(u){z(u)});U.on(G.end(),function(u){I(u)});var z=function(u){ra.isMobile()&&clearTimeout(F);if("undefined"!=typeof u.buttons&&0===u.buttons)I(u);else if(R=ra.isMobile()?u.originalEvent.targetTouches[0].pageY:G.getMousePos(u)[1],M)if("undefined"!=typeof u.touches&&1<u.touches.length)I(u);else{clearTimeout(F);u.preventDefault();L=0>R-S?!1:!0;
var N=m[0].getBoundingClientRect();u=aa?R-P:g[0].getBoundingClientRect().top;aa=!0;if(u>=N.top-0&&u+E<=N.bottom+0){var ha=q[0].getBoundingClientRect();u>=ha.top-0&&u+E<=ha.bottom+0&&(aa=!1,u=Math.max(ha.top-2,N.top),N=Math.min(ha.bottom+2,N.bottom),ha=R-P,ha<u&&(ha=u,aa=!0),ha+E>N&&(ha=N-E,aa=!0),g.css("top",ha+"px"))}pa()}},I=function(u){clearTimeout(F);clearInterval(J);q&&!ra.isMobile()&&(q.unbind(G.move(),z),q.unbind(G.end(),I));if(M){g.removeClass("order-choose");g.css("top","0px");g.css("left",
"0px");g.css("opacity","1");g.css("position","relative");g.insertBefore(l);l.remove();u=m.find("."+p);for(var N=0;N<u.length;N++){var ha=u.get(N);$(ha).css("transition","unset");$(ha).css("transform","unset")}H&&H(g);q=null;M=!1}}},pa=function(){var U=g[0].getBoundingClientRect();if(L){var G=l.next();if(G[0]){var J=G[0].getBoundingClientRect().top+E/2;U.bottom>=J&&(qa(l,G,L),S=R)}}else G=l.prev(),G[0]&&(J=G[0].getBoundingClientRect().top+E/2,U.top<=J&&(qa(l,G,L),S=R))},qa=function(U,G,J){if(U&&G&&
U!=G){var M=G[0].getBoundingClientRect().top;J?U.insertAfter(G):U.insertBefore(G);U=oa?10:200;J=G[0].getBoundingClientRect().top;G.css("transition","none");G.css("transform","translate3d(0,"+(M-J)+"px,0)");""!=G[0].offsetWidth&&(G.css("transition","all "+U+"ms"),G.css("transform","translate3d(0,0,0)"))}}};C.PullDownToRefresh=function(){var n,c,l,g=!0,m=!1,q=!0,p,A,K;this.bindTarget=function(D){ra.isMobile()&&(n=D,l=$("<div>"),l.addClass("lapp-pull-to-refresh-text"),l.text(V.get("pullDownToRefresh",
"\u4e0b\u62c9\u5237\u65b0")),l.css("display","none"),n.before(l),H(D))};this.bindTriggerRef=function(D){c=D};this.setFunRefresh=function(D){p=D};this.enable=function(D){g=D};var H=function(D){var E=new ka,L,aa,oa=!1,ma=!1,la=!1;D.on(E.start(),function(pa){aa=E.getMousePos(pa)[1];L=0;la=!0});D.on(E.move(),function(pa){if(g&&!m&&la){oa&&"iOS"!=ra.getOS()&&pa.cancelable&&pa.preventDefault();var qa=E.getMousePos(pa)[1]-aa;0<=qa&&(L+=Math.ceil(.4*qa));0>qa&&(L+=Math.floor(.4*qa));0>L&&(L=0);aa=E.getMousePos(pa)[1];
if(0==(c?c:n).scrollTop()||oa)q&&("undefined"==typeof K&&(K=n[0].getBoundingClientRect().top-l.parent()[0].getBoundingClientRect().top-48),l.css("top",K+"px"),q=!1),oa=!0,l.css("display",""),S("transform 0s","translateY("+L+"px)"),65<L?(l.text(V.get("releaseToRefresh","\u677e\u624b\u5237\u65b0")),ma=!0):(l.text(V.get("pullDownToRefresh","\u4e0b\u62c9\u5237\u65b0")),ma=!1)}});D.on(E.end(),function(pa){oa&&(ma?(l.text(V.get("refreshing","\u5237\u65b0\u4e2d...")),p&&p(R),m=!0,A=setTimeout(function(){R(!1)},
3E3)):S("transform 0.3s","translateY(0px)"));la=oa=!1;q=!0})},S=function(D,E){n.css("transition",D);n.css("transform",E);l.css("transition",D);l.css("transform",E)},R=function(D){m=!1;clearTimeout(A);l.on("transitionend",function(){l.css("top",K+"px");l.text(V.get("PullDownToRefresh","\u4e0b\u62c9\u5237\u65b0"));l.css("display","none")});S("transform 0.8s","translateY(0px)");var E=new ca;D?E.show(V.get("refreshSuccess","\u5237\u65b0\u6210\u529f"),1E3):E.show(V.get("refreshFailed","\u5237\u65b0\u5931\u8d25"),
1E3)}};C.Spinner=O;var na,Y,Q,V,X,ja,ra;(function(){var n=com.kingdee.bos.qing.lapp.framework.common;na=n.Resource;Y=n.AbstractMobileIcons;Q=n.AbstractIcons;V=n.MultilanguageManager.createPackageAccessor(C);n=com.kingdee.bos.qing.common;ja=n.Util;X=n.DomUtil;n=com.kingdee.bos.qing.lapp.integration;ra=n.EnvUtil})();var wa=new function(){Y.call(this);var n=this.protectedMethod;this.protectedInit=function(l,g){g.setFilePath("qing-lapp/core/resource/analysis.png");g.setFileSize(1534,50);c(0,0,"btn_list");
c(-32,0,"btn_listing");c(-64,0,"icon_back");c(-116,0,"icon_follow");c(-156,0,"icon_followed");c(-196,0,"btn_analysis");c(-238,0,"btn_analysis_selected");c(-280,0,"btn_comm");c(-332,0,"btn_comm_selected");c(-384,0,"icon_checkbox_unchecked");c(-424,0,"icon_checkbox_checked");c(-464,0,"btn_message");c(-498,0,"btn_unread_message");c(-538,0,"btn_edit");c(-570,0,"btn_editing");c(-602,0,"btn_delete_comment");c(-730,0,"icon_down");c(-744,0,"icon_up");c(-759,0,"card_view");c(-796,0,"list_view");c(-833,0,"icon_longer");
c(-870,0,"icon_square");c(-907,0,"icon_dsb");c(-944,0,"list_dir_close");c(-981,0,"list_dir_open");c(-1018,0,"icon_info");c(-1055,0,"icon_small_checkbox_checked");c(-1092,0,"icon_small_checkbox_unchecked");c(-1129,0,"icon_small_checkbox_unable");c(-1166,0,"icon_checkbox_unable");c(-1207,0,"checkbox");c(-1232,0,"arrow-down");c(-1232,0,"arrow-down_hover");c(-1265,0,"arrow-up");c(-1265,0,"arrow-up_hover");c(-1298,0,"icon_add_2");c(-1331,0,"icon_edit_2");c(-1364,0,"icon_delete_2");c(-1398,0,"icon_question");
c(-1434,0,"icon_bulb");c(-1465,0,"icon_group");c(-1510,0,"icon_close");g.setFilePath("qing-lapp/core/resource/logo_product_type.png");g.setFileSize(1261,50);c(0,0,"logo_normal");c(-220,0,"logo_ierp");c(-440,0,"logo_k3cloud");c(-660,0,"logo_kis");c(-880,0,"logo_eas");c(-1100,0,"logo_jdy");g.setFilePath("qing-lapp/core/resource/directory_editor.png");g.setFileSize(150,38);c(0,0,"icon_add");c(-38,0,"icon_delete");c(-76,0,"icon_order");c(-114,0,"icon_sort");g.setFilePath("qing-lapp/core/resource/icon_fullscreen.png");
g.setFileSize(28,28);c(0,0,"icon_fullscreen");g.setFilePath("qing-lapp/core/resource/icon_refresh.png");g.setFileSize(28,28);c(0,0,"icon_refresh");g.setFilePath("qing-lapp/core/resource/icon_nofollow.png");g.setFileSize(270,198);c(0,0,"icon_nofollow");g.setFilePath("qing-lapp/core/resource/icon_toggle.png");g.setFileSize(50,50);c(0,0,"icon_toggle");g.setFilePath("qing-lapp/core/resource/icon_demo.png");g.setFileSize(78,112);c(0,0,"icon_demo");g.setFilePath("qing-lapp/core/resource/icon_no_data.png");
g.setFileSize(364,364);c(0,0,"icon_no_data");g.setFilePath("qing-lapp/core/resource/icon_no_message.png");g.setFileSize(396,180);c(0,0,"icon_no_message")};var c=function(l,g,m){n.registIcon(l,g,m)}};C.MobileIcons=wa;var ua=new function(){Q.call(this);var n=this.protectedMethod;this.protectedInit=function(q,p){m(p,"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");m(p,"common");l(0,0,"arrow-down");l(0,1,"arrow-up");l(0,2,"checkbox");l(0,3,"calendar");l(0,4,"editor");l(0,5,"delete");l(0,6,"tree-collapsed");l(0,7,"tree-expanded");l(3,6,"icon_info");l(3,7,"question");l(3,8,"dropdown-menu");c(3,0,"verified-right");c(3,1,"verified-wrong");l(6,0,"menu-radio-checked");l(7,0,"menu-radio-unchecked");l(6,1,"menu-checkbox-checked");l(7,1,"menu-checkbox-unchecked");m(p,"tm");g(1,0,"btn-add");g(1,1,"btn-import");g(1,2,"btn-export");g(1,3,"btn-edit");
g(1,4,"btn-delete");g(1,5,"btn-dsb");g(1,6,"btn-longer");g(1,7,"btn-square");g(1,8,"btn-data");g(1,9,"btn-moving");g(1,10,"btn-copy");g(1,11,"btn-program");c(3,0,"icon-dir");m(p,"icon_nofollow");c(0,0,"icon_nofollow");m(p,"icon_search_hover");c(0,0,"icon_search_hover")};var c=function(q,p,A){n.registIcon(q,p,A)},l=function(q,p,A){c(q,p,A);c(q+1,p,A+"_hover")},g=function(q,p,A){c(q,p,A);c(q-1,p,A+"_hover")},m=function(q,p){q.setStartPosition(1,1);q.setGap(1);switch(p){case "common":q.setFilePath("qing-lapp/core/resource/common.png");
q.setIconSize(16,16);break;case "msg":q.setFilePath("qing-lapp/core/resource/msg.png");q.setIconSize(100,80);break;case "tm":q.setFilePath("qing-lapp/core/resource/tm.png");q.setIconSize(16,16);break;case "icon_nofollow":q.setFilePath("qing-lapp/core/resource/icon_nofollow.png");q.setIconSize(135,99);break;case "icon_search_hover":q.setFilePath("qing-lapp/core/resource/icon_search_hover.png");q.setIconSize(16,16);break;default:throw Error("Unknow key: "+p);}}};C.Icons=ua;var T=new function(){var n;
this.callUntilVisible=function(c){$(document.body).is(":visible")?(n=null,c()):(n&&n.unobserve(),n=new WindowResizeObserver,n.setCallback(function(){n.unobserve();c()}),n.observe())}},Da=new function(){this.cleanText=function(n){ja.cleanInvalidChar(n.val(),function(c){var l=n[0].selectionStart;l="number"==typeof l?Math.min(c.length,Math.max(0,l-2)):c.length;n.val(c);n[0].setSelectionRange(l,l)})}};C.Toast.LENGTH_SHORT=2E3;C.Toast.LENGTH_LONG=3500;ea.AbstractTabPane=function(){this.getJqUi=function(){};
this.into=function(){}};Z.AbstractModel=function(){this.getName=function(){throw Error("Override me.");}};da.Element=function(){this.isChecked=function(){throw Error("Override me.");};this.setChecked=function(n){throw Error("Override me.");};this.addCheckedListener=function(n){throw Error("Override me.");}};f.TYPE_SUCCESS=1;f.TYPE_PROMPT=2;f.TYPE_ERROR=3;var ya=new function(){var n=[0,0,0,0];this.getFullScreenPadding=function(){return n};this.setFullScreenPadding=function(c,l,g,m){n=[c,l,g,m]}};t.setFullScreenPadding=
ya.setFullScreenPadding;d.Element=function(){this.isChecked=function(){throw Error("Override me.");};this.setChecked=function(n){throw Error("Override me.");};this.addCheckedListener=function(n){throw Error("Override me.");}};B.undressItem=function(n){n.removeClass("sa-ctrl-list-item")};w.RESIZE_MODE_FIRST_FIXED=0;w.RESIZE_MODE_SECOND_FIXED=1;w.RESIZE_MODE_RATIO=2;w.Child=function(){this.getJqUi=function(){throw Error("Implement me.");};this.resize=function(n){throw Error("Implement me.");}};w.createChildWrapper=
function(n,c){return new function(){this.getJqUi=function(){return n instanceof $?n:n.getJqUi()};this.resize=function(l){c&&c(l)}}};v.RETURN_OK=1;v.RETURN_CANCEL=2;v.RETURN_YES=4;v.RETURN_NO=8;v.OPTION_OK=v.RETURN_OK;v.OPTION_OK_CANCEL=v.RETURN_OK|v.RETURN_CANCEL;v.OPTION_YES_NO=v.RETURN_YES|v.RETURN_NO;v.OPTION_YES_NO_CANCEL=v.RETURN_YES|v.RETURN_NO|v.RETURN_CANCEL;v.MSG_CONFIRM=257;v.MSG_DELETE=258;v.MSG_SAVE=259;v.MSG_WARNING=513;v.MSG_JURISDICTION=514;v.MSG_WRONG=769;v.createFeedbackDialog=function(){return new x};
O.CHANGED_BY_API=0;O.CHANGED_BY_MANUAL_ADJUST=1;O.CHANGED_BY_MANUAL_EDIT=2})();(function(){"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.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.common&&(com.kingdee.bos.qing.lapp.common={});"undefined"==typeof com.kingdee.bos.qing.lapp.common.ui&&(com.kingdee.bos.qing.lapp.common.ui={});var ca=com.kingdee.bos.qing.lapp.common.ui,
ea,Z,fa,da,ka,y,r;(function(){var k=com.kingdee.bos.qing.common;ea=k.DomUtil;Z=k.TextMeasurer;k=com.kingdee.bos.qing.lapp.component;da=k.InfoDialog;k=com.kingdee.bos.qing.lapp.model;ka=k.Analysis;k=com.kingdee.bos.qing.lapp.framework.common;y=k.Resource;fa=k.MultilanguageManager.createPackageAccessor(ca);k=com.kingdee.bos.qing.lapp.integration;r=k.RemoteFrameworkUtil})();ca.CommonUiUtil=new function(){this.getThumbnailImgPath=function(f){(f=k(f))||(f=y.getUrl("qing-lapp/core","icon_chart_dsb.png"));
return f};var k=function(f){var t;f.getLargeThumbnail()?t=r.createDownloadImageUrl(f.getLargeThumbnail()):f.getViewType()!=ka.VIEW_TYPE_DASHBOARD&&(t=y.getUrl("qing-lapp/core","icon_chart.png"));return t};this.showAnalysisInfoDialog=function(f){var t=new Z;t.setFontSize(15);var e=300,b=f.getDesc()?f.getDesc():fa.get("noDesc","\u6682\u65e0\u63cf\u8ff0"),a=fa.get("desc","\u63cf\u8ff0\uff1a"),d=b;260<t.measureWidth(a+d)&&(e+=18);var h=new da;h.setWidth(300);h.setHeight(e);h.setTitle(f.getName());h.setContentCreator(function(){for(var B=
$("<div>"),w=!1;!(520>t.measureWidth(a+d)+t.measureWidth("..."));)w&&(d=d.substring(0,d.length-3)),d=d.substring(0,d.length-1),d+="...",w=!0;w=$("<div>");w.addClass("lapp-info-analysis-text");w.appendTo(B);var v=$("<span>");v.css("font-weight","700");v.text(a);v.appendTo(w);v=$("<span>");v.text(d);v.attr("title",b);v.appendTo(w);w=$("<div>");w.addClass("lapp-info-analysis-text");w.css("font-weight","700");w.text(fa.get("thumbnail","\u7f29\u7565\u56fe\uff1a"));w.appendTo(B);w=$("<div>");v=k(f);"dashboard_thumbnail.png"!=
f.getLargeThumbnail()&&v||(v=y.getUrl("qing-lapp/core","icon_chart_dsb_not_click.png"));w.addClass("lapp-info-analysis-thumbnail");w.css("background-image","url("+v+")");w.appendTo(B);w=$("<div>");w.addClass("lapp-info-analysis-text");ea.makeTextOmissible(w);w.appendTo(B);v=fa.get("bottomAnnotation","\u5e95\u90e8\u5907\u6ce8\uff1a");var x=$("<span>");x.text(v);x.css("font-weight","700");x.appendTo(w);v=f.getBottomAnnotation()?f.getBottomAnnotation():fa.get("noBottomAnnotation","\u6682\u65e0\u5e95\u90e8\u5907\u6ce8");
x=$("<span>");x.text(v);x.attr("title",v);x.appendTo(w);return B});h.showDialog()};this.highLightbyKeyword=function(f,t,e,b){f.text("");for(var a=0;;){var d=$("<span>"),h=a;a=t.toLocaleLowerCase().indexOf(e,a);if(-1==a){d.text(t.substr(h));d.appendTo(f);break}else d.text(t.substr(h,a-h)),d.appendTo(f),d=$("<span>"),b?d.css("color",b):d.addClass("lapp-card-title-keyword"),d.text(t.substr(a,e.length)),d.appendTo(f),a+=e.length}}}})();
//qingVersionTag: 20250415