@saasquatch/mint-components 1.3.2-10 → 1.3.2-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-d2fde0a2.js → ShadowViewAddon-a85b8c8d.js} +1 -1
- package/dist/cjs/{global-e04d7cde.js → global-6223fe8f.js} +4 -1
- package/dist/cjs/{index.module-07ed6ad2.js → index.module-7dd4b981.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{re-render-81649c33.js → re-render-6111d4bd.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/sqm-divided-layout_30.cjs.entry.js +74 -50
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-leaderboard-rank-view-0ba128e2.js → sqm-leaderboard-rank-view-7dd44d62.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
- package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-0bad789c.js → sqm-navigation-sidebar-item-view-6c7f78e6.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-3c7d8701.js → sqm-portal-email-verification-view-08d1848c.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-footer-view-8f5d682e.js → sqm-portal-footer-view-69c73802.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-14866b58.js → sqm-portal-profile-view-14b41436.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
- package/dist/cjs/{useDemoBigStat-1692a6a1.js → useDemoBigStat-2786227e.js} +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +8 -7
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +55 -15
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +6 -0
- package/dist/collection/global/styles.js +3 -0
- package/dist/collection/global/styles.ts +3 -0
- package/dist/esm/{ShadowViewAddon-aa087ef2.js → ShadowViewAddon-a3f510db.js} +1 -1
- package/dist/esm/{global-107bb084.js → global-90da933f.js} +4 -1
- package/dist/esm/{index.module-1f571929.js → index.module-90d2c3ad.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{re-render-76c9129f.js → re-render-e06f2f7f.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/sqm-divided-layout_30.entry.js +74 -50
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/{sqm-leaderboard-rank-view-c1aefdd5.js → sqm-leaderboard-rank-view-47844836.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-b3618185.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-df0559b0.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-footer-view-2b2bfc9e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-2fbb0845.js → sqm-portal-profile-view-b67467b4.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +1 -1
- package/dist/esm/{useDemoBigStat-49cdfe32.js → useDemoBigStat-c3b955b7.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-aa087ef2.js → ShadowViewAddon-a3f510db.js} +1 -1
- package/dist/esm-es5/{global-107bb084.js → global-90da933f.js} +2 -2
- package/dist/esm-es5/{index.module-1f571929.js → index.module-90d2c3ad.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-76c9129f.js → re-render-e06f2f7f.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-c1aefdd5.js → sqm-leaderboard-rank-view-47844836.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-b3618185.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-df0559b0.js → sqm-portal-email-verification-view-8cefe480.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-2b2bfc9e.js → sqm-portal-footer-view-d9fe0bf8.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-2fbb0845.js → sqm-portal-profile-view-b67467b4.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/{useDemoBigStat-49cdfe32.js → useDemoBigStat-c3b955b7.js} +1 -1
- package/dist/mint-components/global/styles.ts +3 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-22ee65c4.system.js → p-07c924fa.system.js} +1 -1
- package/dist/mint-components/{p-3fd9db63.js → p-0eb3e89c.js} +1 -1
- package/dist/mint-components/{p-0f19ab40.entry.js → p-160bd62f.entry.js} +1 -1
- package/dist/mint-components/{p-bf10c781.system.js → p-16f5a7cb.system.js} +1 -1
- package/dist/mint-components/{p-62b134cb.system.entry.js → p-1a09e4e1.system.entry.js} +1 -1
- package/dist/mint-components/p-1c8b0290.entry.js +1 -0
- package/dist/mint-components/{p-57568b23.system.entry.js → p-1dcdca58.system.entry.js} +1 -1
- package/dist/mint-components/p-20d41ab1.entry.js +1 -0
- package/dist/mint-components/{p-3bbc61af.entry.js → p-221a4097.entry.js} +1 -1
- package/dist/mint-components/{p-f0cbf76e.system.entry.js → p-223b42bd.system.entry.js} +1 -1
- package/dist/mint-components/{p-ab378185.js → p-224504ad.js} +1 -1
- package/dist/mint-components/{p-2b9a01ce.system.entry.js → p-24b3c6f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-dbc04567.system.entry.js → p-24c9a599.system.entry.js} +1 -1
- package/dist/mint-components/{p-c61c61e7.entry.js → p-29fab29b.entry.js} +1 -1
- package/dist/mint-components/{p-64299f78.system.entry.js → p-304e6c82.system.entry.js} +1 -1
- package/dist/mint-components/{p-c974b7d4.entry.js → p-3397167c.entry.js} +1 -1
- package/dist/mint-components/{p-beb02af2.entry.js → p-33c5ffb7.entry.js} +1 -1
- package/dist/mint-components/{p-bcb30771.system.entry.js → p-396bf448.system.entry.js} +1 -1
- package/dist/mint-components/{p-a48fc54e.system.js → p-3b97aed8.system.js} +1 -1
- package/dist/mint-components/{p-5e681b4b.system.js → p-3ce2fb83.system.js} +1 -1
- package/dist/mint-components/{p-57aa7493.entry.js → p-3d856985.entry.js} +1 -1
- package/dist/mint-components/{p-fc90a3fe.system.entry.js → p-4052b948.system.entry.js} +1 -1
- package/dist/mint-components/{p-03b7444e.system.entry.js → p-412a9226.system.entry.js} +1 -1
- package/dist/mint-components/{p-9ca6142b.system.entry.js → p-44d0fc80.system.entry.js} +1 -1
- package/dist/mint-components/{p-b0e9c89c.entry.js → p-45c752a0.entry.js} +1 -1
- package/dist/mint-components/{p-d73d26ec.js → p-46a4269a.js} +2 -2
- package/dist/mint-components/{p-874e7da3.entry.js → p-52802c88.entry.js} +1 -1
- package/dist/mint-components/{p-f0ad9b15.entry.js → p-5480e4ee.entry.js} +1 -1
- package/dist/mint-components/{p-75924795.system.entry.js → p-55508395.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7e2418a.js → p-563253e8.js} +1 -1
- package/dist/mint-components/{p-8155cd07.system.js → p-60855d33.system.js} +1 -1
- package/dist/mint-components/{p-0ca63e9e.system.entry.js → p-67ae18d1.system.entry.js} +1 -1
- package/dist/mint-components/{p-4ae9f594.js → p-6882070c.js} +1 -1
- package/dist/mint-components/{p-123930ab.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
- package/dist/mint-components/{p-e01213a2.system.entry.js → p-6bf0a4d9.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ddd6063.system.entry.js → p-6e245fa3.system.entry.js} +1 -1
- package/dist/mint-components/{p-d1e28563.entry.js → p-723ebe45.entry.js} +1 -1
- package/dist/mint-components/{p-8ac0ec83.system.entry.js → p-73148868.system.entry.js} +1 -1
- package/dist/mint-components/{p-b0c6f82b.entry.js → p-8435a22d.entry.js} +1 -1
- package/dist/mint-components/p-883a32e7.entry.js +1 -0
- package/dist/mint-components/{p-719c2664.system.js → p-9c554ca0.system.js} +1 -1
- package/dist/mint-components/{p-de0efef2.entry.js → p-9d6dbb2d.entry.js} +1 -1
- package/dist/mint-components/{p-c0e8aaa7.system.entry.js → p-9e4fee30.system.entry.js} +1 -1
- package/dist/mint-components/{p-70008004.js → p-a2c3cff3.js} +1 -1
- package/dist/mint-components/{p-3b9492a8.entry.js → p-a4c2c7ed.entry.js} +1 -1
- package/dist/mint-components/{p-d44e98b8.system.js → p-a6094ff9.system.js} +1 -1
- package/dist/mint-components/{p-f2db1c3b.entry.js → p-ade44a4e.entry.js} +1 -1
- package/dist/mint-components/{p-d37f227e.entry.js → p-b1bb07db.entry.js} +1 -1
- package/dist/mint-components/p-b47179b8.system.entry.js +1 -0
- package/dist/mint-components/{p-beeeda0c.system.js → p-b608f7a4.system.js} +2 -2
- package/dist/mint-components/{p-cbf1db2b.entry.js → p-b8bd2607.entry.js} +1 -1
- package/dist/mint-components/{p-86a55c58.system.entry.js → p-be2738b0.system.entry.js} +1 -1
- package/dist/mint-components/{p-0470556b.system.js → p-c6114bfe.system.js} +1 -1
- package/dist/mint-components/{p-70a6f9d9.system.entry.js → p-c79c608d.system.entry.js} +1 -1
- package/dist/mint-components/{p-f538a675.system.entry.js → p-cca9026f.system.entry.js} +1 -1
- package/dist/mint-components/p-cd410a05.entry.js +9 -0
- package/dist/mint-components/{p-bdfdb088.system.js → p-cdeae699.system.js} +1 -1
- package/dist/mint-components/{p-c35b54e4.system.entry.js → p-d174d0bc.system.entry.js} +1 -1
- package/dist/mint-components/p-d21e0dbd.js +1 -0
- package/dist/mint-components/{p-59fa991d.entry.js → p-d2e71fe0.entry.js} +10 -10
- package/dist/mint-components/{p-f8abbd79.js → p-d35b0366.js} +1 -1
- package/dist/mint-components/{p-a37fc3cb.js → p-db2e4c42.js} +1 -1
- package/dist/mint-components/p-dc603d08.system.entry.js +1 -0
- package/dist/mint-components/{p-91b0d151.system.js → p-e7f633b9.system.js} +1 -1
- package/dist/mint-components/{p-b3bac2c6.entry.js → p-f17050de.entry.js} +1 -1
- package/dist/mint-components/{p-ac92b5ea.js → p-f90486ca.js} +1 -1
- package/dist/mint-components/p-fce1dbf6.entry.js +1 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/global/styles.d.ts +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-20991bdd.system.entry.js +0 -1
- package/dist/mint-components/p-458070cf.js +0 -1
- package/dist/mint-components/p-5986de11.entry.js +0 -1
- package/dist/mint-components/p-5a1a2b2c.entry.js +0 -1
- package/dist/mint-components/p-6466d643.entry.js +0 -1
- package/dist/mint-components/p-a26457cd.entry.js +0 -1
- package/dist/mint-components/p-dacbf435.entry.js +0 -9
- package/dist/mint-components/p-e2a855b8.system.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e as s,f as o,n as l,y as d,b as u,u as c,c as m,a as p,k as h}from"./p-44578b22.js";import{i as f,a as g}from"./p-
|
|
1
|
+
import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e as s,f as o,n as l,y as d,b as u,u as c,c as m,a as p,k as h}from"./p-44578b22.js";import{i as f,a as g}from"./p-46a4269a.js";import{u as b}from"./p-ba505a8c.js";import{d as v,T as y,e as w,b as $,j as x,Z as q,r as C,D,q as E,P as k,E as A,M as S,a as T,c as F,x as R,f as P,L as I,N as B,A as N}from"./p-a2c3cff3.js";import{j as O}from"./p-e7e129ac.js";import{j as L,c as M}from"./p-db5a1e78.js";import{g as j,a as _}from"./p-fb1b6fdf.js";import{c as V}from"./p-c1086930.js";import{E as G,H,A as W,a as z,b as U,g as Z}from"./p-26f627aa.js";import{P as J}from"./p-ebcd8a59.js";import{P as X}from"./p-e426715b.js";import{T as Y}from"./p-9b4f2af6.js";import{g as Q,L as K}from"./p-d21e0dbd.js";import{u as ee,a as te}from"./p-224504ad.js";import{p as re,B as ne,u as ae,a as ie}from"./p-f90486ca.js";import{S as se}from"./p-412d31b1.js";import{L as oe,u as le,S as de}from"./p-563253e8.js";import{N as ue}from"./p-99f1208f.js";import{N as ce}from"./p-d35b0366.js";import{S as me}from"./p-952ed169.js";import{P as pe}from"./p-db2e4c42.js";import{P as he}from"./p-fee6801c.js";import{P as fe}from"./p-0eb3e89c.js";import{P as ge}from"./p-bd903567.js";import{P as be}from"./p-a8b913a8.js";import{A as ve}from"./p-509dda90.js";import{P as ye,a as we}from"./p-6882070c.js";import{H as $e}from"./p-739b3032.js";import{N as xe}from"./p-282ed862.js";function qe(t,r){const n=()=>"row"===t.direction?{"border-right":t.dividerStyle||"1px solid #EAEAEA"}:{"border-bottom":t.dividerStyle||"1px solid #EAEAEA"},a={LayoutContainer:{display:"contents","& > :not(:last-child)":{...n()},"& > ::slotted(*:not(:last-child))":{...n()}}},i=`\n display: flex;\n flex: 1;\n flex-direction: ${t.direction};\n background-color: var(--sqm-content-background);\n ${"column"===t.direction?"width: 100%; max-width: var(--sqm-portal-main-width);":""}\n `,s=`\n :host{\n ${i}\n }\n sqm-divided-layout {\n ${i}\n }\n `;L.setup(M());const o=L.createStyleSheet(a),l=o.toString();return e("div",{class:o.classes.LayoutContainer},e("style",{type:"text/css"},s,l),r)}const Ce=class{constructor(e){t(this,e),this.dividerStyle="1px solid #EAEAEA",a(this)}disconnectedCallback(){}render(){return e(qe,Object.assign({},j(this)),e("slot",null))}},De=t=>{var r,n,a,i;const{states:s,callbacks:o}=t,{text:l}=s,{errors:d}=s.formState;return s.showEdit?e("div",{class:`CardWrapper ${!s.showEdit&&"ShowEdit"}`},e("h2",{style:{fontSize:"var(--sl-font-size-x-large)",margin:"0px",textAlign:"center"}},l.editprofileheader),e("form",{class:"FormWrapper",onSubmit:o.onSubmit},e("div",{class:"FormSection"},s.formState.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.formState.error)),e("sl-input",Object.assign({exportparts:"label: input-label",value:s.formState.firstName,onInput:o.onChange,label:l.firstnametext,disabled:s.loading},d.firstName&&"valid"!==d.firstName.status?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:d.firstName&&"valid"!==d.firstName.status?d.firstName.message:void 0})),e("sl-input",Object.assign({exportparts:"label: input-label",value:s.formState.lastName,onInput:o.onChange,label:l.lastnametext,disabled:s.loading,id:"lastName",name:"lastName"},d.lastName&&"valid"!==d.lastName.status?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:d.lastName&&"valid"!==d.lastName.status?d.lastName.message:void 0}))),l.showregion&&s.formState.currentRegion&&e("sl-input",{exportparts:"label: input-label",disabled:!0,value:s.formState.currentRegion,label:l.currentregiontext,id:"currentRegion",name:"currentRegion"}),e("div",{class:"ButtonWrapper"},e("sl-button",{onClick:()=>{o.setShowEdit(!1)},exportparts:"base: defaultbutton-base"},l.canceltext),e("sl-button",{type:"primary",loading:s.loading,disabled:s.submitDisabled,onClick:e=>{o.onSubmit(e)},submit:!0,exportparts:"base: primarybutton-base"},l.updatetext)))):e("div",{class:`CardWrapper FormWrapper ${!s.showEdit&&"ShowEdit"}`},e("div",{class:"FormSection"},e("h2",{style:{fontSize:"var(--sl-font-size-x-large",marginBottom:"0px",textAlign:"center"}},l.editprofileheader),e("div",null,e("p",{style:{fontSize:"var(--sl-font-size-medium)"}},null===(r=s.user)||void 0===r?void 0:r.firstName," ",null===(n=s.user)||void 0===n?void 0:n.lastName),e("p",{style:{fontSize:"var(--sl-font-size-medium)"},title:null===(a=s.user)||void 0===a?void 0:a.email},null===(i=s.user)||void 0===i?void 0:i.email))),e("sl-button",{type:"primary",loading:s.loading,onClick:()=>{o.resetForm(),o.setShowEdit(!0)},exportparts:"base: primarybutton-base"},l.editprofiletext))},Ee=v.gql`
|
|
2
2
|
query {
|
|
3
3
|
viewer {
|
|
4
4
|
... on User {
|
|
@@ -30,7 +30,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
30
30
|
lastName
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,Ae={currentRegion:"",firstName:"",lastName:"",errors:{},error:""},Se=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=x()?function(e){return V({states:{loading:!1,submitDisabled:!1,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:!1,text:{editprofileheader:e.editprofileheader?e.editprofileheader:"Edit Profile",editprofiletext:e.editprofiletext?e.editprofiletext:"Update your profile.",firstnametext:e.firstnametext?e.firstnametext:"First Name",lastnametext:e.lastnametext?e.lastnametext:"Last Name",canceltext:e.canceltext?e.canceltext:"Cancel",updatetext:e.updatetext?e.updatetext:"Update",currentregiontext:e.currentregiontext?e.currentregiontext:"Region",showregion:!0}},callbacks:{onSubmit:e=>{console.log(e)},resetForm:()=>{console.log("reset")},onChange:()=>{console.log("change")},setShowEdit:e=>{console.log(e)}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(j(this)):function(e){const t=y(),[r,n]=i(!1),[a,o]=i(""),[l,d]=i(void 0),[u,c]=i(Ae),m=w(Ee,{},!(null==t?void 0:t.jwt)),[p,h]=$(ke);return s((()=>{!(null==h?void 0:h.loading)&&r&&((null==h?void 0:h.errors)?c((e=>{var t,r,n;return{...e,error:null===(n=null===(r=null===(t=null==h?void 0:h.errors)||void 0===t?void 0:t.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0].message}})):(d((e=>{var t;return{...e,...null===(t=null==h?void 0:h.data)||void 0===t?void 0:t.upsertUser}})),n(!1)))}),[null==h?void 0:h.loading]),s((()=>{d((e=>{var t;return{...e,...null===(t=null==m?void 0:m.data)||void 0===t?void 0:t.viewer}}))}),[null==m?void 0:m.data]),s((()=>{var e;(null===(e=null==h?void 0:h.errors)||void 0===e?void 0:e.message)&&c((e=>({...e,error:"Network request failed."})))}),[null==h?void 0:h.errors]),{states:{loading:(null==m?void 0:m.loading)||h.loading,submitDisabled:!1,formState:u,user:l,showEdit:r,text:{editprofileheader:e.editprofileheader,editprofiletext:e.editprofiletext,firstnametext:e.firstnametext,lastnametext:e.lastnametext,canceltext:e.canceltext,updatetext:e.updatetext,currentregiontext:e.currentregiontext,showregion:e.showregion}},callbacks:{onSubmit:()=>{if(u.firstName&&u.lastName)return p({id:null==t?void 0:t.id,accountId:null==t?void 0:t.accountId,firstName:u.firstName,lastName:u.lastName}),void c((e=>({...e,errors:{}})));const e={};u.firstName||(e.firstName={message:"Field can't be empty"}),u.lastName||(e.lastName={message:"Field can't be empty"}),e!=={}&&c((e=>({...e,error:"Please correct the errors below to update your profile."}))),c((t=>({...t,errors:e})))},resetForm:()=>{var e,t,r,n,a,i;const s=(null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.viewer)||void 0===t?void 0:t.countryCode)?f.formatDisplayName(m.data.viewer.countryCode,{type:"region"}):"";d({...null===(r=m.data)||void 0===r?void 0:r.viewer,...null===(n=h.data)||void 0===n?void 0:n.upsertUser}),c({...Ae,...null===(a=m.data)||void 0===a?void 0:a.viewer,...null===(i=h.data)||void 0===i?void 0:i.upsertUser,currentRegion:s})},onChange:e=>{const{name:t,value:r}=e.target;c((e=>({...e,[t]:r})))},setShowEdit:n}}}(j(this));return e(De,Object.assign({},t))}};Se.style=".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";const Te=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){return"error"===this.type?e("sl-alert",{exportparts:"base: erroralert-base, icon:erroralert-icon",class:"Error",type:"danger",open:!0},e("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"exclamation-octagon"}`}),e("slot",null)):"info"===this.type?e("sl-alert",{exportparts:"base: infoalert-base, icon:infoalert-icon",class:"Info",type:"primary",open:!0},e("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"info-circle"}`}),e("slot",null)):e("sl-alert",{exportparts:"base: successalert-base, icon:successalert-icon",class:"Success",type:"success",open:!0},e("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"check2-circle"}`}),e("slot",null))}};Te.style="sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";const Fe=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){return e(this.hookStory,null)}};function Re(t){const{states:r}=t,{styles:n}=r;return r.includeDropdown?e("sl-dropdown",{style:"margin-bottom: var(--sl-spacing-large)"},e("sl-button",{slot:"trigger",caret:!0,onClick:t.callbacks.rerender,exportparts:"base: dropdownbutton-base"},n.menuLabel),e("sl-menu",{ref:e=>{void 0===t.ref.current&&(t.ref.current=e,t.callbacks.rerender())}},e("slot",null))):""}const Pe=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=x()?function(e){return V({states:{includeDropdown:!0,styles:{...e,menuLabel:"Menu"}},callbacks:{rerender:()=>{}},ref:{current:void 0}},e.demoData||{},{arrayMerge:(e,t)=>t})}(j(this)):function(e){const t=o(),[,r]=q(),n=y();return s((()=>{var e;null===(e=t.current)||void 0===e||e.addEventListener("sl-select",(e=>function(e){C.push(e.detail.item.value)}(e)))}),[t.current]),{states:{includeDropdown:void 0!==((null==n?void 0:n.id)||(null==n?void 0:n.accountId)||(null==n?void 0:n.jwt)),styles:{menuLabel:e.menuLabel}},callbacks:{rerender:r},ref:t}}(j(this));return e(r,{slot:"sqm-navigation-menu"},e(Re,Object.assign({},t)))}};Pe.style=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";var Ie="(\\d.*)",Be="([a-zA-Z].*)",Ne="([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",Le="([\\s].*)";function Oe(e,t){if(t&&t>1){const r=parseInt(t,10);return new RegExp(e+"{"+r+",}").test(this.password)===this.positive}return new RegExp(e).test(this.password)===this.positive}var Me={not:function(e){return this.positive=!1,!e||Oe.call(this,e)},has:function(e){return this.positive=!0,!e||Oe.call(this,e)},is:function(){return this.positive=!0,!0},min:function(e){return this.password.length>=e},max:function(e){return this.password.length<=e},digits:function(e){return Oe.call(this,Ie,e)},letters:function(e){return Oe.call(this,Be,e)},uppercase:function(e){if(e&&e>1){let t=0,r=0;for(;r<e&&t<this.password.length;){const e=this.password.charAt(t);e!==e.toLowerCase()&&r++,t++}return r===e===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function(e){if(e&&e>1){let t=0,r=0;for(;r<e&&t<this.password.length;){const e=this.password.charAt(t);e!==e.toUpperCase()&&r++,t++}return r===e===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function(e){return Oe.call(this,Ne,e)},spaces:function(e){return Oe.call(this,Le,e)},oneOf:function(e){return e.indexOf(this.password)>=0===this.positive}},je="Length should be a valid positive number";function _e(e){const t=Number(e);if(isNaN(t)||!Number.isInteger(t)||t<1)throw new Error(je)}function Ve(e){return Me[e.method].apply(this,e.arguments)}function Ge(e,t){return this.properties.push({method:e,arguments:t}),this}const He=(new class{constructor(){this.properties=[]}validate(e,t){return this.list=Boolean(t&&t.list),this.password=String(e),this.positive=!0,this.list?this.properties.reduce(((e,t)=>Ve.call(this,t)?e:e.concat(t.method)),[]):this.properties.every(Ve.bind(this))}letters(e){return e&&_e(e),Ge.call(this,"letters",arguments)}digits(e){return e&&_e(e),Ge.call(this,"digits",arguments)}symbols(e){return e&&_e(e),Ge.call(this,"symbols",arguments)}min(e){return _e(e),Ge.call(this,"min",arguments)}max(e){return _e(e),Ge.call(this,"max",arguments)}lowercase(e){return e&&_e(e),Ge.call(this,"lowercase",arguments)}uppercase(e){return e&&_e(e),Ge.call(this,"uppercase",arguments)}spaces(e){return e&&_e(e),Ge.call(this,"spaces",arguments)}has(){return Ge.call(this,"has",arguments)}not(){return Ge.call(this,"not",arguments)}is(){return Ge.call(this,"is",arguments)}oneOf(){return Ge.call(this,"oneOf",arguments)}}).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/),We=e=>{const t=He.validate(e,{list:!0});return Ke(t,e)},ze=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"})),Ue=()=>e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"})),Ze={min:"be a minimum of 8 characters",uppercase:"contain at least 1 uppercase character",lowercase:"contain at least 1 lowercase character",has:"contain at least 1 number or symbol"},Je={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},Xe={Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:{...Je,color:"var(--sl-color-success-600)"},ValidationItemInvalid:{...Je}};O.setup(M());const Ye=O.createStyleSheet(Xe),Qe=Ye.toString(),Ke=(t,r)=>!t.length&&r?e("div",{class:Ye.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},e("style",{type:"text/css"},Qe),e(ze,null)," ",e("span",null,"Password has met all requirements")):e("div",{class:Ye.classes.Base},e("style",{type:"text/css"},Qe),"Password must meet the following requirements:",e("ul",{class:Ye.classes.ValidationList},Object.keys(Ze).map((r=>t.includes(r)?e("li",{class:Ye.classes.ValidationItemInvalid},e(Ue,null)," ",e("span",null,Ze[r])):e("li",{class:Ye.classes.ValidationItemValid},e(ze,null)," ",e("span",null,Ze[r])))))),et={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:G};O.setup(M());const tt=O.createStyleSheet(et),rt=tt.toString();function nt(t){var r,n;const{states:a,callbacks:i}=t;return e("div",{class:tt.classes.InputContainer},e("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",rt),e("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/password",label:a.content.fieldLabel||"Password",required:!0,validationError:({value:e})=>{if(!e)return"Cannot be empty"}},(null===(r=a.validationErrors)||void 0===r?void 0:r.password)?{class:tt.classes.ErrorStyle,helpText:(null===(n=a.validationErrors)||void 0===n?void 0:n.password)||"Cannot be empty"}:[],{onInput:e=>a.enableValidation&&i.onInput(e)})),a.dynamicValidation)}const at=class{constructor(e){t(this,e),this.ignored=!0,this.fieldLabel="Password",this.enableValidation=!0,a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r}=x()?function(e){var t,r,n,a,s,o,l;const[d,u]=i(""),[c,m]=i("");if(e.demoData&&c!=(null===(t=null==e?void 0:e.demoData)||void 0===t?void 0:t.initValue)){const t=We((null===(r=null==e?void 0:e.demoData)||void 0===r?void 0:r.initValue)||"");u(""===(null===(n=null==e?void 0:e.demoData)||void 0===n?void 0:n.initValue)?"":t),m(null===(a=null==e?void 0:e.demoData)||void 0===a?void 0:a.initValue)}return V({states:{enableValidation:!0,dynamicValidation:d,validationErrors:(null===(o=null===(s=null==e?void 0:e.demoData)||void 0===s?void 0:s.states)||void 0===o?void 0:o.validationErrors)||{},content:{fieldLabel:"Password"}},callbacks:{onInput:function(e){const t=We(e.target.value);u(t)}}},(null===(l=null==e?void 0:e.demoData)||void 0===l?void 0:l.states)||{},{arrayMerge:(e,t)=>t})}(this):function(e){const t=l("sq:validation-state"),[r,n]=i("");return{states:{enableValidation:e.enableValidation,dynamicValidation:r,validationErrors:null==t?void 0:t.validationErrors,content:{fieldLabel:e.fieldLabel}},callbacks:{onInput:function(e){const t=We(e.target.value);n(t)}}}}(this);return e(nt,{states:t,callbacks:r})}};function it(t){const{states:r,callbacks:n}=t;O.setup(M());const a=O.createStyleSheet({Dialog:{padding:"0","&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{width:"25%",margin:"var(--sl-spacing-large) auto"},PasswordField:{marginBottom:"var(--sl-spacing-large) !important",display:"block"},ChangePasswordButton:{paddingTop:"var(--sl-spacing-x-large)"}}),i=a.toString();return e("div",null,e("style",{type:"text/css"},i),e("sl-dialog",{class:a.classes.Dialog,open:r.open,"onSl-hide":()=>n.setOpen(!1)},e(X,Object.assign({},{labelMargin:"x-large",padding:"none",label:e(Y,Object.assign({},{type:"h2"}),r.content.modalChangePasswordHeader),content:e(J,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),r.error&&e("sqm-form-message",{class:a.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},r.error)),r.success&&e("sqm-form-message",{class:a.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},r.content.successMessage)),e("sl-form",{"onSl-submit":n.submit},e("div",{class:a.classes.InputContainer},e("sqm-password-field",{exportparts:"input-label: input-label",class:a.classes.PasswordField,fieldLabel:r.content.passwordFieldLabel}),e("sl-input",{exportparts:"label: input-label",name:"/confirmPassword",label:r.content.confirmPasswordFieldLabel,required:!0,togglePassword:!0,disabled:r.loading,type:"password"})),e(J,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),e("sl-button",{class:a.classes.ChangePasswordButton,type:"primary",submit:!0,loading:r.loading},r.content.changePasswordButtonText),e("sl-button",{class:a.classes.CancelButton,type:"text",onClick:()=>n.setOpen(!1)},r.content.cancelText))))}))),e(X,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e(Y,Object.assign({},{type:"h2"}),r.content.portalChangePasswordHeader),content:e("sl-button",{onClick:()=>n.setOpen(!0)},r.content.portalChangePasswordButtonText)}),e("style",{type:"text/css"},i)))}const st=class{constructor(e){t(this,e),this.ignored=!0,this.modalChangePasswordHeader="Change Password",this.cancelText="Cancel",this.changePasswordButtonText="Change Password",this.passwordFieldLabel="New Password",this.confirmPasswordFieldLabel="Confirm New Password",this.successMessage="Your password has been updated.",this.portalChangePasswordHeader="Password",this.portalChangePasswordButtonText="Change your password...",a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r}=x()?function(e){return V({states:{open:!0,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,r,n,a;const[o,{loading:l,errors:d,data:u}]=D(),[c,m]=i(!1),[p,h]=i(""),[f,g]=i(!1),b=y();return s((()=>{var e;(null===(e=null==u?void 0:u.changeManagedIdentityPassword)||void 0===e?void 0:e.success)&&g(!0)}),[null===(t=null==u?void 0:u.changeManagedIdentityPassword)||void 0===t?void 0:t.success]),{states:{open:c,loading:l,success:f,error:p||(null===(a=null===(n=null===(r=null==d?void 0:d.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0])||void 0===a?void 0:a.message),content:{modalChangePasswordHeader:e.modalChangePasswordHeader,cancelText:e.cancelText,changePasswordButtonText:e.changePasswordButtonText,passwordFieldLabel:e.passwordFieldLabel,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,successMessage:e.successMessage,portalChangePasswordHeader:e.portalChangePasswordHeader,portalChangePasswordButtonText:e.portalChangePasswordButtonText}},data:{},callbacks:{setOpen:m,submit:async e=>{var t;g(!1);const r=null===(t=e.detail)||void 0===t?void 0:t.formData;if(null==r||r.forEach(((e,t)=>{L.set(r,t,e)})),!(null==b?void 0:b.jwt))return void h("Please log in again to change your password.");if(r.password!==r.confirmPassword)return void h("Passwords do not match.");h("");const n={password:r.password};await o(n)}}}}(this);return e(it,{states:t,callbacks:r})}},ot={HostBlock:H,":host":{"min-height":"100vh"},Frame:{"min-height":"100vh",display:"flex","flex-direction":"column","box-sizing":"border-box"},FooterWrapper:{width:"100%","max-width":"100%",padding:"var(--sl-spacing-medium) var(--sl-spacing-x-large)",background:"var(--sqm-footer-background)",display:"flex","justify-content":"flex-end","align-items":"center","box-sizing":"border-box","margin-top":"auto"},HeaderWrapper:{width:"100%","max-width":"100%","box-sizing":"border-box",display:"flex","justify-content":"space-between",padding:"var(--sl-spacing-small) var(--sl-spacing-large)","align-items":"center","background-color":"var(--sqm-header-background)","@media screen and (max-width: 499px)":{"flex-direction":"row-reverse","justify-content":"flex-end",padding:"0"}}};O.setup(M());const lt=O.createStyleSheet(ot),dt=lt.toString();function ut(t,r){const{data:n}=t;return e("div",{class:lt.classes.Frame},e("style",{type:"text/css"},dt),e("div",{class:lt.classes.HeaderWrapper},n.header,e("slot",{name:"sqm-navigation-menu"})),r,e("div",{class:lt.classes.FooterWrapper},n.footer))}const ct=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=e("slot",{name:"footer"}),r=e("slot",{name:"header"}),n=x()?function(t,r,n){return V({data:{footer:t||e("span",null,"example@example.com"),header:r||e("div",{style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:()=>{}}},n.demoData||{},{arrayMerge:(e,t)=>t})}(t,r,this):function(e,t){const[,r]=q();return{data:{footer:e,header:t},callbacks:{rerender:r}}}(t,r);return e(ut,Object.assign({},n),e("slot",null))}},mt={Wrapper:W,Column:z,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:U};O.setup(M());const pt=O.createStyleSheet(mt),ht=pt.toString();function ft(t){const{states:r,callbacks:n,content:a}=t;return e("div",{class:pt.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",ht),e(Y,{type:"h3"},a.pageLabel),e("sl-form",{class:pt.classes.Column,"onSl-submit":n.submit},t.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.states.error)),e("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:a.emailLabel||"Email",disabled:r.loading,required:!0}),e("div",null,e("sl-input",{exportparts:"label: input-label",type:"password",name:"/password",label:a.passwordLabel||"Password",disabled:r.loading,required:!0}),e("div",{class:pt.classes.ForgotButtonContainer},a.forgotPasswordButton)),e("div",{class:pt.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},a.submitLabel||"Login"),a.secondaryButton)))}const gt=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.pageLabel="Sign in to your account",a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r}=x()?function(e){return V({states:{error:"",loading:!1},callbacks:{submit:async()=>{console.log("submit")}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function({nextPage:e}){var t,r,n,a;const[o,{loading:l,errors:d,data:u}]=E(),[c,m]=i(""),p=new URLSearchParams(window.location.search),h=p.get("nextPage");return s((()=>{var t;(null===(t=null==u?void 0:u.authenticateManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token)&&(p.delete("nextPage"),C.push({pathname:h||e,search:p.toString()&&"?"+p.toString()}))}),[null===(t=null==u?void 0:u.authenticateManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token]),s((()=>{var e;((null==d?void 0:d.message)||(null===(e=null==d?void 0:d.response)||void 0===e?void 0:e.error))&&m("Network request failed.")}),[d]),{states:{loading:l,error:(null===(a=null===(n=null===(r=null==d?void 0:d.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0])||void 0===a?void 0:a.message)||c},callbacks:{submit:async e=>{m("");let t=e.detail.formData;null==t||t.forEach(((e,r)=>{L.set(t,r,e)}));const r={email:t.email,password:t.password};await o(r)}}}}(this),n={forgotPasswordButton:e("slot",{name:"forgotPassword"},e("a",{onClick:()=>C.push("/forgotPassword")},this.forgotPasswordLabel)),secondaryButton:e("slot",{name:"secondaryButton"},e("sl-button",{type:"text",disabled:t.loading,onClick:()=>C.push("/register")},this.registerLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return e(ft,{states:t,callbacks:r,content:n})}},bt={Wrapper:{...W,"max-width":"600px"},Column:z,HostBlock:H,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:U,ErrorStyle:G};O.setup(M());const vt=O.createStyleSheet(bt),yt=vt.toString();function wt(t){var r,n,a,i,s,o,l,d;const{states:u,refs:c,callbacks:m,content:p}=t;return u.error&&window.scrollTo({top:0,left:0,behavior:"smooth"}),e("div",{class:vt.classes.Wrapper},e("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",yt),e(Y,{type:"h3"},p.pageLabel),e("sl-form",{class:vt.classes.Column,"onSl-submit":m.submit,ref:e=>c.formRef.current=e,novalidate:!0},u.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.states.error)),p.formData,!u.hideInputs&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"email",name:"/email",label:p.emailLabel||"Email",disabled:u.loading,required:!0,validationError:({value:e})=>e?e.includes("@")?void 0:"Must be a valid email address":"Cannot be empty"},(null===(n=null===(r=u.validationState)||void 0===r?void 0:r.validationErrors)||void 0===n?void 0:n.email)?{class:vt.classes.ErrorStyle,helpText:(null===(i=null===(a=u.validationState)||void 0===a?void 0:a.validationErrors)||void 0===i?void 0:i.email)||"Cannot be empty"}:[])),!u.hideInputs&&e("sqm-password-field",{fieldLabel:p.passwordLabel,"enable-validation":u.enablePasswordValidation}),p.passwordField,!u.hideInputs&&u.confirmPassword&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:p.confirmPasswordLabel,disabled:u.loading,required:!0},(null===(o=null===(s=u.validationState)||void 0===s?void 0:s.validationErrors)||void 0===o?void 0:o.confirmPassword)?{class:vt.classes.ErrorStyle,helpText:(null===(d=null===(l=u.validationState)||void 0===l?void 0:l.validationErrors)||void 0===d?void 0:d.confirmPassword)||"Cannot be empty"}:[])),e("div",{class:vt.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:u.loading,exportparts:"base: primarybutton-base",type:"primary"},p.submitLabel||"Register"),p.secondaryButton)))}const $t={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7,8}|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365|46","1[28]|2|365(?:[0-46-9]|5[0-35-9])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","1\\d{9}|2\\d{7,8}|88\\d{4,6}|(?:8[0-79]|9\\d)\\d{4,8}|(?:[346]\\d|[57])\\d{5,8}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[25689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["801"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:(?:1\\d|3)\\d{3}|9101)\\d{6}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[14][2-9]|[25-8]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:[12]\\d|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],0,0,"0(11\\d{6}|6[256]\\d{6}|7[47]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[023])|4(?:[0-5]\\d\\d|69[7-9]|70[059])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[259]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-689]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,10}|(?:[269]\\d|70)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1[4679]|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d\\d|89(?:2|4[5-9]\\d))\\d{3}|89[45][0-4]\\d\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","(?:18|[2569]\\d\\d)\\d{5}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[25]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[237-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0\\d|1[0-3]|6[1267]|7[0-57]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","08005\\d\\d|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[19]\\d|[23]1|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","199[1-9]\\d{7}|(?:1(?:[01467]\\d|[235][1-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","8\\d{9}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|(?:2\\d\\d|800)\\d{4}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[237]\\d|[89]0)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","8000\\d{3}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d{4}|93330)\\d{4}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[1-35-9]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","1\\d{9}|[1689]\\d{8}|[1-57]\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"],0,1],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"],0,1],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"],0,1],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02-57-9]|11"],0,1]],"8",0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[24]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,["[1-9]\\d{7}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"210\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["5"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|51[013]0\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var xt="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~");function qt(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),a=0;a<3;a++){var i=Number(r[a]),s=Number(n[a]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function Ct(e){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kt(e,t,r){return t&&Et(e.prototype,t),r&&Et(e,r),e}var At=/^\d+$/,St=function(){function e(t){Dt(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Bt(e)||!Bt(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Bt(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Nt(e)+": "+e,"."))}(t),this.metadata=t,Ot.call(this,t)}return kt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&At.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Tt(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Tt(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),Tt=function(){function e(t,r){Dt(this,e),this.globalMetadataObject=r,this.metadata=t,Ot.call(this,r.metadata)}return kt(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map((function(t){return new Ft(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&It(this.types(),e))return new Pt(It(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}]),e}(),Ft=function(){function e(t,r){Dt(this,e),this._format=t,this.metadata=r}return kt(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Rt.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Rt=/^\(?\$1\)?$/,Pt=function(){function e(t,r){Dt(this,e),this.type=t,this.metadata=r}return kt(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function It(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var Bt=function(e){return"object"===Ct(e)},Nt=function(e){return Ct(e)};function Lt(e,t){if((t=new St(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Ot(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===qt(t,"1.2.0")?this.v2=!0:-1===qt(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var Mt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function jt(e){var t="",r=e.split(""),n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=Mt[i];s&&(t+=s)}return t}function _t(e,t){return Vt(e,void 0,t)}function Vt(e,t,r){var n=r.type(t),a=n&&n.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!r.type("FIXED_LINE"))return Vt(e,"MOBILE",r);var i=r.type("MOBILE");i&&(a=function(e,t){var r=e.slice(),n=t,a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s;e.indexOf(o)<0&&r.push(o)}return r.sort((function(e,t){return e-t}))}(a,i.possibleLengths()))}else if(t&&!n)return"INVALID_LENGTH";var s=e.length,o=a[0];return o===s?"IS_POSSIBLE":o>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Gt(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}var Ht=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Wt(e,t,r){if(t=t||{},e.country){(r=new St(r)).selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(Gt(n,r.nationalNumberPattern())){if(zt(n,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":r.type("MOBILE")?zt(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var a=0,i=Ht;a<i.length;a++){var s=i[a];if(zt(n,s,r))return s}}}}function zt(e,t,r){return!(!(t=r.type(t))||!t.pattern())&&!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Gt(e,t.pattern())}function Ut(e){return e.replace(new RegExp("[".concat(xt,"]+"),"g")," ").trim()}var Zt=/(\$\d)/;function Jt(e,t,r){var n=r.useInternationalFormat,a=r.withNationalPrefix,i=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(Zt,t.nationalPrefixFormattingRule()):t.format());return n?Ut(i):i}var Xt=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt={formatExtension:function(e,t,r){return"".concat(e).concat(r.ext()).concat(t)}};function Kt(e,t,r,n,a){var i=function(e,t){var r=e,n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;if(s.leadingDigitsPatterns().length>0){var o=s.leadingDigitsPatterns()[s.leadingDigitsPatterns().length-1];if(0!==t.search(o))continue}if(Gt(t,s.pattern()))return s}}(n.formats(),e);return i?Jt(e,i,{useInternationalFormat:"INTERNATIONAL"===r,withNationalPrefix:!i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix,carrierCode:t,metadata:n}):e}function er(e,t,r,n){return t?n(e,t,r):e}function tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var nr=function(){function e(t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!r)throw new TypeError("`nationalNumber` not passed");if(!n)throw new TypeError("`metadata` not passed");var a=new St(n);ar(t)&&(this.country=t,a.country(t),t=a.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=n}var t,r;return t=e,(r=[{key:"isPossible",value:function(){return function(e,t,r){if(void 0===t&&(t={}),r=new St(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return function(e,t){switch(_t(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return function(e,t,r){return t=t||{},r=new St(r),!!e.country&&(r.selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes()?void 0!==Wt(e,t,r.metadata):Gt(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern()))}(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new St(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Wt(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return function(e,t,r,n){if(r=r?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yt(e,t,r[t])}))}return e}({},Qt,r):Qt,n=new St(n),e.country&&"001"!==e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";n.selectNumberingPlan(e.countryCallingCode)}var a,i=n.countryCallingCode(),s=r.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return s?er(a=Kt(s,e.carrierCode,"NATIONAL",n,r),e.ext,n,r.formatExtension):"";case"INTERNATIONAL":return s?(a=Kt(s,null,"INTERNATIONAL",n,r),er(a="+".concat(i," ").concat(a),e.ext,n,r.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(s);case"RFC3966":return function(e){var t=e.number,r=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(r?";ext="+r:"")}({number:"+".concat(i).concat(s),ext:e.ext});case"IDD":if(!r.fromCountry)return;return er(function(e,t,r,n,a){if(Lt(n,a.metadata)===r){var i=Kt(e,t,"NATIONAL",a);return"1"===r?r+" "+i:i}var s=function(e,t,r){var n=new St(r);return n.selectNumberingPlan(e,void 0),n.defaultIDDPrefix()?n.defaultIDDPrefix():Xt.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,0,a.metadata);if(s)return"".concat(s," ").concat(r," ").concat(Kt(e,null,"INTERNATIONAL",a))}(s,e.carrierCode,i,r.fromCountry,n),e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tr(e,t,r[t])}))}return e}({},t,{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&rr(t.prototype,r),e}(),ar=function(e){return/^[A-Z]{2}$/.test(e)},ir=new RegExp("([0-90-9٠-٩۰-۹])");function sr(e,t,r,n){if(t){var a=new St(n);a.selectNumberingPlan(t,r);var i=new RegExp(a.IDDPrefix());if(0===e.search(i)){var s=(e=e.slice(e.match(i)[0].length)).match(ir);if(!(s&&null!=s[1]&&s[1].length>0&&"0"===s[1]))return e}}}function or(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var a,i,s,o=n.length-1,l=o>0&&n[o];if(t.nationalPrefixTransformRule()&&l?(a=e.replace(r,t.nationalPrefixTransformRule()),o>1&&(i=n[1])):(a=e.slice(n[0].length),l&&(i=n[1])),l){var d=e.indexOf(n[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(s=t.numberingPlan.nationalPrefix())}else s=n[0];return{nationalNumber:a,nationalPrefix:s,carrierCode:i}}}return{nationalNumber:e}}function lr(e,t){var r=or(e,t),n=r.nationalNumber,a=r.carrierCode;if(!function(e,t,r){return!(Gt(e,r.nationalNumberPattern())&&!Gt(t,r.nationalNumberPattern()))}(e,n,t))return{nationalNumber:e};if(e.length!==n.length+(a?a.length:0)&&t.possibleLengths())switch(_t(n,t)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:e}}return{nationalNumber:n,carrierCode:a}}function dr(e,t,r,n){var a=t?Lt(t,n):r;if(0===e.indexOf(a)){(n=new St(n)).selectNumberingPlan(t,r);var i=e.slice(a.length),s=lr(i,n).nationalNumber,o=lr(e,n).nationalNumber;if(!Gt(o,n.nationalNumberPattern())&&Gt(s,n.nationalNumberPattern())||"TOO_LONG"===_t(o,n))return{countryCallingCode:a,number:i}}return{number:e}}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var cr=function(){function e(t){var r,n,a=this,i=t.onCountryChange,s=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];a[n]=e[n]}},(r="update")in this?Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[r]=n,this.onCountryChange=i,this.onCallingCodeChange=s}var t,r;return t=e,(r=[{key:"reset",value:function(e,t){this.international=!1,this.IDDPrefix=void 0,this.missingPlus=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(e,t)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){return this.callingCode=e,this.onCallingCodeChange(this.country,e)}},{key:"startInternationalNumber",value:function(){this.international=!0,this.initCountryAndCallingCode()}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&ur(t.prototype,r),e}(),mr=new RegExp("x");function pr(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function hr(e,t){return")"===e[t]&&t++,function(e){for(var t=[],r=0;r<e.length;)"("===e[r]?t.push(r):")"===e[r]&&t.pop(),r++;var n=0,a="";t.push(e.length);for(var i=0,s=t;i<s.length;i++){var o=s[i];a+=e.slice(n,o),n=o+1}return a}(e.slice(0,t))}function fr(e,t,r){var n=r.metadata,a=r.shouldTryNationalPrefixFormattingRule,i=r.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,r){var n=r.metadata,a=r.getSeparatorAfterNationalPrefix;if((0,r.shouldTryNationalPrefixFormattingRule)(t)){var i=gr(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:n});if(i)return i}return gr(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function gr(e,t,r){var n=r.useNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,i=Jt(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:n,metadata:r.metadata});if(n||(e.nationalPrefix?i=e.nationalPrefix+a(t)+i:e.complexPrefixBeforeNationalSignificantNumber&&(i=e.complexPrefixBeforeNationalSignificantNumber+" "+i)),function(e,t){return jt(e)===t.getNationalDigits()}(i,e))return i}function br(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yr=pr("9",15),wr=/[- ]/,$r=new RegExp("^["+xt+"]*(\\$\\d["+xt+"]*)+$"),xr=function(){function e(t){var r=this,n=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vr(this,"getSeparatorAfterNationalPrefix",(function(e){return r.isNANP||e&&e.nationalPrefixFormattingRule()&&wr.test(e.nationalPrefixFormattingRule())?" ":""})),vr(this,"shouldTryNationalPrefixFormattingRule",(function(e,t){var r=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var a=e.usesNationalPrefix();if(a&&n||!a&&!r)return!0}})),this.metadata=n,this.resetFormat()}var t,r;return t=e,(r=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var r=this;if(function(e,t){return"IS_POSSIBLE"===_t(e,t)}(t.nationalSignificantNumber,this.metadata)){var n=this.matchingFormats,a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s,l=fr(t,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return r.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:this.getSeparatorAfterNationalPrefix});if(l)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(l.replace(/\d/g,"x"),t),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf("x"),l}}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var r=this.chosenFormat,n=this.chooseFormat(t);if(n)return this.formatNextNationalNumberDigits(n===r?e:t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,r=e.nationalPrefix,n=e.international,a=e.nationalSignificantNumber,i=a.length-3;i<0&&(i=0),this.matchingFormats=this.matchingFormats.filter((function(e){return t.formatSuits(e,n,r)&&t.formatMatches(e,a,i)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,r){return!(r&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!r&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,r){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;if(t.length<3)return!0;r=Math.min(r,n-1);var a=e.leadingDigitsPatterns()[r];return new RegExp("^(".concat(a,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){var t=this,r=function(){if(a){if(i>=n.length)return"break";s=n[i++]}else{if((i=n.next()).done)return"break";s=i.value}var r=s;return t.chosenFormat===r?"break":$r.test(t.getFormatFormat(r,e.international))?t.createTemplateForFormat(r,e)?(t.chosenFormat=r,"break"):(t.matchingFormats=t.matchingFormats.filter((function(e){return e!==r})),"continue"):"continue"},n=this.matchingFormats.slice(),a=Array.isArray(n),i=0;e:for(n=a?n:n[Symbol.iterator]();;){var s;switch(r()){case"break":break e;case"continue":continue}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var r=this.getTemplateForFormat(e,t);return r?(this.setNationalNumberTemplate(r,t),!0):void 0}}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var r=e.IDDPrefix;return r?t&&!1===t.spacing?r:r+" ":e.missingPlus?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,r=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";r<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf("x",t+1),r++;return hr(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,this.template=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,"x")+pr("x",t.callingCode.length)+" "+e:e}},{key:"getTemplateForFormat",value:function(e,t){var r=t.nationalSignificantNumber,n=t.international,a=t.nationalPrefix,i=t.complexPrefixBeforeNationalSignificantNumber,s=e.pattern();s=s.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var o=yr.match(s)[0];if(!(r.length>o.length)){var l=new RegExp("^"+s+"$"),d=r.replace(/\d/g,"9");l.test(d)&&(o=d);var u,c=this.getFormatFormat(e,n);if(this.shouldTryNationalPrefixFormattingRule(e,{international:n,nationalPrefix:a})){var m=c.replace(Zt,e.nationalPrefixFormattingRule());if(jt(e.nationalPrefixFormattingRule())===(a||"")+jt("$1")&&(c=m,u=!0,a))for(var p=a.length;p>0;)c=c.replace(/\d/,"x"),p--}var h=o.replace(new RegExp(s),c).replace(new RegExp("9","g"),"x");return u||(i?h=pr("x",i.length)+" "+h:a&&(h=pr("x",a.length)+this.getSeparatorAfterNationalPrefix(e)+h)),n&&(h=Ut(h)),h}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,r){var n=r.split(""),a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s;if(e.slice(t+1).search(mr)<0)return;t=e.search(mr),e=e.replace(mr,o)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],hr(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}}])&&br(t.prototype,r),e}();function qr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Cr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Dr=new RegExp("^["+xt+"0-90-9٠-٩۰-۹]+$","i"),Er="(?:[++]["+xt+"0-90-9٠-٩۰-۹]*|["+xt+"0-90-9٠-٩۰-۹]+)",kr=new RegExp("[^"+xt+"0-90-9٠-٩۰-۹]+.*$"),Ar=/[^\d\[\]]/,Sr=function(){function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=a,this.onNationalSignificantNumberChange=i}var t,r;return t=e,(r=[{key:"input",value:function(e,t){var r,n=function(e){var t=qr(function(e){var t=function(e){var t,r=e.search(Er);if(!(r<0))return"+"===(e=e.slice(r))[0]&&(t=!0,e=e.slice("+".length)),e=e.replace(kr,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]?[t.slice("+".length),!0]:[t]}(e),2),r=t[0],n=t[1];return Dr.test(r)||(r=""),[r,n]}(e),a=qr(n,2),i=a[1],s=jt(a[0]);return i&&(t.digits||(t.startInternationalNumber(),s||(r=!0))),s&&this.inputDigits(s,t),{digits:s,justLeadingPlus:r}}},{key:"inputDigits",value:function(e,t){var r=t.digits,n=r.length<3&&r.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),t.update)}},{key:"isWaitingForCountryCallingCode",value:function(e){return e.international&&!e.callingCode}},{key:"extractCountryCallingCode",value:function(e){var t=function(e,t,r,n){if(!e)return{};if("+"!==e[0]){var a=sr(e,t,r,n);if(!a||a===e){if(t||r){var i=dr(e,t,r,n),s=i.countryCallingCode;if(s)return{countryCallingCode:s,number:i.number}}return{number:e}}e="+"+a}if("0"===e[1])return{};n=new St(n);for(var o=2;o-1<=3&&o<=e.length;){var l=e.slice(1,o);if(n.hasCallingCode(l))return n.selectNumberingPlan(l),{countryCallingCode:l,number:e.slice(o)};o++}return{}}("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode,n=t.number;if(r)return e.setCallingCode(r),e.update({nationalSignificantNumber:n}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&Ar.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var r=or(e,this.metadata),n=r.nationalNumber;if(n!==e)return this.onExtractedNationalNumber(r.nationalPrefix,r.carrierCode,n,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,r){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,r);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=or(e,this.metadata),a=n.nationalNumber;if(a!==t)return this.onExtractedNationalNumber(n.nationalPrefix,n.carrierCode,a,e,r),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,r,n,a){var i,s,o=n.lastIndexOf(r);if(o>=0&&o===n.length-r.length){s=!0;var l=n.slice(0,o);l!==e&&(i=l)}a({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:r,nationalSignificantNumberMatchesInput:s,complexPrefixBeforeNationalSignificantNumber:i}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,e.update)||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.digits;if(!e.international&&!e.IDDPrefix){var r=sr(t,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==r&&r!==t?(e.update({IDDPrefix:t.slice(0,t.length-r.length)}),this.startInternationalNumber(e),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international&&dr(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode)return e.update({missingPlus:!0}),this.startInternationalNumber(e),!0}},{key:"startInternationalNumber",value:function(e){e.startInternationalNumber(),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),e.update)}}])&&Cr(t.prototype,r),e}();function Tr(e){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Rr=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new St(r);var n,a,i=(n=this.getCountryAndCallingCode(t),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=i[1];this.defaultCountry=i[0],this.defaultCallingCode=s,this.reset()}var t,r;return t=e,(r=[{key:"getCountryAndCallingCode",value:function(e){var t,r;return e&&("object"===Tr(e)?(t=e.defaultCountry,r=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,r]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),r=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(r){var n;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(r,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var a=this.state.getNationalDigits();a&&(n=this.formatter.format(a,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new cr({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,r){e.metadata.selectNumberingPlan(t,r),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new xr({state:this.state,metadata:this.metadata}),this.parser=new Sr({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset(this.defaultCountry,this.defaultCallingCode),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var e=this.state;if(e.digits)return e.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t,r=this;if(this.isInternational()){var n=this.state.callingCode;return t=n?e?"".concat(n," ").concat(e):n:"".concat(this.state.getDigitsWithoutInternationalPrefix()),r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!t})+t}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.complexPrefixBeforeNationalSignificantNumber||e.nationalPrefix;return r&&(t=r+t),t}},{key:"getNonFormattedNumber",value:function(){return this.getFullNumber(this.state.nationalSignificantNumberMatchesInput?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,"x")}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.metadata.getCountryCodesForCallingCode(this.state.callingCode);return e&&e.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(function(e,t,r){var n=r.getCountryCodesForCallingCode(e);if(n)return 1===n.length?n[0]:function(e,t,r){r=new St(r);var n=e,a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s;if(r.country(o),r.leadingDigits()){if(t&&0===t.search(r.leadingDigits()))return o}else if(Wt({phone:t,country:o},void 0,r.metadata))return o}}(n,t,r.metadata)}(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.carrierCode;if(this.isInternational()){if(!this.state.callingCode)return}else if(!this.state.country&&!this.defaultCallingCode)return;if(t){var n=this.getCountry(),a=this.getCountryCallingCode()||this.defaultCallingCode,i=new nr(n||a,t,this.metadata.metadata);return r&&(i.carrierCode=r),i}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])&&Fr(t.prototype,r),e}();function Pr(e){return Rr.call(this,e,$t)}(Pr.prototype=Object.create(Rr.prototype,{})).constructor=Pr;const Ir=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.enablePasswordValidation=!0,this.hideInputs=!1,this.pageLabel="Register",a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r,refs:n}=x()?function(e){return V({states:{error:"",loading:!1,confirmPassword:!0,hideInputs:e.hideInputs||!1,customPasswordField:!1},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{}},refs:{formRef:{}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,r,n,a,i,l;const u=o(null),{validationState:c,setValidationState:m}=function(){const e=k(),[t,r]=d(e,"sq:validation-state",{});return{validationState:t,setValidationState:r}}(),[p,{loading:h,errors:f,data:g}]=A(),v=b((e=>{var t,r;if("tel"!==(null===(r=null===(t=e.target)||void 0===t?void 0:t.type)||void 0===r?void 0:r.toLowerCase()))return;const n=new Pr("US");e.target.value=n.input(e.target.value)}),[]);s((()=>{var t;(null===(t=null==g?void 0:g.registerManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token)&&C.push(e.nextPage)}),[null===(t=null==g?void 0:g.registerManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token]),s((()=>{if(!u.current)return;const e=u.current;return e.addEventListener("sl-input",v),()=>{e.removeEventListener("sl-input",v)}}),[u.current]);let y="";return y=(null===(r=null==f?void 0:f.response)||void 0===r?void 0:r.error)||(null==f?void 0:f.message)&&!(null===(n=null==f?void 0:f.response)||void 0===n?void 0:n.errors.length)?"Network request failed":(null===(l=null===(i=null===(a=null==f?void 0:f.response)||void 0===a?void 0:a.errors)||void 0===i?void 0:i[0])||void 0===l?void 0:l.message)||(null==c?void 0:c.error),{states:{loading:h,error:y,validationState:c,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs},callbacks:{submit:async t=>{let r=t.target.getFormControls(),n={},a={};if(null==r||r.forEach((e=>{if(!e.name)return;const t=e.name,r=e.value;if(L.set(n,t,r),e.required&&!r&&L.set(a,t,"Cannot be empty"),"function"==typeof e.validationError){const n=(0,e.validationError)({control:e,key:t,value:r});n&&L.set(a,t,n)}})),(e.confirmPassword||n.confirmPassword)&&n.password!==n.confirmPassword&&(a={...a,confirmPassword:"Passwords do not match."}),m({error:"",validationErrors:a}),Object.keys(a).length)return;const{email:i,password:s}=n;delete n.email,delete n.password,delete n.confirmPassword,n={...n};const o={email:i,password:s,formData:n};try{await p(o)}catch(e){m({error:"Network request failed."})}},inputFunction:v},refs:{formRef:u}}}(this),a={formData:e("slot",{name:"formData"}),secondaryButton:e("slot",{name:"secondaryButton"},e("sl-button",{type:"text",disabled:t.loading,onClick:()=>C.push("/login")},this.loginLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel};return e(wt,{states:t,callbacks:r,content:a,refs:n})}},Br=u("sq:useProgramMenu"),Nr=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const{data:t,ref:n}=function(e){const t=S(),r=k();Br({programId:t,props:e});const n=o(),[,a]=q();return s((()=>{var e;null===(e=n.current)||void 0===e||e.addEventListener("sl-select",(e=>{r.dispatchEvent(new CustomEvent("sq:update-program-id",{detail:e.detail.item.value,bubbles:!0,composed:!0}))}))}),[n.current]),{data:{programId:t},callbacks:{rerender:a},ref:n}}(j(this));return e(r,{style:{display:"contents"}},e("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:t.programId,ref:e=>n.current=e},e("slot",null)))}},Lr=v.gql`
|
|
33
|
+
`,Ae={currentRegion:"",firstName:"",lastName:"",errors:{},error:""},Se=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=x()?function(e){return V({states:{loading:!1,submitDisabled:!1,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:!1,text:{editprofileheader:e.editprofileheader?e.editprofileheader:"Edit Profile",editprofiletext:e.editprofiletext?e.editprofiletext:"Update your profile.",firstnametext:e.firstnametext?e.firstnametext:"First Name",lastnametext:e.lastnametext?e.lastnametext:"Last Name",canceltext:e.canceltext?e.canceltext:"Cancel",updatetext:e.updatetext?e.updatetext:"Update",currentregiontext:e.currentregiontext?e.currentregiontext:"Region",showregion:!0}},callbacks:{onSubmit:e=>{console.log(e)},resetForm:()=>{console.log("reset")},onChange:()=>{console.log("change")},setShowEdit:e=>{console.log(e)}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(j(this)):function(e){const t=y(),[r,n]=i(!1),[a,o]=i(""),[l,d]=i(void 0),[u,c]=i(Ae),m=w(Ee,{},!(null==t?void 0:t.jwt)),[p,h]=$(ke);return s((()=>{!(null==h?void 0:h.loading)&&r&&((null==h?void 0:h.errors)?c((e=>{var t,r,n;return{...e,error:null===(n=null===(r=null===(t=null==h?void 0:h.errors)||void 0===t?void 0:t.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0].message}})):(d((e=>{var t;return{...e,...null===(t=null==h?void 0:h.data)||void 0===t?void 0:t.upsertUser}})),n(!1)))}),[null==h?void 0:h.loading]),s((()=>{d((e=>{var t;return{...e,...null===(t=null==m?void 0:m.data)||void 0===t?void 0:t.viewer}}))}),[null==m?void 0:m.data]),s((()=>{var e;(null===(e=null==h?void 0:h.errors)||void 0===e?void 0:e.message)&&c((e=>({...e,error:"Network request failed."})))}),[null==h?void 0:h.errors]),{states:{loading:(null==m?void 0:m.loading)||h.loading,submitDisabled:!1,formState:u,user:l,showEdit:r,text:{editprofileheader:e.editprofileheader,editprofiletext:e.editprofiletext,firstnametext:e.firstnametext,lastnametext:e.lastnametext,canceltext:e.canceltext,updatetext:e.updatetext,currentregiontext:e.currentregiontext,showregion:e.showregion}},callbacks:{onSubmit:()=>{if(u.firstName&&u.lastName)return p({id:null==t?void 0:t.id,accountId:null==t?void 0:t.accountId,firstName:u.firstName,lastName:u.lastName}),void c((e=>({...e,errors:{}})));const e={};u.firstName||(e.firstName={message:"Field can't be empty"}),u.lastName||(e.lastName={message:"Field can't be empty"}),e!=={}&&c((e=>({...e,error:"Please correct the errors below to update your profile."}))),c((t=>({...t,errors:e})))},resetForm:()=>{var e,t,r,n,a,i;const s=(null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.viewer)||void 0===t?void 0:t.countryCode)?f.formatDisplayName(m.data.viewer.countryCode,{type:"region"}):"";d({...null===(r=m.data)||void 0===r?void 0:r.viewer,...null===(n=h.data)||void 0===n?void 0:n.upsertUser}),c({...Ae,...null===(a=m.data)||void 0===a?void 0:a.viewer,...null===(i=h.data)||void 0===i?void 0:i.upsertUser,currentRegion:s})},onChange:e=>{const{name:t,value:r}=e.target;c((e=>({...e,[t]:r})))},setShowEdit:n}}}(j(this));return e(De,Object.assign({},t))}};Se.style=".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";const Te=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){return"error"===this.type?e("sl-alert",{exportparts:"base: erroralert-base, icon:erroralert-icon",class:"Error",type:"danger",open:!0},e("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"exclamation-octagon"}`}),e("slot",null)):"info"===this.type?e("sl-alert",{exportparts:"base: infoalert-base, icon:infoalert-icon",class:"Info",type:"primary",open:!0},e("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"info-circle"}`}),e("slot",null)):e("sl-alert",{exportparts:"base: successalert-base, icon:successalert-icon",class:"Success",type:"success",open:!0},e("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"check2-circle"}`}),e("slot",null))}};Te.style="sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";const Fe=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){return e(this.hookStory,null)}};function Re(t){const{states:r}=t,{styles:n}=r;return r.includeDropdown?e("sl-dropdown",{style:"margin-bottom: var(--sl-spacing-large)"},e("sl-button",{slot:"trigger",caret:!0,onClick:t.callbacks.rerender,exportparts:"base: dropdownbutton-base"},n.menuLabel),e("sl-menu",{ref:e=>{void 0===t.ref.current&&(t.ref.current=e,t.callbacks.rerender())}},e("slot",null))):""}const Pe=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=x()?function(e){return V({states:{includeDropdown:!0,styles:{...e,menuLabel:"Menu"}},callbacks:{rerender:()=>{}},ref:{current:void 0}},e.demoData||{},{arrayMerge:(e,t)=>t})}(j(this)):function(e){const t=o(),[,r]=q(),n=y();return s((()=>{var e;null===(e=t.current)||void 0===e||e.addEventListener("sl-select",(e=>function(e){C.push(e.detail.item.value)}(e)))}),[t.current]),{states:{includeDropdown:void 0!==((null==n?void 0:n.id)||(null==n?void 0:n.accountId)||(null==n?void 0:n.jwt)),styles:{menuLabel:e.menuLabel}},callbacks:{rerender:r},ref:t}}(j(this));return e(r,{slot:"sqm-navigation-menu"},e(Re,Object.assign({},t)))}};Pe.style=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";var Ie="(\\d.*)",Be="([a-zA-Z].*)",Ne="([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",Oe="([\\s].*)";function Le(e,t){if(t&&t>1){const r=parseInt(t,10);return new RegExp(e+"{"+r+",}").test(this.password)===this.positive}return new RegExp(e).test(this.password)===this.positive}var Me={not:function(e){return this.positive=!1,!e||Le.call(this,e)},has:function(e){return this.positive=!0,!e||Le.call(this,e)},is:function(){return this.positive=!0,!0},min:function(e){return this.password.length>=e},max:function(e){return this.password.length<=e},digits:function(e){return Le.call(this,Ie,e)},letters:function(e){return Le.call(this,Be,e)},uppercase:function(e){if(e&&e>1){let t=0,r=0;for(;r<e&&t<this.password.length;){const e=this.password.charAt(t);e!==e.toLowerCase()&&r++,t++}return r===e===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function(e){if(e&&e>1){let t=0,r=0;for(;r<e&&t<this.password.length;){const e=this.password.charAt(t);e!==e.toUpperCase()&&r++,t++}return r===e===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function(e){return Le.call(this,Ne,e)},spaces:function(e){return Le.call(this,Oe,e)},oneOf:function(e){return e.indexOf(this.password)>=0===this.positive}},je="Length should be a valid positive number";function _e(e){const t=Number(e);if(isNaN(t)||!Number.isInteger(t)||t<1)throw new Error(je)}function Ve(e){return Me[e.method].apply(this,e.arguments)}function Ge(e,t){return this.properties.push({method:e,arguments:t}),this}const He=(new class{constructor(){this.properties=[]}validate(e,t){return this.list=Boolean(t&&t.list),this.password=String(e),this.positive=!0,this.list?this.properties.reduce(((e,t)=>Ve.call(this,t)?e:e.concat(t.method)),[]):this.properties.every(Ve.bind(this))}letters(e){return e&&_e(e),Ge.call(this,"letters",arguments)}digits(e){return e&&_e(e),Ge.call(this,"digits",arguments)}symbols(e){return e&&_e(e),Ge.call(this,"symbols",arguments)}min(e){return _e(e),Ge.call(this,"min",arguments)}max(e){return _e(e),Ge.call(this,"max",arguments)}lowercase(e){return e&&_e(e),Ge.call(this,"lowercase",arguments)}uppercase(e){return e&&_e(e),Ge.call(this,"uppercase",arguments)}spaces(e){return e&&_e(e),Ge.call(this,"spaces",arguments)}has(){return Ge.call(this,"has",arguments)}not(){return Ge.call(this,"not",arguments)}is(){return Ge.call(this,"is",arguments)}oneOf(){return Ge.call(this,"oneOf",arguments)}}).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/),We=e=>{const t=He.validate(e,{list:!0});return Ke(t,e)},ze=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"})),Ue=()=>e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"})),Ze={min:"be a minimum of 8 characters",uppercase:"contain at least 1 uppercase character",lowercase:"contain at least 1 lowercase character",has:"contain at least 1 number or symbol"},Je={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},Xe={Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:{...Je,color:"var(--sl-color-success-600)"},ValidationItemInvalid:{...Je}};L.setup(M());const Ye=L.createStyleSheet(Xe),Qe=Ye.toString(),Ke=(t,r)=>!t.length&&r?e("div",{class:Ye.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},e("style",{type:"text/css"},Qe),e(ze,null)," ",e("span",null,"Password has met all requirements")):e("div",{class:Ye.classes.Base},e("style",{type:"text/css"},Qe),"Password must meet the following requirements:",e("ul",{class:Ye.classes.ValidationList},Object.keys(Ze).map((r=>t.includes(r)?e("li",{class:Ye.classes.ValidationItemInvalid},e(Ue,null)," ",e("span",null,Ze[r])):e("li",{class:Ye.classes.ValidationItemValid},e(ze,null)," ",e("span",null,Ze[r])))))),et={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:G};L.setup(M());const tt=L.createStyleSheet(et),rt=tt.toString();function nt(t){var r,n;const{states:a,callbacks:i}=t;return e("div",{class:tt.classes.InputContainer},e("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",rt),e("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/password",label:a.content.fieldLabel||"Password",required:!0,validationError:({value:e})=>{if(!e)return"Cannot be empty"}},(null===(r=a.validationErrors)||void 0===r?void 0:r.password)?{class:tt.classes.ErrorStyle,helpText:(null===(n=a.validationErrors)||void 0===n?void 0:n.password)||"Cannot be empty"}:[],{onInput:e=>a.enableValidation&&i.onInput(e)})),a.dynamicValidation)}const at=class{constructor(e){t(this,e),this.ignored=!0,this.fieldLabel="Password",this.enableValidation=!0,a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r}=x()?function(e){var t,r,n,a,s,o,l;const[d,u]=i(""),[c,m]=i("");if(e.demoData&&c!=(null===(t=null==e?void 0:e.demoData)||void 0===t?void 0:t.initValue)){const t=We((null===(r=null==e?void 0:e.demoData)||void 0===r?void 0:r.initValue)||"");u(""===(null===(n=null==e?void 0:e.demoData)||void 0===n?void 0:n.initValue)?"":t),m(null===(a=null==e?void 0:e.demoData)||void 0===a?void 0:a.initValue)}return V({states:{enableValidation:!0,dynamicValidation:d,validationErrors:(null===(o=null===(s=null==e?void 0:e.demoData)||void 0===s?void 0:s.states)||void 0===o?void 0:o.validationErrors)||{},content:{fieldLabel:"Password"}},callbacks:{onInput:function(e){const t=We(e.target.value);u(t)}}},(null===(l=null==e?void 0:e.demoData)||void 0===l?void 0:l.states)||{},{arrayMerge:(e,t)=>t})}(this):function(e){const t=l("sq:validation-state"),[r,n]=i("");return{states:{enableValidation:e.enableValidation,dynamicValidation:r,validationErrors:null==t?void 0:t.validationErrors,content:{fieldLabel:e.fieldLabel}},callbacks:{onInput:function(e){const t=We(e.target.value);n(t)}}}}(this);return e(nt,{states:t,callbacks:r})}};function it(t){const{states:r,callbacks:n}=t;L.setup(M());const a=L.createStyleSheet({Dialog:{padding:"0","&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{width:"25%",margin:"var(--sl-spacing-large) auto"},PasswordField:{marginBottom:"var(--sl-spacing-large) !important",display:"block"},ChangePasswordButton:{paddingTop:"var(--sl-spacing-x-large)"}}),i=a.toString();return e("div",null,e("style",{type:"text/css"},i),e("sl-dialog",{class:a.classes.Dialog,open:r.open,"onSl-hide":()=>n.setOpen(!1)},e(X,Object.assign({},{labelMargin:"x-large",padding:"none",label:e(Y,Object.assign({},{type:"h2"}),r.content.modalChangePasswordHeader),content:e(J,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),r.error&&e("sqm-form-message",{class:a.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},r.error)),r.success&&e("sqm-form-message",{class:a.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},r.content.successMessage)),e("sl-form",{"onSl-submit":n.submit},e("div",{class:a.classes.InputContainer},e("sqm-password-field",{exportparts:"input-label: input-label",class:a.classes.PasswordField,fieldLabel:r.content.passwordFieldLabel}),e("sl-input",{exportparts:"label: input-label",name:"/confirmPassword",label:r.content.confirmPasswordFieldLabel,required:!0,togglePassword:!0,disabled:r.loading,type:"password"})),e(J,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),e("sl-button",{class:a.classes.ChangePasswordButton,type:"primary",submit:!0,loading:r.loading},r.content.changePasswordButtonText),e("sl-button",{class:a.classes.CancelButton,type:"text",onClick:()=>n.setOpen(!1)},r.content.cancelText))))}))),e(X,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e(Y,Object.assign({},{type:"h2"}),r.content.portalChangePasswordHeader),content:e("sl-button",{onClick:()=>n.setOpen(!0)},r.content.portalChangePasswordButtonText)}),e("style",{type:"text/css"},i)))}const st=class{constructor(e){t(this,e),this.ignored=!0,this.modalChangePasswordHeader="Change Password",this.cancelText="Cancel",this.changePasswordButtonText="Change Password",this.passwordFieldLabel="New Password",this.confirmPasswordFieldLabel="Confirm New Password",this.successMessage="Your password has been updated.",this.portalChangePasswordHeader="Password",this.portalChangePasswordButtonText="Change your password...",a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r}=x()?function(e){return V({states:{open:!0,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,r,n,a;const[o,{loading:l,errors:d,data:u}]=D(),[c,m]=i(!1),[p,h]=i(""),[f,g]=i(!1),b=y();return s((()=>{var e;(null===(e=null==u?void 0:u.changeManagedIdentityPassword)||void 0===e?void 0:e.success)&&g(!0)}),[null===(t=null==u?void 0:u.changeManagedIdentityPassword)||void 0===t?void 0:t.success]),{states:{open:c,loading:l,success:f,error:p||(null===(a=null===(n=null===(r=null==d?void 0:d.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0])||void 0===a?void 0:a.message),content:{modalChangePasswordHeader:e.modalChangePasswordHeader,cancelText:e.cancelText,changePasswordButtonText:e.changePasswordButtonText,passwordFieldLabel:e.passwordFieldLabel,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,successMessage:e.successMessage,portalChangePasswordHeader:e.portalChangePasswordHeader,portalChangePasswordButtonText:e.portalChangePasswordButtonText}},data:{},callbacks:{setOpen:m,submit:async e=>{var t;g(!1);const r=null===(t=e.detail)||void 0===t?void 0:t.formData;if(null==r||r.forEach(((e,t)=>{O.set(r,t,e)})),!(null==b?void 0:b.jwt))return void h("Please log in again to change your password.");if(r.password!==r.confirmPassword)return void h("Passwords do not match.");h("");const n={password:r.password};await o(n)}}}}(this);return e(it,{states:t,callbacks:r})}},ot={HostBlock:H,":host":{"min-height":"100vh"},Frame:{"min-height":"100vh",display:"flex","flex-direction":"column","box-sizing":"border-box"},FooterWrapper:{width:"100%","max-width":"100%",padding:"var(--sl-spacing-medium) var(--sl-spacing-x-large)",background:"var(--sqm-footer-background)",display:"flex","justify-content":"flex-end","align-items":"center","box-sizing":"border-box","margin-top":"auto"},HeaderWrapper:{width:"100%","max-width":"100%","box-sizing":"border-box",display:"flex","justify-content":"space-between",padding:"var(--sl-spacing-small) var(--sl-spacing-large)","align-items":"center","background-color":"var(--sqm-header-background)","@media screen and (max-width: 499px)":{"flex-direction":"row-reverse","justify-content":"flex-end",padding:"0"}}};L.setup(M());const lt=L.createStyleSheet(ot),dt=lt.toString();function ut(t,r){const{data:n}=t;return e("div",{class:lt.classes.Frame},e("style",{type:"text/css"},dt),e("div",{class:lt.classes.HeaderWrapper},n.header,e("slot",{name:"sqm-navigation-menu"})),r,e("div",{class:lt.classes.FooterWrapper},n.footer))}const ct=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=e("slot",{name:"footer"}),r=e("slot",{name:"header"}),n=x()?function(t,r,n){return V({data:{footer:t||e("span",null,"example@example.com"),header:r||e("div",{style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:()=>{}}},n.demoData||{},{arrayMerge:(e,t)=>t})}(t,r,this):function(e,t){const[,r]=q();return{data:{footer:e,header:t},callbacks:{rerender:r}}}(t,r);return e(ut,Object.assign({},n),e("slot",null))}},mt={Wrapper:W,Column:z,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:U};L.setup(M());const pt=L.createStyleSheet(mt),ht=pt.toString();function ft(t){const{states:r,callbacks:n,content:a}=t;return e("div",{class:pt.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",ht),e(Y,{type:"h3"},a.pageLabel),e("sl-form",{class:pt.classes.Column,"onSl-submit":n.submit},t.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.states.error)),e("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:a.emailLabel||"Email",disabled:r.loading,required:!0}),e("div",null,e("sl-input",{exportparts:"label: input-label",type:"password",name:"/password",label:a.passwordLabel||"Password",disabled:r.loading,required:!0}),e("div",{class:pt.classes.ForgotButtonContainer},a.forgotPasswordButton)),e("div",{class:pt.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},a.submitLabel||"Login"),a.secondaryButton)))}const gt=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.pageLabel="Sign in to your account",a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r}=x()?function(e){return V({states:{error:"",loading:!1},callbacks:{submit:async()=>{console.log("submit")}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function({nextPage:e}){var t,r,n,a;const[o,{loading:l,errors:d,data:u}]=E(),[c,m]=i(""),p=new URLSearchParams(window.location.search),h=p.get("nextPage");return s((()=>{var t;(null===(t=null==u?void 0:u.authenticateManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token)&&(p.delete("nextPage"),C.push({pathname:h||e,search:p.toString()&&"?"+p.toString()}))}),[null===(t=null==u?void 0:u.authenticateManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token]),s((()=>{var e;((null==d?void 0:d.message)||(null===(e=null==d?void 0:d.response)||void 0===e?void 0:e.error))&&m("Network request failed.")}),[d]),{states:{loading:l,error:(null===(a=null===(n=null===(r=null==d?void 0:d.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0])||void 0===a?void 0:a.message)||c},callbacks:{submit:async e=>{m("");let t=e.detail.formData;null==t||t.forEach(((e,r)=>{O.set(t,r,e)}));const r={email:t.email,password:t.password};await o(r)}}}}(this),n={forgotPasswordButton:e("slot",{name:"forgotPassword"},e("a",{onClick:()=>C.push("/forgotPassword")},this.forgotPasswordLabel)),secondaryButton:e("slot",{name:"secondaryButton"},e("sl-button",{type:"text",disabled:t.loading,onClick:()=>C.push("/register")},this.registerLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return e(ft,{states:t,callbacks:r,content:n})}},bt={Wrapper:{...W,"max-width":"600px"},Column:z,HostBlock:H,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:U,ErrorStyle:G};L.setup(M());const vt=L.createStyleSheet(bt),yt=vt.toString();function wt(t){var r,n,a,i,s,o,l,d;const{states:u,refs:c,callbacks:m,content:p}=t;return u.error&&window.scrollTo({top:0,left:0,behavior:"smooth"}),e("div",{class:vt.classes.Wrapper},e("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",yt),e(Y,{type:"h3"},p.pageLabel),e("sl-form",{class:vt.classes.Column,"onSl-submit":m.submit,ref:e=>c.formRef.current=e,novalidate:!0},u.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.states.error)),p.formData,!u.hideInputs&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"email",name:"/email",label:p.emailLabel||"Email",disabled:u.loading,required:!0,validationError:({value:e})=>e?e.includes("@")?void 0:"Must be a valid email address":"Cannot be empty"},(null===(n=null===(r=u.validationState)||void 0===r?void 0:r.validationErrors)||void 0===n?void 0:n.email)?{class:vt.classes.ErrorStyle,helpText:(null===(i=null===(a=u.validationState)||void 0===a?void 0:a.validationErrors)||void 0===i?void 0:i.email)||"Cannot be empty"}:[])),!u.hideInputs&&e("sqm-password-field",{fieldLabel:p.passwordLabel,"enable-validation":u.enablePasswordValidation}),p.passwordField,!u.hideInputs&&u.confirmPassword&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:p.confirmPasswordLabel,disabled:u.loading,required:!0},(null===(o=null===(s=u.validationState)||void 0===s?void 0:s.validationErrors)||void 0===o?void 0:o.confirmPassword)?{class:vt.classes.ErrorStyle,helpText:(null===(d=null===(l=u.validationState)||void 0===l?void 0:l.validationErrors)||void 0===d?void 0:d.confirmPassword)||"Cannot be empty"}:[])),e("div",{class:vt.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:u.loading,exportparts:"base: primarybutton-base",type:"primary"},p.submitLabel||"Register"),p.secondaryButton)))}const $t={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7,8}|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365|46","1[28]|2|365(?:[0-46-9]|5[0-35-9])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","1\\d{9}|2\\d{7,8}|88\\d{4,6}|(?:8[0-79]|9\\d)\\d{4,8}|(?:[346]\\d|[57])\\d{5,8}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[25689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["801"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:(?:1\\d|3)\\d{3}|9101)\\d{6}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[14][2-9]|[25-8]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",[6,8,10]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:[12]\\d|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],0,0,"0(11\\d{6}|6[256]\\d{6}|7[47]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[023])|4(?:[0-5]\\d\\d|69[7-9]|70[059])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[259]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-689]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,10}|(?:[269]\\d|70)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1[4679]|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d\\d|89(?:2|4[5-9]\\d))\\d{3}|89[45][0-4]\\d\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","(?:18|[2569]\\d\\d)\\d{5}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[25]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[237-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0\\d|1[0-3]|6[1267]|7[0-57]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","08005\\d\\d|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[19]\\d|[23]1|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","199[1-9]\\d{7}|(?:1(?:[01467]\\d|[235][1-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","8\\d{9}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|(?:2\\d\\d|800)\\d{4}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[237]\\d|[89]0)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","8000\\d{3}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d{4}|93330)\\d{4}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[1-35-9]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","1\\d{9}|[1689]\\d{8}|[1-57]\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"],0,1],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"],0,1],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"],0,1],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02-57-9]|11"],0,1]],"8",0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[24]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,["[1-9]\\d{7}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"210\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["5"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|51[013]0\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var xt="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~");function qt(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),a=0;a<3;a++){var i=Number(r[a]),s=Number(n[a]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function Ct(e){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kt(e,t,r){return t&&Et(e.prototype,t),r&&Et(e,r),e}var At=/^\d+$/,St=function(){function e(t){Dt(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Bt(e)||!Bt(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Bt(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Nt(e)+": "+e,"."))}(t),this.metadata=t,Lt.call(this,t)}return kt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&At.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Tt(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Tt(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),Tt=function(){function e(t,r){Dt(this,e),this.globalMetadataObject=r,this.metadata=t,Lt.call(this,r.metadata)}return kt(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map((function(t){return new Ft(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return!(this.types()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&It(this.types(),e))return new Pt(It(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}]),e}(),Ft=function(){function e(t,r){Dt(this,e),this._format=t,this.metadata=r}return kt(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Rt.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Rt=/^\(?\$1\)?$/,Pt=function(){function e(t,r){Dt(this,e),this.type=t,this.metadata=r}return kt(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function It(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var Bt=function(e){return"object"===Ct(e)},Nt=function(e){return Ct(e)};function Ot(e,t){if((t=new St(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Lt(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===qt(t,"1.2.0")?this.v2=!0:-1===qt(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var Mt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function jt(e){var t="",r=e.split(""),n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=Mt[i];s&&(t+=s)}return t}function _t(e,t){return Vt(e,void 0,t)}function Vt(e,t,r){var n=r.type(t),a=n&&n.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!r.type("FIXED_LINE"))return Vt(e,"MOBILE",r);var i=r.type("MOBILE");i&&(a=function(e,t){var r=e.slice(),n=t,a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s;e.indexOf(o)<0&&r.push(o)}return r.sort((function(e,t){return e-t}))}(a,i.possibleLengths()))}else if(t&&!n)return"INVALID_LENGTH";var s=e.length,o=a[0];return o===s?"IS_POSSIBLE":o>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Gt(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}var Ht=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Wt(e,t,r){if(t=t||{},e.country){(r=new St(r)).selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(Gt(n,r.nationalNumberPattern())){if(zt(n,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":r.type("MOBILE")?zt(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var a=0,i=Ht;a<i.length;a++){var s=i[a];if(zt(n,s,r))return s}}}}function zt(e,t,r){return!(!(t=r.type(t))||!t.pattern())&&!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Gt(e,t.pattern())}function Ut(e){return e.replace(new RegExp("[".concat(xt,"]+"),"g")," ").trim()}var Zt=/(\$\d)/;function Jt(e,t,r){var n=r.useInternationalFormat,a=r.withNationalPrefix,i=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(Zt,t.nationalPrefixFormattingRule()):t.format());return n?Ut(i):i}var Xt=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt={formatExtension:function(e,t,r){return"".concat(e).concat(r.ext()).concat(t)}};function Kt(e,t,r,n,a){var i=function(e,t){var r=e,n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var s=i;if(s.leadingDigitsPatterns().length>0){var o=s.leadingDigitsPatterns()[s.leadingDigitsPatterns().length-1];if(0!==t.search(o))continue}if(Gt(t,s.pattern()))return s}}(n.formats(),e);return i?Jt(e,i,{useInternationalFormat:"INTERNATIONAL"===r,withNationalPrefix:!i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!a||!1!==a.nationalPrefix,carrierCode:t,metadata:n}):e}function er(e,t,r,n){return t?n(e,t,r):e}function tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var nr=function(){function e(t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!r)throw new TypeError("`nationalNumber` not passed");if(!n)throw new TypeError("`metadata` not passed");var a=new St(n);ar(t)&&(this.country=t,a.country(t),t=a.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=n}var t,r;return t=e,(r=[{key:"isPossible",value:function(){return function(e,t,r){if(void 0===t&&(t={}),r=new St(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return function(e,t){switch(_t(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return function(e,t,r){return t=t||{},r=new St(r),!!e.country&&(r.selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes()?void 0!==Wt(e,t,r.metadata):Gt(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern()))}(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){return new St(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Wt(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return function(e,t,r,n){if(r=r?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yt(e,t,r[t])}))}return e}({},Qt,r):Qt,n=new St(n),e.country&&"001"!==e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";n.selectNumberingPlan(e.countryCallingCode)}var a,i=n.countryCallingCode(),s=r.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return s?er(a=Kt(s,e.carrierCode,"NATIONAL",n,r),e.ext,n,r.formatExtension):"";case"INTERNATIONAL":return s?(a=Kt(s,null,"INTERNATIONAL",n,r),er(a="+".concat(i," ").concat(a),e.ext,n,r.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(s);case"RFC3966":return function(e){var t=e.number,r=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(r?";ext="+r:"")}({number:"+".concat(i).concat(s),ext:e.ext});case"IDD":if(!r.fromCountry)return;return er(function(e,t,r,n,a){if(Ot(n,a.metadata)===r){var i=Kt(e,t,"NATIONAL",a);return"1"===r?r+" "+i:i}var s=function(e,t,r){var n=new St(r);return n.selectNumberingPlan(e,void 0),n.defaultIDDPrefix()?n.defaultIDDPrefix():Xt.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,0,a.metadata);if(s)return"".concat(s," ").concat(r," ").concat(Kt(e,null,"INTERNATIONAL",a))}(s,e.carrierCode,i,r.fromCountry,n),e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tr(e,t,r[t])}))}return e}({},t,{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&rr(t.prototype,r),e}(),ar=function(e){return/^[A-Z]{2}$/.test(e)},ir=new RegExp("([0-90-9٠-٩۰-۹])");function sr(e,t,r,n){if(t){var a=new St(n);a.selectNumberingPlan(t,r);var i=new RegExp(a.IDDPrefix());if(0===e.search(i)){var s=(e=e.slice(e.match(i)[0].length)).match(ir);if(!(s&&null!=s[1]&&s[1].length>0&&"0"===s[1]))return e}}}function or(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var a,i,s,o=n.length-1,l=o>0&&n[o];if(t.nationalPrefixTransformRule()&&l?(a=e.replace(r,t.nationalPrefixTransformRule()),o>1&&(i=n[1])):(a=e.slice(n[0].length),l&&(i=n[1])),l){var d=e.indexOf(n[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(s=t.numberingPlan.nationalPrefix())}else s=n[0];return{nationalNumber:a,nationalPrefix:s,carrierCode:i}}}return{nationalNumber:e}}function lr(e,t){var r=or(e,t),n=r.nationalNumber,a=r.carrierCode;if(!function(e,t,r){return!(Gt(e,r.nationalNumberPattern())&&!Gt(t,r.nationalNumberPattern()))}(e,n,t))return{nationalNumber:e};if(e.length!==n.length+(a?a.length:0)&&t.possibleLengths())switch(_t(n,t)){case"TOO_SHORT":case"INVALID_LENGTH":return{nationalNumber:e}}return{nationalNumber:n,carrierCode:a}}function dr(e,t,r,n){var a=t?Ot(t,n):r;if(0===e.indexOf(a)){(n=new St(n)).selectNumberingPlan(t,r);var i=e.slice(a.length),s=lr(i,n).nationalNumber,o=lr(e,n).nationalNumber;if(!Gt(o,n.nationalNumberPattern())&&Gt(s,n.nationalNumberPattern())||"TOO_LONG"===_t(o,n))return{countryCallingCode:a,number:i}}return{number:e}}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var cr=function(){function e(t){var r,n,a=this,i=t.onCountryChange,s=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];a[n]=e[n]}},(r="update")in this?Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[r]=n,this.onCountryChange=i,this.onCallingCodeChange=s}var t,r;return t=e,(r=[{key:"reset",value:function(e,t){this.international=!1,this.IDDPrefix=void 0,this.missingPlus=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(e,t)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){return this.callingCode=e,this.onCallingCodeChange(this.country,e)}},{key:"startInternationalNumber",value:function(){this.international=!0,this.initCountryAndCallingCode()}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&ur(t.prototype,r),e}(),mr=new RegExp("x");function pr(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function hr(e,t){return")"===e[t]&&t++,function(e){for(var t=[],r=0;r<e.length;)"("===e[r]?t.push(r):")"===e[r]&&t.pop(),r++;var n=0,a="";t.push(e.length);for(var i=0,s=t;i<s.length;i++){var o=s[i];a+=e.slice(n,o),n=o+1}return a}(e.slice(0,t))}function fr(e,t,r){var n=r.metadata,a=r.shouldTryNationalPrefixFormattingRule,i=r.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,r){var n=r.metadata,a=r.getSeparatorAfterNationalPrefix;if((0,r.shouldTryNationalPrefixFormattingRule)(t)){var i=gr(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:n});if(i)return i}return gr(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function gr(e,t,r){var n=r.useNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,i=Jt(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:n,metadata:r.metadata});if(n||(e.nationalPrefix?i=e.nationalPrefix+a(t)+i:e.complexPrefixBeforeNationalSignificantNumber&&(i=e.complexPrefixBeforeNationalSignificantNumber+" "+i)),function(e,t){return jt(e)===t.getNationalDigits()}(i,e))return i}function br(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yr=pr("9",15),wr=/[- ]/,$r=new RegExp("^["+xt+"]*(\\$\\d["+xt+"]*)+$"),xr=function(){function e(t){var r=this,n=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vr(this,"getSeparatorAfterNationalPrefix",(function(e){return r.isNANP||e&&e.nationalPrefixFormattingRule()&&wr.test(e.nationalPrefixFormattingRule())?" ":""})),vr(this,"shouldTryNationalPrefixFormattingRule",(function(e,t){var r=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var a=e.usesNationalPrefix();if(a&&n||!a&&!r)return!0}})),this.metadata=n,this.resetFormat()}var t,r;return t=e,(r=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var r=this;if(function(e,t){return"IS_POSSIBLE"===_t(e,t)}(t.nationalSignificantNumber,this.metadata)){var n=this.matchingFormats,a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s,l=fr(t,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return r.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:this.getSeparatorAfterNationalPrefix});if(l)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(l.replace(/\d/g,"x"),t),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf("x"),l}}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var r=this.chosenFormat,n=this.chooseFormat(t);if(n)return this.formatNextNationalNumberDigits(n===r?e:t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,r=e.nationalPrefix,n=e.international,a=e.nationalSignificantNumber,i=a.length-3;i<0&&(i=0),this.matchingFormats=this.matchingFormats.filter((function(e){return t.formatSuits(e,n,r)&&t.formatMatches(e,a,i)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,r){return!(r&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!r&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,r){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;if(t.length<3)return!0;r=Math.min(r,n-1);var a=e.leadingDigitsPatterns()[r];return new RegExp("^(".concat(a,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){var t=this,r=function(){if(a){if(i>=n.length)return"break";s=n[i++]}else{if((i=n.next()).done)return"break";s=i.value}var r=s;return t.chosenFormat===r?"break":$r.test(t.getFormatFormat(r,e.international))?t.createTemplateForFormat(r,e)?(t.chosenFormat=r,"break"):(t.matchingFormats=t.matchingFormats.filter((function(e){return e!==r})),"continue"):"continue"},n=this.matchingFormats.slice(),a=Array.isArray(n),i=0;e:for(n=a?n:n[Symbol.iterator]();;){var s;switch(r()){case"break":break e;case"continue":continue}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var r=this.getTemplateForFormat(e,t);return r?(this.setNationalNumberTemplate(r,t),!0):void 0}}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var r=e.IDDPrefix;return r?t&&!1===t.spacing?r:r+" ":e.missingPlus?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,r=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";r<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf("x",t+1),r++;return hr(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,this.template=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,"x")+pr("x",t.callingCode.length)+" "+e:e}},{key:"getTemplateForFormat",value:function(e,t){var r=t.nationalSignificantNumber,n=t.international,a=t.nationalPrefix,i=t.complexPrefixBeforeNationalSignificantNumber,s=e.pattern();s=s.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var o=yr.match(s)[0];if(!(r.length>o.length)){var l=new RegExp("^"+s+"$"),d=r.replace(/\d/g,"9");l.test(d)&&(o=d);var u,c=this.getFormatFormat(e,n);if(this.shouldTryNationalPrefixFormattingRule(e,{international:n,nationalPrefix:a})){var m=c.replace(Zt,e.nationalPrefixFormattingRule());if(jt(e.nationalPrefixFormattingRule())===(a||"")+jt("$1")&&(c=m,u=!0,a))for(var p=a.length;p>0;)c=c.replace(/\d/,"x"),p--}var h=o.replace(new RegExp(s),c).replace(new RegExp("9","g"),"x");return u||(i?h=pr("x",i.length)+" "+h:a&&(h=pr("x",a.length)+this.getSeparatorAfterNationalPrefix(e)+h)),n&&(h=Ut(h)),h}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,r){var n=r.split(""),a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s;if(e.slice(t+1).search(mr)<0)return;t=e.search(mr),e=e.replace(mr,o)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],hr(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}}])&&br(t.prototype,r),e}();function qr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Cr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Dr=new RegExp("^["+xt+"0-90-9٠-٩۰-۹]+$","i"),Er="(?:[++]["+xt+"0-90-9٠-٩۰-۹]*|["+xt+"0-90-9٠-٩۰-۹]+)",kr=new RegExp("[^"+xt+"0-90-9٠-٩۰-۹]+.*$"),Ar=/[^\d\[\]]/,Sr=function(){function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=a,this.onNationalSignificantNumberChange=i}var t,r;return t=e,(r=[{key:"input",value:function(e,t){var r,n=function(e){var t=qr(function(e){var t=function(e){var t,r=e.search(Er);if(!(r<0))return"+"===(e=e.slice(r))[0]&&(t=!0,e=e.slice("+".length)),e=e.replace(kr,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]?[t.slice("+".length),!0]:[t]}(e),2),r=t[0],n=t[1];return Dr.test(r)||(r=""),[r,n]}(e),a=qr(n,2),i=a[1],s=jt(a[0]);return i&&(t.digits||(t.startInternationalNumber(),s||(r=!0))),s&&this.inputDigits(s,t),{digits:s,justLeadingPlus:r}}},{key:"inputDigits",value:function(e,t){var r=t.digits,n=r.length<3&&r.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),t.update)}},{key:"isWaitingForCountryCallingCode",value:function(e){return e.international&&!e.callingCode}},{key:"extractCountryCallingCode",value:function(e){var t=function(e,t,r,n){if(!e)return{};if("+"!==e[0]){var a=sr(e,t,r,n);if(!a||a===e){if(t||r){var i=dr(e,t,r,n),s=i.countryCallingCode;if(s)return{countryCallingCode:s,number:i.number}}return{number:e}}e="+"+a}if("0"===e[1])return{};n=new St(n);for(var o=2;o-1<=3&&o<=e.length;){var l=e.slice(1,o);if(n.hasCallingCode(l))return n.selectNumberingPlan(l),{countryCallingCode:l,number:e.slice(o)};o++}return{}}("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode,n=t.number;if(r)return e.setCallingCode(r),e.update({nationalSignificantNumber:n}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&Ar.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var r=or(e,this.metadata),n=r.nationalNumber;if(n!==e)return this.onExtractedNationalNumber(r.nationalPrefix,r.carrierCode,n,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,r){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,r);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=or(e,this.metadata),a=n.nationalNumber;if(a!==t)return this.onExtractedNationalNumber(n.nationalPrefix,n.carrierCode,a,e,r),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,r,n,a){var i,s,o=n.lastIndexOf(r);if(o>=0&&o===n.length-r.length){s=!0;var l=n.slice(0,o);l!==e&&(i=l)}a({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:r,nationalSignificantNumberMatchesInput:s,complexPrefixBeforeNationalSignificantNumber:i}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,e.update)||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.digits;if(!e.international&&!e.IDDPrefix){var r=sr(t,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==r&&r!==t?(e.update({IDDPrefix:t.slice(0,t.length-r.length)}),this.startInternationalNumber(e),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international&&dr(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode)return e.update({missingPlus:!0}),this.startInternationalNumber(e),!0}},{key:"startInternationalNumber",value:function(e){e.startInternationalNumber(),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),e.update)}}])&&Cr(t.prototype,r),e}();function Tr(e){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Rr=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new St(r);var n,a,i=(n=this.getCountryAndCallingCode(t),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=i[1];this.defaultCountry=i[0],this.defaultCallingCode=s,this.reset()}var t,r;return t=e,(r=[{key:"getCountryAndCallingCode",value:function(e){var t,r;return e&&("object"===Tr(e)?(t=e.defaultCountry,r=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,r]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),r=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(r){var n;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(r,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var a=this.state.getNationalDigits();a&&(n=this.formatter.format(a,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new cr({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,r){e.metadata.selectNumberingPlan(t,r),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new xr({state:this.state,metadata:this.metadata}),this.parser=new Sr({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset(this.defaultCountry,this.defaultCallingCode),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var e=this.state;if(e.digits)return e.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t,r=this;if(this.isInternational()){var n=this.state.callingCode;return t=n?e?"".concat(n," ").concat(e):n:"".concat(this.state.getDigitsWithoutInternationalPrefix()),r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!t})+t}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.complexPrefixBeforeNationalSignificantNumber||e.nationalPrefix;return r&&(t=r+t),t}},{key:"getNonFormattedNumber",value:function(){return this.getFullNumber(this.state.nationalSignificantNumberMatchesInput?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,"x")}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.metadata.getCountryCodesForCallingCode(this.state.callingCode);return e&&e.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(function(e,t,r){var n=r.getCountryCodesForCallingCode(e);if(n)return 1===n.length?n[0]:function(e,t,r){r=new St(r);var n=e,a=Array.isArray(n),i=0;for(n=a?n:n[Symbol.iterator]();;){var s;if(a){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var o=s;if(r.country(o),r.leadingDigits()){if(t&&0===t.search(r.leadingDigits()))return o}else if(Wt({phone:t,country:o},void 0,r.metadata))return o}}(n,t,r.metadata)}(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.carrierCode;if(this.isInternational()){if(!this.state.callingCode)return}else if(!this.state.country&&!this.defaultCallingCode)return;if(t){var n=this.getCountry(),a=this.getCountryCallingCode()||this.defaultCallingCode,i=new nr(n||a,t,this.metadata.metadata);return r&&(i.carrierCode=r),i}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])&&Fr(t.prototype,r),e}();function Pr(e){return Rr.call(this,e,$t)}(Pr.prototype=Object.create(Rr.prototype,{})).constructor=Pr;const Ir=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.enablePasswordValidation=!0,this.hideInputs=!1,this.pageLabel="Register",a(this)}disconnectedCallback(){}render(){const{states:t,callbacks:r,refs:n}=x()?function(e){return V({states:{error:"",loading:!1,confirmPassword:!0,hideInputs:e.hideInputs||!1,customPasswordField:!1},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{}},refs:{formRef:{}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,r,n,a,i,l;const u=o(null),{validationState:c,setValidationState:m}=function(){const e=k(),[t,r]=d(e,"sq:validation-state",{});return{validationState:t,setValidationState:r}}(),[p,{loading:h,errors:f,data:g}]=A(),v=b((e=>{var t,r;if("tel"!==(null===(r=null===(t=e.target)||void 0===t?void 0:t.type)||void 0===r?void 0:r.toLowerCase()))return;const n=new Pr("US");e.target.value=n.input(e.target.value)}),[]);s((()=>{var t;(null===(t=null==g?void 0:g.registerManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token)&&C.push(e.nextPage)}),[null===(t=null==g?void 0:g.registerManagedIdentityWithEmailAndPassword)||void 0===t?void 0:t.token]),s((()=>{if(!u.current)return;const e=u.current;return e.addEventListener("sl-input",v),()=>{e.removeEventListener("sl-input",v)}}),[u.current]);let y="";return y=(null===(r=null==f?void 0:f.response)||void 0===r?void 0:r.error)||(null==f?void 0:f.message)&&!(null===(n=null==f?void 0:f.response)||void 0===n?void 0:n.errors.length)?"Network request failed":(null===(l=null===(i=null===(a=null==f?void 0:f.response)||void 0===a?void 0:a.errors)||void 0===i?void 0:i[0])||void 0===l?void 0:l.message)||(null==c?void 0:c.error),{states:{loading:h,error:y,validationState:c,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs},callbacks:{submit:async t=>{let r=t.target.getFormControls(),n={},a={};if(null==r||r.forEach((e=>{if(!e.name)return;const t=e.name,r=e.value;if(O.set(n,t,r),e.required&&!r&&O.set(a,t,"Cannot be empty"),"function"==typeof e.validationError){const n=(0,e.validationError)({control:e,key:t,value:r});n&&O.set(a,t,n)}})),(e.confirmPassword||n.confirmPassword)&&n.password!==n.confirmPassword&&(a={...a,confirmPassword:"Passwords do not match."}),m({error:"",validationErrors:a}),Object.keys(a).length)return;const{email:i,password:s}=n;delete n.email,delete n.password,delete n.confirmPassword,n={...n};const o={email:i,password:s,formData:n};try{await p(o)}catch(e){m({error:"Network request failed."})}},inputFunction:v},refs:{formRef:u}}}(this),a={formData:e("slot",{name:"formData"}),secondaryButton:e("slot",{name:"secondaryButton"},e("sl-button",{type:"text",disabled:t.loading,onClick:()=>C.push("/login")},this.loginLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel};return e(wt,{states:t,callbacks:r,content:a,refs:n})}},Br=u("sq:useProgramMenu"),Nr=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const{data:t,ref:n}=function(e){const t=S(),r=k();Br({programId:t,props:e});const n=o(),[,a]=q();return s((()=>{var e;null===(e=n.current)||void 0===e||e.addEventListener("sl-select",(e=>{r.dispatchEvent(new CustomEvent("sq:update-program-id",{detail:e.detail.item.value,bubbles:!0,composed:!0}))}))}),[n.current]),{data:{programId:t},callbacks:{rerender:a},ref:n}}(j(this));return e(r,{style:{display:"contents"}},e("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:t.programId,ref:e=>n.current=e},e("slot",null)))}},Or=v.gql`
|
|
34
34
|
query getUser($programId: ID) {
|
|
35
35
|
viewer {
|
|
36
36
|
... on User {
|
|
@@ -38,7 +38,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`;function
|
|
41
|
+
`;function Lr(t){const{states:r,data:n}=t,{content:a}=r,i={Container:{position:"relative",width:a.iframeWidth,height:a.iframeHeight},IFrame:{position:"absolute",width:"100%",height:"100%",border:"0",top:"0",left:"0",right:"0"}};L.setup(M());const s=L.createStyleSheet(i),o=s.toString();return e("div",{class:s.classes.Container},e("style",{type:"text/css"},o),e("iframe",{class:s.classes.IFrame,src:`${a.iframeSrc}?rsCode=${n.shareCode}`}))}L.setup(M());const Mr=L.createStyleSheet({IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"30px"},Details:{marginLeft:"30px"},Heading:{display:"inline-block"},Alert:{margin:"30px"}}),jr=Mr.toString();function _r({missingProps:t}){if(!t)return!1;const r=k(),[n,a]=i(!1);return e("sl-alert",{type:"danger",open:!0,class:Mr.classes.Alert},e("style",{type:"text/css"},jr),e("div",{slot:"icon",class:Mr.classes.IconStyle},e("sl-icon",{name:"exclamation-octagon"})),e("div",{class:Mr.classes.DivStyle},e("h2",{class:Mr.classes.Heading},"There was a problem loading this page"),e("p",null,"There was a technical problem that prevented this page from loading. Please contact us with the link to this page.")),e("details",{class:Mr.classes.Details},e("summary",{onClick:()=>a(!n)},n?"Less":"More"," details"),e("p",null,"Error occured while loading ",`<${r.tagName.toLowerCase()}>`,". Values for the following attributes are missing:"),e("ul",null,t.map((t=>e("li",null,e("strong",null,t.attribute)))))))}const Vr=class{constructor(e){t(this,e),this.ignored=!0,this.iframeHeight="100%",this.iframeWidth="100%",a(this)}disconnectedCallback(){}render(){const t=_([{attribute:"iframe-src",value:this.iframeSrc}]);if(t)return e(_r,{missingProps:t});const{states:n,data:a}=x()?function(e){return V({states:{content:{iframeSrc:"https://example.com",...e}},data:{shareCode:"SHARECODE123"}},e.demoData||{},{arrayMerge:(e,t)=>t})}(j(this)):function(e){var t;const r=S(),n=y(),{data:a}=w(Or,{programId:r},!(null==n?void 0:n.jwt)||!r);return{states:{content:e},data:{shareCode:null===(t=null==a?void 0:a.viewer)||void 0===t?void 0:t.referralCode}}}(j(this));return e(r,{style:{display:"contents"}},e(Lr,{data:a,states:n}))}},Gr={THead:{padding:"var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0","text-align":"left"},TCell:{padding:"var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0"},TRow:{"border-top":"1px solid #EAEAEA"},Table:{"border-collapse":"collapse",width:"100%"},ButtonContainer:{display:"flex","justify-content":"flex-end","margin-top":"var(--sl-spacing-small)",...Z({direction:"row",size:"var(--sl-spacing-small)"})}};L.setup(M());const Hr=L.createStyleSheet(Gr),Wr=Hr.toString();function zr(t){var r,n;const{states:a,data:i,callbacks:s,elements:o}=t,{columns:l,rows:d}=o;return e("div",null,e("style",{type:"text/css"},Wr),e("table",{class:Hr.classes.Table},i.textOverrides.showLabels&&e("thead",null,e("tr",null,null==l?void 0:l.map((t=>e("th",{class:Hr.classes.THead},e(Y,{type:"h3"},t)))))),e("tbody",null,a.loading?o.loadingElement:(null===(r=null==o?void 0:o.rows)||void 0===r?void 0:r.length)||(null===(n=i.referralData)||void 0===n?void 0:n.length)?null==d?void 0:d.map(((t,r)=>e("tr",{class:Hr.classes.TRow,style:{borderTop:i.textOverrides.showLabels||0!==r?"":"none"},part:"table-row"},t.map((t=>e("td",{class:Hr.classes.TCell},e(Y,{type:"p"},t))))))):o.emptyElement)),e("div",{class:Hr.classes.ButtonContainer,part:"sqm-referral-table-button-wrapper"},e("sl-button",{size:"small",disabled:!a.hasPrev,loading:a.loading,onClick:s.prevPage,exportparts:"base: defaultbutton-base"},i.textOverrides.prevLabel),e("sl-button",{size:"small",loading:a.loading,disabled:!a.hasNext,onClick:s.nextPage,exportparts:"base: defaultbutton-base"},i.textOverrides.moreLabel)))}function Ur(){const e=k(),t=e.children.length?Array.from(e.children):[],[r,n]=i(t);return s((()=>{const t=new MutationObserver((()=>{const t=Array.from(e.children);n([...t])}));return t.observe(e,{childList:!0}),()=>t.disconnect()}),[e]),r}const Zr=Q`
|
|
42
42
|
query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
|
|
43
43
|
viewer {
|
|
44
44
|
... on User {
|
|
@@ -193,7 +193,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
`;async function Xr(t,r){const n=t.tagName.toLowerCase();let a;await customElements.whenDefined(n);try{a=r()}catch(t){return"renderReferrerCell"===r.name?console.error("column does not have a renderReferrerCell method."):console.error("label promise failed",t),e("span",null)}try{return await a}catch(t){console.error("Error rendering label",t);const r=function(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}(t);return e("details",null,e("summary",null,"Error"),r)}}const Yr=class{constructor(e){t(this,e),this.perPage=3,this.showLabels=!0,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,a(this)}disconnectedCallback(){}render(){const t=e(en,null),r=e(Qr,null),{states:n,data:a,callbacks:i,elements:o}=x()?function(t){return V({states:{hasPrev:!1,hasNext:!1,loading:!1},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:t.showLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},referralData:[]},elements:{emptyElement:e(en,null),loadingElement:e(Qr,null),columns:[e("div",null,"Example"),e("div",null,"Example"),e("div",null,"Example")],rows:[]}},t.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e,t,r){var n,a;const i=y(),o=S(),l=null!==(n=e.programId)&&void 0!==n?n:o,d=l?"classic"===l?{programId_exists:!1}:{programId_eq:l}:{},u={userId_eq:null==i?void 0:i.id,accountId_eq:null==i?void 0:i.accountId},[m,p]=c(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{data:h,loading:f}=w(Zr,{programId:"classic"===l?null:l,rewardFilter:u},!e.showReferrer||!(null==i?void 0:i.jwt)),g=null===(a=null==h?void 0:h.viewer)||void 0===a?void 0:a.referredByReferral,b=e.showReferrer&&!!(null==g?void 0:g.dateReferralStarted),{envelope:v,states:$,callbacks:x}=T(Jr,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.referrals}),{limit:e.perPage,offset:0},{referralFilter:d,rewardFilter:u},e.showReferrer&&f&&!h||!(null==i?void 0:i.jwt));s((()=>{0===$.currentPage&&b&&x.setLimit(e.perPage-1)}),[b]),s((()=>{e.showReferrer&&b?(x.setLimit(e.perPage-1),x.setCurrentPage(0)):(x.setLimit(e.perPage),x.setCurrentPage(0))}),[e.showReferrer]);const q=ee(),C=null==v?void 0:v.data,D=Ur();return s((()=>{p({loading:!0}),v&&async function(e){const t=e.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),r=null==t?void 0:t.map((async e=>Xr(e,(()=>e.renderLabel()))));let n;if(b&&0===$.currentPage){const e=null==t?void 0:t.map((async e=>Xr(e,(function(){return e.renderReferrerCell(g,e)}))));n=await Promise.all(e)}const a=null==C?void 0:C.map((async e=>{const r=null==t?void 0:t.map((async t=>Xr(t,(()=>t.renderCell(e,t)))));return await Promise.all(r)})),i=a&&[n,...await Promise.all(a)].filter((e=>e));p({rows:i});const s=r&&await Promise.all(r);p({columns:s,loading:!1,page:$.currentPage})}(D)}),[v,D,q]),{states:{hasNext:$.currentPage<$.pageCount-1,hasPrev:$.currentPage>0,loading:$.loading||m.loading},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:C},elements:{columns:m.columns,rows:m.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:()=>{0===$.currentPage&&b&&x.setLimit(e.perPage),x.setCurrentPage($.currentPage+1)},prevPage:()=>{1===$.currentPage&&b&&x.setLimit(e.perPage-1),x.setCurrentPage($.currentPage-1)}}}}(this,t,r);return e(zr,{states:n,data:a,callbacks:i,elements:o})}};function Qr(){return e("slot",{name:"loading"},e(Kr,null),e(Kr,null),e(Kr,null),e(Kr,null))}function Kr(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))}function en(){return e("slot",{name:"empty"},e("div",{style:{width:"100%"}},e("sqm-text",null,e("h3",{style:{color:"#777777"}},"No Referrals Yet"))))}const tn=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){return e("div",{innerHTML:this.innerTemplate})}};var rn=m((function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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(e){return!1}}function d(e,t,r){return(d=l()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&o(a,r.prototype),a}).apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(u(Error)),h=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return i(t,e),t}(p),f=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return i(t,e),t}(p),g=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return i(t,e),t}(p),b=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(p),v=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return i(t,e),t}(p),y=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(p),w=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return i(t,e),t}(p),$="numeric",x="short",q="long",C={year:$,month:$,day:$},D={year:$,month:x,day:$},E={year:$,month:x,day:$,weekday:x},k={year:$,month:q,day:$},A={year:$,month:q,day:$,weekday:q},S={hour:$,minute:$},T={hour:$,minute:$,second:$},F={hour:$,minute:$,second:$,timeZoneName:x},R={hour:$,minute:$,second:$,timeZoneName:q},P={hour:$,minute:$,hourCycle:"h23"},I={hour:$,minute:$,second:$,hourCycle:"h23"},B={hour:$,minute:$,second:$,hourCycle:"h23",timeZoneName:x},N={hour:$,minute:$,second:$,hourCycle:"h23",timeZoneName:q},L={year:$,month:$,day:$,hour:$,minute:$},O={year:$,month:$,day:$,hour:$,minute:$,second:$},M={year:$,month:x,day:$,hour:$,minute:$},j={year:$,month:x,day:$,hour:$,minute:$,second:$},_={year:$,month:x,day:$,weekday:x,hour:$,minute:$},V={year:$,month:q,day:$,hour:$,minute:$,timeZoneName:x},G={year:$,month:q,day:$,hour:$,minute:$,second:$,timeZoneName:x},H={year:$,month:q,day:$,weekday:q,hour:$,minute:$,timeZoneName:q},W={year:$,month:q,day:$,weekday:q,hour:$,minute:$,second:$,timeZoneName:q};function z(e){return void 0===e}function U(e){return"number"==typeof e}function Z(e){return"number"==typeof e&&e%1==0}function J(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function X(e,t,r){if(0!==e.length)return e.reduce((function(e,n){var a=[t(n),n];return e&&r(e[0],a[0])===e[0]?e:a}),null)[1]}function Y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t,r){return Z(e)&&e>=t&&e<=r}function K(e,t){void 0===t&&(t=2);var r=e<0?"-":"",n=r?-1*e:e;return""+r+(n.toString().length<t?("0".repeat(t)+n).slice(-t):n.toString())}function ee(e){return z(e)||null===e||""===e?void 0:parseInt(e,10)}function te(e){if(!z(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function re(e,t,r){void 0===r&&(r=!1);var n=Math.pow(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function ne(e){return e%4==0&&(e%100!=0||e%400==0)}function ae(e){return ne(e)?366:365}function ie(e,t){var r,n=(r=t-1)-12*Math.floor(r/12)+1;return 2===n?ne(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function se(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function oe(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===n?53:52}function le(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,r,n){void 0===n&&(n=null);var i=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(s.timeZone=n);var o=a({timeZoneName:t},s),l=new Intl.DateTimeFormat(r,o).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}function ue(e,t){var r=parseInt(e,10);Number.isNaN(r)&&(r=0);var n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function ce(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new y("Invalid unit value "+e);return t}function me(e,t){var r={};for(var n in e)if(Y(e,n)){var a=e[n];if(null==a)continue;r[t(n)]=ce(a)}return r}function pe(e,t){var r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return""+a+K(r,2)+":"+K(n,2);case"narrow":return""+a+r+(n>0?":"+n:"");case"techie":return""+a+K(r,2)+K(n,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function he(e){return function(e){return["hour","minute","second","millisecond"].reduce((function(t,r){return t[r]=e[r],t}),{})}(e)}var fe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,ge=["January","February","March","April","May","June","July","August","September","October","November","December"],be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ve=["J","F","M","A","M","J","J","A","S","O","N","D"];function ye(e){switch(e){case"narrow":return[].concat(ve);case"short":return[].concat(be);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var we=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$e=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],xe=["M","T","W","T","F","S","S"];function qe(e){switch(e){case"narrow":return[].concat(xe);case"short":return[].concat($e);case"long":return[].concat(we);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ce=["AM","PM"],De=["Before Christ","Anno Domini"],Ee=["BC","AD"],ke=["B","A"];function Ae(e){switch(e){case"narrow":return[].concat(ke);case"short":return[].concat(Ee);case"long":return[].concat(De);default:return null}}function Se(e,t){for(var r,n="",a=m(e);!(r=a()).done;){var i=r.value;n+=i.literal?i.val:t(i.val)}return n}var Te={D:C,DD:D,DDD:k,DDDD:A,t:S,tt:T,ttt:F,tttt:R,T:P,TT:I,TTT:B,TTTT:N,f:L,ff:M,fff:V,ffff:H,F:O,FF:j,FFF:G,FFFF:W},Fe=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,r){return void 0===r&&(r={}),new e(t,r)},e.parseFormat=function(e){for(var t=null,r="",n=!1,a=[],i=0;i<e.length;i++){var s=e.charAt(i);"'"===s?(r.length>0&&a.push({literal:n,val:r}),t=null,r="",n=!n):n||s===t?r+=s:(r.length>0&&a.push({literal:!1,val:r}),r=s,t=s)}return r.length>0&&a.push({literal:n,val:r}),a},e.macroTokenToFormatOpts=function(e){return Te[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,a({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,a({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,a({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,a({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return K(e,t);var r=a({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)},t.formatDateTimeFromString=function(t,r){var n=this,a="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=function(e,r){return n.loc.extract(t,e,r)},o=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(e,r){return a?function(e,t){return ye(t)[e.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month")},d=function(e,r){return a?function(e,t){return qe(t)[e.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){return a?function(e,t){return Ae(t)[e.year<0?0:1]}(t,e):s({era:e},"era")};return Se(e.parseFormat(r),(function(r){switch(r){case"S":return n.num(t.millisecond);case"u":case"SSS":return n.num(t.millisecond,3);case"s":return n.num(t.second);case"ss":return n.num(t.second,2);case"m":return n.num(t.minute);case"mm":return n.num(t.minute,2);case"h":return n.num(t.hour%12==0?12:t.hour%12);case"hh":return n.num(t.hour%12==0?12:t.hour%12,2);case"H":return n.num(t.hour);case"HH":return n.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return o({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:n.loc.locale});case"z":return t.zoneName;case"a":return a?function(e){return Ce[e.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return i?s({day:"numeric"},"day"):n.num(t.day);case"dd":return i?s({day:"2-digit"},"day"):n.num(t.day,2);case"c":return n.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return n.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):n.num(t.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):n.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?s({month:"numeric"},"month"):n.num(t.month);case"MM":return i?s({month:"2-digit"},"month"):n.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?s({year:"numeric"},"year"):n.num(t.year);case"yy":return i?s({year:"2-digit"},"year"):n.num(t.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):n.num(t.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):n.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return n.num(t.weekYear.toString().slice(-2),2);case"kkkk":return n.num(t.weekYear,4);case"W":return n.num(t.weekNumber);case"WW":return n.num(t.weekNumber,2);case"o":return n.num(t.ordinal);case"ooo":return n.num(t.ordinal,3);case"q":return n.num(t.quarter);case"qq":return n.num(t.quarter,2);case"X":return n.num(Math.floor(t.ts/1e3));case"x":return n.num(t.ts);default:return function(r){var a=e.macroTokenToFormatOpts(r);return a?n.formatWithSystemDefault(t,a):r}(r)}}))},t.formatDurationFromString=function(t,r){var n,a=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},s=e.parseFormat(r),o=s.reduce((function(e,t){return t.literal?e:e.concat(t.val)}),[]),l=t.shiftTo.apply(t,o.map(i).filter((function(e){return e})));return Se(s,(n=l,function(e){var t=i(e);return t?a.num(n.get(t),e.length):e}))},e}(),Re=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Pe=function(){function e(){}var t=e.prototype;return t.offsetName=function(){throw new w},t.formatOffset=function(){throw new w},t.offset=function(){throw new w},t.equals=function(){throw new w},n(e,[{key:"type",get:function(){throw new w}},{key:"name",get:function(){throw new w}},{key:"isUniversal",get:function(){throw new w}},{key:"isValid",get:function(){throw new w}}]),e}(),Ie=null,Be=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.offsetName=function(e,t){return de(e,t.format,t.locale)},r.formatOffset=function(e,t){return pe(this.offset(e),t)},r.offset=function(e){return-new Date(e).getTimezoneOffset()},r.equals=function(e){return"system"===e.type},n(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ie&&(Ie=new t),Ie}}]),t}(Pe),Ne=RegExp("^"+fe.source+"$"),Le={},Oe={year:0,month:1,day:2,hour:3,minute:4,second:5},Me={},je=function(e){function t(r){var n;return(n=e.call(this)||this).zoneName=r,n.valid=t.isValidZone(r),n}i(t,e),t.create=function(e){return Me[e]||(Me[e]=new t(e)),Me[e]},t.resetCache=function(){Me={},Le={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Ne))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var r=t.prototype;return r.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},r.formatOffset=function(e,t){return pe(this.offset(e),t)},r.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var r,n=(Le[r=this.name]||(Le[r]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Le[r]),a=n.formatToParts?function(e,t){for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var i=r[a],s=i.value,o=Oe[i.type];z(o)||(n[o]=parseInt(s,10))}return n}(n,t):function(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}(n,t),i=+t,s=i%1e3;return(se({year:a[0],month:a[1],day:a[2],hour:a[3],minute:a[4],second:a[5],millisecond:0})-(i-=s>=0?s:1e3+s))/6e4},r.equals=function(e){return"iana"===e.type&&e.name===this.name},n(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Pe),_e=null,Ve=function(e){function t(t){var r;return(r=e.call(this)||this).fixed=t,r}i(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(ue(r[1],r[2]))}return null};var r=t.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(e,t){return pe(this.fixed,t)},r.offset=function(){return this.fixed},r.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},n(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+pe(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===_e&&(_e=new t(0)),_e}}]),t}(Pe),Ge=function(e){function t(t){var r;return(r=e.call(this)||this).zoneName=t,r}i(t,e);var r=t.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},n(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Pe);function He(e,t){var r;if(z(e)||null===e)return t;if(e instanceof Pe)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n||"system"===n?t:"utc"===n||"gmt"===n?Ve.utcInstance:null!=(r=je.parseGMTOffset(e))?Ve.instance(r):je.isValidSpecifier(n)?je.create(e):Ve.parseSpecifier(n)||new Ge(e)}return U(e)?Ve.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ge(e)}var We,ze=function(){return Date.now()},Ue="system",Ze=null,Je=null,Xe=null,Ye=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),je.resetCache()},n(e,null,[{key:"now",get:function(){return ze},set:function(e){ze=e}},{key:"defaultZone",get:function(){return He(Ue,Be.instance)},set:function(e){Ue=e}},{key:"defaultLocale",get:function(){return Ze},set:function(e){Ze=e}},{key:"defaultNumberingSystem",get:function(){return Je},set:function(e){Je=e}},{key:"defaultOutputCalendar",get:function(){return Xe},set:function(e){Xe=e}},{key:"throwOnInvalid",get:function(){return We},set:function(e){We=e}}]),e}(),Qe=["base"],Ke={};function et(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),n=Ke[r];return n||(n=new Intl.DateTimeFormat(e,t),Ke[r]=n),n}var tt={},rt={};var nt=null;function at(e,t,r,n,a){var i=e.listingMode(r);return"error"===i?null:"en"===i?n(t):a(t)}var it=function(){function e(e,t,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!t){var n={useGrouping:!1};r.padTo>0&&(n.minimumIntegerDigits=r.padTo),this.inf=function(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),n=tt[r];return n||(n=new Intl.NumberFormat(e,t),tt[r]=n),n}(e,n)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return K(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),st=function(){function e(e,t,r){var n;if(this.opts=r,e.zone.isUniversal){var i=e.offset/60*-1,s=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,o=je.isValidZone(s);0!==e.offset&&o?(n=s,this.dt=e):(n="UTC",this.dt=r.timeZoneName||0===e.offset?e:on.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,n=e.zone.name);var l=a({},this.opts);n&&(l.timeZone=n),this.dtf=et(t,l)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),ot=function(){function e(e,t,r){this.opts=a({style:"long"},r),!t&&J()&&(this.rtf=function(e,t){void 0===t&&(t={});var r=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(t,Qe),n=JSON.stringify([e,r]),a=rt[n];return a||(a=new Intl.RelativeTimeFormat(e,t),rt[n]=a),a}(e,r))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r,n){void 0===r&&(r="always"),void 0===n&&(n=!1);var a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&i){var s="days"===e;switch(t){case 1:return s?"tomorrow":"next "+a[e][0];case-1:return s?"yesterday":"last "+a[e][0];case 0:return s?"today":"this "+a[e][0]}}var o=Object.is(t,-0)||t<0,l=Math.abs(t),d=1===l,u=a[e],c=n?d?u[1]:u[2]||u[1]:d?a[e][0]:e;return o?l+" "+c+" ago":"in "+l+" "+c}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),lt=function(){function e(e,t,r,n){var a=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var r,n=e.substring(0,t);try{r=et(e).resolvedOptions()}catch(e){r=et(n).resolvedOptions()}return[n,r.numberingSystem,r.calendar]}(e),i=a[1],s=a[2];this.locale=a[0],this.numberingSystem=t||i||null,this.outputCalendar=r||s||null,this.intl=function(e,t,r){return r||t?(e+="-u",r&&(e+="-ca-"+r),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,r,n,a){void 0===a&&(a=!1);var i=t||Ye.defaultLocale;return new e(i||(a?"en-US":nt||(nt="en-US")),r||Ye.defaultNumberingSystem,n||Ye.defaultOutputCalendar,i)},e.resetCache=function(){nt=null,Ke={},tt={},rt={}},e.fromObject=function(t){var r=void 0===t?{}:t;return e.create(r.locale,r.numberingSystem,r.outputCalendar)};var t=e.prototype;return t.listingMode=function(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(a({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(a({},e,{defaultToEN:!1}))},t.months=function(e,t,r){var n=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),at(this,e,r,ye,(function(){var r=t?{month:e,day:"numeric"}:{month:e},a=t?"format":"standalone";return n.monthsCache[a][e]||(n.monthsCache[a][e]=function(e){for(var t=[],r=1;r<=12;r++){var n=on.utc(2016,r,1);t.push(e(n))}return t}((function(e){return n.extract(e,r,"month")}))),n.monthsCache[a][e]}))},t.weekdays=function(e,t,r){var n=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),at(this,e,r,qe,(function(){var r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=t?"format":"standalone";return n.weekdaysCache[a][e]||(n.weekdaysCache[a][e]=function(e){for(var t=[],r=1;r<=7;r++){var n=on.utc(2016,11,13+r);t.push(e(n))}return t}((function(e){return n.extract(e,r,"weekday")}))),n.weekdaysCache[a][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),at(this,void 0,e,(function(){return Ce}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[on.utc(2016,11,13,9),on.utc(2016,11,13,19)].map((function(r){return t.extract(r,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var r=this;return void 0===t&&(t=!0),at(this,e,t,Ae,(function(){var t={era:e};return r.eraCache[e]||(r.eraCache[e]=[on.utc(-40,1,1),on.utc(2017,1,1)].map((function(e){return r.extract(e,t,"era")}))),r.eraCache[e]}))},t.extract=function(e,t,r){var n=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===r}));return n?n.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new it(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new st(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ot(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},n(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function dt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+n+"$")}function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce((function(t,r){var n=t[0],i=t[1],s=r(e,t[2]),o=s[1],l=s[2];return[a({},n,s[0]),i||o,l]}),[{},null,1]).slice(0,2)}}function ct(e){if(null==e)return[null,null];for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var a=0,i=r;a<i.length;a++){var s=i[a],o=s[0],l=s[1],d=o.exec(e);if(d)return l(d)}return[null,null]}function mt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n,a={};for(n=0;n<t.length;n++)a[t[n]]=ee(e[r+n]);return[a,null,r+n]}}var pt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ht=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ft=RegExp(""+ht.source+pt.source+"?"),gt=RegExp("(?:T"+ft.source+")?"),bt=mt("weekYear","weekNumber","weekDay"),vt=mt("year","ordinal"),yt=RegExp(ht.source+" ?(?:"+pt.source+"|("+fe.source+"))?"),wt=RegExp("(?: "+yt.source+")?");function $t(e,t,r){var n=e[t];return z(n)?r:ee(n)}function xt(e,t){return[{year:$t(e,t),month:$t(e,t+1,1),day:$t(e,t+2,1)},null,t+3]}function qt(e,t){return[{hours:$t(e,t,0),minutes:$t(e,t+1,0),seconds:$t(e,t+2,0),milliseconds:te(e[t+3])},null,t+4]}function Ct(e,t){var r=!e[t]&&!e[t+1],n=ue(e[t+1],e[t+2]);return[{},r?null:Ve.instance(n),t+3]}function Dt(e,t){return[{},e[t]?je.create(e[t]):null,t+1]}var Et=RegExp("^T?"+ht.source+"$"),kt=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function At(e){var t=e[2],r=e[3],n=e[4],a=e[5],i=e[6],s=e[7],o=e[8],l="-"===e[0][0],d=s&&"-"===s[0],u=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&l)?-e:e};return[{years:u(ee(e[1])),months:u(ee(t)),weeks:u(ee(r)),days:u(ee(n)),hours:u(ee(a)),minutes:u(ee(i)),seconds:u(ee(s),"-0"===s),milliseconds:u(te(o),d)}]}var St={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e,t,r,n,a,i,s){var o={year:2===t.length?le(ee(t)):ee(t),month:be.indexOf(r)+1,day:ee(n),hour:ee(a),minute:ee(i)};return s&&(o.second=ee(s)),e&&(o.weekday=e.length>3?we.indexOf(e)+1:$e.indexOf(e)+1),o}var Ft=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Rt(e){var t,r=e[8],n=e[9],a=e[10],i=e[11],s=Tt(e[1],e[4],e[3],e[2],e[5],e[6],e[7]);return t=r?St[r]:n?0:ue(a,i),[s,new Ve(t)]}var Pt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,It=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Bt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Nt(e){return[Tt(e[1],e[4],e[3],e[2],e[5],e[6],e[7]),Ve.utcInstance]}function Lt(e){return[Tt(e[1],e[7],e[2],e[3],e[4],e[5],e[6]),Ve.utcInstance]}var Ot=dt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gt),Mt=dt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,gt),jt=dt(/(\d{4})-?(\d{3})/,gt),_t=dt(ft),Vt=ut(xt,qt,Ct),Gt=ut(bt,qt,Ct),Ht=ut(vt,qt,Ct),Wt=ut(qt,Ct),zt=ut(qt),Ut=dt(/(\d{4})-(\d\d)-(\d\d)/,wt),Zt=dt(yt),Jt=ut(xt,qt,Ct,Dt),Xt=ut(qt,Ct,Dt),Yt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Qt=a({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Yt),Kt=a({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Yt),er=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tr=er.slice(0).reverse();function rr(e,t,r){void 0===r&&(r=!1);var n={values:r?t.values:a({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new ar(n)}function nr(e,t,r,n,a){var i=e[a][r],s=t[r]/i,o=Math.sign(s)!==Math.sign(n[a])&&0!==n[a]&&Math.abs(s)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(s):Math.trunc(s);n[a]+=o,t[r]-=o*i}var ar=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Kt:Qt,this.isLuxonDuration=!0}e.fromMillis=function(t,r){return e.fromObject({milliseconds:t},r)},e.fromObject=function(t,r){if(void 0===r&&(r={}),null==t||"object"!=typeof t)throw new y("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:me(t,e.normalizeUnit),loc:lt.fromObject(r),conversionAccuracy:r.conversionAccuracy})},e.fromISO=function(t,r){var n=function(e){return ct(e,[kt,At])}(t)[0];return n?e.fromObject(n,r):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,r){var n=function(e){return ct(e,[Et,zt])}(t)[0];return n?e.fromObject(n,r):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new y("need to specify a reason the Duration is invalid");var n=t instanceof Re?t:new Re(t,r);if(Ye.throwOnInvalid)throw new g(n);return new e({invalid:n})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new v(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var r=a({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Fe.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(){return this.isValid?a({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=re(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=a({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));var i=r.toFormat(n);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,r=ir(e),n={},a=m(er);!(t=a()).done;){var i=t.value;(Y(r.values,i)||Y(this.values,i))&&(n[i]=r.get(i)+this.get(i))}return rr(this,{values:n},!0)},t.minus=function(e){if(!this.isValid)return this;var t=ir(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},r=0,n=Object.keys(this.values);r<n.length;r++){var a=n[r];t[a]=ce(e(this.values[a],a))}return rr(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?rr(this,{values:a({},this.values,me(t,e.normalizeUnit))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,r=t.conversionAccuracy,n={loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem})};return r&&(n.conversionAccuracy=r),rr(this,n)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){tr.reduce((function(r,n){return z(t[n])?r:(r&&nr(e,t,r,t,n),n)}),null)}(this.matrix,e),rr(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!this.isValid)return this;if(0===r.length)return this;r=r.map((function(t){return e.normalizeUnit(t)}));for(var a,i,s={},o={},l=this.toObject(),d=m(er);!(i=d()).done;){var u=i.value;if(r.indexOf(u)>=0){a=u;var c=0;for(var p in o)c+=this.matrix[p][u]*o[p],o[p]=0;U(l[u])&&(c+=l[u]);var h=Math.trunc(c);for(var f in s[u]=h,o[u]=c-h,l)er.indexOf(f)>er.indexOf(u)&&nr(this.matrix,l,f,s,u)}else U(l[u])&&(o[u]=l[u])}for(var g in o)0!==o[g]&&(s[a]+=g===a?o[g]:o[g]/this.matrix[a][g]);return rr(this,{values:s},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,r=Object.keys(this.values);t<r.length;t++){var n=r[t];e[n]=-this.values[n]}return rr(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,r=m(er);!(t=r()).done;){var n=t.value;if(i=e.values[n],!(void 0===(a=this.values[n])||0===a?void 0===i||0===i:a===i))return!1}var a,i;return!0},n(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function ir(e){if(U(e))return ar.fromMillis(e);if(ar.isDuration(e))return e;if("object"==typeof e)return ar.fromObject(e);throw new y("Unknown duration argument "+e+" of type "+typeof e)}var sr="Invalid Interval";function or(e,t){return e&&e.isValid?t&&t.isValid?t<e?lr.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:lr.invalid("missing or invalid end"):lr.invalid("missing or invalid start")}var lr=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new y("need to specify a reason the Interval is invalid");var n=t instanceof Re?t:new Re(t,r);if(Ye.throwOnInvalid)throw new f(n);return new e({invalid:n})},e.fromDateTimes=function(t,r){var n=ln(t),a=ln(r),i=or(n,a);return null==i?new e({start:n,end:a}):i},e.after=function(t,r){var n=ir(r),a=ln(t);return e.fromDateTimes(a,a.plus(n))},e.before=function(t,r){var n=ir(r),a=ln(t);return e.fromDateTimes(a.minus(n),a)},e.fromISO=function(t,r){var n=(t||"").split("/",2),a=n[0],i=n[1];if(a&&i){var s,o,l,d;try{o=(s=on.fromISO(a,r)).isValid}catch(i){o=!1}try{d=(l=on.fromISO(i,r)).isValid}catch(i){d=!1}if(o&&d)return e.fromDateTimes(s,l);if(o){var u=ar.fromISO(i,r);if(u.isValid)return e.after(s,u)}else if(d){var c=ar.fromISO(a,r);if(c.isValid)return e.before(l,c)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var r=void 0===t?{}:t;return this.isValid?e.fromDateTimes(r.start||this.s,r.end||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];for(var i=n.map(ln).filter((function(e){return t.contains(e)})).sort(),s=[],o=this.s,l=0;o<this.e;){var d=i[l]||this.e,u=+d>+this.e?this.e:d;s.push(e.fromDateTimes(o,u)),o=u,l+=1}return s},t.splitBy=function(t){var r=ir(t);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var n,a=this.s,i=1,s=[];a<this.e;){var o=this.start.plus(r.mapUnits((function(e){return e*i})));s.push(e.fromDateTimes(a,n=+o>+this.e?this.e:o)),a=n,i+=1}return s},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)},t.union=function(t){return this.isValid?e.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var r=e[0],n=e[1];return n?n.overlaps(t)||n.abutsStart(t)?[r,n.union(t)]:[r.concat([n]),t]:[r,t]}),[[],null]),r=t[0],n=t[1];return n&&r.push(n),r},e.xor=function(t){for(var r,n,a=null,i=0,s=[],o=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=m((r=Array.prototype).concat.apply(r,o).sort((function(e,t){return e.time-t.time})));!(n=l()).done;){var d=n.value;1===(i+="s"===d.type?1:-1)?a=d.time:(a&&+a!=+d.time&&s.push(e.fromDateTimes(a,d.time)),a=null)}return e.merge(s)},t.difference=function(){for(var t=this,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return e.xor([this].concat(n)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":sr},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):sr},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():sr},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):sr},t.toFormat=function(e,t){var r=(void 0===t?{}:t).separator,n=void 0===r?" – ":r;return this.isValid?""+this.s.toFormat(e)+n+this.e.toFormat(e):sr},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):ar.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},n(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),dr=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Ye.defaultZone);var t=on.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return je.isValidSpecifier(e)&&je.isValidZone(e)},e.normalizeZone=function(e){return He(e,Ye.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj,s=r.outputCalendar;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,void 0===s?"gregory":s)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj,s=r.outputCalendar;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,void 0===s?"gregory":s)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale;return lt.create(void 0===t?null:t).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var r=(void 0===t?{}:t).locale;return lt.create(void 0===r?null:r,null,"gregory").eras(e)},e.features=function(){return{relative:J()}},e}();function ur(e,t){var r=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=r(t)-r(e);return Math.floor(ar.fromMillis(n).as("days"))}var cr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},mr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},pr=cr.hanidec.replace(/[\[|\]]/g,"").split("");function hr(e,t){return void 0===t&&(t=""),new RegExp(""+cr[e.numberingSystem||"latn"]+t)}function fr(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(-1!==e[r].search(cr.hanidec))t+=pr.indexOf(e[r]);else for(var a in mr){var i=mr[a],s=i[0];n>=s&&n<=i[1]&&(t+=n-s)}}return parseInt(t,10)}return t}(e[0]))}}}var gr="( |"+String.fromCharCode(160)+")",br=new RegExp(gr,"g");function vr(e){return e.replace(/\./g,"\\.?").replace(br,gr)}function yr(e){return e.replace(/\./g,"").replace(br," ").toLowerCase()}function wr(e,t){return null===e?null:{regex:RegExp(e.map(vr).join("|")),deser:function(r){var n=r[0];return e.findIndex((function(e){return yr(n)===yr(e)}))+t}}}function $r(e,t){return{regex:e,deser:function(e){return ue(e[1],e[2])},groups:t}}function xr(e){return{regex:e,deser:function(e){return e[0]}}}var qr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Cr=null;function Dr(e,t,r){var n=function(e,t){var r;return(r=Array.prototype).concat.apply(r,e.map((function(e){return function(e,t){if(e.literal)return e;var r=Fe.macroTokenToFormatOpts(e.val);if(!r)return e;var n=Fe.create(t,r).formatDateTimeParts((Cr||(Cr=on.fromMillis(1555555555555)),Cr)).map((function(e){return function(e,t,r){var n=e.type;if("literal"===n)return{literal:!0,val:e.value};var a=qr[n];return"object"==typeof a&&(a=a[r[n]]),a?{literal:!1,val:a}:void 0}(e,0,r)}));return n.includes(void 0)?e:n}(e,t)})))}(Fe.parseFormat(r),e),a=n.map((function(t){return r=t,a=hr(n=e),i=hr(n,"{2}"),s=hr(n,"{3}"),o=hr(n,"{4}"),l=hr(n,"{6}"),d=hr(n,"{1,2}"),u=hr(n,"{1,3}"),c=hr(n,"{1,6}"),m=hr(n,"{1,9}"),p=hr(n,"{2,4}"),h=hr(n,"{4,6}"),f=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(g=function(e){if(r.literal)return f(e);switch(e.val){case"G":return wr(n.eras("short",!1),0);case"GG":return wr(n.eras("long",!1),0);case"y":return fr(c);case"yy":return fr(p,le);case"yyyy":return fr(o);case"yyyyy":return fr(h);case"yyyyyy":return fr(l);case"M":return fr(d);case"MM":return fr(i);case"MMM":return wr(n.months("short",!0,!1),1);case"MMMM":return wr(n.months("long",!0,!1),1);case"L":return fr(d);case"LL":return fr(i);case"LLL":return wr(n.months("short",!1,!1),1);case"LLLL":return wr(n.months("long",!1,!1),1);case"d":return fr(d);case"dd":return fr(i);case"o":return fr(u);case"ooo":return fr(s);case"HH":return fr(i);case"H":return fr(d);case"hh":return fr(i);case"h":return fr(d);case"mm":return fr(i);case"m":case"q":return fr(d);case"qq":return fr(i);case"s":return fr(d);case"ss":return fr(i);case"S":return fr(u);case"SSS":return fr(s);case"u":return xr(m);case"a":return wr(n.meridiems(),0);case"kkkk":return fr(o);case"kk":return fr(p,le);case"W":return fr(d);case"WW":return fr(i);case"E":case"c":return fr(a);case"EEE":return wr(n.weekdays("short",!1,!1),1);case"EEEE":return wr(n.weekdays("long",!1,!1),1);case"ccc":return wr(n.weekdays("short",!0,!1),1);case"cccc":return wr(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return $r(new RegExp("([+-]"+d.source+")(?::("+i.source+"))?"),2);case"ZZZ":return $r(new RegExp("([+-]"+d.source+")("+i.source+")?"),2);case"z":return xr(/[a-z_+-/]{1,256}?/i);default:return f(e)}}(r)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=r,g;var r,n,a,i,s,o,l,d,u,c,m,p,h,f,g})),i=a.find((function(e){return e.invalidReason}));if(i)return{input:t,tokens:n,invalidReason:i.invalidReason};var s=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(a),o=s[1],l=RegExp(s[0],"i"),d=function(e,t,r){var n=e.match(t);if(n){var a={},i=1;for(var s in r)if(Y(r,s)){var o=r[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(a[o.token.val[0]]=o.deser(n.slice(i,i+l))),i+=l}return[n,a]}return[n,{}]}(t,l,o),u=d[0],c=d[1],m=c?function(e){var t;return t=z(e.Z)?z(e.z)?null:je.create(e.z):new Ve(e.Z),z(e.q)||(e.M=3*(e.q-1)+1),z(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),z(e.u)||(e.S=te(e.u)),[Object.keys(e).reduce((function(t,r){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(r);return n&&(t[n]=e[r]),t}),{}),t]}(c):[null,null],p=m[0],h=m[1];if(Y(c,"a")&&Y(c,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:l,rawMatches:u,matches:c,result:p,zone:h}}var Er=[0,31,59,90,120,151,181,212,243,273,304,334],kr=[0,31,60,91,121,152,182,213,244,274,305,335];function Ar(e,t){return new Re("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Sr(e,t,r){var n=new Date(Date.UTC(e,t-1,r)).getUTCDay();return 0===n?7:n}function Tr(e,t,r){return r+(ne(e)?kr:Er)[t-1]}function Fr(e,t){var r=ne(e)?kr:Er,n=r.findIndex((function(e){return e<t}));return{month:n+1,day:t-r[n]}}function Rr(e){var t,r=e.year,n=e.month,i=e.day,s=Tr(r,n,i),o=Sr(r,n,i),l=Math.floor((s-o+10)/7);return l<1?l=oe(t=r-1):l>oe(r)?(t=r+1,l=1):t=r,a({weekYear:t,weekNumber:l,weekday:o},he(e))}function Pr(e){var t,r=e.weekYear,n=e.weekNumber,i=e.weekday,s=Sr(r,1,4),o=ae(r),l=7*n+i-s-3;l<1?l+=ae(t=r-1):l>o?(t=r+1,l-=ae(r)):t=r;var d=Fr(t,l);return a({year:t,month:d.month,day:d.day},he(e))}function Ir(e){var t=e.year;return a({year:t,ordinal:Tr(t,e.month,e.day)},he(e))}function Br(e){var t=e.year,r=Fr(t,e.ordinal);return a({year:t,month:r.month,day:r.day},he(e))}function Nr(e){var t=Z(e.year),r=Q(e.month,1,12),n=Q(e.day,1,ie(e.year,e.month));return t?r?!n&&Ar("day",e.day):Ar("month",e.month):Ar("year",e.year)}function Lr(e){var t=e.hour,r=e.minute,n=e.second,a=e.millisecond,i=Q(t,0,23)||24===t&&0===r&&0===n&&0===a,s=Q(r,0,59),o=Q(n,0,59),l=Q(a,0,999);return i?s?o?!l&&Ar("millisecond",a):Ar("second",n):Ar("minute",r):Ar("hour",t)}var Or="Invalid DateTime",Mr=864e13;function jr(e){return new Re("unsupported zone",'the zone "'+e.name+'" is not supported')}function _r(e){return null===e.weekData&&(e.weekData=Rr(e.c)),e.weekData}function Vr(e,t){var r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new on(a({},r,t,{old:r}))}function Gr(e,t,r){var n=e-60*t*1e3,a=r.offset(n);if(t===a)return[n,t];var i=r.offset(n-=60*(a-t)*1e3);return a===i?[n,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}function Hr(e,t){var r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Wr(e,t,r){return Gr(se(e),t,r)}function zr(e,t){var r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s=a({},e.c,{year:n,month:i,day:Math.min(e.c.day,ie(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),o=ar.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=Gr(se(s),r,e.zone),d=l[0],u=l[1];return 0!==o&&(u=e.zone.offset(d+=o)),{ts:d,o:u}}function Ur(e,t,r,n,i){var s=r.setZone,o=r.zone;if(e&&0!==Object.keys(e).length){var l=on.fromObject(e,a({},r,{zone:t||o,setZone:void 0}));return s?l:l.setZone(o)}return on.invalid(new Re("unparsable",'the input "'+i+"\" can't be parsed as "+n))}function Zr(e,t,r){return void 0===r&&(r=!0),e.isValid?Fe.create(lt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Jr(e,t){var r=t.suppressSeconds,n=t.suppressMilliseconds,a=t.includeOffset,i=t.includePrefix,s=void 0!==i&&i,o=t.includeZone,l=void 0!==o&&o,d=t.spaceZone,u=t.format,c=void 0===u?"extended":u,m="basic"===c?"HHmm":"HH:mm";void 0!==r&&r&&0===e.second&&0===e.millisecond||(m+="basic"===c?"ss":":ss",void 0!==n&&n&&0===e.millisecond||(m+=".SSS")),(l||a)&&void 0!==d&&d&&(m+=" "),l?m+="z":a&&(m+="basic"===c?"ZZZ":"ZZ");var p=Zr(e,m);return s&&(p="T"+p),p}var Xr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Yr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Qr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Kr=["year","month","day","hour","minute","second","millisecond"],en=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],tn=["year","ordinal","hour","minute","second","millisecond"];function rn(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new v(e);return t}function nn(e,t){var r,n,a=He(t.zone,Ye.defaultZone),i=lt.fromObject(t),s=Ye.now();if(z(e.year))r=s;else{for(var o,l=m(Kr);!(o=l()).done;){var d=o.value;z(e[d])&&(e[d]=Xr[d])}var u=Nr(e)||Lr(e);if(u)return on.invalid(u);var c=Wr(e,a.offset(s),a);r=c[0],n=c[1]}return new on({ts:r,zone:a,loc:i,o:n})}function an(e,t,r){var n=!!z(r.round)||r.round,a=function(e,a){return e=re(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,a)},i=function(n){return r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n)};if(r.unit)return a(i(r.unit),r.unit);for(var s,o=m(r.units);!(s=o()).done;){var l=s.value,d=i(l);if(Math.abs(d)>=1)return a(d,l)}return a(e>t?-0:0,r.units[r.units.length-1])}function sn(e){var t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}var on=function(){function e(e){var t=e.zone||Ye.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new Re("invalid input"):null)||(t.isValid?null:jr(t));this.ts=z(e.ts)?Ye.now():e.ts;var n=null,a=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var i=[e.old.c,e.old.o];n=i[0],a=i[1]}else{var s=t.offset(this.ts);n=Hr(this.ts,s),n=(r=Number.isNaN(n.year)?new Re("invalid input"):null)?null:n,a=r?null:s}this._zone=t,this.loc=e.loc||lt.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=a,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=sn(arguments),t=e[0],r=e[1],n=r[0],a=r[1],i=r[2],s=r[3],o=r[4],l=r[5],d=r[6];return nn({year:n,month:a,day:i,hour:s,minute:o,second:l,millisecond:d},t)},e.utc=function(){var e=sn(arguments),t=e[0],r=e[1],n=r[0],a=r[1],i=r[2],s=r[3],o=r[4],l=r[5],d=r[6];return t.zone=Ve.utcInstance,nn({year:n,month:a,day:i,hour:s,minute:o,second:l,millisecond:d},t)},e.fromJSDate=function(t,r){void 0===r&&(r={});var n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");var a=He(r.zone,Ye.defaultZone);return a.isValid?new e({ts:n,zone:a,loc:lt.fromObject(r)}):e.invalid(jr(a))},e.fromMillis=function(t,r){if(void 0===r&&(r={}),U(t))return t<-Mr||t>Mr?e.invalid("Timestamp out of range"):new e({ts:t,zone:He(r.zone,Ye.defaultZone),loc:lt.fromObject(r)});throw new y("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,r){if(void 0===r&&(r={}),U(t))return new e({ts:1e3*t,zone:He(r.zone,Ye.defaultZone),loc:lt.fromObject(r)});throw new y("fromSeconds requires a numerical input")},e.fromObject=function(t,r){void 0===r&&(r={}),t=t||{};var n=He(r.zone,Ye.defaultZone);if(!n.isValid)return e.invalid(jr(n));var a=Ye.now(),i=n.offset(a),s=me(t,rn),o=!z(s.ordinal),l=!z(s.year),d=!z(s.month)||!z(s.day),u=l||d,c=s.weekYear||s.weekNumber,p=lt.fromObject(r);if((u||o)&&c)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new b("Can't mix ordinal dates with month/day");var h,f,g=c||s.weekday&&!u,v=Hr(a,i);g?(h=en,f=Yr,v=Rr(v)):o?(h=tn,f=Qr,v=Ir(v)):(h=Kr,f=Xr);for(var y,w=!1,$=m(h);!(y=$()).done;){var x=y.value;z(s[x])?s[x]=w?f[x]:v[x]:w=!0}var q=(g?function(e){var t=Z(e.weekYear),r=Q(e.weekNumber,1,oe(e.weekYear)),n=Q(e.weekday,1,7);return t?r?!n&&Ar("weekday",e.weekday):Ar("week",e.week):Ar("weekYear",e.weekYear)}(s):o?function(e){var t=Z(e.year),r=Q(e.ordinal,1,ae(e.year));return t?!r&&Ar("ordinal",e.ordinal):Ar("year",e.year)}(s):Nr(s))||Lr(s);if(q)return e.invalid(q);var C=Wr(g?Pr(s):o?Br(s):s,i,n),D=new e({ts:C[0],zone:n,o:C[1],loc:p});return s.weekday&&u&&t.weekday!==D.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+s.weekday+" and a date of "+D.toISO()):D},e.fromISO=function(e,t){void 0===t&&(t={});var r=function(e){return ct(e,[Ot,Vt],[Mt,Gt],[jt,Ht],[_t,Wt])}(e);return Ur(r[0],r[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var r=function(e){return ct(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Ft,Rt])}(e);return Ur(r[0],r[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var r=function(e){return ct(e,[Pt,Nt],[It,Nt],[Bt,Lt])}(e);return Ur(r[0],r[1],t,"HTTP",t)},e.fromFormat=function(t,r,n){if(void 0===n&&(n={}),z(t)||z(r))throw new y("fromFormat requires an input string and a format");var a,i,s=n.locale,o=n.numberingSystem,l=(a=lt.fromOpts({locale:void 0===s?null:s,numberingSystem:void 0===o?null:o,defaultToEN:!0}),[(i=Dr(a,t,r)).result,i.zone,i.invalidReason]),d=l[0],u=l[1],c=l[2];return c?e.invalid(c):Ur(d,u,n,"format "+r,t)},e.fromString=function(t,r,n){return void 0===n&&(n={}),e.fromFormat(t,r,n)},e.fromSQL=function(e,t){void 0===t&&(t={});var r=function(e){return ct(e,[Ut,Jt],[Zt,Xt])}(e);return Ur(r[0],r[1],t,"SQL",e)},e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new y("need to specify a reason the DateTime is invalid");var n=t instanceof Re?t:new Re(t,r);if(Ye.throwOnInvalid)throw new h(n);return new e({invalid:n})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=Fe.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Ve.instance(e),t)},t.toLocal=function(){return this.setZone(Ye.defaultZone)},t.setZone=function(t,r){var n=void 0===r?{}:r,a=n.keepLocalTime,i=void 0!==a&&a,s=n.keepCalendarTime,o=void 0!==s&&s;if((t=He(t,Ye.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(i||o){var d=t.offset(this.ts);l=Wr(this.toObject(),d,t)[0]}return Vr(this,{ts:l,zone:t})}return e.invalid(jr(t))},t.reconfigure=function(e){var t=void 0===e?{}:e;return Vr(this,{loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.outputCalendar})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,r=me(e,rn),n=!z(r.weekYear)||!z(r.weekNumber)||!z(r.weekday),i=!z(r.ordinal),s=!z(r.year),o=!z(r.month)||!z(r.day);if((s||o||i)&&(r.weekYear||r.weekNumber))throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new b("Can't mix ordinal dates with month/day");n?t=Pr(a({},Rr(this.c),r)):z(r.ordinal)?(t=a({},this.toObject(),r),z(r.day)&&(t.day=Math.min(ie(t.year,t.month),t.day))):t=Br(a({},Ir(this.c),r));var l=Wr(t,this.o,this.zone);return Vr(this,{ts:l[0],o:l[1]})},t.plus=function(e){return this.isValid?Vr(this,zr(this,ir(e))):this},t.minus=function(e){return this.isValid?Vr(this,zr(this,ir(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},r=ar.normalizeUnit(e);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){var n=Math.ceil(this.month/3);t.month=3*(n-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Fe.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Or},t.toLocaleString=function(e,t){return void 0===e&&(e=C),void 0===t&&(t={}),this.isValid?Fe.create(this.loc.clone(t),e).formatDateTime(this):Or},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Fe.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,r="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(r="+"+r),Zr(this,r)},t.toISOWeekDate=function(){return Zr(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,r=t.suppressMilliseconds,n=t.suppressSeconds,a=t.includeOffset,i=t.includePrefix,s=t.format;return Jr(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==r&&r,includeOffset:void 0===a||a,includePrefix:void 0!==i&&i,format:void 0===s?"extended":s})},t.toRFC2822=function(){return Zr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Zr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Zr(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,r=t.includeOffset,n=t.includeZone;return Jr(this,{includeOffset:void 0===r||r,includeZone:void 0!==n&&n,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Or},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=a({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,r){if(void 0===t&&(t="milliseconds"),void 0===r&&(r={}),!this.isValid||!e.isValid)return ar.invalid("created by diffing an invalid DateTime");var n,i=a({locale:this.locale,numberingSystem:this.numberingSystem},r),s=(n=t,Array.isArray(n)?n:[n]).map(ar.normalizeUnit),o=e.valueOf()>this.valueOf(),l=function(e,t,r,n){var a,i=function(e,t,r){for(var n,a,i={},s=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var r=ur(e,t);return(r-r%7)/7}],["days",ur]];s<o.length;s++){var l=o[s],d=l[0],u=l[1];if(r.indexOf(d)>=0){var c;n=d;var m,p=u(e,t);(a=e.plus(((c={})[d]=p,c)))>t?(e=e.plus(((m={})[d]=p-1,m)),p-=1):e=a,i[d]=p}}return[e,i,a,n]}(e,t,r),s=i[0],o=i[1],l=i[2],d=i[3],u=t-s,c=r.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===c.length&&(l<t&&(l=s.plus(((a={})[d]=1,a))),l!==s&&(o[d]=(o[d]||0)+u/(l-s)));var m,p=ar.fromObject(o,n);return c.length>0?(m=ar.fromMillis(u,n)).shiftTo.apply(m,c).plus(p):p}(o?this:e,o?e:this,s,i);return o?l.negate():l},t.diffNow=function(t,r){return void 0===t&&(t="milliseconds"),void 0===r&&(r={}),this.diff(e.now(),t,r)},t.until=function(e){return this.isValid?lr.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=r&&r<=n.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(i=t.unit,s=void 0),an(r,this.plus(n),a({},t,{numeric:"always",units:i,unit:s}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?an(t.base||e.fromObject({},{zone:this.zone}),this,a({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.every(e.isDateTime))throw new y("min requires all arguments be DateTimes");return X(r,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.every(e.isDateTime))throw new y("max requires all arguments be DateTimes");return X(r,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,r){void 0===r&&(r={});var n=r.locale,a=r.numberingSystem;return Dr(lt.fromOpts({locale:void 0===n?null:n,numberingSystem:void 0===a?null:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,r,n){return void 0===n&&(n={}),e.fromFormatExplain(t,r,n)},n(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?_r(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?_r(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?_r(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Ir(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?dr.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?dr.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?dr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?dr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ne(this.year)}},{key:"daysInMonth",get:function(){return ie(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ae(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?oe(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return C}},{key:"DATE_MED",get:function(){return D}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return E}},{key:"DATE_FULL",get:function(){return k}},{key:"DATE_HUGE",get:function(){return A}},{key:"TIME_SIMPLE",get:function(){return S}},{key:"TIME_WITH_SECONDS",get:function(){return T}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return F}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return R}},{key:"TIME_24_SIMPLE",get:function(){return P}},{key:"TIME_24_WITH_SECONDS",get:function(){return I}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return B}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return N}},{key:"DATETIME_SHORT",get:function(){return L}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return O}},{key:"DATETIME_MED",get:function(){return M}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return _}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return G}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),e}();function ln(e){if(on.isDateTime(e))return e;if(e&&e.valueOf&&U(e.valueOf()))return on.fromJSDate(e);if(e&&"object"==typeof e)return on.fromObject(e);throw new y("Unknown datetime argument: "+e+", of type "+typeof e)}t.DateTime=on,t.Duration=ar,t.FixedOffsetZone=Ve,t.IANAZone=je,t.Info=dr,t.Interval=lr,t.InvalidZone=Ge,t.Settings=Ye,t.SystemZone=Be,t.VERSION="2.0.1",t.Zone=Pe}));const nn=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){var t;const r=this.date?null===(t=rn.DateTime.fromMillis(this.date))||void 0===t?void 0:t.toLocaleString(rn.DateTime.DATE_MED):"-";return e(Y,{type:"p"},r)}},an=class{constructor(e){t(this,e)}render(){const t={DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)"}};O.setup(M());const r=O.createStyleSheet(t),n=r.toString(),a=e=>rn.DateTime.fromMillis(e).toRelative().replace("in","").trim();return this.rewards.map((t=>{const i=1===(s=t.statuses).length?s[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"].find((e=>s.includes(e)&&e));var s;const o=(e=>{switch(e){case"REDEEMED":return"primary";case"EXPIRED":case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}})(i),l=(e=>e[0].toUpperCase()+e.slice(1).toLowerCase())(i);return e("sl-details",{class:r.classes.Details,disabled:this.hideDetails},e("style",{type:"text/css"},n),e("div",{slot:"summary",class:r.classes.DetailsContainer},e(Y,{type:"p"},e("span",{class:r.classes.BoldText},t.prettyValue)),e("div",{class:r.classes.BadgeContainer},e("sl-badge",{class:r.classes.StatusBadge,type:o,pill:!0},"PENDING"===i&&t.dateScheduledFor?`${l} for ${a(t.dateScheduledFor)}`:l),t.dateExpires&&"AVAILABLE"===i&&e("sl-badge",{class:r.classes.StatusBadge,type:"info",pill:!0},`Expiring in ${a(t.dateExpires)}`))),e("div",null,t.dateGiven&&e("div",null,e(Y,{type:"p"},"Reward received on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateGiven).toLocaleString(rn.DateTime.DATE_MED)))),"EXPIRED"===i&&t.dateExpires&&e("div",null,e(Y,{type:"p"},"Reward expired on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateExpires).toLocaleString(rn.DateTime.DATE_MED)))),"CANCELLED"===i&&t.dateCancelled&&e("div",null,e(Y,{type:"p"},"Reward cancelled on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateCancelled).toLocaleString(rn.DateTime.DATE_MED)))),"PENDING"===i&&t.dateScheduledFor&&e("div",null,e(Y,{type:"p"},"Available on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateScheduledFor).toLocaleString(rn.DateTime.DATE_MED))))," ","AVAILABLE"===i&&t.dateExpires&&e("div",null,e(Y,{type:"p"},"Reward expiring on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateExpires).toLocaleString(rn.DateTime.DATE_MED)))),t.fuelTankCode&&e("div",null,e(Y,{type:"p"},"Your code is"," ",e("span",{class:r.classes.BoldText},t.fuelTankCode)))))}))}},sn=class{constructor(e){t(this,e)}render(){return e("sl-badge",{type:this.converted?"success":"warning",pill:!0},this.statusText)}},on=class{constructor(e){t(this,e)}render(){return e(Y,{type:"p"},this.name)}},ln=v.gql`
|
|
196
|
+
`;async function Xr(t,r){const n=t.tagName.toLowerCase();let a;await customElements.whenDefined(n);try{a=r()}catch(t){return"renderReferrerCell"===r.name?console.error("column does not have a renderReferrerCell method."):console.error("label promise failed",t),e("span",null)}try{return await a}catch(t){console.error("Error rendering label",t);const r=function(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}(t);return e("details",null,e("summary",null,"Error"),r)}}const Yr=class{constructor(e){t(this,e),this.perPage=3,this.showLabels=!0,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,a(this)}disconnectedCallback(){}render(){const t=e(en,null),r=e(Qr,null),{states:n,data:a,callbacks:i,elements:o}=x()?function(t){return V({states:{hasPrev:!1,hasNext:!1,loading:!1},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:t.showLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},referralData:[]},elements:{emptyElement:e(en,null),loadingElement:e(Qr,null),columns:[e("div",null,"Example"),e("div",null,"Example"),e("div",null,"Example")],rows:[]}},t.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e,t,r){var n,a;const i=y(),o=S(),l=null!==(n=e.programId)&&void 0!==n?n:o,d=l?"classic"===l?{programId_exists:!1}:{programId_eq:l}:{},u={userId_eq:null==i?void 0:i.id,accountId_eq:null==i?void 0:i.accountId},[m,p]=c(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{data:h,loading:f}=w(Zr,{programId:"classic"===l?null:l,rewardFilter:u},!e.showReferrer||!(null==i?void 0:i.jwt)),g=null===(a=null==h?void 0:h.viewer)||void 0===a?void 0:a.referredByReferral,b=e.showReferrer&&!!(null==g?void 0:g.dateReferralStarted),{envelope:v,states:$,callbacks:x}=T(Jr,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.referrals}),{limit:e.perPage,offset:0},{referralFilter:d,rewardFilter:u},e.showReferrer&&f&&!h||!(null==i?void 0:i.jwt));s((()=>{0===$.currentPage&&b&&x.setLimit(e.perPage-1)}),[b]),s((()=>{e.showReferrer&&b?(x.setLimit(e.perPage-1),x.setCurrentPage(0)):(x.setLimit(e.perPage),x.setCurrentPage(0))}),[e.showReferrer]);const q=ee(),C=null==v?void 0:v.data,D=Ur();return s((()=>{p({loading:!0}),v&&async function(e){const t=e.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),r=null==t?void 0:t.map((async e=>Xr(e,(()=>e.renderLabel()))));let n;if(b&&0===$.currentPage){const e=null==t?void 0:t.map((async e=>Xr(e,(function(){return e.renderReferrerCell(g,e)}))));n=await Promise.all(e)}const a=null==C?void 0:C.map((async e=>{const r=null==t?void 0:t.map((async t=>Xr(t,(()=>t.renderCell(e,t)))));return await Promise.all(r)})),i=a&&[n,...await Promise.all(a)].filter((e=>e));p({rows:i});const s=r&&await Promise.all(r);p({columns:s,loading:!1,page:$.currentPage})}(D)}),[v,D,q]),{states:{hasNext:$.currentPage<$.pageCount-1,hasPrev:$.currentPage>0,loading:$.loading||m.loading},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:C},elements:{columns:m.columns,rows:m.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:()=>{0===$.currentPage&&b&&x.setLimit(e.perPage),x.setCurrentPage($.currentPage+1)},prevPage:()=>{1===$.currentPage&&b&&x.setLimit(e.perPage-1),x.setCurrentPage($.currentPage-1)}}}}(this,t,r);return e(zr,{states:n,data:a,callbacks:i,elements:o})}};function Qr(){return e("slot",{name:"loading"},e(Kr,null),e(Kr,null),e(Kr,null),e(Kr,null))}function Kr(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))}function en(){return e("slot",{name:"empty"},e("div",{style:{width:"100%"}},e("sqm-text",null,e("h3",{style:{color:"#777777"}},"No Referrals Yet"))))}const tn=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){return e("div",{innerHTML:this.innerTemplate})}};var rn=m((function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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(e){return!1}}function d(e,t,r){return(d=l()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&o(a,r.prototype),a}).apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(u(Error)),h=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return i(t,e),t}(p),f=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return i(t,e),t}(p),g=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return i(t,e),t}(p),b=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(p),v=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return i(t,e),t}(p),y=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(p),w=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return i(t,e),t}(p),$="numeric",x="short",q="long",C={year:$,month:$,day:$},D={year:$,month:x,day:$},E={year:$,month:x,day:$,weekday:x},k={year:$,month:q,day:$},A={year:$,month:q,day:$,weekday:q},S={hour:$,minute:$},T={hour:$,minute:$,second:$},F={hour:$,minute:$,second:$,timeZoneName:x},R={hour:$,minute:$,second:$,timeZoneName:q},P={hour:$,minute:$,hourCycle:"h23"},I={hour:$,minute:$,second:$,hourCycle:"h23"},B={hour:$,minute:$,second:$,hourCycle:"h23",timeZoneName:x},N={hour:$,minute:$,second:$,hourCycle:"h23",timeZoneName:q},O={year:$,month:$,day:$,hour:$,minute:$},L={year:$,month:$,day:$,hour:$,minute:$,second:$},M={year:$,month:x,day:$,hour:$,minute:$},j={year:$,month:x,day:$,hour:$,minute:$,second:$},_={year:$,month:x,day:$,weekday:x,hour:$,minute:$},V={year:$,month:q,day:$,hour:$,minute:$,timeZoneName:x},G={year:$,month:q,day:$,hour:$,minute:$,second:$,timeZoneName:x},H={year:$,month:q,day:$,weekday:q,hour:$,minute:$,timeZoneName:q},W={year:$,month:q,day:$,weekday:q,hour:$,minute:$,second:$,timeZoneName:q};function z(e){return void 0===e}function U(e){return"number"==typeof e}function Z(e){return"number"==typeof e&&e%1==0}function J(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function X(e,t,r){if(0!==e.length)return e.reduce((function(e,n){var a=[t(n),n];return e&&r(e[0],a[0])===e[0]?e:a}),null)[1]}function Y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t,r){return Z(e)&&e>=t&&e<=r}function K(e,t){void 0===t&&(t=2);var r=e<0?"-":"",n=r?-1*e:e;return""+r+(n.toString().length<t?("0".repeat(t)+n).slice(-t):n.toString())}function ee(e){return z(e)||null===e||""===e?void 0:parseInt(e,10)}function te(e){if(!z(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function re(e,t,r){void 0===r&&(r=!1);var n=Math.pow(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function ne(e){return e%4==0&&(e%100!=0||e%400==0)}function ae(e){return ne(e)?366:365}function ie(e,t){var r,n=(r=t-1)-12*Math.floor(r/12)+1;return 2===n?ne(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function se(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function oe(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===n?53:52}function le(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,r,n){void 0===n&&(n=null);var i=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(s.timeZone=n);var o=a({timeZoneName:t},s),l=new Intl.DateTimeFormat(r,o).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}function ue(e,t){var r=parseInt(e,10);Number.isNaN(r)&&(r=0);var n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function ce(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new y("Invalid unit value "+e);return t}function me(e,t){var r={};for(var n in e)if(Y(e,n)){var a=e[n];if(null==a)continue;r[t(n)]=ce(a)}return r}function pe(e,t){var r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return""+a+K(r,2)+":"+K(n,2);case"narrow":return""+a+r+(n>0?":"+n:"");case"techie":return""+a+K(r,2)+K(n,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function he(e){return function(e){return["hour","minute","second","millisecond"].reduce((function(t,r){return t[r]=e[r],t}),{})}(e)}var fe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,ge=["January","February","March","April","May","June","July","August","September","October","November","December"],be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ve=["J","F","M","A","M","J","J","A","S","O","N","D"];function ye(e){switch(e){case"narrow":return[].concat(ve);case"short":return[].concat(be);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var we=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$e=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],xe=["M","T","W","T","F","S","S"];function qe(e){switch(e){case"narrow":return[].concat(xe);case"short":return[].concat($e);case"long":return[].concat(we);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ce=["AM","PM"],De=["Before Christ","Anno Domini"],Ee=["BC","AD"],ke=["B","A"];function Ae(e){switch(e){case"narrow":return[].concat(ke);case"short":return[].concat(Ee);case"long":return[].concat(De);default:return null}}function Se(e,t){for(var r,n="",a=m(e);!(r=a()).done;){var i=r.value;n+=i.literal?i.val:t(i.val)}return n}var Te={D:C,DD:D,DDD:k,DDDD:A,t:S,tt:T,ttt:F,tttt:R,T:P,TT:I,TTT:B,TTTT:N,f:O,ff:M,fff:V,ffff:H,F:L,FF:j,FFF:G,FFFF:W},Fe=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,r){return void 0===r&&(r={}),new e(t,r)},e.parseFormat=function(e){for(var t=null,r="",n=!1,a=[],i=0;i<e.length;i++){var s=e.charAt(i);"'"===s?(r.length>0&&a.push({literal:n,val:r}),t=null,r="",n=!n):n||s===t?r+=s:(r.length>0&&a.push({literal:!1,val:r}),r=s,t=s)}return r.length>0&&a.push({literal:n,val:r}),a},e.macroTokenToFormatOpts=function(e){return Te[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,a({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,a({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,a({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,a({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return K(e,t);var r=a({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)},t.formatDateTimeFromString=function(t,r){var n=this,a="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=function(e,r){return n.loc.extract(t,e,r)},o=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(e,r){return a?function(e,t){return ye(t)[e.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month")},d=function(e,r){return a?function(e,t){return qe(t)[e.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){return a?function(e,t){return Ae(t)[e.year<0?0:1]}(t,e):s({era:e},"era")};return Se(e.parseFormat(r),(function(r){switch(r){case"S":return n.num(t.millisecond);case"u":case"SSS":return n.num(t.millisecond,3);case"s":return n.num(t.second);case"ss":return n.num(t.second,2);case"m":return n.num(t.minute);case"mm":return n.num(t.minute,2);case"h":return n.num(t.hour%12==0?12:t.hour%12);case"hh":return n.num(t.hour%12==0?12:t.hour%12,2);case"H":return n.num(t.hour);case"HH":return n.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return o({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:n.loc.locale});case"z":return t.zoneName;case"a":return a?function(e){return Ce[e.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return i?s({day:"numeric"},"day"):n.num(t.day);case"dd":return i?s({day:"2-digit"},"day"):n.num(t.day,2);case"c":return n.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return n.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):n.num(t.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):n.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?s({month:"numeric"},"month"):n.num(t.month);case"MM":return i?s({month:"2-digit"},"month"):n.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?s({year:"numeric"},"year"):n.num(t.year);case"yy":return i?s({year:"2-digit"},"year"):n.num(t.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):n.num(t.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):n.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return n.num(t.weekYear.toString().slice(-2),2);case"kkkk":return n.num(t.weekYear,4);case"W":return n.num(t.weekNumber);case"WW":return n.num(t.weekNumber,2);case"o":return n.num(t.ordinal);case"ooo":return n.num(t.ordinal,3);case"q":return n.num(t.quarter);case"qq":return n.num(t.quarter,2);case"X":return n.num(Math.floor(t.ts/1e3));case"x":return n.num(t.ts);default:return function(r){var a=e.macroTokenToFormatOpts(r);return a?n.formatWithSystemDefault(t,a):r}(r)}}))},t.formatDurationFromString=function(t,r){var n,a=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},s=e.parseFormat(r),o=s.reduce((function(e,t){return t.literal?e:e.concat(t.val)}),[]),l=t.shiftTo.apply(t,o.map(i).filter((function(e){return e})));return Se(s,(n=l,function(e){var t=i(e);return t?a.num(n.get(t),e.length):e}))},e}(),Re=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Pe=function(){function e(){}var t=e.prototype;return t.offsetName=function(){throw new w},t.formatOffset=function(){throw new w},t.offset=function(){throw new w},t.equals=function(){throw new w},n(e,[{key:"type",get:function(){throw new w}},{key:"name",get:function(){throw new w}},{key:"isUniversal",get:function(){throw new w}},{key:"isValid",get:function(){throw new w}}]),e}(),Ie=null,Be=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.offsetName=function(e,t){return de(e,t.format,t.locale)},r.formatOffset=function(e,t){return pe(this.offset(e),t)},r.offset=function(e){return-new Date(e).getTimezoneOffset()},r.equals=function(e){return"system"===e.type},n(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ie&&(Ie=new t),Ie}}]),t}(Pe),Ne=RegExp("^"+fe.source+"$"),Oe={},Le={year:0,month:1,day:2,hour:3,minute:4,second:5},Me={},je=function(e){function t(r){var n;return(n=e.call(this)||this).zoneName=r,n.valid=t.isValidZone(r),n}i(t,e),t.create=function(e){return Me[e]||(Me[e]=new t(e)),Me[e]},t.resetCache=function(){Me={},Oe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Ne))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var r=t.prototype;return r.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},r.formatOffset=function(e,t){return pe(this.offset(e),t)},r.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var r,n=(Oe[r=this.name]||(Oe[r]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Oe[r]),a=n.formatToParts?function(e,t){for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var i=r[a],s=i.value,o=Le[i.type];z(o)||(n[o]=parseInt(s,10))}return n}(n,t):function(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}(n,t),i=+t,s=i%1e3;return(se({year:a[0],month:a[1],day:a[2],hour:a[3],minute:a[4],second:a[5],millisecond:0})-(i-=s>=0?s:1e3+s))/6e4},r.equals=function(e){return"iana"===e.type&&e.name===this.name},n(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Pe),_e=null,Ve=function(e){function t(t){var r;return(r=e.call(this)||this).fixed=t,r}i(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(ue(r[1],r[2]))}return null};var r=t.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(e,t){return pe(this.fixed,t)},r.offset=function(){return this.fixed},r.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},n(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+pe(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===_e&&(_e=new t(0)),_e}}]),t}(Pe),Ge=function(e){function t(t){var r;return(r=e.call(this)||this).zoneName=t,r}i(t,e);var r=t.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},n(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Pe);function He(e,t){var r;if(z(e)||null===e)return t;if(e instanceof Pe)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n||"system"===n?t:"utc"===n||"gmt"===n?Ve.utcInstance:null!=(r=je.parseGMTOffset(e))?Ve.instance(r):je.isValidSpecifier(n)?je.create(e):Ve.parseSpecifier(n)||new Ge(e)}return U(e)?Ve.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ge(e)}var We,ze=function(){return Date.now()},Ue="system",Ze=null,Je=null,Xe=null,Ye=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),je.resetCache()},n(e,null,[{key:"now",get:function(){return ze},set:function(e){ze=e}},{key:"defaultZone",get:function(){return He(Ue,Be.instance)},set:function(e){Ue=e}},{key:"defaultLocale",get:function(){return Ze},set:function(e){Ze=e}},{key:"defaultNumberingSystem",get:function(){return Je},set:function(e){Je=e}},{key:"defaultOutputCalendar",get:function(){return Xe},set:function(e){Xe=e}},{key:"throwOnInvalid",get:function(){return We},set:function(e){We=e}}]),e}(),Qe=["base"],Ke={};function et(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),n=Ke[r];return n||(n=new Intl.DateTimeFormat(e,t),Ke[r]=n),n}var tt={},rt={};var nt=null;function at(e,t,r,n,a){var i=e.listingMode(r);return"error"===i?null:"en"===i?n(t):a(t)}var it=function(){function e(e,t,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!t){var n={useGrouping:!1};r.padTo>0&&(n.minimumIntegerDigits=r.padTo),this.inf=function(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),n=tt[r];return n||(n=new Intl.NumberFormat(e,t),tt[r]=n),n}(e,n)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return K(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),st=function(){function e(e,t,r){var n;if(this.opts=r,e.zone.isUniversal){var i=e.offset/60*-1,s=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,o=je.isValidZone(s);0!==e.offset&&o?(n=s,this.dt=e):(n="UTC",this.dt=r.timeZoneName||0===e.offset?e:on.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,n=e.zone.name);var l=a({},this.opts);n&&(l.timeZone=n),this.dtf=et(t,l)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),ot=function(){function e(e,t,r){this.opts=a({style:"long"},r),!t&&J()&&(this.rtf=function(e,t){void 0===t&&(t={});var r=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(t,Qe),n=JSON.stringify([e,r]),a=rt[n];return a||(a=new Intl.RelativeTimeFormat(e,t),rt[n]=a),a}(e,r))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r,n){void 0===r&&(r="always"),void 0===n&&(n=!1);var a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&i){var s="days"===e;switch(t){case 1:return s?"tomorrow":"next "+a[e][0];case-1:return s?"yesterday":"last "+a[e][0];case 0:return s?"today":"this "+a[e][0]}}var o=Object.is(t,-0)||t<0,l=Math.abs(t),d=1===l,u=a[e],c=n?d?u[1]:u[2]||u[1]:d?a[e][0]:e;return o?l+" "+c+" ago":"in "+l+" "+c}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),lt=function(){function e(e,t,r,n){var a=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var r,n=e.substring(0,t);try{r=et(e).resolvedOptions()}catch(e){r=et(n).resolvedOptions()}return[n,r.numberingSystem,r.calendar]}(e),i=a[1],s=a[2];this.locale=a[0],this.numberingSystem=t||i||null,this.outputCalendar=r||s||null,this.intl=function(e,t,r){return r||t?(e+="-u",r&&(e+="-ca-"+r),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,r,n,a){void 0===a&&(a=!1);var i=t||Ye.defaultLocale;return new e(i||(a?"en-US":nt||(nt="en-US")),r||Ye.defaultNumberingSystem,n||Ye.defaultOutputCalendar,i)},e.resetCache=function(){nt=null,Ke={},tt={},rt={}},e.fromObject=function(t){var r=void 0===t?{}:t;return e.create(r.locale,r.numberingSystem,r.outputCalendar)};var t=e.prototype;return t.listingMode=function(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(a({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(a({},e,{defaultToEN:!1}))},t.months=function(e,t,r){var n=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),at(this,e,r,ye,(function(){var r=t?{month:e,day:"numeric"}:{month:e},a=t?"format":"standalone";return n.monthsCache[a][e]||(n.monthsCache[a][e]=function(e){for(var t=[],r=1;r<=12;r++){var n=on.utc(2016,r,1);t.push(e(n))}return t}((function(e){return n.extract(e,r,"month")}))),n.monthsCache[a][e]}))},t.weekdays=function(e,t,r){var n=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),at(this,e,r,qe,(function(){var r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=t?"format":"standalone";return n.weekdaysCache[a][e]||(n.weekdaysCache[a][e]=function(e){for(var t=[],r=1;r<=7;r++){var n=on.utc(2016,11,13+r);t.push(e(n))}return t}((function(e){return n.extract(e,r,"weekday")}))),n.weekdaysCache[a][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),at(this,void 0,e,(function(){return Ce}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[on.utc(2016,11,13,9),on.utc(2016,11,13,19)].map((function(r){return t.extract(r,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var r=this;return void 0===t&&(t=!0),at(this,e,t,Ae,(function(){var t={era:e};return r.eraCache[e]||(r.eraCache[e]=[on.utc(-40,1,1),on.utc(2017,1,1)].map((function(e){return r.extract(e,t,"era")}))),r.eraCache[e]}))},t.extract=function(e,t,r){var n=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===r}));return n?n.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new it(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new st(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ot(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},n(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function dt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+n+"$")}function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce((function(t,r){var n=t[0],i=t[1],s=r(e,t[2]),o=s[1],l=s[2];return[a({},n,s[0]),i||o,l]}),[{},null,1]).slice(0,2)}}function ct(e){if(null==e)return[null,null];for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var a=0,i=r;a<i.length;a++){var s=i[a],o=s[0],l=s[1],d=o.exec(e);if(d)return l(d)}return[null,null]}function mt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n,a={};for(n=0;n<t.length;n++)a[t[n]]=ee(e[r+n]);return[a,null,r+n]}}var pt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ht=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ft=RegExp(""+ht.source+pt.source+"?"),gt=RegExp("(?:T"+ft.source+")?"),bt=mt("weekYear","weekNumber","weekDay"),vt=mt("year","ordinal"),yt=RegExp(ht.source+" ?(?:"+pt.source+"|("+fe.source+"))?"),wt=RegExp("(?: "+yt.source+")?");function $t(e,t,r){var n=e[t];return z(n)?r:ee(n)}function xt(e,t){return[{year:$t(e,t),month:$t(e,t+1,1),day:$t(e,t+2,1)},null,t+3]}function qt(e,t){return[{hours:$t(e,t,0),minutes:$t(e,t+1,0),seconds:$t(e,t+2,0),milliseconds:te(e[t+3])},null,t+4]}function Ct(e,t){var r=!e[t]&&!e[t+1],n=ue(e[t+1],e[t+2]);return[{},r?null:Ve.instance(n),t+3]}function Dt(e,t){return[{},e[t]?je.create(e[t]):null,t+1]}var Et=RegExp("^T?"+ht.source+"$"),kt=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function At(e){var t=e[2],r=e[3],n=e[4],a=e[5],i=e[6],s=e[7],o=e[8],l="-"===e[0][0],d=s&&"-"===s[0],u=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&l)?-e:e};return[{years:u(ee(e[1])),months:u(ee(t)),weeks:u(ee(r)),days:u(ee(n)),hours:u(ee(a)),minutes:u(ee(i)),seconds:u(ee(s),"-0"===s),milliseconds:u(te(o),d)}]}var St={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e,t,r,n,a,i,s){var o={year:2===t.length?le(ee(t)):ee(t),month:be.indexOf(r)+1,day:ee(n),hour:ee(a),minute:ee(i)};return s&&(o.second=ee(s)),e&&(o.weekday=e.length>3?we.indexOf(e)+1:$e.indexOf(e)+1),o}var Ft=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Rt(e){var t,r=e[8],n=e[9],a=e[10],i=e[11],s=Tt(e[1],e[4],e[3],e[2],e[5],e[6],e[7]);return t=r?St[r]:n?0:ue(a,i),[s,new Ve(t)]}var Pt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,It=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Bt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Nt(e){return[Tt(e[1],e[4],e[3],e[2],e[5],e[6],e[7]),Ve.utcInstance]}function Ot(e){return[Tt(e[1],e[7],e[2],e[3],e[4],e[5],e[6]),Ve.utcInstance]}var Lt=dt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gt),Mt=dt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,gt),jt=dt(/(\d{4})-?(\d{3})/,gt),_t=dt(ft),Vt=ut(xt,qt,Ct),Gt=ut(bt,qt,Ct),Ht=ut(vt,qt,Ct),Wt=ut(qt,Ct),zt=ut(qt),Ut=dt(/(\d{4})-(\d\d)-(\d\d)/,wt),Zt=dt(yt),Jt=ut(xt,qt,Ct,Dt),Xt=ut(qt,Ct,Dt),Yt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Qt=a({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Yt),Kt=a({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Yt),er=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tr=er.slice(0).reverse();function rr(e,t,r){void 0===r&&(r=!1);var n={values:r?t.values:a({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new ar(n)}function nr(e,t,r,n,a){var i=e[a][r],s=t[r]/i,o=Math.sign(s)!==Math.sign(n[a])&&0!==n[a]&&Math.abs(s)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(s):Math.trunc(s);n[a]+=o,t[r]-=o*i}var ar=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Kt:Qt,this.isLuxonDuration=!0}e.fromMillis=function(t,r){return e.fromObject({milliseconds:t},r)},e.fromObject=function(t,r){if(void 0===r&&(r={}),null==t||"object"!=typeof t)throw new y("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:me(t,e.normalizeUnit),loc:lt.fromObject(r),conversionAccuracy:r.conversionAccuracy})},e.fromISO=function(t,r){var n=function(e){return ct(e,[kt,At])}(t)[0];return n?e.fromObject(n,r):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,r){var n=function(e){return ct(e,[Et,zt])}(t)[0];return n?e.fromObject(n,r):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new y("need to specify a reason the Duration is invalid");var n=t instanceof Re?t:new Re(t,r);if(Ye.throwOnInvalid)throw new g(n);return new e({invalid:n})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new v(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var r=a({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Fe.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(){return this.isValid?a({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=re(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=a({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));var i=r.toFormat(n);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,r=ir(e),n={},a=m(er);!(t=a()).done;){var i=t.value;(Y(r.values,i)||Y(this.values,i))&&(n[i]=r.get(i)+this.get(i))}return rr(this,{values:n},!0)},t.minus=function(e){if(!this.isValid)return this;var t=ir(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},r=0,n=Object.keys(this.values);r<n.length;r++){var a=n[r];t[a]=ce(e(this.values[a],a))}return rr(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?rr(this,{values:a({},this.values,me(t,e.normalizeUnit))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,r=t.conversionAccuracy,n={loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem})};return r&&(n.conversionAccuracy=r),rr(this,n)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){tr.reduce((function(r,n){return z(t[n])?r:(r&&nr(e,t,r,t,n),n)}),null)}(this.matrix,e),rr(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!this.isValid)return this;if(0===r.length)return this;r=r.map((function(t){return e.normalizeUnit(t)}));for(var a,i,s={},o={},l=this.toObject(),d=m(er);!(i=d()).done;){var u=i.value;if(r.indexOf(u)>=0){a=u;var c=0;for(var p in o)c+=this.matrix[p][u]*o[p],o[p]=0;U(l[u])&&(c+=l[u]);var h=Math.trunc(c);for(var f in s[u]=h,o[u]=c-h,l)er.indexOf(f)>er.indexOf(u)&&nr(this.matrix,l,f,s,u)}else U(l[u])&&(o[u]=l[u])}for(var g in o)0!==o[g]&&(s[a]+=g===a?o[g]:o[g]/this.matrix[a][g]);return rr(this,{values:s},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,r=Object.keys(this.values);t<r.length;t++){var n=r[t];e[n]=-this.values[n]}return rr(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,r=m(er);!(t=r()).done;){var n=t.value;if(i=e.values[n],!(void 0===(a=this.values[n])||0===a?void 0===i||0===i:a===i))return!1}var a,i;return!0},n(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function ir(e){if(U(e))return ar.fromMillis(e);if(ar.isDuration(e))return e;if("object"==typeof e)return ar.fromObject(e);throw new y("Unknown duration argument "+e+" of type "+typeof e)}var sr="Invalid Interval";function or(e,t){return e&&e.isValid?t&&t.isValid?t<e?lr.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:lr.invalid("missing or invalid end"):lr.invalid("missing or invalid start")}var lr=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new y("need to specify a reason the Interval is invalid");var n=t instanceof Re?t:new Re(t,r);if(Ye.throwOnInvalid)throw new f(n);return new e({invalid:n})},e.fromDateTimes=function(t,r){var n=ln(t),a=ln(r),i=or(n,a);return null==i?new e({start:n,end:a}):i},e.after=function(t,r){var n=ir(r),a=ln(t);return e.fromDateTimes(a,a.plus(n))},e.before=function(t,r){var n=ir(r),a=ln(t);return e.fromDateTimes(a.minus(n),a)},e.fromISO=function(t,r){var n=(t||"").split("/",2),a=n[0],i=n[1];if(a&&i){var s,o,l,d;try{o=(s=on.fromISO(a,r)).isValid}catch(i){o=!1}try{d=(l=on.fromISO(i,r)).isValid}catch(i){d=!1}if(o&&d)return e.fromDateTimes(s,l);if(o){var u=ar.fromISO(i,r);if(u.isValid)return e.after(s,u)}else if(d){var c=ar.fromISO(a,r);if(c.isValid)return e.before(l,c)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var r=void 0===t?{}:t;return this.isValid?e.fromDateTimes(r.start||this.s,r.end||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];for(var i=n.map(ln).filter((function(e){return t.contains(e)})).sort(),s=[],o=this.s,l=0;o<this.e;){var d=i[l]||this.e,u=+d>+this.e?this.e:d;s.push(e.fromDateTimes(o,u)),o=u,l+=1}return s},t.splitBy=function(t){var r=ir(t);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var n,a=this.s,i=1,s=[];a<this.e;){var o=this.start.plus(r.mapUnits((function(e){return e*i})));s.push(e.fromDateTimes(a,n=+o>+this.e?this.e:o)),a=n,i+=1}return s},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)},t.union=function(t){return this.isValid?e.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var r=e[0],n=e[1];return n?n.overlaps(t)||n.abutsStart(t)?[r,n.union(t)]:[r.concat([n]),t]:[r,t]}),[[],null]),r=t[0],n=t[1];return n&&r.push(n),r},e.xor=function(t){for(var r,n,a=null,i=0,s=[],o=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=m((r=Array.prototype).concat.apply(r,o).sort((function(e,t){return e.time-t.time})));!(n=l()).done;){var d=n.value;1===(i+="s"===d.type?1:-1)?a=d.time:(a&&+a!=+d.time&&s.push(e.fromDateTimes(a,d.time)),a=null)}return e.merge(s)},t.difference=function(){for(var t=this,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return e.xor([this].concat(n)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":sr},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):sr},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():sr},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):sr},t.toFormat=function(e,t){var r=(void 0===t?{}:t).separator,n=void 0===r?" – ":r;return this.isValid?""+this.s.toFormat(e)+n+this.e.toFormat(e):sr},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):ar.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},n(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),dr=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Ye.defaultZone);var t=on.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return je.isValidSpecifier(e)&&je.isValidZone(e)},e.normalizeZone=function(e){return He(e,Ye.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj,s=r.outputCalendar;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,void 0===s?"gregory":s)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj,s=r.outputCalendar;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,void 0===s?"gregory":s)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,a=r.numberingSystem,i=r.locObj;return((void 0===i?null:i)||lt.create(void 0===n?null:n,void 0===a?null:a,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale;return lt.create(void 0===t?null:t).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var r=(void 0===t?{}:t).locale;return lt.create(void 0===r?null:r,null,"gregory").eras(e)},e.features=function(){return{relative:J()}},e}();function ur(e,t){var r=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=r(t)-r(e);return Math.floor(ar.fromMillis(n).as("days"))}var cr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},mr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},pr=cr.hanidec.replace(/[\[|\]]/g,"").split("");function hr(e,t){return void 0===t&&(t=""),new RegExp(""+cr[e.numberingSystem||"latn"]+t)}function fr(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(-1!==e[r].search(cr.hanidec))t+=pr.indexOf(e[r]);else for(var a in mr){var i=mr[a],s=i[0];n>=s&&n<=i[1]&&(t+=n-s)}}return parseInt(t,10)}return t}(e[0]))}}}var gr="( |"+String.fromCharCode(160)+")",br=new RegExp(gr,"g");function vr(e){return e.replace(/\./g,"\\.?").replace(br,gr)}function yr(e){return e.replace(/\./g,"").replace(br," ").toLowerCase()}function wr(e,t){return null===e?null:{regex:RegExp(e.map(vr).join("|")),deser:function(r){var n=r[0];return e.findIndex((function(e){return yr(n)===yr(e)}))+t}}}function $r(e,t){return{regex:e,deser:function(e){return ue(e[1],e[2])},groups:t}}function xr(e){return{regex:e,deser:function(e){return e[0]}}}var qr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Cr=null;function Dr(e,t,r){var n=function(e,t){var r;return(r=Array.prototype).concat.apply(r,e.map((function(e){return function(e,t){if(e.literal)return e;var r=Fe.macroTokenToFormatOpts(e.val);if(!r)return e;var n=Fe.create(t,r).formatDateTimeParts((Cr||(Cr=on.fromMillis(1555555555555)),Cr)).map((function(e){return function(e,t,r){var n=e.type;if("literal"===n)return{literal:!0,val:e.value};var a=qr[n];return"object"==typeof a&&(a=a[r[n]]),a?{literal:!1,val:a}:void 0}(e,0,r)}));return n.includes(void 0)?e:n}(e,t)})))}(Fe.parseFormat(r),e),a=n.map((function(t){return r=t,a=hr(n=e),i=hr(n,"{2}"),s=hr(n,"{3}"),o=hr(n,"{4}"),l=hr(n,"{6}"),d=hr(n,"{1,2}"),u=hr(n,"{1,3}"),c=hr(n,"{1,6}"),m=hr(n,"{1,9}"),p=hr(n,"{2,4}"),h=hr(n,"{4,6}"),f=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(g=function(e){if(r.literal)return f(e);switch(e.val){case"G":return wr(n.eras("short",!1),0);case"GG":return wr(n.eras("long",!1),0);case"y":return fr(c);case"yy":return fr(p,le);case"yyyy":return fr(o);case"yyyyy":return fr(h);case"yyyyyy":return fr(l);case"M":return fr(d);case"MM":return fr(i);case"MMM":return wr(n.months("short",!0,!1),1);case"MMMM":return wr(n.months("long",!0,!1),1);case"L":return fr(d);case"LL":return fr(i);case"LLL":return wr(n.months("short",!1,!1),1);case"LLLL":return wr(n.months("long",!1,!1),1);case"d":return fr(d);case"dd":return fr(i);case"o":return fr(u);case"ooo":return fr(s);case"HH":return fr(i);case"H":return fr(d);case"hh":return fr(i);case"h":return fr(d);case"mm":return fr(i);case"m":case"q":return fr(d);case"qq":return fr(i);case"s":return fr(d);case"ss":return fr(i);case"S":return fr(u);case"SSS":return fr(s);case"u":return xr(m);case"a":return wr(n.meridiems(),0);case"kkkk":return fr(o);case"kk":return fr(p,le);case"W":return fr(d);case"WW":return fr(i);case"E":case"c":return fr(a);case"EEE":return wr(n.weekdays("short",!1,!1),1);case"EEEE":return wr(n.weekdays("long",!1,!1),1);case"ccc":return wr(n.weekdays("short",!0,!1),1);case"cccc":return wr(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return $r(new RegExp("([+-]"+d.source+")(?::("+i.source+"))?"),2);case"ZZZ":return $r(new RegExp("([+-]"+d.source+")("+i.source+")?"),2);case"z":return xr(/[a-z_+-/]{1,256}?/i);default:return f(e)}}(r)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=r,g;var r,n,a,i,s,o,l,d,u,c,m,p,h,f,g})),i=a.find((function(e){return e.invalidReason}));if(i)return{input:t,tokens:n,invalidReason:i.invalidReason};var s=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(a),o=s[1],l=RegExp(s[0],"i"),d=function(e,t,r){var n=e.match(t);if(n){var a={},i=1;for(var s in r)if(Y(r,s)){var o=r[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(a[o.token.val[0]]=o.deser(n.slice(i,i+l))),i+=l}return[n,a]}return[n,{}]}(t,l,o),u=d[0],c=d[1],m=c?function(e){var t;return t=z(e.Z)?z(e.z)?null:je.create(e.z):new Ve(e.Z),z(e.q)||(e.M=3*(e.q-1)+1),z(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),z(e.u)||(e.S=te(e.u)),[Object.keys(e).reduce((function(t,r){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(r);return n&&(t[n]=e[r]),t}),{}),t]}(c):[null,null],p=m[0],h=m[1];if(Y(c,"a")&&Y(c,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:l,rawMatches:u,matches:c,result:p,zone:h}}var Er=[0,31,59,90,120,151,181,212,243,273,304,334],kr=[0,31,60,91,121,152,182,213,244,274,305,335];function Ar(e,t){return new Re("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Sr(e,t,r){var n=new Date(Date.UTC(e,t-1,r)).getUTCDay();return 0===n?7:n}function Tr(e,t,r){return r+(ne(e)?kr:Er)[t-1]}function Fr(e,t){var r=ne(e)?kr:Er,n=r.findIndex((function(e){return e<t}));return{month:n+1,day:t-r[n]}}function Rr(e){var t,r=e.year,n=e.month,i=e.day,s=Tr(r,n,i),o=Sr(r,n,i),l=Math.floor((s-o+10)/7);return l<1?l=oe(t=r-1):l>oe(r)?(t=r+1,l=1):t=r,a({weekYear:t,weekNumber:l,weekday:o},he(e))}function Pr(e){var t,r=e.weekYear,n=e.weekNumber,i=e.weekday,s=Sr(r,1,4),o=ae(r),l=7*n+i-s-3;l<1?l+=ae(t=r-1):l>o?(t=r+1,l-=ae(r)):t=r;var d=Fr(t,l);return a({year:t,month:d.month,day:d.day},he(e))}function Ir(e){var t=e.year;return a({year:t,ordinal:Tr(t,e.month,e.day)},he(e))}function Br(e){var t=e.year,r=Fr(t,e.ordinal);return a({year:t,month:r.month,day:r.day},he(e))}function Nr(e){var t=Z(e.year),r=Q(e.month,1,12),n=Q(e.day,1,ie(e.year,e.month));return t?r?!n&&Ar("day",e.day):Ar("month",e.month):Ar("year",e.year)}function Or(e){var t=e.hour,r=e.minute,n=e.second,a=e.millisecond,i=Q(t,0,23)||24===t&&0===r&&0===n&&0===a,s=Q(r,0,59),o=Q(n,0,59),l=Q(a,0,999);return i?s?o?!l&&Ar("millisecond",a):Ar("second",n):Ar("minute",r):Ar("hour",t)}var Lr="Invalid DateTime",Mr=864e13;function jr(e){return new Re("unsupported zone",'the zone "'+e.name+'" is not supported')}function _r(e){return null===e.weekData&&(e.weekData=Rr(e.c)),e.weekData}function Vr(e,t){var r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new on(a({},r,t,{old:r}))}function Gr(e,t,r){var n=e-60*t*1e3,a=r.offset(n);if(t===a)return[n,t];var i=r.offset(n-=60*(a-t)*1e3);return a===i?[n,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}function Hr(e,t){var r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Wr(e,t,r){return Gr(se(e),t,r)}function zr(e,t){var r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s=a({},e.c,{year:n,month:i,day:Math.min(e.c.day,ie(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),o=ar.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=Gr(se(s),r,e.zone),d=l[0],u=l[1];return 0!==o&&(u=e.zone.offset(d+=o)),{ts:d,o:u}}function Ur(e,t,r,n,i){var s=r.setZone,o=r.zone;if(e&&0!==Object.keys(e).length){var l=on.fromObject(e,a({},r,{zone:t||o,setZone:void 0}));return s?l:l.setZone(o)}return on.invalid(new Re("unparsable",'the input "'+i+"\" can't be parsed as "+n))}function Zr(e,t,r){return void 0===r&&(r=!0),e.isValid?Fe.create(lt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Jr(e,t){var r=t.suppressSeconds,n=t.suppressMilliseconds,a=t.includeOffset,i=t.includePrefix,s=void 0!==i&&i,o=t.includeZone,l=void 0!==o&&o,d=t.spaceZone,u=t.format,c=void 0===u?"extended":u,m="basic"===c?"HHmm":"HH:mm";void 0!==r&&r&&0===e.second&&0===e.millisecond||(m+="basic"===c?"ss":":ss",void 0!==n&&n&&0===e.millisecond||(m+=".SSS")),(l||a)&&void 0!==d&&d&&(m+=" "),l?m+="z":a&&(m+="basic"===c?"ZZZ":"ZZ");var p=Zr(e,m);return s&&(p="T"+p),p}var Xr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Yr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Qr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Kr=["year","month","day","hour","minute","second","millisecond"],en=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],tn=["year","ordinal","hour","minute","second","millisecond"];function rn(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new v(e);return t}function nn(e,t){var r,n,a=He(t.zone,Ye.defaultZone),i=lt.fromObject(t),s=Ye.now();if(z(e.year))r=s;else{for(var o,l=m(Kr);!(o=l()).done;){var d=o.value;z(e[d])&&(e[d]=Xr[d])}var u=Nr(e)||Or(e);if(u)return on.invalid(u);var c=Wr(e,a.offset(s),a);r=c[0],n=c[1]}return new on({ts:r,zone:a,loc:i,o:n})}function an(e,t,r){var n=!!z(r.round)||r.round,a=function(e,a){return e=re(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,a)},i=function(n){return r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n)};if(r.unit)return a(i(r.unit),r.unit);for(var s,o=m(r.units);!(s=o()).done;){var l=s.value,d=i(l);if(Math.abs(d)>=1)return a(d,l)}return a(e>t?-0:0,r.units[r.units.length-1])}function sn(e){var t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}var on=function(){function e(e){var t=e.zone||Ye.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new Re("invalid input"):null)||(t.isValid?null:jr(t));this.ts=z(e.ts)?Ye.now():e.ts;var n=null,a=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var i=[e.old.c,e.old.o];n=i[0],a=i[1]}else{var s=t.offset(this.ts);n=Hr(this.ts,s),n=(r=Number.isNaN(n.year)?new Re("invalid input"):null)?null:n,a=r?null:s}this._zone=t,this.loc=e.loc||lt.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=a,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=sn(arguments),t=e[0],r=e[1],n=r[0],a=r[1],i=r[2],s=r[3],o=r[4],l=r[5],d=r[6];return nn({year:n,month:a,day:i,hour:s,minute:o,second:l,millisecond:d},t)},e.utc=function(){var e=sn(arguments),t=e[0],r=e[1],n=r[0],a=r[1],i=r[2],s=r[3],o=r[4],l=r[5],d=r[6];return t.zone=Ve.utcInstance,nn({year:n,month:a,day:i,hour:s,minute:o,second:l,millisecond:d},t)},e.fromJSDate=function(t,r){void 0===r&&(r={});var n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");var a=He(r.zone,Ye.defaultZone);return a.isValid?new e({ts:n,zone:a,loc:lt.fromObject(r)}):e.invalid(jr(a))},e.fromMillis=function(t,r){if(void 0===r&&(r={}),U(t))return t<-Mr||t>Mr?e.invalid("Timestamp out of range"):new e({ts:t,zone:He(r.zone,Ye.defaultZone),loc:lt.fromObject(r)});throw new y("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,r){if(void 0===r&&(r={}),U(t))return new e({ts:1e3*t,zone:He(r.zone,Ye.defaultZone),loc:lt.fromObject(r)});throw new y("fromSeconds requires a numerical input")},e.fromObject=function(t,r){void 0===r&&(r={}),t=t||{};var n=He(r.zone,Ye.defaultZone);if(!n.isValid)return e.invalid(jr(n));var a=Ye.now(),i=n.offset(a),s=me(t,rn),o=!z(s.ordinal),l=!z(s.year),d=!z(s.month)||!z(s.day),u=l||d,c=s.weekYear||s.weekNumber,p=lt.fromObject(r);if((u||o)&&c)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&o)throw new b("Can't mix ordinal dates with month/day");var h,f,g=c||s.weekday&&!u,v=Hr(a,i);g?(h=en,f=Yr,v=Rr(v)):o?(h=tn,f=Qr,v=Ir(v)):(h=Kr,f=Xr);for(var y,w=!1,$=m(h);!(y=$()).done;){var x=y.value;z(s[x])?s[x]=w?f[x]:v[x]:w=!0}var q=(g?function(e){var t=Z(e.weekYear),r=Q(e.weekNumber,1,oe(e.weekYear)),n=Q(e.weekday,1,7);return t?r?!n&&Ar("weekday",e.weekday):Ar("week",e.week):Ar("weekYear",e.weekYear)}(s):o?function(e){var t=Z(e.year),r=Q(e.ordinal,1,ae(e.year));return t?!r&&Ar("ordinal",e.ordinal):Ar("year",e.year)}(s):Nr(s))||Or(s);if(q)return e.invalid(q);var C=Wr(g?Pr(s):o?Br(s):s,i,n),D=new e({ts:C[0],zone:n,o:C[1],loc:p});return s.weekday&&u&&t.weekday!==D.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+s.weekday+" and a date of "+D.toISO()):D},e.fromISO=function(e,t){void 0===t&&(t={});var r=function(e){return ct(e,[Lt,Vt],[Mt,Gt],[jt,Ht],[_t,Wt])}(e);return Ur(r[0],r[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var r=function(e){return ct(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Ft,Rt])}(e);return Ur(r[0],r[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var r=function(e){return ct(e,[Pt,Nt],[It,Nt],[Bt,Ot])}(e);return Ur(r[0],r[1],t,"HTTP",t)},e.fromFormat=function(t,r,n){if(void 0===n&&(n={}),z(t)||z(r))throw new y("fromFormat requires an input string and a format");var a,i,s=n.locale,o=n.numberingSystem,l=(a=lt.fromOpts({locale:void 0===s?null:s,numberingSystem:void 0===o?null:o,defaultToEN:!0}),[(i=Dr(a,t,r)).result,i.zone,i.invalidReason]),d=l[0],u=l[1],c=l[2];return c?e.invalid(c):Ur(d,u,n,"format "+r,t)},e.fromString=function(t,r,n){return void 0===n&&(n={}),e.fromFormat(t,r,n)},e.fromSQL=function(e,t){void 0===t&&(t={});var r=function(e){return ct(e,[Ut,Jt],[Zt,Xt])}(e);return Ur(r[0],r[1],t,"SQL",e)},e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new y("need to specify a reason the DateTime is invalid");var n=t instanceof Re?t:new Re(t,r);if(Ye.throwOnInvalid)throw new h(n);return new e({invalid:n})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=Fe.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Ve.instance(e),t)},t.toLocal=function(){return this.setZone(Ye.defaultZone)},t.setZone=function(t,r){var n=void 0===r?{}:r,a=n.keepLocalTime,i=void 0!==a&&a,s=n.keepCalendarTime,o=void 0!==s&&s;if((t=He(t,Ye.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(i||o){var d=t.offset(this.ts);l=Wr(this.toObject(),d,t)[0]}return Vr(this,{ts:l,zone:t})}return e.invalid(jr(t))},t.reconfigure=function(e){var t=void 0===e?{}:e;return Vr(this,{loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.outputCalendar})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,r=me(e,rn),n=!z(r.weekYear)||!z(r.weekNumber)||!z(r.weekday),i=!z(r.ordinal),s=!z(r.year),o=!z(r.month)||!z(r.day);if((s||o||i)&&(r.weekYear||r.weekNumber))throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new b("Can't mix ordinal dates with month/day");n?t=Pr(a({},Rr(this.c),r)):z(r.ordinal)?(t=a({},this.toObject(),r),z(r.day)&&(t.day=Math.min(ie(t.year,t.month),t.day))):t=Br(a({},Ir(this.c),r));var l=Wr(t,this.o,this.zone);return Vr(this,{ts:l[0],o:l[1]})},t.plus=function(e){return this.isValid?Vr(this,zr(this,ir(e))):this},t.minus=function(e){return this.isValid?Vr(this,zr(this,ir(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},r=ar.normalizeUnit(e);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){var n=Math.ceil(this.month/3);t.month=3*(n-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Fe.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Lr},t.toLocaleString=function(e,t){return void 0===e&&(e=C),void 0===t&&(t={}),this.isValid?Fe.create(this.loc.clone(t),e).formatDateTime(this):Lr},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Fe.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,r="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(r="+"+r),Zr(this,r)},t.toISOWeekDate=function(){return Zr(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,r=t.suppressMilliseconds,n=t.suppressSeconds,a=t.includeOffset,i=t.includePrefix,s=t.format;return Jr(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==r&&r,includeOffset:void 0===a||a,includePrefix:void 0!==i&&i,format:void 0===s?"extended":s})},t.toRFC2822=function(){return Zr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Zr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Zr(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,r=t.includeOffset,n=t.includeZone;return Jr(this,{includeOffset:void 0===r||r,includeZone:void 0!==n&&n,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Lr},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=a({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,r){if(void 0===t&&(t="milliseconds"),void 0===r&&(r={}),!this.isValid||!e.isValid)return ar.invalid("created by diffing an invalid DateTime");var n,i=a({locale:this.locale,numberingSystem:this.numberingSystem},r),s=(n=t,Array.isArray(n)?n:[n]).map(ar.normalizeUnit),o=e.valueOf()>this.valueOf(),l=function(e,t,r,n){var a,i=function(e,t,r){for(var n,a,i={},s=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var r=ur(e,t);return(r-r%7)/7}],["days",ur]];s<o.length;s++){var l=o[s],d=l[0],u=l[1];if(r.indexOf(d)>=0){var c;n=d;var m,p=u(e,t);(a=e.plus(((c={})[d]=p,c)))>t?(e=e.plus(((m={})[d]=p-1,m)),p-=1):e=a,i[d]=p}}return[e,i,a,n]}(e,t,r),s=i[0],o=i[1],l=i[2],d=i[3],u=t-s,c=r.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===c.length&&(l<t&&(l=s.plus(((a={})[d]=1,a))),l!==s&&(o[d]=(o[d]||0)+u/(l-s)));var m,p=ar.fromObject(o,n);return c.length>0?(m=ar.fromMillis(u,n)).shiftTo.apply(m,c).plus(p):p}(o?this:e,o?e:this,s,i);return o?l.negate():l},t.diffNow=function(t,r){return void 0===t&&(t="milliseconds"),void 0===r&&(r={}),this.diff(e.now(),t,r)},t.until=function(e){return this.isValid?lr.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=r&&r<=n.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(i=t.unit,s=void 0),an(r,this.plus(n),a({},t,{numeric:"always",units:i,unit:s}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?an(t.base||e.fromObject({},{zone:this.zone}),this,a({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.every(e.isDateTime))throw new y("min requires all arguments be DateTimes");return X(r,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.every(e.isDateTime))throw new y("max requires all arguments be DateTimes");return X(r,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,r){void 0===r&&(r={});var n=r.locale,a=r.numberingSystem;return Dr(lt.fromOpts({locale:void 0===n?null:n,numberingSystem:void 0===a?null:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,r,n){return void 0===n&&(n={}),e.fromFormatExplain(t,r,n)},n(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?_r(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?_r(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?_r(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Ir(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?dr.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?dr.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?dr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?dr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ne(this.year)}},{key:"daysInMonth",get:function(){return ie(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ae(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?oe(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return C}},{key:"DATE_MED",get:function(){return D}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return E}},{key:"DATE_FULL",get:function(){return k}},{key:"DATE_HUGE",get:function(){return A}},{key:"TIME_SIMPLE",get:function(){return S}},{key:"TIME_WITH_SECONDS",get:function(){return T}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return F}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return R}},{key:"TIME_24_SIMPLE",get:function(){return P}},{key:"TIME_24_WITH_SECONDS",get:function(){return I}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return B}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return N}},{key:"DATETIME_SHORT",get:function(){return O}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return L}},{key:"DATETIME_MED",get:function(){return M}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return _}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return G}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),e}();function ln(e){if(on.isDateTime(e))return e;if(e&&e.valueOf&&U(e.valueOf()))return on.fromJSDate(e);if(e&&"object"==typeof e)return on.fromObject(e);throw new y("Unknown datetime argument: "+e+", of type "+typeof e)}t.DateTime=on,t.Duration=ar,t.FixedOffsetZone=Ve,t.IANAZone=je,t.Info=dr,t.Interval=lr,t.InvalidZone=Ge,t.Settings=Ye,t.SystemZone=Be,t.VERSION="2.0.1",t.Zone=Pe}));const nn=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){var t;const r=this.date?null===(t=rn.DateTime.fromMillis(this.date))||void 0===t?void 0:t.toLocaleString(rn.DateTime.DATE_MED):"-";return e(Y,{type:"p"},r)}},an=class{constructor(e){t(this,e)}render(){const t={DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)"}};L.setup(M());const r=L.createStyleSheet(t),n=r.toString(),a=e=>rn.DateTime.fromMillis(e).toRelative().replace("in","").trim();return this.rewards.map((t=>{const i=1===(s=t.statuses).length?s[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"].find((e=>s.includes(e)&&e));var s;const o=(e=>{switch(e){case"REDEEMED":return"primary";case"EXPIRED":case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}})(i),l=(e=>e[0].toUpperCase()+e.slice(1).toLowerCase())(i);return e("sl-details",{class:r.classes.Details,disabled:this.hideDetails},e("style",{type:"text/css"},n),e("div",{slot:"summary",class:r.classes.DetailsContainer},e(Y,{type:"p"},e("span",{class:r.classes.BoldText},t.prettyValue)),e("div",{class:r.classes.BadgeContainer},e("sl-badge",{class:r.classes.StatusBadge,type:o,pill:!0},"PENDING"===i&&t.dateScheduledFor?`${l} for ${a(t.dateScheduledFor)}`:l),t.dateExpires&&"AVAILABLE"===i&&e("sl-badge",{class:r.classes.StatusBadge,type:"info",pill:!0},`Expiring in ${a(t.dateExpires)}`))),e("div",null,t.dateGiven&&e("div",null,e(Y,{type:"p"},"Reward received on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateGiven).toLocaleString(rn.DateTime.DATE_MED)))),"EXPIRED"===i&&t.dateExpires&&e("div",null,e(Y,{type:"p"},"Reward expired on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateExpires).toLocaleString(rn.DateTime.DATE_MED)))),"CANCELLED"===i&&t.dateCancelled&&e("div",null,e(Y,{type:"p"},"Reward cancelled on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateCancelled).toLocaleString(rn.DateTime.DATE_MED)))),"PENDING"===i&&t.dateScheduledFor&&e("div",null,e(Y,{type:"p"},"Available on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateScheduledFor).toLocaleString(rn.DateTime.DATE_MED))))," ","AVAILABLE"===i&&t.dateExpires&&e("div",null,e(Y,{type:"p"},"Reward expiring on"," ",e("span",{class:r.classes.BoldText},rn.DateTime.fromMillis(t.dateExpires).toLocaleString(rn.DateTime.DATE_MED)))),t.fuelTankCode&&e("div",null,e(Y,{type:"p"},"Your code is"," ",e("span",{class:r.classes.BoldText},t.fuelTankCode)))))}))}},sn=class{constructor(e){t(this,e)}render(){return e("sl-badge",{type:this.converted?"success":"warning",pill:!0},this.statusText)}},on=class{constructor(e){t(this,e)}render(){return e(Y,{type:"p"},this.name)}},ln=v.gql`
|
|
197
197
|
query getExchangeList {
|
|
198
198
|
viewer {
|
|
199
199
|
... on User {
|
|
@@ -243,7 +243,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
`,un=()=>e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{marginBottom:"-2px",marginRight:"5px"}},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.34655 1.90573C7.75405 2.31323 7.75405 2.97392 7.34655 3.38143L3.56266 7.16531H14.9565C15.5328 7.16531 16 7.6325 16 8.20879C16 8.78509 15.5328 9.25227 14.9565 9.25227H3.56266L7.69437 13.384C8.10188 13.7915 8.10188 14.4522 7.69437 14.8597C7.28687 15.2672 6.62617 15.2672 6.21867 14.8597L0.305628 8.94664C-0.101876 8.53914 -0.101876 7.87845 0.305628 7.47094L5.87084 1.90573C6.27835 1.49822 6.93904 1.49822 7.34655 1.90573Z",fill:"#858585"})),cn=()=>e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("circle",{cx:"15",cy:"15",r:"15",fill:"white"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6255 21.783C10.5129 21.8963 10.3597 21.96 10.2 21.96C10.0402 21.96 9.88705 21.8963 9.77442 21.783L5.87442 17.8597C5.64081 17.6247 5.64194 17.2448 5.87695 17.0112C6.11197 16.7775 6.49186 16.7787 6.72548 17.0137L9.59995 19.9054V8.52001C9.59995 8.18864 9.86858 7.92001 10.2 7.92001C10.5313 7.92001 10.8 8.18864 10.8 8.52001V19.9054L13.6744 17.0137C13.908 16.7787 14.2879 16.7775 14.5229 17.0112C14.758 17.2448 14.7591 17.6247 14.5255 17.8597L10.6255 21.783ZM20.2255 8.09707C20.1129 7.98378 19.9597 7.92007 19.8 7.92007C19.6402 7.92007 19.487 7.98378 19.3744 8.09707L15.4744 12.0204C15.2408 12.2554 15.2419 12.6353 15.477 12.8689C15.712 13.1025 16.0919 13.1014 16.3255 12.8664L19.2 9.97473V21.3601C19.2 21.6914 19.4686 21.9601 19.8 21.9601C20.1313 21.9601 20.4 21.6914 20.4 21.3601V9.97473L23.2744 12.8664C23.508 13.1014 23.8879 13.1025 24.1229 12.8689C24.358 12.6353 24.3591 12.2554 24.1255 12.0204L20.2255 8.09707Z",fill:"#333333"})),mn=()=>e("svg",{style:{top:"-4px",position:"relative",left:"2px"},xmlns:"http://www.w3.org/2000/svg",width:"10",height:"7",viewBox:"0 0 10 7",fill:"none"},e("path",{d:"M2.12828 2.71485C1.72536 2.33712 1.09253 2.35754 0.714799 2.76045C0.337068 3.16336 0.357483 3.7962 0.760395 4.17393L2.12828 2.71485ZM3.81471 5.66661L3.13076 6.39615C3.51542 6.75677 4.11399 6.75677 4.49865 6.39615L3.81471 5.66661ZM9.23939 1.95171C9.6423 1.57397 9.66271 0.941139 9.28498 0.538227C8.90725 0.135315 8.27442 0.114901 7.87151 0.492631L9.23939 1.95171ZM0.760395 4.17393L3.13076 6.39615L4.49865 4.93708L2.12828 2.71485L0.760395 4.17393ZM4.49865 6.39615L9.23939 1.95171L7.87151 0.492631L3.13076 4.93708L4.49865 6.39615Z",fill:"white"}));function pn({active:t,completed:r,incomplete:n}){return e("div",{style:{flex:"0 0 0",content:"''",height:"4px",borderRadius:"4px",background:n?"#E5E5E5":"#9E9E9E",position:"relative",bottom:"0",left:"0",display:"flex",justifyContent:"center",columnGap:"50px",marginRight:"-2px",boxSizing:"content-box"}},e("div",{style:{backgroundColor:r?"#9E9E9E":"#FFF",border:t?"2px solid #9E9E9E":n?"2px solid #E5E5E5":"none",borderRadius:"50%",width:r?"14px":"10px",height:r?"14px":"10px",margin:"-5px auto 0px",zIndex:"1",boxSizing:"content-box"}},r&&e(mn,null)))}function hn({incomplete:t=!1,active:r=!1}){return e("div",{style:{content:"''",flex:"0.5 0.5 0",height:"4px",borderRadius:"4px",background:t||r?"#E5E5E5":"#9E9E9E",position:"relative",bottom:"0",left:"0",display:"flex",justifyContent:"center",columnGap:"50px",marginRight:"-2px",boxSizing:"content-box"}})}function fn({active:t,completed:r,incomplete:n}){return[e(hn,{incomplete:n}),e(pn,{active:t,completed:r,incomplete:n}),e(hn,{incomplete:n,active:t})]}function gn({stageCount:t,currentStage:r}){return e("div",{style:{display:"flex",columnGap:"-2px"}},Array.from(Array(t).keys()).map((t=>e(fn,{active:r===t,completed:r>t,incomplete:r<t}))))}const bn=["chooseReward","chooseAmount","confirmation","success"],vn={chooseReward:"Choose reward",chooseAmount:"Amount",confirmation:"Confirm"};function yn(t){O.setup(M());const r=O.createStyleSheet({Container:{position:"relative"},CardContainer:{"&:hover":{boxShadow:"0 3px 10px #87ceeb6e!important"}},Base:{display:"flex",cursor:"pointer",textAlign:"center",height:"120px","&::part(base)":{width:"100%",maxWidth:"350px",display:"flex",margin:"0 auto"},"&::part(body)":{padding:0,display:"flex",width:"100%"}},Drawer:{"&::part(base)":{minWidth:"400px",maxWidth:"700px",width:"50%",margin:"0 auto",right:"0"},"&::part(panel)":{height:"85vh",width:"100%"}},FullImage:{objectFit:"contain",maxWidth:"100%",height:"100px"},PreviewImage:{objectFit:"contain",width:"120px",height:"120px",flex:.33},InputBox:{width:"100%",marginBottom:"20px"},Select:{"&::part(base)":{flex:"0.75"},"&::part(menu)":{maxHeight:"40vh"}},Buttons:{marginLeft:"auto",width:"100%",maxWidth:"300px"},Button:{margin:"10px 0",display:"block",textAlign:"center",cursor:"pointer"},ProgressBar:{fontSize:"80%",marginBottom:"20px","& .text-area":{marginTop:"5px",display:"flex",justifyContent:"center",textAlign:"center",whiteSpace:"nowrap",marginBottom:"6px","& .text":{flex:"1 1 0"},"& .text.subdued":{color:"#BDBDBD"}}}}),a=r.toString(),{states:i,data:s,callbacks:o}=t,{selectedItem:l,selectedStep:d}=i;const u={chooseReward:()=>{return[e("div",{style:{display:"grid",justifyContent:"center",gap:"20px",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))"}},null===(t=s.exchangeList)||void 0===t?void 0:t.map((t=>{const a="FIXED_GLOBAL_REWARD"===t.ruleType?t.prettySourceValue:`${t.sourceMinValue} to ${t.prettySourceMaxValue}`;return e("div",{key:t.key,class:t.available?r.classes.CardContainer:"",style:{boxShadow:t.key===(null==l?void 0:l.key)?"0 1px 8px #87ceeb":"none",marginBottom:"10px 0",flex:"1",minWidth:"100%",color:!t.available&&"#eee"}},e("sl-card",{class:r.classes.Base,onClick:()=>t.available&&o.setExchangeState({selectedItem:t})},e("img",{class:r.classes.PreviewImage,src:(null==t?void 0:t.imageUrl)||n("./assets/Reward-icon.png")}),e("p",{style:{textAlign:"left",margin:"0",flex:"1",fontSize:"90%",padding:"8px"}},e("b",null,t.description),e("p",{style:{margin:"0"}},a),t.unavailableReasonCode&&e("p",{style:{fontSize:"70%",color:"#F2994A",marginTop:"0"}},"INSUFFICIENT_REDEEMABLE_CREDIT"===t.unavailableReasonCode?"Not enough points":t.unavailableReasonCode))))}))),e("div",{class:r.classes.Buttons},e("sl-button",{onClick:()=>o.setStage("chooseAmount"),style:{display:"block"},class:r.classes.Button,disabled:!i.selectedItem},"Continue"),e("a",{style:{display:"block"},class:r.classes.Button},"Cancel"))];var t},chooseAmount:()=>function(){const t=function(){var t,n;const a=i.selectedItem;return a&&"FIXED_GLOBAL_REWARD"!==(null==a?void 0:a.ruleType)?(null===(t=a.steps)||void 0===t?void 0:t.length)?e("sl-select",{style:{width:"auto"},label:"Select amount to receive",class:r.classes.Select,value:i.selectedStep,"onSl-select":e=>{var t,r,n,a,i;return o.setExchangeState({amount:null===(n=null===(r=null===(t=e.detail)||void 0===t?void 0:t.item)||void 0===r?void 0:r.value)||void 0===n?void 0:n.sourceValue,selectedStep:null===(i=null===(a=e.detail)||void 0===a?void 0:a.item)||void 0===i?void 0:i.value})}},null===(n=a.steps)||void 0===n?void 0:n.map((t=>e("sl-menu-item",{value:t,disabled:!t.available},t.prettyDestinationValue,e("div",{slot:"suffix",style:{fontSize:"75%",float:"right"}},t.prettySourceValue,t.unavailableReasonCode&&e("p",{style:{fontSize:"70%",color:"#F2994A"}},t.unavailableReasonCode)))))):e("p",null,"Not enough ",a.sourceUnit," to redeem for this reward."):e("span",null)}();return e("div",null,e("div",{style:{width:"50%",margin:"0 auto"}},(null==l?void 0:l.imageUrl)&&e("img",{class:r.classes.FullImage,src:null==l?void 0:l.imageUrl})),e("p",null,null==l?void 0:l.description),e("div",{class:r.classes.InputBox},t),e("div",{class:r.classes.Buttons},e("sl-button",{onClick:()=>o.setStage("confirmation"),disabled:t&&!i.amount,style:{display:"block"},class:r.classes.Button},"Continue"),e("a",{onClick:()=>o.setStage("chooseReward"),style:{display:"block"},class:r.classes.Button},"Back")))}(),confirmation:()=>e("div",null,e("h2",null,"Confirm and redeem"),e("div",{style:{textAlign:"center"}},e("p",null,e("b",null,null==d?void 0:d.prettySourceValue)),e("p",null,e(cn,null)),e("div",{class:r.classes.CardContainer,style:{boxShadow:"none",marginBottom:"10px",flex:"1",minWidth:"100%"}},e("sl-card",{class:r.classes.Base},e("img",{class:r.classes.PreviewImage,src:(null==l?void 0:l.imageUrl)||n("./assets/Reward-icon.png")}),e("p",{style:{marginBottom:"0",flex:"1"}},null==d?void 0:d.prettyDestinationValue)))),e("div",{class:r.classes.Buttons},e("sl-button",{onClick:o.exchangeReward,style:{display:"block"},class:r.classes.Button},"Redeem"),e("a",{onClick:()=>o.setStage("chooseAmount"),style:{display:"block"},class:r.classes.Button},"Back"))),success:()=>e("div",{style:{textAlign:"center"}},e("img",{class:r.classes.FullImage,src:n("./assets/Reward-icon.png")}),e("p",{style:{color:"forestgreen"}},"Reward Redeemed"),(null==s?void 0:s.fuelTankCode)&&e("pre",null,null==s?void 0:s.fuelTankCode))}[i.redeemStage];return console.log(t),e("div",{class:r.classes.Container},e("style",{type:"text/css"},a),e("div",null,e((()=>{if("success"===i.redeemStage)return"";let t="";return"confirmation"===i.redeemStage?t="chooseAmount":"chooseAmount"===i.redeemStage&&(t="chooseReward"),e("div",{slot:"label"},e("a",{style:{cursor:"pointer",fontSize:"80%",color:"#858585"},onClick:()=>o.setStage(t)},e(un,null)," Back"))}),null),function(){const t=bn.indexOf(i.redeemStage);return e("div",{class:r.classes.ProgressBar},e("div",{class:"text-area"},Object.keys(vn).map((t=>e("span",t===i.redeemStage?{class:"text"}:{class:"text subdued"},vn[t])))),e(gn,{stageCount:3,currentStage:t}))}(),u&&u(),i.exchangeError&&"Something went wrong. Please contact support or try again."))}const wn=class{constructor(e){t(this,e),this.ignored=!0,this.buttonText="Exchange Rewards",a(this)}disconnectedCallback(){}render(){const{states:t,data:n,callbacks:a,refs:i}=x()?function(e){return V({states:{content:{text:e},redeemStage:"chooseReward",amount:0,selectedStep:void 0,exchangeError:!1,loading:!1},data:{shareCode:"SHARECODE123"},callbacks:{exchangeReward:()=>{},openDrawer:()=>{},setExchangeState:()=>{},setStage:()=>{}},refs:{drawerRef:{}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(j(this)):function(e){var t,r,n,a;const i=o(),[l,d]=c(((e,t)=>({...e,...t})),{selectedItem:void 0,selectedStep:void 0,redeemStage:"chooseReward",amount:0,exchangeError:!1}),{selectedItem:u,selectedStep:m,redeemStage:p,amount:h,exchangeError:f}=l,g=y(),[v,{data:x,errors:q}]=$(dn),{data:C,loading:D}=w(ln,!(null==g?void 0:g.jwt));s((()=>{var e,t;(null===(t=null===(e=null==x?void 0:x.exchangeReward)||void 0===e?void 0:e.reward)||void 0===t?void 0:t.id)&&d({redeemStage:"success"}),q&&(console.log("YEA"),d({exchangeError:!0}))}),[x,q]);const E=b((e=>{var t,r;(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.componentId)===(null===(r=i.current)||void 0===r?void 0:r.componentId)&&d({amount:0,selectedStep:void 0,selectedItem:void 0,exchangeError:!1})}),[]);return s((()=>{if(!(null==i?void 0:i.current))return;const e=i.current;return e.addEventListener("sl-hide",E),()=>{e.removeEventListener("sl-hide",E)}}),[i.current]),{states:{content:{text:e},selectedItem:u,redeemStage:p,amount:h,selectedStep:m,exchangeError:f,loading:D},data:{exchangeList:null===(r=null===(t=null==C?void 0:C.viewer)||void 0===t?void 0:t.visibleRewardExchangeItems)||void 0===r?void 0:r.data,fuelTankCode:null===(a=null===(n=null==x?void 0:x.exchangeReward)||void 0===n?void 0:n.reward)||void 0===a?void 0:a.fuelTankCode},callbacks:{exchangeReward:function(){if(!u)return;let e={accountId:null==g?void 0:g.accountId,userId:g.id};switch(u.ruleType){case"FIXED_GLOBAL_REWARD":e={...e,redeemCreditInput:{amount:u.sourceValue,unit:u.sourceUnit},globalRewardKey:u.globalRewardKey};break;case"VARIABLE_GLOBAL_REWARD":e={...e,redeemCreditInput:{amount:h,unit:u.sourceUnit},globalRewardKey:u.globalRewardKey,rewardInput:{valueInCents:m.destinationValue}};break;case"VARIABLE_CREDIT_REWARD":e={...e,redeemCreditInput:{amount:h,unit:u.sourceUnit},rewardInput:{type:"CREDIT",unit:u.destinationUnit,assignedCredit:m.destinationValue}};break;default:e={...e,redeemCreditInput:{amount:u.sourceValue,unit:u.sourceUnit},globalRewardKey:u.globalRewardKey}}v({exchangeRewardInput:e})},openDrawer:function(){var e;d({redeemStage:"chooseReward"}),null===(e=i.current)||void 0===e||e.show()},setExchangeState:d,setStage:function(e){d({redeemStage:e})}},refs:{drawerRef:i}}}(j(this));return e(r,{style:{display:"contents"}},e(yn,{states:t,data:n,callbacks:a,refs:i}))}static get assetsDirs(){return["assets"]}},$n={THead:{padding:"var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0","text-align":"left"},TCell:{padding:"var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0"},TRow:{"border-top":"1px solid #EAEAEA"},Table:{"border-collapse":"collapse",width:"100%"},ButtonContainer:{display:"flex","justify-content":"flex-end","margin-top":"var(--sl-spacing-small)",...Z({direction:"row",size:"var(--sl-spacing-small)"})}};O.setup(M());const xn=O.createStyleSheet($n),qn=xn.toString();function Cn(t){const{states:r,data:n,callbacks:a,elements:i}=t,{columns:s,rows:o}=i,{show:l}=r;return e("div",null,e("style",{type:"text/css"},qn),e("table",{class:xn.classes.Table},n.textOverrides.showLabels&&e("thead",null,e("tr",null,null==s?void 0:s.map((t=>e("th",{class:xn.classes.THead},e(Y,{type:"h3"},t)))))),e("tbody",null,"loading"===l&&i.loadingElement,"empty"===l&&i.emptyElement,"rows"===l&&(null==o?void 0:o.map(((t,r)=>e("tr",{class:xn.classes.TRow,style:{borderTop:n.textOverrides.showLabels||0!==r?"":"none"},part:"table-row"},t.map((t=>e("td",{class:xn.classes.TCell},e(Y,{type:"p"},t)))))))))),e("div",{class:xn.classes.ButtonContainer,part:r.namespace+"-button-wrapper"},e("sl-button",{size:"small",disabled:!r.hasPrev,loading:"loading"===l,onClick:a.prevPage,exportparts:"base: defaultbutton-base"},n.textOverrides.prevLabel),e("sl-button",{size:"small",loading:"loading"===l,disabled:!r.hasNext,onClick:a.nextPage,exportparts:"base: defaultbutton-base"},n.textOverrides.moreLabel)))}function Dn(){return e("slot",{name:"loading"},e(En,null))}function En(){return e("div",{style:{width:"100%"}},e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",null))}function kn({label:t}){return e("slot",{name:"empty"},e(An,{label:t}))}function An({label:t}){return e("div",{style:{width:"100%"}},e("sqm-text",null,e("h3",{style:{color:"#777777"}},t)))}const Sn=Q`
|
|
246
|
+
`,un=()=>e("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("circle",{cx:"15",cy:"15",r:"15",fill:"white"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6255 21.783C10.5129 21.8963 10.3597 21.96 10.2 21.96C10.0402 21.96 9.88705 21.8963 9.77442 21.783L5.87442 17.8597C5.64081 17.6247 5.64194 17.2448 5.87695 17.0112C6.11197 16.7775 6.49186 16.7787 6.72548 17.0137L9.59995 19.9054V8.52001C9.59995 8.18864 9.86858 7.92001 10.2 7.92001C10.5313 7.92001 10.8 8.18864 10.8 8.52001V19.9054L13.6744 17.0137C13.908 16.7787 14.2879 16.7775 14.5229 17.0112C14.758 17.2448 14.7591 17.6247 14.5255 17.8597L10.6255 21.783ZM20.2255 8.09707C20.1129 7.98378 19.9597 7.92007 19.8 7.92007C19.6402 7.92007 19.487 7.98378 19.3744 8.09707L15.4744 12.0204C15.2408 12.2554 15.2419 12.6353 15.477 12.8689C15.712 13.1025 16.0919 13.1014 16.3255 12.8664L19.2 9.97473V21.3601C19.2 21.6914 19.4686 21.9601 19.8 21.9601C20.1313 21.9601 20.4 21.6914 20.4 21.3601V9.97473L23.2744 12.8664C23.508 13.1014 23.8879 13.1025 24.1229 12.8689C24.358 12.6353 24.3591 12.2554 24.1255 12.0204L20.2255 8.09707Z",fill:"#333333"})),cn=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"7",viewBox:"0 0 10 7",fill:"none"},e("path",{d:"M2.12828 2.71485C1.72536 2.33712 1.09253 2.35754 0.714799 2.76045C0.337068 3.16336 0.357483 3.7962 0.760395 4.17393L2.12828 2.71485ZM3.81471 5.66661L3.13076 6.39615C3.51542 6.75677 4.11399 6.75677 4.49865 6.39615L3.81471 5.66661ZM9.23939 1.95171C9.6423 1.57397 9.66271 0.941139 9.28498 0.538227C8.90725 0.135315 8.27442 0.114901 7.87151 0.492631L9.23939 1.95171ZM0.760395 4.17393L3.13076 6.39615L4.49865 4.93708L2.12828 2.71485L0.760395 4.17393ZM4.49865 6.39615L9.23939 1.95171L7.87151 0.492631L3.13076 4.93708L4.49865 6.39615Z",fill:"white"}));function mn({active:t,completed:r,incomplete:n}){return e("div",{style:{flex:"0 0 0",content:"''",height:"4px",borderRadius:"4px",background:n?"#E5E5E5":"#9E9E9E",position:"relative",bottom:"0",left:"0",display:"flex",justifyContent:"center",columnGap:"50px",marginRight:"-2px",boxSizing:"content-box"}},e("div",{style:{backgroundColor:r?"#9E9E9E":"#FFF",border:t?"3px solid #9E9E9E":n?"3px solid #E5E5E5":"3px solid #9E9E9E",borderRadius:"50%",width:"10px",height:"10px",margin:"-6px auto 0px",zIndex:"1",boxSizing:"content-box"}},r&&e("div",{style:{top:"-6px",position:"relative"}},e(cn,null))))}function pn({incomplete:t=!1,active:r=!1}){return e("div",{style:{content:"''",flex:"0.5 0.5 0",height:"4px",borderRadius:"4px",background:t||r?"#E5E5E5":"#9E9E9E",position:"relative",bottom:"0",left:"0",display:"flex",justifyContent:"center",columnGap:"50px",marginRight:"-2px",boxSizing:"content-box"}})}function hn({active:t,completed:r,incomplete:n}){return[e(pn,{incomplete:n}),e(mn,{active:t,completed:r,incomplete:n}),e(pn,{incomplete:n,active:t})]}function fn({stageCount:t,currentStage:r}){return e("div",{style:{display:"flex",columnGap:"-2px"}},Array.from(Array(t).keys()).map((t=>e(hn,{active:r===t,completed:r>t,incomplete:r<t}))))}const gn=["chooseReward","chooseAmount","confirmation","success"],bn={chooseReward:"Choose reward",chooseAmount:"Amount",confirmation:"Confirm"};function vn(t){L.setup(M());const r=L.createStyleSheet({Container:{padding:"var(--sl-spacing-medium)",position:"relative"},CardContainer:{"&:active":{}},Base:{display:"flex",cursor:"pointer",textAlign:"center",height:"120px","&::part(base)":{boxShadow:"none",width:"100%",display:"flex",margin:"0 auto"},"&::part(body)":{padding:0,display:"flex",width:"100%"}},Drawer:{"&::part(base)":{minWidth:"400px",maxWidth:"700px",width:"50%",margin:"0 auto",right:"0"},"&::part(panel)":{height:"85vh",width:"100%"}},FullImage:{objectFit:"contain",maxWidth:"100%",height:"100px"},PreviewImage:{objectFit:"contain",width:"120px",height:"120px",flex:.33},InputBox:{width:"100%",marginBottom:"20px"},Select:{"&::part(base)":{flex:"0.75"},"&::part(menu)":{maxHeight:"40vh"}},Buttons:{marginLeft:"auto",width:"100%",maxWidth:"300px"},Button:{margin:"10px 0",display:"block",textAlign:"center",cursor:"pointer"},ProgressBar:{fontSize:"80%",marginBottom:"20px","& .text-area":{marginTop:"5px",display:"flex",justifyContent:"center",textAlign:"center",whiteSpace:"nowrap",marginBottom:"6px","& .text":{flex:"1 1 0"},"& .text.subdued":{color:"#BDBDBD"}}},KutayCard:{"&::part(base)":{boxShadow:"none"}},KutayButton:{display:"flex",flexWrap:"wrap",margin:"var(--sl-spacing-medium) 0","& .cancel":{width:"150px",marginLeft:"auto",marginRight:"var(--sl-spacing-medium)","&::part(base)":{fontWeight:"var(--sl-font-weight-normal)",color:"var(--sl-color-neutral-1000)"}},"& .continue":{width:"150px","&::part(base)":{background:"var(--sl-color-neutral-500)",fontWeight:"var(--sl-font-weight-normal)",color:"var(--sl-color-neutral-0)"}}}}),a=r.toString(),{states:i,data:s,callbacks:o}=t,{selectedItem:l,selectedStep:d}=i;const u={chooseReward:()=>{return[e("div",{style:{display:"grid",justifyContent:"center",gap:"20px",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))"}},null===(t=s.exchangeList)||void 0===t?void 0:t.map((t=>{const a="FIXED_GLOBAL_REWARD"===t.ruleType?t.prettySourceValue:`${t.sourceMinValue} to ${t.prettySourceMaxValue}`;return e("div",{key:t.key,class:t.available?r.classes.CardContainer:"",style:{boxShadow:t.key===(null==l?void 0:l.key)?"0 0 0 2px var(--sl-color-primary-500)":"none",marginBottom:"10px 0",borderRadius:"var(--sl-border-radius-medium)",flex:"1",minWidth:"100%",color:!t.available&&"#eee"}},e("sl-card",{class:r.classes.Base,onClick:()=>t.available&&o.setExchangeState({selectedItem:t})},t.key===(null==l?void 0:l.key)&&e("div",{style:{width:"18px",height:"18px",borderRadius:"50%",background:"var(--sl-color-primary-500)",position:"relative",margin:"-9px",left:"350px"}},e("div",{style:{position:"relative",top:"-6px"}},e(cn,null))),e("img",{class:r.classes.PreviewImage,src:(null==t?void 0:t.imageUrl)||n("./assets/Reward-icon.png")}),e("p",{style:{textAlign:"left",margin:"0",flex:"1",fontSize:"90%",padding:"8px"}},e("b",null,t.description),e("p",{style:{margin:"0"}},a),t.unavailableReasonCode&&e("p",{style:{fontSize:"70%",color:"#F2994A",marginTop:"0"}},"INSUFFICIENT_REDEEMABLE_CREDIT"===t.unavailableReasonCode?"Not enough points":t.unavailableReasonCode))))}))),e("div",{class:r.classes.KutayButton},e("sl-button",{class:"continue",size:"large",onClick:()=>o.setStage("chooseAmount"),disabled:!i.selectedItem},"Continue"))];var t},chooseAmount:()=>function(){const t=function(){var t,n;const a=i.selectedItem;return a&&"FIXED_GLOBAL_REWARD"!==(null==a?void 0:a.ruleType)?(null===(t=a.steps)||void 0===t?void 0:t.length)?e("sl-select",{style:{width:"auto"},label:"Select amount to receive",class:r.classes.Select,value:i.selectedStep,"onSl-select":e=>{var t,r,n,a,i;return o.setExchangeState({amount:null===(n=null===(r=null===(t=e.detail)||void 0===t?void 0:t.item)||void 0===r?void 0:r.value)||void 0===n?void 0:n.sourceValue,selectedStep:null===(i=null===(a=e.detail)||void 0===a?void 0:a.item)||void 0===i?void 0:i.value})}},null===(n=a.steps)||void 0===n?void 0:n.map((t=>e("sl-menu-item",{value:t,disabled:!t.available},t.prettyDestinationValue,e("div",{slot:"suffix",style:{fontSize:"75%",float:"right"}},t.prettySourceValue,t.unavailableReasonCode&&e("p",{style:{fontSize:"70%",color:"#F2994A"}},t.unavailableReasonCode)))))):e("p",null,"Not enough ",a.sourceUnit," to redeem for this reward."):e("span",null)}();return e("div",null,e("div",{style:{width:"50%",margin:"0 auto"}},(null==l?void 0:l.imageUrl)&&e("img",{class:r.classes.FullImage,src:null==l?void 0:l.imageUrl})),e("p",null,null==l?void 0:l.description),e("div",{class:r.classes.InputBox},t),e("div",{class:r.classes.KutayButton},e("sl-button",{class:"cancel",size:"large",type:"text",onClick:()=>o.setStage("chooseReward")},"Cancel"),e("sl-button",{class:"continue",size:"large",onClick:()=>o.setStage("confirmation"),disabled:"FIXED_GLOBAL_REWARD"!==i.selectedItem.ruleType||t&&!i.amount},"Continue to confirmation")))}(),confirmation:()=>e("div",null,e("h2",null,"Confirm and redeem"),e("div",{style:{textAlign:"center"}},e("p",null,e("b",null,null==d?void 0:d.prettySourceValue)),e("p",null,e(un,null)),e("div",{class:r.classes.CardContainer,style:{boxShadow:"none",marginBottom:"10px",flex:"1",minWidth:"100%"}},e("sl-card",{class:r.classes.Base},e("img",{class:r.classes.PreviewImage,src:(null==l?void 0:l.imageUrl)||n("./assets/Reward-icon.png")}),e("p",{style:{marginBottom:"0",flex:"1"}},null==d?void 0:d.prettyDestinationValue)))),e("div",{class:r.classes.Buttons},e("sl-button",{onClick:o.exchangeReward,style:{display:"block"},class:r.classes.Button},"Redeem"),e("a",{onClick:()=>o.setStage("chooseAmount"),style:{display:"block"},class:r.classes.Button},"Back"))),success:()=>e("div",{style:{textAlign:"center"}},e("img",{class:r.classes.FullImage,src:n("./assets/Reward-icon.png")}),e("p",{style:{color:"forestgreen"}},"Reward Redeemed"),(null==s?void 0:s.fuelTankCode)&&e("pre",null,null==s?void 0:s.fuelTankCode))}[i.redeemStage];return console.log(t),e("div",{class:r.classes.Container},e("style",{type:"text/css"},a),e("div",null,function(){const t=gn.indexOf(i.redeemStage);return e("div",{class:r.classes.ProgressBar},e("div",{class:"text-area"},Object.keys(bn).map((t=>e("span",t===i.redeemStage?{class:"text"}:{class:"text subdued"},bn[t])))),e(fn,{stageCount:3,currentStage:t}))}(),u&&u(),i.exchangeError&&"Something went wrong. Please contact support or try again."))}const yn=class{constructor(e){t(this,e),this.ignored=!0,this.buttonText="Exchange Rewards",a(this)}disconnectedCallback(){}render(){const{states:t,data:n,callbacks:a,refs:i}=x()?function(e){return V({states:{content:{text:e},redeemStage:"chooseReward",amount:0,selectedStep:void 0,exchangeError:!1,loading:!1},data:{shareCode:"SHARECODE123"},callbacks:{exchangeReward:()=>{},openDrawer:()=>{},setExchangeState:()=>{},setStage:()=>{}},refs:{drawerRef:{}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(j(this)):function(e){var t,r,n,a;const i=o(),[l,d]=c(((e,t)=>({...e,...t})),{selectedItem:void 0,selectedStep:void 0,redeemStage:"chooseReward",amount:0,exchangeError:!1}),{selectedItem:u,selectedStep:m,redeemStage:p,amount:h,exchangeError:f}=l,g=y(),[v,{data:x,errors:q}]=$(dn),{data:C,loading:D}=w(ln,!(null==g?void 0:g.jwt));s((()=>{var e,t;(null===(t=null===(e=null==x?void 0:x.exchangeReward)||void 0===e?void 0:e.reward)||void 0===t?void 0:t.id)&&d({redeemStage:"success"}),q&&(console.log("YEA"),d({exchangeError:!0}))}),[x,q]);const E=b((e=>{var t,r;(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.componentId)===(null===(r=i.current)||void 0===r?void 0:r.componentId)&&d({amount:0,selectedStep:void 0,selectedItem:void 0,exchangeError:!1})}),[]);return s((()=>{if(!(null==i?void 0:i.current))return;const e=i.current;return e.addEventListener("sl-hide",E),()=>{e.removeEventListener("sl-hide",E)}}),[i.current]),{states:{content:{text:e},selectedItem:u,redeemStage:p,amount:h,selectedStep:m,exchangeError:f,loading:D},data:{exchangeList:null===(r=null===(t=null==C?void 0:C.viewer)||void 0===t?void 0:t.visibleRewardExchangeItems)||void 0===r?void 0:r.data,fuelTankCode:null===(a=null===(n=null==x?void 0:x.exchangeReward)||void 0===n?void 0:n.reward)||void 0===a?void 0:a.fuelTankCode},callbacks:{exchangeReward:function(){if(!u)return;let e={accountId:null==g?void 0:g.accountId,userId:g.id};switch(u.ruleType){case"FIXED_GLOBAL_REWARD":e={...e,redeemCreditInput:{amount:u.sourceValue,unit:u.sourceUnit},globalRewardKey:u.globalRewardKey};break;case"VARIABLE_GLOBAL_REWARD":e={...e,redeemCreditInput:{amount:h,unit:u.sourceUnit},globalRewardKey:u.globalRewardKey,rewardInput:{valueInCents:m.destinationValue}};break;case"VARIABLE_CREDIT_REWARD":e={...e,redeemCreditInput:{amount:h,unit:u.sourceUnit},rewardInput:{type:"CREDIT",unit:u.destinationUnit,assignedCredit:m.destinationValue}};break;default:e={...e,redeemCreditInput:{amount:u.sourceValue,unit:u.sourceUnit},globalRewardKey:u.globalRewardKey}}v({exchangeRewardInput:e})},openDrawer:function(){var e;d({redeemStage:"chooseReward"}),null===(e=i.current)||void 0===e||e.show()},setExchangeState:d,setStage:function(e){d({redeemStage:e})}},refs:{drawerRef:i}}}(j(this));return e(r,{style:{display:"contents"}},e(vn,{states:t,data:n,callbacks:a,refs:i}))}static get assetsDirs(){return["assets"]}},wn={THead:{padding:"var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0","text-align":"left"},TCell:{padding:"var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0"},TRow:{"border-top":"1px solid #EAEAEA"},Table:{"border-collapse":"collapse",width:"100%"},ButtonContainer:{display:"flex","justify-content":"flex-end","margin-top":"var(--sl-spacing-small)",...Z({direction:"row",size:"var(--sl-spacing-small)"})}};L.setup(M());const $n=L.createStyleSheet(wn),xn=$n.toString();function qn(t){const{states:r,data:n,callbacks:a,elements:i}=t,{columns:s,rows:o}=i,{show:l}=r;return e("div",null,e("style",{type:"text/css"},xn),e("table",{class:$n.classes.Table},n.textOverrides.showLabels&&e("thead",null,e("tr",null,null==s?void 0:s.map((t=>e("th",{class:$n.classes.THead},e(Y,{type:"h3"},t)))))),e("tbody",null,"loading"===l&&i.loadingElement,"empty"===l&&i.emptyElement,"rows"===l&&(null==o?void 0:o.map(((t,r)=>e("tr",{class:$n.classes.TRow,style:{borderTop:n.textOverrides.showLabels||0!==r?"":"none"},part:"table-row"},t.map((t=>e("td",{class:$n.classes.TCell},e(Y,{type:"p"},t)))))))))),e("div",{class:$n.classes.ButtonContainer,part:r.namespace+"-button-wrapper"},e("sl-button",{size:"small",disabled:!r.hasPrev,loading:"loading"===l,onClick:a.prevPage,exportparts:"base: defaultbutton-base"},n.textOverrides.prevLabel),e("sl-button",{size:"small",loading:"loading"===l,disabled:!r.hasNext,onClick:a.nextPage,exportparts:"base: defaultbutton-base"},n.textOverrides.moreLabel)))}function Cn(){return e("slot",{name:"loading"},e(Dn,null))}function Dn(){return e("div",{style:{width:"100%"}},e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",{style:{marginBottom:"28px"}}),e("sl-skeleton",null))}function En({label:t}){return e("slot",{name:"empty"},e(kn,{label:t}))}function kn({label:t}){return e("div",{style:{width:"100%"}},e("sqm-text",null,e("h3",{style:{color:"#777777"}},t)))}const An=Q`
|
|
247
247
|
query getRewards(
|
|
248
248
|
$limit: Int!
|
|
249
249
|
$offset: Int!
|
|
@@ -290,7 +290,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
`;async function
|
|
293
|
+
`;async function Sn(t,r){const n=t.tagName.toLowerCase();let a;await customElements.whenDefined(n);try{a=r()}catch(t){return"renderReferrerCell"===r.name?console.error("column does not have a renderReferrerCell method."):console.error("label promise failed",t),e("span",null)}try{return await a}catch(t){console.error("Error rendering label",t);const r=function(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}(t);return e("details",null,e("summary",null,"Error"),r)}}const Tn=class{constructor(e){t(this,e),this.perPage=3,this.showLabels=!0,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,a(this)}disconnectedCallback(){}render(){const t=e(En,{label:"No Rewards Yet"}),r=e(Cn,null),{states:n,data:a,callbacks:i,elements:o}=x()?function(t){return V({states:{hasPrev:!1,hasNext:!1,loading:!1,namespace:"sqm-rewards-table"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:t.showLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},referralData:[]},elements:{emptyElement:e(kn,{label:"No Rewards Yet"}),loadingElement:e(Dn,null),columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB")],rows:[]}},t.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e,t,r){var n,a;const i=y(),o=S(),l=null!==(n=e.programId)&&void 0!==n?n:o,d={userId_eq:null==i?void 0:i.id,accountId_eq:null==i?void 0:i.accountId,...l?"classic"===l?{programId_exists:!1}:{programId_eq:l}:{}},[u,m]=c(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{envelope:p,states:h,callbacks:f}=T(An,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:e.perPage,offset:0},{rewardFilter:d},!(null==i?void 0:i.jwt)),g=ee(),b=Ur(),v=null==p?void 0:p.data;s((()=>{m({loading:!0}),p&&async function(e){const t=e.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),r=null==t?void 0:t.map((async e=>Sn(e,(()=>e.renderLabel())))),n=null==v?void 0:v.map((async e=>{const r=null==t?void 0:t.map((async t=>Sn(t,(()=>t.renderCell([e],t)))));return await Promise.all(r)})),a=n&&(await Promise.all(n)).filter((e=>e));m({rows:a});const i=r&&await Promise.all(r);m({columns:i,loading:!1,page:h.currentPage})}(b)}),[p,b,g]);const w=!(null===(a=null==u?void 0:u.rows)||void 0===a?void 0:a.length)&&!(null==v?void 0:v.length);return console.log(h.loading,u.loading,p),{states:{hasNext:h.currentPage<h.pageCount-1,hasPrev:h.currentPage>0,show:h.loading||u.loading?"loading":w?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel}},elements:{columns:u.columns,rows:u.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:()=>{f.setCurrentPage(h.currentPage+1)},prevPage:()=>{f.setCurrentPage(h.currentPage-1)}}}}(this,t,r);return e(qn,{states:n,data:a,callbacks:i,elements:o})}},Fn=class{constructor(e){t(this,e),this.columnTitle="Rewards",this.hideDetails=!1,a(this)}disconnectedCallback(){}async renderCell(t){return console.log({data:t}),e("sqm-referral-table-rewards-cell",{rewards:t,hideDetails:this.hideDetails})}async renderLabel(){return this.columnTitle}render(){return te([this.columnTitle]),e(r,{style:{display:"none"}})}},Rn=u("sq:useRouter");function Pn(e,t){if(e)return re(e).exec(t)}const In=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const{callbacks:t}=function(){const e=F(),t=k(),[r,n]=i(void 0),[a,o]=i(void 0),l=e.pathname;return s((()=>{const e=t.querySelectorAll("sqm-route");Array.from(e).forEach((e=>{const t=document.createElement("template");t.setAttribute("path",e.path),t.innerHTML=e.innerHTML,e.parentNode.appendChild(t),e.parentNode.removeChild(e)}))}),[]),s((()=>{var e,t;if(!a||!r)return void Rn("DOM not ready for navigation rendering on:",l);const n=r.querySelectorAll("template"),i=Array.from(n).find((e=>{var t,r,n;if(null===(n=Pn(null===(r=null===(t=e.attributes)||void 0===t?void 0:t.path)||void 0===r?void 0:r.nodeValue,l))||void 0===n?void 0:n.length)return e})),s=null===(t=null===(e=null==i?void 0:i.attributes)||void 0===e?void 0:e.path)||void 0===t?void 0:t.nodeValue;if(Rn({containerDatasetPage:a.dataset.page,templatePath:s,page:l}),!i)return Rn("No matching page found for ",l,", so render nothing"),a.innerHTML="",void(a.dataset.page=l);Rn("Page updated to ",l,i),Pn(s,a.dataset.page)?Rn("don't rerender"):i&&(a.innerHTML=i.innerHTML,a.dataset.page=l)}),[r,a,l]),{callbacks:{setSlot:n,setContainer:o}}}();return e(r,null,e("div",{ref:t.setSlot,style:{display:"none"}},e("slot",null)),e("div",{style:{display:"contents"},ref:t.setContainer}))}};In.style="sqm-router{display:contents}";const Bn={HostBlock:H,buttonStyle:{display:"block"}};L.setup(M());const Nn=L.createStyleSheet(Bn),On=Nn.toString();function Ln(t,n){return t.hide?e(r,{style:{display:"none"}}):e("div",null,e("style",{type:"text/css"},On),e("sl-button",{class:Nn.classes.buttonStyle,loading:t.loading,disabled:t.disabled,pill:t.pill,size:t.size,type:t.type,onClick:t.onClick,exportparts:`base: ${t.type}sharebutton-base`},!t.hideicon&&e("sl-icon",{slot:t.iconslot,name:t.icon?t.icon:t.medium,exportparts:"icon"}),!t.hidetext&&n))}const Mn=Q`
|
|
294
294
|
query (
|
|
295
295
|
$programId: ID
|
|
296
296
|
$engagementMedium: UserEngagementMedium!
|
|
@@ -307,7 +307,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
`;function
|
|
310
|
+
`;function jn(e){var t,r;return(null===(r=null===(t=e.data)||void 0===t?void 0:t.viewer)||void 0===r?void 0:r.messageLink)?window.open(e.data.viewer.messageLink):alert("error: message link undefined!")}function _n(e){var t,r;const{sharetitle:n,sharetext:a,medium:i}=e,s=e.programId?e.programId:S(),o=y(),l={engagementMedium:R(),programId:s,shareMedium:i.toUpperCase()},d=w(Mn,l,!(null==o?void 0:o.jwt)||!s),u=null===(r=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.viewer)||void 0===r?void 0:r.shareLink,c=P(),m="SMS"===i.toLocaleUpperCase()&&void 0===window.orientation||"DIRECT"===i.toLocaleUpperCase()&&!window.navigator.share;return{...e,loading:d.loading,onClick:function(){"FACEBOOK"===i.toLocaleUpperCase()&&"SquatchAndroid"===c.type?function(e,t){var r,n;"undefined"===(null===(n=null===(r=t.data)||void 0===r?void 0:r.viewer)||void 0===n?void 0:n.messageLink)||"undefined"===e?alert("error: message link undefined!"):void 0!==SquatchAndroid.shareOnFacebook?SquatchAndroid.shareOnFacebook(e,t.data.viewer.messageLink):jn(t)}(u,d):"DIRECT"===i.toLocaleUpperCase()?function(e,t){const r=e.sharetitle||"Share title",n=e.sharetext||"Share text";if("undefined"===t)return alert("error: message link undefined!");window.navigator.share?window.navigator.share({title:r,text:n,url:t}).catch((e=>console.error("Error on web share",e))):alert("Not on a supported device")}({sharetitle:n,sharetext:a},u):jn(d)},hide:m}}const Vn=class{constructor(e){t(this,e),this.type="default",this.iconslot="prefix",this.hideicon=!1,this.hidetext=!1,a(this)}disconnectedCallback(){}render(){const t=j(this),r=x()?function(e){return V({medium:e.medium,loading:!1,disabled:e.disabled,pill:e.pill,type:e.type,size:e.size,hideicon:e.hideicon,hidetext:e.hidetext,iconslot:e.iconslot,icon:e.icon,hide:!1,onClick:()=>{}},e.demoData||{},{arrayMerge:(e,t)=>t})}(t):_n(t);return e(Ln,Object.assign({},r),e("slot",null))}};Vn.style=":host{display:block}:host([hidden]){display:none}sl-button{display:block}";const Gn=v.gql`
|
|
311
311
|
query ($programId: ID) {
|
|
312
312
|
user: viewer {
|
|
313
313
|
... on User {
|
|
@@ -315,7 +315,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
`;function Wn(e){var t,r;const{programId:n=S()}=e,a=y(),{data:s}=w(Hn,{programId:n},!(null==a?void 0:a.jwt)),o=null!==(r=null===(t=null==s?void 0:s.user)||void 0===t?void 0:t.shareLink)&&void 0!==r?r:"...",[l,d]=i(!1);return{...e,onClick:function(){navigator.clipboard.writeText(o),d(!0),setTimeout((()=>d(!1)),e.tooltiplifespan)},open:l,shareString:o}}const zn=class{constructor(e){t(this,e),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,a(this)}disconnectedCallback(){}render(){const t=j(this),r=x()?function(e){const[t,r]=i(!1),n="https://www.example.com/sharelink/abc";return V({shareString:n,tooltiptext:e.tooltiptext,open:t,onClick:()=>{navigator.clipboard.writeText(n),r(!0),setTimeout((()=>r(!1)),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(t):Wn(t);return e(se,Object.assign({},r))}};var Un,Zn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yn="["+Xn+"]",Qn="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Kn="\\d+",ea="[a-z\\xdf-\\xf6\\xf8-\\xff]",ta="[^\\ud800-\\udfff"+Xn+Kn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ra="\\ud83c[\\udffb-\\udfff]",na="[^\\ud800-\\udfff]",aa="(?:\\ud83c[\\udde6-\\uddff]){2}",ia="[\\ud800-\\udbff][\\udc00-\\udfff]",sa="[A-Z\\xc0-\\xd6\\xd8-\\xde]",oa="(?:"+ea+"|"+ta+")",la="(?:"+sa+"|"+ta+")",da="(?:"+Qn+"|"+ra+")?",ua="[\\ufe0e\\ufe0f]?"+da+"(?:\\u200d(?:"+[na,aa,ia].join("|")+")[\\ufe0e\\ufe0f]?"+da+")*",ca="(?:"+["[\\u2700-\\u27bf]",aa,ia].join("|")+")"+ua,ma="(?:"+[na+Qn+"?",Qn,aa,ia,"[\\ud800-\\udfff]"].join("|")+")",pa=RegExp("['’]","g"),ha=RegExp(Qn,"g"),fa=RegExp(ra+"(?="+ra+")|"+ma+ua,"g"),ga=RegExp([sa+"?"+ea+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Yn,sa,"$"].join("|")+")",la+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Yn,sa+oa,"$"].join("|")+")",sa+"?"+oa+"+(?:['’](?:d|ll|m|re|s|t|ve))?",sa+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Kn,ca].join("|"),"g"),ba=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),va=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ya="object"==typeof self&&self&&self.Object===Object&&self,wa="object"==typeof p&&p&&p.Object===Object&&p||ya||Function("return this")(),$a=(Un={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==Un?void 0:Un[e]});function xa(e){return ba.test(e)}var qa=Object.prototype.toString,Ca=wa.Symbol,Da=Ca?Ca.prototype:void 0,Ea=Da?Da.toString:void 0;function ka(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==qa.call(e)}(e))return Ea?Ea.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var Aa,Sa=(Aa=function(e,t,r){return e+(r?" ":"")+Ta(t)},function(e){return function(e,t,r){for(var n=-1,a=e?e.length:0;++n<a;)r=t(r,e[n],n,e);return r}(function(e,t){return e=ka(e),void 0===(t=t)?function(e){return va.test(e)}(e)?function(e){return e.match(ga)||[]}(e):function(e){return e.match(Zn)||[]}(e):e.match(t)||[]}(function(e){return(e=ka(e))&&e.replace(Jn,$a).replace(ha,"")}(e).replace(pa,"")),Aa,"")}),Ta=("toUpperCase",function(e){var t,r,n,a,i=xa(e=ka(e))?function(e){return xa(e)?function(e){return e.match(fa)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,s=i?i[0]:e.charAt(0),o=i?(t=i,r=1,a=t.length,n=void 0===n?a:n,!r&&n>=a?t:function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}(t,r,n)).join(""):e.slice(1);return s.toUpperCase()+o}),Fa=Sa,Ra=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Pa="-ms-",Ia="-moz-",Ba="-webkit-",Na="comm",La="rule",Oa="decl",Ma=Math.abs,ja=String.fromCharCode;function _a(e){return e.trim()}function Va(e,t,r){return e.replace(t,r)}function Ga(e,t){return e.indexOf(t)}function Ha(e,t){return 0|e.charCodeAt(t)}function Wa(e,t,r){return e.slice(t,r)}function za(e){return e.length}function Ua(e){return e.length}function Za(e,t){return t.push(e),e}var Ja=1,Xa=1,Ya=0,Qa=0,Ka=0,ei="";function ti(e,t,r,n,a,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Ja,column:Xa,length:s,return:""}}function ri(e,t,r){return ti(e,t.root,t.parent,r,t.props,t.children,0)}function ni(){return Ka=Qa>0?Ha(ei,--Qa):0,Xa--,10===Ka&&(Xa=1,Ja--),Ka}function ai(){return Ka=Qa<Ya?Ha(ei,Qa++):0,Xa++,10===Ka&&(Xa=1,Ja++),Ka}function ii(){return Ha(ei,Qa)}function si(){return Qa}function oi(e,t){return Wa(ei,e,t)}function li(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function di(e){return Ja=Xa=1,Ya=za(ei=e),Qa=0,[]}function ui(e){return ei="",e}function ci(e){return _a(oi(Qa-1,hi(91===e?e+2:40===e?e+1:e)))}function mi(e){for(;(Ka=ii())&&Ka<33;)ai();return li(e)>2||li(Ka)>3?"":" "}function pi(e,t){for(;--t&&ai()&&!(Ka<48||Ka>102||Ka>57&&Ka<65||Ka>70&&Ka<97););return oi(e,si()+(t<6&&32==ii()&&32==ai()))}function hi(e){for(;ai();)switch(Ka){case e:return Qa;case 34:case 39:return hi(34===e||39===e?e:Ka);case 40:41===e&&hi(e);break;case 92:ai()}return Qa}function fi(e,t){for(;ai()&&e+Ka!==57&&(e+Ka!==84||47!==ii()););return"/*"+oi(t,Qa-1)+"*"+ja(47===e?e:ai())}function gi(e){for(;!li(ii());)ai();return oi(e,Qa)}function bi(e){return ui(vi("",null,null,null,[""],e=di(e),0,[0],e))}function vi(e,t,r,n,a,i,s,o,l){for(var d=0,u=0,c=s,m=0,p=0,h=0,f=1,g=1,b=1,v=0,y="",w=a,$=i,x=n,q=y;g;)switch(h=v,v=ai()){case 34:case 39:case 91:case 40:q+=ci(v);break;case 9:case 10:case 13:case 32:q+=mi(h);break;case 92:q+=pi(si()-1,7);continue;case 47:switch(ii()){case 42:case 47:Za(wi(fi(ai(),si()),t,r),l);break;default:q+="/"}break;case 123*f:o[d++]=za(q)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:p>0&&za(q)-c&&Za(p>32?$i(q+";",n,r,c-1):$i(Va(q," ","")+";",n,r,c-2),l);break;case 59:q+=";";default:if(Za(x=yi(q,t,r,d,u,a,o,y,w=[],$=[],c),i),123===v)if(0===u)vi(q,t,x,x,w,i,c,o,$);else switch(m){case 100:case 109:case 115:vi(e,x,x,n&&Za(yi(e,x,x,0,0,a,o,y,a,w=[],c),$),a,$,c,o,n?w:$);break;default:vi(q,x,x,x,[""],$,c,o,$)}}d=u=p=0,f=b=1,y=q="",c=s;break;case 58:c=1+za(q),p=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==ni())continue;switch(q+=ja(v),v*f){case 38:b=u>0?1:(q+="\f",-1);break;case 44:o[d++]=(za(q)-1)*b,b=1;break;case 64:45===ii()&&(q+=ci(ai())),m=ii(),u=za(y=q+=gi(si())),v++;break;case 45:45===h&&2==za(q)&&(f=0)}}return i}function yi(e,t,r,n,a,i,s,o,l,d,u){for(var c=a-1,m=0===a?i:[""],p=Ua(m),h=0,f=0,g=0;h<n;++h)for(var b=0,v=Wa(e,c+1,c=Ma(f=s[h])),y=e;b<p;++b)(y=_a(f>0?m[b]+" "+v:Va(v,/&\f/g,m[b])))&&(l[g++]=y);return ti(e,t,r,0===a?La:o,l,d,u)}function wi(e,t,r){return ti(e,t,r,Na,ja(Ka),Wa(e,2,-2),0)}function $i(e,t,r,n){return ti(e,t,r,Oa,Wa(e,0,n),Wa(e,n+1,-1),n)}function xi(e,t){switch(function(e,t){return(((t<<2^Ha(e,0))<<2^Ha(e,1))<<2^Ha(e,2))<<2^Ha(e,3)}(e,t)){case 5103:return Ba+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ba+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ba+e+Ia+e+Pa+e+e;case 6828:case 4268:return Ba+e+Pa+e+e;case 6165:return Ba+e+Pa+"flex-"+e+e;case 5187:return Ba+e+Va(e,/(\w+).+(:[^]+)/,Ba+"box-$1$2"+Pa+"flex-$1$2")+e;case 5443:return Ba+e+Pa+"flex-item-"+Va(e,/flex-|-self/,"")+e;case 4675:return Ba+e+Pa+"flex-line-pack"+Va(e,/align-content|flex-|-self/,"")+e;case 5548:return Ba+e+Pa+Va(e,"shrink","negative")+e;case 5292:return Ba+e+Pa+Va(e,"basis","preferred-size")+e;case 6060:return Ba+"box-"+Va(e,"-grow","")+Ba+e+Pa+Va(e,"grow","positive")+e;case 4554:return Ba+Va(e,/([^-])(transform)/g,"$1"+Ba+"$2")+e;case 6187:return Va(Va(Va(e,/(zoom-|grab)/,Ba+"$1"),/(image-set)/,Ba+"$1"),e,"")+e;case 5495:case 3959:return Va(e,/(image-set\([^]*)/,Ba+"$1$`$1");case 4968:return Va(Va(e,/(.+:)(flex-)?(.*)/,Ba+"box-pack:$3"+Pa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ba+e+e;case 4095:case 3583:case 4068:case 2532:return Va(e,/(.+)-inline(.+)/,Ba+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(za(e)-1-t>6)switch(Ha(e,t+1)){case 109:if(45!==Ha(e,t+4))break;case 102:return Va(e,/(.+:)(.+)-([^]+)/,"$1"+Ba+"$2-$3$1"+Ia+(108==Ha(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ga(e,"stretch")?xi(Va(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ha(e,t+1))break;case 6444:switch(Ha(e,za(e)-3-(~Ga(e,"!important")&&10))){case 107:return Va(e,":",":"+Ba)+e;case 101:return Va(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ba+(45===Ha(e,14)?"inline-":"")+"box$3$1"+Ba+"$2$3$1"+Pa+"$2box$3")+e}break;case 5936:switch(Ha(e,t+11)){case 114:return Ba+e+Pa+Va(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ba+e+Pa+Va(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ba+e+Pa+Va(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ba+e+Pa+e+e}return e}function qi(e,t){for(var r="",n=Ua(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ci(e,t,r,n){switch(e.type){case"@import":case Oa:return e.return=e.return||e.value;case Na:return"";case La:e.value=e.props.join(",")}return za(r=qi(e.children,n))?e.return=e.value+"{"+r+"}":""}function Di(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ei(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var ki=new WeakMap,Ai=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ki.get(r))&&!n){ki.set(e,!0);for(var a=[],i=function(e,t){return ui(function(e,t){var r=-1,n=44;do{switch(li(n)){case 0:38===n&&12===ii()&&(t[r]=1),e[r]+=gi(Qa-1);break;case 2:e[r]+=ci(n);break;case 4:if(44===n){e[++r]=58===ii()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ja(n)}}while(n=ai());return e}(di(e),t))}(t,a),s=r.props,o=0,l=0;o<i.length;o++)for(var d=0;d<s.length;d++,l++)e.props[l]=a[o]?i[o].replace(/&\f/g,s[d]):s[d]+" "+i[o]}}},Si=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ti=[function(e,t,r,n){if(!e.return)switch(e.type){case Oa:e.return=xi(e.value,e.length);break;case"@keyframes":return qi([ri(Va(e.value,"@","@"+Ba),e,"")],n);case La:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return qi([ri(Va(t,/:(read-\w+)/,":-moz-$1"),e,"")],n);case"::placeholder":return qi([ri(Va(t,/:(plac\w+)/,":"+Ba+"input-$1"),e,""),ri(Va(t,/:(plac\w+)/,":-moz-$1"),e,""),ri(Va(t,/:(plac\w+)/,Pa+"input-$1"),e,"")],n)}return""}))}}],Fi={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ri=/[A-Z]|^ms/g,Pi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ii=function(e){return 45===e.charCodeAt(1)},Bi=function(e){return null!=e&&"boolean"!=typeof e},Ni=Ei((function(e){return Ii(e)?e:e.replace(Ri,"-$&").toLowerCase()})),Li=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Pi,(function(e,t,r){return Mi={name:t,styles:r,next:Mi},t}))}return 1===Fi[e]||Ii(e)||"number"!=typeof t||0===t?t:t+"px"};function Oi(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Mi={name:r.name,styles:r.styles,next:Mi},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Mi={name:n.name,styles:n.styles,next:Mi},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Oi(e,t,r[a])+";";else for(var i in r){var s=r[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":Bi(s)&&(n+=Ni(i)+":"+Li(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var o=Oi(e,t,s);switch(i){case"animation":case"animationName":n+=Ni(i)+":"+o+";";break;default:n+=i+"{"+o+"}"}}else for(var l=0;l<s.length;l++)Bi(s[l])&&(n+=Ni(i)+":"+Li(i,s[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var a=Mi,i=r(e);return Mi=a,Oi(e,t,i)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var Mi,ji=/label:\s*([^\s;\n{]+)\s*(;|$)/g,_i=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";Mi=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,a+=Oi(r,t,i)):a+=i[0];for(var s=1;s<e.length;s++)a+=Oi(r,t,e[s]),n&&(a+=i[s]);ji.lastIndex=0;for(var o,l="";null!==(o=ji.exec(a));)l+="-"+o[1];return{name:function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+l,styles:a,next:Mi}};function Vi(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var Gi=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}};function Hi(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Wi(e,t,r){var n=[],a=Vi(e,n,r);return n.length<2?r:a+t(n)}var zi=function e(t){for(var r="",n=0;n<t.length;n++){var a=t[n];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(r&&(r+=" "),r+=i)}}return r},Ui=function(){var e=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,a,i=e.stylisPlugins||Ti,s={},o=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;o.push(e)}));var l,d=[Ai,Si],u=[Ci,Di((function(e){l.insert(e)}))],c=function(e){var t=Ua(e);return function(r,n,a,i){for(var s="",o=0;o<t;o++)s+=e[o](r,n,a,i)||"";return s}}(d.concat(i,u));a=function(e,t,r,n){l=r,qi(bi(e?e+"{"+t.styles+"}":t.styles),c),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Ra({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:a};return m.sheet.hydrate(o),m}({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=_i(r,e.registered,void 0);return Gi(e,a,!1),e.key+"-"+a.name};return{css:t,cx:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Wi(e.registered,t,zi(n))},injectGlobal:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=_i(r,e.registered);Hi(e,a)},keyframes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=_i(r,e.registered),i="animation-"+a.name;return Hi(e,{name:a.name,styles:"@keyframes "+i+"{"+a.styles+"}"}),i},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Vi.bind(null,e.registered),merge:Wi.bind(null,e.registered,t)}}().css;function Zi(){return(Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ji(e,t){return t||(t=e.slice(0)),e.raw=t,e}var Xi,Yi,Qi,Ki=Ui(Xi||(Xi=Ji(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function es(e,t){var r,n=t.story.title.split("/"),a=n[1]?n[0]:"_";return Zi({},e,((r={})[a]=[].concat(e[a]||[],[{story:Zi({},t.story,{title:n[1]||n[0]}),subs:t.subs}]).sort((function(e,t){return e.story.title.localeCompare(t.story.title)})),r))}function ts(e){return{story:e.default,subs:function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(e,["default"])}}const rs=Object.freeze({__proto__:null,default:{title:"Components/Share Button"},WithIcon:()=>e(Mn,Object.assign({},{medium:"facebook",iconslot:"suffix"}),"Share"),WithIconOverride:()=>e(Mn,Object.assign({},{medium:"facebook",icon:"person-badge",iconslot:"suffix"}),"Share"),TextStyle:()=>e(Mn,Object.assign({},{medium:"facebook",type:"text",iconslot:"suffix"}),"Share"),WithoutIcon:()=>e(Mn,Object.assign({},{medium:"facebook",hideicon:!0}),"Share"),WithoutText:()=>e(Mn,Object.assign({},{medium:"facebook",hidetext:!0}),"Share"),TextStyleWithoutIcon:()=>e(Mn,Object.assign({},{medium:"facebook",type:"text",hideicon:!0}),"Share"),FullStackIcon:()=>e("div",null,e("sqm-share-button",{medium:"facebook",iconslot:"prefix"},e("span",null,"Facebook")),e("br",null),e("sqm-share-button",{medium:"email",icon:"envelope",iconslot:"prefix"},e("span",null,"Email")))}),ns=Object.freeze({__proto__:null,default:{title:"Components/Share Link"},Default:()=>e(se,Object.assign({},{shareString:"https://noah.example.com",open:!1,tooltiptext:"Copied!"})),Tooltip:()=>e(se,Object.assign({},{shareString:"https://noah.example.com",tooltiptext:"Some text for the tooltip",open:!0})),Disabled:()=>e(se,Object.assign({},{shareString:"https://noah.example.com",disabled:!0,open:!0,tooltiptext:"Copied!"})),FullStack:()=>e("sqm-share-link",null)}),as=Object.freeze({__proto__:null,default:{title:"Components/Big Stat"},Default:()=>e(ne,Object.assign({},{value:99e4,statvalue:"9.900,00"}),"Big stat"),LeftAlign:()=>e(ne,Object.assign({},{value:500,statvalue:"500",alignment:"left"}),"Big stat"),RightAlign:()=>e(ne,Object.assign({},{value:500,statvalue:"500",alignment:"right"}),"Big stat"),FlexReverse:()=>e(ne,Object.assign({},{value:500,statvalue:"500",flexReverse:!0}),"Big stat"),FlexReverseRight:()=>e(ne,Object.assign({},{value:500,statvalue:"500",flexReverse:!0,alignment:"right"}),"Big stat"),FlexReverseLeft:()=>e(ne,Object.assign({},{value:500,statvalue:"500",flexReverse:!0,alignment:"left"}),"Big stat"),NoStatValue:()=>e(ne,Object.assign({},{value:0,statvalue:"..."}),"Big stat"),InvalidStatValue:()=>e(ne,Object.assign({},{value:0,statvalue:"!!!"}),"Big stat")}),is={usersheading:"TOP REFERRERS",statsheading:"NEW TITANS"},ss={empty:e("div",null,"Empty"),loadingstate:e("div",null,"Loading")},os=Object.freeze({__proto__:null,default:{title:"Components/Leaderboard",parameters:{tagname:"sqm-leaderboard"}},Empty:()=>{const t={states:{loading:!1,hasLeaders:!1,styles:{...is}},data:{rankType:"rowNumber",leaderboard:[]},elements:{...ss}};return e(oe,Object.assign({},t))},Loading:()=>{const t={states:{loading:!0,hasLeaders:!1,styles:{...is}},data:{rankType:"rowNumber",leaderboard:[]},elements:{...ss}};return e(oe,Object.assign({},t))},One:()=>{const t={states:{loading:!1,hasLeaders:!0,styles:{...is}},data:{rankType:"rowNumber",leaderboard:[{firstName:"Viktor",lastInitial:"V",value:82,rank:1}]},elements:{...ss}};return e(oe,Object.assign({},t))},Five:()=>{const t={states:{loading:!1,hasLeaders:!0,styles:{...is}},data:{rankType:"rowNumber",leaderboard:[{firstName:"Viktor",lastInitial:"V",value:82,rank:1},{firstName:"MF",lastInitial:"D",value:73,rank:2},{firstName:"Freddie",lastInitial:"G",value:64,rank:3},{firstName:"Benny",lastInitial:"B",value:55,rank:4},{firstName:"Mos",lastInitial:"D",value:46,rank:5}]},elements:{...ss}};return e(oe,Object.assign({},t))}}),ls=({story:t},r)=>{var n;const a=null===(n=t.story.parameters)||void 0===n?void 0:n.hookStory;if(!a)return r;const i=Math.round(1e5*Math.random());return e("sqm-hook-story-container-"+i,null,e("sqm-hook-story-container",{hookStory:a}))};function ds(t){const r=()=>e("div",null);return r.parameters={hookStory:t},r}const us=ds((()=>e("div",null,e("button",{onClick:()=>C.push("/")},"/"),e("button",{onClick:()=>C.push("/foo")},"/foo"),e("button",{onClick:()=>C.push("/bar")},"/bar"),e("button",{onClick:()=>C.push("/baz/bang")},"/baz/bang"),e("button",{onClick:()=>C.push("/refer")},"/refer"),e("button",{onClick:()=>C.push("/refer/1")},"/refer/1"),e("button",{onClick:()=>C.push("/refer/2")},"/refer/2"),e("button",{onClick:()=>C.back()},"Back"),e("button",{onClick:()=>C.forward()},"Forward"),e("hr",null),e("sqm-router",{innerHTML:'\n <template path="/foo"><h1>foo</h1>\n \n <p>These elements don\'t produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.\n\n Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what\'s inside. See the Accessibility concerns section below for more details.</p>\n </template>\n <template path="/bar"><h2>bar</h2>\n \n <p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.\n To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>\n </template>\n <template path="/baz/bang"><h3>baz/bang</h3>\n <pre>\n ▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄\n ░░▀███░░░░▀██░░░░██▀░░░░██░░\n ░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░\n ░░░░███░░░░░▀██▄█░░░░░░█░░░░\n ░░░░░███░░░░░▀██░░░░░░█▀░░░░\n ░░░░░░███░░░░▄███░░░░█▀░░░░░\n ░░░░░░░██▄░░▄▀░███░░█▀░░░░░░\n ░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░\n ░░░░░░░░▀██▀░░░░░███░░░░░░░░\n ░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░\n </pre>\n </template>\n <template path="/refer/:page"><h3>/refer/:page</h3>\n <pre>\n refer/:page\n </pre>\n </template>\n'})))),cs=ds((()=>e("div",null,e("button",{onClick:()=>C.push("/")},"/"),e("button",{onClick:()=>C.push("/foo")},"/foo"),e("button",{onClick:()=>C.push("/bar")},"/bar"),e("button",{onClick:()=>C.push("/baz/bang")},"/baz/bang"),e("button",{onClick:()=>C.push("/refer")},"/refer"),e("button",{onClick:()=>C.push("/refer/1")},"/refer/1"),e("button",{onClick:()=>C.push("/refer/2")},"/refer/2"),e("button",{onClick:()=>C.back()},"Back"),e("button",{onClick:()=>C.forward()},"Forward"),e("hr",null),e("sqm-router",{innerHTML:'\n <sqm-route path="/foo"><h1>foo</h1>\n \n <p>These elements don\'t produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.\n\n Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what\'s inside. See the Accessibility concerns section below for more details.</p>\n </sqm-route>\n <sqm-route path="/bar"><h2>bar</h2>\n <p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.\n To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>\n </sqm-route>\n <sqm-route path="/baz/bang"><h3>baz/bang</h3>\n <pre>\n ▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄\n ░░▀███░░░░▀██░░░░██▀░░░░██░░\n ░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░\n ░░░░███░░░░░▀██▄█░░░░░░█░░░░\n ░░░░░███░░░░░▀██░░░░░░█▀░░░░\n ░░░░░░███░░░░▄███░░░░█▀░░░░░\n ░░░░░░░██▄░░▄▀░███░░█▀░░░░░░\n ░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░\n ░░░░░░░░▀██▀░░░░░███░░░░░░░░\n ░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░\n </pre>\n </sqm-route>\n <sqm-route path="/refer/:page"><h3>/refer/:page</h3>\n <pre>\n refer/:page\n </pre>\n </sqm-route>\n'})))),ms=ds((()=>e("div",null,e("button",{onClick:()=>C.push("/")},"/"),e("button",{onClick:()=>C.push("/foo")},"/foo"),e("hr",null),e("div",{style:{display:"flex",justifyContent:"space-around"}},e("sqm-router",{innerHTML:'<template path="/">\n \n <div>Column 1</div>\n <div>Column 2 </div>\n </template>'})))));function ps(t){const{states:r,callbacks:n}=t;return[e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>n.setEditedTemplate(e.target.value)},r.editedTemplate),e("button",{onClick:()=>n.setPreviewTemplate(r.editedTemplate)},"Update Preview"),e("label",null,"Current path:",e("input",{onInput:n.setPath,value:"/"})),e("div",{innerHTML:r.previewTemplate})]}const hs=ds((()=>{const{states:t,callbacks:r}=function(e){const[t,r]=i(e),[n,a]=i(e);return{states:{previewTemplate:n,editedTemplate:t},callbacks:{setEditedTemplate:r,setPreviewTemplate:a,setPath:function(e){C.push(e.target.value)}}}}('\n<sqm-router>\n <template path="/">\n <div>hello world</div>\n </template>\n</sqm-router>\n');return e(ps,{states:t,callbacks:r})})),fs=Object.freeze({__proto__:null,default:{title:"Tests/Router"},TemplateNavigation:us,RouteNavigation:cs,Styling:ms,RouterPlayground:hs}),gs=Object.freeze({__proto__:null,default:{title:"Components/Leaderboard Rank"},First:()=>e("p",null,"Your rank is ",e(K,Object.assign({},{data:{rank:"1st"}}))," on the leaderboard")}),bs={data:{footer:e("span",null,"example@example.com"),header:e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:()=>{}},ref:{current:void 0}},vs=Object.freeze({__proto__:null,default:{title:"Components/Portal Frame"},FrameWithMenu:()=>{const t={...bs};return e(ut,Object.assign({},t),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")))},FrameWithoutMenu:()=>{const t={...bs};return e(ut,Object.assign({},t))},FullStackFrame:()=>{var t;return function(){const e="worried-camera@uexwltgh.mailosaur.net";window.SquatchAndroid=!0,window.widgetIdent={tenantAlias:"test_as36zjtpfy7oo",appDomain:"https://staging.referralsaasquatch.com",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQifX0.-WGV4_bzGCFp-OTIO-h-yp0MlgtkdufT_GgI4T691OY",userId:e,accountId:"worried-camera@uexwltgh.mailosaur.net",programId:"a-referral-program"}}(),e("div",null,e("sqm-portal-frame",null,e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),e("a",{slot:"footer",class:"FooterEmail",href:"mailto:referrals@servicetitan.com"},"referrals@servicetitan.com"),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),e("h1",null,"Something")),e("p",null,"Current path:"," ",e("code",null,e("strong",null,null===(t=F())||void 0===t?void 0:t.pathname))),e("button",{onClick:C.back},"Go Back"))},FullStackFrameLoggedOut:()=>{var t;return window.SquatchAndroid=!0,window.widgetIdent={tenantAlias:"test_as36zjtpfy7oo",appDomain:"https://staging.referralsaasquatch.com",programId:"a-referral-program"},e("div",null,e("sqm-portal-frame",null,e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),e("span",{slot:"footer"},"sample@example.com"),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),e("h1",null,"Something")),e("p",null,"Current path:"," ",e("code",null,e("strong",null,null===(t=F())||void 0===t?void 0:t.pathname))),e("button",{onClick:C.back},"Go Back"))}}),ys={states:{loading:!1,submitDisabled:!1,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:!1,text:{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Canada"}},callbacks:{onSubmit:e=>{console.log(e)},resetForm:()=>{console.log("reset")},onChange:()=>{console.log("change")},setShowEdit:e=>{console.log(e)}}},ws=Object.freeze({__proto__:null,default:{title:"Components/Edit Profile Form"},EditProfileFormDisabled:()=>e(De,Object.assign({},ys)),EditProfileFormEnabled:()=>{const t={...ys,states:{...ys.states,showEdit:!0}};return e(De,Object.assign({},t))},FullStackFrameWithMenu:()=>e("sqm-edit-profile",{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Current Region",showregion:!0})});function $s(){window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:"testestest",id:"testestest",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[])}const xs=ds((()=>{$s();const t=Wn({programId:"sam-partner-test-2",tooltiplifespan:0,tooltiptext:""});return e("div",null,"Sharelink:"," ",e("code",{style:{borderStyle:"solid",borderWidth:"1px",padding:"2px"}},t.shareString))})),qs=ds((()=>($s(),e(se,Object.assign({},Wn({programId:"sam-partner-test-2",tooltiptext:"Copied to clipboard",tooltiplifespan:1e3})))))),Cs=ds((()=>($s(),e(se,Object.assign({},Wn({programId:"sam-partner-test-2",tooltiptext:"⠀⠀⠀⠀⠀⠀⠀⠀⠀HELLO THERE!!!\n⠀⠀⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌\n⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌\n⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌\n⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪\n⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡\n⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐\n⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔\n⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘\n⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎\n⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗\n⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷\n⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟\n⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰\n⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊\n⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌\n⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁\n⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀\n⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀\n⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟\n⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾\n⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽",tooltiplifespan:500})))))),Ds=Object.freeze({__proto__:null,default:{title:"Hooks / useShareLink"},BareBonesView:xs,RegularView:qs,FastTooltip:Cs});function Es(){window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:"testestest",id:"testestest",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[])}const ks=ds((()=>{Es();const t="sam-partner-test-2",r=[Vn({programId:t,medium:"facebook"}),Vn({programId:t,medium:"twitter"}),Vn({programId:t,medium:"email"}),Vn({programId:t,medium:"direct"}),Vn({programId:t,medium:"sms"})];return e("div",null,r.map((t=>e("div",null,e("button",{onClick:t.onClick},"Share link (",t.medium,")")))))})),As=ds((()=>(Es(),e("div",null,["facebook","twitter","email","direct","sms"].map((t=>e("div",null,e("sqm-share-button",Object.assign({},{programId:"sam-partner-test-2",medium:t}),"BUTTON_TEXT")))))))),Ss=Object.freeze({__proto__:null,default:{title:"Hooks / useShareButton"},BareBonesView:ks,RegularView:As}),Ts=(t,r)=>{console.log(`View("${t}") - CALLED`),window.widgetIdent={tenantAlias:"test_a7yoz8854cf6x",appDomain:"https://staging.referralsaasquatch.com",programId:"ny-post-referrals"},s((()=>(I({accountId:"nynellie",id:"nynellie",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6Im55bmVsbGllIiwiaWQiOiJueW5lbGxpZSJ9fQ.3KV974VPLgk4tD8LQfJTi4IPkKCmnaB8w48HzVJYDuI"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]);const{props:n,label:a}=ae({statType:t,render:()=>{},disconnectedCallback:()=>{},ignored:!0});return e("div",null,e("b",null,"Stat format:"),e("pre",null,r),e("br",null),e("b",null,"Stat selected:")," ",e("pre",{style:{color:"green"}},t),e(ne,Object.assign({},n),a))},Fs=ds((()=>{const[t,r]=i("/someRandomThing/with/someArguments/1234"),{props:n,label:a}=ie({statType:t,render:()=>{},disconnectedCallback:()=>{},ignored:!0});return e("div",null,e("div",null,"Stat type:"," ",e("input",{style:{width:"300px"},type:"text",value:t,onInput:e=>r(e.target.value)})),e("hr",null),e("div",null,e(ne,Object.assign({},n),a)))})),Rs=ds((()=>Ts("/referralsCount","/(referralsCount)/:status?"))),Ps=ds((()=>Ts("/referralsCount/converted","/(referralsCount)/:status?"))),Is=ds((()=>Ts("/referralsCount/started","/(referralsCount)/:status?"))),Bs=ds((()=>Ts("/referralsMonth","/(referralsMonth)"))),Ns=ds((()=>Ts("/referralsWeek","/(referralsWeek)"))),Ls=ds((()=>Ts("/rewardsCount","/(rewardsCount)/:global?"))),Os=ds((()=>Ts("/rewardsCount/global","/(rewardsCount)/:global"))),Ms=ds((()=>Ts("/rewardsCountFiltered/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),js=ds((()=>Ts("/rewardsCountFiltered/PCT_DISCOUNT/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),_s=ds((()=>Ts("/rewardsCountFiltered/PCT_DISCOUNT/PENDING/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Vs=ds((()=>Ts("/rewardsCountFiltered/CREDIT/COFFEE","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Gs=ds((()=>Ts("/rewardsCountFiltered/CREDIT/COFFEE/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Hs=ds((()=>Ts("/rewardsCountFiltered/CREDIT/COFFEE/PENDING/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Ws=ds((()=>Ts("/rewardsCountFiltered/AVAILABLE","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),zs=ds((()=>Ts("/integrationRewardsCountFiltered/AVAILABLE/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Us=ds((()=>Ts("/integrationRewardsCountFiltered/PENDING/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Zs=ds((()=>Ts("/rewardsMonth","/(rewardsMonth)/:global?"))),Js=ds((()=>Ts("/rewardsWeek","/(rewardsWeek)/:global?"))),Xs=ds((()=>Ts("/rewardsAssigned/CREDIT/COFFEE","/(rewardsAssigned)/:statType/:unit/:global?"))),Ys=ds((()=>Ts("/rewardsAssigned/CREDIT/CASH%2FUSD","/(rewardsAssigned)/:statType/:unit/:global?"))),Qs=ds((()=>Ts("/rewardsRedeemed/CREDIT/COFFEE","/(rewardsRedeemed)/:statType/:unit/:global?"))),Ks=ds((()=>Ts("/rewardsAvailable/CREDIT/COFFEE","/(rewardsAvailable)/:statType/:unit/:global?"))),eo=ds((()=>Ts("/rewardsAvailable/CREDIT/CASH%2FUSD","/(rewardsAvailable)/:statType/:unit/:global?"))),to=ds((()=>Ts("/rewardBalance/CREDIT/COFFEE/prettyValue","/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?"))),ro=ds((()=>{const e=encodeURIComponent("CASH/USD");return Ts(`/rewardBalance/CREDIT/${e}/prettyValue`,"/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?")})),no=ds((()=>{const e=encodeURIComponent("Paid-Member-Goal/referrals");return Ts(`/programGoals/count/${e}`,"/(programGoals)/:metricType/:goalId")})),ao=ds((()=>Ts("/customFields/thingCount","/(customFields)/:customField"))),io=Object.freeze({__proto__:null,default:{title:"Hooks / useBigStat"},Demo:Fs,ReferralsCount:Rs,referralsConvertedCount:Ps,referralsStartedCount:Is,ReferralsMonth:Bs,ReferralsWeek:Ns,RewardsCount:Ls,GlobalRewardsCount:Os,GlobalRewardsCountFiltered:Ms,GlobalRewardsCountPctDiscount:js,GlobalRewardsCountPctDiscountPending:_s,RewardsCountByUnit:Vs,GlobalRewardsCountByUnit:Gs,GlobalPendingRewardsCount:Hs,RewardsAvailableCount:Ws,GlobalRewardsCountByIntegration:zs,GlobalRewardsCountByPendingIntegration:Us,RewardsMonth:Zs,RewardsWeek:Js,RewardsAssigned:Xs,RewardsAssignedCashUSD:Ys,RewardsRedeemed:Qs,RewardsAvailable:Ks,RewardsAvailableWithSlash:eo,RewardBalance:to,RewardBalanceCashUSD:ro,ProgramGoals:no,CustomField:ao}),so=ds((()=>(window.widgetIdent={tenantAlias:"test_as36zjtpfy7oo",appDomain:"https://staging.referralsaasquatch.com",programId:"a-referral-program"},s((()=>(I({accountId:"worried-camera@uexwltgh.mailosaur.net",id:"worried-camera@uexwltgh.mailosaur.net",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0In19.ziDWbdCwsTo1ijxl8d2__Ga-6iFOVShaJUPp2ZBMeO0"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]),e("sqm-edit-profile",Object.assign({},{editprofileheader:"HEADER",editprofiletext:"TEXT",firstnametext:"FIRST NAME",lastnametext:"LAST NAME",canceltext:"CANCEL",updatetext:"UPDATE",currentregiontext:"CURRENT REGION TEXT"}))))),oo=Object.freeze({__proto__:null,default:{title:"Hooks / useEditProfile"},RegularView:so}),lo=t=>{const r={leaderboardType:"topConvertedReferrers",showRank:!0,rankType:"rowNumber",usersheading:"Top Referrers",statsheading:"Completed Referrals",interval:"",empty:e("span",null,"No Referrals"),loadingstate:e("span",null,"Loading"),...t},{leaderboardType:n,rankType:a}=r;console.log(`View("${n}") - CALLED`),window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:"testestest",id:"testestest",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]);const{states:i,data:o,elements:l}=le(r);return e("div",{style:{marginBottom:"20px"}},e("sqm-divided-layout",{direction:"row"},e("div",{style:{padding:"10px"}},e("b",null,"Leaderboard Type"),e("pre",null,n)),e("div",{style:{padding:"10px"}},e("b",null,"Rank Type"),e("pre",null,a))),e(oe,{states:i,data:o,elements:l}),e("hr",null))},uo=ds((()=>[lo(),lo({rankType:"rank"}),lo({rankType:"denseRank"})])),co=ds((()=>[lo({leaderboardType:"topStartedReferrers",statsheading:"New Referrals"}),lo({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"New Referrals"}),lo({leaderboardType:"topStartedReferrers",rankType:"denseRank",statsheading:"New Referrals"})])),mo=Object.freeze({__proto__:null,default:{title:"Hooks / useLeaderboard"},TopConvertedReferrers:uo,TopStartedReferrers:co}),po=Object.freeze({__proto__:null,default:{title:"Components/Form Message"},SuccessAlert:()=>e("sqm-form-message",{type:"success"},e("div",null,"This is a success message.")),ErrorAlert:()=>e("sqm-form-message",{type:"error"},e("div",null,"This is an error message")),InfoAlert:()=>e("sqm-form-message",{type:"info"},e("div",null,"This is an info message")),FullStackSuccess:()=>e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{class:"AlertContent"},e("div",{part:"successalert-text"},"Title"),e("div",{part:"successalert-subtext"},"Body text."),e("sl-button",{type:"default",exportparts:"base: defaultbutton-base",onClick:()=>{console.log("click")}},"Primary Action"),e("sl-button",{class:"SecondaryTextButton",type:"text",onClick:()=>{console.log("click")}},"Secondary Action")))}),ho=v.gql`
|
|
318
|
+
`;function Hn(e){var t,r;const{programId:n=S()}=e,a=y(),{data:s}=w(Gn,{programId:n},!(null==a?void 0:a.jwt)),o=null!==(r=null===(t=null==s?void 0:s.user)||void 0===t?void 0:t.shareLink)&&void 0!==r?r:"...",[l,d]=i(!1);return{...e,onClick:function(){navigator.clipboard.writeText(o),d(!0),setTimeout((()=>d(!1)),e.tooltiplifespan)},open:l,shareString:o}}const Wn=class{constructor(e){t(this,e),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,a(this)}disconnectedCallback(){}render(){const t=j(this),r=x()?function(e){const[t,r]=i(!1),n="https://www.example.com/sharelink/abc";return V({shareString:n,tooltiptext:e.tooltiptext,open:t,onClick:()=>{navigator.clipboard.writeText(n),r(!0),setTimeout((()=>r(!1)),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(t):Hn(t);return e(se,Object.assign({},r))}};var zn,Un=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xn="["+Jn+"]",Yn="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Qn="\\d+",Kn="[a-z\\xdf-\\xf6\\xf8-\\xff]",ea="[^\\ud800-\\udfff"+Jn+Qn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ta="\\ud83c[\\udffb-\\udfff]",ra="[^\\ud800-\\udfff]",na="(?:\\ud83c[\\udde6-\\uddff]){2}",aa="[\\ud800-\\udbff][\\udc00-\\udfff]",ia="[A-Z\\xc0-\\xd6\\xd8-\\xde]",sa="(?:"+Kn+"|"+ea+")",oa="(?:"+ia+"|"+ea+")",la="(?:"+Yn+"|"+ta+")?",da="[\\ufe0e\\ufe0f]?"+la+"(?:\\u200d(?:"+[ra,na,aa].join("|")+")[\\ufe0e\\ufe0f]?"+la+")*",ua="(?:"+["[\\u2700-\\u27bf]",na,aa].join("|")+")"+da,ca="(?:"+[ra+Yn+"?",Yn,na,aa,"[\\ud800-\\udfff]"].join("|")+")",ma=RegExp("['’]","g"),pa=RegExp(Yn,"g"),ha=RegExp(ta+"(?="+ta+")|"+ca+da,"g"),fa=RegExp([ia+"?"+Kn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Xn,ia,"$"].join("|")+")",oa+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Xn,ia+sa,"$"].join("|")+")",ia+"?"+sa+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ia+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Qn,ua].join("|"),"g"),ga=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ba=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,va="object"==typeof self&&self&&self.Object===Object&&self,ya="object"==typeof p&&p&&p.Object===Object&&p||va||Function("return this")(),wa=(zn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==zn?void 0:zn[e]});function $a(e){return ga.test(e)}var xa=Object.prototype.toString,qa=ya.Symbol,Ca=qa?qa.prototype:void 0,Da=Ca?Ca.toString:void 0;function Ea(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==xa.call(e)}(e))return Da?Da.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var ka,Aa=(ka=function(e,t,r){return e+(r?" ":"")+Sa(t)},function(e){return function(e,t,r){for(var n=-1,a=e?e.length:0;++n<a;)r=t(r,e[n],n,e);return r}(function(e,t){return e=Ea(e),void 0===(t=t)?function(e){return ba.test(e)}(e)?function(e){return e.match(fa)||[]}(e):function(e){return e.match(Un)||[]}(e):e.match(t)||[]}(function(e){return(e=Ea(e))&&e.replace(Zn,wa).replace(pa,"")}(e).replace(ma,"")),ka,"")}),Sa=("toUpperCase",function(e){var t,r,n,a,i=$a(e=Ea(e))?function(e){return $a(e)?function(e){return e.match(ha)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,s=i?i[0]:e.charAt(0),o=i?(t=i,r=1,a=t.length,n=void 0===n?a:n,!r&&n>=a?t:function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}(t,r,n)).join(""):e.slice(1);return s.toUpperCase()+o}),Ta=Aa,Fa=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ra="-ms-",Pa="-moz-",Ia="-webkit-",Ba="comm",Na="rule",Oa="decl",La=Math.abs,Ma=String.fromCharCode;function ja(e){return e.trim()}function _a(e,t,r){return e.replace(t,r)}function Va(e,t){return e.indexOf(t)}function Ga(e,t){return 0|e.charCodeAt(t)}function Ha(e,t,r){return e.slice(t,r)}function Wa(e){return e.length}function za(e){return e.length}function Ua(e,t){return t.push(e),e}var Za=1,Ja=1,Xa=0,Ya=0,Qa=0,Ka="";function ei(e,t,r,n,a,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Za,column:Ja,length:s,return:""}}function ti(e,t,r){return ei(e,t.root,t.parent,r,t.props,t.children,0)}function ri(){return Qa=Ya>0?Ga(Ka,--Ya):0,Ja--,10===Qa&&(Ja=1,Za--),Qa}function ni(){return Qa=Ya<Xa?Ga(Ka,Ya++):0,Ja++,10===Qa&&(Ja=1,Za++),Qa}function ai(){return Ga(Ka,Ya)}function ii(){return Ya}function si(e,t){return Ha(Ka,e,t)}function oi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function li(e){return Za=Ja=1,Xa=Wa(Ka=e),Ya=0,[]}function di(e){return Ka="",e}function ui(e){return ja(si(Ya-1,pi(91===e?e+2:40===e?e+1:e)))}function ci(e){for(;(Qa=ai())&&Qa<33;)ni();return oi(e)>2||oi(Qa)>3?"":" "}function mi(e,t){for(;--t&&ni()&&!(Qa<48||Qa>102||Qa>57&&Qa<65||Qa>70&&Qa<97););return si(e,ii()+(t<6&&32==ai()&&32==ni()))}function pi(e){for(;ni();)switch(Qa){case e:return Ya;case 34:case 39:return pi(34===e||39===e?e:Qa);case 40:41===e&&pi(e);break;case 92:ni()}return Ya}function hi(e,t){for(;ni()&&e+Qa!==57&&(e+Qa!==84||47!==ai()););return"/*"+si(t,Ya-1)+"*"+Ma(47===e?e:ni())}function fi(e){for(;!oi(ai());)ni();return si(e,Ya)}function gi(e){return di(bi("",null,null,null,[""],e=li(e),0,[0],e))}function bi(e,t,r,n,a,i,s,o,l){for(var d=0,u=0,c=s,m=0,p=0,h=0,f=1,g=1,b=1,v=0,y="",w=a,$=i,x=n,q=y;g;)switch(h=v,v=ni()){case 34:case 39:case 91:case 40:q+=ui(v);break;case 9:case 10:case 13:case 32:q+=ci(h);break;case 92:q+=mi(ii()-1,7);continue;case 47:switch(ai()){case 42:case 47:Ua(yi(hi(ni(),ii()),t,r),l);break;default:q+="/"}break;case 123*f:o[d++]=Wa(q)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:p>0&&Wa(q)-c&&Ua(p>32?wi(q+";",n,r,c-1):wi(_a(q," ","")+";",n,r,c-2),l);break;case 59:q+=";";default:if(Ua(x=vi(q,t,r,d,u,a,o,y,w=[],$=[],c),i),123===v)if(0===u)bi(q,t,x,x,w,i,c,o,$);else switch(m){case 100:case 109:case 115:bi(e,x,x,n&&Ua(vi(e,x,x,0,0,a,o,y,a,w=[],c),$),a,$,c,o,n?w:$);break;default:bi(q,x,x,x,[""],$,c,o,$)}}d=u=p=0,f=b=1,y=q="",c=s;break;case 58:c=1+Wa(q),p=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==ri())continue;switch(q+=Ma(v),v*f){case 38:b=u>0?1:(q+="\f",-1);break;case 44:o[d++]=(Wa(q)-1)*b,b=1;break;case 64:45===ai()&&(q+=ui(ni())),m=ai(),u=Wa(y=q+=fi(ii())),v++;break;case 45:45===h&&2==Wa(q)&&(f=0)}}return i}function vi(e,t,r,n,a,i,s,o,l,d,u){for(var c=a-1,m=0===a?i:[""],p=za(m),h=0,f=0,g=0;h<n;++h)for(var b=0,v=Ha(e,c+1,c=La(f=s[h])),y=e;b<p;++b)(y=ja(f>0?m[b]+" "+v:_a(v,/&\f/g,m[b])))&&(l[g++]=y);return ei(e,t,r,0===a?Na:o,l,d,u)}function yi(e,t,r){return ei(e,t,r,Ba,Ma(Qa),Ha(e,2,-2),0)}function wi(e,t,r,n){return ei(e,t,r,Oa,Ha(e,0,n),Ha(e,n+1,-1),n)}function $i(e,t){switch(function(e,t){return(((t<<2^Ga(e,0))<<2^Ga(e,1))<<2^Ga(e,2))<<2^Ga(e,3)}(e,t)){case 5103:return Ia+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ia+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ia+e+Pa+e+Ra+e+e;case 6828:case 4268:return Ia+e+Ra+e+e;case 6165:return Ia+e+Ra+"flex-"+e+e;case 5187:return Ia+e+_a(e,/(\w+).+(:[^]+)/,Ia+"box-$1$2"+Ra+"flex-$1$2")+e;case 5443:return Ia+e+Ra+"flex-item-"+_a(e,/flex-|-self/,"")+e;case 4675:return Ia+e+Ra+"flex-line-pack"+_a(e,/align-content|flex-|-self/,"")+e;case 5548:return Ia+e+Ra+_a(e,"shrink","negative")+e;case 5292:return Ia+e+Ra+_a(e,"basis","preferred-size")+e;case 6060:return Ia+"box-"+_a(e,"-grow","")+Ia+e+Ra+_a(e,"grow","positive")+e;case 4554:return Ia+_a(e,/([^-])(transform)/g,"$1"+Ia+"$2")+e;case 6187:return _a(_a(_a(e,/(zoom-|grab)/,Ia+"$1"),/(image-set)/,Ia+"$1"),e,"")+e;case 5495:case 3959:return _a(e,/(image-set\([^]*)/,Ia+"$1$`$1");case 4968:return _a(_a(e,/(.+:)(flex-)?(.*)/,Ia+"box-pack:$3"+Ra+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ia+e+e;case 4095:case 3583:case 4068:case 2532:return _a(e,/(.+)-inline(.+)/,Ia+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wa(e)-1-t>6)switch(Ga(e,t+1)){case 109:if(45!==Ga(e,t+4))break;case 102:return _a(e,/(.+:)(.+)-([^]+)/,"$1"+Ia+"$2-$3$1"+Pa+(108==Ga(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Va(e,"stretch")?$i(_a(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ga(e,t+1))break;case 6444:switch(Ga(e,Wa(e)-3-(~Va(e,"!important")&&10))){case 107:return _a(e,":",":"+Ia)+e;case 101:return _a(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ia+(45===Ga(e,14)?"inline-":"")+"box$3$1"+Ia+"$2$3$1"+Ra+"$2box$3")+e}break;case 5936:switch(Ga(e,t+11)){case 114:return Ia+e+Ra+_a(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ia+e+Ra+_a(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ia+e+Ra+_a(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ia+e+Ra+e+e}return e}function xi(e,t){for(var r="",n=za(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function qi(e,t,r,n){switch(e.type){case"@import":case Oa:return e.return=e.return||e.value;case Ba:return"";case Na:e.value=e.props.join(",")}return Wa(r=xi(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ci(e){return function(t){t.root||(t=t.return)&&e(t)}}function Di(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Ei=new WeakMap,ki=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ei.get(r))&&!n){Ei.set(e,!0);for(var a=[],i=function(e,t){return di(function(e,t){var r=-1,n=44;do{switch(oi(n)){case 0:38===n&&12===ai()&&(t[r]=1),e[r]+=fi(Ya-1);break;case 2:e[r]+=ui(n);break;case 4:if(44===n){e[++r]=58===ai()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ma(n)}}while(n=ni());return e}(li(e),t))}(t,a),s=r.props,o=0,l=0;o<i.length;o++)for(var d=0;d<s.length;d++,l++)e.props[l]=a[o]?i[o].replace(/&\f/g,s[d]):s[d]+" "+i[o]}}},Ai=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Si=[function(e,t,r,n){if(!e.return)switch(e.type){case Oa:e.return=$i(e.value,e.length);break;case"@keyframes":return xi([ti(_a(e.value,"@","@"+Ia),e,"")],n);case Na:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return xi([ti(_a(t,/:(read-\w+)/,":-moz-$1"),e,"")],n);case"::placeholder":return xi([ti(_a(t,/:(plac\w+)/,":"+Ia+"input-$1"),e,""),ti(_a(t,/:(plac\w+)/,":-moz-$1"),e,""),ti(_a(t,/:(plac\w+)/,Ra+"input-$1"),e,"")],n)}return""}))}}],Ti={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fi=/[A-Z]|^ms/g,Ri=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pi=function(e){return 45===e.charCodeAt(1)},Ii=function(e){return null!=e&&"boolean"!=typeof e},Bi=Di((function(e){return Pi(e)?e:e.replace(Fi,"-$&").toLowerCase()})),Ni=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ri,(function(e,t,r){return Li={name:t,styles:r,next:Li},t}))}return 1===Ti[e]||Pi(e)||"number"!=typeof t||0===t?t:t+"px"};function Oi(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Li={name:r.name,styles:r.styles,next:Li},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Li={name:n.name,styles:n.styles,next:Li},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Oi(e,t,r[a])+";";else for(var i in r){var s=r[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":Ii(s)&&(n+=Bi(i)+":"+Ni(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var o=Oi(e,t,s);switch(i){case"animation":case"animationName":n+=Bi(i)+":"+o+";";break;default:n+=i+"{"+o+"}"}}else for(var l=0;l<s.length;l++)Ii(s[l])&&(n+=Bi(i)+":"+Ni(i,s[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var a=Li,i=r(e);return Li=a,Oi(e,t,i)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var Li,Mi=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ji=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";Li=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,a+=Oi(r,t,i)):a+=i[0];for(var s=1;s<e.length;s++)a+=Oi(r,t,e[s]),n&&(a+=i[s]);Mi.lastIndex=0;for(var o,l="";null!==(o=Mi.exec(a));)l+="-"+o[1];return{name:function(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+l,styles:a,next:Li}};function _i(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var Vi=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}};function Gi(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Hi(e,t,r){var n=[],a=_i(e,n,r);return n.length<2?r:a+t(n)}var Wi=function e(t){for(var r="",n=0;n<t.length;n++){var a=t[n];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(r&&(r+=" "),r+=i)}}return r},zi=function(){var e=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,a,i=e.stylisPlugins||Si,s={},o=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;o.push(e)}));var l,d=[ki,Ai],u=[qi,Ci((function(e){l.insert(e)}))],c=function(e){var t=za(e);return function(r,n,a,i){for(var s="",o=0;o<t;o++)s+=e[o](r,n,a,i)||"";return s}}(d.concat(i,u));a=function(e,t,r,n){l=r,xi(gi(e?e+"{"+t.styles+"}":t.styles),c),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Fa({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:a};return m.sheet.hydrate(o),m}({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=ji(r,e.registered,void 0);return Vi(e,a,!1),e.key+"-"+a.name};return{css:t,cx:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Hi(e.registered,t,Wi(n))},injectGlobal:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=ji(r,e.registered);Gi(e,a)},keyframes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=ji(r,e.registered),i="animation-"+a.name;return Gi(e,{name:a.name,styles:"@keyframes "+i+"{"+a.styles+"}"}),i},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:_i.bind(null,e.registered),merge:Hi.bind(null,e.registered,t)}}().css;function Ui(){return(Ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Zi(e,t){return t||(t=e.slice(0)),e.raw=t,e}var Ji,Xi,Yi,Qi=zi(Ji||(Ji=Zi(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function Ki(e,t){var r,n=t.story.title.split("/"),a=n[1]?n[0]:"_";return Ui({},e,((r={})[a]=[].concat(e[a]||[],[{story:Ui({},t.story,{title:n[1]||n[0]}),subs:t.subs}]).sort((function(e,t){return e.story.title.localeCompare(t.story.title)})),r))}function es(e){return{story:e.default,subs:function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(e,["default"])}}const ts=Object.freeze({__proto__:null,default:{title:"Components/Share Button"},WithIcon:()=>e(Ln,Object.assign({},{medium:"facebook",iconslot:"suffix"}),"Share"),WithIconOverride:()=>e(Ln,Object.assign({},{medium:"facebook",icon:"person-badge",iconslot:"suffix"}),"Share"),TextStyle:()=>e(Ln,Object.assign({},{medium:"facebook",type:"text",iconslot:"suffix"}),"Share"),WithoutIcon:()=>e(Ln,Object.assign({},{medium:"facebook",hideicon:!0}),"Share"),WithoutText:()=>e(Ln,Object.assign({},{medium:"facebook",hidetext:!0}),"Share"),TextStyleWithoutIcon:()=>e(Ln,Object.assign({},{medium:"facebook",type:"text",hideicon:!0}),"Share"),FullStackIcon:()=>e("div",null,e("sqm-share-button",{medium:"facebook",iconslot:"prefix"},e("span",null,"Facebook")),e("br",null),e("sqm-share-button",{medium:"email",icon:"envelope",iconslot:"prefix"},e("span",null,"Email")))}),rs=Object.freeze({__proto__:null,default:{title:"Components/Share Link"},Default:()=>e(se,Object.assign({},{shareString:"https://noah.example.com",open:!1,tooltiptext:"Copied!"})),Tooltip:()=>e(se,Object.assign({},{shareString:"https://noah.example.com",tooltiptext:"Some text for the tooltip",open:!0})),Disabled:()=>e(se,Object.assign({},{shareString:"https://noah.example.com",disabled:!0,open:!0,tooltiptext:"Copied!"})),FullStack:()=>e("sqm-share-link",null)}),ns=Object.freeze({__proto__:null,default:{title:"Components/Big Stat"},Default:()=>e(ne,Object.assign({},{value:99e4,statvalue:"9.900,00"}),"Big stat"),LeftAlign:()=>e(ne,Object.assign({},{value:500,statvalue:"500",alignment:"left"}),"Big stat"),RightAlign:()=>e(ne,Object.assign({},{value:500,statvalue:"500",alignment:"right"}),"Big stat"),FlexReverse:()=>e(ne,Object.assign({},{value:500,statvalue:"500",flexReverse:!0}),"Big stat"),FlexReverseRight:()=>e(ne,Object.assign({},{value:500,statvalue:"500",flexReverse:!0,alignment:"right"}),"Big stat"),FlexReverseLeft:()=>e(ne,Object.assign({},{value:500,statvalue:"500",flexReverse:!0,alignment:"left"}),"Big stat"),NoStatValue:()=>e(ne,Object.assign({},{value:0,statvalue:"..."}),"Big stat"),InvalidStatValue:()=>e(ne,Object.assign({},{value:0,statvalue:"!!!"}),"Big stat")}),as={usersheading:"TOP REFERRERS",statsheading:"NEW TITANS"},is={empty:e("div",null,"Empty"),loadingstate:e("div",null,"Loading")},ss=Object.freeze({__proto__:null,default:{title:"Components/Leaderboard",parameters:{tagname:"sqm-leaderboard"}},Empty:()=>{const t={states:{loading:!1,hasLeaders:!1,styles:{...as}},data:{rankType:"rowNumber",leaderboard:[]},elements:{...is}};return e(oe,Object.assign({},t))},Loading:()=>{const t={states:{loading:!0,hasLeaders:!1,styles:{...as}},data:{rankType:"rowNumber",leaderboard:[]},elements:{...is}};return e(oe,Object.assign({},t))},One:()=>{const t={states:{loading:!1,hasLeaders:!0,styles:{...as}},data:{rankType:"rowNumber",leaderboard:[{firstName:"Viktor",lastInitial:"V",value:82,rank:1}]},elements:{...is}};return e(oe,Object.assign({},t))},Five:()=>{const t={states:{loading:!1,hasLeaders:!0,styles:{...as}},data:{rankType:"rowNumber",leaderboard:[{firstName:"Viktor",lastInitial:"V",value:82,rank:1},{firstName:"MF",lastInitial:"D",value:73,rank:2},{firstName:"Freddie",lastInitial:"G",value:64,rank:3},{firstName:"Benny",lastInitial:"B",value:55,rank:4},{firstName:"Mos",lastInitial:"D",value:46,rank:5}]},elements:{...is}};return e(oe,Object.assign({},t))}}),os=({story:t},r)=>{var n;const a=null===(n=t.story.parameters)||void 0===n?void 0:n.hookStory;if(!a)return r;const i=Math.round(1e5*Math.random());return e("sqm-hook-story-container-"+i,null,e("sqm-hook-story-container",{hookStory:a}))};function ls(t){const r=()=>e("div",null);return r.parameters={hookStory:t},r}const ds=ls((()=>e("div",null,e("button",{onClick:()=>C.push("/")},"/"),e("button",{onClick:()=>C.push("/foo")},"/foo"),e("button",{onClick:()=>C.push("/bar")},"/bar"),e("button",{onClick:()=>C.push("/baz/bang")},"/baz/bang"),e("button",{onClick:()=>C.push("/refer")},"/refer"),e("button",{onClick:()=>C.push("/refer/1")},"/refer/1"),e("button",{onClick:()=>C.push("/refer/2")},"/refer/2"),e("button",{onClick:()=>C.back()},"Back"),e("button",{onClick:()=>C.forward()},"Forward"),e("hr",null),e("sqm-router",{innerHTML:'\n <template path="/foo"><h1>foo</h1>\n \n <p>These elements don\'t produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.\n\n Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what\'s inside. See the Accessibility concerns section below for more details.</p>\n </template>\n <template path="/bar"><h2>bar</h2>\n \n <p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.\n To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>\n </template>\n <template path="/baz/bang"><h3>baz/bang</h3>\n <pre>\n ▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄\n ░░▀███░░░░▀██░░░░██▀░░░░██░░\n ░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░\n ░░░░███░░░░░▀██▄█░░░░░░█░░░░\n ░░░░░███░░░░░▀██░░░░░░█▀░░░░\n ░░░░░░███░░░░▄███░░░░█▀░░░░░\n ░░░░░░░██▄░░▄▀░███░░█▀░░░░░░\n ░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░\n ░░░░░░░░▀██▀░░░░░███░░░░░░░░\n ░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░\n </pre>\n </template>\n <template path="/refer/:page"><h3>/refer/:page</h3>\n <pre>\n refer/:page\n </pre>\n </template>\n'})))),us=ls((()=>e("div",null,e("button",{onClick:()=>C.push("/")},"/"),e("button",{onClick:()=>C.push("/foo")},"/foo"),e("button",{onClick:()=>C.push("/bar")},"/bar"),e("button",{onClick:()=>C.push("/baz/bang")},"/baz/bang"),e("button",{onClick:()=>C.push("/refer")},"/refer"),e("button",{onClick:()=>C.push("/refer/1")},"/refer/1"),e("button",{onClick:()=>C.push("/refer/2")},"/refer/2"),e("button",{onClick:()=>C.back()},"Back"),e("button",{onClick:()=>C.forward()},"Forward"),e("hr",null),e("sqm-router",{innerHTML:'\n <sqm-route path="/foo"><h1>foo</h1>\n \n <p>These elements don\'t produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.\n\n Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what\'s inside. See the Accessibility concerns section below for more details.</p>\n </sqm-route>\n <sqm-route path="/bar"><h2>bar</h2>\n <p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.\n To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>\n </sqm-route>\n <sqm-route path="/baz/bang"><h3>baz/bang</h3>\n <pre>\n ▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄\n ░░▀███░░░░▀██░░░░██▀░░░░██░░\n ░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░\n ░░░░███░░░░░▀██▄█░░░░░░█░░░░\n ░░░░░███░░░░░▀██░░░░░░█▀░░░░\n ░░░░░░███░░░░▄███░░░░█▀░░░░░\n ░░░░░░░██▄░░▄▀░███░░█▀░░░░░░\n ░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░\n ░░░░░░░░▀██▀░░░░░███░░░░░░░░\n ░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░\n </pre>\n </sqm-route>\n <sqm-route path="/refer/:page"><h3>/refer/:page</h3>\n <pre>\n refer/:page\n </pre>\n </sqm-route>\n'})))),cs=ls((()=>e("div",null,e("button",{onClick:()=>C.push("/")},"/"),e("button",{onClick:()=>C.push("/foo")},"/foo"),e("hr",null),e("div",{style:{display:"flex",justifyContent:"space-around"}},e("sqm-router",{innerHTML:'<template path="/">\n \n <div>Column 1</div>\n <div>Column 2 </div>\n </template>'})))));function ms(t){const{states:r,callbacks:n}=t;return[e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>n.setEditedTemplate(e.target.value)},r.editedTemplate),e("button",{onClick:()=>n.setPreviewTemplate(r.editedTemplate)},"Update Preview"),e("label",null,"Current path:",e("input",{onInput:n.setPath,value:"/"})),e("div",{innerHTML:r.previewTemplate})]}const ps=ls((()=>{const{states:t,callbacks:r}=function(e){const[t,r]=i(e),[n,a]=i(e);return{states:{previewTemplate:n,editedTemplate:t},callbacks:{setEditedTemplate:r,setPreviewTemplate:a,setPath:function(e){C.push(e.target.value)}}}}('\n<sqm-router>\n <template path="/">\n <div>hello world</div>\n </template>\n</sqm-router>\n');return e(ms,{states:t,callbacks:r})})),hs=Object.freeze({__proto__:null,default:{title:"Tests/Router"},TemplateNavigation:ds,RouteNavigation:us,Styling:cs,RouterPlayground:ps}),fs=Object.freeze({__proto__:null,default:{title:"Components/Leaderboard Rank"},First:()=>e("p",null,"Your rank is ",e(K,Object.assign({},{data:{rank:"1st"}}))," on the leaderboard")}),gs={data:{footer:e("span",null,"example@example.com"),header:e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:()=>{}},ref:{current:void 0}},bs=Object.freeze({__proto__:null,default:{title:"Components/Portal Frame"},FrameWithMenu:()=>{const t={...gs};return e(ut,Object.assign({},t),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")))},FrameWithoutMenu:()=>{const t={...gs};return e(ut,Object.assign({},t))},FullStackFrame:()=>{var t;return function(){const e="worried-camera@uexwltgh.mailosaur.net";window.SquatchAndroid=!0,window.widgetIdent={tenantAlias:"test_as36zjtpfy7oo",appDomain:"https://staging.referralsaasquatch.com",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQifX0.-WGV4_bzGCFp-OTIO-h-yp0MlgtkdufT_GgI4T691OY",userId:e,accountId:"worried-camera@uexwltgh.mailosaur.net",programId:"a-referral-program"}}(),e("div",null,e("sqm-portal-frame",null,e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),e("a",{slot:"footer",class:"FooterEmail",href:"mailto:referrals@servicetitan.com"},"referrals@servicetitan.com"),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),e("h1",null,"Something")),e("p",null,"Current path:"," ",e("code",null,e("strong",null,null===(t=F())||void 0===t?void 0:t.pathname))),e("button",{onClick:C.back},"Go Back"))},FullStackFrameLoggedOut:()=>{var t;return window.SquatchAndroid=!0,window.widgetIdent={tenantAlias:"test_as36zjtpfy7oo",appDomain:"https://staging.referralsaasquatch.com",programId:"a-referral-program"},e("div",null,e("sqm-portal-frame",null,e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),e("span",{slot:"footer"},"sample@example.com"),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),e("h1",null,"Something")),e("p",null,"Current path:"," ",e("code",null,e("strong",null,null===(t=F())||void 0===t?void 0:t.pathname))),e("button",{onClick:C.back},"Go Back"))}}),vs={states:{loading:!1,submitDisabled:!1,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:!1,text:{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Canada"}},callbacks:{onSubmit:e=>{console.log(e)},resetForm:()=>{console.log("reset")},onChange:()=>{console.log("change")},setShowEdit:e=>{console.log(e)}}},ys=Object.freeze({__proto__:null,default:{title:"Components/Edit Profile Form"},EditProfileFormDisabled:()=>e(De,Object.assign({},vs)),EditProfileFormEnabled:()=>{const t={...vs,states:{...vs.states,showEdit:!0}};return e(De,Object.assign({},t))},FullStackFrameWithMenu:()=>e("sqm-edit-profile",{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Current Region",showregion:!0})});function ws(){window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:"testestest",id:"testestest",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[])}const $s=ls((()=>{ws();const t=Hn({programId:"sam-partner-test-2",tooltiplifespan:0,tooltiptext:""});return e("div",null,"Sharelink:"," ",e("code",{style:{borderStyle:"solid",borderWidth:"1px",padding:"2px"}},t.shareString))})),xs=ls((()=>(ws(),e(se,Object.assign({},Hn({programId:"sam-partner-test-2",tooltiptext:"Copied to clipboard",tooltiplifespan:1e3})))))),qs=ls((()=>(ws(),e(se,Object.assign({},Hn({programId:"sam-partner-test-2",tooltiptext:"⠀⠀⠀⠀⠀⠀⠀⠀⠀HELLO THERE!!!\n⠀⠀⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌\n⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌\n⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌\n⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪\n⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡\n⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐\n⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔\n⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘\n⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎\n⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗\n⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷\n⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟\n⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰\n⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊\n⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌\n⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁\n⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀\n⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀\n⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟\n⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾\n⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽",tooltiplifespan:500})))))),Cs=Object.freeze({__proto__:null,default:{title:"Hooks / useShareLink"},BareBonesView:$s,RegularView:xs,FastTooltip:qs});function Ds(){window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:"testestest",id:"testestest",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[])}const Es=ls((()=>{Ds();const t="sam-partner-test-2",r=[_n({programId:t,medium:"facebook"}),_n({programId:t,medium:"twitter"}),_n({programId:t,medium:"email"}),_n({programId:t,medium:"direct"}),_n({programId:t,medium:"sms"})];return e("div",null,r.map((t=>e("div",null,e("button",{onClick:t.onClick},"Share link (",t.medium,")")))))})),ks=ls((()=>(Ds(),e("div",null,["facebook","twitter","email","direct","sms"].map((t=>e("div",null,e("sqm-share-button",Object.assign({},{programId:"sam-partner-test-2",medium:t}),"BUTTON_TEXT")))))))),As=Object.freeze({__proto__:null,default:{title:"Hooks / useShareButton"},BareBonesView:Es,RegularView:ks}),Ss=(t,r)=>{console.log(`View("${t}") - CALLED`),window.widgetIdent={tenantAlias:"test_a7yoz8854cf6x",appDomain:"https://staging.referralsaasquatch.com",programId:"ny-post-referrals"},s((()=>(I({accountId:"nynellie",id:"nynellie",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6Im55bmVsbGllIiwiaWQiOiJueW5lbGxpZSJ9fQ.3KV974VPLgk4tD8LQfJTi4IPkKCmnaB8w48HzVJYDuI"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]);const{props:n,label:a}=ae({statType:t,render:()=>{},disconnectedCallback:()=>{},ignored:!0});return e("div",null,e("b",null,"Stat format:"),e("pre",null,r),e("br",null),e("b",null,"Stat selected:")," ",e("pre",{style:{color:"green"}},t),e(ne,Object.assign({},n),a))},Ts=ls((()=>{const[t,r]=i("/someRandomThing/with/someArguments/1234"),{props:n,label:a}=ie({statType:t,render:()=>{},disconnectedCallback:()=>{},ignored:!0});return e("div",null,e("div",null,"Stat type:"," ",e("input",{style:{width:"300px"},type:"text",value:t,onInput:e=>r(e.target.value)})),e("hr",null),e("div",null,e(ne,Object.assign({},n),a)))})),Fs=ls((()=>Ss("/referralsCount","/(referralsCount)/:status?"))),Rs=ls((()=>Ss("/referralsCount/converted","/(referralsCount)/:status?"))),Ps=ls((()=>Ss("/referralsCount/started","/(referralsCount)/:status?"))),Is=ls((()=>Ss("/referralsMonth","/(referralsMonth)"))),Bs=ls((()=>Ss("/referralsWeek","/(referralsWeek)"))),Ns=ls((()=>Ss("/rewardsCount","/(rewardsCount)/:global?"))),Os=ls((()=>Ss("/rewardsCount/global","/(rewardsCount)/:global"))),Ls=ls((()=>Ss("/rewardsCountFiltered/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Ms=ls((()=>Ss("/rewardsCountFiltered/PCT_DISCOUNT/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),js=ls((()=>Ss("/rewardsCountFiltered/PCT_DISCOUNT/PENDING/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),_s=ls((()=>Ss("/rewardsCountFiltered/CREDIT/COFFEE","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Vs=ls((()=>Ss("/rewardsCountFiltered/CREDIT/COFFEE/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Gs=ls((()=>Ss("/rewardsCountFiltered/CREDIT/COFFEE/PENDING/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Hs=ls((()=>Ss("/rewardsCountFiltered/AVAILABLE","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Ws=ls((()=>Ss("/integrationRewardsCountFiltered/AVAILABLE/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),zs=ls((()=>Ss("/integrationRewardsCountFiltered/PENDING/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Us=ls((()=>Ss("/rewardsMonth","/(rewardsMonth)/:global?"))),Zs=ls((()=>Ss("/rewardsWeek","/(rewardsWeek)/:global?"))),Js=ls((()=>Ss("/rewardsAssigned/CREDIT/COFFEE","/(rewardsAssigned)/:statType/:unit/:global?"))),Xs=ls((()=>Ss("/rewardsAssigned/CREDIT/CASH%2FUSD","/(rewardsAssigned)/:statType/:unit/:global?"))),Ys=ls((()=>Ss("/rewardsRedeemed/CREDIT/COFFEE","/(rewardsRedeemed)/:statType/:unit/:global?"))),Qs=ls((()=>Ss("/rewardsAvailable/CREDIT/COFFEE","/(rewardsAvailable)/:statType/:unit/:global?"))),Ks=ls((()=>Ss("/rewardsAvailable/CREDIT/CASH%2FUSD","/(rewardsAvailable)/:statType/:unit/:global?"))),eo=ls((()=>Ss("/rewardBalance/CREDIT/COFFEE/prettyValue","/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?"))),to=ls((()=>{const e=encodeURIComponent("CASH/USD");return Ss(`/rewardBalance/CREDIT/${e}/prettyValue`,"/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?")})),ro=ls((()=>{const e=encodeURIComponent("Paid-Member-Goal/referrals");return Ss(`/programGoals/count/${e}`,"/(programGoals)/:metricType/:goalId")})),no=ls((()=>Ss("/customFields/thingCount","/(customFields)/:customField"))),ao=Object.freeze({__proto__:null,default:{title:"Hooks / useBigStat"},Demo:Ts,ReferralsCount:Fs,referralsConvertedCount:Rs,referralsStartedCount:Ps,ReferralsMonth:Is,ReferralsWeek:Bs,RewardsCount:Ns,GlobalRewardsCount:Os,GlobalRewardsCountFiltered:Ls,GlobalRewardsCountPctDiscount:Ms,GlobalRewardsCountPctDiscountPending:js,RewardsCountByUnit:_s,GlobalRewardsCountByUnit:Vs,GlobalPendingRewardsCount:Gs,RewardsAvailableCount:Hs,GlobalRewardsCountByIntegration:Ws,GlobalRewardsCountByPendingIntegration:zs,RewardsMonth:Us,RewardsWeek:Zs,RewardsAssigned:Js,RewardsAssignedCashUSD:Xs,RewardsRedeemed:Ys,RewardsAvailable:Qs,RewardsAvailableWithSlash:Ks,RewardBalance:eo,RewardBalanceCashUSD:to,ProgramGoals:ro,CustomField:no}),io=ls((()=>(window.widgetIdent={tenantAlias:"test_as36zjtpfy7oo",appDomain:"https://staging.referralsaasquatch.com",programId:"a-referral-program"},s((()=>(I({accountId:"worried-camera@uexwltgh.mailosaur.net",id:"worried-camera@uexwltgh.mailosaur.net",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0In19.ziDWbdCwsTo1ijxl8d2__Ga-6iFOVShaJUPp2ZBMeO0"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]),e("sqm-edit-profile",Object.assign({},{editprofileheader:"HEADER",editprofiletext:"TEXT",firstnametext:"FIRST NAME",lastnametext:"LAST NAME",canceltext:"CANCEL",updatetext:"UPDATE",currentregiontext:"CURRENT REGION TEXT"}))))),so=Object.freeze({__proto__:null,default:{title:"Hooks / useEditProfile"},RegularView:io}),oo=t=>{const r={leaderboardType:"topConvertedReferrers",showRank:!0,rankType:"rowNumber",usersheading:"Top Referrers",statsheading:"Completed Referrals",interval:"",empty:e("span",null,"No Referrals"),loadingstate:e("span",null,"Loading"),...t},{leaderboardType:n,rankType:a}=r;console.log(`View("${n}") - CALLED`),window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:"testestest",id:"testestest",jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]);const{states:i,data:o,elements:l}=le(r);return e("div",{style:{marginBottom:"20px"}},e("sqm-divided-layout",{direction:"row"},e("div",{style:{padding:"10px"}},e("b",null,"Leaderboard Type"),e("pre",null,n)),e("div",{style:{padding:"10px"}},e("b",null,"Rank Type"),e("pre",null,a))),e(oe,{states:i,data:o,elements:l}),e("hr",null))},lo=ls((()=>[oo(),oo({rankType:"rank"}),oo({rankType:"denseRank"})])),uo=ls((()=>[oo({leaderboardType:"topStartedReferrers",statsheading:"New Referrals"}),oo({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"New Referrals"}),oo({leaderboardType:"topStartedReferrers",rankType:"denseRank",statsheading:"New Referrals"})])),co=Object.freeze({__proto__:null,default:{title:"Hooks / useLeaderboard"},TopConvertedReferrers:lo,TopStartedReferrers:uo}),mo=Object.freeze({__proto__:null,default:{title:"Components/Form Message"},SuccessAlert:()=>e("sqm-form-message",{type:"success"},e("div",null,"This is a success message.")),ErrorAlert:()=>e("sqm-form-message",{type:"error"},e("div",null,"This is an error message")),InfoAlert:()=>e("sqm-form-message",{type:"info"},e("div",null,"This is an info message")),FullStackSuccess:()=>e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{class:"AlertContent"},e("div",{part:"successalert-text"},"Title"),e("div",{part:"successalert-subtext"},"Body text."),e("sl-button",{type:"default",exportparts:"base: defaultbutton-base",onClick:()=>{console.log("click")}},"Primary Action"),e("sl-button",{class:"SecondaryTextButton",type:"text",onClick:()=>{console.log("click")}},"Secondary Action")))}),po=v.gql`
|
|
319
319
|
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
320
320
|
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
321
321
|
reward {
|
|
@@ -323,7 +323,7 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
`;function fo(){const e="testestest",t=e;return window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:t,id:e,jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]),{id:e,accountId:t}}function go(){const{id:e,accountId:t}=fo(),[r,n]=i(10),[a,s]=i(100),[o,{data:l,errors:d}]=B(ho);return{states:{points:r,rate:a},data:{id:e,accountId:t,data:l,errors:d},callbacks:{exchange:o,setPoints:n,setRate:s}}}const bo=t=>{const{states:r,data:n,callbacks:a}=t;return e("div",null,e("div",null,e("label",null,"Rate:"),e("input",{value:r.rate,onInput:e=>a.setRate(e.target.value)})),e("input",{value:r.points,onInput:e=>a.setPoints(e.target.value)}),e("button",{onClick:()=>a.exchange(t.input)},"Exchange"),e("details",null,e("summary",null,"response"),e("h4",null,"data"),e("div",{style:{maxWidth:"500px"}},e("pre",{style:{width:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(n.data))),e("h4",null,"errors"),e("div",{style:{maxWidth:"500px"}},e("pre",{style:{maxWidth:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(n.errors)))))},vo=ds((()=>(fo(),e("sqm-reward-exchange-list",{"list-type":"something"})))),yo=ds((()=>{const{states:t,data:r,callbacks:n}=go();return e(bo,{states:t,data:r,callbacks:n,input:{exchangeRewardInput:{userId:r.id,accountId:r.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},globalRewardKey:"gc1"}}})})),wo=ds((()=>{const{states:t,data:r,callbacks:n}=go();return e(bo,{states:t,data:r,callbacks:n,input:{exchangeRewardInput:{userId:r.id,accountId:r.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},globalRewardKey:"gc1",rewardInput:{valueInCents:Math.ceil(t.points*t.rate)}}}})})),$o=ds((()=>{const{states:t,data:r,callbacks:n}=go();return e(bo,{states:t,data:r,callbacks:n,input:{exchangeRewardInput:{userId:r.id,accountId:r.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},rewardInput:{type:"CREDIT",unit:"foo",assignedCredit:Math.ceil(t.points*t.rate)}}}})})),xo=Object.freeze({__proto__:null,default:{title:"Hooks / useRewardExchange"},RewardList:vo,FixedGlobalReward:yo,VariableGlobalReward:wo,VariableCreditReward:$o});function qo(){const e="testestest",t=e;return window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com"},s((()=>(I({accountId:t,id:e,jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]),{id:e,accountId:t}}const Co=ds((()=>(qo(),N("sam-partner-test-2"),e("sqm-rewards-table",null,e("sqm-rewards-table-column",null))))),Do=ds((()=>(qo(),N(void 0),e("sqm-rewards-table",null,e("sqm-rewards-table-column",null))))),Eo=Object.freeze({__proto__:null,default:{title:"Hooks / useRewardsTable"},RewardsTableWithProgram:Co,RewardsTableNoProgram:Do}),ko=ds((()=>(function(){const e="sam+klip@saasquat.ch";window.widgetIdent={tenantAlias:"test_a74miwdpofztj",appDomain:"https://staging.referralsaasquatch.com",programId:"klip-referral-program"},s((()=>(I({accountId:"sam+klip@saasquat.ch",id:e,jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc"}),()=>{window.widgetIdent=void 0,I(void 0)})),[])}(),e("sqm-task-card",{"card-title":"Comment on 5 articles","button-text":"Start reading",goal:5,steps:!0,"show-progress-bar":!0})))),Ao=Object.freeze({__proto__:null,default:{title:"Hooks / useTaskCard"},TaskCard:ko});O.setup(M());const So=O.createStyleSheet({HeaderSubtitleBold:{"font-weight":500,"text-decoration":"underline"}}),To=So.toString(),Fo={data:{programs:[{key:"program1",label:"My Referral Program"},{key:"program2",label:"My Rewards Program"}]}},Ro={states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}},Po={states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}},Io=()=>e(ue,Object.assign({},Fo),e(ce,Object.assign({},Ro)),e(ce,Object.assign({},Po))),Bo=Object.freeze({__proto__:null,default:{title:"New Portal"},Dashboard:()=>{const t={shareString:"https://ssqt.co/johnsmithrox",open:!1,disabled:!1,tooltiptext:"Share link copied",onClick:()=>console.log("Share link copied")},r={shareString:"JOHNSMITH1",open:!1,disabled:!1,tooltiptext:"Share code copied",onClick:()=>console.log("Share code copied")};return e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},To),e(Io,null),e("sqm-divided-layout",{direction:"column"},e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"John Smith"))})),e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"2,345",value:234500}),"Clicks"),e(ne,Object.assign({},{statvalue:"58",value:58}),"Referrals"),e(ne,Object.assign({},{statvalue:"$10,540",value:1054e3}),"Earned"),e(ne,Object.assign({},{statvalue:"$2,305",value:230500}),"Awaiting Payout"))),e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"x-large",padding:"none",label:e("sqm-text",null,e("h2",null,"Partner and Profit")),content:e("sqm-text",null,e("p",null,"Get rewarded for referring potential customers to MyCompany. Earn commission for each successful lead you send our way"))})),e(X,Object.assign({},{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share your referral link")),content:e(se,Object.assign({},t))})),e(X,Object.assign({},{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share your referral code")),content:e(se,Object.assign({},r))})),e(X,Object.assign({},{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share via social media")),content:e(J,Object.assign({},{direction:"row",padding:"large",gap:"xxx-large",minWidth:"150px"}),e(Mn,Object.assign({},{medium:"twitter",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"twitter",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1}),"Tweet about us"),e(Mn,Object.assign({},{medium:"facebook",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"facebook",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1}),"Share on Facebook"),e(Mn,Object.assign({},{medium:"linkedin",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"linkedin",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1}),"Post on Linkedin"))})))))},EditProfile:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},To),e(Io,null),e("sqm-divided-layout",{direction:"column"},e(pe,Object.assign({},{states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!1,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}})),e(it,Object.assign({},{states:{open:!0,error:"",loading:!1,success:!1,content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:()=>console.log("open"),submit:()=>console.log("submit")}})))),Commissions:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},To),e(Io,null),e("sqm-divided-layout",{direction:"column"},e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("h2",null,"Commissions")),content:e("sqm-text",null,e("p",null,"for the"," ",e("span",{class:So.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))})),e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"$ 1,000",value:1e5}),"Total Earned"),e(ne,Object.assign({},{statvalue:"$ 800",value:8e4}),"Available"),e(ne,Object.assign({},{statvalue:"$ 180",value:18e3}),"Pending"),e(ne,Object.assign({},{statvalue:"$ 20",value:2e3}),"Redeemed"))))),Activity:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},To),e(Io,null),e("sqm-divided-layout",{direction:"column"},e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("h2",null,"Activity")),content:e("sqm-text",null,e("p",null,"for the"," ",e("span",{class:So.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))})),e(X,Object.assign({},{labelMargin:"x-large",padding:"none",label:e("sqm-text",null,e("h3",null,"Referral Activity")),content:e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"1,000",value:1e5}),"Total Referrals"),e(ne,Object.assign({},{statvalue:"800",value:800}),"Converted"),e(ne,Object.assign({},{statvalue:"180",value:180}),"Pending"),e(ne,Object.assign({},{statvalue:"20",value:20}),"Disqualified"))}))),e(X,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e("sqm-text",null,e("h3",null,"Traffic Generated")),content:e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"1,000",value:1e3}),"Clicks"),e(ne,Object.assign({},{statvalue:"800",value:800}),"From share link"),e(ne,Object.assign({},{statvalue:"180",value:180}),"From share mediums"))}))))}),No=Object.freeze({__proto__:null,default:{title:"Components/Sidebar Item"},InactiveItem:()=>e(ce,Object.assign({},{states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}})),ActiveItem:()=>e(ce,Object.assign({},{states:{active:!0},data:{label:"Dashboard",icon:"house",path:"/"}}))}),Lo=Object.freeze({__proto__:null,default:{title:"Components/Navigation Sidebar"},DefaultNavigationSidebar:()=>e(ue,Object.assign({},{data:{programs:[{key:"program1",label:"My Referral Program"},{key:"program2",label:"My Rewards Program"}]}}),e(ce,Object.assign({},{states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}})),e(ce,Object.assign({},{states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}})))}),Oo={states:{error:"",loading:!1},callbacks:{submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},Mo={states:{error:"Something went wrong. Please try again.",loading:!1},callbacks:{submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},jo={states:{error:"",loading:!0},callbacks:{submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},_o=Object.freeze({__proto__:null,default:{title:"Components/Portal Login"},Default:()=>e(ft,Object.assign({},Oo)),LoginWithError:()=>e(ft,Object.assign({},Mo)),LoginLoading:()=>e(ft,Object.assign({},jo))}),Vo={states:{error:"",loading:!1,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Go={states:{error:"Something went wrong. Please try again.",loading:!1,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Ho={states:{error:"",loading:!0,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Wo={states:{error:"",loading:!1,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",formData:e("div",null,e("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label",label:"Slotted Input",required:!0}),e("sl-input",{exportparts:"label: input-label",label:"Slotted Input 2",required:!0}))}},zo=Object.freeze({__proto__:null,default:{title:"Components/Portal Register"},Default:()=>e(wt,Object.assign({},Vo)),RegisterWithError:()=>e(wt,Object.assign({},Go)),RegisterLoading:()=>e(wt,Object.assign({},Ho)),FieldsHidden:()=>e("sqm-portal-register",{demoData:{states:{error:"",loading:!0,confirmPassword:!0,hideInputs:!0}}}),SlottedInputs:()=>e(wt,Object.assign({},Wo))}),Uo={states:{error:"",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Zo={states:{error:"Something went wrong. Please try again.",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Jo={states:{error:"",loading:!0,success:!1},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Xo={states:{error:"",loading:!1,success:!0},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Yo=Object.freeze({__proto__:null,default:{title:"Components/Portal Forgot Password",parameters:{scenario:'@author:\r\n@owner:ian\r\nFeature: Forgot Password\r\n\r\n @motivating\r\n Scenario: Users can request to reset their password\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click "Reset Password"\r\n Then the button enters a loading state\r\n When the password reset email is sent\r\n Then a confirmation banner is shown stating a password reset email was sent\r\n\r\n @motivating\r\n Scenario: Users are notified if sending their password reset email fails\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click "Reset Password"\r\n Then the button enters a loading state\r\n When the password reset email fails to send\r\n Then the user will not receive a password reset email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n @landmine\r\n Scenario: If the input email is not associated to an account a success banner will be shown but an email will not be sent\r\n Given the user entered an email address that is not associated to an accoun\r\n When they click "Reset Password"\r\n Then the button enters a loading state\r\n But no email will be sent\r\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\r\n\r\n @motivating\r\n Scenario: Users can resend password reset email\r\n Given a user had previously requested to reset their password\r\n When they enter their email address\r\n And that email address is linked to a previously created account\r\n And they click "Reset Password"\r\n Then the user will receive a second password reset email\r\n And a success banner is shown stating that their email was sent\r\n'}},Default:()=>e(he,Object.assign({},Uo)),ForgotPasswordWithError:()=>e(he,Object.assign({},Zo)),ForgotPasswordLoading:()=>e(he,Object.assign({},Jo)),ForgotPasswordSuccess:()=>e(he,Object.assign({},Xo))}),Qo={states:{error:"",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},Ko={states:{error:"Something went wrong. Please try again.",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},el={states:{error:"",loading:!0,success:!1},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},tl={states:{error:"",loading:!1,success:!0},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},rl=Object.freeze({__proto__:null,default:{title:"Components/Portal Email Verification",parameters:{scenario:'@author:\r\n@owner: ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User\'s redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message will be displayed\r\n And it will reflect that a email has already been sent to their email\r\n But they can still re-send the email\r\n When they click to "Resend-Email"\r\n Then the user will receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user with an email was stored in session data from registration\r\n When they click to "Resend-Email"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user will not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user with an email was stored in session data from registration\r\n When they click to "Resend-Email"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user will receive a verification email\r\n And a success banner is shown stating that their email was resent'}},Default:()=>e(fe,Object.assign({},Qo)),EmailVerificationWithError:()=>e(fe,Object.assign({},Ko)),EmailVerificationLoading:()=>e(fe,Object.assign({},el)),EmailVerificationSuccess:()=>e(fe,Object.assign({},tl))}),nl={states:{error:"",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},al={states:{error:"",loading:!1,reset:!1,confirmPassword:!1,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},il={states:{error:"Something went wrong. Please try again.",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},sl={states:{error:"",loading:!0,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},ol={states:{error:"",loading:!1,reset:!0,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},ll={states:{error:"",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!1,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},dl=Object.freeze({__proto__:null,default:{title:"Components/Portal Reset Password",parameters:{scenario:'@author:\r\n@owner:ian\r\nFeature: Reset Password\r\n\r\n\r\n Background: A user in on the password reset page\r\n Given a user who has been redirected to the password reset page\r\n\r\n @motivating\r\n Scenario: Users can reset their password\r\n Given a user has a valid oob code as a url query parameter\r\n When they enter their password twice\r\n And they click "Update"\r\n Then their password is updated\r\n And a banner with a success message will be displayed\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their password reset code is invalid or expired\r\n When they click "Continue"\r\n Then they will be redirected to "/"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users must enter the same password twice to successfully reset their password\r\n Given a user has been redirected to the password reset page\r\n And they have a valid oob code as a url query parameter\r\n When they enter two different passwords into the password reset form\r\n And they click "Update"\r\n Then their password is not be reset\r\n And an error banner stating the input passwords must match appears\r\n And their password will not be reset\r\n When they enter the same password twice\r\n And they click "Update"\r\n Then a banner appears with a success message\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario: Users are redirected to "/" by default\r\n Given the component does not have prop "nextPage"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has entered their password twice\r\n When they click "Update"\r\n Then their password is updated\r\n And they are redirected to "/"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop "nextPage" with value "/activity"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has entered their password twice\r\n When they click "Update"\r\n Then their password is updated\r\n And they are redirected to "/activity"'}},Default:()=>e(ge,Object.assign({},nl)),DefaultWithoutConfirmField:()=>e(ge,Object.assign({},al)),ResetPasswordWithError:()=>e(ge,Object.assign({},il)),ResetPasswordLoading:()=>e(ge,Object.assign({},sl)),ResetPasswordSuccess:()=>e(ge,Object.assign({},ol)),CodeValidating:()=>e(ge,Object.assign({},ll))}),ul={states:{error:"Something went wrong. Please try again.",loading:!1,verified:!1},data:{oobCode:"abc123"},callbacks:{gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},cl={states:{error:"",loading:!1,verified:!0},data:{oobCode:"abc123"},callbacks:{gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},ml=Object.freeze({__proto__:null,default:{title:"Components/Portal Verify Email",parameters:{scenario:'@author:\r\n@owner:ian\r\nFeature: Verify Email\r\n\r\n\r\n Background: A user is on the email verification page\r\n Given a user who has been redirected to the email verification page\r\n\r\n @motivating\r\n Scenario: Verifying your email will take you to the portal login page\r\n Given a user has a valid oob code as a url query parameter\r\n When they click "Verify Email"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says "Continue" will appear\r\n When they click "Continue"\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users will be automatically redirected if they dont click "Continue"\r\n Given a user has a valid oob code as a url query parameter\r\n When they click "Verify Email"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says "Continue" will appear\r\n When they wait 5 seconds\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users are notified if verifying their email has failed\r\n Given a user has a valid oob code as a url query parameter\r\n When they click "Verify Email"\r\n Then the button will enter a loading state\r\n When their email fails to be validated\r\n Then an banner is shown stating that an error occured\r\n\r\n @motivating\r\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their verification code is invalid or expired\r\n When they click "Continue"\r\n Then they will be redirected to "/"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users are redirected to "/" by default\r\n Given the component does not have prop "nextPage"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has verified their email\r\n When they click "Continue"\r\n Then they will be redirected to "/"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop "nextPage" with value "/activity"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has verified their email\r\n When they click "Continue"\r\n Then they will be redirected to "/activity"\r\n\r\n @motivating\r\n Scenario Outline: Users will be redirected to the value of the nextPage url parameter if it exists\r\n Given the component <mayHave> prop "nextPage" with <nextPageValue>\r\n And the users url contains a "nextPage" query paramater with <nextPageParamValue>\r\n And the user has verified their email\r\n When they click "Continue"\r\n Then they are redirected to <nextPageParamValue>\r\n Examples:\r\n | mayHave | nextPageValue | nextPageParamValue |\r\n | has | /dashboard | /activity |\r\n | does not have | N/A | /activity |'}},EmailVerificationWithError:()=>e(be,Object.assign({},ul)),EmailVerificationSuccess:()=>e(be,Object.assign({},cl))}),pl=Object.freeze({__proto__:null,default:{title:"Components/Asset Card"},Default:()=>e(ve,Object.assign({},{text:{titleText:"Marketing Banner"},imgUrl:"../../assets/saasquatch-logo.png",callbacks:{}})),CardWithLongText:()=>e(ve,Object.assign({},{text:{titleText:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam, sunt dolores? Dolore temporibus autem officia blanditiis minus in voluptatem molestiae!"},imgUrl:"../../assets/saasquatch-logo.png",callbacks:{}})),CardWithNoImg:()=>e(ve,Object.assign({},{text:{titleText:"Marketing Banner"},imgUrl:"",callbacks:{}}))}),hl={data:{programs:[{key:"program1",label:"My Referral Program"},{key:"program2",label:"My Rewards Program"}]}},fl={states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}},gl={states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}},bl=()=>e(ue,Object.assign({},hl),e(ce,Object.assign({},fl)),e(ce,Object.assign({},gl))),vl=Object.freeze({__proto__:null,default:{title:"Components/Divided Layout"},Row:()=>e("sqm-divided-layout",{direction:"row"},e(bl,null),e("div",{style:{padding:"48px"}},e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))})))),Column:()=>e("sqm-divided-layout",{direction:"column"},e(bl,null),e("div",{style:{padding:"48px"}},e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))})))),ColumnCustomDivider:()=>e("sqm-divided-layout",{direction:"column",dividerStyle:"1px solid red"},e(bl,null),e("div",{style:{padding:"48px"}},e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))}))))}),yl={states:{open:!1,loading:!1,success:!1,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},wl={states:{open:!0,loading:!1,success:!1,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},$l={states:{open:!0,loading:!1,success:!1,error:"Network error. Please try again.",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},xl={states:{open:!0,loading:!1,success:!1,error:"Passwords do not match.",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},ql={states:{open:!0,loading:!0,success:!1,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},Cl={states:{open:!0,loading:!1,success:!0,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},Dl=Object.freeze({__proto__:null,default:{title:"Components/Change Password",parameters:{scenario:'Feature: Change Password\r\n\r\n @motivating\r\n Scenario: Users can change their password\r\n Given a user has registered for the portal\r\n And they have a password\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n Then a popup will appear\r\n When they enter their new password\r\n And confirm it\r\n And click "Change Password"\r\n Then they will see a success banner stating that the change was successful\r\n When they logout\r\n And try to login\r\n Then they will not be able to login with their old password\r\n But they will be able to login with their new password\r\n\r\n @motivating\r\n Scenario: Users must confirm their password change\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n Then a popup will appear\r\n When they enter their new password\r\n But they enter a different password to confirm\r\n And click "Change Password"\r\n Then they will see an error banner stating that the passwords didnt match\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password\r\n\r\n @motivating\r\n Scenario: Users must enter a new password and confirm it to change their password\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n Then a popup will appear\r\n When they click "Change password"\r\n Then a validation error will appear for the new password field\r\n And their password will not be changed\r\n When they enter a new password\r\n And they click "Change password"\r\n Then a validation error will appear for the confirm new password field\r\n And their password will not be changed\r\n\r\n @motivating\r\n Scenario: An error banner will be displayed if the password change fails\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n When they enter their new password\r\n And confirm it\r\n And click "Change Password"\r\n But the change fails\r\n Then they will see an error banner stating that the change failed\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password'}},Default:()=>e(it,Object.assign({},yl)),Open:()=>e(it,Object.assign({},wl)),Error:()=>e(it,Object.assign({},$l)),PaswordError:()=>e(it,Object.assign({},xl)),Loading:()=>e(it,Object.assign({},ql)),Success:()=>e(it,Object.assign({},Cl))});O.setup(M());const El={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},kl={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!1,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Al={states:{success:!1,loading:!0,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Sl={states:{success:!1,loading:!1,submitDisabled:!0,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Tl={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:"Something went wrong. Please try again."}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Fl={states:{success:!0,loading:!1,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Rl=Object.freeze({__proto__:null,default:{title:"Components/Portal Profile"},Default:()=>e(pe,Object.assign({},El)),DefaultNoCountry:()=>e(pe,Object.assign({},kl)),Loading:()=>e(pe,Object.assign({},Al)),Disabled:()=>e(pe,Object.assign({},Sl)),Error:()=>e(pe,Object.assign({},Tl)),Success:()=>e(pe,Object.assign({},Fl))}),Pl={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:rd(),dateExpires:nd(),dateCancelled:134400,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}},Il={dateExpires:null},Bl={dateScheduledFor:null},Nl={fuelTankCode:null},Ll={type:"PCT_DISCOUNT"},Ol={type:"CREDIT"},Ml={type:"FUELTANK"},jl={type:"INTEGRATION"},_l={statuses:["AVAILABLE","PENDING"]},Vl={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5},Gl={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5},Hl={statuses:["AVAILABLE","EXPIRED","REDEEMED"]},Wl={statuses:["AVAILABLE"]},zl=[],Ul=[{...Pl,...Wl}],Zl=[{...Pl,...Ll,..._l},{...Pl,...Ol}],Jl=[{...Pl,...Ml,...Il},{...Pl,...Ml,...Gl},{...Pl,..._l,...Nl}],Xl=[{...Pl,...Ml},{...Pl,...jl},{...Pl,..._l},{...Pl,...Vl,...Il,...Nl},{...Pl,...Gl,...Nl}],Yl=[{...Pl,...Hl,...Nl},{...Pl,...Wl,...Il},{...Pl,..._l},{...Pl,...Vl},{...Pl,...Gl},{...Pl,..._l,...Il,...Bl},{...Pl,...Vl},{...Pl,...Gl}],Ql=[{...Pl,...jl},{...Pl,...Hl},{...Pl,...Wl},{...Pl,...Vl,...Il},{...Pl,...Gl},{...Pl,..._l},{...Pl,...Ll},{...Pl,...Ml},{...Pl,...Vl,...Il},{...Pl,...Ol}];function Kl(){return rn.DateTime.now().toMillis()+1e4}function ed(){return rn.DateTime.now().toMillis()+4e5}function td(){return rn.DateTime.now().toMillis()+9e6}function rd(){return rn.DateTime.now().toMillis()+6e8}function nd(){return rn.DateTime.now().toMillis()+1e10}function ad(){return rn.DateTime.now().toMillis()+2e11}const id=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,..._l,...Bl}]}),sd=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Wl,...Il}]}),od=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Vl}]}),ld=Object.freeze({__proto__:null,default:{title:"Components/Referral Table Rewards Cell"},PendingNoUnpend:id,PendingNoUnpendNoDetails:()=>e("sqm-referral-table-rewards-cell",{hideDetails:!0,rewards:[{...Pl,..._l,...Bl}]}),PendingWithUnpend:()=>[e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,..._l,dateScheduledFor:Kl()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,..._l,dateScheduledFor:ed()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,..._l,dateScheduledFor:td()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,..._l,dateScheduledFor:rd()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,..._l,dateScheduledFor:nd()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,..._l,dateScheduledFor:ad()}]})],AvailableNoExpiry:sd,AvailableWithExpiry:()=>[e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Wl,dateExpires:Kl()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Wl,dateExpires:ed()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Wl,dateExpires:td()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Wl,dateExpires:rd()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Wl,dateExpires:nd()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Wl,dateExpires:ad()}]})],Redeemed:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Hl}]}),Cancelled:od,Expired:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Pl,...Gl}]}),EmptyCell:()=>e("sqm-referral-table-rewards-cell",{rewards:zl}),oneRewardCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Ul}),twoRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Zl}),threeRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Jl}),fiveRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Xl}),eightRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Yl}),tenRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Ql})}),dd=e("div",{slot:"loading",style:{display:"contents"}},e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))),ud=e("div",{slot:"empty",style:{display:"contents"}},e("sqm-table-row",null,e("sqm-table-cell",{colspan:5,style:{textAlign:"center"}},"No Referrals Yet"))),cd={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:16281468e5,dateExpires:16290108e5,dateCancelled:134400,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}},md={statuses:["AVAILABLE","PENDING"]},pd={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5},hd={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5},fd={statuses:["AVAILABLE"]},gd={dateExpires:null},bd={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"Rewards")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-user-cell",{name:"07/15/1902"}),e(id,null)],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-user-cell",{name:"09/05/1999"}),e(sd,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-user-cell",{name:"12/21/1984"}),e(od,null)]]}},vd={data:{textOverrides:{showLabels:!1,prevLabel:"Prev",moreLabel:"View More"}}},yd={states:{hasPrev:!0,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"CUSTOM PREVIOUS TEXT",moreLabel:"CUSTOM NEXT TEXT"}}},wd={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"City"),e("div",null,"State/Province"),e("div",null,"Country"),e("div",null,"Referrals"),e("div",null,"Reward Earnings"),e("div",null,"Status")],rows:[[e("sqm-referral-table-user-cell",{name:"Bartholomew Christopher-Johnston Wallace"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-220896e5}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14,000,000"}),e("sqm-referral-table-user-cell",{name:"$800,000,000,000"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},$d={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit."),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"City"),e("div",null,"State/Province"),e("div",null,"Country"),e("div",null,"Referrals"),e("div",null,"Rewarddddddddddd Earningsssssssssssss"),e("div",null,"Status")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-2128547493e3}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14"}),e("sqm-referral-table-user-cell",{name:"$88"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},xd={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"City"),e("div",null,"State/Province"),e("div",null,"Country"),e("div",null,"Referrals"),e("div",null,"Reward Earnings"),e("div",null,"Status")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-2128547493e3}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14"}),e("sqm-referral-table-user-cell",{name:"$88"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},qd=Object.freeze({__proto__:null,default:{title:"Components/Referral Table"},SimpleUserTable:()=>e(zr,Object.assign({},bd)),HiddenLabelsTable:()=>e(zr,Object.assign({},{...bd,...vd})),CustomButtonTextTable:()=>e(zr,Object.assign({},{...bd,...yd})),FullUserTable:()=>e(zr,Object.assign({},xd)),LongCellTextTable:()=>e(zr,Object.assign({},wd)),LongColumnTextTable:()=>e(zr,Object.assign({},$d)),EmptyTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},elements:{emptyElement:ud,loadingElement:dd,columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB")],rows:[]}}}),LoadingTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,loading:!0},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},elements:{emptyElement:ud,loadingElement:dd,columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB")],rows:[]}}}),FullRewardsTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},elements:{emptyElement:ud,loadingElement:dd,columns:[e("div",null,"User"),e("div",null,"Rewards"),e("div",null,"Status"),e("div",null,"Date Started"),e("div",null,"Date Converted")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-rewards-cell",{rewards:[{...cd,...fd},{...cd,...md},{...cd,...pd}]}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:1627427794891})],[e("sqm-referral-table-user-cell",{name:"Sarah Williams"}),e("sqm-referral-table-rewards-cell",{rewards:[{...cd,...hd}]}),e("sqm-referral-table-status-cell",{statusText:"Incomplete",converted:!1}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:null})],[e("sqm-referral-table-user-cell",{name:"Marvin Smith"}),e("sqm-referral-table-rewards-cell",{rewards:[{...cd,...gd},{...cd,...md}]}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:1627427794891})]]}}})}),Cd=[{id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:16281468e5,dateExpires:16290108e5,dateCancelled:134400,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}}],Dd=Object.freeze({__proto__:null,default:{title:"Components/Referral Table Cell"},TableCell:()=>e("sqm-referral-table-cell",{innerTemplate:"Table Cell Text"}),TableUserCell:()=>e("sqm-referral-table-user-cell",{name:"Table User Cell Text"}),EmptyCell:()=>e("sqm-sqm-referral-table-cell",null,"-"),StatusCell:()=>e("div",null,e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-status-cell",{statusText:"In Progress",converted:!1})),DateCell:()=>e("sqm-referral-table-date-cell",{date:8e11}),RewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Cd})}),Ed=Object.freeze({__proto__:null,default:{title:"Tests/User Name"},DemoData:()=>e("sqm-user-name",{demoData:{loading:!1,loadingText:"...",username:"Test Testerson"}}),Username:()=>e("sqm-user-name",null)}),kd=Object.freeze({__proto__:null,default:{title:"Components/Portal Password Field"},Start:()=>e("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:!0,validationErrors:{},content:{fieldLabel:"Password"}}}}),EmptyError:()=>e("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:!0,validationErrors:{password:"Cannot be empty"},content:{fieldLabel:"Password"}}}}),ValidationError:()=>e("sqm-password-field",{demoData:{initValue:"asdf",states:{enableValidation:!0,validationErrors:{password:"Incomplete"},content:{fieldLabel:"Password"}}}})}),Ad=()=>e("svg",{width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z",fill:"var(--sl-color-primary-200)"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9v1h13V9h-13z",fill:"var(--sl-color-primary-300)"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z",fill:"var(--sl-color-primary-600)"}));function Sd(t){const{progress:r=0,goal:n=1,steps:a=!1,progressBarUnit:i="",repeatable:s=!1,complete:o=!1}=t;console.log("progress bar props",t);const l=Ad(),d=Ad(),u=Ad();var c=[],m="",p=Math.floor(r/n);s?a?function(){let t=Math.floor(r/n);if(t<2){let t=1/n;for(let a=1;a<2*n+1;a++)m+=t+"fr 0fr ",a>r?a==n?(m+="0fr ",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},n)),c.push(e("div",{class:"gift bw"},l))):a==2*n?(m+="0fr 0fr",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},2*n)),c.push(e("div",{class:"gift bw"},d))):(c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty"},i+a))):a==n?(m+="0fr ",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},a)),c.push(e("div",{class:"gift"},u))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},a)))}else{let a=r%n+n,i=1/n;m+="0fr 0fr ",c.push(e("div",{class:"progress bg"},n*(t-1))),c.push(e("div",{class:"gift start"},l));for(let r=1;r<2*n+1;r++)m+=i+"fr 0fr ",r<=n?r==n?(m+="0fr ",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},r+n*(t-1))),c.push(e("div",{class:"gift"},d))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},r+n*(t-1)))):r>a?r==2*n?(m+="0fr 0fr",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},r+n*(t-1))),c.push(e("div",{class:"gift bw"},u))):(c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty"},r+n*(t-1)))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},r+n*(t-1))))}}():function(){let t=Math.floor(r/n),a=r%n/n*.5;0==t?(m=a+"fr 0fr "+(.5-a)+"fr 0fr 0fr 0.5fr 0fr 0fr",c.push(e("div",{class:"filled"})),c.push(e("div",{class:r==n?"progress top bg":"progress top"},i+r)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+n)),c.push(e("div",{class:"gift"},l)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+2*n)),c.push(e("div",{class:"gift bw"},d))):1==t?(m="0.5fr 0fr 0fr "+a+"fr 0fr "+(.5-a)+"fr 0fr 0fr",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},i+n)),c.push(e("div",{class:"gift"},l)),c.push(e("div",{class:"filled"})),c.push(e("div",{class:r==n?"progress top bg":"progress top"},r==n?"":i+r)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+2*n)),c.push(e("div",{class:"gift bw"},d))):(m="0fr 0fr 0.5fr 0fr 0fr "+a+"fr 0fr "+(.5-a)+"fr 0fr 0fr",c.push(e("div",{class:"progress bg"},i+n*(t-1))),c.push(e("div",{class:"gift start"},l)),c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},i+n*t)),c.push(e("div",{class:"gift"},d)),c.push(e("div",{class:"filled"})),c.push(e("div",{class:r==n*t?"progress top bg":"progress top"},r==n*t?"":i+r)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+n*(t+1))),c.push(e("div",{class:"gift bw"},u)))}():a?function(){let t=1/n;for(let a=1;a<n;a++)m+=t+"fr 0fr ",a>r?(c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty"},a))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},a)));m+=t+"fr 0fr ",n<=r?(m+="0fr ",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},n)),c.push(e("div",{class:"gift"},l))):(m+="0fr ",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},n)),c.push(e("div",{class:"gift"},l)))}():function(){const t=r/n;m=b(t,0,1)+"fr 0fr "+b(1-t,0,1)+"fr 0fr 0fr",c.push(e("div",{class:"filled"})),c.push(e("div",{class:b(r,0,n)==n?"progress top bg":"progress top"},b(r,0,n)==n?"":i+b(r,0,n))),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},n)),c.push(e("div",{class:"gift"},l))}();const h={ProgressBar:{"& .progress-bar":{height:"15px",marginTop:a?"var(--sl-spacing-x-medium)":"var(--sl-spacing-large)",marginBottom:"var(--sl-spacing-xx-large)",marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-small)",display:"grid",gridTemplateColumns:m,lineHeight:"45px",userSelect:"none"},"& .progress-bar.repeatable-steps":{marginLeft:"var(--sl-spacing-x-small)"},"& .filled:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:o?"var(--sl-color-success-500)":"var(--sl-color-primary-500)"},"& .progress":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .progress::after":{content:'""',width:"12px",height:"12px",display:"flex",backgroundColor:o?"var(--sl-color-success-500)":"var(--sl-color-primary-500)",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .progress.bg:after":{width:"0",height:"0",border:"none"},"& .progress.top":{position:"relative",top:"-40px"},"& .progress.top:after":{top:"-16%"},"& .empty":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .empty::after":{content:'""',width:"12px",height:"12px",border:"2px solid #E0E0E0",margin:"-2px",display:"flex",backgroundColor:"white",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .empty.bg:after":{width:"0",height:"0",border:"none"},"& .remain:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"#E0E0E0"},"& .gift.bw":{filter:"grayscale(100%)"},"& .gift.start":{transform:"scale(80%)",top:"-20px"},"& .gift":{textAlign:"center",marginLeft:"-100px",marginRight:"-100px",position:"relative",display:"list-item",listStyleType:"none",top:"-18px",filter:n<=r?"":"grayscale(100%)",zIndex:"1"}}};O.setup(M());const f=O.createStyleSheet(h),g=f.toString();return e("div",{class:f.classes.ProgressBar},e("style",{type:"text/css"},g),e("div",{class:p>1?"progress-bar repeatable-steps":"progress-bar"},c));function b(e,t,r){return Math.min(Math.max(e,t),r)}}function Td(t){const{rewardAmount:r,cardTitle:n,description:a,showProgressBar:i,progress:s=0,goal:o,rewardUnit:l,repeatable:d,showExpiry:u,dateExpires:c,buttonText:m,buttonLink:p,loading:h}=t;console.log({props:t});const f=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},e("path",{fill:"currentColor","fill-rule":"evenodd",d:"M1.636 9a7.364 7.364 0 1114.728 0A7.364 7.364 0 011.636 9zM9 0a9 9 0 100 18A9 9 0 009 0zm5.192 6.266a.982.982 0 00-1.548-1.208l-4.787 6.137-2.58-2.58a.982.982 0 00-1.39 1.388l3.367 3.366a.982.982 0 001.468-.09l5.47-7.013z","clip-rule":"evenodd"})),g=e("svg",{width:11,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z",fill:"currentColor"})),b={HostBlock:H,TaskCard:{"& .main > div":{margin:"var(--sl-spacing-medium)"},"& .main":{position:"relative",boxSizing:"border-box",minWidth:"347px",background:"var(--sl-color-white)",border:"1px solid var(--sl-color-gray-300)",borderRadius:"var(--sl-border-radius-medium)",fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)"},"& .main.complete":{background:"var(--sl-color-success-50)",borderColor:"var(--sl-color-success-700)"}},Header:{display:"flex","& .icon":{alignSelf:"center",lineHeight:"0",color:"var(--sl-color-success-700)",fontSize:"var(--sl-font-size-large)",marginRight:"var(--sl-spacing-x-small)"},"& .value":{alignSelf:"center",color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"100%",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{alignSelf:"end",textTransform:"uppercase",color:"var(--sl-color-gray-600)",fontSize:"var(--sl-font-size-x-small)",lineHeight:"var(--sl-font-size-medium)",marginRight:"var(--sl-spacing-xx-small)"}},Title:{color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-semibold)"},Footer:{display:"flex","& .icon":{fontSize:"var(--sl-font-size-xx-small)",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{marginTop:"auto",verticalAlign:"text-bottom",fontSize:"var(--sl-font-size-x-small)",color:"var(--sl-color-gray-600)"},"& .success":{color:"var(--sl-color-success-600)!important",fontWeight:"var(--sl-font-weight-semibold)"},"& .action":{marginTop:"auto",marginLeft:"auto"},"& sl-button.action::part(base) ":{color:"var(--sl-color-white)",background:"var(--sl-color-primary-500)",border:"1px solid var(--sl-color-primary-500)",borderRadius:"var(--sl-border-radius-medium)"},"& sl-button.action.completed::part(base) ":{border:"1px solid var(--sl-color-gray-300)!important",background:"var(--sl-color-gray-300)!important"}}};O.setup(M());const v=O.createStyleSheet(b),y=v.toString(),w=s>=o,$=i?Math.floor(s/o):s,x=w&&!1===d;return console.log({showProgressBar:i,loading:h}),e("div",{class:v.classes.TaskCard},e("div",{class:w?"main complete":"main"},e("style",{type:"text/css"},y),e("div",{class:v.classes.Header},w&&e("span",{class:"icon"},f),e("span",{class:"value"},r),e("span",{class:"text"},l)),e("div",{class:v.classes.Title},n),e(Fd,{description:a}),i&&h?e("sl-skeleton",{style:{width:"98%",margin:"0 auto"}}):i&&e(Sd,Object.assign({},t,{complete:x})),e("div",{class:v.classes.Footer},e("span",{class:"text"},d&&e("div",null,e("span",{class:$>0?"icon success":"icon"},g),e("span",{class:$>0?"success":""},"Completed ",$," times")),u&&e("span",null,"Ends "," ",c)),e("sl-button",{class:x?"action completed":"action",size:"small",onClick:()=>window.open(p),disabled:x},m))))}function Fd(t){O.setup(M());const r=O.createStyleSheet({Description:{"& input[type=checkbox]":{display:"none"},"& input:checked ~ .details":{transform:"rotate(-180deg)"},"& .details":{position:"absolute",top:"var(--sl-spacing-medium)",right:"var(--sl-spacing-medium)",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-large)","& :hover":{color:"var(--sl-color-primary-700)"},transformOrigin:"50% 37%",transition:"transform var(--sl-transition-medium) ease"},"& input:checked ~ .summary":{transition:"max-height var(--sl-transition-medium) ease",maxHeight:"300px"},"& .summary":{display:"block",overflow:"hidden",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-x-small)",maxHeight:"0px",transition:"max-height var(--sl-transition-fast) ease-out"}}}),n=r.toString(),a=Math.random().toString(36).slice(2);return e("div",null,e("style",{type:"text/css"},n),e("span",{class:r.classes.Description},e("input",{type:"checkbox",id:"details-"+a}),e("label",{class:"details",htmlFor:"details-"+a},e("sl-icon",{name:"chevron-down"})),e("span",{class:"summary"},t.description)))}const Rd={width:"347px",minWidth:"347px",resize:"horizontal",height:"fit-content",overflow:"hidden"},Pd=Object.freeze({__proto__:null,default:{title:"Components/Task Card/",parameters:{scenario:'@author:derek\r\n@owner:\r\nFeature: Task Card\r\n\r\n\tScenario: A header, body title, description and a CTA button are always displayed\r\n\t\tGiven the Task Card is configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rewardAmount | "40" |\r\n\t\t\t| rewardUnit | "Points" |\r\n\t\t\t| cardTitle | Complete a survey |\r\n\t\t\t| description | Fill out our survey form and receive points! |\r\n\t\t\t| buttonText | Take Survey |\r\n\t\t\t| buttonLink | https://example.com/ |\r\n\t\tWhen a user views the Task Card\r\n\t\tThen they see "40 Points" as the heading\r\n\t\tAnd the "40" is bolded\r\n\t\tAnd they see "Complete a survey" bolded in the body\r\n\t\tAnd a details icon in the top right hand corner\r\n\t\tAnd a button with text "Take Survey" in the bottom right hand corner\r\n\t\tWhen they click the button\r\n\t\tThen they are redirected to "example.com" in a new window\r\n\t\tWhen they click the details icon\r\n\t\tThen "Fill out our survey form and receive points!" is shown as the card description\r\n\r\n\tScenario: A loading state is displayed while the Task Card is loading\r\n\t\tGiven a Task Card component\r\n\t\tWhen a user views the Task Card\r\n\t\tThen a loading state is displayed\r\n\t\tWhen the Task Card has loaded\r\n\t\tThen the loading state disapears\r\n\r\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\r\n\t\tGiven a Task Card component\r\n\t\tAnd it <mayHave> "showProgressBar" <value>\r\n\t\tWhen a user views the Task Card\r\n\t\tThen the progress bar <mayBe> displayed\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | is |\r\n\t\t\t| has | false | isn\'t |\r\n\t\t\t| doesn\'t have | | isn\'t |\r\n\r\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only be default\r\n\t\tGiven a Task Card component\r\n\t\tAnd it <mayHave> "repeatable" <value>\r\n\t\tAnd a user who has already completed the task\r\n\t\tWhen they views the Task Card\r\n\t\tThen they see a green checkmark icon beside the card heading\r\n\t\tAnd the card <mayBe> green\r\n\t\tAnd the card\'s border <mayBe> green\r\n\t\tAnd the CTA button <mayBe> disabled\r\n\t\tAnd the CTA button <mayBe> grey\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | isn\'t |\r\n\t\t\t| has | false | is |\r\n\t\t\t| doesn\'t have | | is |\r\n\r\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\r\n\t\tGiven a Task Card component\r\n\t\tAnd it is configured for <expiry>\r\n\t\tWhen a user views the Card on <day>\r\n\t\tThen they the expiry on <cardLocation>\r\n\t\tAnd the text <mayBe> orange\r\n\t\tAnd the card <mayBe> disabled\r\n\t\tAnd the card <mayBe> grey\r\n\t\tAnd the user <mayBe> unable to complete the loyalty task\r\n\t\tExamples:\r\n\t\t\t| expiry | day | cardLocation | mayBe |\r\n\t\t\t| Dec 31 2021 11:59:59 | Dec 1st 2021 12:00:00 | bottom left | isn\'t |\r\n\t\t\t| Dec 31 2021 11:59:59 | Dec 31 2021 11:00:00 | top right | isn\'t |\r\n\t\t\t| Dec 31 2021 11:59:59 | Jan 15th 2022 10:00:00 | top right | is |\r\n\r\n\tScenario Outline: Task expiry can be hidden or shown but is hidden by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured with an expiry\r\n\t\tAnd it <mayHave> "showExpiry" <value>\r\n\t\tWhen a user views the Task card\r\n\t\tThen the expiry <mayBe> shown in the bottom left hand corner\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | is |\r\n\t\t\t| has | false | isn\'t |\r\n\t\t\t| doesn\'t have | | isn\'t |\r\n\r\n\t#DS: Currently this text is non configurable and isnt set up for proper pluralization\r\n\tScenario Outline: A task completion count is displayed for repeatable tasks\r\n\t\tGiven a Task Card is configured for a repeatable task\r\n\t\tAnd has "goalCompletionNumber" <goalCompletionNumberValue>\r\n\t\tAnd a user with <userGoalProgress>\r\n\t\tWhen the user views the task card\r\n\t\tThen they see a repeat icon\r\n\t\tAnd the <text> in the bottom left hand corner\r\n\t\tAnd the <text> is green\r\n\t\tExamples:\r\n\t\t\t| goalCompletionNumber | userGoalProgress | text |\r\n\t\t\t| 1 | 0 | Completed 0 times |\r\n\t\t\t| 1 | 1 | Completed 1 times |\r\n\t\t\t| 1 | 2 | Completed 2 times |\r\n\t\t\t| 10 | 5 | Completed 0 times |\r\n\t\t\t| 10 | 12 | Completed 1 times |\r\n\t\t\t| 10 | 29 | Completed 2 times |\r\n\r\n\tScenario Outline: The source of a user\'s progress can be a custom field or a program goal\r\n\t\tGiven a Task Card is configured to have <progressSourcePath> progress source\r\n\t\tAnd a user\r\n\t\tWhen they view the Task card\r\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the Goal Completion Count\r\n\t\tExamples:\r\n\t\t\t| value |\r\n\t\t\t| /customFields/activityCount |\r\n\t\t\t| /customFields/purchaseTotal |\r\n\t\t\t| /programGoals/count%2FComment-on-Article |\r\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\r\n\r\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\r\n\t\tGiven a Task Card is configured to have <goalValue>\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen they are shown to have <progressValue> towards <goalValue>\r\n\t\tWhen their progress grows larger than <goalValue>\r\n\t\tThen the task is marked as completed\r\n\t\tExamples:\r\n\t\t\t| goalValue | progressValue |\r\n\t\t\t| 1 | 0 |\r\n\t\t\t| 10 | 9 |\r\n\t\t\t| 5 | 2 |\r\n\r\n\tScenario: The Goal Completion Number defaults to 1\r\n\t\tGiven a Task Card without a configured "goalCompletionNumber"\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen it <mayBe> marked as completed\r\n\t\tExamples:\r\n\t\t\t| progressValue | mayBe |\r\n\t\t\t| 0 | isn\'t |\r\n\t\t\t| 1 | is |\r\n\t\t\t| 2 | is |'}},NotRepeatable:()=>{const t={rewardAmount:20,showExpiry:!1,rewardUnit:"Points",cardTitle:"Complete a survey",repeatable:!1,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",cardTitle:"Comment on 5 articles",showProgressBar:!0,showExpiry:!1,goal:5,repeatable:!1,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",cardTitle:"Spend $500 at our Store",showProgressBar:!0,showExpiry:!1,goal:500,repeatable:!1,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Rd},e("h4",null,"One Action"),e(Td,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"A Couple Actions"),e(Td,Object.assign({},r,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:5}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"Many Actions"),e(Td,Object.assign({},n,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:230}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:500}))," ",e("h5",null)))},NotRepeatableWithExpiry:()=>{const t={rewardAmount:20,rewardUnit:"Points",cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,showExpiry:!0,repeatable:!1,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",cardTitle:"Comment on 5 articles",showProgressBar:!0,goal:5,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",showExpiry:!0,repeatable:!1,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",repeatable:!1,cardTitle:"Spend $500 at our Store",showProgressBar:!0,goal:500,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Rd},e("h4",null,"One Action"),e(Td,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"A Couple Actions"),e(Td,Object.assign({},r,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:5}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"Many Actions"),e(Td,Object.assign({},n,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:230}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:500}))," ",e("h5",null)))},Repeatable:()=>{const t={rewardAmount:20,rewardUnit:"Points",showExpiry:!1,cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,repeatable:!0,buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",showExpiry:!1,cardTitle:"Comment on 5 articles",showProgressBar:!0,repeatable:!0,goal:5,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",showExpiry:!1,cardTitle:"Spend $500 at our Store",showProgressBar:!0,repeatable:!0,goal:500,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Rd},e("h4",null,"One Action"),e(Td,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"A Couple Actions"),e(Td,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:5}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:7}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:10}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"Many Actions"),e(Td,Object.assign({},n,{progress:100}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:500}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:650}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:1e3}))," ",e("h5",null)))},RepeatableWithExpiry:()=>{const t={rewardAmount:20,rewardUnit:"Points",cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,repeatable:!0,showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",cardTitle:"Comment on 5 articles",showProgressBar:!0,repeatable:!0,goal:5,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",cardTitle:"Spend $500 at our Store",showProgressBar:!0,repeatable:!0,goal:500,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Rd},e("h4",null,"One Action"),e(Td,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Td,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"A Couple Actions"),e(Td,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:5}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:7}))," ",e("h5",null),e(Td,Object.assign({},r,{progress:10}))," ",e("h5",null)),e("div",{style:Rd},e("h4",null,"Many Actions"),e(Td,Object.assign({},n,{progress:100}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:500}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:650}))," ",e("h5",null),e(Td,Object.assign({},n,{progress:1e3}))," ",e("h5",null)))}});function Id({matrix:t,props:r,Component:n}){return function(...e){var t=[],r=e.length-1;return function n(a,i){for(var s=0,o=e[i].length;s<o;s++){var l=a.slice(0);l.push(e[i][s]),i==r?t.push(l):n(l,i+1)}}([],0),t}(...Object.keys(t).map((e=>t[e].map((t=>({[e]:t})))))).map((e=>e.reduce(((e,t)=>({...e,...t})),{}))).map((t=>{const a={...r,...t};return e("div",null,e(Bd,{values:a}),e("hr",null),e(n,Object.assign({},a)))}))}function Bd({values:t}){return e("table",null,e("tbody",null,Object.keys(t).map((r=>e("tr",null,e("th",null,r),e("td",null,JSON.stringify(t[r])))))))}const Nd=Object.freeze({__proto__:null,default:{title:"Components/Task Card Progress Bar",parameters:{scenario:"@author:\r\n@owner:\r\nFeature: Task Card Progress Bar\r\n\r\n\tScenario Outline: Progress Bar\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> with <unit> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | color |\r\n\t\t\t| -100 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 0 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 250 | 500 | ―――――――――●―――――――――🎁 | $ | no |\r\n\t\t\t| 500 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1000 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\tScenario Outline: Progress Bar Steps\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps from 1 to <goal>\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | color |\r\n\t\t\t| -1 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 0 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | 5 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\t\t\t| 7 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\r\n\r\n\tScenario Outline: Progress Bar Repeatable\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd <icon1> has <color1>\r\n\t\tAnd <icon2> has <color2>\r\n\t\tAnd <icon3> has <color3>\r\n\t\tAnd <icon1> shows <text1> below\r\n\t\tAnd <icon2> shows <text2> below\r\n\t\tAnd <icon3> shows <text3> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | icon1 | icon2 | icon3 | color1 | color2 | color3 | text 1 | text 2 | text 3 |\r\n\t\t\t| 250 | 500 | ――――●――――🎁―――――――🎁 | $ | NA | gift | gift | NA | no | no | NA | 500 | 1000 |\r\n\t\t\t| 500 | 500 | ―――――――――🎁―――――――🎁 | $ | NA | gift | gift | NA | yes | no | NA | 500 | 1000 |\r\n\t\t\t| 750 | 500 | ―――――――――🎁―――●―――🎁 | $ | NA | gift | gift | NA | yes | no | NA | 500 | 1000 |\r\n\t\t\t| 1000 | 500 | 🎁―――――――🎁―――――――🎁 | $ | gift | gift | gift | yes | yes | no | 500 | 1000 | 1500 |\r\n\t\t\t| 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | $ | gift | gift | gift | yes | yes | no | 500 | 1000 | 1500 |\r\n\r\n\t# \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t math logic inside text ?\r\n\t# | 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | gift | gift | gift | yes | yes | no | goal * (⌊ progress / goal ⌋ - 1) | goal * ⌊ progress / goal ⌋ | goal * (⌊ progress / goal ⌋ +1) |\r\n\r\n\r\n\tScenario Outline: Progress Bar Steps Repeatable\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar |"}},Default:()=>e(Sd,null),ProgressBar:()=>e("div",null,e(Id,{matrix:{progress:[-100,0,100,500,1e3]},props:{progress:0,goal:500,progressBarUnit:"$"},Component:Sd})),ProgressBarSteps:()=>e("div",null,e(Id,{matrix:{progress:[-1,0,1,5,7]},props:{progress:0,steps:!0,goal:5,progressBarUnit:"$"},Component:Sd})),ProgressBarRepeatable:()=>e("div",null,e(Id,{matrix:{progress:[100,500,650,1200]},props:{progress:0,goal:500,progressBarUnit:"$",repeatable:!0},Component:Sd})),ProgressBarStepsRepeatable:()=>e("div",null,e(Id,{matrix:{progress:[1,5,7,12]},props:{progress:0,steps:!0,goal:5,progressBarUnit:"$",repeatable:!0},Component:Sd}))}),Ld='<sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name fallback="Anonymous User"></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n><sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large">\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label"> <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to SaaSquatch. Earn\r\n commission for each successful lead you send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label"> <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label"> <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label"> <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button medium="twitter" size="medium" pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button medium="facebook" size="medium" pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n>\r\n';var Od=m((function(e){e.exports=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n={exports:{}};function a(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:a,changeDefaults:function(e){n.exports.defaults=e}};var i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return d[e]};var c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(c,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;var h=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var g={},b=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(e,t){g[" "+e]||(g[" "+e]=b.test(e)?e+"/":$(e,"/",!0));var r=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(v,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(y,"$1")+t:e+t}function $(e,t,r){var n=e.length;if(0===n)return"";for(var a=0;a<n;){var i=e.charAt(n-a-1);if(i!==t||r){if(i===t||!r)break;a++}else a++}return e.substr(0,n-a)}var x=function(e,t){if(t){if(i.test(e))return e.replace(s,u)}else if(o.test(e))return e.replace(l,u);return e},q=m,C=function(e,t){e=e.source||e,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r},D=function(e,t,r){if(e){var n;try{n=decodeURIComponent(m(r)).replace(h,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!f.test(r)&&(r=w(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r},E={exec:function(){}},k=function(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},A=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},S=function(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e},T=n.exports.defaults,F=$,R=function(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,a=t;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r},P=x,I=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,a=0;a<r;a++)if("\\"===e[a])a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&--n<0)return a;return-1};function B(e,t,r,n){var a=t.href,i=t.title?P(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var o={type:"link",raw:r,href:a,title:i,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,o}return{type:"image",raw:r,href:a,title:i,text:P(s)}}var N=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:F(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=F(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}var a={type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:[]};return this.lexer.inline(a.text,a.tokens),a}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(r,[]),text:r}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,n,a,i,s,o,l,d,u,c,m=t[1].trim(),p=m.length>1,h={type:"list",raw:"",ordered:p,start:p?+m.slice(0,-1):"",loose:!1,items:[]};m=p?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=p?m:"[*+-]");for(var f=new RegExp("^( {0,3}"+m+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(t=f.exec(e));){u=t[2].split("\n"),this.options.pedantic?(i=2,c=u[0].trimLeft()):(i=t[2].search(/[^ ]/),c=u[0].slice((i=t[1].length+(i>4?1:i))-t[1].length)),o=!1,r=t[0],!u[0]&&/^ *$/.test(u[1])&&(r=t[1]+u.slice(0,2).join("\n")+"\n",h.loose=!0,u=[]);var g=new RegExp("^ {0,"+Math.min(3,i-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(s=1;s<u.length;s++){if(d=u[s],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),g.test(d)){r=t[1]+u.slice(0,s).join("\n")+"\n";break}if(o){if(!(d.search(/[^ ]/)>=i)&&d.trim()){r=t[1]+u.slice(0,s).join("\n")+"\n";break}c+="\n"+d.slice(i)}else d.trim()||(o=!0),d.search(/[^ ]/)>=i?c+="\n"+d.slice(i):c+="\n"+d}h.loose||(l?h.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(c))&&(a="[ ] "!==n[0],c=c.replace(/^\[[ xX]\] +/,"")),h.items.push({type:"list_item",raw:r,task:!!n,checked:a,loose:!1,text:c}),h.raw+=r,e=e.slice(r.length)}h.items[h.items.length-1].raw=r.trimRight(),h.items[h.items.length-1].text=c.trimRight(),h.raw=h.raw.trimRight();var b=h.items.length;for(s=0;s<b;s++)this.lexer.state.top=!1,h.items[s].tokens=this.lexer.blockTokens(h.items[s].text,[]),h.items[s].tokens.some((function(e){return"space"===e.type}))&&(h.loose=!0,h.items[s].loose=!0);return h}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t){var r={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:R(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,a,i,s,o=r.align.length;for(n=0;n<o;n++)r.align[n]=/^ *-+: *$/.test(r.align[n])?"right":/^ *:-+: *$/.test(r.align[n])?"center":/^ *:-+ *$/.test(r.align[n])?"left":null;for(o=r.rows.length,n=0;n<o;n++)r.rows[n]=R(r.rows[n],r.header.length).map((function(e){return{text:e}}));for(o=r.header.length,a=0;a<o;a++)r.header[a].tokens=[],this.lexer.inlineTokens(r.header[a].text,r.header[a].tokens);for(o=r.rows.length,a=0;a<o;a++)for(s=r.rows[a],i=0;i<s.length;i++)s[i].tokens=[],this.lexer.inlineTokens(s[i].text,s[i].tokens);return r}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var r={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var r={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t){var r={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:P(t[1])}},t.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]):t[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=F(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var a=I(t[2],"()");if(a>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var s=t[2],o="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);l&&(s=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(r)?s.slice(1):s.slice(1,-1)),B(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0],this.lexer)}},t.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return B(r,n,r[0],this.lexer)}},t.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var a=n[1]||n[2]||"";if(!a||a&&(""===r||this.rules.inline.punctuation.exec(r))){var i,s,o=n[0].length-1,l=o,d=0,u="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);null!=(n=u.exec(t));)if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(s=i.length,n[3]||n[4])l+=s;else if(!((n[5]||n[6])&&o%3)||(o+s)%3){if(!((l-=s)>0)){if(s=Math.min(s,s+l+d),Math.min(o,s)%2){var c=e.slice(1,o+n.index+s);return{type:"em",raw:e.slice(0,o+n.index+s+1),text:c,tokens:this.lexer.inlineTokens(c,[])}}var m=e.slice(2,o+n.index+s-1);return{type:"strong",raw:e.slice(0,o+n.index+s+1),text:m,tokens:this.lexer.inlineTokens(m,[])}}}else d+=s}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),a=/^ /.test(r)&&/ $/.test(r);return n&&a&&(r=r.substring(1,r.length-1)),r=P(r,!0),{type:"codespan",raw:t[0],text:r}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},t.autolink=function(e,t){var r,n,a=this.rules.inline.autolink.exec(e);if(a)return n="@"===a[2]?"mailto:"+(r=P(this.options.mangle?t(a[1]):a[1])):r=P(a[1]),{type:"link",raw:a[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},t.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,a;if("@"===r[2])a="mailto:"+(n=P(this.options.mangle?t(r[0]):r[0]));else{var i;do{i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(i!==r[0]);n=P(r[0]),a="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t){var r,n=this.rules.inline.text.exec(e);if(n)return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):P(n[0]):n[0]:P(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}},e}(),L=E,O=C,M=k,j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:L,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};j.def=O(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}[.)])/,j.listItemStart=O(/^( *)(bull) */).replace("bull",j.bullet).getRegex(),j.list=O(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,j.html=O(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=O(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.blockquote=O(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal=M({},j),j.gfm=M({},j.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),j.gfm.table=O(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.pedantic=M({},j.normal,{html:O("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:L,paragraph:O(j.normal._paragraph).replace("hr",j.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:L,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:L,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};_.punctuation=O(_.punctuation).replace(/punctuation/g,_._punctuation).getRegex(),_.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,_.escapedEmSt=/\\\*|\\_/g,_._comment=O(j._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),_.emStrong.lDelim=O(_.emStrong.lDelim).replace(/punct/g,_._punctuation).getRegex(),_.emStrong.rDelimAst=O(_.emStrong.rDelimAst,"g").replace(/punct/g,_._punctuation).getRegex(),_.emStrong.rDelimUnd=O(_.emStrong.rDelimUnd,"g").replace(/punct/g,_._punctuation).getRegex(),_._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,_.autolink=O(_.autolink).replace("scheme",_._scheme).replace("email",_._email).getRegex(),_._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_.tag=O(_.tag).replace("comment",_._comment).replace("attribute",_._attribute).getRegex(),_._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,_._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_.link=O(_.link).replace("label",_._label).replace("href",_._href).replace("title",_._title).getRegex(),_.reflink=O(_.reflink).replace("label",_._label).getRegex(),_.reflinkSearch=O(_.reflinkSearch,"g").replace("reflink",_.reflink).replace("nolink",_.nolink).getRegex(),_.normal=M({},_),_.pedantic=M({},_.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:O(/^!?\[(label)\]\((.*?)\)/).replace("label",_._label).getRegex(),reflink:O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_._label).getRegex()}),_.gfm=M({},_.normal,{escape:O(_.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),_.gfm.url=O(_.gfm.url,"i").replace("email",_.gfm._extended_email).getRegex(),_.breaks=M({},_.gfm,{br:O(_.br).replace("{2,}","*").getRegex(),text:O(_.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var V={block:j,inline:_},G=N,H=n.exports.defaults,W=V.block,z=V.inline,U=S;function Z(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function J(e){var t,r,n="",a=e.length;for(t=0;t<a;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}var X=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new G,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:W.normal,inline:z.normal};this.options.pedantic?(t.block=W.pedantic,t.inline=z.pedantic):this.options.gfm&&(t.block=W.gfm,t.inline=this.options.breaks?z.breaks:z.gfm),this.tokenizer.rules=t}t.lex=function(e,r){return new t(r).lex(e)},t.lexInline=function(e,r){return new t(r).inlineTokens(e)};var r,n,a,i=t.prototype;return i.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},i.blockTokens=function(e,t){var r,n,a,i,s=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call({lexer:s},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(a=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;s.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(a)))n=t[t.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),i=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){var o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}return this.state.top=!0,t},i.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},i.inlineTokens=function(e,t){var r,n,a,i=this;void 0===t&&(t=[]);var s,o,l,d=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(d));)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,s.index)+"["+U("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,s.index)+"["+U("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,s.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(l=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call({lexer:i},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,d,l))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,J))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,J))){if(a=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;i.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(a,Z))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),o=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(r.raw.length),t.push(r);return t},r=t,a=[{key:"rules",get:function(){return{block:W,inline:z}}}],(n=null)&&e(r.prototype,n),a&&e(r,a),t}(),Y=n.exports.defaults,Q=D,K=x,ee=function(){function e(e){this.options=e||Y}var t=e.prototype;return t.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var a=this.options.highlight(e,n);null!=a&&a!==e&&(r=!0,e=a)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+K(n,!0)+'">'+(r?e:K(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:K(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,r){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+K(e)+'"';return t&&(n+=' title="'+t+'"'),n+">"+r+"</a>"},t.image=function(e,t,r){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+(this.options.xhtml?"/>":">")},t.text=function(e){return e},e}(),te=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),re=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),ne=ee,ae=te,ie=re,se=n.exports.defaults,oe=q,le=X,de=function(){function e(e){this.options=e||se,this.options.renderer=this.options.renderer||new ne,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ae,this.slugger=new ie}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var r,n,a,i,s,o,l,d,u,c,m,p,h,f,g,b,v,y,w,$="",x=e.length;for(r=0;r<x;r++)if(c=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(w=this.options.extensions.renderers[c.type].call({parser:this},c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":$+=this.renderer.hr();continue;case"heading":$+=this.renderer.heading(this.parseInline(c.tokens),c.depth,oe(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":$+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(d="",l="",i=c.header.length,n=0;n<i;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(d+=this.renderer.tablerow(l),u="",i=c.rows.length,n=0;n<i;n++){for(l="",s=(o=c.rows[n]).length,a=0;a<s;a++)l+=this.renderer.tablecell(this.parseInline(o[a].tokens),{header:!1,align:c.align[a]});u+=this.renderer.tablerow(l)}$+=this.renderer.table(d,u);continue;case"blockquote":u=this.parse(c.tokens),$+=this.renderer.blockquote(u);continue;case"list":for(m=c.ordered,p=c.start,h=c.loose,i=c.items.length,u="",n=0;n<i;n++)b=(g=c.items[n]).checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(b),h?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),u+=this.renderer.listitem(f,v,b);$+=this.renderer.list(u,m,p);continue;case"html":$+=this.renderer.html(c.text);continue;case"paragraph":$+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(u=c.tokens?this.parseInline(c.tokens):c.text;r+1<x&&"text"===e[r+1].type;)u+="\n"+((c=e[++r]).tokens?this.parseInline(c.tokens):c.text);$+=t?this.renderer.paragraph(u):u;continue;default:var q='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(q);throw new Error(q)}else $+=w||"";return $},t.parseInline=function(e,t){t=t||this.renderer;var r,n,a,i="",s=e.length;for(r=0;r<s;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(a=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;case"text":i+=t.text(n.text);break;default:var o='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}else i+=a||"";return i},e}(),ue=N,ce=ee,me=te,pe=re,he=k,fe=A,ge=x,be=n.exports.getDefaults,ve=n.exports.changeDefaults,ye=n.exports.defaults;function we(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),t=he({},we.defaults,t||{}),fe(t),r){var n,a=t.highlight;try{n=le.lex(e,t)}catch(e){return r(e)}var i=function(e){var i;if(!e)try{t.walkTokens&&we.walkTokens(n,t.walkTokens),i=de.parse(n,t)}catch(t){e=t}return t.highlight=a,e?r(e):r(null,i)};if(!a||a.length<3)return i();if(delete t.highlight,!n.length)return i();var s=0;return we.walkTokens(n,(function(e){"code"===e.type&&(s++,setTimeout((function(){a(e.text,e.lang,(function(t,r){if(t)return i(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0==--s&&i()}))}),0))})),void(0===s&&i())}try{var o=le.lex(e,t);return t.walkTokens&&we.walkTokens(o,t.walkTokens),de.parse(o,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ge(e.message+"",!0)+"</pre>";throw e}}return we.options=we.setOptions=function(e){return he(we.defaults,e),ve(we.defaults),we},we.getDefaults=be,we.defaults=ye,we.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a,i=he.apply(void 0,[{}].concat(r)),s=we.defaults.extensions||{renderers:{},childTokens:{}};r.forEach((function(t){if(t.extensions&&(a=!0,t.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=s.renderers?s.renderers[e.name]:null;s.renderers[e.name]=t?function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];var i=e.renderer.apply(this,n);return!1===i&&(i=t.apply(this,n)),i}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");s[e.level]?s[e.level].unshift(e.tokenizer):s[e.level]=[e.tokenizer],e.start&&("block"===e.level?s.startBlock?s.startBlock.push(e.start):s.startBlock=[e.start]:"inline"===e.level&&(s.startInline?s.startInline.push(e.start):s.startInline=[e.start]))}e.childTokens&&(s.childTokens[e.name]=e.childTokens)}))),t.renderer&&function(){var e=we.defaults.renderer||new ce,r=function(r){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=t.renderer[r].apply(e,i);return!1===o&&(o=n.apply(e,i)),o}};for(var n in t.renderer)r(n);i.renderer=e}(),t.tokenizer&&function(){var e=we.defaults.tokenizer||new ue,r=function(r){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=t.tokenizer[r].apply(e,i);return!1===o&&(o=n.apply(e,i)),o}};for(var n in t.tokenizer)r(n);i.tokenizer=e}(),t.walkTokens){var r=we.defaults.walkTokens;i.walkTokens=function(n){t.walkTokens.call(e,n),r&&r(n)}}a&&(i.extensions=s),we.setOptions(i)}))},we.walkTokens=function(e,t){for(var n,a=function(){var e=n.value;switch(t(e),e.type){case"table":for(var a,i=r(e.header);!(a=i()).done;)we.walkTokens(a.value.tokens,t);for(var s,o=r(e.rows);!(s=o()).done;)for(var l,d=r(s.value);!(l=d()).done;)we.walkTokens(l.value.tokens,t);break;case"list":we.walkTokens(e.items,t);break;default:we.defaults.extensions&&we.defaults.extensions.childTokens&&we.defaults.extensions.childTokens[e.type]?we.defaults.extensions.childTokens[e.type].forEach((function(r){we.walkTokens(e[r],t)})):e.tokens&&we.walkTokens(e.tokens,t)}},i=r(e);!(n=i()).done;)a()},we.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=he({},we.defaults,t||{}),fe(t);try{var r=le.lexInline(e,t);return t.walkTokens&&we.walkTokens(r,t.walkTokens),de.parseInline(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ge(e.message+"",!0)+"</pre>";throw e}},we.Parser=de,we.parser=de.parse,we.Renderer=ce,we.TextRenderer=me,we.Lexer=le,we.lexer=le.lex,we.Tokenizer=ue,we.Slugger=pe,we.parse=we,we}()}));function Md(e){const[t,r]=i(e),[n,a]=i(e);return{states:{previewTemplate:n,editedTemplate:t},callbacks:{setEditedTemplate:r,setPreviewTemplate:a}}}function jd(t){const{states:r,callbacks:n,readme:a}=t;return[e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>n.setEditedTemplate(e.target.value)},r.editedTemplate),e("button",{onClick:()=>n.setPreviewTemplate(r.editedTemplate)},"Update Preview"),a?e("details",null,e("summary",null,"Props readme"),e("div",{innerHTML:Od(a)})):"",e("div",{innerHTML:r.previewTemplate})]}function _d({callbacks:t,states:r,template:n}){return e("div",null,e("button",{onClick:()=>t.setPreviewTemplate(r.editedTemplate)},"Update Preview"),e("button",{style:{marginLeft:"10px"},onClick:()=>t.setPreviewTemplate(n)},"Preview Dashboard"))}function Vd(t){const{states:r,callbacks:n}=t;return e("div",{style:{height:"50vh"}},e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>n.setEditedTemplate(e.target.value)},r.editedTemplate),e(_d,{states:r,callbacks:n,template:t.template}),e("h2",null,"Navigation"),e("div",{style:{display:"grid",gridTemplateColumns:"repeat(9, 80px)",gridGap:"10px"}},e("button",{onClick:()=>C.push("/")},"Dashboard"),t.leadSubmit&&e("button",{onClick:()=>C.push("/refer")},"Submit a Referral"),e("button",{onClick:()=>C.push("/activity")},"Activity"),e("button",{onClick:()=>C.push("/editProfile")},"Edit Profile"),e("button",{onClick:()=>C.push("/login")},"Login"),e("button",{onClick:()=>C.push("/register")},"Register"),e("button",{onClick:()=>C.push("/emailVerification")},"Email Verification"),e("button",{onClick:()=>C.push("/verifyEmail")},"Verify Email"),e("button",{onClick:()=>C.push("/forgotPassword")},"Forgot Password"),e("button",{onClick:()=>C.push("/resetPassword")},"Reset Password")),e("br",null),e("div",{innerHTML:r.previewTemplate}))}const Gd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type="p/referral-program/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n');return e(Vd,{states:t,callbacks:r,template:'<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name\r\n fallback="Anonymous User"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium="twitter"\r\n size="medium"\r\n pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium="facebook"\r\n size="medium"\r\n pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n'})})),Hd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program-1">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-program-menu>\r\n <sl-menu-item value="referral-program-1"\r\n >Referral Program 1</sl-menu-item\r\n >\r\n <sl-menu-item value="referral-program-2"\r\n >Referral Program 2</sl-menu-item\r\n >\r\n </sqm-program-menu>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqb-program-switch>\r\n <template program-id="referral-program-1">\r\n <sqb-widget\r\n widget-type="p/referral-program-1/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n <template program-id="referral-program-2">\r\n <sqb-widget\r\n widget-type="p/referral-program-2/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n </sqb-program-switch>\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile></sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n');return e(Vd,{states:t,callbacks:r,template:'<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program-1">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-program-menu>\r\n <sl-menu-item value="referral-program-1"\r\n >Referral Program 1</sl-menu-item\r\n >\r\n <sl-menu-item value="referral-program-2"\r\n >Referral Program 2</sl-menu-item\r\n >\r\n </sqm-program-menu>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name\r\n fallback="Anonymous User"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium="twitter"\r\n size="medium"\r\n pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium="facebook"\r\n size="medium"\r\n pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n'})})),Wd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/refer"\r\n icon="inbox"\r\n label="Submit A Lead"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type="p/referral-program/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/refer">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-referral-iframe></sqm-referral-iframe>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n');return e(Vd,{states:t,callbacks:r,template:'<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/refer"\r\n icon="inbox"\r\n label="Submit A Lead"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name\r\n fallback="Anonymous User"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium="twitter"\r\n size="medium"\r\n pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium="facebook"\r\n size="medium"\r\n pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/refer">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-referral-iframe></sqm-referral-iframe>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n',leadSubmit:!0})})),zd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-hero background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80">\r\n <sqm-portal-login></sqm-portal-login>\r\n</sqm-hero>\r\n');return e(jd,{states:t,callbacks:r,readme:'# sqm-portal-login\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| --------------------- | ----------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `"Email"` |\r\n| `forgotPasswordLabel` | `forgot-password-label` | | `string` | `"Forgot Password?"` |\r\n| `nextPage` | `next-page` | | `string` | `"/"` |\r\n| `pageLabel` | `page-label` | | `string` | `"Sign in to your account"` |\r\n| `passwordLabel` | `password-label` | | `string` | `"Password"` |\r\n| `registerLabel` | `register-label` | | `string` | `"Register"` |\r\n| `submitLabel` | `submit-label` | | `string` | `"Sign In"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-login --\x3e sqm-form-message\r\n sqm-stencilbook --\x3e sqm-portal-login\r\n style sqm-portal-login fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Ud=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-hero background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n</sqm-hero>\r\n');return e(jd,{states:t,callbacks:r,readme:'# sqm-portal-forgot-password\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------- | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `"Email"` |\r\n| `submitLabel` | `submit-label` | | `string` | `"Request Password Reset"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-forgot-password --\x3e sqm-form-message\r\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Zd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n>\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n</sqm-hero>\r\n');return e(jd,{states:t,callbacks:r,readme:'# sqm-portal-register\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------------------- | ---------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `"Confirm Password"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; refs?: { formRef: any; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `"Email"` |\r\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\r\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\r\n| `loginLabel` | `login-label` | | `string` | `"Sign in"` |\r\n| `nextPage` | `next-page` | | `string` | `"/"` |\r\n| `pageLabel` | `page-label` | | `string` | `"Register"` |\r\n| `passwordLabel` | `password-label` | | `string` | `"Password"` |\r\n| `submitLabel` | `submit-label` | | `string` | `"Register"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-register --\x3e sqm-form-message\r\n sqm-portal-register --\x3e sqm-password-field\r\n sqm-stencilbook --\x3e sqm-portal-register\r\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Jd=ds((()=>{const{states:t,callbacks:r}=Md(Ld);return e(jd,{states:t,callbacks:r})})),Xd=ds((()=>{const{states:t,callbacks:r}=Md("<sqm-referral-iframe></sqm-referral-iframe>\r\n");return e(jd,{states:t,callbacks:r,readme:'# sqm-referral-iframe\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------- | --------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |\r\n| `demoData` | -- | | `{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }` | `undefined` |\r\n| `iframeHeight` | `iframe-height` | | `string` | `"100%"` |\r\n| `iframeSrc` | `iframe-src` | | `string` | `undefined` |\r\n| `iframeWidth` | `iframe-width` | | `string` | `"100%"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-stencilbook --\x3e sqm-referral-iframe\r\n style sqm-referral-iframe fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Yd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n></sqm-portal-protected-route>\r\n<sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large">\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n></sqm-portal-container>\r\n');return e(jd,{states:t,callbacks:r})})),Qd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n></sqm-portal-protected-route>\r\n<sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider domain="https://managed-identity.saasquatch.com">\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n</sqm-portal-container>\r\n');return e(jd,{states:t,callbacks:r,readme:'# sqm-portal-profile\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------ | --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\r\n| `countrytext` | `countrytext` | | `string` | `"Country"` |\r\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\r\n| `editProfileHeader` | `edit-profile-header` | | `string` | `"Edit your profile"` |\r\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `"Personal Information"` |\r\n| `emailtext` | `emailtext` | | `string` | `"Email"` |\r\n| `firstnametext` | `firstnametext` | | `string` | `"First Name"` |\r\n| `lastnametext` | `lastnametext` | | `string` | `"Last Name"` |\r\n| `showCountry` | `show-country` | | `boolean` | `true` |\r\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `"Submit Changes"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-profile --\x3e sqm-form-message\r\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Kd=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-portal-reset-password confirm-password="true"></sqm-portal-reset-password>\r\n');return e(jd,{states:t,callbacks:r,readme:'# sqm-portal-reset-password\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| --------------------------- | ------------------------------ | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordFieldLabel` | `confirm-password-field-label` | | `string` | `"Confirm Password"` |\r\n| `continueButtonText` | `continue-button-text` | Displayed after a successful password reset | `string` | `"Continue"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; }; }; }` | `undefined` |\r\n| `nextPage` | `next-page` | | `string` | `"/"` |\r\n| `passwordFieldLabel` | `password-field-label` | | `string` | `"New Password"` |\r\n| `passwordResetHeader` | `password-reset-header` | Displayed after a successful password reset | `string` | `"Password reset"` |\r\n| `resetPasswordButtonText` | `reset-password-button-text` | | `string` | `"Reset Password"` |\r\n| `resetPasswordHeader` | `reset-password-header` | | `string` | `"Reset your password"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-reset-password --\x3e sqm-form-message\r\n sqm-portal-reset-password --\x3e sqm-password-field\r\n style sqm-portal-reset-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),eu=ds((()=>{const{states:t,callbacks:r}=Md('<sqm-portal-protected-route redirect-to="/login"></sqm-portal-protected-route>\r\n<sqm-portal-email-verification></sqm-portal-email-verification>\r\n');return e(jd,{states:t,callbacks:r,readme:'# sqm-portal-email-verification\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------- | --------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; }; }` | `undefined` |\r\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `"Verify your email"` |\r\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `"Re-send Email"` |\r\n| `verifyMessage` | `verify-message` | | `string` | `"A verification email was sent to {email}. Please verify your email to continue to the portal."` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-email-verification --\x3e sqm-form-message\r\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),tu=ds((()=>{const{states:t,callbacks:r}=Md("<sqm-portal-verify-email></sqm-portal-verify-email>\r\n");return e(jd,{states:t,callbacks:r,readme:'# sqm-portal-verify-email\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ---------- | ----------- | ----------- | ---------------------------------------------------------------------------------------------------- | ----------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\r\n| `nextPage` | `next-page` | | `string` | `"/"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-verify-email --\x3e sqm-form-message\r\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),ru=ds((()=>e("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:Ld}}}))),nu=ds((()=>{const{states:t,callbacks:r}=Md('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html\r\n xmlns="http://www.w3.org/1999/xhtml"\r\n xmlns:o="urn:schemas-microsoft-com:office:office"\r\n xmlns:v="urn:schemas-microsoft-com:vml"\r\n>\r\n <head>\r\n \x3c!--[if gte mso 9\r\n ]><xml\r\n ><o:OfficeDocumentSettings\r\n ><o:AllowPNG /><o:PixelsPerInch\r\n >96</o:PixelsPerInch\r\n ></o:OfficeDocumentSettings\r\n ></xml\r\n ><!\r\n [endif]--\x3e\r\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\r\n <meta content="width=device-width" name="viewport" />\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n <meta content="IE=edge" http-equiv="X-UA-Compatible" />\r\n \x3c!--<![endif]--\x3e\r\n <title></title>\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n \x3c!--<![endif]--\x3e\r\n <style type="text/css">\r\n body {\r\n margin: 0;\r\n padding: 0;\r\n }\r\n\r\n table,\r\n td,\r\n tr {\r\n vertical-align: top;\r\n border-collapse: collapse;\r\n }\r\n\r\n * {\r\n line-height: inherit;\r\n }\r\n\r\n a[x-apple-data-detectors="true"] {\r\n color: inherit !important;\r\n text-decoration: none !important;\r\n }\r\n </style>\r\n <style id="media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .block-grid,\r\n .col {\r\n min-width: 320px !important;\r\n max-width: 100% !important;\r\n display: block !important;\r\n }\r\n\r\n .block-grid {\r\n width: 100% !important;\r\n }\r\n\r\n .col {\r\n width: 100% !important;\r\n }\r\n\r\n .col_cont {\r\n margin: 0 auto;\r\n }\r\n\r\n img.fullwidth,\r\n img.fullwidthOnMobile {\r\n max-width: 100% !important;\r\n }\r\n\r\n .no-stack .col {\r\n min-width: 0 !important;\r\n display: table-cell !important;\r\n }\r\n\r\n .no-stack.two-up .col {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num2 {\r\n width: 16.6% !important;\r\n }\r\n\r\n .no-stack .col.num3 {\r\n width: 25% !important;\r\n }\r\n\r\n .no-stack .col.num4 {\r\n width: 33% !important;\r\n }\r\n\r\n .no-stack .col.num5 {\r\n width: 41.6% !important;\r\n }\r\n\r\n .no-stack .col.num6 {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num7 {\r\n width: 58.3% !important;\r\n }\r\n\r\n .no-stack .col.num8 {\r\n width: 66.6% !important;\r\n }\r\n\r\n .no-stack .col.num9 {\r\n width: 75% !important;\r\n }\r\n\r\n .no-stack .col.num10 {\r\n width: 83.3% !important;\r\n }\r\n\r\n .video-block {\r\n max-width: none !important;\r\n }\r\n\r\n .mobile_hide {\r\n min-height: 0px;\r\n max-height: 0px;\r\n max-width: 0px;\r\n display: none;\r\n overflow: hidden;\r\n font-size: 0px;\r\n }\r\n\r\n .desktop_hide {\r\n display: block !important;\r\n max-height: none !important;\r\n }\r\n }\r\n </style>\r\n <style id="icon-media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .icons-inner {\r\n text-align: center;\r\n }\r\n\r\n .icons-inner td {\r\n margin: 0 auto;\r\n }\r\n }\r\n </style>\r\n </head>\r\n <body\r\n class="clean-body"\r\n style="\r\n margin: 0;\r\n padding: 0;\r\n -webkit-text-size-adjust: 100%;\r\n background-color: #ffffff;\r\n "\r\n >\r\n \x3c!--[if IE]><div class="ie-browser"><![endif]--\x3e\r\n <table\r\n bgcolor="#FFFFFF"\r\n cellpadding="0"\r\n cellspacing="0"\r\n class="nl-container"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n min-width: 320px;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n background-color: #ffffff;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tbody>\r\n <tr style="vertical-align: top" valign="top">\r\n <td style="word-break: break-word; vertical-align: top" valign="top">\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#FFFFFF"><![endif]--\x3e\r\n <div style="background-color: transparent">\r\n <div\r\n class="block-grid"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n overflow-wrap: break-word;\r\n word-wrap: break-word;\r\n word-break: break-word;\r\n margin: 0 auto;\r\n background-color: transparent;\r\n "\r\n >\r\n <div\r\n style="\r\n border-collapse: collapse;\r\n display: table;\r\n width: 100%;\r\n background-color: transparent;\r\n "\r\n >\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px"><tr class="layout-full-width" style="background-color:transparent"><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]><td align="center" width="500" style="background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]--\x3e\r\n <div\r\n class="col num12"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n display: table-cell;\r\n vertical-align: top;\r\n width: 500px;\r\n "\r\n >\r\n <div class="col_cont" style="width: 100% !important">\r\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\r\n <div\r\n style="\r\n border-top: 0px solid transparent;\r\n border-left: 0px solid transparent;\r\n border-bottom: 0px solid transparent;\r\n border-right: 0px solid transparent;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n padding-right: 0px;\r\n padding-left: 0px;\r\n "\r\n >\r\n \x3c!--<![endif]--\x3e\r\n <table\r\n cellpadding="0"\r\n cellspacing="0"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tr style="vertical-align: top" valign="top">\r\n <td\r\n align="center"\r\n style="\r\n word-break: break-word;\r\n vertical-align: top;\r\n padding-bottom: 20px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 10px;\r\n text-align: center;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <h1\r\n style="\r\n color: #444445;\r\n direction: ltr;\r\n font-family: \'Helvetica Neue\', Helvetica,\r\n Arial, sans-serif;\r\n font-size: 20px;\r\n font-weight: normal;\r\n letter-spacing: normal;\r\n line-height: 120%;\r\n text-align: left;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <strong>Reset your password</strong>\r\n </h1>\r\n </td>\r\n </tr>\r\n </table>\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]--\x3e\r\n <div\r\n style="\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.8;\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n <div\r\n class="txtTinyMce-wrapper"\r\n style="\r\n font-size: 14px;\r\n line-height: 1.8;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 25px;\r\n "\r\n >\r\n <p\r\n style="\r\n margin: 0;\r\n font-size: 14px;\r\n line-height: 1.8;\r\n word-break: break-word;\r\n mso-line-height-alt: 25px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <span style="font-size: 14px"\r\n >We received a request to reset your password.\r\n Click the button below to reset your\r\n password.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n <div\r\n align="center"\r\n class="button-container"\r\n style="\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href={{validationLink}} style="height:31.5pt;width:390pt;v-text-anchor:middle;" arcsize="12%" stroke="false" fillcolor="#2270ee"><w:anchorlock/><v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial, sans-serif; font-size:14px"><!\r\n [endif]--\x3e<a\r\n href="{{validationLink}}"\r\n target="_blank"\r\n style="\r\n -webkit-text-size-adjust: none;\r\n text-decoration: none;\r\n display: block;\r\n color: #ffffff;\r\n background-color: #2270ee;\r\n border-radius: 5px;\r\n -webkit-border-radius: 5px;\r\n -moz-border-radius: 5px;\r\n width: 100%;\r\n width: calc(100% - 2px);\r\n border-top: 1px solid #2270ee;\r\n border-right: 1px solid #2270ee;\r\n border-bottom: 1px solid #2270ee;\r\n border-left: 1px solid #2270ee;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n font-family: \'Helvetica Neue\', Helvetica, Arial,\r\n sans-serif;\r\n text-align: center;\r\n mso-border-alt: none;\r\n word-break: keep-all;\r\n "\r\n target="_blank"\r\n ><span\r\n style="\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n font-size: 14px;\r\n display: inline-block;\r\n letter-spacing: undefined;\r\n "\r\n ><span\r\n style="\r\n font-size: 16px;\r\n line-height: 2;\r\n word-break: break-word;\r\n mso-line-height-alt: 32px;\r\n "\r\n ><span\r\n style="font-size: 14px; line-height: 28px"\r\n >Reset Password</span\r\n ></span\r\n ></span\r\n ></a\r\n >\r\n \x3c!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]--\x3e\r\n </div>\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 15px; padding-bottom: 15px; font-family: Arial, sans-serif"><![endif]--\x3e\r\n <div\r\n style="\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.2;\r\n padding-top: 15px;\r\n padding-right: 10px;\r\n padding-bottom: 15px;\r\n padding-left: 10px;\r\n "\r\n >\r\n <div\r\n class="txtTinyMce-wrapper"\r\n style="\r\n font-size: 14px;\r\n line-height: 1.2;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 17px;\r\n "\r\n >\r\n <p\r\n style="\r\n margin: 0;\r\n font-size: 12px;\r\n line-height: 1.2;\r\n word-break: break-word;\r\n mso-line-height-alt: 14px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <span style="font-size: 12px"\r\n >If you didn\'t request a password reset please\r\n ignore this email. Your password will not\r\n change.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n \x3c!--[if mso]></td></tr></table><![endif]--\x3e\r\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\r\n </div>\r\n \x3c!--<![endif]--\x3e\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]--\x3e\r\n </div>\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n \x3c!--[if (IE)]></div><![endif]--\x3e\r\n </body>\r\n</html>');return e(jd,{states:t,callbacks:r})})),au=ds((()=>{const{states:t,callbacks:r}=Md('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html\r\n xmlns="http://www.w3.org/1999/xhtml"\r\n xmlns:o="urn:schemas-microsoft-com:office:office"\r\n xmlns:v="urn:schemas-microsoft-com:vml"\r\n>\r\n <head>\r\n \x3c!--[if gte mso 9\r\n ]><xml\r\n ><o:OfficeDocumentSettings\r\n ><o:AllowPNG /><o:PixelsPerInch\r\n >96</o:PixelsPerInch\r\n ></o:OfficeDocumentSettings\r\n ></xml\r\n ><!\r\n [endif]--\x3e\r\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\r\n <meta content="width=device-width" name="viewport" />\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n <meta content="IE=edge" http-equiv="X-UA-Compatible" />\r\n \x3c!--<![endif]--\x3e\r\n <title></title>\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n \x3c!--<![endif]--\x3e\r\n <style type="text/css">\r\n body {\r\n margin: 0;\r\n padding: 0;\r\n }\r\n\r\n table,\r\n td,\r\n tr {\r\n vertical-align: top;\r\n border-collapse: collapse;\r\n }\r\n\r\n * {\r\n line-height: inherit;\r\n }\r\n\r\n a[x-apple-data-detectors="true"] {\r\n color: inherit !important;\r\n text-decoration: none !important;\r\n }\r\n </style>\r\n <style id="media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .block-grid,\r\n .col {\r\n min-width: 320px !important;\r\n max-width: 100% !important;\r\n display: block !important;\r\n }\r\n\r\n .block-grid {\r\n width: 100% !important;\r\n }\r\n\r\n .col {\r\n width: 100% !important;\r\n }\r\n\r\n .col_cont {\r\n margin: 0 auto;\r\n }\r\n\r\n img.fullwidth,\r\n img.fullwidthOnMobile {\r\n max-width: 100% !important;\r\n }\r\n\r\n .no-stack .col {\r\n min-width: 0 !important;\r\n display: table-cell !important;\r\n }\r\n\r\n .no-stack.two-up .col {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num2 {\r\n width: 16.6% !important;\r\n }\r\n\r\n .no-stack .col.num3 {\r\n width: 25% !important;\r\n }\r\n\r\n .no-stack .col.num4 {\r\n width: 33% !important;\r\n }\r\n\r\n .no-stack .col.num5 {\r\n width: 41.6% !important;\r\n }\r\n\r\n .no-stack .col.num6 {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num7 {\r\n width: 58.3% !important;\r\n }\r\n\r\n .no-stack .col.num8 {\r\n width: 66.6% !important;\r\n }\r\n\r\n .no-stack .col.num9 {\r\n width: 75% !important;\r\n }\r\n\r\n .no-stack .col.num10 {\r\n width: 83.3% !important;\r\n }\r\n\r\n .video-block {\r\n max-width: none !important;\r\n }\r\n\r\n .mobile_hide {\r\n min-height: 0px;\r\n max-height: 0px;\r\n max-width: 0px;\r\n display: none;\r\n overflow: hidden;\r\n font-size: 0px;\r\n }\r\n\r\n .desktop_hide {\r\n display: block !important;\r\n max-height: none !important;\r\n }\r\n }\r\n </style>\r\n <style id="icon-media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .icons-inner {\r\n text-align: center;\r\n }\r\n\r\n .icons-inner td {\r\n margin: 0 auto;\r\n }\r\n }\r\n </style>\r\n </head>\r\n <body\r\n class="clean-body"\r\n style="\r\n margin: 0;\r\n padding: 0;\r\n -webkit-text-size-adjust: 100%;\r\n background-color: #ffffff;\r\n "\r\n >\r\n \x3c!--[if IE]><div class="ie-browser"><![endif]--\x3e\r\n <table\r\n bgcolor="#FFFFFF"\r\n cellpadding="0"\r\n cellspacing="0"\r\n class="nl-container"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n min-width: 320px;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n background-color: #ffffff;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tbody>\r\n <tr style="vertical-align: top" valign="top">\r\n <td style="word-break: break-word; vertical-align: top" valign="top">\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#FFFFFF"><![endif]--\x3e\r\n <div style="background-color: transparent">\r\n <div\r\n class="block-grid"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n overflow-wrap: break-word;\r\n word-wrap: break-word;\r\n word-break: break-word;\r\n margin: 0 auto;\r\n background-color: transparent;\r\n "\r\n >\r\n <div\r\n style="\r\n border-collapse: collapse;\r\n display: table;\r\n width: 100%;\r\n background-color: transparent;\r\n "\r\n >\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px"><tr class="layout-full-width" style="background-color:transparent"><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]><td align="center" width="500" style="background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]--\x3e\r\n <div\r\n class="col num12"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n display: table-cell;\r\n vertical-align: top;\r\n width: 500px;\r\n "\r\n >\r\n <div class="col_cont" style="width: 100% !important">\r\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\r\n <div\r\n style="\r\n border-top: 0px solid transparent;\r\n border-left: 0px solid transparent;\r\n border-bottom: 0px solid transparent;\r\n border-right: 0px solid transparent;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n padding-right: 0px;\r\n padding-left: 0px;\r\n "\r\n >\r\n \x3c!--<![endif]--\x3e\r\n <table\r\n cellpadding="0"\r\n cellspacing="0"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tr style="vertical-align: top" valign="top">\r\n <td\r\n align="center"\r\n style="\r\n word-break: break-word;\r\n vertical-align: top;\r\n padding-bottom: 20px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 10px;\r\n text-align: center;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <h1\r\n style="\r\n color: #444445;\r\n direction: ltr;\r\n font-family: \'Helvetica Neue\', Helvetica,\r\n Arial, sans-serif;\r\n font-size: 20px;\r\n font-weight: normal;\r\n letter-spacing: normal;\r\n line-height: 120%;\r\n text-align: left;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <strong>Verify your email address</strong>\r\n </h1>\r\n </td>\r\n </tr>\r\n </table>\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]--\x3e\r\n <div\r\n style="\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.8;\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n <div\r\n class="txtTinyMce-wrapper"\r\n style="\r\n font-size: 14px;\r\n line-height: 1.8;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 25px;\r\n "\r\n >\r\n <p\r\n style="\r\n margin: 0;\r\n font-size: 14px;\r\n line-height: 1.8;\r\n word-break: break-word;\r\n mso-line-height-alt: 25px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <span style="font-size: 14px"\r\n >Thank you for signing up! Please click the button below\r\n to verify your email address.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n \x3c!--[if mso]></td></tr></table><![endif]--\x3e\r\n <div\r\n align="center"\r\n class="button-container"\r\n style="\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href={{validationLink}} style="height:31.5pt;width:390pt;v-text-anchor:middle;" arcsize="12%" stroke="false" fillcolor="#2270ee"><w:anchorlock/><v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial, sans-serif; font-size:14px"><!\r\n [endif]--\x3e<a\r\n href={{validationLink}}\r\n\t\t\t\t\t\t\ttarget="_blank"\r\n style="\r\n -webkit-text-size-adjust: none;\r\n text-decoration: none;\r\n display: block;\r\n color: #ffffff;\r\n background-color: #2270ee;\r\n border-radius: 5px;\r\n -webkit-border-radius: 5px;\r\n -moz-border-radius: 5px;\r\n width: 100%;\r\n width: calc(100% - 2px);\r\n border-top: 1px solid #2270ee;\r\n border-right: 1px solid #2270ee;\r\n border-bottom: 1px solid #2270ee;\r\n border-left: 1px solid #2270ee;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n font-family: \'Helvetica Neue\', Helvetica, Arial,\r\n sans-serif;\r\n text-align: center;\r\n mso-border-alt: none;\r\n word-break: keep-all;\r\n "\r\n target="_blank"\r\n ><span\r\n style="\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n font-size: 14px;\r\n display: inline-block;\r\n letter-spacing: undefined;\r\n "\r\n ><span\r\n style="\r\n font-size: 16px;\r\n line-height: 2;\r\n word-break: break-word;\r\n mso-line-height-alt: 32px;\r\n "\r\n ><span\r\n style="font-size: 14px; line-height: 28px"\r\n >Verify Email</span\r\n ></span\r\n ></span\r\n ></a\r\n >\r\n \x3c!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]--\x3e\r\n </div>\r\n \x3c!--<![endif]--\x3e\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]--\x3e\r\n </div>\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n \x3c!--[if (IE)]></div><![endif]--\x3e\r\n </body>\r\n</html>');return e(jd,{states:t,callbacks:r})})),iu=Object.freeze({__proto__:null,default:{title:"Templates / Portal"},DefaultPortal:Gd,MultiProgramPortal:Hd,LeadSubmitPortal:Wd,Login:zd,ForgotPassword:Ud,Register:Zd,Dashboard:Jd,LeadSubmitIframe:Xd,Activity:Yd,EditProfile:Qd,ResetPassword:Kd,EmailVerification:eu,EmailVerified:tu,Widget:ru,ResetPasswordEmail:nu,VerifyEmail:au}),su=ds((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"referral-program"},"Referral Program")))),ou=ds((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"referral-program"},"Referral Program"),e("sl-menu-item",{value:"partner-program"},"Partner Program")))),lu=ds((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"program1"},"Program 1"),e("sl-menu-item",{value:"program2"},"Program 2"),e("sl-menu-item",{value:"program3"},"Program 3"),e("sl-menu-item",{value:"program4"},"Program 4"),e("sl-menu-item",{value:"program5"},"Program 5")))),du=ds((()=>e("div",null,e("sqb-program-section",{"program-id":"Vacay-referral"},e("sqm-program-menu",null,e("sl-menu-item",{value:"Vacay-referral"},"Vacay-referral"),e("sl-menu-item",{value:"vacay-affiliates"},"vacay-affiliates")),e("sqb-program-switch",null,e("template",{"program-id":"Vacay-referral"},e("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:Ld}}})),e("template",{"program-id":"vacay-affiliates"},e("sqb-widget",{"widget-type":"p/vacay-affiliates/w/referrerWidget",demoData:{data:{html:Ld}}}))))))),uu=Object.freeze({__proto__:null,default:{title:"Program Menu"},OneProgram:su,TwoProgram:ou,FiveProgram:lu,ProgramMenuWithSwitch:du}),cu=Object.freeze({__proto__:null,default:{title:"Powered By"},Default:()=>e(ye,null),CustomColor:()=>e(ye,{color:"salmon"}),CustomWidthAndHeight:()=>e(ye,{width:300,height:50})}),mu={supportEmail:"support@example.com",supportText:"For program support, contact {email}",showPoweredBy:!0,poweredByLink:"https://saasquatch.com",paddingTop:"large",paddingRight:"large",paddingBottom:"large",paddingLeft:"large"},pu=Object.freeze({__proto__:null,default:{title:"Portal Footer",parameters:{scenario:'Feature: Portal Footer\r\n\r\n Background: A user is viewing the portal\r\n Given a hosted portal\r\n And a user is viewing the portal\r\n And the portal has a footer\r\n\r\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\r\n Given the footer has prop "terms-link" with value "https://example.com/terms"\r\n And prop "terms-text" with value "Terms and Conditions"\r\n And prop "faq-link" with value "https://example.com/FAQ"\r\n And prop "faq-text" with value "Visit FAQ"\r\n When a user clicks on the "Visit FAQ" link\r\n Then they will be redirected to "https://example.com/FAQ" in a new page\r\n When they go back to the portal\r\n And click on the "Terms and Conditions" link\r\n Then they will be redirected to "https://example.com/terms" in a new page\r\n\r\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\r\n Given the footer does not have <linkProp>\r\n But it <mayHave> <textProp> with <value>\r\n Then the <link> will not be shown in the footer\r\n Examples:\r\n | linkProp | mayHave | textProp | value | link |\r\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\r\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\r\n | terms-link | doesn\'t have | | | T&C Link |\r\n | faq-link | doesn\'t have | | | FAQ Link |\r\n\r\n Scenario Outline: The support email and text is configurable but has a default\r\n Given the footer <mayHave> <emailPropWithValue>\r\n And the footer <mayAlsoHave> <textPropWithValue>\r\n Then the footer\'s support email text is <renderedEmailText>\r\n And the email address will be a mailto link with <mailtoEmail>\r\n When the user clicks on the email address mailto Link\r\n Then the users preferred email client will open with a draft email to <mailtoEmail>\r\n Examples:\r\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\r\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\r\n | doesn\'t have | N/A | doesn\'t have | N/A | support@example.com | For program support, contact support@example.com |\r\n\r\n Scenario Outline: Powered by SaaSquatch is shown by default\r\n Given the footer <mayHaveProp> "show-powered-by" with <value>\r\n Then the powered by SaaSquatch image <mayBeShown>\r\n Examples:\r\n | mayHaveProp | value | mayBeShown |\r\n | has prop | true | is shown |\r\n | has prop | false | isn\'t shown |\r\n | has prop | test | is shown |\r\n | has prop | | is shown |\r\n | doesn\'t have prop | | is shown |\r\n\r\n Scenario: Powered By Saasquatch links out to "https://saasquatch.com"\r\n Given the footer has the powered by SaaSquatch image\r\n When a user clicks on it\r\n Then they will be redirected to "https://saasquatch.com" in a new page'}},DefaultFooter:()=>e(we,Object.assign({},mu)),FooterWithTerms:()=>e(we,Object.assign({},mu,{termsLink:"https://example.com",termsText:"Terms and Conditions"})),FooterWithFAQ:()=>e(we,Object.assign({},mu,{faqLink:"https://example.com",faqText:"FAQ"})),FooterWithTermsAndFAQ:()=>e(we,Object.assign({},mu,{termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ"})),FooterNoPoweredBy:()=>e(we,Object.assign({},mu,{termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ",showPoweredBy:!1}))}),hu=Object.freeze({__proto__:null,default:{title:"Hero Layout",parameters:{scenario:'Feature: Hero Unit\r\n\r\n Background: A portal with a hero unit exists\r\n Given a hosted portal\r\n And the portal has hero unit on the login page\r\n And a user is viewing the login page\r\n\r\n Scenario: The hero unit defaults to a single column layout\r\n Given a hero unit does not have a "columns" prop\r\n But the following html is wrapped by the hero unit\r\n """\r\n <sqm-portal-login></sqm-portal-login>\r\n <div slot="secondary-column">\r\n <h1 style="text-align:center">Get Referring!</h1>\r\n <p style="text-align:center">\r\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\r\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\r\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\r\n aliquip ex ea commodo consequat. Duis aute irure dolor in\r\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\r\n pariatur.\r\n </p>\r\n </div>\r\n """\r\n Then only a single column will be displayed\r\n And within it will be the login component\r\n\r\n Scenario Outline: The hero unit supports single or dual column layouts\r\n Given a hero unit with prop "columns" having <columnValue>\r\n And it wraps <html>\r\n Then the hero unit displays <columnValue> columns\r\n Examples:\r\n | columnValue | html |\r\n | 1 | <h1>Column 1!</h1> |\r\n | 2 | <h1>Column 1!</h1><div slot="secondary-column"><h1 style="text-align:center">Column 2!</h1></div> |\r\n\r\n Scenario: HTML to be displayed in the second column comes from the "secondary-column" slot\r\n Given a hero unit with "columns" "2"\r\n And the following html\r\n """\r\n <h1>Column 1!</h1>\r\n <div>\r\n <h1 style="text-align:center">Column 2!</h1>\r\n </div>\r\n """\r\n When the hero unit is rendered\r\n Then only one column is displayed with content\r\n And column 1 will contain the "Column 1!" text\r\n And column 1 will contain the "Column 2!" text\r\n When the div for column two is updated to have \'slot="secondary-column"\'\r\n Then the two columns are displayed with content\r\n And column 1 will contain the "Column 1!" text\r\n And column 2 will contain the "Column 2!" text\r\n\r\n Scenario Outline: A background for the hero unit can be set as an image or colour\r\n Given a hero unit with <backgroundPropValue>\r\n Then the background will be <background>\r\n Examples:\r\n | background | background |\r\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\r\n | LightSlateGrey | light slate grey |\r\n | #00FF00 | green |\r\n | rgb(128,0,128) | purple |\r\n\r\n Scenario Outline: Wrap Direction can be configured for mobile experiences\r\n Given a hero unit with the following HTML\r\n """\r\n <h1>Column 1!</h1>\r\n <div slot="secondary-column">\r\n <h1 style="text-align:center">Column 2!</h1>\r\n </div>\r\n """\r\n And prop "wrap-direction" has <value>\r\n When the window width is less than 600px\r\n Then the two columns will stack\r\n And <column> will be on top\r\n Examples:\r\n | value | column |\r\n | wrap | 1 |\r\n | wrap-reverse | 2 |\r\n | | 1 |'}},LoginOneColumn:()=>{const t={states:{columns:1,wrapDirection:"wrap",paddingSize:"large"},content:{primaryColumn:[e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("sqm-portal-login",null)]}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},LoginOneColumnWithColor:()=>{const t={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",background:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null)}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},LoginOneColumnWithImage:()=>{const t={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"},content:{primaryColumn:e("sqm-portal-login",null)}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginLargePadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"large",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginMediumPadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"medium",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginSmallPadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"small",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginNoPadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"none",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginReverseWrap:()=>{const t={states:{columns:2,wrapDirection:"wrap-reverse",background:"LightSlateGrey",paddingSize:"large",secondaryBackground:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"},content:{primaryColumn:e("sqm-portal-change-password",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginWithImgElement:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"large"},content:{primaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("sqm-portal-login",null)),secondaryColumn:e("div",null,e("img",{src:"https://images.unsplash.com/photo-1487528278747-ba99ed528ebc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80"}),e("p",null,"Pellentesque mauris urna, lacinia non turpis sed, pulvinar congue ligula. Sed mattis condimentum eros nec vulputate. Cras consectetur eget libero at viverra. Aliquam suscipit feugiat ante sit amet sagittis. Fusce pulvinar interdum odio ut dapibus. Nulla aliquet ultricies augue nec dignissim. Morbi vulputate hendrerit sem."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))}}),fu={data:{shareCode:"BOBBYREFER"},states:{content:{iframeSrc:"https://example.com",iframeHeight:"100%",iframeWidth:"100%"}}},gu=Object.freeze({__proto__:null,default:{title:"Referral Iframe",parameters:{scenario:'@owner:sam\r\n@author:sam\r\n\r\nFeature: Referral Iframe\r\n\r\n Used to provide an external form for submitting referral leads using the current user\'s referral code\r\n\r\n Background: A user is logged in\r\n Given there is a logged in user\r\n\r\n @motivating\r\n Scenario: Referral code is passed to the iframe as a query parameter\r\n Given the "iframe-src" is "https://example.com"\r\n And the user has navigated to "/refer"\r\n And the user\'s referral code is "BOBBYREFER"\r\n When the iframe content is loaded\r\n Then the iframe url will be "https://example.com?rsCode=BOBBYREFER"\r\n\r\n @ui\r\n Scenario Outline: The height and width of the iFrame can be controlled via props\r\n Given the "iframe-src" is "https://example.com"\r\n And the iframe content is 1000x1000\r\n And the "iframe-height" is set to <heightValue>\r\n And the "iframe-width" is set to <widthValue>\r\n Then the content of the iframe will be displayed with scrollbars\r\n And the dimension of the iFrame displayed will be 500x500\r\n When the "iframe-height" is set to <heightValue>\r\n And the "iframe-width" is set to <widthValue>\r\n Then the full content of the iframe will be displayed on the page\r\n And the dimension of the iFrame displayed will be 1000x1000\r\n Examples:\r\n | heightValue | widthValue |\r\n | 500px | 500px |\r\n | 50% | 50% |\r\n\r\n @minutae\r\n Scenario Outline: The iFrame will fail fast if a iFrame source isn\'t provided\r\n Given "iframe-src" <mayBeAnAttribute>\r\n And it <mayHaveValue>\r\n When a user views the referral iFrame component\r\n Then an alert with an error message is displayed in place of the iFrame\r\n And it has a details section\r\n When "More details" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n\r\n Examples:\r\n | mayBeAnAttribute | mayHaveValue |\r\n | is not an attribute | N/A |\r\n | is an attribute | "" |\r\n | is an attribute | |'}},ReferralIframe:()=>e("div",{style:{width:"1000px",height:"1000px"}},e(Or,Object.assign({},fu))),ReferralIframeError:()=>e("div",{style:{width:"1000px",height:"1000px"}},e("sqm-referral-iframe",null))}),bu={states:{validationErrors:void 0,content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}},vu={states:{validationErrors:{firstName:"Cannot be empty",lastName:"Cannot be empty"},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}},yu=Object.freeze({__proto__:null,default:{title:"Name Fields",parameters:{scenario:'@owner:sam\r\n@author:sam\r\n\r\nFeature: Name Fields\r\n\r\n Fields to be used to fill the first and last name of a user during registration\r\n\r\n Background:\r\n Given the current page is "/register"\r\n\r\n @motivating\r\n Scenario: Both first name and last name are required\r\n Given the email field has valid input\r\n And the password field has valid input\r\n And first name field is empty\r\n And last name field is empty\r\n When register is clicked\r\n Then the name fields will be highlighted in red\r\n And the error messages will say "Cannot be empty"\r\n\r\n @motivating\r\n Scenario: First and last name are upserted with the SaaSquatch user\r\n Given all fields have been filled with data\r\n | firstName | lastName | email | password |\r\n | Bob | Testerson | bob@example.com | SecurePassword1 |\r\n When register is clicked\r\n Then the email verification page will be loaded\r\n And the user will be upserted\r\n And the SaaSquatch user will contain data\r\n | firstName | lastName | email |\r\n | Bob | Testerson | bob@example.com |\r\n\r\n'}},NameFields:()=>e(xe,Object.assign({},bu)),NameFieldsWithErrors:()=>e(xe,Object.assign({},vu))}),wu={key:"",name:"",description:"",imageUrl:"",available:!0,unavailableReason:null,unavailableReasonCode:null,ruleType:"FIXED_GLOBAL_REWARD",sourceUnit:"POINT",sourceValue:10,prettySourceValue:"10 SaaSquatch Points",sourceMinValue:null,prettySourceMinValue:null,sourceMaxValue:null,prettySourceMaxValue:null,destinationMinValue:null,prettyDestinationMinValue:null,destinationMaxValue:null,prettyDestinationMaxValue:null,globalRewardKey:"",destinationUnit:null,steps:[]},$u={available:!1,unavailableReasonCode:"INSUFFICIENT_REDEEMABLE_CREDIT"},xu=e=>({imageUrl:e}),qu=e=>({description:e}),Cu=e=>({prettySourceValue:e}),Du=(e,t,r)=>({ruleType:"VARIABLE_CREDIT_REWARD",sourceMinValue:e,prettySourceMinValue:e+" "+r,sourceMaxValue:t,prettySourceMaxValue:t+" "+r}),Eu={...(ku=[{...wu,...qu("Free swag with a promo code"),...xu("https://i.imgur.com/Ds7M19I.png"),...Cu("40 SaaSquatch Points")},{...wu,...qu("Visa® Prepaid Card USD"),...xu("https://i.imgur.com/4s3q2zz.png"),...Du(20,80,"SaaSquatch Points")},{...wu,...qu("A very exclusive gift box"),...xu("https://i.imgur.com/XuiJi4l.png"),...Cu("30 SaaSquatch Points")},{...wu,...qu("$50 Store credit"),...xu("https://i.imgur.com/WkCMVSE.png"),...Cu("100 SaaSquatch Points")},{...wu,...qu("Variable amount of store credit"),...xu("https://i.imgur.com/Jn2fE0s.png"),...Du(20,100,"SaaSquatch Points")},{...wu,...$u,...qu("A very rare cactus"),...xu("https://i.imgur.com/CvCdpXc.png"),...Cu("2000 SaaSquatch Points")},{...wu,available:!1,unavailableReasonCode:"US_TAX",...qu("$1000 Store credit"),...xu("https://i.imgur.com/I9FCh9Z.png"),...Cu("2000 SaaSquatch Points")},{...wu,...$u,...qu("A holiday gift box"),...xu("https://i.imgur.com/HBJS1WH.png"),...Cu("100 SaaSquatch Points")}],{states:{content:null,redeemStage:"chooseReward",amount:0,exchangeError:!1,loading:!1,selectedItem:null,selectedStep:null},data:{exchangeList:ku},callbacks:{exchangeReward:null,openDrawer:null,setStage:null,setExchangeState:null,refs:null},refs:null})};var ku;const Au={states:{content:{text:{buttonText:"Exchange Rewards",ignored:!0}},redeemStage:"chooseAmount",amount:0,exchangeError:!1,loading:!1,selectedItem:{key:"r4",name:"Salmon Coins",description:"Points for Salmon Coins",imageUrl:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUWFRgWFRYYGRgZGh4cHBocHR4aHxwdGRwZHBwfHh4cIS4lHB4rHxoYJjgnKy8xNTU1GiQ7QD00Py40NTEBDAwMEA8QHhISHzQrJCs0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/AABEIAIABiQMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABAECAwUGBwj/xAA+EAABAwICBgYHBwQCAwAAAAABAAIRAyEEMQUSQVFhcQYTgZGhsQciMkJScvAUYoKSwdHhorLC8SMzFUNj/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAECAwT/xAAfEQEBAQEBAQEAAwEBAAAAAAAAARECEiExE0FRYQP/2gAMAwEAAhEDEQA/APZkREBERAREQEREBERAREQEREBERAREQERY6jw0EkgACSTYADMk7AgvVjHgzBBixgzBXmfSjpqapNLDuLaeTqgs58Zhl/Vbx28BnA0Lj3UXNcx0G0tmxHwkW1tvLhks3qRZHryqtdonSjK7dZtnCzmzJaf1HFbFWXUERFQREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBFSVqdNafoYVoNaoAT7LBdzvlaLxxyG0oNlUqBoLnEAASSTAAFySTkF5H0z6WHEuNKiSKANx7JqkXl20MFoHfsAidKemVTFeo31KPwAgl0ZF7hY7IaLA39aBHNsIO0cv34eaCVSeBlcnblb/FqnYatxz3WLhw+FnHMrVMfx7/MjyCkMI5znx+Y7flCx1NajqNGaUdTIex2qRYRkRuj3h+y9D0Lp2nXETq1APWb5xv5ZjxXj9Ovt8dsdmXIHmVKw+OIg62rGWqQIINvWs1vZJWeZeVuV7gi5Xoj0j+0g03kGowSSMnNkCTYAOkjK17cOqXSXWBERUEREBERAREQEREBERAREQEREBERBRFjq1WtaXOcGtAkuJAAG8k2C5LS/TukyW0GGq74j6jO83PcAd6DslQFeI6Y6VYmvOvWcG/BS9RvIwZcODiV1vomonq69QWa57Wht82N1i6+ZIe0diD0JERAREQEREBERARFgxOJZTaX1HtY0ZucQAOZNkGdFxmkvSJg2SGa9Y5eo2G/mdEji2VzmO9JWIdalTp0xvcS93+IHcUHqyiYvH0qQmpUYwb3ua3+4rxTG9IsbV9vEVI3NPVjuZC1XUyST7RvfM85zQezYrptgGW68OO5jXP8AFojxWoxHpMw49ilVfxOowH+onwXmzcKdqudhrG0oOyr+k+qfYwzG/M9zvANatfX9ImOd7Ios5NJI/M4+S55lCQREFXvoaosJU0ScV0u0g+ZxL28GtYzxa2fFaKs173F73ue45uc4uceZcSStuyiI8+zmqfZNvDJNGlGGVww5W21BFh2eCubSMAxCmrjUCkruqK2v2dUNAxZTVazUdlJU7A6Rq0rs1J3vp06jvzPYXeKyCiQL5jzhUZhrXAngg2+H6c41lmmnx/42j+2FLZ6RcbtFA/gd+j1z4o8Fa2lJNoTTHV0/SVifeo0Ty1m+bipdL0nO9/DDm2p+hZ+q4p9A7B3rG7D7ldR6NR9JlA+1Qqj5Sx3m4KfR9IOCd7RqM+ZhP9msvKjQVr6B2Jo9oodLcC/LEsHzSz+8BbLDaRo1P+urTf8AK9rvIrwQUSrTSDtxummPohF4Dh8VXZ/11qrAPhe9o7gYUmp0kxzmln2mrB3EB35wNYd6uo9oxukqNETWqspg5a7mtnlJute3pbgSYGJp9pgd5svC6mHc5xcXFzjmXEknmTcqVo3Btc8Nq1RSZHt6jn8hqtuVLf8AFkfQVGs17Q5rg5pyIIIPIjNZFxnQgYXDsdTZjadUvdrBtqcWizC4mTtPALswVZUVREVBEWr0tpujh2k1HXiQwXc7k3ntMBBs1y+nOmFKjLaUVXjODDW/M7aeA3XIXHae6XVq8tE06RkBjbufwc7ad7R6oyOstA8SBrmBsYMvC7nclm0TdJ6Zq4l01Hl8GzR6rGn7rbxzu6+ajOpW9cwPhH6/RVGHdYcBJ7hYfVlewxlnvzPfkPBc63GsxNODkQBsi8cBGXYAvbui+jxQwtFgEHUDncXP9Z09pK8r6N4QV8XSY4Swv1nWMEMBeQTx1YjivbF1n4wIiKgiIgIoOkdJUaDdatUaxuzWMExsAzceAuuG016RjduFpz/9KgMfhYDPeRyQeh1KgaC5xAAuSTAA4k5LldJ9PsHSkNc6s7dTEt/OYaRyleZY/FVq/rYis525rnta0cmWaOwBR6VJvZs4q4mur0j6Q8U+RRYykN//AGO4GXANH5SuWxlWrWdr13ve7e8zHyjJo4CFIpU5dnEe7CzMpgkGO02gBTYIlHCNOWaq7CxnCmsLGky4H9O7MqSXMd7Jnz7Vf0a84Y7M1e3DAGTErOQcoVGAgXud6xeo1jC+iDsmLgHfCyNZa43LIAeCrqu4f6UvS4w06bRIBvtG76/VXhuYiwyWRtMzO+yv1Dv3qejEcuEScuSqy4BG0LK6mdpsVXqSs+lxHfRsdWATwVWstfwUjqztOfJWll4m5k5d6noxH1A4R5KoZsj+Fnbh4yt2BVFMzF8s7J6XGBzIyEo1ucgjmpXUcSqvpwJv5p6MRXU4KPZAsCeA4qUKMDWEmc8haMzKvFDinpMQxTtzWGphSQIMR4rZ9TxKtFDVMTmdt8k9JiA6lA9bZmVa2nrXGV4Wy6kn/SCieCejGt+z7xmqNw42dotmtmKBz3oaJ2Af7V0xrRQWB2GcTIIjzW2dhycx9cVUUjuWtRqeom8Kx1K4EEzt3dq2tXCuIgerfNXtoHIieJj9E1WndhQsuHxFWkJp1XsH3HOb4A3WxNI5kW7FjfhpvfMfUKWkS8J0xxzBPWB42B7GnxbB8Vs6HpHrCzsOxzvuuczwId5rROpDYIUX7MdbIRGe8/tmp7MbLSXS/F1zGv1TDbVpktJ5vnW7iBwWrNSZtebn6vzOfFVdRGcXG/gsRBDshzlX2YvNM5iBPvHyaNg4eG1YjTGwEnaTf67SFKaRffynyusVWmTcz2sJ7tdat2J/axur7zm8p1u5rLDvV9erAsCecADs/hVYHDIv7NRo8FHxTnfAT+L9LrEm1b+Oz9GGj9Z9XEOAloFNsTm71nk615jU/MV6UuX9HmC6vBMMQajnVD+Iw3+lrV1C7MiIiAuO9IHSKthWU20GEvqlw19XWDA3VyGRcS4RNrGxXYrnOk2lMTRNPqKTHtdOs5xIAgthoIyLpME2tkUHj+OOIc7rq7aznEj13tI5Aa1o3NFuCuwrdbWE6riLS3IjxFoyBXqjelDXtLK+FqesIcwalQXzBDi0kfhXKaVwNBjvUa4U3e44arqZ+66TLfEdsiejHLvwuIBa6wMga4aHsc0DIyQGk2sYNjvKtpawqOLWwwxbjAkwbiTPet7UoPp2JljvZeNvBw913gdig1KV5XK3LrUmzGLDTrtaTMmOU2/lS37ABbb/AAsOFoE1GQPeb5hSXsHblO1T18Xz9Ryxu5VwLTDzuj/L9JVXtUmizOMnF3c0GPM9y1OrSxjartiFiqAufVakUoP1hJEZrK6mSRBi97Z71cwZdir9d4WNXFdVXNEqx0ERvVW2Fgp6XyuLFY5h1gda0XEZ9queyYuREG31krnH+fruU9LimomoMz2LIFR0C5OXYI4p6MYxTOtMjVjLirnTcNF4tOXarmNMkmI2b+9Zm7Pr6/hPRjBTa7Ii+/YVke0xbPYs4CAJ6MYg3KyvaxXGYnM7BvVackXEHd2/68U9GMb6YIIOX6K3qwIHYJ+tyyUmOvr6udonLjO1XagsSMtvZCejGCjh2tsNu03klZQxYsSx9tRwF7yFlkNgE3yE7SrOk8mp9fXasLcOQ4nXJnJuwfWaz6xmIsRnbPkriP3VnR5Y9S/P/StbB+uav2fXFY2MDRAgBb1PK5zARBEqxrCTIJABiIF/4V7XAHNXdYO1X6mLKtEOBaQSCLqw4Yauq31Rsjv2rKao+vFKeHcSS1r3TsDSc+Q4KWUYxTsNvNW1mgA2mPFTv/H4g5Uan5CPNYq2isRBmg8j5Z8FPPRsatzgXECLfV9ywOpif45fXapr6DwdUtLTuIIPcVb1WrcxuG4fynMpsQyyPLb+gPkotRzQbhp5kDwICmVXjeQOYjucIBUWq8jcR94FvcW2K758xz36xlrfgj8MjwJUSs1v3B4f3BSw5o90s4tgjvb+yxYydWQ6RxA8wYWZ+rXqfo9x/WYNjSQTSJpmDsEFv9JA7CuqXlPotx5biKlLJr6etH3mERH4XOmNwXqy6siIiArHNBEG4KvRBp8XoNjrsJpncAHM7WnIfKWrVVKGKpWcwPZvpme9jr90rrEQcBUbQMyzVM3nWaAeAB1QeS1dbRjM2vjg6/iP2XpOJwTH+00ExEizo5i8cFrH9Gqcy2AeLWu8gFiytS44puHYy4cHOi0ZDZKgVMPORlegO0PUbZmpHzOb4AR4qK/RNfiB90yfF58li87+rOscTTwT5HqnmRAHG+alDDRyFu/+JK6N2BLTdpHF0yVKo4VgF4KvM35C2OKqtDZLnBvMxMhRnYpnuBzvlB8yt5pvo/TZrVWAu2lusZ7Jz5LRMqUzsaOcHzlZ65y/VnSprH4I+ZzR5lOsd8LOx7VIAaBIcR2D9WfqrqYJMes7dZpn8oXOyNzWClUJIBaR4/QUkMU+ngY4k5/sPFX/AGXZ9bFm81djWOaRECZsrw1T/syDDeaxjSG1nmq9XkpzMMq9QfBXE1DDFka3fkpXUHcqmgdmcJhqKykGiGgDkq6ql9QqUsKAIE773vxKmLqMGqrWKaMOrm4fbClVE1FaaUrYjDqvUKfVa80bz3KvUeS2LcNfKyzNw4GasqfGpOFJtcRe23f2LL9iO7gtoQR7LHu+Vrj5BafFaRfJaPVjOxkcxs7V2541z66g/CATrEfsoVUMBzJ2WvdYMRUnN2tO0u1e45FYX1CPasD8Q1f62+qe0Ld5iemdzm7bc7HslZcO9jXAlrXfdfrDuDSCe2QorfxAb7Fve2W94UzDwLWjgBHhY9wUsw/XUaG0i1zmsZh2NnMtgQNp9n9V1C0fR3AajNciC4WERDc9m+3gt4u/O59crm/FURFpEfE4Zjxqva1w3ET3blz2keh9N96bi0/C712nhJ9bvJ5LqUQeTaX6P1qMl7SGj32+s3tOwcHRwXPPBbmNXc5t2nmNy95IXM6W6H0Ksup/8Tz8Ilp5sy7oWbB5WwbQPxM/Vv8AEJUo6wkAO4tMH9j2Qttpbo5Xw51ns9Uf+xhJb2mJbycAOK1vWA3zO8eq79ncslj7rSnRrGNw+Mo1HEta18O1rQ14LHE2yAdO3Je7r54xFyYMjcQAe79oXsvQfSn2jCUy6demOrfOZLAIPa3VPMncuusujREQEREBERAREQEREFpaCIN1FqaPpu92OVvJTEQaitoVpye4c4P7LWV+i0/A7iRB7wupRZvMqy2OHf0OvIZB3tcP8lJo6EcwWYRvPtE9sldeiniL6rlRgnDNju4qx2F4fWxdakJeIeq5A0An2ZdaWDcO5WdQz4W9wWP4v+r7rlxhQs1LBt2roDhGfC3uT7Iz4fNanGJ6rmK1WgDAlxytsO6+SjPxLB7rwOQPkV02J0PRqTrNgxGsLOHbt5GQua0hoavSksHWM+7JcObMxzaT8oTrn5+Lz1/qjcVSPvgfN6v91ipjKQNxF1znXcOBvEcJH6iVJ0bpHq3TAc33mOEC+4gEA5XcvPLNyt38+N6KKuZQnIE8gt9hyxzQ5oaQdwH1KkQuv8Mv9se655mCecmHtt5rMNFvPwt8fJbtFqf+PKe61bNED3nk8gB5ypFLR7GmYk/eMxyGSmItTjmfkS21VRcXgqdQRUY10ZEi45HMHkpSLaOS0l0Qa6TRcWnc4m/4oJI+YOXLYvRVagfWa5g+JsBp5gkscTwIPBeqqhErN5laleTUmkH2Rzb/AMZ7Wmx71v8AQOB6yqJ9lvrOnbGw75MeK6itoOg6/VgH7stHcLHuUjBYFlIEMETcnMlSc1fXxMREW2BERAREQEREBc3pbodha8nV6t596nDZ5tjVPOJ4rpEQeU6U9H+Ibem5lYbB7Du5xj+rsW89HuiMThzVFZmoxwbAJBlwJuIOUE35dncopn1dVREVQREQEREBERAREQEREBERAREQEREBERAREQEREGuxuiqNW72An4hLXfmbBjhktFi+h+2nV5B4y/EyI7l1qLN5l/VlsaDo9oytQLmvc0sI2OJOtaDBYItO07Fv0RWTJhbqqIiqCIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIg//Z",available:!0,unavailableReason:null,unavailableReasonCode:null,ruleType:"VARIABLE_CREDIT_REWARD",sourceUnit:"POINT",sourceValue:null,prettySourceValue:null,sourceMinValue:1,prettySourceMinValue:"1 Point",sourceMaxValue:100,prettySourceMaxValue:"100 Points",destinationMinValue:1,prettyDestinationMinValue:"1 Salmon Coin",destinationMaxValue:100,prettyDestinationMaxValue:"100 Salmons",globalRewardKey:null,destinationUnit:"TESTUNIT",steps:[{sourceValue:1,prettySourceValue:"1 Point",destinationValue:1,prettyDestinationValue:"1 Salmon Coin",available:!0,unavailableReasonCode:null},{sourceValue:2,prettySourceValue:"2 Points",destinationValue:2,prettyDestinationValue:"2 Salmons",available:!0,unavailableReasonCode:null},{sourceValue:3,prettySourceValue:"3 Points",destinationValue:3,prettyDestinationValue:"3 Salmons",available:!0,unavailableReasonCode:null},{sourceValue:4,prettySourceValue:"4 Points",destinationValue:4,prettyDestinationValue:"4 Salmons",available:!0,unavailableReasonCode:null},{sourceValue:5,prettySourceValue:"5 Points",destinationValue:5,prettyDestinationValue:"5 Salmons",available:!0,unavailableReasonCode:null}]},selectedStep:null},data:{exchangeList:null},callbacks:{exchangeReward:null,openDrawer:null,setStage:null,setExchangeState:null,refs:{drawerRef:{}}},refs:null},Su={width:"683px",minWidth:"260px",resize:"horizontal",height:"fit-content",overflow:"hidden"},Tu=Object.freeze({__proto__:null,default:{title:"Components/Reward Exchange List"},Default:()=>e("div",{style:Su},e(yn,Object.assign({},Eu))),Default2:()=>e("div",{style:{...Su,height:"700px"}},e(yn,Object.assign({},Au)))});function Fu(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];"object"!=typeof r||Object.isFrozen(r)||Fu(r)})),e}var Ru=Fu;Ru.default=Fu;class Pu{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Iu(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Bu(e,...t){const r=Object.create(null);for(const t in e)r[t]=e[t];return t.forEach((function(e){for(const t in e)r[t]=e[t]})),r}const Nu=e=>!!e.kind;class Lu{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=Iu(e)}openNode(e){if(!Nu(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){Nu(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class Ou{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{Ou._collapse(e)})))}}class Mu extends Ou{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const r=e.root;r.kind=t,r.sublanguage=!0,this.add(r)}toHTML(){return new Lu(this,this.options).value()}finalize(){return!0}}function ju(e){return e?"string"==typeof e?e:e.source:null}const _u=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,Vu="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Gu={begin:"\\\\[\\s\\S]",relevance:0},Hu={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[Gu]},Wu={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[Gu]},zu={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Uu=function(e,t,r={}){const n=Bu({className:"comment",begin:e,end:t,contains:[]},r);return n.contains.push(zu),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},Zu=Uu("//","$"),Ju=Uu("/\\*","\\*/"),Xu=Uu("#","$");var Yu=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:Vu,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map((e=>ju(e))).join("")}(t,/.*\b/,e.binary,/\b.*/)),Bu({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Gu,APOS_STRING_MODE:Hu,QUOTE_STRING_MODE:Wu,PHRASAL_WORDS_MODE:zu,COMMENT:Uu,C_LINE_COMMENT_MODE:Zu,C_BLOCK_COMMENT_MODE:Ju,HASH_COMMENT_MODE:Xu,NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C_NUMBER_MODE:{className:"number",begin:Vu,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:"\\b(0b[01]+)",relevance:0},CSS_NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Gu,{begin:/\[/,end:/\]/,relevance:0,contains:[Gu]}]}]},TITLE_MODE:{className:"title",begin:"[a-zA-Z]\\w*",relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function Qu(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function Ku(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Qu,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function ec(e){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map((e=>ju(e))).join("|")+")"}(...e.illegal))}function tc(e){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function rc(e){void 0===e.relevance&&(e.relevance=1)}const nc=["of","and","for","in","not","or","if","then","parent","list","value"];function ac(e,t,r="keyword"){const n={};return"string"==typeof e?a(r,e.split(" ")):Array.isArray(e)?a(r,e):Object.keys(e).forEach((function(r){Object.assign(n,ac(e[r],t,r))})),n;function a(e,r){t&&(r=r.map((e=>e.toLowerCase()))),r.forEach((function(t){const r=t.split("|");n[r[0]]=[e,ic(r[0],r[1])]}))}}function ic(e,t){return t?Number(t):function(e){return nc.includes(e.toLowerCase())}(e)?0:1}function sc(e,{}){function t(t,r){return new RegExp(ju(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(function(e,t="|"){let r=0;return e.map((e=>{r+=1;const t=r;let n=ju(e),a="";for(;n.length>0;){const e=_u.exec(n);if(!e){a+=n;break}a+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&r++)}return a})).map((e=>`(${e})`)).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const r=t.findIndex(((e,t)=>t>0&&void 0!==e)),n=this.matchIndexes[r];return t.splice(0,r),Object.assign(t,n)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach((([e,r])=>t.addRule(e,r))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let r=t.exec(e);if(this.resumingScanAtSamePosition())if(r&&r.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,r=t.exec(e)}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Bu(e.classNameAliases||{}),function r(a,i){const s=a;if(a.isCompiled)return s;[tc].forEach((e=>e(a,i))),e.compilerExtensions.forEach((e=>e(a,i))),a.__beforeBegin=null,[Ku,ec,rc].forEach((e=>e(a,i))),a.isCompiled=!0;let o=null;if("object"==typeof a.keywords&&(o=a.keywords.$pattern,delete a.keywords.$pattern),a.keywords&&(a.keywords=ac(a.keywords,e.case_insensitive)),a.lexemes&&o)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return o=o||a.lexemes||/\w+/,s.keywordPatternRe=t(o,!0),i&&(a.begin||(a.begin=/\B|\b/),s.beginRe=t(a.begin),a.endSameAsBegin&&(a.end=a.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(s.endRe=t(a.end)),s.terminatorEnd=ju(a.end)||"",a.endsWithParent&&i.terminatorEnd&&(s.terminatorEnd+=(a.end?"|":"")+i.terminatorEnd)),a.illegal&&(s.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return Bu(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:oc(e)?Bu(e,{starts:e.starts?Bu(e.starts):null}):Object.isFrozen(e)?Bu(e):e}("self"===e?a:e)}))),a.contains.forEach((function(e){r(e,s)})),a.starts&&r(a.starts,i),s.matcher=function(e){const t=new n;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(s),s}(e)}function oc(e){return!!e&&(e.endsWithParent||oc(e.starts))}function lc(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,Iu(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const dc={"after:highlightElement":({el:e,result:t,text:r})=>{const n=cc(e);if(!n.length)return;const a=document.createElement("div");a.innerHTML=t.value,t.value=function(e,t,r){let n=0,a="";const i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function o(e){a+="<"+uc(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+Iu(e.value)+'"'})).join("")+">"}function l(e){a+="</"+uc(e)+">"}function d(e){("start"===e.event?o:l)(e.node)}for(;e.length||t.length;){let t=s();if(a+=Iu(r.substring(n,t[0].offset)),n=t[0].offset,t===e){i.reverse().forEach(l);do{d(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===n);i.reverse().forEach(o)}else"start"===t[0].event?i.push(t[0].node):i.pop(),d(t.splice(0,1)[0])}return a+Iu(r.substr(n))}(n,cc(a),r)}};function uc(e){return e.nodeName.toLowerCase()}function cc(e){const t=[];return function e(r,n){for(let a=r.firstChild;a;a=a.nextSibling)3===a.nodeType?n+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:n,node:a}),n=e(a,n),uc(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:a}));return n}(e,0),t}const mc={},pc=e=>{console.error(e)},hc=(e,...t)=>{console.log(`WARN: ${e}`,...t)},fc=(e,t)=>{mc[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),mc[`${e}/${t}`]=!0)},gc=Iu,bc=Bu,vc=Symbol("nomatch");var yc=function(e){const t=Object.create(null),r=Object.create(null),n=[];let a=!0;const i=/(^(<[^>]+>|\t|)+|\n)/gm,s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:Mu};function d(e){return l.noHighlightRe.test(e)}function u(e,t,r,n){let a="",i="";"object"==typeof t?(a=e,r=t.ignoreIllegals,i=t.language,n=void 0):(fc("10.7.0","highlight(lang, code, ...args) has been deprecated."),fc("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,a=t);const s={code:a,language:i};q("before:highlight",s);const o=s.result?s.result:c(s.language,s.code,r,n);return o.code=s.code,q("after:highlight",o),o}function c(e,r,i,o){function d(e,t){const r=y.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,r)&&e.keywords[r]}function u(){null!=q.subLanguage?function(){if(""===E)return;let e=null;if("string"==typeof q.subLanguage){if(!t[q.subLanguage])return void D.addText(E);e=c(q.subLanguage,E,!0,C[q.subLanguage]),C[q.subLanguage]=e.top}else e=m(E,q.subLanguage.length?q.subLanguage:null);q.relevance>0&&(k+=e.relevance),D.addSublanguage(e.emitter,e.language)}():function(){if(!q.keywords)return void D.addText(E);let e=0;q.keywordPatternRe.lastIndex=0;let t=q.keywordPatternRe.exec(E),r="";for(;t;){r+=E.substring(e,t.index);const n=d(q,t);if(n){const[e,a]=n;D.addText(r),r="",k+=a,e.startsWith("_")?r+=t[0]:D.addKeyword(t[0],y.classNameAliases[e]||e)}else r+=t[0];e=q.keywordPatternRe.lastIndex,t=q.keywordPatternRe.exec(E)}r+=E.substr(e),D.addText(r)}(),E=""}function p(e){return e.className&&D.openNode(y.classNameAliases[e.className]||e.className),q=Object.create(e,{parent:{value:q}}),q}function h(e,t,r){let n=function(e,t){const r=e&&e.exec(t);return r&&0===r.index}(e.endRe,r);if(n){if(e["on:end"]){const r=new Pu(e);e["on:end"](t,r),r.isMatchIgnored&&(n=!1)}if(n){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return h(e.parent,t,r)}function f(e){return 0===q.matcher.regexIndex?(E+=e[0],1):(T=!0,0)}function g(e){const t=e[0],n=r.substr(e.index),a=h(q,e,n);if(!a)return vc;const i=q;i.skip?E+=t:(i.returnEnd||i.excludeEnd||(E+=t),u(),i.excludeEnd&&(E=t));do{q.className&&D.closeNode(),q.skip||q.subLanguage||(k+=q.relevance),q=q.parent}while(q!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),p(a.starts)),i.returnEnd?0:t.length}let b={};function v(t,n){const s=n&&n[0];if(E+=t,null==s)return u(),0;if("begin"===b.type&&"end"===n.type&&b.index===n.index&&""===s){if(E+=r.slice(n.index,n.index+1),!a){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=n,"begin"===n.type)return function(e){const t=e[0],r=e.rule,n=new Pu(r),a=[r.__beforeBegin,r["on:begin"]];for(const r of a)if(r&&(r(e,n),n.isMatchIgnored))return f(t);return r&&r.endSameAsBegin&&(r.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?E+=t:(r.excludeBegin&&(E+=t),u(),r.returnBegin||r.excludeBegin||(E=t)),p(r),r.returnBegin?0:t.length}(n);if("illegal"===n.type&&!i){const e=new Error('Illegal lexeme "'+s+'" for mode "'+(q.className||"<unnamed>")+'"');throw e.mode=q,e}if("end"===n.type){const e=g(n);if(e!==vc)return e}if("illegal"===n.type&&""===s)return 1;if(S>1e5&&S>3*n.index)throw new Error("potential infinite loop, way more iterations than matches");return E+=s,s.length}const y=w(e);if(!y)throw pc(s.replace("{}",e)),new Error('Unknown language: "'+e+'"');const $=sc(y,{plugins:n});let x="",q=o||$;const C={},D=new l.__emitter(l);!function(){const e=[];for(let t=q;t!==y;t=t.parent)t.className&&e.unshift(t.className);e.forEach((e=>D.openNode(e)))}();let E="",k=0,A=0,S=0,T=!1;try{for(q.matcher.considerAll();;){S++,T?T=!1:q.matcher.considerAll(),q.matcher.lastIndex=A;const e=q.matcher.exec(r);if(!e)break;const t=v(r.substring(A,e.index),e);A=e.index+t}return v(r.substr(A)),D.closeAllNodes(),D.finalize(),x=D.toHTML(),{relevance:Math.floor(k),value:x,language:e,illegal:!1,emitter:D,top:q}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:r.slice(A-100,A+100),mode:t.mode},sofar:x,relevance:0,value:gc(r),emitter:D};if(a)return{illegal:!1,relevance:0,value:gc(r),emitter:D,language:e,top:q,errorRaised:t};throw t}}function m(e,r){r=r||l.languages||Object.keys(t);const n=function(e){const t={relevance:0,emitter:new l.__emitter(l),value:gc(e),illegal:!1,top:o};return t.emitter.addText(e),t}(e),a=r.filter(w).filter(x).map((t=>c(t,e,!1)));a.unshift(n);const i=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(w(e.language).supersetOf===t.language)return 1;if(w(t.language).supersetOf===e.language)return-1}return 0})),[s,d]=i,u=s;return u.second_best=d,u}const p={"before:highlightElement":({el:e})=>{l.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{l.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},h=/^(<[^>]+>|\t)+/gm,f={"after:highlightElement":({result:e})=>{l.tabReplace&&(e.value=e.value.replace(h,(e=>e.replace(/\t/g,l.tabReplace))))}};function g(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const r=l.languageDetectRe.exec(t);if(r){const t=w(r[1]);return t||(hc(s.replace("{}",r[1])),hc("Falling back to no-highlight mode for this block.",e)),t?r[1]:"no-highlight"}return t.split(/\s+/).find((e=>d(e)||w(e)))}(e);if(d(n))return;q("before:highlightElement",{el:e,language:n}),t=e;const a=t.textContent,i=n?u(a,{language:n,ignoreIllegals:!0}):m(a);q("after:highlightElement",{el:e,result:i,text:a}),e.innerHTML=i.value,function(e,t,n){const a=t?r[t]:n;e.classList.add("hljs"),a&&e.classList.add(a)}(e,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const b=()=>{b.called||(b.called=!0,fc("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(g))};let v=!1;function y(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(g):v=!0}function w(e){return e=(e||"").toLowerCase(),t[e]||t[r[e]]}function $(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{r[e.toLowerCase()]=t}))}function x(e){const t=w(e);return t&&!t.disableAutodetect}function q(e,t){const r=e;n.forEach((function(e){e[r]&&e[r](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){v&&y()}),!1),Object.assign(e,{highlight:u,highlightAuto:m,highlightAll:y,fixMarkup:function(e){return fc("10.2.0","fixMarkup will be removed entirely in v11.0"),fc("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,l.tabReplace||l.useBR?t.replace(i,(e=>"\n"===e?l.useBR?"<br>":e:l.tabReplace?e.replace(/\t/g,l.tabReplace):e)):t;var t},highlightElement:g,highlightBlock:function(e){return fc("10.7.0","highlightBlock will be removed entirely in v12.0"),fc("10.7.0","Please use highlightElement now."),g(e)},configure:function(e){e.useBR&&(fc("10.3.0","'useBR' will be removed entirely in v11.0"),fc("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=bc(l,e)},initHighlighting:b,initHighlightingOnLoad:function(){fc("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),v=!0},registerLanguage:function(r,n){let i=null;try{i=n(e)}catch(e){if(pc("Language definition for '{}' could not be registered.".replace("{}",r)),!a)throw e;pc(e),i=o}i.name||(i.name=r),t[r]=i,i.rawDefinition=n.bind(null,e),i.aliases&&$(i.aliases,{languageName:r})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(t)},getLanguage:w,registerAliases:$,requireLanguage:function(e){fc("10.4.0","requireLanguage will be removed entirely in v11."),fc("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=w(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:x,inherit:bc,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),n.push(e)},vuePlugin:lc(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString="10.7.3";for(const e in Yu)"object"==typeof Yu[e]&&Ru(Yu[e]);return Object.assign(e,Yu),e.addPlugin(p),e.addPlugin(dc),e.addPlugin(f),e}({});yc.registerLanguage("gherkin",(function(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}));const wc=({story:t},r)=>{var n;let a,i=null===(n=t.parent.parameters)||void 0===n?void 0:n.scenario;try{a=yc.highlight("gherkin",i)}catch(e){}return e("div",null,e("details",null,e("summary",null,"Specs"),a&&e("pre",{innerHTML:a.value})),r)},$c=[rs,ns,as,os,gs,Ds,Ss,io,oo,mo,fs,vs,ws,po,Bo,No,Lo,_o,zo,Yo,rl,dl,ml,pl,vl,Dl,Rl,qd,Dd,ld,Ed,kd,Pd,Nd,iu,uu,cu,pu,hu,gu,yu,Tu,xo,Ao,Eo],xc=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const{class:t,children:n}=function(t,r){var n=r.h,a=void 0===n?e:n,s=r.title,o=void 0===s?"Stencilbook":s,l=r.homepage,d=void 0===l?a("h3",null,"Select a story!"):l,u=r.addons,c=void 0===u?[]:u,m=h((function(){return t.map(ts).reduce(es,{_:[]})}),t),p=i(void 0),f=p[0],g=p[1],b=null==f?void 0:f.key,v=i("desktop"),y=v[0],w=v[1],$=i(!0),x=$[0],q=$[1],C=i(!1),D=C[0],E=C[1],k=function(){return a("div",{class:"dynamic-display-wrapper"},a("div",{class:"button-wrapper"},a("button",{class:"desktop"===y?"active":"",onClick:function(){return w("desktop")}},"Desktop"),a("button",{class:"tablet"===y?"active":"",onClick:function(){return w("tablet")}},"Tablet"),a("button",{class:"mobile"===y?"active":"",onClick:function(){return w("mobile")}},"Mobile")),a("p",null,"Note: Currently doesn't test breakpoints, use the native tester for now"),a("hr",null),a("button",{class:D?"active":"",onClick:function(){return E((function(e){return!e}))}},"Toggle Dark Background"),a("hr",null),a("button",{class:x?"active":"",onClick:function(){return q((function(e){return!e}))}},"Toggle Sidebar"))},A="mobile"===y?"375px":"tablet"===y?"768px":"1124px",S=Ui(Yi||(Yi=Ji(["\n max-width: ",";\n margin-left: ",";\n "])),A,x?"250px":"0px"),T=Ui(Qi||(Qi=Ji(["\n display: none;\n "])));document.body.style.backgroundColor=D?"#232323":"#fafafa";var F=function(e){var t=e.selected,r=c.reduce((function(e,r){return function(){return a(r,{story:Zi({},t)},a(e,null))}}),null==t?void 0:t.story);return a(r,null)},R=function(){return a("div",{class:"story-book-outer-div"},a("div",{class:"story-div "+(x?"":T)},a("div",{class:"header",onClick:function(){g(void 0)}},a("h2",null,o)),a("ul",{class:"parentStoryList"},Object.keys(m).sort().map((function(e){return a("div",{class:"group-wrapper"},"_"!==e&&a("h4",{class:"group-header"},e),m[e].map((function(t){return a("li",{class:"parentStory"},a("details",{style:{marginBottom:"10px"}},a("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map((function(r){var n=e+"/"+r,i=t.subs[r],s=i.storyName||Fa(r);return a("div",{class:"subStory "+(b===n?"selected":"")},a("a",{onClick:function(){return function(e,t,r,n){g({key:t,story:e,parent:r,label:n})}(i,n,t.story,s)}},s))}))))})))})))),a(k,null),a("div",{class:"component "+S},!b&&d,b&&a("div",null,a("h3",null,f.label),a(F,{selected:f}))))};return{class:Ki,children:a(R,null),View:R,selected:f}}($c,{h:e,title:"Mint Components",addons:[wc,de,ls]});return e(r,{class:t,onClick:{}},n)}},qc=class{constructor(e){t(this,e),this.colspan=1,this.padding="15px 10px"}render(){return e(r,{style:{display:"contents"}},e("td",{colSpan:this.colspan,style:{padding:this.padding}},e("slot",null)))}},Cc=class{constructor(e){t(this,e),this.border="1px solid #EAEAEA"}render(){return e(r,{style:{display:"contents"}},e("tr",{style:{border:this.border}},e("slot",null)))}},Dc=class{constructor(e){t(this,e),this.ignored=!0,this.rewardAmount=0,this.rewardUnit="Points",this.cardTitle="Title Text",this.description="Description Text",this.repeatable=!1,this.showProgressBar=!1,this.progressSource="",this.goal=1,this.steps=!1,this.showExpiry=!1,this.buttonText="Complete Action",this.buttonLink="https://example.com/",this.statType="/programGoals/count/Referral-Started%2Freferrals",a(this)}disconnectedCallback(){}render(){const{props:t}=x()?ie(this):ae(this),{value:r}=t;return console.log(t,x()),e(Td,Object.assign({},j(this),{progress:r,loading:void 0===r}))}},Ec=u("sq:global"),kc=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}componentWillLoad(){try{g("\n sqm-text {\n display: block;\n }\n\n sqm-text h1 {\n font-size: var(--sl-font-size-xx-large);\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: var(--sl-font-size-x-large);\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: var(--sl-font-size-large);\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: 13px;\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text p {\n font-size: var(--sl-font-size-small);\n font-weight: 400;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text p[light] {\n font-size: var(--sl-font-size-x-small);\n font-weight: 400;\n color: var(--sl-color-gray-600);\n margin: 0;\n }\n")}catch(e){Ec(e)}}render(){return e("slot",null)}};function Ac(t){return e(r,null,t.loading?t.loadingText:t.username)}const Sc=Q`
|
|
326
|
+
`;function ho(){const e="testestest",t=e;return window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com",programId:"sam-partner-test-2"},s((()=>(I({accountId:t,id:e,jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]),{id:e,accountId:t}}function fo(){const{id:e,accountId:t}=ho(),[r,n]=i(10),[a,s]=i(100),[o,{data:l,errors:d}]=B(po);return{states:{points:r,rate:a},data:{id:e,accountId:t,data:l,errors:d},callbacks:{exchange:o,setPoints:n,setRate:s}}}const go=t=>{const{states:r,data:n,callbacks:a}=t;return e("div",null,e("div",null,e("label",null,"Rate:"),e("input",{value:r.rate,onInput:e=>a.setRate(e.target.value)})),e("input",{value:r.points,onInput:e=>a.setPoints(e.target.value)}),e("button",{onClick:()=>a.exchange(t.input)},"Exchange"),e("details",null,e("summary",null,"response"),e("h4",null,"data"),e("div",{style:{maxWidth:"500px"}},e("pre",{style:{width:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(n.data))),e("h4",null,"errors"),e("div",{style:{maxWidth:"500px"}},e("pre",{style:{maxWidth:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(n.errors)))))},bo=ls((()=>(ho(),e("sqm-reward-exchange-list",{"list-type":"something"})))),vo=ls((()=>{const{states:t,data:r,callbacks:n}=fo();return e(go,{states:t,data:r,callbacks:n,input:{exchangeRewardInput:{userId:r.id,accountId:r.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},globalRewardKey:"gc1"}}})})),yo=ls((()=>{const{states:t,data:r,callbacks:n}=fo();return e(go,{states:t,data:r,callbacks:n,input:{exchangeRewardInput:{userId:r.id,accountId:r.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},globalRewardKey:"gc1",rewardInput:{valueInCents:Math.ceil(t.points*t.rate)}}}})})),wo=ls((()=>{const{states:t,data:r,callbacks:n}=fo();return e(go,{states:t,data:r,callbacks:n,input:{exchangeRewardInput:{userId:r.id,accountId:r.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},rewardInput:{type:"CREDIT",unit:"foo",assignedCredit:Math.ceil(t.points*t.rate)}}}})})),$o=Object.freeze({__proto__:null,default:{title:"Hooks / useRewardExchange"},RewardList:bo,FixedGlobalReward:vo,VariableGlobalReward:yo,VariableCreditReward:wo});function xo(){const e="testestest",t=e;return window.widgetIdent={tenantAlias:"test_a8b41jotf8a1v",appDomain:"https://staging.referralsaasquatch.com"},s((()=>(I({accountId:t,id:e,jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs"}),()=>{window.widgetIdent=void 0,I(void 0)})),[]),{id:e,accountId:t}}const qo=ls((()=>(xo(),N("sam-partner-test-2"),e("sqm-rewards-table",null,e("sqm-rewards-table-column",null))))),Co=ls((()=>(xo(),N(void 0),e("sqm-rewards-table",null,e("sqm-rewards-table-column",null))))),Do=Object.freeze({__proto__:null,default:{title:"Hooks / useRewardsTable"},RewardsTableWithProgram:qo,RewardsTableNoProgram:Co}),Eo=ls((()=>(function(){const e="sam+klip@saasquat.ch";window.widgetIdent={tenantAlias:"test_a74miwdpofztj",appDomain:"https://staging.referralsaasquatch.com",programId:"klip-referral-program"},s((()=>(I({accountId:"sam+klip@saasquat.ch",id:e,jwt:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc"}),()=>{window.widgetIdent=void 0,I(void 0)})),[])}(),e("sqm-task-card",{"card-title":"Comment on 5 articles","button-text":"Start reading",goal:5,steps:!0,"show-progress-bar":!0})))),ko=Object.freeze({__proto__:null,default:{title:"Hooks / useTaskCard"},TaskCard:Eo});L.setup(M());const Ao=L.createStyleSheet({HeaderSubtitleBold:{"font-weight":500,"text-decoration":"underline"}}),So=Ao.toString(),To={data:{programs:[{key:"program1",label:"My Referral Program"},{key:"program2",label:"My Rewards Program"}]}},Fo={states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}},Ro={states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}},Po=()=>e(ue,Object.assign({},To),e(ce,Object.assign({},Fo)),e(ce,Object.assign({},Ro))),Io=Object.freeze({__proto__:null,default:{title:"New Portal"},Dashboard:()=>{const t={shareString:"https://ssqt.co/johnsmithrox",open:!1,disabled:!1,tooltiptext:"Share link copied",onClick:()=>console.log("Share link copied")},r={shareString:"JOHNSMITH1",open:!1,disabled:!1,tooltiptext:"Share code copied",onClick:()=>console.log("Share code copied")};return e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},So),e(Po,null),e("sqm-divided-layout",{direction:"column"},e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"John Smith"))})),e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"2,345",value:234500}),"Clicks"),e(ne,Object.assign({},{statvalue:"58",value:58}),"Referrals"),e(ne,Object.assign({},{statvalue:"$10,540",value:1054e3}),"Earned"),e(ne,Object.assign({},{statvalue:"$2,305",value:230500}),"Awaiting Payout"))),e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"x-large",padding:"none",label:e("sqm-text",null,e("h2",null,"Partner and Profit")),content:e("sqm-text",null,e("p",null,"Get rewarded for referring potential customers to MyCompany. Earn commission for each successful lead you send our way"))})),e(X,Object.assign({},{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share your referral link")),content:e(se,Object.assign({},t))})),e(X,Object.assign({},{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share your referral code")),content:e(se,Object.assign({},r))})),e(X,Object.assign({},{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share via social media")),content:e(J,Object.assign({},{direction:"row",padding:"large",gap:"xxx-large",minWidth:"150px"}),e(Ln,Object.assign({},{medium:"twitter",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"twitter",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1}),"Tweet about us"),e(Ln,Object.assign({},{medium:"facebook",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"facebook",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1}),"Share on Facebook"),e(Ln,Object.assign({},{medium:"linkedin",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"linkedin",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1}),"Post on Linkedin"))})))))},EditProfile:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},So),e(Po,null),e("sqm-divided-layout",{direction:"column"},e(pe,Object.assign({},{states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!1,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}})),e(it,Object.assign({},{states:{open:!0,error:"",loading:!1,success:!1,content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:()=>console.log("open"),submit:()=>console.log("submit")}})))),Commissions:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},So),e(Po,null),e("sqm-divided-layout",{direction:"column"},e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("h2",null,"Commissions")),content:e("sqm-text",null,e("p",null,"for the"," ",e("span",{class:Ao.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))})),e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"$ 1,000",value:1e5}),"Total Earned"),e(ne,Object.assign({},{statvalue:"$ 800",value:8e4}),"Available"),e(ne,Object.assign({},{statvalue:"$ 180",value:18e3}),"Pending"),e(ne,Object.assign({},{statvalue:"$ 20",value:2e3}),"Redeemed"))))),Activity:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},So),e(Po,null),e("sqm-divided-layout",{direction:"column"},e(J,Object.assign({},{direction:"column",padding:"xxx-large",gap:"xxx-large"}),e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("h2",null,"Activity")),content:e("sqm-text",null,e("p",null,"for the"," ",e("span",{class:Ao.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))})),e(X,Object.assign({},{labelMargin:"x-large",padding:"none",label:e("sqm-text",null,e("h3",null,"Referral Activity")),content:e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"1,000",value:1e5}),"Total Referrals"),e(ne,Object.assign({},{statvalue:"800",value:800}),"Converted"),e(ne,Object.assign({},{statvalue:"180",value:180}),"Pending"),e(ne,Object.assign({},{statvalue:"20",value:20}),"Disqualified"))}))),e(X,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e("sqm-text",null,e("h3",null,"Traffic Generated")),content:e(me,Object.assign({},{space:"64px"}),e(ne,Object.assign({},{statvalue:"1,000",value:1e3}),"Clicks"),e(ne,Object.assign({},{statvalue:"800",value:800}),"From share link"),e(ne,Object.assign({},{statvalue:"180",value:180}),"From share mediums"))}))))}),Bo=Object.freeze({__proto__:null,default:{title:"Components/Sidebar Item"},InactiveItem:()=>e(ce,Object.assign({},{states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}})),ActiveItem:()=>e(ce,Object.assign({},{states:{active:!0},data:{label:"Dashboard",icon:"house",path:"/"}}))}),No=Object.freeze({__proto__:null,default:{title:"Components/Navigation Sidebar"},DefaultNavigationSidebar:()=>e(ue,Object.assign({},{data:{programs:[{key:"program1",label:"My Referral Program"},{key:"program2",label:"My Rewards Program"}]}}),e(ce,Object.assign({},{states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}})),e(ce,Object.assign({},{states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}})))}),Oo={states:{error:"",loading:!1},callbacks:{submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},Lo={states:{error:"Something went wrong. Please try again.",loading:!1},callbacks:{submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},Mo={states:{error:"",loading:!0},callbacks:{submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},jo=Object.freeze({__proto__:null,default:{title:"Components/Portal Login"},Default:()=>e(ft,Object.assign({},Oo)),LoginWithError:()=>e(ft,Object.assign({},Lo)),LoginLoading:()=>e(ft,Object.assign({},Mo))}),_o={states:{error:"",loading:!1,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Vo={states:{error:"Something went wrong. Please try again.",loading:!1,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Go={states:{error:"",loading:!0,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Ho={states:{error:"",loading:!1,confirmPassword:!0,hideInputs:!1},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",formData:e("div",null,e("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label",label:"Slotted Input",required:!0}),e("sl-input",{exportparts:"label: input-label",label:"Slotted Input 2",required:!0}))}},Wo=Object.freeze({__proto__:null,default:{title:"Components/Portal Register"},Default:()=>e(wt,Object.assign({},_o)),RegisterWithError:()=>e(wt,Object.assign({},Vo)),RegisterLoading:()=>e(wt,Object.assign({},Go)),FieldsHidden:()=>e("sqm-portal-register",{demoData:{states:{error:"",loading:!0,confirmPassword:!0,hideInputs:!0}}}),SlottedInputs:()=>e(wt,Object.assign({},Ho))}),zo={states:{error:"",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Uo={states:{error:"Something went wrong. Please try again.",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Zo={states:{error:"",loading:!0,success:!1},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Jo={states:{error:"",loading:!1,success:!0},callbacks:{submit:async e=>await e},content:{secondaryButton:"Cancel",messageSlot:"Enter your email below to receive a password reset link."}},Xo=Object.freeze({__proto__:null,default:{title:"Components/Portal Forgot Password",parameters:{scenario:'@author:\r\n@owner:ian\r\nFeature: Forgot Password\r\n\r\n @motivating\r\n Scenario: Users can request to reset their password\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click "Reset Password"\r\n Then the button enters a loading state\r\n When the password reset email is sent\r\n Then a confirmation banner is shown stating a password reset email was sent\r\n\r\n @motivating\r\n Scenario: Users are notified if sending their password reset email fails\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click "Reset Password"\r\n Then the button enters a loading state\r\n When the password reset email fails to send\r\n Then the user will not receive a password reset email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n @landmine\r\n Scenario: If the input email is not associated to an account a success banner will be shown but an email will not be sent\r\n Given the user entered an email address that is not associated to an accoun\r\n When they click "Reset Password"\r\n Then the button enters a loading state\r\n But no email will be sent\r\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\r\n\r\n @motivating\r\n Scenario: Users can resend password reset email\r\n Given a user had previously requested to reset their password\r\n When they enter their email address\r\n And that email address is linked to a previously created account\r\n And they click "Reset Password"\r\n Then the user will receive a second password reset email\r\n And a success banner is shown stating that their email was sent\r\n'}},Default:()=>e(he,Object.assign({},zo)),ForgotPasswordWithError:()=>e(he,Object.assign({},Uo)),ForgotPasswordLoading:()=>e(he,Object.assign({},Zo)),ForgotPasswordSuccess:()=>e(he,Object.assign({},Jo))}),Yo={states:{error:"",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},Qo={states:{error:"Something went wrong. Please try again.",loading:!1,success:!1},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},Ko={states:{error:"",loading:!0,success:!1},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},el={states:{error:"",loading:!1,success:!0},callbacks:{submit:async e=>await e},content:{email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},tl=Object.freeze({__proto__:null,default:{title:"Components/Portal Email Verification",parameters:{scenario:'@author:\r\n@owner: ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User\'s redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message will be displayed\r\n And it will reflect that a email has already been sent to their email\r\n But they can still re-send the email\r\n When they click to "Resend-Email"\r\n Then the user will receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user with an email was stored in session data from registration\r\n When they click to "Resend-Email"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user will not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user with an email was stored in session data from registration\r\n When they click to "Resend-Email"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user will receive a verification email\r\n And a success banner is shown stating that their email was resent'}},Default:()=>e(fe,Object.assign({},Yo)),EmailVerificationWithError:()=>e(fe,Object.assign({},Qo)),EmailVerificationLoading:()=>e(fe,Object.assign({},Ko)),EmailVerificationSuccess:()=>e(fe,Object.assign({},el))}),rl={states:{error:"",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},nl={states:{error:"",loading:!1,reset:!1,confirmPassword:!1,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},al={states:{error:"Something went wrong. Please try again.",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},il={states:{error:"",loading:!0,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},sl={states:{error:"",loading:!1,reset:!0,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},ol={states:{error:"",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!1,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},ll=Object.freeze({__proto__:null,default:{title:"Components/Portal Reset Password",parameters:{scenario:'@author:\r\n@owner:ian\r\nFeature: Reset Password\r\n\r\n\r\n Background: A user in on the password reset page\r\n Given a user who has been redirected to the password reset page\r\n\r\n @motivating\r\n Scenario: Users can reset their password\r\n Given a user has a valid oob code as a url query parameter\r\n When they enter their password twice\r\n And they click "Update"\r\n Then their password is updated\r\n And a banner with a success message will be displayed\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their password reset code is invalid or expired\r\n When they click "Continue"\r\n Then they will be redirected to "/"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users must enter the same password twice to successfully reset their password\r\n Given a user has been redirected to the password reset page\r\n And they have a valid oob code as a url query parameter\r\n When they enter two different passwords into the password reset form\r\n And they click "Update"\r\n Then their password is not be reset\r\n And an error banner stating the input passwords must match appears\r\n And their password will not be reset\r\n When they enter the same password twice\r\n And they click "Update"\r\n Then a banner appears with a success message\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario: Users are redirected to "/" by default\r\n Given the component does not have prop "nextPage"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has entered their password twice\r\n When they click "Update"\r\n Then their password is updated\r\n And they are redirected to "/"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop "nextPage" with value "/activity"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has entered their password twice\r\n When they click "Update"\r\n Then their password is updated\r\n And they are redirected to "/activity"'}},Default:()=>e(ge,Object.assign({},rl)),DefaultWithoutConfirmField:()=>e(ge,Object.assign({},nl)),ResetPasswordWithError:()=>e(ge,Object.assign({},al)),ResetPasswordLoading:()=>e(ge,Object.assign({},il)),ResetPasswordSuccess:()=>e(ge,Object.assign({},sl)),CodeValidating:()=>e(ge,Object.assign({},ol))}),dl={states:{error:"Something went wrong. Please try again.",loading:!1,verified:!1},data:{oobCode:"abc123"},callbacks:{gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},ul={states:{error:"",loading:!1,verified:!0},data:{oobCode:"abc123"},callbacks:{gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},cl=Object.freeze({__proto__:null,default:{title:"Components/Portal Verify Email",parameters:{scenario:'@author:\r\n@owner:ian\r\nFeature: Verify Email\r\n\r\n\r\n Background: A user is on the email verification page\r\n Given a user who has been redirected to the email verification page\r\n\r\n @motivating\r\n Scenario: Verifying your email will take you to the portal login page\r\n Given a user has a valid oob code as a url query parameter\r\n When they click "Verify Email"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says "Continue" will appear\r\n When they click "Continue"\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users will be automatically redirected if they dont click "Continue"\r\n Given a user has a valid oob code as a url query parameter\r\n When they click "Verify Email"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says "Continue" will appear\r\n When they wait 5 seconds\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users are notified if verifying their email has failed\r\n Given a user has a valid oob code as a url query parameter\r\n When they click "Verify Email"\r\n Then the button will enter a loading state\r\n When their email fails to be validated\r\n Then an banner is shown stating that an error occured\r\n\r\n @motivating\r\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their verification code is invalid or expired\r\n When they click "Continue"\r\n Then they will be redirected to "/"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users are redirected to "/" by default\r\n Given the component does not have prop "nextPage"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has verified their email\r\n When they click "Continue"\r\n Then they will be redirected to "/"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop "nextPage" with value "/activity"\r\n And the users url does not contain a "nextPage" query parameter\r\n And a user has verified their email\r\n When they click "Continue"\r\n Then they will be redirected to "/activity"\r\n\r\n @motivating\r\n Scenario Outline: Users will be redirected to the value of the nextPage url parameter if it exists\r\n Given the component <mayHave> prop "nextPage" with <nextPageValue>\r\n And the users url contains a "nextPage" query paramater with <nextPageParamValue>\r\n And the user has verified their email\r\n When they click "Continue"\r\n Then they are redirected to <nextPageParamValue>\r\n Examples:\r\n | mayHave | nextPageValue | nextPageParamValue |\r\n | has | /dashboard | /activity |\r\n | does not have | N/A | /activity |'}},EmailVerificationWithError:()=>e(be,Object.assign({},dl)),EmailVerificationSuccess:()=>e(be,Object.assign({},ul))}),ml=Object.freeze({__proto__:null,default:{title:"Components/Asset Card"},Default:()=>e(ve,Object.assign({},{text:{titleText:"Marketing Banner"},imgUrl:"../../assets/saasquatch-logo.png",callbacks:{}})),CardWithLongText:()=>e(ve,Object.assign({},{text:{titleText:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam, sunt dolores? Dolore temporibus autem officia blanditiis minus in voluptatem molestiae!"},imgUrl:"../../assets/saasquatch-logo.png",callbacks:{}})),CardWithNoImg:()=>e(ve,Object.assign({},{text:{titleText:"Marketing Banner"},imgUrl:"",callbacks:{}}))}),pl={data:{programs:[{key:"program1",label:"My Referral Program"},{key:"program2",label:"My Rewards Program"}]}},hl={states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}},fl={states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}},gl=()=>e(ue,Object.assign({},pl),e(ce,Object.assign({},hl)),e(ce,Object.assign({},fl))),bl=Object.freeze({__proto__:null,default:{title:"Components/Divided Layout"},Row:()=>e("sqm-divided-layout",{direction:"row"},e(gl,null),e("div",{style:{padding:"48px"}},e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))})))),Column:()=>e("sqm-divided-layout",{direction:"column"},e(gl,null),e("div",{style:{padding:"48px"}},e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))})))),ColumnCustomDivider:()=>e("sqm-divided-layout",{direction:"column",dividerStyle:"1px solid red"},e(gl,null),e("div",{style:{padding:"48px"}},e(X,Object.assign({},{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))}))))}),vl={states:{open:!1,loading:!1,success:!1,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},yl={states:{open:!0,loading:!1,success:!1,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},wl={states:{open:!0,loading:!1,success:!1,error:"Network error. Please try again.",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},$l={states:{open:!0,loading:!1,success:!1,error:"Passwords do not match.",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},xl={states:{open:!0,loading:!0,success:!1,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},ql={states:{open:!0,loading:!1,success:!0,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:e=>console.log(e),submit:e=>console.log("Submit",e)}},Cl=Object.freeze({__proto__:null,default:{title:"Components/Change Password",parameters:{scenario:'Feature: Change Password\r\n\r\n @motivating\r\n Scenario: Users can change their password\r\n Given a user has registered for the portal\r\n And they have a password\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n Then a popup will appear\r\n When they enter their new password\r\n And confirm it\r\n And click "Change Password"\r\n Then they will see a success banner stating that the change was successful\r\n When they logout\r\n And try to login\r\n Then they will not be able to login with their old password\r\n But they will be able to login with their new password\r\n\r\n @motivating\r\n Scenario: Users must confirm their password change\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n Then a popup will appear\r\n When they enter their new password\r\n But they enter a different password to confirm\r\n And click "Change Password"\r\n Then they will see an error banner stating that the passwords didnt match\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password\r\n\r\n @motivating\r\n Scenario: Users must enter a new password and confirm it to change their password\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n Then a popup will appear\r\n When they click "Change password"\r\n Then a validation error will appear for the new password field\r\n And their password will not be changed\r\n When they enter a new password\r\n And they click "Change password"\r\n Then a validation error will appear for the confirm new password field\r\n And their password will not be changed\r\n\r\n @motivating\r\n Scenario: An error banner will be displayed if the password change fails\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click "Change your password..."\r\n When they enter their new password\r\n And confirm it\r\n And click "Change Password"\r\n But the change fails\r\n Then they will see an error banner stating that the change failed\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password'}},Default:()=>e(it,Object.assign({},vl)),Open:()=>e(it,Object.assign({},yl)),Error:()=>e(it,Object.assign({},wl)),PaswordError:()=>e(it,Object.assign({},$l)),Loading:()=>e(it,Object.assign({},xl)),Success:()=>e(it,Object.assign({},ql))});L.setup(M());const Dl={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},El={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!1,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},kl={states:{success:!1,loading:!0,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Al={states:{success:!1,loading:!1,submitDisabled:!0,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Sl={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:"Something went wrong. Please try again."}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Tl={states:{success:!0,loading:!1,submitDisabled:!1,showCountry:!0,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},Fl=Object.freeze({__proto__:null,default:{title:"Components/Portal Profile"},Default:()=>e(pe,Object.assign({},Dl)),DefaultNoCountry:()=>e(pe,Object.assign({},El)),Loading:()=>e(pe,Object.assign({},kl)),Disabled:()=>e(pe,Object.assign({},Al)),Error:()=>e(pe,Object.assign({},Sl)),Success:()=>e(pe,Object.assign({},Tl))}),Rl={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:td(),dateExpires:rd(),dateCancelled:134400,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}},Pl={dateExpires:null},Il={dateScheduledFor:null},Bl={fuelTankCode:null},Nl={type:"PCT_DISCOUNT"},Ol={type:"CREDIT"},Ll={type:"FUELTANK"},Ml={type:"INTEGRATION"},jl={statuses:["AVAILABLE","PENDING"]},_l={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5},Vl={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5},Gl={statuses:["AVAILABLE","EXPIRED","REDEEMED"]},Hl={statuses:["AVAILABLE"]},Wl=[],zl=[{...Rl,...Hl}],Ul=[{...Rl,...Nl,...jl},{...Rl,...Ol}],Zl=[{...Rl,...Ll,...Pl},{...Rl,...Ll,...Vl},{...Rl,...jl,...Bl}],Jl=[{...Rl,...Ll},{...Rl,...Ml},{...Rl,...jl},{...Rl,..._l,...Pl,...Bl},{...Rl,...Vl,...Bl}],Xl=[{...Rl,...Gl,...Bl},{...Rl,...Hl,...Pl},{...Rl,...jl},{...Rl,..._l},{...Rl,...Vl},{...Rl,...jl,...Pl,...Il},{...Rl,..._l},{...Rl,...Vl}],Yl=[{...Rl,...Ml},{...Rl,...Gl},{...Rl,...Hl},{...Rl,..._l,...Pl},{...Rl,...Vl},{...Rl,...jl},{...Rl,...Nl},{...Rl,...Ll},{...Rl,..._l,...Pl},{...Rl,...Ol}];function Ql(){return rn.DateTime.now().toMillis()+1e4}function Kl(){return rn.DateTime.now().toMillis()+4e5}function ed(){return rn.DateTime.now().toMillis()+9e6}function td(){return rn.DateTime.now().toMillis()+6e8}function rd(){return rn.DateTime.now().toMillis()+1e10}function nd(){return rn.DateTime.now().toMillis()+2e11}const ad=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...jl,...Il}]}),id=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Hl,...Pl}]}),sd=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,..._l}]}),od=Object.freeze({__proto__:null,default:{title:"Components/Referral Table Rewards Cell"},PendingNoUnpend:ad,PendingNoUnpendNoDetails:()=>e("sqm-referral-table-rewards-cell",{hideDetails:!0,rewards:[{...Rl,...jl,...Il}]}),PendingWithUnpend:()=>[e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...jl,dateScheduledFor:Ql()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...jl,dateScheduledFor:Kl()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...jl,dateScheduledFor:ed()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...jl,dateScheduledFor:td()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...jl,dateScheduledFor:rd()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...jl,dateScheduledFor:nd()}]})],AvailableNoExpiry:id,AvailableWithExpiry:()=>[e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Hl,dateExpires:Ql()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Hl,dateExpires:Kl()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Hl,dateExpires:ed()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Hl,dateExpires:td()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Hl,dateExpires:rd()}]}),e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Hl,dateExpires:nd()}]})],Redeemed:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Gl}]}),Cancelled:sd,Expired:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Rl,...Vl}]}),EmptyCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Wl}),oneRewardCell:()=>e("sqm-referral-table-rewards-cell",{rewards:zl}),twoRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Ul}),threeRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Zl}),fiveRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Jl}),eightRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Xl}),tenRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Yl})}),ld=e("div",{slot:"loading",style:{display:"contents"}},e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))),dd=e("div",{slot:"empty",style:{display:"contents"}},e("sqm-table-row",null,e("sqm-table-cell",{colspan:5,style:{textAlign:"center"}},"No Referrals Yet"))),ud={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:16281468e5,dateExpires:16290108e5,dateCancelled:134400,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}},cd={statuses:["AVAILABLE","PENDING"]},md={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5},pd={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5},hd={statuses:["AVAILABLE"]},fd={dateExpires:null},gd={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"Rewards")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-user-cell",{name:"07/15/1902"}),e(ad,null)],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-user-cell",{name:"09/05/1999"}),e(id,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-user-cell",{name:"12/21/1984"}),e(sd,null)]]}},bd={data:{textOverrides:{showLabels:!1,prevLabel:"Prev",moreLabel:"View More"}}},vd={states:{hasPrev:!0,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"CUSTOM PREVIOUS TEXT",moreLabel:"CUSTOM NEXT TEXT"}}},yd={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"City"),e("div",null,"State/Province"),e("div",null,"Country"),e("div",null,"Referrals"),e("div",null,"Reward Earnings"),e("div",null,"Status")],rows:[[e("sqm-referral-table-user-cell",{name:"Bartholomew Christopher-Johnston Wallace"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-220896e5}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14,000,000"}),e("sqm-referral-table-user-cell",{name:"$800,000,000,000"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},wd={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Lorem ipsum dolor sit amet consectetur adipisicing elit."),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"City"),e("div",null,"State/Province"),e("div",null,"Country"),e("div",null,"Referrals"),e("div",null,"Rewarddddddddddd Earningsssssssssssss"),e("div",null,"Status")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-2128547493e3}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14"}),e("sqm-referral-table-user-cell",{name:"$88"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},$d={states:{hasPrev:!1,hasNext:!0,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB"),e("div",null,"City"),e("div",null,"State/Province"),e("div",null,"Country"),e("div",null,"Referrals"),e("div",null,"Reward Earnings"),e("div",null,"Status")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-2128547493e3}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14"}),e("sqm-referral-table-user-cell",{name:"$88"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},xd=Object.freeze({__proto__:null,default:{title:"Components/Referral Table"},SimpleUserTable:()=>e(zr,Object.assign({},gd)),HiddenLabelsTable:()=>e(zr,Object.assign({},{...gd,...bd})),CustomButtonTextTable:()=>e(zr,Object.assign({},{...gd,...vd})),FullUserTable:()=>e(zr,Object.assign({},$d)),LongCellTextTable:()=>e(zr,Object.assign({},yd)),LongColumnTextTable:()=>e(zr,Object.assign({},wd)),EmptyTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},elements:{emptyElement:dd,loadingElement:ld,columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB")],rows:[]}}}),LoadingTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,loading:!0},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},elements:{emptyElement:dd,loadingElement:ld,columns:[e("div",null,"Name"),e("div",null,"Email"),e("div",null,"DOB")],rows:[]}}}),FullRewardsTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,loading:!1},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},referralData:[]},elements:{emptyElement:dd,loadingElement:ld,columns:[e("div",null,"User"),e("div",null,"Rewards"),e("div",null,"Status"),e("div",null,"Date Started"),e("div",null,"Date Converted")],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-rewards-cell",{rewards:[{...ud,...hd},{...ud,...cd},{...ud,...md}]}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:1627427794891})],[e("sqm-referral-table-user-cell",{name:"Sarah Williams"}),e("sqm-referral-table-rewards-cell",{rewards:[{...ud,...pd}]}),e("sqm-referral-table-status-cell",{statusText:"Incomplete",converted:!1}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:null})],[e("sqm-referral-table-user-cell",{name:"Marvin Smith"}),e("sqm-referral-table-rewards-cell",{rewards:[{...ud,...fd},{...ud,...cd}]}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:1627427794891})]]}}})}),qd=[{id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:16281468e5,dateExpires:16290108e5,dateCancelled:134400,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}}],Cd=Object.freeze({__proto__:null,default:{title:"Components/Referral Table Cell"},TableCell:()=>e("sqm-referral-table-cell",{innerTemplate:"Table Cell Text"}),TableUserCell:()=>e("sqm-referral-table-user-cell",{name:"Table User Cell Text"}),EmptyCell:()=>e("sqm-sqm-referral-table-cell",null,"-"),StatusCell:()=>e("div",null,e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-status-cell",{statusText:"In Progress",converted:!1})),DateCell:()=>e("sqm-referral-table-date-cell",{date:8e11}),RewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:qd})}),Dd=Object.freeze({__proto__:null,default:{title:"Tests/User Name"},DemoData:()=>e("sqm-user-name",{demoData:{loading:!1,loadingText:"...",username:"Test Testerson"}}),Username:()=>e("sqm-user-name",null)}),Ed=Object.freeze({__proto__:null,default:{title:"Components/Portal Password Field"},Start:()=>e("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:!0,validationErrors:{},content:{fieldLabel:"Password"}}}}),EmptyError:()=>e("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:!0,validationErrors:{password:"Cannot be empty"},content:{fieldLabel:"Password"}}}}),ValidationError:()=>e("sqm-password-field",{demoData:{initValue:"asdf",states:{enableValidation:!0,validationErrors:{password:"Incomplete"},content:{fieldLabel:"Password"}}}})}),kd=()=>e("svg",{width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z",fill:"var(--sl-color-primary-200)"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9v1h13V9h-13z",fill:"var(--sl-color-primary-300)"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z",fill:"var(--sl-color-primary-600)"}));function Ad(t){const{progress:r=0,goal:n=1,steps:a=!1,progressBarUnit:i="",repeatable:s=!1,complete:o=!1}=t;console.log("progress bar props",t);const l=kd(),d=kd(),u=kd();var c=[],m="",p=Math.floor(r/n);s?a?function(){let t=Math.floor(r/n);if(t<2){let t=1/n;for(let a=1;a<2*n+1;a++)m+=t+"fr 0fr ",a>r?a==n?(m+="0fr ",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},n)),c.push(e("div",{class:"gift bw"},l))):a==2*n?(m+="0fr 0fr",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},2*n)),c.push(e("div",{class:"gift bw"},d))):(c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty"},i+a))):a==n?(m+="0fr ",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},a)),c.push(e("div",{class:"gift"},u))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},a)))}else{let a=r%n+n,i=1/n;m+="0fr 0fr ",c.push(e("div",{class:"progress bg"},n*(t-1))),c.push(e("div",{class:"gift start"},l));for(let r=1;r<2*n+1;r++)m+=i+"fr 0fr ",r<=n?r==n?(m+="0fr ",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},r+n*(t-1))),c.push(e("div",{class:"gift"},d))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},r+n*(t-1)))):r>a?r==2*n?(m+="0fr 0fr",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},r+n*(t-1))),c.push(e("div",{class:"gift bw"},u))):(c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty"},r+n*(t-1)))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},r+n*(t-1))))}}():function(){let t=Math.floor(r/n),a=r%n/n*.5;0==t?(m=a+"fr 0fr "+(.5-a)+"fr 0fr 0fr 0.5fr 0fr 0fr",c.push(e("div",{class:"filled"})),c.push(e("div",{class:r==n?"progress top bg":"progress top"},i+r)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+n)),c.push(e("div",{class:"gift"},l)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+2*n)),c.push(e("div",{class:"gift bw"},d))):1==t?(m="0.5fr 0fr 0fr "+a+"fr 0fr "+(.5-a)+"fr 0fr 0fr",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},i+n)),c.push(e("div",{class:"gift"},l)),c.push(e("div",{class:"filled"})),c.push(e("div",{class:r==n?"progress top bg":"progress top"},r==n?"":i+r)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+2*n)),c.push(e("div",{class:"gift bw"},d))):(m="0fr 0fr 0.5fr 0fr 0fr "+a+"fr 0fr "+(.5-a)+"fr 0fr 0fr",c.push(e("div",{class:"progress bg"},i+n*(t-1))),c.push(e("div",{class:"gift start"},l)),c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},i+n*t)),c.push(e("div",{class:"gift"},d)),c.push(e("div",{class:"filled"})),c.push(e("div",{class:r==n*t?"progress top bg":"progress top"},r==n*t?"":i+r)),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},i+n*(t+1))),c.push(e("div",{class:"gift bw"},u)))}():a?function(){let t=1/n;for(let a=1;a<n;a++)m+=t+"fr 0fr ",a>r?(c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty"},a))):(c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress"},a)));m+=t+"fr 0fr ",n<=r?(m+="0fr ",c.push(e("div",{class:"filled"})),c.push(e("div",{class:"progress bg"},n)),c.push(e("div",{class:"gift"},l))):(m+="0fr ",c.push(e("div",{class:"remain"})),c.push(e("div",{class:"empty bg"},n)),c.push(e("div",{class:"gift"},l)))}():function(){const t=r/n;m=b(t,0,1)+"fr 0fr "+b(1-t,0,1)+"fr 0fr 0fr",c.push(e("div",{class:"filled"})),c.push(e("div",{class:b(r,0,n)==n?"progress top bg":"progress top"},b(r,0,n)==n?"":i+b(r,0,n))),c.push(e("div",{class:"remain"})),c.push(e("div",{class:"progress bg"},n)),c.push(e("div",{class:"gift"},l))}();const h={ProgressBar:{"& .progress-bar":{height:"15px",marginTop:a?"var(--sl-spacing-x-medium)":"var(--sl-spacing-large)",marginBottom:"var(--sl-spacing-xx-large)",marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-small)",display:"grid",gridTemplateColumns:m,lineHeight:"45px",userSelect:"none"},"& .progress-bar.repeatable-steps":{marginLeft:"var(--sl-spacing-x-small)"},"& .filled:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:o?"var(--sl-color-success-500)":"var(--sl-color-primary-500)"},"& .progress":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .progress::after":{content:'""',width:"12px",height:"12px",display:"flex",backgroundColor:o?"var(--sl-color-success-500)":"var(--sl-color-primary-500)",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .progress.bg:after":{width:"0",height:"0",border:"none"},"& .progress.top":{position:"relative",top:"-40px"},"& .progress.top:after":{top:"-16%"},"& .empty":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .empty::after":{content:'""',width:"12px",height:"12px",border:"2px solid #E0E0E0",margin:"-2px",display:"flex",backgroundColor:"white",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .empty.bg:after":{width:"0",height:"0",border:"none"},"& .remain:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"#E0E0E0"},"& .gift.bw":{filter:"grayscale(100%)"},"& .gift.start":{transform:"scale(80%)",top:"-20px"},"& .gift":{textAlign:"center",marginLeft:"-100px",marginRight:"-100px",position:"relative",display:"list-item",listStyleType:"none",top:"-18px",filter:n<=r?"":"grayscale(100%)",zIndex:"1"}}};L.setup(M());const f=L.createStyleSheet(h),g=f.toString();return e("div",{class:f.classes.ProgressBar},e("style",{type:"text/css"},g),e("div",{class:p>1?"progress-bar repeatable-steps":"progress-bar"},c));function b(e,t,r){return Math.min(Math.max(e,t),r)}}function Sd(t){const{rewardAmount:r,cardTitle:n,description:a,showProgressBar:i,progress:s=0,goal:o,rewardUnit:l,repeatable:d,showExpiry:u,dateExpires:c,buttonText:m,buttonLink:p,loading:h}=t;console.log({props:t});const f=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},e("path",{fill:"currentColor","fill-rule":"evenodd",d:"M1.636 9a7.364 7.364 0 1114.728 0A7.364 7.364 0 011.636 9zM9 0a9 9 0 100 18A9 9 0 009 0zm5.192 6.266a.982.982 0 00-1.548-1.208l-4.787 6.137-2.58-2.58a.982.982 0 00-1.39 1.388l3.367 3.366a.982.982 0 001.468-.09l5.47-7.013z","clip-rule":"evenodd"})),g=e("svg",{width:11,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z",fill:"currentColor"})),b={HostBlock:H,TaskCard:{"& .main > div":{margin:"var(--sl-spacing-medium)"},"& .main":{position:"relative",boxSizing:"border-box",minWidth:"347px",background:"var(--sl-color-white)",border:"1px solid var(--sl-color-gray-300)",borderRadius:"var(--sl-border-radius-medium)",fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)"},"& .main.complete":{background:"var(--sl-color-success-50)",borderColor:"var(--sl-color-success-700)"}},Header:{display:"flex","& .icon":{alignSelf:"center",lineHeight:"0",color:"var(--sl-color-success-700)",fontSize:"var(--sl-font-size-large)",marginRight:"var(--sl-spacing-x-small)"},"& .value":{alignSelf:"center",color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"100%",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{alignSelf:"end",textTransform:"uppercase",color:"var(--sl-color-gray-600)",fontSize:"var(--sl-font-size-x-small)",lineHeight:"var(--sl-font-size-medium)",marginRight:"var(--sl-spacing-xx-small)"}},Title:{color:"var(--sl-color-black)",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-semibold)"},Footer:{display:"flex","& .icon":{fontSize:"var(--sl-font-size-xx-small)",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{marginTop:"auto",verticalAlign:"text-bottom",fontSize:"var(--sl-font-size-x-small)",color:"var(--sl-color-gray-600)"},"& .success":{color:"var(--sl-color-success-600)!important",fontWeight:"var(--sl-font-weight-semibold)"},"& .action":{marginTop:"auto",marginLeft:"auto"},"& sl-button.action::part(base) ":{color:"var(--sl-color-white)",background:"var(--sl-color-primary-500)",border:"1px solid var(--sl-color-primary-500)",borderRadius:"var(--sl-border-radius-medium)"},"& sl-button.action.completed::part(base) ":{border:"1px solid var(--sl-color-gray-300)!important",background:"var(--sl-color-gray-300)!important"}}};L.setup(M());const v=L.createStyleSheet(b),y=v.toString(),w=s>=o,$=i?Math.floor(s/o):s,x=w&&!1===d;return console.log({showProgressBar:i,loading:h}),e("div",{class:v.classes.TaskCard},e("div",{class:w?"main complete":"main"},e("style",{type:"text/css"},y),e("div",{class:v.classes.Header},w&&e("span",{class:"icon"},f),e("span",{class:"value"},r),e("span",{class:"text"},l)),e("div",{class:v.classes.Title},n),e(Td,{description:a}),i&&h?e("sl-skeleton",{style:{width:"98%",margin:"0 auto"}}):i&&e(Ad,Object.assign({},t,{complete:x})),e("div",{class:v.classes.Footer},e("span",{class:"text"},d&&e("div",null,e("span",{class:$>0?"icon success":"icon"},g),e("span",{class:$>0?"success":""},"Completed ",$," times")),u&&e("span",null,"Ends "," ",c)),e("sl-button",{class:x?"action completed":"action",size:"small",onClick:()=>window.open(p),disabled:x},m))))}function Td(t){L.setup(M());const r=L.createStyleSheet({Description:{"& input[type=checkbox]":{display:"none"},"& input:checked ~ .details":{transform:"rotate(-180deg)"},"& .details":{position:"absolute",top:"var(--sl-spacing-medium)",right:"var(--sl-spacing-medium)",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-large)","& :hover":{color:"var(--sl-color-primary-700)"},transformOrigin:"50% 37%",transition:"transform var(--sl-transition-medium) ease"},"& input:checked ~ .summary":{transition:"max-height var(--sl-transition-medium) ease",maxHeight:"300px"},"& .summary":{display:"block",overflow:"hidden",color:"var(--sl-color-gray-700)",fontSize:"var(--sl-font-size-x-small)",maxHeight:"0px",transition:"max-height var(--sl-transition-fast) ease-out"}}}),n=r.toString(),a=Math.random().toString(36).slice(2);return e("div",null,e("style",{type:"text/css"},n),e("span",{class:r.classes.Description},e("input",{type:"checkbox",id:"details-"+a}),e("label",{class:"details",htmlFor:"details-"+a},e("sl-icon",{name:"chevron-down"})),e("span",{class:"summary"},t.description)))}const Fd={width:"347px",minWidth:"347px",resize:"horizontal",height:"fit-content",overflow:"hidden"},Rd=Object.freeze({__proto__:null,default:{title:"Components/Task Card/",parameters:{scenario:'@author:derek\r\n@owner:\r\nFeature: Task Card\r\n\r\n\tScenario: A header, body title, description and a CTA button are always displayed\r\n\t\tGiven the Task Card is configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rewardAmount | "40" |\r\n\t\t\t| rewardUnit | "Points" |\r\n\t\t\t| cardTitle | Complete a survey |\r\n\t\t\t| description | Fill out our survey form and receive points! |\r\n\t\t\t| buttonText | Take Survey |\r\n\t\t\t| buttonLink | https://example.com/ |\r\n\t\tWhen a user views the Task Card\r\n\t\tThen they see "40 Points" as the heading\r\n\t\tAnd the "40" is bolded\r\n\t\tAnd they see "Complete a survey" bolded in the body\r\n\t\tAnd a details icon in the top right hand corner\r\n\t\tAnd a button with text "Take Survey" in the bottom right hand corner\r\n\t\tWhen they click the button\r\n\t\tThen they are redirected to "example.com" in a new window\r\n\t\tWhen they click the details icon\r\n\t\tThen "Fill out our survey form and receive points!" is shown as the card description\r\n\r\n\tScenario: A loading state is displayed while the Task Card is loading\r\n\t\tGiven a Task Card component\r\n\t\tWhen a user views the Task Card\r\n\t\tThen a loading state is displayed\r\n\t\tWhen the Task Card has loaded\r\n\t\tThen the loading state disapears\r\n\r\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\r\n\t\tGiven a Task Card component\r\n\t\tAnd it <mayHave> "showProgressBar" <value>\r\n\t\tWhen a user views the Task Card\r\n\t\tThen the progress bar <mayBe> displayed\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | is |\r\n\t\t\t| has | false | isn\'t |\r\n\t\t\t| doesn\'t have | | isn\'t |\r\n\r\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only be default\r\n\t\tGiven a Task Card component\r\n\t\tAnd it <mayHave> "repeatable" <value>\r\n\t\tAnd a user who has already completed the task\r\n\t\tWhen they views the Task Card\r\n\t\tThen they see a green checkmark icon beside the card heading\r\n\t\tAnd the card <mayBe> green\r\n\t\tAnd the card\'s border <mayBe> green\r\n\t\tAnd the CTA button <mayBe> disabled\r\n\t\tAnd the CTA button <mayBe> grey\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | isn\'t |\r\n\t\t\t| has | false | is |\r\n\t\t\t| doesn\'t have | | is |\r\n\r\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\r\n\t\tGiven a Task Card component\r\n\t\tAnd it is configured for <expiry>\r\n\t\tWhen a user views the Card on <day>\r\n\t\tThen they the expiry on <cardLocation>\r\n\t\tAnd the text <mayBe> orange\r\n\t\tAnd the card <mayBe> disabled\r\n\t\tAnd the card <mayBe> grey\r\n\t\tAnd the user <mayBe> unable to complete the loyalty task\r\n\t\tExamples:\r\n\t\t\t| expiry | day | cardLocation | mayBe |\r\n\t\t\t| Dec 31 2021 11:59:59 | Dec 1st 2021 12:00:00 | bottom left | isn\'t |\r\n\t\t\t| Dec 31 2021 11:59:59 | Dec 31 2021 11:00:00 | top right | isn\'t |\r\n\t\t\t| Dec 31 2021 11:59:59 | Jan 15th 2022 10:00:00 | top right | is |\r\n\r\n\tScenario Outline: Task expiry can be hidden or shown but is hidden by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured with an expiry\r\n\t\tAnd it <mayHave> "showExpiry" <value>\r\n\t\tWhen a user views the Task card\r\n\t\tThen the expiry <mayBe> shown in the bottom left hand corner\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | is |\r\n\t\t\t| has | false | isn\'t |\r\n\t\t\t| doesn\'t have | | isn\'t |\r\n\r\n\t#DS: Currently this text is non configurable and isnt set up for proper pluralization\r\n\tScenario Outline: A task completion count is displayed for repeatable tasks\r\n\t\tGiven a Task Card is configured for a repeatable task\r\n\t\tAnd has "goalCompletionNumber" <goalCompletionNumberValue>\r\n\t\tAnd a user with <userGoalProgress>\r\n\t\tWhen the user views the task card\r\n\t\tThen they see a repeat icon\r\n\t\tAnd the <text> in the bottom left hand corner\r\n\t\tAnd the <text> is green\r\n\t\tExamples:\r\n\t\t\t| goalCompletionNumber | userGoalProgress | text |\r\n\t\t\t| 1 | 0 | Completed 0 times |\r\n\t\t\t| 1 | 1 | Completed 1 times |\r\n\t\t\t| 1 | 2 | Completed 2 times |\r\n\t\t\t| 10 | 5 | Completed 0 times |\r\n\t\t\t| 10 | 12 | Completed 1 times |\r\n\t\t\t| 10 | 29 | Completed 2 times |\r\n\r\n\tScenario Outline: The source of a user\'s progress can be a custom field or a program goal\r\n\t\tGiven a Task Card is configured to have <progressSourcePath> progress source\r\n\t\tAnd a user\r\n\t\tWhen they view the Task card\r\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the Goal Completion Count\r\n\t\tExamples:\r\n\t\t\t| value |\r\n\t\t\t| /customFields/activityCount |\r\n\t\t\t| /customFields/purchaseTotal |\r\n\t\t\t| /programGoals/count%2FComment-on-Article |\r\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\r\n\r\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\r\n\t\tGiven a Task Card is configured to have <goalValue>\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen they are shown to have <progressValue> towards <goalValue>\r\n\t\tWhen their progress grows larger than <goalValue>\r\n\t\tThen the task is marked as completed\r\n\t\tExamples:\r\n\t\t\t| goalValue | progressValue |\r\n\t\t\t| 1 | 0 |\r\n\t\t\t| 10 | 9 |\r\n\t\t\t| 5 | 2 |\r\n\r\n\tScenario: The Goal Completion Number defaults to 1\r\n\t\tGiven a Task Card without a configured "goalCompletionNumber"\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen it <mayBe> marked as completed\r\n\t\tExamples:\r\n\t\t\t| progressValue | mayBe |\r\n\t\t\t| 0 | isn\'t |\r\n\t\t\t| 1 | is |\r\n\t\t\t| 2 | is |'}},NotRepeatable:()=>{const t={rewardAmount:20,showExpiry:!1,rewardUnit:"Points",cardTitle:"Complete a survey",repeatable:!1,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",cardTitle:"Comment on 5 articles",showProgressBar:!0,showExpiry:!1,goal:5,repeatable:!1,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",cardTitle:"Spend $500 at our Store",showProgressBar:!0,showExpiry:!1,goal:500,repeatable:!1,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Fd},e("h4",null,"One Action"),e(Sd,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"A Couple Actions"),e(Sd,Object.assign({},r,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:5}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"Many Actions"),e(Sd,Object.assign({},n,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:230}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:500}))," ",e("h5",null)))},NotRepeatableWithExpiry:()=>{const t={rewardAmount:20,rewardUnit:"Points",cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,showExpiry:!0,repeatable:!1,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",cardTitle:"Comment on 5 articles",showProgressBar:!0,goal:5,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",showExpiry:!0,repeatable:!1,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",repeatable:!1,cardTitle:"Spend $500 at our Store",showProgressBar:!0,goal:500,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Fd},e("h4",null,"One Action"),e(Sd,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"A Couple Actions"),e(Sd,Object.assign({},r,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:5}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"Many Actions"),e(Sd,Object.assign({},n,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:230}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:500}))," ",e("h5",null)))},Repeatable:()=>{const t={rewardAmount:20,rewardUnit:"Points",showExpiry:!1,cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,repeatable:!0,buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",showExpiry:!1,cardTitle:"Comment on 5 articles",showProgressBar:!0,repeatable:!0,goal:5,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",showExpiry:!1,cardTitle:"Spend $500 at our Store",showProgressBar:!0,repeatable:!0,goal:500,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Fd},e("h4",null,"One Action"),e(Sd,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"A Couple Actions"),e(Sd,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:5}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:7}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:10}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"Many Actions"),e(Sd,Object.assign({},n,{progress:100}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:500}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:650}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:1e3}))," ",e("h5",null)))},RepeatableWithExpiry:()=>{const t={rewardAmount:20,rewardUnit:"Points",cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Take survey",goal:1,repeatable:!0,showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",showProgressBar:!1,loading:!1},r={rewardAmount:40,rewardUnit:"Points",cardTitle:"Comment on 5 articles",showProgressBar:!0,repeatable:!0,goal:5,steps:!0,description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Start reading",showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1},n={rewardAmount:150,rewardUnit:"Points",cardTitle:"Spend $500 at our Store",showProgressBar:!0,repeatable:!0,goal:500,progressBarUnit:"$",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",buttonText:"Visit our Store",showExpiry:!0,dateExpires:"Nov 1, 2021",buttonLink:"https://example.com/",loading:!1};return e("div",{style:{display:"inline-flex",gap:"32px"}},e("div",{style:Fd},e("h4",null,"One Action"),e(Sd,Object.assign({},t,{progress:0}))," ",e("h5",null),e(Sd,Object.assign({},t,{progress:1}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"A Couple Actions"),e(Sd,Object.assign({},r,{progress:1}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:5}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:7}))," ",e("h5",null),e(Sd,Object.assign({},r,{progress:10}))," ",e("h5",null)),e("div",{style:Fd},e("h4",null,"Many Actions"),e(Sd,Object.assign({},n,{progress:100}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:500}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:650}))," ",e("h5",null),e(Sd,Object.assign({},n,{progress:1e3}))," ",e("h5",null)))}});function Pd({matrix:t,props:r,Component:n}){return function(...e){var t=[],r=e.length-1;return function n(a,i){for(var s=0,o=e[i].length;s<o;s++){var l=a.slice(0);l.push(e[i][s]),i==r?t.push(l):n(l,i+1)}}([],0),t}(...Object.keys(t).map((e=>t[e].map((t=>({[e]:t})))))).map((e=>e.reduce(((e,t)=>({...e,...t})),{}))).map((t=>{const a={...r,...t};return e("div",null,e(Id,{values:a}),e("hr",null),e(n,Object.assign({},a)))}))}function Id({values:t}){return e("table",null,e("tbody",null,Object.keys(t).map((r=>e("tr",null,e("th",null,r),e("td",null,JSON.stringify(t[r])))))))}const Bd=Object.freeze({__proto__:null,default:{title:"Components/Task Card Progress Bar",parameters:{scenario:"@author:\r\n@owner:\r\nFeature: Task Card Progress Bar\r\n\r\n\tScenario Outline: Progress Bar\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> with <unit> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | color |\r\n\t\t\t| -100 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 0 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 250 | 500 | ―――――――――●―――――――――🎁 | $ | no |\r\n\t\t\t| 500 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1000 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\tScenario Outline: Progress Bar Steps\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps from 1 to <goal>\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | color |\r\n\t\t\t| -1 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 0 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | 5 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\t\t\t| 7 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\r\n\r\n\tScenario Outline: Progress Bar Repeatable\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd <icon1> has <color1>\r\n\t\tAnd <icon2> has <color2>\r\n\t\tAnd <icon3> has <color3>\r\n\t\tAnd <icon1> shows <text1> below\r\n\t\tAnd <icon2> shows <text2> below\r\n\t\tAnd <icon3> shows <text3> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | icon1 | icon2 | icon3 | color1 | color2 | color3 | text 1 | text 2 | text 3 |\r\n\t\t\t| 250 | 500 | ――――●――――🎁―――――――🎁 | $ | NA | gift | gift | NA | no | no | NA | 500 | 1000 |\r\n\t\t\t| 500 | 500 | ―――――――――🎁―――――――🎁 | $ | NA | gift | gift | NA | yes | no | NA | 500 | 1000 |\r\n\t\t\t| 750 | 500 | ―――――――――🎁―――●―――🎁 | $ | NA | gift | gift | NA | yes | no | NA | 500 | 1000 |\r\n\t\t\t| 1000 | 500 | 🎁―――――――🎁―――――――🎁 | $ | gift | gift | gift | yes | yes | no | 500 | 1000 | 1500 |\r\n\t\t\t| 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | $ | gift | gift | gift | yes | yes | no | 500 | 1000 | 1500 |\r\n\r\n\t# \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t math logic inside text ?\r\n\t# | 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | gift | gift | gift | yes | yes | no | goal * (⌊ progress / goal ⌋ - 1) | goal * ⌊ progress / goal ⌋ | goal * (⌊ progress / goal ⌋ +1) |\r\n\r\n\r\n\tScenario Outline: Progress Bar Steps Repeatable\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar |"}},Default:()=>e(Ad,null),ProgressBar:()=>e("div",null,e(Pd,{matrix:{progress:[-100,0,100,500,1e3]},props:{progress:0,goal:500,progressBarUnit:"$"},Component:Ad})),ProgressBarSteps:()=>e("div",null,e(Pd,{matrix:{progress:[-1,0,1,5,7]},props:{progress:0,steps:!0,goal:5,progressBarUnit:"$"},Component:Ad})),ProgressBarRepeatable:()=>e("div",null,e(Pd,{matrix:{progress:[100,500,650,1200]},props:{progress:0,goal:500,progressBarUnit:"$",repeatable:!0},Component:Ad})),ProgressBarStepsRepeatable:()=>e("div",null,e(Pd,{matrix:{progress:[1,5,7,12]},props:{progress:0,steps:!0,goal:5,progressBarUnit:"$",repeatable:!0},Component:Ad}))}),Nd='<sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name fallback="Anonymous User"></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n><sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large">\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label"> <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to SaaSquatch. Earn\r\n commission for each successful lead you send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label"> <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label"> <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label"> <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button medium="twitter" size="medium" pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button medium="facebook" size="medium" pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n>\r\n';var Od=m((function(e){e.exports=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n={exports:{}};function a(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:a,changeDefaults:function(e){n.exports.defaults=e}};var i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return d[e]};var c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(c,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;var h=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var g={},b=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(e,t){g[" "+e]||(g[" "+e]=b.test(e)?e+"/":$(e,"/",!0));var r=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(v,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(y,"$1")+t:e+t}function $(e,t,r){var n=e.length;if(0===n)return"";for(var a=0;a<n;){var i=e.charAt(n-a-1);if(i!==t||r){if(i===t||!r)break;a++}else a++}return e.substr(0,n-a)}var x=function(e,t){if(t){if(i.test(e))return e.replace(s,u)}else if(o.test(e))return e.replace(l,u);return e},q=m,C=function(e,t){e=e.source||e,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r},D=function(e,t,r){if(e){var n;try{n=decodeURIComponent(m(r)).replace(h,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!f.test(r)&&(r=w(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r},E={exec:function(){}},k=function(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},A=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},S=function(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e},T=n.exports.defaults,F=$,R=function(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,a=t;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r},P=x,I=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,a=0;a<r;a++)if("\\"===e[a])a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&--n<0)return a;return-1};function B(e,t,r,n){var a=t.href,i=t.title?P(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var o={type:"link",raw:r,href:a,title:i,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,o}return{type:"image",raw:r,href:a,title:i,text:P(s)}}var N=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:F(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=F(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}var a={type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:[]};return this.lexer.inline(a.text,a.tokens),a}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(r,[]),text:r}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,n,a,i,s,o,l,d,u,c,m=t[1].trim(),p=m.length>1,h={type:"list",raw:"",ordered:p,start:p?+m.slice(0,-1):"",loose:!1,items:[]};m=p?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=p?m:"[*+-]");for(var f=new RegExp("^( {0,3}"+m+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(t=f.exec(e));){u=t[2].split("\n"),this.options.pedantic?(i=2,c=u[0].trimLeft()):(i=t[2].search(/[^ ]/),c=u[0].slice((i=t[1].length+(i>4?1:i))-t[1].length)),o=!1,r=t[0],!u[0]&&/^ *$/.test(u[1])&&(r=t[1]+u.slice(0,2).join("\n")+"\n",h.loose=!0,u=[]);var g=new RegExp("^ {0,"+Math.min(3,i-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(s=1;s<u.length;s++){if(d=u[s],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),g.test(d)){r=t[1]+u.slice(0,s).join("\n")+"\n";break}if(o){if(!(d.search(/[^ ]/)>=i)&&d.trim()){r=t[1]+u.slice(0,s).join("\n")+"\n";break}c+="\n"+d.slice(i)}else d.trim()||(o=!0),d.search(/[^ ]/)>=i?c+="\n"+d.slice(i):c+="\n"+d}h.loose||(l?h.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(c))&&(a="[ ] "!==n[0],c=c.replace(/^\[[ xX]\] +/,"")),h.items.push({type:"list_item",raw:r,task:!!n,checked:a,loose:!1,text:c}),h.raw+=r,e=e.slice(r.length)}h.items[h.items.length-1].raw=r.trimRight(),h.items[h.items.length-1].text=c.trimRight(),h.raw=h.raw.trimRight();var b=h.items.length;for(s=0;s<b;s++)this.lexer.state.top=!1,h.items[s].tokens=this.lexer.blockTokens(h.items[s].text,[]),h.items[s].tokens.some((function(e){return"space"===e.type}))&&(h.loose=!0,h.items[s].loose=!0);return h}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t){var r={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:R(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,a,i,s,o=r.align.length;for(n=0;n<o;n++)r.align[n]=/^ *-+: *$/.test(r.align[n])?"right":/^ *:-+: *$/.test(r.align[n])?"center":/^ *:-+ *$/.test(r.align[n])?"left":null;for(o=r.rows.length,n=0;n<o;n++)r.rows[n]=R(r.rows[n],r.header.length).map((function(e){return{text:e}}));for(o=r.header.length,a=0;a<o;a++)r.header[a].tokens=[],this.lexer.inlineTokens(r.header[a].text,r.header[a].tokens);for(o=r.rows.length,a=0;a<o;a++)for(s=r.rows[a],i=0;i<s.length;i++)s[i].tokens=[],this.lexer.inlineTokens(s[i].text,s[i].tokens);return r}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var r={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var r={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t){var r={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:P(t[1])}},t.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]):t[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=F(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var a=I(t[2],"()");if(a>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var s=t[2],o="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);l&&(s=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(r)?s.slice(1):s.slice(1,-1)),B(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0],this.lexer)}},t.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return B(r,n,r[0],this.lexer)}},t.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var a=n[1]||n[2]||"";if(!a||a&&(""===r||this.rules.inline.punctuation.exec(r))){var i,s,o=n[0].length-1,l=o,d=0,u="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);null!=(n=u.exec(t));)if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(s=i.length,n[3]||n[4])l+=s;else if(!((n[5]||n[6])&&o%3)||(o+s)%3){if(!((l-=s)>0)){if(s=Math.min(s,s+l+d),Math.min(o,s)%2){var c=e.slice(1,o+n.index+s);return{type:"em",raw:e.slice(0,o+n.index+s+1),text:c,tokens:this.lexer.inlineTokens(c,[])}}var m=e.slice(2,o+n.index+s-1);return{type:"strong",raw:e.slice(0,o+n.index+s+1),text:m,tokens:this.lexer.inlineTokens(m,[])}}}else d+=s}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),a=/^ /.test(r)&&/ $/.test(r);return n&&a&&(r=r.substring(1,r.length-1)),r=P(r,!0),{type:"codespan",raw:t[0],text:r}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},t.autolink=function(e,t){var r,n,a=this.rules.inline.autolink.exec(e);if(a)return n="@"===a[2]?"mailto:"+(r=P(this.options.mangle?t(a[1]):a[1])):r=P(a[1]),{type:"link",raw:a[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},t.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,a;if("@"===r[2])a="mailto:"+(n=P(this.options.mangle?t(r[0]):r[0]));else{var i;do{i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(i!==r[0]);n=P(r[0]),a="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t){var r,n=this.rules.inline.text.exec(e);if(n)return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):P(n[0]):n[0]:P(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}},e}(),O=E,L=C,M=k,j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:O,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};j.def=L(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}[.)])/,j.listItemStart=L(/^( *)(bull) */).replace("bull",j.bullet).getRegex(),j.list=L(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,j.html=L(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=L(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.blockquote=L(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal=M({},j),j.gfm=M({},j.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),j.gfm.table=L(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.pedantic=M({},j.normal,{html:L("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:O,paragraph:L(j.normal._paragraph).replace("hr",j.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:O,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:O,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};_.punctuation=L(_.punctuation).replace(/punctuation/g,_._punctuation).getRegex(),_.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,_.escapedEmSt=/\\\*|\\_/g,_._comment=L(j._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),_.emStrong.lDelim=L(_.emStrong.lDelim).replace(/punct/g,_._punctuation).getRegex(),_.emStrong.rDelimAst=L(_.emStrong.rDelimAst,"g").replace(/punct/g,_._punctuation).getRegex(),_.emStrong.rDelimUnd=L(_.emStrong.rDelimUnd,"g").replace(/punct/g,_._punctuation).getRegex(),_._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,_.autolink=L(_.autolink).replace("scheme",_._scheme).replace("email",_._email).getRegex(),_._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_.tag=L(_.tag).replace("comment",_._comment).replace("attribute",_._attribute).getRegex(),_._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,_._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_.link=L(_.link).replace("label",_._label).replace("href",_._href).replace("title",_._title).getRegex(),_.reflink=L(_.reflink).replace("label",_._label).getRegex(),_.reflinkSearch=L(_.reflinkSearch,"g").replace("reflink",_.reflink).replace("nolink",_.nolink).getRegex(),_.normal=M({},_),_.pedantic=M({},_.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",_._label).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_._label).getRegex()}),_.gfm=M({},_.normal,{escape:L(_.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),_.gfm.url=L(_.gfm.url,"i").replace("email",_.gfm._extended_email).getRegex(),_.breaks=M({},_.gfm,{br:L(_.br).replace("{2,}","*").getRegex(),text:L(_.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var V={block:j,inline:_},G=N,H=n.exports.defaults,W=V.block,z=V.inline,U=S;function Z(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function J(e){var t,r,n="",a=e.length;for(t=0;t<a;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}var X=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new G,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:W.normal,inline:z.normal};this.options.pedantic?(t.block=W.pedantic,t.inline=z.pedantic):this.options.gfm&&(t.block=W.gfm,t.inline=this.options.breaks?z.breaks:z.gfm),this.tokenizer.rules=t}t.lex=function(e,r){return new t(r).lex(e)},t.lexInline=function(e,r){return new t(r).inlineTokens(e)};var r,n,a,i=t.prototype;return i.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},i.blockTokens=function(e,t){var r,n,a,i,s=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call({lexer:s},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(a=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;s.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(a)))n=t[t.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),i=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){var o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}return this.state.top=!0,t},i.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},i.inlineTokens=function(e,t){var r,n,a,i=this;void 0===t&&(t=[]);var s,o,l,d=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(d));)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,s.index)+"["+U("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,s.index)+"["+U("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,s.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(l=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call({lexer:i},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,d,l))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,J))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,J))){if(a=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;i.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(a,Z))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),o=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(r.raw.length),t.push(r);return t},r=t,a=[{key:"rules",get:function(){return{block:W,inline:z}}}],(n=null)&&e(r.prototype,n),a&&e(r,a),t}(),Y=n.exports.defaults,Q=D,K=x,ee=function(){function e(e){this.options=e||Y}var t=e.prototype;return t.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var a=this.options.highlight(e,n);null!=a&&a!==e&&(r=!0,e=a)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+K(n,!0)+'">'+(r?e:K(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:K(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,r){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+K(e)+'"';return t&&(n+=' title="'+t+'"'),n+">"+r+"</a>"},t.image=function(e,t,r){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+(this.options.xhtml?"/>":">")},t.text=function(e){return e},e}(),te=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),re=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),ne=ee,ae=te,ie=re,se=n.exports.defaults,oe=q,le=X,de=function(){function e(e){this.options=e||se,this.options.renderer=this.options.renderer||new ne,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ae,this.slugger=new ie}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var r,n,a,i,s,o,l,d,u,c,m,p,h,f,g,b,v,y,w,$="",x=e.length;for(r=0;r<x;r++)if(c=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(w=this.options.extensions.renderers[c.type].call({parser:this},c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":$+=this.renderer.hr();continue;case"heading":$+=this.renderer.heading(this.parseInline(c.tokens),c.depth,oe(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":$+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(d="",l="",i=c.header.length,n=0;n<i;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(d+=this.renderer.tablerow(l),u="",i=c.rows.length,n=0;n<i;n++){for(l="",s=(o=c.rows[n]).length,a=0;a<s;a++)l+=this.renderer.tablecell(this.parseInline(o[a].tokens),{header:!1,align:c.align[a]});u+=this.renderer.tablerow(l)}$+=this.renderer.table(d,u);continue;case"blockquote":u=this.parse(c.tokens),$+=this.renderer.blockquote(u);continue;case"list":for(m=c.ordered,p=c.start,h=c.loose,i=c.items.length,u="",n=0;n<i;n++)b=(g=c.items[n]).checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(b),h?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),u+=this.renderer.listitem(f,v,b);$+=this.renderer.list(u,m,p);continue;case"html":$+=this.renderer.html(c.text);continue;case"paragraph":$+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(u=c.tokens?this.parseInline(c.tokens):c.text;r+1<x&&"text"===e[r+1].type;)u+="\n"+((c=e[++r]).tokens?this.parseInline(c.tokens):c.text);$+=t?this.renderer.paragraph(u):u;continue;default:var q='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(q);throw new Error(q)}else $+=w||"";return $},t.parseInline=function(e,t){t=t||this.renderer;var r,n,a,i="",s=e.length;for(r=0;r<s;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(a=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;case"text":i+=t.text(n.text);break;default:var o='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}else i+=a||"";return i},e}(),ue=N,ce=ee,me=te,pe=re,he=k,fe=A,ge=x,be=n.exports.getDefaults,ve=n.exports.changeDefaults,ye=n.exports.defaults;function we(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),t=he({},we.defaults,t||{}),fe(t),r){var n,a=t.highlight;try{n=le.lex(e,t)}catch(e){return r(e)}var i=function(e){var i;if(!e)try{t.walkTokens&&we.walkTokens(n,t.walkTokens),i=de.parse(n,t)}catch(t){e=t}return t.highlight=a,e?r(e):r(null,i)};if(!a||a.length<3)return i();if(delete t.highlight,!n.length)return i();var s=0;return we.walkTokens(n,(function(e){"code"===e.type&&(s++,setTimeout((function(){a(e.text,e.lang,(function(t,r){if(t)return i(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0==--s&&i()}))}),0))})),void(0===s&&i())}try{var o=le.lex(e,t);return t.walkTokens&&we.walkTokens(o,t.walkTokens),de.parse(o,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ge(e.message+"",!0)+"</pre>";throw e}}return we.options=we.setOptions=function(e){return he(we.defaults,e),ve(we.defaults),we},we.getDefaults=be,we.defaults=ye,we.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a,i=he.apply(void 0,[{}].concat(r)),s=we.defaults.extensions||{renderers:{},childTokens:{}};r.forEach((function(t){if(t.extensions&&(a=!0,t.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=s.renderers?s.renderers[e.name]:null;s.renderers[e.name]=t?function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];var i=e.renderer.apply(this,n);return!1===i&&(i=t.apply(this,n)),i}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");s[e.level]?s[e.level].unshift(e.tokenizer):s[e.level]=[e.tokenizer],e.start&&("block"===e.level?s.startBlock?s.startBlock.push(e.start):s.startBlock=[e.start]:"inline"===e.level&&(s.startInline?s.startInline.push(e.start):s.startInline=[e.start]))}e.childTokens&&(s.childTokens[e.name]=e.childTokens)}))),t.renderer&&function(){var e=we.defaults.renderer||new ce,r=function(r){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=t.renderer[r].apply(e,i);return!1===o&&(o=n.apply(e,i)),o}};for(var n in t.renderer)r(n);i.renderer=e}(),t.tokenizer&&function(){var e=we.defaults.tokenizer||new ue,r=function(r){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=t.tokenizer[r].apply(e,i);return!1===o&&(o=n.apply(e,i)),o}};for(var n in t.tokenizer)r(n);i.tokenizer=e}(),t.walkTokens){var r=we.defaults.walkTokens;i.walkTokens=function(n){t.walkTokens.call(e,n),r&&r(n)}}a&&(i.extensions=s),we.setOptions(i)}))},we.walkTokens=function(e,t){for(var n,a=function(){var e=n.value;switch(t(e),e.type){case"table":for(var a,i=r(e.header);!(a=i()).done;)we.walkTokens(a.value.tokens,t);for(var s,o=r(e.rows);!(s=o()).done;)for(var l,d=r(s.value);!(l=d()).done;)we.walkTokens(l.value.tokens,t);break;case"list":we.walkTokens(e.items,t);break;default:we.defaults.extensions&&we.defaults.extensions.childTokens&&we.defaults.extensions.childTokens[e.type]?we.defaults.extensions.childTokens[e.type].forEach((function(r){we.walkTokens(e[r],t)})):e.tokens&&we.walkTokens(e.tokens,t)}},i=r(e);!(n=i()).done;)a()},we.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=he({},we.defaults,t||{}),fe(t);try{var r=le.lexInline(e,t);return t.walkTokens&&we.walkTokens(r,t.walkTokens),de.parseInline(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ge(e.message+"",!0)+"</pre>";throw e}},we.Parser=de,we.parser=de.parse,we.Renderer=ce,we.TextRenderer=me,we.Lexer=le,we.lexer=le.lex,we.Tokenizer=ue,we.Slugger=pe,we.parse=we,we}()}));function Ld(e){const[t,r]=i(e),[n,a]=i(e);return{states:{previewTemplate:n,editedTemplate:t},callbacks:{setEditedTemplate:r,setPreviewTemplate:a}}}function Md(t){const{states:r,callbacks:n,readme:a}=t;return[e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>n.setEditedTemplate(e.target.value)},r.editedTemplate),e("button",{onClick:()=>n.setPreviewTemplate(r.editedTemplate)},"Update Preview"),a?e("details",null,e("summary",null,"Props readme"),e("div",{innerHTML:Od(a)})):"",e("div",{innerHTML:r.previewTemplate})]}function jd({callbacks:t,states:r,template:n}){return e("div",null,e("button",{onClick:()=>t.setPreviewTemplate(r.editedTemplate)},"Update Preview"),e("button",{style:{marginLeft:"10px"},onClick:()=>t.setPreviewTemplate(n)},"Preview Dashboard"))}function _d(t){const{states:r,callbacks:n}=t;return e("div",{style:{height:"50vh"}},e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>n.setEditedTemplate(e.target.value)},r.editedTemplate),e(jd,{states:r,callbacks:n,template:t.template}),e("h2",null,"Navigation"),e("div",{style:{display:"grid",gridTemplateColumns:"repeat(9, 80px)",gridGap:"10px"}},e("button",{onClick:()=>C.push("/")},"Dashboard"),t.leadSubmit&&e("button",{onClick:()=>C.push("/refer")},"Submit a Referral"),e("button",{onClick:()=>C.push("/activity")},"Activity"),e("button",{onClick:()=>C.push("/editProfile")},"Edit Profile"),e("button",{onClick:()=>C.push("/login")},"Login"),e("button",{onClick:()=>C.push("/register")},"Register"),e("button",{onClick:()=>C.push("/emailVerification")},"Email Verification"),e("button",{onClick:()=>C.push("/verifyEmail")},"Verify Email"),e("button",{onClick:()=>C.push("/forgotPassword")},"Forgot Password"),e("button",{onClick:()=>C.push("/resetPassword")},"Reset Password")),e("br",null),e("div",{innerHTML:r.previewTemplate}))}const Vd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type="p/referral-program/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n');return e(_d,{states:t,callbacks:r,template:'<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name\r\n fallback="Anonymous User"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium="twitter"\r\n size="medium"\r\n pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium="facebook"\r\n size="medium"\r\n pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n'})})),Gd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program-1">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-program-menu>\r\n <sl-menu-item value="referral-program-1"\r\n >Referral Program 1</sl-menu-item\r\n >\r\n <sl-menu-item value="referral-program-2"\r\n >Referral Program 2</sl-menu-item\r\n >\r\n </sqm-program-menu>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqb-program-switch>\r\n <template program-id="referral-program-1">\r\n <sqb-widget\r\n widget-type="p/referral-program-1/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n <template program-id="referral-program-2">\r\n <sqb-widget\r\n widget-type="p/referral-program-2/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n </sqb-program-switch>\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile></sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n');return e(_d,{states:t,callbacks:r,template:'<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program-1">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-program-menu>\r\n <sl-menu-item value="referral-program-1"\r\n >Referral Program 1</sl-menu-item\r\n >\r\n <sl-menu-item value="referral-program-2"\r\n >Referral Program 2</sl-menu-item\r\n >\r\n </sqm-program-menu>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name\r\n fallback="Anonymous User"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium="twitter"\r\n size="medium"\r\n pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium="facebook"\r\n size="medium"\r\n pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n'})})),Hd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/refer"\r\n icon="inbox"\r\n label="Submit A Lead"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type="p/referral-program/w/referrerWidget"\r\n track-loads="true"\r\n ></sqb-widget>\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/refer">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-referral-iframe></sqm-referral-iframe>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n');return e(_d,{states:t,callbacks:r,template:'<sqm-portal-frame>\r\n <a slot="header" href="/">\r\n <sqm-text style="height: 60px">\r\n <img\r\n style="height: 60px"\r\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id="referral-program">\r\n <sqm-router>\r\n <template\r\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\r\n >\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n >\r\n <sqm-router>\r\n <template path="/register">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path="/emailVerification">\r\n <sqm-portal-protected-route\r\n redirect-to="/login"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path="/login">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path="/verifyEmail">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path="/forgotPassword">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path="/resetPassword">\r\n <sqm-portal-reset-password\r\n confirm-password="true"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path="/logout">\r\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?">\r\n <sqm-divided-layout\r\n direction="row"\r\n style="\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n "\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path="/"\r\n icon="house"\r\n label="Dashboard"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/refer"\r\n icon="inbox"\r\n label="Submit A Lead"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/activity"\r\n icon="bar-chart"\r\n label="Activity"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/editProfile"\r\n icon="person"\r\n label="Edit Profile"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path="/logout"\r\n icon="box-arrow-right"\r\n label="Logout"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction="column">\r\n <sqm-router>\r\n <template path="/">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n ><sqm-titled-section label-margin="xx-small"\r\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot="content">\r\n <h1>\r\n <sqm-user-name\r\n fallback="Anonymous User"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-titled-section padding="none" label-margin="x-large"\r\n ><sqm-text slot="label">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot="content">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot="content"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none">\r\n <sqm-text slot="label">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot="content"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin="small" padding="none"\r\n ><sqm-text slot="label">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot="content"\r\n direction="row"\r\n padding="none"\r\n gap="xxx-large"\r\n min-width="160px"\r\n ><sqm-share-button\r\n icon="envelope"\r\n medium="email"\r\n size="medium"\r\n pill="true"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium="twitter"\r\n size="medium"\r\n pill="true"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium="facebook"\r\n size="medium"\r\n pill="true"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path="/editProfile">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider\r\n domain="https://managed-identity.saasquatch.com"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path="/refer">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-referral-iframe></sqm-referral-iframe>\r\n </template>\r\n <template path="/activity">\r\n <sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction="column"\r\n padding="xxx-large"\r\n gap="xxx-large"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot="footer"\r\n support-email="support@example.com"\r\n terms-link="https://example.com"\r\n faq-link="https://example.com"\r\n terms-text="Terms And Conditions"\r\n faq-text="FAQ"\r\n show-powered-by="true"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n',leadSubmit:!0})})),Wd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-hero background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80">\r\n <sqm-portal-login></sqm-portal-login>\r\n</sqm-hero>\r\n');return e(Md,{states:t,callbacks:r,readme:'# sqm-portal-login\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| --------------------- | ----------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `"Email"` |\r\n| `forgotPasswordLabel` | `forgot-password-label` | | `string` | `"Forgot Password?"` |\r\n| `nextPage` | `next-page` | | `string` | `"/"` |\r\n| `pageLabel` | `page-label` | | `string` | `"Sign in to your account"` |\r\n| `passwordLabel` | `password-label` | | `string` | `"Password"` |\r\n| `registerLabel` | `register-label` | | `string` | `"Register"` |\r\n| `submitLabel` | `submit-label` | | `string` | `"Sign In"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-login --\x3e sqm-form-message\r\n sqm-stencilbook --\x3e sqm-portal-login\r\n style sqm-portal-login fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),zd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-hero background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80">\r\n <sqm-portal-forgot-password\r\n email-label="Business Email"\r\n ></sqm-portal-forgot-password>\r\n</sqm-hero>\r\n');return e(Md,{states:t,callbacks:r,readme:'# sqm-portal-forgot-password\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------- | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `"Email"` |\r\n| `submitLabel` | `submit-label` | | `string` | `"Request Password Reset"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-forgot-password --\x3e sqm-form-message\r\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Ud=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-hero\r\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\r\n>\r\n <sqm-portal-register>\r\n <sqm-name-fields slot="formData"></sqm-name-fields>\r\n </sqm-portal-register>\r\n</sqm-hero>\r\n');return e(Md,{states:t,callbacks:r,readme:'# sqm-portal-register\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------------------- | ---------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `"Confirm Password"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; refs?: { formRef: any; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `"Email"` |\r\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\r\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\r\n| `loginLabel` | `login-label` | | `string` | `"Sign in"` |\r\n| `nextPage` | `next-page` | | `string` | `"/"` |\r\n| `pageLabel` | `page-label` | | `string` | `"Register"` |\r\n| `passwordLabel` | `password-label` | | `string` | `"Password"` |\r\n| `submitLabel` | `submit-label` | | `string` | `"Register"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-register --\x3e sqm-form-message\r\n sqm-portal-register --\x3e sqm-password-field\r\n sqm-stencilbook --\x3e sqm-portal-register\r\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Zd=ls((()=>{const{states:t,callbacks:r}=Ld(Nd);return e(Md,{states:t,callbacks:r})})),Jd=ls((()=>{const{states:t,callbacks:r}=Ld("<sqm-referral-iframe></sqm-referral-iframe>\r\n");return e(Md,{states:t,callbacks:r,readme:'# sqm-referral-iframe\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------- | --------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |\r\n| `demoData` | -- | | `{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }` | `undefined` |\r\n| `iframeHeight` | `iframe-height` | | `string` | `"100%"` |\r\n| `iframeSrc` | `iframe-src` | | `string` | `undefined` |\r\n| `iframeWidth` | `iframe-width` | | `string` | `"100%"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-stencilbook --\x3e sqm-referral-iframe\r\n style sqm-referral-iframe fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Xd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n></sqm-portal-protected-route>\r\n<sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large">\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space="xxxx-large"\r\n ><sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/referralsCount"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardsCountFiltered/AVAILABLE"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse="true"\r\n alignment="left"\r\n stat-type="/rewardBalance/CREDIT/CENTS"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title="Referred"\r\n date-shown="dateReferralStarted"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n></sqm-portal-container>\r\n');return e(Md,{states:t,callbacks:r})})),Yd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-portal-protected-route\r\n require-email-verification="true"\r\n redirect-to="/login"\r\n redirect-to-unverified="/emailVerification"\r\n></sqm-portal-protected-route>\r\n<sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n><sqm-portal-container direction="column" gap="xxx-large">\r\n <sqm-graphql-client-provider domain="https://managed-identity.saasquatch.com">\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n</sqm-portal-container>\r\n');return e(Md,{states:t,callbacks:r,readme:'# sqm-portal-profile\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------ | --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\r\n| `countrytext` | `countrytext` | | `string` | `"Country"` |\r\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\r\n| `editProfileHeader` | `edit-profile-header` | | `string` | `"Edit your profile"` |\r\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `"Personal Information"` |\r\n| `emailtext` | `emailtext` | | `string` | `"Email"` |\r\n| `firstnametext` | `firstnametext` | | `string` | `"First Name"` |\r\n| `lastnametext` | `lastnametext` | | `string` | `"Last Name"` |\r\n| `showCountry` | `show-country` | | `boolean` | `true` |\r\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `"Submit Changes"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-profile --\x3e sqm-form-message\r\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Qd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-portal-reset-password confirm-password="true"></sqm-portal-reset-password>\r\n');return e(Md,{states:t,callbacks:r,readme:'# sqm-portal-reset-password\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| --------------------------- | ------------------------------ | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordFieldLabel` | `confirm-password-field-label` | | `string` | `"Confirm Password"` |\r\n| `continueButtonText` | `continue-button-text` | Displayed after a successful password reset | `string` | `"Continue"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; }; }; }` | `undefined` |\r\n| `nextPage` | `next-page` | | `string` | `"/"` |\r\n| `passwordFieldLabel` | `password-field-label` | | `string` | `"New Password"` |\r\n| `passwordResetHeader` | `password-reset-header` | Displayed after a successful password reset | `string` | `"Password reset"` |\r\n| `resetPasswordButtonText` | `reset-password-button-text` | | `string` | `"Reset Password"` |\r\n| `resetPasswordHeader` | `reset-password-header` | | `string` | `"Reset your password"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-reset-password --\x3e sqm-form-message\r\n sqm-portal-reset-password --\x3e sqm-password-field\r\n style sqm-portal-reset-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),Kd=ls((()=>{const{states:t,callbacks:r}=Ld('<sqm-portal-protected-route redirect-to="/login"></sqm-portal-protected-route>\r\n<sqm-portal-email-verification></sqm-portal-email-verification>\r\n');return e(Md,{states:t,callbacks:r,readme:'# sqm-portal-email-verification\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------- | --------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; }; }` | `undefined` |\r\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `"Verify your email"` |\r\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `"Re-send Email"` |\r\n| `verifyMessage` | `verify-message` | | `string` | `"A verification email was sent to {email}. Please verify your email to continue to the portal."` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-email-verification --\x3e sqm-form-message\r\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n'})})),eu=ls((()=>{const{states:t,callbacks:r}=Ld("<sqm-portal-verify-email></sqm-portal-verify-email>\r\n");return e(Md,{states:t,callbacks:r,readme:'# sqm-portal-verify-email\r\n\r\n\r\n\r\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------- | ----------- | ----------- | ---------------------------------------------------------------------------------------------------- | ----------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\n| `nextPage` | `next-page` | | `string` | `"/"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-verify-email --\x3e sqm-form-message\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n'})})),tu=ls((()=>e("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:Nd}}}))),ru=ls((()=>{const{states:t,callbacks:r}=Ld('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html\r\n xmlns="http://www.w3.org/1999/xhtml"\r\n xmlns:o="urn:schemas-microsoft-com:office:office"\r\n xmlns:v="urn:schemas-microsoft-com:vml"\r\n>\r\n <head>\r\n \x3c!--[if gte mso 9\r\n ]><xml\r\n ><o:OfficeDocumentSettings\r\n ><o:AllowPNG /><o:PixelsPerInch\r\n >96</o:PixelsPerInch\r\n ></o:OfficeDocumentSettings\r\n ></xml\r\n ><!\r\n [endif]--\x3e\r\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\r\n <meta content="width=device-width" name="viewport" />\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n <meta content="IE=edge" http-equiv="X-UA-Compatible" />\r\n \x3c!--<![endif]--\x3e\r\n <title></title>\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n \x3c!--<![endif]--\x3e\r\n <style type="text/css">\r\n body {\r\n margin: 0;\r\n padding: 0;\r\n }\r\n\r\n table,\r\n td,\r\n tr {\r\n vertical-align: top;\r\n border-collapse: collapse;\r\n }\r\n\r\n * {\r\n line-height: inherit;\r\n }\r\n\r\n a[x-apple-data-detectors="true"] {\r\n color: inherit !important;\r\n text-decoration: none !important;\r\n }\r\n </style>\r\n <style id="media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .block-grid,\r\n .col {\r\n min-width: 320px !important;\r\n max-width: 100% !important;\r\n display: block !important;\r\n }\r\n\r\n .block-grid {\r\n width: 100% !important;\r\n }\r\n\r\n .col {\r\n width: 100% !important;\r\n }\r\n\r\n .col_cont {\r\n margin: 0 auto;\r\n }\r\n\r\n img.fullwidth,\r\n img.fullwidthOnMobile {\r\n max-width: 100% !important;\r\n }\r\n\r\n .no-stack .col {\r\n min-width: 0 !important;\r\n display: table-cell !important;\r\n }\r\n\r\n .no-stack.two-up .col {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num2 {\r\n width: 16.6% !important;\r\n }\r\n\r\n .no-stack .col.num3 {\r\n width: 25% !important;\r\n }\r\n\r\n .no-stack .col.num4 {\r\n width: 33% !important;\r\n }\r\n\r\n .no-stack .col.num5 {\r\n width: 41.6% !important;\r\n }\r\n\r\n .no-stack .col.num6 {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num7 {\r\n width: 58.3% !important;\r\n }\r\n\r\n .no-stack .col.num8 {\r\n width: 66.6% !important;\r\n }\r\n\r\n .no-stack .col.num9 {\r\n width: 75% !important;\r\n }\r\n\r\n .no-stack .col.num10 {\r\n width: 83.3% !important;\r\n }\r\n\r\n .video-block {\r\n max-width: none !important;\r\n }\r\n\r\n .mobile_hide {\r\n min-height: 0px;\r\n max-height: 0px;\r\n max-width: 0px;\r\n display: none;\r\n overflow: hidden;\r\n font-size: 0px;\r\n }\r\n\r\n .desktop_hide {\r\n display: block !important;\r\n max-height: none !important;\r\n }\r\n }\r\n </style>\r\n <style id="icon-media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .icons-inner {\r\n text-align: center;\r\n }\r\n\r\n .icons-inner td {\r\n margin: 0 auto;\r\n }\r\n }\r\n </style>\r\n </head>\r\n <body\r\n class="clean-body"\r\n style="\r\n margin: 0;\r\n padding: 0;\r\n -webkit-text-size-adjust: 100%;\r\n background-color: #ffffff;\r\n "\r\n >\r\n \x3c!--[if IE]><div class="ie-browser"><![endif]--\x3e\r\n <table\r\n bgcolor="#FFFFFF"\r\n cellpadding="0"\r\n cellspacing="0"\r\n class="nl-container"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n min-width: 320px;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n background-color: #ffffff;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tbody>\r\n <tr style="vertical-align: top" valign="top">\r\n <td style="word-break: break-word; vertical-align: top" valign="top">\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#FFFFFF"><![endif]--\x3e\r\n <div style="background-color: transparent">\r\n <div\r\n class="block-grid"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n overflow-wrap: break-word;\r\n word-wrap: break-word;\r\n word-break: break-word;\r\n margin: 0 auto;\r\n background-color: transparent;\r\n "\r\n >\r\n <div\r\n style="\r\n border-collapse: collapse;\r\n display: table;\r\n width: 100%;\r\n background-color: transparent;\r\n "\r\n >\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px"><tr class="layout-full-width" style="background-color:transparent"><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]><td align="center" width="500" style="background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]--\x3e\r\n <div\r\n class="col num12"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n display: table-cell;\r\n vertical-align: top;\r\n width: 500px;\r\n "\r\n >\r\n <div class="col_cont" style="width: 100% !important">\r\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\r\n <div\r\n style="\r\n border-top: 0px solid transparent;\r\n border-left: 0px solid transparent;\r\n border-bottom: 0px solid transparent;\r\n border-right: 0px solid transparent;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n padding-right: 0px;\r\n padding-left: 0px;\r\n "\r\n >\r\n \x3c!--<![endif]--\x3e\r\n <table\r\n cellpadding="0"\r\n cellspacing="0"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tr style="vertical-align: top" valign="top">\r\n <td\r\n align="center"\r\n style="\r\n word-break: break-word;\r\n vertical-align: top;\r\n padding-bottom: 20px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 10px;\r\n text-align: center;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <h1\r\n style="\r\n color: #444445;\r\n direction: ltr;\r\n font-family: \'Helvetica Neue\', Helvetica,\r\n Arial, sans-serif;\r\n font-size: 20px;\r\n font-weight: normal;\r\n letter-spacing: normal;\r\n line-height: 120%;\r\n text-align: left;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <strong>Reset your password</strong>\r\n </h1>\r\n </td>\r\n </tr>\r\n </table>\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]--\x3e\r\n <div\r\n style="\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.8;\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n <div\r\n class="txtTinyMce-wrapper"\r\n style="\r\n font-size: 14px;\r\n line-height: 1.8;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 25px;\r\n "\r\n >\r\n <p\r\n style="\r\n margin: 0;\r\n font-size: 14px;\r\n line-height: 1.8;\r\n word-break: break-word;\r\n mso-line-height-alt: 25px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <span style="font-size: 14px"\r\n >We received a request to reset your password.\r\n Click the button below to reset your\r\n password.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n <div\r\n align="center"\r\n class="button-container"\r\n style="\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href={{validationLink}} style="height:31.5pt;width:390pt;v-text-anchor:middle;" arcsize="12%" stroke="false" fillcolor="#2270ee"><w:anchorlock/><v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial, sans-serif; font-size:14px"><!\r\n [endif]--\x3e<a\r\n href="{{validationLink}}"\r\n target="_blank"\r\n style="\r\n -webkit-text-size-adjust: none;\r\n text-decoration: none;\r\n display: block;\r\n color: #ffffff;\r\n background-color: #2270ee;\r\n border-radius: 5px;\r\n -webkit-border-radius: 5px;\r\n -moz-border-radius: 5px;\r\n width: 100%;\r\n width: calc(100% - 2px);\r\n border-top: 1px solid #2270ee;\r\n border-right: 1px solid #2270ee;\r\n border-bottom: 1px solid #2270ee;\r\n border-left: 1px solid #2270ee;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n font-family: \'Helvetica Neue\', Helvetica, Arial,\r\n sans-serif;\r\n text-align: center;\r\n mso-border-alt: none;\r\n word-break: keep-all;\r\n "\r\n target="_blank"\r\n ><span\r\n style="\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n font-size: 14px;\r\n display: inline-block;\r\n letter-spacing: undefined;\r\n "\r\n ><span\r\n style="\r\n font-size: 16px;\r\n line-height: 2;\r\n word-break: break-word;\r\n mso-line-height-alt: 32px;\r\n "\r\n ><span\r\n style="font-size: 14px; line-height: 28px"\r\n >Reset Password</span\r\n ></span\r\n ></span\r\n ></a\r\n >\r\n \x3c!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]--\x3e\r\n </div>\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 15px; padding-bottom: 15px; font-family: Arial, sans-serif"><![endif]--\x3e\r\n <div\r\n style="\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.2;\r\n padding-top: 15px;\r\n padding-right: 10px;\r\n padding-bottom: 15px;\r\n padding-left: 10px;\r\n "\r\n >\r\n <div\r\n class="txtTinyMce-wrapper"\r\n style="\r\n font-size: 14px;\r\n line-height: 1.2;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 17px;\r\n "\r\n >\r\n <p\r\n style="\r\n margin: 0;\r\n font-size: 12px;\r\n line-height: 1.2;\r\n word-break: break-word;\r\n mso-line-height-alt: 14px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <span style="font-size: 12px"\r\n >If you didn\'t request a password reset please\r\n ignore this email. Your password will not\r\n change.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n \x3c!--[if mso]></td></tr></table><![endif]--\x3e\r\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\r\n </div>\r\n \x3c!--<![endif]--\x3e\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]--\x3e\r\n </div>\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n \x3c!--[if (IE)]></div><![endif]--\x3e\r\n </body>\r\n</html>');return e(Md,{states:t,callbacks:r})})),nu=ls((()=>{const{states:t,callbacks:r}=Ld('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html\r\n xmlns="http://www.w3.org/1999/xhtml"\r\n xmlns:o="urn:schemas-microsoft-com:office:office"\r\n xmlns:v="urn:schemas-microsoft-com:vml"\r\n>\r\n <head>\r\n \x3c!--[if gte mso 9\r\n ]><xml\r\n ><o:OfficeDocumentSettings\r\n ><o:AllowPNG /><o:PixelsPerInch\r\n >96</o:PixelsPerInch\r\n ></o:OfficeDocumentSettings\r\n ></xml\r\n ><!\r\n [endif]--\x3e\r\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\r\n <meta content="width=device-width" name="viewport" />\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n <meta content="IE=edge" http-equiv="X-UA-Compatible" />\r\n \x3c!--<![endif]--\x3e\r\n <title></title>\r\n \x3c!--[if !mso]>\x3c!--\x3e\r\n \x3c!--<![endif]--\x3e\r\n <style type="text/css">\r\n body {\r\n margin: 0;\r\n padding: 0;\r\n }\r\n\r\n table,\r\n td,\r\n tr {\r\n vertical-align: top;\r\n border-collapse: collapse;\r\n }\r\n\r\n * {\r\n line-height: inherit;\r\n }\r\n\r\n a[x-apple-data-detectors="true"] {\r\n color: inherit !important;\r\n text-decoration: none !important;\r\n }\r\n </style>\r\n <style id="media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .block-grid,\r\n .col {\r\n min-width: 320px !important;\r\n max-width: 100% !important;\r\n display: block !important;\r\n }\r\n\r\n .block-grid {\r\n width: 100% !important;\r\n }\r\n\r\n .col {\r\n width: 100% !important;\r\n }\r\n\r\n .col_cont {\r\n margin: 0 auto;\r\n }\r\n\r\n img.fullwidth,\r\n img.fullwidthOnMobile {\r\n max-width: 100% !important;\r\n }\r\n\r\n .no-stack .col {\r\n min-width: 0 !important;\r\n display: table-cell !important;\r\n }\r\n\r\n .no-stack.two-up .col {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num2 {\r\n width: 16.6% !important;\r\n }\r\n\r\n .no-stack .col.num3 {\r\n width: 25% !important;\r\n }\r\n\r\n .no-stack .col.num4 {\r\n width: 33% !important;\r\n }\r\n\r\n .no-stack .col.num5 {\r\n width: 41.6% !important;\r\n }\r\n\r\n .no-stack .col.num6 {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num7 {\r\n width: 58.3% !important;\r\n }\r\n\r\n .no-stack .col.num8 {\r\n width: 66.6% !important;\r\n }\r\n\r\n .no-stack .col.num9 {\r\n width: 75% !important;\r\n }\r\n\r\n .no-stack .col.num10 {\r\n width: 83.3% !important;\r\n }\r\n\r\n .video-block {\r\n max-width: none !important;\r\n }\r\n\r\n .mobile_hide {\r\n min-height: 0px;\r\n max-height: 0px;\r\n max-width: 0px;\r\n display: none;\r\n overflow: hidden;\r\n font-size: 0px;\r\n }\r\n\r\n .desktop_hide {\r\n display: block !important;\r\n max-height: none !important;\r\n }\r\n }\r\n </style>\r\n <style id="icon-media-query" type="text/css">\r\n @media (max-width: 520px) {\r\n .icons-inner {\r\n text-align: center;\r\n }\r\n\r\n .icons-inner td {\r\n margin: 0 auto;\r\n }\r\n }\r\n </style>\r\n </head>\r\n <body\r\n class="clean-body"\r\n style="\r\n margin: 0;\r\n padding: 0;\r\n -webkit-text-size-adjust: 100%;\r\n background-color: #ffffff;\r\n "\r\n >\r\n \x3c!--[if IE]><div class="ie-browser"><![endif]--\x3e\r\n <table\r\n bgcolor="#FFFFFF"\r\n cellpadding="0"\r\n cellspacing="0"\r\n class="nl-container"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n min-width: 320px;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n background-color: #ffffff;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tbody>\r\n <tr style="vertical-align: top" valign="top">\r\n <td style="word-break: break-word; vertical-align: top" valign="top">\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#FFFFFF"><![endif]--\x3e\r\n <div style="background-color: transparent">\r\n <div\r\n class="block-grid"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n overflow-wrap: break-word;\r\n word-wrap: break-word;\r\n word-break: break-word;\r\n margin: 0 auto;\r\n background-color: transparent;\r\n "\r\n >\r\n <div\r\n style="\r\n border-collapse: collapse;\r\n display: table;\r\n width: 100%;\r\n background-color: transparent;\r\n "\r\n >\r\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px"><tr class="layout-full-width" style="background-color:transparent"><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]><td align="center" width="500" style="background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]--\x3e\r\n <div\r\n class="col num12"\r\n style="\r\n min-width: 320px;\r\n max-width: 500px;\r\n display: table-cell;\r\n vertical-align: top;\r\n width: 500px;\r\n "\r\n >\r\n <div class="col_cont" style="width: 100% !important">\r\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\r\n <div\r\n style="\r\n border-top: 0px solid transparent;\r\n border-left: 0px solid transparent;\r\n border-bottom: 0px solid transparent;\r\n border-right: 0px solid transparent;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n padding-right: 0px;\r\n padding-left: 0px;\r\n "\r\n >\r\n \x3c!--<![endif]--\x3e\r\n <table\r\n cellpadding="0"\r\n cellspacing="0"\r\n role="presentation"\r\n style="\r\n table-layout: fixed;\r\n vertical-align: top;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <tr style="vertical-align: top" valign="top">\r\n <td\r\n align="center"\r\n style="\r\n word-break: break-word;\r\n vertical-align: top;\r\n padding-bottom: 20px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 10px;\r\n text-align: center;\r\n width: 100%;\r\n "\r\n valign="top"\r\n width="100%"\r\n >\r\n <h1\r\n style="\r\n color: #444445;\r\n direction: ltr;\r\n font-family: \'Helvetica Neue\', Helvetica,\r\n Arial, sans-serif;\r\n font-size: 20px;\r\n font-weight: normal;\r\n letter-spacing: normal;\r\n line-height: 120%;\r\n text-align: left;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <strong>Verify your email address</strong>\r\n </h1>\r\n </td>\r\n </tr>\r\n </table>\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]--\x3e\r\n <div\r\n style="\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.8;\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n <div\r\n class="txtTinyMce-wrapper"\r\n style="\r\n font-size: 14px;\r\n line-height: 1.8;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 25px;\r\n "\r\n >\r\n <p\r\n style="\r\n margin: 0;\r\n font-size: 14px;\r\n line-height: 1.8;\r\n word-break: break-word;\r\n mso-line-height-alt: 25px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n "\r\n >\r\n <span style="font-size: 14px"\r\n >Thank you for signing up! Please click the button below\r\n to verify your email address.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n \x3c!--[if mso]></td></tr></table><![endif]--\x3e\r\n <div\r\n align="center"\r\n class="button-container"\r\n style="\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n "\r\n >\r\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href={{validationLink}} style="height:31.5pt;width:390pt;v-text-anchor:middle;" arcsize="12%" stroke="false" fillcolor="#2270ee"><w:anchorlock/><v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial, sans-serif; font-size:14px"><!\r\n [endif]--\x3e<a\r\n href={{validationLink}}\r\n\t\t\t\t\t\t\ttarget="_blank"\r\n style="\r\n -webkit-text-size-adjust: none;\r\n text-decoration: none;\r\n display: block;\r\n color: #ffffff;\r\n background-color: #2270ee;\r\n border-radius: 5px;\r\n -webkit-border-radius: 5px;\r\n -moz-border-radius: 5px;\r\n width: 100%;\r\n width: calc(100% - 2px);\r\n border-top: 1px solid #2270ee;\r\n border-right: 1px solid #2270ee;\r\n border-bottom: 1px solid #2270ee;\r\n border-left: 1px solid #2270ee;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n font-family: \'Helvetica Neue\', Helvetica, Arial,\r\n sans-serif;\r\n text-align: center;\r\n mso-border-alt: none;\r\n word-break: keep-all;\r\n "\r\n target="_blank"\r\n ><span\r\n style="\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n font-size: 14px;\r\n display: inline-block;\r\n letter-spacing: undefined;\r\n "\r\n ><span\r\n style="\r\n font-size: 16px;\r\n line-height: 2;\r\n word-break: break-word;\r\n mso-line-height-alt: 32px;\r\n "\r\n ><span\r\n style="font-size: 14px; line-height: 28px"\r\n >Verify Email</span\r\n ></span\r\n ></span\r\n ></a\r\n >\r\n \x3c!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]--\x3e\r\n </div>\r\n \x3c!--<![endif]--\x3e\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n \x3c!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]--\x3e\r\n </div>\r\n </div>\r\n </div>\r\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n \x3c!--[if (IE)]></div><![endif]--\x3e\r\n </body>\r\n</html>');return e(Md,{states:t,callbacks:r})})),au=Object.freeze({__proto__:null,default:{title:"Templates / Portal"},DefaultPortal:Vd,MultiProgramPortal:Gd,LeadSubmitPortal:Hd,Login:Wd,ForgotPassword:zd,Register:Ud,Dashboard:Zd,LeadSubmitIframe:Jd,Activity:Xd,EditProfile:Yd,ResetPassword:Qd,EmailVerification:Kd,EmailVerified:eu,Widget:tu,ResetPasswordEmail:ru,VerifyEmail:nu}),iu=ls((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"referral-program"},"Referral Program")))),su=ls((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"referral-program"},"Referral Program"),e("sl-menu-item",{value:"partner-program"},"Partner Program")))),ou=ls((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"program1"},"Program 1"),e("sl-menu-item",{value:"program2"},"Program 2"),e("sl-menu-item",{value:"program3"},"Program 3"),e("sl-menu-item",{value:"program4"},"Program 4"),e("sl-menu-item",{value:"program5"},"Program 5")))),lu=ls((()=>e("div",null,e("sqb-program-section",{"program-id":"Vacay-referral"},e("sqm-program-menu",null,e("sl-menu-item",{value:"Vacay-referral"},"Vacay-referral"),e("sl-menu-item",{value:"vacay-affiliates"},"vacay-affiliates")),e("sqb-program-switch",null,e("template",{"program-id":"Vacay-referral"},e("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:Nd}}})),e("template",{"program-id":"vacay-affiliates"},e("sqb-widget",{"widget-type":"p/vacay-affiliates/w/referrerWidget",demoData:{data:{html:Nd}}}))))))),du=Object.freeze({__proto__:null,default:{title:"Program Menu"},OneProgram:iu,TwoProgram:su,FiveProgram:ou,ProgramMenuWithSwitch:lu}),uu=Object.freeze({__proto__:null,default:{title:"Powered By"},Default:()=>e(ye,null),CustomColor:()=>e(ye,{color:"salmon"}),CustomWidthAndHeight:()=>e(ye,{width:300,height:50})}),cu={supportEmail:"support@example.com",supportText:"For program support, contact {email}",showPoweredBy:!0,poweredByLink:"https://saasquatch.com",paddingTop:"large",paddingRight:"large",paddingBottom:"large",paddingLeft:"large"},mu=Object.freeze({__proto__:null,default:{title:"Portal Footer",parameters:{scenario:'Feature: Portal Footer\r\n\r\n Background: A user is viewing the portal\r\n Given a hosted portal\r\n And a user is viewing the portal\r\n And the portal has a footer\r\n\r\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\r\n Given the footer has prop "terms-link" with value "https://example.com/terms"\r\n And prop "terms-text" with value "Terms and Conditions"\r\n And prop "faq-link" with value "https://example.com/FAQ"\r\n And prop "faq-text" with value "Visit FAQ"\r\n When a user clicks on the "Visit FAQ" link\r\n Then they will be redirected to "https://example.com/FAQ" in a new page\r\n When they go back to the portal\r\n And click on the "Terms and Conditions" link\r\n Then they will be redirected to "https://example.com/terms" in a new page\r\n\r\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\r\n Given the footer does not have <linkProp>\r\n But it <mayHave> <textProp> with <value>\r\n Then the <link> will not be shown in the footer\r\n Examples:\r\n | linkProp | mayHave | textProp | value | link |\r\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\r\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\r\n | terms-link | doesn\'t have | | | T&C Link |\r\n | faq-link | doesn\'t have | | | FAQ Link |\r\n\r\n Scenario Outline: The support email and text is configurable but has a default\r\n Given the footer <mayHave> <emailPropWithValue>\r\n And the footer <mayAlsoHave> <textPropWithValue>\r\n Then the footer\'s support email text is <renderedEmailText>\r\n And the email address will be a mailto link with <mailtoEmail>\r\n When the user clicks on the email address mailto Link\r\n Then the users preferred email client will open with a draft email to <mailtoEmail>\r\n Examples:\r\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\r\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\r\n | doesn\'t have | N/A | doesn\'t have | N/A | support@example.com | For program support, contact support@example.com |\r\n\r\n Scenario Outline: Powered by SaaSquatch is shown by default\r\n Given the footer <mayHaveProp> "show-powered-by" with <value>\r\n Then the powered by SaaSquatch image <mayBeShown>\r\n Examples:\r\n | mayHaveProp | value | mayBeShown |\r\n | has prop | true | is shown |\r\n | has prop | false | isn\'t shown |\r\n | has prop | test | is shown |\r\n | has prop | | is shown |\r\n | doesn\'t have prop | | is shown |\r\n\r\n Scenario: Powered By Saasquatch links out to "https://saasquatch.com"\r\n Given the footer has the powered by SaaSquatch image\r\n When a user clicks on it\r\n Then they will be redirected to "https://saasquatch.com" in a new page'}},DefaultFooter:()=>e(we,Object.assign({},cu)),FooterWithTerms:()=>e(we,Object.assign({},cu,{termsLink:"https://example.com",termsText:"Terms and Conditions"})),FooterWithFAQ:()=>e(we,Object.assign({},cu,{faqLink:"https://example.com",faqText:"FAQ"})),FooterWithTermsAndFAQ:()=>e(we,Object.assign({},cu,{termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ"})),FooterNoPoweredBy:()=>e(we,Object.assign({},cu,{termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ",showPoweredBy:!1}))}),pu=Object.freeze({__proto__:null,default:{title:"Hero Layout",parameters:{scenario:'Feature: Hero Unit\r\n\r\n Background: A portal with a hero unit exists\r\n Given a hosted portal\r\n And the portal has hero unit on the login page\r\n And a user is viewing the login page\r\n\r\n Scenario: The hero unit defaults to a single column layout\r\n Given a hero unit does not have a "columns" prop\r\n But the following html is wrapped by the hero unit\r\n """\r\n <sqm-portal-login></sqm-portal-login>\r\n <div slot="secondary-column">\r\n <h1 style="text-align:center">Get Referring!</h1>\r\n <p style="text-align:center">\r\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\r\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\r\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\r\n aliquip ex ea commodo consequat. Duis aute irure dolor in\r\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\r\n pariatur.\r\n </p>\r\n </div>\r\n """\r\n Then only a single column will be displayed\r\n And within it will be the login component\r\n\r\n Scenario Outline: The hero unit supports single or dual column layouts\r\n Given a hero unit with prop "columns" having <columnValue>\r\n And it wraps <html>\r\n Then the hero unit displays <columnValue> columns\r\n Examples:\r\n | columnValue | html |\r\n | 1 | <h1>Column 1!</h1> |\r\n | 2 | <h1>Column 1!</h1><div slot="secondary-column"><h1 style="text-align:center">Column 2!</h1></div> |\r\n\r\n Scenario: HTML to be displayed in the second column comes from the "secondary-column" slot\r\n Given a hero unit with "columns" "2"\r\n And the following html\r\n """\r\n <h1>Column 1!</h1>\r\n <div>\r\n <h1 style="text-align:center">Column 2!</h1>\r\n </div>\r\n """\r\n When the hero unit is rendered\r\n Then only one column is displayed with content\r\n And column 1 will contain the "Column 1!" text\r\n And column 1 will contain the "Column 2!" text\r\n When the div for column two is updated to have \'slot="secondary-column"\'\r\n Then the two columns are displayed with content\r\n And column 1 will contain the "Column 1!" text\r\n And column 2 will contain the "Column 2!" text\r\n\r\n Scenario Outline: A background for the hero unit can be set as an image or colour\r\n Given a hero unit with <backgroundPropValue>\r\n Then the background will be <background>\r\n Examples:\r\n | background | background |\r\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\r\n | LightSlateGrey | light slate grey |\r\n | #00FF00 | green |\r\n | rgb(128,0,128) | purple |\r\n\r\n Scenario Outline: Wrap Direction can be configured for mobile experiences\r\n Given a hero unit with the following HTML\r\n """\r\n <h1>Column 1!</h1>\r\n <div slot="secondary-column">\r\n <h1 style="text-align:center">Column 2!</h1>\r\n </div>\r\n """\r\n And prop "wrap-direction" has <value>\r\n When the window width is less than 600px\r\n Then the two columns will stack\r\n And <column> will be on top\r\n Examples:\r\n | value | column |\r\n | wrap | 1 |\r\n | wrap-reverse | 2 |\r\n | | 1 |'}},LoginOneColumn:()=>{const t={states:{columns:1,wrapDirection:"wrap",paddingSize:"large"},content:{primaryColumn:[e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("sqm-portal-login",null)]}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},LoginOneColumnWithColor:()=>{const t={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",background:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null)}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},LoginOneColumnWithImage:()=>{const t={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"},content:{primaryColumn:e("sqm-portal-login",null)}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginLargePadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"large",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginMediumPadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"medium",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginSmallPadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"small",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginNoPadding:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"none",background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginReverseWrap:()=>{const t={states:{columns:2,wrapDirection:"wrap-reverse",background:"LightSlateGrey",paddingSize:"large",secondaryBackground:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"},content:{primaryColumn:e("sqm-portal-change-password",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))},TwoColumnLoginWithImgElement:()=>{const t={states:{columns:2,wrapDirection:"wrap",paddingSize:"large"},content:{primaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("sqm-portal-login",null)),secondaryColumn:e("div",null,e("img",{src:"https://images.unsplash.com/photo-1487528278747-ba99ed528ebc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80"}),e("p",null,"Pellentesque mauris urna, lacinia non turpis sed, pulvinar congue ligula. Sed mattis condimentum eros nec vulputate. Cras consectetur eget libero at viverra. Aliquam suscipit feugiat ante sit amet sagittis. Fusce pulvinar interdum odio ut dapibus. Nulla aliquet ultricies augue nec dignissim. Morbi vulputate hendrerit sem."))}};return e("div",{style:{height:"800px"}},e($e,Object.assign({},t)))}}),hu={data:{shareCode:"BOBBYREFER"},states:{content:{iframeSrc:"https://example.com",iframeHeight:"100%",iframeWidth:"100%"}}},fu=Object.freeze({__proto__:null,default:{title:"Referral Iframe",parameters:{scenario:'@owner:sam\r\n@author:sam\r\n\r\nFeature: Referral Iframe\r\n\r\n Used to provide an external form for submitting referral leads using the current user\'s referral code\r\n\r\n Background: A user is logged in\r\n Given there is a logged in user\r\n\r\n @motivating\r\n Scenario: Referral code is passed to the iframe as a query parameter\r\n Given the "iframe-src" is "https://example.com"\r\n And the user has navigated to "/refer"\r\n And the user\'s referral code is "BOBBYREFER"\r\n When the iframe content is loaded\r\n Then the iframe url will be "https://example.com?rsCode=BOBBYREFER"\r\n\r\n @ui\r\n Scenario Outline: The height and width of the iFrame can be controlled via props\r\n Given the "iframe-src" is "https://example.com"\r\n And the iframe content is 1000x1000\r\n And the "iframe-height" is set to <heightValue>\r\n And the "iframe-width" is set to <widthValue>\r\n Then the content of the iframe will be displayed with scrollbars\r\n And the dimension of the iFrame displayed will be 500x500\r\n When the "iframe-height" is set to <heightValue>\r\n And the "iframe-width" is set to <widthValue>\r\n Then the full content of the iframe will be displayed on the page\r\n And the dimension of the iFrame displayed will be 1000x1000\r\n Examples:\r\n | heightValue | widthValue |\r\n | 500px | 500px |\r\n | 50% | 50% |\r\n\r\n @minutae\r\n Scenario Outline: The iFrame will fail fast if a iFrame source isn\'t provided\r\n Given "iframe-src" <mayBeAnAttribute>\r\n And it <mayHaveValue>\r\n When a user views the referral iFrame component\r\n Then an alert with an error message is displayed in place of the iFrame\r\n And it has a details section\r\n When "More details" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n\r\n Examples:\r\n | mayBeAnAttribute | mayHaveValue |\r\n | is not an attribute | N/A |\r\n | is an attribute | "" |\r\n | is an attribute | |'}},ReferralIframe:()=>e("div",{style:{width:"1000px",height:"1000px"}},e(Lr,Object.assign({},hu))),ReferralIframeError:()=>e("div",{style:{width:"1000px",height:"1000px"}},e("sqm-referral-iframe",null))}),gu={states:{validationErrors:void 0,content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}},bu={states:{validationErrors:{firstName:"Cannot be empty",lastName:"Cannot be empty"},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}},vu=Object.freeze({__proto__:null,default:{title:"Name Fields",parameters:{scenario:'@owner:sam\r\n@author:sam\r\n\r\nFeature: Name Fields\r\n\r\n Fields to be used to fill the first and last name of a user during registration\r\n\r\n Background:\r\n Given the current page is "/register"\r\n\r\n @motivating\r\n Scenario: Both first name and last name are required\r\n Given the email field has valid input\r\n And the password field has valid input\r\n And first name field is empty\r\n And last name field is empty\r\n When register is clicked\r\n Then the name fields will be highlighted in red\r\n And the error messages will say "Cannot be empty"\r\n\r\n @motivating\r\n Scenario: First and last name are upserted with the SaaSquatch user\r\n Given all fields have been filled with data\r\n | firstName | lastName | email | password |\r\n | Bob | Testerson | bob@example.com | SecurePassword1 |\r\n When register is clicked\r\n Then the email verification page will be loaded\r\n And the user will be upserted\r\n And the SaaSquatch user will contain data\r\n | firstName | lastName | email |\r\n | Bob | Testerson | bob@example.com |\r\n\r\n'}},NameFields:()=>e(xe,Object.assign({},gu)),NameFieldsWithErrors:()=>e(xe,Object.assign({},bu))}),yu={key:"",name:"",description:"",imageUrl:"",available:!0,unavailableReason:null,unavailableReasonCode:null,ruleType:"FIXED_GLOBAL_REWARD",sourceUnit:"POINT",sourceValue:10,prettySourceValue:"10 SaaSquatch Points",sourceMinValue:null,prettySourceMinValue:null,sourceMaxValue:null,prettySourceMaxValue:null,destinationMinValue:null,prettyDestinationMinValue:null,destinationMaxValue:null,prettyDestinationMaxValue:null,globalRewardKey:"",destinationUnit:null,steps:[]},wu={available:!1,unavailableReasonCode:"INSUFFICIENT_REDEEMABLE_CREDIT"},$u=e=>({imageUrl:e}),xu=e=>({description:e}),qu=e=>({prettySourceValue:e}),Cu=(e,t,r)=>({ruleType:"VARIABLE_CREDIT_REWARD",sourceMinValue:e,prettySourceMinValue:e+" "+r,sourceMaxValue:t,prettySourceMaxValue:t+" "+r}),Du={...(Eu=[{...yu,...xu("Free swag with a promo code"),...$u("https://i.imgur.com/Ds7M19I.png"),...qu("40 SaaSquatch Points")},{...yu,...xu("Visa® Prepaid Card USD"),...$u("https://i.imgur.com/4s3q2zz.png"),...Cu(20,80,"SaaSquatch Points")},{...yu,...xu("A very exclusive gift box"),...$u("https://i.imgur.com/XuiJi4l.png"),...qu("30 SaaSquatch Points")},{...yu,...xu("$50 Store credit"),...$u("https://i.imgur.com/WkCMVSE.png"),...qu("100 SaaSquatch Points")},{...yu,...xu("Variable amount of store credit"),...$u("https://i.imgur.com/Jn2fE0s.png"),...Cu(20,100,"SaaSquatch Points")},{...yu,...wu,...xu("A very rare cactus"),...$u("https://i.imgur.com/CvCdpXc.png"),...qu("2000 SaaSquatch Points")},{...yu,available:!1,unavailableReasonCode:"US_TAX",...xu("$1000 Store credit"),...$u("https://i.imgur.com/I9FCh9Z.png"),...qu("2000 SaaSquatch Points")},{...yu,...wu,...xu("A holiday gift box"),...$u("https://i.imgur.com/HBJS1WH.png"),...qu("100 SaaSquatch Points")}],{states:{content:null,redeemStage:"chooseReward",amount:0,exchangeError:!1,loading:!1,selectedItem:null,selectedStep:null},data:{exchangeList:Eu},callbacks:{exchangeReward:null,openDrawer:null,setStage:null,setExchangeState:null,refs:null},refs:null})};var Eu;const ku={states:{content:{text:{buttonText:"Exchange Rewards",ignored:!0}},redeemStage:"chooseAmount",amount:0,exchangeError:!1,loading:!1,selectedItem:{key:"r4",name:"Salmon Coins",description:"Points for Salmon Coins",imageUrl:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUWFRgWFRYYGRgZGh4cHBocHR4aHxwdGRwZHBwfHh4cIS4lHB4rHxoYJjgnKy8xNTU1GiQ7QD00Py40NTEBDAwMEA8QHhISHzQrJCs0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/AABEIAIABiQMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABAECAwUGBwj/xAA+EAABAwICBgYHBwQCAwAAAAABAAIRAyEEMQUSQVFhcQYTgZGhsQciMkJScvAUYoKSwdHhorLC8SMzFUNj/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAECAwT/xAAfEQEBAQEBAQEAAwEBAAAAAAAAARECEiExE0FRYQP/2gAMAwEAAhEDEQA/APZkREBERAREQEREBERAREQEREBERAREQERY6jw0EkgACSTYADMk7AgvVjHgzBBixgzBXmfSjpqapNLDuLaeTqgs58Zhl/Vbx28BnA0Lj3UXNcx0G0tmxHwkW1tvLhks3qRZHryqtdonSjK7dZtnCzmzJaf1HFbFWXUERFQREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBFSVqdNafoYVoNaoAT7LBdzvlaLxxyG0oNlUqBoLnEAASSTAAFySTkF5H0z6WHEuNKiSKANx7JqkXl20MFoHfsAidKemVTFeo31KPwAgl0ZF7hY7IaLA39aBHNsIO0cv34eaCVSeBlcnblb/FqnYatxz3WLhw+FnHMrVMfx7/MjyCkMI5znx+Y7flCx1NajqNGaUdTIex2qRYRkRuj3h+y9D0Lp2nXETq1APWb5xv5ZjxXj9Ovt8dsdmXIHmVKw+OIg62rGWqQIINvWs1vZJWeZeVuV7gi5Xoj0j+0g03kGowSSMnNkCTYAOkjK17cOqXSXWBERUEREBERAREQEREBERAREQEREBERBRFjq1WtaXOcGtAkuJAAG8k2C5LS/TukyW0GGq74j6jO83PcAd6DslQFeI6Y6VYmvOvWcG/BS9RvIwZcODiV1vomonq69QWa57Wht82N1i6+ZIe0diD0JERAREQEREBERARFgxOJZTaX1HtY0ZucQAOZNkGdFxmkvSJg2SGa9Y5eo2G/mdEji2VzmO9JWIdalTp0xvcS93+IHcUHqyiYvH0qQmpUYwb3ua3+4rxTG9IsbV9vEVI3NPVjuZC1XUyST7RvfM85zQezYrptgGW68OO5jXP8AFojxWoxHpMw49ilVfxOowH+onwXmzcKdqudhrG0oOyr+k+qfYwzG/M9zvANatfX9ImOd7Ios5NJI/M4+S55lCQREFXvoaosJU0ScV0u0g+ZxL28GtYzxa2fFaKs173F73ue45uc4uceZcSStuyiI8+zmqfZNvDJNGlGGVww5W21BFh2eCubSMAxCmrjUCkruqK2v2dUNAxZTVazUdlJU7A6Rq0rs1J3vp06jvzPYXeKyCiQL5jzhUZhrXAngg2+H6c41lmmnx/42j+2FLZ6RcbtFA/gd+j1z4o8Fa2lJNoTTHV0/SVifeo0Ty1m+bipdL0nO9/DDm2p+hZ+q4p9A7B3rG7D7ldR6NR9JlA+1Qqj5Sx3m4KfR9IOCd7RqM+ZhP9msvKjQVr6B2Jo9oodLcC/LEsHzSz+8BbLDaRo1P+urTf8AK9rvIrwQUSrTSDtxummPohF4Dh8VXZ/11qrAPhe9o7gYUmp0kxzmln2mrB3EB35wNYd6uo9oxukqNETWqspg5a7mtnlJute3pbgSYGJp9pgd5svC6mHc5xcXFzjmXEknmTcqVo3Btc8Nq1RSZHt6jn8hqtuVLf8AFkfQVGs17Q5rg5pyIIIPIjNZFxnQgYXDsdTZjadUvdrBtqcWizC4mTtPALswVZUVREVBEWr0tpujh2k1HXiQwXc7k3ntMBBs1y+nOmFKjLaUVXjODDW/M7aeA3XIXHae6XVq8tE06RkBjbufwc7ad7R6oyOstA8SBrmBsYMvC7nclm0TdJ6Zq4l01Hl8GzR6rGn7rbxzu6+ajOpW9cwPhH6/RVGHdYcBJ7hYfVlewxlnvzPfkPBc63GsxNODkQBsi8cBGXYAvbui+jxQwtFgEHUDncXP9Z09pK8r6N4QV8XSY4Swv1nWMEMBeQTx1YjivbF1n4wIiKgiIgIoOkdJUaDdatUaxuzWMExsAzceAuuG016RjduFpz/9KgMfhYDPeRyQeh1KgaC5xAAuSTAA4k5LldJ9PsHSkNc6s7dTEt/OYaRyleZY/FVq/rYis525rnta0cmWaOwBR6VJvZs4q4mur0j6Q8U+RRYykN//AGO4GXANH5SuWxlWrWdr13ve7e8zHyjJo4CFIpU5dnEe7CzMpgkGO02gBTYIlHCNOWaq7CxnCmsLGky4H9O7MqSXMd7Jnz7Vf0a84Y7M1e3DAGTErOQcoVGAgXud6xeo1jC+iDsmLgHfCyNZa43LIAeCrqu4f6UvS4w06bRIBvtG76/VXhuYiwyWRtMzO+yv1Dv3qejEcuEScuSqy4BG0LK6mdpsVXqSs+lxHfRsdWATwVWstfwUjqztOfJWll4m5k5d6noxH1A4R5KoZsj+Fnbh4yt2BVFMzF8s7J6XGBzIyEo1ucgjmpXUcSqvpwJv5p6MRXU4KPZAsCeA4qUKMDWEmc8haMzKvFDinpMQxTtzWGphSQIMR4rZ9TxKtFDVMTmdt8k9JiA6lA9bZmVa2nrXGV4Wy6kn/SCieCejGt+z7xmqNw42dotmtmKBz3oaJ2Af7V0xrRQWB2GcTIIjzW2dhycx9cVUUjuWtRqeom8Kx1K4EEzt3dq2tXCuIgerfNXtoHIieJj9E1WndhQsuHxFWkJp1XsH3HOb4A3WxNI5kW7FjfhpvfMfUKWkS8J0xxzBPWB42B7GnxbB8Vs6HpHrCzsOxzvuuczwId5rROpDYIUX7MdbIRGe8/tmp7MbLSXS/F1zGv1TDbVpktJ5vnW7iBwWrNSZtebn6vzOfFVdRGcXG/gsRBDshzlX2YvNM5iBPvHyaNg4eG1YjTGwEnaTf67SFKaRffynyusVWmTcz2sJ7tdat2J/axur7zm8p1u5rLDvV9erAsCecADs/hVYHDIv7NRo8FHxTnfAT+L9LrEm1b+Oz9GGj9Z9XEOAloFNsTm71nk615jU/MV6UuX9HmC6vBMMQajnVD+Iw3+lrV1C7MiIiAuO9IHSKthWU20GEvqlw19XWDA3VyGRcS4RNrGxXYrnOk2lMTRNPqKTHtdOs5xIAgthoIyLpME2tkUHj+OOIc7rq7aznEj13tI5Aa1o3NFuCuwrdbWE6riLS3IjxFoyBXqjelDXtLK+FqesIcwalQXzBDi0kfhXKaVwNBjvUa4U3e44arqZ+66TLfEdsiejHLvwuIBa6wMga4aHsc0DIyQGk2sYNjvKtpawqOLWwwxbjAkwbiTPet7UoPp2JljvZeNvBw913gdig1KV5XK3LrUmzGLDTrtaTMmOU2/lS37ABbb/AAsOFoE1GQPeb5hSXsHblO1T18Xz9Ryxu5VwLTDzuj/L9JVXtUmizOMnF3c0GPM9y1OrSxjartiFiqAufVakUoP1hJEZrK6mSRBi97Z71cwZdir9d4WNXFdVXNEqx0ERvVW2Fgp6XyuLFY5h1gda0XEZ9queyYuREG31krnH+fruU9LimomoMz2LIFR0C5OXYI4p6MYxTOtMjVjLirnTcNF4tOXarmNMkmI2b+9Zm7Pr6/hPRjBTa7Ii+/YVke0xbPYs4CAJ6MYg3KyvaxXGYnM7BvVackXEHd2/68U9GMb6YIIOX6K3qwIHYJ+tyyUmOvr6udonLjO1XagsSMtvZCejGCjh2tsNu03klZQxYsSx9tRwF7yFlkNgE3yE7SrOk8mp9fXasLcOQ4nXJnJuwfWaz6xmIsRnbPkriP3VnR5Y9S/P/StbB+uav2fXFY2MDRAgBb1PK5zARBEqxrCTIJABiIF/4V7XAHNXdYO1X6mLKtEOBaQSCLqw4Yauq31Rsjv2rKao+vFKeHcSS1r3TsDSc+Q4KWUYxTsNvNW1mgA2mPFTv/H4g5Uan5CPNYq2isRBmg8j5Z8FPPRsatzgXECLfV9ywOpif45fXapr6DwdUtLTuIIPcVb1WrcxuG4fynMpsQyyPLb+gPkotRzQbhp5kDwICmVXjeQOYjucIBUWq8jcR94FvcW2K758xz36xlrfgj8MjwJUSs1v3B4f3BSw5o90s4tgjvb+yxYydWQ6RxA8wYWZ+rXqfo9x/WYNjSQTSJpmDsEFv9JA7CuqXlPotx5biKlLJr6etH3mERH4XOmNwXqy6siIiArHNBEG4KvRBp8XoNjrsJpncAHM7WnIfKWrVVKGKpWcwPZvpme9jr90rrEQcBUbQMyzVM3nWaAeAB1QeS1dbRjM2vjg6/iP2XpOJwTH+00ExEizo5i8cFrH9Gqcy2AeLWu8gFiytS44puHYy4cHOi0ZDZKgVMPORlegO0PUbZmpHzOb4AR4qK/RNfiB90yfF58li87+rOscTTwT5HqnmRAHG+alDDRyFu/+JK6N2BLTdpHF0yVKo4VgF4KvM35C2OKqtDZLnBvMxMhRnYpnuBzvlB8yt5pvo/TZrVWAu2lusZ7Jz5LRMqUzsaOcHzlZ65y/VnSprH4I+ZzR5lOsd8LOx7VIAaBIcR2D9WfqrqYJMes7dZpn8oXOyNzWClUJIBaR4/QUkMU+ngY4k5/sPFX/AGXZ9bFm81djWOaRECZsrw1T/syDDeaxjSG1nmq9XkpzMMq9QfBXE1DDFka3fkpXUHcqmgdmcJhqKykGiGgDkq6ql9QqUsKAIE773vxKmLqMGqrWKaMOrm4fbClVE1FaaUrYjDqvUKfVa80bz3KvUeS2LcNfKyzNw4GasqfGpOFJtcRe23f2LL9iO7gtoQR7LHu+Vrj5BafFaRfJaPVjOxkcxs7V2541z66g/CATrEfsoVUMBzJ2WvdYMRUnN2tO0u1e45FYX1CPasD8Q1f62+qe0Ld5iemdzm7bc7HslZcO9jXAlrXfdfrDuDSCe2QorfxAb7Fve2W94UzDwLWjgBHhY9wUsw/XUaG0i1zmsZh2NnMtgQNp9n9V1C0fR3AajNciC4WERDc9m+3gt4u/O59crm/FURFpEfE4Zjxqva1w3ET3blz2keh9N96bi0/C712nhJ9bvJ5LqUQeTaX6P1qMl7SGj32+s3tOwcHRwXPPBbmNXc5t2nmNy95IXM6W6H0Ksup/8Tz8Ilp5sy7oWbB5WwbQPxM/Vv8AEJUo6wkAO4tMH9j2Qttpbo5Xw51ns9Uf+xhJb2mJbycAOK1vWA3zO8eq79ncslj7rSnRrGNw+Mo1HEta18O1rQ14LHE2yAdO3Je7r54xFyYMjcQAe79oXsvQfSn2jCUy6demOrfOZLAIPa3VPMncuusujREQEREBERAREQEREFpaCIN1FqaPpu92OVvJTEQaitoVpye4c4P7LWV+i0/A7iRB7wupRZvMqy2OHf0OvIZB3tcP8lJo6EcwWYRvPtE9sldeiniL6rlRgnDNju4qx2F4fWxdakJeIeq5A0An2ZdaWDcO5WdQz4W9wWP4v+r7rlxhQs1LBt2roDhGfC3uT7Iz4fNanGJ6rmK1WgDAlxytsO6+SjPxLB7rwOQPkV02J0PRqTrNgxGsLOHbt5GQua0hoavSksHWM+7JcObMxzaT8oTrn5+Lz1/qjcVSPvgfN6v91ipjKQNxF1znXcOBvEcJH6iVJ0bpHq3TAc33mOEC+4gEA5XcvPLNyt38+N6KKuZQnIE8gt9hyxzQ5oaQdwH1KkQuv8Mv9se655mCecmHtt5rMNFvPwt8fJbtFqf+PKe61bNED3nk8gB5ypFLR7GmYk/eMxyGSmItTjmfkS21VRcXgqdQRUY10ZEi45HMHkpSLaOS0l0Qa6TRcWnc4m/4oJI+YOXLYvRVagfWa5g+JsBp5gkscTwIPBeqqhErN5laleTUmkH2Rzb/AMZ7Wmx71v8AQOB6yqJ9lvrOnbGw75MeK6itoOg6/VgH7stHcLHuUjBYFlIEMETcnMlSc1fXxMREW2BERAREQEREBc3pbodha8nV6t596nDZ5tjVPOJ4rpEQeU6U9H+Ibem5lYbB7Du5xj+rsW89HuiMThzVFZmoxwbAJBlwJuIOUE35dncopn1dVREVQREQEREBERAREQEREBERAREQEREBERAREQEREGuxuiqNW72An4hLXfmbBjhktFi+h+2nV5B4y/EyI7l1qLN5l/VlsaDo9oytQLmvc0sI2OJOtaDBYItO07Fv0RWTJhbqqIiqCIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIg//Z",available:!0,unavailableReason:null,unavailableReasonCode:null,ruleType:"VARIABLE_CREDIT_REWARD",sourceUnit:"POINT",sourceValue:null,prettySourceValue:null,sourceMinValue:1,prettySourceMinValue:"1 Point",sourceMaxValue:100,prettySourceMaxValue:"100 Points",destinationMinValue:1,prettyDestinationMinValue:"1 Salmon Coin",destinationMaxValue:100,prettyDestinationMaxValue:"100 Salmons",globalRewardKey:null,destinationUnit:"TESTUNIT",steps:[{sourceValue:1,prettySourceValue:"1 Point",destinationValue:1,prettyDestinationValue:"1 Salmon Coin",available:!0,unavailableReasonCode:null},{sourceValue:2,prettySourceValue:"2 Points",destinationValue:2,prettyDestinationValue:"2 Salmons",available:!0,unavailableReasonCode:null},{sourceValue:3,prettySourceValue:"3 Points",destinationValue:3,prettyDestinationValue:"3 Salmons",available:!0,unavailableReasonCode:null},{sourceValue:4,prettySourceValue:"4 Points",destinationValue:4,prettyDestinationValue:"4 Salmons",available:!0,unavailableReasonCode:null},{sourceValue:5,prettySourceValue:"5 Points",destinationValue:5,prettyDestinationValue:"5 Salmons",available:!0,unavailableReasonCode:null}]},selectedStep:null},data:{exchangeList:null},callbacks:{exchangeReward:null,openDrawer:null,setStage:null,setExchangeState:null,refs:{drawerRef:{}}},refs:null},Au={width:"683px",minWidth:"260px",resize:"horizontal",height:"fit-content",overflow:"hidden"},Su=Object.freeze({__proto__:null,default:{title:"Components/Reward Exchange List"},Default:()=>e("div",{style:Au},e(vn,Object.assign({},Du))),Default2:()=>e("div",{style:{...Au,height:"700px"}},e(vn,Object.assign({},ku)))});function Tu(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];"object"!=typeof r||Object.isFrozen(r)||Tu(r)})),e}var Fu=Tu;Fu.default=Tu;class Ru{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Pu(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Iu(e,...t){const r=Object.create(null);for(const t in e)r[t]=e[t];return t.forEach((function(e){for(const t in e)r[t]=e[t]})),r}const Bu=e=>!!e.kind;class Nu{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=Pu(e)}openNode(e){if(!Bu(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){Bu(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class Ou{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{Ou._collapse(e)})))}}class Lu extends Ou{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const r=e.root;r.kind=t,r.sublanguage=!0,this.add(r)}toHTML(){return new Nu(this,this.options).value()}finalize(){return!0}}function Mu(e){return e?"string"==typeof e?e:e.source:null}const ju=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,_u="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Vu={begin:"\\\\[\\s\\S]",relevance:0},Gu={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[Vu]},Hu={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[Vu]},Wu={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},zu=function(e,t,r={}){const n=Iu({className:"comment",begin:e,end:t,contains:[]},r);return n.contains.push(Wu),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},Uu=zu("//","$"),Zu=zu("/\\*","\\*/"),Ju=zu("#","$");var Xu=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:_u,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map((e=>Mu(e))).join("")}(t,/.*\b/,e.binary,/\b.*/)),Iu({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Vu,APOS_STRING_MODE:Gu,QUOTE_STRING_MODE:Hu,PHRASAL_WORDS_MODE:Wu,COMMENT:zu,C_LINE_COMMENT_MODE:Uu,C_BLOCK_COMMENT_MODE:Zu,HASH_COMMENT_MODE:Ju,NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C_NUMBER_MODE:{className:"number",begin:_u,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:"\\b(0b[01]+)",relevance:0},CSS_NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Vu,{begin:/\[/,end:/\]/,relevance:0,contains:[Vu]}]}]},TITLE_MODE:{className:"title",begin:"[a-zA-Z]\\w*",relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function Yu(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function Qu(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Yu,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function Ku(e){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map((e=>Mu(e))).join("|")+")"}(...e.illegal))}function ec(e){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function tc(e){void 0===e.relevance&&(e.relevance=1)}const rc=["of","and","for","in","not","or","if","then","parent","list","value"];function nc(e,t,r="keyword"){const n={};return"string"==typeof e?a(r,e.split(" ")):Array.isArray(e)?a(r,e):Object.keys(e).forEach((function(r){Object.assign(n,nc(e[r],t,r))})),n;function a(e,r){t&&(r=r.map((e=>e.toLowerCase()))),r.forEach((function(t){const r=t.split("|");n[r[0]]=[e,ac(r[0],r[1])]}))}}function ac(e,t){return t?Number(t):function(e){return rc.includes(e.toLowerCase())}(e)?0:1}function ic(e,{}){function t(t,r){return new RegExp(Mu(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(function(e,t="|"){let r=0;return e.map((e=>{r+=1;const t=r;let n=Mu(e),a="";for(;n.length>0;){const e=ju.exec(n);if(!e){a+=n;break}a+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&r++)}return a})).map((e=>`(${e})`)).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const r=t.findIndex(((e,t)=>t>0&&void 0!==e)),n=this.matchIndexes[r];return t.splice(0,r),Object.assign(t,n)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach((([e,r])=>t.addRule(e,r))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let r=t.exec(e);if(this.resumingScanAtSamePosition())if(r&&r.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,r=t.exec(e)}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Iu(e.classNameAliases||{}),function r(a,i){const s=a;if(a.isCompiled)return s;[ec].forEach((e=>e(a,i))),e.compilerExtensions.forEach((e=>e(a,i))),a.__beforeBegin=null,[Qu,Ku,tc].forEach((e=>e(a,i))),a.isCompiled=!0;let o=null;if("object"==typeof a.keywords&&(o=a.keywords.$pattern,delete a.keywords.$pattern),a.keywords&&(a.keywords=nc(a.keywords,e.case_insensitive)),a.lexemes&&o)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return o=o||a.lexemes||/\w+/,s.keywordPatternRe=t(o,!0),i&&(a.begin||(a.begin=/\B|\b/),s.beginRe=t(a.begin),a.endSameAsBegin&&(a.end=a.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(s.endRe=t(a.end)),s.terminatorEnd=Mu(a.end)||"",a.endsWithParent&&i.terminatorEnd&&(s.terminatorEnd+=(a.end?"|":"")+i.terminatorEnd)),a.illegal&&(s.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return Iu(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:sc(e)?Iu(e,{starts:e.starts?Iu(e.starts):null}):Object.isFrozen(e)?Iu(e):e}("self"===e?a:e)}))),a.contains.forEach((function(e){r(e,s)})),a.starts&&r(a.starts,i),s.matcher=function(e){const t=new n;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(s),s}(e)}function sc(e){return!!e&&(e.endsWithParent||sc(e.starts))}function oc(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,Pu(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const lc={"after:highlightElement":({el:e,result:t,text:r})=>{const n=uc(e);if(!n.length)return;const a=document.createElement("div");a.innerHTML=t.value,t.value=function(e,t,r){let n=0,a="";const i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function o(e){a+="<"+dc(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+Pu(e.value)+'"'})).join("")+">"}function l(e){a+="</"+dc(e)+">"}function d(e){("start"===e.event?o:l)(e.node)}for(;e.length||t.length;){let t=s();if(a+=Pu(r.substring(n,t[0].offset)),n=t[0].offset,t===e){i.reverse().forEach(l);do{d(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===n);i.reverse().forEach(o)}else"start"===t[0].event?i.push(t[0].node):i.pop(),d(t.splice(0,1)[0])}return a+Pu(r.substr(n))}(n,uc(a),r)}};function dc(e){return e.nodeName.toLowerCase()}function uc(e){const t=[];return function e(r,n){for(let a=r.firstChild;a;a=a.nextSibling)3===a.nodeType?n+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:n,node:a}),n=e(a,n),dc(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:a}));return n}(e,0),t}const cc={},mc=e=>{console.error(e)},pc=(e,...t)=>{console.log(`WARN: ${e}`,...t)},hc=(e,t)=>{cc[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),cc[`${e}/${t}`]=!0)},fc=Pu,gc=Iu,bc=Symbol("nomatch");var vc=function(e){const t=Object.create(null),r=Object.create(null),n=[];let a=!0;const i=/(^(<[^>]+>|\t|)+|\n)/gm,s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:Lu};function d(e){return l.noHighlightRe.test(e)}function u(e,t,r,n){let a="",i="";"object"==typeof t?(a=e,r=t.ignoreIllegals,i=t.language,n=void 0):(hc("10.7.0","highlight(lang, code, ...args) has been deprecated."),hc("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,a=t);const s={code:a,language:i};q("before:highlight",s);const o=s.result?s.result:c(s.language,s.code,r,n);return o.code=s.code,q("after:highlight",o),o}function c(e,r,i,o){function d(e,t){const r=y.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,r)&&e.keywords[r]}function u(){null!=q.subLanguage?function(){if(""===E)return;let e=null;if("string"==typeof q.subLanguage){if(!t[q.subLanguage])return void D.addText(E);e=c(q.subLanguage,E,!0,C[q.subLanguage]),C[q.subLanguage]=e.top}else e=m(E,q.subLanguage.length?q.subLanguage:null);q.relevance>0&&(k+=e.relevance),D.addSublanguage(e.emitter,e.language)}():function(){if(!q.keywords)return void D.addText(E);let e=0;q.keywordPatternRe.lastIndex=0;let t=q.keywordPatternRe.exec(E),r="";for(;t;){r+=E.substring(e,t.index);const n=d(q,t);if(n){const[e,a]=n;D.addText(r),r="",k+=a,e.startsWith("_")?r+=t[0]:D.addKeyword(t[0],y.classNameAliases[e]||e)}else r+=t[0];e=q.keywordPatternRe.lastIndex,t=q.keywordPatternRe.exec(E)}r+=E.substr(e),D.addText(r)}(),E=""}function p(e){return e.className&&D.openNode(y.classNameAliases[e.className]||e.className),q=Object.create(e,{parent:{value:q}}),q}function h(e,t,r){let n=function(e,t){const r=e&&e.exec(t);return r&&0===r.index}(e.endRe,r);if(n){if(e["on:end"]){const r=new Ru(e);e["on:end"](t,r),r.isMatchIgnored&&(n=!1)}if(n){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return h(e.parent,t,r)}function f(e){return 0===q.matcher.regexIndex?(E+=e[0],1):(T=!0,0)}function g(e){const t=e[0],n=r.substr(e.index),a=h(q,e,n);if(!a)return bc;const i=q;i.skip?E+=t:(i.returnEnd||i.excludeEnd||(E+=t),u(),i.excludeEnd&&(E=t));do{q.className&&D.closeNode(),q.skip||q.subLanguage||(k+=q.relevance),q=q.parent}while(q!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),p(a.starts)),i.returnEnd?0:t.length}let b={};function v(t,n){const s=n&&n[0];if(E+=t,null==s)return u(),0;if("begin"===b.type&&"end"===n.type&&b.index===n.index&&""===s){if(E+=r.slice(n.index,n.index+1),!a){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=n,"begin"===n.type)return function(e){const t=e[0],r=e.rule,n=new Ru(r),a=[r.__beforeBegin,r["on:begin"]];for(const r of a)if(r&&(r(e,n),n.isMatchIgnored))return f(t);return r&&r.endSameAsBegin&&(r.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?E+=t:(r.excludeBegin&&(E+=t),u(),r.returnBegin||r.excludeBegin||(E=t)),p(r),r.returnBegin?0:t.length}(n);if("illegal"===n.type&&!i){const e=new Error('Illegal lexeme "'+s+'" for mode "'+(q.className||"<unnamed>")+'"');throw e.mode=q,e}if("end"===n.type){const e=g(n);if(e!==bc)return e}if("illegal"===n.type&&""===s)return 1;if(S>1e5&&S>3*n.index)throw new Error("potential infinite loop, way more iterations than matches");return E+=s,s.length}const y=w(e);if(!y)throw mc(s.replace("{}",e)),new Error('Unknown language: "'+e+'"');const $=ic(y,{plugins:n});let x="",q=o||$;const C={},D=new l.__emitter(l);!function(){const e=[];for(let t=q;t!==y;t=t.parent)t.className&&e.unshift(t.className);e.forEach((e=>D.openNode(e)))}();let E="",k=0,A=0,S=0,T=!1;try{for(q.matcher.considerAll();;){S++,T?T=!1:q.matcher.considerAll(),q.matcher.lastIndex=A;const e=q.matcher.exec(r);if(!e)break;const t=v(r.substring(A,e.index),e);A=e.index+t}return v(r.substr(A)),D.closeAllNodes(),D.finalize(),x=D.toHTML(),{relevance:Math.floor(k),value:x,language:e,illegal:!1,emitter:D,top:q}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:r.slice(A-100,A+100),mode:t.mode},sofar:x,relevance:0,value:fc(r),emitter:D};if(a)return{illegal:!1,relevance:0,value:fc(r),emitter:D,language:e,top:q,errorRaised:t};throw t}}function m(e,r){r=r||l.languages||Object.keys(t);const n=function(e){const t={relevance:0,emitter:new l.__emitter(l),value:fc(e),illegal:!1,top:o};return t.emitter.addText(e),t}(e),a=r.filter(w).filter(x).map((t=>c(t,e,!1)));a.unshift(n);const i=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(w(e.language).supersetOf===t.language)return 1;if(w(t.language).supersetOf===e.language)return-1}return 0})),[s,d]=i,u=s;return u.second_best=d,u}const p={"before:highlightElement":({el:e})=>{l.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{l.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},h=/^(<[^>]+>|\t)+/gm,f={"after:highlightElement":({result:e})=>{l.tabReplace&&(e.value=e.value.replace(h,(e=>e.replace(/\t/g,l.tabReplace))))}};function g(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const r=l.languageDetectRe.exec(t);if(r){const t=w(r[1]);return t||(pc(s.replace("{}",r[1])),pc("Falling back to no-highlight mode for this block.",e)),t?r[1]:"no-highlight"}return t.split(/\s+/).find((e=>d(e)||w(e)))}(e);if(d(n))return;q("before:highlightElement",{el:e,language:n}),t=e;const a=t.textContent,i=n?u(a,{language:n,ignoreIllegals:!0}):m(a);q("after:highlightElement",{el:e,result:i,text:a}),e.innerHTML=i.value,function(e,t,n){const a=t?r[t]:n;e.classList.add("hljs"),a&&e.classList.add(a)}(e,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const b=()=>{b.called||(b.called=!0,hc("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(g))};let v=!1;function y(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(g):v=!0}function w(e){return e=(e||"").toLowerCase(),t[e]||t[r[e]]}function $(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{r[e.toLowerCase()]=t}))}function x(e){const t=w(e);return t&&!t.disableAutodetect}function q(e,t){const r=e;n.forEach((function(e){e[r]&&e[r](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){v&&y()}),!1),Object.assign(e,{highlight:u,highlightAuto:m,highlightAll:y,fixMarkup:function(e){return hc("10.2.0","fixMarkup will be removed entirely in v11.0"),hc("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,l.tabReplace||l.useBR?t.replace(i,(e=>"\n"===e?l.useBR?"<br>":e:l.tabReplace?e.replace(/\t/g,l.tabReplace):e)):t;var t},highlightElement:g,highlightBlock:function(e){return hc("10.7.0","highlightBlock will be removed entirely in v12.0"),hc("10.7.0","Please use highlightElement now."),g(e)},configure:function(e){e.useBR&&(hc("10.3.0","'useBR' will be removed entirely in v11.0"),hc("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=gc(l,e)},initHighlighting:b,initHighlightingOnLoad:function(){hc("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),v=!0},registerLanguage:function(r,n){let i=null;try{i=n(e)}catch(e){if(mc("Language definition for '{}' could not be registered.".replace("{}",r)),!a)throw e;mc(e),i=o}i.name||(i.name=r),t[r]=i,i.rawDefinition=n.bind(null,e),i.aliases&&$(i.aliases,{languageName:r})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(t)},getLanguage:w,registerAliases:$,requireLanguage:function(e){hc("10.4.0","requireLanguage will be removed entirely in v11."),hc("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=w(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:x,inherit:gc,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),n.push(e)},vuePlugin:oc(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString="10.7.3";for(const e in Xu)"object"==typeof Xu[e]&&Fu(Xu[e]);return Object.assign(e,Xu),e.addPlugin(p),e.addPlugin(lc),e.addPlugin(f),e}({});vc.registerLanguage("gherkin",(function(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}));const yc=({story:t},r)=>{var n;let a,i=null===(n=t.parent.parameters)||void 0===n?void 0:n.scenario;try{a=vc.highlight("gherkin",i)}catch(e){}return e("div",null,e("details",null,e("summary",null,"Specs"),a&&e("pre",{innerHTML:a.value})),r)},wc=[ts,rs,ns,ss,fs,Cs,As,ao,so,co,hs,bs,ys,mo,Io,Bo,No,jo,Wo,Xo,tl,ll,cl,ml,bl,Cl,Fl,xd,Cd,od,Dd,Ed,Rd,Bd,au,du,uu,mu,pu,fu,vu,Su,$o,ko,Do],$c=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const{class:t,children:n}=function(t,r){var n=r.h,a=void 0===n?e:n,s=r.title,o=void 0===s?"Stencilbook":s,l=r.homepage,d=void 0===l?a("h3",null,"Select a story!"):l,u=r.addons,c=void 0===u?[]:u,m=h((function(){return t.map(es).reduce(Ki,{_:[]})}),t),p=i(void 0),f=p[0],g=p[1],b=null==f?void 0:f.key,v=i("desktop"),y=v[0],w=v[1],$=i(!0),x=$[0],q=$[1],C=i(!1),D=C[0],E=C[1],k=function(){return a("div",{class:"dynamic-display-wrapper"},a("div",{class:"button-wrapper"},a("button",{class:"desktop"===y?"active":"",onClick:function(){return w("desktop")}},"Desktop"),a("button",{class:"tablet"===y?"active":"",onClick:function(){return w("tablet")}},"Tablet"),a("button",{class:"mobile"===y?"active":"",onClick:function(){return w("mobile")}},"Mobile")),a("p",null,"Note: Currently doesn't test breakpoints, use the native tester for now"),a("hr",null),a("button",{class:D?"active":"",onClick:function(){return E((function(e){return!e}))}},"Toggle Dark Background"),a("hr",null),a("button",{class:x?"active":"",onClick:function(){return q((function(e){return!e}))}},"Toggle Sidebar"))},A="mobile"===y?"375px":"tablet"===y?"768px":"1124px",S=zi(Xi||(Xi=Zi(["\n max-width: ",";\n margin-left: ",";\n "])),A,x?"250px":"0px"),T=zi(Yi||(Yi=Zi(["\n display: none;\n "])));document.body.style.backgroundColor=D?"#232323":"#fafafa";var F=function(e){var t=e.selected,r=c.reduce((function(e,r){return function(){return a(r,{story:Ui({},t)},a(e,null))}}),null==t?void 0:t.story);return a(r,null)},R=function(){return a("div",{class:"story-book-outer-div"},a("div",{class:"story-div "+(x?"":T)},a("div",{class:"header",onClick:function(){g(void 0)}},a("h2",null,o)),a("ul",{class:"parentStoryList"},Object.keys(m).sort().map((function(e){return a("div",{class:"group-wrapper"},"_"!==e&&a("h4",{class:"group-header"},e),m[e].map((function(t){return a("li",{class:"parentStory"},a("details",{style:{marginBottom:"10px"}},a("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map((function(r){var n=e+"/"+r,i=t.subs[r],s=i.storyName||Ta(r);return a("div",{class:"subStory "+(b===n?"selected":"")},a("a",{onClick:function(){return function(e,t,r,n){g({key:t,story:e,parent:r,label:n})}(i,n,t.story,s)}},s))}))))})))})))),a(k,null),a("div",{class:"component "+S},!b&&d,b&&a("div",null,a("h3",null,f.label),a(F,{selected:f}))))};return{class:Qi,children:a(R,null),View:R,selected:f}}(wc,{h:e,title:"Mint Components",addons:[yc,de,os]});return e(r,{class:t,onClick:{}},n)}},xc=class{constructor(e){t(this,e),this.colspan=1,this.padding="15px 10px"}render(){return e(r,{style:{display:"contents"}},e("td",{colSpan:this.colspan,style:{padding:this.padding}},e("slot",null)))}},qc=class{constructor(e){t(this,e),this.border="1px solid #EAEAEA"}render(){return e(r,{style:{display:"contents"}},e("tr",{style:{border:this.border}},e("slot",null)))}},Cc=class{constructor(e){t(this,e),this.ignored=!0,this.rewardAmount=0,this.rewardUnit="Points",this.cardTitle="Title Text",this.description="Description Text",this.repeatable=!1,this.showProgressBar=!1,this.progressSource="",this.goal=1,this.steps=!1,this.showExpiry=!1,this.buttonText="Complete Action",this.buttonLink="https://example.com/",this.statType="/programGoals/count/Referral-Started%2Freferrals",a(this)}disconnectedCallback(){}render(){const{props:t}=x()?ie(this):ae(this),{value:r}=t;return console.log(t,x()),e(Sd,Object.assign({},j(this),{progress:r,loading:void 0===r}))}},Dc=u("sq:global"),Ec=class{constructor(e){t(this,e),this.ignored=!0,a(this)}disconnectedCallback(){}componentWillLoad(){try{g("\n sqm-text {\n display: block;\n }\n\n sqm-text h1 {\n font-size: var(--sl-font-size-xx-large);\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: var(--sl-font-size-x-large);\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: var(--sl-font-size-large);\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: 13px;\n font-weight: 600;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text p {\n font-size: var(--sl-font-size-small);\n font-weight: 400;\n color: var(--sl-color-gray-800);\n margin: 0;\n }\n\n sqm-text p[light] {\n font-size: var(--sl-font-size-x-small);\n font-weight: 400;\n color: var(--sl-color-gray-600);\n margin: 0;\n }\n")}catch(e){Dc(e)}}render(){return e("slot",null)}};function kc(t){return e(r,null,t.loading?t.loadingText:t.username)}const Ac=Q`
|
|
327
327
|
query getUserName {
|
|
328
328
|
viewer {
|
|
329
329
|
... on User {
|
|
@@ -332,4 +332,4 @@ import{h as e,r as t,c as r,d as n}from"./p-64c3217a.js";import{m as a,j as i,e
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
`,
|
|
335
|
+
`,Sc=class{constructor(e){t(this,e),this._ignored=!0,this.fallback="Anonymous User",this.loadingText="...",a(this)}disconnectedCallback(){}render(){const t=x()?function(e){return V({loading:!1,loadingText:"...",username:"John Smith"},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,r,n,a,i,s,o,l;const d=y(),u=w(Ac,{},!(null==d?void 0:d.jwt)),c=(null===(r=null===(t=u.data)||void 0===t?void 0:t.viewer)||void 0===r?void 0:r.firstName)||(null===(a=null===(n=u.data)||void 0===n?void 0:n.viewer)||void 0===a?void 0:a.lastName)?`${null===(s=null===(i=u.data)||void 0===i?void 0:i.viewer)||void 0===s?void 0:s.firstName} ${null===(l=null===(o=u.data)||void 0===o?void 0:o.viewer)||void 0===l?void 0:l.lastName}`:e.fallback;return{loadingText:e.loadingText,loading:u.loading,username:c}}(this);return e(kc,Object.assign({},t))}};export{Ce as sqm_divided_layout,Se as sqm_edit_profile,Te as sqm_form_message,Fe as sqm_hook_story_container,Pe as sqm_navigation_menu,at as sqm_password_field,st as sqm_portal_change_password,ct as sqm_portal_frame,gt as sqm_portal_login,Ir as sqm_portal_register,Nr as sqm_program_menu,Vr as sqm_referral_iframe,Yr as sqm_referral_table,tn as sqm_referral_table_cell,nn as sqm_referral_table_date_cell,an as sqm_referral_table_rewards_cell,sn as sqm_referral_table_status_cell,on as sqm_referral_table_user_cell,yn as sqm_reward_exchange_list,Tn as sqm_rewards_table,Fn as sqm_rewards_table_column,In as sqm_router,Vn as sqm_share_button,Wn as sqm_share_link,$c as sqm_stencilbook,xc as sqm_table_cell,qc as sqm_table_row,Cc as sqm_task_card,Ec as sqm_text,Sc as sqm_user_name}
|