var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(A,H,J){A instanceof String&&(A=String(A));for(var R=A.length,O=0;O<R;O++){var W=A[O];if(H.call(J,W,O,A))return{i:O,v:W}}return{i:-1,v:void 0}};$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(A,H,J){if(A==Array.prototype||A==Object.prototype)return A;A[H]=J.value;return A};$jscomp.getGlobal=function(A){A=["object"==typeof globalThis&&globalThis,A,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<A.length;++H){var J=A[H];if(J&&J.Math==Math)return J}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(A,H){var J=$jscomp.propertyToPolyfillSymbol[H];if(null==J)return A[H];J=A[J];return void 0!==J?J:A[H]};
$jscomp.polyfill=function(A,H,J,R){H&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(A,H,J,R):$jscomp.polyfillUnisolated(A,H,J,R))};$jscomp.polyfillUnisolated=function(A,H,J,R){J=$jscomp.global;A=A.split(".");for(R=0;R<A.length-1;R++){var O=A[R];if(!(O in J))return;J=J[O]}A=A[A.length-1];R=J[A];H=H(R);H!=R&&null!=H&&$jscomp.defineProperty(J,A,{configurable:!0,writable:!0,value:H})};
$jscomp.polyfillIsolated=function(A,H,J,R){var O=A.split(".");A=1===O.length;R=O[0];R=!A&&R in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var W=0;W<O.length-1;W++){var ra=O[W];if(!(ra in R))return;R=R[ra]}O=O[O.length-1];J=$jscomp.IS_SYMBOL_NATIVE&&"es6"===J?R[O]:null;H=H(J);null!=H&&(A?$jscomp.defineProperty($jscomp.polyfills,O,{configurable:!0,writable:!0,value:H}):H!==J&&(void 0===$jscomp.propertyToPolyfillSymbol[O]&&(J=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[O]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(O):$jscomp.POLYFILL_PREFIX+J+"$"+O),$jscomp.defineProperty(R,$jscomp.propertyToPolyfillSymbol[O],{configurable:!0,writable:!0,value:H})))};$jscomp.polyfill("Array.prototype.find",function(A){return A?A:function(H,J){return $jscomp.findInternal(this,H,J).v}},"es6","es3");
(function(){function A(){com.kingdee.bos.qing.framework.common.AbstractRemoteCall.call(this);var l,q,w;this.getRemoteUrl=function(t){t.skin=w;t.tag=q;return l};this.setRemoteUrl=function(t){l=t};this.setTag=function(t){q=t};this.setSkinName=function(t){w=t}}function H(){var l=this;this.getParamLanguage=function(){return l.getUrlParam("language")};this.getParamPathPrefix=function(){return l.getUrlParam("path")};this.getParamTag=function(){return l.getUrlParam("tag")};this.getUrlParam=function(q){return com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,
q)}}function J(){var l,q,w,t,n,h,d,u,x;(function(){var e=com.kingdee.bos.qing;l=e.CodeLoader;e=com.kingdee.bos.qing.common;q=e.DomUtil;e=com.kingdee.bos.qing.core;w=e.Facade;e=com.kingdee.bos.qing.core.model;t=e.ModelBook;n=e.AbstractAnalyticalField;e=com.kingdee.bos.qing.core.controller;h=e.CommandManager;e=com.kingdee.bos.qing.longer.model;d=e.AnalyticalModel;u=e.FilterFieldSet;e=com.kingdee.bos.qing.longer.ui;x=e.ExecutedArea})();var B=this,m,D,C,v,M,E,I,P,K=[],g,f,c,r;this.show=function(e){e=
$(e?e:document.body);D=$("<div>");D.appendTo(e);D[0].addEventListener("contextmenu",function(F){F.ctrlKey&&(F.preventDefault(),B.protectedDisplayConsumingStatistics(B.protectedGetRemoteTag()))},!0);q.layoutCtrl(D,0,0,"100%","100%");C=$("<div>");C.appendTo(e);q.layoutCtrl(C,0,0,"100%","100%");f=new O;f.bindParentJqUi(C);l.setCallback(function(){M=new h;v=new x;v.setContextGetter(na());v.getJqUi().appendTo(D);q.layoutCtrl(v.getJqUi(),0,0,"100%","100%");ea();B.protectedInitMode();B.protectedCustomInitEnv();
B.protectedLoadingImpl(U)});X.CommonCodeImporter.importSkin(l);X.CommonCodeImporter.importI18n(l);B.protectedImportMoreCode(l)};this.displayError=function(e,F,N){Y(!1);ka([e,F,N])};this.displayActionPrompt=function(e,F){var N=new sa;N.setPromptText(F);N.show(e)};this.destroy=function(){v.destroy();r=c=null};this.setExecutedListener=function(e){c=e};this.setFilteringListener=function(e){r=e};this.redraw=function(){ea()};this.protectedGetRemoteUrl=function(){throw Error("Override");};this.protectedGetRemoteTag=
function(){throw Error("Override");};this.protectedImportMoreCode=function(e){};this.protectedInitMode=function(){};this.protectedCustomInitEnv=function(){};this.protectedLoadingImpl=function(e){throw Error("Override");};this.protectedGetSkinName=function(){return"white"};this.protectedIsBlockingRemoteCall=function(){return!0};this.protectedShowErrorImpl=function(e,F,N,ca){return!1};this.protectedDisplayConsumingStatistics=function(e){throw Error("Override");};var G=function(){m||(m=new A,m.setRemoteUrl(B.protectedGetRemoteUrl()));
m.setTag(B.protectedGetRemoteTag());m.setSkinName(B.protectedGetSkinName());return m},U=function(e,F){var N=new t;N.fromJsonObject(e,new W);e=N.getModelPages()[0];E=N.getMeta();I=e.getModel();P=e.getPreferences();g=F;F=P.getExhibitionStatus();v.getExhibition().applyStatus(F);I.addModelChangedListener(aa);ia();return N},aa=function(e){e.isContainKeys([d.KEY_SORTING_LANE,n.KEY_SORT])&&v.getExhibition().keepScrollStatus(!0);e.isContainKey(u.KEY_FILTER_VALUE,I.getFilterFieldSet())&&(e=e.getTargetField(I.getFilterFieldSet(),
u.KEY_FILTER_VALUE),K.push(e));M.untilWakeup(Z)},Z=function(){0<=oa()?ja():la()};this.reExecute=function(){return I?(ia(),!0):!1};this.executeWithoutRendering=function(e,F){var N;v.getExhibition().setRenderingInterceptor(function(ba){N=ba;F(null,null)});var ca=I?!0:!1;ca&&ia();e(ca,function(ba,da){N()})};var la=function(){v.execute(function(e,F,N){e?(Y(!0),f.setErrorOccurred(!1)):(Y(!1),f.bindRetry(this,la,[]),ka(F));c&&c(e)})},ja=function(){v.filteringExecute(oa(),function(e,F,N){e?(Y(!0),f.setErrorOccurred(!1),
K=[]):(Y(!1),f.bindRetry(this,ja,[]),ka(F));c&&c(e)});r&&r()},ia=function(){v.christmasExecute(!0,function(e,F,N){e?(Y(!0),f.setErrorOccurred(!1),K=[]):(Y(!1),f.bindRetry(this,ia,[]),ka(F));c&&c(e)})},oa=function(){for(var e=K.length-1;0<=e;e--){var F=K[e];F=I.getFilterFieldSet().getIndex(F);if(0<=F)return F}return-1},pa=function(e,F,N){e=new w(G(),e,F,N);B.protectedIsBlockingRemoteCall()?(e.setShowBlocking(!0),e.setBlockingJqUi(D.parent())):e.setShowBlocking(!1);return e},ea=function(){v.resize();
I&&v.refreshRightLanes()},Y=function(e){e?(D.css("display",""),C.css("display","none")):(D.css("display","none"),C.css("display",""))},ka=function(e){C.empty();var F=e[0],N=e[1];e=e[2];f.setErrorOccurred(!0);f.highPriorityHandler(F,N)||B.protectedShowErrorImpl(C,F,N,e)||f.lowPriorityHandler(F,N,e)},fa=function(){return g?g():null},qa=function(){return I},ha=function(e){B.protectedLoadDesignerOperationJudger(function(F){e(F)})};this.protectedLoadDesignerOperationJudger=function(e){throw Error("Override");
};var na=function(){return{createFacade:pa,getTopJqUi:function(){return D},getCommandManager:function(){return M},getMeta:function(){return E},getAnalyticalModel:qa,getPreferences:function(){return P},getAdditionalFilterApi:fa,loadDesignerOperationJudger:ha,getBlockingJqUi:function(){return D.parent()}}};this.executeOutputParamValue=function(e,F,N,ca){var ba=null;e==I&&(ba=(ba=fa())?ba.toExecutableJsonObject():null);var da=new w(G(),function(a){ca(a)},function(a,k,y){console&&console.warn("executeOutputParamValue error. "+
a+", "+k);ca(null)});da.setShowBlocking(!1);da.setCancelable(!0);da.executeBriefOutput(E,e,F,ba,N)};this.protectedMethod={createFacade:pa,resize:ea}}function R(){var l,q,w,t,n,h,d,u,x,B;(function(){var a=com.kingdee.bos.qing;l=a.CodeLoader;a=com.kingdee.bos.qing.core;q=a.Facade;w=a.UserOperationReporter;a=com.kingdee.bos.qing.core.commonui;t=a.LongtimeWaitingMask;n=a.ExecutingProgressParser;a=com.kingdee.bos.qing.core.model;h=a.ModelBook;d=a.ModelPage;u=a.AbstractFilterPreparedModel;a=com.kingdee.bos.qing.square.ui;
x=a.ExhibitionContent;B=a.ChartTypeFactory})();var m=this,D,C,v,M,E,I,P,K=new x,g,f,c=!1,r,G,U,aa=!1,Z,la,ja=function(){D||(D=new A,D.setRemoteUrl(m.protectedGetRemoteUrl()));D.setTag(m.protectedGetRemoteTag());D.setSkinName(m.protectedGetSkinName());return D};this.show=function(a){a=$(a?a:document.body);a.css("overflow","hidden");P=$("<div style='position:absolute; top:0; left:0; width:100%; height:100%'; overflow:hidden>");P.appendTo(a);P.on("contextmenu",function(k){k.ctrlKey&&(k.preventDefault(),
m.protectedDisplayConsumingStatistics(m.protectedGetRemoteTag()))});f=new O;f.bindParentJqUi(P);l.setCallback(function(){m.protectedInitMode();m.protectedCustomInitEnv();ia();m.protectedLoadingImpl(pa)});X.CommonCodeImporter.importSkin(l);X.CommonCodeImporter.importI18n(l);m.protectedImportMoreCode(l)};this.displayError=function(a,k,y){da(a,k,y)};this.displayActionPrompt=function(a,k){var y=new sa;y.setPromptText(k);y.show(a)};this.protectedGetRemoteTag=function(){throw Error("Override");};this.protectedInitMode=
function(){};this.protectedBlockingAllFrame=function(){};this.protectedGetRemoteUrl=function(){throw Error("Override");};this.protectedImportMoreCode=function(a){};this.protectedCustomInitEnv=function(){};this.protectedLoadingImpl=function(a){throw Error("Override");};this.protectedDrawCustomLegend=function(a,k){};this.protectedGetSkinName=function(){return"white"};this.protectedDisplayConsumingStatistics=function(a){throw Error("Override");};this.setPredrawListener=function(a){K.setPredrawListener(a)};
this.setExecutedListener=function(a){r=a};this.setFilteringListener=function(a){G=a};this.setSelectionListener=function(a){K.setSelectionListener(a)};this.setCosmeticHandler=function(a){K.setCosmeticHandler(a)};this.hookExecutingWaitingImpl=function(a){U=a};var ia=function(){K.setContextApi({getDependentMeta:fa,getSquareModel:qa,getJsonAdditionalFilters:Y,createFacade:function(a,k){k=k?k:da;a=new q(ja(),a,k);oa(a);return a}})},oa=function(a){var k=m.protectedBlockingAllFrame();null===k?a.setShowBlocking(!1):
(a.setShowBlocking(!0),a.setBlockingJqUi(k?$(document.body):P.parent()))},pa=function(a,k,y){E=k;I=y;k=new h;k.fromJsonObject(a,new W);v=k.getModelPages()[0].getModel();C=k.getMeta();M=null;v.addModelChangedListener(function(L){K.getCommandManager().untilWakeup(function(){ha()})});ha(Z);Z=null;return k},ea=function(){var a=E?E():null;return a?a.toDisplayJsonObject():null},Y=function(){var a=E?E():null;return a?a.toExecutableJsonObject():null},ka=function(){var a=v.getChart();a=a.getChartProperty().getPalette()?
null:a.getChartTypeName();return I?I(a):null},fa=function(a){var k=(k=E?E():null)?k.toMetaFieldNames():null;var y=[];a&&(y=y.concat(a));k&&(y=y.concat(k));return v.createDependentMeta(C,y)},qa=function(){return v};this.reExecute=function(){return v?(ha(),!0):!1};this.executeWithoutRendering=function(a,k){var y=v?!0:!1;y?ha(k):Z=k;a(y,function(L,T){L?(L=T[0],f.setErrorOccurred(!1),P.empty(),e(L),r&&r(!0)):(da(T[0],T[1],T[2]),r&&r(!1))})};var ha=function(a){var k=(new Date).getTime();la=k;var y=new q(ja(),
function(L){k<la||(a?a(!0,[L]):(f.setErrorOccurred(!1),P.empty(),e(L),r&&r(!0)))},function(L,T,b){if(!(k<la)){if(a)a(!1,[L,T,b]);else{if(-1==L&&c)return!0;f.bindRetry(this,ha,[]);da(L,T,b);r&&r(!1)}return!0}},function(){na().hideWaiting()});y.setCancelable(!0);y.setShowBlocking(!1);y.setProgressListener(function(L){na().hookWaitingProgressDisplayer(n.makeUiCreator(L))});y=y.squareExecute(fa(),v,M,Y(),ka());na().showWaiting(y)},na=function(){if(!U){var a;U={showWaiting:function(k){if(!a){var y=m.protectedBlockingAllFrame()?
$(document.body):P.parent();a=new t;a.hookOwner(y,null)}a.showWaiting(n.getWaitingText(),k)},hookWaitingProgressDisplayer:function(k){a&&a.hookProgressDisplayer(k)},hideWaiting:function(){a&&(a.hideWaiting(),a=null)}}}return U},e=function(a){aa||(c=!0,a=K.setModel(a.squareView,v.getChart()),m.protectedDrawCustomLegend(a.getChartTypeName(),a.getLegendModel()),ba())},F=function(){for(var a=v.getFilterSet().copyFiltersForSetting(),k=0;k<a.length;k++)a[k].addValueChangedListener(function(y){for(var L=
0;L<a.length;L++){var T=a[L];T!=y&&T.isJustShowAffected()&&T.innerCarryPreparedModel(null)}});return a},N=function(a,k,y,L){a=v.getFilterSet().toInsteadJson(a);var T=k.getAssociatedField(),b=new q(ja(),function(p){p=u.create(p);k.setPreparedModel(p);y(!0)},function(p,z){y(!1)});oa(b);L&&b.setBlockingJqUi(L);b.getSquareFilterPreparedValue(fa(),v,a,T)},ca=function(a){v.getFilterSet().applyFiltersFromSetting(a);ha();G&&G();w.occur(w.SQUARE_EXTRA_FILTER,1)};this.showExtraFilter=function(a){g||(g=new com.kingdee.bos.qing.core.ui.ExtraFilter,
g.setContextApi(F,N,ca));g.show(a)};this.showChartInfo=function(a){var k=new ta,y=k.askMaxSize(a);y=K.createChartInfoUi(ea(),function(){k.hide()},function(L,T){k.suggestSize(L,T)},y[0],y[1]);k.setContent(y.createJqUi());k.show(a)};this.showInsight=function(a){var k=new ta,y=k.askMaxSize(a);y=K.createInsightUi(function(){k.hide()},function(L,T){k.suggestSize(L,T)},y[0],y[1]);k.setContent(y.createJqUi());k.show(a)};this.getDescription=function(){return v.getChart().getChartProperty().getDescription()};
var ba=function(){!f.isErrorOccurred()&&c&&(g&&g.hide(),K.drawChart(P))},da=function(a,k,y){aa||(P.empty(),c=!1,f.setErrorOccurred(!0),f.highPriorityHandler(a,k)||m.protectedShowErrorImpl(P,a,k,y)||f.lowPriorityHandler(a,k,y))};this.protectedShowErrorImpl=function(a,k,y,L){return!1};this.executeOutputParamValue=function(a,k,y,L){k=a==v?Y():null;var T=new q(ja(),function(b){L(b)},function(b,p,z){console&&console.warn("executeOutputParamValue error. "+b+", "+p);L(null)});T.setShowBlocking(!1);T.setCancelable(!0);
T.executeBriefOutput(C,a,null,k,y)};this.protectedMethod={createChartInfoUi:function(a){return K.createChartInfoUi(ea(),a)},createInsightUi:function(a){return K.createInsightUi(a)},createInsightContentMaker:function(){return K.createInsightContentMaker()},changeChartType:function(a){var k=B.getInstance(a),y=B.getInstance(v.getChartTypeName());a=v.getChart().getGarbageProperties();y=y.willTransform(v.getChart());k=k.transform(y);k.setGarbageProperties(a);v.setChart(k);a=new d;a.setModel(v);a.setPreferences(M);
k=new h;k.setMeta(C);k.setModelPages([a]);return k.toJsonObject(new W)},copyFilters:F,updateFilterPreparedValue:N,filtering:ca,setTooltipsWidget:function(a){K.setTooltipsWidget(a)},setRollOutHandler:function(a){K.setRollOutHandler(a)},redraw:ba,destroy:function(){aa=!0;K.destroy();G=r=null}}}function O(){var l,q;(function(){var g=com.kingdee.bos.qing.framework.common;l=g.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.core.ui);g=com.kingdee.bos.qing.core;q=g.ErrorCodeParser})();var w=
this,t,n,h=!1,d,u,x,B=10,m;this.bindParentJqUi=function(g){t=g};this.setErrorOccurred=function(g){h=g;n&&n.remove();n=null;h||(B=10,w.bindRetry(null,null,null),clearTimeout(m))};this.isErrorOccurred=function(){return h};this.bindRetry=function(g,f,c){d=g;u=f;x=c};this.highPriorityHandler=function(g,f){clearTimeout(m);if(-1==g)return E(),!0;if(205401==g||205402==g)return I(),!0;var c=q.toDisplayText(g,f);return c?(M(c,[g,f]),!0):!1};this.lowPriorityHandler=function(g,f,c){c=l.get("cardPromptErrorOccurred",
"\u51fa\u9519\u4e86");M(c,[g,f])};var D=function(){n||(n=$("<div>"),n.addClass("sa-scene-card-errorprompt"),n.appendTo(t));return n},C=function(g){var f=$("<div>");f.addClass("sa-scene-card-errorprompt-text");f.text(g);f.appendTo(D());return f},v=function(g,f){var c=$("<span>");c.addClass("sa-scene-card-errorprompt-button");c.text(g);c.appendTo(D());c.on("click",function(r){f(c)})},M=function(g,f){C(g);v(l.get("cardPromptShowErrorDetail","\u67e5\u770b\u66f4\u591a..."),function(c){c.remove();C(" ");
for(c=0;c<f.length;c++)C(f[c])})},E=function(){v(l.get("cardPromptReExecute","\u91cd\u65b0\u6267\u884c"),function(g){clearTimeout(m);K()})},I=function(){C(l.get("cardPromptNotEnoughMemory","\u670d\u52a1\u5668\u5fd9\uff0c\u7a0d\u540e\u91cd\u8bd5..."));P(C(""));v(l.get("cardPromptTryAgainRightNow","\u7acb\u5373\u5237\u65b0"),function(g){clearTimeout(m);K()})},P=function(g){var f=B,c=function(){g.text(f);f--;0>f?(B=Math.max(1,Math.min(300,3*B)),K()):m=setTimeout(c,1E3)};c()},K=function(){D().empty();
C(l.get("cardPromptTrying","\u5c1d\u8bd5\u4e2d..."));setTimeout(function(){u.apply(d,x)},1E3)}}function W(){var l=com.kingdee.bos.qing.longer.model.AnalyticalModel,q=com.kingdee.bos.qing.longer.model.AnalyticalPreferences,w=com.kingdee.bos.qing.square.model.SquareModel,t=com.kingdee.bos.qing.square.model.SquarePreferences;this.encodeModelPageType=function(n){if(n instanceof l)n="L";else if(n instanceof w)n="S";else throw Error("Modify here.");return n};this.decodeModelPageType=function(n,h){if("L"==
n)h.setModel(new l),h.setPreferences(new q);else if("S"==n)h.setModel(new w),h.setPreferences(new t);else throw Error("Modify here.");};this.createView=function(n){var h=com.kingdee.bos.qing.core.ui.ViewConfig;if(n==h.TYPE_LongPainting)return new com.kingdee.bos.qing.longer.ui.LongPaintingDesk;if(n==h.TYPE_Square){n=com.kingdee.bos.qing.framework.common.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.square.ui);h=com.kingdee.bos.qing.square.model.PreviewSetupItem;var d=com.kingdee.bos.qing.square.ui.SquareDesk;
d.setPreviewSetupItems([new h(n.get("cardFullArea","\u5168\u753b\u9762"),-1,-1,20,20,20),new h(n.get("cardLittle","\u5361\u7247-\u5c0f\u5de7"),314,210,40,10,20),new h(n.get("cardFat","\u5361\u7247-\u4e30\u8174"),628,210,40,10,20),new h(n.get("cardThin","\u5361\u7247-\u82d7\u6761"),314,420,40,10,20),new h(n.get("cardBig","\u5361\u7247-\u58ee\u7855"),628,420,40,10,20)]);return new d}throw Error("Modify here.");}}function ra(){var l=com.kingdee.bos.qing.common.DomUtil,q=$("<div>"),w,t,n;this.addTabPanel=
function(d){var u=$("<div>");u.addClass("sa-scene-tab-head");u.appendTo(q);u.on("click",function(m){t=d;h(u)});l.makeSelectable(u,!1);var x=d.getTitle(),B=$("<div>");B.addClass("sa-scene-tab-head-text-"+(128>x.charCodeAt(0)?"en":"cn"));B.text(x);B.appendTo(u)};this.setCurrentTabPanel=function(d){t=d};this.initUi=function(d){w=$("<div>");w.addClass("sa-scene-tab-container");w.appendTo(q);var u=$("<div>");u.addClass("sa-scene-tab-hulk");u.appendTo(q);q.css({position:"absolute",left:0,right:0,top:0,
bottom:0});q.addClass("sa-scene-tab");q.appendTo(d);d=q.children(".sa-scene-tab-head");for(u=0;u<d.length;u++){var x=$(d[u]);if(x.text()==t.getTitle()){h(x);break}}};this.setChangedListener=function(d){n=d};var h=function(d){q.children(".sa-scene-tab-head").removeClass("sa-scene-tab-head_selected");d.addClass("sa-scene-tab-head_selected");d=t.getJqUi();for(var u=w.children(),x=!1,B=0;B<u.length;B++){var m=u[B],D=$(m);m==d[0]?(x=!0,D.css("display","block"),m=t,D=m.into(),n&&n(m,D)):D.css("display",
"none")}x||(d.css({position:"absolute",left:0,right:0,top:0,bottom:0}),d.appendTo(w),d=t,u=d.into(),n&&n(d,u))}}function ua(l,q,w){var t,n=!0;this.getType=function(){return l};this.getTitle=function(){return q};this.getDesigner=function(){return w};this.getJqUi=function(){t||(t=w.createJqUi(),t.find(".sa-toolbar").addClass("sa-scene-tab-toolbar"));return t};this.into=function(){var h=n;n=!1;w.resize();return h}}function va(){var l,q,w,t;(function(){var h=com.kingdee.bos.qing.longer.model;l=h.AnalyticalModel;
q=h.AnalyticalPreferences;w=h.MarkFieldSet;t=h.AnalyticalField})();this.transform=function(h){var d=new l,u=h.getModel();u.getChart().lookupAllItemModelSet(function(x){x=x.getSquareField();x=n(x);x.isMeasure()?(d.getMarkFieldSet().add(x),d.getMarkFieldSet().setFieldMatchingMarkType(x,w.TYPE_LABEL)):d.getRowAnalyticalFieldSet().add(x)});u.getFilterSet().traversalItems(function(x){var B=x.getFilter();x=x.getSquareField();x=n(x);d.getFilterFieldSet().add(x);d.getFilterFieldSet().setFilter(x,B)});u=new q;
u.getDesignerStatus().setHide(!1);h.setModel(d);h.setPreferences(u)};var n=function(h){var d=new t;d.setMetaField(h.getMetaField());d.setDisplayName(h.getDisplayName());d.setRole(h.getRole(),h.getAggregation());d.setContinuous(h.isContinuous());d.setNumberFormat(h.getNumberFormat());d.setDateFormat(h.getDateFormat());d.setPartValue(h.getPartValue());d.setQuickSetup(h.getQuickSetup());return d}}function sa(){var l=com.kingdee.bos.qing.common.DomUtil;com.kingdee.bos.qing.core.commonui.AbstractCoveredSlideDownUi.call(this);
var q=this.protectedMethod,w;this.setPromptText=function(t){w=t};this.protectedInitJqUi=function(t,n,h){q.createPromptLabel(w).appendTo(h);t=Math.min(200,parseInt(.9*t));n=Math.min(60,parseInt(.9*n));l.layoutCtrlWithLRTB(h,null,4,t,4,null,n);q.initManualClosable(h)}}function ta(){var l=com.kingdee.bos.qing.common.DomUtil;com.kingdee.bos.qing.core.commonui.AbstractCoveredSlideDownUi.call(this);var q=this.protectedMethod,w,t,n;this.setContent=function(h){w=h};this.askMaxSize=function(h){var d=h.prop("clientWidth");
h=h.prop("clientHeight");return q.getComfortableSize(d,h)};this.suggestSize=function(h,d){t?t(!0,h,d):n=[h,d]};this.protectedInitJqUi=function(h,d,u){w.appendTo(u);l.layoutCtrlWithLRTB(w,0,0,null,0,0,null);var x=q.getComfortableSize(h,d);t=function(B,m,D){m=Math.min(x[0],Math.max(180,m+40));D=Math.min(x[1],Math.max(120,D+24));B?u.animate({width:m,height:D},200):l.layoutCtrlWithLRTB(u,null,4,m,4,null,D)};t(!1,n[0],n[1])}}"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={});var X=com.kingdee.bos.qing;X.RemoteImpl=A;X.SceneCommonUtil=H;X.AbstractDesignerScene=function(){var l,q,w,t,n,h,d;(function(){var c=com.kingdee.bos.qing;l=c.CodeLoader;c=com.kingdee.bos.qing.framework.common;q=c.WebPageInitializer;w=c.MultilanguageManager;t=c.WindowResizeObserver;c=com.kingdee.bos.qing.core;n=c.UserOperationReporter;c=com.kingdee.bos.qing.core.ui;h=c.Main;
d=c.ViewConfig})();var u=this,x=new H,B,m=0,D,C;this.preload=function(c){l.setCallback(c);X.CommonCodeImporter.importSkin(l);X.CommonCodeImporter.importI18n(l);c=l.createSafety();u.protectedImportMoreCode(c);c.load()};this.start=function(c){v();u.protectedCustomInitEnv(function(){P($(c?c:document.body))})};this.protectedGetRemoteUrl=function(){throw Error("Override me.");};this.protectedImportMoreCode=function(c){};this.protectedCustomInitEnv=function(c){throw Error("Override me.");};this.protectedInitDesignerForLonger=
function(c){throw Error("Override me.");};this.protectedInitDesignerForSquare=function(c){throw Error("Override me.");};this.protectedLoadingLonger=function(c,r,G){throw Error("Override me.");};this.protectedIntoTab=function(c,r){};this.protectedLoadingSquare=function(c,r,G){throw Error("Override me.");};this.getRemoteImpl=function(){B||(B=new A,B.setRemoteUrl(u.protectedGetRemoteUrl()),B.setTag(x.getParamTag()));return B};var v=function(){q.init();n.hookCollector(function(r,G){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,
G)});M();var c=new t;c.setCallbackImmediately(function(){M()});c.setDelay(250);c.setCallback(function(){C&&C.resize()});c.observe()},M=function(){document.body.style.height=document.documentElement.clientHeight+"px"},E=function(c){u.protectedLoadingLonger(u.getRemoteImpl(),c,function(r){r||c.born()})},I=function(c){u.protectedLoadingSquare(u.getRemoteImpl(),c,function(r){r||c.born()})},P=function(c){if(0==m)throw Error("Please setModule() first.");if(1==m||16==m)1==(m&1)?C=f(1):16==(m&16)&&(C=f(16)),
C.createJqUi().appendTo(c),C.resize(),1==(m&1)?E(C):16==(m&16)&&I(C);else{var r=K();r.setChangedListener(function(G,U){C=G.getDesigner();if(U)if(1==G.getType())E(C);else if(16==G.getType())I(C);else throw Error("Modify here.");u.protectedIntoTab(C,U)});r.initUi(c)}},K=function(){var c=w.createPackageAccessor(com.kingdee.bos.qing.core.ui),r=new ra;if(1==(m&1)){var G=c.get("moduleLonger","\u6570\u636e\u5206\u6790");g(r,1,G)}16==(m&16)&&(G=c.get("moduleSquare","\u6570\u636e\u6597\u65b9"),g(r,16,G));
if(!C)throw Error("Current panel hasn't be appointed.");return r},g=function(c,r,G){var U=f(r);G=new ua(r,G,U);c.addTabPanel(G);D==r&&(c.setCurrentTabPanel(G),C=U)},f=function(c){var r=new h;r.setRemoteImpl(u.getRemoteImpl());r.getConductor().setConsumingStatisticsDisplayer(function(){u.protectedDisplayConsumingStatistics(x.getParamTag())});if(16==c)c=d.TYPE_Square,u.protectedInitDesignerForSquare(r);else if(1==c)c=d.TYPE_LongPainting,u.protectedInitDesignerForLonger(r);else throw Error("Illegal arguments iModule: "+
c);var G=new d;G.setSupportedType(c);r.setViewConfig(G);r.setViewIntegration(new W);return r};this.protectedDisplayConsumingStatistics=function(c){throw Error("Override");};this.protectedMethod={getUrlParamUtil:function(){return x},setModuleWithLonger:function(c,r){c?(m|=1,r&&(D=1)):m&=-2},setModuleWithSquare:function(c,r){c?(m|=16,r&&(D=16)):m&=-17},getCurrentVisibleDesigner:function(){return C},createSquare2LongerModelTransformer:function(){return new va}}};X.AbstractModalDesignerScene=function(){var l,
q,w,t,n,h,d,u,x;(function(){var g=com.kingdee.bos.qing.common;l=g.DomUtil;g=com.kingdee.bos.qing.framework.common;q=g.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.core.ui);w=g.WindowResizeObserver;g=com.kingdee.bos.qing.ui.component;t=g.SimpleConfirmer;g=com.kingdee.bos.qing.core;n=g.Facade;g=com.kingdee.bos.qing.core.commonui;h=g.LongtimeWaitingMask;d=g.DataPreparingProgressParser;g=com.kingdee.bos.qing.core.ui;u=g.Main;x=g.ViewConfig})();var B=this,m,D,C,v,M,E,I;this.setRemoteUrl=
function(g){m=g};this.setRemoteTag=function(g){D=g};this.setClosable=function(g,f){E=g?f?f:function(){}:null};this.show=function(g,f){var c=new x;c.setSupportedType(B.protectedIsSquare()?x.TYPE_Square:x.TYPE_LongPainting);v=new u;v.setRemoteImpl(K());v.setViewConfig(c);v.setViewIntegration(new W);v.getConductor().setConsumingStatisticsDisplayer(function(){B.protectedDisplayConsumingStatistics(D)});B.protectedInitDesigner(v);M=$("<div>");M.css("z-index",256);M.css("background-color","rgba(0,0,0,0.4");
M.appendTo($(document.body));l.layoutCtrlWithLRTB(M,0,0,null,0,0,null);c=$("<div>");c.css("border-radius","4px");c.css("overflow","hidden");c.appendTo(M);l.layoutCtrlWithLRTB(c,20,20,null,20,20,null);var r=$("<div>");r.text(g);r.addClass("sa-ctrl-dialog-title");r.css("z-index",1);r.appendTo(c);g=$("<div>");g.css("z-index",1);g.appendTo(c);l.layoutCtrlWithLRTB(g,0,0,null,r.outerHeight(),0,null);if(E){var G=$("<div>");G.css("z-index",2);G.addClass("sa-ctrl-dialog-close");G.text("\u00d7");G.appendTo(c);
G.on("click",function(U){v.getConductor().isDirty()?(U=new t,U.setText(q.get("confirmQuittingModalDesigner","\u662f\u5426\u653e\u5f03\u4fee\u6539\u5e76\u9000\u51fa\uff1f")),U.setConfirmedListener(function(aa){aa&&(E(),B.hide())}),U.show(G)):(E(),B.hide())})}v.createJqUi().appendTo(g);v.resize();I=new w;I.setDelay(250);I.setCallback(function(){v.resize()});I.observe();P(f)};this.hide=function(){I.unobserve();v.destroy();M.remove()};var P=function(g){g=new n(K(),function(c){v.prepareMeta(c);B.protectedLoading(v,
function(r){r||v.born()})},g,function(){f.hideWaiting()});g.setShowBlocking(!1);g.setProgressListener(function(c){f.hookProgressDisplayer(d.makeUiCreator(c))});g.getMeta();var f=new h;f.setIconVisible(!0);f.hookOwner($(document.body),null);f.showWaiting(d.getWaitingText(),null)};this.protectedIsSquare=function(){throw Error("Override me");};this.protectedInitDesigner=function(g){throw Error("Override me");};this.protectedDisplayConsumingStatistics=function(g){throw Error("Override");};this.protectedLoading=
function(g,f){throw Error("Override me");};var K=function(){C||(C=new A,C.setRemoteUrl(m),C.setTag(D));return C}};X.AbstractSquareIframeScene=function(){var l,q,w;(function(){var d=com.kingdee.bos.qing.framework.common;l=d.WebPageInitializer;q=d.WindowResizeObserver;d=com.kingdee.bos.qing.core;w=d.UserOperationReporter})();R.call(this);var t=this.protectedMethod,n=new H;this.protectedGetRemoteTag=function(){return n.getParamTag()};this.getUrlParam=function(d){return n.getUrlParam(d)};this.protectedInitMode=
function(){l.init();w.hookCollector(function(u,x){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(u,x)});h();var d=new q;d.setCallbackImmediately(function(){h()});d.setDelay(10);d.setCallback(function(){t.redraw()});d.observe()};this.protectedBlockingAllFrame=function(){return!0};var h=function(){document.body.style.height=document.documentElement.clientHeight+"px"}};X.AbstractSquareDivScene=function(){R.call(this);var l=this.protectedMethod,q,w;this.setRemoteTag=function(t){q=t};
this.protectedGetRemoteTag=function(){return q};this.setRemoteUrl=function(t){w=t};this.protectedGetRemoteUrl=function(){return w};this.protectedBlockingAllFrame=function(){return!1};this.redraw=function(){l.redraw()};this.destroy=function(){l.destroy()}};X.AbstractLongerIframeScene=function(){var l,q,w;(function(){var d=com.kingdee.bos.qing.framework.common;l=d.WebPageInitializer;q=d.WindowResizeObserver;d=com.kingdee.bos.qing.core;w=d.UserOperationReporter})();J.call(this);var t=this.protectedMethod,
n=new H;this.protectedGetRemoteTag=function(){return n.getParamTag()};this.protectedInitMode=function(){l.init();w.hookCollector(function(u,x){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(u,x)});h();var d=new q;d.setCallbackImmediately(function(){h()});d.setDelay(10);d.setCallback(function(){t.resize()});d.observe()};var h=function(){document.body.style.height=document.documentElement.clientHeight+"px"};this.protectedMethod.getUrlParamUtil=function(){return n}};X.AbstractLongerDivScene=
function(){J.call(this);var l,q;this.setRemoteUrl=function(w){l=w};this.protectedGetRemoteUrl=function(){return l};this.setRemoteTag=function(w){q=w};this.protectedGetRemoteTag=function(){return q}};X.AbstractMobileLongerScene=function(){var l,q,w,t,n,h,d,u,x,B;(function(){var b=com.kingdee.bos.qing.common;l=b.DomUtil;b=com.kingdee.bos.qing.core;q=b.Facade;b=com.kingdee.bos.qing.core.model;w=b.ModelBook;t=b.ModelPage;n=b.AbstractAnalyticalField;h=b.DiscreteFilter;d=b.AbstractFilterPreparedModel;b=
com.kingdee.bos.qing.longer.model;u=b.AnalyticalModel;b=com.kingdee.bos.qing.core.controller;x=b.CommandManager;b=com.kingdee.bos.qing.longer.ui;B=b.ExecutableExhibition})();var m=this,D,C,v,M,E,I,P,K,g,f,c,r,G,U,aa,Z;this.protectedLoadDesignerOperationJudger=function(b){throw Error("Override");};var la=function(b){m.protectedLoadDesignerOperationJudger(function(p){b(p.isDataDetailReadable())})},ja=function(b){m.protectedLoadDesignerOperationJudger(function(p){b(p.isExportable())})};this.show=function(b){f=
new B;f.setRowColumnDraggable(!1);f.setFakeClipboardSupported(!1);f.initCacheLoader();f.setLegendsNeededListener(N);f.setContextGetter(T());f.setTooltipsWidgetInstance(m.protectedCreateTooltipsWidgetInstance());f.initTooltipsWidget(la,ja,ca,ba,a);f.setExecutedListener(ka);f.setPreUpdateListener(na);f.setExcutedModelChangedListener(ha);b=$(b);var p=f.getJqUi();l.layoutCtrl(p,0,0,"100%","100%");p.appendTo(b);aa=$("<div>");aa.appendTo(b);l.layoutCtrl(aa,0,0,"100%","100%");Z=$("<div>");Z.appendTo(b);
l.layoutCtrl(Z,0,0,"100%","100%");r=new O;r.bindParentJqUi(Z)};this.protectedCreateTooltipsWidgetInstance=function(){return null};this.displayError=function(b,p,z){fa(!1);qa([b,p,z])};this.displayActionPrompt=function(b,p){throw Error("Unsupported.");};this.destroy=function(){f&&f.destroy();U=G=null};this.setExecutedListener=function(b){G=b};this.setFilteringListener=function(b){U=b};this.redraw=function(){f&&f.repaint(c)};var ia=function(){C||(C=new A,C.setRemoteUrl(m.protectedGetRemoteUrl()),C.setTag(m.protectedGetRemoteTag()));
C.setSkinName(m.protectedGetSkinName());return C};this.protectedGetRemoteUrl=function(){throw Error("Override");};this.protectedGetRemoteTag=function(){throw Error("Override");};this.protectedGetSkinName=function(){return"white"};this.setJsonModelBook=function(b,p,z){z=new w;z.fromJsonObject(b,new W);b=z.getModelPages()[0];M=z.getMeta();E=b.getModel();I=b.getPreferences();P=p;K=I.getExhibitionStatus().getWidths();g=I.getExhibitionStatus().getHeights();E.addModelChangedListener(oa);ea();return z};
this.getJsonModelBook=function(){var b=I.getExhibitionStatus();f.collectStatus(b);b=new t;b.setModel(E);b.setPreferences(I);var p=new w;p.setMeta(M);p.setModelPages([b]);return p.toJsonObject(new W)};var oa=function(b){b.isContainKeys([u.KEY_SORTING_LANE,n.KEY_SORT])&&f.keepScrollStatus(!0);y().untilWakeup(Y)},pa=function(b){for(var p=0;p<b.getCount();p++){var z=b.getFilter(p);z instanceof h&&z.abandonExclude()}};this.reExecute=function(){return E?(ea(),!0):!1};this.executeWithoutRendering=function(b,
p){var z;f.setRenderingInterceptor(function(V){z=V;p(null,null)});var S=E?!0:!1;S&&ea();b(S,function(V,Q){z()})};var ea=function(){var b=a(),p=k();p=E.createDependentMeta(M,p);var z=I.createExecutingCopy(E.getChartType());f.christmasExecute(p,E,z,b,!0,pa)},Y=function(){var b=a(),p=k();p=E.createDependentMeta(M,p);var z=I.createExecutingCopy(E.getChartType());f.execute(p,E,z,b)},ka=function(b,p,z){b?(fa(!0),r.setErrorOccurred(!1)):(fa(!1),qa(p));G&&G(b)},fa=function(b){b?(aa.css("display",""),Z.css("display",
"none")):(aa.css("display","none"),Z.css("display",""))},qa=function(b){Z.empty();r.setErrorOccurred(!0);var p=b[0],z=b[1];b=b[2];r.highPriorityHandler(p,z)||m.protectedShowErrorImpl(Z,p,z,b)||r.lowPriorityHandler(p,z,b)};this.protectedShowErrorImpl=function(b,p,z,S){return!1};var ha=function(b){c=b},na=function(b,p,z){F(z,m.protectedPreUpdateLegend)||m.protectedPreUpdateLegend(null);var S="auto";z=I.getExhibitionStatus();if(m.protectedIsWidthFitting()){var V=f.getJqUi().innerWidth(),Q=z.getPaintableWidths();
0<Q.length&&(S=e(V,Q,p),z.setWidths(S),S="hidden")}else z.setWidths(K);m.protectedIsHeightFitting()?(p=f.getJqUi().innerHeight(),V=z.getPaintableHeights(),0<V.length&&(b=e(p,V,b,15),z.setHeights(b))):z.setHeights(g);f.applyStatus(z);f.setScrollerVisible(S,"auto")};this.protectedIsWidthFitting=function(){throw Error("Override");};this.protectedIsHeightFitting=function(){throw Error("Override");};var e=function(b,p,z,S){for(var V=0,Q=0;Q<p.length-1;Q++)V+=p[Q];V+=p[p.length-1]*z;z=[];for(Q=0;Q<p.length;Q++)z[Q]=
p[Q]/V;V=[];for(Q=0;Q<p.length;Q++){var ma=Math.round(b*z[Q]);S&&(ma=Math.max(ma,S));V[Q]=ma}return V},F=function(b,p){for(var z=0;z<b.length;z++){var S=b[z];if(S&&"discreteColor"==S.getType())return p(S.getModel()),!0}return!1};this.protectedPreUpdateLegend=function(b){throw Error("Override");};var N=function(b){F(b,m.protectedUpdateLegend)||m.protectedUpdateLegend(null)};this.protectedUpdateLegend=function(b){throw Error("Override");};var ca=function(){return M},ba=function(){return E},da=function(){return I},
a=function(){var b=P?P():null;return b?b.toExecutableJsonObject():null},k=function(){var b=P?P():null;return b?b.toMetaFieldNames():null},y=function(){!v&&(v=new x);return v},L=function(b,p,z){b=new q(ia(),b,p,z);m.protectedIsBlockingRemoteCall()?(b.setShowBlocking(!0),b.setBlockingJqUi(f.getJqUi())):b.setShowBlocking(!1);return b};this.protectedIsBlockingRemoteCall=function(){return!0};var T=function(){return{getMeta:ca,getAnalyticalModel:ba,getPreferences:da,getCommandManager:y,createFacade:L,getBlockingJqUi:function(){return f.getJqUi()}}};
this.executeOutputParamValue=function(b,p,z,S){var V=b==E?a():null,Q=new q(ia(),function(ma){S(ma)},function(ma,wa,xa){console&&console.warn("executeOutputParamValue error. "+ma+", "+wa);S(null)});Q.setShowBlocking(!1);Q.setCancelable(!0);Q.executeBriefOutput(M,b,p,V,z)};this.protectedMethod={getUrlParamUtil:function(){!D&&(D=new H);return D},createFacade:L,copyFilters:function(){for(var b=E.getFilterFieldSet().copyFiltersForSetting(),p=0;p<b.length;p++)b[p].addValueChangedListener(function(z){for(var S=
0;S<b.length;S++){var V=b[S];V!=z&&V.isJustShowAffected()&&V.innerCarryPreparedModel(null)}});return b},updateFilterPreparedValue:function(b,p,z){var S=I.createExecutingCopy(E.getChartType());b=E.getFilterFieldSet().toInsteadJson(b);var V=p.getAssociatedField();L(function(Q){Q=d.create(Q);p.setPreparedModel(Q);z(!0)},function(Q,ma){z(!1)}).getFilterPreparedValue(M,E,S,b,V)},filtering:function(b){E.getFilterFieldSet().applyFiltersFromSetting(b);Y();U&&U()}}};X.ModelHelper=new function(){this.fromJson=
function(l){var q=new com.kingdee.bos.qing.core.model.ModelBook;q.fromJsonObject(l,new W);return q};this.toJson=function(l){return l.toJsonObject(new W)}}})();
//qingVersionTag: 20250415