Skip to content

Instantly share code, notes, and snippets.

@dgwyer
Last active August 17, 2023 12:53
Show Gist options
  • Save dgwyer/68540d2d78151853589e786b7ce43030 to your computer and use it in GitHub Desktop.
Save dgwyer/68540d2d78151853589e786b7ce43030 to your computer and use it in GitHub Desktop.
Test script run via a GitHb action to create InstaWP sites
Attempting to create site 1 of 10...
Site name: 1234-test-3B9gNalUoA
Sites created: Promise { <pending> }
New site created: {
status: true,
message: 'Site installation work in progress, Wait for installation.',
data: {
message: 'Site installation work in progress, Wait for installation.',
task_id: 'b037e201ddc9',
status: 1,
wp_url: 'https://1234-test-3b9gnaluoa.instawp.xyz',
wp_username: 'siyeholuli1252',
wp_password: '4tVeDWHBG3uA1r9X2iaq',
id: 391821,
s_hash: '$2y$10$AHnzb6W5W5b7D5g1hXqTPOvuX1y3/KPdnzW/AF.sFZm1FNy8WOBkK',
token: null,
remaining_site_minutes: 21599
}
}
Task Status (initial): {
status: true,
message: 'Task details retrived.',
data: {
id: 776025,
team_id: 2799,
user_id: 2730,
type: 'site_install',
comment: null,
cloud_task_id: 'b037e201ddc9',
resource_id: 391821,
resource_type: 'App\\Models\\Site',
success_callback_fun: 'successICSiteInstall',
error_callback_fun: 'failedICSiteInstall',
percentage_complete: '20.00',
status: 'pending',
timeout_at: '2023-08-17 12:03:26',
task_meta: null,
created_at: '2023-08-17T11:33:26.000000Z',
updated_at: '2023-08-17T11:33:28.000000Z'
}
}
Task Status (loop): {
status: true,
message: 'Task details retrived.',
data: {
id: 776025,
team_id: 2799,
user_id: 2730,
type: 'site_install',
comment: null,
cloud_task_id: 'b037e201ddc9',
resource_id: 391821,
resource_type: 'App\\Models\\Site',
success_callback_fun: 'successICSiteInstall',
error_callback_fun: 'failedICSiteInstall',
percentage_complete: '100.00',
status: 'completed',
timeout_at: '2023-08-17 12:03:26',
task_meta: null,
created_at: '2023-08-17T11:33:26.000000Z',
updated_at: '2023-08-17T11:33:38.000000Z'
}
} 2
Attempting to create site 2 of 10...
Site name: 1234-test-CMkJ5S9Rg4
New site created: {
status: true,
message: 'Site installation work in progress, Wait for installation.',
data: {
message: 'Site installation work in progress, Wait for installation.',
task_id: 'bd8f9ae70704',
status: 1,
wp_url: 'https://1234-test-cmkj5s9rg4.instawp.xyz',
wp_username: 'vorunibiwe5247',
wp_password: 'op4Mn9JXxstgZqL8dECu',
id: 391822,
s_hash: '$2y$10$UPZ90g/PHVmaj5fwt4s5S.ds3LOb7iv0LR9KuG1W1XDWRooZ9X0O2',
token: null,
remaining_site_minutes: 21599
}
}
Task Status (initial): {
status: true,
message: 'Task details retrived.',
data: {
id: 776027,
team_id: 2799,
user_id: 2730,
type: 'site_install',
comment: null,
cloud_task_id: 'bd8f9ae70704',
resource_id: 391822,
resource_type: 'App\\Models\\Site',
success_callback_fun: 'successICSiteInstall',
error_callback_fun: 'failedICSiteInstall',
percentage_complete: '100.00',
status: 'completed',
timeout_at: '2023-08-17 12:03:40',
task_meta: null,
created_at: '2023-08-17T11:33:40.000000Z',
updated_at: '2023-08-17T11:33:47.000000Z'
}
}
Attempting to create site 3 of 10...
Site name: 1234-test-ZsyjW4E7GQ
New site created: {
status: true,
message: 'Site installation work in progress, Wait for installation.',
data: {
message: 'Site installation work in progress, Wait for installation.',
task_id: 'c2915bda8d70',
status: 1,
wp_url: 'https://1234-test-zsyjw4e7gq.instawp.xyz',
wp_username: 'zewevowidu0134',
wp_password: 'pP6JRvuLhAb5B78K0n1H',
id: 391823,
s_hash: '$2y$10$bPpki3roGnKsF65j8biiY.q6dA9lGrjimlvxArgkONIG2NGMaLdsu',
token: null,
remaining_site_minutes: 21599
}
}
Task Status (initial): {
status: true,
message: 'Task details retrived.',
data: {
id: 776029,
team_id: 2799,
user_id: 2730,
type: 'site_install',
comment: null,
cloud_task_id: 'c2915bda8d70',
resource_id: 391823,
resource_type: 'App\\Models\\Site',
success_callback_fun: 'successICSiteInstall',
error_callback_fun: 'failedICSiteInstall',
percentage_complete: '66.66',
status: 'pending',
timeout_at: '2023-08-17 12:03:48',
task_meta: null,
created_at: '2023-08-17T11:33:48.000000Z',
updated_at: '2023-08-17T11:33:54.000000Z'
}
}
Task Status (loop): {
status: true,
message: 'Task details retrived.',
data: {
id: 776029,
team_id: 2799,
user_id: 2730,
type: 'site_install',
comment: null,
cloud_task_id: 'c2915bda8d70',
resource_id: 391823,
resource_type: 'App\\Models\\Site',
success_callback_fun: 'successICSiteInstall',
error_callback_fun: 'failedICSiteInstall',
percentage_complete: '100.00',
status: 'completed',
timeout_at: '2023-08-17 12:03:48',
task_meta: null,
created_at: '2023-08-17T11:33:48.000000Z',
updated_at: '2023-08-17T11:33:56.000000Z'
}
} 2
Attempting to create site 4 of 10...
Site name: 1234-test-6Tf4m0BtRw
New site created: {
status: true,
message: 'Site installation work in progress, Wait for installation.',
data: {
message: 'Site installation work in progress, Wait for installation.',
task_id: '2adbb921247b',
status: 1,
wp_url: 'https://1234-test-6tf4m0btrw.instawp.xyz',
wp_username: 'vecolelure7147',
wp_password: 'nRpjYgwTzXucC501Ksa7',
id: 391824,
s_hash: '$2y$10$IX.ZmqC7St9yx1/mSPesmevL/YtN24Z1PIqfYes/W429epVrePfvi',
token: null,
remaining_site_minutes: 21599
}
}
Task Status (initial): {
status: true,
message: 'Task details retrived.',
data: {
id: 776031,
team_id: 2799,
user_id: 2730,
type: 'site_install',
comment: null,
cloud_task_id: '2adbb921247b',
resource_id: 391824,
resource_type: 'App\\Models\\Site',
success_callback_fun: 'successICSiteInstall',
error_callback_fun: 'failedICSiteInstall',
percentage_complete: '20.00',
status: 'pending',
timeout_at: '2023-08-17 12:04:02',
task_meta: null,
created_at: '2023-08-17T11:34:02.000000Z',
updated_at: '2023-08-17T11:34:03.000000Z'
}
}
Task Status (loop): {
status: true,
message: 'Task details retrived.',
data: {
id: 776031,
team_id: 2799,
user_id: 2730,
type: 'site_install',
comment: null,
cloud_task_id: '2adbb921247b',
resource_id: 391824,
resource_type: 'App\\Models\\Site',
success_callback_fun: 'successICSiteInstall',
error_callback_fun: 'failedICSiteInstall',
percentage_complete: '100.00',
status: 'completed',
timeout_at: '2023-08-17 12:04:02',
task_meta: null,
created_at: '2023-08-17T11:34:02.000000Z',
updated_at: '2023-08-17T11:34:13.000000Z'
}
} 2
Attempting to create site 5 of 10...
Site name: 1234-test-s0VEvGRD_T
Received non-JSON response: Response {
size: 0,
[Symbol(Body internals)]: {
body: BrotliDecompress {
_writeState: [Uint32Array],
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
bytesWritten: 0,
_handle: [BrotliDecoder],
_outBuffer: <Buffer f0 b3 28 b6 f9 7f 00 00 f0 b3 28 b6 f9 7f 00 00 50 ff 3a 05 00 00 00 00 50 ff 3a 05 00 00 00 00 30 31 6d 53 30 62 70 31 58 43 57 48 42 4c 35 38 39 57 ... 16334 more bytes>,
_outOffset: 0,
_chunkSize: 16384,
_defaultFlushFlag: 0,
_finishFlushFlag: 2,
_defaultFullFlushFlag: 1,
_info: undefined,
_maxOutputLength: 4294967295,
[Symbol(kCapture)]: false,
[Symbol(kTransformState)]: [Object],
[Symbol(kError)]: null
},
stream: BrotliDecompress {
_writeState: [Uint32Array],
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
bytesWritten: 0,
_handle: [BrotliDecoder],
_outBuffer: <Buffer f0 b3 28 b6 f9 7f 00 00 f0 b3 28 b6 f9 7f 00 00 50 ff 3a 05 00 00 00 00 50 ff 3a 05 00 00 00 00 30 31 6d 53 30 62 70 31 58 43 57 48 42 4c 35 38 39 57 ... 16334 more bytes>,
_outOffset: 0,
_chunkSize: 16384,
_defaultFlushFlag: 0,
_finishFlushFlag: 2,
_defaultFullFlushFlag: 1,
_info: undefined,
_maxOutputLength: 4294967295,
[Symbol(kCapture)]: false,
[Symbol(kTransformState)]: [Object],
[Symbol(kError)]: null
},
boundary: null,
disturbed: false,
error: null
},
[Symbol(Response internals)]: {
type: 'default',
url: 'https://app.instawp.io/onboard',
status: 200,
statusText: 'OK',
headers: {
'alt-svc': 'h3=":443"; ma=86400',
'cache-control': 'private, must-revalidate',
'cf-cache-status': 'DYNAMIC',
'cf-ray': '7f819b624af047ac-DFW',
connection: 'close',
'content-encoding': 'br',
'content-type': 'text/html; charset=UTF-8',
date: 'Thu, 17 Aug 2023 11:34:16 GMT',
expires: '-1',
nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
pragma: 'no-cache',
'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=GZAlWP1aULQ%2FMLrdGobfUDfMMIzsq3Xq%2B01mS0bp1XCWHBL589WiPSxAXvvg34qhsjScyjODUPxKEFwRFPTsaTlOWBR2XIKXXtxiFh%2BYw%2FDQZOJSklffVHQXA1lTaTGtCg%3D%3D"}],"group":"cf-nel","max_age":604800}',
server: 'cloudflare',
'set-cookie': [Array],
'transfer-encoding': 'chunked',
vary: [Array],
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block'
},
counter: 2,
highWaterMark: 16384
}
}
Error creating site: TypeError: body used already for: https://app.instawp.io/onboard
at consumeBody (file:///home/runner/work/simple-sitemap/simple-sitemap/__workflows/node_modules/node-fetch/src/body.js:196:9)
at Response.text (file:///home/runner/work/simple-sitemap/simple-sitemap/__workflows/node_modules/node-fetch/src/body.js:158:24)
at Response.json (file:///home/runner/work/simple-sitemap/simple-sitemap/__workflows/node_modules/node-fetch/src/body.js:148:27)
at createNewSite (file:///home/runner/work/simple-sitemap/simple-sitemap/__workflows/.github/workflows/utility/utility.js:62:33)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async createMultipleSites (file:///home/runner/work/simple-sitemap/simple-sitemap/__workflows/.github/workflows/utility/utility.js:128:21)
Received non-JSON response (text): <!DOCTYPE html>
<html lang="en" environment="production">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="Dt2iHsb7OGyoUiiZ9WIJZwgnl6SRZJvAb6o6pD6C">
<!-- Facebook Pixel Code -->
<script >
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '391121922858816');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=391121922858816&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.instawp.io/images/logo_v2.svg">
<link rel="icon" type="image/svg" href="https://cdn.instawp.io/images/logo_v2.svg" sizes="16x16">
<link rel="icon" type="image/svg" href="https://cdn.instawp.io/images/logo_v2.svg" sizes="32x32">
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<!-- Styles -->
<link rel="preload" as="style" href="https://cdn.instawp.io/build/assets/app.a44de0bd.css" /><link rel="preload" as="style" href="https://cdn.instawp.io/build/assets/extra.013aa6a9.css" /><link rel="stylesheet" href="https://cdn.instawp.io/build/assets/app.a44de0bd.css" /><link rel="stylesheet" href="https://cdn.instawp.io/build/assets/extra.013aa6a9.css" />
<!-- Global App Object -->
<script>
window.APP = {
domain: "https://app.instawp.io",
stripeKey: "pk_live_51KsfrLLl0llAy5yAKDjecPOm9RU0frsRep0ksf4exKE2HqPTE39IGqHaJ94rxhzhvGGNnuPikJhYG91Gyb5wVr2D00qHIKbqQ3",
paidSiteLife: "90"
};
</script>
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="82f4e13c-d924-471f-bfc9-f21080fa6d2a";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
<!-- Scripts -->
<script type="text/javascript">
// const locale = "en";
const locale = "en";
const SERVER_TZ = "UTC";
window.appConfig = {
appLocale: locale
}
</script>
<script type="text/javascript">
const Ziggy = {"url":"https:\/\/app.instawp.io","port":null,"defaults":{},"routes":{"backpack.auth.login":{"uri":"admin\/login","methods":["GET","HEAD"]},"backpack.auth.logout":{"uri":"admin\/logout","methods":["GET","HEAD"]},"backpack.auth.register":{"uri":"admin\/register","methods":["GET","HEAD"]},"backpack.auth.password.reset":{"uri":"admin\/password\/reset","methods":["GET","HEAD"]},"backpack.auth.password.reset.token":{"uri":"admin\/password\/reset\/{token}","methods":["GET","HEAD"]},"backpack.auth.password.email":{"uri":"admin\/password\/email","methods":["POST"]},"backpack.dashboard":{"uri":"admin\/dashboard","methods":["GET","HEAD"]},"backpack":{"uri":"admin","methods":["GET","HEAD"]},"backpack.account.info":{"uri":"admin\/edit-account-info","methods":["GET","HEAD"]},"backpack.account.info.store":{"uri":"admin\/edit-account-info","methods":["POST"]},"backpack.account.password":{"uri":"admin\/change-password","methods":["POST"]},"user.index":{"uri":"admin\/user","methods":["GET","HEAD"]},"user.search":{"uri":"admin\/user\/search","methods":["POST"]},"user.showDetailsRow":{"uri":"admin\/user\/{id}\/details","methods":["GET","HEAD"]},"user.create":{"uri":"admin\/user\/create","methods":["GET","HEAD"]},"user.store":{"uri":"admin\/user","methods":["POST"]},"user.edit":{"uri":"admin\/user\/{id}\/edit","methods":["GET","HEAD"]},"user.update":{"uri":"admin\/user\/{id}","methods":["PUT"]},"user.destroy":{"uri":"admin\/user\/{id}","methods":["DELETE"]},"user.show":{"uri":"admin\/user\/{id}\/show","methods":["GET","HEAD"]},"blockeduser.index":{"uri":"admin\/blockeduser","methods":["GET","HEAD"]},"blockeduser.search":{"uri":"admin\/blockeduser\/search","methods":["POST"]},"blockeduser.showDetailsRow":{"uri":"admin\/blockeduser\/{id}\/details","methods":["GET","HEAD"]},"site.index":{"uri":"admin\/site","methods":["GET","HEAD"]},"site.search":{"uri":"admin\/site\/search","methods":["POST"]},"site.showDetailsRow":{"uri":"admin\/site\/{id}\/details","methods":["GET","HEAD"]},"blockedsite.index":{"uri":"admin\/blockedsite","methods":["GET","HEAD"]},"blockedsite.search":{"uri":"admin\/blockedsite\/search","methods":["POST"]},"blockedsite.showDetailsRow":{"uri":"admin\/blockedsite\/{id}\/details","methods":["GET","HEAD"]},"cloud-pool-site.index":{"uri":"admin\/cloud-pool-site","methods":["GET","HEAD"]},"cloud-pool-site.search":{"uri":"admin\/cloud-pool-site\/search","methods":["POST"]},"cloud-pool-site.showDetailsRow":{"uri":"admin\/cloud-pool-site\/{id}\/details","methods":["GET","HEAD"]},"plan.index":{"uri":"admin\/plan","methods":["GET","HEAD"]},"plan.search":{"uri":"admin\/plan\/search","methods":["POST"]},"plan.showDetailsRow":{"uri":"admin\/plan\/{id}\/details","methods":["GET","HEAD"]},"plan.create":{"uri":"admin\/plan\/create","methods":["GET","HEAD"]},"plan.store":{"uri":"admin\/plan","methods":["POST"]},"plan.edit":{"uri":"admin\/plan\/{id}\/edit","methods":["GET","HEAD"]},"plan.update":{"uri":"admin\/plan\/{id}","methods":["PUT"]},"plan.destroy":{"uri":"admin\/plan\/{id}","methods":["DELETE"]},"hosting-pack.index":{"uri":"admin\/hosting-pack","methods":["GET","HEAD"]},"hosting-pack.search":{"uri":"admin\/hosting-pack\/search","methods":["POST"]},"hosting-pack.showDetailsRow":{"uri":"admin\/hosting-pack\/{id}\/details","methods":["GET","HEAD"]},"hosting-pack.create":{"uri":"admin\/hosting-pack\/create","methods":["GET","HEAD"]},"hosting-pack.store":{"uri":"admin\/hosting-pack","methods":["POST"]},"hosting-pack.destroy":{"uri":"admin\/hosting-pack\/{id}","methods":["DELETE"]},"wp-cloud-sites.delete":{"uri":"admin\/wp-cloud-sites\/{id}\/delete","methods":["POST"]},"wp-cloud-sites.index":{"uri":"admin\/wp-cloud-sites","methods":["GET","HEAD"]},"wp-cloud-sites.search":{"uri":"admin\/wp-cloud-sites\/search","methods":["POST"]},"wp-cloud-sites.showDetailsRow":{"uri":"admin\/wp-cloud-sites\/{id}\/details","methods":["GET","HEAD"]},"server_user.index":{"uri":"admin\/server_user","methods":["GET","HEAD"]},"server_user.search":{"uri":"admin\/server_user\/search","methods":["POST"]},"server_user.showDetailsRow":{"uri":"admin\/server_user\/{id}\/details","methods":["GET","HEAD"]},"server_user.create":{"uri":"admin\/server_user\/create","methods":["GET","HEAD"]},"server_user.store":{"uri":"admin\/server_user","methods":["POST"]},"server_user.edit":{"uri":"admin\/server_user\/{id}\/edit","methods":["GET","HEAD"]},"server_user.update":{"uri":"admin\/server_user\/{id}","methods":["PUT"]},"server_user.destroy":{"uri":"admin\/server_user\/{id}","methods":["DELETE"]},"server_user.show":{"uri":"admin\/server_user\/{id}\/show","methods":["GET","HEAD"]},"web_application.index":{"uri":"admin\/web_application","methods":["GET","HEAD"]},"web_application.search":{"uri":"admin\/web_application\/search","methods":["POST"]},"web_application.showDetailsRow":{"uri":"admin\/web_application\/{id}\/details","methods":["GET","HEAD"]},"web_application.create":{"uri":"admin\/web_application\/create","methods":["GET","HEAD"]},"web_application.store":{"uri":"admin\/web_application","methods":["POST"]},"web_application.edit":{"uri":"admin\/web_application\/{id}\/edit","methods":["GET","HEAD"]},"web_application.update":{"uri":"admin\/web_application\/{id}","methods":["PUT"]},"web_application.destroy":{"uri":"admin\/web_application\/{id}","methods":["DELETE"]},"web_application.show":{"uri":"admin\/web_application\/{id}\/show","methods":["GET","HEAD"]},"server_database.index":{"uri":"admin\/server_database","methods":["GET","HEAD"]},"server_database.search":{"uri":"admin\/server_database\/search","methods":["POST"]},"server_database.showDetailsRow":{"uri":"admin\/server_database\/{id}\/details","methods":["GET","HEAD"]},"server_database.create":{"uri":"admin\/server_database\/create","methods":["GET","HEAD"]},"server_database.store":{"uri":"admin\/server_database","methods":["POST"]},"server_database.edit":{"uri":"admin\/server_database\/{id}\/edit","methods":["GET","HEAD"]},"server_database.update":{"uri":"admin\/server_database\/{id}","methods":["PUT"]},"server_database.destroy":{"uri":"admin\/server_database\/{id}","methods":["DELETE"]},"server_database.show":{"uri":"admin\/server_database\/{id}\/show","methods":["GET","HEAD"]},"server_script.index":{"uri":"admin\/server_script","methods":["GET","HEAD"]},"server_script.search":{"uri":"admin\/server_script\/search","methods":["POST"]},"server_script.showDetailsRow":{"uri":"admin\/server_script\/{id}\/details","methods":["GET","HEAD"]},"server_script.create":{"uri":"admin\/server_script\/create","methods":["GET","HEAD"]},"server_script.store":{"uri":"admin\/server_script","methods":["POST"]},"server_script.edit":{"uri":"admin\/server_script\/{id}\/edit","methods":["GET","HEAD"]},"server_script.update":{"uri":"admin\/server_script\/{id}","methods":["PUT"]},"server_script.destroy":{"uri":"admin\/server_script\/{id}","methods":["DELETE"]},"server_script.show":{"uri":"admin\/server_script\/{id}\/show","methods":["GET","HEAD"]},"server_ssls.index":{"uri":"admin\/server_ssls","methods":["GET","HEAD"]},"server_ssls.search":{"uri":"admin\/server_ssls\/search","methods":["POST"]},"server_ssls.showDetailsRow":{"uri":"admin\/server_ssls\/{id}\/details","methods":["GET","HEAD"]},"server_ssls.create":{"uri":"admin\/server_ssls\/create","methods":["GET","HEAD"]},"server_ssls.store":{"uri":"admin\/server_ssls","methods":["POST"]},"server_ssls.edit":{"uri":"admin\/server_ssls\/{id}\/edit","methods":["GET","HEAD"]},"server_ssls.update":{"uri":"admin\/server_ssls\/{id}","methods":["PUT"]},"server_ssls.destroy":{"uri":"admin\/server_ssls\/{id}","methods":["DELETE"]},"server_ssls.show":{"uri":"admin\/server_ssls\/{id}\/show","methods":["GET","HEAD"]},"installation.index":{"uri":"admin\/installation","methods":["GET","HEAD"]},"installation.search":{"uri":"admin\/installation\/search","methods":["POST"]},"installation.showDetailsRow":{"uri":"admin\/installation\/{id}\/details","methods":["GET","HEAD"]},"installation.create":{"uri":"admin\/installation\/create","methods":["GET","HEAD"]},"installation.store":{"uri":"admin\/installation","methods":["POST"]},"installation.edit":{"uri":"admin\/installation\/{id}\/edit","methods":["GET","HEAD"]},"installation.update":{"uri":"admin\/installation\/{id}","methods":["PUT"]},"installation.destroy":{"uri":"admin\/installation\/{id}","methods":["DELETE"]},"installation.show":{"uri":"admin\/installation\/{id}\/show","methods":["GET","HEAD"]},"php_version.index":{"uri":"admin\/php_version","methods":["GET","HEAD"]},"php_version.search":{"uri":"admin\/php_version\/search","methods":["POST"]},"php_version.showDetailsRow":{"uri":"admin\/php_version\/{id}\/details","methods":["GET","HEAD"]},"php_version.create":{"uri":"admin\/php_version\/create","methods":["GET","HEAD"]},"php_version.store":{"uri":"admin\/php_version","methods":["POST"]},"php_version.edit":{"uri":"admin\/php_version\/{id}\/edit","methods":["GET","HEAD"]},"php_version.update":{"uri":"admin\/php_version\/{id}","methods":["PUT"]},"php_version.destroy":{"uri":"admin\/php_version\/{id}","methods":["DELETE"]},"php_version.show":{"uri":"admin\/php_version\/{id}\/show","methods":["GET","HEAD"]},"php_version.bulkDelete":{"uri":"admin\/php_version\/bulk-delete","methods":["POST"]},"wp_version.index":{"uri":"admin\/wp_version","methods":["GET","HEAD"]},"wp_version.search":{"uri":"admin\/wp_version\/search","methods":["POST"]},"wp_version.showDetailsRow":{"uri":"admin\/wp_version\/{id}\/details","methods":["GET","HEAD"]},"wp_version.create":{"uri":"admin\/wp_version\/create","methods":["GET","HEAD"]},"wp_version.store":{"uri":"admin\/wp_version","methods":["POST"]},"wp_version.edit":{"uri":"admin\/wp_version\/{id}\/edit","methods":["GET","HEAD"]},"wp_version.update":{"uri":"admin\/wp_version\/{id}","methods":["PUT"]},"wp_version.destroy":{"uri":"admin\/wp_version\/{id}","methods":["DELETE"]},"wp_version.show":{"uri":"admin\/wp_version\/{id}\/show","methods":["GET","HEAD"]},"wp_version.bulkDelete":{"uri":"admin\/wp_version\/bulk-delete","methods":["POST"]},"server.index":{"uri":"admin\/server","methods":["GET","HEAD"]},"server.search":{"uri":"admin\/server\/search","methods":["POST"]},"server.showDetailsRow":{"uri":"admin\/server\/{id}\/details","methods":["GET","HEAD"]},"server.show":{"uri":"admin\/server\/{id}\/show","methods":["GET","HEAD"]},"command_libraries.index":{"uri":"admin\/command_libraries","methods":["GET","HEAD"]},"command_libraries.search":{"uri":"admin\/command_libraries\/search","methods":["POST"]},"command_libraries.showDetailsRow":{"uri":"admin\/command_libraries\/{id}\/details","methods":["GET","HEAD"]},"command_libraries.create":{"uri":"admin\/command_libraries\/create","methods":["GET","HEAD"]},"command_libraries.store":{"uri":"admin\/command_libraries","methods":["POST"]},"command_libraries.edit":{"uri":"admin\/command_libraries\/{id}\/edit","methods":["GET","HEAD"]},"command_libraries.update":{"uri":"admin\/command_libraries\/{id}","methods":["PUT"]},"command_libraries.destroy":{"uri":"admin\/command_libraries\/{id}","methods":["DELETE"]},"command_libraries.show":{"uri":"admin\/command_libraries\/{id}\/show","methods":["GET","HEAD"]},"server-group.index":{"uri":"admin\/server-group","methods":["GET","HEAD"]},"server-group.search":{"uri":"admin\/server-group\/search","methods":["POST"]},"server-group.showDetailsRow":{"uri":"admin\/server-group\/{id}\/details","methods":["GET","HEAD"]},"server-group.edit":{"uri":"admin\/server-group\/{id}\/edit","methods":["GET","HEAD"]},"server-group.update":{"uri":"admin\/server-group\/{id}","methods":["PUT"]},"store_categories.index":{"uri":"admin\/store_categories","methods":["GET","HEAD"]},"store_categories.search":{"uri":"admin\/store_categories\/search","methods":["POST"]},"store_categories.showDetailsRow":{"uri":"admin\/store_categories\/{id}\/details","methods":["GET","HEAD"]},"store_categories.create":{"uri":"admin\/store_categories\/create","methods":["GET","HEAD"]},"store_categories.store":{"uri":"admin\/store_categories","methods":["POST"]},"store_categories.edit":{"uri":"admin\/store_categories\/{id}\/edit","methods":["GET","HEAD"]},"store_categories.update":{"uri":"admin\/store_categories\/{id}","methods":["PUT"]},"store_categories.destroy":{"uri":"admin\/store_categories\/{id}","methods":["DELETE"]},"store_categories.show":{"uri":"admin\/store_categories\/{id}\/show","methods":["GET","HEAD"]},"store_tags.index":{"uri":"admin\/store_tags","methods":["GET","HEAD"]},"store_tags.search":{"uri":"admin\/store_tags\/search","methods":["POST"]},"store_tags.showDetailsRow":{"uri":"admin\/store_tags\/{id}\/details","methods":["GET","HEAD"]},"store_tags.create":{"uri":"admin\/store_tags\/create","methods":["GET","HEAD"]},"store_tags.store":{"uri":"admin\/store_tags","methods":["POST"]},"store_tags.edit":{"uri":"admin\/store_tags\/{id}\/edit","methods":["GET","HEAD"]},"store_tags.update":{"uri":"admin\/store_tags\/{id}","methods":["PUT"]},"store_tags.destroy":{"uri":"admin\/store_tags\/{id}","methods":["DELETE"]},"store_tags.show":{"uri":"admin\/store_tags\/{id}\/show","methods":["GET","HEAD"]},"store_product_versions.index":{"uri":"admin\/store_product_versions","methods":["GET","HEAD"]},"store_product_versions.search":{"uri":"admin\/store_product_versions\/search","methods":["POST"]},"store_product_versions.showDetailsRow":{"uri":"admin\/store_product_versions\/{id}\/details","methods":["GET","HEAD"]},"store_product_versions.create":{"uri":"admin\/store_product_versions\/create","methods":["GET","HEAD"]},"store_product_versions.store":{"uri":"admin\/store_product_versions","methods":["POST"]},"store_product_versions.edit":{"uri":"admin\/store_product_versions\/{id}\/edit","methods":["GET","HEAD"]},"store_product_versions.update":{"uri":"admin\/store_product_versions\/{id}","methods":["PUT"]},"store_product_versions.destroy":{"uri":"admin\/store_product_versions\/{id}","methods":["DELETE"]},"store_product_versions.show":{"uri":"admin\/store_product_versions\/{id}\/show","methods":["GET","HEAD"]},"admin_panel_integration_providers.index":{"uri":"admin\/admin_panel_integration_providers","methods":["GET","HEAD"]},"admin_panel_integration_providers.search":{"uri":"admin\/admin_panel_integration_providers\/search","methods":["POST"]},"admin_panel_integration_providers.showDetailsRow":{"uri":"admin\/admin_panel_integration_providers\/{id}\/details","methods":["GET","HEAD"]},"admin_panel_integration_providers.edit":{"uri":"admin\/admin_panel_integration_providers\/{id}\/edit","methods":["GET","HEAD"]},"admin_panel_integration_providers.update":{"uri":"admin\/admin_panel_integration_providers\/{id}","methods":["PUT"]},"admin_panel_integration_providers.show":{"uri":"admin\/admin_panel_integration_providers\/{id}\/show","methods":["GET","HEAD"]},"stack_product.index":{"uri":"admin\/stack_product","methods":["GET","HEAD"]},"stack_product.search":{"uri":"admin\/stack_product\/search","methods":["POST"]},"stack_product.showDetailsRow":{"uri":"admin\/stack_product\/{id}\/details","methods":["GET","HEAD"]},"stack_product.edit":{"uri":"admin\/stack_product\/{id}\/edit","methods":["GET","HEAD"]},"stack_product.update":{"uri":"admin\/stack_product\/{id}","methods":["PUT"]},"stack_product.show":{"uri":"admin\/stack_product\/{id}\/show","methods":["GET","HEAD"]},"stack-categories.index":{"uri":"admin\/stack-categories","methods":["GET","HEAD"]},"stack-categories.search":{"uri":"admin\/stack-categories\/search","methods":["POST"]},"stack-categories.showDetailsRow":{"uri":"admin\/stack-categories\/{id}\/details","methods":["GET","HEAD"]},"stack-categories.create":{"uri":"admin\/stack-categories\/create","methods":["GET","HEAD"]},"stack-categories.store":{"uri":"admin\/stack-categories","methods":["POST"]},"stack-categories.edit":{"uri":"admin\/stack-categories\/{id}\/edit","methods":["GET","HEAD"]},"stack-categories.update":{"uri":"admin\/stack-categories\/{id}","methods":["PUT"]},"stack-categories.destroy":{"uri":"admin\/stack-categories\/{id}","methods":["DELETE"]},"languages.index":{"uri":"languages","methods":["GET","HEAD"]},"languages.create":{"uri":"languages\/create","methods":["GET","HEAD"]},"languages.store":{"uri":"languages","methods":["POST"]},"languages.translations.index":{"uri":"languages\/{language}\/translations","methods":["GET","HEAD"]},"languages.translations.update":{"uri":"languages\/{language}","methods":["POST"]},"languages.translations.create":{"uri":"languages\/{language}\/translations\/create","methods":["GET","HEAD"]},"languages.translations.store":{"uri":"languages\/{language}\/translations","methods":["POST"]},"cashier.payment":{"uri":"stripe\/payment\/{id}","methods":["GET","HEAD"]},"login":{"uri":"login","methods":["GET","HEAD"]},"logout":{"uri":"logout","methods":["POST"]},"password.request":{"uri":"forgot-password","methods":["GET","HEAD"]},"password.reset":{"uri":"reset-password\/{token}","methods":["GET","HEAD"]},"password.email":{"uri":"forgot-password","methods":["POST"]},"password.update":{"uri":"reset-password","methods":["POST"]},"register":{"uri":"register","methods":["GET","HEAD"]},"verification.notice":{"uri":"email\/verify","methods":["GET","HEAD"]},"verification.verify":{"uri":"email\/verify\/{id}\/{hash}","methods":["GET","HEAD"]},"verification.send":{"uri":"email\/verification-notification","methods":["POST"]},"user-profile-information.update":{"uri":"user\/profile-information","methods":["PUT"]},"user-password.update":{"uri":"user\/password","methods":["PUT"]},"password.confirmation":{"uri":"user\/confirmed-password-status","methods":["GET","HEAD"]},"password.confirm":{"uri":"user\/confirm-password","methods":["POST"]},"two-factor.login":{"uri":"two-factor-challenge","methods":["GET","HEAD"]},"two-factor.enable":{"uri":"user\/two-factor-authentication","methods":["POST"]},"two-factor.confirm":{"uri":"user\/confirmed-two-factor-authentication","methods":["POST"]},"two-factor.disable":{"uri":"user\/two-factor-authentication","methods":["DELETE"]},"two-factor.qr-code":{"uri":"user\/two-factor-qr-code","methods":["GET","HEAD"]},"two-factor.secret-key":{"uri":"user\/two-factor-secret-key","methods":["GET","HEAD"]},"two-factor.recovery-codes":{"uri":"user\/two-factor-recovery-codes","methods":["GET","HEAD"]},"horizon.stats.index":{"uri":"horizon\/api\/stats","methods":["GET","HEAD"]},"horizon.workload.index":{"uri":"horizon\/api\/workload","methods":["GET","HEAD"]},"horizon.masters.index":{"uri":"horizon\/api\/masters","methods":["GET","HEAD"]},"horizon.monitoring.index":{"uri":"horizon\/api\/monitoring","methods":["GET","HEAD"]},"horizon.monitoring.store":{"uri":"horizon\/api\/monitoring","methods":["POST"]},"horizon.monitoring-tag.paginate":{"uri":"horizon\/api\/monitoring\/{tag}","methods":["GET","HEAD"]},"horizon.monitoring-tag.destroy":{"uri":"horizon\/api\/monitoring\/{tag}","methods":["DELETE"],"wheres":{"tag":".*"}},"horizon.jobs-metrics.index":{"uri":"horizon\/api\/metrics\/jobs","methods":["GET","HEAD"]},"horizon.jobs-metrics.show":{"uri":"horizon\/api\/metrics\/jobs\/{id}","methods":["GET","HEAD"]},"horizon.queues-metrics.index":{"uri":"horizon\/api\/metrics\/queues","methods":["GET","HEAD"]},"horizon.queues-metrics.show":{"uri":"horizon\/api\/metrics\/queues\/{id}","methods":["GET","HEAD"]},"horizon.jobs-batches.index":{"uri":"horizon\/api\/batches","methods":["GET","HEAD"]},"horizon.jobs-batches.show":{"uri":"horizon\/api\/batches\/{id}","methods":["GET","HEAD"]},"horizon.jobs-batches.retry":{"uri":"horizon\/api\/batches\/retry\/{id}","methods":["POST"]},"horizon.pending-jobs.index":{"uri":"horizon\/api\/jobs\/pending","methods":["GET","HEAD"]},"horizon.completed-jobs.index":{"uri":"horizon\/api\/jobs\/completed","methods":["GET","HEAD"]},"horizon.silenced-jobs.index":{"uri":"horizon\/api\/jobs\/silenced","methods":["GET","HEAD"]},"horizon.failed-jobs.index":{"uri":"horizon\/api\/jobs\/failed","methods":["GET","HEAD"]},"horizon.failed-jobs.show":{"uri":"horizon\/api\/jobs\/failed\/{id}","methods":["GET","HEAD"]},"horizon.retry-jobs.show":{"uri":"horizon\/api\/jobs\/retry\/{id}","methods":["POST"]},"horizon.jobs.show":{"uri":"horizon\/api\/jobs\/{id}","methods":["GET","HEAD"]},"horizon.index":{"uri":"horizon\/{view?}","methods":["GET","HEAD"],"wheres":{"view":"(.*)"}},"terms.show":{"uri":"terms-of-service","methods":["GET","HEAD"]},"policy.show":{"uri":"privacy-policy","methods":["GET","HEAD"]},"profile.show":{"uri":"user\/profile","methods":["GET","HEAD"]},"other-browser-sessions.destroy":{"uri":"user\/other-browser-sessions","methods":["DELETE"]},"current-user-photo.destroy":{"uri":"user\/profile-photo","methods":["DELETE"]},"api-tokens.index":{"uri":"user\/api-tokens","methods":["GET","HEAD"]},"api-tokens.store":{"uri":"user\/api-tokens","methods":["POST"]},"api-tokens.update":{"uri":"user\/api-tokens\/{token}","methods":["PUT"]},"api-tokens.destroy":{"uri":"user\/api-tokens\/{token}","methods":["DELETE"]},"teams.create":{"uri":"teams\/create","methods":["GET","HEAD"]},"teams.store":{"uri":"teams","methods":["POST"]},"teams.show":{"uri":"teams\/{team}","methods":["GET","HEAD"],"bindings":{"team":"id"}},"teams.update":{"uri":"teams\/{team}","methods":["PUT"]},"teams.destroy":{"uri":"teams\/{team}","methods":["DELETE"]},"current-team.update":{"uri":"current-team","methods":["PUT"]},"team-members.store":{"uri":"teams\/{team}\/members","methods":["POST"]},"team-members.update":{"uri":"teams\/{team}\/members\/{user}","methods":["PUT"]},"team-members.destroy":{"uri":"teams\/{team}\/members\/{user}","methods":["DELETE"]},"team-invitations.accept":{"uri":"team-invitations\/{invitation}","methods":["GET","HEAD"],"bindings":{"invitation":"id"}},"team-invitations.destroy":{"uri":"team-invitations\/{invitation}","methods":["DELETE"],"bindings":{"invitation":"id"}},"onboard.configs.get":{"uri":"api\/v1\/onboard-configs","methods":["GET","HEAD"]},"site.launchwpadmin.api":{"uri":"api\/v1\/get-auto-login","methods":["GET","HEAD"]},"template.launchsite.api":{"uri":"api\/v1\/template\/launch-site\/{template}","methods":["POST"],"bindings":{"template":"id"}},"template.hostingprovidersite.api":{"uri":"api\/v1\/template\/hosting-provider-site\/{template}\/{random_string}","methods":["POST"],"bindings":{"template":"id"}},"add.mobile.api":{"uri":"api\/v1\/add-mobile","methods":["POST"]},"resend.otp.api":{"uri":"api\/v1\/resend-otp","methods":["POST"]},"verify.otp.api":{"uri":"api\/v1\/verify-otp","methods":["POST"]},"site.migrateguru.api":{"uri":"api\/v1\/site\/migrate-guru\/{site}","methods":["GET","HEAD"],"bindings":{"site":"id"}},"user.configs.get":{"uri":"api\/v1\/configs","methods":["GET","HEAD"]},"user.config.get":{"uri":"api\/v1\/config\/{configuration}","methods":["GET","HEAD"],"bindings":{"configuration":"id"}},"user.config.delete":{"uri":"api\/v1\/config\/{configuration}","methods":["DELETE"],"bindings":{"configuration":"id"}},"user.config.save":{"uri":"api\/v1\/config\/{configuration}","methods":["POST"],"bindings":{"configuration":"id"}},"user.config.duplicate":{"uri":"api\/v1\/config\/duplicate\/{configuration}","methods":["POST"],"bindings":{"configuration":"id"}},"migrates.index":{"uri":"api\/v2\/migrates","methods":["GET","HEAD"]},"migrates.store":{"uri":"api\/v2\/migrates","methods":["POST"]},"migrates.show":{"uri":"api\/v2\/migrates\/{migrate}","methods":["GET","HEAD"],"bindings":{"migrate":"id"}},"migrates.update":{"uri":"api\/v2\/migrates\/{migrate}","methods":["PUT","PATCH"]},"migrates.destroy":{"uri":"api\/v2\/migrates\/{migrate}","methods":["DELETE"]},"sites.index":{"uri":"api\/v2\/sites","methods":["GET","HEAD"]},"sites.show":{"uri":"api\/v2\/sites\/{site}","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.update":{"uri":"api\/v2\/sites\/{site}","methods":["PUT","PATCH"]},"sites.destroy":{"uri":"api\/v2\/sites\/{site}","methods":["DELETE"]},"templates.hosting.providers.create":{"uri":"api\/v2\/templates\/{template}\/hosting-providers\/create","methods":["POST"],"bindings":{"template":"id"}},"templates.hosting.providers.update":{"uri":"api\/v2\/templates\/{template}\/hosting-providers\/{hosting_provider}","methods":["POST"],"bindings":{"template":"id","hosting_provider":"id"}},"templates.index":{"uri":"api\/v2\/templates","methods":["GET","HEAD"]},"templates.store":{"uri":"api\/v2\/templates","methods":["POST"]},"templates.show":{"uri":"api\/v2\/templates\/{template}","methods":["GET","HEAD"]},"templates.update":{"uri":"api\/v2\/templates\/{template}","methods":["PUT","PATCH"],"bindings":{"template":"id"}},"templates.destroy":{"uri":"api\/v2\/templates\/{template}","methods":["DELETE"],"bindings":{"template":"id"}},"ssh-keys.index":{"uri":"api\/v2\/ssh-keys","methods":["GET","HEAD"]},"ssh-keys.store":{"uri":"api\/v2\/ssh-keys","methods":["POST"]},"ssh-keys.destroy":{"uri":"api\/v2\/ssh-keys\/{ssh_key}","methods":["DELETE"]},"commands.index":{"uri":"api\/v2\/commands","methods":["GET","HEAD"]},"commands.store":{"uri":"api\/v2\/commands","methods":["POST"]},"commands.update":{"uri":"api\/v2\/commands\/{command}","methods":["PUT","PATCH"],"bindings":{"command":"id"}},"commands.destroy":{"uri":"api\/v2\/commands\/{command}","methods":["DELETE"],"bindings":{"command":"id"}},"products.index":{"uri":"api\/v2\/{product_type}\/products","methods":["GET","HEAD"]},"products.store":{"uri":"api\/v2\/{product_type}\/products","methods":["POST"]},"products.show":{"uri":"api\/v2\/{product_type}\/products\/{product}","methods":["GET","HEAD"]},"products.update":{"uri":"api\/v2\/{product_type}\/products\/{product}","methods":["PUT","PATCH"]},"products.destroy":{"uri":"api\/v2\/{product_type}\/products\/{product}","methods":["DELETE"]},"orders.index":{"uri":"api\/v2\/orders","methods":["GET","HEAD"]},"orders.show":{"uri":"api\/v2\/orders\/{order}","methods":["GET","HEAD"]},"orders.update":{"uri":"api\/v2\/orders\/{order}","methods":["PUT","PATCH"]},"orders.destroy":{"uri":"api\/v2\/orders\/{order}","methods":["DELETE"]},"payouts.index":{"uri":"api\/v2\/payouts","methods":["GET","HEAD"]},"payouts.store":{"uri":"api\/v2\/payouts","methods":["POST"]},"payouts.show":{"uri":"api\/v2\/payouts\/{payout}","methods":["GET","HEAD"]},"payouts.update":{"uri":"api\/v2\/payouts\/{payout}","methods":["PUT","PATCH"]},"payouts.destroy":{"uri":"api\/v2\/payouts\/{payout}","methods":["DELETE"]},"site-versions.index":{"uri":"api\/v2\/site-versions","methods":["GET","HEAD"]},"site-versions.store":{"uri":"api\/v2\/site-versions","methods":["POST"]},"site-versions.show":{"uri":"api\/v2\/site-versions\/{siteVersion}","methods":["GET","HEAD"],"bindings":{"siteVersion":"id"}},"site-versions.update":{"uri":"api\/v2\/site-versions\/{siteVersion}","methods":["PUT","PATCH"],"bindings":{"siteVersion":"id"}},"wizards.index":{"uri":"api\/v2\/wizards","methods":["GET","HEAD"]},"wizards.store":{"uri":"api\/v2\/wizards","methods":["POST"]},"wizards.show":{"uri":"api\/v2\/wizards\/{wizard}","methods":["GET","HEAD"]},"wizards.update":{"uri":"api\/v2\/wizards\/{wizard}","methods":["PUT","PATCH"],"bindings":{"wizard":"id"}},"wizards.destroy":{"uri":"api\/v2\/wizards\/{wizard}","methods":["DELETE"],"bindings":{"wizard":"id"}},"integrations.index":{"uri":"api\/v2\/integrations","methods":["GET","HEAD"]},"integrations.store":{"uri":"api\/v2\/integrations","methods":["POST"]},"integrations.show":{"uri":"api\/v2\/integrations\/{integration}","methods":["GET","HEAD"],"bindings":{"integration":"id"}},"integrations.update":{"uri":"api\/v2\/integrations\/{integration}","methods":["PUT","PATCH"],"bindings":{"integration":"id"}},"integrations.destroy":{"uri":"api\/v2\/integrations\/{integration}","methods":["DELETE"],"bindings":{"integration":"id"}},"integration-resources.store":{"uri":"api\/v2\/integration-resources","methods":["POST"]},"integration-resources.destroy":{"uri":"api\/v2\/integration-resources\/{integration_resource}","methods":["DELETE"]},"template-shared":{"uri":"template-shared","methods":["GET","HEAD"]},"full-app":{"uri":"full-app","methods":["GET","HEAD"]},"welcome":{"uri":"\/","methods":["GET","HEAD"]},"terms.show.front":{"uri":"terms","methods":["GET","HEAD"]},"social.login":{"uri":"social-login\/{provider}","methods":["GET","HEAD"]},"social.login.callback":{"uri":"social-login\/{provider}\/callback","methods":["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"user.verify.mobile":{"uri":"verify-mobile","methods":["GET","HEAD"]},"site.new":{"uri":"new","methods":["GET","HEAD"]},"site.new.signup":{"uri":"new-site-signup","methods":["GET","HEAD"]},"wordcamp.signup":{"uri":"wordcamp\/{source}","methods":["GET","HEAD"]},"wordcamp.verify":{"uri":"wordcamp\/{source}\/verify","methods":["GET","HEAD"]},"dashboard":{"uri":"dashboard","methods":["GET","HEAD"]},"sites.edit.php.config":{"uri":"sites\/{site}\/php-config","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.install.content":{"uri":"sites\/{site}\/install-content","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.run.commands":{"uri":"sites\/{site}\/run-commands","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.map.domain":{"uri":"sites\/{site}\/map-domain","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.sftp.ssh":{"uri":"sites\/{site}\/sftp-ssh","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.git.deployment":{"uri":"sites\/{site}\/git-deployment","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.performance":{"uri":"sites\/{site}\/performance","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.active.integration":{"uri":"sites\/{site}\/active-integration","methods":["GET","HEAD"],"bindings":{"site":"id"}},"sites.edit.security":{"uri":"sites\/{site}\/security","methods":["GET","HEAD"],"bindings":{"site":"id"}},"add_to_slack":{"uri":"add-to-slack","methods":["GET","HEAD"]},"integrations":{"uri":"integrations","methods":["GET","HEAD"]},"apps":{"uri":"apps","methods":["GET","HEAD"]},"configurations":{"uri":"configurations","methods":["GET","HEAD"]},"deployments":{"uri":"deployments","methods":["GET","HEAD"]},"notifications.index":{"uri":"notifications","methods":["GET","HEAD"]},"ssh-key.index":{"uri":"ssh-key","methods":["GET","HEAD"]},"subscriptions.index":{"uri":"subscriptions","methods":["GET","HEAD"]},"billing-page":{"uri":"billing-page","methods":["GET","HEAD"]},"addon-page":{"uri":"addon-page","methods":["GET","HEAD"]},"white-label-page":{"uri":"white-label-page","methods":["GET","HEAD"]},"payouts.index.page":{"uri":"payouts","methods":["GET","HEAD"]},"payouts.stripe-onboard":{"uri":"payout\/stripe-onboard","methods":["GET","HEAD"]},"referrals.index":{"uri":"referrals","methods":["GET","HEAD"]},"my-purchase":{"uri":"my-purchase","methods":["GET","HEAD"]},"template-sales":{"uri":"template-sales","methods":["GET","HEAD"]},"hosting-sales":{"uri":"hosting-sales","methods":["GET","HEAD"]},"partner-portal":{"uri":"partner-portal","methods":["GET","HEAD"]},"template.edit.setup":{"uri":"template\/{template}\/setup","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.edit.branding":{"uri":"template\/{template}\/branding","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.edit.gallery":{"uri":"template\/{template}\/gallery","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.edit.advance":{"uri":"template\/{template}\/advance","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.edit.migrations":{"uri":"template\/{template}\/migrations","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.stats":{"uri":"template\/{template}\/statistics","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.monetize":{"uri":"template\/{template}\/monetize","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.Graph":{"uri":"template\/{template}\/graph","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.Sites":{"uri":"template\/{template}\/sites","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.sales":{"uri":"template\/{template}\/sales","methods":["GET","HEAD"],"bindings":{"template":"id"}},"template.store.page":{"uri":"template\/{template}\/store","methods":["GET","HEAD"],"bindings":{"template":"id"}},"card.get":{"uri":"card","methods":["GET","HEAD"]},"get.intent.key":{"uri":"get-intent-key","methods":["GET","HEAD"]},"update.default.source":{"uri":"update-default-source","methods":["POST"]},"list.source":{"uri":"list-source","methods":["GET","HEAD"]},"delete.source":{"uri":"delete-source\/{id}","methods":["GET","HEAD"]},"plan_billing.index":{"uri":"plan_billing","methods":["GET","HEAD"]},"site.migrate":{"uri":"sites\/{site}\/migrate","methods":["GET","HEAD"],"bindings":{"site":"id"}},"site.ftp.instruction.get":{"uri":"ftp-instruction\/{site}","methods":["GET","HEAD"],"bindings":{"site":"id"}},"site.ssh.status.update":{"uri":"ssh-update\/{site}","methods":["POST"],"bindings":{"site":"id"}},"site.error.log.get":{"uri":"error-log\/{site}","methods":["GET","HEAD"],"bindings":{"site":"id"}},"site.access.log.get":{"uri":"access-log\/{site}","methods":["GET","HEAD"],"bindings":{"site":"id"}},"site.code.editor.get":{"uri":"code-editor\/{site}","methods":["GET","HEAD"],"bindings":{"site":"id"}},"site.config.update":{"uri":"config-update\/{site}","methods":["POST"],"bindings":{"site":"id"}},"pricing":{"uri":"subscription\/plans","methods":["GET","HEAD"]},"subscription.update":{"uri":"subscription\/plans","methods":["PATCH"]},"subscription.addons":{"uri":"subscription\/addons","methods":["POST"]},"subscription-plan.customize":{"uri":"subscription\/plan\/customize","methods":["GET","HEAD"]},"subscription.verify":{"uri":"subscription\/verify","methods":["GET","HEAD"]},"incomplete.subscription":{"uri":"subscription\/incomplete","methods":["DELETE"]},"card.update":{"uri":"card","methods":["PATCH"]},"subscription.cancel":{"uri":"subscription\/cancel","methods":["GET","HEAD"]},"subscription.destroy":{"uri":"subscription\/cancel","methods":["PUT"]},"subscription.resume":{"uri":"subscription\/resume","methods":["GET","HEAD"]},"subscription.resume.update":{"uri":"subscriptions\/resume","methods":["PUT"]},"invoices.index":{"uri":"invoices","methods":["GET","HEAD"]},"invoices.show":{"uri":"invoices\/{invoice}","methods":["GET","HEAD"]},"invoices.download":{"uri":"invoices\/{invoice}\/download","methods":["GET","HEAD"]},"hosting-subscription.index":{"uri":"hosting-subscriptions","methods":["GET","HEAD"]},"user.billingAddress":{"uri":"user\/billing-address","methods":["GET","HEAD"]},"user.billingAddress.post":{"uri":"user\/billing-address","methods":["POST"]},"user.ssh.key.get":{"uri":"user\/ssh-key","methods":["GET","HEAD"]},"user.ssh.key.add":{"uri":"user\/add-ssh-key","methods":["POST"]},"user.authorization":{"uri":"user-authorization","methods":["GET","HEAD"]},"templates":{"uri":"templates","methods":["GET","HEAD"]},"template.edit":{"uri":"template\/edit\/{slug}","methods":["GET","HEAD"]},"mark-template-as-public":{"uri":"templates\/{template}\/mark-as-public","methods":["POST"]},"public-templates":{"uri":"templates\/public","methods":["GET","HEAD"]},"user-templates":{"uri":"templates\/user","methods":["GET","HEAD"]},"toggle-fav-template":{"uri":"templates\/{template}\/toggle-fav","methods":["PUT"],"bindings":{"template":"id"}},"verify-cname-record":{"uri":"teams\/{team}\/verify-cname-record","methods":["POST"],"bindings":{"team":"id"}},"disconnect-white-label":{"uri":"teams\/{team}\/disconnect-white-label","methods":["DELETE"],"bindings":{"team":"id"}},"team-store-logo.destroy":{"uri":"team\/{team}\/store-logo","methods":["DELETE"]},"team-store-info.update":{"uri":"team\/{team}\/store-information","methods":["PUT"]},"domain-influence.message":{"uri":"domain-influence-message","methods":["GET","HEAD"]},"connects":{"uri":"connects","methods":["GET","HEAD"]},"connects.install-plugins":{"uri":"connects\/{connect}\/install-plugins","methods":["GET","HEAD"],"bindings":{"connect":"id"}},"commands":{"uri":"commands","methods":["GET","HEAD"]},"hosting.connection":{"uri":"hosting-connection","methods":["GET","HEAD"]},"hosting.manager":{"uri":"hosting","methods":["GET","HEAD"]},"wizards-details-page":{"uri":"wizards-old","methods":["GET","HEAD"]},"waas":{"uri":"waas","methods":["GET","HEAD"]},"wizard-purchase-details":{"uri":"purchase-details\/{orderToken}\/{orderGroup}","methods":["GET","HEAD"]},"wizard-page-detail":{"uri":"wizard\/{slug}","methods":["GET","HEAD"]},"migrate-status":{"uri":"migrate\/{uuid}","methods":["GET","HEAD"]},"migrate-logs":{"uri":"migrate-logs\/{uuid}","methods":["GET","HEAD"]},"autologin":{"uri":"wordpress-auto-login","methods":["GET","HEAD"]},"site.launchwpadmin":{"uri":"launch-wp-admin","methods":["GET","HEAD"]},"onboard":{"uri":"onboard","methods":["GET","HEAD"]},"onboard.old":{"uri":"onboard-old","methods":["GET","HEAD"]},"site.launch":{"uri":"launch","methods":["GET","POST","HEAD"]},"site.launch.embed":{"uri":"embed\/launch","methods":["GET","POST","HEAD"]},"onboard.bare.bone":{"uri":"onboard-bare-bone","methods":["GET","HEAD"]},"hosting-design":{"uri":"design20\/hosting","methods":["GET","HEAD"]},"connect-provider-design":{"uri":"design20\/hostings","methods":["GET","HEAD"]},"modal-design":{"uri":"design20\/modal","methods":["GET","HEAD"]},"current-plan-design":{"uri":"design20\/current-plan","methods":["GET","HEAD"]},"permission-dialog-design":{"uri":"design20\/permission-dialog","methods":["GET","HEAD"]},"purchase-complete-design":{"uri":"design20\/purchase-complete","methods":["GET","HEAD"]},"commands-design":{"uri":"design20\/commands","methods":["GET","HEAD"]},"purchase-template":{"uri":"design20\/purchase-template","methods":["GET","HEAD"]},"statistic-template":{"uri":"design20\/statistic-template","methods":["GET","HEAD"]},"design-route":{"uri":"design20","methods":["GET","HEAD"]},"repo":{"uri":"design20\/repo","methods":["GET","HEAD"]},"site":{"uri":"design20\/site","methods":["GET","HEAD"]},"php-config":{"uri":"design20\/php-config","methods":["GET","HEAD"]},"plugin-themes":{"uri":"design20\/plugin-themes","methods":["GET","HEAD"]},"run-command":{"uri":"design20\/run-command","methods":["GET","HEAD"]},"map-domain":{"uri":"design20\/map-domain","methods":["GET","HEAD"]},"sftp-ssh":{"uri":"design20\/sftp-ssh","methods":["GET","HEAD"]},"versions":{"uri":"design20\/versions","methods":["GET","HEAD"]},"setup":{"uri":"design20\/setup","methods":["GET","HEAD"]},"branding":{"uri":"design20\/branding","methods":["GET","HEAD"]},"advance-option":{"uri":"design20\/advance-option","methods":["GET","HEAD"]},"sales":{"uri":"design20\/sales","methods":["GET","HEAD"]},"store":{"uri":"design20\/store","methods":["GET","HEAD"]},"monetize":{"uri":"design20\/monetize","methods":["GET","HEAD"]},"git-deployment":{"uri":"design20\/git-deployment","methods":["GET","HEAD"]},"repo-fav-plugin":{"uri":"design20\/repo-fav-plugin","methods":["GET","HEAD"]},"no-plugin-found":{"uri":"design20\/no-plugin-found","methods":["GET","HEAD"]},"pricing-page":{"uri":"design20\/pricing-page","methods":["GET","HEAD"]},"onboard-page":{"uri":"design20\/onboard-page","methods":["GET","HEAD"]},"wizard-page":{"uri":"design20\/wizard-page","methods":["GET","HEAD"]},"mobile-signup-page":{"uri":"design20\/mobile-signup-page","methods":["GET","HEAD"]},"mobile-verification-page":{"uri":"design20\/mobile-verification-page","methods":["GET","HEAD"]},"wizard-details-page":{"uri":"design20\/wizard-details-page","methods":["GET","HEAD"]},"hosting-manager-design":{"uri":"design20\/hosting-manager-design","methods":["GET","HEAD"]},"hosting-manager-server-design":{"uri":"design20\/hosting-manager-server-design","methods":["GET","HEAD"]},"hosting-manager-details-design":{"uri":"design20\/hosting-manager-details-design","methods":["GET","HEAD"]},"site-dropdown-design":{"uri":"design20\/site-dropdown-design","methods":["GET","HEAD"]},"gallery-design":{"uri":"design20\/gallery-design","methods":["GET","HEAD"]},"wizard-model-page":{"uri":"design20\/wizard-model-page","methods":["GET","HEAD"]},"sand-box":{"uri":"design20\/sand-box","methods":["GET","HEAD"]},"white-label":{"uri":"design20\/white-label","methods":["GET","HEAD"]},"template-details-page":{"uri":"design20\/template-details-page","methods":["GET","HEAD"]},"purchase-details-page":{"uri":"design20\/purchase-details-page","methods":["GET","HEAD"]},"template-store":{"uri":"design20\/template-store","methods":["GET","HEAD"]},"template-view-page":{"uri":"design20\/template-view-page","methods":["GET","HEAD"]},"authors-profile":{"uri":"design20\/authors-profile","methods":["GET","HEAD"]},"specific-company-author":{"uri":"design20\/specific-company-author","methods":["GET","HEAD"]},"dashboard-user":{"uri":"design20\/dashboard-user","methods":["GET","HEAD"]},"buy-modal":{"uri":"design20\/buy-modal","methods":["GET","HEAD"]},"influencer-page":{"uri":"design20\/influencer-page","methods":["GET","HEAD"]},"category-view-page":{"uri":"design20\/category-view-page","methods":["GET","HEAD"]},"shimmer":{"uri":"design20\/shimmer","methods":["GET","HEAD"]},"staging-status-page":{"uri":"design20\/staging-status-page","methods":["GET","HEAD"]},"onboard-flow-page":{"uri":"design20\/onboard-flow-page","methods":["GET","HEAD"]},"authentication-login-page":{"uri":"design20\/authentication-login-page","methods":["GET","HEAD"]},"template-view-page-clone":{"uri":"design20\/template-view-page-clone","methods":["GET","HEAD"]},"astra-template-view-page":{"uri":"design20\/astra-template-view-page","methods":["GET","HEAD"]},"brizy-templates-view-page":{"uri":"design20\/brizy-templates-view-page","methods":["GET","HEAD"]},"iframe-modal-page":{"uri":"design20\/iframe-modal-page","methods":["GET","HEAD"]},"paid-upgrade-modal":{"uri":"design20\/paid-upgrade-modal","methods":["GET","HEAD"]},"free-upgrade-modal":{"uri":"design20\/free-upgrade-modal","methods":["GET","HEAD"]},"template-site":{"uri":"design20\/template-site","methods":["GET","HEAD"]},"paid-user-modal":{"uri":"design20\/paid-user-modal","methods":["GET","HEAD"]},"free-user-modal":{"uri":"design20\/free-user-modal","methods":["GET","HEAD"]},"site-created-modal":{"uri":"design20\/site-created-modal","methods":["GET","HEAD"]},"add.template.uuid":{"uri":"add-uuid-to-template","methods":["GET","HEAD"]},"add.site.uuid":{"uri":"add-uuid-to-site","methods":["GET","HEAD"]},"cache.clear":{"uri":"cache-clear","methods":["GET","HEAD"]},"payment-process":{"uri":"payment-process","methods":["GET","HEAD"]},"remove.unnecessary.waaS.site.list":{"uri":"remove-unnecessary-waaS-site-list","methods":["GET","HEAD"]},"store.index":{"uri":"store\/t","methods":["GET","HEAD"]},"store.item.detail":{"uri":"store\/t\/{slug}","methods":["GET","HEAD"]}}};
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t||self).route=r()}(this,function(){function t(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function r(r,n,e){return n&&t(r.prototype,n),e&&t(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function n(){return n=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},n.apply(this,arguments)}function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},e(t)}function o(t,r){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},o(t,r)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function u(t,r,n){return u=i()?Reflect.construct.bind():function(t,r,n){var e=[null];e.push.apply(e,r);var i=new(Function.bind.apply(t,e));return n&&o(i,n.prototype),i},u.apply(null,arguments)}function f(t){var r="function"==typeof Map?new Map:void 0;return f=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return u(t,arguments,e(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,t)},f(t)}var a=String.prototype.replace,c=/%20/g,l="RFC3986",s={default:l,formatters:{RFC1738:function(t){return a.call(t,c,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:l},p=Object.prototype.hasOwnProperty,v=Array.isArray,y=function(){for(var t=[],r=0;r<256;++r)t.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return t}(),d=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},e=0;e<t.length;++e)void 0!==t[e]&&(n[e]=t[e]);return n},b={arrayToObject:d,assign:function(t,r){return Object.keys(r).reduce(function(t,n){return t[n]=r[n],t},t)},combine:function(t,r){return[].concat(t,r)},compact:function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],e=0;e<r.length;++e)for(var o=r[e],i=o.obj[o.prop],u=Object.keys(i),f=0;f<u.length;++f){var a=u[f],c=i[a];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(r.push({obj:i,prop:a}),n.push(c))}return function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(v(n)){for(var e=[],o=0;o<n.length;++o)void 0!==n[o]&&e.push(n[o]);r.obj[r.prop]=e}}}(r),t},decode:function(t,r,n){var e=t.replace(/\+/g," ");if("iso-8859-1"===n)return e.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(e)}catch(t){return e}},encode:function(t,r,n,e,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var u="",f=0;f<i.length;++f){var a=i.charCodeAt(f);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||o===s.RFC1738&&(40===a||41===a)?u+=i.charAt(f):a<128?u+=y[a]:a<2048?u+=y[192|a>>6]+y[128|63&a]:a<55296||a>=57344?u+=y[224|a>>12]+y[128|a>>6&63]+y[128|63&a]:(a=65536+((1023&a)<<10|1023&i.charCodeAt(f+=1)),u+=y[240|a>>18]+y[128|a>>12&63]+y[128|a>>6&63]+y[128|63&a])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,r){if(v(t)){for(var n=[],e=0;e<t.length;e+=1)n.push(r(t[e]));return n}return r(t)},merge:function t(r,n,e){if(!n)return r;if("object"!=typeof n){if(v(r))r.push(n);else{if(!r||"object"!=typeof r)return[r,n];(e&&(e.plainObjects||e.allowPrototypes)||!p.call(Object.prototype,n))&&(r[n]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(n);var o=r;return v(r)&&!v(n)&&(o=d(r,e)),v(r)&&v(n)?(n.forEach(function(n,o){if(p.call(r,o)){var i=r[o];i&&"object"==typeof i&&n&&"object"==typeof n?r[o]=t(i,n,e):r.push(n)}else r[o]=n}),r):Object.keys(n).reduce(function(r,o){var i=n[o];return r[o]=p.call(r,o)?t(r[o],i,e):i,r},o)}},h=Object.prototype.hasOwnProperty,g={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},m=Array.isArray,j=String.prototype.split,w=Array.prototype.push,O=function(t,r){w.apply(t,m(r)?r:[r])},E=Date.prototype.toISOString,R=s.default,S={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:b.encode,encodeValuesOnly:!1,format:R,formatter:s.formatters[R],indices:!1,serializeDate:function(t){return E.call(t)},skipNulls:!1,strictNullHandling:!1},k=function t(r,n,e,o,i,u,f,a,c,l,s,p,v,y){var d,h=r;if("function"==typeof f?h=f(n,h):h instanceof Date?h=l(h):"comma"===e&&m(h)&&(h=b.maybeMap(h,function(t){return t instanceof Date?l(t):t})),null===h){if(o)return u&&!v?u(n,S.encoder,y,"key",s):n;h=""}if("string"==typeof(d=h)||"number"==typeof d||"boolean"==typeof d||"symbol"==typeof d||"bigint"==typeof d||b.isBuffer(h)){if(u){var g=v?n:u(n,S.encoder,y,"key",s);if("comma"===e&&v){for(var w=j.call(String(h),","),E="",R=0;R<w.length;++R)E+=(0===R?"":",")+p(u(w[R],S.encoder,y,"value",s));return[p(g)+"="+E]}return[p(g)+"="+p(u(h,S.encoder,y,"value",s))]}return[p(n)+"="+p(String(h))]}var k,T=[];if(void 0===h)return T;if("comma"===e&&m(h))k=[{value:h.length>0?h.join(",")||null:void 0}];else if(m(f))k=f;else{var x=Object.keys(h);k=a?x.sort(a):x}for(var C=0;C<k.length;++C){var N=k[C],D="object"==typeof N&&void 0!==N.value?N.value:h[N];if(!i||null!==D){var F=m(h)?"function"==typeof e?e(n,N):n:n+(c?"."+N:"["+N+"]");O(T,t(D,F,e,o,i,u,f,a,c,l,s,p,v,y))}}return T},T=Object.prototype.hasOwnProperty,x=Array.isArray,C={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:b.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},N=function(t){return t.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},D=function(t,r){return t&&"string"==typeof t&&r.comma&&t.indexOf(",")>-1?t.split(","):t},F=function(t,r,n,e){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),f=u?o.slice(0,u.index):o,a=[];if(f){if(!n.plainObjects&&T.call(Object.prototype,f)&&!n.allowPrototypes)return;a.push(f)}for(var c=0;n.depth>0&&null!==(u=i.exec(o))&&c<n.depth;){if(c+=1,!n.plainObjects&&T.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;a.push(u[1])}return u&&a.push("["+o.slice(u.index)+"]"),function(t,r,n,e){for(var o=e?r:D(r,n),i=t.length-1;i>=0;--i){var u,f=t[i];if("[]"===f&&n.parseArrays)u=[].concat(o);else{u=n.plainObjects?Object.create(null):{};var a="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&f!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(u=[])[c]=o:"__proto__"!==a&&(u[a]=o):u={0:o}}o=u}return o}(a,r,n,e)}},$=function(t,r){var n=function(t){if(!t)return C;if(null!=t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");return{allowDots:void 0===t.allowDots?C.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:C.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:C.arrayLimit,charset:void 0===t.charset?C.charset:t.charset,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:C.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:C.comma,decoder:"function"==typeof t.decoder?t.decoder:C.decoder,delimiter:"string"==typeof t.delimiter||b.isRegExp(t.delimiter)?t.delimiter:C.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:C.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:C.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:C.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:C.strictNullHandling}}(r);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var e="string"==typeof t?function(t,r){var n,e={},o=(r.ignoreQueryPrefix?t.replace(/^\?/,""):t).split(r.delimiter,Infinity===r.parameterLimit?void 0:r.parameterLimit),i=-1,u=r.charset;if(r.charsetSentinel)for(n=0;n<o.length;++n)0===o[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===o[n]?u="utf-8":"utf8=%26%2310003%3B"===o[n]&&(u="iso-8859-1"),i=n,n=o.length);for(n=0;n<o.length;++n)if(n!==i){var f,a,c=o[n],l=c.indexOf("]="),s=-1===l?c.indexOf("="):l+1;-1===s?(f=r.decoder(c,C.decoder,u,"key"),a=r.strictNullHandling?null:""):(f=r.decoder(c.slice(0,s),C.decoder,u,"key"),a=b.maybeMap(D(c.slice(s+1),r),function(t){return r.decoder(t,C.decoder,u,"value")})),a&&r.interpretNumericEntities&&"iso-8859-1"===u&&(a=N(a)),c.indexOf("[]=")>-1&&(a=x(a)?[a]:a),e[f]=T.call(e,f)?b.combine(e[f],a):a}return e}(t,n):t,o=n.plainObjects?Object.create(null):{},i=Object.keys(e),u=0;u<i.length;++u){var f=i[u],a=F(f,e[f],n,"string"==typeof t);o=b.merge(o,a,n)}return b.compact(o)},A=/*#__PURE__*/function(){function t(t,r,n){var e,o;this.name=t,this.definition=r,this.bindings=null!=(e=r.bindings)?e:{},this.wheres=null!=(o=r.wheres)?o:{},this.config=n}var n=t.prototype;return n.matchesUrl=function(t){var r=this;if(!this.definition.methods.includes("GET"))return!1;var n=this.template.replace(/(\/?){([^}?]*)(\??)}/g,function(t,n,e,o){var i,u="(?<"+e+">"+((null==(i=r.wheres[e])?void 0:i.replace(/(^\^)|(\$$)/g,""))||"[^/?]+")+")";return o?"("+n+u+")?":""+n+u}).replace(/^\w+:\/\//,""),e=t.replace(/^\w+:\/\//,"").split("?"),o=e[0],i=e[1],u=new RegExp("^"+n+"/?$").exec(o);if(u){for(var f in u.groups)u.groups[f]="string"==typeof u.groups[f]?decodeURIComponent(u.groups[f]):u.groups[f];return{params:u.groups,query:$(i)}}return!1},n.compile=function(t){var r=this,n=this.parameterSegments;return n.length?this.template.replace(/{([^}?]+)(\??)}/g,function(e,o,i){var u,f,a;if(!i&&[null,void 0].includes(t[o]))throw new Error("Ziggy error: '"+o+"' parameter is required for route '"+r.name+"'.");if(n[n.length-1].name===o&&".*"===r.wheres[o])return encodeURIComponent(null!=(a=t[o])?a:"").replace(/%2F/g,"/");if(r.wheres[o]&&!new RegExp("^"+(i?"("+r.wheres[o]+")?":r.wheres[o])+"$").test(null!=(u=t[o])?u:""))throw new Error("Ziggy error: '"+o+"' parameter does not match required format '"+r.wheres[o]+"' for route '"+r.name+"'.");return encodeURIComponent(null!=(f=t[o])?f:"")}).replace(this.origin+"//",this.origin+"/").replace(/\/+$/,""):this.template},r(t,[{key:"template",get:function(){return(this.origin+"/"+this.definition.uri).replace(/\/+$/,"")}},{key:"origin",get:function(){return this.config.absolute?this.definition.domain?""+this.config.url.match(/^\w+:\/\//)[0]+this.definition.domain+(this.config.port?":"+this.config.port:""):this.config.url:""}},{key:"parameterSegments",get:function(){var t,r;return null!=(t=null==(r=this.template.match(/{[^}?]+\??}/g))?void 0:r.map(function(t){return{name:t.replace(/{|\??}/g,""),required:!/\?}$/.test(t)}}))?t:[]}}]),t}(),I=/*#__PURE__*/function(t){var e,i;function u(r,e,o,i){var u;if(void 0===o&&(o=!0),(u=t.call(this)||this).t=null!=i?i:"undefined"!=typeof Ziggy?Ziggy:null==globalThis?void 0:globalThis.Ziggy,u.t=n({},u.t,{absolute:o}),r){if(!u.t.routes[r])throw new Error("Ziggy error: route '"+r+"' is not in the route list.");u.i=new A(r,u.t.routes[r],u.t),u.u=u.l(e)}return u}i=t,(e=u).prototype=Object.create(i.prototype),e.prototype.constructor=e,o(e,i);var f=u.prototype;return f.toString=function(){var t=this,r=Object.keys(this.u).filter(function(r){return!t.i.parameterSegments.some(function(t){return t.name===r})}).filter(function(t){return"_query"!==t}).reduce(function(r,e){var o;return n({},r,((o={})[e]=t.u[e],o))},{});return this.i.compile(this.u)+function(t,r){var n,e=t,o=function(t){if(!t)return S;if(null!=t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var r=t.charset||S.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=s.default;if(void 0!==t.format){if(!h.call(s.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var e=s.formatters[n],o=S.filter;return("function"==typeof t.filter||m(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:S.addQueryPrefix,allowDots:void 0===t.allowDots?S.allowDots:!!t.allowDots,charset:r,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:S.charsetSentinel,delimiter:void 0===t.delimiter?S.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:S.encode,encoder:"function"==typeof t.encoder?t.encoder:S.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:S.encodeValuesOnly,filter:o,format:n,formatter:e,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:S.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:S.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:S.strictNullHandling}}(r);"function"==typeof o.filter?e=(0,o.filter)("",e):m(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof e||null===e)return"";var u=g[r&&r.arrayFormat in g?r.arrayFormat:r&&"indices"in r?r.indices?"indices":"repeat":"indices"];n||(n=Object.keys(e)),o.sort&&n.sort(o.sort);for(var f=0;f<n.length;++f){var a=n[f];o.skipNulls&&null===e[a]||O(i,k(e[a],a,u,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset))}var c=i.join(o.delimiter),l=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&(l+="iso-8859-1"===o.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),c.length>0?l+c:""}(n({},r,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:function(t,r){return"boolean"==typeof t?Number(t):r(t)}})},f.p=function(t){var r=this;t?this.t.absolute&&t.startsWith("/")&&(t=this.v().host+t):t=this.h();var e={},o=Object.entries(this.t.routes).find(function(n){return e=new A(n[0],n[1],r.t).matchesUrl(t)})||[void 0,void 0];return n({name:o[0]},e,{route:o[1]})},f.h=function(){var t=this.v(),r=t.pathname,n=t.search;return(this.t.absolute?t.host+r:r.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+n},f.current=function(t,r){var e=this.p(),o=e.name,i=e.params,u=e.query,f=e.route;if(!t)return o;var a=new RegExp("^"+t.replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(o);if([null,void 0].includes(r)||!a)return a;var c=new A(o,f,this.t);r=this.l(r,c);var l=n({},i,u);return!(!Object.values(r).every(function(t){return!t})||Object.values(l).some(function(t){return void 0!==t}))||Object.entries(r).every(function(t){return l[t[0]]==t[1]})},f.v=function(){var t,r,n,e,o,i,u="undefined"!=typeof window?window.location:{},f=u.host,a=u.pathname,c=u.search;return{host:null!=(t=null==(r=this.t.location)?void 0:r.host)?t:void 0===f?"":f,pathname:null!=(n=null==(e=this.t.location)?void 0:e.pathname)?n:void 0===a?"":a,search:null!=(o=null==(i=this.t.location)?void 0:i.search)?o:void 0===c?"":c}},f.has=function(t){return Object.keys(this.t.routes).includes(t)},f.l=function(t,r){var e=this;void 0===t&&(t={}),void 0===r&&(r=this.i),null!=t||(t={}),t=["string","number"].includes(typeof t)?[t]:t;var o=r.parameterSegments.filter(function(t){return!e.t.defaults[t.name]});if(Array.isArray(t))t=t.reduce(function(t,r,e){var i,u;return n({},t,o[e]?((i={})[o[e].name]=r,i):"object"==typeof r?r:((u={})[r]="",u))},{});else if(1===o.length&&!t[o[0].name]&&(t.hasOwnProperty(Object.values(r.bindings)[0])||t.hasOwnProperty("id"))){var i;(i={})[o[0].name]=t,t=i}return n({},this.g(r),this.m(t,r))},f.g=function(t){var r=this;return t.parameterSegments.filter(function(t){return r.t.defaults[t.name]}).reduce(function(t,e,o){var i,u=e.name;return n({},t,((i={})[u]=r.t.defaults[u],i))},{})},f.m=function(t,r){var e=r.bindings,o=r.parameterSegments;return Object.entries(t).reduce(function(t,r){var i,u,f=r[0],a=r[1];if(!a||"object"!=typeof a||Array.isArray(a)||!o.some(function(t){return t.name===f}))return n({},t,((u={})[f]=a,u));if(!a.hasOwnProperty(e[f])){if(!a.hasOwnProperty("id"))throw new Error("Ziggy error: object passed as '"+f+"' parameter is missing route model binding key '"+e[f]+"'.");e[f]="id"}return n({},t,((i={})[f]=a[e[f]],i))},{})},f.valueOf=function(){return this.toString()},f.check=function(t){return this.has(t)},r(u,[{key:"params",get:function(){var t=this.p();return n({},t.params,t.query)}}]),u}(/*#__PURE__*/f(String));return function(t,r,n,e){var o=new I(t,r,n,e);return t?o.toString():o}});
</script> <link rel="modulepreload" href="https://cdn.instawp.io/build/assets/en.bbed3ea2.js" /><script type="module" src="https://cdn.instawp.io/build/assets/en.bbed3ea2.js"></script> <link rel="modulepreload" href="https://cdn.instawp.io/build/assets/onboard.0751c576.js" /><link rel="modulepreload" href="https://cdn.instawp.io/build/assets/ReCaptchaVuePlugin.6d1bce21.js" /><link rel="modulepreload" href="https://cdn.instawp.io/build/assets/NotificationLayout.aed327bf.js" /><link rel="modulepreload" href="https://cdn.instawp.io/build/assets/tooltip.422eb931.js" /><link rel="modulepreload" href="https://cdn.instawp.io/build/assets/onboard.0c4b97dd.js" /><script type="module" src="https://cdn.instawp.io/build/assets/onboard.0751c576.js"></script>
<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-KDBM83H');</script>
<!-- End Google Tag Manager -->
<script>(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');</script>
<script async src='https://r.wdfl.co/rw.js' data-rewardful='5fc350'></script>
<script src="https://unpkg.com/flowbite@1.3.4/dist/flowbite.js"></script>
</head>
<body class="font-sans antialiased">
<div id="app" data-page="{&quot;component&quot;:&quot;Onboard\/Index&quot;,&quot;props&quot;:{&quot;FRILL_KEY&quot;:&quot;1dfe86ee-9387-4c3f-9fa1-425dace3d03b&quot;,&quot;jetstream&quot;:{&quot;canCreateTeams&quot;:false,&quot;canManageTwoFactorAuthentication&quot;:true,&quot;canUpdatePassword&quot;:true,&quot;canUpdateProfileInformation&quot;:true,&quot;hasEmailVerification&quot;:true,&quot;flash&quot;:[],&quot;hasAccountDeletionFeatures&quot;:false,&quot;hasApiFeatures&quot;:true,&quot;hasTeamFeatures&quot;:true,&quot;hasTermsAndPrivacyPolicyFeature&quot;:true,&quot;managesProfilePhotos&q
Error: Process completed with exit code 1.
import { createMultipleSites } from "./utility/utility.js";
async function main() {
const sitesCreated = createMultipleSites(10);
console.log("Sites created: ", sitesCreated);
}
main();
import path from "path";
import { fileURLToPath } from "url";
import fs from "fs";
import fsp from "node:fs/promises";
import fetch from "node-fetch";
import { nanoid } from "nanoid";
import { hostname } from "os";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const INSTAWP_KEY = <add key here>;
const header = {
Authorization: `Bearer ${INSTAWP_KEY}`,
"Content-Type": "application/json",
};
export async function createNewSite(name) {
const apiUrl = "https://app.instawp.io/api/v2/sites";
const requestOptions = {
method: "POST",
headers: header,
body: JSON.stringify({
site_name: name,
}),
};
try {
const response = await fetch(apiUrl, requestOptions);
const contentType = response.headers.get("content-type");
if (!contentType || !contentType.includes("application/json")) {
console.log("Received non-JSON response:", response);
const responseText = await response.text();
console.log("Received non-JSON response (text):", responseText);
}
const data = await response.json();
return data;
} catch (error) {
console.error("Error creating site:", error);
process.exit(1);
}
}
// Used for testing purposes.
export async function createMultipleSites(numOfSites) {
const createdSites = [];
for (let i = 0; i <= numOfSites; i++) {
console.log(`Attempting to create site ${i + 1} of ${numOfSites}...`);
// STEP 1: Create a new InstaWP site
const siteName = getNewSiteName(1234);
console.log("Site name: ", siteName);
const newSite = await createNewSite(siteName);
console.log("New site created: ", newSite);
if (!newSite || !newSite.data.task_id) {
console.error("Failed to create a new site");
return;
}
// STEP 2: Wait several seconds for site to initialize
await new Promise((resolve) => setTimeout(resolve, 7000));
// STEP 3: Check the initial status of the site creation task
const taskId = newSite.data.task_id;
let taskStatus = await checkTaskStatus(taskId);
console.log("Task Status (initial):", taskStatus);
// STEP 4: If not ready, keep checking task status until site creation completed
let tries = 1;
while (taskStatus && taskStatus.data.status !== "completed") {
await new Promise((resolve) => setTimeout(resolve, 5000)); // Wait for 5 seconds before checking again
taskStatus = await checkTaskStatus(taskId);
tries++;
console.log("Task Status (loop):", taskStatus, tries);
if (tries > 50) {
console.error(`Site creation failed to complete after ${tries} tries.`);
process.exit(1);
}
}
createdSites.push(newSite.data.task_id);
}
return createdSites;
}
export async function checkTaskStatus(taskId) {
const apiUrl = `https://app.instawp.io/api/v2/tasks/${taskId}/status`;
const requestOptions = { method: "GET", headers: header };
try {
const response = await fetch(apiUrl, requestOptions);
const data = await response.json();
return data;
} catch (error) {
console.error("Error checking task status:", error);
return null;
}
}
function getNewSiteName(pluginId) {
const id = nanoid(10);
id.replace(/_/g, "");
const siteName = `${pluginId}-test-${id}`;
return siteName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment