From 6decfaed04158082133100bf7b646d50be2e6225 Mon Sep 17 00:00:00 2001 From: lucieo Date: Wed, 6 Mar 2024 09:21:01 +0100 Subject: [PATCH] Download single application --- .../application/controllers/application.js | 44 +- .../1.0.0/full_documentation.json | 907 ++++++++++++++---- back/yarn.lock | 582 ++++++++++- .../Company/ApplicationEditRightPanel.tsx | 1 - .../Place/ApplicationDownloadButton.tsx | 52 + .../Place/ApplicationPlaceListItem.tsx | 4 +- .../ApplicationDownloadButton.tsx | 75 -- .../ApplicationPdfCreation.tsx | 68 -- .../ApplicationsPdf/ApplicationPdfGeneral.tsx | 48 - .../ApplicationsPdf/ApplicationPdfHeader.tsx | 116 --- .../ApplicationPdfReferences.tsx | 34 - .../Place/ApplicationsPdf/pdfUtils.ts | 85 -- .../DetailDrawer/ApplicationDetailDrawer.tsx | 94 +- .../Application/Place/SingleApplication.tsx | 45 - web/components/pdfs/ApplicationCreation.tsx | 37 + web/components/pdfs/ApplicationDocument.tsx | 55 ++ web/components/pdfs/ApplicationHeader.tsx | 84 ++ web/components/pdfs/ApplicationInfos.tsx | 26 + web/components/pdfs/ApplicationReference.tsx | 55 ++ web/components/pdfs/ApplicationSection.tsx | 39 + web/components/pdfs/pdfStyleUtils.ts | 23 + web/next.config.js | 6 +- web/package.json | 9 +- web/pages/api/pdfs/all/index.tsx | 15 + web/pages/api/pdfs/single/[id].tsx | 49 + web/utils/pdf.ts | 48 + web/yarn.lock | 735 ++++++-------- 27 files changed, 2146 insertions(+), 1190 deletions(-) create mode 100644 web/components/Account/Application/Place/ApplicationDownloadButton.tsx delete mode 100644 web/components/Account/Application/Place/ApplicationsPdf/ApplicationDownloadButton.tsx delete mode 100644 web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfCreation.tsx delete mode 100644 web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfGeneral.tsx delete mode 100644 web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfHeader.tsx delete mode 100644 web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfReferences.tsx delete mode 100644 web/components/Account/Application/Place/ApplicationsPdf/pdfUtils.ts delete mode 100644 web/components/Account/Application/Place/SingleApplication.tsx create mode 100644 web/components/pdfs/ApplicationCreation.tsx create mode 100644 web/components/pdfs/ApplicationDocument.tsx create mode 100644 web/components/pdfs/ApplicationHeader.tsx create mode 100644 web/components/pdfs/ApplicationInfos.tsx create mode 100644 web/components/pdfs/ApplicationReference.tsx create mode 100644 web/components/pdfs/ApplicationSection.tsx create mode 100644 web/components/pdfs/pdfStyleUtils.ts create mode 100644 web/pages/api/pdfs/all/index.tsx create mode 100644 web/pages/api/pdfs/single/[id].tsx create mode 100644 web/utils/pdf.ts diff --git a/back/api/application/controllers/application.js b/back/api/application/controllers/application.js index 5082c5df..1fefd68c 100644 --- a/back/api/application/controllers/application.js +++ b/back/api/application/controllers/application.js @@ -1,4 +1,4 @@ -'use strict'; +'use strict' /** * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) @@ -7,18 +7,29 @@ module.exports = { async myApplications(ctx) { - const populateCommon = ['disponibility.espace', 'disponibility.espace.users_permissions_user', 'creation_file' ] - const { id, type } = ctx.state.user; - const {query: initialQuery}=ctx.request; - const query = type === "place" ? {...initialQuery, 'disponibility.espace.users_permissions_user.id':id} : {...initialQuery, company: id }; - const populate = type==="place"? [...populateCommon,'company', ]:[...populateCommon,'place'] + const populateCommon = [ + 'disponibility.espace', + 'disponibility.espace.users_permissions_user', + 'creation_file', + 'campaign', + ] + const { id, type } = ctx.state.user + const { query: initialQuery } = ctx.request + const query = + type === 'place' + ? { + ...initialQuery, + 'disponibility.espace.users_permissions_user.id': id, + } + : { ...initialQuery, company: id } + const populate = + type === 'place' + ? [...populateCommon, 'company'] + : [...populateCommon, 'place'] return strapi - .query("application") - .find( - query, - populate - ) + .query('application') + .find(query, populate) .then((res) => { return Promise.all( res.map(async (application) => { @@ -29,10 +40,9 @@ module.exports = { type, applicationId: application.id, }), - }; - }) - ); - }); + } + }), + ) + }) }, - -}; +} diff --git a/back/extensions/documentation/documentation/1.0.0/full_documentation.json b/back/extensions/documentation/documentation/1.0.0/full_documentation.json index 27b1263e..c9bf5efd 100644 --- a/back/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/back/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "03/05/2024 1:43:37 PM" + "x-generation-date": "03/05/2024 7:21:13 PM" }, "x-strapi-config": { "path": "/documentation", @@ -95,7 +95,9 @@ } }, "summary": "", - "tags": ["Actuality"], + "tags": [ + "Actuality" + ], "parameters": [ { "name": "_limit", @@ -281,7 +283,9 @@ } }, "summary": "", - "tags": ["Actuality"], + "tags": [ + "Actuality" + ], "requestBody": { "description": "", "required": true, @@ -346,7 +350,9 @@ } }, "summary": "", - "tags": ["Actuality"], + "tags": [ + "Actuality" + ], "parameters": [] } }, @@ -397,7 +403,9 @@ } }, "summary": "", - "tags": ["Actuality"], + "tags": [ + "Actuality" + ], "parameters": [ { "name": "id", @@ -457,7 +465,9 @@ } }, "summary": "", - "tags": ["Actuality"], + "tags": [ + "Actuality" + ], "requestBody": { "description": "", "required": true, @@ -529,7 +539,9 @@ } }, "summary": "", - "tags": ["Actuality"], + "tags": [ + "Actuality" + ], "parameters": [ { "name": "id", @@ -594,7 +606,9 @@ } }, "summary": "", - "tags": ["Application"], + "tags": [ + "Application" + ], "parameters": [ { "name": "campaignId", @@ -796,7 +810,9 @@ } }, "summary": "", - "tags": ["Application"], + "tags": [ + "Application" + ], "parameters": [ { "name": "_limit", @@ -982,7 +998,9 @@ } }, "summary": "", - "tags": ["Application"], + "tags": [ + "Application" + ], "requestBody": { "description": "", "required": true, @@ -1047,7 +1065,9 @@ } }, "summary": "", - "tags": ["Application"], + "tags": [ + "Application" + ], "parameters": [] } }, @@ -1098,7 +1118,9 @@ } }, "summary": "", - "tags": ["Application"], + "tags": [ + "Application" + ], "parameters": [ { "name": "id", @@ -1158,7 +1180,9 @@ } }, "summary": "", - "tags": ["Application"], + "tags": [ + "Application" + ], "requestBody": { "description": "", "required": true, @@ -1230,7 +1254,9 @@ } }, "summary": "", - "tags": ["Application"], + "tags": [ + "Application" + ], "parameters": [ { "name": "id", @@ -1295,7 +1321,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "parameters": [ { "name": "bookingType", @@ -1305,7 +1333,11 @@ "required": true, "schema": { "type": "string", - "enum": ["all", "request", "booking"] + "enum": [ + "all", + "request", + "booking" + ] } } ], @@ -1362,7 +1394,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "parameters": [ { "name": "_limit", @@ -1548,7 +1582,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "requestBody": { "description": "", "required": true, @@ -1613,7 +1649,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "parameters": [] } }, @@ -1664,7 +1702,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "parameters": [ { "name": "id", @@ -1724,7 +1764,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "requestBody": { "description": "", "required": true, @@ -1796,7 +1838,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "parameters": [ { "name": "id", @@ -1862,7 +1906,9 @@ } }, "summary": "", - "tags": ["Booking"], + "tags": [ + "Booking" + ], "requestBody": { "description": "", "required": true, @@ -1946,7 +1992,9 @@ } }, "summary": "", - "tags": ["Campaign"], + "tags": [ + "Campaign" + ], "parameters": [ { "name": "_limit", @@ -2132,7 +2180,9 @@ } }, "summary": "", - "tags": ["Campaign"], + "tags": [ + "Campaign" + ], "requestBody": { "description": "", "required": true, @@ -2197,7 +2247,9 @@ } }, "summary": "", - "tags": ["Campaign"], + "tags": [ + "Campaign" + ], "parameters": [] } }, @@ -2248,7 +2300,9 @@ } }, "summary": "", - "tags": ["Campaign"], + "tags": [ + "Campaign" + ], "parameters": [ { "name": "id", @@ -2308,7 +2362,9 @@ } }, "summary": "", - "tags": ["Campaign"], + "tags": [ + "Campaign" + ], "requestBody": { "description": "", "required": true, @@ -2380,7 +2436,9 @@ } }, "summary": "", - "tags": ["Campaign"], + "tags": [ + "Campaign" + ], "parameters": [ { "name": "id", @@ -2445,7 +2503,9 @@ } }, "summary": "", - "tags": ["City"], + "tags": [ + "City" + ], "parameters": [ { "name": "_limit", @@ -2631,7 +2691,9 @@ } }, "summary": "", - "tags": ["City"], + "tags": [ + "City" + ], "requestBody": { "description": "", "required": true, @@ -2696,7 +2758,9 @@ } }, "summary": "", - "tags": ["City"], + "tags": [ + "City" + ], "parameters": [] } }, @@ -2747,7 +2811,9 @@ } }, "summary": "", - "tags": ["City"], + "tags": [ + "City" + ], "parameters": [ { "name": "id", @@ -2807,7 +2873,9 @@ } }, "summary": "", - "tags": ["City"], + "tags": [ + "City" + ], "requestBody": { "description": "", "required": true, @@ -2879,7 +2947,9 @@ } }, "summary": "", - "tags": ["City"], + "tags": [ + "City" + ], "parameters": [ { "name": "id", @@ -2944,7 +3014,9 @@ } }, "summary": "", - "tags": ["Contact"], + "tags": [ + "Contact" + ], "parameters": [ { "name": "_limit", @@ -3130,7 +3202,9 @@ } }, "summary": "", - "tags": ["Contact"], + "tags": [ + "Contact" + ], "requestBody": { "description": "", "required": true, @@ -3195,7 +3269,9 @@ } }, "summary": "", - "tags": ["Contact"], + "tags": [ + "Contact" + ], "parameters": [] } }, @@ -3246,7 +3322,9 @@ } }, "summary": "", - "tags": ["Contact"], + "tags": [ + "Contact" + ], "parameters": [ { "name": "id", @@ -3306,7 +3384,9 @@ } }, "summary": "", - "tags": ["Contact"], + "tags": [ + "Contact" + ], "requestBody": { "description": "", "required": true, @@ -3378,7 +3458,9 @@ } }, "summary": "", - "tags": ["Contact"], + "tags": [ + "Contact" + ], "parameters": [ { "name": "id", @@ -3443,7 +3525,9 @@ } }, "summary": "", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "parameters": [ { "name": "_limit", @@ -3629,7 +3713,9 @@ } }, "summary": "", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "requestBody": { "description": "", "required": true, @@ -3694,7 +3780,9 @@ } }, "summary": "", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "parameters": [] } }, @@ -3745,7 +3833,9 @@ } }, "summary": "", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "parameters": [ { "name": "id", @@ -3805,7 +3895,9 @@ } }, "summary": "", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "requestBody": { "description": "", "required": true, @@ -3876,7 +3968,9 @@ } }, "summary": "", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "parameters": [ { "name": "id", @@ -3941,7 +4035,9 @@ } }, "summary": "", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "requestBody": { "description": "", "required": true, @@ -4001,7 +4097,9 @@ } }, "summary": "Confirm Campaign", - "tags": ["Disponibility"], + "tags": [ + "Disponibility" + ], "requestBody": { "description": "", "required": true, @@ -4085,7 +4183,9 @@ } }, "summary": "", - "tags": ["Dispositif"], + "tags": [ + "Dispositif" + ], "parameters": [ { "name": "_limit", @@ -4271,7 +4371,9 @@ } }, "summary": "", - "tags": ["Dispositif"], + "tags": [ + "Dispositif" + ], "requestBody": { "description": "", "required": true, @@ -4336,7 +4438,9 @@ } }, "summary": "", - "tags": ["Dispositif"], + "tags": [ + "Dispositif" + ], "parameters": [] } }, @@ -4387,7 +4491,9 @@ } }, "summary": "", - "tags": ["Dispositif"], + "tags": [ + "Dispositif" + ], "parameters": [ { "name": "id", @@ -4447,7 +4553,9 @@ } }, "summary": "", - "tags": ["Dispositif"], + "tags": [ + "Dispositif" + ], "requestBody": { "description": "", "required": true, @@ -4519,7 +4627,9 @@ } }, "summary": "", - "tags": ["Dispositif"], + "tags": [ + "Dispositif" + ], "parameters": [ { "name": "id", @@ -4584,7 +4694,9 @@ } }, "summary": "", - "tags": ["Espace"], + "tags": [ + "Espace" + ], "parameters": [ { "name": "_limit", @@ -4776,7 +4888,9 @@ } }, "summary": "", - "tags": ["Espace"], + "tags": [ + "Espace" + ], "parameters": [ { "name": "_limit", @@ -4962,7 +5076,9 @@ } }, "summary": "", - "tags": ["Espace"], + "tags": [ + "Espace" + ], "requestBody": { "description": "", "required": true, @@ -5027,7 +5143,9 @@ } }, "summary": "", - "tags": ["Espace"], + "tags": [ + "Espace" + ], "parameters": [ { "name": "_limit", @@ -5215,7 +5333,9 @@ } }, "summary": "", - "tags": ["Espace"], + "tags": [ + "Espace" + ], "parameters": [ { "name": "id", @@ -5285,7 +5405,9 @@ } }, "summary": "", - "tags": ["Espace"], + "tags": [ + "Espace" + ], "requestBody": { "description": "", "required": true, @@ -5357,7 +5479,9 @@ } }, "summary": "", - "tags": ["Espace"], + "tags": [ + "Espace" + ], "parameters": [ { "name": "id", @@ -5422,7 +5546,9 @@ } }, "summary": "", - "tags": ["Faq-category"], + "tags": [ + "Faq-category" + ], "parameters": [ { "name": "_limit", @@ -5612,7 +5738,9 @@ } }, "summary": "", - "tags": ["Faq-category"], + "tags": [ + "Faq-category" + ], "requestBody": { "description": "", "required": true, @@ -5677,7 +5805,9 @@ } }, "summary": "", - "tags": ["Faq-category"], + "tags": [ + "Faq-category" + ], "parameters": [] } }, @@ -5732,7 +5862,9 @@ } }, "summary": "", - "tags": ["Faq-category"], + "tags": [ + "Faq-category" + ], "parameters": [ { "name": "id", @@ -5796,7 +5928,9 @@ } }, "summary": "", - "tags": ["Faq-category"], + "tags": [ + "Faq-category" + ], "requestBody": { "description": "", "required": true, @@ -5868,7 +6002,9 @@ } }, "summary": "", - "tags": ["Faq-category"], + "tags": [ + "Faq-category" + ], "parameters": [ { "name": "id", @@ -5934,7 +6070,9 @@ } }, "summary": "", - "tags": ["Faq-question"], + "tags": [ + "Faq-question" + ], "parameters": [ { "name": "_limit", @@ -6124,7 +6262,9 @@ } }, "summary": "", - "tags": ["Faq-question"], + "tags": [ + "Faq-question" + ], "requestBody": { "description": "", "required": true, @@ -6189,7 +6329,9 @@ } }, "summary": "", - "tags": ["Faq-question"], + "tags": [ + "Faq-question" + ], "parameters": [] } }, @@ -6244,7 +6386,9 @@ } }, "summary": "", - "tags": ["Faq-question"], + "tags": [ + "Faq-question" + ], "parameters": [ { "name": "id", @@ -6308,7 +6452,9 @@ } }, "summary": "", - "tags": ["Faq-question"], + "tags": [ + "Faq-question" + ], "requestBody": { "description": "", "required": true, @@ -6380,7 +6526,9 @@ } }, "summary": "", - "tags": ["Faq-question"], + "tags": [ + "Faq-question" + ], "parameters": [ { "name": "id", @@ -6442,7 +6590,9 @@ } }, "summary": "", - "tags": ["Home-carousel"], + "tags": [ + "Home-carousel" + ], "parameters": [ { "name": "_limit", @@ -6632,7 +6782,9 @@ } }, "summary": "", - "tags": ["Home-carousel"], + "tags": [ + "Home-carousel" + ], "requestBody": { "description": "", "required": true, @@ -6693,7 +6845,9 @@ } }, "summary": "", - "tags": ["Home-carousel"], + "tags": [ + "Home-carousel" + ], "parameters": [] } }, @@ -6744,7 +6898,9 @@ } }, "summary": "", - "tags": ["Home-message"], + "tags": [ + "Home-message" + ], "parameters": [ { "name": "_limit", @@ -6935,7 +7091,9 @@ } }, "summary": "", - "tags": ["Home-message"], + "tags": [ + "Home-message" + ], "requestBody": { "description": "", "required": true, @@ -6996,7 +7154,9 @@ } }, "summary": "", - "tags": ["Home-message"], + "tags": [ + "Home-message" + ], "parameters": [] } }, @@ -7050,7 +7210,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "parameters": [] } }, @@ -7105,7 +7267,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "requestBody": { "description": "", "required": true, @@ -7167,7 +7331,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "parameters": [ { "name": "id", @@ -7232,7 +7398,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "parameters": [ { "name": "id", @@ -7433,7 +7601,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "parameters": [ { "name": "_limit", @@ -7619,7 +7789,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "requestBody": { "description": "", "required": true, @@ -7684,7 +7856,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "parameters": [] } }, @@ -7735,7 +7909,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "parameters": [ { "name": "id", @@ -7795,7 +7971,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "requestBody": { "description": "", "required": true, @@ -7867,7 +8045,9 @@ } }, "summary": "", - "tags": ["Message"], + "tags": [ + "Message" + ], "parameters": [ { "name": "id", @@ -7932,7 +8112,9 @@ } }, "summary": "", - "tags": ["Page"], + "tags": [ + "Page" + ], "parameters": [ { "name": "_limit", @@ -8118,7 +8300,9 @@ } }, "summary": "", - "tags": ["Page"], + "tags": [ + "Page" + ], "requestBody": { "description": "", "required": true, @@ -8183,7 +8367,9 @@ } }, "summary": "", - "tags": ["Page"], + "tags": [ + "Page" + ], "parameters": [] } }, @@ -8234,7 +8420,9 @@ } }, "summary": "", - "tags": ["Page"], + "tags": [ + "Page" + ], "parameters": [ { "name": "url", @@ -8296,7 +8484,9 @@ } }, "summary": "", - "tags": ["Page"], + "tags": [ + "Page" + ], "requestBody": { "description": "", "required": true, @@ -8368,7 +8558,9 @@ } }, "summary": "", - "tags": ["Page"], + "tags": [ + "Page" + ], "parameters": [ { "name": "id", @@ -8434,7 +8626,9 @@ } }, "summary": "", - "tags": ["Email - Email"], + "tags": [ + "Email - Email" + ], "requestBody": { "description": "", "required": true, @@ -8503,7 +8697,9 @@ } }, "summary": "", - "tags": ["Email - Email"], + "tags": [ + "Email - Email" + ], "requestBody": { "description": "", "required": true, @@ -8572,7 +8768,9 @@ } }, "summary": "", - "tags": ["Email - Email"], + "tags": [ + "Email - Email" + ], "parameters": [] } }, @@ -8660,7 +8858,9 @@ } }, "summary": "", - "tags": ["Upload - File"], + "tags": [ + "Upload - File" + ], "requestBody": { "description": "", "required": true, @@ -8725,7 +8925,9 @@ } }, "summary": "", - "tags": ["Upload - File"], + "tags": [ + "Upload - File" + ], "parameters": [] } }, @@ -8779,7 +8981,9 @@ } }, "summary": "", - "tags": ["Upload - File"], + "tags": [ + "Upload - File" + ], "parameters": [] } }, @@ -8830,7 +9034,9 @@ } }, "summary": "", - "tags": ["Upload - File"], + "tags": [ + "Upload - File" + ], "parameters": [ { "name": "id", @@ -8890,7 +9096,9 @@ } }, "summary": "", - "tags": ["Upload - File"], + "tags": [ + "Upload - File" + ], "parameters": [ { "name": "id", @@ -8955,7 +9163,9 @@ } }, "summary": "", - "tags": ["Upload - File"], + "tags": [ + "Upload - File" + ], "parameters": [ { "name": "id", @@ -9017,7 +9227,9 @@ } }, "summary": "", - "tags": ["Unclassified"], + "tags": [ + "Unclassified" + ], "parameters": [], "requestBody": { "description": "", @@ -9077,7 +9289,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - User"], + "tags": [ + "UsersPermissions - User" + ], "parameters": [] } }, @@ -9128,7 +9342,9 @@ } }, "summary": "", - "tags": ["Unclassified"], + "tags": [ + "Unclassified" + ], "requestBody": { "description": "", "required": true, @@ -9193,7 +9409,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - Role"], + "tags": [ + "UsersPermissions - Role" + ], "parameters": [ { "name": "id", @@ -9258,7 +9476,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - Role"], + "tags": [ + "UsersPermissions - Role" + ], "parameters": [ { "name": "_limit", @@ -9444,7 +9664,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - Role"], + "tags": [ + "UsersPermissions - Role" + ], "requestBody": { "description": "", "required": true, @@ -9505,7 +9727,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - Role"], + "tags": [ + "UsersPermissions - Role" + ], "parameters": [ { "name": "role", @@ -9580,7 +9804,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - Role"], + "tags": [ + "UsersPermissions - Role" + ], "parameters": [ { "name": "role", @@ -9645,7 +9871,9 @@ } }, "summary": "Retrieve a list of users by searching for their username or email", - "tags": ["UsersPermissions - User"], + "tags": [ + "UsersPermissions - User" + ], "parameters": [ { "name": "id", @@ -9700,7 +9928,9 @@ } }, "summary": "Authenticate your user with a custom provider", - "tags": ["Authentication"], + "tags": [ + "Authentication" + ], "parameters": [ { "name": "provider", @@ -9767,14 +9997,19 @@ } }, "summary": "", - "tags": ["Authentication"], + "tags": [ + "Authentication" + ], "requestBody": { "description": "The identifier param can either be an email or a username", "required": true, "content": { "application/json": { "schema": { - "required": ["identifier", "password"], + "required": [ + "identifier", + "password" + ], "properties": { "identifier": { "type": "string" @@ -9846,14 +10081,20 @@ } }, "summary": "", - "tags": ["Authentication"], + "tags": [ + "Authentication" + ], "requestBody": { "description": "", "required": true, "content": { "application/json": { "schema": { - "required": ["username", "email", "password"], + "required": [ + "username", + "email", + "password" + ], "properties": { "username": { "type": "string", @@ -9927,7 +10168,9 @@ } }, "summary": "", - "tags": ["Authentication"], + "tags": [ + "Authentication" + ], "parameters": [ { "name": "provider", @@ -9986,7 +10229,9 @@ } }, "summary": "Send an email to reset your password", - "tags": ["Authentication"], + "tags": [ + "Authentication" + ], "requestBody": { "description": "", "required": true, @@ -10064,14 +10309,20 @@ } }, "summary": "", - "tags": ["Authentication"], + "tags": [ + "Authentication" + ], "requestBody": { "description": "", "required": true, "content": { "application/json": { "schema": { - "required": ["code", "password", "passwordConfirmation"], + "required": [ + "code", + "password", + "passwordConfirmation" + ], "properties": { "code": { "type": "string" @@ -10142,7 +10393,9 @@ } }, "summary": "", - "tags": ["Authentication"], + "tags": [ + "Authentication" + ], "parameters": [ { "name": "confirmation", @@ -10208,14 +10461,18 @@ } }, "summary": "", - "tags": ["UsersPermissions - User"], + "tags": [ + "UsersPermissions - User" + ], "requestBody": { "description": "", "required": true, "content": { "application/json": { "schema": { - "required": ["email"], + "required": [ + "email" + ], "properties": { "email": { "type": "string", @@ -10283,7 +10540,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - User"], + "tags": [ + "UsersPermissions - User" + ], "parameters": [ { "name": "_limit", @@ -10471,7 +10730,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - User"], + "tags": [ + "UsersPermissions - User" + ], "parameters": [ { "name": "id", @@ -10531,7 +10792,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - User"], + "tags": [ + "UsersPermissions - User" + ], "parameters": [ { "name": "id", @@ -10606,7 +10869,9 @@ } }, "summary": "", - "tags": ["UsersPermissions - User"], + "tags": [ + "UsersPermissions - User" + ], "parameters": [ { "name": "id", @@ -10625,7 +10890,12 @@ "components": { "schemas": { "Actuality": { - "required": ["id", "title", "content", "image"], + "required": [ + "id", + "title", + "content", + "image" + ], "properties": { "id": { "type": "string" @@ -10716,7 +10986,10 @@ } }, "NewActuality": { - "required": ["title", "content"], + "required": [ + "title", + "content" + ], "properties": { "title": { "type": "string" @@ -10740,20 +11013,32 @@ } }, "Application": { - "required": ["id"], + "required": [ + "id" + ], "properties": { "id": { "type": "string" }, "disponibility": { - "required": ["id", "start", "end", "type", "status"], + "required": [ + "id", + "start", + "end", + "type", + "status" + ], "properties": { "id": { "type": "string" }, "when": { "type": "string", - "enum": ["morning", "afternoon", "full"] + "enum": [ + "morning", + "afternoon", + "full" + ] }, "start": { "type": "string" @@ -10766,7 +11051,11 @@ }, "type": { "type": "string", - "enum": ["punctual", "day", "period"] + "enum": [ + "punctual", + "day", + "period" + ] }, "status": { "type": "string", @@ -11136,7 +11425,10 @@ }, "type": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "external_id": { "type": "integer" @@ -11286,7 +11578,11 @@ }, "danceCarpet": { "type": "string", - "enum": ["true", "false", "possible"] + "enum": [ + "true", + "false", + "possible" + ] }, "slug": { "type": "string" @@ -11325,7 +11621,10 @@ }, "status": { "type": "string", - "enum": ["preselected", "confirmed"] + "enum": [ + "preselected", + "confirmed" + ] }, "published_at": { "type": "string", @@ -11379,7 +11678,10 @@ }, "status": { "type": "string", - "enum": ["preselected", "confirmed"] + "enum": [ + "preselected", + "confirmed" + ] }, "published_at": { "type": "string", @@ -11394,7 +11696,9 @@ } }, "Booking": { - "required": ["id"], + "required": [ + "id" + ], "properties": { "id": { "type": "string" @@ -11531,14 +11835,24 @@ "disponibilities": { "type": "array", "items": { - "required": ["id", "start", "end", "type", "status"], + "required": [ + "id", + "start", + "end", + "type", + "status" + ], "properties": { "id": { "type": "string" }, "when": { "type": "string", - "enum": ["morning", "afternoon", "full"] + "enum": [ + "morning", + "afternoon", + "full" + ] }, "start": { "type": "string" @@ -11551,7 +11865,11 @@ }, "type": { "type": "string", - "enum": ["punctual", "day", "period"] + "enum": [ + "punctual", + "day", + "period" + ] }, "status": { "type": "string", @@ -11739,7 +12057,10 @@ }, "type": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "external_id": { "type": "integer" @@ -11792,7 +12113,9 @@ "applications": { "type": "array", "items": { - "required": ["id"], + "required": [ + "id" + ], "properties": { "id": { "type": "string" @@ -11847,7 +12170,10 @@ }, "status": { "type": "string", - "enum": ["preselected", "confirmed"] + "enum": [ + "preselected", + "confirmed" + ] }, "published_at": { "type": "string" @@ -11981,7 +12307,11 @@ } }, "City": { - "required": ["id", "name", "country"], + "required": [ + "id", + "name", + "country" + ], "properties": { "id": { "type": "string" @@ -12104,7 +12434,11 @@ }, "danceCarpet": { "type": "string", - "enum": ["true", "false", "possible"] + "enum": [ + "true", + "false", + "possible" + ] }, "slug": { "type": "string" @@ -12154,7 +12488,10 @@ } }, "NewCity": { - "required": ["name", "country"], + "required": [ + "name", + "country" + ], "properties": { "name": { "type": "string" @@ -12183,7 +12520,12 @@ } }, "Contact": { - "required": ["id", "name", "message", "from"], + "required": [ + "id", + "name", + "message", + "from" + ], "properties": { "id": { "type": "string" @@ -12200,7 +12542,11 @@ } }, "NewContact": { - "required": ["name", "message", "from"], + "required": [ + "name", + "message", + "from" + ], "properties": { "name": { "type": "string" @@ -12220,14 +12566,24 @@ } }, "Disponibility": { - "required": ["id", "start", "end", "type", "status"], + "required": [ + "id", + "start", + "end", + "type", + "status" + ], "properties": { "id": { "type": "string" }, "when": { "type": "string", - "enum": ["morning", "afternoon", "full"] + "enum": [ + "morning", + "afternoon", + "full" + ] }, "start": { "type": "string", @@ -12350,7 +12706,11 @@ }, "danceCarpet": { "type": "string", - "enum": ["true", "false", "possible"] + "enum": [ + "true", + "false", + "possible" + ] }, "slug": { "type": "string" @@ -12389,7 +12749,11 @@ }, "type": { "type": "string", - "enum": ["punctual", "day", "period"] + "enum": [ + "punctual", + "day", + "period" + ] }, "status": { "type": "string", @@ -12404,7 +12768,9 @@ ] }, "booking": { - "required": ["id"], + "required": [ + "id" + ], "properties": { "id": { "type": "string" @@ -12452,7 +12818,10 @@ } }, "dispositif": { - "required": ["id", "name"], + "required": [ + "id", + "name" + ], "properties": { "id": { "type": "string" @@ -12493,7 +12862,10 @@ } }, "message": { - "required": ["id", "status"], + "required": [ + "id", + "status" + ], "properties": { "id": { "type": "string" @@ -12509,7 +12881,10 @@ }, "author": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "status": { "type": "string", @@ -12654,7 +13029,9 @@ "applications": { "type": "array", "items": { - "required": ["id"], + "required": [ + "id" + ], "properties": { "id": { "type": "string" @@ -12709,7 +13086,10 @@ }, "status": { "type": "string", - "enum": ["preselected", "confirmed"] + "enum": [ + "preselected", + "confirmed" + ] }, "published_at": { "type": "string" @@ -12742,11 +13122,20 @@ } }, "NewDisponibility": { - "required": ["start", "end", "type", "status"], + "required": [ + "start", + "end", + "type", + "status" + ], "properties": { "when": { "type": "string", - "enum": ["morning", "afternoon", "full"] + "enum": [ + "morning", + "afternoon", + "full" + ] }, "start": { "type": "string", @@ -12761,7 +13150,11 @@ }, "type": { "type": "string", - "enum": ["punctual", "day", "period"] + "enum": [ + "punctual", + "day", + "period" + ] }, "status": { "type": "string", @@ -12818,7 +13211,10 @@ } }, "Dispositif": { - "required": ["id", "name"], + "required": [ + "id", + "name" + ], "properties": { "id": { "type": "string" @@ -12829,14 +13225,24 @@ "disponibilities": { "type": "array", "items": { - "required": ["id", "start", "end", "type", "status"], + "required": [ + "id", + "start", + "end", + "type", + "status" + ], "properties": { "id": { "type": "string" }, "when": { "type": "string", - "enum": ["morning", "afternoon", "full"] + "enum": [ + "morning", + "afternoon", + "full" + ] }, "start": { "type": "string" @@ -12849,7 +13255,11 @@ }, "type": { "type": "string", - "enum": ["punctual", "day", "period"] + "enum": [ + "punctual", + "day", + "period" + ] }, "status": { "type": "string", @@ -13028,7 +13438,10 @@ }, "type": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "external_id": { "type": "integer" @@ -13182,7 +13595,10 @@ }, "type": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "external_id": { "type": "integer" @@ -13223,7 +13639,9 @@ } }, "NewDispositif": { - "required": ["name"], + "required": [ + "name" + ], "properties": { "name": { "type": "string" @@ -13314,7 +13732,11 @@ }, "floor": { "type": "string", - "enum": ["plancherDanse", "parquetTraditionnel", "other"] + "enum": [ + "plancherDanse", + "parquetTraditionnel", + "other" + ] }, "otherFloor": { "type": "string" @@ -13380,7 +13802,11 @@ }, "danceCarpet": { "type": "string", - "enum": ["true", "false", "possible"] + "enum": [ + "true", + "false", + "possible" + ] }, "campaign_files": { "type": "array", @@ -13553,7 +13979,11 @@ }, "danceCarpet": { "type": "string", - "enum": ["true", "false", "possible"] + "enum": [ + "true", + "false", + "possible" + ] }, "slug": { "type": "string" @@ -13586,7 +14016,10 @@ } }, "Faq-category": { - "required": ["id", "name"], + "required": [ + "id", + "name" + ], "properties": { "id": { "type": "string" @@ -13597,7 +14030,11 @@ "faq_questions": { "type": "array", "items": { - "required": ["id", "question", "answer"], + "required": [ + "id", + "question", + "answer" + ], "properties": { "id": { "type": "string" @@ -13623,7 +14060,9 @@ } }, "NewFaq-category": { - "required": ["name"], + "required": [ + "name" + ], "properties": { "name": { "type": "string" @@ -13643,7 +14082,11 @@ } }, "Faq-question": { - "required": ["id", "question", "answer"], + "required": [ + "id", + "question", + "answer" + ], "properties": { "id": { "type": "string" @@ -13655,7 +14098,10 @@ "type": "string" }, "faq_category": { - "required": ["id", "name"], + "required": [ + "id", + "name" + ], "properties": { "id": { "type": "string" @@ -13680,7 +14126,10 @@ } }, "NewFaq-question": { - "required": ["question", "answer"], + "required": [ + "question", + "answer" + ], "properties": { "question": { "type": "string" @@ -13700,7 +14149,10 @@ } }, "Home-carousel": { - "required": ["id", "images"], + "required": [ + "id", + "images" + ], "properties": { "id": { "type": "string" @@ -13788,7 +14240,10 @@ } }, "Home-message": { - "required": ["id", "text"], + "required": [ + "id", + "text" + ], "properties": { "id": { "type": "string" @@ -13806,7 +14261,9 @@ } }, "NewHome-message": { - "required": ["text"], + "required": [ + "text" + ], "properties": { "text": { "type": "string" @@ -13827,7 +14284,10 @@ } }, "Message": { - "required": ["id", "status"], + "required": [ + "id", + "status" + ], "properties": { "id": { "type": "string" @@ -13867,12 +14327,17 @@ }, "author": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] } } }, "NewMessage": { - "required": ["status"], + "required": [ + "status" + ], "properties": { "message": { "type": "string" @@ -13885,7 +14350,10 @@ }, "author": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "status": { "type": "string", @@ -13928,7 +14396,9 @@ } }, "ReadNotif": { - "required": ["status"], + "required": [ + "status" + ], "properties": { "bookingId": { "type": "string" @@ -13938,7 +14408,11 @@ }, "status": { "type": "string", - "enum": ["message", "request", "booking"] + "enum": [ + "message", + "request", + "booking" + ] } } }, @@ -13956,7 +14430,10 @@ } }, "Page": { - "required": ["id", "url"], + "required": [ + "id", + "url" + ], "properties": { "id": { "type": "string" @@ -13974,7 +14451,9 @@ } }, "NewPage": { - "required": ["url"], + "required": [ + "url" + ], "properties": { "title": { "type": "string" @@ -14041,7 +14520,10 @@ } }, "UsersPermissionsRole": { - "required": ["id", "name"], + "required": [ + "id", + "name" + ], "properties": { "id": { "type": "string" @@ -14059,7 +14541,13 @@ "permissions": { "type": "array", "items": { - "required": ["id", "type", "controller", "action", "enabled"], + "required": [ + "id", + "type", + "controller", + "action", + "enabled" + ], "properties": { "id": { "type": "string" @@ -14207,7 +14695,10 @@ }, "type": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "external_id": { "type": "integer" @@ -14248,7 +14739,9 @@ } }, "NewUsersPermissionsRole": { - "required": ["name"], + "required": [ + "name" + ], "properties": { "name": { "type": "string", @@ -14307,7 +14800,10 @@ "type": "string" }, "role": { - "required": ["id", "name"], + "required": [ + "id", + "name" + ], "properties": { "id": { "type": "string" @@ -14419,7 +14915,10 @@ }, "type": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "external_id": { "type": "string" @@ -14554,7 +15053,10 @@ }, "type": { "type": "string", - "enum": ["company", "place"] + "enum": [ + "company", + "place" + ] }, "created_by": { "type": "string" @@ -14565,7 +15067,10 @@ } }, "Error": { - "required": ["code", "message"], + "required": [ + "code", + "message" + ], "properties": { "code": { "type": "integer", @@ -14632,4 +15137,4 @@ "name": "UsersPermissions - User" } ] -} +} \ No newline at end of file diff --git a/back/yarn.lock b/back/yarn.lock index 468f109c..f99e6397 100644 --- a/back/yarn.lock +++ b/back/yarn.lock @@ -1711,6 +1711,96 @@ resolved "https://registry.yarnpkg.com/@react-dnd/shallowequal/-/shallowequal-2.0.0.tgz#a3031eb54129f2c66b2753f8404266ec7bf67f0a" integrity sha512-Pc/AFTdwZwEKJxFJvlxrSmGe/di+aAOBn60sremrpLo6VI/6cmiUYNNwlI5KNYttg7uypzA3ILPMPgxB2GYZEg== +"@react-pdf/fontkit@^1.13.0", "@react-pdf/fontkit@^1.15.0": + version "1.15.0" + resolved "https://registry.yarnpkg.com/@react-pdf/fontkit/-/fontkit-1.15.0.tgz#81bbf6e02def6628dfa6e82f6ec6238c31da5a8c" + integrity sha512-ymyReHUE7o5UjJiImL7WWpDecjZcHxEOf2M47yu3KSCM+2CdvJziCztJamjiR4GTEcjmUdop5z8SvKA4DldnYg== + dependencies: + "@react-pdf/unicode-properties" "2.3.0" + brotli "^1.2.0" + clone "^1.0.1" + deep-equal "^1.0.0" + dfa "^1.0.0" + restructure "^0.5.3" + tiny-inflate "^1.0.2" + unicode-trie "^0.3.0" + +"@react-pdf/pdfkit@^1.2.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@react-pdf/pdfkit/-/pdfkit-1.6.0.tgz#85c515d21e803ffcae83f4053c4229f7ed115752" + integrity sha512-TVyrESXfqkfLvbg6XekQvHf0MrXiploxga1AxlqUsPUNXSAocg0Iw1/kjRh7xd2MJSKv5RIycLrv9MAdh4zCTw== + dependencies: + "@react-pdf/fontkit" "^1.15.0" + "@react-pdf/png-js" "^1.0.0" + lz-string "^1.4.4" + +"@react-pdf/png-js@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@react-pdf/png-js/-/png-js-1.0.0.tgz#00fcb969dca4ce82a0a7673413ade039e47b361e" + integrity sha512-5+lbDJphnvBt/0YfKf52fB8E47I7Y6cu5HKATmVsM2bjwnj7WKIqglQbvh5M7kOsSuma/rWRVahJEHF38op/fA== + +"@react-pdf/renderer@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@react-pdf/renderer/-/renderer-1.0.0.tgz#4e638f7fd9a8a3b8ea812532324adbfe35657f0f" + integrity sha512-pQHFzJoAhV2fdyQ2AZ/A/c5K46U3Ubssil6fJOXscUrZumGQz1wVGH+7JVRYRRL7Ny5bjqOht5N2Zla6B7UnXg== + dependencies: + "@react-pdf/fontkit" "^1.13.0" + "@react-pdf/pdfkit" "^1.2.0" + "@react-pdf/png-js" "^1.0.0" + "@react-pdf/script-itemizer" "^0.2.1" + "@react-pdf/textkit-core" "^0.2.0" + "@textkit/justification-engine" "^0.1.9" + "@textkit/pdf-renderer" "^0.1.11" + "@textkit/text-decoration-engine" "^0.1.10" + babel-runtime "^6.26.0" + blob-stream "^0.1.3" + emoji-regex "^6.5.1" + fbjs "^0.8.4" + hyphenation.en-us "^0.2.1" + hypher "^0.2.5" + is-url "^1.2.2" + isomorphic-fetch "^2.2.1" + lodash.groupby "^4.6.0" + lodash.isfunction "^3.0.8" + lodash.isnil "^4.0.0" + lodash.merge "^4.6.1" + lodash.pick "^4.4.0" + lodash.topairsin "^4.3.0" + media-engine "^1.0.3" + page-wrapping "^1.1.0" + react "^16.4.1" + react-reconciler "^0.12.0" + yoga-layout-prebuilt "1.9.3" + +"@react-pdf/script-itemizer@^0.2.1": + version "0.2.1" + resolved "https://registry.yarnpkg.com/@react-pdf/script-itemizer/-/script-itemizer-0.2.1.tgz#673e9a7812823d53e7d41d83515930fb318ae0cb" + integrity sha512-2tK9HlhZkjuz2qx63JL79GSOnbdA9pXrpThX/iLpDvNHLTiQUBj2YAekQAbM6wQZexccVSDON7adfFaSRKFXlQ== + dependencies: + "@react-pdf/unicode-properties" "^2.2.0" + +"@react-pdf/textkit-core@^0.2.0": + version "0.2.5" + resolved "https://registry.yarnpkg.com/@react-pdf/textkit-core/-/textkit-core-0.2.5.tgz#c0d4ebc6b5a6addbf74371db4c5bf9fe6df8279f" + integrity sha512-8OhToPefEPfLpHno+vxgyCazEPa5GFpMaL5T+dtmjjxXneZwUCVj+QL9iz8x6HM3G7F58CHogZllWN9d+zvDIg== + dependencies: + "@react-pdf/unicode-properties" "^2.2.0" + cubic2quad "^1.1.0" + +"@react-pdf/unicode-properties@2.3.0": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@react-pdf/unicode-properties/-/unicode-properties-2.3.0.tgz#822a7fda81b88a054fafd782170898c898b180ec" + integrity sha512-ELUau972GjR9KCZLn3LDtSOeHQ8dAH2QVQUXw9Qn/wFeX0vU13GKZ9LDWRCgL1qBKvPo/lIe4On3U2TS2KzEbQ== + dependencies: + unicode-trie "^0.3.0" + +"@react-pdf/unicode-properties@^2.2.0": + version "2.6.0" + resolved "https://registry.yarnpkg.com/@react-pdf/unicode-properties/-/unicode-properties-2.6.0.tgz#04992686e61ee7a1c238fc41f7a0d19daf293d23" + integrity sha512-9udElnd75FS+2tSyKlVmSifQ7Qf7eH4TivgiKflAMiw3MpsoSvuMPDVAjzi4VppymMdondi6k4Au8JCHQuc0/A== + dependencies: + unicode-trie "^0.3.0" + "@request/api@^0.6.0": version "0.6.0" resolved "https://registry.yarnpkg.com/@request/api/-/api-0.6.0.tgz#e46e4c32e21db9ca72639701cba1ebfee06c1666" @@ -1831,6 +1921,24 @@ dependencies: defer-to-connect "^1.0.1" +"@textkit/justification-engine@^0.1.9": + version "0.1.9" + resolved "https://registry.yarnpkg.com/@textkit/justification-engine/-/justification-engine-0.1.9.tgz#4a964ddccd48b6f20eacf1ae17a011e3e2cf9093" + integrity sha512-LY3+XRiWImoOqGKPBch66WI8rpOdn0aRF6rxkKKbSmcPQ7nFOpNOj2F4oaqCe/RnZWzHx2AzNlU1jMahDIlEig== + dependencies: + lodash.clone "^4.5.0" + lodash.merge "^4.6.1" + +"@textkit/pdf-renderer@^0.1.11": + version "0.1.13" + resolved "https://registry.yarnpkg.com/@textkit/pdf-renderer/-/pdf-renderer-0.1.13.tgz#05b10ee1e5a75152ffff4cde7c13c192c2d223c4" + integrity sha512-SWJW94wo4oWXS7VuGsZmJEZveM1UlGALMdIB/EDj+0qGRnf/X4yULIb2cIa8uJZ9juj7zRutLSLofAjHVq4lXw== + +"@textkit/text-decoration-engine@^0.1.10": + version "0.1.10" + resolved "https://registry.yarnpkg.com/@textkit/text-decoration-engine/-/text-decoration-engine-0.1.10.tgz#b97b725b62e707ddd08c8b3a2d914659ef3df613" + integrity sha512-Nb/rPpHsz6OAHqJGBdEfxK1PIArQQoYMimnjMj9JTB5wzscEuHp7sj3wcV4Xvd1RshkbJEfWV5zTDB0Lghl5ig== + "@types/bson@*": version "4.0.3" resolved "https://registry.yarnpkg.com/@types/bson/-/bson-4.0.3.tgz#30889d2ffde6262abbe38659364c631454999fbf" @@ -2175,6 +2283,11 @@ ajv@^6.1.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + integrity sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg== + ansi-align@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.0.tgz#b536b371cf687caaef236c18d3e21fe3797467cb" @@ -2396,11 +2509,25 @@ assign-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= +ast-transform@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/ast-transform/-/ast-transform-0.0.0.tgz#74944058887d8283e189d954600947bc98fe0062" + integrity sha512-e/JfLiSoakfmL4wmTGPjv0HpTICVmxwXgYOB8x+mzozHL8v+dSfCbrJ8J8hJ0YBP0XcYu1aLZ6b/3TnxNK3P2A== + dependencies: + escodegen "~1.2.0" + esprima "~1.0.4" + through "~2.3.4" + ast-types@0.9.6: version "0.9.6" resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.6.tgz#102c9e9e9005d3e7e3829bf0c4fa24ee862ee9b9" integrity sha1-ECyenpAF0+fjgpvwxPok7oYu6bk= +ast-types@^0.7.0: + version "0.7.8" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.7.8.tgz#902d2e0d60d071bdcd46dc115e1809ed11c138a9" + integrity sha512-RIOpVnVlltB6PcBJ5BMLx+H+6JJ/zjDGU0t7f0L6c2M1dqcK92VQopLBlPQ9R80AVXelfqYgjcPLtHtDbNFg0Q== + async-each@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" @@ -2534,6 +2661,14 @@ babel-plugin-syntax-jsx@^6.18.0: resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY= +babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + integrity sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g== + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -2544,7 +2679,7 @@ base-64@^0.1.0: resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb" integrity sha1-eAqZyE59YAJgNhURxId2E78k9rs= -base64-js@^1.0.2, base64-js@^1.3.1: +base64-js@^1.0.2, base64-js@^1.1.2, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== @@ -2628,6 +2763,18 @@ bl@^4.0.3, bl@^4.1.0: inherits "^2.0.4" readable-stream "^3.4.0" +blob-stream@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/blob-stream/-/blob-stream-0.1.3.tgz#98d668af6996e0f32ef666d06e215ccc7d77686c" + integrity sha512-xXwyhgVmPsFVFFvtM5P0syI17/oae+MIjLn5jGhuD86mmSJ61EWMWmbPrV/0+bdcH9jQ2CzIhmTQKNUJL7IPog== + dependencies: + blob "0.0.4" + +blob@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/blob/-/blob-0.0.4.tgz#bcf13052ca54463f30f9fc7e95b9a47630a94921" + integrity sha512-YRc9zvVz4wNaxcXmiSgb9LAg7YYwqQ2xd0Sj6osfA7k/PKmIGVlnOYs3wOFdkRC9/JpQu8sGt/zHgJV7xzerfg== + bluebird@3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" @@ -2771,6 +2918,20 @@ brorand@^1.0.1, brorand@^1.1.0: resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= +brotli@^1.2.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/brotli/-/brotli-1.3.3.tgz#7365d8cc00f12cf765d2b2c898716bcf4b604d48" + integrity sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg== + dependencies: + base64-js "^1.1.2" + +browser-resolve@^1.8.1: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + integrity sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ== + dependencies: + resolve "1.1.7" + browserify-aes@^1.0.0, browserify-aes@^1.0.4: version "1.2.0" resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" @@ -2802,6 +2963,15 @@ browserify-des@^1.0.0: inherits "^2.0.1" safe-buffer "^5.1.2" +browserify-optional@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-optional/-/browserify-optional-1.0.1.tgz#1e13722cfde0d85f121676c2a72ced533a018869" + integrity sha512-VrhjbZ+Ba5mDiSYEuPelekQMfTbhcA2DhLk2VQWqdcCROWeFqlTcXZ7yfRkXCIl8E+g4gINJYJiRB7WEtfomAQ== + dependencies: + ast-transform "0.0.0" + ast-types "^0.7.0" + browser-resolve "^1.8.1" + browserify-rsa@^4.0.0, browserify-rsa@^4.0.1: version "4.1.0" resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.1.0.tgz#b2fd06b5b75ae297f7ce2dc651f918f5be158c8d" @@ -3036,6 +3206,17 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-bind@^1.0.6, call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" + camel-case@3.0.x: version "3.0.0" resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" @@ -3341,7 +3522,7 @@ clone-response@1.0.2, clone-response@^1.0.2: dependencies: mimic-response "^1.0.0" -clone@^1.0.2: +clone@^1.0.1, clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= @@ -3658,7 +3839,12 @@ core-js-compat@^3.9.1: browserslist "^4.16.4" semver "7.0.0" -core-js@^2.6.5: +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + integrity sha512-ZiPp9pZlgxpWRu0M+YWbm6+aQ84XEfH1JRXvfOc/fILWI0VKhLC2LX13X1NYq4fULzLMq7Hfh43CSo2/aIaUPA== + +core-js@^2.4.0, core-js@^2.6.5: version "2.6.12" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== @@ -3864,6 +4050,11 @@ csv-parser@^3.0.0: dependencies: minimist "^1.2.0" +cubic2quad@^1.1.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/cubic2quad/-/cubic2quad-1.2.1.tgz#2442260b72c02ee4b6a2fe998fcc1c4073622286" + integrity sha512-wT5Y7mO8abrV16gnssKdmIhIbA9wSkeMzhh27jAguKrV82i24wER0vL5TGhUJ9dbJNDcigoRZ0IAHFEEEI4THQ== + cyclist@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" @@ -3958,6 +4149,18 @@ deep-copy@^1.1.2: resolved "https://registry.yarnpkg.com/deep-copy/-/deep-copy-1.4.2.tgz#0622719257e4bd60240e401ea96718211c5c4697" integrity sha512-VxZwQ/1+WGQPl5nE67uLhh7OqdrmqI1OazrraO9Bbw/M8Bt6Mol/RxzDA6N6ZgRXpsG/W9PgUj8E1LHHBEq2GQ== +deep-equal@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.2.tgz#78a561b7830eef3134c7f6f3a3d6af272a678761" + integrity sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg== + dependencies: + is-arguments "^1.1.1" + is-date-object "^1.0.5" + is-regex "^1.1.4" + object-is "^1.1.5" + object-keys "^1.1.1" + regexp.prototype.flags "^1.5.1" + deep-equal@^1.0.1, deep-equal@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a" @@ -4015,6 +4218,15 @@ defer-to-connect@^1.0.1: resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== +define-data-property@^1.0.1, define-data-property@^1.1.2, define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + define-properties@^1.1.2, define-properties@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" @@ -4022,6 +4234,15 @@ define-properties@^1.1.2, define-properties@^1.1.3: dependencies: object-keys "^1.0.12" +define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== + dependencies: + define-data-property "^1.0.1" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -4115,6 +4336,11 @@ detect-node@^2.0.4: resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c" integrity sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw== +dfa@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/dfa/-/dfa-1.2.0.tgz#96ac3204e2d29c49ea5b57af8d92c2ae12790657" + integrity sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q== + diffie-hellman@^5.0.0: version "5.0.3" resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" @@ -4377,6 +4603,11 @@ elliptic@^6.5.3: minimalistic-assert "^1.0.1" minimalistic-crypto-utils "^1.0.1" +emoji-regex@^6.5.1: + version "6.5.1" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-6.5.1.tgz#9baea929b155565c11ea41c6626eaa65cef992c2" + integrity sha512-PAHp6TxrCy7MGMFidro8uikr+zlJJKJ/Q6mm2ExZ7HwkyR9lSVFfE3kt36qcwa24BQL7y0G9axycGjK1A/0uNQ== + emoji-regex@^7.0.1: version "7.0.3" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" @@ -4402,6 +4633,13 @@ encodeurl@^1.0.2, encodeurl@~1.0.2: resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= +encoding@^0.1.11: + version "0.1.13" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" + integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== + dependencies: + iconv-lite "^0.6.2" + end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1: version "1.4.4" resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" @@ -4484,6 +4722,18 @@ es-abstract@^1.17.4, es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2: string.prototype.trimstart "^1.0.4" unbox-primitive "^1.0.0" +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" @@ -4526,6 +4776,17 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escodegen@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.2.0.tgz#09de7967791cc958b7f89a2ddb6d23451af327e1" + integrity sha512-yLy3Cc+zAC0WSmoT2fig3J87TpQ8UaZGx8ahCAs9FL8qNbyV7CVyPKS74DG4bsHiL5ew9sxdYx131OkBQMFnvA== + dependencies: + esprima "~1.0.4" + estraverse "~1.5.0" + esutils "~1.0.0" + optionalDependencies: + source-map "~0.1.30" + eslint-scope@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" @@ -4539,6 +4800,11 @@ esm@^3.2.25: resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.25.tgz#342c18c29d56157688ba5ce31f8431fbb795cc10" integrity sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA== +esprima@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-1.0.4.tgz#9f557e08fc3b4d26ece9dd34f8fbf476b62585ad" + integrity sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA== + esprima@~3.1.0: version "3.1.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" @@ -4561,11 +4827,21 @@ estraverse@^5.2.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== +estraverse@~1.5.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.5.1.tgz#867a3e8e58a9f84618afb6c2ddbcd916b7cbaf71" + integrity sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +esutils@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-1.0.0.tgz#8151d358e20c8acc7fb745e7472c0025fe496570" + integrity sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg== + etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" @@ -4777,6 +5053,19 @@ fbjs-css-vars@^1.0.0: resolved "https://registry.yarnpkg.com/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz#216551136ae02fe255932c3ec8775f18e2c078b8" integrity sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ== +fbjs@^0.8.16, fbjs@^0.8.4: + version "0.8.18" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.18.tgz#9835e0addb9aca2eff53295cd79ca1cfc7c9662a" + integrity sha512-EQaWFK+fEPSoibjNy8IxUtaFOMXcWsY0JaVrQoZR9zC8N2Ygf9iDITPWjUTVIax95b6I742JFLqASHfsag/vKA== + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.30" + fbjs@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-2.0.0.tgz#01fb812138d7e31831ed3e374afe27b9169ef442" @@ -5101,6 +5390,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + function.prototype.name@^1.1.2: version "1.1.4" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.4.tgz#e4ea839b9d3672ae99d0efd9f38d9191c5eaac83" @@ -5116,6 +5410,11 @@ functions-have-names@^1.2.2: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.2.tgz#98d93991c39da9361f8e50b337c4f6e41f120e21" integrity sha512-bLgc3asbWdwPbx2mNk2S49kmJCuQeu0nfmaOgbs8WIyzzkw3r4htszdIi9Q9EMezDPTYuJx2wvjZ/EwgAthpnA== +functions-have-names@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + gauge@~2.7.3: version "2.7.4" resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" @@ -5149,6 +5448,17 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.1: has "^1.0.3" has-symbols "^1.0.1" +get-intrinsic@^1.1.3, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + get-stream@3.0.0, get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -5304,6 +5614,13 @@ good-listener@^1.2.2: dependencies: delegate "^3.1.2" +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + got@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/got/-/got-8.3.2.tgz#1d23f64390e97f776cac52e5b936e5f514d2e937" @@ -5420,6 +5737,18 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1, has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + +has-proto@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== + has-symbol-support-x@^1.4.1: version "1.4.2" resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455" @@ -5430,6 +5759,11 @@ has-symbols@^1.0.0, has-symbols@^1.0.1, has-symbols@^1.0.2: resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + has-to-string-tag-x@^1.2.0: version "1.4.1" resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" @@ -5437,6 +5771,13 @@ has-to-string-tag-x@^1.2.0: dependencies: has-symbol-support-x "^1.4.1" +has-tostringtag@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + has-unicode@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" @@ -5497,6 +5838,13 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" +hasown@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.1.tgz#26f48f039de2c0f8d3356c223fb8d50253519faa" + integrity sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA== + dependencies: + function-bind "^1.1.2" + hast-util-parse-selector@^2.0.0: version "2.2.5" resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz#d57c23f4da16ae3c63b3b6ca4616683313499c3a" @@ -5774,6 +6122,18 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" +hyphenation.en-us@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/hyphenation.en-us/-/hyphenation.en-us-0.2.1.tgz#6b937323ff40da474ecb8c07eaeb79d6ae28fed8" + integrity sha512-ItXYgvIpfN8rfXl/GTBQC7DsSb5PPsKh9gGzViK/iWzCS5mvjDebFJ6xCcIYo8dal+nSp2rUzvTT7BosrKlL8A== + dependencies: + hypher "*" + +hypher@*, hypher@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/hypher/-/hypher-0.2.5.tgz#2fe456ed2a3fd4ed0d9e428617181c59f9a6dd02" + integrity sha512-kUTpuyzBWWDO2VakmjHC/cxesg4lKQP+Fdc+7lrK4yvjNjkV9vm5UTZMDAwOyyHTOpbkYrAMlNZHG61NnE9vYQ== + i18n-2@*: version "0.7.3" resolved "https://registry.yarnpkg.com/i18n-2/-/i18n-2-0.7.3.tgz#c0dfd7793c7ae2c0d6ea00552dc6ee8651154d25" @@ -5799,6 +6159,13 @@ iconv-lite@0.4.24, iconv-lite@^0.4.24: dependencies: safer-buffer ">= 2.1.2 < 3" +iconv-lite@^0.6.2: + version "0.6.3" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + icss-replace-symbols@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded" @@ -6041,6 +6408,14 @@ is-arguments@^1.0.4: dependencies: call-bind "^1.0.0" +is-arguments@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" + integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -6123,6 +6498,13 @@ is-date-object@^1.0.1: resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== +is-date-object@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" + is-decimal@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5" @@ -6303,6 +6685,14 @@ is-regex@^1.0.4, is-regex@^1.1.0, is-regex@^1.1.2: call-bind "^1.0.2" has-symbols "^1.0.1" +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + is-relative@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" @@ -6322,7 +6712,7 @@ is-ssh@^1.3.0: dependencies: protocols "^1.1.0" -is-stream@^1.1.0: +is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= @@ -6370,6 +6760,11 @@ is-unicode-supported@^0.1.0: resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== +is-url@^1.2.2: + version "1.2.4" + resolved "https://registry.yarnpkg.com/is-url/-/is-url-1.2.4.tgz#04a4df46d28c4cff3d73d01ff06abeb318a1aa52" + integrity sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww== + is-valid-domain@0.0.17: version "0.0.17" resolved "https://registry.yarnpkg.com/is-valid-domain/-/is-valid-domain-0.0.17.tgz#2cc19d576b4feebcf4ce5edd99dc8f0280e9d058" @@ -6429,6 +6824,14 @@ isobject@^3.0.0, isobject@^3.0.1: resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= +isomorphic-fetch@^2.1.1, isomorphic-fetch@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + integrity sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA== + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" @@ -6981,6 +7384,11 @@ lodash-es@^4.17.14, lodash-es@^4.17.21: resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee" integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== +lodash.clone@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clone/-/lodash.clone-4.5.0.tgz#195870450f5a13192478df4bc3d23d2dea1907b6" + integrity sha512-GhrVeweiTD6uTmmn5hV/lzgCQhccwReIVRLHp7LT4SopOjqEZ5BbX8b5WWEtAKasjmy8hR7ZPwsYlxRCku5odg== + lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" @@ -6991,6 +7399,11 @@ lodash.deburr@^4.1.0: resolved "https://registry.yarnpkg.com/lodash.deburr/-/lodash.deburr-4.1.0.tgz#ddb1bbb3ef07458c0177ba07de14422cb033ff9b" integrity sha1-3bG7s+8HRYwBd7oH3hRCLLAz/5s= +lodash.groupby@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.groupby/-/lodash.groupby-4.6.0.tgz#0b08a1dcf68397c397855c3239783832df7403d1" + integrity sha512-5dcWxm23+VAoz+awKmBaiBvzox8+RqMgFhi7UvX9DHZr2HdxHXM/Wrf8cfKpsW37RNrvtPn6hSwNqurSILbmJw== + lodash.includes@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" @@ -7001,11 +7414,21 @@ lodash.isboolean@^3.0.3: resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" integrity sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY= +lodash.isfunction@^3.0.8: + version "3.0.9" + resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz#06de25df4db327ac931981d1bdb067e5af68d051" + integrity sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw== + lodash.isinteger@^4.0.4: version "4.0.4" resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" integrity sha1-YZwK89A/iwTDH1iChAt3sRzWg0M= +lodash.isnil@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/lodash.isnil/-/lodash.isnil-4.0.0.tgz#49e28cd559013458c814c5479d3c663a21bfaa6c" + integrity sha512-up2Mzq3545mwVnMhTDMdfoG1OurpA/s5t88JmQX809eH3C8491iu2sfKhTfhQtKY78oPNhiaHJUpT/dUDAAtng== + lodash.isnumber@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc" @@ -7021,16 +7444,31 @@ lodash.isstring@^4.0.1: resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE= +lodash.merge@^4.6.1: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.once@^4.0.0: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= +lodash.pick@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" + integrity sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q== + lodash.throttle@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ= +lodash.topairsin@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.topairsin/-/lodash.topairsin-4.3.0.tgz#1a6966d46484898fca42522286f1529a4397ad3b" + integrity sha512-HNLWBxJ0w1gk11ympXC3Se1AWOcCbUgPw3jzJf3ld7kXbkN3BZRF1IrpjPkyvF3ST18CU5wgfunXAgeKmCJHXA== + lodash@4.17.21, lodash@^4.1.1, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.3, lodash@^4.17.4: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" @@ -7108,6 +7546,11 @@ lru_map@^0.3.3: resolved "https://registry.yarnpkg.com/lru_map/-/lru_map-0.3.3.tgz#b5c8351b9464cbd750335a79650a0ec0e56118dd" integrity sha1-tcg1G5Rky9dQM1p5ZQoOwOVhGN0= +lz-string@^1.4.4: + version "1.5.0" + resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" + integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== + mailcomposer@3.12.0: version "3.12.0" resolved "https://registry.yarnpkg.com/mailcomposer/-/mailcomposer-3.12.0.tgz#9c5e1188aa8e1c62ec8b86bd43468102b639e8f9" @@ -7246,6 +7689,11 @@ mdurl@^1.0.1: resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4= +media-engine@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/media-engine/-/media-engine-1.0.3.tgz#be3188f6cd243ea2a40804a35de5a5b032f58dad" + integrity sha512-aa5tG6sDoK+k70B9iEX1NeyfT8ObCKhNDs6lJVpwF6r8vhUfuKMslIcirq6HIUYuuUYLefcEQOn9bSBOvawtwg== + media-typer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" @@ -7700,6 +8148,14 @@ node-fetch@2.6.1, node-fetch@^2.6.1: resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== +node-fetch@^1.0.1: + version "1.7.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" + integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + node-forge@^0.10.0: version "0.10.0" resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3" @@ -7899,6 +8355,14 @@ object-is@^1.0.1, object-is@^1.1.2: call-bind "^1.0.2" define-properties "^1.1.3" +object-is@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.6.tgz#1a6a53aed2dd8f7e6775ff870bea58545956ab07" + integrity sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" @@ -8144,6 +8608,16 @@ packet-reader@1.0.0: resolved "https://registry.yarnpkg.com/packet-reader/-/packet-reader-1.0.0.tgz#9238e5480dedabacfe1fe3f2771063f164157d74" integrity sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ== +page-wrapping@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/page-wrapping/-/page-wrapping-1.1.0.tgz#8446eb6b17fa7c59d75f0f9c9ece5217ff5f29a4" + integrity sha512-DAnqZJ3FHKLXVbdQfvGoHyZRFZL+N1IIZlo2RImFqrZ3scoFS8lOHZoLQxnYbsnCMQkwoEyESd0ZNs5RbEsArA== + +pako@^0.2.5: + version "0.2.9" + resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" + integrity sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA== + pako@~1.0.5: version "1.0.11" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" @@ -9140,6 +9614,16 @@ react-query@3.13.12: broadcast-channel "^3.4.1" match-sorter "^6.0.2" +react-reconciler@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/react-reconciler/-/react-reconciler-0.12.0.tgz#dd3ecd98f64a2d8449298dadab041910cafd2849" + integrity sha512-BBaE+asD1HdzS35GLhvOEUGFwFKBNN/Jj9b+VlCt9JjF+jDnmIij4SbulNpqccYxPE/Eeup3/ciouo9YmhSgbg== + dependencies: + fbjs "^0.8.16" + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.0" + react-redux@7.2.3: version "7.2.3" resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.2.3.tgz#4c084618600bb199012687da9e42123cca3f0be9" @@ -9291,7 +9775,7 @@ react-with-styles@^4.1.0: prop-types "^15.7.2" react-with-direction "^1.3.1" -react@^16.14.0: +react@16, react@^16.14.0, react@^16.4.1: version "16.14.0" resolved "https://registry.yarnpkg.com/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d" integrity sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g== @@ -9483,6 +9967,11 @@ regenerate@^1.4.0: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== + regenerator-runtime@^0.13.4: version "0.13.7" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" @@ -9516,6 +10005,16 @@ regexp.prototype.flags@^1.2.0: call-bind "^1.0.2" define-properties "^1.1.3" +regexp.prototype.flags@^1.5.1: + version "1.5.2" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334" + integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw== + dependencies: + call-bind "^1.0.6" + define-properties "^1.2.1" + es-errors "^1.3.0" + set-function-name "^2.0.1" + regexpu-core@^4.7.1: version "4.7.1" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.7.1.tgz#2dea5a9a07233298fbf0db91fa9abc4c6e0f8ad6" @@ -9728,6 +10227,11 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg== + resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.14.2: version "1.20.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" @@ -9759,6 +10263,13 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" +restructure@^0.5.3: + version "0.5.4" + resolved "https://registry.yarnpkg.com/restructure/-/restructure-0.5.4.tgz#f54e7dd563590fb34fd6bf55876109aeccb28de8" + integrity sha512-wgNbkrlRpj0NarhUyiCfOXlu8DybDIYRV7MOieKGOl16N7NmAkjTtPhn2F4CBOsyRL8m6RWZLSzjJVVPAkJuiw== + dependencies: + browserify-optional "^1.0.0" + ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" @@ -9834,7 +10345,7 @@ safe-regex@^1.1.0: dependencies: ret "~0.1.10" -"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: +"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== @@ -10041,6 +10552,28 @@ set-blocking@^2.0.0, set-blocking@~2.0.0: resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= +set-function-length@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.1.tgz#47cc5945f2c771e2cf261c6737cf9684a2a5e425" + integrity sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g== + dependencies: + define-data-property "^1.1.2" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.3" + gopd "^1.0.1" + has-property-descriptors "^1.0.1" + +set-function-name@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" + integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.2" + set-value@^2.0.0, set-value@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" @@ -10284,6 +10817,13 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map@~0.1.30: + version "0.1.43" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + integrity sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ== + dependencies: + amdefine ">=0.0.4" + space-separated-tokens@^1.0.0: version "1.1.5" resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899" @@ -11318,7 +11858,7 @@ through2@^2.0.0, through2@^2.0.2: readable-stream "~2.3.6" xtend "~4.0.1" -through@^2.3.6, through@~2.3.6: +through@^2.3.6, through@~2.3.4, through@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= @@ -11350,6 +11890,11 @@ tiny-emitter@^2.0.0: resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz#1d1a56edfc51c43e863cbb5382a72330e3555423" integrity sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q== +tiny-inflate@^1.0.0, tiny-inflate@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tiny-inflate/-/tiny-inflate-1.0.3.tgz#122715494913a1805166aaf7c93467933eea26c4" + integrity sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw== + tiny-invariant@^1.0.2: version "1.1.0" resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.1.0.tgz#634c5f8efdc27714b7f386c35e6760991d230875" @@ -11534,6 +12079,11 @@ ua-parser-js@^0.7.18: resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.24.tgz#8d3ecea46ed4f1f1d63ec25f17d8568105dc027c" integrity sha512-yo+miGzQx5gakzVK3QFfN0/L9uVhosXBBO7qmnk7c2iw1IhL212wfA3zbnI54B0obGwC/5NWub/iT9sReMx+Fw== +ua-parser-js@^0.7.30: + version "0.7.37" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.37.tgz#e464e66dac2d33a7a1251d7d7a99d6157ec27832" + integrity sha512-xV8kqRKM+jhMvcHWUKthV9fNebIzrNy//2O9ZwWcfiBFR5f25XVZPLlEajk/sf3Ra15V92isyQqnIEXRDaZWEA== + uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac" @@ -11585,6 +12135,14 @@ unicode-property-aliases-ecmascript@^1.0.4: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4" integrity sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg== +unicode-trie@^0.3.0: + version "0.3.1" + resolved "https://registry.yarnpkg.com/unicode-trie/-/unicode-trie-0.3.1.tgz#d671dddd89101a08bac37b6a5161010602052085" + integrity sha512-WgVuO0M2jDl7hVfbPgXv2LUrD81HM0bQj/bvLGiw6fJ4Zo8nNFnDrA0/hU2Te/wz6pjxCm5cxJwtLjo2eyV51Q== + dependencies: + pako "^0.2.5" + tiny-inflate "^1.0.0" + union-value@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" @@ -12025,6 +12583,11 @@ websocket-extensions@>=0.1.1: resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== +whatwg-fetch@>=0.10.0: + version "3.6.20" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz#580ce6d791facec91d37c72890995a0b48d31c70" + integrity sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg== + whatwg-fetch@^3.6.2: version "3.6.2" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" @@ -12203,6 +12766,11 @@ ylru@^1.2.0: resolved "https://registry.yarnpkg.com/ylru/-/ylru-1.2.1.tgz#f576b63341547989c1de7ba288760923b27fe84f" integrity sha512-faQrqNMzcPCHGVC2aaOINk13K+aaBDUPjGWl0teOXywElLjyVAB6Oe2jj62jHYtwsU49jXhScYbvPENK+6zAvQ== +yoga-layout-prebuilt@1.9.3: + version "1.9.3" + resolved "https://registry.yarnpkg.com/yoga-layout-prebuilt/-/yoga-layout-prebuilt-1.9.3.tgz#11e3be29096afe3c284e5d963cc2d628148c1372" + integrity sha512-9SNQpwuEh2NucU83i2KMZnONVudZ86YNcFk9tq74YaqrQfgJWO3yB9uzH1tAg8iqh5c9F5j0wuyJ2z72wcum2w== + yup@^0.32.9: version "0.32.11" resolved "https://registry.yarnpkg.com/yup/-/yup-0.32.11.tgz#d67fb83eefa4698607982e63f7ca4c5ed3cf18c5" diff --git a/web/components/Account/Application/Company/ApplicationEditRightPanel.tsx b/web/components/Account/Application/Company/ApplicationEditRightPanel.tsx index e63ec111..8abb83f4 100644 --- a/web/components/Account/Application/Company/ApplicationEditRightPanel.tsx +++ b/web/components/Account/Application/Company/ApplicationEditRightPanel.tsx @@ -94,7 +94,6 @@ const ApplicationEditRightPanel = ({ }} color="white" height="auto!important" - // isDisabled={isLoading} isLoading={isLoading} loadingText={t('company.detail.saving')} type="submit" diff --git a/web/components/Account/Application/Place/ApplicationDownloadButton.tsx b/web/components/Account/Application/Place/ApplicationDownloadButton.tsx new file mode 100644 index 00000000..38562011 --- /dev/null +++ b/web/components/Account/Application/Place/ApplicationDownloadButton.tsx @@ -0,0 +1,52 @@ +import { IconButton } from '@chakra-ui/react' +import { useTranslation } from 'next-i18next' +import DownloadApplication from 'public/assets/img/downloadApplication.svg' +import { useState } from 'react' +import useToast from '~hooks/useToast' +import { Application } from '~typings/api' +import { formatApplicationPdfName, handleApplicationDownload } from '~utils/pdf' + +const ApplicationDownloadButton = ({ + application, +}: { + application: Application +}) => { + const [isLoading, setIsLoading] = useState(false) + const { errorToast } = useToast() + const { t } = useTranslation('application') + + return ( + <> + } + isLoading={isLoading} + onClick={async () => { + setIsLoading(true) + try { + await handleApplicationDownload({ + application, + onError: () => errorToast(t('error')), + }) + } catch (err) { + console.log(err) + errorToast(t('error')) + } finally { + setIsLoading(false) + } + }} + /> + + ) +} + +export default ApplicationDownloadButton diff --git a/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx b/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx index b0305e3c..e5572e04 100644 --- a/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx +++ b/web/components/Account/Application/Place/ApplicationPlaceListItem.tsx @@ -1,12 +1,12 @@ import React, { Fragment } from 'react' import { Application } from '~typings/api' -import { Text, Button, IconButton, HStack, Flex } from '@chakra-ui/react' +import { Text, Button, HStack } from '@chakra-ui/react' import { useTranslation } from 'next-i18next' import Cell from '~components/Account/Booking/Cell' import Link from '~components/Link' import useSelectedCampaign from '~hooks/useSelectedCampaign' import ApplicationStatusIcon from '~components/Account/Application/Place/ApplicationStatusIcon' -import ApplicationDownloadButton from '~components/Account/Application/Place/ApplicationsPdf/ApplicationDownloadButton' +import ApplicationDownloadButton from '~components/Account/Application/Place/ApplicationDownloadButton' interface Props { application: Application diff --git a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationDownloadButton.tsx b/web/components/Account/Application/Place/ApplicationsPdf/ApplicationDownloadButton.tsx deleted file mode 100644 index 36c2e5ab..00000000 --- a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationDownloadButton.tsx +++ /dev/null @@ -1,75 +0,0 @@ -import { Box, IconButton, useDisclosure } from '@chakra-ui/react' -import DownloadApplication from 'public/assets/img/downloadApplication.svg' -import { useRef, useState } from 'react' -import { downloadPdf } from '~components/Account/Application/Place/ApplicationsPdf/pdfUtils' -import SingleApplication from '~components/Account/Application/Place/SingleApplication' -import useSelectedCampaign from '~hooks/useSelectedCampaign' -import { Application } from '~typings/api' - -const ApplicationDownloadButton = ({ - application, - controlledIsOpen, - controlledOnClose, - onDownloadFinish, -}: { - application: Application - controlledIsOpen?: boolean - controlledOnClose?: () => void - onDownloadFinish?: (id: string) => void -}) => { - const pdfRef = useRef() - const [isLoading, setIsLoading] = useState(false) - const { isOpen, onOpen, onClose } = useDisclosure() - const { selectedCampaign } = useSelectedCampaign() - - return ( - <> - } - isLoading={isLoading} - onClick={async () => { - onOpen() - setIsLoading(true) - }} - display={controlledOnClose ? 'none' : 'inherit'} - /> - - {(controlledIsOpen !== undefined ? controlledIsOpen : isOpen) && ( - - { - await downloadPdf( - ref, - `application_${ - application.id - }_${application?.company?.structureName - ?.split(' ') - ?.join('_')}_${selectedCampaign?.title - ?.split(' ') - ?.join('_')}`, - application?.creation_file[0]?.url, - ) - setIsLoading(false) - onDownloadFinish(application.id) - controlledOnClose ? controlledOnClose() : onClose() - }} - /> - - )} - - ) -} - -export default ApplicationDownloadButton diff --git a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfCreation.tsx b/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfCreation.tsx deleted file mode 100644 index f517df90..00000000 --- a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfCreation.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import { Text, Heading, VStack, Divider } from '@chakra-ui/react' -import { useTranslation } from 'next-i18next' -import ApplicationFormTitle from '~components/Campaign/Places/Application/ApplicationFormTitle' -import { Application } from '~typings/api' - -const ApplicationPdfCreation = ({ - application, -}: { - application: Application -}) => { - const { t } = useTranslation('place') - return ( - - - - - - - {t('campaignApplication.creation.field_title')} - - {application?.creation_title} - - - - - - - {t('campaignApplication.creation.dancers')} - - {application?.creation_dancers} - - - - - - - {t('campaignApplication.creation.summary')} - - {application?.creation_summary} - - - - - - - {t('campaignApplication.creation.partnerships')} - - {application?.creation_partnerships} - - - - - - - {t('campaignApplication.creation.technical')} - - {application?.creation_techical_requirements} - - - - ) -} - -export default ApplicationPdfCreation diff --git a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfGeneral.tsx b/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfGeneral.tsx deleted file mode 100644 index c471db3d..00000000 --- a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfGeneral.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { Text, Heading, VStack, Divider } from '@chakra-ui/react' -import { useTranslation } from 'next-i18next' -import ApplicationFormTitle from '~components/Campaign/Places/Application/ApplicationFormTitle' -import { Application } from '~typings/api' - -const ApplicationPdfGeneral = ({ - application, -}: { - application: Application -}) => { - const { t } = useTranslation('place') - return ( - - - - - - - {t('campaignApplication.general.subtitle', { - place: - // @ts-expect-error - application?.disponibility?.espace?.users_permissions_user - .structureName, - })} - - - {application?.already_supported ? t('global.yes') : t('global.no')} - - - - - - - - {t('campaignApplication.general.bio')} - - {application?.cv} - - - - ) -} - -export default ApplicationPdfGeneral diff --git a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfHeader.tsx b/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfHeader.tsx deleted file mode 100644 index 8d81bb63..00000000 --- a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfHeader.tsx +++ /dev/null @@ -1,116 +0,0 @@ -import { Box, Heading, Text, SimpleGrid, VStack } from '@chakra-ui/react' -import { useTranslation } from 'next-i18next' -import Link from '~components/Link' -import { Application } from '~typings/api' -import { format } from '~utils/date' - -const ApplicationPdfHeader = ({ - application, -}: { - application: Application -}) => { - const { t } = useTranslation('application') - return ( - - - - - {t('place.detail.title', { id: application?.id })} - - - - - - {/* @ts-expect-error */} - {application?.disponibility?.espace?.name} - - - {`${format(application?.disponibility?.start, 'dd/MM')} → ${format( - application?.disponibility?.end, - 'dd/MM', - )}`} - - - - - - - {application?.company?.structureName} - {application?.company?.address} - - {application?.company?.zipCode} {application?.company?.city} - - - - - - {t('place.detail.right_panel.phone')} - - {application?.company?.phone} - - - - {t('place.detail.right_panel.email')} - - {application?.company?.email} - - - - {application?.company?.website && ( - - {application?.company?.website} - - )} - - - - - - {t('place.detail.right_panel.siret')} - - {application?.company?.siret} - - - - - {t('place.detail.right_panel.ape')} - - {application?.company?.ape} - - - - - {t('place.detail.right_panel.insurance_name')} - - {application?.company?.insuranceName} - - - - - - {t('place.detail.right_panel.insurance_number')} - - - {application?.company?.insuranceNumber} - - - - - {t('place.detail.right_panel.license')} - - {application?.company?.license} - - - - - ) -} - -export default ApplicationPdfHeader diff --git a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfReferences.tsx b/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfReferences.tsx deleted file mode 100644 index 293d4adc..00000000 --- a/web/components/Account/Application/Place/ApplicationsPdf/ApplicationPdfReferences.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { VStack, Divider, Box } from '@chakra-ui/react' -import { useTranslation } from 'next-i18next' -import ApplicationFormTitle from '~components/Campaign/Places/Application/ApplicationFormTitle' -import ReferenceItem from '~components/Campaign/Places/Application/References/ReferenceItem' -import { Application } from '~typings/api' -import { Reference } from '~@types/reference' - -const ApplicationPdfReferences = ({ - application, -}: { - application: Application -}) => { - const { t } = useTranslation('place') - const references = application?.references as Reference[] - return ( - - - - {references?.map((reference, key) => ( - - - {key < references?.length - 1 && } - - ))} - - - ) -} - -export default ApplicationPdfReferences diff --git a/web/components/Account/Application/Place/ApplicationsPdf/pdfUtils.ts b/web/components/Account/Application/Place/ApplicationsPdf/pdfUtils.ts deleted file mode 100644 index bcc89f44..00000000 --- a/web/components/Account/Application/Place/ApplicationsPdf/pdfUtils.ts +++ /dev/null @@ -1,85 +0,0 @@ -import html2canvas from 'html2canvas' -import jsPDF from 'jspdf' -import { PDFDocument } from 'pdf-lib' - -const mergePdfs = async (pdfsToMerges: ArrayBuffer[]) => { - const mergedPdf = await PDFDocument.create() - const actions = pdfsToMerges.map(async (pdfBuffer) => { - try { - const pdf = await PDFDocument.load(pdfBuffer, { - throwOnInvalidObject: false, - }) - const copiedPages = await mergedPdf.copyPages(pdf, pdf.getPageIndices()) - copiedPages.forEach((page) => { - mergedPdf.addPage(page) - }) - } catch (e) { - console.log('error', e) - } - }) - await Promise.all(actions) - const mergedPdfFile = await mergedPdf.save() - return mergedPdfFile -} - -export const downloadPdf = async ( - input, - fileName, - creation_file_url = null, - isMulti = false, -) => { - const canvas = await html2canvas(input) - if (canvas) { - const marginX = 5 - const marginY = 10 - - const imgData = canvas.toDataURL('image/jpeg') - const imgWidth = canvas.width - const imgHeight = canvas.height - - const pdf = new jsPDF('p', 'mm', 'a4', true) - - const pageWidth = pdf.internal.pageSize.getWidth() - marginX * 2 - const pageHeight = pdf.internal.pageSize.getHeight() - marginY * 2 - - const XRatio = pageWidth / imgWidth - - let heightLeft = imgHeight * XRatio - let positionY = 0 - - while (heightLeft >= 0) { - positionY = heightLeft - imgHeight * XRatio - if (heightLeft !== imgHeight * XRatio) { - pdf.addPage() - } - pdf.addImage( - imgData, - 'JPEG', - marginX, - positionY, - imgWidth * XRatio, - imgHeight * XRatio, - 'FAST', - ) - heightLeft -= pageHeight - } - - if (creation_file_url) { - const response = await fetch(creation_file_url) - const creationFileArrayBuffer = await response.arrayBuffer() - const mergedPdfs = await mergePdfs([ - pdf.output('arraybuffer'), - creationFileArrayBuffer, - ]) - const blob = new Blob([mergedPdfs], { type: 'application/pdf' }) - const url = URL.createObjectURL(blob) - const link = document.createElement('a') - link.href = url - link.download = fileName + '.pdf' - link.click() - URL.revokeObjectURL(url) - } else { - pdf.save(fileName + '.pdf') - } - } -} diff --git a/web/components/Account/Application/Place/DetailDrawer/ApplicationDetailDrawer.tsx b/web/components/Account/Application/Place/DetailDrawer/ApplicationDetailDrawer.tsx index 7ee4d657..e5ba34ce 100644 --- a/web/components/Account/Application/Place/DetailDrawer/ApplicationDetailDrawer.tsx +++ b/web/components/Account/Application/Place/DetailDrawer/ApplicationDetailDrawer.tsx @@ -9,15 +9,19 @@ import { Grid, GridItem, Box, + Text, + Skeleton, } from '@chakra-ui/react' import { useTranslation } from 'next-i18next' import ApplicationDetailHeader from '~components/Account/Application/Place/DetailDrawer/ApplicationDetailHeader' import { Application } from '~typings/api' import ApplicationRightPanel from '~components/Account/Application/Place/DetailDrawer/ApplicationRightPanel' -import SingleApplication from '~components/Account/Application/Place/SingleApplication' -import { downloadPdf } from '~components/Account/Application/Place/ApplicationsPdf/pdfUtils' -import { useRef, useState } from 'react' -import useSelectedCampaign from '~hooks/useSelectedCampaign' + +import { useState } from 'react' +import { Document, Page } from 'react-pdf' + +import useToast from '~hooks/useToast' +import { handleApplicationDownload } from '~utils/pdf' const ApplicationDetailDrawer = ({ isOpen, @@ -32,13 +36,30 @@ const ApplicationDetailDrawer = ({ }) => { const { t } = useTranslation('application') const { id } = application ?? {} - const pdfRef = useRef() - const [isLoading, setIsLoading] = useState(false) - const { selectedCampaign } = useSelectedCampaign() + const [isDownloading, setIsDownloading] = useState(false) + const [scales, setScales] = useState([]) + const { errorToast } = useToast() + const [numPages, setNumPages] = useState(0) + + const handleDownload = async () => { + setIsDownloading(true) + try { + await handleApplicationDownload({ + application, + onError: () => errorToast(t('error')), + }) + } catch (err) { + console.log(err) + errorToast(t('error')) + } finally { + setIsDownloading(false) + } + } if (!application) { return null } + return ( @@ -52,7 +73,7 @@ const ApplicationDetailDrawer = ({ - + - + + { + setNumPages(numPages) + }} + loading={ + + } + > + {Array.from(new Array(numPages), (el, index) => ( + { + const viewport = page.getViewport({ scale: 1 }) + if (viewport) { + const orientation = + viewport.width > viewport.height + ? 'landscape' + : 'portrait' + // Adjust the scale based on the orientation + const scale = + orientation === 'landscape' ? 0.7 : 1.0 + setScales((prevScales) => { + const newScales = [...prevScales] + newScales[index] = scale + return newScales + }) + } + }} + scale={scales[index] || 1.0} + /> + ))} + + { - setIsLoading(true) - await downloadPdf( - pdfRef.current, - `application_${id}_${application?.company?.structureName - ?.split(' ') - ?.join('_')}_${selectedCampaign?.title - ?.split(' ') - ?.join('_')}`, - application?.creation_file[0]?.url, - ) - setIsLoading(false) - }} - isDownloading={isLoading} + handleDownload={handleDownload} + isDownloading={isDownloading} /> diff --git a/web/components/Account/Application/Place/SingleApplication.tsx b/web/components/Account/Application/Place/SingleApplication.tsx deleted file mode 100644 index 86679399..00000000 --- a/web/components/Account/Application/Place/SingleApplication.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { VStack, Divider } from '@chakra-ui/react' -import { forwardRef, useEffect } from 'react' -import ApplicationPdfCreation from '~components/Account/Application/Place/ApplicationsPdf/ApplicationPdfCreation' -import ApplicationPdfGeneral from '~components/Account/Application/Place/ApplicationsPdf/ApplicationPdfGeneral' -import ApplicationPdfHeader from '~components/Account/Application/Place/ApplicationsPdf/ApplicationPdfHeader' -import ApplicationPdfReferences from '~components/Account/Application/Place/ApplicationsPdf/ApplicationPdfReferences' -import { Application } from '~typings/api' - -const SingleApplication = forwardRef( - ( - { - application, - handleDownload, - }: { - application: Application - handleDownload?: (ref: any) => void - }, - ref: any, - ) => { - useEffect(() => { - if (handleDownload) { - handleDownload(ref.current) - } - }, []) - - return ( - - - - - - - - - - ) - }, -) - -export default SingleApplication diff --git a/web/components/pdfs/ApplicationCreation.tsx b/web/components/pdfs/ApplicationCreation.tsx new file mode 100644 index 00000000..7bc0a0f8 --- /dev/null +++ b/web/components/pdfs/ApplicationCreation.tsx @@ -0,0 +1,37 @@ +import { View } from '@react-pdf/renderer' +import ApplicationSection from '~components/pdfs/ApplicationSection' +import { styles } from '~components/pdfs/pdfStyleUtils' +import { Application } from '~typings/api' + +const ApplicationCreation = ({ application }: { application: Application }) => { + return ( + + + {application?.creation_title} + + + {application?.creation_dancers} + + + {application?.creation_summary} + + + {application?.creation_partnerships} + + + {application?.creation_techical_requirements} + + + {Boolean(application?.creation_accomodation) ? 'Oui' : 'Non'} + + + ) +} + +export default ApplicationCreation diff --git a/web/components/pdfs/ApplicationDocument.tsx b/web/components/pdfs/ApplicationDocument.tsx new file mode 100644 index 00000000..b17844cb --- /dev/null +++ b/web/components/pdfs/ApplicationDocument.tsx @@ -0,0 +1,55 @@ +import { Document, Font, Page, Text, View } from '@react-pdf/renderer' +import ApplicationCreation from '~components/pdfs/ApplicationCreation' + +import ApplicationHeader from '~components/pdfs/ApplicationHeader' +import ApplicationInfo from '~components/pdfs/ApplicationInfos' +import ApplicationReference from '~components/pdfs/ApplicationReference' +import { BRAND_COLOR, styles } from '~components/pdfs/pdfStyleUtils' +import { Application } from '~typings/api' + +const Mabry = require('./../../public/assets/fonts/mabry-pro.otf') +const MabryMedium = require('./../../public/assets/fonts/mabry-pro-medium.otf') + +Font.register({ family: 'Mabry', src: Mabry.default }) +Font.register({ family: 'MabryMedium', src: MabryMedium.default }) + +const ApplicationDocument = ({ application }: { application: Application }) => { + const creations = application?.references as any[] + + return ( + + + + + + 1. Références de créations + + + + {creations?.map((reference, i) => ( + + ))} + + + + 2. Informations générales + + + + + + 3. Informations sur la + création en cours + + + + + + ) +} + +export default ApplicationDocument diff --git a/web/components/pdfs/ApplicationHeader.tsx b/web/components/pdfs/ApplicationHeader.tsx new file mode 100644 index 00000000..444dc974 --- /dev/null +++ b/web/components/pdfs/ApplicationHeader.tsx @@ -0,0 +1,84 @@ +import { Link, Text, View } from '@react-pdf/renderer' +import { + BRAND_COLOR, + FONT_SIZE, + FONT_SIZE_BIG, +} from '~components/pdfs/pdfStyleUtils' + +import { Application } from '~typings/api' +import { format } from '~utils/date' + +const ApplicationHeader = ({ application }: { application: Application }) => { + return ( + + + + {`Candidature n°${application?.id}`} + + + {/* @ts-expect-error */} + {application?.disponibility?.espace?.name} + + + {`${format(application?.disponibility?.start, 'dd/MM')} → ${format( + application?.disponibility?.end, + 'dd/MM', + )}`} + + + + + Hofesch Schechter Company + 74 rue de Ménilmontant + 75020 Paris + + + Tél. : +33 (0)9 87 89 82 02 + Email : contact@compagnie.fr + + hofesch-schechter.fr + + + + + SIRET : 800 452 575 00062 + APE : 75012Z + Assurance : Maif + N° assurance : 75012Z + Licence(s) : 57500062, 57500063 + + + ) +} + +export default ApplicationHeader diff --git a/web/components/pdfs/ApplicationInfos.tsx b/web/components/pdfs/ApplicationInfos.tsx new file mode 100644 index 00000000..aa53240d --- /dev/null +++ b/web/components/pdfs/ApplicationInfos.tsx @@ -0,0 +1,26 @@ +import { View } from '@react-pdf/renderer' +import ApplicationSection from '~components/pdfs/ApplicationSection' +import { styles } from '~components/pdfs/pdfStyleUtils' +import { Application } from '~typings/api' + +const ApplicationInfo = ({ application }: { application: Application }) => { + return ( + + + {Boolean(application?.already_supported) ? 'Oui' : 'Non'} + + + + {application?.cv} + + + ) +} + +export default ApplicationInfo diff --git a/web/components/pdfs/ApplicationReference.tsx b/web/components/pdfs/ApplicationReference.tsx new file mode 100644 index 00000000..74e4506b --- /dev/null +++ b/web/components/pdfs/ApplicationReference.tsx @@ -0,0 +1,55 @@ +import { + Document, + Font, + Link, + Page, + StyleSheet, + Text, + View, +} from '@react-pdf/renderer' + +import { ReactNode } from 'react-markdown' +import ApplicationHeader from '~components/pdfs/ApplicationHeader' + +import ApplicationSection from '~components/pdfs/ApplicationSection' +import { BRAND_COLOR, FONT_SIZE, styles } from '~components/pdfs/pdfStyleUtils' +import { Application } from '~typings/api' + +const ApplicationReference = ({ + reference, + index, + referencesTotal, +}: { + reference: any + index: number + referencesTotal: number +}) => { + return ( + + Création {index + 1} + {`${reference?.title}, ${reference?.year}`} + + {`${reference?.actors} ${ + reference?.actors > 1 ? 'interprètes' : 'interprète' + }`} + + {(Boolean(reference?.other) + ? [reference?.partners, reference?.other] + : reference?.partners + )?.join(', ')} + + + + ) +} + +export default ApplicationReference diff --git a/web/components/pdfs/ApplicationSection.tsx b/web/components/pdfs/ApplicationSection.tsx new file mode 100644 index 00000000..1f696ebb --- /dev/null +++ b/web/components/pdfs/ApplicationSection.tsx @@ -0,0 +1,39 @@ +import { + Document, + Font, + Link, + Page, + StyleSheet, + Text, + View, +} from '@react-pdf/renderer' + +import { ReactNode } from 'react-markdown' +import ApplicationHeader from '~components/pdfs/ApplicationHeader' +import ApplicationReference from '~components/pdfs/ApplicationReference' +import { BRAND_COLOR, FONT_SIZE, styles } from '~components/pdfs/pdfStyleUtils' +import { Application } from '~typings/api' + +const ApplicationSection = ({ + label, + children, + withBorder = true, +}: { + label: ReactNode + children: ReactNode + withBorder?: boolean +}) => ( + + {label} + {children} + +) + +export default ApplicationSection diff --git a/web/components/pdfs/pdfStyleUtils.ts b/web/components/pdfs/pdfStyleUtils.ts new file mode 100644 index 00000000..50161429 --- /dev/null +++ b/web/components/pdfs/pdfStyleUtils.ts @@ -0,0 +1,23 @@ +import { StyleSheet } from '@react-pdf/renderer' + +export const BRAND_COLOR = '#283583' +export const FONT_SIZE = 10 +export const FONT_SIZE_BIG = 14 + +export const styles = StyleSheet.create({ + page: { + fontFamily: 'Mabry', + padding: 20, + }, + title: { + borderBottomWidth: 1, + borderBottomColor: '#E5E5E5', + paddingVertical: 10, + marginBottom: 10, + }, + container: { + marginBottom: 30, + paddingHorizontal: 20, + lineHeight: 1.2, + }, +}) diff --git a/web/next.config.js b/web/next.config.js index 32bf22ae..96acf30b 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -1,11 +1,13 @@ const { i18n } = require('./next-i18next.config') +const withFonts = require('next-fonts'); const withTM = require('next-transpile-modules')([ '@fullcalendar/common', '@fullcalendar/daygrid', ]) -module.exports = withTM({ +module.exports = withFonts(withTM({ i18n, + inlineFontLimit: 300000, // 300ko webpack(config) { config.module.rules.push({ test: /\.svg$/, @@ -17,4 +19,4 @@ module.exports = withTM({ env: { BUGSNAG_API_KEY: process.env.BUGSNAG_API_KEY, }, -}) +})) diff --git a/web/package.json b/web/package.json index 2887841d..c6e167ba 100644 --- a/web/package.json +++ b/web/package.json @@ -9,6 +9,7 @@ "get-types": "swagger-typescript-api -p ../back/extensions/documentation/documentation/1.0.0/full_documentation.json -o ./typings -n api.ts --route-types --module-name-index 0 --axios" }, "dependencies": { + "@babel/helper-string-parser": "^7.23.4", "@bugsnag/js": "^7.9.2", "@bugsnag/plugin-react": "^7.9.2", "@chakra-ui/react": "^1.3.4", @@ -22,7 +23,7 @@ "@fullcalendar/timegrid": "^5.5.1", "@hookform/resolvers": "1.3.0", "@mapbox/mapbox-sdk": "^0.12.1", - "@react-pdf/renderer": "2.3.0", + "@react-pdf/renderer": "1.6.17", "@svgr/webpack": "^6.2.1", "axios": "^0.21.1", "babel-plugin-transform-require-ignore": "^0.1.1", @@ -30,18 +31,17 @@ "file-saver": "^2.0.5", "framer-motion": "^3.10.3", "handlebars": "^4.7.6", - "html2canvas": "^1.4.1", - "jspdf": "^2.5.1", "leaflet": "^1.7.1", "lodash.throttle": "^4.1.1", "next": "^12.0.10", "next-auth": "^3.1.0", "next-compose-plugins": "^2.2.0", + "next-fonts": "^1.5.1", "next-i18next": "^8.1.1", "next-seo": "^4.24.0", "next-transpile-modules": "^9.0.0", "next-use-contextual-routing": "^2.0.0", - "pdf-lib": "^1.17.1", + "pdf-merger-js": "^4.1.2", "pg": "^8.3.0", "react": "^17.0.1", "react-date-range": "^1.1.3", @@ -51,6 +51,7 @@ "react-hook-form": "^6.15.4", "react-leaflet": "^3.1.0", "react-markdown": "^6.0.0", + "react-pdf": "4.2.0", "react-query": "^3.12.1", "react-redux": "^7.1.0", "react-router": "^5.2.0", diff --git a/web/pages/api/pdfs/all/index.tsx b/web/pages/api/pdfs/all/index.tsx new file mode 100644 index 00000000..cb2c43ba --- /dev/null +++ b/web/pages/api/pdfs/all/index.tsx @@ -0,0 +1,15 @@ +// @ts-ignore +import { renderToStream } from '@react-pdf/renderer' +import ApplicationDocument from '~components/pdfs/ApplicationDocument' + +export default async (req, res) => { + // const stream = await renderToStream() + + res.setHeader('Content-Type', 'application/pdf') + + // Uncomment to force download + // res.setHeader('Content-Disposition', 'attachment; filename=application.pdf') + + // stream.pipe(res) + // stream.on('end', () => res.end()) +} diff --git a/web/pages/api/pdfs/single/[id].tsx b/web/pages/api/pdfs/single/[id].tsx new file mode 100644 index 00000000..438e0596 --- /dev/null +++ b/web/pages/api/pdfs/single/[id].tsx @@ -0,0 +1,49 @@ +// @ts-ignore +import { renderToStream } from '@react-pdf/renderer' +import { client } from '~api/client-api' +import ApplicationDocument from '~components/pdfs/ApplicationDocument' +import { getSession } from 'next-auth/client' +import PDFMerger from 'pdf-merger-js' +import { formatApplicationPdfName, getBufferFromStream } from '~utils/pdf' +import { format } from 'path' + +const SingleApplication = async (req, res) => { + const { id } = req.query + const session = await getSession({ req }) + const { data: application } = await client.applications.getMyApplications( + null, + { + //@ts-expect-error + id, + }, + { + headers: { + Authorization: `Bearer ${session.user.jwt}`, + }, + }, + ) + + const stream = await renderToStream( + , + ) + const streamBuffer = await getBufferFromStream(stream) + + let finalPDF = streamBuffer + if (application?.[0]?.creation_file?.[0]?.url) { + const creationFile = await fetch(application?.[0]?.creation_file?.[0]?.url) + const creationFileArrayBuffer = await creationFile.arrayBuffer() + const merger = new PDFMerger() + + await merger.add(streamBuffer) + await merger.add(creationFileArrayBuffer) + finalPDF = await merger.saveAsBuffer() + } + res.setHeader('Content-Type', 'application/pdf') + res.setHeader( + 'Content-Disposition', + 'attachment; filename=' + formatApplicationPdfName(application?.[0]), + ) + res.send(finalPDF) +} + +export default SingleApplication diff --git a/web/utils/pdf.ts b/web/utils/pdf.ts new file mode 100644 index 00000000..1e3f0604 --- /dev/null +++ b/web/utils/pdf.ts @@ -0,0 +1,48 @@ +import { Stream } from 'stream' +import { Application } from '~typings/api' +import { format } from '~utils/date' + +export const getBufferFromStream = (stream: Stream): Promise => { + return new Promise((resolve, reject) => { + const chunks: any[] = [] + stream.on('data', (chunk) => chunks.push(chunk)) + stream.on('error', reject) + stream.on('end', () => resolve(Buffer.concat(chunks))) + }) +} + +export const formatApplicationPdfName = (application: Application) => { + //@ts-expect-error + return `${application?.disponibility?.espace?.name + ?.split(' ') + .join('_')}_${format( + application?.disponibility?.start, + 'dd-MM-yyyy', + )}_${format(application?.disponibility?.end, 'dd-MM-yyyy')}_Ref-${ + application?.id + //@ts-expect-error + }_${application?.disponibility?.espace?.users_permissions_user?.structureName + ?.split(' ') + .join('_')}_${application?.campaign?.title?.split(' ').join('_')}.pdf` +} + +export const handleApplicationDownload = async ({ + application, + onError, +}: { + application: Application + onError: () => void +}) => { + const res = await fetch(`/api/pdfs/single/${application.id}`) + if (!res.ok) { + onError() + } + const blob = await res.blob() + const url = window.URL.createObjectURL(blob) + const link = document.createElement('a') + link.href = url + link.setAttribute('download', formatApplicationPdfName(application)) + document.body.appendChild(link) + link.click() + link.parentNode?.removeChild(link) +} diff --git a/web/yarn.lock b/web/yarn.lock index c814fc96..d1cb988a 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -350,6 +350,11 @@ dependencies: "@babel/types" "^7.16.7" +"@babel/helper-string-parser@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83" + integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ== + "@babel/helper-validator-identifier@^7.12.11": version "7.12.11" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz#c9a1f021917dcb5ccf0d4e453e399022981fc9ed" @@ -1138,10 +1143,10 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.14.0", "@babel/runtime@^7.16.4", "@babel/runtime@^7.20.13": - version "7.23.9" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.9.tgz#47791a15e4603bb5f905bc0753801cf21d6345f7" - integrity sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw== +"@babel/runtime@^7.4.3": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.0.tgz#584c450063ffda59697021430cb47101b085951e" + integrity sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw== dependencies: regenerator-runtime "^0.14.0" @@ -2115,163 +2120,77 @@ resolved "https://registry.yarnpkg.com/@react-leaflet/core/-/core-1.0.2.tgz#39c6a73f61c666d5dcf673741cea2672fa4bbae1" integrity sha512-QbleYZTMcgujAEyWGki8Lx6cXQqWkNtQlqf5c7NImlIp8bKW66bFpez/6EVatW7+p9WKBOEOVci/9W7WW70EZg== -"@react-pdf/fns@2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@react-pdf/fns/-/fns-2.2.1.tgz#04fe664a6f70214569c9c27e249e3395836f37d5" - integrity sha512-s78aDg0vDYaijU5lLOCsUD+qinQbfOvcNeaoX9AiE7+kZzzCo6B/nX+l48cmt9OosJmvZvE9DWR9cLhrhOi2pA== +"@react-pdf/fontkit@^1.15.0": + version "1.15.0" + resolved "https://registry.yarnpkg.com/@react-pdf/fontkit/-/fontkit-1.15.0.tgz#81bbf6e02def6628dfa6e82f6ec6238c31da5a8c" + integrity sha512-ymyReHUE7o5UjJiImL7WWpDecjZcHxEOf2M47yu3KSCM+2CdvJziCztJamjiR4GTEcjmUdop5z8SvKA4DldnYg== dependencies: - "@babel/runtime" "^7.20.13" - -"@react-pdf/font@^2.2.1": - version "2.4.4" - resolved "https://registry.yarnpkg.com/@react-pdf/font/-/font-2.4.4.tgz#52c2b900a2eb4cca579cc58ea85d062c02a879cd" - integrity sha512-yjK5eSY+LcbxS0m+sOYln8GdgIbUgti4xjwf14kx8OSsOMJQJyHFALHMh2cLcKJR9yZeqVDo1FwCsY6gw1yCkg== - dependencies: - "@babel/runtime" "^7.20.13" - "@react-pdf/types" "^2.4.1" - cross-fetch "^3.1.5" - fontkit "^2.0.2" - is-url "^1.2.4" - -"@react-pdf/fontkit@^2.1.2": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@react-pdf/fontkit/-/fontkit-2.1.2.tgz#fd7b19aa317148dce1f39b072e5913f5455a7faf" - integrity sha512-BsFNhNoWLddj/DcznIjoz4+4KB3kmRRWP38KNXHp/DuHSI4B6Dw6A3fLps+10bOPltP350iszI0b1ljeMum/Bw== - dependencies: - "@babel/runtime" "^7.16.4" + "@react-pdf/unicode-properties" "2.3.0" brotli "^1.2.0" - clone "^1.0.4" + clone "^1.0.1" deep-equal "^1.0.0" - dfa "^1.2.0" + dfa "^1.0.0" restructure "^0.5.3" tiny-inflate "^1.0.2" - unicode-properties "^1.4.1" unicode-trie "^0.3.0" -"@react-pdf/image@^2.3.4": - version "2.3.4" - resolved "https://registry.yarnpkg.com/@react-pdf/image/-/image-2.3.4.tgz#c55a1cec4946e9b77a16ec40bf50b8f1df55068d" - integrity sha512-IE34l7gfTdaxXe3XR9240xMZsFdxF1myIwmEWK28XoeTaucUPAUyOiNcFSGRT59vNuZVBuakYz3BlGGrkvAPVQ== +"@react-pdf/pdfkit@^1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@react-pdf/pdfkit/-/pdfkit-1.6.0.tgz#85c515d21e803ffcae83f4053c4229f7ed115752" + integrity sha512-TVyrESXfqkfLvbg6XekQvHf0MrXiploxga1AxlqUsPUNXSAocg0Iw1/kjRh7xd2MJSKv5RIycLrv9MAdh4zCTw== dependencies: - "@babel/runtime" "^7.20.13" - "@react-pdf/png-js" "^2.3.1" - cross-fetch "^3.1.5" - jay-peg "^1.0.0" + "@react-pdf/fontkit" "^1.15.0" + "@react-pdf/png-js" "^1.0.0" + lz-string "^1.4.4" -"@react-pdf/layout@^3.1.2": - version "3.11.2" - resolved "https://registry.yarnpkg.com/@react-pdf/layout/-/layout-3.11.2.tgz#ea41c8d70ba7f39d7819065764d80aae8c008038" - integrity sha512-5EiHJ+Eb0odqnkWll9pWbTp+dwH1QRm7mOXDMiklqIWK98eI7e3cEae5Dgr0TtdnB7KgPW9Tvul2CwRJTwq54A== - dependencies: - "@babel/runtime" "^7.20.13" - "@react-pdf/fns" "2.2.1" - "@react-pdf/image" "^2.3.4" - "@react-pdf/pdfkit" "^3.1.6" - "@react-pdf/primitives" "^3.1.1" - "@react-pdf/stylesheet" "^4.2.4" - "@react-pdf/textkit" "^4.4.1" - "@react-pdf/types" "^2.4.1" - cross-fetch "^3.1.5" - emoji-regex "^10.3.0" - queue "^6.0.1" - yoga-layout "^2.0.1" - -"@react-pdf/pdfkit@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@react-pdf/pdfkit/-/pdfkit-2.4.0.tgz#3ae1a8c33ed4a3185c524bae5242252054d8aa91" - integrity sha512-a8ad/o1CIPpL1oppwSk2d1QCjSAJau0s4SqQNew0U7jlP5Knx4Yck5iK6zLfezvCmSCGq+U8eBTvzLN00jbffg== - dependencies: - "@babel/runtime" "^7.16.4" - "@react-pdf/fontkit" "^2.1.2" - "@react-pdf/png-js" "^2.1.0" - crypto-js "^4.0.0" +"@react-pdf/png-js@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@react-pdf/png-js/-/png-js-1.0.0.tgz#00fcb969dca4ce82a0a7673413ade039e47b361e" + integrity sha512-5+lbDJphnvBt/0YfKf52fB8E47I7Y6cu5HKATmVsM2bjwnj7WKIqglQbvh5M7kOsSuma/rWRVahJEHF38op/fA== -"@react-pdf/pdfkit@^3.1.6": - version "3.1.6" - resolved "https://registry.yarnpkg.com/@react-pdf/pdfkit/-/pdfkit-3.1.6.tgz#ab9cfd6734917c0185c307be766a2f61c2995bb0" - integrity sha512-U96VVhphniDBsLbmeJHgEml15nng8cr90mmEfPATh98gsqg6wev0avBr4k9XPjLdaN1f2xTXD4VdlaMYJZ+n7Q== +"@react-pdf/renderer@1.6.17": + version "1.6.17" + resolved "https://registry.yarnpkg.com/@react-pdf/renderer/-/renderer-1.6.17.tgz#bfca70e9b33aa4724b5b55c6bc729b18fda4bbf9" + integrity sha512-gjjNSjS4/TlH5V2f7EI+v8veSPYEDpcOE8vtMFYuRUnIqXBsDae0G6KVKamSKrjsaPLEyEuCYr/ZscxrNgYyFw== dependencies: - "@babel/runtime" "^7.20.13" - "@react-pdf/png-js" "^2.3.1" - browserify-zlib "^0.2.0" - crypto-js "^4.2.0" - fontkit "^2.0.2" - jay-peg "^1.0.0" - vite-compatible-readable-stream "^3.6.1" + "@babel/runtime" "^7.6.2" + "@react-pdf/fontkit" "^1.15.0" + "@react-pdf/pdfkit" "^1.6.0" + "@react-pdf/png-js" "^1.0.0" + "@react-pdf/textkit" "^0.4.2" + "@react-pdf/yoga" "^2.0.0-beta.0" + blob-stream "^0.1.3" + cross-fetch "^3.0.4" + emoji-regex "^8.0.0" + is-url "^1.2.4" + media-engine "^1.0.3" + ramda "^0.26.1" + react-reconciler "^0.24.0" + scheduler "^0.18.0" -"@react-pdf/png-js@^2.1.0", "@react-pdf/png-js@^2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@react-pdf/png-js/-/png-js-2.3.1.tgz#5381d5443ac1134e98fc446fa1debb45950665bc" - integrity sha512-pEZ18I4t1vAUS4lmhvXPmXYP4PHeblpWP/pAlMMRkEyP7tdAeHUN7taQl9sf9OPq7YITMY3lWpYpJU6t4CZgZg== +"@react-pdf/textkit@^0.4.2": + version "0.4.2" + resolved "https://registry.yarnpkg.com/@react-pdf/textkit/-/textkit-0.4.2.tgz#d86d4641baafe0cd2ee3c3b26dd14d2af7bced42" + integrity sha512-zdJoec+7McpAIqe2A7ofJWxJYtd0DowwHxQPcGlkurVGlEnz+KI62J5ZRjT9mwhtsz4B6r8/ra6TBiNQZP4s+A== dependencies: - browserify-zlib "^0.2.0" + "@babel/runtime" "^7.4.3" + "@react-pdf/unicode-properties" "2.3.0" + hyphen "^1.1.1" + ramda "^0.26.1" -"@react-pdf/primitives@^3.0.0", "@react-pdf/primitives@^3.1.1": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@react-pdf/primitives/-/primitives-3.1.1.tgz#45a3253806fa61046f3821b8553bfee3cd848d14" - integrity sha512-miwjxLwTnO3IjoqkTVeTI+9CdyDggwekmSLhVCw+a/7FoQc+gF3J2dSKwsHvAcVFM0gvU8mzCeTofgw0zPDq0w== - -"@react-pdf/render@^3.2.0": - version "3.4.3" - resolved "https://registry.yarnpkg.com/@react-pdf/render/-/render-3.4.3.tgz#1aefea3b130349a6916fecfc229d0196d55f9305" - integrity sha512-9LL059vfwrK1gA0uIA4utpQ/pUH9EW/yia4bb7pCoARs8IlupY5UP265jgax15ua0p+MdUwShZzQ9rilu7kGsw== - dependencies: - "@babel/runtime" "^7.20.13" - "@react-pdf/fns" "2.2.1" - "@react-pdf/primitives" "^3.1.1" - "@react-pdf/textkit" "^4.4.1" - "@react-pdf/types" "^2.4.1" - abs-svg-path "^0.1.1" - color-string "^1.9.1" - normalize-svg-path "^1.1.0" - parse-svg-path "^0.1.2" - svg-arc-to-cubic-bezier "^3.2.0" - -"@react-pdf/renderer@2.3.0": +"@react-pdf/unicode-properties@2.3.0": version "2.3.0" - resolved "https://registry.yarnpkg.com/@react-pdf/renderer/-/renderer-2.3.0.tgz#2c12e835636db8a88d51a2ad323be1899cedf005" - integrity sha512-JrKgQL6MwANRdsqo3eH8+SD2rNwhXBSy99NBsL4FrdndnuZrDe6/KQOTstaBpxKtn6CEZVrd3hkqgCh9/Oa9mQ== - dependencies: - "@babel/runtime" "^7.16.4" - "@react-pdf/font" "^2.2.1" - "@react-pdf/layout" "^3.1.2" - "@react-pdf/pdfkit" "^2.4.0" - "@react-pdf/primitives" "^3.0.0" - "@react-pdf/render" "^3.2.0" - "@react-pdf/types" "^2.1.0" - blob-stream "^0.1.3" - queue "^6.0.1" - react-reconciler "^0.23.0" - scheduler "^0.17.0" - -"@react-pdf/stylesheet@^4.2.4": - version "4.2.4" - resolved "https://registry.yarnpkg.com/@react-pdf/stylesheet/-/stylesheet-4.2.4.tgz#805ce12d49bc666bd34740e72850f95139f0de47" - integrity sha512-CgRfDzeMtnV0GL7zSn381NubmgwqKhFKcK1YrWX3azl/KWVh52jjFd3HWi6dvcETNT862mjWz5MnExe4WOBJXA== - dependencies: - "@babel/runtime" "^7.20.13" - "@react-pdf/fns" "2.2.1" - "@react-pdf/types" "^2.4.1" - color-string "^1.9.1" - hsl-to-hex "^1.0.0" - media-engine "^1.0.3" - postcss-value-parser "^4.1.0" - -"@react-pdf/textkit@^4.4.1": - version "4.4.1" - resolved "https://registry.yarnpkg.com/@react-pdf/textkit/-/textkit-4.4.1.tgz#b4e4181ea7d4269c54a1794d4022b55c5135f0e7" - integrity sha512-Jl9wdTqIvJ5pX+vAGz0EOhP7ut5Two9H6CzTKo/YYPeD79cM2yTXF3JzTERBC28y7LR0Waq9D2LHQjI+b/EYUQ== + resolved "https://registry.yarnpkg.com/@react-pdf/unicode-properties/-/unicode-properties-2.3.0.tgz#822a7fda81b88a054fafd782170898c898b180ec" + integrity sha512-ELUau972GjR9KCZLn3LDtSOeHQ8dAH2QVQUXw9Qn/wFeX0vU13GKZ9LDWRCgL1qBKvPo/lIe4On3U2TS2KzEbQ== dependencies: - "@babel/runtime" "^7.20.13" - "@react-pdf/fns" "2.2.1" - bidi-js "^1.0.2" - hyphen "^1.6.4" - unicode-properties "^1.4.1" + unicode-trie "^0.3.0" -"@react-pdf/types@^2.1.0", "@react-pdf/types@^2.4.1": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@react-pdf/types/-/types-2.4.1.tgz#5a3b1edd86001d740563deb74852691cbe3126ba" - integrity sha512-w8pk7svhjVj5f7d7kjEGXSk26ffCqRSQcgWR4DwcFltNpSM18ZJmzmM6WrNeeP437y48LlykLnmGDA3oATakgw== +"@react-pdf/yoga@^2.0.0-beta.0": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@react-pdf/yoga/-/yoga-2.0.4.tgz#6b14c6f244dc551db209acd05a06354a19fed66e" + integrity sha512-bsU48GQ8E4LEQ38AtyQPQZ9oEATMpolGPFewgI4sBXOZBNH2miLtoBTbyB/xEOMuBcyqtvJQwSNg2czSZjrlyQ== + dependencies: + "@types/yoga-layout" "^1.9.3" "@sindresorhus/is@^0.7.0": version "0.7.0" @@ -2387,14 +2306,6 @@ "@svgr/plugin-jsx" "^6.2.1" "@svgr/plugin-svgo" "^6.2.0" -"@swc/helpers@^0.4.2": - version "0.4.36" - resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.36.tgz#fcfff76ed52c214f357e8e9d3f37b568908072d9" - integrity sha512-5lxnyLEYFskErRPenYItLRSge5DjrJngYKdVjRSrWfza9G6KkgHEXi0vUZiyUeMU5JfXH1YnvXZzSp8ul88o2Q== - dependencies: - legacy-swc-helpers "npm:@swc/helpers@=0.4.14" - tslib "^2.4.0" - "@trysound/sax@0.2.0": version "0.2.0" resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad" @@ -2432,6 +2343,11 @@ dependencies: i18next "^19.7.0" +"@types/json-schema@^7.0.8": + version "7.0.15" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -2498,11 +2414,6 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== -"@types/raf@^3.4.0": - version "3.4.3" - resolved "https://registry.yarnpkg.com/@types/raf/-/raf-3.4.3.tgz#85f1d1d17569b28b8db45e16e996407a56b0ab04" - integrity sha512-c4YAvMedbPZ5tEyxzQdMoOhhJ4RD3rngZIdwC2/qDN3d7JpEhB6fiBRKVY1lg5B7Wk+uPBjn5f39j1/2MY1oOw== - "@types/react@*": version "17.0.3" resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.3.tgz#ba6e215368501ac3826951eef2904574c262cc79" @@ -2537,10 +2448,25 @@ resolved "https://registry.yarnpkg.com/@types/warning/-/warning-3.0.0.tgz#0d2501268ad8f9962b740d387c4654f5f8e23e52" integrity sha1-DSUBJorY+ZYrdA04fEZU9fjiPlI= -abs-svg-path@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/abs-svg-path/-/abs-svg-path-0.1.1.tgz#df601c8e8d2ba10d4a76d625e236a9a39c2723bf" - integrity sha512-d8XPSGjfyzlXC3Xx891DJRyZfqk5JU0BJrDQcsWomFIV1/BIzPW5HDH5iDdWpqWaav0YVIEzT1RHTwWr0FFshA== +"@types/yoga-layout@^1.9.3": + version "1.9.7" + resolved "https://registry.yarnpkg.com/@types/yoga-layout/-/yoga-layout-1.9.7.tgz#cb60565e69af9d132cac420a4bb94e6472847f6f" + integrity sha512-TlYNIa9XHCGYRqVrijiDVj72Sc4Yd9At0NYEaHm8Su94GwcsXRq5y1AhA8tZUVNXYRCNpGWuOWI4VQ+R58MgUw== + +ajv-keywords@^3.1.0, ajv-keywords@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv@^6.1.0, ajv@^6.12.5: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" amdefine@>=0.0.4: version "1.0.1" @@ -2637,11 +2563,6 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - attr-accept@^2.2.1: version "2.2.2" resolved "https://registry.yarnpkg.com/attr-accept/-/attr-accept-2.2.2.tgz#646613809660110749e92f2c10833b70968d929b" @@ -2742,28 +2663,21 @@ base-64@^0.1.0: resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb" integrity sha1-eAqZyE59YAJgNhURxId2E78k9rs= -base64-arraybuffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#1c37589a7c4b0746e34bd1feb951da2df01c1bdc" - integrity sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ== - -base64-js@^1.1.2, base64-js@^1.3.0, base64-js@^1.3.1: +base64-js@^1.1.2, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -bidi-js@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/bidi-js/-/bidi-js-1.0.3.tgz#6f8bcf3c877c4d9220ddf49b9bb6930c88f877d2" - integrity sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw== - dependencies: - require-from-string "^2.0.2" - big-integer@^1.6.16: version "1.6.48" resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.48.tgz#8fd88bd1632cba4a1c8c3e3d7159f08bb95b4b9e" integrity sha512-j51egjPa7/i+RdiRuJbPdJ2FIUYYPhvYLjzoYbcMMm62ooO6F94fETG4MTs46zPAF9Brs04OajboA/qTGuz78w== +big.js@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" + integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== + blob-stream@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/blob-stream/-/blob-stream-0.1.3.tgz#98d668af6996e0f32ef666d06e215ccc7d77686c" @@ -2802,7 +2716,7 @@ broadcast-channel@^3.4.1: rimraf "3.0.2" unload "2.2.0" -brotli@^1.2.0, brotli@^1.3.2: +brotli@^1.2.0: version "1.3.3" resolved "https://registry.yarnpkg.com/brotli/-/brotli-1.3.3.tgz#7365d8cc00f12cf765d2b2c898716bcf4b604d48" integrity sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg== @@ -2825,13 +2739,6 @@ browserify-optional@^1.0.0: ast-types "^0.7.0" browser-resolve "^1.8.1" -browserify-zlib@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" - integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA== - dependencies: - pako "~1.0.5" - browserslist@^4.14.5: version "4.16.3" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.3.tgz#340aa46940d7db878748567c5dea24a48ddf3717" @@ -2854,11 +2761,6 @@ browserslist@^4.17.5, browserslist@^4.19.1: node-releases "^2.0.1" picocolors "^1.0.0" -btoa@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/btoa/-/btoa-1.2.1.tgz#01a9909f8b2c93f6bf680ba26131eb30f7fa3d73" - integrity sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g== - buffer-equal-constant-time@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" @@ -2953,20 +2855,6 @@ caniuse-lite@^1.0.30001283, caniuse-lite@^1.0.30001286: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001311.tgz#682ef3f4e617f1a177ad943de59775ed3032e511" integrity sha512-mleTFtFKfykEeW34EyfhGIFjGCqzhh38Y0LhdQ9aWF+HorZTtdgKV/1hEE0NlFkG2ubvisPV6l400tlbPys98A== -canvg@^3.0.6: - version "3.0.10" - resolved "https://registry.yarnpkg.com/canvg/-/canvg-3.0.10.tgz#8e52a2d088b6ffa23ac78970b2a9eebfae0ef4b3" - integrity sha512-qwR2FRNO9NlzTeKIPIKpnTY6fqwuYSequ8Ru8c0YkYU7U0oW+hLUvWadLvAu1Rl72OMNiFhoLu4f8eUjQ7l/+Q== - dependencies: - "@babel/runtime" "^7.12.5" - "@types/raf" "^3.4.0" - core-js "^3.8.3" - raf "^3.4.1" - regenerator-runtime "^0.13.7" - rgbcolor "^1.0.1" - stackblur-canvas "^2.0.0" - svg-pathdata "^6.0.3" - ccount@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043" @@ -3048,16 +2936,11 @@ clone-response@1.0.2: dependencies: mimic-response "^1.0.0" -clone@^1.0.4: +clone@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== -clone@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" - integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w== - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -3077,19 +2960,11 @@ color-name@1.1.3: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -color-name@^1.0.0, color-name@~1.1.4: +color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -color-string@^1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.9.1.tgz#4467f9146f036f855b764dfb5bf8582bf342c7a4" - integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg== - dependencies: - color-name "^1.0.0" - simple-swizzle "^0.2.2" - colorette@^1.2.1: version "1.2.2" resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" @@ -3154,11 +3029,6 @@ core-js@^3: resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.9.1.tgz#cec8de593db8eb2a85ffb0dbdeb312cb6e5460ae" integrity sha512-gSjRvzkxQc1zjM/5paAmL4idJBFzuJoo+jDjF1tStYFMV2ERfD02HhahhCGXUyHxQRG4yFKVSdO6g62eoRMcDg== -core-js@^3.6.0, core-js@^3.8.3: - version "3.36.0" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.36.0.tgz#e752fa0b0b462a0787d56e9d73f80b0f7c0dde68" - integrity sha512-mt7+TUBbTFg5+GngsAxeKBTl5/VS0guFeJacYge9OmHb+m058UwwIm41SE9T4Den7ClatV57B6TYTuJ0CX1MAw== - core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" @@ -3186,7 +3056,7 @@ cosmiconfig@^7.0.1: path-type "^4.0.0" yaml "^1.10.0" -cross-fetch@^3.1.5: +cross-fetch@^3.0.4: version "3.1.8" resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.8.tgz#0327eba65fd68a7d119f8fb2bf9334a1a7956f82" integrity sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg== @@ -3198,11 +3068,6 @@ crypto-js@^4.0.0: resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.0.0.tgz#2904ab2677a9d042856a2ea2ef80de92e4a36dcc" integrity sha512-bzHZN8Pn+gS7DQA6n+iUmBfl0hO5DJq++QP3U6uTucDtk/0iGpXd/Gg7CGR0p8tJhofJyaKoWBuJI4eAO00BBg== -crypto-js@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631" - integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q== - css-box-model@1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/css-box-model/-/css-box-model-1.2.1.tgz#59951d3b81fd6b2074a62d49444415b0d2b4d7c1" @@ -3210,13 +3075,6 @@ css-box-model@1.2.1: dependencies: tiny-invariant "^1.0.6" -css-line-break@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/css-line-break/-/css-line-break-2.1.0.tgz#bfef660dfa6f5397ea54116bb3cb4873edbc4fa0" - integrity sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w== - dependencies: - utrie "^1.0.2" - css-select@^4.1.3: version "4.2.1" resolved "https://registry.yarnpkg.com/css-select/-/css-select-4.2.1.tgz#9e665d6ae4c7f9d65dbe69d0316e3221fb274cdd" @@ -3379,7 +3237,7 @@ detect-node@^2.0.4: resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c" integrity sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw== -dfa@^1.2.0: +dfa@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/dfa/-/dfa-1.2.0.tgz#96ac3204e2d29c49ea5b57af8d92c2ae12790657" integrity sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q== @@ -3425,11 +3283,6 @@ domhandler@^4.2.0, domhandler@^4.3.0: dependencies: domelementtype "^2.2.0" -dompurify@^2.2.0: - version "2.4.7" - resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-2.4.7.tgz#277adeb40a2c84be2d42a8bcd45f582bfa4d0cfc" - integrity sha512-kxxKlPEDa6Nc5WJi+qRgPbOAbgTpSULL+vI3NUXsZMlkJxTqYI9wg5ZTay2sFrdZRWHPWNi+EdAhcJf81WtoMQ== - domutils@^2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135" @@ -3466,16 +3319,16 @@ electron-to-chromium@^1.4.17: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.68.tgz#d79447b6bd1bec9183f166bb33d4bef0d5e4e568" integrity sha512-cId+QwWrV8R1UawO6b9BR1hnkJ4EJPCPAr4h315vliHUtVUJDk39Sg1PMNnaWKfj5x+93ssjeJ9LKL6r8LaMiA== -emoji-regex@^10.3.0: - version "10.3.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.3.0.tgz#76998b9268409eb3dae3de989254d456e70cfe23" - integrity sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw== - emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== +emojis-list@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" + integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== + end-of-stream@^1.1.0: version "1.4.4" resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" @@ -3598,26 +3451,34 @@ extend@^3.0.0: resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== -fast-deep-equal@^3.1.3: +fast-deep-equal@^3.1.1: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + fast-safe-stringify@^2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz#124aa885899261f68aedb42a7c080de9da608743" integrity sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA== -fflate@^0.4.8: - version "0.4.8" - resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.4.8.tgz#f90b82aefbd8ac174213abb338bd7ef848f0f5ae" - integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA== - figlet@^1.1.1: version "1.5.0" resolved "https://registry.yarnpkg.com/figlet/-/figlet-1.5.0.tgz#2db4d00a584e5155a96080632db919213c3e003c" integrity sha512-ZQJM4aifMpz6H19AW1VqvZ7l4pOE9p7i/3LyxgO2kp+PO/VcDYNqIHEMtkccqIhTXMKci4kjueJr/iCQEaT/Ww== +file-loader@^6.0.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d" + integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw== + dependencies: + loader-utils "^2.0.0" + schema-utils "^3.0.0" + file-saver@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.5.tgz#d61cfe2ce059f414d899e9dd6d4107ee25670c38" @@ -3655,21 +3516,6 @@ follow-redirects@^1.14.0: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc" integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA== -fontkit@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/fontkit/-/fontkit-2.0.2.tgz#ac5384f3ecab8327c6d2ea2e4d384afc544b48fd" - integrity sha512-jc4k5Yr8iov8QfS6u8w2CnHWVmbOGtdBtOXMze5Y+QD966Rx6PEVWXSEGwXlsDlKtu1G12cJjcsybnqhSk/+LA== - dependencies: - "@swc/helpers" "^0.4.2" - brotli "^1.3.2" - clone "^2.1.2" - dfa "^1.2.0" - fast-deep-equal "^3.1.3" - restructure "^3.0.0" - tiny-inflate "^1.0.3" - unicode-properties "^1.4.0" - unicode-trie "^2.0.0" - form-data@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" @@ -4019,18 +3865,6 @@ hosted-git-info@^2.1.4: resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== -hsl-to-hex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/hsl-to-hex/-/hsl-to-hex-1.0.0.tgz#c58c826dc6d2f1e0a5ff1da5a7ecbf03faac1352" - integrity sha512-K6GVpucS5wFf44X0h2bLVRDsycgJmf9FF2elg+CrqD8GcFU8c6vYhgXn8NjUkFCwj+xDFb70qgLbTUm6sxwPmA== - dependencies: - hsl-to-rgb-for-reals "^1.1.0" - -hsl-to-rgb-for-reals@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/hsl-to-rgb-for-reals/-/hsl-to-rgb-for-reals-1.1.1.tgz#e1eb23f6b78016e3722431df68197e6dcdc016d9" - integrity sha512-LgOWAkrN0rFaQpfdWBQlv/VhkOxb5AsBjk6NQVx4yEzWS923T07X0M1Y0VNko2H52HeSpZrZNNMJ0aFqsdVzQg== - html-parse-stringify2@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/html-parse-stringify2/-/html-parse-stringify2-2.0.1.tgz#dc5670b7292ca158b7bc916c9a6735ac8872834a" @@ -4043,14 +3877,6 @@ html-void-elements@^1.0.0: resolved "https://registry.yarnpkg.com/html-void-elements/-/html-void-elements-1.0.5.tgz#ce9159494e86d95e45795b166c2021c2cfca4483" integrity sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w== -html2canvas@^1.0.0-rc.5, html2canvas@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/html2canvas/-/html2canvas-1.4.1.tgz#7cef1888311b5011d507794a066041b14669a543" - integrity sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA== - dependencies: - css-line-break "^2.1.0" - text-segmentation "^1.0.3" - http-cache-semantics@3.8.1: version "3.8.1" resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" @@ -4061,7 +3887,7 @@ http2-client@^1.2.5: resolved "https://registry.yarnpkg.com/http2-client/-/http2-client-1.3.3.tgz#90fc15d646cca86956b156d07c83947d57d659a9" integrity sha512-nUxLymWQ9pzkzTmir24p2RtsgruLmhje7lH3hLX1IpwvyTg77fW+1brenPPP3USAR+rQ36p5sTA/x7sjCJVkAA== -hyphen@^1.6.4: +hyphen@^1.1.1: version "1.10.4" resolved "https://registry.yarnpkg.com/hyphen/-/hyphen-1.10.4.tgz#ae16551b8a56ae7c34ffd4b98777221795e6c912" integrity sha512-SejXzIpv9gOVdDWXd4suM1fdF1k2dxZGvuTdkOVLoazYfK7O4DykIQbdrvuyG+EaTNlXAGhMndtKrhykgbt0gg== @@ -4167,11 +3993,6 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= -is-arrayish@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" - integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== - is-buffer@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" @@ -4282,13 +4103,6 @@ isurl@^1.0.0-alpha5: has-to-string-tag-x "^1.2.0" is-object "^1.0.1" -jay-peg@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/jay-peg/-/jay-peg-1.0.1.tgz#f09b8615886cb1ce61c364c16e203f566eeaa779" - integrity sha512-zBfjkGbuuNXk8JW+rEePpPEbRRjupS8q+5yPak7kjy3e2GvvNwsLle9okEFvfGyZA6HvtSSiYrVd1/jgnYebaQ== - dependencies: - restructure "^3.0.0" - jose@^1.27.2: version "1.28.0" resolved "https://registry.yarnpkg.com/jose/-/jose-1.28.0.tgz#0803f8c71f43cd293a9d931c555c30531f5ca5dc" @@ -4341,6 +4155,11 @@ json-parse-even-better-errors@^2.3.0: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + json5@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" @@ -4371,21 +4190,6 @@ jsonwebtoken@^8.5.1: ms "^2.1.1" semver "^5.6.0" -jspdf@^2.5.1: - version "2.5.1" - resolved "https://registry.yarnpkg.com/jspdf/-/jspdf-2.5.1.tgz#00c85250abf5447a05f3b32ab9935ab4a56592cc" - integrity sha512-hXObxz7ZqoyhxET78+XR34Xu2qFGrJJ2I2bE5w4SM8eFaFEkW2xcGRVUss360fYelwRSid/jT078kbNvmoW0QA== - dependencies: - "@babel/runtime" "^7.14.0" - atob "^2.1.2" - btoa "^1.2.1" - fflate "^0.4.8" - optionalDependencies: - canvg "^3.0.6" - core-js "^3.6.0" - dompurify "^2.2.0" - html2canvas "^1.0.0-rc.5" - jwa@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.4.1.tgz#743c32985cb9e98655530d53641b66c8645b039a" @@ -4420,18 +4224,29 @@ leaflet@^1.7.1: resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.7.1.tgz#10d684916edfe1bf41d688a3b97127c0322a2a19" integrity sha512-/xwPEBidtg69Q3HlqPdU3DnrXQOvQU/CCHA1tcDQVzOwm91YMYaILjNp7L4Eaw5Z4sOYdbBz6koWyibppd8Zqw== -"legacy-swc-helpers@npm:@swc/helpers@=0.4.14": - version "0.4.14" - resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74" - integrity sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw== - dependencies: - tslib "^2.4.0" - lines-and-columns@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= +loader-utils@^1.0.0: + version "1.4.2" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.2.tgz#29a957f3a63973883eb684f10ffd3d151fec01a3" + integrity sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^1.0.1" + +loader-utils@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.4.tgz#8b5cb38b5c34a9a018ee1fc0e6a066d1dfcc528c" + integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + locate-path@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" @@ -4531,6 +4346,16 @@ lowercase-keys@^1.0.0: resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== +lz-string@^1.4.4: + version "1.5.0" + resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" + integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== + +make-cancellable-promise@^1.0.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/make-cancellable-promise/-/make-cancellable-promise-1.3.2.tgz#993c8c8b79cff13c74fa93de0bd8a17fe66685c1" + integrity sha512-GCXh3bq/WuMbS+Ky4JBPW1hYTOU+znU+Q5m9Pu+pI8EoUqIHk9+tviOKC6/qhHh8C4/As3tzJ69IF32kdz85ww== + make-dir@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" @@ -4538,6 +4363,11 @@ make-dir@^3.1.0: dependencies: semver "^6.0.0" +make-event-props@^1.1.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/make-event-props/-/make-event-props-1.6.2.tgz#c8e0e48eb28b9b808730de38359f6341de7ec5a2" + integrity sha512-iDwf7mA03WPiR8QxvcVHmVWEPfMY1RZXerDVNCRYW7dUr2ppH3J58Rwb39/WG39yTZdRSxr3x+2v22tvI0VEvA== + map-obj@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" @@ -4700,6 +4530,11 @@ meow@^6.1.1: type-fest "^0.13.1" yargs-parser "^18.1.3" +merge-class-names@^1.1.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.4.2.tgz#78d6d95ab259e7e647252a7988fd25a27d5a8835" + integrity sha512-bOl98VzwCGi25Gcn3xKxnR5p/WrhWFQB59MS/aGENcmUc6iSm96yrFDF0XSNurX9qN4LbJm0R9kfvsQ17i8zCw== + micromark-extension-gfm-autolink-literal@~0.5.0: version "0.5.7" resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-0.5.7.tgz#53866c1f0c7ef940ae7ca1f72c6faef8fed9f204" @@ -4763,6 +4598,11 @@ mime-db@1.46.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.46.0.tgz#6267748a7f799594de3cbc8cde91def349661cee" integrity sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ== +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + mime-types@^2.1.12: version "2.1.29" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.29.tgz#1d4ab77da64b91f5f72489df29236563754bb1b2" @@ -4770,6 +4610,13 @@ mime-types@^2.1.12: dependencies: mime-db "1.46.0" +mime-types@^2.1.27: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + mimic-response@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" @@ -4878,6 +4725,14 @@ next-compose-plugins@^2.2.0: resolved "https://registry.yarnpkg.com/next-compose-plugins/-/next-compose-plugins-2.2.1.tgz#020fc53f275a7e719d62521bef4300fbb6fde5ab" integrity sha512-OjJ+fV15FXO2uQXQagLD4C0abYErBjyjE0I0FHpOEIB8upw0hg1ldFP6cqHTJBH1cZqy96OeR3u1dJ+Ez2D4Bg== +next-fonts@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/next-fonts/-/next-fonts-1.5.1.tgz#21f398ca6931b85a7f9c4597f1d3b851be5b5a16" + integrity sha512-pgEJ40xO1oRhM6RqhQJ9CzuZOFp6Zq+aAD/V1P9sq/wdepvLzhFxDm3lCZNoE7+78NSuMKgT6b1qeXSsqWuUMQ== + dependencies: + file-loader "^6.0.0" + url-loader "^4.0.0" + next-i18next@^8.1.1: version "8.1.1" resolved "https://registry.yarnpkg.com/next-i18next/-/next-i18next-8.1.1.tgz#ba53bfd6c33b7dcd798a9942a50ddd85c489d95f" @@ -4941,6 +4796,11 @@ node-emoji@^1.10.0: dependencies: lodash.toarray "^4.4.0" +node-ensure@^0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/node-ensure/-/node-ensure-0.0.0.tgz#ecae764150de99861ec5c810fd5d096b183932a7" + integrity sha512-DRI60hzo2oKN1ma0ckc6nQWlHU69RH6xN0sjQTjMpChPfTYvKZdcQFfdYK2RWbJcKyUizSIy/l8OTGxMAM1QDw== + node-fetch-h2@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz#c6188325f9bd3d834020bf0f2d6dc17ced2241ac" @@ -4992,13 +4852,6 @@ normalize-package-data@^2.5.0: semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" -normalize-svg-path@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/normalize-svg-path/-/normalize-svg-path-1.1.0.tgz#0e614eca23c39f0cffe821d6be6cd17e569a766c" - integrity sha512-r9KHKG2UUeB5LoTouwDzBy2VxXlHsiM6fyLQvnJa0S5hrhzqElH/CH7TUGhT1fVvIYBIKf3OpY4YJ4CK+iaqHg== - dependencies: - svg-arc-to-cubic-bezier "^3.0.0" - normalize-url@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-2.0.1.tgz#835a9da1551fa26f70e92329069a23aa6574d7e6" @@ -5152,7 +5005,7 @@ pako@^0.2.5: resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" integrity sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA== -pako@^1.0.10, pako@^1.0.11, pako@^1.0.6, pako@~1.0.5: +pako@^1.0.10, pako@^1.0.11, pako@^1.0.6: version "1.0.11" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== @@ -5191,11 +5044,6 @@ parse-json@^5.0.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parse-svg-path@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/parse-svg-path/-/parse-svg-path-0.1.2.tgz#7a7ec0d1eb06fa5325c7d3e009b859a09b5d49eb" - integrity sha512-JyPSBnkTJ0AI8GGJLfMXvKq42cj5c006fnLz6fXy6zfoVjJizi8BNTpu8on8ziI1cKy9d9DGNuY17Ce7wuejpQ== - parse5-htmlparser2-tree-adapter@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" @@ -5255,10 +5103,20 @@ pdf-lib@^1.17.1: pako "^1.0.11" tslib "^1.11.1" -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== +pdf-merger-js@^4.1.2: + version "4.3.1" + resolved "https://registry.yarnpkg.com/pdf-merger-js/-/pdf-merger-js-4.3.1.tgz#f497a284adb84e2e055fe3712ea8146171c05b58" + integrity sha512-RHLZvE2Nn96K0/hjE/NPHjyZenSGW25HoLj4J3FxZB9VfujCYe2dC9ag1dlurm4A4He8gR1I1f5aZs+bIdwlzA== + dependencies: + pdf-lib "^1.17.1" + +pdfjs-dist@2.1.266: + version "2.1.266" + resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.1.266.tgz#cded02268b389559e807f410d2a729db62160026" + integrity sha512-Jy7o1wE3NezPxozexSbq4ltuLT0Z21ew/qrEiAEeUZzHxMHGk4DUV1D7RuCXg5vJDvHmjX1YssN+we9QfRRgXQ== + dependencies: + node-ensure "^0.0.0" + worker-loader "^2.0.0" pg-connection-string@^2.4.0: version "2.4.0" @@ -5341,11 +5199,6 @@ popper.js@^1.14.4: resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.16.1.tgz#2a223cb3dc7b6213d740e40372be40de43e65b1b" integrity sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ== -postcss-value-parser@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" - integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== - postcss@8.4.5: version "8.4.5" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.5.tgz#bae665764dfd4c6fcc24dc0fdf7e7aa00cc77f95" @@ -5438,6 +5291,11 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" +punycode@^2.1.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" + integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== + qs-stringify@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/qs-stringify/-/qs-stringify-1.2.1.tgz#9b39ef6b816bd83309628fc9dad435fc0eccc28b" @@ -5457,24 +5315,15 @@ querystring@^0.2.0: resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= -queue@^6.0.1: - version "6.0.2" - resolved "https://registry.yarnpkg.com/queue/-/queue-6.0.2.tgz#b91525283e2315c7553d2efa18d83e76432fed65" - integrity sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA== - dependencies: - inherits "~2.0.3" - quick-lru@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== -raf@^3.4.1: - version "3.4.1" - resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39" - integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== - dependencies: - performance-now "^2.1.0" +ramda@^0.26.1: + version "0.26.1" + resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.26.1.tgz#8d41351eb8111c55353617fc3bbffad8e4d35d06" + integrity sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ== react-clientside-effect@^1.2.2: version "1.2.5" @@ -5607,6 +5456,18 @@ react-onclickoutside@^6.10.0: resolved "https://registry.yarnpkg.com/react-onclickoutside/-/react-onclickoutside-6.10.0.tgz#05abb592575b08b4d129003494056b9dff46eeeb" integrity sha512-7i2L3ef+0ILXpL6P+Hg304eCQswh4jl3ynwR71BSlMU49PE2uk31k8B2GkP6yE9s2D4jTGKnzuSpzWxu4YxfQQ== +react-pdf@4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/react-pdf/-/react-pdf-4.2.0.tgz#b83a01eb070912522075b7a51aee7d63b2c912ed" + integrity sha512-Ao44mZszfPwtCUsrXHtXnhM+czTvPxfG5wqssbWgj2onL70TKSOKGzQfCH4csCnNDOKji/Pc/s0Og70/VOE+Rg== + dependencies: + "@babel/runtime" "^7.0.0" + make-cancellable-promise "^1.0.0" + make-event-props "^1.1.0" + merge-class-names "^1.1.1" + pdfjs-dist "2.1.266" + prop-types "^15.6.2" + react-popper@^1.3.8: version "1.3.11" resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-1.3.11.tgz#a2cc3f0a67b75b66cfa62d2c409f9dd1fcc71ffd" @@ -5629,15 +5490,15 @@ react-query@^3.12.1: broadcast-channel "^3.4.1" match-sorter "^6.0.2" -react-reconciler@^0.23.0: - version "0.23.0" - resolved "https://registry.yarnpkg.com/react-reconciler/-/react-reconciler-0.23.0.tgz#5f0bfc35dda030b0220c07de11f93131c5d6db63" - integrity sha512-vV0KlLimP9a/NuRcM6GRVakkmT6MKSzhfo8K72fjHMnlXMOhz9GlPe+/tCp5CWBkg+lsMUt/CR1nypJBTPfwuw== +react-reconciler@^0.24.0: + version "0.24.0" + resolved "https://registry.yarnpkg.com/react-reconciler/-/react-reconciler-0.24.0.tgz#5a396b2c2f5efe8554134a5935f49f546723f2dd" + integrity sha512-gAGnwWkf+NOTig9oOowqid9O0HjTDC+XVGBCAmJYYJ2A2cN/O4gDdIuuUQjv8A4v6GDwVfJkagpBBLW5OW9HSw== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" prop-types "^15.6.2" - scheduler "^0.17.0" + scheduler "^0.18.0" react-redux@^7.1.0: version "7.2.2" @@ -5821,11 +5682,6 @@ regenerator-runtime@^0.13.4: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697" integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA== -regenerator-runtime@^0.13.7: - version "0.13.11" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" - integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== - regenerator-runtime@^0.14.0: version "0.14.1" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" @@ -5953,11 +5809,6 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - require_optional@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/require_optional/-/require_optional-1.0.1.tgz#4cf35a4247f64ca3df8c2ef208cc494b1ca8fc2e" @@ -6017,16 +5868,6 @@ restructure@^0.5.3: dependencies: browserify-optional "^1.0.0" -restructure@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/restructure/-/restructure-3.0.0.tgz#a55031d7ed3314bf585f815836fff9da3d65101d" - integrity sha512-Xj8/MEIhhfj9X2rmD9iJ4Gga9EFqVlpMj3vfLnV2r/Mh5jRMryNV+6lWh9GdJtDBcBSPIqzRdfBQ3wDtNFv/uw== - -rgbcolor@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/rgbcolor/-/rgbcolor-1.0.1.tgz#d6505ecdb304a6595da26fa4b43307306775945d" - integrity sha512-9aZLIrhRaD97sgVhtJOW6ckOEh6/GnvQtdVNfdZ6s67+3/XwLS9lBcQYzEEhYVeUowN7pRzMLsyGhK2i/xvWbw== - rimraf@3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" @@ -6049,10 +5890,10 @@ sax@>=0.6.0: resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== -scheduler@^0.17.0: - version "0.17.0" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.17.0.tgz#7c9c673e4ec781fac853927916d1c426b6f3ddfe" - integrity sha512-7rro8Io3tnCPuY4la/NuI5F2yfESpnfZyT6TtkXnSWVkcu0BCDJ+8gk5ozUaFaxpIyNuWAPXrH0yFcSi28fnDA== +scheduler@^0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.18.0.tgz#5901ad6659bc1d8f3fdaf36eb7a67b0d6746b1c4" + integrity sha512-agTSHR1Nbfi6ulI0kYNK0203joW2Y5W4po4l+v03tOoiJKpTBbxpNhWDvqc/4IcOw+KLmSiQLTasZ4cab2/UWQ== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" @@ -6065,6 +5906,23 @@ scheduler@^0.19.1: loose-envify "^1.1.0" object-assign "^4.1.1" +schema-utils@^0.4.0: + version "0.4.7" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.7.tgz#ba74f597d2be2ea880131746ee17d0a093c68187" + integrity sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ== + dependencies: + ajv "^6.1.0" + ajv-keywords "^3.1.0" + +schema-utils@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" + integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + "semver@2 || 3 || 4 || 5", semver@^5.1.0, semver@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" @@ -6159,13 +6017,6 @@ should@^13.2.1: should-type-adaptors "^1.0.1" should-util "^1.0.0" -simple-swizzle@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" - integrity sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg== - dependencies: - is-arrayish "^0.3.1" - sort-keys@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128" @@ -6255,11 +6106,6 @@ stack-generator@^2.0.3: dependencies: stackframe "^1.1.1" -stackblur-canvas@^2.0.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/stackblur-canvas/-/stackblur-canvas-2.7.0.tgz#af931277d0b5096df55e1f91c530043e066989b6" - integrity sha512-yf7OENo23AGJhBriGx0QivY5JP6Y1HbrrDI6WLt6C5auYZXlQrheoY8hD4ibekFKz1HOfE48Ww8kMWMnJD/zcQ== - stackframe@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.2.0.tgz#52429492d63c62eb989804c11552e3d22e779303" @@ -6368,21 +6214,11 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -svg-arc-to-cubic-bezier@^3.0.0, svg-arc-to-cubic-bezier@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/svg-arc-to-cubic-bezier/-/svg-arc-to-cubic-bezier-3.2.0.tgz#390c450035ae1c4a0104d90650304c3bc814abe6" - integrity sha512-djbJ/vZKZO+gPoSDThGNpKDO+o+bAeA4XQKovvkNCqnIS2t+S4qnLAGQhyyrulhCFRl1WWzAp0wUDV8PpTVU3g== - svg-parser@^2.0.2: version "2.0.4" resolved "https://registry.yarnpkg.com/svg-parser/-/svg-parser-2.0.4.tgz#fdc2e29e13951736140b76cb122c8ee6630eb6b5" integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== -svg-pathdata@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/svg-pathdata/-/svg-pathdata-6.0.3.tgz#80b0e0283b652ccbafb69ad4f8f73e8d3fbf2cac" - integrity sha512-qsjeeq5YjBZ5eMdFuUa4ZosMLxgr5RZ+F+Y1OrDhuOCEInRMA3x74XdBtggJcj9kOeInz0WE+LgCPDkZFlBYJw== - svgo@^2.0.3, svgo@^2.5.0: version "2.8.0" resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24" @@ -6450,13 +6286,6 @@ tapable@^2.2.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b" integrity sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw== -text-segmentation@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/text-segmentation/-/text-segmentation-1.0.3.tgz#52a388159efffe746b24a63ba311b6ac9f2d7943" - integrity sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw== - dependencies: - utrie "^1.0.2" - thenify-all@^1.0.0: version "1.6.0" resolved "https://registry.yarnpkg.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726" @@ -6481,7 +6310,7 @@ timed-out@^4.0.1: resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" integrity sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8= -tiny-inflate@^1.0.0, tiny-inflate@^1.0.2, tiny-inflate@^1.0.3: +tiny-inflate@^1.0.0, tiny-inflate@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/tiny-inflate/-/tiny-inflate-1.0.3.tgz#122715494913a1805166aaf7c93467933eea26c4" integrity sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw== @@ -6551,11 +6380,6 @@ tslib@^2.0.0, tslib@^2.0.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== -tslib@^2.4.0: - version "2.6.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - type-fest@^0.13.1: version "0.13.1" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934" @@ -6649,14 +6473,6 @@ unicode-match-property-value-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz#1a01aa57247c14c568b89775a54938788189a714" integrity sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw== -unicode-properties@^1.4.0, unicode-properties@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/unicode-properties/-/unicode-properties-1.4.1.tgz#96a9cffb7e619a0dc7368c28da27e05fc8f9be5f" - integrity sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg== - dependencies: - base64-js "^1.3.0" - unicode-trie "^2.0.0" - unicode-property-aliases-ecmascript@^1.0.4: version "1.1.0" resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4" @@ -6675,14 +6491,6 @@ unicode-trie@^0.3.0: pako "^0.2.5" tiny-inflate "^1.0.0" -unicode-trie@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-trie/-/unicode-trie-2.0.0.tgz#8fd8845696e2e14a8b67d78fa9e0dd2cad62fec8" - integrity sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ== - dependencies: - pako "^0.2.5" - tiny-inflate "^1.0.0" - unified@^9.0.0: version "9.2.1" resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.1.tgz#ae18d5674c114021bfdbdf73865ca60f410215a3" @@ -6747,6 +6555,22 @@ unload@2.2.0: "@babel/runtime" "^7.6.2" detect-node "^2.0.4" +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +url-loader@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-4.1.1.tgz#28505e905cae158cf07c92ca622d7f237e70a4e2" + integrity sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA== + dependencies: + loader-utils "^2.0.0" + mime-types "^2.1.27" + schema-utils "^3.0.0" + url-parse-lax@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" @@ -6784,13 +6608,6 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= -utrie@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/utrie/-/utrie-1.0.2.tgz#d42fe44de9bc0119c25de7f564a6ed1b2c87a645" - integrity sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw== - dependencies: - base64-arraybuffer "^1.0.2" - validate-npm-package-license@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" @@ -6827,15 +6644,6 @@ vfile@^4.0.0: unist-util-stringify-position "^2.0.0" vfile-message "^2.0.0" -vite-compatible-readable-stream@^3.6.1: - version "3.6.1" - resolved "https://registry.yarnpkg.com/vite-compatible-readable-stream/-/vite-compatible-readable-stream-3.6.1.tgz#27267aebbdc9893c0ddf65a421279cbb1e31d8cd" - integrity sha512-t20zYkrSf868+j/p31cRIGN28Phrjm3nRSLR2fyc2tiWi4cZGVdv68yNlwnIINTkMTmPoMiSlc0OadaO7DXZaQ== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - void-elements@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec" @@ -6871,6 +6679,14 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= +worker-loader@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/worker-loader/-/worker-loader-2.0.0.tgz#45fda3ef76aca815771a89107399ee4119b430ac" + integrity sha512-tnvNp4K3KQOpfRnD20m8xltE3eWh89Ye+5oj7wXEEHKac1P4oZ6p9oTj8/8ExqoSBnk9nu5Pr4nKfQ1hn2APJw== + dependencies: + loader-utils "^1.0.0" + schema-utils "^0.4.0" + wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" @@ -6948,11 +6764,6 @@ yargs@^16.0.0, yargs@^16.0.3, yargs@^16.1.1: y18n "^5.0.5" yargs-parser "^20.2.2" -yoga-layout@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/yoga-layout/-/yoga-layout-2.0.1.tgz#4bc686abe2464f977866650ddccc1dbcf9f0d03c" - integrity sha512-tT/oChyDXelLo2A+UVnlW9GU7CsvFMaEnd9kVFsaiCQonFAXd3xrHhkLYu+suwwosrAEQ746xBU+HvYtm1Zs2Q== - yup@^0.32.9: version "0.32.9" resolved "https://registry.yarnpkg.com/yup/-/yup-0.32.9.tgz#9367bec6b1b0e39211ecbca598702e106019d872"