PageSourceSearch

https://arena.singularitybattlequest.club/front-end/7.0.4/dist/lms-functions.min.js?date=1790719049

js singularitybattlequest.club collected 2026-10-04 06:12:11 UTC 27,575 bytes, 1 lines download raw bytes

1function LMSErrorCode(){}LMSErrorCode.NET_WORK=101,LMSErrorCode.AJAX_FAIL=102;const LMS_CONST={QUIZ_GEN_TYPE_DEF:"QUIZ",QUIZ_GEN_TYPE_PDF:"PDF",QUIZ_GEN_TYPE_CARD:"CARD",QUIZ_GEN_TYPE_YOUTUBE:"YOUTUBE",QUIZ_GEN_TYPE_IFRAME:"IFRAME",QUIZ_GEN_TYPE_CERTIFICATE:"CERTIFICATE",QUIZ_GEN_TYPE_REPORT:"REPORT",QUIZ_GEN_TYPE_MOVIE:"MOVIE",QUIZ_GEN_TYPE_ISPRING:"ISPRING",QUIZ_GEN_TYPE_SCORM:"SCORM",QUIZ_GEN_TYPE_WRAPPER:"WRAPPER",QUIZ_GEN_TYPE_DOWNLOAD:"DOWNLOAD",QUIZ_GEN_TYPE_ENQUETE:"ENQUETE",QUIZ_GEN_TYPE_TYPING:"TYPING",QUIZ_GEN_TYPE_PROCON:"PROCON",QUIZ_GEN_TYPE_RESULT_TABLE:"RESULT_TABLE",QUIZ_GEN_TYPE_RESULT:"RESULT",QUIZ_GEN_TYPE_PPT2HTML:"PPT2HTML",QUIZ_GEN_TYPE_MEXCBT:"MEXCBT",QUIZ_GEN_TYPE_ASSESSMENT:"ASSESSMENT",QUIZ_GEN_TYPE_LTI:"LTI",QUIZ_GEN_TYPE_URL_LINK:"URL_LINK",QUIZ_GEN_TYPE_DISCUSSION:"DISCUSSION",REPORT_SUBMISSION_WEB:"WEB",REPORT_SUBMISSION_FILE:"FILE",REPORT_SUBMISSION_V2:"REPORT_V2",QUIZ_PLAYER_INTERNAL:"internal",QUIZ_PLAYER_EXTERNAL:"external",QUIZ_PLAYER_FAVORITE:"good",USER_CONFIG_MANAGE_SCO_SIDE_PANEL:"manageScoSidePanel",SCO_RELEASE_PRIVATE:"private",SCO_RELEASE_PUBLIC:"public",SCO_RELEASE_NONE:"none",SCO_TYPE_ROOT_CATEGORY:"root-category",SCO_TYPE_SUB_CATEGORY:"sub-category",SCO_TYPE_QUIZ:"quiz",SCO_TYPE_LINK:"link",QUIZ_GEN_TYPE_HTML:"HTML",QUIZ_GEN_TYPE_MARKER:"MARKER",AVAILABLE_VERSION:{BEFORE_QUESTION:50900,SELECTION_MAX:50902,QUESTION_ID:51e3,RELATED_CONTENTS:51e3,DRAWINGBOARD:51200,SECTION_RETURN_RULE:51200,CHOICE_NO:51300,SECTION_NO:51300,REPORT_FILE_INPUT:51400,QUIZ_REPORT_AI_SCORING_5:51622,QUIZ_REPORT_AI_SCORING:60100,QUIZ_REPORT_SCORING_MEMO:60200,QUIZ_REPORT_CHARACTER_COUNT_SCORING_RULE:60300,ENQUETE_ID:30100,MOVIEGEN_USE_VIDEO_ON_LMS:20100,QUIZ_RUBRIC_EVALUATION:8e4,ALTERNATIVE_BOX_IMAGE_ASPECT_LOCK_NOTICE:6e4},LANGUAGE_TYPE:{id_ID:"Bahasa Indonesia",de_DE:"Deutsch",en_US:"English",es_ES:"Español",fr_FR:"Français",my_MM:"မြန်မာ",pt_PT:"Português",tl_PH:"Tagalog",vi_VN:"Tiếng Việt",ru_RU:"Русский",ur_PK:"اردو",hi_IN:"हिंदी",th_TH:"แบบไทย",km_KH:"ភាសាខ្មែរ",zh_CN:"简体中文",zh_TW:"繁體中文",ja_JP:"日本語",ko_KR:"한국어"},SUPPORT_FULL_FUNCTION_LANGUAGE:["ja_JP","en_US"]};function getQueryString(){let e=!1;const t={};let n=null;const o=location.search.substring(1);arguments.length>0&&arguments[0].length>0&&(e=arguments[0]);const r=/([^&=]+)=([^&]*)/g;for(;n=r.exec(o);){if(!1!==e&&decodeURIComponent(n[1])===e)return decodeURIComponent(n[2]);!1===e&&(t[decodeURIComponent(n[1])]=decodeURIComponent(n[2]))}return!1===e?t:null}function AccessFrom(){}function isEdge(){return-1!=window.navigator.userAgent.toLowerCase().indexOf("edge")}function isMacSafari(){const e=window.navigator.userAgent.toLowerCase();return-1!=e.indexOf("mac os x 10")&&-1!=e.indexOf("safari")&&-1==e.indexOf("chrome")}function isUndefined(e){return void 0===e}function log_d(){}function log_e(e){}function log_c(e,t){}function qs(e){return querySelector(e)}function querySelector(e){return document.querySelector(e)}function qsa(e){return querySelectorAll(e)}function querySelectorAll(e){return document.querySelectorAll(e)}function htmlspecialchars(e){return"string"==typeof e&&(e=(e=(e=(e=(e=e.replace(/&/g,"&amp;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;")).replace(/"/g,"&quot;")).replace(/'/g,"&#39;")),e}function h(e){return htmlspecialchars(e)}function getWAFFriendlyHTML(e){return LmsFunctions("getWAFFriendlyHTML",e)}function decodeWAFFriendlyHTML(e){return LmsFunctions("decodeWAFFriendlyHTML",e)}function htmlspecialchars_decode(e,t){let n=0,o=0,r=!1;void 0===t&&(t=2),e=e.toString().replace(/&lt;/g,"<").replace(/&gt;/g,">");const i={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(0===t&&(r=!0),"number"!=typeof t){for(t=[].concat(t),o=0;o<t.length;o++)0===i[t[o]]?r=!0:i[t[o]]&&(n|=i[t[o]]);t=n}return t&i.ENT_HTML_QUOTE_SINGLE&&(e=e.replace(/&#0*39;/g,"'")),r||(e=e.replace(/&quot;/g,'"')),e=e.replace(/&amp;/g,"&")}function createForm(){return document.createElement("form")}function createInputHidden(e,t){const n=document.createElement("input");return n.type="hidden",n.name=e,n.value=t,n}function doSubmit(e,t,n){"string"==typeof e?e=querySelector(e):e instanceof jQuery&&(e=e[0]);const{forms:o}=document;let r=!0;for(let t=0;t<o.length;t++)if(o[t]===e){r=!1;break}r&&(e.style.display="none",document.body.appendChild(e)),e.method=t,e.action=n,e.submit()}function selectedValue(e){return selectedElement(e).value}function selectedElement(e){"string"==typeof e?e=qs(e):e instanceof jQuery&&(e=e[0]);const{options:t}=e;for(let e=0;e<t.length;e++)if(t[e].selected)return t[e];return null}function getOptionFromSelectBox(e,t){"string"==typeof e?e=qs(e):e instanceof jQuery&&(e=e[0]);const{options:n}=e,{length:o}=n;for(let e=0;e<o;e++)if(n[e].value==t)return n[e];return null}function selectBoxSelected(e,t){"string"==typeof e?e=qs(e):e instanceof jQuery&&(e=e[0]);const{options:n}=e;for(let e=0;e<n.length;e++)if(n[e].value==t)return n[e].selected=!0,!0;return!1}function escapeRegExp(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function getTimeString(){const e=new Date;return`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`}function uniqueHex(){function e(){return Math.floor(65536*Math.random()).toString(16)}return`${(new Date).getTime().toString(16)}-${e()}-${e()}-${e()}-${e()}-${e()}`}
1function setTrimString(e){const t=e.val().trim();e.val(t)}function FormManager(e){this.debugPrefix="FormManager: ","object"==typeof e&&null!==e&&"form"==e.tagName.toLowerCase()?this.form=e:this.form=document.querySelector(e),null==this.form&&log_e(_("form要素が見つかりません。")),this.checkTextBox=function(e,t){const n=this.form.querySelector(`input[type=text][name=${e}]`);if(null!==n){const{value:e}=n,{min:o}=t,{max:r}=t;return o<=e.length&&r>=e.length}return log_e(`input name=${e} ${_("要素が見つかりません。")}`),!1},this.checkPassword=function(e,t){const n=this.form.querySelector(`input[type=password][name=${e}]`);if(null!==n){const{value:e}=n,{min:o}=t,{max:r}=t;return o<=e.length&&r>=e.length}return log_e(`input name=${e} ${_("要素が見つかりません。")}`),!1},this.checkSelectBox=function(e,t){const n=this.form.querySelector(`select[name=${e}]`);if(null!==n){const{disallow:e}=t;for(let t=0;t<n.options.length;t++)if(n.options[t].selected)for(let n=0;n<e.length;n++)if(t===e[n])return!1;return!0}return log_e(`select name=${e} ${_("要素が見つかりません。")}`),!1},this.checkFileBox=function(e,t){const n=this.form.querySelector(`input[type=file][name=${e}]`);return 0!==n.value.length?checkExtension(n.value,t)?0:1:2},this.getFormObject=function(){return this.form}}function checkExtension(e,t){const n=getExtension(e);return $.inArray("*",t.allow)>=0||$.inArray(n,t.allow)>=0}function inArray(e,t){const{length:n}=e;for(let o=0;o<n;o++)if(e[o]==t)return o;return-1}function getExtension(e){const t=e?.split(".");return t?.[t.length-1]}function getCookie(){return document.cookie}function checkPassword(e){return isUndefined(e)||null===e||0===e.length?1:e.length>=8&&e.length<=50?/[^\u0021-\u007a]/g.test(e)?3:/[0-9].*[a-zA-Z]|[a-zA-Z].*[0-9]/.test(e)?0:4:2}function LMSException(e,t){isUndefined(t)&&(t=""),this.code=e,this.option=t}function newKbd(e,t,n,o){return $(`<kbd style='margin:5px; background-color:${t}; color:${n};' data-autoid=${o}>${e}</kbd>`)}function onErrorHandler(e,t,n){if(!isUndefined(e)&&/.*LMSException.*/.test(e)){const t=e.split(",");if(t[1]=Number(t[1]),t[1]===LMSErrorCode.NET_WORK){isUndefined(t[2])&&(t[2]="");const e=new Modal("#a94442");return e.setTitle(_("通信エラー")),e.appendBody(`<span class='text-danger' style='font-size:1.6em;'> ${_("通信に関するエラーが発生しました。")} <br>${t[2]}</span>`),e.appendButton(_("再読み込み"),(function(){location.reload(!0)}),e.btnColor.white),e.setDefaultCloseVisible(!1),e.setZIndex(1e5),e.show(),!0}}return!1}function getCookieValue(e){const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const o=t[n].split("=");if(o[0]=o[0].trim(),o[1]=o[1].trim(),o[0]===e)return o[1]}return null}function showToast(e,t,n,o){isUndefined(t)&&(t="#777"),isUndefined(n)&&(n="#FFF"),isUndefined(o)&&(o=1500),$.toast({text:e,showHideTransition:"fade",bgColor:t,textColor:n,allowToastClose:!1,hideAfter:o,stack:1,textAlign:"center",position:"mid-center",loader:!1})}function toastTrigger(e){const t={text:_("テキストを入力してください。"),bold:!0,showHideTransition:"fade",bgColor:"#dff0d8",textColor:"#3c763d",allowToastClose:!1,hideAfter:1500,stack:1,textAlign:"center",position:"mid-center",loader:!1},n=$.extend({},t,e);return n.bold&&(n.text=`<b>${n.text}</b>`),$.toast(n)}function onGoodQuiz(e){LmsFunctions("LmsAxiosPost","/index.php?action=like",{sco_id:e.sco_id},null,!1).then((({data:t})=>{"ADD"===t.operation?e.add(t):"DEL"===t.operation&&e.del(t)})).catch((e=>LmsFunctions("showAxiosErrorForWAF",e)))}function loadCssCalledFromApi(e){const t=document.createElement("link");t.setAttribute("href",e),t.setAttribute("type","text/css"),t.setAttribute("rel","stylesheet");document.getElementsByTagName("head")[0].appendChild(t)}function loadJsCalledFromApi(e){const t=document.createElement("script");t.setAttribute("src",e),t.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(t)}function computeMonth(e,t,n,o){const r=getMonthEndDay(e,(t+=o)+1);13==t?n>28&&(n=28):n>r&&(n=r);return new Date(e,t,n)}function getMonthEndDay(e,t){return new Date(e,t,0).getDate()}function getQueryValue(e){const t=new RegExp(`${escapeRegExp(e)}=(.*?)(&|$)`,"g");let n=window.location.search.replace(/\?/g,"").match(t);if(null!==n){for(let e=0;e<n.length;e++)n[e]=n[e].replace(/&/g,""),n[e]=n[e].split("=")[1];1===n.length&&(n=n[0])}return n}function setQueryValue(e,t){const n=window.location.search.replace(/^\?/,""),o=new RegExp(`${e}=(.*?)(&|$)`).test(n);let r="?",i=!0;o?(n.split("&").forEach((function(n){const o=n.split("=");o[0]===e?i&&(r+=`${e}=${encodeURIComponent(t)}&`,i=!1):r+=`${o[0]}=${o[1]}&`})),r=r.replace(/&$/,"")):r+=`${n}&${e}=${encodeURIComponent(t)}`,history.replaceState("","",window.location.pathname+r)}function nl2br(e){return e.replace(/\r\n|\n\r|\n/g,"<br>")}function getUserAgent(){return navigator.userAgent.toLowerCase()}function isIOS(){return isIPhone()||isIPod()||isIPad()}function isIPhone(){return getUserAgent().indexOf("iphone")>-1}function isIPod(){return getUserAgent().indexOf("ipod")>-1}function isIPad(){return getUserAgent().indexOf("ipad")>-1}function isIPadOS(){return getUserAgent().indexOf("macintosh")>-1&&"ontouchend"in document}function isAndroid(){return getUserAgent().includes("android")}function isTouchDevice(){return"ontouchend"in document}function getDataTableLocalization(){return{sProcessing:`<i class="far fa-circle-notch fa-spin mr5"></i><span>${_("読み込み中...")}</span>`,sLengthMenu:_("_MENU_ 件表示"),sZeroRecords:_("データはありません。"),sInfo:_("_START_件~_END_件を表示(全_TOTAL_ 件中)"),sInfoEmpty:_("0件中0から0まで表示"),sInfoFiltered:_("(全_MAX_件より抽出)"),sInfoPostFix:"",sSearch:_("検索フィルター")+_(":"),sUrl:"",oPaginate:{sFirst:_("先頭"),sPrevious:_("前ページ"),sNext:_("次ページ"),sLast:_("最終")}}}function ajaxFail(e,t,n){throw new LMSException(LMSErrorCode.AJAX_FAIL)}function generateUuid(){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"x":e[t]=Math.floor(16*Math.random()).toString(16);break;case"y":e[t]=(Math.floor(4*Math.random())+8).toString(16)}return e.join("")}function _(e){return lms_localize_strings.hasOwnProperty(e)?lms_localize_strings[e]:e}function isJSON(e){try{JSON.parse(e)}catch(e){return!1}return!0}function countChars(e){let t=0;for(i=0;i<e.length;i++)e[i].match(/[ -~]/)?t+=.5:t+=1;return t}String.prototype.lbReplaceAll=function(e,t){return this.split(e).join(t)},window.lbox??={},window.lbox.get=function(e,t){return getQueryString(e)??t},window.lbox.basePath=`${window.location.protocol}//${window.location.host}`,AccessFrom.ACCESS_KEY="AccessFrom",AccessFrom.ANDROID_APPLICATION="AndroidApplication",AccessFrom.IOS_APPLICATION="",LMSException.prototype.toString=function(){return`LMSException,${this.code},${this.option}`},function(e){isUndefined(jQuery.lms)&&(e.lms={}),window.lms_localize_strings={},e.lms.hasMember=function(t,n){if(isUndefined(n)||1==n){if(t in e.lms)return!0}else if(t in window)return!0;return!1},e.lms.createQueue=function(){const e={},t=[];return e.dequeue=function(){return t.shift()},e.enqueue=function(e){t.push(value)},e.size=function(){return t.length},e},e.lms.isExists=function(t){return e(t).length>0},e.lms.qs=function(e){return document.querySelector(e)},e.lms.qsa=function(e){return document.querySelectorAll(e)},e.lms.findURIQuery=function(e,t,n){if(new RegExp(escapeRegExp(`${t}=`)).test(e)){isUndefined(n)&&(n=!0);const o=`${escapeRegExp(`${t}=`)}.*?(&|$)`;let r=new RegExp(o).exec(e)[0];return r=r.replace(`${t}
1=`,""),r=r.replace(/\&$/,""),!0===n?decodeURIComponent(r.replace(/\+/g," ")):r}},e.lms.deleteURIQuery=function(e,t){let n=e,o="";n.startsWith("?")&&(o="?",n=n.substr(1));const r=[];return n.split("&").forEach((function(e,n){e.split("=")[0]!==t&&r.push(e)})),o+r.join("&")},e.lms.popURIQuery=function(t,n,o){const r=e.lms.findURIQuery(t,n,o),i=e.lms.deleteURIQuery(t,n);return e.lms.rewriteURIQuery(i),r},e.lms.rewriteURIQuery=function(e){history.replaceState("rewrite","",e)},e.lms.toast=function(e){return toastTrigger(e)},e.lms.simpleAjax=function(t){const n={url:"",type:"GET",data:{},done(e,t,n){},fail:ajaxFail,always(e,t){}},o=e.extend({},n,t);return e.ajax(o).done(o.done).fail(o.fail).always(o.always)},e.lms.post=function(t){return t.type="POST",e.lms.simpleAjax(t)},e.lms.get=function(t){return t.type="GET",e.lms.simpleAjax(t)},e.lms.hasExtension=function(e,t){for(let n=0;n<t.length;n++)if(e.endsWith(t[n]))return!0;return!1},e.lms.autocomplete=function(t){t=e.extend({},{input:null,data:[],delay:150,match:!0,done(){}},t);let n=null;const o={destroy(){clearInterval(r)}};var r=setInterval((function(){if(_currentValue=e(t.input).val(),n!==_currentValue){n=_currentValue;const e=[];let r=".*",i=null;for(let e=0;e<_currentValue.length;e++)r+=`${escapeRegExp(_currentValue.charAt(e))}.*`;i=new RegExp(r,"i"),t.data.forEach((function(t,n){(i.test(t.text)||i.test(t.keyword))&&e.push(t)})),t.done.call(o,{inputString:_currentValue,inputEmpty:_currentValue.length>0,matches:e,pattern:r})}}),t.delay);return o},e.lms.clicker=function(t){t=e.extend({},{selector:null,innerSelector:null,delay:300,singleClick(){},doubleClick(){}},t);let n=0,o=null;e(t.selector).on("click",t.innerSelector,(function(e){n++,clearTimeout(o),o=setTimeout(function(){n<2?t.singleClick.call(this,e):t.doubleClick.call(this,e),n=0}.bind(this),t.delay)}))},e.lms.showToastFavorite=function(e){isUndefined(e)||(e?showToast(`<i class='fas fa-heart'></i> ${_("お気に入りに登録しました。")}`,"#f2dede","#a94442"):showToast(`<i class='fas fa-heart'></i> ${_("お気に入りから削除しました。")}`,"#d9edf7","#337ab7"))},e.lms.createPlayerOptions=function(e){return encodeURIComponent(Base64.encode(JSON.stringify(e)))},e.lms.foreverFadeInOut=function(t){t=e.extend({},{target:null,fadeDelay:1200},t),e(t.target).fadeOut(t.fadeDelay,(function(){e(t.target).fadeIn(t.fadeDelay,(function(){e.lms.foreverFadeInOut(t)}))}))},e.lms.getNowString=function(){const e=new Date;let t="";return t+=`${e.getFullYear()}-`,t+=`${`0${e.getMonth()}1`.slice(-2)}-`,t+=`${`0${e.getDate()}`.slice(-2)} `,t+=`${`0${e.getHours()}`.slice(-2)}:`,t+=`${`0${e.getMinutes()}`.slice(-2)}:`,t+=`0${e.getSeconds()}`.slice(-2),t},e.lms.cssUnits=function(){return["em","ex","in","cm","mm","pt","pc","px","ch","rem","vw","vh","vmin","vmax","q"]},e.lms.hasCssUnit=function(t){const n=e.lms.cssUnits();t=t.toString();for(let e=0;e<n.length;e++)if(t.endsWith(n[e]))return!0;return!1},e.lms.isUndefined=function(e){return isUndefined(e)},e.lms.tabInput=function(t){t=e(t).get(0),e(t).on("keydown",(function(e){if(9==e.keyCode){e.preventDefault();const n=t.selectionStart,{value:o}=t;t.value=`${o.substr(0,n)}\t${o.substr(n,o.length)}`,t.selectionStart=n+1,t.setSelectionRange(n+1,n+1)}}))},e.lms.stringIndexCount=function(e,t){return(e.match(new RegExp(t,"g"))||[]).length},e.lms.fileNameFromPath=function(e){return e.substr(e.lastIndexOf("\\")+1,e.length)},e.lms.h=function(e){return htmlspecialchars(e)},e.lms.htmlEscape=function(e){return htmlspecialchars(e)},e.lms.uuid=generateUuid,isIPadOS()?document.cookie="iPadOS=1;path=/":document.cookie="iPadOS=0;path=/",isTouchDevice()?document.cookie="isTouchDevice=1;path=/":document.cookie="isTouchDevice=0;path=/",e.lms.getLatestGen=function(t){if(lbox.user_id>0){let n=[];return e.ajax({url:`/sys/manage_sco.php?action=getLatestGen&type=${t}`,type:"GET",async:!1}).done((function(e){n=e})),n}return"error"},e.urlParam=function(e,t){const n=new RegExp(`[?&]${e}=([^&#]*)`).exec(window.location.href);return n?n[1]:t},e.lms.withPasswordAuthentication=(t,n)=>{const o=(t,n)=>{const o=_("重要処理前の本人確認のためパスワードの再入力をお願いします。")+(t.isSSOAvailable&&t.isPasswordResetAvailable?`<br>${sprintf(_("パスワードが分からない場合は、%sしてください。"),`<a href="/index.php?action=remind">${_("パスワードを再設定")}</a>`)}`:""),i=()=>
1{const e=a.find("form input[name=password]").val(),t=a.find("form .error")[0];n({password:e,errorElem:t})},s=t=>0===e(t).parent().find("i.fa-eye:visible").length,a=r({disableEnter:!1,didShow:()=>{LmsFunctions("stopPasswordAutocomplete",'.modal-password-authentication input[name="password"]',".password-auth-btn",s)}}).addBody(`<form>\n          <div class="input-group">\n            <input type="password" class="form-control switching-pass" name="password" autocomplete="off" placeholder="${_("パスワードを入力してください")}">\n            <button type="button" class="btn btn-default show-pass-btn password-auth-btn" onclick="switchingPassword(event)">\n              <i class="fas fa-eye fa-fw"></i>\n              <i class="fas fa-eye-slash fa-fw" style="display:none"></i>\n            </button>\n          </div>\n          <p class="help-block form-text text-muted mt16 mb0">${o}</p>\n          <p class="error"></p>\n        </form>`).addCancelButton(_("キャンセル")).addButton({title:_("次へ進む"),class:"btn-primary",callback:i});return a.find("form").on("submit",(()=>(i(),!1))),a},r=(t={})=>e.lms.simpleModal({title:_("パスワードの再入力"),modalClass:"modal-password-authentication",closeBtn:!0,...t});LmsFunctions("LmsAxiosGet",t,null,!1).then((({data:e})=>{if(e?.success||Promise.reject(),void 0===e)throw new Error("res.data is undefined");if(void 0===e?.data)throw new Error("res.data is undefined");const{needs_authentication:t,has_password:i,is_sso_available:s,is_password_reset_available:a,authenticate_url:c}=e?.data;t?i?((e,t,n)=>{const r=o(t,(t=>{const{password:o,errorElem:i}=t;LmsFunctions("LmsAxiosPost",e,{password:o},null,{isCamelCase:!1}).then((({data:e})=>{if(e.success){if(i.innerText="",void 0===e.data)throw new Error("data is undefined");r.hide(),n(e.data)}else i.innerText=e.error_message})).catch((e=>{LmsFunctions("showAxiosErrorForWAF",e)}))}));r.show()})(c,{isSSOAvailable:s,isPasswordResetAvailable:a},n):(e=>{const t=r().addBody(`<form>\n          <p class="help-block form-text text-muted">\n            ${_("重要処理前の本人確認のためパスワードの再入力が必要です。")}<br>\n            ${_(e?"パスワードを設定してください。":"システム管理者に確認しパスワードの設定をお願いします。")}\n          </p>\n        </form>`).addCancelButton(_("キャンセル"));(e?t.addButton({title:_("パスワードを設定する"),class:"btn-primary",callback:()=>{location.href="/index.php?action=remind"}}):t).show()})(a):n({})})).catch((t=>{403===t?.response?.status?e.lms.ui.showDangerMessage(_("不正なデータが送信されました。")):e.lms.ui.showDangerMessage(_("予期せぬエラーが発生しました。"))}))}}(jQuery);const getCurrentDateTimeString=()=>{const e=new Date;return new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(e).replace(/\//g,"-")},isValidateDate=(e,t)=>{const n=e.split(t);if(3!==n.length)return!1;const o=new Date(n[0],n[1]-1,n[2]);return n[0]===String(o.getFullYear())&&n[1]===`0${o.getMonth()+1}`.slice(-2)&&n[2]===`0${o.getDate()}`.slice(-2)},switchingPassword=function(e){const t=e.currentTarget,n=t.closest(".input-group").querySelector(".switching-pass");event.preventDefault(),switchingPassFunc(t,n)},switchingPassFunc=function(e,t){"password"===t.getAttribute("type")?(t.setAttribute("type","text"),e.firstElementChild.style.display="none",e.lastElementChild.style.display="inline-block",e.setAttribute("aria-label",_("非表示"))):(t.setAttribute("type","password"),e.firstElementChild.style.display="inline-block",e.lastElementChild.style.display="none",e.setAttribute("aria-label",_("表示"))),t.focus()},tsload=function(e){script=document.createElement("script"),script.src=`/front-end/${lbox.version}/dist/${e}?ca=${(new Date).getTime()}`,document.head.appendChild(script)},createPulldownFunc=function(e,t,n){const o=document.querySelector(e);if(null!==o){let e="";o.disabled&&(e+='<option class="space-option-tag" value=""></option>'),n&&(e+=`<option class="not-select" value="">${_("選択してください。")}</option>`),Object.keys(t).forEach((n=>{e+=`<option value="${n}">${t[n]}</option>`})),o.insertAdjacentHTML("beforeend",e)}},createPulldown=async function(e,t,n,o=""){const r=`${{country:"/index.php?action=ajaxCountryName",timezone:"/index.php?action=ajaxTimezone",dateFormat:"/index.php?action=ajaxDateFormat",timeFormat:"/index.php?action=ajaxTimeFormat"}[t]}${o}`;await LmsFunctions("LmsAxiosGet",r,{},!1).then((({data:t})=>{createPulldownFunc(e,t,n)})).catch((e=>LmsFunctions("showAxiosErrorForWAF",e)))},exeSelect2=function(e,t,n){if($(e).length>0){let o={};if(o=n?{dropdownParent:$(e).parent(),width:"100%"}:{width:"100%"},$(`${e}`).select2(o),$(t).length>0){const e=()=>{if($(t).length>0){const e=document.querySelector(`${t}`).clientWidth;document.querySelector(".select2-container").style.width=`${e}px`}else window.removeEventListener("resize",e)};window.addEventListener("resize",e)}}},exeCreatePulldown=async function(e,t,n,o,r=!0,i=""){const s=document.querySelector(e);
1if(null!==s){const a=s.value;s.innerHTML="",await createPulldown(e,n,r,i),s.value=a,-1===s.selectedIndex&&(s.selectedIndex=0),s.disabled||exeSelect2(e,t,o)}},exeCreateLanguagePulldown=function(e,t=!0){const n=document.querySelector(e);if(n){const o=n.value;n.innerHTML="",createPulldownFunc(e,LMS_CONST.LANGUAGE_TYPE,t),n.value=o}},getLanguageSetting=function(){const e=LMS_CONST.LANGUAGE_TYPE,t=lbox.language in e?lbox.language:"ja_JP";document.querySelector(".lms-nav-bar-language .selected-language").innerText=e[t];const n=document.querySelector("#lang-pulldown-parent");Object.keys(e).forEach((o=>{if(o!==t){let t=document.createElement("li");t.classList.add("lang-pulldown-child",o),t.dataset.lang=o;let r=document.createElement("a");if(r.innerText=e[o],r.className="dropdown-item",r.role="button",r.href="#",r.dataset.lang=o,!LMS_CONST.SUPPORT_FULL_FUNCTION_LANGUAGE.includes(o)){let e=document.createElement("div");e.classList.add("beta-label"),e.classList.add("badge"),e.classList.add("text-bg-secondary"),e.classList.add("rounded-pill"),e.innerText=_("ベータ版"),r.appendChild(e)}t.appendChild(r),n.appendChild(t)}}))},changeNavbarLanguagePulldownLogin=function(e){changePostLanguage(e)},changePostLanguage=function(e){const t={language:e};(new Indicator).show(),LmsFunctions("LmsAxiosPost","/index.php?action=ajaxSetLanguage",t,{},!1).then((({data:e})=>{"success"===e?location.reload(!0):"failure"===e?$.lms.ui.showDangerMessage(_("言語の切替に失敗しました。")):"error"===e&&($.lms.ui.showDangerMessage(_("予期せぬエラーが発生しました。")+_("ダッシュボードへ移動します。")),setTimeout((()=>{location.href="/sys"}),2e3))})).catch((e=>LmsFunctions("showAxiosErrorForWAF",e)))},execFunctionLanguagePulldown=function(){null!=document.querySelector("#lms-nav-bar .lms-nav-bar-language")&&(getLanguageSetting(),Array.from(document.querySelectorAll(".lang-pulldown-child .dropdown-item")).forEach((e=>e.addEventListener("click",(t=>{t.preventDefault(),changeNavbarLanguagePulldownLogin(e.dataset.lang)})))))},execFunctionLanguagePulldownForNewHeader=function(){null!=document.querySelector("#lms-header-menu-nav-var .lms-nav-bar-language")&&(getLanguageSetting(),Array.from(document.querySelectorAll(".lang-pulldown-child .dropdown-item")).forEach((e=>e.addEventListener("click",(t=>{t.preventDefault(),changeNavbarLanguagePulldownLogin(e.dataset.lang)})))))};window.addEventListener("DOMContentLoaded",(()=>{execFunctionLanguagePulldown(),execFunctionLanguagePulldownForNewHeader()}));const changeDateToEnglishNotation=function(e,t,n){if(!e)return"";if("ja_JP"!==lbox.language){const o={"01":"Jan","02":"Feb","03":"Mar","04":"Apr","05":"May","06":"Jun","07":"Jul","08":"Aug","09":"Sep",10:"Oct",11:"Nov",12:"Dec"};if(n){const[n,r,i,s,a]=e.split(/[-/: ]/).map((e=>e.padStart(2,"0")));return`${o[r]}${t}${i}${t}${n} ${s}:${a}`}{const[n,r,i]=e.split(/[-/: ]/).map((e=>e.padStart(2,"0")));return`${o[r]}${t}${i}${t}${n}`}}return e},changeDateToNumber=function(e,t,n){if(!e)return"";const o=new RegExp(`^\\d{4}${t}\\d{2}${t}\\d{2}$`);if("ja_JP"!==lbox.language&&!o.test(e)){const o={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",N
1ov:"11",Dec:"12"};if(n){const[n,r,i,s,a]=e.split(/[-/: ]/).map((e=>e.padStart(2,"0")));return`${i}${t}${o[n]}${t}${r} ${s}:${a}`}{const[n,r,i]=e.split(/[-/: ]/).map((e=>e.padStart(2,"0")));return`${i}${t}${o[n]}${t}${r}`}}return e},getNowDateTime=function(e){const t=new Date,n=t.getFullYear(),o=("00"+(t.getMonth()+1)).slice(-2),r=("00"+t.getDate()).slice(-2),i=("00"+t.getHours()).slice(-2),s=("00"+t.getMinutes()).slice(-2);return changeDateToEnglishNotation(`${n}${e}${o}${e}${r} ${i}:${s}`,e,!0)},removeHowtoBtn=function(){"ja_JP"!==lbox.language&&Array.from(document.querySelectorAll(".btn-howto")).forEach((e=>{e.remove()}))},goBackToManageSco=function(e){LmsFunctions("goBackToManageSco",e)},getParam=function(e){const t=window.location.href,n=e.replace(/[\[\]]/g,"\\$&"),o=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)").exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},encodeQuizPlayerOptions=e=>encodeURIComponent(Base64.encode(JSON.stringify(e))),decodeQuizPlayerOptions=e=>decodeURIComponent(Base64.decode(JSON.stringify(e))),transitionResultList=(e,t=[],n="all")=>{LmsFunctions("LmsAxiosGet",`/sys/manage_sco.php?action=getScoIdPath&sco_id=${encodeURIComponent(e)}`).then((({data:e})=>{const o=`?action=score&tab=tab1&start_date=&end_date=&best_type=${encodeURIComponent(n)}&waiting_for_grading=0&permission=1`,r=e.reduce(((e,t)=>`${e}&cate[]=${encodeURIComponent(t)}`),""),i=t.length?`&status=${encodeURIComponent(t.join())}`:"";location.href=o+r+i})).catch((e=>{if(403===e?.response?.status)$.lms.ui.showDangerMessage(_("不正なデータが送信されました。"));else $.lms.ui.showDangerMessage(_("不明なエラーが発生しました。"))}))};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.