nucleus-core-ts 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +1 -1
- package/dist/dist/index.d.ts +475 -12
- package/dist/fe/components/AbstractAnimatedBackground/index.js +437 -0
- package/dist/fe/components/AuthorizationPage/components/AuthorizationPage.js +841 -0
- package/dist/fe/components/AuthorizationPage/components/ClaimList.js +100 -0
- package/dist/fe/components/AuthorizationPage/components/RoleClaimEditor.js +232 -0
- package/dist/fe/components/AuthorizationPage/components/RoleList.js +115 -0
- package/dist/fe/components/AuthorizationPage/index.js +6 -0
- package/dist/fe/components/AuthorizationPage/store/index.js +117 -0
- package/dist/fe/components/AuthorizationPage/theme/index.js +137 -0
- package/dist/fe/components/AuthorizationPage/types/index.js +1 -0
- package/dist/fe/components/Button/components/Button.js +158 -0
- package/dist/fe/components/Button/components/ButtonSpinner.js +52 -0
- package/dist/fe/components/Button/index.js +3 -0
- package/dist/fe/components/Button/theme/index.js +186 -0
- package/dist/fe/components/Button/types/index.js +1 -0
- package/dist/fe/components/Button/utils/cn.js +5 -0
- package/dist/fe/components/Captcha/components/Captcha.js +311 -0
- package/dist/fe/components/Captcha/index.js +2 -0
- package/dist/fe/components/Captcha/theme.js +52 -0
- package/dist/fe/components/Captcha/types.js +1 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordForm.js +242 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordHeader.js +39 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordPage.js +60 -0
- package/dist/fe/components/ChangePasswordPage/index.js +5 -0
- package/dist/fe/components/ChangePasswordPage/store/index.js +44 -0
- package/dist/fe/components/ChangePasswordPage/theme/index.js +87 -0
- package/dist/fe/components/ChangePasswordPage/types/index.js +1 -0
- package/dist/fe/components/Checkbox/components/Checkbox.js +115 -0
- package/dist/fe/components/Checkbox/components/CheckboxIcon.js +119 -0
- package/dist/fe/components/Checkbox/components/SwitchTrack.js +178 -0
- package/dist/fe/components/Checkbox/index.js +4 -0
- package/dist/fe/components/Checkbox/theme/index.js +221 -0
- package/dist/fe/components/Checkbox/types/index.js +1 -0
- package/dist/fe/components/Checkbox/utils/cn.js +5 -0
- package/dist/fe/components/DataTable/DataTable.js +225 -0
- package/dist/fe/components/DataTable/components/ActionCell.js +26 -0
- package/dist/fe/components/DataTable/components/DataCell.js +76 -0
- package/dist/fe/components/DataTable/components/EditableCell.js +221 -0
- package/dist/fe/components/DataTable/components/EmptyState.js +29 -0
- package/dist/fe/components/DataTable/components/HeaderCell.js +64 -0
- package/dist/fe/components/DataTable/components/InfiniteScrollTrigger.js +66 -0
- package/dist/fe/components/DataTable/components/LoadingSpinner.js +19 -0
- package/dist/fe/components/DataTable/components/ResizeHandle.js +41 -0
- package/dist/fe/components/DataTable/components/SelectionCell.js +105 -0
- package/dist/fe/components/DataTable/components/SkeletonRow.js +56 -0
- package/dist/fe/components/DataTable/components/SkeletonTable.js +83 -0
- package/dist/fe/components/DataTable/components/SortIcon.js +39 -0
- package/dist/fe/components/DataTable/components/TableHeader.js +49 -0
- package/dist/fe/components/DataTable/components/TableRow.js +118 -0
- package/dist/fe/components/DataTable/components/index.js +14 -0
- package/dist/fe/components/DataTable/hooks/index.js +2 -0
- package/dist/fe/components/DataTable/hooks/useAutoFitColumn.js +23 -0
- package/dist/fe/components/DataTable/hooks/useResizeColumn.js +122 -0
- package/dist/fe/components/DataTable/index.js +3 -0
- package/dist/fe/components/DataTable/store/index.js +97 -0
- package/dist/fe/components/DataTable/theme/index.js +144 -0
- package/dist/fe/components/DataTable/types/index.js +1 -0
- package/dist/fe/components/DataTable/utils/cn.js +5 -0
- package/dist/fe/components/DatePicker/components/CalendarGrid.js +95 -0
- package/dist/fe/components/DatePicker/components/CalendarHeader.js +152 -0
- package/dist/fe/components/DatePicker/components/DatePicker.js +381 -0
- package/dist/fe/components/DatePicker/components/MonthYearSelector.js +93 -0
- package/dist/fe/components/DatePicker/index.js +7 -0
- package/dist/fe/components/DatePicker/locales/index.js +1113 -0
- package/dist/fe/components/DatePicker/theme/index.js +315 -0
- package/dist/fe/components/DatePicker/types/index.js +1 -0
- package/dist/fe/components/DatePicker/utils/cn.js +5 -0
- package/dist/fe/components/DatePicker/utils/date.js +132 -0
- package/dist/fe/components/DevicesPage/components/DeviceCard.js +251 -0
- package/dist/fe/components/DevicesPage/components/DevicesHeader.js +42 -0
- package/dist/fe/components/DevicesPage/components/DevicesPage.js +450 -0
- package/dist/fe/components/DevicesPage/index.js +5 -0
- package/dist/fe/components/DevicesPage/store/index.js +55 -0
- package/dist/fe/components/DevicesPage/theme/index.js +131 -0
- package/dist/fe/components/DevicesPage/types/index.js +1 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordForm.js +214 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordHeader.js +42 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordPage.js +59 -0
- package/dist/fe/components/ForgotPasswordPage/index.js +5 -0
- package/dist/fe/components/ForgotPasswordPage/store/index.js +28 -0
- package/dist/fe/components/ForgotPasswordPage/theme/index.js +87 -0
- package/dist/fe/components/ForgotPasswordPage/types/index.js +1 -0
- package/dist/fe/components/FormBuilder/components/FormBuilder.js +156 -0
- package/dist/fe/components/FormBuilder/components/FormField.js +218 -0
- package/dist/fe/components/FormBuilder/hooks/useFormBuilder.js +152 -0
- package/dist/fe/components/FormBuilder/index.js +4 -0
- package/dist/fe/components/FormBuilder/theme/index.js +134 -0
- package/dist/fe/components/FormBuilder/types/index.js +1 -0
- package/dist/fe/components/FormBuilder/utils/cn.js +5 -0
- package/dist/fe/components/FormBuilder/utils/fieldMapping.js +216 -0
- package/dist/fe/components/FormBuilder/utils/validation.js +78 -0
- package/dist/fe/components/LoginPage/components/LoginForm.js +214 -0
- package/dist/fe/components/LoginPage/components/LoginHeader.js +24 -0
- package/dist/fe/components/LoginPage/components/LoginPage.js +138 -0
- package/dist/fe/components/LoginPage/index.js +5 -0
- package/dist/fe/components/LoginPage/store/index.js +59 -0
- package/dist/fe/components/LoginPage/theme/index.js +98 -0
- package/dist/fe/components/LoginPage/types/index.js +1 -0
- package/dist/fe/components/MagicLinkVerifyPage/components/MagicLinkVerifyPage.js +200 -0
- package/dist/fe/components/MagicLinkVerifyPage/index.js +3 -0
- package/dist/fe/components/MagicLinkVerifyPage/store.js +20 -0
- package/dist/fe/components/MagicLinkVerifyPage/theme.js +36 -0
- package/dist/fe/components/MagicLinkVerifyPage/types.js +1 -0
- package/dist/fe/components/NucleusEntityShowcase.js +1409 -0
- package/dist/fe/components/NucleusTextInput/components/FloatingLabel.js +56 -0
- package/dist/fe/components/NucleusTextInput/components/InputIcons.js +258 -0
- package/dist/fe/components/NucleusTextInput/components/NucleusTextInput.js +321 -0
- package/dist/fe/components/NucleusTextInput/components/PasswordStrengthIndicator.js +104 -0
- package/dist/fe/components/NucleusTextInput/components/TypewriterText.js +56 -0
- package/dist/fe/components/NucleusTextInput/index.js +7 -0
- package/dist/fe/components/NucleusTextInput/theme/index.js +121 -0
- package/dist/fe/components/NucleusTextInput/types/index.js +1 -0
- package/dist/fe/components/NucleusTextInput/utils/cn.js +5 -0
- package/dist/fe/components/NucleusTextInput/utils/format.js +62 -0
- package/dist/fe/components/NucleusTextInput/utils/validation.js +191 -0
- package/dist/fe/components/ProfilePage/components/AddressCard.js +196 -0
- package/dist/fe/components/ProfilePage/components/PhoneCard.js +206 -0
- package/dist/fe/components/ProfilePage/components/ProfileHeader.js +150 -0
- package/dist/fe/components/ProfilePage/components/ProfilePage.js +1336 -0
- package/dist/fe/components/ProfilePage/index.js +6 -0
- package/dist/fe/components/ProfilePage/store/index.js +115 -0
- package/dist/fe/components/ProfilePage/theme/index.js +168 -0
- package/dist/fe/components/ProfilePage/types/index.js +1 -0
- package/dist/fe/components/RangePicker/components/RangePicker.js +338 -0
- package/dist/fe/components/RangePicker/components/RangeThumb.js +68 -0
- package/dist/fe/components/RangePicker/components/RangeTooltip.js +45 -0
- package/dist/fe/components/RangePicker/components/RangeTrack.js +32 -0
- package/dist/fe/components/RangePicker/index.js +5 -0
- package/dist/fe/components/RangePicker/theme/index.js +88 -0
- package/dist/fe/components/RangePicker/types/index.js +1 -0
- package/dist/fe/components/RangePicker/utils/cn.js +3 -0
- package/dist/fe/components/RegisterPage/components/PasswordStrengthIndicator.js +107 -0
- package/dist/fe/components/RegisterPage/components/RegisterForm.js +322 -0
- package/dist/fe/components/RegisterPage/components/RegisterHeader.js +23 -0
- package/dist/fe/components/RegisterPage/components/RegisterPage.js +85 -0
- package/dist/fe/components/RegisterPage/index.js +6 -0
- package/dist/fe/components/RegisterPage/store/index.js +106 -0
- package/dist/fe/components/RegisterPage/theme/index.js +128 -0
- package/dist/fe/components/RegisterPage/types/index.js +1 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordForm.js +347 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordHeader.js +42 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordPage.js +61 -0
- package/dist/fe/components/ResetPasswordPage/index.js +5 -0
- package/dist/fe/components/ResetPasswordPage/store/index.js +36 -0
- package/dist/fe/components/ResetPasswordPage/theme/index.js +99 -0
- package/dist/fe/components/ResetPasswordPage/types/index.js +1 -0
- package/dist/fe/components/SearchBox/components/SearchBox.js +271 -0
- package/dist/fe/components/SearchBox/components/SearchBoxDropdown.js +87 -0
- package/dist/fe/components/SearchBox/index.js +5 -0
- package/dist/fe/components/SearchBox/theme/index.js +184 -0
- package/dist/fe/components/SearchBox/types/index.js +1 -0
- package/dist/fe/components/SearchBox/utils/cn.js +5 -0
- package/dist/fe/components/SearchBox/utils/debounce.js +22 -0
- package/dist/fe/components/SearchBox/utils/sanitize.js +48 -0
- package/dist/fe/components/SelectBox/components/SelectBox.js +364 -0
- package/dist/fe/components/SelectBox/components/SelectDropdown.js +92 -0
- package/dist/fe/components/SelectBox/components/SelectOptionItem.js +43 -0
- package/dist/fe/components/SelectBox/components/SelectTrigger.js +22 -0
- package/dist/fe/components/SelectBox/index.js +5 -0
- package/dist/fe/components/SelectBox/theme/index.js +98 -0
- package/dist/fe/components/SelectBox/types/index.js +1 -0
- package/dist/fe/components/SelectBox/utils/cn.js +3 -0
- package/dist/fe/components/SetPasswordPage/components/PasswordStrengthIndicator.js +107 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordForm.js +142 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordHeader.js +23 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordPage.js +263 -0
- package/dist/fe/components/SetPasswordPage/index.js +7 -0
- package/dist/fe/components/SetPasswordPage/store/index.js +79 -0
- package/dist/fe/components/SetPasswordPage/theme/index.js +98 -0
- package/dist/fe/components/SetPasswordPage/types/index.js +12 -0
- package/dist/fe/components/UsersPage/components/InviteUserModal.js +262 -0
- package/dist/fe/components/UsersPage/components/Pagination.js +147 -0
- package/dist/fe/components/UsersPage/components/RoleAssignmentModal.js +186 -0
- package/dist/fe/components/UsersPage/components/StatsCards.js +124 -0
- package/dist/fe/components/UsersPage/components/UserDetailDrawer.js +444 -0
- package/dist/fe/components/UsersPage/components/UserFilters.js +142 -0
- package/dist/fe/components/UsersPage/components/UserListItem.js +125 -0
- package/dist/fe/components/UsersPage/components/UserListSkeleton.js +40 -0
- package/dist/fe/components/UsersPage/components/UsersPage.js +556 -0
- package/dist/fe/components/UsersPage/index.js +10 -0
- package/dist/fe/components/UsersPage/store/index.js +151 -0
- package/dist/fe/components/UsersPage/theme/index.js +231 -0
- package/dist/fe/components/UsersPage/types/index.js +1 -0
- package/dist/fe/components/VerifyEmailPage/components/VerifyEmailPage.js +290 -0
- package/dist/fe/components/VerifyEmailPage/index.js +3 -0
- package/dist/fe/components/VerifyEmailPage/store/index.js +45 -0
- package/dist/fe/components/VerifyEmailPage/theme/index.js +52 -0
- package/dist/fe/components/VerifyEmailPage/types/index.js +1 -0
- package/dist/fe/hooks/useNucleusEntity.js +247 -0
- package/dist/fe/index.js +28 -110
- package/dist/fe/types/index.js +1 -0
- package/dist/fe/utils/cn.js +5 -0
- package/dist/fe/utils/columnUtils.js +189 -0
- package/dist/fe/utils/endpointKeys.js +44 -0
- package/dist/index.js +1 -1
- package/dist/nucleus.config.d.ts +3 -0
- package/dist/src/Client/Proxy/httpProxy.js +1 -0
- package/dist/src/Client/Proxy/index.js +1 -1
- package/dist/src/Client/Proxy/server.js +1 -0
- package/dist/src/Client/Proxy/types.js +1 -0
- package/dist/src/Client/Proxy/utils.js +1 -0
- package/dist/src/Client/Proxy/wsProxy.js +1 -0
- package/package.json +1 -1
- package/scripts/build.ts +78 -8
- package/dist/dist/index-0yyw12k6.d.ts +0 -8
- package/dist/dist/index-tv67j5qd.d.ts +0 -488
- package/dist/index-0yyw12k6.js +0 -1
- package/dist/index-tv67j5qd.js +0 -1
package/dist/nucleus.config.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export declare const config: {
|
|
|
16
16
|
/** Entry Points - These become subpath exports */
|
|
17
17
|
readonly entryPoints: {
|
|
18
18
|
readonly ".": "./index.ts";
|
|
19
|
+
};
|
|
20
|
+
/** Entry points that should be transpiled only (not bundled) - for client-side use */
|
|
21
|
+
readonly transpileOnly: {
|
|
19
22
|
readonly "./client": "./client.ts";
|
|
20
23
|
readonly "./fe": "./fe/index.ts";
|
|
21
24
|
readonly "./proxy": "./src/Client/Proxy/index.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x50d0cc,_0x51704c){const _0x427fff=_0x1586,_0x5bba1a=_0x50d0cc();while(!![]){try{const _0x57f469=parseInt(_0x427fff(0x179))/0x1*(-parseInt(_0x427fff(0x180))/0x2)+-parseInt(_0x427fff(0x18a))/0x3+-parseInt(_0x427fff(0x174))/0x4*(parseInt(_0x427fff(0x17e))/0x5)+-parseInt(_0x427fff(0x18e))/0x6+-parseInt(_0x427fff(0x1a0))/0x7+-parseInt(_0x427fff(0x18c))/0x8*(-parseInt(_0x427fff(0x17f))/0x9)+parseInt(_0x427fff(0x19e))/0xa;if(_0x57f469===_0x51704c)break;else _0x5bba1a['push'](_0x5bba1a['shift']());}catch(_0x5d888a){_0x5bba1a['push'](_0x5bba1a['shift']());}}}(_0x3c21,0xaf919));import{createProxyLogger,matchPath,parseCookies,rewritePath}from'./utils';function _0x1586(_0x2df230,_0x303c59){_0x2df230=_0x2df230-0x174;const _0x3c2129=_0x3c21();let _0x158622=_0x3c2129[_0x2df230];if(_0x1586['ScByzP']===undefined){var _0x3fdbf2=function(_0x6872e5){const _0x464263='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2db472='',_0x26bdf8='';for(let _0x2c977c=0x0,_0x108b1d,_0x27a261,_0x4be8cc=0x0;_0x27a261=_0x6872e5['charAt'](_0x4be8cc++);~_0x27a261&&(_0x108b1d=_0x2c977c%0x4?_0x108b1d*0x40+_0x27a261:_0x27a261,_0x2c977c++%0x4)?_0x2db472+=String['fromCharCode'](0xff&_0x108b1d>>(-0x2*_0x2c977c&0x6)):0x0){_0x27a261=_0x464263['indexOf'](_0x27a261);}for(let _0x1ef02f=0x0,_0x7ed456=_0x2db472['length'];_0x1ef02f<_0x7ed456;_0x1ef02f++){_0x26bdf8+='%'+('00'+_0x2db472['charCodeAt'](_0x1ef02f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26bdf8);};_0x1586['Hxjwij']=_0x3fdbf2,_0x1586['jdEczx']={},_0x1586['ScByzP']=!![];}const _0x256963=_0x3c2129[0x0],_0x30562d=_0x2df230+_0x256963,_0x15d767=_0x1586['jdEczx'][_0x30562d];return!_0x15d767?(_0x158622=_0x1586['Hxjwij'](_0x158622),_0x1586['jdEczx'][_0x30562d]=_0x158622):_0x158622=_0x15d767,_0x158622;}function _0x3c21(){const _0x57152e=['B3jPz2LU','Cgf0Ag5HBwu','sfruucbqCM94Eq','zgvSzxrL','CMvKAxjLy3q','nJHztK9bq3C','rxjYB3i6ia','vgPNAKO','AuDMyuW','B25szxnWB25Zzq','mtq1mdy0B1jlruDM','Aw5MBW','Ag9ZDa','C3rHDhvZ','uNPwDhG','nJe2mtvNzLHkEvC','oty2nLfisKzzqq','nfHzrxfhvW','vhHhq0q','uhjVEhLPBMC6ia','z2v0','C3rYAw5NAwz5','BM93','qMfJA2vUzcbYzxf1zxn0ihrPBwvKig91Da','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','ywflC1a','yM9KEq','odyZode0DuXqwxvi','Bwv0Ag9K','nZK0nff0CfDjBq','DxjS','mtiXodKWnMTUEMnqyW','ywjVCNq','C2v0','AgvHzgvYCW','AgvHzgvYtMfTzq','vgLTzw91DcbHzNrLCIa','tKTtzLq','BLnZC0G','yxbWBgLJyxrPB24VANnVBG','BwvZC2fNzq','B25fCNjVCG','qMfKieDHDgv3yxK','q29UDgvUDc1uExbL','uKfnB0O','Dg9gAxHLza','DhjHBNnMzxiTzw5JB2rPBMC','mtG3oty3mZb3AgjbCgu','zgvIDwC','ody1ndiYnMHIB1LzCG','y29VA2LLtMfTzq','s3bVsg4','zxjYB3i','uMvXDwvZDcb0Aw1LB3v0','zM9SBg93uMvKAxjLy3rZ','vg9Rzw4GAw5Qzwn0zwqGzNjVBsbJB29RAwuGDg8G'];_0x3c21=function(){return _0x57152e;};return _0x3c21();}export function createHttpProxyHandler(_0x2e828){const _0x6f25cb=_0x1586,_0x48abdc={'nSssH':function(_0x37e418,_0x401a8d){return _0x37e418(_0x401a8d);},'TjgjJ':function(_0x165a13,_0xc6bf4c,_0x57aeef){return _0x165a13(_0xc6bf4c,_0x57aeef);},'MHPAZ':_0x6f25cb(0x1a7),'ZShfo':'authorization','RAMoJ':_0x6f25cb(0x17b),'aaKsP':'manual','TxGCD':function(_0x33ce45,_0x291269){return _0x33ce45(_0x291269);},'RzVtx':function(_0x4978f9,_0x410ed3){return _0x4978f9 instanceof _0x410ed3;},'iGfaL':_0x6f25cb(0x186),'KpoHn':_0x6f25cb(0x196),'ZLtjs':_0x6f25cb(0x199),'mIynk':function(_0xa9c751,_0x84346a,_0x61fe03){return _0xa9c751(_0x84346a,_0x61fe03);},'NKSfT':_0x6f25cb(0x1a9)},_0x3c067a=_0x48abdc['mIynk'](createProxyLogger,_0x48abdc[_0x6f25cb(0x194)],_0x2e828[_0x6f25cb(0x19f)]??![]);function _0x30738e(_0x85483f){for(const _0x14d2d9 of _0x2e828['targets']){if(matchPath(_0x85483f,_0x14d2d9['paths']))return _0x14d2d9;}return null;}function _0x449e29(_0x369d51,_0x6ee7f5){const _0x120687=_0x6ee7f5['url']['replace'](/\/$/,'');let _0x384881=_0x369d51;return _0x6ee7f5['pathRewrite']&&(_0x384881=rewritePath(_0x369d51,_0x6ee7f5['pathRewrite'])),''+_0x120687+_0x384881;}return{async 'handle'(_0x1b245c){const _0xa857cb=_0x6f25cb,_0x257881=new URL(_0x1b245c['url']),_0x1b3939=_0x257881[_0xa857cb(0x1a8)],_0x4dfa95=_0x48abdc[_0xa857cb(0x195)](_0x30738e,_0x1b3939);if(!_0x4dfa95)return null;const _0x1514d3=performance[_0xa857cb(0x185)](),_0x24a8df=_0x48abdc['TjgjJ'](_0x449e29,_0x1b3939,_0x4dfa95),_0x34958f=_0x257881['search']?''+_0x24a8df+_0x257881['search']:_0x24a8df;_0x3c067a['info'](_0xa857cb(0x182)+_0x1b245c['method']+'\x20'+_0x1b3939+'\x20->\x20'+_0x34958f),_0x2e828['onRequest']?.(_0x1b3939,_0x34958f);const _0x184283=new Headers(_0x1b245c[_0xa857cb(0x191)]);if(_0x4dfa95['changeOrigin']!==![]){const _0x101c8b=new URL(_0x4dfa95[_0xa857cb(0x18d)]);_0x184283[_0xa857cb(0x190)](_0xa857cb(0x17b),_0x101c8b['host']),_0x184283['set'](_0x48abdc['MHPAZ'],_0x101c8b[_0xa857cb(0x1a7)]);}if(_0x4dfa95[_0xa857cb(0x187)]){const _0x3d1d65=_0x48abdc[_0xa857cb(0x195)](parseCookies,_0x1b245c['headers'][_0xa857cb(0x183)]('cookie')),_0x1579b8=_0x3d1d65[_0x4dfa95[_0xa857cb(0x187)][_0xa857cb(0x1a1)]];if(_0x1579b8){const _0xb8dbf5=_0x4dfa95['injectTokenFromCookie'][_0xa857cb(0x192)]??_0x48abdc['ZShfo'];_0x184283['set'](_0xb8dbf5,'Bearer\x20'+_0x1579b8),_0x3c067a[_0xa857cb(0x17a)](_0xa857cb(0x1a6)+_0xb8dbf5);}}if(_0x4dfa95[_0xa857cb(0x191)])for(const [_0x2cce37,_0x4525da]of Object['entries'](_0x4dfa95[_0xa857cb(0x191)])){_0x184283['set'](_0x2cce37,_0x4525da);}_0x184283['delete'](_0x48abdc[_0xa857cb(0x19b)]);try{const _0x28572e=new AbortController(),_0x5c1dbb=_0x4dfa95['timeout']??0x7530,_0x3e0ee5=_0x48abdc[_0xa857cb(0x176)](setTimeout,()=>{const _0x3e133f=_0xa857cb;_0x28572e[_0x3e133f(0x18f)]();},_0x5c1dbb),_0x39f39f={};_0x39f39f['method']=_0x1b245c[_0xa857cb(0x18b)],_0x39f39f[_0xa857cb(0x191)]=_0x184283,_0x39f39f[_0xa857cb(0x189)]=_0x1b245c['body'],_0x39f39f['signal']=_0x28572e['signal'],_0x39f39f[_0xa857cb(0x1ab)]=_0x4dfa95[_0xa857cb(0x1a5)]===![]?_0x48abdc[_0xa857cb(0x188)]:'follow';const _0x33a802=await fetch(_0x34958f,_0x39f39f);_0x48abdc[_0xa857cb(0x181)](clearTimeout,_0x3e0ee5);const _0x57e865=performance['now']()-_0x1514d3;_0x3c067a[_0xa857cb(0x17a)]('Response:\x20'+_0x33a802[_0xa857cb(0x17c)]+'\x20('+_0x57e865['toFixed'](0x0)+'ms)'),_0x2e828[_0xa857cb(0x178)]?.(_0x1b3939,_0x33a802[_0xa857cb(0x17c)],_0x57e865);const _0x240104=new Headers(_0x33a802[_0xa857cb(0x191)]);return _0x240104['delete']('content-encoding'),_0x240104[_0xa857cb(0x1aa)](_0xa857cb(0x19d)),new Response(_0x33a802[_0xa857cb(0x189)],{'status':_0x33a802['status'],'statusText':_0x33a802['statusText'],'headers':_0x240104});}catch(_0x2bf43c){const _0x2dfcc4=performance[_0xa857cb(0x185)]()-_0x1514d3,_0x4c402b=_0x48abdc[_0xa857cb(0x17d)](_0x2bf43c,Error)?_0x2bf43c:new Error(String(_0x2bf43c));if(_0x4c402b['name']==='AbortError'){_0x3c067a['error'](_0xa857cb(0x193)+_0x2dfcc4[_0xa857cb(0x19c)](0x0)+'ms:\x20'+_0x1b3939),_0x2e828[_0xa857cb(0x198)]?.(new Error(_0xa857cb(0x1a4)),_0x1b3939,0x1f8);const _0x17040b={};_0x17040b[_0xa857cb(0x1a3)]='Gateway\x20Timeout',_0x17040b['message']=_0x48abdc[_0xa857cb(0x177)];const _0x412bd8={};_0x412bd8['Content-Type']=_0x48abdc[_0xa857cb(0x1a2)];const _0x4798af={};return _0x4798af['status']=0x1f8,_0x4798af[_0xa857cb(0x191)]=_0x412bd8,new Response(JSON[_0xa857cb(0x184)](_0x17040b),_0x4798af);}_0x3c067a[_0xa857cb(0x1a3)](_0xa857cb(0x175)+_0x1b3939,_0x4c402b['message']),_0x2e828[_0xa857cb(0x198)]?.(_0x4c402b,_0x1b3939,0x1f6);const _0x66e68f={};_0x66e68f['error']=_0x48abdc['ZLtjs'],_0x66e68f[_0xa857cb(0x197)]=_0x4c402b[_0xa857cb(0x197)];const _0x44b8ff={};_0x44b8ff[_0xa857cb(0x19a)]=_0x48abdc[_0xa857cb(0x1a2)];const _0x4e7a49={};return _0x4e7a49[_0xa857cb(0x17c)]=0x1f6,_0x4e7a49[_0xa857cb(0x191)]=_0x44b8ff,new Response(JSON[_0xa857cb(0x184)](_0x66e68f),_0x4e7a49);}}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4bebfd=_0x54d6;(function(_0x10d922,_0x4ed36a){const _0xca3485=_0x54d6,_0x30b0e2=_0x10d922();while(!![]){try{const _0x31c77c=-parseInt(_0xca3485(0x16b))/0x1+-parseInt(_0xca3485(0x168))/0x2+-parseInt(_0xca3485(0x131))/0x3*(parseInt(_0xca3485(0x146))/0x4)+parseInt(_0xca3485(0x143))/0x5*(-parseInt(_0xca3485(0x17a))/0x6)+parseInt(_0xca3485(0x14c))/0x7*(parseInt(_0xca3485(0x179))/0x8)+parseInt(_0xca3485(0x164))/0x9+parseInt(_0xca3485(0x182))/0xa;if(_0x31c77c===_0x4ed36a)break;else _0x30b0e2['push'](_0x30b0e2['shift']());}catch(_0x512240){_0x30b0e2['push'](_0x30b0e2['shift']());}}}(_0xf04c,0x69c92));import'../../../index-0yyw12k6.js';function _0xf04c(){const _0x114353=['Cgf0Aa','u3rHCNrPBMCGChjVEhKGC2vYDMvYlI4U','zMLQDuy','mtyXnta1mtbwyxjus0K','C2v0','zu1IuKu','qMvHCMvYia','Cgf0Ahm','icaTigHVC3rUyw1LoIa','wNzOq28','Bxm6ia','DxLOwLC','AgDhAfy','mc4WlJaUma','v2zvCe0','qKPZBKm','s0vXr3O','yvHjv24','tK5trLi','qMfJA2vUzcbYzxf1zxn0ihrPBwvKig91Da','DxjS','v2vIu29JA2v0ihbHDgGGBM90igzVDw5K','y29VA2LLtMfTzq','EMHtrxe','DhjHBNnMzxiTzw5JB2rPBMC','BM93','AM9PBG','l19UzxH0l3DLyNbHy2STAg1Y','AeXgvu8','uhjVEhKGu2vYDMvY','B25LCNjVCG','zMLSzq','Dg9Rzw4','zxjYB3i','Cxr3vMe','C3bSAxq','yNvMzMvY','y3Djt1e','qMfKieDHDgv3yxK','z2v0','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','zw52ugf0Aa','CKTkreW','w1DtifbYB3H5xsbtDgfYDgvKig9Uia','Cgf0AfjLD3jPDgu','B25szxf1zxn0','BwfUDwfS','Aw5MBW','DgfYz2v0','BgvUz3rO','nNDTyMndzW','B3jPz2LU','B25szwfKEq','y29VA2LL','zw50CMLLCW','vw56EeG','tM8GDgfYz2v0igzVDw5KigzVCJOG','qMfJA2vUzcbxzwjtB2nRzxqGzxjYB3i','zxvqAKu','Cgf0Ag5HBwu','vgLTzw91DcbHzNrLCIa','C2vHCMnOugfYyw1Z','Eg9twK4','icaTihbVCNq6ia','DhjPBq','tKTeu08','ref3ree','zgvIDwC','mtq4odu1mgPkqLjIrq','yM9KEq','B25TzxnZywDL','mtCXnduYne50uMneBW','yxbWBgLJyxrPB24VANnVBG','uNnWA3G','C3rHDhvZ','q2XPzw50ignSB3nLzdOG','DgvZDa','oty3odGZzfrHvK5N','Cg9YDa','xcqM','icaTigrLDJOG','q3nYAuq','BxmP','qMfJA2vUzcbLCNjVCJOG','t1bftG','CMvWBgfJzq','Dg9tDhjPBMC','AgfUzgXL','C2vUza','zgvSzxrL','yNL5r0K','C2LNBMfS','B0Dkrgm','AgvHzgvYtMfTzq','Ahr0Ca','vg9Rzw4GAw5Qzwn0zwqGzNjVBsbJB29RAwuGDg8G','Ag9ZDg5HBwu','lI4U','zgf0yq','ChvZAa','D2fYBG','mtyZmZy4ow1zsLzmqq','uff2y2G','q29UDgvUDc1uExbL','CMvQzwn0vw5RBM93BG','mte2mZmWAeXyyKDg','B25fCNjVCG','Ag9ZDa','odqXndGYrfznqwfg','yMfJA2vUzfDZ','D0Ttu2m','AgvHzgvYCW','icaTieHuvfaGDgfYz2v0CZOG','DgfYz2v0CW','wwz4B0y','Aw5JBhvKzxm','tM90iezVDw5K','C2vHCMnO','y2XVC2u','ic0+ia','D2vIC29JA2v0','yNL0zuXLBMD0Aa','ndbUCKrtwxm','nKvuru13yq','tM90igeGv2vIu29JA2v0ihjLCxvLC3q','BwvZC2fNzq','Bwv0Ag9K','icaTifDLyLnVy2TLDcb0yxjNzxrZoIa'];_0xf04c=function(){return _0x114353;};return _0xf04c();}function h(_0x237335){const _0x3ae526=_0x54d6,_0x184098={'qtwVa':function(_0x4d1230,_0x1d6cb6){return _0x4d1230(_0x1d6cb6);}};let _0x3ca24c={};if(!_0x237335)return _0x3ca24c;for(let _0x5e2589 of _0x237335['split'](';')){let [_0x2c1220,..._0x14f6ce]=_0x5e2589[_0x3ae526(0x13f)]()['split']('=');if(_0x2c1220&&_0x14f6ce['length']>0x0)_0x3ca24c[_0x2c1220]=_0x184098[_0x3ae526(0x121)](decodeURIComponent,_0x14f6ce[_0x3ae526(0x119)]('='));}return _0x3ca24c;}function b(_0x12ecd4){const _0x3af971=_0x54d6;let _0x5ca0bb=_0x12ecd4[_0x3af971(0x154)](/:[\w]+\*/g,'*');return _0x5ca0bb=_0x5ca0bb['replace'](/[.+?^${}()|[\]\\]/g,_0x3af971(0x14e)),_0x5ca0bb=_0x5ca0bb[_0x3af971(0x154)](/\*/g,'.*'),new RegExp('^'+_0x5ca0bb+'$');}function x(_0x2ff17b,_0x479415){const _0x201966={'lQfSn':function(_0x316859,_0x42f647){return _0x316859(_0x42f647);}};for(let _0x2e53c0 of _0x479415)if(_0x201966['lQfSn'](b,_0x2e53c0)['test'](_0x2ff17b))return!0x0;return!0x1;}function P(_0x22fa57,_0x38518c){const _0x210a77=_0x54d6,_0x57ec7b={'eLUXW':function(_0x3dfe9a,_0x201684){return _0x3dfe9a(_0x201684);}};for(let [_0x501cf1,_0x2068c2]of Object[_0x210a77(0x135)](_0x38518c))if(_0x57ec7b['eLUXW'](b,_0x501cf1)[_0x210a77(0x14b)](_0x22fa57)){let _0x3e0103=_0x501cf1[_0x210a77(0x154)](/\*.*$/,''),_0x19fec9=_0x2068c2[_0x210a77(0x154)](/\*.*$/,'');return _0x22fa57['replace'](_0x3e0103,_0x19fec9);}return _0x22fa57;}function $(_0x11827a,_0x249849,_0x130946){const _0x2c580c=_0x54d6,_0xe471fb={'hgGhV':function(_0xab74e,_0xeebe66){return _0xab74e(_0xeebe66);}};let _0x2063db=_0x11827a[_0x2c580c(0x172)]('?')?'&':'?';return''+_0x11827a+_0x2063db+encodeURIComponent(_0x249849)+'='+_0xe471fb[_0x2c580c(0x10b)](encodeURIComponent,_0x130946);}function S(_0x4f9f13){const _0x5db8ce=_0x54d6;return _0x4f9f13[_0x5db8ce(0x154)](/^http/,'ws');}function C(_0x18d365){return _0x18d365['replace'](/^ws/,'http');}function y(_0x5204aa,_0x4a2766){return{'info':(..._0x528e20)=>{if(_0x4a2766)console['log']('['+_0x5204aa+']',..._0x528e20);},'warn':(..._0x3dd942)=>{const _0x395a24=_0x54d6;console[_0x395a24(0x163)]('['+_0x5204aa+']',..._0x3dd942);},'error':(..._0x58f755)=>{console['error']('['+_0x5204aa+']',..._0x58f755);}};}async function W(_0x207dc1){const _0x183c53=_0x54d6;try{let _0x241401=Bun[_0x183c53(0x11e)](_0x207dc1);if(!await _0x241401['exists']())return;let _0x5492b1=await _0x241401['text']();for(let _0x41aa05 of _0x5492b1[_0x183c53(0x122)]('\x0a')){let _0x211e2b=_0x41aa05[_0x183c53(0x13f)]();if(_0x211e2b&&!_0x211e2b['startsWith']('#')){let [_0x1bc0e1,..._0x4562dd]=_0x211e2b['split']('='),_0x60c6a1=_0x4562dd[_0x183c53(0x119)]('=')[_0x183c53(0x154)](/^["']|["']$/g,'');if(_0x1bc0e1&&!process['env'][_0x1bc0e1])process['env'][_0x1bc0e1]=_0x60c6a1;}}}catch{}}function v(_0x18fae3,_0x29a834=0x32){const _0x291cdb=_0x54d6,_0x5dad30={};_0x5dad30[_0x291cdb(0x181)]=function(_0xbfb084,_0x5bac3c){return _0xbfb084<=_0x5bac3c;};const _0x1c86dc=_0x5dad30;if(_0x1c86dc[_0x291cdb(0x181)](_0x18fae3[_0x291cdb(0x130)],_0x29a834))return _0x18fae3;return _0x18fae3['slice'](0x0,_0x29a834)+_0x291cdb(0x160);}function T(_0x3c2e53){const _0x740c88=_0x54d6,_0x555dfb={'zhSEq':function(_0x5d6ce4,_0xdb6c5b,_0x56a06d){return _0x5d6ce4(_0xdb6c5b,_0x56a06d);},'Dfdlb':function(_0x3f0f9f,_0x560972){return _0x3f0f9f(_0x560972);},'iJzvm':_0x740c88(0x132),'WfUpM':function(_0x5a2a30,_0x32b5c7){return _0x5a2a30(_0x32b5c7);},'ZcNgO':_0x740c88(0x134),'NwZNk':_0x740c88(0x16a),'XGqIK':function(_0x279b7c,_0x2c7ef1,_0x36c1c7){return _0x279b7c(_0x2c7ef1,_0x36c1c7);},'oGJDc':'follow','UnzxH':function(_0x2e199f,_0x4c182a){return _0x2e199f-_0x4c182a;},'wKSSc':'content-encoding','BJsnC':_0x740c88(0x117),'xoSZN':function(_0x5c608b,_0x4dedc5){return _0x5c608b(_0x4dedc5);},'PQvch':'Request\x20timeout','IWvFp':'Gateway\x20Timeout','hLFUO':_0x740c88(0x112)};let _0x2a5c62=_0x555dfb[_0x740c88(0x116)](y,'HTTP\x20Proxy',_0x3c2e53[_0x740c88(0x142)]??!0x1);function _0x33ebf9(_0x5bb611){const _0x2105cf=_0x740c88;for(let _0x59fcad of _0x3c2e53[_0x2105cf(0x170)])if(_0x555dfb['zhSEq'](x,_0x5bb611,_0x59fcad['paths']))return _0x59fcad;return null;}function _0x11f844(_0x3a8733,_0x37050b){const _0x55ab85=_0x740c88;let _0x17822f=_0x37050b[_0x55ab85(0x113)][_0x55ab85(0x154)](/\/$/,''),_0x5b3af6=_0x3a8733;if(_0x37050b['pathRewrite'])_0x5b3af6=P(_0x3a8733,_0x37050b['pathRewrite']);return''+_0x17822f+_0x5b3af6;}return{async 'handle'(_0x17365f){const _0x5ac0f1=_0x740c88;let _0x45da98=new URL(_0x17365f[_0x5ac0f1(0x113)]),_0x40e28c=_0x45da98[_0x5ac0f1(0x13a)],_0x3e3c4c=_0x555dfb['Dfdlb'](_0x33ebf9,_0x40e28c);if(!_0x3e3c4c)return null;let _0x57140e=performance[_0x5ac0f1(0x118)](),_0x9df55c=_0x11f844(_0x40e28c,_0x3e3c4c),_0x5e8591=_0x45da98[_0x5ac0f1(0x174)]?''+_0x9df55c+_0x45da98['search']:_0x9df55c;_0x2a5c62['info']('Proxying:\x20'+_0x17365f['method']+'\x20'+_0x40e28c+_0x5ac0f1(0x176)+_0x5e8591),_0x3c2e53[_0x5ac0f1(0x12c)]?.(_0x40e28c,_0x5e8591);let _0x1c0a8d=new Headers(_0x17365f['headers']);if(_0x3e3c4c['changeOrigin']!==!0x1){let _0x445bee=new URL(_0x3e3c4c[_0x5ac0f1(0x113)]);_0x1c0a8d['set'](_0x5ac0f1(0x16a),_0x445bee['host']),_0x1c0a8d['set'](_0x555dfb['iJzvm'],_0x445bee['origin']);}if(_0x3e3c4c['injectTokenFromCookie']){let _0x4506e2=_0x555dfb[_0x5ac0f1(0x10d)](h,_0x17365f[_0x5ac0f1(0x16e)][_0x5ac0f1(0x126)](_0x555dfb['ZcNgO']))[_0x3e3c4c['injectTokenFromCookie']['cookieName']];if(_0x4506e2){let _0x28f37f=_0x3e3c4c[_0x5ac0f1(0x127)][_0x5ac0f1(0x15c)]??'authorization';_0x1c0a8d['set'](_0x28f37f,_0x5ac0f1(0x185)+_0x4506e2),_0x2a5c62['info'](_0x5ac0f1(0x15e)+_0x28f37f);}}if(_0x3e3c4c['headers']){for(let [_0x2932fb,_0x218033]of Object[_0x5ac0f1(0x135)](_0x3e3c4c['headers']))_0x1c0a8d['set'](_0x2932fb,_0x218033);}_0x1c0a8d[_0x5ac0f1(0x158)](_0x555dfb['NwZNk']);try{let _0x87f4a6=new AbortController(),_0x1cb4de=_0x3e3c4c['timeout']??0x7530,_0x81614b=_0x555dfb['XGqIK'](setTimeout,()=>{_0x87f4a6['abort']();},_0x1cb4de),_0x2924c8=await fetch(_0x5e8591,{'method':_0x17365f[_0x5ac0f1(0x17d)],'headers':_0x1c0a8d,'body':_0x17365f[_0x5ac0f1(0x144)],'signal':_0x87f4a6[_0x5ac0f1(0x15a)],'redirect':_0x3e3c4c['followRedirects']===!0x1?_0x5ac0f1(0x12d):_0x555dfb[_0x5ac0f1(0x15b)]});clearTimeout(_0x81614b);let _0x4cea29=_0x555dfb[_0x5ac0f1(0x136)](performance[_0x5ac0f1(0x118)](),_0x57140e);_0x2a5c62['info']('Response:\x20'+_0x2924c8['status']+'\x20('+_0x4cea29['toFixed'](0x0)+_0x5ac0f1(0x151)),_0x3c2e53['onResponse']?.(_0x40e28c,_0x2924c8['status'],_0x4cea29);let _0x55a13f=new Headers(_0x2924c8['headers']);return _0x55a13f[_0x5ac0f1(0x158)](_0x555dfb[_0x5ac0f1(0x16d)]),_0x55a13f['delete'](_0x555dfb[_0x5ac0f1(0x10e)]),new Response(_0x2924c8['body'],{'status':_0x2924c8['status'],'statusText':_0x2924c8['statusText'],'headers':_0x55a13f});}catch(_0x51e7b2){let _0x18f88b=_0x555dfb['UnzxH'](performance[_0x5ac0f1(0x118)](),_0x57140e),_0x4303eb=_0x51e7b2 instanceof Error?_0x51e7b2:_0x555dfb[_0x5ac0f1(0x13d)](Error,_0x555dfb['xoSZN'](String,_0x51e7b2));const _0x548fe1={};_0x548fe1[_0x5ac0f1(0x166)]=_0x5ac0f1(0x147);const _0x2313c5={};_0x2313c5['status']=0x1f8,_0x2313c5['headers']=_0x548fe1;if(_0x4303eb['name']==='AbortError')return _0x2a5c62[_0x5ac0f1(0x120)](_0x5ac0f1(0x13b)+_0x18f88b['toFixed'](0x0)+_0x5ac0f1(0x109)+_0x40e28c),_0x3c2e53['onError']?.(_0x555dfb[_0x5ac0f1(0x13d)](Error,_0x555dfb[_0x5ac0f1(0x165)]),_0x40e28c,0x1f8),new Response(JSON['stringify']({'error':_0x555dfb['IWvFp'],'message':_0x555dfb[_0x5ac0f1(0x11b)]}),_0x2313c5);const _0x1833b4={};_0x1833b4[_0x5ac0f1(0x166)]=_0x5ac0f1(0x147);const _0x329f01={};return _0x329f01['status']=0x1f6,_0x329f01[_0x5ac0f1(0x16e)]=_0x1833b4,(_0x2a5c62['error']('Error:\x20'+_0x40e28c,_0x4303eb[_0x5ac0f1(0x17c)]),_0x3c2e53['onError']?.(_0x4303eb,_0x40e28c,0x1f6),new Response(JSON['stringify']({'error':_0x5ac0f1(0x125),'message':_0x4303eb[_0x5ac0f1(0x17c)]}),_0x329f01));}}};}function _0x54d6(_0x10b04c,_0x2d21ce){_0x10b04c=_0x10b04c-0x108;const _0xf04ca1=_0xf04c();let _0x54d64f=_0xf04ca1[_0x10b04c];if(_0x54d6['BASGjP']===undefined){var _0x77af5b=function(_0x4b3441){const _0x4b3e97='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41ef30='',_0x1be958='';for(let _0x164ebc=0x0,_0x303712,_0x15e968,_0x404af1=0x0;_0x15e968=_0x4b3441['charAt'](_0x404af1++);~_0x15e968&&(_0x303712=_0x164ebc%0x4?_0x303712*0x40+_0x15e968:_0x15e968,_0x164ebc++%0x4)?_0x41ef30+=String['fromCharCode'](0xff&_0x303712>>(-0x2*_0x164ebc&0x6)):0x0){_0x15e968=_0x4b3e97['indexOf'](_0x15e968);}for(let _0x1a82e1=0x0,_0x2912d1=_0x41ef30['length'];_0x1a82e1<_0x2912d1;_0x1a82e1++){_0x1be958+='%'+('00'+_0x41ef30['charCodeAt'](_0x1a82e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1be958);};_0x54d6['dsvpYw']=_0x77af5b,_0x54d6['QPMzLK']={},_0x54d6['BASGjP']=!![];}const _0x581b04=_0xf04ca1[0x0],_0x3cc6da=_0x10b04c+_0x581b04,_0xa0a1ef=_0x54d6['QPMzLK'][_0x3cc6da];return!_0xa0a1ef?(_0x54d64f=_0x54d6['dsvpYw'](_0x54d64f),_0x54d6['QPMzLK'][_0x3cc6da]=_0x54d64f):_0x54d64f=_0xa0a1ef,_0x54d64f;}function k(_0x4ab4f8){const _0x108868=_0x54d6,_0x53f0be={'NKDSO':_0x108868(0x15d),'cwIOQ':function(_0x15333b,_0x1a3bd3,_0x44cfc1,_0xb99056){return _0x15333b(_0x1a3bd3,_0x44cfc1,_0xb99056);},'Rspkx':'Token\x20injected\x20from\x20cookie','xpuGX':_0x108868(0x11a),'YbnAx':function(_0x3cc307,_0x39c846){return _0x3cc307!==_0x39c846;},'kbogk':_0x108868(0x114),'byyGI':'cookie','euPjE':function(_0x1284c8,_0x3387d3){return _0x1284c8===_0x3387d3;},'rKJDL':'string','xPRSE':function(_0x18046a,_0x4ad359){return _0x18046a instanceof _0x4ad359;},'KEqGz':function(_0x3cf4e6,_0x1f6d37){return _0x3cf4e6 instanceof _0x1f6d37;},'DAwDA':function(_0x1b78d8,_0x3ad1ce){return _0x1b78d8(_0x3ad1ce);},'aXIWn':_0x108868(0x138),'eMbRE':'WS\x20Proxy'};let _0x29287c=y(_0x53f0be[_0x108868(0x184)],_0x4ab4f8['debug']??!0x1);function _0x3c4e3f(_0x29fc47){const _0x1ad982=_0x108868;for(let _0x2bee3b of _0x4ab4f8[_0x1ad982(0x170)])if(x(_0x29fc47,_0x2bee3b['paths']))return _0x2bee3b;return null;}function _0x2b240c(_0x24891a,_0x563c2b,_0x3fd0a8,_0x2a9cf6){const _0x2b1271=_0x108868;let _0x107be4=_0x563c2b[_0x2b1271(0x113)]['replace'](/\/$/,'');if(_0x107be4['startsWith'](_0x53f0be[_0x2b1271(0x140)]))_0x107be4=S(_0x107be4);let _0x1b4683=_0x24891a;if(_0x563c2b['pathRewrite'])_0x1b4683=P(_0x24891a,_0x563c2b[_0x2b1271(0x12b)]);let _0x510acb=''+_0x107be4+_0x1b4683,_0x3383fc=_0x2a9cf6[_0x2b1271(0x155)]();if(_0x3383fc)_0x510acb=_0x510acb+'?'+_0x3383fc;if(_0x563c2b['injectTokenFromCookie']){let _0x19807d=_0x3fd0a8[_0x563c2b[_0x2b1271(0x127)][_0x2b1271(0x115)]];if(_0x19807d){let _0x4dc1d5=_0x563c2b['injectTokenFromCookie']['queryParam']??_0x2b1271(0x11f);_0x510acb=_0x53f0be[_0x2b1271(0x124)]($,_0x510acb,_0x4dc1d5,_0x19807d),_0x29287c[_0x2b1271(0x12e)](_0x53f0be[_0x2b1271(0x148)]);}}return _0x510acb;}return{'upgrade'(_0xe1b386,_0x2918c9){const _0x4157fe=_0x108868;let _0x1dd1ca=new URL(_0xe1b386['url']),_0x5968c0=_0x1dd1ca['pathname'];if(_0x4ab4f8['allowHmr']!==!0x1&&_0x5968c0['startsWith'](_0x53f0be['xpuGX']))return _0x29287c['info']('HMR\x20bypass:\x20'+_0x5968c0),!0x1;let _0x2b1365=_0x3c4e3f(_0x5968c0);if(!_0x2b1365){const _0x2a09b1={};_0x2a09b1[_0x4157fe(0x149)]=0x194;if(_0x53f0be['YbnAx'](_0x4ab4f8[_0x4157fe(0x167)],!0x1))return _0x29287c[_0x4157fe(0x163)](_0x4157fe(0x137)+_0x5968c0),new Response(_0x53f0be['kbogk'],_0x2a09b1);return!0x1;}let _0x338979=h(_0xe1b386[_0x4157fe(0x16e)][_0x4157fe(0x126)](_0x53f0be[_0x4157fe(0x159)])),_0x1c4979=_0x2b240c(_0x5968c0,_0x2b1365,_0x338979,_0x1dd1ca[_0x4157fe(0x13c)]);return _0x29287c[_0x4157fe(0x12e)]('Upgrading:\x20'+_0x5968c0+_0x4157fe(0x176)+_0x1c4979),_0x2918c9['upgrade'](_0xe1b386,{'data':{'backendWs':null,'path':_0x5968c0,'target':_0x1c4979,'buffer':[]}});},'websocket':{'open'(_0x19e68c){const _0x533d0a=_0x108868;let _0x3a2d71=_0x19e68c[_0x533d0a(0x161)],_0x3fd2fb=new WebSocket(_0x3a2d71[_0x533d0a(0x12f)]);_0x3fd2fb['onopen']=()=>{const _0x192ed2=_0x533d0a;_0x29287c[_0x192ed2(0x12e)]('Backend\x20connected:\x20'+_0x3a2d71[_0x192ed2(0x17f)]),_0x4ab4f8['onOpen']?.(_0x3a2d71['path'],_0x3a2d71[_0x192ed2(0x12f)]);for(let _0x542077 of _0x3a2d71['buffer'])_0x3fd2fb[_0x192ed2(0x157)](_0x542077);_0x3a2d71['buffer']=[];},_0x3fd2fb[_0x533d0a(0x145)]=_0x43af4d=>{const _0x206f76=_0x533d0a;if(_0x53f0be[_0x206f76(0x139)](typeof _0x43af4d['data'],_0x53f0be[_0x206f76(0x129)]))_0x19e68c[_0x206f76(0x157)](_0x43af4d[_0x206f76(0x161)]);else{if(_0x53f0be['xPRSE'](_0x43af4d['data'],ArrayBuffer))_0x19e68c['send'](new Uint8Array(_0x43af4d[_0x206f76(0x161)]));else{if(_0x53f0be[_0x206f76(0x10f)](_0x43af4d['data'],Blob))_0x43af4d['data']['arrayBuffer']()['then'](_0x435f4f=>{_0x19e68c['send'](new Uint8Array(_0x435f4f));});}}},_0x3fd2fb[_0x533d0a(0x11d)]=_0x2033ab=>{const _0x5082d9=_0x533d0a;let _0x373e11=_0x53f0be[_0x5082d9(0x141)](Error,_0x53f0be[_0x5082d9(0x110)]);_0x29287c[_0x5082d9(0x120)](_0x5082d9(0x152)+_0x3a2d71[_0x5082d9(0x17f)],_0x2033ab),_0x4ab4f8[_0x5082d9(0x169)]?.(_0x373e11,_0x3a2d71[_0x5082d9(0x17f)]);},_0x3fd2fb['onclose']=()=>{const _0x2579ea=_0x533d0a;_0x29287c[_0x2579ea(0x12e)]('Backend\x20closed:\x20'+_0x3a2d71[_0x2579ea(0x17f)]),_0x4ab4f8['onClose']?.(_0x3a2d71[_0x2579ea(0x17f)]),_0x19e68c['close']();},_0x3a2d71['backendWs']=_0x3fd2fb;},'message'(_0x51dd4a,_0x1d1519){const _0xeb4861=_0x108868;let _0x15e2fa=_0x51dd4a['data'];if(_0x15e2fa[_0xeb4861(0x16c)]?.['readyState']===WebSocket[_0xeb4861(0x153)])_0x15e2fa[_0xeb4861(0x16c)][_0xeb4861(0x157)](_0x1d1519);else{if(typeof _0x1d1519===_0x53f0be['rKJDL'])_0x15e2fa[_0xeb4861(0x123)][_0xeb4861(0x162)](_0x1d1519);else{let _0x5ee5ae=new ArrayBuffer(_0x1d1519[_0xeb4861(0x178)]);new Uint8Array(_0x5ee5ae)[_0xeb4861(0x183)](new Uint8Array(_0x1d1519)),_0x15e2fa['buffer']['push'](_0x5ee5ae);}}},'close'(_0x38959d){const _0x5ea06b=_0x108868;let _0x448a22=_0x38959d['data'];if(_0x29287c[_0x5ea06b(0x12e)](_0x5ea06b(0x14a)+_0x448a22[_0x5ea06b(0x17f)]),_0x448a22[_0x5ea06b(0x16c)])_0x448a22[_0x5ea06b(0x16c)][_0x5ea06b(0x175)]();},'drain'(_0x3500ea){}}};}function H(_0x21b597){const _0x3280c9=_0x54d6,_0x404cac={};_0x404cac[_0x3280c9(0x111)]=function(_0x53c99a,_0xb518f1){return _0x53c99a===_0xb518f1;},_0x404cac[_0x3280c9(0x10a)]=function(_0x4b8dc5,_0x17b7cb){return _0x4b8dc5 instanceof _0x17b7cb;},_0x404cac['ZvhCo']=_0x3280c9(0x17b);const _0x2d8459=_0x404cac;let _0x6a1327=k(_0x21b597),_0x278300=_0x21b597[_0x3280c9(0x14d)]??0xfa1,_0xd6397e=_0x21b597['hostname']??_0x3280c9(0x10c),_0x5c4808=Bun['serve']({'port':_0x278300,'hostname':_0xd6397e,'fetch'(_0x468057,_0x3fb33b){const _0x13c980=_0x3280c9;let _0x17844f=_0x6a1327['upgrade'](_0x468057,_0x3fb33b);if(_0x2d8459[_0x13c980(0x111)](_0x17844f,!0x0))return;if(_0x2d8459[_0x13c980(0x10a)](_0x17844f,Response))return _0x17844f;const _0x473b76={};return _0x473b76['status']=0x190,new Response(_0x2d8459[_0x13c980(0x108)],_0x473b76);},'websocket':_0x6a1327[_0x3280c9(0x177)]});return console['log'](_0x3280c9(0x12a)+_0xd6397e+':'+_0x278300),_0x5c4808;}async function U(_0x510d5a){const _0x1c4c43=_0x54d6,_0x191ed9={};_0x191ed9[_0x1c4c43(0x171)]='No\x20matching\x20proxy\x20target\x20for\x20this\x20request',_0x191ed9[_0x1c4c43(0x150)]='0.0.0.0',_0x191ed9['iwpRq']=_0x1c4c43(0x11c),_0x191ed9['zhnwR']=_0x1c4c43(0x180);const _0x569da2=_0x191ed9;let _0x435d86=_0x510d5a[_0x1c4c43(0x14d)]??0xfa0,_0x339bba=_0x510d5a['hostname']??_0x569da2[_0x1c4c43(0x150)],_0x2e81b5=_0x510d5a['dev']??!0x0,_0x2695df=y(_0x569da2['iwpRq'],_0x2e81b5);if(_0x510d5a['envPath'])await W(_0x510d5a[_0x1c4c43(0x128)]);_0x2695df['info'](_0x569da2['zhnwR']),_0x2695df['info'](_0x1c4c43(0x187)+_0x339bba),_0x2695df['info'](_0x1c4c43(0x13e)+_0x435d86),_0x2695df['info'](_0x1c4c43(0x14f)+_0x2e81b5);let _0x1883e0=_0x510d5a['ws']?k({..._0x510d5a['ws'],'debug':_0x510d5a['ws'][_0x1c4c43(0x142)]??_0x2e81b5}):null,_0x50b0a3=_0x510d5a['http']?T({..._0x510d5a[_0x1c4c43(0x15d)],'debug':_0x510d5a['http']['debug']??_0x2e81b5}):null;if(_0x1883e0&&_0x510d5a['ws']?.[_0x1c4c43(0x170)]){_0x2695df[_0x1c4c43(0x12e)](_0x1c4c43(0x17e)+_0x510d5a['ws']['targets'][_0x1c4c43(0x130)]);for(let _0x42b129 of _0x510d5a['ws'][_0x1c4c43(0x170)])_0x2695df['info']('\x20\x20\x20\x20-\x20'+_0x42b129['url']+':\x20'+_0x42b129[_0x1c4c43(0x186)][_0x1c4c43(0x119)](',\x20'));}if(_0x50b0a3&&_0x510d5a['http']?.[_0x1c4c43(0x170)]){_0x2695df['info'](_0x1c4c43(0x16f)+_0x510d5a['http'][_0x1c4c43(0x170)]['length']);for(let _0xdc779a of _0x510d5a['http'][_0x1c4c43(0x170)])_0x2695df[_0x1c4c43(0x12e)]('\x20\x20\x20\x20-\x20'+_0xdc779a[_0x1c4c43(0x113)]+':\x20'+_0xdc779a[_0x1c4c43(0x186)][_0x1c4c43(0x119)](',\x20'));}const _0x591b85={};_0x591b85['open']=function(){},_0x591b85['message']=function(){},_0x591b85['close']=function(){},_0x591b85['drain']=function(){};let _0xb180f6=Bun['serve']({'port':_0x435d86,'hostname':_0x339bba,async 'fetch'(_0x32e82b,_0x7e14e4){const _0x5eef7b=_0x1c4c43;if(_0x32e82b['headers'][_0x5eef7b(0x126)]('upgrade')?.['toLowerCase']()===_0x5eef7b(0x177)){if(_0x1883e0){let _0x40e3cd=_0x1883e0['upgrade'](_0x32e82b,_0x7e14e4);if(_0x40e3cd===!0x0)return;if(_0x40e3cd instanceof Response)return _0x40e3cd;}}if(_0x50b0a3){let _0x47f78f=await _0x50b0a3[_0x5eef7b(0x156)](_0x32e82b);if(_0x47f78f)return _0x47f78f;}const _0x99cd2f={};_0x99cd2f['error']=_0x5eef7b(0x173),_0x99cd2f['message']=_0x569da2['YfxoF'];const _0xf2aa3={};_0xf2aa3['Content-Type']=_0x5eef7b(0x147);const _0x1e16e1={};return _0x1e16e1['status']=0x194,_0x1e16e1['headers']=_0xf2aa3,new Response(JSON['stringify'](_0x99cd2f),_0x1e16e1);},'websocket':_0x1883e0?.['websocket']??_0x591b85});return _0x2695df['info']('>\x20Ready\x20on\x20http://'+_0x339bba+':'+_0x435d86),_0x510d5a[_0x1c4c43(0x133)]?.({'port':_0x435d86,'hostname':_0x339bba}),_0xb180f6;}const _0x59004e={};_0x59004e[_0x4bebfd(0x170)]=[],_0x59004e[_0x4bebfd(0x142)]=!0x1,_0x59004e['allowHmr']=!0x0,_0x59004e['rejectUnknown']=!0x0;const _0x350b7c={};_0x350b7c['targets']=[],_0x350b7c['debug']=!0x1;const _0x19113e={};_0x19113e[_0x4bebfd(0x14d)]=0xfa0,_0x19113e[_0x4bebfd(0x15f)]=_0x4bebfd(0x10c),_0x19113e['dev']=!0x0,_0x19113e['ws']=_0x59004e,_0x19113e[_0x4bebfd(0x15d)]=_0x350b7c;var B=_0x19113e;export{C as wsToHttp,H as startWsProxyServer,v as sanitizeForLog,P as rewritePath,h as parseCookies,x as matchPath,W as loadEnvFile,S as httpToWs,b as globToRegex,B as defaultProxyConfig,k as createWsProxyHandler,U as createProxyServer,y as createProxyLogger,T as createHttpProxyHandler,$ as addQueryParam};
|
|
1
|
+
(function(_0x246a57,_0x27bd6a){var _0xbf9c66=_0x3a3d,_0x55223d=_0x246a57();while(!![]){try{var _0x4be436=-parseInt(_0xbf9c66(0xed))/0x1+parseInt(_0xbf9c66(0xeb))/0x2+parseInt(_0xbf9c66(0xef))/0x3+-parseInt(_0xbf9c66(0xf1))/0x4*(-parseInt(_0xbf9c66(0xec))/0x5)+-parseInt(_0xbf9c66(0xf3))/0x6+parseInt(_0xbf9c66(0xf0))/0x7*(parseInt(_0xbf9c66(0xee))/0x8)+-parseInt(_0xbf9c66(0xf2))/0x9;if(_0x4be436===_0x27bd6a)break;else _0x55223d['push'](_0x55223d['shift']());}catch(_0x3db8e7){_0x55223d['push'](_0x55223d['shift']());}}}(_0x20e4,0xe9af1));export{createHttpProxyHandler}from'./httpProxy';export{createProxyServer,defaultProxyConfig}from'./server';export{addQueryParam,createProxyLogger,globToRegex,httpToWs,loadEnvFile,matchPath,parseCookies,rewritePath,sanitizeForLog,wsToHttp}from'./utils';export{createWsProxyHandler,startWsProxyServer}from'./wsProxy';function _0x3a3d(_0x2f66d9,_0x3839bc){_0x2f66d9=_0x2f66d9-0xeb;var _0x20e463=_0x20e4();var _0x3a3d2a=_0x20e463[_0x2f66d9];if(_0x3a3d['MixDQW']===undefined){var _0x4f44f2=function(_0xa0e9a5){var _0x318198='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5ad44d='',_0x1ecc64='';for(var _0x54b93e=0x0,_0x4bbfa0,_0x3459a2,_0x2111df=0x0;_0x3459a2=_0xa0e9a5['charAt'](_0x2111df++);~_0x3459a2&&(_0x4bbfa0=_0x54b93e%0x4?_0x4bbfa0*0x40+_0x3459a2:_0x3459a2,_0x54b93e++%0x4)?_0x5ad44d+=String['fromCharCode'](0xff&_0x4bbfa0>>(-0x2*_0x54b93e&0x6)):0x0){_0x3459a2=_0x318198['indexOf'](_0x3459a2);}for(var _0x4699a4=0x0,_0x280fd2=_0x5ad44d['length'];_0x4699a4<_0x280fd2;_0x4699a4++){_0x1ecc64+='%'+('00'+_0x5ad44d['charCodeAt'](_0x4699a4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ecc64);};_0x3a3d['iDCcRW']=_0x4f44f2,_0x3a3d['OyLXOZ']={},_0x3a3d['MixDQW']=!![];}var _0x1eeafe=_0x20e463[0x0],_0x31c02e=_0x2f66d9+_0x1eeafe,_0x572613=_0x3a3d['OyLXOZ'][_0x31c02e];return!_0x572613?(_0x3a3d2a=_0x3a3d['iDCcRW'](_0x3a3d2a),_0x3a3d['OyLXOZ'][_0x31c02e]=_0x3a3d2a):_0x3a3d2a=_0x572613,_0x3a3d2a;}function _0x20e4(){var _0x36c2b9=['mJq3mxjbrML4tG','mtG3mty4uePtwMHY','mtm0odu4odHksNLfBNq','mZuYmty5ngrVD1L3uq','mJK3mZK2nKztDezUsa','mJbAEgDSBuO','nJC4mtq3zwDVuMzn','mJa4ndHmt0P4tgm','mZm3otG4nhzItvvkwa'];_0x20e4=function(){return _0x36c2b9;};return _0x20e4();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x5612b3=_0x42d6;(function(_0x2cd718,_0x306b15){const _0x7b533b=_0x42d6,_0x28fb49=_0x2cd718();while(!![]){try{const _0x47abfa=parseInt(_0x7b533b(0x19f))/0x1*(parseInt(_0x7b533b(0x18f))/0x2)+parseInt(_0x7b533b(0x182))/0x3*(parseInt(_0x7b533b(0x194))/0x4)+parseInt(_0x7b533b(0x185))/0x5*(-parseInt(_0x7b533b(0x18a))/0x6)+-parseInt(_0x7b533b(0x198))/0x7*(-parseInt(_0x7b533b(0x17d))/0x8)+-parseInt(_0x7b533b(0x19e))/0x9*(parseInt(_0x7b533b(0x19b))/0xa)+-parseInt(_0x7b533b(0x188))/0xb*(parseInt(_0x7b533b(0x193))/0xc)+parseInt(_0x7b533b(0x18d))/0xd;if(_0x47abfa===_0x306b15)break;else _0x28fb49['push'](_0x28fb49['shift']());}catch(_0xbf2b83){_0x28fb49['push'](_0x28fb49['shift']());}}}(_0x27fc,0x9697d));import{createHttpProxyHandler}from'./httpProxy';function _0x27fc(){const _0x58a84c=['D2vIC29JA2v0','Aw5MBW','whz0DuK','mJmXsgjPvu5r','icaTigrLDJOG','q3v6A2i','nJe3merICKjxvG','AgfUzgXL','C2vYDMu','mtC3otnQvLn5AwO','mZyXntjOrhbKq1m','Dg9mB3DLCKnHC2u','A2PIB0S','zw52','B3bLBG','DgfYz2v0CW','mc4WlJaUma','nZiWmdHeqxjtDLy','pIbszwfKEsbVBIbODhrWoI8V','tM8GBwf0y2HPBMCGChjVEhKGDgfYz2v0igzVCIb0AgLZihjLCxvLC3q','icaGic0G','Cgf0Ahm','m2jMrvn0qG','ChjVzhvJDgLVBG','icaTieHuvfaGDgfYz2v0CZOG','mtC0mtG1y2fmrNjh','zgvIDwC','z2v0','mZG1AMLMzMrb','uhjVEhKGu2vYDMvY','mte0DKHHvwzO','Cg9YDa','Ahr0Ca','mZeWodCWmtDWswLhyuu','AgvHzgvYCW','mtjPsvnMC3y','DxjS','C3rYAw5NAwz5','Ag9ZDg5HBwu','ndiYntu2EMjgA3LL','mZmWmJK2ogPfBuP0Ca'];_0x27fc=function(){return _0x58a84c;};return _0x27fc();}import{createProxyLogger,loadEnvFile}from'./utils';import{createWsProxyHandler}from'./wsProxy';function _0x42d6(_0x370f21,_0x40b345){_0x370f21=_0x370f21-0x177;const _0x27fc94=_0x27fc();let _0x42d64b=_0x27fc94[_0x370f21];if(_0x42d6['lwnsXM']===undefined){var _0x31ff60=function(_0xfcef79){const _0xbf5974='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a90f5='',_0x4642e6='';for(let _0xfec85c=0x0,_0x52abd3,_0x2a5836,_0x5bb682=0x0;_0x2a5836=_0xfcef79['charAt'](_0x5bb682++);~_0x2a5836&&(_0x52abd3=_0xfec85c%0x4?_0x52abd3*0x40+_0x2a5836:_0x2a5836,_0xfec85c++%0x4)?_0x2a90f5+=String['fromCharCode'](0xff&_0x52abd3>>(-0x2*_0xfec85c&0x6)):0x0){_0x2a5836=_0xbf5974['indexOf'](_0x2a5836);}for(let _0x3ebf75=0x0,_0x3d9d8d=_0x2a90f5['length'];_0x3ebf75<_0x3d9d8d;_0x3ebf75++){_0x4642e6+='%'+('00'+_0x2a90f5['charCodeAt'](_0x3ebf75)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4642e6);};_0x42d6['ByhthN']=_0x31ff60,_0x42d6['zwQPIX']={},_0x42d6['lwnsXM']=!![];}const _0x472a65=_0x27fc94[0x0],_0x4baf6d=_0x370f21+_0x472a65,_0x38da77=_0x42d6['zwQPIX'][_0x4baf6d];return!_0x38da77?(_0x42d64b=_0x42d6['ByhthN'](_0x42d64b),_0x42d6['zwQPIX'][_0x4baf6d]=_0x42d64b):_0x42d64b=_0x38da77,_0x42d64b;}export async function createProxyServer(_0x3e4464){const _0x3a60b9=_0x42d6,_0x277e75={'nLOZG':_0x3a60b9(0x195),'CnPKo':function(_0x2fe5f3,_0x1563e1){return _0x2fe5f3 instanceof _0x1563e1;},'kjboK':'Not\x20Found','jDVOV':_0x3a60b9(0x17f),'XvtuI':_0x3a60b9(0x17c),'kqZaH':function(_0x38f019,_0xda1ad8){return _0x38f019!==_0xda1ad8;},'fyJul':_0x3a60b9(0x189),'iAIKH':function(_0x535a45,_0x4a11be){return _0x535a45(_0x4a11be);},'WVVuV':function(_0x42805d,_0x44be9b){return _0x42805d(_0x44be9b);},'Cuzkb':function(_0x950147,_0x42540e){return _0x950147(_0x42540e);}},_0xd0bac=_0x3e4464['port']??0xfa0,_0x237956=_0x3e4464['hostname']??_0x277e75[_0x3a60b9(0x197)],_0x2931c9=_0x3e4464['dev']??_0x277e75['kqZaH'](process[_0x3a60b9(0x179)]['NODE_ENV'],'production'),_0x1978a2=createProxyLogger(_0x277e75['fyJul'],_0x2931c9);_0x3e4464['envPath']&&await _0x277e75['iAIKH'](loadEnvFile,_0x3e4464['envPath']);_0x1978a2[_0x3a60b9(0x196)]('Starting\x20proxy\x20server...'),_0x1978a2[_0x3a60b9(0x196)]('\x20\x20-\x20hostname:\x20'+_0x237956),_0x1978a2['info']('\x20\x20-\x20port:\x20'+_0xd0bac),_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x199)+_0x2931c9);const _0x66982a=_0x3e4464['ws']?_0x277e75['WVVuV'](createWsProxyHandler,{..._0x3e4464['ws'],'debug':_0x3e4464['ws']['debug']??_0x2931c9}):null,_0xd877ae=_0x3e4464[_0x3a60b9(0x18c)]?_0x277e75[_0x3a60b9(0x19a)](createHttpProxyHandler,{..._0x3e4464['http'],'debug':_0x3e4464[_0x3a60b9(0x18c)]['debug']??_0x2931c9}):null;if(_0x66982a&&_0x3e4464['ws']?.['targets']){_0x1978a2[_0x3a60b9(0x196)]('\x20\x20-\x20WebSocket\x20targets:\x20'+_0x3e4464['ws']['targets']['length']);for(const _0x3d9339 of _0x3e4464['ws']['targets']){_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x180)+_0x3d9339['url']+':\x20'+_0x3d9339[_0x3a60b9(0x181)]['join'](',\x20'));}}if(_0xd877ae&&_0x3e4464[_0x3a60b9(0x18c)]?.[_0x3a60b9(0x17b)]){_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x184)+_0x3e4464['http'][_0x3a60b9(0x17b)]['length']);for(const _0x5ed5ea of _0x3e4464['http']['targets']){_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x180)+_0x5ed5ea[_0x3a60b9(0x190)]+':\x20'+_0x5ed5ea[_0x3a60b9(0x181)]['join'](',\x20'));}}const _0x788f15={};_0x788f15[_0x3a60b9(0x17a)]=function(){},_0x788f15['message']=function(){},_0x788f15['close']=function(){},_0x788f15['drain']=function(){};const _0xc0701c=Bun[_0x3a60b9(0x19d)]({'port':_0xd0bac,'hostname':_0x237956,async 'fetch'(_0x3c730f,_0x6c560c){const _0x11fb56=_0x3a60b9;if(_0x3c730f[_0x11fb56(0x18e)][_0x11fb56(0x187)]('upgrade')?.[_0x11fb56(0x177)]()===_0x277e75['nLOZG']){if(_0x66982a){const _0x59cfce=_0x66982a['upgrade'](_0x3c730f,_0x6c560c);if(_0x59cfce===!![])return undefined;if(_0x277e75['CnPKo'](_0x59cfce,Response))return _0x59cfce;}}if(_0xd877ae){const _0x177788=await _0xd877ae[_0x11fb56(0x19c)](_0x3c730f);if(_0x177788)return _0x177788;}const _0x54b447={};_0x54b447['error']=_0x277e75[_0x11fb56(0x178)],_0x54b447['message']=_0x277e75['jDVOV'];const _0x37dd83={};_0x37dd83['Content-Type']='application/json';const _0x766f45={};return _0x766f45['status']=0x194,_0x766f45[_0x11fb56(0x18e)]=_0x37dd83,new Response(JSON[_0x11fb56(0x191)](_0x54b447),_0x766f45);},'websocket':_0x66982a?.['websocket']??_0x788f15});_0x1978a2[_0x3a60b9(0x196)](_0x3a60b9(0x17e)+_0x237956+':'+_0xd0bac);const _0x37763e={};return _0x37763e[_0x3a60b9(0x18b)]=_0xd0bac,_0x37763e[_0x3a60b9(0x192)]=_0x237956,_0x3e4464['onReady']?.(_0x37763e),_0xc0701c;}const _0x183250={};_0x183250[_0x5612b3(0x17b)]=[],_0x183250[_0x5612b3(0x186)]=![],_0x183250['allowHmr']=!![],_0x183250['rejectUnknown']=!![];const _0x3a364e={};_0x3a364e[_0x5612b3(0x17b)]=[],_0x3a364e['debug']=![];const _0x5ad083={};_0x5ad083[_0x5612b3(0x18b)]=0xfa0,_0x5ad083['hostname']='0.0.0.0',_0x5ad083['dev']=process[_0x5612b3(0x179)]['NODE_ENV']!==_0x5612b3(0x183),_0x5ad083['ws']=_0x183250,_0x5ad083['http']=_0x3a364e;export const defaultProxyConfig=_0x5ad083;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3ef5e0,_0x5c1108){const _0x285cf2=_0x1c60,_0x48b769=_0x3ef5e0();while(!![]){try{const _0xfa35ab=parseInt(_0x285cf2(0xc1))/0x1+-parseInt(_0x285cf2(0xcf))/0x2+-parseInt(_0x285cf2(0xd2))/0x3*(parseInt(_0x285cf2(0xc5))/0x4)+-parseInt(_0x285cf2(0xc8))/0x5+parseInt(_0x285cf2(0xc9))/0x6+-parseInt(_0x285cf2(0xcd))/0x7+-parseInt(_0x285cf2(0xba))/0x8*(-parseInt(_0x285cf2(0xc7))/0x9);if(_0xfa35ab===_0x5c1108)break;else _0x48b769['push'](_0x48b769['shift']());}catch(_0x2f2c2e){_0x48b769['push'](_0x48b769['shift']());}}}(_0x3a55,0x9dd2b));export function parseCookies(_0x58abc2){const _0x29e754=_0x1c60,_0x3cb20f={};_0x3cb20f[_0x29e754(0xd3)]=function(_0x3bcd87,_0x3f8225){return _0x3bcd87>_0x3f8225;};const _0x30aecc=_0x3cb20f,_0x56c34e={};if(!_0x58abc2)return _0x56c34e;for(const _0x2e6ecb of _0x58abc2['split'](';')){const [_0x1d4081,..._0x370ec4]=_0x2e6ecb['trim']()['split']('=');_0x1d4081&&_0x30aecc[_0x29e754(0xd3)](_0x370ec4[_0x29e754(0xcb)],0x0)&&(_0x56c34e[_0x1d4081]=decodeURIComponent(_0x370ec4['join']('=')));}return _0x56c34e;}export function globToRegex(_0x5c8fbf){const _0x388912=_0x1c60,_0x19919a={};_0x19919a['rRlUN']=_0x388912(0xbe);const _0x557edf=_0x19919a;let _0x496b1b=_0x5c8fbf[_0x388912(0xbf)](/:[\w]+\*/g,'*');return _0x496b1b=_0x496b1b[_0x388912(0xbf)](/[.+?^${}()|[\]\\]/g,_0x557edf[_0x388912(0xc4)]),_0x496b1b=_0x496b1b[_0x388912(0xbf)](/\*/g,'.*'),new RegExp('^'+_0x496b1b+'$');}function _0x1c60(_0x4b538d,_0x8bf406){_0x4b538d=_0x4b538d-0xb9;const _0x3a550b=_0x3a55();let _0x1c6069=_0x3a550b[_0x4b538d];if(_0x1c60['EFDBgA']===undefined){var _0x1f6e75=function(_0x4c2b21){const _0x11ff1c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x40adcb='',_0x195da7='';for(let _0x10f1be=0x0,_0x5dcff7,_0x353799,_0x2a1904=0x0;_0x353799=_0x4c2b21['charAt'](_0x2a1904++);~_0x353799&&(_0x5dcff7=_0x10f1be%0x4?_0x5dcff7*0x40+_0x353799:_0x353799,_0x10f1be++%0x4)?_0x40adcb+=String['fromCharCode'](0xff&_0x5dcff7>>(-0x2*_0x10f1be&0x6)):0x0){_0x353799=_0x11ff1c['indexOf'](_0x353799);}for(let _0xfa01e0=0x0,_0x59f410=_0x40adcb['length'];_0xfa01e0<_0x59f410;_0xfa01e0++){_0x195da7+='%'+('00'+_0x40adcb['charCodeAt'](_0xfa01e0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x195da7);};_0x1c60['QAaDmm']=_0x1f6e75,_0x1c60['OTLjXM']={},_0x1c60['EFDBgA']=!![];}const _0xf94ef7=_0x3a550b[0x0],_0x256d93=_0x4b538d+_0xf94ef7,_0x2612db=_0x1c60['OTLjXM'][_0x256d93];return!_0x2612db?(_0x1c6069=_0x1c60['QAaDmm'](_0x1c6069),_0x1c60['OTLjXM'][_0x256d93]=_0x1c6069):_0x1c6069=_0x2612db,_0x1c6069;}export function matchPath(_0x1eb963,_0x425a08){const _0x59c317=_0x1c60,_0x53d734={'YaFan':function(_0x5e0ee5,_0x5c47fb){return _0x5e0ee5(_0x5c47fb);}};for(const _0x59c338 of _0x425a08){const _0x11e299=_0x53d734[_0x59c317(0xc6)](globToRegex,_0x59c338);if(_0x11e299[_0x59c317(0xc2)](_0x1eb963))return!![];}return![];}function _0x3a55(){const _0x2657e3=['CLjSvu4','mJqXnLbVu1zKEa','wwfgyw4','odmWnJfAvfLwCgW','mZG2mdG0mhjitKXjva','mtu2mZa2Cu9qsxHd','Ahr0Ca','BgvUz3rO','zw50CMLLCW','mJa5nJGYmKnHuNLWAW','Aw5JBhvKzxm','nZG1mdrmEfzQufy','Dgv4Da','zw52','mtKYovz1qMnREG','CgjUrg8','zxHPC3rZ','mtGXnNzmCezACa','y2H6q0i','zxjYB3i','C3bSAxq','xcqM','CMvWBgfJzq','zMLSzq','mJq3ndDIwNn4Bvm','DgvZDa','Bg9N'];_0x3a55=function(){return _0x2657e3;};return _0x3a55();}export function rewritePath(_0x2dd94f,_0x197466){const _0x56ded8=_0x1c60;for(const [_0x3d42da,_0x35ec5a]of Object[_0x56ded8(0xcc)](_0x197466)){const _0x3ef4fc=globToRegex(_0x3d42da);if(_0x3ef4fc[_0x56ded8(0xc2)](_0x2dd94f)){const _0x25ae8e=_0x3d42da[_0x56ded8(0xbf)](/\*.*$/,''),_0x135561=_0x35ec5a[_0x56ded8(0xbf)](/\*.*$/,'');return _0x2dd94f['replace'](_0x25ae8e,_0x135561);}}return _0x2dd94f;}export function addQueryParam(_0x59ff50,_0x58572c,_0xb224b1){const _0x1c7206=_0x1c60,_0x9c65c2=_0x59ff50[_0x1c7206(0xce)]('?')?'&':'?';return''+_0x59ff50+_0x9c65c2+encodeURIComponent(_0x58572c)+'='+encodeURIComponent(_0xb224b1);}export function httpToWs(_0x5b5a8f){return _0x5b5a8f['replace'](/^http/,'ws');}export function wsToHttp(_0xa916ba){const _0x534377=_0x1c60,_0x5636e2={};_0x5636e2['pCNGp']=_0x534377(0xca);const _0x572b04=_0x5636e2;return _0xa916ba[_0x534377(0xbf)](/^ws/,_0x572b04['pCNGp']);}export function createProxyLogger(_0x27f943,_0x231c6f){return{'info':(..._0x5b383e)=>{const _0x1a761c=_0x1c60;_0x231c6f&&console[_0x1a761c(0xc3)]('['+_0x27f943+']',..._0x5b383e);},'warn':(..._0x18bc06)=>{console['warn']('['+_0x27f943+']',..._0x18bc06);},'error':(..._0x41baf8)=>{const _0x361dee=_0x1c60;console[_0x361dee(0xbc)]('['+_0x27f943+']',..._0x41baf8);}};}export async function loadEnvFile(_0x329e93){const _0x30ef81=_0x1c60;try{const _0x27326f=Bun[_0x30ef81(0xc0)](_0x329e93),_0x413d11=await _0x27326f[_0x30ef81(0xb9)]();if(!_0x413d11)return;const _0x104d23=await _0x27326f[_0x30ef81(0xd0)]();for(const _0x209dd7 of _0x104d23[_0x30ef81(0xbd)]('\x0a')){const _0x135fb7=_0x209dd7['trim']();if(_0x135fb7&&!_0x135fb7['startsWith']('#')){const [_0x561d74,..._0x320b05]=_0x135fb7['split']('='),_0x2f6713=_0x320b05['join']('=')[_0x30ef81(0xbf)](/^["']|["']$/g,'');_0x561d74&&!process[_0x30ef81(0xd1)][_0x561d74]&&(process[_0x30ef81(0xd1)][_0x561d74]=_0x2f6713);}}}catch{}}export function sanitizeForLog(_0x1b20a6,_0x353c8d=0x32){const _0x24bd5f=_0x1c60,_0x332263={};_0x332263['chzCB']=function(_0x1ce4f9,_0x8ca2aa){return _0x1ce4f9<=_0x8ca2aa;};const _0x9ee0d7=_0x332263;if(_0x9ee0d7[_0x24bd5f(0xbb)](_0x1b20a6[_0x24bd5f(0xcb)],_0x353c8d))return _0x1b20a6;return _0x1b20a6['slice'](0x0,_0x353c8d)+'...';}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x169a25,_0xfaad65){const _0x1145f4=_0x2d84,_0x1e6f59=_0x169a25();while(!![]){try{const _0x5d6f53=-parseInt(_0x1145f4(0xac))/0x1*(parseInt(_0x1145f4(0xa7))/0x2)+-parseInt(_0x1145f4(0x96))/0x3*(parseInt(_0x1145f4(0x95))/0x4)+-parseInt(_0x1145f4(0x98))/0x5*(-parseInt(_0x1145f4(0xb3))/0x6)+parseInt(_0x1145f4(0xc9))/0x7*(-parseInt(_0x1145f4(0xaa))/0x8)+parseInt(_0x1145f4(0xb6))/0x9*(-parseInt(_0x1145f4(0xbc))/0xa)+parseInt(_0x1145f4(0xc2))/0xb+-parseInt(_0x1145f4(0xb8))/0xc*(-parseInt(_0x1145f4(0xc3))/0xd);if(_0x5d6f53===_0xfaad65)break;else _0x1e6f59['push'](_0x1e6f59['shift']());}catch(_0x9c3c7){_0x1e6f59['push'](_0x1e6f59['shift']());}}}(_0x36b3,0xdfbd3));function _0x2d84(_0x4330ae,_0x1d7aa9){_0x4330ae=_0x4330ae-0x8d;const _0x36b3b2=_0x36b3();let _0x2d84f4=_0x36b3b2[_0x4330ae];if(_0x2d84['yneWRX']===undefined){var _0x40b8af=function(_0x25b399){const _0x5d4d6b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x40855b='',_0x3072a0='';for(let _0x4717ca=0x0,_0x3b11ba,_0x4eeb81,_0x4e1c67=0x0;_0x4eeb81=_0x25b399['charAt'](_0x4e1c67++);~_0x4eeb81&&(_0x3b11ba=_0x4717ca%0x4?_0x3b11ba*0x40+_0x4eeb81:_0x4eeb81,_0x4717ca++%0x4)?_0x40855b+=String['fromCharCode'](0xff&_0x3b11ba>>(-0x2*_0x4717ca&0x6)):0x0){_0x4eeb81=_0x5d4d6b['indexOf'](_0x4eeb81);}for(let _0x2f6494=0x0,_0x3bcd8c=_0x40855b['length'];_0x2f6494<_0x3bcd8c;_0x2f6494++){_0x3072a0+='%'+('00'+_0x40855b['charCodeAt'](_0x2f6494)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3072a0);};_0x2d84['GcaXQB']=_0x40b8af,_0x2d84['QXZMlY']={},_0x2d84['yneWRX']=!![];}const _0x49ac3f=_0x36b3b2[0x0],_0xa15ed2=_0x4330ae+_0x49ac3f,_0x13fb80=_0x2d84['QXZMlY'][_0xa15ed2];return!_0x13fb80?(_0x2d84f4=_0x2d84['GcaXQB'](_0x2d84f4),_0x2d84['QXZMlY'][_0xa15ed2]=_0x2d84f4):_0x2d84f4=_0x13fb80,_0x2d84f4;}import{addQueryParam,createProxyLogger,httpToWs,matchPath,parseCookies,rewritePath}from'./utils';export function createWsProxyHandler(_0x12484f){const _0x2fdfa2=_0x2d84,_0x2b2028={'qpyWP':'http','BsLqA':function(_0xcf1b65,_0x1e6a14){return _0xcf1b65(_0x1e6a14);},'NMJVl':_0x2fdfa2(0xa3),'gRaIo':function(_0x295fff,_0x5761e0){return _0x295fff!==_0x5761e0;},'HBoOF':function(_0x521456,_0x4e9efa){return _0x521456(_0x4e9efa);},'EPOgu':_0x2fdfa2(0xb5),'vvAKw':function(_0x4e516c,_0x49ec97){return _0x4e516c(_0x49ec97);},'tGpEA':function(_0x2e6efc,_0xa42fd1){return _0x2e6efc===_0xa42fd1;},'XcfhV':_0x2fdfa2(0xb9),'zlafH':'Backend\x20WebSocket\x20error','tuHdy':function(_0x211f22,_0x1cd467){return _0x211f22===_0x1cd467;},'XcPxH':function(_0x5900ba,_0x41be03,_0x53b7f8){return _0x5900ba(_0x41be03,_0x53b7f8);}},_0x25aa19=_0x2b2028['XcPxH'](createProxyLogger,_0x2fdfa2(0x9b),_0x12484f['debug']??![]);function _0x27f929(_0x3dbe3d){const _0x1ae32e=_0x2fdfa2;for(const _0x541a01 of _0x12484f[_0x1ae32e(0x9f)]){if(matchPath(_0x3dbe3d,_0x541a01[_0x1ae32e(0xb2)]))return _0x541a01;}return null;}function _0x22a75c(_0x4e094e,_0x334002,_0x3dc91a,_0x5ce1a7){const _0x410425=_0x2fdfa2;let _0x9836c6=_0x334002['url']['replace'](/\/$/,'');_0x9836c6['startsWith'](_0x2b2028['qpyWP'])&&(_0x9836c6=_0x2b2028['BsLqA'](httpToWs,_0x9836c6));let _0x58eb8b=_0x4e094e;_0x334002[_0x410425(0x92)]&&(_0x58eb8b=rewritePath(_0x4e094e,_0x334002['pathRewrite']));let _0x318b64=''+_0x9836c6+_0x58eb8b;const _0x1b201a=_0x5ce1a7[_0x410425(0x8e)]();_0x1b201a&&(_0x318b64=_0x318b64+'?'+_0x1b201a);if(_0x334002['injectTokenFromCookie']){const _0x2d2d18=_0x3dc91a[_0x334002[_0x410425(0xa5)][_0x410425(0xbb)]];if(_0x2d2d18){const _0x5148b1=_0x334002['injectTokenFromCookie'][_0x410425(0x9a)]??_0x2b2028['NMJVl'];_0x318b64=addQueryParam(_0x318b64,_0x5148b1,_0x2d2d18),_0x25aa19[_0x410425(0xb7)]('Token\x20injected\x20from\x20cookie');}}return _0x318b64;}return{'upgrade'(_0x12b2f3,_0x1ac804){const _0x2ae87c=_0x2fdfa2,_0x34c587=new URL(_0x12b2f3['url']),_0x4dfd57=_0x34c587['pathname'];if(_0x2b2028[_0x2ae87c(0xc4)](_0x12484f['allowHmr'],![])&&_0x4dfd57['startsWith'](_0x2ae87c(0x9d)))return _0x25aa19[_0x2ae87c(0xb7)](_0x2ae87c(0xa0)+_0x4dfd57),![];const _0x3929e4=_0x2b2028[_0x2ae87c(0xba)](_0x27f929,_0x4dfd57);if(!_0x3929e4){if(_0x12484f[_0x2ae87c(0x99)]!==![]){_0x25aa19[_0x2ae87c(0x90)]('No\x20target\x20found\x20for:\x20'+_0x4dfd57);const _0x186e7e={};return _0x186e7e['status']=0x194,new Response(_0x2b2028[_0x2ae87c(0xa2)],_0x186e7e);}return![];}const _0x5831b7=_0x2b2028[_0x2ae87c(0xa8)](parseCookies,_0x12b2f3[_0x2ae87c(0xb4)][_0x2ae87c(0xaf)]('cookie')),_0x46dc70=_0x22a75c(_0x4dfd57,_0x3929e4,_0x5831b7,_0x34c587[_0x2ae87c(0x8f)]);_0x25aa19[_0x2ae87c(0xb7)](_0x2ae87c(0xc5)+_0x4dfd57+_0x2ae87c(0x9c)+_0x46dc70);const _0xe892e5={};_0xe892e5['backendWs']=null,_0xe892e5[_0x2ae87c(0x9e)]=_0x4dfd57,_0xe892e5['target']=_0x46dc70,_0xe892e5[_0x2ae87c(0xca)]=[];const _0x205c5a={};_0x205c5a['data']=_0xe892e5;const _0x1595b6=_0x1ac804['upgrade'](_0x12b2f3,_0x205c5a);return _0x1595b6;},'websocket':{'open'(_0x361e86){const _0x1b38ae=_0x2fdfa2,_0x3189e6={};_0x3189e6[_0x1b38ae(0x94)]=_0x2b2028[_0x1b38ae(0xc7)];const _0x9ab78f=_0x3189e6,_0xf23e9f=_0x361e86['data'],_0xd9bd3d=new WebSocket(_0xf23e9f[_0x1b38ae(0xbe)]);_0xd9bd3d[_0x1b38ae(0xae)]=()=>{const _0x1cd550=_0x1b38ae;_0x25aa19['info'](_0x1cd550(0xa6)+_0xf23e9f[_0x1cd550(0x9e)]),_0x12484f['onOpen']?.(_0xf23e9f['path'],_0xf23e9f[_0x1cd550(0xbe)]);for(const _0x6c3aeb of _0xf23e9f[_0x1cd550(0xca)]){_0xd9bd3d[_0x1cd550(0x91)](_0x6c3aeb);}_0xf23e9f['buffer']=[];},_0xd9bd3d['onmessage']=_0x31d1c6=>{const _0x377fc3=_0x1b38ae;if(_0x2b2028['tGpEA'](typeof _0x31d1c6[_0x377fc3(0xc8)],_0x2b2028['XcfhV']))_0x361e86[_0x377fc3(0x91)](_0x31d1c6['data']);else{if(_0x31d1c6['data']instanceof ArrayBuffer)_0x361e86['send'](new Uint8Array(_0x31d1c6['data']));else _0x31d1c6['data']instanceof Blob&&_0x31d1c6[_0x377fc3(0xc8)][_0x377fc3(0xb1)]()['then'](_0x293840=>{_0x361e86['send'](new Uint8Array(_0x293840));});}},_0xd9bd3d[_0x1b38ae(0xb0)]=_0xf658a6=>{const _0x5a5d0e=_0x1b38ae,_0x17d700=new Error(_0x9ab78f['rJZCO']);_0x25aa19['error'](_0x5a5d0e(0xc6)+_0xf23e9f[_0x5a5d0e(0x9e)],_0xf658a6),_0x12484f['onError']?.(_0x17d700,_0xf23e9f['path']);},_0xd9bd3d['onclose']=()=>{const _0x42ac43=_0x1b38ae;_0x25aa19['info']('Backend\x20closed:\x20'+_0xf23e9f['path']),_0x12484f[_0x42ac43(0x97)]?.(_0xf23e9f['path']),_0x361e86['close']();},_0xf23e9f[_0x1b38ae(0xa9)]=_0xd9bd3d;},'message'(_0x2637ce,_0x123286){const _0x431cee=_0x2fdfa2,_0x1ad0eb=_0x2637ce[_0x431cee(0xc8)];if(_0x2b2028['tuHdy'](_0x1ad0eb['backendWs']?.['readyState'],WebSocket[_0x431cee(0xbd)]))_0x1ad0eb['backendWs']['send'](_0x123286);else{if(typeof _0x123286===_0x2b2028[_0x431cee(0xa4)])_0x1ad0eb['buffer']['push'](_0x123286);else{const _0x40b783=new ArrayBuffer(_0x123286[_0x431cee(0xad)]);new Uint8Array(_0x40b783)[_0x431cee(0x93)](new Uint8Array(_0x123286)),_0x1ad0eb[_0x431cee(0xca)][_0x431cee(0xbf)](_0x40b783);}}},'close'(_0x4de6f0){const _0x3a760a=_0x2fdfa2,_0x4a1972=_0x4de6f0['data'];_0x25aa19[_0x3a760a(0xb7)]('Client\x20closed:\x20'+_0x4a1972['path']),_0x4a1972['backendWs']&&_0x4a1972[_0x3a760a(0xa9)]['close']();},'drain'(_0xc54b87){}}};}export function startWsProxyServer(_0x2a7d02){const _0x499419=_0x2d84,_0x26fb62={'urECi':function(_0x12ecb3,_0x36028a){return _0x12ecb3 instanceof _0x36028a;},'jQVtx':'Not\x20a\x20WebSocket\x20request','ePMGN':function(_0x388eca,_0x5455e5){return _0x388eca(_0x5455e5);},'OYvIZ':_0x499419(0xc0)},_0x379861=_0x26fb62[_0x499419(0xc1)](createWsProxyHandler,_0x2a7d02),_0x33eb2b=_0x2a7d02['port']??0xfa1,_0x3d0e9f=_0x2a7d02['hostname']??_0x26fb62['OYvIZ'],_0x1386fb=Bun['serve']({'port':_0x33eb2b,'hostname':_0x3d0e9f,'fetch'(_0x8ad01f,_0x471899){const _0x2461e9=_0x499419,_0xacebc7=_0x379861['upgrade'](_0x8ad01f,_0x471899);if(_0xacebc7===!![])return undefined;if(_0x26fb62[_0x2461e9(0xa1)](_0xacebc7,Response))return _0xacebc7;const _0x4b3269={};return _0x4b3269[_0x2461e9(0x8d)]=0x190,new Response(_0x26fb62['jQVtx'],_0x4b3269);},'websocket':_0x379861[_0x499419(0xab)]});return console['log']('[WS\x20Proxy]\x20Started\x20on\x20'+_0x3d0e9f+':'+_0x33eb2b),_0x1386fb;}function _0x36b3(){const _0x3fe74a=['mtq3u3HVqLrJ','yNvMzMvY','C3rHDhvZ','Dg9tDhjPBMC','C2vHCMnOugfYyw1Z','D2fYBG','C2vUza','Cgf0AfjLD3jPDgu','C2v0','CKPAq08','nJC0odyWngrZywjPAq','m3nHzeHNwq','B25dBg9Zzq','oteWnZK2nwTtvg5eqW','CMvQzwn0vw5RBM93BG','CxvLCNLqyxjHBq','v1mGuhjVEhK','ic0+ia','l19UzxH0l3DLyNbHy2STAg1Y','Cgf0Aa','DgfYz2v0CW','se1sigj5CgfZCZOG','Dxjfq2K','rvbpz3u','Dg9Rzw4','wgnMAfy','Aw5Qzwn0vg9Rzw5gCM9Tq29VA2LL','qMfJA2vUzcbJB25Uzwn0zwq6ia','mNfoqKn2zG','DNzbs3C','yMfJA2vUzfDZ','mJmZmZm2C3HsyNrT','D2vIC29JA2v0','mZGYnJyZqLLlCufy','yNL0zuXLBMD0Aa','B25VCgvU','z2v0','B25LCNjVCG','yxjYyxLcDwzMzxi','Cgf0Ahm','nNntzNHTza','AgvHzgvYCW','v2vIu29JA2v0ihbHDgGGBM90igzVDw5K','mtHHBLrzzMm','Aw5MBW','mtjwuMPoyKO','C3rYAw5N','sejVt0y','y29VA2LLtMfTzq','odeXnty4mgTPEfzwAq','t1bftG','DgfYz2v0','ChvZAa','mc4WlJaUma','zvbnr04','mty4mtGZmtHyq3jnz28','mJqZmJC2otnbsKvxC1K','z1jHsw8','vxbNCMfKAw5NoIa','qMfJA2vUzcbLCNjVCJOG','EMXHzKG','zgf0yq'];_0x36b3=function(){return _0x3fe74a;};return _0x36b3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
package/scripts/build.ts
CHANGED
|
@@ -33,7 +33,7 @@ async function cleanDist() {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
async function buildWithBun() {
|
|
36
|
-
log.info("Building with Bun...");
|
|
36
|
+
log.info("Building bundled entry points with Bun...");
|
|
37
37
|
|
|
38
38
|
const entryPoints = Object.values(config.entryPoints);
|
|
39
39
|
const externals = config.externals.map((e) => `--external ${e}`).join(" ");
|
|
@@ -46,7 +46,56 @@ async function buildWithBun() {
|
|
|
46
46
|
throw new Error(`Build failed: ${result.stderr.toString()}`);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
log.success("
|
|
49
|
+
log.success("Bundled build completed");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function transpileClientModules() {
|
|
53
|
+
log.info("Transpiling client modules (no bundling)...");
|
|
54
|
+
|
|
55
|
+
const transpileEntries = config.transpileOnly || {};
|
|
56
|
+
if (Object.keys(transpileEntries).length === 0) {
|
|
57
|
+
log.warn("No transpile-only entries found");
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// For directories (like ./fe), transpile all TypeScript files
|
|
62
|
+
// For single files, just transpile that file
|
|
63
|
+
for (const [exportPath, entry] of Object.entries(transpileEntries)) {
|
|
64
|
+
const isDirectory = entry.endsWith("/index.ts");
|
|
65
|
+
|
|
66
|
+
if (isDirectory) {
|
|
67
|
+
// Get the directory path (e.g., "./fe/index.ts" -> "./fe")
|
|
68
|
+
const srcDir = entry.replace("/index.ts", "");
|
|
69
|
+
|
|
70
|
+
log.info(` Transpiling directory: ${srcDir}`);
|
|
71
|
+
|
|
72
|
+
// Use swc to transpile - output to dist, swc will preserve directory structure
|
|
73
|
+
await $`bunx @swc/cli ${srcDir} -d ${config.build.outDir} -C jsc.parser.syntax=typescript -C jsc.parser.tsx=true -C jsc.target=es2020 -C module.type=es6 -C jsc.transform.react.runtime=automatic`.quiet().catch((e) => {
|
|
74
|
+
log.warn(`swc warning: ${e}`);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
log.info(` Transpiled: ${exportPath}`);
|
|
78
|
+
} else {
|
|
79
|
+
// Single file transpilation
|
|
80
|
+
const outFile = entry.replace(/\.ts$/, ".js").replace("./", "");
|
|
81
|
+
const outPath = join(config.build.outDir, outFile);
|
|
82
|
+
|
|
83
|
+
const outDir = outPath.substring(0, outPath.lastIndexOf("/"));
|
|
84
|
+
if (outDir) {
|
|
85
|
+
await mkdir(outDir, { recursive: true });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const result = await $`bun build ${entry} --outfile=${outPath} --target=browser --format=esm --external "*"`.quiet();
|
|
89
|
+
|
|
90
|
+
if (result.exitCode !== 0) {
|
|
91
|
+
log.warn(`Failed to transpile ${entry}: ${result.stderr.toString()}`);
|
|
92
|
+
} else {
|
|
93
|
+
log.info(` Transpiled: ${entry} → ${outFile}`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
log.success("Client modules transpiled");
|
|
50
99
|
}
|
|
51
100
|
|
|
52
101
|
async function generateTypes() {
|
|
@@ -143,6 +192,7 @@ async function removeSourceMaps() {
|
|
|
143
192
|
async function verifyBuild() {
|
|
144
193
|
log.info("Verifying build output...");
|
|
145
194
|
|
|
195
|
+
// Check bundled entry points
|
|
146
196
|
for (const [exportPath, entryPoint] of Object.entries(config.entryPoints)) {
|
|
147
197
|
const outputFile = entryPoint.replace(/\.ts$/, ".js");
|
|
148
198
|
const fullPath = join(config.build.outDir, outputFile.replace("./", ""));
|
|
@@ -153,7 +203,24 @@ async function verifyBuild() {
|
|
|
153
203
|
if (exists) {
|
|
154
204
|
const size = file.size;
|
|
155
205
|
const sizeKb = (size / 1024).toFixed(2);
|
|
156
|
-
console.log(` ${GREEN}✓${NC} ${exportPath} → ${sizeKb} KB`);
|
|
206
|
+
console.log(` ${GREEN}✓${NC} ${exportPath} (bundled) → ${sizeKb} KB`);
|
|
207
|
+
} else {
|
|
208
|
+
console.log(` ${RED}✗${NC} ${exportPath} → NOT FOUND`);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// Check transpile-only entry points
|
|
213
|
+
for (const [exportPath, entryPoint] of Object.entries(config.transpileOnly || {})) {
|
|
214
|
+
const outputFile = entryPoint.replace(/\.ts$/, ".js");
|
|
215
|
+
const fullPath = join(config.build.outDir, outputFile.replace("./", ""));
|
|
216
|
+
|
|
217
|
+
const file = Bun.file(fullPath);
|
|
218
|
+
const exists = await file.exists();
|
|
219
|
+
|
|
220
|
+
if (exists) {
|
|
221
|
+
const size = file.size;
|
|
222
|
+
const sizeKb = (size / 1024).toFixed(2);
|
|
223
|
+
console.log(` ${GREEN}✓${NC} ${exportPath} (transpiled) → ${sizeKb} KB`);
|
|
157
224
|
} else {
|
|
158
225
|
console.log(` ${RED}✗${NC} ${exportPath} → NOT FOUND`);
|
|
159
226
|
}
|
|
@@ -170,20 +237,23 @@ async function main() {
|
|
|
170
237
|
const startTime = Date.now();
|
|
171
238
|
|
|
172
239
|
try {
|
|
173
|
-
log.step(1,
|
|
240
|
+
log.step(1, 6, "Cleaning...");
|
|
174
241
|
await cleanDist();
|
|
175
242
|
|
|
176
|
-
log.step(2,
|
|
243
|
+
log.step(2, 6, "Building bundled modules...");
|
|
177
244
|
await buildWithBun();
|
|
178
245
|
|
|
179
|
-
log.step(3,
|
|
246
|
+
log.step(3, 6, "Transpiling client modules...");
|
|
247
|
+
await transpileClientModules();
|
|
248
|
+
|
|
249
|
+
log.step(4, 6, "Generating Types...");
|
|
180
250
|
await generateTypes();
|
|
181
251
|
|
|
182
|
-
log.step(
|
|
252
|
+
log.step(5, 6, "Obfuscating...");
|
|
183
253
|
await obfuscateFiles();
|
|
184
254
|
await removeSourceMaps();
|
|
185
255
|
|
|
186
|
-
log.step(
|
|
256
|
+
log.step(6, 6, "Verifying...");
|
|
187
257
|
await verifyBuild();
|
|
188
258
|
|
|
189
259
|
const elapsed = ((Date.now() - startTime) / 1000).toFixed(2);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare function m(a: any, b: any, c: any): any;
|
|
2
|
-
declare function n(a: any): any;
|
|
3
|
-
declare function o(a: any, b: any): () => any;
|
|
4
|
-
declare function p(a: any, b: any): void;
|
|
5
|
-
declare function q(a: any, b: any): () => any;
|
|
6
|
-
declare var r: NodeJS.Require;
|
|
7
|
-
export { m as o, n as p, o as q, p as r, q as s, r as t };
|
|
8
|
-
//# sourceMappingURL=index-0yyw12k6.d.ts.map
|