@windstream/react-shared-components 0.2.92 → 0.2.94

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.
Files changed (72) hide show
  1. package/dist/contentful/index.d.ts +46 -9
  2. package/dist/contentful/index.esm.js +4 -4
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +3 -3
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +6 -3
  7. package/dist/index.d.ts +4 -1
  8. package/dist/index.esm.js +2 -2
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +2 -2
  11. package/dist/index.js.map +1 -1
  12. package/dist/utils/index.d.ts +2 -1
  13. package/dist/utils/index.esm.js +1 -1
  14. package/dist/utils/index.esm.js.map +1 -1
  15. package/dist/utils/index.js +1 -1
  16. package/dist/utils/index.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/components/checklist/index.test.tsx +18 -1
  19. package/src/components/checklist/index.tsx +25 -21
  20. package/src/components/checklist/types.ts +8 -2
  21. package/src/contentful/blocks/address-input-banner/index.test.tsx +14 -0
  22. package/src/contentful/blocks/address-input-banner/index.tsx +3 -1
  23. package/src/contentful/blocks/address-input-banner/types.ts +1 -1
  24. package/src/contentful/blocks/anchored-bottom-banner/index.test.tsx +91 -0
  25. package/src/contentful/blocks/anchored-bottom-banner/index.tsx +18 -11
  26. package/src/contentful/blocks/anchored-bottom-banner/types.ts +17 -3
  27. package/src/contentful/blocks/blogs-grid/index.test.tsx +21 -1
  28. package/src/contentful/blocks/blogs-grid/index.tsx +1 -0
  29. package/src/contentful/blocks/blogs-grid/types.ts +3 -0
  30. package/src/contentful/blocks/blogs-grid-base/index.test.tsx +49 -3
  31. package/src/contentful/blocks/blogs-grid-base/index.tsx +11 -2
  32. package/src/contentful/blocks/blogs-grid-base/types.ts +7 -1
  33. package/src/contentful/blocks/cards/blog-card/index.test.tsx +29 -0
  34. package/src/contentful/blocks/cards/blog-card/index.tsx +18 -4
  35. package/src/contentful/blocks/cards/blog-card/types.ts +3 -1
  36. package/src/contentful/blocks/cards/product-card/index.test.tsx +43 -0
  37. package/src/contentful/blocks/cards/product-card/index.tsx +37 -9
  38. package/src/contentful/blocks/cards/product-card/types.ts +3 -0
  39. package/src/contentful/blocks/carousel/helper.test.tsx +13 -0
  40. package/src/contentful/blocks/carousel/helper.tsx +1 -0
  41. package/src/contentful/blocks/carousel/types.ts +2 -0
  42. package/src/contentful/blocks/dynamic-form/conditional-fields.tsx +1 -0
  43. package/src/contentful/blocks/dynamic-form/form-field.tsx +1 -0
  44. package/src/contentful/blocks/dynamic-form/index.test.tsx +48 -0
  45. package/src/contentful/blocks/dynamic-form/index.tsx +19 -7
  46. package/src/contentful/blocks/dynamic-form/render.tsx +13 -7
  47. package/src/contentful/blocks/dynamic-form/types.ts +28 -2
  48. package/src/contentful/blocks/dynamic-tabs/index.test.tsx +52 -2
  49. package/src/contentful/blocks/dynamic-tabs/index.tsx +9 -2
  50. package/src/contentful/blocks/dynamic-tabs/ordered-tab-views.tsx +16 -6
  51. package/src/contentful/blocks/dynamic-tabs/tab-views.tsx +10 -6
  52. package/src/contentful/blocks/dynamic-tabs/types.ts +6 -0
  53. package/src/contentful/blocks/email-input-block/index.test.tsx +51 -3
  54. package/src/contentful/blocks/email-input-block/index.tsx +88 -31
  55. package/src/contentful/blocks/email-input-block/types.ts +14 -1
  56. package/src/contentful/blocks/fiber-form/index.test.tsx +40 -2
  57. package/src/contentful/blocks/fiber-form/index.tsx +32 -13
  58. package/src/contentful/blocks/fiber-form/types.ts +18 -0
  59. package/src/contentful/blocks/iframe-embed/index.test.tsx +44 -7
  60. package/src/contentful/blocks/iframe-embed/index.tsx +3 -2
  61. package/src/contentful/blocks/iframe-embed/types.ts +1 -0
  62. package/src/contentful/blocks/navigation/{Navigation.stories.tsx → navigation.stories.tsx} +1 -1
  63. package/src/contentful/blocks/ordered-list/index.test.tsx +54 -4
  64. package/src/contentful/blocks/ordered-list/index.tsx +14 -2
  65. package/src/contentful/blocks/ordered-list/types.ts +15 -2
  66. package/src/contentful/blocks/primary-hero/index.tsx +5 -5
  67. package/src/contentful/blocks/search-block/index.test.tsx +36 -2
  68. package/src/contentful/blocks/search-block/index.tsx +24 -4
  69. package/src/contentful/blocks/search-block/types.ts +10 -0
  70. package/src/utils/index.ts +1 -1
  71. package/src/utils/replace-tokens.test.ts +40 -0
  72. package/src/utils/replace-tokens.ts +13 -0
@@ -154,6 +154,7 @@ type RichTextDocument = {
154
154
  content: unknown[];
155
155
  };
156
156
  type ReplaceTokensResult<T> = T extends string ? string : T;
157
+ declare const getTokenField: (token: string | null | undefined, tokens: TokenSource, field: "promo" | "value") => string | undefined;
157
158
  declare function replaceTokens<T extends string | RichTextDocument | null | undefined>(input: T, tokens: TokenSource): ReplaceTokensResult<T>;
158
159
 
159
160
  declare const toDocument: (v: unknown | null | undefined) => Document | null;
@@ -183,5 +184,5 @@ interface ProcessedChecklistItem {
183
184
  }
184
185
  declare function useProcessedChecklist<T extends boolean = false>(checklistData?: any, titlesOnly?: T, richTextOptions?: Options, richTextClassName?: string): T extends true ? string[] : ProcessedChecklistItem[];
185
186
 
186
- export { SpeedCardBg, UTM_PARAM_NAMES, buildPreservedQueryHref, buildWifiGrantRedirectUrl, combineExistingAndNewUTMs, cx, getCampaignProperties, getCookie, getOrganicTrafficUtmParameters, getParsedCookie, getUTMs, getUtmParametersFromURL, label1BoldOptions, redirectToWifiGrantUrl, removeUTMs, renderContentfulRichText, renderContentfulRichTextTable, replaceTokens, setCookie, setUTMs, toDocument, useContentfulRichText, useProcessedChecklist };
187
+ export { SpeedCardBg, UTM_PARAM_NAMES, buildPreservedQueryHref, buildWifiGrantRedirectUrl, combineExistingAndNewUTMs, cx, getCampaignProperties, getCookie, getOrganicTrafficUtmParameters, getParsedCookie, getTokenField, getUTMs, getUtmParametersFromURL, label1BoldOptions, redirectToWifiGrantUrl, removeUTMs, renderContentfulRichText, renderContentfulRichTextTable, replaceTokens, setCookie, setUTMs, toDocument, useContentfulRichText, useProcessedChecklist };
187
188
  export type { CampaignProperties, ProcessedChecklistItem, ReplaceTokensResult, RichTextDocument, TokenEntry, TokenSource, UTMProperties, UTMProperty };
