/*
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * The TYPO3 project - inspiring people to share!
 */
"use strict";!function(t){const e=function(t,e,n,o){const r="undefined"!=typeof XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");r.onreadystatechange=function(){if(4===this.readyState)try{200===this.status?n(JSON.parse(r.responseText)):o(this.status,new Error(r.statusText))}catch(t){o(this.status,t)}},r.open("GET",t.typo3BaseUrl+(-1===t.typo3BaseUrl.indexOf("?")?"?":"&")+"name="+encodeURIComponent(e)),r.send()},n=t.load;let o=!1;const r=t=>o?window.importShim(t):import(t).catch((()=>(o=!0,r(t)))),i=(()=>{try{return JSON.parse(document.querySelector('script[type="importmap"]').innerHTML).imports||{}}catch{return{}}})();t.load=function(o,s,c){const a=s in i?s:s.replace(/^TYPO3\/CMS\//,"@typo3/").replace(/[A-Z]+/g,(t=>"-"+t.toLowerCase())).replace(/(\/|^)-/g,"$1")+".js";if((t=>{if(t in i)return!0;const e=t.split("/");for(let t=1;t<e.length;++t)if(e.slice(0,t).join("/")+"/"in i)return!0;return!1})(a)){const t=r(a);return t.catch((function(t){const e=new Error("Failed to load ES6 module "+a);e.contextName=o.contextName,e.requireModules=[s],e.originalError=t,o.onError(e)})),void t.then((function(t){define(s,(function(){return"object"==typeof t&&"default"in t?t.default:t})),o.completeLoad(s)}))}(function(t,e){let n,o,r;const i=t.paths,s=e.split("/");for(n=s.length;n>0;n-=1)if(o=s.slice(0,n).join("/"),r=i[o],r)return!0;return!1})(o.config,s)||c.startsWith("/")||!1===o.config.typo3BaseUrl?n.call(t,o,s,c):e(o.config,s,(function(e){!function(t,e,n){e.shim&&e.shim instanceof Object&&(void 0===t.shim&&(t.shim={}),Object.keys(e.shim).forEach((function(n){t.shim[n]=e.shim[n]}))),e.paths&&e.paths instanceof Object&&(void 0===t.paths&&(t.paths={}),Object.keys(e.paths).forEach((function(n){t.paths[n]=e.paths[n]}))),e.packages&&e.packages instanceof Array&&(void 0===t.packages&&(t.packages=[]),e.packages.forEach((function(e){t.packages.push(e)}))),n.configure(t)}(o.config,e,o),c=o.nameToUrl(s),n.call(t,o,s,c)}),(function(t,e){const n=new Error("requirejs fetchConfiguration for "+s+" failed ["+t+"]");n.contextName=o.contextName,n.requireModules=[s],n.originalError=e,o.onError(n)}))}}(window.requirejs);