@saasquatch/vanilla-components 1.2.3 → 1.2.4-10

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 (112) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{WidgetHost-d7b870ce.js → WidgetHost-f349e877.js} +772 -615
  3. package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
  4. package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/sqh-close-button.cjs.entry.js +28 -23
  7. package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +2278 -1068
  8. package/dist/cjs/sqh-referral-code.cjs.entry.js +23 -23
  9. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +27 -12
  10. package/dist/cjs/widget-components.cjs.js +3 -3
  11. package/dist/collection/collection-manifest.json +2 -0
  12. package/dist/collection/components/close-button/close-button.js +70 -56
  13. package/dist/collection/components/copy-button/copy-button.js +389 -293
  14. package/dist/collection/components/copy-link-button/copy-link-button.js +236 -182
  15. package/dist/collection/components/cta-component/cta-component.css +6 -0
  16. package/dist/collection/components/cta-component/cta-component.js +393 -0
  17. package/dist/collection/components/global-container/global-container.js +170 -126
  18. package/dist/collection/components/image-component/image-component.js +178 -132
  19. package/dist/collection/components/partner-stat-component/partner-stat-component.js +199 -155
  20. package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
  21. package/dist/collection/components/progress-indicator/progress-indicator.js +554 -0
  22. package/dist/collection/components/referral-code/referral-code.js +36 -30
  23. package/dist/collection/components/referral-component/referral-component.js +255 -236
  24. package/dist/collection/components/referral-list/referral-list.js +935 -671
  25. package/dist/collection/components/rewards-actions/rewards-actions.js +105 -77
  26. package/dist/collection/components/share-button/share-button.js +310 -255
  27. package/dist/collection/components/share-button-container/share-button-container.js +2439 -1534
  28. package/dist/collection/components/stat-component/stat-component.js +200 -155
  29. package/dist/collection/components/stats-container/stats-container.js +210 -180
  30. package/dist/collection/components/text-component/text-component.js +304 -249
  31. package/dist/collection/entrypoint.js +32 -32
  32. package/dist/collection/global/global.js +4 -4
  33. package/dist/collection/services/FormatJs.js +15 -15
  34. package/dist/collection/services/WidgetHost.js +778 -621
  35. package/dist/collection/utilities.js +81 -81
  36. package/dist/esm/{WidgetHost-a27e693d.js → WidgetHost-c033b6ac.js} +772 -615
  37. package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
  38. package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
  39. package/dist/esm/loader.mjs +3 -3
  40. package/dist/esm/polyfills/core-js.js +0 -0
  41. package/dist/esm/polyfills/dom.js +0 -0
  42. package/dist/esm/polyfills/es5-html-element.js +0 -0
  43. package/dist/esm/polyfills/index.js +0 -0
  44. package/dist/esm/polyfills/system.js +0 -0
  45. package/dist/esm/sqh-close-button.entry.js +28 -23
  46. package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +2275 -1067
  47. package/dist/esm/sqh-referral-code.entry.js +23 -23
  48. package/dist/esm/sqh-rewards-actions.entry.js +27 -12
  49. package/dist/esm/widget-components.mjs +3 -3
  50. package/dist/esm-es5/{WidgetHost-a27e693d.js → WidgetHost-c033b6ac.js} +9524 -9432
  51. package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
  52. package/dist/esm-es5/css-shim-a659079f.js +122 -122
  53. package/dist/esm-es5/dom-4061ceba.js +468 -468
  54. package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1471 -1471
  55. package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +1808 -1758
  56. package/dist/esm-es5/loader.mjs +11 -11
  57. package/dist/esm-es5/sqh-close-button.entry.js +35 -30
  58. package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +10582 -9485
  59. package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
  60. package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -16
  61. package/dist/esm-es5/widget-components.mjs +6 -6
  62. package/dist/types/components/close-button/close-button.d.ts +18 -7
  63. package/dist/types/components/copy-button/copy-button.d.ts +93 -23
  64. package/dist/types/components/copy-link-button/copy-link-button.d.ts +55 -17
  65. package/dist/types/components/cta-component/cta-component.d.ts +89 -0
  66. package/dist/types/components/global-container/global-container.d.ts +43 -9
  67. package/dist/types/components/image-component/image-component.d.ts +46 -9
  68. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +52 -16
  69. package/dist/types/components/progress-indicator/progress-indicator.d.ts +91 -0
  70. package/dist/types/components/referral-code/referral-code.d.ts +12 -6
  71. package/dist/types/components/referral-component/referral-component.d.ts +46 -17
  72. package/dist/types/components/referral-list/referral-list.d.ts +242 -44
  73. package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -6
  74. package/dist/types/components/share-button/share-button.d.ts +80 -17
  75. package/dist/types/components/share-button-container/share-button-container.d.ts +611 -97
  76. package/dist/types/components/stat-component/stat-component.d.ts +50 -16
  77. package/dist/types/components/stats-container/stats-container.d.ts +47 -23
  78. package/dist/types/components/text-component/text-component.d.ts +74 -16
  79. package/dist/types/components.d.ts +2226 -2
  80. package/dist/types/global/global.d.ts +4 -4
  81. package/dist/types/saasquatch.d.ts +105 -103
  82. package/dist/types/services/FormatJs.d.ts +7 -7
  83. package/dist/types/services/WidgetHost.d.ts +51 -45
  84. package/dist/types/utilities.d.ts +7 -7
  85. package/dist/widget-components/entrypoint.js +32 -32
  86. package/dist/widget-components/p-0839fd2c.system.entry.js +10 -0
  87. package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
  88. package/dist/widget-components/p-24fc4ba9.js +1 -1
  89. package/dist/widget-components/{p-650d012d.entry.js → p-3ba562d0.entry.js} +1 -1
  90. package/dist/widget-components/{p-d4b27c72.entry.js → p-4293e873.entry.js} +1 -1
  91. package/dist/widget-components/p-46109683.js +3 -3
  92. package/dist/widget-components/{p-9adc7c50.system.js → p-54e83dfb.system.js} +2 -2
  93. package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
  94. package/dist/widget-components/{p-9525bf4a.js → p-6e753d23.js} +68 -3
  95. package/dist/widget-components/p-a952fcf2.entry.js +233 -0
  96. package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
  97. package/dist/widget-components/{p-c0cdba77.system.entry.js → p-abf8a511.system.entry.js} +1 -1
  98. package/dist/widget-components/p-ad5121cf.system.js +1 -0
  99. package/dist/widget-components/{p-908068c2.system.entry.js → p-d9e9c55c.system.entry.js} +1 -1
  100. package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
  101. package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
  102. package/dist/widget-components/p-fbf0c7fe.js +1 -0
  103. package/dist/widget-components/widget-components.esm.js +1 -1
  104. package/dist/widget-components/widget-components.js +1 -1
  105. package/docs/raisins.json +1 -0
  106. package/package.json +97 -89
  107. package/readme.md +52 -52
  108. package/CHANGELOG.md +0 -143
  109. package/dist/widget-components/p-485eaf44.js +0 -1
  110. package/dist/widget-components/p-75ab4c57.entry.js +0 -148
  111. package/dist/widget-components/p-d2335c54.system.entry.js +0 -8
  112. package/dist/widget-components/p-e61a8100.system.js +0 -1
