/*!
 * @ikrong/frontend-framework-compiler
 * (c) 2022-2024 ikrong
 * Released under the MIT License.
 * Generated: 2024-04-02
 * Dependencies: None
 */
!function(t){"use strict";function e(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,n=function(t){return r.exec(t).slice(1)};function i(){for(var t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var i=n>=0?arguments[n]:"/";if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return(r?"/":"")+(t=e(l(t.split("/"),(function(t){return!!t})),!r).join("/"))||"."}function s(t){var r=o(t),n="/"===c(t,-1);return(t=e(l(t.split("/"),(function(t){return!!t})),!r).join("/"))||r||(t="."),t&&n&&(t+="/"),(r?"/":"")+t}function o(t){return"/"===t.charAt(0)}var u={extname:function(t){return n(t)[3]},basename:function(t,e){var r=n(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},dirname:function(t){var e=n(t),r=e[0],i=e[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},sep:"/",delimiter:":",relative:function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=i(t).substr(1),e=i(e).substr(1);for(var n=r(t.split("/")),s=r(e.split("/")),o=Math.min(n.length,s.length),u=o,l=0;l<o;l++)if(n[l]!==s[l]){u=l;break}var c=[];for(l=u;l<n.length;l++)c.push("..");return(c=c.concat(s.slice(u))).join("/")},join:function(){var t=Array.prototype.slice.call(arguments,0);return s(l(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},isAbsolute:o,normalize:s,resolve:i};function l(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var c="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)};var f=function(){function t(t,e){void 0===t&&(t={}),this.compiledFiles=t,this.cacheModules={},(null==e?void 0:e.modules)&&Object.assign(this.cacheModules,e.modules)}return t.prototype.get=function(t){var e=this.compiledFiles[u.resolve(t)].script;return this.getCmJSModule(e,u.resolve(t))},t.prototype.getCmJSModule=function(t,e){var r={};return new Function("exports","require",""+t)(r,this.resolveDeps.bind(this,e)),r.default?r.default:r},t.prototype.resolveDeps=function(t,e){var r=function(t,e,r){e=u.resolve("/",r?u.dirname(r):"/",e);var n=["",".ts",".js","/index.ts","/index.js"].find((function(r){return t[""+e+r]}));if("string"==typeof n)return""+e+n}(this.compiledFiles,e,t);return this.cacheModules[e]?this.cacheModules[e]:this.compiledFiles[r]?this.getCmJSModule(this.compiledFiles[r].script,r):void 0},t}(),a=f;t.JSRender=a,Object.defineProperty(t,"__esModule",{value:!0})}(this.FE=this.FE||{});
