@ozdao/prometheus-framework 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-579e2c7a.mjs +1945 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cab2bcd2.js +1 -0
  3. package/dist/ButtonFollow-23c4d9fc.mjs +132 -0
  4. package/dist/ButtonFollow-bf5e6d42.js +1 -0
  5. package/dist/CardOrganization-63dcc83b.js +1 -0
  6. package/dist/CardOrganization-e530c9d5.mjs +230 -0
  7. package/dist/Chips-3dac276c.js +1 -0
  8. package/dist/Feed-4d9001aa.mjs +368 -0
  9. package/dist/Feed-51eef23f.js +1 -0
  10. package/dist/Feed-d78d4b91.mjs +439 -0
  11. package/dist/Feed-f4e9769e.js +1 -0
  12. package/dist/Gallery-1f82841a.mjs +357 -0
  13. package/dist/Gallery-dd29c7f6.js +1 -0
  14. package/dist/Image-a2c2ab9c.js +9 -0
  15. package/dist/Image-ad6d4f0f.mjs +477 -0
  16. package/dist/Popup-383abb2e.js +1 -0
  17. package/dist/Popup-f7a5e86b.mjs +76 -0
  18. package/dist/Product-b32fb0e1.js +7 -0
  19. package/dist/Product-d01e3a0d.mjs +839 -0
  20. package/dist/ProductEdit-2b4d1d88.js +1 -0
  21. package/dist/ProductEdit-5e479343.mjs +300 -0
  22. package/dist/ProfileBlogposts-070cb7e9.mjs +65 -0
  23. package/dist/ProfileBlogposts-b6bf0c42.js +1 -0
  24. package/dist/ProfileComments-8a0c489c.mjs +44 -0
  25. package/dist/ProfileComments-f0000ea6.js +1 -0
  26. package/dist/ProfileEvents-8b88287a.js +1 -0
  27. package/dist/ProfileEvents-d978617d.mjs +57 -0
  28. package/dist/ProfileLikes-d5f9f058.js +1 -0
  29. package/dist/ProfileLikes-f5ad4497.mjs +44 -0
  30. package/dist/ProfileOrganizations-422d1fa5.js +1 -0
  31. package/dist/ProfileOrganizations-6b1bc5b2.mjs +213 -0
  32. package/dist/Publics-640d32fc.mjs +123 -0
  33. package/dist/Publics-8595ab7e.js +1 -0
  34. package/dist/Socials-43293869.js +1 -0
  35. package/dist/Tab-dcd62005.js +1 -0
  36. package/dist/UploadImage-dfb36cdb.js +1 -0
  37. package/dist/UploadImage-e4418b43.mjs +83 -0
  38. package/dist/UploadImageMultiple-c9a7b54f.js +1 -0
  39. package/dist/UploadImageMultiple-d2d48f39.mjs +58 -0
  40. package/dist/auth-45a454f2.js +7 -0
  41. package/dist/auth-5cd34aae.mjs +905 -0
  42. package/dist/auth.client.cjs +8 -8
  43. package/dist/auth.client.js +16 -15
  44. package/dist/auth.validation-4b016fa5.js +1 -0
  45. package/dist/auth.validation-a52304cf.mjs +20 -0
  46. package/dist/backoffice.client.cjs +1 -0
  47. package/dist/backoffice.client.js +69 -0
  48. package/dist/carousel.es-cdfb392c.js +5 -0
  49. package/dist/community.client.cjs +1 -1
  50. package/dist/community.client.js +23 -22
  51. package/dist/components/EditImages/EditImages.vue.d.ts +7 -0
  52. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  53. package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
  54. package/dist/events.client.cjs +2 -2
  55. package/dist/events.client.js +17 -16
  56. package/dist/files.server.js +149 -112
  57. package/dist/files.server.mjs +149 -112
  58. package/dist/gallery.server.js +127 -0
  59. package/dist/gallery.server.mjs +128 -0
  60. package/dist/index-2059e444.js +2 -0
  61. package/dist/index-4e469a71.mjs +941 -0
  62. package/dist/landing.client.cjs +1 -1
  63. package/dist/modules/gallery/components/sections/Gallery.vue.d.ts +2 -0
  64. package/dist/modules/icons/navigation/IconChevronRight.vue.d.ts +13 -1
  65. package/dist/modules/mobile/components/Menu/MenuItem.vue.d.ts +14 -2
  66. package/dist/organizations-81e762e7.mjs +122 -0
  67. package/dist/organizations-cf1ab766.js +1 -0
  68. package/dist/organizations.client-b692a78a.mjs +3018 -0
  69. package/dist/organizations.client-bdc9b044.js +3 -0
  70. package/dist/organizations.client.cjs +1 -1
  71. package/dist/organizations.client.js +44 -43
  72. package/dist/style.css +1 -1
  73. package/dist/users.client.cjs +1 -1
  74. package/dist/users.client.js +224 -184
  75. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  76. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  77. package/package.json +10 -1
  78. package/src/components/EditImages/EditImages.vue +55 -0
  79. package/src/configurator/components/layouts/layoutConfigurator.vue +0 -40
  80. package/src/modules/backoffice/backoffice.client.js +15 -0
  81. package/src/modules/backoffice/components/layouts/Account.vue +48 -58
  82. package/src/modules/backoffice/router/backoffice.js +20 -0
  83. package/src/modules/files/controllers/files.controller.js +27 -131
  84. package/src/modules/files/middlewares/server/index.js +10 -0
  85. package/src/modules/files/middlewares/server/md.js +151 -0
  86. package/src/modules/files/middlewares/server/middlewareMulter.js +121 -0
  87. package/src/modules/files/routes/files.routes.js +20 -6
  88. package/src/modules/gallery/components/sections/Gallery.vue +414 -0
  89. package/src/modules/gallery/controllers/gallery.controller.js +87 -73
  90. package/src/modules/gallery/gallery.client.js +17 -0
  91. package/src/modules/gallery/gallery.server.js +13 -0
  92. package/src/modules/gallery/models/photo.model.js +20 -14
  93. package/src/modules/gallery/routes/gallery.routes.js +18 -9
  94. package/src/modules/gallery/store/gallery.js +25 -19
  95. package/src/modules/icons/navigation/IconChevronRight.vue +14 -2
  96. package/src/modules/mobile/components/Menu/Menu.vue +1 -1
  97. package/src/modules/mobile/components/Menu/MenuItem.vue +8 -2
  98. package/src/modules/users/components/pages/Profile.vue +22 -1
  99. package/src/modules/backoffice/components/pages/Profile.vue +0 -109
  100. package/src/modules/backoffice/components/pages/profile/ProfileEdit.vue +0 -132
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
3
+ require("path");
4
+ const index = require("./index-21dfdbd9.js");
5
+ require("jsonwebtoken");
6
+ require("mongodb");
7
+ const controllerFactory$1 = (db) => {
8
+ const Photo = db.photo;
9
+ const read = async (req, res) => {
10
+ const { page, limit } = req.query;
11
+ console.log(req.query);
12
+ console.log(req.body);
13
+ let query = Photo.find().sort({ $natural: -1 });
14
+ if (page) {
15
+ const skipValue = (parseInt(page) - 1) * (limit ? parseInt(limit) : 10);
16
+ query = query.skip(skipValue);
17
+ }
18
+ if (limit) {
19
+ query = query.limit(parseInt(limit));
20
+ }
21
+ try {
22
+ const photos = await query;
23
+ if (!photos.length) {
24
+ return res.status(404).send({ message: "Photos not found." });
25
+ }
26
+ res.status(200).send(photos);
27
+ } catch (err) {
28
+ res.status(500).send({ message: err.message || "An error occurred." });
29
+ }
30
+ };
31
+ const create = async (req, res) => {
32
+ try {
33
+ const { categories, size, images } = req.body;
34
+ if (!categories || !size || !images || images.length === 0) {
35
+ return res.status(400).send({ message: "All fields are required." });
36
+ }
37
+ const photos = [];
38
+ for (let imageLink of images) {
39
+ const newPhoto = {
40
+ categories,
41
+ size,
42
+ image: imageLink,
43
+ cover: "thumbnail_" + imageLink
44
+ };
45
+ const photo = await Photo.create(newPhoto);
46
+ if (!photo) {
47
+ return res.status(404).send({ message: `Photo with link ${imageLink} is not created.` });
48
+ }
49
+ photos.push(photo);
50
+ }
51
+ res.status(200).send(photos);
52
+ } catch (error) {
53
+ console.log(error);
54
+ res.status(500).send({ message: error });
55
+ }
56
+ };
57
+ const update = (req, res) => {
58
+ Photo.findOneAndUpdate({ _id: req.body._id }, req.body, { new: true }).exec().then((photo) => {
59
+ if (!photo) {
60
+ return res.status(404).send({ message: "Something went wrong when updating photo." });
61
+ }
62
+ res.status(200).send(photo);
63
+ }).catch((err) => {
64
+ console.log(err);
65
+ return res.status(500).send({ message: err });
66
+ });
67
+ };
68
+ const deletePhoto = (req, res) => {
69
+ Photo.findOneAndDelete({ _id: req.params._id }).exec().then((photo) => {
70
+ if (!photo) {
71
+ return res.status(404).send({ message: "Photo is not deleted." });
72
+ }
73
+ res.status(200).send(photo);
74
+ }).catch((err) => {
75
+ return res.status(500).send({ message: err });
76
+ });
77
+ };
78
+ return {
79
+ read,
80
+ create,
81
+ update,
82
+ delete: deletePhoto
83
+ };
84
+ };
85
+ var gallery_controller = controllerFactory$1;
86
+ const controllerFactory = gallery_controller;
87
+ const middlewareFactoryGlobal = index.server;
88
+ var gallery_routes = function(app, db, origins) {
89
+ const controller = controllerFactory(db);
90
+ const { authJwt } = middlewareFactoryGlobal(db);
91
+ app.use(function(req, res, next) {
92
+ const origin = req.headers.origin;
93
+ if (origins.includes(origin)) {
94
+ res.setHeader("Access-Control-Allow-Origin", origin);
95
+ }
96
+ res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
97
+ next();
98
+ });
99
+ app.get(
100
+ "/api/gallery",
101
+ controller.read
102
+ );
103
+ app.post(
104
+ "/api/gallery/create",
105
+ [authJwt.verifyToken],
106
+ controller.create
107
+ );
108
+ app.post(
109
+ "/api/gallery/update",
110
+ [authJwt.verifyToken],
111
+ controller.update
112
+ );
113
+ app.post(
114
+ "/api/gallery/delete/:_id",
115
+ [authJwt.verifyToken],
116
+ controller.delete
117
+ );
118
+ };
119
+ const galleryController = gallery_controller;
120
+ const galleryRoutes = gallery_routes;
121
+ var gallery_server = {
122
+ galleryController,
123
+ galleryRoutes
124
+ // FileModel
125
+ };
126
+ const gallery_server$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(gallery_server);
127
+ module.exports = gallery_server$1;
@@ -0,0 +1,128 @@
1
+ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
2
+ import "path";
3
+ import { s as server } from "./index-fa8d5df4.mjs";
4
+ import "jsonwebtoken";
5
+ import "mongodb";
6
+ const controllerFactory$1 = (db) => {
7
+ const Photo = db.photo;
8
+ const read = async (req, res) => {
9
+ const { page, limit } = req.query;
10
+ console.log(req.query);
11
+ console.log(req.body);
12
+ let query = Photo.find().sort({ $natural: -1 });
13
+ if (page) {
14
+ const skipValue = (parseInt(page) - 1) * (limit ? parseInt(limit) : 10);
15
+ query = query.skip(skipValue);
16
+ }
17
+ if (limit) {
18
+ query = query.limit(parseInt(limit));
19
+ }
20
+ try {
21
+ const photos = await query;
22
+ if (!photos.length) {
23
+ return res.status(404).send({ message: "Photos not found." });
24
+ }
25
+ res.status(200).send(photos);
26
+ } catch (err) {
27
+ res.status(500).send({ message: err.message || "An error occurred." });
28
+ }
29
+ };
30
+ const create = async (req, res) => {
31
+ try {
32
+ const { categories, size, images } = req.body;
33
+ if (!categories || !size || !images || images.length === 0) {
34
+ return res.status(400).send({ message: "All fields are required." });
35
+ }
36
+ const photos = [];
37
+ for (let imageLink of images) {
38
+ const newPhoto = {
39
+ categories,
40
+ size,
41
+ image: imageLink,
42
+ cover: "thumbnail_" + imageLink
43
+ };
44
+ const photo = await Photo.create(newPhoto);
45
+ if (!photo) {
46
+ return res.status(404).send({ message: `Photo with link ${imageLink} is not created.` });
47
+ }
48
+ photos.push(photo);
49
+ }
50
+ res.status(200).send(photos);
51
+ } catch (error) {
52
+ console.log(error);
53
+ res.status(500).send({ message: error });
54
+ }
55
+ };
56
+ const update = (req, res) => {
57
+ Photo.findOneAndUpdate({ _id: req.body._id }, req.body, { new: true }).exec().then((photo) => {
58
+ if (!photo) {
59
+ return res.status(404).send({ message: "Something went wrong when updating photo." });
60
+ }
61
+ res.status(200).send(photo);
62
+ }).catch((err) => {
63
+ console.log(err);
64
+ return res.status(500).send({ message: err });
65
+ });
66
+ };
67
+ const deletePhoto = (req, res) => {
68
+ Photo.findOneAndDelete({ _id: req.params._id }).exec().then((photo) => {
69
+ if (!photo) {
70
+ return res.status(404).send({ message: "Photo is not deleted." });
71
+ }
72
+ res.status(200).send(photo);
73
+ }).catch((err) => {
74
+ return res.status(500).send({ message: err });
75
+ });
76
+ };
77
+ return {
78
+ read,
79
+ create,
80
+ update,
81
+ delete: deletePhoto
82
+ };
83
+ };
84
+ var gallery_controller = controllerFactory$1;
85
+ const controllerFactory = gallery_controller;
86
+ const middlewareFactoryGlobal = server;
87
+ var gallery_routes = function(app, db, origins) {
88
+ const controller = controllerFactory(db);
89
+ const { authJwt } = middlewareFactoryGlobal(db);
90
+ app.use(function(req, res, next) {
91
+ const origin = req.headers.origin;
92
+ if (origins.includes(origin)) {
93
+ res.setHeader("Access-Control-Allow-Origin", origin);
94
+ }
95
+ res.header("Access-Control-Allow-Headers", "x-access-token, Origin, Content-Type, Accept");
96
+ next();
97
+ });
98
+ app.get(
99
+ "/api/gallery",
100
+ controller.read
101
+ );
102
+ app.post(
103
+ "/api/gallery/create",
104
+ [authJwt.verifyToken],
105
+ controller.create
106
+ );
107
+ app.post(
108
+ "/api/gallery/update",
109
+ [authJwt.verifyToken],
110
+ controller.update
111
+ );
112
+ app.post(
113
+ "/api/gallery/delete/:_id",
114
+ [authJwt.verifyToken],
115
+ controller.delete
116
+ );
117
+ };
118
+ const galleryController = gallery_controller;
119
+ const galleryRoutes = gallery_routes;
120
+ var gallery_server = {
121
+ galleryController,
122
+ galleryRoutes
123
+ // FileModel
124
+ };
125
+ const gallery_server$1 = /* @__PURE__ */ getDefaultExportFromCjs(gallery_server);
126
+ export {
127
+ gallery_server$1 as default
128
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue={exports:{}},Je=function(r,t){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return r.apply(t,n)}},fr=Je,fe=Object.prototype.toString,le=function(e){return function(r){var t=fe.call(r);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())}}(Object.create(null));function O(e){return e=e.toLowerCase(),function(t){return le(t)===e}}function ce(e){return Array.isArray(e)}function F(e){return typeof e>"u"}function lr(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Ve=O("ArrayBuffer");function cr(e){var r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Ve(e.buffer),r}function dr(e){return typeof e=="string"}function hr(e){return typeof e=="number"}function We(e){return e!==null&&typeof e=="object"}function g(e){if(le(e)!=="object")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}var pr=O("Date"),vr=O("File"),mr=O("Blob"),Er=O("FileList");function de(e){return fe.call(e)==="[object Function]"}function Rr(e){return We(e)&&de(e.pipe)}function yr(e){var r="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||fe.call(e)===r||de(e.toString)&&e.toString()===r)}var wr=O("URLSearchParams");function br(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Or(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function he(e,r){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ce(e))for(var t=0,i=e.length;t<i;t++)r.call(null,e[t],t,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.call(null,e[n],n,e)}function oe(){var e={};function r(n,a){g(e[a])&&g(n)?e[a]=oe(e[a],n):g(n)?e[a]=oe({},n):ce(n)?e[a]=n.slice():e[a]=n}for(var t=0,i=arguments.length;t<i;t++)he(arguments[t],r);return e}function Ar(e,r,t){return he(r,function(n,a){t&&typeof n=="function"?e[a]=fr(n,t):e[a]=n}),e}function Cr(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Sr(e,r,t,i){e.prototype=Object.create(r.prototype,i),e.prototype.constructor=e,t&&Object.assign(e.prototype,t)}function xr(e,r,t){var i,n,a,o={};r=r||{};do{for(i=Object.getOwnPropertyNames(e),n=i.length;n-- >0;)a=i[n],o[a]||(r[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r}function Tr(e,r,t){e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=r.length;var i=e.indexOf(r,t);return i!==-1&&i===t}function Pr(e){if(!e)return null;var r=e.length;if(F(r))return null;for(var t=new Array(r);r-- >0;)t[r]=e[r];return t}var _r=function(e){return function(r){return e&&r instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),v={isArray:ce,isArrayBuffer:Ve,isBuffer:lr,isFormData:yr,isArrayBufferView:cr,isString:dr,isNumber:hr,isObject:We,isPlainObject:g,isUndefined:F,isDate:pr,isFile:vr,isBlob:mr,isFunction:de,isStream:Rr,isURLSearchParams:wr,isStandardBrowserEnv:Or,forEach:he,merge:oe,extend:Ar,trim:br,stripBOM:Cr,inherits:Sr,toFlatObject:xr,kindOf:le,kindOfTest:O,endsWith:Tr,toArray:Pr,isTypedArray:_r,isFileList:Er},x=v;function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ze=function(r,t,i){if(!t)return r;var n;if(i)n=i(t);else if(x.isURLSearchParams(t))n=t.toString();else{var a=[];x.forEach(t,function(f,h){f===null||typeof f>"u"||(x.isArray(f)?h=h+"[]":f=[f],x.forEach(f,function(d){x.isDate(d)?d=d.toISOString():x.isObject(d)&&(d=JSON.stringify(d)),a.push(ye(h)+"="+ye(d))}))}),n=a.join("&")}if(n){var o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+n}return r},Nr=v;function j(){this.handlers=[]}j.prototype.use=function(r,t,i){return this.handlers.push({fulfilled:r,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1};j.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)};j.prototype.forEach=function(r){Nr.forEach(this.handlers,function(i){i!==null&&r(i)})};var Dr=j,qr=v,Ur=function(r,t){qr.forEach(r,function(n,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(r[t]=n,delete r[a])})},Xe=v;function P(e,r,t,i,n){Error.call(this),this.message=e,this.name="AxiosError",r&&(this.code=r),t&&(this.config=t),i&&(this.request=i),n&&(this.response=n)}Xe.inherits(P,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Ke=P.prototype,Qe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){Qe[e]={value:e}});Object.defineProperties(P,Qe);Object.defineProperty(Ke,"isAxiosError",{value:!0});P.from=function(e,r,t,i,n,a){var o=Object.create(Ke);return Xe.toFlatObject(e,o,function(f){return f!==Error.prototype}),P.call(o,e.message,r,t,i,n),o.name=e.name,a&&Object.assign(o,a),o};var N=P,Ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V,we;function Ge(){if(we)return V;we=1;var e=v;function r(t,i){i=i||new FormData;var n=[];function a(s){return s===null?"":e.isDate(s)?s.toISOString():e.isArrayBuffer(s)||e.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function o(s,f){if(e.isPlainObject(s)||e.isArray(s)){if(n.indexOf(s)!==-1)throw Error("Circular reference detected in "+f);n.push(s),e.forEach(s,function(c,d){if(!e.isUndefined(c)){var u=f?f+"."+d:d,m;if(c&&!f&&typeof c=="object"){if(e.endsWith(d,"{}"))c=JSON.stringify(c);else if(e.endsWith(d,"[]")&&(m=e.toArray(c))){m.forEach(function(B){!e.isUndefined(B)&&i.append(u,a(B))});return}}o(c,u)}}),n.pop()}else i.append(f,a(s))}return o(t),i}return V=r,V}var W,be;function Br(){if(be)return W;be=1;var e=N;return W=function(t,i,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?t(n):i(new e("Request failed with status code "+n.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))},W}var z,Oe;function gr(){if(Oe)return z;Oe=1;var e=v;return z=e.isStandardBrowserEnv()?function(){return{write:function(i,n,a,o,s,f){var h=[];h.push(i+"="+encodeURIComponent(n)),e.isNumber(a)&&h.push("expires="+new Date(a).toGMTString()),e.isString(o)&&h.push("path="+o),e.isString(s)&&h.push("domain="+s),f===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(i){var n=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),z}var Lr=function(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)},Fr=function(r,t){return t?r.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):r},jr=Lr,$r=Fr,Ze=function(r,t){return r&&!jr(t)?$r(r,t):t},X,Ae;function Ir(){if(Ae)return X;Ae=1;var e=v,r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return X=function(i){var n={},a,o,s;return i&&e.forEach(i.split(`
2
+ `),function(h){if(s=h.indexOf(":"),a=e.trim(h.substr(0,s)).toLowerCase(),o=e.trim(h.substr(s+1)),a){if(n[a]&&r.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([o]):n[a]=n[a]?n[a]+", "+o:o}}),n},X}var K,Ce;function kr(){if(Ce)return K;Ce=1;var e=v;return K=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n;function a(o){var s=o;return t&&(i.setAttribute("href",s),s=i.href),i.setAttribute("href",s),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=a(window.location.href),function(s){var f=e.isString(s)?a(s):s;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}(),K}var Q,Se;function $(){if(Se)return Q;Se=1;var e=N,r=v;function t(i){e.call(this,i??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return r.inherits(t,e,{__CANCEL__:!0}),Q=t,Q}var Y,xe;function Mr(){return xe||(xe=1,Y=function(r){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}),Y}var G,Te;function Pe(){if(Te)return G;Te=1;var e=v,r=Br(),t=gr(),i=ze,n=Ze,a=Ir(),o=kr(),s=Ye,f=N,h=$(),c=Mr();return G=function(u){return new Promise(function(B,A){var D=u.data,q=u.headers,U=u.responseType,C;function me(){u.cancelToken&&u.cancelToken.unsubscribe(C),u.signal&&u.signal.removeEventListener("abort",C)}e.isFormData(D)&&e.isStandardBrowserEnv()&&delete q["Content-Type"];var l=new XMLHttpRequest;if(u.auth){var sr=u.auth.username||"",or=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";q.Authorization="Basic "+btoa(sr+":"+or)}var M=n(u.baseURL,u.url);l.open(u.method.toUpperCase(),i(M,u.params,u.paramsSerializer),!0),l.timeout=u.timeout;function Ee(){if(l){var y="getAllResponseHeaders"in l?a(l.getAllResponseHeaders()):null,S=!U||U==="text"||U==="json"?l.responseText:l.response,b={data:S,status:l.status,statusText:l.statusText,headers:y,config:u,request:l};r(function(J){B(J),me()},function(J){A(J),me()},b),l=null}}if("onloadend"in l?l.onloadend=Ee:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(Ee)},l.onabort=function(){l&&(A(new f("Request aborted",f.ECONNABORTED,u,l)),l=null)},l.onerror=function(){A(new f("Network Error",f.ERR_NETWORK,u,l,l)),l=null},l.ontimeout=function(){var S=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",b=u.transitional||s;u.timeoutErrorMessage&&(S=u.timeoutErrorMessage),A(new f(S,b.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,u,l)),l=null},e.isStandardBrowserEnv()){var Re=(u.withCredentials||o(M))&&u.xsrfCookieName?t.read(u.xsrfCookieName):void 0;Re&&(q[u.xsrfHeaderName]=Re)}"setRequestHeader"in l&&e.forEach(q,function(S,b){typeof D>"u"&&b.toLowerCase()==="content-type"?delete q[b]:l.setRequestHeader(b,S)}),e.isUndefined(u.withCredentials)||(l.withCredentials=!!u.withCredentials),U&&U!=="json"&&(l.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&l.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(C=function(y){l&&(A(!y||y&&y.type?new h:y),l.abort(),l=null)},u.cancelToken&&u.cancelToken.subscribe(C),u.signal&&(u.signal.aborted?C():u.signal.addEventListener("abort",C))),D||(D=null);var H=c(M);if(H&&["http","https","file"].indexOf(H)===-1){A(new f("Unsupported protocol "+H+":",f.ERR_BAD_REQUEST,u));return}l.send(D)})},G}var Z,_e;function Hr(){return _e||(_e=1,Z=null),Z}var p=v,Ne=Ur,De=N,Jr=Ye,Vr=Ge(),Wr={"Content-Type":"application/x-www-form-urlencoded"};function qe(e,r){!p.isUndefined(e)&&p.isUndefined(e["Content-Type"])&&(e["Content-Type"]=r)}function zr(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Pe()),e}function Xr(e,r,t){if(p.isString(e))try{return(r||JSON.parse)(e),p.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(e)}var I={transitional:Jr,adapter:zr(),transformRequest:[function(r,t){if(Ne(t,"Accept"),Ne(t,"Content-Type"),p.isFormData(r)||p.isArrayBuffer(r)||p.isBuffer(r)||p.isStream(r)||p.isFile(r)||p.isBlob(r))return r;if(p.isArrayBufferView(r))return r.buffer;if(p.isURLSearchParams(r))return qe(t,"application/x-www-form-urlencoded;charset=utf-8"),r.toString();var i=p.isObject(r),n=t&&t["Content-Type"],a;if((a=p.isFileList(r))||i&&n==="multipart/form-data"){var o=this.env&&this.env.FormData;return Vr(a?{"files[]":r}:r,o&&new o)}else if(i||n==="application/json")return qe(t,"application/json"),Xr(r);return r}],transformResponse:[function(r){var t=this.transitional||I.transitional,i=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,a=!i&&this.responseType==="json";if(a||n&&p.isString(r)&&r.length)try{return JSON.parse(r)}catch(o){if(a)throw o.name==="SyntaxError"?De.from(o,De.ERR_BAD_RESPONSE,this,null,this.response):o}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hr()},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};p.forEach(["delete","get","head"],function(r){I.headers[r]={}});p.forEach(["post","put","patch"],function(r){I.headers[r]=p.merge(Wr)});var pe=I,Kr=v,Qr=pe,Yr=function(r,t,i){var n=this||Qr;return Kr.forEach(i,function(o){r=o.call(n,r,t)}),r},ee,Ue;function er(){return Ue||(Ue=1,ee=function(r){return!!(r&&r.__CANCEL__)}),ee}var Be=v,re=Yr,Gr=er(),Zr=pe,et=$();function te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new et}var rt=function(r){te(r),r.headers=r.headers||{},r.data=re.call(r,r.data,r.headers,r.transformRequest),r.headers=Be.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),Be.forEach(["delete","get","head","post","put","patch","common"],function(n){delete r.headers[n]});var t=r.adapter||Zr.adapter;return t(r).then(function(n){return te(r),n.data=re.call(r,n.data,n.headers,r.transformResponse),n},function(n){return Gr(n)||(te(r),n&&n.response&&(n.response.data=re.call(r,n.response.data,n.response.headers,r.transformResponse))),Promise.reject(n)})},R=v,rr=function(r,t){t=t||{};var i={};function n(c,d){return R.isPlainObject(c)&&R.isPlainObject(d)?R.merge(c,d):R.isPlainObject(d)?R.merge({},d):R.isArray(d)?d.slice():d}function a(c){if(R.isUndefined(t[c])){if(!R.isUndefined(r[c]))return n(void 0,r[c])}else return n(r[c],t[c])}function o(c){if(!R.isUndefined(t[c]))return n(void 0,t[c])}function s(c){if(R.isUndefined(t[c])){if(!R.isUndefined(r[c]))return n(void 0,r[c])}else return n(void 0,t[c])}function f(c){if(c in t)return n(r[c],t[c]);if(c in r)return n(void 0,r[c])}var h={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:f};return R.forEach(Object.keys(r).concat(Object.keys(t)),function(d){var u=h[d]||a,m=u(d);R.isUndefined(m)&&u!==f||(i[d]=m)}),i},ne,ge;function tr(){return ge||(ge=1,ne={version:"0.27.2"}),ne}var tt=tr().version,w=N,ve={};["object","boolean","number","function","string","symbol"].forEach(function(e,r){ve[e]=function(i){return typeof i===e||"a"+(r<1?"n ":" ")+e}});var Le={};ve.transitional=function(r,t,i){function n(a,o){return"[Axios v"+tt+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return function(a,o,s){if(r===!1)throw new w(n(o," has been removed"+(t?" in "+t:"")),w.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(a,o,s):!0}};function nt(e,r,t){if(typeof e!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),n=i.length;n-- >0;){var a=i[n],o=r[a];if(o){var s=e[a],f=s===void 0||o(s,a,e);if(f!==!0)throw new w("option "+a+" must be "+f,w.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new w("Unknown option "+a,w.ERR_BAD_OPTION)}}var it={assertOptions:nt,validators:ve},nr=v,at=ze,Fe=Dr,je=rt,k=rr,st=Ze,ir=it,T=ir.validators;function _(e){this.defaults=e,this.interceptors={request:new Fe,response:new Fe}}_.prototype.request=function(r,t){typeof r=="string"?(t=t||{},t.url=r):t=r||{},t=k(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;i!==void 0&&ir.assertOptions(i,{silentJSONParsing:T.transitional(T.boolean),forcedJSONParsing:T.transitional(T.boolean),clarifyTimeoutError:T.transitional(T.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(a=a&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var s;if(!a){var f=[je,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(o),s=Promise.resolve(t);f.length;)s=s.then(f.shift(),f.shift());return s}for(var h=t;n.length;){var c=n.shift(),d=n.shift();try{h=c(h)}catch(u){d(u);break}}try{s=je(h)}catch(u){return Promise.reject(u)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};_.prototype.getUri=function(r){r=k(this.defaults,r);var t=st(r.baseURL,r.url);return at(t,r.params,r.paramsSerializer)};nr.forEach(["delete","get","head","options"],function(r){_.prototype[r]=function(t,i){return this.request(k(i||{},{method:r,url:t,data:(i||{}).data}))}});nr.forEach(["post","put","patch"],function(r){function t(i){return function(a,o,s){return this.request(k(s||{},{method:r,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}_.prototype[r]=t(),_.prototype[r+"Form"]=t(!0)});var ot=_,ie,$e;function ut(){if($e)return ie;$e=1;var e=$();function r(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(o){i=o});var n=this;this.promise.then(function(a){if(n._listeners){var o,s=n._listeners.length;for(o=0;o<s;o++)n._listeners[o](a);n._listeners=null}}),this.promise.then=function(a){var o,s=new Promise(function(f){n.subscribe(f),o=f}).then(a);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o){n.reason||(n.reason=new e(o),i(n.reason))})}return r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]},r.prototype.unsubscribe=function(i){if(this._listeners){var n=this._listeners.indexOf(i);n!==-1&&this._listeners.splice(n,1)}},r.source=function(){var i,n=new r(function(o){i=o});return{token:n,cancel:i}},ie=r,ie}var ae,Ie;function ft(){return Ie||(Ie=1,ae=function(r){return function(i){return r.apply(null,i)}}),ae}var se,ke;function lt(){if(ke)return se;ke=1;var e=v;return se=function(t){return e.isObject(t)&&t.isAxiosError===!0},se}var Me=v,ct=Je,L=ot,dt=rr,ht=pe;function ar(e){var r=new L(e),t=ct(L.prototype.request,r);return Me.extend(t,L.prototype,r),Me.extend(t,r),t.create=function(n){return ar(dt(e,n))},t}var E=ar(ht);E.Axios=L;E.CanceledError=$();E.CancelToken=ut();E.isCancel=er();E.VERSION=tr().version;E.toFormData=Ge();E.AxiosError=N;E.Cancel=E.CanceledError;E.all=function(r){return Promise.all(r)};E.spread=ft();E.isAxiosError=lt();ue.exports=E;ue.exports.default=E;var pt=ue.exports,vt=pt;const mt=He(vt);exports.axios=mt;exports.getDefaultExportFromCjs=He;