@@ -1 +0,0 @@
1
- const t="widget-components";let e,n,l=!1,o=!1,s=!1,r=0,c=!1;const i="undefined"!=typeof window?window:{},f=i.CSS,a=i.document||{head:{}},u=i.HTMLElement||class{},d={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},p=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),$=(t,e,n)=>{n&&n.map(([n,l,o])=>{const s=t,r=m(e,o),c=y(n);d.ael(s,l,r,c),(e.o=e.o||[]).push(()=>d.rel(s,l,r,c))})},m=(t,e)=>n=>{256&t.t?t.s[e](n):(t.i=t.i||[]).push([e,n])},y=t=>0!=(2&t),b=new WeakMap,g=t=>"sc-"+t.u,w={},v=t=>"object"==(t=typeof t)||"function"===t,j="undefined"!=typeof Deno,k=!(j||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),O=(j&&Deno,k?process:j&&Deno,k?process:j&&Deno,(t,e,...n)=>{let l=null,o=null,s=!1,r=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!v(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?M(null,l):l),r=s)};if(i(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,_);const f=M(t,null);return f.h=e,c.length>0&&(f.$=c),f.m=o,f}),M=(t,e)=>({t:0,g:t,p:e,v:null,$:null,h:null,m:null}),S={},_={forEach:(t,e)=>t.map(C).forEach(e),map:(t,e)=>t.map(C).map(e).map(x)},C=t=>({vattrs:t.h,vchildren:t.$,vkey:t.j,vname:t.m,vtag:t.g,vtext:t.p}),x=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),O(t.vtag,e,...t.vchildren||[])}const e=M(t.vtag,t.vtext);return e.h=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.m=t.vname,e},D=(t,e,n,l,o,s)=>{if(n!==l){let r=yt(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=N(n),s=N(l);e.remove(...o.filter(t=>t&&!s.includes(t))),e.add(...s.filter(t=>t&&!o.includes(t)))}else if(r||"o"!==e[0]||"n"!==e[1]){const c=v(l);if((r||c&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{let o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||o)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):yt(i,c)?c.slice(2):c[2]+e.slice(3),n&&d.rel(t,e,n,!1),l&&d.ael(t,e,l,!1)}},E=/\s/,N=t=>t?t.split(E):[],R=(t,e,n,l)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,s=t&&t.h||w,r=e.h||w;for(l in s)l in r||D(o,l,s[l],void 0,n,e.t);for(l in r)D(o,l,s[l],r[l],n,e.t)},T=(t,o,r)=>{let c,i,f,u=o.$[r],d=0;if(l||(s=!0,"slot"===u.g&&(u.t|=u.$?2:1)),null!==u.p)c=u.v=a.createTextNode(u.p);else if(1&u.t)c=u.v=a.createTextNode("");else if(c=u.v=a.createElement(2&u.t?"slot-fb":u.g),R(null,u,!1),u.$)for(d=0;d<u.$.length;++d)i=T(t,u,d),i&&c.appendChild(i);return c["s-hn"]=n,3&u.t&&(c["s-sr"]=!0,c["s-cr"]=e,c["s-sn"]=u.m||"",f=t&&t.$&&t.$[r],f&&f.g===u.g&&t.v&&L(t.v,!1)),c},L=(t,e)=>{d.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const o=l[t];o["s-hn"]!==n&&o["s-ol"]&&(q(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),e&&L(o,e)}d.t&=-2},P=(t,e,n,l,o,s)=>{let r,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)l[o]&&(r=T(null,n,o),r&&(l[o].v=r,c.insertBefore(r,W(e))))},A=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(o=!0,(s=l.v)["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},U=(t,e)=>t.g===e.g&&("slot"!==t.g||t.m===e.m),W=t=>t&&t["s-ol"]||t,q=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,F=(t,e)=>{const n=e.v=t.v,l=t.$,o=e.$,s=e.p;let r;null===s?("slot"===e.g||R(t,e,!1),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,c=e.length-1,i=e[0],f=e[c],a=l.length-1,u=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=e[++s]:null==f?f=e[--c]:null==u?u=l[++r]:null==d?d=l[--a]:U(i,u)?(F(i,u),i=e[++s],u=l[++r]):U(f,d)?(F(f,d),f=e[--c],d=l[--a]):U(i,d)?("slot"!==i.g&&"slot"!==d.g||L(i.v.parentNode,!1),F(i,d),t.insertBefore(i.v,f.v.nextSibling),i=e[++s],d=l[--a]):U(f,u)?("slot"!==i.g&&"slot"!==d.g||L(f.v.parentNode,!1),F(f,u),t.insertBefore(f.v,i.v),f=e[--c],u=l[++r]):(o=T(e&&e[r],n,r),u=l[++r],o&&q(i.v).insertBefore(o,W(i.v)));s>c?P(t,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&A(e,s,c)})(n,l,e,o):null!==o?(null!==t.p&&(n.textContent=""),P(n,null,e,o,0,o.length-1)):null!==l&&A(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:t.p!==s&&(n.data=s)},H=t=>{let e,n,l,o,s,r,c=t.childNodes;for(n=0,l=c.length;n<l;n++)if(e=c[n],1===e.nodeType){if(e["s-sr"])for(s=e["s-sn"],e.hidden=!1,o=0;o<l;o++)if(c[o]["s-hn"]!==e["s-hn"])if(r=c[o].nodeType,""!==s){if(1===r&&s===c[o].getAttribute("slot")){e.hidden=!0;break}}else if(1===r||3===r&&""!==c[o].textContent.trim()){e.hidden=!0;break}H(e)}},V=[],z=t=>{let e,n,l,s,r,c,i=0,f=t.childNodes,a=f.length;for(;i<a;i++){if(e=f[i],e["s-sr"]&&(n=e["s-cr"]))for(l=n.parentNode.childNodes,s=e["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(B(n,s)?(r=V.find(t=>t.k===n),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.O=e:V.push({O:e,k:n}),n["s-sr"]&&V.map(t=>{B(t.k,n["s-sn"])&&(r=V.find(t=>t.k===n),r&&!t.O&&(t.O=r.O))})):V.some(t=>t.k===n)||V.push({k:n}));1===e.nodeType&&z(e)}},B=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,G=t=>ht(t).M,I=(t,e,n)=>{const l=G(t);return{emit:t=>J(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},J=(t,e,n)=>{const l=d.ce(e,n);return t.dispatchEvent(l),l},K=(t,e)=>{e&&!t.S&&e["s-p"]&&e["s-p"].push(new Promise(e=>t.S=e))},Q=(t,e)=>{if(t.t|=16,!(4&t.t))return K(t,t._),xt(()=>X(t,e));t.t|=512},X=(t,e)=>{const n=t.s;let l;return e&&(t.t|=256,t.i&&(t.i.map(([t,e])=>nt(n,t,e)),t.i=null),l=nt(n,"componentWillLoad")),lt(l,()=>Y(t,n,e))},Y=(t,r,c)=>{const i=t.M,f=i["s-rc"];c&&(t=>{const e=t.C;((t,e)=>{let n=g(e),l=vt.get(n);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let e,o=b.get(t=t.head||t);o||b.set(t,o=new Set),o.has(n)||(e=a.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.M.getRootNode(),e)})(t);((t,r)=>{const c=t.M,i=t.C,f=t.D||M(null,null),u=(t=>t&&t.g===S)(r)?r:O(null,null,r);if(n=c.tagName,u.g=null,u.t|=4,t.D=u,u.v=f.v=c,e=c["s-cr"],l=0!=(1&i.t),o=!1,F(f,u),d.t|=1,s){let t,e,n,l,o,s;z(u.v);let r=0;for(;r<V.length;r++)t=V[r],e=t.k,e["s-ol"]||(n=a.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<V.length;r++)if(t=V[r],e=t.k,t.O){for(l=t.O.parentNode,o=t.O.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}o&&H(u.v),d.t&=-2,V.length=0})(t,Z(t,r)),f&&(f.map(t=>t()),i["s-rc"]=void 0);{const e=i["s-p"],n=()=>tt(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},Z=(t,e)=>{try{e=e.render(),t.t&=-17,t.t|=2}catch(t){bt(t)}return e},tt=t=>{const e=t.M,n=t.s,l=t._;64&t.t||(t.t|=64,ot(e),nt(n,"componentDidLoad"),t.N(e),l||et()),t.S&&(t.S(),t.S=void 0),512&t.t&&Ct(()=>Q(t,!1)),t.t&=-517},et=()=>{ot(a.documentElement),d.t|=2,Ct(()=>J(i,"appload",{detail:{namespace:"widget-components"}}))},nt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){bt(t)}},lt=(t,e)=>t&&t.then?t.then(e):e(),ot=t=>t.classList.add("hydrated"),st=(t,e,n)=>{if(e.R){t.watchers&&(e.T=t.watchers);const l=Object.entries(e.R),o=t.prototype;if(l.map(([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>ht(this).L.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=ht(t),s=o.L.get(e),r=o.t,c=o.s;if(n=((t,e)=>null==t||v(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.R[e][0]),!(8&r&&void 0!==s||n===s)&&(o.L.set(e,n),c)){if(l.T&&128&r){const t=l.T[e];t&&t.map(t=>{try{c[t](n,s,e)}catch(t){bt(t)}})}2==(18&r)&&Q(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){d.jmp(()=>{const n=e.get(t);this[n]=(null!==l||"boolean"!=typeof this[n])&&l})},t.observedAttributes=l.filter(([t,e])=>15&e[0]).map(([t,n])=>{const l=n[1]||t;return e.set(l,t),l})}}return t},rt=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this,l=e.call(n,!1);if(t){let t,e=0;for(;e<n.childNodes.length;e++)t=n.childNodes[e]["s-nr"],t&&(l.__appendChild?l.__appendChild(t.cloneNode(!0)):l.appendChild(t.cloneNode(!0)))}return l}},ct=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=ft(t),n=at(this.childNodes,e);if(n){const l=ut(n,e),o=l[l.length-1];return o.parentNode.insertBefore(t,o.nextSibling)}return this.__appendChild(t)}},it=(t,e)=>{class n extends Array{item(t){return this[t]}}if(8&e.t){const e=t.__lookupGetter__("childNodes");Object.defineProperty(t,"children",{get(){return this.childNodes.map(t=>1===t.nodeType)}}),Object.defineProperty(t,"childElementCount",{get:()=>t.children.length}),Object.defineProperty(t,"childNodes",{get(){const t=e.call(this);if(0==(1&d.t)&&2&ht(this).t){const e=new n;for(let n=0;n<t.length;n++){const l=t[n]["s-nr"];l&&e.push(l)}return e}return n.from(t)}})}},ft=t=>t["s-sn"]||1===t.nodeType&&t.getAttribute("slot")||"",at=(t,e)=>{let n,l=0;for(;l<t.length;l++){if(n=t[l],n["s-sr"]&&n["s-sn"]===e)return n;if(n=at(n.childNodes,e),n)return n}return null},ut=(t,e)=>{const n=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)n.push(t);return n},dt=(t,e={})=>{const n=[],l=e.exclude||[],o=i.customElements,s=a.head,r=s.querySelector("meta[charset]"),c=a.createElement("style"),f=[];let u,p=!0;Object.assign(d,e),d.l=new URL(e.resourcesUrl||"./",a.baseURI).href,e.syncQueue&&(d.t|=4),t.map(t=>t[1].map(e=>{const s={t:e[0],u:e[1],R:e[2],P:e[3]};s.R=e[2],s.P=e[3],s.T={};const r=s.u,c=class extends HTMLElement{constructor(t){super(t),mt(t=this,s),it(t,s)}connectedCallback(){u&&(clearTimeout(u),u=null),p?f.push(this):d.jmp(()=>(t=>{if(0==(1&d.t)){const e=ht(t),n=e.C,l=()=>{};if(1&e.t)$(t,e,n.P);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=a.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(e,e._=n);break}}n.R&&Object.entries(n.R).map(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),Ct(()=>(async(t,e,n,l,o)=>{if(0==(32&e.t)){{if(e.t|=32,(o=wt(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.T=o.watchers,st(o,n,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(t){bt(t)}e.t&=-9,e.t|=128,t()}if(o.style){let t=o.style;const e=g(n);if(!vt.has(e)){const l=()=>{};((t,e,n)=>{let l=vt.get(t);h&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,vt.set(t,l)})(e,t,!!(1&n.t)),l()}}}const s=e._,r=()=>Q(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n))}l()}})(this))}disconnectedCallback(){d.jmp(()=>(()=>{if(0==(1&d.t)){const t=ht(this);t.o&&(t.o.map(t=>t()),t.o=void 0)}})())}forceUpdate(){(()=>{{const t=ht(this);t.M.isConnected&&2==(18&t.t)&&Q(t,!1)}})()}componentOnReady(){return ht(this).A}};rt(c.prototype),ct(c.prototype),s.U=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,st(c,s,1)))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.firstChild),p=!1,f.length?f.map(t=>t.connectedCallback()):d.jmp(()=>u=setTimeout(et,30))},pt=new WeakMap,ht=t=>pt.get(t),$t=(t,e)=>pt.set(e.s=t,e),mt=(t,e)=>{const n={t:0,M:t,C:e,L:new Map};return n.A=new Promise(t=>n.N=t),t["s-p"]=[],t["s-rc"]=[],$(t,n,e.P),pt.set(t,n)},yt=(t,e)=>e in t,bt=t=>console.error(t),gt=new Map,wt=t=>{const e=t.u.replace(/-/g,"_"),n=t.U,l=gt.get(n);return l?l[e]:__sc_import_widget_components(`./${n}.entry.js`).then(t=>(gt.set(n,t),t[e]),bt)},vt=new Map,jt=[],kt=[],Ot=[],Mt=(t,e)=>n=>{t.push(n),c||(c=!0,e&&4&d.t?Ct(_t):d.raf(_t))},St=(t,e)=>{let n=0,l=0;for(;n<t.length&&(l=performance.now())<e;)try{t[n++](l)}catch(t){bt(t)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},_t=()=>{r++,(t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){bt(t)}t.length=0})(jt);{const t=2==(6&d.t)?performance.now()+14*Math.ceil(.1*r):1/0;St(kt,t),St(Ot,t),kt.length>0&&(Ot.push(...kt),kt.length=0),(c=jt.length+kt.length+Ot.length>0)?d.raf(_t):r=0}},Ct=t=>p().then(t),xt=Mt(kt,!0);export{f as C,u as H,t as N,p as a,dt as b,I as c,a as d,G as g,O as h,d as p,$t as r,i as w}
@@ -1,148 +0,0 @@
1
- import{r as t,h as e,c as n,g as r}from"./p-485eaf44.js";import{c as i,a as s,u as o}from"./p-b18ab5ec.js";import{A as a}from"./p-9525bf4a.js";const c=t=>t.substring(4,t.length-1),u=t=>!!t.match(/^#[0-9a-f]{6}$/i),l=(t,e)=>{if(!u(t)&&!(t=>{const e=c(t).split(", ");return 3===e.length&&e.every(t=>parseInt(t)>=0&&parseInt(t)<=255)})(t))return;const n=u(t)?(t=>{const e=(t=>"#"==t.charAt(0)?t.substring(1):t)(t);return`rgb(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)})`})(t):t,r=e/100;return`rgb(${c(n).split(", ").map(t=>Math.floor(parseInt(t)*(1-r))).join(", ")})`},h=(t,e)=>t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)")),f=(t,e)=>{t.classList?t.classList.add(e):h(t,e)||(t.className+=" "+e)},d=(t,e)=>{if(t.classList)t.classList.remove(e);else if(h(t,e)){const n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}},p=function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)};var b=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);this.container.insertBefore(e,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(e)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(n);try{var i=105===t.charCodeAt(1)&&64===t.charCodeAt(0);r.insertRule(t,i?0:r.cssRules.length)}catch(t){}}else n.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();function v(t){function e(t,e,r){var i=e.trim().split(p);e=i;var s=i.length,o=t.length;switch(o){case 0:case 1:var a=0;for(t=0===o?"":t[0]+" ";a<s;++a)e[a]=n(t,e[a],r).trim();break;default:var c=a=0;for(e=[];a<s;++a)for(var u=0;u<o;++u)e[c++]=n(t[u]+" ",i[a],r).trim()}return e}function n(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(b,"$1"+t.trim());case 58:return t.trim()+e.replace(b,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(b,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function r(t,e,n,s){var o=t+";",a=2*e+3*n+4*s;if(944===a){t=o.indexOf(":",9)+1;var c=o.substring(t,o.length-1).trim();return c=o.substring(0,t).trim()+c+";",1===z||2===z&&i(c,1)?"-webkit-"+c+c:c}if(0===z||2===z&&!i(o,1))return o;switch(a){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(S,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(c=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+c+o;case 1005:return f.test(o)?o.replace(h,":-webkit-")+o.replace(h,":-moz-")+o:o;case 1e3:switch(e=(c=o.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(e)){case 226:c=o.replace(w,"tb");break;case 232:c=o.replace(w,"tb-rl");break;case 220:c=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+c+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(e=(o=t).length-10,a=(c=(33===o.charCodeAt(e)?o.substring(0,e):o).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+o.replace(c,"-webkit-"+c)+";"+o.replace(c,"-ms-"+c+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return c=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+c+"-ms-flex-"+c+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(k,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(k,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===$.test(t))return 115===(c=t.substring(t.indexOf(":")+1)).charCodeAt(0)?r(t.replace("stretch","fill-available"),e,n,s).replace(":fill-available",":stretch"):o.replace(c,"-webkit-"+c)+o.replace(c,"-moz-"+c.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+s&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+o}return o}function i(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),O(2!==e?r:r.replace(q,"$1"),n,e)}function s(t,e){var n=r(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(x," or ($1)").substring(4):"("+e+")"}function o(t,e,n,r,i,s,o,a,u,l){for(var h,f=0,d=e;f<j;++f)switch(h=T[f].call(c,t,d,n,r,i,s,o,a,u,l)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==e)return d}function a(t){return void 0!==(t=t.prefix)&&(O=null,t?"function"!=typeof t?z=1:(z=2,O=t):z=0),a}function c(t,n){var a=t;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<j){var c=o(-1,n,a,a,_,E,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var h=function t(n,a,c,h,f){for(var d,p,b,w,x,k=0,q=0,$=0,S=0,T=0,O=0,F=b=d=0,C=0,M=0,L=0,D=0,N=c.length,Z=N-1,U="",P="",H="",G="";C<N;){if(p=c.charCodeAt(C),C===Z&&0!==q+S+$+k&&(0!==q&&(p=47===q?10:47),S=$=k=0,N++,Z++),0===q+S+$+k){if(C===Z&&(0<M&&(U=U.replace(l,"")),0<U.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(C)}p=59}switch(p){case 123:for(d=(U=U.trim()).charCodeAt(0),b=1,D=++C;C<N;){switch(p=c.charCodeAt(C)){case 123:b++;break;case 125:b--;break;case 47:switch(p=c.charCodeAt(C+1)){case 42:case 47:t:{for(F=C+1;F<Z;++F)switch(c.charCodeAt(F)){case 47:if(42===p&&42===c.charCodeAt(F-1)&&C+2!==F){C=F+1;break t}break;case 10:if(47===p){C=F+1;break t}}C=F}}break;case 91:p++;case 40:p++;case 34:case 39:for(;C++<Z&&c.charCodeAt(C)!==p;);}if(0===b)break;C++}switch(b=c.substring(D,C),0===d&&(d=(U=U.replace(u,"").trim()).charCodeAt(0)),d){case 64:switch(0<M&&(U=U.replace(l,"")),p=U.charCodeAt(1)){case 100:case 109:case 115:case 45:M=a;break;default:M=I}if(D=(b=t(a,M,b,p,f+1)).length,0<j&&(x=o(3,b,M=e(I,U,L),a,_,E,D,p,f,h),U=M.join(""),void 0!==x&&0===(D=(b=x.trim()).length)&&(p=0,b="")),0<D)switch(p){case 115:U=U.replace(y,s);case 100:case 109:case 45:b=U+"{"+b+"}";break;case 107:b=(U=U.replace(v,"$1 $2"))+"{"+b+"}",b=1===z||2===z&&i("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=U+b,112===h&&(P+=b,b="")}else b="";break;default:b=t(a,e(a,U,L),b,h,f+1)}H+=b,b=L=M=F=d=0,U="",p=c.charCodeAt(++C);break;case 125:case 59:if(1<(D=(U=(0<M?U.replace(l,""):U).trim()).length))switch(0===F&&(d=U.charCodeAt(0),45===d||96<d&&123>d)&&(D=(U=U.replace(" ",":")).length),0<j&&void 0!==(x=o(1,U,a,n,_,E,P.length,h,f,h))&&0===(D=(U=x.trim()).length)&&(U="\0\0"),d=U.charCodeAt(0),p=U.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){G+=U+c.charAt(C);break}default:58!==U.charCodeAt(D-1)&&(P+=r(U,d,p,U.charCodeAt(2)))}L=M=F=d=0,U="",p=c.charCodeAt(++C)}}switch(p){case 13:case 10:47===q?q=0:0===1+d&&107!==h&&0<U.length&&(M=1,U+="\0"),0<j*R&&o(0,U,a,n,_,E,P.length,h,f,h),E=1,_++;break;case 59:case 125:if(0===q+S+$+k){E++;break}default:switch(E++,w=c.charAt(C),p){case 9:case 32:if(0===S+k+q)switch(T){case 44:case 58:case 9:case 32:w="";break;default:32!==p&&(w=" ")}break;case 0:w="\\0";break;case 12:w="\\f";break;case 11:w="\\v";break;case 38:0===S+q+k&&(M=L=1,w="\f"+w);break;case 108:if(0===S+q+k+A&&0<F)switch(C-F){case 2:112===T&&58===c.charCodeAt(C-3)&&(A=T);case 8:111===O&&(A=O)}break;case 58:0===S+q+k&&(F=C);break;case 44:0===q+$+S+k&&(M=1,w+="\r");break;case 34:case 39:0===q&&(S=S===p?0:0===S?p:S);break;case 91:0===S+q+$&&k++;break;case 93:0===S+q+$&&k--;break;case 41:0===S+q+k&&$--;break;case 40:if(0===S+q+k){if(0===d)switch(2*T+3*O){case 533:break;default:d=1}$++}break;case 64:0===q+$+S+k+F+b&&(b=1);break;case 42:case 47:if(!(0<S+k+$))switch(q){case 0:switch(2*p+3*c.charCodeAt(C+1)){case 235:q=47;break;case 220:D=C,q=42}break;case 42:47===p&&42===T&&D+2!==C&&(33===c.charCodeAt(D+2)&&(P+=c.substring(D,C+1)),w="",q=0)}}0===q&&(U+=w)}O=T,T=p,C++}if(0<(D=P.length)){if(M=a,0<j&&void 0!==(x=o(2,P,M,n,_,E,D,h,f,h))&&0===(P=x).length)return G+P+H;if(P=M.join(",")+"{"+P+"}",0!=z*A){switch(2!==z||i(P,2)||(A=0),A){case 111:P=P.replace(g,":-moz-$1")+P;break;case 112:P=P.replace(m,"::-webkit-input-$1")+P.replace(m,"::-moz-$1")+P.replace(m,":-ms-input-$1")+P}A=0}}return G+P+H}(I,a,n,0,0);return 0<j&&void 0!==(c=o(-2,h,a,a,_,E,h.length,0,0,0))&&(h=c),A=0,E=_=1,h}var u=/^\0+/g,l=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,p=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,q=/[^]*?(:[rp][el]a[\w-]+)[^]*/,$=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,E=1,_=1,A=0,z=1,I=[],T=[],j=0,O=null,R=0;return c.use=function t(e){switch(e){case void 0:case null:j=T.length=0;break;default:if("function"==typeof e)T[j++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else R=0|!!e}return t},c.set=a,void 0!==t&&a(t),c}var m=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}};function g(t){t&&x.current.insert(t+"}")}var w,y,x={current:null},k=function(t,e,n,r,i,s,o,a,c,u){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return x.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===a)return e+"/*|*/";break;case 3:switch(a){case 102:case 112:return x.current.insert(n[0]+e),"";default:return e+(0===u?"/*|*/":"")}case-2:e.split("/*|*/}").forEach(g)}},q=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},$="undefined"!=typeof document,S={},E=$?void 0:m((function(){var t=m((function(){return{}})),e={},n={};return function(r){return void 0===r||!0===r?e:!1===r?n:t(r)}})),_={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},A=/[A-Z]|^ms/g,z=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I=function(t){return 45===t.charCodeAt(1)},T=function(t){return null!=t&&"boolean"!=typeof t},j=(w=function(t){return I(t)?t:t.replace(A,"-$&").toLowerCase()},y={},function(t){return void 0===y[t]&&(y[t]=w(t)),y[t]}),O=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(z,(function(t,e,n){return F={name:e,styles:n,next:F},e}))}return 1===_[t]||I(t)||"number"!=typeof e||0===e?e:e+"px"};function R(t,e,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return F={name:n.name,styles:n.styles,next:F},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)F={name:i.name,styles:i.styles,next:F},i=i.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=R(t,e,n[i],!1);else for(var s in n){var o=n[s];if("object"!=typeof o)null!=e&&void 0!==e[o]?r+=s+"{"+e[o]+"}":T(o)&&(r+=j(s)+":"+O(s,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=e&&void 0!==e[o[0]]){var a=R(t,e,o,!1);switch(s){case"animation":case"animationName":r+=j(s)+":"+a+";";break;default:r+=s+"{"+a+"}"}}else for(var c=0;c<o.length;c++)T(o[c])&&(r+=j(s)+":"+O(s,o[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var s=F,o=n(t);return F=s,R(t,e,o,r)}}if(null==e)return n;var a=e[n];return void 0===a||r?n:a}var F,C=/label:\s*([^\s;\n{]+)\s*;/g,M=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";F=void 0;var s=t[0];null==s||void 0===s.raw?(r=!1,i+=R(n,e,s,!1)):i+=s[0];for(var o=1;o<t.length;o++)i+=R(n,e,t[o],46===i.charCodeAt(i.length-1)),r&&(i+=s[o]);C.lastIndex=0;for(var a,c="";null!==(a=C.exec(i));)c+="-"+a[1];return{name:function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c,styles:i,next:F}},L="undefined"!=typeof document;function D(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "})),r}var N=function(t,e,n){var r=t.key+"-"+e.name;if((!1===n||!1===L&&void 0!==t.compat)&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var i="",s=e;do{var o=t.insert("."+r,s,t.sheet,!0);L||void 0===o||(i+=o),s=s.next}while(void 0!==s);if(!L&&0!==i.length)return i}};function Z(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function U(t,e,n){var r=[],i=D(t,r,n);return r.length<2?n:i+e(r)}var P=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=t(i);else for(var o in s="",i)i[o]&&o&&(s&&(s+=" "),s+=o);break;default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},H=function(){var t=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var r,i,s=new v(e),o={};if($){r=t.container||document.head;var a=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(a,(function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach((function(t){o[t]=!0})),t.parentNode!==r&&r.appendChild(t)}))}if($)s.use(t.stylisPlugins)(k),i=function(t,e,n,r){var i=e.name;x.current=n,s(t,e.styles),r&&(u.inserted[i]=!0)};else{s.use(q);var c=S;(t.stylisPlugins||void 0!==t.prefix)&&(s.use(t.stylisPlugins),c=E(t.stylisPlugins||S)(t.prefix)),i=function(t,e,n,r){var i=e.name,o=function(t,e){var n=e.name;return void 0===c[n]&&(c[n]=s(t,e.styles)),c[n]}(t,e);return void 0===u.compat?(r&&(u.inserted[i]=!0),o):r?void(u.inserted[i]=o):o}}var u={key:n,sheet:new b({key:n,container:r,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:o,registered:{},insert:i};return u}(void 0);t.sheet.speedy=function(t){this.isSpeedy=t},t.compat=!0;var e=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered,void 0);return N(t,i,!1),t.key+"-"+i.name};return{css:e,cx:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return U(t.registered,e,P(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered);Z(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=M(n,t.registered),s="animation-"+i.name;return Z(t,{name:i.name,styles:"@keyframes "+s+"{"+i.styles+"}"}),s},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:D.bind(null,t.registered),merge:U.bind(null,t.registered,e)}}().css;const G=o(i((function(t){
2
- /*!
3
- * clipboard.js v2.0.6
4
- * https://clipboardjs.com/
5
- *
6
- * Licensed MIT © Zeno Rocha
7
- */
8
- var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}},function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var s=0,o=r.length;s<o;s++)r[s].fn!==e&&r[s].fn._!==e&&i.push(r[s]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e},function(t,e,n){var r=n(3),i=n(4);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(r.string(t))return function(t,e,n){return i(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(5);function i(t,e,n,r,i){var o=s.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function s(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=function(t,e,n,r,s){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,s)})))}},function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){n.r(e);var r=n(0),i=n.n(r),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":s(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),c=n(1),u=n.n(c),l=n(2),h=n.n(l),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.resolveOptions(n),r.listenClick(t),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),d(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===f(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=h()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(u.a);function b(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=p}]).default},t.exports=e()}))),B=class{constructor(e){t(this,e)}componentWillLoad(){if(!this.ishidden)return a.graphql.getFueltankCode(this.rewardkey).then(t=>{this.fueltankcode=(t.rewards.data.length>0?t.rewards.data[0].fuelTankCode:null)||t.referredByReferral.referrerUser.referralCode}).catch(t=>{this.onError(t)})}onError(t){console.log("Error loading via GraphQL.",t)}notify(t,e){const n=document.getElementById(t.slice(1));n.textContent=e,f(n,"in"),setTimeout(()=>{d(n,"in")},1400)}notifySuccess(t){this.notify(t.trigger.dataset.clipboardNotification,this.copysuccess)}notifyFailure(t){this.notify(t.trigger.dataset.clipboardNotification,this.copyfailure)}componentDidLoad(){const t=new G("button");t.on("success",this.notifySuccess.bind(this)),t.on("error",this.notifyFailure.bind(this))}render(){const t=H`
9
- max-width: ${this.width}px;
10
- background-color: ${this.backgroundcolor};
11
- border: ${this.backgroundcolor};
12
- color: ${this.textcolor};
13
- border-radius: ${this.borderradius}px;
14
- font-size: ${this.fontsize}px;
15
-
16
- &:hover {
17
- background-color: ${l(this.backgroundcolor,10)};
18
- border-color: ${l(this.backgroundcolor,12)};
19
- color: ${this.textcolor};
20
- }
21
-
22
- &:focus {
23
- color: ${this.textcolor};
24
- }
25
- `,n=H`
26
- text-align: center;
27
- font-weight: bold;
28
- font-size: ${this.codefontsize};
29
- color: ${this.codefontcolor};
30
- `,r=["sqh-copy-button",t].join(" ");return!this.ishidden&&e("div",null,e("div",{class:n},this.fueltankcode),e("div",{class:"sqh-align-button"},e("span",{class:"label fade",id:"squatch-copy-notification"},this.copysuccess),e("button",{class:r,"data-clipboard-text":this.fueltankcode,"data-clipboard-notification":"#squatch-copy-notification"},this.text)))}};B.style="sqh-copy-button{display:block}sqh-copy-button .sqh-align-button{text-align:center;position:relative;margin:20px 0}sqh-copy-button .sqh-align-button .sqh-copy-button{width:100%;text-align:center;padding:8px;cursor:pointer}sqh-copy-button .sqh-align-button .label{padding:0.2em 0.6em 0.3em;font-size:11px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;border-radius:0.25em;background-color:#35b21e}sqh-copy-button .sqh-align-button .label:empty{display:none}sqh-copy-button .sqh-align-button .fade{opacity:0;-webkit-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear}sqh-copy-button .sqh-align-button .fade.in{opacity:1}sqh-copy-button .sqh-align-button #squatch-copy-notification{position:absolute;left:215px;bottom:35px;z-index:2}";const W=class{constructor(e){t(this,e)}componentWillLoad(){if(!this.ishidden)return a.graphql.getShareLink().then(t=>{this.sharelink=t}).catch(t=>{this.onError(t)})}onError(t){console.log("Error loading via GraphQL.",t)}notify(t,e){const n=document.getElementById(t.slice(1));n.textContent=e,f(n,"in"),setTimeout(()=>{d(n,"in")},1400),a.analytics.shareEvent("DIRECT")}notifySuccess(t){this.notify(t.trigger.dataset.clipboardNotification,this.copysuccess)}notifyFailure(t){this.notify(t.trigger.dataset.clipboardNotification,this.copyfailure)}componentDidLoad(){const t=new G("[data-clipboard-target]");t.on("success",this.notifySuccess.bind(this)),t.on("error",this.notifyFailure.bind(this))}render(){const t=["sqh-copy-btn icon-btn",H`
31
- background-color: ${this.buttoncolor};
32
- border: 1px solid ${this.buttoncolor};
33
- color: ${this.textcolor};
34
- font-family: ${"inherit"};
35
-
36
- &:hover {
37
- background: ${l(this.buttoncolor,10)};
38
- border-color: ${l(this.buttoncolor,12)};
39
- color: ${this.textcolor};
40
- }
41
-
42
- &:focus {
43
- color: ${this.textcolor};
44
- }
45
- `].join(" ");return!this.ishidden&&e("div",{class:"input-group"},e("input",{id:"squatch-share-link",value:this.sharelink,readonly:"readonly"}),e("span",{class:"label fade",id:"squatch-share-notification"},this.copysuccess),e("span",{class:"input-group-btn"},e("button",{class:t,"data-clipboard-target":"#squatch-share-link","data-clipboard-notification":"#squatch-share-notification"},e("i",{class:"icon icon-link"}),e("span",{class:"hidden-sm"},this.text))))}};W.style='sqh-copy-link-button{display:block;text-align:center}sqh-copy-link-button .input-group{padding:8px 0 10px;position:relative;display:table;border-collapse:separate;width:100%;max-width:440px;margin:0 auto}sqh-copy-link-button #squatch-share-link{height:34px;padding:6px 12px;font-size:14px;line-height:1.428571429;border:1px solid #ccc;border-radius:4px 0 0 4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-o-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;color:#5b6165;cursor:text;position:relative;z-index:2;width:100%;margin-bottom:0;display:table-cell}sqh-copy-link-button .label{padding:0.2em 0.6em 0.3em;font-size:11px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;border-radius:0.25em;background-color:#737b80}sqh-copy-link-button .label:empty{display:none}sqh-copy-link-button .fade{opacity:0;-webkit-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear}sqh-copy-link-button .fade.in{opacity:1}sqh-copy-link-button #squatch-share-notification{position:absolute;top:16px;right:156px;z-index:2}sqh-copy-link-button .input-group-btn{display:table-cell;width:1%;white-space:nowrap;vertical-align:middle}sqh-copy-link-button .sqh-copy-btn{-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;border-radius:4px;border-bottom-left-radius:0;border-top-left-radius:0;height:34px}sqh-copy-link-button .sqh-copy-btn:focus{outline:0}sqh-copy-link-button .sqh-copy-btn.disabled,sqh-copy-link-button .sqh-copy-btn[disabled],fieldset[disabled] sqh-copy-link-button .sqh-copy-btn{cursor:not-allowed;pointer-events:none;opacity:0.65;-webkit-box-shadow:none;box-shadow:none}sqh-copy-link-button .icon-btn{width:139px;border-left:0;padding-left:0;padding-right:0;position:relative;text-align:left}sqh-copy-link-button .icon-btn:before{content:"";position:absolute;top:-1px;left:-3px;bottom:-1px;background:rgba(255, 255, 255, 0.18);width:40px}sqh-copy-link-button .icon-btn .icon{width:42px;margin-right:30px}sqh-copy-link-button .hidden-sm{text-align:center;padding-left:10px;font-size:14px}sqh-copy-link-button .icon-link:before{font-size:1.2em;padding-left:8px}@media (max-width: 499px){sqh-copy-link-button .input-group{max-width:100%}}@media (max-width: 499px){sqh-copy-link-button #squatch-share-notification{right:60px}}@media (max-width: 499px){sqh-copy-link-button .sqh-copy-btn{width:auto}sqh-copy-link-button .sqh-copy-btn .icon{width:39px;margin-right:0;padding-right:8px}}@media (min-width: 0px) and (max-width: 499px){sqh-copy-link-button .hidden-sm{display:none !important}}';const V=class{constructor(e){t(this,e)}LoadingState(t){const n=H`
46
- background-color: ${t.loadingcolor||"#439B76"};
47
- `;return e("div",{class:"container-loading"},e("div",{class:"loading-icon"},e("div",{class:"bar1 "+n}),e("div",{class:"bar2 "+n}),e("div",{class:"bar3 "+n}),e("div",{class:"bar4 "+n}),e("div",{class:"bar5 "+n})))}render(){const t=H`
48
- background-color: ${this.background};
49
- font-family: ${this.fontfamily};
50
- position: relative;
51
- max-width: ${this.maxwidth};
52
- `,n=e("link",{href:"https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap",rel:"stylesheet"}),r=e("link",{href:"https://static-dc.autodesk.net/etc/designs/v201903181748/templates-general/structure/fonts/artifakt/clientlibs/artifakt.css",rel:"stylesheet"});return e("div",{class:t},"Roboto"==this.fontfamily?n:"","Artifakt Element"==this.fontfamily?r:"",e("slot",null),this.poweredby?e("a",{class:"sqh-attribution",href:"https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget",target:"_blank"},"Powered By Saasquatch"):"",e(this.LoadingState,{loadingcolor:this.loadingcolor}))}};V.style="body{margin:0px;padding:0px;font-family:sans-serif}sqh-global-container{display:block;max-width:500px;margin:0 auto}sqh-global-container *{-webkit-box-sizing:border-box;box-sizing:border-box}sqh-global-container>div{width:100%;display:block;padding:0 10px}sqh-global-container .sqh-attribution{display:inherit;text-align:center;font-size:10px;color:lightgray;text-decoration:none;padding-bottom:10px}sqh-global-container .container-loading{display:none;left:calc(50% - 50px);position:absolute;text-align:center;top:45%;width:100px}sqh-global-container:not(.hydrated) .container-loading{display:block;visibility:visible}sqh-global-container .loading-icon{height:40px;text-align:center;font-size:10px;position:absolute;left:0;width:100%;top:45%;z-index:1000}sqh-global-container .loading-icon-tr .loading-icon{position:relative;top:0}sqh-global-container .loading-icon>div{height:100%;margin:1px;width:6px;display:inline-block;-webkit-animation:sk-stretchdelay 1.2s infinite ease-in-out;animation:sk-stretchdelay 1.2s infinite ease-in-out}sqh-global-container .loading-icon .bar2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}sqh-global-container .loading-icon .bar3{-webkit-animation-delay:-1s;animation-delay:-1s}sqh-global-container .loading-icon .bar4{-webkit-animation-delay:-0.9s;animation-delay:-0.9s}sqh-global-container .loading-icon .bar5{-webkit-animation-delay:-0.8s;animation-delay:-0.8s}@-webkit-keyframes sk-stretchdelay{0%,40%,100%{-webkit-transform:scaleY(0.4)}20%{-webkit-transform:scaleY(1)}}@keyframes sk-stretchdelay{0%,40%,100%{transform:scaleY(0.4);-webkit-transform:scaleY(0.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}";const Y=class{constructor(e){t(this,e)}render(){const t=H`
53
- {
54
- text-align: ${this.alignment};
55
- }
56
- `,n=H`
57
- {
58
- width: ${this.width}px;
59
- border-radius: ${this.borderradius}px;
60
- ${this.css}
61
- }
62
- `;return!this.ishidden&&e("div",{class:t},e("img",{src:this.url,class:n}))}};Y.style="sqh-image-component{display:block}sqh-image-component div{position:relative}sqh-image-component img{max-width:100%;height:auto}";const Q=class{constructor(e){t(this,e),this.statTypeUpdated=n(this,"statTypeUpdated",7),this.statAdded=n(this,"statAdded",7)}componentWillLoad(){this.statAddedHandler(this.elem)}stattypeHandler(t,e){t!==e&&this.statTypeUpdatedHandler(this.elem)}statAddedHandler(t){this.statAdded.emit(t)}statTypeUpdatedHandler(t){this.statTypeUpdated.emit(t)}render(){const t=H`
63
- color: ${this.statcolor};
64
- `;return!this.ishidden&&e("div",{class:t},e("div",{class:"stat-value"},this.statvalue),e("div",{class:"stat-description"},this.statdescription))}get elem(){return r(this)}static get watchers(){return{stattype:["stattypeHandler"]}}};var X,K;function J(t){return t.type===X.literal}function tt(t){return t.type===X.argument}function et(t){return t.type===X.number}function nt(t){return t.type===X.date}function rt(t){return t.type===X.time}function it(t){return t.type===X.select}function st(t){return t.type===X.plural}function ot(t){return t.type===X.pound}function at(t){return t.type===X.tag}function ct(t){return!(!t||"object"!=typeof t||0!==t.type)}function ut(t){return!(!t||"object"!=typeof t||1!==t.type)}Q.style="sqh-partner-stat-component{text-align:center;width:140px;float:left}sqh-partner-stat-component>div{padding:10px}sqh-partner-stat-component .stat-value{font-size:20px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-partner-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-partner-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-partner-stat-component:first-child{border-radius:4px 4px 0 0}sqh-partner-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-partner-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-partner-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}",function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(X||(X={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(K||(K={}));var lt,ht=(lt=function(t,e){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}lt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ft=function(){return(ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},dt=function(t){function e(n,r,i,s){var o=t.call(this)||this;return o.message=n,o.expected=r,o.found=i,o.location=s,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,e),o}return ht(e,t),e.buildMessage=function(t,e){function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function r(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function s(t){switch(t.type){case"literal":return'"'+r(t.text)+'"';case"class":var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e+"]";case"any":return"any character";case"end":return"end of input";case"other":return t.description}}return"Expected "+function(t){var e,n,r=t.map(s);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+((o=e)?'"'+r(o)+'"':"end of input")+" found.";var o},e}(Error),pt=function(t,e){e=void 0!==e?e:{};var n,r={},i={start:At},s=At,o=kt("<",!1),a=function(t){return t.join("")},c=kt("#",!1),u=$t("tagElement"),l=kt("/>",!1),h=kt(">",!1),f=kt("</",!1),d=$t("argumentElement"),p=kt("{",!1),b=kt("}",!1),v=$t("numberSkeletonId"),m=/^['\/{}]/,g=qt(["'","/","{","}"],!1,!1),w={type:"any"},y=$t("numberSkeletonTokenOption"),x=kt("/",!1),k=$t("numberSkeletonToken"),q=kt("::",!1),$=function(t){return te.pop(),t.replace(/\s*$/,"")},S=kt(",",!1),E=kt("number",!1),_=function(t,e,n){return ft({type:"number"===e?X.number:"date"===e?X.date:X.time,style:n&&n[2],value:t},ne())},A=kt("'",!1),z=/^[^']/,I=qt(["'"],!0,!1),T=/^[^a-zA-Z'{}]/,j=qt([["a","z"],["A","Z"],"'","{","}"],!0,!1),O=/^[a-zA-Z]/,R=qt([["a","z"],["A","Z"]],!1,!1),F=kt("date",!1),C=kt("time",!1),M=kt("plural",!1),L=kt("selectordinal",!1),D=kt("offset:",!1),N=kt("select",!1),Z=kt("=",!1),U=$t("whitespace"),P=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,H=qt([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),G=$t("syntax pattern"),B=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,W=qt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),V=$t("optional whitespace"),Y=$t("number"),Q=kt("-",!1),K=$t("double apostrophes"),J=kt("''",!1),tt=kt("\n",!1),et=$t("argNameOrNumber"),nt=$t("validTag"),rt=$t("argNumber"),it=kt("0",!1),st=/^[1-9]/,ot=qt([["1","9"]],!1,!1),at=/^[0-9]/,ct=qt([["0","9"]],!1,!1),ut=$t("argName"),lt=$t("tagName"),ht=0,pt=0,bt=[{line:1,column:1}],vt=0,mt=[],gt=0;if(void 0!==e.startRule){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');s=i[e.startRule]}function wt(){return t.substring(pt,ht)}function yt(){return Et(pt,ht)}function xt(t,e){throw function(t,e){return new dt(t,[],"",e)}(t,e=void 0!==e?e:Et(pt,ht))}function kt(t,e){return{type:"literal",text:t,ignoreCase:e}}function qt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function $t(t){return{type:"other",description:t}}function St(e){var n,r=bt[e];if(r)return r;for(n=e-1;!bt[n];)n--;for(r={line:(r=bt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return bt[e]=r,r}function Et(t,e){var n=St(t),r=St(e);return{start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function _t(t){ht<vt||(ht>vt&&(vt=ht,mt=[]),mt.push(t))}function At(){return zt()}function zt(){var t,e;for(t=[],e=It();e!==r;)t.push(e),e=It();return t}function It(){var e,n;return e=ht,pt=ht,(oe?r:void 0)!==r&&(n=function(){var t,e,n,i,s,o,a;return gt++,(t=Ot())===r&&(t=ht,(e=Rt())!==r&&(n=zt())!==r&&(i=Ft())!==r?(pt=t,o=n,(s=e)!==(a=i)&&xt('Mismatch tag "'+s+'" !== "'+a+'"',yt()),t=e=ft({type:X.tag,value:s,children:o},ne())):(ht=t,t=r)),gt--,t===r&&(e=r,0===gt&&_t(u)),t}())!==r?(pt=e,e=n):(ht=e,e=r),e===r&&(e=function(){var t,e;return t=ht,(e=Tt())!==r&&(pt=t,e=ft({type:X.literal,value:e},ne())),e}())===r&&(e=function(){var e,n,i,s;return gt++,e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(125===t.charCodeAt(ht)?(s="}",ht++):(s=r,0===gt&&_t(b)),s!==r?(pt=e,e=n=ft({type:X.argument,value:i},ne())):(ht=e,e=r)):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(d)),e}())===r&&(e=function(){var e;return(e=function(){var e,n,i,s,o,a,c,u,l;return e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r&&Gt()!==r?("number"===t.substr(ht,6)?(o="number",ht+=6):(o=r,0===gt&&_t(E)),o!==r&&Gt()!==r?(a=ht,44===t.charCodeAt(ht)?(c=",",ht++):(c=r,0===gt&&_t(S)),c!==r&&(u=Gt())!==r&&(l=function(){var e,n,i;return e=ht,"::"===t.substr(ht,2)?(n="::",ht+=2):(n=r,0===gt&&_t(q)),n!==r&&(i=function(){var t,e,n;if(t=ht,e=[],(n=Lt())!==r)for(;n!==r;)e.push(n),n=Lt();else e=r;return e!==r&&(pt=t,e=ft({type:0,tokens:e},ne())),e}())!==r?(pt=e,e=n=i):(ht=e,e=r),e===r&&(e=ht,pt=ht,te.push("numberArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Tt())!==r?(pt=e,e=n=$(i)):(ht=e,e=r)),e}())!==r?a=c=[c,u,l]:(ht=a,a=r),a===r&&(a=null),a!==r&&(c=Gt())!==r?(125===t.charCodeAt(ht)?(u="}",ht++):(u=r,0===gt&&_t(b)),u!==r?(pt=e,e=n=_(i,o,a)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l;return e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r&&Gt()!==r&&(i=Qt())!==r&&Gt()!==r?(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r&&Gt()!==r?("date"===t.substr(ht,4)?(o="date",ht+=4):(o=r,0===gt&&_t(F)),o===r&&("time"===t.substr(ht,4)?(o="time",ht+=4):(o=r,0===gt&&_t(C))),o!==r&&Gt()!==r?(a=ht,44===t.charCodeAt(ht)?(c=",",ht++):(c=r,0===gt&&_t(S)),c!==r&&(u=Gt())!==r&&(l=function(){var e,n,i;return e=ht,"::"===t.substr(ht,2)?(n="::",ht+=2):(n=r,0===gt&&_t(q)),n!==r&&(i=function(){var e,n,i,s;if(e=ht,n=ht,i=[],(s=Dt())===r&&(s=Nt()),s!==r)for(;s!==r;)i.push(s),(s=Dt())===r&&(s=Nt());else i=r;return(n=i!==r?t.substring(n,ht):i)!==r&&(pt=e,n=ft({type:1,pattern:n},ne())),n}())!==r?(pt=e,e=n=i):(ht=e,e=r),e===r&&(e=ht,pt=ht,te.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:r)!==r&&(i=Tt())!==r?(pt=e,e=n=$(i)):(ht=e,e=r)),e}())!==r?a=c=[c,u,l]:(ht=a,a=r),a===r&&(a=null),a!==r&&(c=Gt())!==r?(125===t.charCodeAt(ht)?(u="}",ht++):(u=r,0===gt&&_t(b)),u!==r?(pt=e,e=n=_(i,o,a)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}()),e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l,h,f;if(e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r)if(Gt()!==r)if((i=Qt())!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r)if(Gt()!==r)if("plural"===t.substr(ht,6)?(o="plural",ht+=6):(o=r,0===gt&&_t(M)),o===r&&("selectordinal"===t.substr(ht,13)?(o="selectordinal",ht+=13):(o=r,0===gt&&_t(L))),o!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(a=",",ht++):(a=r,0===gt&&_t(S)),a!==r)if(Gt()!==r)if(c=ht,"offset:"===t.substr(ht,7)?(u="offset:",ht+=7):(u=r,0===gt&&_t(D)),u!==r&&(l=Gt())!==r&&(h=Bt())!==r?c=u=[u,l,h]:(ht=c,c=r),c===r&&(c=null),c!==r)if((u=Gt())!==r){if(l=[],(h=Ut())!==r)for(;h!==r;)l.push(h),h=Ut();else l=r;l!==r&&(h=Gt())!==r?(125===t.charCodeAt(ht)?(f="}",ht++):(f=r,0===gt&&_t(b)),f!==r?(pt=e,e=n=function(t,e,n,r){return ft({type:X.plural,pluralType:"plural"===e?"cardinal":"ordinal",value:t,offset:n?n[2]:0,options:r.reduce((function(t,e){var n=e.id,r=e.value,i=e.location;return n in t&&xt('Duplicate option "'+n+'" in plural element: "'+wt()+'"',yt()),t[n]={value:r,location:i},t}),{})},ne())}(i,o,c,l)):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;return e}())===r&&(e=function(){var e,n,i,s,o,a,c,u,l;if(e=ht,123===t.charCodeAt(ht)?(n="{",ht++):(n=r,0===gt&&_t(p)),n!==r)if(Gt()!==r)if((i=Qt())!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(s=",",ht++):(s=r,0===gt&&_t(S)),s!==r)if(Gt()!==r)if("select"===t.substr(ht,6)?(o="select",ht+=6):(o=r,0===gt&&_t(N)),o!==r)if(Gt()!==r)if(44===t.charCodeAt(ht)?(a=",",ht++):(a=r,0===gt&&_t(S)),a!==r)if(Gt()!==r){if(c=[],(u=Zt())!==r)for(;u!==r;)c.push(u),u=Zt();else c=r;c!==r&&(u=Gt())!==r?(125===t.charCodeAt(ht)?(l="}",ht++):(l=r,0===gt&&_t(b)),l!==r?(pt=e,e=n=function(t,e){return ft({type:X.select,value:t,options:e.reduce((function(t,e){var n=e.id,r=e.value,i=e.location;return n in t&&xt('Duplicate option "'+n+'" in select element: "'+wt()+'"',yt()),t[n]={value:r,location:i},t}),{})},ne())}(i,c)):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;else ht=e,e=r;return e}())===r&&(e=function(){var e,n;return e=ht,35===t.charCodeAt(ht)?(n="#",ht++):(n=r,0===gt&&_t(c)),n!==r&&(pt=e,n=ft({type:X.pound},ne())),n}()),e}function Tt(){var e,n,i,s;if(e=ht,pt=ht,(n=(n=oe)?void 0:r)!==r){if(i=[],(s=Wt())===r&&(s=Vt())===r&&(s=Yt())===r&&(60===t.charCodeAt(ht)?(s="<",ht++):(s=r,0===gt&&_t(o))),s!==r)for(;s!==r;)i.push(s),(s=Wt())===r&&(s=Vt())===r&&(s=Yt())===r&&(60===t.charCodeAt(ht)?(s="<",ht++):(s=r,0===gt&&_t(o)));else i=r;i!==r?(pt=e,e=n=a(i)):(ht=e,e=r)}else ht=e,e=r;if(e===r){if(e=ht,n=[],(i=Wt())===r&&(i=Vt())===r&&(i=Yt())===r&&(i=jt()),i!==r)for(;i!==r;)n.push(i),(i=Wt())===r&&(i=Vt())===r&&(i=Yt())===r&&(i=jt());else n=r;n!==r&&(pt=e,n=a(n)),e=n}return e}function jt(){var e,n,i;return e=ht,n=ht,gt++,(i=Rt())===r&&(i=Ft())===r&&(i=Ot()),gt--,i===r?n=void 0:(ht=n,n=r),n!==r?(60===t.charCodeAt(ht)?(i="<",ht++):(i=r,0===gt&&_t(o)),i!==r?(pt=e,e=n="<"):(ht=e,e=r)):(ht=e,e=r),e}function Ot(){var e,n,i,s,a,c;return e=ht,n=ht,60===t.charCodeAt(ht)?(i="<",ht++):(i=r,0===gt&&_t(o)),i!==r&&(s=Xt())!==r&&(a=Gt())!==r?("/>"===t.substr(ht,2)?(c="/>",ht+=2):(c=r,0===gt&&_t(l)),c!==r?n=i=[i,s,a,c]:(ht=n,n=r)):(ht=n,n=r),n!==r&&(pt=e,n=ft({type:X.literal,value:n.join("")},ne())),n}function Rt(){var e,n,i,s;return e=ht,60===t.charCodeAt(ht)?(n="<",ht++):(n=r,0===gt&&_t(o)),n!==r&&(i=Xt())!==r?(62===t.charCodeAt(ht)?(s=">",ht++):(s=r,0===gt&&_t(h)),s!==r?(pt=e,e=n=i):(ht=e,e=r)):(ht=e,e=r),e}function Ft(){var e,n,i,s;return e=ht,"</"===t.substr(ht,2)?(n="</",ht+=2):(n=r,0===gt&&_t(f)),n!==r&&(i=Xt())!==r?(62===t.charCodeAt(ht)?(s=">",ht++):(s=r,0===gt&&_t(h)),s!==r?(pt=e,e=n=i):(ht=e,e=r)):(ht=e,e=r),e}function Ct(){var e,n,i,s,o;if(gt++,e=ht,n=[],i=ht,s=ht,gt++,(o=Pt())===r&&(m.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(g))),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ht,s=ht,gt++,(o=Pt())===r&&(m.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(g))),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r);else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(v)),e}function Mt(){var e,n,i;return gt++,e=ht,47===t.charCodeAt(ht)?(n="/",ht++):(n=r,0===gt&&_t(x)),n!==r&&(i=Ct())!==r?(pt=e,e=n=i):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(y)),e}function Lt(){var t,e,n,i;if(gt++,t=ht,Gt()!==r)if((e=Ct())!==r){for(n=[],i=Mt();i!==r;)n.push(i),i=Mt();n!==r?(pt=t,t=function(t,e){return{stem:t,options:e}}(e,n)):(ht=t,t=r)}else ht=t,t=r;else ht=t,t=r;return gt--,t===r&&0===gt&&_t(k),t}function Dt(){var e,n,i,s;if(e=ht,39===t.charCodeAt(ht)?(n="'",ht++):(n=r,0===gt&&_t(A)),n!==r){if(i=[],(s=Wt())===r&&(z.test(t.charAt(ht))?(s=t.charAt(ht),ht++):(s=r,0===gt&&_t(I))),s!==r)for(;s!==r;)i.push(s),(s=Wt())===r&&(z.test(t.charAt(ht))?(s=t.charAt(ht),ht++):(s=r,0===gt&&_t(I)));else i=r;i!==r?(39===t.charCodeAt(ht)?(s="'",ht++):(s=r,0===gt&&_t(A)),s!==r?e=n=[n,i,s]:(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;if(e===r)if(e=[],(n=Wt())===r&&(T.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(j))),n!==r)for(;n!==r;)e.push(n),(n=Wt())===r&&(T.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(j)));else e=r;return e}function Nt(){var e,n;if(e=[],O.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(R)),n!==r)for(;n!==r;)e.push(n),O.test(t.charAt(ht))?(n=t.charAt(ht),ht++):(n=r,0===gt&&_t(R));else e=r;return e}function Zt(){var e,n,i,s,o,a,c;return e=ht,Gt()!==r&&(n=Jt())!==r&&Gt()!==r?(123===t.charCodeAt(ht)?(i="{",ht++):(i=r,0===gt&&_t(p)),i!==r?(pt=ht,te.push("select"),void 0!==r&&(s=zt())!==r?(125===t.charCodeAt(ht)?(o="}",ht++):(o=r,0===gt&&_t(b)),o!==r?(pt=e,a=n,c=s,te.pop(),e=ft({id:a,value:c},ne())):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}function Ut(){var e,n,i,s,o,a,c;return e=ht,Gt()!==r&&(n=function(){var e,n,i,s;return e=ht,n=ht,61===t.charCodeAt(ht)?(i="=",ht++):(i=r,0===gt&&_t(Z)),i!==r&&(s=Bt())!==r?n=i=[i,s]:(ht=n,n=r),(e=n!==r?t.substring(e,ht):n)===r&&(e=Jt()),e}())!==r&&Gt()!==r?(123===t.charCodeAt(ht)?(i="{",ht++):(i=r,0===gt&&_t(p)),i!==r?(pt=ht,te.push("plural"),void 0!==r&&(s=zt())!==r?(125===t.charCodeAt(ht)?(o="}",ht++):(o=r,0===gt&&_t(b)),o!==r?(pt=e,a=n,c=s,te.pop(),e=ft({id:a,value:c},ne())):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r)):(ht=e,e=r),e}function Pt(){var e;return gt++,P.test(t.charAt(ht))?(e=t.charAt(ht),ht++):(e=r,0===gt&&_t(H)),gt--,e===r&&0===gt&&_t(U),e}function Ht(){var e;return gt++,B.test(t.charAt(ht))?(e=t.charAt(ht),ht++):(e=r,0===gt&&_t(W)),gt--,e===r&&0===gt&&_t(G),e}function Gt(){var e,n,i;for(gt++,e=ht,n=[],i=Pt();i!==r;)n.push(i),i=Pt();return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(V)),e}function Bt(){var e,n,i,s;return gt++,e=ht,45===t.charCodeAt(ht)?(n="-",ht++):(n=r,0===gt&&_t(Q)),n===r&&(n=null),n!==r&&(i=Kt())!==r?(pt=e,e=n=(s=i)?n?-s:s:0):(ht=e,e=r),gt--,e===r&&(n=r,0===gt&&_t(Y)),e}function Wt(){var e,n;return gt++,e=ht,"''"===t.substr(ht,2)?(n="''",ht+=2):(n=r,0===gt&&_t(J)),n!==r&&(pt=e,n="'"),gt--,(e=n)===r&&(n=r,0===gt&&_t(K)),e}function Vt(){var e,n,i,s,o,a;if(e=ht,39===t.charCodeAt(ht)?(n="'",ht++):(n=r,0===gt&&_t(A)),n!==r)if((i=function(){var e,n,i,s,o;return e=ht,n=ht,t.length>ht?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(w)),i!==r?(pt=ht,(s=(s="<"===(o=i)||">"===o||"{"===o||"}"===o||ee()&&"#"===o)?void 0:r)!==r?n=i=[i,s]:(ht=n,n=r)):(ht=n,n=r),e=n!==r?t.substring(e,ht):n}())!==r){for(s=ht,o=[],"''"===t.substr(ht,2)?(a="''",ht+=2):(a=r,0===gt&&_t(J)),a===r&&(z.test(t.charAt(ht))?(a=t.charAt(ht),ht++):(a=r,0===gt&&_t(I)));a!==r;)o.push(a),"''"===t.substr(ht,2)?(a="''",ht+=2):(a=r,0===gt&&_t(J)),a===r&&(z.test(t.charAt(ht))?(a=t.charAt(ht),ht++):(a=r,0===gt&&_t(I)));(s=o!==r?t.substring(s,ht):o)!==r?(39===t.charCodeAt(ht)?(o="'",ht++):(o=r,0===gt&&_t(A)),o===r&&(o=null),o!==r?(pt=e,e=n=i+s.replace("''","'")):(ht=e,e=r)):(ht=e,e=r)}else ht=e,e=r;else ht=e,e=r;return e}function Yt(){var e,n,i,s,o;return e=ht,n=ht,t.length>ht?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(w)),i!==r?(pt=ht,(s=(s=!("<"===(o=i)||"{"===o||ee()&&"#"===o||te.length>1&&"}"===o))?void 0:r)!==r?n=i=[i,s]:(ht=n,n=r)):(ht=n,n=r),n===r&&(10===t.charCodeAt(ht)?(n="\n",ht++):(n=r,0===gt&&_t(tt))),n!==r?t.substring(e,ht):n}function Qt(){var e,n;return gt++,e=ht,(n=Kt())===r&&(n=Jt()),e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(et)),e}function Xt(){var e,n;return gt++,e=ht,(n=Kt())===r&&(n=function(){var e,n,i,s,o;if(gt++,e=ht,n=[],45===t.charCodeAt(ht)?(i="-",ht++):(i=r,0===gt&&_t(Q)),i===r&&(i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r)),i!==r)for(;i!==r;)n.push(i),45===t.charCodeAt(ht)?(i="-",ht++):(i=r,0===gt&&_t(Q)),i===r&&(i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r));else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(lt)),e}()),e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(nt)),e}function Kt(){var e,n,i,s,o;if(gt++,e=ht,48===t.charCodeAt(ht)?(n="0",ht++):(n=r,0===gt&&_t(it)),n!==r&&(pt=e,n=0),(e=n)===r){if(e=ht,n=ht,st.test(t.charAt(ht))?(i=t.charAt(ht),ht++):(i=r,0===gt&&_t(ot)),i!==r){for(s=[],at.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(ct));o!==r;)s.push(o),at.test(t.charAt(ht))?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(ct));s!==r?n=i=[i,s]:(ht=n,n=r)}else ht=n,n=r;n!==r&&(pt=e,n=parseInt(n.join(""),10)),e=n}return gt--,e===r&&(n=r,0===gt&&_t(rt)),e}function Jt(){var e,n,i,s,o;if(gt++,e=ht,n=[],i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r),i!==r)for(;i!==r;)n.push(i),i=ht,s=ht,gt++,(o=Pt())===r&&(o=Ht()),gt--,o===r?s=void 0:(ht=s,s=r),s!==r?(t.length>ht?(o=t.charAt(ht),ht++):(o=r,0===gt&&_t(w)),o!==r?i=s=[s,o]:(ht=i,i=r)):(ht=i,i=r);else n=r;return e=n!==r?t.substring(e,ht):n,gt--,e===r&&(n=r,0===gt&&_t(ut)),e}var te=["root"];function ee(){return"plural"===te[te.length-1]}function ne(){return e&&e.captureLocation?{location:yt()}:{}}var re,ie,se,oe=e&&e.ignoreTag;if((n=s())!==r&&ht===t.length)return n;throw n!==r&&ht<t.length&&_t({type:"end"}),re=mt,ie=vt<t.length?t.charAt(vt):null,se=Et(vt,vt<t.length?vt+1:vt),new dt(dt.buildMessage(re,ie),re,ie,se)},bt=/(^|[^\\])#/g,vt=function(){return(vt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},mt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function gt(t){var e={};return t.replace(mt,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),e}var wt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,yt=/^(@+)?(\+|#+)?$/g;function xt(t){var e={};return t.replace(yt,(function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),e}function kt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function qt(t){return kt(t)||{}}function $t(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":e.style="percent";continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=vt(vt(vt({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return vt(vt({},t),qt(e))}),{}));continue;case"engineering":e=vt(vt(vt({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return vt(vt({},t),qt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue}if(wt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(wt,(function(t,n,r,i,s,o){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:s&&o?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+o.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""})),i.options.length&&(e=vt(vt({},e),xt(i.options[0])))}else if(yt.test(i.stem))e=vt(vt({},e),xt(i.stem));else{var s=kt(i.stem);s&&(e=vt(vt({},e),s))}}return e}function St(t,e){var n=pt(t,e);return e&&!1===e.normalizeHashtagInPlural||function t(e){e.forEach((function(e){(st(e)||it(e))&&Object.keys(e.options).forEach((function(n){for(var r,i=e.options[n],s=-1,o=void 0,a=0;a<i.value.length;a++){var c=i.value[a];if(J(c)&&bt.test(c.value)){s=a,o=c;break}}if(o){var u=o.value.replace(bt,"$1{"+e.value+", number}"),l=pt(u);(r=i.value).splice.apply(r,function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}([s,1],l))}t(i.value)}))}))}(n),n}var Et=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r};function _t(t){return JSON.stringify(t.map((function(t){return t&&"object"==typeof t?(e=t,Object.keys(e).sort().map((function(t){var n;return(n={})[t]=e[t],n}))):t;var e})))}var At,zt=function(t,e){return void 0===e&&(e={}),function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=_t(r),o=s&&e[s];return o||(o=new((n=t).bind.apply(n,Et([void 0],r))),s&&(e[s]=o)),o}},It=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(At||(At={}));var Tt,jt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return It(e,t),e.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},e}(Error),Ot=function(t){function e(e,n,r,i){return t.call(this,'Invalid values for "'+e+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',"INVALID_VALUE",i)||this}return It(e,t),e}(jt),Rt=function(t){function e(e,n,r){return t.call(this,'Value for "'+e+'" must be of type '+n,"INVALID_VALUE",r)||this}return It(e,t),e}(jt),Ft=function(t){function e(e,n){return t.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+n+'"',"MISSING_VALUE",n)||this}return It(e,t),e}(jt);function Ct(t){return"function"==typeof t}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Tt||(Tt={}));var Mt=function(){return(Mt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var Lt=function(){function t(e,n,r,i){var s,o,a=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=a.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&0===e.type&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return function t(e,n,r,i,s,o,a){if(1===e.length&&J(e[0]))return[{type:0,value:e[0].value}];for(var c=[],u=0,l=e;u<l.length;u++){var h=l[u];if(J(h))c.push({type:0,value:h.value});else if(ot(h))"number"==typeof o&&c.push({type:0,value:r.getNumberFormat(n).format(o)});else{var f=h.value;if(!s||!(f in s))throw new Ft(f,a);var d=s[f];if(tt(h))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),c.push({type:"string"==typeof d?0:1,value:d});else if(nt(h)){var p="string"==typeof h.style?i.date[h.style]:ut(h.style)?gt(h.style.pattern):void 0;c.push({type:0,value:r.getDateTimeFormat(n,p).format(d)})}else if(rt(h))p="string"==typeof h.style?i.time[h.style]:ut(h.style)?gt(h.style.pattern):void 0,c.push({type:0,value:r.getDateTimeFormat(n,p).format(d)});else if(et(h))p="string"==typeof h.style?i.number[h.style]:ct(h.style)?$t(h.style.tokens):void 0,c.push({type:0,value:r.getNumberFormat(n,p).format(d)});else{if(at(h)){var b=h.children,v=h.value,m=s[v];if(!Ct(m))throw new Rt(v,"function",a);var g=t(b,n,r,i,s,o),w=m.apply(void 0,g.map((function(t){return t.value})));Array.isArray(w)||(w=[w]),c.push.apply(c,w.map((function(t){return{type:"string"==typeof t?0:1,value:t}})))}if(it(h)){if(!(y=h.options[d]||h.options.other))throw new Ot(h.value,d,Object.keys(h.options),a);c.push.apply(c,t(y.value,n,r,i,s))}else if(st(h)){var y;if(!(y=h.options["="+d])){if(!Intl.PluralRules)throw new jt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",a);var x=r.getPluralRules(n,{type:h.pluralType}).select(d-(h.offset||0));y=h.options[x]||h.options.other}if(!y)throw new Ot(h.value,d,Object.keys(h.options),a);c.push.apply(c,t(y.value,n,r,i,s,d-(h.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&0===n.type&&0===e.type?n.value+=e.value:t.push(e),t}),[])}(c)}(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{normalizeHashtagInPlural:!1,ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,(o=r)?Object.keys(s).reduce((function(t,e){var n,r;return t[e]=(n=s[e],(r=o[e])?Mt(Mt(Mt({},n||{}),r||{}),Object.keys(n).reduce((function(t,e){return t[e]=Mt(Mt({},n[e]),r[e]||{}),t}),{})):n),t}),Mt({},s)):s),this.locales=n,this.formatters=i&&i.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zt(Intl.NumberFormat,t.number),getDateTimeFormat:zt(Intl.DateTimeFormat,t.dateTime),getPluralRules:zt(Intl.PluralRules,t.pluralRules)}}(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!0,configurable:!0}),t.memoizedDefaultLocale=null,t.__parse=St,t.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function Dt(t){var e=new Date(t);return e.setHours(0,0,0,0),e}var Nt=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"];function Zt(t){if(!t||~Nt.indexOf(t))return!0;if("string"==typeof t){var e=/s$/.test(t)&&t.substr(0,t.length-1);if(e&&~Nt.indexOf(e))throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'units' value, did you mean: "+e)}throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'units' value, it must be one of: "+Nt.join('", "'))}function Ut(t){if(!t)return"best fit";if("best fit"===t||"numeric"===t)return t;throw new Error('"'+t+"\" is not a valid IntlRelativeFormat 'style' value, it must be one of: 'best fit' or 'numeric'")}var Pt=function(t,e){void 0===e&&(e={});var n={style:Ut(e.style),units:Zt(e.units)&&e.units},r="best fit"===n.style?"auto":"always",i=new Intl.RelativeTimeFormat(t,{numeric:r});return{format:function(e,i){var s=i&&void 0!==i.now?null===i.now?0:i.now:Date.now();if(void 0===e&&(e=s),!isFinite(s))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var o=function(t,e){t=+t,e=+e;var n,r,i,s,o,a=Math.round(e-t),c=Math.round(a/1e3),u=Math.round(c/60),l=Math.round(u/60),h=(n=t,r=Dt(e),i=Dt(n),s=r.getTime()-6e4*r.getTimezoneOffset(),o=i.getTime()-6e4*i.getTimezoneOffset(),Math.round((s-o)/864e5)),f=Math.round(h/7),d=400*h/146097,p=Math.round(12*d),b=Math.round(d);return{second:c,"second-short":c,"second-narrow":c,minute:u,"minute-short":u,"minute-narrow":u,hour:l,"hour-short":l,"hour-narrow":l,day:h,"day-short":h,"day-narrow":h,week:f,"week-short":f,"week-narrow":f,month:p,"month-short":p,"month-narrow":p,year:b,"year-short":b,"year-narrow":b}}(s,e),a=n.units||function(t){for(var e=Nt.filter((function(t){return t.indexOf("-short")<1})),n=e[0],r=0,i=e;r<i.length&&(n=i[r],!(Math.abs(t[n])<Pt.thresholds[n]));r++);return n}(o),c=o[a],u="-short"===a.substring(a.length-6,a.length)?"narrow":"long",l=a.replace("-short","");return new Intl.RelativeTimeFormat(t,{numeric:r,style:u}).format(c,l)},resolvedOptions:function(){return{locale:i.resolvedOptions().locale,style:n.style,units:n.units}}}};Pt.defaultLocale="en",Pt.thresholds={second:45,"second-short":45,minute:45,"minute-short":45,hour:22,"hour-short":22,day:26,"day-short":26,month:11,"month-short":11};const Ht={format(t,e,n){var r=(n||"en-US").replace("_","-");return new Lt(t,r).format(e)},formatRelative(t,e){var n=(e||"en-US").replace("_","-");return new Pt(n).format(t)}},Gt=class{constructor(e){t(this,e)}getName(){const t=this.referral,e=this.referral;return t.referredUser?t.referredUser.firstName||this.unknownuser:e.referrerUser&&e.referrerUser.firstName||this.unknownuser}getIcon(){return"converted"!==this.referraltype&&"referrer"!==this.referraltype||this.rewardIsExpired()||this.rewardIsCancelled()?"icon-attention":"icon-ok-circled"}getContent(t){return this.rewardIsExpired()&&this.referralvariables.expiredcontent?Ht.format(this.referralvariables.expiredcontent,t,this.locale):this.rewardIsCancelled()&&this.referralvariables.cancelledcontent?Ht.format(this.referralvariables.cancelledcontent,t,this.locale):this.referraltype?Ht.format(this.referralvariables[this.referraltype+"content"],t,this.locale):""}rewardIsExpired(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("EXPIRED")>-1}rewardIsCancelled(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("CANCELLED")>-1}rewardIsRedeemed(){const{rewards:t}=this.referral;return 1==t.length&&t[0].statuses&&t[0].statuses.indexOf("REDEEMED")>-1}getValue(){const{rewards:t}=this.referral;return 0==t.length?"referrer"===this.referraltype||"converted"===this.referraltype?this.referralvariables.referrervalue:this.referralvariables.pendingvalue:t.length>0&&this.referralvariables.usefirstreward&&t[t.length-1].prettyValue||t[0].prettyValue}getValueContent(t){const{rewards:e}=this.referral;if(!e.length)return"";if(1==e.length){if(this.rewardIsExpired())return Ht.format(this.referralvariables.expiredvalue,t,this.locale);if(this.rewardIsCancelled())return Ht.format(this.referralvariables.cancelledvalue,t,this.locale);if(this.rewardIsRedeemed())return Ht.format(this.referralvariables.redeemedvalue||"Redeemed",t,this.locale);if(this.referralvariables.showexpiry&&e[0].dateExpires){const n=Ht.formatRelative(e[0].dateExpires,this.locale);return Ht.format(this.referralvariables.expiresvalue||"Expires "+n,Object.assign(Object.assign({},t),{expiryDate:n}),this.locale)}return""}return Ht.format(this.referralvariables.valuecontent,t,this.locale)}getNote(){const{rewards:t}=this.referral;return t[0]&&t[0].meta&&t[0].meta.message||""}render(){const{dateReferralStarted:t,rewards:n}=this.referral,r={date:Ht.formatRelative(t,this.locale),extrarewards:n.length-1},i=this.getName(),s=this.getIcon(),o=this.getContent(r),a=this.getValue(),c=this.getValueContent(r),u=this.getNote();return e("div",{class:"squatch-referrals-row"},e("div",null,e("div",{class:"squatch-referrals-heading"},i),e("div",{class:"squatch-referrals-description"},o),this.referralvariables.shownotes&&u&&e("div",{class:"squatch-referrals-description squatch-customer-note",title:u},u)),e("i",{class:`icon squatch-referrals-icon ${s} ${this.rewardIsExpired()&&"expired"} ${this.rewardIsCancelled()&&"cancelled"}`}),e("div",{class:"sqh-column-two"},e("div",{class:`squatch-referrals-value ${this.rewardIsCancelled()&&"cancelled"} ${n.length>0?this.rewardIsExpired()?"expired":"":"referrer"===this.referraltype||"converted"===this.referraltype?"referrer":"pending"}`},a),e("div",{class:`squatch-value-contents ${this.rewardIsExpired()&&"expired"} ${this.rewardIsCancelled()&&"cancelled"}`},c)))}};Gt.style="sqh-referral-component:nth-child(3) .squatch-referrals-row{border-bottom:none}sqh-referral-component .squatch-referrals-row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:80px;border-bottom:1px solid #ececec;max-width:500px;margin:0 auto;padding:0 20px;line-height:1.6}sqh-referral-component .squatch-referrals-row>div:first-of-type{-ms-flex:1;flex:1}sqh-referral-component .squatch-referrals-row .icon{float:left;font-size:32px}sqh-referral-component .squatch-referrals-row .sqh-column-two{padding:10px 0}sqh-referral-component .squatch-referrals-value{width:175px;font-size:16px;float:left;margin:10px 0}sqh-referral-component .squatch-value-contents{font-size:13px;line-height:0px;padding-bottom:25px}sqh-referral-component .squatch-referrals-heading{font-size:16px}sqh-referral-component .squatch-referrals-description{font-size:13px}sqh-referral-component .squatch-customer-note{color:darkslategray;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (max-width: 499px){sqh-referral-component .squatch-referrals-description{display:none}sqh-referral-component .squatch-referrals-row{padding:0}sqh-referral-component .squatch-referrals-row>div:first-of-type{width:100px;overflow:hidden}}";const Bt=class{constructor(e){t(this,e),this.offset=0,this.loading=!0}componentWillLoad(){if(!this.ishidden)return this.getReferrals(this.showreferrer).then(t=>{this.referrals=t.referrals.data,this.referredBy=t.referredByReferral,this.referralsCount=t.referrals.totalCount,this.loading=!1,this.locale=t.locale}).catch(t=>{this.onError(t)})}getReferrals(t,e=0){return a.graphql.getReferrals(t,e)}paginate(t,e){if(this.loading)return null;let{referralsCount:n}=this;if(this.showreferrer&&this.referredBy&&n++,t>=n||t<0)return null;this.loading=!0;const{target:r}=e;r.innerText="...",this.getReferrals(this.showreferrer,t).then(e=>{r.innerText=t>this.offset?this.paginatemore:this.paginateless,this.referrals=e.referrals.data,this.offset=t,this.loading=!1})}onError(t){console.error(t),this.loading=!1}render(){let t,n;const r={usefirstreward:this.usefirstreward,referrercontent:this.referrercontent,convertedcontent:this.convertedcontent,pendingcontent:this.pendingcontent,pendingvalue:this.pendingvalue,referrervalue:this.referrervalue,valuecontent:this.valuecontent,expiredcontent:this.expiredcontent,expiredvalue:this.expiredvalue,expiresvalue:this.expiresvalue,redeemedvalue:this.redeemedvalue,showexpiry:this.showexpiry,shownotes:this.shownotes,cancelledvalue:this.cancelledvalue,cancelledcontent:this.cancelledcontent};this.referrals&&(n=this.referrals.map(t=>{const n=t.rewards.length>0||t.dateConverted?"converted":"pending";return e("sqh-referral-component",{id:p(),referral:t,referralvariables:r,referraltype:n,unknownuser:this.unknownuser,locale:this.internationalization?this.locale:"en-US"})})),this.referrals.length<3&&this.referredBy&&this.showreferrer&&(t=e("sqh-referral-component",{id:p(),referral:this.referredBy,referralvariables:r,referraltype:"referrer",unknownuser:this.unknownuser,locale:this.internationalization?this.locale:"en-US"}));const i=H`
65
- .squatch-referrals-icon.icon-ok-circled {
66
- color: ${this.rewardcolor};
67
- }
68
- .squatch-referrals-icon.icon-attention {
69
- color: ${this.pendingcolor};
70
- }
71
- .squatch-referrals-value {
72
- color: ${this.rewardcolor};
73
- }
74
- .squatch-referrals-value.pending {
75
- color: ${this.pendingcolor};
76
- }
77
- .squatch-referrals-value.referrer {
78
- color: ${this.rewardcolor};
79
- }
80
- .squatch-referrals-value.expired {
81
- color: ${this.expiredcolor};
82
- }
83
- .squatch-value-contents.expired {
84
- color: ${this.expiredcolor};
85
- }
86
- .squatch-referrals-icon.icon-attention.expired {
87
- color: ${this.expiredcolor};
88
- }
89
- .squatch-referrals-value.cancelled {
90
- color: ${this.cancelledcolor};
91
- }
92
- .squatch-value-contents.cancelled {
93
- color: ${this.cancelledcolor};
94
- }
95
- .squatch-referrals-icon.icon-attention.cancelled {
96
- color: ${this.cancelledcolor};
97
- }
98
- .squatch-referrals-heading {
99
- color: ${this.referralnamecolor};
100
- }
101
- .squatch-referrals-description,
102
- .squatch-referrals-value-content {
103
- color: ${this.referraltextcolor};
104
- }
105
- .squatch-customer-note {
106
- color: ${this.customernotecolor||"darkslategray"};
107
- }
108
- .squatch-referrals-scroll-action {
109
- font-family: ${"inherit"};
110
- }
111
- `;return!this.ishidden&&(this.showreferrer&&this.referredBy?this.referralsCount+1:this.referralsCount)>0?e("div",{class:"squatch-referrals "+i},e("div",{class:"squatch-referrals-scroll-container"},n,t),e("div",{class:"squatch-referrals-scroll-action-container"},e("button",{class:`\n squatch-referrals-scroll-action previous ${this.loading||0===this.offset?"disabled":""}\n `,onClick:t=>this.paginate(this.offset-3,t)},this.paginateless),e("button",{class:`\n squatch-referrals-scroll-action view-more ${this.loading?"disabled":this.showreferrer&&this.referredBy?this.offset>=this.referralsCount-2?"disabled":"":this.offset>=this.referralsCount-3?"disabled":""}\n `,"view-more":!0,onClick:t=>this.paginate(this.offset+3,t)},this.paginatemore))):e("div",{class:"squatch-referrals-scroll-action-container"},e("button",{disabled:!0,class:"squatch-no-referrals-yet"},this.noreferralsyet))}};Bt.style="sqh-referral-list{display:block}sqh-referral-list .squatch-no-referrals-yet{background:white;border-color:#adadad;border:1px solid;border-color:#cccccc;border-radius:4px;font-size:14px;line-height:20px;margin:5px;padding:6px 12px;width:165px}sqh-referral-list .squatch-referrals-scroll-container{min-height:255px}sqh-referral-list .squatch-referrals-scroll-action-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:5px 0}sqh-referral-list .squatch-referrals-scroll-action-container .squatch-referrals-scroll-action{background:white;border:1px solid;border-color:#cccccc;border-radius:4px;cursor:pointer;font-size:14px;line-height:20px;margin:5px;padding:6px 12px;width:120px}sqh-referral-list .squatch-referrals-scroll-action-container .squatch-referrals-scroll-action.disabled{cursor:default;opacity:0.5}sqh-referral-list .squatch-referrals-scroll-action-container .squatch-referrals-scroll-action.disabled:hover{background:white;border-color:#cccccc}sqh-referral-list .squatch-referrals-scroll-action-container .squatch-referrals-scroll-action.disabled:active{border-style:solid}sqh-referral-list .squatch-referrals-scroll-action-container .squatch-referrals-scroll-action:hover{background:#e6e6e6;border-color:#adadad}sqh-referral-list .squatch-referrals-scroll-action-container .squatch-referrals-scroll-action:active,sqh-referral-list .squatch-referrals-scroll-action-container .squatch-referrals-scroll-action:focus{outline:none}";const Wt=class{constructor(e){t(this,e)}clickHandler(t){"demo"!==window.widgetIdent.env?null!==t.target.closest("a")&&"email-share"!==this.buttonClassName&&(t.preventDefault(),window.open(this.url,"_blank","status=0,width=680,height=580")):t.preventDefault()}componentDidLoad(){this.button.addEventListener("click",this.clickHandler.bind(this),!1)}render(){const t=/iP(ad|hone|od).+Version\/[\d\.]+.*Safari/i.test(window.navigator.userAgent)||window.navigator.userAgent.match("CriOS")?"_parent":"_blank",n="icon icon-"+this.icon,r=H`
112
- background-color: ${this.backgroundcolor};
113
- border: 1px solid ${this.backgroundcolor};
114
- color: ${this.textcolor};
115
-
116
- &:hover {
117
- background: ${l(this.backgroundcolor,10)};
118
- border-color: ${l(this.backgroundcolor,12)};
119
- color: ${this.textcolor};
120
- }
121
-
122
- &:focus {
123
- color: ${this.textcolor};
124
- }
125
- .icon-${this.icon} {
126
- left: ${this.iconhorizontal}px;
127
- top: ${this.iconvertical}px;
128
- font-size: ${this.iconsize}em;
129
- }
130
- `,i=["squatch-share-btn",this.buttonClassName,this.displayrule,r].join(" ");return e("a",{class:i,href:this.url,target:t},e("i",{class:n}),e("span",{class:"share-btn-text"},this.text))}get button(){return r(this)}};Wt.style='sqh-share-button{display:inline-block}sqh-share-button .squatch-share-btn{display:block;text-align:center;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.428571429;border-radius:4px;width:140px;margin:5px}sqh-share-button .squatch-share-btn .share-btn-text{text-align:center;padding-left:30px}sqh-share-button .squatch-share-btn:focus{outline:0}sqh-share-button .squatch-share-btn.disabled,sqh-share-button .squatch-share-btn[disabled],fieldset[disabled] sqh-share-button .squatch-share-btn{cursor:not-allowed;pointer-events:none;opacity:0.65;-webkit-box-shadow:none;box-shadow:none}sqh-share-button a{position:relative;text-decoration:none}sqh-share-button a .icon{position:absolute;left:10px;top:6px;width:16px}sqh-share-button a:before{bottom:-1px;background:rgba(255, 255, 255, 0.18);content:"";left:-1px;position:absolute;top:-1px;width:40px}@media (max-width: 499px){sqh-share-button{display:block}}@media (max-width: 499px){sqh-share-button .squatch-share-btn{margin:5px 0px;width:auto}}';const Vt=class{constructor(e){t(this,e),this.emailicon="mail",this.emailclassName="email-share",this.facebookicon="facebook",this.facebookiconhorizontal=9,this.facebookiconsize=1.2,this.twittericon="twitter",this.twittericonhorizontal=9,this.twittericonsize=1.2,this.smsicon="chat",this.whatsapptextcolor="#fff",this.whatsappicon="whatsapp",this.whatsappiconhorizontal=7,this.whatsappiconvertical=2,this.whatsappiconsize=1.4,this.linkedinicon="linkedin",this.linkediniconsize=1.2,this.pinteresticon="pinterest",this.pinteresticonhorizontal=9,this.pinteresticonvertical=4,this.pinteresticonsize=1.2,this.messengericon="messenger",this.messengericonhorizontal=7,this.messengericonvertical=3,this.messengericonsize=1.4,this.lineicon="line",this.lineiconhorizontal=-2,this.lineiconvertical=-5,this.lineiconsize=2.2}componentWillLoad(){if(!this.ishidden)return this.getMessageLinks(["EMAIL","FACEBOOK","TWITTER","SMS","WHATSAPP","LINKEDIN","PINTEREST","FBMESSENGER","LINEMESSENGER"])}getMessageLinks(t){return a.graphql.getMessageLinks(t).then(t=>{this.emailurl=t.EMAIL,this.facebookurl=t.FACEBOOK,this.twitterurl=t.TWITTER,this.smsurl=t.SMS,this.whatsappurl=t.WHATSAPP,this.linkedinurl=t.LINKEDIN,this.pinteresturl=t.PINTEREST,this.messengerurl=t.FBMESSENGER,this.lineurl=t.LINEMESSENGER}).catch(t=>{this.onError(t)})}onError(t){console.log("Error loading via GraphQL.",t)}render(){const t=e("sqh-share-button",{displayrule:this.emaildisplayrule,text:this.emailtext,backgroundcolor:this.emailbackgroundcolor,textcolor:this.emailtextcolor,icon:this.emailicon,class:this.emailclassName,iconhorizontal:this.emailiconhorizontal,iconvertical:this.emailiconvertical,iconsize:this.emailiconsize,url:this.emailurl}),n=e("sqh-share-button",{displayrule:this.facebookdisplayrule,text:this.facebooktext,backgroundcolor:this.facebookbackgroundcolor,textcolor:this.facebooktextcolor,icon:this.facebookicon,class:this.facebookclassName,iconhorizontal:this.facebookiconhorizontal,iconvertical:this.facebookiconvertical,iconsize:this.facebookiconsize,url:this.facebookurl}),r=e("sqh-share-button",{displayrule:this.twitterdisplayrule,text:this.twittertext,backgroundcolor:this.twitterbackgroundcolor,textcolor:this.twittertextcolor,icon:this.twittericon,class:this.twitterclassName,iconhorizontal:this.twittericonhorizontal,iconvertical:this.twittericonvertical,iconsize:this.twittericonsize,url:this.twitterurl}),i=e("sqh-share-button",{displayrule:this.smsdisplayrule,text:this.smstext,backgroundcolor:this.smsbackgroundcolor,textcolor:this.smstextcolor,icon:this.smsicon,class:this.smsclassName,iconhorizontal:this.smsiconhorizontal,iconvertical:this.smsiconvertical,iconsize:this.smsiconsize,url:this.smsurl}),s=e("sqh-share-button",{displayrule:this.whatsappdisplayrule,text:this.whatsapptext,backgroundcolor:this.whatsappbackgroundcolor,textcolor:this.whatsapptextcolor,icon:this.whatsappicon,class:this.whatsappclassName,iconhorizontal:this.whatsappiconhorizontal,iconvertical:this.whatsappiconvertical,iconsize:this.whatsappiconsize,url:this.whatsappurl}),o=e("sqh-share-button",{displayrule:this.linkedindisplayrule,text:this.linkedintext,backgroundcolor:this.linkedinbackgroundcolor,textcolor:this.linkedintextcolor,icon:this.linkedinicon,class:this.linkedinclassName,iconhorizontal:this.linkediniconhorizontal,iconvertical:this.linkediniconvertical,iconsize:this.linkediniconsize,url:this.linkedinurl}),a=e("sqh-share-button",{displayrule:this.pinterestdisplayrule,text:this.pinteresttext,backgroundcolor:this.pinterestbackgroundcolor,textcolor:this.pinteresttextcolor,icon:this.pinteresticon,class:this.pinterestclassName,iconhorizontal:this.pinteresticonhorizontal,iconvertical:this.pinteresticonvertical,iconsize:this.pinteresticonsize,url:this.pinteresturl}),c=e("sqh-share-button",{displayrule:this.messengerdisplayrule,text:this.messengertext,backgroundcolor:this.messengerbackgroundcolor,textcolor:this.messengertextcolor,icon:this.messengericon,class:this.messengerclassName,iconhorizontal:this.messengericonhorizontal,iconvertical:this.messengericonvertical,iconsize:this.messengericonsize,url:this.messengerurl}),u=e("sqh-share-button",{displayrule:this.linedisplayrule,text:this.linetext,backgroundcolor:this.linebackgroundcolor,textcolor:this.linetextcolor,icon:this.lineicon,class:this.lineclassName,iconhorizontal:this.lineiconhorizontal,iconvertical:this.lineiconvertical,iconsize:this.lineiconsize,url:this.lineurl});return!this.ishidden&&e("div",null,t,n,r,i,s,o,a,c,u)}};Vt.style="sqh-share-button-container{text-align:center;display:block;max-width:100%;padding-bottom:24px;border-bottom:1px solid lightgray}sqh-share-button-container .squatch-share-btn.hidden{display:none}sqh-share-button-container .squatch-share-btn.mobile-only{display:none}@media (max-width: 499px){sqh-share-button-container .squatch-share-btn.mobile-only{display:block}}@media (max-width: 499px){sqh-share-button-container .squatch-share-btn.desktop-only{display:none}}";const Yt=class{constructor(e){t(this,e),this.statTypeUpdated=n(this,"statTypeUpdated",7),this.statAdded=n(this,"statAdded",7)}componentWillLoad(){this.statAddedHandler(this.elem)}stattypeHandler(t,e){t!==e&&this.statTypeUpdatedHandler(this.elem)}statAddedHandler(t){this.statAdded.emit(t)}statTypeUpdatedHandler(t){this.statTypeUpdated.emit(t)}render(){const t=H`
131
- color: ${this.statcolor};
132
- `;return!this.ishidden&&e("div",{class:t},e("div",{class:"stat-value"},this.statvalue),e("div",{class:"stat-description"},this.statdescription))}get elem(){return r(this)}static get watchers(){return{stattype:["stattypeHandler"]}}};function Qt(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Xt(t){return t&&t.sensitive?"":"i"}function Kt(t,e,n){return function(t,e,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,s=n.start,o=void 0===s||s,a=n.end,c=void 0===a||a,u=n.encode,l=void 0===u?function(t){return t}:u,h="["+Qt(n.endsWith||"")+"]|$",f="["+Qt(n.delimiter||"/#?")+"]",d=o?"^":"",p=0,b=t;p<b.length;p++){var v=b[p];if("string"==typeof v)d+=Qt(l(v));else{var m=Qt(l(v.prefix)),g=Qt(l(v.suffix));v.pattern?(e&&e.push(v),d+=m||g?"+"===v.modifier||"*"===v.modifier?"(?:"+m+"((?:"+v.pattern+")(?:"+g+m+"(?:"+v.pattern+"))*)"+g+")"+("*"===v.modifier?"?":""):"(?:"+m+"("+v.pattern+")"+g+")"+v.modifier:"("+v.pattern+")"+v.modifier):d+="(?:"+m+g+")"+v.modifier}}if(c)i||(d+=f+"?"),d+=n.endsWith?"(?="+h+")":"$";else{var w=t[t.length-1],y="string"==typeof w?f.indexOf(w[w.length-1])>-1:void 0===w;i||(d+="(?:"+f+"(?="+h+"))?"),y||(d+="(?="+f+"|"+h+")")}return new RegExp(d,Xt(n))}(function(t,e){void 0===e&&(e={});for(var n=function(t){for(var e=[],n=0;n<t.length;){var r=t[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:n,value:t[n++]});else{var i=1,s="";if("?"===t[a=n+1])throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<t.length;)if("\\"!==t[a]){if(")"===t[a]){if(0==--i){a++;break}}else if("("===t[a]&&(i++,"?"!==t[a+1]))throw new TypeError("Capturing groups are not allowed at "+a);s+=t[a++]}else s+=t[a++]+t[a++];if(i)throw new TypeError("Unbalanced pattern at "+n);if(!s)throw new TypeError("Missing pattern at "+n);e.push({type:"PATTERN",index:n,value:s}),n=a}else{for(var o="",a=n+1;a<t.length;){var c=t.charCodeAt(a);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;o+=t[a++]}if(!o)throw new TypeError("Missing parameter name at "+n);e.push({type:"NAME",index:n,value:o}),n=a}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),r=e.prefixes,i=void 0===r?"./":r,s="[^"+Qt(e.delimiter||"/#?")+"]+?",o=[],a=0,c=0,u="",l=function(t){if(c<n.length&&n[c].type===t)return n[c++].value},h=function(t){var e=l(t);if(void 0!==e)return e;var r=n[c];throw new TypeError("Unexpected "+r.type+" at "+r.index+", expected "+t)},f=function(){for(var t,e="";t=l("CHAR")||l("ESCAPED_CHAR");)e+=t;return e};c<n.length;){var d=l("CHAR"),p=l("NAME"),b=l("PATTERN");if(p||b)-1===i.indexOf(m=d||"")&&(u+=m,m=""),u&&(o.push(u),u=""),o.push({name:p||a++,prefix:m,suffix:"",pattern:b||s,modifier:l("MODIFIER")||""});else{var v=d||l("ESCAPED_CHAR");if(v)u+=v;else if(u&&(o.push(u),u=""),l("OPEN")){var m=f(),g=l("NAME")||"",w=l("PATTERN")||"",y=f();h("CLOSE"),o.push({name:g||(w?a++:""),pattern:g&&!w?s:w,prefix:m,suffix:y,modifier:l("MODIFIER")||""})}else h("END")}}return o}(t,n),e,n)}function Jt(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return t}(t,e):Array.isArray(t)?function(t,e,n){var r=t.map((function(t){return Jt(t,e,n).source}));return new RegExp("(?:"+r.join("|")+")",Xt(n))}(t,e,n):Kt(t,e,n)}Yt.style="sqh-stat-component{text-align:center;width:140px;float:left}sqh-stat-component>div{padding:10px}sqh-stat-component .stat-value{white-space:nowrap;font-size:30px;line-height:20px;margin-top:20px;margin-bottom:8px;font-weight:300}sqh-stat-component .stat-description{text-transform:uppercase;font-size:12px}@media (max-width: 499px){sqh-stat-component{width:100%;text-align:left;background:#f2f2f2;border:1px solid #ddd}sqh-stat-component:first-child{border-radius:4px 4px 0 0}sqh-stat-component:last-child{border-radius:0 0 4px 4px}}@media (max-width: 499px){sqh-stat-component .stat-value{font-size:22px;float:left;width:60px;text-align:center;margin:0 10px 0 0}}@media (max-width: 499px){sqh-stat-component .stat-description{line-height:20px;padding-left:100px;overflow-wrap:break-word}}";const te=class{constructor(e){t(this,e),this.ishidden=!1,this.statPaths=["/rewardBalance/:type/:unit/:valuetype?/:isGlobal?","/:statName"],this.statPathRegexp=this.statPaths.map(t=>{const e=[];return{regexp:Jt(t,e),keys:e}}),this.loading=!0}componentWillLoad(){if(!this.ishidden)return a.graphql.getStats().then(t=>{this.stats={referralsCount:t.referralsCount.totalCount,referralsMonth:t.referralsMonth.totalCount,referralsWeek:t.referralsWeek.totalCount,rewardsCount:t.rewardsCount.totalCount,rewardsMonth:t.rewardsMonth.totalCount,rewardsWeek:t.rewardsWeek.totalCount,rewardBalance:t.rewardBalances,rewardBalanceGlobal:t.rewardBalancesGlobal},this.loading=!1}).then(()=>{Array.from(this.container.querySelectorAll("[stattype]")).map(t=>{this.setStatValue(t)})}).catch(t=>{this.onError(t)})}statTypeUpdatedHandler(t){this.setStatValue(t.detail)}statAddedHandler(t){this.stats&&this.setStatValue(t.detail)}setStatValue(t){const e=t.getAttribute("stattype"),n=this.getStatFromPath(e);return t.setAttribute("statvalue",""+n),t}getStatFromPath(t){const e=this.statPathRegexp.find(e=>e.regexp.test(t));if(!e)return 0;const{keys:n,regexp:r}=e,i=r.exec(t),s={};return n.forEach((t,e)=>s[t.name]=i[e+1]),this.getStatValue(s)}getStatValue(t){return t.statName?this.stats[t.statName]||0:this.getRewardBalance(t)}getRewardBalance(t){const{type:e,unit:n,valuetype:r,isGlobal:i}=t,s=n.replace(/_/,"/"),o=this.stats[i?"rewardBalanceGlobal":"rewardBalance"].find(t=>t.type===e&&t.unit===s);return o?r?o[r]:o.value:0}onError(t){console.log("Error loading via GraphQL.",t),this.loading=!1}render(){const t=H`
133
- display: ${this.ishidden?"none":"inherit"};
134
- padding-top: ${this.paddingtop}px;
135
- padding-bottom: ${this.paddingbottom}px;
136
- `;return e("div",{class:t},e("slot",null))}get container(){return r(this)}};te.style="sqh-stats-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}@media (max-width: 499px){sqh-stats-container{-ms-flex-direction:column;flex-direction:column}sqh-stats-container div{-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}}";var ee=i((function(t){t.exports=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return e(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)}var r=function(t,e){return function(t){t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(e){t.exports.defaults=e}}}(e={exports:{}}),e.exports}(),i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u=function(t){return c[t]},l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(t){return t.replace(l,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var f=/(^|[^\[])\^/g,d=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,b={},v=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(t,e,n){var r=t.length;if(0===r)return"";for(var i=0;i<r;){var s=t.charAt(r-i-1);if(s!==e||n){if(s===e||!n)break;i++}else i++}return t.substr(0,r-i)}var y=function(t,e){if(e){if(i.test(t))return t.replace(s,u)}else if(o.test(t))return t.replace(a,u);return t},x=h,k=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},q=r.defaults,$=w,S=function(t,e){var n=t.replace(/\|/g,(function(t,e,n){for(var r=!1,i=e;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},E=y,_=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,i=0;i<n;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return-1};function A(t,e,n){var r=e.href,i=e.title?E(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:s}:{type:"image",raw:n,href:r,title:i,text:E(s)}}var z=function(){function t(t){this.options=t||q}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var n=this.rules.block.code.exec(t);if(n){var r=e[e.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:$(i,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],r=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var r=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=r.length?t.slice(r.length):t})).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:r}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=S(n.cells[r],n.header.length);return n}}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){for(var n,r,i,s,o,a,c,u=e[0],l=e[2],h=l.length>1,f=")"===l[l.length-1],d={type:"list",raw:u,ordered:h,start:h?+l.slice(0,-1):"",loose:!1,items:[]},p=e[0].match(this.rules.block.item),b=!1,v=p.length,m=0;m<v;m++)u=n=p[m],r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) */,"")).indexOf("\n ")&&(r-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+r+"}","gm"),"")),m!==v-1&&(i=this.rules.block.bullet.exec(p[m+1])[0],(h?1===i.length||!f&&")"===i[i.length-1]:i.length>1||this.options.smartLists&&i!==l)&&(s=p.slice(m+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-s.length),m=v-1)),o=b||/\n\n(?!\s*$)/.test(n),m!==v-1&&(b="\n"===n.charAt(n.length-1),o||(o=b)),o&&(d.loose=!0),c=void 0,(a=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),d.items.push({type:"list_item",raw:u,task:a,checked:c,loose:o,text:n});return d}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):E(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=S(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},e.text=function(t,e){var n=this.rules.block.text.exec(t);if(n){var r=e[e.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:E(e[1])}},e.tag=function(t,e,n){var r=this.rules.inline.tag.exec(t);if(r)return!e&&/^<a /i.test(r[0])?e=!0:e&&/^<\/a>/i.test(r[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):E(r[0]):r[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=_(e[2],"()");if(n>-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,r).trim(),e[3]=""}var i=e[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o?(i=o[1],s=o[3]):s=""}else s=e[3]?e[3].slice(1,-1):"";return A(e,{href:(i=i.trim().replace(/^<([\s\S]*)>$/,"$1"))?i.replace(this.rules.inline._escapes,"$1"):i,title:s?s.replace(this.rules.inline._escapes,"$1"):s},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return A(n,r,n[0])}},e.strong=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.strong.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="**"===r[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.strong.middle.exec(e.slice(0,r.index+3)))return{type:"strong",raw:t.slice(0,i[0].length),text:t.slice(2,i[0].length-2)}}},e.em=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.em.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="*"===r[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.em.middle.exec(e.slice(0,r.index+2)))return{type:"em",raw:t.slice(0,i[0].length),text:t.slice(1,i[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=n.startsWith(" ")&&n.endsWith(" ");return r&&i&&(n=n.substring(1,n.length-1)),n=E(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[1]}},e.autolink=function(t,e){var n,r,i=this.rules.inline.autolink.exec(t);if(i)return r="@"===i[2]?"mailto:"+(n=E(this.options.mangle?e(i[1]):i[1])):n=E(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,i;if("@"===n[2])i="mailto:"+(r=E(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);r=E(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},e.inlineText=function(t,e,n){var r,i=this.rules.inline.text.exec(t);if(i)return r=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):E(i[0]):i[0]:E(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},t}(),I={exec:function(){}},T=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(f,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},j=k,O={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};O.def=T(O.def).replace("label",O._label).replace("title",O._title).getRegex(),O.bullet=/(?:[*+-]|\d{1,9}[.)])/,O.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,O.item=T(O.item,"gm").replace(/bull/g,O.bullet).getRegex(),O.list=T(O.list).replace(/bull/g,O.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+O.def.source+")").getRegex(),O._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",O._comment=/<!--(?!-?>)[\s\S]*?-->/,O.html=T(O.html,"i").replace("comment",O._comment).replace("tag",O._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O.paragraph=T(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.blockquote=T(O.blockquote).replace("paragraph",O.paragraph).getRegex(),O.normal=j({},O),O.gfm=j({},O.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),O.gfm.nptable=T(O.gfm.nptable).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.gfm.table=T(O.gfm.table).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",O._tag).getRegex(),O.pedantic=j({},O.normal,{html:T("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",O._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:I,paragraph:T(O.normal._paragraph).replace("hr",O.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",O.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};R.punctuation=T(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",R._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",R.em.start=T(R.em.start).replace(/punctuation/g,R._punctuation).getRegex(),R.em.middle=T(R.em.middle).replace(/punctuation/g,R._punctuation).replace(/overlapSkip/g,R._overlapSkip).getRegex(),R.em.endAst=T(R.em.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.em.endUnd=T(R.em.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.start=T(R.strong.start).replace(/punctuation/g,R._punctuation).getRegex(),R.strong.middle=T(R.strong.middle).replace(/punctuation/g,R._punctuation).replace(/blockSkip/g,R._blockSkip).getRegex(),R.strong.endAst=T(R.strong.endAst,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.strong.endUnd=T(R.strong.endUnd,"g").replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=T(R._blockSkip,"g").getRegex(),R.overlapSkip=T(R._overlapSkip,"g").getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=T(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=T(R.tag).replace("comment",O._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=T(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=T(R.reflink).replace("label",R._label).getRegex(),R.reflinkSearch=T(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=j({},R),R.pedantic=j({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:T(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=j({},R.normal,{escape:T(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),R.gfm.url=T(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=j({},R.gfm,{br:T(R.br).replace("{2,}","*").getRegex(),text:T(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var F={block:O,inline:R},C=r.defaults,M=F.block,L=F.inline;function D(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function N(t){var e,n,r="",i=t.length;for(e=0;e<i;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Z=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||C,this.options.tokenizer=this.options.tokenizer||new z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:M.normal,inline:L.normal};this.options.pedantic?(e.block=M.pedantic,e.inline=L.pedantic):this.options.gfm&&(e.block=M.gfm,e.inline=this.options.breaks?L.breaks:L.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)};var n,r,i=e.prototype;return i.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(t,e,n){var r,i,s,o;for(void 0===e&&(e=[]),void 0===n&&(n=!0),t=t.replace(/^ +$/gm,"");t;)if(r=this.tokenizer.space(t))t=t.substring(r.raw.length),r.type&&e.push(r);else if(r=this.tokenizer.code(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(r=this.tokenizer.fences(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.heading(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.nptable(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.hr(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.blockquote(t))t=t.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),e.push(r);else if(r=this.tokenizer.list(t)){for(t=t.substring(r.raw.length),s=r.items.length,i=0;i<s;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);e.push(r)}else if(r=this.tokenizer.html(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.def(t)))t=t.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.lheading(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.paragraph(t)))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.text(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(t){var a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return e},i.inline=function(t){var e,n,r,i,s,o,a=t.length;for(e=0;e<a;e++)switch((o=t[e]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},i=o.header.length,n=0;n<i;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(i=o.cells.length,n=0;n<i;n++)for(s=o.cells[n],o.tokens.cells[n]=[],r=0;r<s.length;r++)o.tokens.cells[n][r]=[],this.inlineTokens(s[r],o.tokens.cells[n][r]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(i=o.items.length,n=0;n<i;n++)this.inline(o.items[n].tokens)}return t},i.inlineTokens=function(t,e,n,r,i){var s;void 0===e&&(e=[]),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i="");var o,a=t;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(s=this.tokenizer.escape(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.tag(t,n,r))t=t.substring(s.raw.length),n=s.inLink,r=s.inRawBlock,e.push(s);else if(s=this.tokenizer.link(t))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,r)),e.push(s);else if(s=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,r)),e.push(s);else if(s=this.tokenizer.strong(t,a,i))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.em(t,a,i))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.codespan(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.br(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.del(t))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],n,r),e.push(s);else if(s=this.tokenizer.autolink(t,N))t=t.substring(s.raw.length),e.push(s);else if(n||!(s=this.tokenizer.url(t,N))){if(s=this.tokenizer.inlineText(t,r,D))t=t.substring(s.raw.length),i=s.raw.slice(-1),e.push(s);else if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else t=t.substring(s.raw.length),e.push(s);return e},n=e,r=[{key:"rules",get:function(){return{block:M,inline:L}}}],null&&t(n.prototype,null),r&&t(n,r),e}(),U=r.defaults,P=function(t,e,n){if(t){var r;try{r=decodeURIComponent(h(n)).replace(d,"").toLowerCase()}catch(t){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!p.test(n)&&(n=function(t,e){b[" "+t]||(b[" "+t]=v.test(t)?t+"/":w(t,"/",!0));var n=-1===(t=b[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(m,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(g,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},H=y,G=function(){function t(t){this.options=t||U}var e=t.prototype;return e.code=function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(t,r);null!=i&&i!==t&&(n=!0,t=i)}return r?'<pre><code class="'+this.options.langPrefix+H(r,!0)+'">'+(n?t:H(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:H(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,n){if(null===(t=P(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+H(t)+'"';return e&&(r+=' title="'+e+'"'),r+">"+n+"</a>"},e.image=function(t,e,n){if(null===(t=P(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+(this.options.xhtml?"/>":">")},e.text=function(t){return t},t}(),B=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),W=function(){function t(){this.seen={}}return t.prototype.slug=function(t){var e=t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(e)){var n=e;do{this.seen[n]++,e=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(e))}return this.seen[e]=0,e},t}(),V=r.defaults,Y=x,Q=function(){function t(t){this.options=t||V,this.options.renderer=this.options.renderer||new G,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new B,this.slugger=new W}t.parse=function(e,n){return new t(n).parse(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,r,i,s,o,a,c,u,l,h,f,d,p,b,v,m,g,w,y="",x=t.length;for(n=0;n<x;n++)switch((h=t[n]).type){case"space":continue;case"hr":y+=this.renderer.hr();continue;case"heading":y+=this.renderer.heading(this.parseInline(h.tokens),h.depth,Y(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":y+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(u="",c="",s=h.header.length,r=0;r<s;r++)c+=this.renderer.tablecell(this.parseInline(h.tokens.header[r]),{header:!0,align:h.align[r]});for(u+=this.renderer.tablerow(c),l="",s=h.cells.length,r=0;r<s;r++){for(c="",o=(a=h.tokens.cells[r]).length,i=0;i<o;i++)c+=this.renderer.tablecell(this.parseInline(a[i]),{header:!1,align:h.align[i]});l+=this.renderer.tablerow(c)}y+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(h.tokens),y+=this.renderer.blockquote(l);continue;case"list":for(f=h.ordered,d=h.start,p=h.loose,s=h.items.length,l="",r=0;r<s;r++)m=(v=h.items[r]).checked,g=v.task,b="",v.task&&(w=this.renderer.checkbox(m),p?v.tokens.length>0&&"text"===v.tokens[0].type?(v.tokens[0].text=w+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=w+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:w}):b+=w),b+=this.parse(v.tokens,p),l+=this.renderer.listitem(b,g,m);y+=this.renderer.list(l,f,d);continue;case"html":y+=this.renderer.html(h.text);continue;case"paragraph":y+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(l=h.tokens?this.parseInline(h.tokens):h.text;n+1<x&&"text"===t[n+1].type;)l+="\n"+((h=t[++n]).tokens?this.parseInline(h.tokens):h.text);y+=e?this.renderer.paragraph(l):l;continue;default:var k='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}return y},e.parseInline=function(t,e){e=e||this.renderer;var n,r,i="",s=t.length;for(n=0;n<s;n++)switch((r=t[n]).type){case"escape":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;case"text":i+=e.text(r.text);break;default:var o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},t}(),X=k,K=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},J=y,tt=r.getDefaults,et=r.changeDefaults,nt=r.defaults;function rt(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=X({},rt.defaults,e||{}),K(e),n){var r,i=e.highlight;try{r=Z.lex(t,e)}catch(t){return n(t)}var s=function(t){var s;if(!t)try{s=Q.parse(r,e)}catch(e){t=e}return e.highlight=i,t?n(t):n(null,s)};if(!i||i.length<3)return s();if(delete e.highlight,!r.length)return s();var o=0;return rt.walkTokens(r,(function(t){"code"===t.type&&(o++,setTimeout((function(){i(t.text,t.lang,(function(e,n){if(e)return s(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0==--o&&s()}))}),0))})),void(0===o&&s())}try{var a=Z.lex(t,e);return e.walkTokens&&rt.walkTokens(a,e.walkTokens),Q.parse(a,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+J(t.message+"",!0)+"</pre>";throw t}}return rt.options=rt.setOptions=function(t){return X(rt.defaults,t),et(rt.defaults),rt},rt.getDefaults=tt,rt.defaults=nt,rt.use=function(t){var e=X({},t);if(t.renderer&&function(){var n=rt.defaults.renderer||new G,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.renderer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.renderer)r(i);e.renderer=n}(),t.tokenizer&&function(){var n=rt.defaults.tokenizer||new z,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.tokenizer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.tokenizer)r(i);e.tokenizer=n}(),t.walkTokens){var n=rt.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),n&&n(e)}}rt.setOptions(e)},rt.walkTokens=function(t,e){for(var r,i=n(t);!(r=i()).done;){var s=r.value;switch(e(s),s.type){case"table":for(var o,a=n(s.tokens.header);!(o=a()).done;)rt.walkTokens(o.value,e);for(var c,u=n(s.tokens.cells);!(c=u()).done;)for(var l,h=n(c.value);!(l=h()).done;)rt.walkTokens(l.value,e);break;case"list":rt.walkTokens(s.items,e);break;default:s.tokens&&rt.walkTokens(s.tokens,e)}}},rt.Parser=Q,rt.parser=Q.parse,rt.Renderer=G,rt.TextRenderer=B,rt.Lexer=Z,rt.lexer=Z.lex,rt.Tokenizer=z,rt.Slugger=W,rt.parse=rt,rt}()}));const ne=class{constructor(e){t(this,e),this.padding="10px 20px 15px"}render(){const t=H`
137
- font-family: ${this.fontfamily||"inherit"};
138
- font-size: ${this.fontsize?this.fontsize+"px":"inherit"};
139
- text-align: ${this.textalign};
140
- color: ${this.color||"inherit"};
141
- padding-top: ${this.paddingtop?this.paddingtop+"px":"inherit"};
142
- padding-bottom: ${this.paddingbottom?this.paddingbottom+"px":"inherit"};
143
- overflow-wrap: break-word;
144
- `,n=H`
145
- background: ${this.background?this.background.match(/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i)?`url(${this.background}) no-repeat center center;`:this.background:"inherit"};
146
- height: ${this.height||"inherit"};
147
- background-size: contain;
148
- `,r=this.ismarkdown?e("div",{innerHTML:ee(this.text)}):this.text;return!this.ishidden&&e("div",{class:n},e("p",{class:t},r))}get textEl(){return r(this)}};ne.style="sqh-text-component{display:block}sqh-text-component p{margin:0}";export{B as sqh_copy_button,W as sqh_copy_link_button,V as sqh_global_container,Y as sqh_image_component,Q as sqh_partner_stat_component,Gt as sqh_referral_component,Bt as sqh_referral_list,Wt as sqh_share_button,Vt as sqh_share_button_container,Yt as sqh_stat_component,te as sqh_stats_container,ne as sqh_text_component}