@@ -1,2 +1,2 @@
1
- import{clsx as e}from"clsx";export{clsx}from"clsx";import{extendTailwindMerge as t}from"tailwind-merge";import{Base64 as r}from"js-base64";import n from"js-cookie";import{jsx as o,jsxs as i,Fragment as a}from"react/jsx-runtime";import u,{useMemo as l,createElement as c}from"react";import{Checklist as s}from"@windstream/react-shared-components";import{Link as d}from"@windstream/react-shared-components";import{MaterialIcon as f}from"@windstream/react-shared-components";import{Text as p}from"@windstream/react-shared-components";import{VideoLink as E}from"@windstream/react-shared-components";const y=t({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),m=(...t)=>y(e(...t)),h=(e="#24A76A")=>`<svg xmlns="http://www.w3.org/2000/svg" width="684" height="107" viewBox="0 0 684 107" fill="none">\n <g clip-path="url(#clip0_12352_9042)">\n <path d="M154.09 -70.5605C173.769 -7.58032 204.79 24.8889 328.202 55.2823C444.619 83.9133 629.479 141.332 667.653 80.7015C691.679 45.2165 678.322 -5.62201 670.537 -46.3554C664.452 -73.1846 658.327 -97.1939 652.913 -123.475C651.135 -132.091 638.766 -131.974 637.067 -123.318C628.136 -77.6888 612.526 -44.9062 577.593 -22.4637C517.962 20.1889 377.954 -6.48361 303.148 -38.287C223.245 -70.7171 200.918 -132.366 195.425 -199.341C193.37 -235.257 198.467 -269.841 208.07 -299.569C210.915 -308.303 199.218 -314.178 193.844 -306.697C151.324 -247.751 137.69 -140.395 154.129 -70.5213" fill="${e}" />\n <path d="M167.605 -417.382C104.062 -397.877 71.302 -367.131 40.6368 -244.813C11.7499 -129.428 -46.182 53.7941 14.9903 91.6292C50.7927 115.443 102.086 102.204 143.183 94.4883C170.253 88.4567 194.476 82.3858 220.992 77.02C229.686 75.2574 229.568 62.9983 220.834 61.3141C174.797 52.4624 141.721 36.9915 119.078 2.36813C76.0441 -56.7345 102.955 -195.502 135.043 -269.645C167.763 -348.84 229.963 -370.969 297.537 -376.414C333.774 -378.45 368.667 -373.398 398.661 -363.88C407.473 -361.06 413.401 -372.654 405.853 -377.98C346.38 -420.124 238.064 -433.636 167.565 -417.343" fill="${e}" />\n </g>\n <defs>\n <clipPath id="clip0_12352_9042">\n <rect width="684" height="107" fill="white" />\n </clipPath>\n </defs>\n </svg>`,v="utm_parameters",L=".gokinetic.com";function b(){if("undefined"==typeof window)return null;const e=n.get(v);if(!e)return null;try{const t=r.decode(e);return JSON.parse(t)}catch(e){return null}}function A(e,t=L){if("undefined"==typeof window)return;const o=JSON.stringify(e),i=r.encode(o);n.set(v,i,{domain:t,path:"/",sameSite:"Lax"})}function _(e=L){n.remove(v,{domain:e,path:"/"})}function O(e){if("undefined"==typeof window)return"";const t=n.get(e);return t?r.decode(t):null}const S=e=>{try{return JSON.parse(O(e)||"")}catch(e){return null}},g=(e,t,o)=>{if("undefined"==typeof window)return;const i=JSON.stringify(t),a=r.encode(i);n.set(e,a,o)},T=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];function D(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search),t={};let r=!1;for(const n of T){const o=e.get(n);o&&(t[n]=o,r=!0)}return r?t:null}function I(e,t){if(!t)return e||{};if(!e)return t;if(["utm_campaign","utm_medium","utm_source","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"].every(r=>(e[r]||"")===(t[r]||"")))return{...t,utm_content:e.utm_content||t.utm_content,utm_term:e.utm_term||t.utm_term};const r=!!t.utm_content,n=!!t.utm_term;return{...t,...!r&&e.utm_content&&{utm_content:e.utm_content},...!n&&e.utm_term&&{utm_term:e.utm_term}}}function N(){if("undefined"==typeof document)return null;const e=document.referrer;if(!e)return{utm_medium:"direct",utm_source:"direct"};let t;try{t=new URL(e).hostname.toLowerCase()}catch(e){return{utm_medium:"direct",utm_source:"direct"}}return t.includes("windstream.com")||t.includes("gokinetic.com")?null:t.includes("google.")?{utm_medium:"organic",utm_source:"google"}:t.includes("bing.")?{utm_medium:"organic",utm_source:"bing"}:{utm_medium:"referral",utm_source:t}}function C(e){if(!e)return null;const t={};return e.utm_campaign&&(t.name=e.utm_campaign),e.utm_source&&(t.source=e.utm_source),e.utm_medium&&(t.medium=e.utm_medium),e.utm_term&&(t.term=e.utm_term),e.utm_content&&(t.content=e.utm_content),e.utm_campaign_id&&(t.campaign_id=e.utm_campaign_id),e.utm_adgroup_id&&(t.adgroup_id=e.utm_adgroup_id),e.gclid&&(t.gclid=e.gclid),e.fbclid&&(t.fbclid=e.fbclid),e.msclkid&&(t.msclkid=e.msclkid),Object.keys(t).length>0?t:null}function R(e,t){if(!t)return e;const r=new URLSearchParams(t),n=new Set(T),o=new Set([...n,"searchtext","page"]);let i,a;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,a=t.searchParams}else{const[t,r]=e.split("?");i=t,a=new URLSearchParams(r||"")}}catch(t){return e}const u=new URLSearchParams(a);r.forEach((e,t)=>{o.has(t.toLowerCase())||u.has(t)||u.set(t,e)});const l=u.toString();return l?`${i}?${l}`:i}const B="network-auth.com";function w(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search).get("base_grant_url");if(!e)return null;const t=function(e){try{const t=new URL(e);if("https:"!==t.protocol)return null;const{hostname:r}=t;return r===B||r.endsWith(`.${B}`)?t:null}catch(e){return null}}(e);return t?(t.searchParams.set("continue_url","https://www.gokinetic.com/free-public-wifi/success"),t.searchParams.set("duration","86400"),t.toString()):null}function P(){const e=w();return!!e&&(window.location.href=e,!0)}const j=/\$\{([^${}]+)\}/g,K=e=>(e=>{if(Array.isArray(e))return e;if("string"==typeof e&&e.trim())try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}return[]})(e).reduce((e,t)=>{if(t&&"string"==typeof t.token&&t.token){const r="string"==typeof t.promo?t.promo:void 0,n="string"==typeof t.value?t.value:void 0,o=null!=r?r:n;void 0!==o&&(e[t.token]=o)}return e},{}),H=(e,t)=>e.replace(j,(e,r)=>Object.prototype.hasOwnProperty.call(t,r)?t[r]:e),M=(e,t)=>{if(!e||"object"!=typeof e)return e;const r=e;return"text"===r.nodeType&&"string"==typeof r.value?{...r,value:H(r.value,t)}:Array.isArray(r.content)?{...r,content:r.content.map(e=>M(e,t))}:e};function k(e,t){if(null==e||""===e)return e;const r=K(t);return 0===Object.keys(r).length?e:"string"==typeof e?H(e,r):(n=e)&&"object"==typeof n&&"nodeType"in n&&"content"in n?M(e,r):e;var n}const G=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,U=e=>{if(!e)return null;if(G(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return G(t)?t:null}return null};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y,$={},W={},V={};function z(){return Y||(Y=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({})}(V)),V}var Q,q={};function J(){return Q||(Q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({})}(q)),q}var F,X={};function Z(){return F||(F=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({})}(X)),X}var ee,te={};function re(){return ee||(ee=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get CONTAINERS(){return f},get HEADINGS(){return p},get LIST_ITEM_BLOCKS(){return c},get TABLE_BLOCKS(){return s},get TEXT_CONTAINERS(){return E},get TOP_LEVEL_BLOCKS(){return l},get V1_MARKS(){return m},get V1_NODE_TYPES(){return y},get VOID_BLOCKS(){return d}});var t=z(),r=J(),n=Z();function o(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 i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,u,l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],c=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],s=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],f=(i(a={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.LIST_ITEM,c),i(a,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(a,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(a,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(a,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(a,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),a),p=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],E=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(u=p)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return o(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,r.INLINES.HYPERLINK,r.INLINES.ENTRY_HYPERLINK,r.INLINES.ASSET_HYPERLINK,r.INLINES.EMBEDDED_ENTRY,"text"],m=[n.MARKS.BOLD,n.MARKS.CODE,n.MARKS.ITALIC,n.MARKS.UNDERLINE]}(te)),te}var ne,oe={};var ie,ae={};var ue,le={};var ce,se={};function de(){return ce||(ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get isBlock(){return u},get isEmptyParagraph(){return c},get isInline(){return a},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return f}});var t=z(),r=J();function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function i(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){if(t===e[i.value])return!0}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return!1}function a(e){return i(r.INLINES,e.nodeType)}function u(e){return i(t.BLOCKS,e.nodeType)}function l(e){return"text"===e.nodeType}function c(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var r=e.content[0];return"text"===r.nodeType&&""===r.value}function s(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function f(e){return!s(e)||e.content.length<d?e:c(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(se)),se}var fe,pe,Ee={},ye={};function me(){return pe?fe:(pe=1,fe=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var he,ve,Le={};function be(){return he||(he=1,function(e){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){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get enumError(){return a},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return l},get typeMismatchError(){return n},get unknownPropertyError(){return u}});var n=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}},o=function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}},i=function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}},a=function(e){var t=e.expected,n=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:r(t).sort(),path:o.toArray(),value:n}},u=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}},l=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}}(Le)),Le}function Ae(){return ve||(ve=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=a(me()),r=be();function n(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 o(e,t,r){return t&&function(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)}}(e.prototype,t),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){function e(n,o){var a=this,l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=n,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=l._errors).push.apply(n,u(t))},this.exists=function(e){return e in a.obj||(a.catch((0,r.requiredPropertyError)({property:e,path:a.path.of(e)})),!1)},this.object=function(e){var n=e?a.obj[e]:a.obj;if(e&&!a.exists(e))return!1;if((0,t.default)(n))return!0;var o,i=e?a.path.of(e):a.path,u=null!==(o=null!=e?e:a.path.last())&&void 0!==o?o:"value";return a.catch((0,r.typeMismatchError)({typeName:"Object",property:u,path:i,value:n})),!1},this.string=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&("string"==typeof t||(a.catch((0,r.typeMismatchError)({typeName:"String",property:e,path:a.path.of(e),value:t})),!1))},this.number=function(e,t){var n=a.obj[e];return!(!t||e in a.obj)||!!a.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(a.catch((0,r.typeMismatchError)({typeName:"Number",property:e,path:a.path.of(e),value:n})),!1))},this.array=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&(!!Array.isArray(t)||(a.catch((0,r.typeMismatchError)({typeName:"Array",property:e,path:a.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=a.obj[e];return!("string"!=typeof n||!t.includes(n))||(a.catch((0,r.enumError)({expected:t,value:n,path:a.path.of(e)})),!1)},this.empty=function(e){if(!a.array(e))return!1;var t=a.obj[e];return 0===t.length||(a.catch((0,r.maxSizeError)({max:0,value:t,path:a.path.of(e)})),!1)},this.minLength=function(e,t){if(!a.array(e))return!1;var n=a.obj[e];return n.length>=t||(a.catch((0,r.minSizeError)({min:t,value:n,path:a.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(a.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return a.catch((0,r.unknownPropertyError)({property:e,path:a.path.of(e)}))}),0===t.length},this.each=function(e,t){if(a.array(e)){var r=a.obj[e],n=!1;r.forEach(function(r,o){if(!n){var i=t(r,a.path.of(e).of(o));i.length>0&&(n=!0),a.catch.apply(a,u(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}()}(ye)),ye}var _e,Oe={};function Se(){return _e||(_e=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get EntityLinkAssertion(){return y},get HyperLinkAssertion(){return m},get NodeAssertion(){return E},get VOID_CONTENT(){return p},get assert(){return h},get assertLink(){return v}});var t=Ae();function r(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 n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,r){return t=l(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return n(e)}(e,f()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){return t&&function(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)}}(e.prototype,t),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function d(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var p=[],E=function(){function e(t,r){i(this,e),u(this,"contentRule",void 0),u(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return a(e,[{key:"assert",value:function(e,r){var n=new t.ObjectAssertion(e,r);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,r),i=o.nodeTypes,a=o.min,u=void 0===a?0:a;if(0===i.length&&u>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(u," with no nodeTypes"));if(n.minLength("content",u),0===i.length?n.empty("content"):n.each("content",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.enum("nodeType",i),n.errors):n.errors}),n.object("data")){var l,c,s,f=null!==(s=null===(c=this.validateData)||void 0===c?void 0:c.call(this,e.data,r.of("data")))&&void 0!==s?s:[];(l=n).catch.apply(l,d(f))}return n.errors}}]),e}(),y=function(e){function r(e,a){var l;return i(this,r),l=o(this,r,[a,function(e,t){return n(l).assertLink(e,t)}]),u(l,"linkType",void 0),u(l,"type",void 0),u(l,"assertLink",void 0),l.linkType=e,l.assertLink=function(e,r){var n=new t.ObjectAssertion(e,r);if(n.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,r.of("target").of("sys"));i.object()&&(i.enum("type",[l.type]),i.enum("linkType",[l.linkType]),"Link"===l.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===l.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,d(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},l.type=l.linkType.startsWith("Contentful:")?"ResourceLink":"Link",l}return c(r,e),r}(E),m=function(e){function r(){var e;return i(this,r),e=o(this,r,[["text"],function(t,r){return n(e).assertLink(t,r)}]),u(e,"assertLink",function(e,r){var n=new t.ObjectAssertion(e,r);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return c(r,e),r}(E),h=function(e,t){return new E(e,t)},v=function(e,t){return new y(e,t)}}(Oe)),Oe}var ge,Te={};function De(){return ge||(ge=1,function(e){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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"path",void 0),r(this,"of",void 0),r(this,"isRoot",void 0),r(this,"last",void 0),r(this,"toArray",void 0),this.path=o,this.of=function(r){return new e(n(t.path).concat([r]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(Te)),Te}var Ie,Ne,Ce,Re,Be={};function we(){return Ne||(Ne=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=z(),r=J(),n=re(),o=Ae(),i=Se(),a=De(),u=(Ie||(Ie=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return r}});var t=Ae();function r(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.noAdditionalProperties(["nodeType","data","value","marks"]),n.object("data"),n.each("marks",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.string("type"),n.errors):n.errors}),n.string("value"),n.errors):n.errors}}(Be)),Be);function l(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 c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d,f=(0,i.assert)(s(Object.values(r.INLINES)).concat(["text"]).sort()),p=(0,i.assert)([t.BLOCKS.LIST_ITEM]),E=(0,i.assertLink)("Entry",i.VOID_CONTENT),y=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var r=new o.ObjectAssertion(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors}),m=(c(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(n.TOP_LEVEL_BLOCKS)),c(d,t.BLOCKS.PARAGRAPH,f),c(d,t.BLOCKS.HEADING_1,f),c(d,t.BLOCKS.HEADING_2,f),c(d,t.BLOCKS.HEADING_3,f),c(d,t.BLOCKS.HEADING_4,f),c(d,t.BLOCKS.HEADING_5,f),c(d,t.BLOCKS.HEADING_6,f),c(d,t.BLOCKS.QUOTE,(0,i.assert)(n.CONTAINERS[t.BLOCKS.QUOTE])),c(d,t.BLOCKS.EMBEDDED_ENTRY,E),c(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),c(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),c(d,t.BLOCKS.OL_LIST,p),c(d,t.BLOCKS.UL_LIST,p),c(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(s(n.LIST_ITEM_BLOCKS).sort())),c(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),c(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),c(d,t.BLOCKS.TABLE_CELL,y),c(d,t.BLOCKS.TABLE_HEADER_CELL,y),c(d,r.INLINES.HYPERLINK,new i.HyperLinkAssertion),c(d,r.INLINES.EMBEDDED_ENTRY,E),c(d,r.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,r.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),c(d,r.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),c(d,r.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function h(e,t){if("text"===e.nodeType)return(0,u.assertText)(e,t);var r=m[e.nodeType].assert(e,t);if(r.length>0)return r;var n=new o.ObjectAssertion(e,t);return n.each("content",function(e,t){return h(e,t)}),n.errors}var v=function(e){var r=new a.Path,n=new o.ObjectAssertion(e,r);return n.object()&&n.enum("nodeType",[t.BLOCKS.DOCUMENT]),n.errors.length>0?n.errors:h(e,r)}}(Ee)),Ee}function Pe(){return Ce||(Ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return r.INLINES},get MARKS(){return n.MARKS},get helpers(){return i},get validateRichTextDocument(){return a.validateRichTextDocument}});var t=z(),r=J(),n=Z();u(re(),e),u((ne||(ne=1,Object.defineProperty(oe,"__esModule",{value:!0})),oe),e),u((ie||(ie=1,Object.defineProperty(ae,"__esModule",{value:!0})),ae),e);var o=(ue||(ue=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return r}});var t=z(),r={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(le)),le),i=c(de()),a=we();function u(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}}(W)),W}var je=function(){if(Re)return $;Re=1;var e=u,t=Pe();function r(t,r){return t.map((t,o)=>{return i=n(t,r),a=o,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:a}):i;var i,a})}function n(n,o){const{renderNode:i,renderMark:a,renderText:u,preserveWhitespace:l}=o;if(t.helpers.isText(n)){let t=u?u(n.value):n.value;if(l&&!u){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const r=t.split("\n"),n=[];r.forEach((t,o)=>{n.push(t),o!==r.length-1&&n.push(e.createElement("br",null))}),t=n}return n.marks.reduce((e,t)=>a[t.type]?a[t.type](e):e,t)}{const t=r(n.content,o);return n.nodeType&&i[n.nodeType]?i[n.nodeType](n,t):e.createElement(e.Fragment,null,t)}}const o={[t.BLOCKS.DOCUMENT]:(e,t)=>t,[t.BLOCKS.PARAGRAPH]:(t,r)=>e.createElement("p",null,r),[t.BLOCKS.HEADING_1]:(t,r)=>e.createElement("h1",null,r),[t.BLOCKS.HEADING_2]:(t,r)=>e.createElement("h2",null,r),[t.BLOCKS.HEADING_3]:(t,r)=>e.createElement("h3",null,r),[t.BLOCKS.HEADING_4]:(t,r)=>e.createElement("h4",null,r),[t.BLOCKS.HEADING_5]:(t,r)=>e.createElement("h5",null,r),[t.BLOCKS.HEADING_6]:(t,r)=>e.createElement("h6",null,r),[t.BLOCKS.EMBEDDED_ENTRY]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.EMBEDDED_RESOURCE]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.UL_LIST]:(t,r)=>e.createElement("ul",null,r),[t.BLOCKS.OL_LIST]:(t,r)=>e.createElement("ol",null,r),[t.BLOCKS.LIST_ITEM]:(t,r)=>e.createElement("li",null,r),[t.BLOCKS.QUOTE]:(t,r)=>e.createElement("blockquote",null,r),[t.BLOCKS.HR]:()=>e.createElement("hr",null),[t.BLOCKS.TABLE]:(t,r)=>e.createElement("table",null,e.createElement("tbody",null,r)),[t.BLOCKS.TABLE_ROW]:(t,r)=>e.createElement("tr",null,r),[t.BLOCKS.TABLE_HEADER_CELL]:(t,r)=>e.createElement("th",null,r),[t.BLOCKS.TABLE_CELL]:(t,r)=>e.createElement("td",null,r),[t.INLINES.ASSET_HYPERLINK]:e=>a(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>a(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>l(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>a(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,r)=>l(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,r)=>e.createElement("a",{href:t.data.uri},r)},i={[t.MARKS.BOLD]:t=>e.createElement("b",null,t),[t.MARKS.ITALIC]:t=>e.createElement("i",null,t),[t.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[t.MARKS.CODE]:t=>e.createElement("code",null,t),[t.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[t.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[t.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,r){return e.createElement("span",{key:r.data.target.sys.id},"type: ",r.nodeType," id: ",r.data.target.sys.id)}function l(t,r){return e.createElement("span",{key:r.data.target.sys.urn},"type: ",r.nodeType," urn: ",r.data.target.sys.urn)}return $.documentToReactComponents=function(e,r={}){if(!e)return null;let a=e;return r.stripEmptyTrailingParagraph&&(a=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),n(a,{renderNode:{...o,...r.renderNode},renderMark:{...i,...r.renderMark},renderText:r.renderText,preserveWhitespace:r.preserveWhitespace})},$}(),Ke=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),He=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),Me=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});function ke(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 Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ue,xe=[Ke.PARAGRAPH,Ke.HEADING_1,Ke.HEADING_2,Ke.HEADING_3,Ke.HEADING_4,Ke.HEADING_5,Ke.HEADING_6,Ke.OL_LIST,Ke.UL_LIST,Ke.HR,Ke.QUOTE,Ke.EMBEDDED_ENTRY,Ke.EMBEDDED_ASSET,Ke.EMBEDDED_RESOURCE,Ke.TABLE],Ye=[Ke.PARAGRAPH,Ke.HEADING_1,Ke.HEADING_2,Ke.HEADING_3,Ke.HEADING_4,Ke.HEADING_5,Ke.HEADING_6,Ke.OL_LIST,Ke.UL_LIST,Ke.HR,Ke.QUOTE,Ke.EMBEDDED_ENTRY,Ke.EMBEDDED_ASSET,Ke.EMBEDDED_RESOURCE];Ke.TABLE,Ke.TABLE_ROW,Ke.TABLE_CELL,Ke.TABLE_HEADER_CELL,Ke.HR,Ke.EMBEDDED_ENTRY,Ke.EMBEDDED_ASSET,Ke.EMBEDDED_RESOURCE;var $e,We=(Ge(Ue={},Ke.OL_LIST,[Ke.LIST_ITEM]),Ge(Ue,Ke.UL_LIST,[Ke.LIST_ITEM]),Ge(Ue,Ke.LIST_ITEM,Ye),Ge(Ue,Ke.QUOTE,[Ke.PARAGRAPH]),Ge(Ue,Ke.TABLE,[Ke.TABLE_ROW]),Ge(Ue,Ke.TABLE_ROW,[Ke.TABLE_CELL,Ke.TABLE_HEADER_CELL]),Ge(Ue,Ke.TABLE_CELL,[Ke.PARAGRAPH,Ke.UL_LIST,Ke.OL_LIST]),Ge(Ue,Ke.TABLE_HEADER_CELL,[Ke.PARAGRAPH]),Ue),Ve=[Ke.HEADING_1,Ke.HEADING_2,Ke.HEADING_3,Ke.HEADING_4,Ke.HEADING_5,Ke.HEADING_6];[Ke.PARAGRAPH].concat(function(e){if(Array.isArray(e))return ke(e)}($e=Ve)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}($e)||function(e,t){if(e){if("string"==typeof e)return ke(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ke(e,t):void 0}}($e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Ke.DOCUMENT,Ke.PARAGRAPH,Ke.HEADING_1,Ke.HEADING_2,Ke.HEADING_3,Ke.HEADING_4,Ke.HEADING_5,Ke.HEADING_6,Ke.OL_LIST,Ke.UL_LIST,Ke.LIST_ITEM,Ke.HR,Ke.QUOTE,Ke.EMBEDDED_ENTRY,Ke.EMBEDDED_ASSET,He.HYPERLINK,He.ENTRY_HYPERLINK,He.ASSET_HYPERLINK,He.EMBEDDED_ENTRY,Ke.DOCUMENT,Ke.PARAGRAPH;var ze=x(me());function Qe(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 qe(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Je=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}};function Fe(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 Xe(e,t,r){return t&&function(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)}}(e.prototype,t),e}function Ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function et(e){return function(e){if(Array.isArray(e))return Fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tt=function(){function e(t,r){var n=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ze(this,"obj",void 0),Ze(this,"path",void 0),Ze(this,"_errors",void 0),Ze(this,"catch",void 0),Ze(this,"exists",void 0),Ze(this,"object",void 0),Ze(this,"string",void 0),Ze(this,"number",void 0),Ze(this,"array",void 0),Ze(this,"enum",void 0),Ze(this,"empty",void 0),Ze(this,"minLength",void 0),Ze(this,"noAdditionalProperties",void 0),Ze(this,"each",void 0),this.obj=t,this.path=r,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=o._errors).push.apply(n,et(t))},this.exists=function(e){return e in n.obj||(n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if(ze(t))return!0;var r,o=e?n.path.of(e):n.path,i=null!==(r=null!=e?e:n.path.last())&&void 0!==r?r:"value";return n.catch(Je({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&("string"==typeof t||(n.catch(Je({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!(!t||e in n.obj)||!!n.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(n.catch(Je({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&(!!Array.isArray(t)||(n.catch(Je({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!("string"!=typeof r||!t.includes(r))||(n.catch(function(e){var t=e.expected,r=e.value,n=e.path;return{details:"Value must be one of expected values",name:"in",expected:qe(t).sort(),path:n.toArray(),value:r}}({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}}({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}}({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}}({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],o=!1;r.forEach(function(r,i){if(!o){var a=t(r,n.path.of(e).of(i));a.length>0&&(o=!0),n.catch.apply(n,et(a))}})}}}return Xe(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}();function rt(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 nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ot(e,t,r){return t=lt(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return nt(e)}(e,ft()?Reflect.construct(t,r||[],lt(e).constructor):t.apply(e,r))}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t,r){return t&&function(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)}}(e.prototype,t),e}function ut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lt(e)}function ct(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}function st(e,t){return st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},st(e,t)}function dt(e){return function(e){if(Array.isArray(e))return rt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ft=function(){return!!e})()}var pt=[],Et=function(){function e(t,r){it(this,e),ut(this,"contentRule",void 0),ut(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return at(e,[{key:"assert",value:function(e,t){var r=new tt(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var n=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=n.nodeTypes,i=n.min,a=void 0===i?0:i;if(0===o.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(r.minLength("content",a),0===o.length?r.empty("content"):r.each("content",function(e,t){var r=new tt(e,t);return r.object()?(r.enum("nodeType",o),r.errors):r.errors}),r.object("data")){var u,l,c,s=null!==(c=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,t.of("data")))&&void 0!==c?c:[];(u=r).catch.apply(u,dt(s))}return r.errors}}]),e}(),yt=function(e){function t(e,r){var n;return it(this,t),n=ot(this,t,[r,function(e,t){return nt(n).assertLink(e,t)}]),ut(n,"linkType",void 0),ut(n,"type",void 0),ut(n,"assertLink",void 0),n.linkType=e,n.assertLink=function(e,t){var r=new tt(e,t);if(r.object("target")){var o,i=new tt(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[n.type]),i.enum("linkType",[n.linkType]),"Link"===n.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===n.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,dt(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},n.type=n.linkType.startsWith("Contentful:")?"ResourceLink":"Link",n}return ct(t,e),t}(Et),mt=function(e){function t(){var e;return it(this,t),e=ot(this,t,[["text"],function(t,r){return nt(e).assertLink(t,r)}]),ut(e,"assertLink",function(e,t){var r=new tt(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return ct(t,e),t}(Et),ht=function(e,t){return new Et(e,t)},vt=function(e,t){return new yt(e,t)};function Lt(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 bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function At(e){return function(e){if(Array.isArray(e))return Lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Lt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _t,Ot=ht(At(Object.values(He)).concat(["text"]).sort()),St=ht([Ke.LIST_ITEM]),gt=vt("Entry",pt),Tt=ht(function(){return{nodeTypes:[Ke.PARAGRAPH],min:1}},function(e,t){var r=new tt(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors});bt(_t={},Ke.DOCUMENT,ht(xe)),bt(_t,Ke.PARAGRAPH,Ot),bt(_t,Ke.HEADING_1,Ot),bt(_t,Ke.HEADING_2,Ot),bt(_t,Ke.HEADING_3,Ot),bt(_t,Ke.HEADING_4,Ot),bt(_t,Ke.HEADING_5,Ot),bt(_t,Ke.HEADING_6,Ot),bt(_t,Ke.QUOTE,ht(We[Ke.QUOTE])),bt(_t,Ke.EMBEDDED_ENTRY,gt),bt(_t,Ke.EMBEDDED_ASSET,vt("Asset",pt)),bt(_t,Ke.EMBEDDED_RESOURCE,vt("Contentful:Entry",pt)),bt(_t,Ke.HR,ht(pt)),bt(_t,Ke.OL_LIST,St),bt(_t,Ke.UL_LIST,St),bt(_t,Ke.LIST_ITEM,ht(At(Ye).sort())),bt(_t,Ke.TABLE,ht(function(){return{nodeTypes:[Ke.TABLE_ROW],min:1}})),bt(_t,Ke.TABLE_ROW,ht(function(){return{nodeTypes:[Ke.TABLE_CELL,Ke.TABLE_HEADER_CELL],min:1}})),bt(_t,Ke.TABLE_CELL,Tt),bt(_t,Ke.TABLE_HEADER_CELL,Tt),bt(_t,He.HYPERLINK,new mt),bt(_t,He.EMBEDDED_ENTRY,gt),bt(_t,He.EMBEDDED_RESOURCE,vt("Contentful:Entry",pt)),bt(_t,He.ENTRY_HYPERLINK,vt("Entry",["text"])),bt(_t,He.ASSET_HYPERLINK,vt("Asset",["text"])),bt(_t,He.RESOURCE_HYPERLINK,vt("Contentful:Entry",["text"]));const Dt=e=>Array.isArray(null==e?void 0:e.content)&&e.content.every(e=>"text"===(null==e?void 0:e.nodeType)&&(!e.value||""===e.value.trim())),It=(e,t)=>{var r,n,o,i,a,u,l,c;const s=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.target;if((null==s?void 0:s.fields)||(null===(n=null==s?void 0:s.sys)||void 0===n?void 0:n.contentType))return s;const d=null===(o=null==s?void 0:s.sys)||void 0===o?void 0:o.id;if(!d)return null;return null!==(c=[...null!==(a=null===(i=null==t?void 0:t.entries)||void 0===i?void 0:i.block)&&void 0!==a?a:[],...null!==(l=null===(u=null==t?void 0:t.entries)||void 0===u?void 0:u.inline)&&void 0!==l?l:[]].find(e=>{var t;return(null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.id)===d}))&&void 0!==c?c:null},Nt=e=>{var t,r,n,o,i;return null!==(i=null!==(o=null===(n=null===(r=null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.contentType)||void 0===r?void 0:r.sys)||void 0===n?void 0:n.id)&&void 0!==o?o:null==e?void 0:e.__typename)&&void 0!==i?i:""},Ct=e=>{var t,r;return null!==(r=null!==(t=null==e?void 0:e.fields)&&void 0!==t?t:e)&&void 0!==r?r:{}},Rt=e=>{var t,r,n,o,i,a,u,l,c,s,d,f,p,E,y,m,h,v,L,b,A,_,O;return{image:null!==(a=null!==(o=null===(n=null===(r=null===(t=null==e?void 0:e.image)||void 0===t?void 0:t.fields)||void 0===r?void 0:r.file)||void 0===n?void 0:n.url)&&void 0!==o?o:null===(i=null==e?void 0:e.image)||void 0===i?void 0:i.url)&&void 0!==a?a:null==e?void 0:e.image,link:"string"==typeof(null==e?void 0:e.link)?e.link:null!==(c=null===(l=null===(u=null==e?void 0:e.link)||void 0===u?void 0:u.fields)||void 0===l?void 0:l.href)&&void 0!==c?c:null===(s=null==e?void 0:e.link)||void 0===s?void 0:s.href,videoPopup:Boolean(null==e?void 0:e.videoPopup),videoSourceType:null==e?void 0:e.videoSourceType,videoAssetUrl:null!==(m=null!==(E=null===(p=null===(f=null===(d=null==e?void 0:e.videoAssetUrl)||void 0===d?void 0:d.fields)||void 0===f?void 0:f.file)||void 0===p?void 0:p.url)&&void 0!==E?E:null===(y=null==e?void 0:e.videoAssetUrl)||void 0===y?void 0:y.url)&&void 0!==m?m:null==e?void 0:e.videoAssetUrl,videoAssetType:null!==(_=null!==(b=null===(L=null===(v=null===(h=null==e?void 0:e.videoAssetUrl)||void 0===h?void 0:h.fields)||void 0===v?void 0:v.file)||void 0===L?void 0:L.contentType)&&void 0!==b?b:null===(A=null==e?void 0:e.videoAssetUrl)||void 0===A?void 0:A.contentType)&&void 0!==_?_:null==e?void 0:e.videoAssetType,title:null!==(O=null==e?void 0:e.title)&&void 0!==O?O:null==e?void 0:e.entryTitle,description:null==e?void 0:e.description}},Bt=e=>{if(!e)return"";try{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;return new URL(t).hostname.toLowerCase()}catch(e){return""}},wt=e=>{const t=e.toLowerCase().replace(/\.$/,""),r=t.split(".").slice(-2).join("."),n=(t.slice(0,t.length-r.length).replace(/\.$/,"").split(".")[0]||"").replace(/-(dev|development|staging|stage|qa|test|uat|prod|production)$/,"");return`${r}|${""===n||"www"===n||"kinetic"===n?"main":n}`},Pt=e=>{if(!/^https?:\/\//i.test(e))return!1;try{const t=new URL(e).hostname.toLowerCase(),r=Bt(process.env.NEXT_PUBLIC_SITE_URL)||Bt(process.env.NEXT_PUBLIC_MAIN_SITE_URL)||("undefined"!=typeof window?window.location.hostname.toLowerCase():"");return!r||wt(t)!==wt(r)}catch(e){return!1}},jt=e=>({renderText:e=>e.includes("[")&&e.includes("]")?(e=>{const t=/\[([a-zA-Z0-9_-]+)\]/g,r=[];let n,i=0;for(;null!==(n=t.exec(e));)n.index>i&&r.push(e.substring(i,n.index)),r.push(o(f,{name:n[1],size:20,className:"inline-block align-middle"},`icon-${n.index}-${n[1]}`)),i=n.index+n[0].length;return i<e.length&&r.push(e.substring(i)),r.length>0?r:[e]})(e):e,renderMark:{[Me.BOLD]:e=>o("strong",{className:"font-black",children:e}),[Me.ITALIC]:e=>o("em",{children:e}),[Me.UNDERLINE]:e=>o("u",{children:e}),[Me.CODE]:e=>o("code",{children:e})},renderNode:{[Ke.PARAGRAPH]:(e,t)=>o("div",{className:"body3 mb-4 whitespace-pre-line",children:Dt(e)?"\n":t}),[Ke.HEADING_1]:(e,t)=>o(p,{as:"h1",className:"heading2 md:heading1",children:t}),[Ke.HEADING_2]:(e,t)=>o(p,{as:"h2",className:"heading3 md:heading2",children:t}),[Ke.HEADING_3]:(e,t)=>o(p,{as:"h3",className:"heading4 md:heading3",children:t}),[Ke.HEADING_4]:(e,t)=>o(p,{as:"h4",className:"heading5 md:heading4",children:t}),[Ke.HEADING_5]:(e,t)=>o(p,{as:"h5",className:"heading6 md:heading5",children:t}),[Ke.HEADING_6]:(e,t)=>o(p,{as:"h6",className:"heading6",children:t}),[Ke.QUOTE]:(e,t)=>o("blockquote",{children:t}),[Ke.UL_LIST]:(e,t)=>o("ul",{className:"list-disc pl-6",children:t}),[Ke.OL_LIST]:(e,t)=>o("ol",{className:"list-decimal pl-6",children:t}),[Ke.LIST_ITEM]:(e,t)=>o("li",{children:t}),[He.HYPERLINK]:(e,t)=>{var r;const n=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.uri,i=Pt(n);return o("a",{href:n,target:i?"_blank":void 0,rel:i?"noopener":void 0,children:t})},[Ke.EMBEDDED_ASSET]:e=>{var t,r;const n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target,i=null==n?void 0:n.fields,a=(null==n?void 0:n.url)||(null===(r=null==i?void 0:i.file)||void 0===r?void 0:r.url),u=(null==i?void 0:i.title)||(null==i?void 0:i.description)||"Embedded asset";if(!a)return null;const l=a.startsWith("//")?`https:${a}`:a;return o("img",{src:l,alt:u,style:{maxWidth:"100%"}})},[Ke.EMBEDDED_ENTRY]:t=>{const r=It(t,e);if(!r)return null;const n=Nt(r),a=Ct(r);switch(n){case"callout":return i("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[o("strong",{children:a.title}),o("div",{children:a.body})]});case"componentVideoLink":case"ComponentVideoLink":return o(E,{videoLink:Rt(a)});default:return null}},[He.EMBEDDED_ENTRY]:t=>{var r;const n=It(t,e);if(!n)return null;const a=Nt(n),u=Ct(n);switch(a){case"componentCheckList":return i("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",u.title]});case"componentVideoLink":case"ComponentVideoLink":return o(E,{videoLink:Rt(u)});default:return o("span",{children:null!==(r=null==u?void 0:u.title)&&void 0!==r?r:""})}}}});function Kt(e,t,r="body1",n="body1 font-bold",i,a,u="body2"){if(!e||!Array.isArray(e.content))return null;const l=new WeakSet,c=(e,t=!1)=>{var r;const n=t||(null==e?void 0:e.nodeType)===Ke.LIST_ITEM;n&&(null==e?void 0:e.nodeType)===He.HYPERLINK&&l.add(e),null===(r=null==e?void 0:e.content)||void 0===r||r.forEach(e=>c(e,n))};c(e);const s=jt(a),f={...s,...i,renderNode:{...s.renderNode,...null==i?void 0:i.renderNode,[Ke.PARAGRAPH]:(e,t)=>o("div",{className:[r,"whitespace-pre-line"].filter(Boolean).join(" "),children:Dt(e)?"\n":t}),[He.HYPERLINK]:(e,r)=>{var i;const a=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.uri,c=Pt(a),s=null!=t?t:c;return o(d,{href:a,target:s?"_blank":void 0,rel:s?"noopener":void 0,variant:"default",className:l.has(e)?u:n,children:r})}}};return je.documentToReactComponents(e,f)}function Ht(e,t,r){return l(()=>{if(!e||!Array.isArray(e.content))return null;const n=jt(null==r?void 0:r.links),i={...n,renderMark:{...n.renderMark,...(null==r?void 0:r.boldClassName)?{[Me.BOLD]:e=>o("strong",{className:r.boldClassName,children:e})}:{},...null==t?void 0:t.renderMark},renderNode:{...n.renderNode,...null==t?void 0:t.renderNode}};return je.documentToReactComponents(e,i)},[e,t,null==r?void 0:r.boldClassName,null==r?void 0:r.links])}function Mt(e,t){if(!e||!Array.isArray(e.content))return null;const r=jt(t),n={...r,renderMark:{...r.renderMark,[Me.BOLD]:e=>o("strong",{className:"label4 md:label2",children:e})},renderNode:{...r.renderNode,[Ke.PARAGRAPH]:(e,t)=>o(a,{children:t}),[Ke.TABLE]:(e,t)=>{var r,n;return o("div",{className:"comparison-table-wrapper w-full overflow-x-auto border-none md:overflow-hidden",children:o("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(n=null===(r=e.content[0])||void 0===r?void 0:r.content)||void 0===n?void 0:n.length)>2?"min-w-[100.1%]":"min-w-full"),children:o("tbody",{children:t})})})},[Ke.TABLE_ROW]:(e,t)=>o("tr",{className:"border-b border-gray-200 last:border-0",children:t}),[Ke.TABLE_HEADER_CELL]:(e,t)=>{var r;const n=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2;return o("th",{className:`label4 break-words py-4 text-center md:label2 ${n?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:t})},[Ke.TABLE_CELL]:(e,t)=>{var r,n,u,l;const c=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2,s=null===(l=null===(u=null===(n=e.content[0])||void 0===n?void 0:n.content[0])||void 0===u?void 0:u.value)||void 0===l?void 0:l.toLowerCase().trim();return o("td",{className:`rt-table-cell footnote break-words bg-white py-2 text-center align-top leading-5 text-text md:body2 first:text-left md:py-4 md:leading-7 ${c?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:i(a,{children:[" ","yes"===s?o(f,{name:"check_circle",color:"#24A76A",fill:1}):"no"===s?o(f,{name:"cancel",color:"#CECECE",fill:1}):t]})})},[He.EMBEDDED_ENTRY]:e=>{var r,n,i,a,u,l;const c=It(e,t);if(!c)return null;const d=Nt(c),f=Ct(c);if("componentCheckList"===d||"ComponentCheckList"===d){const e=(null===(a=null!==(n=null===(r=f.list)||void 0===r?void 0:r.items)&&void 0!==n?n:null===(i=c.list)||void 0===i?void 0:i.items)||void 0===a?void 0:a.map(e=>{var t;return Kt(U(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),!0,"")}))||[];return o(s,{items:e,listIconName:"disc",listItemClassName:"items-baseline footnote md:body2 leading-5 md:leading-7 text-text"})}return"componentVideoLink"===d||"ComponentVideoLink"===d?o(E,{videoLink:Rt(f)}):o("span",{children:null!==(l=null!==(u=null==f?void 0:f.title)&&void 0!==u?u:c.title)&&void 0!==l?l:""})}}};return je.documentToReactComponents(e,n)}const kt={renderMark:{[Me.BOLD]:e=>c("span",{className:"label1"},e)}};function Gt(e,t,r,n){return l(()=>{var o,i;const a=null!==(i=null===(o=null==e?void 0:e.list)||void 0===o?void 0:o.items)&&void 0!==i?i:[];return t?a.map(e=>{var t,o;return null!==(o=Kt(U(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:""}):a.map(e=>{var t,o,i,a,u;return{title:null!==(o=Kt(U(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:"",iconUrl:null!==(a=null===(i=null==e?void 0:e.icon)||void 0===i?void 0:i.url)&&void 0!==a?a:void 0,anchorId:null!==(u=null==e?void 0:e.anchorId)&&void 0!==u?u:void 0}})},[e,t,r,n])}export{h as SpeedCardBg,T as UTM_PARAM_NAMES,R as buildPreservedQueryHref,w as buildWifiGrantRedirectUrl,I as combineExistingAndNewUTMs,m as cx,C as getCampaignProperties,O as getCookie,N as getOrganicTrafficUtmParameters,S as getParsedCookie,b as getUTMs,D as getUtmParametersFromURL,kt as label1BoldOptions,P as redirectToWifiGrantUrl,_ as removeUTMs,Kt as renderContentfulRichText,Mt as renderContentfulRichTextTable,k as replaceTokens,g as setCookie,A as setUTMs,U as toDocument,Ht as useContentfulRichText,Gt as useProcessedChecklist};
1
+ import{clsx as e}from"clsx";export{clsx}from"clsx";import{extendTailwindMerge as t}from"tailwind-merge";import{Base64 as r}from"js-base64";import n from"js-cookie";import{jsx as o,jsxs as i,Fragment as a}from"react/jsx-runtime";import u,{useMemo as l,createElement as c}from"react";import{Checklist as s}from"@windstream/react-shared-components";import{Link as d}from"@windstream/react-shared-components";import{MaterialIcon as f}from"@windstream/react-shared-components";import{Text as p}from"@windstream/react-shared-components";import{VideoLink as E}from"@windstream/react-shared-components";const y=t({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),m=(...t)=>y(e(...t)),v=(e="#24A76A")=>`<svg xmlns="http://www.w3.org/2000/svg" width="684" height="107" viewBox="0 0 684 107" fill="none">\n <g clip-path="url(#clip0_12352_9042)">\n <path d="M154.09 -70.5605C173.769 -7.58032 204.79 24.8889 328.202 55.2823C444.619 83.9133 629.479 141.332 667.653 80.7015C691.679 45.2165 678.322 -5.62201 670.537 -46.3554C664.452 -73.1846 658.327 -97.1939 652.913 -123.475C651.135 -132.091 638.766 -131.974 637.067 -123.318C628.136 -77.6888 612.526 -44.9062 577.593 -22.4637C517.962 20.1889 377.954 -6.48361 303.148 -38.287C223.245 -70.7171 200.918 -132.366 195.425 -199.341C193.37 -235.257 198.467 -269.841 208.07 -299.569C210.915 -308.303 199.218 -314.178 193.844 -306.697C151.324 -247.751 137.69 -140.395 154.129 -70.5213" fill="${e}" />\n <path d="M167.605 -417.382C104.062 -397.877 71.302 -367.131 40.6368 -244.813C11.7499 -129.428 -46.182 53.7941 14.9903 91.6292C50.7927 115.443 102.086 102.204 143.183 94.4883C170.253 88.4567 194.476 82.3858 220.992 77.02C229.686 75.2574 229.568 62.9983 220.834 61.3141C174.797 52.4624 141.721 36.9915 119.078 2.36813C76.0441 -56.7345 102.955 -195.502 135.043 -269.645C167.763 -348.84 229.963 -370.969 297.537 -376.414C333.774 -378.45 368.667 -373.398 398.661 -363.88C407.473 -361.06 413.401 -372.654 405.853 -377.98C346.38 -420.124 238.064 -433.636 167.565 -417.343" fill="${e}" />\n </g>\n <defs>\n <clipPath id="clip0_12352_9042">\n <rect width="684" height="107" fill="white" />\n </clipPath>\n </defs>\n </svg>`,h="utm_parameters",L=".gokinetic.com";function b(){if("undefined"==typeof window)return null;const e=n.get(h);if(!e)return null;try{const t=r.decode(e);return JSON.parse(t)}catch(e){return null}}function A(e,t=L){if("undefined"==typeof window)return;const o=JSON.stringify(e),i=r.encode(o);n.set(h,i,{domain:t,path:"/",sameSite:"Lax"})}function _(e=L){n.remove(h,{domain:e,path:"/"})}function O(e){if("undefined"==typeof window)return"";const t=n.get(e);return t?r.decode(t):null}const S=e=>{try{return JSON.parse(O(e)||"")}catch(e){return null}},g=(e,t,o)=>{if("undefined"==typeof window)return;const i=JSON.stringify(t),a=r.encode(i);n.set(e,a,o)},T=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];function D(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search),t={};let r=!1;for(const n of T){const o=e.get(n);o&&(t[n]=o,r=!0)}return r?t:null}function I(e,t){if(!t)return e||{};if(!e)return t;if(["utm_campaign","utm_medium","utm_source","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"].every(r=>(e[r]||"")===(t[r]||"")))return{...t,utm_content:e.utm_content||t.utm_content,utm_term:e.utm_term||t.utm_term};const r=!!t.utm_content,n=!!t.utm_term;return{...t,...!r&&e.utm_content&&{utm_content:e.utm_content},...!n&&e.utm_term&&{utm_term:e.utm_term}}}function N(){if("undefined"==typeof document)return null;const e=document.referrer;if(!e)return{utm_medium:"direct",utm_source:"direct"};let t;try{t=new URL(e).hostname.toLowerCase()}catch(e){return{utm_medium:"direct",utm_source:"direct"}}return t.includes("windstream.com")||t.includes("gokinetic.com")?null:t.includes("google.")?{utm_medium:"organic",utm_source:"google"}:t.includes("bing.")?{utm_medium:"organic",utm_source:"bing"}:{utm_medium:"referral",utm_source:t}}function C(e){if(!e)return null;const t={};return e.utm_campaign&&(t.name=e.utm_campaign),e.utm_source&&(t.source=e.utm_source),e.utm_medium&&(t.medium=e.utm_medium),e.utm_term&&(t.term=e.utm_term),e.utm_content&&(t.content=e.utm_content),e.utm_campaign_id&&(t.campaign_id=e.utm_campaign_id),e.utm_adgroup_id&&(t.adgroup_id=e.utm_adgroup_id),e.gclid&&(t.gclid=e.gclid),e.fbclid&&(t.fbclid=e.fbclid),e.msclkid&&(t.msclkid=e.msclkid),Object.keys(t).length>0?t:null}function R(e,t){if(!t)return e;const r=new URLSearchParams(t),n=new Set(T),o=new Set([...n,"searchtext","page"]);let i,a;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,a=t.searchParams}else{const[t,r]=e.split("?");i=t,a=new URLSearchParams(r||"")}}catch(t){return e}const u=new URLSearchParams(a);r.forEach((e,t)=>{o.has(t.toLowerCase())||u.has(t)||u.set(t,e)});const l=u.toString();return l?`${i}?${l}`:i}const B="network-auth.com";function w(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search).get("base_grant_url");if(!e)return null;const t=function(e){try{const t=new URL(e);if("https:"!==t.protocol)return null;const{hostname:r}=t;return r===B||r.endsWith(`.${B}`)?t:null}catch(e){return null}}(e);return t?(t.searchParams.set("continue_url","https://www.gokinetic.com/free-public-wifi/success"),t.searchParams.set("duration","86400"),t.toString()):null}function P(){const e=w();return!!e&&(window.location.href=e,!0)}const j=/\$\{([^${}]+)\}/g,K=e=>{if(Array.isArray(e))return e;if("string"==typeof e&&e.trim())try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}return[]},H=(e,t,r)=>{var n;if("string"!=typeof e||!e.trim())return;const o=e.trim(),i=null===(n=K(t).find(e=>(null==e?void 0:e.token)===o))||void 0===n?void 0:n[r];return"string"==typeof i&&i.trim()?i:void 0},M=(e,t)=>e.replace(j,(e,r)=>Object.prototype.hasOwnProperty.call(t,r)?t[r]:e),k=(e,t)=>{if(!e||"object"!=typeof e)return e;const r=e;return"text"===r.nodeType&&"string"==typeof r.value?{...r,value:M(r.value,t)}:Array.isArray(r.content)?{...r,content:r.content.map(e=>k(e,t))}:e};function G(e,t){if(null==e||""===e)return e;const r=(e=>K(e).reduce((e,t)=>{if(t&&"string"==typeof t.token&&t.token){const r="string"==typeof t.promo?t.promo:void 0,n="string"==typeof t.value?t.value:void 0,o=null!=r?r:n;void 0!==o&&(e[t.token]=o)}return e},{}))(t);return 0===Object.keys(r).length?e:"string"==typeof e?M(e,r):(n=e)&&"object"==typeof n&&"nodeType"in n&&"content"in n?k(e,r):e;var n}const U=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,x=e=>{if(!e)return null;if(U(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return U(t)?t:null}return null};function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $,W={},V={},z={};function Q(){return $||($=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({})}(z)),z}var q,J={};function F(){return q||(q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({})}(J)),J}var X,Z={};function ee(){return X||(X=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({})}(Z)),Z}var te,re={};function ne(){return te||(te=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get CONTAINERS(){return f},get HEADINGS(){return p},get LIST_ITEM_BLOCKS(){return c},get TABLE_BLOCKS(){return s},get TEXT_CONTAINERS(){return E},get TOP_LEVEL_BLOCKS(){return l},get V1_MARKS(){return m},get V1_NODE_TYPES(){return y},get VOID_BLOCKS(){return d}});var t=Q(),r=F(),n=ee();function o(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 i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,u,l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],c=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],s=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],f=(i(a={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.LIST_ITEM,c),i(a,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(a,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(a,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(a,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(a,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),a),p=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],E=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(u=p)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return o(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,r.INLINES.HYPERLINK,r.INLINES.ENTRY_HYPERLINK,r.INLINES.ASSET_HYPERLINK,r.INLINES.EMBEDDED_ENTRY,"text"],m=[n.MARKS.BOLD,n.MARKS.CODE,n.MARKS.ITALIC,n.MARKS.UNDERLINE]}(re)),re}var oe,ie={};var ae,ue={};var le,ce={};var se,de={};function fe(){return se||(se=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get isBlock(){return u},get isEmptyParagraph(){return c},get isInline(){return a},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return f}});var t=Q(),r=F();function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function i(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){if(t===e[i.value])return!0}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return!1}function a(e){return i(r.INLINES,e.nodeType)}function u(e){return i(t.BLOCKS,e.nodeType)}function l(e){return"text"===e.nodeType}function c(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var r=e.content[0];return"text"===r.nodeType&&""===r.value}function s(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function f(e){return!s(e)||e.content.length<d?e:c(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(de)),de}var pe,Ee,ye={},me={};function ve(){return Ee?pe:(Ee=1,pe=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var he,Le,be={};function Ae(){return he||(he=1,function(e){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){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get enumError(){return a},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return l},get typeMismatchError(){return n},get unknownPropertyError(){return u}});var n=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}},o=function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}},i=function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}},a=function(e){var t=e.expected,n=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:r(t).sort(),path:o.toArray(),value:n}},u=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}},l=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}}(be)),be}function _e(){return Le||(Le=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=a(ve()),r=Ae();function n(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 o(e,t,r){return t&&function(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)}}(e.prototype,t),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){function e(n,o){var a=this,l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=n,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=l._errors).push.apply(n,u(t))},this.exists=function(e){return e in a.obj||(a.catch((0,r.requiredPropertyError)({property:e,path:a.path.of(e)})),!1)},this.object=function(e){var n=e?a.obj[e]:a.obj;if(e&&!a.exists(e))return!1;if((0,t.default)(n))return!0;var o,i=e?a.path.of(e):a.path,u=null!==(o=null!=e?e:a.path.last())&&void 0!==o?o:"value";return a.catch((0,r.typeMismatchError)({typeName:"Object",property:u,path:i,value:n})),!1},this.string=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&("string"==typeof t||(a.catch((0,r.typeMismatchError)({typeName:"String",property:e,path:a.path.of(e),value:t})),!1))},this.number=function(e,t){var n=a.obj[e];return!(!t||e in a.obj)||!!a.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(a.catch((0,r.typeMismatchError)({typeName:"Number",property:e,path:a.path.of(e),value:n})),!1))},this.array=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&(!!Array.isArray(t)||(a.catch((0,r.typeMismatchError)({typeName:"Array",property:e,path:a.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=a.obj[e];return!("string"!=typeof n||!t.includes(n))||(a.catch((0,r.enumError)({expected:t,value:n,path:a.path.of(e)})),!1)},this.empty=function(e){if(!a.array(e))return!1;var t=a.obj[e];return 0===t.length||(a.catch((0,r.maxSizeError)({max:0,value:t,path:a.path.of(e)})),!1)},this.minLength=function(e,t){if(!a.array(e))return!1;var n=a.obj[e];return n.length>=t||(a.catch((0,r.minSizeError)({min:t,value:n,path:a.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(a.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return a.catch((0,r.unknownPropertyError)({property:e,path:a.path.of(e)}))}),0===t.length},this.each=function(e,t){if(a.array(e)){var r=a.obj[e],n=!1;r.forEach(function(r,o){if(!n){var i=t(r,a.path.of(e).of(o));i.length>0&&(n=!0),a.catch.apply(a,u(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}()}(me)),me}var Oe,Se={};function ge(){return Oe||(Oe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get EntityLinkAssertion(){return y},get HyperLinkAssertion(){return m},get NodeAssertion(){return E},get VOID_CONTENT(){return p},get assert(){return v},get assertLink(){return h}});var t=_e();function r(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 n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,r){return t=l(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return n(e)}(e,f()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){return t&&function(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)}}(e.prototype,t),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function d(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var p=[],E=function(){function e(t,r){i(this,e),u(this,"contentRule",void 0),u(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return a(e,[{key:"assert",value:function(e,r){var n=new t.ObjectAssertion(e,r);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,r),i=o.nodeTypes,a=o.min,u=void 0===a?0:a;if(0===i.length&&u>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(u," with no nodeTypes"));if(n.minLength("content",u),0===i.length?n.empty("content"):n.each("content",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.enum("nodeType",i),n.errors):n.errors}),n.object("data")){var l,c,s,f=null!==(s=null===(c=this.validateData)||void 0===c?void 0:c.call(this,e.data,r.of("data")))&&void 0!==s?s:[];(l=n).catch.apply(l,d(f))}return n.errors}}]),e}(),y=function(e){function r(e,a){var l;return i(this,r),l=o(this,r,[a,function(e,t){return n(l).assertLink(e,t)}]),u(l,"linkType",void 0),u(l,"type",void 0),u(l,"assertLink",void 0),l.linkType=e,l.assertLink=function(e,r){var n=new t.ObjectAssertion(e,r);if(n.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,r.of("target").of("sys"));i.object()&&(i.enum("type",[l.type]),i.enum("linkType",[l.linkType]),"Link"===l.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===l.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,d(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},l.type=l.linkType.startsWith("Contentful:")?"ResourceLink":"Link",l}return c(r,e),r}(E),m=function(e){function r(){var e;return i(this,r),e=o(this,r,[["text"],function(t,r){return n(e).assertLink(t,r)}]),u(e,"assertLink",function(e,r){var n=new t.ObjectAssertion(e,r);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return c(r,e),r}(E),v=function(e,t){return new E(e,t)},h=function(e,t){return new y(e,t)}}(Se)),Se}var Te,De={};function Ie(){return Te||(Te=1,function(e){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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"path",void 0),r(this,"of",void 0),r(this,"isRoot",void 0),r(this,"last",void 0),r(this,"toArray",void 0),this.path=o,this.of=function(r){return new e(n(t.path).concat([r]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(De)),De}var Ne,Ce,Re,Be,we={};function Pe(){return Ce||(Ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return h}});var t=Q(),r=F(),n=ne(),o=_e(),i=ge(),a=Ie(),u=(Ne||(Ne=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return r}});var t=_e();function r(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.noAdditionalProperties(["nodeType","data","value","marks"]),n.object("data"),n.each("marks",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.string("type"),n.errors):n.errors}),n.string("value"),n.errors):n.errors}}(we)),we);function l(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 c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d,f=(0,i.assert)(s(Object.values(r.INLINES)).concat(["text"]).sort()),p=(0,i.assert)([t.BLOCKS.LIST_ITEM]),E=(0,i.assertLink)("Entry",i.VOID_CONTENT),y=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var r=new o.ObjectAssertion(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors}),m=(c(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(n.TOP_LEVEL_BLOCKS)),c(d,t.BLOCKS.PARAGRAPH,f),c(d,t.BLOCKS.HEADING_1,f),c(d,t.BLOCKS.HEADING_2,f),c(d,t.BLOCKS.HEADING_3,f),c(d,t.BLOCKS.HEADING_4,f),c(d,t.BLOCKS.HEADING_5,f),c(d,t.BLOCKS.HEADING_6,f),c(d,t.BLOCKS.QUOTE,(0,i.assert)(n.CONTAINERS[t.BLOCKS.QUOTE])),c(d,t.BLOCKS.EMBEDDED_ENTRY,E),c(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),c(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),c(d,t.BLOCKS.OL_LIST,p),c(d,t.BLOCKS.UL_LIST,p),c(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(s(n.LIST_ITEM_BLOCKS).sort())),c(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),c(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),c(d,t.BLOCKS.TABLE_CELL,y),c(d,t.BLOCKS.TABLE_HEADER_CELL,y),c(d,r.INLINES.HYPERLINK,new i.HyperLinkAssertion),c(d,r.INLINES.EMBEDDED_ENTRY,E),c(d,r.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),c(d,r.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),c(d,r.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),c(d,r.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function v(e,t){if("text"===e.nodeType)return(0,u.assertText)(e,t);var r=m[e.nodeType].assert(e,t);if(r.length>0)return r;var n=new o.ObjectAssertion(e,t);return n.each("content",function(e,t){return v(e,t)}),n.errors}var h=function(e){var r=new a.Path,n=new o.ObjectAssertion(e,r);return n.object()&&n.enum("nodeType",[t.BLOCKS.DOCUMENT]),n.errors.length>0?n.errors:v(e,r)}}(ye)),ye}function je(){return Re||(Re=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return r.INLINES},get MARKS(){return n.MARKS},get helpers(){return i},get validateRichTextDocument(){return a.validateRichTextDocument}});var t=Q(),r=F(),n=ee();u(ne(),e),u((oe||(oe=1,Object.defineProperty(ie,"__esModule",{value:!0})),ie),e),u((ae||(ae=1,Object.defineProperty(ue,"__esModule",{value:!0})),ue),e);var o=(le||(le=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return r}});var t=Q(),r={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(ce)),ce),i=c(fe()),a=Pe();function u(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}}(V)),V}var Ke=function(){if(Be)return W;Be=1;var e=u,t=je();function r(t,r){return t.map((t,o)=>{return i=n(t,r),a=o,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:a}):i;var i,a})}function n(n,o){const{renderNode:i,renderMark:a,renderText:u,preserveWhitespace:l}=o;if(t.helpers.isText(n)){let t=u?u(n.value):n.value;if(l&&!u){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const r=t.split("\n"),n=[];r.forEach((t,o)=>{n.push(t),o!==r.length-1&&n.push(e.createElement("br",null))}),t=n}return n.marks.reduce((e,t)=>a[t.type]?a[t.type](e):e,t)}{const t=r(n.content,o);return n.nodeType&&i[n.nodeType]?i[n.nodeType](n,t):e.createElement(e.Fragment,null,t)}}const o={[t.BLOCKS.DOCUMENT]:(e,t)=>t,[t.BLOCKS.PARAGRAPH]:(t,r)=>e.createElement("p",null,r),[t.BLOCKS.HEADING_1]:(t,r)=>e.createElement("h1",null,r),[t.BLOCKS.HEADING_2]:(t,r)=>e.createElement("h2",null,r),[t.BLOCKS.HEADING_3]:(t,r)=>e.createElement("h3",null,r),[t.BLOCKS.HEADING_4]:(t,r)=>e.createElement("h4",null,r),[t.BLOCKS.HEADING_5]:(t,r)=>e.createElement("h5",null,r),[t.BLOCKS.HEADING_6]:(t,r)=>e.createElement("h6",null,r),[t.BLOCKS.EMBEDDED_ENTRY]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.EMBEDDED_RESOURCE]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.UL_LIST]:(t,r)=>e.createElement("ul",null,r),[t.BLOCKS.OL_LIST]:(t,r)=>e.createElement("ol",null,r),[t.BLOCKS.LIST_ITEM]:(t,r)=>e.createElement("li",null,r),[t.BLOCKS.QUOTE]:(t,r)=>e.createElement("blockquote",null,r),[t.BLOCKS.HR]:()=>e.createElement("hr",null),[t.BLOCKS.TABLE]:(t,r)=>e.createElement("table",null,e.createElement("tbody",null,r)),[t.BLOCKS.TABLE_ROW]:(t,r)=>e.createElement("tr",null,r),[t.BLOCKS.TABLE_HEADER_CELL]:(t,r)=>e.createElement("th",null,r),[t.BLOCKS.TABLE_CELL]:(t,r)=>e.createElement("td",null,r),[t.INLINES.ASSET_HYPERLINK]:e=>a(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>a(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>l(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>a(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,r)=>l(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,r)=>e.createElement("a",{href:t.data.uri},r)},i={[t.MARKS.BOLD]:t=>e.createElement("b",null,t),[t.MARKS.ITALIC]:t=>e.createElement("i",null,t),[t.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[t.MARKS.CODE]:t=>e.createElement("code",null,t),[t.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[t.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[t.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,r){return e.createElement("span",{key:r.data.target.sys.id},"type: ",r.nodeType," id: ",r.data.target.sys.id)}function l(t,r){return e.createElement("span",{key:r.data.target.sys.urn},"type: ",r.nodeType," urn: ",r.data.target.sys.urn)}return W.documentToReactComponents=function(e,r={}){if(!e)return null;let a=e;return r.stripEmptyTrailingParagraph&&(a=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),n(a,{renderNode:{...o,...r.renderNode},renderMark:{...i,...r.renderMark},renderText:r.renderText,preserveWhitespace:r.preserveWhitespace})},W}(),He=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),Me=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),ke=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});function Ge(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 Ue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xe,Ye=[He.PARAGRAPH,He.HEADING_1,He.HEADING_2,He.HEADING_3,He.HEADING_4,He.HEADING_5,He.HEADING_6,He.OL_LIST,He.UL_LIST,He.HR,He.QUOTE,He.EMBEDDED_ENTRY,He.EMBEDDED_ASSET,He.EMBEDDED_RESOURCE,He.TABLE],$e=[He.PARAGRAPH,He.HEADING_1,He.HEADING_2,He.HEADING_3,He.HEADING_4,He.HEADING_5,He.HEADING_6,He.OL_LIST,He.UL_LIST,He.HR,He.QUOTE,He.EMBEDDED_ENTRY,He.EMBEDDED_ASSET,He.EMBEDDED_RESOURCE];He.TABLE,He.TABLE_ROW,He.TABLE_CELL,He.TABLE_HEADER_CELL,He.HR,He.EMBEDDED_ENTRY,He.EMBEDDED_ASSET,He.EMBEDDED_RESOURCE;var We,Ve=(Ue(xe={},He.OL_LIST,[He.LIST_ITEM]),Ue(xe,He.UL_LIST,[He.LIST_ITEM]),Ue(xe,He.LIST_ITEM,$e),Ue(xe,He.QUOTE,[He.PARAGRAPH]),Ue(xe,He.TABLE,[He.TABLE_ROW]),Ue(xe,He.TABLE_ROW,[He.TABLE_CELL,He.TABLE_HEADER_CELL]),Ue(xe,He.TABLE_CELL,[He.PARAGRAPH,He.UL_LIST,He.OL_LIST]),Ue(xe,He.TABLE_HEADER_CELL,[He.PARAGRAPH]),xe),ze=[He.HEADING_1,He.HEADING_2,He.HEADING_3,He.HEADING_4,He.HEADING_5,He.HEADING_6];[He.PARAGRAPH].concat(function(e){if(Array.isArray(e))return Ge(e)}(We=ze)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(We)||function(e,t){if(e){if("string"==typeof e)return Ge(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(e,t):void 0}}(We)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),He.DOCUMENT,He.PARAGRAPH,He.HEADING_1,He.HEADING_2,He.HEADING_3,He.HEADING_4,He.HEADING_5,He.HEADING_6,He.OL_LIST,He.UL_LIST,He.LIST_ITEM,He.HR,He.QUOTE,He.EMBEDDED_ENTRY,He.EMBEDDED_ASSET,Me.HYPERLINK,Me.ENTRY_HYPERLINK,Me.ASSET_HYPERLINK,Me.EMBEDDED_ENTRY,He.DOCUMENT,He.PARAGRAPH;var Qe=Y(ve());function qe(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 Je(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Fe=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}};function Xe(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 Ze(e,t,r){return t&&function(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)}}(e.prototype,t),e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tt(e){return function(e){if(Array.isArray(e))return Xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var rt=function(){function e(t,r){var n=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),et(this,"obj",void 0),et(this,"path",void 0),et(this,"_errors",void 0),et(this,"catch",void 0),et(this,"exists",void 0),et(this,"object",void 0),et(this,"string",void 0),et(this,"number",void 0),et(this,"array",void 0),et(this,"enum",void 0),et(this,"empty",void 0),et(this,"minLength",void 0),et(this,"noAdditionalProperties",void 0),et(this,"each",void 0),this.obj=t,this.path=r,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=o._errors).push.apply(n,tt(t))},this.exists=function(e){return e in n.obj||(n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if(Qe(t))return!0;var r,o=e?n.path.of(e):n.path,i=null!==(r=null!=e?e:n.path.last())&&void 0!==r?r:"value";return n.catch(Fe({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&("string"==typeof t||(n.catch(Fe({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!(!t||e in n.obj)||!!n.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(n.catch(Fe({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&(!!Array.isArray(t)||(n.catch(Fe({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!("string"!=typeof r||!t.includes(r))||(n.catch(function(e){var t=e.expected,r=e.value,n=e.path;return{details:"Value must be one of expected values",name:"in",expected:Je(t).sort(),path:n.toArray(),value:r}}({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}}({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}}({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}}({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],o=!1;r.forEach(function(r,i){if(!o){var a=t(r,n.path.of(e).of(i));a.length>0&&(o=!0),n.catch.apply(n,tt(a))}})}}}return Ze(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}();function nt(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 ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e,t,r){return t=ct(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return ot(e)}(e,pt()?Reflect.construct(t,r||[],ct(e).constructor):t.apply(e,r))}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(e,t,r){return t&&function(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)}}(e.prototype,t),e}function lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}function st(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dt(e,t)}function dt(e,t){return dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dt(e,t)}function ft(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pt=function(){return!!e})()}var Et=[],yt=function(){function e(t,r){at(this,e),lt(this,"contentRule",void 0),lt(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return ut(e,[{key:"assert",value:function(e,t){var r=new rt(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var n=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=n.nodeTypes,i=n.min,a=void 0===i?0:i;if(0===o.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(r.minLength("content",a),0===o.length?r.empty("content"):r.each("content",function(e,t){var r=new rt(e,t);return r.object()?(r.enum("nodeType",o),r.errors):r.errors}),r.object("data")){var u,l,c,s=null!==(c=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,t.of("data")))&&void 0!==c?c:[];(u=r).catch.apply(u,ft(s))}return r.errors}}]),e}(),mt=function(e){function t(e,r){var n;return at(this,t),n=it(this,t,[r,function(e,t){return ot(n).assertLink(e,t)}]),lt(n,"linkType",void 0),lt(n,"type",void 0),lt(n,"assertLink",void 0),n.linkType=e,n.assertLink=function(e,t){var r=new rt(e,t);if(r.object("target")){var o,i=new rt(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[n.type]),i.enum("linkType",[n.linkType]),"Link"===n.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===n.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,ft(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},n.type=n.linkType.startsWith("Contentful:")?"ResourceLink":"Link",n}return st(t,e),t}(yt),vt=function(e){function t(){var e;return at(this,t),e=it(this,t,[["text"],function(t,r){return ot(e).assertLink(t,r)}]),lt(e,"assertLink",function(e,t){var r=new rt(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return st(t,e),t}(yt),ht=function(e,t){return new yt(e,t)},Lt=function(e,t){return new mt(e,t)};function bt(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 At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ot,St=ht(_t(Object.values(Me)).concat(["text"]).sort()),gt=ht([He.LIST_ITEM]),Tt=Lt("Entry",Et),Dt=ht(function(){return{nodeTypes:[He.PARAGRAPH],min:1}},function(e,t){var r=new rt(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors});At(Ot={},He.DOCUMENT,ht(Ye)),At(Ot,He.PARAGRAPH,St),At(Ot,He.HEADING_1,St),At(Ot,He.HEADING_2,St),At(Ot,He.HEADING_3,St),At(Ot,He.HEADING_4,St),At(Ot,He.HEADING_5,St),At(Ot,He.HEADING_6,St),At(Ot,He.QUOTE,ht(Ve[He.QUOTE])),At(Ot,He.EMBEDDED_ENTRY,Tt),At(Ot,He.EMBEDDED_ASSET,Lt("Asset",Et)),At(Ot,He.EMBEDDED_RESOURCE,Lt("Contentful:Entry",Et)),At(Ot,He.HR,ht(Et)),At(Ot,He.OL_LIST,gt),At(Ot,He.UL_LIST,gt),At(Ot,He.LIST_ITEM,ht(_t($e).sort())),At(Ot,He.TABLE,ht(function(){return{nodeTypes:[He.TABLE_ROW],min:1}})),At(Ot,He.TABLE_ROW,ht(function(){return{nodeTypes:[He.TABLE_CELL,He.TABLE_HEADER_CELL],min:1}})),At(Ot,He.TABLE_CELL,Dt),At(Ot,He.TABLE_HEADER_CELL,Dt),At(Ot,Me.HYPERLINK,new vt),At(Ot,Me.EMBEDDED_ENTRY,Tt),At(Ot,Me.EMBEDDED_RESOURCE,Lt("Contentful:Entry",Et)),At(Ot,Me.ENTRY_HYPERLINK,Lt("Entry",["text"])),At(Ot,Me.ASSET_HYPERLINK,Lt("Asset",["text"])),At(Ot,Me.RESOURCE_HYPERLINK,Lt("Contentful:Entry",["text"]));const It=e=>Array.isArray(null==e?void 0:e.content)&&e.content.every(e=>"text"===(null==e?void 0:e.nodeType)&&(!e.value||""===e.value.trim())),Nt=(e,t)=>{var r,n,o,i,a,u,l,c;const s=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.target;if((null==s?void 0:s.fields)||(null===(n=null==s?void 0:s.sys)||void 0===n?void 0:n.contentType))return s;const d=null===(o=null==s?void 0:s.sys)||void 0===o?void 0:o.id;if(!d)return null;return null!==(c=[...null!==(a=null===(i=null==t?void 0:t.entries)||void 0===i?void 0:i.block)&&void 0!==a?a:[],...null!==(l=null===(u=null==t?void 0:t.entries)||void 0===u?void 0:u.inline)&&void 0!==l?l:[]].find(e=>{var t;return(null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.id)===d}))&&void 0!==c?c:null},Ct=e=>{var t,r,n,o,i;return null!==(i=null!==(o=null===(n=null===(r=null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.contentType)||void 0===r?void 0:r.sys)||void 0===n?void 0:n.id)&&void 0!==o?o:null==e?void 0:e.__typename)&&void 0!==i?i:""},Rt=e=>{var t,r;return null!==(r=null!==(t=null==e?void 0:e.fields)&&void 0!==t?t:e)&&void 0!==r?r:{}},Bt=e=>{var t,r,n,o,i,a,u,l,c,s,d,f,p,E,y,m,v,h,L,b,A,_,O;return{image:null!==(a=null!==(o=null===(n=null===(r=null===(t=null==e?void 0:e.image)||void 0===t?void 0:t.fields)||void 0===r?void 0:r.file)||void 0===n?void 0:n.url)&&void 0!==o?o:null===(i=null==e?void 0:e.image)||void 0===i?void 0:i.url)&&void 0!==a?a:null==e?void 0:e.image,link:"string"==typeof(null==e?void 0:e.link)?e.link:null!==(c=null===(l=null===(u=null==e?void 0:e.link)||void 0===u?void 0:u.fields)||void 0===l?void 0:l.href)&&void 0!==c?c:null===(s=null==e?void 0:e.link)||void 0===s?void 0:s.href,videoPopup:Boolean(null==e?void 0:e.videoPopup),videoSourceType:null==e?void 0:e.videoSourceType,videoAssetUrl:null!==(m=null!==(E=null===(p=null===(f=null===(d=null==e?void 0:e.videoAssetUrl)||void 0===d?void 0:d.fields)||void 0===f?void 0:f.file)||void 0===p?void 0:p.url)&&void 0!==E?E:null===(y=null==e?void 0:e.videoAssetUrl)||void 0===y?void 0:y.url)&&void 0!==m?m:null==e?void 0:e.videoAssetUrl,videoAssetType:null!==(_=null!==(b=null===(L=null===(h=null===(v=null==e?void 0:e.videoAssetUrl)||void 0===v?void 0:v.fields)||void 0===h?void 0:h.file)||void 0===L?void 0:L.contentType)&&void 0!==b?b:null===(A=null==e?void 0:e.videoAssetUrl)||void 0===A?void 0:A.contentType)&&void 0!==_?_:null==e?void 0:e.videoAssetType,title:null!==(O=null==e?void 0:e.title)&&void 0!==O?O:null==e?void 0:e.entryTitle,description:null==e?void 0:e.description}},wt=e=>{if(!e)return"";try{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;return new URL(t).hostname.toLowerCase()}catch(e){return""}},Pt=e=>{const t=e.toLowerCase().replace(/\.$/,""),r=t.split(".").slice(-2).join("."),n=(t.slice(0,t.length-r.length).replace(/\.$/,"").split(".")[0]||"").replace(/-(dev|development|staging|stage|qa|test|uat|prod|production)$/,"");return`${r}|${""===n||"www"===n||"kinetic"===n?"main":n}`},jt=e=>{if(!/^https?:\/\//i.test(e))return!1;try{const t=new URL(e).hostname.toLowerCase(),r=wt(process.env.NEXT_PUBLIC_SITE_URL)||wt(process.env.NEXT_PUBLIC_MAIN_SITE_URL)||("undefined"!=typeof window?window.location.hostname.toLowerCase():"");return!r||Pt(t)!==Pt(r)}catch(e){return!1}},Kt=e=>({renderText:e=>e.includes("[")&&e.includes("]")?(e=>{const t=/\[([a-zA-Z0-9_-]+)\]/g,r=[];let n,i=0;for(;null!==(n=t.exec(e));)n.index>i&&r.push(e.substring(i,n.index)),r.push(o(f,{name:n[1],size:20,className:"inline-block align-middle"},`icon-${n.index}-${n[1]}`)),i=n.index+n[0].length;return i<e.length&&r.push(e.substring(i)),r.length>0?r:[e]})(e):e,renderMark:{[ke.BOLD]:e=>o("strong",{className:"font-black",children:e}),[ke.ITALIC]:e=>o("em",{children:e}),[ke.UNDERLINE]:e=>o("u",{children:e}),[ke.CODE]:e=>o("code",{children:e})},renderNode:{[He.PARAGRAPH]:(e,t)=>o("div",{className:"body3 mb-4 whitespace-pre-line",children:It(e)?"\n":t}),[He.HEADING_1]:(e,t)=>o(p,{as:"h1",className:"heading2 md:heading1",children:t}),[He.HEADING_2]:(e,t)=>o(p,{as:"h2",className:"heading3 md:heading2",children:t}),[He.HEADING_3]:(e,t)=>o(p,{as:"h3",className:"heading4 md:heading3",children:t}),[He.HEADING_4]:(e,t)=>o(p,{as:"h4",className:"heading5 md:heading4",children:t}),[He.HEADING_5]:(e,t)=>o(p,{as:"h5",className:"heading6 md:heading5",children:t}),[He.HEADING_6]:(e,t)=>o(p,{as:"h6",className:"heading6",children:t}),[He.QUOTE]:(e,t)=>o("blockquote",{children:t}),[He.UL_LIST]:(e,t)=>o("ul",{className:"list-disc pl-6",children:t}),[He.OL_LIST]:(e,t)=>o("ol",{className:"list-decimal pl-6",children:t}),[He.LIST_ITEM]:(e,t)=>o("li",{children:t}),[Me.HYPERLINK]:(e,t)=>{var r;const n=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.uri,i=jt(n);return o("a",{href:n,target:i?"_blank":void 0,rel:i?"noopener":void 0,children:t})},[He.EMBEDDED_ASSET]:e=>{var t,r;const n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target,i=null==n?void 0:n.fields,a=(null==n?void 0:n.url)||(null===(r=null==i?void 0:i.file)||void 0===r?void 0:r.url),u=(null==i?void 0:i.title)||(null==i?void 0:i.description)||"Embedded asset";if(!a)return null;const l=a.startsWith("//")?`https:${a}`:a;return o("img",{src:l,alt:u,style:{maxWidth:"100%"}})},[He.EMBEDDED_ENTRY]:t=>{const r=Nt(t,e);if(!r)return null;const n=Ct(r),a=Rt(r);switch(n){case"callout":return i("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[o("strong",{children:a.title}),o("div",{children:a.body})]});case"componentVideoLink":case"ComponentVideoLink":return o(E,{videoLink:Bt(a)});default:return null}},[Me.EMBEDDED_ENTRY]:t=>{var r;const n=Nt(t,e);if(!n)return null;const a=Ct(n),u=Rt(n);switch(a){case"componentCheckList":return i("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",u.title]});case"componentVideoLink":case"ComponentVideoLink":return o(E,{videoLink:Bt(u)});default:return o("span",{children:null!==(r=null==u?void 0:u.title)&&void 0!==r?r:""})}}}});function Ht(e,t,r="body1",n="body1 font-bold",i,a,u="body2"){if(!e||!Array.isArray(e.content))return null;const l=new WeakSet,c=(e,t=!1)=>{var r;const n=t||(null==e?void 0:e.nodeType)===He.LIST_ITEM;n&&(null==e?void 0:e.nodeType)===Me.HYPERLINK&&l.add(e),null===(r=null==e?void 0:e.content)||void 0===r||r.forEach(e=>c(e,n))};c(e);const s=Kt(a),f={...s,...i,renderNode:{...s.renderNode,...null==i?void 0:i.renderNode,[He.PARAGRAPH]:(e,t)=>o("div",{className:[r,"whitespace-pre-line"].filter(Boolean).join(" "),children:It(e)?"\n":t}),[Me.HYPERLINK]:(e,r)=>{var i;const a=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.uri,c=jt(a),s=null!=t?t:c;return o(d,{href:a,target:s?"_blank":void 0,rel:s?"noopener":void 0,variant:"default",className:l.has(e)?u:n,children:r})}}};return Ke.documentToReactComponents(e,f)}function Mt(e,t,r){return l(()=>{if(!e||!Array.isArray(e.content))return null;const n=Kt(null==r?void 0:r.links),i={...n,renderMark:{...n.renderMark,...(null==r?void 0:r.boldClassName)?{[ke.BOLD]:e=>o("strong",{className:r.boldClassName,children:e})}:{},...null==t?void 0:t.renderMark},renderNode:{...n.renderNode,...null==t?void 0:t.renderNode}};return Ke.documentToReactComponents(e,i)},[e,t,null==r?void 0:r.boldClassName,null==r?void 0:r.links])}function kt(e,t){if(!e||!Array.isArray(e.content))return null;const r=Kt(t),n={...r,renderMark:{...r.renderMark,[ke.BOLD]:e=>o("strong",{className:"label4 md:label2",children:e})},renderNode:{...r.renderNode,[He.PARAGRAPH]:(e,t)=>o(a,{children:t}),[He.TABLE]:(e,t)=>{var r,n;return o("div",{className:"comparison-table-wrapper w-full overflow-x-auto border-none md:overflow-hidden",children:o("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(n=null===(r=e.content[0])||void 0===r?void 0:r.content)||void 0===n?void 0:n.length)>2?"min-w-[100.1%]":"min-w-full"),children:o("tbody",{children:t})})})},[He.TABLE_ROW]:(e,t)=>o("tr",{className:"border-b border-gray-200 last:border-0",children:t}),[He.TABLE_HEADER_CELL]:(e,t)=>{var r;const n=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2;return o("th",{className:`label4 break-words py-4 text-center md:label2 ${n?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:t})},[He.TABLE_CELL]:(e,t)=>{var r,n,u,l;const c=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2,s=null===(l=null===(u=null===(n=e.content[0])||void 0===n?void 0:n.content[0])||void 0===u?void 0:u.value)||void 0===l?void 0:l.toLowerCase().trim();return o("td",{className:`rt-table-cell footnote break-words bg-white py-2 text-center align-top leading-5 text-text md:body2 first:text-left md:py-4 md:leading-7 ${c?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:i(a,{children:[" ","yes"===s?o(f,{name:"check_circle",color:"#24A76A",fill:1}):"no"===s?o(f,{name:"cancel",color:"#CECECE",fill:1}):t]})})},[Me.EMBEDDED_ENTRY]:e=>{var r,n,i,a,u,l;const c=Nt(e,t);if(!c)return null;const d=Ct(c),f=Rt(c);if("componentCheckList"===d||"ComponentCheckList"===d){const e=(null===(a=null!==(n=null===(r=f.list)||void 0===r?void 0:r.items)&&void 0!==n?n:null===(i=c.list)||void 0===i?void 0:i.items)||void 0===a?void 0:a.map(e=>{var t;return Ht(x(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),!0,"")}))||[];return o(s,{items:e,listIconName:"disc",listItemClassName:"items-baseline footnote md:body2 leading-5 md:leading-7 text-text"})}return"componentVideoLink"===d||"ComponentVideoLink"===d?o(E,{videoLink:Bt(f)}):o("span",{children:null!==(l=null!==(u=null==f?void 0:f.title)&&void 0!==u?u:c.title)&&void 0!==l?l:""})}}};return Ke.documentToReactComponents(e,n)}const Gt={renderMark:{[ke.BOLD]:e=>c("span",{className:"label1"},e)}};function Ut(e,t,r,n){return l(()=>{var o,i;const a=null!==(i=null===(o=null==e?void 0:e.list)||void 0===o?void 0:o.items)&&void 0!==i?i:[];return t?a.map(e=>{var t,o;return null!==(o=Ht(x(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:""}):a.map(e=>{var t,o,i,a,u;return{title:null!==(o=Ht(x(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:"",iconUrl:null!==(a=null===(i=null==e?void 0:e.icon)||void 0===i?void 0:i.url)&&void 0!==a?a:void 0,anchorId:null!==(u=null==e?void 0:e.anchorId)&&void 0!==u?u:void 0}})},[e,t,r,n])}export{v as SpeedCardBg,T as UTM_PARAM_NAMES,R as buildPreservedQueryHref,w as buildWifiGrantRedirectUrl,I as combineExistingAndNewUTMs,m as cx,C as getCampaignProperties,O as getCookie,N as getOrganicTrafficUtmParameters,S as getParsedCookie,H as getTokenField,b as getUTMs,D as getUtmParametersFromURL,Gt as label1BoldOptions,P as redirectToWifiGrantUrl,_ as removeUTMs,Ht as renderContentfulRichText,kt as renderContentfulRichTextTable,G as replaceTokens,g as setCookie,A as setUTMs,x as toDocument,Mt as useContentfulRichText,Ut as useProcessedChecklist};
2
2
  //# sourceMappingURL=index.esm.js.map