var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$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,c,b){if(a==Array.prototype||a==Object.prototype)return a;a[c]=b.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 c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}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,c){var b=$jscomp.propertyToPolyfillSymbol[c];if(null==b)return a[c];b=a[b];return void 0!==b?b:a[c]};
$jscomp.polyfill=function(a,c,b,d){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,b,d):$jscomp.polyfillUnisolated(a,c,b,d))};$jscomp.polyfillUnisolated=function(a,c,b,d){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in b))return;b=b[e]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})};
$jscomp.polyfillIsolated=function(a,c,b,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var g=e[f];if(!(g in d))return;d=d[g]}e=e[e.length-1];b=$jscomp.IS_SYMBOL_NATIVE&&"es6"===b?d[e]:null;c=c(b);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:c}):c!==b&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(b=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+b+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:c})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(a){if(a)return a;var c=function(f,g){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:g})};c.prototype.toString=function(){return this.$jscomp$symbol$id_};var b="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new c(b+(f||"")+"_"+d++,f)};return e},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b<c.length;b++){var d=$jscomp.global[c[b]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&$jscomp.defineProperty(d.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6",
"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.iteratorFromArray=function(a,c){a instanceof String&&(a+="");var b=0,d=!1,e={next:function(){if(!d&&b<a.length){var f=b++;return{value:c(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(c){return c})}},"es6","es3");
$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(c.call(b,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(c,b){return $jscomp.findInternal(this,c,b).v}},"es6","es3");function isInList(a,c){for(j=0;j<a.length;j++)if(0<=c.indexOf(a[j]))return!0;return!1}function inList(a,c){for(j=0;j<a.length;j++)if(0<=c.indexOf(a[j]))return a[j];return!1}
function argsSet(a,c){var b=Object.keys(guiArgList);if(c=inList(b,c))for(b=Object.keys(guiArgList[c]),i=0;i<b.length;i++)$(a).find("#"+b[i]).val(guiArgList[c][b[i]])}function sleep(a){for(var c=(new Date).getTime(),b=(new Date).getTime();b<c+a;)b=(new Date).getTime()}function returnOpener(a){if(1!=a){if(2==a)return window.opener.parent;if(11!=a&&12==a)return window.opener.parent.CONTENTS}return window.opener}
function autoRun(a){!window.opener||window.opener.closed?window.close():1==a?MatrixLinks(1):2==a&&MenuLinks(2)}
function MatrixLinks(a){var c,b=$(returnOpener(a).document).find("li a").clone();for(c=0;c<b.length;c++)null!=ommitList&&isInList(ommitList,b.get(c).href)||(null==runList||isInList(runList,b.get(c).href))&&$("#GUIS").append("<span class='GUI'>"+b.get(c).href+"</span><br/>");b=$("#GUIS span.GUI");for(c=0;c<b.length;c++){var d=b[c].innerHTML;$("#view").append(c+"="+d+"<br/>");window.opener.location.href=d;sleep(waitTime1);clickGUIs(c,d,a)}window.opener.location.href="about:blank";$("#INFO").append("<span> end.</span>")}
function MenuLinks(a){var c,b=$(returnOpener(a).MENU.document).find("a").clone();for(c=0;c<b.length;c++)null!=ommitList&&isInList(ommitList,b.get(c).href)||(null==runList||isInList(runList,b.get(c).href))&&$("#GUIS").append("<span class='GUI'>"+b.get(c).href+"</span><br/>");b=$("#GUIS span.GUI");for(c=0;c<b.length;c++){var d=b[c].innerHTML;$("#view").append(c+"="+d+"<br/>");var e=$(returnOpener(a).MENU.document).find("a").filter(function(){return 0<=d.indexOf($(this).attr("href").replace(/&/g,"&amp;"))});
null!=e&&0<e.length&&(e[0].trigger("click"),sleep(waitTime1),clickGUIs(c,d,a))}window.opener.location.href="about:blank";$("#INFO").append("<span> end.</span>")}
function clickGUIs(a,c,b){try{if($("#RUNS").append(a+"="+c+"<br/>"),returnOpener(b).CONTENTS.QUERY,b)if(queryFrame(a,b),returnOpener(b).CONTENTS.RESULT){sleep(500);resultFrame(a,c,b);var d=$(returnOpener(b).CONTENTS.QUERY.document).find('img[src$="back.png"]');0<d.length&&$(d[0]).trigger("click")}}catch(e){throw $("#ERRORS").append("ERROR:"+a+";"+e.number+";"+c+"<br/>"),e;}}
function queryFrame(a,c){argsSet(returnOpener(c).CONTENTS.QUERY.document,returnOpener(c).CONTENTS.QUERY.location.href);a=returnOpener(c).CONTENTS.QUERY.document.getElementById("queryButtonSubmit");null!=a&&(a.click(),sleep(waitTime2))}
function resultFrame(a,c,b){var d;if(returnOpener(b).CONTENTS.RESULT.document){argsSet(returnOpener(b).CONTENTS.RESULT.document,returnOpener(b).CONTENTS.RESULT.location.href);var e=$(returnOpener(b).CONTENTS.RESULT.document).find("form");if(0<e.length)for(e=$(e[0]).find('input[type="submit"]'),d=0;d<e.length;d++)isInList(pushList,e.get(d).value)&&$("#RUNS").append(a+"=<span class='"+a+"submit'>"+e.get(d).value+"</span><br/>");e=null;e=$("#RUNS span."+a+"submit");for(d=0;d<e.length;d++){returnOpener(b).CONTENTS.RESULT.document.getElementsByName("h_rowSel")[0].checked=
!0;var f=$(returnOpener(b).CONTENTS.RESULT.document).find('input[value="'+$(e[d]).text()+'"]');0<f.length&&0<=$(e[d]).text().indexOf("\u5909\u66f4")&&(f[0].trigger("click"),sleep(waitTime1),resultFrame_submit(a,0,b));0==returnOpener(b).CONTENTS.RESULT.document.getElementsByName("h_rowSel").length&&(returnOpener(b+10).location.href=c);returnOpener(b).CONTENTS.RESULT.document.getElementsByName("h_rowSel")[0].checked=!0;f=$(returnOpener(b).CONTENTS.RESULT.document).find('input[value="'+$(e[d]).text()+
'"]');0<f.length&&(f[0].trigger("click"),sleep(waitTime1),resultFrame_submit(a,1,b))}returnOpener(b+10).location.href=c;sleep(waitTime1);queryFrame(a,b);e=$(returnOpener(b).CONTENTS.RESULT.document).find("table#viewTable");var g;0<e.length&&(e=$(e[0]).find("tbody"),0<e.length&&(e=$(e[0]).find("tr:first"),0<e.length&&(g=$(e[0]).find("a"))));e=null;if(null!=g&&0<g.length)for(d=0;d<g.length;d++)0<g.get(d).href.indexOf(".jsp")&&(null==ommitList||!isInList(ommitList,g.get(d).href))&&(null==runList||isInList(runList,
g.get(d).href))&&$("#RUNS").append(a+"=<span class='"+a+"anc'>"+g.get(d)+"</span><br/>");var h=$("#RUNS span."+a+"anc");for(d=0;d<h.length;d++)f=$(returnOpener(b).CONTENTS.RESULT.document).find("a").filter(function(){return 0<=$(h[d]).text().indexOf($(this).attr("href").replace(/&/g,"&amp;"))}),null!=f&&0<f.length&&"_NEW"!=f[0].target&&(f[0].trigger("click"),sleep(waitTime1),c!=$(h[d]).text()&&clickGUIs(a+"_"+d,$(h[d]).text(),b)),returnOpener(b+10).location.href=c,sleep(waitTime1),queryFrame(a,b)}}
function resultFrame_submit(a,c,b){argsSet(returnOpener(b).CONTENTS.RESULT.document,returnOpener(b).CONTENTS.RESULT.location.href);a=$(returnOpener(b).CONTENTS.RESULT.document).find('input[type="submit"]');a.length>c&&(a[c].trigger("click"),sleep(waitTime2))};
